var kin=Object.defineProperty;var Oin=(l,s,u)=>s in l?kin(l,s,{enumerable:!0,configurable:!0,writable:!0,value:u}):l[s]=u;var REe=(l,s,u)=>Oin(l,typeof s!="symbol"?s+"":s,u);(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const g of document.querySelectorAll('link[rel="modulepreload"]'))h(g);new MutationObserver(g=>{for(const m of g)if(m.type==="childList")for(const p of m.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&h(p)}).observe(document,{childList:!0,subtree:!0});function u(g){const m={};return g.integrity&&(m.integrity=g.integrity),g.referrerPolicy&&(m.referrerPolicy=g.referrerPolicy),g.crossOrigin==="use-credentials"?m.credentials="include":g.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function h(g){if(g.ep)return;g.ep=!0;const m=u(g);fetch(g.href,m)}})();var Ayt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fAe(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var $Ee={exports:{}},IV={};/**
 * @license React
 * react-jsx-runtime.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 Nyt;function Sin(){if(Nyt)return IV;Nyt=1;var l=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function u(h,g,m){var p=null;if(m!==void 0&&(p=""+m),g.key!==void 0&&(p=""+g.key),"key"in g){m={};for(var k in g)k!=="key"&&(m[k]=g[k])}else m=g;return g=m.ref,{$$typeof:l,type:h,key:p,ref:g!==void 0?g:null,props:m}}return IV.Fragment=s,IV.jsx=u,IV.jsxs=u,IV}var _yt;function jin(){return _yt||(_yt=1,$Ee.exports=Sin()),$Ee.exports}var O=jin(),BEe={exports:{}},Fs={};/**
 * @license React
 * react.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 Dyt;function Tin(){if(Dyt)return Fs;Dyt=1;var l=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),p=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),P=Symbol.iterator;function R(Ce){return Ce===null||typeof Ce!="object"?null:(Ce=P&&Ce[P]||Ce["@@iterator"],typeof Ce=="function"?Ce:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,X={};function J(Ce,We,gt){this.props=Ce,this.context=We,this.refs=X,this.updater=gt||q}J.prototype.isReactComponent={},J.prototype.setState=function(Ce,We){if(typeof Ce!="object"&&typeof Ce!="function"&&Ce!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Ce,We,"setState")},J.prototype.forceUpdate=function(Ce){this.updater.enqueueForceUpdate(this,Ce,"forceUpdate")};function ee(){}ee.prototype=J.prototype;function te(Ce,We,gt){this.props=Ce,this.context=We,this.refs=X,this.updater=gt||q}var ie=te.prototype=new ee;ie.constructor=te,F(ie,J.prototype),ie.isPureReactComponent=!0;var oe=Array.isArray;function se(){}var ge={H:null,A:null,T:null,S:null},Ne=Object.prototype.hasOwnProperty;function qe(Ce,We,gt){var Ot=gt.ref;return{$$typeof:l,type:Ce,key:We,ref:Ot!==void 0?Ot:null,props:gt}}function Ke(Ce,We){return qe(Ce.type,We,Ce.props)}function Le(Ce){return typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===l}function we(Ce){var We={"=":"=0",":":"=2"};return"$"+Ce.replace(/[=:]/g,function(gt){return We[gt]})}var Z=/\/+/g;function pe(Ce,We){return typeof Ce=="object"&&Ce!==null&&Ce.key!=null?we(""+Ce.key):We.toString(36)}function Re(Ce){switch(Ce.status){case"fulfilled":return Ce.value;case"rejected":throw Ce.reason;default:switch(typeof Ce.status=="string"?Ce.then(se,se):(Ce.status="pending",Ce.then(function(We){Ce.status==="pending"&&(Ce.status="fulfilled",Ce.value=We)},function(We){Ce.status==="pending"&&(Ce.status="rejected",Ce.reason=We)})),Ce.status){case"fulfilled":return Ce.value;case"rejected":throw Ce.reason}}throw Ce}function he(Ce,We,gt,Ot,dt){var cn=typeof Ce;(cn==="undefined"||cn==="boolean")&&(Ce=null);var dn=!1;if(Ce===null)dn=!0;else switch(cn){case"bigint":case"string":case"number":dn=!0;break;case"object":switch(Ce.$$typeof){case l:case s:dn=!0;break;case N:return dn=Ce._init,he(dn(Ce._payload),We,gt,Ot,dt)}}if(dn)return dt=dt(Ce),dn=Ot===""?"."+pe(Ce,0):Ot,oe(dt)?(gt="",dn!=null&&(gt=dn.replace(Z,"$&/")+"/"),he(dt,We,gt,"",function(nr){return nr})):dt!=null&&(Le(dt)&&(dt=Ke(dt,gt+(dt.key==null||Ce&&Ce.key===dt.key?"":(""+dt.key).replace(Z,"$&/")+"/")+dn)),We.push(dt)),1;dn=0;var wn=Ot===""?".":Ot+":";if(oe(Ce))for(var ni=0;ni<Ce.length;ni++)Ot=Ce[ni],cn=wn+pe(Ot,ni),dn+=he(Ot,We,gt,cn,dt);else if(ni=R(Ce),typeof ni=="function")for(Ce=ni.call(Ce),ni=0;!(Ot=Ce.next()).done;)Ot=Ot.value,cn=wn+pe(Ot,ni++),dn+=he(Ot,We,gt,cn,dt);else if(cn==="object"){if(typeof Ce.then=="function")return he(Re(Ce),We,gt,Ot,dt);throw We=String(Ce),Error("Objects are not valid as a React child (found: "+(We==="[object Object]"?"object with keys {"+Object.keys(Ce).join(", ")+"}":We)+"). If you meant to render a collection of children, use an array instead.")}return dn}function Ee(Ce,We,gt){if(Ce==null)return Ce;var Ot=[],dt=0;return he(Ce,Ot,"","",function(cn){return We.call(gt,cn,dt++)}),Ot}function Te(Ce){if(Ce._status===-1){var We=Ce._result;We=We(),We.then(function(gt){(Ce._status===0||Ce._status===-1)&&(Ce._status=1,Ce._result=gt)},function(gt){(Ce._status===0||Ce._status===-1)&&(Ce._status=2,Ce._result=gt)}),Ce._status===-1&&(Ce._status=0,Ce._result=We)}if(Ce._status===1)return Ce._result.default;throw Ce._result}var ye=typeof reportError=="function"?reportError:function(Ce){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var We=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Ce=="object"&&Ce!==null&&typeof Ce.message=="string"?String(Ce.message):String(Ce),error:Ce});if(!window.dispatchEvent(We))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",Ce);return}console.error(Ce)},ft={map:Ee,forEach:function(Ce,We,gt){Ee(Ce,function(){We.apply(this,arguments)},gt)},count:function(Ce){var We=0;return Ee(Ce,function(){We++}),We},toArray:function(Ce){return Ee(Ce,function(We){return We})||[]},only:function(Ce){if(!Le(Ce))throw Error("React.Children.only expected to receive a single React element child.");return Ce}};return Fs.Activity=_,Fs.Children=ft,Fs.Component=J,Fs.Fragment=u,Fs.Profiler=g,Fs.PureComponent=te,Fs.StrictMode=h,Fs.Suspense=S,Fs.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ge,Fs.__COMPILER_RUNTIME={__proto__:null,c:function(Ce){return ge.H.useMemoCache(Ce)}},Fs.cache=function(Ce){return function(){return Ce.apply(null,arguments)}},Fs.cacheSignal=function(){return null},Fs.cloneElement=function(Ce,We,gt){if(Ce==null)throw Error("The argument must be a React element, but you passed "+Ce+".");var Ot=F({},Ce.props),dt=Ce.key;if(We!=null)for(cn in We.key!==void 0&&(dt=""+We.key),We)!Ne.call(We,cn)||cn==="key"||cn==="__self"||cn==="__source"||cn==="ref"&&We.ref===void 0||(Ot[cn]=We[cn]);var cn=arguments.length-2;if(cn===1)Ot.children=gt;else if(1<cn){for(var dn=Array(cn),wn=0;wn<cn;wn++)dn[wn]=arguments[wn+2];Ot.children=dn}return qe(Ce.type,dt,Ot)},Fs.createContext=function(Ce){return Ce={$$typeof:p,_currentValue:Ce,_currentValue2:Ce,_threadCount:0,Provider:null,Consumer:null},Ce.Provider=Ce,Ce.Consumer={$$typeof:m,_context:Ce},Ce},Fs.createElement=function(Ce,We,gt){var Ot,dt={},cn=null;if(We!=null)for(Ot in We.key!==void 0&&(cn=""+We.key),We)Ne.call(We,Ot)&&Ot!=="key"&&Ot!=="__self"&&Ot!=="__source"&&(dt[Ot]=We[Ot]);var dn=arguments.length-2;if(dn===1)dt.children=gt;else if(1<dn){for(var wn=Array(dn),ni=0;ni<dn;ni++)wn[ni]=arguments[ni+2];dt.children=wn}if(Ce&&Ce.defaultProps)for(Ot in dn=Ce.defaultProps,dn)dt[Ot]===void 0&&(dt[Ot]=dn[Ot]);return qe(Ce,cn,dt)},Fs.createRef=function(){return{current:null}},Fs.forwardRef=function(Ce){return{$$typeof:k,render:Ce}},Fs.isValidElement=Le,Fs.lazy=function(Ce){return{$$typeof:N,_payload:{_status:-1,_result:Ce},_init:Te}},Fs.memo=function(Ce,We){return{$$typeof:C,type:Ce,compare:We===void 0?null:We}},Fs.startTransition=function(Ce){var We=ge.T,gt={};ge.T=gt;try{var Ot=Ce(),dt=ge.S;dt!==null&&dt(gt,Ot),typeof Ot=="object"&&Ot!==null&&typeof Ot.then=="function"&&Ot.then(se,ye)}catch(cn){ye(cn)}finally{We!==null&&gt.types!==null&&(We.types=gt.types),ge.T=We}},Fs.unstable_useCacheRefresh=function(){return ge.H.useCacheRefresh()},Fs.use=function(Ce){return ge.H.use(Ce)},Fs.useActionState=function(Ce,We,gt){return ge.H.useActionState(Ce,We,gt)},Fs.useCallback=function(Ce,We){return ge.H.useCallback(Ce,We)},Fs.useContext=function(Ce){return ge.H.useContext(Ce)},Fs.useDebugValue=function(){},Fs.useDeferredValue=function(Ce,We){return ge.H.useDeferredValue(Ce,We)},Fs.useEffect=function(Ce,We){return ge.H.useEffect(Ce,We)},Fs.useEffectEvent=function(Ce){return ge.H.useEffectEvent(Ce)},Fs.useId=function(){return ge.H.useId()},Fs.useImperativeHandle=function(Ce,We,gt){return ge.H.useImperativeHandle(Ce,We,gt)},Fs.useInsertionEffect=function(Ce,We){return ge.H.useInsertionEffect(Ce,We)},Fs.useLayoutEffect=function(Ce,We){return ge.H.useLayoutEffect(Ce,We)},Fs.useMemo=function(Ce,We){return ge.H.useMemo(Ce,We)},Fs.useOptimistic=function(Ce,We){return ge.H.useOptimistic(Ce,We)},Fs.useReducer=function(Ce,We,gt){return ge.H.useReducer(Ce,We,gt)},Fs.useRef=function(Ce){return ge.H.useRef(Ce)},Fs.useState=function(Ce){return ge.H.useState(Ce)},Fs.useSyncExternalStore=function(Ce,We,gt){return ge.H.useSyncExternalStore(Ce,We,gt)},Fs.useTransition=function(){return ge.H.useTransition()},Fs.version="19.2.4",Fs}var Lyt;function zX(){return Lyt||(Lyt=1,BEe.exports=Tin()),BEe.exports}var ue=zX();const XV=fAe(ue);var zEe={exports:{}},RV={},FEe={exports:{}},qEe={};/**
 * @license React
 * scheduler.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 Pyt;function Ein(){return Pyt||(Pyt=1,(function(l){function s(he,Ee){var Te=he.length;he.push(Ee);e:for(;0<Te;){var ye=Te-1>>>1,ft=he[ye];if(0<g(ft,Ee))he[ye]=Ee,he[Te]=ft,Te=ye;else break e}}function u(he){return he.length===0?null:he[0]}function h(he){if(he.length===0)return null;var Ee=he[0],Te=he.pop();if(Te!==Ee){he[0]=Te;e:for(var ye=0,ft=he.length,Ce=ft>>>1;ye<Ce;){var We=2*(ye+1)-1,gt=he[We],Ot=We+1,dt=he[Ot];if(0>g(gt,Te))Ot<ft&&0>g(dt,gt)?(he[ye]=dt,he[Ot]=Te,ye=Ot):(he[ye]=gt,he[We]=Te,ye=We);else if(Ot<ft&&0>g(dt,Te))he[ye]=dt,he[Ot]=Te,ye=Ot;else break e}}return Ee}function g(he,Ee){var Te=he.sortIndex-Ee.sortIndex;return Te!==0?Te:he.id-Ee.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;l.unstable_now=function(){return m.now()}}else{var p=Date,k=p.now();l.unstable_now=function(){return p.now()-k}}var S=[],C=[],N=1,_=null,P=3,R=!1,q=!1,F=!1,X=!1,J=typeof setTimeout=="function"?setTimeout:null,ee=typeof clearTimeout=="function"?clearTimeout:null,te=typeof setImmediate<"u"?setImmediate:null;function ie(he){for(var Ee=u(C);Ee!==null;){if(Ee.callback===null)h(C);else if(Ee.startTime<=he)h(C),Ee.sortIndex=Ee.expirationTime,s(S,Ee);else break;Ee=u(C)}}function oe(he){if(F=!1,ie(he),!q)if(u(S)!==null)q=!0,se||(se=!0,we());else{var Ee=u(C);Ee!==null&&Re(oe,Ee.startTime-he)}}var se=!1,ge=-1,Ne=5,qe=-1;function Ke(){return X?!0:!(l.unstable_now()-qe<Ne)}function Le(){if(X=!1,se){var he=l.unstable_now();qe=he;var Ee=!0;try{e:{q=!1,F&&(F=!1,ee(ge),ge=-1),R=!0;var Te=P;try{t:{for(ie(he),_=u(S);_!==null&&!(_.expirationTime>he&&Ke());){var ye=_.callback;if(typeof ye=="function"){_.callback=null,P=_.priorityLevel;var ft=ye(_.expirationTime<=he);if(he=l.unstable_now(),typeof ft=="function"){_.callback=ft,ie(he),Ee=!0;break t}_===u(S)&&h(S),ie(he)}else h(S);_=u(S)}if(_!==null)Ee=!0;else{var Ce=u(C);Ce!==null&&Re(oe,Ce.startTime-he),Ee=!1}}break e}finally{_=null,P=Te,R=!1}Ee=void 0}}finally{Ee?we():se=!1}}}var we;if(typeof te=="function")we=function(){te(Le)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,pe=Z.port2;Z.port1.onmessage=Le,we=function(){pe.postMessage(null)}}else we=function(){J(Le,0)};function Re(he,Ee){ge=J(function(){he(l.unstable_now())},Ee)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(he){he.callback=null},l.unstable_forceFrameRate=function(he){0>he||125<he?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ne=0<he?Math.floor(1e3/he):5},l.unstable_getCurrentPriorityLevel=function(){return P},l.unstable_next=function(he){switch(P){case 1:case 2:case 3:var Ee=3;break;default:Ee=P}var Te=P;P=Ee;try{return he()}finally{P=Te}},l.unstable_requestPaint=function(){X=!0},l.unstable_runWithPriority=function(he,Ee){switch(he){case 1:case 2:case 3:case 4:case 5:break;default:he=3}var Te=P;P=he;try{return Ee()}finally{P=Te}},l.unstable_scheduleCallback=function(he,Ee,Te){var ye=l.unstable_now();switch(typeof Te=="object"&&Te!==null?(Te=Te.delay,Te=typeof Te=="number"&&0<Te?ye+Te:ye):Te=ye,he){case 1:var ft=-1;break;case 2:ft=250;break;case 5:ft=1073741823;break;case 4:ft=1e4;break;default:ft=5e3}return ft=Te+ft,he={id:N++,callback:Ee,priorityLevel:he,startTime:Te,expirationTime:ft,sortIndex:-1},Te>ye?(he.sortIndex=Te,s(C,he),u(S)===null&&he===u(C)&&(F?(ee(ge),ge=-1):F=!0,Re(oe,Te-ye))):(he.sortIndex=ft,s(S,he),q||R||(q=!0,se||(se=!0,we()))),he},l.unstable_shouldYield=Ke,l.unstable_wrapCallback=function(he){var Ee=P;return function(){var Te=P;P=Ee;try{return he.apply(this,arguments)}finally{P=Te}}}})(qEe)),qEe}var Iyt;function Cin(){return Iyt||(Iyt=1,FEe.exports=Ein()),FEe.exports}var HEe={exports:{}},tg={};/**
 * @license React
 * react-dom.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 Ryt;function Min(){if(Ryt)return tg;Ryt=1;var l=zX();function s(S){var C="https://react.dev/errors/"+S;if(1<arguments.length){C+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)C+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+S+"; visit "+C+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var h={d:{f:u,r:function(){throw Error(s(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},g=Symbol.for("react.portal");function m(S,C,N){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:g,key:_==null?null:""+_,children:S,containerInfo:C,implementation:N}}var p=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function k(S,C){if(S==="font")return"";if(typeof C=="string")return C==="use-credentials"?C:""}return tg.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=h,tg.createPortal=function(S,C){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!C||C.nodeType!==1&&C.nodeType!==9&&C.nodeType!==11)throw Error(s(299));return m(S,C,null,N)},tg.flushSync=function(S){var C=p.T,N=h.p;try{if(p.T=null,h.p=2,S)return S()}finally{p.T=C,h.p=N,h.d.f()}},tg.preconnect=function(S,C){typeof S=="string"&&(C?(C=C.crossOrigin,C=typeof C=="string"?C==="use-credentials"?C:"":void 0):C=null,h.d.C(S,C))},tg.prefetchDNS=function(S){typeof S=="string"&&h.d.D(S)},tg.preinit=function(S,C){if(typeof S=="string"&&C&&typeof C.as=="string"){var N=C.as,_=k(N,C.crossOrigin),P=typeof C.integrity=="string"?C.integrity:void 0,R=typeof C.fetchPriority=="string"?C.fetchPriority:void 0;N==="style"?h.d.S(S,typeof C.precedence=="string"?C.precedence:void 0,{crossOrigin:_,integrity:P,fetchPriority:R}):N==="script"&&h.d.X(S,{crossOrigin:_,integrity:P,fetchPriority:R,nonce:typeof C.nonce=="string"?C.nonce:void 0})}},tg.preinitModule=function(S,C){if(typeof S=="string")if(typeof C=="object"&&C!==null){if(C.as==null||C.as==="script"){var N=k(C.as,C.crossOrigin);h.d.M(S,{crossOrigin:N,integrity:typeof C.integrity=="string"?C.integrity:void 0,nonce:typeof C.nonce=="string"?C.nonce:void 0})}}else C==null&&h.d.M(S)},tg.preload=function(S,C){if(typeof S=="string"&&typeof C=="object"&&C!==null&&typeof C.as=="string"){var N=C.as,_=k(N,C.crossOrigin);h.d.L(S,N,{crossOrigin:_,integrity:typeof C.integrity=="string"?C.integrity:void 0,nonce:typeof C.nonce=="string"?C.nonce:void 0,type:typeof C.type=="string"?C.type:void 0,fetchPriority:typeof C.fetchPriority=="string"?C.fetchPriority:void 0,referrerPolicy:typeof C.referrerPolicy=="string"?C.referrerPolicy:void 0,imageSrcSet:typeof C.imageSrcSet=="string"?C.imageSrcSet:void 0,imageSizes:typeof C.imageSizes=="string"?C.imageSizes:void 0,media:typeof C.media=="string"?C.media:void 0})}},tg.preloadModule=function(S,C){if(typeof S=="string")if(C){var N=k(C.as,C.crossOrigin);h.d.m(S,{as:typeof C.as=="string"&&C.as!=="script"?C.as:void 0,crossOrigin:N,integrity:typeof C.integrity=="string"?C.integrity:void 0})}else h.d.m(S)},tg.requestFormReset=function(S){h.d.r(S)},tg.unstable_batchedUpdates=function(S,C){return S(C)},tg.useFormState=function(S,C,N){return p.H.useFormState(S,C,N)},tg.useFormStatus=function(){return p.H.useHostTransitionStatus()},tg.version="19.2.4",tg}var $yt;function w4t(){if($yt)return HEe.exports;$yt=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(s){console.error(s)}}return l(),HEe.exports=Min(),HEe.exports}/**
 * @license React
 * react-dom-client.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 Byt;function Ain(){if(Byt)return RV;Byt=1;var l=Cin(),s=zX(),u=w4t();function h(w){var y="https://react.dev/errors/"+w;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var j=2;j<arguments.length;j++)y+="&args[]="+encodeURIComponent(arguments[j])}return"Minified React error #"+w+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function g(w){return!(!w||w.nodeType!==1&&w.nodeType!==9&&w.nodeType!==11)}function m(w){var y=w,j=w;if(w.alternate)for(;y.return;)y=y.return;else{w=y;do y=w,(y.flags&4098)!==0&&(j=y.return),w=y.return;while(w)}return y.tag===3?j:null}function p(w){if(w.tag===13){var y=w.memoizedState;if(y===null&&(w=w.alternate,w!==null&&(y=w.memoizedState)),y!==null)return y.dehydrated}return null}function k(w){if(w.tag===31){var y=w.memoizedState;if(y===null&&(w=w.alternate,w!==null&&(y=w.memoizedState)),y!==null)return y.dehydrated}return null}function S(w){if(m(w)!==w)throw Error(h(188))}function C(w){var y=w.alternate;if(!y){if(y=m(w),y===null)throw Error(h(188));return y!==w?null:w}for(var j=w,D=y;;){var B=j.return;if(B===null)break;var H=B.alternate;if(H===null){if(D=B.return,D!==null){j=D;continue}break}if(B.child===H.child){for(H=B.child;H;){if(H===j)return S(B),w;if(H===D)return S(B),y;H=H.sibling}throw Error(h(188))}if(j.return!==D.return)j=B,D=H;else{for(var fe=!1,Ae=B.child;Ae;){if(Ae===j){fe=!0,j=B,D=H;break}if(Ae===D){fe=!0,D=B,j=H;break}Ae=Ae.sibling}if(!fe){for(Ae=H.child;Ae;){if(Ae===j){fe=!0,j=H,D=B;break}if(Ae===D){fe=!0,D=H,j=B;break}Ae=Ae.sibling}if(!fe)throw Error(h(189))}}if(j.alternate!==D)throw Error(h(190))}if(j.tag!==3)throw Error(h(188));return j.stateNode.current===j?w:y}function N(w){var y=w.tag;if(y===5||y===26||y===27||y===6)return w;for(w=w.child;w!==null;){if(y=N(w),y!==null)return y;w=w.sibling}return null}var _=Object.assign,P=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),ee=Symbol.for("react.consumer"),te=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),ge=Symbol.for("react.memo"),Ne=Symbol.for("react.lazy"),qe=Symbol.for("react.activity"),Ke=Symbol.for("react.memo_cache_sentinel"),Le=Symbol.iterator;function we(w){return w===null||typeof w!="object"?null:(w=Le&&w[Le]||w["@@iterator"],typeof w=="function"?w:null)}var Z=Symbol.for("react.client.reference");function pe(w){if(w==null)return null;if(typeof w=="function")return w.$$typeof===Z?null:w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case F:return"Fragment";case J:return"Profiler";case X:return"StrictMode";case oe:return"Suspense";case se:return"SuspenseList";case qe:return"Activity"}if(typeof w=="object")switch(w.$$typeof){case q:return"Portal";case te:return w.displayName||"Context";case ee:return(w._context.displayName||"Context")+".Consumer";case ie:var y=w.render;return w=w.displayName,w||(w=y.displayName||y.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case ge:return y=w.displayName||null,y!==null?y:pe(w.type)||"Memo";case Ne:y=w._payload,w=w._init;try{return pe(w(y))}catch{}}return null}var Re=Array.isArray,he=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ee=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Te={pending:!1,data:null,method:null,action:null},ye=[],ft=-1;function Ce(w){return{current:w}}function We(w){0>ft||(w.current=ye[ft],ye[ft]=null,ft--)}function gt(w,y){ft++,ye[ft]=w.current,w.current=y}var Ot=Ce(null),dt=Ce(null),cn=Ce(null),dn=Ce(null);function wn(w,y){switch(gt(cn,y),gt(dt,w),gt(Ot,null),y.nodeType){case 9:case 11:w=(w=y.documentElement)&&(w=w.namespaceURI)?oz(w):0;break;default:if(w=y.tagName,y=y.namespaceURI)y=oz(y),w=cz(y,w);else switch(w){case"svg":w=1;break;case"math":w=2;break;default:w=0}}We(Ot),gt(Ot,w)}function ni(){We(Ot),We(dt),We(cn)}function nr(w){w.memoizedState!==null&&gt(dn,w);var y=Ot.current,j=cz(y,w.type);y!==j&&(gt(dt,w),gt(Ot,j))}function ii(w){dt.current===w&&(We(Ot),We(dt)),dn.current===w&&(We(dn),m6._currentValue=Te)}var ji,Ti;function as(w){if(ji===void 0)try{throw Error()}catch(j){var y=j.stack.trim().match(/\n( *(at )?)/);ji=y&&y[1]||"",Ti=-1<j.stack.indexOf(`
    at`)?" (<anonymous>)":-1<j.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ji+w+Ti}var xo=!1;function qr(w,y){if(!w||xo)return"";xo=!0;var j=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var D={DetermineComponentFrameRoot:function(){try{if(y){var Sn=function(){throw Error()};if(Object.defineProperty(Sn.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Sn,[])}catch(sn){var Zt=sn}Reflect.construct(w,[],Sn)}else{try{Sn.call()}catch(sn){Zt=sn}w.call(Sn.prototype)}}else{try{throw Error()}catch(sn){Zt=sn}(Sn=w())&&typeof Sn.catch=="function"&&Sn.catch(function(){})}}catch(sn){if(sn&&Zt&&typeof sn.stack=="string")return[sn.stack,Zt.stack]}return[null,null]}};D.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var B=Object.getOwnPropertyDescriptor(D.DetermineComponentFrameRoot,"name");B&&B.configurable&&Object.defineProperty(D.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var H=D.DetermineComponentFrameRoot(),fe=H[0],Ae=H[1];if(fe&&Ae){var pt=fe.split(`
`),Ft=Ae.split(`
`);for(B=D=0;D<pt.length&&!pt[D].includes("DetermineComponentFrameRoot");)D++;for(;B<Ft.length&&!Ft[B].includes("DetermineComponentFrameRoot");)B++;if(D===pt.length||B===Ft.length)for(D=pt.length-1,B=Ft.length-1;1<=D&&0<=B&&pt[D]!==Ft[B];)B--;for(;1<=D&&0<=B;D--,B--)if(pt[D]!==Ft[B]){if(D!==1||B!==1)do if(D--,B--,0>B||pt[D]!==Ft[B]){var pn=`
`+pt[D].replace(" at new "," at ");return w.displayName&&pn.includes("<anonymous>")&&(pn=pn.replace("<anonymous>",w.displayName)),pn}while(1<=D&&0<=B);break}}}finally{xo=!1,Error.prepareStackTrace=j}return(j=w?w.displayName||w.name:"")?as(j):""}function Nn(w,y){switch(w.tag){case 26:case 27:case 5:return as(w.type);case 16:return as("Lazy");case 13:return w.child!==y&&y!==null?as("Suspense Fallback"):as("Suspense");case 19:return as("SuspenseList");case 0:case 15:return qr(w.type,!1);case 11:return qr(w.type.render,!1);case 1:return qr(w.type,!0);case 31:return as("Activity");default:return""}}function Ps(w){try{var y="",j=null;do y+=Nn(w,j),j=w,w=w.return;while(w);return y}catch(D){return`
Error generating stack: `+D.message+`
`+D.stack}}var ms=Object.prototype.hasOwnProperty,rs=l.unstable_scheduleCallback,fr=l.unstable_cancelCallback,jp=l.unstable_shouldYield,ko=l.unstable_requestPaint,eu=l.unstable_now,tm=l.unstable_getCurrentPriorityLevel,og=l.unstable_ImmediatePriority,Tp=l.unstable_UserBlockingPriority,nm=l.unstable_NormalPriority,Mu=l.unstable_LowPriority,Ep=l.unstable_IdlePriority,OO=l.log,SO=l.unstable_setDisableYieldValue,im=null,of=null;function c1(w){if(typeof OO=="function"&&SO(w),of&&typeof of.setStrictMode=="function")try{of.setStrictMode(im,w)}catch{}}var zf=Math.clz32?Math.clz32:TO,jO=Math.log,e2=Math.LN2;function TO(w){return w>>>=0,w===0?32:31-(jO(w)/e2|0)|0}var t2=256,n2=262144,i2=4194304;function a0(w){var y=w&42;if(y!==0)return y;switch(w&-w){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return w&261888;case 262144:case 524288:case 1048576:case 2097152:return w&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return w&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return w}}function r2(w,y,j){var D=w.pendingLanes;if(D===0)return 0;var B=0,H=w.suspendedLanes,fe=w.pingedLanes;w=w.warmLanes;var Ae=D&134217727;return Ae!==0?(D=Ae&~H,D!==0?B=a0(D):(fe&=Ae,fe!==0?B=a0(fe):j||(j=Ae&~w,j!==0&&(B=a0(j))))):(Ae=D&~H,Ae!==0?B=a0(Ae):fe!==0?B=a0(fe):j||(j=D&~w,j!==0&&(B=a0(j)))),B===0?0:y!==0&&y!==B&&(y&H)===0&&(H=B&-B,j=y&-y,H>=j||H===32&&(j&4194048)!==0)?y:B}function rm(w,y){return(w.pendingLanes&~(w.suspendedLanes&~w.pingedLanes)&y)===0}function l5(w,y){switch(w){case 1:case 2:case 4:case 8:case 64:return y+250;case 16:case 32: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 y+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function u5(){var w=i2;return i2<<=1,(i2&62914560)===0&&(i2=4194304),w}function Py(w){for(var y=[],j=0;31>j;j++)y.push(w);return y}function sm(w,y){w.pendingLanes|=y,y!==268435456&&(w.suspendedLanes=0,w.pingedLanes=0,w.warmLanes=0)}function EO(w,y,j,D,B,H){var fe=w.pendingLanes;w.pendingLanes=j,w.suspendedLanes=0,w.pingedLanes=0,w.warmLanes=0,w.expiredLanes&=j,w.entangledLanes&=j,w.errorRecoveryDisabledLanes&=j,w.shellSuspendCounter=0;var Ae=w.entanglements,pt=w.expirationTimes,Ft=w.hiddenUpdates;for(j=fe&~j;0<j;){var pn=31-zf(j),Sn=1<<pn;Ae[pn]=0,pt[pn]=-1;var Zt=Ft[pn];if(Zt!==null)for(Ft[pn]=null,pn=0;pn<Zt.length;pn++){var sn=Zt[pn];sn!==null&&(sn.lane&=-536870913)}j&=~Sn}D!==0&&om(w,D,0),H!==0&&B===0&&w.tag!==0&&(w.suspendedLanes|=H&~(fe&~y))}function om(w,y,j){w.pendingLanes|=y,w.suspendedLanes&=~y;var D=31-zf(y);w.entangledLanes|=y,w.entanglements[D]=w.entanglements[D]|1073741824|j&261930}function Iy(w,y){var j=w.entangledLanes|=y;for(w=w.entanglements;j;){var D=31-zf(j),B=1<<D;B&y|w[D]&y&&(w[D]|=y),j&=~B}}function a5(w,y){var j=y&-y;return j=(j&42)!==0?1:cm(j),(j&(w.suspendedLanes|y))!==0?0:j}function cm(w){switch(w){case 2:w=1;break;case 8:w=4;break;case 32:w=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:w=128;break;case 268435456:w=134217728;break;default:w=0}return w}function Ry(w){return w&=-w,2<w?8<w?(w&134217727)!==0?32:268435456:8:2}function f5(){var w=Ee.p;return w!==0?w:(w=window.event,w===void 0?32:KK(w.type))}function $y(w,y){var j=Ee.p;try{return Ee.p=w,y()}finally{Ee.p=j}}var cg=Math.random().toString(36).slice(2),Au="__reactFiber$"+cg,kn="__reactProps$"+cg,ro="__reactContainer$"+cg,al="__reactEvents$"+cg,Pa="__reactListeners$"+cg,CO="__reactHandles$"+cg,J9="__reactResources$"+cg,By="__reactMarker$"+cg;function MO(w){delete w[Au],delete w[kn],delete w[al],delete w[Pa],delete w[CO]}function Cp(w){var y=w[Au];if(y)return y;for(var j=w.parentNode;j;){if(y=j[ro]||j[Au]){if(j=y.alternate,y.child!==null||j!==null&&j.child!==null)for(w=dz(w);w!==null;){if(j=w[Au])return j;w=dz(w)}return y}w=j,j=w.parentNode}return null}function s2(w){if(w=w[Au]||w[ro]){var y=w.tag;if(y===5||y===6||y===13||y===31||y===26||y===27||y===3)return w}return null}function o2(w){var y=w.tag;if(y===5||y===26||y===27||y===6)return w.stateNode;throw Error(h(33))}function c2(w){var y=w[J9];return y||(y=w[J9]={hoistableStyles:new Map,hoistableScripts:new Map}),y}function sa(w){w[By]=!0}var V9=new Set,X9={};function lm(w,y){l2(w,y),l2(w+"Capture",y)}function l2(w,y){for(X9[w]=y,w=0;w<y.length;w++)V9.add(y[w])}var XM=RegExp("^[: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]*$"),AO={},W9={};function K9(w){return ms.call(W9,w)?!0:ms.call(AO,w)?!1:XM.test(w)?W9[w]=!0:(AO[w]=!0,!1)}function zy(w,y,j){if(K9(y))if(j===null)w.removeAttribute(y);else{switch(typeof j){case"undefined":case"function":case"symbol":w.removeAttribute(y);return;case"boolean":var D=y.toLowerCase().slice(0,5);if(D!=="data-"&&D!=="aria-"){w.removeAttribute(y);return}}w.setAttribute(y,""+j)}}function h5(w,y,j){if(j===null)w.removeAttribute(y);else{switch(typeof j){case"undefined":case"function":case"symbol":case"boolean":w.removeAttribute(y);return}w.setAttribute(y,""+j)}}function f0(w,y,j,D){if(D===null)w.removeAttribute(j);else{switch(typeof D){case"undefined":case"function":case"symbol":case"boolean":w.removeAttribute(j);return}w.setAttributeNS(y,j,""+D)}}function Od(w){switch(typeof w){case"bigint":case"boolean":case"number":case"string":case"undefined":return w;case"object":return w;default:return""}}function Y9(w){var y=w.type;return(w=w.nodeName)&&w.toLowerCase()==="input"&&(y==="checkbox"||y==="radio")}function WM(w,y,j){var D=Object.getOwnPropertyDescriptor(w.constructor.prototype,y);if(!w.hasOwnProperty(y)&&typeof D<"u"&&typeof D.get=="function"&&typeof D.set=="function"){var B=D.get,H=D.set;return Object.defineProperty(w,y,{configurable:!0,get:function(){return B.call(this)},set:function(fe){j=""+fe,H.call(this,fe)}}),Object.defineProperty(w,y,{enumerable:D.enumerable}),{getValue:function(){return j},setValue:function(fe){j=""+fe},stopTracking:function(){w._valueTracker=null,delete w[y]}}}}function u2(w){if(!w._valueTracker){var y=Y9(w)?"checked":"value";w._valueTracker=WM(w,y,""+w[y])}}function Z9(w){if(!w)return!1;var y=w._valueTracker;if(!y)return!0;var j=y.getValue(),D="";return w&&(D=Y9(w)?w.checked?"true":"false":w.value),w=D,w!==j?(y.setValue(w),!0):!1}function Fy(w){if(w=w||(typeof document<"u"?document:void 0),typeof w>"u")return null;try{return w.activeElement||w.body}catch{return w.body}}var KM=/[\n"\\]/g;function Sd(w){return w.replace(KM,function(y){return"\\"+y.charCodeAt(0).toString(16)+" "})}function qy(w,y,j,D,B,H,fe,Ae){w.name="",fe!=null&&typeof fe!="function"&&typeof fe!="symbol"&&typeof fe!="boolean"?w.type=fe:w.removeAttribute("type"),y!=null?fe==="number"?(y===0&&w.value===""||w.value!=y)&&(w.value=""+Od(y)):w.value!==""+Od(y)&&(w.value=""+Od(y)):fe!=="submit"&&fe!=="reset"||w.removeAttribute("value"),y!=null?NO(w,fe,Od(y)):j!=null?NO(w,fe,Od(j)):D!=null&&w.removeAttribute("value"),B==null&&H!=null&&(w.defaultChecked=!!H),B!=null&&(w.checked=B&&typeof B!="function"&&typeof B!="symbol"),Ae!=null&&typeof Ae!="function"&&typeof Ae!="symbol"&&typeof Ae!="boolean"?w.name=""+Od(Ae):w.removeAttribute("name")}function e8(w,y,j,D,B,H,fe,Ae){if(H!=null&&typeof H!="function"&&typeof H!="symbol"&&typeof H!="boolean"&&(w.type=H),y!=null||j!=null){if(!(H!=="submit"&&H!=="reset"||y!=null)){u2(w);return}j=j!=null?""+Od(j):"",y=y!=null?""+Od(y):j,Ae||y===w.value||(w.value=y),w.defaultValue=y}D=D??B,D=typeof D!="function"&&typeof D!="symbol"&&!!D,w.checked=Ae?w.checked:!!D,w.defaultChecked=!!D,fe!=null&&typeof fe!="function"&&typeof fe!="symbol"&&typeof fe!="boolean"&&(w.name=fe),u2(w)}function NO(w,y,j){y==="number"&&Fy(w.ownerDocument)===w||w.defaultValue===""+j||(w.defaultValue=""+j)}function um(w,y,j,D){if(w=w.options,y){y={};for(var B=0;B<j.length;B++)y["$"+j[B]]=!0;for(j=0;j<w.length;j++)B=y.hasOwnProperty("$"+w[j].value),w[j].selected!==B&&(w[j].selected=B),B&&D&&(w[j].defaultSelected=!0)}else{for(j=""+Od(j),y=null,B=0;B<w.length;B++){if(w[B].value===j){w[B].selected=!0,D&&(w[B].defaultSelected=!0);return}y!==null||w[B].disabled||(y=w[B])}y!==null&&(y.selected=!0)}}function aR(w,y,j){if(y!=null&&(y=""+Od(y),y!==w.value&&(w.value=y),j==null)){w.defaultValue!==y&&(w.defaultValue=y);return}w.defaultValue=j!=null?""+Od(j):""}function fR(w,y,j,D){if(y==null){if(D!=null){if(j!=null)throw Error(h(92));if(Re(D)){if(1<D.length)throw Error(h(93));D=D[0]}j=D}j==null&&(j=""),y=j}j=Od(y),w.defaultValue=j,D=w.textContent,D===j&&D!==""&&D!==null&&(w.value=D),u2(w)}function d5(w,y){if(y){var j=w.firstChild;if(j&&j===w.lastChild&&j.nodeType===3){j.nodeValue=y;return}}w.textContent=y}var lW=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function hR(w,y,j){var D=y.indexOf("--")===0;j==null||typeof j=="boolean"||j===""?D?w.setProperty(y,""):y==="float"?w.cssFloat="":w[y]="":D?w.setProperty(y,j):typeof j!="number"||j===0||lW.has(y)?y==="float"?w.cssFloat=j:w[y]=(""+j).trim():w[y]=j+"px"}function dR(w,y,j){if(y!=null&&typeof y!="object")throw Error(h(62));if(w=w.style,j!=null){for(var D in j)!j.hasOwnProperty(D)||y!=null&&y.hasOwnProperty(D)||(D.indexOf("--")===0?w.setProperty(D,""):D==="float"?w.cssFloat="":w[D]="");for(var B in y)D=y[B],y.hasOwnProperty(B)&&j[B]!==D&&hR(w,B,D)}else for(var H in y)y.hasOwnProperty(H)&&hR(w,H,y[H])}function YM(w){if(w.indexOf("-")===-1)return!1;switch(w){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 uW=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),aW=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function t8(w){return aW.test(""+w)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":w}function am(){}var ZM=null;function eA(w){return w=w.target||w.srcElement||window,w.correspondingUseElement&&(w=w.correspondingUseElement),w.nodeType===3?w.parentNode:w}var g5=null,p5=null;function gR(w){var y=s2(w);if(y&&(w=y.stateNode)){var j=w[kn]||null;e:switch(w=y.stateNode,y.type){case"input":if(qy(w,j.value,j.defaultValue,j.defaultValue,j.checked,j.defaultChecked,j.type,j.name),y=j.name,j.type==="radio"&&y!=null){for(j=w;j.parentNode;)j=j.parentNode;for(j=j.querySelectorAll('input[name="'+Sd(""+y)+'"][type="radio"]'),y=0;y<j.length;y++){var D=j[y];if(D!==w&&D.form===w.form){var B=D[kn]||null;if(!B)throw Error(h(90));qy(D,B.value,B.defaultValue,B.defaultValue,B.checked,B.defaultChecked,B.type,B.name)}}for(y=0;y<j.length;y++)D=j[y],D.form===w.form&&Z9(D)}break e;case"textarea":aR(w,j.value,j.defaultValue);break e;case"select":y=j.value,y!=null&&um(w,!!j.multiple,y,!1)}}}var tA=!1;function pR(w,y,j){if(tA)return w(y,j);tA=!0;try{var D=w(y);return D}finally{if(tA=!1,(g5!==null||p5!==null)&&(q8(),g5&&(y=g5,w=p5,p5=g5=null,gR(y),w)))for(y=0;y<w.length;y++)gR(w[y])}}function _O(w,y){var j=w.stateNode;if(j===null)return null;var D=j[kn]||null;if(D===null)return null;j=D[y];e:switch(y){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(D=!D.disabled)||(w=w.type,D=!(w==="button"||w==="input"||w==="select"||w==="textarea")),w=!D;break e;default:w=!1}if(w)return null;if(j&&typeof j!="function")throw Error(h(231,y,typeof j));return j}var fm=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nA=!1;if(fm)try{var DO={};Object.defineProperty(DO,"passive",{get:function(){nA=!0}}),window.addEventListener("test",DO,DO),window.removeEventListener("test",DO,DO)}catch{nA=!1}var a2=null,iA=null,n8=null;function bR(){if(n8)return n8;var w,y=iA,j=y.length,D,B="value"in a2?a2.value:a2.textContent,H=B.length;for(w=0;w<j&&y[w]===B[w];w++);var fe=j-w;for(D=1;D<=fe&&y[j-D]===B[H-D];D++);return n8=B.slice(w,1<D?1-D:void 0)}function i8(w){var y=w.keyCode;return"charCode"in w?(w=w.charCode,w===0&&y===13&&(w=13)):w=y,w===10&&(w=13),32<=w||w===13?w:0}function r8(){return!0}function mR(){return!1}function jd(w){function y(j,D,B,H,fe){this._reactName=j,this._targetInst=B,this.type=D,this.nativeEvent=H,this.target=fe,this.currentTarget=null;for(var Ae in w)w.hasOwnProperty(Ae)&&(j=w[Ae],this[Ae]=j?j(H):H[Ae]);return this.isDefaultPrevented=(H.defaultPrevented!=null?H.defaultPrevented:H.returnValue===!1)?r8:mR,this.isPropagationStopped=mR,this}return _(y.prototype,{preventDefault:function(){this.defaultPrevented=!0;var j=this.nativeEvent;j&&(j.preventDefault?j.preventDefault():typeof j.returnValue!="unknown"&&(j.returnValue=!1),this.isDefaultPrevented=r8)},stopPropagation:function(){var j=this.nativeEvent;j&&(j.stopPropagation?j.stopPropagation():typeof j.cancelBubble!="unknown"&&(j.cancelBubble=!0),this.isPropagationStopped=r8)},persist:function(){},isPersistent:r8}),y}var Hy={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(w){return w.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},s8=jd(Hy),LO=_({},Hy,{view:0,detail:0}),fW=jd(LO),rA,sA,PO,o8=_({},LO,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cA,button:0,buttons:0,relatedTarget:function(w){return w.relatedTarget===void 0?w.fromElement===w.srcElement?w.toElement:w.fromElement:w.relatedTarget},movementX:function(w){return"movementX"in w?w.movementX:(w!==PO&&(PO&&w.type==="mousemove"?(rA=w.screenX-PO.screenX,sA=w.screenY-PO.screenY):sA=rA=0,PO=w),rA)},movementY:function(w){return"movementY"in w?w.movementY:sA}}),wR=jd(o8),hW=_({},o8,{dataTransfer:0}),dW=jd(hW),gW=_({},LO,{relatedTarget:0}),oA=jd(gW),pW=_({},Hy,{animationName:0,elapsedTime:0,pseudoElement:0}),bW=jd(pW),mW=_({},Hy,{clipboardData:function(w){return"clipboardData"in w?w.clipboardData:window.clipboardData}}),wW=jd(mW),vW=_({},Hy,{data:0}),vR=jd(vW),yW={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xW={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kW={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function OW(w){var y=this.nativeEvent;return y.getModifierState?y.getModifierState(w):(w=kW[w])?!!y[w]:!1}function cA(){return OW}var SW=_({},LO,{key:function(w){if(w.key){var y=yW[w.key]||w.key;if(y!=="Unidentified")return y}return w.type==="keypress"?(w=i8(w),w===13?"Enter":String.fromCharCode(w)):w.type==="keydown"||w.type==="keyup"?xW[w.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cA,charCode:function(w){return w.type==="keypress"?i8(w):0},keyCode:function(w){return w.type==="keydown"||w.type==="keyup"?w.keyCode:0},which:function(w){return w.type==="keypress"?i8(w):w.type==="keydown"||w.type==="keyup"?w.keyCode:0}}),jW=jd(SW),TW=_({},o8,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yR=jd(TW),EW=_({},LO,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cA}),CW=jd(EW),MW=_({},Hy,{propertyName:0,elapsedTime:0,pseudoElement:0}),AW=jd(MW),NW=_({},o8,{deltaX:function(w){return"deltaX"in w?w.deltaX:"wheelDeltaX"in w?-w.wheelDeltaX:0},deltaY:function(w){return"deltaY"in w?w.deltaY:"wheelDeltaY"in w?-w.wheelDeltaY:"wheelDelta"in w?-w.wheelDelta:0},deltaZ:0,deltaMode:0}),_W=jd(NW),DW=_({},Hy,{newState:0,oldState:0}),LW=jd(DW),PW=[9,13,27,32],lA=fm&&"CompositionEvent"in window,IO=null;fm&&"documentMode"in document&&(IO=document.documentMode);var IW=fm&&"TextEvent"in window&&!IO,xR=fm&&(!lA||IO&&8<IO&&11>=IO),kR=" ",OR=!1;function SR(w,y){switch(w){case"keyup":return PW.indexOf(y.keyCode)!==-1;case"keydown":return y.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jR(w){return w=w.detail,typeof w=="object"&&"data"in w?w.data:null}var b5=!1;function RW(w,y){switch(w){case"compositionend":return jR(y);case"keypress":return y.which!==32?null:(OR=!0,kR);case"textInput":return w=y.data,w===kR&&OR?null:w;default:return null}}function $W(w,y){if(b5)return w==="compositionend"||!lA&&SR(w,y)?(w=bR(),n8=iA=a2=null,b5=!1,w):null;switch(w){case"paste":return null;case"keypress":if(!(y.ctrlKey||y.altKey||y.metaKey)||y.ctrlKey&&y.altKey){if(y.char&&1<y.char.length)return y.char;if(y.which)return String.fromCharCode(y.which)}return null;case"compositionend":return xR&&y.locale!=="ko"?null:y.data;default:return null}}var BW={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function TR(w){var y=w&&w.nodeName&&w.nodeName.toLowerCase();return y==="input"?!!BW[w.type]:y==="textarea"}function ER(w,y,j,D){g5?p5?p5.push(D):p5=[D]:g5=D,y=X8(y,"onChange"),0<y.length&&(j=new s8("onChange","change",null,j,D),w.push({event:j,listeners:y}))}var RO=null,$O=null;function zW(w){ez(w,0)}function c8(w){var y=o2(w);if(Z9(y))return w}function CR(w,y){if(w==="change")return y}var uA=!1;if(fm){var aA;if(fm){var fA="oninput"in document;if(!fA){var MR=document.createElement("div");MR.setAttribute("oninput","return;"),fA=typeof MR.oninput=="function"}aA=fA}else aA=!1;uA=aA&&(!document.documentMode||9<document.documentMode)}function AR(){RO&&(RO.detachEvent("onpropertychange",NR),$O=RO=null)}function NR(w){if(w.propertyName==="value"&&c8($O)){var y=[];ER(y,$O,w,eA(w)),pR(zW,y)}}function FW(w,y,j){w==="focusin"?(AR(),RO=y,$O=j,RO.attachEvent("onpropertychange",NR)):w==="focusout"&&AR()}function qW(w){if(w==="selectionchange"||w==="keyup"||w==="keydown")return c8($O)}function HW(w,y){if(w==="click")return c8(y)}function QW(w,y){if(w==="input"||w==="change")return c8(y)}function GW(w,y){return w===y&&(w!==0||1/w===1/y)||w!==w&&y!==y}var l1=typeof Object.is=="function"?Object.is:GW;function BO(w,y){if(l1(w,y))return!0;if(typeof w!="object"||w===null||typeof y!="object"||y===null)return!1;var j=Object.keys(w),D=Object.keys(y);if(j.length!==D.length)return!1;for(D=0;D<j.length;D++){var B=j[D];if(!ms.call(y,B)||!l1(w[B],y[B]))return!1}return!0}function _R(w){for(;w&&w.firstChild;)w=w.firstChild;return w}function DR(w,y){var j=_R(w);w=0;for(var D;j;){if(j.nodeType===3){if(D=w+j.textContent.length,w<=y&&D>=y)return{node:j,offset:y-w};w=D}e:{for(;j;){if(j.nextSibling){j=j.nextSibling;break e}j=j.parentNode}j=void 0}j=_R(j)}}function LR(w,y){return w&&y?w===y?!0:w&&w.nodeType===3?!1:y&&y.nodeType===3?LR(w,y.parentNode):"contains"in w?w.contains(y):w.compareDocumentPosition?!!(w.compareDocumentPosition(y)&16):!1:!1}function PR(w){w=w!=null&&w.ownerDocument!=null&&w.ownerDocument.defaultView!=null?w.ownerDocument.defaultView:window;for(var y=Fy(w.document);y instanceof w.HTMLIFrameElement;){try{var j=typeof y.contentWindow.location.href=="string"}catch{j=!1}if(j)w=y.contentWindow;else break;y=Fy(w.document)}return y}function hA(w){var y=w&&w.nodeName&&w.nodeName.toLowerCase();return y&&(y==="input"&&(w.type==="text"||w.type==="search"||w.type==="tel"||w.type==="url"||w.type==="password")||y==="textarea"||w.contentEditable==="true")}var UW=fm&&"documentMode"in document&&11>=document.documentMode,m5=null,dA=null,zO=null,gA=!1;function IR(w,y,j){var D=j.window===j?j.document:j.nodeType===9?j:j.ownerDocument;gA||m5==null||m5!==Fy(D)||(D=m5,"selectionStart"in D&&hA(D)?D={start:D.selectionStart,end:D.selectionEnd}:(D=(D.ownerDocument&&D.ownerDocument.defaultView||window).getSelection(),D={anchorNode:D.anchorNode,anchorOffset:D.anchorOffset,focusNode:D.focusNode,focusOffset:D.focusOffset}),zO&&BO(zO,D)||(zO=D,D=X8(dA,"onSelect"),0<D.length&&(y=new s8("onSelect","select",null,y,j),w.push({event:y,listeners:D}),y.target=m5)))}function Qy(w,y){var j={};return j[w.toLowerCase()]=y.toLowerCase(),j["Webkit"+w]="webkit"+y,j["Moz"+w]="moz"+y,j}var w5={animationend:Qy("Animation","AnimationEnd"),animationiteration:Qy("Animation","AnimationIteration"),animationstart:Qy("Animation","AnimationStart"),transitionrun:Qy("Transition","TransitionRun"),transitionstart:Qy("Transition","TransitionStart"),transitioncancel:Qy("Transition","TransitionCancel"),transitionend:Qy("Transition","TransitionEnd")},pA={},RR={};fm&&(RR=document.createElement("div").style,"AnimationEvent"in window||(delete w5.animationend.animation,delete w5.animationiteration.animation,delete w5.animationstart.animation),"TransitionEvent"in window||delete w5.transitionend.transition);function Gy(w){if(pA[w])return pA[w];if(!w5[w])return w;var y=w5[w],j;for(j in y)if(y.hasOwnProperty(j)&&j in RR)return pA[w]=y[j];return w}var $R=Gy("animationend"),BR=Gy("animationiteration"),zR=Gy("animationstart"),JW=Gy("transitionrun"),VW=Gy("transitionstart"),XW=Gy("transitioncancel"),FR=Gy("transitionend"),qR=new Map,bA="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");bA.push("scrollEnd");function h0(w,y){qR.set(w,y),lm(y,[w])}var l8=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},lg=[],v5=0,mA=0;function u8(){for(var w=v5,y=mA=v5=0;y<w;){var j=lg[y];lg[y++]=null;var D=lg[y];lg[y++]=null;var B=lg[y];lg[y++]=null;var H=lg[y];if(lg[y++]=null,D!==null&&B!==null){var fe=D.pending;fe===null?B.next=B:(B.next=fe.next,fe.next=B),D.pending=B}H!==0&&HR(j,B,H)}}function a8(w,y,j,D){lg[v5++]=w,lg[v5++]=y,lg[v5++]=j,lg[v5++]=D,mA|=D,w.lanes|=D,w=w.alternate,w!==null&&(w.lanes|=D)}function wA(w,y,j,D){return a8(w,y,j,D),f8(w)}function Uy(w,y){return a8(w,null,null,y),f8(w)}function HR(w,y,j){w.lanes|=j;var D=w.alternate;D!==null&&(D.lanes|=j);for(var B=!1,H=w.return;H!==null;)H.childLanes|=j,D=H.alternate,D!==null&&(D.childLanes|=j),H.tag===22&&(w=H.stateNode,w===null||w._visibility&1||(B=!0)),w=H,H=H.return;return w.tag===3?(H=w.stateNode,B&&y!==null&&(B=31-zf(j),w=H.hiddenUpdates,D=w[B],D===null?w[B]=[y]:D.push(y),y.lane=j|536870912),H):null}function f8(w){if(50<f6)throw f6=0,CN=null,Error(h(185));for(var y=w.return;y!==null;)w=y,y=w.return;return w.tag===3?w.stateNode:null}var y5={};function WW(w,y,j,D){this.tag=w,this.key=j,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=y,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=D,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function u1(w,y,j,D){return new WW(w,y,j,D)}function vA(w){return w=w.prototype,!(!w||!w.isReactComponent)}function hm(w,y){var j=w.alternate;return j===null?(j=u1(w.tag,y,w.key,w.mode),j.elementType=w.elementType,j.type=w.type,j.stateNode=w.stateNode,j.alternate=w,w.alternate=j):(j.pendingProps=y,j.type=w.type,j.flags=0,j.subtreeFlags=0,j.deletions=null),j.flags=w.flags&65011712,j.childLanes=w.childLanes,j.lanes=w.lanes,j.child=w.child,j.memoizedProps=w.memoizedProps,j.memoizedState=w.memoizedState,j.updateQueue=w.updateQueue,y=w.dependencies,j.dependencies=y===null?null:{lanes:y.lanes,firstContext:y.firstContext},j.sibling=w.sibling,j.index=w.index,j.ref=w.ref,j.refCleanup=w.refCleanup,j}function QR(w,y){w.flags&=65011714;var j=w.alternate;return j===null?(w.childLanes=0,w.lanes=y,w.child=null,w.subtreeFlags=0,w.memoizedProps=null,w.memoizedState=null,w.updateQueue=null,w.dependencies=null,w.stateNode=null):(w.childLanes=j.childLanes,w.lanes=j.lanes,w.child=j.child,w.subtreeFlags=0,w.deletions=null,w.memoizedProps=j.memoizedProps,w.memoizedState=j.memoizedState,w.updateQueue=j.updateQueue,w.type=j.type,y=j.dependencies,w.dependencies=y===null?null:{lanes:y.lanes,firstContext:y.firstContext}),w}function h8(w,y,j,D,B,H){var fe=0;if(D=w,typeof w=="function")vA(w)&&(fe=1);else if(typeof w=="string")fe=GK(w,j,Ot.current)?26:w==="html"||w==="head"||w==="body"?27:5;else e:switch(w){case qe:return w=u1(31,j,y,B),w.elementType=qe,w.lanes=H,w;case F:return Jy(j.children,B,H,y);case X:fe=8,B|=24;break;case J:return w=u1(12,j,y,B|2),w.elementType=J,w.lanes=H,w;case oe:return w=u1(13,j,y,B),w.elementType=oe,w.lanes=H,w;case se:return w=u1(19,j,y,B),w.elementType=se,w.lanes=H,w;default:if(typeof w=="object"&&w!==null)switch(w.$$typeof){case te:fe=10;break e;case ee:fe=9;break e;case ie:fe=11;break e;case ge:fe=14;break e;case Ne:fe=16,D=null;break e}fe=29,j=Error(h(130,w===null?"null":typeof w,"")),D=null}return y=u1(fe,j,y,B),y.elementType=w,y.type=D,y.lanes=H,y}function Jy(w,y,j,D){return w=u1(7,w,D,y),w.lanes=j,w}function yA(w,y,j){return w=u1(6,w,null,y),w.lanes=j,w}function GR(w){var y=u1(18,null,null,0);return y.stateNode=w,y}function xA(w,y,j){return y=u1(4,w.children!==null?w.children:[],w.key,y),y.lanes=j,y.stateNode={containerInfo:w.containerInfo,pendingChildren:null,implementation:w.implementation},y}var UR=new WeakMap;function ug(w,y){if(typeof w=="object"&&w!==null){var j=UR.get(w);return j!==void 0?j:(y={value:w,source:y,stack:Ps(y)},UR.set(w,y),y)}return{value:w,source:y,stack:Ps(y)}}var x5=[],k5=0,d8=null,FO=0,ag=[],fg=0,f2=null,Mp=1,Ap="";function dm(w,y){x5[k5++]=FO,x5[k5++]=d8,d8=w,FO=y}function JR(w,y,j){ag[fg++]=Mp,ag[fg++]=Ap,ag[fg++]=f2,f2=w;var D=Mp;w=Ap;var B=32-zf(D)-1;D&=~(1<<B),j+=1;var H=32-zf(y)+B;if(30<H){var fe=B-B%5;H=(D&(1<<fe)-1).toString(32),D>>=fe,B-=fe,Mp=1<<32-zf(y)+B|j<<B|D,Ap=H+w}else Mp=1<<H|j<<B|D,Ap=w}function kA(w){w.return!==null&&(dm(w,1),JR(w,1,0))}function OA(w){for(;w===d8;)d8=x5[--k5],x5[k5]=null,FO=x5[--k5],x5[k5]=null;for(;w===f2;)f2=ag[--fg],ag[fg]=null,Ap=ag[--fg],ag[fg]=null,Mp=ag[--fg],ag[fg]=null}function VR(w,y){ag[fg++]=Mp,ag[fg++]=Ap,ag[fg++]=f2,Mp=y.id,Ap=y.overflow,f2=w}var cf=null,jl=null,Oo=!1,h2=null,hg=!1,SA=Error(h(519));function d2(w){var y=Error(h(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw g2(ug(y,w)),SA}function XR(w){var y=w.stateNode,j=w.type,D=w.memoizedProps;switch(y[Au]=w,y[kn]=D,j){case"dialog":oo("cancel",y),oo("close",y);break;case"iframe":case"object":case"embed":oo("load",y);break;case"video":case"audio":for(j=0;j<d6.length;j++)oo(d6[j],y);break;case"source":oo("error",y);break;case"img":case"image":case"link":oo("error",y),oo("load",y);break;case"details":oo("toggle",y);break;case"input":oo("invalid",y),e8(y,D.value,D.defaultValue,D.checked,D.defaultChecked,D.type,D.name,!0);break;case"select":oo("invalid",y);break;case"textarea":oo("invalid",y),fR(y,D.value,D.defaultValue,D.children)}j=D.children,typeof j!="string"&&typeof j!="number"&&typeof j!="bigint"||y.textContent===""+j||D.suppressHydrationWarning===!0||rz(y.textContent,j)?(D.popover!=null&&(oo("beforetoggle",y),oo("toggle",y)),D.onScroll!=null&&oo("scroll",y),D.onScrollEnd!=null&&oo("scrollend",y),D.onClick!=null&&(y.onclick=am),y=!0):y=!1,y||d2(w,!0)}function WR(w){for(cf=w.return;cf;)switch(cf.tag){case 5:case 31:case 13:hg=!1;return;case 27:case 3:hg=!0;return;default:cf=cf.return}}function O5(w){if(w!==cf)return!1;if(!Oo)return WR(w),Oo=!0,!1;var y=w.tag,j;if((j=y!==3&&y!==27)&&((j=y===5)&&(j=w.type,j=!(j!=="form"&&j!=="button")||QN(w.type,w.memoizedProps)),j=!j),j&&jl&&d2(w),WR(w),y===13){if(w=w.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(h(317));jl=WN(w)}else if(y===31){if(w=w.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(h(317));jl=WN(w)}else y===27?(y=jl,A2(w.type)?(w=XN,XN=null,jl=w):jl=y):jl=cf?pg(w.stateNode.nextSibling):null;return!0}function Vy(){jl=cf=null,Oo=!1}function S5(){var w=h2;return w!==null&&(Cd===null?Cd=w:Cd.push.apply(Cd,w),h2=null),w}function g2(w){h2===null?h2=[w]:h2.push(w)}var jA=Ce(null),Xy=null,Np=null;function p2(w,y,j){gt(jA,y._currentValue),y._currentValue=j}function gm(w){w._currentValue=jA.current,We(jA)}function TA(w,y,j){for(;w!==null;){var D=w.alternate;if((w.childLanes&y)!==y?(w.childLanes|=y,D!==null&&(D.childLanes|=y)):D!==null&&(D.childLanes&y)!==y&&(D.childLanes|=y),w===j)break;w=w.return}}function EA(w,y,j,D){var B=w.child;for(B!==null&&(B.return=w);B!==null;){var H=B.dependencies;if(H!==null){var fe=B.child;H=H.firstContext;e:for(;H!==null;){var Ae=H;H=B;for(var pt=0;pt<y.length;pt++)if(Ae.context===y[pt]){H.lanes|=j,Ae=H.alternate,Ae!==null&&(Ae.lanes|=j),TA(H.return,j,w),D||(fe=null);break e}H=Ae.next}}else if(B.tag===18){if(fe=B.return,fe===null)throw Error(h(341));fe.lanes|=j,H=fe.alternate,H!==null&&(H.lanes|=j),TA(fe,j,w),fe=null}else fe=B.child;if(fe!==null)fe.return=B;else for(fe=B;fe!==null;){if(fe===w){fe=null;break}if(B=fe.sibling,B!==null){B.return=fe.return,fe=B;break}fe=fe.return}B=fe}}function j5(w,y,j,D){w=null;for(var B=y,H=!1;B!==null;){if(!H){if((B.flags&524288)!==0)H=!0;else if((B.flags&262144)!==0)break}if(B.tag===10){var fe=B.alternate;if(fe===null)throw Error(h(387));if(fe=fe.memoizedProps,fe!==null){var Ae=B.type;l1(B.pendingProps.value,fe.value)||(w!==null?w.push(Ae):w=[Ae])}}else if(B===dn.current){if(fe=B.alternate,fe===null)throw Error(h(387));fe.memoizedState.memoizedState!==B.memoizedState.memoizedState&&(w!==null?w.push(m6):w=[m6])}B=B.return}w!==null&&EA(y,w,j,D),y.flags|=262144}function qO(w){for(w=w.firstContext;w!==null;){if(!l1(w.context._currentValue,w.memoizedValue))return!0;w=w.next}return!1}function b2(w){Xy=w,Np=null,w=w.dependencies,w!==null&&(w.firstContext=null)}function Ff(w){return CA(Xy,w)}function HO(w,y){return Xy===null&&b2(w),CA(w,y)}function CA(w,y){var j=y._currentValue;if(y={context:y,memoizedValue:j,next:null},Np===null){if(w===null)throw Error(h(308));Np=y,w.dependencies={lanes:0,firstContext:y},w.flags|=524288}else Np=Np.next=y;return j}var KW=typeof AbortController<"u"?AbortController:function(){var w=[],y=this.signal={aborted:!1,addEventListener:function(j,D){w.push(D)}};this.abort=function(){y.aborted=!0,w.forEach(function(j){return j()})}},YW=l.unstable_scheduleCallback,QO=l.unstable_NormalPriority,oa={$$typeof:te,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function MA(){return{controller:new KW,data:new Map,refCount:0}}function GO(w){w.refCount--,w.refCount===0&&YW(QO,function(){w.controller.abort()})}var UO=null,AA=0,T5=0,E5=null;function ZW(w,y){if(UO===null){var j=UO=[];AA=0,T5=LN(),E5={status:"pending",value:void 0,then:function(D){j.push(D)}}}return AA++,y.then(KR,KR),y}function KR(){if(--AA===0&&UO!==null){E5!==null&&(E5.status="fulfilled");var w=UO;UO=null,T5=0,E5=null;for(var y=0;y<w.length;y++)(0,w[y])()}}function eK(w,y){var j=[],D={status:"pending",value:null,reason:null,then:function(B){j.push(B)}};return w.then(function(){D.status="fulfilled",D.value=y;for(var B=0;B<j.length;B++)(0,j[B])(y)},function(B){for(D.status="rejected",D.reason=B,B=0;B<j.length;B++)(0,j[B])(void 0)}),D}var YR=he.S;he.S=function(w,y){EB=eu(),typeof y=="object"&&y!==null&&typeof y.then=="function"&&ZW(w,y),YR!==null&&YR(w,y)};var Wy=Ce(null);function NA(){var w=Wy.current;return w!==null?w:el.pooledCache}function g8(w,y){y===null?gt(Wy,Wy.current):gt(Wy,y.pool)}function ZR(){var w=NA();return w===null?null:{parent:oa._currentValue,pool:w}}var C5=Error(h(460)),_A=Error(h(474)),p8=Error(h(542)),b8={then:function(){}};function DA(w){return w=w.status,w==="fulfilled"||w==="rejected"}function e$(w,y,j){switch(j=w[j],j===void 0?w.push(y):j!==y&&(y.then(am,am),y=j),y.status){case"fulfilled":return y.value;case"rejected":throw w=y.reason,n$(w),w;default:if(typeof y.status=="string")y.then(am,am);else{if(w=el,w!==null&&100<w.shellSuspendCounter)throw Error(h(482));w=y,w.status="pending",w.then(function(D){if(y.status==="pending"){var B=y;B.status="fulfilled",B.value=D}},function(D){if(y.status==="pending"){var B=y;B.status="rejected",B.reason=D}})}switch(y.status){case"fulfilled":return y.value;case"rejected":throw w=y.reason,n$(w),w}throw Yy=y,C5}}function Ky(w){try{var y=w._init;return y(w._payload)}catch(j){throw j!==null&&typeof j=="object"&&typeof j.then=="function"?(Yy=j,C5):j}}var Yy=null;function t$(){if(Yy===null)throw Error(h(459));var w=Yy;return Yy=null,w}function n$(w){if(w===C5||w===p8)throw Error(h(483))}var M5=null,JO=0;function m8(w){var y=JO;return JO+=1,M5===null&&(M5=[]),e$(M5,w,y)}function VO(w,y){y=y.props.ref,w.ref=y!==void 0?y:null}function w8(w,y){throw y.$$typeof===P?Error(h(525)):(w=Object.prototype.toString.call(y),Error(h(31,w==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":w)))}function i$(w){function y(Nt,xt){if(w){var $t=Nt.deletions;$t===null?(Nt.deletions=[xt],Nt.flags|=16):$t.push(xt)}}function j(Nt,xt){if(!w)return null;for(;xt!==null;)y(Nt,xt),xt=xt.sibling;return null}function D(Nt){for(var xt=new Map;Nt!==null;)Nt.key!==null?xt.set(Nt.key,Nt):xt.set(Nt.index,Nt),Nt=Nt.sibling;return xt}function B(Nt,xt){return Nt=hm(Nt,xt),Nt.index=0,Nt.sibling=null,Nt}function H(Nt,xt,$t){return Nt.index=$t,w?($t=Nt.alternate,$t!==null?($t=$t.index,$t<xt?(Nt.flags|=67108866,xt):$t):(Nt.flags|=67108866,xt)):(Nt.flags|=1048576,xt)}function fe(Nt){return w&&Nt.alternate===null&&(Nt.flags|=67108866),Nt}function Ae(Nt,xt,$t,an){return xt===null||xt.tag!==6?(xt=yA($t,Nt.mode,an),xt.return=Nt,xt):(xt=B(xt,$t),xt.return=Nt,xt)}function pt(Nt,xt,$t,an){var yr=$t.type;return yr===F?pn(Nt,xt,$t.props.children,an,$t.key):xt!==null&&(xt.elementType===yr||typeof yr=="object"&&yr!==null&&yr.$$typeof===Ne&&Ky(yr)===xt.type)?(xt=B(xt,$t.props),VO(xt,$t),xt.return=Nt,xt):(xt=h8($t.type,$t.key,$t.props,null,Nt.mode,an),VO(xt,$t),xt.return=Nt,xt)}function Ft(Nt,xt,$t,an){return xt===null||xt.tag!==4||xt.stateNode.containerInfo!==$t.containerInfo||xt.stateNode.implementation!==$t.implementation?(xt=xA($t,Nt.mode,an),xt.return=Nt,xt):(xt=B(xt,$t.children||[]),xt.return=Nt,xt)}function pn(Nt,xt,$t,an,yr){return xt===null||xt.tag!==7?(xt=Jy($t,Nt.mode,an,yr),xt.return=Nt,xt):(xt=B(xt,$t),xt.return=Nt,xt)}function Sn(Nt,xt,$t){if(typeof xt=="string"&&xt!==""||typeof xt=="number"||typeof xt=="bigint")return xt=yA(""+xt,Nt.mode,$t),xt.return=Nt,xt;if(typeof xt=="object"&&xt!==null){switch(xt.$$typeof){case R:return $t=h8(xt.type,xt.key,xt.props,null,Nt.mode,$t),VO($t,xt),$t.return=Nt,$t;case q:return xt=xA(xt,Nt.mode,$t),xt.return=Nt,xt;case Ne:return xt=Ky(xt),Sn(Nt,xt,$t)}if(Re(xt)||we(xt))return xt=Jy(xt,Nt.mode,$t,null),xt.return=Nt,xt;if(typeof xt.then=="function")return Sn(Nt,m8(xt),$t);if(xt.$$typeof===te)return Sn(Nt,HO(Nt,xt),$t);w8(Nt,xt)}return null}function Zt(Nt,xt,$t,an){var yr=xt!==null?xt.key:null;if(typeof $t=="string"&&$t!==""||typeof $t=="number"||typeof $t=="bigint")return yr!==null?null:Ae(Nt,xt,""+$t,an);if(typeof $t=="object"&&$t!==null){switch($t.$$typeof){case R:return $t.key===yr?pt(Nt,xt,$t,an):null;case q:return $t.key===yr?Ft(Nt,xt,$t,an):null;case Ne:return $t=Ky($t),Zt(Nt,xt,$t,an)}if(Re($t)||we($t))return yr!==null?null:pn(Nt,xt,$t,an,null);if(typeof $t.then=="function")return Zt(Nt,xt,m8($t),an);if($t.$$typeof===te)return Zt(Nt,xt,HO(Nt,$t),an);w8(Nt,$t)}return null}function sn(Nt,xt,$t,an,yr){if(typeof an=="string"&&an!==""||typeof an=="number"||typeof an=="bigint")return Nt=Nt.get($t)||null,Ae(xt,Nt,""+an,yr);if(typeof an=="object"&&an!==null){switch(an.$$typeof){case R:return Nt=Nt.get(an.key===null?$t:an.key)||null,pt(xt,Nt,an,yr);case q:return Nt=Nt.get(an.key===null?$t:an.key)||null,Ft(xt,Nt,an,yr);case Ne:return an=Ky(an),sn(Nt,xt,$t,an,yr)}if(Re(an)||we(an))return Nt=Nt.get($t)||null,pn(xt,Nt,an,yr,null);if(typeof an.then=="function")return sn(Nt,xt,$t,m8(an),yr);if(an.$$typeof===te)return sn(Nt,xt,$t,HO(xt,an),yr);w8(xt,an)}return null}function Yi(Nt,xt,$t,an){for(var yr=null,qo=null,cr=xt,gs=xt=0,qs=null;cr!==null&&gs<$t.length;gs++){cr.index>gs?(qs=cr,cr=null):qs=cr.sibling;var Ho=Zt(Nt,cr,$t[gs],an);if(Ho===null){cr===null&&(cr=qs);break}w&&cr&&Ho.alternate===null&&y(Nt,cr),xt=H(Ho,xt,gs),qo===null?yr=Ho:qo.sibling=Ho,qo=Ho,cr=qs}if(gs===$t.length)return j(Nt,cr),Oo&&dm(Nt,gs),yr;if(cr===null){for(;gs<$t.length;gs++)cr=Sn(Nt,$t[gs],an),cr!==null&&(xt=H(cr,xt,gs),qo===null?yr=cr:qo.sibling=cr,qo=cr);return Oo&&dm(Nt,gs),yr}for(cr=D(cr);gs<$t.length;gs++)qs=sn(cr,Nt,gs,$t[gs],an),qs!==null&&(w&&qs.alternate!==null&&cr.delete(qs.key===null?gs:qs.key),xt=H(qs,xt,gs),qo===null?yr=qs:qo.sibling=qs,qo=qs);return w&&cr.forEach(function(Sm){return y(Nt,Sm)}),Oo&&dm(Nt,gs),yr}function Hr(Nt,xt,$t,an){if($t==null)throw Error(h(151));for(var yr=null,qo=null,cr=xt,gs=xt=0,qs=null,Ho=$t.next();cr!==null&&!Ho.done;gs++,Ho=$t.next()){cr.index>gs?(qs=cr,cr=null):qs=cr.sibling;var Sm=Zt(Nt,cr,Ho.value,an);if(Sm===null){cr===null&&(cr=qs);break}w&&cr&&Sm.alternate===null&&y(Nt,cr),xt=H(Sm,xt,gs),qo===null?yr=Sm:qo.sibling=Sm,qo=Sm,cr=qs}if(Ho.done)return j(Nt,cr),Oo&&dm(Nt,gs),yr;if(cr===null){for(;!Ho.done;gs++,Ho=$t.next())Ho=Sn(Nt,Ho.value,an),Ho!==null&&(xt=H(Ho,xt,gs),qo===null?yr=Ho:qo.sibling=Ho,qo=Ho);return Oo&&dm(Nt,gs),yr}for(cr=D(cr);!Ho.done;gs++,Ho=$t.next())Ho=sn(cr,Nt,gs,Ho.value,an),Ho!==null&&(w&&Ho.alternate!==null&&cr.delete(Ho.key===null?gs:Ho.key),xt=H(Ho,xt,gs),qo===null?yr=Ho:qo.sibling=Ho,qo=Ho);return w&&cr.forEach(function(Rp){return y(Nt,Rp)}),Oo&&dm(Nt,gs),yr}function tl(Nt,xt,$t,an){if(typeof $t=="object"&&$t!==null&&$t.type===F&&$t.key===null&&($t=$t.props.children),typeof $t=="object"&&$t!==null){switch($t.$$typeof){case R:e:{for(var yr=$t.key;xt!==null;){if(xt.key===yr){if(yr=$t.type,yr===F){if(xt.tag===7){j(Nt,xt.sibling),an=B(xt,$t.props.children),an.return=Nt,Nt=an;break e}}else if(xt.elementType===yr||typeof yr=="object"&&yr!==null&&yr.$$typeof===Ne&&Ky(yr)===xt.type){j(Nt,xt.sibling),an=B(xt,$t.props),VO(an,$t),an.return=Nt,Nt=an;break e}j(Nt,xt);break}else y(Nt,xt);xt=xt.sibling}$t.type===F?(an=Jy($t.props.children,Nt.mode,an,$t.key),an.return=Nt,Nt=an):(an=h8($t.type,$t.key,$t.props,null,Nt.mode,an),VO(an,$t),an.return=Nt,Nt=an)}return fe(Nt);case q:e:{for(yr=$t.key;xt!==null;){if(xt.key===yr)if(xt.tag===4&&xt.stateNode.containerInfo===$t.containerInfo&&xt.stateNode.implementation===$t.implementation){j(Nt,xt.sibling),an=B(xt,$t.children||[]),an.return=Nt,Nt=an;break e}else{j(Nt,xt);break}else y(Nt,xt);xt=xt.sibling}an=xA($t,Nt.mode,an),an.return=Nt,Nt=an}return fe(Nt);case Ne:return $t=Ky($t),tl(Nt,xt,$t,an)}if(Re($t))return Yi(Nt,xt,$t,an);if(we($t)){if(yr=we($t),typeof yr!="function")throw Error(h(150));return $t=yr.call($t),Hr(Nt,xt,$t,an)}if(typeof $t.then=="function")return tl(Nt,xt,m8($t),an);if($t.$$typeof===te)return tl(Nt,xt,HO(Nt,$t),an);w8(Nt,$t)}return typeof $t=="string"&&$t!==""||typeof $t=="number"||typeof $t=="bigint"?($t=""+$t,xt!==null&&xt.tag===6?(j(Nt,xt.sibling),an=B(xt,$t),an.return=Nt,Nt=an):(j(Nt,xt),an=yA($t,Nt.mode,an),an.return=Nt,Nt=an),fe(Nt)):j(Nt,xt)}return function(Nt,xt,$t,an){try{JO=0;var yr=tl(Nt,xt,$t,an);return M5=null,yr}catch(cr){if(cr===C5||cr===p8)throw cr;var qo=u1(29,cr,null,Nt.mode);return qo.lanes=an,qo.return=Nt,qo}finally{}}}var Zy=i$(!0),r$=i$(!1),m2=!1;function LA(w){w.updateQueue={baseState:w.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function PA(w,y){w=w.updateQueue,y.updateQueue===w&&(y.updateQueue={baseState:w.baseState,firstBaseUpdate:w.firstBaseUpdate,lastBaseUpdate:w.lastBaseUpdate,shared:w.shared,callbacks:null})}function w2(w){return{lane:w,tag:0,payload:null,callback:null,next:null}}function v2(w,y,j){var D=w.updateQueue;if(D===null)return null;if(D=D.shared,(oc&2)!==0){var B=D.pending;return B===null?y.next=y:(y.next=B.next,B.next=y),D.pending=y,y=f8(w),HR(w,null,j),y}return a8(w,D,y,j),f8(w)}function XO(w,y,j){if(y=y.updateQueue,y!==null&&(y=y.shared,(j&4194048)!==0)){var D=y.lanes;D&=w.pendingLanes,j|=D,y.lanes=j,Iy(w,j)}}function IA(w,y){var j=w.updateQueue,D=w.alternate;if(D!==null&&(D=D.updateQueue,j===D)){var B=null,H=null;if(j=j.firstBaseUpdate,j!==null){do{var fe={lane:j.lane,tag:j.tag,payload:j.payload,callback:null,next:null};H===null?B=H=fe:H=H.next=fe,j=j.next}while(j!==null);H===null?B=H=y:H=H.next=y}else B=H=y;j={baseState:D.baseState,firstBaseUpdate:B,lastBaseUpdate:H,shared:D.shared,callbacks:D.callbacks},w.updateQueue=j;return}w=j.lastBaseUpdate,w===null?j.firstBaseUpdate=y:w.next=y,j.lastBaseUpdate=y}var RA=!1;function WO(){if(RA){var w=E5;if(w!==null)throw w}}function KO(w,y,j,D){RA=!1;var B=w.updateQueue;m2=!1;var H=B.firstBaseUpdate,fe=B.lastBaseUpdate,Ae=B.shared.pending;if(Ae!==null){B.shared.pending=null;var pt=Ae,Ft=pt.next;pt.next=null,fe===null?H=Ft:fe.next=Ft,fe=pt;var pn=w.alternate;pn!==null&&(pn=pn.updateQueue,Ae=pn.lastBaseUpdate,Ae!==fe&&(Ae===null?pn.firstBaseUpdate=Ft:Ae.next=Ft,pn.lastBaseUpdate=pt))}if(H!==null){var Sn=B.baseState;fe=0,pn=Ft=pt=null,Ae=H;do{var Zt=Ae.lane&-536870913,sn=Zt!==Ae.lane;if(sn?(mo&Zt)===Zt:(D&Zt)===Zt){Zt!==0&&Zt===T5&&(RA=!0),pn!==null&&(pn=pn.next={lane:0,tag:Ae.tag,payload:Ae.payload,callback:null,next:null});e:{var Yi=w,Hr=Ae;Zt=y;var tl=j;switch(Hr.tag){case 1:if(Yi=Hr.payload,typeof Yi=="function"){Sn=Yi.call(tl,Sn,Zt);break e}Sn=Yi;break e;case 3:Yi.flags=Yi.flags&-65537|128;case 0:if(Yi=Hr.payload,Zt=typeof Yi=="function"?Yi.call(tl,Sn,Zt):Yi,Zt==null)break e;Sn=_({},Sn,Zt);break e;case 2:m2=!0}}Zt=Ae.callback,Zt!==null&&(w.flags|=64,sn&&(w.flags|=8192),sn=B.callbacks,sn===null?B.callbacks=[Zt]:sn.push(Zt))}else sn={lane:Zt,tag:Ae.tag,payload:Ae.payload,callback:Ae.callback,next:null},pn===null?(Ft=pn=sn,pt=Sn):pn=pn.next=sn,fe|=Zt;if(Ae=Ae.next,Ae===null){if(Ae=B.shared.pending,Ae===null)break;sn=Ae,Ae=sn.next,sn.next=null,B.lastBaseUpdate=sn,B.shared.pending=null}}while(!0);pn===null&&(pt=Sn),B.baseState=pt,B.firstBaseUpdate=Ft,B.lastBaseUpdate=pn,H===null&&(B.shared.lanes=0),j2|=fe,w.lanes=fe,w.memoizedState=Sn}}function s$(w,y){if(typeof w!="function")throw Error(h(191,w));w.call(y)}function o$(w,y){var j=w.callbacks;if(j!==null)for(w.callbacks=null,w=0;w<j.length;w++)s$(j[w],y)}var A5=Ce(null),v8=Ce(0);function c$(w,y){w=xm,gt(v8,w),gt(A5,y),xm=w|y.baseLanes}function $A(){gt(v8,xm),gt(A5,A5.current)}function BA(){xm=v8.current,We(A5),We(v8)}var a1=Ce(null),dg=null;function y2(w){var y=w.alternate;gt(Nu,Nu.current&1),gt(a1,w),dg===null&&(y===null||A5.current!==null||y.memoizedState!==null)&&(dg=w)}function zA(w){gt(Nu,Nu.current),gt(a1,w),dg===null&&(dg=w)}function l$(w){w.tag===22?(gt(Nu,Nu.current),gt(a1,w),dg===null&&(dg=w)):x2()}function x2(){gt(Nu,Nu.current),gt(a1,a1.current)}function f1(w){We(a1),dg===w&&(dg=null),We(Nu)}var Nu=Ce(0);function y8(w){for(var y=w;y!==null;){if(y.tag===13){var j=y.memoizedState;if(j!==null&&(j=j.dehydrated,j===null||JN(j)||VN(j)))return y}else if(y.tag===19&&(y.memoizedProps.revealOrder==="forwards"||y.memoizedProps.revealOrder==="backwards"||y.memoizedProps.revealOrder==="unstable_legacy-backwards"||y.memoizedProps.revealOrder==="together")){if((y.flags&128)!==0)return y}else if(y.child!==null){y.child.return=y,y=y.child;continue}if(y===w)break;for(;y.sibling===null;){if(y.return===null||y.return===w)return null;y=y.return}y.sibling.return=y.return,y=y.sibling}return null}var pm=0,Es=null,zc=null,ca=null,x8=!1,N5=!1,ex=!1,k8=0,YO=0,_5=null,tK=0;function du(){throw Error(h(321))}function FA(w,y){if(y===null)return!1;for(var j=0;j<y.length&&j<w.length;j++)if(!l1(w[j],y[j]))return!1;return!0}function qA(w,y,j,D,B,H){return pm=H,Es=y,y.memoizedState=null,y.updateQueue=null,y.lanes=0,he.H=w===null||w.memoizedState===null?G$:nN,ex=!1,H=j(D,B),ex=!1,N5&&(H=a$(y,j,D,B)),u$(w),H}function u$(w){he.H=n6;var y=zc!==null&&zc.next!==null;if(pm=0,ca=zc=Es=null,x8=!1,YO=0,_5=null,y)throw Error(h(300));w===null||Du||(w=w.dependencies,w!==null&&qO(w)&&(Du=!0))}function a$(w,y,j,D){Es=w;var B=0;do{if(N5&&(_5=null),YO=0,N5=!1,25<=B)throw Error(h(301));if(B+=1,ca=zc=null,w.updateQueue!=null){var H=w.updateQueue;H.lastEffect=null,H.events=null,H.stores=null,H.memoCache!=null&&(H.memoCache.index=0)}he.H=lK,H=y(j,D)}while(N5);return H}function nK(){var w=he.H,y=w.useState()[0];return y=typeof y.then=="function"?ZO(y):y,w=w.useState()[0],(zc!==null?zc.memoizedState:null)!==w&&(Es.flags|=1024),y}function HA(){var w=k8!==0;return k8=0,w}function QA(w,y,j){y.updateQueue=w.updateQueue,y.flags&=-2053,w.lanes&=~j}function GA(w){if(x8){for(w=w.memoizedState;w!==null;){var y=w.queue;y!==null&&(y.pending=null),w=w.next}x8=!1}pm=0,ca=zc=Es=null,N5=!1,YO=k8=0,_5=null}function Gh(){var w={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ca===null?Es.memoizedState=ca=w:ca=ca.next=w,ca}function _u(){if(zc===null){var w=Es.alternate;w=w!==null?w.memoizedState:null}else w=zc.next;var y=ca===null?Es.memoizedState:ca.next;if(y!==null)ca=y,zc=w;else{if(w===null)throw Es.alternate===null?Error(h(467)):Error(h(310));zc=w,w={memoizedState:zc.memoizedState,baseState:zc.baseState,baseQueue:zc.baseQueue,queue:zc.queue,next:null},ca===null?Es.memoizedState=ca=w:ca=ca.next=w}return ca}function O8(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ZO(w){var y=YO;return YO+=1,_5===null&&(_5=[]),w=e$(_5,w,y),y=Es,(ca===null?y.memoizedState:ca.next)===null&&(y=y.alternate,he.H=y===null||y.memoizedState===null?G$:nN),w}function S8(w){if(w!==null&&typeof w=="object"){if(typeof w.then=="function")return ZO(w);if(w.$$typeof===te)return Ff(w)}throw Error(h(438,String(w)))}function UA(w){var y=null,j=Es.updateQueue;if(j!==null&&(y=j.memoCache),y==null){var D=Es.alternate;D!==null&&(D=D.updateQueue,D!==null&&(D=D.memoCache,D!=null&&(y={data:D.data.map(function(B){return B.slice()}),index:0})))}if(y==null&&(y={data:[],index:0}),j===null&&(j=O8(),Es.updateQueue=j),j.memoCache=y,j=y.data[y.index],j===void 0)for(j=y.data[y.index]=Array(w),D=0;D<w;D++)j[D]=Ke;return y.index++,j}function bm(w,y){return typeof y=="function"?y(w):y}function j8(w){var y=_u();return JA(y,zc,w)}function JA(w,y,j){var D=w.queue;if(D===null)throw Error(h(311));D.lastRenderedReducer=j;var B=w.baseQueue,H=D.pending;if(H!==null){if(B!==null){var fe=B.next;B.next=H.next,H.next=fe}y.baseQueue=B=H,D.pending=null}if(H=w.baseState,B===null)w.memoizedState=H;else{y=B.next;var Ae=fe=null,pt=null,Ft=y,pn=!1;do{var Sn=Ft.lane&-536870913;if(Sn!==Ft.lane?(mo&Sn)===Sn:(pm&Sn)===Sn){var Zt=Ft.revertLane;if(Zt===0)pt!==null&&(pt=pt.next={lane:0,revertLane:0,gesture:null,action:Ft.action,hasEagerState:Ft.hasEagerState,eagerState:Ft.eagerState,next:null}),Sn===T5&&(pn=!0);else if((pm&Zt)===Zt){Ft=Ft.next,Zt===T5&&(pn=!0);continue}else Sn={lane:0,revertLane:Ft.revertLane,gesture:null,action:Ft.action,hasEagerState:Ft.hasEagerState,eagerState:Ft.eagerState,next:null},pt===null?(Ae=pt=Sn,fe=H):pt=pt.next=Sn,Es.lanes|=Zt,j2|=Zt;Sn=Ft.action,ex&&j(H,Sn),H=Ft.hasEagerState?Ft.eagerState:j(H,Sn)}else Zt={lane:Sn,revertLane:Ft.revertLane,gesture:Ft.gesture,action:Ft.action,hasEagerState:Ft.hasEagerState,eagerState:Ft.eagerState,next:null},pt===null?(Ae=pt=Zt,fe=H):pt=pt.next=Zt,Es.lanes|=Sn,j2|=Sn;Ft=Ft.next}while(Ft!==null&&Ft!==y);if(pt===null?fe=H:pt.next=Ae,!l1(H,w.memoizedState)&&(Du=!0,pn&&(j=E5,j!==null)))throw j;w.memoizedState=H,w.baseState=fe,w.baseQueue=pt,D.lastRenderedState=H}return B===null&&(D.lanes=0),[w.memoizedState,D.dispatch]}function f$(w){var y=_u(),j=y.queue;if(j===null)throw Error(h(311));j.lastRenderedReducer=w;var D=j.dispatch,B=j.pending,H=y.memoizedState;if(B!==null){j.pending=null;var fe=B=B.next;do H=w(H,fe.action),fe=fe.next;while(fe!==B);l1(H,y.memoizedState)||(Du=!0),y.memoizedState=H,y.baseQueue===null&&(y.baseState=H),j.lastRenderedState=H}return[H,D]}function h$(w,y,j){var D=Es,B=_u(),H=Oo;if(H){if(j===void 0)throw Error(h(407));j=j()}else j=y();var fe=!l1((zc||B).memoizedState,j);if(fe&&(B.memoizedState=j,Du=!0),B=B.queue,WA(p$.bind(null,D,B,w),[w]),B.getSnapshot!==y||fe||ca!==null&&ca.memoizedState.tag&1){if(D.flags|=2048,D5(9,{destroy:void 0},g$.bind(null,D,B,j,y),null),el===null)throw Error(h(349));H||(pm&127)!==0||d$(D,y,j)}return j}function d$(w,y,j){w.flags|=16384,w={getSnapshot:y,value:j},y=Es.updateQueue,y===null?(y=O8(),Es.updateQueue=y,y.stores=[w]):(j=y.stores,j===null?y.stores=[w]:j.push(w))}function g$(w,y,j,D){y.value=j,y.getSnapshot=D,b$(y)&&m$(w)}function p$(w,y,j){return j(function(){b$(y)&&m$(w)})}function b$(w){var y=w.getSnapshot;w=w.value;try{var j=y();return!l1(w,j)}catch{return!0}}function m$(w){var y=Uy(w,2);y!==null&&Md(y,w,2)}function VA(w){var y=Gh();if(typeof w=="function"){var j=w;if(w=j(),ex){c1(!0);try{j()}finally{c1(!1)}}}return y.memoizedState=y.baseState=w,y.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bm,lastRenderedState:w},y}function w$(w,y,j,D){return w.baseState=j,JA(w,zc,typeof D=="function"?D:bm)}function iK(w,y,j,D,B){if(M8(w))throw Error(h(485));if(w=y.action,w!==null){var H={payload:B,action:w,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(fe){H.listeners.push(fe)}};he.T!==null?j(!0):H.isTransition=!1,D(H),j=y.pending,j===null?(H.next=y.pending=H,v$(y,H)):(H.next=j.next,y.pending=j.next=H)}}function v$(w,y){var j=y.action,D=y.payload,B=w.state;if(y.isTransition){var H=he.T,fe={};he.T=fe;try{var Ae=j(B,D),pt=he.S;pt!==null&&pt(fe,Ae),y$(w,y,Ae)}catch(Ft){XA(w,y,Ft)}finally{H!==null&&fe.types!==null&&(H.types=fe.types),he.T=H}}else try{H=j(B,D),y$(w,y,H)}catch(Ft){XA(w,y,Ft)}}function y$(w,y,j){j!==null&&typeof j=="object"&&typeof j.then=="function"?j.then(function(D){x$(w,y,D)},function(D){return XA(w,y,D)}):x$(w,y,j)}function x$(w,y,j){y.status="fulfilled",y.value=j,k$(y),w.state=j,y=w.pending,y!==null&&(j=y.next,j===y?w.pending=null:(j=j.next,y.next=j,v$(w,j)))}function XA(w,y,j){var D=w.pending;if(w.pending=null,D!==null){D=D.next;do y.status="rejected",y.reason=j,k$(y),y=y.next;while(y!==D)}w.action=null}function k$(w){w=w.listeners;for(var y=0;y<w.length;y++)(0,w[y])()}function O$(w,y){return y}function S$(w,y){if(Oo){var j=el.formState;if(j!==null){e:{var D=Es;if(Oo){if(jl){t:{for(var B=jl,H=hg;B.nodeType!==8;){if(!H){B=null;break t}if(B=pg(B.nextSibling),B===null){B=null;break t}}H=B.data,B=H==="F!"||H==="F"?B:null}if(B){jl=pg(B.nextSibling),D=B.data==="F!";break e}}d2(D)}D=!1}D&&(y=j[0])}}return j=Gh(),j.memoizedState=j.baseState=y,D={pending:null,lanes:0,dispatch:null,lastRenderedReducer:O$,lastRenderedState:y},j.queue=D,j=q$.bind(null,Es,D),D.dispatch=j,D=VA(!1),H=tN.bind(null,Es,!1,D.queue),D=Gh(),B={state:y,dispatch:null,action:w,pending:null},D.queue=B,j=iK.bind(null,Es,B,H,j),B.dispatch=j,D.memoizedState=w,[y,j,!1]}function j$(w){var y=_u();return T$(y,zc,w)}function T$(w,y,j){if(y=JA(w,y,O$)[0],w=j8(bm)[0],typeof y=="object"&&y!==null&&typeof y.then=="function")try{var D=ZO(y)}catch(fe){throw fe===C5?p8:fe}else D=y;y=_u();var B=y.queue,H=B.dispatch;return j!==y.memoizedState&&(Es.flags|=2048,D5(9,{destroy:void 0},rK.bind(null,B,j),null)),[D,H,w]}function rK(w,y){w.action=y}function E$(w){var y=_u(),j=zc;if(j!==null)return T$(y,j,w);_u(),y=y.memoizedState,j=_u();var D=j.queue.dispatch;return j.memoizedState=w,[y,D,!1]}function D5(w,y,j,D){return w={tag:w,create:j,deps:D,inst:y,next:null},y=Es.updateQueue,y===null&&(y=O8(),Es.updateQueue=y),j=y.lastEffect,j===null?y.lastEffect=w.next=w:(D=j.next,j.next=w,w.next=D,y.lastEffect=w),w}function C$(){return _u().memoizedState}function T8(w,y,j,D){var B=Gh();Es.flags|=w,B.memoizedState=D5(1|y,{destroy:void 0},j,D===void 0?null:D)}function E8(w,y,j,D){var B=_u();D=D===void 0?null:D;var H=B.memoizedState.inst;zc!==null&&D!==null&&FA(D,zc.memoizedState.deps)?B.memoizedState=D5(y,H,j,D):(Es.flags|=w,B.memoizedState=D5(1|y,H,j,D))}function M$(w,y){T8(8390656,8,w,y)}function WA(w,y){E8(2048,8,w,y)}function sK(w){Es.flags|=4;var y=Es.updateQueue;if(y===null)y=O8(),Es.updateQueue=y,y.events=[w];else{var j=y.events;j===null?y.events=[w]:j.push(w)}}function A$(w){var y=_u().memoizedState;return sK({ref:y,nextImpl:w}),function(){if((oc&2)!==0)throw Error(h(440));return y.impl.apply(void 0,arguments)}}function N$(w,y){return E8(4,2,w,y)}function _$(w,y){return E8(4,4,w,y)}function D$(w,y){if(typeof y=="function"){w=w();var j=y(w);return function(){typeof j=="function"?j():y(null)}}if(y!=null)return w=w(),y.current=w,function(){y.current=null}}function L$(w,y,j){j=j!=null?j.concat([w]):null,E8(4,4,D$.bind(null,y,w),j)}function KA(){}function P$(w,y){var j=_u();y=y===void 0?null:y;var D=j.memoizedState;return y!==null&&FA(y,D[1])?D[0]:(j.memoizedState=[w,y],w)}function I$(w,y){var j=_u();y=y===void 0?null:y;var D=j.memoizedState;if(y!==null&&FA(y,D[1]))return D[0];if(D=w(),ex){c1(!0);try{w()}finally{c1(!1)}}return j.memoizedState=[D,y],D}function YA(w,y,j){return j===void 0||(pm&1073741824)!==0&&(mo&261930)===0?w.memoizedState=y:(w.memoizedState=j,w=MB(),Es.lanes|=w,j2|=w,j)}function R$(w,y,j,D){return l1(j,y)?j:A5.current!==null?(w=YA(w,j,D),l1(w,y)||(Du=!0),w):(pm&42)===0||(pm&1073741824)!==0&&(mo&261930)===0?(Du=!0,w.memoizedState=j):(w=MB(),Es.lanes|=w,j2|=w,y)}function $$(w,y,j,D,B){var H=Ee.p;Ee.p=H!==0&&8>H?H:8;var fe=he.T,Ae={};he.T=Ae,tN(w,!1,y,j);try{var pt=B(),Ft=he.S;if(Ft!==null&&Ft(Ae,pt),pt!==null&&typeof pt=="object"&&typeof pt.then=="function"){var pn=eK(pt,D);t6(w,y,pn,p1(w))}else t6(w,y,D,p1(w))}catch(Sn){t6(w,y,{then:function(){},status:"rejected",reason:Sn},p1())}finally{Ee.p=H,fe!==null&&Ae.types!==null&&(fe.types=Ae.types),he.T=fe}}function ZA(){}function e6(w,y,j,D){if(w.tag!==5)throw Error(h(476));var B=B$(w).queue;$$(w,B,y,Te,j===null?ZA:function(){return C8(w),j(D)})}function B$(w){var y=w.memoizedState;if(y!==null)return y;y={memoizedState:Te,baseState:Te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bm,lastRenderedState:Te},next:null};var j={};return y.next={memoizedState:j,baseState:j,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bm,lastRenderedState:j},next:null},w.memoizedState=y,w=w.alternate,w!==null&&(w.memoizedState=y),y}function C8(w){var y=B$(w);y.next===null&&(y=w.alternate.memoizedState),t6(w,y.next.queue,{},p1())}function eN(){return Ff(m6)}function z$(){return _u().memoizedState}function F$(){return _u().memoizedState}function oK(w){for(var y=w.return;y!==null;){switch(y.tag){case 24:case 3:var j=p1();w=w2(j);var D=v2(y,w,j);D!==null&&(Md(D,y,j),XO(D,y,j)),y={cache:MA()},w.payload=y;return}y=y.return}}function cK(w,y,j){var D=p1();j={lane:D,revertLane:0,gesture:null,action:j,hasEagerState:!1,eagerState:null,next:null},M8(w)?H$(y,j):(j=wA(w,y,j,D),j!==null&&(Md(j,w,D),Q$(j,y,D)))}function q$(w,y,j){var D=p1();t6(w,y,j,D)}function t6(w,y,j,D){var B={lane:D,revertLane:0,gesture:null,action:j,hasEagerState:!1,eagerState:null,next:null};if(M8(w))H$(y,B);else{var H=w.alternate;if(w.lanes===0&&(H===null||H.lanes===0)&&(H=y.lastRenderedReducer,H!==null))try{var fe=y.lastRenderedState,Ae=H(fe,j);if(B.hasEagerState=!0,B.eagerState=Ae,l1(Ae,fe))return a8(w,y,B,0),el===null&&u8(),!1}catch{}finally{}if(j=wA(w,y,B,D),j!==null)return Md(j,w,D),Q$(j,y,D),!0}return!1}function tN(w,y,j,D){if(D={lane:2,revertLane:LN(),gesture:null,action:D,hasEagerState:!1,eagerState:null,next:null},M8(w)){if(y)throw Error(h(479))}else y=wA(w,j,D,2),y!==null&&Md(y,w,2)}function M8(w){var y=w.alternate;return w===Es||y!==null&&y===Es}function H$(w,y){N5=x8=!0;var j=w.pending;j===null?y.next=y:(y.next=j.next,j.next=y),w.pending=y}function Q$(w,y,j){if((j&4194048)!==0){var D=y.lanes;D&=w.pendingLanes,j|=D,y.lanes=j,Iy(w,j)}}var n6={readContext:Ff,use:S8,useCallback:du,useContext:du,useEffect:du,useImperativeHandle:du,useLayoutEffect:du,useInsertionEffect:du,useMemo:du,useReducer:du,useRef:du,useState:du,useDebugValue:du,useDeferredValue:du,useTransition:du,useSyncExternalStore:du,useId:du,useHostTransitionStatus:du,useFormState:du,useActionState:du,useOptimistic:du,useMemoCache:du,useCacheRefresh:du};n6.useEffectEvent=du;var G$={readContext:Ff,use:S8,useCallback:function(w,y){return Gh().memoizedState=[w,y===void 0?null:y],w},useContext:Ff,useEffect:M$,useImperativeHandle:function(w,y,j){j=j!=null?j.concat([w]):null,T8(4194308,4,D$.bind(null,y,w),j)},useLayoutEffect:function(w,y){return T8(4194308,4,w,y)},useInsertionEffect:function(w,y){T8(4,2,w,y)},useMemo:function(w,y){var j=Gh();y=y===void 0?null:y;var D=w();if(ex){c1(!0);try{w()}finally{c1(!1)}}return j.memoizedState=[D,y],D},useReducer:function(w,y,j){var D=Gh();if(j!==void 0){var B=j(y);if(ex){c1(!0);try{j(y)}finally{c1(!1)}}}else B=y;return D.memoizedState=D.baseState=B,w={pending:null,lanes:0,dispatch:null,lastRenderedReducer:w,lastRenderedState:B},D.queue=w,w=w.dispatch=cK.bind(null,Es,w),[D.memoizedState,w]},useRef:function(w){var y=Gh();return w={current:w},y.memoizedState=w},useState:function(w){w=VA(w);var y=w.queue,j=q$.bind(null,Es,y);return y.dispatch=j,[w.memoizedState,j]},useDebugValue:KA,useDeferredValue:function(w,y){var j=Gh();return YA(j,w,y)},useTransition:function(){var w=VA(!1);return w=$$.bind(null,Es,w.queue,!0,!1),Gh().memoizedState=w,[!1,w]},useSyncExternalStore:function(w,y,j){var D=Es,B=Gh();if(Oo){if(j===void 0)throw Error(h(407));j=j()}else{if(j=y(),el===null)throw Error(h(349));(mo&127)!==0||d$(D,y,j)}B.memoizedState=j;var H={value:j,getSnapshot:y};return B.queue=H,M$(p$.bind(null,D,H,w),[w]),D.flags|=2048,D5(9,{destroy:void 0},g$.bind(null,D,H,j,y),null),j},useId:function(){var w=Gh(),y=el.identifierPrefix;if(Oo){var j=Ap,D=Mp;j=(D&~(1<<32-zf(D)-1)).toString(32)+j,y="_"+y+"R_"+j,j=k8++,0<j&&(y+="H"+j.toString(32)),y+="_"}else j=tK++,y="_"+y+"r_"+j.toString(32)+"_";return w.memoizedState=y},useHostTransitionStatus:eN,useFormState:S$,useActionState:S$,useOptimistic:function(w){var y=Gh();y.memoizedState=y.baseState=w;var j={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return y.queue=j,y=tN.bind(null,Es,!0,j),j.dispatch=y,[w,y]},useMemoCache:UA,useCacheRefresh:function(){return Gh().memoizedState=oK.bind(null,Es)},useEffectEvent:function(w){var y=Gh(),j={impl:w};return y.memoizedState=j,function(){if((oc&2)!==0)throw Error(h(440));return j.impl.apply(void 0,arguments)}}},nN={readContext:Ff,use:S8,useCallback:P$,useContext:Ff,useEffect:WA,useImperativeHandle:L$,useInsertionEffect:N$,useLayoutEffect:_$,useMemo:I$,useReducer:j8,useRef:C$,useState:function(){return j8(bm)},useDebugValue:KA,useDeferredValue:function(w,y){var j=_u();return R$(j,zc.memoizedState,w,y)},useTransition:function(){var w=j8(bm)[0],y=_u().memoizedState;return[typeof w=="boolean"?w:ZO(w),y]},useSyncExternalStore:h$,useId:z$,useHostTransitionStatus:eN,useFormState:j$,useActionState:j$,useOptimistic:function(w,y){var j=_u();return w$(j,zc,w,y)},useMemoCache:UA,useCacheRefresh:F$};nN.useEffectEvent=A$;var lK={readContext:Ff,use:S8,useCallback:P$,useContext:Ff,useEffect:WA,useImperativeHandle:L$,useInsertionEffect:N$,useLayoutEffect:_$,useMemo:I$,useReducer:f$,useRef:C$,useState:function(){return f$(bm)},useDebugValue:KA,useDeferredValue:function(w,y){var j=_u();return zc===null?YA(j,w,y):R$(j,zc.memoizedState,w,y)},useTransition:function(){var w=f$(bm)[0],y=_u().memoizedState;return[typeof w=="boolean"?w:ZO(w),y]},useSyncExternalStore:h$,useId:z$,useHostTransitionStatus:eN,useFormState:E$,useActionState:E$,useOptimistic:function(w,y){var j=_u();return zc!==null?w$(j,zc,w,y):(j.baseState=w,[w,j.queue.dispatch])},useMemoCache:UA,useCacheRefresh:F$};lK.useEffectEvent=A$;function iN(w,y,j,D){y=w.memoizedState,j=j(D,y),j=j==null?y:_({},y,j),w.memoizedState=j,w.lanes===0&&(w.updateQueue.baseState=j)}var A8={enqueueSetState:function(w,y,j){w=w._reactInternals;var D=p1(),B=w2(D);B.payload=y,j!=null&&(B.callback=j),y=v2(w,B,D),y!==null&&(Md(y,w,D),XO(y,w,D))},enqueueReplaceState:function(w,y,j){w=w._reactInternals;var D=p1(),B=w2(D);B.tag=1,B.payload=y,j!=null&&(B.callback=j),y=v2(w,B,D),y!==null&&(Md(y,w,D),XO(y,w,D))},enqueueForceUpdate:function(w,y){w=w._reactInternals;var j=p1(),D=w2(j);D.tag=2,y!=null&&(D.callback=y),y=v2(w,D,j),y!==null&&(Md(y,w,j),XO(y,w,j))}};function U$(w,y,j,D,B,H,fe){return w=w.stateNode,typeof w.shouldComponentUpdate=="function"?w.shouldComponentUpdate(D,H,fe):y.prototype&&y.prototype.isPureReactComponent?!BO(j,D)||!BO(B,H):!0}function J$(w,y,j,D){w=y.state,typeof y.componentWillReceiveProps=="function"&&y.componentWillReceiveProps(j,D),typeof y.UNSAFE_componentWillReceiveProps=="function"&&y.UNSAFE_componentWillReceiveProps(j,D),y.state!==w&&A8.enqueueReplaceState(y,y.state,null)}function tx(w,y){var j=y;if("ref"in y){j={};for(var D in y)D!=="ref"&&(j[D]=y[D])}if(w=w.defaultProps){j===y&&(j=_({},j));for(var B in w)j[B]===void 0&&(j[B]=w[B])}return j}function V$(w){l8(w)}function X$(w){console.error(w)}function W$(w){l8(w)}function N8(w,y){try{var j=w.onUncaughtError;j(y.value,{componentStack:y.stack})}catch(D){setTimeout(function(){throw D})}}function K$(w,y,j){try{var D=w.onCaughtError;D(j.value,{componentStack:j.stack,errorBoundary:y.tag===1?y.stateNode:null})}catch(B){setTimeout(function(){throw B})}}function rN(w,y,j){return j=w2(j),j.tag=3,j.payload={element:null},j.callback=function(){N8(w,y)},j}function Y$(w){return w=w2(w),w.tag=3,w}function h1(w,y,j,D){var B=j.type.getDerivedStateFromError;if(typeof B=="function"){var H=D.value;w.payload=function(){return B(H)},w.callback=function(){K$(y,j,D)}}var fe=j.stateNode;fe!==null&&typeof fe.componentDidCatch=="function"&&(w.callback=function(){K$(y,j,D),typeof B!="function"&&(T2===null?T2=new Set([this]):T2.add(this));var Ae=D.stack;this.componentDidCatch(D.value,{componentStack:Ae!==null?Ae:""})})}function uK(w,y,j,D,B){if(j.flags|=32768,D!==null&&typeof D=="object"&&typeof D.then=="function"){if(y=j.alternate,y!==null&&j5(y,j,B,!0),j=a1.current,j!==null){switch(j.tag){case 31:case 13:return dg===null?H8():j.alternate===null&&gu===0&&(gu=3),j.flags&=-257,j.flags|=65536,j.lanes=B,D===b8?j.flags|=16384:(y=j.updateQueue,y===null?j.updateQueue=new Set([D]):y.add(D),NN(w,D,B)),!1;case 22:return j.flags|=65536,D===b8?j.flags|=16384:(y=j.updateQueue,y===null?(y={transitions:null,markerInstances:null,retryQueue:new Set([D])},j.updateQueue=y):(j=y.retryQueue,j===null?y.retryQueue=new Set([D]):j.add(D)),NN(w,D,B)),!1}throw Error(h(435,j.tag))}return NN(w,D,B),H8(),!1}if(Oo)return y=a1.current,y!==null?((y.flags&65536)===0&&(y.flags|=256),y.flags|=65536,y.lanes=B,D!==SA&&(w=Error(h(422),{cause:D}),g2(ug(w,j)))):(D!==SA&&(y=Error(h(423),{cause:D}),g2(ug(y,j))),w=w.current.alternate,w.flags|=65536,B&=-B,w.lanes|=B,D=ug(D,j),B=rN(w.stateNode,D,B),IA(w,B),gu!==4&&(gu=2)),!1;var H=Error(h(520),{cause:D});if(H=ug(H,j),a6===null?a6=[H]:a6.push(H),gu!==4&&(gu=2),y===null)return!0;D=ug(D,j),j=y;do{switch(j.tag){case 3:return j.flags|=65536,w=B&-B,j.lanes|=w,w=rN(j.stateNode,D,w),IA(j,w),!1;case 1:if(y=j.type,H=j.stateNode,(j.flags&128)===0&&(typeof y.getDerivedStateFromError=="function"||H!==null&&typeof H.componentDidCatch=="function"&&(T2===null||!T2.has(H))))return j.flags|=65536,B&=-B,j.lanes|=B,B=Y$(B),h1(B,w,j,D),IA(j,B),!1}j=j.return}while(j!==null);return!1}var _p=Error(h(461)),Du=!1;function qf(w,y,j,D){y.child=w===null?r$(y,null,j,D):Zy(y,w.child,j,D)}function Z$(w,y,j,D,B){j=j.render;var H=y.ref;if("ref"in D){var fe={};for(var Ae in D)Ae!=="ref"&&(fe[Ae]=D[Ae])}else fe=D;return b2(y),D=qA(w,y,j,fe,H,B),Ae=HA(),w!==null&&!Du?(QA(w,y,B),mm(w,y,B)):(Oo&&Ae&&kA(y),y.flags|=1,qf(w,y,D,B),y.child)}function eB(w,y,j,D,B){if(w===null){var H=j.type;return typeof H=="function"&&!vA(H)&&H.defaultProps===void 0&&j.compare===null?(y.tag=15,y.type=H,tB(w,y,H,D,B)):(w=h8(j.type,null,D,y,y.mode,B),w.ref=y.ref,w.return=y,y.child=w)}if(H=w.child,!hN(w,B)){var fe=H.memoizedProps;if(j=j.compare,j=j!==null?j:BO,j(fe,D)&&w.ref===y.ref)return mm(w,y,B)}return y.flags|=1,w=hm(H,D),w.ref=y.ref,w.return=y,y.child=w}function tB(w,y,j,D,B){if(w!==null){var H=w.memoizedProps;if(BO(H,D)&&w.ref===y.ref)if(Du=!1,y.pendingProps=D=H,hN(w,B))(w.flags&131072)!==0&&(Du=!0);else return y.lanes=w.lanes,mm(w,y,B)}return sN(w,y,j,D,B)}function nB(w,y,j,D){var B=D.children,H=w!==null?w.memoizedState:null;if(w===null&&y.stateNode===null&&(y.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),D.mode==="hidden"){if((y.flags&128)!==0){if(H=H!==null?H.baseLanes|j:j,w!==null){for(D=y.child=w.child,B=0;D!==null;)B=B|D.lanes|D.childLanes,D=D.sibling;D=B&~H}else D=0,y.child=null;return iB(w,y,H,j,D)}if((j&536870912)!==0)y.memoizedState={baseLanes:0,cachePool:null},w!==null&&g8(y,H!==null?H.cachePool:null),H!==null?c$(y,H):$A(),l$(y);else return D=y.lanes=536870912,iB(w,y,H!==null?H.baseLanes|j:j,j,D)}else H!==null?(g8(y,H.cachePool),c$(y,H),x2(),y.memoizedState=null):(w!==null&&g8(y,null),$A(),x2());return qf(w,y,B,j),y.child}function i6(w,y){return w!==null&&w.tag===22||y.stateNode!==null||(y.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),y.sibling}function iB(w,y,j,D,B){var H=NA();return H=H===null?null:{parent:oa._currentValue,pool:H},y.memoizedState={baseLanes:j,cachePool:H},w!==null&&g8(y,null),$A(),l$(y),w!==null&&j5(w,y,D,!0),y.childLanes=B,null}function _8(w,y){return y=et({mode:y.mode,children:y.children},w.mode),y.ref=w.ref,w.child=y,y.return=w,y}function rB(w,y,j){return Zy(y,w.child,null,j),w=_8(y,y.pendingProps),w.flags|=2,f1(y),y.memoizedState=null,w}function aK(w,y,j){var D=y.pendingProps,B=(y.flags&128)!==0;if(y.flags&=-129,w===null){if(Oo){if(D.mode==="hidden")return w=_8(y,D),y.lanes=536870912,i6(null,w);if(zA(y),(w=jl)?(w=hz(w,hg),w=w!==null&&w.data==="&"?w:null,w!==null&&(y.memoizedState={dehydrated:w,treeContext:f2!==null?{id:Mp,overflow:Ap}:null,retryLane:536870912,hydrationErrors:null},j=GR(w),j.return=y,y.child=j,cf=y,jl=null)):w=null,w===null)throw d2(y);return y.lanes=536870912,null}return _8(y,D)}var H=w.memoizedState;if(H!==null){var fe=H.dehydrated;if(zA(y),B)if(y.flags&256)y.flags&=-257,y=rB(w,y,j);else if(y.memoizedState!==null)y.child=w.child,y.flags|=128,y=null;else throw Error(h(558));else if(Du||j5(w,y,j,!1),B=(j&w.childLanes)!==0,Du||B){if(D=el,D!==null&&(fe=a5(D,j),fe!==0&&fe!==H.retryLane))throw H.retryLane=fe,Uy(w,fe),Md(D,w,fe),_p;H8(),y=rB(w,y,j)}else w=H.treeContext,jl=pg(fe.nextSibling),cf=y,Oo=!0,h2=null,hg=!1,w!==null&&VR(y,w),y=_8(y,D),y.flags|=4096;return y}return w=hm(w.child,{mode:D.mode,children:D.children}),w.ref=y.ref,y.child=w,w.return=y,w}function D8(w,y){var j=y.ref;if(j===null)w!==null&&w.ref!==null&&(y.flags|=4194816);else{if(typeof j!="function"&&typeof j!="object")throw Error(h(284));(w===null||w.ref!==j)&&(y.flags|=4194816)}}function sN(w,y,j,D,B){return b2(y),j=qA(w,y,j,D,void 0,B),D=HA(),w!==null&&!Du?(QA(w,y,B),mm(w,y,B)):(Oo&&D&&kA(y),y.flags|=1,qf(w,y,j,B),y.child)}function sB(w,y,j,D,B,H){return b2(y),y.updateQueue=null,j=a$(y,D,j,B),u$(w),D=HA(),w!==null&&!Du?(QA(w,y,H),mm(w,y,H)):(Oo&&D&&kA(y),y.flags|=1,qf(w,y,j,H),y.child)}function oB(w,y,j,D,B){if(b2(y),y.stateNode===null){var H=y5,fe=j.contextType;typeof fe=="object"&&fe!==null&&(H=Ff(fe)),H=new j(D,H),y.memoizedState=H.state!==null&&H.state!==void 0?H.state:null,H.updater=A8,y.stateNode=H,H._reactInternals=y,H=y.stateNode,H.props=D,H.state=y.memoizedState,H.refs={},LA(y),fe=j.contextType,H.context=typeof fe=="object"&&fe!==null?Ff(fe):y5,H.state=y.memoizedState,fe=j.getDerivedStateFromProps,typeof fe=="function"&&(iN(y,j,fe,D),H.state=y.memoizedState),typeof j.getDerivedStateFromProps=="function"||typeof H.getSnapshotBeforeUpdate=="function"||typeof H.UNSAFE_componentWillMount!="function"&&typeof H.componentWillMount!="function"||(fe=H.state,typeof H.componentWillMount=="function"&&H.componentWillMount(),typeof H.UNSAFE_componentWillMount=="function"&&H.UNSAFE_componentWillMount(),fe!==H.state&&A8.enqueueReplaceState(H,H.state,null),KO(y,D,H,B),WO(),H.state=y.memoizedState),typeof H.componentDidMount=="function"&&(y.flags|=4194308),D=!0}else if(w===null){H=y.stateNode;var Ae=y.memoizedProps,pt=tx(j,Ae);H.props=pt;var Ft=H.context,pn=j.contextType;fe=y5,typeof pn=="object"&&pn!==null&&(fe=Ff(pn));var Sn=j.getDerivedStateFromProps;pn=typeof Sn=="function"||typeof H.getSnapshotBeforeUpdate=="function",Ae=y.pendingProps!==Ae,pn||typeof H.UNSAFE_componentWillReceiveProps!="function"&&typeof H.componentWillReceiveProps!="function"||(Ae||Ft!==fe)&&J$(y,H,D,fe),m2=!1;var Zt=y.memoizedState;H.state=Zt,KO(y,D,H,B),WO(),Ft=y.memoizedState,Ae||Zt!==Ft||m2?(typeof Sn=="function"&&(iN(y,j,Sn,D),Ft=y.memoizedState),(pt=m2||U$(y,j,pt,D,Zt,Ft,fe))?(pn||typeof H.UNSAFE_componentWillMount!="function"&&typeof H.componentWillMount!="function"||(typeof H.componentWillMount=="function"&&H.componentWillMount(),typeof H.UNSAFE_componentWillMount=="function"&&H.UNSAFE_componentWillMount()),typeof H.componentDidMount=="function"&&(y.flags|=4194308)):(typeof H.componentDidMount=="function"&&(y.flags|=4194308),y.memoizedProps=D,y.memoizedState=Ft),H.props=D,H.state=Ft,H.context=fe,D=pt):(typeof H.componentDidMount=="function"&&(y.flags|=4194308),D=!1)}else{H=y.stateNode,PA(w,y),fe=y.memoizedProps,pn=tx(j,fe),H.props=pn,Sn=y.pendingProps,Zt=H.context,Ft=j.contextType,pt=y5,typeof Ft=="object"&&Ft!==null&&(pt=Ff(Ft)),Ae=j.getDerivedStateFromProps,(Ft=typeof Ae=="function"||typeof H.getSnapshotBeforeUpdate=="function")||typeof H.UNSAFE_componentWillReceiveProps!="function"&&typeof H.componentWillReceiveProps!="function"||(fe!==Sn||Zt!==pt)&&J$(y,H,D,pt),m2=!1,Zt=y.memoizedState,H.state=Zt,KO(y,D,H,B),WO();var sn=y.memoizedState;fe!==Sn||Zt!==sn||m2||w!==null&&w.dependencies!==null&&qO(w.dependencies)?(typeof Ae=="function"&&(iN(y,j,Ae,D),sn=y.memoizedState),(pn=m2||U$(y,j,pn,D,Zt,sn,pt)||w!==null&&w.dependencies!==null&&qO(w.dependencies))?(Ft||typeof H.UNSAFE_componentWillUpdate!="function"&&typeof H.componentWillUpdate!="function"||(typeof H.componentWillUpdate=="function"&&H.componentWillUpdate(D,sn,pt),typeof H.UNSAFE_componentWillUpdate=="function"&&H.UNSAFE_componentWillUpdate(D,sn,pt)),typeof H.componentDidUpdate=="function"&&(y.flags|=4),typeof H.getSnapshotBeforeUpdate=="function"&&(y.flags|=1024)):(typeof H.componentDidUpdate!="function"||fe===w.memoizedProps&&Zt===w.memoizedState||(y.flags|=4),typeof H.getSnapshotBeforeUpdate!="function"||fe===w.memoizedProps&&Zt===w.memoizedState||(y.flags|=1024),y.memoizedProps=D,y.memoizedState=sn),H.props=D,H.state=sn,H.context=pt,D=pn):(typeof H.componentDidUpdate!="function"||fe===w.memoizedProps&&Zt===w.memoizedState||(y.flags|=4),typeof H.getSnapshotBeforeUpdate!="function"||fe===w.memoizedProps&&Zt===w.memoizedState||(y.flags|=1024),D=!1)}return H=D,D8(w,y),D=(y.flags&128)!==0,H||D?(H=y.stateNode,j=D&&typeof j.getDerivedStateFromError!="function"?null:H.render(),y.flags|=1,w!==null&&D?(y.child=Zy(y,w.child,null,B),y.child=Zy(y,null,j,B)):qf(w,y,j,B),y.memoizedState=H.state,w=y.child):w=mm(w,y,B),w}function cB(w,y,j,D){return Vy(),y.flags|=256,qf(w,y,j,D),y.child}var oN={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cN(w){return{baseLanes:w,cachePool:ZR()}}function lN(w,y,j){return w=w!==null?w.childLanes&~j:0,y&&(w|=g1),w}function lB(w,y,j){var D=y.pendingProps,B=!1,H=(y.flags&128)!==0,fe;if((fe=H)||(fe=w!==null&&w.memoizedState===null?!1:(Nu.current&2)!==0),fe&&(B=!0,y.flags&=-129),fe=(y.flags&32)!==0,y.flags&=-33,w===null){if(Oo){if(B?y2(y):x2(),(w=jl)?(w=hz(w,hg),w=w!==null&&w.data!=="&"?w:null,w!==null&&(y.memoizedState={dehydrated:w,treeContext:f2!==null?{id:Mp,overflow:Ap}:null,retryLane:536870912,hydrationErrors:null},j=GR(w),j.return=y,y.child=j,cf=y,jl=null)):w=null,w===null)throw d2(y);return VN(w)?y.lanes=32:y.lanes=536870912,null}var Ae=D.children;return D=D.fallback,B?(x2(),B=y.mode,Ae=et({mode:"hidden",children:Ae},B),D=Jy(D,B,j,null),Ae.return=y,D.return=y,Ae.sibling=D,y.child=Ae,D=y.child,D.memoizedState=cN(j),D.childLanes=lN(w,fe,j),y.memoizedState=oN,i6(null,D)):(y2(y),uN(y,Ae))}var pt=w.memoizedState;if(pt!==null&&(Ae=pt.dehydrated,Ae!==null)){if(H)y.flags&256?(y2(y),y.flags&=-257,y=aN(w,y,j)):y.memoizedState!==null?(x2(),y.child=w.child,y.flags|=128,y=null):(x2(),Ae=D.fallback,B=y.mode,D=et({mode:"visible",children:D.children},B),Ae=Jy(Ae,B,j,null),Ae.flags|=2,D.return=y,Ae.return=y,D.sibling=Ae,y.child=D,Zy(y,w.child,null,j),D=y.child,D.memoizedState=cN(j),D.childLanes=lN(w,fe,j),y.memoizedState=oN,y=i6(null,D));else if(y2(y),VN(Ae)){if(fe=Ae.nextSibling&&Ae.nextSibling.dataset,fe)var Ft=fe.dgst;fe=Ft,D=Error(h(419)),D.stack="",D.digest=fe,g2({value:D,source:null,stack:null}),y=aN(w,y,j)}else if(Du||j5(w,y,j,!1),fe=(j&w.childLanes)!==0,Du||fe){if(fe=el,fe!==null&&(D=a5(fe,j),D!==0&&D!==pt.retryLane))throw pt.retryLane=D,Uy(w,D),Md(fe,w,D),_p;JN(Ae)||H8(),y=aN(w,y,j)}else JN(Ae)?(y.flags|=192,y.child=w.child,y=null):(w=pt.treeContext,jl=pg(Ae.nextSibling),cf=y,Oo=!0,h2=null,hg=!1,w!==null&&VR(y,w),y=uN(y,D.children),y.flags|=4096);return y}return B?(x2(),Ae=D.fallback,B=y.mode,pt=w.child,Ft=pt.sibling,D=hm(pt,{mode:"hidden",children:D.children}),D.subtreeFlags=pt.subtreeFlags&65011712,Ft!==null?Ae=hm(Ft,Ae):(Ae=Jy(Ae,B,j,null),Ae.flags|=2),Ae.return=y,D.return=y,D.sibling=Ae,y.child=D,i6(null,D),D=y.child,Ae=w.child.memoizedState,Ae===null?Ae=cN(j):(B=Ae.cachePool,B!==null?(pt=oa._currentValue,B=B.parent!==pt?{parent:pt,pool:pt}:B):B=ZR(),Ae={baseLanes:Ae.baseLanes|j,cachePool:B}),D.memoizedState=Ae,D.childLanes=lN(w,fe,j),y.memoizedState=oN,i6(w.child,D)):(y2(y),j=w.child,w=j.sibling,j=hm(j,{mode:"visible",children:D.children}),j.return=y,j.sibling=null,w!==null&&(fe=y.deletions,fe===null?(y.deletions=[w],y.flags|=16):fe.push(w)),y.child=j,y.memoizedState=null,j)}function uN(w,y){return y=et({mode:"visible",children:y},w.mode),y.return=w,w.child=y}function et(w,y){return w=u1(22,w,null,y),w.lanes=0,w}function aN(w,y,j){return Zy(y,w.child,null,j),w=uN(y,y.pendingProps.children),w.flags|=2,y.memoizedState=null,w}function uB(w,y,j){w.lanes|=y;var D=w.alternate;D!==null&&(D.lanes|=y),TA(w.return,y,j)}function fN(w,y,j,D,B,H){var fe=w.memoizedState;fe===null?w.memoizedState={isBackwards:y,rendering:null,renderingStartTime:0,last:D,tail:j,tailMode:B,treeForkCount:H}:(fe.isBackwards=y,fe.rendering=null,fe.renderingStartTime=0,fe.last=D,fe.tail=j,fe.tailMode=B,fe.treeForkCount=H)}function aB(w,y,j){var D=y.pendingProps,B=D.revealOrder,H=D.tail;D=D.children;var fe=Nu.current,Ae=(fe&2)!==0;if(Ae?(fe=fe&1|2,y.flags|=128):fe&=1,gt(Nu,fe),qf(w,y,D,j),D=Oo?FO:0,!Ae&&w!==null&&(w.flags&128)!==0)e:for(w=y.child;w!==null;){if(w.tag===13)w.memoizedState!==null&&uB(w,j,y);else if(w.tag===19)uB(w,j,y);else if(w.child!==null){w.child.return=w,w=w.child;continue}if(w===y)break e;for(;w.sibling===null;){if(w.return===null||w.return===y)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}switch(B){case"forwards":for(j=y.child,B=null;j!==null;)w=j.alternate,w!==null&&y8(w)===null&&(B=j),j=j.sibling;j=B,j===null?(B=y.child,y.child=null):(B=j.sibling,j.sibling=null),fN(y,!1,B,j,H,D);break;case"backwards":case"unstable_legacy-backwards":for(j=null,B=y.child,y.child=null;B!==null;){if(w=B.alternate,w!==null&&y8(w)===null){y.child=B;break}w=B.sibling,B.sibling=j,j=B,B=w}fN(y,!0,j,null,H,D);break;case"together":fN(y,!1,null,null,void 0,D);break;default:y.memoizedState=null}return y.child}function mm(w,y,j){if(w!==null&&(y.dependencies=w.dependencies),j2|=y.lanes,(j&y.childLanes)===0)if(w!==null){if(j5(w,y,j,!1),(j&y.childLanes)===0)return null}else return null;if(w!==null&&y.child!==w.child)throw Error(h(153));if(y.child!==null){for(w=y.child,j=hm(w,w.pendingProps),y.child=j,j.return=y;w.sibling!==null;)w=w.sibling,j=j.sibling=hm(w,w.pendingProps),j.return=y;j.sibling=null}return y.child}function hN(w,y){return(w.lanes&y)!==0?!0:(w=w.dependencies,!!(w!==null&&qO(w)))}function fK(w,y,j){switch(y.tag){case 3:wn(y,y.stateNode.containerInfo),p2(y,oa,w.memoizedState.cache),Vy();break;case 27:case 5:nr(y);break;case 4:wn(y,y.stateNode.containerInfo);break;case 10:p2(y,y.type,y.memoizedProps.value);break;case 31:if(y.memoizedState!==null)return y.flags|=128,zA(y),null;break;case 13:var D=y.memoizedState;if(D!==null)return D.dehydrated!==null?(y2(y),y.flags|=128,null):(j&y.child.childLanes)!==0?lB(w,y,j):(y2(y),w=mm(w,y,j),w!==null?w.sibling:null);y2(y);break;case 19:var B=(w.flags&128)!==0;if(D=(j&y.childLanes)!==0,D||(j5(w,y,j,!1),D=(j&y.childLanes)!==0),B){if(D)return aB(w,y,j);y.flags|=128}if(B=y.memoizedState,B!==null&&(B.rendering=null,B.tail=null,B.lastEffect=null),gt(Nu,Nu.current),D)break;return null;case 22:return y.lanes=0,nB(w,y,j,y.pendingProps);case 24:p2(y,oa,w.memoizedState.cache)}return mm(w,y,j)}function fB(w,y,j){if(w!==null)if(w.memoizedProps!==y.pendingProps)Du=!0;else{if(!hN(w,j)&&(y.flags&128)===0)return Du=!1,fK(w,y,j);Du=(w.flags&131072)!==0}else Du=!1,Oo&&(y.flags&1048576)!==0&&JR(y,FO,y.index);switch(y.lanes=0,y.tag){case 16:e:{var D=y.pendingProps;if(w=Ky(y.elementType),y.type=w,typeof w=="function")vA(w)?(D=tx(w,D),y.tag=1,y=oB(null,y,w,D,j)):(y.tag=0,y=sN(null,y,w,D,j));else{if(w!=null){var B=w.$$typeof;if(B===ie){y.tag=11,y=Z$(null,y,w,D,j);break e}else if(B===ge){y.tag=14,y=eB(null,y,w,D,j);break e}}throw y=pe(w)||w,Error(h(306,y,""))}}return y;case 0:return sN(w,y,y.type,y.pendingProps,j);case 1:return D=y.type,B=tx(D,y.pendingProps),oB(w,y,D,B,j);case 3:e:{if(wn(y,y.stateNode.containerInfo),w===null)throw Error(h(387));D=y.pendingProps;var H=y.memoizedState;B=H.element,PA(w,y),KO(y,D,null,j);var fe=y.memoizedState;if(D=fe.cache,p2(y,oa,D),D!==H.cache&&EA(y,[oa],j,!0),WO(),D=fe.element,H.isDehydrated)if(H={element:D,isDehydrated:!1,cache:fe.cache},y.updateQueue.baseState=H,y.memoizedState=H,y.flags&256){y=cB(w,y,D,j);break e}else if(D!==B){B=ug(Error(h(424)),y),g2(B),y=cB(w,y,D,j);break e}else{switch(w=y.stateNode.containerInfo,w.nodeType){case 9:w=w.body;break;default:w=w.nodeName==="HTML"?w.ownerDocument.body:w}for(jl=pg(w.firstChild),cf=y,Oo=!0,h2=null,hg=!0,j=r$(y,null,D,j),y.child=j;j;)j.flags=j.flags&-3|4096,j=j.sibling}else{if(Vy(),D===B){y=mm(w,y,j);break e}qf(w,y,D,j)}y=y.child}return y;case 26:return D8(w,y),w===null?(j=wz(y.type,null,y.pendingProps,null))?y.memoizedState=j:Oo||(j=y.type,w=y.pendingProps,D=W8(cn.current).createElement(j),D[Au]=y,D[kn]=w,Qf(D,j,w),sa(D),y.stateNode=D):y.memoizedState=wz(y.type,w.memoizedProps,y.pendingProps,w.memoizedState),null;case 27:return nr(y),w===null&&Oo&&(D=y.stateNode=gz(y.type,y.pendingProps,cn.current),cf=y,hg=!0,B=jl,A2(y.type)?(XN=B,jl=pg(D.firstChild)):jl=B),qf(w,y,y.pendingProps.children,j),D8(w,y),w===null&&(y.flags|=4194304),y.child;case 5:return w===null&&Oo&&((B=D=jl)&&(D=RK(D,y.type,y.pendingProps,hg),D!==null?(y.stateNode=D,cf=y,jl=pg(D.firstChild),hg=!1,B=!0):B=!1),B||d2(y)),nr(y),B=y.type,H=y.pendingProps,fe=w!==null?w.memoizedProps:null,D=H.children,QN(B,H)?D=null:fe!==null&&QN(B,fe)&&(y.flags|=32),y.memoizedState!==null&&(B=qA(w,y,nK,null,null,j),m6._currentValue=B),D8(w,y),qf(w,y,D,j),y.child;case 6:return w===null&&Oo&&((w=j=jl)&&(j=$K(j,y.pendingProps,hg),j!==null?(y.stateNode=j,cf=y,jl=null,w=!0):w=!1),w||d2(y)),null;case 13:return lB(w,y,j);case 4:return wn(y,y.stateNode.containerInfo),D=y.pendingProps,w===null?y.child=Zy(y,null,D,j):qf(w,y,D,j),y.child;case 11:return Z$(w,y,y.type,y.pendingProps,j);case 7:return qf(w,y,y.pendingProps,j),y.child;case 8:return qf(w,y,y.pendingProps.children,j),y.child;case 12:return qf(w,y,y.pendingProps.children,j),y.child;case 10:return D=y.pendingProps,p2(y,y.type,D.value),qf(w,y,D.children,j),y.child;case 9:return B=y.type._context,D=y.pendingProps.children,b2(y),B=Ff(B),D=D(B),y.flags|=1,qf(w,y,D,j),y.child;case 14:return eB(w,y,y.type,y.pendingProps,j);case 15:return tB(w,y,y.type,y.pendingProps,j);case 19:return aB(w,y,j);case 31:return aK(w,y,j);case 22:return nB(w,y,j,y.pendingProps);case 24:return b2(y),D=Ff(oa),w===null?(B=NA(),B===null&&(B=el,H=MA(),B.pooledCache=H,H.refCount++,H!==null&&(B.pooledCacheLanes|=j),B=H),y.memoizedState={parent:D,cache:B},LA(y),p2(y,oa,B)):((w.lanes&j)!==0&&(PA(w,y),KO(y,null,null,j),WO()),B=w.memoizedState,H=y.memoizedState,B.parent!==D?(B={parent:D,cache:D},y.memoizedState=B,y.lanes===0&&(y.memoizedState=y.updateQueue.baseState=B),p2(y,oa,D)):(D=H.cache,p2(y,oa,D),D!==B.cache&&EA(y,[oa],j,!0))),qf(w,y,y.pendingProps.children,j),y.child;case 29:throw y.pendingProps}throw Error(h(156,y.tag))}function wm(w){w.flags|=4}function dN(w,y,j,D,B){if((y=(w.mode&32)!==0)&&(y=!1),y){if(w.flags|=16777216,(B&335544128)===B)if(w.stateNode.complete)w.flags|=8192;else if(DB())w.flags|=8192;else throw Yy=b8,_A}else w.flags&=-16777217}function hB(w,y){if(y.type!=="stylesheet"||(y.state.loading&4)!==0)w.flags&=-16777217;else if(w.flags|=16777216,!kz(y))if(DB())w.flags|=8192;else throw Yy=b8,_A}function L5(w,y){y!==null&&(w.flags|=4),w.flags&16384&&(y=w.tag!==22?u5():536870912,w.lanes|=y,B5|=y)}function r6(w,y){if(!Oo)switch(w.tailMode){case"hidden":y=w.tail;for(var j=null;y!==null;)y.alternate!==null&&(j=y),y=y.sibling;j===null?w.tail=null:j.sibling=null;break;case"collapsed":j=w.tail;for(var D=null;j!==null;)j.alternate!==null&&(D=j),j=j.sibling;D===null?y||w.tail===null?w.tail=null:w.tail.sibling=null:D.sibling=null}}function Tl(w){var y=w.alternate!==null&&w.alternate.child===w.child,j=0,D=0;if(y)for(var B=w.child;B!==null;)j|=B.lanes|B.childLanes,D|=B.subtreeFlags&65011712,D|=B.flags&65011712,B.return=w,B=B.sibling;else for(B=w.child;B!==null;)j|=B.lanes|B.childLanes,D|=B.subtreeFlags,D|=B.flags,B.return=w,B=B.sibling;return w.subtreeFlags|=D,w.childLanes=j,y}function gN(w,y,j){var D=y.pendingProps;switch(OA(y),y.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Tl(y),null;case 1:return Tl(y),null;case 3:return j=y.stateNode,D=null,w!==null&&(D=w.memoizedState.cache),y.memoizedState.cache!==D&&(y.flags|=2048),gm(oa),ni(),j.pendingContext&&(j.context=j.pendingContext,j.pendingContext=null),(w===null||w.child===null)&&(O5(y)?wm(y):w===null||w.memoizedState.isDehydrated&&(y.flags&256)===0||(y.flags|=1024,S5())),Tl(y),null;case 26:var B=y.type,H=y.memoizedState;return w===null?(wm(y),H!==null?(Tl(y),hB(y,H)):(Tl(y),dN(y,B,null,D,j))):H?H!==w.memoizedState?(wm(y),Tl(y),hB(y,H)):(Tl(y),y.flags&=-16777217):(w=w.memoizedProps,w!==D&&wm(y),Tl(y),dN(y,B,w,D,j)),null;case 27:if(ii(y),j=cn.current,B=y.type,w!==null&&y.stateNode!=null)w.memoizedProps!==D&&wm(y);else{if(!D){if(y.stateNode===null)throw Error(h(166));return Tl(y),null}w=Ot.current,O5(y)?XR(y):(w=gz(B,D,j),y.stateNode=w,wm(y))}return Tl(y),null;case 5:if(ii(y),B=y.type,w!==null&&y.stateNode!=null)w.memoizedProps!==D&&wm(y);else{if(!D){if(y.stateNode===null)throw Error(h(166));return Tl(y),null}if(H=Ot.current,O5(y))XR(y);else{var fe=W8(cn.current);switch(H){case 1:H=fe.createElementNS("http://www.w3.org/2000/svg",B);break;case 2:H=fe.createElementNS("http://www.w3.org/1998/Math/MathML",B);break;default:switch(B){case"svg":H=fe.createElementNS("http://www.w3.org/2000/svg",B);break;case"math":H=fe.createElementNS("http://www.w3.org/1998/Math/MathML",B);break;case"script":H=fe.createElement("div"),H.innerHTML="<script><\/script>",H=H.removeChild(H.firstChild);break;case"select":H=typeof D.is=="string"?fe.createElement("select",{is:D.is}):fe.createElement("select"),D.multiple?H.multiple=!0:D.size&&(H.size=D.size);break;default:H=typeof D.is=="string"?fe.createElement(B,{is:D.is}):fe.createElement(B)}}H[Au]=y,H[kn]=D;e:for(fe=y.child;fe!==null;){if(fe.tag===5||fe.tag===6)H.appendChild(fe.stateNode);else if(fe.tag!==4&&fe.tag!==27&&fe.child!==null){fe.child.return=fe,fe=fe.child;continue}if(fe===y)break e;for(;fe.sibling===null;){if(fe.return===null||fe.return===y)break e;fe=fe.return}fe.sibling.return=fe.return,fe=fe.sibling}y.stateNode=H;e:switch(Qf(H,B,D),B){case"button":case"input":case"select":case"textarea":D=!!D.autoFocus;break e;case"img":D=!0;break e;default:D=!1}D&&wm(y)}}return Tl(y),dN(y,y.type,w===null?null:w.memoizedProps,y.pendingProps,j),null;case 6:if(w&&y.stateNode!=null)w.memoizedProps!==D&&wm(y);else{if(typeof D!="string"&&y.stateNode===null)throw Error(h(166));if(w=cn.current,O5(y)){if(w=y.stateNode,j=y.memoizedProps,D=null,B=cf,B!==null)switch(B.tag){case 27:case 5:D=B.memoizedProps}w[Au]=y,w=!!(w.nodeValue===j||D!==null&&D.suppressHydrationWarning===!0||rz(w.nodeValue,j)),w||d2(y,!0)}else w=W8(w).createTextNode(D),w[Au]=y,y.stateNode=w}return Tl(y),null;case 31:if(j=y.memoizedState,w===null||w.memoizedState!==null){if(D=O5(y),j!==null){if(w===null){if(!D)throw Error(h(318));if(w=y.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(h(557));w[Au]=y}else Vy(),(y.flags&128)===0&&(y.memoizedState=null),y.flags|=4;Tl(y),w=!1}else j=S5(),w!==null&&w.memoizedState!==null&&(w.memoizedState.hydrationErrors=j),w=!0;if(!w)return y.flags&256?(f1(y),y):(f1(y),null);if((y.flags&128)!==0)throw Error(h(558))}return Tl(y),null;case 13:if(D=y.memoizedState,w===null||w.memoizedState!==null&&w.memoizedState.dehydrated!==null){if(B=O5(y),D!==null&&D.dehydrated!==null){if(w===null){if(!B)throw Error(h(318));if(B=y.memoizedState,B=B!==null?B.dehydrated:null,!B)throw Error(h(317));B[Au]=y}else Vy(),(y.flags&128)===0&&(y.memoizedState=null),y.flags|=4;Tl(y),B=!1}else B=S5(),w!==null&&w.memoizedState!==null&&(w.memoizedState.hydrationErrors=B),B=!0;if(!B)return y.flags&256?(f1(y),y):(f1(y),null)}return f1(y),(y.flags&128)!==0?(y.lanes=j,y):(j=D!==null,w=w!==null&&w.memoizedState!==null,j&&(D=y.child,B=null,D.alternate!==null&&D.alternate.memoizedState!==null&&D.alternate.memoizedState.cachePool!==null&&(B=D.alternate.memoizedState.cachePool.pool),H=null,D.memoizedState!==null&&D.memoizedState.cachePool!==null&&(H=D.memoizedState.cachePool.pool),H!==B&&(D.flags|=2048)),j!==w&&j&&(y.child.flags|=8192),L5(y,y.updateQueue),Tl(y),null);case 4:return ni(),w===null&&BN(y.stateNode.containerInfo),Tl(y),null;case 10:return gm(y.type),Tl(y),null;case 19:if(We(Nu),D=y.memoizedState,D===null)return Tl(y),null;if(B=(y.flags&128)!==0,H=D.rendering,H===null)if(B)r6(D,!1);else{if(gu!==0||w!==null&&(w.flags&128)!==0)for(w=y.child;w!==null;){if(H=y8(w),H!==null){for(y.flags|=128,r6(D,!1),w=H.updateQueue,y.updateQueue=w,L5(y,w),y.subtreeFlags=0,w=j,j=y.child;j!==null;)QR(j,w),j=j.sibling;return gt(Nu,Nu.current&1|2),Oo&&dm(y,D.treeForkCount),y.child}w=w.sibling}D.tail!==null&&eu()>z8&&(y.flags|=128,B=!0,r6(D,!1),y.lanes=4194304)}else{if(!B)if(w=y8(H),w!==null){if(y.flags|=128,B=!0,w=w.updateQueue,y.updateQueue=w,L5(y,w),r6(D,!0),D.tail===null&&D.tailMode==="hidden"&&!H.alternate&&!Oo)return Tl(y),null}else 2*eu()-D.renderingStartTime>z8&&j!==536870912&&(y.flags|=128,B=!0,r6(D,!1),y.lanes=4194304);D.isBackwards?(H.sibling=y.child,y.child=H):(w=D.last,w!==null?w.sibling=H:y.child=H,D.last=H)}return D.tail!==null?(w=D.tail,D.rendering=w,D.tail=w.sibling,D.renderingStartTime=eu(),w.sibling=null,j=Nu.current,gt(Nu,B?j&1|2:j&1),Oo&&dm(y,D.treeForkCount),w):(Tl(y),null);case 22:case 23:return f1(y),BA(),D=y.memoizedState!==null,w!==null?w.memoizedState!==null!==D&&(y.flags|=8192):D&&(y.flags|=8192),D?(j&536870912)!==0&&(y.flags&128)===0&&(Tl(y),y.subtreeFlags&6&&(y.flags|=8192)):Tl(y),j=y.updateQueue,j!==null&&L5(y,j.retryQueue),j=null,w!==null&&w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(j=w.memoizedState.cachePool.pool),D=null,y.memoizedState!==null&&y.memoizedState.cachePool!==null&&(D=y.memoizedState.cachePool.pool),D!==j&&(y.flags|=2048),w!==null&&We(Wy),null;case 24:return j=null,w!==null&&(j=w.memoizedState.cache),y.memoizedState.cache!==j&&(y.flags|=2048),gm(oa),Tl(y),null;case 25:return null;case 30:return null}throw Error(h(156,y.tag))}function hK(w,y){switch(OA(y),y.tag){case 1:return w=y.flags,w&65536?(y.flags=w&-65537|128,y):null;case 3:return gm(oa),ni(),w=y.flags,(w&65536)!==0&&(w&128)===0?(y.flags=w&-65537|128,y):null;case 26:case 27:case 5:return ii(y),null;case 31:if(y.memoizedState!==null){if(f1(y),y.alternate===null)throw Error(h(340));Vy()}return w=y.flags,w&65536?(y.flags=w&-65537|128,y):null;case 13:if(f1(y),w=y.memoizedState,w!==null&&w.dehydrated!==null){if(y.alternate===null)throw Error(h(340));Vy()}return w=y.flags,w&65536?(y.flags=w&-65537|128,y):null;case 19:return We(Nu),null;case 4:return ni(),null;case 10:return gm(y.type),null;case 22:case 23:return f1(y),BA(),w!==null&&We(Wy),w=y.flags,w&65536?(y.flags=w&-65537|128,y):null;case 24:return gm(oa),null;case 25:return null;default:return null}}function dB(w,y){switch(OA(y),y.tag){case 3:gm(oa),ni();break;case 26:case 27:case 5:ii(y);break;case 4:ni();break;case 31:y.memoizedState!==null&&f1(y);break;case 13:f1(y);break;case 19:We(Nu);break;case 10:gm(y.type);break;case 22:case 23:f1(y),BA(),w!==null&&We(Wy);break;case 24:gm(oa)}}function s6(w,y){try{var j=y.updateQueue,D=j!==null?j.lastEffect:null;if(D!==null){var B=D.next;j=B;do{if((j.tag&w)===w){D=void 0;var H=j.create,fe=j.inst;D=H(),fe.destroy=D}j=j.next}while(j!==B)}}catch(Ae){Tc(y,y.return,Ae)}}function k2(w,y,j){try{var D=y.updateQueue,B=D!==null?D.lastEffect:null;if(B!==null){var H=B.next;D=H;do{if((D.tag&w)===w){var fe=D.inst,Ae=fe.destroy;if(Ae!==void 0){fe.destroy=void 0,B=y;var pt=j,Ft=Ae;try{Ft()}catch(pn){Tc(B,pt,pn)}}}D=D.next}while(D!==H)}}catch(pn){Tc(y,y.return,pn)}}function L8(w){var y=w.updateQueue;if(y!==null){var j=w.stateNode;try{o$(y,j)}catch(D){Tc(w,w.return,D)}}}function o6(w,y,j){j.props=tx(w.type,w.memoizedProps),j.state=w.memoizedState;try{j.componentWillUnmount()}catch(D){Tc(w,y,D)}}function O2(w,y){try{var j=w.ref;if(j!==null){switch(w.tag){case 26:case 27:case 5:var D=w.stateNode;break;case 30:D=w.stateNode;break;default:D=w.stateNode}typeof j=="function"?w.refCleanup=j(D):j.current=D}}catch(B){Tc(w,y,B)}}function Dp(w,y){var j=w.ref,D=w.refCleanup;if(j!==null)if(typeof D=="function")try{D()}catch(B){Tc(w,y,B)}finally{w.refCleanup=null,w=w.alternate,w!=null&&(w.refCleanup=null)}else if(typeof j=="function")try{j(null)}catch(B){Tc(w,y,B)}else j.current=null}function pN(w){var y=w.type,j=w.memoizedProps,D=w.stateNode;try{e:switch(y){case"button":case"input":case"select":case"textarea":j.autoFocus&&D.focus();break e;case"img":j.src?D.src=j.src:j.srcSet&&(D.srcset=j.srcSet)}}catch(B){Tc(w,w.return,B)}}function bN(w,y,j){try{var D=w.stateNode;NK(D,w.type,j,y),D[kn]=y}catch(B){Tc(w,w.return,B)}}function gB(w){return w.tag===5||w.tag===3||w.tag===26||w.tag===27&&A2(w.type)||w.tag===4}function P5(w){e:for(;;){for(;w.sibling===null;){if(w.return===null||gB(w.return))return null;w=w.return}for(w.sibling.return=w.return,w=w.sibling;w.tag!==5&&w.tag!==6&&w.tag!==18;){if(w.tag===27&&A2(w.type)||w.flags&2||w.child===null||w.tag===4)continue e;w.child.return=w,w=w.child}if(!(w.flags&2))return w.stateNode}}function mN(w,y,j){var D=w.tag;if(D===5||D===6)w=w.stateNode,y?(j.nodeType===9?j.body:j.nodeName==="HTML"?j.ownerDocument.body:j).insertBefore(w,y):(y=j.nodeType===9?j.body:j.nodeName==="HTML"?j.ownerDocument.body:j,y.appendChild(w),j=j._reactRootContainer,j!=null||y.onclick!==null||(y.onclick=am));else if(D!==4&&(D===27&&A2(w.type)&&(j=w.stateNode,y=null),w=w.child,w!==null))for(mN(w,y,j),w=w.sibling;w!==null;)mN(w,y,j),w=w.sibling}function P8(w,y,j){var D=w.tag;if(D===5||D===6)w=w.stateNode,y?j.insertBefore(w,y):j.appendChild(w);else if(D!==4&&(D===27&&A2(w.type)&&(j=w.stateNode),w=w.child,w!==null))for(P8(w,y,j),w=w.sibling;w!==null;)P8(w,y,j),w=w.sibling}function pB(w){var y=w.stateNode,j=w.memoizedProps;try{for(var D=w.type,B=y.attributes;B.length;)y.removeAttributeNode(B[0]);Qf(y,D,j),y[Au]=w,y[kn]=j}catch(H){Tc(w,w.return,H)}}var gg=!1,la=!1,wN=!1,bB=typeof WeakSet=="function"?WeakSet:Set,lf=null;function I8(w,y){if(w=w.containerInfo,qN=v6,w=PR(w),hA(w)){if("selectionStart"in w)var j={start:w.selectionStart,end:w.selectionEnd};else e:{j=(j=w.ownerDocument)&&j.defaultView||window;var D=j.getSelection&&j.getSelection();if(D&&D.rangeCount!==0){j=D.anchorNode;var B=D.anchorOffset,H=D.focusNode;D=D.focusOffset;try{j.nodeType,H.nodeType}catch{j=null;break e}var fe=0,Ae=-1,pt=-1,Ft=0,pn=0,Sn=w,Zt=null;t:for(;;){for(var sn;Sn!==j||B!==0&&Sn.nodeType!==3||(Ae=fe+B),Sn!==H||D!==0&&Sn.nodeType!==3||(pt=fe+D),Sn.nodeType===3&&(fe+=Sn.nodeValue.length),(sn=Sn.firstChild)!==null;)Zt=Sn,Sn=sn;for(;;){if(Sn===w)break t;if(Zt===j&&++Ft===B&&(Ae=fe),Zt===H&&++pn===D&&(pt=fe),(sn=Sn.nextSibling)!==null)break;Sn=Zt,Zt=Sn.parentNode}Sn=sn}j=Ae===-1||pt===-1?null:{start:Ae,end:pt}}else j=null}j=j||{start:0,end:0}}else j=null;for(HN={focusedElem:w,selectionRange:j},v6=!1,lf=y;lf!==null;)if(y=lf,w=y.child,(y.subtreeFlags&1028)!==0&&w!==null)w.return=y,lf=w;else for(;lf!==null;){switch(y=lf,H=y.alternate,w=y.flags,y.tag){case 0:if((w&4)!==0&&(w=y.updateQueue,w=w!==null?w.events:null,w!==null))for(j=0;j<w.length;j++)B=w[j],B.ref.impl=B.nextImpl;break;case 11:case 15:break;case 1:if((w&1024)!==0&&H!==null){w=void 0,j=y,B=H.memoizedProps,H=H.memoizedState,D=j.stateNode;try{var Yi=tx(j.type,B);w=D.getSnapshotBeforeUpdate(Yi,H),D.__reactInternalSnapshotBeforeUpdate=w}catch(Hr){Tc(j,j.return,Hr)}}break;case 3:if((w&1024)!==0){if(w=y.stateNode.containerInfo,j=w.nodeType,j===9)UN(w);else if(j===1)switch(w.nodeName){case"HEAD":case"HTML":case"BODY":UN(w);break;default:w.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((w&1024)!==0)throw Error(h(163))}if(w=y.sibling,w!==null){w.return=y.return,lf=w;break}lf=y.return}}function mB(w,y,j){var D=j.flags;switch(j.tag){case 0:case 11:case 15:vm(w,j),D&4&&s6(5,j);break;case 1:if(vm(w,j),D&4)if(w=j.stateNode,y===null)try{w.componentDidMount()}catch(fe){Tc(j,j.return,fe)}else{var B=tx(j.type,y.memoizedProps);y=y.memoizedState;try{w.componentDidUpdate(B,y,w.__reactInternalSnapshotBeforeUpdate)}catch(fe){Tc(j,j.return,fe)}}D&64&&L8(j),D&512&&O2(j,j.return);break;case 3:if(vm(w,j),D&64&&(w=j.updateQueue,w!==null)){if(y=null,j.child!==null)switch(j.child.tag){case 27:case 5:y=j.child.stateNode;break;case 1:y=j.child.stateNode}try{o$(w,y)}catch(fe){Tc(j,j.return,fe)}}break;case 27:y===null&&D&4&&pB(j);case 26:case 5:vm(w,j),y===null&&D&4&&pN(j),D&512&&O2(j,j.return);break;case 12:vm(w,j);break;case 31:vm(w,j),D&4&&vB(w,j);break;case 13:vm(w,j),D&4&&yB(w,j),D&64&&(w=j.memoizedState,w!==null&&(w=w.dehydrated,w!==null&&(j=xK.bind(null,j),BK(w,j))));break;case 22:if(D=j.memoizedState!==null||gg,!D){y=y!==null&&y.memoizedState!==null||la,B=gg;var H=la;gg=D,(la=y)&&!H?ym(w,j,(j.subtreeFlags&8772)!==0):vm(w,j),gg=B,la=H}break;case 30:break;default:vm(w,j)}}function vN(w){var y=w.alternate;y!==null&&(w.alternate=null,vN(y)),w.child=null,w.deletions=null,w.sibling=null,w.tag===5&&(y=w.stateNode,y!==null&&MO(y)),w.stateNode=null,w.return=null,w.dependencies=null,w.memoizedProps=null,w.memoizedState=null,w.pendingProps=null,w.stateNode=null,w.updateQueue=null}var Fl=null,hh=!1;function Lp(w,y,j){for(j=j.child;j!==null;)wB(w,y,j),j=j.sibling}function wB(w,y,j){if(of&&typeof of.onCommitFiberUnmount=="function")try{of.onCommitFiberUnmount(im,j)}catch{}switch(j.tag){case 26:la||Dp(j,y),Lp(w,y,j),j.memoizedState?j.memoizedState.count--:j.stateNode&&(j=j.stateNode,j.parentNode.removeChild(j));break;case 27:la||Dp(j,y);var D=Fl,B=hh;A2(j.type)&&(Fl=j.stateNode,hh=!1),Lp(w,y,j),Q5(j.stateNode),Fl=D,hh=B;break;case 5:la||Dp(j,y);case 6:if(D=Fl,B=hh,Fl=null,Lp(w,y,j),Fl=D,hh=B,Fl!==null)if(hh)try{(Fl.nodeType===9?Fl.body:Fl.nodeName==="HTML"?Fl.ownerDocument.body:Fl).removeChild(j.stateNode)}catch(H){Tc(j,y,H)}else try{Fl.removeChild(j.stateNode)}catch(H){Tc(j,y,H)}break;case 18:Fl!==null&&(hh?(w=Fl,az(w.nodeType===9?w.body:w.nodeName==="HTML"?w.ownerDocument.body:w,j.stateNode),ox(w)):az(Fl,j.stateNode));break;case 4:D=Fl,B=hh,Fl=j.stateNode.containerInfo,hh=!0,Lp(w,y,j),Fl=D,hh=B;break;case 0:case 11:case 14:case 15:k2(2,j,y),la||k2(4,j,y),Lp(w,y,j);break;case 1:la||(Dp(j,y),D=j.stateNode,typeof D.componentWillUnmount=="function"&&o6(j,y,D)),Lp(w,y,j);break;case 21:Lp(w,y,j);break;case 22:la=(D=la)||j.memoizedState!==null,Lp(w,y,j),la=D;break;default:Lp(w,y,j)}}function vB(w,y){if(y.memoizedState===null&&(w=y.alternate,w!==null&&(w=w.memoizedState,w!==null))){w=w.dehydrated;try{ox(w)}catch(j){Tc(y,y.return,j)}}}function yB(w,y){if(y.memoizedState===null&&(w=y.alternate,w!==null&&(w=w.memoizedState,w!==null&&(w=w.dehydrated,w!==null))))try{ox(w)}catch(j){Tc(y,y.return,j)}}function dK(w){switch(w.tag){case 31:case 13:case 19:var y=w.stateNode;return y===null&&(y=w.stateNode=new bB),y;case 22:return w=w.stateNode,y=w._retryCache,y===null&&(y=w._retryCache=new bB),y;default:throw Error(h(435,w.tag))}}function yN(w,y){var j=dK(w);y.forEach(function(D){if(!j.has(D)){j.add(D);var B=kK.bind(null,w,D);D.then(B,B)}})}function Td(w,y){var j=y.deletions;if(j!==null)for(var D=0;D<j.length;D++){var B=j[D],H=w,fe=y,Ae=fe;e:for(;Ae!==null;){switch(Ae.tag){case 27:if(A2(Ae.type)){Fl=Ae.stateNode,hh=!1;break e}break;case 5:Fl=Ae.stateNode,hh=!1;break e;case 3:case 4:Fl=Ae.stateNode.containerInfo,hh=!0;break e}Ae=Ae.return}if(Fl===null)throw Error(h(160));wB(H,fe,B),Fl=null,hh=!1,H=B.alternate,H!==null&&(H.return=null),B.return=null}if(y.subtreeFlags&13886)for(y=y.child;y!==null;)xB(y,w),y=y.sibling}var d0=null;function xB(w,y){var j=w.alternate,D=w.flags;switch(w.tag){case 0:case 11:case 14:case 15:Td(y,w),Ed(w),D&4&&(k2(3,w,w.return),s6(3,w),k2(5,w,w.return));break;case 1:Td(y,w),Ed(w),D&512&&(la||j===null||Dp(j,j.return)),D&64&&gg&&(w=w.updateQueue,w!==null&&(D=w.callbacks,D!==null&&(j=w.shared.hiddenCallbacks,w.shared.hiddenCallbacks=j===null?D:j.concat(D))));break;case 26:var B=d0;if(Td(y,w),Ed(w),D&512&&(la||j===null||Dp(j,j.return)),D&4){var H=j!==null?j.memoizedState:null;if(D=w.memoizedState,j===null)if(D===null)if(w.stateNode===null){e:{D=w.type,j=w.memoizedProps,B=B.ownerDocument||B;t:switch(D){case"title":H=B.getElementsByTagName("title")[0],(!H||H[By]||H[Au]||H.namespaceURI==="http://www.w3.org/2000/svg"||H.hasAttribute("itemprop"))&&(H=B.createElement(D),B.head.insertBefore(H,B.querySelector("head > title"))),Qf(H,D,j),H[Au]=w,sa(H),D=H;break e;case"link":var fe=xz("link","href",B).get(D+(j.href||""));if(fe){for(var Ae=0;Ae<fe.length;Ae++)if(H=fe[Ae],H.getAttribute("href")===(j.href==null||j.href===""?null:j.href)&&H.getAttribute("rel")===(j.rel==null?null:j.rel)&&H.getAttribute("title")===(j.title==null?null:j.title)&&H.getAttribute("crossorigin")===(j.crossOrigin==null?null:j.crossOrigin)){fe.splice(Ae,1);break t}}H=B.createElement(D),Qf(H,D,j),B.head.appendChild(H);break;case"meta":if(fe=xz("meta","content",B).get(D+(j.content||""))){for(Ae=0;Ae<fe.length;Ae++)if(H=fe[Ae],H.getAttribute("content")===(j.content==null?null:""+j.content)&&H.getAttribute("name")===(j.name==null?null:j.name)&&H.getAttribute("property")===(j.property==null?null:j.property)&&H.getAttribute("http-equiv")===(j.httpEquiv==null?null:j.httpEquiv)&&H.getAttribute("charset")===(j.charSet==null?null:j.charSet)){fe.splice(Ae,1);break t}}H=B.createElement(D),Qf(H,D,j),B.head.appendChild(H);break;default:throw Error(h(468,D))}H[Au]=w,sa(H),D=H}w.stateNode=D}else Z8(B,w.type,w.stateNode);else w.stateNode=yz(B,D,w.memoizedProps);else H!==D?(H===null?j.stateNode!==null&&(j=j.stateNode,j.parentNode.removeChild(j)):H.count--,D===null?Z8(B,w.type,w.stateNode):yz(B,D,w.memoizedProps)):D===null&&w.stateNode!==null&&bN(w,w.memoizedProps,j.memoizedProps)}break;case 27:Td(y,w),Ed(w),D&512&&(la||j===null||Dp(j,j.return)),j!==null&&D&4&&bN(w,w.memoizedProps,j.memoizedProps);break;case 5:if(Td(y,w),Ed(w),D&512&&(la||j===null||Dp(j,j.return)),w.flags&32){B=w.stateNode;try{d5(B,"")}catch(Yi){Tc(w,w.return,Yi)}}D&4&&w.stateNode!=null&&(B=w.memoizedProps,bN(w,B,j!==null?j.memoizedProps:B)),D&1024&&(wN=!0);break;case 6:if(Td(y,w),Ed(w),D&4){if(w.stateNode===null)throw Error(h(162));D=w.memoizedProps,j=w.stateNode;try{j.nodeValue=D}catch(Yi){Tc(w,w.return,Yi)}}break;case 3:if(X5=null,B=d0,d0=K8(y.containerInfo),Td(y,w),d0=B,Ed(w),D&4&&j!==null&&j.memoizedState.isDehydrated)try{ox(y.containerInfo)}catch(Yi){Tc(w,w.return,Yi)}wN&&(wN=!1,kB(w));break;case 4:D=d0,d0=K8(w.stateNode.containerInfo),Td(y,w),Ed(w),d0=D;break;case 12:Td(y,w),Ed(w);break;case 31:Td(y,w),Ed(w),D&4&&(D=w.updateQueue,D!==null&&(w.updateQueue=null,yN(w,D)));break;case 13:Td(y,w),Ed(w),w.child.flags&8192&&w.memoizedState!==null!=(j!==null&&j.memoizedState!==null)&&(B8=eu()),D&4&&(D=w.updateQueue,D!==null&&(w.updateQueue=null,yN(w,D)));break;case 22:B=w.memoizedState!==null;var pt=j!==null&&j.memoizedState!==null,Ft=gg,pn=la;if(gg=Ft||B,la=pn||pt,Td(y,w),la=pn,gg=Ft,Ed(w),D&8192)e:for(y=w.stateNode,y._visibility=B?y._visibility&-2:y._visibility|1,B&&(j===null||pt||gg||la||nx(w)),j=null,y=w;;){if(y.tag===5||y.tag===26){if(j===null){pt=j=y;try{if(H=pt.stateNode,B)fe=H.style,typeof fe.setProperty=="function"?fe.setProperty("display","none","important"):fe.display="none";else{Ae=pt.stateNode;var Sn=pt.memoizedProps.style,Zt=Sn!=null&&Sn.hasOwnProperty("display")?Sn.display:null;Ae.style.display=Zt==null||typeof Zt=="boolean"?"":(""+Zt).trim()}}catch(Yi){Tc(pt,pt.return,Yi)}}}else if(y.tag===6){if(j===null){pt=y;try{pt.stateNode.nodeValue=B?"":pt.memoizedProps}catch(Yi){Tc(pt,pt.return,Yi)}}}else if(y.tag===18){if(j===null){pt=y;try{var sn=pt.stateNode;B?fz(sn,!0):fz(pt.stateNode,!1)}catch(Yi){Tc(pt,pt.return,Yi)}}}else if((y.tag!==22&&y.tag!==23||y.memoizedState===null||y===w)&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===w)break e;for(;y.sibling===null;){if(y.return===null||y.return===w)break e;j===y&&(j=null),y=y.return}j===y&&(j=null),y.sibling.return=y.return,y=y.sibling}D&4&&(D=w.updateQueue,D!==null&&(j=D.retryQueue,j!==null&&(D.retryQueue=null,yN(w,j))));break;case 19:Td(y,w),Ed(w),D&4&&(D=w.updateQueue,D!==null&&(w.updateQueue=null,yN(w,D)));break;case 30:break;case 21:break;default:Td(y,w),Ed(w)}}function Ed(w){var y=w.flags;if(y&2){try{for(var j,D=w.return;D!==null;){if(gB(D)){j=D;break}D=D.return}if(j==null)throw Error(h(160));switch(j.tag){case 27:var B=j.stateNode,H=P5(w);P8(w,H,B);break;case 5:var fe=j.stateNode;j.flags&32&&(d5(fe,""),j.flags&=-33);var Ae=P5(w);P8(w,Ae,fe);break;case 3:case 4:var pt=j.stateNode.containerInfo,Ft=P5(w);mN(w,Ft,pt);break;default:throw Error(h(161))}}catch(pn){Tc(w,w.return,pn)}w.flags&=-3}y&4096&&(w.flags&=-4097)}function kB(w){if(w.subtreeFlags&1024)for(w=w.child;w!==null;){var y=w;kB(y),y.tag===5&&y.flags&1024&&y.stateNode.reset(),w=w.sibling}}function vm(w,y){if(y.subtreeFlags&8772)for(y=y.child;y!==null;)mB(w,y.alternate,y),y=y.sibling}function nx(w){for(w=w.child;w!==null;){var y=w;switch(y.tag){case 0:case 11:case 14:case 15:k2(4,y,y.return),nx(y);break;case 1:Dp(y,y.return);var j=y.stateNode;typeof j.componentWillUnmount=="function"&&o6(y,y.return,j),nx(y);break;case 27:Q5(y.stateNode);case 26:case 5:Dp(y,y.return),nx(y);break;case 22:y.memoizedState===null&&nx(y);break;case 30:nx(y);break;default:nx(y)}w=w.sibling}}function ym(w,y,j){for(j=j&&(y.subtreeFlags&8772)!==0,y=y.child;y!==null;){var D=y.alternate,B=w,H=y,fe=H.flags;switch(H.tag){case 0:case 11:case 15:ym(B,H,j),s6(4,H);break;case 1:if(ym(B,H,j),D=H,B=D.stateNode,typeof B.componentDidMount=="function")try{B.componentDidMount()}catch(Ft){Tc(D,D.return,Ft)}if(D=H,B=D.updateQueue,B!==null){var Ae=D.stateNode;try{var pt=B.shared.hiddenCallbacks;if(pt!==null)for(B.shared.hiddenCallbacks=null,B=0;B<pt.length;B++)s$(pt[B],Ae)}catch(Ft){Tc(D,D.return,Ft)}}j&&fe&64&&L8(H),O2(H,H.return);break;case 27:pB(H);case 26:case 5:ym(B,H,j),j&&D===null&&fe&4&&pN(H),O2(H,H.return);break;case 12:ym(B,H,j);break;case 31:ym(B,H,j),j&&fe&4&&vB(B,H);break;case 13:ym(B,H,j),j&&fe&4&&yB(B,H);break;case 22:H.memoizedState===null&&ym(B,H,j),O2(H,H.return);break;case 30:break;default:ym(B,H,j)}y=y.sibling}}function xN(w,y){var j=null;w!==null&&w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(j=w.memoizedState.cachePool.pool),w=null,y.memoizedState!==null&&y.memoizedState.cachePool!==null&&(w=y.memoizedState.cachePool.pool),w!==j&&(w!=null&&w.refCount++,j!=null&&GO(j))}function kN(w,y){w=null,y.alternate!==null&&(w=y.alternate.memoizedState.cache),y=y.memoizedState.cache,y!==w&&(y.refCount++,w!=null&&GO(w))}function Hf(w,y,j,D){if(y.subtreeFlags&10256)for(y=y.child;y!==null;)R8(w,y,j,D),y=y.sibling}function R8(w,y,j,D){var B=y.flags;switch(y.tag){case 0:case 11:case 15:Hf(w,y,j,D),B&2048&&s6(9,y);break;case 1:Hf(w,y,j,D);break;case 3:Hf(w,y,j,D),B&2048&&(w=null,y.alternate!==null&&(w=y.alternate.memoizedState.cache),y=y.memoizedState.cache,y!==w&&(y.refCount++,w!=null&&GO(w)));break;case 12:if(B&2048){Hf(w,y,j,D),w=y.stateNode;try{var H=y.memoizedProps,fe=H.id,Ae=H.onPostCommit;typeof Ae=="function"&&Ae(fe,y.alternate===null?"mount":"update",w.passiveEffectDuration,-0)}catch(pt){Tc(y,y.return,pt)}}else Hf(w,y,j,D);break;case 31:Hf(w,y,j,D);break;case 13:Hf(w,y,j,D);break;case 23:break;case 22:H=y.stateNode,fe=y.alternate,y.memoizedState!==null?H._visibility&2?Hf(w,y,j,D):c6(w,y):H._visibility&2?Hf(w,y,j,D):(H._visibility|=2,I5(w,y,j,D,(y.subtreeFlags&10256)!==0||!1)),B&2048&&xN(fe,y);break;case 24:Hf(w,y,j,D),B&2048&&kN(y.alternate,y);break;default:Hf(w,y,j,D)}}function I5(w,y,j,D,B){for(B=B&&((y.subtreeFlags&10256)!==0||!1),y=y.child;y!==null;){var H=w,fe=y,Ae=j,pt=D,Ft=fe.flags;switch(fe.tag){case 0:case 11:case 15:I5(H,fe,Ae,pt,B),s6(8,fe);break;case 23:break;case 22:var pn=fe.stateNode;fe.memoizedState!==null?pn._visibility&2?I5(H,fe,Ae,pt,B):c6(H,fe):(pn._visibility|=2,I5(H,fe,Ae,pt,B)),B&&Ft&2048&&xN(fe.alternate,fe);break;case 24:I5(H,fe,Ae,pt,B),B&&Ft&2048&&kN(fe.alternate,fe);break;default:I5(H,fe,Ae,pt,B)}y=y.sibling}}function c6(w,y){if(y.subtreeFlags&10256)for(y=y.child;y!==null;){var j=w,D=y,B=D.flags;switch(D.tag){case 22:c6(j,D),B&2048&&xN(D.alternate,D);break;case 24:c6(j,D),B&2048&&kN(D.alternate,D);break;default:c6(j,D)}y=y.sibling}}var l6=8192;function R5(w,y,j){if(w.subtreeFlags&l6)for(w=w.child;w!==null;)OB(w,y,j),w=w.sibling}function OB(w,y,j){switch(w.tag){case 26:R5(w,y,j),w.flags&l6&&w.memoizedState!==null&&UK(j,d0,w.memoizedState,w.memoizedProps);break;case 5:R5(w,y,j);break;case 3:case 4:var D=d0;d0=K8(w.stateNode.containerInfo),R5(w,y,j),d0=D;break;case 22:w.memoizedState===null&&(D=w.alternate,D!==null&&D.memoizedState!==null?(D=l6,l6=16777216,R5(w,y,j),l6=D):R5(w,y,j));break;default:R5(w,y,j)}}function SB(w){var y=w.alternate;if(y!==null&&(w=y.child,w!==null)){y.child=null;do y=w.sibling,w.sibling=null,w=y;while(w!==null)}}function u6(w){var y=w.deletions;if((w.flags&16)!==0){if(y!==null)for(var j=0;j<y.length;j++){var D=y[j];lf=D,TB(D,w)}SB(w)}if(w.subtreeFlags&10256)for(w=w.child;w!==null;)jB(w),w=w.sibling}function jB(w){switch(w.tag){case 0:case 11:case 15:u6(w),w.flags&2048&&k2(9,w,w.return);break;case 3:u6(w);break;case 12:u6(w);break;case 22:var y=w.stateNode;w.memoizedState!==null&&y._visibility&2&&(w.return===null||w.return.tag!==13)?(y._visibility&=-3,$8(w)):u6(w);break;default:u6(w)}}function $8(w){var y=w.deletions;if((w.flags&16)!==0){if(y!==null)for(var j=0;j<y.length;j++){var D=y[j];lf=D,TB(D,w)}SB(w)}for(w=w.child;w!==null;){switch(y=w,y.tag){case 0:case 11:case 15:k2(8,y,y.return),$8(y);break;case 22:j=y.stateNode,j._visibility&2&&(j._visibility&=-3,$8(y));break;default:$8(y)}w=w.sibling}}function TB(w,y){for(;lf!==null;){var j=lf;switch(j.tag){case 0:case 11:case 15:k2(8,j,y);break;case 23:case 22:if(j.memoizedState!==null&&j.memoizedState.cachePool!==null){var D=j.memoizedState.cachePool.pool;D!=null&&D.refCount++}break;case 24:GO(j.memoizedState.cache)}if(D=j.child,D!==null)D.return=j,lf=D;else e:for(j=w;lf!==null;){D=lf;var B=D.sibling,H=D.return;if(vN(D),D===j){lf=null;break e}if(B!==null){B.return=H,lf=B;break e}lf=H}}}var gK={getCacheForType:function(w){var y=Ff(oa),j=y.data.get(w);return j===void 0&&(j=w(),y.data.set(w,j)),j},cacheSignal:function(){return Ff(oa).controller.signal}},pK=typeof WeakMap=="function"?WeakMap:Map,oc=0,el=null,so=null,mo=0,jc=0,d1=null,S2=!1,$5=!1,ON=!1,xm=0,gu=0,j2=0,ix=0,SN=0,g1=0,B5=0,a6=null,Cd=null,jN=!1,B8=0,EB=0,z8=1/0,F8=null,T2=null,Ia=0,E2=null,z5=null,km=0,TN=0,EN=null,CB=null,f6=0,CN=null;function p1(){return(oc&2)!==0&&mo!==0?mo&-mo:he.T!==null?LN():f5()}function MB(){if(g1===0)if((mo&536870912)===0||Oo){var w=n2;n2<<=1,(n2&3932160)===0&&(n2=262144),g1=w}else g1=536870912;return w=a1.current,w!==null&&(w.flags|=32),g1}function Md(w,y,j){(w===el&&(jc===2||jc===9)||w.cancelPendingCommit!==null)&&(F5(w,0),C2(w,mo,g1,!1)),sm(w,j),((oc&2)===0||w!==el)&&(w===el&&((oc&2)===0&&(ix|=j),gu===4&&C2(w,mo,g1,!1)),Pp(w))}function AB(w,y,j){if((oc&6)!==0)throw Error(h(327));var D=!j&&(y&127)===0&&(y&w.expiredLanes)===0||rm(w,y),B=D?wK(w,y):AN(w,y,!0),H=D;do{if(B===0){$5&&!D&&C2(w,y,0,!1);break}else{if(j=w.current.alternate,H&&!bK(j)){B=AN(w,y,!1),H=!1;continue}if(B===2){if(H=y,w.errorRecoveryDisabledLanes&H)var fe=0;else fe=w.pendingLanes&-536870913,fe=fe!==0?fe:fe&536870912?536870912:0;if(fe!==0){y=fe;e:{var Ae=w;B=a6;var pt=Ae.current.memoizedState.isDehydrated;if(pt&&(F5(Ae,fe).flags|=256),fe=AN(Ae,fe,!1),fe!==2){if(ON&&!pt){Ae.errorRecoveryDisabledLanes|=H,ix|=H,B=4;break e}H=Cd,Cd=B,H!==null&&(Cd===null?Cd=H:Cd.push.apply(Cd,H))}B=fe}if(H=!1,B!==2)continue}}if(B===1){F5(w,0),C2(w,y,0,!0);break}e:{switch(D=w,H=B,H){case 0:case 1:throw Error(h(345));case 4:if((y&4194048)!==y)break;case 6:C2(D,y,g1,!S2);break e;case 2:Cd=null;break;case 3:case 5:break;default:throw Error(h(329))}if((y&62914560)===y&&(B=B8+300-eu(),10<B)){if(C2(D,y,g1,!S2),r2(D,0,!0)!==0)break e;km=y,D.timeoutHandle=lz(NB.bind(null,D,j,Cd,F8,jN,y,g1,ix,B5,S2,H,"Throttled",-0,0),B);break e}NB(D,j,Cd,F8,jN,y,g1,ix,B5,S2,H,null,-0,0)}}break}while(!0);Pp(w)}function NB(w,y,j,D,B,H,fe,Ae,pt,Ft,pn,Sn,Zt,sn){if(w.timeoutHandle=-1,Sn=y.subtreeFlags,Sn&8192||(Sn&16785408)===16785408){Sn={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:am},OB(y,H,Sn);var Yi=(H&62914560)===H?B8-eu():(H&4194048)===H?EB-eu():0;if(Yi=JK(Sn,Yi),Yi!==null){km=H,w.cancelPendingCommit=Yi(BB.bind(null,w,y,H,j,D,B,fe,Ae,pt,pn,Sn,null,Zt,sn)),C2(w,H,fe,!Ft);return}}BB(w,y,H,j,D,B,fe,Ae,pt)}function bK(w){for(var y=w;;){var j=y.tag;if((j===0||j===11||j===15)&&y.flags&16384&&(j=y.updateQueue,j!==null&&(j=j.stores,j!==null)))for(var D=0;D<j.length;D++){var B=j[D],H=B.getSnapshot;B=B.value;try{if(!l1(H(),B))return!1}catch{return!1}}if(j=y.child,y.subtreeFlags&16384&&j!==null)j.return=y,y=j;else{if(y===w)break;for(;y.sibling===null;){if(y.return===null||y.return===w)return!0;y=y.return}y.sibling.return=y.return,y=y.sibling}}return!0}function C2(w,y,j,D){y&=~SN,y&=~ix,w.suspendedLanes|=y,w.pingedLanes&=~y,D&&(w.warmLanes|=y),D=w.expirationTimes;for(var B=y;0<B;){var H=31-zf(B),fe=1<<H;D[H]=-1,B&=~fe}j!==0&&om(w,j,y)}function q8(){return(oc&6)===0?(h6(0),!1):!0}function MN(){if(so!==null){if(jc===0)var w=so.return;else w=so,Np=Xy=null,GA(w),M5=null,JO=0,w=so;for(;w!==null;)dB(w.alternate,w),w=w.return;so=null}}function F5(w,y){var j=w.timeoutHandle;j!==-1&&(w.timeoutHandle=-1,LK(j)),j=w.cancelPendingCommit,j!==null&&(w.cancelPendingCommit=null,j()),km=0,MN(),el=w,so=j=hm(w.current,null),mo=y,jc=0,d1=null,S2=!1,$5=rm(w,y),ON=!1,B5=g1=SN=ix=j2=gu=0,Cd=a6=null,jN=!1,(y&8)!==0&&(y|=y&32);var D=w.entangledLanes;if(D!==0)for(w=w.entanglements,D&=y;0<D;){var B=31-zf(D),H=1<<B;y|=w[B],D&=~H}return xm=y,u8(),j}function _B(w,y){Es=null,he.H=n6,y===C5||y===p8?(y=t$(),jc=3):y===_A?(y=t$(),jc=4):jc=y===_p?8:y!==null&&typeof y=="object"&&typeof y.then=="function"?6:1,d1=y,so===null&&(gu=1,N8(w,ug(y,w.current)))}function DB(){var w=a1.current;return w===null?!0:(mo&4194048)===mo?dg===null:(mo&62914560)===mo||(mo&536870912)!==0?w===dg:!1}function LB(){var w=he.H;return he.H=n6,w===null?n6:w}function PB(){var w=he.A;return he.A=gK,w}function H8(){gu=4,S2||(mo&4194048)!==mo&&a1.current!==null||($5=!0),(j2&134217727)===0&&(ix&134217727)===0||el===null||C2(el,mo,g1,!1)}function AN(w,y,j){var D=oc;oc|=2;var B=LB(),H=PB();(el!==w||mo!==y)&&(F8=null,F5(w,y)),y=!1;var fe=gu;e:do try{if(jc!==0&&so!==null){var Ae=so,pt=d1;switch(jc){case 8:MN(),fe=6;break e;case 3:case 2:case 9:case 6:a1.current===null&&(y=!0);var Ft=jc;if(jc=0,d1=null,q5(w,Ae,pt,Ft),j&&$5){fe=0;break e}break;default:Ft=jc,jc=0,d1=null,q5(w,Ae,pt,Ft)}}mK(),fe=gu;break}catch(pn){_B(w,pn)}while(!0);return y&&w.shellSuspendCounter++,Np=Xy=null,oc=D,he.H=B,he.A=H,so===null&&(el=null,mo=0,u8()),fe}function mK(){for(;so!==null;)IB(so)}function wK(w,y){var j=oc;oc|=2;var D=LB(),B=PB();el!==w||mo!==y?(F8=null,z8=eu()+500,F5(w,y)):$5=rm(w,y);e:do try{if(jc!==0&&so!==null){y=so;var H=d1;t:switch(jc){case 1:jc=0,d1=null,q5(w,y,H,1);break;case 2:case 9:if(DA(H)){jc=0,d1=null,RB(y);break}y=function(){jc!==2&&jc!==9||el!==w||(jc=7),Pp(w)},H.then(y,y);break e;case 3:jc=7;break e;case 4:jc=5;break e;case 7:DA(H)?(jc=0,d1=null,RB(y)):(jc=0,d1=null,q5(w,y,H,7));break;case 5:var fe=null;switch(so.tag){case 26:fe=so.memoizedState;case 5:case 27:var Ae=so;if(fe?kz(fe):Ae.stateNode.complete){jc=0,d1=null;var pt=Ae.sibling;if(pt!==null)so=pt;else{var Ft=Ae.return;Ft!==null?(so=Ft,Q8(Ft)):so=null}break t}}jc=0,d1=null,q5(w,y,H,5);break;case 6:jc=0,d1=null,q5(w,y,H,6);break;case 8:MN(),gu=6;break e;default:throw Error(h(462))}}vK();break}catch(pn){_B(w,pn)}while(!0);return Np=Xy=null,he.H=D,he.A=B,oc=j,so!==null?0:(el=null,mo=0,u8(),gu)}function vK(){for(;so!==null&&!jp();)IB(so)}function IB(w){var y=fB(w.alternate,w,xm);w.memoizedProps=w.pendingProps,y===null?Q8(w):so=y}function RB(w){var y=w,j=y.alternate;switch(y.tag){case 15:case 0:y=sB(j,y,y.pendingProps,y.type,void 0,mo);break;case 11:y=sB(j,y,y.pendingProps,y.type.render,y.ref,mo);break;case 5:GA(y);default:dB(j,y),y=so=QR(y,xm),y=fB(j,y,xm)}w.memoizedProps=w.pendingProps,y===null?Q8(w):so=y}function q5(w,y,j,D){Np=Xy=null,GA(y),M5=null,JO=0;var B=y.return;try{if(uK(w,B,y,j,mo)){gu=1,N8(w,ug(j,w.current)),so=null;return}}catch(H){if(B!==null)throw so=B,H;gu=1,N8(w,ug(j,w.current)),so=null;return}y.flags&32768?(Oo||D===1?w=!0:$5||(mo&536870912)!==0?w=!1:(S2=w=!0,(D===2||D===9||D===3||D===6)&&(D=a1.current,D!==null&&D.tag===13&&(D.flags|=16384))),$B(y,w)):Q8(y)}function Q8(w){var y=w;do{if((y.flags&32768)!==0){$B(y,S2);return}w=y.return;var j=gN(y.alternate,y,xm);if(j!==null){so=j;return}if(y=y.sibling,y!==null){so=y;return}so=y=w}while(y!==null);gu===0&&(gu=5)}function $B(w,y){do{var j=hK(w.alternate,w);if(j!==null){j.flags&=32767,so=j;return}if(j=w.return,j!==null&&(j.flags|=32768,j.subtreeFlags=0,j.deletions=null),!y&&(w=w.sibling,w!==null)){so=w;return}so=w=j}while(w!==null);gu=6,so=null}function BB(w,y,j,D,B,H,fe,Ae,pt){w.cancelPendingCommit=null;do G8();while(Ia!==0);if((oc&6)!==0)throw Error(h(327));if(y!==null){if(y===w.current)throw Error(h(177));if(H=y.lanes|y.childLanes,H|=mA,EO(w,j,H,fe,Ae,pt),w===el&&(so=el=null,mo=0),z5=y,E2=w,km=j,TN=H,EN=B,CB=D,(y.subtreeFlags&10256)!==0||(y.flags&10256)!==0?(w.callbackNode=null,w.callbackPriority=0,OK(nm,function(){return QB(),null})):(w.callbackNode=null,w.callbackPriority=0),D=(y.flags&13878)!==0,(y.subtreeFlags&13878)!==0||D){D=he.T,he.T=null,B=Ee.p,Ee.p=2,fe=oc,oc|=4;try{I8(w,y,j)}finally{oc=fe,Ee.p=B,he.T=D}}Ia=1,zB(),FB(),qB()}}function zB(){if(Ia===1){Ia=0;var w=E2,y=z5,j=(y.flags&13878)!==0;if((y.subtreeFlags&13878)!==0||j){j=he.T,he.T=null;var D=Ee.p;Ee.p=2;var B=oc;oc|=4;try{xB(y,w);var H=HN,fe=PR(w.containerInfo),Ae=H.focusedElem,pt=H.selectionRange;if(fe!==Ae&&Ae&&Ae.ownerDocument&&LR(Ae.ownerDocument.documentElement,Ae)){if(pt!==null&&hA(Ae)){var Ft=pt.start,pn=pt.end;if(pn===void 0&&(pn=Ft),"selectionStart"in Ae)Ae.selectionStart=Ft,Ae.selectionEnd=Math.min(pn,Ae.value.length);else{var Sn=Ae.ownerDocument||document,Zt=Sn&&Sn.defaultView||window;if(Zt.getSelection){var sn=Zt.getSelection(),Yi=Ae.textContent.length,Hr=Math.min(pt.start,Yi),tl=pt.end===void 0?Hr:Math.min(pt.end,Yi);!sn.extend&&Hr>tl&&(fe=tl,tl=Hr,Hr=fe);var Nt=DR(Ae,Hr),xt=DR(Ae,tl);if(Nt&&xt&&(sn.rangeCount!==1||sn.anchorNode!==Nt.node||sn.anchorOffset!==Nt.offset||sn.focusNode!==xt.node||sn.focusOffset!==xt.offset)){var $t=Sn.createRange();$t.setStart(Nt.node,Nt.offset),sn.removeAllRanges(),Hr>tl?(sn.addRange($t),sn.extend(xt.node,xt.offset)):($t.setEnd(xt.node,xt.offset),sn.addRange($t))}}}}for(Sn=[],sn=Ae;sn=sn.parentNode;)sn.nodeType===1&&Sn.push({element:sn,left:sn.scrollLeft,top:sn.scrollTop});for(typeof Ae.focus=="function"&&Ae.focus(),Ae=0;Ae<Sn.length;Ae++){var an=Sn[Ae];an.element.scrollLeft=an.left,an.element.scrollTop=an.top}}v6=!!qN,HN=qN=null}finally{oc=B,Ee.p=D,he.T=j}}w.current=y,Ia=2}}function FB(){if(Ia===2){Ia=0;var w=E2,y=z5,j=(y.flags&8772)!==0;if((y.subtreeFlags&8772)!==0||j){j=he.T,he.T=null;var D=Ee.p;Ee.p=2;var B=oc;oc|=4;try{mB(w,y.alternate,y)}finally{oc=B,Ee.p=D,he.T=j}}Ia=3}}function qB(){if(Ia===4||Ia===3){Ia=0,ko();var w=E2,y=z5,j=km,D=CB;(y.subtreeFlags&10256)!==0||(y.flags&10256)!==0?Ia=5:(Ia=0,z5=E2=null,HB(w,w.pendingLanes));var B=w.pendingLanes;if(B===0&&(T2=null),Ry(j),y=y.stateNode,of&&typeof of.onCommitFiberRoot=="function")try{of.onCommitFiberRoot(im,y,void 0,(y.current.flags&128)===128)}catch{}if(D!==null){y=he.T,B=Ee.p,Ee.p=2,he.T=null;try{for(var H=w.onRecoverableError,fe=0;fe<D.length;fe++){var Ae=D[fe];H(Ae.value,{componentStack:Ae.stack})}}finally{he.T=y,Ee.p=B}}(km&3)!==0&&G8(),Pp(w),B=w.pendingLanes,(j&261930)!==0&&(B&42)!==0?w===CN?f6++:(f6=0,CN=w):f6=0,h6(0)}}function HB(w,y){(w.pooledCacheLanes&=y)===0&&(y=w.pooledCache,y!=null&&(w.pooledCache=null,GO(y)))}function G8(){return zB(),FB(),qB(),QB()}function QB(){if(Ia!==5)return!1;var w=E2,y=TN;TN=0;var j=Ry(km),D=he.T,B=Ee.p;try{Ee.p=32>j?32:j,he.T=null,j=EN,EN=null;var H=E2,fe=km;if(Ia=0,z5=E2=null,km=0,(oc&6)!==0)throw Error(h(331));var Ae=oc;if(oc|=4,jB(H.current),R8(H,H.current,fe,j),oc=Ae,h6(0,!1),of&&typeof of.onPostCommitFiberRoot=="function")try{of.onPostCommitFiberRoot(im,H)}catch{}return!0}finally{Ee.p=B,he.T=D,HB(w,y)}}function GB(w,y,j){y=ug(j,y),y=rN(w.stateNode,y,2),w=v2(w,y,2),w!==null&&(sm(w,2),Pp(w))}function Tc(w,y,j){if(w.tag===3)GB(w,w,j);else for(;y!==null;){if(y.tag===3){GB(y,w,j);break}else if(y.tag===1){var D=y.stateNode;if(typeof y.type.getDerivedStateFromError=="function"||typeof D.componentDidCatch=="function"&&(T2===null||!T2.has(D))){w=ug(j,w),j=Y$(2),D=v2(y,j,2),D!==null&&(h1(j,D,y,w),sm(D,2),Pp(D));break}}y=y.return}}function NN(w,y,j){var D=w.pingCache;if(D===null){D=w.pingCache=new pK;var B=new Set;D.set(y,B)}else B=D.get(y),B===void 0&&(B=new Set,D.set(y,B));B.has(j)||(ON=!0,B.add(j),w=yK.bind(null,w,y,j),y.then(w,w))}function yK(w,y,j){var D=w.pingCache;D!==null&&D.delete(y),w.pingedLanes|=w.suspendedLanes&j,w.warmLanes&=~j,el===w&&(mo&j)===j&&(gu===4||gu===3&&(mo&62914560)===mo&&300>eu()-B8?(oc&2)===0&&F5(w,0):SN|=j,B5===mo&&(B5=0)),Pp(w)}function UB(w,y){y===0&&(y=u5()),w=Uy(w,y),w!==null&&(sm(w,y),Pp(w))}function xK(w){var y=w.memoizedState,j=0;y!==null&&(j=y.retryLane),UB(w,j)}function kK(w,y){var j=0;switch(w.tag){case 31:case 13:var D=w.stateNode,B=w.memoizedState;B!==null&&(j=B.retryLane);break;case 19:D=w.stateNode;break;case 22:D=w.stateNode._retryCache;break;default:throw Error(h(314))}D!==null&&D.delete(y),UB(w,j)}function OK(w,y){return rs(w,y)}var U8=null,H5=null,_N=!1,J8=!1,DN=!1,M2=0;function Pp(w){w!==H5&&w.next===null&&(H5===null?U8=H5=w:H5=H5.next=w),J8=!0,_N||(_N=!0,jK())}function h6(w,y){if(!DN&&J8){DN=!0;do for(var j=!1,D=U8;D!==null;){if(w!==0){var B=D.pendingLanes;if(B===0)var H=0;else{var fe=D.suspendedLanes,Ae=D.pingedLanes;H=(1<<31-zf(42|w)+1)-1,H&=B&~(fe&~Ae),H=H&201326741?H&201326741|1:H?H|2:0}H!==0&&(j=!0,WB(D,H))}else H=mo,H=r2(D,D===el?H:0,D.cancelPendingCommit!==null||D.timeoutHandle!==-1),(H&3)===0||rm(D,H)||(j=!0,WB(D,H));D=D.next}while(j);DN=!1}}function SK(){JB()}function JB(){J8=_N=!1;var w=0;M2!==0&&DK()&&(w=M2);for(var y=eu(),j=null,D=U8;D!==null;){var B=D.next,H=VB(D,y);H===0?(D.next=null,j===null?U8=B:j.next=B,B===null&&(H5=j)):(j=D,(w!==0||(H&3)!==0)&&(J8=!0)),D=B}Ia!==0&&Ia!==5||h6(w),M2!==0&&(M2=0)}function VB(w,y){for(var j=w.suspendedLanes,D=w.pingedLanes,B=w.expirationTimes,H=w.pendingLanes&-62914561;0<H;){var fe=31-zf(H),Ae=1<<fe,pt=B[fe];pt===-1?((Ae&j)===0||(Ae&D)!==0)&&(B[fe]=l5(Ae,y)):pt<=y&&(w.expiredLanes|=Ae),H&=~Ae}if(y=el,j=mo,j=r2(w,w===y?j:0,w.cancelPendingCommit!==null||w.timeoutHandle!==-1),D=w.callbackNode,j===0||w===y&&(jc===2||jc===9)||w.cancelPendingCommit!==null)return D!==null&&D!==null&&fr(D),w.callbackNode=null,w.callbackPriority=0;if((j&3)===0||rm(w,j)){if(y=j&-j,y===w.callbackPriority)return y;switch(D!==null&&fr(D),Ry(j)){case 2:case 8:j=Tp;break;case 32:j=nm;break;case 268435456:j=Ep;break;default:j=nm}return D=XB.bind(null,w),j=rs(j,D),w.callbackPriority=y,w.callbackNode=j,y}return D!==null&&D!==null&&fr(D),w.callbackPriority=2,w.callbackNode=null,2}function XB(w,y){if(Ia!==0&&Ia!==5)return w.callbackNode=null,w.callbackPriority=0,null;var j=w.callbackNode;if(G8()&&w.callbackNode!==j)return null;var D=mo;return D=r2(w,w===el?D:0,w.cancelPendingCommit!==null||w.timeoutHandle!==-1),D===0?null:(AB(w,D,y),VB(w,eu()),w.callbackNode!=null&&w.callbackNode===j?XB.bind(null,w):null)}function WB(w,y){if(G8())return null;AB(w,y,!0)}function jK(){PK(function(){(oc&6)!==0?rs(og,SK):JB()})}function LN(){if(M2===0){var w=T5;w===0&&(w=t2,t2<<=1,(t2&261888)===0&&(t2=256)),M2=w}return M2}function KB(w){return w==null||typeof w=="symbol"||typeof w=="boolean"?null:typeof w=="function"?w:t8(""+w)}function YB(w,y){var j=y.ownerDocument.createElement("input");return j.name=y.name,j.value=y.value,w.id&&j.setAttribute("form",w.id),y.parentNode.insertBefore(j,y),w=new FormData(w),j.parentNode.removeChild(j),w}function ZB(w,y,j,D,B){if(y==="submit"&&j&&j.stateNode===B){var H=KB((B[kn]||null).action),fe=D.submitter;fe&&(y=(y=fe[kn]||null)?KB(y.formAction):fe.getAttribute("formAction"),y!==null&&(H=y,fe=null));var Ae=new s8("action","action",null,D,B);w.push({event:Ae,listeners:[{instance:null,listener:function(){if(D.defaultPrevented){if(M2!==0){var pt=fe?YB(B,fe):new FormData(B);e6(j,{pending:!0,data:pt,method:B.method,action:H},null,pt)}}else typeof H=="function"&&(Ae.preventDefault(),pt=fe?YB(B,fe):new FormData(B),e6(j,{pending:!0,data:pt,method:B.method,action:H},H,pt))},currentTarget:B}]})}}for(var PN=0;PN<bA.length;PN++){var IN=bA[PN],RN=IN.toLowerCase(),TK=IN[0].toUpperCase()+IN.slice(1);h0(RN,"on"+TK)}h0($R,"onAnimationEnd"),h0(BR,"onAnimationIteration"),h0(zR,"onAnimationStart"),h0("dblclick","onDoubleClick"),h0("focusin","onFocus"),h0("focusout","onBlur"),h0(JW,"onTransitionRun"),h0(VW,"onTransitionStart"),h0(XW,"onTransitionCancel"),h0(FR,"onTransitionEnd"),l2("onMouseEnter",["mouseout","mouseover"]),l2("onMouseLeave",["mouseout","mouseover"]),l2("onPointerEnter",["pointerout","pointerover"]),l2("onPointerLeave",["pointerout","pointerover"]),lm("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),lm("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),lm("onBeforeInput",["compositionend","keypress","textInput","paste"]),lm("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),lm("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),lm("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var d6="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),EK=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(d6));function ez(w,y){y=(y&4)!==0;for(var j=0;j<w.length;j++){var D=w[j],B=D.event;D=D.listeners;e:{var H=void 0;if(y)for(var fe=D.length-1;0<=fe;fe--){var Ae=D[fe],pt=Ae.instance,Ft=Ae.currentTarget;if(Ae=Ae.listener,pt!==H&&B.isPropagationStopped())break e;H=Ae,B.currentTarget=Ft;try{H(B)}catch(pn){l8(pn)}B.currentTarget=null,H=pt}else for(fe=0;fe<D.length;fe++){if(Ae=D[fe],pt=Ae.instance,Ft=Ae.currentTarget,Ae=Ae.listener,pt!==H&&B.isPropagationStopped())break e;H=Ae,B.currentTarget=Ft;try{H(B)}catch(pn){l8(pn)}B.currentTarget=null,H=pt}}}}function oo(w,y){var j=y[al];j===void 0&&(j=y[al]=new Set);var D=w+"__bubble";j.has(D)||(tz(y,w,2,!1),j.add(D))}function $N(w,y,j){var D=0;y&&(D|=4),tz(j,w,D,y)}var V8="_reactListening"+Math.random().toString(36).slice(2);function BN(w){if(!w[V8]){w[V8]=!0,V9.forEach(function(j){j!=="selectionchange"&&(EK.has(j)||$N(j,!1,w),$N(j,!0,w))});var y=w.nodeType===9?w:w.ownerDocument;y===null||y[V8]||(y[V8]=!0,$N("selectionchange",!1,y))}}function tz(w,y,j,D){switch(KK(y)){case 2:var B=bg;break;case 8:B=WK;break;default:B=Tz}j=B.bind(null,y,j,w),B=void 0,!nA||y!=="touchstart"&&y!=="touchmove"&&y!=="wheel"||(B=!0),D?B!==void 0?w.addEventListener(y,j,{capture:!0,passive:B}):w.addEventListener(y,j,!0):B!==void 0?w.addEventListener(y,j,{passive:B}):w.addEventListener(y,j,!1)}function zN(w,y,j,D,B){var H=D;if((y&1)===0&&(y&2)===0&&D!==null)e:for(;;){if(D===null)return;var fe=D.tag;if(fe===3||fe===4){var Ae=D.stateNode.containerInfo;if(Ae===B)break;if(fe===4)for(fe=D.return;fe!==null;){var pt=fe.tag;if((pt===3||pt===4)&&fe.stateNode.containerInfo===B)return;fe=fe.return}for(;Ae!==null;){if(fe=Cp(Ae),fe===null)return;if(pt=fe.tag,pt===5||pt===6||pt===26||pt===27){D=H=fe;continue e}Ae=Ae.parentNode}}D=D.return}pR(function(){var Ft=H,pn=eA(j),Sn=[];e:{var Zt=qR.get(w);if(Zt!==void 0){var sn=s8,Yi=w;switch(w){case"keypress":if(i8(j)===0)break e;case"keydown":case"keyup":sn=jW;break;case"focusin":Yi="focus",sn=oA;break;case"focusout":Yi="blur",sn=oA;break;case"beforeblur":case"afterblur":sn=oA;break;case"click":if(j.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":sn=wR;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":sn=dW;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":sn=CW;break;case $R:case BR:case zR:sn=bW;break;case FR:sn=AW;break;case"scroll":case"scrollend":sn=fW;break;case"wheel":sn=_W;break;case"copy":case"cut":case"paste":sn=wW;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":sn=yR;break;case"toggle":case"beforetoggle":sn=LW}var Hr=(y&4)!==0,tl=!Hr&&(w==="scroll"||w==="scrollend"),Nt=Hr?Zt!==null?Zt+"Capture":null:Zt;Hr=[];for(var xt=Ft,$t;xt!==null;){var an=xt;if($t=an.stateNode,an=an.tag,an!==5&&an!==26&&an!==27||$t===null||Nt===null||(an=_O(xt,Nt),an!=null&&Hr.push(g6(xt,an,$t))),tl)break;xt=xt.return}0<Hr.length&&(Zt=new sn(Zt,Yi,null,j,pn),Sn.push({event:Zt,listeners:Hr}))}}if((y&7)===0){e:{if(Zt=w==="mouseover"||w==="pointerover",sn=w==="mouseout"||w==="pointerout",Zt&&j!==ZM&&(Yi=j.relatedTarget||j.fromElement)&&(Cp(Yi)||Yi[ro]))break e;if((sn||Zt)&&(Zt=pn.window===pn?pn:(Zt=pn.ownerDocument)?Zt.defaultView||Zt.parentWindow:window,sn?(Yi=j.relatedTarget||j.toElement,sn=Ft,Yi=Yi?Cp(Yi):null,Yi!==null&&(tl=m(Yi),Hr=Yi.tag,Yi!==tl||Hr!==5&&Hr!==27&&Hr!==6)&&(Yi=null)):(sn=null,Yi=Ft),sn!==Yi)){if(Hr=wR,an="onMouseLeave",Nt="onMouseEnter",xt="mouse",(w==="pointerout"||w==="pointerover")&&(Hr=yR,an="onPointerLeave",Nt="onPointerEnter",xt="pointer"),tl=sn==null?Zt:o2(sn),$t=Yi==null?Zt:o2(Yi),Zt=new Hr(an,xt+"leave",sn,j,pn),Zt.target=tl,Zt.relatedTarget=$t,an=null,Cp(pn)===Ft&&(Hr=new Hr(Nt,xt+"enter",Yi,j,pn),Hr.target=$t,Hr.relatedTarget=tl,an=Hr),tl=an,sn&&Yi)t:{for(Hr=CK,Nt=sn,xt=Yi,$t=0,an=Nt;an;an=Hr(an))$t++;an=0;for(var yr=xt;yr;yr=Hr(yr))an++;for(;0<$t-an;)Nt=Hr(Nt),$t--;for(;0<an-$t;)xt=Hr(xt),an--;for(;$t--;){if(Nt===xt||xt!==null&&Nt===xt.alternate){Hr=Nt;break t}Nt=Hr(Nt),xt=Hr(xt)}Hr=null}else Hr=null;sn!==null&&nz(Sn,Zt,sn,Hr,!1),Yi!==null&&tl!==null&&nz(Sn,tl,Yi,Hr,!0)}}e:{if(Zt=Ft?o2(Ft):window,sn=Zt.nodeName&&Zt.nodeName.toLowerCase(),sn==="select"||sn==="input"&&Zt.type==="file")var qo=CR;else if(TR(Zt))if(uA)qo=QW;else{qo=qW;var cr=FW}else sn=Zt.nodeName,!sn||sn.toLowerCase()!=="input"||Zt.type!=="checkbox"&&Zt.type!=="radio"?Ft&&YM(Ft.elementType)&&(qo=CR):qo=HW;if(qo&&(qo=qo(w,Ft))){ER(Sn,qo,j,pn);break e}cr&&cr(w,Zt,Ft),w==="focusout"&&Ft&&Zt.type==="number"&&Ft.memoizedProps.value!=null&&NO(Zt,"number",Zt.value)}switch(cr=Ft?o2(Ft):window,w){case"focusin":(TR(cr)||cr.contentEditable==="true")&&(m5=cr,dA=Ft,zO=null);break;case"focusout":zO=dA=m5=null;break;case"mousedown":gA=!0;break;case"contextmenu":case"mouseup":case"dragend":gA=!1,IR(Sn,j,pn);break;case"selectionchange":if(UW)break;case"keydown":case"keyup":IR(Sn,j,pn)}var gs;if(lA)e:{switch(w){case"compositionstart":var qs="onCompositionStart";break e;case"compositionend":qs="onCompositionEnd";break e;case"compositionupdate":qs="onCompositionUpdate";break e}qs=void 0}else b5?SR(w,j)&&(qs="onCompositionEnd"):w==="keydown"&&j.keyCode===229&&(qs="onCompositionStart");qs&&(xR&&j.locale!=="ko"&&(b5||qs!=="onCompositionStart"?qs==="onCompositionEnd"&&b5&&(gs=bR()):(a2=pn,iA="value"in a2?a2.value:a2.textContent,b5=!0)),cr=X8(Ft,qs),0<cr.length&&(qs=new vR(qs,w,null,j,pn),Sn.push({event:qs,listeners:cr}),gs?qs.data=gs:(gs=jR(j),gs!==null&&(qs.data=gs)))),(gs=IW?RW(w,j):$W(w,j))&&(qs=X8(Ft,"onBeforeInput"),0<qs.length&&(cr=new vR("onBeforeInput","beforeinput",null,j,pn),Sn.push({event:cr,listeners:qs}),cr.data=gs)),ZB(Sn,w,Ft,j,pn)}ez(Sn,y)})}function g6(w,y,j){return{instance:w,listener:y,currentTarget:j}}function X8(w,y){for(var j=y+"Capture",D=[];w!==null;){var B=w,H=B.stateNode;if(B=B.tag,B!==5&&B!==26&&B!==27||H===null||(B=_O(w,j),B!=null&&D.unshift(g6(w,B,H)),B=_O(w,y),B!=null&&D.push(g6(w,B,H))),w.tag===3)return D;w=w.return}return[]}function CK(w){if(w===null)return null;do w=w.return;while(w&&w.tag!==5&&w.tag!==27);return w||null}function nz(w,y,j,D,B){for(var H=y._reactName,fe=[];j!==null&&j!==D;){var Ae=j,pt=Ae.alternate,Ft=Ae.stateNode;if(Ae=Ae.tag,pt!==null&&pt===D)break;Ae!==5&&Ae!==26&&Ae!==27||Ft===null||(pt=Ft,B?(Ft=_O(j,H),Ft!=null&&fe.unshift(g6(j,Ft,pt))):B||(Ft=_O(j,H),Ft!=null&&fe.push(g6(j,Ft,pt)))),j=j.return}fe.length!==0&&w.push({event:y,listeners:fe})}var MK=/\r\n?/g,AK=/\u0000|\uFFFD/g;function iz(w){return(typeof w=="string"?w:""+w).replace(MK,`
`).replace(AK,"")}function rz(w,y){return y=iz(y),iz(w)===y}function Fc(w,y,j,D,B,H){switch(j){case"children":typeof D=="string"?y==="body"||y==="textarea"&&D===""||d5(w,D):(typeof D=="number"||typeof D=="bigint")&&y!=="body"&&d5(w,""+D);break;case"className":h5(w,"class",D);break;case"tabIndex":h5(w,"tabindex",D);break;case"dir":case"role":case"viewBox":case"width":case"height":h5(w,j,D);break;case"style":dR(w,D,H);break;case"data":if(y!=="object"){h5(w,"data",D);break}case"src":case"href":if(D===""&&(y!=="a"||j!=="href")){w.removeAttribute(j);break}if(D==null||typeof D=="function"||typeof D=="symbol"||typeof D=="boolean"){w.removeAttribute(j);break}D=t8(""+D),w.setAttribute(j,D);break;case"action":case"formAction":if(typeof D=="function"){w.setAttribute(j,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof H=="function"&&(j==="formAction"?(y!=="input"&&Fc(w,y,"name",B.name,B,null),Fc(w,y,"formEncType",B.formEncType,B,null),Fc(w,y,"formMethod",B.formMethod,B,null),Fc(w,y,"formTarget",B.formTarget,B,null)):(Fc(w,y,"encType",B.encType,B,null),Fc(w,y,"method",B.method,B,null),Fc(w,y,"target",B.target,B,null)));if(D==null||typeof D=="symbol"||typeof D=="boolean"){w.removeAttribute(j);break}D=t8(""+D),w.setAttribute(j,D);break;case"onClick":D!=null&&(w.onclick=am);break;case"onScroll":D!=null&&oo("scroll",w);break;case"onScrollEnd":D!=null&&oo("scrollend",w);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(h(61));if(j=D.__html,j!=null){if(B.children!=null)throw Error(h(60));w.innerHTML=j}}break;case"multiple":w.multiple=D&&typeof D!="function"&&typeof D!="symbol";break;case"muted":w.muted=D&&typeof D!="function"&&typeof D!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(D==null||typeof D=="function"||typeof D=="boolean"||typeof D=="symbol"){w.removeAttribute("xlink:href");break}j=t8(""+D),w.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",j);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":D!=null&&typeof D!="function"&&typeof D!="symbol"?w.setAttribute(j,""+D):w.removeAttribute(j);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":D&&typeof D!="function"&&typeof D!="symbol"?w.setAttribute(j,""):w.removeAttribute(j);break;case"capture":case"download":D===!0?w.setAttribute(j,""):D!==!1&&D!=null&&typeof D!="function"&&typeof D!="symbol"?w.setAttribute(j,D):w.removeAttribute(j);break;case"cols":case"rows":case"size":case"span":D!=null&&typeof D!="function"&&typeof D!="symbol"&&!isNaN(D)&&1<=D?w.setAttribute(j,D):w.removeAttribute(j);break;case"rowSpan":case"start":D==null||typeof D=="function"||typeof D=="symbol"||isNaN(D)?w.removeAttribute(j):w.setAttribute(j,D);break;case"popover":oo("beforetoggle",w),oo("toggle",w),zy(w,"popover",D);break;case"xlinkActuate":f0(w,"http://www.w3.org/1999/xlink","xlink:actuate",D);break;case"xlinkArcrole":f0(w,"http://www.w3.org/1999/xlink","xlink:arcrole",D);break;case"xlinkRole":f0(w,"http://www.w3.org/1999/xlink","xlink:role",D);break;case"xlinkShow":f0(w,"http://www.w3.org/1999/xlink","xlink:show",D);break;case"xlinkTitle":f0(w,"http://www.w3.org/1999/xlink","xlink:title",D);break;case"xlinkType":f0(w,"http://www.w3.org/1999/xlink","xlink:type",D);break;case"xmlBase":f0(w,"http://www.w3.org/XML/1998/namespace","xml:base",D);break;case"xmlLang":f0(w,"http://www.w3.org/XML/1998/namespace","xml:lang",D);break;case"xmlSpace":f0(w,"http://www.w3.org/XML/1998/namespace","xml:space",D);break;case"is":zy(w,"is",D);break;case"innerText":case"textContent":break;default:(!(2<j.length)||j[0]!=="o"&&j[0]!=="O"||j[1]!=="n"&&j[1]!=="N")&&(j=uW.get(j)||j,zy(w,j,D))}}function FN(w,y,j,D,B,H){switch(j){case"style":dR(w,D,H);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(h(61));if(j=D.__html,j!=null){if(B.children!=null)throw Error(h(60));w.innerHTML=j}}break;case"children":typeof D=="string"?d5(w,D):(typeof D=="number"||typeof D=="bigint")&&d5(w,""+D);break;case"onScroll":D!=null&&oo("scroll",w);break;case"onScrollEnd":D!=null&&oo("scrollend",w);break;case"onClick":D!=null&&(w.onclick=am);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!X9.hasOwnProperty(j))e:{if(j[0]==="o"&&j[1]==="n"&&(B=j.endsWith("Capture"),y=j.slice(2,B?j.length-7:void 0),H=w[kn]||null,H=H!=null?H[j]:null,typeof H=="function"&&w.removeEventListener(y,H,B),typeof D=="function")){typeof H!="function"&&H!==null&&(j in w?w[j]=null:w.hasAttribute(j)&&w.removeAttribute(j)),w.addEventListener(y,D,B);break e}j in w?w[j]=D:D===!0?w.setAttribute(j,""):zy(w,j,D)}}}function Qf(w,y,j){switch(y){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":oo("error",w),oo("load",w);var D=!1,B=!1,H;for(H in j)if(j.hasOwnProperty(H)){var fe=j[H];if(fe!=null)switch(H){case"src":D=!0;break;case"srcSet":B=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(h(137,y));default:Fc(w,y,H,fe,j,null)}}B&&Fc(w,y,"srcSet",j.srcSet,j,null),D&&Fc(w,y,"src",j.src,j,null);return;case"input":oo("invalid",w);var Ae=H=fe=B=null,pt=null,Ft=null;for(D in j)if(j.hasOwnProperty(D)){var pn=j[D];if(pn!=null)switch(D){case"name":B=pn;break;case"type":fe=pn;break;case"checked":pt=pn;break;case"defaultChecked":Ft=pn;break;case"value":H=pn;break;case"defaultValue":Ae=pn;break;case"children":case"dangerouslySetInnerHTML":if(pn!=null)throw Error(h(137,y));break;default:Fc(w,y,D,pn,j,null)}}e8(w,H,Ae,pt,Ft,fe,B,!1);return;case"select":oo("invalid",w),D=fe=H=null;for(B in j)if(j.hasOwnProperty(B)&&(Ae=j[B],Ae!=null))switch(B){case"value":H=Ae;break;case"defaultValue":fe=Ae;break;case"multiple":D=Ae;default:Fc(w,y,B,Ae,j,null)}y=H,j=fe,w.multiple=!!D,y!=null?um(w,!!D,y,!1):j!=null&&um(w,!!D,j,!0);return;case"textarea":oo("invalid",w),H=B=D=null;for(fe in j)if(j.hasOwnProperty(fe)&&(Ae=j[fe],Ae!=null))switch(fe){case"value":D=Ae;break;case"defaultValue":B=Ae;break;case"children":H=Ae;break;case"dangerouslySetInnerHTML":if(Ae!=null)throw Error(h(91));break;default:Fc(w,y,fe,Ae,j,null)}fR(w,D,B,H);return;case"option":for(pt in j)if(j.hasOwnProperty(pt)&&(D=j[pt],D!=null))switch(pt){case"selected":w.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:Fc(w,y,pt,D,j,null)}return;case"dialog":oo("beforetoggle",w),oo("toggle",w),oo("cancel",w),oo("close",w);break;case"iframe":case"object":oo("load",w);break;case"video":case"audio":for(D=0;D<d6.length;D++)oo(d6[D],w);break;case"image":oo("error",w),oo("load",w);break;case"details":oo("toggle",w);break;case"embed":case"source":case"link":oo("error",w),oo("load",w);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ft in j)if(j.hasOwnProperty(Ft)&&(D=j[Ft],D!=null))switch(Ft){case"children":case"dangerouslySetInnerHTML":throw Error(h(137,y));default:Fc(w,y,Ft,D,j,null)}return;default:if(YM(y)){for(pn in j)j.hasOwnProperty(pn)&&(D=j[pn],D!==void 0&&FN(w,y,pn,D,j,void 0));return}}for(Ae in j)j.hasOwnProperty(Ae)&&(D=j[Ae],D!=null&&Fc(w,y,Ae,D,j,null))}function NK(w,y,j,D){switch(y){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var B=null,H=null,fe=null,Ae=null,pt=null,Ft=null,pn=null;for(sn in j){var Sn=j[sn];if(j.hasOwnProperty(sn)&&Sn!=null)switch(sn){case"checked":break;case"value":break;case"defaultValue":pt=Sn;default:D.hasOwnProperty(sn)||Fc(w,y,sn,null,D,Sn)}}for(var Zt in D){var sn=D[Zt];if(Sn=j[Zt],D.hasOwnProperty(Zt)&&(sn!=null||Sn!=null))switch(Zt){case"type":H=sn;break;case"name":B=sn;break;case"checked":Ft=sn;break;case"defaultChecked":pn=sn;break;case"value":fe=sn;break;case"defaultValue":Ae=sn;break;case"children":case"dangerouslySetInnerHTML":if(sn!=null)throw Error(h(137,y));break;default:sn!==Sn&&Fc(w,y,Zt,sn,D,Sn)}}qy(w,fe,Ae,pt,Ft,pn,H,B);return;case"select":sn=fe=Ae=Zt=null;for(H in j)if(pt=j[H],j.hasOwnProperty(H)&&pt!=null)switch(H){case"value":break;case"multiple":sn=pt;default:D.hasOwnProperty(H)||Fc(w,y,H,null,D,pt)}for(B in D)if(H=D[B],pt=j[B],D.hasOwnProperty(B)&&(H!=null||pt!=null))switch(B){case"value":Zt=H;break;case"defaultValue":Ae=H;break;case"multiple":fe=H;default:H!==pt&&Fc(w,y,B,H,D,pt)}y=Ae,j=fe,D=sn,Zt!=null?um(w,!!j,Zt,!1):!!D!=!!j&&(y!=null?um(w,!!j,y,!0):um(w,!!j,j?[]:"",!1));return;case"textarea":sn=Zt=null;for(Ae in j)if(B=j[Ae],j.hasOwnProperty(Ae)&&B!=null&&!D.hasOwnProperty(Ae))switch(Ae){case"value":break;case"children":break;default:Fc(w,y,Ae,null,D,B)}for(fe in D)if(B=D[fe],H=j[fe],D.hasOwnProperty(fe)&&(B!=null||H!=null))switch(fe){case"value":Zt=B;break;case"defaultValue":sn=B;break;case"children":break;case"dangerouslySetInnerHTML":if(B!=null)throw Error(h(91));break;default:B!==H&&Fc(w,y,fe,B,D,H)}aR(w,Zt,sn);return;case"option":for(var Yi in j)if(Zt=j[Yi],j.hasOwnProperty(Yi)&&Zt!=null&&!D.hasOwnProperty(Yi))switch(Yi){case"selected":w.selected=!1;break;default:Fc(w,y,Yi,null,D,Zt)}for(pt in D)if(Zt=D[pt],sn=j[pt],D.hasOwnProperty(pt)&&Zt!==sn&&(Zt!=null||sn!=null))switch(pt){case"selected":w.selected=Zt&&typeof Zt!="function"&&typeof Zt!="symbol";break;default:Fc(w,y,pt,Zt,D,sn)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Hr in j)Zt=j[Hr],j.hasOwnProperty(Hr)&&Zt!=null&&!D.hasOwnProperty(Hr)&&Fc(w,y,Hr,null,D,Zt);for(Ft in D)if(Zt=D[Ft],sn=j[Ft],D.hasOwnProperty(Ft)&&Zt!==sn&&(Zt!=null||sn!=null))switch(Ft){case"children":case"dangerouslySetInnerHTML":if(Zt!=null)throw Error(h(137,y));break;default:Fc(w,y,Ft,Zt,D,sn)}return;default:if(YM(y)){for(var tl in j)Zt=j[tl],j.hasOwnProperty(tl)&&Zt!==void 0&&!D.hasOwnProperty(tl)&&FN(w,y,tl,void 0,D,Zt);for(pn in D)Zt=D[pn],sn=j[pn],!D.hasOwnProperty(pn)||Zt===sn||Zt===void 0&&sn===void 0||FN(w,y,pn,Zt,D,sn);return}}for(var Nt in j)Zt=j[Nt],j.hasOwnProperty(Nt)&&Zt!=null&&!D.hasOwnProperty(Nt)&&Fc(w,y,Nt,null,D,Zt);for(Sn in D)Zt=D[Sn],sn=j[Sn],!D.hasOwnProperty(Sn)||Zt===sn||Zt==null&&sn==null||Fc(w,y,Sn,Zt,D,sn)}function sz(w){switch(w){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _K(){if(typeof performance.getEntriesByType=="function"){for(var w=0,y=0,j=performance.getEntriesByType("resource"),D=0;D<j.length;D++){var B=j[D],H=B.transferSize,fe=B.initiatorType,Ae=B.duration;if(H&&Ae&&sz(fe)){for(fe=0,Ae=B.responseEnd,D+=1;D<j.length;D++){var pt=j[D],Ft=pt.startTime;if(Ft>Ae)break;var pn=pt.transferSize,Sn=pt.initiatorType;pn&&sz(Sn)&&(pt=pt.responseEnd,fe+=pn*(pt<Ae?1:(Ae-Ft)/(pt-Ft)))}if(--D,y+=8*(H+fe)/(B.duration/1e3),w++,10<w)break}}if(0<w)return y/w/1e6}return navigator.connection&&(w=navigator.connection.downlink,typeof w=="number")?w:5}var qN=null,HN=null;function W8(w){return w.nodeType===9?w:w.ownerDocument}function oz(w){switch(w){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function cz(w,y){if(w===0)switch(y){case"svg":return 1;case"math":return 2;default:return 0}return w===1&&y==="foreignObject"?0:w}function QN(w,y){return w==="textarea"||w==="noscript"||typeof y.children=="string"||typeof y.children=="number"||typeof y.children=="bigint"||typeof y.dangerouslySetInnerHTML=="object"&&y.dangerouslySetInnerHTML!==null&&y.dangerouslySetInnerHTML.__html!=null}var GN=null;function DK(){var w=window.event;return w&&w.type==="popstate"?w===GN?!1:(GN=w,!0):(GN=null,!1)}var lz=typeof setTimeout=="function"?setTimeout:void 0,LK=typeof clearTimeout=="function"?clearTimeout:void 0,uz=typeof Promise=="function"?Promise:void 0,PK=typeof queueMicrotask=="function"?queueMicrotask:typeof uz<"u"?function(w){return uz.resolve(null).then(w).catch(IK)}:lz;function IK(w){setTimeout(function(){throw w})}function A2(w){return w==="head"}function az(w,y){var j=y,D=0;do{var B=j.nextSibling;if(w.removeChild(j),B&&B.nodeType===8)if(j=B.data,j==="/$"||j==="/&"){if(D===0){w.removeChild(B),ox(y);return}D--}else if(j==="$"||j==="$?"||j==="$~"||j==="$!"||j==="&")D++;else if(j==="html")Q5(w.ownerDocument.documentElement);else if(j==="head"){j=w.ownerDocument.head,Q5(j);for(var H=j.firstChild;H;){var fe=H.nextSibling,Ae=H.nodeName;H[By]||Ae==="SCRIPT"||Ae==="STYLE"||Ae==="LINK"&&H.rel.toLowerCase()==="stylesheet"||j.removeChild(H),H=fe}}else j==="body"&&Q5(w.ownerDocument.body);j=B}while(j);ox(y)}function fz(w,y){var j=w;w=0;do{var D=j.nextSibling;if(j.nodeType===1?y?(j._stashedDisplay=j.style.display,j.style.display="none"):(j.style.display=j._stashedDisplay||"",j.getAttribute("style")===""&&j.removeAttribute("style")):j.nodeType===3&&(y?(j._stashedText=j.nodeValue,j.nodeValue=""):j.nodeValue=j._stashedText||""),D&&D.nodeType===8)if(j=D.data,j==="/$"){if(w===0)break;w--}else j!=="$"&&j!=="$?"&&j!=="$~"&&j!=="$!"||w++;j=D}while(j)}function UN(w){var y=w.firstChild;for(y&&y.nodeType===10&&(y=y.nextSibling);y;){var j=y;switch(y=y.nextSibling,j.nodeName){case"HTML":case"HEAD":case"BODY":UN(j),MO(j);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(j.rel.toLowerCase()==="stylesheet")continue}w.removeChild(j)}}function RK(w,y,j,D){for(;w.nodeType===1;){var B=j;if(w.nodeName.toLowerCase()!==y.toLowerCase()){if(!D&&(w.nodeName!=="INPUT"||w.type!=="hidden"))break}else if(D){if(!w[By])switch(y){case"meta":if(!w.hasAttribute("itemprop"))break;return w;case"link":if(H=w.getAttribute("rel"),H==="stylesheet"&&w.hasAttribute("data-precedence"))break;if(H!==B.rel||w.getAttribute("href")!==(B.href==null||B.href===""?null:B.href)||w.getAttribute("crossorigin")!==(B.crossOrigin==null?null:B.crossOrigin)||w.getAttribute("title")!==(B.title==null?null:B.title))break;return w;case"style":if(w.hasAttribute("data-precedence"))break;return w;case"script":if(H=w.getAttribute("src"),(H!==(B.src==null?null:B.src)||w.getAttribute("type")!==(B.type==null?null:B.type)||w.getAttribute("crossorigin")!==(B.crossOrigin==null?null:B.crossOrigin))&&H&&w.hasAttribute("async")&&!w.hasAttribute("itemprop"))break;return w;default:return w}}else if(y==="input"&&w.type==="hidden"){var H=B.name==null?null:""+B.name;if(B.type==="hidden"&&w.getAttribute("name")===H)return w}else return w;if(w=pg(w.nextSibling),w===null)break}return null}function $K(w,y,j){if(y==="")return null;for(;w.nodeType!==3;)if((w.nodeType!==1||w.nodeName!=="INPUT"||w.type!=="hidden")&&!j||(w=pg(w.nextSibling),w===null))return null;return w}function hz(w,y){for(;w.nodeType!==8;)if((w.nodeType!==1||w.nodeName!=="INPUT"||w.type!=="hidden")&&!y||(w=pg(w.nextSibling),w===null))return null;return w}function JN(w){return w.data==="$?"||w.data==="$~"}function VN(w){return w.data==="$!"||w.data==="$?"&&w.ownerDocument.readyState!=="loading"}function BK(w,y){var j=w.ownerDocument;if(w.data==="$~")w._reactRetry=y;else if(w.data!=="$?"||j.readyState!=="loading")y();else{var D=function(){y(),j.removeEventListener("DOMContentLoaded",D)};j.addEventListener("DOMContentLoaded",D),w._reactRetry=D}}function pg(w){for(;w!=null;w=w.nextSibling){var y=w.nodeType;if(y===1||y===3)break;if(y===8){if(y=w.data,y==="$"||y==="$!"||y==="$?"||y==="$~"||y==="&"||y==="F!"||y==="F")break;if(y==="/$"||y==="/&")return null}}return w}var XN=null;function WN(w){w=w.nextSibling;for(var y=0;w;){if(w.nodeType===8){var j=w.data;if(j==="/$"||j==="/&"){if(y===0)return pg(w.nextSibling);y--}else j!=="$"&&j!=="$!"&&j!=="$?"&&j!=="$~"&&j!=="&"||y++}w=w.nextSibling}return null}function dz(w){w=w.previousSibling;for(var y=0;w;){if(w.nodeType===8){var j=w.data;if(j==="$"||j==="$!"||j==="$?"||j==="$~"||j==="&"){if(y===0)return w;y--}else j!=="/$"&&j!=="/&"||y++}w=w.previousSibling}return null}function gz(w,y,j){switch(y=W8(j),w){case"html":if(w=y.documentElement,!w)throw Error(h(452));return w;case"head":if(w=y.head,!w)throw Error(h(453));return w;case"body":if(w=y.body,!w)throw Error(h(454));return w;default:throw Error(h(451))}}function Q5(w){for(var y=w.attributes;y.length;)w.removeAttributeNode(y[0]);MO(w)}var b1=new Map,ua=new Set;function K8(w){return typeof w.getRootNode=="function"?w.getRootNode():w.nodeType===9?w:w.ownerDocument}var Ip=Ee.d;Ee.d={f:zK,r:Y8,D:FK,C:bz,L:mz,m:qK,X:HK,S:KN,M:QK};function zK(){var w=Ip.f(),y=q8();return w||y}function Y8(w){var y=s2(w);y!==null&&y.tag===5&&y.type==="form"?C8(y):Ip.r(w)}var G5=typeof document>"u"?null:document;function pz(w,y,j){var D=G5;if(D&&typeof y=="string"&&y){var B=Sd(y);B='link[rel="'+w+'"][href="'+B+'"]',typeof j=="string"&&(B+='[crossorigin="'+j+'"]'),ua.has(B)||(ua.add(B),w={rel:w,crossOrigin:j,href:y},D.querySelector(B)===null&&(y=D.createElement("link"),Qf(y,"link",w),sa(y),D.head.appendChild(y)))}}function FK(w){Ip.D(w),pz("dns-prefetch",w,null)}function bz(w,y){Ip.C(w,y),pz("preconnect",w,y)}function mz(w,y,j){Ip.L(w,y,j);var D=G5;if(D&&w&&y){var B='link[rel="preload"][as="'+Sd(y)+'"]';y==="image"&&j&&j.imageSrcSet?(B+='[imagesrcset="'+Sd(j.imageSrcSet)+'"]',typeof j.imageSizes=="string"&&(B+='[imagesizes="'+Sd(j.imageSizes)+'"]')):B+='[href="'+Sd(w)+'"]';var H=B;switch(y){case"style":H=U5(w);break;case"script":H=J5(w)}b1.has(H)||(w=_({rel:"preload",href:y==="image"&&j&&j.imageSrcSet?void 0:w,as:y},j),b1.set(H,w),D.querySelector(B)!==null||y==="style"&&D.querySelector(p6(H))||y==="script"&&D.querySelector(b6(H))||(y=D.createElement("link"),Qf(y,"link",w),sa(y),D.head.appendChild(y)))}}function qK(w,y){Ip.m(w,y);var j=G5;if(j&&w){var D=y&&typeof y.as=="string"?y.as:"script",B='link[rel="modulepreload"][as="'+Sd(D)+'"][href="'+Sd(w)+'"]',H=B;switch(D){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":H=J5(w)}if(!b1.has(H)&&(w=_({rel:"modulepreload",href:w},y),b1.set(H,w),j.querySelector(B)===null)){switch(D){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(j.querySelector(b6(H)))return}D=j.createElement("link"),Qf(D,"link",w),sa(D),j.head.appendChild(D)}}}function KN(w,y,j){Ip.S(w,y,j);var D=G5;if(D&&w){var B=c2(D).hoistableStyles,H=U5(w);y=y||"default";var fe=B.get(H);if(!fe){var Ae={loading:0,preload:null};if(fe=D.querySelector(p6(H)))Ae.loading=5;else{w=_({rel:"stylesheet",href:w,"data-precedence":y},j),(j=b1.get(H))&&ZN(w,j);var pt=fe=D.createElement("link");sa(pt),Qf(pt,"link",w),pt._p=new Promise(function(Ft,pn){pt.onload=Ft,pt.onerror=pn}),pt.addEventListener("load",function(){Ae.loading|=1}),pt.addEventListener("error",function(){Ae.loading|=2}),Ae.loading|=4,V5(fe,y,D)}fe={type:"stylesheet",instance:fe,count:1,state:Ae},B.set(H,fe)}}}function HK(w,y){Ip.X(w,y);var j=G5;if(j&&w){var D=c2(j).hoistableScripts,B=J5(w),H=D.get(B);H||(H=j.querySelector(b6(B)),H||(w=_({src:w,async:!0},y),(y=b1.get(B))&&e_(w,y),H=j.createElement("script"),sa(H),Qf(H,"link",w),j.head.appendChild(H)),H={type:"script",instance:H,count:1,state:null},D.set(B,H))}}function QK(w,y){Ip.M(w,y);var j=G5;if(j&&w){var D=c2(j).hoistableScripts,B=J5(w),H=D.get(B);H||(H=j.querySelector(b6(B)),H||(w=_({src:w,async:!0,type:"module"},y),(y=b1.get(B))&&e_(w,y),H=j.createElement("script"),sa(H),Qf(H,"link",w),j.head.appendChild(H)),H={type:"script",instance:H,count:1,state:null},D.set(B,H))}}function wz(w,y,j,D){var B=(B=cn.current)?K8(B):null;if(!B)throw Error(h(446));switch(w){case"meta":case"title":return null;case"style":return typeof j.precedence=="string"&&typeof j.href=="string"?(y=U5(j.href),j=c2(B).hoistableStyles,D=j.get(y),D||(D={type:"style",instance:null,count:0,state:null},j.set(y,D)),D):{type:"void",instance:null,count:0,state:null};case"link":if(j.rel==="stylesheet"&&typeof j.href=="string"&&typeof j.precedence=="string"){w=U5(j.href);var H=c2(B).hoistableStyles,fe=H.get(w);if(fe||(B=B.ownerDocument||B,fe={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},H.set(w,fe),(H=B.querySelector(p6(w)))&&!H._p&&(fe.instance=H,fe.state.loading=5),b1.has(w)||(j={rel:"preload",as:"style",href:j.href,crossOrigin:j.crossOrigin,integrity:j.integrity,media:j.media,hrefLang:j.hrefLang,referrerPolicy:j.referrerPolicy},b1.set(w,j),H||YN(B,w,j,fe.state))),y&&D===null)throw Error(h(528,""));return fe}if(y&&D!==null)throw Error(h(529,""));return null;case"script":return y=j.async,j=j.src,typeof j=="string"&&y&&typeof y!="function"&&typeof y!="symbol"?(y=J5(j),j=c2(B).hoistableScripts,D=j.get(y),D||(D={type:"script",instance:null,count:0,state:null},j.set(y,D)),D):{type:"void",instance:null,count:0,state:null};default:throw Error(h(444,w))}}function U5(w){return'href="'+Sd(w)+'"'}function p6(w){return'link[rel="stylesheet"]['+w+"]"}function vz(w){return _({},w,{"data-precedence":w.precedence,precedence:null})}function YN(w,y,j,D){w.querySelector('link[rel="preload"][as="style"]['+y+"]")?D.loading=1:(y=w.createElement("link"),D.preload=y,y.addEventListener("load",function(){return D.loading|=1}),y.addEventListener("error",function(){return D.loading|=2}),Qf(y,"link",j),sa(y),w.head.appendChild(y))}function J5(w){return'[src="'+Sd(w)+'"]'}function b6(w){return"script[async]"+w}function yz(w,y,j){if(y.count++,y.instance===null)switch(y.type){case"style":var D=w.querySelector('style[data-href~="'+Sd(j.href)+'"]');if(D)return y.instance=D,sa(D),D;var B=_({},j,{"data-href":j.href,"data-precedence":j.precedence,href:null,precedence:null});return D=(w.ownerDocument||w).createElement("style"),sa(D),Qf(D,"style",B),V5(D,j.precedence,w),y.instance=D;case"stylesheet":B=U5(j.href);var H=w.querySelector(p6(B));if(H)return y.state.loading|=4,y.instance=H,sa(H),H;D=vz(j),(B=b1.get(B))&&ZN(D,B),H=(w.ownerDocument||w).createElement("link"),sa(H);var fe=H;return fe._p=new Promise(function(Ae,pt){fe.onload=Ae,fe.onerror=pt}),Qf(H,"link",D),y.state.loading|=4,V5(H,j.precedence,w),y.instance=H;case"script":return H=J5(j.src),(B=w.querySelector(b6(H)))?(y.instance=B,sa(B),B):(D=j,(B=b1.get(H))&&(D=_({},j),e_(D,B)),w=w.ownerDocument||w,B=w.createElement("script"),sa(B),Qf(B,"link",D),w.head.appendChild(B),y.instance=B);case"void":return null;default:throw Error(h(443,y.type))}else y.type==="stylesheet"&&(y.state.loading&4)===0&&(D=y.instance,y.state.loading|=4,V5(D,j.precedence,w));return y.instance}function V5(w,y,j){for(var D=j.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),B=D.length?D[D.length-1]:null,H=B,fe=0;fe<D.length;fe++){var Ae=D[fe];if(Ae.dataset.precedence===y)H=Ae;else if(H!==B)break}H?H.parentNode.insertBefore(w,H.nextSibling):(y=j.nodeType===9?j.head:j,y.insertBefore(w,y.firstChild))}function ZN(w,y){w.crossOrigin==null&&(w.crossOrigin=y.crossOrigin),w.referrerPolicy==null&&(w.referrerPolicy=y.referrerPolicy),w.title==null&&(w.title=y.title)}function e_(w,y){w.crossOrigin==null&&(w.crossOrigin=y.crossOrigin),w.referrerPolicy==null&&(w.referrerPolicy=y.referrerPolicy),w.integrity==null&&(w.integrity=y.integrity)}var X5=null;function xz(w,y,j){if(X5===null){var D=new Map,B=X5=new Map;B.set(j,D)}else B=X5,D=B.get(j),D||(D=new Map,B.set(j,D));if(D.has(w))return D;for(D.set(w,null),j=j.getElementsByTagName(w),B=0;B<j.length;B++){var H=j[B];if(!(H[By]||H[Au]||w==="link"&&H.getAttribute("rel")==="stylesheet")&&H.namespaceURI!=="http://www.w3.org/2000/svg"){var fe=H.getAttribute(y)||"";fe=w+fe;var Ae=D.get(fe);Ae?Ae.push(H):D.set(fe,[H])}}return D}function Z8(w,y,j){w=w.ownerDocument||w,w.head.insertBefore(j,y==="title"?w.querySelector("head > title"):null)}function GK(w,y,j){if(j===1||y.itemProp!=null)return!1;switch(w){case"meta":case"title":return!0;case"style":if(typeof y.precedence!="string"||typeof y.href!="string"||y.href==="")break;return!0;case"link":if(typeof y.rel!="string"||typeof y.href!="string"||y.href===""||y.onLoad||y.onError)break;switch(y.rel){case"stylesheet":return w=y.disabled,typeof y.precedence=="string"&&w==null;default:return!0}case"script":if(y.async&&typeof y.async!="function"&&typeof y.async!="symbol"&&!y.onLoad&&!y.onError&&y.src&&typeof y.src=="string")return!0}return!1}function kz(w){return!(w.type==="stylesheet"&&(w.state.loading&3)===0)}function UK(w,y,j,D){if(j.type==="stylesheet"&&(typeof D.media!="string"||matchMedia(D.media).matches!==!1)&&(j.state.loading&4)===0){if(j.instance===null){var B=U5(D.href),H=y.querySelector(p6(B));if(H){y=H._p,y!==null&&typeof y=="object"&&typeof y.then=="function"&&(w.count++,w=eT.bind(w),y.then(w,w)),j.state.loading|=4,j.instance=H,sa(H);return}H=y.ownerDocument||y,D=vz(D),(B=b1.get(B))&&ZN(D,B),H=H.createElement("link"),sa(H);var fe=H;fe._p=new Promise(function(Ae,pt){fe.onload=Ae,fe.onerror=pt}),Qf(H,"link",D),j.instance=H}w.stylesheets===null&&(w.stylesheets=new Map),w.stylesheets.set(j,y),(y=j.state.preload)&&(j.state.loading&3)===0&&(w.count++,j=eT.bind(w),y.addEventListener("load",j),y.addEventListener("error",j))}}var t_=0;function JK(w,y){return w.stylesheets&&w.count===0&&nT(w,w.stylesheets),0<w.count||0<w.imgCount?function(j){var D=setTimeout(function(){if(w.stylesheets&&nT(w,w.stylesheets),w.unsuspend){var H=w.unsuspend;w.unsuspend=null,H()}},6e4+y);0<w.imgBytes&&t_===0&&(t_=62500*_K());var B=setTimeout(function(){if(w.waitingForImages=!1,w.count===0&&(w.stylesheets&&nT(w,w.stylesheets),w.unsuspend)){var H=w.unsuspend;w.unsuspend=null,H()}},(w.imgBytes>t_?50:800)+y);return w.unsuspend=j,function(){w.unsuspend=null,clearTimeout(D),clearTimeout(B)}}:null}function eT(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nT(this,this.stylesheets);else if(this.unsuspend){var w=this.unsuspend;this.unsuspend=null,w()}}}var tT=null;function nT(w,y){w.stylesheets=null,w.unsuspend!==null&&(w.count++,tT=new Map,y.forEach(VK,w),tT=null,eT.call(w))}function VK(w,y){if(!(y.state.loading&4)){var j=tT.get(w);if(j)var D=j.get(null);else{j=new Map,tT.set(w,j);for(var B=w.querySelectorAll("link[data-precedence],style[data-precedence]"),H=0;H<B.length;H++){var fe=B[H];(fe.nodeName==="LINK"||fe.getAttribute("media")!=="not all")&&(j.set(fe.dataset.precedence,fe),D=fe)}D&&j.set(null,D)}B=y.instance,fe=B.getAttribute("data-precedence"),H=j.get(fe)||D,H===D&&j.set(null,B),j.set(fe,B),this.count++,D=eT.bind(this),B.addEventListener("load",D),B.addEventListener("error",D),H?H.parentNode.insertBefore(B,H.nextSibling):(w=w.nodeType===9?w.head:w,w.insertBefore(B,w.firstChild)),y.state.loading|=4}}var m6={$$typeof:te,Provider:null,Consumer:null,_currentValue:Te,_currentValue2:Te,_threadCount:0};function XK(w,y,j,D,B,H,fe,Ae,pt){this.tag=1,this.containerInfo=w,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Py(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Py(0),this.hiddenUpdates=Py(null),this.identifierPrefix=D,this.onUncaughtError=B,this.onCaughtError=H,this.onRecoverableError=fe,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=pt,this.incompleteTransitions=new Map}function Oz(w,y,j,D,B,H,fe,Ae,pt,Ft,pn,Sn){return w=new XK(w,y,j,fe,pt,Ft,pn,Sn,Ae),y=1,H===!0&&(y|=24),H=u1(3,null,null,y),w.current=H,H.stateNode=w,y=MA(),y.refCount++,w.pooledCache=y,y.refCount++,H.memoizedState={element:D,isDehydrated:j,cache:y},LA(H),w}function Sz(w){return w?(w=y5,w):y5}function jz(w,y,j,D,B,H){B=Sz(B),D.context===null?D.context=B:D.pendingContext=B,D=w2(y),D.payload={element:j},H=H===void 0?null:H,H!==null&&(D.callback=H),j=v2(w,D,y),j!==null&&(Md(j,w,y),XO(j,w,y))}function n_(w,y){if(w=w.memoizedState,w!==null&&w.dehydrated!==null){var j=w.retryLane;w.retryLane=j!==0&&j<y?j:y}}function iT(w,y){n_(w,y),(w=w.alternate)&&n_(w,y)}function w6(w){if(w.tag===13||w.tag===31){var y=Uy(w,67108864);y!==null&&Md(y,w,67108864),iT(w,67108864)}}function W5(w){if(w.tag===13||w.tag===31){var y=p1();y=cm(y);var j=Uy(w,y);j!==null&&Md(j,w,y),iT(w,y)}}var v6=!0;function bg(w,y,j,D){var B=he.T;he.T=null;var H=Ee.p;try{Ee.p=2,Tz(w,y,j,D)}finally{Ee.p=H,he.T=B}}function WK(w,y,j,D){var B=he.T;he.T=null;var H=Ee.p;try{Ee.p=8,Tz(w,y,j,D)}finally{Ee.p=H,he.T=B}}function Tz(w,y,j,D){if(v6){var B=Ez(D);if(B===null)zN(w,y,D,i_,j),YK(w,D);else if(r_(B,w,y,j,D))D.stopPropagation();else if(YK(w,D),y&4&&-1<Rde.indexOf(w)){for(;B!==null;){var H=s2(B);if(H!==null)switch(H.tag){case 3:if(H=H.stateNode,H.current.memoizedState.isDehydrated){var fe=a0(H.pendingLanes);if(fe!==0){var Ae=H;for(Ae.pendingLanes|=2,Ae.entangledLanes|=2;fe;){var pt=1<<31-zf(fe);Ae.entanglements[1]|=pt,fe&=~pt}Pp(H),(oc&6)===0&&(z8=eu()+500,h6(0))}}break;case 31:case 13:Ae=Uy(H,2),Ae!==null&&Md(Ae,H,2),q8(),iT(H,2)}if(H=Ez(D),H===null&&zN(w,y,D,i_,j),H===B)break;B=H}B!==null&&D.stopPropagation()}else zN(w,y,D,null,j)}}function Ez(w){return w=eA(w),Cz(w)}var i_=null;function Cz(w){if(i_=null,w=Cp(w),w!==null){var y=m(w);if(y===null)w=null;else{var j=y.tag;if(j===13){if(w=p(y),w!==null)return w;w=null}else if(j===31){if(w=k(y),w!==null)return w;w=null}else if(j===3){if(y.stateNode.current.memoizedState.isDehydrated)return y.tag===3?y.stateNode.containerInfo:null;w=null}else y!==w&&(w=null)}}return i_=w,null}function KK(w){switch(w){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(tm()){case og:return 2;case Tp:return 8;case nm:case Mu:return 32;case Ep:return 268435456;default:return 32}default:return 32}}var Mz=!1,pu=null,Om=null,rx=null,K5=new Map,Y5=new Map,sx=[],Rde="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function YK(w,y){switch(w){case"focusin":case"focusout":pu=null;break;case"dragenter":case"dragleave":Om=null;break;case"mouseover":case"mouseout":rx=null;break;case"pointerover":case"pointerout":K5.delete(y.pointerId);break;case"gotpointercapture":case"lostpointercapture":Y5.delete(y.pointerId)}}function rT(w,y,j,D,B,H){return w===null||w.nativeEvent!==H?(w={blockedOn:y,domEventName:j,eventSystemFlags:D,nativeEvent:H,targetContainers:[B]},y!==null&&(y=s2(y),y!==null&&w6(y)),w):(w.eventSystemFlags|=D,y=w.targetContainers,B!==null&&y.indexOf(B)===-1&&y.push(B),w)}function r_(w,y,j,D,B){switch(y){case"focusin":return pu=rT(pu,w,y,j,D,B),!0;case"dragenter":return Om=rT(Om,w,y,j,D,B),!0;case"mouseover":return rx=rT(rx,w,y,j,D,B),!0;case"pointerover":var H=B.pointerId;return K5.set(H,rT(K5.get(H)||null,w,y,j,D,B)),!0;case"gotpointercapture":return H=B.pointerId,Y5.set(H,rT(Y5.get(H)||null,w,y,j,D,B)),!0}return!1}function y6(w){var y=Cp(w.target);if(y!==null){var j=m(y);if(j!==null){if(y=j.tag,y===13){if(y=p(j),y!==null){w.blockedOn=y,$y(w.priority,function(){W5(j)});return}}else if(y===31){if(y=k(j),y!==null){w.blockedOn=y,$y(w.priority,function(){W5(j)});return}}else if(y===3&&j.stateNode.current.memoizedState.isDehydrated){w.blockedOn=j.tag===3?j.stateNode.containerInfo:null;return}}}w.blockedOn=null}function x6(w){if(w.blockedOn!==null)return!1;for(var y=w.targetContainers;0<y.length;){var j=Ez(w.nativeEvent);if(j===null){j=w.nativeEvent;var D=new j.constructor(j.type,j);ZM=D,j.target.dispatchEvent(D),ZM=null}else return y=s2(j),y!==null&&w6(y),w.blockedOn=j,!1;y.shift()}return!0}function ZK(w,y,j){x6(w)&&j.delete(y)}function $de(){Mz=!1,pu!==null&&x6(pu)&&(pu=null),Om!==null&&x6(Om)&&(Om=null),rx!==null&&x6(rx)&&(rx=null),K5.forEach(ZK),Y5.forEach(ZK)}function s_(w,y){w.blockedOn===y&&(w.blockedOn=null,Mz||(Mz=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,$de)))}var sT=null;function eY(w){sT!==w&&(sT=w,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){sT===w&&(sT=null);for(var y=0;y<w.length;y+=3){var j=w[y],D=w[y+1],B=w[y+2];if(typeof D!="function"){if(Cz(D||j)===null)continue;break}var H=s2(j);H!==null&&(w.splice(y,3),y-=3,e6(H,{pending:!0,data:B,method:j.method,action:D},D,B))}}))}function ox(w){function y(pt){return s_(pt,w)}pu!==null&&s_(pu,w),Om!==null&&s_(Om,w),rx!==null&&s_(rx,w),K5.forEach(y),Y5.forEach(y);for(var j=0;j<sx.length;j++){var D=sx[j];D.blockedOn===w&&(D.blockedOn=null)}for(;0<sx.length&&(j=sx[0],j.blockedOn===null);)y6(j),j.blockedOn===null&&sx.shift();if(j=(w.ownerDocument||w).$$reactFormReplay,j!=null)for(D=0;D<j.length;D+=3){var B=j[D],H=j[D+1],fe=B[kn]||null;if(typeof H=="function")fe||eY(j);else if(fe){var Ae=null;if(H&&H.hasAttribute("formAction")){if(B=H,fe=H[kn]||null)Ae=fe.formAction;else if(Cz(B)!==null)continue}else Ae=fe.action;typeof Ae=="function"?j[D+1]=Ae:(j.splice(D,3),D-=3),eY(j)}}}function tY(){function w(H){H.canIntercept&&H.info==="react-transition"&&H.intercept({handler:function(){return new Promise(function(fe){return B=fe})},focusReset:"manual",scroll:"manual"})}function y(){B!==null&&(B(),B=null),D||setTimeout(j,20)}function j(){if(!D&&!navigation.transition){var H=navigation.currentEntry;H&&H.url!=null&&navigation.navigate(H.url,{state:H.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var D=!1,B=null;return navigation.addEventListener("navigate",w),navigation.addEventListener("navigatesuccess",y),navigation.addEventListener("navigateerror",y),setTimeout(j,100),function(){D=!0,navigation.removeEventListener("navigate",w),navigation.removeEventListener("navigatesuccess",y),navigation.removeEventListener("navigateerror",y),B!==null&&(B(),B=null)}}}function Az(w){this._internalRoot=w}o_.prototype.render=Az.prototype.render=function(w){var y=this._internalRoot;if(y===null)throw Error(h(409));var j=y.current,D=p1();jz(j,D,w,y,null,null)},o_.prototype.unmount=Az.prototype.unmount=function(){var w=this._internalRoot;if(w!==null){this._internalRoot=null;var y=w.containerInfo;jz(w.current,2,null,w,null,null),q8(),y[ro]=null}};function o_(w){this._internalRoot=w}o_.prototype.unstable_scheduleHydration=function(w){if(w){var y=f5();w={blockedOn:null,target:w,priority:y};for(var j=0;j<sx.length&&y!==0&&y<sx[j].priority;j++);sx.splice(j,0,w),j===0&&y6(w)}};var Z5=s.version;if(Z5!=="19.2.4")throw Error(h(527,Z5,"19.2.4"));Ee.findDOMNode=function(w){var y=w._reactInternals;if(y===void 0)throw typeof w.render=="function"?Error(h(188)):(w=Object.keys(w).join(","),Error(h(268,w)));return w=C(y),w=w!==null?N(w):null,w=w===null?null:w.stateNode,w};var c_={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:he,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var e4=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!e4.isDisabled&&e4.supportsFiber)try{im=e4.inject(c_),of=e4}catch{}}return RV.createRoot=function(w,y){if(!g(w))throw Error(h(299));var j=!1,D="",B=V$,H=X$,fe=W$;return y!=null&&(y.unstable_strictMode===!0&&(j=!0),y.identifierPrefix!==void 0&&(D=y.identifierPrefix),y.onUncaughtError!==void 0&&(B=y.onUncaughtError),y.onCaughtError!==void 0&&(H=y.onCaughtError),y.onRecoverableError!==void 0&&(fe=y.onRecoverableError)),y=Oz(w,1,!1,null,null,j,D,null,B,H,fe,tY),w[ro]=y.current,BN(w),new Az(y)},RV.hydrateRoot=function(w,y,j){if(!g(w))throw Error(h(299));var D=!1,B="",H=V$,fe=X$,Ae=W$,pt=null;return j!=null&&(j.unstable_strictMode===!0&&(D=!0),j.identifierPrefix!==void 0&&(B=j.identifierPrefix),j.onUncaughtError!==void 0&&(H=j.onUncaughtError),j.onCaughtError!==void 0&&(fe=j.onCaughtError),j.onRecoverableError!==void 0&&(Ae=j.onRecoverableError),j.formState!==void 0&&(pt=j.formState)),y=Oz(w,1,!0,y,j??null,D,B,pt,H,fe,Ae,tY),y.context=Sz(null),j=y.current,D=p1(),D=cm(D),B=w2(D),B.callback=null,v2(j,B,D),j=D,y.current.lanes=j,sm(y,j),Pp(y),w[ro]=y.current,BN(w),new o_(y)},RV.version="19.2.4",RV}var zyt;function Nin(){if(zyt)return zEe.exports;zyt=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(s){console.error(s)}}return l(),zEe.exports=Ain(),zEe.exports}var _in=Nin();function fh(l){if(typeof l=="string"||typeof l=="number")return""+l;let s="";if(Array.isArray(l))for(let u=0,h;u<l.length;u++)(h=fh(l[u]))!==""&&(s+=(s&&" ")+h);else for(let u in l)l[u]&&(s+=(s&&" ")+u);return s}var Din={value:()=>{}};function tde(){for(var l=0,s=arguments.length,u={},h;l<s;++l){if(!(h=arguments[l]+"")||h in u||/[\s.]/.test(h))throw new Error("illegal type: "+h);u[h]=[]}return new Gfe(u)}function Gfe(l){this._=l}function Lin(l,s){return l.trim().split(/^|\s+/).map(function(u){var h="",g=u.indexOf(".");if(g>=0&&(h=u.slice(g+1),u=u.slice(0,g)),u&&!s.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:h}})}Gfe.prototype=tde.prototype={constructor:Gfe,on:function(l,s){var u=this._,h=Lin(l+"",u),g,m=-1,p=h.length;if(arguments.length<2){for(;++m<p;)if((g=(l=h[m]).type)&&(g=Pin(u[g],l.name)))return g;return}if(s!=null&&typeof s!="function")throw new Error("invalid callback: "+s);for(;++m<p;)if(g=(l=h[m]).type)u[g]=Fyt(u[g],l.name,s);else if(s==null)for(g in u)u[g]=Fyt(u[g],l.name,null);return this},copy:function(){var l={},s=this._;for(var u in s)l[u]=s[u].slice();return new Gfe(l)},call:function(l,s){if((g=arguments.length-2)>0)for(var u=new Array(g),h=0,g,m;h<g;++h)u[h]=arguments[h+2];if(!this._.hasOwnProperty(l))throw new Error("unknown type: "+l);for(m=this._[l],h=0,g=m.length;h<g;++h)m[h].value.apply(s,u)},apply:function(l,s,u){if(!this._.hasOwnProperty(l))throw new Error("unknown type: "+l);for(var h=this._[l],g=0,m=h.length;g<m;++g)h[g].value.apply(s,u)}};function Pin(l,s){for(var u=0,h=l.length,g;u<h;++u)if((g=l[u]).name===s)return g.value}function Fyt(l,s,u){for(var h=0,g=l.length;h<g;++h)if(l[h].name===s){l[h]=Din,l=l.slice(0,h).concat(l.slice(h+1));break}return u!=null&&l.push({name:s,value:u}),l}var WCe="http://www.w3.org/1999/xhtml";const qyt={svg:"http://www.w3.org/2000/svg",xhtml:WCe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function nde(l){var s=l+="",u=s.indexOf(":");return u>=0&&(s=l.slice(0,u))!=="xmlns"&&(l=l.slice(u+1)),qyt.hasOwnProperty(s)?{space:qyt[s],local:l}:l}function Iin(l){return function(){var s=this.ownerDocument,u=this.namespaceURI;return u===WCe&&s.documentElement.namespaceURI===WCe?s.createElement(l):s.createElementNS(u,l)}}function Rin(l){return function(){return this.ownerDocument.createElementNS(l.space,l.local)}}function v4t(l){var s=nde(l);return(s.local?Rin:Iin)(s)}function $in(){}function hAe(l){return l==null?$in:function(){return this.querySelector(l)}}function Bin(l){typeof l!="function"&&(l=hAe(l));for(var s=this._groups,u=s.length,h=new Array(u),g=0;g<u;++g)for(var m=s[g],p=m.length,k=h[g]=new Array(p),S,C,N=0;N<p;++N)(S=m[N])&&(C=l.call(S,S.__data__,N,m))&&("__data__"in S&&(C.__data__=S.__data__),k[N]=C);return new em(h,this._parents)}function zin(l){return l==null?[]:Array.isArray(l)?l:Array.from(l)}function Fin(){return[]}function y4t(l){return l==null?Fin:function(){return this.querySelectorAll(l)}}function qin(l){return function(){return zin(l.apply(this,arguments))}}function Hin(l){typeof l=="function"?l=qin(l):l=y4t(l);for(var s=this._groups,u=s.length,h=[],g=[],m=0;m<u;++m)for(var p=s[m],k=p.length,S,C=0;C<k;++C)(S=p[C])&&(h.push(l.call(S,S.__data__,C,p)),g.push(S));return new em(h,g)}function x4t(l){return function(){return this.matches(l)}}function k4t(l){return function(s){return s.matches(l)}}var Qin=Array.prototype.find;function Gin(l){return function(){return Qin.call(this.children,l)}}function Uin(){return this.firstElementChild}function Jin(l){return this.select(l==null?Uin:Gin(typeof l=="function"?l:k4t(l)))}var Vin=Array.prototype.filter;function Xin(){return Array.from(this.children)}function Win(l){return function(){return Vin.call(this.children,l)}}function Kin(l){return this.selectAll(l==null?Xin:Win(typeof l=="function"?l:k4t(l)))}function Yin(l){typeof l!="function"&&(l=x4t(l));for(var s=this._groups,u=s.length,h=new Array(u),g=0;g<u;++g)for(var m=s[g],p=m.length,k=h[g]=[],S,C=0;C<p;++C)(S=m[C])&&l.call(S,S.__data__,C,m)&&k.push(S);return new em(h,this._parents)}function O4t(l){return new Array(l.length)}function Zin(){return new em(this._enter||this._groups.map(O4t),this._parents)}function fhe(l,s){this.ownerDocument=l.ownerDocument,this.namespaceURI=l.namespaceURI,this._next=null,this._parent=l,this.__data__=s}fhe.prototype={constructor:fhe,appendChild:function(l){return this._parent.insertBefore(l,this._next)},insertBefore:function(l,s){return this._parent.insertBefore(l,s)},querySelector:function(l){return this._parent.querySelector(l)},querySelectorAll:function(l){return this._parent.querySelectorAll(l)}};function ern(l){return function(){return l}}function trn(l,s,u,h,g,m){for(var p=0,k,S=s.length,C=m.length;p<C;++p)(k=s[p])?(k.__data__=m[p],h[p]=k):u[p]=new fhe(l,m[p]);for(;p<S;++p)(k=s[p])&&(g[p]=k)}function nrn(l,s,u,h,g,m,p){var k,S,C=new Map,N=s.length,_=m.length,P=new Array(N),R;for(k=0;k<N;++k)(S=s[k])&&(P[k]=R=p.call(S,S.__data__,k,s)+"",C.has(R)?g[k]=S:C.set(R,S));for(k=0;k<_;++k)R=p.call(l,m[k],k,m)+"",(S=C.get(R))?(h[k]=S,S.__data__=m[k],C.delete(R)):u[k]=new fhe(l,m[k]);for(k=0;k<N;++k)(S=s[k])&&C.get(P[k])===S&&(g[k]=S)}function irn(l){return l.__data__}function rrn(l,s){if(!arguments.length)return Array.from(this,irn);var u=s?nrn:trn,h=this._parents,g=this._groups;typeof l!="function"&&(l=ern(l));for(var m=g.length,p=new Array(m),k=new Array(m),S=new Array(m),C=0;C<m;++C){var N=h[C],_=g[C],P=_.length,R=srn(l.call(N,N&&N.__data__,C,h)),q=R.length,F=k[C]=new Array(q),X=p[C]=new Array(q),J=S[C]=new Array(P);u(N,_,F,X,J,R,s);for(var ee=0,te=0,ie,oe;ee<q;++ee)if(ie=F[ee]){for(ee>=te&&(te=ee+1);!(oe=X[te])&&++te<q;);ie._next=oe||null}}return p=new em(p,h),p._enter=k,p._exit=S,p}function srn(l){return typeof l=="object"&&"length"in l?l:Array.from(l)}function orn(){return new em(this._exit||this._groups.map(O4t),this._parents)}function crn(l,s,u){var h=this.enter(),g=this,m=this.exit();return typeof l=="function"?(h=l(h),h&&(h=h.selection())):h=h.append(l+""),s!=null&&(g=s(g),g&&(g=g.selection())),u==null?m.remove():u(m),h&&g?h.merge(g).order():g}function lrn(l){for(var s=l.selection?l.selection():l,u=this._groups,h=s._groups,g=u.length,m=h.length,p=Math.min(g,m),k=new Array(g),S=0;S<p;++S)for(var C=u[S],N=h[S],_=C.length,P=k[S]=new Array(_),R,q=0;q<_;++q)(R=C[q]||N[q])&&(P[q]=R);for(;S<g;++S)k[S]=u[S];return new em(k,this._parents)}function urn(){for(var l=this._groups,s=-1,u=l.length;++s<u;)for(var h=l[s],g=h.length-1,m=h[g],p;--g>=0;)(p=h[g])&&(m&&p.compareDocumentPosition(m)^4&&m.parentNode.insertBefore(p,m),m=p);return this}function arn(l){l||(l=frn);function s(_,P){return _&&P?l(_.__data__,P.__data__):!_-!P}for(var u=this._groups,h=u.length,g=new Array(h),m=0;m<h;++m){for(var p=u[m],k=p.length,S=g[m]=new Array(k),C,N=0;N<k;++N)(C=p[N])&&(S[N]=C);S.sort(s)}return new em(g,this._parents).order()}function frn(l,s){return l<s?-1:l>s?1:l>=s?0:NaN}function hrn(){var l=arguments[0];return arguments[0]=this,l.apply(null,arguments),this}function drn(){return Array.from(this)}function grn(){for(var l=this._groups,s=0,u=l.length;s<u;++s)for(var h=l[s],g=0,m=h.length;g<m;++g){var p=h[g];if(p)return p}return null}function prn(){let l=0;for(const s of this)++l;return l}function brn(){return!this.node()}function mrn(l){for(var s=this._groups,u=0,h=s.length;u<h;++u)for(var g=s[u],m=0,p=g.length,k;m<p;++m)(k=g[m])&&l.call(k,k.__data__,m,g);return this}function wrn(l){return function(){this.removeAttribute(l)}}function vrn(l){return function(){this.removeAttributeNS(l.space,l.local)}}function yrn(l,s){return function(){this.setAttribute(l,s)}}function xrn(l,s){return function(){this.setAttributeNS(l.space,l.local,s)}}function krn(l,s){return function(){var u=s.apply(this,arguments);u==null?this.removeAttribute(l):this.setAttribute(l,u)}}function Orn(l,s){return function(){var u=s.apply(this,arguments);u==null?this.removeAttributeNS(l.space,l.local):this.setAttributeNS(l.space,l.local,u)}}function Srn(l,s){var u=nde(l);if(arguments.length<2){var h=this.node();return u.local?h.getAttributeNS(u.space,u.local):h.getAttribute(u)}return this.each((s==null?u.local?vrn:wrn:typeof s=="function"?u.local?Orn:krn:u.local?xrn:yrn)(u,s))}function S4t(l){return l.ownerDocument&&l.ownerDocument.defaultView||l.document&&l||l.defaultView}function jrn(l){return function(){this.style.removeProperty(l)}}function Trn(l,s,u){return function(){this.style.setProperty(l,s,u)}}function Ern(l,s,u){return function(){var h=s.apply(this,arguments);h==null?this.style.removeProperty(l):this.style.setProperty(l,h,u)}}function Crn(l,s,u){return arguments.length>1?this.each((s==null?jrn:typeof s=="function"?Ern:Trn)(l,s,u??"")):UI(this.node(),l)}function UI(l,s){return l.style.getPropertyValue(s)||S4t(l).getComputedStyle(l,null).getPropertyValue(s)}function Mrn(l){return function(){delete this[l]}}function Arn(l,s){return function(){this[l]=s}}function Nrn(l,s){return function(){var u=s.apply(this,arguments);u==null?delete this[l]:this[l]=u}}function _rn(l,s){return arguments.length>1?this.each((s==null?Mrn:typeof s=="function"?Nrn:Arn)(l,s)):this.node()[l]}function j4t(l){return l.trim().split(/^|\s+/)}function dAe(l){return l.classList||new T4t(l)}function T4t(l){this._node=l,this._names=j4t(l.getAttribute("class")||"")}T4t.prototype={add:function(l){var s=this._names.indexOf(l);s<0&&(this._names.push(l),this._node.setAttribute("class",this._names.join(" ")))},remove:function(l){var s=this._names.indexOf(l);s>=0&&(this._names.splice(s,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(l){return this._names.indexOf(l)>=0}};function E4t(l,s){for(var u=dAe(l),h=-1,g=s.length;++h<g;)u.add(s[h])}function C4t(l,s){for(var u=dAe(l),h=-1,g=s.length;++h<g;)u.remove(s[h])}function Drn(l){return function(){E4t(this,l)}}function Lrn(l){return function(){C4t(this,l)}}function Prn(l,s){return function(){(s.apply(this,arguments)?E4t:C4t)(this,l)}}function Irn(l,s){var u=j4t(l+"");if(arguments.length<2){for(var h=dAe(this.node()),g=-1,m=u.length;++g<m;)if(!h.contains(u[g]))return!1;return!0}return this.each((typeof s=="function"?Prn:s?Drn:Lrn)(u,s))}function Rrn(){this.textContent=""}function $rn(l){return function(){this.textContent=l}}function Brn(l){return function(){var s=l.apply(this,arguments);this.textContent=s??""}}function zrn(l){return arguments.length?this.each(l==null?Rrn:(typeof l=="function"?Brn:$rn)(l)):this.node().textContent}function Frn(){this.innerHTML=""}function qrn(l){return function(){this.innerHTML=l}}function Hrn(l){return function(){var s=l.apply(this,arguments);this.innerHTML=s??""}}function Qrn(l){return arguments.length?this.each(l==null?Frn:(typeof l=="function"?Hrn:qrn)(l)):this.node().innerHTML}function Grn(){this.nextSibling&&this.parentNode.appendChild(this)}function Urn(){return this.each(Grn)}function Jrn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Vrn(){return this.each(Jrn)}function Xrn(l){var s=typeof l=="function"?l:v4t(l);return this.select(function(){return this.appendChild(s.apply(this,arguments))})}function Wrn(){return null}function Krn(l,s){var u=typeof l=="function"?l:v4t(l),h=s==null?Wrn:typeof s=="function"?s:hAe(s);return this.select(function(){return this.insertBefore(u.apply(this,arguments),h.apply(this,arguments)||null)})}function Yrn(){var l=this.parentNode;l&&l.removeChild(this)}function Zrn(){return this.each(Yrn)}function esn(){var l=this.cloneNode(!1),s=this.parentNode;return s?s.insertBefore(l,this.nextSibling):l}function tsn(){var l=this.cloneNode(!0),s=this.parentNode;return s?s.insertBefore(l,this.nextSibling):l}function nsn(l){return this.select(l?tsn:esn)}function isn(l){return arguments.length?this.property("__data__",l):this.node().__data__}function rsn(l){return function(s){l.call(this,s,this.__data__)}}function ssn(l){return l.trim().split(/^|\s+/).map(function(s){var u="",h=s.indexOf(".");return h>=0&&(u=s.slice(h+1),s=s.slice(0,h)),{type:s,name:u}})}function osn(l){return function(){var s=this.__on;if(s){for(var u=0,h=-1,g=s.length,m;u<g;++u)m=s[u],(!l.type||m.type===l.type)&&m.name===l.name?this.removeEventListener(m.type,m.listener,m.options):s[++h]=m;++h?s.length=h:delete this.__on}}}function csn(l,s,u){return function(){var h=this.__on,g,m=rsn(s);if(h){for(var p=0,k=h.length;p<k;++p)if((g=h[p]).type===l.type&&g.name===l.name){this.removeEventListener(g.type,g.listener,g.options),this.addEventListener(g.type,g.listener=m,g.options=u),g.value=s;return}}this.addEventListener(l.type,m,u),g={type:l.type,name:l.name,value:s,listener:m,options:u},h?h.push(g):this.__on=[g]}}function lsn(l,s,u){var h=ssn(l+""),g,m=h.length,p;if(arguments.length<2){var k=this.node().__on;if(k){for(var S=0,C=k.length,N;S<C;++S)for(g=0,N=k[S];g<m;++g)if((p=h[g]).type===N.type&&p.name===N.name)return N.value}return}for(k=s?csn:osn,g=0;g<m;++g)this.each(k(h[g],s,u));return this}function M4t(l,s,u){var h=S4t(l),g=h.CustomEvent;typeof g=="function"?g=new g(s,u):(g=h.document.createEvent("Event"),u?(g.initEvent(s,u.bubbles,u.cancelable),g.detail=u.detail):g.initEvent(s,!1,!1)),l.dispatchEvent(g)}function usn(l,s){return function(){return M4t(this,l,s)}}function asn(l,s){return function(){return M4t(this,l,s.apply(this,arguments))}}function fsn(l,s){return this.each((typeof s=="function"?asn:usn)(l,s))}function*hsn(){for(var l=this._groups,s=0,u=l.length;s<u;++s)for(var h=l[s],g=0,m=h.length,p;g<m;++g)(p=h[g])&&(yield p)}var A4t=[null];function em(l,s){this._groups=l,this._parents=s}function FX(){return new em([[document.documentElement]],A4t)}function dsn(){return this}em.prototype=FX.prototype={constructor:em,select:Bin,selectAll:Hin,selectChild:Jin,selectChildren:Kin,filter:Yin,data:rrn,enter:Zin,exit:orn,join:crn,merge:lrn,selection:dsn,order:urn,sort:arn,call:hrn,nodes:drn,node:grn,size:prn,empty:brn,each:mrn,attr:Srn,style:Crn,property:_rn,classed:Irn,text:zrn,html:Qrn,raise:Urn,lower:Vrn,append:Xrn,insert:Krn,remove:Zrn,clone:nsn,datum:isn,on:lsn,dispatch:fsn,[Symbol.iterator]:hsn};function Yb(l){return typeof l=="string"?new em([[document.querySelector(l)]],[document.documentElement]):new em([[l]],A4t)}function gsn(l){let s;for(;s=l.sourceEvent;)l=s;return l}function xy(l,s){if(l=gsn(l),s===void 0&&(s=l.currentTarget),s){var u=s.ownerSVGElement||s;if(u.createSVGPoint){var h=u.createSVGPoint();return h.x=l.clientX,h.y=l.clientY,h=h.matrixTransform(s.getScreenCTM().inverse()),[h.x,h.y]}if(s.getBoundingClientRect){var g=s.getBoundingClientRect();return[l.clientX-g.left-s.clientLeft,l.clientY-g.top-s.clientTop]}}return[l.pageX,l.pageY]}const psn={passive:!1},hX={capture:!0,passive:!1};function QEe(l){l.stopImmediatePropagation()}function RI(l){l.preventDefault(),l.stopImmediatePropagation()}function N4t(l){var s=l.document.documentElement,u=Yb(l).on("dragstart.drag",RI,hX);"onselectstart"in s?u.on("selectstart.drag",RI,hX):(s.__noselect=s.style.MozUserSelect,s.style.MozUserSelect="none")}function _4t(l,s){var u=l.document.documentElement,h=Yb(l).on("dragstart.drag",null);s&&(h.on("click.drag",RI,hX),setTimeout(function(){h.on("click.drag",null)},0)),"onselectstart"in u?h.on("selectstart.drag",null):(u.style.MozUserSelect=u.__noselect,delete u.__noselect)}const sfe=l=>()=>l;function KCe(l,{sourceEvent:s,subject:u,target:h,identifier:g,active:m,x:p,y:k,dx:S,dy:C,dispatch:N}){Object.defineProperties(this,{type:{value:l,enumerable:!0,configurable:!0},sourceEvent:{value:s,enumerable:!0,configurable:!0},subject:{value:u,enumerable:!0,configurable:!0},target:{value:h,enumerable:!0,configurable:!0},identifier:{value:g,enumerable:!0,configurable:!0},active:{value:m,enumerable:!0,configurable:!0},x:{value:p,enumerable:!0,configurable:!0},y:{value:k,enumerable:!0,configurable:!0},dx:{value:S,enumerable:!0,configurable:!0},dy:{value:C,enumerable:!0,configurable:!0},_:{value:N}})}KCe.prototype.on=function(){var l=this._.on.apply(this._,arguments);return l===this._?this:l};function bsn(l){return!l.ctrlKey&&!l.button}function msn(){return this.parentNode}function wsn(l,s){return s??{x:l.x,y:l.y}}function vsn(){return navigator.maxTouchPoints||"ontouchstart"in this}function D4t(){var l=bsn,s=msn,u=wsn,h=vsn,g={},m=tde("start","drag","end"),p=0,k,S,C,N,_=0;function P(ie){ie.on("mousedown.drag",R).filter(h).on("touchstart.drag",X).on("touchmove.drag",J,psn).on("touchend.drag touchcancel.drag",ee).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function R(ie,oe){if(!(N||!l.call(this,ie,oe))){var se=te(this,s.call(this,ie,oe),ie,oe,"mouse");se&&(Yb(ie.view).on("mousemove.drag",q,hX).on("mouseup.drag",F,hX),N4t(ie.view),QEe(ie),C=!1,k=ie.clientX,S=ie.clientY,se("start",ie))}}function q(ie){if(RI(ie),!C){var oe=ie.clientX-k,se=ie.clientY-S;C=oe*oe+se*se>_}g.mouse("drag",ie)}function F(ie){Yb(ie.view).on("mousemove.drag mouseup.drag",null),_4t(ie.view,C),RI(ie),g.mouse("end",ie)}function X(ie,oe){if(l.call(this,ie,oe)){var se=ie.changedTouches,ge=s.call(this,ie,oe),Ne=se.length,qe,Ke;for(qe=0;qe<Ne;++qe)(Ke=te(this,ge,ie,oe,se[qe].identifier,se[qe]))&&(QEe(ie),Ke("start",ie,se[qe]))}}function J(ie){var oe=ie.changedTouches,se=oe.length,ge,Ne;for(ge=0;ge<se;++ge)(Ne=g[oe[ge].identifier])&&(RI(ie),Ne("drag",ie,oe[ge]))}function ee(ie){var oe=ie.changedTouches,se=oe.length,ge,Ne;for(N&&clearTimeout(N),N=setTimeout(function(){N=null},500),ge=0;ge<se;++ge)(Ne=g[oe[ge].identifier])&&(QEe(ie),Ne("end",ie,oe[ge]))}function te(ie,oe,se,ge,Ne,qe){var Ke=m.copy(),Le=xy(qe||se,oe),we,Z,pe;if((pe=u.call(ie,new KCe("beforestart",{sourceEvent:se,target:P,identifier:Ne,active:p,x:Le[0],y:Le[1],dx:0,dy:0,dispatch:Ke}),ge))!=null)return we=pe.x-Le[0]||0,Z=pe.y-Le[1]||0,function Re(he,Ee,Te){var ye=Le,ft;switch(he){case"start":g[Ne]=Re,ft=p++;break;case"end":delete g[Ne],--p;case"drag":Le=xy(Te||Ee,oe),ft=p;break}Ke.call(he,ie,new KCe(he,{sourceEvent:Ee,subject:pe,target:P,identifier:Ne,active:ft,x:Le[0]+we,y:Le[1]+Z,dx:Le[0]-ye[0],dy:Le[1]-ye[1],dispatch:Ke}),ge)}}return P.filter=function(ie){return arguments.length?(l=typeof ie=="function"?ie:sfe(!!ie),P):l},P.container=function(ie){return arguments.length?(s=typeof ie=="function"?ie:sfe(ie),P):s},P.subject=function(ie){return arguments.length?(u=typeof ie=="function"?ie:sfe(ie),P):u},P.touchable=function(ie){return arguments.length?(h=typeof ie=="function"?ie:sfe(!!ie),P):h},P.on=function(){var ie=m.on.apply(m,arguments);return ie===m?P:ie},P.clickDistance=function(ie){return arguments.length?(_=(ie=+ie)*ie,P):Math.sqrt(_)},P}function gAe(l,s,u){l.prototype=s.prototype=u,u.constructor=l}function L4t(l,s){var u=Object.create(l.prototype);for(var h in s)u[h]=s[h];return u}function qX(){}var dX=.7,hhe=1/dX,$I="\\s*([+-]?\\d+)\\s*",gX="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Z3="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ysn=/^#([0-9a-f]{3,8})$/,xsn=new RegExp(`^rgb\\(${$I},${$I},${$I}\\)$`),ksn=new RegExp(`^rgb\\(${Z3},${Z3},${Z3}\\)$`),Osn=new RegExp(`^rgba\\(${$I},${$I},${$I},${gX}\\)$`),Ssn=new RegExp(`^rgba\\(${Z3},${Z3},${Z3},${gX}\\)$`),jsn=new RegExp(`^hsl\\(${gX},${Z3},${Z3}\\)$`),Tsn=new RegExp(`^hsla\\(${gX},${Z3},${Z3},${gX}\\)$`),Hyt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};gAe(qX,RM,{copy(l){return Object.assign(new this.constructor,this,l)},displayable(){return this.rgb().displayable()},hex:Qyt,formatHex:Qyt,formatHex8:Esn,formatHsl:Csn,formatRgb:Gyt,toString:Gyt});function Qyt(){return this.rgb().formatHex()}function Esn(){return this.rgb().formatHex8()}function Csn(){return P4t(this).formatHsl()}function Gyt(){return this.rgb().formatRgb()}function RM(l){var s,u;return l=(l+"").trim().toLowerCase(),(s=ysn.exec(l))?(u=s[1].length,s=parseInt(s[1],16),u===6?Uyt(s):u===3?new vp(s>>8&15|s>>4&240,s>>4&15|s&240,(s&15)<<4|s&15,1):u===8?ofe(s>>24&255,s>>16&255,s>>8&255,(s&255)/255):u===4?ofe(s>>12&15|s>>8&240,s>>8&15|s>>4&240,s>>4&15|s&240,((s&15)<<4|s&15)/255):null):(s=xsn.exec(l))?new vp(s[1],s[2],s[3],1):(s=ksn.exec(l))?new vp(s[1]*255/100,s[2]*255/100,s[3]*255/100,1):(s=Osn.exec(l))?ofe(s[1],s[2],s[3],s[4]):(s=Ssn.exec(l))?ofe(s[1]*255/100,s[2]*255/100,s[3]*255/100,s[4]):(s=jsn.exec(l))?Xyt(s[1],s[2]/100,s[3]/100,1):(s=Tsn.exec(l))?Xyt(s[1],s[2]/100,s[3]/100,s[4]):Hyt.hasOwnProperty(l)?Uyt(Hyt[l]):l==="transparent"?new vp(NaN,NaN,NaN,0):null}function Uyt(l){return new vp(l>>16&255,l>>8&255,l&255,1)}function ofe(l,s,u,h){return h<=0&&(l=s=u=NaN),new vp(l,s,u,h)}function Msn(l){return l instanceof qX||(l=RM(l)),l?(l=l.rgb(),new vp(l.r,l.g,l.b,l.opacity)):new vp}function YCe(l,s,u,h){return arguments.length===1?Msn(l):new vp(l,s,u,h??1)}function vp(l,s,u,h){this.r=+l,this.g=+s,this.b=+u,this.opacity=+h}gAe(vp,YCe,L4t(qX,{brighter(l){return l=l==null?hhe:Math.pow(hhe,l),new vp(this.r*l,this.g*l,this.b*l,this.opacity)},darker(l){return l=l==null?dX:Math.pow(dX,l),new vp(this.r*l,this.g*l,this.b*l,this.opacity)},rgb(){return this},clamp(){return new vp(NM(this.r),NM(this.g),NM(this.b),dhe(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:Jyt,formatHex:Jyt,formatHex8:Asn,formatRgb:Vyt,toString:Vyt}));function Jyt(){return`#${kM(this.r)}${kM(this.g)}${kM(this.b)}`}function Asn(){return`#${kM(this.r)}${kM(this.g)}${kM(this.b)}${kM((isNaN(this.opacity)?1:this.opacity)*255)}`}function Vyt(){const l=dhe(this.opacity);return`${l===1?"rgb(":"rgba("}${NM(this.r)}, ${NM(this.g)}, ${NM(this.b)}${l===1?")":`, ${l})`}`}function dhe(l){return isNaN(l)?1:Math.max(0,Math.min(1,l))}function NM(l){return Math.max(0,Math.min(255,Math.round(l)||0))}function kM(l){return l=NM(l),(l<16?"0":"")+l.toString(16)}function Xyt(l,s,u,h){return h<=0?l=s=u=NaN:u<=0||u>=1?l=s=NaN:s<=0&&(l=NaN),new ky(l,s,u,h)}function P4t(l){if(l instanceof ky)return new ky(l.h,l.s,l.l,l.opacity);if(l instanceof qX||(l=RM(l)),!l)return new ky;if(l instanceof ky)return l;l=l.rgb();var s=l.r/255,u=l.g/255,h=l.b/255,g=Math.min(s,u,h),m=Math.max(s,u,h),p=NaN,k=m-g,S=(m+g)/2;return k?(s===m?p=(u-h)/k+(u<h)*6:u===m?p=(h-s)/k+2:p=(s-u)/k+4,k/=S<.5?m+g:2-m-g,p*=60):k=S>0&&S<1?0:p,new ky(p,k,S,l.opacity)}function Nsn(l,s,u,h){return arguments.length===1?P4t(l):new ky(l,s,u,h??1)}function ky(l,s,u,h){this.h=+l,this.s=+s,this.l=+u,this.opacity=+h}gAe(ky,Nsn,L4t(qX,{brighter(l){return l=l==null?hhe:Math.pow(hhe,l),new ky(this.h,this.s,this.l*l,this.opacity)},darker(l){return l=l==null?dX:Math.pow(dX,l),new ky(this.h,this.s,this.l*l,this.opacity)},rgb(){var l=this.h%360+(this.h<0)*360,s=isNaN(l)||isNaN(this.s)?0:this.s,u=this.l,h=u+(u<.5?u:1-u)*s,g=2*u-h;return new vp(GEe(l>=240?l-240:l+120,g,h),GEe(l,g,h),GEe(l<120?l+240:l-120,g,h),this.opacity)},clamp(){return new ky(Wyt(this.h),cfe(this.s),cfe(this.l),dhe(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 l=dhe(this.opacity);return`${l===1?"hsl(":"hsla("}${Wyt(this.h)}, ${cfe(this.s)*100}%, ${cfe(this.l)*100}%${l===1?")":`, ${l})`}`}}));function Wyt(l){return l=(l||0)%360,l<0?l+360:l}function cfe(l){return Math.max(0,Math.min(1,l||0))}function GEe(l,s,u){return(l<60?s+(u-s)*l/60:l<180?u:l<240?s+(u-s)*(240-l)/60:s)*255}const pAe=l=>()=>l;function _sn(l,s){return function(u){return l+u*s}}function Dsn(l,s,u){return l=Math.pow(l,u),s=Math.pow(s,u)-l,u=1/u,function(h){return Math.pow(l+h*s,u)}}function Lsn(l){return(l=+l)==1?I4t:function(s,u){return u-s?Dsn(s,u,l):pAe(isNaN(s)?u:s)}}function I4t(l,s){var u=s-l;return u?_sn(l,u):pAe(isNaN(l)?s:l)}const ghe=(function l(s){var u=Lsn(s);function h(g,m){var p=u((g=YCe(g)).r,(m=YCe(m)).r),k=u(g.g,m.g),S=u(g.b,m.b),C=I4t(g.opacity,m.opacity);return function(N){return g.r=p(N),g.g=k(N),g.b=S(N),g.opacity=C(N),g+""}}return h.gamma=l,h})(1);function Psn(l,s){s||(s=[]);var u=l?Math.min(s.length,l.length):0,h=s.slice(),g;return function(m){for(g=0;g<u;++g)h[g]=l[g]*(1-m)+s[g]*m;return h}}function Isn(l){return ArrayBuffer.isView(l)&&!(l instanceof DataView)}function Rsn(l,s){var u=s?s.length:0,h=l?Math.min(u,l.length):0,g=new Array(h),m=new Array(u),p;for(p=0;p<h;++p)g[p]=tX(l[p],s[p]);for(;p<u;++p)m[p]=s[p];return function(k){for(p=0;p<h;++p)m[p]=g[p](k);return m}}function $sn(l,s){var u=new Date;return l=+l,s=+s,function(h){return u.setTime(l*(1-h)+s*h),u}}function G3(l,s){return l=+l,s=+s,function(u){return l*(1-u)+s*u}}function Bsn(l,s){var u={},h={},g;(l===null||typeof l!="object")&&(l={}),(s===null||typeof s!="object")&&(s={});for(g in s)g in l?u[g]=tX(l[g],s[g]):h[g]=s[g];return function(m){for(g in u)h[g]=u[g](m);return h}}var ZCe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,UEe=new RegExp(ZCe.source,"g");function zsn(l){return function(){return l}}function Fsn(l){return function(s){return l(s)+""}}function R4t(l,s){var u=ZCe.lastIndex=UEe.lastIndex=0,h,g,m,p=-1,k=[],S=[];for(l=l+"",s=s+"";(h=ZCe.exec(l))&&(g=UEe.exec(s));)(m=g.index)>u&&(m=s.slice(u,m),k[p]?k[p]+=m:k[++p]=m),(h=h[0])===(g=g[0])?k[p]?k[p]+=g:k[++p]=g:(k[++p]=null,S.push({i:p,x:G3(h,g)})),u=UEe.lastIndex;return u<s.length&&(m=s.slice(u),k[p]?k[p]+=m:k[++p]=m),k.length<2?S[0]?Fsn(S[0].x):zsn(s):(s=S.length,function(C){for(var N=0,_;N<s;++N)k[(_=S[N]).i]=_.x(C);return k.join("")})}function tX(l,s){var u=typeof s,h;return s==null||u==="boolean"?pAe(s):(u==="number"?G3:u==="string"?(h=RM(s))?(s=h,ghe):R4t:s instanceof RM?ghe:s instanceof Date?$sn:Isn(s)?Psn:Array.isArray(s)?Rsn:typeof s.valueOf!="function"&&typeof s.toString!="function"||isNaN(s)?Bsn:G3)(l,s)}var Kyt=180/Math.PI,eMe={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function $4t(l,s,u,h,g,m){var p,k,S;return(p=Math.sqrt(l*l+s*s))&&(l/=p,s/=p),(S=l*u+s*h)&&(u-=l*S,h-=s*S),(k=Math.sqrt(u*u+h*h))&&(u/=k,h/=k,S/=k),l*h<s*u&&(l=-l,s=-s,S=-S,p=-p),{translateX:g,translateY:m,rotate:Math.atan2(s,l)*Kyt,skewX:Math.atan(S)*Kyt,scaleX:p,scaleY:k}}var lfe;function qsn(l){const s=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(l+"");return s.isIdentity?eMe:$4t(s.a,s.b,s.c,s.d,s.e,s.f)}function Hsn(l){return l==null||(lfe||(lfe=document.createElementNS("http://www.w3.org/2000/svg","g")),lfe.setAttribute("transform",l),!(l=lfe.transform.baseVal.consolidate()))?eMe:(l=l.matrix,$4t(l.a,l.b,l.c,l.d,l.e,l.f))}function B4t(l,s,u,h){function g(C){return C.length?C.pop()+" ":""}function m(C,N,_,P,R,q){if(C!==_||N!==P){var F=R.push("translate(",null,s,null,u);q.push({i:F-4,x:G3(C,_)},{i:F-2,x:G3(N,P)})}else(_||P)&&R.push("translate("+_+s+P+u)}function p(C,N,_,P){C!==N?(C-N>180?N+=360:N-C>180&&(C+=360),P.push({i:_.push(g(_)+"rotate(",null,h)-2,x:G3(C,N)})):N&&_.push(g(_)+"rotate("+N+h)}function k(C,N,_,P){C!==N?P.push({i:_.push(g(_)+"skewX(",null,h)-2,x:G3(C,N)}):N&&_.push(g(_)+"skewX("+N+h)}function S(C,N,_,P,R,q){if(C!==_||N!==P){var F=R.push(g(R)+"scale(",null,",",null,")");q.push({i:F-4,x:G3(C,_)},{i:F-2,x:G3(N,P)})}else(_!==1||P!==1)&&R.push(g(R)+"scale("+_+","+P+")")}return function(C,N){var _=[],P=[];return C=l(C),N=l(N),m(C.translateX,C.translateY,N.translateX,N.translateY,_,P),p(C.rotate,N.rotate,_,P),k(C.skewX,N.skewX,_,P),S(C.scaleX,C.scaleY,N.scaleX,N.scaleY,_,P),C=N=null,function(R){for(var q=-1,F=P.length,X;++q<F;)_[(X=P[q]).i]=X.x(R);return _.join("")}}}var Qsn=B4t(qsn,"px, ","px)","deg)"),Gsn=B4t(Hsn,", ",")",")"),Usn=1e-12;function Yyt(l){return((l=Math.exp(l))+1/l)/2}function Jsn(l){return((l=Math.exp(l))-1/l)/2}function Vsn(l){return((l=Math.exp(2*l))-1)/(l+1)}const Ufe=(function l(s,u,h){function g(m,p){var k=m[0],S=m[1],C=m[2],N=p[0],_=p[1],P=p[2],R=N-k,q=_-S,F=R*R+q*q,X,J;if(F<Usn)J=Math.log(P/C)/s,X=function(ge){return[k+ge*R,S+ge*q,C*Math.exp(s*ge*J)]};else{var ee=Math.sqrt(F),te=(P*P-C*C+h*F)/(2*C*u*ee),ie=(P*P-C*C-h*F)/(2*P*u*ee),oe=Math.log(Math.sqrt(te*te+1)-te),se=Math.log(Math.sqrt(ie*ie+1)-ie);J=(se-oe)/s,X=function(ge){var Ne=ge*J,qe=Yyt(oe),Ke=C/(u*ee)*(qe*Vsn(s*Ne+oe)-Jsn(oe));return[k+Ke*R,S+Ke*q,C*qe/Yyt(s*Ne+oe)]}}return X.duration=J*1e3*s/Math.SQRT2,X}return g.rho=function(m){var p=Math.max(.001,+m),k=p*p,S=k*k;return l(p,k,S)},g})(Math.SQRT2,2,4);var JI=0,WV=0,$V=0,z4t=1e3,phe,KV,bhe=0,$M=0,ide=0,pX=typeof performance=="object"&&performance.now?performance:Date,F4t=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(l){setTimeout(l,17)};function bAe(){return $M||(F4t(Xsn),$M=pX.now()+ide)}function Xsn(){$M=0}function mhe(){this._call=this._time=this._next=null}mhe.prototype=q4t.prototype={constructor:mhe,restart:function(l,s,u){if(typeof l!="function")throw new TypeError("callback is not a function");u=(u==null?bAe():+u)+(s==null?0:+s),!this._next&&KV!==this&&(KV?KV._next=this:phe=this,KV=this),this._call=l,this._time=u,tMe()},stop:function(){this._call&&(this._call=null,this._time=1/0,tMe())}};function q4t(l,s,u){var h=new mhe;return h.restart(l,s,u),h}function Wsn(){bAe(),++JI;for(var l=phe,s;l;)(s=$M-l._time)>=0&&l._call.call(void 0,s),l=l._next;--JI}function Zyt(){$M=(bhe=pX.now())+ide,JI=WV=0;try{Wsn()}finally{JI=0,Ysn(),$M=0}}function Ksn(){var l=pX.now(),s=l-bhe;s>z4t&&(ide-=s,bhe=l)}function Ysn(){for(var l,s=phe,u,h=1/0;s;)s._call?(h>s._time&&(h=s._time),l=s,s=s._next):(u=s._next,s._next=null,s=l?l._next=u:phe=u);KV=l,tMe(h)}function tMe(l){if(!JI){WV&&(WV=clearTimeout(WV));var s=l-$M;s>24?(l<1/0&&(WV=setTimeout(Zyt,l-pX.now()-ide)),$V&&($V=clearInterval($V))):($V||(bhe=pX.now(),$V=setInterval(Ksn,z4t)),JI=1,F4t(Zyt))}}function ext(l,s,u){var h=new mhe;return s=s==null?0:+s,h.restart(g=>{h.stop(),l(g+s)},s,u),h}var Zsn=tde("start","end","cancel","interrupt"),eon=[],H4t=0,txt=1,nMe=2,Jfe=3,nxt=4,iMe=5,Vfe=6;function rde(l,s,u,h,g,m){var p=l.__transition;if(!p)l.__transition={};else if(u in p)return;ton(l,u,{name:s,index:h,group:g,on:Zsn,tween:eon,time:m.time,delay:m.delay,duration:m.duration,ease:m.ease,timer:null,state:H4t})}function mAe(l,s){var u=_y(l,s);if(u.state>H4t)throw new Error("too late; already scheduled");return u}function o5(l,s){var u=_y(l,s);if(u.state>Jfe)throw new Error("too late; already running");return u}function _y(l,s){var u=l.__transition;if(!u||!(u=u[s]))throw new Error("transition not found");return u}function ton(l,s,u){var h=l.__transition,g;h[s]=u,u.timer=q4t(m,0,u.time);function m(C){u.state=txt,u.timer.restart(p,u.delay,u.time),u.delay<=C&&p(C-u.delay)}function p(C){var N,_,P,R;if(u.state!==txt)return S();for(N in h)if(R=h[N],R.name===u.name){if(R.state===Jfe)return ext(p);R.state===nxt?(R.state=Vfe,R.timer.stop(),R.on.call("interrupt",l,l.__data__,R.index,R.group),delete h[N]):+N<s&&(R.state=Vfe,R.timer.stop(),R.on.call("cancel",l,l.__data__,R.index,R.group),delete h[N])}if(ext(function(){u.state===Jfe&&(u.state=nxt,u.timer.restart(k,u.delay,u.time),k(C))}),u.state=nMe,u.on.call("start",l,l.__data__,u.index,u.group),u.state===nMe){for(u.state=Jfe,g=new Array(P=u.tween.length),N=0,_=-1;N<P;++N)(R=u.tween[N].value.call(l,l.__data__,u.index,u.group))&&(g[++_]=R);g.length=_+1}}function k(C){for(var N=C<u.duration?u.ease.call(null,C/u.duration):(u.timer.restart(S),u.state=iMe,1),_=-1,P=g.length;++_<P;)g[_].call(l,N);u.state===iMe&&(u.on.call("end",l,l.__data__,u.index,u.group),S())}function S(){u.state=Vfe,u.timer.stop(),delete h[s];for(var C in h)return;delete l.__transition}}function Xfe(l,s){var u=l.__transition,h,g,m=!0,p;if(u){s=s==null?null:s+"";for(p in u){if((h=u[p]).name!==s){m=!1;continue}g=h.state>nMe&&h.state<iMe,h.state=Vfe,h.timer.stop(),h.on.call(g?"interrupt":"cancel",l,l.__data__,h.index,h.group),delete u[p]}m&&delete l.__transition}}function non(l){return this.each(function(){Xfe(this,l)})}function ion(l,s){var u,h;return function(){var g=o5(this,l),m=g.tween;if(m!==u){h=u=m;for(var p=0,k=h.length;p<k;++p)if(h[p].name===s){h=h.slice(),h.splice(p,1);break}}g.tween=h}}function ron(l,s,u){var h,g;if(typeof u!="function")throw new Error;return function(){var m=o5(this,l),p=m.tween;if(p!==h){g=(h=p).slice();for(var k={name:s,value:u},S=0,C=g.length;S<C;++S)if(g[S].name===s){g[S]=k;break}S===C&&g.push(k)}m.tween=g}}function son(l,s){var u=this._id;if(l+="",arguments.length<2){for(var h=_y(this.node(),u).tween,g=0,m=h.length,p;g<m;++g)if((p=h[g]).name===l)return p.value;return null}return this.each((s==null?ion:ron)(u,l,s))}function wAe(l,s,u){var h=l._id;return l.each(function(){var g=o5(this,h);(g.value||(g.value={}))[s]=u.apply(this,arguments)}),function(g){return _y(g,h).value[s]}}function Q4t(l,s){var u;return(typeof s=="number"?G3:s instanceof RM?ghe:(u=RM(s))?(s=u,ghe):R4t)(l,s)}function oon(l){return function(){this.removeAttribute(l)}}function con(l){return function(){this.removeAttributeNS(l.space,l.local)}}function lon(l,s,u){var h,g=u+"",m;return function(){var p=this.getAttribute(l);return p===g?null:p===h?m:m=s(h=p,u)}}function uon(l,s,u){var h,g=u+"",m;return function(){var p=this.getAttributeNS(l.space,l.local);return p===g?null:p===h?m:m=s(h=p,u)}}function aon(l,s,u){var h,g,m;return function(){var p,k=u(this),S;return k==null?void this.removeAttribute(l):(p=this.getAttribute(l),S=k+"",p===S?null:p===h&&S===g?m:(g=S,m=s(h=p,k)))}}function fon(l,s,u){var h,g,m;return function(){var p,k=u(this),S;return k==null?void this.removeAttributeNS(l.space,l.local):(p=this.getAttributeNS(l.space,l.local),S=k+"",p===S?null:p===h&&S===g?m:(g=S,m=s(h=p,k)))}}function hon(l,s){var u=nde(l),h=u==="transform"?Gsn:Q4t;return this.attrTween(l,typeof s=="function"?(u.local?fon:aon)(u,h,wAe(this,"attr."+l,s)):s==null?(u.local?con:oon)(u):(u.local?uon:lon)(u,h,s))}function don(l,s){return function(u){this.setAttribute(l,s.call(this,u))}}function gon(l,s){return function(u){this.setAttributeNS(l.space,l.local,s.call(this,u))}}function pon(l,s){var u,h;function g(){var m=s.apply(this,arguments);return m!==h&&(u=(h=m)&&gon(l,m)),u}return g._value=s,g}function bon(l,s){var u,h;function g(){var m=s.apply(this,arguments);return m!==h&&(u=(h=m)&&don(l,m)),u}return g._value=s,g}function mon(l,s){var u="attr."+l;if(arguments.length<2)return(u=this.tween(u))&&u._value;if(s==null)return this.tween(u,null);if(typeof s!="function")throw new Error;var h=nde(l);return this.tween(u,(h.local?pon:bon)(h,s))}function won(l,s){return function(){mAe(this,l).delay=+s.apply(this,arguments)}}function von(l,s){return s=+s,function(){mAe(this,l).delay=s}}function yon(l){var s=this._id;return arguments.length?this.each((typeof l=="function"?won:von)(s,l)):_y(this.node(),s).delay}function xon(l,s){return function(){o5(this,l).duration=+s.apply(this,arguments)}}function kon(l,s){return s=+s,function(){o5(this,l).duration=s}}function Oon(l){var s=this._id;return arguments.length?this.each((typeof l=="function"?xon:kon)(s,l)):_y(this.node(),s).duration}function Son(l,s){if(typeof s!="function")throw new Error;return function(){o5(this,l).ease=s}}function jon(l){var s=this._id;return arguments.length?this.each(Son(s,l)):_y(this.node(),s).ease}function Ton(l,s){return function(){var u=s.apply(this,arguments);if(typeof u!="function")throw new Error;o5(this,l).ease=u}}function Eon(l){if(typeof l!="function")throw new Error;return this.each(Ton(this._id,l))}function Con(l){typeof l!="function"&&(l=x4t(l));for(var s=this._groups,u=s.length,h=new Array(u),g=0;g<u;++g)for(var m=s[g],p=m.length,k=h[g]=[],S,C=0;C<p;++C)(S=m[C])&&l.call(S,S.__data__,C,m)&&k.push(S);return new bO(h,this._parents,this._name,this._id)}function Mon(l){if(l._id!==this._id)throw new Error;for(var s=this._groups,u=l._groups,h=s.length,g=u.length,m=Math.min(h,g),p=new Array(h),k=0;k<m;++k)for(var S=s[k],C=u[k],N=S.length,_=p[k]=new Array(N),P,R=0;R<N;++R)(P=S[R]||C[R])&&(_[R]=P);for(;k<h;++k)p[k]=s[k];return new bO(p,this._parents,this._name,this._id)}function Aon(l){return(l+"").trim().split(/^|\s+/).every(function(s){var u=s.indexOf(".");return u>=0&&(s=s.slice(0,u)),!s||s==="start"})}function Non(l,s,u){var h,g,m=Aon(s)?mAe:o5;return function(){var p=m(this,l),k=p.on;k!==h&&(g=(h=k).copy()).on(s,u),p.on=g}}function _on(l,s){var u=this._id;return arguments.length<2?_y(this.node(),u).on.on(l):this.each(Non(u,l,s))}function Don(l){return function(){var s=this.parentNode;for(var u in this.__transition)if(+u!==l)return;s&&s.removeChild(this)}}function Lon(){return this.on("end.remove",Don(this._id))}function Pon(l){var s=this._name,u=this._id;typeof l!="function"&&(l=hAe(l));for(var h=this._groups,g=h.length,m=new Array(g),p=0;p<g;++p)for(var k=h[p],S=k.length,C=m[p]=new Array(S),N,_,P=0;P<S;++P)(N=k[P])&&(_=l.call(N,N.__data__,P,k))&&("__data__"in N&&(_.__data__=N.__data__),C[P]=_,rde(C[P],s,u,P,C,_y(N,u)));return new bO(m,this._parents,s,u)}function Ion(l){var s=this._name,u=this._id;typeof l!="function"&&(l=y4t(l));for(var h=this._groups,g=h.length,m=[],p=[],k=0;k<g;++k)for(var S=h[k],C=S.length,N,_=0;_<C;++_)if(N=S[_]){for(var P=l.call(N,N.__data__,_,S),R,q=_y(N,u),F=0,X=P.length;F<X;++F)(R=P[F])&&rde(R,s,u,F,P,q);m.push(P),p.push(N)}return new bO(m,p,s,u)}var Ron=FX.prototype.constructor;function $on(){return new Ron(this._groups,this._parents)}function Bon(l,s){var u,h,g;return function(){var m=UI(this,l),p=(this.style.removeProperty(l),UI(this,l));return m===p?null:m===u&&p===h?g:g=s(u=m,h=p)}}function G4t(l){return function(){this.style.removeProperty(l)}}function zon(l,s,u){var h,g=u+"",m;return function(){var p=UI(this,l);return p===g?null:p===h?m:m=s(h=p,u)}}function Fon(l,s,u){var h,g,m;return function(){var p=UI(this,l),k=u(this),S=k+"";return k==null&&(S=k=(this.style.removeProperty(l),UI(this,l))),p===S?null:p===h&&S===g?m:(g=S,m=s(h=p,k))}}function qon(l,s){var u,h,g,m="style."+s,p="end."+m,k;return function(){var S=o5(this,l),C=S.on,N=S.value[m]==null?k||(k=G4t(s)):void 0;(C!==u||g!==N)&&(h=(u=C).copy()).on(p,g=N),S.on=h}}function Hon(l,s,u){var h=(l+="")=="transform"?Qsn:Q4t;return s==null?this.styleTween(l,Bon(l,h)).on("end.style."+l,G4t(l)):typeof s=="function"?this.styleTween(l,Fon(l,h,wAe(this,"style."+l,s))).each(qon(this._id,l)):this.styleTween(l,zon(l,h,s),u).on("end.style."+l,null)}function Qon(l,s,u){return function(h){this.style.setProperty(l,s.call(this,h),u)}}function Gon(l,s,u){var h,g;function m(){var p=s.apply(this,arguments);return p!==g&&(h=(g=p)&&Qon(l,p,u)),h}return m._value=s,m}function Uon(l,s,u){var h="style."+(l+="");if(arguments.length<2)return(h=this.tween(h))&&h._value;if(s==null)return this.tween(h,null);if(typeof s!="function")throw new Error;return this.tween(h,Gon(l,s,u??""))}function Jon(l){return function(){this.textContent=l}}function Von(l){return function(){var s=l(this);this.textContent=s??""}}function Xon(l){return this.tween("text",typeof l=="function"?Von(wAe(this,"text",l)):Jon(l==null?"":l+""))}function Won(l){return function(s){this.textContent=l.call(this,s)}}function Kon(l){var s,u;function h(){var g=l.apply(this,arguments);return g!==u&&(s=(u=g)&&Won(g)),s}return h._value=l,h}function Yon(l){var s="text";if(arguments.length<1)return(s=this.tween(s))&&s._value;if(l==null)return this.tween(s,null);if(typeof l!="function")throw new Error;return this.tween(s,Kon(l))}function Zon(){for(var l=this._name,s=this._id,u=U4t(),h=this._groups,g=h.length,m=0;m<g;++m)for(var p=h[m],k=p.length,S,C=0;C<k;++C)if(S=p[C]){var N=_y(S,s);rde(S,l,u,C,p,{time:N.time+N.delay+N.duration,delay:0,duration:N.duration,ease:N.ease})}return new bO(h,this._parents,l,u)}function ecn(){var l,s,u=this,h=u._id,g=u.size();return new Promise(function(m,p){var k={value:p},S={value:function(){--g===0&&m()}};u.each(function(){var C=o5(this,h),N=C.on;N!==l&&(s=(l=N).copy(),s._.cancel.push(k),s._.interrupt.push(k),s._.end.push(S)),C.on=s}),g===0&&m()})}var tcn=0;function bO(l,s,u,h){this._groups=l,this._parents=s,this._name=u,this._id=h}function U4t(){return++tcn}var nO=FX.prototype;bO.prototype={constructor:bO,select:Pon,selectAll:Ion,selectChild:nO.selectChild,selectChildren:nO.selectChildren,filter:Con,merge:Mon,selection:$on,transition:Zon,call:nO.call,nodes:nO.nodes,node:nO.node,size:nO.size,empty:nO.empty,each:nO.each,on:_on,attr:hon,attrTween:mon,style:Hon,styleTween:Uon,text:Xon,textTween:Yon,remove:Lon,tween:son,delay:yon,duration:Oon,ease:jon,easeVarying:Eon,end:ecn,[Symbol.iterator]:nO[Symbol.iterator]};function ncn(l){return((l*=2)<=1?l*l*l:(l-=2)*l*l+2)/2}var icn={time:null,delay:0,duration:250,ease:ncn};function rcn(l,s){for(var u;!(u=l.__transition)||!(u=u[s]);)if(!(l=l.parentNode))throw new Error(`transition ${s} not found`);return u}function scn(l){var s,u;l instanceof bO?(s=l._id,l=l._name):(s=U4t(),(u=icn).time=bAe(),l=l==null?null:l+"");for(var h=this._groups,g=h.length,m=0;m<g;++m)for(var p=h[m],k=p.length,S,C=0;C<k;++C)(S=p[C])&&rde(S,l,s,C,p,u||rcn(S,s));return new bO(h,this._parents,l,s)}FX.prototype.interrupt=non;FX.prototype.transition=scn;const ufe=l=>()=>l;function ocn(l,{sourceEvent:s,target:u,transform:h,dispatch:g}){Object.defineProperties(this,{type:{value:l,enumerable:!0,configurable:!0},sourceEvent:{value:s,enumerable:!0,configurable:!0},target:{value:u,enumerable:!0,configurable:!0},transform:{value:h,enumerable:!0,configurable:!0},_:{value:g}})}function dO(l,s,u){this.k=l,this.x=s,this.y=u}dO.prototype={constructor:dO,scale:function(l){return l===1?this:new dO(this.k*l,this.x,this.y)},translate:function(l,s){return l===0&s===0?this:new dO(this.k,this.x+this.k*l,this.y+this.k*s)},apply:function(l){return[l[0]*this.k+this.x,l[1]*this.k+this.y]},applyX:function(l){return l*this.k+this.x},applyY:function(l){return l*this.k+this.y},invert:function(l){return[(l[0]-this.x)/this.k,(l[1]-this.y)/this.k]},invertX:function(l){return(l-this.x)/this.k},invertY:function(l){return(l-this.y)/this.k},rescaleX:function(l){return l.copy().domain(l.range().map(this.invertX,this).map(l.invert,l))},rescaleY:function(l){return l.copy().domain(l.range().map(this.invertY,this).map(l.invert,l))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var sde=new dO(1,0,0);J4t.prototype=dO.prototype;function J4t(l){for(;!l.__zoom;)if(!(l=l.parentNode))return sde;return l.__zoom}function JEe(l){l.stopImmediatePropagation()}function BV(l){l.preventDefault(),l.stopImmediatePropagation()}function ccn(l){return(!l.ctrlKey||l.type==="wheel")&&!l.button}function lcn(){var l=this;return l instanceof SVGElement?(l=l.ownerSVGElement||l,l.hasAttribute("viewBox")?(l=l.viewBox.baseVal,[[l.x,l.y],[l.x+l.width,l.y+l.height]]):[[0,0],[l.width.baseVal.value,l.height.baseVal.value]]):[[0,0],[l.clientWidth,l.clientHeight]]}function ixt(){return this.__zoom||sde}function ucn(l){return-l.deltaY*(l.deltaMode===1?.05:l.deltaMode?1:.002)*(l.ctrlKey?10:1)}function acn(){return navigator.maxTouchPoints||"ontouchstart"in this}function fcn(l,s,u){var h=l.invertX(s[0][0])-u[0][0],g=l.invertX(s[1][0])-u[1][0],m=l.invertY(s[0][1])-u[0][1],p=l.invertY(s[1][1])-u[1][1];return l.translate(g>h?(h+g)/2:Math.min(0,h)||Math.max(0,g),p>m?(m+p)/2:Math.min(0,m)||Math.max(0,p))}function V4t(){var l=ccn,s=lcn,u=fcn,h=ucn,g=acn,m=[0,1/0],p=[[-1/0,-1/0],[1/0,1/0]],k=250,S=Ufe,C=tde("start","zoom","end"),N,_,P,R=500,q=150,F=0,X=10;function J(pe){pe.property("__zoom",ixt).on("wheel.zoom",Ne,{passive:!1}).on("mousedown.zoom",qe).on("dblclick.zoom",Ke).filter(g).on("touchstart.zoom",Le).on("touchmove.zoom",we).on("touchend.zoom touchcancel.zoom",Z).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}J.transform=function(pe,Re,he,Ee){var Te=pe.selection?pe.selection():pe;Te.property("__zoom",ixt),pe!==Te?oe(pe,Re,he,Ee):Te.interrupt().each(function(){se(this,arguments).event(Ee).start().zoom(null,typeof Re=="function"?Re.apply(this,arguments):Re).end()})},J.scaleBy=function(pe,Re,he,Ee){J.scaleTo(pe,function(){var Te=this.__zoom.k,ye=typeof Re=="function"?Re.apply(this,arguments):Re;return Te*ye},he,Ee)},J.scaleTo=function(pe,Re,he,Ee){J.transform(pe,function(){var Te=s.apply(this,arguments),ye=this.__zoom,ft=he==null?ie(Te):typeof he=="function"?he.apply(this,arguments):he,Ce=ye.invert(ft),We=typeof Re=="function"?Re.apply(this,arguments):Re;return u(te(ee(ye,We),ft,Ce),Te,p)},he,Ee)},J.translateBy=function(pe,Re,he,Ee){J.transform(pe,function(){return u(this.__zoom.translate(typeof Re=="function"?Re.apply(this,arguments):Re,typeof he=="function"?he.apply(this,arguments):he),s.apply(this,arguments),p)},null,Ee)},J.translateTo=function(pe,Re,he,Ee,Te){J.transform(pe,function(){var ye=s.apply(this,arguments),ft=this.__zoom,Ce=Ee==null?ie(ye):typeof Ee=="function"?Ee.apply(this,arguments):Ee;return u(sde.translate(Ce[0],Ce[1]).scale(ft.k).translate(typeof Re=="function"?-Re.apply(this,arguments):-Re,typeof he=="function"?-he.apply(this,arguments):-he),ye,p)},Ee,Te)};function ee(pe,Re){return Re=Math.max(m[0],Math.min(m[1],Re)),Re===pe.k?pe:new dO(Re,pe.x,pe.y)}function te(pe,Re,he){var Ee=Re[0]-he[0]*pe.k,Te=Re[1]-he[1]*pe.k;return Ee===pe.x&&Te===pe.y?pe:new dO(pe.k,Ee,Te)}function ie(pe){return[(+pe[0][0]+ +pe[1][0])/2,(+pe[0][1]+ +pe[1][1])/2]}function oe(pe,Re,he,Ee){pe.on("start.zoom",function(){se(this,arguments).event(Ee).start()}).on("interrupt.zoom end.zoom",function(){se(this,arguments).event(Ee).end()}).tween("zoom",function(){var Te=this,ye=arguments,ft=se(Te,ye).event(Ee),Ce=s.apply(Te,ye),We=he==null?ie(Ce):typeof he=="function"?he.apply(Te,ye):he,gt=Math.max(Ce[1][0]-Ce[0][0],Ce[1][1]-Ce[0][1]),Ot=Te.__zoom,dt=typeof Re=="function"?Re.apply(Te,ye):Re,cn=S(Ot.invert(We).concat(gt/Ot.k),dt.invert(We).concat(gt/dt.k));return function(dn){if(dn===1)dn=dt;else{var wn=cn(dn),ni=gt/wn[2];dn=new dO(ni,We[0]-wn[0]*ni,We[1]-wn[1]*ni)}ft.zoom(null,dn)}})}function se(pe,Re,he){return!he&&pe.__zooming||new ge(pe,Re)}function ge(pe,Re){this.that=pe,this.args=Re,this.active=0,this.sourceEvent=null,this.extent=s.apply(pe,Re),this.taps=0}ge.prototype={event:function(pe){return pe&&(this.sourceEvent=pe),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(pe,Re){return this.mouse&&pe!=="mouse"&&(this.mouse[1]=Re.invert(this.mouse[0])),this.touch0&&pe!=="touch"&&(this.touch0[1]=Re.invert(this.touch0[0])),this.touch1&&pe!=="touch"&&(this.touch1[1]=Re.invert(this.touch1[0])),this.that.__zoom=Re,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(pe){var Re=Yb(this.that).datum();C.call(pe,this.that,new ocn(pe,{sourceEvent:this.sourceEvent,target:J,transform:this.that.__zoom,dispatch:C}),Re)}};function Ne(pe,...Re){if(!l.apply(this,arguments))return;var he=se(this,Re).event(pe),Ee=this.__zoom,Te=Math.max(m[0],Math.min(m[1],Ee.k*Math.pow(2,h.apply(this,arguments)))),ye=xy(pe);if(he.wheel)(he.mouse[0][0]!==ye[0]||he.mouse[0][1]!==ye[1])&&(he.mouse[1]=Ee.invert(he.mouse[0]=ye)),clearTimeout(he.wheel);else{if(Ee.k===Te)return;he.mouse=[ye,Ee.invert(ye)],Xfe(this),he.start()}BV(pe),he.wheel=setTimeout(ft,q),he.zoom("mouse",u(te(ee(Ee,Te),he.mouse[0],he.mouse[1]),he.extent,p));function ft(){he.wheel=null,he.end()}}function qe(pe,...Re){if(P||!l.apply(this,arguments))return;var he=pe.currentTarget,Ee=se(this,Re,!0).event(pe),Te=Yb(pe.view).on("mousemove.zoom",We,!0).on("mouseup.zoom",gt,!0),ye=xy(pe,he),ft=pe.clientX,Ce=pe.clientY;N4t(pe.view),JEe(pe),Ee.mouse=[ye,this.__zoom.invert(ye)],Xfe(this),Ee.start();function We(Ot){if(BV(Ot),!Ee.moved){var dt=Ot.clientX-ft,cn=Ot.clientY-Ce;Ee.moved=dt*dt+cn*cn>F}Ee.event(Ot).zoom("mouse",u(te(Ee.that.__zoom,Ee.mouse[0]=xy(Ot,he),Ee.mouse[1]),Ee.extent,p))}function gt(Ot){Te.on("mousemove.zoom mouseup.zoom",null),_4t(Ot.view,Ee.moved),BV(Ot),Ee.event(Ot).end()}}function Ke(pe,...Re){if(l.apply(this,arguments)){var he=this.__zoom,Ee=xy(pe.changedTouches?pe.changedTouches[0]:pe,this),Te=he.invert(Ee),ye=he.k*(pe.shiftKey?.5:2),ft=u(te(ee(he,ye),Ee,Te),s.apply(this,Re),p);BV(pe),k>0?Yb(this).transition().duration(k).call(oe,ft,Ee,pe):Yb(this).call(J.transform,ft,Ee,pe)}}function Le(pe,...Re){if(l.apply(this,arguments)){var he=pe.touches,Ee=he.length,Te=se(this,Re,pe.changedTouches.length===Ee).event(pe),ye,ft,Ce,We;for(JEe(pe),ft=0;ft<Ee;++ft)Ce=he[ft],We=xy(Ce,this),We=[We,this.__zoom.invert(We),Ce.identifier],Te.touch0?!Te.touch1&&Te.touch0[2]!==We[2]&&(Te.touch1=We,Te.taps=0):(Te.touch0=We,ye=!0,Te.taps=1+!!N);N&&(N=clearTimeout(N)),ye&&(Te.taps<2&&(_=We[0],N=setTimeout(function(){N=null},R)),Xfe(this),Te.start())}}function we(pe,...Re){if(this.__zooming){var he=se(this,Re).event(pe),Ee=pe.changedTouches,Te=Ee.length,ye,ft,Ce,We;for(BV(pe),ye=0;ye<Te;++ye)ft=Ee[ye],Ce=xy(ft,this),he.touch0&&he.touch0[2]===ft.identifier?he.touch0[0]=Ce:he.touch1&&he.touch1[2]===ft.identifier&&(he.touch1[0]=Ce);if(ft=he.that.__zoom,he.touch1){var gt=he.touch0[0],Ot=he.touch0[1],dt=he.touch1[0],cn=he.touch1[1],dn=(dn=dt[0]-gt[0])*dn+(dn=dt[1]-gt[1])*dn,wn=(wn=cn[0]-Ot[0])*wn+(wn=cn[1]-Ot[1])*wn;ft=ee(ft,Math.sqrt(dn/wn)),Ce=[(gt[0]+dt[0])/2,(gt[1]+dt[1])/2],We=[(Ot[0]+cn[0])/2,(Ot[1]+cn[1])/2]}else if(he.touch0)Ce=he.touch0[0],We=he.touch0[1];else return;he.zoom("touch",u(te(ft,Ce,We),he.extent,p))}}function Z(pe,...Re){if(this.__zooming){var he=se(this,Re).event(pe),Ee=pe.changedTouches,Te=Ee.length,ye,ft;for(JEe(pe),P&&clearTimeout(P),P=setTimeout(function(){P=null},R),ye=0;ye<Te;++ye)ft=Ee[ye],he.touch0&&he.touch0[2]===ft.identifier?delete he.touch0:he.touch1&&he.touch1[2]===ft.identifier&&delete he.touch1;if(he.touch1&&!he.touch0&&(he.touch0=he.touch1,delete he.touch1),he.touch0)he.touch0[1]=this.__zoom.invert(he.touch0[0]);else if(he.end(),he.taps===2&&(ft=xy(ft,this),Math.hypot(_[0]-ft[0],_[1]-ft[1])<X)){var Ce=Yb(this).on("dblclick.zoom");Ce&&Ce.apply(this,arguments)}}}return J.wheelDelta=function(pe){return arguments.length?(h=typeof pe=="function"?pe:ufe(+pe),J):h},J.filter=function(pe){return arguments.length?(l=typeof pe=="function"?pe:ufe(!!pe),J):l},J.touchable=function(pe){return arguments.length?(g=typeof pe=="function"?pe:ufe(!!pe),J):g},J.extent=function(pe){return arguments.length?(s=typeof pe=="function"?pe:ufe([[+pe[0][0],+pe[0][1]],[+pe[1][0],+pe[1][1]]]),J):s},J.scaleExtent=function(pe){return arguments.length?(m[0]=+pe[0],m[1]=+pe[1],J):[m[0],m[1]]},J.translateExtent=function(pe){return arguments.length?(p[0][0]=+pe[0][0],p[1][0]=+pe[1][0],p[0][1]=+pe[0][1],p[1][1]=+pe[1][1],J):[[p[0][0],p[0][1]],[p[1][0],p[1][1]]]},J.constrain=function(pe){return arguments.length?(u=pe,J):u},J.duration=function(pe){return arguments.length?(k=+pe,J):k},J.interpolate=function(pe){return arguments.length?(S=pe,J):S},J.on=function(){var pe=C.on.apply(C,arguments);return pe===C?J:pe},J.clickDistance=function(pe){return arguments.length?(F=(pe=+pe)*pe,J):Math.sqrt(F)},J.tapDistance=function(pe){return arguments.length?(X=+pe,J):X},J}const t5={error001:()=>"[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:l=>`Node type "${l}" 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:l=>`The old edge with id=${l} does not exist.`,error009:l=>`Marker type "${l}" doesn't exist.`,error008:(l,{id:s,sourceHandle:u,targetHandle:h})=>`Couldn't create edge for ${l} handle id: "${l==="source"?u:h}", edge id: ${s}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:l=>`Edge type "${l}" not found. Using fallback type "default".`,error012:l=>`Node with id "${l}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(l="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${l}/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."},bX=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],X4t=["Enter"," ","Escape"],W4t={"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:l,x:s,y:u})=>`Moved selected node ${l}. New position, x: ${s}, y: ${u}`,"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 VI;(function(l){l.Strict="strict",l.Loose="loose"})(VI||(VI={}));var _M;(function(l){l.Free="free",l.Vertical="vertical",l.Horizontal="horizontal"})(_M||(_M={}));var XI;(function(l){l.Partial="partial",l.Full="full"})(XI||(XI={}));const K4t={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var C9;(function(l){l.Bezier="default",l.Straight="straight",l.Step="step",l.SmoothStep="smoothstep",l.SimpleBezier="simplebezier"})(C9||(C9={}));var aO;(function(l){l.Arrow="arrow",l.ArrowClosed="arrowclosed"})(aO||(aO={}));var ir;(function(l){l.Left="left",l.Top="top",l.Right="right",l.Bottom="bottom"})(ir||(ir={}));const rxt={[ir.Left]:ir.Right,[ir.Right]:ir.Left,[ir.Top]:ir.Bottom,[ir.Bottom]:ir.Top};function Y4t(l){return l===null?null:l?"valid":"invalid"}const Z4t=l=>"id"in l&&"source"in l&&"target"in l,hcn=l=>"id"in l&&"position"in l&&!("source"in l)&&!("target"in l),vAe=l=>"id"in l&&"internals"in l&&!("source"in l)&&!("target"in l),HX=(l,s=[0,0])=>{const{width:u,height:h}=yO(l),g=l.origin??s,m=u*g[0],p=h*g[1];return{x:l.position.x-m,y:l.position.y-p}},dcn=(l,s={nodeOrigin:[0,0]})=>{if(l.length===0)return{x:0,y:0,width:0,height:0};const u=l.reduce((h,g)=>{const m=typeof g=="string";let p=!s.nodeLookup&&!m?g:void 0;s.nodeLookup&&(p=m?s.nodeLookup.get(g):vAe(g)?g:s.nodeLookup.get(g.id));const k=p?whe(p,s.nodeOrigin):{x:0,y:0,x2:0,y2:0};return ode(h,k)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return cde(u)},QX=(l,s={})=>{let u={x:1/0,y:1/0,x2:-1/0,y2:-1/0},h=!1;return l.forEach(g=>{(s.filter===void 0||s.filter(g))&&(u=ode(u,whe(g)),h=!0)}),h?cde(u):{x:0,y:0,width:0,height:0}},yAe=(l,s,[u,h,g]=[0,0,1],m=!1,p=!1)=>{const k={...UX(s,[u,h,g]),width:s.width/g,height:s.height/g},S=[];for(const C of l.values()){const{measured:N,selectable:_=!0,hidden:P=!1}=C;if(p&&!_||P)continue;const R=N.width??C.width??C.initialWidth??null,q=N.height??C.height??C.initialHeight??null,F=mX(k,KI(C)),X=(R??0)*(q??0),J=m&&F>0;(!C.internals.handleBounds||J||F>=X||C.dragging)&&S.push(C)}return S},gcn=(l,s)=>{const u=new Set;return l.forEach(h=>{u.add(h.id)}),s.filter(h=>u.has(h.source)||u.has(h.target))};function pcn(l,s){const u=new Map,h=s!=null&&s.nodes?new Set(s.nodes.map(g=>g.id)):null;return l.forEach(g=>{g.measured.width&&g.measured.height&&((s==null?void 0:s.includeHiddenNodes)||!g.hidden)&&(!h||h.has(g.id))&&u.set(g.id,g)}),u}async function bcn({nodes:l,width:s,height:u,panZoom:h,minZoom:g,maxZoom:m},p){if(l.size===0)return Promise.resolve(!0);const k=pcn(l,p),S=QX(k),C=xAe(S,s,u,(p==null?void 0:p.minZoom)??g,(p==null?void 0:p.maxZoom)??m,(p==null?void 0:p.padding)??.1);return await h.setViewport(C,{duration:p==null?void 0:p.duration,ease:p==null?void 0:p.ease,interpolate:p==null?void 0:p.interpolate}),Promise.resolve(!0)}function ekt({nodeId:l,nextPosition:s,nodeLookup:u,nodeOrigin:h=[0,0],nodeExtent:g,onError:m}){const p=u.get(l),k=p.parentId?u.get(p.parentId):void 0,{x:S,y:C}=k?k.internals.positionAbsolute:{x:0,y:0},N=p.origin??h;let _=p.extent||g;if(p.extent==="parent"&&!p.expandParent)if(!k)m==null||m("005",t5.error005());else{const R=k.measured.width,q=k.measured.height;R&&q&&(_=[[S,C],[S+R,C+q]])}else k&&YI(p.extent)&&(_=[[p.extent[0][0]+S,p.extent[0][1]+C],[p.extent[1][0]+S,p.extent[1][1]+C]]);const P=YI(_)?BM(s,_,p.measured):s;return(p.measured.width===void 0||p.measured.height===void 0)&&(m==null||m("015",t5.error015())),{position:{x:P.x-S+(p.measured.width??0)*N[0],y:P.y-C+(p.measured.height??0)*N[1]},positionAbsolute:P}}async function mcn({nodesToRemove:l=[],edgesToRemove:s=[],nodes:u,edges:h,onBeforeDelete:g}){const m=new Set(l.map(P=>P.id)),p=[];for(const P of u){if(P.deletable===!1)continue;const R=m.has(P.id),q=!R&&P.parentId&&p.find(F=>F.id===P.parentId);(R||q)&&p.push(P)}const k=new Set(s.map(P=>P.id)),S=h.filter(P=>P.deletable!==!1),N=gcn(p,S);for(const P of S)k.has(P.id)&&!N.find(q=>q.id===P.id)&&N.push(P);if(!g)return{edges:N,nodes:p};const _=await g({nodes:p,edges:N});return typeof _=="boolean"?_?{edges:N,nodes:p}:{edges:[],nodes:[]}:_}const WI=(l,s=0,u=1)=>Math.min(Math.max(l,s),u),BM=(l={x:0,y:0},s,u)=>({x:WI(l.x,s[0][0],s[1][0]-((u==null?void 0:u.width)??0)),y:WI(l.y,s[0][1],s[1][1]-((u==null?void 0:u.height)??0))});function tkt(l,s,u){const{width:h,height:g}=yO(u),{x:m,y:p}=u.internals.positionAbsolute;return BM(l,[[m,p],[m+h,p+g]],s)}const sxt=(l,s,u)=>l<s?WI(Math.abs(l-s),1,s)/s:l>u?-WI(Math.abs(l-u),1,s)/s:0,nkt=(l,s,u=15,h=40)=>{const g=sxt(l.x,h,s.width-h)*u,m=sxt(l.y,h,s.height-h)*u;return[g,m]},ode=(l,s)=>({x:Math.min(l.x,s.x),y:Math.min(l.y,s.y),x2:Math.max(l.x2,s.x2),y2:Math.max(l.y2,s.y2)}),rMe=({x:l,y:s,width:u,height:h})=>({x:l,y:s,x2:l+u,y2:s+h}),cde=({x:l,y:s,x2:u,y2:h})=>({x:l,y:s,width:u-l,height:h-s}),KI=(l,s=[0,0])=>{var g,m;const{x:u,y:h}=vAe(l)?l.internals.positionAbsolute:HX(l,s);return{x:u,y:h,width:((g=l.measured)==null?void 0:g.width)??l.width??l.initialWidth??0,height:((m=l.measured)==null?void 0:m.height)??l.height??l.initialHeight??0}},whe=(l,s=[0,0])=>{var g,m;const{x:u,y:h}=vAe(l)?l.internals.positionAbsolute:HX(l,s);return{x:u,y:h,x2:u+(((g=l.measured)==null?void 0:g.width)??l.width??l.initialWidth??0),y2:h+(((m=l.measured)==null?void 0:m.height)??l.height??l.initialHeight??0)}},ikt=(l,s)=>cde(ode(rMe(l),rMe(s))),mX=(l,s)=>{const u=Math.max(0,Math.min(l.x+l.width,s.x+s.width)-Math.max(l.x,s.x)),h=Math.max(0,Math.min(l.y+l.height,s.y+s.height)-Math.max(l.y,s.y));return Math.ceil(u*h)},oxt=l=>Sy(l.width)&&Sy(l.height)&&Sy(l.x)&&Sy(l.y),Sy=l=>!isNaN(l)&&isFinite(l),wcn=(l,s)=>{},GX=(l,s=[1,1])=>({x:s[0]*Math.round(l.x/s[0]),y:s[1]*Math.round(l.y/s[1])}),UX=({x:l,y:s},[u,h,g],m=!1,p=[1,1])=>{const k={x:(l-u)/g,y:(s-h)/g};return m?GX(k,p):k},vhe=({x:l,y:s},[u,h,g])=>({x:l*g+u,y:s*g+h});function OI(l,s){if(typeof l=="number")return Math.floor((s-s/(1+l))*.5);if(typeof l=="string"&&l.endsWith("px")){const u=parseFloat(l);if(!Number.isNaN(u))return Math.floor(u)}if(typeof l=="string"&&l.endsWith("%")){const u=parseFloat(l);if(!Number.isNaN(u))return Math.floor(s*u*.01)}return console.error(`[React Flow] The padding value "${l}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function vcn(l,s,u){if(typeof l=="string"||typeof l=="number"){const h=OI(l,u),g=OI(l,s);return{top:h,right:g,bottom:h,left:g,x:g*2,y:h*2}}if(typeof l=="object"){const h=OI(l.top??l.y??0,u),g=OI(l.bottom??l.y??0,u),m=OI(l.left??l.x??0,s),p=OI(l.right??l.x??0,s);return{top:h,right:p,bottom:g,left:m,x:m+p,y:h+g}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function ycn(l,s,u,h,g,m){const{x:p,y:k}=vhe(l,[s,u,h]),{x:S,y:C}=vhe({x:l.x+l.width,y:l.y+l.height},[s,u,h]),N=g-S,_=m-C;return{left:Math.floor(p),top:Math.floor(k),right:Math.floor(N),bottom:Math.floor(_)}}const xAe=(l,s,u,h,g,m)=>{const p=vcn(m,s,u),k=(s-p.x)/l.width,S=(u-p.y)/l.height,C=Math.min(k,S),N=WI(C,h,g),_=l.x+l.width/2,P=l.y+l.height/2,R=s/2-_*N,q=u/2-P*N,F=ycn(l,R,q,N,s,u),X={left:Math.min(F.left-p.left,0),top:Math.min(F.top-p.top,0),right:Math.min(F.right-p.right,0),bottom:Math.min(F.bottom-p.bottom,0)};return{x:R-X.left+X.right,y:q-X.top+X.bottom,zoom:N}},wX=()=>{var l;return typeof navigator<"u"&&((l=navigator==null?void 0:navigator.userAgent)==null?void 0:l.indexOf("Mac"))>=0};function YI(l){return l!=null&&l!=="parent"}function yO(l){var s,u;return{width:((s=l.measured)==null?void 0:s.width)??l.width??l.initialWidth??0,height:((u=l.measured)==null?void 0:u.height)??l.height??l.initialHeight??0}}function rkt(l){var s,u;return(((s=l.measured)==null?void 0:s.width)??l.width??l.initialWidth)!==void 0&&(((u=l.measured)==null?void 0:u.height)??l.height??l.initialHeight)!==void 0}function skt(l,s={width:0,height:0},u,h,g){const m={...l},p=h.get(u);if(p){const k=p.origin||g;m.x+=p.internals.positionAbsolute.x-(s.width??0)*k[0],m.y+=p.internals.positionAbsolute.y-(s.height??0)*k[1]}return m}function cxt(l,s){if(l.size!==s.size)return!1;for(const u of l)if(!s.has(u))return!1;return!0}function xcn(){let l,s;return{promise:new Promise((h,g)=>{l=h,s=g}),resolve:l,reject:s}}function kcn(l){return{...W4t,...l||{}}}function nX(l,{snapGrid:s=[0,0],snapToGrid:u=!1,transform:h,containerBounds:g}){const{x:m,y:p}=jy(l),k=UX({x:m-((g==null?void 0:g.left)??0),y:p-((g==null?void 0:g.top)??0)},h),{x:S,y:C}=u?GX(k,s):k;return{xSnapped:S,ySnapped:C,...k}}const kAe=l=>({width:l.offsetWidth,height:l.offsetHeight}),okt=l=>{var s;return((s=l==null?void 0:l.getRootNode)==null?void 0:s.call(l))||(window==null?void 0:window.document)},Ocn=["INPUT","SELECT","TEXTAREA"];function ckt(l){var h,g;const s=((g=(h=l.composedPath)==null?void 0:h.call(l))==null?void 0:g[0])||l.target;return(s==null?void 0:s.nodeType)!==1?!1:Ocn.includes(s.nodeName)||s.hasAttribute("contenteditable")||!!s.closest(".nokey")}const lkt=l=>"clientX"in l,jy=(l,s)=>{var m,p;const u=lkt(l),h=u?l.clientX:(m=l.touches)==null?void 0:m[0].clientX,g=u?l.clientY:(p=l.touches)==null?void 0:p[0].clientY;return{x:h-((s==null?void 0:s.left)??0),y:g-((s==null?void 0:s.top)??0)}},lxt=(l,s,u,h,g)=>{const m=s.querySelectorAll(`.${l}`);return!m||!m.length?null:Array.from(m).map(p=>{const k=p.getBoundingClientRect();return{id:p.getAttribute("data-handleid"),type:l,nodeId:g,position:p.getAttribute("data-handlepos"),x:(k.left-u.left)/h,y:(k.top-u.top)/h,...kAe(p)}})};function ukt({sourceX:l,sourceY:s,targetX:u,targetY:h,sourceControlX:g,sourceControlY:m,targetControlX:p,targetControlY:k}){const S=l*.125+g*.375+p*.375+u*.125,C=s*.125+m*.375+k*.375+h*.125,N=Math.abs(S-l),_=Math.abs(C-s);return[S,C,N,_]}function afe(l,s){return l>=0?.5*l:s*25*Math.sqrt(-l)}function uxt({pos:l,x1:s,y1:u,x2:h,y2:g,c:m}){switch(l){case ir.Left:return[s-afe(s-h,m),u];case ir.Right:return[s+afe(h-s,m),u];case ir.Top:return[s,u-afe(u-g,m)];case ir.Bottom:return[s,u+afe(g-u,m)]}}function akt({sourceX:l,sourceY:s,sourcePosition:u=ir.Bottom,targetX:h,targetY:g,targetPosition:m=ir.Top,curvature:p=.25}){const[k,S]=uxt({pos:u,x1:l,y1:s,x2:h,y2:g,c:p}),[C,N]=uxt({pos:m,x1:h,y1:g,x2:l,y2:s,c:p}),[_,P,R,q]=ukt({sourceX:l,sourceY:s,targetX:h,targetY:g,sourceControlX:k,sourceControlY:S,targetControlX:C,targetControlY:N});return[`M${l},${s} C${k},${S} ${C},${N} ${h},${g}`,_,P,R,q]}function fkt({sourceX:l,sourceY:s,targetX:u,targetY:h}){const g=Math.abs(u-l)/2,m=u<l?u+g:u-g,p=Math.abs(h-s)/2,k=h<s?h+p:h-p;return[m,k,g,p]}function Scn({sourceNode:l,targetNode:s,selected:u=!1,zIndex:h=0,elevateOnSelect:g=!1,zIndexMode:m="basic"}){if(m==="manual")return h;const p=g&&u?h+1e3:h,k=Math.max(l.parentId||g&&l.selected?l.internals.z:0,s.parentId||g&&s.selected?s.internals.z:0);return p+k}function jcn({sourceNode:l,targetNode:s,width:u,height:h,transform:g}){const m=ode(whe(l),whe(s));m.x===m.x2&&(m.x2+=1),m.y===m.y2&&(m.y2+=1);const p={x:-g[0]/g[2],y:-g[1]/g[2],width:u/g[2],height:h/g[2]};return mX(p,cde(m))>0}const Tcn=({source:l,sourceHandle:s,target:u,targetHandle:h})=>`xy-edge__${l}${s||""}-${u}${h||""}`,Ecn=(l,s)=>s.some(u=>u.source===l.source&&u.target===l.target&&(u.sourceHandle===l.sourceHandle||!u.sourceHandle&&!l.sourceHandle)&&(u.targetHandle===l.targetHandle||!u.targetHandle&&!l.targetHandle)),sMe=(l,s,u={})=>{if(!l.source||!l.target)return s;const h=u.getEdgeId||Tcn;let g;return Z4t(l)?g={...l}:g={...l,id:h(l)},Ecn(g,s)?s:(g.sourceHandle===null&&delete g.sourceHandle,g.targetHandle===null&&delete g.targetHandle,s.concat(g))};function hkt({sourceX:l,sourceY:s,targetX:u,targetY:h}){const[g,m,p,k]=fkt({sourceX:l,sourceY:s,targetX:u,targetY:h});return[`M ${l},${s}L ${u},${h}`,g,m,p,k]}const axt={[ir.Left]:{x:-1,y:0},[ir.Right]:{x:1,y:0},[ir.Top]:{x:0,y:-1},[ir.Bottom]:{x:0,y:1}},Ccn=({source:l,sourcePosition:s=ir.Bottom,target:u})=>s===ir.Left||s===ir.Right?l.x<u.x?{x:1,y:0}:{x:-1,y:0}:l.y<u.y?{x:0,y:1}:{x:0,y:-1},fxt=(l,s)=>Math.sqrt(Math.pow(s.x-l.x,2)+Math.pow(s.y-l.y,2));function Mcn({source:l,sourcePosition:s=ir.Bottom,target:u,targetPosition:h=ir.Top,center:g,offset:m,stepPosition:p}){const k=axt[s],S=axt[h],C={x:l.x+k.x*m,y:l.y+k.y*m},N={x:u.x+S.x*m,y:u.y+S.y*m},_=Ccn({source:C,sourcePosition:s,target:N}),P=_.x!==0?"x":"y",R=_[P];let q=[],F,X;const J={x:0,y:0},ee={x:0,y:0},[,,te,ie]=fkt({sourceX:l.x,sourceY:l.y,targetX:u.x,targetY:u.y});if(k[P]*S[P]===-1){P==="x"?(F=g.x??C.x+(N.x-C.x)*p,X=g.y??(C.y+N.y)/2):(F=g.x??(C.x+N.x)/2,X=g.y??C.y+(N.y-C.y)*p);const se=[{x:F,y:C.y},{x:F,y:N.y}],ge=[{x:C.x,y:X},{x:N.x,y:X}];k[P]===R?q=P==="x"?se:ge:q=P==="x"?ge:se}else{const se=[{x:C.x,y:N.y}],ge=[{x:N.x,y:C.y}];if(P==="x"?q=k.x===R?ge:se:q=k.y===R?se:ge,s===h){const we=Math.abs(l[P]-u[P]);if(we<=m){const Z=Math.min(m-1,m-we);k[P]===R?J[P]=(C[P]>l[P]?-1:1)*Z:ee[P]=(N[P]>u[P]?-1:1)*Z}}if(s!==h){const we=P==="x"?"y":"x",Z=k[P]===S[we],pe=C[we]>N[we],Re=C[we]<N[we];(k[P]===1&&(!Z&&pe||Z&&Re)||k[P]!==1&&(!Z&&Re||Z&&pe))&&(q=P==="x"?se:ge)}const Ne={x:C.x+J.x,y:C.y+J.y},qe={x:N.x+ee.x,y:N.y+ee.y},Ke=Math.max(Math.abs(Ne.x-q[0].x),Math.abs(qe.x-q[0].x)),Le=Math.max(Math.abs(Ne.y-q[0].y),Math.abs(qe.y-q[0].y));Ke>=Le?(F=(Ne.x+qe.x)/2,X=q[0].y):(F=q[0].x,X=(Ne.y+qe.y)/2)}return[[l,{x:C.x+J.x,y:C.y+J.y},...q,{x:N.x+ee.x,y:N.y+ee.y},u],F,X,te,ie]}function Acn(l,s,u,h){const g=Math.min(fxt(l,s)/2,fxt(s,u)/2,h),{x:m,y:p}=s;if(l.x===m&&m===u.x||l.y===p&&p===u.y)return`L${m} ${p}`;if(l.y===p){const C=l.x<u.x?-1:1,N=l.y<u.y?1:-1;return`L ${m+g*C},${p}Q ${m},${p} ${m},${p+g*N}`}const k=l.x<u.x?1:-1,S=l.y<u.y?-1:1;return`L ${m},${p+g*S}Q ${m},${p} ${m+g*k},${p}`}function oMe({sourceX:l,sourceY:s,sourcePosition:u=ir.Bottom,targetX:h,targetY:g,targetPosition:m=ir.Top,borderRadius:p=5,centerX:k,centerY:S,offset:C=20,stepPosition:N=.5}){const[_,P,R,q,F]=Mcn({source:{x:l,y:s},sourcePosition:u,target:{x:h,y:g},targetPosition:m,center:{x:k,y:S},offset:C,stepPosition:N});return[_.reduce((J,ee,te)=>{let ie="";return te>0&&te<_.length-1?ie=Acn(_[te-1],ee,_[te+1],p):ie=`${te===0?"M":"L"}${ee.x} ${ee.y}`,J+=ie,J},""),P,R,q,F]}function hxt(l){var s;return l&&!!(l.internals.handleBounds||(s=l.handles)!=null&&s.length)&&!!(l.measured.width||l.width||l.initialWidth)}function Ncn(l){var _;const{sourceNode:s,targetNode:u}=l;if(!hxt(s)||!hxt(u))return null;const h=s.internals.handleBounds||dxt(s.handles),g=u.internals.handleBounds||dxt(u.handles),m=gxt((h==null?void 0:h.source)??[],l.sourceHandle),p=gxt(l.connectionMode===VI.Strict?(g==null?void 0:g.target)??[]:((g==null?void 0:g.target)??[]).concat((g==null?void 0:g.source)??[]),l.targetHandle);if(!m||!p)return(_=l.onError)==null||_.call(l,"008",t5.error008(m?"target":"source",{id:l.id,sourceHandle:l.sourceHandle,targetHandle:l.targetHandle})),null;const k=(m==null?void 0:m.position)||ir.Bottom,S=(p==null?void 0:p.position)||ir.Top,C=zM(s,m,k),N=zM(u,p,S);return{sourceX:C.x,sourceY:C.y,targetX:N.x,targetY:N.y,sourcePosition:k,targetPosition:S}}function dxt(l){if(!l)return null;const s=[],u=[];for(const h of l)h.width=h.width??1,h.height=h.height??1,h.type==="source"?s.push(h):h.type==="target"&&u.push(h);return{source:s,target:u}}function zM(l,s,u=ir.Left,h=!1){const g=((s==null?void 0:s.x)??0)+l.internals.positionAbsolute.x,m=((s==null?void 0:s.y)??0)+l.internals.positionAbsolute.y,{width:p,height:k}=s??yO(l);if(h)return{x:g+p/2,y:m+k/2};switch((s==null?void 0:s.position)??u){case ir.Top:return{x:g+p/2,y:m};case ir.Right:return{x:g+p,y:m+k/2};case ir.Bottom:return{x:g+p/2,y:m+k};case ir.Left:return{x:g,y:m+k/2}}}function gxt(l,s){return l&&(s?l.find(u=>u.id===s):l[0])||null}function cMe(l,s){return l?typeof l=="string"?l:`${s?`${s}__`:""}${Object.keys(l).sort().map(h=>`${h}=${l[h]}`).join("&")}`:""}function _cn(l,{id:s,defaultColor:u,defaultMarkerStart:h,defaultMarkerEnd:g}){const m=new Set;return l.reduce((p,k)=>([k.markerStart||h,k.markerEnd||g].forEach(S=>{if(S&&typeof S=="object"){const C=cMe(S,s);m.has(C)||(p.push({id:C,color:S.color||u,...S}),m.add(C))}}),p),[]).sort((p,k)=>p.id.localeCompare(k.id))}const dkt=1e3,Dcn=10,OAe={nodeOrigin:[0,0],nodeExtent:bX,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},Lcn={...OAe,checkEquality:!0};function SAe(l,s){const u={...l};for(const h in s)s[h]!==void 0&&(u[h]=s[h]);return u}function Pcn(l,s,u){const h=SAe(OAe,u);for(const g of l.values())if(g.parentId)TAe(g,l,s,h);else{const m=HX(g,h.nodeOrigin),p=YI(g.extent)?g.extent:h.nodeExtent,k=BM(m,p,yO(g));g.internals.positionAbsolute=k}}function Icn(l,s){if(!l.handles)return l.measured?s==null?void 0:s.internals.handleBounds:void 0;const u=[],h=[];for(const g of l.handles){const m={id:g.id,width:g.width??1,height:g.height??1,nodeId:l.id,x:g.x,y:g.y,position:g.position,type:g.type};g.type==="source"?u.push(m):g.type==="target"&&h.push(m)}return{source:u,target:h}}function jAe(l){return l==="manual"}function lMe(l,s,u,h={}){var C,N;const g=SAe(Lcn,h),m={i:0},p=new Map(s),k=g!=null&&g.elevateNodesOnSelect&&!jAe(g.zIndexMode)?dkt:0;let S=l.length>0;s.clear(),u.clear();for(const _ of l){let P=p.get(_.id);if(g.checkEquality&&_===(P==null?void 0:P.internals.userNode))s.set(_.id,P);else{const R=HX(_,g.nodeOrigin),q=YI(_.extent)?_.extent:g.nodeExtent,F=BM(R,q,yO(_));P={...g.defaults,..._,measured:{width:(C=_.measured)==null?void 0:C.width,height:(N=_.measured)==null?void 0:N.height},internals:{positionAbsolute:F,handleBounds:Icn(_,P),z:gkt(_,k,g.zIndexMode),userNode:_}},s.set(_.id,P)}(P.measured===void 0||P.measured.width===void 0||P.measured.height===void 0)&&!P.hidden&&(S=!1),_.parentId&&TAe(P,s,u,h,m)}return S}function Rcn(l,s){if(!l.parentId)return;const u=s.get(l.parentId);u?u.set(l.id,l):s.set(l.parentId,new Map([[l.id,l]]))}function TAe(l,s,u,h,g){const{elevateNodesOnSelect:m,nodeOrigin:p,nodeExtent:k,zIndexMode:S}=SAe(OAe,h),C=l.parentId,N=s.get(C);if(!N){console.warn(`Parent node ${C} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}Rcn(l,u),g&&!N.parentId&&N.internals.rootParentIndex===void 0&&S==="auto"&&(N.internals.rootParentIndex=++g.i,N.internals.z=N.internals.z+g.i*Dcn),g&&N.internals.rootParentIndex!==void 0&&(g.i=N.internals.rootParentIndex);const _=m&&!jAe(S)?dkt:0,{x:P,y:R,z:q}=$cn(l,N,p,k,_,S),{positionAbsolute:F}=l.internals,X=P!==F.x||R!==F.y;(X||q!==l.internals.z)&&s.set(l.id,{...l,internals:{...l.internals,positionAbsolute:X?{x:P,y:R}:F,z:q}})}function gkt(l,s,u){const h=Sy(l.zIndex)?l.zIndex:0;return jAe(u)?h:h+(l.selected?s:0)}function $cn(l,s,u,h,g,m){const{x:p,y:k}=s.internals.positionAbsolute,S=yO(l),C=HX(l,u),N=YI(l.extent)?BM(C,l.extent,S):C;let _=BM({x:p+N.x,y:k+N.y},h,S);l.extent==="parent"&&(_=tkt(_,S,s));const P=gkt(l,g,m),R=s.internals.z??0;return{x:_.x,y:_.y,z:R>=P?R+1:P}}function EAe(l,s,u,h=[0,0]){var p;const g=[],m=new Map;for(const k of l){const S=s.get(k.parentId);if(!S)continue;const C=((p=m.get(k.parentId))==null?void 0:p.expandedRect)??KI(S),N=ikt(C,k.rect);m.set(k.parentId,{expandedRect:N,parent:S})}return m.size>0&&m.forEach(({expandedRect:k,parent:S},C)=>{var te;const N=S.internals.positionAbsolute,_=yO(S),P=S.origin??h,R=k.x<N.x?Math.round(Math.abs(N.x-k.x)):0,q=k.y<N.y?Math.round(Math.abs(N.y-k.y)):0,F=Math.max(_.width,Math.round(k.width)),X=Math.max(_.height,Math.round(k.height)),J=(F-_.width)*P[0],ee=(X-_.height)*P[1];(R>0||q>0||J||ee)&&(g.push({id:C,type:"position",position:{x:S.position.x-R+J,y:S.position.y-q+ee}}),(te=u.get(C))==null||te.forEach(ie=>{l.some(oe=>oe.id===ie.id)||g.push({id:ie.id,type:"position",position:{x:ie.position.x+R,y:ie.position.y+q}})})),(_.width<k.width||_.height<k.height||R||q)&&g.push({id:C,type:"dimensions",setAttributes:!0,dimensions:{width:F+(R?P[0]*R-J:0),height:X+(q?P[1]*q-ee:0)}})}),g}function Bcn(l,s,u,h,g,m,p){const k=h==null?void 0:h.querySelector(".xyflow__viewport");let S=!1;if(!k)return{changes:[],updatedInternals:S};const C=[],N=window.getComputedStyle(k),{m22:_}=new window.DOMMatrixReadOnly(N.transform),P=[];for(const R of l.values()){const q=s.get(R.id);if(!q)continue;if(q.hidden){s.set(q.id,{...q,internals:{...q.internals,handleBounds:void 0}}),S=!0;continue}const F=kAe(R.nodeElement),X=q.measured.width!==F.width||q.measured.height!==F.height;if(!!(F.width&&F.height&&(X||!q.internals.handleBounds||R.force))){const ee=R.nodeElement.getBoundingClientRect(),te=YI(q.extent)?q.extent:m;let{positionAbsolute:ie}=q.internals;q.parentId&&q.extent==="parent"?ie=tkt(ie,F,s.get(q.parentId)):te&&(ie=BM(ie,te,F));const oe={...q,measured:F,internals:{...q.internals,positionAbsolute:ie,handleBounds:{source:lxt("source",R.nodeElement,ee,_,q.id),target:lxt("target",R.nodeElement,ee,_,q.id)}}};s.set(q.id,oe),q.parentId&&TAe(oe,s,u,{nodeOrigin:g,zIndexMode:p}),S=!0,X&&(C.push({id:q.id,type:"dimensions",dimensions:F}),q.expandParent&&q.parentId&&P.push({id:q.id,parentId:q.parentId,rect:KI(oe,g)}))}}if(P.length>0){const R=EAe(P,s,u,g);C.push(...R)}return{changes:C,updatedInternals:S}}async function zcn({delta:l,panZoom:s,transform:u,translateExtent:h,width:g,height:m}){if(!s||!l.x&&!l.y)return Promise.resolve(!1);const p=await s.setViewportConstrained({x:u[0]+l.x,y:u[1]+l.y,zoom:u[2]},[[0,0],[g,m]],h),k=!!p&&(p.x!==u[0]||p.y!==u[1]||p.k!==u[2]);return Promise.resolve(k)}function pxt(l,s,u,h,g,m){let p=g;const k=h.get(p)||new Map;h.set(p,k.set(u,s)),p=`${g}-${l}`;const S=h.get(p)||new Map;if(h.set(p,S.set(u,s)),m){p=`${g}-${l}-${m}`;const C=h.get(p)||new Map;h.set(p,C.set(u,s))}}function pkt(l,s,u){l.clear(),s.clear();for(const h of u){const{source:g,target:m,sourceHandle:p=null,targetHandle:k=null}=h,S={edgeId:h.id,source:g,target:m,sourceHandle:p,targetHandle:k},C=`${g}-${p}--${m}-${k}`,N=`${m}-${k}--${g}-${p}`;pxt("source",S,N,l,g,p),pxt("target",S,C,l,m,k),s.set(h.id,h)}}function bkt(l,s){if(!l.parentId)return!1;const u=s.get(l.parentId);return u?u.selected?!0:bkt(u,s):!1}function bxt(l,s,u){var g;let h=l;do{if((g=h==null?void 0:h.matches)!=null&&g.call(h,s))return!0;if(h===u)return!1;h=h==null?void 0:h.parentElement}while(h);return!1}function Fcn(l,s,u,h){const g=new Map;for(const[m,p]of l)if((p.selected||p.id===h)&&(!p.parentId||!bkt(p,l))&&(p.draggable||s&&typeof p.draggable>"u")){const k=l.get(m);k&&g.set(m,{id:m,position:k.position||{x:0,y:0},distance:{x:u.x-k.internals.positionAbsolute.x,y:u.y-k.internals.positionAbsolute.y},extent:k.extent,parentId:k.parentId,origin:k.origin,expandParent:k.expandParent,internals:{positionAbsolute:k.internals.positionAbsolute||{x:0,y:0}},measured:{width:k.measured.width??0,height:k.measured.height??0}})}return g}function VEe({nodeId:l,dragItems:s,nodeLookup:u,dragging:h=!0}){var p,k,S;const g=[];for(const[C,N]of s){const _=(p=u.get(C))==null?void 0:p.internals.userNode;_&&g.push({..._,position:N.position,dragging:h})}if(!l)return[g[0],g];const m=(k=u.get(l))==null?void 0:k.internals.userNode;return[m?{...m,position:((S=s.get(l))==null?void 0:S.position)||m.position,dragging:h}:g[0],g]}function qcn({dragItems:l,snapGrid:s,x:u,y:h}){const g=l.values().next().value;if(!g)return null;const m={x:u-g.distance.x,y:h-g.distance.y},p=GX(m,s);return{x:p.x-m.x,y:p.y-m.y}}function Hcn({onNodeMouseDown:l,getStoreItems:s,onDragStart:u,onDrag:h,onDragStop:g}){let m={x:null,y:null},p=0,k=new Map,S=!1,C={x:0,y:0},N=null,_=!1,P=null,R=!1,q=!1,F=null;function X({noDragClassName:ee,handleSelector:te,domNode:ie,isSelectable:oe,nodeId:se,nodeClickDistance:ge=0}){P=Yb(ie);function Ne({x:we,y:Z}){const{nodeLookup:pe,nodeExtent:Re,snapGrid:he,snapToGrid:Ee,nodeOrigin:Te,onNodeDrag:ye,onSelectionDrag:ft,onError:Ce,updateNodePositions:We}=s();m={x:we,y:Z};let gt=!1;const Ot=k.size>1,dt=Ot&&Re?rMe(QX(k)):null,cn=Ot&&Ee?qcn({dragItems:k,snapGrid:he,x:we,y:Z}):null;for(const[dn,wn]of k){if(!pe.has(dn))continue;let ni={x:we-wn.distance.x,y:Z-wn.distance.y};Ee&&(ni=cn?{x:Math.round(ni.x+cn.x),y:Math.round(ni.y+cn.y)}:GX(ni,he));let nr=null;if(Ot&&Re&&!wn.extent&&dt){const{positionAbsolute:Ti}=wn.internals,as=Ti.x-dt.x+Re[0][0],xo=Ti.x+wn.measured.width-dt.x2+Re[1][0],qr=Ti.y-dt.y+Re[0][1],Nn=Ti.y+wn.measured.height-dt.y2+Re[1][1];nr=[[as,qr],[xo,Nn]]}const{position:ii,positionAbsolute:ji}=ekt({nodeId:dn,nextPosition:ni,nodeLookup:pe,nodeExtent:nr||Re,nodeOrigin:Te,onError:Ce});gt=gt||wn.position.x!==ii.x||wn.position.y!==ii.y,wn.position=ii,wn.internals.positionAbsolute=ji}if(q=q||gt,!!gt&&(We(k,!0),F&&(h||ye||!se&&ft))){const[dn,wn]=VEe({nodeId:se,dragItems:k,nodeLookup:pe});h==null||h(F,k,dn,wn),ye==null||ye(F,dn,wn),se||ft==null||ft(F,wn)}}async function qe(){if(!N)return;const{transform:we,panBy:Z,autoPanSpeed:pe,autoPanOnNodeDrag:Re}=s();if(!Re){S=!1,cancelAnimationFrame(p);return}const[he,Ee]=nkt(C,N,pe);(he!==0||Ee!==0)&&(m.x=(m.x??0)-he/we[2],m.y=(m.y??0)-Ee/we[2],await Z({x:he,y:Ee})&&Ne(m)),p=requestAnimationFrame(qe)}function Ke(we){var Ot;const{nodeLookup:Z,multiSelectionActive:pe,nodesDraggable:Re,transform:he,snapGrid:Ee,snapToGrid:Te,selectNodesOnDrag:ye,onNodeDragStart:ft,onSelectionDragStart:Ce,unselectNodesAndEdges:We}=s();_=!0,(!ye||!oe)&&!pe&&se&&((Ot=Z.get(se))!=null&&Ot.selected||We()),oe&&ye&&se&&(l==null||l(se));const gt=nX(we.sourceEvent,{transform:he,snapGrid:Ee,snapToGrid:Te,containerBounds:N});if(m=gt,k=Fcn(Z,Re,gt,se),k.size>0&&(u||ft||!se&&Ce)){const[dt,cn]=VEe({nodeId:se,dragItems:k,nodeLookup:Z});u==null||u(we.sourceEvent,k,dt,cn),ft==null||ft(we.sourceEvent,dt,cn),se||Ce==null||Ce(we.sourceEvent,cn)}}const Le=D4t().clickDistance(ge).on("start",we=>{const{domNode:Z,nodeDragThreshold:pe,transform:Re,snapGrid:he,snapToGrid:Ee}=s();N=(Z==null?void 0:Z.getBoundingClientRect())||null,R=!1,q=!1,F=we.sourceEvent,pe===0&&Ke(we),m=nX(we.sourceEvent,{transform:Re,snapGrid:he,snapToGrid:Ee,containerBounds:N}),C=jy(we.sourceEvent,N)}).on("drag",we=>{const{autoPanOnNodeDrag:Z,transform:pe,snapGrid:Re,snapToGrid:he,nodeDragThreshold:Ee,nodeLookup:Te}=s(),ye=nX(we.sourceEvent,{transform:pe,snapGrid:Re,snapToGrid:he,containerBounds:N});if(F=we.sourceEvent,(we.sourceEvent.type==="touchmove"&&we.sourceEvent.touches.length>1||se&&!Te.has(se))&&(R=!0),!R){if(!S&&Z&&_&&(S=!0,qe()),!_){const ft=jy(we.sourceEvent,N),Ce=ft.x-C.x,We=ft.y-C.y;Math.sqrt(Ce*Ce+We*We)>Ee&&Ke(we)}(m.x!==ye.xSnapped||m.y!==ye.ySnapped)&&k&&_&&(C=jy(we.sourceEvent,N),Ne(ye))}}).on("end",we=>{if(!(!_||R)&&(S=!1,_=!1,cancelAnimationFrame(p),k.size>0)){const{nodeLookup:Z,updateNodePositions:pe,onNodeDragStop:Re,onSelectionDragStop:he}=s();if(q&&(pe(k,!1),q=!1),g||Re||!se&&he){const[Ee,Te]=VEe({nodeId:se,dragItems:k,nodeLookup:Z,dragging:!1});g==null||g(we.sourceEvent,k,Ee,Te),Re==null||Re(we.sourceEvent,Ee,Te),se||he==null||he(we.sourceEvent,Te)}}}).filter(we=>{const Z=we.target;return!we.button&&(!ee||!bxt(Z,`.${ee}`,ie))&&(!te||bxt(Z,te,ie))});P.call(Le)}function J(){P==null||P.on(".drag",null)}return{update:X,destroy:J}}function Qcn(l,s,u){const h=[],g={x:l.x-u,y:l.y-u,width:u*2,height:u*2};for(const m of s.values())mX(g,KI(m))>0&&h.push(m);return h}const Gcn=250;function Ucn(l,s,u,h){var k,S;let g=[],m=1/0;const p=Qcn(l,u,s+Gcn);for(const C of p){const N=[...((k=C.internals.handleBounds)==null?void 0:k.source)??[],...((S=C.internals.handleBounds)==null?void 0:S.target)??[]];for(const _ of N){if(h.nodeId===_.nodeId&&h.type===_.type&&h.id===_.id)continue;const{x:P,y:R}=zM(C,_,_.position,!0),q=Math.sqrt(Math.pow(P-l.x,2)+Math.pow(R-l.y,2));q>s||(q<m?(g=[{..._,x:P,y:R}],m=q):q===m&&g.push({..._,x:P,y:R}))}}if(!g.length)return null;if(g.length>1){const C=h.type==="source"?"target":"source";return g.find(N=>N.type===C)??g[0]}return g[0]}function mkt(l,s,u,h,g,m=!1){var C,N,_;const p=h.get(l);if(!p)return null;const k=g==="strict"?(C=p.internals.handleBounds)==null?void 0:C[s]:[...((N=p.internals.handleBounds)==null?void 0:N.source)??[],...((_=p.internals.handleBounds)==null?void 0:_.target)??[]],S=(u?k==null?void 0:k.find(P=>P.id===u):k==null?void 0:k[0])??null;return S&&m?{...S,...zM(p,S,S.position,!0)}:S}function wkt(l,s){return l||(s!=null&&s.classList.contains("target")?"target":s!=null&&s.classList.contains("source")?"source":null)}function Jcn(l,s){let u=null;return s?u=!0:l&&!s&&(u=!1),u}const vkt=()=>!0;function Vcn(l,{connectionMode:s,connectionRadius:u,handleId:h,nodeId:g,edgeUpdaterType:m,isTarget:p,domNode:k,nodeLookup:S,lib:C,autoPanOnConnect:N,flowId:_,panBy:P,cancelConnection:R,onConnectStart:q,onConnect:F,onConnectEnd:X,isValidConnection:J=vkt,onReconnectEnd:ee,updateConnection:te,getTransform:ie,getFromHandle:oe,autoPanSpeed:se,dragThreshold:ge=1,handleDomNode:Ne}){const qe=okt(l.target);let Ke=0,Le;const{x:we,y:Z}=jy(l),pe=wkt(m,Ne),Re=k==null?void 0:k.getBoundingClientRect();let he=!1;if(!Re||!pe)return;const Ee=mkt(g,pe,h,S,s);if(!Ee)return;let Te=jy(l,Re),ye=!1,ft=null,Ce=!1,We=null;function gt(){if(!N||!Re)return;const[ii,ji]=nkt(Te,Re,se);P({x:ii,y:ji}),Ke=requestAnimationFrame(gt)}const Ot={...Ee,nodeId:g,type:pe,position:Ee.position},dt=S.get(g);let dn={inProgress:!0,isValid:null,from:zM(dt,Ot,ir.Left,!0),fromHandle:Ot,fromPosition:Ot.position,fromNode:dt,to:Te,toHandle:null,toPosition:rxt[Ot.position],toNode:null,pointer:Te};function wn(){he=!0,te(dn),q==null||q(l,{nodeId:g,handleId:h,handleType:pe})}ge===0&&wn();function ni(ii){if(!he){const{x:Nn,y:Ps}=jy(ii),ms=Nn-we,rs=Ps-Z;if(!(ms*ms+rs*rs>ge*ge))return;wn()}if(!oe()||!Ot){nr(ii);return}const ji=ie();Te=jy(ii,Re),Le=Ucn(UX(Te,ji,!1,[1,1]),u,S,Ot),ye||(gt(),ye=!0);const Ti=ykt(ii,{handle:Le,connectionMode:s,fromNodeId:g,fromHandleId:h,fromType:p?"target":"source",isValidConnection:J,doc:qe,lib:C,flowId:_,nodeLookup:S});We=Ti.handleDomNode,ft=Ti.connection,Ce=Jcn(!!Le,Ti.isValid);const as=S.get(g),xo=as?zM(as,Ot,ir.Left,!0):dn.from,qr={...dn,from:xo,isValid:Ce,to:Ti.toHandle&&Ce?vhe({x:Ti.toHandle.x,y:Ti.toHandle.y},ji):Te,toHandle:Ti.toHandle,toPosition:Ce&&Ti.toHandle?Ti.toHandle.position:rxt[Ot.position],toNode:Ti.toHandle?S.get(Ti.toHandle.nodeId):null,pointer:Te};te(qr),dn=qr}function nr(ii){if(!("touches"in ii&&ii.touches.length>0)){if(he){(Le||We)&&ft&&Ce&&(F==null||F(ft));const{inProgress:ji,...Ti}=dn,as={...Ti,toPosition:dn.toHandle?dn.toPosition:null};X==null||X(ii,as),m&&(ee==null||ee(ii,as))}R(),cancelAnimationFrame(Ke),ye=!1,Ce=!1,ft=null,We=null,qe.removeEventListener("mousemove",ni),qe.removeEventListener("mouseup",nr),qe.removeEventListener("touchmove",ni),qe.removeEventListener("touchend",nr)}}qe.addEventListener("mousemove",ni),qe.addEventListener("mouseup",nr),qe.addEventListener("touchmove",ni),qe.addEventListener("touchend",nr)}function ykt(l,{handle:s,connectionMode:u,fromNodeId:h,fromHandleId:g,fromType:m,doc:p,lib:k,flowId:S,isValidConnection:C=vkt,nodeLookup:N}){const _=m==="target",P=s?p.querySelector(`.${k}-flow__handle[data-id="${S}-${s==null?void 0:s.nodeId}-${s==null?void 0:s.id}-${s==null?void 0:s.type}"]`):null,{x:R,y:q}=jy(l),F=p.elementFromPoint(R,q),X=F!=null&&F.classList.contains(`${k}-flow__handle`)?F:P,J={handleDomNode:X,isValid:!1,connection:null,toHandle:null};if(X){const ee=wkt(void 0,X),te=X.getAttribute("data-nodeid"),ie=X.getAttribute("data-handleid"),oe=X.classList.contains("connectable"),se=X.classList.contains("connectableend");if(!te||!ee)return J;const ge={source:_?te:h,sourceHandle:_?ie:g,target:_?h:te,targetHandle:_?g:ie};J.connection=ge;const qe=oe&&se&&(u===VI.Strict?_&&ee==="source"||!_&&ee==="target":te!==h||ie!==g);J.isValid=qe&&C(ge),J.toHandle=mkt(te,ee,ie,N,u,!0)}return J}const uMe={onPointerDown:Vcn,isValid:ykt};function Xcn({domNode:l,panZoom:s,getTransform:u,getViewScale:h}){const g=Yb(l);function m({translateExtent:k,width:S,height:C,zoomStep:N=1,pannable:_=!0,zoomable:P=!0,inversePan:R=!1}){const q=te=>{if(te.sourceEvent.type!=="wheel"||!s)return;const ie=u(),oe=te.sourceEvent.ctrlKey&&wX()?10:1,se=-te.sourceEvent.deltaY*(te.sourceEvent.deltaMode===1?.05:te.sourceEvent.deltaMode?1:.002)*N,ge=ie[2]*Math.pow(2,se*oe);s.scaleTo(ge)};let F=[0,0];const X=te=>{(te.sourceEvent.type==="mousedown"||te.sourceEvent.type==="touchstart")&&(F=[te.sourceEvent.clientX??te.sourceEvent.touches[0].clientX,te.sourceEvent.clientY??te.sourceEvent.touches[0].clientY])},J=te=>{const ie=u();if(te.sourceEvent.type!=="mousemove"&&te.sourceEvent.type!=="touchmove"||!s)return;const oe=[te.sourceEvent.clientX??te.sourceEvent.touches[0].clientX,te.sourceEvent.clientY??te.sourceEvent.touches[0].clientY],se=[oe[0]-F[0],oe[1]-F[1]];F=oe;const ge=h()*Math.max(ie[2],Math.log(ie[2]))*(R?-1:1),Ne={x:ie[0]-se[0]*ge,y:ie[1]-se[1]*ge},qe=[[0,0],[S,C]];s.setViewportConstrained({x:Ne.x,y:Ne.y,zoom:ie[2]},qe,k)},ee=V4t().on("start",X).on("zoom",_?J:null).on("zoom.wheel",P?q:null);g.call(ee,{})}function p(){g.on("zoom",null)}return{update:m,destroy:p,pointer:xy}}const lde=l=>({x:l.x,y:l.y,zoom:l.k}),XEe=({x:l,y:s,zoom:u})=>sde.translate(l,s).scale(u),MI=(l,s)=>l.target.closest(`.${s}`),xkt=(l,s)=>s===2&&Array.isArray(l)&&l.includes(2),Wcn=l=>((l*=2)<=1?l*l*l:(l-=2)*l*l+2)/2,WEe=(l,s=0,u=Wcn,h=()=>{})=>{const g=typeof s=="number"&&s>0;return g||h(),g?l.transition().duration(s).ease(u).on("end",h):l},kkt=l=>{const s=l.ctrlKey&&wX()?10:1;return-l.deltaY*(l.deltaMode===1?.05:l.deltaMode?1:.002)*s};function Kcn({zoomPanValues:l,noWheelClassName:s,d3Selection:u,d3Zoom:h,panOnScrollMode:g,panOnScrollSpeed:m,zoomOnPinch:p,onPanZoomStart:k,onPanZoom:S,onPanZoomEnd:C}){return N=>{if(MI(N,s))return N.ctrlKey&&N.preventDefault(),!1;N.preventDefault(),N.stopImmediatePropagation();const _=u.property("__zoom").k||1;if(N.ctrlKey&&p){const X=xy(N),J=kkt(N),ee=_*Math.pow(2,J);h.scaleTo(u,ee,X,N);return}const P=N.deltaMode===1?20:1;let R=g===_M.Vertical?0:N.deltaX*P,q=g===_M.Horizontal?0:N.deltaY*P;!wX()&&N.shiftKey&&g!==_M.Vertical&&(R=N.deltaY*P,q=0),h.translateBy(u,-(R/_)*m,-(q/_)*m,{internal:!0});const F=lde(u.property("__zoom"));clearTimeout(l.panScrollTimeout),l.isPanScrolling?(S==null||S(N,F),l.panScrollTimeout=setTimeout(()=>{C==null||C(N,F),l.isPanScrolling=!1},150)):(l.isPanScrolling=!0,k==null||k(N,F))}}function Ycn({noWheelClassName:l,preventScrolling:s,d3ZoomHandler:u}){return function(h,g){const m=h.type==="wheel",p=!s&&m&&!h.ctrlKey,k=MI(h,l);if(h.ctrlKey&&m&&k&&h.preventDefault(),p||k)return null;h.preventDefault(),u.call(this,h,g)}}function Zcn({zoomPanValues:l,onDraggingChange:s,onPanZoomStart:u}){return h=>{var m,p,k;if((m=h.sourceEvent)!=null&&m.internal)return;const g=lde(h.transform);l.mouseButton=((p=h.sourceEvent)==null?void 0:p.button)||0,l.isZoomingOrPanning=!0,l.prevViewport=g,((k=h.sourceEvent)==null?void 0:k.type)==="mousedown"&&s(!0),u&&(u==null||u(h.sourceEvent,g))}}function eln({zoomPanValues:l,panOnDrag:s,onPaneContextMenu:u,onTransformChange:h,onPanZoom:g}){return m=>{var p,k;l.usedRightMouseButton=!!(u&&xkt(s,l.mouseButton??0)),(p=m.sourceEvent)!=null&&p.sync||h([m.transform.x,m.transform.y,m.transform.k]),g&&!((k=m.sourceEvent)!=null&&k.internal)&&(g==null||g(m.sourceEvent,lde(m.transform)))}}function tln({zoomPanValues:l,panOnDrag:s,panOnScroll:u,onDraggingChange:h,onPanZoomEnd:g,onPaneContextMenu:m}){return p=>{var k;if(!((k=p.sourceEvent)!=null&&k.internal)&&(l.isZoomingOrPanning=!1,m&&xkt(s,l.mouseButton??0)&&!l.usedRightMouseButton&&p.sourceEvent&&m(p.sourceEvent),l.usedRightMouseButton=!1,h(!1),g)){const S=lde(p.transform);l.prevViewport=S,clearTimeout(l.timerId),l.timerId=setTimeout(()=>{g==null||g(p.sourceEvent,S)},u?150:0)}}}function nln({zoomActivationKeyPressed:l,zoomOnScroll:s,zoomOnPinch:u,panOnDrag:h,panOnScroll:g,zoomOnDoubleClick:m,userSelectionActive:p,noWheelClassName:k,noPanClassName:S,lib:C,connectionInProgress:N}){return _=>{var X;const P=l||s,R=u&&_.ctrlKey,q=_.type==="wheel";if(_.button===1&&_.type==="mousedown"&&(MI(_,`${C}-flow__node`)||MI(_,`${C}-flow__edge`)))return!0;if(!h&&!P&&!g&&!m&&!u||p||N&&!q||MI(_,k)&&q||MI(_,S)&&(!q||g&&q&&!l)||!u&&_.ctrlKey&&q)return!1;if(!u&&_.type==="touchstart"&&((X=_.touches)==null?void 0:X.length)>1)return _.preventDefault(),!1;if(!P&&!g&&!R&&q||!h&&(_.type==="mousedown"||_.type==="touchstart")||Array.isArray(h)&&!h.includes(_.button)&&_.type==="mousedown")return!1;const F=Array.isArray(h)&&h.includes(_.button)||!_.button||_.button<=1;return(!_.ctrlKey||q)&&F}}function iln({domNode:l,minZoom:s,maxZoom:u,translateExtent:h,viewport:g,onPanZoom:m,onPanZoomStart:p,onPanZoomEnd:k,onDraggingChange:S}){const C={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},N=l.getBoundingClientRect(),_=V4t().scaleExtent([s,u]).translateExtent(h),P=Yb(l).call(_);ee({x:g.x,y:g.y,zoom:WI(g.zoom,s,u)},[[0,0],[N.width,N.height]],h);const R=P.on("wheel.zoom"),q=P.on("dblclick.zoom");_.wheelDelta(kkt);function F(Le,we){return P?new Promise(Z=>{_==null||_.interpolate((we==null?void 0:we.interpolate)==="linear"?tX:Ufe).transform(WEe(P,we==null?void 0:we.duration,we==null?void 0:we.ease,()=>Z(!0)),Le)}):Promise.resolve(!1)}function X({noWheelClassName:Le,noPanClassName:we,onPaneContextMenu:Z,userSelectionActive:pe,panOnScroll:Re,panOnDrag:he,panOnScrollMode:Ee,panOnScrollSpeed:Te,preventScrolling:ye,zoomOnPinch:ft,zoomOnScroll:Ce,zoomOnDoubleClick:We,zoomActivationKeyPressed:gt,lib:Ot,onTransformChange:dt,connectionInProgress:cn,paneClickDistance:dn,selectionOnDrag:wn}){pe&&!C.isZoomingOrPanning&&J();const ni=Re&&!gt&&!pe;_.clickDistance(wn?1/0:!Sy(dn)||dn<0?0:dn);const nr=ni?Kcn({zoomPanValues:C,noWheelClassName:Le,d3Selection:P,d3Zoom:_,panOnScrollMode:Ee,panOnScrollSpeed:Te,zoomOnPinch:ft,onPanZoomStart:p,onPanZoom:m,onPanZoomEnd:k}):Ycn({noWheelClassName:Le,preventScrolling:ye,d3ZoomHandler:R});if(P.on("wheel.zoom",nr,{passive:!1}),!pe){const ji=Zcn({zoomPanValues:C,onDraggingChange:S,onPanZoomStart:p});_.on("start",ji);const Ti=eln({zoomPanValues:C,panOnDrag:he,onPaneContextMenu:!!Z,onPanZoom:m,onTransformChange:dt});_.on("zoom",Ti);const as=tln({zoomPanValues:C,panOnDrag:he,panOnScroll:Re,onPaneContextMenu:Z,onPanZoomEnd:k,onDraggingChange:S});_.on("end",as)}const ii=nln({zoomActivationKeyPressed:gt,panOnDrag:he,zoomOnScroll:Ce,panOnScroll:Re,zoomOnDoubleClick:We,zoomOnPinch:ft,userSelectionActive:pe,noPanClassName:we,noWheelClassName:Le,lib:Ot,connectionInProgress:cn});_.filter(ii),We?P.on("dblclick.zoom",q):P.on("dblclick.zoom",null)}function J(){_.on("zoom",null)}async function ee(Le,we,Z){const pe=XEe(Le),Re=_==null?void 0:_.constrain()(pe,we,Z);return Re&&await F(Re),new Promise(he=>he(Re))}async function te(Le,we){const Z=XEe(Le);return await F(Z,we),new Promise(pe=>pe(Z))}function ie(Le){if(P){const we=XEe(Le),Z=P.property("__zoom");(Z.k!==Le.zoom||Z.x!==Le.x||Z.y!==Le.y)&&(_==null||_.transform(P,we,null,{sync:!0}))}}function oe(){const Le=P?J4t(P.node()):{x:0,y:0,k:1};return{x:Le.x,y:Le.y,zoom:Le.k}}function se(Le,we){return P?new Promise(Z=>{_==null||_.interpolate((we==null?void 0:we.interpolate)==="linear"?tX:Ufe).scaleTo(WEe(P,we==null?void 0:we.duration,we==null?void 0:we.ease,()=>Z(!0)),Le)}):Promise.resolve(!1)}function ge(Le,we){return P?new Promise(Z=>{_==null||_.interpolate((we==null?void 0:we.interpolate)==="linear"?tX:Ufe).scaleBy(WEe(P,we==null?void 0:we.duration,we==null?void 0:we.ease,()=>Z(!0)),Le)}):Promise.resolve(!1)}function Ne(Le){_==null||_.scaleExtent(Le)}function qe(Le){_==null||_.translateExtent(Le)}function Ke(Le){const we=!Sy(Le)||Le<0?0:Le;_==null||_.clickDistance(we)}return{update:X,destroy:J,setViewport:te,setViewportConstrained:ee,getViewport:oe,scaleTo:se,scaleBy:ge,setScaleExtent:Ne,setTranslateExtent:qe,syncViewport:ie,setClickDistance:Ke}}var ZI;(function(l){l.Line="line",l.Handle="handle"})(ZI||(ZI={}));function rln({width:l,prevWidth:s,height:u,prevHeight:h,affectsX:g,affectsY:m}){const p=l-s,k=u-h,S=[p>0?1:p<0?-1:0,k>0?1:k<0?-1:0];return p&&g&&(S[0]=S[0]*-1),k&&m&&(S[1]=S[1]*-1),S}function mxt(l){const s=l.includes("right")||l.includes("left"),u=l.includes("bottom")||l.includes("top"),h=l.includes("left"),g=l.includes("top");return{isHorizontal:s,isVertical:u,affectsX:h,affectsY:g}}function x9(l,s){return Math.max(0,s-l)}function k9(l,s){return Math.max(0,l-s)}function ffe(l,s,u){return Math.max(0,s-l,l-u)}function wxt(l,s){return l?!s:s}function sln(l,s,u,h,g,m,p,k){let{affectsX:S,affectsY:C}=s;const{isHorizontal:N,isVertical:_}=s,P=N&&_,{xSnapped:R,ySnapped:q}=u,{minWidth:F,maxWidth:X,minHeight:J,maxHeight:ee}=h,{x:te,y:ie,width:oe,height:se,aspectRatio:ge}=l;let Ne=Math.floor(N?R-l.pointerX:0),qe=Math.floor(_?q-l.pointerY:0);const Ke=oe+(S?-Ne:Ne),Le=se+(C?-qe:qe),we=-m[0]*oe,Z=-m[1]*se;let pe=ffe(Ke,F,X),Re=ffe(Le,J,ee);if(p){let Te=0,ye=0;S&&Ne<0?Te=x9(te+Ne+we,p[0][0]):!S&&Ne>0&&(Te=k9(te+Ke+we,p[1][0])),C&&qe<0?ye=x9(ie+qe+Z,p[0][1]):!C&&qe>0&&(ye=k9(ie+Le+Z,p[1][1])),pe=Math.max(pe,Te),Re=Math.max(Re,ye)}if(k){let Te=0,ye=0;S&&Ne>0?Te=k9(te+Ne,k[0][0]):!S&&Ne<0&&(Te=x9(te+Ke,k[1][0])),C&&qe>0?ye=k9(ie+qe,k[0][1]):!C&&qe<0&&(ye=x9(ie+Le,k[1][1])),pe=Math.max(pe,Te),Re=Math.max(Re,ye)}if(g){if(N){const Te=ffe(Ke/ge,J,ee)*ge;if(pe=Math.max(pe,Te),p){let ye=0;!S&&!C||S&&!C&&P?ye=k9(ie+Z+Ke/ge,p[1][1])*ge:ye=x9(ie+Z+(S?Ne:-Ne)/ge,p[0][1])*ge,pe=Math.max(pe,ye)}if(k){let ye=0;!S&&!C||S&&!C&&P?ye=x9(ie+Ke/ge,k[1][1])*ge:ye=k9(ie+(S?Ne:-Ne)/ge,k[0][1])*ge,pe=Math.max(pe,ye)}}if(_){const Te=ffe(Le*ge,F,X)/ge;if(Re=Math.max(Re,Te),p){let ye=0;!S&&!C||C&&!S&&P?ye=k9(te+Le*ge+we,p[1][0])/ge:ye=x9(te+(C?qe:-qe)*ge+we,p[0][0])/ge,Re=Math.max(Re,ye)}if(k){let ye=0;!S&&!C||C&&!S&&P?ye=x9(te+Le*ge,k[1][0])/ge:ye=k9(te+(C?qe:-qe)*ge,k[0][0])/ge,Re=Math.max(Re,ye)}}}qe=qe+(qe<0?Re:-Re),Ne=Ne+(Ne<0?pe:-pe),g&&(P?Ke>Le*ge?qe=(wxt(S,C)?-Ne:Ne)/ge:Ne=(wxt(S,C)?-qe:qe)*ge:N?(qe=Ne/ge,C=S):(Ne=qe*ge,S=C));const he=S?te+Ne:te,Ee=C?ie+qe:ie;return{width:oe+(S?-Ne:Ne),height:se+(C?-qe:qe),x:m[0]*Ne*(S?-1:1)+he,y:m[1]*qe*(C?-1:1)+Ee}}const Okt={width:0,height:0,x:0,y:0},oln={...Okt,pointerX:0,pointerY:0,aspectRatio:1};function cln(l){return[[0,0],[l.measured.width,l.measured.height]]}function lln(l,s,u){const h=s.position.x+l.position.x,g=s.position.y+l.position.y,m=l.measured.width??0,p=l.measured.height??0,k=u[0]*m,S=u[1]*p;return[[h-k,g-S],[h+m-k,g+p-S]]}function uln({domNode:l,nodeId:s,getStoreItems:u,onChange:h,onEnd:g}){const m=Yb(l);let p={controlDirection:mxt("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function k({controlPosition:C,boundaries:N,keepAspectRatio:_,resizeDirection:P,onResizeStart:R,onResize:q,onResizeEnd:F,shouldResize:X}){let J={...Okt},ee={...oln};p={boundaries:N,resizeDirection:P,keepAspectRatio:_,controlDirection:mxt(C)};let te,ie=null,oe=[],se,ge,Ne,qe=!1;const Ke=D4t().on("start",Le=>{const{nodeLookup:we,transform:Z,snapGrid:pe,snapToGrid:Re,nodeOrigin:he,paneDomNode:Ee}=u();if(te=we.get(s),!te)return;ie=(Ee==null?void 0:Ee.getBoundingClientRect())??null;const{xSnapped:Te,ySnapped:ye}=nX(Le.sourceEvent,{transform:Z,snapGrid:pe,snapToGrid:Re,containerBounds:ie});J={width:te.measured.width??0,height:te.measured.height??0,x:te.position.x??0,y:te.position.y??0},ee={...J,pointerX:Te,pointerY:ye,aspectRatio:J.width/J.height},se=void 0,te.parentId&&(te.extent==="parent"||te.expandParent)&&(se=we.get(te.parentId),ge=se&&te.extent==="parent"?cln(se):void 0),oe=[],Ne=void 0;for(const[ft,Ce]of we)if(Ce.parentId===s&&(oe.push({id:ft,position:{...Ce.position},extent:Ce.extent}),Ce.extent==="parent"||Ce.expandParent)){const We=lln(Ce,te,Ce.origin??he);Ne?Ne=[[Math.min(We[0][0],Ne[0][0]),Math.min(We[0][1],Ne[0][1])],[Math.max(We[1][0],Ne[1][0]),Math.max(We[1][1],Ne[1][1])]]:Ne=We}R==null||R(Le,{...J})}).on("drag",Le=>{const{transform:we,snapGrid:Z,snapToGrid:pe,nodeOrigin:Re}=u(),he=nX(Le.sourceEvent,{transform:we,snapGrid:Z,snapToGrid:pe,containerBounds:ie}),Ee=[];if(!te)return;const{x:Te,y:ye,width:ft,height:Ce}=J,We={},gt=te.origin??Re,{width:Ot,height:dt,x:cn,y:dn}=sln(ee,p.controlDirection,he,p.boundaries,p.keepAspectRatio,gt,ge,Ne),wn=Ot!==ft,ni=dt!==Ce,nr=cn!==Te&&wn,ii=dn!==ye&&ni;if(!nr&&!ii&&!wn&&!ni)return;if((nr||ii||gt[0]===1||gt[1]===1)&&(We.x=nr?cn:J.x,We.y=ii?dn:J.y,J.x=We.x,J.y=We.y,oe.length>0)){const xo=cn-Te,qr=dn-ye;for(const Nn of oe)Nn.position={x:Nn.position.x-xo+gt[0]*(Ot-ft),y:Nn.position.y-qr+gt[1]*(dt-Ce)},Ee.push(Nn)}if((wn||ni)&&(We.width=wn&&(!p.resizeDirection||p.resizeDirection==="horizontal")?Ot:J.width,We.height=ni&&(!p.resizeDirection||p.resizeDirection==="vertical")?dt:J.height,J.width=We.width,J.height=We.height),se&&te.expandParent){const xo=gt[0]*(We.width??0);We.x&&We.x<xo&&(J.x=xo,ee.x=ee.x-(We.x-xo));const qr=gt[1]*(We.height??0);We.y&&We.y<qr&&(J.y=qr,ee.y=ee.y-(We.y-qr))}const ji=rln({width:J.width,prevWidth:ft,height:J.height,prevHeight:Ce,affectsX:p.controlDirection.affectsX,affectsY:p.controlDirection.affectsY}),Ti={...J,direction:ji};(X==null?void 0:X(Le,Ti))!==!1&&(qe=!0,q==null||q(Le,Ti),h(We,Ee))}).on("end",Le=>{qe&&(F==null||F(Le,{...J}),g==null||g({...J}),qe=!1)});m.call(Ke)}function S(){m.on(".drag",null)}return{update:k,destroy:S}}var KEe={exports:{}},YEe={},ZEe={exports:{}},eCe={};/**
 * @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 vxt;function aln(){if(vxt)return eCe;vxt=1;var l=zX();function s(_,P){return _===P&&(_!==0||1/_===1/P)||_!==_&&P!==P}var u=typeof Object.is=="function"?Object.is:s,h=l.useState,g=l.useEffect,m=l.useLayoutEffect,p=l.useDebugValue;function k(_,P){var R=P(),q=h({inst:{value:R,getSnapshot:P}}),F=q[0].inst,X=q[1];return m(function(){F.value=R,F.getSnapshot=P,S(F)&&X({inst:F})},[_,R,P]),g(function(){return S(F)&&X({inst:F}),_(function(){S(F)&&X({inst:F})})},[_]),p(R),R}function S(_){var P=_.getSnapshot;_=_.value;try{var R=P();return!u(_,R)}catch{return!0}}function C(_,P){return P()}var N=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?C:k;return eCe.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:N,eCe}var yxt;function fln(){return yxt||(yxt=1,ZEe.exports=aln()),ZEe.exports}/**
 * @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 xxt;function hln(){if(xxt)return YEe;xxt=1;var l=zX(),s=fln();function u(C,N){return C===N&&(C!==0||1/C===1/N)||C!==C&&N!==N}var h=typeof Object.is=="function"?Object.is:u,g=s.useSyncExternalStore,m=l.useRef,p=l.useEffect,k=l.useMemo,S=l.useDebugValue;return YEe.useSyncExternalStoreWithSelector=function(C,N,_,P,R){var q=m(null);if(q.current===null){var F={hasValue:!1,value:null};q.current=F}else F=q.current;q=k(function(){function J(se){if(!ee){if(ee=!0,te=se,se=P(se),R!==void 0&&F.hasValue){var ge=F.value;if(R(ge,se))return ie=ge}return ie=se}if(ge=ie,h(te,se))return ge;var Ne=P(se);return R!==void 0&&R(ge,Ne)?(te=se,ge):(te=se,ie=Ne)}var ee=!1,te,ie,oe=_===void 0?null:_;return[function(){return J(N())},oe===null?void 0:function(){return J(oe())}]},[N,_,P,R]);var X=g(C,q[0],q[1]);return p(function(){F.hasValue=!0,F.value=X},[X]),S(X),X},YEe}var kxt;function dln(){return kxt||(kxt=1,KEe.exports=hln()),KEe.exports}var gln=dln();const pln=fAe(gln),bln={},Oxt=l=>{let s;const u=new Set,h=(N,_)=>{const P=typeof N=="function"?N(s):N;if(!Object.is(P,s)){const R=s;s=_??(typeof P!="object"||P===null)?P:Object.assign({},s,P),u.forEach(q=>q(s,R))}},g=()=>s,S={setState:h,getState:g,getInitialState:()=>C,subscribe:N=>(u.add(N),()=>u.delete(N)),destroy:()=>{(bln?"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."),u.clear()}},C=s=l(h,g,S);return S},mln=l=>l?Oxt(l):Oxt,{useDebugValue:wln}=XV,{useSyncExternalStoreWithSelector:vln}=pln,yln=l=>l;function Skt(l,s=yln,u){const h=vln(l.subscribe,l.getState,l.getServerState||l.getInitialState,s,u);return wln(h),h}const Sxt=(l,s)=>{const u=mln(l),h=(g,m=s)=>Skt(u,g,m);return Object.assign(h,u),h},xln=(l,s)=>l?Sxt(l,s):Sxt;function na(l,s){if(Object.is(l,s))return!0;if(typeof l!="object"||l===null||typeof s!="object"||s===null)return!1;if(l instanceof Map&&s instanceof Map){if(l.size!==s.size)return!1;for(const[h,g]of l)if(!Object.is(g,s.get(h)))return!1;return!0}if(l instanceof Set&&s instanceof Set){if(l.size!==s.size)return!1;for(const h of l)if(!s.has(h))return!1;return!0}const u=Object.keys(l);if(u.length!==Object.keys(s).length)return!1;for(const h of u)if(!Object.prototype.hasOwnProperty.call(s,h)||!Object.is(l[h],s[h]))return!1;return!0}w4t();const ude=ue.createContext(null),kln=ude.Provider,jkt=t5.error001();function ec(l,s){const u=ue.useContext(ude);if(u===null)throw new Error(jkt);return Skt(u,l,s)}function ia(){const l=ue.useContext(ude);if(l===null)throw new Error(jkt);return ue.useMemo(()=>({getState:l.getState,setState:l.setState,subscribe:l.subscribe}),[l])}const jxt={display:"none"},Oln={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Tkt="react-flow__node-desc",Ekt="react-flow__edge-desc",Sln="react-flow__aria-live",jln=l=>l.ariaLiveMessage,Tln=l=>l.ariaLabelConfig;function Eln({rfId:l}){const s=ec(jln);return O.jsx("div",{id:`${Sln}-${l}`,"aria-live":"assertive","aria-atomic":"true",style:Oln,children:s})}function Cln({rfId:l,disableKeyboardA11y:s}){const u=ec(Tln);return O.jsxs(O.Fragment,{children:[O.jsx("div",{id:`${Tkt}-${l}`,style:jxt,children:s?u["node.a11yDescription.default"]:u["node.a11yDescription.keyboardDisabled"]}),O.jsx("div",{id:`${Ekt}-${l}`,style:jxt,children:u["edge.a11yDescription.default"]}),!s&&O.jsx(Eln,{rfId:l})]})}const ade=ue.forwardRef(({position:l="top-left",children:s,className:u,style:h,...g},m)=>{const p=`${l}`.split("-");return O.jsx("div",{className:fh(["react-flow__panel",u,...p]),style:h,ref:m,...g,children:s})});ade.displayName="Panel";function Mln({proOptions:l,position:s="bottom-right"}){return l!=null&&l.hideAttribution?null:O.jsx(ade,{position:s,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:O.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const Aln=l=>{const s=[],u=[];for(const[,h]of l.nodeLookup)h.selected&&s.push(h.internals.userNode);for(const[,h]of l.edgeLookup)h.selected&&u.push(h);return{selectedNodes:s,selectedEdges:u}},hfe=l=>l.id;function Nln(l,s){return na(l.selectedNodes.map(hfe),s.selectedNodes.map(hfe))&&na(l.selectedEdges.map(hfe),s.selectedEdges.map(hfe))}function _ln({onSelectionChange:l}){const s=ia(),{selectedNodes:u,selectedEdges:h}=ec(Aln,Nln);return ue.useEffect(()=>{const g={nodes:u,edges:h};l==null||l(g),s.getState().onSelectionChangeHandlers.forEach(m=>m(g))},[u,h,l]),null}const Dln=l=>!!l.onSelectionChangeHandlers;function Lln({onSelectionChange:l}){const s=ec(Dln);return l||s?O.jsx(_ln,{onSelectionChange:l}):null}const Ckt=[0,0],Pln={x:0,y:0,zoom:1},Iln=["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"],Txt=[...Iln,"rfId"],Rln=l=>({setNodes:l.setNodes,setEdges:l.setEdges,setMinZoom:l.setMinZoom,setMaxZoom:l.setMaxZoom,setTranslateExtent:l.setTranslateExtent,setNodeExtent:l.setNodeExtent,reset:l.reset,setDefaultNodesAndEdges:l.setDefaultNodesAndEdges}),Ext={translateExtent:bX,nodeOrigin:Ckt,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function $ln(l){const{setNodes:s,setEdges:u,setMinZoom:h,setMaxZoom:g,setTranslateExtent:m,setNodeExtent:p,reset:k,setDefaultNodesAndEdges:S}=ec(Rln,na),C=ia();ue.useEffect(()=>(S(l.defaultNodes,l.defaultEdges),()=>{N.current=Ext,k()}),[]);const N=ue.useRef(Ext);return ue.useEffect(()=>{for(const _ of Txt){const P=l[_],R=N.current[_];P!==R&&(typeof l[_]>"u"||(_==="nodes"?s(P):_==="edges"?u(P):_==="minZoom"?h(P):_==="maxZoom"?g(P):_==="translateExtent"?m(P):_==="nodeExtent"?p(P):_==="ariaLabelConfig"?C.setState({ariaLabelConfig:kcn(P)}):_==="fitView"?C.setState({fitViewQueued:P}):_==="fitViewOptions"?C.setState({fitViewOptions:P}):C.setState({[_]:P})))}N.current=l},Txt.map(_=>l[_])),null}function Cxt(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function Bln(l){var h;const[s,u]=ue.useState(l==="system"?null:l);return ue.useEffect(()=>{if(l!=="system"){u(l);return}const g=Cxt(),m=()=>u(g!=null&&g.matches?"dark":"light");return m(),g==null||g.addEventListener("change",m),()=>{g==null||g.removeEventListener("change",m)}},[l]),s!==null?s:(h=Cxt())!=null&&h.matches?"dark":"light"}const Mxt=typeof document<"u"?document:null;function vX(l=null,s={target:Mxt,actInsideInputWithModifier:!0}){const[u,h]=ue.useState(!1),g=ue.useRef(!1),m=ue.useRef(new Set([])),[p,k]=ue.useMemo(()=>{if(l!==null){const C=(Array.isArray(l)?l:[l]).filter(_=>typeof _=="string").map(_=>_.replace("+",`
`).replace(`

`,`
+`).split(`
`)),N=C.reduce((_,P)=>_.concat(...P),[]);return[C,N]}return[[],[]]},[l]);return ue.useEffect(()=>{const S=(s==null?void 0:s.target)??Mxt,C=(s==null?void 0:s.actInsideInputWithModifier)??!0;if(l!==null){const N=R=>{var X,J;if(g.current=R.ctrlKey||R.metaKey||R.shiftKey||R.altKey,(!g.current||g.current&&!C)&&ckt(R))return!1;const F=Nxt(R.code,k);if(m.current.add(R[F]),Axt(p,m.current,!1)){const ee=((J=(X=R.composedPath)==null?void 0:X.call(R))==null?void 0:J[0])||R.target,te=(ee==null?void 0:ee.nodeName)==="BUTTON"||(ee==null?void 0:ee.nodeName)==="A";s.preventDefault!==!1&&(g.current||!te)&&R.preventDefault(),h(!0)}},_=R=>{const q=Nxt(R.code,k);Axt(p,m.current,!0)?(h(!1),m.current.clear()):m.current.delete(R[q]),R.key==="Meta"&&m.current.clear(),g.current=!1},P=()=>{m.current.clear(),h(!1)};return S==null||S.addEventListener("keydown",N),S==null||S.addEventListener("keyup",_),window.addEventListener("blur",P),window.addEventListener("contextmenu",P),()=>{S==null||S.removeEventListener("keydown",N),S==null||S.removeEventListener("keyup",_),window.removeEventListener("blur",P),window.removeEventListener("contextmenu",P)}}},[l,h]),u}function Axt(l,s,u){return l.filter(h=>u||h.length===s.size).some(h=>h.every(g=>s.has(g)))}function Nxt(l,s){return s.includes(l)?"code":"key"}const zln=()=>{const l=ia();return ue.useMemo(()=>({zoomIn:s=>{const{panZoom:u}=l.getState();return u?u.scaleBy(1.2,{duration:s==null?void 0:s.duration}):Promise.resolve(!1)},zoomOut:s=>{const{panZoom:u}=l.getState();return u?u.scaleBy(1/1.2,{duration:s==null?void 0:s.duration}):Promise.resolve(!1)},zoomTo:(s,u)=>{const{panZoom:h}=l.getState();return h?h.scaleTo(s,{duration:u==null?void 0:u.duration}):Promise.resolve(!1)},getZoom:()=>l.getState().transform[2],setViewport:async(s,u)=>{const{transform:[h,g,m],panZoom:p}=l.getState();return p?(await p.setViewport({x:s.x??h,y:s.y??g,zoom:s.zoom??m},u),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[s,u,h]=l.getState().transform;return{x:s,y:u,zoom:h}},setCenter:async(s,u,h)=>l.getState().setCenter(s,u,h),fitBounds:async(s,u)=>{const{width:h,height:g,minZoom:m,maxZoom:p,panZoom:k}=l.getState(),S=xAe(s,h,g,m,p,(u==null?void 0:u.padding)??.1);return k?(await k.setViewport(S,{duration:u==null?void 0:u.duration,ease:u==null?void 0:u.ease,interpolate:u==null?void 0:u.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(s,u={})=>{const{transform:h,snapGrid:g,snapToGrid:m,domNode:p}=l.getState();if(!p)return s;const{x:k,y:S}=p.getBoundingClientRect(),C={x:s.x-k,y:s.y-S},N=u.snapGrid??g,_=u.snapToGrid??m;return UX(C,h,_,N)},flowToScreenPosition:s=>{const{transform:u,domNode:h}=l.getState();if(!h)return s;const{x:g,y:m}=h.getBoundingClientRect(),p=vhe(s,u);return{x:p.x+g,y:p.y+m}}}),[])};function Mkt(l,s){const u=[],h=new Map,g=[];for(const m of l)if(m.type==="add"){g.push(m);continue}else if(m.type==="remove"||m.type==="replace")h.set(m.id,[m]);else{const p=h.get(m.id);p?p.push(m):h.set(m.id,[m])}for(const m of s){const p=h.get(m.id);if(!p){u.push(m);continue}if(p[0].type==="remove")continue;if(p[0].type==="replace"){u.push({...p[0].item});continue}const k={...m};for(const S of p)Fln(S,k);u.push(k)}return g.length&&g.forEach(m=>{m.index!==void 0?u.splice(m.index,0,{...m.item}):u.push({...m.item})}),u}function Fln(l,s){switch(l.type){case"select":{s.selected=l.selected;break}case"position":{typeof l.position<"u"&&(s.position=l.position),typeof l.dragging<"u"&&(s.dragging=l.dragging);break}case"dimensions":{typeof l.dimensions<"u"&&(s.measured={...l.dimensions},l.setAttributes&&((l.setAttributes===!0||l.setAttributes==="width")&&(s.width=l.dimensions.width),(l.setAttributes===!0||l.setAttributes==="height")&&(s.height=l.dimensions.height))),typeof l.resizing=="boolean"&&(s.resizing=l.resizing);break}}}function Akt(l,s){return Mkt(l,s)}function Nkt(l,s){return Mkt(l,s)}function wM(l,s){return{id:l,type:"select",selected:s}}function AI(l,s=new Set,u=!1){const h=[];for(const[g,m]of l){const p=s.has(g);!(m.selected===void 0&&!p)&&m.selected!==p&&(u&&(m.selected=p),h.push(wM(m.id,p)))}return h}function _xt({items:l=[],lookup:s}){var g;const u=[],h=new Map(l.map(m=>[m.id,m]));for(const[m,p]of l.entries()){const k=s.get(p.id),S=((g=k==null?void 0:k.internals)==null?void 0:g.userNode)??k;S!==void 0&&S!==p&&u.push({id:p.id,item:p,type:"replace"}),S===void 0&&u.push({item:p,type:"add",index:m})}for(const[m]of s)h.get(m)===void 0&&u.push({id:m,type:"remove"});return u}function Dxt(l){return{id:l.id,type:"remove"}}const Lxt=l=>hcn(l),qln=l=>Z4t(l);function _kt(l){return ue.forwardRef(l)}const Hln=typeof window<"u"?ue.useLayoutEffect:ue.useEffect;function Pxt(l){const[s,u]=ue.useState(BigInt(0)),[h]=ue.useState(()=>Qln(()=>u(g=>g+BigInt(1))));return Hln(()=>{const g=h.get();g.length&&(l(g),h.reset())},[s]),h}function Qln(l){let s=[];return{get:()=>s,reset:()=>{s=[]},push:u=>{s.push(u),l()}}}const Dkt=ue.createContext(null);function Gln({children:l}){const s=ia(),u=ue.useCallback(k=>{const{nodes:S=[],setNodes:C,hasDefaultNodes:N,onNodesChange:_,nodeLookup:P,fitViewQueued:R,onNodesChangeMiddlewareMap:q}=s.getState();let F=S;for(const J of k)F=typeof J=="function"?J(F):J;let X=_xt({items:F,lookup:P});for(const J of q.values())X=J(X);N&&C(F),X.length>0?_==null||_(X):R&&window.requestAnimationFrame(()=>{const{fitViewQueued:J,nodes:ee,setNodes:te}=s.getState();J&&te(ee)})},[]),h=Pxt(u),g=ue.useCallback(k=>{const{edges:S=[],setEdges:C,hasDefaultEdges:N,onEdgesChange:_,edgeLookup:P}=s.getState();let R=S;for(const q of k)R=typeof q=="function"?q(R):q;N?C(R):_&&_(_xt({items:R,lookup:P}))},[]),m=Pxt(g),p=ue.useMemo(()=>({nodeQueue:h,edgeQueue:m}),[]);return O.jsx(Dkt.Provider,{value:p,children:l})}function Uln(){const l=ue.useContext(Dkt);if(!l)throw new Error("useBatchContext must be used within a BatchProvider");return l}const Jln=l=>!!l.panZoom;function JX(){const l=zln(),s=ia(),u=Uln(),h=ec(Jln),g=ue.useMemo(()=>{const m=_=>s.getState().nodeLookup.get(_),p=_=>{u.nodeQueue.push(_)},k=_=>{u.edgeQueue.push(_)},S=_=>{var J,ee;const{nodeLookup:P,nodeOrigin:R}=s.getState(),q=Lxt(_)?_:P.get(_.id),F=q.parentId?skt(q.position,q.measured,q.parentId,P,R):q.position,X={...q,position:F,width:((J=q.measured)==null?void 0:J.width)??q.width,height:((ee=q.measured)==null?void 0:ee.height)??q.height};return KI(X)},C=(_,P,R={replace:!1})=>{p(q=>q.map(F=>{if(F.id===_){const X=typeof P=="function"?P(F):P;return R.replace&&Lxt(X)?X:{...F,...X}}return F}))},N=(_,P,R={replace:!1})=>{k(q=>q.map(F=>{if(F.id===_){const X=typeof P=="function"?P(F):P;return R.replace&&qln(X)?X:{...F,...X}}return F}))};return{getNodes:()=>s.getState().nodes.map(_=>({..._})),getNode:_=>{var P;return(P=m(_))==null?void 0:P.internals.userNode},getInternalNode:m,getEdges:()=>{const{edges:_=[]}=s.getState();return _.map(P=>({...P}))},getEdge:_=>s.getState().edgeLookup.get(_),setNodes:p,setEdges:k,addNodes:_=>{const P=Array.isArray(_)?_:[_];u.nodeQueue.push(R=>[...R,...P])},addEdges:_=>{const P=Array.isArray(_)?_:[_];u.edgeQueue.push(R=>[...R,...P])},toObject:()=>{const{nodes:_=[],edges:P=[],transform:R}=s.getState(),[q,F,X]=R;return{nodes:_.map(J=>({...J})),edges:P.map(J=>({...J})),viewport:{x:q,y:F,zoom:X}}},deleteElements:async({nodes:_=[],edges:P=[]})=>{const{nodes:R,edges:q,onNodesDelete:F,onEdgesDelete:X,triggerNodeChanges:J,triggerEdgeChanges:ee,onDelete:te,onBeforeDelete:ie}=s.getState(),{nodes:oe,edges:se}=await mcn({nodesToRemove:_,edgesToRemove:P,nodes:R,edges:q,onBeforeDelete:ie}),ge=se.length>0,Ne=oe.length>0;if(ge){const qe=se.map(Dxt);X==null||X(se),ee(qe)}if(Ne){const qe=oe.map(Dxt);F==null||F(oe),J(qe)}return(Ne||ge)&&(te==null||te({nodes:oe,edges:se})),{deletedNodes:oe,deletedEdges:se}},getIntersectingNodes:(_,P=!0,R)=>{const q=oxt(_),F=q?_:S(_),X=R!==void 0;return F?(R||s.getState().nodes).filter(J=>{const ee=s.getState().nodeLookup.get(J.id);if(ee&&!q&&(J.id===_.id||!ee.internals.positionAbsolute))return!1;const te=KI(X?J:ee),ie=mX(te,F);return P&&ie>0||ie>=te.width*te.height||ie>=F.width*F.height}):[]},isNodeIntersecting:(_,P,R=!0)=>{const F=oxt(_)?_:S(_);if(!F)return!1;const X=mX(F,P);return R&&X>0||X>=P.width*P.height||X>=F.width*F.height},updateNode:C,updateNodeData:(_,P,R={replace:!1})=>{C(_,q=>{const F=typeof P=="function"?P(q):P;return R.replace?{...q,data:F}:{...q,data:{...q.data,...F}}},R)},updateEdge:N,updateEdgeData:(_,P,R={replace:!1})=>{N(_,q=>{const F=typeof P=="function"?P(q):P;return R.replace?{...q,data:F}:{...q,data:{...q.data,...F}}},R)},getNodesBounds:_=>{const{nodeLookup:P,nodeOrigin:R}=s.getState();return dcn(_,{nodeLookup:P,nodeOrigin:R})},getHandleConnections:({type:_,id:P,nodeId:R})=>{var q;return Array.from(((q=s.getState().connectionLookup.get(`${R}-${_}${P?`-${P}`:""}`))==null?void 0:q.values())??[])},getNodeConnections:({type:_,handleId:P,nodeId:R})=>{var q;return Array.from(((q=s.getState().connectionLookup.get(`${R}${_?P?`-${_}-${P}`:`-${_}`:""}`))==null?void 0:q.values())??[])},fitView:async _=>{const P=s.getState().fitViewResolver??xcn();return s.setState({fitViewQueued:!0,fitViewOptions:_,fitViewResolver:P}),u.nodeQueue.push(R=>[...R]),P.promise}}},[]);return ue.useMemo(()=>({...g,...l,viewportInitialized:h}),[h])}const Ixt=l=>l.selected,Vln=typeof window<"u"?window:void 0;function Xln({deleteKeyCode:l,multiSelectionKeyCode:s}){const u=ia(),{deleteElements:h}=JX(),g=vX(l,{actInsideInputWithModifier:!1}),m=vX(s,{target:Vln});ue.useEffect(()=>{if(g){const{edges:p,nodes:k}=u.getState();h({nodes:k.filter(Ixt),edges:p.filter(Ixt)}),u.setState({nodesSelectionActive:!1})}},[g]),ue.useEffect(()=>{u.setState({multiSelectionActive:m})},[m])}function Wln(l){const s=ia();ue.useEffect(()=>{const u=()=>{var g,m,p,k;if(!l.current||!(((m=(g=l.current).checkVisibility)==null?void 0:m.call(g))??!0))return!1;const h=kAe(l.current);(h.height===0||h.width===0)&&((k=(p=s.getState()).onError)==null||k.call(p,"004",t5.error004())),s.setState({width:h.width||500,height:h.height||500})};if(l.current){u(),window.addEventListener("resize",u);const h=new ResizeObserver(()=>u());return h.observe(l.current),()=>{window.removeEventListener("resize",u),h&&l.current&&h.unobserve(l.current)}}},[])}const fde={position:"absolute",width:"100%",height:"100%",top:0,left:0},Kln=l=>({userSelectionActive:l.userSelectionActive,lib:l.lib,connectionInProgress:l.connection.inProgress});function Yln({onPaneContextMenu:l,zoomOnScroll:s=!0,zoomOnPinch:u=!0,panOnScroll:h=!1,panOnScrollSpeed:g=.5,panOnScrollMode:m=_M.Free,zoomOnDoubleClick:p=!0,panOnDrag:k=!0,defaultViewport:S,translateExtent:C,minZoom:N,maxZoom:_,zoomActivationKeyCode:P,preventScrolling:R=!0,children:q,noWheelClassName:F,noPanClassName:X,onViewportChange:J,isControlledViewport:ee,paneClickDistance:te,selectionOnDrag:ie}){const oe=ia(),se=ue.useRef(null),{userSelectionActive:ge,lib:Ne,connectionInProgress:qe}=ec(Kln,na),Ke=vX(P),Le=ue.useRef();Wln(se);const we=ue.useCallback(Z=>{J==null||J({x:Z[0],y:Z[1],zoom:Z[2]}),ee||oe.setState({transform:Z})},[J,ee]);return ue.useEffect(()=>{if(se.current){Le.current=iln({domNode:se.current,minZoom:N,maxZoom:_,translateExtent:C,viewport:S,onDraggingChange:he=>oe.setState({paneDragging:he}),onPanZoomStart:(he,Ee)=>{const{onViewportChangeStart:Te,onMoveStart:ye}=oe.getState();ye==null||ye(he,Ee),Te==null||Te(Ee)},onPanZoom:(he,Ee)=>{const{onViewportChange:Te,onMove:ye}=oe.getState();ye==null||ye(he,Ee),Te==null||Te(Ee)},onPanZoomEnd:(he,Ee)=>{const{onViewportChangeEnd:Te,onMoveEnd:ye}=oe.getState();ye==null||ye(he,Ee),Te==null||Te(Ee)}});const{x:Z,y:pe,zoom:Re}=Le.current.getViewport();return oe.setState({panZoom:Le.current,transform:[Z,pe,Re],domNode:se.current.closest(".react-flow")}),()=>{var he;(he=Le.current)==null||he.destroy()}}},[]),ue.useEffect(()=>{var Z;(Z=Le.current)==null||Z.update({onPaneContextMenu:l,zoomOnScroll:s,zoomOnPinch:u,panOnScroll:h,panOnScrollSpeed:g,panOnScrollMode:m,zoomOnDoubleClick:p,panOnDrag:k,zoomActivationKeyPressed:Ke,preventScrolling:R,noPanClassName:X,userSelectionActive:ge,noWheelClassName:F,lib:Ne,onTransformChange:we,connectionInProgress:qe,selectionOnDrag:ie,paneClickDistance:te})},[l,s,u,h,g,m,p,k,Ke,R,X,ge,F,Ne,we,qe,ie,te]),O.jsx("div",{className:"react-flow__renderer",ref:se,style:fde,children:q})}const Zln=l=>({userSelectionActive:l.userSelectionActive,userSelectionRect:l.userSelectionRect});function eun(){const{userSelectionActive:l,userSelectionRect:s}=ec(Zln,na);return l&&s?O.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:s.width,height:s.height,transform:`translate(${s.x}px, ${s.y}px)`}}):null}const tCe=(l,s)=>u=>{u.target===s.current&&(l==null||l(u))},tun=l=>({userSelectionActive:l.userSelectionActive,elementsSelectable:l.elementsSelectable,connectionInProgress:l.connection.inProgress,dragging:l.paneDragging});function nun({isSelecting:l,selectionKeyPressed:s,selectionMode:u=XI.Full,panOnDrag:h,paneClickDistance:g,selectionOnDrag:m,onSelectionStart:p,onSelectionEnd:k,onPaneClick:S,onPaneContextMenu:C,onPaneScroll:N,onPaneMouseEnter:_,onPaneMouseMove:P,onPaneMouseLeave:R,children:q}){const F=ia(),{userSelectionActive:X,elementsSelectable:J,dragging:ee,connectionInProgress:te}=ec(tun,na),ie=J&&(l||X),oe=ue.useRef(null),se=ue.useRef(),ge=ue.useRef(new Set),Ne=ue.useRef(new Set),qe=ue.useRef(!1),Ke=Te=>{if(qe.current||te){qe.current=!1;return}S==null||S(Te),F.getState().resetSelectedElements(),F.setState({nodesSelectionActive:!1})},Le=Te=>{if(Array.isArray(h)&&(h!=null&&h.includes(2))){Te.preventDefault();return}C==null||C(Te)},we=N?Te=>N(Te):void 0,Z=Te=>{qe.current&&(Te.stopPropagation(),qe.current=!1)},pe=Te=>{var dt,cn;const{domNode:ye}=F.getState();if(se.current=ye==null?void 0:ye.getBoundingClientRect(),!se.current)return;const ft=Te.target===oe.current;if(!ft&&!!Te.target.closest(".nokey")||!l||!(m&&ft||s)||Te.button!==0||!Te.isPrimary)return;(cn=(dt=Te.target)==null?void 0:dt.setPointerCapture)==null||cn.call(dt,Te.pointerId),qe.current=!1;const{x:gt,y:Ot}=jy(Te.nativeEvent,se.current);F.setState({userSelectionRect:{width:0,height:0,startX:gt,startY:Ot,x:gt,y:Ot}}),ft||(Te.stopPropagation(),Te.preventDefault())},Re=Te=>{const{userSelectionRect:ye,transform:ft,nodeLookup:Ce,edgeLookup:We,connectionLookup:gt,triggerNodeChanges:Ot,triggerEdgeChanges:dt,defaultEdgeOptions:cn,resetSelectedElements:dn}=F.getState();if(!se.current||!ye)return;const{x:wn,y:ni}=jy(Te.nativeEvent,se.current),{startX:nr,startY:ii}=ye;if(!qe.current){const qr=s?0:g;if(Math.hypot(wn-nr,ni-ii)<=qr)return;dn(),p==null||p(Te)}qe.current=!0;const ji={startX:nr,startY:ii,x:wn<nr?wn:nr,y:ni<ii?ni:ii,width:Math.abs(wn-nr),height:Math.abs(ni-ii)},Ti=ge.current,as=Ne.current;ge.current=new Set(yAe(Ce,ji,ft,u===XI.Partial,!0).map(qr=>qr.id)),Ne.current=new Set;const xo=(cn==null?void 0:cn.selectable)??!0;for(const qr of ge.current){const Nn=gt.get(qr);if(Nn)for(const{edgeId:Ps}of Nn.values()){const ms=We.get(Ps);ms&&(ms.selectable??xo)&&Ne.current.add(Ps)}}if(!cxt(Ti,ge.current)){const qr=AI(Ce,ge.current,!0);Ot(qr)}if(!cxt(as,Ne.current)){const qr=AI(We,Ne.current);dt(qr)}F.setState({userSelectionRect:ji,userSelectionActive:!0,nodesSelectionActive:!1})},he=Te=>{var ye,ft;Te.button===0&&((ft=(ye=Te.target)==null?void 0:ye.releasePointerCapture)==null||ft.call(ye,Te.pointerId),!X&&Te.target===oe.current&&F.getState().userSelectionRect&&(Ke==null||Ke(Te)),F.setState({userSelectionActive:!1,userSelectionRect:null}),qe.current&&(k==null||k(Te),F.setState({nodesSelectionActive:ge.current.size>0})))},Ee=h===!0||Array.isArray(h)&&h.includes(0);return O.jsxs("div",{className:fh(["react-flow__pane",{draggable:Ee,dragging:ee,selection:l}]),onClick:ie?void 0:tCe(Ke,oe),onContextMenu:tCe(Le,oe),onWheel:tCe(we,oe),onPointerEnter:ie?void 0:_,onPointerMove:ie?Re:P,onPointerUp:ie?he:void 0,onPointerDownCapture:ie?pe:void 0,onClickCapture:ie?Z:void 0,onPointerLeave:R,ref:oe,style:fde,children:[q,O.jsx(eun,{})]})}function aMe({id:l,store:s,unselect:u=!1,nodeRef:h}){const{addSelectedNodes:g,unselectNodesAndEdges:m,multiSelectionActive:p,nodeLookup:k,onError:S}=s.getState(),C=k.get(l);if(!C){S==null||S("012",t5.error012(l));return}s.setState({nodesSelectionActive:!1}),C.selected?(u||C.selected&&p)&&(m({nodes:[C],edges:[]}),requestAnimationFrame(()=>{var N;return(N=h==null?void 0:h.current)==null?void 0:N.blur()})):g([l])}function Lkt({nodeRef:l,disabled:s=!1,noDragClassName:u,handleSelector:h,nodeId:g,isSelectable:m,nodeClickDistance:p}){const k=ia(),[S,C]=ue.useState(!1),N=ue.useRef();return ue.useEffect(()=>{N.current=Hcn({getStoreItems:()=>k.getState(),onNodeMouseDown:_=>{aMe({id:_,store:k,nodeRef:l})},onDragStart:()=>{C(!0)},onDragStop:()=>{C(!1)}})},[]),ue.useEffect(()=>{var _,P;if(s)(_=N.current)==null||_.destroy();else if(l.current)return(P=N.current)==null||P.update({noDragClassName:u,handleSelector:h,domNode:l.current,isSelectable:m,nodeId:g,nodeClickDistance:p}),()=>{var R;(R=N.current)==null||R.destroy()}},[u,h,s,m,l,g]),S}const iun=l=>s=>s.selected&&(s.draggable||l&&typeof s.draggable>"u");function Pkt(){const l=ia();return ue.useCallback(u=>{const{nodeExtent:h,snapToGrid:g,snapGrid:m,nodesDraggable:p,onError:k,updateNodePositions:S,nodeLookup:C,nodeOrigin:N}=l.getState(),_=new Map,P=iun(p),R=g?m[0]:5,q=g?m[1]:5,F=u.direction.x*R*u.factor,X=u.direction.y*q*u.factor;for(const[,J]of C){if(!P(J))continue;let ee={x:J.internals.positionAbsolute.x+F,y:J.internals.positionAbsolute.y+X};g&&(ee=GX(ee,m));const{position:te,positionAbsolute:ie}=ekt({nodeId:J.id,nextPosition:ee,nodeLookup:C,nodeExtent:h,nodeOrigin:N,onError:k});J.position=te,J.internals.positionAbsolute=ie,_.set(J.id,J)}S(_)},[])}const CAe=ue.createContext(null),run=CAe.Provider;CAe.Consumer;const Ikt=()=>ue.useContext(CAe),sun=l=>({connectOnClick:l.connectOnClick,noPanClassName:l.noPanClassName,rfId:l.rfId}),oun=(l,s,u)=>h=>{const{connectionClickStartHandle:g,connectionMode:m,connection:p}=h,{fromHandle:k,toHandle:S,isValid:C}=p,N=(S==null?void 0:S.nodeId)===l&&(S==null?void 0:S.id)===s&&(S==null?void 0:S.type)===u;return{connectingFrom:(k==null?void 0:k.nodeId)===l&&(k==null?void 0:k.id)===s&&(k==null?void 0:k.type)===u,connectingTo:N,clickConnecting:(g==null?void 0:g.nodeId)===l&&(g==null?void 0:g.id)===s&&(g==null?void 0:g.type)===u,isPossibleEndHandle:m===VI.Strict?(k==null?void 0:k.type)!==u:l!==(k==null?void 0:k.nodeId)||s!==(k==null?void 0:k.id),connectionInProcess:!!k,clickConnectionInProcess:!!g,valid:N&&C}};function cun({type:l="source",position:s=ir.Top,isValidConnection:u,isConnectable:h=!0,isConnectableStart:g=!0,isConnectableEnd:m=!0,id:p,onConnect:k,children:S,className:C,onMouseDown:N,onTouchStart:_,...P},R){var Re,he;const q=p||null,F=l==="target",X=ia(),J=Ikt(),{connectOnClick:ee,noPanClassName:te,rfId:ie}=ec(sun,na),{connectingFrom:oe,connectingTo:se,clickConnecting:ge,isPossibleEndHandle:Ne,connectionInProcess:qe,clickConnectionInProcess:Ke,valid:Le}=ec(oun(J,q,l),na);J||(he=(Re=X.getState()).onError)==null||he.call(Re,"010",t5.error010());const we=Ee=>{const{defaultEdgeOptions:Te,onConnect:ye,hasDefaultEdges:ft}=X.getState(),Ce={...Te,...Ee};if(ft){const{edges:We,setEdges:gt}=X.getState();gt(sMe(Ce,We))}ye==null||ye(Ce),k==null||k(Ce)},Z=Ee=>{if(!J)return;const Te=lkt(Ee.nativeEvent);if(g&&(Te&&Ee.button===0||!Te)){const ye=X.getState();uMe.onPointerDown(Ee.nativeEvent,{handleDomNode:Ee.currentTarget,autoPanOnConnect:ye.autoPanOnConnect,connectionMode:ye.connectionMode,connectionRadius:ye.connectionRadius,domNode:ye.domNode,nodeLookup:ye.nodeLookup,lib:ye.lib,isTarget:F,handleId:q,nodeId:J,flowId:ye.rfId,panBy:ye.panBy,cancelConnection:ye.cancelConnection,onConnectStart:ye.onConnectStart,onConnectEnd:ye.onConnectEnd,updateConnection:ye.updateConnection,onConnect:we,isValidConnection:u||ye.isValidConnection,getTransform:()=>X.getState().transform,getFromHandle:()=>X.getState().connection.fromHandle,autoPanSpeed:ye.autoPanSpeed,dragThreshold:ye.connectionDragThreshold})}Te?N==null||N(Ee):_==null||_(Ee)},pe=Ee=>{const{onClickConnectStart:Te,onClickConnectEnd:ye,connectionClickStartHandle:ft,connectionMode:Ce,isValidConnection:We,lib:gt,rfId:Ot,nodeLookup:dt,connection:cn}=X.getState();if(!J||!ft&&!g)return;if(!ft){Te==null||Te(Ee.nativeEvent,{nodeId:J,handleId:q,handleType:l}),X.setState({connectionClickStartHandle:{nodeId:J,type:l,id:q}});return}const dn=okt(Ee.target),wn=u||We,{connection:ni,isValid:nr}=uMe.isValid(Ee.nativeEvent,{handle:{nodeId:J,id:q,type:l},connectionMode:Ce,fromNodeId:ft.nodeId,fromHandleId:ft.id||null,fromType:ft.type,isValidConnection:wn,flowId:Ot,doc:dn,lib:gt,nodeLookup:dt});nr&&ni&&we(ni);const ii=structuredClone(cn);delete ii.inProgress,ii.toPosition=ii.toHandle?ii.toHandle.position:null,ye==null||ye(Ee,ii),X.setState({connectionClickStartHandle:null})};return O.jsx("div",{"data-handleid":q,"data-nodeid":J,"data-handlepos":s,"data-id":`${ie}-${J}-${q}-${l}`,className:fh(["react-flow__handle",`react-flow__handle-${s}`,"nodrag",te,C,{source:!F,target:F,connectable:h,connectablestart:g,connectableend:m,clickconnecting:ge,connectingfrom:oe,connectingto:se,valid:Le,connectionindicator:h&&(!qe||Ne)&&(qe||Ke?m:g)}]),onMouseDown:Z,onTouchStart:Z,onClick:ee?pe:void 0,ref:R,...P,children:S})}const ig=ue.memo(_kt(cun));function lun({data:l,isConnectable:s,sourcePosition:u=ir.Bottom}){return O.jsxs(O.Fragment,{children:[l==null?void 0:l.label,O.jsx(ig,{type:"source",position:u,isConnectable:s})]})}function uun({data:l,isConnectable:s,targetPosition:u=ir.Top,sourcePosition:h=ir.Bottom}){return O.jsxs(O.Fragment,{children:[O.jsx(ig,{type:"target",position:u,isConnectable:s}),l==null?void 0:l.label,O.jsx(ig,{type:"source",position:h,isConnectable:s})]})}function aun(){return null}function fun({data:l,isConnectable:s,targetPosition:u=ir.Top}){return O.jsxs(O.Fragment,{children:[O.jsx(ig,{type:"target",position:u,isConnectable:s}),l==null?void 0:l.label]})}const yhe={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},Rxt={input:lun,default:uun,output:fun,group:aun};function hun(l){var s,u,h,g;return l.internals.handleBounds===void 0?{width:l.width??l.initialWidth??((s=l.style)==null?void 0:s.width),height:l.height??l.initialHeight??((u=l.style)==null?void 0:u.height)}:{width:l.width??((h=l.style)==null?void 0:h.width),height:l.height??((g=l.style)==null?void 0:g.height)}}const dun=l=>{const{width:s,height:u,x:h,y:g}=QX(l.nodeLookup,{filter:m=>!!m.selected});return{width:Sy(s)?s:null,height:Sy(u)?u:null,userSelectionActive:l.userSelectionActive,transformString:`translate(${l.transform[0]}px,${l.transform[1]}px) scale(${l.transform[2]}) translate(${h}px,${g}px)`}};function gun({onSelectionContextMenu:l,noPanClassName:s,disableKeyboardA11y:u}){const h=ia(),{width:g,height:m,transformString:p,userSelectionActive:k}=ec(dun,na),S=Pkt(),C=ue.useRef(null);if(ue.useEffect(()=>{var P;u||(P=C.current)==null||P.focus({preventScroll:!0})},[u]),Lkt({nodeRef:C}),k||!g||!m)return null;const N=l?P=>{const R=h.getState().nodes.filter(q=>q.selected);l(P,R)}:void 0,_=P=>{Object.prototype.hasOwnProperty.call(yhe,P.key)&&(P.preventDefault(),S({direction:yhe[P.key],factor:P.shiftKey?4:1}))};return O.jsx("div",{className:fh(["react-flow__nodesselection","react-flow__container",s]),style:{transform:p},children:O.jsx("div",{ref:C,className:"react-flow__nodesselection-rect",onContextMenu:N,tabIndex:u?void 0:-1,onKeyDown:u?void 0:_,style:{width:g,height:m}})})}const $xt=typeof window<"u"?window:void 0,pun=l=>({nodesSelectionActive:l.nodesSelectionActive,userSelectionActive:l.userSelectionActive});function Rkt({children:l,onPaneClick:s,onPaneMouseEnter:u,onPaneMouseMove:h,onPaneMouseLeave:g,onPaneContextMenu:m,onPaneScroll:p,paneClickDistance:k,deleteKeyCode:S,selectionKeyCode:C,selectionOnDrag:N,selectionMode:_,onSelectionStart:P,onSelectionEnd:R,multiSelectionKeyCode:q,panActivationKeyCode:F,zoomActivationKeyCode:X,elementsSelectable:J,zoomOnScroll:ee,zoomOnPinch:te,panOnScroll:ie,panOnScrollSpeed:oe,panOnScrollMode:se,zoomOnDoubleClick:ge,panOnDrag:Ne,defaultViewport:qe,translateExtent:Ke,minZoom:Le,maxZoom:we,preventScrolling:Z,onSelectionContextMenu:pe,noWheelClassName:Re,noPanClassName:he,disableKeyboardA11y:Ee,onViewportChange:Te,isControlledViewport:ye}){const{nodesSelectionActive:ft,userSelectionActive:Ce}=ec(pun,na),We=vX(C,{target:$xt}),gt=vX(F,{target:$xt}),Ot=gt||Ne,dt=gt||ie,cn=N&&Ot!==!0,dn=We||Ce||cn;return Xln({deleteKeyCode:S,multiSelectionKeyCode:q}),O.jsx(Yln,{onPaneContextMenu:m,elementsSelectable:J,zoomOnScroll:ee,zoomOnPinch:te,panOnScroll:dt,panOnScrollSpeed:oe,panOnScrollMode:se,zoomOnDoubleClick:ge,panOnDrag:!We&&Ot,defaultViewport:qe,translateExtent:Ke,minZoom:Le,maxZoom:we,zoomActivationKeyCode:X,preventScrolling:Z,noWheelClassName:Re,noPanClassName:he,onViewportChange:Te,isControlledViewport:ye,paneClickDistance:k,selectionOnDrag:cn,children:O.jsxs(nun,{onSelectionStart:P,onSelectionEnd:R,onPaneClick:s,onPaneMouseEnter:u,onPaneMouseMove:h,onPaneMouseLeave:g,onPaneContextMenu:m,onPaneScroll:p,panOnDrag:Ot,isSelecting:!!dn,selectionMode:_,selectionKeyPressed:We,paneClickDistance:k,selectionOnDrag:cn,children:[l,ft&&O.jsx(gun,{onSelectionContextMenu:pe,noPanClassName:he,disableKeyboardA11y:Ee})]})})}Rkt.displayName="FlowRenderer";const bun=ue.memo(Rkt),mun=l=>s=>l?yAe(s.nodeLookup,{x:0,y:0,width:s.width,height:s.height},s.transform,!0).map(u=>u.id):Array.from(s.nodeLookup.keys());function wun(l){return ec(ue.useCallback(mun(l),[l]),na)}const vun=l=>l.updateNodeInternals;function yun(){const l=ec(vun),[s]=ue.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(u=>{const h=new Map;u.forEach(g=>{const m=g.target.getAttribute("data-id");h.set(m,{id:m,nodeElement:g.target,force:!0})}),l(h)}));return ue.useEffect(()=>()=>{s==null||s.disconnect()},[s]),s}function xun({node:l,nodeType:s,hasDimensions:u,resizeObserver:h}){const g=ia(),m=ue.useRef(null),p=ue.useRef(null),k=ue.useRef(l.sourcePosition),S=ue.useRef(l.targetPosition),C=ue.useRef(s),N=u&&!!l.internals.handleBounds;return ue.useEffect(()=>{m.current&&!l.hidden&&(!N||p.current!==m.current)&&(p.current&&(h==null||h.unobserve(p.current)),h==null||h.observe(m.current),p.current=m.current)},[N,l.hidden]),ue.useEffect(()=>()=>{p.current&&(h==null||h.unobserve(p.current),p.current=null)},[]),ue.useEffect(()=>{if(m.current){const _=C.current!==s,P=k.current!==l.sourcePosition,R=S.current!==l.targetPosition;(_||P||R)&&(C.current=s,k.current=l.sourcePosition,S.current=l.targetPosition,g.getState().updateNodeInternals(new Map([[l.id,{id:l.id,nodeElement:m.current,force:!0}]])))}},[l.id,s,l.sourcePosition,l.targetPosition]),m}function kun({id:l,onClick:s,onMouseEnter:u,onMouseMove:h,onMouseLeave:g,onContextMenu:m,onDoubleClick:p,nodesDraggable:k,elementsSelectable:S,nodesConnectable:C,nodesFocusable:N,resizeObserver:_,noDragClassName:P,noPanClassName:R,disableKeyboardA11y:q,rfId:F,nodeTypes:X,nodeClickDistance:J,onError:ee}){const{node:te,internals:ie,isParent:oe}=ec(wn=>{const ni=wn.nodeLookup.get(l),nr=wn.parentLookup.has(l);return{node:ni,internals:ni.internals,isParent:nr}},na);let se=te.type||"default",ge=(X==null?void 0:X[se])||Rxt[se];ge===void 0&&(ee==null||ee("003",t5.error003(se)),se="default",ge=(X==null?void 0:X.default)||Rxt.default);const Ne=!!(te.draggable||k&&typeof te.draggable>"u"),qe=!!(te.selectable||S&&typeof te.selectable>"u"),Ke=!!(te.connectable||C&&typeof te.connectable>"u"),Le=!!(te.focusable||N&&typeof te.focusable>"u"),we=ia(),Z=rkt(te),pe=xun({node:te,nodeType:se,hasDimensions:Z,resizeObserver:_}),Re=Lkt({nodeRef:pe,disabled:te.hidden||!Ne,noDragClassName:P,handleSelector:te.dragHandle,nodeId:l,isSelectable:qe,nodeClickDistance:J}),he=Pkt();if(te.hidden)return null;const Ee=yO(te),Te=hun(te),ye=qe||Ne||s||u||h||g,ft=u?wn=>u(wn,{...ie.userNode}):void 0,Ce=h?wn=>h(wn,{...ie.userNode}):void 0,We=g?wn=>g(wn,{...ie.userNode}):void 0,gt=m?wn=>m(wn,{...ie.userNode}):void 0,Ot=p?wn=>p(wn,{...ie.userNode}):void 0,dt=wn=>{const{selectNodesOnDrag:ni,nodeDragThreshold:nr}=we.getState();qe&&(!ni||!Ne||nr>0)&&aMe({id:l,store:we,nodeRef:pe}),s&&s(wn,{...ie.userNode})},cn=wn=>{if(!(ckt(wn.nativeEvent)||q)){if(X4t.includes(wn.key)&&qe){const ni=wn.key==="Escape";aMe({id:l,store:we,unselect:ni,nodeRef:pe})}else if(Ne&&te.selected&&Object.prototype.hasOwnProperty.call(yhe,wn.key)){wn.preventDefault();const{ariaLabelConfig:ni}=we.getState();we.setState({ariaLiveMessage:ni["node.a11yDescription.ariaLiveMessage"]({direction:wn.key.replace("Arrow","").toLowerCase(),x:~~ie.positionAbsolute.x,y:~~ie.positionAbsolute.y})}),he({direction:yhe[wn.key],factor:wn.shiftKey?4:1})}}},dn=()=>{var as;if(q||!((as=pe.current)!=null&&as.matches(":focus-visible")))return;const{transform:wn,width:ni,height:nr,autoPanOnNodeFocus:ii,setCenter:ji}=we.getState();if(!ii)return;yAe(new Map([[l,te]]),{x:0,y:0,width:ni,height:nr},wn,!0).length>0||ji(te.position.x+Ee.width/2,te.position.y+Ee.height/2,{zoom:wn[2]})};return O.jsx("div",{className:fh(["react-flow__node",`react-flow__node-${se}`,{[R]:Ne},te.className,{selected:te.selected,selectable:qe,parent:oe,draggable:Ne,dragging:Re}]),ref:pe,style:{zIndex:ie.z,transform:`translate(${ie.positionAbsolute.x}px,${ie.positionAbsolute.y}px)`,pointerEvents:ye?"all":"none",visibility:Z?"visible":"hidden",...te.style,...Te},"data-id":l,"data-testid":`rf__node-${l}`,onMouseEnter:ft,onMouseMove:Ce,onMouseLeave:We,onContextMenu:gt,onClick:dt,onDoubleClick:Ot,onKeyDown:Le?cn:void 0,tabIndex:Le?0:void 0,onFocus:Le?dn:void 0,role:te.ariaRole??(Le?"group":void 0),"aria-roledescription":"node","aria-describedby":q?void 0:`${Tkt}-${F}`,"aria-label":te.ariaLabel,...te.domAttributes,children:O.jsx(run,{value:l,children:O.jsx(ge,{id:l,data:te.data,type:se,positionAbsoluteX:ie.positionAbsolute.x,positionAbsoluteY:ie.positionAbsolute.y,selected:te.selected??!1,selectable:qe,draggable:Ne,deletable:te.deletable??!0,isConnectable:Ke,sourcePosition:te.sourcePosition,targetPosition:te.targetPosition,dragging:Re,dragHandle:te.dragHandle,zIndex:ie.z,parentId:te.parentId,...Ee})})})}var Oun=ue.memo(kun);const Sun=l=>({nodesDraggable:l.nodesDraggable,nodesConnectable:l.nodesConnectable,nodesFocusable:l.nodesFocusable,elementsSelectable:l.elementsSelectable,onError:l.onError});function $kt(l){const{nodesDraggable:s,nodesConnectable:u,nodesFocusable:h,elementsSelectable:g,onError:m}=ec(Sun,na),p=wun(l.onlyRenderVisibleElements),k=yun();return O.jsx("div",{className:"react-flow__nodes",style:fde,children:p.map(S=>O.jsx(Oun,{id:S,nodeTypes:l.nodeTypes,nodeExtent:l.nodeExtent,onClick:l.onNodeClick,onMouseEnter:l.onNodeMouseEnter,onMouseMove:l.onNodeMouseMove,onMouseLeave:l.onNodeMouseLeave,onContextMenu:l.onNodeContextMenu,onDoubleClick:l.onNodeDoubleClick,noDragClassName:l.noDragClassName,noPanClassName:l.noPanClassName,rfId:l.rfId,disableKeyboardA11y:l.disableKeyboardA11y,resizeObserver:k,nodesDraggable:s,nodesConnectable:u,nodesFocusable:h,elementsSelectable:g,nodeClickDistance:l.nodeClickDistance,onError:m},S))})}$kt.displayName="NodeRenderer";const jun=ue.memo($kt);function Tun(l){return ec(ue.useCallback(u=>{if(!l)return u.edges.map(g=>g.id);const h=[];if(u.width&&u.height)for(const g of u.edges){const m=u.nodeLookup.get(g.source),p=u.nodeLookup.get(g.target);m&&p&&jcn({sourceNode:m,targetNode:p,width:u.width,height:u.height,transform:u.transform})&&h.push(g.id)}return h},[l]),na)}const Eun=({color:l="none",strokeWidth:s=1})=>{const u={strokeWidth:s,...l&&{stroke:l}};return O.jsx("polyline",{className:"arrow",style:u,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},Cun=({color:l="none",strokeWidth:s=1})=>{const u={strokeWidth:s,...l&&{stroke:l,fill:l}};return O.jsx("polyline",{className:"arrowclosed",style:u,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},Bxt={[aO.Arrow]:Eun,[aO.ArrowClosed]:Cun};function Mun(l){const s=ia();return ue.useMemo(()=>{var g,m;return Object.prototype.hasOwnProperty.call(Bxt,l)?Bxt[l]:((m=(g=s.getState()).onError)==null||m.call(g,"009",t5.error009(l)),null)},[l])}const Aun=({id:l,type:s,color:u,width:h=12.5,height:g=12.5,markerUnits:m="strokeWidth",strokeWidth:p,orient:k="auto-start-reverse"})=>{const S=Mun(s);return S?O.jsx("marker",{className:"react-flow__arrowhead",id:l,markerWidth:`${h}`,markerHeight:`${g}`,viewBox:"-10 -10 20 20",markerUnits:m,orient:k,refX:"0",refY:"0",children:O.jsx(S,{color:u,strokeWidth:p})}):null},Bkt=({defaultColor:l,rfId:s})=>{const u=ec(m=>m.edges),h=ec(m=>m.defaultEdgeOptions),g=ue.useMemo(()=>_cn(u,{id:s,defaultColor:l,defaultMarkerStart:h==null?void 0:h.markerStart,defaultMarkerEnd:h==null?void 0:h.markerEnd}),[u,h,s,l]);return g.length?O.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:O.jsx("defs",{children:g.map(m=>O.jsx(Aun,{id:m.id,type:m.type,color:m.color,width:m.width,height:m.height,markerUnits:m.markerUnits,strokeWidth:m.strokeWidth,orient:m.orient},m.id))})}):null};Bkt.displayName="MarkerDefinitions";var Nun=ue.memo(Bkt);function zkt({x:l,y:s,label:u,labelStyle:h,labelShowBg:g=!0,labelBgStyle:m,labelBgPadding:p=[2,4],labelBgBorderRadius:k=2,children:S,className:C,...N}){const[_,P]=ue.useState({x:1,y:0,width:0,height:0}),R=fh(["react-flow__edge-textwrapper",C]),q=ue.useRef(null);return ue.useEffect(()=>{if(q.current){const F=q.current.getBBox();P({x:F.x,y:F.y,width:F.width,height:F.height})}},[u]),u?O.jsxs("g",{transform:`translate(${l-_.width/2} ${s-_.height/2})`,className:R,visibility:_.width?"visible":"hidden",...N,children:[g&&O.jsx("rect",{width:_.width+2*p[0],x:-p[0],y:-p[1],height:_.height+2*p[1],className:"react-flow__edge-textbg",style:m,rx:k,ry:k}),O.jsx("text",{className:"react-flow__edge-text",y:_.height/2,dy:"0.3em",ref:q,style:h,children:u}),S]}):null}zkt.displayName="EdgeText";const _un=ue.memo(zkt);function hde({path:l,labelX:s,labelY:u,label:h,labelStyle:g,labelShowBg:m,labelBgStyle:p,labelBgPadding:k,labelBgBorderRadius:S,interactionWidth:C=20,...N}){return O.jsxs(O.Fragment,{children:[O.jsx("path",{...N,d:l,fill:"none",className:fh(["react-flow__edge-path",N.className])}),C?O.jsx("path",{d:l,fill:"none",strokeOpacity:0,strokeWidth:C,className:"react-flow__edge-interaction"}):null,h&&Sy(s)&&Sy(u)?O.jsx(_un,{x:s,y:u,label:h,labelStyle:g,labelShowBg:m,labelBgStyle:p,labelBgPadding:k,labelBgBorderRadius:S}):null]})}function zxt({pos:l,x1:s,y1:u,x2:h,y2:g}){return l===ir.Left||l===ir.Right?[.5*(s+h),u]:[s,.5*(u+g)]}function Fkt({sourceX:l,sourceY:s,sourcePosition:u=ir.Bottom,targetX:h,targetY:g,targetPosition:m=ir.Top}){const[p,k]=zxt({pos:u,x1:l,y1:s,x2:h,y2:g}),[S,C]=zxt({pos:m,x1:h,y1:g,x2:l,y2:s}),[N,_,P,R]=ukt({sourceX:l,sourceY:s,targetX:h,targetY:g,sourceControlX:p,sourceControlY:k,targetControlX:S,targetControlY:C});return[`M${l},${s} C${p},${k} ${S},${C} ${h},${g}`,N,_,P,R]}function qkt(l){return ue.memo(({id:s,sourceX:u,sourceY:h,targetX:g,targetY:m,sourcePosition:p,targetPosition:k,label:S,labelStyle:C,labelShowBg:N,labelBgStyle:_,labelBgPadding:P,labelBgBorderRadius:R,style:q,markerEnd:F,markerStart:X,interactionWidth:J})=>{const[ee,te,ie]=Fkt({sourceX:u,sourceY:h,sourcePosition:p,targetX:g,targetY:m,targetPosition:k}),oe=l.isInternal?void 0:s;return O.jsx(hde,{id:oe,path:ee,labelX:te,labelY:ie,label:S,labelStyle:C,labelShowBg:N,labelBgStyle:_,labelBgPadding:P,labelBgBorderRadius:R,style:q,markerEnd:F,markerStart:X,interactionWidth:J})})}const Dun=qkt({isInternal:!1}),Hkt=qkt({isInternal:!0});Dun.displayName="SimpleBezierEdge";Hkt.displayName="SimpleBezierEdgeInternal";function Qkt(l){return ue.memo(({id:s,sourceX:u,sourceY:h,targetX:g,targetY:m,label:p,labelStyle:k,labelShowBg:S,labelBgStyle:C,labelBgPadding:N,labelBgBorderRadius:_,style:P,sourcePosition:R=ir.Bottom,targetPosition:q=ir.Top,markerEnd:F,markerStart:X,pathOptions:J,interactionWidth:ee})=>{const[te,ie,oe]=oMe({sourceX:u,sourceY:h,sourcePosition:R,targetX:g,targetY:m,targetPosition:q,borderRadius:J==null?void 0:J.borderRadius,offset:J==null?void 0:J.offset,stepPosition:J==null?void 0:J.stepPosition}),se=l.isInternal?void 0:s;return O.jsx(hde,{id:se,path:te,labelX:ie,labelY:oe,label:p,labelStyle:k,labelShowBg:S,labelBgStyle:C,labelBgPadding:N,labelBgBorderRadius:_,style:P,markerEnd:F,markerStart:X,interactionWidth:ee})})}const Gkt=Qkt({isInternal:!1}),Ukt=Qkt({isInternal:!0});Gkt.displayName="SmoothStepEdge";Ukt.displayName="SmoothStepEdgeInternal";function Jkt(l){return ue.memo(({id:s,...u})=>{var g;const h=l.isInternal?void 0:s;return O.jsx(Gkt,{...u,id:h,pathOptions:ue.useMemo(()=>{var m;return{borderRadius:0,offset:(m=u.pathOptions)==null?void 0:m.offset}},[(g=u.pathOptions)==null?void 0:g.offset])})})}const Lun=Jkt({isInternal:!1}),Vkt=Jkt({isInternal:!0});Lun.displayName="StepEdge";Vkt.displayName="StepEdgeInternal";function Xkt(l){return ue.memo(({id:s,sourceX:u,sourceY:h,targetX:g,targetY:m,label:p,labelStyle:k,labelShowBg:S,labelBgStyle:C,labelBgPadding:N,labelBgBorderRadius:_,style:P,markerEnd:R,markerStart:q,interactionWidth:F})=>{const[X,J,ee]=hkt({sourceX:u,sourceY:h,targetX:g,targetY:m}),te=l.isInternal?void 0:s;return O.jsx(hde,{id:te,path:X,labelX:J,labelY:ee,label:p,labelStyle:k,labelShowBg:S,labelBgStyle:C,labelBgPadding:N,labelBgBorderRadius:_,style:P,markerEnd:R,markerStart:q,interactionWidth:F})})}const Pun=Xkt({isInternal:!1}),Wkt=Xkt({isInternal:!0});Pun.displayName="StraightEdge";Wkt.displayName="StraightEdgeInternal";function Kkt(l){return ue.memo(({id:s,sourceX:u,sourceY:h,targetX:g,targetY:m,sourcePosition:p=ir.Bottom,targetPosition:k=ir.Top,label:S,labelStyle:C,labelShowBg:N,labelBgStyle:_,labelBgPadding:P,labelBgBorderRadius:R,style:q,markerEnd:F,markerStart:X,pathOptions:J,interactionWidth:ee})=>{const[te,ie,oe]=akt({sourceX:u,sourceY:h,sourcePosition:p,targetX:g,targetY:m,targetPosition:k,curvature:J==null?void 0:J.curvature}),se=l.isInternal?void 0:s;return O.jsx(hde,{id:se,path:te,labelX:ie,labelY:oe,label:S,labelStyle:C,labelShowBg:N,labelBgStyle:_,labelBgPadding:P,labelBgBorderRadius:R,style:q,markerEnd:F,markerStart:X,interactionWidth:ee})})}const Iun=Kkt({isInternal:!1}),Ykt=Kkt({isInternal:!0});Iun.displayName="BezierEdge";Ykt.displayName="BezierEdgeInternal";const Fxt={default:Ykt,straight:Wkt,step:Vkt,smoothstep:Ukt,simplebezier:Hkt},qxt={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},Run=(l,s,u)=>u===ir.Left?l-s:u===ir.Right?l+s:l,$un=(l,s,u)=>u===ir.Top?l-s:u===ir.Bottom?l+s:l,Hxt="react-flow__edgeupdater";function Qxt({position:l,centerX:s,centerY:u,radius:h=10,onMouseDown:g,onMouseEnter:m,onMouseOut:p,type:k}){return O.jsx("circle",{onMouseDown:g,onMouseEnter:m,onMouseOut:p,className:fh([Hxt,`${Hxt}-${k}`]),cx:Run(s,h,l),cy:$un(u,h,l),r:h,stroke:"transparent",fill:"transparent"})}function Bun({isReconnectable:l,reconnectRadius:s,edge:u,sourceX:h,sourceY:g,targetX:m,targetY:p,sourcePosition:k,targetPosition:S,onReconnect:C,onReconnectStart:N,onReconnectEnd:_,setReconnecting:P,setUpdateHover:R}){const q=ia(),F=(ie,oe)=>{if(ie.button!==0)return;const{autoPanOnConnect:se,domNode:ge,isValidConnection:Ne,connectionMode:qe,connectionRadius:Ke,lib:Le,onConnectStart:we,onConnectEnd:Z,cancelConnection:pe,nodeLookup:Re,rfId:he,panBy:Ee,updateConnection:Te}=q.getState(),ye=oe.type==="target",ft=(gt,Ot)=>{P(!1),_==null||_(gt,u,oe.type,Ot)},Ce=gt=>C==null?void 0:C(u,gt),We=(gt,Ot)=>{P(!0),N==null||N(ie,u,oe.type),we==null||we(gt,Ot)};uMe.onPointerDown(ie.nativeEvent,{autoPanOnConnect:se,connectionMode:qe,connectionRadius:Ke,domNode:ge,handleId:oe.id,nodeId:oe.nodeId,nodeLookup:Re,isTarget:ye,edgeUpdaterType:oe.type,lib:Le,flowId:he,cancelConnection:pe,panBy:Ee,isValidConnection:Ne,onConnect:Ce,onConnectStart:We,onConnectEnd:Z,onReconnectEnd:ft,updateConnection:Te,getTransform:()=>q.getState().transform,getFromHandle:()=>q.getState().connection.fromHandle,dragThreshold:q.getState().connectionDragThreshold,handleDomNode:ie.currentTarget})},X=ie=>F(ie,{nodeId:u.target,id:u.targetHandle??null,type:"target"}),J=ie=>F(ie,{nodeId:u.source,id:u.sourceHandle??null,type:"source"}),ee=()=>R(!0),te=()=>R(!1);return O.jsxs(O.Fragment,{children:[(l===!0||l==="source")&&O.jsx(Qxt,{position:k,centerX:h,centerY:g,radius:s,onMouseDown:X,onMouseEnter:ee,onMouseOut:te,type:"source"}),(l===!0||l==="target")&&O.jsx(Qxt,{position:S,centerX:m,centerY:p,radius:s,onMouseDown:J,onMouseEnter:ee,onMouseOut:te,type:"target"})]})}function zun({id:l,edgesFocusable:s,edgesReconnectable:u,elementsSelectable:h,onClick:g,onDoubleClick:m,onContextMenu:p,onMouseEnter:k,onMouseMove:S,onMouseLeave:C,reconnectRadius:N,onReconnect:_,onReconnectStart:P,onReconnectEnd:R,rfId:q,edgeTypes:F,noPanClassName:X,onError:J,disableKeyboardA11y:ee}){let te=ec(ji=>ji.edgeLookup.get(l));const ie=ec(ji=>ji.defaultEdgeOptions);te=ie?{...ie,...te}:te;let oe=te.type||"default",se=(F==null?void 0:F[oe])||Fxt[oe];se===void 0&&(J==null||J("011",t5.error011(oe)),oe="default",se=(F==null?void 0:F.default)||Fxt.default);const ge=!!(te.focusable||s&&typeof te.focusable>"u"),Ne=typeof _<"u"&&(te.reconnectable||u&&typeof te.reconnectable>"u"),qe=!!(te.selectable||h&&typeof te.selectable>"u"),Ke=ue.useRef(null),[Le,we]=ue.useState(!1),[Z,pe]=ue.useState(!1),Re=ia(),{zIndex:he,sourceX:Ee,sourceY:Te,targetX:ye,targetY:ft,sourcePosition:Ce,targetPosition:We}=ec(ue.useCallback(ji=>{const Ti=ji.nodeLookup.get(te.source),as=ji.nodeLookup.get(te.target);if(!Ti||!as)return{zIndex:te.zIndex,...qxt};const xo=Ncn({id:l,sourceNode:Ti,targetNode:as,sourceHandle:te.sourceHandle||null,targetHandle:te.targetHandle||null,connectionMode:ji.connectionMode,onError:J});return{zIndex:Scn({selected:te.selected,zIndex:te.zIndex,sourceNode:Ti,targetNode:as,elevateOnSelect:ji.elevateEdgesOnSelect,zIndexMode:ji.zIndexMode}),...xo||qxt}},[te.source,te.target,te.sourceHandle,te.targetHandle,te.selected,te.zIndex]),na),gt=ue.useMemo(()=>te.markerStart?`url('#${cMe(te.markerStart,q)}')`:void 0,[te.markerStart,q]),Ot=ue.useMemo(()=>te.markerEnd?`url('#${cMe(te.markerEnd,q)}')`:void 0,[te.markerEnd,q]);if(te.hidden||Ee===null||Te===null||ye===null||ft===null)return null;const dt=ji=>{var qr;const{addSelectedEdges:Ti,unselectNodesAndEdges:as,multiSelectionActive:xo}=Re.getState();qe&&(Re.setState({nodesSelectionActive:!1}),te.selected&&xo?(as({nodes:[],edges:[te]}),(qr=Ke.current)==null||qr.blur()):Ti([l])),g&&g(ji,te)},cn=m?ji=>{m(ji,{...te})}:void 0,dn=p?ji=>{p(ji,{...te})}:void 0,wn=k?ji=>{k(ji,{...te})}:void 0,ni=S?ji=>{S(ji,{...te})}:void 0,nr=C?ji=>{C(ji,{...te})}:void 0,ii=ji=>{var Ti;if(!ee&&X4t.includes(ji.key)&&qe){const{unselectNodesAndEdges:as,addSelectedEdges:xo}=Re.getState();ji.key==="Escape"?((Ti=Ke.current)==null||Ti.blur(),as({edges:[te]})):xo([l])}};return O.jsx("svg",{style:{zIndex:he},children:O.jsxs("g",{className:fh(["react-flow__edge",`react-flow__edge-${oe}`,te.className,X,{selected:te.selected,animated:te.animated,inactive:!qe&&!g,updating:Le,selectable:qe}]),onClick:dt,onDoubleClick:cn,onContextMenu:dn,onMouseEnter:wn,onMouseMove:ni,onMouseLeave:nr,onKeyDown:ge?ii:void 0,tabIndex:ge?0:void 0,role:te.ariaRole??(ge?"group":"img"),"aria-roledescription":"edge","data-id":l,"data-testid":`rf__edge-${l}`,"aria-label":te.ariaLabel===null?void 0:te.ariaLabel||`Edge from ${te.source} to ${te.target}`,"aria-describedby":ge?`${Ekt}-${q}`:void 0,ref:Ke,...te.domAttributes,children:[!Z&&O.jsx(se,{id:l,source:te.source,target:te.target,type:te.type,selected:te.selected,animated:te.animated,selectable:qe,deletable:te.deletable??!0,label:te.label,labelStyle:te.labelStyle,labelShowBg:te.labelShowBg,labelBgStyle:te.labelBgStyle,labelBgPadding:te.labelBgPadding,labelBgBorderRadius:te.labelBgBorderRadius,sourceX:Ee,sourceY:Te,targetX:ye,targetY:ft,sourcePosition:Ce,targetPosition:We,data:te.data,style:te.style,sourceHandleId:te.sourceHandle,targetHandleId:te.targetHandle,markerStart:gt,markerEnd:Ot,pathOptions:"pathOptions"in te?te.pathOptions:void 0,interactionWidth:te.interactionWidth}),Ne&&O.jsx(Bun,{edge:te,isReconnectable:Ne,reconnectRadius:N,onReconnect:_,onReconnectStart:P,onReconnectEnd:R,sourceX:Ee,sourceY:Te,targetX:ye,targetY:ft,sourcePosition:Ce,targetPosition:We,setUpdateHover:we,setReconnecting:pe})]})})}var Fun=ue.memo(zun);const qun=l=>({edgesFocusable:l.edgesFocusable,edgesReconnectable:l.edgesReconnectable,elementsSelectable:l.elementsSelectable,connectionMode:l.connectionMode,onError:l.onError});function Zkt({defaultMarkerColor:l,onlyRenderVisibleElements:s,rfId:u,edgeTypes:h,noPanClassName:g,onReconnect:m,onEdgeContextMenu:p,onEdgeMouseEnter:k,onEdgeMouseMove:S,onEdgeMouseLeave:C,onEdgeClick:N,reconnectRadius:_,onEdgeDoubleClick:P,onReconnectStart:R,onReconnectEnd:q,disableKeyboardA11y:F}){const{edgesFocusable:X,edgesReconnectable:J,elementsSelectable:ee,onError:te}=ec(qun,na),ie=Tun(s);return O.jsxs("div",{className:"react-flow__edges",children:[O.jsx(Nun,{defaultColor:l,rfId:u}),ie.map(oe=>O.jsx(Fun,{id:oe,edgesFocusable:X,edgesReconnectable:J,elementsSelectable:ee,noPanClassName:g,onReconnect:m,onContextMenu:p,onMouseEnter:k,onMouseMove:S,onMouseLeave:C,onClick:N,reconnectRadius:_,onDoubleClick:P,onReconnectStart:R,onReconnectEnd:q,rfId:u,onError:te,edgeTypes:h,disableKeyboardA11y:F},oe))]})}Zkt.displayName="EdgeRenderer";const Hun=ue.memo(Zkt),Qun=l=>`translate(${l.transform[0]}px,${l.transform[1]}px) scale(${l.transform[2]})`;function Gun({children:l}){const s=ec(Qun);return O.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:s},children:l})}function Uun(l){const s=JX(),u=ue.useRef(!1);ue.useEffect(()=>{!u.current&&s.viewportInitialized&&l&&(setTimeout(()=>l(s),1),u.current=!0)},[l,s.viewportInitialized])}const Jun=l=>{var s;return(s=l.panZoom)==null?void 0:s.syncViewport};function Vun(l){const s=ec(Jun),u=ia();return ue.useEffect(()=>{l&&(s==null||s(l),u.setState({transform:[l.x,l.y,l.zoom]}))},[l,s]),null}function Xun(l){return l.connection.inProgress?{...l.connection,to:UX(l.connection.to,l.transform)}:{...l.connection}}function Wun(l){return Xun}function Kun(l){const s=Wun();return ec(s,na)}const Yun=l=>({nodesConnectable:l.nodesConnectable,isValid:l.connection.isValid,inProgress:l.connection.inProgress,width:l.width,height:l.height});function Zun({containerStyle:l,style:s,type:u,component:h}){const{nodesConnectable:g,width:m,height:p,isValid:k,inProgress:S}=ec(Yun,na);return!(m&&g&&S)?null:O.jsx("svg",{style:l,width:m,height:p,className:"react-flow__connectionline react-flow__container",children:O.jsx("g",{className:fh(["react-flow__connection",Y4t(k)]),children:O.jsx(eOt,{style:s,type:u,CustomComponent:h,isValid:k})})})}const eOt=({style:l,type:s=C9.Bezier,CustomComponent:u,isValid:h})=>{const{inProgress:g,from:m,fromNode:p,fromHandle:k,fromPosition:S,to:C,toNode:N,toHandle:_,toPosition:P,pointer:R}=Kun();if(!g)return;if(u)return O.jsx(u,{connectionLineType:s,connectionLineStyle:l,fromNode:p,fromHandle:k,fromX:m.x,fromY:m.y,toX:C.x,toY:C.y,fromPosition:S,toPosition:P,connectionStatus:Y4t(h),toNode:N,toHandle:_,pointer:R});let q="";const F={sourceX:m.x,sourceY:m.y,sourcePosition:S,targetX:C.x,targetY:C.y,targetPosition:P};switch(s){case C9.Bezier:[q]=akt(F);break;case C9.SimpleBezier:[q]=Fkt(F);break;case C9.Step:[q]=oMe({...F,borderRadius:0});break;case C9.SmoothStep:[q]=oMe(F);break;default:[q]=hkt(F)}return O.jsx("path",{d:q,fill:"none",className:"react-flow__connection-path",style:l})};eOt.displayName="ConnectionLine";const ean={};function Gxt(l=ean){ue.useRef(l),ia(),ue.useEffect(()=>{},[l])}function tan(){ia(),ue.useRef(!1),ue.useEffect(()=>{},[])}function tOt({nodeTypes:l,edgeTypes:s,onInit:u,onNodeClick:h,onEdgeClick:g,onNodeDoubleClick:m,onEdgeDoubleClick:p,onNodeMouseEnter:k,onNodeMouseMove:S,onNodeMouseLeave:C,onNodeContextMenu:N,onSelectionContextMenu:_,onSelectionStart:P,onSelectionEnd:R,connectionLineType:q,connectionLineStyle:F,connectionLineComponent:X,connectionLineContainerStyle:J,selectionKeyCode:ee,selectionOnDrag:te,selectionMode:ie,multiSelectionKeyCode:oe,panActivationKeyCode:se,zoomActivationKeyCode:ge,deleteKeyCode:Ne,onlyRenderVisibleElements:qe,elementsSelectable:Ke,defaultViewport:Le,translateExtent:we,minZoom:Z,maxZoom:pe,preventScrolling:Re,defaultMarkerColor:he,zoomOnScroll:Ee,zoomOnPinch:Te,panOnScroll:ye,panOnScrollSpeed:ft,panOnScrollMode:Ce,zoomOnDoubleClick:We,panOnDrag:gt,onPaneClick:Ot,onPaneMouseEnter:dt,onPaneMouseMove:cn,onPaneMouseLeave:dn,onPaneScroll:wn,onPaneContextMenu:ni,paneClickDistance:nr,nodeClickDistance:ii,onEdgeContextMenu:ji,onEdgeMouseEnter:Ti,onEdgeMouseMove:as,onEdgeMouseLeave:xo,reconnectRadius:qr,onReconnect:Nn,onReconnectStart:Ps,onReconnectEnd:ms,noDragClassName:rs,noWheelClassName:fr,noPanClassName:jp,disableKeyboardA11y:ko,nodeExtent:eu,rfId:tm,viewport:og,onViewportChange:Tp}){return Gxt(l),Gxt(s),tan(),Uun(u),Vun(og),O.jsx(bun,{onPaneClick:Ot,onPaneMouseEnter:dt,onPaneMouseMove:cn,onPaneMouseLeave:dn,onPaneContextMenu:ni,onPaneScroll:wn,paneClickDistance:nr,deleteKeyCode:Ne,selectionKeyCode:ee,selectionOnDrag:te,selectionMode:ie,onSelectionStart:P,onSelectionEnd:R,multiSelectionKeyCode:oe,panActivationKeyCode:se,zoomActivationKeyCode:ge,elementsSelectable:Ke,zoomOnScroll:Ee,zoomOnPinch:Te,zoomOnDoubleClick:We,panOnScroll:ye,panOnScrollSpeed:ft,panOnScrollMode:Ce,panOnDrag:gt,defaultViewport:Le,translateExtent:we,minZoom:Z,maxZoom:pe,onSelectionContextMenu:_,preventScrolling:Re,noDragClassName:rs,noWheelClassName:fr,noPanClassName:jp,disableKeyboardA11y:ko,onViewportChange:Tp,isControlledViewport:!!og,children:O.jsxs(Gun,{children:[O.jsx(Hun,{edgeTypes:s,onEdgeClick:g,onEdgeDoubleClick:p,onReconnect:Nn,onReconnectStart:Ps,onReconnectEnd:ms,onlyRenderVisibleElements:qe,onEdgeContextMenu:ji,onEdgeMouseEnter:Ti,onEdgeMouseMove:as,onEdgeMouseLeave:xo,reconnectRadius:qr,defaultMarkerColor:he,noPanClassName:jp,disableKeyboardA11y:ko,rfId:tm}),O.jsx(Zun,{style:F,type:q,component:X,containerStyle:J}),O.jsx("div",{className:"react-flow__edgelabel-renderer"}),O.jsx(jun,{nodeTypes:l,onNodeClick:h,onNodeDoubleClick:m,onNodeMouseEnter:k,onNodeMouseMove:S,onNodeMouseLeave:C,onNodeContextMenu:N,nodeClickDistance:ii,onlyRenderVisibleElements:qe,noPanClassName:jp,noDragClassName:rs,disableKeyboardA11y:ko,nodeExtent:eu,rfId:tm}),O.jsx("div",{className:"react-flow__viewport-portal"})]})})}tOt.displayName="GraphView";const nan=ue.memo(tOt),Uxt=({nodes:l,edges:s,defaultNodes:u,defaultEdges:h,width:g,height:m,fitView:p,fitViewOptions:k,minZoom:S=.5,maxZoom:C=2,nodeOrigin:N,nodeExtent:_,zIndexMode:P="basic"}={})=>{const R=new Map,q=new Map,F=new Map,X=new Map,J=h??s??[],ee=u??l??[],te=N??[0,0],ie=_??bX;pkt(F,X,J);const oe=lMe(ee,R,q,{nodeOrigin:te,nodeExtent:ie,zIndexMode:P});let se=[0,0,1];if(p&&g&&m){const ge=QX(R,{filter:Le=>!!((Le.width||Le.initialWidth)&&(Le.height||Le.initialHeight))}),{x:Ne,y:qe,zoom:Ke}=xAe(ge,g,m,S,C,(k==null?void 0:k.padding)??.1);se=[Ne,qe,Ke]}return{rfId:"1",width:g??0,height:m??0,transform:se,nodes:ee,nodesInitialized:oe,nodeLookup:R,parentLookup:q,edges:J,edgeLookup:X,connectionLookup:F,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:u!==void 0,hasDefaultEdges:h!==void 0,panZoom:null,minZoom:S,maxZoom:C,translateExtent:bX,nodeExtent:ie,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:VI.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:te,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:p??!1,fitViewOptions:k,fitViewResolver:null,connection:{...K4t},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:wcn,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:W4t,zIndexMode:P,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},ian=({nodes:l,edges:s,defaultNodes:u,defaultEdges:h,width:g,height:m,fitView:p,fitViewOptions:k,minZoom:S,maxZoom:C,nodeOrigin:N,nodeExtent:_,zIndexMode:P})=>xln((R,q)=>{async function F(){const{nodeLookup:X,panZoom:J,fitViewOptions:ee,fitViewResolver:te,width:ie,height:oe,minZoom:se,maxZoom:ge}=q();J&&(await bcn({nodes:X,width:ie,height:oe,panZoom:J,minZoom:se,maxZoom:ge},ee),te==null||te.resolve(!0),R({fitViewResolver:null}))}return{...Uxt({nodes:l,edges:s,width:g,height:m,fitView:p,fitViewOptions:k,minZoom:S,maxZoom:C,nodeOrigin:N,nodeExtent:_,defaultNodes:u,defaultEdges:h,zIndexMode:P}),setNodes:X=>{const{nodeLookup:J,parentLookup:ee,nodeOrigin:te,elevateNodesOnSelect:ie,fitViewQueued:oe,zIndexMode:se}=q(),ge=lMe(X,J,ee,{nodeOrigin:te,nodeExtent:_,elevateNodesOnSelect:ie,checkEquality:!0,zIndexMode:se});oe&&ge?(F(),R({nodes:X,nodesInitialized:ge,fitViewQueued:!1,fitViewOptions:void 0})):R({nodes:X,nodesInitialized:ge})},setEdges:X=>{const{connectionLookup:J,edgeLookup:ee}=q();pkt(J,ee,X),R({edges:X})},setDefaultNodesAndEdges:(X,J)=>{if(X){const{setNodes:ee}=q();ee(X),R({hasDefaultNodes:!0})}if(J){const{setEdges:ee}=q();ee(J),R({hasDefaultEdges:!0})}},updateNodeInternals:X=>{const{triggerNodeChanges:J,nodeLookup:ee,parentLookup:te,domNode:ie,nodeOrigin:oe,nodeExtent:se,debug:ge,fitViewQueued:Ne,zIndexMode:qe}=q(),{changes:Ke,updatedInternals:Le}=Bcn(X,ee,te,ie,oe,se,qe);Le&&(Pcn(ee,te,{nodeOrigin:oe,nodeExtent:se,zIndexMode:qe}),Ne?(F(),R({fitViewQueued:!1,fitViewOptions:void 0})):R({}),(Ke==null?void 0:Ke.length)>0&&(ge&&console.log("React Flow: trigger node changes",Ke),J==null||J(Ke)))},updateNodePositions:(X,J=!1)=>{const ee=[];let te=[];const{nodeLookup:ie,triggerNodeChanges:oe,connection:se,updateConnection:ge,onNodesChangeMiddlewareMap:Ne}=q();for(const[qe,Ke]of X){const Le=ie.get(qe),we=!!(Le!=null&&Le.expandParent&&(Le!=null&&Le.parentId)&&(Ke!=null&&Ke.position)),Z={id:qe,type:"position",position:we?{x:Math.max(0,Ke.position.x),y:Math.max(0,Ke.position.y)}:Ke.position,dragging:J};if(Le&&se.inProgress&&se.fromNode.id===Le.id){const pe=zM(Le,se.fromHandle,ir.Left,!0);ge({...se,from:pe})}we&&Le.parentId&&ee.push({id:qe,parentId:Le.parentId,rect:{...Ke.internals.positionAbsolute,width:Ke.measured.width??0,height:Ke.measured.height??0}}),te.push(Z)}if(ee.length>0){const{parentLookup:qe,nodeOrigin:Ke}=q(),Le=EAe(ee,ie,qe,Ke);te.push(...Le)}for(const qe of Ne.values())te=qe(te);oe(te)},triggerNodeChanges:X=>{const{onNodesChange:J,setNodes:ee,nodes:te,hasDefaultNodes:ie,debug:oe}=q();if(X!=null&&X.length){if(ie){const se=Akt(X,te);ee(se)}oe&&console.log("React Flow: trigger node changes",X),J==null||J(X)}},triggerEdgeChanges:X=>{const{onEdgesChange:J,setEdges:ee,edges:te,hasDefaultEdges:ie,debug:oe}=q();if(X!=null&&X.length){if(ie){const se=Nkt(X,te);ee(se)}oe&&console.log("React Flow: trigger edge changes",X),J==null||J(X)}},addSelectedNodes:X=>{const{multiSelectionActive:J,edgeLookup:ee,nodeLookup:te,triggerNodeChanges:ie,triggerEdgeChanges:oe}=q();if(J){const se=X.map(ge=>wM(ge,!0));ie(se);return}ie(AI(te,new Set([...X]),!0)),oe(AI(ee))},addSelectedEdges:X=>{const{multiSelectionActive:J,edgeLookup:ee,nodeLookup:te,triggerNodeChanges:ie,triggerEdgeChanges:oe}=q();if(J){const se=X.map(ge=>wM(ge,!0));oe(se);return}oe(AI(ee,new Set([...X]))),ie(AI(te,new Set,!0))},unselectNodesAndEdges:({nodes:X,edges:J}={})=>{const{edges:ee,nodes:te,nodeLookup:ie,triggerNodeChanges:oe,triggerEdgeChanges:se}=q(),ge=X||te,Ne=J||ee,qe=ge.map(Le=>{const we=ie.get(Le.id);return we&&(we.selected=!1),wM(Le.id,!1)}),Ke=Ne.map(Le=>wM(Le.id,!1));oe(qe),se(Ke)},setMinZoom:X=>{const{panZoom:J,maxZoom:ee}=q();J==null||J.setScaleExtent([X,ee]),R({minZoom:X})},setMaxZoom:X=>{const{panZoom:J,minZoom:ee}=q();J==null||J.setScaleExtent([ee,X]),R({maxZoom:X})},setTranslateExtent:X=>{var J;(J=q().panZoom)==null||J.setTranslateExtent(X),R({translateExtent:X})},resetSelectedElements:()=>{const{edges:X,nodes:J,triggerNodeChanges:ee,triggerEdgeChanges:te,elementsSelectable:ie}=q();if(!ie)return;const oe=J.reduce((ge,Ne)=>Ne.selected?[...ge,wM(Ne.id,!1)]:ge,[]),se=X.reduce((ge,Ne)=>Ne.selected?[...ge,wM(Ne.id,!1)]:ge,[]);ee(oe),te(se)},setNodeExtent:X=>{const{nodes:J,nodeLookup:ee,parentLookup:te,nodeOrigin:ie,elevateNodesOnSelect:oe,nodeExtent:se,zIndexMode:ge}=q();X[0][0]===se[0][0]&&X[0][1]===se[0][1]&&X[1][0]===se[1][0]&&X[1][1]===se[1][1]||(lMe(J,ee,te,{nodeOrigin:ie,nodeExtent:X,elevateNodesOnSelect:oe,checkEquality:!1,zIndexMode:ge}),R({nodeExtent:X}))},panBy:X=>{const{transform:J,width:ee,height:te,panZoom:ie,translateExtent:oe}=q();return zcn({delta:X,panZoom:ie,transform:J,translateExtent:oe,width:ee,height:te})},setCenter:async(X,J,ee)=>{const{width:te,height:ie,maxZoom:oe,panZoom:se}=q();if(!se)return Promise.resolve(!1);const ge=typeof(ee==null?void 0:ee.zoom)<"u"?ee.zoom:oe;return await se.setViewport({x:te/2-X*ge,y:ie/2-J*ge,zoom:ge},{duration:ee==null?void 0:ee.duration,ease:ee==null?void 0:ee.ease,interpolate:ee==null?void 0:ee.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{R({connection:{...K4t}})},updateConnection:X=>{R({connection:X})},reset:()=>R({...Uxt()})}},Object.is);function nOt({initialNodes:l,initialEdges:s,defaultNodes:u,defaultEdges:h,initialWidth:g,initialHeight:m,initialMinZoom:p,initialMaxZoom:k,initialFitViewOptions:S,fitView:C,nodeOrigin:N,nodeExtent:_,zIndexMode:P,children:R}){const[q]=ue.useState(()=>ian({nodes:l,edges:s,defaultNodes:u,defaultEdges:h,width:g,height:m,fitView:C,minZoom:p,maxZoom:k,fitViewOptions:S,nodeOrigin:N,nodeExtent:_,zIndexMode:P}));return O.jsx(kln,{value:q,children:O.jsx(Gln,{children:R})})}function ran({children:l,nodes:s,edges:u,defaultNodes:h,defaultEdges:g,width:m,height:p,fitView:k,fitViewOptions:S,minZoom:C,maxZoom:N,nodeOrigin:_,nodeExtent:P,zIndexMode:R}){return ue.useContext(ude)?O.jsx(O.Fragment,{children:l}):O.jsx(nOt,{initialNodes:s,initialEdges:u,defaultNodes:h,defaultEdges:g,initialWidth:m,initialHeight:p,fitView:k,initialFitViewOptions:S,initialMinZoom:C,initialMaxZoom:N,nodeOrigin:_,nodeExtent:P,zIndexMode:R,children:l})}const san={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function oan({nodes:l,edges:s,defaultNodes:u,defaultEdges:h,className:g,nodeTypes:m,edgeTypes:p,onNodeClick:k,onEdgeClick:S,onInit:C,onMove:N,onMoveStart:_,onMoveEnd:P,onConnect:R,onConnectStart:q,onConnectEnd:F,onClickConnectStart:X,onClickConnectEnd:J,onNodeMouseEnter:ee,onNodeMouseMove:te,onNodeMouseLeave:ie,onNodeContextMenu:oe,onNodeDoubleClick:se,onNodeDragStart:ge,onNodeDrag:Ne,onNodeDragStop:qe,onNodesDelete:Ke,onEdgesDelete:Le,onDelete:we,onSelectionChange:Z,onSelectionDragStart:pe,onSelectionDrag:Re,onSelectionDragStop:he,onSelectionContextMenu:Ee,onSelectionStart:Te,onSelectionEnd:ye,onBeforeDelete:ft,connectionMode:Ce,connectionLineType:We=C9.Bezier,connectionLineStyle:gt,connectionLineComponent:Ot,connectionLineContainerStyle:dt,deleteKeyCode:cn="Backspace",selectionKeyCode:dn="Shift",selectionOnDrag:wn=!1,selectionMode:ni=XI.Full,panActivationKeyCode:nr="Space",multiSelectionKeyCode:ii=wX()?"Meta":"Control",zoomActivationKeyCode:ji=wX()?"Meta":"Control",snapToGrid:Ti,snapGrid:as,onlyRenderVisibleElements:xo=!1,selectNodesOnDrag:qr,nodesDraggable:Nn,autoPanOnNodeFocus:Ps,nodesConnectable:ms,nodesFocusable:rs,nodeOrigin:fr=Ckt,edgesFocusable:jp,edgesReconnectable:ko,elementsSelectable:eu=!0,defaultViewport:tm=Pln,minZoom:og=.5,maxZoom:Tp=2,translateExtent:nm=bX,preventScrolling:Mu=!0,nodeExtent:Ep,defaultMarkerColor:OO="#b1b1b7",zoomOnScroll:SO=!0,zoomOnPinch:im=!0,panOnScroll:of=!1,panOnScrollSpeed:c1=.5,panOnScrollMode:zf=_M.Free,zoomOnDoubleClick:jO=!0,panOnDrag:e2=!0,onPaneClick:TO,onPaneMouseEnter:t2,onPaneMouseMove:n2,onPaneMouseLeave:i2,onPaneScroll:a0,onPaneContextMenu:r2,paneClickDistance:rm=1,nodeClickDistance:l5=0,children:u5,onReconnect:Py,onReconnectStart:sm,onReconnectEnd:EO,onEdgeContextMenu:om,onEdgeDoubleClick:Iy,onEdgeMouseEnter:a5,onEdgeMouseMove:cm,onEdgeMouseLeave:Ry,reconnectRadius:f5=10,onNodesChange:$y,onEdgesChange:cg,noDragClassName:Au="nodrag",noWheelClassName:kn="nowheel",noPanClassName:ro="nopan",fitView:al,fitViewOptions:Pa,connectOnClick:CO,attributionPosition:J9,proOptions:By,defaultEdgeOptions:MO,elevateNodesOnSelect:Cp=!0,elevateEdgesOnSelect:s2=!1,disableKeyboardA11y:o2=!1,autoPanOnConnect:c2,autoPanOnNodeDrag:sa,autoPanSpeed:V9,connectionRadius:X9,isValidConnection:lm,onError:l2,style:XM,id:AO,nodeDragThreshold:W9,connectionDragThreshold:K9,viewport:zy,onViewportChange:h5,width:f0,height:Od,colorMode:Y9="light",debug:WM,onScroll:u2,ariaLabelConfig:Z9,zIndexMode:Fy="basic",...KM},Sd){const qy=AO||"1",e8=Bln(Y9),NO=ue.useCallback(um=>{um.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),u2==null||u2(um)},[u2]);return O.jsx("div",{"data-testid":"rf__wrapper",...KM,onScroll:NO,style:{...XM,...san},ref:Sd,className:fh(["react-flow",g,e8]),id:AO,role:"application",children:O.jsxs(ran,{nodes:l,edges:s,width:f0,height:Od,fitView:al,fitViewOptions:Pa,minZoom:og,maxZoom:Tp,nodeOrigin:fr,nodeExtent:Ep,zIndexMode:Fy,children:[O.jsx(nan,{onInit:C,onNodeClick:k,onEdgeClick:S,onNodeMouseEnter:ee,onNodeMouseMove:te,onNodeMouseLeave:ie,onNodeContextMenu:oe,onNodeDoubleClick:se,nodeTypes:m,edgeTypes:p,connectionLineType:We,connectionLineStyle:gt,connectionLineComponent:Ot,connectionLineContainerStyle:dt,selectionKeyCode:dn,selectionOnDrag:wn,selectionMode:ni,deleteKeyCode:cn,multiSelectionKeyCode:ii,panActivationKeyCode:nr,zoomActivationKeyCode:ji,onlyRenderVisibleElements:xo,defaultViewport:tm,translateExtent:nm,minZoom:og,maxZoom:Tp,preventScrolling:Mu,zoomOnScroll:SO,zoomOnPinch:im,zoomOnDoubleClick:jO,panOnScroll:of,panOnScrollSpeed:c1,panOnScrollMode:zf,panOnDrag:e2,onPaneClick:TO,onPaneMouseEnter:t2,onPaneMouseMove:n2,onPaneMouseLeave:i2,onPaneScroll:a0,onPaneContextMenu:r2,paneClickDistance:rm,nodeClickDistance:l5,onSelectionContextMenu:Ee,onSelectionStart:Te,onSelectionEnd:ye,onReconnect:Py,onReconnectStart:sm,onReconnectEnd:EO,onEdgeContextMenu:om,onEdgeDoubleClick:Iy,onEdgeMouseEnter:a5,onEdgeMouseMove:cm,onEdgeMouseLeave:Ry,reconnectRadius:f5,defaultMarkerColor:OO,noDragClassName:Au,noWheelClassName:kn,noPanClassName:ro,rfId:qy,disableKeyboardA11y:o2,nodeExtent:Ep,viewport:zy,onViewportChange:h5}),O.jsx($ln,{nodes:l,edges:s,defaultNodes:u,defaultEdges:h,onConnect:R,onConnectStart:q,onConnectEnd:F,onClickConnectStart:X,onClickConnectEnd:J,nodesDraggable:Nn,autoPanOnNodeFocus:Ps,nodesConnectable:ms,nodesFocusable:rs,edgesFocusable:jp,edgesReconnectable:ko,elementsSelectable:eu,elevateNodesOnSelect:Cp,elevateEdgesOnSelect:s2,minZoom:og,maxZoom:Tp,nodeExtent:Ep,onNodesChange:$y,onEdgesChange:cg,snapToGrid:Ti,snapGrid:as,connectionMode:Ce,translateExtent:nm,connectOnClick:CO,defaultEdgeOptions:MO,fitView:al,fitViewOptions:Pa,onNodesDelete:Ke,onEdgesDelete:Le,onDelete:we,onNodeDragStart:ge,onNodeDrag:Ne,onNodeDragStop:qe,onSelectionDrag:Re,onSelectionDragStart:pe,onSelectionDragStop:he,onMove:N,onMoveStart:_,onMoveEnd:P,noPanClassName:ro,nodeOrigin:fr,rfId:qy,autoPanOnConnect:c2,autoPanOnNodeDrag:sa,autoPanSpeed:V9,onError:l2,connectionRadius:X9,isValidConnection:lm,selectNodesOnDrag:qr,nodeDragThreshold:W9,connectionDragThreshold:K9,onBeforeDelete:ft,debug:WM,ariaLabelConfig:Z9,zIndexMode:Fy}),O.jsx(Lln,{onSelectionChange:Z}),u5,O.jsx(Mln,{proOptions:By,position:J9}),O.jsx(Cln,{rfId:qy,disableKeyboardA11y:o2})]})})}var can=_kt(oan);function lan(l){const[s,u]=ue.useState(l),h=ue.useCallback(g=>u(m=>Akt(g,m)),[]);return[s,u,h]}function uan(l){const[s,u]=ue.useState(l),h=ue.useCallback(g=>u(m=>Nkt(g,m)),[]);return[s,u,h]}function aan({dimensions:l,lineWidth:s,variant:u,className:h}){return O.jsx("path",{strokeWidth:s,d:`M${l[0]/2} 0 V${l[1]} M0 ${l[1]/2} H${l[0]}`,className:fh(["react-flow__background-pattern",u,h])})}function fan({radius:l,className:s}){return O.jsx("circle",{cx:l,cy:l,r:l,className:fh(["react-flow__background-pattern","dots",s])})}var gO;(function(l){l.Lines="lines",l.Dots="dots",l.Cross="cross"})(gO||(gO={}));const han={[gO.Dots]:1,[gO.Lines]:1,[gO.Cross]:6},dan=l=>({transform:l.transform,patternId:`pattern-${l.rfId}`});function iOt({id:l,variant:s=gO.Dots,gap:u=20,size:h,lineWidth:g=1,offset:m=0,color:p,bgColor:k,style:S,className:C,patternClassName:N}){const _=ue.useRef(null),{transform:P,patternId:R}=ec(dan,na),q=h||han[s],F=s===gO.Dots,X=s===gO.Cross,J=Array.isArray(u)?u:[u,u],ee=[J[0]*P[2]||1,J[1]*P[2]||1],te=q*P[2],ie=Array.isArray(m)?m:[m,m],oe=X?[te,te]:ee,se=[ie[0]*P[2]||1+oe[0]/2,ie[1]*P[2]||1+oe[1]/2],ge=`${R}${l||""}`;return O.jsxs("svg",{className:fh(["react-flow__background",C]),style:{...S,...fde,"--xy-background-color-props":k,"--xy-background-pattern-color-props":p},ref:_,"data-testid":"rf__background",children:[O.jsx("pattern",{id:ge,x:P[0]%ee[0],y:P[1]%ee[1],width:ee[0],height:ee[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${se[0]},-${se[1]})`,children:F?O.jsx(fan,{radius:te/2,className:N}):O.jsx(aan,{dimensions:oe,lineWidth:g,variant:s,className:N})}),O.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${ge})`})]})}iOt.displayName="Background";const gan=ue.memo(iOt);function pan(){return O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:O.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function ban(){return O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:O.jsx("path",{d:"M0 0h32v4.2H0z"})})}function man(){return O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:O.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function wan(){return O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:O.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function van(){return O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:O.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function dfe({children:l,className:s,...u}){return O.jsx("button",{type:"button",className:fh(["react-flow__controls-button",s]),...u,children:l})}const yan=l=>({isInteractive:l.nodesDraggable||l.nodesConnectable||l.elementsSelectable,minZoomReached:l.transform[2]<=l.minZoom,maxZoomReached:l.transform[2]>=l.maxZoom,ariaLabelConfig:l.ariaLabelConfig});function rOt({style:l,showZoom:s=!0,showFitView:u=!0,showInteractive:h=!0,fitViewOptions:g,onZoomIn:m,onZoomOut:p,onFitView:k,onInteractiveChange:S,className:C,children:N,position:_="bottom-left",orientation:P="vertical","aria-label":R}){const q=ia(),{isInteractive:F,minZoomReached:X,maxZoomReached:J,ariaLabelConfig:ee}=ec(yan,na),{zoomIn:te,zoomOut:ie,fitView:oe}=JX(),se=()=>{te(),m==null||m()},ge=()=>{ie(),p==null||p()},Ne=()=>{oe(g),k==null||k()},qe=()=>{q.setState({nodesDraggable:!F,nodesConnectable:!F,elementsSelectable:!F}),S==null||S(!F)},Ke=P==="horizontal"?"horizontal":"vertical";return O.jsxs(ade,{className:fh(["react-flow__controls",Ke,C]),position:_,style:l,"data-testid":"rf__controls","aria-label":R??ee["controls.ariaLabel"],children:[s&&O.jsxs(O.Fragment,{children:[O.jsx(dfe,{onClick:se,className:"react-flow__controls-zoomin",title:ee["controls.zoomIn.ariaLabel"],"aria-label":ee["controls.zoomIn.ariaLabel"],disabled:J,children:O.jsx(pan,{})}),O.jsx(dfe,{onClick:ge,className:"react-flow__controls-zoomout",title:ee["controls.zoomOut.ariaLabel"],"aria-label":ee["controls.zoomOut.ariaLabel"],disabled:X,children:O.jsx(ban,{})})]}),u&&O.jsx(dfe,{className:"react-flow__controls-fitview",onClick:Ne,title:ee["controls.fitView.ariaLabel"],"aria-label":ee["controls.fitView.ariaLabel"],children:O.jsx(man,{})}),h&&O.jsx(dfe,{className:"react-flow__controls-interactive",onClick:qe,title:ee["controls.interactive.ariaLabel"],"aria-label":ee["controls.interactive.ariaLabel"],children:F?O.jsx(van,{}):O.jsx(wan,{})}),N]})}rOt.displayName="Controls";ue.memo(rOt);function xan({id:l,x:s,y:u,width:h,height:g,style:m,color:p,strokeColor:k,strokeWidth:S,className:C,borderRadius:N,shapeRendering:_,selected:P,onClick:R}){const{background:q,backgroundColor:F}=m||{},X=p||q||F;return O.jsx("rect",{className:fh(["react-flow__minimap-node",{selected:P},C]),x:s,y:u,rx:N,ry:N,width:h,height:g,style:{fill:X,stroke:k,strokeWidth:S},shapeRendering:_,onClick:R?J=>R(J,l):void 0})}const kan=ue.memo(xan),Oan=l=>l.nodes.map(s=>s.id),nCe=l=>l instanceof Function?l:()=>l;function San({nodeStrokeColor:l,nodeColor:s,nodeClassName:u="",nodeBorderRadius:h=5,nodeStrokeWidth:g,nodeComponent:m=kan,onClick:p}){const k=ec(Oan,na),S=nCe(s),C=nCe(l),N=nCe(u),_=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return O.jsx(O.Fragment,{children:k.map(P=>O.jsx(Tan,{id:P,nodeColorFunc:S,nodeStrokeColorFunc:C,nodeClassNameFunc:N,nodeBorderRadius:h,nodeStrokeWidth:g,NodeComponent:m,onClick:p,shapeRendering:_},P))})}function jan({id:l,nodeColorFunc:s,nodeStrokeColorFunc:u,nodeClassNameFunc:h,nodeBorderRadius:g,nodeStrokeWidth:m,shapeRendering:p,NodeComponent:k,onClick:S}){const{node:C,x:N,y:_,width:P,height:R}=ec(q=>{const{internals:F}=q.nodeLookup.get(l),X=F.userNode,{x:J,y:ee}=F.positionAbsolute,{width:te,height:ie}=yO(X);return{node:X,x:J,y:ee,width:te,height:ie}},na);return!C||C.hidden||!rkt(C)?null:O.jsx(k,{x:N,y:_,width:P,height:R,style:C.style,selected:!!C.selected,className:h(C),color:s(C),borderRadius:g,strokeColor:u(C),strokeWidth:m,shapeRendering:p,onClick:S,id:C.id})}const Tan=ue.memo(jan);var Ean=ue.memo(San);const Can=200,Man=150,Aan=l=>!l.hidden,Nan=l=>{const s={x:-l.transform[0]/l.transform[2],y:-l.transform[1]/l.transform[2],width:l.width/l.transform[2],height:l.height/l.transform[2]};return{viewBB:s,boundingRect:l.nodeLookup.size>0?ikt(QX(l.nodeLookup,{filter:Aan}),s):s,rfId:l.rfId,panZoom:l.panZoom,translateExtent:l.translateExtent,flowWidth:l.width,flowHeight:l.height,ariaLabelConfig:l.ariaLabelConfig}},_an="react-flow__minimap-desc";function sOt({style:l,className:s,nodeStrokeColor:u,nodeColor:h,nodeClassName:g="",nodeBorderRadius:m=5,nodeStrokeWidth:p,nodeComponent:k,bgColor:S,maskColor:C,maskStrokeColor:N,maskStrokeWidth:_,position:P="bottom-right",onClick:R,onNodeClick:q,pannable:F=!1,zoomable:X=!1,ariaLabel:J,inversePan:ee,zoomStep:te=1,offsetScale:ie=5}){const oe=ia(),se=ue.useRef(null),{boundingRect:ge,viewBB:Ne,rfId:qe,panZoom:Ke,translateExtent:Le,flowWidth:we,flowHeight:Z,ariaLabelConfig:pe}=ec(Nan,na),Re=(l==null?void 0:l.width)??Can,he=(l==null?void 0:l.height)??Man,Ee=ge.width/Re,Te=ge.height/he,ye=Math.max(Ee,Te),ft=ye*Re,Ce=ye*he,We=ie*ye,gt=ge.x-(ft-ge.width)/2-We,Ot=ge.y-(Ce-ge.height)/2-We,dt=ft+We*2,cn=Ce+We*2,dn=`${_an}-${qe}`,wn=ue.useRef(0),ni=ue.useRef();wn.current=ye,ue.useEffect(()=>{if(se.current&&Ke)return ni.current=Xcn({domNode:se.current,panZoom:Ke,getTransform:()=>oe.getState().transform,getViewScale:()=>wn.current}),()=>{var Ti;(Ti=ni.current)==null||Ti.destroy()}},[Ke]),ue.useEffect(()=>{var Ti;(Ti=ni.current)==null||Ti.update({translateExtent:Le,width:we,height:Z,inversePan:ee,pannable:F,zoomStep:te,zoomable:X})},[F,X,ee,te,Le,we,Z]);const nr=R?Ti=>{var qr;const[as,xo]=((qr=ni.current)==null?void 0:qr.pointer(Ti))||[0,0];R(Ti,{x:as,y:xo})}:void 0,ii=q?ue.useCallback((Ti,as)=>{const xo=oe.getState().nodeLookup.get(as).internals.userNode;q(Ti,xo)},[]):void 0,ji=J??pe["minimap.ariaLabel"];return O.jsx(ade,{position:P,style:{...l,"--xy-minimap-background-color-props":typeof S=="string"?S:void 0,"--xy-minimap-mask-background-color-props":typeof C=="string"?C:void 0,"--xy-minimap-mask-stroke-color-props":typeof N=="string"?N:void 0,"--xy-minimap-mask-stroke-width-props":typeof _=="number"?_*ye:void 0,"--xy-minimap-node-background-color-props":typeof h=="string"?h:void 0,"--xy-minimap-node-stroke-color-props":typeof u=="string"?u:void 0,"--xy-minimap-node-stroke-width-props":typeof p=="number"?p:void 0},className:fh(["react-flow__minimap",s]),"data-testid":"rf__minimap",children:O.jsxs("svg",{width:Re,height:he,viewBox:`${gt} ${Ot} ${dt} ${cn}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":dn,ref:se,onClick:nr,children:[ji&&O.jsx("title",{id:dn,children:ji}),O.jsx(Ean,{onClick:ii,nodeColor:h,nodeStrokeColor:u,nodeBorderRadius:m,nodeClassName:g,nodeStrokeWidth:p,nodeComponent:k}),O.jsx("path",{className:"react-flow__minimap-mask",d:`M${gt-We},${Ot-We}h${dt+We*2}v${cn+We*2}h${-dt-We*2}z
        M${Ne.x},${Ne.y}h${Ne.width}v${Ne.height}h${-Ne.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}sOt.displayName="MiniMap";ue.memo(sOt);const Dan=l=>s=>l?`${Math.max(1/s.transform[2],1)}`:void 0,Lan={[ZI.Line]:"right",[ZI.Handle]:"bottom-right"};function Pan({nodeId:l,position:s,variant:u=ZI.Handle,className:h,style:g=void 0,children:m,color:p,minWidth:k=10,minHeight:S=10,maxWidth:C=Number.MAX_VALUE,maxHeight:N=Number.MAX_VALUE,keepAspectRatio:_=!1,resizeDirection:P,autoScale:R=!0,shouldResize:q,onResizeStart:F,onResize:X,onResizeEnd:J}){const ee=Ikt(),te=typeof l=="string"?l:ee,ie=ia(),oe=ue.useRef(null),se=u===ZI.Handle,ge=ec(ue.useCallback(Dan(se&&R),[se,R]),na),Ne=ue.useRef(null),qe=s??Lan[u];ue.useEffect(()=>{if(!(!oe.current||!te))return Ne.current||(Ne.current=uln({domNode:oe.current,nodeId:te,getStoreItems:()=>{const{nodeLookup:Le,transform:we,snapGrid:Z,snapToGrid:pe,nodeOrigin:Re,domNode:he}=ie.getState();return{nodeLookup:Le,transform:we,snapGrid:Z,snapToGrid:pe,nodeOrigin:Re,paneDomNode:he}},onChange:(Le,we)=>{const{triggerNodeChanges:Z,nodeLookup:pe,parentLookup:Re,nodeOrigin:he}=ie.getState(),Ee=[],Te={x:Le.x,y:Le.y},ye=pe.get(te);if(ye&&ye.expandParent&&ye.parentId){const ft=ye.origin??he,Ce=Le.width??ye.measured.width??0,We=Le.height??ye.measured.height??0,gt={id:ye.id,parentId:ye.parentId,rect:{width:Ce,height:We,...skt({x:Le.x??ye.position.x,y:Le.y??ye.position.y},{width:Ce,height:We},ye.parentId,pe,ft)}},Ot=EAe([gt],pe,Re,he);Ee.push(...Ot),Te.x=Le.x?Math.max(ft[0]*Ce,Le.x):void 0,Te.y=Le.y?Math.max(ft[1]*We,Le.y):void 0}if(Te.x!==void 0&&Te.y!==void 0){const ft={id:te,type:"position",position:{...Te}};Ee.push(ft)}if(Le.width!==void 0&&Le.height!==void 0){const Ce={id:te,type:"dimensions",resizing:!0,setAttributes:P?P==="horizontal"?"width":"height":!0,dimensions:{width:Le.width,height:Le.height}};Ee.push(Ce)}for(const ft of we){const Ce={...ft,type:"position"};Ee.push(Ce)}Z(Ee)},onEnd:({width:Le,height:we})=>{const Z={id:te,type:"dimensions",resizing:!1,dimensions:{width:Le,height:we}};ie.getState().triggerNodeChanges([Z])}})),Ne.current.update({controlPosition:qe,boundaries:{minWidth:k,minHeight:S,maxWidth:C,maxHeight:N},keepAspectRatio:_,resizeDirection:P,onResizeStart:F,onResize:X,onResizeEnd:J,shouldResize:q}),()=>{var Le;(Le=Ne.current)==null||Le.destroy()}},[qe,k,S,C,N,_,F,X,J,q]);const Ke=qe.split("-");return O.jsx("div",{className:fh(["react-flow__resize-control","nodrag",...Ke,u,h]),ref:oe,style:{...g,scale:ge,...p&&{[se?"backgroundColor":"borderColor"]:p}},children:m})}ue.memo(Pan);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oOt=(...l)=>l.filter((s,u,h)=>!!s&&s.trim()!==""&&h.indexOf(s)===u).join(" ").trim();/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ian=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ran=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,u,h)=>h?h.toUpperCase():u.toLowerCase());/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jxt=l=>{const s=Ran(l);return s.charAt(0).toUpperCase()+s.slice(1)};/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var $an={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.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ban=l=>{for(const s in l)if(s.startsWith("aria-")||s==="role"||s==="title")return!0;return!1};/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zan=ue.forwardRef(({color:l="currentColor",size:s=24,strokeWidth:u=2,absoluteStrokeWidth:h,className:g="",children:m,iconNode:p,...k},S)=>ue.createElement("svg",{ref:S,...$an,width:s,height:s,stroke:l,strokeWidth:h?Number(u)*24/Number(s):u,className:oOt("lucide",g),...!m&&!Ban(k)&&{"aria-hidden":"true"},...k},[...p.map(([C,N])=>ue.createElement(C,N)),...Array.isArray(m)?m:[m]]));/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const br=(l,s)=>{const u=ue.forwardRef(({className:h,...g},m)=>ue.createElement(zan,{ref:m,iconNode:s,className:oOt(`lucide-${Ian(Jxt(l))}`,`lucide-${l}`,h),...g}));return u.displayName=Jxt(l),u};/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fan=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],qan=br("archive",Fan);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Han=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],Qan=br("arrow-down-to-line",Han);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Gan=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Uan=br("arrow-left",Gan);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jan=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],cOt=br("arrow-right",Jan);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Van=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],Vxt=br("brain-circuit",Van);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xan=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Wan=br("brain",Xan);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kan=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],yX=br("check",Kan);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yan=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],rg=br("chevron-down",Yan);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zan=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],MAe=br("chevron-left",Zan);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const efn=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],n5=br("chevron-right",efn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tfn=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],dde=br("chevron-up",tfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nfn=[["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"}]],fMe=br("circle-alert",nfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ifn=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],AAe=br("circle-check",ifn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rfn=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],sfn=br("circle-dot",rfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ofn=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],cfn=br("circle-x",ofn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lfn=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],lOt=br("clock",lfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ufn=[["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"}]],afn=br("copy",ufn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ffn=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],hfn=br("crosshair",ffn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dfn=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],NAe=br("database",dfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gfn=[["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"}]],pfn=br("external-link",gfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bfn=[["path",{d:"M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5",key:"4pqfef"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 12v-1",key:"1ej8lb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M8 7V6",key:"1nbb54"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]],mfn=br("file-archive",bfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wfn=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],uOt=br("file-code-corner",wfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vfn=[["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 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],aOt=br("file-text",vfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yfn=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],fOt=br("flask-conical",yfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xfn=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],kfn=br("folder",xfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ofn=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],hOt=br("git-branch",Ofn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sfn=[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]],dOt=br("git-fork",Sfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jfn=[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 18h.01",key:"h775k"}]],xhe=br("hard-drive-download",jfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Tfn=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],Efn=br("hard-drive",Tfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cfn=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],Mfn=br("hash",Cfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Afn=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Nfn=br("info",Afn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _fn=[["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"}]],gOt=br("layers",_fn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dfn=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],_Ae=br("link-2",Dfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lfn=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],i5=br("loader-circle",Lfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pfn=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],VX=br("package",Pfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ifn=[["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"}]],Rfn=br("panel-left-close",Ifn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $fn=[["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"}]],Bfn=br("panel-left-open",$fn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zfn=[["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"}]],Ffn=br("play",zfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qfn=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],mO=br("plus",qfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hfn=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],DAe=br("radio",Hfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qfn=[["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"}]],Gfn=br("redo-2",Qfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ufn=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],LAe=br("refresh-cw",Ufn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jfn=[["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"}]],Vfn=br("rotate-ccw",Jfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xfn=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],Wfn=br("rows-3",Xfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kfn=[["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"}]],Yfn=br("save",Kfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zfn=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]],ehn=br("scan",Zfn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const thn=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],XX=br("search",thn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nhn=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],pOt=br("sliders-horizontal",nhn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ihn=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],khe=br("table-2",ihn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rhn=[["path",{d:"M15 3v18",key:"14nvp0"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],shn=br("table-properties",rhn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ohn=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],DM=br("target",ohn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const chn=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],lhn=br("timer",chn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uhn=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],bOt=br("toggle-left",uhn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ahn=[["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"}]],R9=br("trash-2",ahn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fhn=[["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"}]],Xxt=br("trash",fhn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hhn=[["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"}]],Ty=br("triangle-alert",hhn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dhn=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],ghn=br("type",dhn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const phn=[["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"}]],bhn=br("undo-2",phn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mhn=[["rect",{width:"8",height:"6",x:"5",y:"4",rx:"1",key:"nzclkv"}],["rect",{width:"8",height:"6",x:"11",y:"14",rx:"1",key:"4tytwb"}]],whn=br("ungroup",mhn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vhn=[["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"}]],yhn=br("upload",vhn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xhn=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],r5=br("x",xhn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const khn=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Ohn=br("zoom-in",khn);/**
 * @license lucide-react v0.563.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Shn=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],jhn=br("zoom-out",Shn);function Thn({size:l=16,color:s="currentColor",className:u,style:h}){return O.jsxs("svg",{width:l,height:l,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:u,style:h,children:[O.jsx("rect",{x:"1",y:"8",width:"2",height:"6",rx:"0.5",fill:s,opacity:"0.7"}),O.jsx("rect",{x:"4",y:"4",width:"2",height:"10",rx:"0.5",fill:s,opacity:"0.85"}),O.jsx("rect",{x:"7",y:"2",width:"2",height:"12",rx:"0.5",fill:s}),O.jsx("rect",{x:"10",y:"5",width:"2",height:"9",rx:"0.5",fill:s,opacity:"0.85"}),O.jsx("rect",{x:"13",y:"7",width:"2",height:"7",rx:"0.5",fill:s,opacity:"0.7"})]})}const mOt=ue.memo(Thn),pi={API_INPUT:"apiInput",DATA_SOURCE:"dataSource",POLARS:"polars",MODEL_SCORE:"modelScore",BANDING:"banding",RATING_STEP:"ratingStep",OUTPUT:"output",DATA_SINK:"dataSink",EXTERNAL_FILE:"externalFile",LIVE_SWITCH:"liveSwitch",MODELLING:"modelling",OPTIMISER:"optimiser",OPTIMISER_APPLY:"optimiserApply",SCENARIO_EXPANDER:"scenarioExpander",CONSTANT:"constant",SUBMODEL:"submodel",SUBMODEL_PORT:"submodelPort"},Yw={[pi.API_INPUT]:{icon:DAe,color:"#E69F00",label:"QUOTE IN",name:"Quote Input",description:"Live API input for deployment (max 1)",defaultConfig:{path:""},shape:"pill"},[pi.LIVE_SWITCH]:{icon:bOt,color:"#E69F00",label:"SWITCH",name:"Source Switch",description:"Switch between live API and batch data",defaultConfig:{mode:"live"},shape:"pill"},[pi.OUTPUT]:{icon:sfn,color:"#D55E00",label:"QUOTE OUT",name:"Quote Response",description:"Final price / prediction",defaultConfig:{fields:[]},shape:"pill"},[pi.DATA_SOURCE]:{icon:NAe,color:"#00B386",label:"SOURCE",name:"Data Source",description:"Read from parquet, CSV, or Databricks table",defaultConfig:{path:""}},[pi.DATA_SINK]:{icon:xhe,color:"#00B386",label:"SINK",name:"Data Sink",description:"Write to parquet, CSV, or directory",defaultConfig:{path:"",format:"parquet"},maxInputs:1},[pi.EXTERNAL_FILE]:{icon:mfn,color:"#B07AA1",label:"LOAD FILE",name:"Load File",description:"Load a pickle, JSON, or joblib file and use in code",defaultConfig:{path:"",fileType:"pickle",code:""}},[pi.CONSTANT]:{icon:Mfn,color:"#94a3b8",label:"CONSTANT",name:"Constant",description:"Named constant values (1-row DataFrame)",defaultConfig:{values:[{name:"constant_1",value:"1.0"}]}},[pi.POLARS]:{icon:mOt,color:"#56B4E9",label:"POLARS",name:"Polars",description:"Polars transform / feature engineering",defaultConfig:{}},[pi.BANDING]:{icon:pOt,color:"#56B4E9",label:"BANDING",name:"Banding",description:"Group numerical or categorical values into bands",defaultConfig:{factors:[{banding:"continuous",column:"",outputColumn:"",rules:[],default:null}]},maxInputs:1},[pi.SCENARIO_EXPANDER]:{icon:Wfn,color:"#56B4E9",label:"EXPANDER",name:"Expander",description:"Cross-join rows with scenario values (price, tier, etc.)",defaultConfig:{},maxInputs:1},[pi.RATING_STEP]:{icon:shn,color:"#56B4E9",label:"RATING",name:"Rating Step",description:"Lookup, factor, cap/floor",defaultConfig:{tables:[{name:"Table 1",factors:[],outputColumn:"",defaultValue:"1.0",entries:[]}],operation:"multiply",combinedColumn:""},maxInputs:1},[pi.MODELLING]:{icon:fOt,color:"#CC79A7",label:"TRAINING",name:"Model Training",description:"Train a CatBoost or GLM model",defaultConfig:{},maxInputs:1},[pi.MODEL_SCORE]:{icon:Wan,color:"#CC79A7",label:"SCORING",name:"Model Scoring",description:"Score using an MLflow model",defaultConfig:{sourceType:"registered",registered_model:"",version:"latest",task:"regression",output_column:"prediction",code:""},maxInputs:1},[pi.OPTIMISER]:{icon:DM,color:"#D4B82A",label:"OPTIMISATION",name:"Optimisation",description:"Price optimisation via Lagrangian solver",defaultConfig:{mode:"online",objective:"",constraints:{},quote_id:"quote_id",scenario_index:"scenario_index",scenario_value:"scenario_value",max_iter:50,tolerance:1e-6}},[pi.OPTIMISER_APPLY]:{icon:hfn,color:"#D4B82A",label:"APPLY OPT",name:"Apply Optimisation",description:"Apply saved optimisation results (lambdas or factor tables)",defaultConfig:{sourceType:"file",artifact_path:"",version_column:"__optimiser_version__"}},[pi.SUBMODEL]:{icon:VX,color:"#7B8DA0",label:"SUBMODEL",name:"Submodel",description:"Reusable sub-pipeline",defaultConfig:{}},[pi.SUBMODEL_PORT]:{icon:cOt,color:"#94a3b8",label:"PORT",name:"Port",description:"Submodel input/output port",defaultConfig:{}}},Wxt=new Set([pi.API_INPUT,pi.OUTPUT]),Ehn=new Set([pi.DATA_SOURCE,pi.API_INPUT,pi.CONSTANT]),Chn=new Set([pi.OUTPUT,pi.DATA_SINK,pi.MODELLING,pi.OPTIMISER]),Mhn=[pi.API_INPUT,pi.LIVE_SWITCH,pi.OUTPUT,pi.DATA_SOURCE,pi.DATA_SINK,pi.EXTERNAL_FILE,pi.CONSTANT,pi.POLARS,pi.SCENARIO_EXPANDER,pi.BANDING,pi.RATING_STEP,pi.MODELLING,pi.MODEL_SCORE,pi.OPTIMISER,pi.OPTIMISER_APPLY],Ahn=Object.fromEntries(Object.entries(Yw).map(([l,s])=>[l,s.icon])),Ohe=Object.fromEntries(Object.entries(Yw).map(([l,s])=>[l,s.color])),wOt=Object.fromEntries(Object.entries(Yw).map(([l,s])=>[l,s.label])),Nhn=new Set(Object.entries(Yw).filter(([,l])=>l.shape==="pill").map(([l])=>l));function PAe(l,s=4){return l==null?"null":typeof l=="number"?Number.isInteger(l)?l.toLocaleString():l.toLocaleString(void 0,{maximumFractionDigits:s}):String(l)}function _hn(l){const s=PAe(l);return s.length>20?s.slice(0,18)+"…":s}function LM(l){return Math.abs(l)>=1e6?(l/1e6).toFixed(2)+"M":Math.abs(l)>=1e3?(l/1e3).toFixed(1)+"K":l.toFixed(4)}function Wfe(l,s){return typeof l=="number"&&Number.isFinite(l)?l.toFixed(s):"N/A"}function vOt(l){if(l<60)return`${l.toFixed(0)}s`;const s=Math.floor(l/60),u=Math.floor(l%60);return`${s}m ${u}s`}const Kxt=l=>{let s;const u=new Set,h=(C,N)=>{const _=typeof C=="function"?C(s):C;if(!Object.is(_,s)){const P=s;s=N??(typeof _!="object"||_===null)?_:Object.assign({},s,_),u.forEach(R=>R(s,P))}},g=()=>s,k={setState:h,getState:g,getInitialState:()=>S,subscribe:C=>(u.add(C),()=>u.delete(C))},S=s=l(h,g,k);return k},Dhn=(l=>l?Kxt(l):Kxt),Lhn=l=>l;function Phn(l,s=Lhn){const u=XV.useSyncExternalStore(l.subscribe,XV.useCallback(()=>s(l.getState()),[l,s]),XV.useCallback(()=>s(l.getInitialState()),[l,s]));return XV.useDebugValue(u),u}const Ihn=l=>{const s=Dhn(l),u=h=>Phn(s,h);return Object.assign(u,s),u},gde=(l=>Ihn);class wO extends Error{constructor(u,h,g){super(u);REe(this,"status");REe(this,"detail");this.name="ApiError",this.status=h,this.detail=g}}async function zl(l,s={}){const{timeout:u=3e4,signal:h,...g}=s,m=new AbortController,p=setTimeout(()=>m.abort(),u);h&&(h.aborted?m.abort():h.addEventListener("abort",()=>m.abort(),{once:!0}));try{const k=await fetch(l,{...g,signal:m.signal});if(!k.ok){let S;try{const C=await k.json(),N=C.detail??C;S=typeof N=="string"?N:JSON.stringify(N)}catch{S=k.statusText}throw new wO(`HTTP ${k.status}`,k.status,S)}return await k.json()}finally{clearTimeout(p)}}function ra(l,s,u={}){return zl(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s),...u})}function IAe(l,s={}){return zl(l,{method:"DELETE",...s})}function Rhn(l){return zl("/api/pipeline",l).catch(s=>{if(s instanceof wO&&s.status===404)return{nodes:[],edges:[]};throw s})}function Kfe(l,s,u,h,g){return ra("/api/pipeline/preview",{graph:l,node_id:s,row_limit:u,source:h??"live"},{timeout:12e4,...g})}function $hn(l,s){return ra("/api/pipeline/save",l,s)}function Bhn(l,s){return ra("/api/pipeline/trace",l,{timeout:12e4,...s})}function zhn(l,s,u,h){return ra("/api/pipeline/sink",{graph:l,node_id:s,source:u??"live"},{timeout:3e5,...h})}function Fhn(l,s){return ra("/api/submodel/create",l,s)}function qhn(l,s){return zl(`/api/submodel/${encodeURIComponent(l)}`,s)}function Hhn(l,s){return ra("/api/submodel/dissolve",l,s)}function Qhn(l,s){return zl(`/api/schema?path=${encodeURIComponent(l)}`,s)}function Ghn(l){return zl("/api/modelling/mlflow/check",l)}function Uhn(l,s){return zl(`/api/modelling/train/status/${encodeURIComponent(l)}`,s)}function Jhn(l,s){return ra("/api/modelling/train",{...l,source:l.source??"live"},{...s,timeout:6e5})}function Vhn(l,s){return ra("/api/modelling/estimate",{...l,source:l.source??"live"},{timeout:3e4,...s})}function Xhn(l,s){return ra("/api/modelling/mlflow/log",l,{timeout:6e5,...s})}function Whn(l,s){return ra("/api/optimiser/solve",l,{timeout:3e5,...s})}function Khn(l,s){return zl(`/api/optimiser/solve/status/${encodeURIComponent(l)}`,s)}function Yhn(l,s){return ra("/api/optimiser/save",l,s)}function Zhn(l,s){return ra("/api/optimiser/mlflow/log",l,s)}function iCe(l,s){return ra("/api/optimiser/frontier/select",l,s)}function edn(l){return zl("/api/databricks/warehouses",l)}function tdn(l){return zl("/api/databricks/catalogs",l)}function ndn(l,s){return zl(`/api/databricks/schemas?catalog=${encodeURIComponent(l)}`,s)}function idn(l,s,u){return zl(`/api/databricks/tables?catalog=${encodeURIComponent(l)}&schema=${encodeURIComponent(s)}`,u)}function rdn(l,s){return zl(`/api/databricks/cache?table=${encodeURIComponent(l)}`,s)}function sdn(l,s){return zl(`/api/databricks/fetch/progress?table=${encodeURIComponent(l)}`,s)}function odn(l,s){return ra("/api/databricks/fetch",l,{timeout:3e5,...s})}function cdn(l,s){return IAe(`/api/databricks/cache?table=${encodeURIComponent(l)}`,s)}function ldn(l,s){return ra("/api/json-cache/build",l,{timeout:18e5,...s})}function udn(l,s){return ra("/api/json-cache/cancel",{path:l},s)}function adn(l,s){return zl(`/api/json-cache/progress?path=${encodeURIComponent(l)}`,s)}function fdn(l,s){return zl(`/api/json-cache/status?path=${encodeURIComponent(l)}`,s)}function hdn(l,s){return IAe(`/api/json-cache?path=${encodeURIComponent(l)}`,s)}function ddn(l){return zl("/api/mlflow/experiments",l)}function gdn(l,s,u){const h=new URLSearchParams({experiment_id:l});return s&&h.set("artifact_filter",s),zl(`/api/mlflow/runs?${h.toString()}`,u)}function pdn(l){return zl("/api/mlflow/models",l)}function bdn(l,s){return zl(`/api/mlflow/model-versions?model_name=${encodeURIComponent(l)}`,s)}function mdn(l){return zl("/api/utility",l)}function wdn(l,s){return zl(`/api/utility/${encodeURIComponent(l)}`,s)}function vdn(l,s){return ra("/api/utility",l,s)}function ydn(l,s,u){return zl(`/api/utility/${encodeURIComponent(l)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:s}),...u})}function xdn(l,s){return IAe(`/api/utility/${encodeURIComponent(l)}`,s)}function kdn(l,s,u){const h=new URLSearchParams({dir:l});return s&&h.set("extensions",s),zl(`/api/files?${h.toString()}`,u)}function Odn(l){return zl("/api/git/status",l)}function Sdn(l){return zl("/api/git/branches",l)}function jdn(l,s){return ra("/api/git/branches",{description:l},s)}function Tdn(l,s){return ra("/api/git/switch",{branch:l},s)}function Edn(l){return ra("/api/git/save",{},l)}function Cdn(l){return ra("/api/git/submit",{},l)}function Mdn(l,s){const u=`?limit=${l}`;return zl(`/api/git/history${u}`,s)}function Adn(l,s){return ra("/api/git/revert",{sha:l},s)}function Ndn(l){return ra("/api/git/pull",{},l)}function _dn(l,s){return ra("/api/git/archive",{branch:l},s)}function Ddn(l,s){return zl("/api/git/branches",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({branch:l}),...s})}const Sc=gde()((l,s)=>({rowLimit:100,setRowLimit:u=>l({rowLimit:u}),collapsedSections:{},toggleSection:u=>l(h=>({collapsedSections:{...h.collapsedSections,[u]:!h.collapsedSections[u]}})),isSectionOpen:(u,h=!1)=>{const g=s().collapsedSections[u];return g===void 0?h:g},mlflow:{status:"pending",backend:"",host:""},_mlflowFetching:!1,_mlflowLastAttempt:0,fetchMlflow:()=>{const u=s(),h=u.mlflow.status==="error"&&Date.now()-u._mlflowLastAttempt>=1e4;if(u._mlflowFetching||u.mlflow.status!=="pending"&&!h)return;l({_mlflowFetching:!0,_mlflowLastAttempt:Date.now()});const g=new Promise((m,p)=>setTimeout(()=>p(new Error("MLflow check timed out after 5s")),5e3));Promise.race([Ghn(),g]).then(m=>{m.mlflow_installed?l({mlflow:{status:"connected",backend:m.backend||"local",host:m.databricks_host||""}}):l({mlflow:{status:"error",backend:"",host:""}})}).catch(m=>{console.warn("MLflow check failed:",m),l({mlflow:{status:"error",backend:"",host:""}})}).finally(()=>{l({_mlflowFetching:!1})})},sources:["live"],activeSource:"live",setSources:u=>l({sources:u}),setActiveSource:u=>l({activeSource:u}),addSource:u=>{const h=u.trim().toLowerCase().replace(/\s+/g,"_"),g=s().sources;return!h||g.includes(h)?null:(l({sources:[...g,h]}),h)},removeSource:u=>l(h=>u==="live"?h:{sources:h.sources.filter(m=>m!==u),activeSource:h.activeSource===u?"live":h.activeSource}),fileListCache:{},setFileListCache:(u,h)=>l(g=>({fileListCache:{...g.fileListCache,[u]:{items:h,fetchedAt:Date.now()}}})),getFileListCache:u=>{const h=s().fileListCache[u];return!h||Date.now()-h.fetchedAt>3e4?null:h.items}}));function Ldn(){const l=Sc(s=>s.mlflow);return{mlflowStatus:l.status==="pending"?"loading":l.status,mlflowBackend:l.backend}}const Pdn={ok:"#22c55e",error:"#ef4444",running:"#6366f1"};function Idn({accent:l}){return Sc(u=>u.activeSource)!=="live"?null:O.jsx("span",{className:"ml-auto inline-flex items-center px-1.5 py-0.5 rounded-full text-[9px] font-bold uppercase tracking-[0.08em] shrink-0",style:{background:`${l}1f`,color:l,border:`1px solid ${l}33`},children:"LIVE"})}const Rdn=l=>{const s=l.transform[2];return s>.55?"full":s>.3?"medium":"compact"};function $dn({data:l,selected:s}){var Ke,Le,we;const u=l,h=u.nodeType||pi.POLARS,g=Ahn[h]||mOt,m=Ohe[h]||Ohe[pi.POLARS],p=wOt[h]||"NODE",k=h===pi.API_INPUT,S=h===pi.LIVE_SWITCH,C=!!((Ke=u.config)!=null&&Ke.instanceOf),N=Ehn.has(h),_=Chn.has(h),P=Nhn.has(h),R=!!u._traceActive,q=!!u._traceDimmed,F=!!u._hoverDimmed,X=u._traceValue,J=ec(Rdn),ee=q||F,te=((Le=Yw[h])==null?void 0:Le.name)||p,ie=u._status?`, status: ${u._status}`:"",oe=`${te} node: ${u.label}${ie}${C?", instance":""}${R?", trace active":""}`;if(J==="compact")return O.jsxs("div",{"aria-label":oe,role:"button",className:`relative min-w-[120px] max-w-[160px] cursor-pointer ${P?"rounded-full":"rounded-lg"}`,style:{background:`linear-gradient(${m}28, ${m}1a), var(--bg-elevated)`,border:s?`3px solid ${m}`:`3px solid ${m}40`,boxShadow:"var(--node-shadow)",opacity:ee?.25:1,transition:"opacity 0.2s ease"},children:[!N&&O.jsx(ig,{type:"target",position:ir.Left}),O.jsxs("div",{className:"flex items-center gap-2 pl-3 pr-2.5 py-2",children:[O.jsx(g,{size:14,style:{color:m},className:"shrink-0"}),O.jsx("div",{className:"font-bold text-[12px] leading-tight truncate",style:{color:"var(--text-primary)"},children:u.label})]}),!_&&O.jsx(ig,{type:"source",position:ir.Right})]});const se=R||s?`3px solid ${m}`:C?`3px dashed ${m}60`:`3px solid ${m}30`,ge=R?`0 0 12px ${m}40, var(--node-shadow)`:"var(--node-shadow)",Ne={background:"var(--bg-elevated)",border:se,boxShadow:ge,opacity:ee?.25:1,transition:"border-color 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease"},qe=P?"15px 15px 0 0":"11px 11px 0 0";return J==="medium"?O.jsxs("div",{"aria-label":oe,role:"button",className:`relative min-w-[180px] max-w-[260px] cursor-pointer ${P?"rounded-2xl":"rounded-xl"}`,style:Ne,children:[!N&&O.jsx(ig,{type:"target",position:ir.Left}),O.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5",style:{background:`${m}30`,borderRadius:qe},children:[O.jsx(g,{size:14,style:{color:m},className:"shrink-0"}),O.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em] shrink-0",style:{color:m},children:p})]}),O.jsx("div",{className:"px-3 py-1.5",children:O.jsx("div",{className:"font-semibold text-[13px] leading-tight truncate",style:{color:"var(--text-primary)"},children:u.label})}),!_&&O.jsx(ig,{type:"source",position:ir.Right})]}):O.jsxs("div",{"aria-label":oe,role:"button",className:`relative min-w-[180px] max-w-[260px] cursor-pointer ${P?"rounded-2xl":"rounded-xl"}`,style:Ne,children:[!N&&O.jsx(ig,{type:"target",position:ir.Left}),O.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5",style:{background:`${m}30`,borderRadius:qe},children:[O.jsx(g,{size:16,style:{color:m},className:"shrink-0"}),O.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em] shrink-0",style:{color:m},children:p}),C&&O.jsxs("span",{className:"ml-auto inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded-full text-[9px] font-bold uppercase tracking-[0.08em] shrink-0",style:{background:`${m}15`,color:m,border:`1px solid ${m}25`},title:`Instance of ${(we=u.config)==null?void 0:we.instanceOf}`,children:[O.jsx(_Ae,{size:8}),"Instance"]}),k&&O.jsxs("span",{className:"ml-auto inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded-full text-[9px] font-bold uppercase tracking-[0.08em] shrink-0",style:{background:`${m}1f`,color:m,border:`1px solid ${m}33`},children:[O.jsx(DAe,{size:8}),"API"]}),S&&O.jsx(Idn,{accent:m}),u._status&&O.jsx("span",{className:`${k?"":"ml-auto "} w-[7px] h-[7px] rounded-full shrink-0 ${u._status==="running"?"animate-pulse-dot":""}`,style:{backgroundColor:Pdn[u._status]},role:"status","aria-label":`Node ${u._status}`})]}),O.jsxs("div",{className:"px-3 py-2",children:[O.jsx("div",{className:"font-semibold text-[13px] leading-tight truncate",style:{color:"var(--text-primary)"},children:u.label}),R&&X!==void 0&&O.jsx("div",{className:"mt-1 px-1.5 py-0.5 rounded text-[11px] font-mono truncate",style:{background:`${m}18`,color:m,border:`1px solid ${m}30`,maxWidth:"100%"},children:_hn(X)})]}),!_&&O.jsx(ig,{type:"source",position:ir.Right})]})}const c0=ue.memo($dn),iO=Ohe.submodel||"#64748b";function Bdn({data:l,selected:s}){const u=l,h=u.config||{},g=h.inputPorts||[],m=h.outputPorts||[],p=(h.childNodeIds||[]).length,k=!!u._traceActive,S=!!u._traceDimmed;return O.jsxs("div",{"aria-label":`Submodel node: ${u.label}, ${p} child nodes${k?", trace active":""}`,role:"button",className:"relative rounded-xl min-w-[200px] max-w-[280px] cursor-pointer",style:{background:"var(--bg-elevated)",border:k?`1.5px solid ${iO}`:s?`1.5px solid ${iO}`:"1.5px dashed var(--border-bright)",boxShadow:k?`0 0 12px ${iO}40, var(--node-shadow)`:"var(--node-shadow)",opacity:S?.3:1,transition:"border-color 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease"},children:[O.jsx("div",{className:"absolute left-0 top-3 bottom-3 w-[3px] rounded-full",style:{backgroundColor:iO,opacity:s?1:.6,transition:"opacity 0.2s ease"}}),g.map(C=>O.jsx(ig,{id:`in__${C}`,type:"target",position:ir.Left,style:{top:"50%",opacity:0,width:0,height:0,pointerEvents:"none"}},`in__${C}`)),O.jsx(ig,{type:"target",position:ir.Left}),O.jsxs("div",{className:"pl-4 pr-3 py-2.5",children:[O.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[O.jsx(VX,{size:12,style:{color:iO},className:"shrink-0 opacity-80"}),O.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em] shrink-0",style:{color:iO,opacity:.8},children:"SUBMODEL"}),O.jsxs("span",{className:"ml-auto text-[9px] font-mono px-1.5 py-0.5 rounded-full",style:{background:`${iO}18`,color:iO,border:`1px solid ${iO}30`},children:[p," nodes"]})]}),O.jsx("div",{className:"font-semibold text-[13px] leading-tight truncate",style:{color:"var(--text-primary)"},children:u.label}),h.file&&O.jsx("div",{className:"text-[10px] truncate mt-0.5",style:{color:"var(--text-muted)"},children:h.file}),m.length>0&&O.jsx("div",{className:"flex flex-col gap-0.5 items-end mt-1.5",children:m.map(C=>O.jsxs("span",{className:"text-[9px] font-mono",style:{color:"var(--text-muted)"},children:[C," →"]},C))})]}),m.length>0?m.map((C,N)=>O.jsx(ig,{id:`out__${C}`,type:"source",position:ir.Right,style:{top:`${(N+1)/(m.length+1)*100}%`}},`out__${C}`)):O.jsx(ig,{type:"source",position:ir.Right})]})}const zdn=ue.memo(Bdn),rCe="#94a3b8";function Fdn({data:l}){const s=l,u=s.portDirection==="input",h=u?cOt:Uan,g=!!s._traceActive,m=!!s._traceDimmed;return O.jsxs("div",{className:"relative rounded-full px-4 py-2 flex items-center gap-2 min-w-[120px]",style:{background:"var(--bg-elevated)",border:g?"1.5px solid var(--accent)":`1.5px dashed ${rCe}40`,boxShadow:g?"0 0 10px rgba(96,165,250,.35)":"none",opacity:m?.3:.85,transition:"border-color 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease"},children:[!u&&O.jsx(ig,{type:"target",position:ir.Left}),O.jsx(h,{size:12,style:{color:rCe},className:"shrink-0"}),O.jsx("span",{className:"text-[11px] font-mono font-medium truncate",style:{color:rCe},children:s.portName||s.label}),u&&O.jsx(ig,{type:"source",position:ir.Right})]})}const qdn=ue.memo(Fdn);function Hdn(l,s){const u=Yw[s];l.dataTransfer.setData("application/reactflow-type",s),l.dataTransfer.setData("application/reactflow-config",JSON.stringify(u.defaultConfig)),l.dataTransfer.effectAllowed="move"}function Qdn({onCollapse:l,nodes:s}){const u=new Set;if(s)for(const h of s){const g=h.data.nodeType;g&&Wxt.has(g)&&u.add(g)}return O.jsxs("div",{className:"w-[180px] h-full overflow-y-auto shrink-0 flex flex-col",style:{background:"var(--chrome)",borderRight:"1px solid var(--chrome-border)"},children:[O.jsxs("div",{className:"px-4 py-3 flex items-center justify-between",children:[O.jsx("h2",{className:"text-[11px] font-bold uppercase tracking-[0.1em]",style:{color:"var(--text-muted)"},children:"Nodes"}),l&&O.jsx("button",{onClick:l,className:"p-0.5 rounded transition-colors",style:{color:"var(--text-muted)"},onMouseEnter:h=>{h.currentTarget.style.background="var(--chrome-hover)",h.currentTarget.style.color="var(--text-secondary)"},onMouseLeave:h=>{h.currentTarget.style.background="transparent",h.currentTarget.style.color="var(--text-muted)"},title:"Collapse palette",children:O.jsx(Rfn,{size:14})})]}),O.jsx("div",{className:"px-2 space-y-0.5 flex-1",children:Mhn.map(h=>{const g=Yw[h],m=g.icon,p=Wxt.has(h)&&u.has(h);return O.jsxs("div",{draggable:!p,onDragStart:k=>{p||Hdn(k,h)},className:`flex items-center gap-2.5 px-2.5 py-2 rounded-lg transition-colors ${p?"opacity-35 cursor-not-allowed":"cursor-grab active:cursor-grabbing"}`,style:{"--hover-bg":"var(--chrome-hover)"},onMouseEnter:k=>{p||(k.currentTarget.style.background="var(--chrome-hover)")},onMouseLeave:k=>k.currentTarget.style.background="transparent",title:p?`Only one ${g.name} allowed per pipeline`:g.description,children:[O.jsx("div",{className:"w-6 h-6 rounded-md flex items-center justify-center shrink-0",style:{background:`${g.color}18`},children:O.jsx(m,{size:13,style:{color:g.color}})}),O.jsx("span",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:g.name})]},h)})})]})}function hMe(l){let s=l.trim().replace(/[\s-]/g,"_");return s=s.replace(/[^a-zA-Z0-9_]/g,""),s&&/^[0-9]/.test(s)&&(s=`node_${s}`),s||"unnamed_node"}function Gdn(l){let s=5381;for(let u=0;u<l.length;u++)s=(s<<5)+s+l.charCodeAt(u)|0;return(s>>>0).toString(36)}function yOt(l){const{_nodeId:s,_columns:u,_schemaWarnings:h,...g}=l;return Gdn(JSON.stringify(g))}const Oc=gde()((l,s)=>({previews:{},columnCache:{},solveResults:{},solveJobs:{},trainResults:{},trainJobs:{},graphVersion:0,setColumns:(u,h,g,m)=>{const p=m?`${u}:${m}`:u;l(k=>({columnCache:{...k.columnCache,[p]:{columns:h,graphVersion:g}}}))},getColumns:(u,h)=>{const g=h?`${u}:${h}`:u,m=s().columnCache[g];return m?{columns:m.columns,fresh:m.graphVersion===s().graphVersion}:null},setPreview:(u,h,g)=>l(m=>({previews:{...m.previews,[u]:{data:h,graphVersion:g}}})),getPreview:u=>s().previews[u]??null,bumpGraphVersion:()=>l(u=>({graphVersion:u.graphVersion+1})),startSolveJob:(u,h,g,m,p)=>l(k=>({solveJobs:{...k.solveJobs,[u]:{jobId:h,nodeId:u,nodeLabel:g,progress:null,error:null,constraints:m,configHash:p}}})),updateSolveProgress:(u,h)=>l(g=>{const m=g.solveJobs[u];return m?{solveJobs:{...g.solveJobs,[u]:{...m,progress:h}}}:g}),completeSolveJob:(u,h)=>l(g=>{var N;const m=g.solveJobs[u];if(!m)return g;const{[u]:p,...k}=g.solveJobs,S=h.frontier,C=S&&((N=S.points)!=null&&N.length)?{points:S.points,n_points:S.n_points,constraint_names:S.constraint_names}:null;return{solveJobs:k,solveResults:{...g.solveResults,[u]:{result:h,originalResult:h,jobId:m.jobId,configHash:m.configHash,constraints:m.constraints,nodeLabel:m.nodeLabel,frontier:C,selectedPointIndex:null}}}}),failSolveJob:(u,h)=>l(g=>{const m=g.solveJobs[u];return m?{solveJobs:{...g.solveJobs,[u]:{...m,progress:null,error:h}}}:g}),selectFrontierPoint:(u,h)=>l(g=>{const m=g.solveResults[u];return m?{solveResults:{...g.solveResults,[u]:{...m,selectedPointIndex:h,...h===null?{result:m.originalResult}:{}}}}:g}),updateFrontierAfterSelect:(u,h,g)=>l(m=>{const p=m.solveResults[u];return p?{solveResults:{...m.solveResults,[u]:{...p,selectedPointIndex:h,result:{...p.result,total_objective:g.total_objective,constraints:g.constraints,baseline_objective:g.baseline_objective,baseline_constraints:g.baseline_constraints,lambdas:g.lambdas,converged:g.converged}}}}:m}),startTrainJob:(u,h,g,m)=>l(p=>({trainJobs:{...p.trainJobs,[u]:{jobId:h,nodeId:u,nodeLabel:g,progress:null,error:null,configHash:m}}})),updateTrainProgress:(u,h)=>l(g=>{const m=g.trainJobs[u];return m?{trainJobs:{...g.trainJobs,[u]:{...m,progress:h}}}:g}),completeTrainJob:(u,h)=>l(g=>{const m=g.trainJobs[u],{[u]:p,...k}=g.trainJobs;return{trainJobs:k,trainResults:{...g.trainResults,[u]:{result:h,jobId:(m==null?void 0:m.jobId)??"",configHash:(m==null?void 0:m.configHash)??""}}}}),failTrainJob:(u,h)=>l(g=>{const m=g.trainJobs[u];return m?{trainJobs:{...g.trainJobs,[u]:{...m,progress:null,error:h}}}:g}),getOptimiserPreview:u=>{const h=s().solveResults[u];return h?{result:h.result,jobId:h.jobId,constraints:h.constraints,nodeLabel:h.nodeLabel,frontier:h.frontier,selectedPointIndex:h.selectedPointIndex}:null},getModellingPreview:u=>{const h=s().trainResults[u];if(!h||h.result.status==="error")return null;const g=s().trainJobs[u];return{result:h.result,jobId:h.jobId,nodeLabel:(g==null?void 0:g.nodeLabel)??"Model",configHash:h.configHash}},clearNode:u=>l(h=>{const{[u]:g,...m}=h.previews,{[u]:p,...k}=h.columnCache,{[u]:S,...C}=h.solveResults,{[u]:N,..._}=h.solveJobs,{[u]:P,...R}=h.trainResults,{[u]:q,...F}=h.trainJobs;return{previews:m,columnCache:k,solveResults:C,solveJobs:_,trainResults:R,trainJobs:F}})})),Ay=gde()((l,s)=>({toasts:[],_toastCounter:0,addToast:(u,h)=>{const g=String(s()._toastCounter+1);l(m=>({_toastCounter:m._toastCounter+1,toasts:[...m.toasts,{id:g,type:u,text:h}]}))},dismissToast:u=>l(h=>({toasts:h.toasts.filter(g=>g.id!==u)}))}));function Rn(l,s,u){return l[s]??u}function xX(l,s,u,h){return{nodes:l.map(g=>({id:g.id,type:g.type||g.data.nodeType,data:g.data,position:{x:0,y:0}})),edges:s,submodels:u,preamble:h}}function Yfe(l,s,u,h){return s.current?{nodes:s.current.nodes,edges:s.current.edges,submodels:s.current.submodels,preamble:h.current}:{nodes:l.current.nodes,edges:l.current.edges,submodels:u.current,preamble:h.current}}function A9(l){return{background:l?"rgba(168,85,247,.15)":"var(--chrome-hover)",color:l?"#a855f7":"var(--text-muted)",border:`1px solid ${l?"rgba(168,85,247,.3)":"transparent"}`}}const Udn=["RMSE","MAE","Poisson","Tweedie"],Jdn=["Logloss","CrossEntropy"],Vdn=["gini","rmse","mae","mse","r2","poisson_deviance","tweedie_deviance"],Xdn=["auc","logloss"],Wdn={gini:"Gini",rmse:"RMSE",mae:"MAE",mse:"MSE",r2:"R²",poisson_deviance:"Poisson Deviance",tweedie_deviance:"Tweedie Deviance",auc:"AUC",logloss:"Logloss"};function Kdn({config:l,onUpdate:s,columns:u,target:h,weight:g,task:m,metrics:p}){const k=m==="classification"?Jdn:Udn,S=m==="classification"?Xdn:Vdn;return O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Target & Weight"}),O.jsxs("div",{className:"mt-1.5 space-y-2",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"Target column"}),O.jsxs("select",{value:h,onChange:C=>s("target",C.target.value),className:"w-full mt-0.5 px-2.5 py-1.5 rounded-lg text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:[O.jsx("option",{value:"",children:"Select target..."}),u.map(C=>O.jsxs("option",{value:C.name,children:[C.name," (",C.dtype,")"]},C.name))]})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"Weight column (optional)"}),O.jsxs("select",{value:g,onChange:C=>s("weight",C.target.value),className:"w-full mt-0.5 px-2.5 py-1.5 rounded-lg text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:[O.jsx("option",{value:"",children:"None"}),u.map(C=>O.jsx("option",{value:C.name,children:C.name},C.name))]})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"Offset column (optional, e.g. log-exposure)"}),O.jsxs("select",{value:Rn(l,"offset",""),onChange:C=>s("offset",C.target.value||null),className:"w-full mt-0.5 px-2.5 py-1.5 rounded-lg text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:[O.jsx("option",{value:"",children:"None"}),u.map(C=>O.jsx("option",{value:C.name,children:C.name},C.name))]})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"Task"}),O.jsx("div",{className:"flex gap-2 mt-0.5",children:["regression","classification"].map(C=>O.jsx("button",{onClick:()=>{s({task:C,metrics:C==="regression"?["gini","rmse"]:["auc","logloss"],loss_function:null})},className:"px-3 py-1 rounded-md text-xs font-medium transition-colors",style:{background:m===C?"var(--accent-soft)":"var(--bg-input)",color:m===C?"var(--accent)":"var(--text-secondary)",border:`1px solid ${m===C?"var(--accent)":"var(--border)"}`},children:C},C))})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Loss Function"}),O.jsx("div",{className:"mt-1.5 flex flex-wrap gap-1.5",children:k.map(C=>{const _=Rn(l,"loss_function","")===C;return O.jsx("button",{onClick:()=>s("loss_function",_?null:C),className:"px-2.5 py-1 rounded-md text-xs font-mono transition-colors",style:A9(_),children:C},C)})}),Rn(l,"loss_function","")==="Tweedie"&&O.jsxs("div",{className:"mt-2",children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Variance power (1.0=Poisson, 2.0=Gamma)"}),O.jsx("input",{type:"range",min:1,max:2,step:.05,value:Rn(l,"variance_power",1.5),onChange:C=>s("variance_power",parseFloat(C.target.value)),className:"w-full mt-0.5"}),O.jsx("div",{className:"text-[11px] font-mono text-right",style:{color:"var(--text-muted)"},children:Rn(l,"variance_power",1.5).toFixed(2)})]})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Metrics"}),O.jsx("div",{className:"mt-1.5 flex flex-wrap gap-1.5",children:S.map(C=>{const N=p.includes(C);return O.jsx("button",{onClick:()=>{const _=N?p.filter(P=>P!==C):[...p,C];s("metrics",_)},className:"px-2.5 py-1 rounded-md text-xs font-mono transition-colors",style:A9(N),children:Wdn[C]??C},C)})})]})]})]})}const Ydn={iterations:1e3,learning_rate:.05,depth:6,l2_leaf_reg:3,early_stopping_rounds:50};function Zdn({onUpdate:l,columns:s,target:u,weight:h,exclude:g,params:m,featureCount:p,featuresOpen:k,toggleSection:S}){const C=m.task_type==="GPU",{task_type:N,..._}=m,P=Object.keys(_).length>0?_:Ydn,[R,q]=ue.useState(JSON.stringify(P,null,2)),[F,X]=ue.useState(null),J=JSON.stringify(P,null,2),[ee,te]=ue.useState(J);J!==ee&&(q(J),te(J),X(null));const ie=se=>{try{const ge=JSON.parse(se);if(typeof ge!="object"||ge===null||Array.isArray(ge)){X("Must be a JSON object");return}X(null),l("params",C?{...ge,task_type:"GPU"}:ge)}catch(ge){X(ge.message)}},oe=se=>{try{const ge=JSON.parse(R);l("params",se?{...ge,task_type:"GPU"}:{...ge})}catch(ge){console.warn("GPU toggle: draft has invalid JSON, falling back to last-known params",ge),l("params",se?{..._,task_type:"GPU"}:{..._})}};return O.jsxs(O.Fragment,{children:[O.jsxs("div",{children:[O.jsxs("button",{onClick:()=>S("modelling.features"),className:"flex items-center gap-1 text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:[k?O.jsx(rg,{size:12}):O.jsx(n5,{size:12}),"Features ",s.length>0&&O.jsxs("span",{className:"font-normal",children:["(",p," of ",s.length,g.length>0?`, ${g.length} excluded`:"",")"]})]}),k&&O.jsxs("div",{className:"mt-1.5 space-y-1",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("span",{className:"text-[10px]",style:{color:"var(--text-muted)"},children:"Toggle columns to include or exclude from training"}),O.jsxs("div",{className:"flex gap-1",children:[O.jsx("button",{onClick:()=>l("exclude",[]),className:"px-1.5 py-0.5 rounded text-[10px] font-mono",style:{background:"rgba(34,197,94,.1)",color:"#22c55e",border:"1px solid rgba(34,197,94,.2)"},children:"Select all"}),O.jsx("button",{onClick:()=>{const se=s.filter(ge=>ge.name!==u&&ge.name!==h).map(ge=>ge.name);l("exclude",se)},className:"px-1.5 py-0.5 rounded text-[10px] font-mono",style:{background:"rgba(239,68,68,.1)",color:"#ef4444",border:"1px solid rgba(239,68,68,.2)"},children:"Deselect all"})]})]}),s.filter(se=>se.name!==u&&se.name!==h).sort((se,ge)=>se.name.localeCompare(ge.name)).map(se=>{const ge=g.includes(se.name);return O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx("span",{className:"text-[11px] font-mono flex-1 truncate",style:{color:"var(--text-secondary)"},children:se.name}),[!1,!0].map(Ne=>O.jsx("button",{onClick:()=>{Ne&&!ge?l("exclude",[...g,se.name]):!Ne&&ge&&l("exclude",g.filter(qe=>qe!==se.name))},className:"px-1.5 py-0.5 rounded text-[10px] font-mono",style:{background:(Ne?ge:!ge)?Ne?"rgba(239,68,68,.15)":"rgba(34,197,94,.15)":"var(--chrome-hover)",color:(Ne?ge:!ge)?Ne?"#ef4444":"#22c55e":"var(--text-muted)",border:`1px solid ${(Ne?ge:!ge)?Ne?"rgba(239,68,68,.3)":"rgba(34,197,94,.3)":"transparent"}`},children:Ne?"Exclude":"Include"},Ne?"exclude":"include"))]},se.name)})]})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Hyperparameters"}),O.jsx("p",{className:"text-[10px] mt-0.5",style:{color:"var(--text-muted)"},children:"Any valid CatBoost parameter. Saved on blur."}),O.jsx("textarea",{value:R,onChange:se=>{if(q(se.target.value),F)try{JSON.parse(se.target.value),X(null)}catch{}},onBlur:()=>ie(R),spellCheck:!1,rows:Math.min(20,Math.max(6,R.split(`
`).length+1)),className:"w-full mt-1.5 px-2.5 py-2 rounded-lg text-xs font-mono",style:{background:"var(--bg-input)",border:`1px solid ${F?"#ef4444":"var(--border)"}`,color:"var(--text-primary)",resize:"vertical"}}),F&&O.jsx("p",{className:"text-[10px] mt-0.5",style:{color:"#ef4444"},children:F}),O.jsxs("label",{className:"flex items-center gap-2 mt-2 cursor-pointer select-none",children:[O.jsx("input",{type:"checkbox",checked:C,onChange:se=>oe(se.target.checked),className:"accent-purple-500"}),O.jsx("span",{className:"text-[11px]",style:{color:"var(--text-primary)"},children:"GPU training"}),O.jsx("span",{className:"text-[10px]",style:{color:"var(--text-muted)"},children:"(CUDA)"})]})]})]})}function Yxt({config:l,onUpdate:s,columns:u,target:h,weight:g,exclude:m,split:p,mlflowOpen:k,monotonicOpen:S,toggleSection:C,onSplitUpdate:N}){return O.jsxs(O.Fragment,{children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Split Strategy"}),O.jsxs("div",{className:"mt-1.5 space-y-2",children:[O.jsx("div",{className:"flex gap-2",children:["random","temporal","group"].map(_=>O.jsx("button",{onClick:()=>N("strategy",_),className:"px-3 py-1 rounded-md text-xs font-medium transition-colors",style:{background:p.strategy===_?"var(--accent-soft)":"var(--bg-input)",color:p.strategy===_?"var(--accent)":"var(--text-secondary)",border:`1px solid ${p.strategy===_?"var(--accent)":"var(--border)"}`},children:_},_))}),p.strategy==="random"&&O.jsxs("div",{className:"space-y-2",children:[O.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Validation"}),O.jsx("input",{type:"number",step:.05,min:0,max:.5,value:p.validation_size??p.test_size??.2,onChange:_=>N("validation_size",parseFloat(_.target.value)||0),className:"w-full mt-0.5 px-2 py-1 rounded text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"}})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Holdout"}),O.jsx("input",{type:"number",step:.05,min:0,max:.5,value:p.holdout_size??0,onChange:_=>N("holdout_size",parseFloat(_.target.value)||0),className:"w-full mt-0.5 px-2 py-1 rounded text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"}})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Seed"}),O.jsx("input",{type:"number",value:p.seed??42,onChange:_=>N("seed",parseInt(_.target.value)||42),className:"w-full mt-0.5 px-2 py-1 rounded text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"}})]})]}),(()=>{const _=p.validation_size??p.test_size??.2,P=p.holdout_size??0,R=Math.max(0,1-_-P);return O.jsxs("div",{className:"flex gap-0.5 h-1.5 rounded-full overflow-hidden",style:{background:"var(--chrome-hover)"},children:[O.jsx("div",{style:{width:`${R*100}%`,background:"#a855f7"},title:`Train: ${(R*100).toFixed(0)}%`}),_>0&&O.jsx("div",{style:{width:`${_*100}%`,background:"#3b82f6"},title:`Validation: ${(_*100).toFixed(0)}%`}),P>0&&O.jsx("div",{style:{width:`${P*100}%`,background:"#22c55e"},title:`Holdout: ${(P*100).toFixed(0)}%`})]})})()]}),p.strategy==="temporal"&&O.jsxs("div",{className:"space-y-2",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Date column"}),O.jsxs("select",{value:Rn(p,"date_column",""),onChange:_=>N("date_column",_.target.value),className:"w-full mt-0.5 px-2.5 py-1.5 rounded-lg text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:[O.jsx("option",{value:"",children:"Select..."}),u.map(_=>O.jsx("option",{value:_.name,children:_.name},_.name))]})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Cutoff date"}),O.jsx("input",{type:"date",value:Rn(p,"cutoff_date",""),onChange:_=>N("cutoff_date",_.target.value),className:"w-full mt-0.5 px-2.5 py-1.5 rounded-lg text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"}})]})]}),p.strategy==="group"&&O.jsxs("div",{className:"space-y-2",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Group column"}),O.jsxs("select",{value:Rn(p,"group_column",""),onChange:_=>N("group_column",_.target.value),className:"w-full mt-0.5 px-2.5 py-1.5 rounded-lg text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:[O.jsx("option",{value:"",children:"Select..."}),u.map(_=>O.jsx("option",{value:_.name,children:_.name},_.name))]})]}),O.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Validation"}),O.jsx("input",{type:"number",step:.05,min:0,max:.5,value:p.validation_size??p.test_size??.2,onChange:_=>N("validation_size",parseFloat(_.target.value)||0),className:"w-full mt-0.5 px-2 py-1 rounded text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"}})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Holdout"}),O.jsx("input",{type:"number",step:.05,min:0,max:.5,value:p.holdout_size??0,onChange:_=>N("holdout_size",parseFloat(_.target.value)||0),className:"w-full mt-0.5 px-2 py-1 rounded text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"}})]})]})]}),O.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Cross-validate"}),O.jsx("button",{onClick:()=>s("cv_folds",l.cv_folds?null:5),className:"px-2 py-0.5 rounded text-[11px] font-mono",style:A9(!!l.cv_folds),children:l.cv_folds?"On":"Off"}),!!l.cv_folds&&O.jsxs("div",{className:"flex items-center gap-1",children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Folds:"}),O.jsx("input",{type:"number",min:2,max:20,step:1,value:Rn(l,"cv_folds",5),onChange:_=>s("cv_folds",parseInt(_.target.value)||5),className:"w-14 px-2 py-0.5 rounded text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"}})]})]}),(()=>{const _=typeof l.row_limit=="number"?l.row_limit:null;return O.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Row limit"}),O.jsx("input",{type:"number",min:0,step:1e5,value:_??"",onChange:P=>{const R=P.target.value;s("row_limit",R===""?null:Math.max(0,parseInt(R)||0))},placeholder:"All rows",className:"w-32 px-2 py-0.5 rounded text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"}}),_!=null&&_>0&&O.jsxs("span",{className:"text-[10px] font-mono",style:{color:"var(--text-muted)"},children:[_.toLocaleString()," rows"]})]})})()]})]}),O.jsxs("div",{children:[O.jsxs("button",{onClick:()=>C("modelling.mlflow"),className:"flex items-center gap-1 text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:[k?O.jsx(rg,{size:12}):O.jsx(n5,{size:12}),"MLflow Logging"]}),k&&O.jsxs("div",{className:"mt-1.5 space-y-2",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Experiment path"}),O.jsx("input",{type:"text",placeholder:"/Shared/haute/experiment",value:Rn(l,"mlflow_experiment",""),onChange:_=>s("mlflow_experiment",_.target.value),className:"w-full mt-0.5 px-2.5 py-1.5 rounded-lg text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"}})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Model name (registered model)"}),O.jsx("input",{type:"text",placeholder:"Optional",value:Rn(l,"model_name",""),onChange:_=>s("model_name",_.target.value),className:"w-full mt-0.5 px-2.5 py-1.5 rounded-lg text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"}})]})]})]}),u.length>0&&O.jsxs("div",{children:[O.jsxs("button",{onClick:()=>C("modelling.monotonic"),className:"flex items-center gap-1 text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:[S?O.jsx(rg,{size:12}):O.jsx(n5,{size:12}),"Monotonic Constraints"]}),S&&O.jsxs("div",{className:"mt-1.5 space-y-1",children:[O.jsx("div",{className:"text-[10px]",style:{color:"var(--text-muted)"},children:"Set per-feature constraints (numeric features only)"}),u.filter(_=>_.name!==h&&_.name!==g&&!m.includes(_.name)&&!["Utf8","Categorical","String"].includes(_.dtype)).sort((_,P)=>_.name.localeCompare(P.name)).map(_=>{const P=Rn(l,"monotone_constraints",{}),R=P[_.name]??0;return O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx("span",{className:"text-[11px] font-mono flex-1 truncate",style:{color:"var(--text-secondary)"},children:_.name}),[-1,0,1].map(q=>O.jsx("button",{onClick:()=>{const F={...P};q===0?delete F[_.name]:F[_.name]=q,s("monotone_constraints",Object.keys(F).length>0?F:null)},className:"px-1.5 py-0.5 rounded text-[10px] font-mono",style:{background:R===q?q===1?"rgba(34,197,94,.15)":q===-1?"rgba(239,68,68,.15)":"var(--accent-soft)":"var(--chrome-hover)",color:R===q?q===1?"#22c55e":q===-1?"#ef4444":"var(--accent)":"var(--text-muted)",border:`1px solid ${R===q?q===1?"rgba(34,197,94,.3)":q===-1?"rgba(239,68,68,.3)":"var(--accent)":"transparent"}`},children:q===1?"+1":q===-1?"-1":"0"},q))]},_.name)})]})]})]})}function e1n({trainProgress:l}){return O.jsxs("div",{className:"px-3 py-2.5 rounded-lg text-xs space-y-2",style:{background:"rgba(168,85,247,.06)",border:"1px solid rgba(168,85,247,.2)"},children:[O.jsxs("div",{className:"space-y-1",children:[O.jsxs("div",{className:"flex justify-between text-[11px]",children:[O.jsx("span",{style:{color:"#a855f7"},children:l.message||"Training..."}),O.jsx("span",{style:{color:"var(--text-muted)"},children:vOt(l.elapsed_seconds)})]}),O.jsx("div",{className:"w-full h-1.5 rounded-full overflow-hidden",style:{background:"rgba(168,85,247,.15)"},children:O.jsx("div",{className:"h-full rounded-full transition-all duration-300",style:{width:`${Math.max(l.progress*100,2)}%`,background:"#a855f7"}})})]}),l.total_iterations>0&&O.jsxs("div",{className:"flex gap-4 text-[11px] font-mono",style:{color:"var(--text-secondary)"},children:[O.jsxs("span",{children:["Round ",O.jsx("span",{style:{color:"var(--text-primary)"},children:l.iteration}),"/",l.total_iterations]}),Object.entries(l.train_loss).map(([s,u])=>O.jsxs("span",{children:[s,": ",O.jsx("span",{style:{color:"var(--text-primary)"},children:u.toFixed(4)})]},s))]})]})}const t1n=1;function SI(l){return l<1024?`${l.toFixed(0)} MB`:`${(l/1024).toFixed(1)} GB`}function Zxt({target:l,training:s,trainProgress:u,trainResult:h,isStale:g,ramEstimate:m,ramEstimateLoading:p,ramEstimateError:k=null,rowLimit:S,submitting:C=!1,onTrain:N}){const _=ue.useMemo(()=>{if(!m||m.total_rows==null)return null;const F=m.total_rows,X=S!=null&&S>0;let J=F;X&&(J=Math.min(J,S)),m.safe_row_limit!=null&&(J=Math.min(J,m.safe_row_limit));const ee=J*m.bytes_per_row*t1n/(1024*1024),te=J<F,ie=m.was_downsampled&&!(X&&S<=(m.safe_row_limit??F));let oe=m.gpu_vram_estimated_mb??null;if(oe!=null){const se=X?Math.min(S,F):F,ge=m.safe_row_limit??F;ge>0&&se!==ge&&(oe=oe*se/ge)}return{rows:J,trainingMb:ee,wasDownsampled:ie,isLimited:te,gpuVramMb:oe}},[m,S]),P=C||s,R=C?O.jsx(NAe,{size:14,className:"animate-pulse"}):s?O.jsx(i5,{size:14,className:"animate-spin"}):O.jsx(Ffn,{size:14}),q=C?"Preparing training data...":s?(u==null?void 0:u.message)||"Training...":"Train Model";return O.jsxs(O.Fragment,{children:[g&&O.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg text-xs",style:{background:"rgba(245,158,11,.08)",border:"1px solid rgba(245,158,11,.2)"},children:[O.jsx(LAe,{size:12,style:{color:"#f59e0b"},className:"shrink-0"}),O.jsx("span",{style:{color:"#fbbf24"},children:"Config changed since last training"}),O.jsx("button",{onClick:N,disabled:s||C||!l,className:"ml-auto px-2 py-0.5 rounded text-[11px] font-medium",style:{background:"rgba(168,85,247,.15)",color:"#a855f7"},children:"Re-train"})]}),p&&O.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg text-xs",style:{background:"rgba(168,85,247,.06)",border:"1px solid rgba(168,85,247,.15)"},children:[O.jsx(i5,{size:12,className:"animate-spin",style:{color:"#a855f7"}}),O.jsx("span",{style:{color:"var(--text-muted)"},children:"Estimating dataset size..."})]}),k&&!p&&!m&&O.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg text-xs",style:{background:"rgba(245,158,11,.06)",border:"1px solid rgba(245,158,11,.2)"},children:[O.jsx(Ty,{size:12,className:"shrink-0",style:{color:"#f59e0b"}}),O.jsx("span",{style:{color:"#fbbf24"},children:"RAM estimate unavailable — training will still work"})]}),m&&!p&&_&&O.jsxs("div",{className:"px-3 py-2.5 rounded-lg text-xs space-y-1.5",style:{background:_.wasDownsampled?"rgba(245,158,11,.06)":"rgba(34,197,94,.06)",border:`1px solid ${_.wasDownsampled?"rgba(245,158,11,.2)":"rgba(34,197,94,.15)"}`},children:[O.jsxs("div",{className:"flex items-center gap-2",children:[_.wasDownsampled&&O.jsx(Ty,{size:12,className:"shrink-0",style:{color:"#f59e0b"}}),O.jsx("span",{className:"font-medium",style:{color:_.wasDownsampled?"#fbbf24":"#22c55e"},children:_.wasDownsampled?"Will downsample":"Dataset fits in memory"})]}),O.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-0.5 text-[11px] font-mono",style:{color:"var(--text-secondary)"},children:[O.jsx("span",{children:"Source rows"}),O.jsx("span",{style:{color:"var(--text-primary)"},children:m.total_rows.toLocaleString()}),_.isLimited&&O.jsxs(O.Fragment,{children:[O.jsx("span",{children:"Training rows"}),O.jsx("span",{style:{color:_.wasDownsampled?"#f59e0b":"var(--text-primary)"},children:_.rows.toLocaleString()})]}),O.jsx("span",{children:"Est. training RAM"}),O.jsx("span",{style:{color:"var(--text-primary)"},children:SI(_.trainingMb)}),O.jsx("span",{children:"Available RAM"}),O.jsx("span",{style:{color:"var(--text-primary)"},children:SI(m.available_mb)}),_.gpuVramMb!=null&&O.jsxs(O.Fragment,{children:[O.jsx("span",{children:"Est. GPU VRAM"}),O.jsx("span",{style:{color:m.gpu_vram_available_mb!=null&&_.gpuVramMb>m.gpu_vram_available_mb?"#f59e0b":"var(--text-primary)"},children:SI(_.gpuVramMb)}),m.gpu_vram_available_mb!=null&&O.jsxs(O.Fragment,{children:[O.jsx("span",{children:"GPU VRAM"}),O.jsx("span",{style:{color:"var(--text-primary)"},children:SI(m.gpu_vram_available_mb)})]})]})]}),_.gpuVramMb!=null&&m.gpu_vram_available_mb!=null&&_.gpuVramMb>m.gpu_vram_available_mb&&O.jsxs("div",{className:"flex items-center gap-2 mt-1",style:{color:"#f59e0b"},children:[O.jsx(Ty,{size:12,className:"shrink-0"}),O.jsxs("span",{children:["GPU training needs ~",SI(_.gpuVramMb)," but GPU has ",SI(m.gpu_vram_available_mb),". Training will fall back to CPU automatically."]})]})]}),O.jsx("div",{className:"pt-2",style:{borderTop:"1px solid var(--border)"},children:O.jsxs("button",{onClick:N,disabled:P||!l,className:"w-full flex items-center justify-center gap-2 px-3 py-2 rounded-lg text-xs font-medium transition-colors",style:{background:P?"var(--chrome-hover)":"#a855f7",color:P?"var(--text-muted)":"#fff",opacity:l?1:.5},children:[R,q]})}),u&&O.jsx(e1n,{trainProgress:u}),h&&h.status!=="error"&&!s&&!C&&O.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg text-xs",style:{background:"rgba(34,197,94,.08)",border:"1px solid rgba(34,197,94,.2)"},children:[O.jsx(AAe,{size:12,style:{color:"#22c55e"},className:"shrink-0"}),O.jsx("span",{style:{color:"#22c55e"},children:"Model trained — results in preview panel below"})]}),h&&h.status==="error"&&O.jsx("div",{className:"px-3 py-2.5 rounded-lg text-xs space-y-1.5",style:{background:"rgba(239,68,68,.08)",border:"1px solid rgba(239,68,68,.2)"},children:O.jsxs("div",{className:"flex items-start gap-2",children:[O.jsx(Ty,{size:14,className:"shrink-0 mt-0.5",style:{color:"#ef4444"}}),O.jsxs("div",{className:"space-y-1 min-w-0",children:[O.jsx("div",{className:"font-semibold",style:{color:"#ef4444"},children:"Training failed"}),O.jsx("div",{style:{color:"#fca5a5",lineHeight:"1.5"},children:h.error})]})]})})]})}const n1n=[{value:"poisson",label:"Poisson",hint:"Claim frequency"},{value:"gamma",label:"Gamma",hint:"Claim severity"},{value:"tweedie",label:"Tweedie",hint:"Pure premium"},{value:"gaussian",label:"Gaussian",hint:"Linear regression"},{value:"binomial",label:"Binomial",hint:"Binary outcomes"},{value:"quasipoisson",label:"Quasi-Poisson",hint:"Overdispersed counts"},{value:"negbinomial",label:"Neg. Binomial",hint:"Overdispersed counts"}],i1n={poisson:"log",gamma:"log",tweedie:"log",gaussian:"identity",binomial:"logit",quasipoisson:"log",quasibinomial:"logit",negbinomial:"log"},r1n=["log","identity","logit","inverse","sqrt","cloglog","probit"],s1n=[{value:"gini",label:"Gini"},{value:"rmse",label:"RMSE"},{value:"mae",label:"MAE"},{value:"poisson_deviance",label:"Poisson Dev."},{value:"tweedie_deviance",label:"Tweedie Dev."},{value:"r2",label:"R²"},{value:"auc",label:"AUC"},{value:"logloss",label:"Logloss"}];function o1n({config:l,onUpdate:s,columns:u}){const h=Rn(l,"target",""),g=Rn(l,"weight",""),m=Rn(l,"family","poisson"),p=Rn(l,"link",""),k=Rn(l,"intercept",!0),S=Rn(l,"metrics",["gini","poisson_deviance"]),C=i1n[m]||"log";return O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Target & Weight"}),O.jsxs("div",{className:"mt-1.5 space-y-2",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"Target column"}),O.jsxs("select",{value:h,onChange:N=>s("target",N.target.value),className:"w-full mt-0.5 px-2.5 py-1.5 rounded-lg text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:[O.jsx("option",{value:"",children:"Select target..."}),u.map(N=>O.jsxs("option",{value:N.name,children:[N.name," (",N.dtype,")"]},N.name))]})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"Weight column (optional)"}),O.jsxs("select",{value:g,onChange:N=>s("weight",N.target.value),className:"w-full mt-0.5 px-2.5 py-1.5 rounded-lg text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:[O.jsx("option",{value:"",children:"None"}),u.map(N=>O.jsx("option",{value:N.name,children:N.name},N.name))]})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"Offset column (optional, e.g. log-exposure)"}),O.jsxs("select",{value:Rn(l,"offset",""),onChange:N=>s("offset",N.target.value||null),className:"w-full mt-0.5 px-2.5 py-1.5 rounded-lg text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:[O.jsx("option",{value:"",children:"None"}),u.map(N=>O.jsx("option",{value:N.name,children:N.name},N.name))]})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Family"}),O.jsx("div",{className:"mt-1.5 flex flex-wrap gap-1.5",children:n1n.map(N=>{const _=m===N.value;return O.jsx("button",{onClick:()=>{const P={poisson:["gini","poisson_deviance"],gamma:["gini","rmse"],tweedie:["gini","tweedie_deviance"],gaussian:["gini","rmse"],binomial:["auc","logloss"],quasipoisson:["gini","poisson_deviance"],negbinomial:["gini","poisson_deviance"]};s({family:N.value,link:"",metrics:P[N.value]||["gini","rmse"]})},className:"px-2.5 py-1 rounded-md text-xs font-mono transition-colors",style:A9(_),title:N.hint,children:N.label},N.value)})})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Link Function"}),O.jsxs("div",{className:"mt-1.5 flex flex-wrap gap-1.5",children:[O.jsxs("button",{onClick:()=>s("link",""),className:"px-2.5 py-1 rounded-md text-xs font-mono transition-colors",style:A9(!p),children:["auto (",C,")"]}),r1n.filter(N=>N!==C).map(N=>O.jsx("button",{onClick:()=>s("link",N),className:"px-2.5 py-1 rounded-md text-xs font-mono transition-colors",style:A9(p===N),children:N},N))]})]}),m==="tweedie"&&O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Variance power (1.0=Poisson, 2.0=Gamma)"}),O.jsx("input",{type:"range",min:1,max:2,step:.05,value:Rn(l,"var_power",1.5),onChange:N=>s("var_power",parseFloat(N.target.value)),className:"w-full mt-0.5"}),O.jsx("div",{className:"text-[11px] font-mono text-right",style:{color:"var(--text-muted)"},children:Rn(l,"var_power",1.5).toFixed(2)})]}),O.jsxs("label",{className:"flex items-center gap-2 cursor-pointer select-none",children:[O.jsx("input",{type:"checkbox",checked:k,onChange:N=>s("intercept",N.target.checked),className:"accent-purple-500"}),O.jsx("span",{className:"text-[11px]",style:{color:"var(--text-primary)"},children:"Intercept"})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Metrics"}),O.jsx("div",{className:"mt-1.5 flex flex-wrap gap-1.5",children:s1n.map(N=>{const _=S.includes(N.value);return O.jsx("button",{onClick:()=>{const P=_?S.filter(R=>R!==N.value):[...S,N.value];s("metrics",P)},className:"px-2.5 py-1 rounded-md text-xs font-mono transition-colors",style:A9(_),children:N.label},N.value)})})]})]})]})}const c1n=[{value:"linear",label:"Linear"},{value:"categorical",label:"Categorical"},{value:"bs",label:"B-spline"},{value:"ns",label:"Nat. spline"},{value:"target_encoding",label:"Target enc."},{value:"expression",label:"Expression"}],l1n=new Set(["Utf8","String","Categorical","str","string","object","Enum"]);function u1n(l){return l1n.has(l.dtype)?"categorical":"linear"}const a1n={linear:new Set(["monotonicity"]),categorical:new Set(["levels"]),bs:new Set(["df","degree","monotonicity"]),ns:new Set(["df","monotonicity"]),target_encoding:new Set(["prior_weight","k"]),expression:new Set(["expr"])};function f1n(l,s){const u=a1n[s]??new Set,h={type:s};for(const[g,m]of Object.entries(l))g!=="type"&&u.has(g)&&(h[g]=m);return h}function h1n({config:l,onUpdate:s,columns:u,target:h,weight:g,exclude:m}){const p=Rn(l,"terms",{}),k=Rn(l,"interactions",[]),S=Rn(l,"offset",""),[C,N]=ue.useState(!0),[_,P]=ue.useState("builder"),R=ue.useMemo(()=>u.filter(he=>he.name!==h&&he.name!==g&&he.name!==S&&!m.includes(he.name)),[u,h,g,S,m]),q=ue.useMemo(()=>Object.keys(p).map(he=>{const Ee=R.find(Te=>Te.name===he);return Ee?{col:Ee,spec:p[he]}:null}).filter(he=>he!==null),[p,R]),F=ue.useMemo(()=>R.filter(he=>!(he.name in p)),[R,p]),X=ue.useMemo(()=>JSON.stringify(p,null,2),[p]),[J,ee]=ue.useState(X),[te,ie]=ue.useState(null),oe=ue.useRef(X);ue.useEffect(()=>{X!==oe.current&&(ee(X),oe.current=X,ie(null))},[X]);const se=ue.useCallback(he=>{const Ee=R.find(Te=>Te.name===he);Ee&&s("terms",{...p,[he]:{type:u1n(Ee)}})},[p,R,s]),ge=ue.useCallback(he=>{const{[he]:Ee,...Te}=p;s("terms",Te)},[p,s]),Ne=ue.useCallback((he,Ee)=>{s("terms",{...p,[he]:Ee})},[p,s]),qe=ue.useCallback((he,Ee,Te)=>{const ft={...p[he]||{type:"linear"},[Ee]:Te};(Te==null||Te==="")&&delete ft[Ee],s("terms",{...p,[he]:ft})},[p,s]),Ke=ue.useCallback(he=>{try{const Ee=JSON.parse(he);if(typeof Ee!="object"||Ee===null||Array.isArray(Ee)){ie("Must be a JSON object");return}ie(null),s("terms",Ee)}catch(Ee){ie(Ee.message)}},[s]),Le=ue.useCallback(()=>{s("interactions",[...k,{factors:["",""],include_main:!0}])},[k,s]),we=ue.useCallback(he=>{s("interactions",k.filter((Ee,Te)=>Te!==he))},[k,s]),Z=ue.useCallback((he,Ee,Te)=>{const ye=k.map((ft,Ce)=>Ce===he?{...ft,[Ee]:Te}:ft);s("interactions",ye)},[k,s]),pe=ue.useCallback((he,Ee,Te)=>{const ye=k.map((ft,Ce)=>{if(Ce!==he)return ft;const We=[...ft.factors];return We[Ee]=Te,{...ft,factors:We}});s("interactions",ye)},[k,s]),Re=q.map(he=>he.col.name);return O.jsxs(O.Fragment,{children:[O.jsxs("div",{children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsxs("button",{onClick:()=>N(!C),className:"flex items-center gap-1 text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:[C?O.jsx(rg,{size:12}):O.jsx(n5,{size:12}),"Factors",O.jsxs("span",{className:"font-normal",children:["(",q.length,")"]})]}),C&&O.jsxs("div",{className:"flex gap-0.5",children:[O.jsx("button",{onClick:()=>P("builder"),className:"px-2 py-0.5 rounded text-[10px] font-medium",style:{background:_==="builder"?"var(--accent-soft)":"var(--chrome-hover)",color:_==="builder"?"var(--accent)":"var(--text-muted)"},children:"Builder"}),O.jsx("button",{onClick:()=>P("json"),className:"px-2 py-0.5 rounded text-[10px] font-medium",style:{background:_==="json"?"var(--accent-soft)":"var(--chrome-hover)",color:_==="json"?"var(--accent)":"var(--text-muted)"},children:"JSON"})]})]}),C&&_==="builder"&&O.jsxs("div",{className:"mt-1.5 space-y-1.5",children:[q.length>0?O.jsx("div",{className:"space-y-1",children:q.map(({col:he,spec:Ee})=>O.jsxs("div",{className:"flex items-center gap-1.5",children:[O.jsx("button",{onClick:()=>ge(he.name),className:"p-0.5 rounded transition-colors shrink-0",style:{color:"var(--text-muted)"},title:`Remove ${he.name}`,children:O.jsx(R9,{size:11})}),O.jsx("span",{className:"text-[11px] font-mono truncate",style:{color:"var(--text-secondary)",minWidth:"80px",flex:"1 1 0"},title:he.name,children:he.name}),O.jsx("select",{value:Ee.type,onChange:Te=>Ne(he.name,f1n(Ee,Te.target.value)),className:"px-1.5 py-0.5 rounded text-[10px] font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)",minWidth:"85px"},children:c1n.map(Te=>O.jsx("option",{value:Te.value,children:Te.label},Te.value))}),(Ee.type==="bs"||Ee.type==="ns")&&O.jsx("input",{type:"number",value:Ee.df??"",onChange:Te=>qe(he.name,"df",Te.target.value?parseInt(Te.target.value):void 0),placeholder:"df",className:"w-10 px-1 py-0.5 rounded text-[10px] font-mono text-center",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},min:2,max:20,title:"Degrees of freedom"}),Ee.type==="target_encoding"&&O.jsx("input",{type:"number",value:Ee.prior_weight??1,onChange:Te=>qe(he.name,"prior_weight",parseFloat(Te.target.value)||1),className:"w-10 px-1 py-0.5 rounded text-[10px] font-mono text-center",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},step:.5,min:0,title:"Prior weight"}),(Ee.type==="linear"||Ee.type==="bs"||Ee.type==="ns")&&O.jsx("button",{onClick:()=>{const ye={undefined:"increasing",increasing:"decreasing",decreasing:void 0}[Ee.monotonicity??"undefined"];qe(he.name,"monotonicity",ye)},className:"px-1 py-0.5 rounded text-[10px] font-mono",style:{background:Ee.monotonicity?"rgba(168,85,247,.15)":"var(--chrome-hover)",color:Ee.monotonicity?"var(--chart-above)":"var(--text-muted)",border:`1px solid ${Ee.monotonicity?"rgba(168,85,247,.3)":"transparent"}`,minWidth:"20px"},title:Ee.monotonicity==="increasing"?"Increasing (click: decreasing)":Ee.monotonicity==="decreasing"?"Decreasing (click: none)":"No constraint (click: increasing)",children:Ee.monotonicity==="increasing"?"↑":Ee.monotonicity==="decreasing"?"↓":"─"})]},he.name))}):O.jsx("div",{className:"text-[10px] py-1",style:{color:"var(--text-muted)"},children:"No factors added yet. Add columns below to include them in the model."}),F.length>0&&O.jsx("div",{className:"pt-1",style:{borderTop:"1px solid var(--border)"},children:O.jsxs("select",{value:"",onChange:he=>{he.target.value&&se(he.target.value)},className:"w-full px-1.5 py-1 rounded text-[10px] font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:[O.jsx("option",{value:"",children:"Add factor..."}),F.map(he=>O.jsxs("option",{value:he.name,children:[he.name," (",he.dtype,")"]},he.name))]})})]}),C&&_==="json"&&O.jsxs("div",{className:"mt-1.5",children:[O.jsx("p",{className:"text-[10px] mb-1",style:{color:"var(--text-muted)"},children:"RustyStats terms dict. Paste from Atelier or edit directly. Saved on blur."}),O.jsx("textarea",{value:J,onChange:he=>{if(ee(he.target.value),te)try{JSON.parse(he.target.value),ie(null)}catch{}},onBlur:()=>Ke(J),spellCheck:!1,rows:Math.min(20,Math.max(6,J.split(`
`).length+1)),className:"w-full px-2.5 py-2 rounded-lg text-xs font-mono",style:{background:"var(--bg-input)",border:`1px solid ${te?"#ef4444":"var(--border)"}`,color:"var(--text-primary)",resize:"vertical"}}),te&&O.jsx("p",{className:"text-[10px] mt-0.5",style:{color:"#ef4444"},children:te})]})]}),O.jsxs("div",{children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Interactions"}),O.jsxs("button",{onClick:Le,className:"flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-medium transition-colors",style:{color:"var(--chart-above)"},children:[O.jsx(mO,{size:10})," Add"]})]}),k.length>0&&O.jsx("div",{className:"mt-1.5 space-y-1.5",children:k.map((he,Ee)=>O.jsxs("div",{className:"flex items-center gap-1.5",children:[O.jsxs("select",{value:he.factors[0]||"",onChange:Te=>pe(Ee,0,Te.target.value),className:"flex-1 px-1.5 py-1 rounded text-[10px] font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:[O.jsx("option",{value:"",children:"Select..."}),Re.map(Te=>O.jsx("option",{value:Te,children:Te},Te))]}),O.jsx("span",{className:"text-[10px]",style:{color:"var(--text-muted)"},children:"x"}),O.jsxs("select",{value:he.factors[1]||"",onChange:Te=>pe(Ee,1,Te.target.value),className:"flex-1 px-1.5 py-1 rounded text-[10px] font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:[O.jsx("option",{value:"",children:"Select..."}),Re.filter(Te=>Te!==he.factors[0]).map(Te=>O.jsx("option",{value:Te,children:Te},Te))]}),O.jsxs("label",{className:"flex items-center gap-1 text-[10px] whitespace-nowrap",style:{color:"var(--text-muted)"},children:[O.jsx("input",{type:"checkbox",checked:he.include_main,onChange:Te=>Z(Ee,"include_main",Te.target.checked),className:"accent-purple-500"}),"main"]}),O.jsx("button",{onClick:()=>we(Ee),className:"p-0.5 rounded transition-colors",style:{color:"var(--text-muted)"},title:"Remove interaction",children:O.jsx(R9,{size:12})})]},Ee))})]})]})}const d1n=[{value:"",label:"None"},{value:"ridge",label:"Ridge"},{value:"lasso",label:"Lasso"},{value:"elastic_net",label:"Elastic Net"}];function g1n({config:l,onUpdate:s}){const[u,h]=ue.useState(!1),g=Rn(l,"regularization",""),m=Rn(l,"alpha",0),p=Rn(l,"l1_ratio",.5),k=Rn(l,"cv_folds",5),S=!!g;return O.jsxs("div",{children:[O.jsxs("button",{onClick:()=>h(!u),className:"flex items-center gap-1 text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:[u?O.jsx(rg,{size:12}):O.jsx(n5,{size:12}),"Regularization",S&&O.jsx("span",{className:"font-normal text-[10px] px-1.5 py-0.5 rounded-full",style:{background:"rgba(168,85,247,.15)",color:"#a855f7"},children:g})]}),u&&O.jsxs("div",{className:"mt-1.5 space-y-2",children:[O.jsx("div",{className:"flex flex-wrap gap-1.5",children:d1n.map(C=>O.jsx("button",{onClick:()=>s("regularization",C.value||null),className:"px-2.5 py-1 rounded-md text-xs font-mono transition-colors",style:A9(g===C.value),children:C.label},C.value))}),S&&O.jsxs(O.Fragment,{children:[O.jsxs("div",{children:[O.jsxs("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:["Alpha (",m===0?"Auto via CV":"Manual",")"]}),O.jsx("input",{type:"number",value:m,onChange:C=>s("alpha",parseFloat(C.target.value)||0),className:"w-full mt-0.5 px-2.5 py-1.5 rounded-lg text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},min:0,step:.01,placeholder:"0 = auto (CV)"})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"CV folds"}),O.jsx("input",{type:"number",value:k,onChange:C=>s("cv_folds",parseInt(C.target.value)||5),className:"w-full mt-0.5 px-2.5 py-1.5 rounded-lg text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},min:2,max:20})]}),g==="elastic_net"&&O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"L1 ratio (0=Ridge, 1=Lasso)"}),O.jsx("input",{type:"range",min:0,max:1,step:.05,value:p,onChange:C=>s("l1_ratio",parseFloat(C.target.value)),className:"w-full mt-0.5"}),O.jsx("div",{className:"text-[11px] font-mono text-right",style:{color:"var(--text-muted)"},children:p.toFixed(2)})]})]})]})]})}function p1n({config:l,onUpdate:s,upstreamColumns:u,allNodes:h,edges:g,submodels:m,preamble:p}){var nr;const k=l._nodeId,S=Oc(ii=>ii.trainJobs[k]),C=Oc(ii=>ii.trainResults[k]),N=Oc(ii=>ii.startTrainJob),[_,P]=ue.useState(!1),R=!!S,q=(S==null?void 0:S.progress)??null,F=(C==null?void 0:C.result)??null,X=ue.useMemo(()=>yOt(l),[l]),J=!!C&&C.configHash!==X,[ee,te]=ue.useState(null),[ie,oe]=ue.useState(!1),[se,ge]=ue.useState(null),Ne=ue.useRef(null),qe=Ay(ii=>ii.addToast),Ke=ue.useRef({allNodes:h,edges:g,submodels:m,preamble:p});Ke.current={allNodes:h,edges:g,submodels:m,preamble:p};const Le=String(((nr=l.params)==null?void 0:nr.task_type)??"").toUpperCase()==="GPU",we=Rn(l,"exclude",[]).length;ue.useEffect(()=>{var qr;if(!k)return;(qr=Ne.current)==null||qr.abort();const ii=new AbortController;Ne.current=ii,oe(!0),te(null),ge(null);const{allNodes:ji,edges:Ti,submodels:as,preamble:xo}=Ke.current;return Vhn({graph:xX(ji,Ti,as,xo),node_id:k,source:Sc.getState().activeSource},{signal:ii.signal}).then(Nn=>{ii.signal.aborted||te(Nn)}).catch(Nn=>{if(!ii.signal.aborted){const Ps=Nn instanceof Error?Nn.message:String(Nn);ge(Ps),qe("warning",`RAM estimate failed: ${Ps}`)}}).finally(()=>{ii.signal.aborted||oe(!1)}),()=>ii.abort()},[k,Le,we,qe]);const Z=Sc(ii=>ii.isSectionOpen("modelling.features")),pe=Sc(ii=>ii.isSectionOpen("modelling.mlflow")),Re=Sc(ii=>ii.isSectionOpen("modelling.monotonic")),he=Sc(ii=>ii.toggleSection),Ee=Rn(l,"target",""),Te=Rn(l,"weight",""),ye=Rn(l,"exclude",[]),ft=Rn(l,"algorithm",""),Ce=Rn(l,"task","regression"),We=Rn(l,"params",{}),gt=Rn(l,"split",{strategy:"random",validation_size:.2,holdout_size:0,seed:42}),Ot=Rn(l,"metrics",Ce==="regression"?["gini","rmse"]:["auc","logloss"]),dt=u||[],cn=dt.filter(ii=>ii.name!==Ee&&ii.name!==Te&&!ye.includes(ii.name)).length,dn=ue.useCallback((ii,ji)=>{s("split",{...gt,[ii]:ji})},[gt,s]),wn=ue.useCallback(()=>xX(h,g,m,p),[h,g,m,p]),ni=ue.useCallback(async()=>{var ji;const ii=((ji=h.find(Ti=>Ti.id===k))==null?void 0:ji.data.label)||"Model Training";P(!0);try{const Ti=await Jhn({graph:wn(),node_id:k,source:Sc.getState().activeSource});Ti.status==="started"&&Ti.job_id?N(k,Ti.job_id,ii,X):(Ti.status,Oc.getState().completeTrainJob(k,Ti))}catch(Ti){Oc.getState().completeTrainJob(k,{status:"error",metrics:{},feature_importance:[],model_path:"",train_rows:0,test_rows:0,error:String(Ti)})}finally{P(!1)}},[k,h,wn,X,N]);return ft?ft==="glm"?O.jsxs("div",{className:"px-4 py-3 space-y-4",children:[O.jsx(o1n,{config:l,onUpdate:s,columns:dt}),O.jsx(h1n,{config:l,onUpdate:s,columns:dt,target:Ee,weight:Te,exclude:ye}),O.jsx(g1n,{config:l,onUpdate:s}),O.jsx(Yxt,{config:l,onUpdate:s,columns:dt,target:Ee,weight:Te,exclude:ye,split:gt,mlflowOpen:pe,monotonicOpen:Re,toggleSection:he,onSplitUpdate:dn}),O.jsx(Zxt,{target:Ee,training:R,trainProgress:q,trainResult:F,isStale:J,ramEstimate:ee,ramEstimateLoading:ie,ramEstimateError:se,rowLimit:typeof l.row_limit=="number"?l.row_limit:null,submitting:_,onTrain:ni})]}):O.jsxs("div",{className:"px-4 py-3 space-y-4",children:[O.jsx(Kdn,{config:l,onUpdate:s,columns:dt,target:Ee,weight:Te,task:Ce,metrics:Ot}),O.jsx(Zdn,{onUpdate:s,columns:dt,target:Ee,weight:Te,exclude:ye,params:We,featureCount:cn,featuresOpen:Z,toggleSection:he}),O.jsx(Yxt,{config:l,onUpdate:s,columns:dt,target:Ee,weight:Te,exclude:ye,split:gt,mlflowOpen:pe,monotonicOpen:Re,toggleSection:he,onSplitUpdate:dn}),O.jsx(Zxt,{target:Ee,training:R,trainProgress:q,trainResult:F,isStale:J,ramEstimate:ee,ramEstimateLoading:ie,ramEstimateError:se,rowLimit:typeof l.row_limit=="number"?l.row_limit:null,submitting:_,onTrain:ni})]}):O.jsxs("div",{className:"px-4 py-3 space-y-3",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Select Algorithm"}),[{id:"catboost",name:"CatBoost",desc:"Gradient boosting — handles categoricals natively, fast GPU training"},{id:"glm",name:"GLM",desc:"Generalised linear model — interpretable coefficients, regulatory-friendly"}].map(ii=>O.jsx("button",{onClick:()=>s("algorithm",ii.id),className:"w-full flex items-start gap-3 px-3 py-3 rounded-lg text-left transition-colors",style:{background:"var(--chrome-hover)",border:"1px solid var(--border)"},onMouseEnter:ji=>{ji.currentTarget.style.borderColor="var(--accent)",ji.currentTarget.style.background="var(--accent-soft)"},onMouseLeave:ji=>{ji.currentTarget.style.borderColor="var(--border)",ji.currentTarget.style.background="var(--chrome-hover)"},children:O.jsxs("div",{className:"min-w-0",children:[O.jsx("div",{className:"text-xs font-semibold",style:{color:"var(--text-primary)"},children:ii.name}),O.jsx("div",{className:"text-[11px] mt-0.5",style:{color:"var(--text-muted)"},children:ii.desc})]})},ii.id))]})}function b1n(l,s,u,h,g){const m=Oc(R=>R.setColumns),p=Sc(R=>R.activeSource),k=l?`${l}:${p}`:"",S=Oc(R=>{var q;return k?((q=R.columnCache[k])==null?void 0:q.columns)??null:null}),C=Oc(R=>{if(!k)return!1;const q=R.columnCache[k];return q?q.graphVersion===R.graphVersion:!1}),N=Ay(R=>R.addToast),[_,P]=ue.useState(S??[]);return ue.useEffect(()=>{if(!l){P([]);return}if(S&&(P(S),C))return;const R=new AbortController,q=xX(s,u,h,g);return Kfe(q,l,1,p,{signal:R.signal}).then(F=>{F.columns&&(P(F.columns),m(l,F.columns,Oc.getState().graphVersion,p))}).catch(F=>{F instanceof DOMException&&F.name==="AbortError"||(console.warn("Column fetch failed for node",l,F),N("warning",`Column fetch failed for "${l}"`),S||P([]))}),()=>R.abort()},[l,s,u,h,g,p,m,S,C,N]),_}function m1n(l,s,u,h){const g=ue.useCallback(()=>{const S=new Set(Object.keys(l)),C=u.find(P=>!S.has(P.name)&&P.name!==s),N=C?C.name:`constraint_${Object.keys(l).length+1}`,_={...l,[N]:{min:.9}};h("constraints",_)},[l,u,s,h]),m=ue.useCallback(S=>{const C={...l};delete C[S],h("constraints",C)},[l,h]),p=ue.useCallback((S,C)=>{if(S===C)return;const N={};for(const[_,P]of Object.entries(l))N[_===S?C:_]=P;h("constraints",N)},[l,h]),k=ue.useCallback((S,C,N)=>{h("constraints",{...l,[S]:{[C]:N}})},[l,h]);return{handleAddConstraint:g,handleRemoveConstraint:m,handleConstraintColumnChange:p,handleConstraintValueChange:k}}function Fo(l,s){const u=l.replace("#",""),h=u.length===3?u[0]+u[0]+u[1]+u[1]+u[2]+u[2]:u,g=parseInt(h.slice(0,2),16),m=parseInt(h.slice(2,4),16),p=parseInt(h.slice(4,6),16);return`rgba(${g},${m},${p},${s})`}function xOt(l,s){for(const u of l)if(u.outputColumn){s[u.outputColumn]||(s[u.outputColumn]=new Set);for(const h of u.rules||[]){const g=h.assignment;g&&s[u.outputColumn].add(g)}}}function kOt(l){const s={};for(const[u,h]of Object.entries(l))h.size>0&&(s[u]=[...h]);return s}function OOt(l){if(l.data.nodeType!==pi.BANDING)return null;const u=(l.data.config||{}).factors;return Array.isArray(u)?u:null}function e3t(l,s){const u=l.find(m=>m.id===s);if(!u)return{};const h=OOt(u);if(!h)return{};const g={};return xOt(h,g),kOt(g)}function w1n(l){const s={};for(const u of l){const h=OOt(u);h&&xOt(h,s)}return kOt(s)}function SOt(l,s,u){const h=u.filter(m=>m.target===l).map(m=>m.source),g=new Map(s.map(m=>[m.id,m]));return h.map(m=>g.get(m)).filter(m=>!!m).map(m=>({id:m.id,label:m.data.label||m.id,nodeType:m.data.nodeType}))}function v1n(l,s,u){return SOt(l,s,u).filter(h=>h.nodeType===pi.BANDING).map(({id:h,label:g})=>({id:h,label:g}))}const y1n=[{value:"min",label:"Min (relative)"},{value:"max",label:"Max (relative)"},{value:"min_abs",label:"Min (absolute)"},{value:"max_abs",label:"Max (absolute)"}];function x1n({config:l,onUpdate:s,allNodes:u,edges:h,submodels:g,accentColor:m}){const p=l._nodeId,k=Oc(Nn=>Nn.solveJobs[p]),S=Oc(Nn=>Nn.solveResults[p]),C=Oc(Nn=>Nn.startSolveJob),[N,_]=ue.useState(!1),P=N||!!k,R=(k==null?void 0:k.progress)??null,q=(k==null?void 0:k.error)??null,F=(S==null?void 0:S.result)??null,X=ue.useMemo(()=>yOt(l),[l]),J=!!S&&S.configHash!==X,ee=Sc(Nn=>Nn.isSectionOpen("optimiser.advanced")),te=Sc(Nn=>Nn.toggleSection),ie=Rn(l,"mode","online"),oe=Rn(l,"factor_columns",[]),se=Rn(l,"objective",""),ge=Rn(l,"constraints",{}),Ne=Rn(l,"quote_id","quote_id"),qe=Rn(l,"scenario_index","scenario_index"),Ke=Rn(l,"scenario_value","scenario_value"),Le=Rn(l,"max_iter",50),we=Rn(l,"tolerance",1e-6),Z=Rn(l,"chunk_size",5e5),pe=Rn(l,"record_history",!0),Re=Rn(l,"max_cd_iterations",10),he=Rn(l,"cd_tolerance",1e-4),Ee=Rn(l,"frontier_min",.8),Te=Rn(l,"frontier_max",1.1),ye=Rn(l,"frontier_steps",15),ft=ue.useMemo(()=>p?SOt(p,u,h):[],[p,u,h]),Ce=Rn(l,"data_input",""),We=b1n(Ce,u,h,g),gt=ue.useCallback(()=>xX(u,h,g),[u,h,g]),{handleAddConstraint:Ot,handleRemoveConstraint:dt,handleConstraintColumnChange:cn,handleConstraintValueChange:dn}=m1n(ge,se,We,s),wn=ue.useCallback(Nn=>{oe.some(ms=>ms.length===1&&ms[0]===Nn)?s("factor_columns",oe.filter(ms=>!(ms.length===1&&ms[0]===Nn))):s("factor_columns",[...oe,[Nn]])},[oe,s]),ni=ue.useCallback(async()=>{var Ps;_(!0);const Nn=((Ps=u.find(ms=>ms.id===p))==null?void 0:Ps.data.label)||"Optimiser";try{const ms=await Whn({graph:gt(),node_id:p});ms.status==="started"&&ms.job_id?C(p,ms.job_id,Nn,ge,X):ms.status==="error"&&Oc.getState().failSolveJob(p,ms.error||"Unknown error")}catch(ms){Oc.getState().failSolveJob(p,String(ms))}finally{_(!1)}},[p,u,gt,ge,X,C]),nr=ue.useMemo(()=>p?v1n(p,u,h):[],[p,u,h]),ii=Rn(l,"banding_source",""),ji=ii||(nr.length>0?nr[0].id:"");ue.useEffect(()=>{ie==="ratebook"&&!ii&&ji&&s("banding_source",ji)},[ie,ii,ji,s]);const Ti=ue.useMemo(()=>ji?e3t(u,ji):{},[u,ji]),as=ue.useMemo(()=>Object.keys(Ti).sort(),[Ti]),xo=ue.useCallback(Nn=>{s("banding_source",Nn);const Ps=e3t(u,Nn),ms=Object.keys(Ps).map(rs=>[rs]);s("factor_columns",ms)},[u,s]),qr=!!se&&(ie!=="ratebook"||oe.length>0);return O.jsxs("div",{className:"px-4 py-3 space-y-4",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Mode"}),O.jsx("div",{className:"mt-1.5 flex gap-1",children:["online","ratebook"].map(Nn=>O.jsx("button",{onClick:()=>s("mode",Nn),className:"flex-1 px-3 py-1.5 rounded-lg text-xs font-medium transition-colors",style:{background:ie===Nn?Fo(m,.15):"var(--chrome-hover)",color:ie===Nn?m:"var(--text-muted)",border:`1px solid ${ie===Nn?Fo(m,.3):"transparent"}`},children:Nn==="online"?"Online":"Ratebook"},Nn))})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Objectives & Constraints"}),O.jsx("div",{className:"mt-1.5",children:ft.length>0?O.jsxs("select",{value:Ce,onChange:Nn=>s("data_input",Nn.target.value),className:"w-full mt-0.5 px-2.5 py-1.5 rounded-lg text-xs",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:[O.jsx("option",{value:"",children:"Select input..."}),ft.map(Nn=>O.jsx("option",{value:Nn.id,children:Nn.label},Nn.id))]}):O.jsx("div",{className:"mt-0.5 text-[11px] py-2 text-center",style:{color:"var(--text-muted)"},children:"No inputs connected."})})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Objective"}),O.jsxs("div",{className:"mt-1.5",children:[O.jsx("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"Column to maximise"}),O.jsxs("select",{value:se,onChange:Nn=>s("objective",Nn.target.value),className:"w-full mt-0.5 px-2.5 py-1.5 rounded-lg text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:[O.jsx("option",{value:"",children:"Select objective..."}),We.map(Nn=>O.jsxs("option",{value:Nn.name,children:[Nn.name," (",Nn.dtype,")"]},Nn.name))]})]})]}),ie==="ratebook"&&O.jsxs("div",{className:"space-y-3",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Rating Factor Source"}),nr.length>0?O.jsx("select",{value:ji,onChange:Nn=>xo(Nn.target.value),className:"w-full mt-1 px-2.5 py-1.5 rounded-lg text-xs",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:nr.map(Nn=>O.jsx("option",{value:Nn.id,children:Nn.label},Nn.id))}):O.jsx("div",{className:"mt-1 text-[11px] py-2 text-center",style:{color:"var(--text-muted)"},children:"No Banding nodes found. Add a Banding node to define rating factors."})]}),as.length>0&&O.jsxs("div",{children:[O.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:[O.jsx(gOt,{size:10,className:"inline mr-1"}),"Rating Factors (",oe.length," selected)"]}),O.jsx("div",{className:"mt-1.5 space-y-1",children:as.map(Nn=>{const Ps=Ti[Nn]||[],ms=oe.some(rs=>rs.length===1&&rs[0]===Nn);return O.jsxs("button",{onClick:()=>wn(Nn),className:"w-full flex items-center justify-between px-2.5 py-1.5 rounded-lg text-xs transition-colors",style:{background:ms?Fo(m,.1):"var(--bg-surface)",border:`1px solid ${ms?Fo(m,.3):"var(--border)"}`},children:[O.jsx("span",{className:"font-mono",style:{color:ms?m:"var(--text-primary)"},children:Nn}),O.jsxs("span",{className:"text-[10px]",style:{color:ms?Fo(m,.7):"var(--text-muted)"},children:[Ps.length," levels"]})]},Nn)})})]})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Column Mappings"}),O.jsx("div",{className:"mt-1.5 space-y-2",children:[{key:"quote_id",label:"Quote ID",value:Ne,default:"quote_id"},{key:"scenario_index",label:"Scenario Index",value:qe,default:"scenario_index"},{key:"scenario_value",label:"Scenario Value",value:Ke,default:"scenario_value"}].map(Nn=>O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:Nn.label}),O.jsxs("select",{value:Nn.value,onChange:Ps=>s(Nn.key,Ps.target.value),className:"w-full mt-0.5 px-2.5 py-1.5 rounded-lg text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:[O.jsxs("option",{value:"",children:["Select ",Nn.label.toLowerCase(),"..."]}),We.map(Ps=>O.jsx("option",{value:Ps.name,children:Ps.name},Ps.name))]})]},Nn.key))})]}),O.jsxs("div",{children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:["Constraints (",Object.keys(ge).length,")"]}),O.jsxs("button",{onClick:Ot,className:"flex items-center gap-1 px-2 py-0.5 rounded text-[11px] transition-colors",style:{color:"var(--accent)",background:"var(--accent-soft)"},children:[O.jsx(mO,{size:10})," Add"]})]}),O.jsxs("div",{className:"mt-1.5 space-y-2",children:[Object.entries(ge).map(([Nn,Ps])=>{const ms=Object.keys(Ps)[0]||"min",rs=Ps[ms]??.9;return O.jsxs("div",{className:"flex items-center gap-1.5 p-2 rounded-lg",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[O.jsxs("select",{value:Nn,onChange:fr=>cn(Nn,fr.target.value),className:"flex-1 min-w-0 px-1.5 py-1 rounded text-[11px] font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:[O.jsx("option",{value:Nn,children:Nn}),We.filter(fr=>fr.name!==Nn&&fr.name!==se&&!ge[fr.name]).map(fr=>O.jsx("option",{value:fr.name,children:fr.name},fr.name))]}),O.jsx("select",{value:ms,onChange:fr=>dn(Nn,fr.target.value,rs),className:"w-[90px] px-1 py-1 rounded text-[10px]",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-secondary)"},children:y1n.map(fr=>O.jsx("option",{value:fr.value,children:fr.label},fr.value))}),O.jsx("input",{type:"number",step:.01,value:rs,onChange:fr=>dn(Nn,ms,parseFloat(fr.target.value)||0),className:"w-16 px-1.5 py-1 rounded text-[11px] font-mono text-right",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"}}),O.jsx("button",{onClick:()=>dt(Nn),className:"p-0.5 rounded transition-colors shrink-0",style:{color:"var(--text-muted)"},children:O.jsx(r5,{size:12})})]},Nn)}),Object.keys(ge).length===0&&O.jsx("div",{className:"text-[11px] py-2 text-center",style:{color:"var(--text-muted)"},children:'No constraints added. Click "Add" to set volume or loss ratio bounds.'})]})]}),Object.keys(ge).length>0&&O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Efficient Frontier"}),O.jsxs("div",{className:"mt-1.5 grid grid-cols-3 gap-2",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Min multiplier"}),O.jsx("input",{type:"number",step:.01,value:Ee,onChange:Nn=>s("frontier_min",parseFloat(Nn.target.value)||.8),className:"w-full mt-0.5 px-2 py-1 rounded text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"}})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Max multiplier"}),O.jsx("input",{type:"number",step:.01,value:Te,onChange:Nn=>s("frontier_max",parseFloat(Nn.target.value)||1.1),className:"w-full mt-0.5 px-2 py-1 rounded text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"}})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Steps"}),O.jsx("input",{type:"number",min:2,step:1,value:ye,onChange:Nn=>s("frontier_steps",parseInt(Nn.target.value)||15),className:"w-full mt-0.5 px-2 py-1 rounded text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"}})]})]})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Solver"}),O.jsxs("div",{className:"mt-1.5 grid grid-cols-2 gap-2",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Max iterations"}),O.jsx("input",{type:"number",min:1,step:1,value:Le,onChange:Nn=>s("max_iter",parseInt(Nn.target.value)||50),className:"w-full mt-0.5 px-2 py-1 rounded text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"}})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Tolerance"}),O.jsx("input",{type:"number",step:1e-6,value:we,onChange:Nn=>s("tolerance",parseFloat(Nn.target.value)||1e-6),className:"w-full mt-0.5 px-2 py-1 rounded text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"}})]})]})]}),O.jsxs("div",{children:[O.jsxs("button",{onClick:()=>te("optimiser.advanced"),className:"flex items-center gap-1 text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:[ee?O.jsx(rg,{size:12}):O.jsx(n5,{size:12}),"Advanced"]}),ee&&O.jsxs("div",{className:"mt-1.5 space-y-2",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Chunk size"}),O.jsx("input",{type:"number",min:1e3,step:1e4,value:Z,onChange:Nn=>s("chunk_size",parseInt(Nn.target.value)||5e5),className:"w-full mt-0.5 px-2 py-1 rounded text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"}})]}),O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Record history"}),O.jsx("button",{onClick:()=>s("record_history",!pe),className:"px-2 py-0.5 rounded text-[11px] font-mono",style:{background:pe?Fo(m,.15):"var(--chrome-hover)",color:pe?m:"var(--text-muted)",border:`1px solid ${pe?Fo(m,.3):"transparent"}`},children:pe?"On":"Off"})]}),ie==="ratebook"&&O.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"CD iterations"}),O.jsx("input",{type:"number",min:1,step:1,value:Re,onChange:Nn=>s("max_cd_iterations",parseInt(Nn.target.value)||10),className:"w-full mt-0.5 px-2 py-1 rounded text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"}})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"CD tolerance"}),O.jsx("input",{type:"number",step:1e-4,value:he,onChange:Nn=>s("cd_tolerance",parseFloat(Nn.target.value)||1e-4),className:"w-full mt-0.5 px-2 py-1 rounded text-xs font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"}})]})]})]})]}),J&&O.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg text-xs",style:{background:"rgba(245,158,11,.08)",border:"1px solid rgba(245,158,11,.2)"},children:[O.jsx(LAe,{size:12,style:{color:"#f59e0b"},className:"shrink-0"}),O.jsx("span",{style:{color:"#fbbf24"},children:"Config changed since last solve"}),O.jsx("button",{onClick:ni,disabled:P||!qr,className:"ml-auto px-2 py-0.5 rounded text-[11px] font-medium",style:{background:Fo(m,.15),color:m},children:"Re-run"})]}),O.jsx("div",{className:"space-y-2 pt-2",style:{borderTop:"1px solid var(--border)"},children:O.jsxs("button",{onClick:ni,disabled:P||!qr,className:"w-full flex items-center justify-center gap-2 px-3 py-2 rounded-lg text-xs font-medium transition-colors",style:{background:P?"var(--chrome-hover)":m,color:P?"var(--text-muted)":"#fff",opacity:qr?1:.5},children:[P?O.jsx(i5,{size:14,className:"animate-spin"}):O.jsx(DM,{size:14}),P?"Optimising...":"Optimise"]})}),N&&!R&&O.jsxs("div",{className:"px-3 py-2.5 rounded-lg text-xs flex items-center gap-2",style:{background:Fo(m,.06),border:`1px solid ${Fo(m,.2)}`},children:[O.jsx(i5,{size:12,className:"animate-spin",style:{color:m}}),O.jsx("span",{style:{color:m},children:"Executing pipeline..."})]}),R&&O.jsx("div",{className:"px-3 py-2.5 rounded-lg text-xs space-y-2",style:{background:Fo(m,.06),border:`1px solid ${Fo(m,.2)}`},children:O.jsxs("div",{className:"space-y-1",children:[O.jsxs("div",{className:"flex justify-between text-[11px]",children:[O.jsx("span",{style:{color:m},children:R.message||"Solving..."}),O.jsx("span",{style:{color:"var(--text-muted)"},children:vOt(R.elapsed_seconds)})]}),O.jsx("div",{className:"w-full h-1.5 rounded-full overflow-hidden",style:{background:Fo(m,.15)},children:O.jsx("div",{className:"h-full rounded-full transition-all duration-300",style:{width:`${Math.max(R.progress*100,2)}%`,background:m}})})]})}),q&&O.jsx("div",{className:"px-3 py-2.5 rounded-lg text-xs space-y-1.5",style:{background:"rgba(239,68,68,.08)",border:"1px solid rgba(239,68,68,.2)"},children:O.jsxs("div",{className:"flex items-start gap-2",children:[O.jsx(Ty,{size:14,className:"shrink-0 mt-0.5",style:{color:"#ef4444"}}),O.jsxs("div",{className:"space-y-1 min-w-0",children:[O.jsx("div",{className:"font-semibold",style:{color:"#ef4444"},children:"Optimisation failed"}),O.jsx("div",{style:{color:"#fca5a5",lineHeight:"1.5"},children:q})]})]})}),F&&O.jsxs("div",{className:"space-y-2",children:[!F.converged&&O.jsxs("div",{className:"flex items-start gap-2 px-3 py-2 rounded-lg text-xs",style:{background:"rgba(245,158,11,.1)",border:"1px solid rgba(245,158,11,.25)"},children:[O.jsx(Ty,{size:14,className:"shrink-0 mt-0.5",style:{color:"#f59e0b"}}),O.jsxs("div",{children:[O.jsx("div",{className:"font-semibold",style:{color:"#f59e0b"},children:"Solver did not converge"}),O.jsx("div",{style:{color:"#fbbf24",lineHeight:"1.5"},children:F.warning||"Try increasing max iterations or relaxing the tolerance."})]})]}),O.jsx("div",{className:"px-3 py-2 rounded-lg text-xs space-y-1",style:{background:F.converged?"rgba(34,197,94,.1)":"rgba(245,158,11,.06)",border:`1px solid ${F.converged?"rgba(34,197,94,.2)":"rgba(245,158,11,.15)"}`},children:O.jsxs("div",{style:{color:F.converged?"#22c55e":"#f59e0b"},children:[F.converged?"Converged":"Did not converge",F.mode==="ratebook"?` in ${F.cd_iterations??"?"} CD iterations`:` in ${F.iterations??"?"} iterations`,F.n_quotes!=null&&F.n_steps!=null&&O.jsxs(O.Fragment,{children:[" (",F.n_quotes.toLocaleString()," quotes, ",F.n_steps," steps)"]})]})})]})]})}const k1n={Int64:"text-blue-400",Int32:"text-blue-400",Float64:"text-emerald-400",Float32:"text-emerald-400",String:"text-amber-400",Utf8:"text-amber-400",Boolean:"text-purple-400",Date:"text-rose-400",Datetime:"text-rose-400"};function jOt(l){for(const[s,u]of Object.entries(k1n))if(l.includes(s))return u;return"text-slate-400"}function RAe({columns:l,className:s="",checkbox:u,interactiveRows:h=!1,nameColor:g}){return O.jsx("div",{className:`rounded-lg overflow-hidden ${s}`.trim(),style:{border:"1px solid var(--border)",background:"var(--bg-input)"},children:O.jsxs("table",{className:"w-full text-xs",children:[O.jsx("thead",{children:O.jsxs("tr",{style:{borderBottom:"1px solid var(--border)",background:"var(--bg-elevated)"},children:[u&&O.jsx("th",{className:"text-left px-2.5 py-1.5 font-semibold",style:{color:"var(--text-muted)",width:28}}),O.jsx("th",{className:"text-left px-2.5 py-1.5 font-semibold",style:{color:"var(--text-muted)"},children:"Column"}),O.jsx("th",{className:"text-left px-2.5 py-1.5 font-semibold",style:{color:"var(--text-muted)"},children:"Type"})]})}),O.jsx("tbody",{children:l.map(m=>{const p=(u==null?void 0:u.isChecked(m.name))??!1,k=(g==null?void 0:g(m.name))??"var(--text-primary)";return O.jsxs("tr",{className:h?"cursor-pointer transition-colors":void 0,style:{borderBottom:"1px solid var(--border)"},onClick:h&&u?()=>u.onToggle(m.name):void 0,onMouseEnter:h?C=>{C.currentTarget.style.background="var(--bg-hover)"}:void 0,onMouseLeave:h?C=>{C.currentTarget.style.background="transparent"}:void 0,children:[u&&O.jsx("td",{className:"px-2.5 py-1.5 text-center",children:O.jsx("input",{type:"checkbox",checked:p,onChange:()=>u.onToggle(m.name),onClick:h?C=>C.stopPropagation():void 0,className:`${u.accentClass??"accent-blue-500"} rounded`})}),O.jsx("td",{className:"px-2.5 py-1.5 font-mono",style:{color:k},children:m.name}),O.jsx("td",{className:"px-2.5 py-1.5",children:O.jsx("span",{className:`text-[11px] font-medium ${jOt(m.dtype)}`,children:m.dtype})})]},m.name)})})]})})}let dMe=[],TOt=[];(()=>{let l="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(s=>s?parseInt(s,36):1);for(let s=0,u=0;s<l.length;s++)(s%2?TOt:dMe).push(u=u+l[s])})();function O1n(l){if(l<768)return!1;for(let s=0,u=dMe.length;;){let h=s+u>>1;if(l<dMe[h])u=h;else if(l>=TOt[h])s=h+1;else return!0;if(s==u)return!1}}function t3t(l){return l>=127462&&l<=127487}const n3t=8205;function S1n(l,s,u=!0,h=!0){return(u?EOt:j1n)(l,s,h)}function EOt(l,s,u){if(s==l.length)return s;s&&COt(l.charCodeAt(s))&&MOt(l.charCodeAt(s-1))&&s--;let h=sCe(l,s);for(s+=i3t(h);s<l.length;){let g=sCe(l,s);if(h==n3t||g==n3t||u&&O1n(g))s+=i3t(g),h=g;else if(t3t(g)){let m=0,p=s-2;for(;p>=0&&t3t(sCe(l,p));)m++,p-=2;if(m%2==0)break;s+=2}else break}return s}function j1n(l,s,u){for(;s>0;){let h=EOt(l,s-2,u);if(h<s)return h;s--}return 0}function sCe(l,s){let u=l.charCodeAt(s);if(!MOt(u)||s+1==l.length)return u;let h=l.charCodeAt(s+1);return COt(h)?(u-55296<<10)+(h-56320)+65536:u}function COt(l){return l>=56320&&l<57344}function MOt(l){return l>=55296&&l<56320}function i3t(l){return l<65536?1:2}class fc{lineAt(s){if(s<0||s>this.length)throw new RangeError(`Invalid position ${s} in document of length ${this.length}`);return this.lineInner(s,!1,1,0)}line(s){if(s<1||s>this.lines)throw new RangeError(`Invalid line number ${s} in ${this.lines}-line document`);return this.lineInner(s,!0,1,0)}replace(s,u,h){[s,u]=eR(this,s,u);let g=[];return this.decompose(0,s,g,2),h.length&&h.decompose(0,h.length,g,3),this.decompose(u,this.length,g,1),U3.from(g,this.length-(u-s)+h.length)}append(s){return this.replace(this.length,this.length,s)}slice(s,u=this.length){[s,u]=eR(this,s,u);let h=[];return this.decompose(s,u,h,0),U3.from(h,u-s)}eq(s){if(s==this)return!0;if(s.length!=this.length||s.lines!=this.lines)return!1;let u=this.scanIdentical(s,1),h=this.length-this.scanIdentical(s,-1),g=new iX(this),m=new iX(s);for(let p=u,k=u;;){if(g.next(p),m.next(p),p=0,g.lineBreak!=m.lineBreak||g.done!=m.done||g.value!=m.value)return!1;if(k+=g.value.length,g.done||k>=h)return!0}}iter(s=1){return new iX(this,s)}iterRange(s,u=this.length){return new AOt(this,s,u)}iterLines(s,u){let h;if(s==null)h=this.iter();else{u==null&&(u=this.lines+1);let g=this.line(s).from;h=this.iterRange(g,Math.max(g,u==this.lines+1?this.length:u<=1?0:this.line(u-1).to))}return new NOt(h)}toString(){return this.sliceString(0)}toJSON(){let s=[];return this.flatten(s),s}constructor(){}static of(s){if(s.length==0)throw new RangeError("A document must have at least one line");return s.length==1&&!s[0]?fc.empty:s.length<=32?new $f(s):U3.from($f.split(s,[]))}}class $f extends fc{constructor(s,u=T1n(s)){super(),this.text=s,this.length=u}get lines(){return this.text.length}get children(){return null}lineInner(s,u,h,g){for(let m=0;;m++){let p=this.text[m],k=g+p.length;if((u?h:k)>=s)return new E1n(g,k,h,p);g=k+1,h++}}decompose(s,u,h,g){let m=s<=0&&u>=this.length?this:new $f(r3t(this.text,s,u),Math.min(u,this.length)-Math.max(0,s));if(g&1){let p=h.pop(),k=Zfe(m.text,p.text.slice(),0,m.length);if(k.length<=32)h.push(new $f(k,p.length+m.length));else{let S=k.length>>1;h.push(new $f(k.slice(0,S)),new $f(k.slice(S)))}}else h.push(m)}replace(s,u,h){if(!(h instanceof $f))return super.replace(s,u,h);[s,u]=eR(this,s,u);let g=Zfe(this.text,Zfe(h.text,r3t(this.text,0,s)),u),m=this.length+h.length-(u-s);return g.length<=32?new $f(g,m):U3.from($f.split(g,[]),m)}sliceString(s,u=this.length,h=`
`){[s,u]=eR(this,s,u);let g="";for(let m=0,p=0;m<=u&&p<this.text.length;p++){let k=this.text[p],S=m+k.length;m>s&&p&&(g+=h),s<S&&u>m&&(g+=k.slice(Math.max(0,s-m),u-m)),m=S+1}return g}flatten(s){for(let u of this.text)s.push(u)}scanIdentical(){return 0}static split(s,u){let h=[],g=-1;for(let m of s)h.push(m),g+=m.length+1,h.length==32&&(u.push(new $f(h,g)),h=[],g=-1);return g>-1&&u.push(new $f(h,g)),u}}class U3 extends fc{constructor(s,u){super(),this.children=s,this.length=u,this.lines=0;for(let h of s)this.lines+=h.lines}lineInner(s,u,h,g){for(let m=0;;m++){let p=this.children[m],k=g+p.length,S=h+p.lines-1;if((u?S:k)>=s)return p.lineInner(s,u,h,g);g=k+1,h=S+1}}decompose(s,u,h,g){for(let m=0,p=0;p<=u&&m<this.children.length;m++){let k=this.children[m],S=p+k.length;if(s<=S&&u>=p){let C=g&((p<=s?1:0)|(S>=u?2:0));p>=s&&S<=u&&!C?h.push(k):k.decompose(s-p,u-p,h,C)}p=S+1}}replace(s,u,h){if([s,u]=eR(this,s,u),h.lines<this.lines)for(let g=0,m=0;g<this.children.length;g++){let p=this.children[g],k=m+p.length;if(s>=m&&u<=k){let S=p.replace(s-m,u-m,h),C=this.lines-p.lines+S.lines;if(S.lines<C>>4&&S.lines>C>>6){let N=this.children.slice();return N[g]=S,new U3(N,this.length-(u-s)+h.length)}return super.replace(m,k,S)}m=k+1}return super.replace(s,u,h)}sliceString(s,u=this.length,h=`
`){[s,u]=eR(this,s,u);let g="";for(let m=0,p=0;m<this.children.length&&p<=u;m++){let k=this.children[m],S=p+k.length;p>s&&m&&(g+=h),s<S&&u>p&&(g+=k.sliceString(s-p,u-p,h)),p=S+1}return g}flatten(s){for(let u of this.children)u.flatten(s)}scanIdentical(s,u){if(!(s instanceof U3))return 0;let h=0,[g,m,p,k]=u>0?[0,0,this.children.length,s.children.length]:[this.children.length-1,s.children.length-1,-1,-1];for(;;g+=u,m+=u){if(g==p||m==k)return h;let S=this.children[g],C=s.children[m];if(S!=C)return h+S.scanIdentical(C,u);h+=S.length+1}}static from(s,u=s.reduce((h,g)=>h+g.length+1,-1)){let h=0;for(let R of s)h+=R.lines;if(h<32){let R=[];for(let q of s)q.flatten(R);return new $f(R,u)}let g=Math.max(32,h>>5),m=g<<1,p=g>>1,k=[],S=0,C=-1,N=[];function _(R){let q;if(R.lines>m&&R instanceof U3)for(let F of R.children)_(F);else R.lines>p&&(S>p||!S)?(P(),k.push(R)):R instanceof $f&&S&&(q=N[N.length-1])instanceof $f&&R.lines+q.lines<=32?(S+=R.lines,C+=R.length+1,N[N.length-1]=new $f(q.text.concat(R.text),q.length+1+R.length)):(S+R.lines>g&&P(),S+=R.lines,C+=R.length+1,N.push(R))}function P(){S!=0&&(k.push(N.length==1?N[0]:U3.from(N,C)),C=-1,S=N.length=0)}for(let R of s)_(R);return P(),k.length==1?k[0]:new U3(k,u)}}fc.empty=new $f([""],0);function T1n(l){let s=-1;for(let u of l)s+=u.length+1;return s}function Zfe(l,s,u=0,h=1e9){for(let g=0,m=0,p=!0;m<l.length&&g<=h;m++){let k=l[m],S=g+k.length;S>=u&&(S>h&&(k=k.slice(0,h-g)),g<u&&(k=k.slice(u-g)),p?(s[s.length-1]+=k,p=!1):s.push(k)),g=S+1}return s}function r3t(l,s,u){return Zfe(l,[""],s,u)}class iX{constructor(s,u=1){this.dir=u,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[s],this.offsets=[u>0?1:(s instanceof $f?s.text.length:s.children.length)<<1]}nextInner(s,u){for(this.done=this.lineBreak=!1;;){let h=this.nodes.length-1,g=this.nodes[h],m=this.offsets[h],p=m>>1,k=g instanceof $f?g.text.length:g.children.length;if(p==(u>0?k:0)){if(h==0)return this.done=!0,this.value="",this;u>0&&this.offsets[h-1]++,this.nodes.pop(),this.offsets.pop()}else if((m&1)==(u>0?0:1)){if(this.offsets[h]+=u,s==0)return this.lineBreak=!0,this.value=`
`,this;s--}else if(g instanceof $f){let S=g.text[p+(u<0?-1:0)];if(this.offsets[h]+=u,S.length>Math.max(0,s))return this.value=s==0?S:u>0?S.slice(s):S.slice(0,S.length-s),this;s-=S.length}else{let S=g.children[p+(u<0?-1:0)];s>S.length?(s-=S.length,this.offsets[h]+=u):(u<0&&this.offsets[h]--,this.nodes.push(S),this.offsets.push(u>0?1:(S instanceof $f?S.text.length:S.children.length)<<1))}}}next(s=0){return s<0&&(this.nextInner(-s,-this.dir),s=this.value.length),this.nextInner(s,this.dir)}}class AOt{constructor(s,u,h){this.value="",this.done=!1,this.cursor=new iX(s,u>h?-1:1),this.pos=u>h?s.length:0,this.from=Math.min(u,h),this.to=Math.max(u,h)}nextInner(s,u){if(u<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;s+=Math.max(0,u<0?this.pos-this.to:this.from-this.pos);let h=u<0?this.pos-this.from:this.to-this.pos;s>h&&(s=h),h-=s;let{value:g}=this.cursor.next(s);return this.pos+=(g.length+s)*u,this.value=g.length<=h?g:u<0?g.slice(g.length-h):g.slice(0,h),this.done=!this.value,this}next(s=0){return s<0?s=Math.max(s,this.from-this.pos):s>0&&(s=Math.min(s,this.to-this.pos)),this.nextInner(s,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class NOt{constructor(s){this.inner=s,this.afterBreak=!0,this.value="",this.done=!1}next(s=0){let{done:u,lineBreak:h,value:g}=this.inner.next(s);return u&&this.afterBreak?(this.value="",this.afterBreak=!1):u?(this.done=!0,this.value=""):h?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=g,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(fc.prototype[Symbol.iterator]=function(){return this.iter()},iX.prototype[Symbol.iterator]=AOt.prototype[Symbol.iterator]=NOt.prototype[Symbol.iterator]=function(){return this});class E1n{constructor(s,u,h,g){this.from=s,this.to=u,this.number=h,this.text=g}get length(){return this.to-this.from}}function eR(l,s,u){return s=Math.max(0,Math.min(l.length,s)),[s,Math.max(s,Math.min(l.length,u))]}function yd(l,s,u=!0,h=!0){return S1n(l,s,u,h)}function C1n(l){return l>=56320&&l<57344}function M1n(l){return l>=55296&&l<56320}function Kb(l,s){let u=l.charCodeAt(s);if(!M1n(u)||s+1==l.length)return u;let h=l.charCodeAt(s+1);return C1n(h)?(u-55296<<10)+(h-56320)+65536:u}function $Ae(l){return l<=65535?String.fromCharCode(l):(l-=65536,String.fromCharCode((l>>10)+55296,(l&1023)+56320))}function J3(l){return l<65536?1:2}const gMe=/\r\n?|\n/;var s1=(function(l){return l[l.Simple=0]="Simple",l[l.TrackDel=1]="TrackDel",l[l.TrackBefore=2]="TrackBefore",l[l.TrackAfter=3]="TrackAfter",l})(s1||(s1={}));class e5{constructor(s){this.sections=s}get length(){let s=0;for(let u=0;u<this.sections.length;u+=2)s+=this.sections[u];return s}get newLength(){let s=0;for(let u=0;u<this.sections.length;u+=2){let h=this.sections[u+1];s+=h<0?this.sections[u]:h}return s}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(s){for(let u=0,h=0,g=0;u<this.sections.length;){let m=this.sections[u++],p=this.sections[u++];p<0?(s(h,g,m),g+=m):g+=p,h+=m}}iterChangedRanges(s,u=!1){pMe(this,s,u)}get invertedDesc(){let s=[];for(let u=0;u<this.sections.length;){let h=this.sections[u++],g=this.sections[u++];g<0?s.push(h,g):s.push(g,h)}return new e5(s)}composeDesc(s){return this.empty?s:s.empty?this:_Ot(this,s)}mapDesc(s,u=!1){return s.empty?this:bMe(this,s,u)}mapPos(s,u=-1,h=s1.Simple){let g=0,m=0;for(let p=0;p<this.sections.length;){let k=this.sections[p++],S=this.sections[p++],C=g+k;if(S<0){if(C>s)return m+(s-g);m+=k}else{if(h!=s1.Simple&&C>=s&&(h==s1.TrackDel&&g<s&&C>s||h==s1.TrackBefore&&g<s||h==s1.TrackAfter&&C>s))return null;if(C>s||C==s&&u<0&&!k)return s==g||u<0?m:m+S;m+=S}g=C}if(s>g)throw new RangeError(`Position ${s} is out of range for changeset of length ${g}`);return m}touchesRange(s,u=s){for(let h=0,g=0;h<this.sections.length&&g<=u;){let m=this.sections[h++],p=this.sections[h++],k=g+m;if(p>=0&&g<=u&&k>=s)return g<s&&k>u?"cover":!0;g=k}return!1}toString(){let s="";for(let u=0;u<this.sections.length;){let h=this.sections[u++],g=this.sections[u++];s+=(s?" ":"")+h+(g>=0?":"+g:"")}return s}toJSON(){return this.sections}static fromJSON(s){if(!Array.isArray(s)||s.length%2||s.some(u=>typeof u!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new e5(s)}static create(s){return new e5(s)}}class Hh extends e5{constructor(s,u){super(s),this.inserted=u}apply(s){if(this.length!=s.length)throw new RangeError("Applying change set to a document with the wrong length");return pMe(this,(u,h,g,m,p)=>s=s.replace(g,g+(h-u),p),!1),s}mapDesc(s,u=!1){return bMe(this,s,u,!0)}invert(s){let u=this.sections.slice(),h=[];for(let g=0,m=0;g<u.length;g+=2){let p=u[g],k=u[g+1];if(k>=0){u[g]=k,u[g+1]=p;let S=g>>1;for(;h.length<S;)h.push(fc.empty);h.push(p?s.slice(m,m+p):fc.empty)}m+=p}return new Hh(u,h)}compose(s){return this.empty?s:s.empty?this:_Ot(this,s,!0)}map(s,u=!1){return s.empty?this:bMe(this,s,u,!0)}iterChanges(s,u=!1){pMe(this,s,u)}get desc(){return e5.create(this.sections)}filter(s){let u=[],h=[],g=[],m=new kX(this);e:for(let p=0,k=0;;){let S=p==s.length?1e9:s[p++];for(;k<S||k==S&&m.len==0;){if(m.done)break e;let N=Math.min(m.len,S-k);ng(g,N,-1);let _=m.ins==-1?-1:m.off==0?m.ins:0;ng(u,N,_),_>0&&N9(h,u,m.text),m.forward(N),k+=N}let C=s[p++];for(;k<C;){if(m.done)break e;let N=Math.min(m.len,C-k);ng(u,N,-1),ng(g,N,m.ins==-1?-1:m.off==0?m.ins:0),m.forward(N),k+=N}}return{changes:new Hh(u,h),filtered:e5.create(g)}}toJSON(){let s=[];for(let u=0;u<this.sections.length;u+=2){let h=this.sections[u],g=this.sections[u+1];g<0?s.push(h):g==0?s.push([h]):s.push([h].concat(this.inserted[u>>1].toJSON()))}return s}static of(s,u,h){let g=[],m=[],p=0,k=null;function S(N=!1){if(!N&&!g.length)return;p<u&&ng(g,u-p,-1);let _=new Hh(g,m);k=k?k.compose(_.map(k)):_,g=[],m=[],p=0}function C(N){if(Array.isArray(N))for(let _ of N)C(_);else if(N instanceof Hh){if(N.length!=u)throw new RangeError(`Mismatched change set length (got ${N.length}, expected ${u})`);S(),k=k?k.compose(N.map(k)):N}else{let{from:_,to:P=_,insert:R}=N;if(_>P||_<0||P>u)throw new RangeError(`Invalid change range ${_} to ${P} (in doc of length ${u})`);let q=R?typeof R=="string"?fc.of(R.split(h||gMe)):R:fc.empty,F=q.length;if(_==P&&F==0)return;_<p&&S(),_>p&&ng(g,_-p,-1),ng(g,P-_,F),N9(m,g,q),p=P}}return C(s),S(!k),k}static empty(s){return new Hh(s?[s,-1]:[],[])}static fromJSON(s){if(!Array.isArray(s))throw new RangeError("Invalid JSON representation of ChangeSet");let u=[],h=[];for(let g=0;g<s.length;g++){let m=s[g];if(typeof m=="number")u.push(m,-1);else{if(!Array.isArray(m)||typeof m[0]!="number"||m.some((p,k)=>k&&typeof p!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(m.length==1)u.push(m[0],0);else{for(;h.length<g;)h.push(fc.empty);h[g]=fc.of(m.slice(1)),u.push(m[0],h[g].length)}}}return new Hh(u,h)}static createSet(s,u){return new Hh(s,u)}}function ng(l,s,u,h=!1){if(s==0&&u<=0)return;let g=l.length-2;g>=0&&u<=0&&u==l[g+1]?l[g]+=s:g>=0&&s==0&&l[g]==0?l[g+1]+=u:h?(l[g]+=s,l[g+1]+=u):l.push(s,u)}function N9(l,s,u){if(u.length==0)return;let h=s.length-2>>1;if(h<l.length)l[l.length-1]=l[l.length-1].append(u);else{for(;l.length<h;)l.push(fc.empty);l.push(u)}}function pMe(l,s,u){let h=l.inserted;for(let g=0,m=0,p=0;p<l.sections.length;){let k=l.sections[p++],S=l.sections[p++];if(S<0)g+=k,m+=k;else{let C=g,N=m,_=fc.empty;for(;C+=k,N+=S,S&&h&&(_=_.append(h[p-2>>1])),!(u||p==l.sections.length||l.sections[p+1]<0);)k=l.sections[p++],S=l.sections[p++];s(g,C,m,N,_),g=C,m=N}}}function bMe(l,s,u,h=!1){let g=[],m=h?[]:null,p=new kX(l),k=new kX(s);for(let S=-1;;){if(p.done&&k.len||k.done&&p.len)throw new Error("Mismatched change set lengths");if(p.ins==-1&&k.ins==-1){let C=Math.min(p.len,k.len);ng(g,C,-1),p.forward(C),k.forward(C)}else if(k.ins>=0&&(p.ins<0||S==p.i||p.off==0&&(k.len<p.len||k.len==p.len&&!u))){let C=k.len;for(ng(g,k.ins,-1);C;){let N=Math.min(p.len,C);p.ins>=0&&S<p.i&&p.len<=N&&(ng(g,0,p.ins),m&&N9(m,g,p.text),S=p.i),p.forward(N),C-=N}k.next()}else if(p.ins>=0){let C=0,N=p.len;for(;N;)if(k.ins==-1){let _=Math.min(N,k.len);C+=_,N-=_,k.forward(_)}else if(k.ins==0&&k.len<N)N-=k.len,k.next();else break;ng(g,C,S<p.i?p.ins:0),m&&S<p.i&&N9(m,g,p.text),S=p.i,p.forward(p.len-N)}else{if(p.done&&k.done)return m?Hh.createSet(g,m):e5.create(g);throw new Error("Mismatched change set lengths")}}}function _Ot(l,s,u=!1){let h=[],g=u?[]:null,m=new kX(l),p=new kX(s);for(let k=!1;;){if(m.done&&p.done)return g?Hh.createSet(h,g):e5.create(h);if(m.ins==0)ng(h,m.len,0,k),m.next();else if(p.len==0&&!p.done)ng(h,0,p.ins,k),g&&N9(g,h,p.text),p.next();else{if(m.done||p.done)throw new Error("Mismatched change set lengths");{let S=Math.min(m.len2,p.len),C=h.length;if(m.ins==-1){let N=p.ins==-1?-1:p.off?0:p.ins;ng(h,S,N,k),g&&N&&N9(g,h,p.text)}else p.ins==-1?(ng(h,m.off?0:m.len,S,k),g&&N9(g,h,m.textBit(S))):(ng(h,m.off?0:m.len,p.off?0:p.ins,k),g&&!p.off&&N9(g,h,p.text));k=(m.ins>S||p.ins>=0&&p.len>S)&&(k||h.length>C),m.forward2(S),p.forward(S)}}}}class kX{constructor(s){this.set=s,this.i=0,this.next()}next(){let{sections:s}=this.set;this.i<s.length?(this.len=s[this.i++],this.ins=s[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:s}=this.set,u=this.i-2>>1;return u>=s.length?fc.empty:s[u]}textBit(s){let{inserted:u}=this.set,h=this.i-2>>1;return h>=u.length&&!s?fc.empty:u[h].slice(this.off,s==null?void 0:this.off+s)}forward(s){s==this.len?this.next():(this.len-=s,this.off+=s)}forward2(s){this.ins==-1?this.forward(s):s==this.ins?this.next():(this.ins-=s,this.off+=s)}}class OM{constructor(s,u,h){this.from=s,this.to=u,this.flags=h}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let s=this.flags&7;return s==7?null:s}get goalColumn(){let s=this.flags>>6;return s==16777215?void 0:s}map(s,u=-1){let h,g;return this.empty?h=g=s.mapPos(this.from,u):(h=s.mapPos(this.from,1),g=s.mapPos(this.to,-1)),h==this.from&&g==this.to?this:new OM(h,g,this.flags)}extend(s,u=s){if(s<=this.anchor&&u>=this.anchor)return jn.range(s,u);let h=Math.abs(s-this.anchor)>Math.abs(u-this.anchor)?s:u;return jn.range(this.anchor,h)}eq(s,u=!1){return this.anchor==s.anchor&&this.head==s.head&&this.goalColumn==s.goalColumn&&(!u||!this.empty||this.assoc==s.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(s){if(!s||typeof s.anchor!="number"||typeof s.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return jn.range(s.anchor,s.head)}static create(s,u,h){return new OM(s,u,h)}}class jn{constructor(s,u){this.ranges=s,this.mainIndex=u}map(s,u=-1){return s.empty?this:jn.create(this.ranges.map(h=>h.map(s,u)),this.mainIndex)}eq(s,u=!1){if(this.ranges.length!=s.ranges.length||this.mainIndex!=s.mainIndex)return!1;for(let h=0;h<this.ranges.length;h++)if(!this.ranges[h].eq(s.ranges[h],u))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new jn([this.main],0)}addRange(s,u=!0){return jn.create([s].concat(this.ranges),u?0:this.mainIndex+1)}replaceRange(s,u=this.mainIndex){let h=this.ranges.slice();return h[u]=s,jn.create(h,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(s=>s.toJSON()),main:this.mainIndex}}static fromJSON(s){if(!s||!Array.isArray(s.ranges)||typeof s.main!="number"||s.main>=s.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new jn(s.ranges.map(u=>OM.fromJSON(u)),s.main)}static single(s,u=s){return new jn([jn.range(s,u)],0)}static create(s,u=0){if(s.length==0)throw new RangeError("A selection needs at least one range");for(let h=0,g=0;g<s.length;g++){let m=s[g];if(m.empty?m.from<=h:m.from<h)return jn.normalized(s.slice(),u);h=m.to}return new jn(s,u)}static cursor(s,u=0,h,g){return OM.create(s,s,(u==0?0:u<0?8:16)|(h==null?7:Math.min(6,h))|(g??16777215)<<6)}static range(s,u,h,g){let m=(h??16777215)<<6|(g==null?7:Math.min(6,g));return u<s?OM.create(u,s,48|m):OM.create(s,u,(u>s?8:0)|m)}static normalized(s,u=0){let h=s[u];s.sort((g,m)=>g.from-m.from),u=s.indexOf(h);for(let g=1;g<s.length;g++){let m=s[g],p=s[g-1];if(m.empty?m.from<=p.to:m.from<p.to){let k=p.from,S=Math.max(m.to,p.to);g<=u&&u--,s.splice(--g,2,m.anchor>m.head?jn.range(S,k):jn.range(k,S))}}return new jn(s,u)}}function DOt(l,s){for(let u of l.ranges)if(u.to>s)throw new RangeError("Selection points outside of document")}let BAe=0;class Ui{constructor(s,u,h,g,m){this.combine=s,this.compareInput=u,this.compare=h,this.isStatic=g,this.id=BAe++,this.default=s([]),this.extensions=typeof m=="function"?m(this):m}get reader(){return this}static define(s={}){return new Ui(s.combine||(u=>u),s.compareInput||((u,h)=>u===h),s.compare||(s.combine?(u,h)=>u===h:zAe),!!s.static,s.enables)}of(s){return new ehe([],this,0,s)}compute(s,u){if(this.isStatic)throw new Error("Can't compute a static facet");return new ehe(s,this,1,u)}computeN(s,u){if(this.isStatic)throw new Error("Can't compute a static facet");return new ehe(s,this,2,u)}from(s,u){return u||(u=h=>h),this.compute([s],h=>u(h.field(s)))}}function zAe(l,s){return l==s||l.length==s.length&&l.every((u,h)=>u===s[h])}class ehe{constructor(s,u,h,g){this.dependencies=s,this.facet=u,this.type=h,this.value=g,this.id=BAe++}dynamicSlot(s){var u;let h=this.value,g=this.facet.compareInput,m=this.id,p=s[m]>>1,k=this.type==2,S=!1,C=!1,N=[];for(let _ of this.dependencies)_=="doc"?S=!0:_=="selection"?C=!0:(((u=s[_.id])!==null&&u!==void 0?u:1)&1)==0&&N.push(s[_.id]);return{create(_){return _.values[p]=h(_),1},update(_,P){if(S&&P.docChanged||C&&(P.docChanged||P.selection)||mMe(_,N)){let R=h(_);if(k?!s3t(R,_.values[p],g):!g(R,_.values[p]))return _.values[p]=R,1}return 0},reconfigure:(_,P)=>{let R,q=P.config.address[m];if(q!=null){let F=jhe(P,q);if(this.dependencies.every(X=>X instanceof Ui?P.facet(X)===_.facet(X):X instanceof kd?P.field(X,!1)==_.field(X,!1):!0)||(k?s3t(R=h(_),F,g):g(R=h(_),F)))return _.values[p]=F,0}else R=h(_);return _.values[p]=R,1}}}}function s3t(l,s,u){if(l.length!=s.length)return!1;for(let h=0;h<l.length;h++)if(!u(l[h],s[h]))return!1;return!0}function mMe(l,s){let u=!1;for(let h of s)rX(l,h)&1&&(u=!0);return u}function A1n(l,s,u){let h=u.map(S=>l[S.id]),g=u.map(S=>S.type),m=h.filter(S=>!(S&1)),p=l[s.id]>>1;function k(S){let C=[];for(let N=0;N<h.length;N++){let _=jhe(S,h[N]);if(g[N]==2)for(let P of _)C.push(P);else C.push(_)}return s.combine(C)}return{create(S){for(let C of h)rX(S,C);return S.values[p]=k(S),1},update(S,C){if(!mMe(S,m))return 0;let N=k(S);return s.compare(N,S.values[p])?0:(S.values[p]=N,1)},reconfigure(S,C){let N=mMe(S,h),_=C.config.facets[s.id],P=C.facet(s);if(_&&!N&&zAe(u,_))return S.values[p]=P,0;let R=k(S);return s.compare(R,P)?(S.values[p]=P,0):(S.values[p]=R,1)}}}const gfe=Ui.define({static:!0});class kd{constructor(s,u,h,g,m){this.id=s,this.createF=u,this.updateF=h,this.compareF=g,this.spec=m,this.provides=void 0}static define(s){let u=new kd(BAe++,s.create,s.update,s.compare||((h,g)=>h===g),s);return s.provide&&(u.provides=s.provide(u)),u}create(s){let u=s.facet(gfe).find(h=>h.field==this);return((u==null?void 0:u.create)||this.createF)(s)}slot(s){let u=s[this.id]>>1;return{create:h=>(h.values[u]=this.create(h),1),update:(h,g)=>{let m=h.values[u],p=this.updateF(m,g);return this.compareF(m,p)?0:(h.values[u]=p,1)},reconfigure:(h,g)=>{let m=h.facet(gfe),p=g.facet(gfe),k;return(k=m.find(S=>S.field==this))&&k!=p.find(S=>S.field==this)?(h.values[u]=k.create(h),1):g.config.address[this.id]!=null?(h.values[u]=g.field(this),0):(h.values[u]=this.create(h),1)}}}init(s){return[this,gfe.of({field:this,create:s})]}get extension(){return this}}const yM={lowest:4,low:3,default:2,high:1,highest:0};function zV(l){return s=>new LOt(s,l)}const G9={highest:zV(yM.highest),high:zV(yM.high),default:zV(yM.default),low:zV(yM.low),lowest:zV(yM.lowest)};class LOt{constructor(s,u){this.inner=s,this.prec=u}}class WX{of(s){return new wMe(this,s)}reconfigure(s){return WX.reconfigure.of({compartment:this,extension:s})}get(s){return s.config.compartments.get(this)}}class wMe{constructor(s,u){this.compartment=s,this.inner=u}}class She{constructor(s,u,h,g,m,p){for(this.base=s,this.compartments=u,this.dynamicSlots=h,this.address=g,this.staticValues=m,this.facets=p,this.statusTemplate=[];this.statusTemplate.length<h.length;)this.statusTemplate.push(0)}staticFacet(s){let u=this.address[s.id];return u==null?s.default:this.staticValues[u>>1]}static resolve(s,u,h){let g=[],m=Object.create(null),p=new Map;for(let P of N1n(s,u,p))P instanceof kd?g.push(P):(m[P.facet.id]||(m[P.facet.id]=[])).push(P);let k=Object.create(null),S=[],C=[];for(let P of g)k[P.id]=C.length<<1,C.push(R=>P.slot(R));let N=h==null?void 0:h.config.facets;for(let P in m){let R=m[P],q=R[0].facet,F=N&&N[P]||[];if(R.every(X=>X.type==0))if(k[q.id]=S.length<<1|1,zAe(F,R))S.push(h.facet(q));else{let X=q.combine(R.map(J=>J.value));S.push(h&&q.compare(X,h.facet(q))?h.facet(q):X)}else{for(let X of R)X.type==0?(k[X.id]=S.length<<1|1,S.push(X.value)):(k[X.id]=C.length<<1,C.push(J=>X.dynamicSlot(J)));k[q.id]=C.length<<1,C.push(X=>A1n(X,q,R))}}let _=C.map(P=>P(k));return new She(s,p,_,k,S,m)}}function N1n(l,s,u){let h=[[],[],[],[],[]],g=new Map;function m(p,k){let S=g.get(p);if(S!=null){if(S<=k)return;let C=h[S].indexOf(p);C>-1&&h[S].splice(C,1),p instanceof wMe&&u.delete(p.compartment)}if(g.set(p,k),Array.isArray(p))for(let C of p)m(C,k);else if(p instanceof wMe){if(u.has(p.compartment))throw new RangeError("Duplicate use of compartment in extensions");let C=s.get(p.compartment)||p.inner;u.set(p.compartment,C),m(C,k)}else if(p instanceof LOt)m(p.inner,p.prec);else if(p instanceof kd)h[k].push(p),p.provides&&m(p.provides,k);else if(p instanceof ehe)h[k].push(p),p.facet.extensions&&m(p.facet.extensions,yM.default);else{let C=p.extension;if(!C)throw new Error(`Unrecognized extension value in extension set (${p}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);m(C,k)}}return m(l,yM.default),h.reduce((p,k)=>p.concat(k))}function rX(l,s){if(s&1)return 2;let u=s>>1,h=l.status[u];if(h==4)throw new Error("Cyclic dependency between fields and/or facets");if(h&2)return h;l.status[u]=4;let g=l.computeSlot(l,l.config.dynamicSlots[u]);return l.status[u]=2|g}function jhe(l,s){return s&1?l.config.staticValues[s>>1]:l.values[s>>1]}const POt=Ui.define(),vMe=Ui.define({combine:l=>l.some(s=>s),static:!0}),IOt=Ui.define({combine:l=>l.length?l[0]:void 0,static:!0}),ROt=Ui.define(),$Ot=Ui.define(),BOt=Ui.define(),zOt=Ui.define({combine:l=>l.length?l[0]:!1});class xO{constructor(s,u){this.type=s,this.value=u}static define(){return new _1n}}class _1n{of(s){return new xO(this,s)}}class D1n{constructor(s){this.map=s}of(s){return new Ls(this,s)}}class Ls{constructor(s,u){this.type=s,this.value=u}map(s){let u=this.type.map(this.value,s);return u===void 0?void 0:u==this.value?this:new Ls(this.type,u)}is(s){return this.type==s}static define(s={}){return new D1n(s.map||(u=>u))}static mapEffects(s,u){if(!s.length)return s;let h=[];for(let g of s){let m=g.map(u);m&&h.push(m)}return h}}Ls.reconfigure=Ls.define();Ls.appendConfig=Ls.define();class ah{constructor(s,u,h,g,m,p){this.startState=s,this.changes=u,this.selection=h,this.effects=g,this.annotations=m,this.scrollIntoView=p,this._doc=null,this._state=null,h&&DOt(h,u.newLength),m.some(k=>k.type==ah.time)||(this.annotations=m.concat(ah.time.of(Date.now())))}static create(s,u,h,g,m,p){return new ah(s,u,h,g,m,p)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(s){for(let u of this.annotations)if(u.type==s)return u.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(s){let u=this.annotation(ah.userEvent);return!!(u&&(u==s||u.length>s.length&&u.slice(0,s.length)==s&&u[s.length]=="."))}}ah.time=xO.define();ah.userEvent=xO.define();ah.addToHistory=xO.define();ah.remote=xO.define();function L1n(l,s){let u=[];for(let h=0,g=0;;){let m,p;if(h<l.length&&(g==s.length||s[g]>=l[h]))m=l[h++],p=l[h++];else if(g<s.length)m=s[g++],p=s[g++];else return u;!u.length||u[u.length-1]<m?u.push(m,p):u[u.length-1]<p&&(u[u.length-1]=p)}}function FOt(l,s,u){var h;let g,m,p;return u?(g=s.changes,m=Hh.empty(s.changes.length),p=l.changes.compose(s.changes)):(g=s.changes.map(l.changes),m=l.changes.mapDesc(s.changes,!0),p=l.changes.compose(g)),{changes:p,selection:s.selection?s.selection.map(m):(h=l.selection)===null||h===void 0?void 0:h.map(g),effects:Ls.mapEffects(l.effects,g).concat(Ls.mapEffects(s.effects,m)),annotations:l.annotations.length?l.annotations.concat(s.annotations):s.annotations,scrollIntoView:l.scrollIntoView||s.scrollIntoView}}function yMe(l,s,u){let h=s.selection,g=BI(s.annotations);return s.userEvent&&(g=g.concat(ah.userEvent.of(s.userEvent))),{changes:s.changes instanceof Hh?s.changes:Hh.of(s.changes||[],u,l.facet(IOt)),selection:h&&(h instanceof jn?h:jn.single(h.anchor,h.head)),effects:BI(s.effects),annotations:g,scrollIntoView:!!s.scrollIntoView}}function qOt(l,s,u){let h=yMe(l,s.length?s[0]:{},l.doc.length);s.length&&s[0].filter===!1&&(u=!1);for(let m=1;m<s.length;m++){s[m].filter===!1&&(u=!1);let p=!!s[m].sequential;h=FOt(h,yMe(l,s[m],p?h.changes.newLength:l.doc.length),p)}let g=ah.create(l,h.changes,h.selection,h.effects,h.annotations,h.scrollIntoView);return I1n(u?P1n(g):g)}function P1n(l){let s=l.startState,u=!0;for(let g of s.facet(ROt)){let m=g(l);if(m===!1){u=!1;break}Array.isArray(m)&&(u=u===!0?m:L1n(u,m))}if(u!==!0){let g,m;if(u===!1)m=l.changes.invertedDesc,g=Hh.empty(s.doc.length);else{let p=l.changes.filter(u);g=p.changes,m=p.filtered.mapDesc(p.changes).invertedDesc}l=ah.create(s,g,l.selection&&l.selection.map(m),Ls.mapEffects(l.effects,m),l.annotations,l.scrollIntoView)}let h=s.facet($Ot);for(let g=h.length-1;g>=0;g--){let m=h[g](l);m instanceof ah?l=m:Array.isArray(m)&&m.length==1&&m[0]instanceof ah?l=m[0]:l=qOt(s,BI(m),!1)}return l}function I1n(l){let s=l.startState,u=s.facet(BOt),h=l;for(let g=u.length-1;g>=0;g--){let m=u[g](l);m&&Object.keys(m).length&&(h=FOt(h,yMe(s,m,l.changes.newLength),!0))}return h==l?l:ah.create(s,l.changes,l.selection,h.effects,h.annotations,h.scrollIntoView)}const R1n=[];function BI(l){return l==null?R1n:Array.isArray(l)?l:[l]}var ta=(function(l){return l[l.Word=0]="Word",l[l.Space=1]="Space",l[l.Other=2]="Other",l})(ta||(ta={}));const $1n=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let xMe;try{xMe=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function B1n(l){if(xMe)return xMe.test(l);for(let s=0;s<l.length;s++){let u=l[s];if(/\w/.test(u)||u>""&&(u.toUpperCase()!=u.toLowerCase()||$1n.test(u)))return!0}return!1}function z1n(l){return s=>{if(!/\S/.test(s))return ta.Space;if(B1n(s))return ta.Word;for(let u=0;u<l.length;u++)if(s.indexOf(l[u])>-1)return ta.Word;return ta.Other}}class Bc{constructor(s,u,h,g,m,p){this.config=s,this.doc=u,this.selection=h,this.values=g,this.status=s.statusTemplate.slice(),this.computeSlot=m,p&&(p._state=this);for(let k=0;k<this.config.dynamicSlots.length;k++)rX(this,k<<1);this.computeSlot=null}field(s,u=!0){let h=this.config.address[s.id];if(h==null){if(u)throw new RangeError("Field is not present in this state");return}return rX(this,h),jhe(this,h)}update(...s){return qOt(this,s,!0)}applyTransaction(s){let u=this.config,{base:h,compartments:g}=u;for(let k of s.effects)k.is(WX.reconfigure)?(u&&(g=new Map,u.compartments.forEach((S,C)=>g.set(C,S)),u=null),g.set(k.value.compartment,k.value.extension)):k.is(Ls.reconfigure)?(u=null,h=k.value):k.is(Ls.appendConfig)&&(u=null,h=BI(h).concat(k.value));let m;u?m=s.startState.values.slice():(u=She.resolve(h,g,this),m=new Bc(u,this.doc,this.selection,u.dynamicSlots.map(()=>null),(S,C)=>C.reconfigure(S,this),null).values);let p=s.startState.facet(vMe)?s.newSelection:s.newSelection.asSingle();new Bc(u,s.newDoc,p,m,(k,S)=>S.update(k,s),s)}replaceSelection(s){return typeof s=="string"&&(s=this.toText(s)),this.changeByRange(u=>({changes:{from:u.from,to:u.to,insert:s},range:jn.cursor(u.from+s.length)}))}changeByRange(s){let u=this.selection,h=s(u.ranges[0]),g=this.changes(h.changes),m=[h.range],p=BI(h.effects);for(let k=1;k<u.ranges.length;k++){let S=s(u.ranges[k]),C=this.changes(S.changes),N=C.map(g);for(let P=0;P<k;P++)m[P]=m[P].map(N);let _=g.mapDesc(C,!0);m.push(S.range.map(_)),g=g.compose(N),p=Ls.mapEffects(p,N).concat(Ls.mapEffects(BI(S.effects),_))}return{changes:g,selection:jn.create(m,u.mainIndex),effects:p}}changes(s=[]){return s instanceof Hh?s:Hh.of(s,this.doc.length,this.facet(Bc.lineSeparator))}toText(s){return fc.of(s.split(this.facet(Bc.lineSeparator)||gMe))}sliceDoc(s=0,u=this.doc.length){return this.doc.sliceString(s,u,this.lineBreak)}facet(s){let u=this.config.address[s.id];return u==null?s.default:(rX(this,u),jhe(this,u))}toJSON(s){let u={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(s)for(let h in s){let g=s[h];g instanceof kd&&this.config.address[g.id]!=null&&(u[h]=g.spec.toJSON(this.field(s[h]),this))}return u}static fromJSON(s,u={},h){if(!s||typeof s.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let g=[];if(h){for(let m in h)if(Object.prototype.hasOwnProperty.call(s,m)){let p=h[m],k=s[m];g.push(p.init(S=>p.spec.fromJSON(k,S)))}}return Bc.create({doc:s.doc,selection:jn.fromJSON(s.selection),extensions:u.extensions?g.concat([u.extensions]):g})}static create(s={}){let u=She.resolve(s.extensions||[],new Map),h=s.doc instanceof fc?s.doc:fc.of((s.doc||"").split(u.staticFacet(Bc.lineSeparator)||gMe)),g=s.selection?s.selection instanceof jn?s.selection:jn.single(s.selection.anchor,s.selection.head):jn.single(0);return DOt(g,h.length),u.staticFacet(vMe)||(g=g.asSingle()),new Bc(u,h,g,u.dynamicSlots.map(()=>null),(m,p)=>p.create(m),null)}get tabSize(){return this.facet(Bc.tabSize)}get lineBreak(){return this.facet(Bc.lineSeparator)||`
`}get readOnly(){return this.facet(zOt)}phrase(s,...u){for(let h of this.facet(Bc.phrases))if(Object.prototype.hasOwnProperty.call(h,s)){s=h[s];break}return u.length&&(s=s.replace(/\$(\$|\d*)/g,(h,g)=>{if(g=="$")return"$";let m=+(g||1);return!m||m>u.length?h:u[m-1]})),s}languageDataAt(s,u,h=-1){let g=[];for(let m of this.facet(POt))for(let p of m(this,u,h))Object.prototype.hasOwnProperty.call(p,s)&&g.push(p[s]);return g}charCategorizer(s){let u=this.languageDataAt("wordChars",s);return z1n(u.length?u[0]:"")}wordAt(s){let{text:u,from:h,length:g}=this.doc.lineAt(s),m=this.charCategorizer(s),p=s-h,k=s-h;for(;p>0;){let S=yd(u,p,!1);if(m(u.slice(S,p))!=ta.Word)break;p=S}for(;k<g;){let S=yd(u,k);if(m(u.slice(k,S))!=ta.Word)break;k=S}return p==k?null:jn.range(p+h,k+h)}}Bc.allowMultipleSelections=vMe;Bc.tabSize=Ui.define({combine:l=>l.length?l[0]:4});Bc.lineSeparator=IOt;Bc.readOnly=zOt;Bc.phrases=Ui.define({compare(l,s){let u=Object.keys(l),h=Object.keys(s);return u.length==h.length&&u.every(g=>l[g]==s[g])}});Bc.languageData=POt;Bc.changeFilter=ROt;Bc.transactionFilter=$Ot;Bc.transactionExtender=BOt;WX.reconfigure=Ls.define();function c5(l,s,u={}){let h={};for(let g of l)for(let m of Object.keys(g)){let p=g[m],k=h[m];if(k===void 0)h[m]=p;else if(!(k===p||p===void 0))if(Object.hasOwnProperty.call(u,m))h[m]=u[m](k,p);else throw new Error("Config merge conflict for field "+m)}for(let g in s)h[g]===void 0&&(h[g]=s[g]);return h}class $9{eq(s){return this==s}range(s,u=s){return kMe.create(s,u,this)}}$9.prototype.startSide=$9.prototype.endSide=0;$9.prototype.point=!1;$9.prototype.mapMode=s1.TrackDel;function FAe(l,s){return l==s||l.constructor==s.constructor&&l.eq(s)}let kMe=class HOt{constructor(s,u,h){this.from=s,this.to=u,this.value=h}static create(s,u,h){return new HOt(s,u,h)}};function OMe(l,s){return l.from-s.from||l.value.startSide-s.value.startSide}class qAe{constructor(s,u,h,g){this.from=s,this.to=u,this.value=h,this.maxPoint=g}get length(){return this.to[this.to.length-1]}findIndex(s,u,h,g=0){let m=h?this.to:this.from;for(let p=g,k=m.length;;){if(p==k)return p;let S=p+k>>1,C=m[S]-s||(h?this.value[S].endSide:this.value[S].startSide)-u;if(S==p)return C>=0?p:k;C>=0?k=S:p=S+1}}between(s,u,h,g){for(let m=this.findIndex(u,-1e9,!0),p=this.findIndex(h,1e9,!1,m);m<p;m++)if(g(this.from[m]+s,this.to[m]+s,this.value[m])===!1)return!1}map(s,u){let h=[],g=[],m=[],p=-1,k=-1;for(let S=0;S<this.value.length;S++){let C=this.value[S],N=this.from[S]+s,_=this.to[S]+s,P,R;if(N==_){let q=u.mapPos(N,C.startSide,C.mapMode);if(q==null||(P=R=q,C.startSide!=C.endSide&&(R=u.mapPos(N,C.endSide),R<P)))continue}else if(P=u.mapPos(N,C.startSide),R=u.mapPos(_,C.endSide),P>R||P==R&&C.startSide>0&&C.endSide<=0)continue;(R-P||C.endSide-C.startSide)<0||(p<0&&(p=P),C.point&&(k=Math.max(k,R-P)),h.push(C),g.push(P-p),m.push(R-p))}return{mapped:h.length?new qAe(g,m,h,k):null,pos:p}}}class yo{constructor(s,u,h,g){this.chunkPos=s,this.chunk=u,this.nextLayer=h,this.maxPoint=g}static create(s,u,h,g){return new yo(s,u,h,g)}get length(){let s=this.chunk.length-1;return s<0?0:Math.max(this.chunkEnd(s),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let s=this.nextLayer.size;for(let u of this.chunk)s+=u.value.length;return s}chunkEnd(s){return this.chunkPos[s]+this.chunk[s].length}update(s){let{add:u=[],sort:h=!1,filterFrom:g=0,filterTo:m=this.length}=s,p=s.filter;if(u.length==0&&!p)return this;if(h&&(u=u.slice().sort(OMe)),this.isEmpty)return u.length?yo.of(u):this;let k=new QOt(this,null,-1).goto(0),S=0,C=[],N=new B9;for(;k.value||S<u.length;)if(S<u.length&&(k.from-u[S].from||k.startSide-u[S].value.startSide)>=0){let _=u[S++];N.addInner(_.from,_.to,_.value)||C.push(_)}else k.rangeIndex==1&&k.chunkIndex<this.chunk.length&&(S==u.length||this.chunkEnd(k.chunkIndex)<u[S].from)&&(!p||g>this.chunkEnd(k.chunkIndex)||m<this.chunkPos[k.chunkIndex])&&N.addChunk(this.chunkPos[k.chunkIndex],this.chunk[k.chunkIndex])?k.nextChunk():((!p||g>k.to||m<k.from||p(k.from,k.to,k.value))&&(N.addInner(k.from,k.to,k.value)||C.push(kMe.create(k.from,k.to,k.value))),k.next());return N.finishInner(this.nextLayer.isEmpty&&!C.length?yo.empty:this.nextLayer.update({add:C,filter:p,filterFrom:g,filterTo:m}))}map(s){if(s.empty||this.isEmpty)return this;let u=[],h=[],g=-1;for(let p=0;p<this.chunk.length;p++){let k=this.chunkPos[p],S=this.chunk[p],C=s.touchesRange(k,k+S.length);if(C===!1)g=Math.max(g,S.maxPoint),u.push(S),h.push(s.mapPos(k));else if(C===!0){let{mapped:N,pos:_}=S.map(k,s);N&&(g=Math.max(g,N.maxPoint),u.push(N),h.push(_))}}let m=this.nextLayer.map(s);return u.length==0?m:new yo(h,u,m||yo.empty,g)}between(s,u,h){if(!this.isEmpty){for(let g=0;g<this.chunk.length;g++){let m=this.chunkPos[g],p=this.chunk[g];if(u>=m&&s<=m+p.length&&p.between(m,s-m,u-m,h)===!1)return}this.nextLayer.between(s,u,h)}}iter(s=0){return OX.from([this]).goto(s)}get isEmpty(){return this.nextLayer==this}static iter(s,u=0){return OX.from(s).goto(u)}static compare(s,u,h,g,m=-1){let p=s.filter(_=>_.maxPoint>0||!_.isEmpty&&_.maxPoint>=m),k=u.filter(_=>_.maxPoint>0||!_.isEmpty&&_.maxPoint>=m),S=o3t(p,k,h),C=new FV(p,S,m),N=new FV(k,S,m);h.iterGaps((_,P,R)=>c3t(C,_,N,P,R,g)),h.empty&&h.length==0&&c3t(C,0,N,0,0,g)}static eq(s,u,h=0,g){g==null&&(g=999999999);let m=s.filter(N=>!N.isEmpty&&u.indexOf(N)<0),p=u.filter(N=>!N.isEmpty&&s.indexOf(N)<0);if(m.length!=p.length)return!1;if(!m.length)return!0;let k=o3t(m,p),S=new FV(m,k,0).goto(h),C=new FV(p,k,0).goto(h);for(;;){if(S.to!=C.to||!SMe(S.active,C.active)||S.point&&(!C.point||!FAe(S.point,C.point)))return!1;if(S.to>g)return!0;S.next(),C.next()}}static spans(s,u,h,g,m=-1){let p=new FV(s,null,m).goto(u),k=u,S=p.openStart;for(;;){let C=Math.min(p.to,h);if(p.point){let N=p.activeForPoint(p.to),_=p.pointFrom<u?N.length+1:p.point.startSide<0?N.length:Math.min(N.length,S);g.point(k,C,p.point,N,_,p.pointRank),S=Math.min(p.openEnd(C),N.length)}else C>k&&(g.span(k,C,p.active,S),S=p.openEnd(C));if(p.to>h)return S+(p.point&&p.to>h?1:0);k=p.to,p.next()}}static of(s,u=!1){let h=new B9;for(let g of s instanceof kMe?[s]:u?F1n(s):s)h.add(g.from,g.to,g.value);return h.finish()}static join(s){if(!s.length)return yo.empty;let u=s[s.length-1];for(let h=s.length-2;h>=0;h--)for(let g=s[h];g!=yo.empty;g=g.nextLayer)u=new yo(g.chunkPos,g.chunk,u,Math.max(g.maxPoint,u.maxPoint));return u}}yo.empty=new yo([],[],null,-1);function F1n(l){if(l.length>1)for(let s=l[0],u=1;u<l.length;u++){let h=l[u];if(OMe(s,h)>0)return l.slice().sort(OMe);s=h}return l}yo.empty.nextLayer=yo.empty;class B9{finishChunk(s){this.chunks.push(new qAe(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,s&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(s,u,h){this.addInner(s,u,h)||(this.nextLayer||(this.nextLayer=new B9)).add(s,u,h)}addInner(s,u,h){let g=s-this.lastTo||h.startSide-this.last.endSide;if(g<=0&&(s-this.lastFrom||h.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return g<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=s),this.from.push(s-this.chunkStart),this.to.push(u-this.chunkStart),this.last=h,this.lastFrom=s,this.lastTo=u,this.value.push(h),h.point&&(this.maxPoint=Math.max(this.maxPoint,u-s)),!0)}addChunk(s,u){if((s-this.lastTo||u.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,u.maxPoint),this.chunks.push(u),this.chunkPos.push(s);let h=u.value.length-1;return this.last=u.value[h],this.lastFrom=u.from[h]+s,this.lastTo=u.to[h]+s,!0}finish(){return this.finishInner(yo.empty)}finishInner(s){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return s;let u=yo.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(s):s,this.setMaxPoint);return this.from=null,u}}function o3t(l,s,u){let h=new Map;for(let m of l)for(let p=0;p<m.chunk.length;p++)m.chunk[p].maxPoint<=0&&h.set(m.chunk[p],m.chunkPos[p]);let g=new Set;for(let m of s)for(let p=0;p<m.chunk.length;p++){let k=h.get(m.chunk[p]);k!=null&&(u?u.mapPos(k):k)==m.chunkPos[p]&&!(u!=null&&u.touchesRange(k,k+m.chunk[p].length))&&g.add(m.chunk[p])}return g}class QOt{constructor(s,u,h,g=0){this.layer=s,this.skip=u,this.minPoint=h,this.rank=g}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(s,u=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(s,u,!1),this}gotoInner(s,u,h){for(;this.chunkIndex<this.layer.chunk.length;){let g=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(g)||this.layer.chunkEnd(this.chunkIndex)<s||g.maxPoint<this.minPoint))break;this.chunkIndex++,h=!1}if(this.chunkIndex<this.layer.chunk.length){let g=this.layer.chunk[this.chunkIndex].findIndex(s-this.layer.chunkPos[this.chunkIndex],u,!0);(!h||this.rangeIndex<g)&&this.setRangeIndex(g)}this.next()}forward(s,u){(this.to-s||this.endSide-u)<0&&this.gotoInner(s,u,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let s=this.layer.chunkPos[this.chunkIndex],u=this.layer.chunk[this.chunkIndex],h=s+u.from[this.rangeIndex];if(this.from=h,this.to=s+u.to[this.rangeIndex],this.value=u.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(s){if(s==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=s}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(s){return this.from-s.from||this.startSide-s.startSide||this.rank-s.rank||this.to-s.to||this.endSide-s.endSide}}class OX{constructor(s){this.heap=s}static from(s,u=null,h=-1){let g=[];for(let m=0;m<s.length;m++)for(let p=s[m];!p.isEmpty;p=p.nextLayer)p.maxPoint>=h&&g.push(new QOt(p,u,h,m));return g.length==1?g[0]:new OX(g)}get startSide(){return this.value?this.value.startSide:0}goto(s,u=-1e9){for(let h of this.heap)h.goto(s,u);for(let h=this.heap.length>>1;h>=0;h--)oCe(this.heap,h);return this.next(),this}forward(s,u){for(let h of this.heap)h.forward(s,u);for(let h=this.heap.length>>1;h>=0;h--)oCe(this.heap,h);(this.to-s||this.value.endSide-u)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let s=this.heap[0];this.from=s.from,this.to=s.to,this.value=s.value,this.rank=s.rank,s.value&&s.next(),oCe(this.heap,0)}}}function oCe(l,s){for(let u=l[s];;){let h=(s<<1)+1;if(h>=l.length)break;let g=l[h];if(h+1<l.length&&g.compare(l[h+1])>=0&&(g=l[h+1],h++),u.compare(g)<0)break;l[h]=u,l[s]=g,s=h}}class FV{constructor(s,u,h){this.minPoint=h,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=OX.from(s,u,h)}goto(s,u=-1e9){return this.cursor.goto(s,u),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=s,this.endSide=u,this.openStart=-1,this.next(),this}forward(s,u){for(;this.minActive>-1&&(this.activeTo[this.minActive]-s||this.active[this.minActive].endSide-u)<0;)this.removeActive(this.minActive);this.cursor.forward(s,u)}removeActive(s){pfe(this.active,s),pfe(this.activeTo,s),pfe(this.activeRank,s),this.minActive=l3t(this.active,this.activeTo)}addActive(s){let u=0,{value:h,to:g,rank:m}=this.cursor;for(;u<this.activeRank.length&&(m-this.activeRank[u]||g-this.activeTo[u])>0;)u++;bfe(this.active,u,h),bfe(this.activeTo,u,g),bfe(this.activeRank,u,m),s&&bfe(s,u,this.cursor.from),this.minActive=l3t(this.active,this.activeTo)}next(){let s=this.to,u=this.point;this.point=null;let h=this.openStart<0?[]:null;for(;;){let g=this.minActive;if(g>-1&&(this.activeTo[g]-this.cursor.from||this.active[g].endSide-this.cursor.startSide)<0){if(this.activeTo[g]>s){this.to=this.activeTo[g],this.endSide=this.active[g].endSide;break}this.removeActive(g),h&&pfe(h,g)}else if(this.cursor.value)if(this.cursor.from>s){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let m=this.cursor.value;if(!m.point)this.addActive(h),this.cursor.next();else if(u&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=m,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=m.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(h){this.openStart=0;for(let g=h.length-1;g>=0&&h[g]<s;g--)this.openStart++}}activeForPoint(s){if(!this.active.length)return this.active;let u=[];for(let h=this.active.length-1;h>=0&&!(this.activeRank[h]<this.pointRank);h--)(this.activeTo[h]>s||this.activeTo[h]==s&&this.active[h].endSide>=this.point.endSide)&&u.push(this.active[h]);return u.reverse()}openEnd(s){let u=0;for(let h=this.activeTo.length-1;h>=0&&this.activeTo[h]>s;h--)u++;return u}}function c3t(l,s,u,h,g,m){l.goto(s),u.goto(h);let p=h+g,k=h,S=h-s,C=!!m.boundChange;for(let N=!1;;){let _=l.to+S-u.to,P=_||l.endSide-u.endSide,R=P<0?l.to+S:u.to,q=Math.min(R,p);if(l.point||u.point?(l.point&&u.point&&FAe(l.point,u.point)&&SMe(l.activeForPoint(l.to),u.activeForPoint(u.to))||m.comparePoint(k,q,l.point,u.point),N=!1):(N&&m.boundChange(k),q>k&&!SMe(l.active,u.active)&&m.compareRange(k,q,l.active,u.active),C&&q<p&&(_||l.openEnd(R)!=u.openEnd(R))&&(N=!0)),R>p)break;k=R,P<=0&&l.next(),P>=0&&u.next()}}function SMe(l,s){if(l.length!=s.length)return!1;for(let u=0;u<l.length;u++)if(l[u]!=s[u]&&!FAe(l[u],s[u]))return!1;return!0}function pfe(l,s){for(let u=s,h=l.length-1;u<h;u++)l[u]=l[u+1];l.pop()}function bfe(l,s,u){for(let h=l.length-1;h>=s;h--)l[h+1]=l[h];l[s]=u}function l3t(l,s){let u=-1,h=1e9;for(let g=0;g<s.length;g++)(s[g]-h||l[g].endSide-l[u].endSide)<0&&(u=g,h=s[g]);return u}function KX(l,s,u=l.length){let h=0;for(let g=0;g<u&&g<l.length;)l.charCodeAt(g)==9?(h+=s-h%s,g++):(h++,g=yd(l,g));return h}function jMe(l,s,u,h){for(let g=0,m=0;;){if(m>=s)return g;if(g==l.length)break;m+=l.charCodeAt(g)==9?u-m%u:1,g=yd(l,g)}return h===!0?-1:l.length}const TMe="ͼ",u3t=typeof Symbol>"u"?"__"+TMe:Symbol.for(TMe),EMe=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),a3t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class z9{constructor(s,u){this.rules=[];let{finish:h}=u||{};function g(p){return/^@/.test(p)?[p]:p.split(/,\s*/)}function m(p,k,S,C){let N=[],_=/^@(\w+)\b/.exec(p[0]),P=_&&_[1]=="keyframes";if(_&&k==null)return S.push(p[0]+";");for(let R in k){let q=k[R];if(/&/.test(R))m(R.split(/,\s*/).map(F=>p.map(X=>F.replace(/&/,X))).reduce((F,X)=>F.concat(X)),q,S);else if(q&&typeof q=="object"){if(!_)throw new RangeError("The value of a property ("+R+") should be a primitive value.");m(g(R),q,N,P)}else q!=null&&N.push(R.replace(/_.*/,"").replace(/[A-Z]/g,F=>"-"+F.toLowerCase())+": "+q+";")}(N.length||P)&&S.push((h&&!_&&!C?p.map(h):p).join(", ")+" {"+N.join(" ")+"}")}for(let p in s)m(g(p),s[p],this.rules)}getRules(){return this.rules.join(`
`)}static newName(){let s=a3t[u3t]||1;return a3t[u3t]=s+1,TMe+s.toString(36)}static mount(s,u,h){let g=s[EMe],m=h&&h.nonce;g?m&&g.setNonce(m):g=new q1n(s,m),g.mount(Array.isArray(u)?u:[u],s)}}let f3t=new Map;class q1n{constructor(s,u){let h=s.ownerDocument||s,g=h.defaultView;if(!s.head&&s.adoptedStyleSheets&&g.CSSStyleSheet){let m=f3t.get(h);if(m)return s[EMe]=m;this.sheet=new g.CSSStyleSheet,f3t.set(h,this)}else this.styleTag=h.createElement("style"),u&&this.styleTag.setAttribute("nonce",u);this.modules=[],s[EMe]=this}mount(s,u){let h=this.sheet,g=0,m=0;for(let p=0;p<s.length;p++){let k=s[p],S=this.modules.indexOf(k);if(S<m&&S>-1&&(this.modules.splice(S,1),m--,S=-1),S==-1){if(this.modules.splice(m++,0,k),h)for(let C=0;C<k.rules.length;C++)h.insertRule(k.rules[C],g++)}else{for(;m<S;)g+=this.modules[m++].rules.length;g+=k.rules.length,m++}}if(h)u.adoptedStyleSheets.indexOf(this.sheet)<0&&(u.adoptedStyleSheets=[this.sheet,...u.adoptedStyleSheets]);else{let p="";for(let S=0;S<this.modules.length;S++)p+=this.modules[S].getRules()+`
`;this.styleTag.textContent=p;let k=u.head||u;this.styleTag.parentNode!=k&&k.insertBefore(this.styleTag,k.firstChild)}}setNonce(s){this.styleTag&&this.styleTag.getAttribute("nonce")!=s&&this.styleTag.setAttribute("nonce",s)}}var F9={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},SX={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},H1n=typeof navigator<"u"&&/Mac/.test(navigator.platform),Q1n=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var r1=0;r1<10;r1++)F9[48+r1]=F9[96+r1]=String(r1);for(var r1=1;r1<=24;r1++)F9[r1+111]="F"+r1;for(var r1=65;r1<=90;r1++)F9[r1]=String.fromCharCode(r1+32),SX[r1]=String.fromCharCode(r1);for(var cCe in F9)SX.hasOwnProperty(cCe)||(SX[cCe]=F9[cCe]);function G1n(l){var s=H1n&&l.metaKey&&l.shiftKey&&!l.ctrlKey&&!l.altKey||Q1n&&l.shiftKey&&l.key&&l.key.length==1||l.key=="Unidentified",u=!s&&l.key||(l.shiftKey?SX:F9)[l.keyCode]||l.key||"Unidentified";return u=="Esc"&&(u="Escape"),u=="Del"&&(u="Delete"),u=="Left"&&(u="ArrowLeft"),u=="Up"&&(u="ArrowUp"),u=="Right"&&(u="ArrowRight"),u=="Down"&&(u="ArrowDown"),u}function Bl(){var l=arguments[0];typeof l=="string"&&(l=document.createElement(l));var s=1,u=arguments[1];if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){for(var h in u)if(Object.prototype.hasOwnProperty.call(u,h)){var g=u[h];typeof g=="string"?l.setAttribute(h,g):g!=null&&(l[h]=g)}s++}for(;s<arguments.length;s++)GOt(l,arguments[s]);return l}function GOt(l,s){if(typeof s=="string")l.appendChild(document.createTextNode(s));else if(s!=null)if(s.nodeType!=null)l.appendChild(s);else if(Array.isArray(s))for(var u=0;u<s.length;u++)GOt(l,s[u]);else throw new RangeError("Unsupported child node: "+s)}let l0=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},CMe=typeof document<"u"?document:{documentElement:{style:{}}};const MMe=/Edge\/(\d+)/.exec(l0.userAgent),UOt=/MSIE \d/.test(l0.userAgent),AMe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(l0.userAgent),pde=!!(UOt||AMe||MMe),h3t=!pde&&/gecko\/(\d+)/i.test(l0.userAgent),lCe=!pde&&/Chrome\/(\d+)/.exec(l0.userAgent),U1n="webkitFontSmoothing"in CMe.documentElement.style,NMe=!pde&&/Apple Computer/.test(l0.vendor),d3t=NMe&&(/Mobile\/\w+/.test(l0.userAgent)||l0.maxTouchPoints>2);var Xi={mac:d3t||/Mac/.test(l0.platform),windows:/Win/.test(l0.platform),linux:/Linux|X11/.test(l0.platform),ie:pde,ie_version:UOt?CMe.documentMode||6:AMe?+AMe[1]:MMe?+MMe[1]:0,gecko:h3t,gecko_version:h3t?+(/Firefox\/(\d+)/.exec(l0.userAgent)||[0,0])[1]:0,chrome:!!lCe,chrome_version:lCe?+lCe[1]:0,ios:d3t,android:/Android\b/.test(l0.userAgent),webkit_version:U1n?+(/\bAppleWebKit\/(\d+)/.exec(l0.userAgent)||[0,0])[1]:0,safari:NMe,safari_version:NMe?+(/\bVersion\/(\d+(\.\d+)?)/.exec(l0.userAgent)||[0,0])[1]:0,tabSize:CMe.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function HAe(l,s){for(let u in l)u=="class"&&s.class?s.class+=" "+l.class:u=="style"&&s.style?s.style+=";"+l.style:s[u]=l[u];return s}const The=Object.create(null);function QAe(l,s,u){if(l==s)return!0;l||(l=The),s||(s=The);let h=Object.keys(l),g=Object.keys(s);if(h.length-0!=g.length-0)return!1;for(let m of h)if(m!=u&&(g.indexOf(m)==-1||l[m]!==s[m]))return!1;return!0}function J1n(l,s){for(let u=l.attributes.length-1;u>=0;u--){let h=l.attributes[u].name;s[h]==null&&l.removeAttribute(h)}for(let u in s){let h=s[u];u=="style"?l.style.cssText=h:l.getAttribute(u)!=h&&l.setAttribute(u,h)}}function g3t(l,s,u){let h=!1;if(s)for(let g in s)u&&g in u||(h=!0,g=="style"?l.style.cssText="":l.removeAttribute(g));if(u)for(let g in u)s&&s[g]==u[g]||(h=!0,g=="style"?l.style.cssText=u[g]:l.setAttribute(g,u[g]));return h}function V1n(l){let s=Object.create(null);for(let u=0;u<l.attributes.length;u++){let h=l.attributes[u];s[h.name]=h.value}return s}class kO{eq(s){return!1}updateDOM(s,u){return!1}compare(s){return this==s||this.constructor==s.constructor&&this.eq(s)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(s){return!0}coordsAt(s,u,h){return null}get isHidden(){return!1}get editable(){return!1}destroy(s){}}var o1=(function(l){return l[l.Text=0]="Text",l[l.WidgetBefore=1]="WidgetBefore",l[l.WidgetAfter=2]="WidgetAfter",l[l.WidgetRange=3]="WidgetRange",l})(o1||(o1={}));class Fr extends $9{constructor(s,u,h,g){super(),this.startSide=s,this.endSide=u,this.widget=h,this.spec=g}get heightRelevant(){return!1}static mark(s){return new YX(s)}static widget(s){let u=Math.max(-1e4,Math.min(1e4,s.side||0)),h=!!s.block;return u+=h&&!s.inlineOrder?u>0?3e8:-4e8:u>0?1e8:-1e8,new FM(s,u,u,h,s.widget||null,!1)}static replace(s){let u=!!s.block,h,g;if(s.isBlockGap)h=-5e8,g=4e8;else{let{start:m,end:p}=JOt(s,u);h=(m?u?-3e8:-1:5e8)-1,g=(p?u?2e8:1:-6e8)+1}return new FM(s,h,g,u,s.widget||null,!0)}static line(s){return new ZX(s)}static set(s,u=!1){return yo.of(s,u)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Fr.none=yo.empty;class YX extends Fr{constructor(s){let{start:u,end:h}=JOt(s);super(u?-1:5e8,h?1:-6e8,null,s),this.tagName=s.tagName||"span",this.attrs=s.class&&s.attributes?HAe(s.attributes,{class:s.class}):s.class?{class:s.class}:s.attributes||The}eq(s){return this==s||s instanceof YX&&this.tagName==s.tagName&&QAe(this.attrs,s.attrs)}range(s,u=s){if(s>=u)throw new RangeError("Mark decorations may not be empty");return super.range(s,u)}}YX.prototype.point=!1;class ZX extends Fr{constructor(s){super(-2e8,-2e8,null,s)}eq(s){return s instanceof ZX&&this.spec.class==s.spec.class&&QAe(this.spec.attributes,s.spec.attributes)}range(s,u=s){if(u!=s)throw new RangeError("Line decoration ranges must be zero-length");return super.range(s,u)}}ZX.prototype.mapMode=s1.TrackBefore;ZX.prototype.point=!0;class FM extends Fr{constructor(s,u,h,g,m,p){super(u,h,m,s),this.block=g,this.isReplace=p,this.mapMode=g?u<=0?s1.TrackBefore:s1.TrackAfter:s1.TrackDel}get type(){return this.startSide!=this.endSide?o1.WidgetRange:this.startSide<=0?o1.WidgetBefore:o1.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(s){return s instanceof FM&&X1n(this.widget,s.widget)&&this.block==s.block&&this.startSide==s.startSide&&this.endSide==s.endSide}range(s,u=s){if(this.isReplace&&(s>u||s==u&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&u!=s)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(s,u)}}FM.prototype.point=!0;function JOt(l,s=!1){let{inclusiveStart:u,inclusiveEnd:h}=l;return u==null&&(u=l.inclusive),h==null&&(h=l.inclusive),{start:u??s,end:h??s}}function X1n(l,s){return l==s||!!(l&&s&&l.compare(s))}function zI(l,s,u,h=0){let g=u.length-1;g>=0&&u[g]+h>=l?u[g]=Math.max(u[g],s):u.push(l,s)}class jX extends $9{constructor(s,u){super(),this.tagName=s,this.attributes=u}eq(s){return s==this||s instanceof jX&&this.tagName==s.tagName&&QAe(this.attributes,s.attributes)}static create(s){return new jX(s.tagName,s.attributes||The)}static set(s,u=!1){return yo.of(s,u)}}jX.prototype.startSide=jX.prototype.endSide=-1;function TX(l){let s;return l.nodeType==11?s=l.getSelection?l:l.ownerDocument:s=l,s.getSelection()}function _Me(l,s){return s?l==s||l.contains(s.nodeType!=1?s.parentNode:s):!1}function sX(l,s){if(!s.anchorNode)return!1;try{return _Me(l,s.anchorNode)}catch{return!1}}function oX(l){return l.nodeType==3?CX(l,0,l.nodeValue.length).getClientRects():l.nodeType==1?l.getClientRects():[]}function cX(l,s,u,h){return u?p3t(l,s,u,h,-1)||p3t(l,s,u,h,1):!1}function q9(l){for(var s=0;;s++)if(l=l.previousSibling,!l)return s}function Ehe(l){return l.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(l.nodeName)}function p3t(l,s,u,h,g){for(;;){if(l==u&&s==h)return!0;if(s==(g<0?0:vO(l))){if(l.nodeName=="DIV")return!1;let m=l.parentNode;if(!m||m.nodeType!=1)return!1;s=q9(l)+(g<0?0:1),l=m}else if(l.nodeType==1){if(l=l.childNodes[s+(g<0?-1:0)],l.nodeType==1&&l.contentEditable=="false")return!1;s=g<0?vO(l):0}else return!1}}function vO(l){return l.nodeType==3?l.nodeValue.length:l.childNodes.length}function EX(l,s){let u=s?l.left:l.right;return{left:u,right:u,top:l.top,bottom:l.bottom}}function W1n(l){let s=l.visualViewport;return s?{left:0,right:s.width,top:0,bottom:s.height}:{left:0,right:l.innerWidth,top:0,bottom:l.innerHeight}}function VOt(l,s){let u=s.width/l.offsetWidth,h=s.height/l.offsetHeight;return(u>.995&&u<1.005||!isFinite(u)||Math.abs(s.width-l.offsetWidth)<1)&&(u=1),(h>.995&&h<1.005||!isFinite(h)||Math.abs(s.height-l.offsetHeight)<1)&&(h=1),{scaleX:u,scaleY:h}}function K1n(l,s,u,h,g,m,p,k){let S=l.ownerDocument,C=S.defaultView||window;for(let N=l,_=!1;N&&!_;)if(N.nodeType==1){let P,R=N==S.body,q=1,F=1;if(R)P=W1n(C);else{if(/^(fixed|sticky)$/.test(getComputedStyle(N).position)&&(_=!0),N.scrollHeight<=N.clientHeight&&N.scrollWidth<=N.clientWidth){N=N.assignedSlot||N.parentNode;continue}let ee=N.getBoundingClientRect();({scaleX:q,scaleY:F}=VOt(N,ee)),P={left:ee.left,right:ee.left+N.clientWidth*q,top:ee.top,bottom:ee.top+N.clientHeight*F}}let X=0,J=0;if(g=="nearest")s.top<P.top?(J=s.top-(P.top+p),u>0&&s.bottom>P.bottom+J&&(J=s.bottom-P.bottom+p)):s.bottom>P.bottom&&(J=s.bottom-P.bottom+p,u<0&&s.top-J<P.top&&(J=s.top-(P.top+p)));else{let ee=s.bottom-s.top,te=P.bottom-P.top;J=(g=="center"&&ee<=te?s.top+ee/2-te/2:g=="start"||g=="center"&&u<0?s.top-p:s.bottom-te+p)-P.top}if(h=="nearest"?s.left<P.left?(X=s.left-(P.left+m),u>0&&s.right>P.right+X&&(X=s.right-P.right+m)):s.right>P.right&&(X=s.right-P.right+m,u<0&&s.left<P.left+X&&(X=s.left-(P.left+m))):X=(h=="center"?s.left+(s.right-s.left)/2-(P.right-P.left)/2:h=="start"==k?s.left-m:s.right-(P.right-P.left)+m)-P.left,X||J)if(R)C.scrollBy(X,J);else{let ee=0,te=0;if(J){let ie=N.scrollTop;N.scrollTop+=J/F,te=(N.scrollTop-ie)*F}if(X){let ie=N.scrollLeft;N.scrollLeft+=X/q,ee=(N.scrollLeft-ie)*q}s={left:s.left-ee,top:s.top-te,right:s.right-ee,bottom:s.bottom-te},ee&&Math.abs(ee-X)<1&&(h="nearest"),te&&Math.abs(te-J)<1&&(g="nearest")}if(R)break;(s.top<P.top||s.bottom>P.bottom||s.left<P.left||s.right>P.right)&&(s={left:Math.max(s.left,P.left),right:Math.min(s.right,P.right),top:Math.max(s.top,P.top),bottom:Math.min(s.bottom,P.bottom)}),N=N.assignedSlot||N.parentNode}else if(N.nodeType==11)N=N.host;else break}function XOt(l,s=!0){let u=l.ownerDocument,h=null,g=null;for(let m=l.parentNode;m&&!(m==u.body||(!s||h)&&g);)if(m.nodeType==1)!g&&m.scrollHeight>m.clientHeight&&(g=m),s&&!h&&m.scrollWidth>m.clientWidth&&(h=m),m=m.assignedSlot||m.parentNode;else if(m.nodeType==11)m=m.host;else break;return{x:h,y:g}}class Y1n{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(s){return this.anchorNode==s.anchorNode&&this.anchorOffset==s.anchorOffset&&this.focusNode==s.focusNode&&this.focusOffset==s.focusOffset}setRange(s){let{anchorNode:u,focusNode:h}=s;this.set(u,Math.min(s.anchorOffset,u?vO(u):0),h,Math.min(s.focusOffset,h?vO(h):0))}set(s,u,h,g){this.anchorNode=s,this.anchorOffset=u,this.focusNode=h,this.focusOffset=g}}let vM=null;Xi.safari&&Xi.safari_version>=26&&(vM=!1);function WOt(l){if(l.setActive)return l.setActive();if(vM)return l.focus(vM);let s=[];for(let u=l;u&&(s.push(u,u.scrollTop,u.scrollLeft),u!=u.ownerDocument);u=u.parentNode);if(l.focus(vM==null?{get preventScroll(){return vM={preventScroll:!0},!0}}:void 0),!vM){vM=!1;for(let u=0;u<s.length;){let h=s[u++],g=s[u++],m=s[u++];h.scrollTop!=g&&(h.scrollTop=g),h.scrollLeft!=m&&(h.scrollLeft=m)}}}let b3t;function CX(l,s,u=s){let h=b3t||(b3t=document.createRange());return h.setEnd(l,u),h.setStart(l,s),h}function FI(l,s,u,h){let g={key:s,code:s,keyCode:u,which:u,cancelable:!0};h&&({altKey:g.altKey,ctrlKey:g.ctrlKey,shiftKey:g.shiftKey,metaKey:g.metaKey}=h);let m=new KeyboardEvent("keydown",g);m.synthetic=!0,l.dispatchEvent(m);let p=new KeyboardEvent("keyup",g);return p.synthetic=!0,l.dispatchEvent(p),m.defaultPrevented||p.defaultPrevented}function Z1n(l){for(;l;){if(l&&(l.nodeType==9||l.nodeType==11&&l.host))return l;l=l.assignedSlot||l.parentNode}return null}function egn(l,s){let u=s.focusNode,h=s.focusOffset;if(!u||s.anchorNode!=u||s.anchorOffset!=h)return!1;for(h=Math.min(h,vO(u));;)if(h){if(u.nodeType!=1)return!1;let g=u.childNodes[h-1];g.contentEditable=="false"?h--:(u=g,h=vO(u))}else{if(u==l)return!0;h=q9(u),u=u.parentNode}}function KOt(l){return l instanceof Window?l.pageYOffset>Math.max(0,l.document.documentElement.scrollHeight-l.innerHeight-4):l.scrollTop>Math.max(1,l.scrollHeight-l.clientHeight-4)}function YOt(l,s){for(let u=l,h=s;;){if(u.nodeType==3&&h>0)return{node:u,offset:h};if(u.nodeType==1&&h>0){if(u.contentEditable=="false")return null;u=u.childNodes[h-1],h=vO(u)}else if(u.parentNode&&!Ehe(u))h=q9(u),u=u.parentNode;else return null}}function ZOt(l,s){for(let u=l,h=s;;){if(u.nodeType==3&&h<u.nodeValue.length)return{node:u,offset:h};if(u.nodeType==1&&h<u.childNodes.length){if(u.contentEditable=="false")return null;u=u.childNodes[h],h=0}else if(u.parentNode&&!Ehe(u))h=q9(u)+1,u=u.parentNode;else return null}}class Ey{constructor(s,u,h=!0){this.node=s,this.offset=u,this.precise=h}static before(s,u){return new Ey(s.parentNode,q9(s),u)}static after(s,u){return new Ey(s.parentNode,q9(s)+1,u)}}var Zl=(function(l){return l[l.LTR=0]="LTR",l[l.RTL=1]="RTL",l})(Zl||(Zl={}));const qM=Zl.LTR,GAe=Zl.RTL;function e6t(l){let s=[];for(let u=0;u<l.length;u++)s.push(1<<+l[u]);return s}const tgn=e6t("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),ngn=e6t("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),DMe=Object.create(null),F3=[];for(let l of["()","[]","{}"]){let s=l.charCodeAt(0),u=l.charCodeAt(1);DMe[s]=u,DMe[u]=-s}function t6t(l){return l<=247?tgn[l]:1424<=l&&l<=1524?2:1536<=l&&l<=1785?ngn[l-1536]:1774<=l&&l<=2220?4:8192<=l&&l<=8204?256:64336<=l&&l<=65023?4:1}const ign=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class X3{get dir(){return this.level%2?GAe:qM}constructor(s,u,h){this.from=s,this.to=u,this.level=h}side(s,u){return this.dir==u==s?this.to:this.from}forward(s,u){return s==(this.dir==u)}static find(s,u,h,g){let m=-1;for(let p=0;p<s.length;p++){let k=s[p];if(k.from<=u&&k.to>=u){if(k.level==h)return p;(m<0||(g!=0?g<0?k.from<u:k.to>u:s[m].level>k.level))&&(m=p)}}if(m<0)throw new RangeError("Index out of range");return m}}function n6t(l,s){if(l.length!=s.length)return!1;for(let u=0;u<l.length;u++){let h=l[u],g=s[u];if(h.from!=g.from||h.to!=g.to||h.direction!=g.direction||!n6t(h.inner,g.inner))return!1}return!0}const Yl=[];function rgn(l,s,u,h,g){for(let m=0;m<=h.length;m++){let p=m?h[m-1].to:s,k=m<h.length?h[m].from:u,S=m?256:g;for(let C=p,N=S,_=S;C<k;C++){let P=t6t(l.charCodeAt(C));P==512?P=N:P==8&&_==4&&(P=16),Yl[C]=P==4?2:P,P&7&&(_=P),N=P}for(let C=p,N=S,_=S;C<k;C++){let P=Yl[C];if(P==128)C<k-1&&N==Yl[C+1]&&N&24?P=Yl[C]=N:Yl[C]=256;else if(P==64){let R=C+1;for(;R<k&&Yl[R]==64;)R++;let q=C&&N==8||R<u&&Yl[R]==8?_==1?1:8:256;for(let F=C;F<R;F++)Yl[F]=q;C=R-1}else P==8&&_==1&&(Yl[C]=1);N=P,P&7&&(_=P)}}}function sgn(l,s,u,h,g){let m=g==1?2:1;for(let p=0,k=0,S=0;p<=h.length;p++){let C=p?h[p-1].to:s,N=p<h.length?h[p].from:u;for(let _=C,P,R,q;_<N;_++)if(R=DMe[P=l.charCodeAt(_)])if(R<0){for(let F=k-3;F>=0;F-=3)if(F3[F+1]==-R){let X=F3[F+2],J=X&2?g:X&4?X&1?m:g:0;J&&(Yl[_]=Yl[F3[F]]=J),k=F;break}}else{if(F3.length==189)break;F3[k++]=_,F3[k++]=P,F3[k++]=S}else if((q=Yl[_])==2||q==1){let F=q==g;S=F?0:1;for(let X=k-3;X>=0;X-=3){let J=F3[X+2];if(J&2)break;if(F)F3[X+2]|=2;else{if(J&4)break;F3[X+2]|=4}}}}}function ogn(l,s,u,h){for(let g=0,m=h;g<=u.length;g++){let p=g?u[g-1].to:l,k=g<u.length?u[g].from:s;for(let S=p;S<k;){let C=Yl[S];if(C==256){let N=S+1;for(;;)if(N==k){if(g==u.length)break;N=u[g++].to,k=g<u.length?u[g].from:s}else if(Yl[N]==256)N++;else break;let _=m==1,P=(N<s?Yl[N]:h)==1,R=_==P?_?1:2:h;for(let q=N,F=g,X=F?u[F-1].to:l;q>S;)q==X&&(q=u[--F].from,X=F?u[F-1].to:l),Yl[--q]=R;S=N}else m=C,S++}}}function LMe(l,s,u,h,g,m,p){let k=h%2?2:1;if(h%2==g%2)for(let S=s,C=0;S<u;){let N=!0,_=!1;if(C==m.length||S<m[C].from){let F=Yl[S];F!=k&&(N=!1,_=F==16)}let P=!N&&k==1?[]:null,R=N?h:h+1,q=S;e:for(;;)if(C<m.length&&q==m[C].from){if(_)break e;let F=m[C];if(!N)for(let X=F.to,J=C+1;;){if(X==u)break e;if(J<m.length&&m[J].from==X)X=m[J++].to;else{if(Yl[X]==k)break e;break}}if(C++,P)P.push(F);else{F.from>S&&p.push(new X3(S,F.from,R));let X=F.direction==qM!=!(R%2);PMe(l,X?h+1:h,g,F.inner,F.from,F.to,p),S=F.to}q=F.to}else{if(q==u||(N?Yl[q]!=k:Yl[q]==k))break;q++}P?LMe(l,S,q,h+1,g,P,p):S<q&&p.push(new X3(S,q,R)),S=q}else for(let S=u,C=m.length;S>s;){let N=!0,_=!1;if(!C||S>m[C-1].to){let F=Yl[S-1];F!=k&&(N=!1,_=F==16)}let P=!N&&k==1?[]:null,R=N?h:h+1,q=S;e:for(;;)if(C&&q==m[C-1].to){if(_)break e;let F=m[--C];if(!N)for(let X=F.from,J=C;;){if(X==s)break e;if(J&&m[J-1].to==X)X=m[--J].from;else{if(Yl[X-1]==k)break e;break}}if(P)P.push(F);else{F.to<S&&p.push(new X3(F.to,S,R));let X=F.direction==qM!=!(R%2);PMe(l,X?h+1:h,g,F.inner,F.from,F.to,p),S=F.from}q=F.from}else{if(q==s||(N?Yl[q-1]!=k:Yl[q-1]==k))break;q--}P?LMe(l,q,S,h+1,g,P,p):q<S&&p.push(new X3(q,S,R)),S=q}}function PMe(l,s,u,h,g,m,p){let k=s%2?2:1;rgn(l,g,m,h,k),sgn(l,g,m,h,k),ogn(g,m,h,k),LMe(l,g,m,s,u,h,p)}function cgn(l,s,u){if(!l)return[new X3(0,0,s==GAe?1:0)];if(s==qM&&!u.length&&!ign.test(l))return i6t(l.length);if(u.length)for(;l.length>Yl.length;)Yl[Yl.length]=256;let h=[],g=s==qM?0:1;return PMe(l,g,g,u,0,l.length,h),h}function i6t(l){return[new X3(0,l,0)]}let r6t="";function lgn(l,s,u,h,g){var m;let p=h.head-l.from,k=X3.find(s,p,(m=h.bidiLevel)!==null&&m!==void 0?m:-1,h.assoc),S=s[k],C=S.side(g,u);if(p==C){let P=k+=g?1:-1;if(P<0||P>=s.length)return null;S=s[k=P],p=S.side(!g,u),C=S.side(g,u)}let N=yd(l.text,p,S.forward(g,u));(N<S.from||N>S.to)&&(N=C),r6t=l.text.slice(Math.min(p,N),Math.max(p,N));let _=k==(g?s.length-1:0)?null:s[k+(g?1:-1)];return _&&N==C&&_.level+(g?0:1)<S.level?jn.cursor(_.side(!g,u)+l.from,_.forward(g,u)?1:-1,_.level):jn.cursor(N+l.from,S.forward(g,u)?-1:1,S.level)}function ugn(l,s,u){for(let h=s;h<u;h++){let g=t6t(l.charCodeAt(h));if(g==1)return qM;if(g==2||g==4)return GAe}return qM}const s6t=Ui.define(),o6t=Ui.define(),c6t=Ui.define(),l6t=Ui.define(),IMe=Ui.define(),u6t=Ui.define(),a6t=Ui.define(),UAe=Ui.define(),JAe=Ui.define(),f6t=Ui.define({combine:l=>l.some(s=>s)}),h6t=Ui.define({combine:l=>l.some(s=>s)}),d6t=Ui.define();class qI{constructor(s,u="nearest",h="nearest",g=5,m=5,p=!1){this.range=s,this.y=u,this.x=h,this.yMargin=g,this.xMargin=m,this.isSnapshot=p}map(s){return s.empty?this:new qI(this.range.map(s),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(s){return this.range.to<=s.doc.length?this:new qI(jn.cursor(s.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const mfe=Ls.define({map:(l,s)=>l.map(s)}),g6t=Ls.define();function yp(l,s,u){let h=l.facet(l6t);h.length?h[0](s):window.onerror&&window.onerror(String(s),u,void 0,void 0,s)||(u?console.error(u+":",s):console.error(s))}const fO=Ui.define({combine:l=>l.length?l[0]:!0});let agn=0;const NI=Ui.define({combine(l){return l.filter((s,u)=>{for(let h=0;h<u;h++)if(l[h].plugin==s.plugin)return!1;return!0})}});class Qh{constructor(s,u,h,g,m){this.id=s,this.create=u,this.domEventHandlers=h,this.domEventObservers=g,this.baseExtensions=m(this),this.extension=this.baseExtensions.concat(NI.of({plugin:this,arg:void 0}))}of(s){return this.baseExtensions.concat(NI.of({plugin:this,arg:s}))}static define(s,u){const{eventHandlers:h,eventObservers:g,provide:m,decorations:p}=u||{};return new Qh(agn++,s,h,g,k=>{let S=[];return p&&S.push(bde.of(C=>{let N=C.plugin(k);return N?p(N):Fr.none})),m&&S.push(m(k)),S})}static fromClass(s,u){return Qh.define((h,g)=>new s(h,g),u)}}class uCe{constructor(s){this.spec=s,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(s){if(this.value){if(this.mustUpdate){let u=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(u)}catch(h){if(yp(u.state,h,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(s,this.spec.arg)}catch(u){yp(s.state,u,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(s){var u;if(!((u=this.value)===null||u===void 0)&&u.destroy)try{this.value.destroy()}catch(h){yp(s.state,h,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const p6t=Ui.define(),VAe=Ui.define(),bde=Ui.define(),b6t=Ui.define(),XAe=Ui.define(),eW=Ui.define(),m6t=Ui.define();function m3t(l,s){let u=l.state.facet(m6t);if(!u.length)return u;let h=u.map(m=>m instanceof Function?m(l):m),g=[];return yo.spans(h,s.from,s.to,{point(){},span(m,p,k,S){let C=m-s.from,N=p-s.from,_=g;for(let P=k.length-1;P>=0;P--,S--){let R=k[P].spec.bidiIsolate,q;if(R==null&&(R=ugn(s.text,C,N)),S>0&&_.length&&(q=_[_.length-1]).to==C&&q.direction==R)q.to=N,_=q.inner;else{let F={from:C,to:N,direction:R,inner:[]};_.push(F),_=F.inner}}}}),g}const w6t=Ui.define();function WAe(l){let s=0,u=0,h=0,g=0;for(let m of l.state.facet(w6t)){let p=m(l);p&&(p.left!=null&&(s=Math.max(s,p.left)),p.right!=null&&(u=Math.max(u,p.right)),p.top!=null&&(h=Math.max(h,p.top)),p.bottom!=null&&(g=Math.max(g,p.bottom)))}return{left:s,right:u,top:h,bottom:g}}const YV=Ui.define();class Vw{constructor(s,u,h,g){this.fromA=s,this.toA=u,this.fromB=h,this.toB=g}join(s){return new Vw(Math.min(this.fromA,s.fromA),Math.max(this.toA,s.toA),Math.min(this.fromB,s.fromB),Math.max(this.toB,s.toB))}addToSet(s){let u=s.length,h=this;for(;u>0;u--){let g=s[u-1];if(!(g.fromA>h.toA)){if(g.toA<h.fromA)break;h=h.join(g),s.splice(u-1,1)}}return s.splice(u,0,h),s}static extendWithRanges(s,u){if(u.length==0)return s;let h=[];for(let g=0,m=0,p=0;;){let k=g<s.length?s[g].fromB:1e9,S=m<u.length?u[m]:1e9,C=Math.min(k,S);if(C==1e9)break;let N=C+p,_=C,P=N;for(;;)if(m<u.length&&u[m]<=_){let R=u[m+1];m+=2,_=Math.max(_,R);for(let q=g;q<s.length&&s[q].fromB<=_;q++)p=s[q].toA-s[q].toB;P=Math.max(P,R+p)}else if(g<s.length&&s[g].fromB<=_){let R=s[g++];_=Math.max(_,R.toB),P=Math.max(P,R.toA),p=R.toA-R.toB}else break;h.push(new Vw(N,P,C,_))}return h}}class Che{constructor(s,u,h){this.view=s,this.state=u,this.transactions=h,this.flags=0,this.startState=s.state,this.changes=Hh.empty(this.startState.doc.length);for(let m of h)this.changes=this.changes.compose(m.changes);let g=[];this.changes.iterChangedRanges((m,p,k,S)=>g.push(new Vw(m,p,k,S))),this.changedRanges=g}static create(s,u,h){return new Che(s,u,h)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(s=>s.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}const fgn=[];class sf{constructor(s,u,h=0){this.dom=s,this.length=u,this.flags=h,this.parent=null,s.cmTile=this}get breakAfter(){return this.flags&1}get children(){return fgn}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(s){if(this.flags|=2,this.flags&4){this.flags&=-5;let u=this.domAttrs;u&&J1n(this.dom,u)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(s){this.dom=s,s.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(s,u=this.posAtStart){let h=u;for(let g of this.children){if(g==s)return h;h+=g.length+g.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(s){return this.posBefore(s)+s.length}covers(s){return!0}coordsIn(s,u){return null}domPosFor(s,u){let h=q9(this.dom),g=this.length?s>0:u>0;return new Ey(this.parent.dom,h+(g?1:0),s==0||s==this.length)}markDirty(s){this.flags&=-3,s&&(this.flags|=4),this.parent&&this.parent.flags&2&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let s=this;s;s=s.parent)if(s instanceof wde)return s;return null}static get(s){return s.cmTile}}class mde extends sf{constructor(s){super(s,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(s){this.children.push(s),s.parent=this}sync(s){if(this.flags&2)return;super.sync(s);let u=this.dom,h=null,g,m=(s==null?void 0:s.node)==u?s:null,p=0;for(let k of this.children){if(k.sync(s),p+=k.length+k.breakAfter,g=h?h.nextSibling:u.firstChild,m&&g!=k.dom&&(m.written=!0),k.dom.parentNode==u)for(;g&&g!=k.dom;)g=w3t(g);else u.insertBefore(k.dom,g);h=k.dom}for(g=h?h.nextSibling:u.firstChild,m&&g&&(m.written=!0);g;)g=w3t(g);this.length=p}}function w3t(l){let s=l.nextSibling;return l.parentNode.removeChild(l),s}class wde extends mde{constructor(s,u){super(u),this.view=s}owns(s){for(;s;s=s.parent)if(s==this)return!0;return!1}isBlock(){return!0}nearest(s){for(;;){if(!s)return null;let u=sf.get(s);if(u&&this.owns(u))return u;s=s.parentNode}}blockTiles(s){for(let u=[],h=this,g=0,m=0;;)if(g==h.children.length){if(!u.length)return;h=h.parent,h.breakAfter&&m++,g=u.pop()}else{let p=h.children[g++];if(p instanceof pO)u.push(g),h=p,g=0;else{let k=m+p.length,S=s(p,m);if(S!==void 0)return S;m=k+p.breakAfter}}}resolveBlock(s,u){let h,g=-1,m,p=-1;if(this.blockTiles((k,S)=>{let C=S+k.length;if(s>=S&&s<=C){if(k.isWidget()&&u>=-1&&u<=1){if(k.flags&32)return!0;k.flags&16&&(h=void 0)}(S<s||s==C&&(u<-1?k.length:k.covers(1)))&&(!h||!k.isWidget()&&h.isWidget())&&(h=k,g=s-S),(C>s||s==S&&(u>1?k.length:k.covers(-1)))&&(!m||!k.isWidget()&&m.isWidget())&&(m=k,p=s-S)}}),!h&&!m)throw new Error("No tile at position "+s);return h&&u<0||!m?{tile:h,offset:g}:{tile:m,offset:p}}}class pO extends mde{constructor(s,u){super(s),this.wrapper=u}isBlock(){return!0}covers(s){return this.children.length?s<0?this.children[0].covers(-1):this.lastChild.covers(1):!1}get domAttrs(){return this.wrapper.attributes}static of(s,u){let h=new pO(u||document.createElement(s.tagName),s);return u||(h.flags|=4),h}}class tR extends mde{constructor(s,u){super(s),this.attrs=u}isLine(){return!0}static start(s,u,h){let g=new tR(u||document.createElement("div"),s);return(!u||!h)&&(g.flags|=4),g}get domAttrs(){return this.attrs}resolveInline(s,u,h){let g=null,m=-1,p=null,k=-1;function S(N,_){for(let P=0,R=0;P<N.children.length&&R<=_;P++){let q=N.children[P],F=R+q.length;F>=_&&(q.isComposite()?S(q,_-R):(!p||p.isHidden&&(u>0||h&&dgn(p,q)))&&(F>_||q.flags&32)?(p=q,k=_-R):(R<_||q.flags&16&&!q.isHidden)&&(g=q,m=_-R)),R=F}}S(this,s);let C=(u<0?g:p)||g||p;return C?{tile:C,offset:C==g?m:k}:null}coordsIn(s,u){let h=this.resolveInline(s,u,!0);return h?h.tile.coordsIn(Math.max(0,h.offset),u):hgn(this)}domIn(s,u){let h=this.resolveInline(s,u);if(h){let{tile:g,offset:m}=h;if(this.dom.contains(g.dom))return g.isText()?new Ey(g.dom,Math.min(g.dom.nodeValue.length,m)):g.domPosFor(m,g.flags&16?1:g.flags&32?-1:u);let p=h.tile.parent,k=!1;for(let S of p.children){if(k)return new Ey(S.dom,0);S==h.tile&&(k=!0)}}return new Ey(this.dom,0)}}function hgn(l){let s=l.dom.lastChild;if(!s)return l.dom.getBoundingClientRect();let u=oX(s);return u[u.length-1]||null}function dgn(l,s){let u=l.coordsIn(0,1),h=s.coordsIn(0,1);return u&&h&&h.top<u.bottom}class wp extends mde{constructor(s,u){super(s),this.mark=u}get domAttrs(){return this.mark.attrs}static of(s,u){let h=new wp(u||document.createElement(s.tagName),s);return u||(h.flags|=4),h}}class SM extends sf{constructor(s,u){super(s,u.length),this.text=u}sync(s){this.flags&2||(super.sync(s),this.dom.nodeValue!=this.text&&(s&&s.node==this.dom&&(s.written=!0),this.dom.nodeValue=this.text))}isText(){return!0}toString(){return JSON.stringify(this.text)}coordsIn(s,u){let h=this.dom.nodeValue.length;s>h&&(s=h);let g=s,m=s,p=0;s==0&&u<0||s==h&&u>=0?Xi.chrome||Xi.gecko||(s?(g--,p=1):m<h&&(m++,p=-1)):u<0?g--:m<h&&m++;let k=CX(this.dom,g,m).getClientRects();if(!k.length)return null;let S=k[(p?p<0:u>=0)?0:k.length-1];return Xi.safari&&!p&&S.width==0&&(S=Array.prototype.find.call(k,C=>C.width)||S),p?EX(S,p<0):S||null}static of(s,u){let h=new SM(u||document.createTextNode(s),s);return u||(h.flags|=2),h}}class HM extends sf{constructor(s,u,h,g){super(s,u,g),this.widget=h}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(s){return this.flags&48?!1:(this.flags&(s<0?64:128))>0}coordsIn(s,u){return this.coordsInWidget(s,u,!1)}coordsInWidget(s,u,h){let g=this.widget.coordsAt(this.dom,s,u);if(g)return g;if(h)return EX(this.dom.getBoundingClientRect(),this.length?s==0:u<=0);{let m=this.dom.getClientRects(),p=null;if(!m.length)return null;let k=this.flags&16?!0:this.flags&32?!1:s>0;for(let S=k?m.length-1:0;p=m[S],!(s>0?S==0:S==m.length-1||p.top<p.bottom);S+=k?-1:1);return EX(p,!k)}}get overrideDOMText(){if(!this.length)return fc.empty;let{root:s}=this;if(!s)return fc.empty;let u=this.posAtStart;return s.view.state.doc.slice(u,u+this.length)}destroy(){super.destroy(),this.widget.destroy(this.dom)}static of(s,u,h,g,m){return m||(m=s.toDOM(u),s.editable||(m.contentEditable="false")),new HM(m,h,s,g)}}class Mhe extends sf{constructor(s){let u=document.createElement("img");u.className="cm-widgetBuffer",u.setAttribute("aria-hidden","true"),super(u,0,s)}get isHidden(){return!0}get overrideDOMText(){return fc.empty}coordsIn(s){return this.dom.getBoundingClientRect()}}class ggn{constructor(s){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=s}advance(s,u,h){let{tile:g,index:m,beforeBreak:p,parents:k}=this;for(;s||u>0;)if(g.isComposite())if(p){if(!s)break;h&&h.break(),s--,p=!1}else if(m==g.children.length){if(!s&&!k.length)break;h&&h.leave(g),p=!!g.breakAfter,{tile:g,index:m}=k.pop(),m++}else{let S=g.children[m],C=S.breakAfter;(u>0?S.length<=s:S.length<s)&&(!h||h.skip(S,0,S.length)!==!1||!S.isComposite)?(p=!!C,m++,s-=S.length):(k.push({tile:g,index:m}),g=S,m=0,h&&S.isComposite()&&h.enter(S))}else if(m==g.length)p=!!g.breakAfter,{tile:g,index:m}=k.pop(),m++;else if(s){let S=Math.min(s,g.length-m);h&&h.skip(g,m,m+S),s-=S,m+=S}else break;return this.tile=g,this.index=m,this.beforeBreak=p,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}}class pgn{constructor(s,u,h,g){this.from=s,this.to=u,this.wrapper=h,this.rank=g}}class bgn{constructor(s,u,h){this.cache=s,this.root=u,this.blockWrappers=h,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(s,u,h,g){var m;this.flushBuffer();let p=this.ensureMarks(u,h),k=p.lastChild;if(k&&k.isText()&&!(k.flags&8)&&k.length+s.length<512){this.cache.reused.set(k,2);let S=p.children[p.children.length-1]=new SM(k.dom,k.text+s);S.parent=p}else p.append(g||SM.of(s,(m=this.cache.find(SM))===null||m===void 0?void 0:m.dom));this.pos+=s.length,this.afterWidget=null}addComposition(s,u){let h=this.curLine;h.dom!=u.line.dom&&(h.setDOM(this.cache.reused.has(u.line)?aCe(u.line.dom):u.line.dom),this.cache.reused.set(u.line,2));let g=h;for(let k=u.marks.length-1;k>=0;k--){let S=u.marks[k],C=g.lastChild;if(C instanceof wp&&C.mark.eq(S.mark))C.dom!=S.dom&&C.setDOM(aCe(S.dom)),g=C;else{if(this.cache.reused.get(S)){let _=sf.get(S.dom);_&&_.setDOM(aCe(S.dom))}let N=wp.of(S.mark,S.dom);g.append(N),g=N}this.cache.reused.set(S,2)}let m=sf.get(s.text);m&&this.cache.reused.set(m,2);let p=new SM(s.text,s.text.nodeValue);p.flags|=8,g.append(p)}addInlineWidget(s,u,h){let g=this.afterWidget&&s.flags&48&&(this.afterWidget.flags&48)==(s.flags&48);g||this.flushBuffer();let m=this.ensureMarks(u,h);!g&&!(s.flags&16)&&m.append(this.getBuffer(1)),m.append(s),this.pos+=s.length,this.afterWidget=s}addMark(s,u,h){this.flushBuffer(),this.ensureMarks(u,h).append(s),this.pos+=s.length,this.afterWidget=null}addBlockWidget(s){this.getBlockPos().append(s),this.pos+=s.length,this.lastBlock=s,this.endLine()}continueWidget(s){let u=this.afterWidget||this.lastBlock;u.length+=s,this.pos+=s}addLineStart(s,u){var h;s||(s=v6t);let g=tR.start(s,u||((h=this.cache.find(tR))===null||h===void 0?void 0:h.dom),!!u);this.getBlockPos().append(this.lastBlock=this.curLine=g)}addLine(s){this.getBlockPos().append(s),this.pos+=s.length,this.lastBlock=s,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(s){this.blockPosCovered()||this.addLineStart(s)}ensureLine(s){this.curLine||this.addLineStart(s)}ensureMarks(s,u){var h;let g=this.curLine;for(let m=s.length-1;m>=0;m--){let p=s[m],k;if(u>0&&(k=g.lastChild)&&k instanceof wp&&k.mark.eq(p))g=k,u--;else{let S=wp.of(p,(h=this.cache.find(wp,C=>C.mark.eq(p)))===null||h===void 0?void 0:h.dom);g.append(S),g=S,u=0}}return g}endLine(){if(this.curLine){this.flushBuffer();let s=this.curLine.lastChild;(!s||!v3t(this.curLine,!1)||s.dom.nodeName!="BR"&&s.isWidget()&&!(Xi.ios&&v3t(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(fCe,0,32)||new HM(fCe.toDOM(),0,fCe,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let s=this.wrappers.length-1;s>=0;s--)this.wrappers[s].to<this.pos&&this.wrappers.splice(s,1);for(let s=this.blockWrappers;s.value&&s.from<=this.pos;s.next())if(s.to>=this.pos){let u=new pgn(s.from,s.to,s.value,s.rank),h=this.wrappers.length;for(;h>0&&(this.wrappers[h-1].rank-u.rank||this.wrappers[h-1].to-u.to)<0;)h--;this.wrappers.splice(h,0,u)}this.wrapperPos=this.pos}getBlockPos(){var s;this.updateBlockWrappers();let u=this.root;for(let h of this.wrappers){let g=u.lastChild;if(h.from<this.pos&&g instanceof pO&&g.wrapper.eq(h.wrapper))u=g;else{let m=pO.of(h.wrapper,(s=this.cache.find(pO,p=>p.wrapper.eq(h.wrapper)))===null||s===void 0?void 0:s.dom);u.append(m),u=m}}return u}blockPosCovered(){let s=this.lastBlock;return s!=null&&!s.breakAfter&&(!s.isWidget()||(s.flags&160)>0)}getBuffer(s){let u=2|(s<0?16:32),h=this.cache.find(Mhe,void 0,1);return h&&(h.flags=u),h||new Mhe(u)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class mgn{constructor(s){this.skipCount=0,this.text="",this.textOff=0,this.cursor=s.iter()}skip(s){this.textOff+s<=this.text.length?this.textOff+=s:(this.skipCount+=s-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(s){if(this.textOff==this.text.length){let{value:g,lineBreak:m,done:p}=this.cursor.next(this.skipCount);if(this.skipCount=0,p)throw new Error("Ran out of text content when drawing inline views");this.text=g;let k=this.textOff=Math.min(s,g.length);return m?null:g.slice(0,k)}let u=Math.min(this.text.length,this.textOff+s),h=this.text.slice(this.textOff,u);return this.textOff=u,h}}const Ahe=[HM,tR,SM,wp,Mhe,pO,wde];for(let l=0;l<Ahe.length;l++)Ahe[l].bucket=l;class wgn{constructor(s){this.view=s,this.buckets=Ahe.map(()=>[]),this.index=Ahe.map(()=>0),this.reused=new Map}add(s){let u=s.constructor.bucket,h=this.buckets[u];h.length<6?h.push(s):h[this.index[u]=(this.index[u]+1)%6]=s}find(s,u,h=2){let g=s.bucket,m=this.buckets[g],p=this.index[g];for(let k=m.length-1;k>=0;k--){let S=(k+p)%m.length,C=m[S];if((!u||u(C))&&!this.reused.has(C))return m.splice(S,1),S<p&&this.index[g]--,this.reused.set(C,h),C}return null}findWidget(s,u,h){let g=this.buckets[0];if(g.length)for(let m=0,p=0;;m++){if(m==g.length){if(p)return null;p=1,m=0}let k=g[m];if(!this.reused.has(k)&&(p==0?k.widget.compare(s):k.widget.constructor==s.constructor&&s.updateDOM(k.dom,this.view)))return g.splice(m,1),m<this.index[0]&&this.index[0]--,k.widget==s&&k.length==u&&(k.flags&497)==h?(this.reused.set(k,1),k):(this.reused.set(k,2),new HM(k.dom,u,s,k.flags&-498|h))}}reuse(s){return this.reused.set(s,1),s}maybeReuse(s,u=2){if(!this.reused.has(s))return this.reused.set(s,u),s.dom}clear(){for(let s=0;s<this.buckets.length;s++)this.buckets[s].length=this.index[s]=0}}class vgn{constructor(s,u,h,g,m){this.view=s,this.decorations=g,this.disallowBlockEffectsFor=m,this.openWidget=!1,this.openMarks=0,this.cache=new wgn(s),this.text=new mgn(s.state.doc),this.builder=new bgn(this.cache,new wde(s,s.contentDOM),yo.iter(h)),this.cache.reused.set(u,2),this.old=new ggn(u),this.reuseWalker={skip:(p,k,S)=>{if(this.cache.add(p),p.isComposite())return!1},enter:p=>this.cache.add(p),leave:()=>{},break:()=>{}}}run(s,u){let h=u&&this.getCompositionContext(u.text);for(let g=0,m=0,p=0;;){let k=p<s.length?s[p++]:null,S=k?k.fromA:this.old.root.length;if(S>g){let C=S-g;this.preserve(C,!p,!k),g=S,m+=C}if(!k)break;u&&k.fromA<=u.range.fromA&&k.toA>=u.range.toA?(this.forward(k.fromA,u.range.fromA,u.range.fromA<u.range.toA?1:-1),this.emit(m,u.range.fromB),this.cache.clear(),this.builder.addComposition(u,h),this.text.skip(u.range.toB-u.range.fromB),this.forward(u.range.fromA,k.toA),this.emit(u.range.toB,k.toB)):(this.forward(k.fromA,k.toA),this.emit(m,k.toB)),m=k.toB,g=k.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(s,u,h){let g=kgn(this.old),m=this.openMarks;this.old.advance(s,h?1:-1,{skip:(p,k,S)=>{if(p.isWidget())if(this.openWidget)this.builder.continueWidget(S-k);else{let C=S>0||k<p.length?HM.of(p.widget,this.view,S-k,p.flags&496,this.cache.maybeReuse(p)):this.cache.reuse(p);C.flags&256?(C.flags&=-2,this.builder.addBlockWidget(C)):(this.builder.ensureLine(null),this.builder.addInlineWidget(C,g,m),m=g.length)}else if(p.isText())this.builder.ensureLine(null),!k&&S==p.length&&!this.cache.reused.has(p)?this.builder.addText(p.text,g,m,this.cache.reuse(p)):(this.cache.add(p),this.builder.addText(p.text.slice(k,S),g,m)),m=g.length;else if(p.isLine())p.flags&=-2,this.cache.reused.set(p,1),this.builder.addLine(p);else if(p instanceof Mhe)this.cache.add(p);else if(p instanceof wp)this.builder.ensureLine(null),this.builder.addMark(p,g,m),this.cache.reused.set(p,1),m=g.length;else return!1;this.openWidget=!1},enter:p=>{p.isLine()?this.builder.addLineStart(p.attrs,this.cache.maybeReuse(p)):(this.cache.add(p),p instanceof wp&&g.unshift(p.mark)),this.openWidget=!1},leave:p=>{p.isLine()?g.length&&(g.length=m=0):p instanceof wp&&(g.shift(),m=Math.min(m,g.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(s)}emit(s,u){let h=null,g=this.builder,m=0,p=yo.spans(this.decorations,s,u,{point:(k,S,C,N,_,P)=>{if(C instanceof FM){if(this.disallowBlockEffectsFor[P]){if(C.block)throw new RangeError("Block decorations may not be specified via plugins");if(S>this.view.state.doc.lineAt(k).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(m=N.length,_>N.length)g.continueWidget(S-k);else{let R=C.widget||(C.block?nR.block:nR.inline),q=ygn(C),F=this.cache.findWidget(R,S-k,q)||HM.of(R,this.view,S-k,q);C.block?(C.startSide>0&&g.addLineStartIfNotCovered(h),g.addBlockWidget(F)):(g.ensureLine(h),g.addInlineWidget(F,N,_))}h=null}else h=xgn(h,C);S>k&&this.text.skip(S-k)},span:(k,S,C,N)=>{for(let _=k;_<S;){let P=this.text.next(Math.min(512,S-_));P==null?(g.addLineStartIfNotCovered(h),g.addBreak(),_++):(g.ensureLine(h),g.addText(P,C,_==k?N:C.length),_+=P.length),h=null}}});g.addLineStartIfNotCovered(h),this.openWidget=p>m,this.openMarks=p}forward(s,u,h=1){u-s<=10?this.old.advance(u-s,h,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(u-s-10,-1),this.old.advance(5,h,this.reuseWalker))}getCompositionContext(s){let u=[],h=null;for(let g=s.parentNode;;g=g.parentNode){let m=sf.get(g);if(g==this.view.contentDOM)break;m instanceof wp?u.push(m):m!=null&&m.isLine()?h=m:m instanceof pO||(g.nodeName=="DIV"&&!h&&g!=this.view.contentDOM?h=new tR(g,v6t):h||u.push(wp.of(new YX({tagName:g.nodeName.toLowerCase(),attributes:V1n(g)}),g)))}return{line:h,marks:u}}}function v3t(l,s){let u=h=>{for(let g of h.children)if((s?g.isText():g.length)||u(g))return!0;return!1};return u(l)}function ygn(l){let s=l.isReplace?(l.startSide<0?64:0)|(l.endSide>0?128:0):l.startSide>0?32:16;return l.block&&(s|=256),s}const v6t={class:"cm-line"};function xgn(l,s){let u=s.spec.attributes,h=s.spec.class;return!u&&!h||(l||(l={class:"cm-line"}),u&&HAe(u,l),h&&(l.class+=" "+h)),l}function kgn(l){let s=[];for(let u=l.parents.length;u>1;u--){let h=u==l.parents.length?l.tile:l.parents[u].tile;h instanceof wp&&s.push(h.mark)}return s}function aCe(l){let s=sf.get(l);return s&&s.setDOM(l.cloneNode()),l}class nR extends kO{constructor(s){super(),this.tag=s}eq(s){return s.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(s){return s.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}nR.inline=new nR("span");nR.block=new nR("div");const fCe=new class extends kO{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class y3t{constructor(s){this.view=s,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=Fr.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new wde(s,s.contentDOM),this.updateInner([new Vw(0,0,0,s.state.doc.length)],null)}update(s){var u;let h=s.changedRanges;this.minWidth>0&&h.length&&(h.every(({fromA:N,toA:_})=>_<this.minWidthFrom||N>this.minWidthTo)?(this.minWidthFrom=s.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=s.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(s);let g=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((u=this.domChanged)===null||u===void 0)&&u.newSel?g=this.domChanged.newSel.head:!Ngn(s.changes,this.hasComposition)&&!s.selectionSet&&(g=s.state.selection.main.head));let m=g>-1?Sgn(this.view,s.changes,g):null;if(this.domChanged=null,this.hasComposition){let{from:N,to:_}=this.hasComposition;h=new Vw(N,_,s.changes.mapPos(N,-1),s.changes.mapPos(_,1)).addToSet(h.slice())}this.hasComposition=m?{from:m.range.fromB,to:m.range.toB}:null,(Xi.ie||Xi.chrome)&&!m&&s&&s.state.doc.lines!=s.startState.doc.lines&&(this.forceSelection=!0);let p=this.decorations,k=this.blockWrappers;this.updateDeco();let S=Egn(p,this.decorations,s.changes);S.length&&(h=Vw.extendWithRanges(h,S));let C=Mgn(k,this.blockWrappers,s.changes);return C.length&&(h=Vw.extendWithRanges(h,C)),m&&!h.some(N=>N.fromA<=m.range.fromA&&N.toA>=m.range.toA)&&(h=m.range.addToSet(h.slice())),this.tile.flags&2&&h.length==0?!1:(this.updateInner(h,m),s.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(s,u){this.view.viewState.mustMeasureContent=!0;let{observer:h}=this.view;h.ignore(()=>{if(u||s.length){let p=this.tile,k=new vgn(this.view,p,this.blockWrappers,this.decorations,this.dynamicDecorationMap);u&&sf.get(u.text)&&k.cache.reused.set(sf.get(u.text),2),this.tile=k.run(s,u),RMe(p,k.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let m=Xi.chrome||Xi.ios?{node:h.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(m),m&&(m.written||h.selectionRange.focusNode!=m.node||!this.tile.dom.contains(m.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let g=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let m of this.tile.children)m.isWidget()&&m.widget instanceof hCe&&g.push(m.dom);h.updateGaps(g)}updateEditContextFormatting(s){this.editContextFormatting=this.editContextFormatting.map(s.changes);for(let u of s.transactions)for(let h of u.effects)h.is(g6t)&&(this.editContextFormatting=h.value)}updateSelection(s=!1,u=!1){(s||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let{dom:h}=this.tile,g=this.view.root.activeElement,m=g==h,p=!m&&!(this.view.state.facet(fO)||h.tabIndex>-1)&&sX(h,this.view.observer.selectionRange)&&!(g&&h.contains(g));if(!(m||u||p))return;let k=this.forceSelection;this.forceSelection=!1;let S=this.view.state.selection.main,C,N;if(S.empty?N=C=this.inlineDOMNearPos(S.anchor,S.assoc||1):(N=this.inlineDOMNearPos(S.head,S.head==S.from?1:-1),C=this.inlineDOMNearPos(S.anchor,S.anchor==S.from?1:-1)),Xi.gecko&&S.empty&&!this.hasComposition&&Ogn(C)){let P=document.createTextNode("");this.view.observer.ignore(()=>C.node.insertBefore(P,C.node.childNodes[C.offset]||null)),C=N=new Ey(P,0),k=!0}let _=this.view.observer.selectionRange;(k||!_.focusNode||(!cX(C.node,C.offset,_.anchorNode,_.anchorOffset)||!cX(N.node,N.offset,_.focusNode,_.focusOffset))&&!this.suppressWidgetCursorChange(_,S))&&(this.view.observer.ignore(()=>{Xi.android&&Xi.chrome&&h.contains(_.focusNode)&&Agn(_.focusNode,h)&&(h.blur(),h.focus({preventScroll:!0}));let P=TX(this.view.root);if(P)if(S.empty){if(Xi.gecko){let R=jgn(C.node,C.offset);if(R&&R!=3){let q=(R==1?YOt:ZOt)(C.node,C.offset);q&&(C=new Ey(q.node,q.offset))}}P.collapse(C.node,C.offset),S.bidiLevel!=null&&P.caretBidiLevel!==void 0&&(P.caretBidiLevel=S.bidiLevel)}else if(P.extend){P.collapse(C.node,C.offset);try{P.extend(N.node,N.offset)}catch{}}else{let R=document.createRange();S.anchor>S.head&&([C,N]=[N,C]),R.setEnd(N.node,N.offset),R.setStart(C.node,C.offset),P.removeAllRanges(),P.addRange(R)}p&&this.view.root.activeElement==h&&(h.blur(),g&&g.focus())}),this.view.observer.setSelectionRange(C,N)),this.impreciseAnchor=C.precise?null:new Ey(_.anchorNode,_.anchorOffset),this.impreciseHead=N.precise?null:new Ey(_.focusNode,_.focusOffset)}suppressWidgetCursorChange(s,u){return this.hasComposition&&u.empty&&cX(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)&&this.posFromDOM(s.focusNode,s.focusOffset)==u.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:s}=this,u=s.state.selection.main,h=TX(s.root),{anchorNode:g,anchorOffset:m}=s.observer.selectionRange;if(!h||!u.empty||!u.assoc||!h.modify)return;let p=this.lineAt(u.head,u.assoc);if(!p)return;let k=p.posAtStart;if(u.head==k||u.head==k+p.length)return;let S=this.coordsAt(u.head,-1),C=this.coordsAt(u.head,1);if(!S||!C||S.bottom>C.top)return;let N=this.domAtPos(u.head+u.assoc,u.assoc);h.collapse(N.node,N.offset),h.modify("move",u.assoc<0?"forward":"backward","lineboundary"),s.observer.readSelectionRange();let _=s.observer.selectionRange;s.docView.posFromDOM(_.anchorNode,_.anchorOffset)!=u.from&&h.collapse(g,m)}posFromDOM(s,u){let h=this.tile.nearest(s);if(!h)return this.tile.dom.compareDocumentPosition(s)&2?0:this.view.state.doc.length;let g=h.posAtStart;if(h.isComposite()){let m;if(s==h.dom)m=h.dom.childNodes[u];else{let p=vO(s)==0?0:u==0?-1:1;for(;;){let k=s.parentNode;if(k==h.dom)break;p==0&&k.firstChild!=k.lastChild&&(s==k.firstChild?p=-1:p=1),s=k}p<0?m=s:m=s.nextSibling}if(m==h.dom.firstChild)return g;for(;m&&!sf.get(m);)m=m.nextSibling;if(!m)return g+h.length;for(let p=0,k=g;;p++){let S=h.children[p];if(S.dom==m)return k;k+=S.length+S.breakAfter}}else return h.isText()?s==h.dom?g+u:g+(u?h.length:0):g}domAtPos(s,u){let{tile:h,offset:g}=this.tile.resolveBlock(s,u);return h.isWidget()?h.domPosFor(s,u):h.domIn(g,u)}inlineDOMNearPos(s,u){let h,g=-1,m=!1,p,k=-1,S=!1;return this.tile.blockTiles((C,N)=>{if(C.isWidget()){if(C.flags&32&&N>=s)return!0;C.flags&16&&(m=!0)}else{let _=N+C.length;if(N<=s&&(h=C,g=s-N,m=_<s),_>=s&&!p&&(p=C,k=s-N,S=N>s),N>s&&p)return!0}}),!h&&!p?this.domAtPos(s,u):(m&&p?h=null:S&&h&&(p=null),h&&u<0||!p?h.domIn(g,u):p.domIn(k,u))}coordsAt(s,u){let{tile:h,offset:g}=this.tile.resolveBlock(s,u);return h.isWidget()?h.widget instanceof hCe?null:h.coordsInWidget(g,u,!0):h.coordsIn(g,u)}lineAt(s,u){let{tile:h}=this.tile.resolveBlock(s,u);return h.isLine()?h:null}coordsForChar(s){let{tile:u,offset:h}=this.tile.resolveBlock(s,1);if(!u.isLine())return null;function g(m,p){if(m.isComposite())for(let k of m.children){if(k.length>=p){let S=g(k,p);if(S)return S}if(p-=k.length,p<0)break}else if(m.isText()&&p<m.length){let k=yd(m.text,p);if(k==p)return null;let S=CX(m.dom,p,k).getClientRects();for(let C=0;C<S.length;C++){let N=S[C];if(C==S.length-1||N.top<N.bottom&&N.left<N.right)return N}}return null}return g(u,h)}measureVisibleLineHeights(s){let u=[],{from:h,to:g}=s,m=this.view.contentDOM.clientWidth,p=m>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,k=-1,S=this.view.textDirection==Zl.LTR,C=0,N=(_,P,R)=>{for(let q=0;q<_.children.length&&!(P>g);q++){let F=_.children[q],X=P+F.length,J=F.dom.getBoundingClientRect(),{height:ee}=J;if(R&&!q&&(C+=J.top-R.top),F instanceof pO)X>h&&N(F,P,J);else if(P>=h&&(C>0&&u.push(-C),u.push(ee+C),C=0,p)){let te=F.dom.lastChild,ie=te?oX(te):[];if(ie.length){let oe=ie[ie.length-1],se=S?oe.right-J.left:J.right-oe.left;se>k&&(k=se,this.minWidth=m,this.minWidthFrom=P,this.minWidthTo=X)}}R&&q==_.children.length-1&&(C+=R.bottom-J.bottom),P=X+F.breakAfter}};return N(this.tile,0,null),u}textDirectionAt(s){let{tile:u}=this.tile.resolveBlock(s,1);return getComputedStyle(u.dom).direction=="rtl"?Zl.RTL:Zl.LTR}measureTextSize(){let s=this.tile.blockTiles(p=>{if(p.isLine()&&p.children.length&&p.length<=20){let k=0,S;for(let C of p.children){if(!C.isText()||/[^ -~]/.test(C.text))return;let N=oX(C.dom);if(N.length!=1)return;k+=N[0].width,S=N[0].height}if(k)return{lineHeight:p.dom.getBoundingClientRect().height,charWidth:k/p.length,textHeight:S}}});if(s)return s;let u=document.createElement("div"),h,g,m;return u.className="cm-line",u.style.width="99999px",u.style.position="absolute",u.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(u);let p=oX(u.firstChild)[0];h=u.getBoundingClientRect().height,g=p&&p.width?p.width/27:7,m=p&&p.height?p.height:h,u.remove()}),{lineHeight:h,charWidth:g,textHeight:m}}computeBlockGapDeco(){let s=[],u=this.view.viewState;for(let h=0,g=0;;g++){let m=g==u.viewports.length?null:u.viewports[g],p=m?m.from-1:this.view.state.doc.length;if(p>h){let k=(u.lineBlockAt(p).bottom-u.lineBlockAt(h).top)/this.view.scaleY;s.push(Fr.replace({widget:new hCe(k),block:!0,inclusive:!0,isBlockGap:!0}).range(h,p))}if(!m)break;h=m.to+1}return Fr.set(s)}updateDeco(){let s=1,u=this.view.state.facet(bde).map(m=>(this.dynamicDecorationMap[s++]=typeof m=="function")?m(this.view):m),h=!1,g=this.view.state.facet(XAe).map((m,p)=>{let k=typeof m=="function";return k&&(h=!0),k?m(this.view):m});for(g.length&&(this.dynamicDecorationMap[s++]=h,u.push(yo.join(g))),this.decorations=[this.editContextFormatting,...u,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];s<this.decorations.length;)this.dynamicDecorationMap[s++]=!1;this.blockWrappers=this.view.state.facet(b6t).map(m=>typeof m=="function"?m(this.view):m)}scrollIntoView(s){if(s.isSnapshot){let C=this.view.viewState.lineBlockAt(s.range.head);this.view.scrollDOM.scrollTop=C.top-s.yMargin,this.view.scrollDOM.scrollLeft=s.xMargin;return}for(let C of this.view.state.facet(d6t))try{if(C(this.view,s.range,s))return!0}catch(N){yp(this.view.state,N,"scroll handler")}let{range:u}=s,h=this.coordsAt(u.head,u.empty?u.assoc:u.head>u.anchor?-1:1),g;if(!h)return;!u.empty&&(g=this.coordsAt(u.anchor,u.anchor>u.head?-1:1))&&(h={left:Math.min(h.left,g.left),top:Math.min(h.top,g.top),right:Math.max(h.right,g.right),bottom:Math.max(h.bottom,g.bottom)});let m=WAe(this.view),p={left:h.left-m.left,top:h.top-m.top,right:h.right+m.right,bottom:h.bottom+m.bottom},{offsetWidth:k,offsetHeight:S}=this.view.scrollDOM;if(K1n(this.view.scrollDOM,p,u.head<u.anchor?-1:1,s.x,s.y,Math.max(Math.min(s.xMargin,k),-k),Math.max(Math.min(s.yMargin,S),-S),this.view.textDirection==Zl.LTR),window.visualViewport&&window.innerHeight-window.visualViewport.height>1&&(h.top>window.pageYOffset+window.visualViewport.offsetTop+window.visualViewport.height||h.bottom<window.pageYOffset+window.visualViewport.offsetTop)){let C=this.view.docView.lineAt(u.head,1);C&&C.dom.scrollIntoView({block:"nearest"})}}lineHasWidget(s){let u=h=>h.isWidget()||h.children.some(u);return u(this.tile.resolveBlock(s,1).tile)}destroy(){RMe(this.tile)}}function RMe(l,s){let u=s==null?void 0:s.get(l);if(u!=1){u==null&&l.destroy();for(let h of l.children)RMe(h,s)}}function Ogn(l){return l.node.nodeType==1&&l.node.firstChild&&(l.offset==0||l.node.childNodes[l.offset-1].contentEditable=="false")&&(l.offset==l.node.childNodes.length||l.node.childNodes[l.offset].contentEditable=="false")}function y6t(l,s){let u=l.observer.selectionRange;if(!u.focusNode)return null;let h=YOt(u.focusNode,u.focusOffset),g=ZOt(u.focusNode,u.focusOffset),m=h||g;if(g&&h&&g.node!=h.node){let k=sf.get(g.node);if(!k||k.isText()&&k.text!=g.node.nodeValue)m=g;else if(l.docView.lastCompositionAfterCursor){let S=sf.get(h.node);!S||S.isText()&&S.text!=h.node.nodeValue||(m=g)}}if(l.docView.lastCompositionAfterCursor=m!=h,!m)return null;let p=s-m.offset;return{from:p,to:p+m.node.nodeValue.length,node:m.node}}function Sgn(l,s,u){let h=y6t(l,u);if(!h)return null;let{node:g,from:m,to:p}=h,k=g.nodeValue;if(/[\n\r]/.test(k)||l.state.doc.sliceString(h.from,h.to)!=k)return null;let S=s.invertedDesc;return{range:new Vw(S.mapPos(m),S.mapPos(p),m,p),text:g}}function jgn(l,s){return l.nodeType!=1?0:(s&&l.childNodes[s-1].contentEditable=="false"?1:0)|(s<l.childNodes.length&&l.childNodes[s].contentEditable=="false"?2:0)}let Tgn=class{constructor(){this.changes=[]}compareRange(s,u){zI(s,u,this.changes)}comparePoint(s,u){zI(s,u,this.changes)}boundChange(s){zI(s,s,this.changes)}};function Egn(l,s,u){let h=new Tgn;return yo.compare(l,s,u,h),h.changes}class Cgn{constructor(){this.changes=[]}compareRange(s,u){zI(s,u,this.changes)}comparePoint(){}boundChange(s){zI(s,s,this.changes)}}function Mgn(l,s,u){let h=new Cgn;return yo.compare(l,s,u,h),h.changes}function Agn(l,s){for(let u=l;u&&u!=s;u=u.assignedSlot||u.parentNode)if(u.nodeType==1&&u.contentEditable=="false")return!0;return!1}function Ngn(l,s){let u=!1;return s&&l.iterChangedRanges((h,g)=>{h<s.to&&g>s.from&&(u=!0)}),u}class hCe extends kO{constructor(s){super(),this.height=s}toDOM(){let s=document.createElement("div");return s.className="cm-gap",this.updateDOM(s),s}eq(s){return s.height==this.height}updateDOM(s){return s.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function _gn(l,s,u=1){let h=l.charCategorizer(s),g=l.doc.lineAt(s),m=s-g.from;if(g.length==0)return jn.cursor(s);m==0?u=1:m==g.length&&(u=-1);let p=m,k=m;u<0?p=yd(g.text,m,!1):k=yd(g.text,m);let S=h(g.text.slice(p,k));for(;p>0;){let C=yd(g.text,p,!1);if(h(g.text.slice(C,p))!=S)break;p=C}for(;k<g.length;){let C=yd(g.text,k);if(h(g.text.slice(k,C))!=S)break;k=C}return jn.range(p+g.from,k+g.from)}function Dgn(l,s,u,h,g){let m=Math.round((h-s.left)*l.defaultCharacterWidth);if(l.lineWrapping&&u.height>l.defaultLineHeight*1.5){let k=l.viewState.heightOracle.textHeight,S=Math.floor((g-u.top-(l.defaultLineHeight-k)*.5)/k);m+=S*l.viewState.heightOracle.lineLength}let p=l.state.sliceDoc(u.from,u.to);return u.from+jMe(p,m,l.state.tabSize)}function $Me(l,s,u){let h=l.lineBlockAt(s);if(Array.isArray(h.type)){let g;for(let m of h.type){if(m.from>s)break;if(!(m.to<s)){if(m.from<s&&m.to>s)return m;(!g||m.type==o1.Text&&(g.type!=m.type||(u<0?m.from<s:m.to>s)))&&(g=m)}}return g||h}return h}function Lgn(l,s,u,h){let g=$Me(l,s.head,s.assoc||-1),m=!h||g.type!=o1.Text||!(l.lineWrapping||g.widgetLineBreaks)?null:l.coordsAtPos(s.assoc<0&&s.head>g.from?s.head-1:s.head);if(m){let p=l.dom.getBoundingClientRect(),k=l.textDirectionAt(g.from),S=l.posAtCoords({x:u==(k==Zl.LTR)?p.right-1:p.left+1,y:(m.top+m.bottom)/2});if(S!=null)return jn.cursor(S,u?-1:1)}return jn.cursor(u?g.to:g.from,u?-1:1)}function x3t(l,s,u,h){let g=l.state.doc.lineAt(s.head),m=l.bidiSpans(g),p=l.textDirectionAt(g.from);for(let k=s,S=null;;){let C=lgn(g,m,p,k,u),N=r6t;if(!C){if(g.number==(u?l.state.doc.lines:1))return k;N=`
`,g=l.state.doc.line(g.number+(u?1:-1)),m=l.bidiSpans(g),C=l.visualLineSide(g,!u)}if(S){if(!S(N))return k}else{if(!h)return C;S=h(N)}k=C}}function Pgn(l,s,u){let h=l.state.charCategorizer(s),g=h(u);return m=>{let p=h(m);return g==ta.Space&&(g=p),g==p}}function Ign(l,s,u,h){let g=s.head,m=u?1:-1;if(g==(u?l.state.doc.length:0))return jn.cursor(g,s.assoc);let p=s.goalColumn,k,S=l.contentDOM.getBoundingClientRect(),C=l.coordsAtPos(g,(s.empty?s.assoc:0)||(u?1:-1)),N=l.documentTop;if(C)p==null&&(p=C.left-S.left),k=m<0?C.top:C.bottom;else{let q=l.viewState.lineBlockAt(g);p==null&&(p=Math.min(S.right-S.left,l.defaultCharacterWidth*(g-q.from))),k=(m<0?q.top:q.bottom)+N}let _=S.left+p,P=h??l.viewState.heightOracle.textHeight>>1,R=BMe(l,{x:_,y:k+P*m},!1,m);return jn.cursor(R.pos,R.assoc,void 0,p)}function lX(l,s,u){for(;;){let h=0;for(let g of l)g.between(s-1,s+1,(m,p,k)=>{if(s>m&&s<p){let S=h||u||(s-m<p-s?-1:1);s=S<0?m:p,h=S}});if(!h)return s}}function x6t(l,s){let u=null;for(let h=0;h<s.ranges.length;h++){let g=s.ranges[h],m=null;if(g.empty){let p=lX(l,g.from,0);p!=g.from&&(m=jn.cursor(p,-1))}else{let p=lX(l,g.from,-1),k=lX(l,g.to,1);(p!=g.from||k!=g.to)&&(m=jn.range(g.from==g.anchor?p:k,g.from==g.head?p:k))}m&&(u||(u=s.ranges.slice()),u[h]=m)}return u?jn.create(u,s.mainIndex):s}function dCe(l,s,u){let h=lX(l.state.facet(eW).map(g=>g(l)),u.from,s.head>u.from?-1:1);return h==u.from?u:jn.cursor(h,h<u.from?1:-1)}class V3{constructor(s,u){this.pos=s,this.assoc=u}}function BMe(l,s,u,h){let g=l.contentDOM.getBoundingClientRect(),m=g.top+l.viewState.paddingTop,{x:p,y:k}=s,S=k-m,C;for(;;){if(S<0)return new V3(0,1);if(S>l.viewState.docHeight)return new V3(l.state.doc.length,-1);if(C=l.elementAtHeight(S),h==null)break;if(C.type==o1.Text){if(h<0?C.to<l.viewport.from:C.from>l.viewport.to)break;let P=l.docView.coordsAt(h<0?C.from:C.to,h>0?-1:1);if(P&&(h<0?P.top<=S+m:P.bottom>=S+m))break}let _=l.viewState.heightOracle.textHeight/2;S=h>0?C.bottom+_:C.top-_}if(l.viewport.from>=C.to||l.viewport.to<=C.from){if(u)return null;if(C.type==o1.Text){let _=Dgn(l,g,C,p,k);return new V3(_,_==C.from?1:-1)}}if(C.type!=o1.Text)return S<(C.top+C.bottom)/2?new V3(C.from,1):new V3(C.to,-1);let N=l.docView.lineAt(C.from,2);return(!N||N.length!=C.length)&&(N=l.docView.lineAt(C.from,-2)),new Rgn(l,p,k,l.textDirectionAt(C.from)).scanTile(N,C.from)}class Rgn{constructor(s,u,h,g){this.view=s,this.x=u,this.y=h,this.baseDir=g,this.line=null,this.spans=null}bidiSpansAt(s){return(!this.line||this.line.from>s||this.line.to<s)&&(this.line=this.view.state.doc.lineAt(s),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(s,u){let{line:h,spans:g}=this.bidiSpansAt(s);return g[X3.find(g,s-h.from,-1,u)].level==this.baseDir}dirAt(s,u){let{line:h,spans:g}=this.bidiSpansAt(s);return g[X3.find(g,s-h.from,-1,u)].dir}bidiIn(s,u){let{spans:h,line:g}=this.bidiSpansAt(s);return h.length>1||h.length&&(h[0].level!=this.baseDir||h[0].to+g.from<u)}scan(s,u){let h=0,g=s.length-1,m=new Set,p=this.bidiIn(s[0],s[g]),k,S,C=-1,N=1e9,_;e:for(;h<g;){let R=g-h,q=h+g>>1;t:if(m.has(q)){let X=h+Math.floor(Math.random()*R);for(let J=0;J<R;J++){if(!m.has(X)){q=X;break t}X++,X==g&&(X=h)}break e}m.add(q);let F=u(q);if(F)for(let X=0;X<F.length;X++){let J=F[X],ee=0;if(J.bottom<this.y)(!k||k.bottom<J.bottom)&&(k=J),ee=1;else if(J.top>this.y)(!S||S.top>J.top)&&(S=J),ee=-1;else{let te=J.left>this.x?this.x-J.left:J.right<this.x?this.x-J.right:0,ie=Math.abs(te);ie<N&&(C=q,N=ie,_=J),te&&(ee=te<0==(this.baseDir==Zl.LTR)?-1:1)}ee==-1&&(!p||this.baseDirAt(s[q],1))?g=q:ee==1&&(!p||this.baseDirAt(s[q+1],-1))&&(h=q+1)}}if(!_){let R=k&&(!S||this.y-k.bottom<S.top-this.y)?k:S;return this.y=(R.top+R.bottom)/2,this.scan(s,u)}let P=(p?this.dirAt(s[C],1):this.baseDir)==Zl.LTR;return{i:C,after:this.x>(_.left+_.right)/2==P}}scanText(s,u){let h=[];for(let m=0;m<s.length;m=yd(s.text,m))h.push(u+m);h.push(u+s.length);let g=this.scan(h,m=>{let p=h[m]-u,k=h[m+1]-u;return CX(s.dom,p,k).getClientRects()});return g.after?new V3(h[g.i+1],-1):new V3(h[g.i],1)}scanTile(s,u){if(!s.length)return new V3(u,1);if(s.children.length==1){let k=s.children[0];if(k.isText())return this.scanText(k,u);if(k.isComposite())return this.scanTile(k,u)}let h=[u];for(let k=0,S=u;k<s.children.length;k++)h.push(S+=s.children[k].length);let g=this.scan(h,k=>{let S=s.children[k];return S.flags&48?null:(S.dom.nodeType==1?S.dom:CX(S.dom,0,S.length)).getClientRects()}),m=s.children[g.i],p=h[g.i];return m.isText()?this.scanText(m,p):m.isComposite()?this.scanTile(m,p):g.after?new V3(h[g.i+1],-1):new V3(p,1)}}const jI="";class $gn{constructor(s,u){this.points=s,this.view=u,this.text="",this.lineSeparator=u.state.facet(Bc.lineSeparator)}append(s){this.text+=s}lineBreak(){this.text+=jI}readRange(s,u){if(!s)return this;let h=s.parentNode;for(let g=s;;){this.findPointBefore(h,g);let m=this.text.length;this.readNode(g);let p=sf.get(g),k=g.nextSibling;if(k==u){p!=null&&p.breakAfter&&!k&&h!=this.view.contentDOM&&this.lineBreak();break}let S=sf.get(k);(p&&S?p.breakAfter:(p?p.breakAfter:Ehe(g))||Ehe(k)&&(g.nodeName!="BR"||p!=null&&p.isWidget())&&this.text.length>m)&&!zgn(k,u)&&this.lineBreak(),g=k}return this.findPointBefore(h,u),this}readTextNode(s){let u=s.nodeValue;for(let h of this.points)h.node==s&&(h.pos=this.text.length+Math.min(h.offset,u.length));for(let h=0,g=this.lineSeparator?null:/\r\n?|\n/g;;){let m=-1,p=1,k;if(this.lineSeparator?(m=u.indexOf(this.lineSeparator,h),p=this.lineSeparator.length):(k=g.exec(u))&&(m=k.index,p=k[0].length),this.append(u.slice(h,m<0?u.length:m)),m<0)break;if(this.lineBreak(),p>1)for(let S of this.points)S.node==s&&S.pos>this.text.length&&(S.pos-=p-1);h=m+p}}readNode(s){let u=sf.get(s),h=u&&u.overrideDOMText;if(h!=null){this.findPointInside(s,h.length);for(let g=h.iter();!g.next().done;)g.lineBreak?this.lineBreak():this.append(g.value)}else s.nodeType==3?this.readTextNode(s):s.nodeName=="BR"?s.nextSibling&&this.lineBreak():s.nodeType==1&&this.readRange(s.firstChild,null)}findPointBefore(s,u){for(let h of this.points)h.node==s&&s.childNodes[h.offset]==u&&(h.pos=this.text.length)}findPointInside(s,u){for(let h of this.points)(s.nodeType==3?h.node==s:s.contains(h.node))&&(h.pos=this.text.length+(Bgn(s,h.node,h.offset)?u:0))}}function Bgn(l,s,u){for(;;){if(!s||u<vO(s))return!1;if(s==l)return!0;u=q9(s)+1,s=s.parentNode}}function zgn(l,s){let u;for(;!(l==s||!l);l=l.nextSibling){let h=sf.get(l);if(!(h!=null&&h.isWidget()))return!1;h&&(u||(u=[])).push(h)}if(u)for(let h of u){let g=h.overrideDOMText;if(g!=null&&g.length)return!1}return!0}class k3t{constructor(s,u){this.node=s,this.offset=u,this.pos=-1}}class Fgn{constructor(s,u,h,g){this.typeOver=g,this.bounds=null,this.text="",this.domChanged=u>-1;let{impreciseHead:m,impreciseAnchor:p}=s.docView;if(s.state.readOnly&&u>-1)this.newSel=null;else if(u>-1&&(this.bounds=k6t(s.docView.tile,u,h,0))){let k=m||p?[]:Hgn(s),S=new $gn(k,s);S.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=S.text,this.newSel=Qgn(k,this.bounds.from)}else{let k=s.observer.selectionRange,S=m&&m.node==k.focusNode&&m.offset==k.focusOffset||!_Me(s.contentDOM,k.focusNode)?s.state.selection.main.head:s.docView.posFromDOM(k.focusNode,k.focusOffset),C=p&&p.node==k.anchorNode&&p.offset==k.anchorOffset||!_Me(s.contentDOM,k.anchorNode)?s.state.selection.main.anchor:s.docView.posFromDOM(k.anchorNode,k.anchorOffset),N=s.viewport;if((Xi.ios||Xi.chrome)&&s.state.selection.main.empty&&S!=C&&(N.from>0||N.to<s.state.doc.length)){let _=Math.min(S,C),P=Math.max(S,C),R=N.from-_,q=N.to-P;(R==0||R==1||_==0)&&(q==0||q==-1||P==s.state.doc.length)&&(S=0,C=s.state.doc.length)}s.inputState.composing>-1&&s.state.selection.ranges.length>1?this.newSel=s.state.selection.replaceRange(jn.range(C,S)):this.newSel=jn.single(C,S)}}}function k6t(l,s,u,h){if(l.isComposite()){let g=-1,m=-1,p=-1,k=-1;for(let S=0,C=h,N=h;S<l.children.length;S++){let _=l.children[S],P=C+_.length;if(C<s&&P>u)return k6t(_,s,u,C);if(P>=s&&g==-1&&(g=S,m=C),C>u&&_.dom.parentNode==l.dom){p=S,k=N;break}N=P,C=P+_.breakAfter}return{from:m,to:k<0?h+l.length:k,startDOM:(g?l.children[g-1].dom.nextSibling:null)||l.dom.firstChild,endDOM:p<l.children.length&&p>=0?l.children[p].dom:null}}else return l.isText()?{from:h,to:h+l.length,startDOM:l.dom,endDOM:l.dom.nextSibling}:null}function O6t(l,s){let u,{newSel:h}=s,{state:g}=l,m=g.selection.main,p=l.inputState.lastKeyTime>Date.now()-100?l.inputState.lastKeyCode:-1;if(s.bounds){let{from:k,to:S}=s.bounds,C=m.from,N=null;(p===8||Xi.android&&s.text.length<S-k)&&(C=m.to,N="end");let _=g.doc.sliceString(k,S,jI),P,R;!m.empty&&m.from>=k&&m.to<=S&&(s.typeOver||_!=s.text)&&_.slice(0,m.from-k)==s.text.slice(0,m.from-k)&&_.slice(m.to-k)==s.text.slice(P=s.text.length-(_.length-(m.to-k)))?u={from:m.from,to:m.to,insert:fc.of(s.text.slice(m.from-k,P).split(jI))}:(R=S6t(_,s.text,C-k,N))&&(Xi.chrome&&p==13&&R.toB==R.from+2&&s.text.slice(R.from,R.toB)==jI+jI&&R.toB--,u={from:k+R.from,to:k+R.toA,insert:fc.of(s.text.slice(R.from,R.toB).split(jI))})}else h&&(!l.hasFocus&&g.facet(fO)||Nhe(h,m))&&(h=null);if(!u&&!h)return!1;if((Xi.mac||Xi.android)&&u&&u.from==u.to&&u.from==m.head-1&&/^\. ?$/.test(u.insert.toString())&&l.contentDOM.getAttribute("autocorrect")=="off"?(h&&u.insert.length==2&&(h=jn.single(h.main.anchor-1,h.main.head-1)),u={from:u.from,to:u.to,insert:fc.of([u.insert.toString().replace("."," ")])}):g.doc.lineAt(m.from).to<m.to&&l.docView.lineHasWidget(m.to)&&l.inputState.insertingTextAt>Date.now()-50?u={from:m.from,to:m.to,insert:g.toText(l.inputState.insertingText)}:Xi.chrome&&u&&u.from==u.to&&u.from==m.head&&u.insert.toString()==`
 `&&l.lineWrapping&&(h&&(h=jn.single(h.main.anchor-1,h.main.head-1)),u={from:m.from,to:m.to,insert:fc.of([" "])}),u)return KAe(l,u,h,p);if(h&&!Nhe(h,m)){let k=!1,S="select";return l.inputState.lastSelectionTime>Date.now()-50&&(l.inputState.lastSelectionOrigin=="select"&&(k=!0),S=l.inputState.lastSelectionOrigin,S=="select.pointer"&&(h=x6t(g.facet(eW).map(C=>C(l)),h))),l.dispatch({selection:h,scrollIntoView:k,userEvent:S}),!0}else return!1}function KAe(l,s,u,h=-1){if(Xi.ios&&l.inputState.flushIOSKey(s))return!0;let g=l.state.selection.main;if(Xi.android&&(s.to==g.to&&(s.from==g.from||s.from==g.from-1&&l.state.sliceDoc(s.from,g.from)==" ")&&s.insert.length==1&&s.insert.lines==2&&FI(l.contentDOM,"Enter",13)||(s.from==g.from-1&&s.to==g.to&&s.insert.length==0||h==8&&s.insert.length<s.to-s.from&&s.to>g.head)&&FI(l.contentDOM,"Backspace",8)||s.from==g.from&&s.to==g.to+1&&s.insert.length==0&&FI(l.contentDOM,"Delete",46)))return!0;let m=s.insert.toString();l.inputState.composing>=0&&l.inputState.composing++;let p,k=()=>p||(p=qgn(l,s,u));return l.state.facet(u6t).some(S=>S(l,s.from,s.to,m,k))||l.dispatch(k()),!0}function qgn(l,s,u){let h,g=l.state,m=g.selection.main,p=-1;if(s.from==s.to&&s.from<m.from||s.from>m.to){let S=s.from<m.from?-1:1,C=S<0?m.from:m.to,N=lX(g.facet(eW).map(_=>_(l)),C,S);s.from==N&&(p=N)}if(p>-1)h={changes:s,selection:jn.cursor(s.from+s.insert.length,-1)};else if(s.from>=m.from&&s.to<=m.to&&s.to-s.from>=(m.to-m.from)/3&&(!u||u.main.empty&&u.main.from==s.from+s.insert.length)&&l.inputState.composing<0){let S=m.from<s.from?g.sliceDoc(m.from,s.from):"",C=m.to>s.to?g.sliceDoc(s.to,m.to):"";h=g.replaceSelection(l.state.toText(S+s.insert.sliceString(0,void 0,l.state.lineBreak)+C))}else{let S=g.changes(s),C=u&&u.main.to<=S.newLength?u.main:void 0;if(g.selection.ranges.length>1&&(l.inputState.composing>=0||l.inputState.compositionPendingChange)&&s.to<=m.to+10&&s.to>=m.to-10){let N=l.state.sliceDoc(s.from,s.to),_,P=u&&y6t(l,u.main.head);if(P){let q=s.insert.length-(s.to-s.from);_={from:P.from,to:P.to-q}}else _=l.state.doc.lineAt(m.head);let R=m.to-s.to;h=g.changeByRange(q=>{if(q.from==m.from&&q.to==m.to)return{changes:S,range:C||q.map(S)};let F=q.to-R,X=F-N.length;if(l.state.sliceDoc(X,F)!=N||F>=_.from&&X<=_.to)return{range:q};let J=g.changes({from:X,to:F,insert:s.insert}),ee=q.to-m.to;return{changes:J,range:C?jn.range(Math.max(0,C.anchor+ee),Math.max(0,C.head+ee)):q.map(J)}})}else h={changes:S,selection:C&&g.selection.replaceRange(C)}}let k="input.type";return(l.composing||l.inputState.compositionPendingChange&&l.inputState.compositionEndedAt>Date.now()-50)&&(l.inputState.compositionPendingChange=!1,k+=".compose",l.inputState.compositionFirstChange&&(k+=".start",l.inputState.compositionFirstChange=!1)),g.update(h,{userEvent:k,scrollIntoView:!0})}function S6t(l,s,u,h){let g=Math.min(l.length,s.length),m=0;for(;m<g&&l.charCodeAt(m)==s.charCodeAt(m);)m++;if(m==g&&l.length==s.length)return null;let p=l.length,k=s.length;for(;p>0&&k>0&&l.charCodeAt(p-1)==s.charCodeAt(k-1);)p--,k--;if(h=="end"){let S=Math.max(0,m-Math.min(p,k));u-=p+S-m}if(p<m&&l.length<s.length){let S=u<=m&&u>=p?m-u:0;m-=S,k=m+(k-p),p=m}else if(k<m){let S=u<=m&&u>=k?m-u:0;m-=S,p=m+(p-k),k=m}return{from:m,toA:p,toB:k}}function Hgn(l){let s=[];if(l.root.activeElement!=l.contentDOM)return s;let{anchorNode:u,anchorOffset:h,focusNode:g,focusOffset:m}=l.observer.selectionRange;return u&&(s.push(new k3t(u,h)),(g!=u||m!=h)&&s.push(new k3t(g,m))),s}function Qgn(l,s){if(l.length==0)return null;let u=l[0].pos,h=l.length==2?l[1].pos:u;return u>-1&&h>-1?jn.single(u+s,h+s):null}function Nhe(l,s){return s.head==l.main.head&&s.anchor==l.main.anchor}class Ggn{setSelectionOrigin(s){this.lastSelectionOrigin=s,this.lastSelectionTime=Date.now()}constructor(s){this.view=s,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=s.hasFocus,Xi.safari&&s.contentDOM.addEventListener("input",()=>null),Xi.gecko&&o0n(s.contentDOM.ownerDocument)}handleEvent(s){!Zgn(this.view,s)||this.ignoreDuringComposition(s)||s.type=="keydown"&&this.keydown(s)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(s.type,s)):this.runHandlers(s.type,s))}runHandlers(s,u){let h=this.handlers[s];if(h){for(let g of h.observers)g(this.view,u);for(let g of h.handlers){if(u.defaultPrevented)break;if(g(this.view,u)){u.preventDefault();break}}}}ensureHandlers(s){let u=Ugn(s),h=this.handlers,g=this.view.contentDOM;for(let m in u)if(m!="scroll"){let p=!u[m].handlers.length,k=h[m];k&&p!=!k.handlers.length&&(g.removeEventListener(m,this.handleEvent),k=null),k||g.addEventListener(m,this.handleEvent,{passive:p})}for(let m in h)m!="scroll"&&!u[m]&&g.removeEventListener(m,this.handleEvent);this.handlers=u}keydown(s){if(this.lastKeyCode=s.keyCode,this.lastKeyTime=Date.now(),s.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&s.keyCode!=27&&T6t.indexOf(s.keyCode)<0&&(this.tabFocusMode=-1),Xi.android&&Xi.chrome&&!s.synthetic&&(s.keyCode==13||s.keyCode==8))return this.view.observer.delayAndroidKey(s.key,s.keyCode),!0;let u;return Xi.ios&&!s.synthetic&&!s.altKey&&!s.metaKey&&((u=j6t.find(h=>h.keyCode==s.keyCode))&&!s.ctrlKey||Jgn.indexOf(s.key)>-1&&s.ctrlKey&&!s.shiftKey)?(this.pendingIOSKey=u||s,setTimeout(()=>this.flushIOSKey(),250),!0):(s.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(s){let u=this.pendingIOSKey;return!u||u.key=="Enter"&&s&&s.from<s.to&&/^\S+$/.test(s.insert.toString())?!1:(this.pendingIOSKey=void 0,FI(this.view.contentDOM,u.key,u.keyCode,u instanceof KeyboardEvent?u:void 0))}ignoreDuringComposition(s){return!/^key/.test(s.type)||s.synthetic?!1:this.composing>0?!0:Xi.safari&&!Xi.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1}startMouseSelection(s){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=s}update(s){this.view.observer.update(s),this.mouseSelection&&this.mouseSelection.update(s),this.draggedContent&&s.docChanged&&(this.draggedContent=this.draggedContent.map(s.changes)),s.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function O3t(l,s){return(u,h)=>{try{return s.call(l,h,u)}catch(g){yp(u.state,g)}}}function Ugn(l){let s=Object.create(null);function u(h){return s[h]||(s[h]={observers:[],handlers:[]})}for(let h of l){let g=h.spec,m=g&&g.plugin.domEventHandlers,p=g&&g.plugin.domEventObservers;if(m)for(let k in m){let S=m[k];S&&u(k).handlers.push(O3t(h.value,S))}if(p)for(let k in p){let S=p[k];S&&u(k).observers.push(O3t(h.value,S))}}for(let h in Ny)u(h).handlers.push(Ny[h]);for(let h in Op)u(h).observers.push(Op[h]);return s}const j6t=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Jgn="dthko",T6t=[16,17,18,20,91,92,224,225],wfe=6;function vfe(l){return Math.max(0,l)*.7+8}function Vgn(l,s){return Math.max(Math.abs(l.clientX-s.clientX),Math.abs(l.clientY-s.clientY))}class Xgn{constructor(s,u,h,g){this.view=s,this.startEvent=u,this.style=h,this.mustSelect=g,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=u,this.scrollParents=XOt(s.contentDOM),this.atoms=s.state.facet(eW).map(p=>p(s));let m=s.contentDOM.ownerDocument;m.addEventListener("mousemove",this.move=this.move.bind(this)),m.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=u.shiftKey,this.multiple=s.state.facet(Bc.allowMultipleSelections)&&Wgn(s,u),this.dragging=Ygn(s,u)&&M6t(u)==1?null:!1}start(s){this.dragging===!1&&this.select(s)}move(s){if(s.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Vgn(this.startEvent,s)<10)return;this.select(this.lastEvent=s);let u=0,h=0,g=0,m=0,p=this.view.win.innerWidth,k=this.view.win.innerHeight;this.scrollParents.x&&({left:g,right:p}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:m,bottom:k}=this.scrollParents.y.getBoundingClientRect());let S=WAe(this.view);s.clientX-S.left<=g+wfe?u=-vfe(g-s.clientX):s.clientX+S.right>=p-wfe&&(u=vfe(s.clientX-p)),s.clientY-S.top<=m+wfe?h=-vfe(m-s.clientY):s.clientY+S.bottom>=k-wfe&&(h=vfe(s.clientY-k)),this.setScrollSpeed(u,h)}up(s){this.dragging==null&&this.select(this.lastEvent),this.dragging||s.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let s=this.view.contentDOM.ownerDocument;s.removeEventListener("mousemove",this.move),s.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(s,u){this.scrollSpeed={x:s,y:u},s||u?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:s,y:u}=this.scrollSpeed;s&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=s,s=0),u&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=u,u=0),(s||u)&&this.view.win.scrollBy(s,u),this.dragging===!1&&this.select(this.lastEvent)}select(s){let{view:u}=this,h=x6t(this.atoms,this.style.get(s,this.extend,this.multiple));(this.mustSelect||!h.eq(u.state.selection,this.dragging===!1))&&this.view.dispatch({selection:h,userEvent:"select.pointer"}),this.mustSelect=!1}update(s){s.transactions.some(u=>u.isUserEvent("input.type"))?this.destroy():this.style.update(s)&&setTimeout(()=>this.select(this.lastEvent),20)}}function Wgn(l,s){let u=l.state.facet(s6t);return u.length?u[0](s):Xi.mac?s.metaKey:s.ctrlKey}function Kgn(l,s){let u=l.state.facet(o6t);return u.length?u[0](s):Xi.mac?!s.altKey:!s.ctrlKey}function Ygn(l,s){let{main:u}=l.state.selection;if(u.empty)return!1;let h=TX(l.root);if(!h||h.rangeCount==0)return!0;let g=h.getRangeAt(0).getClientRects();for(let m=0;m<g.length;m++){let p=g[m];if(p.left<=s.clientX&&p.right>=s.clientX&&p.top<=s.clientY&&p.bottom>=s.clientY)return!0}return!1}function Zgn(l,s){if(!s.bubbles)return!0;if(s.defaultPrevented)return!1;for(let u=s.target,h;u!=l.contentDOM;u=u.parentNode)if(!u||u.nodeType==11||(h=sf.get(u))&&h.isWidget()&&!h.isHidden&&h.widget.ignoreEvent(s))return!1;return!0}const Ny=Object.create(null),Op=Object.create(null),E6t=Xi.ie&&Xi.ie_version<15||Xi.ios&&Xi.webkit_version<604;function e0n(l){let s=l.dom.parentNode;if(!s)return;let u=s.appendChild(document.createElement("textarea"));u.style.cssText="position: fixed; left: -10000px; top: 10px",u.focus(),setTimeout(()=>{l.focus(),u.remove(),C6t(l,u.value)},50)}function vde(l,s,u){for(let h of l.facet(s))u=h(u,l);return u}function C6t(l,s){s=vde(l.state,UAe,s);let{state:u}=l,h,g=1,m=u.toText(s),p=m.lines==u.selection.ranges.length;if(zMe!=null&&u.selection.ranges.every(S=>S.empty)&&zMe==m.toString()){let S=-1;h=u.changeByRange(C=>{let N=u.doc.lineAt(C.from);if(N.from==S)return{range:C};S=N.from;let _=u.toText((p?m.line(g++).text:s)+u.lineBreak);return{changes:{from:N.from,insert:_},range:jn.cursor(C.from+_.length)}})}else p?h=u.changeByRange(S=>{let C=m.line(g++);return{changes:{from:S.from,to:S.to,insert:C.text},range:jn.cursor(S.from+C.length)}}):h=u.replaceSelection(m);l.dispatch(h,{userEvent:"input.paste",scrollIntoView:!0})}Op.scroll=l=>{l.inputState.lastScrollTop=l.scrollDOM.scrollTop,l.inputState.lastScrollLeft=l.scrollDOM.scrollLeft};Op.wheel=Op.mousewheel=l=>{l.inputState.lastWheelEvent=Date.now()};Ny.keydown=(l,s)=>(l.inputState.setSelectionOrigin("select"),s.keyCode==27&&l.inputState.tabFocusMode!=0&&(l.inputState.tabFocusMode=Date.now()+2e3),!1);Op.touchstart=(l,s)=>{l.inputState.lastTouchTime=Date.now(),l.inputState.setSelectionOrigin("select.pointer")};Op.touchmove=l=>{l.inputState.setSelectionOrigin("select.pointer")};Ny.mousedown=(l,s)=>{if(l.observer.flush(),l.inputState.lastTouchTime>Date.now()-2e3)return!1;let u=null;for(let h of l.state.facet(c6t))if(u=h(l,s),u)break;if(!u&&s.button==0&&(u=n0n(l,s)),u){let h=!l.hasFocus;l.inputState.startMouseSelection(new Xgn(l,s,u,h)),h&&l.observer.ignore(()=>{WOt(l.contentDOM);let m=l.root.activeElement;m&&!m.contains(l.contentDOM)&&m.blur()});let g=l.inputState.mouseSelection;if(g)return g.start(s),g.dragging===!1}else l.inputState.setSelectionOrigin("select.pointer");return!1};function S3t(l,s,u,h){if(h==1)return jn.cursor(s,u);if(h==2)return _gn(l.state,s,u);{let g=l.docView.lineAt(s,u),m=l.state.doc.lineAt(g?g.posAtEnd:s),p=g?g.posAtStart:m.from,k=g?g.posAtEnd:m.to;return k<l.state.doc.length&&k==m.to&&k++,jn.range(p,k)}}const t0n=Xi.ie&&Xi.ie_version<=11;let j3t=null,T3t=0,E3t=0;function M6t(l){if(!t0n)return l.detail;let s=j3t,u=E3t;return j3t=l,E3t=Date.now(),T3t=!s||u>Date.now()-400&&Math.abs(s.clientX-l.clientX)<2&&Math.abs(s.clientY-l.clientY)<2?(T3t+1)%3:1}function n0n(l,s){let u=l.posAndSideAtCoords({x:s.clientX,y:s.clientY},!1),h=M6t(s),g=l.state.selection;return{update(m){m.docChanged&&(u.pos=m.changes.mapPos(u.pos),g=g.map(m.changes))},get(m,p,k){let S=l.posAndSideAtCoords({x:m.clientX,y:m.clientY},!1),C,N=S3t(l,S.pos,S.assoc,h);if(u.pos!=S.pos&&!p){let _=S3t(l,u.pos,u.assoc,h),P=Math.min(_.from,N.from),R=Math.max(_.to,N.to);N=P<N.from?jn.range(P,R):jn.range(R,P)}return p?g.replaceRange(g.main.extend(N.from,N.to)):k&&h==1&&g.ranges.length>1&&(C=i0n(g,S.pos))?C:k?g.addRange(N):jn.create([N])}}}function i0n(l,s){for(let u=0;u<l.ranges.length;u++){let{from:h,to:g}=l.ranges[u];if(h<=s&&g>=s)return jn.create(l.ranges.slice(0,u).concat(l.ranges.slice(u+1)),l.mainIndex==u?0:l.mainIndex-(l.mainIndex>u?1:0))}return null}Ny.dragstart=(l,s)=>{let{selection:{main:u}}=l.state;if(s.target.draggable){let g=l.docView.tile.nearest(s.target);if(g&&g.isWidget()){let m=g.posAtStart,p=m+g.length;(m>=u.to||p<=u.from)&&(u=jn.range(m,p))}}let{inputState:h}=l;return h.mouseSelection&&(h.mouseSelection.dragging=!0),h.draggedContent=u,s.dataTransfer&&(s.dataTransfer.setData("Text",vde(l.state,JAe,l.state.sliceDoc(u.from,u.to))),s.dataTransfer.effectAllowed="copyMove"),!1};Ny.dragend=l=>(l.inputState.draggedContent=null,!1);function C3t(l,s,u,h){if(u=vde(l.state,UAe,u),!u)return;let g=l.posAtCoords({x:s.clientX,y:s.clientY},!1),{draggedContent:m}=l.inputState,p=h&&m&&Kgn(l,s)?{from:m.from,to:m.to}:null,k={from:g,insert:u},S=l.state.changes(p?[p,k]:k);l.focus(),l.dispatch({changes:S,selection:{anchor:S.mapPos(g,-1),head:S.mapPos(g,1)},userEvent:p?"move.drop":"input.drop"}),l.inputState.draggedContent=null}Ny.drop=(l,s)=>{if(!s.dataTransfer)return!1;if(l.state.readOnly)return!0;let u=s.dataTransfer.files;if(u&&u.length){let h=Array(u.length),g=0,m=()=>{++g==u.length&&C3t(l,s,h.filter(p=>p!=null).join(l.state.lineBreak),!1)};for(let p=0;p<u.length;p++){let k=new FileReader;k.onerror=m,k.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(k.result)||(h[p]=k.result),m()},k.readAsText(u[p])}return!0}else{let h=s.dataTransfer.getData("Text");if(h)return C3t(l,s,h,!0),!0}return!1};Ny.paste=(l,s)=>{if(l.state.readOnly)return!0;l.observer.flush();let u=E6t?null:s.clipboardData;return u?(C6t(l,u.getData("text/plain")||u.getData("text/uri-list")),!0):(e0n(l),!1)};function r0n(l,s){let u=l.dom.parentNode;if(!u)return;let h=u.appendChild(document.createElement("textarea"));h.style.cssText="position: fixed; left: -10000px; top: 10px",h.value=s,h.focus(),h.selectionEnd=s.length,h.selectionStart=0,setTimeout(()=>{h.remove(),l.focus()},50)}function s0n(l){let s=[],u=[],h=!1;for(let g of l.selection.ranges)g.empty||(s.push(l.sliceDoc(g.from,g.to)),u.push(g));if(!s.length){let g=-1;for(let{from:m}of l.selection.ranges){let p=l.doc.lineAt(m);p.number>g&&(s.push(p.text),u.push({from:p.from,to:Math.min(l.doc.length,p.to+1)})),g=p.number}h=!0}return{text:vde(l,JAe,s.join(l.lineBreak)),ranges:u,linewise:h}}let zMe=null;Ny.copy=Ny.cut=(l,s)=>{if(!sX(l.contentDOM,l.observer.selectionRange))return!1;let{text:u,ranges:h,linewise:g}=s0n(l.state);if(!u&&!g)return!1;zMe=g?u:null,s.type=="cut"&&!l.state.readOnly&&l.dispatch({changes:h,scrollIntoView:!0,userEvent:"delete.cut"});let m=E6t?null:s.clipboardData;return m?(m.clearData(),m.setData("text/plain",u),!0):(r0n(l,u),!1)};const A6t=xO.define();function N6t(l,s){let u=[];for(let h of l.facet(a6t)){let g=h(l,s);g&&u.push(g)}return u.length?l.update({effects:u,annotations:A6t.of(!0)}):null}function _6t(l){setTimeout(()=>{let s=l.hasFocus;if(s!=l.inputState.notifiedFocused){let u=N6t(l.state,s);u?l.dispatch(u):l.update([])}},10)}Op.focus=l=>{l.inputState.lastFocusTime=Date.now(),!l.scrollDOM.scrollTop&&(l.inputState.lastScrollTop||l.inputState.lastScrollLeft)&&(l.scrollDOM.scrollTop=l.inputState.lastScrollTop,l.scrollDOM.scrollLeft=l.inputState.lastScrollLeft),_6t(l)};Op.blur=l=>{l.observer.clearSelectionRange(),_6t(l)};Op.compositionstart=Op.compositionupdate=l=>{l.observer.editContext||(l.inputState.compositionFirstChange==null&&(l.inputState.compositionFirstChange=!0),l.inputState.composing<0&&(l.inputState.composing=0))};Op.compositionend=l=>{l.observer.editContext||(l.inputState.composing=-1,l.inputState.compositionEndedAt=Date.now(),l.inputState.compositionPendingKey=!0,l.inputState.compositionPendingChange=l.observer.pendingRecords().length>0,l.inputState.compositionFirstChange=null,Xi.chrome&&Xi.android?l.observer.flushSoon():l.inputState.compositionPendingChange?Promise.resolve().then(()=>l.observer.flush()):setTimeout(()=>{l.inputState.composing<0&&l.docView.hasComposition&&l.update([])},50))};Op.contextmenu=l=>{l.inputState.lastContextMenu=Date.now()};Ny.beforeinput=(l,s)=>{var u,h;if((s.inputType=="insertText"||s.inputType=="insertCompositionText")&&(l.inputState.insertingText=s.data,l.inputState.insertingTextAt=Date.now()),s.inputType=="insertReplacementText"&&l.observer.editContext){let m=(u=s.dataTransfer)===null||u===void 0?void 0:u.getData("text/plain"),p=s.getTargetRanges();if(m&&p.length){let k=p[0],S=l.posAtDOM(k.startContainer,k.startOffset),C=l.posAtDOM(k.endContainer,k.endOffset);return KAe(l,{from:S,to:C,insert:l.state.toText(m)},null),!0}}let g;if(Xi.chrome&&Xi.android&&(g=j6t.find(m=>m.inputType==s.inputType))&&(l.observer.delayAndroidKey(g.key,g.keyCode),g.key=="Backspace"||g.key=="Delete")){let m=((h=window.visualViewport)===null||h===void 0?void 0:h.height)||0;setTimeout(()=>{var p;(((p=window.visualViewport)===null||p===void 0?void 0:p.height)||0)>m+10&&l.hasFocus&&(l.contentDOM.blur(),l.focus())},100)}return Xi.ios&&s.inputType=="deleteContentForward"&&l.observer.flushSoon(),Xi.safari&&s.inputType=="insertText"&&l.inputState.composing>=0&&setTimeout(()=>Op.compositionend(l,s),20),!1};const M3t=new Set;function o0n(l){M3t.has(l)||(M3t.add(l),l.addEventListener("copy",()=>{}),l.addEventListener("cut",()=>{}))}const A3t=["pre-wrap","normal","pre-line","break-spaces"];let iR=!1;function N3t(){iR=!1}class c0n{constructor(s){this.lineWrapping=s,this.doc=fc.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(s,u){let h=this.doc.lineAt(u).number-this.doc.lineAt(s).number+1;return this.lineWrapping&&(h+=Math.max(0,Math.ceil((u-s-h*this.lineLength*.5)/this.lineLength))),this.lineHeight*h}heightForLine(s){return this.lineWrapping?(1+Math.max(0,Math.ceil((s-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(s){return this.doc=s,this}mustRefreshForWrapping(s){return A3t.indexOf(s)>-1!=this.lineWrapping}mustRefreshForHeights(s){let u=!1;for(let h=0;h<s.length;h++){let g=s[h];g<0?h++:this.heightSamples[Math.floor(g*10)]||(u=!0,this.heightSamples[Math.floor(g*10)]=!0)}return u}refresh(s,u,h,g,m,p){let k=A3t.indexOf(s)>-1,S=Math.abs(u-this.lineHeight)>.3||this.lineWrapping!=k||Math.abs(h-this.charWidth)>.1;if(this.lineWrapping=k,this.lineHeight=u,this.charWidth=h,this.textHeight=g,this.lineLength=m,S){this.heightSamples={};for(let C=0;C<p.length;C++){let N=p[C];N<0?C++:this.heightSamples[Math.floor(N*10)]=!0}}return S}}class l0n{constructor(s,u){this.from=s,this.heights=u,this.index=0}get more(){return this.index<this.heights.length}}class Oy{constructor(s,u,h,g,m){this.from=s,this.length=u,this.top=h,this.height=g,this._content=m}get type(){return typeof this._content=="number"?o1.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof FM?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(s){let u=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(s._content)?s._content:[s]);return new Oy(this.from,this.length+s.length,this.top,this.height+s.height,u)}}var hu=(function(l){return l[l.ByPos=0]="ByPos",l[l.ByHeight=1]="ByHeight",l[l.ByPosNoHeight=2]="ByPosNoHeight",l})(hu||(hu={}));const the=.001;class u0{constructor(s,u,h=2){this.length=s,this.height=u,this.flags=h}get outdated(){return(this.flags&2)>0}set outdated(s){this.flags=(s?2:0)|this.flags&-3}setHeight(s){this.height!=s&&(Math.abs(this.height-s)>the&&(iR=!0),this.height=s)}replace(s,u,h){return u0.of(h)}decomposeLeft(s,u){u.push(this)}decomposeRight(s,u){u.push(this)}applyChanges(s,u,h,g){let m=this,p=h.doc;for(let k=g.length-1;k>=0;k--){let{fromA:S,toA:C,fromB:N,toB:_}=g[k],P=m.lineAt(S,hu.ByPosNoHeight,h.setDoc(u),0,0),R=P.to>=C?P:m.lineAt(C,hu.ByPosNoHeight,h,0,0);for(_+=R.to-C,C=R.to;k>0&&P.from<=g[k-1].toA;)S=g[k-1].fromA,N=g[k-1].fromB,k--,S<P.from&&(P=m.lineAt(S,hu.ByPosNoHeight,h,0,0));N+=P.from-S,S=P.from;let q=YAe.build(h.setDoc(p),s,N,_);m=_he(m,m.replace(S,C,q))}return m.updateHeight(h,0)}static empty(){return new Wb(0,0,0)}static of(s){if(s.length==1)return s[0];let u=0,h=s.length,g=0,m=0;for(;;)if(u==h)if(g>m*2){let k=s[u-1];k.break?s.splice(--u,1,k.left,null,k.right):s.splice(--u,1,k.left,k.right),h+=1+k.break,g-=k.size}else if(m>g*2){let k=s[h];k.break?s.splice(h,1,k.left,null,k.right):s.splice(h,1,k.left,k.right),h+=2+k.break,m-=k.size}else break;else if(g<m){let k=s[u++];k&&(g+=k.size)}else{let k=s[--h];k&&(m+=k.size)}let p=0;return s[u-1]==null?(p=1,u--):s[u]==null&&(p=1,h++),new a0n(u0.of(s.slice(0,u)),p,u0.of(s.slice(h)))}}function _he(l,s){return l==s?l:(l.constructor!=s.constructor&&(iR=!0),s)}u0.prototype.size=1;const u0n=Fr.replace({});class D6t extends u0{constructor(s,u,h){super(s,u),this.deco=h,this.spaceAbove=0}mainBlock(s,u){return new Oy(u,this.length,s+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(s,u,h,g){return this.spaceAbove&&s<h+this.spaceAbove?new Oy(g,0,h,this.spaceAbove,u0n):this.mainBlock(h,g)}lineAt(s,u,h,g,m){let p=this.mainBlock(g,m);return this.spaceAbove?this.blockAt(0,h,g,m).join(p):p}forEachLine(s,u,h,g,m,p){s<=m+this.length&&u>=m&&p(this.lineAt(0,hu.ByPos,h,g,m))}setMeasuredHeight(s){let u=s.heights[s.index++];u<0?(this.spaceAbove=-u,u=s.heights[s.index++]):this.spaceAbove=0,this.setHeight(u)}updateHeight(s,u=0,h=!1,g){return g&&g.from<=u&&g.more&&this.setMeasuredHeight(g),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Wb extends D6t{constructor(s,u,h){super(s,u,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=h}mainBlock(s,u){return new Oy(u,this.length,s+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(s,u,h){let g=h[0];return h.length==1&&(g instanceof Wb||g instanceof i1&&g.flags&4)&&Math.abs(this.length-g.length)<10?(g instanceof i1?g=new Wb(g.length,this.height,this.spaceAbove):g.height=this.height,this.outdated||(g.outdated=!1),g):u0.of(h)}updateHeight(s,u=0,h=!1,g){return g&&g.from<=u&&g.more?this.setMeasuredHeight(g):(h||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,s.heightForLine(this.length-this.collapsed))+this.breaks*s.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class i1 extends u0{constructor(s){super(s,0)}heightMetrics(s,u){let h=s.doc.lineAt(u).number,g=s.doc.lineAt(u+this.length).number,m=g-h+1,p,k=0;if(s.lineWrapping){let S=Math.min(this.height,s.lineHeight*m);p=S/m,this.length>m+1&&(k=(this.height-S)/(this.length-m-1))}else p=this.height/m;return{firstLine:h,lastLine:g,perLine:p,perChar:k}}blockAt(s,u,h,g){let{firstLine:m,lastLine:p,perLine:k,perChar:S}=this.heightMetrics(u,g);if(u.lineWrapping){let C=g+(s<u.lineHeight?0:Math.round(Math.max(0,Math.min(1,(s-h)/this.height))*this.length)),N=u.doc.lineAt(C),_=k+N.length*S,P=Math.max(h,s-_/2);return new Oy(N.from,N.length,P,_,0)}else{let C=Math.max(0,Math.min(p-m,Math.floor((s-h)/k))),{from:N,length:_}=u.doc.line(m+C);return new Oy(N,_,h+k*C,k,0)}}lineAt(s,u,h,g,m){if(u==hu.ByHeight)return this.blockAt(s,h,g,m);if(u==hu.ByPosNoHeight){let{from:R,to:q}=h.doc.lineAt(s);return new Oy(R,q-R,0,0,0)}let{firstLine:p,perLine:k,perChar:S}=this.heightMetrics(h,m),C=h.doc.lineAt(s),N=k+C.length*S,_=C.number-p,P=g+k*_+S*(C.from-m-_);return new Oy(C.from,C.length,Math.max(g,Math.min(P,g+this.height-N)),N,0)}forEachLine(s,u,h,g,m,p){s=Math.max(s,m),u=Math.min(u,m+this.length);let{firstLine:k,perLine:S,perChar:C}=this.heightMetrics(h,m);for(let N=s,_=g;N<=u;){let P=h.doc.lineAt(N);if(N==s){let q=P.number-k;_+=S*q+C*(s-m-q)}let R=S+C*P.length;p(new Oy(P.from,P.length,_,R,0)),_+=R,N=P.to+1}}replace(s,u,h){let g=this.length-u;if(g>0){let m=h[h.length-1];m instanceof i1?h[h.length-1]=new i1(m.length+g):h.push(null,new i1(g-1))}if(s>0){let m=h[0];m instanceof i1?h[0]=new i1(s+m.length):h.unshift(new i1(s-1),null)}return u0.of(h)}decomposeLeft(s,u){u.push(new i1(s-1),null)}decomposeRight(s,u){u.push(null,new i1(this.length-s-1))}updateHeight(s,u=0,h=!1,g){let m=u+this.length;if(g&&g.from<=u+this.length&&g.more){let p=[],k=Math.max(u,g.from),S=-1;for(g.from>u&&p.push(new i1(g.from-u-1).updateHeight(s,u));k<=m&&g.more;){let N=s.doc.lineAt(k).length;p.length&&p.push(null);let _=g.heights[g.index++],P=0;_<0&&(P=-_,_=g.heights[g.index++]),S==-1?S=_:Math.abs(_-S)>=the&&(S=-2);let R=new Wb(N,_,P);R.outdated=!1,p.push(R),k+=N+1}k<=m&&p.push(null,new i1(m-k).updateHeight(s,k));let C=u0.of(p);return(S<0||Math.abs(C.height-this.height)>=the||Math.abs(S-this.heightMetrics(s,u).perLine)>=the)&&(iR=!0),_he(this,C)}else(h||this.outdated)&&(this.setHeight(s.heightForGap(u,u+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class a0n extends u0{constructor(s,u,h){super(s.length+u+h.length,s.height+h.height,u|(s.outdated||h.outdated?2:0)),this.left=s,this.right=h,this.size=s.size+h.size}get break(){return this.flags&1}blockAt(s,u,h,g){let m=h+this.left.height;return s<m?this.left.blockAt(s,u,h,g):this.right.blockAt(s,u,m,g+this.left.length+this.break)}lineAt(s,u,h,g,m){let p=g+this.left.height,k=m+this.left.length+this.break,S=u==hu.ByHeight?s<p:s<k,C=S?this.left.lineAt(s,u,h,g,m):this.right.lineAt(s,u,h,p,k);if(this.break||(S?C.to<k:C.from>k))return C;let N=u==hu.ByPosNoHeight?hu.ByPosNoHeight:hu.ByPos;return S?C.join(this.right.lineAt(k,N,h,p,k)):this.left.lineAt(k,N,h,g,m).join(C)}forEachLine(s,u,h,g,m,p){let k=g+this.left.height,S=m+this.left.length+this.break;if(this.break)s<S&&this.left.forEachLine(s,u,h,g,m,p),u>=S&&this.right.forEachLine(s,u,h,k,S,p);else{let C=this.lineAt(S,hu.ByPos,h,g,m);s<C.from&&this.left.forEachLine(s,C.from-1,h,g,m,p),C.to>=s&&C.from<=u&&p(C),u>C.to&&this.right.forEachLine(C.to+1,u,h,k,S,p)}}replace(s,u,h){let g=this.left.length+this.break;if(u<g)return this.balanced(this.left.replace(s,u,h),this.right);if(s>this.left.length)return this.balanced(this.left,this.right.replace(s-g,u-g,h));let m=[];s>0&&this.decomposeLeft(s,m);let p=m.length;for(let k of h)m.push(k);if(s>0&&_3t(m,p-1),u<this.length){let k=m.length;this.decomposeRight(u,m),_3t(m,k)}return u0.of(m)}decomposeLeft(s,u){let h=this.left.length;if(s<=h)return this.left.decomposeLeft(s,u);u.push(this.left),this.break&&(h++,s>=h&&u.push(null)),s>h&&this.right.decomposeLeft(s-h,u)}decomposeRight(s,u){let h=this.left.length,g=h+this.break;if(s>=g)return this.right.decomposeRight(s-g,u);s<h&&this.left.decomposeRight(s,u),this.break&&s<g&&u.push(null),u.push(this.right)}balanced(s,u){return s.size>2*u.size||u.size>2*s.size?u0.of(this.break?[s,null,u]:[s,u]):(this.left=_he(this.left,s),this.right=_he(this.right,u),this.setHeight(s.height+u.height),this.outdated=s.outdated||u.outdated,this.size=s.size+u.size,this.length=s.length+this.break+u.length,this)}updateHeight(s,u=0,h=!1,g){let{left:m,right:p}=this,k=u+m.length+this.break,S=null;return g&&g.from<=u+m.length&&g.more?S=m=m.updateHeight(s,u,h,g):m.updateHeight(s,u,h),g&&g.from<=k+p.length&&g.more?S=p=p.updateHeight(s,k,h,g):p.updateHeight(s,k,h),S?this.balanced(m,p):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function _3t(l,s){let u,h;l[s]==null&&(u=l[s-1])instanceof i1&&(h=l[s+1])instanceof i1&&l.splice(s-1,3,new i1(u.length+1+h.length))}const f0n=5;class YAe{constructor(s,u){this.pos=s,this.oracle=u,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=s}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(s,u){if(this.lineStart>-1){let h=Math.min(u,this.lineEnd),g=this.nodes[this.nodes.length-1];g instanceof Wb?g.length+=h-this.pos:(h>this.pos||!this.isCovered)&&this.nodes.push(new Wb(h-this.pos,-1,0)),this.writtenTo=h,u>h&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=u}point(s,u,h){if(s<u||h.heightRelevant){let g=h.widget?h.widget.estimatedHeight:0,m=h.widget?h.widget.lineBreaks:0;g<0&&(g=this.oracle.lineHeight);let p=u-s;h.block?this.addBlock(new D6t(p,g,h)):(p||m||g>=f0n)&&this.addLineDeco(g,m,p)}else u>s&&this.span(s,u);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:s,to:u}=this.oracle.doc.lineAt(this.pos);this.lineStart=s,this.lineEnd=u,this.writtenTo<s&&((this.writtenTo<s-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,s-1)),this.nodes.push(null)),this.pos>s&&this.nodes.push(new Wb(this.pos-s,-1,0)),this.writtenTo=this.pos}blankContent(s,u){let h=new i1(u-s);return this.oracle.doc.lineAt(s).to==u&&(h.flags|=4),h}ensureLine(){this.enterLine();let s=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(s instanceof Wb)return s;let u=new Wb(0,-1,0);return this.nodes.push(u),u}addBlock(s){this.enterLine();let u=s.deco;u&&u.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(s),this.writtenTo=this.pos=this.pos+s.length,u&&u.endSide>0&&(this.covering=s)}addLineDeco(s,u,h){let g=this.ensureLine();g.length+=h,g.collapsed+=h,g.widgetHeight=Math.max(g.widgetHeight,s),g.breaks+=u,this.writtenTo=this.pos=this.pos+h}finish(s){let u=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(u instanceof Wb)&&!this.isCovered?this.nodes.push(new Wb(0,-1,0)):(this.writtenTo<this.pos||u==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let h=s;for(let g of this.nodes)g instanceof Wb&&g.updateHeight(this.oracle,h),h+=g?g.length:1;return this.nodes}static build(s,u,h,g){let m=new YAe(h,s);return yo.spans(u,h,g,m,0),m.finish(h)}}function h0n(l,s,u){let h=new d0n;return yo.compare(l,s,u,h,0),h.changes}class d0n{constructor(){this.changes=[]}compareRange(){}comparePoint(s,u,h,g){(s<u||h&&h.heightRelevant||g&&g.heightRelevant)&&zI(s,u,this.changes,5)}}function g0n(l,s){let u=l.getBoundingClientRect(),h=l.ownerDocument,g=h.defaultView||window,m=Math.max(0,u.left),p=Math.min(g.innerWidth,u.right),k=Math.max(0,u.top),S=Math.min(g.innerHeight,u.bottom);for(let C=l.parentNode;C&&C!=h.body;)if(C.nodeType==1){let N=C,_=window.getComputedStyle(N);if((N.scrollHeight>N.clientHeight||N.scrollWidth>N.clientWidth)&&_.overflow!="visible"){let P=N.getBoundingClientRect();m=Math.max(m,P.left),p=Math.min(p,P.right),k=Math.max(k,P.top),S=Math.min(C==l.parentNode?g.innerHeight:S,P.bottom)}C=_.position=="absolute"||_.position=="fixed"?N.offsetParent:N.parentNode}else if(C.nodeType==11)C=C.host;else break;return{left:m-u.left,right:Math.max(m,p)-u.left,top:k-(u.top+s),bottom:Math.max(k,S)-(u.top+s)}}function p0n(l){let s=l.getBoundingClientRect(),u=l.ownerDocument.defaultView||window;return s.left<u.innerWidth&&s.right>0&&s.top<u.innerHeight&&s.bottom>0}function b0n(l,s){let u=l.getBoundingClientRect();return{left:0,right:u.right-u.left,top:s,bottom:u.bottom-(u.top+s)}}class gCe{constructor(s,u,h,g){this.from=s,this.to=u,this.size=h,this.displaySize=g}static same(s,u){if(s.length!=u.length)return!1;for(let h=0;h<s.length;h++){let g=s[h],m=u[h];if(g.from!=m.from||g.to!=m.to||g.size!=m.size)return!1}return!0}draw(s,u){return Fr.replace({widget:new m0n(this.displaySize*(u?s.scaleY:s.scaleX),u)}).range(this.from,this.to)}}class m0n extends kO{constructor(s,u){super(),this.size=s,this.vertical=u}eq(s){return s.size==this.size&&s.vertical==this.vertical}toDOM(){let s=document.createElement("div");return this.vertical?s.style.height=this.size+"px":(s.style.width=this.size+"px",s.style.height="2px",s.style.display="inline-block"),s}get estimatedHeight(){return this.vertical?this.size:-1}}class D3t{constructor(s,u){this.view=s,this.state=u,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scaleX=1,this.scaleY=1,this.scrollOffset=0,this.scrolledToBottom=!1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=L3t,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Zl.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let h=u.facet(VAe).some(g=>typeof g!="function"&&g.class=="cm-lineWrapping");this.heightOracle=new c0n(h),this.stateDeco=P3t(u),this.heightMap=u0.empty().applyChanges(this.stateDeco,fc.empty,this.heightOracle.setDoc(u.doc),[new Vw(0,0,0,u.doc.length)]);for(let g=0;g<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());g++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Fr.set(this.lineGaps.map(g=>g.draw(this,!1))),this.scrollParent=s.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let s=[this.viewport],{main:u}=this.state.selection;for(let h=0;h<=1;h++){let g=h?u.head:u.anchor;if(!s.some(({from:m,to:p})=>g>=m&&g<=p)){let{from:m,to:p}=this.lineBlockAt(g);s.push(new yfe(m,p))}}return this.viewports=s.sort((h,g)=>h.from-g.from),this.updateScaler()}updateScaler(){let s=this.scaler;return this.scaler=this.heightMap.height<=7e6?L3t:new ZAe(this.heightOracle,this.heightMap,this.viewports),s.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,s=>{this.viewportLines.push(ZV(s,this.scaler))})}update(s,u=null){this.state=s.state;let h=this.stateDeco;this.stateDeco=P3t(this.state);let g=s.changedRanges,m=Vw.extendWithRanges(g,h0n(h,this.stateDeco,s?s.changes:Hh.empty(this.state.doc.length))),p=this.heightMap.height,k=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);N3t(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,s.startState.doc,this.heightOracle.setDoc(this.state.doc),m),(this.heightMap.height!=p||iR)&&(s.flags|=2),k?(this.scrollAnchorPos=s.changes.mapPos(k.from,-1),this.scrollAnchorHeight=k.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=p);let S=m.length?this.mapViewport(this.viewport,s.changes):this.viewport;(u&&(u.range.head<S.from||u.range.head>S.to)||!this.viewportIsAppropriate(S))&&(S=this.getViewport(0,u));let C=S.from!=this.viewport.from||S.to!=this.viewport.to;this.viewport=S,s.flags|=this.updateForViewport(),(C||!s.changes.empty||s.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,s.changes))),s.flags|=this.computeVisibleRanges(s.changes),u&&(this.scrollTarget=u),!this.mustEnforceCursorAssoc&&(s.selectionSet||s.focusChanged)&&s.view.lineWrapping&&s.state.selection.main.empty&&s.state.selection.main.assoc&&!s.state.facet(h6t)&&(this.mustEnforceCursorAssoc=!0)}measure(){let{view:s}=this,u=s.contentDOM,h=window.getComputedStyle(u),g=this.heightOracle,m=h.whiteSpace;this.defaultTextDirection=h.direction=="rtl"?Zl.RTL:Zl.LTR;let p=this.heightOracle.mustRefreshForWrapping(m)||this.mustMeasureContent==="refresh",k=u.getBoundingClientRect(),S=p||this.mustMeasureContent||this.contentDOMHeight!=k.height;this.contentDOMHeight=k.height,this.mustMeasureContent=!1;let C=0,N=0;if(k.width&&k.height){let{scaleX:oe,scaleY:se}=VOt(u,k);(oe>.005&&Math.abs(this.scaleX-oe)>.005||se>.005&&Math.abs(this.scaleY-se)>.005)&&(this.scaleX=oe,this.scaleY=se,C|=16,p=S=!0)}let _=(parseInt(h.paddingTop)||0)*this.scaleY,P=(parseInt(h.paddingBottom)||0)*this.scaleY;(this.paddingTop!=_||this.paddingBottom!=P)&&(this.paddingTop=_,this.paddingBottom=P,C|=18),this.editorWidth!=s.scrollDOM.clientWidth&&(g.lineWrapping&&(S=!0),this.editorWidth=s.scrollDOM.clientWidth,C|=16);let R=XOt(this.view.contentDOM,!1).y;R!=this.scrollParent&&(this.scrollParent=R,this.scrollAnchorHeight=-1,this.scrollOffset=0);let q=this.getScrollOffset();this.scrollOffset!=q&&(this.scrollAnchorHeight=-1,this.scrollOffset=q),this.scrolledToBottom=KOt(this.scrollParent||s.win);let F=(this.printing?b0n:g0n)(u,this.paddingTop),X=F.top-this.pixelViewport.top,J=F.bottom-this.pixelViewport.bottom;this.pixelViewport=F;let ee=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(ee!=this.inView&&(this.inView=ee,ee&&(S=!0)),!this.inView&&!this.scrollTarget&&!p0n(s.dom))return 0;let te=k.width;if((this.contentDOMWidth!=te||this.editorHeight!=s.scrollDOM.clientHeight)&&(this.contentDOMWidth=k.width,this.editorHeight=s.scrollDOM.clientHeight,C|=16),S){let oe=s.docView.measureVisibleLineHeights(this.viewport);if(g.mustRefreshForHeights(oe)&&(p=!0),p||g.lineWrapping&&Math.abs(te-this.contentDOMWidth)>g.charWidth){let{lineHeight:se,charWidth:ge,textHeight:Ne}=s.docView.measureTextSize();p=se>0&&g.refresh(m,se,ge,Ne,Math.max(5,te/ge),oe),p&&(s.docView.minWidth=0,C|=16)}X>0&&J>0?N=Math.max(X,J):X<0&&J<0&&(N=Math.min(X,J)),N3t();for(let se of this.viewports){let ge=se.from==this.viewport.from?oe:s.docView.measureVisibleLineHeights(se);this.heightMap=(p?u0.empty().applyChanges(this.stateDeco,fc.empty,this.heightOracle,[new Vw(0,0,0,s.state.doc.length)]):this.heightMap).updateHeight(g,0,p,new l0n(se.from,ge))}iR&&(C|=2)}let ie=!this.viewportIsAppropriate(this.viewport,N)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return ie&&(C&2&&(C|=this.updateScaler()),this.viewport=this.getViewport(N,this.scrollTarget),C|=this.updateForViewport()),(C&2||ie)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(p?[]:this.lineGaps,s)),C|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,s.docView.enforceCursorAssoc()),C}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(s,u){let h=.5-Math.max(-.5,Math.min(.5,s/1e3/2)),g=this.heightMap,m=this.heightOracle,{visibleTop:p,visibleBottom:k}=this,S=new yfe(g.lineAt(p-h*1e3,hu.ByHeight,m,0,0).from,g.lineAt(k+(1-h)*1e3,hu.ByHeight,m,0,0).to);if(u){let{head:C}=u.range;if(C<S.from||C>S.to){let N=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),_=g.lineAt(C,hu.ByPos,m,0,0),P;u.y=="center"?P=(_.top+_.bottom)/2-N/2:u.y=="start"||u.y=="nearest"&&C<S.from?P=_.top:P=_.bottom-N,S=new yfe(g.lineAt(P-1e3/2,hu.ByHeight,m,0,0).from,g.lineAt(P+N+1e3/2,hu.ByHeight,m,0,0).to)}}return S}mapViewport(s,u){let h=u.mapPos(s.from,-1),g=u.mapPos(s.to,1);return new yfe(this.heightMap.lineAt(h,hu.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(g,hu.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:s,to:u},h=0){if(!this.inView)return!0;let{top:g}=this.heightMap.lineAt(s,hu.ByPos,this.heightOracle,0,0),{bottom:m}=this.heightMap.lineAt(u,hu.ByPos,this.heightOracle,0,0),{visibleTop:p,visibleBottom:k}=this;return(s==0||g<=p-Math.max(10,Math.min(-h,250)))&&(u==this.state.doc.length||m>=k+Math.max(10,Math.min(h,250)))&&g>p-2*1e3&&m<k+2*1e3}mapLineGaps(s,u){if(!s.length||u.empty)return s;let h=[];for(let g of s)u.touchesRange(g.from,g.to)||h.push(new gCe(u.mapPos(g.from),u.mapPos(g.to),g.size,g.displaySize));return h}ensureLineGaps(s,u){let h=this.heightOracle.lineWrapping,g=h?1e4:2e3,m=g>>1,p=g<<1;if(this.defaultTextDirection!=Zl.LTR&&!h)return[];let k=[],S=(N,_,P,R)=>{if(_-N<m)return;let q=this.state.selection.main,F=[q.from];q.empty||F.push(q.to);for(let J of F)if(J>N&&J<_){S(N,J-10,P,R),S(J+10,_,P,R);return}let X=v0n(s,J=>J.from>=P.from&&J.to<=P.to&&Math.abs(J.from-N)<m&&Math.abs(J.to-_)<m&&!F.some(ee=>J.from<ee&&J.to>ee));if(!X){if(_<P.to&&u&&h&&u.visibleRanges.some(te=>te.from<=_&&te.to>=_)){let te=u.moveToLineBoundary(jn.cursor(_),!1,!0).head;te>N&&(_=te)}let J=this.gapSize(P,N,_,R),ee=h||J<2e6?J:2e6;X=new gCe(N,_,J,ee)}k.push(X)},C=N=>{if(N.length<p||N.type!=o1.Text)return;let _=w0n(N.from,N.to,this.stateDeco);if(_.total<p)return;let P=this.scrollTarget?this.scrollTarget.range.head:null,R,q;if(h){let F=g/this.heightOracle.lineLength*this.heightOracle.lineHeight,X,J;if(P!=null){let ee=kfe(_,P),te=((this.visibleBottom-this.visibleTop)/2+F)/N.height;X=ee-te,J=ee+te}else X=(this.visibleTop-N.top-F)/N.height,J=(this.visibleBottom-N.top+F)/N.height;R=xfe(_,X),q=xfe(_,J)}else{let F=_.total*this.heightOracle.charWidth,X=g*this.heightOracle.charWidth,J=0;if(F>2e6)for(let se of s)se.from>=N.from&&se.from<N.to&&se.size!=se.displaySize&&se.from*this.heightOracle.charWidth+J<this.pixelViewport.left&&(J=se.size-se.displaySize);let ee=this.pixelViewport.left+J,te=this.pixelViewport.right+J,ie,oe;if(P!=null){let se=kfe(_,P),ge=((te-ee)/2+X)/F;ie=se-ge,oe=se+ge}else ie=(ee-X)/F,oe=(te+X)/F;R=xfe(_,ie),q=xfe(_,oe)}R>N.from&&S(N.from,R,N,_),q<N.to&&S(q,N.to,N,_)};for(let N of this.viewportLines)Array.isArray(N.type)?N.type.forEach(C):C(N);return k}gapSize(s,u,h,g){let m=kfe(g,h)-kfe(g,u);return this.heightOracle.lineWrapping?s.height*m:g.total*this.heightOracle.charWidth*m}updateLineGaps(s){gCe.same(s,this.lineGaps)||(this.lineGaps=s,this.lineGapDeco=Fr.set(s.map(u=>u.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(s){let u=this.stateDeco;this.lineGaps.length&&(u=u.concat(this.lineGapDeco));let h=[];yo.spans(u,this.viewport.from,this.viewport.to,{span(m,p){h.push({from:m,to:p})},point(){}},20);let g=0;if(h.length!=this.visibleRanges.length)g=12;else for(let m=0;m<h.length&&!(g&8);m++){let p=this.visibleRanges[m],k=h[m];(p.from!=k.from||p.to!=k.to)&&(g|=4,s&&s.mapPos(p.from,-1)==k.from&&s.mapPos(p.to,1)==k.to||(g|=8))}return this.visibleRanges=h,g}lineBlockAt(s){return s>=this.viewport.from&&s<=this.viewport.to&&this.viewportLines.find(u=>u.from<=s&&u.to>=s)||ZV(this.heightMap.lineAt(s,hu.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(s){return s>=this.viewportLines[0].top&&s<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(u=>u.top<=s&&u.bottom>=s)||ZV(this.heightMap.lineAt(this.scaler.fromDOM(s),hu.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return(this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top)*this.scaleY}scrollAnchorAt(s){let u=this.lineBlockAtHeight(s+8);return u.from>=this.viewport.from||this.viewportLines[0].top-s>200?u:this.viewportLines[0]}elementAtHeight(s){return ZV(this.heightMap.blockAt(this.scaler.fromDOM(s),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class yfe{constructor(s,u){this.from=s,this.to=u}}function w0n(l,s,u){let h=[],g=l,m=0;return yo.spans(u,l,s,{span(){},point(p,k){p>g&&(h.push({from:g,to:p}),m+=p-g),g=k}},20),g<s&&(h.push({from:g,to:s}),m+=s-g),{total:m,ranges:h}}function xfe({total:l,ranges:s},u){if(u<=0)return s[0].from;if(u>=1)return s[s.length-1].to;let h=Math.floor(l*u);for(let g=0;;g++){let{from:m,to:p}=s[g],k=p-m;if(h<=k)return m+h;h-=k}}function kfe(l,s){let u=0;for(let{from:h,to:g}of l.ranges){if(s<=g){u+=s-h;break}u+=g-h}return u/l.total}function v0n(l,s){for(let u of l)if(s(u))return u}const L3t={toDOM(l){return l},fromDOM(l){return l},scale:1,eq(l){return l==this}};function P3t(l){let s=l.facet(bde).filter(h=>typeof h!="function"),u=l.facet(XAe).filter(h=>typeof h!="function");return u.length&&s.push(yo.join(u)),s}class ZAe{constructor(s,u,h){let g=0,m=0,p=0;this.viewports=h.map(({from:k,to:S})=>{let C=u.lineAt(k,hu.ByPos,s,0,0).top,N=u.lineAt(S,hu.ByPos,s,0,0).bottom;return g+=N-C,{from:k,to:S,top:C,bottom:N,domTop:0,domBottom:0}}),this.scale=(7e6-g)/(u.height-g);for(let k of this.viewports)k.domTop=p+(k.top-m)*this.scale,p=k.domBottom=k.domTop+(k.bottom-k.top),m=k.bottom}toDOM(s){for(let u=0,h=0,g=0;;u++){let m=u<this.viewports.length?this.viewports[u]:null;if(!m||s<m.top)return g+(s-h)*this.scale;if(s<=m.bottom)return m.domTop+(s-m.top);h=m.bottom,g=m.domBottom}}fromDOM(s){for(let u=0,h=0,g=0;;u++){let m=u<this.viewports.length?this.viewports[u]:null;if(!m||s<m.domTop)return h+(s-g)/this.scale;if(s<=m.domBottom)return m.top+(s-m.domTop);h=m.bottom,g=m.domBottom}}eq(s){return s instanceof ZAe?this.scale==s.scale&&this.viewports.length==s.viewports.length&&this.viewports.every((u,h)=>u.from==s.viewports[h].from&&u.to==s.viewports[h].to):!1}}function ZV(l,s){if(s.scale==1)return l;let u=s.toDOM(l.top),h=s.toDOM(l.bottom);return new Oy(l.from,l.length,u,h-u,Array.isArray(l._content)?l._content.map(g=>ZV(g,s)):l._content)}const Ofe=Ui.define({combine:l=>l.join(" ")}),FMe=Ui.define({combine:l=>l.indexOf(!0)>-1}),qMe=z9.newName(),L6t=z9.newName(),P6t=z9.newName(),I6t={"&light":"."+L6t,"&dark":"."+P6t};function HMe(l,s,u){return new z9(s,{finish(h){return/&/.test(h)?h.replace(/&\w*/,g=>{if(g=="&")return l;if(!u||!u[g])throw new RangeError(`Unsupported selector: ${g}`);return u[g]}):l+" "+h}})}const y0n=HMe("."+qMe,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},I6t),x0n={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},pCe=Xi.ie&&Xi.ie_version<=11;class k0n{constructor(s){this.view=s,this.active=!1,this.editContext=null,this.selectionRange=new Y1n,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=s.contentDOM,this.observer=new MutationObserver(u=>{for(let h of u)this.queue.push(h);(Xi.ie&&Xi.ie_version<=11||Xi.ios&&s.composing)&&u.some(h=>h.type=="childList"&&h.removedNodes.length||h.type=="characterData"&&h.oldValue.length>h.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&Xi.android&&s.constructor.EDIT_CONTEXT!==!1&&!(Xi.chrome&&Xi.chrome_version<126)&&(this.editContext=new S0n(s),s.state.facet(fO)&&(s.contentDOM.editContext=this.editContext.editContext)),pCe&&(this.onCharData=u=>{this.queue.push({target:u.target,type:"characterData",oldValue:u.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var u;((u=this.view.docView)===null||u===void 0?void 0:u.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(s.scrollDOM)),this.addWindowListeners(this.win=s.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(u=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),u.length>0&&u[u.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(u=>{u.length>0&&u[u.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(s){this.view.inputState.runHandlers("scroll",s),this.intersecting&&this.view.measure()}onScroll(s){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(s)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(s){(s.type=="change"||!s.type)&&!s.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(s){if(this.gapIntersection&&(s.length!=this.gaps.length||this.gaps.some((u,h)=>u!=s[h]))){this.gapIntersection.disconnect();for(let u of s)this.gapIntersection.observe(u);this.gaps=s}}onSelectionChange(s){let u=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:h}=this,g=this.selectionRange;if(h.state.facet(fO)?h.root.activeElement!=this.dom:!sX(this.dom,g))return;let m=g.anchorNode&&h.docView.tile.nearest(g.anchorNode);if(m&&m.isWidget()&&m.widget.ignoreEvent(s)){u||(this.selectionChanged=!1);return}(Xi.ie&&Xi.ie_version<=11||Xi.android&&Xi.chrome)&&!h.state.selection.main.empty&&g.focusNode&&cX(g.focusNode,g.focusOffset,g.anchorNode,g.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:s}=this,u=TX(s.root);if(!u)return!1;let h=Xi.safari&&s.root.nodeType==11&&s.root.activeElement==this.dom&&O0n(this.view,u)||u;if(!h||this.selectionRange.eq(h))return!1;let g=sX(this.dom,h);return g&&!this.selectionChanged&&s.inputState.lastFocusTime>Date.now()-200&&s.inputState.lastTouchTime<Date.now()-300&&egn(this.dom,h)?(this.view.inputState.lastFocusTime=0,s.docView.updateSelection(),!1):(this.selectionRange.setRange(h),g&&(this.selectionChanged=!0),!0)}setSelectionRange(s,u){this.selectionRange.set(s.node,s.offset,u.node,u.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let s=0,u=null;for(let h=this.dom;h;)if(h.nodeType==1)!u&&s<this.scrollTargets.length&&this.scrollTargets[s]==h?s++:u||(u=this.scrollTargets.slice(0,s)),u&&u.push(h),h=h.assignedSlot||h.parentNode;else if(h.nodeType==11)h=h.host;else break;if(s<this.scrollTargets.length&&!u&&(u=this.scrollTargets.slice(0,s)),u){for(let h of this.scrollTargets)h.removeEventListener("scroll",this.onScroll);for(let h of this.scrollTargets=u)h.addEventListener("scroll",this.onScroll)}}ignore(s){if(!this.active)return s();try{return this.stop(),s()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,x0n),pCe&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),pCe&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(s,u){var h;if(!this.delayedAndroidKey){let g=()=>{let m=this.delayedAndroidKey;m&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=m.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&m.force&&FI(this.dom,m.key,m.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(g)}(!this.delayedAndroidKey||s=="Enter")&&(this.delayedAndroidKey={key:s,keyCode:u,force:this.lastChange<Date.now()-50||!!(!((h=this.delayedAndroidKey)===null||h===void 0)&&h.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let s of this.observer.takeRecords())this.queue.push(s);return this.queue}processRecords(){let s=this.pendingRecords();s.length&&(this.queue=[]);let u=-1,h=-1,g=!1;for(let m of s){let p=this.readMutation(m);p&&(p.typeOver&&(g=!0),u==-1?{from:u,to:h}=p:(u=Math.min(p.from,u),h=Math.max(p.to,h)))}return{from:u,to:h,typeOver:g}}readChange(){let{from:s,to:u,typeOver:h}=this.processRecords(),g=this.selectionChanged&&sX(this.dom,this.selectionRange);if(s<0&&!g)return null;s>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let m=new Fgn(this.view,s,u,h);return this.view.docView.domChanged={newSel:m.newSel?m.newSel.main:null},m}flush(s=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;s&&this.readSelectionRange();let u=this.readChange();if(!u)return this.view.requestMeasure(),!1;let h=this.view.state,g=O6t(this.view,u);return this.view.state==h&&(u.domChanged||u.newSel&&!Nhe(this.view.state.selection,u.newSel.main))&&this.view.update([]),g}readMutation(s){let u=this.view.docView.tile.nearest(s.target);if(!u||u.isWidget())return null;if(u.markDirty(s.type=="attributes"),s.type=="childList"){let h=I3t(u,s.previousSibling||s.target.previousSibling,-1),g=I3t(u,s.nextSibling||s.target.nextSibling,1);return{from:h?u.posAfter(h):u.posAtStart,to:g?u.posBefore(g):u.posAtEnd,typeOver:!1}}else return s.type=="characterData"?{from:u.posAtStart,to:u.posAtEnd,typeOver:s.target.nodeValue==s.oldValue}:null}setWindow(s){s!=this.win&&(this.removeWindowListeners(this.win),this.win=s,this.addWindowListeners(this.win))}addWindowListeners(s){s.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):s.addEventListener("beforeprint",this.onPrint),s.addEventListener("scroll",this.onScroll),s.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(s){s.removeEventListener("scroll",this.onScroll),s.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):s.removeEventListener("beforeprint",this.onPrint),s.document.removeEventListener("selectionchange",this.onSelectionChange)}update(s){this.editContext&&(this.editContext.update(s),s.startState.facet(fO)!=s.state.facet(fO)&&(s.view.contentDOM.editContext=s.state.facet(fO)?this.editContext.editContext:null))}destroy(){var s,u,h;this.stop(),(s=this.intersection)===null||s===void 0||s.disconnect(),(u=this.gapIntersection)===null||u===void 0||u.disconnect(),(h=this.resizeScroll)===null||h===void 0||h.disconnect();for(let g of this.scrollTargets)g.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function I3t(l,s,u){for(;s;){let h=sf.get(s);if(h&&h.parent==l)return h;let g=s.parentNode;s=g!=l.dom?g:u>0?s.nextSibling:s.previousSibling}return null}function R3t(l,s){let u=s.startContainer,h=s.startOffset,g=s.endContainer,m=s.endOffset,p=l.docView.domAtPos(l.state.selection.main.anchor,1);return cX(p.node,p.offset,g,m)&&([u,h,g,m]=[g,m,u,h]),{anchorNode:u,anchorOffset:h,focusNode:g,focusOffset:m}}function O0n(l,s){if(s.getComposedRanges){let g=s.getComposedRanges(l.root)[0];if(g)return R3t(l,g)}let u=null;function h(g){g.preventDefault(),g.stopImmediatePropagation(),u=g.getTargetRanges()[0]}return l.contentDOM.addEventListener("beforeinput",h,!0),l.dom.ownerDocument.execCommand("indent"),l.contentDOM.removeEventListener("beforeinput",h,!0),u?R3t(l,u):null}class S0n{constructor(s){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(s.state);let u=this.editContext=new window.EditContext({text:s.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,s.state.selection.main.anchor))),selectionEnd:this.toContextPos(s.state.selection.main.head)});this.handlers.textupdate=h=>{let g=s.state.selection.main,{anchor:m,head:p}=g,k=this.toEditorPos(h.updateRangeStart),S=this.toEditorPos(h.updateRangeEnd);s.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:h.updateRangeStart,editorBase:k,drifted:!1});let C=S-k>h.text.length;k==this.from&&m<this.from?k=m:S==this.to&&m>this.to&&(S=m);let N=S6t(s.state.sliceDoc(k,S),h.text,(C?g.from:g.to)-k,C?"end":null);if(!N){let P=jn.single(this.toEditorPos(h.selectionStart),this.toEditorPos(h.selectionEnd));Nhe(P,g)||s.dispatch({selection:P,userEvent:"select"});return}let _={from:N.from+k,to:N.toA+k,insert:fc.of(h.text.slice(N.from,N.toB).split(`
`))};if((Xi.mac||Xi.android)&&_.from==p-1&&/^\. ?$/.test(h.text)&&s.contentDOM.getAttribute("autocorrect")=="off"&&(_={from:k,to:S,insert:fc.of([h.text.replace("."," ")])}),this.pendingContextChange=_,!s.state.readOnly){let P=this.to-this.from+(_.to-_.from+_.insert.length);KAe(s,_,jn.single(this.toEditorPos(h.selectionStart,P),this.toEditorPos(h.selectionEnd,P)))}this.pendingContextChange&&(this.revertPending(s.state),this.setSelection(s.state)),_.from<_.to&&!_.insert.length&&s.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(u.text.slice(Math.max(0,h.updateRangeStart-1),Math.min(u.text.length,h.updateRangeStart+1)))&&this.handlers.compositionend(h)},this.handlers.characterboundsupdate=h=>{let g=[],m=null;for(let p=this.toEditorPos(h.rangeStart),k=this.toEditorPos(h.rangeEnd);p<k;p++){let S=s.coordsForChar(p);m=S&&new DOMRect(S.left,S.top,S.right-S.left,S.bottom-S.top)||m||new DOMRect,g.push(m)}u.updateCharacterBounds(h.rangeStart,g)},this.handlers.textformatupdate=h=>{let g=[];for(let m of h.getTextFormats()){let p=m.underlineStyle,k=m.underlineThickness;if(!/none/i.test(p)&&!/none/i.test(k)){let S=this.toEditorPos(m.rangeStart),C=this.toEditorPos(m.rangeEnd);if(S<C){let N=`text-decoration: underline ${/^[a-z]/.test(p)?p+" ":p=="Dashed"?"dashed ":p=="Squiggle"?"wavy ":""}${/thin/i.test(k)?1:2}px`;g.push(Fr.mark({attributes:{style:N}}).range(S,C))}}}s.dispatch({effects:g6t.of(Fr.set(g))})},this.handlers.compositionstart=()=>{s.inputState.composing<0&&(s.inputState.composing=0,s.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(s.inputState.composing=-1,s.inputState.compositionFirstChange=null,this.composing){let{drifted:h}=this.composing;this.composing=null,h&&this.reset(s.state)}};for(let h in this.handlers)u.addEventListener(h,this.handlers[h]);this.measureReq={read:h=>{this.editContext.updateControlBounds(h.contentDOM.getBoundingClientRect());let g=TX(h.root);g&&g.rangeCount&&this.editContext.updateSelectionBounds(g.getRangeAt(0).getBoundingClientRect())}}}applyEdits(s){let u=0,h=!1,g=this.pendingContextChange;return s.changes.iterChanges((m,p,k,S,C)=>{if(h)return;let N=C.length-(p-m);if(g&&p>=g.to)if(g.from==m&&g.to==p&&g.insert.eq(C)){g=this.pendingContextChange=null,u+=N,this.to+=N;return}else g=null,this.revertPending(s.state);if(m+=u,p+=u,p<=this.from)this.from+=N,this.to+=N;else if(m<this.to){if(m<this.from||p>this.to||this.to-this.from+C.length>3e4){h=!0;return}this.editContext.updateText(this.toContextPos(m),this.toContextPos(p),C.toString()),this.to+=N}u+=N}),g&&!h&&this.revertPending(s.state),!h}update(s){let u=this.pendingContextChange,h=s.startState.selection.main;this.composing&&(this.composing.drifted||!s.changes.touchesRange(h.from,h.to)&&s.transactions.some(g=>!g.isUserEvent("input.type")&&g.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=s.changes.mapPos(this.composing.editorBase)):!this.applyEdits(s)||!this.rangeIsValid(s.state)?(this.pendingContextChange=null,this.reset(s.state)):(s.docChanged||s.selectionSet||u)&&this.setSelection(s.state),(s.geometryChanged||s.docChanged||s.selectionSet)&&s.view.requestMeasure(this.measureReq)}resetRange(s){let{head:u}=s.selection.main;this.from=Math.max(0,u-1e4),this.to=Math.min(s.doc.length,u+1e4)}reset(s){this.resetRange(s),this.editContext.updateText(0,this.editContext.text.length,s.doc.sliceString(this.from,this.to)),this.setSelection(s)}revertPending(s){let u=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(u.from),this.toContextPos(u.from+u.insert.length),s.doc.sliceString(u.from,u.to))}setSelection(s){let{main:u}=s.selection,h=this.toContextPos(Math.max(this.from,Math.min(this.to,u.anchor))),g=this.toContextPos(u.head);(this.editContext.selectionStart!=h||this.editContext.selectionEnd!=g)&&this.editContext.updateSelection(h,g)}rangeIsValid(s){let{head:u}=s.selection.main;return!(this.from>0&&u-this.from<500||this.to<s.doc.length&&this.to-u<500||this.to-this.from>1e4*3)}toEditorPos(s,u=this.to-this.from){s=Math.min(s,u);let h=this.composing;return h&&h.drifted?h.editorBase+(s-h.contextBase):s+this.from}toContextPos(s){let u=this.composing;return u&&u.drifted?u.contextBase+(s-u.editorBase):s-this.from}destroy(){for(let s in this.handlers)this.editContext.removeEventListener(s,this.handlers[s])}}class Bi{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(s={}){var u;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),s.parent&&s.parent.appendChild(this.dom);let{dispatch:h}=s;this.dispatchTransactions=s.dispatchTransactions||h&&(g=>g.forEach(m=>h(m,this)))||(g=>this.update(g)),this.dispatch=this.dispatch.bind(this),this._root=s.root||Z1n(s.parent)||document,this.viewState=new D3t(this,s.state||Bc.create(s)),s.scrollTo&&s.scrollTo.is(mfe)&&(this.viewState.scrollTarget=s.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(NI).map(g=>new uCe(g));for(let g of this.plugins)g.update(this);this.observer=new k0n(this),this.inputState=new Ggn(this),this.inputState.ensureHandlers(this.plugins),this.docView=new y3t(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((u=document.fonts)===null||u===void 0)&&u.ready&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...s){let u=s.length==1&&s[0]instanceof ah?s:s.length==1&&Array.isArray(s[0])?s[0]:[this.state.update(...s)];this.dispatchTransactions(u,this)}update(s){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let u=!1,h=!1,g,m=this.state;for(let P of s){if(P.startState!=m)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");m=P.state}if(this.destroyed){this.viewState.state=m;return}let p=this.hasFocus,k=0,S=null;s.some(P=>P.annotation(A6t))?(this.inputState.notifiedFocused=p,k=1):p!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=p,S=N6t(m,p),S||(k=1));let C=this.observer.delayedAndroidKey,N=null;if(C?(this.observer.clearDelayedAndroidKey(),N=this.observer.readChange(),(N&&!this.state.doc.eq(m.doc)||!this.state.selection.eq(m.selection))&&(N=null)):this.observer.clear(),m.facet(Bc.phrases)!=this.state.facet(Bc.phrases))return this.setState(m);g=Che.create(this,m,s),g.flags|=k;let _=this.viewState.scrollTarget;try{this.updateState=2;for(let P of s){if(_&&(_=_.map(P.changes)),P.scrollIntoView){let{main:R}=P.state.selection;_=new qI(R.empty?R:jn.cursor(R.head,R.head>R.anchor?-1:1))}for(let R of P.effects)R.is(mfe)&&(_=R.value.clip(this.state))}this.viewState.update(g,_),this.bidiCache=Dhe.update(this.bidiCache,g.changes),g.empty||(this.updatePlugins(g),this.inputState.update(g)),u=this.docView.update(g),this.state.facet(YV)!=this.styleModules&&this.mountStyles(),h=this.updateAttrs(),this.showAnnouncements(s),this.docView.updateSelection(u,s.some(P=>P.isUserEvent("select.pointer")))}finally{this.updateState=0}if(g.startState.facet(Ofe)!=g.state.facet(Ofe)&&(this.viewState.mustMeasureContent=!0),(u||h||_||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),u&&this.docViewUpdate(),!g.empty)for(let P of this.state.facet(IMe))try{P(g)}catch(R){yp(this.state,R,"update listener")}(S||N)&&Promise.resolve().then(()=>{S&&this.state==S.startState&&this.dispatch(S),N&&!O6t(this,N)&&C.force&&FI(this.contentDOM,C.key,C.keyCode)})}setState(s){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=s;return}this.updateState=2;let u=this.hasFocus;try{for(let h of this.plugins)h.destroy(this);this.viewState=new D3t(this,s),this.plugins=s.facet(NI).map(h=>new uCe(h)),this.pluginMap.clear();for(let h of this.plugins)h.update(this);this.docView.destroy(),this.docView=new y3t(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}u&&this.focus(),this.requestMeasure()}updatePlugins(s){let u=s.startState.facet(NI),h=s.state.facet(NI);if(u!=h){let g=[];for(let m of h){let p=u.indexOf(m);if(p<0)g.push(new uCe(m));else{let k=this.plugins[p];k.mustUpdate=s,g.push(k)}}for(let m of this.plugins)m.mustUpdate!=s&&m.destroy(this);this.plugins=g,this.pluginMap.clear()}else for(let g of this.plugins)g.mustUpdate=s;for(let g=0;g<this.plugins.length;g++)this.plugins[g].update(this);u!=h&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let s of this.plugins){let u=s.value;if(u&&u.docViewUpdate)try{u.docViewUpdate(this)}catch(h){yp(this.state,h,"doc view update listener")}}}measure(s=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,s&&this.observer.forceFlush();let u=null,h=this.viewState.scrollParent,g=this.viewState.getScrollOffset(),{scrollAnchorPos:m,scrollAnchorHeight:p}=this.viewState;Math.abs(g-this.viewState.scrollOffset)>1&&(p=-1),this.viewState.scrollAnchorHeight=-1;try{for(let k=0;;k++){if(p<0)if(KOt(h||this.win))m=-1,p=this.viewState.heightMap.height;else{let R=this.viewState.scrollAnchorAt(g);m=R.from,p=R.top}this.updateState=1;let S=this.viewState.measure();if(!S&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(k>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let C=[];S&4||([this.measureRequests,C]=[C,this.measureRequests]);let N=C.map(R=>{try{return R.read(this)}catch(q){return yp(this.state,q),$3t}}),_=Che.create(this,this.state,[]),P=!1;_.flags|=S,u?u.flags|=S:u=_,this.updateState=2,_.empty||(this.updatePlugins(_),this.inputState.update(_),this.updateAttrs(),P=this.docView.update(_),P&&this.docViewUpdate());for(let R=0;R<C.length;R++)if(N[R]!=$3t)try{let q=C[R];q.write&&q.write(N[R],this)}catch(q){yp(this.state,q)}if(P&&this.docView.updateSelection(!0),!_.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,p=-1;continue}else{let q=((m<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(m).top)-p)/this.scaleY;if((q>1||q<-1)&&(h==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){g=g+q,h?h.scrollTop+=q:this.win.scrollBy(0,q),p=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(u&&!u.empty)for(let k of this.state.facet(IMe))k(u)}get themeClasses(){return qMe+" "+(this.state.facet(FMe)?P6t:L6t)+" "+this.state.facet(Ofe)}updateAttrs(){let s=B3t(this,p6t,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),u={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(fO)?"true":"false",class:"cm-content",style:`${Xi.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(u["aria-readonly"]="true"),B3t(this,VAe,u);let h=this.observer.ignore(()=>{let g=g3t(this.contentDOM,this.contentAttrs,u),m=g3t(this.dom,this.editorAttrs,s);return g||m});return this.editorAttrs=s,this.contentAttrs=u,h}showAnnouncements(s){let u=!0;for(let h of s)for(let g of h.effects)if(g.is(Bi.announce)){u&&(this.announceDOM.textContent=""),u=!1;let m=this.announceDOM.appendChild(document.createElement("div"));m.textContent=g.value}}mountStyles(){this.styleModules=this.state.facet(YV);let s=this.state.facet(Bi.cspNonce);z9.mount(this.root,this.styleModules.concat(y0n).reverse(),s?{nonce:s}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(s){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),s){if(this.measureRequests.indexOf(s)>-1)return;if(s.key!=null){for(let u=0;u<this.measureRequests.length;u++)if(this.measureRequests[u].key===s.key){this.measureRequests[u]=s;return}}this.measureRequests.push(s)}}plugin(s){let u=this.pluginMap.get(s);return(u===void 0||u&&u.plugin!=s)&&this.pluginMap.set(s,u=this.plugins.find(h=>h.plugin==s)||null),u&&u.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(s){return this.readMeasured(),this.viewState.elementAtHeight(s)}lineBlockAtHeight(s){return this.readMeasured(),this.viewState.lineBlockAtHeight(s)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(s){return this.viewState.lineBlockAt(s)}get contentHeight(){return this.viewState.contentHeight}moveByChar(s,u,h){return dCe(this,s,x3t(this,s,u,h))}moveByGroup(s,u){return dCe(this,s,x3t(this,s,u,h=>Pgn(this,s.head,h)))}visualLineSide(s,u){let h=this.bidiSpans(s),g=this.textDirectionAt(s.from),m=h[u?h.length-1:0];return jn.cursor(m.side(u,g)+s.from,m.forward(!u,g)?1:-1)}moveToLineBoundary(s,u,h=!0){return Lgn(this,s,u,h)}moveVertically(s,u,h){return dCe(this,s,Ign(this,s,u,h))}domAtPos(s,u=1){return this.docView.domAtPos(s,u)}posAtDOM(s,u=0){return this.docView.posFromDOM(s,u)}posAtCoords(s,u=!0){this.readMeasured();let h=BMe(this,s,u);return h&&h.pos}posAndSideAtCoords(s,u=!0){return this.readMeasured(),BMe(this,s,u)}coordsAtPos(s,u=1){this.readMeasured();let h=this.docView.coordsAt(s,u);if(!h||h.left==h.right)return h;let g=this.state.doc.lineAt(s),m=this.bidiSpans(g),p=m[X3.find(m,s-g.from,-1,u)];return EX(h,p.dir==Zl.LTR==u>0)}coordsForChar(s){return this.readMeasured(),this.docView.coordsForChar(s)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(s){return!this.state.facet(f6t)||s<this.viewport.from||s>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(s))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(s){if(s.length>j0n)return i6t(s.length);let u=this.textDirectionAt(s.from),h;for(let m of this.bidiCache)if(m.from==s.from&&m.dir==u&&(m.fresh||n6t(m.isolates,h=m3t(this,s))))return m.order;h||(h=m3t(this,s));let g=cgn(s.text,u,h);return this.bidiCache.push(new Dhe(s.from,s.to,u,h,!0,g)),g}get hasFocus(){var s;return(this.dom.ownerDocument.hasFocus()||Xi.safari&&((s=this.inputState)===null||s===void 0?void 0:s.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{WOt(this.contentDOM),this.docView.updateSelection()})}setRoot(s){this._root!=s&&(this._root=s,this.observer.setWindow((s.nodeType==9?s:s.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let s of this.plugins)s.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(s,u={}){return mfe.of(new qI(typeof s=="number"?jn.cursor(s):s,u.y,u.x,u.yMargin,u.xMargin))}scrollSnapshot(){let{scrollTop:s,scrollLeft:u}=this.scrollDOM,h=this.viewState.scrollAnchorAt(s);return mfe.of(new qI(jn.cursor(h.from),"start","start",h.top-s,u,!0))}setTabFocusMode(s){s==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof s=="boolean"?this.inputState.tabFocusMode=s?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+s)}static domEventHandlers(s){return Qh.define(()=>({}),{eventHandlers:s})}static domEventObservers(s){return Qh.define(()=>({}),{eventObservers:s})}static theme(s,u){let h=z9.newName(),g=[Ofe.of(h),YV.of(HMe(`.${h}`,s))];return u&&u.dark&&g.push(FMe.of(!0)),g}static baseTheme(s){return G9.lowest(YV.of(HMe("."+qMe,s,I6t)))}static findFromDOM(s){var u;let h=s.querySelector(".cm-content"),g=h&&sf.get(h)||sf.get(s);return((u=g==null?void 0:g.root)===null||u===void 0?void 0:u.view)||null}}Bi.styleModule=YV;Bi.inputHandler=u6t;Bi.clipboardInputFilter=UAe;Bi.clipboardOutputFilter=JAe;Bi.scrollHandler=d6t;Bi.focusChangeEffect=a6t;Bi.perLineTextDirection=f6t;Bi.exceptionSink=l6t;Bi.updateListener=IMe;Bi.editable=fO;Bi.mouseSelectionStyle=c6t;Bi.dragMovesSelection=o6t;Bi.clickAddsSelectionRange=s6t;Bi.decorations=bde;Bi.blockWrappers=b6t;Bi.outerDecorations=XAe;Bi.atomicRanges=eW;Bi.bidiIsolatedRanges=m6t;Bi.scrollMargins=w6t;Bi.darkTheme=FMe;Bi.cspNonce=Ui.define({combine:l=>l.length?l[0]:""});Bi.contentAttributes=VAe;Bi.editorAttributes=p6t;Bi.lineWrapping=Bi.contentAttributes.of({class:"cm-lineWrapping"});Bi.announce=Ls.define();const j0n=4096,$3t={};class Dhe{constructor(s,u,h,g,m,p){this.from=s,this.to=u,this.dir=h,this.isolates=g,this.fresh=m,this.order=p}static update(s,u){if(u.empty&&!s.some(m=>m.fresh))return s;let h=[],g=s.length?s[s.length-1].dir:Zl.LTR;for(let m=Math.max(0,s.length-10);m<s.length;m++){let p=s[m];p.dir==g&&!u.touchesRange(p.from,p.to)&&h.push(new Dhe(u.mapPos(p.from,1),u.mapPos(p.to,-1),p.dir,p.isolates,!1,p.order))}return h}}function B3t(l,s,u){for(let h=l.state.facet(s),g=h.length-1;g>=0;g--){let m=h[g],p=typeof m=="function"?m(l):m;p&&HAe(p,u)}return u}const T0n=Xi.mac?"mac":Xi.windows?"win":Xi.linux?"linux":"key";function E0n(l,s){const u=l.split(/-(?!$)/);let h=u[u.length-1];h=="Space"&&(h=" ");let g,m,p,k;for(let S=0;S<u.length-1;++S){const C=u[S];if(/^(cmd|meta|m)$/i.test(C))k=!0;else if(/^a(lt)?$/i.test(C))g=!0;else if(/^(c|ctrl|control)$/i.test(C))m=!0;else if(/^s(hift)?$/i.test(C))p=!0;else if(/^mod$/i.test(C))s=="mac"?k=!0:m=!0;else throw new Error("Unrecognized modifier name: "+C)}return g&&(h="Alt-"+h),m&&(h="Ctrl-"+h),k&&(h="Meta-"+h),p&&(h="Shift-"+h),h}function Sfe(l,s,u){return s.altKey&&(l="Alt-"+l),s.ctrlKey&&(l="Ctrl-"+l),s.metaKey&&(l="Meta-"+l),u!==!1&&s.shiftKey&&(l="Shift-"+l),l}const C0n=G9.default(Bi.domEventHandlers({keydown(l,s){return $6t(R6t(s.state),l,s,"editor")}})),yde=Ui.define({enables:C0n}),z3t=new WeakMap;function R6t(l){let s=l.facet(yde),u=z3t.get(s);return u||z3t.set(s,u=N0n(s.reduce((h,g)=>h.concat(g),[]))),u}function M0n(l,s,u){return $6t(R6t(l.state),s,l,u)}let M9=null;const A0n=4e3;function N0n(l,s=T0n){let u=Object.create(null),h=Object.create(null),g=(p,k)=>{let S=h[p];if(S==null)h[p]=k;else if(S!=k)throw new Error("Key binding "+p+" is used both as a regular binding and as a multi-stroke prefix")},m=(p,k,S,C,N)=>{var _,P;let R=u[p]||(u[p]=Object.create(null)),q=k.split(/ (?!$)/).map(J=>E0n(J,s));for(let J=1;J<q.length;J++){let ee=q.slice(0,J).join(" ");g(ee,!0),R[ee]||(R[ee]={preventDefault:!0,stopPropagation:!1,run:[te=>{let ie=M9={view:te,prefix:ee,scope:p};return setTimeout(()=>{M9==ie&&(M9=null)},A0n),!0}]})}let F=q.join(" ");g(F,!1);let X=R[F]||(R[F]={preventDefault:!1,stopPropagation:!1,run:((P=(_=R._any)===null||_===void 0?void 0:_.run)===null||P===void 0?void 0:P.slice())||[]});S&&X.run.push(S),C&&(X.preventDefault=!0),N&&(X.stopPropagation=!0)};for(let p of l){let k=p.scope?p.scope.split(" "):["editor"];if(p.any)for(let C of k){let N=u[C]||(u[C]=Object.create(null));N._any||(N._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:_}=p;for(let P in N)N[P].run.push(R=>_(R,QMe))}let S=p[s]||p.key;if(S)for(let C of k)m(C,S,p.run,p.preventDefault,p.stopPropagation),p.shift&&m(C,"Shift-"+S,p.shift,p.preventDefault,p.stopPropagation)}return u}let QMe=null;function $6t(l,s,u,h){QMe=s;let g=G1n(s),m=Kb(g,0),p=J3(m)==g.length&&g!=" ",k="",S=!1,C=!1,N=!1;M9&&M9.view==u&&M9.scope==h&&(k=M9.prefix+" ",T6t.indexOf(s.keyCode)<0&&(C=!0,M9=null));let _=new Set,P=X=>{if(X){for(let J of X.run)if(!_.has(J)&&(_.add(J),J(u)))return X.stopPropagation&&(N=!0),!0;X.preventDefault&&(X.stopPropagation&&(N=!0),C=!0)}return!1},R=l[h],q,F;return R&&(P(R[k+Sfe(g,s,!p)])?S=!0:p&&(s.altKey||s.metaKey||s.ctrlKey)&&!(Xi.windows&&s.ctrlKey&&s.altKey)&&!(Xi.mac&&s.altKey&&!(s.ctrlKey||s.metaKey))&&(q=F9[s.keyCode])&&q!=g?(P(R[k+Sfe(q,s,!0)])||s.shiftKey&&(F=SX[s.keyCode])!=g&&F!=q&&P(R[k+Sfe(F,s,!1)]))&&(S=!0):p&&s.shiftKey&&P(R[k+Sfe(g,s,!0)])&&(S=!0),!S&&P(R._any)&&(S=!0)),C&&(S=!0),S&&N&&s.stopPropagation(),QMe=null,S}class tW{constructor(s,u,h,g,m){this.className=s,this.left=u,this.top=h,this.width=g,this.height=m}draw(){let s=document.createElement("div");return s.className=this.className,this.adjust(s),s}update(s,u){return u.className!=this.className?!1:(this.adjust(s),!0)}adjust(s){s.style.left=this.left+"px",s.style.top=this.top+"px",this.width!=null&&(s.style.width=this.width+"px"),s.style.height=this.height+"px"}eq(s){return this.left==s.left&&this.top==s.top&&this.width==s.width&&this.height==s.height&&this.className==s.className}static forRange(s,u,h){if(h.empty){let g=s.coordsAtPos(h.head,h.assoc||1);if(!g)return[];let m=B6t(s);return[new tW(u,g.left-m.left,g.top-m.top,null,g.bottom-g.top)]}else return _0n(s,u,h)}}function B6t(l){let s=l.scrollDOM.getBoundingClientRect();return{left:(l.textDirection==Zl.LTR?s.left:s.right-l.scrollDOM.clientWidth*l.scaleX)-l.scrollDOM.scrollLeft*l.scaleX,top:s.top-l.scrollDOM.scrollTop*l.scaleY}}function F3t(l,s,u,h){let g=l.coordsAtPos(s,u*2);if(!g)return h;let m=l.dom.getBoundingClientRect(),p=(g.top+g.bottom)/2,k=l.posAtCoords({x:m.left+1,y:p}),S=l.posAtCoords({x:m.right-1,y:p});return k==null||S==null?h:{from:Math.max(h.from,Math.min(k,S)),to:Math.min(h.to,Math.max(k,S))}}function _0n(l,s,u){if(u.to<=l.viewport.from||u.from>=l.viewport.to)return[];let h=Math.max(u.from,l.viewport.from),g=Math.min(u.to,l.viewport.to),m=l.textDirection==Zl.LTR,p=l.contentDOM,k=p.getBoundingClientRect(),S=B6t(l),C=p.querySelector(".cm-line"),N=C&&window.getComputedStyle(C),_=k.left+(N?parseInt(N.paddingLeft)+Math.min(0,parseInt(N.textIndent)):0),P=k.right-(N?parseInt(N.paddingRight):0),R=$Me(l,h,1),q=$Me(l,g,-1),F=R.type==o1.Text?R:null,X=q.type==o1.Text?q:null;if(F&&(l.lineWrapping||R.widgetLineBreaks)&&(F=F3t(l,h,1,F)),X&&(l.lineWrapping||q.widgetLineBreaks)&&(X=F3t(l,g,-1,X)),F&&X&&F.from==X.from&&F.to==X.to)return ee(te(u.from,u.to,F));{let oe=F?te(u.from,null,F):ie(R,!1),se=X?te(null,u.to,X):ie(q,!0),ge=[];return(F||R).to<(X||q).from-(F&&X?1:0)||R.widgetLineBreaks>1&&oe.bottom+l.defaultLineHeight/2<se.top?ge.push(J(_,oe.bottom,P,se.top)):oe.bottom<se.top&&l.elementAtHeight((oe.bottom+se.top)/2).type==o1.Text&&(oe.bottom=se.top=(oe.bottom+se.top)/2),ee(oe).concat(ge).concat(ee(se))}function J(oe,se,ge,Ne){return new tW(s,oe-S.left,se-S.top,Math.max(0,ge-oe),Ne-se)}function ee({top:oe,bottom:se,horizontal:ge}){let Ne=[];for(let qe=0;qe<ge.length;qe+=2)Ne.push(J(ge[qe],oe,ge[qe+1],se));return Ne}function te(oe,se,ge){let Ne=1e9,qe=-1e9,Ke=[];function Le(pe,Re,he,Ee,Te){let ye=l.coordsAtPos(pe,pe==ge.to?-2:2),ft=l.coordsAtPos(he,he==ge.from?2:-2);!ye||!ft||(Ne=Math.min(ye.top,ft.top,Ne),qe=Math.max(ye.bottom,ft.bottom,qe),Te==Zl.LTR?Ke.push(m&&Re?_:ye.left,m&&Ee?P:ft.right):Ke.push(!m&&Ee?_:ft.left,!m&&Re?P:ye.right))}let we=oe??ge.from,Z=se??ge.to;for(let pe of l.visibleRanges)if(pe.to>we&&pe.from<Z)for(let Re=Math.max(pe.from,we),he=Math.min(pe.to,Z);;){let Ee=l.state.doc.lineAt(Re);for(let Te of l.bidiSpans(Ee)){let ye=Te.from+Ee.from,ft=Te.to+Ee.from;if(ye>=he)break;ft>Re&&Le(Math.max(ye,Re),oe==null&&ye<=we,Math.min(ft,he),se==null&&ft>=Z,Te.dir)}if(Re=Ee.to+1,Re>=he)break}return Ke.length==0&&Le(we,oe==null,Z,se==null,l.textDirection),{top:Ne,bottom:qe,horizontal:Ke}}function ie(oe,se){let ge=k.top+(se?oe.top:oe.bottom);return{top:ge,bottom:ge,horizontal:[]}}}function D0n(l,s){return l.constructor==s.constructor&&l.eq(s)}class L0n{constructor(s,u){this.view=s,this.layer=u,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=s.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),u.above&&this.dom.classList.add("cm-layer-above"),u.class&&this.dom.classList.add(u.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(s.state),s.requestMeasure(this.measureReq),u.mount&&u.mount(this.dom,s)}update(s){s.startState.facet(nhe)!=s.state.facet(nhe)&&this.setOrder(s.state),(this.layer.update(s,this.dom)||s.geometryChanged)&&(this.scale(),s.view.requestMeasure(this.measureReq))}docViewUpdate(s){this.layer.updateOnDocViewUpdate!==!1&&s.requestMeasure(this.measureReq)}setOrder(s){let u=0,h=s.facet(nhe);for(;u<h.length&&h[u]!=this.layer;)u++;this.dom.style.zIndex=String((this.layer.above?150:-1)-u)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:s,scaleY:u}=this.view;(s!=this.scaleX||u!=this.scaleY)&&(this.scaleX=s,this.scaleY=u,this.dom.style.transform=`scale(${1/s}, ${1/u})`)}draw(s){if(s.length!=this.drawn.length||s.some((u,h)=>!D0n(u,this.drawn[h]))){let u=this.dom.firstChild,h=0;for(let g of s)g.update&&u&&g.constructor&&this.drawn[h].constructor&&g.update(u,this.drawn[h])?(u=u.nextSibling,h++):this.dom.insertBefore(g.draw(),u);for(;u;){let g=u.nextSibling;u.remove(),u=g}this.drawn=s,Xi.safari&&Xi.safari_version>=26&&(this.dom.style.display=this.dom.firstChild?"":"none")}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const nhe=Ui.define();function z6t(l){return[Qh.define(s=>new L0n(s,l)),nhe.of(l)]}const MX=Ui.define({combine(l){return c5(l,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(s,u)=>Math.min(s,u),drawRangeCursor:(s,u)=>s||u})}});function P0n(l={}){return[MX.of(l),I0n,R0n,$0n,h6t.of(!0)]}function F6t(l){return l.startState.facet(MX)!=l.state.facet(MX)}const I0n=z6t({above:!0,markers(l){let{state:s}=l,u=s.facet(MX),h=[];for(let g of s.selection.ranges){let m=g==s.selection.main;if(g.empty||u.drawRangeCursor){let p=m?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",k=g.empty?g:jn.cursor(g.head,g.head>g.anchor?-1:1);for(let S of tW.forRange(l,p,k))h.push(S)}}return h},update(l,s){l.transactions.some(h=>h.selection)&&(s.style.animationName=s.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let u=F6t(l);return u&&q3t(l.state,s),l.docChanged||l.selectionSet||u},mount(l,s){q3t(s.state,l)},class:"cm-cursorLayer"});function q3t(l,s){s.style.animationDuration=l.facet(MX).cursorBlinkRate+"ms"}const R0n=z6t({above:!1,markers(l){return l.state.selection.ranges.map(s=>s.empty?[]:tW.forRange(l,"cm-selectionBackground",s)).reduce((s,u)=>s.concat(u))},update(l,s){return l.docChanged||l.selectionSet||l.viewportChanged||F6t(l)},class:"cm-selectionLayer"}),$0n=G9.highest(Bi.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}}));function B0n(){return F0n}const z0n=Fr.line({class:"cm-activeLine"}),F0n=Qh.fromClass(class{constructor(l){this.decorations=this.getDeco(l)}update(l){(l.docChanged||l.selectionSet)&&(this.decorations=this.getDeco(l.view))}getDeco(l){let s=-1,u=[];for(let h of l.state.selection.ranges){let g=l.lineBlockAt(h.head);g.from>s&&(u.push(z0n.range(g.from)),s=g.from)}return Fr.set(u)}},{decorations:l=>l.decorations});class q0n extends kO{constructor(s){super(),this.content=s}toDOM(s){let u=document.createElement("span");return u.className="cm-placeholder",u.style.pointerEvents="none",u.appendChild(typeof this.content=="string"?document.createTextNode(this.content):typeof this.content=="function"?this.content(s):this.content.cloneNode(!0)),u.setAttribute("aria-hidden","true"),u}coordsAt(s){let u=s.firstChild?oX(s.firstChild):[];if(!u.length)return null;let h=window.getComputedStyle(s.parentNode),g=EX(u[0],h.direction!="rtl"),m=parseInt(h.lineHeight);return g.bottom-g.top>m*1.5?{left:g.left,right:g.right,top:g.top,bottom:g.top+m}:g}ignoreEvent(){return!1}}function H3t(l){let s=Qh.fromClass(class{constructor(u){this.view=u,this.placeholder=l?Fr.set([Fr.widget({widget:new q0n(l),side:1}).range(0)]):Fr.none}get decorations(){return this.view.state.doc.length?Fr.none:this.placeholder}},{decorations:u=>u.decorations});return typeof l=="string"?[s,Bi.contentAttributes.of({"aria-placeholder":l})]:s}const GMe=2e3;function H0n(l,s,u){let h=Math.min(s.line,u.line),g=Math.max(s.line,u.line),m=[];if(s.off>GMe||u.off>GMe||s.col<0||u.col<0){let p=Math.min(s.off,u.off),k=Math.max(s.off,u.off);for(let S=h;S<=g;S++){let C=l.doc.line(S);C.length<=k&&m.push(jn.range(C.from+p,C.to+k))}}else{let p=Math.min(s.col,u.col),k=Math.max(s.col,u.col);for(let S=h;S<=g;S++){let C=l.doc.line(S),N=jMe(C.text,p,l.tabSize,!0);if(N<0)m.push(jn.cursor(C.to));else{let _=jMe(C.text,k,l.tabSize);m.push(jn.range(C.from+N,C.from+_))}}}return m}function Q0n(l,s){let u=l.coordsAtPos(l.viewport.from);return u?Math.round(Math.abs((u.left-s)/l.defaultCharacterWidth)):-1}function Q3t(l,s){let u=l.posAtCoords({x:s.clientX,y:s.clientY},!1),h=l.state.doc.lineAt(u),g=u-h.from,m=g>GMe?-1:g==h.length?Q0n(l,s.clientX):KX(h.text,l.state.tabSize,u-h.from);return{line:h.number,col:m,off:g}}function G0n(l,s){let u=Q3t(l,s),h=l.state.selection;return u?{update(g){if(g.docChanged){let m=g.changes.mapPos(g.startState.doc.line(u.line).from),p=g.state.doc.lineAt(m);u={line:p.number,col:u.col,off:Math.min(u.off,p.length)},h=h.map(g.changes)}},get(g,m,p){let k=Q3t(l,g);if(!k)return h;let S=H0n(l.state,u,k);return S.length?p?jn.create(S.concat(h.ranges)):jn.create(S):h}}:null}function U0n(l){let s=(u=>u.altKey&&u.button==0);return Bi.mouseSelectionStyle.of((u,h)=>s(h)?G0n(u,h):null)}const jfe="-10000px";class q6t{constructor(s,u,h,g){this.facet=u,this.createTooltipView=h,this.removeTooltipView=g,this.input=s.state.facet(u),this.tooltips=this.input.filter(p=>p);let m=null;this.tooltipViews=this.tooltips.map(p=>m=h(p,m))}update(s,u){var h;let g=s.state.facet(this.facet),m=g.filter(S=>S);if(g===this.input){for(let S of this.tooltipViews)S.update&&S.update(s);return!1}let p=[],k=u?[]:null;for(let S=0;S<m.length;S++){let C=m[S],N=-1;if(C){for(let _=0;_<this.tooltips.length;_++){let P=this.tooltips[_];P&&P.create==C.create&&(N=_)}if(N<0)p[S]=this.createTooltipView(C,S?p[S-1]:null),k&&(k[S]=!!C.above);else{let _=p[S]=this.tooltipViews[N];k&&(k[S]=u[N]),_.update&&_.update(s)}}}for(let S of this.tooltipViews)p.indexOf(S)<0&&(this.removeTooltipView(S),(h=S.destroy)===null||h===void 0||h.call(S));return u&&(k.forEach((S,C)=>u[C]=S),u.length=k.length),this.input=g,this.tooltips=m,this.tooltipViews=p,!0}}function J0n(l){let s=l.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:s.clientHeight,right:s.clientWidth}}const bCe=Ui.define({combine:l=>{var s,u,h;return{position:Xi.ios?"absolute":((s=l.find(g=>g.position))===null||s===void 0?void 0:s.position)||"fixed",parent:((u=l.find(g=>g.parent))===null||u===void 0?void 0:u.parent)||null,tooltipSpace:((h=l.find(g=>g.tooltipSpace))===null||h===void 0?void 0:h.tooltipSpace)||J0n}}}),G3t=new WeakMap,eNe=Qh.fromClass(class{constructor(l){this.view=l,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let s=l.state.facet(bCe);this.position=s.position,this.parent=s.parent,this.classes=l.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new q6t(l,xde,(u,h)=>this.createTooltip(u,h),u=>{this.resizeObserver&&this.resizeObserver.unobserve(u.dom),u.dom.remove()}),this.above=this.manager.tooltips.map(u=>!!u.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(u=>{Date.now()>this.lastTransaction-50&&u.length>0&&u[u.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),l.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let l of this.manager.tooltipViews)this.intersectionObserver.observe(l.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(l){l.transactions.length&&(this.lastTransaction=Date.now());let s=this.manager.update(l,this.above);s&&this.observeIntersection();let u=s||l.geometryChanged,h=l.state.facet(bCe);if(h.position!=this.position&&!this.madeAbsolute){this.position=h.position;for(let g of this.manager.tooltipViews)g.dom.style.position=this.position;u=!0}if(h.parent!=this.parent){this.parent&&this.container.remove(),this.parent=h.parent,this.createContainer();for(let g of this.manager.tooltipViews)this.container.appendChild(g.dom);u=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);u&&this.maybeMeasure()}createTooltip(l,s){let u=l.create(this.view),h=s?s.dom:null;if(u.dom.classList.add("cm-tooltip"),l.arrow&&!u.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let g=document.createElement("div");g.className="cm-tooltip-arrow",u.dom.appendChild(g)}return u.dom.style.position=this.position,u.dom.style.top=jfe,u.dom.style.left="0px",this.container.insertBefore(u.dom,h),u.mount&&u.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(u.dom),u}destroy(){var l,s,u;this.view.win.removeEventListener("resize",this.measureSoon);for(let h of this.manager.tooltipViews)h.dom.remove(),(l=h.destroy)===null||l===void 0||l.call(h);this.parent&&this.container.remove(),(s=this.resizeObserver)===null||s===void 0||s.disconnect(),(u=this.intersectionObserver)===null||u===void 0||u.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let l=1,s=1,u=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:m}=this.manager.tooltipViews[0];if(Xi.safari){let p=m.getBoundingClientRect();u=Math.abs(p.top+1e4)>1||Math.abs(p.left)>1}else u=!!m.offsetParent&&m.offsetParent!=this.container.ownerDocument.body}if(u||this.position=="absolute")if(this.parent){let m=this.parent.getBoundingClientRect();m.width&&m.height&&(l=m.width/this.parent.offsetWidth,s=m.height/this.parent.offsetHeight)}else({scaleX:l,scaleY:s}=this.view.viewState);let h=this.view.scrollDOM.getBoundingClientRect(),g=WAe(this.view);return{visible:{left:h.left+g.left,top:h.top+g.top,right:h.right-g.right,bottom:h.bottom-g.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((m,p)=>{let k=this.manager.tooltipViews[p];return k.getCoords?k.getCoords(m.pos):this.view.coordsAtPos(m.pos)}),size:this.manager.tooltipViews.map(({dom:m})=>m.getBoundingClientRect()),space:this.view.state.facet(bCe).tooltipSpace(this.view),scaleX:l,scaleY:s,makeAbsolute:u}}writeMeasure(l){var s;if(l.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let k of this.manager.tooltipViews)k.dom.style.position="absolute"}let{visible:u,space:h,scaleX:g,scaleY:m}=l,p=[];for(let k=0;k<this.manager.tooltips.length;k++){let S=this.manager.tooltips[k],C=this.manager.tooltipViews[k],{dom:N}=C,_=l.pos[k],P=l.size[k];if(!_||S.clip!==!1&&(_.bottom<=Math.max(u.top,h.top)||_.top>=Math.min(u.bottom,h.bottom)||_.right<Math.max(u.left,h.left)-.1||_.left>Math.min(u.right,h.right)+.1)){N.style.top=jfe;continue}let R=S.arrow?C.dom.querySelector(".cm-tooltip-arrow"):null,q=R?7:0,F=P.right-P.left,X=(s=G3t.get(C))!==null&&s!==void 0?s:P.bottom-P.top,J=C.offset||X0n,ee=this.view.textDirection==Zl.LTR,te=P.width>h.right-h.left?ee?h.left:h.right-P.width:ee?Math.max(h.left,Math.min(_.left-(R?14:0)+J.x,h.right-F)):Math.min(Math.max(h.left,_.left-F+(R?14:0)-J.x),h.right-F),ie=this.above[k];!S.strictSide&&(ie?_.top-X-q-J.y<h.top:_.bottom+X+q+J.y>h.bottom)&&ie==h.bottom-_.bottom>_.top-h.top&&(ie=this.above[k]=!ie);let oe=(ie?_.top-h.top:h.bottom-_.bottom)-q;if(oe<X&&C.resize!==!1){if(oe<this.view.defaultLineHeight){N.style.top=jfe;continue}G3t.set(C,X),N.style.height=(X=oe)/m+"px"}else N.style.height&&(N.style.height="");let se=ie?_.top-X-q-J.y:_.bottom+q+J.y,ge=te+F;if(C.overlap!==!0)for(let Ne of p)Ne.left<ge&&Ne.right>te&&Ne.top<se+X&&Ne.bottom>se&&(se=ie?Ne.top-X-2-q:Ne.bottom+q+2);if(this.position=="absolute"?(N.style.top=(se-l.parent.top)/m+"px",U3t(N,(te-l.parent.left)/g)):(N.style.top=se/m+"px",U3t(N,te/g)),R){let Ne=_.left+(ee?J.x:-J.x)-(te+14-7);R.style.left=Ne/g+"px"}C.overlap!==!0&&p.push({left:te,top:se,right:ge,bottom:se+X}),N.classList.toggle("cm-tooltip-above",ie),N.classList.toggle("cm-tooltip-below",!ie),C.positioned&&C.positioned(l.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let l of this.manager.tooltipViews)l.dom.style.top=jfe}},{eventObservers:{scroll(){this.maybeMeasure()}}});function U3t(l,s){let u=parseInt(l.style.left,10);(isNaN(u)||Math.abs(s-u)>1)&&(l.style.left=s+"px")}const V0n=Bi.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),X0n={x:0,y:0},xde=Ui.define({enables:[eNe,V0n]}),Lhe=Ui.define({combine:l=>l.reduce((s,u)=>s.concat(u),[])});class kde{static create(s){return new kde(s)}constructor(s){this.view=s,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new q6t(s,Lhe,(u,h)=>this.createHostedView(u,h),u=>u.dom.remove())}createHostedView(s,u){let h=s.create(this.view);return h.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(h.dom,u?u.dom.nextSibling:this.dom.firstChild),this.mounted&&h.mount&&h.mount(this.view),h}mount(s){for(let u of this.manager.tooltipViews)u.mount&&u.mount(s);this.mounted=!0}positioned(s){for(let u of this.manager.tooltipViews)u.positioned&&u.positioned(s)}update(s){this.manager.update(s)}destroy(){var s;for(let u of this.manager.tooltipViews)(s=u.destroy)===null||s===void 0||s.call(u)}passProp(s){let u;for(let h of this.manager.tooltipViews){let g=h[s];if(g!==void 0){if(u===void 0)u=g;else if(u!==g)return}}return u}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const W0n=xde.compute([Lhe],l=>{let s=l.facet(Lhe);return s.length===0?null:{pos:Math.min(...s.map(u=>u.pos)),end:Math.max(...s.map(u=>{var h;return(h=u.end)!==null&&h!==void 0?h:u.pos})),create:kde.create,above:s[0].above,arrow:s.some(u=>u.arrow)}});class K0n{constructor(s,u,h,g,m){this.view=s,this.source=u,this.field=h,this.setHover=g,this.hoverTime=m,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:s.dom,time:0},this.checkHover=this.checkHover.bind(this),s.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),s.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let s=Date.now()-this.lastMove.time;s<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-s):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:s,lastMove:u}=this,h=s.docView.tile.nearest(u.target);if(!h)return;let g,m=1;if(h.isWidget())g=h.posAtStart;else{if(g=s.posAtCoords(u),g==null)return;let k=s.coordsAtPos(g);if(!k||u.y<k.top||u.y>k.bottom||u.x<k.left-s.defaultCharacterWidth||u.x>k.right+s.defaultCharacterWidth)return;let S=s.bidiSpans(s.state.doc.lineAt(g)).find(N=>N.from<=g&&N.to>=g),C=S&&S.dir==Zl.RTL?-1:1;m=u.x<k.left?-C:C}let p=this.source(s,g,m);if(p!=null&&p.then){let k=this.pending={pos:g};p.then(S=>{this.pending==k&&(this.pending=null,S&&!(Array.isArray(S)&&!S.length)&&s.dispatch({effects:this.setHover.of(Array.isArray(S)?S:[S])}))},S=>yp(s.state,S,"hover tooltip"))}else p&&!(Array.isArray(p)&&!p.length)&&s.dispatch({effects:this.setHover.of(Array.isArray(p)?p:[p])})}get tooltip(){let s=this.view.plugin(eNe),u=s?s.manager.tooltips.findIndex(h=>h.create==kde.create):-1;return u>-1?s.manager.tooltipViews[u]:null}mousemove(s){var u,h;this.lastMove={x:s.clientX,y:s.clientY,target:s.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:g,tooltip:m}=this;if(g.length&&m&&!Y0n(m.dom,s)||this.pending){let{pos:p}=g[0]||this.pending,k=(h=(u=g[0])===null||u===void 0?void 0:u.end)!==null&&h!==void 0?h:p;(p==k?this.view.posAtCoords(this.lastMove)!=p:!Z0n(this.view,p,k,s.clientX,s.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(s){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:u}=this;if(u.length){let{tooltip:h}=this;h&&h.dom.contains(s.relatedTarget)?this.watchTooltipLeave(h.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(s){let u=h=>{s.removeEventListener("mouseleave",u),this.active.length&&!this.view.dom.contains(h.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};s.addEventListener("mouseleave",u)}destroy(){clearTimeout(this.hoverTimeout),clearTimeout(this.restartTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const Tfe=4;function Y0n(l,s){let{left:u,right:h,top:g,bottom:m}=l.getBoundingClientRect(),p;if(p=l.querySelector(".cm-tooltip-arrow")){let k=p.getBoundingClientRect();g=Math.min(k.top,g),m=Math.max(k.bottom,m)}return s.clientX>=u-Tfe&&s.clientX<=h+Tfe&&s.clientY>=g-Tfe&&s.clientY<=m+Tfe}function Z0n(l,s,u,h,g,m){let p=l.scrollDOM.getBoundingClientRect(),k=l.documentTop+l.documentPadding.top+l.contentHeight;if(p.left>h||p.right<h||p.top>g||Math.min(p.bottom,k)<g)return!1;let S=l.posAtCoords({x:h,y:g},!1);return S>=s&&S<=u}function epn(l,s={}){let u=Ls.define(),h=kd.define({create(){return[]},update(g,m){if(g.length&&(s.hideOnChange&&(m.docChanged||m.selection)?g=[]:s.hideOn&&(g=g.filter(p=>!s.hideOn(m,p))),m.docChanged)){let p=[];for(let k of g){let S=m.changes.mapPos(k.pos,-1,s1.TrackDel);if(S!=null){let C=Object.assign(Object.create(null),k);C.pos=S,C.end!=null&&(C.end=m.changes.mapPos(C.end)),p.push(C)}}g=p}for(let p of m.effects)p.is(u)&&(g=p.value),p.is(tpn)&&(g=[]);return g},provide:g=>Lhe.from(g)});return{active:h,extension:[h,Qh.define(g=>new K0n(g,l,h,u,s.hoverTime||300)),W0n]}}function H6t(l,s){let u=l.plugin(eNe);if(!u)return null;let h=u.manager.tooltips.indexOf(s);return h<0?null:u.manager.tooltipViews[h]}const tpn=Ls.define(),J3t=Ui.define({combine(l){let s,u;for(let h of l)s=s||h.topContainer,u=u||h.bottomContainer;return{topContainer:s,bottomContainer:u}}});function Q6t(l,s){let u=l.plugin(G6t),h=u?u.specs.indexOf(s):-1;return h>-1?u.panels[h]:null}const G6t=Qh.fromClass(class{constructor(l){this.input=l.state.facet(AX),this.specs=this.input.filter(u=>u),this.panels=this.specs.map(u=>u(l));let s=l.state.facet(J3t);this.top=new Efe(l,!0,s.topContainer),this.bottom=new Efe(l,!1,s.bottomContainer),this.top.sync(this.panels.filter(u=>u.top)),this.bottom.sync(this.panels.filter(u=>!u.top));for(let u of this.panels)u.dom.classList.add("cm-panel"),u.mount&&u.mount()}update(l){let s=l.state.facet(J3t);this.top.container!=s.topContainer&&(this.top.sync([]),this.top=new Efe(l.view,!0,s.topContainer)),this.bottom.container!=s.bottomContainer&&(this.bottom.sync([]),this.bottom=new Efe(l.view,!1,s.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let u=l.state.facet(AX);if(u!=this.input){let h=u.filter(S=>S),g=[],m=[],p=[],k=[];for(let S of h){let C=this.specs.indexOf(S),N;C<0?(N=S(l.view),k.push(N)):(N=this.panels[C],N.update&&N.update(l)),g.push(N),(N.top?m:p).push(N)}this.specs=h,this.panels=g,this.top.sync(m),this.bottom.sync(p);for(let S of k)S.dom.classList.add("cm-panel"),S.mount&&S.mount()}else for(let h of this.panels)h.update&&h.update(l)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:l=>Bi.scrollMargins.of(s=>{let u=s.plugin(l);return u&&{top:u.top.scrollMargin(),bottom:u.bottom.scrollMargin()}})});class Efe{constructor(s,u,h){this.view=s,this.top=u,this.container=h,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(s){for(let u of this.panels)u.destroy&&s.indexOf(u)<0&&u.destroy();this.panels=s,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let u=this.container||this.view.dom;u.insertBefore(this.dom,this.top?u.firstChild:null)}let s=this.dom.firstChild;for(let u of this.panels)if(u.dom.parentNode==this.dom){for(;s!=u.dom;)s=V3t(s);s=s.nextSibling}else this.dom.insertBefore(u.dom,s);for(;s;)s=V3t(s)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let s of this.classes.split(" "))s&&this.container.classList.remove(s);for(let s of(this.classes=this.view.themeClasses).split(" "))s&&this.container.classList.add(s)}}}function V3t(l){let s=l.nextSibling;return l.remove(),s}const AX=Ui.define({enables:G6t});function npn(l,s){let u,h=new Promise(p=>u=p),g=p=>ipn(p,s,u);l.state.field(mCe,!1)?l.dispatch({effects:U6t.of(g)}):l.dispatch({effects:Ls.appendConfig.of(mCe.init(()=>[g]))});let m=J6t.of(g);return{close:m,result:h.then(p=>((l.win.queueMicrotask||(S=>l.win.setTimeout(S,10)))(()=>{l.state.field(mCe).indexOf(g)>-1&&l.dispatch({effects:m})}),p))}}const mCe=kd.define({create(){return[]},update(l,s){for(let u of s.effects)u.is(U6t)?l=[u.value].concat(l):u.is(J6t)&&(l=l.filter(h=>h!=u.value));return l},provide:l=>AX.computeN([l],s=>s.field(l))}),U6t=Ls.define(),J6t=Ls.define();function ipn(l,s,u){let h=s.content?s.content(l,()=>p(null)):null;if(!h){if(h=Bl("form"),s.input){let k=Bl("input",s.input);/^(text|password|number|email|tel|url)$/.test(k.type)&&k.classList.add("cm-textfield"),k.name||(k.name="input"),h.appendChild(Bl("label",(s.label||"")+": ",k))}else h.appendChild(document.createTextNode(s.label||""));h.appendChild(document.createTextNode(" ")),h.appendChild(Bl("button",{class:"cm-button",type:"submit"},s.submitLabel||"OK"))}let g=h.nodeName=="FORM"?[h]:h.querySelectorAll("form");for(let k=0;k<g.length;k++){let S=g[k];S.addEventListener("keydown",C=>{C.keyCode==27?(C.preventDefault(),p(null)):C.keyCode==13&&(C.preventDefault(),p(S))}),S.addEventListener("submit",C=>{C.preventDefault(),p(S)})}let m=Bl("div",h,Bl("button",{onclick:()=>p(null),"aria-label":l.state.phrase("close"),class:"cm-dialog-close",type:"button"},["×"]));s.class&&(m.className=s.class),m.classList.add("cm-dialog");function p(k){m.contains(m.ownerDocument.activeElement)&&l.focus(),u(k)}return{dom:m,top:s.top,mount:()=>{if(s.focus){let k;typeof s.focus=="string"?k=h.querySelector(s.focus):k=h.querySelector("input")||h.querySelector("button"),k&&"select"in k?k.select():k&&"focus"in k&&k.focus()}}}}class s5 extends $9{compare(s){return this==s||this.constructor==s.constructor&&this.eq(s)}eq(s){return!1}destroy(s){}}s5.prototype.elementClass="";s5.prototype.toDOM=void 0;s5.prototype.mapMode=s1.TrackBefore;s5.prototype.startSide=s5.prototype.endSide=-1;s5.prototype.point=!0;const ihe=Ui.define(),rpn=Ui.define(),spn={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>yo.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},uX=Ui.define();function V6t(l){return[X6t(),uX.of({...spn,...l})]}const X3t=Ui.define({combine:l=>l.some(s=>s)});function X6t(l){return[opn]}const opn=Qh.fromClass(class{constructor(l){this.view=l,this.domAfter=null,this.prevViewport=l.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=l.state.facet(uX).map(s=>new K3t(l,s)),this.fixed=!l.state.facet(X3t);for(let s of this.gutters)s.config.side=="after"?this.getDOMAfter().appendChild(s.dom):this.dom.appendChild(s.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),l.scrollDOM.insertBefore(this.dom,l.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(l){if(this.updateGutters(l)){let s=this.prevViewport,u=l.view.viewport,h=Math.min(s.to,u.to)-Math.max(s.from,u.from);this.syncGutters(h<(u.to-u.from)*.8)}if(l.geometryChanged){let s=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=s,this.domAfter&&(this.domAfter.style.minHeight=s)}this.view.state.facet(X3t)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=l.view.viewport}syncGutters(l){let s=this.dom.nextSibling;l&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let u=yo.iter(this.view.state.facet(ihe),this.view.viewport.from),h=[],g=this.gutters.map(m=>new cpn(m,this.view.viewport,-this.view.documentPadding.top));for(let m of this.view.viewportLineBlocks)if(h.length&&(h=[]),Array.isArray(m.type)){let p=!0;for(let k of m.type)if(k.type==o1.Text&&p){UMe(u,h,k.from);for(let S of g)S.line(this.view,k,h);p=!1}else if(k.widget)for(let S of g)S.widget(this.view,k)}else if(m.type==o1.Text){UMe(u,h,m.from);for(let p of g)p.line(this.view,m,h)}else if(m.widget)for(let p of g)p.widget(this.view,m);for(let m of g)m.finish();l&&(this.view.scrollDOM.insertBefore(this.dom,s),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(l){let s=l.startState.facet(uX),u=l.state.facet(uX),h=l.docChanged||l.heightChanged||l.viewportChanged||!yo.eq(l.startState.facet(ihe),l.state.facet(ihe),l.view.viewport.from,l.view.viewport.to);if(s==u)for(let g of this.gutters)g.update(l)&&(h=!0);else{h=!0;let g=[];for(let m of u){let p=s.indexOf(m);p<0?g.push(new K3t(this.view,m)):(this.gutters[p].update(l),g.push(this.gutters[p]))}for(let m of this.gutters)m.dom.remove(),g.indexOf(m)<0&&m.destroy();for(let m of g)m.config.side=="after"?this.getDOMAfter().appendChild(m.dom):this.dom.appendChild(m.dom);this.gutters=g}return h}destroy(){for(let l of this.gutters)l.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:l=>Bi.scrollMargins.of(s=>{let u=s.plugin(l);if(!u||u.gutters.length==0||!u.fixed)return null;let h=u.dom.offsetWidth*s.scaleX,g=u.domAfter?u.domAfter.offsetWidth*s.scaleX:0;return s.textDirection==Zl.LTR?{left:h,right:g}:{right:h,left:g}})});function W3t(l){return Array.isArray(l)?l:[l]}function UMe(l,s,u){for(;l.value&&l.from<=u;)l.from==u&&s.push(l.value),l.next()}class cpn{constructor(s,u,h){this.gutter=s,this.height=h,this.i=0,this.cursor=yo.iter(s.markers,u.from)}addElement(s,u,h){let{gutter:g}=this,m=(u.top-this.height)/s.scaleY,p=u.height/s.scaleY;if(this.i==g.elements.length){let k=new W6t(s,p,m,h);g.elements.push(k),g.dom.appendChild(k.dom)}else g.elements[this.i].update(s,p,m,h);this.height=u.bottom,this.i++}line(s,u,h){let g=[];UMe(this.cursor,g,u.from),h.length&&(g=g.concat(h));let m=this.gutter.config.lineMarker(s,u,g);m&&g.unshift(m);let p=this.gutter;g.length==0&&!p.config.renderEmptyElements||this.addElement(s,u,g)}widget(s,u){let h=this.gutter.config.widgetMarker(s,u.widget,u),g=h?[h]:null;for(let m of s.state.facet(rpn)){let p=m(s,u.widget,u);p&&(g||(g=[])).push(p)}g&&this.addElement(s,u,g)}finish(){let s=this.gutter;for(;s.elements.length>this.i;){let u=s.elements.pop();s.dom.removeChild(u.dom),u.destroy()}}}class K3t{constructor(s,u){this.view=s,this.config=u,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let h in u.domEventHandlers)this.dom.addEventListener(h,g=>{let m=g.target,p;if(m!=this.dom&&this.dom.contains(m)){for(;m.parentNode!=this.dom;)m=m.parentNode;let S=m.getBoundingClientRect();p=(S.top+S.bottom)/2}else p=g.clientY;let k=s.lineBlockAtHeight(p-s.documentTop);u.domEventHandlers[h](s,k,g)&&g.preventDefault()});this.markers=W3t(u.markers(s)),u.initialSpacer&&(this.spacer=new W6t(s,0,0,[u.initialSpacer(s)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(s){let u=this.markers;if(this.markers=W3t(this.config.markers(s.view)),this.spacer&&this.config.updateSpacer){let g=this.config.updateSpacer(this.spacer.markers[0],s);g!=this.spacer.markers[0]&&this.spacer.update(s.view,0,0,[g])}let h=s.view.viewport;return!yo.eq(this.markers,u,h.from,h.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(s):!1)}destroy(){for(let s of this.elements)s.destroy()}}class W6t{constructor(s,u,h,g){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(s,u,h,g)}update(s,u,h,g){this.height!=u&&(this.height=u,this.dom.style.height=u+"px"),this.above!=h&&(this.dom.style.marginTop=(this.above=h)?h+"px":""),lpn(this.markers,g)||this.setMarkers(s,g)}setMarkers(s,u){let h="cm-gutterElement",g=this.dom.firstChild;for(let m=0,p=0;;){let k=p,S=m<u.length?u[m++]:null,C=!1;if(S){let N=S.elementClass;N&&(h+=" "+N);for(let _=p;_<this.markers.length;_++)if(this.markers[_].compare(S)){k=_,C=!0;break}}else k=this.markers.length;for(;p<k;){let N=this.markers[p++];if(N.toDOM){N.destroy(g);let _=g.nextSibling;g.remove(),g=_}}if(!S)break;S.toDOM&&(C?g=g.nextSibling:this.dom.insertBefore(S.toDOM(s),g)),C&&p++}this.dom.className=h,this.markers=u}destroy(){this.setMarkers(null,[])}}function lpn(l,s){if(l.length!=s.length)return!1;for(let u=0;u<l.length;u++)if(!l[u].compare(s[u]))return!1;return!0}const upn=Ui.define(),apn=Ui.define(),_I=Ui.define({combine(l){return c5(l,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(s,u){let h=Object.assign({},s);for(let g in u){let m=h[g],p=u[g];h[g]=m?(k,S,C)=>m(k,S,C)||p(k,S,C):p}return h}})}});class wCe extends s5{constructor(s){super(),this.number=s}eq(s){return this.number==s.number}toDOM(){return document.createTextNode(this.number)}}function vCe(l,s){return l.state.facet(_I).formatNumber(s,l.state)}const fpn=uX.compute([_I],l=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(s){return s.state.facet(upn)},lineMarker(s,u,h){return h.some(g=>g.toDOM)?null:new wCe(vCe(s,s.state.doc.lineAt(u.from).number))},widgetMarker:(s,u,h)=>{for(let g of s.state.facet(apn)){let m=g(s,u,h);if(m)return m}return null},lineMarkerChange:s=>s.startState.facet(_I)!=s.state.facet(_I),initialSpacer(s){return new wCe(vCe(s,Y3t(s.state.doc.lines)))},updateSpacer(s,u){let h=vCe(u.view,Y3t(u.view.state.doc.lines));return h==s.number?s:new wCe(h)},domEventHandlers:l.facet(_I).domEventHandlers,side:"before"}));function hpn(l={}){return[_I.of(l),X6t(),fpn]}function Y3t(l){let s=9;for(;s<l;)s=s*10+9;return s}const dpn=new class extends s5{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},gpn=ihe.compute(["selection"],l=>{let s=[],u=-1;for(let h of l.selection.ranges){let g=l.doc.lineAt(h.head).from;g>u&&(u=g,s.push(dpn.range(g)))}return yo.of(s)});function ppn(){return gpn}const K6t=1024;let bpn=0;class yCe{constructor(s,u){this.from=s,this.to=u}}class Co{constructor(s={}){this.id=bpn++,this.perNode=!!s.perNode,this.deserialize=s.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=s.combine||null}add(s){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof s!="function"&&(s=Sp.match(s)),u=>{let h=s(u);return h===void 0?null:[this,h]}}}Co.closedBy=new Co({deserialize:l=>l.split(" ")});Co.openedBy=new Co({deserialize:l=>l.split(" ")});Co.group=new Co({deserialize:l=>l.split(" ")});Co.isolate=new Co({deserialize:l=>{if(l&&l!="rtl"&&l!="ltr"&&l!="auto")throw new RangeError("Invalid value for isolate: "+l);return l||"auto"}});Co.contextHash=new Co({perNode:!0});Co.lookAhead=new Co({perNode:!0});Co.mounted=new Co({perNode:!0});class aX{constructor(s,u,h,g=!1){this.tree=s,this.overlay=u,this.parser=h,this.bracketed=g}static get(s){return s&&s.props&&s.props[Co.mounted.id]}}const mpn=Object.create(null);class Sp{constructor(s,u,h,g=0){this.name=s,this.props=u,this.id=h,this.flags=g}static define(s){let u=s.props&&s.props.length?Object.create(null):mpn,h=(s.top?1:0)|(s.skipped?2:0)|(s.error?4:0)|(s.name==null?8:0),g=new Sp(s.name||"",u,s.id,h);if(s.props){for(let m of s.props)if(Array.isArray(m)||(m=m(g)),m){if(m[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");u[m[0].id]=m[1]}}return g}prop(s){return this.props[s.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(s){if(typeof s=="string"){if(this.name==s)return!0;let u=this.prop(Co.group);return u?u.indexOf(s)>-1:!1}return this.id==s}static match(s){let u=Object.create(null);for(let h in s)for(let g of h.split(" "))u[g]=s[h];return h=>{for(let g=h.prop(Co.group),m=-1;m<(g?g.length:0);m++){let p=u[m<0?h.name:g[m]];if(p)return p}}}}Sp.none=new Sp("",Object.create(null),0,8);class tNe{constructor(s){this.types=s;for(let u=0;u<s.length;u++)if(s[u].id!=u)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...s){let u=[];for(let h of this.types){let g=null;for(let m of s){let p=m(h);if(p){g||(g=Object.assign({},h.props));let k=p[1],S=p[0];S.combine&&S.id in g&&(k=S.combine(g[S.id],k)),g[S.id]=k}}u.push(g?new Sp(h.name,g,h.id,h.flags):h)}return new tNe(u)}}const Cfe=new WeakMap,Z3t=new WeakMap;var La;(function(l){l[l.ExcludeBuffers=1]="ExcludeBuffers",l[l.IncludeAnonymous=2]="IncludeAnonymous",l[l.IgnoreMounts=4]="IgnoreMounts",l[l.IgnoreOverlays=8]="IgnoreOverlays",l[l.EnterBracketed=16]="EnterBracketed"})(La||(La={}));class Bf{constructor(s,u,h,g,m){if(this.type=s,this.children=u,this.positions=h,this.length=g,this.props=null,m&&m.length){this.props=Object.create(null);for(let[p,k]of m)this.props[typeof p=="number"?p:p.id]=k}}toString(){let s=aX.get(this);if(s&&!s.overlay)return s.tree.toString();let u="";for(let h of this.children){let g=h.toString();g&&(u&&(u+=","),u+=g)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(u.length?"("+u+")":""):u}cursor(s=0){return new VMe(this.topNode,s)}cursorAt(s,u=0,h=0){let g=Cfe.get(this)||this.topNode,m=new VMe(g);return m.moveTo(s,u),Cfe.set(this,m._tree),m}get topNode(){return new kp(this,0,0,null)}resolve(s,u=0){let h=NX(Cfe.get(this)||this.topNode,s,u,!1);return Cfe.set(this,h),h}resolveInner(s,u=0){let h=NX(Z3t.get(this)||this.topNode,s,u,!0);return Z3t.set(this,h),h}resolveStack(s,u=0){return ypn(this,s,u)}iterate(s){let{enter:u,leave:h,from:g=0,to:m=this.length}=s,p=s.mode||0,k=(p&La.IncludeAnonymous)>0;for(let S=this.cursor(p|La.IncludeAnonymous);;){let C=!1;if(S.from<=m&&S.to>=g&&(!k&&S.type.isAnonymous||u(S)!==!1)){if(S.firstChild())continue;C=!0}for(;C&&h&&(k||!S.type.isAnonymous)&&h(S),!S.nextSibling();){if(!S.parent())return;C=!0}}}prop(s){return s.perNode?this.props?this.props[s.id]:void 0:this.type.prop(s)}get propValues(){let s=[];if(this.props)for(let u in this.props)s.push([+u,this.props[u]]);return s}balance(s={}){return this.children.length<=8?this:rNe(Sp.none,this.children,this.positions,0,this.children.length,0,this.length,(u,h,g)=>new Bf(this.type,u,h,g,this.propValues),s.makeTree||((u,h,g)=>new Bf(Sp.none,u,h,g)))}static build(s){return xpn(s)}}Bf.empty=new Bf(Sp.none,[],[],0);class nNe{constructor(s,u){this.buffer=s,this.index=u}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new nNe(this.buffer,this.index)}}class H9{constructor(s,u,h){this.buffer=s,this.length=u,this.set=h}get type(){return Sp.none}toString(){let s=[];for(let u=0;u<this.buffer.length;)s.push(this.childString(u)),u=this.buffer[u+3];return s.join(",")}childString(s){let u=this.buffer[s],h=this.buffer[s+3],g=this.set.types[u],m=g.name;if(/\W/.test(m)&&!g.isError&&(m=JSON.stringify(m)),s+=4,h==s)return m;let p=[];for(;s<h;)p.push(this.childString(s)),s=this.buffer[s+3];return m+"("+p.join(",")+")"}findChild(s,u,h,g,m){let{buffer:p}=this,k=-1;for(let S=s;S!=u&&!(Y6t(m,g,p[S+1],p[S+2])&&(k=S,h>0));S=p[S+3]);return k}slice(s,u,h){let g=this.buffer,m=new Uint16Array(u-s),p=0;for(let k=s,S=0;k<u;){m[S++]=g[k++],m[S++]=g[k++]-h;let C=m[S++]=g[k++]-h;m[S++]=g[k++]-s,p=Math.max(p,C)}return new H9(m,p,this.set)}}function Y6t(l,s,u,h){switch(l){case-2:return u<s;case-1:return h>=s&&u<s;case 0:return u<s&&h>s;case 1:return u<=s&&h>s;case 2:return h>s;case 4:return!0}}function NX(l,s,u,h){for(var g;l.from==l.to||(u<1?l.from>=s:l.from>s)||(u>-1?l.to<=s:l.to<s);){let p=!h&&l instanceof kp&&l.index<0?null:l.parent;if(!p)return l;l=p}let m=h?0:La.IgnoreOverlays;if(h)for(let p=l,k=p.parent;k;p=k,k=p.parent)p instanceof kp&&p.index<0&&((g=k.enter(s,u,m))===null||g===void 0?void 0:g.from)!=p.from&&(l=k);for(;;){let p=l.enter(s,u,m);if(!p)return l;l=p}}class Z6t{cursor(s=0){return new VMe(this,s)}getChild(s,u=null,h=null){let g=e5t(this,s,u,h);return g.length?g[0]:null}getChildren(s,u=null,h=null){return e5t(this,s,u,h)}resolve(s,u=0){return NX(this,s,u,!1)}resolveInner(s,u=0){return NX(this,s,u,!0)}matchContext(s){return JMe(this.parent,s)}enterUnfinishedNodesBefore(s){let u=this.childBefore(s),h=this;for(;u;){let g=u.lastChild;if(!g||g.to!=u.to)break;g.type.isError&&g.from==g.to?(h=u,u=g.prevSibling):u=g}return h}get node(){return this}get next(){return this.parent}}class kp extends Z6t{constructor(s,u,h,g){super(),this._tree=s,this.from=u,this.index=h,this._parent=g}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(s,u,h,g,m=0){for(let p=this;;){for(let{children:k,positions:S}=p._tree,C=u>0?k.length:-1;s!=C;s+=u){let N=k[s],_=S[s]+p.from,P;if(!(!(m&La.EnterBracketed&&N instanceof Bf&&(P=aX.get(N))&&!P.overlay&&P.bracketed&&h>=_&&h<=_+N.length)&&!Y6t(g,h,_,_+N.length))){if(N instanceof H9){if(m&La.ExcludeBuffers)continue;let R=N.findChild(0,N.buffer.length,u,h-_,g);if(R>-1)return new W3(new wpn(p,N,s,_),null,R)}else if(m&La.IncludeAnonymous||!N.type.isAnonymous||iNe(N)){let R;if(!(m&La.IgnoreMounts)&&(R=aX.get(N))&&!R.overlay)return new kp(R.tree,_,s,p);let q=new kp(N,_,s,p);return m&La.IncludeAnonymous||!q.type.isAnonymous?q:q.nextChild(u<0?N.children.length-1:0,u,h,g,m)}}}if(m&La.IncludeAnonymous||!p.type.isAnonymous||(p.index>=0?s=p.index+u:s=u<0?-1:p._parent._tree.children.length,p=p._parent,!p))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(s){return this.nextChild(0,1,s,2)}childBefore(s){return this.nextChild(this._tree.children.length-1,-1,s,-2)}prop(s){return this._tree.prop(s)}enter(s,u,h=0){let g;if(!(h&La.IgnoreOverlays)&&(g=aX.get(this._tree))&&g.overlay){let m=s-this.from,p=h&La.EnterBracketed&&g.bracketed;for(let{from:k,to:S}of g.overlay)if((u>0||p?k<=m:k<m)&&(u<0||p?S>=m:S>m))return new kp(g.tree,g.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,s,u,h)}nextSignificantParent(){let s=this;for(;s.type.isAnonymous&&s._parent;)s=s._parent;return s}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function e5t(l,s,u,h){let g=l.cursor(),m=[];if(!g.firstChild())return m;if(u!=null){for(let p=!1;!p;)if(p=g.type.is(u),!g.nextSibling())return m}for(;;){if(h!=null&&g.type.is(h))return m;if(g.type.is(s)&&m.push(g.node),!g.nextSibling())return h==null?m:[]}}function JMe(l,s,u=s.length-1){for(let h=l;u>=0;h=h.parent){if(!h)return!1;if(!h.type.isAnonymous){if(s[u]&&s[u]!=h.name)return!1;u--}}return!0}class wpn{constructor(s,u,h,g){this.parent=s,this.buffer=u,this.index=h,this.start=g}}class W3 extends Z6t{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(s,u,h){super(),this.context=s,this._parent=u,this.index=h,this.type=s.buffer.set.types[s.buffer.buffer[h]]}child(s,u,h){let{buffer:g}=this.context,m=g.findChild(this.index+4,g.buffer[this.index+3],s,u-this.context.start,h);return m<0?null:new W3(this.context,this,m)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(s){return this.child(1,s,2)}childBefore(s){return this.child(-1,s,-2)}prop(s){return this.type.prop(s)}enter(s,u,h=0){if(h&La.ExcludeBuffers)return null;let{buffer:g}=this.context,m=g.findChild(this.index+4,g.buffer[this.index+3],u>0?1:-1,s-this.context.start,u);return m<0?null:new W3(this.context,this,m)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(s){return this._parent?null:this.context.parent.nextChild(this.context.index+s,s,0,4)}get nextSibling(){let{buffer:s}=this.context,u=s.buffer[this.index+3];return u<(this._parent?s.buffer[this._parent.index+3]:s.buffer.length)?new W3(this.context,this._parent,u):this.externalSibling(1)}get prevSibling(){let{buffer:s}=this.context,u=this._parent?this._parent.index+4:0;return this.index==u?this.externalSibling(-1):new W3(this.context,this._parent,s.findChild(u,this.index,-1,0,4))}get tree(){return null}toTree(){let s=[],u=[],{buffer:h}=this.context,g=this.index+4,m=h.buffer[this.index+3];if(m>g){let p=h.buffer[this.index+1];s.push(h.slice(g,m,p)),u.push(0)}return new Bf(this.type,s,u,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function eSt(l){if(!l.length)return null;let s=0,u=l[0];for(let m=1;m<l.length;m++){let p=l[m];(p.from>u.from||p.to<u.to)&&(u=p,s=m)}let h=u instanceof kp&&u.index<0?null:u.parent,g=l.slice();return h?g[s]=h:g.splice(s,1),new vpn(g,u)}class vpn{constructor(s,u){this.heads=s,this.node=u}get next(){return eSt(this.heads)}}function ypn(l,s,u){let h=l.resolveInner(s,u),g=null;for(let m=h instanceof kp?h:h.context.parent;m;m=m.parent)if(m.index<0){let p=m.parent;(g||(g=[h])).push(p.resolve(s,u)),m=p}else{let p=aX.get(m.tree);if(p&&p.overlay&&p.overlay[0].from<=s&&p.overlay[p.overlay.length-1].to>=s){let k=new kp(p.tree,p.overlay[0].from+m.from,-1,m);(g||(g=[h])).push(NX(k,s,u,!1))}}return g?eSt(g):h}class VMe{get name(){return this.type.name}constructor(s,u=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=u&~La.EnterBracketed,s instanceof kp)this.yieldNode(s);else{this._tree=s.context.parent,this.buffer=s.context;for(let h=s._parent;h;h=h._parent)this.stack.unshift(h.index);this.bufferNode=s,this.yieldBuf(s.index)}}yieldNode(s){return s?(this._tree=s,this.type=s.type,this.from=s.from,this.to=s.to,!0):!1}yieldBuf(s,u){this.index=s;let{start:h,buffer:g}=this.buffer;return this.type=u||g.set.types[g.buffer[s]],this.from=h+g.buffer[s+1],this.to=h+g.buffer[s+2],!0}yield(s){return s?s instanceof kp?(this.buffer=null,this.yieldNode(s)):(this.buffer=s.context,this.yieldBuf(s.index,s.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(s,u,h){if(!this.buffer)return this.yield(this._tree.nextChild(s<0?this._tree._tree.children.length-1:0,s,u,h,this.mode));let{buffer:g}=this.buffer,m=g.findChild(this.index+4,g.buffer[this.index+3],s,u-this.buffer.start,h);return m<0?!1:(this.stack.push(this.index),this.yieldBuf(m))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(s){return this.enterChild(1,s,2)}childBefore(s){return this.enterChild(-1,s,-2)}enter(s,u,h=this.mode){return this.buffer?h&La.ExcludeBuffers?!1:this.enterChild(1,s,u):this.yield(this._tree.enter(s,u,h))}parent(){if(!this.buffer)return this.yieldNode(this.mode&La.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let s=this.mode&La.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(s)}sibling(s){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+s,s,0,4,this.mode)):!1;let{buffer:u}=this.buffer,h=this.stack.length-1;if(s<0){let g=h<0?0:this.stack[h]+4;if(this.index!=g)return this.yieldBuf(u.findChild(g,this.index,-1,0,4))}else{let g=u.buffer[this.index+3];if(g<(h<0?u.buffer.length:u.buffer[this.stack[h]+3]))return this.yieldBuf(g)}return h<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+s,s,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(s){let u,h,{buffer:g}=this;if(g){if(s>0){if(this.index<g.buffer.buffer.length)return!1}else for(let m=0;m<this.index;m++)if(g.buffer.buffer[m+3]<this.index)return!1;({index:u,parent:h}=g)}else({index:u,_parent:h}=this._tree);for(;h;{index:u,_parent:h}=h)if(u>-1)for(let m=u+s,p=s<0?-1:h._tree.children.length;m!=p;m+=s){let k=h._tree.children[m];if(this.mode&La.IncludeAnonymous||k instanceof H9||!k.type.isAnonymous||iNe(k))return!1}return!0}move(s,u){if(u&&this.enterChild(s,0,4))return!0;for(;;){if(this.sibling(s))return!0;if(this.atLastNode(s)||!this.parent())return!1}}next(s=!0){return this.move(1,s)}prev(s=!0){return this.move(-1,s)}moveTo(s,u=0){for(;(this.from==this.to||(u<1?this.from>=s:this.from>s)||(u>-1?this.to<=s:this.to<s))&&this.parent(););for(;this.enterChild(1,s,u););return this}get node(){if(!this.buffer)return this._tree;let s=this.bufferNode,u=null,h=0;if(s&&s.context==this.buffer)e:for(let g=this.index,m=this.stack.length;m>=0;){for(let p=s;p;p=p._parent)if(p.index==g){if(g==this.index)return p;u=p,h=m+1;break e}g=this.stack[--m]}for(let g=h;g<this.stack.length;g++)u=new W3(this.buffer,u,this.stack[g]);return this.bufferNode=new W3(this.buffer,u,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(s,u){for(let h=0;;){let g=!1;if(this.type.isAnonymous||s(this)!==!1){if(this.firstChild()){h++;continue}this.type.isAnonymous||(g=!0)}for(;;){if(g&&u&&u(this),g=this.type.isAnonymous,!h)return;if(this.nextSibling())break;this.parent(),h--,g=!0}}}matchContext(s){if(!this.buffer)return JMe(this.node.parent,s);let{buffer:u}=this.buffer,{types:h}=u.set;for(let g=s.length-1,m=this.stack.length-1;g>=0;m--){if(m<0)return JMe(this._tree,s,g);let p=h[u.buffer[this.stack[m]]];if(!p.isAnonymous){if(s[g]&&s[g]!=p.name)return!1;g--}}return!0}}function iNe(l){return l.children.some(s=>s instanceof H9||!s.type.isAnonymous||iNe(s))}function xpn(l){var s;let{buffer:u,nodeSet:h,maxBufferLength:g=K6t,reused:m=[],minRepeatType:p=h.types.length}=l,k=Array.isArray(u)?new nNe(u,u.length):u,S=h.types,C=0,N=0;function _(oe,se,ge,Ne,qe,Ke){let{id:Le,start:we,end:Z,size:pe}=k,Re=N,he=C;if(pe<0)if(k.next(),pe==-1){let Ce=m[Le];ge.push(Ce),Ne.push(we-oe);return}else if(pe==-3){C=Le;return}else if(pe==-4){N=Le;return}else throw new RangeError(`Unrecognized record size: ${pe}`);let Ee=S[Le],Te,ye,ft=we-oe;if(Z-we<=g&&(ye=X(k.pos-se,qe))){let Ce=new Uint16Array(ye.size-ye.skip),We=k.pos-ye.size,gt=Ce.length;for(;k.pos>We;)gt=J(ye.start,Ce,gt);Te=new H9(Ce,Z-ye.start,h),ft=ye.start-oe}else{let Ce=k.pos-pe;k.next();let We=[],gt=[],Ot=Le>=p?Le:-1,dt=0,cn=Z;for(;k.pos>Ce;)Ot>=0&&k.id==Ot&&k.size>=0?(k.end<=cn-g&&(q(We,gt,we,dt,k.end,cn,Ot,Re,he),dt=We.length,cn=k.end),k.next()):Ke>2500?P(we,Ce,We,gt):_(we,Ce,We,gt,Ot,Ke+1);if(Ot>=0&&dt>0&&dt<We.length&&q(We,gt,we,dt,we,cn,Ot,Re,he),We.reverse(),gt.reverse(),Ot>-1&&dt>0){let dn=R(Ee,he);Te=rNe(Ee,We,gt,0,We.length,0,Z-we,dn,dn)}else Te=F(Ee,We,gt,Z-we,Re-Z,he)}ge.push(Te),Ne.push(ft)}function P(oe,se,ge,Ne){let qe=[],Ke=0,Le=-1;for(;k.pos>se;){let{id:we,start:Z,end:pe,size:Re}=k;if(Re>4)k.next();else{if(Le>-1&&Z<Le)break;Le<0&&(Le=pe-g),qe.push(we,Z,pe),Ke++,k.next()}}if(Ke){let we=new Uint16Array(Ke*4),Z=qe[qe.length-2];for(let pe=qe.length-3,Re=0;pe>=0;pe-=3)we[Re++]=qe[pe],we[Re++]=qe[pe+1]-Z,we[Re++]=qe[pe+2]-Z,we[Re++]=Re;ge.push(new H9(we,qe[2]-Z,h)),Ne.push(Z-oe)}}function R(oe,se){return(ge,Ne,qe)=>{let Ke=0,Le=ge.length-1,we,Z;if(Le>=0&&(we=ge[Le])instanceof Bf){if(!Le&&we.type==oe&&we.length==qe)return we;(Z=we.prop(Co.lookAhead))&&(Ke=Ne[Le]+we.length+Z)}return F(oe,ge,Ne,qe,Ke,se)}}function q(oe,se,ge,Ne,qe,Ke,Le,we,Z){let pe=[],Re=[];for(;oe.length>Ne;)pe.push(oe.pop()),Re.push(se.pop()+ge-qe);oe.push(F(h.types[Le],pe,Re,Ke-qe,we-Ke,Z)),se.push(qe-ge)}function F(oe,se,ge,Ne,qe,Ke,Le){if(Ke){let we=[Co.contextHash,Ke];Le=Le?[we].concat(Le):[we]}if(qe>25){let we=[Co.lookAhead,qe];Le=Le?[we].concat(Le):[we]}return new Bf(oe,se,ge,Ne,Le)}function X(oe,se){let ge=k.fork(),Ne=0,qe=0,Ke=0,Le=ge.end-g,we={size:0,start:0,skip:0};e:for(let Z=ge.pos-oe;ge.pos>Z;){let pe=ge.size;if(ge.id==se&&pe>=0){we.size=Ne,we.start=qe,we.skip=Ke,Ke+=4,Ne+=4,ge.next();continue}let Re=ge.pos-pe;if(pe<0||Re<Z||ge.start<Le)break;let he=ge.id>=p?4:0,Ee=ge.start;for(ge.next();ge.pos>Re;){if(ge.size<0)if(ge.size==-3||ge.size==-4)he+=4;else break e;else ge.id>=p&&(he+=4);ge.next()}qe=Ee,Ne+=pe,Ke+=he}return(se<0||Ne==oe)&&(we.size=Ne,we.start=qe,we.skip=Ke),we.size>4?we:void 0}function J(oe,se,ge){let{id:Ne,start:qe,end:Ke,size:Le}=k;if(k.next(),Le>=0&&Ne<p){let we=ge;if(Le>4){let Z=k.pos-(Le-4);for(;k.pos>Z;)ge=J(oe,se,ge)}se[--ge]=we,se[--ge]=Ke-oe,se[--ge]=qe-oe,se[--ge]=Ne}else Le==-3?C=Ne:Le==-4&&(N=Ne);return ge}let ee=[],te=[];for(;k.pos>0;)_(l.start||0,l.bufferStart||0,ee,te,-1,0);let ie=(s=l.length)!==null&&s!==void 0?s:ee.length?te[0]+ee[0].length:0;return new Bf(S[l.topID],ee.reverse(),te.reverse(),ie)}const t5t=new WeakMap;function rhe(l,s){if(!l.isAnonymous||s instanceof H9||s.type!=l)return 1;let u=t5t.get(s);if(u==null){u=1;for(let h of s.children){if(h.type!=l||!(h instanceof Bf)){u=1;break}u+=rhe(l,h)}t5t.set(s,u)}return u}function rNe(l,s,u,h,g,m,p,k,S){let C=0;for(let q=h;q<g;q++)C+=rhe(l,s[q]);let N=Math.ceil(C*1.5/8),_=[],P=[];function R(q,F,X,J,ee){for(let te=X;te<J;){let ie=te,oe=F[te],se=rhe(l,q[te]);for(te++;te<J;te++){let ge=rhe(l,q[te]);if(se+ge>=N)break;se+=ge}if(te==ie+1){if(se>N){let ge=q[ie];R(ge.children,ge.positions,0,ge.children.length,F[ie]+ee);continue}_.push(q[ie])}else{let ge=F[te-1]+q[te-1].length-oe;_.push(rNe(l,q,F,ie,te,oe,ge,null,S))}P.push(oe+ee-m)}}return R(s,u,h,g,0),(k||S)(_,P,p)}class kpn{constructor(){this.map=new WeakMap}setBuffer(s,u,h){let g=this.map.get(s);g||this.map.set(s,g=new Map),g.set(u,h)}getBuffer(s,u){let h=this.map.get(s);return h&&h.get(u)}set(s,u){s instanceof W3?this.setBuffer(s.context.buffer,s.index,u):s instanceof kp&&this.map.set(s.tree,u)}get(s){return s instanceof W3?this.getBuffer(s.context.buffer,s.index):s instanceof kp?this.map.get(s.tree):void 0}cursorSet(s,u){s.buffer?this.setBuffer(s.buffer.buffer,s.index,u):this.map.set(s.tree,u)}cursorGet(s){return s.buffer?this.getBuffer(s.buffer.buffer,s.index):this.map.get(s.tree)}}class PM{constructor(s,u,h,g,m=!1,p=!1){this.from=s,this.to=u,this.tree=h,this.offset=g,this.open=(m?1:0)|(p?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(s,u=[],h=!1){let g=[new PM(0,s.length,s,0,!1,h)];for(let m of u)m.to>s.length&&g.push(m);return g}static applyChanges(s,u,h=128){if(!u.length)return s;let g=[],m=1,p=s.length?s[0]:null;for(let k=0,S=0,C=0;;k++){let N=k<u.length?u[k]:null,_=N?N.fromA:1e9;if(_-S>=h)for(;p&&p.from<_;){let P=p;if(S>=P.from||_<=P.to||C){let R=Math.max(P.from,S)-C,q=Math.min(P.to,_)-C;P=R>=q?null:new PM(R,q,P.tree,P.offset+C,k>0,!!N)}if(P&&g.push(P),p.to>_)break;p=m<s.length?s[m++]:null}if(!N)break;S=N.toA,C=N.toA-N.toB}return g}}class tSt{startParse(s,u,h){return typeof s=="string"&&(s=new Opn(s)),h=h?h.length?h.map(g=>new yCe(g.from,g.to)):[new yCe(0,0)]:[new yCe(0,s.length)],this.createParse(s,u||[],h)}parse(s,u,h){let g=this.startParse(s,u,h);for(;;){let m=g.advance();if(m)return m}}}class Opn{constructor(s){this.string=s}get length(){return this.string.length}chunk(s){return this.string.slice(s)}get lineChunks(){return!1}read(s,u){return this.string.slice(s,u)}}new Co({perNode:!0});var n5t={};class Phe{constructor(s,u,h,g,m,p,k,S,C,N=0,_){this.p=s,this.stack=u,this.state=h,this.reducePos=g,this.pos=m,this.score=p,this.buffer=k,this.bufferBase=S,this.curContext=C,this.lookAhead=N,this.parent=_}toString(){return`[${this.stack.filter((s,u)=>u%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(s,u,h=0){let g=s.parser.context;return new Phe(s,[],u,h,h,0,[],0,g?new i5t(g,g.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(s,u){this.stack.push(this.state,u,this.bufferBase+this.buffer.length),this.state=s}reduce(s){var u;let h=s>>19,g=s&65535,{parser:m}=this.p,p=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),k=m.dynamicPrecedence(g);if(k&&(this.score+=k),h==0){this.pushState(m.getGoto(this.state,g,!0),this.reducePos),g<m.minRepeatTerm&&this.storeNode(g,this.reducePos,this.reducePos,p?8:4,!0),this.reduceContext(g,this.reducePos);return}let S=this.stack.length-(h-1)*3-(s&262144?6:0),C=S?this.stack[S-2]:this.p.ranges[0].from,N=this.reducePos-C;N>=2e3&&!(!((u=this.p.parser.nodeSet.types[g])===null||u===void 0)&&u.isAnonymous)&&(C==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=N):this.p.lastBigReductionSize<N&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=C,this.p.lastBigReductionSize=N));let _=S?this.stack[S-1]:0,P=this.bufferBase+this.buffer.length-_;if(g<m.minRepeatTerm||s&131072){let R=m.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(g,C,R,P+4,!0)}if(s&262144)this.state=this.stack[S];else{let R=this.stack[S-3];this.state=m.getGoto(R,g,!0)}for(;this.stack.length>S;)this.stack.pop();this.reduceContext(g,C)}storeNode(s,u,h,g=4,m=!1){if(s==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let p=this,k=this.buffer.length;if(k==0&&p.parent&&(k=p.bufferBase-p.parent.bufferBase,p=p.parent),k>0&&p.buffer[k-4]==0&&p.buffer[k-1]>-1){if(u==h)return;if(p.buffer[k-2]>=u){p.buffer[k-2]=h;return}}}if(!m||this.pos==h)this.buffer.push(s,u,h,g);else{let p=this.buffer.length;if(p>0&&(this.buffer[p-4]!=0||this.buffer[p-1]<0)){let k=!1;for(let S=p;S>0&&this.buffer[S-2]>h;S-=4)if(this.buffer[S-1]>=0){k=!0;break}if(k)for(;p>0&&this.buffer[p-2]>h;)this.buffer[p]=this.buffer[p-4],this.buffer[p+1]=this.buffer[p-3],this.buffer[p+2]=this.buffer[p-2],this.buffer[p+3]=this.buffer[p-1],p-=4,g>4&&(g-=4)}this.buffer[p]=s,this.buffer[p+1]=u,this.buffer[p+2]=h,this.buffer[p+3]=g}}shift(s,u,h,g){if(s&131072)this.pushState(s&65535,this.pos);else if((s&262144)==0){let m=s,{parser:p}=this.p;this.pos=g;let k=p.stateFlag(m,1);!k&&(g>h||u<=p.maxNode)&&(this.reducePos=g),this.pushState(m,k?h:Math.min(h,this.reducePos)),this.shiftContext(u,h),u<=p.maxNode&&this.buffer.push(u,h,g,4)}else this.pos=g,this.shiftContext(u,h),u<=this.p.parser.maxNode&&this.buffer.push(u,h,g,4)}apply(s,u,h,g){s&65536?this.reduce(s):this.shift(s,u,h,g)}useNode(s,u){let h=this.p.reused.length-1;(h<0||this.p.reused[h]!=s)&&(this.p.reused.push(s),h++);let g=this.pos;this.reducePos=this.pos=g+s.length,this.pushState(u,g),this.buffer.push(h,g,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,s,this,this.p.stream.reset(this.pos-s.length)))}split(){let s=this,u=s.buffer.length;for(;u>0&&s.buffer[u-2]>s.reducePos;)u-=4;let h=s.buffer.slice(u),g=s.bufferBase+u;for(;s&&g==s.bufferBase;)s=s.parent;return new Phe(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,h,g,this.curContext,this.lookAhead,s)}recoverByDelete(s,u){let h=s<=this.p.parser.maxNode;h&&this.storeNode(s,this.pos,u,4),this.storeNode(0,this.pos,u,h?8:4),this.pos=this.reducePos=u,this.score-=190}canShift(s){for(let u=new Spn(this);;){let h=this.p.parser.stateSlot(u.state,4)||this.p.parser.hasAction(u.state,s);if(h==0)return!1;if((h&65536)==0)return!0;u.reduce(h)}}recoverByInsert(s){if(this.stack.length>=300)return[];let u=this.p.parser.nextStates(this.state);if(u.length>8||this.stack.length>=120){let g=[];for(let m=0,p;m<u.length;m+=2)(p=u[m+1])!=this.state&&this.p.parser.hasAction(p,s)&&g.push(u[m],p);if(this.stack.length<120)for(let m=0;g.length<8&&m<u.length;m+=2){let p=u[m+1];g.some((k,S)=>S&1&&k==p)||g.push(u[m],p)}u=g}let h=[];for(let g=0;g<u.length&&h.length<4;g+=2){let m=u[g+1];if(m==this.state)continue;let p=this.split();p.pushState(m,this.pos),p.storeNode(0,p.pos,p.pos,4,!0),p.shiftContext(u[g],this.pos),p.reducePos=this.pos,p.score-=200,h.push(p)}return h}forceReduce(){let{parser:s}=this.p,u=s.stateSlot(this.state,5);if((u&65536)==0)return!1;if(!s.validAction(this.state,u)){let h=u>>19,g=u&65535,m=this.stack.length-h*3;if(m<0||s.getGoto(this.stack[m],g,!1)<0){let p=this.findForcedReduction();if(p==null)return!1;u=p}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(u),!0}findForcedReduction(){let{parser:s}=this.p,u=[],h=(g,m)=>{if(!u.includes(g))return u.push(g),s.allActions(g,p=>{if(!(p&393216))if(p&65536){let k=(p>>19)-m;if(k>1){let S=p&65535,C=this.stack.length-k*3;if(C>=0&&s.getGoto(this.stack[C],S,!1)>=0)return k<<19|65536|S}}else{let k=h(p,m+1);if(k!=null)return k}})};return h(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:s}=this.p;return s.data[s.stateSlot(this.state,1)]==65535&&!s.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(s){if(this.state!=s.state||this.stack.length!=s.stack.length)return!1;for(let u=0;u<this.stack.length;u+=3)if(this.stack[u]!=s.stack[u])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(s){return this.p.parser.dialect.flags[s]}shiftContext(s,u){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,s,this,this.p.stream.reset(u)))}reduceContext(s,u){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,s,this,this.p.stream.reset(u)))}emitContext(){let s=this.buffer.length-1;(s<0||this.buffer[s]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let s=this.buffer.length-1;(s<0||this.buffer[s]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(s){if(s!=this.curContext.context){let u=new i5t(this.curContext.tracker,s);u.hash!=this.curContext.hash&&this.emitContext(),this.curContext=u}}setLookAhead(s){return s<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=s,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class i5t{constructor(s,u){this.tracker=s,this.context=u,this.hash=s.strict?s.hash(u):0}}class Spn{constructor(s){this.start=s,this.state=s.state,this.stack=s.stack,this.base=this.stack.length}reduce(s){let u=s&65535,h=s>>19;h==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(h-1)*3;let g=this.start.p.parser.getGoto(this.stack[this.base-3],u,!0);this.state=g}}class Ihe{constructor(s,u,h){this.stack=s,this.pos=u,this.index=h,this.buffer=s.buffer,this.index==0&&this.maybeNext()}static create(s,u=s.bufferBase+s.buffer.length){return new Ihe(s,u,u-s.bufferBase)}maybeNext(){let s=this.stack.parent;s!=null&&(this.index=this.stack.bufferBase-s.bufferBase,this.stack=s,this.buffer=s.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new Ihe(this.stack,this.pos,this.index)}}function Mfe(l,s=Uint16Array){if(typeof l!="string")return l;let u=null;for(let h=0,g=0;h<l.length;){let m=0;for(;;){let p=l.charCodeAt(h++),k=!1;if(p==126){m=65535;break}p>=92&&p--,p>=34&&p--;let S=p-32;if(S>=46&&(S-=46,k=!0),m+=S,k)break;m*=46}u?u[g++]=m:u=new s(m)}return u}class she{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const r5t=new she;class jpn{constructor(s,u){this.input=s,this.ranges=u,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=r5t,this.rangeIndex=0,this.pos=this.chunkPos=u[0].from,this.range=u[0],this.end=u[u.length-1].to,this.readNext()}resolveOffset(s,u){let h=this.range,g=this.rangeIndex,m=this.pos+s;for(;m<h.from;){if(!g)return null;let p=this.ranges[--g];m-=h.from-p.to,h=p}for(;u<0?m>h.to:m>=h.to;){if(g==this.ranges.length-1)return null;let p=this.ranges[++g];m+=p.from-h.to,h=p}return m}clipPos(s){if(s>=this.range.from&&s<this.range.to)return s;for(let u of this.ranges)if(u.to>s)return Math.max(s,u.from);return this.end}peek(s){let u=this.chunkOff+s,h,g;if(u>=0&&u<this.chunk.length)h=this.pos+s,g=this.chunk.charCodeAt(u);else{let m=this.resolveOffset(s,1);if(m==null)return-1;if(h=m,h>=this.chunk2Pos&&h<this.chunk2Pos+this.chunk2.length)g=this.chunk2.charCodeAt(h-this.chunk2Pos);else{let p=this.rangeIndex,k=this.range;for(;k.to<=h;)k=this.ranges[++p];this.chunk2=this.input.chunk(this.chunk2Pos=h),h+this.chunk2.length>k.to&&(this.chunk2=this.chunk2.slice(0,k.to-h)),g=this.chunk2.charCodeAt(0)}}return h>=this.token.lookAhead&&(this.token.lookAhead=h+1),g}acceptToken(s,u=0){let h=u?this.resolveOffset(u,-1):this.pos;if(h==null||h<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=s,this.token.end=h}acceptTokenTo(s,u){this.token.value=s,this.token.end=u}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:s,chunkPos:u}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=s,this.chunk2Pos=u,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let s=this.input.chunk(this.pos),u=this.pos+s.length;this.chunk=u>this.range.to?s.slice(0,this.range.to-this.pos):s,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(s=1){for(this.chunkOff+=s;this.pos+s>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();s-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=s,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(s,u){if(u?(this.token=u,u.start=s,u.lookAhead=s+1,u.value=u.extended=-1):this.token=r5t,this.pos!=s){if(this.pos=s,s==this.end)return this.setDone(),this;for(;s<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;s>=this.range.to;)this.range=this.ranges[++this.rangeIndex];s>=this.chunkPos&&s<this.chunkPos+this.chunk.length?this.chunkOff=s-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(s,u){if(s>=this.chunkPos&&u<=this.chunkPos+this.chunk.length)return this.chunk.slice(s-this.chunkPos,u-this.chunkPos);if(s>=this.chunk2Pos&&u<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(s-this.chunk2Pos,u-this.chunk2Pos);if(s>=this.range.from&&u<=this.range.to)return this.input.read(s,u);let h="";for(let g of this.ranges){if(g.from>=u)break;g.to>s&&(h+=this.input.read(Math.max(g.from,s),Math.min(g.to,u)))}return h}}class HI{constructor(s,u){this.data=s,this.id=u}token(s,u){let{parser:h}=u.p;Tpn(this.data,s,u,this.id,h.data,h.tokenPrecTable)}}HI.prototype.contextual=HI.prototype.fallback=HI.prototype.extend=!1;HI.prototype.fallback=HI.prototype.extend=!1;class Ode{constructor(s,u={}){this.token=s,this.contextual=!!u.contextual,this.fallback=!!u.fallback,this.extend=!!u.extend}}function Tpn(l,s,u,h,g,m){let p=0,k=1<<h,{dialect:S}=u.p.parser;e:for(;(k&l[p])!=0;){let C=l[p+1];for(let R=p+3;R<C;R+=2)if((l[R+1]&k)>0){let q=l[R];if(S.allows(q)&&(s.token.value==-1||s.token.value==q||Epn(q,s.token.value,g,m))){s.acceptToken(q);break}}let N=s.next,_=0,P=l[p+2];if(s.next<0&&P>_&&l[C+P*3-3]==65535){p=l[C+P*3-1];continue e}for(;_<P;){let R=_+P>>1,q=C+R+(R<<1),F=l[q],X=l[q+1]||65536;if(N<F)P=R;else if(N>=X)_=R+1;else{p=l[q+2],s.advance();continue e}}break}}function s5t(l,s,u){for(let h=s,g;(g=l[h])!=65535;h++)if(g==u)return h-s;return-1}function Epn(l,s,u,h){let g=s5t(u,h,s);return g<0||s5t(u,h,l)<g}const Vb=typeof process<"u"&&n5t&&/\bparse\b/.test(n5t.LOG);let xCe=null;function o5t(l,s,u){let h=l.cursor(La.IncludeAnonymous);for(h.moveTo(s);;)if(!(u<0?h.childBefore(s):h.childAfter(s)))for(;;){if((u<0?h.to<s:h.from>s)&&!h.type.isError)return u<0?Math.max(0,Math.min(h.to-1,s-25)):Math.min(l.length,Math.max(h.from+1,s+25));if(u<0?h.prevSibling():h.nextSibling())break;if(!h.parent())return u<0?0:l.length}}class Cpn{constructor(s,u){this.fragments=s,this.nodeSet=u,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let s=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(s){for(this.safeFrom=s.openStart?o5t(s.tree,s.from+s.offset,1)-s.offset:s.from,this.safeTo=s.openEnd?o5t(s.tree,s.to+s.offset,-1)-s.offset:s.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(s.tree),this.start.push(-s.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(s){if(s<this.nextStart)return null;for(;this.fragment&&this.safeTo<=s;)this.nextFragment();if(!this.fragment)return null;for(;;){let u=this.trees.length-1;if(u<0)return this.nextFragment(),null;let h=this.trees[u],g=this.index[u];if(g==h.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let m=h.children[g],p=this.start[u]+h.positions[g];if(p>s)return this.nextStart=p,null;if(m instanceof Bf){if(p==s){if(p<this.safeFrom)return null;let k=p+m.length;if(k<=this.safeTo){let S=m.prop(Co.lookAhead);if(!S||k+S<this.fragment.to)return m}}this.index[u]++,p+m.length>=Math.max(this.safeFrom,s)&&(this.trees.push(m),this.start.push(p),this.index.push(0))}else this.index[u]++,this.nextStart=p+m.length}}}class Mpn{constructor(s,u){this.stream=u,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=s.tokenizers.map(h=>new she)}getActions(s){let u=0,h=null,{parser:g}=s.p,{tokenizers:m}=g,p=g.stateSlot(s.state,3),k=s.curContext?s.curContext.hash:0,S=0;for(let C=0;C<m.length;C++){if((1<<C&p)==0)continue;let N=m[C],_=this.tokens[C];if(!(h&&!N.fallback)&&((N.contextual||_.start!=s.pos||_.mask!=p||_.context!=k)&&(this.updateCachedToken(_,N,s),_.mask=p,_.context=k),_.lookAhead>_.end+25&&(S=Math.max(_.lookAhead,S)),_.value!=0)){let P=u;if(_.extended>-1&&(u=this.addActions(s,_.extended,_.end,u)),u=this.addActions(s,_.value,_.end,u),!N.extend&&(h=_,u>P))break}}for(;this.actions.length>u;)this.actions.pop();return S&&s.setLookAhead(S),!h&&s.pos==this.stream.end&&(h=new she,h.value=s.p.parser.eofTerm,h.start=h.end=s.pos,u=this.addActions(s,h.value,h.end,u)),this.mainToken=h,this.actions}getMainToken(s){if(this.mainToken)return this.mainToken;let u=new she,{pos:h,p:g}=s;return u.start=h,u.end=Math.min(h+1,g.stream.end),u.value=h==g.stream.end?g.parser.eofTerm:0,u}updateCachedToken(s,u,h){let g=this.stream.clipPos(h.pos);if(u.token(this.stream.reset(g,s),h),s.value>-1){let{parser:m}=h.p;for(let p=0;p<m.specialized.length;p++)if(m.specialized[p]==s.value){let k=m.specializers[p](this.stream.read(s.start,s.end),h);if(k>=0&&h.p.parser.dialect.allows(k>>1)){(k&1)==0?s.value=k>>1:s.extended=k>>1;break}}}else s.value=0,s.end=this.stream.clipPos(g+1)}putAction(s,u,h,g){for(let m=0;m<g;m+=3)if(this.actions[m]==s)return g;return this.actions[g++]=s,this.actions[g++]=u,this.actions[g++]=h,g}addActions(s,u,h,g){let{state:m}=s,{parser:p}=s.p,{data:k}=p;for(let S=0;S<2;S++)for(let C=p.stateSlot(m,S?2:1);;C+=3){if(k[C]==65535)if(k[C+1]==1)C=uO(k,C+2);else{g==0&&k[C+1]==2&&(g=this.putAction(uO(k,C+2),u,h,g));break}k[C]==u&&(g=this.putAction(uO(k,C+1),u,h,g))}return g}}class Apn{constructor(s,u,h,g){this.parser=s,this.input=u,this.ranges=g,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new jpn(u,g),this.tokens=new Mpn(s,this.stream),this.topTerm=s.top[1];let{from:m}=g[0];this.stacks=[Phe.start(this,s.top[0],m)],this.fragments=h.length&&this.stream.end-m>s.bufferLength*4?new Cpn(h,s.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let s=this.stacks,u=this.minStackPos,h=this.stacks=[],g,m;if(this.bigReductionCount>300&&s.length==1){let[p]=s;for(;p.forceReduce()&&p.stack.length&&p.stack[p.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let p=0;p<s.length;p++){let k=s[p];for(;;){if(this.tokens.mainToken=null,k.pos>u)h.push(k);else{if(this.advanceStack(k,h,s))continue;{g||(g=[],m=[]),g.push(k);let S=this.tokens.getMainToken(k);m.push(S.value,S.end)}}break}}if(!h.length){let p=g&&Dpn(g);if(p)return Vb&&console.log("Finish with "+this.stackID(p)),this.stackToTree(p);if(this.parser.strict)throw Vb&&g&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+u);this.recovering||(this.recovering=5)}if(this.recovering&&g){let p=this.stoppedAt!=null&&g[0].pos>this.stoppedAt?g[0]:this.runRecovery(g,m,h);if(p)return Vb&&console.log("Force-finish "+this.stackID(p)),this.stackToTree(p.forceAll())}if(this.recovering){let p=this.recovering==1?1:this.recovering*3;if(h.length>p)for(h.sort((k,S)=>S.score-k.score);h.length>p;)h.pop();h.some(k=>k.reducePos>u)&&this.recovering--}else if(h.length>1){e:for(let p=0;p<h.length-1;p++){let k=h[p];for(let S=p+1;S<h.length;S++){let C=h[S];if(k.sameState(C)||k.buffer.length>500&&C.buffer.length>500)if((k.score-C.score||k.buffer.length-C.buffer.length)>0)h.splice(S--,1);else{h.splice(p--,1);continue e}}}h.length>12&&(h.sort((p,k)=>k.score-p.score),h.splice(12,h.length-12))}this.minStackPos=h[0].pos;for(let p=1;p<h.length;p++)h[p].pos<this.minStackPos&&(this.minStackPos=h[p].pos);return null}stopAt(s){if(this.stoppedAt!=null&&this.stoppedAt<s)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=s}advanceStack(s,u,h){let g=s.pos,{parser:m}=this,p=Vb?this.stackID(s)+" -> ":"";if(this.stoppedAt!=null&&g>this.stoppedAt)return s.forceReduce()?s:null;if(this.fragments){let C=s.curContext&&s.curContext.tracker.strict,N=C?s.curContext.hash:0;for(let _=this.fragments.nodeAt(g);_;){let P=this.parser.nodeSet.types[_.type.id]==_.type?m.getGoto(s.state,_.type.id):-1;if(P>-1&&_.length&&(!C||(_.prop(Co.contextHash)||0)==N))return s.useNode(_,P),Vb&&console.log(p+this.stackID(s)+` (via reuse of ${m.getName(_.type.id)})`),!0;if(!(_ instanceof Bf)||_.children.length==0||_.positions[0]>0)break;let R=_.children[0];if(R instanceof Bf&&_.positions[0]==0)_=R;else break}}let k=m.stateSlot(s.state,4);if(k>0)return s.reduce(k),Vb&&console.log(p+this.stackID(s)+` (via always-reduce ${m.getName(k&65535)})`),!0;if(s.stack.length>=8400)for(;s.stack.length>6e3&&s.forceReduce(););let S=this.tokens.getActions(s);for(let C=0;C<S.length;){let N=S[C++],_=S[C++],P=S[C++],R=C==S.length||!h,q=R?s:s.split(),F=this.tokens.mainToken;if(q.apply(N,_,F?F.start:q.pos,P),Vb&&console.log(p+this.stackID(q)+` (via ${(N&65536)==0?"shift":`reduce of ${m.getName(N&65535)}`} for ${m.getName(_)} @ ${g}${q==s?"":", split"})`),R)return!0;q.pos>g?u.push(q):h.push(q)}return!1}advanceFully(s,u){let h=s.pos;for(;;){if(!this.advanceStack(s,null,null))return!1;if(s.pos>h)return c5t(s,u),!0}}runRecovery(s,u,h){let g=null,m=!1;for(let p=0;p<s.length;p++){let k=s[p],S=u[p<<1],C=u[(p<<1)+1],N=Vb?this.stackID(k)+" -> ":"";if(k.deadEnd&&(m||(m=!0,k.restart(),Vb&&console.log(N+this.stackID(k)+" (restarted)"),this.advanceFully(k,h))))continue;let _=k.split(),P=N;for(let R=0;R<10&&_.forceReduce()&&(Vb&&console.log(P+this.stackID(_)+" (via force-reduce)"),!this.advanceFully(_,h));R++)Vb&&(P=this.stackID(_)+" -> ");for(let R of k.recoverByInsert(S))Vb&&console.log(N+this.stackID(R)+" (via recover-insert)"),this.advanceFully(R,h);this.stream.end>k.pos?(C==k.pos&&(C++,S=0),k.recoverByDelete(S,C),Vb&&console.log(N+this.stackID(k)+` (via recover-delete ${this.parser.getName(S)})`),c5t(k,h)):(!g||g.score<_.score)&&(g=_)}return g}stackToTree(s){return s.close(),Bf.build({buffer:Ihe.create(s),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:s.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(s){let u=(xCe||(xCe=new WeakMap)).get(s);return u||xCe.set(s,u=String.fromCodePoint(this.nextStackID++)),u+s}}function c5t(l,s){for(let u=0;u<s.length;u++){let h=s[u];if(h.pos==l.pos&&h.sameState(l)){s[u].score<l.score&&(s[u]=l);return}}s.push(l)}class Npn{constructor(s,u,h){this.source=s,this.flags=u,this.disabled=h}allows(s){return!this.disabled||this.disabled[s]==0}}const kCe=l=>l;class _pn{constructor(s){this.start=s.start,this.shift=s.shift||kCe,this.reduce=s.reduce||kCe,this.reuse=s.reuse||kCe,this.hash=s.hash||(()=>0),this.strict=s.strict!==!1}}class Rhe extends tSt{constructor(s){if(super(),this.wrappers=[],s.version!=14)throw new RangeError(`Parser version (${s.version}) doesn't match runtime version (14)`);let u=s.nodeNames.split(" ");this.minRepeatTerm=u.length;for(let k=0;k<s.repeatNodeCount;k++)u.push("");let h=Object.keys(s.topRules).map(k=>s.topRules[k][1]),g=[];for(let k=0;k<u.length;k++)g.push([]);function m(k,S,C){g[k].push([S,S.deserialize(String(C))])}if(s.nodeProps)for(let k of s.nodeProps){let S=k[0];typeof S=="string"&&(S=Co[S]);for(let C=1;C<k.length;){let N=k[C++];if(N>=0)m(N,S,k[C++]);else{let _=k[C+-N];for(let P=-N;P>0;P--)m(k[C++],S,_);C++}}}this.nodeSet=new tNe(u.map((k,S)=>Sp.define({name:S>=this.minRepeatTerm?void 0:k,id:S,props:g[S],top:h.indexOf(S)>-1,error:S==0,skipped:s.skippedNodes&&s.skippedNodes.indexOf(S)>-1}))),s.propSources&&(this.nodeSet=this.nodeSet.extend(...s.propSources)),this.strict=!1,this.bufferLength=K6t;let p=Mfe(s.tokenData);this.context=s.context,this.specializerSpecs=s.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let k=0;k<this.specializerSpecs.length;k++)this.specialized[k]=this.specializerSpecs[k].term;this.specializers=this.specializerSpecs.map(l5t),this.states=Mfe(s.states,Uint32Array),this.data=Mfe(s.stateData),this.goto=Mfe(s.goto),this.maxTerm=s.maxTerm,this.tokenizers=s.tokenizers.map(k=>typeof k=="number"?new HI(p,k):k),this.topRules=s.topRules,this.dialects=s.dialects||{},this.dynamicPrecedences=s.dynamicPrecedences||null,this.tokenPrecTable=s.tokenPrec,this.termNames=s.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(s,u,h){let g=new Apn(this,s,u,h);for(let m of this.wrappers)g=m(g,s,u,h);return g}getGoto(s,u,h=!1){let g=this.goto;if(u>=g[0])return-1;for(let m=g[u+1];;){let p=g[m++],k=p&1,S=g[m++];if(k&&h)return S;for(let C=m+(p>>1);m<C;m++)if(g[m]==s)return S;if(k)return-1}}hasAction(s,u){let h=this.data;for(let g=0;g<2;g++)for(let m=this.stateSlot(s,g?2:1),p;;m+=3){if((p=h[m])==65535)if(h[m+1]==1)p=h[m=uO(h,m+2)];else{if(h[m+1]==2)return uO(h,m+2);break}if(p==u||p==0)return uO(h,m+1)}return 0}stateSlot(s,u){return this.states[s*6+u]}stateFlag(s,u){return(this.stateSlot(s,0)&u)>0}validAction(s,u){return!!this.allActions(s,h=>h==u?!0:null)}allActions(s,u){let h=this.stateSlot(s,4),g=h?u(h):void 0;for(let m=this.stateSlot(s,1);g==null;m+=3){if(this.data[m]==65535)if(this.data[m+1]==1)m=uO(this.data,m+2);else break;g=u(uO(this.data,m+1))}return g}nextStates(s){let u=[];for(let h=this.stateSlot(s,1);;h+=3){if(this.data[h]==65535)if(this.data[h+1]==1)h=uO(this.data,h+2);else break;if((this.data[h+2]&1)==0){let g=this.data[h+1];u.some((m,p)=>p&1&&m==g)||u.push(this.data[h],g)}}return u}configure(s){let u=Object.assign(Object.create(Rhe.prototype),this);if(s.props&&(u.nodeSet=this.nodeSet.extend(...s.props)),s.top){let h=this.topRules[s.top];if(!h)throw new RangeError(`Invalid top rule name ${s.top}`);u.top=h}return s.tokenizers&&(u.tokenizers=this.tokenizers.map(h=>{let g=s.tokenizers.find(m=>m.from==h);return g?g.to:h})),s.specializers&&(u.specializers=this.specializers.slice(),u.specializerSpecs=this.specializerSpecs.map((h,g)=>{let m=s.specializers.find(k=>k.from==h.external);if(!m)return h;let p=Object.assign(Object.assign({},h),{external:m.to});return u.specializers[g]=l5t(p),p})),s.contextTracker&&(u.context=s.contextTracker),s.dialect&&(u.dialect=this.parseDialect(s.dialect)),s.strict!=null&&(u.strict=s.strict),s.wrap&&(u.wrappers=u.wrappers.concat(s.wrap)),s.bufferLength!=null&&(u.bufferLength=s.bufferLength),u}hasWrappers(){return this.wrappers.length>0}getName(s){return this.termNames?this.termNames[s]:String(s<=this.maxNode&&this.nodeSet.types[s].name||s)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(s){let u=this.dynamicPrecedences;return u==null?0:u[s]||0}parseDialect(s){let u=Object.keys(this.dialects),h=u.map(()=>!1);if(s)for(let m of s.split(" ")){let p=u.indexOf(m);p>=0&&(h[p]=!0)}let g=null;for(let m=0;m<u.length;m++)if(!h[m])for(let p=this.dialects[u[m]],k;(k=this.data[p++])!=65535;)(g||(g=new Uint8Array(this.maxTerm+1)))[k]=1;return new Npn(s,h,g)}static deserialize(s){return new Rhe(s)}}function uO(l,s){return l[s]|l[s+1]<<16}function Dpn(l){let s=null;for(let u of l){let h=u.p.stoppedAt;(u.pos==u.p.stream.end||h!=null&&u.pos>h)&&u.p.parser.stateFlag(u.state,2)&&(!s||s.score<u.score)&&(s=u)}return s}function l5t(l){if(l.external){let s=l.extend?1:0;return(u,h)=>l.external(u,h)<<1|s}return l.get}let Lpn=0;class Jw{constructor(s,u,h,g){this.name=s,this.set=u,this.base=h,this.modified=g,this.id=Lpn++}toString(){let{name:s}=this;for(let u of this.modified)u.name&&(s=`${u.name}(${s})`);return s}static define(s,u){let h=typeof s=="string"?s:"?";if(s instanceof Jw&&(u=s),u!=null&&u.base)throw new Error("Can not derive from a modified tag");let g=new Jw(h,[],null,[]);if(g.set.push(g),u)for(let m of u.set)g.set.push(m);return g}static defineModifier(s){let u=new $he(s);return h=>h.modified.indexOf(u)>-1?h:$he.get(h.base||h,h.modified.concat(u).sort((g,m)=>g.id-m.id))}}let Ppn=0;class $he{constructor(s){this.name=s,this.instances=[],this.id=Ppn++}static get(s,u){if(!u.length)return s;let h=u[0].instances.find(k=>k.base==s&&Ipn(u,k.modified));if(h)return h;let g=[],m=new Jw(s.name,g,s,u);for(let k of u)k.instances.push(m);let p=Rpn(u);for(let k of s.set)if(!k.modified.length)for(let S of p)g.push($he.get(k,S));return m}}function Ipn(l,s){return l.length==s.length&&l.every((u,h)=>u==s[h])}function Rpn(l){let s=[[]];for(let u=0;u<l.length;u++)for(let h=0,g=s.length;h<g;h++)s.push(s[h].concat(l[u]));return s.sort((u,h)=>h.length-u.length)}function nSt(l){let s=Object.create(null);for(let u in l){let h=l[u];Array.isArray(h)||(h=[h]);for(let g of u.split(" "))if(g){let m=[],p=2,k=g;for(let _=0;;){if(k=="..."&&_>0&&_+3==g.length){p=1;break}let P=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(k);if(!P)throw new RangeError("Invalid path: "+g);if(m.push(P[0]=="*"?"":P[0][0]=='"'?JSON.parse(P[0]):P[0]),_+=P[0].length,_==g.length)break;let R=g[_++];if(_==g.length&&R=="!"){p=0;break}if(R!="/")throw new RangeError("Invalid path: "+g);k=g.slice(_)}let S=m.length-1,C=m[S];if(!C)throw new RangeError("Invalid path: "+g);let N=new _X(h,p,S>0?m.slice(0,S):null);s[C]=N.sort(s[C])}}return iSt.add(s)}const iSt=new Co({combine(l,s){let u,h,g;for(;l||s;){if(!l||s&&l.depth>=s.depth?(g=s,s=s.next):(g=l,l=l.next),u&&u.mode==g.mode&&!g.context&&!u.context)continue;let m=new _X(g.tags,g.mode,g.context);u?u.next=m:h=m,u=m}return h}});class _X{constructor(s,u,h,g){this.tags=s,this.mode=u,this.context=h,this.next=g}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(s){return!s||s.depth<this.depth?(this.next=s,this):(s.next=this.sort(s.next),s)}get depth(){return this.context?this.context.length:0}}_X.empty=new _X([],2,null);function rSt(l,s){let u=Object.create(null);for(let m of l)if(!Array.isArray(m.tag))u[m.tag.id]=m.class;else for(let p of m.tag)u[p.id]=m.class;let{scope:h,all:g=null}=s||{};return{style:m=>{let p=g;for(let k of m)for(let S of k.set){let C=u[S.id];if(C){p=p?p+" "+C:C;break}}return p},scope:h}}function $pn(l,s){let u=null;for(let h of l){let g=h.style(s);g&&(u=u?u+" "+g:g)}return u}function Bpn(l,s,u,h=0,g=l.length){let m=new zpn(h,Array.isArray(s)?s:[s],u);m.highlightRange(l.cursor(),h,g,"",m.highlighters),m.flush(g)}class zpn{constructor(s,u,h){this.at=s,this.highlighters=u,this.span=h,this.class=""}startSpan(s,u){u!=this.class&&(this.flush(s),s>this.at&&(this.at=s),this.class=u)}flush(s){s>this.at&&this.class&&this.span(this.at,s,this.class)}highlightRange(s,u,h,g,m){let{type:p,from:k,to:S}=s;if(k>=h||S<=u)return;p.isTop&&(m=this.highlighters.filter(R=>!R.scope||R.scope(p)));let C=g,N=Fpn(s)||_X.empty,_=$pn(m,N.tags);if(_&&(C&&(C+=" "),C+=_,N.mode==1&&(g+=(g?" ":"")+_)),this.startSpan(Math.max(u,k),C),N.opaque)return;let P=s.tree&&s.tree.prop(Co.mounted);if(P&&P.overlay){let R=s.node.enter(P.overlay[0].from+k,1),q=this.highlighters.filter(X=>!X.scope||X.scope(P.tree.type)),F=s.firstChild();for(let X=0,J=k;;X++){let ee=X<P.overlay.length?P.overlay[X]:null,te=ee?ee.from+k:S,ie=Math.max(u,J),oe=Math.min(h,te);if(ie<oe&&F)for(;s.from<oe&&(this.highlightRange(s,ie,oe,g,m),this.startSpan(Math.min(oe,s.to),C),!(s.to>=te||!s.nextSibling())););if(!ee||te>h)break;J=ee.to+k,J>u&&(this.highlightRange(R.cursor(),Math.max(u,ee.from+k),Math.min(h,J),"",q),this.startSpan(Math.min(h,J),C))}F&&s.parent()}else if(s.firstChild()){P&&(g="");do if(!(s.to<=u)){if(s.from>=h)break;this.highlightRange(s,u,h,g,m),this.startSpan(Math.min(h,s.to),C)}while(s.nextSibling());s.parent()}}}function Fpn(l){let s=l.type.prop(iSt);for(;s&&s.context&&!l.matchContext(s.context);)s=s.next;return s||null}const Ni=Jw.define,Afe=Ni(),T9=Ni(),u5t=Ni(T9),a5t=Ni(T9),E9=Ni(),Nfe=Ni(E9),OCe=Ni(E9),Q3=Ni(),mM=Ni(Q3),q3=Ni(),H3=Ni(),XMe=Ni(),qV=Ni(XMe),_fe=Ni(),Qn={comment:Afe,lineComment:Ni(Afe),blockComment:Ni(Afe),docComment:Ni(Afe),name:T9,variableName:Ni(T9),typeName:u5t,tagName:Ni(u5t),propertyName:a5t,attributeName:Ni(a5t),className:Ni(T9),labelName:Ni(T9),namespace:Ni(T9),macroName:Ni(T9),literal:E9,string:Nfe,docString:Ni(Nfe),character:Ni(Nfe),attributeValue:Ni(Nfe),number:OCe,integer:Ni(OCe),float:Ni(OCe),bool:Ni(E9),regexp:Ni(E9),escape:Ni(E9),color:Ni(E9),url:Ni(E9),keyword:q3,self:Ni(q3),null:Ni(q3),atom:Ni(q3),unit:Ni(q3),modifier:Ni(q3),operatorKeyword:Ni(q3),controlKeyword:Ni(q3),definitionKeyword:Ni(q3),moduleKeyword:Ni(q3),operator:H3,derefOperator:Ni(H3),arithmeticOperator:Ni(H3),logicOperator:Ni(H3),bitwiseOperator:Ni(H3),compareOperator:Ni(H3),updateOperator:Ni(H3),definitionOperator:Ni(H3),typeOperator:Ni(H3),controlOperator:Ni(H3),punctuation:XMe,separator:Ni(XMe),bracket:qV,angleBracket:Ni(qV),squareBracket:Ni(qV),paren:Ni(qV),brace:Ni(qV),content:Q3,heading:mM,heading1:Ni(mM),heading2:Ni(mM),heading3:Ni(mM),heading4:Ni(mM),heading5:Ni(mM),heading6:Ni(mM),contentSeparator:Ni(Q3),list:Ni(Q3),quote:Ni(Q3),emphasis:Ni(Q3),strong:Ni(Q3),link:Ni(Q3),monospace:Ni(Q3),strikethrough:Ni(Q3),inserted:Ni(),deleted:Ni(),changed:Ni(),invalid:Ni(),meta:_fe,documentMeta:Ni(_fe),annotation:Ni(_fe),processingInstruction:Ni(_fe),definition:Jw.defineModifier("definition"),constant:Jw.defineModifier("constant"),function:Jw.defineModifier("function"),standard:Jw.defineModifier("standard"),local:Jw.defineModifier("local"),special:Jw.defineModifier("special")};for(let l in Qn){let s=Qn[l];s instanceof Jw&&(s.name=l)}rSt([{tag:Qn.link,class:"tok-link"},{tag:Qn.heading,class:"tok-heading"},{tag:Qn.emphasis,class:"tok-emphasis"},{tag:Qn.strong,class:"tok-strong"},{tag:Qn.keyword,class:"tok-keyword"},{tag:Qn.atom,class:"tok-atom"},{tag:Qn.bool,class:"tok-bool"},{tag:Qn.url,class:"tok-url"},{tag:Qn.labelName,class:"tok-labelName"},{tag:Qn.inserted,class:"tok-inserted"},{tag:Qn.deleted,class:"tok-deleted"},{tag:Qn.literal,class:"tok-literal"},{tag:Qn.string,class:"tok-string"},{tag:Qn.number,class:"tok-number"},{tag:[Qn.regexp,Qn.escape,Qn.special(Qn.string)],class:"tok-string2"},{tag:Qn.variableName,class:"tok-variableName"},{tag:Qn.local(Qn.variableName),class:"tok-variableName tok-local"},{tag:Qn.definition(Qn.variableName),class:"tok-variableName tok-definition"},{tag:Qn.special(Qn.variableName),class:"tok-variableName2"},{tag:Qn.definition(Qn.propertyName),class:"tok-propertyName tok-definition"},{tag:Qn.typeName,class:"tok-typeName"},{tag:Qn.namespace,class:"tok-namespace"},{tag:Qn.className,class:"tok-className"},{tag:Qn.macroName,class:"tok-macroName"},{tag:Qn.propertyName,class:"tok-propertyName"},{tag:Qn.operator,class:"tok-operator"},{tag:Qn.comment,class:"tok-comment"},{tag:Qn.meta,class:"tok-meta"},{tag:Qn.invalid,class:"tok-invalid"},{tag:Qn.punctuation,class:"tok-punctuation"}]);const qpn=1,sSt=194,oSt=195,Hpn=196,f5t=197,Qpn=198,Gpn=199,Upn=200,Jpn=2,cSt=3,h5t=201,Vpn=24,Xpn=25,Wpn=49,Kpn=50,Ypn=55,Zpn=56,ebn=57,tbn=59,nbn=60,ibn=61,rbn=62,sbn=63,obn=65,cbn=238,lbn=71,ubn=241,abn=242,fbn=243,hbn=244,dbn=245,gbn=246,pbn=247,bbn=248,lSt=72,mbn=249,wbn=250,vbn=251,ybn=252,xbn=253,kbn=254,Obn=255,Sbn=256,jbn=73,Tbn=77,Ebn=263,Cbn=112,Mbn=130,Abn=151,Nbn=152,_bn=155,QM=10,DX=13,sNe=32,Sde=9,oNe=35,Dbn=40,Lbn=46,WMe=123,d5t=125,uSt=39,aSt=34,g5t=92,Pbn=111,Ibn=120,Rbn=78,$bn=117,Bbn=85,zbn=new Set([Xpn,Wpn,Kpn,Ebn,obn,Mbn,Zpn,ebn,cbn,rbn,sbn,lSt,jbn,Tbn,nbn,ibn,Abn,Nbn,_bn,Cbn]);function SCe(l){return l==QM||l==DX}function jCe(l){return l>=48&&l<=57||l>=65&&l<=70||l>=97&&l<=102}const Fbn=new Ode((l,s)=>{let u;if(l.next<0)l.acceptToken(Gpn);else if(s.context.flags&ohe)SCe(l.next)&&l.acceptToken(Qpn,1);else if(((u=l.peek(-1))<0||SCe(u))&&s.canShift(f5t)){let h=0;for(;l.next==sNe||l.next==Sde;)l.advance(),h++;(l.next==QM||l.next==DX||l.next==oNe)&&l.acceptToken(f5t,-h)}else SCe(l.next)&&l.acceptToken(Hpn,1)},{contextual:!0}),qbn=new Ode((l,s)=>{let u=s.context;if(u.flags)return;let h=l.peek(-1);if(h==QM||h==DX){let g=0,m=0;for(;;){if(l.next==sNe)g++;else if(l.next==Sde)g+=8-g%8;else break;l.advance(),m++}g!=u.indent&&l.next!=QM&&l.next!=DX&&l.next!=oNe&&(g<u.indent?l.acceptToken(oSt,-m):l.acceptToken(sSt))}}),ohe=1,fSt=2,sO=4,oO=8,cO=16,lO=32;function che(l,s,u){this.parent=l,this.indent=s,this.flags=u,this.hash=(l?l.hash+l.hash<<8:0)+s+(s<<4)+u+(u<<6)}const Hbn=new che(null,0,0);function Qbn(l){let s=0;for(let u=0;u<l.length;u++)s+=l.charCodeAt(u)==Sde?8-s%8:1;return s}const p5t=new Map([[ubn,0],[abn,sO],[fbn,oO],[hbn,oO|sO],[dbn,cO],[gbn,cO|sO],[pbn,cO|oO],[bbn,cO|oO|sO],[mbn,lO],[wbn,lO|sO],[vbn,lO|oO],[ybn,lO|oO|sO],[xbn,lO|cO],[kbn,lO|cO|sO],[Obn,lO|cO|oO],[Sbn,lO|cO|oO|sO]].map(([l,s])=>[l,s|fSt])),Gbn=new _pn({start:Hbn,reduce(l,s,u,h){return l.flags&ohe&&zbn.has(s)||(s==lbn||s==lSt)&&l.flags&fSt?l.parent:l},shift(l,s,u,h){return s==sSt?new che(l,Qbn(h.read(h.pos,u.pos)),0):s==oSt?l.parent:s==Vpn||s==Ypn||s==tbn||s==cSt?new che(l,0,ohe):p5t.has(s)?new che(l,0,p5t.get(s)|l.flags&ohe):l},hash(l){return l.hash}}),Ubn=new Ode(l=>{for(let s=0;s<5;s++){if(l.next!="print".charCodeAt(s))return;l.advance()}if(!/\w/.test(String.fromCharCode(l.next)))for(let s=0;;s++){let u=l.peek(s);if(!(u==sNe||u==Sde)){u!=Dbn&&u!=Lbn&&u!=QM&&u!=DX&&u!=oNe&&l.acceptToken(qpn);return}}}),Jbn=new Ode((l,s)=>{let{flags:u}=s.context,h=u&sO?aSt:uSt,g=(u&oO)>0,m=!(u&cO),p=(u&lO)>0,k=l.pos;for(;!(l.next<0);)if(p&&l.next==WMe)if(l.peek(1)==WMe)l.advance(2);else{if(l.pos==k){l.acceptToken(cSt,1);return}break}else if(m&&l.next==g5t){if(l.pos==k){l.advance();let S=l.next;S>=0&&(l.advance(),Vbn(l,S)),l.acceptToken(Jpn);return}break}else if(l.next==g5t&&!m&&l.peek(1)>-1)l.advance(2);else if(l.next==h&&(!g||l.peek(1)==h&&l.peek(2)==h)){if(l.pos==k){l.acceptToken(h5t,g?3:1);return}break}else if(l.next==QM){if(g)l.advance();else if(l.pos==k){l.acceptToken(h5t);return}break}else l.advance();l.pos>k&&l.acceptToken(Upn)});function Vbn(l,s){if(s==Pbn)for(let u=0;u<2&&l.next>=48&&l.next<=55;u++)l.advance();else if(s==Ibn)for(let u=0;u<2&&jCe(l.next);u++)l.advance();else if(s==$bn)for(let u=0;u<4&&jCe(l.next);u++)l.advance();else if(s==Bbn)for(let u=0;u<8&&jCe(l.next);u++)l.advance();else if(s==Rbn&&l.next==WMe){for(l.advance();l.next>=0&&l.next!=d5t&&l.next!=uSt&&l.next!=aSt&&l.next!=QM;)l.advance();l.next==d5t&&l.advance()}}const Xbn=nSt({'async "*" "**" FormatConversion FormatSpec':Qn.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":Qn.controlKeyword,"in not and or is del":Qn.operatorKeyword,"from def class global nonlocal lambda":Qn.definitionKeyword,import:Qn.moduleKeyword,"with as print":Qn.keyword,Boolean:Qn.bool,None:Qn.null,VariableName:Qn.variableName,"CallExpression/VariableName":Qn.function(Qn.variableName),"FunctionDefinition/VariableName":Qn.function(Qn.definition(Qn.variableName)),"ClassDefinition/VariableName":Qn.definition(Qn.className),PropertyName:Qn.propertyName,"CallExpression/MemberExpression/PropertyName":Qn.function(Qn.propertyName),Comment:Qn.lineComment,Number:Qn.number,String:Qn.string,FormatString:Qn.special(Qn.string),Escape:Qn.escape,UpdateOp:Qn.updateOperator,"ArithOp!":Qn.arithmeticOperator,BitOp:Qn.bitwiseOperator,CompareOp:Qn.compareOperator,AssignOp:Qn.definitionOperator,Ellipsis:Qn.punctuation,At:Qn.meta,"( )":Qn.paren,"[ ]":Qn.squareBracket,"{ }":Qn.brace,".":Qn.derefOperator,", ;":Qn.separator}),Wbn={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},Kbn=Rhe.deserialize({version:14,states:"##jO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'#GsO0|QdO'#GrOOQV'#Gr'#GrO1XQdO'#FYOOQS'#G^'#G^O1^QdO'#FXOOQV'#IS'#ISOOQV'#Gq'#GqOOQV'#Fq'#FqQ`QeOOO'vQdO'#CqO1lQdO'#C}O1sQdO'#DRO2RQdO'#HYO2cQtO'#EVO'vQdO'#EWOOQS'#EY'#EYOOQS'#E['#E[OOQS'#E^'#E^O2wQdO'#E`O3_QdO'#EdO3rQdO'#EfO3zQtO'#EfO1XQdO'#EiO0rQdO'#ElO1XQdO'#EnO0rQdO'#EtO0rQdO'#EwO4VQdO'#EyO4^QdO'#FOO4iQdO'#EzO0rQdO'#FOO1XQdO'#FQO1XQdO'#FVO4nQdO'#F[P4uOdO'#GpPOOO)CBd)CBdOOQS'#Ce'#CeOOQS'#Cf'#CfOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Cl'#ClO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO5TQdO'#DoOOQS,5:Y,5:YO5hQdO'#HdOOQS,5:],5:]O5uQ!fO,5:]O5zQtO,59YO1lQdO,59bO1lQdO,59bO1lQdO,59bO8jQdO,59bO8oQdO,59bO8vQdO,59jO8}QdO'#HTO:TQdO'#HSOOQS'#HS'#HSOOQS'#D['#D[O:lQdO,59aO'vQdO,59aO:zQdO,59aOOQS,59y,59yO;PQdO,5:RO'vQdO,5:ROOQS,5:Q,5:QO;_QdO,5:QO;dQdO,5:XO'vQdO,5:XO'vQdO,5:VOOQS,5:U,5:UO;uQdO,5:UO;zQdO,5:WOOOW'#Fy'#FyO<POWO,5:aOOQS,5:a,5:aO<[QdO'#HwOOOW'#Dw'#DwOOOW'#Fz'#FzO<lOWO,5:bOOQS,5:b,5:bOOQS'#F}'#F}O<zQtO,5:iO?lQtO,5=`O@VQ#xO,5=`O@vQtO,5=`OOQS,5:},5:}OA_QeO'#GWOBqQdO,5;^OOQV,5=^,5=^OB|QtO'#IPOCkQdO,5;tOOQS-E:[-E:[OOQV,5;s,5;sO4dQdO'#FQOOQV-E9o-E9oOCsQtO,59]OEzQtO,59iOFeQdO'#HVOFpQdO'#HVO1XQdO'#HVOF{QdO'#DTOGTQdO,59mOGYQdO'#HZO'vQdO'#HZO0rQdO,5=tOOQS,5=t,5=tO0rQdO'#EROOQS'#ES'#ESOGwQdO'#GPOHXQdO,58|OHXQdO,58|O*xQdO,5:oOHgQtO'#H]OOQS,5:r,5:rOOQS,5:z,5:zOHzQdO,5;OOI]QdO'#IOO1XQdO'#H}OOQS,5;Q,5;QOOQS'#GT'#GTOIqQtO,5;QOJPQdO,5;QOJUQdO'#IQOOQS,5;T,5;TOJdQdO'#H|OOQS,5;W,5;WOJuQdO,5;YO4iQdO,5;`O4iQdO,5;cOJ}QtO'#ITO'vQdO'#ITOKXQdO,5;eO4VQdO,5;eO0rQdO,5;jO1XQdO,5;lOK^QeO'#EuOLjQgO,5;fO!!kQdO'#IUO4iQdO,5;jO!!vQdO,5;lO!#OQdO,5;qO!#ZQtO,5;vO'vQdO,5;vPOOO,5=[,5=[P!#bOSO,5=[P!#jOdO,5=[O!&bQtO1G.jO!&iQtO1G.jO!)YQtO1G.jO!)dQtO1G.jO!+}QtO1G.jO!,bQtO1G.jO!,uQdO'#HcO!-TQtO'#GuO0rQdO'#HcO!-_QdO'#HbOOQS,5:Z,5:ZO!-gQdO,5:ZO!-lQdO'#HeO!-wQdO'#HeO!.[QdO,5>OOOQS'#Ds'#DsOOQS1G/w1G/wOOQS1G.|1G.|O!/[QtO1G.|O!/cQtO1G.|O1lQdO1G.|O!0OQdO1G/UOOQS'#DZ'#DZO0rQdO,59tOOQS1G.{1G.{O!0VQdO1G/eO!0gQdO1G/eO!0oQdO1G/fO'vQdO'#H[O!0tQdO'#H[O!0yQtO1G.{O!1ZQdO,59iO!2aQdO,5=zO!2qQdO,5=zO!2yQdO1G/mO!3OQtO1G/mOOQS1G/l1G/lO!3`QdO,5=uO!4VQdO,5=uO0rQdO1G/qO!4tQdO1G/sO!4yQtO1G/sO!5ZQtO1G/qOOQS1G/p1G/pOOQS1G/r1G/rOOOW-E9w-E9wOOQS1G/{1G/{O!5kQdO'#HxO0rQdO'#HxO!5|QdO,5>cOOOW-E9x-E9xOOQS1G/|1G/|OOQS-E9{-E9{O!6[Q#xO1G2zO!6{QtO1G2zO'vQdO,5<jOOQS,5<j,5<jOOQS-E9|-E9|OOQS,5<r,5<rOOQS-E:U-E:UOOQV1G0x1G0xO1XQdO'#GRO!7dQtO,5>kOOQS1G1`1G1`O!8RQdO1G1`OOQS'#DV'#DVO0rQdO,5=qOOQS,5=q,5=qO!8WQdO'#FrO!8cQdO,59oO!8kQdO1G/XO!8uQtO,5=uOOQS1G3`1G3`OOQS,5:m,5:mO!9fQdO'#GtOOQS,5<k,5<kOOQS-E9}-E9}O!9wQdO1G.hOOQS1G0Z1G0ZO!:VQdO,5=wO!:gQdO,5=wO0rQdO1G0jO0rQdO1G0jO!:xQdO,5>jO!;ZQdO,5>jO1XQdO,5>jO!;lQdO,5>iOOQS-E:R-E:RO!;qQdO1G0lO!;|QdO1G0lO!<RQdO,5>lO!<aQdO,5>lO!<oQdO,5>hO!=VQdO,5>hO!=hQdO'#EpO0rQdO1G0tO!=sQdO1G0tO!=xQgO1G0zO!AvQgO1G0}O!EqQdO,5>oO!E{QdO,5>oO!FTQtO,5>oO0rQdO1G1PO!F_QdO1G1PO4iQdO1G1UO!!vQdO1G1WOOQV,5;a,5;aO!FdQfO,5;aO!FiQgO1G1QO!JjQdO'#GZO4iQdO1G1QO4iQdO1G1QO!JzQdO,5>pO!KXQdO,5>pO1XQdO,5>pOOQV1G1U1G1UO!KaQdO'#FSO!KrQ!fO1G1WO!KzQdO1G1WOOQV1G1]1G1]O4iQdO1G1]O!LPQdO1G1]O!LXQdO'#F^OOQV1G1b1G1bO!#ZQtO1G1bPOOO1G2v1G2vP!L^OSO1G2vOOQS,5=},5=}OOQS'#Dp'#DpO0rQdO,5=}O!LfQdO,5=|O!LyQdO,5=|OOQS1G/u1G/uO!MRQdO,5>PO!McQdO,5>PO!MkQdO,5>PO!NOQdO,5>PO!N`QdO,5>POOQS1G3j1G3jOOQS7+$h7+$hO!8kQdO7+$pO#!RQdO1G.|O#!YQdO1G.|OOQS1G/`1G/`OOQS,5<`,5<`O'vQdO,5<`OOQS7+%P7+%PO#!aQdO7+%POOQS-E9r-E9rOOQS7+%Q7+%QO#!qQdO,5=vO'vQdO,5=vOOQS7+$g7+$gO#!vQdO7+%PO##OQdO7+%QO##TQdO1G3fOOQS7+%X7+%XO##eQdO1G3fO##mQdO7+%XOOQS,5<_,5<_O'vQdO,5<_O##rQdO1G3aOOQS-E9q-E9qO#$iQdO7+%]OOQS7+%_7+%_O#$wQdO1G3aO#%fQdO7+%_O#%kQdO1G3gO#%{QdO1G3gO#&TQdO7+%]O#&YQdO,5>dO#&sQdO,5>dO#&sQdO,5>dOOQS'#Dx'#DxO#'UO&jO'#DzO#'aO`O'#HyOOOW1G3}1G3}O#'fQdO1G3}O#'nQdO1G3}O#'yQ#xO7+(fO#(jQtO1G2UP#)TQdO'#GOOOQS,5<m,5<mOOQS-E:P-E:POOQS7+&z7+&zOOQS1G3]1G3]OOQS,5<^,5<^OOQS-E9p-E9pOOQS7+$s7+$sO#)bQdO,5=`O#){QdO,5=`O#*^QtO,5<aO#*qQdO1G3cOOQS-E9s-E9sOOQS7+&U7+&UO#+RQdO7+&UO#+aQdO,5<nO#+uQdO1G4UOOQS-E:Q-E:QO#,WQdO1G4UOOQS1G4T1G4TOOQS7+&W7+&WO#,iQdO7+&WOOQS,5<p,5<pO#,tQdO1G4WOOQS-E:S-E:SOOQS,5<l,5<lO#-SQdO1G4SOOQS-E:O-E:OO1XQdO'#EqO#-jQdO'#EqO#-uQdO'#IRO#-}QdO,5;[OOQS7+&`7+&`O0rQdO7+&`O#.SQgO7+&fO!JmQdO'#GXO4iQdO7+&fO4iQdO7+&iO#2QQtO,5<tO'vQdO,5<tO#2[QdO1G4ZOOQS-E:W-E:WO#2fQdO1G4ZO4iQdO7+&kO0rQdO7+&kOOQV7+&p7+&pO!KrQ!fO7+&rO!KzQdO7+&rO`QeO1G0{OOQV-E:X-E:XO4iQdO7+&lO4iQdO7+&lOOQV,5<u,5<uO#2nQdO,5<uO!JmQdO,5<uOOQV7+&l7+&lO#2yQgO7+&lO#6tQdO,5<vO#7PQdO1G4[OOQS-E:Y-E:YO#7^QdO1G4[O#7fQdO'#IWO#7tQdO'#IWO1XQdO'#IWOOQS'#IW'#IWO#8PQdO'#IVOOQS,5;n,5;nO#8XQdO,5;nO0rQdO'#FUOOQV7+&r7+&rO4iQdO7+&rOOQV7+&w7+&wO4iQdO7+&wO#8^QfO,5;xOOQV7+&|7+&|POOO7+(b7+(bO#8cQdO1G3iOOQS,5<c,5<cO#8qQdO1G3hOOQS-E9u-E9uO#9UQdO,5<dO#9aQdO,5<dO#9tQdO1G3kOOQS-E9v-E9vO#:UQdO1G3kO#:^QdO1G3kO#:nQdO1G3kO#:UQdO1G3kOOQS<<H[<<H[O#:yQtO1G1zOOQS<<Hk<<HkP#;WQdO'#FtO8vQdO1G3bO#;eQdO1G3bO#;jQdO<<HkOOQS<<Hl<<HlO#;zQdO7+)QOOQS<<Hs<<HsO#<[QtO1G1yP#<{QdO'#FsO#=YQdO7+)RO#=jQdO7+)RO#=rQdO<<HwO#=wQdO7+({OOQS<<Hy<<HyO#>nQdO,5<bO'vQdO,5<bOOQS-E9t-E9tOOQS<<Hw<<HwOOQS,5<g,5<gO0rQdO,5<gO#>sQdO1G4OOOQS-E9y-E9yO#?^QdO1G4OO<[QdO'#H{OOOO'#D{'#D{OOOO'#F|'#F|O#?oO&jO,5:fOOOW,5>e,5>eOOOW7+)i7+)iO#?zQdO7+)iO#@SQdO1G2zO#@mQdO1G2zP'vQdO'#FuO0rQdO<<IpO1XQdO1G2YP1XQdO'#GSO#AOQdO7+)pO#AaQdO7+)pOOQS<<Ir<<IrP1XQdO'#GUP0rQdO'#GQOOQS,5;],5;]O#ArQdO,5>mO#BQQdO,5>mOOQS1G0v1G0vOOQS<<Iz<<IzOOQV-E:V-E:VO4iQdO<<JQOOQV,5<s,5<sO4iQdO,5<sOOQV<<JQ<<JQOOQV<<JT<<JTO#BYQtO1G2`P#BdQdO'#GYO#BkQdO7+)uO#BuQgO<<JVO4iQdO<<JVOOQV<<J^<<J^O4iQdO<<J^O!KrQ!fO<<J^O#FpQgO7+&gOOQV<<JW<<JWO#FzQgO<<JWOOQV1G2a1G2aO1XQdO1G2aO#JuQdO1G2aO4iQdO<<JWO1XQdO1G2bP0rQdO'#G[O#KQQdO7+)vO#K_QdO7+)vOOQS'#FT'#FTO0rQdO,5>rO#KgQdO,5>rO#KrQdO,5>rO#K}QdO,5>qO#L`QdO,5>qOOQS1G1Y1G1YOOQS,5;p,5;pOOQV<<Jc<<JcO#LhQdO1G1dOOQS7+)T7+)TP#LmQdO'#FwO#L}QdO1G2OO#MbQdO1G2OO#MrQdO1G2OP#M}QdO'#FxO#N[QdO7+)VO#NlQdO7+)VO#NlQdO7+)VO#NtQdO7+)VO$ UQdO7+(|O8vQdO7+(|OOQSAN>VAN>VO$ oQdO<<LmOOQSAN>cAN>cO0rQdO1G1|O$!PQtO1G1|P$!ZQdO'#FvOOQS1G2R1G2RP$!hQdO'#F{O$!uQdO7+)jO$#`QdO,5>gOOOO-E9z-E9zOOOW<<MT<<MTO$#nQdO7+(fOOQSAN?[AN?[OOQS7+'t7+'tO$$XQdO<<M[OOQS,5<q,5<qO$$jQdO1G4XOOQS-E:T-E:TOOQVAN?lAN?lOOQV1G2_1G2_O4iQdOAN?qO$$xQgOAN?qOOQVAN?xAN?xO4iQdOAN?xOOQV<<JR<<JRO4iQdOAN?rO4iQdO7+'{OOQV7+'{7+'{O1XQdO7+'{OOQVAN?rAN?rOOQS7+'|7+'|O$(sQdO<<MbOOQS1G4^1G4^O0rQdO1G4^OOQS,5<w,5<wO$)QQdO1G4]OOQS-E:Z-E:ZOOQU'#G_'#G_O$)cQfO7+'OO$)nQdO'#F_O$*uQdO7+'jO$+VQdO7+'jOOQS7+'j7+'jO$+bQdO<<LqO$+rQdO<<LqO$+rQdO<<LqO$+zQdO'#H^OOQS<<Lh<<LhO$,UQdO<<LhOOQS7+'h7+'hOOQS'#D|'#D|OOOO1G4R1G4RO$,oQdO1G4RO$,wQdO1G4RP!=hQdO'#GVOOQVG25]G25]O4iQdOG25]OOQVG25dG25dOOQVG25^G25^OOQV<<Kg<<KgO4iQdO<<KgOOQS7+)x7+)xP$-SQdO'#G]OOQU-E:]-E:]OOQV<<Jj<<JjO$-vQtO'#FaOOQS'#Fc'#FcO$.WQdO'#FbO$.xQdO'#FbOOQS'#Fb'#FbO$.}QdO'#IYO$)nQdO'#FiO$)nQdO'#FiO$/fQdO'#FjO$)nQdO'#FkO$/mQdO'#IZOOQS'#IZ'#IZO$0[QdO,5;yOOQS<<KU<<KUO$0dQdO<<KUO$0tQdOANB]O$1UQdOANB]O$1^QdO'#H_OOQS'#H_'#H_O1sQdO'#DcO$1wQdO,5=xOOQSANBSANBSOOOO7+)m7+)mO$2`QdO7+)mOOQVLD*wLD*wOOQVANARANARO5uQ!fO'#GaO$2hQtO,5<SO$)nQdO'#FmOOQS,5<W,5<WOOQS'#Fd'#FdO$3YQdO,5;|O$3_QdO,5;|OOQS'#Fg'#FgO$)nQdO'#G`O$4PQdO,5<QO$4kQdO,5>tO$4{QdO,5>tO1XQdO,5<PO$5^QdO,5<TO$5cQdO,5<TO$)nQdO'#I[O$5hQdO'#I[O$5mQdO,5<UOOQS,5<V,5<VO0rQdO'#FpOOQU1G1e1G1eO4iQdO1G1eOOQSAN@pAN@pO$5rQdOG27wO$6SQdO,59}OOQS1G3d1G3dOOOO<<MX<<MXOOQS,5<{,5<{OOQS-E:_-E:_O$6XQtO'#FaO$6`QdO'#I]O$6nQdO'#I]O$6vQdO,5<XOOQS1G1h1G1hO$6{QdO1G1hO$7QQdO,5<zOOQS-E:^-E:^O$7lQdO,5=OO$8TQdO1G4`OOQS-E:b-E:bOOQS1G1k1G1kOOQS1G1o1G1oO$8eQdO,5>vO$)nQdO,5>vOOQS1G1p1G1pOOQS,5<[,5<[OOQU7+'P7+'PO$+zQdO1G/iO$)nQdO,5<YO$8sQdO,5>wO$8zQdO,5>wOOQS1G1s1G1sOOQS7+'S7+'SP$)nQdO'#GdO$9SQdO1G4bO$9^QdO1G4bO$9fQdO1G4bOOQS7+%T7+%TO$9tQdO1G1tO$:SQtO'#FaO$:ZQdO,5<}OOQS,5<},5<}O$:iQdO1G4cOOQS-E:a-E:aO$)nQdO,5<|O$:pQdO,5<|O$:uQdO7+)|OOQS-E:`-E:`O$;PQdO7+)|O$)nQdO,5<ZP$)nQdO'#GcO$;XQdO1G2hO$)nQdO1G2hP$;gQdO'#GbO$;nQdO<<MhO$;xQdO1G1uO$<WQdO7+(SO8vQdO'#C}O8vQdO,59bO8vQdO,59bO8vQdO,59bO$<fQtO,5=`O8vQdO1G.|O0rQdO1G/XO0rQdO7+$pP$<yQdO'#GOO'vQdO'#GtO$=WQdO,59bO$=]QdO,59bO$=dQdO,59mO$=iQdO1G/UO1sQdO'#DRO8vQdO,59j",stateData:"$>S~O%cOS%^OSSOS%]PQ~OPdOVaOfoOhYOopOs!POvqO!PrO!Q{O!T!SO!U!RO!XZO!][O!h`O!r`O!s`O!t`O!{tO!}uO#PvO#RwO#TxO#XyO#ZzO#^|O#_|O#a}O#c!OO#l!QO#o!TO#s!UO#u!VO#z!WO#}hO$P!XO%oRO%pRO%tSO%uWO&Z]O&[]O&]]O&^]O&_]O&`]O&a]O&b]O&c^O&d^O&e^O&f^O&g^O&h^O&i^O&j^O~O%]!YO~OV!aO_!aOa!bOh!iO!X!kO!f!mO%j![O%k!]O%l!^O%m!_O%n!_O%o!`O%p!`O%q!aO%r!aO%s!aO~Ok%xXl%xXm%xXn%xXo%xXp%xXs%xXz%xX{%xX!x%xX#g%xX%[%xX%_%xX%z%xXg%xX!T%xX!U%xX%{%xX!W%xX![%xX!Q%xX#[%xXt%xX!m%xX~P%SOfoOhYO!XZO!][O!h`O!r`O!s`O!t`O%oRO%pRO%tSO%uWO&Z]O&[]O&]]O&^]O&_]O&`]O&a]O&b]O&c^O&d^O&e^O&f^O&g^O&h^O&i^O&j^O~Oz%wX{%wX#g%wX%[%wX%_%wX%z%wX~Ok!pOl!qOm!oOn!oOo!rOp!sOs!tO!x%wX~P)pOV!zOg!|Oo0cOv0qO!PrO~P'vOV#OOo0cOv0qO!W#PO~P'vOV#SOa#TOo0cOv0qO![#UO~P'vOQ#XO%`#XO%a#ZO~OQ#^OR#[O%`#^O%a#`O~OV%iX_%iXa%iXh%iXk%iXl%iXm%iXn%iXo%iXp%iXs%iXz%iX!X%iX!f%iX%j%iX%k%iX%l%iX%m%iX%n%iX%o%iX%p%iX%q%iX%r%iX%s%iXg%iX!T%iX!U%iX~O&Z]O&[]O&]]O&^]O&_]O&`]O&a]O&b]O&c^O&d^O&e^O&f^O&g^O&h^O&i^O&j^O{%iX!x%iX#g%iX%[%iX%_%iX%z%iX%{%iX!W%iX![%iX!Q%iX#[%iXt%iX!m%iX~P,eOz#dO{%hX!x%hX#g%hX%[%hX%_%hX%z%hX~Oo0cOv0qO~P'vO#g#gO%[#iO%_#iO~O%uWO~O!T#nO#u!VO#z!WO#}hO~OopO~P'vOV#sOa#tO%uWO{wP~OV#xOo0cOv0qO!Q#yO~P'vO{#{O!x$QO%z#|O#g!yX%[!yX%_!yX~OV#xOo0cOv0qO#g#SX%[#SX%_#SX~P'vOo0cOv0qO#g#WX%[#WX%_#WX~P'vOh$WO%uWO~O!f$YO!r$YO%uWO~OV$eO~P'vO!U$gO#s$hO#u$iO~O{$jO~OV$qO~P'vOS$sO%[$rO%_$rO%c$tO~OV$}Oa$}Og%POo0cOv0qO~P'vOo0cOv0qO{%SO~P'vO&Y%UO~Oa!bOh!iO!X!kO!f!mOVba_bakbalbambanbaobapbasbazba{ba!xba#gba%[ba%_ba%jba%kba%lba%mba%nba%oba%pba%qba%rba%sba%zbagba!Tba!Uba%{ba!Wba![ba!Qba#[batba!mba~On%ZO~Oo%ZO~P'vOo0cO~P'vOk0eOl0fOm0dOn0dOo0mOp0nOs0rOg%wX!T%wX!U%wX%{%wX!W%wX![%wX!Q%wX#[%wX!m%wX~P)pO%{%]Og%vXz%vX!T%vX!U%vX!W%vX{%vX~Og%_Oz%`O!T%dO!U%cO~Og%_O~Oz%gO!T%dO!U%cO!W&SX~O!W%kO~Oz%lO{%nO!T%dO!U%cO![%}X~O![%rO~O![%sO~OQ#XO%`#XO%a%uO~OV%wOo0cOv0qO!PrO~P'vOQ#^OR#[O%`#^O%a%zO~OV!qa_!qaa!qah!qak!qal!qam!qan!qao!qap!qas!qaz!qa{!qa!X!qa!f!qa!x!qa#g!qa%[!qa%_!qa%j!qa%k!qa%l!qa%m!qa%n!qa%o!qa%p!qa%q!qa%r!qa%s!qa%z!qag!qa!T!qa!U!qa%{!qa!W!qa![!qa!Q!qa#[!qat!qa!m!qa~P#yOz%|O{%ha!x%ha#g%ha%[%ha%_%ha%z%ha~P%SOV&OOopOvqO{%ha!x%ha#g%ha%[%ha%_%ha%z%ha~P'vOz%|O{%ha!x%ha#g%ha%[%ha%_%ha%z%ha~OPdOVaOopOvqO!PrO!Q{O!{tO!}uO#PvO#RwO#TxO#XyO#ZzO#^|O#_|O#a}O#c!OO#g$zX%[$zX%_$zX~P'vO#g#gO%[&TO%_&TO~O!f&UOh&sX%[&sXz&sX#[&sX#g&sX%_&sX#Z&sXg&sX~Oh!iO%[&WO~Okealeameaneaoeapeaseazea{ea!xea#gea%[ea%_ea%zeagea!Tea!Uea%{ea!Wea![ea!Qea#[eatea!mea~P%SOsqazqa{qa#gqa%[qa%_qa%zqa~Ok!pOl!qOm!oOn!oOo!rOp!sO!xqa~PEcO%z&YOz%yX{%yX~O%uWOz%yX{%yX~Oz&]O{wX~O{&_O~Oz%lO#g%}X%[%}X%_%}Xg%}X{%}X![%}X!m%}X%z%}X~OV0lOo0cOv0qO!PrO~P'vO%z#|O#gUa%[Ua%_Ua~Oz&hO#g&PX%[&PX%_&PXn&PX~P%SOz&kO!Q&jO#g#Wa%[#Wa%_#Wa~Oz&lO#[&nO#g&rX%[&rX%_&rXg&rX~O!f$YO!r$YO#Z&qO%uWO~O#Z&qO~Oz&sO#g&tX%[&tX%_&tX~Oz&uO#g&pX%[&pX%_&pX{&pX~O!X&wO%z&xO~Oz&|On&wX~P%SOn'PO~OPdOVaOopOvqO!PrO!Q{O!{tO!}uO#PvO#RwO#TxO#XyO#ZzO#^|O#_|O#a}O#c!OO%['UO~P'vOt'YO#p'WO#q'XOP#naV#naf#nah#nao#nas#nav#na!P#na!Q#na!T#na!U#na!X#na!]#na!h#na!r#na!s#na!t#na!{#na!}#na#P#na#R#na#T#na#X#na#Z#na#^#na#_#na#a#na#c#na#l#na#o#na#s#na#u#na#z#na#}#na$P#na%X#na%o#na%p#na%t#na%u#na&Z#na&[#na&]#na&^#na&_#na&`#na&a#na&b#na&c#na&d#na&e#na&f#na&g#na&h#na&i#na&j#na%Z#na%_#na~Oz'ZO#[']O{&xX~Oh'_O!X&wO~Oh!iO{$jO!X&wO~O{'eO~P%SO%['hO%_'hO~OS'iO%['hO%_'hO~OV!aO_!aOa!bOh!iO!X!kO!f!mO%l!^O%m!_O%n!_O%o!`O%p!`O%q!aO%r!aO%s!aOkWilWimWinWioWipWisWizWi{Wi!xWi#gWi%[Wi%_Wi%jWi%zWigWi!TWi!UWi%{Wi!WWi![Wi!QWi#[WitWi!mWi~O%k!]O~P!#uO%kWi~P!#uOV!aO_!aOa!bOh!iO!X!kO!f!mO%o!`O%p!`O%q!aO%r!aO%s!aOkWilWimWinWioWipWisWizWi{Wi!xWi#gWi%[Wi%_Wi%jWi%kWi%lWi%zWigWi!TWi!UWi%{Wi!WWi![Wi!QWi#[WitWi!mWi~O%m!_O%n!_O~P!&pO%mWi%nWi~P!&pOa!bOh!iO!X!kO!f!mOkWilWimWinWioWipWisWizWi{Wi!xWi#gWi%[Wi%_Wi%jWi%kWi%lWi%mWi%nWi%oWi%pWi%zWigWi!TWi!UWi%{Wi!WWi![Wi!QWi#[WitWi!mWi~OV!aO_!aO%q!aO%r!aO%s!aO~P!)nOVWi_Wi%qWi%rWi%sWi~P!)nO!T%dO!U%cOg&VXz&VX~O%z'kO%{'kO~P,eOz'mOg&UX~Og'oO~Oz'pO{'rO!W&XX~Oo0cOv0qOz'pO{'sO!W&XX~P'vO!W'uO~Om!oOn!oOo!rOp!sOkjisjizji{ji!xji#gji%[ji%_ji%zji~Ol!qO~P!.aOlji~P!.aOk0eOl0fOm0dOn0dOo0mOp0nO~Ot'wO~P!/jOV'|Og'}Oo0cOv0qO~P'vOg'}Oz(OO~Og(QO~O!U(SO~Og(TOz(OO!T%dO!U%cO~P%SOk0eOl0fOm0dOn0dOo0mOp0nOgqa!Tqa!Uqa%{qa!Wqa![qa!Qqa#[qatqa!mqa~PEcOV'|Oo0cOv0qO!W&Sa~P'vOz(WO!W&Sa~O!W(XO~Oz(WO!T%dO!U%cO!W&Sa~P%SOV(]Oo0cOv0qO![%}a#g%}a%[%}a%_%}ag%}a{%}a!m%}a%z%}a~P'vOz(^O![%}a#g%}a%[%}a%_%}ag%}a{%}a!m%}a%z%}a~O![(aO~Oz(^O!T%dO!U%cO![%}a~P%SOz(dO!T%dO!U%cO![&Ta~P%SOz(gO{&lX![&lX!m&lX%z&lX~O{(kO![(mO!m(nO%z(jO~OV&OOopOvqO{%hi!x%hi#g%hi%[%hi%_%hi%z%hi~P'vOz(pO{%hi!x%hi#g%hi%[%hi%_%hi%z%hi~O!f&UOh&sa%[&saz&sa#[&sa#g&sa%_&sa#Z&sag&sa~O%[(uO~OV#sOa#tO%uWO~Oz&]O{wa~OopOvqO~P'vOz(^O#g%}a%[%}a%_%}ag%}a{%}a![%}a!m%}a%z%}a~P%SOz(zO#g%hX%[%hX%_%hX%z%hX~O%z#|O#gUi%[Ui%_Ui~O#g&Pa%[&Pa%_&Pan&Pa~P'vOz(}O#g&Pa%[&Pa%_&Pan&Pa~O%uWO#g&ra%[&ra%_&rag&ra~Oz)SO#g&ra%[&ra%_&rag&ra~Og)VO~OV)WOh$WO%uWO~O#Z)XO~O%uWO#g&ta%[&ta%_&ta~Oz)ZO#g&ta%[&ta%_&ta~Oo0cOv0qO#g&pa%[&pa%_&pa{&pa~P'vOz)^O#g&pa%[&pa%_&pa{&pa~OV)`Oa)`O%uWO~O%z)eO~Ot)hO#j)gOP#hiV#hif#hih#hio#his#hiv#hi!P#hi!Q#hi!T#hi!U#hi!X#hi!]#hi!h#hi!r#hi!s#hi!t#hi!{#hi!}#hi#P#hi#R#hi#T#hi#X#hi#Z#hi#^#hi#_#hi#a#hi#c#hi#l#hi#o#hi#s#hi#u#hi#z#hi#}#hi$P#hi%X#hi%o#hi%p#hi%t#hi%u#hi&Z#hi&[#hi&]#hi&^#hi&_#hi&`#hi&a#hi&b#hi&c#hi&d#hi&e#hi&f#hi&g#hi&h#hi&i#hi&j#hi%Z#hi%_#hi~Ot)iOP#kiV#kif#kih#kio#kis#kiv#ki!P#ki!Q#ki!T#ki!U#ki!X#ki!]#ki!h#ki!r#ki!s#ki!t#ki!{#ki!}#ki#P#ki#R#ki#T#ki#X#ki#Z#ki#^#ki#_#ki#a#ki#c#ki#l#ki#o#ki#s#ki#u#ki#z#ki#}#ki$P#ki%X#ki%o#ki%p#ki%t#ki%u#ki&Z#ki&[#ki&]#ki&^#ki&_#ki&`#ki&a#ki&b#ki&c#ki&d#ki&e#ki&f#ki&g#ki&h#ki&i#ki&j#ki%Z#ki%_#ki~OV)kOn&wa~P'vOz)lOn&wa~Oz)lOn&wa~P%SOn)pO~O%Y)tO~Ot)wO#p'WO#q)vOP#niV#nif#nih#nio#nis#niv#ni!P#ni!Q#ni!T#ni!U#ni!X#ni!]#ni!h#ni!r#ni!s#ni!t#ni!{#ni!}#ni#P#ni#R#ni#T#ni#X#ni#Z#ni#^#ni#_#ni#a#ni#c#ni#l#ni#o#ni#s#ni#u#ni#z#ni#}#ni$P#ni%X#ni%o#ni%p#ni%t#ni%u#ni&Z#ni&[#ni&]#ni&^#ni&_#ni&`#ni&a#ni&b#ni&c#ni&d#ni&e#ni&f#ni&g#ni&h#ni&i#ni&j#ni%Z#ni%_#ni~OV)zOo0cOv0qO{$jO~P'vOo0cOv0qO{&xa~P'vOz*OO{&xa~OV*SOa*TOg*WO%q*UO%uWO~O{$jO&{*YO~Oh'_O~Oh!iO{$jO~O%[*_O~O%[*aO%_*aO~OV$}Oa$}Oo0cOv0qOg&Ua~P'vOz*dOg&Ua~Oo0cOv0qO{*gO!W&Xa~P'vOz*hO!W&Xa~Oo0cOv0qOz*hO{*kO!W&Xa~P'vOo0cOv0qOz*hO!W&Xa~P'vOz*hO{*kO!W&Xa~Om0dOn0dOo0mOp0nOgjikjisjizji!Tji!Uji%{ji!Wji{ji![ji#gji%[ji%_ji!Qji#[jitji!mji%zji~Ol0fO~P!NkOlji~P!NkOV'|Og*pOo0cOv0qO~P'vOn*rO~Og*pOz*tO~Og*uO~OV'|Oo0cOv0qO!W&Si~P'vOz*vO!W&Si~O!W*wO~OV(]Oo0cOv0qO![%}i#g%}i%[%}i%_%}ig%}i{%}i!m%}i%z%}i~P'vOz*zO!T%dO!U%cO![&Ti~Oz*}O![%}i#g%}i%[%}i%_%}ig%}i{%}i!m%}i%z%}i~O![+OO~Oa+QOo0cOv0qO![&Ti~P'vOz*zO![&Ti~O![+SO~OV+UOo0cOv0qO{&la![&la!m&la%z&la~P'vOz+VO{&la![&la!m&la%z&la~O!]+YO&n+[O![!nX~O![+^O~O{(kO![+_O~O{(kO![+_O!m+`O~OV&OOopOvqO{%hq!x%hq#g%hq%[%hq%_%hq%z%hq~P'vOz$ri{$ri!x$ri#g$ri%[$ri%_$ri%z$ri~P%SOV&OOopOvqO~P'vOV&OOo0cOv0qO#g%ha%[%ha%_%ha%z%ha~P'vOz+aO#g%ha%[%ha%_%ha%z%ha~Oz$ia#g$ia%[$ia%_$ian$ia~P%SO#g&Pi%[&Pi%_&Pin&Pi~P'vOz+dO#g#Wq%[#Wq%_#Wq~O#[+eOz$va#g$va%[$va%_$vag$va~O%uWO#g&ri%[&ri%_&rig&ri~Oz+gO#g&ri%[&ri%_&rig&ri~OV+iOh$WO%uWO~O%uWO#g&ti%[&ti%_&ti~Oo0cOv0qO#g&pi%[&pi%_&pi{&pi~P'vO{#{Oz#eX!W#eX~Oz+mO!W&uX~O!W+oO~Ot+rO#j)gOP#hqV#hqf#hqh#hqo#hqs#hqv#hq!P#hq!Q#hq!T#hq!U#hq!X#hq!]#hq!h#hq!r#hq!s#hq!t#hq!{#hq!}#hq#P#hq#R#hq#T#hq#X#hq#Z#hq#^#hq#_#hq#a#hq#c#hq#l#hq#o#hq#s#hq#u#hq#z#hq#}#hq$P#hq%X#hq%o#hq%p#hq%t#hq%u#hq&Z#hq&[#hq&]#hq&^#hq&_#hq&`#hq&a#hq&b#hq&c#hq&d#hq&e#hq&f#hq&g#hq&h#hq&i#hq&j#hq%Z#hq%_#hq~On$|az$|a~P%SOV)kOn&wi~P'vOz+yOn&wi~Oz,TO{$jO#[,TO~O#q,VOP#nqV#nqf#nqh#nqo#nqs#nqv#nq!P#nq!Q#nq!T#nq!U#nq!X#nq!]#nq!h#nq!r#nq!s#nq!t#nq!{#nq!}#nq#P#nq#R#nq#T#nq#X#nq#Z#nq#^#nq#_#nq#a#nq#c#nq#l#nq#o#nq#s#nq#u#nq#z#nq#}#nq$P#nq%X#nq%o#nq%p#nq%t#nq%u#nq&Z#nq&[#nq&]#nq&^#nq&_#nq&`#nq&a#nq&b#nq&c#nq&d#nq&e#nq&f#nq&g#nq&h#nq&i#nq&j#nq%Z#nq%_#nq~O#[,WOz%Oa{%Oa~Oo0cOv0qO{&xi~P'vOz,YO{&xi~O{#{O%z,[Og&zXz&zX~O%uWOg&zXz&zX~Oz,`Og&yX~Og,bO~O%Y,eO~O!T%dO!U%cOg&Viz&Vi~OV$}Oa$}Oo0cOv0qOg&Ui~P'vO{,hOz$la!W$la~Oo0cOv0qO{,iOz$la!W$la~P'vOo0cOv0qO{*gO!W&Xi~P'vOz,lO!W&Xi~Oo0cOv0qOz,lO!W&Xi~P'vOz,lO{,oO!W&Xi~Og$hiz$hi!W$hi~P%SOV'|Oo0cOv0qO~P'vOn,qO~OV'|Og,rOo0cOv0qO~P'vOV'|Oo0cOv0qO!W&Sq~P'vOz$gi![$gi#g$gi%[$gi%_$gig$gi{$gi!m$gi%z$gi~P%SOV(]Oo0cOv0qO~P'vOa+QOo0cOv0qO![&Tq~P'vOz,sO![&Tq~O![,tO~OV(]Oo0cOv0qO![%}q#g%}q%[%}q%_%}qg%}q{%}q!m%}q%z%}q~P'vO{,uO~OV+UOo0cOv0qO{&li![&li!m&li%z&li~P'vOz,zO{&li![&li!m&li%z&li~O!]+YO&n+[O![!na~O{(kO![,}O~OV&OOo0cOv0qO#g%hi%[%hi%_%hi%z%hi~P'vOz-OO#g%hi%[%hi%_%hi%z%hi~O%uWO#g&rq%[&rq%_&rqg&rq~Oz-RO#g&rq%[&rq%_&rqg&rq~OV)`Oa)`O%uWO!W&ua~Oz-TO!W&ua~On$|iz$|i~P%SOV)kO~P'vOV)kOn&wq~P'vOt-XOP#myV#myf#myh#myo#mys#myv#my!P#my!Q#my!T#my!U#my!X#my!]#my!h#my!r#my!s#my!t#my!{#my!}#my#P#my#R#my#T#my#X#my#Z#my#^#my#_#my#a#my#c#my#l#my#o#my#s#my#u#my#z#my#}#my$P#my%X#my%o#my%p#my%t#my%u#my&Z#my&[#my&]#my&^#my&_#my&`#my&a#my&b#my&c#my&d#my&e#my&f#my&g#my&h#my&i#my&j#my%Z#my%_#my~O%Z-]O%_-]O~P`O#q-^OP#nyV#nyf#nyh#nyo#nys#nyv#ny!P#ny!Q#ny!T#ny!U#ny!X#ny!]#ny!h#ny!r#ny!s#ny!t#ny!{#ny!}#ny#P#ny#R#ny#T#ny#X#ny#Z#ny#^#ny#_#ny#a#ny#c#ny#l#ny#o#ny#s#ny#u#ny#z#ny#}#ny$P#ny%X#ny%o#ny%p#ny%t#ny%u#ny&Z#ny&[#ny&]#ny&^#ny&_#ny&`#ny&a#ny&b#ny&c#ny&d#ny&e#ny&f#ny&g#ny&h#ny&i#ny&j#ny%Z#ny%_#ny~Oz-aO{$jO#[-aO~Oo0cOv0qO{&xq~P'vOz-dO{&xq~O%z,[Og&zaz&za~O{#{Og&zaz&za~OV*SOa*TO%q*UO%uWOg&ya~Oz-hOg&ya~O$S-lO~OV$}Oa$}Oo0cOv0qO~P'vOo0cOv0qO{-mOz$li!W$li~P'vOo0cOv0qOz$li!W$li~P'vO{-mOz$li!W$li~Oo0cOv0qO{*gO~P'vOo0cOv0qO{*gO!W&Xq~P'vOz-pO!W&Xq~Oo0cOv0qOz-pO!W&Xq~P'vOs-sO!T%dO!U%cOg&Oq!W&Oq![&Oqz&Oq~P!/jOa+QOo0cOv0qO![&Ty~P'vOz$ji![$ji~P%SOa+QOo0cOv0qO~P'vOV+UOo0cOv0qO~P'vOV+UOo0cOv0qO{&lq![&lq!m&lq%z&lq~P'vO{(kO![-xO!m-yO%z-wO~OV&OOo0cOv0qO#g%hq%[%hq%_%hq%z%hq~P'vO%uWO#g&ry%[&ry%_&ryg&ry~OV)`Oa)`O%uWO!W&ui~Ot-}OP#m!RV#m!Rf#m!Rh#m!Ro#m!Rs#m!Rv#m!R!P#m!R!Q#m!R!T#m!R!U#m!R!X#m!R!]#m!R!h#m!R!r#m!R!s#m!R!t#m!R!{#m!R!}#m!R#P#m!R#R#m!R#T#m!R#X#m!R#Z#m!R#^#m!R#_#m!R#a#m!R#c#m!R#l#m!R#o#m!R#s#m!R#u#m!R#z#m!R#}#m!R$P#m!R%X#m!R%o#m!R%p#m!R%t#m!R%u#m!R&Z#m!R&[#m!R&]#m!R&^#m!R&_#m!R&`#m!R&a#m!R&b#m!R&c#m!R&d#m!R&e#m!R&f#m!R&g#m!R&h#m!R&i#m!R&j#m!R%Z#m!R%_#m!R~Oo0cOv0qO{&xy~P'vOV*SOa*TO%q*UO%uWOg&yi~O$S-lO%Z.VO%_.VO~OV.aOh._O!X.^O!].`O!h.YO!s.[O!t.[O%p.XO%uWO&Z]O&[]O&]]O&^]O&_]O&`]O&a]O&b]O~Oo0cOv0qOz$lq!W$lq~P'vO{.fOz$lq!W$lq~Oo0cOv0qO{*gO!W&Xy~P'vOz.gO!W&Xy~Oo0cOv.kO~P'vOs-sO!T%dO!U%cOg&Oy!W&Oy![&Oyz&Oy~P!/jO{(kO![.nO~O{(kO![.nO!m.oO~OV*SOa*TO%q*UO%uWO~Oh.tO!f.rOz$TX#[$TX%j$TXg$TX~Os$TX{$TX!W$TX![$TX~P$-bO%o.vO%p.vOs$UXz$UX{$UX#[$UX%j$UX!W$UXg$UX![$UX~O!h.xO~Oz.|O#[/OO%j.yOs&|X{&|X!W&|Xg&|X~Oa/RO~P$)zOh.tOs&}Xz&}X{&}X#[&}X%j&}X!W&}Xg&}X![&}X~Os/VO{$jO~Oo0cOv0qOz$ly!W$ly~P'vOo0cOv0qO{*gO!W&X!R~P'vOz/ZO!W&X!R~Og&RXs&RX!T&RX!U&RX!W&RX![&RXz&RX~P!/jOs-sO!T%dO!U%cOg&Qa!W&Qa![&Qaz&Qa~O{(kO![/^O~O!f.rOh$[as$[az$[a{$[a#[$[a%j$[a!W$[ag$[a![$[a~O!h/eO~O%o.vO%p.vOs$Uaz$Ua{$Ua#[$Ua%j$Ua!W$Uag$Ua![$Ua~O%j.yOs$Yaz$Ya{$Ya#[$Ya!W$Yag$Ya![$Ya~Os&|a{&|a!W&|ag&|a~P$)nOz/jOs&|a{&|a!W&|ag&|a~O!W/mO~Og/mO~O{/oO~O![/pO~Oo0cOv0qO{*gO!W&X!Z~P'vO{/sO~O%z/tO~P$-bOz/uO#[/OO%j.yOg'PX~Oz/uOg'PX~Og/wO~O!h/xO~O#[/OOs%Saz%Sa{%Sa%j%Sa!W%Sag%Sa![%Sa~O#[/OO%j.yOs%Waz%Wa{%Wa!W%Wag%Wa~Os&|i{&|i!W&|ig&|i~P$)nOz/zO#[/OO%j.yO!['Oa~Og'Pa~P$)nOz0SOg'Pa~Oa0UO!['Oi~P$)zOz0WO!['Oi~Oz0WO#[/OO%j.yO!['Oi~O#[/OO%j.yOg$biz$bi~O%z0ZO~P$-bO#[/OO%j.yOg%Vaz%Va~Og'Pi~P$)nO{0^O~Oa0UO!['Oq~P$)zOz0`O!['Oq~O#[/OO%j.yOz%Ui![%Ui~Oa0UO~P$)zOa0UO!['Oy~P$)zO#[/OO%j.yOg$ciz$ci~O#[/OO%j.yOz%Uq![%Uq~Oz+aO#g%ha%[%ha%_%ha%z%ha~P%SOV&OOo0cOv0qO~P'vOn0hO~Oo0hO~P'vO{0iO~Ot0jO~P!/jO&]&Z&j&h&i&g&f&d&e&c&b&`&a&_&^&[%u~",goto:"!=j'QPPPPPP'RP'Z*s+[+t,_,y-fP.SP'Z.r.r'ZPPP'Z2[PPPPPP2[5PPP5PP7b7k=sPP=v>h>kPP'Z'ZPP>zPP'Z'ZPP'Z'Z'Z'Z'Z?O?w'ZP?zP@QDXGuGyPG|HWH['ZPPPH_Hk'RP'R'RP'RP'RP'RP'RP'R'R'RP'RPP'RPP'RP'RPHqH}IVPI^IdPI^PI^I^PPPI^PKrPK{LVL]KrPI^LfPI^PLmLsPLwM]MzNeLwLwNkNxLwLwLwLw! ^! d! g! l! o! y!!P!!]!!o!!u!#P!#V!#s!#y!$P!$Z!$a!$g!$y!%T!%Z!%a!%k!%q!%w!%}!&T!&Z!&e!&k!&u!&{!'U!'[!'k!'s!'}!(UPPPPPPPPPPP!([!(_!(e!(n!(x!)TPPPPPPPPPPPP!-u!/Z!3^!6oPP!6w!7W!7a!8Y!8P!8c!8i!8l!8o!8r!8z!9jPPPPPPPPPPPPPPPPP!9m!9q!9wP!:]!:a!:m!:v!;S!;j!;m!;p!;v!;|!<S!<VP!<_!<h!=d!=g]eOn#g$j)t,P'}`OTYZ[adnoprtxy}!P!Q!R!U!X!c!d!e!f!g!h!i!k!o!p!q!s!t!z#O#S#T#[#d#g#x#y#{#}$Q$e$g$h$j$q$}%S%Z%^%`%c%g%l%n%w%|&O&Z&_&h&j&k&u&x&|'P'W'Z'l'm'p'r's'w'|(O(S(W(](^(d(g(p(r(z(})^)e)g)k)l)p)t)z*O*Y*d*g*h*k*q*r*t*v*y*z*}+Q+U+V+Y+a+c+d+k+x+y,P,X,Y,],g,h,i,k,l,o,q,s,u,w,y,z-O-d-f-m-p-s.f.g/V/Z/s0c0d0e0f0h0i0j0k0l0n0r{!cQ#c#p$R$d$p%e%j%p%q&`'O'g(q(|)j*o*x+w,v0g}!dQ#c#p$R$d$p$u%e%j%p%q&`'O'g(q(|)j*o*x+w,v0g!P!eQ#c#p$R$d$p$u$v%e%j%p%q&`'O'g(q(|)j*o*x+w,v0g!R!fQ#c#p$R$d$p$u$v$w%e%j%p%q&`'O'g(q(|)j*o*x+w,v0g!T!gQ#c#p$R$d$p$u$v$w$x%e%j%p%q&`'O'g(q(|)j*o*x+w,v0g!V!hQ#c#p$R$d$p$u$v$w$x$y%e%j%p%q&`'O'g(q(|)j*o*x+w,v0g!Z!hQ!n#c#p$R$d$p$u$v$w$x$y$z%e%j%p%q&`'O'g(q(|)j*o*x+w,v0g'}TOTYZ[adnoprtxy}!P!Q!R!U!X!c!d!e!f!g!h!i!k!o!p!q!s!t!z#O#S#T#[#d#g#x#y#{#}$Q$e$g$h$j$q$}%S%Z%^%`%c%g%l%n%w%|&O&Z&_&h&j&k&u&x&|'P'W'Z'l'm'p'r's'w'|(O(S(W(](^(d(g(p(r(z(})^)e)g)k)l)p)t)z*O*Y*d*g*h*k*q*r*t*v*y*z*}+Q+U+V+Y+a+c+d+k+x+y,P,X,Y,],g,h,i,k,l,o,q,s,u,w,y,z-O-d-f-m-p-s.f.g/V/Z/s0c0d0e0f0h0i0j0k0l0n0r&eVOYZ[dnprxy}!P!Q!U!i!k!o!p!q!s!t#[#d#g#y#{#}$Q$h$j$}%S%Z%^%`%g%l%n%w%|&Z&_&j&k&u&x'P'W'Z'l'm'p'r's'w(O(W(^(d(g(p(r(z)^)e)g)p)t)z*O*Y*d*g*h*k*q*r*t*v*y*z*}+U+V+Y+a+d+k,P,X,Y,],g,h,i,k,l,o,q,s,u,w,y,z-O-d-f-m-p-s.f.g/V/Z/s0c0d0e0f0h0i0j0k0n0r%oXOYZ[dnrxy}!P!Q!U!i!k#[#d#g#y#{#}$Q$h$j$}%S%^%`%g%l%n%w%|&Z&_&j&k&u&x'P'W'Z'l'm'p'r's'w(O(W(^(d(g(p(r(z)^)e)g)p)t)z*O*Y*d*g*h*k*q*t*v*y*z*}+U+V+Y+a+d+k,P,X,Y,],g,h,i,k,l,o,s,u,w,y,z-O-d-f-m-p.f.g/V/Z0i0j0kQ#vqQ/[.kR0o0q't`OTYZ[adnoprtxy}!P!Q!R!U!X!c!d!e!f!g!h!k!o!p!q!s!t!z#O#S#T#[#d#g#x#y#{#}$Q$e$g$h$j$q$}%S%Z%^%`%c%g%l%n%w%|&O&Z&_&h&j&k&u&x&|'P'W'Z'l'p'r's'w'|(O(S(W(](^(d(g(p(r(z(})^)e)g)k)l)p)t)z*O*Y*g*h*k*q*r*t*v*y*z*}+Q+U+V+Y+a+c+d+k+x+y,P,X,Y,],h,i,k,l,o,q,s,u,w,y,z-O-d-f-m-p-s.f.g/V/Z/s0c0d0e0f0h0i0j0k0l0n0rh#jhz{$W$Z&l&q)S)X+f+g-RW#rq&].k0qQ$]|Q$a!OQ$n!VQ$o!WW$|!i'm*d,gS&[#s#tQ'S$iQ(s&UQ)U&nU)Y&s)Z+jW)a&w+m-T-{Q*Q']W*R'_,`-h.TQ+l)`S,_*S*TQ-Q+eQ-_,TQ-c,WQ.R-al.W-l.^._.a.z.|/R/j/o/t/y0U0Z0^Q/S.`Q/a.tQ/l/OU0P/u0S0[X0V/z0W0_0`R&Z#r!_!wYZ!P!Q!k%S%`%g'p'r's(O(W)g*g*h*k*q*t*v,h,i,k,l,o-m-p.f.g/ZR%^!vQ!{YQ%x#[Q&d#}Q&g$QR,{+YT.j-s/s!Y!jQ!n#c#p$R$d$p$u$v$w$x$y$z%e%j%p%q&`'O'g(q(|)j*o*x+w,v0gQ&X#kQ'c$oR*^'dR'l$|Q%V!mR/_.r'|_OTYZ[adnoprtxy}!P!Q!R!U!X!c!d!e!f!g!h!i!k!o!p!q!s!t!z#O#S#T#[#d#g#x#y#{#}$Q$e$g$h$j$q$}%S%Z%^%`%c%g%l%n%w%|&O&Z&_&h&j&k&u&x&|'P'W'Z'l'm'p'r's'w'|(O(S(W(](^(d(g(p(r(z(})^)e)g)k)l)p)t)z*O*Y*d*g*h*k*q*r*t*v*y*z*}+Q+U+V+Y+a+c+d+k+x+y,P,X,Y,],g,h,i,k,l,o,q,s,u,w,y,z-O-d-f-m-p-s.f.g/V/Z/s0c0d0e0f0h0i0j0k0l0n0rS#a_#b!P.[-l.^._.`.a.t.z.|/R/j/o/t/u/y/z0S0U0W0Z0[0^0_0`'|_OTYZ[adnoprtxy}!P!Q!R!U!X!c!d!e!f!g!h!i!k!o!p!q!s!t!z#O#S#T#[#d#g#x#y#{#}$Q$e$g$h$j$q$}%S%Z%^%`%c%g%l%n%w%|&O&Z&_&h&j&k&u&x&|'P'W'Z'l'm'p'r's'w'|(O(S(W(](^(d(g(p(r(z(})^)e)g)k)l)p)t)z*O*Y*d*g*h*k*q*r*t*v*y*z*}+Q+U+V+Y+a+c+d+k+x+y,P,X,Y,],g,h,i,k,l,o,q,s,u,w,y,z-O-d-f-m-p-s.f.g/V/Z/s0c0d0e0f0h0i0j0k0l0n0rT#a_#bT#^^#_R(o%xa(l%x(n(o+`,{-y-z.oT+[(k+]R-z,{Q$PsQ+l)aQ,^*RR-e,_X#}s$O$P&fQ&y$aQ'a$nQ'd$oR)s'SQ)b&wV-S+m-T-{ZgOn$j)t,PXkOn)t,PQ$k!TQ&z$bQ&{$cQ'^$mQ'b$oQ)q'RQ)x'WQ){'XQ)|'YQ*Z'`S*]'c'dQ+s)gQ+u)hQ+v)iQ+z)oS+|)r*[Q,Q)vQ,R)wS,S)y)zQ,d*^Q-V+rQ-W+tQ-Y+{S-Z+},OQ-`,UQ-b,VQ-|-XQ.O-[Q.P-^Q.Q-_Q.p-}Q.q.RQ/W.dR/r/XWkOn)t,PR#mjQ'`$nS)r'S'aR,O)sQ,]*RR-f,^Q*['`Q+})rR-[,OZiOjn)t,PQ'f$pR*`'gT-j,e-ku.c-l.^._.a.t.z.|/R/j/o/t/u/y0S0U0Z0[0^t.c-l.^._.a.t.z.|/R/j/o/t/u/y0S0U0Z0[0^Q/S.`X0V/z0W0_0`!P.Z-l.^._.`.a.t.z.|/R/j/o/t/u/y/z0S0U0W0Z0[0^0_0`Q.w.YR/f.xg.z.].{/b/i/n/|0O0Q0]0a0bu.b-l.^._.a.t.z.|/R/j/o/t/u/y0S0U0Z0[0^X.u.W.b/a0PR/c.tV0R/u0S0[R/X.dQnOS#on,PR,P)tQ&^#uR(x&^S%m#R#wS(_%m(bT(b%p&`Q%a!yQ%h!}W(P%a%h(U(YQ(U%eR(Y%jQ&i$RR)O&iQ(e%qQ*{(`T+R(e*{Q'n%OR*e'nS'q%R%SY*i'q*j,m-q.hU*j'r's'tU,m*k*l*mS-q,n,oR.h-rQ#Y]R%t#YQ#_^R%y#_Q(h%vS+W(h+XR+X(iQ+](kR,|+]Q#b_R%{#bQ#ebQ%}#cW&Q#e%}({+bQ({&cR+b0gQ$OsS&e$O&fR&f$PQ&v$_R)_&vQ&V#jR(t&VQ&m$VS)T&m+hR+h)UQ$Z{R&p$ZQ&t$]R)[&tQ+n)bR-U+nQ#hfR&S#hQ)f&zR+q)fQ&}$dS)m&})nR)n'OQ'V$kR)u'VQ'[$lS*P'[,ZR,Z*QQ,a*VR-i,aWjOn)t,PR#ljQ-k,eR.U-kd.{.]/b/i/n/|0O0Q0]0a0bR/h.{U.s.W/a0PR/`.sQ/{/nS0X/{0YR0Y/|S/v/b/cR0T/vQ.}.]R/k.}R!ZPXmOn)t,PWlOn)t,PR'T$jYfOn$j)t,PR&R#g[sOn#g$j)t,PR&d#}&dQOYZ[dnprxy}!P!Q!U!i!k!o!p!q!s!t#[#d#g#y#{#}$Q$h$j$}%S%Z%^%`%g%l%n%w%|&Z&_&j&k&u&x'P'W'Z'l'm'p'r's'w(O(W(^(d(g(p(r(z)^)e)g)p)t)z*O*Y*d*g*h*k*q*r*t*v*y*z*}+U+V+Y+a+d+k,P,X,Y,],g,h,i,k,l,o,q,s,u,w,y,z-O-d-f-m-p-s.f.g/V/Z/s0c0d0e0f0h0i0j0k0n0rQ!nTQ#caQ#poU$Rt%c(SS$d!R$gQ$p!XQ$u!cQ$v!dQ$w!eQ$x!fQ$y!gQ$z!hQ%e!zQ%j#OQ%p#SQ%q#TQ&`#xQ'O$eQ'g$qQ(q&OU(|&h(}+cW)j&|)l+x+yQ*o'|Q*x(]Q+w)kQ,v+QR0g0lQ!yYQ!}ZQ$b!PQ$c!QQ%R!kQ't%S^'{%`%g(O(W*q*t*v^*f'p*h,k,l-p.g/ZQ*l'rQ*m'sQ+t)gQ,j*gQ,n*kQ-n,hQ-o,iQ-r,oQ.e-mR/Y.f[bOn#g$j)t,P!^!vYZ!P!Q!k%S%`%g'p'r's(O(W)g*g*h*k*q*t*v,h,i,k,l,o-m-p.f.g/ZQ#R[Q#fdS#wrxQ$UyW$_}$Q'P)pS$l!U$hW${!i'm*d,gS%v#[+Y`&P#d%|(p(r(z+a-O0kQ&a#yQ&b#{Q&c#}Q'j$}Q'z%^W([%l(^*y*}Q(`%nQ(i%wQ(v&ZS(y&_0iQ)P&jQ)Q&kU)]&u)^+kQ)d&xQ)y'WY)}'Z*O,X,Y-dQ*b'lS*n'w0jW+P(d*z,s,wW+T(g+V,y,zQ+p)eQ,U)zQ,c*YQ,x+UQ-P+dQ-e,]Q-v,uQ.S-fR/q/VhUOn#d#g$j%|&_'w(p(r)t,P%U!uYZ[drxy}!P!Q!U!i!k#[#y#{#}$Q$h$}%S%^%`%g%l%n%w&Z&j&k&u&x'P'W'Z'l'm'p'r's(O(W(^(d(g(z)^)e)g)p)z*O*Y*d*g*h*k*q*t*v*y*z*}+U+V+Y+a+d+k,X,Y,],g,h,i,k,l,o,s,u,w,y,z-O-d-f-m-p.f.g/V/Z0i0j0kQ#qpW%W!o!s0d0nQ%X!pQ%Y!qQ%[!tQ%f0cS'v%Z0hQ'x0eQ'y0fQ,p*rQ-u,qS.i-s/sR0p0rU#uq.k0qR(w&][cOn#g$j)t,PZ!xY#[#}$Q+YQ#W[Q#zrR$TxQ%b!yQ%i!}Q%o#RQ'j${Q(V%eQ(Z%jQ(c%pQ(f%qQ*|(`Q,f*bQ-t,pQ.m-uR/].lQ$StQ(R%cR*s(SQ.l-sR/}/sR#QZR#V[R%Q!iQ%O!iV*c'm*d,g!Z!lQ!n#c#p$R$d$p$u$v$w$x$y$z%e%j%p%q&`'O'g(q(|)j*o*x+w,v0gR%T!kT#]^#_Q%x#[R,{+YQ(m%xS+_(n(oQ,}+`Q-x,{S.n-y-zR/^.oT+Z(k+]Q$`}Q&g$QQ)o'PR+{)pQ$XzQ)W&qR+i)XQ$XzQ&o$WQ)W&qR+i)XQ#khW$Vz$W&q)XQ$[{Q&r$ZZ)R&l)S+f+g-RR$^|R)c&wXlOn)t,PQ$f!RR'Q$gQ$m!UR'R$hR*X'_Q*V'_V-g,`-h.TQ.d-lQ/P.^R/Q._U.]-l.^._Q/U.aQ/b.tQ/g.zU/i.|/j/yQ/n/RQ/|/oQ0O/tU0Q/u0S0[Q0]0UQ0a0ZR0b0^R/T.`R/d.t",nodeNames:"⚠ print Escape { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatSelfDoc FormatConversion FormatSpec FormatReplacement FormatSelfDoc ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:277,context:Gbn,nodeProps:[["isolate",-5,4,71,72,73,77,""],["group",-15,6,85,87,88,90,92,94,96,98,99,100,102,105,108,110,"Statement Statement",-22,8,18,21,25,40,49,50,56,57,60,61,62,63,64,67,70,71,72,79,80,81,82,"Expression",-10,114,116,119,121,122,126,128,133,135,138,"Statement",-9,143,144,147,148,150,151,152,153,154,"Pattern"],["openedBy",23,"(",54,"[",58,"{"],["closedBy",24,")",55,"]",59,"}"]],propSources:[Xbn],skippedNodes:[0,4],repeatNodeCount:34,tokenData:"!2|~R!`OX%TXY%oY[%T[]%o]p%Tpq%oqr'ars)Yst*xtu%Tuv,dvw-hwx.Uxy/tyz0[z{0r{|2S|}2p}!O3W!O!P4_!P!Q:Z!Q!R;k!R![>_![!]Do!]!^Es!^!_FZ!_!`Gk!`!aHX!a!b%T!b!cIf!c!dJU!d!eK^!e!hJU!h!i!#f!i!tJU!t!u!,|!u!wJU!w!x!.t!x!}JU!}#O!0S#O#P&o#P#Q!0j#Q#R!1Q#R#SJU#S#T%T#T#UJU#U#VK^#V#YJU#Y#Z!#f#Z#fJU#f#g!,|#g#iJU#i#j!.t#j#oJU#o#p!1n#p#q!1s#q#r!2a#r#s!2f#s$g%T$g;'SJU;'S;=`KW<%lOJU`%YT&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T`%lP;=`<%l%To%v]&n`%c_OX%TXY%oY[%T[]%o]p%Tpq%oq#O%T#O#P&o#P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To&tX&n`OY%TYZ%oZ]%T]^%o^#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc'f[&n`O!_%T!_!`([!`#T%T#T#U(r#U#f%T#f#g(r#g#h(r#h#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(cTmR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(yT!mR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk)aV&n`&[ZOr%Trs)vs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk){V&n`Or%Trs*bs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk*iT&n`&^ZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To+PZS_&n`OY*xYZ%TZ]*x]^%T^#o*x#o#p+r#p#q*x#q#r+r#r;'S*x;'S;=`,^<%lO*x_+wTS_OY+rZ]+r^;'S+r;'S;=`,W<%lO+r_,ZP;=`<%l+ro,aP;=`<%l*xj,kV%rQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj-XT!xY&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj-oV%lQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk.]V&n`&ZZOw%Twx.rx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk.wV&n`Ow%Twx/^x#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk/eT&n`&]ZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk/{ThZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc0cTgR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk0yXVZ&n`Oz%Tz{1f{!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk1mVaR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk2ZV%oZ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc2wTzR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To3_W%pZ&n`O!_%T!_!`-Q!`!a3w!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Td4OT&{S&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk4fX!fQ&n`O!O%T!O!P5R!P!Q%T!Q![6T![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk5WV&n`O!O%T!O!P5m!P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk5tT!rZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti6[a!hX&n`O!Q%T!Q![6T![!g%T!g!h7a!h!l%T!l!m9s!m#R%T#R#S6T#S#X%T#X#Y7a#Y#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti7fZ&n`O{%T{|8X|}%T}!O8X!O!Q%T!Q![8s![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti8^V&n`O!Q%T!Q![8s![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti8z]!hX&n`O!Q%T!Q![8s![!l%T!l!m9s!m#R%T#R#S8s#S#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti9zT!hX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk:bX%qR&n`O!P%T!P!Q:}!Q!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj;UV%sQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti;ro!hX&n`O!O%T!O!P=s!P!Q%T!Q![>_![!d%T!d!e?q!e!g%T!g!h7a!h!l%T!l!m9s!m!q%T!q!rA]!r!z%T!z!{Bq!{#R%T#R#S>_#S#U%T#U#V?q#V#X%T#X#Y7a#Y#^%T#^#_9s#_#c%T#c#dA]#d#l%T#l#mBq#m#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti=xV&n`O!Q%T!Q![6T![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti>fc!hX&n`O!O%T!O!P=s!P!Q%T!Q![>_![!g%T!g!h7a!h!l%T!l!m9s!m#R%T#R#S>_#S#X%T#X#Y7a#Y#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti?vY&n`O!Q%T!Q!R@f!R!S@f!S#R%T#R#S@f#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti@mY!hX&n`O!Q%T!Q!R@f!R!S@f!S#R%T#R#S@f#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiAbX&n`O!Q%T!Q!YA}!Y#R%T#R#SA}#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiBUX!hX&n`O!Q%T!Q!YA}!Y#R%T#R#SA}#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiBv]&n`O!Q%T!Q![Co![!c%T!c!iCo!i#R%T#R#SCo#S#T%T#T#ZCo#Z#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiCv]!hX&n`O!Q%T!Q![Co![!c%T!c!iCo!i#R%T#R#SCo#S#T%T#T#ZCo#Z#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%ToDvV{_&n`O!_%T!_!`E]!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TcEdT%{R&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkEzT#gZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkFbXmR&n`O!^%T!^!_F}!_!`([!`!a([!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TjGUV%mQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkGrV%zZ&n`O!_%T!_!`([!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkH`WmR&n`O!_%T!_!`([!`!aHx!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TjIPV%nQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkIoV_Q#}P&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%ToJ_]&n`&YS%uZO!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUoKZP;=`<%lJUoKge&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!tJU!t!uLx!u!}JU!}#R%T#R#SJU#S#T%T#T#fJU#f#gLx#g#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUoMRa&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUkN_V&n`&`ZOr%TrsNts#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkNyV&n`Or%Trs! `s#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk! gT&n`&bZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk! }V&n`&_ZOw%Twx!!dx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!!iV&n`Ow%Twx!#Ox#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!#VT&n`&aZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!#oe&n`&YS%uZOr%Trs!%Qsw%Twx!&px!Q%T!Q![JU![!c%T!c!tJU!t!u!(`!u!}JU!}#R%T#R#SJU#S#T%T#T#fJU#f#g!(`#g#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!%XV&n`&dZOr%Trs!%ns#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!%sV&n`Or%Trs!&Ys#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!&aT&n`&fZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!&wV&n`&cZOw%Twx!'^x#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!'cV&n`Ow%Twx!'xx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!(PT&n`&eZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!(ia&n`&YS%uZOr%Trs!)nsw%Twx!+^x!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!)uV&n`&hZOr%Trs!*[s#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!*aV&n`Or%Trs!*vs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!*}T&n`&jZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!+eV&n`&gZOw%Twx!+zx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,PV&n`Ow%Twx!,fx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,mT&n`&iZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!-Vi&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!dJU!d!eLx!e!hJU!h!i!(`!i!}JU!}#R%T#R#SJU#S#T%T#T#UJU#U#VLx#V#YJU#Y#Z!(`#Z#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUo!.}a&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!0ZT!XZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc!0qT!WR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[Ubn,qbn,Fbn,Jbn,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:l=>Wbn[l]||-1}],tokenPrec:7668});var TCe;const DI=new Co;function Ybn(l){return Ui.define({combine:l?s=>s.concat(l):void 0})}const Zbn=new Co;class Cy{constructor(s,u,h=[],g=""){this.data=s,this.name=g,Bc.prototype.hasOwnProperty("tree")||Object.defineProperty(Bc.prototype,"tree",{get(){return xd(this)}}),this.parser=u,this.extension=[Q9.of(this),Bc.languageData.of((m,p,k)=>{let S=b5t(m,p,k),C=S.type.prop(DI);if(!C)return[];let N=m.facet(C),_=S.type.prop(Zbn);if(_){let P=S.resolve(p-S.from,k);for(let R of _)if(R.test(P,m)){let q=m.facet(R.facet);return R.type=="replace"?q:q.concat(N)}}return N})].concat(h)}isActiveAt(s,u,h=-1){return b5t(s,u,h).type.prop(DI)==this.data}findRegions(s){let u=s.facet(Q9);if((u==null?void 0:u.data)==this.data)return[{from:0,to:s.doc.length}];if(!u||!u.allowsNesting)return[];let h=[],g=(m,p)=>{if(m.prop(DI)==this.data){h.push({from:p,to:p+m.length});return}let k=m.prop(Co.mounted);if(k){if(k.tree.prop(DI)==this.data){if(k.overlay)for(let S of k.overlay)h.push({from:S.from+p,to:S.to+p});else h.push({from:p,to:p+m.length});return}else if(k.overlay){let S=h.length;if(g(k.tree,k.overlay[0].from+p),h.length>S)return}}for(let S=0;S<m.children.length;S++){let C=m.children[S];C instanceof Bf&&g(C,m.positions[S]+p)}};return g(xd(s),0),h}get allowsNesting(){return!0}}Cy.setState=Ls.define();function b5t(l,s,u){let h=l.facet(Q9),g=xd(l).topNode;if(!h||h.allowsNesting)for(let m=g;m;m=m.enter(s,u,La.ExcludeBuffers|La.EnterBracketed))m.type.isTop&&(g=m);return g}class Bhe extends Cy{constructor(s,u,h){super(s,u,[],h),this.parser=u}static define(s){let u=Ybn(s.languageData);return new Bhe(u,s.parser.configure({props:[DI.add(h=>h.isTop?u:void 0)]}),s.name)}configure(s,u){return new Bhe(this.data,this.parser.configure(s),u||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function xd(l){let s=l.field(Cy.state,!1);return s?s.tree:Bf.empty}class emn{constructor(s){this.doc=s,this.cursorPos=0,this.string="",this.cursor=s.iter()}get length(){return this.doc.length}syncTo(s){return this.string=this.cursor.next(s-this.cursorPos).value,this.cursorPos=s+this.string.length,this.cursorPos-this.string.length}chunk(s){return this.syncTo(s),this.string}get lineChunks(){return!0}read(s,u){let h=this.cursorPos-this.string.length;return s<h||u>=this.cursorPos?this.doc.sliceString(s,u):this.string.slice(s-h,u-h)}}let HV=null;class zhe{constructor(s,u,h=[],g,m,p,k,S){this.parser=s,this.state=u,this.fragments=h,this.tree=g,this.treeLen=m,this.viewport=p,this.skipped=k,this.scheduleOn=S,this.parse=null,this.tempSkipped=[]}static create(s,u,h){return new zhe(s,u,[],Bf.empty,0,h,[],null)}startParse(){return this.parser.startParse(new emn(this.state.doc),this.fragments)}work(s,u){return u!=null&&u>=this.state.doc.length&&(u=void 0),this.tree!=Bf.empty&&this.isDone(u??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var h;if(typeof s=="number"){let g=Date.now()+s;s=()=>Date.now()>g}for(this.parse||(this.parse=this.startParse()),u!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>u)&&u<this.state.doc.length&&this.parse.stopAt(u);;){let g=this.parse.advance();if(g)if(this.fragments=this.withoutTempSkipped(PM.addTree(g,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(h=this.parse.stoppedAt)!==null&&h!==void 0?h:this.state.doc.length,this.tree=g,this.parse=null,this.treeLen<(u??this.state.doc.length))this.parse=this.startParse();else return!0;if(s())return!1}})}takeTree(){let s,u;this.parse&&(s=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>s)&&this.parse.stopAt(s),this.withContext(()=>{for(;!(u=this.parse.advance()););}),this.treeLen=s,this.tree=u,this.fragments=this.withoutTempSkipped(PM.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(s){let u=HV;HV=this;try{return s()}finally{HV=u}}withoutTempSkipped(s){for(let u;u=this.tempSkipped.pop();)s=m5t(s,u.from,u.to);return s}changes(s,u){let{fragments:h,tree:g,treeLen:m,viewport:p,skipped:k}=this;if(this.takeTree(),!s.empty){let S=[];if(s.iterChangedRanges((C,N,_,P)=>S.push({fromA:C,toA:N,fromB:_,toB:P})),h=PM.applyChanges(h,S),g=Bf.empty,m=0,p={from:s.mapPos(p.from,-1),to:s.mapPos(p.to,1)},this.skipped.length){k=[];for(let C of this.skipped){let N=s.mapPos(C.from,1),_=s.mapPos(C.to,-1);N<_&&k.push({from:N,to:_})}}}return new zhe(this.parser,u,h,g,m,p,k,this.scheduleOn)}updateViewport(s){if(this.viewport.from==s.from&&this.viewport.to==s.to)return!1;this.viewport=s;let u=this.skipped.length;for(let h=0;h<this.skipped.length;h++){let{from:g,to:m}=this.skipped[h];g<s.to&&m>s.from&&(this.fragments=m5t(this.fragments,g,m),this.skipped.splice(h--,1))}return this.skipped.length>=u?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(s,u){this.skipped.push({from:s,to:u})}static getSkippingParser(s){return new class extends tSt{createParse(u,h,g){let m=g[0].from,p=g[g.length-1].to;return{parsedPos:m,advance(){let S=HV;if(S){for(let C of g)S.tempSkipped.push(C);s&&(S.scheduleOn=S.scheduleOn?Promise.all([S.scheduleOn,s]):s)}return this.parsedPos=p,new Bf(Sp.none,[],[],p-m)},stoppedAt:null,stopAt(){}}}}}isDone(s){s=Math.min(s,this.state.doc.length);let u=this.fragments;return this.treeLen>=s&&u.length&&u[0].from==0&&u[0].to>=s}static get(){return HV}}function m5t(l,s,u){return PM.applyChanges(l,[{fromA:s,toA:u,fromB:s,toB:u}])}class rR{constructor(s){this.context=s,this.tree=s.tree}apply(s){if(!s.docChanged&&this.tree==this.context.tree)return this;let u=this.context.changes(s.changes,s.state),h=this.context.treeLen==s.startState.doc.length?void 0:Math.max(s.changes.mapPos(this.context.treeLen),u.viewport.to);return u.work(20,h)||u.takeTree(),new rR(u)}static init(s){let u=Math.min(3e3,s.doc.length),h=zhe.create(s.facet(Q9).parser,s,{from:0,to:u});return h.work(20,u)||h.takeTree(),new rR(h)}}Cy.state=kd.define({create:rR.init,update(l,s){for(let u of s.effects)if(u.is(Cy.setState))return u.value;return s.startState.facet(Q9)!=s.state.facet(Q9)?rR.init(s.state):l.apply(s)}});let hSt=l=>{let s=setTimeout(()=>l(),500);return()=>clearTimeout(s)};typeof requestIdleCallback<"u"&&(hSt=l=>{let s=-1,u=setTimeout(()=>{s=requestIdleCallback(l,{timeout:400})},100);return()=>s<0?clearTimeout(u):cancelIdleCallback(s)});const ECe=typeof navigator<"u"&&(!((TCe=navigator.scheduling)===null||TCe===void 0)&&TCe.isInputPending)?()=>navigator.scheduling.isInputPending():null,tmn=Qh.fromClass(class{constructor(s){this.view=s,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(s){let u=this.view.state.field(Cy.state).context;(u.updateViewport(s.view.viewport)||this.view.viewport.to>u.treeLen)&&this.scheduleWork(),(s.docChanged||s.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(u)}scheduleWork(){if(this.working)return;let{state:s}=this.view,u=s.field(Cy.state);(u.tree!=u.context.tree||!u.context.isDone(s.doc.length))&&(this.working=hSt(this.work))}work(s){this.working=null;let u=Date.now();if(this.chunkEnd<u&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=u+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:h,viewport:{to:g}}=this.view,m=h.field(Cy.state);if(m.tree==m.context.tree&&m.context.isDone(g+1e5))return;let p=Date.now()+Math.min(this.chunkBudget,100,s&&!ECe?Math.max(25,s.timeRemaining()-5):1e9),k=m.context.treeLen<g&&h.doc.length>g+1e3,S=m.context.work(()=>ECe&&ECe()||Date.now()>p,g+(k?0:1e5));this.chunkBudget-=Date.now()-u,(S||this.chunkBudget<=0)&&(m.context.takeTree(),this.view.dispatch({effects:Cy.setState.of(new rR(m.context))})),this.chunkBudget>0&&!(S&&!k)&&this.scheduleWork(),this.checkAsyncSchedule(m.context)}checkAsyncSchedule(s){s.scheduleOn&&(this.workScheduled++,s.scheduleOn.then(()=>this.scheduleWork()).catch(u=>yp(this.view.state,u)).then(()=>this.workScheduled--),s.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Q9=Ui.define({combine(l){return l.length?l[0]:null},enables:l=>[Cy.state,tmn,Bi.contentAttributes.compute([l],s=>{let u=s.facet(l);return u&&u.name?{"data-language":u.name}:{}})]});class nmn{constructor(s,u=[]){this.language=s,this.support=u,this.extension=[s,u]}}const imn=Ui.define(),nW=Ui.define({combine:l=>{if(!l.length)return"  ";let s=l[0];if(!s||/\S/.test(s)||Array.from(s).some(u=>u!=s[0]))throw new Error("Invalid indent unit: "+JSON.stringify(l[0]));return s}});function Fhe(l){let s=l.facet(nW);return s.charCodeAt(0)==9?l.tabSize*s.length:s.length}function LX(l,s){let u="",h=l.tabSize,g=l.facet(nW)[0];if(g=="	"){for(;s>=h;)u+="	",s-=h;g=" "}for(let m=0;m<s;m++)u+=g;return u}function cNe(l,s){l instanceof Bc&&(l=new jde(l));for(let h of l.state.facet(imn)){let g=h(l,s);if(g!==void 0)return g}let u=xd(l.state);return u.length>=s?rmn(l,u,s):null}class jde{constructor(s,u={}){this.state=s,this.options=u,this.unit=Fhe(s)}lineAt(s,u=1){let h=this.state.doc.lineAt(s),{simulateBreak:g,simulateDoubleBreak:m}=this.options;return g!=null&&g>=h.from&&g<=h.to?m&&g==s?{text:"",from:s}:(u<0?g<s:g<=s)?{text:h.text.slice(g-h.from),from:g}:{text:h.text.slice(0,g-h.from),from:h.from}:h}textAfterPos(s,u=1){if(this.options.simulateDoubleBreak&&s==this.options.simulateBreak)return"";let{text:h,from:g}=this.lineAt(s,u);return h.slice(s-g,Math.min(h.length,s+100-g))}column(s,u=1){let{text:h,from:g}=this.lineAt(s,u),m=this.countColumn(h,s-g),p=this.options.overrideIndentation?this.options.overrideIndentation(g):-1;return p>-1&&(m+=p-this.countColumn(h,h.search(/\S|$/))),m}countColumn(s,u=s.length){return KX(s,this.state.tabSize,u)}lineIndent(s,u=1){let{text:h,from:g}=this.lineAt(s,u),m=this.options.overrideIndentation;if(m){let p=m(g);if(p>-1)return p}return this.countColumn(h,h.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const dSt=new Co;function rmn(l,s,u){let h=s.resolveStack(u),g=s.resolveInner(u,-1).resolve(u,0).enterUnfinishedNodesBefore(u);if(g!=h.node){let m=[];for(let p=g;p&&!(p.from<h.node.from||p.to>h.node.to||p.from==h.node.from&&p.type==h.node.type);p=p.parent)m.push(p);for(let p=m.length-1;p>=0;p--)h={node:m[p],next:h}}return gSt(h,l,u)}function gSt(l,s,u){for(let h=l;h;h=h.next){let g=omn(h.node);if(g)return g(lNe.create(s,u,h))}return 0}function smn(l){return l.pos==l.options.simulateBreak&&l.options.simulateDoubleBreak}function omn(l){let s=l.type.prop(dSt);if(s)return s;let u=l.firstChild,h;if(u&&(h=u.type.prop(Co.closedBy))){let g=l.lastChild,m=g&&h.indexOf(g.name)>-1;return p=>pSt(p,!0,1,void 0,m&&!smn(p)?g.from:void 0)}return l.parent==null?cmn:null}function cmn(){return 0}class lNe extends jde{constructor(s,u,h){super(s.state,s.options),this.base=s,this.pos=u,this.context=h}get node(){return this.context.node}static create(s,u,h){return new lNe(s,u,h)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(s){let u=this.state.doc.lineAt(s.from);for(;;){let h=s.resolve(u.from);for(;h.parent&&h.parent.from==h.from;)h=h.parent;if(lmn(h,s))break;u=this.state.doc.lineAt(h.from)}return this.lineIndent(u.from)}continue(){return gSt(this.context.next,this.base,this.pos)}}function lmn(l,s){for(let u=s;u;u=u.parent)if(l==u)return!0;return!1}function umn(l){let s=l.node,u=s.childAfter(s.from),h=s.lastChild;if(!u)return null;let g=l.options.simulateBreak,m=l.state.doc.lineAt(u.from),p=g==null||g<=m.from?m.to:Math.min(m.to,g);for(let k=u.to;;){let S=s.childAfter(k);if(!S||S==h)return null;if(!S.type.isSkipped){if(S.from>=p)return null;let C=/^ */.exec(m.text.slice(u.to-m.from))[0].length;return{from:u.from,to:u.to+C}}k=S.to}}function CCe({closing:l,align:s=!0,units:u=1}){return h=>pSt(h,s,u,l)}function pSt(l,s,u,h,g){let m=l.textAfter,p=m.match(/^\s*/)[0].length,k=h&&m.slice(p,p+h.length)==h||g==l.pos+p,S=s?umn(l):null;return S?k?l.column(S.from):l.column(S.to):l.baseIndent+(k?0:l.unit*u)}const amn=200;function fmn(){return Bc.transactionFilter.of(l=>{if(!l.docChanged||!l.isUserEvent("input.type")&&!l.isUserEvent("input.complete"))return l;let s=l.startState.languageDataAt("indentOnInput",l.startState.selection.main.head);if(!s.length)return l;let u=l.newDoc,{head:h}=l.newSelection.main,g=u.lineAt(h);if(h>g.from+amn)return l;let m=u.sliceString(g.from,h);if(!s.some(C=>C.test(m)))return l;let{state:p}=l,k=-1,S=[];for(let{head:C}of p.selection.ranges){let N=p.doc.lineAt(C);if(N.from==k)continue;k=N.from;let _=cNe(p,N.from);if(_==null)continue;let P=/^\s*/.exec(N.text)[0],R=LX(p,_);P!=R&&S.push({from:N.from,to:N.from+P.length,insert:R})}return S.length?[l,{changes:S,sequential:!0}]:l})}const hmn=Ui.define(),bSt=new Co;function dmn(l){let s=l.firstChild,u=l.lastChild;return s&&s.to<u.from?{from:s.to,to:u.type.isError?l.to:u.from}:null}function gmn(l,s,u){let h=xd(l);if(h.length<u)return null;let g=h.resolveStack(u,1),m=null;for(let p=g;p;p=p.next){let k=p.node;if(k.to<=u||k.from>u)continue;if(m&&k.from<s)break;let S=k.type.prop(bSt);if(S&&(k.to<h.length-50||h.length==l.doc.length||!pmn(k))){let C=S(k,l);C&&C.from<=u&&C.from>=s&&C.to>u&&(m=C)}}return m}function pmn(l){let s=l.lastChild;return s&&s.to==l.to&&s.type.isError}function qhe(l,s,u){for(let h of l.facet(hmn)){let g=h(l,s,u);if(g)return g}return gmn(l,s,u)}function mSt(l,s){let u=s.mapPos(l.from,1),h=s.mapPos(l.to,-1);return u>=h?void 0:{from:u,to:h}}const Tde=Ls.define({map:mSt}),iW=Ls.define({map:mSt});function wSt(l){let s=[];for(let{head:u}of l.state.selection.ranges)s.some(h=>h.from<=u&&h.to>=u)||s.push(l.lineBlockAt(u));return s}const GM=kd.define({create(){return Fr.none},update(l,s){s.isUserEvent("delete")&&s.changes.iterChangedRanges((u,h)=>l=w5t(l,u,h)),l=l.map(s.changes);for(let u of s.effects)if(u.is(Tde)&&!bmn(l,u.value.from,u.value.to)){let{preparePlaceholder:h}=s.state.facet(xSt),g=h?Fr.replace({widget:new Omn(h(s.state,u.value))}):v5t;l=l.update({add:[g.range(u.value.from,u.value.to)]})}else u.is(iW)&&(l=l.update({filter:(h,g)=>u.value.from!=h||u.value.to!=g,filterFrom:u.value.from,filterTo:u.value.to}));return s.selection&&(l=w5t(l,s.selection.main.head)),l},provide:l=>Bi.decorations.from(l),toJSON(l,s){let u=[];return l.between(0,s.doc.length,(h,g)=>{u.push(h,g)}),u},fromJSON(l){if(!Array.isArray(l)||l.length%2)throw new RangeError("Invalid JSON for fold state");let s=[];for(let u=0;u<l.length;){let h=l[u++],g=l[u++];if(typeof h!="number"||typeof g!="number")throw new RangeError("Invalid JSON for fold state");s.push(v5t.range(h,g))}return Fr.set(s,!0)}});function w5t(l,s,u=s){let h=!1;return l.between(s,u,(g,m)=>{g<u&&m>s&&(h=!0)}),h?l.update({filterFrom:s,filterTo:u,filter:(g,m)=>g>=u||m<=s}):l}function Hhe(l,s,u){var h;let g=null;return(h=l.field(GM,!1))===null||h===void 0||h.between(s,u,(m,p)=>{(!g||g.from>m)&&(g={from:m,to:p})}),g}function bmn(l,s,u){let h=!1;return l.between(s,s,(g,m)=>{g==s&&m==u&&(h=!0)}),h}function vSt(l,s){return l.field(GM,!1)?s:s.concat(Ls.appendConfig.of(kSt()))}const mmn=l=>{for(let s of wSt(l)){let u=qhe(l.state,s.from,s.to);if(u)return l.dispatch({effects:vSt(l.state,[Tde.of(u),ySt(l,u)])}),!0}return!1},wmn=l=>{if(!l.state.field(GM,!1))return!1;let s=[];for(let u of wSt(l)){let h=Hhe(l.state,u.from,u.to);h&&s.push(iW.of(h),ySt(l,h,!1))}return s.length&&l.dispatch({effects:s}),s.length>0};function ySt(l,s,u=!0){let h=l.state.doc.lineAt(s.from).number,g=l.state.doc.lineAt(s.to).number;return Bi.announce.of(`${l.state.phrase(u?"Folded lines":"Unfolded lines")} ${h} ${l.state.phrase("to")} ${g}.`)}const vmn=l=>{let{state:s}=l,u=[];for(let h=0;h<s.doc.length;){let g=l.lineBlockAt(h),m=qhe(s,g.from,g.to);m&&u.push(Tde.of(m)),h=(m?l.lineBlockAt(m.to):g).to+1}return u.length&&l.dispatch({effects:vSt(l.state,u)}),!!u.length},ymn=l=>{let s=l.state.field(GM,!1);if(!s||!s.size)return!1;let u=[];return s.between(0,l.state.doc.length,(h,g)=>{u.push(iW.of({from:h,to:g}))}),l.dispatch({effects:u}),!0},xmn=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:mmn},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:wmn},{key:"Ctrl-Alt-[",run:vmn},{key:"Ctrl-Alt-]",run:ymn}],kmn={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},xSt=Ui.define({combine(l){return c5(l,kmn)}});function kSt(l){return[GM,Tmn]}function OSt(l,s){let{state:u}=l,h=u.facet(xSt),g=p=>{let k=l.lineBlockAt(l.posAtDOM(p.target)),S=Hhe(l.state,k.from,k.to);S&&l.dispatch({effects:iW.of(S)}),p.preventDefault()};if(h.placeholderDOM)return h.placeholderDOM(l,g,s);let m=document.createElement("span");return m.textContent=h.placeholderText,m.setAttribute("aria-label",u.phrase("folded code")),m.title=u.phrase("unfold"),m.className="cm-foldPlaceholder",m.onclick=g,m}const v5t=Fr.replace({widget:new class extends kO{toDOM(l){return OSt(l,null)}}});class Omn extends kO{constructor(s){super(),this.value=s}eq(s){return this.value==s.value}toDOM(s){return OSt(s,this.value)}}const Smn={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class MCe extends s5{constructor(s,u){super(),this.config=s,this.open=u}eq(s){return this.config==s.config&&this.open==s.open}toDOM(s){if(this.config.markerDOM)return this.config.markerDOM(this.open);let u=document.createElement("span");return u.textContent=this.open?this.config.openText:this.config.closedText,u.title=s.state.phrase(this.open?"Fold line":"Unfold line"),u}}function jmn(l={}){let s={...Smn,...l},u=new MCe(s,!0),h=new MCe(s,!1),g=Qh.fromClass(class{constructor(p){this.from=p.viewport.from,this.markers=this.buildMarkers(p)}update(p){(p.docChanged||p.viewportChanged||p.startState.facet(Q9)!=p.state.facet(Q9)||p.startState.field(GM,!1)!=p.state.field(GM,!1)||xd(p.startState)!=xd(p.state)||s.foldingChanged(p))&&(this.markers=this.buildMarkers(p.view))}buildMarkers(p){let k=new B9;for(let S of p.viewportLineBlocks){let C=Hhe(p.state,S.from,S.to)?h:qhe(p.state,S.from,S.to)?u:null;C&&k.add(S.from,S.from,C)}return k.finish()}}),{domEventHandlers:m}=s;return[g,V6t({class:"cm-foldGutter",markers(p){var k;return((k=p.plugin(g))===null||k===void 0?void 0:k.markers)||yo.empty},initialSpacer(){return new MCe(s,!1)},domEventHandlers:{...m,click:(p,k,S)=>{if(m.click&&m.click(p,k,S))return!0;let C=Hhe(p.state,k.from,k.to);if(C)return p.dispatch({effects:iW.of(C)}),!0;let N=qhe(p.state,k.from,k.to);return N?(p.dispatch({effects:Tde.of(N)}),!0):!1}}}),kSt()]}const Tmn=Bi.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Ede{constructor(s,u){this.specs=s;let h;function g(k){let S=z9.newName();return(h||(h=Object.create(null)))["."+S]=k,S}const m=typeof u.all=="string"?u.all:u.all?g(u.all):void 0,p=u.scope;this.scope=p instanceof Cy?k=>k.prop(DI)==p.data:p?k=>k==p:void 0,this.style=rSt(s.map(k=>({tag:k.tag,class:k.class||g(Object.assign({},k,{tag:null}))})),{all:m}).style,this.module=h?new z9(h):null,this.themeType=u.themeType}static define(s,u){return new Ede(s,u||{})}}const KMe=Ui.define(),Emn=Ui.define({combine(l){return l.length?[l[0]]:null}});function ACe(l){let s=l.facet(KMe);return s.length?s:l.facet(Emn)}function Cmn(l,s){let u=[Amn],h;return l instanceof Ede&&(l.module&&u.push(Bi.styleModule.of(l.module)),h=l.themeType),h?u.push(KMe.computeN([Bi.darkTheme],g=>g.facet(Bi.darkTheme)==(h=="dark")?[l]:[])):u.push(KMe.of(l)),u}class Mmn{constructor(s){this.markCache=Object.create(null),this.tree=xd(s.state),this.decorations=this.buildDeco(s,ACe(s.state)),this.decoratedTo=s.viewport.to}update(s){let u=xd(s.state),h=ACe(s.state),g=h!=ACe(s.startState),{viewport:m}=s.view,p=s.changes.mapPos(this.decoratedTo,1);u.length<m.to&&!g&&u.type==this.tree.type&&p>=m.to?(this.decorations=this.decorations.map(s.changes),this.decoratedTo=p):(u!=this.tree||s.viewportChanged||g)&&(this.tree=u,this.decorations=this.buildDeco(s.view,h),this.decoratedTo=m.to)}buildDeco(s,u){if(!u||!this.tree.length)return Fr.none;let h=new B9;for(let{from:g,to:m}of s.visibleRanges)Bpn(this.tree,u,(p,k,S)=>{h.add(p,k,this.markCache[S]||(this.markCache[S]=Fr.mark({class:S})))},g,m);return h.finish()}}const Amn=G9.high(Qh.fromClass(Mmn,{decorations:l=>l.decorations})),Nmn=Bi.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),SSt=1e4,jSt="()[]{}",TSt=Ui.define({combine(l){return c5(l,{afterCursor:!0,brackets:jSt,maxScanDistance:SSt,renderMatch:Lmn})}}),_mn=Fr.mark({class:"cm-matchingBracket"}),Dmn=Fr.mark({class:"cm-nonmatchingBracket"});function Lmn(l){let s=[],u=l.matched?_mn:Dmn;return s.push(u.range(l.start.from,l.start.to)),l.end&&s.push(u.range(l.end.from,l.end.to)),s}function y5t(l){let s=[],u=l.facet(TSt);for(let h of l.selection.ranges){if(!h.empty)continue;let g=K3(l,h.head,-1,u)||h.head>0&&K3(l,h.head-1,1,u)||u.afterCursor&&(K3(l,h.head,1,u)||h.head<l.doc.length&&K3(l,h.head+1,-1,u));g&&(s=s.concat(u.renderMatch(g,l)))}return Fr.set(s,!0)}const Pmn=Qh.fromClass(class{constructor(l){this.paused=!1,this.decorations=y5t(l.state)}update(l){(l.docChanged||l.selectionSet||this.paused)&&(l.view.composing?(this.decorations=this.decorations.map(l.changes),this.paused=!0):(this.decorations=y5t(l.state),this.paused=!1))}},{decorations:l=>l.decorations}),Imn=[Pmn,Nmn];function Rmn(l={}){return[TSt.of(l),Imn]}const $mn=new Co;function YMe(l,s,u){let h=l.prop(s<0?Co.openedBy:Co.closedBy);if(h)return h;if(l.name.length==1){let g=u.indexOf(l.name);if(g>-1&&g%2==(s<0?1:0))return[u[g+s]]}return null}function ZMe(l){let s=l.type.prop($mn);return s?s(l.node):l}function K3(l,s,u,h={}){let g=h.maxScanDistance||SSt,m=h.brackets||jSt,p=xd(l),k=p.resolveInner(s,u);for(let S=k;S;S=S.parent){let C=YMe(S.type,u,m);if(C&&S.from<S.to){let N=ZMe(S);if(N&&(u>0?s>=N.from&&s<N.to:s>N.from&&s<=N.to))return Bmn(l,s,u,S,N,C,m)}}return zmn(l,s,u,p,k.type,g,m)}function Bmn(l,s,u,h,g,m,p){let k=h.parent,S={from:g.from,to:g.to},C=0,N=k==null?void 0:k.cursor();if(N&&(u<0?N.childBefore(h.from):N.childAfter(h.to)))do if(u<0?N.to<=h.from:N.from>=h.to){if(C==0&&m.indexOf(N.type.name)>-1&&N.from<N.to){let _=ZMe(N);return{start:S,end:_?{from:_.from,to:_.to}:void 0,matched:!0}}else if(YMe(N.type,u,p))C++;else if(YMe(N.type,-u,p)){if(C==0){let _=ZMe(N);return{start:S,end:_&&_.from<_.to?{from:_.from,to:_.to}:void 0,matched:!1}}C--}}while(u<0?N.prevSibling():N.nextSibling());return{start:S,matched:!1}}function zmn(l,s,u,h,g,m,p){let k=u<0?l.sliceDoc(s-1,s):l.sliceDoc(s,s+1),S=p.indexOf(k);if(S<0||S%2==0!=u>0)return null;let C={from:u<0?s-1:s,to:u>0?s+1:s},N=l.doc.iterRange(s,u>0?l.doc.length:0),_=0;for(let P=0;!N.next().done&&P<=m;){let R=N.value;u<0&&(P+=R.length);let q=s+P*u;for(let F=u>0?0:R.length-1,X=u>0?R.length:-1;F!=X;F+=u){let J=p.indexOf(R[F]);if(!(J<0||h.resolveInner(q+F,1).type!=g))if(J%2==0==u>0)_++;else{if(_==1)return{start:C,end:{from:q+F,to:q+F+1},matched:J>>1==S>>1};_--}}u>0&&(P+=R.length)}return N.done?{start:C,matched:!1}:null}const Fmn=Object.create(null),x5t=[Sp.none],k5t=[],O5t=Object.create(null),qmn=Object.create(null);for(let[l,s]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])qmn[l]=Hmn(Fmn,s);function NCe(l,s){k5t.indexOf(l)>-1||(k5t.push(l),console.warn(s))}function Hmn(l,s){let u=[];for(let k of s.split(" ")){let S=[];for(let C of k.split(".")){let N=l[C]||Qn[C];N?typeof N=="function"?S.length?S=S.map(N):NCe(C,`Modifier ${C} used at start of tag`):S.length?NCe(C,`Tag ${C} used as modifier`):S=Array.isArray(N)?N:[N]:NCe(C,`Unknown highlighting tag ${C}`)}for(let C of S)u.push(C)}if(!u.length)return 0;let h=s.replace(/ /g,"_"),g=h+" "+u.map(k=>k.id),m=O5t[g];if(m)return m.id;let p=O5t[g]=Sp.define({id:x5t.length,name:h,props:[nSt({[h]:u})]});return x5t.push(p),p.id}Zl.RTL,Zl.LTR;class ESt{constructor(s,u,h,g){this.state=s,this.pos=u,this.explicit=h,this.view=g,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(s){let u=xd(this.state).resolveInner(this.pos,-1);for(;u&&s.indexOf(u.name)<0;)u=u.parent;return u?{from:u.from,to:this.pos,text:this.state.sliceDoc(u.from,this.pos),type:u.type}:null}matchBefore(s){let u=this.state.doc.lineAt(this.pos),h=Math.max(u.from,this.pos-250),g=u.text.slice(h-u.from,this.pos-u.from),m=g.search(MSt(s,!1));return m<0?null:{from:h+m,to:this.pos,text:g.slice(m)}}get aborted(){return this.abortListeners==null}addEventListener(s,u,h){s=="abort"&&this.abortListeners&&(this.abortListeners.push(u),h&&h.onDocChange&&(this.abortOnDocChange=!0))}}function S5t(l){let s=Object.keys(l).join(""),u=/\w/.test(s);return u&&(s=s.replace(/\w/g,"")),`[${u?"\\w":""}${s.replace(/[^\w\s]/g,"\\$&")}]`}function Qmn(l){let s=Object.create(null),u=Object.create(null);for(let{label:g}of l){s[g[0]]=!0;for(let m=1;m<g.length;m++)u[g[m]]=!0}let h=S5t(s)+S5t(u)+"*$";return[new RegExp("^"+h),new RegExp(h)]}function CSt(l){let s=l.map(g=>typeof g=="string"?{label:g}:g),[u,h]=s.every(g=>/^\w+$/.test(g.label))?[/\w*$/,/\w+$/]:Qmn(s);return g=>{let m=g.matchBefore(h);return m||g.explicit?{from:m?m.from:g.pos,options:s,validFor:u}:null}}function Gmn(l,s){return u=>{for(let h=xd(u.state).resolveInner(u.pos,-1);h;h=h.parent){if(l.indexOf(h.name)>-1)return null;if(h.type.isTop)break}return s(u)}}class j5t{constructor(s,u,h,g){this.completion=s,this.source=u,this.match=h,this.score=g}}function IM(l){return l.selection.main.from}function MSt(l,s){var u;let{source:h}=l,g=s&&h[0]!="^",m=h[h.length-1]!="$";return!g&&!m?l:new RegExp(`${g?"^":""}(?:${h})${m?"$":""}`,(u=l.flags)!==null&&u!==void 0?u:l.ignoreCase?"i":"")}const uNe=xO.define();function Umn(l,s,u,h){let{main:g}=l.selection,m=u-g.from,p=h-g.from;return{...l.changeByRange(k=>{if(k!=g&&u!=h&&l.sliceDoc(k.from+m,k.from+p)!=l.sliceDoc(u,h))return{range:k};let S=l.toText(s);return{changes:{from:k.from+m,to:h==g.from?k.to:k.from+p,insert:S},range:jn.cursor(k.from+m+S.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}const T5t=new WeakMap;function Jmn(l){if(!Array.isArray(l))return l;let s=T5t.get(l);return s||T5t.set(l,s=CSt(l)),s}const Qhe=Ls.define(),PX=Ls.define();class Vmn{constructor(s){this.pattern=s,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let u=0;u<s.length;){let h=Kb(s,u),g=J3(h);this.chars.push(h);let m=s.slice(u,u+g),p=m.toUpperCase();this.folded.push(Kb(p==m?m.toLowerCase():p,0)),u+=g}this.astral=s.length!=this.chars.length}ret(s,u){return this.score=s,this.matched=u,this}match(s){if(this.pattern.length==0)return this.ret(-100,[]);if(s.length<this.pattern.length)return null;let{chars:u,folded:h,any:g,precise:m,byWord:p}=this;if(u.length==1){let ee=Kb(s,0),te=J3(ee),ie=te==s.length?0:-100;if(ee!=u[0])if(ee==h[0])ie+=-200;else return null;return this.ret(ie,[0,te])}let k=s.indexOf(this.pattern);if(k==0)return this.ret(s.length==this.pattern.length?0:-100,[0,this.pattern.length]);let S=u.length,C=0;if(k<0){for(let ee=0,te=Math.min(s.length,200);ee<te&&C<S;){let ie=Kb(s,ee);(ie==u[C]||ie==h[C])&&(g[C++]=ee),ee+=J3(ie)}if(C<S)return null}let N=0,_=0,P=!1,R=0,q=-1,F=-1,X=/[a-z]/.test(s),J=!0;for(let ee=0,te=Math.min(s.length,200),ie=0;ee<te&&_<S;){let oe=Kb(s,ee);k<0&&(N<S&&oe==u[N]&&(m[N++]=ee),R<S&&(oe==u[R]||oe==h[R]?(R==0&&(q=ee),F=ee+1,R++):R=0));let se,ge=oe<255?oe>=48&&oe<=57||oe>=97&&oe<=122?2:oe>=65&&oe<=90?1:0:(se=$Ae(oe))!=se.toLowerCase()?1:se!=se.toUpperCase()?2:0;(!ee||ge==1&&X||ie==0&&ge!=0)&&(u[_]==oe||h[_]==oe&&(P=!0)?p[_++]=ee:p.length&&(J=!1)),ie=ge,ee+=J3(oe)}return _==S&&p[0]==0&&J?this.result(-100+(P?-200:0),p,s):R==S&&q==0?this.ret(-200-s.length+(F==s.length?0:-100),[0,F]):k>-1?this.ret(-700-s.length,[k,k+this.pattern.length]):R==S?this.ret(-900-s.length,[q,F]):_==S?this.result(-100+(P?-200:0)+-700+(J?0:-1100),p,s):u.length==2?null:this.result((g[0]?-700:0)+-200+-1100,g,s)}result(s,u,h){let g=[],m=0;for(let p of u){let k=p+(this.astral?J3(Kb(h,p)):1);m&&g[m-1]==p?g[m-1]=k:(g[m++]=p,g[m++]=k)}return this.ret(s-h.length,g)}}class Xmn{constructor(s){this.pattern=s,this.matched=[],this.score=0,this.folded=s.toLowerCase()}match(s){if(s.length<this.pattern.length)return null;let u=s.slice(0,this.pattern.length),h=u==this.pattern?0:u.toLowerCase()==this.folded?-200:null;return h==null?null:(this.matched=[0,u.length],this.score=h+(s.length==this.pattern.length?0:-100),this)}}const vd=Ui.define({combine(l){return c5(l,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:Wmn,filterStrict:!1,compareCompletions:(s,u)=>(s.sortText||s.label).localeCompare(u.sortText||u.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(s,u)=>s&&u,closeOnBlur:(s,u)=>s&&u,icons:(s,u)=>s&&u,tooltipClass:(s,u)=>h=>E5t(s(h),u(h)),optionClass:(s,u)=>h=>E5t(s(h),u(h)),addToOptions:(s,u)=>s.concat(u),filterStrict:(s,u)=>s||u})}});function E5t(l,s){return l?s?l+" "+s:l:s}function Wmn(l,s,u,h,g,m){let p=l.textDirection==Zl.RTL,k=p,S=!1,C="top",N,_,P=s.left-g.left,R=g.right-s.right,q=h.right-h.left,F=h.bottom-h.top;if(k&&P<Math.min(q,R)?k=!1:!k&&R<Math.min(q,P)&&(k=!0),q<=(k?P:R))N=Math.max(g.top,Math.min(u.top,g.bottom-F))-s.top,_=Math.min(400,k?P:R);else{S=!0,_=Math.min(400,(p?s.right:g.right-s.left)-30);let ee=g.bottom-s.bottom;ee>=F||ee>s.top?N=u.bottom-s.top:(C="bottom",N=s.bottom-u.top)}let X=(s.bottom-s.top)/m.offsetHeight,J=(s.right-s.left)/m.offsetWidth;return{style:`${C}: ${N/X}px; max-width: ${_/J}px`,class:"cm-completionInfo-"+(S?p?"left-narrow":"right-narrow":k?"left":"right")}}const aNe=Ls.define();function Kmn(l){let s=l.addToOptions.slice();return l.icons&&s.push({render(u){let h=document.createElement("div");return h.classList.add("cm-completionIcon"),u.type&&h.classList.add(...u.type.split(/\s+/g).map(g=>"cm-completionIcon-"+g)),h.setAttribute("aria-hidden","true"),h},position:20}),s.push({render(u,h,g,m){let p=document.createElement("span");p.className="cm-completionLabel";let k=u.displayLabel||u.label,S=0;for(let C=0;C<m.length;){let N=m[C++],_=m[C++];N>S&&p.appendChild(document.createTextNode(k.slice(S,N)));let P=p.appendChild(document.createElement("span"));P.appendChild(document.createTextNode(k.slice(N,_))),P.className="cm-completionMatchedText",S=_}return S<k.length&&p.appendChild(document.createTextNode(k.slice(S))),p},position:50},{render(u){if(!u.detail)return null;let h=document.createElement("span");return h.className="cm-completionDetail",h.textContent=u.detail,h},position:80}),s.sort((u,h)=>u.position-h.position).map(u=>u.render)}function _Ce(l,s,u){if(l<=u)return{from:0,to:l};if(s<0&&(s=0),s<=l>>1){let g=Math.floor(s/u);return{from:g*u,to:(g+1)*u}}let h=Math.floor((l-s)/u);return{from:l-(h+1)*u,to:l-h*u}}class Ymn{constructor(s,u,h){this.view=s,this.stateField=u,this.applyCompletion=h,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:S=>this.placeInfo(S),key:this},this.space=null,this.currentClass="";let g=s.state.field(u),{options:m,selected:p}=g.open,k=s.state.facet(vd);this.optionContent=Kmn(k),this.optionClass=k.optionClass,this.tooltipClass=k.tooltipClass,this.range=_Ce(m.length,p,k.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(s.state),this.dom.addEventListener("mousedown",S=>{let{options:C}=s.state.field(u).open;for(let N=S.target,_;N&&N!=this.dom;N=N.parentNode)if(N.nodeName=="LI"&&(_=/-(\d+)$/.exec(N.id))&&+_[1]<C.length){this.applyCompletion(s,C[+_[1]]),S.preventDefault();return}if(S.target==this.list){let N=this.list.classList.contains("cm-completionListIncompleteTop")&&S.clientY<this.list.firstChild.getBoundingClientRect().top?this.range.from-1:this.list.classList.contains("cm-completionListIncompleteBottom")&&S.clientY>this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;N!=null&&(s.dispatch({effects:aNe.of(N)}),S.preventDefault())}}),this.dom.addEventListener("focusout",S=>{let C=s.state.field(this.stateField,!1);C&&C.tooltip&&s.state.facet(vd).closeOnBlur&&S.relatedTarget!=s.contentDOM&&s.dispatch({effects:PX.of(null)})}),this.showOptions(m,g.id)}mount(){this.updateSel()}showOptions(s,u){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(s,u,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(s){var u;let h=s.state.field(this.stateField),g=s.startState.field(this.stateField);if(this.updateTooltipClass(s.state),h!=g){let{options:m,selected:p,disabled:k}=h.open;(!g.open||g.open.options!=m)&&(this.range=_Ce(m.length,p,s.state.facet(vd).maxRenderedOptions),this.showOptions(m,h.id)),this.updateSel(),k!=((u=g.open)===null||u===void 0?void 0:u.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!k)}}updateTooltipClass(s){let u=this.tooltipClass(s);if(u!=this.currentClass){for(let h of this.currentClass.split(" "))h&&this.dom.classList.remove(h);for(let h of u.split(" "))h&&this.dom.classList.add(h);this.currentClass=u}}positioned(s){this.space=s,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let s=this.view.state.field(this.stateField),u=s.open;(u.selected>-1&&u.selected<this.range.from||u.selected>=this.range.to)&&(this.range=_Ce(u.options.length,u.selected,this.view.state.facet(vd).maxRenderedOptions),this.showOptions(u.options,s.id));let h=this.updateSelectedOption(u.selected);if(h){this.destroyInfo();let{completion:g}=u.options[u.selected],{info:m}=g;if(!m)return;let p=typeof m=="string"?document.createTextNode(m):m(g);if(!p)return;"then"in p?p.then(k=>{k&&this.view.state.field(this.stateField,!1)==s&&this.addInfoPane(k,g)}).catch(k=>yp(this.view.state,k,"completion info")):(this.addInfoPane(p,g),h.setAttribute("aria-describedby",this.info.id))}}addInfoPane(s,u){this.destroyInfo();let h=this.info=document.createElement("div");if(h.className="cm-tooltip cm-completionInfo",h.id="cm-completionInfo-"+Math.floor(Math.random()*65535).toString(16),s.nodeType!=null)h.appendChild(s),this.infoDestroy=null;else{let{dom:g,destroy:m}=s;h.appendChild(g),this.infoDestroy=m||null}this.dom.appendChild(h),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(s){let u=null;for(let h=this.list.firstChild,g=this.range.from;h;h=h.nextSibling,g++)h.nodeName!="LI"||!h.id?g--:g==s?h.hasAttribute("aria-selected")||(h.setAttribute("aria-selected","true"),u=h):h.hasAttribute("aria-selected")&&(h.removeAttribute("aria-selected"),h.removeAttribute("aria-describedby"));return u&&ewn(this.list,u),u}measureInfo(){let s=this.dom.querySelector("[aria-selected]");if(!s||!this.info)return null;let u=this.dom.getBoundingClientRect(),h=this.info.getBoundingClientRect(),g=s.getBoundingClientRect(),m=this.space;if(!m){let p=this.dom.ownerDocument.documentElement;m={left:0,top:0,right:p.clientWidth,bottom:p.clientHeight}}return g.top>Math.min(m.bottom,u.bottom)-10||g.bottom<Math.max(m.top,u.top)+10?null:this.view.state.facet(vd).positionInfo(this.view,u,g,h,m,this.dom)}placeInfo(s){this.info&&(s?(s.style&&(this.info.style.cssText=s.style),this.info.className="cm-tooltip cm-completionInfo "+(s.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(s,u,h){const g=document.createElement("ul");g.id=u,g.setAttribute("role","listbox"),g.setAttribute("aria-expanded","true"),g.setAttribute("aria-label",this.view.state.phrase("Completions")),g.addEventListener("mousedown",p=>{p.target==g&&p.preventDefault()});let m=null;for(let p=h.from;p<h.to;p++){let{completion:k,match:S}=s[p],{section:C}=k;if(C){let P=typeof C=="string"?C:C.name;if(P!=m&&(p>h.from||h.from==0))if(m=P,typeof C!="string"&&C.header)g.appendChild(C.header(C));else{let R=g.appendChild(document.createElement("completion-section"));R.textContent=P}}const N=g.appendChild(document.createElement("li"));N.id=u+"-"+p,N.setAttribute("role","option");let _=this.optionClass(k);_&&(N.className=_);for(let P of this.optionContent){let R=P(k,this.view.state,this.view,S);R&&N.appendChild(R)}}return h.from&&g.classList.add("cm-completionListIncompleteTop"),h.to<s.length&&g.classList.add("cm-completionListIncompleteBottom"),g}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function Zmn(l,s){return u=>new Ymn(u,l,s)}function ewn(l,s){let u=l.getBoundingClientRect(),h=s.getBoundingClientRect(),g=u.height/l.offsetHeight;h.top<u.top?l.scrollTop-=(u.top-h.top)/g:h.bottom>u.bottom&&(l.scrollTop+=(h.bottom-u.bottom)/g)}function C5t(l){return(l.boost||0)*100+(l.apply?10:0)+(l.info?5:0)+(l.type?1:0)}function twn(l,s){let u=[],h=null,g=null,m=N=>{u.push(N);let{section:_}=N.completion;if(_){h||(h=[]);let P=typeof _=="string"?_:_.name;h.some(R=>R.name==P)||h.push(typeof _=="string"?{name:P}:_)}},p=s.facet(vd);for(let N of l)if(N.hasResult()){let _=N.result.getMatch;if(N.result.filter===!1)for(let P of N.result.options)m(new j5t(P,N.source,_?_(P):[],1e9-u.length));else{let P=s.sliceDoc(N.from,N.to),R,q=p.filterStrict?new Xmn(P):new Vmn(P);for(let F of N.result.options)if(R=q.match(F.label)){let X=F.displayLabel?_?_(F,R.matched):[]:R.matched,J=R.score+(F.boost||0);if(m(new j5t(F,N.source,X,J)),typeof F.section=="object"&&F.section.rank==="dynamic"){let{name:ee}=F.section;g||(g=Object.create(null)),g[ee]=Math.max(J,g[ee]||-1e9)}}}}if(h){let N=Object.create(null),_=0,P=(R,q)=>(R.rank==="dynamic"&&q.rank==="dynamic"?g[q.name]-g[R.name]:0)||(typeof R.rank=="number"?R.rank:1e9)-(typeof q.rank=="number"?q.rank:1e9)||(R.name<q.name?-1:1);for(let R of h.sort(P))_-=1e5,N[R.name]=_;for(let R of u){let{section:q}=R.completion;q&&(R.score+=N[typeof q=="string"?q:q.name])}}let k=[],S=null,C=p.compareCompletions;for(let N of u.sort((_,P)=>P.score-_.score||C(_.completion,P.completion))){let _=N.completion;!S||S.label!=_.label||S.detail!=_.detail||S.type!=null&&_.type!=null&&S.type!=_.type||S.apply!=_.apply||S.boost!=_.boost?k.push(N):C5t(N.completion)>C5t(S)&&(k[k.length-1]=N),S=N.completion}return k}class LI{constructor(s,u,h,g,m,p){this.options=s,this.attrs=u,this.tooltip=h,this.timestamp=g,this.selected=m,this.disabled=p}setSelected(s,u){return s==this.selected||s>=this.options.length?this:new LI(this.options,M5t(u,s),this.tooltip,this.timestamp,s,this.disabled)}static build(s,u,h,g,m,p){if(g&&!p&&s.some(C=>C.isPending))return g.setDisabled();let k=twn(s,u);if(!k.length)return g&&s.some(C=>C.isPending)?g.setDisabled():null;let S=u.facet(vd).selectOnOpen?0:-1;if(g&&g.selected!=S&&g.selected!=-1){let C=g.options[g.selected].completion;for(let N=0;N<k.length;N++)if(k[N].completion==C){S=N;break}}return new LI(k,M5t(h,S),{pos:s.reduce((C,N)=>N.hasResult()?Math.min(C,N.from):C,1e8),create:cwn,above:m.aboveCursor},g?g.timestamp:Date.now(),S,!1)}map(s){return new LI(this.options,this.attrs,{...this.tooltip,pos:s.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new LI(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class Ghe{constructor(s,u,h){this.active=s,this.id=u,this.open=h}static start(){return new Ghe(swn,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(s){let{state:u}=s,h=u.facet(vd),m=(h.override||u.languageDataAt("autocomplete",IM(u)).map(Jmn)).map(S=>(this.active.find(N=>N.source==S)||new Xw(S,this.active.some(N=>N.state!=0)?1:0)).update(s,h));m.length==this.active.length&&m.every((S,C)=>S==this.active[C])&&(m=this.active);let p=this.open,k=s.effects.some(S=>S.is(fNe));p&&s.docChanged&&(p=p.map(s.changes)),s.selection||m.some(S=>S.hasResult()&&s.changes.touchesRange(S.from,S.to))||!nwn(m,this.active)||k?p=LI.build(m,u,this.id,p,h,k):p&&p.disabled&&!m.some(S=>S.isPending)&&(p=null),!p&&m.every(S=>!S.isPending)&&m.some(S=>S.hasResult())&&(m=m.map(S=>S.hasResult()?new Xw(S.source,0):S));for(let S of s.effects)S.is(aNe)&&(p=p&&p.setSelected(S.value,this.id));return m==this.active&&p==this.open?this:new Ghe(m,this.id,p)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?iwn:rwn}}function nwn(l,s){if(l==s)return!0;for(let u=0,h=0;;){for(;u<l.length&&!l[u].hasResult();)u++;for(;h<s.length&&!s[h].hasResult();)h++;let g=u==l.length,m=h==s.length;if(g||m)return g==m;if(l[u++].result!=s[h++].result)return!1}}const iwn={"aria-autocomplete":"list"},rwn={};function M5t(l,s){let u={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":l};return s>-1&&(u["aria-activedescendant"]=l+"-"+s),u}const swn=[];function ASt(l,s){if(l.isUserEvent("input.complete")){let h=l.annotation(uNe);if(h&&s.activateOnCompletion(h))return 12}let u=l.isUserEvent("input.type");return u&&s.activateOnTyping?5:u?1:l.isUserEvent("delete.backward")?2:l.selection?8:l.docChanged?16:0}class Xw{constructor(s,u,h=!1){this.source=s,this.state=u,this.explicit=h}hasResult(){return!1}get isPending(){return this.state==1}update(s,u){let h=ASt(s,u),g=this;(h&8||h&16&&this.touches(s))&&(g=new Xw(g.source,0)),h&4&&g.state==0&&(g=new Xw(this.source,1)),g=g.updateFor(s,h);for(let m of s.effects)if(m.is(Qhe))g=new Xw(g.source,1,m.value);else if(m.is(PX))g=new Xw(g.source,0);else if(m.is(fNe))for(let p of m.value)p.source==g.source&&(g=p);return g}updateFor(s,u){return this.map(s.changes)}map(s){return this}touches(s){return s.changes.touchesRange(IM(s.state))}}class QI extends Xw{constructor(s,u,h,g,m,p){super(s,3,u),this.limit=h,this.result=g,this.from=m,this.to=p}hasResult(){return!0}updateFor(s,u){var h;if(!(u&3))return this.map(s.changes);let g=this.result;g.map&&!s.changes.empty&&(g=g.map(g,s.changes));let m=s.changes.mapPos(this.from),p=s.changes.mapPos(this.to,1),k=IM(s.state);if(k>p||!g||u&2&&(IM(s.startState)==this.from||k<this.limit))return new Xw(this.source,u&4?1:0);let S=s.changes.mapPos(this.limit);return own(g.validFor,s.state,m,p)?new QI(this.source,this.explicit,S,g,m,p):g.update&&(g=g.update(g,m,p,new ESt(s.state,k,!1)))?new QI(this.source,this.explicit,S,g,g.from,(h=g.to)!==null&&h!==void 0?h:IM(s.state)):new Xw(this.source,1,this.explicit)}map(s){return s.empty?this:(this.result.map?this.result.map(this.result,s):this.result)?new QI(this.source,this.explicit,s.mapPos(this.limit),this.result,s.mapPos(this.from),s.mapPos(this.to,1)):new Xw(this.source,0)}touches(s){return s.changes.touchesRange(this.from,this.to)}}function own(l,s,u,h){if(!l)return!1;let g=s.sliceDoc(u,h);return typeof l=="function"?l(g,u,h,s):MSt(l,!0).test(g)}const fNe=Ls.define({map(l,s){return l.map(u=>u.map(s))}}),mp=kd.define({create(){return Ghe.start()},update(l,s){return l.update(s)},provide:l=>[xde.from(l,s=>s.tooltip),Bi.contentAttributes.from(l,s=>s.attrs)]});function hNe(l,s){const u=s.completion.apply||s.completion.label;let h=l.state.field(mp).active.find(g=>g.source==s.source);return h instanceof QI?(typeof u=="string"?l.dispatch({...Umn(l.state,u,h.from,h.to),annotations:uNe.of(s.completion)}):u(l,s.completion,h.from,h.to),!0):!1}const cwn=Zmn(mp,hNe);function Dfe(l,s="option"){return u=>{let h=u.state.field(mp,!1);if(!h||!h.open||h.open.disabled||Date.now()-h.open.timestamp<u.state.facet(vd).interactionDelay)return!1;let g=1,m;s=="page"&&(m=H6t(u,h.open.tooltip))&&(g=Math.max(2,Math.floor(m.dom.offsetHeight/m.dom.querySelector("li").offsetHeight)-1));let{length:p}=h.open.options,k=h.open.selected>-1?h.open.selected+g*(l?1:-1):l?0:p-1;return k<0?k=s=="page"?0:p-1:k>=p&&(k=s=="page"?p-1:0),u.dispatch({effects:aNe.of(k)}),!0}}const lwn=l=>{let s=l.state.field(mp,!1);return l.state.readOnly||!s||!s.open||s.open.selected<0||s.open.disabled||Date.now()-s.open.timestamp<l.state.facet(vd).interactionDelay?!1:hNe(l,s.open.options[s.open.selected])},DCe=l=>l.state.field(mp,!1)?(l.dispatch({effects:Qhe.of(!0)}),!0):!1,uwn=l=>{let s=l.state.field(mp,!1);return!s||!s.active.some(u=>u.state!=0)?!1:(l.dispatch({effects:PX.of(null)}),!0)};class awn{constructor(s,u){this.active=s,this.context=u,this.time=Date.now(),this.updates=[],this.done=void 0}}const fwn=50,hwn=1e3,dwn=Qh.fromClass(class{constructor(l){this.view=l,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let s of l.state.field(mp).active)s.isPending&&this.startQuery(s)}update(l){let s=l.state.field(mp),u=l.state.facet(vd);if(!l.selectionSet&&!l.docChanged&&l.startState.field(mp)==s)return;let h=l.transactions.some(m=>{let p=ASt(m,u);return p&8||(m.selection||m.docChanged)&&!(p&3)});for(let m=0;m<this.running.length;m++){let p=this.running[m];if(h||p.context.abortOnDocChange&&l.docChanged||p.updates.length+l.transactions.length>fwn&&Date.now()-p.time>hwn){for(let k of p.context.abortListeners)try{k()}catch(S){yp(this.view.state,S)}p.context.abortListeners=null,this.running.splice(m--,1)}else p.updates.push(...l.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),l.transactions.some(m=>m.effects.some(p=>p.is(Qhe)))&&(this.pendingStart=!0);let g=this.pendingStart?50:u.activateOnTypingDelay;if(this.debounceUpdate=s.active.some(m=>m.isPending&&!this.running.some(p=>p.active.source==m.source))?setTimeout(()=>this.startUpdate(),g):-1,this.composing!=0)for(let m of l.transactions)m.isUserEvent("input.type")?this.composing=2:this.composing==2&&m.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:l}=this.view,s=l.field(mp);for(let u of s.active)u.isPending&&!this.running.some(h=>h.active.source==u.source)&&this.startQuery(u);this.running.length&&s.open&&s.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(vd).updateSyncTime))}startQuery(l){let{state:s}=this.view,u=IM(s),h=new ESt(s,u,l.explicit,this.view),g=new awn(l,h);this.running.push(g),Promise.resolve(l.source(h)).then(m=>{g.context.aborted||(g.done=m||null,this.scheduleAccept())},m=>{this.view.dispatch({effects:PX.of(null)}),yp(this.view.state,m)})}scheduleAccept(){this.running.every(l=>l.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(vd).updateSyncTime))}accept(){var l;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let s=[],u=this.view.state.facet(vd),h=this.view.state.field(mp);for(let g=0;g<this.running.length;g++){let m=this.running[g];if(m.done===void 0)continue;if(this.running.splice(g--,1),m.done){let k=IM(m.updates.length?m.updates[0].startState:this.view.state),S=Math.min(k,m.done.from+(m.active.explicit?0:1)),C=new QI(m.active.source,m.active.explicit,S,m.done,m.done.from,(l=m.done.to)!==null&&l!==void 0?l:k);for(let N of m.updates)C=C.update(N,u);if(C.hasResult()){s.push(C);continue}}let p=h.active.find(k=>k.source==m.active.source);if(p&&p.isPending)if(m.done==null){let k=new Xw(m.active.source,0);for(let S of m.updates)k=k.update(S,u);k.isPending||s.push(k)}else this.startQuery(p)}(s.length||h.open&&h.open.disabled)&&this.view.dispatch({effects:fNe.of(s)})}},{eventHandlers:{blur(l){let s=this.view.state.field(mp,!1);if(s&&s.tooltip&&this.view.state.facet(vd).closeOnBlur){let u=s.open&&H6t(this.view,s.open.tooltip);(!u||!u.dom.contains(l.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:PX.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Qhe.of(!1)}),20),this.composing=0}}}),gwn=typeof navigator=="object"&&/Win/.test(navigator.platform),pwn=G9.highest(Bi.domEventHandlers({keydown(l,s){let u=s.state.field(mp,!1);if(!u||!u.open||u.open.disabled||u.open.selected<0||l.key.length>1||l.ctrlKey&&!(gwn&&l.altKey)||l.metaKey)return!1;let h=u.open.options[u.open.selected],g=u.active.find(p=>p.source==h.source),m=h.completion.commitCharacters||g.result.commitCharacters;return m&&m.indexOf(l.key)>-1&&hNe(s,h),!1}})),NSt=Bi.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class bwn{constructor(s,u,h,g){this.field=s,this.line=u,this.from=h,this.to=g}}class dNe{constructor(s,u,h){this.field=s,this.from=u,this.to=h}map(s){let u=s.mapPos(this.from,-1,s1.TrackDel),h=s.mapPos(this.to,1,s1.TrackDel);return u==null||h==null?null:new dNe(this.field,u,h)}}class gNe{constructor(s,u){this.lines=s,this.fieldPositions=u}instantiate(s,u){let h=[],g=[u],m=s.doc.lineAt(u),p=/^\s*/.exec(m.text)[0];for(let S of this.lines){if(h.length){let C=p,N=/^\t*/.exec(S)[0].length;for(let _=0;_<N;_++)C+=s.facet(nW);g.push(u+C.length-N),S=C+S.slice(N)}h.push(S),u+=S.length+1}let k=this.fieldPositions.map(S=>new dNe(S.field,g[S.line]+S.from,g[S.line]+S.to));return{text:h,ranges:k}}static parse(s){let u=[],h=[],g=[],m;for(let p of s.split(/\r\n?|\n/)){for(;m=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(p);){let k=m[1]?+m[1]:null,S=m[2]||m[3]||"",C=-1,N=S.replace(/\\[{}]/g,_=>_[1]);for(let _=0;_<u.length;_++)(k!=null?u[_].seq==k:N&&u[_].name==N)&&(C=_);if(C<0){let _=0;for(;_<u.length&&(k==null||u[_].seq!=null&&u[_].seq<k);)_++;u.splice(_,0,{seq:k,name:N}),C=_;for(let P of g)P.field>=C&&P.field++}for(let _ of g)if(_.line==h.length&&_.from>m.index){let P=m[2]?3+(m[1]||"").length:2;_.from-=P,_.to-=P}g.push(new bwn(C,h.length,m.index,m.index+N.length)),p=p.slice(0,m.index)+S+p.slice(m.index+m[0].length)}p=p.replace(/\\([{}])/g,(k,S,C)=>{for(let N of g)N.line==h.length&&N.from>C&&(N.from--,N.to--);return S}),h.push(p)}return new gNe(h,g)}}let mwn=Fr.widget({widget:new class extends kO{toDOM(){let l=document.createElement("span");return l.className="cm-snippetFieldPosition",l}ignoreEvent(){return!1}}}),wwn=Fr.mark({class:"cm-snippetField"});class cR{constructor(s,u){this.ranges=s,this.active=u,this.deco=Fr.set(s.map(h=>(h.from==h.to?mwn:wwn).range(h.from,h.to)),!0)}map(s){let u=[];for(let h of this.ranges){let g=h.map(s);if(!g)return null;u.push(g)}return new cR(u,this.active)}selectionInsideField(s){return s.ranges.every(u=>this.ranges.some(h=>h.field==this.active&&h.from<=u.from&&h.to>=u.to))}}const rW=Ls.define({map(l,s){return l&&l.map(s)}}),vwn=Ls.define(),IX=kd.define({create(){return null},update(l,s){for(let u of s.effects){if(u.is(rW))return u.value;if(u.is(vwn)&&l)return new cR(l.ranges,u.value)}return l&&s.docChanged&&(l=l.map(s.changes)),l&&s.selection&&!l.selectionInsideField(s.selection)&&(l=null),l},provide:l=>Bi.decorations.from(l,s=>s?s.deco:Fr.none)});function pNe(l,s){return jn.create(l.filter(u=>u.field==s).map(u=>jn.range(u.from,u.to)))}function ywn(l){let s=gNe.parse(l);return(u,h,g,m)=>{let{text:p,ranges:k}=s.instantiate(u.state,g),{main:S}=u.state.selection,C={changes:{from:g,to:m==S.from?S.to:m,insert:fc.of(p)},scrollIntoView:!0,annotations:h?[uNe.of(h),ah.userEvent.of("input.complete")]:void 0};if(k.length&&(C.selection=pNe(k,0)),k.some(N=>N.field>0)){let N=new cR(k,0),_=C.effects=[rW.of(N)];u.state.field(IX,!1)===void 0&&_.push(Ls.appendConfig.of([IX,jwn,Twn,NSt]))}u.dispatch(u.state.update(C))}}function _St(l){return({state:s,dispatch:u})=>{let h=s.field(IX,!1);if(!h||l<0&&h.active==0)return!1;let g=h.active+l,m=l>0&&!h.ranges.some(p=>p.field==g+l);return u(s.update({selection:pNe(h.ranges,g),effects:rW.of(m?null:new cR(h.ranges,g)),scrollIntoView:!0})),!0}}const xwn=({state:l,dispatch:s})=>l.field(IX,!1)?(s(l.update({effects:rW.of(null)})),!0):!1,kwn=_St(1),Own=_St(-1),Swn=[{key:"Tab",run:kwn,shift:Own},{key:"Escape",run:xwn}],A5t=Ui.define({combine(l){return l.length?l[0]:Swn}}),jwn=G9.highest(yde.compute([A5t],l=>l.facet(A5t)));function rO(l,s){return{...s,apply:ywn(l)}}const Twn=Bi.domEventHandlers({mousedown(l,s){let u=s.state.field(IX,!1),h;if(!u||(h=s.posAtCoords({x:l.clientX,y:l.clientY}))==null)return!1;let g=u.ranges.find(m=>m.from<=h&&m.to>=h);return!g||g.field==u.active?!1:(s.dispatch({selection:pNe(u.ranges,g.field),effects:rW.of(u.ranges.some(m=>m.field>g.field)?new cR(u.ranges,g.field):null),scrollIntoView:!0}),!0)}}),RX={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},jM=Ls.define({map(l,s){let u=s.mapPos(l,-1,s1.TrackAfter);return u??void 0}}),bNe=new class extends $9{};bNe.startSide=1;bNe.endSide=-1;const DSt=kd.define({create(){return yo.empty},update(l,s){if(l=l.map(s.changes),s.selection){let u=s.state.doc.lineAt(s.selection.main.head);l=l.update({filter:h=>h>=u.from&&h<=u.to})}for(let u of s.effects)u.is(jM)&&(l=l.update({add:[bNe.range(u.value,u.value+1)]}));return l}});function Ewn(){return[Mwn,DSt]}const LCe="()[]{}<>«»»«［］｛｝";function LSt(l){for(let s=0;s<LCe.length;s+=2)if(LCe.charCodeAt(s)==l)return LCe.charAt(s+1);return $Ae(l<128?l:l+1)}function PSt(l,s){return l.languageDataAt("closeBrackets",s)[0]||RX}const Cwn=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Mwn=Bi.inputHandler.of((l,s,u,h)=>{if((Cwn?l.composing:l.compositionStarted)||l.state.readOnly)return!1;let g=l.state.selection.main;if(h.length>2||h.length==2&&J3(Kb(h,0))==1||s!=g.from||u!=g.to)return!1;let m=_wn(l.state,h);return m?(l.dispatch(m),!0):!1}),Awn=({state:l,dispatch:s})=>{if(l.readOnly)return!1;let h=PSt(l,l.selection.main.head).brackets||RX.brackets,g=null,m=l.changeByRange(p=>{if(p.empty){let k=Dwn(l.doc,p.head);for(let S of h)if(S==k&&Cde(l.doc,p.head)==LSt(Kb(S,0)))return{changes:{from:p.head-S.length,to:p.head+S.length},range:jn.cursor(p.head-S.length)}}return{range:g=p}});return g||s(l.update(m,{scrollIntoView:!0,userEvent:"delete.backward"})),!g},Nwn=[{key:"Backspace",run:Awn}];function _wn(l,s){let u=PSt(l,l.selection.main.head),h=u.brackets||RX.brackets;for(let g of h){let m=LSt(Kb(g,0));if(s==g)return m==g?Iwn(l,g,h.indexOf(g+g+g)>-1,u):Lwn(l,g,m,u.before||RX.before);if(s==m&&ISt(l,l.selection.main.from))return Pwn(l,g,m)}return null}function ISt(l,s){let u=!1;return l.field(DSt).between(0,l.doc.length,h=>{h==s&&(u=!0)}),u}function Cde(l,s){let u=l.sliceString(s,s+2);return u.slice(0,J3(Kb(u,0)))}function Dwn(l,s){let u=l.sliceString(s-2,s);return J3(Kb(u,0))==u.length?u:u.slice(1)}function Lwn(l,s,u,h){let g=null,m=l.changeByRange(p=>{if(!p.empty)return{changes:[{insert:s,from:p.from},{insert:u,from:p.to}],effects:jM.of(p.to+s.length),range:jn.range(p.anchor+s.length,p.head+s.length)};let k=Cde(l.doc,p.head);return!k||/\s/.test(k)||h.indexOf(k)>-1?{changes:{insert:s+u,from:p.head},effects:jM.of(p.head+s.length),range:jn.cursor(p.head+s.length)}:{range:g=p}});return g?null:l.update(m,{scrollIntoView:!0,userEvent:"input.type"})}function Pwn(l,s,u){let h=null,g=l.changeByRange(m=>m.empty&&Cde(l.doc,m.head)==u?{changes:{from:m.head,to:m.head+u.length,insert:u},range:jn.cursor(m.head+u.length)}:h={range:m});return h?null:l.update(g,{scrollIntoView:!0,userEvent:"input.type"})}function Iwn(l,s,u,h){let g=h.stringPrefixes||RX.stringPrefixes,m=null,p=l.changeByRange(k=>{if(!k.empty)return{changes:[{insert:s,from:k.from},{insert:s,from:k.to}],effects:jM.of(k.to+s.length),range:jn.range(k.anchor+s.length,k.head+s.length)};let S=k.head,C=Cde(l.doc,S),N;if(C==s){if(N5t(l,S))return{changes:{insert:s+s,from:S},effects:jM.of(S+s.length),range:jn.cursor(S+s.length)};if(ISt(l,S)){let P=u&&l.sliceDoc(S,S+s.length*3)==s+s+s?s+s+s:s;return{changes:{from:S,to:S+P.length,insert:P},range:jn.cursor(S+P.length)}}}else{if(u&&l.sliceDoc(S-2*s.length,S)==s+s&&(N=_5t(l,S-2*s.length,g))>-1&&N5t(l,N))return{changes:{insert:s+s+s+s,from:S},effects:jM.of(S+s.length),range:jn.cursor(S+s.length)};if(l.charCategorizer(S)(C)!=ta.Word&&_5t(l,S,g)>-1&&!Rwn(l,S,s,g))return{changes:{insert:s+s,from:S},effects:jM.of(S+s.length),range:jn.cursor(S+s.length)}}return{range:m=k}});return m?null:l.update(p,{scrollIntoView:!0,userEvent:"input.type"})}function N5t(l,s){let u=xd(l).resolveInner(s+1);return u.parent&&u.from==s}function Rwn(l,s,u,h){let g=xd(l).resolveInner(s,-1),m=h.reduce((p,k)=>Math.max(p,k.length),0);for(let p=0;p<5;p++){let k=l.sliceDoc(g.from,Math.min(g.to,g.from+u.length+m)),S=k.indexOf(u);if(!S||S>-1&&h.indexOf(k.slice(0,S))>-1){let N=g.firstChild;for(;N&&N.from==g.from&&N.to-N.from>u.length+S;){if(l.sliceDoc(N.to-u.length,N.to)==u)return!1;N=N.firstChild}return!0}let C=g.to==s&&g.parent;if(!C)break;g=C}return!1}function _5t(l,s,u){let h=l.charCategorizer(s);if(h(l.sliceDoc(s-1,s))!=ta.Word)return s;for(let g of u){let m=s-g.length;if(l.sliceDoc(m,s)==g&&h(l.sliceDoc(m-1,m))!=ta.Word)return m}return-1}function $wn(l={}){return[pwn,mp,vd.of(l),dwn,Bwn,NSt]}const RSt=[{key:"Ctrl-Space",run:DCe},{mac:"Alt-`",run:DCe},{mac:"Alt-i",run:DCe},{key:"Escape",run:uwn},{key:"ArrowDown",run:Dfe(!0)},{key:"ArrowUp",run:Dfe(!1)},{key:"PageDown",run:Dfe(!0,"page")},{key:"PageUp",run:Dfe(!1,"page")},{key:"Enter",run:lwn}],Bwn=G9.highest(yde.computeN([vd],l=>l.facet(vd).defaultKeymap?[RSt]:[])),D5t=new kpn,$St=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function Lfe(l){return(s,u,h)=>{if(h)return!1;let g=s.node.getChild("VariableName");return g&&u(g,l),!0}}const zwn={FunctionDefinition:Lfe("function"),ClassDefinition:Lfe("class"),ForStatement(l,s,u){if(u){for(let h=l.node.firstChild;h;h=h.nextSibling)if(h.name=="VariableName")s(h,"variable");else if(h.name=="in")break}},ImportStatement(l,s){var u,h;let{node:g}=l,m=((u=g.firstChild)===null||u===void 0?void 0:u.name)=="from";for(let p=g.getChild("import");p;p=p.nextSibling)p.name=="VariableName"&&((h=p.nextSibling)===null||h===void 0?void 0:h.name)!="as"&&s(p,m?"variable":"namespace")},AssignStatement(l,s){for(let u=l.node.firstChild;u;u=u.nextSibling)if(u.name=="VariableName")s(u,"variable");else if(u.name==":"||u.name=="AssignOp")break},ParamList(l,s){for(let u=null,h=l.node.firstChild;h;h=h.nextSibling)h.name=="VariableName"&&(!u||!/\*|AssignOp/.test(u.name))&&s(h,"variable"),u=h},CapturePattern:Lfe("variable"),AsPattern:Lfe("variable"),__proto__:null};function BSt(l,s){let u=D5t.get(s);if(u)return u;let h=[],g=!0;function m(p,k){let S=l.sliceString(p.from,p.to);h.push({label:S,type:k})}return s.cursor(La.IncludeAnonymous).iterate(p=>{if(p.name){let k=zwn[p.name];if(k&&k(p,m,g)||!g&&$St.has(p.name))return!1;g=!1}else if(p.to-p.from>8192){for(let k of BSt(l,p.node))h.push(k);return!1}}),D5t.set(s,h),h}const L5t=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,zSt=["String","FormatString","Comment","PropertyName"];function Fwn(l){let s=xd(l.state).resolveInner(l.pos,-1);if(zSt.indexOf(s.name)>-1)return null;let u=s.name=="VariableName"||s.to-s.from<20&&L5t.test(l.state.sliceDoc(s.from,s.to));if(!u&&!l.explicit)return null;let h=[];for(let g=s;g;g=g.parent)$St.has(g.name)&&(h=h.concat(BSt(l.state.doc,g)));return{options:h,from:u?s.from:l.pos,validFor:L5t}}const qwn=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(l=>({label:l,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(l=>({label:l,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(l=>({label:l,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(l=>({label:l,type:"function"}))),Hwn=[rO("def ${name}(${params}):\n	${}",{label:"def",detail:"function",type:"keyword"}),rO("for ${name} in ${collection}:\n	${}",{label:"for",detail:"loop",type:"keyword"}),rO("while ${}:\n	${}",{label:"while",detail:"loop",type:"keyword"}),rO("try:\n	${}\nexcept ${error}:\n	${}",{label:"try",detail:"/ except block",type:"keyword"}),rO(`if \${}:
	
`,{label:"if",detail:"block",type:"keyword"}),rO("if ${}:\n	${}\nelse:\n	${}",{label:"if",detail:"/ else block",type:"keyword"}),rO("class ${name}:\n	def __init__(self, ${params}):\n			${}",{label:"class",detail:"definition",type:"keyword"}),rO("import ${module}",{label:"import",detail:"statement",type:"keyword"}),rO("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],Qwn=Gmn(zSt,CSt(qwn.concat(Hwn)));function PCe(l){let{node:s,pos:u}=l,h=l.lineIndent(u,-1),g=null;for(;;){let m=s.childBefore(u);if(m)if(m.name=="Comment")u=m.from;else if(m.name=="Body"||m.name=="MatchBody")l.baseIndentFor(m)+l.unit<=h&&(g=m),s=m;else if(m.name=="MatchClause")s=m;else if(m.type.is("Statement"))s=m;else break;else break}return g}function ICe(l,s){let u=l.baseIndentFor(s),h=l.lineAt(l.pos,-1),g=h.from+h.text.length;return/^\s*($|#)/.test(h.text)&&l.node.to<g+100&&!/\S/.test(l.state.sliceDoc(g,l.node.to))&&l.lineIndent(l.pos,-1)<=u||/^\s*(else:|elif |except |finally:|case\s+[^=:]+:)/.test(l.textAfter)&&l.lineIndent(l.pos,-1)>u?null:u+l.unit}const RCe=Bhe.define({name:"python",parser:Kbn.configure({props:[dSt.add({Body:l=>{var s;let u=/^\s*(#|$)/.test(l.textAfter)&&PCe(l)||l.node;return(s=ICe(l,u))!==null&&s!==void 0?s:l.continue()},MatchBody:l=>{var s;let u=PCe(l);return(s=ICe(l,u||l.node))!==null&&s!==void 0?s:l.continue()},IfStatement:l=>/^\s*(else:|elif )/.test(l.textAfter)?l.baseIndent:l.continue(),"ForStatement WhileStatement":l=>/^\s*else:/.test(l.textAfter)?l.baseIndent:l.continue(),TryStatement:l=>/^\s*(except[ :]|finally:|else:)/.test(l.textAfter)?l.baseIndent:l.continue(),MatchStatement:l=>/^\s*case /.test(l.textAfter)?l.baseIndent+l.unit:l.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":CCe({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":CCe({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":CCe({closing:"]"}),MemberExpression:l=>l.baseIndent+l.unit,"String FormatString":()=>null,Script:l=>{var s;let u=PCe(l);return(s=u&&ICe(l,u))!==null&&s!==void 0?s:l.continue()}}),bSt.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":dmn,Body:(l,s)=>({from:l.from+1,to:l.to-(l.to==s.doc.length?0:1)}),"String FormatString":(l,s)=>({from:s.doc.lineAt(l.from).to,to:l.to})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function Gwn(){return new nmn(RCe,[RCe.data.of({autocomplete:Fwn}),RCe.data.of({autocomplete:Qwn})])}const Uwn=l=>{let{state:s}=l,u=s.doc.lineAt(s.selection.main.from),h=wNe(l.state,u.from);return h.line?Jwn(l):h.block?Xwn(l):!1};function mNe(l,s){return({state:u,dispatch:h})=>{if(u.readOnly)return!1;let g=l(s,u);return g?(h(u.update(g)),!0):!1}}const Jwn=mNe(Ywn,0),Vwn=mNe(FSt,0),Xwn=mNe((l,s)=>FSt(l,s,Kwn(s)),0);function wNe(l,s){let u=l.languageDataAt("commentTokens",s,1);return u.length?u[0]:{}}const QV=50;function Wwn(l,{open:s,close:u},h,g){let m=l.sliceDoc(h-QV,h),p=l.sliceDoc(g,g+QV),k=/\s*$/.exec(m)[0].length,S=/^\s*/.exec(p)[0].length,C=m.length-k;if(m.slice(C-s.length,C)==s&&p.slice(S,S+u.length)==u)return{open:{pos:h-k,margin:k&&1},close:{pos:g+S,margin:S&&1}};let N,_;g-h<=2*QV?N=_=l.sliceDoc(h,g):(N=l.sliceDoc(h,h+QV),_=l.sliceDoc(g-QV,g));let P=/^\s*/.exec(N)[0].length,R=/\s*$/.exec(_)[0].length,q=_.length-R-u.length;return N.slice(P,P+s.length)==s&&_.slice(q,q+u.length)==u?{open:{pos:h+P+s.length,margin:/\s/.test(N.charAt(P+s.length))?1:0},close:{pos:g-R-u.length,margin:/\s/.test(_.charAt(q-1))?1:0}}:null}function Kwn(l){let s=[];for(let u of l.selection.ranges){let h=l.doc.lineAt(u.from),g=u.to<=h.to?h:l.doc.lineAt(u.to);g.from>h.from&&g.from==u.to&&(g=u.to==h.to+1?h:l.doc.lineAt(u.to-1));let m=s.length-1;m>=0&&s[m].to>h.from?s[m].to=g.to:s.push({from:h.from+/^\s*/.exec(h.text)[0].length,to:g.to})}return s}function FSt(l,s,u=s.selection.ranges){let h=u.map(m=>wNe(s,m.from).block);if(!h.every(m=>m))return null;let g=u.map((m,p)=>Wwn(s,h[p],m.from,m.to));if(l!=2&&!g.every(m=>m))return{changes:s.changes(u.map((m,p)=>g[p]?[]:[{from:m.from,insert:h[p].open+" "},{from:m.to,insert:" "+h[p].close}]))};if(l!=1&&g.some(m=>m)){let m=[];for(let p=0,k;p<g.length;p++)if(k=g[p]){let S=h[p],{open:C,close:N}=k;m.push({from:C.pos-S.open.length,to:C.pos+C.margin},{from:N.pos-N.margin,to:N.pos+S.close.length})}return{changes:m}}return null}function Ywn(l,s,u=s.selection.ranges){let h=[],g=-1;e:for(let{from:m,to:p}of u){let k=h.length,S=1e9,C;for(let N=m;N<=p;){let _=s.doc.lineAt(N);if(C==null&&(C=wNe(s,_.from).line,!C))continue e;if(_.from>g&&(m==p||p>_.from)){g=_.from;let P=/^\s*/.exec(_.text)[0].length,R=P==_.length,q=_.text.slice(P,P+C.length)==C?P:-1;P<_.text.length&&P<S&&(S=P),h.push({line:_,comment:q,token:C,indent:P,empty:R,single:!1})}N=_.to+1}if(S<1e9)for(let N=k;N<h.length;N++)h[N].indent<h[N].line.text.length&&(h[N].indent=S);h.length==k+1&&(h[k].single=!0)}if(l!=2&&h.some(m=>m.comment<0&&(!m.empty||m.single))){let m=[];for(let{line:k,token:S,indent:C,empty:N,single:_}of h)(_||!N)&&m.push({from:k.from+C,insert:S+" "});let p=s.changes(m);return{changes:p,selection:s.selection.map(p,1)}}else if(l!=1&&h.some(m=>m.comment>=0)){let m=[];for(let{line:p,comment:k,token:S}of h)if(k>=0){let C=p.from+k,N=C+S.length;p.text[N-p.from]==" "&&N++,m.push({from:C,to:N})}return{changes:m}}return null}const eAe=xO.define(),Zwn=xO.define(),e2n=Ui.define(),qSt=Ui.define({combine(l){return c5(l,{minDepth:100,newGroupDelay:500,joinToEvent:(s,u)=>u},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(s,u)=>(h,g)=>s(h,g)||u(h,g)})}}),HSt=kd.define({create(){return Y3.empty},update(l,s){let u=s.state.facet(qSt),h=s.annotation(eAe);if(h){let S=xp.fromTransaction(s,h.selection),C=h.side,N=C==0?l.undone:l.done;return S?N=Uhe(N,N.length,u.minDepth,S):N=USt(N,s.startState.selection),new Y3(C==0?h.rest:N,C==0?N:h.rest)}let g=s.annotation(Zwn);if((g=="full"||g=="before")&&(l=l.isolate()),s.annotation(ah.addToHistory)===!1)return s.changes.empty?l:l.addMapping(s.changes.desc);let m=xp.fromTransaction(s),p=s.annotation(ah.time),k=s.annotation(ah.userEvent);return m?l=l.addChanges(m,p,k,u,s):s.selection&&(l=l.addSelection(s.startState.selection,p,k,u.newGroupDelay)),(g=="full"||g=="after")&&(l=l.isolate()),l},toJSON(l){return{done:l.done.map(s=>s.toJSON()),undone:l.undone.map(s=>s.toJSON())}},fromJSON(l){return new Y3(l.done.map(xp.fromJSON),l.undone.map(xp.fromJSON))}});function t2n(l={}){return[HSt,qSt.of(l),Bi.domEventHandlers({beforeinput(s,u){let h=s.inputType=="historyUndo"?QSt:s.inputType=="historyRedo"?tAe:null;return h?(s.preventDefault(),h(u)):!1}})]}function Mde(l,s){return function({state:u,dispatch:h}){if(!s&&u.readOnly)return!1;let g=u.field(HSt,!1);if(!g)return!1;let m=g.pop(l,u,s);return m?(h(m),!0):!1}}const QSt=Mde(0,!1),tAe=Mde(1,!1),n2n=Mde(0,!0),i2n=Mde(1,!0);class xp{constructor(s,u,h,g,m){this.changes=s,this.effects=u,this.mapped=h,this.startSelection=g,this.selectionsAfter=m}setSelAfter(s){return new xp(this.changes,this.effects,this.mapped,this.startSelection,s)}toJSON(){var s,u,h;return{changes:(s=this.changes)===null||s===void 0?void 0:s.toJSON(),mapped:(u=this.mapped)===null||u===void 0?void 0:u.toJSON(),startSelection:(h=this.startSelection)===null||h===void 0?void 0:h.toJSON(),selectionsAfter:this.selectionsAfter.map(g=>g.toJSON())}}static fromJSON(s){return new xp(s.changes&&Hh.fromJSON(s.changes),[],s.mapped&&e5.fromJSON(s.mapped),s.startSelection&&jn.fromJSON(s.startSelection),s.selectionsAfter.map(jn.fromJSON))}static fromTransaction(s,u){let h=Ww;for(let g of s.startState.facet(e2n)){let m=g(s);m.length&&(h=h.concat(m))}return!h.length&&s.changes.empty?null:new xp(s.changes.invert(s.startState.doc),h,void 0,u||s.startState.selection,Ww)}static selection(s){return new xp(void 0,Ww,void 0,void 0,s)}}function Uhe(l,s,u,h){let g=s+1>u+20?s-u-1:0,m=l.slice(g,s);return m.push(h),m}function r2n(l,s){let u=[],h=!1;return l.iterChangedRanges((g,m)=>u.push(g,m)),s.iterChangedRanges((g,m,p,k)=>{for(let S=0;S<u.length;){let C=u[S++],N=u[S++];k>=C&&p<=N&&(h=!0)}}),h}function s2n(l,s){return l.ranges.length==s.ranges.length&&l.ranges.filter((u,h)=>u.empty!=s.ranges[h].empty).length===0}function GSt(l,s){return l.length?s.length?l.concat(s):l:s}const Ww=[],o2n=200;function USt(l,s){if(l.length){let u=l[l.length-1],h=u.selectionsAfter.slice(Math.max(0,u.selectionsAfter.length-o2n));return h.length&&h[h.length-1].eq(s)?l:(h.push(s),Uhe(l,l.length-1,1e9,u.setSelAfter(h)))}else return[xp.selection([s])]}function c2n(l){let s=l[l.length-1],u=l.slice();return u[l.length-1]=s.setSelAfter(s.selectionsAfter.slice(0,s.selectionsAfter.length-1)),u}function $Ce(l,s){if(!l.length)return l;let u=l.length,h=Ww;for(;u;){let g=l2n(l[u-1],s,h);if(g.changes&&!g.changes.empty||g.effects.length){let m=l.slice(0,u);return m[u-1]=g,m}else s=g.mapped,u--,h=g.selectionsAfter}return h.length?[xp.selection(h)]:Ww}function l2n(l,s,u){let h=GSt(l.selectionsAfter.length?l.selectionsAfter.map(k=>k.map(s)):Ww,u);if(!l.changes)return xp.selection(h);let g=l.changes.map(s),m=s.mapDesc(l.changes,!0),p=l.mapped?l.mapped.composeDesc(m):m;return new xp(g,Ls.mapEffects(l.effects,s),p,l.startSelection.map(m),h)}const u2n=/^(input\.type|delete)($|\.)/;class Y3{constructor(s,u,h=0,g=void 0){this.done=s,this.undone=u,this.prevTime=h,this.prevUserEvent=g}isolate(){return this.prevTime?new Y3(this.done,this.undone):this}addChanges(s,u,h,g,m){let p=this.done,k=p[p.length-1];return k&&k.changes&&!k.changes.empty&&s.changes&&(!h||u2n.test(h))&&(!k.selectionsAfter.length&&u-this.prevTime<g.newGroupDelay&&g.joinToEvent(m,r2n(k.changes,s.changes))||h=="input.type.compose")?p=Uhe(p,p.length-1,g.minDepth,new xp(s.changes.compose(k.changes),GSt(Ls.mapEffects(s.effects,k.changes),k.effects),k.mapped,k.startSelection,Ww)):p=Uhe(p,p.length,g.minDepth,s),new Y3(p,Ww,u,h)}addSelection(s,u,h,g){let m=this.done.length?this.done[this.done.length-1].selectionsAfter:Ww;return m.length>0&&u-this.prevTime<g&&h==this.prevUserEvent&&h&&/^select($|\.)/.test(h)&&s2n(m[m.length-1],s)?this:new Y3(USt(this.done,s),this.undone,u,h)}addMapping(s){return new Y3($Ce(this.done,s),$Ce(this.undone,s),this.prevTime,this.prevUserEvent)}pop(s,u,h){let g=s==0?this.done:this.undone;if(g.length==0)return null;let m=g[g.length-1],p=m.selectionsAfter[0]||(m.startSelection?m.startSelection.map(m.changes.invertedDesc,1):u.selection);if(h&&m.selectionsAfter.length)return u.update({selection:m.selectionsAfter[m.selectionsAfter.length-1],annotations:eAe.of({side:s,rest:c2n(g),selection:p}),userEvent:s==0?"select.undo":"select.redo",scrollIntoView:!0});if(m.changes){let k=g.length==1?Ww:g.slice(0,g.length-1);return m.mapped&&(k=$Ce(k,m.mapped)),u.update({changes:m.changes,selection:m.startSelection,effects:m.effects,annotations:eAe.of({side:s,rest:k,selection:p}),filter:!1,userEvent:s==0?"undo":"redo",scrollIntoView:!0})}else return null}}Y3.empty=new Y3(Ww,Ww);const a2n=[{key:"Mod-z",run:QSt,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:tAe,preventDefault:!0},{linux:"Ctrl-Shift-z",run:tAe,preventDefault:!0},{key:"Mod-u",run:n2n,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:i2n,preventDefault:!0}];function lR(l,s){return jn.create(l.ranges.map(s),l.mainIndex)}function Dy(l,s){return l.update({selection:s,scrollIntoView:!0,userEvent:"select"})}function Ly({state:l,dispatch:s},u){let h=lR(l.selection,u);return h.eq(l.selection,!0)?!1:(s(Dy(l,h)),!0)}function Ade(l,s){return jn.cursor(s?l.to:l.from)}function JSt(l,s){return Ly(l,u=>u.empty?l.moveByChar(u,s):Ade(u,s))}function sg(l){return l.textDirectionAt(l.state.selection.main.head)==Zl.LTR}const VSt=l=>JSt(l,!sg(l)),XSt=l=>JSt(l,sg(l));function WSt(l,s){return Ly(l,u=>u.empty?l.moveByGroup(u,s):Ade(u,s))}const f2n=l=>WSt(l,!sg(l)),h2n=l=>WSt(l,sg(l));function d2n(l,s,u){if(s.type.prop(u))return!0;let h=s.to-s.from;return h&&(h>2||/[^\s,.;:]/.test(l.sliceDoc(s.from,s.to)))||s.firstChild}function Nde(l,s,u){let h=xd(l).resolveInner(s.head),g=u?Co.closedBy:Co.openedBy;for(let S=s.head;;){let C=u?h.childAfter(S):h.childBefore(S);if(!C)break;d2n(l,C,g)?h=C:S=u?C.to:C.from}let m=h.type.prop(g),p,k;return m&&(p=u?K3(l,h.from,1):K3(l,h.to,-1))&&p.matched?k=u?p.end.to:p.end.from:k=u?h.to:h.from,jn.cursor(k,u?-1:1)}const g2n=l=>Ly(l,s=>Nde(l.state,s,!sg(l))),p2n=l=>Ly(l,s=>Nde(l.state,s,sg(l)));function KSt(l,s){return Ly(l,u=>{if(!u.empty)return Ade(u,s);let h=l.moveVertically(u,s);return h.head!=u.head?h:l.moveToLineBoundary(u,s)})}const YSt=l=>KSt(l,!1),ZSt=l=>KSt(l,!0);function ejt(l){let s=l.scrollDOM.clientHeight<l.scrollDOM.scrollHeight-2,u=0,h=0,g;if(s){for(let m of l.state.facet(Bi.scrollMargins)){let p=m(l);p!=null&&p.top&&(u=Math.max(p==null?void 0:p.top,u)),p!=null&&p.bottom&&(h=Math.max(p==null?void 0:p.bottom,h))}g=l.scrollDOM.clientHeight-u-h}else g=(l.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:u,marginBottom:h,selfScroll:s,height:Math.max(l.defaultLineHeight,g-5)}}function tjt(l,s){let u=ejt(l),{state:h}=l,g=lR(h.selection,p=>p.empty?l.moveVertically(p,s,u.height):Ade(p,s));if(g.eq(h.selection))return!1;let m;if(u.selfScroll){let p=l.coordsAtPos(h.selection.main.head),k=l.scrollDOM.getBoundingClientRect(),S=k.top+u.marginTop,C=k.bottom-u.marginBottom;p&&p.top>S&&p.bottom<C&&(m=Bi.scrollIntoView(g.main.head,{y:"start",yMargin:p.top-S}))}return l.dispatch(Dy(h,g),{effects:m}),!0}const P5t=l=>tjt(l,!1),nAe=l=>tjt(l,!0);function U9(l,s,u){let h=l.lineBlockAt(s.head),g=l.moveToLineBoundary(s,u);if(g.head==s.head&&g.head!=(u?h.to:h.from)&&(g=l.moveToLineBoundary(s,u,!1)),!u&&g.head==h.from&&h.length){let m=/^\s*/.exec(l.state.sliceDoc(h.from,Math.min(h.from+100,h.to)))[0].length;m&&s.head!=h.from+m&&(g=jn.cursor(h.from+m))}return g}const b2n=l=>Ly(l,s=>U9(l,s,!0)),m2n=l=>Ly(l,s=>U9(l,s,!1)),w2n=l=>Ly(l,s=>U9(l,s,!sg(l))),v2n=l=>Ly(l,s=>U9(l,s,sg(l))),y2n=l=>Ly(l,s=>jn.cursor(l.lineBlockAt(s.head).from,1)),x2n=l=>Ly(l,s=>jn.cursor(l.lineBlockAt(s.head).to,-1));function k2n(l,s,u){let h=!1,g=lR(l.selection,m=>{let p=K3(l,m.head,-1)||K3(l,m.head,1)||m.head>0&&K3(l,m.head-1,1)||m.head<l.doc.length&&K3(l,m.head+1,-1);if(!p||!p.end)return m;h=!0;let k=p.start.from==m.head?p.end.to:p.end.from;return jn.cursor(k)});return h?(s(Dy(l,g)),!0):!1}const O2n=({state:l,dispatch:s})=>k2n(l,s);function Zw(l,s){let u=lR(l.state.selection,h=>{let g=s(h);return jn.range(h.anchor,g.head,g.goalColumn,g.bidiLevel||void 0)});return u.eq(l.state.selection)?!1:(l.dispatch(Dy(l.state,u)),!0)}function njt(l,s){return Zw(l,u=>l.moveByChar(u,s))}const ijt=l=>njt(l,!sg(l)),rjt=l=>njt(l,sg(l));function sjt(l,s){return Zw(l,u=>l.moveByGroup(u,s))}const S2n=l=>sjt(l,!sg(l)),j2n=l=>sjt(l,sg(l)),T2n=l=>Zw(l,s=>Nde(l.state,s,!sg(l))),E2n=l=>Zw(l,s=>Nde(l.state,s,sg(l)));function ojt(l,s){return Zw(l,u=>l.moveVertically(u,s))}const cjt=l=>ojt(l,!1),ljt=l=>ojt(l,!0);function ujt(l,s){return Zw(l,u=>l.moveVertically(u,s,ejt(l).height))}const I5t=l=>ujt(l,!1),R5t=l=>ujt(l,!0),C2n=l=>Zw(l,s=>U9(l,s,!0)),M2n=l=>Zw(l,s=>U9(l,s,!1)),A2n=l=>Zw(l,s=>U9(l,s,!sg(l))),N2n=l=>Zw(l,s=>U9(l,s,sg(l))),_2n=l=>Zw(l,s=>jn.cursor(l.lineBlockAt(s.head).from)),D2n=l=>Zw(l,s=>jn.cursor(l.lineBlockAt(s.head).to)),$5t=({state:l,dispatch:s})=>(s(Dy(l,{anchor:0})),!0),B5t=({state:l,dispatch:s})=>(s(Dy(l,{anchor:l.doc.length})),!0),z5t=({state:l,dispatch:s})=>(s(Dy(l,{anchor:l.selection.main.anchor,head:0})),!0),F5t=({state:l,dispatch:s})=>(s(Dy(l,{anchor:l.selection.main.anchor,head:l.doc.length})),!0),L2n=({state:l,dispatch:s})=>(s(l.update({selection:{anchor:0,head:l.doc.length},userEvent:"select"})),!0),P2n=({state:l,dispatch:s})=>{let u=_de(l).map(({from:h,to:g})=>jn.range(h,Math.min(g+1,l.doc.length)));return s(l.update({selection:jn.create(u),userEvent:"select"})),!0},I2n=({state:l,dispatch:s})=>{let u=lR(l.selection,h=>{let g=xd(l),m=g.resolveStack(h.from,1);if(h.empty){let p=g.resolveStack(h.from,-1);p.node.from>=m.node.from&&p.node.to<=m.node.to&&(m=p)}for(let p=m;p;p=p.next){let{node:k}=p;if((k.from<h.from&&k.to>=h.to||k.to>h.to&&k.from<=h.from)&&p.next)return jn.range(k.to,k.from)}return h});return u.eq(l.selection)?!1:(s(Dy(l,u)),!0)};function ajt(l,s){let{state:u}=l,h=u.selection,g=u.selection.ranges.slice();for(let m of u.selection.ranges){let p=u.doc.lineAt(m.head);if(s?p.to<l.state.doc.length:p.from>0)for(let k=m;;){let S=l.moveVertically(k,s);if(S.head<p.from||S.head>p.to){g.some(C=>C.head==S.head)||g.push(S);break}else{if(S.head==k.head)break;k=S}}}return g.length==h.ranges.length?!1:(l.dispatch(Dy(u,jn.create(g,g.length-1))),!0)}const R2n=l=>ajt(l,!1),$2n=l=>ajt(l,!0),B2n=({state:l,dispatch:s})=>{let u=l.selection,h=null;return u.ranges.length>1?h=jn.create([u.main]):u.main.empty||(h=jn.create([jn.cursor(u.main.head)])),h?(s(Dy(l,h)),!0):!1};function sW(l,s){if(l.state.readOnly)return!1;let u="delete.selection",{state:h}=l,g=h.changeByRange(m=>{let{from:p,to:k}=m;if(p==k){let S=s(m);S<p?(u="delete.backward",S=Pfe(l,S,!1)):S>p&&(u="delete.forward",S=Pfe(l,S,!0)),p=Math.min(p,S),k=Math.max(k,S)}else p=Pfe(l,p,!1),k=Pfe(l,k,!0);return p==k?{range:m}:{changes:{from:p,to:k},range:jn.cursor(p,p<m.head?-1:1)}});return g.changes.empty?!1:(l.dispatch(h.update(g,{scrollIntoView:!0,userEvent:u,effects:u=="delete.selection"?Bi.announce.of(h.phrase("Selection deleted")):void 0})),!0)}function Pfe(l,s,u){if(l instanceof Bi)for(let h of l.state.facet(Bi.atomicRanges).map(g=>g(l)))h.between(s,s,(g,m)=>{g<s&&m>s&&(s=u?m:g)});return s}const fjt=(l,s,u)=>sW(l,h=>{let g=h.from,{state:m}=l,p=m.doc.lineAt(g),k,S;if(u&&!s&&g>p.from&&g<p.from+200&&!/[^ \t]/.test(k=p.text.slice(0,g-p.from))){if(k[k.length-1]=="	")return g-1;let C=KX(k,m.tabSize),N=C%Fhe(m)||Fhe(m);for(let _=0;_<N&&k[k.length-1-_]==" ";_++)g--;S=g}else S=yd(p.text,g-p.from,s,s)+p.from,S==g&&p.number!=(s?m.doc.lines:1)?S+=s?1:-1:!s&&/[\ufe00-\ufe0f]/.test(p.text.slice(S-p.from,g-p.from))&&(S=yd(p.text,S-p.from,!1,!1)+p.from);return S}),iAe=l=>fjt(l,!1,!0),hjt=l=>fjt(l,!0,!1),djt=(l,s)=>sW(l,u=>{let h=u.head,{state:g}=l,m=g.doc.lineAt(h),p=g.charCategorizer(h);for(let k=null;;){if(h==(s?m.to:m.from)){h==u.head&&m.number!=(s?g.doc.lines:1)&&(h+=s?1:-1);break}let S=yd(m.text,h-m.from,s)+m.from,C=m.text.slice(Math.min(h,S)-m.from,Math.max(h,S)-m.from),N=p(C);if(k!=null&&N!=k)break;(C!=" "||h!=u.head)&&(k=N),h=S}return h}),gjt=l=>djt(l,!1),z2n=l=>djt(l,!0),F2n=l=>sW(l,s=>{let u=l.lineBlockAt(s.head).to;return s.head<u?u:Math.min(l.state.doc.length,s.head+1)}),q2n=l=>sW(l,s=>{let u=l.moveToLineBoundary(s,!1).head;return s.head>u?u:Math.max(0,s.head-1)}),H2n=l=>sW(l,s=>{let u=l.moveToLineBoundary(s,!0).head;return s.head<u?u:Math.min(l.state.doc.length,s.head+1)}),Q2n=({state:l,dispatch:s})=>{if(l.readOnly)return!1;let u=l.changeByRange(h=>({changes:{from:h.from,to:h.to,insert:fc.of(["",""])},range:jn.cursor(h.from)}));return s(l.update(u,{scrollIntoView:!0,userEvent:"input"})),!0},G2n=({state:l,dispatch:s})=>{if(l.readOnly)return!1;let u=l.changeByRange(h=>{if(!h.empty||h.from==0||h.from==l.doc.length)return{range:h};let g=h.from,m=l.doc.lineAt(g),p=g==m.from?g-1:yd(m.text,g-m.from,!1)+m.from,k=g==m.to?g+1:yd(m.text,g-m.from,!0)+m.from;return{changes:{from:p,to:k,insert:l.doc.slice(g,k).append(l.doc.slice(p,g))},range:jn.cursor(k)}});return u.changes.empty?!1:(s(l.update(u,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function _de(l){let s=[],u=-1;for(let h of l.selection.ranges){let g=l.doc.lineAt(h.from),m=l.doc.lineAt(h.to);if(!h.empty&&h.to==m.from&&(m=l.doc.lineAt(h.to-1)),u>=g.number){let p=s[s.length-1];p.to=m.to,p.ranges.push(h)}else s.push({from:g.from,to:m.to,ranges:[h]});u=m.number+1}return s}function pjt(l,s,u){if(l.readOnly)return!1;let h=[],g=[];for(let m of _de(l)){if(u?m.to==l.doc.length:m.from==0)continue;let p=l.doc.lineAt(u?m.to+1:m.from-1),k=p.length+1;if(u){h.push({from:m.to,to:p.to},{from:m.from,insert:p.text+l.lineBreak});for(let S of m.ranges)g.push(jn.range(Math.min(l.doc.length,S.anchor+k),Math.min(l.doc.length,S.head+k)))}else{h.push({from:p.from,to:m.from},{from:m.to,insert:l.lineBreak+p.text});for(let S of m.ranges)g.push(jn.range(S.anchor-k,S.head-k))}}return h.length?(s(l.update({changes:h,scrollIntoView:!0,selection:jn.create(g,l.selection.mainIndex),userEvent:"move.line"})),!0):!1}const U2n=({state:l,dispatch:s})=>pjt(l,s,!1),J2n=({state:l,dispatch:s})=>pjt(l,s,!0);function bjt(l,s,u){if(l.readOnly)return!1;let h=[];for(let m of _de(l))u?h.push({from:m.from,insert:l.doc.slice(m.from,m.to)+l.lineBreak}):h.push({from:m.to,insert:l.lineBreak+l.doc.slice(m.from,m.to)});let g=l.changes(h);return s(l.update({changes:g,selection:l.selection.map(g,u?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}const V2n=({state:l,dispatch:s})=>bjt(l,s,!1),X2n=({state:l,dispatch:s})=>bjt(l,s,!0),W2n=l=>{if(l.state.readOnly)return!1;let{state:s}=l,u=s.changes(_de(s).map(({from:g,to:m})=>(g>0?g--:m<s.doc.length&&m++,{from:g,to:m}))),h=lR(s.selection,g=>{let m;if(l.lineWrapping){let p=l.lineBlockAt(g.head),k=l.coordsAtPos(g.head,g.assoc||1);k&&(m=p.bottom+l.documentTop-k.bottom+l.defaultLineHeight/2)}return l.moveVertically(g,!0,m)}).map(u);return l.dispatch({changes:u,selection:h,scrollIntoView:!0,userEvent:"delete.line"}),!0};function K2n(l,s){if(/\(\)|\[\]|\{\}/.test(l.sliceDoc(s-1,s+1)))return{from:s,to:s};let u=xd(l).resolveInner(s),h=u.childBefore(s),g=u.childAfter(s),m;return h&&g&&h.to<=s&&g.from>=s&&(m=h.type.prop(Co.closedBy))&&m.indexOf(g.name)>-1&&l.doc.lineAt(h.to).from==l.doc.lineAt(g.from).from&&!/\S/.test(l.sliceDoc(h.to,g.from))?{from:h.to,to:g.from}:null}const q5t=mjt(!1),Y2n=mjt(!0);function mjt(l){return({state:s,dispatch:u})=>{if(s.readOnly)return!1;let h=s.changeByRange(g=>{let{from:m,to:p}=g,k=s.doc.lineAt(m),S=!l&&m==p&&K2n(s,m);l&&(m=p=(p<=k.to?k:s.doc.lineAt(p)).to);let C=new jde(s,{simulateBreak:m,simulateDoubleBreak:!!S}),N=cNe(C,m);for(N==null&&(N=KX(/^\s*/.exec(s.doc.lineAt(m).text)[0],s.tabSize));p<k.to&&/\s/.test(k.text[p-k.from]);)p++;S?{from:m,to:p}=S:m>k.from&&m<k.from+100&&!/\S/.test(k.text.slice(0,m))&&(m=k.from);let _=["",LX(s,N)];return S&&_.push(LX(s,C.lineIndent(k.from,-1))),{changes:{from:m,to:p,insert:fc.of(_)},range:jn.cursor(m+1+_[1].length)}});return u(s.update(h,{scrollIntoView:!0,userEvent:"input"})),!0}}function vNe(l,s){let u=-1;return l.changeByRange(h=>{let g=[];for(let p=h.from;p<=h.to;){let k=l.doc.lineAt(p);k.number>u&&(h.empty||h.to>k.from)&&(s(k,g,h),u=k.number),p=k.to+1}let m=l.changes(g);return{changes:g,range:jn.range(m.mapPos(h.anchor,1),m.mapPos(h.head,1))}})}const Z2n=({state:l,dispatch:s})=>{if(l.readOnly)return!1;let u=Object.create(null),h=new jde(l,{overrideIndentation:m=>{let p=u[m];return p??-1}}),g=vNe(l,(m,p,k)=>{let S=cNe(h,m.from);if(S==null)return;/\S/.test(m.text)||(S=0);let C=/^\s*/.exec(m.text)[0],N=LX(l,S);(C!=N||k.from<m.from+C.length)&&(u[m.from]=S,p.push({from:m.from,to:m.from+C.length,insert:N}))});return g.changes.empty||s(l.update(g,{userEvent:"indent"})),!0},wjt=({state:l,dispatch:s})=>l.readOnly?!1:(s(l.update(vNe(l,(u,h)=>{h.push({from:u.from,insert:l.facet(nW)})}),{userEvent:"input.indent"})),!0),vjt=({state:l,dispatch:s})=>l.readOnly?!1:(s(l.update(vNe(l,(u,h)=>{let g=/^\s*/.exec(u.text)[0];if(!g)return;let m=KX(g,l.tabSize),p=0,k=LX(l,Math.max(0,m-Fhe(l)));for(;p<g.length&&p<k.length&&g.charCodeAt(p)==k.charCodeAt(p);)p++;h.push({from:u.from+p,to:u.from+g.length,insert:k.slice(p)})}),{userEvent:"delete.dedent"})),!0),evn=l=>(l.setTabFocusMode(),!0),tvn=[{key:"Ctrl-b",run:VSt,shift:ijt,preventDefault:!0},{key:"Ctrl-f",run:XSt,shift:rjt},{key:"Ctrl-p",run:YSt,shift:cjt},{key:"Ctrl-n",run:ZSt,shift:ljt},{key:"Ctrl-a",run:y2n,shift:_2n},{key:"Ctrl-e",run:x2n,shift:D2n},{key:"Ctrl-d",run:hjt},{key:"Ctrl-h",run:iAe},{key:"Ctrl-k",run:F2n},{key:"Ctrl-Alt-h",run:gjt},{key:"Ctrl-o",run:Q2n},{key:"Ctrl-t",run:G2n},{key:"Ctrl-v",run:nAe}],nvn=[{key:"ArrowLeft",run:VSt,shift:ijt,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:f2n,shift:S2n,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:w2n,shift:A2n,preventDefault:!0},{key:"ArrowRight",run:XSt,shift:rjt,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:h2n,shift:j2n,preventDefault:!0},{mac:"Cmd-ArrowRight",run:v2n,shift:N2n,preventDefault:!0},{key:"ArrowUp",run:YSt,shift:cjt,preventDefault:!0},{mac:"Cmd-ArrowUp",run:$5t,shift:z5t},{mac:"Ctrl-ArrowUp",run:P5t,shift:I5t},{key:"ArrowDown",run:ZSt,shift:ljt,preventDefault:!0},{mac:"Cmd-ArrowDown",run:B5t,shift:F5t},{mac:"Ctrl-ArrowDown",run:nAe,shift:R5t},{key:"PageUp",run:P5t,shift:I5t},{key:"PageDown",run:nAe,shift:R5t},{key:"Home",run:m2n,shift:M2n,preventDefault:!0},{key:"Mod-Home",run:$5t,shift:z5t},{key:"End",run:b2n,shift:C2n,preventDefault:!0},{key:"Mod-End",run:B5t,shift:F5t},{key:"Enter",run:q5t,shift:q5t},{key:"Mod-a",run:L2n},{key:"Backspace",run:iAe,shift:iAe,preventDefault:!0},{key:"Delete",run:hjt,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:gjt,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:z2n,preventDefault:!0},{mac:"Mod-Backspace",run:q2n,preventDefault:!0},{mac:"Mod-Delete",run:H2n,preventDefault:!0}].concat(tvn.map(l=>({mac:l.key,run:l.run,shift:l.shift}))),ivn=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:g2n,shift:T2n},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:p2n,shift:E2n},{key:"Alt-ArrowUp",run:U2n},{key:"Shift-Alt-ArrowUp",run:V2n},{key:"Alt-ArrowDown",run:J2n},{key:"Shift-Alt-ArrowDown",run:X2n},{key:"Mod-Alt-ArrowUp",run:R2n},{key:"Mod-Alt-ArrowDown",run:$2n},{key:"Escape",run:B2n},{key:"Mod-Enter",run:Y2n},{key:"Alt-l",mac:"Ctrl-l",run:P2n},{key:"Mod-i",run:I2n,preventDefault:!0},{key:"Mod-[",run:vjt},{key:"Mod-]",run:wjt},{key:"Mod-Alt-\\",run:Z2n},{key:"Shift-Mod-k",run:W2n},{key:"Shift-Mod-\\",run:O2n},{key:"Mod-/",run:Uwn},{key:"Alt-A",run:Vwn},{key:"Ctrl-m",mac:"Shift-Alt-m",run:evn}].concat(nvn),rvn={key:"Tab",run:wjt,shift:vjt},H5t=typeof String.prototype.normalize=="function"?l=>l.normalize("NFKD"):l=>l;class sR{constructor(s,u,h=0,g=s.length,m,p){this.test=p,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=s.iterRange(h,g),this.bufferStart=h,this.normalize=m?k=>m(H5t(k)):H5t,this.query=this.normalize(u)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Kb(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let s=this.peek();if(s<0)return this.done=!0,this;let u=$Ae(s),h=this.bufferStart+this.bufferPos;this.bufferPos+=J3(s);let g=this.normalize(u);if(g.length)for(let m=0,p=h;;m++){let k=g.charCodeAt(m),S=this.match(k,p,this.bufferPos+this.bufferStart);if(m==g.length-1){if(S)return this.value=S,this;break}p==h&&m<u.length&&u.charCodeAt(m)==k&&p++}}}match(s,u,h){let g=null;for(let m=0;m<this.matches.length;m+=2){let p=this.matches[m],k=!1;this.query.charCodeAt(p)==s&&(p==this.query.length-1?g={from:this.matches[m+1],to:h}:(this.matches[m]++,k=!0)),k||(this.matches.splice(m,2),m-=2)}return this.query.charCodeAt(0)==s&&(this.query.length==1?g={from:u,to:h}:this.matches.push(1,u)),g&&this.test&&!this.test(g.from,g.to,this.buffer,this.bufferStart)&&(g=null),g}}typeof Symbol<"u"&&(sR.prototype[Symbol.iterator]=function(){return this});const yjt={from:-1,to:-1,match:/.*/.exec("")},yNe="gm"+(/x/.unicode==null?"":"u");class xjt{constructor(s,u,h,g=0,m=s.length){if(this.text=s,this.to=m,this.curLine="",this.done=!1,this.value=yjt,/\\[sWDnr]|\n|\r|\[\^/.test(u))return new kjt(s,u,h,g,m);this.re=new RegExp(u,yNe+(h!=null&&h.ignoreCase?"i":"")),this.test=h==null?void 0:h.test,this.iter=s.iter();let p=s.lineAt(g);this.curLineStart=p.from,this.matchPos=Jhe(s,g),this.getLine(this.curLineStart)}getLine(s){this.iter.next(s),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let s=this.matchPos-this.curLineStart;;){this.re.lastIndex=s;let u=this.matchPos<=this.to&&this.re.exec(this.curLine);if(u){let h=this.curLineStart+u.index,g=h+u[0].length;if(this.matchPos=Jhe(this.text,g+(h==g?1:0)),h==this.curLineStart+this.curLine.length&&this.nextLine(),(h<g||h>this.value.to)&&(!this.test||this.test(h,g,u)))return this.value={from:h,to:g,match:u},this;s=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),s=0;else return this.done=!0,this}}}const BCe=new WeakMap;class GI{constructor(s,u){this.from=s,this.text=u}get to(){return this.from+this.text.length}static get(s,u,h){let g=BCe.get(s);if(!g||g.from>=h||g.to<=u){let k=new GI(u,s.sliceString(u,h));return BCe.set(s,k),k}if(g.from==u&&g.to==h)return g;let{text:m,from:p}=g;return p>u&&(m=s.sliceString(u,p)+m,p=u),g.to<h&&(m+=s.sliceString(g.to,h)),BCe.set(s,new GI(p,m)),new GI(u,m.slice(u-p,h-p))}}class kjt{constructor(s,u,h,g,m){this.text=s,this.to=m,this.done=!1,this.value=yjt,this.matchPos=Jhe(s,g),this.re=new RegExp(u,yNe+(h!=null&&h.ignoreCase?"i":"")),this.test=h==null?void 0:h.test,this.flat=GI.get(s,g,this.chunkEnd(g+5e3))}chunkEnd(s){return s>=this.to?this.to:this.text.lineAt(s).to}next(){for(;;){let s=this.re.lastIndex=this.matchPos-this.flat.from,u=this.re.exec(this.flat.text);if(u&&!u[0]&&u.index==s&&(this.re.lastIndex=s+1,u=this.re.exec(this.flat.text)),u){let h=this.flat.from+u.index,g=h+u[0].length;if((this.flat.to>=this.to||u.index+u[0].length<=this.flat.text.length-10)&&(!this.test||this.test(h,g,u)))return this.value={from:h,to:g,match:u},this.matchPos=Jhe(this.text,g+(h==g?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=GI.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(xjt.prototype[Symbol.iterator]=kjt.prototype[Symbol.iterator]=function(){return this});function svn(l){try{return new RegExp(l,yNe),!0}catch{return!1}}function Jhe(l,s){if(s>=l.length)return s;let u=l.lineAt(s),h;for(;s<u.to&&(h=u.text.charCodeAt(s-u.from))>=56320&&h<57344;)s++;return s}const ovn=l=>{let{state:s}=l,u=String(s.doc.lineAt(l.state.selection.main.head).number),{close:h,result:g}=npn(l,{label:s.phrase("Go to line"),input:{type:"text",name:"line",value:u},focus:!0,submitLabel:s.phrase("go")});return g.then(m=>{let p=m&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(m.elements.line.value);if(!p){l.dispatch({effects:h});return}let k=s.doc.lineAt(s.selection.main.head),[,S,C,N,_]=p,P=N?+N.slice(1):0,R=C?+C:k.number;if(C&&_){let X=R/100;S&&(X=X*(S=="-"?-1:1)+k.number/s.doc.lines),R=Math.round(s.doc.lines*X)}else C&&S&&(R=R*(S=="-"?-1:1)+k.number);let q=s.doc.line(Math.max(1,Math.min(s.doc.lines,R))),F=jn.cursor(q.from+Math.max(0,Math.min(P,q.length)));l.dispatch({effects:[h,Bi.scrollIntoView(F.from,{y:"center"})],selection:F})}),!0},cvn={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},lvn=Ui.define({combine(l){return c5(l,cvn,{highlightWordAroundCursor:(s,u)=>s||u,minSelectionLength:Math.min,maxMatches:Math.min})}});function uvn(l){return[gvn,dvn]}const avn=Fr.mark({class:"cm-selectionMatch"}),fvn=Fr.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Q5t(l,s,u,h){return(u==0||l(s.sliceDoc(u-1,u))!=ta.Word)&&(h==s.doc.length||l(s.sliceDoc(h,h+1))!=ta.Word)}function hvn(l,s,u,h){return l(s.sliceDoc(u,u+1))==ta.Word&&l(s.sliceDoc(h-1,h))==ta.Word}const dvn=Qh.fromClass(class{constructor(l){this.decorations=this.getDeco(l)}update(l){(l.selectionSet||l.docChanged||l.viewportChanged)&&(this.decorations=this.getDeco(l.view))}getDeco(l){let s=l.state.facet(lvn),{state:u}=l,h=u.selection;if(h.ranges.length>1)return Fr.none;let g=h.main,m,p=null;if(g.empty){if(!s.highlightWordAroundCursor)return Fr.none;let S=u.wordAt(g.head);if(!S)return Fr.none;p=u.charCategorizer(g.head),m=u.sliceDoc(S.from,S.to)}else{let S=g.to-g.from;if(S<s.minSelectionLength||S>200)return Fr.none;if(s.wholeWords){if(m=u.sliceDoc(g.from,g.to),p=u.charCategorizer(g.head),!(Q5t(p,u,g.from,g.to)&&hvn(p,u,g.from,g.to)))return Fr.none}else if(m=u.sliceDoc(g.from,g.to),!m)return Fr.none}let k=[];for(let S of l.visibleRanges){let C=new sR(u.doc,m,S.from,S.to);for(;!C.next().done;){let{from:N,to:_}=C.value;if((!p||Q5t(p,u,N,_))&&(g.empty&&N<=g.from&&_>=g.to?k.push(fvn.range(N,_)):(N>=g.to||_<=g.from)&&k.push(avn.range(N,_)),k.length>s.maxMatches))return Fr.none}}return Fr.set(k)}},{decorations:l=>l.decorations}),gvn=Bi.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),pvn=({state:l,dispatch:s})=>{let{selection:u}=l,h=jn.create(u.ranges.map(g=>l.wordAt(g.head)||jn.cursor(g.head)),u.mainIndex);return h.eq(u)?!1:(s(l.update({selection:h})),!0)};function bvn(l,s){let{main:u,ranges:h}=l.selection,g=l.wordAt(u.head),m=g&&g.from==u.from&&g.to==u.to;for(let p=!1,k=new sR(l.doc,s,h[h.length-1].to);;)if(k.next(),k.done){if(p)return null;k=new sR(l.doc,s,0,Math.max(0,h[h.length-1].from-1)),p=!0}else{if(p&&h.some(S=>S.from==k.value.from))continue;if(m){let S=l.wordAt(k.value.from);if(!S||S.from!=k.value.from||S.to!=k.value.to)continue}return k.value}}const mvn=({state:l,dispatch:s})=>{let{ranges:u}=l.selection;if(u.some(m=>m.from===m.to))return pvn({state:l,dispatch:s});let h=l.sliceDoc(u[0].from,u[0].to);if(l.selection.ranges.some(m=>l.sliceDoc(m.from,m.to)!=h))return!1;let g=bvn(l,h);return g?(s(l.update({selection:l.selection.addRange(jn.range(g.from,g.to),!1),effects:Bi.scrollIntoView(g.to)})),!0):!1},uR=Ui.define({combine(l){return c5(l,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:s=>new Nvn(s),scrollToMatch:s=>Bi.scrollIntoView(s)})}});class Ojt{constructor(s){this.search=s.search,this.caseSensitive=!!s.caseSensitive,this.literal=!!s.literal,this.regexp=!!s.regexp,this.replace=s.replace||"",this.valid=!!this.search&&(!this.regexp||svn(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!s.wholeWord,this.test=s.test}unquote(s){return this.literal?s:s.replace(/\\([nrt\\])/g,(u,h)=>h=="n"?`
`:h=="r"?"\r":h=="t"?"	":"\\")}eq(s){return this.search==s.search&&this.replace==s.replace&&this.caseSensitive==s.caseSensitive&&this.regexp==s.regexp&&this.wholeWord==s.wholeWord&&this.test==s.test}create(){return this.regexp?new Ovn(this):new yvn(this)}getCursor(s,u=0,h){let g=s.doc?s:Bc.create({doc:s});return h==null&&(h=g.doc.length),this.regexp?EI(this,g,u,h):TI(this,g,u,h)}}class Sjt{constructor(s){this.spec=s}}function wvn(l,s,u){return(h,g,m,p)=>{if(u&&!u(h,g,m,p))return!1;let k=h>=p&&g<=p+m.length?m.slice(h-p,g-p):s.doc.sliceString(h,g);return l(k,s,h,g)}}function TI(l,s,u,h){let g;return l.wholeWord&&(g=vvn(s.doc,s.charCategorizer(s.selection.main.head))),l.test&&(g=wvn(l.test,s,g)),new sR(s.doc,l.unquoted,u,h,l.caseSensitive?void 0:m=>m.toLowerCase(),g)}function vvn(l,s){return(u,h,g,m)=>((m>u||m+g.length<h)&&(m=Math.max(0,u-2),g=l.sliceString(m,Math.min(l.length,h+2))),(s(Vhe(g,u-m))!=ta.Word||s(Xhe(g,u-m))!=ta.Word)&&(s(Xhe(g,h-m))!=ta.Word||s(Vhe(g,h-m))!=ta.Word))}class yvn extends Sjt{constructor(s){super(s)}nextMatch(s,u,h){let g=TI(this.spec,s,h,s.doc.length).nextOverlapping();if(g.done){let m=Math.min(s.doc.length,u+this.spec.unquoted.length);g=TI(this.spec,s,0,m).nextOverlapping()}return g.done||g.value.from==u&&g.value.to==h?null:g.value}prevMatchInRange(s,u,h){for(let g=h;;){let m=Math.max(u,g-1e4-this.spec.unquoted.length),p=TI(this.spec,s,m,g),k=null;for(;!p.nextOverlapping().done;)k=p.value;if(k)return k;if(m==u)return null;g-=1e4}}prevMatch(s,u,h){let g=this.prevMatchInRange(s,0,u);return g||(g=this.prevMatchInRange(s,Math.max(0,h-this.spec.unquoted.length),s.doc.length)),g&&(g.from!=u||g.to!=h)?g:null}getReplacement(s){return this.spec.unquote(this.spec.replace)}matchAll(s,u){let h=TI(this.spec,s,0,s.doc.length),g=[];for(;!h.next().done;){if(g.length>=u)return null;g.push(h.value)}return g}highlight(s,u,h,g){let m=TI(this.spec,s,Math.max(0,u-this.spec.unquoted.length),Math.min(h+this.spec.unquoted.length,s.doc.length));for(;!m.next().done;)g(m.value.from,m.value.to)}}function xvn(l,s,u){return(h,g,m)=>(!u||u(h,g,m))&&l(m[0],s,h,g)}function EI(l,s,u,h){let g;return l.wholeWord&&(g=kvn(s.charCategorizer(s.selection.main.head))),l.test&&(g=xvn(l.test,s,g)),new xjt(s.doc,l.search,{ignoreCase:!l.caseSensitive,test:g},u,h)}function Vhe(l,s){return l.slice(yd(l,s,!1),s)}function Xhe(l,s){return l.slice(s,yd(l,s))}function kvn(l){return(s,u,h)=>!h[0].length||(l(Vhe(h.input,h.index))!=ta.Word||l(Xhe(h.input,h.index))!=ta.Word)&&(l(Xhe(h.input,h.index+h[0].length))!=ta.Word||l(Vhe(h.input,h.index+h[0].length))!=ta.Word)}class Ovn extends Sjt{nextMatch(s,u,h){let g=EI(this.spec,s,h,s.doc.length).next();return g.done&&(g=EI(this.spec,s,0,u).next()),g.done?null:g.value}prevMatchInRange(s,u,h){for(let g=1;;g++){let m=Math.max(u,h-g*1e4),p=EI(this.spec,s,m,h),k=null;for(;!p.next().done;)k=p.value;if(k&&(m==u||k.from>m+10))return k;if(m==u)return null}}prevMatch(s,u,h){return this.prevMatchInRange(s,0,u)||this.prevMatchInRange(s,h,s.doc.length)}getReplacement(s){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(u,h)=>{if(h=="&")return s.match[0];if(h=="$")return"$";for(let g=h.length;g>0;g--){let m=+h.slice(0,g);if(m>0&&m<s.match.length)return s.match[m]+h.slice(g)}return u})}matchAll(s,u){let h=EI(this.spec,s,0,s.doc.length),g=[];for(;!h.next().done;){if(g.length>=u)return null;g.push(h.value)}return g}highlight(s,u,h,g){let m=EI(this.spec,s,Math.max(0,u-250),Math.min(h+250,s.doc.length));for(;!m.next().done;)g(m.value.from,m.value.to)}}const $X=Ls.define(),xNe=Ls.define(),L9=kd.define({create(l){return new zCe(rAe(l).create(),null)},update(l,s){for(let u of s.effects)u.is($X)?l=new zCe(u.value.create(),l.panel):u.is(xNe)&&(l=new zCe(l.query,u.value?kNe:null));return l},provide:l=>AX.from(l,s=>s.panel)});class zCe{constructor(s,u){this.query=s,this.panel=u}}const Svn=Fr.mark({class:"cm-searchMatch"}),jvn=Fr.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Tvn=Qh.fromClass(class{constructor(l){this.view=l,this.decorations=this.highlight(l.state.field(L9))}update(l){let s=l.state.field(L9);(s!=l.startState.field(L9)||l.docChanged||l.selectionSet||l.viewportChanged)&&(this.decorations=this.highlight(s))}highlight({query:l,panel:s}){if(!s||!l.spec.valid)return Fr.none;let{view:u}=this,h=new B9;for(let g=0,m=u.visibleRanges,p=m.length;g<p;g++){let{from:k,to:S}=m[g];for(;g<p-1&&S>m[g+1].from-500;)S=m[++g].to;l.highlight(u.state,k,S,(C,N)=>{let _=u.state.selection.ranges.some(P=>P.from==C&&P.to==N);h.add(C,N,_?jvn:Svn)})}return h.finish()}},{decorations:l=>l.decorations});function oW(l){return s=>{let u=s.state.field(L9,!1);return u&&u.query.spec.valid?l(s,u):Ejt(s)}}const Whe=oW((l,{query:s})=>{let{to:u}=l.state.selection.main,h=s.nextMatch(l.state,u,u);if(!h)return!1;let g=jn.single(h.from,h.to),m=l.state.facet(uR);return l.dispatch({selection:g,effects:[ONe(l,h),m.scrollToMatch(g.main,l)],userEvent:"select.search"}),Tjt(l),!0}),Khe=oW((l,{query:s})=>{let{state:u}=l,{from:h}=u.selection.main,g=s.prevMatch(u,h,h);if(!g)return!1;let m=jn.single(g.from,g.to),p=l.state.facet(uR);return l.dispatch({selection:m,effects:[ONe(l,g),p.scrollToMatch(m.main,l)],userEvent:"select.search"}),Tjt(l),!0}),Evn=oW((l,{query:s})=>{let u=s.matchAll(l.state,1e3);return!u||!u.length?!1:(l.dispatch({selection:jn.create(u.map(h=>jn.range(h.from,h.to))),userEvent:"select.search.matches"}),!0)}),Cvn=({state:l,dispatch:s})=>{let u=l.selection;if(u.ranges.length>1||u.main.empty)return!1;let{from:h,to:g}=u.main,m=[],p=0;for(let k=new sR(l.doc,l.sliceDoc(h,g));!k.next().done;){if(m.length>1e3)return!1;k.value.from==h&&(p=m.length),m.push(jn.range(k.value.from,k.value.to))}return s(l.update({selection:jn.create(m,p),userEvent:"select.search.matches"})),!0},G5t=oW((l,{query:s})=>{let{state:u}=l,{from:h,to:g}=u.selection.main;if(u.readOnly)return!1;let m=s.nextMatch(u,h,h);if(!m)return!1;let p=m,k=[],S,C,N=[];p.from==h&&p.to==g&&(C=u.toText(s.getReplacement(p)),k.push({from:p.from,to:p.to,insert:C}),p=s.nextMatch(u,p.from,p.to),N.push(Bi.announce.of(u.phrase("replaced match on line $",u.doc.lineAt(h).number)+".")));let _=l.state.changes(k);return p&&(S=jn.single(p.from,p.to).map(_),N.push(ONe(l,p)),N.push(u.facet(uR).scrollToMatch(S.main,l))),l.dispatch({changes:_,selection:S,effects:N,userEvent:"input.replace"}),!0}),Mvn=oW((l,{query:s})=>{if(l.state.readOnly)return!1;let u=s.matchAll(l.state,1e9).map(g=>{let{from:m,to:p}=g;return{from:m,to:p,insert:s.getReplacement(g)}});if(!u.length)return!1;let h=l.state.phrase("replaced $ matches",u.length)+".";return l.dispatch({changes:u,effects:Bi.announce.of(h),userEvent:"input.replace.all"}),!0});function kNe(l){return l.state.facet(uR).createPanel(l)}function rAe(l,s){var u,h,g,m,p;let k=l.selection.main,S=k.empty||k.to>k.from+100?"":l.sliceDoc(k.from,k.to);if(s&&!S)return s;let C=l.facet(uR);return new Ojt({search:((u=s==null?void 0:s.literal)!==null&&u!==void 0?u:C.literal)?S:S.replace(/\n/g,"\\n"),caseSensitive:(h=s==null?void 0:s.caseSensitive)!==null&&h!==void 0?h:C.caseSensitive,literal:(g=s==null?void 0:s.literal)!==null&&g!==void 0?g:C.literal,regexp:(m=s==null?void 0:s.regexp)!==null&&m!==void 0?m:C.regexp,wholeWord:(p=s==null?void 0:s.wholeWord)!==null&&p!==void 0?p:C.wholeWord})}function jjt(l){let s=Q6t(l,kNe);return s&&s.dom.querySelector("[main-field]")}function Tjt(l){let s=jjt(l);s&&s==l.root.activeElement&&s.select()}const Ejt=l=>{let s=l.state.field(L9,!1);if(s&&s.panel){let u=jjt(l);if(u&&u!=l.root.activeElement){let h=rAe(l.state,s.query.spec);h.valid&&l.dispatch({effects:$X.of(h)}),u.focus(),u.select()}}else l.dispatch({effects:[xNe.of(!0),s?$X.of(rAe(l.state,s.query.spec)):Ls.appendConfig.of(Dvn)]});return!0},Cjt=l=>{let s=l.state.field(L9,!1);if(!s||!s.panel)return!1;let u=Q6t(l,kNe);return u&&u.dom.contains(l.root.activeElement)&&l.focus(),l.dispatch({effects:xNe.of(!1)}),!0},Avn=[{key:"Mod-f",run:Ejt,scope:"editor search-panel"},{key:"F3",run:Whe,shift:Khe,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Whe,shift:Khe,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Cjt,scope:"editor search-panel"},{key:"Mod-Shift-l",run:Cvn},{key:"Mod-Alt-g",run:ovn},{key:"Mod-d",run:mvn,preventDefault:!0}];class Nvn{constructor(s){this.view=s;let u=this.query=s.state.field(L9).query.spec;this.commit=this.commit.bind(this),this.searchField=Bl("input",{value:u.search,placeholder:Xb(s,"Find"),"aria-label":Xb(s,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Bl("input",{value:u.replace,placeholder:Xb(s,"Replace"),"aria-label":Xb(s,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Bl("input",{type:"checkbox",name:"case",form:"",checked:u.caseSensitive,onchange:this.commit}),this.reField=Bl("input",{type:"checkbox",name:"re",form:"",checked:u.regexp,onchange:this.commit}),this.wordField=Bl("input",{type:"checkbox",name:"word",form:"",checked:u.wholeWord,onchange:this.commit});function h(g,m,p){return Bl("button",{class:"cm-button",name:g,onclick:m,type:"button"},p)}this.dom=Bl("div",{onkeydown:g=>this.keydown(g),class:"cm-search"},[this.searchField,h("next",()=>Whe(s),[Xb(s,"next")]),h("prev",()=>Khe(s),[Xb(s,"previous")]),h("select",()=>Evn(s),[Xb(s,"all")]),Bl("label",null,[this.caseField,Xb(s,"match case")]),Bl("label",null,[this.reField,Xb(s,"regexp")]),Bl("label",null,[this.wordField,Xb(s,"by word")]),...s.state.readOnly?[]:[Bl("br"),this.replaceField,h("replace",()=>G5t(s),[Xb(s,"replace")]),h("replaceAll",()=>Mvn(s),[Xb(s,"replace all")])],Bl("button",{name:"close",onclick:()=>Cjt(s),"aria-label":Xb(s,"close"),type:"button"},["×"])])}commit(){let s=new Ojt({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});s.eq(this.query)||(this.query=s,this.view.dispatch({effects:$X.of(s)}))}keydown(s){M0n(this.view,s,"search-panel")?s.preventDefault():s.keyCode==13&&s.target==this.searchField?(s.preventDefault(),(s.shiftKey?Khe:Whe)(this.view)):s.keyCode==13&&s.target==this.replaceField&&(s.preventDefault(),G5t(this.view))}update(s){for(let u of s.transactions)for(let h of u.effects)h.is($X)&&!h.value.eq(this.query)&&this.setQuery(h.value)}setQuery(s){this.query=s,this.searchField.value=s.search,this.replaceField.value=s.replace,this.caseField.checked=s.caseSensitive,this.reField.checked=s.regexp,this.wordField.checked=s.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(uR).top}}function Xb(l,s){return l.state.phrase(s)}const Ife=30,Rfe=/[\s\.,:;?!]/;function ONe(l,{from:s,to:u}){let h=l.state.doc.lineAt(s),g=l.state.doc.lineAt(u).to,m=Math.max(h.from,s-Ife),p=Math.min(g,u+Ife),k=l.state.sliceDoc(m,p);if(m!=h.from){for(let S=0;S<Ife;S++)if(!Rfe.test(k[S+1])&&Rfe.test(k[S])){k=k.slice(S);break}}if(p!=g){for(let S=k.length-1;S>k.length-Ife;S--)if(!Rfe.test(k[S-1])&&Rfe.test(k[S])){k=k.slice(0,S);break}}return Bi.announce.of(`${l.state.phrase("current match")}. ${k} ${l.state.phrase("on line")} ${h.number}.`)}const _vn=Bi.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),Dvn=[L9,G9.low(Tvn),_vn];class U5t{constructor(s,u,h){this.from=s,this.to=u,this.diagnostic=h}}class xM{constructor(s,u,h){this.diagnostics=s,this.panel=u,this.selected=h}static init(s,u,h){let g=h.facet(BX).markerFilter;g&&(s=g(s,h));let m=s.slice().sort((R,q)=>R.from-q.from||R.to-q.to),p=new B9,k=[],S=0,C=h.doc.iter(),N=0,_=h.doc.length;for(let R=0;;){let q=R==m.length?null:m[R];if(!q&&!k.length)break;let F,X;if(k.length)F=S,X=k.reduce((te,ie)=>Math.min(te,ie.to),q&&q.from>F?q.from:1e8);else{if(F=q.from,F>_)break;X=q.to,k.push(q),R++}for(;R<m.length;){let te=m[R];if(te.from==F&&(te.to>te.from||te.to==F))k.push(te),R++,X=Math.min(te.to,X);else{X=Math.min(te.from,X);break}}X=Math.min(X,_);let J=!1;if(k.some(te=>te.from==F&&(te.to==X||X==_))&&(J=F==X,!J&&X-F<10)){let te=F-(N+C.value.length);te>0&&(C.next(te),N=F);for(let ie=F;;){if(ie>=X){J=!0;break}if(!C.lineBreak&&N+C.value.length>ie)break;ie=N+C.value.length,N+=C.value.length,C.next()}}let ee=Pjt(k);if(J)p.add(F,F,Fr.widget({widget:new Rvn(ee),diagnostics:k.slice()}));else{let te=k.reduce((ie,oe)=>oe.markClass?ie+" "+oe.markClass:ie,"");p.add(F,X,Fr.mark({class:"cm-lintRange cm-lintRange-"+ee+te,diagnostics:k.slice(),inclusiveEnd:k.some(ie=>ie.to>X)}))}if(S=X,S==_)break;for(let te=0;te<k.length;te++)k[te].to<=S&&k.splice(te--,1)}let P=p.finish();return new xM(P,u,oR(P))}}function oR(l,s=null,u=0){let h=null;return l.between(u,1e9,(g,m,{spec:p})=>{if(!(s&&p.diagnostics.indexOf(s)<0))if(!h)h=new U5t(g,m,s||p.diagnostics[0]);else{if(p.diagnostics.indexOf(h.diagnostic)<0)return!1;h=new U5t(h.from,m,h.diagnostic)}}),h}function Mjt(l,s){let u=s.pos,h=s.end||u,g=l.state.facet(BX).hideOn(l,u,h);if(g!=null)return g;let m=l.startState.doc.lineAt(s.pos);return!!(l.effects.some(p=>p.is(Dde))||l.changes.touchesRange(m.from,Math.max(m.to,h)))}function Lvn(l,s){return l.field(My,!1)?s:s.concat(Ls.appendConfig.of(Gvn))}function FCe(l,s){return{effects:Lvn(l,[Dde.of(s)])}}const Dde=Ls.define(),Ajt=Ls.define(),Njt=Ls.define(),My=kd.define({create(){return new xM(Fr.none,null,null)},update(l,s){if(s.docChanged&&l.diagnostics.size){let u=l.diagnostics.map(s.changes),h=null,g=l.panel;if(l.selected){let m=s.changes.mapPos(l.selected.from,1);h=oR(u,l.selected.diagnostic,m)||oR(u,null,m)}!u.size&&g&&s.state.facet(BX).autoPanel&&(g=null),l=new xM(u,g,h)}for(let u of s.effects)if(u.is(Dde)){let h=s.state.facet(BX).autoPanel?u.value.length?Yhe.open:null:l.panel;l=xM.init(u.value,h,s.state)}else u.is(Ajt)?l=new xM(l.diagnostics,u.value?Yhe.open:null,l.selected):u.is(Njt)&&(l=new xM(l.diagnostics,l.panel,u.value));return l},provide:l=>[AX.from(l,s=>s.panel),Bi.decorations.from(l,s=>s.diagnostics)]}),Pvn=Fr.mark({class:"cm-lintRange cm-lintRange-active"});function Ivn(l,s,u){let{diagnostics:h}=l.state.field(My),g,m=-1,p=-1;h.between(s-(u<0?1:0),s+(u>0?1:0),(S,C,{spec:N})=>{if(s>=S&&s<=C&&(S==C||(s>S||u>0)&&(s<C||u<0)))return g=N.diagnostics,m=S,p=C,!1});let k=l.state.facet(BX).tooltipFilter;return g&&k&&(g=k(g,l.state)),g?{pos:m,end:p,above:l.state.doc.lineAt(m).to<p,create(){return{dom:_jt(l,g)}}}:null}function _jt(l,s){return Bl("ul",{class:"cm-tooltip-lint"},s.map(u=>Ljt(l,u,!1)))}const J5t=l=>{let s=l.state.field(My,!1);return!s||!s.panel?!1:(l.dispatch({effects:Ajt.of(!1)}),!0)},BX=Ui.define({combine(l){return{sources:l.map(s=>s.source).filter(s=>s!=null),...c5(l.map(s=>s.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:V5t,tooltipFilter:V5t,needsRefresh:(s,u)=>s?u?h=>s(h)||u(h):s:u,hideOn:(s,u)=>s?u?(h,g,m)=>s(h,g,m)||u(h,g,m):s:u,autoPanel:(s,u)=>s||u})}}});function V5t(l,s){return l?s?(u,h)=>s(l(u,h),h):l:s}function Djt(l){let s=[];if(l)e:for(let{name:u}of l){for(let h=0;h<u.length;h++){let g=u[h];if(/[a-zA-Z]/.test(g)&&!s.some(m=>m.toLowerCase()==g.toLowerCase())){s.push(g);continue e}}s.push("")}return s}function Ljt(l,s,u){var h;let g=u?Djt(s.actions):[];return Bl("li",{class:"cm-diagnostic cm-diagnostic-"+s.severity},Bl("span",{class:"cm-diagnosticText"},s.renderMessage?s.renderMessage(l):s.message),(h=s.actions)===null||h===void 0?void 0:h.map((m,p)=>{let k=!1,S=R=>{if(R.preventDefault(),k)return;k=!0;let q=oR(l.state.field(My).diagnostics,s);q&&m.apply(l,q.from,q.to)},{name:C}=m,N=g[p]?C.indexOf(g[p]):-1,_=N<0?C:[C.slice(0,N),Bl("u",C.slice(N,N+1)),C.slice(N+1)],P=m.markClass?" "+m.markClass:"";return Bl("button",{type:"button",class:"cm-diagnosticAction"+P,onclick:S,onmousedown:S,"aria-label":` Action: ${C}${N<0?"":` (access key "${g[p]})"`}.`},_)}),s.source&&Bl("div",{class:"cm-diagnosticSource"},s.source))}class Rvn extends kO{constructor(s){super(),this.sev=s}eq(s){return s.sev==this.sev}toDOM(){return Bl("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class X5t{constructor(s,u){this.diagnostic=u,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Ljt(s,u,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Yhe{constructor(s){this.view=s,this.items=[];let u=g=>{if(!(g.ctrlKey||g.altKey||g.metaKey)){if(g.keyCode==27)J5t(this.view),this.view.focus();else if(g.keyCode==38||g.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(g.keyCode==40||g.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(g.keyCode==36)this.moveSelection(0);else if(g.keyCode==35)this.moveSelection(this.items.length-1);else if(g.keyCode==13)this.view.focus();else if(g.keyCode>=65&&g.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:m}=this.items[this.selectedIndex],p=Djt(m.actions);for(let k=0;k<p.length;k++)if(p[k].toUpperCase().charCodeAt(0)==g.keyCode){let S=oR(this.view.state.field(My).diagnostics,m);S&&m.actions[k].apply(s,S.from,S.to)}}else return;g.preventDefault()}},h=g=>{for(let m=0;m<this.items.length;m++)this.items[m].dom.contains(g.target)&&this.moveSelection(m)};this.list=Bl("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:u,onclick:h}),this.dom=Bl("div",{class:"cm-panel-lint"},this.list,Bl("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>J5t(this.view)},"×")),this.update()}get selectedIndex(){let s=this.view.state.field(My).selected;if(!s)return-1;for(let u=0;u<this.items.length;u++)if(this.items[u].diagnostic==s.diagnostic)return u;return-1}update(){let{diagnostics:s,selected:u}=this.view.state.field(My),h=0,g=!1,m=null,p=new Set;for(s.between(0,this.view.state.doc.length,(k,S,{spec:C})=>{for(let N of C.diagnostics){if(p.has(N))continue;p.add(N);let _=-1,P;for(let R=h;R<this.items.length;R++)if(this.items[R].diagnostic==N){_=R;break}_<0?(P=new X5t(this.view,N),this.items.splice(h,0,P),g=!0):(P=this.items[_],_>h&&(this.items.splice(h,_-h),g=!0)),u&&P.diagnostic==u.diagnostic?P.dom.hasAttribute("aria-selected")||(P.dom.setAttribute("aria-selected","true"),m=P):P.dom.hasAttribute("aria-selected")&&P.dom.removeAttribute("aria-selected"),h++}});h<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)g=!0,this.items.pop();this.items.length==0&&(this.items.push(new X5t(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),g=!0),m?(this.list.setAttribute("aria-activedescendant",m.id),this.view.requestMeasure({key:this,read:()=>({sel:m.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:k,panel:S})=>{let C=S.height/this.list.offsetHeight;k.top<S.top?this.list.scrollTop-=(S.top-k.top)/C:k.bottom>S.bottom&&(this.list.scrollTop+=(k.bottom-S.bottom)/C)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),g&&this.sync()}sync(){let s=this.list.firstChild;function u(){let h=s;s=h.nextSibling,h.remove()}for(let h of this.items)if(h.dom.parentNode==this.list){for(;s!=h.dom;)u();s=h.dom.nextSibling}else this.list.insertBefore(h.dom,s);for(;s;)u()}moveSelection(s){if(this.selectedIndex<0)return;let u=this.view.state.field(My),h=oR(u.diagnostics,this.items[s].diagnostic);h&&this.view.dispatch({selection:{anchor:h.from,head:h.to},scrollIntoView:!0,effects:Njt.of(h)})}static open(s){return new Yhe(s)}}function lhe(l,s='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${s}>${encodeURIComponent(l)}</svg>')`}function $fe(l){return lhe(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${l}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const $vn=Bi.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:$fe("#d11")},".cm-lintRange-warning":{backgroundImage:$fe("orange")},".cm-lintRange-info":{backgroundImage:$fe("#999")},".cm-lintRange-hint":{backgroundImage:$fe("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:"#86714a80"},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:"#2e343e"}}});function Bvn(l){return l=="error"?4:l=="warning"?3:l=="info"?2:1}function Pjt(l){let s="hint",u=1;for(let h of l){let g=Bvn(h.severity);g>u&&(u=g,s=h.severity)}return s}class Ijt extends s5{constructor(s){super(),this.diagnostics=s,this.severity=Pjt(s)}toDOM(s){let u=document.createElement("div");u.className="cm-lint-marker cm-lint-marker-"+this.severity;let h=this.diagnostics,g=s.state.facet(Lde).tooltipFilter;return g&&(h=g(h,s.state)),h.length&&(u.onmouseover=()=>Fvn(s,u,h)),u}}function zvn(l,s){let u=h=>{let g=s.getBoundingClientRect();if(!(h.clientX>g.left-10&&h.clientX<g.right+10&&h.clientY>g.top-10&&h.clientY<g.bottom+10)){for(let m=h.target;m;m=m.parentNode)if(m.nodeType==1&&m.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",u),l.state.field(Rjt)&&l.dispatch({effects:SNe.of(null)})}};window.addEventListener("mousemove",u)}function Fvn(l,s,u){function h(){let p=l.elementAtHeight(s.getBoundingClientRect().top+5-l.documentTop);l.coordsAtPos(p.from)&&l.dispatch({effects:SNe.of({pos:p.from,above:!1,clip:!1,create(){return{dom:_jt(l,u),getCoords:()=>s.getBoundingClientRect()}}})}),s.onmouseout=s.onmousemove=null,zvn(l,s)}let{hoverTime:g}=l.state.facet(Lde),m=setTimeout(h,g);s.onmouseout=()=>{clearTimeout(m),s.onmouseout=s.onmousemove=null},s.onmousemove=()=>{clearTimeout(m),m=setTimeout(h,g)}}function qvn(l,s){let u=Object.create(null);for(let g of s){let m=l.lineAt(g.from);(u[m.from]||(u[m.from]=[])).push(g)}let h=[];for(let g in u)h.push(new Ijt(u[g]).range(+g));return yo.of(h,!0)}const Hvn=V6t({class:"cm-gutter-lint",markers:l=>l.state.field(sAe),widgetMarker:(l,s,u)=>{let h=[];return l.state.field(sAe).between(u.from,u.to,(g,m,p)=>{g>u.from&&g<u.to&&h.push(...p.diagnostics)}),h.length?new Ijt(h):null}}),sAe=kd.define({create(){return yo.empty},update(l,s){l=l.map(s.changes);let u=s.state.facet(Lde).markerFilter;for(let h of s.effects)if(h.is(Dde)){let g=h.value;u&&(g=u(g||[],s.state)),l=qvn(s.state.doc,g.slice(0))}return l}}),SNe=Ls.define(),Rjt=kd.define({create(){return null},update(l,s){return l&&s.docChanged&&(l=Mjt(s,l)?null:{...l,pos:s.changes.mapPos(l.pos)}),s.effects.reduce((u,h)=>h.is(SNe)?h.value:u,l)},provide:l=>xde.from(l)}),Qvn=Bi.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:lhe('<path fill="#aaf" stroke="#77e" stroke-width="6" stroke-linejoin="round" d="M5 5L35 5L35 35L5 35Z"/>')},".cm-lint-marker-warning":{content:lhe('<path fill="#fe8" stroke="#fd7" stroke-width="6" stroke-linejoin="round" d="M20 6L37 35L3 35Z"/>')},".cm-lint-marker-error":{content:lhe('<circle cx="20" cy="20" r="15" fill="#f87" stroke="#f43" stroke-width="6"/>')}}),Gvn=[My,Bi.decorations.compute([My],l=>{let{selected:s,panel:u}=l.field(My);return!s||!u||s.from==s.to?Fr.none:Fr.set([Pvn.range(s.from,s.to)])}),epn(Ivn,{hideOn:Mjt}),$vn],Lde=Ui.define({combine(l){return c5(l,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function Uvn(l={}){return[Lde.of(l),sAe,Hvn,Qvn,Rjt]}const ea={background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},_9=ea;function $jt(){const{mlflowStatus:l,mlflowBackend:s}=Ldn();return O.jsx("div",{className:"flex items-center gap-2 px-2.5 py-1.5 rounded-lg text-[11px]",style:{background:l==="connected"?"rgba(34,197,94,.06)":l==="error"?"rgba(239,68,68,.06)":"var(--bg-surface)",border:`1px solid ${l==="connected"?"rgba(34,197,94,.2)":l==="error"?"rgba(239,68,68,.2)":"var(--border)"}`},children:l==="loading"?O.jsxs(O.Fragment,{children:[O.jsx(i5,{size:11,className:"animate-spin",style:{color:"var(--text-muted)"}}),O.jsx("span",{style:{color:"var(--text-muted)"},children:"Connecting to MLflow..."})]}):l==="connected"?O.jsxs(O.Fragment,{children:[O.jsx(yX,{size:11,style:{color:"#22c55e"}}),O.jsxs("span",{style:{color:"var(--text-secondary)"},children:["MLflow (",s,")"]})]}):O.jsxs(O.Fragment,{children:[O.jsx(Ty,{size:11,style:{color:"#ef4444"}}),O.jsx("span",{style:{color:"#ef4444"},children:"MLflow not available"})]})})}function jNe({currentPath:l,onSelect:s,extensions:u}){const[h,g]=ue.useState(()=>{if(!l)return".";const ee=l.lastIndexOf("/");return ee>0?l.substring(0,ee):"."}),[m,p]=ue.useState([]),[k,S]=ue.useState(!0),[C,N]=ue.useState(null),[_,P]=ue.useState(l),R=Sc(ee=>ee.getFileListCache),q=Sc(ee=>ee.setFileListCache);ue.useEffect(()=>{const ee=`${h}|${u||""}`,te=R(ee);if(te){p(te),S(!1);return}N(null),kdn(h,u).then(ie=>{const oe=ie.items||[];p(oe),q(ee,oe),S(!1)}).catch(ie=>{N(ie instanceof Error?ie.message:"Failed to load files"),p([]),S(!1)})},[h,u,R,q]);const F=()=>{if(h===".")return;const ee=h.split("/");ee.pop(),S(!0),g(ee.length>0?ee.join("/"):".")},X=ee=>{P(ee),s(ee)},J=ee=>ee>1024*1024?`${(ee/(1024*1024)).toFixed(1)} MB`:`${(ee/1024).toFixed(1)} KB`;return O.jsxs("div",{children:[_&&O.jsxs("div",{className:"mb-2 px-2.5 py-2 rounded-lg flex items-center gap-2",style:{background:"rgba(34,197,94,.1)",border:"1px solid rgba(34,197,94,.2)"},children:[O.jsx(yX,{size:14,style:{color:"#22c55e"},className:"shrink-0"}),O.jsx("span",{className:"text-xs font-mono truncate",style:{color:"#4ade80"},children:_})]}),O.jsxs("div",{className:"rounded-lg overflow-hidden",style:{border:"1px solid var(--border)"},children:[O.jsxs("div",{className:"px-2 py-1.5 flex items-center gap-1.5",style:{background:"var(--bg-elevated)",borderBottom:"1px solid var(--border)"},children:[O.jsx("button",{onClick:F,disabled:h===".",className:"p-0.5 rounded disabled:opacity-30 disabled:cursor-not-allowed transition-colors",style:{color:"var(--text-secondary)"},children:O.jsx(MAe,{size:14})}),O.jsx("span",{className:"text-xs font-mono truncate",style:{color:"var(--text-muted)"},children:h==="."?"/":h})]}),O.jsx("div",{className:"max-h-40 overflow-y-auto",style:{background:"var(--bg-input)"},children:k?O.jsx("div",{className:"px-3 py-2 text-xs",style:{color:"var(--text-muted)"},children:"Loading..."}):C?O.jsx("div",{className:"px-3 py-2 text-xs",style:{color:"#f87171"},children:C}):m.length===0?O.jsx("div",{className:"px-3 py-2 text-xs",style:{color:"var(--text-muted)"},children:"No matching files"}):m.map(ee=>{const te=ee.type==="file"&&ee.path===_;return O.jsxs("button",{onClick:()=>{ee.type==="directory"?(S(!0),g(ee.path)):X(ee.path)},className:"w-full px-3 py-2 flex items-center gap-2 text-left transition-colors",style:{borderBottom:"1px solid var(--border)",background:te?"var(--accent-soft)":"transparent"},onMouseEnter:ie=>{te||(ie.currentTarget.style.background="var(--bg-hover)")},onMouseLeave:ie=>{te||(ie.currentTarget.style.background="transparent")},children:[ee.type==="directory"?O.jsx(kfn,{size:14,style:{color:"#f59e0b"},className:"shrink-0"}):te?O.jsx(yX,{size:14,style:{color:"var(--accent)"},className:"shrink-0"}):O.jsx(aOt,{size:14,style:{color:"var(--text-muted)"},className:"shrink-0"}),O.jsx("span",{className:"text-xs truncate",style:{color:te?"var(--accent)":"var(--text-secondary)",fontWeight:te?500:400},children:ee.name}),ee.size!==void 0&&O.jsx("span",{className:"text-[11px] ml-auto shrink-0",style:{color:"var(--text-muted)"},children:J(ee.size)})]},ee.path)})})]})]})}function Jvn({schema:l}){const[s,u]=ue.useState(!1);return!l||!l.columns?null:O.jsxs("div",{style:{borderTop:"1px solid var(--border)",background:"var(--bg-elevated)"},children:[O.jsxs("div",{className:"px-4 py-2 flex items-center justify-between",children:[O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx(khe,{size:14,style:{color:"var(--text-muted)"}}),O.jsx("span",{className:"text-xs font-semibold",style:{color:"var(--text-primary)"},children:"Schema"}),O.jsxs("span",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:[l.column_count??0," cols / ",l.row_count!=null?`${l.row_count_estimated?"~":""}${l.row_count.toLocaleString()} rows`:"? rows"]})]}),O.jsx("button",{onClick:()=>u(!s),className:"text-[11px] font-medium",style:{color:"var(--accent)"},children:s?"Hide preview":"Show preview"})]}),O.jsxs("div",{className:"px-4 pb-3",children:[O.jsx(RAe,{columns:l.columns}),s&&l.preview.length>0&&O.jsx("div",{className:"mt-2 rounded-lg overflow-x-auto",style:{border:"1px solid var(--border)",background:"var(--bg-input)"},children:O.jsxs("table",{className:"w-full text-[11px]",children:[O.jsx("thead",{children:O.jsx("tr",{style:{borderBottom:"1px solid var(--border)",background:"var(--bg-elevated)"},children:l.columns.map(h=>O.jsx("th",{className:"text-left px-2 py-1 font-semibold whitespace-nowrap",style:{color:"var(--text-muted)"},children:h.name},h.name))})}),O.jsx("tbody",{children:l.preview.map((h,g)=>O.jsx("tr",{style:{borderBottom:"1px solid var(--border)"},children:l.columns.map(m=>O.jsx("td",{className:"px-2 py-1 font-mono whitespace-nowrap",style:{color:"var(--text-secondary)"},children:String(h[m.name]??"")},m.name))},g))})]})})]})]})}const Vvn=Bi.theme({"&":{backgroundColor:"var(--bg-input)",color:"var(--text-primary)",fontSize:"12px",fontFamily:"ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace",flex:"1",minHeight:"120px"},"&.cm-focused":{outline:"none"},".cm-scroller":{fontFamily:"inherit",lineHeight:"1.625",overflow:"auto"},".cm-content":{caretColor:"var(--accent)",padding:"10px 0"},".cm-line":{padding:"0 12px 0 4px"},".cm-gutters":{backgroundColor:"var(--bg-elevated)",color:"var(--text-muted)",border:"none",borderRight:"1px solid var(--border)"},".cm-gutter.cm-lineNumbers .cm-gutterElement":{padding:"0 8px 0 4px",minWidth:"28px"},".cm-activeLineGutter":{backgroundColor:"transparent",color:"var(--text-secondary)"},".cm-activeLine":{backgroundColor:"rgba(255,255,255,.03)"},".cm-selectionBackground":{backgroundColor:"rgba(59,130,246,.25) !important"},"&.cm-focused .cm-selectionBackground":{backgroundColor:"rgba(59,130,246,.3) !important"},".cm-cursor":{borderLeftColor:"var(--accent)"},".cm-matchingBracket":{backgroundColor:"rgba(59,130,246,.25)",outline:"1px solid rgba(59,130,246,.4)"},".cm-selectionMatch":{backgroundColor:"rgba(59,130,246,.15)"},".cm-searchMatch":{backgroundColor:"rgba(234,179,8,.3)",outline:"1px solid rgba(234,179,8,.5)"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"rgba(234,179,8,.5)"},".cm-foldGutter .cm-gutterElement":{color:"var(--text-muted)",padding:"0 4px"},".cm-tooltip":{backgroundColor:"var(--bg-elevated)",border:"1px solid var(--border)",color:"var(--text-primary)"},".cm-tooltip.cm-tooltip-autocomplete > ul > li":{padding:"4px 8px"},".cm-tooltip.cm-tooltip-autocomplete > ul > li[aria-selected]":{backgroundColor:"var(--accent-soft)",color:"var(--text-primary)"},".cm-panels":{backgroundColor:"var(--bg-elevated)",color:"var(--text-primary)",borderTop:"1px solid var(--border)"},".cm-panels.cm-panels-bottom":{borderTop:"1px solid var(--border)"},".cm-panel input":{backgroundColor:"var(--bg-input)",color:"var(--text-primary)",border:"1px solid var(--border)",borderRadius:"4px",padding:"2px 6px",fontSize:"12px"},".cm-panel button":{backgroundColor:"var(--bg-hover)",color:"var(--text-secondary)",border:"1px solid var(--border)",borderRadius:"4px",padding:"2px 8px",fontSize:"12px"},".cm-placeholder":{color:"var(--text-muted)",fontStyle:"italic"},".cm-lintRange-error":{backgroundImage:"none",backgroundColor:"rgba(239, 68, 68, 0.15)",borderBottom:"2px solid #ef4444"},".cm-gutter-lint":{width:"14px"},".cm-gutter-lint .cm-gutterElement":{padding:"0 2px"},".cm-lint-marker-error":{width:"8px !important",height:"8px !important",borderRadius:"50%",backgroundColor:"#ef4444",display:"inline-block",marginTop:"6px"},".cm-tooltip-lint":{backgroundColor:"var(--bg-elevated)",border:"1px solid var(--border)",color:"var(--text-primary)"}},{dark:!0}),Xvn=Ede.define([{tag:Qn.keyword,color:"#c084fc"},{tag:Qn.controlKeyword,color:"#c084fc"},{tag:Qn.definitionKeyword,color:"#c084fc"},{tag:Qn.operatorKeyword,color:"#c084fc"},{tag:Qn.modifier,color:"#c084fc"},{tag:Qn.self,color:"#f472b6"},{tag:Qn.bool,color:"#fb923c"},{tag:Qn.null,color:"#fb923c"},{tag:Qn.number,color:"#fb923c"},{tag:Qn.string,color:"#86efac"},{tag:Qn.special(Qn.string),color:"#86efac"},{tag:Qn.regexp,color:"#fbbf24"},{tag:Qn.comment,color:"var(--text-muted)",fontStyle:"italic"},{tag:Qn.function(Qn.definition(Qn.variableName)),color:"var(--text-accent)"},{tag:Qn.function(Qn.variableName),color:"#93c5fd"},{tag:Qn.className,color:"#fbbf24"},{tag:Qn.definition(Qn.className),color:"#fbbf24"},{tag:Qn.propertyName,color:"#67e8f9"},{tag:Qn.operator,color:"#94a3b8"},{tag:Qn.punctuation,color:"#94a3b8"},{tag:Qn.bracket,color:"#cbd5e1"},{tag:Qn.meta,color:"#a78bfa"},{tag:Qn.variableName,color:"var(--text-primary)"},{tag:Qn.typeName,color:"#fbbf24"}]),Wvn=Bi.theme({"&":{borderRadius:"8px",border:"1px solid var(--border)",overflow:"hidden",transition:"border-color 0.15s, box-shadow 0.15s"},"&.cm-focused":{borderColor:"rgba(59,130,246,.3)",boxShadow:"0 0 0 2px var(--accent-soft)"}});function JM({defaultValue:l,onChange:s,placeholder:u,errorLine:h}){const g=ue.useRef(null),m=ue.useRef(null),p=ue.useRef(s),k=ue.useRef(void 0),S=ue.useRef(new WX),C=ue.useRef(!1);return ue.useEffect(()=>{p.current=s},[s]),ue.useEffect(()=>{const N=m.current;if(!N||C.current)return;const _=N.state.doc.toString();l!==_&&N.dispatch({changes:{from:0,to:_.length,insert:l}})},[l]),ue.useEffect(()=>{if(!g.current)return;const N=Bi.updateListener.of(R=>{if(R.docChanged){const q=R.state.doc.toString();k.current&&clearTimeout(k.current),k.current=setTimeout(()=>p.current(q),150),R.view&&R.view.dispatch(FCe(R.state,[]))}}),_=Bc.create({doc:l,extensions:[t2n(),P0n(),U0n(),fmn(),Rmn(),Ewn(),$wn(),B0n(),ppn(),uvn(),nW.of("    "),hpn(),jmn(),Uvn(),Gwn(),Cmn(Xvn),Vvn,Wvn,S.current.of(u?H3t(u):[]),yde.of([...Nwn,...Avn,...a2n,...xmn,...RSt,rvn,...ivn]),Bi.domEventHandlers({focus:()=>{C.current=!0},blur:()=>{C.current=!1}}),N,Bi.lineWrapping]}),P=new Bi({state:_,parent:g.current});return m.current=P,()=>{k.current&&clearTimeout(k.current),P.destroy()}},[]),ue.useEffect(()=>{const N=m.current;if(N)if(h!=null&&h>=1){const _=N.state.doc,P=Math.min(h,_.lines),R=_.line(P);N.dispatch(FCe(N.state,[{from:R.from,to:R.to,severity:"error",message:`Error on line ${h}`}]))}else N.dispatch(FCe(N.state,[]))},[h]),ue.useEffect(()=>{m.current&&m.current.dispatch({effects:S.current.reconfigure(u?H3t(u):[])})},[u]),O.jsx("div",{ref:g,"data-testid":"code-editor-wrapper",className:"flex-1 min-h-[120px]"})}function VM({inputSources:l,onDeleteInput:s}){return l.length===0?null:O.jsx("div",{className:"rounded-lg px-3 py-1.5 shrink-0",style:{background:"var(--bg-input)",border:"1px solid var(--border)"},children:O.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[O.jsx("span",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:l.length>1?"Inputs":"Input"}),l.map(u=>O.jsxs("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded",style:{background:"var(--accent-soft)"},children:[O.jsx("code",{className:"text-[11px] font-semibold",style:{color:"var(--accent)"},children:u.varName}),s&&O.jsx("button",{onClick:()=>s(u.edgeId),className:"p-0 rounded transition-colors",style:{color:"var(--text-muted)"},onMouseEnter:h=>{h.currentTarget.style.color="#ef4444"},onMouseLeave:h=>{h.currentTarget.style.color="var(--text-muted)"},title:`Remove connection from ${u.sourceLabel}`,children:O.jsx(r5,{size:10})})]},u.varName))]})})}function UM({value:l,onChange:s,options:u,accentColor:h}){return O.jsx("div",{className:"flex gap-1.5",children:u.map(g=>{const m=l===g.key;return O.jsxs("button",{onClick:()=>s(g.key),className:"flex-1 flex items-center justify-center gap-1.5 px-2 py-1.5 rounded-lg text-xs font-medium transition-colors",style:{background:m?Fo(h,.1):"var(--bg-input)",border:m?`1px solid ${h}`:"1px solid var(--border)",color:m?h:"var(--text-secondary)"},children:[g.icon,g.label]},g.key)})})}function Kvn(l){return l<1024?`${l} B`:l<1024*1024?`${(l/1024).toFixed(1)} KB`:`${(l/(1024*1024)).toFixed(1)} MB`}function Yvn(l){return l?new Date(l*1e3).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):""}function Bjt({resourceKey:l,getStatus:s,startFetch:u,getProgress:h,deleteCache:g,cancelFetch:m,timestampField:p,labels:k,onCacheReady:S}){const[C,N]=ue.useState(null),[_,P]=ue.useState(!1),[R,q]=ue.useState(null),[F,X]=ue.useState("");ue.useEffect(()=>{l&&s(l).then(oe=>{N(oe),oe.cached&&(S==null||S(oe))}).catch(oe=>{console.warn("cache status fetch failed",oe),N(null)})},[l]),ue.useEffect(()=>{if(!_||!l)return;const oe=setInterval(()=>{h(l).then(se=>{se.active&&q({rows:se.rows||0,elapsed:se.elapsed||0,phase:se.phase||""})}).catch(se=>{console.warn("progress poll failed",se)})},1e3);return()=>{clearInterval(oe),q(null)}},[_,l]);const J=()=>{l&&(P(!0),X(""),u(l).then(oe=>{N(oe),P(!1),S==null||S(oe)}).catch(oe=>{const se=oe instanceof wO&&oe.detail||oe.message;X(se==="Cache build cancelled"?"":se),P(!1)}))},ee=()=>{!l||!m||m(l).catch(oe=>{console.warn("cancel request failed",oe)})},te=()=>{g(l).then(oe=>N(oe)).catch(oe=>X(oe instanceof wO&&oe.detail||oe.message))},ie=C?C[p]:0;return O.jsxs("div",{children:[O.jsx("button",{onClick:_&&m?ee:J,disabled:!l||_&&!m,className:"w-full flex items-center justify-center gap-2 px-3 py-2 rounded-lg text-xs font-medium transition-colors disabled:opacity-40",style:{background:_&&m?"rgba(239,68,68,.1)":C!=null&&C.cached?"rgba(34,197,94,.1)":"var(--accent-soft)",border:_&&m?"1px solid rgba(239,68,68,.3)":C!=null&&C.cached?"1px solid rgba(34,197,94,.3)":"1px solid var(--accent)",color:_&&m?"#ef4444":C!=null&&C.cached?"#22c55e":"var(--accent)"},children:_?m?O.jsxs(O.Fragment,{children:[O.jsx(cfn,{size:14})," Cancel ",R?`(${R.phase?`${R.phase}… `:""}${R.rows.toLocaleString()} rows · ${R.elapsed}s)`:""]}):O.jsxs(O.Fragment,{children:[O.jsx(i5,{size:14,className:"animate-spin"})," ",R?`${R.phase?`${R.phase}… `:""}${R.rows.toLocaleString()} rows · ${R.elapsed}s`:k.pendingLabel]}):C!=null&&C.cached?O.jsxs(O.Fragment,{children:[O.jsx(xhe,{size:14})," ",k.refreshLabel]}):O.jsxs(O.Fragment,{children:[O.jsx(xhe,{size:14})," ",k.fetchLabel]})}),(C==null?void 0:C.cached)&&O.jsxs("div",{className:"mt-1.5 flex items-center gap-2 text-[10px] px-1",style:{color:"var(--text-muted)"},children:[O.jsxs("span",{children:[C.row_count.toLocaleString()," rows"]}),O.jsx("span",{children:"·"}),O.jsxs("span",{children:[C.column_count," cols"]}),O.jsx("span",{children:"·"}),O.jsx("span",{children:Kvn(C.size_bytes)}),ie>0&&O.jsxs(O.Fragment,{children:[O.jsx("span",{children:"·"}),O.jsx("span",{children:Yvn(ie)})]}),O.jsx("span",{children:"·"}),O.jsxs("button",{onClick:te,className:"inline-flex items-center gap-0.5 hover:opacity-70 transition-opacity",style:{color:"#ef4444"},title:"Delete cached data",children:[O.jsx(R9,{size:10})," clear"]})]}),!(C!=null&&C.cached)&&l&&!_&&O.jsx("div",{className:"mt-1.5 text-[10px] px-1",style:{color:"#f59e0b"},children:k.notCachedHint}),F&&O.jsx("div",{className:"mt-1.5 text-[10px] px-2 py-1 rounded",style:{background:"rgba(239,68,68,.1)",color:"#ef4444"},children:F})]})}function Zvn({httpPath:l,onSelect:s}){const[u,h]=ue.useState([]),[g,m]=ue.useState(!1),[p,k]=ue.useState(null),[S,C]=ue.useState(!1),N=ue.useRef(!1),_=()=>{if(N.current){C(!0);return}m(!0),k(null),edn().then(R=>{h(R.warehouses||[]),N.current=!0,C(!0),m(!1)}).catch(R=>{k(R instanceof wO&&R.detail||R.message),m(!1)})},P=R=>R==="RUNNING"?"#22c55e":R==="STOPPED"||R==="DELETED"?"#ef4444":"#f59e0b";return O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"SQL Warehouse"}),O.jsxs("div",{className:"mt-1 flex gap-1.5",children:[O.jsx("input",{type:"text",placeholder:"/sql/1.0/warehouses/abc123",value:l,onChange:R=>s(R.target.value),className:"flex-1 px-2.5 py-1.5 text-xs font-mono rounded-lg focus:outline-none focus:ring-2",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},onFocus:R=>{R.currentTarget.style.borderColor="rgba(59,130,246,.3)",R.currentTarget.style.boxShadow="0 0 0 2px var(--accent-soft)"},onBlur:R=>{R.currentTarget.style.borderColor="var(--border)",R.currentTarget.style.boxShadow="none"}}),O.jsxs("button",{onClick:_,disabled:g,className:"px-2 py-1.5 rounded-lg text-xs font-medium transition-colors flex items-center gap-1",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-secondary)"},title:"Fetch warehouses from Databricks",children:[g?O.jsx(i5,{size:12,className:"animate-spin"}):O.jsx(rg,{size:12}),O.jsx("span",{children:g?"":"Browse"})]})]}),p&&O.jsx("div",{className:"mt-1.5 text-[10px] px-2 py-1 rounded",style:{background:"rgba(239,68,68,.1)",color:"#ef4444"},children:p}),S&&u.length>0&&O.jsx("div",{className:"mt-1.5 rounded-lg overflow-hidden",style:{border:"1px solid var(--border)",background:"var(--bg-input)"},children:u.map(R=>O.jsxs("button",{onClick:()=>{s(R.http_path),C(!1)},className:"w-full flex items-center gap-2 px-2.5 py-2 text-xs transition-colors hover:brightness-110",style:{background:l===R.http_path?"var(--accent-soft)":"transparent",borderBottom:"1px solid var(--border)",color:"var(--text-primary)"},children:[O.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:P(R.state)},title:R.state}),O.jsx("span",{className:"font-medium truncate",children:R.name}),R.size&&O.jsx("span",{className:"text-[10px] ml-auto flex-shrink-0",style:{color:"var(--text-muted)"},children:R.size}),l===R.http_path&&O.jsx(yX,{size:12,style:{color:"var(--accent)"},className:"flex-shrink-0"})]},R.id))}),S&&u.length===0&&!g&&!p&&O.jsx("div",{className:"mt-1.5 text-[10px]",style:{color:"var(--text-muted)"},children:"No SQL Warehouses found in this workspace"})]})}function eyn({table:l,onSelect:s}){const u=l?l.split("."):[],[h,g]=ue.useState(u[0]||""),[m,p]=ue.useState(u[1]||""),[k,S]=ue.useState(u[2]||""),[C,N]=ue.useState([]),[_,P]=ue.useState([]),[R,q]=ue.useState([]),[F,X]=ue.useState(!1),[J,ee]=ue.useState(!1),[te,ie]=ue.useState(!1),[oe,se]=ue.useState(null),ge=we=>we instanceof wO&&we.detail||we.message,Ne=()=>{X(!0),se(null),tdn().then(we=>{N(we.catalogs||[]),X(!1)}).catch(we=>{se(ge(we)),X(!1)})},qe=we=>{ee(!0),se(null),ndn(we).then(Z=>{P(Z.schemas||[]),ee(!1)}).catch(Z=>{se(ge(Z)),ee(!1)})},Ke=(we,Z)=>{ie(!0),se(null),idn(we,Z).then(pe=>{q(pe.tables||[]),ie(!1)}).catch(pe=>{se(ge(pe)),ie(!1)})},Le={background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"};return O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Table"}),O.jsxs("div",{className:"mt-1 space-y-1.5",children:[O.jsxs("select",{value:h,onFocus:Ne,onChange:we=>{const Z=we.target.value;g(Z),p(""),S(""),P([]),q([]),s(""),Z&&qe(Z)},className:"w-full px-2.5 py-1.5 text-xs rounded-lg focus:outline-none focus:ring-2",style:Le,children:[O.jsx("option",{value:"",children:F?"Loading...":"Select catalog..."}),h&&C.every(we=>we.name!==h)&&O.jsx("option",{value:h,children:h}),C.map(we=>O.jsxs("option",{value:we.name,children:[we.name,we.comment?` — ${we.comment}`:""]},we.name))]}),O.jsxs("select",{value:m,disabled:!h,onFocus:()=>{h&&qe(h)},onChange:we=>{const Z=we.target.value;p(Z),S(""),q([]),s(""),Z&&Ke(h,Z)},className:"w-full px-2.5 py-1.5 text-xs rounded-lg focus:outline-none focus:ring-2 disabled:opacity-40",style:Le,children:[O.jsx("option",{value:"",children:J?"Loading...":h?"Select schema...":"Select catalog first"}),m&&_.every(we=>we.name!==m)&&O.jsx("option",{value:m,children:m}),_.map(we=>O.jsxs("option",{value:we.name,children:[we.name,we.comment?` — ${we.comment}`:""]},we.name))]}),O.jsxs("select",{value:k,disabled:!m,onFocus:()=>{h&&m&&Ke(h,m)},onChange:we=>{const Z=we.target.value;S(Z),s(Z?`${h}.${m}.${Z}`:"")},className:"w-full px-2.5 py-1.5 text-xs rounded-lg focus:outline-none focus:ring-2 disabled:opacity-40",style:Le,children:[O.jsx("option",{value:"",children:te?"Loading...":m?"Select table...":"Select schema first"}),k&&R.every(we=>we.name!==k)&&O.jsx("option",{value:k,children:k}),R.map(we=>O.jsxs("option",{value:we.name,children:[we.name,we.table_type?` (${we.table_type})`:"",we.comment?` — ${we.comment}`:""]},we.name))]})]}),l&&O.jsx("div",{className:"mt-1.5 text-[10px] font-mono px-1",style:{color:"var(--text-muted)"},children:l}),oe&&O.jsx("div",{className:"mt-1.5 text-[10px] px-2 py-1 rounded",style:{background:"rgba(239,68,68,.1)",color:"#ef4444"},children:oe})]})}function tyn({table:l,httpPath:s,query:u,onFetched:h}){return O.jsx(Bjt,{resourceKey:l,getStatus:g=>rdn(g),startFetch:g=>odn({table:g,http_path:s||void 0,query:u||void 0}).then(m=>({cached:!0,...m})),getProgress:g=>sdn(g),deleteCache:g=>cdn(g),timestampField:"fetched_at",labels:{fetchLabel:"Fetch Data",refreshLabel:"Refresh Data",notCachedHint:"Not fetched yet — click to download from Databricks",pendingLabel:"Connecting..."},onCacheReady:h})}function nyn({config:l,onUpdate:s,onRefreshPreview:u,accentColor:h,errorLine:g}){const m=Rn(l,"sourceType","flat_file"),p=Rn(l,"path",void 0),k=m==="flat_file"&&!!p,[S,C]=ue.useState(!1);return O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"px-4 py-3 space-y-3",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Source Type"}),O.jsx("div",{className:"mt-1",children:O.jsx(UM,{value:m,onChange:N=>s("sourceType",N),options:[{key:"flat_file",label:"Flat File",icon:O.jsx(aOt,{size:12})},{key:"databricks",label:"Databricks",icon:O.jsx(NAe,{size:12})}],accentColor:h})})]}),m==="flat_file"&&O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] mb-1.5 block",style:{color:"var(--text-muted)"},children:"File"}),k&&O.jsxs("div",{className:"px-2.5 py-2 rounded-lg flex items-center gap-2",style:{background:"rgba(34,197,94,.1)",border:"1px solid rgba(34,197,94,.2)"},children:[O.jsx(yX,{size:14,style:{color:"#22c55e"},className:"shrink-0"}),O.jsx("span",{className:"text-xs font-mono truncate flex-1",style:{color:"#4ade80"},children:p}),O.jsx("button",{"data-testid":"file-change-btn",onClick:()=>C(!S),className:"shrink-0 text-[11px] font-semibold px-2 py-0.5 rounded transition-colors",style:{color:"#4ade80"},children:S?"close":"change"})]}),(!k||S)&&O.jsx("div",{className:"mt-2",children:O.jsx(jNe,{currentPath:void 0,onSelect:N=>{s("path",N),C(!1),setTimeout(()=>u==null?void 0:u(),50)}})})]}),m==="databricks"&&O.jsxs("div",{className:"space-y-3",children:[O.jsx(Zvn,{httpPath:Rn(l,"http_path",""),onSelect:N=>s("http_path",N||void 0)}),O.jsx(eyn,{table:Rn(l,"table",""),onSelect:N=>s("table",N||void 0)}),O.jsxs("div",{children:[O.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:["SQL Query",O.jsx("span",{className:"ml-1.5 normal-case tracking-normal font-normal",style:{color:"var(--text-muted)"},children:"(optional)"})]}),O.jsx("textarea",{placeholder:`SELECT *
FROM catalog.schema.table
WHERE status = 'active'`,defaultValue:Rn(l,"query","")||"SELECT *",onChange:N=>s("query",N.target.value||void 0),rows:3,className:"mt-1 w-full px-2.5 py-1.5 text-xs font-mono rounded-lg focus:outline-none focus:ring-2 resize-y",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},onFocus:N=>{N.currentTarget.style.borderColor="rgba(59,130,246,.3)",N.currentTarget.style.boxShadow="0 0 0 2px var(--accent-soft)"},onBlur:N=>{N.currentTarget.style.borderColor="var(--border)",N.currentTarget.style.boxShadow="none"}}),O.jsx("div",{className:"mt-1 text-[10px]",style:{color:"var(--text-muted)"},children:"Combined with table above as: query FROM table"})]}),O.jsx(tyn,{table:Rn(l,"table",""),httpPath:Rn(l,"http_path",""),query:Rn(l,"query",""),onFetched:()=>u==null?void 0:u()})]})]}),O.jsxs("div",{className:"px-3 py-2 flex flex-col gap-2",style:{borderTop:"1px solid var(--border)"},children:[O.jsxs("div",{className:"flex items-center justify-between shrink-0",children:[O.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:["Polars Code",O.jsx("span",{className:"ml-1.5 normal-case tracking-normal font-normal",children:"(optional)"})]}),O.jsxs("span",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:["use ",O.jsx("code",{className:"px-0.5 rounded",style:{background:"var(--bg-hover)"},children:"df"})," for loaded data"]})]}),O.jsx(JM,{defaultValue:Rn(l,"code",""),onChange:N=>s("code",N),errorLine:g,placeholder:""})]})]})}function iyn({config:l,onUpdate:s,inputSources:u,onDeleteInput:h,errorLine:g}){const m=Rn(l,"code",""),p=u.length>0;return O.jsxs("div",{className:"flex-1 flex flex-col min-h-0 px-3 py-2 gap-2",children:[O.jsx(VM,{inputSources:u,onDeleteInput:h}),O.jsxs("div",{className:"flex items-center justify-between shrink-0",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Polars Code"}),O.jsx("span",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:p?"use input names":O.jsxs(O.Fragment,{children:["start with ",O.jsx("code",{className:"px-0.5 rounded",style:{background:"var(--bg-hover)"},children:"."})," to chain"]})})]}),O.jsx(JM,{defaultValue:m,onChange:k=>s("code",k),errorLine:g,placeholder:""})]})}function zjt({config:l,onUpdate:s,mlflow:u}){const{models:h,modelVersions:g,loadingModels:m,errorModels:p,errorVersions:k,refreshModels:S,refreshVersions:C}=u,N=Rn(l,"registered_model","");return O.jsxs("div",{className:"flex flex-col gap-2",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Model Name"}),O.jsxs("select",{className:"mt-1 w-full text-xs px-2.5 py-1.5 rounded-lg focus:outline-none focus:ring-2",style:_9,value:N,onFocus:S,onChange:_=>s({registered_model:_.target.value,version:"latest"}),children:[O.jsx("option",{value:"",children:m?"Loading...":"Select a model..."}),N&&!h.some(_=>_.name===N)&&O.jsx("option",{value:N,children:N}),h.map(_=>O.jsx("option",{value:_.name,children:_.name},_.name))]}),p&&O.jsx("span",{className:"text-[10px] mt-0.5",style:{color:"#ef4444"},children:p})]}),N&&O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Version"}),O.jsxs("select",{className:"mt-1 w-full text-xs px-2.5 py-1.5 rounded-lg focus:outline-none focus:ring-2",style:_9,value:Rn(l,"version","latest"),onFocus:()=>C(N),onChange:_=>s("version",_.target.value),children:[O.jsx("option",{value:"latest",children:"latest"}),g.map(_=>O.jsxs("option",{value:_.version,children:["v",_.version," — ",_.status,_.description?` (${_.description})`:""]},_.version))]}),k&&O.jsx("span",{className:"text-[10px] mt-0.5",style:{color:"#ef4444"},children:k})]})]})}function Fjt({config:l,onUpdate:s,mlflow:u,renderRunLabel:h,onRunSelected:g,showArtifactPath:m=!1}){const{experiments:p,runs:k,loadingExperiments:S,loadingRuns:C,errorExperiments:N,errorRuns:_,browseExpId:P,setBrowseExpId:R,setRuns:q,resetRunsGuard:F,refreshExperiments:X,refreshRuns:J}=u,te=h??(ie=>{const oe=ie.run_name||ie.run_id.slice(0,8),se=Object.entries(ie.metrics).slice(0,2).map(([ge,Ne])=>` ${ge}=${typeof Ne=="number"?Ne.toFixed(4):Ne}`).join("");return`${oe}${se}`});return O.jsxs("div",{className:"flex flex-col gap-2",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Experiment"}),O.jsxs("select",{className:"mt-1 w-full text-xs px-2.5 py-1.5 rounded-lg focus:outline-none focus:ring-2",style:_9,value:P,onFocus:X,onChange:ie=>{const oe=ie.target.value,se=p.find(ge=>ge.experiment_id===oe);R(oe),s({experiment_id:oe,experiment_name:(se==null?void 0:se.name)||oe}),q([]),F(),oe&&J(oe)},children:[O.jsx("option",{value:"",children:S?"Loading...":"Select an experiment..."}),P&&!p.some(ie=>ie.experiment_id===P)&&O.jsx("option",{value:P,children:Rn(l,"experiment_name","")||P}),p.map(ie=>O.jsx("option",{value:ie.experiment_id,children:ie.name},ie.experiment_id))]}),N&&O.jsx("span",{className:"text-[10px] mt-0.5",style:{color:"#ef4444"},children:N})]}),P&&O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Run"}),O.jsxs("select",{className:"mt-1 w-full text-xs px-2.5 py-1.5 rounded-lg focus:outline-none focus:ring-2",style:_9,value:Rn(l,"run_id",""),onFocus:()=>J(P),onChange:ie=>{const oe=ie.target.value,se=k.find(Ne=>Ne.run_id===oe),ge=se&&g?g(se):{};s({run_id:oe,run_name:(se==null?void 0:se.run_name)||"",...ge})},children:[O.jsx("option",{value:"",children:C?"Loading...":"Select a run..."}),Rn(l,"run_id","")&&!k.some(ie=>ie.run_id===l.run_id)&&O.jsx("option",{value:Rn(l,"run_id",""),children:Rn(l,"run_name","")||Rn(l,"run_id","")}),k.map(ie=>O.jsx("option",{value:ie.run_id,children:te(ie)},ie.run_id))]}),_&&O.jsx("span",{className:"text-[10px] mt-0.5",style:{color:"#ef4444"},children:_})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Run ID"}),O.jsx("input",{type:"text",className:"mt-1 w-full text-xs px-2.5 py-1.5 rounded-lg font-mono focus:outline-none focus:ring-2",style:_9,value:Rn(l,"run_id",""),onChange:ie=>s("run_id",ie.target.value),placeholder:"e.g. a1b2c3d4e5f6..."})]}),m&&O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Artifact Path"}),O.jsx("input",{type:"text",className:"mt-1 w-full text-xs px-2.5 py-1.5 rounded-lg font-mono focus:outline-none focus:ring-2",style:_9,value:Rn(l,"artifact_path",""),onChange:ie=>s("artifact_path",ie.target.value),placeholder:"e.g. model.cbm"})]})]})}function qjt(l){const s=l==null?void 0:l.runTag,u=(l==null?void 0:l.initialExpId)??"",[h,g]=ue.useState([]),[m,p]=ue.useState([]),[k,S]=ue.useState([]),[C,N]=ue.useState([]),[_,P]=ue.useState(!1),[R,q]=ue.useState(!1),[F,X]=ue.useState(!1),[J,ee]=ue.useState(!1),[te,ie]=ue.useState(""),[oe,se]=ue.useState(""),[ge,Ne]=ue.useState(""),[qe,Ke]=ue.useState(""),[Le,we]=ue.useState(u),Z=ue.useRef(!1),pe=ue.useRef(!1),Re=ue.useRef(""),he=ue.useRef(""),Ee=gt=>gt instanceof wO&&gt.detail||gt.message,Te=ue.useCallback(()=>{Z.current||(Z.current=!0,P(!0),ie(""),ddn().then(gt=>{g(Array.isArray(gt)?gt:[]),P(!1)}).catch(gt=>{g([]),P(!1),ie(Ee(gt)||"Failed to load experiments"),Z.current=!1}))},[]),ye=ue.useCallback(gt=>{gt&&Re.current!==gt&&(Re.current=gt,q(!0),se(""),gdn(gt,s).then(Ot=>{p(Array.isArray(Ot)?Ot:[]),q(!1)}).catch(Ot=>{p([]),q(!1),se(Ee(Ot)||"Failed to load runs"),Re.current=""}))},[s]),ft=ue.useCallback(()=>{pe.current||(pe.current=!0,X(!0),Ne(""),pdn().then(gt=>{S(Array.isArray(gt)?gt:[]),X(!1)}).catch(gt=>{S([]),X(!1),Ne(Ee(gt)||"Failed to load models"),pe.current=!1}))},[]),Ce=ue.useCallback(gt=>{gt&&he.current!==gt&&(he.current=gt,ee(!0),Ke(""),bdn(gt).then(Ot=>{N(Array.isArray(Ot)?Ot:[]),ee(!1)}).catch(Ot=>{N([]),ee(!1),Ke(Ee(Ot)||"Failed to load versions"),he.current=""}))},[]),We=ue.useCallback(()=>{Re.current=""},[]);return{experiments:h,runs:m,models:k,modelVersions:C,loadingExperiments:_,loadingRuns:R,loadingModels:F,loadingVersions:J,errorExperiments:te,errorRuns:oe,errorModels:ge,errorVersions:qe,browseExpId:Le,setBrowseExpId:we,setRuns:p,refreshExperiments:Te,refreshRuns:ye,refreshModels:ft,refreshVersions:Ce,resetRunsGuard:We}}function ryn({config:l,onUpdate:s,inputSources:u,onDeleteInput:h,errorLine:g,accentColor:m}){const p=Rn(l,"sourceType","registered"),k=Rn(l,"task","regression"),S=Rn(l,"output_column","prediction"),C=Rn(l,"code",""),N=qjt({initialExpId:Rn(l,"experiment_id","")}),[_,P]=ue.useState(!!C);return O.jsxs("div",{className:"flex-1 flex flex-col min-h-0 px-3 py-2 gap-3",children:[O.jsx(VM,{inputSources:u,onDeleteInput:h}),O.jsx($jt,{}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Model Source"}),O.jsx("div",{className:"mt-1",children:O.jsx(UM,{value:p,onChange:R=>s("sourceType",R),options:[{key:"registered",label:"Registered Model"},{key:"run",label:"Experiment Run"}],accentColor:m})})]}),p==="registered"&&O.jsx(zjt,{config:l,onUpdate:s,mlflow:N}),p==="run"&&O.jsx(Fjt,{config:l,onUpdate:s,mlflow:N,showArtifactPath:!0,onRunSelected:R=>({artifact_path:R.artifacts[0]||""})}),O.jsxs("div",{className:"flex gap-2",children:[O.jsxs("div",{className:"flex-1",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Task"}),O.jsxs("select",{className:"mt-1 w-full text-xs px-2.5 py-1.5 rounded-lg focus:outline-none focus:ring-2",style:_9,value:k,onChange:R=>s("task",R.target.value),children:[O.jsx("option",{value:"regression",children:"Regression"}),O.jsx("option",{value:"classification",children:"Classification"})]})]}),O.jsxs("div",{className:"flex-1",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Output Column"}),O.jsx("input",{type:"text",className:"mt-1 w-full text-xs px-2.5 py-1.5 rounded-lg focus:outline-none focus:ring-2",style:_9,value:S,onChange:R=>s("output_column",R.target.value),placeholder:"prediction"})]})]}),k==="classification"&&O.jsxs("p",{className:"text-[10px]",style:{color:"var(--text-muted)"},children:["Classification models also generate a ",O.jsxs("code",{className:"px-0.5 rounded",style:{background:"var(--bg-hover)"},children:[S,"_proba"]})," column."]}),O.jsx("div",{children:O.jsxs("button",{onClick:()=>P(!_),className:"flex items-center gap-1.5 text-[11px] font-medium transition-colors",style:{color:"var(--text-muted)"},children:[O.jsx(rg,{size:11,style:{transform:_?"rotate(0deg)":"rotate(-90deg)",transition:"transform 0.15s"}}),"Post-processing Code (optional)"]})}),_&&O.jsx(JM,{defaultValue:C,onChange:R=>s("code",R),errorLine:g,placeholder:""})]})}function syn(l){const s=l.factors;return Array.isArray(s)&&s.length>0?s:[{banding:"continuous",column:"",outputColumn:"",rules:[],default:null}]}function oyn(l){const s=l.toLowerCase();return s.startsWith("int")||s.startsWith("uint")||s.startsWith("float")||s==="f32"||s==="f64"||s==="i8"||s==="i16"||s==="i32"||s==="i64"||s==="u8"||s==="u16"||s==="u32"||s==="u64"}function cyn(l,s){const u=s[l];return u?oyn(u)?"continuous":"categorical":null}const W5t=["<","<=",">",">=","="];let lyn=0;function uyn(){return`rule_${++lyn}_${Date.now().toString(36)}`}function ayn(l){let s=!1;const u=l.map(h=>h._id?h:(s=!0,{...h,_id:uyn()}));return s?u:l}function K5t(l,s){return l._id||`fallback_${s}`}function fyn({factor:l,onUpdateFactor:s}){const u=l.rules||[],h=ue.useRef(!1),g=ayn(u);ue.useEffect(()=>{g!==u&&!h.current&&(h.current=!0,s({rules:g}))});const m=l.banding||"continuous",p=C=>s({rules:C}),k=(C,N,_)=>{const P=[...g];P[C]={...P[C],[N]:_},p(P)},S=C=>p(g.filter((N,_)=>_!==C));return O.jsx("div",{className:"rounded-lg overflow-hidden",style:{border:"1px solid var(--border)",background:"var(--bg-input)"},children:m==="continuous"?O.jsxs("table",{className:"w-full text-[11px]",children:[O.jsx("thead",{children:O.jsxs("tr",{style:{borderBottom:"1px solid var(--border)",background:"var(--bg-elevated)"},children:[O.jsx("th",{className:"text-left px-2 py-1.5 font-semibold",style:{color:"var(--text-muted)",width:52},children:"Op"}),O.jsx("th",{className:"text-left px-2 py-1.5 font-semibold",style:{color:"var(--text-muted)",width:60},children:"Value"}),O.jsx("th",{className:"text-left px-2 py-1.5 font-semibold",style:{color:"var(--text-muted)",width:52,opacity:.55},children:"Op"}),O.jsx("th",{className:"text-left px-2 py-1.5 font-semibold",style:{color:"var(--text-muted)",width:60,opacity:.55},children:"Value"}),O.jsx("th",{className:"text-left px-2 py-1.5 font-semibold",style:{color:"var(--text-muted)"},children:"Band"}),O.jsx("th",{style:{width:28}})]})}),O.jsx("tbody",{children:g.length===0?O.jsx("tr",{children:O.jsx("td",{colSpan:6,className:"px-2 py-3 text-center",style:{color:"var(--text-muted)"},children:"No rules yet"})}):g.map((C,N)=>O.jsxs("tr",{style:{borderBottom:"1px solid var(--border)"},children:[O.jsx("td",{className:"px-1 py-1",children:O.jsxs("select",{value:C.op1||"",onChange:_=>k(N,"op1",_.target.value),className:"w-full px-1 py-1 rounded text-[11px] font-mono appearance-none",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:[O.jsx("option",{value:"",children:"—"}),W5t.map(_=>O.jsx("option",{value:_,children:_},_))]})}),O.jsx("td",{className:"px-1 py-1",children:O.jsx("input",{type:"text",value:C.val1??"",onChange:_=>k(N,"val1",_.target.value),className:"w-full px-1.5 py-1 rounded text-[11px] font-mono focus:outline-none",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-primary)"},placeholder:"0"})}),O.jsx("td",{className:"px-1 py-1",children:O.jsxs("select",{value:C.op2||"",onChange:_=>k(N,"op2",_.target.value),className:"w-full px-1 py-1 rounded text-[11px] font-mono appearance-none",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:[O.jsx("option",{value:"",children:"—"}),W5t.map(_=>O.jsx("option",{value:_,children:_},_))]})}),O.jsx("td",{className:"px-1 py-1",children:O.jsx("input",{type:"text",value:C.val2??"",onChange:_=>k(N,"val2",_.target.value),className:"w-full px-1.5 py-1 rounded text-[11px] font-mono focus:outline-none",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-primary)"},placeholder:""})}),O.jsx("td",{className:"px-1 py-1",children:O.jsx("input",{type:"text",value:C.assignment??"",onChange:_=>k(N,"assignment",_.target.value),className:"w-full px-1.5 py-1 rounded text-[11px] font-mono font-semibold focus:outline-none",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"#22d3ee"},placeholder:"band"})}),O.jsx("td",{className:"px-1 py-1 text-center",children:O.jsx("button",{onClick:()=>S(N),className:"p-0.5 rounded transition-colors",style:{color:"var(--text-muted)"},onMouseEnter:_=>{_.currentTarget.style.color="#ef4444"},onMouseLeave:_=>{_.currentTarget.style.color="var(--text-muted)"},children:O.jsx(Xxt,{size:11})})})]},K5t(C,N)))})]}):O.jsxs("table",{className:"w-full text-[11px]",children:[O.jsx("thead",{children:O.jsxs("tr",{style:{borderBottom:"1px solid var(--border)",background:"var(--bg-elevated)"},children:[O.jsx("th",{className:"text-left px-2 py-1.5 font-semibold",style:{color:"var(--text-muted)"},children:"Value"}),O.jsx("th",{className:"text-left px-2 py-1.5 font-semibold",style:{color:"var(--text-muted)"},children:"Group"}),O.jsx("th",{style:{width:28}})]})}),O.jsx("tbody",{children:g.length===0?O.jsx("tr",{children:O.jsx("td",{colSpan:3,className:"px-2 py-3 text-center",style:{color:"var(--text-muted)"},children:"No rules yet"})}):g.map((C,N)=>O.jsxs("tr",{style:{borderBottom:"1px solid var(--border)"},children:[O.jsx("td",{className:"px-1 py-1",children:O.jsx("input",{type:"text",value:C.value??"",onChange:_=>k(N,"value",_.target.value),className:"w-full px-1.5 py-1 rounded text-[11px] font-mono focus:outline-none",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-primary)"},placeholder:"Semi-detached House"})}),O.jsx("td",{className:"px-1 py-1",children:O.jsx("input",{type:"text",value:C.assignment??"",onChange:_=>k(N,"assignment",_.target.value),className:"w-full px-1.5 py-1 rounded text-[11px] font-mono font-semibold focus:outline-none",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"#22d3ee"},placeholder:"House"})}),O.jsx("td",{className:"px-1 py-1 text-center",children:O.jsx("button",{onClick:()=>S(N),className:"p-0.5 rounded transition-colors",style:{color:"var(--text-muted)"},onMouseEnter:_=>{_.currentTarget.style.color="#ef4444"},onMouseLeave:_=>{_.currentTarget.style.color="var(--text-muted)"},children:O.jsx(Xxt,{size:11})})})]},K5t(C,N)))})]})})}const hyn={op1:">",val1:"",op2:"",val2:"",assignment:""},dyn={value:"",assignment:""};function gyn({config:l,onUpdate:s,inputSources:u,onDeleteInput:h,upstreamColumns:g=[],accentColor:m}){const p=syn(l),[k,S]=ue.useState(0),C=Math.min(k,p.length-1),N=p[C],_=Object.fromEntries(g.map(ee=>[ee.name,ee.dtype])),P=ee=>{s("factors",ee)},R=(ee,te)=>{const ie=p.map((oe,se)=>se===ee?{...oe,...te}:oe);P(ie)},q=(ee,te)=>{const ie={column:te},oe=cyn(te,_);oe&&oe!==p[ee].banding&&(ie.banding=oe,ie.rules=[]),R(ee,ie)},F=()=>{const ee=[...p,{banding:"continuous",column:"",outputColumn:"",rules:[],default:null}];P(ee),S(ee.length-1)},X=ee=>{if(p.length<=1)return;const te=p.filter((ie,oe)=>oe!==ee);P(te),C>=te.length&&S(te.length-1)},J=(ee,te)=>ee.outputColumn?ee.outputColumn:ee.column?ee.column:`Factor ${te+1}`;return O.jsxs("div",{className:"px-4 py-3 space-y-3 overflow-y-auto",children:[O.jsx(VM,{inputSources:u,onDeleteInput:h}),O.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-2 rounded-lg text-xs font-medium",style:{background:Fo(m,.1),border:`1px solid ${Fo(m,.3)}`,color:m},children:[O.jsx(pOt,{size:14}),O.jsxs("span",{children:["Group values into bands — ",p.length," factor",p.length!==1?"s":""]})]}),O.jsxs("div",{children:[O.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[p.map((ee,te)=>O.jsxs("button",{onClick:()=>S(te),className:"relative flex items-center gap-1 px-2.5 py-1.5 rounded-t-lg text-[11px] font-medium transition-colors",style:{background:te===C?"var(--bg-input)":"transparent",border:te===C?"1px solid var(--border)":"1px solid transparent",borderBottom:te===C?"1px solid var(--bg-input)":"1px solid var(--border)",color:te===C?m:"var(--text-muted)"},children:[O.jsx("span",{className:"font-mono truncate max-w-[100px]",children:J(ee,te)}),p.length>1&&O.jsx("span",{onClick:ie=>{ie.stopPropagation(),X(te)},className:"ml-0.5 p-0.5 rounded transition-colors cursor-pointer",style:{color:"var(--text-muted)"},onMouseEnter:ie=>{ie.currentTarget.style.color="#ef4444"},onMouseLeave:ie=>{ie.currentTarget.style.color="var(--text-muted)"},children:O.jsx(r5,{size:9})})]},te)),O.jsx("button",{onClick:F,className:"flex items-center gap-0.5 px-2 py-1.5 rounded-lg text-[11px] font-medium transition-colors",style:{color:m},onMouseEnter:ee=>{ee.currentTarget.style.background=Fo(m,.1)},onMouseLeave:ee=>{ee.currentTarget.style.background="transparent"},children:O.jsx(mO,{size:11})})]}),O.jsx("div",{style:{borderTop:"1px solid var(--border)",marginTop:-1}})]}),O.jsxs("div",{children:[O.jsxs("div",{className:"flex items-center gap-1.5",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Type"}),N.column&&_[N.column]&&O.jsxs("span",{className:"text-[10px] font-medium",style:{color:"var(--text-muted)",opacity:.7},children:["auto: ",_[N.column]]})]}),O.jsx("div",{className:"mt-1",children:O.jsx(UM,{value:N.banding,onChange:ee=>R(C,{banding:ee,rules:[]}),options:[{key:"continuous",label:"Continuous"},{key:"categorical",label:"Categorical"}],accentColor:m})})]}),O.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1",style:{color:"var(--text-muted)"},children:"Input Column"}),g.length>0?O.jsxs("select",{value:N.column,onChange:ee=>q(C,ee.target.value),className:"w-full px-2 py-1.5 text-xs font-mono rounded-lg focus:outline-none focus:ring-2",style:ea,children:[O.jsx("option",{value:"",children:"Select column..."}),g.map(ee=>O.jsxs("option",{value:ee.name,children:[ee.name," (",ee.dtype,")"]},ee.name))]},`col-${C}`):O.jsx("input",{type:"text",placeholder:"driver_age",defaultValue:N.column,onChange:ee=>R(C,{column:ee.target.value}),className:"w-full px-2 py-1.5 text-xs font-mono rounded-lg focus:outline-none focus:ring-2",style:ea},`col-${C}`)]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1",style:{color:"var(--text-muted)"},children:"Output Column"}),O.jsx("input",{type:"text",placeholder:"age_band",defaultValue:N.outputColumn,onChange:ee=>R(C,{outputColumn:ee.target.value}),className:"w-full px-2 py-1.5 text-xs font-mono rounded-lg focus:outline-none focus:ring-2",style:ea},`out-${C}`)]})]}),O.jsxs("div",{children:[O.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[O.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:["Rules (",(N.rules||[]).length,")"]}),O.jsxs("button",{onClick:()=>{const ee=N.banding==="continuous"?{...hyn}:{...dyn};R(C,{rules:[...N.rules||[],ee]})},className:"flex items-center gap-1 px-2 py-1 rounded-md text-[11px] font-medium transition-colors",style:{background:Fo(m,.1),color:m,border:`1px solid ${Fo(m,.3)}`},onMouseEnter:ee=>{ee.currentTarget.style.background=Fo(m,.2)},onMouseLeave:ee=>{ee.currentTarget.style.background=Fo(m,.1)},children:[O.jsx(mO,{size:11})," Add"]})]}),O.jsx(fyn,{factor:N,onUpdateFactor:ee=>R(C,ee)},C)]}),O.jsxs("div",{children:[O.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1",style:{color:"var(--text-muted)"},children:["Default ",O.jsx("span",{className:"ml-1.5 normal-case tracking-normal font-normal",children:"(unmatched rows)"})]}),O.jsx("input",{type:"text",placeholder:"null",defaultValue:N.default||"",onChange:ee=>R(C,{default:ee.target.value||null}),className:"w-full px-2 py-1.5 text-xs font-mono rounded-lg focus:outline-none focus:ring-2",style:ea},`def-${C}`)]}),p.some(ee=>ee.column&&ee.outputColumn&&(ee.rules||[]).length>0)&&O.jsx("div",{className:"rounded-lg px-3 py-2 space-y-1",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)"},children:p.map((ee,te)=>!ee.column||!ee.outputColumn||!(ee.rules||[]).length?null:O.jsxs("div",{className:"text-[10px] leading-relaxed",style:{color:"var(--text-muted)"},children:[O.jsx("span",{className:"font-mono font-medium",style:{color:"var(--text-secondary)"},children:ee.column})," → ",O.jsx("span",{className:"font-mono font-medium",style:{color:m},children:ee.outputColumn})," · ",ee.rules.length," rule",ee.rules.length!==1?"s":""," · ",ee.banding]},te))})]})}function pyn(l){const s=l.tables;return Array.isArray(s)&&s.length>0?s:[{name:"Table 1",factors:[],outputColumn:"",defaultValue:"1.0",entries:[]}]}function Hjt(l){if(isNaN(l))return"transparent";const s=l-1,u=Math.min(Math.abs(s)/.5,1);return s>.005?`rgba(239, 68, 68, ${(u*.22).toFixed(3)})`:s<-.005?`rgba(59, 130, 246, ${(u*.22).toFixed(3)})`:"transparent"}function Qjt(l){if(isNaN(l))return"var(--text-secondary)";const s=l-1;return s>.005?"#dc2626":s<-.005?"#2563eb":"#10b981"}function Zhe(l){const s=l.map(m=>typeof m.value=="number"?m.value:parseFloat(String(m.value??""))).filter(m=>!isNaN(m));if(s.length===0)return null;const u=Math.min(...s),h=Math.max(...s),g=s.reduce((m,p)=>m+p,0)/s.length;return{min:u,max:h,avg:g,count:s.length}}function Y5t(l,s,u,h){if(l.length===0)return[];const g=l.map(C=>s[C]||[]);if(g.some(C=>C.length===0))return u;const m=new Map;for(const C of u){const N=l.map(P=>String(C[P]??"")).join("|"),_=C.value;_!=null&&_!==""&&m.set(N,typeof _=="number"?_:parseFloat(String(_)))}const p=h!=null&&String(h).trim()?parseFloat(String(h)):1,k=[];function S(C,N){if(C===l.length){const _=l.map(P=>N[P]).join("|");k.push({...N,value:m.get(_)??p});return}for(const _ of g[C])S(C+1,{...N,[l[C]]:_})}return S(0,{}),k}function Gjt({stats:l}){return l?O.jsxs("div",{className:"flex items-center gap-3 px-2.5 py-1.5 text-[10px] font-mono rounded-b-lg",style:{background:"var(--bg-elevated)",borderTop:"1px solid var(--border)",color:"var(--text-muted)"},children:[O.jsxs("span",{children:["n=",l.count]}),O.jsxs("span",{style:{color:"#2563eb"},children:["min ",l.min.toFixed(3)]}),O.jsxs("span",{style:{color:"var(--text-secondary)"},children:["avg ",l.avg.toFixed(3)]}),O.jsxs("span",{style:{color:"#dc2626"},children:["max ",l.max.toFixed(3)]})]}):null}function byn({table:l,bandingLevels:s,onUpdateEntries:u}){const h=l.factors[0],g=ue.useMemo(()=>l.entries||[],[l.entries]),m=ue.useMemo(()=>Zhe(g),[g]);if(!h)return null;const p=s[h]||[],k=new Map;for(const N of g){const _=String(N[h]??"");_&&k.set(_,typeof N.value=="number"?N.value:parseFloat(String(N.value??"1")))}const S=m?Math.max(Math.abs(m.max),Math.abs(m.min),1):1,C=(N,_)=>{const P=_===""?0:parseFloat(_),R=g.map(q=>String(q[h])===N?{...q,value:isNaN(P)?0:P}:q);R.some(q=>String(q[h])===N)||R.push({[h]:N,value:isNaN(P)?0:P}),u(R)};return O.jsxs("div",{className:"rounded-lg overflow-hidden",style:{border:"1px solid var(--border)"},children:[O.jsxs("table",{className:"w-full text-[11px]",style:{borderCollapse:"separate",borderSpacing:0},children:[O.jsx("thead",{children:O.jsxs("tr",{style:{background:"var(--bg-elevated)"},children:[O.jsx("th",{className:"text-left px-2.5 py-2 font-bold uppercase tracking-[0.06em] text-[10px]",style:{color:"var(--text-muted)",borderBottom:"2px solid var(--border)"},children:h}),O.jsx("th",{className:"text-center px-2 py-2 font-bold uppercase tracking-[0.06em] text-[10px]",style:{color:"var(--text-muted)",borderBottom:"2px solid var(--border)",width:80},children:"Relativity"}),O.jsx("th",{className:"px-2 py-2 text-[10px]",style:{color:"var(--text-muted)",borderBottom:"2px solid var(--border)",width:"40%"}})]})}),O.jsx("tbody",{children:p.length===0?O.jsx("tr",{children:O.jsx("td",{colSpan:3,className:"px-2 py-4 text-center",style:{color:"var(--text-muted)"},children:"No banding levels found"})}):p.map((N,_)=>{const P=k.get(N)??1,R=Math.min(Math.abs(P)/S*100,100);return O.jsxs("tr",{style:{borderBottom:"1px solid var(--border)",background:_%2===0?"var(--bg-input)":"var(--bg-surface)"},children:[O.jsx("td",{className:"px-2.5 py-1.5 font-mono text-[11px] font-medium",style:{color:"var(--text-primary)",borderBottom:"1px solid var(--border)"},children:N}),O.jsx("td",{className:"px-0.5 py-0.5",style:{borderBottom:"1px solid var(--border)"},children:O.jsx("input",{type:"number",step:"0.01",defaultValue:P,onBlur:q=>C(N,q.target.value),className:"w-full px-1.5 py-1 rounded text-[11px] font-mono text-center focus:outline-none focus:ring-1 focus:ring-emerald-500/40",style:{background:Hjt(P),border:"1px solid var(--border)",color:Qjt(P),fontWeight:600}})}),O.jsx("td",{className:"px-2 py-1.5",style:{borderBottom:"1px solid var(--border)"},children:O.jsx("div",{className:"relative h-3 rounded-full overflow-hidden",style:{background:"var(--bg-elevated)"},children:O.jsx("div",{className:"absolute inset-y-0 left-0 rounded-full transition-all",style:{width:`${R}%`,background:P>=1?"rgba(239, 68, 68, 0.35)":"rgba(59, 130, 246, 0.35)"}})})})]},N)})})]}),O.jsx(Gjt,{stats:m})]})}function Z5t({table:l,bandingLevels:s,onUpdateEntries:u,factorOverrides:h}){const g=(h==null?void 0:h.factors)||l.factors.slice(0,2),m=(h==null?void 0:h.sliceKey)||{},p=g[0],k=g[1],S=ue.useMemo(()=>l.entries||[],[l.entries]),C=ue.useMemo(()=>Zhe(S),[S]);if(!p||!k)return null;const N=s[p]||[],_=s[k]||[],P=new Map;for(const q of S){if(!Object.entries(m).every(([J,ee])=>String(q[J])===ee))continue;const X=`${q[p]}|${q[k]}`;P.set(X,typeof q.value=="number"?q.value:parseFloat(String(q.value??"1")))}const R=(q,F,X)=>{const J=X===""?0:parseFloat(X),ee=isNaN(J)?0:J,te=se=>String(se[p])===q&&String(se[k])===F&&Object.entries(m).every(([ge,Ne])=>String(se[ge])===Ne);let ie=!1;const oe=S.map(se=>te(se)?(ie=!0,{...se,value:ee}):se);ie||oe.push({...m,[p]:q,[k]:F,value:ee}),u(oe)};return N.length===0||_.length===0?O.jsx("div",{className:"px-2 py-3 text-center text-[11px]",style:{color:"var(--text-muted)"},children:"No banding levels found for selected factors"}):O.jsxs("div",{className:"rounded-lg overflow-hidden",style:{border:"1px solid var(--border)"},children:[O.jsx("div",{className:"overflow-x-auto",children:O.jsxs("table",{className:"w-full text-[11px]",style:{borderCollapse:"separate",borderSpacing:0},children:[O.jsx("thead",{children:O.jsxs("tr",{style:{background:"var(--bg-elevated)"},children:[O.jsxs("th",{className:"text-left px-2.5 py-2 font-bold uppercase tracking-[0.06em] text-[10px] sticky left-0 z-10",style:{color:"var(--text-muted)",borderBottom:"2px solid var(--border)",background:"var(--bg-elevated)"},children:[O.jsx("span",{style:{color:"var(--text-secondary)"},children:p}),O.jsx("span",{style:{color:"var(--text-muted)",margin:"0 4px"},children:"↓"}),O.jsx("span",{style:{color:"var(--text-secondary)"},children:k}),O.jsx("span",{style:{color:"var(--text-muted)",margin:"0 2px"},children:"→"})]}),_.map(q=>O.jsx("th",{className:"text-center px-1 py-2 font-bold font-mono text-[10px] uppercase tracking-[0.04em]",style:{color:"var(--text-muted)",minWidth:64,borderBottom:"2px solid var(--border)"},children:q},q))]})}),O.jsx("tbody",{children:N.map((q,F)=>O.jsxs("tr",{style:{background:F%2===0?"var(--bg-input)":"var(--bg-surface)"},children:[O.jsx("td",{className:"px-2.5 py-1 font-mono text-[11px] font-medium sticky left-0 z-10",style:{color:"var(--text-primary)",whiteSpace:"nowrap",borderBottom:"1px solid var(--border)",background:F%2===0?"var(--bg-input)":"var(--bg-surface)"},children:q}),_.map(X=>{const J=P.get(`${q}|${X}`)??1;return O.jsx("td",{className:"px-0.5 py-0.5",style:{borderBottom:"1px solid var(--border)"},children:O.jsx("input",{type:"number",step:"0.01",defaultValue:J,onBlur:ee=>R(q,X,ee.target.value),className:"w-full px-1 py-1 rounded text-[11px] font-mono text-center focus:outline-none focus:ring-1 focus:ring-emerald-500/40",style:{background:Hjt(J),border:"1px solid var(--border)",color:Qjt(J),fontWeight:600,minWidth:56}})},X)})]},q))})]})}),O.jsx(Gjt,{stats:C})]})}function myn({config:l,onUpdate:s,inputSources:u,onDeleteInput:h,allNodes:g,accentColor:m}){const[p,k]=ue.useState(0),[S,C]=ue.useState(0),N=pyn(l),_=w1n(g),P=Rn(l,"operation","multiply"),R=Rn(l,"combinedColumn",""),q=Object.keys(_),F=Math.min(p,N.length-1),X=N[F]||{name:"Table 1",factors:[],outputColumn:"",defaultValue:"1.0",entries:[]},J=pe=>s("tables",pe),ee=(pe,Re)=>{const he=N.map((Ee,Te)=>Te===pe?{...Ee,...Re}:Ee);J(he)},te=(pe,Re)=>{const he=N[pe],Ee=Y5t(Re,_,he.entries,he.defaultValue);ee(pe,{factors:Re,entries:Ee})},ie=(pe,Re)=>{const he=N[pe];he.factors.length>=3||he.factors.includes(Re)||te(pe,[...he.factors,Re])},oe=(pe,Re)=>{const Ee=N[pe].factors.filter((Te,ye)=>ye!==Re);te(pe,Ee)},se=(pe,Re)=>{ee(pe,{entries:Re})},ge=()=>{J([...N,{name:`Table ${N.length+1}`,factors:[],outputColumn:"",defaultValue:"1.0",entries:[]}]),k(N.length)},Ne=pe=>{if(N.length<=1)return;const Re=N.filter((he,Ee)=>Ee!==pe);J(Re),k(Math.min(p,Re.length-1))},qe=()=>{const pe=N[F],Re=Y5t(pe.factors,_,pe.entries,pe.defaultValue);ee(F,{entries:Re})},Ke=X.factors.length,Le=Ke===3?X.factors[2]:null,we=Le?_[Le]||[]:[],Z=Math.min(S,Math.max(0,we.length-1));return O.jsxs("div",{className:"px-4 py-3 space-y-3 overflow-y-auto",children:[O.jsx(VM,{inputSources:u,onDeleteInput:h}),O.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-2 rounded-lg text-xs font-medium",style:{background:Fo(m,.1),border:`1px solid ${Fo(m,.3)}`,color:m},children:[O.jsx(khe,{size:13}),O.jsxs("span",{children:["Rating Tables · ",N.length," table",N.length!==1?"s":""]})]}),N.length>=2&&O.jsxs("div",{className:"space-y-2 p-2.5 rounded-lg",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] shrink-0",style:{color:"var(--text-muted)"},children:"Combine"}),O.jsxs("select",{value:P,onChange:pe=>s("operation",pe.target.value),className:"flex-1 px-2 py-1.5 text-xs font-mono rounded-lg focus:outline-none",style:ea,children:[O.jsx("option",{value:"multiply",children:"× Multiply (relativities)"}),O.jsx("option",{value:"add",children:"+ Add (loadings)"}),O.jsx("option",{value:"min",children:"↓ Min"}),O.jsx("option",{value:"max",children:"↑ Max"})]})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1",style:{color:"var(--text-muted)"},children:"Combined Output Column"}),O.jsx("input",{type:"text",defaultValue:R,onBlur:pe=>s("combinedColumn",pe.target.value),className:"w-full px-2 py-1.5 text-xs font-mono rounded-lg focus:outline-none focus:ring-2",style:ea,placeholder:"combined_factor"})]}),N.some(pe=>pe.outputColumn)&&(()=>{const pe=N.filter(Ee=>Ee.outputColumn).map(Ee=>Ee.outputColumn),Re=R||"?";let he="";return P==="multiply"?he=pe.join(" × "):P==="add"?he=pe.join(" + "):P==="min"?he=`min(${pe.join(", ")})`:P==="max"&&(he=`max(${pe.join(", ")})`),O.jsxs("div",{className:"text-[10px] font-mono px-2 py-1.5 rounded flex items-center gap-1.5",style:{background:"var(--bg-elevated)",color:"var(--text-secondary)",border:"1px solid var(--border)"},children:[O.jsx("span",{style:{color:m,fontWeight:600},children:Re}),O.jsx("span",{style:{color:"var(--text-muted)"},children:"="}),O.jsx("span",{children:he}),!R&&O.jsx("span",{style:{color:"var(--text-muted)",fontStyle:"italic"},children:" — name the output above"})]})})()]}),O.jsxs("div",{className:"flex items-center gap-1 overflow-x-auto pb-1",children:[N.map((pe,Re)=>{const he=Zhe(pe.entries||[]);return O.jsxs("button",{onClick:()=>{k(Re),C(0)},className:"group flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg text-[11px] font-medium whitespace-nowrap transition-colors",style:{background:Re===F?Fo(m,.12):"var(--bg-surface)",border:Re===F?`1px solid ${Fo(m,.4)}`:"1px solid var(--border)",color:Re===F?m:"var(--text-secondary)"},children:[pe.name||`Table ${Re+1}`,he&&O.jsx("span",{className:"text-[9px] font-mono px-1 py-0.5 rounded",style:{background:Re===F?Fo(m,.15):"var(--bg-elevated)",color:"var(--text-muted)"},children:he.count}),N.length>1&&O.jsx("span",{onClick:Ee=>{Ee.stopPropagation(),Ne(Re)},className:"ml-0.5 opacity-0 group-hover:opacity-100 transition-opacity cursor-pointer",style:{color:"var(--text-muted)"},children:O.jsx(r5,{size:10})})]},Re)}),O.jsx("button",{onClick:ge,className:"p-1.5 rounded-lg transition-colors",style:{color:"var(--text-muted)",border:"1px dashed var(--border)"},onMouseEnter:pe=>{pe.currentTarget.style.borderColor=m,pe.currentTarget.style.color=m},onMouseLeave:pe=>{pe.currentTarget.style.borderColor="var(--border)",pe.currentTarget.style.color="var(--text-muted)"},children:O.jsx(mO,{size:12})})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1",style:{color:"var(--text-muted)"},children:"Table Name"}),O.jsx("input",{type:"text",defaultValue:X.name,onBlur:pe=>ee(F,{name:pe.target.value}),className:"w-full px-2 py-1.5 text-xs font-mono rounded-lg focus:outline-none focus:ring-2",style:ea,placeholder:"Age Factor"},`name-${F}`)]}),O.jsxs("div",{children:[O.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1",style:{color:"var(--text-muted)"},children:["Factors (",Ke,"/3)"]}),O.jsxs("div",{className:"space-y-1.5",children:[X.factors.map((pe,Re)=>O.jsxs("div",{className:"flex items-center gap-1.5",children:[O.jsx("span",{className:"text-[10px] font-bold w-4 text-center",style:{color:"var(--text-muted)"},children:Re+1}),O.jsxs("select",{value:pe,onChange:he=>{const Ee=[...X.factors];Ee[Re]=he.target.value,te(F,Ee)},className:"flex-1 px-2 py-1.5 text-xs font-mono rounded-lg focus:outline-none",style:ea,children:[O.jsx("option",{value:"",children:"Select column..."}),q.map(he=>O.jsxs("option",{value:he,children:[he," (",(_[he]||[]).length," levels)"]},he))]},`fsel-${F}-${Re}`),O.jsx("button",{onClick:()=>oe(F,Re),className:"p-1 rounded transition-colors",style:{color:"var(--text-muted)"},onMouseEnter:he=>{he.currentTarget.style.color="#ef4444"},onMouseLeave:he=>{he.currentTarget.style.color="var(--text-muted)"},children:O.jsx(r5,{size:11})})]},Re)),Ke<3&&O.jsxs("select",{value:"",onChange:pe=>{pe.target.value&&ie(F,pe.target.value)},className:"w-full px-2 py-1.5 text-xs rounded-lg focus:outline-none",style:{...ea,color:"var(--text-muted)"},children:[O.jsx("option",{value:"",children:"+ Add factor..."}),q.filter(pe=>!X.factors.includes(pe)).map(pe=>O.jsxs("option",{value:pe,children:[pe," (",(_[pe]||[]).length," levels)"]},pe))]})]})]}),O.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1",style:{color:"var(--text-muted)"},children:"Output Column"}),O.jsx("input",{type:"text",defaultValue:X.outputColumn,onBlur:pe=>ee(F,{outputColumn:pe.target.value}),className:"w-full px-2 py-1.5 text-xs font-mono rounded-lg focus:outline-none focus:ring-2",style:ea,placeholder:"age_factor"},`out-${F}`)]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1",style:{color:"var(--text-muted)"},children:"Default"}),O.jsx("input",{type:"number",step:"0.01",defaultValue:X.defaultValue??"1.0",onBlur:pe=>ee(F,{defaultValue:pe.target.value}),className:"w-full px-2 py-1.5 text-xs font-mono rounded-lg focus:outline-none focus:ring-2",style:ea,placeholder:"1.0"},`def-${F}`)]})]}),Ke>0&&O.jsx("button",{onClick:qe,className:"w-full px-2 py-1.5 text-[11px] font-medium rounded-lg transition-colors",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-secondary)"},onMouseEnter:pe=>{pe.currentTarget.style.borderColor=m,pe.currentTarget.style.color=m},onMouseLeave:pe=>{pe.currentTarget.style.borderColor="var(--border)",pe.currentTarget.style.color="var(--text-secondary)"},children:"↻ Rebuild from banding levels"}),Ke===0&&O.jsx("div",{className:"px-2 py-4 text-center text-[11px]",style:{color:"var(--text-muted)"},children:"Select at least one factor to populate the rating table"}),Ke===1&&O.jsx(byn,{table:X,bandingLevels:_,onUpdateEntries:pe=>se(F,pe)}),Ke===2&&O.jsx(Z5t,{table:X,bandingLevels:_,onUpdateEntries:pe=>se(F,pe)}),Ke===3&&O.jsxs("div",{className:"space-y-2",children:[O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:Le}),O.jsx("select",{value:Z,onChange:pe=>C(Number(pe.target.value)),className:"flex-1 px-2 py-1.5 text-xs font-mono rounded-lg focus:outline-none",style:ea,children:we.map((pe,Re)=>O.jsx("option",{value:Re,children:pe},pe))})]}),we.length>0&&O.jsx(Z5t,{table:X,bandingLevels:_,onUpdateEntries:pe=>se(F,pe),factorOverrides:{factors:[X.factors[0],X.factors[1]],sliceKey:{[X.factors[2]]:we[Z]}}})]}),X.entries.length>0&&(()=>{const pe=Zhe(X.entries);return O.jsxs("div",{className:"flex items-center justify-between text-[10px] font-mono px-1",style:{color:"var(--text-muted)"},children:[O.jsx("span",{children:X.outputColumn?O.jsx("span",{style:{color:"var(--text-secondary)"},children:X.outputColumn}):"untitled"}),O.jsxs("span",{children:[X.entries.length," entries",pe?` · range ${pe.min.toFixed(2)}–${pe.max.toFixed(2)}`:""]})]})})()]})}function P9({children:l,color:s="var(--text-muted)",className:u="",htmlFor:h,as:g="label"}){return O.jsx(g,{htmlFor:g==="label"?h:void 0,className:`text-[11px] font-bold uppercase tracking-[0.08em] ${u}`.trim(),style:{color:s},children:l})}function wyn({config:l,onUpdate:s,nodeId:u,allNodes:h,edges:g}){var N;const m=Rn(l,"fields",[]),p=g.find(_=>_.target===u),k=p?h.find(_=>_.id===p.source):null,S=((N=k==null?void 0:k.data)==null?void 0:N._columns)||[],C=_=>{const P=m.includes(_)?m.filter(R=>R!==_):[...m,_];s("fields",P)};return O.jsxs("div",{className:"px-4 py-3 space-y-3",children:[O.jsxs("div",{children:[O.jsx(P9,{className:"block mb-2",children:"Response Fields"}),S.length===0?O.jsx("div",{className:"text-xs py-3",style:{color:"var(--text-muted)"},children:"Preview or run the upstream node to see columns"}):O.jsx(RAe,{columns:S,checkbox:{isChecked:_=>m.includes(_),onToggle:C,accentClass:"accent-rose-500"},nameColor:_=>m.includes(_)?"var(--text-primary)":"var(--text-muted)"})]}),m.length>0&&O.jsxs("div",{className:"rounded-lg px-3 py-2",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)"},children:[O.jsx(P9,{className:"mb-1.5",as:"div",children:"JSON Preview"}),O.jsx("pre",{className:"text-[11px] font-mono leading-relaxed",style:{color:"var(--text-secondary)"},children:`{
${m.map(_=>`  "${_}": ...`).join(`,
`)}
}`})]})]})}function vyn({config:l,onUpdate:s,inputSources:u,onDeleteInput:h,errorLine:g,accentColor:m}){const p=Rn(l,"fileType","pickle"),k=Rn(l,"modelClass","classifier"),S=Rn(l,"code","");return O.jsxs("div",{className:"flex-1 flex flex-col min-h-0 px-3 py-2 gap-2",children:[O.jsx(VM,{inputSources:u,onDeleteInput:h}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"File Type"}),O.jsx("div",{className:"mt-1",children:O.jsx(UM,{value:p,onChange:C=>s("fileType",C),options:[{key:"pickle",label:"PICKLE"},{key:"json",label:"JSON"},{key:"joblib",label:"JOBLIB"},{key:"catboost",label:"CATBOOST"}],accentColor:m})})]}),p==="catboost"&&O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Model Type"}),O.jsx("div",{className:"mt-1",children:O.jsx(UM,{value:k,onChange:C=>s("modelClass",C),options:[{key:"classifier",label:"Classifier"},{key:"regressor",label:"Regressor"}],accentColor:m})})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] mb-1.5 block",style:{color:"var(--text-muted)"},children:"File Path"}),O.jsx(jNe,{currentPath:Rn(l,"path","")||void 0,onSelect:C=>s("path",C),extensions:".pkl,.pickle,.json,.joblib,.cbm,.onnx,.pmml"})]}),O.jsxs("div",{className:"flex items-center justify-between shrink-0",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Code"}),O.jsxs("span",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:[O.jsx("code",{className:"px-0.5 rounded",style:{background:"var(--bg-hover)"},children:"obj"})," = loaded file, assign to ",O.jsx("code",{className:"px-0.5 rounded",style:{background:"var(--bg-hover)"},children:"df"})]})]}),O.jsx(JM,{defaultValue:S,onChange:C=>s("code",C),errorLine:g,placeholder:""})]})}function yyn(l){const[s,u]=ue.useState(null),[h,g]=ue.useState(!!l),[m,p]=ue.useState(null),k=ue.useCallback(S=>{g(!0),p(null),Qhn(S).then(C=>{u(C),g(!1)}).catch(C=>{u(null),p(C instanceof Error?C.message:String(C)),g(!1)})},[]);return ue.useEffect(()=>{l&&k(l)},[l,k]),{schema:s,setSchema:u,loading:h,error:m,fetchForPath:k}}function xyn({dataPath:l}){return O.jsx(Bjt,{resourceKey:l,getStatus:s=>fdn(s),startFetch:s=>ldn({path:s}).then(u=>({cached:!0,...u})),getProgress:s=>adn(s),deleteCache:s=>hdn(s),cancelFetch:s=>udn(s),timestampField:"cached_at",labels:{fetchLabel:"Cache as Parquet",refreshLabel:"Refresh Cache",notCachedHint:"Not cached yet — click to flatten and cache as Parquet",pendingLabel:"Processing..."}})}function kyn({config:l,onUpdate:s,accentColor:u}){const h=Rn(l,"path",void 0),{schema:g,loading:m,fetchForPath:p}=yyn(h),k=h&&(h.endsWith(".json")||h.endsWith(".jsonl"));return O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"px-4 py-3 space-y-3",children:[O.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-2 rounded-lg text-xs font-medium",style:{background:Fo(u,.1),border:`1px solid ${Fo(u,.3)}`,color:u},children:[O.jsx(DAe,{size:14}),O.jsx("span",{children:"This node receives live API requests at deploy time"})]}),O.jsxs("div",{children:[O.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] mb-1.5 block",style:{color:"var(--text-muted)"},children:["Preview Data",O.jsx("span",{className:"ml-1.5 normal-case tracking-normal font-normal",children:".json or .jsonl"})]}),O.jsx(jNe,{currentPath:h,onSelect:S=>{s("path",S),p(S)},extensions:".json,.jsonl"})]}),k&&O.jsx(xyn,{dataPath:h})]}),m&&O.jsx("div",{className:"px-4 py-3",style:{borderTop:"1px solid var(--border)"},children:O.jsx("span",{className:"text-xs",style:{color:"var(--text-muted)"},children:"Loading schema..."})}),O.jsx(Jvn,{schema:g})]})}function Oyn({config:l,onUpdate:s,inputSources:u,accentColor:h}){const g=Sc(S=>S.sources),m=Sc(S=>S.activeSource),p=Rn(l,"input_scenario_map",{}),k=(S,C)=>{s("input_scenario_map",{...p,[S]:C})};return O.jsxs("div",{className:"px-4 py-3 space-y-3",children:[O.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-2 rounded-lg text-xs font-medium",style:{background:Fo(h,.1),border:`1px solid ${Fo(h,.3)}`,color:h},children:[O.jsx(bOt,{size:14}),O.jsx("span",{children:"Routes inputs based on the active source"})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] mb-1 block",style:{color:"var(--text-muted)"},children:"Active Source"}),O.jsx("div",{className:"px-2.5 py-1.5 text-xs rounded-lg font-mono",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:m==="live"?"● live":m}),O.jsx("div",{className:"mt-1 text-[10px]",style:{color:"var(--text-muted)"},children:"Change the active source in the toolbar dropdown"})]}),O.jsxs("div",{children:[O.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] mb-1.5 block",style:{color:"var(--text-muted)"},children:["Input → Source Mapping (",u.length,")"]}),O.jsx("div",{className:"space-y-1.5",children:u.map(S=>{const C=p[S.varName]||"",N=C===m;return O.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded-md text-xs",style:{background:N?Fo(h,.1):"var(--bg-surface)",border:N?`1px solid ${Fo(h,.3)}`:"1px solid var(--border)"},children:[O.jsx("span",{className:"w-1.5 h-1.5 rounded-full shrink-0",style:{background:N?h:"var(--text-muted)"}}),O.jsx("span",{className:"font-mono truncate min-w-0 flex-1",style:{color:"var(--text-primary)"},children:S.sourceLabel}),O.jsxs("select",{value:C,onChange:_=>k(S.varName,_.target.value),className:"px-1.5 py-0.5 text-[11px] font-mono rounded focus:outline-none",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:[O.jsx("option",{value:"",children:"—"}),g.map(_=>O.jsx("option",{value:_,children:_},_))]}),N&&O.jsx("span",{className:"text-[10px] font-medium shrink-0",style:{color:h},children:"active"})]},S.varName)})})]})]})}function Syn({config:l,onUpdate:s,nodeId:u,allNodes:h,edges:g,submodels:m,preamble:p,accentColor:k}){const S=Rn(l,"format","parquet"),[C,N]=ue.useState(!1),[_,P]=ue.useState(null),R=!!l.path,q=()=>{if(!R||C)return;N(!0),P(null);const F=xX(h,g,m,p);zhn(F,u,Sc.getState().activeSource).then(X=>{P({status:X.status||"ok",message:X.message||"Written successfully"}),N(!1)}).catch(X=>{P({status:"error",message:X.message}),N(!1)})};return O.jsxs("div",{className:"px-4 py-3 space-y-3",children:[O.jsxs("div",{children:[O.jsx(P9,{children:"Format"}),O.jsx("div",{className:"mt-1",children:O.jsx(UM,{value:S,onChange:F=>s("format",F),options:[{key:"parquet",label:"PARQUET"},{key:"csv",label:"CSV"}],accentColor:k})})]}),O.jsxs("div",{children:[O.jsx(P9,{className:"mb-1.5 block",children:"Output Path"}),O.jsx("input",{type:"text",placeholder:"",defaultValue:Rn(l,"path",""),onChange:F=>s("path",F.target.value),className:"w-full px-2.5 py-1.5 text-xs font-mono rounded-lg focus:outline-none focus:ring-2",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},onFocus:F=>{F.currentTarget.style.borderColor=Fo(k,.3),F.currentTarget.style.boxShadow=`0 0 0 2px ${Fo(k,.1)}`},onBlur:F=>{F.currentTarget.style.borderColor="var(--border)",F.currentTarget.style.boxShadow="none"}})]}),O.jsxs("button",{onClick:q,disabled:!R||C,className:"w-full flex items-center justify-center gap-2 px-3 py-2 text-[12px] font-semibold rounded-lg transition-colors disabled:opacity-40",style:{background:k,color:"#000"},onMouseEnter:F=>{R&&!C&&(F.currentTarget.style.opacity="0.85")},onMouseLeave:F=>{F.currentTarget.style.opacity="1"},children:[O.jsx(xhe,{size:14}),C?"Writing...":"Write"]}),_&&O.jsx("div",{className:"px-2.5 py-2 rounded-lg text-xs",style:{background:_.status==="ok"?"rgba(34,197,94,.1)":"rgba(239,68,68,.1)",border:_.status==="ok"?"1px solid rgba(34,197,94,.2)":"1px solid rgba(239,68,68,.2)",color:_.status==="ok"?"#4ade80":"#f87171"},children:_.message})]})}function jyn({config:l,onUpdate:s,inputSources:u,onDeleteInput:h,upstreamColumns:g,errorLine:m}){const p=Rn(l,"quote_id",""),k=Rn(l,"column_name",""),S=Rn(l,"min_value",""),C=Rn(l,"max_value",""),N=Rn(l,"steps",""),_=Rn(l,"step_column","");return O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"px-4 py-3 space-y-4",children:[O.jsx(VM,{inputSources:u,onDeleteInput:h}),O.jsxs("div",{children:[O.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1.5",style:{color:"var(--text-muted)"},children:["Row Key",O.jsx("span",{className:"ml-1.5 normal-case tracking-normal font-normal",children:"unique column per input row"})]}),g.length>0?O.jsxs("select",{className:"w-full px-2.5 py-1.5 rounded-md text-[12px] font-mono appearance-none cursor-pointer",style:ea,value:p,onChange:P=>s("quote_id",P.target.value),children:[O.jsx("option",{value:"",children:"-- select column --"}),g.map(P=>O.jsx("option",{value:P.name,children:P.name},P.name))]}):O.jsx("input",{type:"text",className:"w-full px-2.5 py-1.5 rounded-md text-[12px] font-mono",style:ea,value:p,onChange:P=>s("quote_id",P.target.value)})]}),O.jsxs("div",{children:[O.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1.5",style:{color:"var(--text-muted)"},children:["Index Column",O.jsx("span",{className:"ml-1.5 normal-case tracking-normal font-normal",children:"0-based step index column"})]}),O.jsx("input",{type:"text",className:"w-full px-2.5 py-1.5 rounded-md text-[12px] font-mono",style:ea,value:_,onChange:P=>s("step_column",P.target.value)})]}),!k&&O.jsxs("div",{children:[O.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1.5",style:{color:"var(--text-muted)"},children:["Steps",O.jsx("span",{className:"ml-1.5 normal-case tracking-normal font-normal",children:"rows generated per input row"})]}),O.jsx("input",{type:"number",min:1,className:"w-full px-2.5 py-1.5 rounded-md text-[12px] font-mono",style:ea,value:N,onChange:P=>s("steps",Math.max(1,parseInt(P.target.value)||1))})]}),O.jsxs("div",{children:[O.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1.5",style:{color:"var(--text-muted)"},children:["Value Column",O.jsx("span",{className:"ml-1.5 normal-case tracking-normal font-normal",children:"(optional)"})]}),O.jsx("input",{type:"text",className:"w-full px-2.5 py-1.5 rounded-md text-[12px] font-mono",style:ea,value:k,onChange:P=>s("column_name",P.target.value)})]}),k&&O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1.5",style:{color:"var(--text-muted)"},children:"Value Range"}),O.jsxs("div",{className:"grid grid-cols-4 gap-2",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[10px] block mb-0.5",style:{color:"var(--text-muted)"},children:"Min"}),O.jsx("input",{type:"number",step:"any",className:"w-full px-2 py-1.5 rounded-md text-[12px] font-mono",style:ea,value:S,onChange:P=>s("min_value",parseFloat(P.target.value)||0)})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[10px] block mb-0.5",style:{color:"var(--text-muted)"},children:"Max"}),O.jsx("input",{type:"number",step:"any",className:"w-full px-2 py-1.5 rounded-md text-[12px] font-mono",style:ea,value:C,onChange:P=>s("max_value",parseFloat(P.target.value)||0)})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[10px] block mb-0.5",style:{color:"var(--text-muted)"},children:"Steps"}),O.jsx("input",{type:"number",min:1,className:"w-full px-2 py-1.5 rounded-md text-[12px] font-mono",style:ea,value:N,onChange:P=>s("steps",Math.max(1,parseInt(P.target.value)||1))})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[10px] block mb-0.5",style:{color:"var(--text-muted)"},children:"Step Size"}),O.jsx("div",{className:"w-full px-2 py-1.5 rounded-md text-[12px] font-mono",style:{...ea,opacity:.7},"data-testid":"step-size",children:N&&Number(N)>1&&S!==""&&C!==""?+((Number(C)-Number(S))/(Number(N)-1)).toFixed(4):"—"})]})]})]})]}),O.jsxs("div",{className:"px-3 py-2 flex flex-col gap-2",style:{borderTop:"1px solid var(--border)"},children:[O.jsxs("div",{className:"flex items-center justify-between shrink-0",children:[O.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:["Polars Code",O.jsx("span",{className:"ml-1.5 normal-case tracking-normal font-normal",children:"(optional)"})]}),O.jsxs("span",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:["use ",O.jsx("code",{className:"px-0.5 rounded",style:{background:"var(--bg-hover)"},children:"df"})," for expanded data"]})]}),O.jsx(JM,{defaultValue:Rn(l,"code",""),onChange:P=>s("code",P),errorLine:m,placeholder:""})]})]})}function Tyn({config:l,onUpdate:s,inputSources:u,onDeleteInput:h,accentColor:g}){const m=Rn(l,"sourceType","file"),p=Rn(l,"artifact_path",""),k=Rn(l,"version_column","__optimiser_version__"),[S,C]=ue.useState(null),[N,_]=ue.useState(""),P=qjt({runTag:"optimiser",initialExpId:Rn(l,"experiment_id","")});return ue.useEffect(()=>{if(m!=="file"||!p){m==="file"&&(C(null),_(""));return}fetch("/api/pipeline/read-json",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:p})}).then(async R=>{if(!R.ok){_(`Could not read artifact: ${R.statusText}`),C(null);return}const q=await R.json();C(q),_("")}).catch(R=>{console.warn("Artifact load failed:",R),_("Could not load artifact file"),C(null)})},[p,m]),O.jsxs("div",{className:"flex-1 flex flex-col min-h-0 px-3 py-2 gap-3",children:[O.jsx(VM,{inputSources:u,onDeleteInput:h}),m!=="file"&&O.jsx($jt,{}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Artifact Source"}),O.jsx("div",{className:"mt-1",children:O.jsx(UM,{value:m,onChange:R=>s("sourceType",R),options:[{key:"file",label:"File Path"},{key:"registered",label:"Registered"},{key:"run",label:"Experiment Run"}],accentColor:g})})]}),m==="file"&&O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1",style:{color:"var(--text-muted)"},children:"Artifact Path"}),O.jsx("input",{type:"text",className:"w-full px-2.5 py-1.5 rounded-lg text-[12px] font-mono focus:outline-none focus:ring-2",style:ea,value:p,onChange:R=>s("artifact_path",R.target.value),placeholder:"artifacts/optimiser_v1.json"}),O.jsx("p",{className:"text-[10px] mt-1",style:{color:"var(--text-muted)"},children:"Path to saved optimiser result (JSON from the Optimiser Save action)"})]}),m==="registered"&&O.jsx(zjt,{config:l,onUpdate:s,mlflow:P}),m==="run"&&O.jsx(Fjt,{config:l,onUpdate:s,mlflow:P,renderRunLabel:R=>{const q=R.metrics.converged!==void 0?R.metrics.cd_iterations!==void 0?"ratebook":"online":"";return`${R.run_name||R.run_id.slice(0,8)}${q?` [${q}]`:""}${R.metrics.total_objective!==void 0?` obj=${R.metrics.total_objective.toFixed(2)}`:""}`}}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1",style:{color:"var(--text-muted)"},children:"Version Column"}),O.jsx("input",{type:"text",className:"w-full px-2.5 py-1.5 rounded-lg text-[12px] font-mono focus:outline-none focus:ring-2",style:ea,value:k,onChange:R=>s("version_column",R.target.value),placeholder:"__optimiser_version__"}),O.jsx("p",{className:"text-[10px] mt-1",style:{color:"var(--text-muted)"},children:"Column added to output for monitoring / version tracking"})]}),m==="file"&&N&&O.jsx("div",{className:"rounded-lg px-3 py-2",style:{background:"var(--bg-elevated)",border:`1px solid ${g}`},children:O.jsx("div",{className:"text-[11px]",style:{color:g},children:N})}),m==="file"&&S&&O.jsx(Eyn,{meta:S,accentColor:g})]})}function Eyn({meta:l,accentColor:s}){return O.jsxs("div",{className:"rounded-lg px-3 py-2.5 space-y-2",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)"},children:[O.jsx("div",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Loaded Artifact"}),O.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1 text-[11px] font-mono",children:[O.jsx("span",{style:{color:"var(--text-muted)"},children:"Mode"}),O.jsx("span",{style:{color:"var(--text-primary)",fontWeight:600},children:l.mode}),O.jsx("span",{style:{color:"var(--text-muted)"},children:"Version"}),O.jsx("span",{style:{color:"var(--text-primary)"},children:l.version||"—"}),O.jsx("span",{style:{color:"var(--text-muted)"},children:"Created"}),O.jsx("span",{style:{color:"var(--text-primary)"},children:l.created_at?new Date(l.created_at).toLocaleDateString():"—"}),O.jsx("span",{style:{color:"var(--text-muted)"},children:"Objective"}),O.jsx("span",{style:{color:"var(--text-primary)"},children:l.objective||"—"})]}),l.mode==="online"&&l.lambdas&&Object.keys(l.lambdas).length>0&&O.jsxs("div",{children:[O.jsx("div",{className:"text-[10px] font-bold uppercase tracking-[0.08em] mt-1 mb-0.5",style:{color:"var(--text-muted)"},children:"Lambdas"}),Object.entries(l.lambdas).map(([u,h])=>O.jsxs("div",{className:"flex justify-between text-[11px] font-mono px-1",children:[O.jsx("span",{style:{color:"var(--text-secondary)"},children:u}),O.jsx("span",{style:{color:s,fontWeight:600},children:typeof h=="number"?h.toFixed(4):String(h)})]},u))]}),l.mode==="ratebook"&&l.factor_tables&&Object.keys(l.factor_tables).length>0&&O.jsxs("div",{children:[O.jsx("div",{className:"text-[10px] font-bold uppercase tracking-[0.08em] mt-1 mb-0.5",style:{color:"var(--text-muted)"},children:"Factor Tables"}),Object.entries(l.factor_tables).map(([u,h])=>O.jsxs("div",{className:"flex justify-between text-[11px] font-mono px-1",children:[O.jsx("span",{style:{color:"var(--text-secondary)"},children:u}),O.jsxs("span",{style:{color:"var(--text-muted)"},children:[Array.isArray(h)?h.length:0," levels"]})]},u))]})]})}function Cyn({config:l,onUpdate:s}){const u=Rn(l,"values",[]),h=(p,k,S)=>{const C=u.map((N,_)=>_===p?{...N,[k]:S}:N);s("values",C)},g=()=>{s("values",[...u,{name:`constant_${u.length+1}`,value:"0"}])},m=p=>{s("values",u.filter((k,S)=>S!==p))};return O.jsxs("div",{className:"px-4 py-3 space-y-3",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Values"}),O.jsx("div",{className:"space-y-1.5",children:u.map((p,k)=>O.jsxs("div",{className:"flex items-center gap-1.5",children:[O.jsx("input",{type:"text",value:p.name,onChange:S=>h(k,"name",S.target.value),placeholder:"name",className:"flex-1 min-w-0 px-2 py-1.5 text-xs font-mono rounded-lg",style:{background:"var(--bg-input)",color:"var(--text-primary)",border:"1px solid var(--border)"}}),O.jsx("input",{type:"text",value:p.value,onChange:S=>h(k,"value",S.target.value),placeholder:"value",className:"w-24 px-2 py-1.5 text-xs font-mono rounded-lg text-right",style:{background:"var(--bg-input)",color:"var(--text-primary)",border:"1px solid var(--border)"}}),O.jsx("button",{onClick:()=>m(k),className:"p-1 rounded transition-colors shrink-0",style:{color:"var(--text-muted)"},onMouseEnter:S=>S.currentTarget.style.color="#ef4444",onMouseLeave:S=>S.currentTarget.style.color="var(--text-muted)",title:"Remove",children:O.jsx(R9,{size:12})})]},k))}),O.jsxs("button",{onClick:g,className:"flex items-center gap-1.5 px-2.5 py-1.5 text-xs font-medium rounded-lg transition-colors w-full justify-center",style:{background:"var(--chrome-hover)",color:"var(--text-secondary)",border:"1px solid var(--border)"},onMouseEnter:p=>p.currentTarget.style.background="var(--chrome-active)",onMouseLeave:p=>p.currentTarget.style.background="var(--chrome-hover)",children:[O.jsx(mO,{size:12}),"Add value"]})]})}function Myn({config:l,accentColor:s}){const u=Rn(l,"file",""),h=Rn(l,"childNodeIds",[]),g=Rn(l,"inputPorts",[]),m=Rn(l,"outputPorts",[]);return O.jsxs("div",{className:"px-4 py-3 space-y-3",children:[O.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-2 rounded-lg",style:{background:Fo(s,.08),border:`1px solid ${Fo(s,.2)}`},children:[O.jsx(VX,{size:14,style:{color:s}}),O.jsx("span",{className:"text-xs font-medium",style:{color:s},children:"Submodel"}),O.jsxs("span",{className:"ml-auto text-[11px] font-mono",style:{color:"var(--text-muted)"},children:[h.length," nodes"]})]}),u&&O.jsxs("div",{children:[O.jsx(P9,{children:"File"}),O.jsx("div",{className:"mt-1 text-xs font-mono px-2.5 py-1.5 rounded-lg",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-secondary)"},children:u})]}),g.length>0&&O.jsxs("div",{children:[O.jsx(P9,{children:"Inputs"}),O.jsx("div",{className:"mt-1 flex flex-wrap gap-1.5",children:g.map(p=>O.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-[11px] font-mono",style:{background:"var(--accent-soft)",color:"var(--accent)"},children:p},p))})]}),m.length>0&&O.jsxs("div",{children:[O.jsx(P9,{children:"Outputs"}),O.jsx("div",{className:"mt-1 flex flex-wrap gap-1.5",children:m.map(p=>O.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-[11px] font-mono",style:{background:Fo(s,.1),color:s},children:p},p))})]}),O.jsx("div",{className:"text-[11px] pt-1",style:{color:"var(--text-muted)"},children:"Double-click to view internal nodes"})]})}function Ayn({config:l,onUpdate:s,availableColumns:u,columns:h}){const[g,m]=ue.useState(""),p=Rn(l,"selected_columns",[]),k=u.length>0?u:h,S=ue.useMemo(()=>{if(!g)return k;const F=g.toLowerCase();return k.filter(X=>X.name.toLowerCase().includes(F))},[k,g]),C=p.length===0,N=F=>C||p.includes(F),_=F=>{if(C){const X=k.map(J=>J.name).filter(J=>J!==F);s("selected_columns",X)}else if(p.includes(F)){const X=p.filter(J=>J!==F);s("selected_columns",X.length>0?X:[])}else{const X=[...p,F];X.length>=k.length?s("selected_columns",[]):s("selected_columns",X)}},P=()=>s("selected_columns",[]),R=()=>{k.length>0&&s("selected_columns",[k[0].name])},q=C?k.length:p.length;return k.length===0?O.jsx("div",{className:"px-4 py-6 text-center",children:O.jsx("p",{className:"text-xs",style:{color:"var(--text-muted)"},children:"Preview or run this node to see its output columns"})}):O.jsxs("div",{className:"px-4 py-3 flex flex-col gap-2",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx(P9,{as:"span",children:"Output Columns"}),O.jsxs("span",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:[q," / ",k.length]})]}),O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsxs("div",{className:"flex-1 relative",children:[O.jsx(XX,{size:12,className:"absolute left-2 top-1/2 -translate-y-1/2",style:{color:"var(--text-muted)"}}),O.jsx("input",{type:"text",value:g,onChange:F=>m(F.target.value),placeholder:"Filter columns...",className:"w-full pl-7 pr-2 py-1 text-xs rounded-md border bg-transparent focus:outline-none focus:ring-1",style:{color:"var(--text-primary)",borderColor:"var(--border)",background:"var(--bg-input)"}})]}),O.jsx("button",{onClick:P,className:"text-[10px] font-medium px-1.5 py-0.5 rounded",style:{color:C?"var(--text-muted)":"var(--accent)"},disabled:C,children:"All"}),O.jsx("button",{onClick:R,className:"text-[10px] font-medium px-1.5 py-0.5 rounded",style:{color:"var(--accent)"},children:"None"})]}),O.jsx(RAe,{columns:S,className:"max-h-[400px] overflow-y-auto",checkbox:{isChecked:F=>N(F),onToggle:_},interactiveRows:!0,nameColor:F=>N(F)?"var(--text-primary)":"var(--text-muted)"}),!C&&O.jsxs("p",{className:"text-[10px] leading-relaxed",style:{color:"var(--text-muted)"},children:["Deselected columns will be dropped via ",O.jsx("code",{className:"font-mono",children:".select()"})," on this node's output."]})]})}const Zc=gde()(l=>({paletteOpen:!0,setPaletteOpen:s=>l({paletteOpen:s}),utilityOpen:!1,setUtilityOpen:s=>l({utilityOpen:s,importsOpen:!1,gitOpen:!1}),importsOpen:!1,setImportsOpen:s=>l({importsOpen:s,utilityOpen:!1,gitOpen:!1}),gitOpen:!1,setGitOpen:s=>l({gitOpen:s,utilityOpen:!1,importsOpen:!1}),shortcutsOpen:!1,setShortcutsOpen:s=>{l(typeof s=="function"?u=>({shortcutsOpen:s(u.shortcutsOpen)}):{shortcutsOpen:s})},submodelDialog:null,setSubmodelDialog:s=>l({submodelDialog:s}),renameDialog:null,setRenameDialog:s=>l({renameDialog:s}),syncBanner:null,setSyncBanner:s=>l({syncBanner:s}),dirty:!1,setDirty:s=>l({dirty:s}),nodePanelWidth:0,setNodePanelWidth:s=>l({nodePanelWidth:s}),hoveredNodeId:null,setHoveredNodeId:s=>l({hoveredNodeId:s}),nodeSearchOpen:!1,setNodeSearchOpen:s=>{l(typeof s=="function"?u=>({nodeSearchOpen:s(u.nodeSearchOpen)}):{nodeSearchOpen:s})}})),TNe=320,Nyn=180,_yn=40;function Ujt(){const s=Zc.getState().paletteOpen?Nyn:_yn;return window.innerWidth-s}function Dyn(){return Math.max(TNe,Math.floor(Ujt()/2))}function Lyn(){return Math.max(TNe,Math.floor(Ujt()*.75))}function cW({children:l,style:s}){const u=Zc(_=>_.nodePanelWidth),h=Zc(_=>_.setNodePanelWidth),g=u>0?u:Dyn(),m=ue.useRef(!1),p=ue.useRef(0),k=ue.useRef(g),S=ue.useRef(g),C=ue.useRef(null);ue.useEffect(()=>{const _=R=>{if(!m.current)return;const q=Lyn(),F=p.current-R.clientX,X=Math.min(q,Math.max(TNe,k.current+F));S.current=X,C.current&&(C.current.style.width=`${X}px`)},P=()=>{m.current&&(m.current=!1,document.body.style.cursor="",document.body.style.userSelect="",h(S.current))};return window.addEventListener("mousemove",_),window.addEventListener("mouseup",P),()=>{window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",P)}},[h]);const N=ue.useCallback(_=>{m.current=!0,p.current=_.clientX,k.current=g,S.current=g,document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[g]);return O.jsxs("div",{ref:C,className:"h-full shrink-0 flex flex-row animate-slide-in",style:{width:g,background:"var(--bg-panel)",...s},children:[O.jsx("div",{onMouseDown:N,className:"shrink-0 h-full w-1 cursor-col-resize transition-colors",style:{background:"var(--chrome-border)"},onMouseEnter:_=>{_.currentTarget.style.background="var(--accent)"},onMouseLeave:_=>{m.current||(_.currentTarget.style.background="var(--chrome-border)")}}),O.jsx("div",{className:"flex-1 min-w-0 h-full flex flex-col overflow-hidden",children:l})]})}const Pyn=new Set([pi.OUTPUT,pi.SUBMODEL,pi.MODELLING]);function Iyn({node:l,config:s,edges:u,allNodes:h,nodeMap:g,handleConfigUpdate:m}){return O.jsxs("div",{className:"px-4 py-3 flex flex-col gap-3",children:[O.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg",style:{background:"var(--accent-soft)",border:"1px solid rgba(96,165,250,.15)"},children:[O.jsx(_Ae,{size:13,style:{color:"var(--accent)"},className:"shrink-0"}),O.jsxs("div",{className:"min-w-0",children:[O.jsx("div",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--accent)"},children:"Instance of"}),O.jsx("div",{className:"text-[13px] font-semibold truncate",style:{color:"var(--text-primary)"},children:(()=>{const p=h.find(k=>k.id===s.instanceOf);return p?p.data.label:String(s.instanceOf)})()})]})]}),O.jsx("p",{className:"text-[11px] leading-relaxed",style:{color:"var(--text-muted)"},children:"This node uses the same logic as the original. To edit the code or config, select the original node. Changes will automatically apply to all instances."}),(()=>{const p=s.instanceOf,k=u.filter(J=>J.target===p).map(J=>{const ee=g[J.source];return ee?hMe(ee.data.label):J.source}),S=u.filter(J=>J.target===l.id).map(J=>{const ee=g[J.source];return{varName:ee?hMe(ee.data.label):J.source,label:ee?ee.data.label:J.source}});if(k.length===0&&S.length===0)return null;const C=s.inputMapping||{},N={},_=new Set;for(const J of k){const ee=S.find(te=>te.varName===J&&!_.has(te.varName));ee&&(N[J]=ee.varName,_.add(ee.varName))}for(const J of k){if(N[J])continue;const ee=S.find(te=>!_.has(te.varName)&&te.varName.includes(J));ee&&(N[J]=ee.varName,_.add(ee.varName))}const P=S.filter(J=>!_.has(J.varName));k.filter(J=>!N[J]).forEach((J,ee)=>{ee<P.length&&(N[J]=P[ee].varName)});const q={},F=new Set(S.map(J=>J.varName));for(const J of k)C[J]&&F.has(C[J])?q[J]=C[J]:q[J]=N[J]||"";const X=(J,ee)=>{const te={...q,[J]:ee};m("inputMapping",te)};return O.jsxs("div",{className:"flex flex-col gap-2",children:[O.jsx("div",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Input Mapping"}),O.jsx("p",{className:"text-[10px] leading-relaxed",style:{color:"var(--text-muted)"},children:"Map each original input to a connected upstream node."}),O.jsx("div",{className:"flex flex-col gap-1.5",children:k.map(J=>O.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded-md",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[O.jsx("span",{className:"text-[11px] font-mono shrink-0 min-w-[90px] truncate",style:{color:"var(--text-secondary)"},title:J,children:J}),O.jsx("span",{className:"text-[10px] shrink-0",style:{color:"var(--text-muted)"},children:"→"}),O.jsxs("select",{className:"flex-1 min-w-0 text-[11px] font-mono px-1.5 py-1 rounded border bg-transparent appearance-none cursor-pointer truncate",style:{color:"var(--text-primary)",borderColor:"var(--border)",background:"var(--bg-panel)"},value:q[J]||"",onChange:ee=>X(J,ee.target.value),children:[O.jsx("option",{value:"",children:"— unmapped —"}),S.map(ee=>O.jsx("option",{value:ee.varName,children:ee.label},ee.varName))]})]},J))})]})})(),(()=>{const p=l.data._schemaWarnings||[];return p.length===0?null:O.jsxs("div",{className:"flex flex-col gap-1.5 px-3 py-2 rounded-lg",style:{background:"rgba(245,158,11,.08)",border:"1px solid rgba(245,158,11,.2)"},children:[O.jsxs("div",{className:"flex items-center gap-1.5",children:[O.jsx(Ty,{size:11,style:{color:"#f59e0b"},className:"shrink-0"}),O.jsxs("span",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"#f59e0b"},children:["Missing columns (",p.length,")"]})]}),O.jsx("p",{className:"text-[10px] leading-relaxed",style:{color:"var(--text-muted)"},children:"The original node receives columns that are not available at this instance's position:"}),O.jsx("div",{className:"flex flex-wrap gap-1 mt-0.5",children:p.map(k=>O.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] font-mono",style:{background:"rgba(245,158,11,.12)",color:"#fbbf24"},children:k.column},k.column))})]})})()]})}function Bfe(l,s,u){const h=[],g=new Set;return s.filter(m=>m.target===l).forEach(m=>{var S;const p=u[m.source],k=(S=p==null?void 0:p.data)==null?void 0:S._columns;k&&k.forEach(C=>{g.has(C.name)||(g.add(C.name),h.push(C))})}),h}function Ryn({node:l,edges:s,allNodes:u,submodels:h,preamble:g,onClose:m,onUpdateNode:p,onDeleteEdge:k,onRefreshPreview:S,dimmed:C,errorLine:N}){var Le,we,Z;const _=ue.useMemo(()=>(l==null?void 0:l.data.config)||{},[l==null?void 0:l.data.config]),[P,R]=ue.useState("config"),q=ue.useRef(_),F=ue.useRef(l);ue.useEffect(()=>{q.current=_},[_]),ue.useEffect(()=>{F.current=l},[l]);const X=ue.useCallback((pe,Re)=>{const he=F.current;if(!he||!p)return;const Ee=q.current,Te=typeof pe=="string"?{...Ee,[pe]:Re}:{...Ee,...pe};p(he.id,{...he.data,config:Te})},[p]),J=ue.useMemo(()=>({..._,_nodeId:(l==null?void 0:l.id)??""}),[_,l==null?void 0:l.id]);if(!l)return null;const ee=!!_.instanceOf,te=l.data.nodeType,ie=!ee&&!Pyn.has(te),oe=Object.fromEntries(u.map(pe=>[pe.id,pe])),se=s.filter(pe=>pe.target===l.id).map(pe=>{var Re,he;return{varName:hMe(((Re=oe[pe.source])==null?void 0:Re.data.label)||pe.source),sourceLabel:((he=oe[pe.source])==null?void 0:he.data.label)||pe.source,edgeId:pe.id}}),ge=((Le=Yw[te])==null?void 0:Le.color)??"var(--accent)",Ne=()=>{var pe,Re;if(ee)return O.jsx(Iyn,{node:l,config:_,edges:s,allNodes:u,nodeMap:oe,handleConfigUpdate:X});switch(te){case pi.API_INPUT:return O.jsx(kyn,{config:_,onUpdate:X,accentColor:ge});case pi.LIVE_SWITCH:return O.jsx(Oyn,{config:_,onUpdate:X,inputSources:se,accentColor:ge});case pi.DATA_SOURCE:return O.jsx(nyn,{config:_,onUpdate:X,onRefreshPreview:S,accentColor:ge,errorLine:N});case pi.DATA_SINK:return O.jsx(Syn,{config:_,onUpdate:X,nodeId:l.id,allNodes:u,edges:s,submodels:h,preamble:g,accentColor:ge});case pi.EXTERNAL_FILE:return O.jsx(vyn,{config:_,onUpdate:X,inputSources:se,onDeleteInput:k,errorLine:N,accentColor:ge});case pi.OUTPUT:return O.jsx(wyn,{config:_,onUpdate:X,nodeId:l.id,allNodes:u,edges:s});case pi.BANDING:return O.jsx(gyn,{config:_,onUpdate:X,inputSources:se,onDeleteInput:k,upstreamColumns:Bfe(l.id,s,oe),accentColor:ge});case pi.SCENARIO_EXPANDER:return O.jsx(jyn,{config:_,onUpdate:X,inputSources:se,onDeleteInput:k,upstreamColumns:Bfe(l.id,s,oe),errorLine:N});case pi.RATING_STEP:return O.jsx(myn,{config:_,onUpdate:X,inputSources:se,onDeleteInput:k,allNodes:u,accentColor:ge});case pi.MODEL_SCORE:return O.jsx(ryn,{config:_,onUpdate:X,inputSources:se,onDeleteInput:k,errorLine:N,accentColor:ge});case pi.MODELLING:{const he=Bfe(l.id,s,oe),Ee=he.length>0?he:((pe=l.data)==null?void 0:pe._columns)||[];return O.jsx(p1n,{config:J,onUpdate:X,allNodes:u,edges:s,submodels:h,preamble:g,upstreamColumns:Ee})}case pi.OPTIMISER:{const he=Bfe(l.id,s,oe),Ee=he.length>0?he:((Re=l.data)==null?void 0:Re._columns)||[];return O.jsx(x1n,{config:J,onUpdate:X,allNodes:u,edges:s,submodels:h,upstreamColumns:Ee,accentColor:ge})}case pi.OPTIMISER_APPLY:return O.jsx(Tyn,{config:_,onUpdate:X,inputSources:se,onDeleteInput:k,accentColor:ge});case pi.CONSTANT:return O.jsx(Cyn,{config:_,onUpdate:X});case pi.POLARS:return O.jsx(iyn,{config:_,onUpdate:X,inputSources:se,onDeleteInput:k,errorLine:N});case pi.SUBMODEL:return O.jsx(Myn,{config:_,accentColor:ge});default:return Object.keys(_).length>0?O.jsxs("div",{className:"px-4 py-3",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Config"}),Object.entries(_).map(([he,Ee])=>O.jsxs("div",{className:"mt-1.5 flex items-center gap-2",children:[O.jsxs("span",{className:"text-xs font-mono",style:{color:"var(--text-muted)"},children:[he,":"]}),O.jsx("span",{className:"text-xs font-mono truncate",style:{color:"var(--text-primary)"},children:String(Ee)})]},he))]}):null}},qe=((we=l.data)==null?void 0:we._availableColumns)||[],Ke=((Z=l.data)==null?void 0:Z._columns)||[];return O.jsxs(cW,{style:{opacity:C?.6:1,transition:"opacity 150ms"},children:[O.jsxs("div",{className:"px-3 py-2.5 flex items-center gap-2 shrink-0",style:{borderBottom:"1px solid var(--border)"},children:[O.jsx("input",{type:"text",value:l.data.label,onChange:pe=>{p&&p(l.id,{...l.data,label:pe.target.value})},className:"flex-1 min-w-0 px-2 py-1 text-[13px] font-semibold border border-transparent rounded-md focus:outline-none focus:ring-2 bg-transparent",style:{color:"var(--text-primary)",borderColor:"transparent"},onFocus:pe=>{pe.currentTarget.style.borderColor="var(--accent)",pe.currentTarget.style.boxShadow="0 0 0 2px var(--accent-soft)"},onBlur:pe=>{pe.currentTarget.style.borderColor="transparent",pe.currentTarget.style.boxShadow="none"}}),S&&O.jsxs("button",{onClick:S,className:"px-2 py-1 rounded shrink-0 transition-colors flex items-center gap-1 text-[11px] font-medium",style:{background:"var(--accent)",color:"#fff"},onMouseEnter:pe=>{pe.currentTarget.style.opacity="0.85"},onMouseLeave:pe=>{pe.currentTarget.style.opacity="1"},title:"Refresh preview",children:[O.jsx(LAe,{size:11}),"Refresh"]}),O.jsx("button",{onClick:m,className:"p-1 rounded shrink-0 transition-colors",style:{background:"#dc2626",color:"#fff"},onMouseEnter:pe=>pe.currentTarget.style.background="#b91c1c",onMouseLeave:pe=>pe.currentTarget.style.background="#dc2626",title:"Close",children:O.jsx(r5,{size:14,strokeWidth:2.5})})]}),ie&&O.jsx("div",{className:"flex shrink-0",style:{borderBottom:"1px solid var(--border)"},children:["config","columns"].map(pe=>O.jsx("button",{onClick:()=>R(pe),className:"flex-1 px-3 py-1.5 text-[11px] font-semibold uppercase tracking-[0.08em] transition-colors",style:{color:P===pe?"var(--accent)":"var(--text-muted)",borderBottom:P===pe?"2px solid var(--accent)":"2px solid transparent",background:P===pe?"var(--accent-soft)":"transparent"},onMouseEnter:Re=>{P!==pe&&(Re.currentTarget.style.background="var(--bg-hover)")},onMouseLeave:Re=>{P!==pe&&(Re.currentTarget.style.background="transparent")},children:pe},pe))}),O.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:P==="columns"&&ie?O.jsx(Ayn,{config:_,onUpdate:X,availableColumns:qe,columns:Ke}):Ne()})]})}function Pde(l){const{initialHeight:s,minHeight:u,maxHeight:h}=l,[g,m]=ue.useState(s),p=ue.useRef(null),k=ue.useRef(!1),S=ue.useRef(g);ue.useEffect(()=>{S.current=g},[g]);const C=ue.useRef(null);ue.useEffect(()=>()=>{var _;(_=C.current)==null||_.call(C)},[]);const N=ue.useCallback(_=>{_.preventDefault(),k.current=!0;const P=_.clientY,R=S.current,q=X=>{if(!k.current)return;const J=Math.max(u,Math.min(h,R+(P-X.clientY)));p.current&&(p.current.style.height=`${J}px`)},F=X=>{k.current=!1;const J=Math.max(u,Math.min(h,R+(P-X.clientY)));m(J),document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",F),C.current=null};document.addEventListener("mousemove",q),document.addEventListener("mouseup",F),C.current=()=>{k.current=!1,document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",F)}},[u,h]);return{height:g,containerRef:p,onDragStart:N}}const GV=28,$yn=50,e4t=10;function Byn({data:l,onCellClick:s,tracedCell:u}){const[h,g]=ue.useState(!1),[m,p]=ue.useState(""),{height:k,containerRef:S,onDragStart:C}=Pde({initialHeight:256,minHeight:120,maxHeight:600}),N=l==null?void 0:l.nodeId;ue.useEffect(()=>{p("")},[N]);const _=ue.useMemo(()=>{if(!l||!m.trim())return(l==null?void 0:l.columns)??[];const te=m.toLowerCase();return l.columns.filter(ie=>ie.name.toLowerCase().includes(te))},[l,m]),P=ue.useRef(null),[R,q]=ue.useState(0),[F,X]=ue.useState(0),J=ue.useRef(0),ee=ue.useCallback(()=>{cancelAnimationFrame(J.current),J.current=requestAnimationFrame(()=>{P.current&&q(P.current.scrollTop)})},[]);return ue.useEffect(()=>{const te=P.current;if(!te)return;const ie=new ResizeObserver(([oe])=>{X(oe.contentRect.height)});return ie.observe(te),()=>ie.disconnect()},[l]),ue.useEffect(()=>{const te=J;return()=>cancelAnimationFrame(te.current)},[]),l?h?O.jsx("div",{className:"h-8 flex items-center px-4 shrink-0",style:{borderTop:"1px solid var(--border)",background:"var(--bg-panel)"},children:O.jsxs("button",{onClick:()=>g(!1),className:"flex items-center gap-2 text-xs",style:{color:"var(--text-secondary)"},children:[O.jsx(dde,{size:14}),O.jsx(khe,{size:14}),O.jsx("span",{className:"font-medium",children:l.nodeLabel}),l.status==="ok"&&O.jsxs("span",{style:{color:"var(--text-muted)"},children:[l.row_count.toLocaleString()," rows · ",l.column_count," cols"]})]})}):O.jsxs("div",{ref:S,style:{height:k,borderTop:"1px solid var(--border)",background:"var(--bg-panel)"},className:"flex flex-col shrink-0 relative",children:[O.jsx("div",{onMouseDown:C,className:"absolute top-0 left-0 right-0 h-1 cursor-ns-resize z-10 transition-colors",style:{background:"var(--chrome-border)"},onMouseEnter:te=>te.currentTarget.style.background="var(--accent)",onMouseLeave:te=>te.currentTarget.style.background="var(--chrome-border)"}),O.jsxs("div",{className:"min-h-9 flex items-center flex-wrap px-4 shrink-0 gap-x-2 gap-y-1 py-1.5",style:{borderBottom:"1px solid var(--border)",background:"var(--bg-elevated)"},children:[O.jsx(khe,{size:14,style:{color:"var(--text-muted)"}}),O.jsx("span",{className:"text-xs font-bold",style:{color:"var(--text-primary)"},children:l.nodeLabel}),l.status==="ok"&&O.jsxs(O.Fragment,{children:[O.jsx(AAe,{size:13,className:"ml-1",style:{color:"#22c55e"}}),O.jsxs("span",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:[l.row_count.toLocaleString()," rows · ",l.column_count," cols"]})]}),l.status==="error"&&O.jsxs(O.Fragment,{children:[O.jsx(fMe,{size:13,className:"ml-1",style:{color:"#ef4444"}}),O.jsx("span",{className:"text-[11px] truncate",style:{color:"#ef4444"},children:l.error})]}),l.status==="loading"&&O.jsx("span",{className:"text-[11px] animate-pulse",style:{color:"var(--text-muted)"},children:"Running..."}),O.jsxs("div",{className:"ml-auto flex items-center gap-1.5",children:[O.jsxs("div",{className:"flex items-center gap-1 px-1.5 py-0.5 rounded-md",style:{background:"var(--chrome-hover)",border:"1px solid var(--chrome-border)"},children:[O.jsx(XX,{size:11,style:{color:"var(--text-muted)"}}),O.jsx("input",{type:"text",value:m,onChange:te=>p(te.target.value),placeholder:"Search columns...",className:"w-28 text-[11px] font-mono bg-transparent focus:outline-none",style:{color:"var(--text-primary)"}}),m&&O.jsx("button",{onClick:()=>p(""),className:"shrink-0",style:{color:"var(--text-muted)"},children:O.jsx(r5,{size:10})})]}),O.jsx("button",{onClick:()=>g(!0),className:"p-1 rounded transition-colors",style:{color:"var(--text-muted)"},onMouseEnter:te=>te.currentTarget.style.background="var(--bg-hover)",onMouseLeave:te=>te.currentTarget.style.background="transparent",children:O.jsx(rg,{size:14})})]})]}),l.status==="loading"?O.jsx("div",{className:"flex-1 flex items-center justify-center",children:O.jsx("div",{className:"text-xs animate-pulse",style:{color:"var(--text-muted)"},children:"Executing pipeline..."})}):l.status==="error"?O.jsx("div",{className:"flex-1 flex items-center justify-center p-4",children:O.jsxs("div",{className:"text-center",children:[O.jsx(fMe,{size:24,className:"mx-auto mb-2",style:{color:"#ef4444",opacity:.5}}),O.jsx("div",{className:"text-xs max-w-md",style:{color:"#ef4444"},children:l.error})]})}):O.jsxs("div",{ref:P,className:"flex-1 overflow-auto",onScroll:ee,children:[(()=>{const te=l.preview.length,ie=te>$yn&&F>0;let oe=0,se=te;ie&&(oe=Math.max(0,Math.floor(R/GV)-e4t),se=Math.min(te,Math.ceil((R+F)/GV)+e4t));const ge=oe*GV,Ne=(te-se)*GV;return O.jsxs("table",{className:"w-full text-xs",children:[O.jsx("thead",{className:"sticky top-0 z-10",style:{background:"var(--bg-elevated)"},children:O.jsxs("tr",{children:[O.jsx("th",{className:"px-3 py-1.5 text-left text-[11px] font-semibold uppercase tracking-wider w-10",style:{color:"var(--text-muted)",borderBottom:"1px solid var(--border)"},children:"#"}),_.map(qe=>O.jsxs("th",{className:"px-3 py-1.5 text-left whitespace-nowrap",style:{borderBottom:"1px solid var(--border)"},children:[O.jsx("div",{className:"font-semibold",style:{color:"var(--text-primary)"},children:qe.name}),O.jsx("div",{className:`text-[11px] font-normal ${jOt(qe.dtype)}`,children:qe.dtype})]},qe.name))]})}),O.jsxs("tbody",{children:[ge>0&&O.jsx("tr",{style:{height:ge}}),l.preview.slice(oe,se).map((qe,Ke)=>{const Le=oe+Ke;return O.jsxs("tr",{style:{height:GV,background:Le%2===0?"transparent":"rgba(255,255,255,.02)"},children:[O.jsx("td",{className:"px-3 py-1 font-mono",style:{color:"var(--text-muted)",borderRight:"1px solid var(--border)"},children:Le+1}),_.map(we=>{const Z=(u==null?void 0:u.rowIndex)===Le&&(u==null?void 0:u.column)===we.name;return O.jsx("td",{className:"px-3 py-1 font-mono whitespace-nowrap max-w-[200px] truncate transition-colors",style:{color:"var(--text-secondary)",cursor:s?"pointer":void 0,background:Z?"var(--accent-soft)":void 0,boxShadow:Z?"inset 0 0 0 1.5px var(--accent)":void 0,borderRadius:Z?"3px":void 0},onClick:()=>s==null?void 0:s(Le,we.name),children:O.jsx("span",{style:qe[we.name]===null?{color:"var(--text-muted)",fontStyle:"italic"}:void 0,children:PAe(qe[we.name])})},we.name)})]},Le)}),Ne>0&&O.jsx("tr",{style:{height:Ne}})]})]})})(),l.row_count>l.preview.length&&O.jsxs("div",{className:"px-3 py-1.5 text-[11px] text-center",style:{color:"var(--text-muted)",borderTop:"1px solid var(--border)",background:"var(--bg-elevated)"},children:["Showing ",l.preview.length," of ",l.row_count.toLocaleString()," rows"]})]})]}):null}function oAe(l){return Math.abs(l)>=1e6?(l/1e6).toFixed(1)+"M":Math.abs(l)>=1e3?(l/1e3).toFixed(1)+"K":Math.abs(l)<.01&&l!==0?l.toExponential(1):Number.isInteger(l)?String(l):l.toFixed(2)}function cAe(l,s,u=4){if(l===s)return[l];const h=(s-l)/u,g=[];for(let m=0;m<=u;m++)g.push(l+h*m);return g}const Jjt=380,uhe=220,CI=50,zyn=16,ahe=16,Vjt=28,qCe=Jjt-CI-zyn,zfe=uhe-ahe-Vjt;function Xjt(l,s,u,h){return l==="min"?s>=h:l==="max"?s<=h:l==="min_abs"?u>=h:l==="max_abs"?u<=h:!0}function Fyn({data:l,nodeId:s}){const{result:u,jobId:h,constraints:g}=l,[m,p]=ue.useState(!1),{height:k,containerRef:S,onDragStart:C}=Pde({initialHeight:320,minHeight:160,maxHeight:600}),[N,_]=ue.useState(()=>l.frontier&&l.frontier.points.length>0?"frontier":"summary"),P=ue.useMemo(()=>Object.keys(g),[g]),[R,q]=ue.useState(0),F=Oc(he=>he.selectFrontierPoint),X=Oc(he=>he.updateFrontierAfterSelect),J=Sc(he=>he.mlflow.status==="connected"),[ee,te]=ue.useState(!1),[ie,oe]=ue.useState(!1),[se,ge]=ue.useState(null),Ne=l.frontier,qe=l.selectedPointIndex;ue.useEffect(()=>{ge(null)},[qe]);const Ke=ue.useCallback(async he=>{if(he===qe){F(s,null);return}F(s,he);try{const Ee=await iCe({job_id:h,point_index:he});X(s,he,Ee)}catch(Ee){console.warn("frontier point select failed",Ee),F(s,qe)}},[qe,s,h,F,X]),Le=ue.useCallback(he=>{if(!Ne)return;const Ee=(qe??0)+he;Ee<0||Ee>=Ne.points.length||Ke(Ee)},[Ne,qe,Ke]),we=ue.useCallback(async()=>{if(!(qe==null||!Ne)){te(!0),ge(null);try{await iCe({job_id:h,point_index:qe});const he=`output/optimiser_${l.nodeLabel.toLowerCase().replace(/ /g,"_")}.json`,Ee=await Yhn({job_id:h,output_path:he});ge(Ee.message??`Saved to ${Ee.path??he}`)}catch(he){ge(`Save failed: ${he}`)}finally{te(!1)}}},[qe,Ne,h,l.nodeLabel]),Z=ue.useCallback(async()=>{if(!(qe==null||!Ne)){oe(!0),ge(null);try{await iCe({job_id:h,point_index:qe});const he=await Zhn({job_id:h,experiment_name:"/optimisation"});ge(he.run_url?`Logged: ${he.run_url}`:`Logged (run ${he.run_id??"ok"})`)}catch(he){ge(`MLflow log failed: ${he}`)}finally{oe(!1)}}},[qe,Ne,h]);if(m)return O.jsx("div",{className:"h-8 flex items-center px-4 shrink-0",style:{borderTop:"1px solid var(--border)",background:"var(--bg-panel)"},children:O.jsxs("button",{onClick:()=>p(!1),"aria-label":"Expand panel",className:"flex items-center gap-2 text-xs",style:{color:"var(--text-secondary)"},children:[O.jsx(dde,{size:14}),O.jsx(DM,{size:14}),O.jsx("span",{className:"font-medium",children:l.nodeLabel}),O.jsxs("span",{style:{color:"var(--text-muted)"},children:[u.converged?"Converged":"Not converged"," — ","Objective: ",LM(u.total_objective)]})]})});const pe=["frontier","summary"];u.history&&u.history.length>0&&pe.push("convergence");const Re={frontier:"Frontier",summary:"Summary",convergence:"Convergence"};return O.jsxs("div",{ref:S,style:{height:k,borderTop:"1px solid var(--border)",background:"var(--bg-panel)"},className:"flex flex-col shrink-0 relative",children:[O.jsx("div",{onMouseDown:C,className:"absolute top-0 left-0 right-0 h-1 cursor-ns-resize z-10 transition-colors",style:{background:"var(--chrome-border)"},onMouseEnter:he=>{he.currentTarget.style.background="var(--accent)"},onMouseLeave:he=>{he.currentTarget.style.background="var(--chrome-border)"}}),O.jsxs("div",{className:"min-h-9 flex items-center flex-wrap px-4 shrink-0 gap-x-2 gap-y-1 py-1.5",style:{borderBottom:"1px solid var(--border)",background:"var(--bg-elevated)"},children:[O.jsx(DM,{size:14,style:{color:"#f59e0b"}}),O.jsx("span",{className:"text-xs font-bold",style:{color:"var(--text-primary)"},children:l.nodeLabel}),O.jsxs("span",{className:"text-[11px]",style:{color:u.converged?"#22c55e":"#f59e0b"},children:[u.converged?"Converged":"Not converged",u.mode==="ratebook"?` · ${u.cd_iterations??"?"} CD iters`:` · ${u.iterations??"?"} iters`,u.n_quotes!=null&&O.jsxs(O.Fragment,{children:[" · ",u.n_quotes.toLocaleString()," quotes"]})]}),O.jsx("div",{className:"flex gap-1 ml-3",children:pe.map(he=>O.jsx("button",{onClick:()=>_(he),className:"px-2 py-0.5 rounded text-[10px] font-medium",style:{background:N===he?"var(--accent-soft)":"var(--chrome-hover)",color:N===he?"var(--accent)":"var(--text-muted)"},children:Re[he]},he))}),O.jsx("div",{className:"ml-auto flex items-center gap-1",children:O.jsx("button",{onClick:()=>p(!0),"aria-label":"Collapse panel",className:"p-1 rounded transition-colors",style:{color:"var(--text-muted)"},onMouseEnter:he=>{he.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:he=>{he.currentTarget.style.background="transparent"},children:O.jsx(rg,{size:14})})})]}),O.jsxs("div",{className:"flex-1 overflow-auto px-4 py-3",children:[N==="frontier"&&O.jsx(qyn,{frontier:Ne,result:u,constraints:g,constraintNames:P,selectedIdx:qe,xConstraintIdx:R,onXConstraintChange:q,onPointClick:Ke,onStepPoint:Le,onSave:we,onLogMlflow:Z,saving:ee,logging:ie,mlflowAvailable:J,actionMsg:se}),N==="summary"&&O.jsx(Gyn,{result:u,constraints:g}),N==="convergence"&&u.history&&u.history.length>0&&O.jsx(Uyn,{result:u})]})]})}function qyn({frontier:l,result:s,constraints:u,constraintNames:h,selectedIdx:g,xConstraintIdx:m,onXConstraintChange:p,onPointClick:k,onStepPoint:S,onSave:C,onLogMlflow:N,saving:_,logging:P,mlflowAvailable:R,actionMsg:q}){if(!l||l.points.length===0)return O.jsx("div",{className:"text-xs py-4",style:{color:"var(--text-muted)"},children:"No frontier data available. Frontier is computed automatically during the solve."});const F=l.points,X=h[m]??h[0],J=X?`total_${X}`:null,ee="total_objective",te=J?F.map(Ne=>Ne[J]).filter(Ne=>typeof Ne=="number"&&Number.isFinite(Ne)):[],ie=F.map(Ne=>Ne[ee]).filter(Ne=>typeof Ne=="number"&&Number.isFinite(Ne)),oe=J&&te.length>=2&&ie.length>=2,se=X?s.constraints[X]:null,ge=s.total_objective;return O.jsxs("div",{className:"flex gap-4 h-full",children:[O.jsxs("div",{className:"flex-[55] min-w-0",children:[h.length>1&&O.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[O.jsx("label",{className:"text-[10px] font-medium",style:{color:"var(--text-muted)"},children:"X axis:"}),O.jsx("select",{value:m,onChange:Ne=>p(Number(Ne.target.value)),className:"text-[11px] font-mono rounded px-1.5 py-0.5",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},children:h.map((Ne,qe)=>O.jsx("option",{value:qe,children:Ne},Ne))})]}),oe?O.jsx(Hyn,{points:F,xKey:J,yKey:ee,xLabel:X??"constraint",selectedIdx:g,currentX:se,currentY:ge,onPointClick:k}):O.jsx("div",{className:"text-xs py-4",style:{color:"var(--text-muted)"},children:"Insufficient data to plot frontier chart."}),O.jsxs("div",{className:"text-[10px] mt-1",style:{color:"var(--text-muted)"},children:[F.length," frontier points. Click a point for details."]})]}),g!=null&&F[g]&&O.jsx("div",{className:"flex-[45] min-w-[200px] max-w-[320px]",children:O.jsx(Qyn,{points:F,selectedIdx:g,result:s,constraints:u,constraintNames:h,onStepPoint:S,onSave:C,onLogMlflow:N,saving:_,logging:P,mlflowAvailable:R,actionMsg:q})})]})}function Hyn({points:l,xKey:s,yKey:u,xLabel:h,selectedIdx:g,currentX:m,currentY:p,onPointClick:k}){const{xScale:S,yScale:C,xTicks:N,yTickVals:_}=ue.useMemo(()=>{const P=l.map(se=>se[s]).filter(se=>typeof se=="number"&&Number.isFinite(se)),R=l.map(se=>se[u]).filter(se=>typeof se=="number"&&Number.isFinite(se));m!=null&&Number.isFinite(m)&&P.push(m),Number.isFinite(p)&&R.push(p);let q=Math.min(...P),F=Math.max(...P),X=Math.min(...R),J=Math.max(...R);const ee=(F-q)*.05||.01,te=(J-X)*.05||.01;q-=ee,F+=ee,X-=te,J+=te;const ie=F-q||1,oe=J-X||1;return{xScale:se=>CI+(se-q)/ie*qCe,yScale:se=>ahe+zfe-(se-X)/oe*zfe,xTicks:cAe(q+ee,F-ee,4),yTickVals:cAe(X+te,J-te,4)}},[l,s,u,m,p]);return O.jsxs("svg",{width:Jjt,height:uhe,style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[_.map(P=>O.jsxs("g",{children:[O.jsx("line",{x1:CI,y1:C(P),x2:CI+qCe,y2:C(P),stroke:"var(--border)",strokeWidth:.5}),O.jsx("text",{x:CI-4,y:C(P)+3,textAnchor:"end",fontSize:9,fill:"var(--text-muted)",children:oAe(P)})]},`y-${P}`)),N.map(P=>O.jsx("text",{x:S(P),y:uhe-Vjt+14,textAnchor:"middle",fontSize:9,fill:"var(--text-muted)",children:oAe(P)},`x-${P}`)),O.jsx("text",{x:CI+qCe/2,y:uhe-3,textAnchor:"middle",fontSize:9,fill:"var(--text-muted)",children:h}),O.jsx("text",{x:6,y:ahe+zfe/2,textAnchor:"middle",fontSize:9,fill:"var(--text-muted)",transform:`rotate(-90,6,${ahe+zfe/2})`,children:"objective"}),l.map((P,R)=>{const q=P[s],F=P[u];if(typeof q!="number"||typeof F!="number")return null;const X=g===R;return O.jsx("circle",{cx:S(q),cy:C(F),r:X?6:4,fill:X?"#f59e0b":"var(--accent)",stroke:X?"#fff":"none",strokeWidth:X?2:0,opacity:X?1:.7,style:{cursor:"pointer"},onClick:()=>k(R),tabIndex:0,role:"button","aria-label":`Select frontier point ${R+1}`,onKeyDown:J=>{(J.key==="Enter"||J.key===" ")&&(J.preventDefault(),k(R))}},R)}),m!=null&&Number.isFinite(m)&&Number.isFinite(p)&&O.jsxs("g",{children:[O.jsx("circle",{cx:S(m),cy:C(p),r:6,fill:"none",stroke:"#f59e0b",strokeWidth:2}),O.jsx("circle",{cx:S(m),cy:C(p),r:2.5,fill:"#f59e0b"})]})]})}function Qyn({points:l,selectedIdx:s,result:u,constraints:h,constraintNames:g,onStepPoint:m,onSave:p,onLogMlflow:k,saving:S,logging:C,mlflowAvailable:N,actionMsg:_}){const P=l[s];if(!P)return null;const R=Number(P.total_objective??0),q=u.baseline_objective,F=q!==0?(R/q-1)*100:null;return O.jsxs("div",{className:"rounded-lg p-3 space-y-3",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)"},children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsxs("span",{className:"text-[11px] font-bold",style:{color:"var(--text-primary)"},children:["Point ",s+1," of ",l.length]}),O.jsxs("div",{className:"flex items-center gap-0.5",children:[O.jsx("button",{onClick:()=>m(-1),disabled:s<=0,"aria-label":"Previous point",className:"p-0.5 rounded transition-colors",style:{color:s<=0?"var(--text-muted)":"var(--text-secondary)",opacity:s<=0?.4:1},children:O.jsx(MAe,{size:14})}),O.jsx("button",{onClick:()=>m(1),disabled:s>=l.length-1,"aria-label":"Next point",className:"p-0.5 rounded transition-colors",style:{color:s>=l.length-1?"var(--text-muted)":"var(--text-secondary)",opacity:s>=l.length-1?.4:1},children:O.jsx(n5,{size:14})})]})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-[10px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Objective"}),O.jsxs("div",{className:"mt-0.5 flex items-baseline justify-between text-xs font-mono gap-2",children:[O.jsx("span",{style:{color:"var(--text-primary)"},children:LM(R)}),F!=null&&O.jsxs("span",{style:{color:"#f59e0b"},children:[F>=0?"+":"",F.toFixed(2),"% vs baseline"]})]})]}),g.length>0&&O.jsxs("div",{children:[O.jsx("label",{className:"text-[10px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Constraints"}),O.jsx("div",{className:"mt-0.5 space-y-0.5",children:g.map(X=>{const J=`total_${X}`,ee=Number(P[J]??0),te=u.baseline_constraints[X],ie=te?ee/te:0,oe=h[X]||{},se=Object.keys(oe)[0],ge=oe[se]??0,Ne=Xjt(se,ie,ee,ge);return O.jsxs("div",{className:"flex items-center justify-between text-xs font-mono gap-2",children:[O.jsxs("span",{className:"flex items-center gap-1.5",children:[O.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full shrink-0",style:{background:Ne?"#22c55e":"#ef4444"}}),O.jsx("span",{style:{color:"var(--text-secondary)"},children:X})]}),O.jsxs("span",{children:[O.jsx("span",{style:{color:"var(--text-primary)"},children:LM(ee)}),te!=null&&te!==0&&O.jsxs("span",{style:{color:"var(--text-muted)"},children:[" (",(ie*100).toFixed(1),"%)"]})]})]},X)})})]}),(()=>{const X=Object.keys(P).filter(J=>J.startsWith("lambda_"));return X.length===0?null:O.jsxs("div",{children:[O.jsx("label",{className:"text-[10px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Lambdas"}),O.jsx("div",{className:"mt-0.5 space-y-0.5",children:X.map(J=>{const ee=J.replace(/^lambda_/,""),te=P[J];return O.jsxs("div",{className:"flex justify-between text-xs font-mono gap-2",children:[O.jsx("span",{style:{color:"var(--text-secondary)"},children:ee}),O.jsx("span",{style:{color:"var(--text-primary)"},children:typeof te=="number"?te.toFixed(6):String(te)})]},J)})})]})})(),O.jsxs("div",{className:"flex gap-2 pt-1",style:{borderTop:"1px solid var(--border)"},children:[O.jsxs("button",{onClick:p,disabled:S||C,className:"flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[11px] font-medium transition-colors",style:{background:S||C?"var(--chrome-hover)":"rgba(245,158,11,.12)",color:S||C?"var(--text-muted)":"#f59e0b",border:"1px solid rgba(245,158,11,.25)"},children:[S?O.jsx(i5,{size:12,className:"animate-spin"}):O.jsx(Yfn,{size:12}),"Save Result"]}),N&&O.jsxs("button",{onClick:k,disabled:S||C,className:"flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[11px] font-medium transition-colors",style:{background:S||C?"var(--chrome-hover)":"rgba(168,85,247,.12)",color:S||C?"var(--text-muted)":"#a855f7",border:"1px solid rgba(168,85,247,.25)"},children:[C?O.jsx(i5,{size:12,className:"animate-spin"}):O.jsx(yhn,{size:12}),"Log to MLflow"]})]}),_&&O.jsx("div",{className:"text-[10px] font-mono px-1",style:{color:"var(--text-muted)",wordBreak:"break-all"},children:_})]})}function Gyn({result:l,constraints:s}){return O.jsxs("div",{className:"flex gap-6 flex-wrap",children:[O.jsxs("div",{className:"space-y-3 min-w-[200px]",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Objective"}),O.jsxs("div",{className:"mt-1 space-y-0.5",children:[O.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[O.jsx("span",{style:{color:"var(--text-secondary)"},children:"Optimised"}),O.jsx("span",{style:{color:"var(--text-primary)"},children:LM(l.total_objective)})]}),O.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[O.jsx("span",{style:{color:"var(--text-secondary)"},children:"Baseline"}),O.jsx("span",{style:{color:"var(--text-muted)"},children:LM(l.baseline_objective)})]}),l.baseline_objective!==0&&O.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[O.jsx("span",{style:{color:"var(--text-secondary)"},children:"Uplift"}),O.jsxs("span",{style:{color:"#f59e0b"},children:[((l.total_objective/l.baseline_objective-1)*100).toFixed(2),"%"]})]})]})]}),Object.keys(l.constraints).length>0&&O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Constraints"}),O.jsx("div",{className:"mt-1 space-y-0.5",children:Object.entries(l.constraints).map(([u,h])=>{const g=l.baseline_constraints[u],m=g?h/g:0,p=s[u]||{},k=Object.keys(p)[0],S=p[k]??0,C=Xjt(k,m,h,S);return O.jsxs("div",{className:"flex items-center justify-between text-xs font-mono gap-4",children:[O.jsxs("span",{className:"flex items-center gap-1.5",children:[O.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full shrink-0",style:{background:C?"#22c55e":"#ef4444"}}),O.jsx("span",{style:{color:"var(--text-secondary)"},children:u})]}),O.jsxs("span",{children:[O.jsx("span",{style:{color:"var(--text-primary)"},children:LM(h)}),g!==void 0&&O.jsxs("span",{style:{color:"var(--text-muted)"},children:[" (",(m*100).toFixed(1),"%)"]})]})]},u)})})]}),l.mode!=="ratebook"&&Object.keys(l.lambdas).length>0&&O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Lambdas"}),O.jsx("div",{className:"mt-1 space-y-0.5",children:Object.entries(l.lambdas).map(([u,h])=>O.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[O.jsx("span",{style:{color:"var(--text-secondary)"},children:u}),O.jsx("span",{style:{color:"var(--text-primary)"},children:h.toFixed(6)})]},u))})]}),l.mode==="ratebook"&&l.clamp_rate!=null&&O.jsxs("div",{className:"flex justify-between text-xs font-mono",children:[O.jsx("span",{style:{color:"var(--text-muted)"},children:"Clamp rate"}),O.jsxs("span",{style:{color:"#f59e0b"},children:[(l.clamp_rate*100).toFixed(1),"%"]})]})]}),l.scenario_value_histogram&&(()=>{const{counts:u,edges:h}=l.scenario_value_histogram;if(!u||u.length===0)return null;const g=Math.max(...u),m=320,p=100,k=2,S=2,C=m-k*2,N=p-S*2,_=C/u.length,P=h[0],R=h[h.length-1],q=R>P?k+(1-P)/(R-P)*C:null;return O.jsxs("div",{className:"min-w-[200px]",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Scenario Value Distribution"}),O.jsxs("svg",{width:m,height:p,className:"mt-1",style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[u.map((F,X)=>{const J=g>0?F/g*N:0;return O.jsx("rect",{x:k+X*_+.5,y:S+N-J,width:Math.max(_-1,1),height:J,fill:"#f59e0b",opacity:.7},X)}),q!=null&&q>=k&&q<=k+C&&O.jsx("line",{x1:q,y1:S,x2:q,y2:S+N,stroke:"#ef4444",strokeWidth:1,strokeDasharray:"3,2"})]}),O.jsxs("div",{className:"flex gap-3 mt-0.5 text-[10px]",style:{color:"var(--text-muted)"},children:[O.jsx("span",{children:P.toFixed(2)}),O.jsx("span",{className:"flex-1"}),q!=null&&O.jsxs("span",{children:[O.jsx("span",{style:{color:"#ef4444"},children:"|"})," 1.0"]}),O.jsx("span",{className:"flex-1"}),O.jsx("span",{children:R.toFixed(2)})]}),l.scenario_value_stats&&O.jsxs("div",{className:"mt-2 grid grid-cols-2 gap-x-6 gap-y-0.5 text-xs font-mono",children:[O.jsxs("div",{className:"flex justify-between",children:[O.jsx("span",{style:{color:"var(--text-muted)"},children:"Mean"}),O.jsx("span",{style:{color:"var(--text-primary)"},children:l.scenario_value_stats.mean.toFixed(4)})]}),O.jsxs("div",{className:"flex justify-between",children:[O.jsx("span",{style:{color:"var(--text-muted)"},children:"Std"}),O.jsx("span",{style:{color:"var(--text-primary)"},children:l.scenario_value_stats.std.toFixed(4)})]}),O.jsxs("div",{className:"flex justify-between",children:[O.jsx("span",{style:{color:"var(--text-muted)"},children:"P5-P95"}),O.jsxs("span",{style:{color:"var(--text-primary)"},children:[l.scenario_value_stats.p5.toFixed(3),"-",l.scenario_value_stats.p95.toFixed(3)]})]}),O.jsxs("div",{className:"flex justify-between",children:[O.jsx("span",{style:{color:"var(--text-muted)"},children:"Min-Max"}),O.jsxs("span",{style:{color:"var(--text-primary)"},children:[l.scenario_value_stats.min.toFixed(3),"-",l.scenario_value_stats.max.toFixed(3)]})]}),O.jsxs("div",{className:"flex justify-between",children:[O.jsx("span",{style:{color:"#22c55e"},children:"Increase"}),O.jsxs("span",{style:{color:"#22c55e"},children:[(l.scenario_value_stats.pct_increase*100).toFixed(1),"%"]})]}),O.jsxs("div",{className:"flex justify-between",children:[O.jsx("span",{style:{color:"#ef4444"},children:"Decrease"}),O.jsxs("span",{style:{color:"#ef4444"},children:[(l.scenario_value_stats.pct_decrease*100).toFixed(1),"%"]})]})]})]})})(),l.mode==="ratebook"&&l.factor_tables&&O.jsxs("div",{className:"min-w-[180px]",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Factor Tables"}),Object.entries(l.factor_tables).map(([u,h])=>O.jsxs("div",{className:"mt-1.5",children:[O.jsx("div",{className:"text-[11px] font-medium mb-1",style:{color:"var(--text-secondary)"},children:u}),O.jsx("div",{className:"space-y-0.5",children:h.map((g,m)=>{const p=g.__factor_group__??g[Object.keys(g)[0]]??`Level ${m}`,k=g.optimal_scenario_value;return O.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[O.jsx("span",{style:{color:"var(--text-secondary)"},children:p}),O.jsx("span",{style:{color:"var(--text-primary)"},children:typeof k=="number"?k.toFixed(2):"?"})]},m)})})]},u))]})]})}function Uyn({result:l}){const s=l.history,u=400,h=140,g=6,m=6,p=u-g*2,k=h-m*2,S=s.map(oe=>oe.total_objective),C=s.map(oe=>oe.max_lambda_change),N=Math.min(...S),_=Math.max(...S),P=Math.min(...C),R=Math.max(...C),q=_-N||1,F=R-P||1,X=oe=>g+oe/Math.max(s.length-1,1)*p,J=oe=>m+k-(oe-N)/q*k,ee=oe=>m+k-(oe-P)/F*k,te=s.map((oe,se)=>`${se===0?"M":"L"}${X(se).toFixed(1)},${J(oe.total_objective).toFixed(1)}`).join(" "),ie=s.map((oe,se)=>`${se===0?"M":"L"}${X(se).toFixed(1)},${ee(oe.max_lambda_change).toFixed(1)}`).join(" ");return O.jsxs("div",{className:"flex gap-6 flex-wrap",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Convergence"}),O.jsxs("svg",{width:u,height:h,className:"mt-1",style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[O.jsx("path",{d:te,fill:"none",stroke:"#f59e0b",strokeWidth:1.5}),O.jsx("path",{d:ie,fill:"none",stroke:"#3b82f6",strokeWidth:1.5})]}),O.jsxs("div",{className:"flex gap-3 mt-0.5 text-[10px]",style:{color:"var(--text-muted)"},children:[O.jsxs("span",{children:[O.jsx("span",{style:{color:"#f59e0b"},children:"--"})," Objective"]}),O.jsxs("span",{children:[O.jsx("span",{style:{color:"#3b82f6"},children:"--"})," Lambda change"]})]})]}),O.jsxs("div",{className:"min-w-[280px]",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Iterations"}),O.jsxs("div",{className:"mt-1 max-h-48 overflow-y-auto",children:[O.jsxs("div",{className:"flex text-[10px] font-bold py-0.5 sticky top-0",style:{color:"var(--text-muted)",background:"var(--bg-panel)"},children:[O.jsx("span",{className:"w-8 text-center",children:"#"}),O.jsx("span",{className:"flex-1 text-right",children:"Objective"}),O.jsx("span",{className:"flex-1 text-right",children:"Max dLambda"}),O.jsx("span",{className:"w-10 text-center",children:"OK"})]}),s.map(oe=>O.jsxs("div",{className:"flex text-[10px] font-mono py-0.5",style:{color:"var(--text-secondary)"},children:[O.jsx("span",{className:"w-8 text-center",children:oe.iteration}),O.jsx("span",{className:"flex-1 text-right",children:LM(oe.total_objective)}),O.jsx("span",{className:"flex-1 text-right",children:oe.max_lambda_change.toExponential(2)}),O.jsx("span",{className:"w-10 text-center",children:oe.all_constraints_satisfied?"Y":"N"})]},oe.iteration))]})]})]})}const O9=["#f59e0b","#3b82f6","#22c55e","#ef4444","#a855f7","#06b6d4","#f97316","#ec4899"],PI=44,Jyn=12,t4t=14,Vyn=22;function Xyn(l,s,u,h,g=0){const m=u-PI-Jyn,p=h-t4t-Vyn;let k=1/0,S=-1/0;for(const ee of s)for(const te of l){const ie=te.values[ee]??0;ie<k&&(k=ie),ie>S&&(S=ie)}Number.isFinite(k)||(k=0),Number.isFinite(S)||(S=1);const C=S-k||1,N=cAe(k,S),_=C*g,P=k-_,R=C+_*2||1,q=l.map(ee=>ee.scenarioIndex),F=Math.min(...q),J=Math.max(...q)-F||1;return{xScale:ee=>PI+(ee-F)/J*m,yScale:ee=>t4t+p-(ee-P)/R*p,ticks:N,chartW:m,w:u,h}}function Wyn({ctx:l}){return O.jsxs(O.Fragment,{children:[l.ticks.map(s=>O.jsxs("g",{children:[O.jsx("line",{x1:PI,y1:l.yScale(s),x2:PI+l.chartW,y2:l.yScale(s),stroke:"var(--border)",strokeWidth:.5}),O.jsx("text",{x:PI-4,y:l.yScale(s)+3,textAnchor:"end",fontSize:9,fill:"var(--text-muted)",children:oAe(s)})]},s)),O.jsx("text",{x:PI+l.chartW/2,y:l.h-3,textAnchor:"middle",fontSize:9,fill:"var(--text-muted)",children:"scenario index"})]})}function Kyn({rows:l,column:s,color:u,ctx:h}){const g=l.map((m,p)=>`${p===0?"M":"L"}${h.xScale(m.scenarioIndex).toFixed(1)},${h.yScale(m.values[s]??0).toFixed(1)}`).join(" ");return O.jsxs("g",{children:[O.jsx("path",{d:g,fill:"none",stroke:u,strokeWidth:1.5}),l.map((m,p)=>O.jsx("circle",{cx:h.xScale(m.scenarioIndex),cy:h.yScale(m.values[s]??0),r:2.5,fill:u},p))]})}function Yyn(l,s,u){return s.map(h=>{const g=[];let m=0;for(const P of l.values()){const R=P.find(q=>q.scenarioIndex===h);R&&(g.push(R.values[u]??0),m=R.scenarioValue)}g.sort((P,R)=>P-R);const p=g.length;if(p===0)return{scenarioIndex:h,scenarioValue:m,count:0,mean:0,std:0,min:0,p25:0,median:0,p75:0,max:0};const S=g.reduce((P,R)=>P+R,0)/p,C=g.reduce((P,R)=>P+(R-S)**2,0)/p,N=Math.sqrt(C),_=P=>{const R=P/100*(p-1),q=Math.floor(R),F=Math.ceil(R);return q===F?g[q]:g[q]+(g[F]-g[q])*(R-q)};return{scenarioIndex:h,scenarioValue:m,count:p,mean:S,std:N,min:g[0],p25:_(25),median:_(50),p75:_(75),max:g[p-1]}})}function S9(l){return Math.abs(l)>=1e6?(l/1e6).toFixed(2)+"M":Math.abs(l)>=1e4?(l/1e3).toFixed(1)+"K":Math.abs(l)<.01&&l!==0?l.toExponential(2):Number.isInteger(l)?l.toLocaleString():l.toFixed(4)}const Zyn=["Count","Mean","Std","Min","P25","Median","P75","Max"];function exn({column:l,color:s,isObjective:u,stats:h}){return O.jsxs("div",{className:"mb-4",children:[O.jsxs("div",{className:"flex items-center gap-1.5 mb-1.5",children:[O.jsx("span",{className:"inline-block w-2 h-2 rounded-full",style:{background:s}}),O.jsxs("span",{className:"text-[11px] font-mono font-medium",style:{color:"var(--text-secondary)"},children:[l,u&&O.jsx("span",{className:"ml-1 text-[9px] font-sans",style:{color:"var(--text-muted)"},children:"objective"})]})]}),O.jsx("div",{className:"overflow-x-auto",children:O.jsxs("table",{className:"w-full text-[11px]",children:[O.jsx("thead",{children:O.jsxs("tr",{children:[O.jsx("th",{className:"px-2 py-1 text-left font-semibold whitespace-nowrap",style:{color:"var(--text-muted)",borderBottom:"1px solid var(--border)"},children:"Scenario"}),O.jsx("th",{className:"px-2 py-1 text-left font-semibold whitespace-nowrap",style:{color:"var(--text-muted)",borderBottom:"1px solid var(--border)"},children:"Value"}),Zyn.map(g=>O.jsx("th",{className:"px-2 py-1 text-right font-semibold whitespace-nowrap",style:{color:"var(--text-muted)",borderBottom:"1px solid var(--border)"},children:g},g))]})}),O.jsx("tbody",{children:h.map((g,m)=>O.jsxs("tr",{style:{background:m%2===0?"transparent":"rgba(255,255,255,.02)"},children:[O.jsx("td",{className:"px-2 py-0.5 font-mono",style:{color:"var(--text-primary)"},children:g.scenarioIndex}),O.jsx("td",{className:"px-2 py-0.5 font-mono",style:{color:"var(--text-muted)"},children:S9(g.scenarioValue)}),O.jsx("td",{className:"px-2 py-0.5 font-mono text-right",style:{color:"var(--text-secondary)"},children:g.count}),O.jsx("td",{className:"px-2 py-0.5 font-mono text-right",style:{color:"var(--text-primary)"},children:S9(g.mean)}),O.jsx("td",{className:"px-2 py-0.5 font-mono text-right",style:{color:"var(--text-secondary)"},children:S9(g.std)}),O.jsx("td",{className:"px-2 py-0.5 font-mono text-right",style:{color:"var(--text-secondary)"},children:S9(g.min)}),O.jsx("td",{className:"px-2 py-0.5 font-mono text-right",style:{color:"var(--text-secondary)"},children:S9(g.p25)}),O.jsx("td",{className:"px-2 py-0.5 font-mono text-right",style:{color:"var(--text-primary)"},children:S9(g.median)}),O.jsx("td",{className:"px-2 py-0.5 font-mono text-right",style:{color:"var(--text-secondary)"},children:S9(g.p75)}),O.jsx("td",{className:"px-2 py-0.5 font-mono text-right",style:{color:"var(--text-secondary)"},children:S9(g.max)})]},g.scenarioIndex))})]})})]})}function HCe({children:l}){return O.jsx("div",{className:"h-8 flex items-center px-4 shrink-0",style:{borderTop:"1px solid var(--border)",background:"var(--bg-panel)"},children:l})}function txn({data:l,config:s}){const[u,h]=ue.useState(!1),[g,m]=ue.useState("chart"),{height:p,containerRef:k,onDragStart:S}=Pde({initialHeight:320,minHeight:160,maxHeight:600}),C=s.objective||"",N=ue.useMemo(()=>s.constraints??{},[s.constraints]),_=ue.useMemo(()=>Object.keys(N),[N]),P=s.quote_id||"quote_id",R=s.scenario_index||"scenario_index",q=s.scenario_value||"scenario_value",F=ue.useMemo(()=>{const ye=[];C&&ye.push(C);for(const ft of _)ft!==C&&ye.push(ft);return ye},[C,_]),X=F.join("\0"),[J,ee]=ue.useState(()=>new Set(F));ue.useEffect(()=>{ee(new Set(F))},[X]);const te=ue.useCallback(ye=>{ee(ft=>{const Ce=new Set(ft);return Ce.has(ye)?Ce.delete(ye):Ce.add(ye),Ce})},[]),{quoteIds:ie,quoteData:oe}=ue.useMemo(()=>{const ye=new Map;for(const Ce of l.preview){const We=String(Ce[P]??""),gt=Number(Ce[R]??0),Ot=Number(Ce[q]??0),dt={};for(const cn of F)dt[cn]=Number(Ce[cn]??0);ye.has(We)||ye.set(We,[]),ye.get(We).push({scenarioIndex:gt,scenarioValue:Ot,values:dt})}for(const Ce of ye.values())Ce.sort((We,gt)=>We.scenarioIndex-gt.scenarioIndex);return{quoteIds:[...ye.keys()],quoteData:ye}},[l.preview,P,R,q,F]),[se,ge]=ue.useState(0),[Ne,qe]=ue.useState("");ue.useEffect(()=>{ge(0),qe("")},[ie.length]);const Ke=Math.min(se,Math.max(0,ie.length-1)),Le=ie[Ke]??"",we=oe.get(Le)??[],Z=ue.useCallback(()=>ge(ye=>Math.max(0,ye-1)),[]),pe=ue.useCallback(()=>ge(ye=>Math.min(ie.length-1,ye+1)),[]),Re=ue.useCallback(()=>{const ye=ie.indexOf(Ne.trim());ye>=0&&(ge(ye),qe(""))},[ie,Ne]),he=ue.useMemo(()=>F.filter(ye=>J.has(ye)),[F,J]),Ee=ue.useMemo(()=>{const ye=new Set;for(const ft of oe.values())for(const Ce of ft)ye.add(Ce.scenarioIndex);return[...ye].sort((ft,Ce)=>ft-Ce)},[oe]),Te=ue.useMemo(()=>{const ye=new Map;for(const ft of F)ye.set(ft,Yyn(oe,Ee,ft));return ye},[F,oe,Ee]);return C?ie.length===0||we.length===0?O.jsxs(HCe,{children:[O.jsx(DM,{size:14,style:{color:"#f59e0b"},className:"mr-2"}),O.jsxs("span",{className:"text-xs",style:{color:"var(--text-muted)"},children:["No scenario data in preview. Ensure upstream nodes produce"," ",O.jsx("span",{className:"font-mono",children:P})," and"," ",O.jsx("span",{className:"font-mono",children:R})," columns."]})]}):u?O.jsx(HCe,{children:O.jsxs("button",{onClick:()=>h(!1),className:"flex items-center gap-2 text-xs",style:{color:"var(--text-secondary)"},children:[O.jsx(dde,{size:14}),O.jsx(DM,{size:14}),O.jsx("span",{className:"font-medium",children:l.nodeLabel}),O.jsxs("span",{style:{color:"var(--text-muted)"},children:[ie.length," quotes · ",we.length," scenarios"]})]})}):O.jsxs("div",{ref:k,style:{height:p,borderTop:"1px solid var(--border)",background:"var(--bg-panel)"},className:"flex flex-col shrink-0 relative",children:[O.jsx("div",{onMouseDown:S,className:"absolute top-0 left-0 right-0 h-1 cursor-ns-resize z-10 transition-colors",style:{background:"var(--chrome-border)"},onMouseEnter:ye=>{ye.currentTarget.style.background="var(--accent)"},onMouseLeave:ye=>{ye.currentTarget.style.background="var(--chrome-border)"}}),O.jsxs("div",{className:"min-h-9 flex items-center flex-wrap px-4 shrink-0 gap-x-2 gap-y-1 py-1.5",style:{borderBottom:"1px solid var(--border)",background:"var(--bg-elevated)"},children:[O.jsx(DM,{size:14,style:{color:"#f59e0b"}}),O.jsx("span",{className:"text-xs font-bold",style:{color:"var(--text-primary)"},children:l.nodeLabel}),O.jsxs("span",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:[ie.length," quotes · ",we.length," scenarios"]}),g==="chart"&&O.jsxs("div",{className:"flex items-center gap-1 ml-3",children:[O.jsx("button",{onClick:Z,disabled:Ke===0,className:"p-0.5 rounded transition-colors",style:{color:Ke===0?"var(--text-muted)":"var(--text-secondary)",opacity:Ke===0?.4:1},children:O.jsx(MAe,{size:14})}),O.jsx("span",{className:"text-[11px] font-mono min-w-[80px] text-center",style:{color:"var(--text-primary)"},title:Le,children:Le.length>12?Le.slice(0,10)+"…":Le}),O.jsx("button",{onClick:pe,disabled:Ke>=ie.length-1,className:"p-0.5 rounded transition-colors",style:{color:Ke>=ie.length-1?"var(--text-muted)":"var(--text-secondary)",opacity:Ke>=ie.length-1?.4:1},children:O.jsx(n5,{size:14})}),O.jsxs("span",{className:"text-[10px]",style:{color:"var(--text-muted)"},children:[Ke+1,"/",ie.length]})]}),g==="chart"&&O.jsxs("div",{className:"flex items-center gap-1 px-1.5 py-0.5 rounded-md ml-1",style:{background:"var(--chrome-hover)",border:"1px solid var(--chrome-border)"},children:[O.jsx(XX,{size:11,style:{color:"var(--text-muted)"}}),O.jsx("input",{type:"text",value:Ne,onChange:ye=>qe(ye.target.value),onKeyDown:ye=>{ye.key==="Enter"&&Re()},placeholder:"Find quote...",className:"w-24 text-[11px] font-mono bg-transparent focus:outline-none",style:{color:"var(--text-primary)"}})]}),O.jsx("div",{className:"flex gap-1 ml-3",children:["chart","statistics"].map(ye=>O.jsx("button",{onClick:()=>m(ye),className:"px-2 py-0.5 rounded text-[10px] font-medium",style:{background:g===ye?"var(--accent-soft)":"var(--chrome-hover)",color:g===ye?"var(--accent)":"var(--text-muted)"},children:ye==="chart"?"Chart":"Statistics"},ye))}),O.jsx("div",{className:"ml-auto flex items-center gap-1",children:O.jsx("button",{onClick:()=>h(!0),className:"p-1 rounded transition-colors",style:{color:"var(--text-muted)"},onMouseEnter:ye=>{ye.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:ye=>{ye.currentTarget.style.background="transparent"},children:O.jsx(rg,{size:14})})})]}),O.jsx("div",{className:"flex-1 overflow-auto px-4 py-3",children:g==="chart"?O.jsxs("div",{className:"flex gap-6",children:[O.jsxs("div",{className:"shrink-0 space-y-1 min-w-[140px]",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Series"}),F.map((ye,ft)=>O.jsxs("label",{className:"flex items-center gap-1.5 text-xs cursor-pointer select-none",style:{color:"var(--text-secondary)"},children:[O.jsx("input",{type:"checkbox",checked:J.has(ye),onChange:()=>te(ye),style:{accentColor:O9[ft%O9.length]}}),O.jsx("span",{className:"inline-block w-2 h-2 rounded-full shrink-0",style:{background:O9[ft%O9.length],opacity:J.has(ye)?1:.3}}),O.jsxs("span",{className:"font-mono truncate max-w-[120px]",title:ye,children:[ye,ye===C&&O.jsx("span",{className:"ml-1 text-[9px] font-sans",style:{color:"var(--text-muted)"},children:"obj"})]})]},ye)),O.jsxs("div",{className:"mt-3 pt-2",style:{borderTop:"1px solid var(--border)"},children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Quote"}),O.jsxs("div",{className:"mt-1 text-[11px] font-mono",style:{color:"var(--text-secondary)"},children:[O.jsxs("div",{className:"flex justify-between gap-2",children:[O.jsx("span",{style:{color:"var(--text-muted)"},children:"ID"}),O.jsx("span",{title:Le,children:Le.length>14?Le.slice(0,12)+"…":Le})]}),O.jsxs("div",{className:"flex justify-between gap-2",children:[O.jsx("span",{style:{color:"var(--text-muted)"},children:"Scenarios"}),O.jsx("span",{children:we.length})]})]})]})]}),O.jsx("div",{className:"flex-1 min-w-0",children:he.length===0?O.jsx("div",{className:"text-xs py-4 text-center",style:{color:"var(--text-muted)"},children:"Select at least one series to plot."}):(()=>{const ye=Xyn(we,he,520,220,.05);return O.jsxs("svg",{width:520,height:220,style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[O.jsx(Wyn,{ctx:ye}),he.map(ft=>O.jsx(Kyn,{rows:we,column:ft,color:O9[F.indexOf(ft)%O9.length],ctx:ye},ft))]})})()})]}):O.jsx("div",{children:F.map((ye,ft)=>{const Ce=Te.get(ye);return Ce?O.jsx(exn,{column:ye,color:O9[ft%O9.length],isObjective:ye===C,stats:Ce},ye):null})})})]}):O.jsx(HCe,{children:O.jsx("span",{className:"text-xs",style:{color:"var(--text-muted)"},children:"Configure an objective column to see the quote chart."})})}function nxn({trainJobId:l,mlflowBackend:s,config:u,onMlflowResult:h}){const[g,m]=ue.useState(!1),[p,k]=ue.useState(null),S=ue.useCallback(async()=>{m(!0),k(null),h==null||h(null);try{const C=await Xhn({job_id:l,experiment_name:Rn(u,"mlflow_experiment","")||null,model_name:Rn(u,"model_name","")||null});k(C),h==null||h(C)}catch(C){const N={status:"error",error:String(C)};k(N),h==null||h(N)}finally{m(!1)}},[l,u,h]);return O.jsxs("div",{className:"space-y-1.5",children:[O.jsxs("button",{onClick:S,disabled:g,className:"w-full flex items-center justify-center gap-2 px-3 py-2 rounded-lg text-xs font-medium transition-colors",style:{background:g?"var(--chrome-hover)":"rgba(59,130,246,.15)",color:g?"var(--text-muted)":"#3b82f6",border:"1px solid rgba(59,130,246,.3)"},children:[g?O.jsx(i5,{size:14,className:"animate-spin"}):O.jsx(fOt,{size:14}),g?"Logging...":`Log to MLflow (${s.backend})`]}),p&&p.status==="ok"&&O.jsxs("div",{className:"px-3 py-2 rounded-lg text-xs space-y-0.5",style:{background:"rgba(59,130,246,.08)",border:"1px solid rgba(59,130,246,.2)"},children:[O.jsxs("div",{style:{color:"#3b82f6"},children:["Logged to ",p.experiment_name]}),p.run_url&&O.jsx("a",{href:p.run_url,target:"_blank",rel:"noreferrer",className:"underline",style:{color:"#60a5fa"},children:"Open in Databricks"}),!p.run_url&&p.tracking_uri&&O.jsxs("div",{style:{color:"var(--text-muted)"},children:["Run ID: ",p.run_id]})]}),p&&p.status==="error"&&O.jsx("div",{className:"px-3 py-2 rounded-lg text-xs",style:{background:"rgba(239,68,68,.08)",border:"1px solid rgba(239,68,68,.2)",color:"#fca5a5"},children:p.error})]})}function ixn({result:l,jobId:s,mlflowBackend:u,config:h}){var S,C;const g=((S=l.features)==null?void 0:S.length)??l.feature_importance.length,m=((C=l.cat_features)==null?void 0:C.length)??0,p=l.diagnostics_set??"validation",k=p==="holdout"?"Holdout":p==="train"?"Train":"Validation";return O.jsxs("div",{className:"flex gap-6 flex-wrap",children:[l.warning&&O.jsxs("div",{className:"w-full flex items-start gap-2 px-3 py-2 rounded-lg text-xs",style:{background:"rgba(245,158,11,.06)",border:"1px solid rgba(245,158,11,.2)"},children:[O.jsx("span",{className:"shrink-0 mt-0.5",style:{color:"#f59e0b"},children:"⚠"}),O.jsx("span",{style:{color:"#fbbf24"},children:l.warning})]}),O.jsxs("div",{className:"min-w-[200px]",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Model Info"}),O.jsx("div",{className:"mt-1 space-y-0.5",children:[["Model path",l.model_path],["Train rows",l.train_rows.toLocaleString()],...l.test_rows>0?[["Validation rows",l.test_rows.toLocaleString()]]:[],...l.holdout_rows&&l.holdout_rows>0?[["Holdout rows",l.holdout_rows.toLocaleString()]]:[],["Features",String(g)],["Cat features",String(m)],...l.best_iteration!=null?[["Best iteration",String(l.best_iteration)]]:[],["Diagnostics on",k]].map(([N,_])=>O.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[O.jsx("span",{style:{color:"var(--text-secondary)"},children:N}),O.jsx("span",{className:"text-right truncate",style:{color:"var(--text-primary)",maxWidth:200},children:_})]},N))})]}),Object.keys(l.metrics).length>0&&O.jsxs("div",{className:"min-w-[180px]",children:[O.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:["Metrics (",k,")"]}),O.jsx("div",{className:"mt-1 space-y-0.5",children:Object.entries(l.metrics).map(([N,_])=>O.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[O.jsx("span",{style:{color:"var(--text-secondary)"},children:N}),O.jsx("span",{style:{color:"var(--text-primary)"},children:_.toFixed(4)})]},N))})]}),l.holdout_metrics&&Object.keys(l.holdout_metrics).length>0&&p!=="holdout"&&O.jsxs("div",{className:"min-w-[180px]",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Metrics (Holdout)"}),O.jsx("div",{className:"mt-1 space-y-0.5",children:Object.entries(l.holdout_metrics).map(([N,_])=>O.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[O.jsx("span",{style:{color:"var(--text-secondary)"},children:N}),O.jsx("span",{style:{color:"var(--text-primary)"},children:_.toFixed(4)})]},N))})]}),l.cv_results&&O.jsxs("div",{className:"min-w-[200px]",children:[O.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:["Cross-Validation (",l.cv_results.n_folds,"-fold)"]}),O.jsx("div",{className:"mt-1 space-y-0.5",children:Object.entries(l.cv_results.mean_metrics).map(([N,_])=>{var P;return O.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[O.jsx("span",{style:{color:"var(--text-secondary)"},children:N}),O.jsxs("span",{style:{color:"var(--text-primary)"},children:[_.toFixed(4),((P=l.cv_results)==null?void 0:P.std_metrics[N])!=null&&O.jsxs("span",{style:{color:"var(--text-muted)"},children:[" ","± ",l.cv_results.std_metrics[N].toFixed(4)]})]})]},N)})})]}),l.glm_fit_statistics&&Object.keys(l.glm_fit_statistics).length>0&&O.jsxs("div",{className:"min-w-[180px]",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Fit Statistics"}),O.jsx("div",{className:"mt-1 space-y-0.5",children:Object.entries(l.glm_fit_statistics).map(([N,_])=>O.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[O.jsx("span",{style:{color:"var(--text-secondary)"},children:N}),O.jsx("span",{style:{color:"var(--text-primary)"},children:typeof _=="number"?_.toFixed(4):String(_)})]},N))})]}),l.glm_regularization_path&&(l.glm_regularization_path.selected_alpha!=null||l.glm_regularization_path.n_nonzero!=null)&&O.jsxs("div",{className:"min-w-[160px]",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Regularization"}),O.jsxs("div",{className:"mt-1 space-y-0.5",children:[l.glm_regularization_path.selected_alpha!=null&&O.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[O.jsx("span",{style:{color:"var(--text-secondary)"},children:"Alpha"}),O.jsx("span",{style:{color:"var(--text-primary)"},children:l.glm_regularization_path.selected_alpha.toFixed(6)})]}),l.glm_regularization_path.n_nonzero!=null&&O.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[O.jsx("span",{style:{color:"var(--text-secondary)"},children:"Non-zero"}),O.jsx("span",{style:{color:"var(--text-primary)"},children:l.glm_regularization_path.n_nonzero})]})]})]}),(u==null?void 0:u.installed)&&s&&O.jsx("div",{className:"min-w-[200px]",children:O.jsx(nxn,{trainJobId:s,mlflowBackend:u,config:h})})]})}const n4t="rgba(255,255,255,.06)",Ffe="var(--text-muted)",qfe=10,i4t="#a855f7",r4t="#22c55e",s4t="#f59e0b";function rxn({result:l,width:s=700,height:u=280}){const h=l.loss_history;if(!h||h.length<2)return O.jsx("div",{className:"flex items-center justify-center h-full text-xs",style:{color:"var(--text-muted)"},children:"No loss history data available"});const g=Object.keys(h[0]).filter(Re=>Re!=="iteration"),m=g.find(Re=>Re.startsWith("train_")),p=g.find(Re=>Re.startsWith("eval_"));if(!m)return O.jsx("div",{className:"flex items-center justify-center h-full text-xs",style:{color:"var(--text-muted)"},children:"No loss keys found in history"});const k=60,S=16,C=16,N=36,_=s-k-S,P=u-C-N,R=[];for(const Re of h)Re[m]!=null&&R.push(Re[m]),p&&Re[p]!=null&&R.push(Re[p]);const q=Math.min(...R),F=Math.max(...R),J=(F-q||1)*.05,ee=q-J,ie=F+J-ee,oe=Re=>k+Re/(h.length-1)*_,se=Re=>C+P-(Re-ee)/ie*P,ge=Re=>h.map((Ee,Te)=>Ee[Re]!=null?`${Te===0?"M":"L"}${oe(Te).toFixed(1)},${se(Ee[Re]).toFixed(1)}`:null).filter(Boolean).join(" "),Ne=5,qe=Math.min(5,h.length-1),Ke=Array.from({length:Ne+1},(Re,he)=>ee+he/Ne*ie),Le=Array.from({length:qe+1},(Re,he)=>Math.round(he/qe*(h.length-1))),we=l.best_iteration,Z=we!=null?oe(Math.min(we,h.length-1)):null,pe=m.replace("train_","");return O.jsxs("div",{children:[O.jsxs("svg",{width:s,height:u,style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[Ke.map((Re,he)=>{const Ee=se(Re);return O.jsxs("g",{children:[O.jsx("line",{x1:k,y1:Ee,x2:k+_,y2:Ee,stroke:n4t,strokeWidth:1}),O.jsx("text",{x:k-6,y:Ee+3,textAnchor:"end",fontSize:qfe,fill:Ffe,children:Re.toPrecision(3)})]},`gy-${he}`)}),Le.map((Re,he)=>{var ye;const Ee=oe(Re),Te=((ye=h[Re])==null?void 0:ye.iteration)??Re;return O.jsxs("g",{children:[O.jsx("line",{x1:Ee,y1:C,x2:Ee,y2:C+P,stroke:n4t,strokeWidth:1}),O.jsx("text",{x:Ee,y:C+P+16,textAnchor:"middle",fontSize:qfe,fill:Ffe,children:Te})]},`gx-${he}`)}),O.jsx("text",{x:k+_/2,y:u-4,textAnchor:"middle",fontSize:qfe,fill:Ffe,children:"Iteration"}),O.jsx("text",{x:12,y:C+P/2,textAnchor:"middle",fontSize:qfe,fill:Ffe,transform:`rotate(-90,12,${C+P/2})`,children:pe}),Z!=null&&O.jsx("line",{x1:Z,y1:C,x2:Z,y2:C+P,stroke:s4t,strokeWidth:1,strokeDasharray:"5,3"}),O.jsx("path",{d:ge(m),fill:"none",stroke:i4t,strokeWidth:1.5}),p&&O.jsx("path",{d:ge(p),fill:"none",stroke:r4t,strokeWidth:1.5})]}),O.jsxs("div",{className:"flex gap-4 mt-1.5 text-[11px]",style:{color:"var(--text-muted)"},children:[O.jsxs("span",{className:"flex items-center gap-1.5",children:[O.jsx("span",{className:"inline-block w-3 h-0.5 rounded",style:{background:i4t}}),"Train"]}),p&&O.jsxs("span",{className:"flex items-center gap-1.5",children:[O.jsx("span",{className:"inline-block w-3 h-0.5 rounded",style:{background:r4t}}),"Eval"]}),Z!=null&&O.jsxs("span",{className:"flex items-center gap-1.5",children:[O.jsx("span",{className:"inline-block w-3 h-0.5 rounded",style:{background:s4t,borderTop:"1px dashed"}}),"Best iteration (",we,")"]})]})]})}const lAe="rgba(255,255,255,.06)",hO="var(--text-muted)",D9=10,ede="#22c55e",TM="#a855f7";function sxn({result:l,width:s=700,height:u=260}){const[h,g]=ue.useState("lift"),m=l.double_lift&&l.double_lift.length>0,p=l.lorenz_curve&&l.lorenz_curve.length>0;return!m&&!p?O.jsx("div",{className:"flex items-center justify-center h-full text-xs",style:{color:"var(--text-muted)"},children:"No lift data available"}):O.jsxs("div",{className:"space-y-2",children:[m&&p&&O.jsxs("div",{className:"flex gap-1",children:[O.jsx("button",{onClick:()=>g("lift"),className:"px-2 py-0.5 rounded text-[10px] font-medium",style:{background:h==="lift"?"var(--accent-soft)":"var(--chrome-hover)",color:h==="lift"?"var(--accent)":"var(--text-muted)"},children:"Double Lift"}),O.jsx("button",{onClick:()=>g("lorenz"),className:"px-2 py-0.5 rounded text-[10px] font-medium",style:{background:h==="lorenz"?"var(--accent-soft)":"var(--chrome-hover)",color:h==="lorenz"?"var(--accent)":"var(--text-muted)"},children:"Lorenz Curve"})]}),h==="lift"&&m&&O.jsx(oxn,{data:l.double_lift,width:s,height:u}),h==="lorenz"&&p&&O.jsx(cxn,{curve:l.lorenz_curve,perfectCurve:l.lorenz_curve_perfect,width:s,height:u})]})}function oxn({data:l,width:s,height:u}){const k=s-60-16,S=u-16-40,C=l.flatMap(oe=>[oe.actual,oe.predicted]),N=Math.max(...C)*1.1,_=Math.min(0,Math.min(...C)*1.1),P=N-_||1,R=l.length,q=k/R,F=q*.35,X=q*.05,J=oe=>16+S-(oe-_)/P*S,ee=J(0),te=4,ie=Array.from({length:te+1},(oe,se)=>_+se/te*P);return O.jsxs("div",{children:[O.jsxs("svg",{width:s,height:u,style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[ie.map((oe,se)=>{const ge=J(oe);return O.jsxs("g",{children:[O.jsx("line",{x1:60,y1:ge,x2:60+k,y2:ge,stroke:lAe,strokeWidth:1}),O.jsx("text",{x:54,y:ge+3,textAnchor:"end",fontSize:D9,fill:hO,children:oe.toPrecision(3)})]},`gy-${se}`)}),_<0&&O.jsx("line",{x1:60,y1:ee,x2:60+k,y2:ee,stroke:"rgba(255,255,255,.15)",strokeWidth:1}),l.map((oe,se)=>{const Ne=60+se*q+q/2,qe=Math.abs(oe.actual-0)/P*S,Ke=oe.actual>=0?J(oe.actual):ee,Le=Math.abs(oe.predicted-0)/P*S,we=oe.predicted>=0?J(oe.predicted):ee;return O.jsxs("g",{children:[O.jsx("rect",{x:Ne-F-X/2,y:Ke,width:F,height:qe,fill:ede,opacity:.7,rx:1}),O.jsx("rect",{x:Ne+X/2,y:we,width:F,height:Le,fill:TM,opacity:.7,rx:1}),O.jsx("text",{x:Ne,y:16+S+14,textAnchor:"middle",fontSize:D9,fill:hO,children:oe.decile}),O.jsxs("text",{x:Ne,y:16+S+26,textAnchor:"middle",fontSize:8,fill:hO,opacity:.6,children:["n=",oe.count]})]},oe.decile)}),O.jsx("text",{x:60+k/2,y:u-2,textAnchor:"middle",fontSize:D9,fill:hO,children:"Decile"}),O.jsx("text",{x:12,y:16+S/2,textAnchor:"middle",fontSize:D9,fill:hO,transform:`rotate(-90,12,${16+S/2})`,children:"Average value"})]}),O.jsxs("div",{className:"flex gap-4 mt-1.5 text-[11px]",style:{color:"var(--text-muted)"},children:[O.jsxs("span",{className:"flex items-center gap-1.5",children:[O.jsx("span",{className:"inline-block w-3 h-2 rounded-sm",style:{background:ede,opacity:.7}}),"Actual"]}),O.jsxs("span",{className:"flex items-center gap-1.5",children:[O.jsx("span",{className:"inline-block w-3 h-2 rounded-sm",style:{background:TM,opacity:.7}}),"Predicted"]})]}),O.jsxs("div",{className:"mt-3",children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Lift Table"}),O.jsxs("div",{className:"mt-1 text-[11px] font-mono",style:{color:"var(--text-secondary)"},children:[O.jsxs("div",{className:"grid grid-cols-4 gap-1 pb-0.5 mb-0.5",style:{borderBottom:"1px solid var(--border)"},children:[O.jsx("span",{style:{color:"var(--text-muted)"},children:"Decile"}),O.jsx("span",{style:{color:"var(--text-muted)"},children:"Actual"}),O.jsx("span",{style:{color:"var(--text-muted)"},children:"Predicted"}),O.jsx("span",{style:{color:"var(--text-muted)"},children:"Count"})]}),l.map(oe=>O.jsxs("div",{className:"grid grid-cols-4 gap-1",children:[O.jsx("span",{children:oe.decile}),O.jsx("span",{style:{color:"var(--text-primary)"},children:oe.actual.toFixed(4)}),O.jsx("span",{style:{color:TM},children:oe.predicted.toFixed(4)}),O.jsx("span",{children:oe.count.toLocaleString()})]},oe.decile))]})]})]})}function cxn({curve:l,perfectCurve:s,width:u,height:h}){const S=u-55-16,C=h-16-36,N=J=>55+J*S,_=J=>16+C-J*C,P=lxn(l),R=l.map((J,ee)=>`${ee===0?"M":"L"}${N(J.cum_weight_frac).toFixed(1)},${_(J.cum_actual_frac).toFixed(1)}`).join(" "),q=s?s.map((J,ee)=>`${ee===0?"M":"L"}${N(J.cum_weight_frac).toFixed(1)},${_(J.cum_actual_frac).toFixed(1)}`).join(" "):null,F=[`M${N(0).toFixed(1)},${_(0).toFixed(1)}`,...l.map(J=>`L${N(J.cum_weight_frac).toFixed(1)},${_(J.cum_actual_frac).toFixed(1)}`),`L${N(1).toFixed(1)},${_(1).toFixed(1)}`,"Z"].join(" "),X=[0,.25,.5,.75,1];return O.jsxs("div",{children:[O.jsxs("svg",{width:u,height:h,style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[X.map(J=>O.jsxs("g",{children:[O.jsx("line",{x1:55,y1:_(J),x2:55+S,y2:_(J),stroke:lAe,strokeWidth:1}),O.jsx("line",{x1:N(J),y1:16,x2:N(J),y2:16+C,stroke:lAe,strokeWidth:1}),O.jsx("text",{x:49,y:_(J)+3,textAnchor:"end",fontSize:D9,fill:hO,children:J.toFixed(2)}),O.jsx("text",{x:N(J),y:16+C+14,textAnchor:"middle",fontSize:D9,fill:hO,children:J.toFixed(2)})]},`grid-${J}`)),O.jsx("path",{d:F,fill:TM,opacity:.08}),O.jsx("line",{x1:N(0),y1:_(0),x2:N(1),y2:_(1),stroke:"rgba(255,255,255,.25)",strokeWidth:1,strokeDasharray:"4,3"}),q&&O.jsx("path",{d:q,fill:"none",stroke:ede,strokeWidth:1.5,opacity:.6}),O.jsx("path",{d:R,fill:"none",stroke:TM,strokeWidth:1.5}),O.jsxs("text",{x:63,y:32,fontSize:11,fontWeight:"bold",fill:TM,children:["Gini = ",P.toFixed(4)]}),O.jsx("text",{x:55+S/2,y:h-4,textAnchor:"middle",fontSize:D9,fill:hO,children:"Cumulative weight fraction"}),O.jsx("text",{x:10,y:16+C/2,textAnchor:"middle",fontSize:D9,fill:hO,transform:`rotate(-90,10,${16+C/2})`,children:"Cumulative actual fraction"})]}),O.jsxs("div",{className:"flex gap-4 mt-1.5 text-[11px]",style:{color:"var(--text-muted)"},children:[O.jsxs("span",{className:"flex items-center gap-1.5",children:[O.jsx("span",{className:"inline-block w-3 h-0.5 rounded",style:{background:TM}}),"Model"]}),q&&O.jsxs("span",{className:"flex items-center gap-1.5",children:[O.jsx("span",{className:"inline-block w-3 h-0.5 rounded",style:{background:ede,opacity:.6}}),"Perfect model"]}),O.jsxs("span",{className:"flex items-center gap-1.5",children:[O.jsx("span",{className:"inline-block w-3 h-0.5 rounded",style:{background:"rgba(255,255,255,.25)",borderTop:"1px dashed rgba(255,255,255,.25)"}}),"Random"]})]})]})}function lxn(l){if(l.length<2)return 0;let s=0;for(let u=1;u<l.length;u++){const h=l[u].cum_weight_frac-l[u-1].cum_weight_frac,g=(l[u].cum_actual_frac+l[u-1].cum_actual_frac)/2;s+=h*g}return 2*s-1}const uAe="rgba(255,255,255,.06)",EM="var(--text-muted)",CM=10,uxn="#a855f7",axn="#ef4444",fxn="#a855f7",hxn="rgba(255,255,255,.25)";function dxn({result:l,width:s=340,height:u=240}){const h=l.residuals_histogram&&l.residuals_histogram.length>0,g=l.actual_vs_predicted&&l.actual_vs_predicted.length>0;return!h&&!g?O.jsx("div",{className:"flex items-center justify-center h-full text-xs",style:{color:"var(--text-muted)"},children:"No residuals data available"}):O.jsxs("div",{className:"flex gap-4 flex-wrap",children:[h&&O.jsx(gxn,{data:l.residuals_histogram,stats:l.residuals_stats,width:s,height:u}),g&&O.jsx(pxn,{data:l.actual_vs_predicted,width:s,height:u})]})}function gxn({data:l,stats:s,width:u,height:h}){const S=u-50-12,C=h-12-36,N=Math.max(...l.map(ie=>ie.weighted_count)),_=Math.min(...l.map(ie=>ie.bin_center)),P=Math.max(...l.map(ie=>ie.bin_center)),R=P-_||1,q=S/l.length*.85,F=ie=>50+(ie-_)/R*S,X=ie=>12+C-ie/(N||1)*C,J=_<=0&&P>=0?F(0):null,ee=4,te=Array.from({length:ee+1},(ie,oe)=>oe/ee*N);return O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Residuals Distribution"}),O.jsxs("svg",{width:u,height:h,className:"mt-1",style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[te.map((ie,oe)=>{const se=X(ie);return O.jsxs("g",{children:[O.jsx("line",{x1:50,y1:se,x2:50+S,y2:se,stroke:uAe,strokeWidth:1}),O.jsx("text",{x:44,y:se+3,textAnchor:"end",fontSize:CM,fill:EM,children:ie>=1e3?`${(ie/1e3).toFixed(0)}K`:ie.toFixed(0)})]},`gy-${oe}`)}),l.map((ie,oe)=>{const se=F(ie.bin_center),ge=ie.weighted_count/(N||1)*C;return O.jsx("rect",{x:se-q/2,y:12+C-ge,width:q,height:ge,fill:uxn,opacity:.6,rx:1},oe)}),J!=null&&O.jsx("line",{x1:J,y1:12,x2:J,y2:12+C,stroke:axn,strokeWidth:1,strokeDasharray:"4,3"}),O.jsx("text",{x:50+S/2,y:h-4,textAnchor:"middle",fontSize:CM,fill:EM,children:"Residual"}),O.jsx("text",{x:10,y:12+C/2,textAnchor:"middle",fontSize:CM,fill:EM,transform:`rotate(-90,10,${12+C/2})`,children:"Weighted count"})]}),s&&O.jsxs("div",{className:"flex gap-3 mt-1.5 text-[10px] font-mono",style:{color:"var(--text-muted)"},children:[O.jsxs("span",{children:["Mean: ",O.jsx("span",{style:{color:"var(--text-primary)"},children:s.mean.toFixed(4)})]}),O.jsxs("span",{children:["Std: ",O.jsx("span",{style:{color:"var(--text-primary)"},children:s.std.toFixed(4)})]}),O.jsxs("span",{children:["Skew: ",O.jsx("span",{style:{color:"var(--text-primary)"},children:s.skew.toFixed(4)})]})]})]})}function pxn({data:l,width:s,height:u}){const k=s-50-12,S=u-12-36,C=ue.useMemo(()=>{if(l.length<=2e3)return l;const se=l.length/2e3,ge=[];for(let Ne=0;Ne<2e3;Ne++)ge.push(l[Math.floor(Ne*se)]);return ge},[l]),N=C.flatMap(se=>[se.actual,se.predicted]),_=Math.min(...N),P=Math.max(...N),q=(P-_||1)*.05,F=_-q,X=P+q,J=X-F,ee=se=>50+(se-F)/J*k,te=se=>12+S-(se-F)/J*S,ie=4,oe=Array.from({length:ie+1},(se,ge)=>F+ge/ie*J);return O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Actual vs Predicted"}),O.jsxs("svg",{width:s,height:u,className:"mt-1",style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[oe.map((se,ge)=>{const Ne=ee(se),qe=te(se);return O.jsxs("g",{children:[O.jsx("line",{x1:50,y1:qe,x2:50+k,y2:qe,stroke:uAe,strokeWidth:1}),O.jsx("line",{x1:Ne,y1:12,x2:Ne,y2:12+S,stroke:uAe,strokeWidth:1}),O.jsx("text",{x:44,y:qe+3,textAnchor:"end",fontSize:CM,fill:EM,children:se.toPrecision(3)}),O.jsx("text",{x:Ne,y:12+S+14,textAnchor:"middle",fontSize:CM,fill:EM,children:se.toPrecision(3)})]},`grid-${ge}`)}),O.jsx("line",{x1:ee(F),y1:te(F),x2:ee(X),y2:te(X),stroke:hxn,strokeWidth:1,strokeDasharray:"4,3"}),C.map((se,ge)=>O.jsx("circle",{cx:ee(se.actual),cy:te(se.predicted),r:2,fill:fxn,opacity:.4},ge)),O.jsx("text",{x:50+k/2,y:u-4,textAnchor:"middle",fontSize:CM,fill:EM,children:"Actual"}),O.jsx("text",{x:10,y:12+S/2,textAnchor:"middle",fontSize:CM,fill:EM,transform:`rotate(-90,10,${12+S/2})`,children:"Predicted"})]}),O.jsx("div",{className:"mt-1 text-[10px]",style:{color:"var(--text-muted)"},children:l.length>2e3?`Showing 2,000 of ${l.length.toLocaleString()} points (sampled)`:`${l.length.toLocaleString()} points`})]})}const bxn="#a855f7";function mxn({result:l}){const[s,u]=ue.useState("prediction"),h=ue.useMemo(()=>{var p,k;return[{key:"prediction",label:"Prediction"},...(p=l.feature_importance_loss)!=null&&p.length?[{key:"loss",label:"Loss"}]:[],...(k=l.shap_summary)!=null&&k.length?[{key:"shap",label:"SHAP"}]:[]]},[l.feature_importance_loss,l.shap_summary]),g=ue.useMemo(()=>s==="shap"?(l.shap_summary||[]).map(p=>({feature:p.feature,importance:p.mean_abs_shap})):s==="loss"?l.feature_importance_loss||[]:l.feature_importance,[s,l]);if(g.length===0)return O.jsx("div",{className:"flex items-center justify-center h-full text-xs",style:{color:"var(--text-muted)"},children:"No feature importance data available"});const m=Math.max(...g.map(p=>Math.abs(p.importance)));return O.jsxs("div",{className:"space-y-2",children:[h.length>1&&O.jsx("div",{className:"flex gap-1",children:h.map(p=>O.jsx("button",{onClick:()=>u(p.key),className:"px-2 py-0.5 rounded text-[10px] font-medium",style:{background:s===p.key?"var(--accent-soft)":"var(--chrome-hover)",color:s===p.key?"var(--accent)":"var(--text-muted)"},children:p.label},p.key))}),O.jsx("div",{className:"overflow-y-auto",style:{maxHeight:400},children:O.jsx("div",{className:"space-y-0.5",children:g.map((p,k)=>O.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono group",children:[O.jsx("span",{className:"w-5 text-right shrink-0 text-[10px]",style:{color:"var(--text-muted)"},children:k+1}),O.jsx("span",{className:"truncate shrink-0",style:{color:"var(--text-secondary)",width:140},title:p.feature,children:p.feature}),O.jsx("div",{className:"flex-1 h-2 rounded-full overflow-hidden",style:{background:"var(--chrome-hover)"},children:O.jsx("div",{className:"h-full rounded-full",style:{width:m>0?`${Math.abs(p.importance)/m*100}%`:"0%",background:bxn,opacity:.7}})}),O.jsx("span",{className:"w-14 text-right shrink-0",style:{color:"var(--text-muted)"},children:p.importance.toFixed(1)})]},`${p.feature}-${k}`))})}),O.jsxs("div",{className:"text-[10px]",style:{color:"var(--text-muted)"},children:[g.length," feature",g.length!==1?"s":""]})]})}function Wjt({features:l,selected:s,onSelect:u,width:h=180}){const[g,m]=ue.useState(""),p=ue.useMemo(()=>{if(!g)return l;const S=g.toLowerCase();return l.filter(C=>C.feature.toLowerCase().includes(S))},[l,g]),k=l.length>0?Math.max(...l.map(S=>Math.abs(S.importance))):1;return O.jsxs("div",{className:"flex flex-col shrink-0",style:{width:h,borderRight:"1px solid var(--border)"},children:[O.jsx("div",{className:"px-2 py-1.5 shrink-0",style:{borderBottom:"1px solid var(--border)"},children:O.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 rounded",style:{background:"var(--bg-input)",border:"1px solid var(--border)"},children:[O.jsx(XX,{size:11,style:{color:"var(--text-muted)"}}),O.jsx("input",{type:"text",value:g,onChange:S=>m(S.target.value),placeholder:"Search features...",className:"bg-transparent border-none outline-none text-[11px] w-full",style:{color:"var(--text-primary)"}})]})}),O.jsxs("div",{className:"flex-1 overflow-y-auto",children:[p.length===0&&O.jsx("div",{className:"px-2 py-3 text-[11px] text-center",style:{color:"var(--text-muted)"},children:"No features found"}),p.map(S=>{const C=S.feature===s,N=k>0?Math.abs(S.importance)/k*100:0;return O.jsx("button",{onClick:()=>u(S.feature),className:"w-full text-left px-2 py-1 flex items-center gap-1.5 transition-colors",style:{background:C?"var(--accent-soft)":"transparent",borderLeft:C?"2px solid var(--accent)":"2px solid transparent"},onMouseEnter:_=>{C||(_.currentTarget.style.background="var(--chrome-hover)")},onMouseLeave:_=>{C||(_.currentTarget.style.background="transparent")},children:O.jsxs("div",{className:"flex-1 min-w-0",children:[O.jsx("div",{className:"text-[11px] truncate",style:{color:C?"var(--accent)":"var(--text-secondary)"},children:S.feature}),O.jsx("div",{className:"w-full h-1 rounded-full overflow-hidden mt-0.5",style:{background:"var(--chrome-hover)"},children:O.jsx("div",{className:"h-full rounded-full",style:{width:`${N}%`,background:C?"var(--accent)":"#a855f7",opacity:.6}})})]})},S.feature)})]})]})}const wxn="rgba(255,255,255,.06)",UV="var(--text-muted)",JV=10,QCe="#22c55e",GCe="#a855f7",o4t="rgba(255,255,255,.12)";function vxn({result:l}){const s=l.ave_per_feature,u=ue.useMemo(()=>{if(!s||s.length===0)return[];const k=new Map;for(const S of l.feature_importance)k.set(S.feature,S.importance);return s.map(S=>({feature:S.feature,importance:k.get(S.feature)??0}))},[s,l.feature_importance]),[h,g]=ue.useState(u.length>0?u[0].feature:null),m=ue.useCallback(k=>{g(k)},[]),p=ue.useMemo(()=>!h||!s?null:s.find(k=>k.feature===h)??null,[h,s]);return!s||s.length===0?O.jsx("div",{className:"flex items-center justify-center h-full text-xs",style:{color:"var(--text-muted)"},children:"No AvE data available"}):O.jsxs("div",{className:"flex h-full",style:{minHeight:200},children:[O.jsx(Wjt,{features:u,selected:h,onSelect:m}),O.jsx("div",{className:"flex-1 px-3 py-1 overflow-auto",children:p?O.jsx(yxn,{data:p}):O.jsx("div",{className:"flex items-center justify-center h-full text-xs",style:{color:"var(--text-muted)"},children:"Select a feature"})})]})}function yxn({data:l}){const s=l.bins;if(s.length===0)return O.jsxs("div",{className:"text-xs",style:{color:"var(--text-muted)"},children:["No bins for ",l.feature]});const u=520,h=240,g=55,m=55,p=24,k=50,S=u-g-m,C=h-p-k,N=s.flatMap(we=>[we.avg_actual,we.avg_predicted]),_=Math.min(...N),P=Math.max(...N),R=(P-_)*.1||.001,q=_-R,X=P+R-q,J=Math.max(...s.map(we=>we.exposure)),ee=S/s.length,te=ee*.6,ie=we=>g+we*ee+ee/2,oe=we=>p+C-(we-q)/X*C,se=we=>p+C-we/(J||1)*C,ge=4,Ne=Array.from({length:ge+1},(we,Z)=>q+Z/ge*X),qe=s.map((we,Z)=>`${Z===0?"M":"L"}${ie(Z).toFixed(1)},${oe(we.avg_actual).toFixed(1)}`).join(" "),Ke=s.map((we,Z)=>`${Z===0?"M":"L"}${ie(Z).toFixed(1)},${oe(we.avg_predicted).toFixed(1)}`).join(" "),Le=(we,Z)=>we.length>Z?we.slice(0,Z-1)+"…":we;return O.jsxs("div",{children:[O.jsxs("div",{className:"text-xs font-medium mb-1",style:{color:"var(--text-primary)"},children:[l.feature,O.jsxs("span",{className:"ml-2 text-[10px]",style:{color:"var(--text-muted)"},children:["(",l.type,")"]})]}),O.jsxs("svg",{width:u,height:h,style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[Ne.map((we,Z)=>{const pe=oe(we);return O.jsxs("g",{children:[O.jsx("line",{x1:g,y1:pe,x2:g+S,y2:pe,stroke:wxn,strokeWidth:1}),O.jsx("text",{x:g-6,y:pe+3,textAnchor:"end",fontSize:JV,fill:UV,children:we.toPrecision(3)})]},`gy-${Z}`)}),[0,.5,1].map((we,Z)=>{const pe=we*J,Re=se(pe);return O.jsx("text",{x:u-m+6,y:Re+3,textAnchor:"start",fontSize:JV,fill:UV,opacity:.5,children:pe>=1e3?`${(pe/1e3).toFixed(0)}K`:pe.toFixed(0)},`exp-${Z}`)}),s.map((we,Z)=>{const pe=ie(Z),Re=we.exposure/(J||1)*C;return O.jsx("rect",{x:pe-te/2,y:p+C-Re,width:te,height:Re,fill:o4t,rx:1},`exp-${Z}`)}),O.jsx("path",{d:qe,fill:"none",stroke:QCe,strokeWidth:1.5}),s.map((we,Z)=>O.jsx("circle",{cx:ie(Z),cy:oe(we.avg_actual),r:2.5,fill:QCe},`a-${Z}`)),O.jsx("path",{d:Ke,fill:"none",stroke:GCe,strokeWidth:1.5}),s.map((we,Z)=>O.jsx("circle",{cx:ie(Z),cy:oe(we.avg_predicted),r:2.5,fill:GCe},`p-${Z}`)),s.map((we,Z)=>{const pe=ie(Z),Re=Le(we.label,10),he=s.length>6;return O.jsx("text",{x:pe,y:p+C+(he?12:14),textAnchor:he?"end":"middle",fontSize:s.length>12?8:JV,fill:UV,transform:he?`rotate(-45,${pe},${p+C+12})`:void 0,children:Re},`xl-${Z}`)}),O.jsx("text",{x:10,y:p+C/2,textAnchor:"middle",fontSize:JV,fill:UV,transform:`rotate(-90,10,${p+C/2})`,children:"Avg value"}),O.jsx("text",{x:u-8,y:p+C/2,textAnchor:"middle",fontSize:JV,fill:UV,opacity:.5,transform:`rotate(90,${u-8},${p+C/2})`,children:"Exposure"})]}),O.jsxs("div",{className:"flex gap-4 mt-1.5 text-[11px]",style:{color:"var(--text-muted)"},children:[O.jsxs("span",{className:"flex items-center gap-1.5",children:[O.jsx("span",{className:"inline-block w-3 h-0.5 rounded",style:{background:QCe}}),"Actual"]}),O.jsxs("span",{className:"flex items-center gap-1.5",children:[O.jsx("span",{className:"inline-block w-3 h-0.5 rounded",style:{background:GCe}}),"Predicted"]}),O.jsxs("span",{className:"flex items-center gap-1.5",children:[O.jsx("span",{className:"inline-block w-3 h-2 rounded-sm",style:{background:o4t}}),"Exposure"]})]})]})}const aAe="rgba(255,255,255,.06)",MM="var(--text-muted)",AM=10,c4t="#a855f7",xxn="#a855f7";function kxn({result:l}){const s=l.pdp_data,u=ue.useMemo(()=>{if(!s||s.length===0)return[];const k=new Map;for(const S of l.feature_importance)k.set(S.feature,S.importance);return s.map(S=>({feature:S.feature,importance:k.get(S.feature)??0}))},[s,l.feature_importance]),[h,g]=ue.useState(u.length>0?u[0].feature:null),m=ue.useCallback(k=>{g(k)},[]),p=ue.useMemo(()=>!h||!s?null:s.find(k=>k.feature===h)??null,[h,s]);return!s||s.length===0?O.jsx("div",{className:"flex items-center justify-center h-full text-xs",style:{color:"var(--text-muted)"},children:"No PDP data available"}):O.jsxs("div",{className:"flex h-full",style:{minHeight:200},children:[O.jsx(Wjt,{features:u,selected:h,onSelect:m}),O.jsx("div",{className:"flex-1 px-3 py-1 overflow-auto",children:p?O.jsx(Oxn,{data:p}):O.jsx("div",{className:"flex items-center justify-center h-full text-xs",style:{color:"var(--text-muted)"},children:"Select a feature"})})]})}function Oxn({data:l}){const s=l.grid;if(s.length===0)return O.jsxs("div",{className:"text-xs",style:{color:"var(--text-muted)"},children:["No PDP data for ",l.feature]});const u=l.type==="numeric";return O.jsxs("div",{children:[O.jsxs("div",{className:"text-xs font-medium mb-1",style:{color:"var(--text-primary)"},children:[l.feature,O.jsxs("span",{className:"ml-2 text-[10px]",style:{color:"var(--text-muted)"},children:["(",l.type,")"]})]}),u?O.jsx(Sxn,{grid:s}):O.jsx(jxn,{grid:s})]})}function Sxn({grid:l}){const C=l.map(Le=>Number(Le.value)),N=l.map(Le=>Le.avg_prediction),_=Math.min(...C),R=Math.max(...C)-_||1,q=Math.min(...N),F=Math.max(...N),X=(F-q)*.1||.001,J=q-X,te=F+X-J,ie=Le=>55+(Le-_)/R*449,oe=Le=>184-(Le-J)/te*168,se=4,ge=Math.min(5,l.length-1),Ne=Array.from({length:se+1},(Le,we)=>J+we/se*te),qe=Array.from({length:ge+1},(Le,we)=>Math.round(we/ge*(l.length-1))),Ke=l.map((Le,we)=>`${we===0?"M":"L"}${ie(Number(Le.value)).toFixed(1)},${oe(Le.avg_prediction).toFixed(1)}`).join(" ");return O.jsx(O.Fragment,{children:O.jsxs("svg",{width:520,height:220,style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[Ne.map((Le,we)=>{const Z=oe(Le);return O.jsxs("g",{children:[O.jsx("line",{x1:55,y1:Z,x2:504,y2:Z,stroke:aAe,strokeWidth:1}),O.jsx("text",{x:49,y:Z+3,textAnchor:"end",fontSize:AM,fill:MM,children:Le.toPrecision(3)})]},`gy-${we}`)}),qe.map((Le,we)=>{const Z=Number(l[Le].value),pe=ie(Z);return O.jsxs("g",{children:[O.jsx("line",{x1:pe,y1:16,x2:pe,y2:184,stroke:aAe,strokeWidth:1}),O.jsx("text",{x:pe,y:198,textAnchor:"middle",fontSize:AM,fill:MM,children:Z.toPrecision(3)})]},`gx-${we}`)}),O.jsx("path",{d:Ke,fill:"none",stroke:c4t,strokeWidth:1.5}),l.map((Le,we)=>O.jsx("circle",{cx:ie(Number(Le.value)),cy:oe(Le.avg_prediction),r:2.5,fill:c4t},we)),O.jsx("text",{x:55+449/2,y:216,textAnchor:"middle",fontSize:AM,fill:MM,children:"Feature value"}),O.jsx("text",{x:10,y:16+168/2,textAnchor:"middle",fontSize:AM,fill:MM,transform:`rotate(-90,10,${16+168/2})`,children:"Avg prediction"})]})})}function jxn({grid:l}){const C=l.map(oe=>oe.avg_prediction),N=Math.min(0,Math.min(...C)),P=Math.max(...C)*1.1-N||1,R=449/l.length,q=R*.6,F=oe=>55+oe*R+R/2,X=oe=>170-(oe-N)/P*154,J=X(0),ee=4,te=Array.from({length:ee+1},(oe,se)=>N+se/ee*P),ie=(oe,se)=>oe.length>se?oe.slice(0,se-1)+"…":oe;return O.jsx(O.Fragment,{children:O.jsxs("svg",{width:520,height:220,style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[te.map((oe,se)=>{const ge=X(oe);return O.jsxs("g",{children:[O.jsx("line",{x1:55,y1:ge,x2:504,y2:ge,stroke:aAe,strokeWidth:1}),O.jsx("text",{x:49,y:ge+3,textAnchor:"end",fontSize:AM,fill:MM,children:oe.toPrecision(3)})]},`gy-${se}`)}),l.map((oe,se)=>{const ge=F(se),Ne=Math.abs(oe.avg_prediction-0)/P*154,qe=oe.avg_prediction>=0?X(oe.avg_prediction):J,Ke=ie(String(oe.value),10),Le=l.length>5;return O.jsxs("g",{children:[O.jsx("rect",{x:ge-q/2,y:qe,width:q,height:Ne,fill:xxn,opacity:.7,rx:1}),O.jsx("text",{x:ge,y:170+(Le?12:14),textAnchor:Le?"end":"middle",fontSize:l.length>10?8:AM,fill:MM,transform:Le?`rotate(-45,${ge},182)`:void 0,children:Ke})]},se)}),N<0&&O.jsx("line",{x1:55,y1:J,x2:504,y2:J,stroke:"rgba(255,255,255,.15)",strokeWidth:1}),O.jsx("text",{x:10,y:16+154/2,textAnchor:"middle",fontSize:AM,fill:MM,transform:`rotate(-90,10,${16+154/2})`,children:"Avg prediction"})]})})}const Txn={"***":"var(--signif-high)","**":"var(--signif-med)","*":"var(--signif-low)",".":"var(--signif-marginal)","":"var(--text-muted)"};function Exn(l){return Number.isFinite(l)?l<.001?"var(--signif-high)":l<.01?"var(--signif-med)":l<.05?"var(--signif-low)":l<.1?"var(--signif-marginal)":"var(--text-muted)":"var(--text-muted)"}function Cxn({result:l}){const s=l.glm_coefficients,[u,h]=ue.useState("p_value"),[g,m]=ue.useState("asc"),p=ue.useMemo(()=>!s||s.length===0?[]:[...s].sort((N,_)=>{const P=N[u],R=_[u];if(typeof P=="string"&&typeof R=="string")return g==="asc"?P.localeCompare(R):R.localeCompare(P);const q=Number(P),F=Number(R);return g==="asc"?q-F:F-q}),[s,u,g]);if(!s||s.length===0)return O.jsx("div",{className:"flex items-center justify-center h-full text-xs",style:{color:"var(--text-muted)"},children:"No coefficient data available"});const k=N=>{u===N?m(_=>_==="asc"?"desc":"asc"):(h(N),m("asc"))},S=N=>u===N?g==="asc"?" ▲":" ▼":"",C=[{key:"feature",label:"Term",align:"text-left"},{key:"coefficient",label:"Estimate",align:"text-right"},{key:"std_error",label:"Std. Error",align:"text-right"},{key:"z_value",label:"z",align:"text-right"},{key:"p_value",label:"Pr(>|z|)",align:"text-right"}];return O.jsxs("div",{className:"space-y-2",children:[O.jsx("div",{className:"overflow-auto",style:{maxHeight:480},children:O.jsxs("table",{className:"w-full text-xs font-mono",style:{borderCollapse:"collapse"},children:[O.jsx("thead",{children:O.jsxs("tr",{style:{borderBottom:"1px solid var(--border)"},children:[C.map(N=>O.jsxs("th",{onClick:()=>k(N.key),className:`px-2 py-1.5 font-semibold cursor-pointer select-none ${N.align}`,style:{color:"var(--text-muted)",whiteSpace:"nowrap"},children:[N.label,S(N.key)]},N.key)),O.jsx("th",{className:"px-2 py-1.5 text-center font-semibold",style:{color:"var(--text-muted)"},children:"Sig."})]})}),O.jsx("tbody",{children:p.map((N,_)=>O.jsxs("tr",{style:{borderBottom:"1px solid var(--border)",background:_%2===0?"transparent":"rgba(255,255,255,.02)"},children:[O.jsx("td",{className:"px-2 py-1 text-left truncate",style:{color:"var(--text-primary)",maxWidth:200},title:N.feature,children:N.feature}),O.jsx("td",{className:"px-2 py-1 text-right",style:{color:"var(--text-primary)"},children:Wfe(N.coefficient,6)}),O.jsx("td",{className:"px-2 py-1 text-right",style:{color:"var(--text-secondary)"},children:Wfe(N.std_error,6)}),O.jsx("td",{className:"px-2 py-1 text-right",style:{color:"var(--text-secondary)"},children:Wfe(N.z_value,3)}),O.jsx("td",{className:"px-2 py-1 text-right",style:{color:Exn(N.p_value)},children:typeof N.p_value=="number"&&Number.isFinite(N.p_value)?N.p_value<1e-4?N.p_value.toExponential(2):N.p_value.toFixed(4):"N/A"}),O.jsx("td",{className:"px-2 py-1 text-center font-bold",style:{color:Txn[N.significance]||"var(--text-muted)"},children:N.significance||""})]},N.feature))})]})}),O.jsxs("div",{className:"flex gap-3 text-[10px]",style:{color:"var(--text-muted)"},children:[O.jsx("span",{children:"Signif. codes:"}),O.jsx("span",{style:{color:"var(--signif-high)"},children:"*** < 0.001"}),O.jsx("span",{style:{color:"var(--signif-med)"},children:"** < 0.01"}),O.jsx("span",{style:{color:"var(--signif-low)"},children:"* < 0.05"}),O.jsx("span",{style:{color:"var(--signif-marginal)"},children:". < 0.1"}),O.jsxs("span",{children:[s.length," term",s.length!==1?"s":""]})]})]})}const UCe="var(--chart-above)",JCe="var(--chart-below)";function Mxn({result:l}){const s=l.glm_relativities,[u,h]=ue.useState("deviation"),g=ue.useMemo(()=>!s||s.length===0?[]:[...s].sort((k,S)=>{switch(u){case"name":return k.feature.localeCompare(S.feature);case"relativity":return S.relativity-k.relativity;case"deviation":return Math.abs(S.relativity-1)-Math.abs(k.relativity-1)}}),[s,u]);if(!s||s.length===0)return O.jsx("div",{className:"flex items-center justify-center h-full text-xs",style:{color:"var(--text-muted)"},children:"No relativity data available"});const m=Math.max(...s.map(k=>Math.abs(k.relativity-1)),.1),p=s.some(k=>k.ci_lower!=null&&k.ci_upper!=null);return O.jsxs("div",{className:"space-y-2",children:[O.jsx("div",{className:"flex gap-1",children:[{key:"deviation",label:"By deviation"},{key:"relativity",label:"By value"},{key:"name",label:"A–Z"}].map(k=>O.jsx("button",{onClick:()=>h(k.key),className:"px-2 py-0.5 rounded text-[10px] font-medium",style:{background:u===k.key?"var(--accent-soft)":"var(--chrome-hover)",color:u===k.key?"var(--accent)":"var(--text-muted)"},children:k.label},k.key))}),O.jsx("div",{className:"overflow-y-auto",style:{maxHeight:480},children:O.jsx("div",{className:"space-y-0.5",children:g.map((k,S)=>{const C=typeof k.relativity=="number"?k.relativity-1:0,N=Math.abs(C)/m*50,_=C>=0;return O.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono group",children:[O.jsx("span",{className:"truncate shrink-0 text-right",style:{color:"var(--text-secondary)",width:140},title:k.feature,children:k.feature}),O.jsxs("div",{className:"flex-1 h-4 relative",style:{background:"var(--chrome-hover)",borderRadius:3},children:[O.jsx("div",{className:"absolute top-0 bottom-0 w-px",style:{left:"50%",background:"rgba(255,255,255,.15)"}}),O.jsx("div",{className:"absolute top-0.5 bottom-0.5 rounded-sm",style:{left:_?"50%":`${50-N}%`,width:`${N}%`,background:_?UCe:JCe,opacity:.7}}),p&&k.ci_lower!=null&&k.ci_upper!=null&&Number.isFinite(k.ci_lower)&&Number.isFinite(k.ci_upper)&&O.jsx(O.Fragment,{children:O.jsx("div",{className:"absolute top-1/2 h-px",style:{left:`${50+(k.ci_lower-1)/m*50}%`,width:`${(k.ci_upper-k.ci_lower)/m*50}%`,background:"rgba(255,255,255,.3)",transform:"translateY(-50%)"}})})]}),O.jsx("span",{className:"w-14 text-right shrink-0",style:{color:_?UCe:JCe},children:Wfe(k.relativity,3)})]},`${k.feature}-${S}`)})})}),O.jsxs("div",{className:"flex gap-4 text-[10px]",style:{color:"var(--text-muted)"},children:[O.jsx("span",{children:"Baseline = 1.0 (center line)"}),O.jsx("span",{style:{color:UCe},children:"■ Above baseline"}),O.jsx("span",{style:{color:JCe},children:"■ Below baseline"}),p&&O.jsx("span",{children:"— CI whiskers"}),O.jsxs("span",{children:[s.length," term",s.length!==1?"s":""]})]})]})}const Axn=["summary","coefficients","relativities","loss","lift","residuals","features","ave","pdp"],Nxn={summary:"Summary",coefficients:"Coefficients",relativities:"Relativities",loss:"Loss",lift:"Lift",residuals:"Residuals",features:"Features",ave:"AvE",pdp:"PDP"};function _xn({data:l,nodeId:s}){const{result:u}=l,[h,g]=ue.useState(!1),{height:m,containerRef:p,onDragStart:k}=Pde({initialHeight:360,minHeight:180,maxHeight:700}),[S,C]=ue.useState("summary"),N=Oc(F=>{var X;return((X=F.trainJobs[s])==null?void 0:X.progress)??null}),_=Sc(F=>F.mlflow),P=_.status==="connected"?{installed:!0,backend:_.backend,host:_.host}:null,R=Axn.filter(F=>{switch(F){case"summary":return!0;case"coefficients":return u.glm_coefficients&&u.glm_coefficients.length>0;case"relativities":return u.glm_relativities&&u.glm_relativities.length>0;case"loss":return u.loss_history&&u.loss_history.length>1;case"lift":return u.double_lift&&u.double_lift.length>0||u.lorenz_curve&&u.lorenz_curve.length>0;case"residuals":return u.residuals_histogram&&u.residuals_histogram.length>0||u.actual_vs_predicted&&u.actual_vs_predicted.length>0;case"features":return u.feature_importance.length>0;case"ave":return u.ave_per_feature&&u.ave_per_feature.length>0;case"pdp":return u.pdp_data&&u.pdp_data.length>0;default:return!1}}),q=Object.entries(u.metrics).slice(0,2).map(([F,X])=>`${F}: ${X.toFixed(4)}`).join(" | ");return h?O.jsx("div",{className:"h-8 flex items-center px-4 shrink-0",style:{borderTop:"1px solid var(--border)",background:"var(--bg-panel)"},children:O.jsxs("button",{onClick:()=>g(!1),className:"flex items-center gap-2 text-xs",style:{color:"var(--text-secondary)"},children:[O.jsx(dde,{size:14}),O.jsx(Vxt,{size:14}),O.jsx("span",{className:"font-medium",children:l.nodeLabel}),O.jsx("span",{style:{color:"var(--text-muted)"},children:u.status==="error"?"Error":q})]})}):O.jsxs("div",{ref:p,style:{height:m,borderTop:"1px solid var(--border)",background:"var(--bg-panel)"},className:"flex flex-col shrink-0 relative",children:[O.jsx("div",{onMouseDown:k,className:"absolute top-0 left-0 right-0 h-1 cursor-ns-resize z-10 transition-colors",style:{background:"var(--chrome-border)"},onMouseEnter:F=>{F.currentTarget.style.background="var(--accent)"},onMouseLeave:F=>{F.currentTarget.style.background="var(--chrome-border)"}}),N&&O.jsx("div",{className:"h-1 w-full shrink-0",style:{background:"rgba(168,85,247,.15)"},children:O.jsx("div",{className:"h-full transition-all duration-300",style:{width:`${Math.max(N.progress*100,2)}%`,background:"#a855f7"}})}),O.jsxs("div",{className:"min-h-9 flex items-center flex-wrap px-4 shrink-0 gap-x-2 gap-y-1 py-1.5",style:{borderBottom:"1px solid var(--border)",background:"var(--bg-elevated)"},children:[O.jsx(Vxt,{size:14,style:{color:"#a855f7"}}),O.jsx("span",{className:"text-xs font-bold",style:{color:"var(--text-primary)"},children:l.nodeLabel}),O.jsx("div",{className:"flex gap-1 ml-3",children:R.map(F=>O.jsx("button",{onClick:()=>C(F),className:"px-2 py-0.5 rounded text-[10px] font-medium",style:{background:S===F?"var(--accent-soft)":"var(--chrome-hover)",color:S===F?"var(--accent)":"var(--text-muted)"},children:Nxn[F]},F))}),O.jsx("div",{className:"ml-auto flex items-center gap-1",children:O.jsx("button",{onClick:()=>g(!0),className:"p-1 rounded transition-colors",style:{color:"var(--text-muted)"},onMouseEnter:F=>{F.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:F=>{F.currentTarget.style.background="transparent"},children:O.jsx(rg,{size:14})})})]}),O.jsxs("div",{className:"flex-1 overflow-auto px-4 py-3",children:[S==="summary"&&O.jsx(ixn,{result:u,jobId:l.jobId,mlflowBackend:P,config:{}}),S==="coefficients"&&O.jsx(Cxn,{result:u}),S==="relativities"&&O.jsx(Mxn,{result:u}),S==="loss"&&O.jsx(rxn,{result:u}),S==="lift"&&O.jsx(sxn,{result:u}),S==="residuals"&&O.jsx(dxn,{result:u}),S==="features"&&O.jsx(mxn,{result:u}),S==="ave"&&O.jsx(vxn,{result:u}),S==="pdp"&&O.jsx(kxn,{result:u})]})]})}const fX=l=>PAe(l,6);function Dxn({step:l,index:s,tracedColumn:u}){const[h,g]=ue.useState(!1),m=Ohe[l.node_type]||"#06b6d4",p=wOt[l.node_type]||"NODE",k=l.column_relevant,{columns_added:S,columns_modified:C,columns_removed:N}=l.schema_diff,_=[];if(u&&l.output_values[u]!==void 0){const q=S.includes(u)?"added":C.includes(u)?"modified":"value";_.push({col:u,val:l.output_values[u],tag:q})}else{for(const q of S.slice(0,2))_.push({col:q,val:l.output_values[q],tag:"added"});for(const q of C.slice(0,2))_.push({col:q,val:l.output_values[q],tag:"modified"})}const P={added:{bg:"rgba(34,197,94,.12)",color:"#4ade80",label:"+"},modified:{bg:"rgba(251,191,36,.12)",color:"#fbbf24",label:"~"},value:{bg:"rgba(255,255,255,.06)",color:"var(--text-secondary)",label:"="}},R=Object.keys(l.output_values);return O.jsxs("div",{className:"rounded-lg overflow-hidden transition-opacity",style:{border:k?`1px solid ${m}40`:"1px solid var(--border)",background:"var(--bg-elevated)",opacity:k?1:.55},children:[O.jsxs("button",{onClick:()=>g(!h),className:"w-full flex items-center gap-2 px-3 py-2 text-left transition-colors",style:{background:"transparent"},onMouseEnter:q=>q.currentTarget.style.background="var(--bg-hover)",onMouseLeave:q=>q.currentTarget.style.background="transparent",children:[h?O.jsx(rg,{size:12,style:{color:"var(--text-muted)"}}):O.jsx(n5,{size:12,style:{color:"var(--text-muted)"}}),O.jsx("span",{className:"text-[11px] font-mono font-bold shrink-0",style:{color:"var(--text-muted)",minWidth:"1.2em"},children:s+1}),O.jsx("span",{className:"text-[13px] font-semibold truncate",style:{color:"var(--text-primary)"},children:l.node_name}),O.jsx("span",{className:"text-[9px] font-bold uppercase tracking-wider shrink-0 px-1.5 py-0.5 rounded",style:{color:m,background:`${m}15`},children:p}),O.jsxs("span",{className:"ml-auto text-[10px] font-mono shrink-0",style:{color:"var(--text-muted)"},children:[l.execution_ms.toFixed(1),"ms"]})]}),_.length>0&&!h&&O.jsx("div",{className:"px-3 pb-2 flex flex-wrap gap-1.5",style:{paddingLeft:"2.8rem"},children:_.map(({col:q,val:F,tag:X})=>{const J=P[X];return O.jsxs("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[11px] font-mono",style:{background:J.bg,color:J.color},children:[O.jsx("span",{className:"font-bold",children:J.label}),q,": ",fX(F)]},q)})}),h&&O.jsxs("div",{className:"px-3 pb-3",style:{borderTop:"1px solid var(--border)"},children:[O.jsxs("div",{className:"flex flex-wrap gap-2 py-2 text-[10px]",children:[S.length>0&&O.jsxs("span",{style:{color:"#4ade80"},children:["+",S.length," added"]}),C.length>0&&O.jsxs("span",{style:{color:"#fbbf24"},children:["~",C.length," modified"]}),N.length>0&&O.jsxs("span",{style:{color:"#f87171"},children:["-",N.length," removed"]}),O.jsxs("span",{style:{color:"var(--text-muted)"},children:[l.schema_diff.columns_passed.length," passed through"]})]}),O.jsx("div",{className:"space-y-0.5",children:R.map(q=>{const F=S.includes(q),X=C.includes(q),J=N.includes(q),ee=l.input_values[q],te=l.output_values[q],ie=q===u;let oe="var(--text-secondary)",se="";return F?(oe="#4ade80",se="+"):X?(oe="#fbbf24",se="~"):J&&(oe="#f87171",se="-"),O.jsxs("div",{className:"flex items-center gap-2 px-2 py-0.5 rounded text-[11px] font-mono",style:{background:ie?"var(--accent-soft)":"transparent",borderLeft:ie?"2px solid var(--accent)":"2px solid transparent"},children:[O.jsx("span",{className:"font-bold w-3",style:{color:oe},children:se}),O.jsx("span",{className:"truncate",style:{color:oe,minWidth:"6em",maxWidth:"10em"},children:q}),X&&ee!==void 0&&O.jsxs(O.Fragment,{children:[O.jsx("span",{style:{color:"var(--text-muted)"},children:fX(ee)}),O.jsx("span",{style:{color:"var(--text-muted)"},children:"→"})]}),O.jsx("span",{style:{color:F||X?oe:"var(--text-secondary)"},children:fX(te)})]},q)})})]})]})}function Lxn({trace:l,onClose:s}){return O.jsxs(cW,{children:[O.jsxs("div",{className:"px-4 py-3 flex items-center gap-2 shrink-0",style:{borderBottom:"1px solid var(--border)"},children:[O.jsx(ehn,{size:14,style:{color:"var(--accent)"}}),O.jsxs("div",{className:"flex-1 min-w-0",children:[O.jsxs("div",{className:"text-xs font-bold",style:{color:"var(--text-primary)"},children:["Trace",l.column?`: ${l.column}`:""]}),O.jsxs("div",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:[l.row_id_column&&l.row_id_value!=null?O.jsxs(O.Fragment,{children:[O.jsx("span",{className:"font-mono",children:l.row_id_column})," = ",O.jsx("span",{className:"font-mono font-medium",style:{color:"var(--text-secondary)"},children:fX(l.row_id_value)})]}):O.jsxs(O.Fragment,{children:["Row ",l.row_index]})," ","· ",l.nodes_in_trace," of ",l.total_nodes_in_pipeline," nodes"]})]}),O.jsx("button",{onClick:s,className:"p-1 rounded transition-colors",style:{color:"var(--text-muted)"},onMouseEnter:u=>u.currentTarget.style.background="var(--bg-hover)",onMouseLeave:u=>u.currentTarget.style.background="transparent",children:O.jsx(r5,{size:14})})]}),O.jsxs("div",{className:"px-4 py-2 shrink-0",style:{borderBottom:"1px solid var(--border)",background:"var(--bg-elevated)"},children:[O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx("span",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:"Result"}),O.jsx("span",{className:"px-2 py-0.5 rounded text-[13px] font-mono font-bold",style:{background:"var(--accent-soft)",color:"var(--accent)"},children:fX(l.output_value)})]}),O.jsxs("div",{className:"flex items-center gap-3 mt-1.5 text-[10px]",style:{color:"var(--text-muted)"},children:[O.jsxs("span",{className:"inline-flex items-center gap-1",children:[O.jsx(lOt,{size:10}),l.execution_ms.toFixed(1),"ms"]}),O.jsxs("span",{className:"inline-flex items-center gap-1",children:[O.jsx(gOt,{size:10}),l.steps.length," steps"]})]})]}),O.jsx("div",{className:"flex-1 overflow-y-auto p-3 space-y-2",children:l.steps.map((u,h)=>O.jsx(Dxn,{step:u,index:h,tracedColumn:l.column},u.node_id))})]})}const Pxn={success:AAe,error:fMe,info:Nfn,warning:Ty},Ixn={success:"#22c55e",error:"#ef4444",info:"#6366f1",warning:"#f59e0b"};function Rxn({toast:l,onDismiss:s}){const u=Pxn[l.type],h=Ixn[l.type];return ue.useEffect(()=>{const g=setTimeout(()=>s(l.id),3e3);return()=>clearTimeout(g)},[l.id,s]),O.jsxs("div",{role:"alert",className:"px-4 py-2.5 rounded-lg shadow-xl flex items-center gap-2.5 text-[12px] font-medium animate-slide-in min-w-[240px] max-w-[380px]",style:{background:"var(--bg-panel)",color:"var(--text-primary)",border:"1px solid var(--border-bright)"},children:[O.jsx(u,{size:14,style:{color:h},className:"shrink-0"}),O.jsx("span",{className:"flex-1",style:{color:"var(--text-primary)"},children:l.text}),O.jsx("button",{onClick:()=>s(l.id),"aria-label":"Dismiss notification",className:"p-0.5 rounded shrink-0 transition-colors",style:{color:"var(--text-muted)"},onMouseEnter:g=>{g.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:g=>{g.currentTarget.style.background="transparent"},children:O.jsx(r5,{size:12})})]})}function $xn(){const l=Ay(u=>u.toasts),s=Ay(u=>u.dismissToast);return l.length===0?null:O.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 items-end","aria-live":"polite",children:l.map(u=>O.jsx(Rxn,{toast:u,onDismiss:s},u.id))})}class VV extends ue.Component{constructor(s){super(s),this.state={hasError:!1,error:null}}static getDerivedStateFromError(s){return{hasError:!0,error:s}}componentDidCatch(s,u){console.error(`[ErrorBoundary${this.props.name?`: ${this.props.name}`:""}]`,s,u.componentStack)}render(){var s;return this.state.hasError?this.props.fallback?this.props.fallback:O.jsxs("div",{style:{padding:"16px",background:"var(--bg-secondary, #1e1e2e)",border:"1px solid var(--border, #333)",borderRadius:"8px",color:"var(--text-secondary, #999)",fontSize:"12px"},children:[O.jsx("p",{style:{margin:"0 0 8px",fontWeight:600,color:"var(--text-primary, #ccc)"},children:"Something went wrong"}),O.jsx("p",{style:{margin:"0 0 12px",fontFamily:"monospace",fontSize:"11px"},children:(s=this.state.error)==null?void 0:s.message}),O.jsx("button",{onClick:()=>this.setState({hasError:!1,error:null}),style:{padding:"4px 12px",fontSize:"11px",background:"var(--bg-input, #2a2a3e)",border:"1px solid var(--border, #333)",borderRadius:"4px",color:"var(--text-primary, #ccc)",cursor:"pointer"},children:"Try again"})]}):this.props.children}}function Bxn({x:l,y:s,nodeLabel:u,onClose:h,onDelete:g,onDuplicate:m,onRename:p,onCreateInstance:k,onDissolveSubmodel:S,isSubmodel:C,nodeId:N}){const _=ue.useRef(null),[P,R]=ue.useState(0),q=ue.useRef([]),F=ue.useMemo(()=>{const X=[{label:"Rename",icon:ghn,action:()=>p(N)},{label:"Duplicate",icon:afn,action:()=>m(N)}];if(k&&!C&&X.push({label:"Create Instance",icon:_Ae,action:()=>k(N)}),C&&S){const J=N.replace("submodel__","");X.push({label:"Dissolve Submodel",icon:whn,action:()=>S(J),danger:!0})}return X.push({label:"Delete",icon:R9,action:()=>g(N),danger:!0}),X},[N,C,p,m,g,k,S]);return ue.useEffect(()=>{const X=J=>{_.current&&!_.current.contains(J.target)&&h()};return document.addEventListener("mousedown",X),()=>document.removeEventListener("mousedown",X)},[h]),ue.useEffect(()=>{var X;(X=q.current[0])==null||X.focus()},[]),ue.useEffect(()=>{const X=J=>{if(J.key==="Escape"){h();return}if(J.key==="ArrowDown"){J.preventDefault(),R(ee=>{var ie;const te=(ee+1)%F.length;return(ie=q.current[te])==null||ie.focus(),te});return}J.key==="ArrowUp"&&(J.preventDefault(),R(ee=>{var ie;const te=(ee-1+F.length)%F.length;return(ie=q.current[te])==null||ie.focus(),te}))};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[h,F.length]),O.jsxs("div",{ref:_,role:"menu","aria-label":`Actions for ${u}`,className:"fixed z-50 rounded-lg shadow-2xl py-1 min-w-[160px] animate-fade-in",style:{left:l,top:s,background:"var(--bg-panel)",border:"1px solid var(--border-bright)"},children:[O.jsx("div",{className:"px-3 py-1.5 text-[9px] font-bold uppercase tracking-[0.1em] mb-0.5",style:{color:"var(--text-muted)",borderBottom:"1px solid var(--border)"},children:u}),F.map((X,J)=>{const ee=X.icon;return O.jsxs("button",{ref:te=>{q.current[J]=te},role:"menuitem",tabIndex:J===P?0:-1,onClick:()=>{X.action(),h()},className:"w-full flex items-center gap-2.5 px-3 py-1.5 text-[12px] transition-colors",style:{color:X.danger?"#ef4444":"var(--text-secondary)"},onMouseEnter:te=>{te.currentTarget.style.background=X.danger?"rgba(239,68,68,.1)":"var(--chrome-hover)",X.danger||(te.currentTarget.style.color="var(--text-primary)")},onMouseLeave:te=>{te.currentTarget.style.background="transparent",te.currentTarget.style.color=X.danger?"#ef4444":"var(--text-secondary)"},children:[O.jsx(ee,{size:13,"aria-hidden":"true"}),X.label]},X.label)})]})}function ENe({ariaLabel:l,onClose:s,extraCloseKeys:u,width:h="w-[360px]",children:g}){return ue.useEffect(()=>{const m=p=>{(p.key==="Escape"||u&&u.includes(p.key))&&(p.preventDefault(),s())};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[s,u]),O.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center",role:"dialog","aria-modal":"true","aria-label":l,style:{background:"rgba(0,0,0,.5)"},onClick:m=>{m.target===m.currentTarget&&s()},children:O.jsx("div",{className:`${h} flex flex-col rounded-xl overflow-hidden shadow-2xl`,style:{background:"var(--bg-panel)",border:"1px solid var(--border)"},children:g})})}function I9(l="var(--chrome-hover)",s="var(--text-primary)",u="transparent",h="var(--text-secondary)"){return{onMouseEnter:g=>{g.currentTarget.style.background=l,g.currentTarget.style.color=s},onMouseLeave:g=>{g.currentTarget.style.background=u,g.currentTarget.style.color=h}}}function Zb(l="var(--bg-hover)",s="transparent"){return{onMouseEnter:u=>{u.currentTarget.style.background=l},onMouseLeave:u=>{u.currentTarget.style.background=s}}}const zxn=typeof navigator<"u"&&/Mac/.test(navigator.userAgent),j9=zxn?"⌘":"Ctrl",Fxn=[{keys:`${j9}+Z`,label:"Undo"},{keys:`${j9}+Shift+Z`,label:"Redo"},{keys:`${j9}+C`,label:"Copy selected nodes"},{keys:`${j9}+V`,label:"Paste nodes"},{keys:`${j9}+A`,label:"Select all nodes"},{keys:`${j9}+S`,label:"Save pipeline"},{keys:`${j9}+K`,label:"Search nodes"},{keys:`${j9}+1`,label:"Fit view"},{keys:"Delete / Backspace",label:"Delete selected"},{keys:"?",label:"Show this help"}];function qxn({onClose:l}){return O.jsxs(ENe,{ariaLabel:"Keyboard shortcuts",onClose:l,extraCloseKeys:["?"],children:[O.jsxs("div",{className:"px-4 py-3 flex items-center justify-between",style:{borderBottom:"1px solid var(--border)"},children:[O.jsx("h2",{className:"text-sm font-semibold",style:{color:"var(--text-primary)"},children:"Keyboard Shortcuts"}),O.jsx("button",{onClick:l,"aria-label":"Close keyboard shortcuts",className:"p-1 rounded transition-colors",style:{color:"var(--text-muted)"},...Zb("var(--bg-hover)"),children:"✕"})]}),O.jsx("div",{className:"px-4 py-3 space-y-1.5",children:Fxn.map(s=>O.jsxs("div",{className:"flex items-center justify-between py-1",children:[O.jsx("span",{className:"text-[12px]",style:{color:"var(--text-secondary)"},children:s.label}),O.jsx("kbd",{className:"text-[11px] font-mono px-2 py-0.5 rounded",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-muted)"},children:s.keys})]},s.keys))})]})}function Hxn({viewStack:l,onNavigate:s}){return l.length<=1?null:O.jsx("div",{className:"absolute top-2 left-1/2 -translate-x-1/2 z-10 flex items-center gap-1 px-3 py-1.5 rounded-lg",style:{background:"var(--chrome)",border:"1px solid var(--chrome-border)",boxShadow:"0 2px 8px rgba(0,0,0,.3)"},children:l.map((u,h)=>O.jsxs("span",{className:"flex items-center gap-1",children:[h>0&&O.jsx(n5,{size:12,style:{color:"var(--text-muted)"}}),O.jsx("button",{onClick:()=>s(h),className:"text-[12px] font-medium px-1.5 py-0.5 rounded transition-colors",style:{color:h===l.length-1?"var(--text-primary)":"var(--text-muted)",cursor:h===l.length-1?"default":"pointer"},onMouseEnter:g=>{h<l.length-1&&(g.currentTarget.style.background="var(--chrome-hover)",g.currentTarget.style.color="var(--text-primary)")},onMouseLeave:g=>{g.currentTarget.style.background="transparent",g.currentTarget.style.color=h===l.length-1?"var(--text-primary)":"var(--text-muted)"},disabled:h===l.length-1,children:u.name})]},h))})}function Ide(l,s,u){ue.useEffect(()=>{if(!u)return;const h=g=>{l.current&&!l.current.contains(g.target)&&s()};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[u,l,s])}function l4t({icon:l,title:s,items:u,formatValue:h,valueWidth:g="w-12"}){const[m,p]=ue.useState(!1),k=ue.useRef(null),S=ue.useCallback(()=>p(!1),[]);Ide(k,S,m);const C=ue.useMemo(()=>{var q;if(!u.length)return null;const _=[...u].sort((F,X)=>X.value-F.value),P=((q=_[0])==null?void 0:q.value)||1,R=_.reduce((F,X)=>F+X.value,0);return{sorted:_,maxValue:P,total:R}},[u]),N=C!==null;return O.jsxs("div",{ref:k,className:"relative flex items-center gap-1",children:[O.jsxs("button",{onClick:()=>{N&&p(_=>!_)},className:"flex items-center gap-1 px-1 py-0.5 rounded transition-colors",style:{color:m?"var(--accent)":"var(--text-muted)",background:m?"var(--accent-soft)":"transparent",cursor:N?"pointer":"default",opacity:N?1:.35},onMouseEnter:_=>{!m&&N&&(_.currentTarget.style.color="var(--text-secondary)")},onMouseLeave:_=>{m||(_.currentTarget.style.color="var(--text-muted)")},title:N?`Toggle ${s.toLowerCase()} breakdown`:s,children:[O.jsx(l,{size:12}),O.jsx("span",{className:"text-[11px] font-mono",children:h((C==null?void 0:C.total)??0)})]}),m&&C&&O.jsx("div",{className:"absolute top-full left-0 mt-1 rounded-lg shadow-2xl z-50 w-[320px] overflow-hidden",style:{background:"var(--bg-panel)",border:"1px solid var(--border)"},children:O.jsxs("div",{className:"px-3 py-2 overflow-y-auto",style:{maxHeight:240},children:[O.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[O.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-wider",style:{color:"var(--text-muted)"},children:s}),O.jsxs("span",{className:"text-[10px] font-mono",style:{color:"var(--text-muted)"},children:[h(C.total)," total"]})]}),C.sorted.map(_=>{const P=_.value/C.maxValue,R=P>.7?"#ef4444":P>.3?"#eab308":"#22c55e";return O.jsxs("div",{className:"flex items-center gap-2 py-0.5",children:[O.jsx("span",{className:"text-[11px] truncate shrink-0",style:{width:100,color:"var(--text-secondary)"},title:_.label,children:_.label}),O.jsx("div",{className:"flex-1 h-3 rounded-sm overflow-hidden",style:{background:"rgba(255,255,255,.05)"},children:O.jsx("div",{className:"h-full rounded-sm transition-all",style:{width:`${Math.max(2,P*100)}%`,background:R,opacity:.8}})}),O.jsx("span",{className:`text-[10px] font-mono shrink-0 ${g} text-right`,style:{color:"var(--text-muted)"},children:h(_.value)})]},_.node_id)})]})})]})}const u4t=Zb("var(--chrome-hover)"),Qxn=I9("#60a5fa","","var(--accent)",""),Gxn=I9("#4ade80","","#22c55e","");function Uxn(l){return l<1e3?`${l.toFixed(1)}ms`:`${(l/1e3).toFixed(2)}s`}function Jxn(l){return l<1024?`${l} B`:l<1024*1024?`${(l/1024).toFixed(1)} KB`:l<1024*1024*1024?`${(l/(1024*1024)).toFixed(1)} MB`:`${(l/(1024*1024*1024)).toFixed(1)} GB`}const Vxn={connected:{color:"#22c55e",title:"Live sync connected"},reconnecting:{color:"#f59e0b",title:"Reconnecting to server…"},disconnected:{color:"#ef4444",title:"Server unreachable — restart haute serve"}};function Xxn({nodeCount:l,dirty:s,canUndo:u,canRedo:h,onUndo:g,onRedo:m,onZoomIn:p,onZoomOut:k,onOpenUtility:S,onOpenImports:C,onOpenGit:N,onCentre:_,onAutoLayout:P,onSave:R,wsStatus:q,timings:F,memory:X}){const J=Sc(ye=>ye.rowLimit),ee=Sc(ye=>ye.setRowLimit),te=Sc(ye=>ye.sources),ie=Sc(ye=>ye.activeSource),oe=Sc(ye=>ye.setActiveSource),se=Sc(ye=>ye.addSource),ge=Sc(ye=>ye.removeSource),[Ne,qe]=ue.useState(!1),[Ke,Le]=ue.useState(""),[we,Z]=ue.useState(!1),pe=ue.useRef(null),Re=ue.useCallback(()=>Z(!1),[]);Ide(pe,Re,we);const he=Vxn[q],Ee=ue.useMemo(()=>(F??[]).map(ye=>({node_id:ye.node_id,label:ye.label,value:ye.timing_ms})),[F]),Te=ue.useMemo(()=>(X??[]).map(ye=>({node_id:ye.node_id,label:ye.label,value:ye.memory_bytes})),[X]);return O.jsxs("header",{role:"toolbar","aria-label":"Pipeline toolbar",className:"h-11 flex items-center px-4 shrink-0",style:{background:"var(--chrome)",borderBottom:"1px solid var(--chrome-border)"},children:[O.jsxs("div",{className:"flex items-center gap-2.5",children:[O.jsx("h1",{className:"text-sm font-bold tracking-tight",style:{color:"var(--text-primary)"},children:"Haute"}),O.jsx("span",{className:"text-[11px] font-mono",style:{color:"var(--text-muted)"},children:"v0.1.0"}),s&&O.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-400 animate-pulse-dot",title:"Unsaved changes"}),O.jsx("span",{className:`w-2 h-2 rounded-full shrink-0${q==="reconnecting"?" animate-pulse-dot":""}`,style:{background:he.color},title:he.title})]}),O.jsxs("div",{ref:pe,className:"relative flex items-center gap-1 ml-12",children:[O.jsx("label",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:"Source"}),Ne?O.jsx("form",{className:"flex items-center gap-0.5",onSubmit:ye=>{if(ye.preventDefault(),Ke.trim()){const ft=se(Ke);ft&&oe(ft)}qe(!1),Le("")},children:O.jsx("input",{autoFocus:!0,value:Ke,onChange:ye=>Le(ye.target.value),onBlur:()=>{qe(!1),Le("")},placeholder:"name",className:"w-20 px-1.5 py-1 text-[11px] font-mono rounded focus:outline-none",style:{background:"var(--chrome-hover)",border:"1px solid var(--accent)",color:"var(--text-primary)"}})}):O.jsxs("button",{onClick:()=>Z(ye=>!ye),className:"flex items-center gap-1.5 px-2 py-1 text-[12px] font-mono rounded-md transition-colors",style:{background:we?"var(--accent-soft)":"var(--chrome-hover)",border:`1px solid ${we?"var(--accent)":"var(--chrome-border)"}`,color:"var(--text-primary)"},title:"Data source",children:[ie==="live"&&O.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-green-400 shrink-0"}),O.jsx("span",{children:ie}),O.jsx(rg,{size:11,style:{color:"var(--text-muted)",transition:"transform 150ms",transform:we?"rotate(180deg)":void 0}})]}),we&&O.jsxs("div",{className:"absolute top-full left-0 mt-1 rounded-lg shadow-2xl z-50 min-w-[160px] overflow-hidden",style:{background:"var(--bg-panel)",border:"1px solid var(--border)"},children:[O.jsx("div",{className:"py-1",children:te.map(ye=>O.jsxs("button",{onClick:()=>{oe(ye),Z(!1)},className:"w-full flex items-center gap-2 px-3 py-1.5 text-[12px] font-mono text-left transition-colors",style:{color:ye===ie?"var(--accent)":"var(--text-secondary)",background:ye===ie?"var(--accent-soft)":"transparent"},onMouseEnter:ft=>{ye!==ie&&u4t.onMouseEnter(ft)},onMouseLeave:ft=>{ye!==ie&&u4t.onMouseLeave(ft)},children:[ye==="live"?O.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-green-400 shrink-0"}):O.jsx("span",{className:"w-1.5 shrink-0"}),ye]},ye))}),O.jsxs("div",{className:"py-1",style:{borderTop:"1px solid var(--border)"},children:[O.jsxs("button",{onClick:()=>{qe(!0),Z(!1)},className:"w-full flex items-center gap-2 px-3 py-1.5 text-[12px] text-left transition-colors",style:{color:"var(--text-muted)"},...I9("var(--chrome-hover)","var(--text-secondary)","transparent","var(--text-muted)"),children:[O.jsx(mO,{size:12}),"Add source"]}),ie!=="live"&&O.jsxs("button",{onClick:()=>{ge(ie),Z(!1)},className:"w-full flex items-center gap-2 px-3 py-1.5 text-[12px] text-left transition-colors",style:{color:"#ef4444"},...Zb("rgba(239,68,68,.1)"),children:[O.jsx(R9,{size:12}),'Remove "',ie,'"']})]})]})]}),O.jsxs("div",{className:"flex items-center gap-1 ml-3",title:"Row limit for preview (0 = no limit)",children:[O.jsx("label",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:"Rows"}),O.jsx("input",{type:"number",min:0,step:100,value:J,onChange:ye=>ee(Math.max(0,parseInt(ye.target.value)||0)),className:"w-16 px-1.5 py-0.5 text-[12px] font-mono rounded text-center focus:outline-none",style:{background:"var(--chrome-hover)",border:"1px solid var(--chrome-border)",color:"var(--text-primary)"}})]}),O.jsx("button",{onClick:g,disabled:!u,className:"p-1.5 rounded-md transition-colors disabled:opacity-20 ml-3 hover-chrome",title:"Undo (Ctrl+Z)",children:O.jsx(bhn,{size:14,"aria-hidden":"true"})}),O.jsx("button",{onClick:m,disabled:!h,"aria-label":"Redo",className:"p-1.5 rounded-md transition-colors disabled:opacity-20 hover-chrome",title:"Redo (Ctrl+Shift+Z)",children:O.jsx(Gfn,{size:14,"aria-hidden":"true"})}),O.jsx("div",{className:"ml-3",children:O.jsx(l4t,{icon:lhn,title:"Pipeline Timing",items:Ee,formatValue:Uxn})}),O.jsx(l4t,{icon:Efn,title:"Pipeline Memory",items:Te,formatValue:Jxn,valueWidth:"w-14"}),O.jsxs("div",{className:"ml-auto flex items-center gap-1.5",children:[O.jsxs("button",{onClick:S,className:"px-2.5 py-1 text-[12px] font-medium rounded-md flex items-center gap-1 hover-chrome",title:"Utility scripts — reusable functions",children:[O.jsx(uOt,{size:13}),"Utility"]}),O.jsxs("button",{onClick:C,className:"px-2.5 py-1 text-[12px] font-medium rounded-md flex items-center gap-1 hover-chrome",title:"Pipeline imports — utility and library imports",children:[O.jsx(VX,{size:13}),"Imports"]}),O.jsx("button",{onClick:k,"aria-label":"Zoom out",className:"p-1.5 rounded-md hover-chrome",title:"Zoom out",children:O.jsx(jhn,{size:14,"aria-hidden":"true"})}),O.jsx("button",{onClick:p,"aria-label":"Zoom in",className:"p-1.5 rounded-md hover-chrome",title:"Zoom in",children:O.jsx(Ohn,{size:14,"aria-hidden":"true"})}),O.jsx("div",{className:"w-px h-4 mx-0.5",style:{background:"var(--chrome-border)"}}),O.jsx("button",{onClick:_,disabled:l===0,className:"px-2.5 py-1 text-[12px] font-medium rounded-md disabled:opacity-30 hover-chrome",title:"Fit all nodes in view",children:"Centre"}),O.jsx("button",{onClick:P,disabled:l===0,className:"px-2.5 py-1 text-[12px] font-medium rounded-md disabled:opacity-30 hover-chrome",title:"Auto-arrange nodes",children:"Layout"}),O.jsx("button",{onClick:R,className:"px-3 py-1 text-[12px] font-semibold text-white rounded-md transition-colors",style:{background:"var(--accent)"},...Qxn,title:"Ctrl+S",children:"Save"}),O.jsxs("button",{onClick:N,className:"px-3 py-1 text-[12px] font-semibold text-white rounded-md transition-colors flex items-center gap-1",style:{background:"#22c55e"},...Gxn,title:"Git — branch management and version control",children:[O.jsx(dOt,{size:13}),"Git"]})]})]})}function Wxn({nodeCount:l,onClose:s,onSubmit:u}){return O.jsxs(ENe,{ariaLabel:"Create submodel",onClose:s,width:"w-[400px]",children:[O.jsxs("div",{className:"px-4 py-3",style:{borderBottom:"1px solid var(--border)"},children:[O.jsx("h2",{className:"text-sm font-semibold",style:{color:"var(--text-primary)"},children:"Create Submodel"}),O.jsxs("p",{className:"text-[11px] mt-0.5",style:{color:"var(--text-muted)"},children:["Group ",l," selected nodes into a submodel"]})]}),O.jsxs("form",{className:"p-4 flex flex-col gap-3",onSubmit:h=>{h.preventDefault();const m=(new FormData(h.currentTarget).get("name")||"").trim();m&&u(m)},children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-[11px] font-medium block mb-1",style:{color:"var(--text-muted)"},children:"Submodel name"}),O.jsx("input",{name:"name",type:"text",autoFocus:!0,placeholder:"e.g. model_scoring",className:"w-full px-3 py-1.5 text-[13px] rounded-md focus:outline-none focus:ring-2",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)",caretColor:"var(--accent)"}})]}),O.jsxs("div",{className:"flex justify-end gap-2",children:[O.jsx("button",{type:"button",onClick:s,className:"px-3 py-1.5 text-[12px] font-medium rounded-md transition-colors",style:{color:"var(--text-secondary)"},children:"Cancel"}),O.jsx("button",{type:"submit",className:"px-4 py-1.5 text-[12px] font-semibold text-white rounded-md transition-colors",style:{background:"#64748b"},...Zb("#94a3b8","#64748b"),children:"Create"})]})]})]})}function Kxn({defaultValue:l,onConfirm:s,onCancel:u}){const h=ue.useRef(null);return ue.useEffect(()=>{const g=h.current;g&&(g.focus(),g.select())},[]),O.jsxs(ENe,{ariaLabel:"Rename node",onClose:u,children:[O.jsx("div",{className:"px-4 py-3",style:{borderBottom:"1px solid var(--border)"},children:O.jsx("h2",{className:"text-sm font-semibold",style:{color:"var(--text-primary)"},children:"Rename Node"})}),O.jsxs("form",{className:"p-4 flex flex-col gap-3",onSubmit:g=>{var p;g.preventDefault();const m=(p=h.current)==null?void 0:p.value.trim();m&&s(m)},children:[O.jsxs("div",{children:[O.jsx("label",{htmlFor:"rename-input",className:"text-[11px] font-medium block mb-1",style:{color:"var(--text-muted)"},children:"Node name"}),O.jsx("input",{ref:h,id:"rename-input",name:"name",type:"text",defaultValue:l,className:"w-full px-3 py-1.5 text-[13px] rounded-md focus:outline-none focus:ring-2",style:{background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)",caretColor:"var(--accent)"}})]}),O.jsxs("div",{className:"flex justify-end gap-2",children:[O.jsx("button",{type:"button",onClick:u,className:"px-3 py-1.5 text-[12px] font-medium rounded-md transition-colors",style:{color:"var(--text-secondary)"},children:"Cancel"}),O.jsx("button",{type:"submit",className:"px-4 py-1.5 text-[12px] font-semibold text-white rounded-md transition-colors",style:{background:"#64748b"},...Zb("#94a3b8","#64748b"),children:"Rename"})]})]})]})}function CNe({title:l,onClose:s,icon:u,subtitle:h,actions:g}){return O.jsxs("div",{className:"px-3 py-2.5 flex items-center gap-2 shrink-0",style:{borderBottom:"1px solid var(--border)"},children:[u,O.jsxs("div",{className:"flex-1 min-w-0",children:[typeof l=="string"?O.jsx("span",{className:"text-[13px] font-semibold block",style:{color:"var(--text-primary)"},children:l}):l,h]}),g,O.jsx("button",{onClick:s,className:"p-1 rounded shrink-0 transition-colors",style:{color:"var(--text-muted)"},...Zb("var(--bg-hover)"),title:"Close",children:O.jsx(r5,{size:14})})]})}const a4t=Zb("var(--bg-hover)");function f4t(l){if(!(l instanceof wO)||l.status!==400)return null;const s=l.detail;if(!s)return null;let u=s;if(typeof s=="string")try{u=JSON.parse(s)}catch{return{error:s,error_line:null}}if(typeof u=="object"&&u!==null&&"error"in u){const h=u;return{error:h.error??"Syntax error",error_line:h.error_line??null}}return{error:String(s),error_line:null}}function Yxn({onClose:l,onImportAdded:s}){const[u,h]=ue.useState([]),[g,m]=ue.useState(null),[p,k]=ue.useState(""),[S,C]=ue.useState(null),[N,_]=ue.useState(null),[P,R]=ue.useState(!1),q=ue.useRef(null);Ide(q,()=>R(!1),P);const[F,X]=ue.useState(!1),[J,ee]=ue.useState(""),te=ue.useRef(void 0),ie=ue.useRef(g);ue.useEffect(()=>{ie.current=g},[g]);const oe=ue.useCallback((Ke,Le)=>{clearTimeout(te.current),te.current=setTimeout(async()=>{if(ie.current===Ke)try{if(await ydn(Ke,Le),ie.current!==Ke)return;C(null),_(null)}catch(we){if(ie.current!==Ke)return;const Z=f4t(we);Z?(C(Z.error_line),_(Z.error)):(console.warn("Failed to save utility file",Ke,we),_("Failed to save"))}},500)},[]);ue.useEffect(()=>()=>clearTimeout(te.current),[]);const se=ue.useCallback(async()=>{try{const Ke=await mdn();h(Ke.files)}catch(Ke){console.warn("Failed to list utility files",Ke),h([])}},[]);ue.useEffect(()=>{se()},[se]);const ge=ue.useCallback(async Ke=>{clearTimeout(te.current);try{const Le=await wdn(Ke);k(Le.content),m(Ke),C(null),_(null)}catch(Le){console.warn("Failed to load utility file",Ke,Le),_(`Failed to load ${Ke}`)}},[]);ue.useEffect(()=>{u.length>0&&g===null&&ge(u[0].module)},[u,g,ge]);const Ne=ue.useCallback(async()=>{const Ke=J.trim().replace(/\.py$/,"");if(Ke){X(!1),ee("");try{const Le=await vdn({name:Ke});Le.import_line&&s(Le.import_line),await se(),ge(Le.module)}catch(Le){const we=f4t(Le);_(we?we.error:Le instanceof Error?Le.message:"Failed to create")}}},[J,se,ge,s]),qe=ue.useCallback(async()=>{if(g&&confirm(`Delete ${g}?`)){clearTimeout(te.current);try{await xdn(g),m(null),k(""),await se()}catch(Ke){console.warn("Failed to delete utility file",g,Ke),_("Failed to delete")}}},[g,se]);return O.jsxs(cW,{children:[O.jsx(CNe,{title:"Utility Scripts",onClose:l,icon:O.jsx(uOt,{size:14,style:{color:"var(--accent)"}})}),O.jsx("div",{className:"px-3 py-2 flex items-center gap-2 shrink-0",style:{borderBottom:"1px solid var(--border)"},children:F?O.jsxs("form",{className:"flex items-center gap-1 flex-1",onSubmit:Ke=>{Ke.preventDefault(),Ne()},children:[O.jsx("input",{autoFocus:!0,value:J,onChange:Ke=>ee(Ke.target.value),onBlur:()=>{X(!1),ee("")},placeholder:"module_name",className:"flex-1 px-2 py-1 text-[12px] font-mono rounded focus:outline-none",style:{background:"var(--bg-input)",border:"1px solid var(--accent)",color:"var(--text-primary)"}}),O.jsx("span",{className:"text-[11px] font-mono",style:{color:"var(--text-muted)"},children:".py"})]}):O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"relative flex-1",ref:q,children:[O.jsxs("button",{onClick:()=>R(Ke=>!Ke),className:"w-full flex items-center gap-1.5 px-2 py-1 text-[12px] font-mono rounded-md transition-colors",style:{background:P?"var(--accent-soft)":"var(--bg-input)",border:`1px solid ${P?"var(--accent)":"var(--border)"}`,color:"var(--text-primary)"},children:[O.jsx("span",{className:"flex-1 text-left truncate",children:g??"No files"}),O.jsx(rg,{size:11,style:{color:"var(--text-muted)",transition:"transform 150ms",transform:P?"rotate(180deg)":void 0}})]}),P&&u.length>0&&O.jsx("div",{className:"absolute top-full left-0 right-0 mt-1 rounded-lg shadow-2xl z-50 overflow-hidden",style:{background:"var(--bg-panel)",border:"1px solid var(--border)"},children:O.jsx("div",{className:"py-1",children:u.map(Ke=>O.jsx("button",{onClick:()=>{R(!1),Ke.module!==g&&ge(Ke.module)},className:"w-full flex items-center px-3 py-1.5 text-[12px] font-mono text-left transition-colors",style:{color:Ke.module===g?"var(--accent)":"var(--text-secondary)",background:Ke.module===g?"var(--accent-soft)":"transparent"},onMouseEnter:Le=>{Ke.module!==g&&a4t.onMouseEnter(Le)},onMouseLeave:Le=>{Ke.module!==g&&a4t.onMouseLeave(Le)},children:Ke.module},Ke.module))})})]}),O.jsx("button",{onClick:()=>X(!0),className:"p-1.5 rounded-md transition-colors",style:{color:"var(--text-muted)"},...I9("var(--bg-hover)","var(--accent)","transparent","var(--text-muted)"),title:"New utility file",children:O.jsx(mO,{size:14})}),g&&O.jsx("button",{onClick:qe,className:"p-1.5 rounded-md transition-colors",style:{color:"var(--text-muted)"},...I9("rgba(239,68,68,.1)","#ef4444","transparent","var(--text-muted)"),title:`Delete ${g}`,children:O.jsx(R9,{size:14})})]})}),O.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:g?O.jsxs("div",{className:"h-full flex flex-col",children:[O.jsx("div",{className:"flex-1 min-h-0",children:O.jsx(JM,{defaultValue:p,onChange:Ke=>{k(Ke),C(null),_(null),g&&oe(g,Ke)},errorLine:S,placeholder:"# Write reusable helper functions here\\n\\nimport polars as pl\\n\\ndef my_helper(df):\\n    return df"})}),N&&O.jsx("div",{className:"px-3 py-2 text-[11px] shrink-0",style:{color:"#ef4444",borderTop:"1px solid var(--border)"},children:N})]}):O.jsx("div",{className:"flex items-center justify-center h-full text-[12px]",style:{color:"var(--text-muted)"},children:u.length===0?O.jsxs("div",{className:"text-center",children:[O.jsx("p",{children:"No utility files yet."}),O.jsx("button",{onClick:()=>X(!0),className:"mt-2 px-3 py-1 text-[12px] font-medium rounded-md transition-colors",style:{color:"var(--accent)",background:"var(--accent-soft)"},...Zb("rgba(59,130,246,.2)","var(--accent-soft)"),children:"Create one"})]}):"Select a file"})})]})}function Zxn({preamble:l,onPreambleChange:s,onClose:u}){return O.jsxs(cW,{children:[O.jsx(CNe,{title:"Pipeline Imports",onClose:u,icon:O.jsx(VX,{size:14,style:{color:"var(--accent)"}}),subtitle:O.jsx("span",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Import statements for utility modules and third-party libraries."})}),O.jsx("div",{className:"px-3 py-2 shrink-0",style:{borderBottom:"1px solid var(--border)"},children:O.jsxs("p",{className:"text-[11px] font-mono",style:{color:"var(--text-muted)"},children:[O.jsx("span",{style:{color:"rgba(96,165,250,.5)"},children:"import polars as pl"})," and ",O.jsx("span",{style:{color:"rgba(96,165,250,.5)"},children:"import haute"})," are always included"]})}),O.jsx("div",{className:"flex-1 min-h-0",children:O.jsx(JM,{defaultValue:l,onChange:s,placeholder:`from utility.features import *
import numpy as np
from catboost import CatBoostRegressor`})})]})}function e3n({onClose:l}){const[s,u]=ue.useState(null),[h,g]=ue.useState([]),[m,p]=ue.useState([]),[k,S]=ue.useState("main"),[C,N]=ue.useState(null),[_,P]=ue.useState(!1),[R,q]=ue.useState(!1),[F,X]=ue.useState(""),[J,ee]=ue.useState(!1),te=ue.useRef(null);Ide(te,()=>ee(!1),J);const[ie,oe]=ue.useState(null),se=ue.useCallback(async()=>{try{const[dt,cn]=await Promise.all([Odn(),Sdn()]);u(dt),g(cn.branches)}catch(dt){N(dt instanceof Error?dt.message:"Failed to load git status")}},[]);ue.useEffect(()=>{se()},[se]);const ge=ue.useCallback(async()=>{try{const dt=await Mdn(30);p(dt.entries)}catch(dt){console.warn("Failed to load git history",dt),p([])}},[]);ue.useEffect(()=>{k==="history"&&ge()},[k,ge]);const Ne=ue.useCallback(async()=>{const dt=F.trim();if(dt){P(!0),N(null);try{await jdn(dt),q(!1),X(""),await se()}catch(cn){N(cn instanceof Error?cn.message:"Failed to create branch")}finally{P(!1)}}},[F,se]),qe=ue.useCallback(async dt=>{P(!0),N(null),ee(!1);try{await Tdn(dt),await se()}catch(cn){N(cn instanceof Error?cn.message:"Failed to switch branch")}finally{P(!1)}},[se]),Ke=ue.useCallback(async()=>{P(!0),N(null);try{await Edn(),await se(),k==="history"&&await ge()}catch(dt){N(dt instanceof Error?dt.message:"Failed to save")}finally{P(!1)}},[se,ge,k]),Le=ue.useCallback(async()=>{P(!0),N(null);try{const dt=await Cdn();dt.compare_url&&window.open(dt.compare_url,"_blank"),await se()}catch(dt){N(dt instanceof Error?dt.message:"Failed to submit")}finally{P(!1)}},[se]),we=ue.useCallback(async()=>{P(!0),N(null);try{const dt=await Ndn();dt.conflict&&N(dt.conflict_message??"Merge conflict detected"),await se()}catch(dt){N(dt instanceof Error?dt.message:"Failed to pull")}finally{P(!1)}},[se]),Z=ue.useCallback(async dt=>{P(!0),N(null),oe(null);try{await Adn(dt),await se(),await ge()}catch(cn){N(cn instanceof Error?cn.message:"Failed to revert")}finally{P(!1)}},[se,ge]),pe=ue.useCallback(async dt=>{P(!0),N(null),oe(null);try{await _dn(dt),await se()}catch(cn){N(cn instanceof Error?cn.message:"Failed to archive")}finally{P(!1)}},[se]),Re=ue.useCallback(async dt=>{P(!0),N(null),oe(null);try{await Ddn(dt),await se()}catch(cn){N(cn instanceof Error?cn.message:"Failed to delete")}finally{P(!1)}},[se]),he=(s==null?void 0:s.is_main)??!0,Ee=(s==null?void 0:s.is_read_only)??!0,Te=(s==null?void 0:s.branch)??"main",ye=(s==null?void 0:s.changed_files)??[],ft=h.filter(dt=>dt.is_yours&&!dt.is_archived),Ce=h.filter(dt=>!dt.is_yours&&!dt.is_archived&&!["main","master","develop"].includes(dt.name)),We=h.filter(dt=>dt.is_archived),gt=h.filter(dt=>["main","master","develop"].includes(dt.name));function Ot(dt){const cn=Date.now()-new Date(dt).getTime(),dn=Math.floor(cn/6e4);if(dn<1)return"just now";if(dn<60)return`${dn}m ago`;const wn=Math.floor(dn/60);return wn<24?`${wn}h ago`:`${Math.floor(wn/24)}d ago`}return O.jsxs(cW,{children:[O.jsx(CNe,{title:"Git",onClose:l,icon:O.jsx(dOt,{size:14,style:{color:"#22c55e"}})}),C&&O.jsxs("div",{className:"px-3 py-2 text-[11px] flex items-start gap-2 shrink-0",style:{color:"#ef4444",background:"rgba(239,68,68,.08)",borderBottom:"1px solid var(--border)"},children:[O.jsx(Ty,{size:12,className:"shrink-0 mt-0.5"}),O.jsx("span",{className:"flex-1",children:C}),O.jsx("button",{onClick:()=>N(null),className:"opacity-60 hover:opacity-100 shrink-0",children:"✕"})]}),ie&&O.jsxs("div",{className:"px-3 py-3 shrink-0",style:{background:"rgba(239,68,68,.06)",borderBottom:"1px solid var(--border)"},children:[O.jsx("p",{className:"text-[12px] mb-2",style:{color:"var(--text-primary)"},children:ie.type==="delete"?`Permanently delete "${ie.label}"? This cannot be undone.`:ie.type==="archive"?`Archive "${ie.label}"? You can restore it later.`:"Revert to this version? A backup will be created."}),O.jsxs("div",{className:"flex gap-2",children:[O.jsx("button",{onClick:()=>{ie.type==="delete"?Re(ie.target):ie.type==="archive"?pe(ie.target):Z(ie.target)},className:"px-3 py-1 text-[12px] font-medium rounded-md",style:{background:ie.type==="delete"?"#ef4444":"var(--accent)",color:"#fff"},children:ie.type==="delete"?"Delete":ie.type==="archive"?"Archive":"Revert"}),O.jsx("button",{onClick:()=>oe(null),className:"px-3 py-1 text-[12px] font-medium rounded-md",style:{color:"var(--text-secondary)",background:"var(--bg-input)"},children:"Cancel"})]})]}),O.jsxs("div",{className:"flex-1 min-h-0 overflow-y-auto",children:[O.jsxs("div",{className:"px-3 py-3",style:{borderBottom:"1px solid var(--border)"},children:[O.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[O.jsx("span",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:"Branch"}),he&&O.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded font-mono",style:{background:"rgba(239,68,68,.15)",color:"#f87171"},children:"read-only"}),!he&&Ee&&O.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded font-mono",style:{background:"rgba(245,158,11,.15)",color:"#fbbf24"},children:"read-only"})]}),O.jsxs("div",{className:"relative",ref:te,children:[O.jsxs("button",{onClick:()=>ee(dt=>!dt),className:"w-full flex items-center gap-1.5 px-2.5 py-1.5 text-[12px] font-mono rounded-md transition-colors",style:{background:J?"var(--accent-soft)":"var(--bg-input)",border:`1px solid ${J?"var(--accent)":"var(--border)"}`,color:"var(--text-primary)"},children:[O.jsx(hOt,{size:12,style:{color:"var(--accent)"}}),O.jsx("span",{className:"flex-1 text-left truncate",children:Te}),O.jsx(rg,{size:11,style:{color:"var(--text-muted)",transition:"transform 150ms",transform:J?"rotate(180deg)":void 0}})]}),J&&O.jsxs("div",{className:"absolute top-full left-0 right-0 mt-1 rounded-lg shadow-2xl z-50 overflow-hidden max-h-[300px] overflow-y-auto",style:{background:"var(--bg-panel)",border:"1px solid var(--border)"},children:[gt.length>0&&O.jsx("div",{className:"py-1",children:gt.map(dt=>O.jsx(Hfe,{branch:dt,currentBranch:Te,onSwitch:qe},dt.name))}),ft.length>0&&O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"px-3 pt-2 pb-1",style:{borderTop:"1px solid var(--border)"},children:O.jsx("span",{className:"text-[10px] font-medium uppercase tracking-wider",style:{color:"var(--text-muted)"},children:"Your branches"})}),O.jsx("div",{className:"py-1",children:ft.map(dt=>O.jsx(Hfe,{branch:dt,currentBranch:Te,onSwitch:qe},dt.name))})]}),Ce.length>0&&O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"px-3 pt-2 pb-1",style:{borderTop:"1px solid var(--border)"},children:O.jsx("span",{className:"text-[10px] font-medium uppercase tracking-wider",style:{color:"var(--text-muted)"},children:"Other branches"})}),O.jsx("div",{className:"py-1",children:Ce.map(dt=>O.jsx(Hfe,{branch:dt,currentBranch:Te,onSwitch:qe},dt.name))})]}),We.length>0&&O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"px-3 pt-2 pb-1",style:{borderTop:"1px solid var(--border)"},children:O.jsx("span",{className:"text-[10px] font-medium uppercase tracking-wider",style:{color:"var(--text-muted)"},children:"Archived"})}),O.jsx("div",{className:"py-1",children:We.map(dt=>O.jsx(Hfe,{branch:dt,currentBranch:Te,onSwitch:qe},dt.name))})]})]})]})]}),he&&O.jsx("div",{className:"px-3 py-3",style:{borderBottom:"1px solid var(--border)"},children:R?O.jsxs("form",{onSubmit:dt=>{dt.preventDefault(),Ne()},className:"flex flex-col gap-2",children:[O.jsx("label",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:"What are you working on?"}),O.jsx("input",{autoFocus:!0,value:F,onChange:dt=>X(dt.target.value),placeholder:"Update area factors",className:"w-full px-2.5 py-1.5 text-[12px] rounded-md focus:outline-none",style:{background:"var(--bg-input)",border:"1px solid var(--accent)",color:"var(--text-primary)"},disabled:_}),O.jsxs("div",{className:"flex gap-2",children:[O.jsx("button",{type:"submit",disabled:!F.trim()||_,className:"px-3 py-1 text-[12px] font-medium text-white rounded-md transition-colors disabled:opacity-40",style:{background:"var(--accent)"},children:"Create branch"}),O.jsx("button",{type:"button",onClick:()=>{q(!1),X("")},className:"px-3 py-1 text-[12px] font-medium rounded-md",style:{color:"var(--text-secondary)"},children:"Cancel"})]})]}):O.jsxs("button",{onClick:()=>q(!0),className:"w-full flex items-center justify-center gap-2 px-3 py-2 text-[12px] font-medium rounded-md transition-colors",style:{color:"var(--accent)",background:"var(--accent-soft)"},...Zb("rgba(59,130,246,.2)","var(--accent-soft)"),children:[O.jsx(mO,{size:13}),"Start editing (create branch)"]})}),!he&&!Ee&&O.jsxs(O.Fragment,{children:[ye.length>0&&O.jsxs("div",{className:"px-3 py-2.5",style:{borderBottom:"1px solid var(--border)"},children:[O.jsx("span",{className:"text-[11px] font-medium block mb-1.5",style:{color:"var(--text-muted)"},children:"Unsaved changes"}),O.jsxs("div",{className:"flex flex-col gap-0.5",children:[ye.slice(0,8).map(dt=>O.jsx("span",{className:"text-[11px] font-mono truncate",style:{color:"var(--text-secondary)"},children:dt},dt)),ye.length>8&&O.jsxs("span",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:["+",ye.length-8," more"]})]})]}),O.jsxs("div",{className:"px-3 py-3 flex flex-col gap-2",style:{borderBottom:"1px solid var(--border)"},children:[ye.length>0&&O.jsx("button",{onClick:Ke,disabled:_,className:"w-full px-3 py-2 text-[12px] font-medium rounded-md transition-colors disabled:opacity-40",style:{background:"var(--bg-input)",color:"var(--text-primary)",border:"1px solid var(--border)"},...Zb("var(--bg-hover)","var(--bg-input)"),children:"Save progress"}),O.jsxs("button",{onClick:Le,disabled:_,className:"w-full flex items-center justify-center gap-2 px-3 py-2 text-[12px] font-semibold text-white rounded-md transition-colors disabled:opacity-40",style:{background:"var(--accent)"},...Zb("#60a5fa","var(--accent)"),children:[O.jsx(pfn,{size:12}),"Submit for review"]})]}),(s==null?void 0:s.main_ahead)&&O.jsxs("div",{className:"px-3 py-2.5",style:{borderBottom:"1px solid var(--border)"},children:[O.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[O.jsx(Ty,{size:12,style:{color:"#fbbf24"}}),O.jsxs("span",{className:"text-[11px]",style:{color:"#fbbf24"},children:["Main updated (",s.main_ahead_by," commit",s.main_ahead_by!==1?"s":""," ahead)"]})]}),O.jsxs("button",{onClick:we,disabled:_,className:"w-full flex items-center justify-center gap-2 px-3 py-1.5 text-[12px] font-medium rounded-md transition-colors disabled:opacity-40",style:{background:"var(--bg-input)",color:"var(--text-primary)",border:"1px solid var(--border)"},...Zb("var(--bg-hover)","var(--bg-input)"),children:[O.jsx(Qan,{size:12}),"Pull latest"]})]}),O.jsx("div",{className:"px-3 py-2.5",style:{borderBottom:"1px solid var(--border)"},children:O.jsxs("button",{onClick:()=>S(k==="history"?"main":"history"),className:"flex items-center gap-2 text-[12px] font-medium transition-colors",style:{color:k==="history"?"var(--accent)":"var(--text-secondary)"},onMouseEnter:dt=>dt.currentTarget.style.color="var(--accent)",onMouseLeave:dt=>dt.currentTarget.style.color=k==="history"?"var(--accent)":"var(--text-secondary)",children:[O.jsx(lOt,{size:12}),k==="history"?"Hide version history":"Version history"]})}),k==="history"&&O.jsx("div",{className:"px-3 py-2",children:m.length===0?O.jsx("span",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"No commits yet on this branch."}):O.jsx("div",{className:"flex flex-col gap-1",children:m.map(dt=>O.jsxs("div",{className:"flex items-start gap-2 py-1.5 group",children:[O.jsxs("div",{className:"flex-1 min-w-0",children:[O.jsx("span",{className:"text-[11px] block truncate",style:{color:"var(--text-primary)"},children:dt.message}),O.jsxs("span",{className:"text-[10px] font-mono",style:{color:"var(--text-muted)"},children:[dt.short_sha," · ",Ot(dt.timestamp)]})]}),O.jsx("button",{onClick:()=>oe({type:"revert",target:dt.sha,label:dt.message}),className:"p-1 rounded opacity-0 group-hover:opacity-100 transition-opacity shrink-0",style:{color:"var(--text-muted)"},...I9("var(--bg-hover)","var(--accent)","transparent","var(--text-muted)"),title:"Revert to this version",children:O.jsx(Vfn,{size:12})})]},dt.sha))})}),O.jsxs("div",{className:"px-3 py-2.5 flex gap-2",style:{borderTop:"1px solid var(--border)"},children:[O.jsxs("button",{onClick:()=>oe({type:"archive",target:Te,label:Te.split("/").pop()??Te}),disabled:_,className:"flex items-center gap-1.5 px-2.5 py-1 text-[11px] font-medium rounded-md transition-colors disabled:opacity-40",style:{color:"var(--text-muted)"},...I9("var(--bg-hover)","var(--text-secondary)","transparent","var(--text-muted)"),children:[O.jsx(qan,{size:11}),"Archive"]}),O.jsxs("button",{onClick:()=>oe({type:"delete",target:Te,label:Te.split("/").pop()??Te}),disabled:_,className:"flex items-center gap-1.5 px-2.5 py-1 text-[11px] font-medium rounded-md transition-colors disabled:opacity-40",style:{color:"var(--text-muted)"},...I9("rgba(239,68,68,.1)","#ef4444","transparent","var(--text-muted)"),children:[O.jsx(R9,{size:11}),"Delete"]})]})]}),!he&&Ee&&O.jsxs("div",{className:"px-3 py-4 text-center",children:[O.jsx("p",{className:"text-[12px] mb-1",style:{color:"var(--text-secondary)"},children:"Viewing someone else's branch."}),O.jsx("p",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Switch to your own branch to make changes."})]})]})]})}const h4t=Zb("var(--bg-hover)");function Hfe({branch:l,currentBranch:s,onSwitch:u}){const h=l.name===s,g=l.name.split("/"),m=g.length>=3?g.slice(2).join("/"):l.name;return O.jsxs("button",{onClick:()=>{h||u(l.name)},className:"w-full flex items-center gap-2 px-3 py-1.5 text-[12px] font-mono text-left transition-colors",style:{color:h?"var(--accent)":"var(--text-secondary)",background:h?"var(--accent-soft)":"transparent"},onMouseEnter:p=>{h||h4t.onMouseEnter(p)},onMouseLeave:p=>{h||h4t.onMouseLeave(p)},children:[O.jsx(hOt,{size:11,style:{color:h?"var(--accent)":"var(--text-muted)",flexShrink:0}}),O.jsx("span",{className:"flex-1 truncate",children:m}),l.commit_count>0&&O.jsx("span",{className:"text-[10px] shrink-0",style:{color:"var(--text-muted)"},children:l.commit_count})]})}function Kw(l){return l.data}function t3n({onClose:l,onSelectNode:s}){const[u,h]=ue.useState(""),[g,m]=ue.useState(0),p=ue.useRef(null),k=ue.useRef(null),{getNodes:S,setCenter:C}=JX(),N=ue.useMemo(()=>{const R=S();if(!u.trim())return R.map(F=>{const X=Kw(F),J=Yw[X.nodeType];return{id:F.id,label:X.label,nodeType:X.nodeType,meta:J,x:F.position.x,y:F.position.y}});const q=u.toLowerCase();return R.map(F=>{const X=Kw(F),J=Yw[X.nodeType],ee=X.label||"",te=(J==null?void 0:J.name)||"",ie=(J==null?void 0:J.label)||"";return ee.toLowerCase().includes(q)||te.toLowerCase().includes(q)||ie.toLowerCase().includes(q)?{id:F.id,label:ee,nodeType:X.nodeType,meta:J,x:F.position.x,y:F.position.y}:null}).filter(Boolean)},[u,S]);ue.useEffect(()=>{m(0)},[N.length]),ue.useEffect(()=>{requestAnimationFrame(()=>{var R;return(R=p.current)==null?void 0:R.focus()})},[]),ue.useEffect(()=>{if(!k.current)return;const R=k.current.children[g];R==null||R.scrollIntoView({block:"nearest"})},[g]);const _=ue.useCallback(R=>{const q=N[R];q&&(C(q.x+100,q.y+25,{zoom:.8,duration:300}),s(q.id),l())},[N,C,s,l]),P=ue.useCallback(R=>{R.key==="ArrowDown"?(R.preventDefault(),m(q=>Math.min(q+1,N.length-1))):R.key==="ArrowUp"?(R.preventDefault(),m(q=>Math.max(q-1,0))):R.key==="Enter"?(R.preventDefault(),_(g)):R.key==="Escape"&&(R.preventDefault(),l())},[N.length,g,_,l]);return O.jsxs("div",{className:"fixed inset-0 z-[100] flex justify-center pt-[3vh]",onClick:R=>{R.target===R.currentTarget&&l()},children:[O.jsx("div",{className:"absolute inset-0 bg-black/40"}),O.jsxs("div",{role:"dialog","aria-label":"Search pipeline nodes",className:"relative w-full max-w-md rounded-xl shadow-2xl overflow-hidden animate-fade-in",style:{background:"var(--bg-panel)",border:"1px solid var(--border-bright)"},children:[O.jsxs("div",{className:"flex items-center gap-2 px-4 py-3",style:{borderBottom:"1px solid var(--border)"},children:[O.jsx(XX,{size:16,style:{color:"var(--text-muted)"},className:"shrink-0"}),O.jsx("input",{ref:p,type:"text",value:u,onChange:R=>h(R.target.value),onKeyDown:P,placeholder:"Search nodes by name or type...",className:"flex-1 bg-transparent text-[14px] focus:outline-none",style:{color:"var(--text-primary)"}}),O.jsx("kbd",{className:"text-[10px] px-1.5 py-0.5 rounded font-mono",style:{background:"var(--bg-hover)",color:"var(--text-muted)"},children:"Esc"})]}),O.jsx("div",{ref:k,role:"listbox","aria-label":"Node results",className:"max-h-[85vh] overflow-y-auto py-1",children:N.length===0?O.jsx("div",{className:"px-4 py-6 text-center text-[13px]",style:{color:"var(--text-muted)"},children:"No matching nodes"}):N.map((R,q)=>{var J,ee,te,ie;const F=(J=R.meta)==null?void 0:J.icon,X=((ee=R.meta)==null?void 0:ee.color)||"var(--text-secondary)";return O.jsxs("button",{role:"option","aria-selected":q===g,"aria-label":`${((te=R.meta)==null?void 0:te.name)||"Node"}: ${R.label}`,className:"w-full flex items-center gap-3 px-4 py-2 text-left transition-colors",style:{background:q===g?"var(--bg-hover)":"transparent"},onMouseEnter:()=>m(q),onClick:()=>_(q),children:[F&&O.jsx(F,{size:14,style:{color:X},className:"shrink-0"}),O.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.08em] shrink-0 min-w-[60px]",style:{color:X},children:((ie=R.meta)==null?void 0:ie.label)||"NODE"}),O.jsx("span",{className:"text-[13px] truncate",style:{color:"var(--text-primary)"},children:R.label})]},R.id)})}),O.jsxs("div",{className:"flex items-center gap-3 px-4 py-2 text-[11px]",style:{borderTop:"1px solid var(--border)",color:"var(--text-muted)"},children:[O.jsxs("span",{children:[O.jsx("kbd",{className:"font-mono",children:"↑↓"})," navigate"]}),O.jsxs("span",{children:[O.jsx("kbd",{className:"font-mono",children:"↵"})," jump to node"]}),O.jsxs("span",{children:[O.jsx("kbd",{className:"font-mono",children:"esc"})," close"]})]})]})]})}function n3n(l=[],s=[]){const[u,h,g]=lan(l),[m,p,k]=uan(s),S=ue.useRef([]),C=ue.useRef([]),N=ue.useRef(u),_=ue.useRef(m);ue.useEffect(()=>{N.current=u,_.current=m},[u,m]);const[P,R]=ue.useState(!1),[q,F]=ue.useState(!1),X=ue.useCallback(()=>{S.current=[...S.current.slice(-99),{nodes:N.current,edges:_.current}],C.current=[],R(!0),F(!1)},[]),J=ue.useRef(!1),ee=ue.useCallback(Ne=>{const qe=Ne.some(we=>we.type==="add"||we.type==="remove"||we.type==="replace"),Ke=Ne.some(we=>we.type==="position"&&we.dragging===!0),Le=Ne.some(we=>we.type==="position"&&we.dragging===!1);qe&&X(),Ke&&!J.current&&(J.current=!0,X()),Le&&(J.current=!1),g(Ne)},[g,X]),te=ue.useCallback(Ne=>{Ne.some(Ke=>Ke.type==="add"||Ke.type==="remove"||Ke.type==="replace")&&X(),k(Ne)},[k,X]),ie=ue.useCallback(Ne=>{X(),h(Ne)},[h,X]),oe=ue.useCallback(Ne=>{X(),p(Ne)},[p,X]),se=ue.useCallback(()=>{const Ne=S.current.pop();Ne&&(C.current.push({nodes:N.current,edges:_.current}),h(Ne.nodes),p(Ne.edges),R(S.current.length>0),F(!0))},[h,p]),ge=ue.useCallback(()=>{const Ne=C.current.pop();Ne&&(S.current.push({nodes:N.current,edges:_.current}),h(Ne.nodes),p(Ne.edges),R(!0),F(C.current.length>0))},[h,p]);return{nodes:u,edges:m,setNodes:ie,setEdges:oe,setNodesRaw:h,setEdgesRaw:p,onNodesChange:ee,onEdgesChange:te,undo:se,redo:ge,canUndo:P,canRedo:q,pushSnapshot:X}}function Qfe(l){throw new Error('Could not dynamically require "'+l+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var VCe={exports:{}},d4t;function i3n(){return d4t||(d4t=1,(function(l,s){(function(u){l.exports=u()})(function(){return(function(){function u(h,g,m){function p(C,N){if(!g[C]){if(!h[C]){var _=typeof Qfe=="function"&&Qfe;if(!N&&_)return _(C,!0);if(k)return k(C,!0);var P=new Error("Cannot find module '"+C+"'");throw P.code="MODULE_NOT_FOUND",P}var R=g[C]={exports:{}};h[C][0].call(R.exports,function(q){var F=h[C][1][q];return p(F||q)},R,R.exports,u,h,g,m)}return g[C].exports}for(var k=typeof Qfe=="function"&&Qfe,S=0;S<m.length;S++)p(m[S]);return p}return u})()({1:[function(u,h,g){Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;function m(P){"@babel/helpers - typeof";return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},m(P)}function p(P,R){if(!(P instanceof R))throw new TypeError("Cannot call a class as a function")}function k(P,R){for(var q=0;q<R.length;q++){var F=R[q];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(P,C(F.key),F)}}function S(P,R,q){return R&&k(P.prototype,R),Object.defineProperty(P,"prototype",{writable:!1}),P}function C(P){var R=N(P,"string");return m(R)=="symbol"?R:R+""}function N(P,R){if(m(P)!="object"||!P)return P;var q=P[Symbol.toPrimitive];if(q!==void 0){var F=q.call(P,R);if(m(F)!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(P)}g.default=(function(){function P(){var R=this,q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=q.defaultLayoutOptions,X=F===void 0?{}:F,J=q.algorithms,ee=J===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking","vertiflex"]:J,te=q.workerFactory,ie=q.workerUrl;if(p(this,P),this.defaultLayoutOptions=X,this.initialized=!1,typeof ie>"u"&&typeof te>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var oe=te;typeof ie<"u"&&typeof te>"u"&&(oe=function(Ne){return new Worker(Ne)});var se=oe(ie);if(typeof se.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new _(se),this.worker.postMessage({cmd:"register",algorithms:ee}).then(function(ge){return R.initialized=!0}).catch(console.err)}return S(P,[{key:"layout",value:function(q){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=F.layoutOptions,J=X===void 0?this.defaultLayoutOptions:X,ee=F.logging,te=ee===void 0?!1:ee,ie=F.measureExecutionTime,oe=ie===void 0?!1:ie;return q?this.worker.postMessage({cmd:"layout",graph:q,layoutOptions:J,options:{logging:te,measureExecutionTime:oe}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}])})();var _=(function(){function P(R){var q=this;if(p(this,P),R===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=R,this.worker.onmessage=function(F){setTimeout(function(){q.receive(q,F)},0)}}return S(P,[{key:"postMessage",value:function(q){var F=this.id||0;this.id=F+1,q.id=F;var X=this;return new Promise(function(J,ee){X.resolvers[F]=function(te,ie){te?(X.convertGwtStyleError(te),ee(te)):J(ie)},X.worker.postMessage(q)})}},{key:"receive",value:function(q,F){var X=F.data,J=q.resolvers[X.id];J&&(delete q.resolvers[X.id],X.error?J(X.error):J(null,X.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(q){if(q){var F=q.__java$exception;F&&(F.cause&&F.cause.backingJsObject&&(q.cause=F.cause.backingJsObject,this.convertGwtStyleError(q.cause)),delete q.__java$exception)}}}])})()},{}],2:[function(u,h,g){(function(m){(function(){var p;typeof window<"u"?p=window:typeof m<"u"?p=m:typeof self<"u"&&(p=self);var k;function S(){}function C(){}function N(){}function _(){}function P(){}function R(){}function q(){}function F(){}function X(){}function J(){}function ee(){}function te(){}function ie(){}function oe(){}function se(){}function ge(){}function Ne(){}function qe(){}function Ke(){}function Le(){}function we(){}function Z(){}function pe(){}function Re(){}function he(){}function Ee(){}function Te(){}function ye(){}function ft(){}function Ce(){}function We(){}function gt(){}function Ot(){}function dt(){}function cn(){}function dn(){}function wn(){}function ni(){}function nr(){}function ii(){}function ji(){}function Ti(){}function as(){}function xo(){}function qr(){}function Nn(){}function Ps(){}function ms(){}function rs(){}function fr(){}function jp(){}function ko(){}function eu(){}function tm(){}function og(){}function Tp(){}function nm(){}function Mu(){}function Ep(){}function OO(){}function SO(){}function im(){}function of(){}function c1(){}function zf(){}function jO(){}function e2(){}function TO(){}function t2(){}function n2(){}function i2(){}function a0(){}function r2(){}function rm(){}function l5(){}function u5(){}function Py(){}function sm(){}function EO(){}function om(){}function Iy(){}function a5(){}function cm(){}function Ry(){}function f5(){}function $y(){}function cg(){}function Au(){}function kn(){}function ro(){}function al(){}function Pa(){}function CO(){}function J9(){}function By(){}function MO(){}function Cp(){}function s2(){}function o2(){}function c2(){}function sa(){}function V9(){}function X9(){}function lm(){}function l2(){}function XM(){}function AO(){}function W9(){}function K9(){}function zy(){}function h5(){}function f0(){}function Od(){}function Y9(){}function WM(){}function u2(){}function Z9(){}function Fy(){}function KM(){}function Sd(){}function qy(){}function e8(){}function NO(){}function um(){}function aR(){}function fR(){}function d5(){}function lW(){}function hR(){}function dR(){}function YM(){}function uW(){}function aW(){}function t8(){}function am(){}function ZM(){}function eA(){}function g5(){}function p5(){}function gR(){}function tA(){}function pR(){}function _O(){}function fm(){}function nA(){}function DO(){}function a2(){}function iA(){}function n8(){}function bR(){}function i8(){}function r8(){}function mR(){}function jd(){}function Hy(){}function s8(){}function LO(){}function fW(){}function rA(){}function sA(){}function PO(){}function o8(){}function wR(){}function hW(){}function dW(){}function gW(){}function oA(){}function pW(){}function bW(){}function mW(){}function wW(){}function vW(){}function vR(){}function yW(){}function xW(){}function kW(){}function OW(){}function cA(){}function SW(){}function jW(){}function TW(){}function yR(){}function EW(){}function CW(){}function MW(){}function AW(){}function NW(){}function _W(){}function DW(){}function LW(){}function PW(){}function lA(){}function IO(){}function IW(){}function xR(){}function kR(){}function OR(){}function SR(){}function jR(){}function b5(){}function RW(){}function $W(){}function BW(){}function TR(){}function ER(){}function RO(){}function $O(){}function zW(){}function c8(){}function CR(){}function uA(){}function aA(){}function fA(){}function MR(){}function AR(){}function NR(){}function FW(){}function qW(){}function HW(){}function QW(){}function GW(){}function l1(){}function BO(){}function _R(){}function DR(){}function LR(){}function PR(){}function hA(){}function UW(){}function m5(){}function dA(){}function zO(){}function gA(){}function IR(){}function Qy(){}function w5(){}function pA(){}function RR(){}function Gy(){}function $R(){}function BR(){}function zR(){}function JW(){}function VW(){}function XW(){}function FR(){}function qR(){}function bA(){}function h0(){}function l8(){}function lg(){}function v5(){}function mA(){}function u8(){}function a8(){}function wA(){}function Uy(){}function HR(){}function f8(){}function y5(){}function WW(){}function u1(){}function vA(){}function hm(){}function QR(){}function h8(){}function Jy(){}function yA(){}function GR(){}function xA(){}function UR(){}function ug(){}function x5(){}function k5(){}function d8(){}function FO(){}function ag(){}function fg(){}function f2(){}function Mp(){}function Ap(){}function dm(){}function JR(){}function kA(){}function OA(){}function VR(){}function cf(){}function jl(){}function Oo(){}function h2(){}function hg(){}function SA(){}function d2(){}function XR(){}function WR(){}function O5(){}function Vy(){}function S5(){}function g2(){}function jA(){}function Xy(){}function Np(){}function p2(){}function gm(){}function TA(){}function EA(){}function j5(){}function qO(){}function b2(){}function Ff(){}function HO(){}function CA(){}function KW(){}function YW(){}function QO(){}function oa(){}function MA(){}function GO(){}function UO(){}function AA(){}function T5(){}function E5(){}function ZW(){}function KR(){}function eK(){}function YR(){}function Wy(){}function NA(){}function g8(){}function ZR(){}function C5(){}function _A(){}function p8(){}function b8(){}function DA(){}function e$(){}function Ky(){}function Yy(){}function t$(){}function n$(){}function M5(){}function JO(){}function m8(){}function VO(){}function w8(){}function i$(){}function Zy(){}function r$(){}function m2(){}function LA(){}function PA(){}function w2(){}function v2(){}function XO(){}function IA(){}function RA(){}function WO(){}function KO(){}function s$(){}function o$(){}function A5(){}function v8(){}function c$(){}function $A(){}function BA(){}function a1(){}function dg(){}function y2(){}function zA(){}function l$(){}function x2(){}function f1(){}function Nu(){}function y8(){}function pm(){}function Es(){}function zc(){}function ca(){}function x8(){}function N5(){}function ex(){}function k8(){}function YO(){}function _5(){}function tK(){}function du(){}function FA(){}function qA(){}function u$(){}function a$(){}function nK(){}function HA(){}function QA(){}function GA(){}function Gh(){}function _u(){}function O8(){}function ZO(){}function S8(){}function UA(){}function bm(){}function j8(){}function JA(){}function f$(){}function h$(){}function d$(){}function g$(){}function p$(){}function b$(){}function m$(){}function VA(){}function w$(){}function iK(){}function v$(){}function y$(){}function x$(){}function XA(){}function k$(){}function O$(){}function S$(){}function j$(){}function T$(){}function rK(){}function E$(){}function D5(){}function C$(){}function T8(){}function E8(){}function M$(){}function WA(){}function sK(){}function A$(){}function N$(){}function _$(){}function D$(){}function L$(){}function KA(){}function P$(){}function I$(){}function YA(){}function R$(){}function $$(){}function ZA(){}function e6(){}function B$(){}function C8(){}function eN(){}function z$(){}function F$(){}function oK(){}function cK(){}function q$(){}function t6(){}function tN(){}function M8(){}function H$(){}function Q$(){}function n6(){}function G$(){}function nN(){}function lK(){}function iN(){}function A8(){}function U$(){}function J$(){}function tx(){}function V$(){}function X$(){}function W$(){}function N8(){}function K$(){}function rN(){}function Y$(){}function h1(){}function uK(){}function _p(){}function Du(){}function qf(){}function Z$(){}function eB(){}function tB(){}function nB(){}function i6(){}function iB(){}function _8(){}function rB(){}function aK(){}function D8(){}function sN(){}function sB(){}function oB(){}function cB(){}function oN(){}function cN(){}function lN(){}function lB(){}function uN(){}function et(){}function aN(){}function uB(){}function fN(){}function aB(){}function mm(){}function hN(){}function fK(){}function fB(){}function wm(){}function dN(){}function hB(){}function L5(){}function r6(){}function Tl(){}function gN(){}function hK(){}function dB(){}function s6(){}function k2(){}function L8(){}function o6(){}function O2(){}function Dp(){}function pN(){}function bN(){}function gB(){}function P5(){}function mN(){}function P8(){}function pB(){}function gg(){}function la(){}function wN(){}function bB(){}function lf(){}function I8(){}function mB(){}function vN(){}function Fl(){}function hh(){}function Lp(){}function wB(){}function vB(){}function yB(){}function dK(){}function yN(){}function Td(){}function d0(){}function xB(){}function Ed(){}function kB(){}function vm(){}function nx(){}function ym(){}function xN(){}function kN(){}function Hf(){}function R8(){}function I5(){}function c6(){}function l6(){}function R5(){}function OB(){}function SB(){}function u6(){}function jB(){}function $8(){}function TB(){}function gK(){}function pK(){}function oc(){}function el(){}function so(){}function mo(){}function jc(){}function d1(){}function S2(){}function $5(){}function ON(){}function xm(){}function gu(){}function j2(){}function ix(){}function SN(){}function g1(){}function B5(){}function a6(){}function Cd(){}function jN(){}function B8(){}function EB(){}function z8(){}function F8(){}function T2(){}function Ia(){}function E2(){}function z5(){}function km(){}function TN(){}function EN(){}function CB(){}function f6(){}function CN(){}function p1(){}function MB(){}function Md(){}function AB(){}function NB(){}function bK(){}function C2(){}function q8(){}function MN(){}function F5(){}function _B(){}function DB(){}function LB(){}function PB(){}function H8(){}function AN(){}function mK(){}function wK(){}function vK(){}function IB(){}function RB(){}function q5(){}function Q8(){}function $B(){}function BB(){}function zB(){}function FB(){}function qB(){}function HB(){}function G8(){}function QB(){}function GB(){}function Tc(){}function NN(){}function yK(){}function UB(){}function xK(){}function kK(){}function OK(){}function U8(){}function H5(){}function _N(){}function J8(){}function DN(){}function M2(){}function Pp(){}function h6(){}function SK(){}function JB(){}function VB(){}function XB(){}function WB(){}function jK(){}function LN(){}function KB(){}function YB(){}function ZB(){}function PN(){}function IN(){}function RN(){hT()}function TK(){Ove()}function d6(){y_()}function EK(){Sf()}function ez(){D2e()}function oo(){YD()}function $N(){J_()}function V8(){v_()}function BN(){ERe()}function tz(){H4()}function zN(){cJe()}function g6(){xS()}function X8(){$0()}function CK(){Lme()}function nz(){_Xe()}function MK(){DXe()}function AK(){tF()}function iz(){Cxe()}function rz(){WQe()}function Fc(){qJe()}function FN(){Dme()}function Qf(){VQe()}function NK(){JQe()}function sz(){XQe()}function _K(){YQe()}function qN(){Ge()}function HN(){LXe()}function W8(){$Ge()}function oz(){PXe()}function cz(){ZQe()}function QN(){F4()}function GN(){oWe()}function DK(){Bye()}function lz(){B0()}function LK(){KQe()}function uz(){BZe()}function PK(){brt()}function IK(){eye()}function A2(){Jo()}function az(){Th()}function fz(){Wye()}function UN(){UKe()}function RK(){A1()}function $K(){iL()}function hz(){Cie()}function JN(){$ne()}function VN(){Ywe()}function BK(){Z4()}function pg(){uH()}function XN(){NQ()}function WN(){In()}function dz(){QH()}function gz(){u2e()}function Q5(){YQ()}function b1(){Ite()}function ua(){MFe()}function K8(){Zye()}function Ip(e){zt(e)}function zK(e){this.a=e}function Y8(e){this.a=e}function G5(e){this.a=e}function pz(e){this.a=e}function FK(e){this.a=e}function bz(e){this.a=e}function mz(e){this.a=e}function qK(e){this.a=e}function KN(e){this.a=e}function HK(e){this.a=e}function QK(e){this.a=e}function wz(e){this.a=e}function U5(e){this.a=e}function p6(e){this.c=e}function vz(e){this.a=e}function YN(e){this.a=e}function J5(e){this.a=e}function b6(e){this.a=e}function yz(e){this.a=e}function V5(e){this.a=e}function ZN(e){this.a=e}function e_(e){this.a=e}function X5(e){this.a=e}function xz(e){this.a=e}function Z8(e){this.a=e}function GK(e){this.a=e}function kz(e){this.a=e}function UK(e){this.a=e}function t_(e){this.a=e}function JK(e){this.a=e}function eT(e){this.a=e}function tT(e){this.a=e}function nT(e){this.a=e}function VK(e){this.a=e}function m6(e){this.a=e}function XK(e){this.a=e}function Oz(e){this.a=e}function Sz(e){this.a=e}function jz(e){this.a=e}function n_(e){this.a=e}function iT(e){this.a=e}function w6(e){this.a=e}function W5(e){this.a=e}function v6(e){this.b=e}function bg(){this.a=[]}function WK(e,t){e.a=t}function Tz(e,t){e.a=t}function Ez(e,t){e.b=t}function i_(e,t){e.c=t}function Cz(e,t){e.c=t}function KK(e,t){e.d=t}function Mz(e,t){e.d=t}function pu(e,t){e.k=t}function Om(e,t){e.j=t}function rx(e,t){e.c=t}function K5(e,t){e.c=t}function Y5(e,t){e.a=t}function sx(e,t){e.a=t}function Rde(e,t){e.f=t}function YK(e,t){e.a=t}function rT(e,t){e.b=t}function r_(e,t){e.d=t}function y6(e,t){e.i=t}function x6(e,t){e.o=t}function ZK(e,t){e.r=t}function $de(e,t){e.a=t}function s_(e,t){e.b=t}function sT(e,t){e.e=t}function eY(e,t){e.f=t}function ox(e,t){e.g=t}function tY(e,t){e.e=t}function Az(e,t){e.f=t}function o_(e,t){e.f=t}function Z5(e,t){e.b=t}function c_(e,t){e.b=t}function e4(e,t){e.a=t}function w(e,t){e.n=t}function y(e,t){e.a=t}function j(e,t){e.c=t}function D(e,t){e.c=t}function B(e,t){e.c=t}function H(e,t){e.a=t}function fe(e,t){e.a=t}function Ae(e,t){e.d=t}function pt(e,t){e.d=t}function Ft(e,t){e.e=t}function pn(e,t){e.e=t}function Sn(e,t){e.g=t}function Zt(e,t){e.f=t}function sn(e,t){e.j=t}function Yi(e,t){e.a=t}function Hr(e,t){e.a=t}function tl(e,t){e.b=t}function Nt(e){e.b=e.a}function xt(e){e.c=e.d.d}function $t(e){this.a=e}function an(e){this.a=e}function yr(e){this.a=e}function qo(e){this.a=e}function cr(e){this.a=e}function gs(e){this.a=e}function qs(e){this.a=e}function Ho(e){this.a=e}function Sm(e){this.a=e}function Rp(e){this.a=e}function nY(e){this.a=e}function m1(e){this.a=e}function N2(e){this.a=e}function ANe(e){this.a=e}function NNe(e){this.a=e}function Bde(e){this.a=e}function _Ne(e){this.a=e}function Vn(e){this.a=e}function oT(e){this.d=e}function iY(e){this.b=e}function k6(e){this.b=e}function cx(e){this.b=e}function rY(e){this.c=e}function U(e){this.c=e}function DNe(e){this.c=e}function LNe(e){this.a=e}function zde(e){this.a=e}function Fde(e){this.a=e}function qde(e){this.a=e}function Hde(e){this.a=e}function Qde(e){this.a=e}function Gde(e){this.a=e}function O6(e){this.a=e}function PNe(e){this.a=e}function INe(e){this.a=e}function S6(e){this.a=e}function RNe(e){this.a=e}function $Ne(e){this.a=e}function BNe(e){this.a=e}function zNe(e){this.a=e}function FNe(e){this.a=e}function qNe(e){this.a=e}function HNe(e){this.a=e}function QNe(e){this.a=e}function GNe(e){this.a=e}function j6(e){this.a=e}function UNe(e){this.a=e}function JNe(e){this.a=e}function VNe(e){this.a=e}function XNe(e){this.a=e}function Nz(e){this.a=e}function WNe(e){this.a=e}function KNe(e){this.a=e}function Ude(e){this.a=e}function YNe(e){this.a=e}function ZNe(e){this.a=e}function e_e(e){this.a=e}function Jde(e){this.a=e}function Vde(e){this.a=e}function Xde(e){this.a=e}function cT(e){this.a=e}function _z(e){this.e=e}function T6(e){this.a=e}function t_e(e){this.a=e}function t4(e){this.a=e}function Wde(e){this.a=e}function n_e(e){this.a=e}function i_e(e){this.a=e}function r_e(e){this.a=e}function s_e(e){this.a=e}function o_e(e){this.a=e}function c_e(e){this.a=e}function l_e(e){this.a=e}function u_e(e){this.a=e}function a_e(e){this.a=e}function f_e(e){this.a=e}function h_e(e){this.a=e}function Kde(e){this.a=e}function d_e(e){this.a=e}function g_e(e){this.a=e}function p_e(e){this.a=e}function b_e(e){this.a=e}function m_e(e){this.a=e}function w_e(e){this.a=e}function v_e(e){this.a=e}function y_e(e){this.a=e}function x_e(e){this.a=e}function k_e(e){this.a=e}function O_e(e){this.a=e}function S_e(e){this.a=e}function j_e(e){this.a=e}function T_e(e){this.a=e}function E_e(e){this.a=e}function C_e(e){this.a=e}function M_e(e){this.a=e}function A_e(e){this.a=e}function N_e(e){this.a=e}function __e(e){this.a=e}function D_e(e){this.a=e}function L_e(e){this.a=e}function P_e(e){this.a=e}function I_e(e){this.a=e}function R_e(e){this.a=e}function $_e(e){this.a=e}function B_e(e){this.a=e}function z_e(e){this.a=e}function F_e(e){this.a=e}function q_e(e){this.a=e}function H_e(e){this.a=e}function Q_e(e){this.a=e}function G_e(e){this.a=e}function U_e(e){this.a=e}function J_e(e){this.a=e}function V_e(e){this.a=e}function X_e(e){this.a=e}function W_e(e){this.a=e}function K_e(e){this.a=e}function Y_e(e){this.a=e}function Z_e(e){this.a=e}function eDe(e){this.a=e}function tDe(e){this.c=e}function nDe(e){this.b=e}function iDe(e){this.a=e}function rDe(e){this.a=e}function sDe(e){this.a=e}function oDe(e){this.a=e}function cDe(e){this.a=e}function lDe(e){this.a=e}function uDe(e){this.a=e}function aDe(e){this.a=e}function fDe(e){this.a=e}function hDe(e){this.a=e}function dDe(e){this.a=e}function gDe(e){this.a=e}function pDe(e){this.a=e}function bDe(e){this.a=e}function mDe(e){this.a=e}function wDe(e){this.a=e}function vDe(e){this.a=e}function yDe(e){this.a=e}function xDe(e){this.a=e}function kDe(e){this.a=e}function ODe(e){this.a=e}function SDe(e){this.a=e}function jDe(e){this.a=e}function TDe(e){this.a=e}function EDe(e){this.a=e}function CDe(e){this.a=e}function MDe(e){this.a=e}function w1(e){this.a=e}function lx(e){this.a=e}function ADe(e){this.a=e}function NDe(e){this.a=e}function _De(e){this.a=e}function DDe(e){this.a=e}function LDe(e){this.a=e}function PDe(e){this.a=e}function IDe(e){this.a=e}function RDe(e){this.a=e}function $De(e){this.a=e}function BDe(e){this.a=e}function zDe(e){this.a=e}function FDe(e){this.a=e}function qDe(e){this.a=e}function HDe(e){this.a=e}function QDe(e){this.a=e}function GDe(e){this.a=e}function UDe(e){this.a=e}function JDe(e){this.a=e}function Yde(e){this.a=e}function VDe(e){this.a=e}function XDe(e){this.a=e}function WDe(e){this.a=e}function KDe(e){this.a=e}function YDe(e){this.a=e}function ZDe(e){this.a=e}function eLe(e){this.a=e}function tLe(e){this.a=e}function Dz(e){this.a=e}function nLe(e){this.f=e}function iLe(e){this.a=e}function rLe(e){this.a=e}function sLe(e){this.a=e}function oLe(e){this.a=e}function cLe(e){this.a=e}function lLe(e){this.a=e}function uLe(e){this.a=e}function aLe(e){this.a=e}function fLe(e){this.a=e}function hLe(e){this.a=e}function dLe(e){this.a=e}function gLe(e){this.a=e}function pLe(e){this.a=e}function bLe(e){this.a=e}function mLe(e){this.a=e}function wLe(e){this.a=e}function vLe(e){this.a=e}function yLe(e){this.a=e}function xLe(e){this.a=e}function kLe(e){this.a=e}function OLe(e){this.a=e}function SLe(e){this.a=e}function jLe(e){this.a=e}function TLe(e){this.a=e}function ELe(e){this.a=e}function CLe(e){this.a=e}function MLe(e){this.a=e}function sY(e){this.a=e}function Zde(e){this.a=e}function bi(e){this.b=e}function ALe(e){this.a=e}function NLe(e){this.a=e}function _Le(e){this.a=e}function DLe(e){this.a=e}function LLe(e){this.a=e}function PLe(e){this.a=e}function ILe(e){this.a=e}function RLe(e){this.a=e}function l_(e){this.a=e}function $Le(e){this.a=e}function BLe(e){this.b=e}function e1e(e){this.c=e}function Lz(e){this.e=e}function zLe(e){this.a=e}function Pz(e){this.a=e}function Iz(e){this.a=e}function oY(e){this.a=e}function FLe(e){this.d=e}function qLe(e){this.a=e}function t1e(e){this.a=e}function n1e(e){this.a=e}function jm(e){this.e=e}function Yjt(){this.a=0}function He(){kZ(this)}function yn(){cc(this)}function cY(){CHe(this)}function HLe(){}function Tm(){this.c=oEe}function QLe(e,t){e.b+=t}function Zjt(e,t){t.Wb(e)}function e9t(e){return e.a}function t9t(e){return e.a}function n9t(e){return e.a}function i9t(e){return e.a}function r9t(e){return e.a}function V(e){return e.e}function s9t(){return null}function o9t(){return null}function c9t(e){throw V(e)}function n4(e){this.a=Bn(e)}function GLe(){this.a=this}function $p(){dze.call(this)}function l9t(e){e.b.Mf(e.e)}function ULe(e){e.b=new SY}function lT(e,t){e.b=t-e.b}function uT(e,t){e.a=t-e.a}function JLe(e,t){t.gd(e.a)}function u9t(e,t){$r(t,e)}function It(e,t){e.push(t)}function VLe(e,t){e.sort(t)}function a9t(e,t,n){e.Wd(n,t)}function u_(e,t){e.e=t,t.b=e}function f9t(){P1e(),inn()}function XLe(e){iS(),Zoe.je(e)}function i1e(){dze.call(this)}function r1e(){$p.call(this)}function lY(){$p.call(this)}function WLe(){$p.call(this)}function a_(){$p.call(this)}function El(){$p.call(this)}function i4(){$p.call(this)}function zn(){$p.call(this)}function aa(){$p.call(this)}function KLe(){$p.call(this)}function Mo(){$p.call(this)}function YLe(){$p.call(this)}function Rz(){this.Bb|=256}function ZLe(){this.b=new uBe}function s1e(){s1e=Z,new yn}function ePe(){r1e.call(this)}function _2(e,t){e.length=t}function $z(e,t){Qe(e.a,t)}function h9t(e,t){jve(e.c,t)}function d9t(e,t){Er(e.b,t)}function g9t(e,t){bQ(e.a,t)}function p9t(e,t){ane(e.a,t)}function E6(e,t){yi(e.e,t)}function r4(e){PQ(e.c,e.b)}function b9t(e,t){e.kc().Nb(t)}function o1e(e){this.a=BBt(e)}function Tr(){this.a=new yn}function tPe(){this.a=new yn}function Bz(){this.a=new He}function uY(){this.a=new He}function c1e(){this.a=new He}function Ra(){this.a=new SO}function Bp(){this.a=new sJe}function aY(){this.a=new yRe}function l1e(){this.a=new zQe}function u1e(){this.a=new nFe}function a1e(){this.a=new Iy}function nPe(){this.a=new bGe}function iPe(){this.a=new He}function rPe(){this.a=new He}function sPe(){this.a=new He}function f1e(){this.a=new He}function oPe(){this.d=new He}function cPe(){this.a=new Tr}function lPe(){this.a=new yn}function uPe(){this.b=new yn}function aPe(){this.b=new He}function h1e(){this.e=new He}function fPe(){this.d=new He}function hPe(){this.a=new X8}function dPe(){bQe.call(this)}function gPe(){bQe.call(this)}function pPe(){m1e.call(this)}function bPe(){m1e.call(this)}function mPe(){m1e.call(this)}function wPe(){He.call(this)}function vPe(){f1e.call(this)}function zz(){Bz.call(this)}function yPe(){KF.call(this)}function aT(){HLe.call(this)}function fY(){aT.call(this)}function s4(){HLe.call(this)}function d1e(){s4.call(this)}function tu(){_i.call(this)}function xPe(){w1e.call(this)}function fT(){k2.call(this)}function g1e(){k2.call(this)}function kPe(){IPe.call(this)}function OPe(){IPe.call(this)}function SPe(){yn.call(this)}function jPe(){yn.call(this)}function TPe(){yn.call(this)}function hY(){CXe.call(this)}function EPe(){Tr.call(this)}function CPe(){Rz.call(this)}function dY(){t0e.call(this)}function p1e(){yn.call(this)}function gY(){t0e.call(this)}function pY(){yn.call(this)}function MPe(){yn.call(this)}function b1e(){I8.call(this)}function APe(){b1e.call(this)}function NPe(){I8.call(this)}function _Pe(){ZB.call(this)}function m1e(){this.a=new Tr}function DPe(){this.a=new yn}function w1e(){this.a=new yn}function o4(){this.a=new _i}function LPe(){this.a=new He}function PPe(){this.j=new He}function IPe(){this.a=new la}function v1e(){this.a=new D$}function RPe(){this.a=new DIe}function hT(){hT=Z,Goe=new C}function bY(){bY=Z,Uoe=new BPe}function mY(){mY=Z,Joe=new $Pe}function $Pe(){X5.call(this,"")}function BPe(){X5.call(this,"")}function zPe(e){eXe.call(this,e)}function FPe(e){eXe.call(this,e)}function y1e(e){bz.call(this,e)}function x1e(e){fRe.call(this,e)}function m9t(e){fRe.call(this,e)}function w9t(e){x1e.call(this,e)}function v9t(e){x1e.call(this,e)}function y9t(e){x1e.call(this,e)}function qPe(e){ete.call(this,e)}function HPe(e){ete.call(this,e)}function QPe(e){JBe.call(this,e)}function GPe(e){F1e.call(this,e)}function dT(e){Kz.call(this,e)}function k1e(e){Kz.call(this,e)}function UPe(e){Kz.call(this,e)}function Ao(e){qqe.call(this,e)}function JPe(e){Ao.call(this,e)}function c4(){W5.call(this,{})}function wY(e){B6(),this.a=e}function VPe(e){e.b=null,e.c=0}function x9t(e,t){e.e=t,git(e,t)}function k9t(e,t){e.a=t,YGt(e)}function vY(e,t,n){e.a[t.g]=n}function O9t(e,t,n){wHt(n,e,t)}function S9t(e,t){hEt(t.i,e.n)}function XPe(e,t){M$t(e).Ad(t)}function j9t(e,t){return e*e/t}function WPe(e,t){return e.g-t.g}function T9t(e,t){e.a.ec().Kc(t)}function E9t(e){return new w6(e)}function C9t(e){return new W2(e)}function KPe(){KPe=Z,xke=new S}function O1e(){O1e=Z,kke=new oe}function Fz(){Fz=Z,qE=new Ne}function qz(){qz=Z,Xoe=new UBe}function YPe(){YPe=Z,Aft=new Ke}function Hz(e){Yme(),this.a=e}function ZPe(e){CFe(),this.a=e}function mg(e){iee(),this.f=e}function yY(e){iee(),this.f=e}function Qz(e){Ao.call(this,e)}function qc(e){Ao.call(this,e)}function eIe(e){Ao.call(this,e)}function xY(e){qqe.call(this,e)}function C6(e){Ao.call(this,e)}function qt(e){Ao.call(this,e)}function co(e){Ao.call(this,e)}function tIe(e){Ao.call(this,e)}function l4(e){Ao.call(this,e)}function wg(e){Ao.call(this,e)}function Qo(e){zt(e),this.a=e}function gT(e){Dpe(e,e.length)}function S1e(e){return ub(e),e}function D2(e){return!!e&&e.b}function M9t(e){return!!e&&e.k}function A9t(e){return!!e&&e.j}function pT(e){return e.b==e.c}function Ze(e){return zt(e),e}function de(e){return zt(e),e}function f_(e){return zt(e),e}function j1e(e){return zt(e),e}function N9t(e){return zt(e),e}function Uh(e){Ao.call(this,e)}function u4(e){Ao.call(this,e)}function Jh(e){Ao.call(this,e)}function Un(e){Ao.call(this,e)}function kY(e){Ao.call(this,e)}function OY(e){u0e.call(this,e,0)}function SY(){vbe.call(this,12,3)}function jY(){this.a=qn(Bn(Xc))}function nIe(){throw V(new zn)}function T1e(){throw V(new zn)}function iIe(){throw V(new zn)}function _9t(){throw V(new zn)}function D9t(){throw V(new zn)}function L9t(){throw V(new zn)}function Gz(){Gz=Z,iS()}function vg(){gs.call(this,"")}function bT(){gs.call(this,"")}function g0(){gs.call(this,"")}function a4(){gs.call(this,"")}function E1e(e){qc.call(this,e)}function C1e(e){qc.call(this,e)}function Vh(e){qt.call(this,e)}function M6(e){k6.call(this,e)}function rIe(e){M6.call(this,e)}function TY(e){UF.call(this,e)}function P9t(e,t,n){e.c.Cf(t,n)}function I9t(e,t,n){t.Ad(e.a[n])}function R9t(e,t,n){t.Ne(e.a[n])}function $9t(e,t){return e.a-t.a}function B9t(e,t){return e.a-t.a}function z9t(e,t){return e.a-t.a}function Uz(e,t){return pte(e,t)}function K(e,t){return GQe(e,t)}function F9t(e,t){return t in e.a}function sIe(e){return e.a?e.b:0}function q9t(e){return e.a?e.b:0}function oIe(e,t){return e.f=t,e}function H9t(e,t){return e.b=t,e}function cIe(e,t){return e.c=t,e}function Q9t(e,t){return e.g=t,e}function M1e(e,t){return e.a=t,e}function A1e(e,t){return e.f=t,e}function G9t(e,t){return e.k=t,e}function N1e(e,t){return e.e=t,e}function U9t(e,t){return e.e=t,e}function _1e(e,t){return e.a=t,e}function J9t(e,t){return e.f=t,e}function V9t(e,t){e.b=new Ms(t)}function lIe(e,t){e._d(t),t.$d(e)}function X9t(e,t){Pu(),t.n.a+=e}function W9t(e,t){$0(),Do(t,e)}function D1e(e){VHe.call(this,e)}function uIe(e){VHe.call(this,e)}function aIe(){Fge.call(this,"")}function fIe(){this.b=0,this.a=0}function hIe(){hIe=Z,Hft=GHt()}function Em(e,t){return e.b=t,e}function h_(e,t){return e.a=t,e}function Cm(e,t){return e.c=t,e}function Mm(e,t){return e.d=t,e}function Am(e,t){return e.e=t,e}function EY(e,t){return e.f=t,e}function mT(e,t){return e.a=t,e}function A6(e,t){return e.b=t,e}function N6(e,t){return e.c=t,e}function it(e,t){return e.c=t,e}function yt(e,t){return e.b=t,e}function rt(e,t){return e.d=t,e}function st(e,t){return e.e=t,e}function K9t(e,t){return e.f=t,e}function ot(e,t){return e.g=t,e}function ct(e,t){return e.a=t,e}function lt(e,t){return e.i=t,e}function ut(e,t){return e.j=t,e}function Y9t(e,t){return e.g-t.g}function Z9t(e,t){return e.b-t.b}function e8t(e,t){return e.s-t.s}function t8t(e,t){return e?0:t-1}function dIe(e,t){return e?0:t-1}function n8t(e,t){return e?t-1:0}function i8t(e,t){return t.pg(e)}function gIe(e,t){return e.k=t,e}function r8t(e,t){return e.j=t,e}function fs(){this.a=0,this.b=0}function Jz(e){FZ.call(this,e)}function p0(e){Xm.call(this,e)}function pIe(e){Nee.call(this,e)}function bIe(e){Nee.call(this,e)}function mIe(e,t){e.b=0,ov(e,t)}function s8t(e,t){e.c=t,e.b=!0}function o8t(e,t,n){gAt(e.a,t,n)}function wIe(e,t){return e.c._b(t)}function Gf(e){return e.e&&e.e()}function CY(e){return e?e.d:null}function vIe(e,t){return BKe(e.b,t)}function c8t(e){return e?e.g:null}function l8t(e){return e?e.i:null}function yIe(e,t){return N8t(e.a,t)}function L1e(e,t){for(;e.zd(t););}function xIe(){throw V(new zn)}function b0(){b0=Z,bvt=nHt()}function kIe(){kIe=Z,Kr=hQt()}function P1e(){P1e=Z,hp=v7()}function _6(){_6=Z,sEe=iHt()}function OIe(){OIe=Z,eyt=rHt()}function I1e(){I1e=Z,sc=XGt()}function zp(e){return x1(e),e.o}function ux(e,t){return e.a+=t,e}function MY(e,t){return e.a+=t,e}function yg(e,t){return e.a+=t,e}function Nm(e,t){return e.a+=t,e}function R1e(e){Kst(),bnn(this,e)}function Vz(e){this.a=new f4(e)}function xg(e){this.a=new uee(e)}function SIe(){throw V(new zn)}function jIe(){throw V(new zn)}function TIe(){throw V(new zn)}function EIe(){throw V(new zn)}function CIe(){throw V(new zn)}function MIe(){this.b=new QS(s9e)}function AIe(){this.a=new QS(z9e)}function Xz(e){this.a=0,this.b=e}function NIe(){this.a=new QS(a8e)}function _Ie(){this.b=new QS(Vue)}function DIe(){this.b=new QS(Vue)}function LIe(){this.a=new QS(aTe)}function PIe(e,t){return AXt(e,t)}function u8t(e,t){return fZt(t,e)}function $1e(e,t){return e.d[t.p]}function d_(e){return e.b!=e.d.c}function IIe(e){return e.l|e.m<<22}function D6(e){return S0(e),e.a}function RIe(e){e.c?Ait(e):Nit(e)}function ax(e,t){for(;e.Pe(t););}function B1e(e,t,n){e.splice(t,n)}function $Ie(){throw V(new zn)}function BIe(){throw V(new zn)}function zIe(){throw V(new zn)}function FIe(){throw V(new zn)}function qIe(){throw V(new zn)}function HIe(){throw V(new zn)}function QIe(){throw V(new zn)}function GIe(){throw V(new zn)}function UIe(){throw V(new zn)}function JIe(){throw V(new zn)}function a8t(){throw V(new Mo)}function f8t(){throw V(new Mo)}function g_(e){this.a=new VIe(e)}function VIe(e){iRt(this,e,gGt())}function p_(e){return!e||jHe(e)}function b_(e){return qh[e]!=-1}function h8t(){pU!=0&&(pU=0),bU=-1}function XIe(){Qoe==null&&(Qoe=[])}function m_(e,t){Ox.call(this,e,t)}function L6(e,t){m_.call(this,e,t)}function WIe(e,t){this.a=e,this.b=t}function KIe(e,t){this.a=e,this.b=t}function YIe(e,t){this.a=e,this.b=t}function ZIe(e,t){this.a=e,this.b=t}function eRe(e,t){this.a=e,this.b=t}function tRe(e,t){this.a=e,this.b=t}function nRe(e,t){this.a=e,this.b=t}function P6(e,t){this.e=e,this.d=t}function z1e(e,t){this.b=e,this.c=t}function iRe(e,t){this.b=e,this.a=t}function rRe(e,t){this.b=e,this.a=t}function sRe(e,t){this.b=e,this.a=t}function oRe(e,t){this.b=e,this.a=t}function cRe(e,t){this.a=e,this.b=t}function lRe(e,t){this.a=e,this.b=t}function AY(e,t){this.a=e,this.b=t}function uRe(e,t){this.a=e,this.f=t}function _m(e,t){this.g=e,this.i=t}function En(e,t){this.f=e,this.g=t}function aRe(e,t){this.b=e,this.c=t}function fRe(e){Kge(e.dc()),this.c=e}function d8t(e,t){this.a=e,this.b=t}function hRe(e,t){this.a=e,this.b=t}function dRe(e){this.a=c(Bn(e),16)}function F1e(e){this.a=c(Bn(e),16)}function gRe(e){this.a=c(Bn(e),93)}function Wz(e){this.b=c(Bn(e),93)}function Kz(e){this.b=c(Bn(e),51)}function Yz(){this.q=new p.Date}function NY(e,t){this.a=e,this.b=t}function pRe(e,t){return Cc(e.b,t)}function wT(e,t){return e.b.Gc(t)}function q1e(e,t){return e.b.Hc(t)}function H1e(e,t){return e.b.Oc(t)}function bRe(e,t){return e.b.Gc(t)}function mRe(e,t){return e.c.uc(t)}function wRe(e,t){return xi(e.c,t)}function $a(e,t){return e.a._b(t)}function vRe(e,t){return e>t&&t<hE}function vT(e){return e.f.c+e.i.c}function g8t(e){return hHe(),e?Mft:Cft}function f4(e){ZWe.call(this,e,0)}function yRe(){uee.call(this,null)}function h4(e){this.c=e,BVe(this)}function _i(){LBe(this),xu(this)}function kg(){kg=Z,Lft=new pe}function I6(){I6=Z,Pj=new Te}function L2(){L2=Z,sce=new aBe}function Zz(){Zz=Z,Gft=new fBe}function R6(){R6=Z,Xke=new ji}function Fp(){Fp=Z,Ok=new Nn}function Q1e(){ate.call(this,null)}function hr(e,t){S0(e),e.a.Nb(t)}function p8t(e,t){return e.a.Vc(t)}function b8t(e,t){return e.a.Wc(t)}function _Y(e,t){return e.a.Yc(t)}function DY(e,t){return e.a.Zc(t)}function m8t(e,t){return e.Fc(t),e}function w8t(e,t){vie(De(e.a),t)}function v8t(e,t){vie(De(e.a),t)}function uf(e,t){return e.a.e=t,e}function af(e,t){return e.a.a=t,e}function ff(e,t){return e.a.d=t,e}function xRe(e,t){return e.a.d=t,e}function y8t(e,t){return e.a.f=t,e}function kRe(e,t){return e.a.g=t,e}function ORe(e,t){return e.a.j=t,e}function hf(e,t){return e.a.g=t,e}function w_(e,t){return e.a.f=t,e}function x8t(e){return e.b=!1,e}function SRe(){SRe=Z,Odt=new o2}function G1e(){G1e=Z,Sdt=new Lqe}function jRe(){jRe=Z,tht=new og}function U1e(){U1e=Z,kdt=new Au}function v_(){v_=Z,Bdt=new eA}function J1e(){J1e=Z,yOe=new CO}function TRe(){TRe=Z,Ddt=new AO}function yT(){yT=Z,Pdt=new W9}function ERe(){ERe=Z,Hdt=new yW}function y_(){y_=Z,$dt=new fs}function eF(){eF=Z,bpt=new fB}function xT(){xT=Z,Kdt=new Jy}function tF(){tF=Z,a3=new SA}function nF(){nF=Z,Xue=new MRe}function iF(){iF=Z,Wue=new jze}function kT(){kT=Z,HP=new AHe}function rF(){rF=Z,fae=new Cqe}function sF(){sF=Z,hae=new Eqe}function oF(){oF=Z,dae=new eHe}function CRe(){NXe(),this.c=new SY}function MRe(){En.call(this,Kct,0)}function k8t(e,t,n,i){CFt(e,i,t,n)}function O8t(e,t,n,i){zVt(i,e,t,n)}function S8t(e,t,n,i){wtn(i,e,t,n)}function j8t(e,t,n){uo(e.d,t.f,n)}function Dm(e,t){hb(e.c.b,t.c,t)}function OT(e,t){hb(e.c.c,t.b,t)}function ST(e,t){return e.a=t.g,e}function T8t(e){return e.e.a+e.f.a}function E8t(e){return e.e.b+e.f.b}function C8t(e){return(e.c+e.a)/2}function M8t(e){return e.b?e.b:e.a}function ARe(e,t){return Lqt(e.a,t)}function V1e(){V1e=Z,rEe=new MPe}function jT(){jT=Z,Wae=new QBe}function Og(){Og=Z,wI=new GBe}function m0(){m0=Z,gvt=new s6}function NRe(){NRe=Z,kvt=new lf}function _Re(){_Re=Z,Pvt=new jPe}function DRe(){DRe=Z,Ivt=new TPe}function w0(){w0=Z,nf=new p1e}function cF(){cF=Z,EV=new yn}function X1e(){X1e=Z,pEe=new He}function v0(){v0=Z,bp=new IN}function LY(){LY=Z,Wvt=new p1}function Hs(){Hs=Z,Yvt=new MB}function W1e(e){jee(),aGt.call(this,e)}function K1e(e){jee(),W1e.call(this,e)}function Y1e(e){ZZ(),JBe.call(this,e)}function A8t(e,t){FQe.call(this,e,t)}function lF(e,t){this.d=e,this.e=t}function PY(e,t){return _c(e,t)>0}function IY(e,t){return _c(e,t)<0}function LRe(e,t){return tee(e.a,t)}function N8t(e,t){return e.a.a.cc(t)}function RY(e){return e.b<e.d.gc()}function TT(e,t){return e.a.get(t)}function _8t(e,t){return t.split(e)}function PRe(e,t){return Cc(e.e,t)}function uF(e){return c(e,45).jd()}function Z1e(e){return zt(e),!1}function ege(e){this.a=c(Bn(e),231)}function aF(e){Et.call(this,e,21)}function fF(e,t){En.call(this,e,t)}function $Y(e,t){En.call(this,e,t)}function IRe(e,t){this.b=e,this.a=t}function RRe(e,t){this.a=e,this.b=t}function $Re(e,t){this.a=e,this.b=t}function BRe(e,t){this.a=e,this.b=t}function zRe(e,t){this.a=e,this.b=t}function FRe(e,t){this.b=e,this.a=t}function tge(e,t){Nqe(e,e.length,t)}function x_(e,t){uHe(e,e.length,t)}function D8t(e,t,n){t.Ne(e.a.We(n))}function L8t(e,t,n){t.Bd(e.a.Xe(n))}function P8t(e,t,n){t.Ad(e.a.Kb(n))}function I8t(e,t,n){e.Mb(n)&&t.Ad(n)}function ET(e,t,n){e.splice(t,0,n)}function BY(e,t){En.call(this,e,t)}function zY(e,t){En.call(this,e,t)}function FY(e,t){En.call(this,e,t)}function hF(e,t){En.call(this,e,t)}function nge(e,t){En.call(this,e,t)}function qY(e,t){En.call(this,e,t)}function k_(e,t){En.call(this,e,t)}function d4(e,t){this.a=e,this.b=t}function ige(e,t){this.b=e,this.a=t}function rge(e,t){this.b=e,this.a=t}function qRe(e,t){this.b=e,this.a=t}function sge(e,t){this.b=e,this.a=t}function $6(e,t){this.c=e,this.d=t}function HRe(e,t){this.e=e,this.d=t}function QRe(e,t){this.a=e,this.b=t}function g4(e,t){En.call(this,e,t)}function dF(e,t){En.call(this,e,t)}function Mr(e,t){En.call(this,e,t)}function gF(e,t){En.call(this,e,t)}function oge(e,t){En.call(this,e,t)}function pF(e,t){En.call(this,e,t)}function GRe(e,t){this.a=e,this.b=t}function URe(e,t){this.a=e,this.b=t}function JRe(e,t){this.a=e,this.b=t}function VRe(e,t){this.a=e,this.b=t}function XRe(e,t){this.a=e,this.b=t}function WRe(e,t){this.a=e,this.b=t}function KRe(e,t){this.a=e,this.b=t}function YRe(e,t){this.a=e,this.b=t}function ZRe(e,t){this.b=e,this.a=t}function e$e(e,t){this.b=e,this.a=t}function t$e(e,t){this.b=t,this.c=e}function bF(e,t){En.call(this,e,t)}function O_(e,t){En.call(this,e,t)}function HY(e,t){En.call(this,e,t)}function CT(e,t){En.call(this,e,t)}function cge(e,t){En.call(this,e,t)}function mF(e,t){En.call(this,e,t)}function QY(e,t){En.call(this,e,t)}function fx(e,t){En.call(this,e,t)}function lge(e,t){En.call(this,e,t)}function GY(e,t){En.call(this,e,t)}function MT(e,t){En.call(this,e,t)}function uge(e,t){En.call(this,e,t)}function AT(e,t){En.call(this,e,t)}function NT(e,t){En.call(this,e,t)}function P2(e,t){En.call(this,e,t)}function UY(e,t){En.call(this,e,t)}function JY(e,t){En.call(this,e,t)}function VY(e,t){En.call(this,e,t)}function age(e,t){En.call(this,e,t)}function S_(e,t){En.call(this,e,t)}function fge(e,t){En.call(this,e,t)}function hx(e,t){En.call(this,e,t)}function XY(e,t){En.call(this,e,t)}function wF(e,t){En.call(this,e,t)}function j_(e,t){En.call(this,e,t)}function I2(e,t){En.call(this,e,t)}function vF(e,t){En.call(this,e,t)}function hge(e,t){En.call(this,e,t)}function WY(e,t){En.call(this,e,t)}function KY(e,t){En.call(this,e,t)}function YY(e,t){En.call(this,e,t)}function ZY(e,t){En.call(this,e,t)}function eZ(e,t){En.call(this,e,t)}function tZ(e,t){En.call(this,e,t)}function n$e(e,t){this.b=e,this.a=t}function R8t(e,t){return Ml(e.e,t)}function $8t(e,t){return Ml(e.c,t)}function B8t(e,t){return Ml(t.b,e)}function z8t(e,t){return G6(),t!=e}function T_(e){return gn(e.a),e.b}function nZ(e){return iJt(e,e.c),e}function i$e(){return hIe(),new Hft}function r$e(){nq(),this.a=new D0e}function s$e(e,t){this.a=e,this.b=t}function o$e(e,t){this.a=e,this.b=t}function c$e(e,t){this.a=e,this.b=t}function l$e(e,t){this.b=e,this.a=t}function u$e(e,t){this.a=e,this.b=t}function dge(e,t){En.call(this,e,t)}function gge(e,t){En.call(this,e,t)}function yF(e,t){En.call(this,e,t)}function pge(e,t){En.call(this,e,t)}function bge(e,t){En.call(this,e,t)}function mge(e,t){En.call(this,e,t)}function a$e(e,t){this.a=e,this.b=t}function f$e(e,t){this.a=e,this.b=t}function h$e(e,t){this.a=e,this.b=t}function d$e(e,t){this.b=e,this.d=t}function g$e(e,t){this.b=e,this.a=t}function xF(e,t){En.call(this,e,t)}function Lm(e,t){En.call(this,e,t)}function iZ(e,t){En.call(this,e,t)}function kF(e,t){En.call(this,e,t)}function wge(e,t){En.call(this,e,t)}function p$e(e,t){this.b=e,this.a=t}function b$e(e,t){this.b=e,this.a=t}function m$e(e,t){this.b=e,this.a=t}function w$e(e,t){this.b=e,this.a=t}function vge(e,t){En.call(this,e,t)}function E_(e,t){En.call(this,e,t)}function yge(e,t){En.call(this,e,t)}function rZ(e,t){En.call(this,e,t)}function OF(e,t){En.call(this,e,t)}function sZ(e,t){En.call(this,e,t)}function oZ(e,t){En.call(this,e,t)}function SF(e,t){En.call(this,e,t)}function cZ(e,t){En.call(this,e,t)}function xge(e,t){En.call(this,e,t)}function lZ(e,t){En.call(this,e,t)}function uZ(e,t){En.call(this,e,t)}function C_(e,t){En.call(this,e,t)}function aZ(e,t){En.call(this,e,t)}function kge(e,t){En.call(this,e,t)}function M_(e,t){En.call(this,e,t)}function Oge(e,t){En.call(this,e,t)}function Sge(e,t){En.call(this,e,t)}function jF(e,t){En.call(this,e,t)}function jge(e,t){En.call(this,e,t)}function v$e(e,t){this.a=e,this.b=t}function y$e(e,t){this.a=e,this.b=t}function Tge(e,t){this.a=e,this.b=t}function A_(e,t){En.call(this,e,t)}function p4(e,t){En.call(this,e,t)}function ze(e,t){this.a=e,this.b=t}function _T(e,t){En.call(this,e,t)}function DT(e,t){En.call(this,e,t)}function N_(e,t){En.call(this,e,t)}function TF(e,t){En.call(this,e,t)}function fZ(e,t){En.call(this,e,t)}function EF(e,t){En.call(this,e,t)}function LT(e,t){En.call(this,e,t)}function hZ(e,t){En.call(this,e,t)}function CF(e,t){En.call(this,e,t)}function dx(e,t){En.call(this,e,t)}function __(e,t){En.call(this,e,t)}function PT(e,t){En.call(this,e,t)}function IT(e,t){En.call(this,e,t)}function D_(e,t){En.call(this,e,t)}function dZ(e,t){En.call(this,e,t)}function MF(e,t){En.call(this,e,t)}function gx(e,t){En.call(this,e,t)}function gZ(e,t){En.call(this,e,t)}function pZ(e,t){En.call(this,e,t)}function AF(e,t){En.call(this,e,t)}function x$e(e,t){this.a=e,this.b=t}function k$e(e,t){this.a=e,this.b=t}function O$e(e,t){this.a=e,this.b=t}function S$e(e,t){this.a=e,this.b=t}function j$e(e,t){this.a=e,this.b=t}function T$e(e,t){this.a=e,this.b=t}function NF(e,t){En.call(this,e,t)}function Is(e,t){this.a=e,this.b=t}function E$e(){GQ(),this.a=new Tr}function C$e(){zee(),this.b=new Tr}function M$e(){bbe(),xpe.call(this)}function A$e(){mbe(),pQe.call(this)}function N$e(){mbe(),pQe.call(this)}function _$e(e,t){oIt(e.a,c(t,12))}function F8t(e,t,n){set(t,gie(e,n))}function q8t(e,t,n){set(t,gie(e,n))}function Ege(e,t){return Ml(e.g,t)}function H8t(e,t){return-e.b.$e(t)}function D$e(e,t){this.a=e,this.b=t}function L$e(e,t){this.a=e,this.b=t}function P$e(e,t){this.a=e,this.b=t}function I$e(e,t){this.a=e,this.b=t}function R$e(e,t){this.a=e,this.b=t}function $$e(e,t){this.a=e,this.b=t}function B$e(e,t){this.a=e,this.b=t}function z$e(e,t){this.a=e,this.b=t}function F$e(e,t){this.a=e,this.b=t}function q$e(e,t){this.a=e,this.b=t}function H$e(e,t){this.b=e,this.a=t}function Q$e(e,t){this.b=e,this.a=t}function G$e(e,t){this.b=e,this.a=t}function U$e(e,t){this.b=e,this.a=t}function J$e(e,t){this.f=e,this.c=t}function Cge(e,t){this.i=e,this.g=t}function _F(e,t){this.a=e,this.b=t}function V$e(e,t){this.a=e,this.b=t}function X$e(e,t){this.a=e,this.b=t}function W$e(e,t){this.a=e,this.b=t}function Mge(e,t){this.d=e,this.e=t}function K$e(e,t){this.d=e,this.b=t}function Y$e(e,t){this.a=e,this.b=t}function Z$e(e,t){this.e=e,this.a=t}function L_(e,t){this.b=e,this.c=t}function b4(e,t){En.call(this,e,t)}function Q8t(e,t){e&&ci(pI,e,t)}function Age(e,t){e.i=null,AH(e,t)}function eBe(e,t){return vne(e.a,t)}function DF(e){return UD(e.c,e.b)}function No(e){return e?e.kd():null}function xe(e){return e??null}function R2(e){return typeof e===lk}function $2(e){return typeof e===Axe}function Yr(e){return typeof e===sre}function RT(e,t){return _c(e,t)==0}function LF(e,t){return _c(e,t)>=0}function $T(e,t){return _c(e,t)!=0}function y0(e,t){return e.Pd().Xb(t)}function PF(e,t){return ARt(e.Jc(),t)}function G8t(e){return""+(zt(e),e)}function Nge(e,t){return e.a+=""+t,e}function BT(e,t){return e.a+=""+t,e}function Zs(e,t){return e.a+=""+t,e}function zT(e,t){return e.a+=""+t,e}function Ec(e,t){return e.a+=""+t,e}function Zn(e,t){return e.a+=""+t,e}function IF(e){return XT(e==null),e}function _ge(e){return ht(e,0),null}function tBe(e){return ou(e),e.d.gc()}function U8t(e){p.clearTimeout(e)}function nBe(e,t){e.q.setTime(tb(t))}function J8t(e,t){wIt(new on(e),t)}function iBe(e,t){Mpe.call(this,e,t)}function rBe(e,t){Mpe.call(this,e,t)}function RF(e,t){Mpe.call(this,e,t)}function Cs(e,t){rr(e,t,e.c.b,e.c)}function px(e,t){rr(e,t,e.a,e.a.a)}function V8t(e,t){return e.j[t.p]==2}function sBe(e,t){return e.a=t.g+1,e}function Uf(e){return e.a=0,e.b=0,e}function oBe(){oBe=Z,Lht=Mn(Cne())}function cBe(){cBe=Z,qdt=Mn(sit())}function lBe(){lBe=Z,Lbt=Mn(fWe())}function uBe(){this.b=new f4(uv(12))}function aBe(){this.b=0,this.a=!1}function fBe(){this.b=0,this.a=!1}function FT(e){this.a=e,RN.call(this)}function hBe(e){this.a=e,RN.call(this)}function vt(e,t){Qi.call(this,e,t)}function bZ(e,t){Q2.call(this,e,t)}function bx(e,t){Cge.call(this,e,t)}function dBe(e,t){B_.call(this,e,t)}function mZ(e,t){mS.call(this,e,t)}function ui(e,t){cF(),ci(EV,e,t)}function wZ(e,t){return Fa(e.a,0,t)}function gBe(e,t){return xe(e)===xe(t)}function X8t(e,t){return Ci(e.a,t.a)}function Dge(e,t){return hc(e.a,t.a)}function W8t(e,t){return oHe(e.a,t.a)}function m4(e){return ks((zt(e),e))}function K8t(e){return ks((zt(e),e))}function pBe(e){return nl(e.l,e.m,e.h)}function Y8t(e){return Bn(e),new FT(e)}function Xh(e,t){return e.indexOf(t)}function So(e){return typeof e===Axe}function $F(e){return e<10?"0"+e:""+e}function Z8t(e){return e==Cw||e==Iv}function eTt(e){return e==Cw||e==Pv}function bBe(e,t){return hc(e.g,t.g)}function Lge(e){return Lo(e.b.b,e,0)}function mBe(e){cc(this),O7(this,e)}function wBe(e){this.a=i$e(),this.b=e}function vBe(e){this.a=i$e(),this.b=e}function yBe(e,t){return Qe(e.a,t),t}function Pge(e,t){lS(e,0,e.length,t)}function tTt(e,t){return hc(e.g,t.g)}function nTt(e,t){return Ci(t.f,e.f)}function iTt(e,t){return Pu(),t.a+=e}function rTt(e,t){return Pu(),t.a+=e}function sTt(e,t){return Pu(),t.c+=e}function Ige(e,t){return Fu(e.a,t),e}function oTt(e,t){return Qe(e.c,t),e}function BF(e){return Fu(new xr,e)}function v1(e){return e==po||e==vo}function mx(e){return e==Ma||e==Rh}function xBe(e){return e==S3||e==O3}function wx(e){return e!=Bh&&e!=up}function bu(e){return e.sh()&&e.th()}function kBe(e){return See(c(e,127))}function w4(){pf.call(this,0,0,0,0)}function OBe(){gq.call(this,0,0,0,0)}function Ad(){zde.call(this,new E0)}function vZ(e){J$e.call(this,e,!0)}function Ms(e){this.a=e.a,this.b=e.b}function yZ(e,t){OS(e,t),hS(e,e.D)}function xZ(e,t,n){kH(e,t),xH(e,n)}function Pm(e,t,n){rb(e,t),ib(e,n)}function fa(e,t,n){Nc(e,t),_l(e,n)}function P_(e,t,n){Wm(e,t),Km(e,n)}function I_(e,t,n){Ym(e,t),Zm(e,n)}function SBe(e,t,n){m0e.call(this,e,t,n)}function jBe(){fF.call(this,"Head",1)}function TBe(){fF.call(this,"Tail",3)}function x0(e){rd(),DRt.call(this,e)}function vx(e){return e!=null?zi(e):0}function EBe(e,t){return new mS(t,e)}function cTt(e,t){return new mS(t,e)}function lTt(e,t){return sv(t,bh(e))}function uTt(e,t){return sv(t,bh(e))}function aTt(e,t){return e[e.length]=t}function fTt(e,t){return e[e.length]=t}function Rge(e){return CMt(e.b.Jc(),e.a)}function hTt(e,t){return EH(yee(e.f),t)}function dTt(e,t){return EH(yee(e.n),t)}function gTt(e,t){return EH(yee(e.p),t)}function Ur(e,t){Qi.call(this,e.b,t)}function qp(e){gq.call(this,e,e,e,e)}function kZ(e){e.c=ke(Br,Pt,1,0,5,1)}function CBe(e,t,n){mr(e.c[t.g],t.g,n)}function pTt(e,t,n){c(e.c,72).Ei(t,n)}function bTt(e,t,n){fa(n,n.i+e,n.j+t)}function mTt(e,t){Ln(pc(e.a),sGe(t))}function wTt(e,t){Ln(su(e.a),oGe(t))}function vTt(e,t){Nh||(e.b=t)}function OZ(e,t,n){return mr(e,t,n),n}function MBe(e){Uc(e.Qf(),new XNe(e))}function ABe(){ABe=Z,cue=new P7(Pae)}function $ge(){$ge=Z,s1e(),Oke=new yn}function Fn(){Fn=Z,new NBe,new He}function NBe(){new yn,new yn,new yn}function yTt(){throw V(new wg(gft))}function xTt(){throw V(new wg(gft))}function kTt(){throw V(new wg(pft))}function OTt(){throw V(new wg(pft))}function qT(e){vi(),jm.call(this,e)}function _Be(e){this.a=e,tpe.call(this,e)}function SZ(e){this.a=e,Wz.call(this,e)}function jZ(e){this.a=e,Wz.call(this,e)}function STt(e){return e==null?0:zi(e)}function _o(e){return e.a<e.c.c.length}function Bge(e){return e.a<e.c.a.length}function zge(e,t){return _c(e,t)>0?e:t}function hc(e,t){return e<t?-1:e>t?1:0}function DBe(e,t){return e.a?e.b:t.Ue()}function nl(e,t,n){return{l:e,m:t,h:n}}function jTt(e,t){e.a!=null&&_$e(t,e.a)}function TTt(e,t){Bn(t),jx(e).Ic(new ee)}function Rr(e,t){eee(e.c,e.c.length,t)}function LBe(e){e.a=new dt,e.c=new dt}function zF(e){this.b=e,this.a=new He}function PBe(e){this.b=new EO,this.a=e}function Fge(e){_0e.call(this),this.a=e}function IBe(e){lbe.call(this),this.b=e}function RBe(){fF.call(this,"Range",2)}function $Be(){Q2e(),this.a=new QS(vOe)}function dh(){dh=Z,p.Math.log(2)}function ha(){ha=Z,n1=(NRe(),kvt)}function FF(e){e.j=ke(Ike,Fe,325,0,0,1)}function BBe(e){e.a=new yn,e.e=new yn}function qge(e){return new ze(e.c,e.d)}function ETt(e){return new ze(e.c,e.d)}function As(e){return new ze(e.a,e.b)}function CTt(e,t){return ci(e.a,t.a,t)}function MTt(e,t,n){return ci(e.g,n,t)}function ATt(e,t,n){return ci(e.k,n,t)}function yx(e,t,n){return a2e(t,n,e.c)}function zBe(e,t){return Pen(e.a,t,null)}function Hge(e,t){return be(Ut(e.i,t))}function Qge(e,t){return be(Ut(e.j,t))}function FBe(e,t){An(e),e.Fc(c(t,16))}function NTt(e,t,n){e.c._c(t,c(n,138))}function _Tt(e,t,n){e.c.Si(t,c(n,138))}function DTt(e,t,n){return Den(e,t,n),n}function LTt(e,t){return Ru(),t.n.b+=e}function HT(e,t){return HZt(e.c,e.b,t)}function TZ(e,t){return a$t(e.Jc(),t)!=-1}function ae(e,t){return e!=null&&_ne(e,t)}function PTt(e,t){return new aze(e.Jc(),t)}function qF(e){return e.Ob()?e.Pb():null}function qBe(e){return nd(e,0,e.length)}function ITt(e){Os(e,null),ss(e,null)}function HBe(e){qee(e,null),Hee(e,null)}function QBe(){B_.call(this,null,null)}function GBe(){VF.call(this,null,null)}function UBe(){En.call(this,"INSTANCE",0)}function xx(){this.a=ke(Br,Pt,1,8,5,1)}function Gge(e){this.a=e,yn.call(this)}function JBe(e){this.a=(Mt(),new M6(e))}function RTt(e){this.b=(Mt(),new rY(e))}function B6(){B6=Z,Uke=new wY(null)}function Uge(){Uge=Z,Uge(),Uft=new wn}function Qe(e,t){return It(e.c,t),!0}function VBe(e,t){e.c&&(fpe(t),EQe(t))}function $Tt(e,t){e.q.setHours(t),rE(e,t)}function Jge(e,t){return e.a.Ac(t)!=null}function EZ(e,t){return e.a.Ac(t)!=null}function gh(e,t){return e.a[t.c.p][t.p]}function BTt(e,t){return e.c[t.c.p][t.p]}function zTt(e,t){return e.e[t.c.p][t.p]}function CZ(e,t,n){return e.a[t.g][n.g]}function FTt(e,t){return e.j[t.p]=gVt(t)}function v4(e,t){return e.a*t.a+e.b*t.b}function qTt(e,t){return e.a<zZ(t)?-1:1}function HTt(e,t){return Vbe(e.b,t.Og())}function QTt(e,t){return Vbe(e.f,t.Og())}function GTt(e,t){return de(be(t.a))<=e}function UTt(e,t){return de(be(t.a))>=e}function JTt(e,t,n){return n?t!=0:t!=e-1}function XBe(e,t,n){e.a=t^1502,e.b=n^Ire}function VTt(e,t,n){return e.a=t,e.b=n,e}function y1(e,t){return e.a*=t,e.b*=t,e}function QT(e,t,n){return mr(e.g,t,n),n}function XTt(e,t,n,i){mr(e.a[t.g],n.g,i)}function Nr(e,t,n){K_.call(this,e,t,n)}function HF(e,t,n){Nr.call(this,e,t,n)}function Cl(e,t,n){Nr.call(this,e,t,n)}function WBe(e,t,n){HF.call(this,e,t,n)}function Vge(e,t,n){K_.call(this,e,t,n)}function kx(e,t,n){K_.call(this,e,t,n)}function KBe(e,t,n){Xge.call(this,e,t,n)}function YBe(e,t,n){Vge.call(this,e,t,n)}function Xge(e,t,n){sq.call(this,e,t,n)}function ZBe(e,t,n){sq.call(this,e,t,n)}function k0(e){this.c=e,this.a=this.c.a}function on(e){this.i=e,this.f=this.i.j}function Ox(e,t){this.a=e,Wz.call(this,t)}function eze(e,t){this.a=e,OY.call(this,t)}function tze(e,t){this.a=e,OY.call(this,t)}function nze(e,t){this.a=e,OY.call(this,t)}function Wge(e){this.a=e,p6.call(this,e.d)}function ize(e){e.b.Qb(),--e.d.f.d,wq(e.d)}function rze(e){e.a=c(Wt(e.b.a,4),131)}function sze(e){e.a=c(Wt(e.b.a,4),131)}function WTt(e){iD(e,Fut),FQ(e,Atn(e))}function oze(e){X5.call(this,c(Bn(e),34))}function cze(e){X5.call(this,c(Bn(e),34))}function Kge(e){if(!e)throw V(new a_)}function Yge(e){if(!e)throw V(new El)}function Zge(e,t){return UBt(e,new g0,t).a}function lze(e,t){return new gtt(e.a,e.b,t)}function Xt(e,t){return Bn(t),new uze(e,t)}function uze(e,t){this.a=t,Kz.call(this,e)}function aze(e,t){this.a=t,Kz.call(this,e)}function e0e(e,t){this.a=t,OY.call(this,e)}function fze(e,t){this.a=t,ete.call(this,e)}function hze(e,t){this.a=e,ete.call(this,t)}function dze(){FF(this),Dq(this),this.he()}function t0e(){this.Bb|=256,this.Bb|=512}function Bt(){Bt=Z,X0=!1,Dj=!0}function gze(){gze=Z,LY(),Kvt=new K8}function KTt(e){return d_(e.a)?cGe(e):null}function YTt(e){return e.l+e.m*hk+e.h*wb}function ZTt(e){return e==null?null:e.name}function GT(e){return e==null?ml:To(e)}function QF(e,t){return e.lastIndexOf(t)}function n0e(e,t,n){return e.indexOf(t,n)}function Ml(e,t){return!!t&&e.b[t.g]==t}function y4(e){return e.a!=null?e.a:null}function mu(e){return gn(e.a!=null),e.a}function R_(e,t,n){return zte(e,t,t,n),e}function pze(e,t){return Qe(t.a,e.a),e.a}function bze(e,t){return Qe(t.b,e.a),e.a}function GF(e,t){return++e.b,Qe(e.a,t)}function i0e(e,t){return++e.b,dl(e.a,t)}function Im(e,t){return Qe(t.a,e.a),e.a}function UF(e){k6.call(this,e),this.a=e}function r0e(e){cx.call(this,e),this.a=e}function s0e(e){M6.call(this,e),this.a=e}function o0e(e){aY.call(this),Ss(this,e)}function Ba(e){gs.call(this,(zt(e),e))}function Lu(e){gs.call(this,(zt(e),e))}function MZ(e){zde.call(this,new rme(e))}function c0e(e,t){v2e.call(this,e,t,null)}function e7t(e,t){return Ci(e.n.a,t.n.a)}function t7t(e,t){return Ci(e.c.d,t.c.d)}function n7t(e,t){return Ci(e.c.c,t.c.c)}function fl(e,t){return c(Ei(e.b,t),16)}function i7t(e,t){return e.n.b=(zt(t),t)}function r7t(e,t){return e.n.b=(zt(t),t)}function s7t(e,t){return Ci(e.e.b,t.e.b)}function o7t(e,t){return Ci(e.e.a,t.e.a)}function c7t(e,t,n){return lUe(e,t,n,e.b)}function l0e(e,t,n){return lUe(e,t,n,e.c)}function l7t(e){return Pu(),!!e&&!e.dc()}function mze(){xT(),this.b=new N_e(this)}function wze(e){this.a=e,iY.call(this,e)}function $_(e){this.c=e,k4.call(this,e)}function x4(e){this.c=e,on.call(this,e)}function k4(e){this.d=e,on.call(this,e)}function JF(e,t){iee(),this.f=t,this.d=e}function B_(e,t){jT(),this.a=e,this.b=t}function VF(e,t){Og(),this.b=e,this.c=t}function u0e(e,t){Wbe(t,e),this.c=e,this.b=t}function Sg(e){var t;t=e.a,e.a=e.b,e.b=t}function UT(e){return _o(e.a)||_o(e.b)}function Rm(e){return e.$H||(e.$H=++Znn)}function AZ(e,t){return new kFe(e,e.gc(),t)}function u7t(e,t){return cee(e.c).Kd().Xb(t)}function z6(e,t,n){var i;i=e.dd(t),i.Rb(n)}function a0e(e,t,n){c(yD(e,t),24).Ec(n)}function a7t(e,t,n){ane(e.a,n),bQ(e.a,t)}function vze(e,t,n,i){Epe.call(this,e,t,n,i)}function F6(e,t,n){return n0e(e,pl(t),n)}function f7t(e){return qz(),Cn((UQe(),Oft),e)}function h7t(e){return new nv(3,e)}function Nd(e){return zu(e,Ev),new Gc(e)}function q6(e){return gn(e.b!=0),e.a.a.c}function df(e){return gn(e.b!=0),e.c.b.c}function d7t(e,t){return zte(e,t,t+1,""),e}function yze(e){if(!e)throw V(new aa)}function xze(e){e.d=new Sze(e),e.e=new yn}function f0e(e){if(!e)throw V(new a_)}function g7t(e){if(!e)throw V(new lY)}function gn(e){if(!e)throw V(new Mo)}function B2(e){if(!e)throw V(new El)}function kze(e){return e.b=c(ibe(e.a),45)}function ki(e,t){return!!e.q&&Cc(e.q,t)}function p7t(e,t){return e>0?t*t/e:t*t*100}function b7t(e,t){return e>0?t/(e*e):t*100}function z2(e,t){return c(vh(e.a,t),34)}function m7t(e){return e.f!=null?e.f:""+e.g}function NZ(e){return e.f!=null?e.f:""+e.g}function Oze(e){return iS(),parseInt(e)||-1}function w7t(e){return A1(),e.e.a+e.f.a/2}function v7t(e,t,n){return A1(),n.e.a-e*t}function y7t(e,t,n){return eF(),n.Lg(e,t)}function x7t(e,t,n){return A1(),n.e.b-e*t}function k7t(e){return A1(),e.e.b+e.f.b/2}function O7t(e,t){return $0(),jt(e,t.e,t)}function z_(e){ae(e,162)&&c(e,162).mi()}function Sze(e){npe.call(this,e,null,null)}function jze(){En.call(this,"GROW_TREE",0)}function Tze(e){this.c=e,this.a=1,this.b=1}function _Z(e){L2(),this.b=e,this.a=!0}function Eze(e){Zz(),this.b=e,this.a=!0}function Cze(e){ire(),ULe(this),this.Df(e)}function Mze(e){_i.call(this),y7(this,e)}function Aze(e){this.c=e,Nc(e,0),_l(e,0)}function XF(e){return e.a=-e.a,e.b=-e.b,e}function h0e(e,t){return e.a=t.a,e.b=t.b,e}function F2(e,t,n){return e.a+=t,e.b+=n,e}function Nze(e,t,n){return e.a-=t,e.b-=n,e}function S7t(e,t,n){uH(),e.nf(t)&&n.Ad(e)}function j7t(e,t,n){D7(pc(e.a),t,sGe(n))}function T7t(e,t,n){return Qe(t,oYe(e,n))}function E7t(e,t){return c(Ut(e.e,t),19)}function C7t(e,t){return c(Ut(e.e,t),19)}function M7t(e,t){return e.c.Ec(c(t,138))}function _ze(e,t){jT(),B_.call(this,e,t)}function d0e(e,t){Og(),VF.call(this,e,t)}function Dze(e,t){Og(),VF.call(this,e,t)}function Lze(e,t){Og(),d0e.call(this,e,t)}function DZ(e,t){ha(),bq.call(this,e,t)}function Pze(e,t){ha(),DZ.call(this,e,t)}function g0e(e,t){ha(),DZ.call(this,e,t)}function Ize(e,t){ha(),g0e.call(this,e,t)}function p0e(e,t){ha(),bq.call(this,e,t)}function Rze(e,t){ha(),bq.call(this,e,t)}function $ze(e,t){ha(),p0e.call(this,e,t)}function wu(e,t,n){Nl.call(this,e,t,n,2)}function A7t(e,t,n){D7(su(e.a),t,oGe(n))}function LZ(e,t){return L0(e.e,c(t,52))}function N7t(e,t,n){return t.xl(e.e,e.c,n)}function _7t(e,t,n){return t.yl(e.e,e.c,n)}function b0e(e,t,n){return nG(xD(e,t),n)}function Bze(e,t){return zt(e),e+zZ(t)}function D7t(e){return e==null?null:To(e)}function L7t(e){return e==null?null:To(e)}function P7t(e){return e==null?null:xtn(e)}function I7t(e){return e==null?null:yGt(e)}function x1(e){e.o==null&&FJt(e)}function Ye(e){return XT(e==null||R2(e)),e}function be(e){return XT(e==null||$2(e)),e}function qn(e){return XT(e==null||Yr(e)),e}function zze(){this.a=new Jm,this.b=new Jm}function R7t(e,t){this.d=e,xt(this),this.b=t}function F_(e,t){this.c=e,P6.call(this,e,t)}function JT(e,t){this.a=e,F_.call(this,e,t)}function m0e(e,t,n){cH.call(this,e,t,n,null)}function Fze(e,t,n){cH.call(this,e,t,n,null)}function w0e(){CXe.call(this),this.Bb|=Rs}function v0e(e,t){ate.call(this,e),this.a=t}function y0e(e,t){ate.call(this,e),this.a=t}function qze(e,t){Nh||Qe(e.a,t)}function $7t(e,t){return zne(e,t),new RHe(e,t)}function B7t(e,t,n){return e.Le(t,n)<=0?n:t}function z7t(e,t,n){return e.Le(t,n)<=0?t:n}function Hze(e){return zt(e),e?1231:1237}function PZ(e){return c(Je(e.a,e.b),296)}function Qze(e){return Ru(),xBe(c(e,205))}function F7t(e,t){return c(vh(e.b,t),144)}function q7t(e,t){return c(vh(e.c,t),236)}function Gze(e){return new ze(e.c,e.d+e.a)}function H7t(e,t){return H4(),new trt(t,e)}function Q7t(e,t){return y_(),bS(t.d.i,e)}function G7t(e,t){t.a?cJt(e,t):EZ(e.a,t.b)}function x0e(e,t){return c(Ut(e.b,t),280)}function Qi(e,t){bi.call(this,e),this.a=t}function k0e(e,t,n){return n=Qu(e,t,3,n),n}function O0e(e,t,n){return n=Qu(e,t,6,n),n}function S0e(e,t,n){return n=Qu(e,t,9,n),n}function Wh(e,t){return iD(t,Xxe),e.f=t,e}function j0e(e,t){return(t&gi)%e.d.length}function Uze(e,t,n){++e.j,e.oj(t,e.Xi(t,n))}function q_(e,t,n){++e.j,e.rj(),ute(e,t,n)}function Jze(e,t,n){var i;i=e.dd(t),i.Rb(n)}function Vze(e,t){this.c=e,Xm.call(this,t)}function Xze(e,t){this.a=e,BLe.call(this,t)}function H_(e,t){this.a=e,BLe.call(this,t)}function T0e(e){this.q=new p.Date(tb(e))}function Wze(e){this.a=(zu(e,Ev),new Gc(e))}function Kze(e){this.a=(zu(e,Ev),new Gc(e))}function IZ(e){this.a=(Mt(),new nY(Bn(e)))}function WF(){WF=Z,SU=new Qi(Oct,0)}function Sx(){Sx=Z,E3=new bi("root")}function H6(){H6=Z,mI=new kPe,new OPe}function q2(){q2=Z,Zke=bt((Tu(),qb))}function U7t(e){return Gn(Jp(e,32))^Gn(e)}function RZ(e){return String.fromCharCode(e)}function J7t(e){return e==null?null:e.message}function V7t(e,t,n){return e.apply(t,n)}function Yze(e,t,n){return uxe(e.c,e.b,t,n)}function E0e(e,t,n){return A4(e,c(t,23),n)}function Hp(e,t){return Bt(),e==t?0:e?1:-1}function C0e(e,t){var n;return n=t,!!e.De(n)}function M0e(e,t){var n;return n=e.e,e.e=t,n}function X7t(e,t){var n;n=e[Pre],n.call(e,t)}function W7t(e,t){var n;n=e[Pre],n.call(e,t)}function H2(e,t){e.a._c(e.b,t),++e.b,e.c=-1}function Zze(e){cc(e.e),e.d.b=e.d,e.d.a=e.d}function Q_(e){e.b?Q_(e.b):e.f.c.yc(e.e,e.d)}function G_(e){return!e.a&&(e.a=new Le),e.a}function eFe(e,t,n){return e.a+=nd(t,0,n),e}function K7t(e,t,n){Fp(),WK(e,t.Te(e.a,n))}function A0e(e,t,n,i){gq.call(this,e,t,n,i)}function N0e(e,t){e1e.call(this,e),this.a=t}function $Z(e,t){e1e.call(this,e),this.a=t}function tFe(){KF.call(this),this.a=new fs}function _0e(){this.n=new fs,this.o=new fs}function nFe(){this.b=new fs,this.c=new He}function iFe(){this.a=new He,this.b=new He}function rFe(){this.a=new Iy,this.b=new ZLe}function D0e(){this.b=new E0,this.a=new E0}function sFe(){this.b=new Tr,this.a=new Tr}function oFe(){this.b=new yn,this.a=new yn}function cFe(){this.a=new He,this.d=new He}function lFe(){this.a=new AK,this.b=new WR}function uFe(){this.b=new MIe,this.a=new zA}function KF(){this.n=new s4,this.i=new w4}function Oi(e,t){return e.a+=t.a,e.b+=t.b,e}function Qr(e,t){return e.a-=t.a,e.b-=t.b,e}function Y7t(e){return _2(e.j.c,0),e.a=-1,e}function L0e(e,t,n){return n=Qu(e,t,11,n),n}function aFe(e,t,n){n!=null&&CH(t,Hne(e,n))}function fFe(e,t,n){n!=null&&MH(t,Hne(e,n))}function O4(e,t,n,i){_e.call(this,e,t,n,i)}function Q2(e,t){qc.call(this,DE+e+Sb+t)}function P0e(e,t,n,i){_e.call(this,e,t,n,i)}function hFe(e,t,n,i){P0e.call(this,e,t,n,i)}function dFe(e,t,n,i){Sq.call(this,e,t,n,i)}function BZ(e,t,n,i){Sq.call(this,e,t,n,i)}function gFe(e,t,n,i){BZ.call(this,e,t,n,i)}function I0e(e,t,n,i){Sq.call(this,e,t,n,i)}function Ct(e,t,n,i){I0e.call(this,e,t,n,i)}function R0e(e,t,n,i){BZ.call(this,e,t,n,i)}function pFe(e,t,n,i){R0e.call(this,e,t,n,i)}function bFe(e,t,n,i){Npe.call(this,e,t,n,i)}function $0e(e,t){return e.hk().ti().oi(e,t)}function B0e(e,t){return e.hk().ti().qi(e,t)}function Z7t(e,t){return e.n.a=(zt(t),t+10)}function eEt(e,t){return e.n.a=(zt(t),t+10)}function tEt(e,t){return e.e=c(e.d.Kb(t),163)}function nEt(e,t){return t==e||$S(zQ(t),e)}function gf(e,t){return Uz(new Array(t),e)}function mFe(e,t){return zt(e),xe(e)===xe(t)}function St(e,t){return zt(e),xe(e)===xe(t)}function wFe(e,t){return ci(e.a,t,"")==null}function z0e(e,t,n){return e.lastIndexOf(t,n)}function iEt(e,t){return e.b.zd(new $Re(e,t))}function rEt(e,t){return e.b.zd(new BRe(e,t))}function vFe(e,t){return e.b.zd(new zRe(e,t))}function sEt(e){return e<100?null:new p0(e)}function oEt(e,t){return Me(t,(Ge(),jP),e)}function cEt(e,t,n){return Ci(e[t.a],e[n.a])}function lEt(e,t){return hc(e.a.d.p,t.a.d.p)}function uEt(e,t){return hc(t.a.d.p,e.a.d.p)}function aEt(e,t){return y_(),!bS(t.d.i,e)}function fEt(e,t){Nh||t&&(e.d=t)}function hEt(e,t){v1(e.f)?DJt(e,t):OQt(e,t)}function yFe(e,t){MMt.call(this,e,e.length,t)}function xFe(e){this.c=e,RF.call(this,TL,0)}function F0e(e,t){this.c=e,pee.call(this,e,t)}function kFe(e,t,n){this.a=e,u0e.call(this,t,n)}function OFe(e,t,n){this.c=t,this.b=n,this.a=e}function U_(e){G6(),this.d=e,this.a=new xx}function dEt(e,t){var n;return n=t.ni(e.a),n}function gEt(e,t){return Ci(e.c-e.s,t.c-t.s)}function pEt(e,t){return Ci(e.c.e.a,t.c.e.a)}function bEt(e,t){return Ci(e.b.e.a,t.b.e.a)}function SFe(e,t){return ae(t,16)&&Pit(e.c,t)}function mEt(e,t,n){return c(e.c,72).Uk(t,n)}function YF(e,t,n){return c(e.c,72).Vk(t,n)}function wEt(e,t,n){return N7t(e,c(t,345),n)}function q0e(e,t,n){return _7t(e,c(t,345),n)}function vEt(e,t,n){return bet(e,c(t,345),n)}function jFe(e,t,n){return PQt(e,c(t,345),n)}function VT(e,t){return t==null?null:fv(e.b,t)}function S4(e){return e==Fb||e==e1||e==kc}function TFe(e){return e.c?Lo(e.c.a,e,0):-1}function zZ(e){return $2(e)?(zt(e),e):e.se()}function ZF(e){return!isNaN(e)&&!isFinite(e)}function FZ(e){LBe(this),xu(this),Ss(this,e)}function ql(e){kZ(this),ape(this.c,0,e.Nc())}function EFe(e){nu(e.a),nme(e.c,e.b),e.b=null}function qZ(){qZ=Z,Gke=new cn,Qft=new dn}function CFe(){CFe=Z,Evt=ke(Br,Pt,1,0,5,1)}function MFe(){MFe=Z,Gvt=ke(Br,Pt,1,0,5,1)}function H0e(){H0e=Z,Uvt=ke(Br,Pt,1,0,5,1)}function yEt(e){return uS(),Cn((KJe(),Jft),e)}function xEt(e){return ya(),Cn((fJe(),Zft),e)}function kEt(e){return Wf(),Cn((hJe(),cht),e)}function OEt(e){return Ql(),Cn((dJe(),uht),e)}function SEt(e){return gl(),Cn((gJe(),fht),e)}function jEt(e){return cG(),Cn((oBe(),Lht),e)}function Q0e(e,t){if(!e)throw V(new qt(t))}function Q6(e){if(!e)throw V(new co(Nxe))}function HZ(e,t){if(e!=t)throw V(new aa)}function da(e,t,n){this.a=e,this.b=t,this.c=n}function AFe(e,t,n){this.a=e,this.b=t,this.c=n}function NFe(e,t,n){this.a=e,this.b=t,this.c=n}function G0e(e,t,n){this.b=e,this.c=t,this.a=n}function _Fe(e,t,n){this.d=e,this.b=n,this.a=t}function TEt(e,t,n){return Fp(),e.a.Wd(t,n),t}function QZ(e){var t;return t=new TO,t.e=e,t}function U0e(e){var t;return t=new oPe,t.b=e,t}function eq(e,t,n){this.e=t,this.b=e,this.d=n}function tq(e,t,n){this.b=e,this.a=t,this.c=n}function DFe(e){this.a=e,kg(),tc(Date.now())}function LFe(e,t,n){this.a=e,this.b=t,this.c=n}function GZ(e){gq.call(this,e.d,e.c,e.a,e.b)}function J0e(e){gq.call(this,e.d,e.c,e.a,e.b)}function EEt(e){return Jt(),Cn((cWe(),Idt),e)}function CEt(e){return tw(),Cn((YJe(),Iht),e)}function MEt(e){return vS(),Cn((ZJe(),Tdt),e)}function AEt(e){return bH(),Cn((xUe(),Ght),e)}function NEt(e){return b7(),Cn((pJe(),mdt),e)}function _Et(e){return ts(),Cn((IVe(),xdt),e)}function DEt(e){return X4(),Cn((eVe(),_dt),e)}function LEt(e){return gS(),Cn((kUe(),Fdt),e)}function PEt(e){return cs(),Cn((cBe(),qdt),e)}function IEt(e){return qH(),Cn((tVe(),Gdt),e)}function REt(e){return xf(),Cn((nVe(),n1t),e)}function $Et(e){return bv(),Cn((VVe(),r1t),e)}function BEt(e){return lH(),Cn((SUe(),h1t),e)}function zEt(e){return ek(),Cn((dXe(),f1t),e)}function FEt(e){return ew(),Cn((DJe(),u1t),e)}function qEt(e){return JQ(),Cn((lWe(),a1t),e)}function HEt(e){return I7(),Cn((oVe(),d1t),e)}function QEt(e){return SH(),Cn((vJe(),g1t),e)}function GEt(e){return uL(),Cn((OWe(),p1t),e)}function UEt(e){return jD(),Cn((OUe(),b1t),e)}function JEt(e){return lb(),Cn((yJe(),w1t),e)}function VEt(e){return _Q(),Cn((hXe(),v1t),e)}function XEt(e){return wD(),Cn((jUe(),y1t),e)}function WEt(e){return nL(),Cn((aXe(),x1t),e)}function KEt(e){return zS(),Cn((fXe(),k1t),e)}function YEt(e){return Us(),Cn((RWe(),O1t),e)}function ZEt(e){return wS(),Cn((wJe(),S1t),e)}function eCt(e){return N0(),Cn((bJe(),j1t),e)}function tCt(e){return M1(),Cn((mJe(),E1t),e)}function nCt(e){return Vq(),Cn((TUe(),C1t),e)}function iCt(e){return Su(),Cn((WVe(),A1t),e)}function rCt(e){return Kq(),Cn((EUe(),N1t),e)}function sCt(e){return pv(),Cn((rVe(),ypt),e)}function oCt(e){return M7(),Cn((EJe(),vpt),e)}function cCt(e){return B7(),Cn((KVe(),xpt),e)}function lCt(e){return F0(),Cn((IWe(),kpt),e)}function uCt(e){return fL(),Cn((SWe(),wpt),e)}function aCt(e){return P1(),Cn((sVe(),Opt),e)}function fCt(e){return OD(),Cn((CUe(),Spt),e)}function hCt(e){return Gs(),Cn((xJe(),Tpt),e)}function dCt(e){return BH(),Cn((kJe(),Ept),e)}function gCt(e){return C7(),Cn((OJe(),Cpt),e)}function pCt(e){return SS(),Cn((SJe(),Mpt),e)}function bCt(e){return OH(),Cn((jJe(),Apt),e)}function mCt(e){return zH(),Cn((TJe(),Npt),e)}function wCt(e){return ab(),Cn((iVe(),Wpt),e)}function vCt(e){return g7(),Cn((MUe(),tbt),e)}function yCt(e){return Kh(),Cn((AUe(),lbt),e)}function xCt(e){return ph(),Cn((NUe(),abt),e)}function kCt(e){return Vf(),Cn((_Ue(),jbt),e)}function OCt(e,t){return zt(e),e+(zt(t),t)}function SCt(e){return Um(),Cn((DUe(),_bt),e)}function jCt(e){return W4(),Cn((aVe(),Dbt),e)}function TCt(e){return nE(),Cn((lBe(),Lbt),e)}function ECt(e){return T7(),Cn((LJe(),Pbt),e)}function CCt(e){return E7(),Cn((cVe(),rmt),e)}function MCt(e){return Gq(),Cn((LUe(),smt),e)}function ACt(e){return _H(),Cn((PUe(),amt),e)}function NCt(e){return EQ(),Cn((XVe(),hmt),e)}function _Ct(e){return aH(),Cn((IUe(),dmt),e)}function DCt(e){return BD(),Cn((PJe(),gmt),e)}function LCt(e){return wQ(),Cn((lVe(),Lmt),e)}function PCt(e){return RH(),Cn((CJe(),Pmt),e)}function ICt(e){return sQ(),Cn((MJe(),Imt),e)}function RCt(e){return MQ(),Cn((uVe(),$mt),e)}function $Ct(e){return eQ(),Cn((IJe(),Fmt),e)}function G6(){G6=Z,i9e=(Ue(),Yt),$J=nn}function Pu(){Pu=Z,Ydt=new l8,Zdt=new lg}function J_(){J_=Z,AU=new fW,NU=new rA}function nq(){nq=Z,Jdt=new AW,Udt=new NW}function BCt(e){return!e.e&&(e.e=new He),e.e}function zCt(e){return Y7(),Cn((YVe(),dwt),e)}function FCt(e){return nF(),Cn((XGe(),pwt),e)}function qCt(e){return HD(),Cn((AJe(),gwt),e)}function HCt(e){return iF(),Cn((WGe(),mwt),e)}function QCt(e){return dD(),Cn(($Ue(),wwt),e)}function GCt(e){return rL(),Cn((ZVe(),vwt),e)}function UCt(e){return tH(),Cn((RUe(),uwt),e)}function JCt(e){return fH(),Cn((NJe(),awt),e)}function VCt(e){return VH(),Cn((_Je(),fwt),e)}function XCt(e){return kT(),Cn((KGe(),Pwt),e)}function WCt(e){return LD(),Cn((BUe(),Iwt),e)}function KCt(e){return Wq(),Cn((zUe(),Rwt),e)}function YCt(e){return kQ(),Cn((fVe(),Bwt),e)}function ZCt(e){return rF(),Cn((YGe(),Vwt),e)}function eMt(e){return sF(),Cn((ZGe(),Wwt),e)}function tMt(e){return oF(),Cn((eUe(),Ywt),e)}function nMt(e){return TD(),Cn((FUe(),e2t),e)}function iMt(e){return kh(),Cn((JVe(),o2t),e)}function rMt(e){return z0(),Cn((uWe(),l2t),e)}function sMt(e){return Bd(),Cn((bXe(),u2t),e)}function oMt(e){return gb(),Cn((pXe(),p2t),e)}function cMt(e){return _r(),Cn((PVe(),F2t),e)}function lMt(e){return jS(),Cn((hVe(),q2t),e)}function uMt(e){return yh(),Cn(($Je(),H2t),e)}function aMt(e){return L1(),Cn((dVe(),Q2t),e)}function fMt(e){return AQ(),Cn((gXe(),G2t),e)}function hMt(e){return D1(),Cn((RJe(),J2t),e)}function dMt(e){return qu(),Cn((gVe(),X2t),e)}function gMt(e){return yv(),Cn((kWe(),W2t),e)}function pMt(e){return Rx(),Cn((UVe(),K2t),e)}function bMt(e){return es(),Cn((mXe(),Y2t),e)}function mMt(e){return Gl(),Cn((wXe(),Z2t),e)}function wMt(e){return w7(),Cn((zJe(),svt),e)}function vMt(e){return Ue(),Cn((LVe(),evt),e)}function yMt(e){return Tu(),Cn((bVe(),ovt),e)}function xMt(e){return lu(),Cn((xWe(),cvt),e)}function kMt(e){return U4(),Cn((BJe(),lvt),e)}function OMt(e){return Yq(),Cn((pVe(),uvt),e)}function SMt(e){return tQ(),Cn((mVe(),avt),e)}function jMt(e){return HH(),Cn((wVe(),dvt),e)}function UZ(e,t){this.c=e,this.a=t,this.b=t-e}function vu(e,t,n){this.c=e,this.a=t,this.b=n}function PFe(e,t,n){this.a=e,this.c=t,this.b=n}function IFe(e,t,n){this.a=e,this.c=t,this.b=n}function RFe(e,t,n){this.a=e,this.b=t,this.c=n}function V0e(e,t,n){this.a=e,this.b=t,this.c=n}function X0e(e,t,n){this.a=e,this.b=t,this.c=n}function JZ(e,t,n){this.a=e,this.b=t,this.c=n}function $Fe(e,t,n){this.a=e,this.b=t,this.c=n}function W0e(e,t,n){this.a=e,this.b=t,this.c=n}function BFe(e,t,n){this.a=e,this.b=t,this.c=n}function zFe(e,t,n){this.b=e,this.a=t,this.c=n}function jg(e,t,n){this.e=e,this.a=t,this.c=n}function FFe(e,t,n){ha(),fbe.call(this,e,t,n)}function VZ(e,t,n){ha(),Upe.call(this,e,t,n)}function K0e(e,t,n){ha(),Upe.call(this,e,t,n)}function Y0e(e,t,n){ha(),Upe.call(this,e,t,n)}function qFe(e,t,n){ha(),VZ.call(this,e,t,n)}function Z0e(e,t,n){ha(),VZ.call(this,e,t,n)}function HFe(e,t,n){ha(),Z0e.call(this,e,t,n)}function QFe(e,t,n){ha(),K0e.call(this,e,t,n)}function GFe(e,t,n){ha(),Y0e.call(this,e,t,n)}function TMt(e){return ok(),Cn((aWe(),Tvt),e)}function V_(e,t){return Bn(e),Bn(t),new KIe(e,t)}function j4(e,t){return Bn(e),Bn(t),new ZFe(e,t)}function EMt(e,t){return Bn(e),Bn(t),new eqe(e,t)}function CMt(e,t){return Bn(e),Bn(t),new oRe(e,t)}function epe(e,t){d8t.call(this,e,YH(new Qo(t)))}function UFe(e,t){this.c=e,this.b=t,this.a=!1}function tpe(e){this.d=e,xt(this),this.b=vAt(e.d)}function npe(e,t,n){this.c=e,lF.call(this,t,n)}function MMt(e,t,n){Gqe.call(this,t,n),this.a=e}function JFe(){this.a=";,;",this.b="",this.c=""}function VFe(e,t,n){this.b=e,iBe.call(this,t,n)}function AMt(e,t){t&&(e.b=t,e.a=(S0(t),t.a))}function XZ(e){return gn(e.b!=0),ma(e,e.a.a)}function NMt(e){return gn(e.b!=0),ma(e,e.c.b)}function _Mt(e){return!e.c&&(e.c=new Hf),e.c}function XFe(e){var t;return t=new aY,Lte(t,e),t}function X_(e){var t;return t=new _i,Lte(t,e),t}function U6(e){var t;return t=new He,xte(t,e),t}function DMt(e){var t;return t=new Tr,xte(t,e),t}function c(e,t){return XT(e==null||_ne(e,t)),e}function iq(e,t){return t&&Mq(e,t.d)?t:null}function W_(e,t){if(!e)throw V(new qt(t))}function ipe(e,t){if(!e)throw V(new eIe(t))}function T4(e,t){if(!e)throw V(new co(t))}function LMt(e,t){return tF(),hc(e.d.p,t.d.p)}function PMt(e,t){return A1(),Ci(e.e.b,t.e.b)}function IMt(e,t){return A1(),Ci(e.e.a,t.e.a)}function RMt(e,t){return hc(uqe(e.d),uqe(t.d))}function $Mt(e,t){return t==(Ue(),Yt)?e.c:e.d}function BMt(e){return new ze(e.c+e.b,e.d+e.a)}function rpe(e){var t,n;n=e.d,t=e.a,e.d=t,e.a=n}function spe(e){var t,n;t=e.b,n=e.c,e.b=n,e.c=t}function _d(e,t,n,i,r){e.b=t,e.c=n,e.d=i,e.a=r}function ope(e,t,n,i,r){e.d=t,e.c=n,e.a=i,e.b=r}function WFe(e,t,n,i,r){e.c=t,e.d=n,e.b=i,e.a=r}function rq(e,t){return $It(e),e.a*=t,e.b*=t,e}function cpe(e,t){return t<0?e.g=-1:e.g=t,e}function K_(e,t,n){Mge.call(this,e,t),this.c=n}function lpe(e,t,n){$6.call(this,e,t),this.b=n}function upe(e){H0e(),I8.call(this),this._h(e)}function sq(e,t,n){Mge.call(this,e,t),this.c=n}function KFe(e,t,n){this.a=e,bx.call(this,t,n)}function YFe(e,t,n){this.a=e,bx.call(this,t,n)}function WZ(e){this.b=e,this.a=Gp(this.b.a).Md()}function ZFe(e,t){this.b=e,this.a=t,RN.call(this)}function eqe(e,t){this.a=e,this.b=t,RN.call(this)}function tqe(e){u0e.call(this,e.length,0),this.a=e}function ape(e,t,n){Xve(n,0,e,t,n.length,!1)}function J6(e,t,n){var i;i=new W2(n),wf(e,t,i)}function zMt(e,t){var n;return n=e.c,Rme(e,t),n}function FMt(e,t){return(HKe(e)<<4|HKe(t))&Dr}function nqe(e){return e!=null&&!mne(e,rM,sM)}function Y_(e){return e==0||isNaN(e)?e:e<0?-1:1}function fpe(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function ei(e,t){return rr(e,t,e.c.b,e.c),!0}function oq(e){var t;return t=e.slice(),pte(t,e)}function cq(e){var t;return t=e.n,e.a.b+t.d+t.a}function iqe(e){var t;return t=e.n,e.e.b+t.d+t.a}function hpe(e){var t;return t=e.n,e.e.a+t.b+t.c}function rqe(e){return vi(),new Dd(0,e)}function sqe(){sqe=Z,Yae=(Mt(),new nY(Poe))}function lq(){lq=Z,new k2e((mY(),Joe),(bY(),Uoe))}function oqe(){oS(),ZAt.call(this,(w0(),nf))}function cqe(e,t){Gqe.call(this,t,1040),this.a=e}function $m(e,t){return H7(e,new $6(t.a,t.b))}function qMt(e){return!ys(e)&&e.c.i.c==e.d.i.c}function HMt(e,t){return e.c<t.c?-1:e.c==t.c?0:1}function lqe(e){return e.b.c.length-e.e.c.length}function uqe(e){return e.e.c.length-e.g.c.length}function KZ(e){return e.e.c.length+e.g.c.length}function aqe(e){return F4(),ke(qJ,FG,41,e,0,1)}function fqe(){fqe=Z,Nke=ke(Pr,Fe,15,256,0,1)}function hqe(){this.b=de(be(Ve((Sf(),wce))))}function QMt(e){return Ru(),(Ue(),ll).Gc(e.j)}function GMt(e,t,n){return A1(),n.e.a+n.f.a+e*t}function UMt(e,t,n){return A1(),n.e.b+n.f.b+e*t}function JMt(e,t,n){return ci(e.b,c(n.b,17),t)}function VMt(e,t,n){return ci(e.b,c(n.b,17),t)}function XMt(e,t){return Qe(e,new ze(t.a,t.b))}function WMt(e,t){$me(e,t==null?null:(zt(t),t))}function KMt(e,t){zme(e,t==null?null:(zt(t),t))}function YMt(e,t){zme(e,t==null?null:(zt(t),t))}function dpe(e,t,n,i){g2e.call(this,e,t,n,i,0,0)}function uq(e,t){L_.call(this,e,t),this.a=this}function dqe(e){H0e(),upe.call(this,e),this.a=-1}function gqe(){pZ.call(this,"COUNT_CHILDREN",0)}function gpe(e){this.c=e,this.b=this.c.d.vc().Jc()}function pqe(e){return e.e.Pd().gc()*e.c.Pd().gc()}function YZ(e,t,n){return new OFe(iNt(e).Ze(),n,t)}function Wn(e,t,n){return e.a=-1,a0e(e,t.g,n),e}function ppe(e,t,n){var i;return i=e[t],e[t]=n,i}function Zi(e,t){var n;return n=xee(e,t),n.i=2,n}function aq(e,t){var n;return++e.j,n=e.Aj(t),n}function ZMt(e){return e.a?e.a:Aee(e)}function XT(e){if(!e)throw V(new C6(null))}function bpe(e){if(e.c.e!=e.a)throw V(new aa)}function mpe(e){if(e.e.c!=e.b)throw V(new aa)}function fq(e){for(Bn(e);e.Ob();)e.Pb(),e.Qb()}function eAt(e){e.a.jd(),c(e.a.kd(),18).gc(),T1e()}function hq(){hq=Z,Woe=new Gee((Mt(),Mt(),$s))}function ZZ(){ZZ=Z,yke=new Y1e((Mt(),Mt(),yU))}function bqe(){bqe=Z,Cke=ke(xk,Fe,224,256,0,1)}function mqe(){mqe=Z,Ake=ke(HE,Fe,183,128,0,1)}function wqe(){wqe=Z,_ke=ke(Tw,Fe,192,256,0,1)}function vqe(){vqe=Z,Pke=ke(Ew,Fe,193,256,0,1)}function wpe(){_d(this,!1,!1,!1,!1)}function vpe(e){zde.call(this,new E0),Ss(this,e)}function G2(e){this.a=new f4(e.gc()),Ss(this,e)}function yqe(e){this.c=e,this.a=new h4(this.c.a)}function Tt(e,t){Fp(),ate.call(this,e),this.a=t}function Je(e,t){return ht(t,e.c.length),e.c[t]}function xqe(e,t){return ht(t,e.a.length),e.a[t]}function kqe(e,t){return e.a+=nd(t,0,t.length),e}function tAt(e,t){return e.a==null&&Hit(e),e.a[t]}function nAt(e,t,n){return hc(t.d[e.g],n.d[e.g])}function iAt(e,t,n){return hc(e.d[t.p],e.d[n.p])}function rAt(e,t,n){return hc(e.d[t.p],e.d[n.p])}function sAt(e,t,n){return hc(e.d[t.p],e.d[n.p])}function oAt(e,t,n){return hc(e.d[t.p],e.d[n.p])}function cAt(e,t){return zt(e),MD(e,(zt(t),t))}function lAt(e,t){return zt(t),MD(t,(zt(e),e))}function Oqe(e){return e.q?e.q:(Mt(),Mt(),Vd)}function Sqe(e){return e.c-c(Je(e.a,e.b),296).b}function jqe(e,t){return e?0:p.Math.max(0,t-1)}function dq(e,t,n){return p.Math.min(n/e,1/t)}function U2(e,t,n,i,r,o){return oet(e,t,n,i,r,0,o)}function gq(e,t,n,i){ope(this,e,t,n,i)}function uAt(e,t){var n;for(n=0;n<t;++n)e[n]=-1}function Tqe(e){var t;return t=cet(e),t?Tqe(t):e}function yu(e){return e.c?e.c.f:e.e.b}function Al(e){return e.c?e.c.g:e.e.a}function pq(e){Xm.call(this,e.gc()),dr(this,e)}function Eqe(){En.call(this,"SIMPLE_X_PLACING",0)}function Cqe(){En.call(this,"SIMPLE_Y_PLACING",0)}function Mqe(e){this.a=e,this.c=new yn,d$t(this)}function Aqe(e){this.b=new _i,this.a=e,this.c=-1}function Dd(e,t){vi(),jm.call(this,e),this.a=t}function bq(e,t){ha(),Lz.call(this,t),this.a=e}function WT(e,t,n){this.a=e,Nr.call(this,t,n,2)}function Qp(e,t,n){ev(t,e.c.length),ET(e.c,t,n)}function aAt(e,t){return!e&&(e=[]),e[e.length]=t,e}function eee(e,t,n){hKe(0,t,e.length),lS(e,0,t,n)}function Nqe(e,t,n){var i;for(i=0;i<t;++i)e[i]=n}function Li(e,t){var n;return n=bt(e),gwe(n,t),n}function tee(e,t){return ae(t,23)&&Ml(e,c(t,23))}function _qe(e,t){return ae(t,23)&&DIt(e,c(t,23))}function lo(e,t){return yKe(e,t,ePt(e,e.b.Ae(t)))}function fAt(e,t){return e.a.get(t)!==void 0}function nee(e,t){return e==null?t==null:St(e,t)}function hAt(e,t){return e==null?t==null:cQ(e,t)}function mq(e,t){return vi(),new Ipe(e,t)}function Gn(e){return So(e)?e|0:IIe(e)}function iee(){iee=Z,pvt=new Ur((In(),au),0)}function Dqe(){Dqe=Z,xft=new tqe(ke(Br,Pt,1,0,5,1))}function Lqe(){this.b=new V9,this.c=new wQe(this)}function ype(){this.d=new Ep,this.e=new mQe(this)}function ree(e,t){this.b=new _i,this.a=e,this.c=t}function xpe(){bbe(),this.g=new _i,this.f=new _i}function dAt(e,t){see(e,Qr(new ze(t.a,t.b),e.c))}function see(e,t){Oi(e.c,t),e.b.c+=t.a,e.b.d+=t.b}function wq(e){e.b?wq(e.b):e.d.dc()&&e.f.c.Ac(e.e)}function kpe(e){return Array.isArray(e)&&e.Rm===we}function oee(e){return cu(e,26)*dE+cu(e,27)*gE}function gAt(e,t,n){return Er(e,new d4(t.a,n.a))}function pAt(e,t,n){return-hc(e.f[t.p],e.f[n.p])}function vq(e,t,n){var i;e&&(i=e.i,i.c=t,i.b=n)}function yq(e,t,n){var i;e&&(i=e.i,i.d=t,i.a=n)}function Hc(e,t,n){return e.a=-1,a0e(e,t.g+1,n),e}function Ope(e,t,n){return n=Qu(e,c(t,52),7,n),n}function Spe(e,t,n){return n=Qu(e,c(t,52),3,n),n}function bAt(e,t,n){Ent(n,e,1),Qe(t,new VRe(n,e))}function mAt(e,t,n){q7(n,e,1),Qe(t,new e$e(n,e))}function Pqe(e,t,n){this.a=e,HF.call(this,t,n,22)}function Iqe(e,t,n){this.a=e,HF.call(this,t,n,14)}function Rqe(e,t,n,i){ha(),CGe.call(this,e,t,n,i)}function $qe(e,t,n,i){ha(),CGe.call(this,e,t,n,i)}function wAt(e,t){(t.Bb&rc)!=0&&!e.a.o&&(e.a.o=t)}function Bqe(e){return e!=null&&hee(e)&&e.Rm!==we}function jpe(e){return!Array.isArray(e)&&e.Rm===we}function vAt(e){return ae(e,16)?c(e,16).cd():e.Jc()}function Tpe(e){return e.Oc(ke(Br,Pt,1,e.gc(),5,1))}function KT(e,t){return zzt(xD(e,t))?t.wi():null}function Gp(e){return e.c?e.c:e.c=e.Qd()}function cee(e){return e.d?e.d:e.d=e.Rd()}function E4(e){var t;return t=e.i,t||(e.i=e.bc())}function zqe(e){var t;return t=e.f,t||(e.f=e.Cc())}function Fqe(e){return vi(),new Ree(10,e,0)}function Up(e){v0(),this.a=0,this.b=e-1,this.c=1}function qqe(e){FF(this),this.g=e,Dq(this),this.he()}function Hqe(){Ru(),this.k=new yn,this.d=new Tr}function Epe(e,t,n,i){this.a=e,cH.call(this,e,t,n,i)}function Ht(e){this.a=(Dqe(),xft),this.d=c(Bn(e),51)}function xq(e){if(e.e.j!=e.d)throw V(new aa)}function YT(e){return So(e)?""+e:Lit(e)}function Ld(e,t){return A0(Uet(So(e)?qa(e):e,t))}function Bm(e,t){return A0(rye(So(e)?qa(e):e,t))}function Jp(e,t){return A0(AGt(So(e)?qa(e):e,t))}function yAt(e,t){return Hp((zt(e),e),(zt(t),t))}function lee(e,t){return Ci((zt(e),e),(zt(t),t))}function Qqe(e,t){return Bn(t),e.a.Hd(t)&&!e.b.Hd(t)}function xAt(e,t){return nl(e.l&t.l,e.m&t.m,e.h&t.h)}function kAt(e,t){return nl(e.l|t.l,e.m|t.m,e.h|t.h)}function OAt(e,t){return nl(e.l^t.l,e.m^t.m,e.h^t.h)}function J2(e,t){return qD(e,(zt(t),new PNe(t)))}function C4(e,t){return qD(e,(zt(t),new INe(t)))}function SAt(e,t,n){e.a.Mb(n)&&(e.b=!0,t.Ad(n))}function Cpe(e){e.d||(e.d=e.b.Jc(),e.c=e.b.gc())}function V6(e,t){if(e<0||e>=t)throw V(new ePe)}function cc(e){e.f=new wBe(e),e.i=new vBe(e),++e.g}function kq(e){this.b=new Gc(11),this.a=(Qm(),e)}function uee(e){this.b=null,this.a=(Qm(),e||Hke)}function Mpe(e,t){this.e=e,this.d=(t&64)!=0?t|od:t}function Gqe(e,t){this.c=0,this.d=e,this.b=t|64|od}function Uqe(e){this.a=rZe(e.a),this.b=new ql(e.b)}function Tg(e,t,n,i){var r;r=e.i,r.i=t,r.a=n,r.b=i}function Ape(e){var t;for(t=e;t.f;)t=t.f;return t}function jAt(e){return e.e?Ybe(e.e):null}function TAt(e,t){return H4(),Ci(t.a.o.a,e.a.o.a)}function Jqe(e,t,n){return GS(),Bte(e,t)&&Bte(e,n)}function ZT(e){return Gl(),!e.Gc(W1)&&!e.Gc(ap)}function Vqe(e,t,n){return Mot(e,c(t,12),c(n,12))}function Xqe(e){return Dl(),c(e,12).g.c.length!=0}function Wqe(e){return Dl(),c(e,12).e.c.length!=0}function Oq(e){return new ze(e.c+e.b/2,e.d+e.a/2)}function aee(e,t){return t.Sh()?L0(e.b,c(t,52)):t}function EAt(e,t,n){t.of(n,de(be(Ut(e.b,n)))*e.a)}function CAt(e,t){t.Tg("General 'Rotator",1),ctn(e)}function Jr(e,t,n,i,r){hte.call(this,e,t,n,i,r,-1)}function e7(e,t,n,i,r){pD.call(this,e,t,n,i,r,-1)}function _e(e,t,n,i){Nr.call(this,e,t,n),this.b=i}function Sq(e,t,n,i){K_.call(this,e,t,n),this.b=i}function Kqe(e){J$e.call(this,e,!1),this.a=!1}function Yqe(){pZ.call(this,"LOOKAHEAD_LAYOUT",1)}function Zqe(){pZ.call(this,"LAYOUT_NEXT_LEVEL",3)}function eHe(){En.call(this,"ABSOLUTE_XPLACING",0)}function tHe(e){this.b=e,k4.call(this,e),rze(this)}function nHe(e){this.b=e,$_.call(this,e),sze(this)}function iHe(e,t){this.b=e,p6.call(this,e.b),this.a=t}function V2(e,t,n){this.a=e,O4.call(this,t,n,5,6)}function Npe(e,t,n,i){this.b=e,Nr.call(this,t,n,i)}function Vp(e,t,n){rd(),this.e=e,this.d=t,this.a=n}function ps(e,t){for(zt(t);e.Ob();)t.Ad(e.Pb())}function jq(e,t){return vi(),new Gpe(e,t,0)}function fee(e,t){return vi(),new Gpe(6,e,t)}function MAt(e,t){return St(e.substr(0,t.length),t)}function Cc(e,t){return Yr(t)?Lee(e,t):!!lo(e.f,t)}function AAt(e){return nl(~e.l&uu,~e.m&uu,~e.h&z1)}function hee(e){return typeof e===kL||typeof e===ore}function Pd(e){return new Ht(new e0e(e.a.length,e.a))}function dee(e){return new Tt(null,$At(e,e.length))}function rHe(e){if(!e)throw V(new Mo);return e.d}function M4(e){var t;return t=j7(e),gn(t!=null),t}function NAt(e){var t;return t=jBt(e),gn(t!=null),t}function X6(e,t){var n;return n=e.a.gc(),Wbe(t,n),n-t}function Er(e,t){var n;return n=e.a.yc(t,e),n==null}function Z_(e,t){return e.a.yc(t,(Bt(),X0))==null}function _At(e,t){return e>0?p.Math.log(e/t):-100}function _pe(e,t){return t?Ss(e,t):!1}function A4(e,t,n){return yf(e.a,t),ppe(e.b,t.g,n)}function DAt(e,t,n){V6(n,e.a.c.length),ku(e.a,n,t)}function ve(e,t,n,i){hKe(t,n,e.length),LAt(e,t,n,i)}function LAt(e,t,n,i){var r;for(r=t;r<n;++r)e[r]=i}function Dpe(e,t){var n;for(n=0;n<t;++n)e[n]=!1}function Lpe(e,t){if(e==null)throw V(new l4(t))}function eD(e,t){FBe(e,ae(t,164)?t:c(t,2015).Pl())}function PAt(e,t,n){htn(e.a,e.b,e.d,e.c,c(t,171),n)}function Iu(e,t,n){return z$t(e,t.g,n),yf(e.c,t),e}function IAt(e){return Vx(e,(_r(),po)),e.d=!0,e}function gee(e){return!e.j&&sn(e,iKt(e.g,e.b)),e.j}function RAt(e,t,n){var i;return i=rv(e,t),Wee(e,t,n),i}function Ppe(e,t,n){this.c=e,this.a=t,Mt(),this.b=n}function pee(e,t){this.d=e,on.call(this,e),this.e=t}function Ipe(e,t){jm.call(this,1),this.a=e,this.b=t}function t7(e){B2(e.b!=-1),Cg(e.c,e.a=e.b),e.b=-1}function sHe(e){e.a=null,e.e=null,cc(e.b),e.d=0,++e.c}function n7(e){return e.e==0?e:new Vp(-e.e,e.d,e.a)}function $At(e,t){return MIt(t,e.length),new cqe(e,t)}function oHe(e,t){return _c(e,t)<0?-1:_c(e,t)>0?1:0}function BAt(e,t){return Ci(e.c.c+e.c.b,t.c.c+t.c.b)}function Tq(e,t){rr(e.d,t,e.b.b,e.b),++e.a,e.c=null}function cHe(e,t){return e.c?cHe(e.c,t):Qe(e.b,t),e}function zm(e,t){hr(Qc(e.Mc(),new x5),new q_e(t))}function W6(e,t,n,i,r){iie(e,c(Ei(t.k,n),16),n,i,r)}function lHe(e,t,n,i,r){for(;t<n;)i[r++]=ws(e,t++)}function uHe(e,t,n){var i;for(i=0;i<t;++i)mr(e,i,n)}function Eq(e){e.s=NaN,e.c=NaN,bnt(e,e.e),bnt(e,e.j)}function bee(e){return p.Math.abs(e.d.e-e.e.e)-e.a}function zAt(e,t){return Ci(e.e.a+e.f.a,t.e.a+t.f.a)}function FAt(e,t){return Ci(e.e.b+e.f.b,t.e.b+t.f.b)}function mee(e,t){this.d=TBt(e),this.c=t,this.a=.5*t}function X2(e){this.d=(zt(e),e),this.a=0,this.c=TL}function aHe(e){lbe.call(this),this.a=e,Qe(e.a,this)}function Rpe(e){e?ave(e,(kg(),Lft)):O_t((kg(),e))}function qAt(e,t){N4(e,new W2(t.f!=null?t.f:""+t.g))}function HAt(e,t){N4(e,new W2(t.f!=null?t.f:""+t.g))}function dr(e,t){return e.Qi()&&(t=qQe(e,t)),e.Di(t)}function wee(e,t){return t=e.Wk(null,t),Tet(e,null,t)}function fHe(e,t,n){return vi(),new fGe(e,t,n)}function QAt(e,t,n){return c(e.c.fd(t,c(n,138)),45)}function GAt(){return qz(),Y(K(kft,1),Pe,541,0,[Xoe])}function UAt(e){return e==sr?rP:e==Gr?"-INF":""+e}function JAt(e){return e==sr?rP:e==Gr?"-INF":""+e}function bn(e){return(e.i==null&&sd(e),e.i).length}function O0(){O0=Z,Gt=zUt(),At(),py&&Yqt()}function hHe(){hHe=Z,Cft=new iT(!1),Mft=new iT(!0)}function i7(e){var t;return t=e.g,t||(e.g=new bz(e))}function Cq(e){var t;return t=e.k,t||(e.k=new mz(e))}function $pe(e){var t;return t=e.k,t||(e.k=new mz(e))}function VAt(e){var t;return t=e.i,t||(e.i=new HK(e))}function vee(e){var t;return t=e.j,t||(e.j=new m6(e))}function dHe(e){var t;return t=e.f,t||(e.f=new Wge(e))}function yee(e){var t;return t=e.d,t||(e.d=new Z8(e))}function Bpe(e){return ae(e,613)?e:new NQe(e)}function gHe(e,t){return uD(t,e.c.b.c.gc()),new WIe(e,t)}function zpe(e,t){var n;return n=e.a.gc(),uD(t,n),n-1-t}function M(e,t,n){var i;return i=xee(e,t),kXe(n,i),i}function xee(e,t){var n;return n=new awe,n.j=e,n.d=t,n}function K6(e,t){return e.a+=String.fromCharCode(t),e}function Xp(e,t){return e.a+=String.fromCharCode(t),e}function Bn(e){if(e==null)throw V(new i4);return e}function W2(e){if(e==null)throw V(new i4);this.a=e}function pHe(e){s1e(),this.b=new He,this.a=e,aen(this,e)}function Fpe(e){this.b=e,this.a=c(za(this.b.a.e),229)}function qpe(e){this.d=e,this.c=e.a.d.a,this.b=e.a.e.g}function bHe(e){this.b=new He,this.a=new He,this.c=e}function dc(e){this.c=new fs,this.a=new He,this.b=e}function mHe(){E0.call(this),this.a=!0,this.b=!0}function Hpe(e,t){return en(t,e.length+1),e.substr(t)}function mr(e,t,n){return g7t(n==null||FKt(e,n)),e[t]=n}function kee(e,t,n){var i;return i=_te(e,t,n),Pye(e,i)}function wHe(e,t){var n;n=console[e],n.call(console,t)}function Ut(e,t){return Yr(t)?Mc(e,t):No(lo(e.f,t))}function vHe(e,t){return c(Gp(e.a).Kd().Xb(t),45).jd()}function XAt(e,t){return c($(t,(Ge(),Uv)),15).a<e}function WAt(e,t){return H4(),c(eo(e,t.d),16).Ec(t)}function KAt(e,t,n,i){return n==0||(n-i)/n<e.e||t>=e.g}function r7(e){return p.Math.sqrt(e.a*e.a+e.b*e.b)}function yHe(e){return ae(e,104)&&(c(e,20).Bb&rc)!=0}function Fm(e){return!e.d&&(e.d=new Nr(Ys,e,1)),e.d}function YAt(e){return!e.a&&(e.a=new Nr(fp,e,4)),e.a}function xHe(e){this.c=e,this.a=new _i,this.b=new _i}function ZAt(e){this.a=(zt(Kn),Kn),this.b=e,new p1e}function kHe(e,t,n){this.a=e,Mbe.call(this,8,t,null,n)}function Qpe(e,t,n){this.a=e,e1e.call(this,t),this.b=n}function Gpe(e,t,n){jm.call(this,e),this.a=t,this.b=n}function Upe(e,t,n){Lz.call(this,t),this.a=e,this.b=n}function eNt(e,t,n){c(t.b,68),Uc(t.a,new V0e(e,n,t))}function Oee(e,t){for(zt(t);e.c<e.d;)e.Qe(t,e.c++)}function tNt(e,t){++e.j,nie(e,e.i,t),FUt(e,c(t,345))}function OHe(e,t){var n;++e.j,n=e.Cj(),e.pj(e.Xi(n,t))}function N4(e,t){var n;n=e.a.length,rv(e,n),Wee(e,n,t)}function qm(e,t){return V6(t,e.a.c.length),Je(e.a,t)}function Mq(e,t){return Xne(e.c,e.f,t,e.b,e.a,e.e,e.d)}function k1(e,t){return xe(e)===xe(t)||e!=null&&xi(e,t)}function SHe(e){return za(e),ae(e,475)?c(e,475):To(e)}function jHe(e){return e?e.dc():!e.Jc().Ob()}function nNt(e){return my?Lee(my,e):!1}function iNt(e){return 0>=e?new Q1e:rRt(e-1)}function za(e){if(e==null)throw V(new i4);return e}function zt(e){if(e==null)throw V(new i4);return e}function Vr(e){return!e.a&&e.c?e.c.b:e.a}function THe(e){var t,n;return t=e.c.i.c,n=e.d.i.c,t==n}function rNt(e,t){return hc(t.j.c.length,e.j.c.length)}function EHe(e){Zpe(e.a),e.b=ke(Br,Pt,1,e.b.length,5,1)}function s7(e){e.c?e.c.Ye():(e.d=!0,XVt(e))}function S0(e){e.c?S0(e.c):(P0(e),e.d=!0)}function nu(e){B2(e.c!=-1),e.d.ed(e.c),e.b=e.c,e.c=-1}function CHe(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function MHe(e){this.c=e,this.b=this.c.a,this.a=this.c.e}function xr(){PPe.call(this),_2(this.j.c,0),this.a=-1}function AHe(){En.call(this,"DELAUNAY_TRIANGULATION",0)}function Jpe(e){for(;e.a.b!=0;)Gen(e,c(CQe(e.a),9))}function sNt(e,t){Ln((!e.a&&(e.a=new H_(e,e)),e.a),t)}function Vpe(e,t){e.c<0||e.b.b<e.c?Cs(e.b,t):e.a.vf(t)}function oNt(e,t){var n;n=e.Fh(t),n>=0?e.hi(n):zve(e,t)}function NHe(e,t){this.b=e,pee.call(this,e,t),rze(this)}function _He(e,t){this.b=e,F0e.call(this,e,t),sze(this)}function DHe(){mve.call(this,Ja,(_6(),sEe)),iZt(this)}function Xpe(e){return!e.b&&(e.b=new Pz(new pY)),e.b}function cNt(e){if(e.p!=3)throw V(new El);return e.e}function lNt(e){if(e.p!=4)throw V(new El);return e.e}function uNt(e){if(e.p!=4)throw V(new El);return e.j}function aNt(e){if(e.p!=3)throw V(new El);return e.j}function fNt(e){if(e.p!=6)throw V(new El);return e.f}function hNt(e){if(e.p!=6)throw V(new El);return e.k}function Hm(e){return e.c==-2&&B(e,$Qt(e.g,e.b)),e.c}function Y6(e,t){var n;return n=xee("",e),n.n=t,n.i=1,n}function Id(e,t){for(;t-- >0;)e=e<<1|(e<0?1:0);return e}function dNt(e,t){see(c(t.b,68),e),Uc(t.a,new Ude(e))}function LHe(e,t){return lq(),new k2e(new cze(e),new oze(t))}function gNt(e,t,n){return G4(),n.Kg(e,c(t.jd(),149))}function pNt(e){return zu(e,are),mH(Ns(Ns(5,e),e/10|0))}function Wpe(e){return Mt(),e?e.Me():(Qm(),Qm(),Qke)}function ci(e,t,n){return Yr(t)?uo(e,t,n):bl(e.f,t,n)}function bNt(e){return String.fromCharCode.apply(null,e)}function PHe(e){return!e.d&&(e.d=new k6(e.c.Bc())),e.d}function Z6(e){return!e.a&&(e.a=new rIe(e.c.vc())),e.a}function IHe(e){return!e.b&&(e.b=new M6(e.c.ec())),e.b}function RHe(e,t){RTt.call(this,sRt(Bn(e),Bn(t))),this.a=t}function Kpe(e,t,n,i){_m.call(this,e,t),this.d=n,this.a=i}function Aq(e,t,n,i){_m.call(this,e,n),this.a=t,this.f=i}function o7(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function $He(){mve.call(this,Tb,(OIe(),eyt)),VZt(this)}function BHe(){Ao.call(this,"There is no more element.")}function ws(e,t){return en(t,e.length),e.charCodeAt(t)}function zHe(e,t){e.u.Gc((Gl(),W1))&&PUt(e,t),SPt(e,t)}function gc(e,t){return xe(e)===xe(t)||e!=null&&xi(e,t)}function eo(e,t){return tee(e.a,t)?e.b[c(t,23).g]:null}function FHe(e,t){var n;return n=new dc(e),It(t.c,n),n}function c7(e){return e.j.c.length=0,Zpe(e.c),Y7t(e.a),e}function mNt(e){return!e.b&&(e.b=new Ct(xn,e,4,7)),e.b}function eS(e){return!e.c&&(e.c=new Ct(xn,e,5,8)),e.c}function Ype(e){return!e.c&&(e.c=new _e(fu,e,9,9)),e.c}function See(e){return!e.n&&(e.n=new _e(zo,e,1,7)),e.n}function fi(e,t,n,i){return sWe(e,t,n,!1),XH(e,i),e}function qHe(e,t){dne(e,de(N1(t,"x")),de(N1(t,"y")))}function HHe(e,t){dne(e,de(N1(t,"x")),de(N1(t,"y")))}function wNt(){return rF(),Y(K(Jwt,1),Pe,557,0,[fae])}function vNt(){return sF(),Y(K(Xwt,1),Pe,558,0,[hae])}function yNt(){return oF(),Y(K(Kwt,1),Pe,559,0,[dae])}function xNt(){return iF(),Y(K(bwt,1),Pe,550,0,[Wue])}function kNt(){return nF(),Y(K($8e,1),Pe,480,0,[Xue])}function ONt(){return kT(),Y(K(sTe,1),Pe,531,0,[HP])}function jee(){jee=Z,jft=new K1e(Y(K(Eb,1),lG,45,0,[]))}function SNt(e,t){return new dQe(c(Bn(e),50),c(Bn(t),50))}function jNt(e){return e!=null&&wT(CV,e.toLowerCase())}function tS(e){return e.e==Aj&&pn(e,Qzt(e.g,e.b)),e.e}function tD(e){return e.f==Aj&&Zt(e,zqt(e.g,e.b)),e.f}function jx(e){var t;return t=e.b,!t&&(e.b=t=new qK(e)),t}function Zpe(e){var t;for(t=e.Jc();t.Ob();)t.Pb(),t.Qb()}function TNt(e,t,n){var i;i=c(e.d.Kb(n),163),i&&i.Nb(t)}function ENt(e,t){return Ci(e.d.c+e.d.b/2,t.d.c+t.d.b/2)}function CNt(e,t){return Ci(e.g.c+e.g.b/2,t.g.c+t.g.b/2)}function MNt(e,t){return J1e(),Ci((zt(e),e),(zt(t),t))}function Qc(e,t){return P0(e),new Tt(e,new Kbe(t,e.a))}function mi(e,t){return P0(e),new Tt(e,new ame(t,e.a))}function K2(e,t){return P0(e),new v0e(e,new eJe(t,e.a))}function Nq(e,t){return P0(e),new y0e(e,new tJe(t,e.a))}function ebe(e,t){this.b=e,this.c=t,this.a=new h4(this.b)}function Tee(e,t,n,i){this.a=e,this.e=t,this.d=n,this.c=i}function Eee(e,t,n){this.a=Rxe,this.d=e,this.b=t,this.c=n}function _q(e,t,n,i){this.a=e,this.c=t,this.b=n,this.d=i}function tbe(e,t,n,i){this.c=e,this.b=t,this.a=n,this.d=i}function QHe(e,t,n,i){this.c=e,this.b=t,this.d=n,this.a=i}function GHe(e,t,n,i){this.a=e,this.d=t,this.c=n,this.b=i}function pf(e,t,n,i){this.c=e,this.d=t,this.b=n,this.a=i}function _4(e,t,n,i){En.call(this,e,t),this.a=n,this.b=i}function UHe(e,t,n,i){WWe.call(this,e,n,i,!1),this.f=t}function JHe(e,t){this.d=(zt(e),e),this.a=16449,this.c=t}function VHe(e){this.a=new He,this.e=ke(Hn,Fe,54,e,0,2)}function ANt(e){e.Tg("No crossing minimization",1),e.Ug()}function O1(e){var t,n;return n=(t=new Tm,t),fS(n,e),n}function Cee(e){var t,n;return n=(t=new Tm,t),yve(n,e),n}function Mee(e,t,n){var i,r;return i=Sxe(e),r=t.qi(n,i),r}function Aee(e){var t;return t=cRt(e),t||null}function XHe(e){return!e.b&&(e.b=new _e($i,e,12,3)),e.b}function nS(e){if(ou(e.d),e.d.d!=e.c)throw V(new aa)}function WHe(e,t,n,i){this.a=e,this.c=t,this.d=n,this.b=i}function KHe(e,t,n,i){this.a=e,this.b=t,this.d=n,this.c=i}function YHe(e,t,n,i){this.a=e,this.b=t,this.c=n,this.d=i}function ZHe(e,t,n,i){this.a=e,this.b=t,this.c=n,this.d=i}function Wp(e,t,n,i){this.e=e,this.a=t,this.c=n,this.d=i}function eQe(e,t,n,i){ha(),nJe.call(this,t,n,i),this.a=e}function tQe(e,t,n,i){ha(),nJe.call(this,t,n,i),this.a=e}function nQe(e,t){this.a=e,R7t.call(this,e,c(e.d,16).dd(t))}function Nee(e){this.f=e,this.c=this.f.e,e.f>0&&ZZe(this)}function Dq(e){return e.n&&(e.e!==Hot&&e.he(),e.j=null),e}function iQe(e){return XT(e==null||hee(e)&&e.Rm!==we),e}function NNt(e,t,n){return Qe(e.a,(zne(t,n),new _m(t,n))),e}function _Nt(e,t,n){KYt(e.a,n),i$t(n),vJt(e.b,n),wZt(t,n)}function DNt(e,t){return Ci(Al(e)*yu(e),Al(t)*yu(t))}function LNt(e,t){return Ci(Al(e)*yu(e),Al(t)*yu(t))}function PNt(e){Pu();var t;t=c(e.g,9),t.n.a=e.d.c+t.d.b}function xu(e){e.a.a=e.c,e.c.b=e.a,e.a.b=e.c.a=null,e.b=0}function nbe(e,t){return e.b=t.b,e.c=t.c,e.d=t.d,e.a=t.a,e}function ibe(e){return gn(e.b<e.d.gc()),e.d.Xb(e.c=e.b++)}function INt(e){return e.length>0?mf(e):new He}function RNt(e,t){return c($(e,(Ie(),Nk)),16).Ec(t),t}function $Nt(e,t){return jt(e,c($(t,(Ge(),Uv)),15),t)}function BNt(e){return lw(e)&&Ze(Ye(Se(e,(Ge(),_b))))}function D4(e){var t;return t=e.f,t||(e.f=new P6(e,e.c))}function zNt(e,t,n){return xT(),KBt(c(Ut(e.e,t),520),n)}function FNt(e,t,n){e.i=0,e.e=0,t!=n&&KWe(e,t,n)}function qNt(e,t,n){e.i=0,e.e=0,t!=n&&YWe(e,t,n)}function rQe(e,t,n,i){this.b=e,this.c=i,RF.call(this,t,n)}function sQe(e,t){this.g=e,this.d=Y(K(Wd,1),qg,9,0,[t])}function oQe(e,t){e.d&&!e.d.a&&(QLe(e.d,t),oQe(e.d,t))}function cQe(e,t){e.e&&!e.e.a&&(QLe(e.e,t),cQe(e.e,t))}function lQe(e,t){return Ix(e.j,t.s,t.c)+Ix(t.e,e.s,e.c)}function HNt(e){return c(e.jd(),149).Og()+":"+To(e.kd())}function QNt(e,t){return-Ci(Al(e)*yu(e),Al(t)*yu(t))}function GNt(e,t){return Ou(e),Ou(t),WPe(c(e,23),c(t,23))}function Kp(e,t,n){var i,r;i=zZ(n),r=new w6(i),wf(e,t,r)}function UNt(e){Gz(),p.setTimeout(function(){throw e},0)}function uQe(e){this.b=new He,Or(this.b,this.b),this.a=e}function aQe(e){this.b=new ZW,this.a=e,p.Math.random()}function rbe(e,t){new _i,this.a=new tu,this.b=e,this.c=t}function fQe(e,t,n,i){Mge.call(this,t,n),this.b=e,this.a=i}function _ee(e,t,n,i,r,o){pD.call(this,e,t,n,i,r,o?-2:-1)}function hQe(){uie(this,new Q5),this.wb=(O0(),Gt),_6()}function sbe(){sbe=Z,nht=new Tp,rht=new ype,iht=new nm}function Mt(){Mt=Z,$s=new Ee,Vd=new ye,yU=new he}function Qm(){Qm=Z,Hke=new Ce,rce=new Ce,Qke=new We}function Mi(e){return!e.q&&(e.q=new _e(tf,e,11,10)),e.q}function De(e){return!e.s&&(e.s=new _e(Ol,e,21,17)),e.s}function Lq(e){return!e.a&&(e.a=new _e(_n,e,10,11)),e.a}function Pq(e,t){if(e==null)throw V(new l4(t));return e}function dQe(e,t){w9t.call(this,new uee(e)),this.a=e,this.b=t}function obe(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function cbe(e){return e&&e.hashCode?e.hashCode():Rm(e)}function JNt(e){return new eze(e,e.e.Pd().gc()*e.c.Pd().gc())}function VNt(e){return new tze(e,e.e.Pd().gc()*e.c.Pd().gc())}function Dee(e){return ae(e,18)?new G2(c(e,18)):DMt(e.Jc())}function Iq(e){return Mt(),ae(e,59)?new TY(e):new UF(e)}function XNt(e){return Bn(e),pZe(new Ht(Xt(e.a.Jc(),new F)))}function Lee(e,t){return t==null?!!lo(e.f,null):fAt(e.i,t)}function WNt(e,t){var n;return n=Jge(e.a,t),n&&(t.d=null),n}function gQe(e,t,n){return e.f?e.f.cf(t,n):!1}function nD(e,t,n,i){mr(e.c[t.g],n.g,i),mr(e.c[n.g],t.g,i)}function Pee(e,t,n,i){mr(e.c[t.g],t.g,n),mr(e.b[t.g],t.g,i)}function KNt(e,t,n){return de(be(n.a))<=e&&de(be(n.b))>=t}function pQe(){this.d=new _i,this.b=new yn,this.c=new He}function bQe(){this.b=new Tr,this.d=new _i,this.e=new zz}function lbe(){this.c=new fs,this.d=new fs,this.e=new fs}function Gm(){this.a=new tu,this.b=(zu(3,Ev),new Gc(3))}function mQe(e){this.c=e,this.b=new xg(c(Bn(new Mu),50))}function wQe(e){this.c=e,this.b=new xg(c(Bn(new sa),50))}function vQe(e){this.b=e,this.a=new xg(c(Bn(new sm),50))}function Eg(e,t){this.e=e,this.a=Br,this.b=Kit(t),this.c=t}function Rq(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}function yQe(e,t,n,i,r,o){this.a=e,Ete.call(this,t,n,i,r,o)}function xQe(e,t,n,i,r,o){this.a=e,Ete.call(this,t,n,i,r,o)}function j0(e,t,n,i,r,o,a){return new Zee(e.e,t,n,i,r,o,a)}function YNt(e,t,n){return n>=0&&St(e.substr(n,t.length),t)}function kQe(e,t){return ae(t,149)&&St(e.b,c(t,149).Og())}function ZNt(e,t){return e.a?t.Dh().Jc():c(t.Dh(),72).Gi()}function OQe(e,t){var n;return n=e.b.Oc(t),bUe(n,e.b.gc()),n}function iD(e,t){if(e==null)throw V(new l4(t));return e}function wo(e){return e.u||(iu(e),e.u=new Xze(e,e)),e.u}function iS(){iS=Z;var e,t;t=!Nzt(),e=new ge,Zoe=t?new se:e}function hl(e){var t;return t=c(Wt(e,16),29),t||e.fi()}function $q(e,t){var n;return n=zp(e.Pm),t==null?n:n+": "+t}function Fa(e,t,n){return hs(t,n,e.length),e.substr(t,n-t)}function SQe(e,t){KF.call(this),xme(this),this.a=e,this.c=t}function jQe(){pZ.call(this,"FIXED_INTEGER_RATIO_BOXES",2)}function e_t(){return Vq(),Y(K(H6e,1),Pe,425,0,[fle,q6e])}function t_t(){return Kq(),Y(K(iSe,1),Pe,428,0,[xle,yle])}function n_t(){return OD(),Y(K(Qje,1),Pe,426,0,[Zle,eue])}function i_t(){return lH(),Y(K(m6e,1),Pe,427,0,[b6e,Qce])}function r_t(){return jD(),Y(K(T6e,1),Pe,424,0,[tJ,j6e])}function s_t(){return wD(),Y(K(M6e,1),Pe,479,0,[C6e,iJ])}function o_t(){return ph(),Y(K(ubt,1),Pe,512,0,[Rb,Dh])}function c_t(){return Kh(),Y(K(cbt,1),Pe,513,0,[$w,Xg])}function l_t(){return Vf(),Y(K(Sbt,1),Pe,519,0,[ey,ip])}function u_t(){return g7(),Y(K(ebt,1),Pe,522,0,[jC,SC])}function a_t(){return Um(),Y(K(Nbt,1),Pe,457,0,[rp,j3])}function f_t(){return Gq(),Y(K(B9e,1),Pe,430,0,[kue,$9e])}function h_t(){return _H(),Y(K(z9e,1),Pe,490,0,[JJ,C3])}function d_t(){return aH(),Y(K(q9e,1),Pe,431,0,[F9e,Cue])}function g_t(){return dD(),Y(K(B8e,1),Pe,433,0,[Kue,rV])}function p_t(){return tH(),Y(K(N8e,1),Pe,481,0,[Gue,A8e])}function b_t(){return LD(),Y(K(cTe,1),Pe,432,0,[oV,oTe])}function m_t(){return TD(),Y(K(Zwt,1),Pe,498,0,[pae,gae])}function w_t(){return Wq(),Y(K(uTe,1),Pe,389,0,[iae,lTe])}function v_t(){return bH(),Y(K(iOe,1),Pe,429,0,[bce,jU])}function y_t(){return gS(),Y(K(zdt,1),Pe,506,0,[hP,Mce])}function Bq(e,t,n,i){return n>=0?e.Rh(t,n,i):e.zh(null,n,i)}function rD(e){return e.b.b==0?e.a.uf():XZ(e.b)}function x_t(e){if(e.p!=5)throw V(new El);return Gn(e.f)}function k_t(e){if(e.p!=5)throw V(new El);return Gn(e.k)}function ube(e){return xe(e.a)===xe((Ite(),Xae))&&qZt(e),e.a}function O_t(e){e&&$q(e,e.ge())}function TQe(e,t){$de(this,new ze(e.a,e.b)),s_(this,X_(t))}function Um(){Um=Z,rp=new mge(dk,0),j3=new mge(gk,1)}function Kh(){Kh=Z,$w=new dge(gk,0),Xg=new dge(dk,1)}function S_t(e,t){e.c=t,e.c>0&&e.b>0&&(e.g=dq(e.c,e.b,e.a))}function j_t(e,t){e.b=t,e.c>0&&e.b>0&&(e.g=dq(e.c,e.b,e.a))}function EQe(e){var t;t=e.c.d.b,e.b=t,e.a=e.c.d,t.a=e.c.d.b=e}function CQe(e){return e.b==0?null:(gn(e.b!=0),ma(e,e.a.a))}function Mc(e,t){return t==null?No(lo(e.f,null)):TT(e.i,t)}function MQe(e,t,n,i,r){return new fie(e,(uS(),lce),t,n,i,r)}function zq(e,t){return wUe(t),UIt(e,ke(Hn,li,30,t,15,1),t)}function Fq(e,t){return Pq(e,"set1"),Pq(t,"set2"),new hRe(e,t)}function T_t(e,t){var n=Yoe[e.charCodeAt(0)];return n??e}function AQe(e,t){var n,i;return n=t,i=new ni,Rst(e,n,i),i.d}function Iee(e,t,n,i){var r;r=new tFe,t.a[n.g]=r,A4(e.b,i,r)}function E_t(e,t){var n;return n=qIt(e.f,t),Oi(XF(n),e.f.d)}function l7(e){var t;eRt(e.a),MBe(e.a),t=new Nz(e.a),n2e(t)}function C_t(e,t){zit(e,!0),Uc(e.e.Pf(),new G0e(e,!0,t))}function NQe(e){this.a=c(Bn(e),279),this.b=(Mt(),new s0e(e))}function _Qe(e,t,n){this.i=new He,this.b=e,this.g=t,this.a=n}function qq(e,t,n){this.c=new He,this.e=e,this.f=t,this.b=n}function abe(e,t,n){this.a=new He,this.e=e,this.f=t,this.c=n}function Ree(e,t,n){vi(),jm.call(this,e),this.b=t,this.a=n}function fbe(e,t,n){ha(),Lz.call(this,t),this.a=e,this.b=n}function DQe(e){KF.call(this),xme(this),this.a=e,this.c=!0}function Jm(){v9t.call(this,new f4(uv(12))),Kge(!0),this.a=2}function ph(){ph=Z,Rb=new gge(qre,0),Dh=new gge("UP",1)}function Y2(e){return e.Db>>16!=3?null:c(e.Cb,19)}function bh(e){return e.Db>>16!=9?null:c(e.Cb,19)}function LQe(e){return e.Db>>16!=6?null:c(e.Cb,74)}function M_t(e){if(e.ye())return null;var t=e.n;return gU[t]}function A_t(e){function t(){}return t.prototype=e||{},new t}function PQe(e){var t;return t=new Vz(uv(e.length)),gwe(t,e),t}function sD(e,t){var n;n=e.q.getHours(),e.q.setDate(t),rE(e,n)}function hbe(e,t,n){var i;i=e.Fh(t),i>=0?e.$h(i,n):pye(e,t,n)}function Tx(e,t,n){Hq(),e&&ci(Uae,e,t),e&&ci(pI,e,n)}function N_t(e,t){return A1(),c($(t,(Jo(),md)),15).a==e}function __t(e,t){return nq(),Bt(),c(t.b,15).a<e}function D_t(e,t){return nq(),Bt(),c(t.a,15).a<e}function L_t(e,t){return EWe(e,t)?(TXe(e),!0):!1}function S1(e,t){if(t==null)throw V(new i4);return Dzt(e,t)}function IQe(e,t){return e.b+=t.b,e.c+=t.c,e.d+=t.d,e.a+=t.a,e}function RQe(e,t){var n;for(Bn(t),n=e.a;n;n=n.c)t.Wd(n.g,n.i)}function $Qe(e,t){var n;return n=e.Fh(t),n>=0?e.Th(n):mie(e,t)}function $ee(e,t,n){var i;i=JWe(e,t,n),e.b=new PH(i.c.length)}function BQe(e){this.a=e,this.b=ke(Kpt,Fe,2022,e.e.length,0,2)}function zQe(){this.a=new Ad,this.e=new Tr,this.g=0,this.i=0}function FQe(e,t){FF(this),this.f=t,this.g=e,Dq(this),this.he()}function Bee(e,t){return p.Math.abs(e)<p.Math.abs(t)?e:t}function ks(e){return Math.max(Math.min(e,gi),-2147483648)|0}function P_t(e){return!e.a&&(e.a=new _e(_n,e,10,11)),e.a.i>0}function dbe(e){var t;return t=e.d,t=e._i(e.f),Ln(e,t),t.Ob()}function qQe(e,t){var n;return n=new vpe(t),Aet(n,e),new ql(n)}function I_t(e){if(e.p!=0)throw V(new El);return $T(e.f,0)}function R_t(e){if(e.p!=0)throw V(new El);return $T(e.k,0)}function HQe(e){return e.Db>>16!=7?null:c(e.Cb,244)}function rS(e){return e.Db>>16!=6?null:c(e.Cb,244)}function gbe(e){return e.Db>>16!=7?null:c(e.Cb,176)}function Wi(e){return e.Db>>16!=11?null:c(e.Cb,19)}function Z2(e){return e.Db>>16!=17?null:c(e.Cb,29)}function QQe(e){return e.Db>>16!=3?null:c(e.Cb,159)}function pbe(e){var t;return P0(e),t=new Tr,mi(e,new qNe(t))}function GQe(e,t){var n=e.a=e.a||[];return n[t]||(n[t]=e.te(t))}function $_t(e,t){var n;n=e.q.getHours(),e.q.setMonth(t),rE(e,n)}function Os(e,t){e.c&&dl(e.c.g,e),e.c=t,e.c&&Qe(e.c.g,e)}function ss(e,t){e.d&&dl(e.d.e,e),e.d=t,e.d&&Qe(e.d.e,e)}function zr(e,t){e.c&&dl(e.c.a,e),e.c=t,e.c&&Qe(e.c.a,e)}function Do(e,t){e.i&&dl(e.i.j,e),e.i=t,e.i&&Qe(e.i.j,e)}function uo(e,t,n){return t==null?bl(e.f,null,n):nw(e.i,t,n)}function u7(e,t,n,i,r,o){return new C1(e.e,t,e.Jj(),n,i,r,o)}function B_t(e){return nne(),Bt(),c(e.a,84).d.e!=0}function UQe(){UQe=Z,Oft=Mn((qz(),Y(K(kft,1),Pe,541,0,[Xoe])))}function JQe(){JQe=Z,_pt=Hc(new xr,(ts(),Ws),(cs(),Tk))}function VQe(){VQe=Z,Dpt=Hc(new xr,(ts(),Ws),(cs(),Tk))}function XQe(){XQe=Z,Lpt=Hc(new xr,(ts(),Ws),(cs(),Tk))}function bbe(){bbe=Z,Ppt=Hc(new xr,(ts(),Ws),(cs(),Tk))}function WQe(){WQe=Z,Rpt=Hc(new xr,(ts(),Ws),(cs(),Tk))}function mbe(){mbe=Z,$pt=Hc(new xr,(ts(),Ws),(cs(),Tk))}function KQe(){KQe=Z,nbt=Wn(new xr,(ts(),Ws),(cs(),KE))}function Ru(){Ru=Z,sbt=Wn(new xr,(ts(),Ws),(cs(),KE))}function YQe(){YQe=Z,obt=Wn(new xr,(ts(),Ws),(cs(),KE))}function zee(){zee=Z,fbt=Wn(new xr,(ts(),Ws),(cs(),KE))}function ZQe(){ZQe=Z,omt=Hc(new xr,(W4(),EC),(nE(),c9e))}function Hq(){Hq=Z,Uae=new yn,pI=new yn,Q8t(qft,new P8)}function eGe(e,t,n){this.a=t,this.c=e,this.b=(Bn(n),new ql(n))}function tGe(e,t,n){this.a=t,this.c=e,this.b=(Bn(n),new ql(n))}function nGe(e,t){this.a=e,this.c=As(this.a),this.b=new Rq(t)}function Yp(e,t,n,i){this.c=e,this.d=i,qee(this,t),Hee(this,n)}function L4(e){this.c=new _i,this.b=e.b,this.d=e.c,this.a=e.a}function Fee(e){this.a=p.Math.cos(e),this.b=p.Math.sin(e)}function qee(e,t){e.a&&dl(e.a.k,e),e.a=t,e.a&&Qe(e.a.k,e)}function Hee(e,t){e.b&&dl(e.b.f,e),e.b=t,e.b&&Qe(e.b.f,e)}function iGe(e,t){eNt(e,e.b,e.c),c(e.b.b,68),t&&c(t.b,68).b}function z_t(e,t){Uwe(e,t),ae(e.Cb,89)&&vv(iu(c(e.Cb,89)),2)}function Qee(e,t){ae(e.Cb,89)&&vv(iu(c(e.Cb,89)),4),Jc(e,t)}function Qq(e,t){ae(e.Cb,187)&&(c(e.Cb,187).tb=null),Jc(e,t)}function rGe(e,t){var n;return n=c(fv(D4(e.a),t),18),n?n.gc():0}function F_t(e,t){var n,i;n=t.c,i=n!=null,i&&N4(e,new W2(t.c))}function sGe(e){var t,n;return n=(_6(),t=new Tm,t),fS(n,e),n}function oGe(e){var t,n;return n=(_6(),t=new Tm,t),fS(n,e),n}function cGe(e){for(var t;;)if(t=e.Pb(),!e.Ob())return t}function Ac(e,t){return Hs(),yte(t)?new uq(t,e):new L_(t,e)}function q_t(e,t){return Ci(c(e.c,65).c.e.b,c(t.c,65).c.e.b)}function H_t(e,t){return Ci(c(e.c,65).c.e.a,c(t.c,65).c.e.a)}function lGe(e,t,n){return new fie(e,(uS(),uce),t,n,null,!1)}function uGe(e,t,n){return new fie(e,(uS(),cce),null,!1,t,n)}function oD(e){return rd(),_c(e,0)>=0?I0(e):n7(I0(Ag(e)))}function Q_t(){return ya(),Y(K(vl,1),Pe,132,0,[Wke,wl,Kke])}function G_t(){return Wf(),Y(K(Lv,1),Pe,240,0,[Wo,Kc,Ko])}function U_t(){return Ql(),Y(K(lht,1),Pe,464,0,[gd,W0,Tf])}function J_t(){return gl(),Y(K(aht,1),Pe,465,0,[nh,K0,Ef])}function V_t(e,t){XBe(e,Gn(Zr(Bm(t,24),hG)),Gn(Zr(t,hG)))}function ev(e,t){if(e<0||e>t)throw V(new qc(Uxe+e+Jxe+t))}function ht(e,t){if(e<0||e>=t)throw V(new qc(Uxe+e+Jxe+t))}function en(e,t){if(e<0||e>=t)throw V(new E1e(Uxe+e+Jxe+t))}function Et(e,t){this.b=(zt(e),e),this.a=(t&Cv)==0?t|64|od:t}function Yh(e,t,n){zKe(t,n,e.gc()),this.c=e,this.a=t,this.b=n-t}function aGe(e,t,n){var i;zKe(t,n,e.c.length),i=n-t,B1e(e.c,t,i)}function X_t(e,t,n){var i;i=new Ms(n.d),Oi(i,e),dne(t,i.a,i.b)}function wbe(e){var t;return P0(e),t=(Qm(),Qm(),rce),wH(e,t)}function Ex(e){return xT(),ae(e.g,9)?c(e.g,9):null}function mh(e){return Po(Y(K(Wr,1),Fe,8,0,[e.i.n,e.n,e.a]))}function W_t(){return b7(),Y(K(wOe,1),Pe,385,0,[yce,vce,xce])}function K_t(){return N0(),Y(K(ale,1),Pe,330,0,[wP,F6e,Fv])}function Y_t(){return M1(),Y(K(T1t,1),Pe,316,0,[vP,p3,Ek])}function Z_t(){return wS(),Y(K(ule,1),Pe,303,0,[cle,lle,mP])}function eDt(){return SH(),Y(K(k6e,1),Pe,351,0,[x6e,eJ,Gce])}function tDt(){return lb(),Y(K(m1t,1),Pe,452,0,[Zce,Hj,d3])}function nDt(){return Gs(),Y(K(jpt,1),Pe,455,0,[xC,Vl,Yc])}function iDt(){return BH(),Y(K(Jje,1),Pe,382,0,[Gje,tue,Uje])}function rDt(){return C7(),Y(K(Vje,1),Pe,349,0,[iue,nue,_P])}function sDt(){return SS(),Y(K(Wje,1),Pe,350,0,[rue,Xje,kC])}function oDt(){return M7(),Y(K(Lje,1),Pe,353,0,[Ule,Dje,_J])}function cDt(){return OH(),Y(K(Zje,1),Pe,352,0,[Yje,sue,Kje])}function lDt(){return zH(),Y(K(e9e,1),Pe,383,0,[oue,t9,Zv])}function uDt(){return T7(),Y(K(m9e,1),Pe,386,0,[b9e,uue,PP])}function aDt(){return BD(),Y(K(G9e,1),Pe,387,0,[VJ,H9e,Q9e])}function fDt(){return eQ(),Y(K(d8e,1),Pe,388,0,[h8e,Fue,f8e])}function hDt(){return ew(),Y(K(Pce,1),Pe,369,0,[Aw,Y0,Mw])}function dDt(){return VH(),Y(K(R8e,1),Pe,435,0,[P8e,I8e,Jue])}function gDt(){return fH(),Y(K(L8e,1),Pe,434,0,[Uue,D8e,_8e])}function pDt(){return HD(),Y(K(Vue,1),Pe,440,0,[tV,nV,iV])}function bDt(){return sQ(),Y(K(a8e,1),Pe,441,0,[_C,KJ,Lue])}function mDt(){return RH(),Y(K(u8e,1),Pe,304,0,[Due,l8e,c8e])}function wDt(){return w7(),Y(K(M7e,1),Pe,301,0,[iI,Rae,C7e])}function vDt(){return yh(),Y(K(f7e,1),Pe,281,0,[h9,uy,d9])}function yDt(){return U4(),Y(K(_7e,1),Pe,283,0,[N7e,fy,kV])}function xDt(){return D1(),Y(K(O7e,1),Pe,348,0,[bV,Yg,XC])}function $u(e){vi(),jm.call(this,e),this.c=!1,this.a=!1}function fGe(e,t,n){jm.call(this,25),this.b=e,this.a=t,this.c=n}function vbe(e,t){m9t.call(this,new f4(uv(e))),zu(t,Rot),this.a=t}function kDt(e,t){var n;return n=(zt(e),e).g,f0e(!!n),zt(t),n(t)}function hGe(e,t){var n,i;return i=X6(e,t),n=e.a.dd(i),new aRe(e,n)}function ODt(e,t,n){var i;return i=cE(e,t,!1),i.b<=t&&i.a<=n}function dGe(e,t,n){var i;i=new LA,i.b=t,i.a=n,++t.b,Qe(e.d,i)}function Gq(){Gq=Z,kue=new wge("DFS",0),$9e=new wge("BFS",1)}function SDt(e){if(e.p!=2)throw V(new El);return Gn(e.f)&Dr}function jDt(e){if(e.p!=2)throw V(new El);return Gn(e.k)&Dr}function TDt(e){return e.Db>>16!=6?null:c(yie(e),244)}function G(e){return gn(e.a<e.c.c.length),e.b=e.a++,e.c.c[e.b]}function EDt(e){return e.a==(oS(),_V)&&fe(e,dWt(e.g,e.b)),e.a}function P4(e){return e.d==(oS(),_V)&&pt(e,fYt(e.g,e.b)),e.d}function Gee(e){hq(),this.a=(Mt(),ae(e,59)?new TY(e):new UF(e))}function Zp(e){return Bn(e),ae(e,18)?new ql(c(e,18)):U6(e.Jc())}function ybe(e,t){return _qe(e.a,t)?ppe(e.b,c(t,23).g,null):null}function Zr(e,t){return A0(xAt(So(e)?qa(e):e,So(t)?qa(t):t))}function Zh(e,t){return A0(kAt(So(e)?qa(e):e,So(t)?qa(t):t))}function Uee(e,t){return A0(OAt(So(e)?qa(e):e,So(t)?qa(t):t))}function CDt(e){return Ns(Ld(tc(cu(e,32)),32),tc(cu(e,32)))}function MDt(e){var t;return t=c(oq(e.b),10),new da(e.a,t,e.c)}function ADt(e,t){var n;n=de(be(e.a.mf((In(),hV)))),cot(e,t,n)}function NDt(e,t){return m7(),e.c==t.c?Ci(t.d,e.d):Ci(e.c,t.c)}function _Dt(e,t){return m7(),e.c==t.c?Ci(e.d,t.d):Ci(e.c,t.c)}function DDt(e,t){return m7(),e.c==t.c?Ci(e.d,t.d):Ci(t.c,e.c)}function LDt(e,t){return m7(),e.c==t.c?Ci(t.d,e.d):Ci(t.c,e.c)}function PDt(e,t){e.b=e.b|t.b,e.c=e.c|t.c,e.d=e.d|t.d,e.a=e.a|t.a}function Jee(e,t,n){var i;i=e.d[t.p],e.d[t.p]=e.d[n.p],e.d[n.p]=i}function gGe(e,t){var n,i;return n=bte(t),i=n,c(Ut(e.c,i),15).a}function IDt(e,t){var n,i;return n=jZe(e),i=jZe(t),n<i?-1:n>i?1:0}function RDt(e,t){var n;n=c(Ut(e.g,t),60),Uc(t.d,new KRe(e,n))}function pGe(e,t){var n;for(n=e+"";n.length<t;)n="0"+n;return n}function eb(e){return e.c==null||e.c.length==0?"n_"+e.g:"n_"+e.c}function xbe(e){return e.b==null||e.b.length==0?"n_"+e.a:"n_"+e.b}function cD(e){return c(xh(e,ke(Wd,qg,9,e.c.length,0,1)),201)}function kbe(e,t){return e&&e.equals?e.equals(t):xe(e)===xe(t)}function Obe(e,t){return t==0?!!e.o&&e.o.f!=0:Ane(e,t)}function $Dt(e){return!!e.u&&pc(e.u.a).i!=0&&!(e.n&&Ine(e.n))}function BDt(e,t,n){var i;e.n&&t&&n&&(i=new Tl,Qe(e.e,i))}function Vee(e,t){if(Er(e.a,t),t.d)throw V(new Ao(cct));t.d=e}function Sbe(e,t){this.a=new He,this.d=new He,this.f=e,this.c=t}function bGe(){this.c=new $Be,this.a=new oJe,this.b=new uPe,TRe()}function mGe(){G4(),this.b=new yn,this.a=new yn,this.c=new He}function wGe(e,t,n){this.d=e,this.j=t,this.e=n,this.o=-1,this.p=3}function vGe(e,t,n){this.d=e,this.k=t,this.f=n,this.o=-1,this.p=5}function yGe(e,t,n,i,r,o){Sme.call(this,e,t,n,i,r),o&&(this.o=-2)}function xGe(e,t,n,i,r,o){jme.call(this,e,t,n,i,r),o&&(this.o=-2)}function kGe(e,t,n,i,r,o){Hbe.call(this,e,t,n,i,r),o&&(this.o=-2)}function OGe(e,t,n,i,r,o){Cme.call(this,e,t,n,i,r),o&&(this.o=-2)}function SGe(e,t,n,i,r,o){Qbe.call(this,e,t,n,i,r),o&&(this.o=-2)}function jGe(e,t,n,i,r,o){Tme.call(this,e,t,n,i,r),o&&(this.o=-2)}function TGe(e,t,n,i,r,o){Eme.call(this,e,t,n,i,r),o&&(this.o=-2)}function EGe(e,t,n,i,r,o){Gbe.call(this,e,t,n,i,r),o&&(this.o=-2)}function CGe(e,t,n,i){Lz.call(this,n),this.b=e,this.c=t,this.d=i}function MGe(e,t){this.f=e,this.a=(oS(),NV),this.c=NV,this.b=t}function AGe(e,t){this.g=e,this.d=(oS(),_V),this.a=_V,this.b=t}function jbe(e,t){!e.c&&(e.c=new gr(e,0)),tG(e.c,(Ai(),cM),t)}function zDt(e,t){return HJt(e,t,ae(t,104)&&(c(t,20).Bb&Rs)!=0)}function FDt(e,t){return oHe(tc(e.q.getTime()),tc(t.q.getTime()))}function NGe(e){return YZ(e.e.Pd().gc()*e.c.Pd().gc(),16,new wz(e))}function qDt(e){return!!e.a&&su(e.a.a).i!=0&&!(e.b&&Rne(e.b))}function a7(e){for(;e.d>0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function _Ge(e){return e.a?e.e.length==0?e.a.a:e.a.a+(""+e.e):e.c}function DGe(e){return gn(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function LGe(e,t){var n;return n=1-t,e.a[n]=NH(e.a[n],n),NH(e,t)}function PGe(e,t){var n,i;return i=Zr(e,Js),n=Ld(t,32),Zh(n,i)}function HDt(e,t,n){var i;return i=c(e.Zb().xc(t),18),!!i&&i.Gc(n)}function IGe(e,t,n){var i;return i=c(e.Zb().xc(t),18),!!i&&i.Kc(n)}function RGe(e,t,n){var i;i=(Bn(e),new ql(e)),Eqt(new eGe(i,t,n))}function lD(e,t,n){var i;i=(Bn(e),new ql(e)),Cqt(new tGe(i,t,n))}function $Ge(){$Ge=Z,n9e=LHe($e(1),$e(4)),t9e=LHe($e(1),$e(2))}function BGe(e){Pte.call(this,e,(uS(),oce),null,!1,null,!1)}function zGe(e,t){Vp.call(this,1,2,Y(K(Hn,1),li,30,15,[e,t]))}function os(e,t){this.a=e,oT.call(this,e),ev(t,e.gc()),this.b=t}function FGe(e,t){var n;e.e=new v1e,n=xv(t),Rr(n,e.c),Cit(e,n,0)}function QDt(e,t,n){e.a=t,e.c=n,e.b.a.$b(),xu(e.d),_2(e.e.a.c,0)}function er(e,t,n,i){var r;r=new Du,r.a=t,r.b=n,r.c=i,ei(e.a,r)}function Be(e,t,n,i){var r;r=new Du,r.a=t,r.b=n,r.c=i,ei(e.b,r)}function qGe(e,t,n,i){return e.a+=""+Fa(t==null?ml:To(t),n,i),e}function Go(e,t,n,i,r,o){return sWe(e,t,n,o),$we(e,i),Bwe(e,r),e}function Tbe(){var e,t,n;return t=(n=(e=new Tm,e),n),Qe(pEe,t),t}function uD(e,t){if(e<0||e>=t)throw V(new qc(gUt(e,t)));return e}function HGe(e,t,n){if(e<0||t<e||t>n)throw V(new qc(PGt(e,t,n)))}function GDt(e){if(!("stack"in e))try{throw e}catch{}return e}function UDt(e){return jx(e).dc()?!1:(TTt(e,new te),!0)}function tb(e){var t;return So(e)?(t=e,t==-0?0:t):aIt(e)}function QGe(e,t){return ae(t,45)?qne(e.a,c(t,45)):!1}function GGe(e,t){return ae(t,45)?qne(e.a,c(t,45)):!1}function UGe(e,t){return ae(t,45)?qne(e.a,c(t,45)):!1}function JDt(e,t){return F4(),c($(t,(Jo(),T3)),15).a>=e.gc()}function VDt(e){return Ru(),!ys(e)&&!(!ys(e)&&e.c.i.c==e.d.i.c)}function ed(e){return c(xh(e,ke(Ij,bj,17,e.c.length,0,1)),324)}function Uq(e){return new Gc((zu(e,are),mH(Ns(Ns(5,e),e/10|0))))}function XDt(e,t){return new JZ(t,Nze(As(t.e),e,e),(Bt(),!0))}function WDt(e){return YZ(e.e.Pd().gc()*e.c.Pd().gc(),273,new QK(e))}function JGe(e){return c(xh(e,ke(Rdt,Pct,12,e.c.length,0,1)),2021)}function VGe(e){this.a=ke(Br,Pt,1,hwe(p.Math.max(8,e))<<1,5,1)}function Ebe(e){var t;return S0(e),t=new gt,ax(e.a,new BNe(t)),t}function Jq(e){var t;return S0(e),t=new Ot,ax(e.a,new zNe(t)),t}function KDt(e,t){return e.a<=e.b?(t.Bd(e.a++),!0):!1}function YDt(e,t,n){e.d&&dl(e.d.e,e),e.d=t,e.d&&Qp(e.d.e,n,e)}function Cbe(e,t,n){this.d=new Z_e(this),this.e=e,this.i=t,this.f=n}function Vq(){Vq=Z,fle=new age(cj,0),q6e=new age("TOP_LEFT",1)}function XGe(){XGe=Z,pwt=Mn((nF(),Y(K($8e,1),Pe,480,0,[Xue])))}function WGe(){WGe=Z,mwt=Mn((iF(),Y(K(bwt,1),Pe,550,0,[Wue])))}function KGe(){KGe=Z,Pwt=Mn((kT(),Y(K(sTe,1),Pe,531,0,[HP])))}function YGe(){YGe=Z,Vwt=Mn((rF(),Y(K(Jwt,1),Pe,557,0,[fae])))}function ZGe(){ZGe=Z,Wwt=Mn((sF(),Y(K(Xwt,1),Pe,558,0,[hae])))}function eUe(){eUe=Z,Ywt=Mn((oF(),Y(K(Kwt,1),Pe,559,0,[dae])))}function ZDt(e){iYe((!e.a&&(e.a=new _e(_n,e,10,11)),e.a),new YA)}function f7(e,t){snn(t,e),spe(e.d),spe(c($(e,(Ge(),jJ)),216))}function Xee(e,t){onn(t,e),rpe(e.d),rpe(c($(e,(Ge(),jJ)),216))}function Vm(e,t){var n,i;return n=S1(e,t),i=null,n&&(i=n.ne()),i}function h7(e,t){var n,i;return n=S1(e,t),i=null,n&&(i=n.qe()),i}function sS(e,t){var n,i;return n=rv(e,t),i=null,n&&(i=n.qe()),i}function j1(e,t){var n,i;return n=S1(e,t),i=null,n&&(i=Eve(n)),i}function eLt(e,t,n){var i;return i=DS(n),XQ(e.n,i,t),XQ(e.o,t,n),t}function tLt(e,t,n){var i;i=Kzt();try{return V7t(e,t,n)}finally{tPt(i)}}function tUe(e,t,n,i){return ae(n,59)?new vze(e,t,n,i):new Epe(e,t,n,i)}function Mbe(e,t,n,i){this.d=e,this.n=t,this.g=n,this.o=i,this.p=-1}function nUe(e,t,n,i){this.e=null,this.c=e,this.d=t,this.a=n,this.b=i}function iUe(e){var t;t=e.Dh(),this.a=ae(t,72)?c(t,72).Gi():t.Jc()}function nLt(e){return new Et(zIt(c(e.a.kd(),18).gc(),e.a.jd()),16)}function tv(e){return ae(e,18)?c(e,18).dc():!e.Jc().Ob()}function rUe(e){if(e.e.g!=e.b)throw V(new aa);return!!e.c&&e.d>0}function Dn(e){return gn(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function Abe(e,t){zt(t),mr(e.a,e.c,t),e.c=e.c+1&e.a.length-1,_Ze(e)}function T0(e,t){zt(t),e.b=e.b-1&e.a.length-1,mr(e.a,e.b,t),_Ze(e)}function Nbe(e,t){var n;return n=c(vh(e.b,t),66),!n&&(n=new _i),n}function iLt(e,t){var n;n=t.a,Os(n,t.c.d),ss(n,t.d.d),cv(n.a,e.n)}function sUe(e,t){return c(mu(J2(c(Ei(e.k,t),16).Mc(),a3)),114)}function oUe(e,t){return c(mu(C4(c(Ei(e.k,t),16).Mc(),a3)),114)}function rLt(){return vS(),Y(K(jdt,1),Pe,413,0,[Cw,Iv,Pv,l3])}function sLt(){return tw(),Y(K(Pht,1),Pe,414,0,[lP,cP,gce,pce])}function oLt(){return uS(),Y(K(xU,1),Pe,310,0,[oce,cce,lce,uce])}function cLt(){return X4(),Y(K(kOe,1),Pe,384,0,[XE,xOe,Tce,Ece])}function lLt(){return qH(),Y(K(Qdt,1),Pe,368,0,[Dce,VU,XU,dP])}function uLt(){return xf(),Y(K(t1t,1),Pe,418,0,[Bv,$j,Bj,Lce])}function aLt(){return ab(),Y(K(Xpt,1),Pe,409,0,[DP,OC,RJ,IJ])}function fLt(){return pv(),Y(K(Vle,1),Pe,205,0,[DJ,Jle,S3,O3])}function hLt(){return P1(),Y(K(Hje,1),Pe,270,0,[np,qje,Kle,Yle])}function dLt(){return I7(),Y(K(y6e,1),Pe,302,0,[ZE,w6e,pP,v6e])}function gLt(){return E7(),Y(K(R9e,1),Pe,354,0,[xue,UJ,yue,vue])}function pLt(){return wQ(),Y(K(o8e,1),Pe,355,0,[_ue,r8e,s8e,i8e])}function bLt(){return MQ(),Y(K(Rmt,1),Pe,406,0,[$ue,Pue,Rue,Iue])}function mLt(){return W4(),Y(K(s9e,1),Pe,402,0,[FJ,TC,EC,CC])}function wLt(){return kQ(),Y(K(aTe,1),Pe,396,0,[sae,oae,cae,lae])}function vLt(){return jS(),Y(K(a7e,1),Pe,280,0,[KP,pV,l7e,u7e])}function yLt(){return L1(),Y(K(Pae,1),Pe,225,0,[Lae,YP,g9,Jk])}function xLt(){return qu(),Y(K(V2t,1),Pe,293,0,[eI,Yd,cp,ZP])}function kLt(){return Tu(),Y(K(eM,1),Pe,381,0,[sI,qb,rI,ay])}function OLt(){return Yq(),Y(K(lI,1),Pe,290,0,[D7e,P7e,Bae,L7e])}function SLt(){return tQ(),Y(K(B7e,1),Pe,327,0,[zae,I7e,$7e,R7e])}function jLt(){return HH(),Y(K(hvt,1),Pe,412,0,[Fae,F7e,z7e,q7e])}function TLt(e){var t;return e.j==(Ue(),mn)&&(t=pnt(e),Ml(t,nn))}function cUe(e,t){var n;for(n=e.j.c.length;n<t;n++)Qe(e.j,e.Mg())}function lUe(e,t,n,i){var r;return r=i[t.g][n.g],de(be($(e.a,r)))}function ELt(e,t,n){var i;return i=DS(n),XQ(e.f,i,t),ci(e.g,t,n),t}function CLt(e,t,n){var i;return i=DS(n),XQ(e.p,i,t),ci(e.q,t,n),t}function uUe(e){var t,n;return t=(b0(),n=new L8,n),e&&FQ(t,e),t}function _be(e){var t;return t=e.$i(e.i),e.i>0&&wc(e.g,0,t,0,e.i),t}function I4(e){return xT(),ae(e.g,157)?c(e.g,157):null}function MLt(e){return Hq(),Cc(Uae,e)?c(Ut(Uae,e),343).Pg():null}function ga(e,t,n){return t<0?mie(e,n):c(n,69).uk().zk(e,e.ei(),t)}function ALt(e,t){return v4(new ze(t.e.a+t.f.a/2,t.e.b+t.f.b/2),e)}function aUe(e,t){return xe(t)===xe(e)?"(this Map)":t==null?ml:To(t)}function fUe(e,t){cF();var n;return n=c(Ut(EV,e),58),!n||n.dk(t)}function NLt(e){if(e.p!=1)throw V(new El);return Gn(e.f)<<24>>24}function _Lt(e){if(e.p!=1)throw V(new El);return Gn(e.k)<<24>>24}function DLt(e){if(e.p!=7)throw V(new El);return Gn(e.k)<<16>>16}function LLt(e){if(e.p!=7)throw V(new El);return Gn(e.f)<<16>>16}function Cx(e,t){return t.e==0||e.e==0?QE:(US(),Oie(e,t))}function PLt(e,t,n){if(n){var i=n.me();e.a[t]=i(n)}else delete e.a[t]}function hUe(e,t){var n;return n=new a4,e.Ed(n),n.a+="..",t.Fd(n),n.a}function Jf(e){var t;for(t=0;e.Ob();)e.Pb(),t=Ns(t,1);return mH(t)}function ILt(e,t,n){var i;i=c(Ut(e.g,n),60),Qe(e.a.c,new Is(t,i))}function RLt(e,t,n,i,r){var o;o=rVt(r,n,i),Qe(t,oUt(r,o)),ZQt(e,r,t)}function dUe(e,t,n){e.i=0,e.e=0,t!=n&&(YWe(e,t,n),KWe(e,t,n))}function $Lt(e){e.a=null,e.e=null,_2(e.b.c,0),_2(e.f.c,0),e.c=null}function BLt(e,t){return c(t==null?No(lo(e.f,null)):TT(e.i,t),291)}function zLt(e,t,n){return lee(be(No(lo(e.f,t))),be(No(lo(e.f,n))))}function Xq(e,t,n){return KQ(e,t,n,ae(t,104)&&(c(t,20).Bb&Rs)!=0)}function FLt(e,t,n){return XS(e,t,n,ae(t,104)&&(c(t,20).Bb&Rs)!=0)}function qLt(e,t,n){return XJt(e,t,n,ae(t,104)&&(c(t,20).Bb&Rs)!=0)}function Dbe(e,t){return e==(Jt(),ur)&&t==ur?4:e==ur||t==ur?8:32}function gUe(e,t){lbe.call(this),this.a=e,this.b=t,Qe(this.a.b,this)}function nv(e,t){vi(),jm.call(this,e),this.a=t,this.c=-1,this.b=-1}function Lbe(e,t,n,i,r){this.i=e,this.a=t,this.e=n,this.j=i,this.f=r}function T1(e,t){rd(),Vp.call(this,e,1,Y(K(Hn,1),li,30,15,[t]))}function Rd(e,t){Hs();var n;return n=c(e,69).tk(),hGt(n,t),n.vl(t)}function pUe(e,t){var n;for(n=t;n;)F2(e,n.i,n.j),n=Wi(n);return e}function bUe(e,t){var n;for(n=0;n<t;++n)mr(e,n,new Bde(c(e[n],45)))}function Pbe(e,t){var n;n=e.q.getHours(),e.q.setFullYear(t+H0),rE(e,n)}function mUe(e,t){xS();var n;return n=e.j.g-t.j.g,n!=0?n:0}function d7(e){return gn(e.a<e.c.a.length),e.b=e.a,BVe(e),e.c.b[e.b]}function pc(e){return e.n||(iu(e),e.n=new Pqe(e,Ys,e),wo(e)),e.n}function wUe(e){if(e<0)throw V(new tIe("Negative array size: "+e))}function Wee(e,t,n){if(n){var i=n.me();n=i(n)}else n=void 0;e.a[t]=n}function HLt(e,t){var n;return n=t!=null?Mc(e,t):No(lo(e.f,t)),IF(n)}function QLt(e,t){var n;return n=t!=null?Mc(e,t):No(lo(e.f,t)),IF(n)}function Kee(e){return e.c&&e.d?xbe(e.c)+"->"+xbe(e.d):"e_"+Rm(e)}function vUe(e){ae(e,209)&&!Ze(Ye(e.mf((In(),fV))))&&cYt(c(e,19))}function Ibe(e){e.b!=e.c&&(e.a=ke(Br,Pt,1,8,5,1),e.b=0,e.c=0)}function nb(e,t,n){this.e=e,this.a=Br,this.b=Kit(t),this.c=t,this.d=n}function iv(e,t,n,i){wGe.call(this,1,n,i),this.c=e,this.b=t}function Yee(e,t,n,i){vGe.call(this,1,n,i),this.c=e,this.b=t}function Zee(e,t,n,i,r,o,a){Ete.call(this,t,i,r,o,a),this.c=e,this.a=n}function ete(e){this.e=e,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function yUe(e){this.c=e,this.a=c(Qa(e),160),this.b=this.a.hk().ti()}function GLt(e,t){return kg(),Ln(De(e.a),t)}function ULt(e,t){return kg(),Ln(De(e.a),t)}function Wq(){Wq=Z,iae=new Sge("STRAIGHT",0),lTe=new Sge("BEND",1)}function g7(){g7=Z,jC=new pge("UPPER",0),SC=new pge("LOWER",1)}function Kq(){Kq=Z,xle=new fge(Zf,0),yle=new fge("ALTERNATING",1)}function Yq(){Yq=Z,D7e=new gqe,P7e=new Yqe,Bae=new jQe,L7e=new Zqe}function Zq(e){var t;return e?new vpe(e):(t=new Ad,Lte(t,e),t)}function JLt(e,t){var n;for(n=e.d-1;n>=0&&e.a[n]===t[n];n--);return n<0}function VLt(e,t){var n;return wUe(t),n=e.slice(0,t),n.length=t,pte(n,e)}function Hl(e,t){var n;return t.b.Kb(xVe(e,t.c.Ve(),(n=new QNe(t),n)))}function eH(e){fve(),XBe(this,Gn(Zr(Bm(e,24),hG)),Gn(Zr(e,hG)))}function xUe(){xUe=Z,Ght=Mn((bH(),Y(K(iOe,1),Pe,429,0,[bce,jU])))}function kUe(){kUe=Z,Fdt=Mn((gS(),Y(K(zdt,1),Pe,506,0,[hP,Mce])))}function OUe(){OUe=Z,b1t=Mn((jD(),Y(K(T6e,1),Pe,424,0,[tJ,j6e])))}function SUe(){SUe=Z,h1t=Mn((lH(),Y(K(m6e,1),Pe,427,0,[b6e,Qce])))}function jUe(){jUe=Z,y1t=Mn((wD(),Y(K(M6e,1),Pe,479,0,[C6e,iJ])))}function TUe(){TUe=Z,C1t=Mn((Vq(),Y(K(H6e,1),Pe,425,0,[fle,q6e])))}function EUe(){EUe=Z,N1t=Mn((Kq(),Y(K(iSe,1),Pe,428,0,[xle,yle])))}function CUe(){CUe=Z,Spt=Mn((OD(),Y(K(Qje,1),Pe,426,0,[Zle,eue])))}function MUe(){MUe=Z,tbt=Mn((g7(),Y(K(ebt,1),Pe,522,0,[jC,SC])))}function AUe(){AUe=Z,lbt=Mn((Kh(),Y(K(cbt,1),Pe,513,0,[$w,Xg])))}function NUe(){NUe=Z,abt=Mn((ph(),Y(K(ubt,1),Pe,512,0,[Rb,Dh])))}function _Ue(){_Ue=Z,jbt=Mn((Vf(),Y(K(Sbt,1),Pe,519,0,[ey,ip])))}function DUe(){DUe=Z,_bt=Mn((Um(),Y(K(Nbt,1),Pe,457,0,[rp,j3])))}function LUe(){LUe=Z,smt=Mn((Gq(),Y(K(B9e,1),Pe,430,0,[kue,$9e])))}function PUe(){PUe=Z,amt=Mn((_H(),Y(K(z9e,1),Pe,490,0,[JJ,C3])))}function IUe(){IUe=Z,dmt=Mn((aH(),Y(K(q9e,1),Pe,431,0,[F9e,Cue])))}function tH(){tH=Z,Gue=new xge(u3e,0),A8e=new xge("TARGET_WIDTH",1)}function RUe(){RUe=Z,uwt=Mn((tH(),Y(K(N8e,1),Pe,481,0,[Gue,A8e])))}function $Ue(){$Ue=Z,wwt=Mn((dD(),Y(K(B8e,1),Pe,433,0,[Kue,rV])))}function BUe(){BUe=Z,Iwt=Mn((LD(),Y(K(cTe,1),Pe,432,0,[oV,oTe])))}function zUe(){zUe=Z,Rwt=Mn((Wq(),Y(K(uTe,1),Pe,389,0,[iae,lTe])))}function FUe(){FUe=Z,e2t=Mn((TD(),Y(K(Zwt,1),Pe,498,0,[pae,gae])))}function XLt(){return _r(),Y(K(JC,1),Pe,87,0,[$h,vo,po,Rh,Ma])}function WLt(){return Ue(),Y(K(Bs,1),uc,64,0,[Bo,Kt,nn,mn,Yt])}function KLt(e){return(e.k==(Jt(),ur)||e.k==Ar)&&ki(e,(Ie(),iC))}function YLt(e,t,n){return c(t==null?bl(e.f,null,n):nw(e.i,t,n),291)}function Rbe(e,t,n){e.a.c.length=0,JZt(e,t,n),e.a.c.length==0||wKt(e,t)}function rr(e,t,n,i){var r;r=new dt,r.c=t,r.b=n,r.a=i,i.b=n.a=r,++e.b}function $be(e,t){var n,i;for(n=t,i=0;n>0;)i+=e.a[n],n-=n&-n;return i}function qUe(e,t){var n;for(n=t;n;)F2(e,-n.i,-n.j),n=Wi(n);return e}function ZLt(e,t){var n,i;i=!1;do n=BWe(e,t),i=i|n;while(n);return i}function vs(e,t){var n,i;for(zt(t),i=e.Jc();i.Ob();)n=i.Pb(),t.Ad(n)}function HUe(e,t){var n,i;return n=t.jd(),i=e.De(n),!!i&&gc(i.e,t.kd())}function QUe(e,t){var n;return n=t.jd(),new _m(n,e.e.pc(n,c(t.kd(),18)))}function ePt(e,t){var n;return n=e.a.get(t),n??ke(Br,Pt,1,0,5,1)}function ku(e,t,n){var i;return i=(ht(t,e.c.length),e.c[t]),e.c[t]=n,i}function GUe(e,t){this.c=0,this.b=t,rBe.call(this,e,17493),this.a=this.c}function Bbe(e){this.d=e,this.b=this.d.a.entries(),this.a=this.b.next()}function E0(){yn.call(this),xze(this),this.d.b=this.d,this.d.a=this.d}function tte(e){nH(),!Nh&&(this.c=e,this.e=!0,this.a=new He)}function UUe(e){Sot(),ULe(this),this.a=new _i,ywe(this,e),ei(this.a,e)}function JUe(){kZ(this),this.b=new ze(sr,sr),this.a=new ze(Gr,Gr)}function zbe(e){A8t.call(this,e==null?ml:To(e),ae(e,81)?c(e,81):null)}function tPt(e){e&&mIt((O1e(),kke)),--pU,e&&bU!=-1&&(U8t(bU),bU=-1)}function aD(e){e.i=0,x_(e.b,null),x_(e.c,null),e.a=null,e.e=null,++e.g}function nH(){nH=Z,Nh=!0,Xft=!1,Wft=!1,Yft=!1,Kft=!1}function ys(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function Fbe(e,t){return ae(t,144)?St(e.c,c(t,144).c):!1}function nte(e,t){var n;return n=c(vh(e.d,t),21),n||c(vh(e.e,t),21)}function Mx(e,t){return(P0(e),D6(new Tt(e,new ame(t,e.a)))).zd(Ok)}function nPt(){return ts(),Y(K(vOe,1),Pe,364,0,[Cf,Xd,yc,xc,Ws])}function iPt(){return EQ(),Y(K(fmt,1),Pe,365,0,[Tue,Oue,Eue,Sue,jue])}function rPt(){return bv(),Y(K(i1t,1),Pe,372,0,[gP,YU,ZU,KU,WU])}function sPt(){return Y7(),Y(K(hwt,1),Pe,370,0,[M3,zk,$C,RC,qP])}function oPt(){return rL(),Y(K(H8e,1),Pe,331,0,[z8e,Yue,q8e,Zue,F8e])}function cPt(){return B7(),Y(K(Ije,1),Pe,329,0,[Pje,Xle,Wle,wC,vC])}function lPt(){return Su(),Y(K(nSe,1),Pe,166,0,[OP,oC,G1,cC,Nb])}function uPt(){return kh(),Y(K(Lh,1),Pe,161,0,[_t,pr,sh,Kg,J1])}function aPt(){return Rx(),Y(K(KC,1),Pe,260,0,[lp,tI,S7e,WC,j7e])}function fPt(e){return Gz(),function(){return tLt(e,this,arguments)}}function iu(e){return e.t||(e.t=new PLe(e),D7(new ZPe(e),0,e.t)),e.t}function VUe(e){var t;return e.c||(t=e.r,ae(t,89)&&(e.c=c(t,29))),e.c}function hPt(e){return e.e=3,e.d=e.Yb(),e.e!=2?(e.e=0,!0):!1}function ite(e){var t,n,i;return t=e&uu,n=e>>22&uu,i=e<0?z1:0,nl(t,n,i)}function XUe(e){var t;return t=e.length,St(Qt.substr(Qt.length-t,t),e)}function rn(e){if(hn(e))return e.c=e.a,e.a.Pb();throw V(new Mo)}function R4(e,t){return t==0||e.e==0?e:t>0?kYe(e,t):pit(e,-t)}function qbe(e,t){return t==0||e.e==0?e:t>0?pit(e,t):kYe(e,-t)}function WUe(e){this.b=e,on.call(this,e),this.a=c(Wt(this.b.a,4),131)}function KUe(e){this.b=e,x4.call(this,e),this.a=c(Wt(this.b.a,4),131)}function bf(e,t,n,i,r){iJe.call(this,t,i,r),this.c=e,this.b=n}function Hbe(e,t,n,i,r){wGe.call(this,t,i,r),this.c=e,this.a=n}function Qbe(e,t,n,i,r){vGe.call(this,t,i,r),this.c=e,this.a=n}function Gbe(e,t,n,i,r){iJe.call(this,t,i,r),this.c=e,this.a=n}function dPt(e,t,n){return Ci(v4(LS(e),As(t.b)),v4(LS(e),As(n.b)))}function gPt(e,t,n){return Ci(v4(LS(e),As(t.e)),v4(LS(e),As(n.e)))}function pPt(e,t){return p.Math.min(C0(t.a,e.d.d.c),C0(t.b,e.d.d.c))}function rte(e,t,n){var i;return i=e.Fh(t),i>=0?e.Ih(i,n,!0):uw(e,t,n)}function bPt(e,t){var n,i;n=c(eBt(e.c,t),18),n&&(i=n.gc(),n.$b(),e.d-=i)}function YUe(e){var t,n;return t=e.c.i,n=e.d.i,t.k==(Jt(),Ar)&&n.k==Ar}function p7(e){var t,n;++e.j,t=e.g,n=e.i,e.g=null,e.i=0,e.Mi(n,t),e.Li()}function fD(e,t){e.Zi(e.i+1),QT(e,e.i,e.Xi(e.i,t)),e.Ki(e.i++,t),e.Li()}function ZUe(e,t,n){var i;i=new Gge(e.a),O7(i,e.a.a),bl(i.f,t,n),e.a.a=i}function Ube(e,t,n,i){var r;for(r=0;r<OU;r++)vq(e.a[r][t.g],n,i[t.g])}function Jbe(e,t,n,i){var r;for(r=0;r<hce;r++)yq(e.a[t.g][r],n,i[t.g])}function Ei(e,t){var n;return n=c(e.c.xc(t),18),!n&&(n=e.ic(t)),e.pc(t,n)}function mPt(e){var t;return t=(Bn(e),e?new ql(e):U6(e.Jc())),U7(t),YH(t)}function ste(e){var t;return t=new Gm,nc(t,e),Me(t,(Ge(),go),null),t}function mf(e){var t,n;return Bn(e),t=pNt(e.length),n=new Gc(t),gwe(n,e),n}function ote(e,t,n,i){var r;return r=ke(Hn,li,30,t,15,1),wQt(r,e,t,n,i),r}function Cg(e,t){var n;return n=(ht(t,e.c.length),e.c[t]),B1e(e.c,t,1),n}function Vbe(e,t){var n,i;return n=(zt(e),e),i=(zt(t),t),n==i?0:n<i?-1:1}function Xbe(e){var t;return t=e.e+e.f,isNaN(t)&&ZF(e.d)?e.d:t}function E1(e,t){return e.a?Zn(e.a,e.b):e.a=new Lu(e.d),zT(e.a,t),e}function Wbe(e,t){if(e<0||e>t)throw V(new qc(Ive(e,t,"index")));return e}function wPt(e,t){var n;n=e.q.getHours()+(t/60|0),e.q.setMinutes(t),rE(e,n)}function $4(e,t){return Yr(t)?t==null?Zve(e.f,null):wWe(e.i,t):Zve(e.f,t)}function eJe(e,t){iBe.call(this,t.xd(),t.wd()&-6),zt(e),this.a=e,this.b=t}function tJe(e,t){rBe.call(this,t.xd(),t.wd()&-6),zt(e),this.a=e,this.b=t}function Kbe(e,t){RF.call(this,t.xd(),t.wd()&-6),zt(e),this.a=e,this.b=t}function nJe(e,t,n){Lz.call(this,n),this.b=e,this.c=t,this.d=(xne(),Kae)}function iJe(e,t,n){this.d=e,this.k=t?1:0,this.f=n?1:0,this.o=-1,this.p=0}function rJe(e,t,n){this.a=e,this.c=t,this.d=n,Qe(t.e,this),Qe(n.b,this)}function wh(e){this.c=e,this.a=new U(this.c.a),this.b=new U(this.c.b)}function iH(){this.e=new He,this.c=new He,this.d=new He,this.b=new He}function sJe(){this.g=new c1e,this.b=new c1e,this.a=new He,this.k=new He}function oJe(){this.a=new f1e,this.b=new vPe,this.d=new l2,this.e=new lm}function rH(e,t,n){this.a=e,this.b=t,this.c=n,Qe(e.t,this),Qe(t.i,this)}function hD(){this.b=new _i,this.a=new _i,this.b=new _i,this.a=new _i}function oS(){oS=Z;var e,t;NV=(_6(),t=new Rz,t),_V=(e=new hY,e)}function sH(){sH=Z,zC=new bi("org.eclipse.elk.labels.labelManager")}function cJe(){cJe=Z,f6e=new Qi("separateLayerConnections",(qH(),Dce))}function dD(){dD=Z,Kue=new kge("FIXED",0),rV=new kge("CENTER_NODE",1)}function Vf(){Vf=Z,ey=new bge("REGULAR",0),ip=new bge("CRITICAL",1)}function vPt(e,t){var n;return n=uen(e,t),e.b=new PH(n.c.length),EZt(e,n)}function yPt(e,t,n){var i;return++e.e,--e.f,i=c(e.d[t].ed(n),138),i.kd()}function xPt(e){var t,n;return t=e.jd(),n=c(e.kd(),18),V_(n.Lc(),new FK(t))}function cte(e){var t;return t=e.b,t.b==0?null:c(bc(t,0),65).b}function Ybe(e){if(e.a){if(e.e)return Ybe(e.e)}else return e;return null}function kPt(e,t){return e.p<t.p?1:e.p>t.p?-1:0}function oH(e,t){return zt(t),e.c<e.d?(e.Qe(t,e.c++),!0):!1}function lJe(e,t){return Cc(e.a,t)?($4(e.a,t),!0):!1}function B4(e,t,n){return uD(t,e.e.Pd().gc()),uD(n,e.c.Pd().gc()),e.a[t][n]}function uJe(e){var t;return e.a||(t=e.r,ae(t,160)&&(e.a=c(t,160))),e.a}function aJe(e){var t;for(S0(e),t=0;e.a.zd(new Ps);)t=Ns(t,1);return t}function OPt(e){var t;return P0(e),t=new VFe(e,e.a.e,e.a.d|4),new v0e(e,t)}function SPt(e,t){var n;e.C&&(n=c(eo(e.b,t),129).n,n.d=e.C.d,n.a=e.C.a)}function Zbe(e){var t,n,i,r;r=e.d,t=e.a,n=e.b,i=e.c,e.d=n,e.a=i,e.b=r,e.c=t}function eme(e,t,n){var i,r;for(i=0,r=0;r<t.length;r++)i+=e.sg(t[r],i,n)}function cH(e,t,n,i){this.f=e,this.e=t,this.d=n,this.b=i,this.c=i?i.d:null}function jPt(e,t){t.Tg("Label management",1),IF($(e,(sH(),zC))),t.Ug()}function fJe(){fJe=Z,Zft=Mn((ya(),Y(K(vl,1),Pe,132,0,[Wke,wl,Kke])))}function hJe(){hJe=Z,cht=Mn((Wf(),Y(K(Lv,1),Pe,240,0,[Wo,Kc,Ko])))}function dJe(){dJe=Z,uht=Mn((Ql(),Y(K(lht,1),Pe,464,0,[gd,W0,Tf])))}function gJe(){gJe=Z,fht=Mn((gl(),Y(K(aht,1),Pe,465,0,[nh,K0,Ef])))}function pJe(){pJe=Z,mdt=Mn((b7(),Y(K(wOe,1),Pe,385,0,[yce,vce,xce])))}function bJe(){bJe=Z,j1t=Mn((N0(),Y(K(ale,1),Pe,330,0,[wP,F6e,Fv])))}function mJe(){mJe=Z,E1t=Mn((M1(),Y(K(T1t,1),Pe,316,0,[vP,p3,Ek])))}function wJe(){wJe=Z,S1t=Mn((wS(),Y(K(ule,1),Pe,303,0,[cle,lle,mP])))}function vJe(){vJe=Z,g1t=Mn((SH(),Y(K(k6e,1),Pe,351,0,[x6e,eJ,Gce])))}function yJe(){yJe=Z,w1t=Mn((lb(),Y(K(m1t,1),Pe,452,0,[Zce,Hj,d3])))}function xJe(){xJe=Z,Tpt=Mn((Gs(),Y(K(jpt,1),Pe,455,0,[xC,Vl,Yc])))}function kJe(){kJe=Z,Ept=Mn((BH(),Y(K(Jje,1),Pe,382,0,[Gje,tue,Uje])))}function OJe(){OJe=Z,Cpt=Mn((C7(),Y(K(Vje,1),Pe,349,0,[iue,nue,_P])))}function SJe(){SJe=Z,Mpt=Mn((SS(),Y(K(Wje,1),Pe,350,0,[rue,Xje,kC])))}function jJe(){jJe=Z,Apt=Mn((OH(),Y(K(Zje,1),Pe,352,0,[Yje,sue,Kje])))}function TJe(){TJe=Z,Npt=Mn((zH(),Y(K(e9e,1),Pe,383,0,[oue,t9,Zv])))}function EJe(){EJe=Z,vpt=Mn((M7(),Y(K(Lje,1),Pe,353,0,[Ule,Dje,_J])))}function CJe(){CJe=Z,Pmt=Mn((RH(),Y(K(u8e,1),Pe,304,0,[Due,l8e,c8e])))}function MJe(){MJe=Z,Imt=Mn((sQ(),Y(K(a8e,1),Pe,441,0,[_C,KJ,Lue])))}function AJe(){AJe=Z,gwt=Mn((HD(),Y(K(Vue,1),Pe,440,0,[tV,nV,iV])))}function NJe(){NJe=Z,awt=Mn((fH(),Y(K(L8e,1),Pe,434,0,[Uue,D8e,_8e])))}function _Je(){_Je=Z,fwt=Mn((VH(),Y(K(R8e,1),Pe,435,0,[P8e,I8e,Jue])))}function DJe(){DJe=Z,u1t=Mn((ew(),Y(K(Pce,1),Pe,369,0,[Aw,Y0,Mw])))}function LJe(){LJe=Z,Pbt=Mn((T7(),Y(K(m9e,1),Pe,386,0,[b9e,uue,PP])))}function PJe(){PJe=Z,gmt=Mn((BD(),Y(K(G9e,1),Pe,387,0,[VJ,H9e,Q9e])))}function IJe(){IJe=Z,Fmt=Mn((eQ(),Y(K(d8e,1),Pe,388,0,[h8e,Fue,f8e])))}function RJe(){RJe=Z,J2t=Mn((D1(),Y(K(O7e,1),Pe,348,0,[bV,Yg,XC])))}function $Je(){$Je=Z,H2t=Mn((yh(),Y(K(f7e,1),Pe,281,0,[h9,uy,d9])))}function BJe(){BJe=Z,lvt=Mn((U4(),Y(K(_7e,1),Pe,283,0,[N7e,fy,kV])))}function zJe(){zJe=Z,svt=Mn((w7(),Y(K(M7e,1),Pe,301,0,[iI,Rae,C7e])))}function lH(){lH=Z,b6e=new cge("QUADRATIC",0),Qce=new cge("SCANLINE",1)}function gD(e){return!e.g&&(e.g=new gg),!e.g.c&&(e.g.c=new LLe(e)),e.g.c}function TPt(e){return!e.g&&(e.g=new gg),!e.g.b&&(e.g.b=new NLe(e)),e.g.b}function EPt(e){return!e.g&&(e.g=new gg),!e.g.d&&(e.g.d=new _Le(e)),e.g.d}function CPt(e){return!e.g&&(e.g=new gg),!e.g.a&&(e.g.a=new DLe(e)),e.g.a}function tme(e,t){var n,i;return n=t,i=Iq(U6(new mte(e,n))),fq(new mte(e,n)),i}function MPt(e,t,n,i){return n&&(i=n.Oh(t,Ki(n.Ah(),e.c.sk()),null,i)),i}function APt(e,t,n,i){return n&&(i=n.Qh(t,Ki(n.Ah(),e.c.sk()),null,i)),i}function lte(e,t,n,i){var r;return r=ke(Hn,li,30,t+1,15,1),ZKt(r,e,t,n,i),r}function ke(e,t,n,i,r,o){var a;return a=OZe(r,i),r!=10&&Y(K(e,o),t,n,r,a),a}function NPt(e,t,n){var i,r;for(r=new mS(t,e),i=0;i<n;++i)gQ(r);return r}function ute(e,t,n){var i,r;if(n!=null)for(i=0;i<t;++i)r=n[i],e.Oi(i,r)}function nme(e,t){var n;return n=new ni,n.c=!0,n.d=t.kd(),Rst(e,t.jd(),n)}function _Pt(e,t){var n;n=e.q.getHours()+(t/3600|0),e.q.setSeconds(t),rE(e,n)}function pa(e,t){return!e.o&&(e.o=new Nl((lc(),t1),Zg,e,0)),vne(e.o,t)}function ime(e,t,n){c(e.b,68),c(e.b,68),c(e.b,68),Uc(e.a,new NFe(n,t,e))}function DPt(e,t,n,i){Prt(e,t,n,XS(e,t,i,ae(t,104)&&(c(t,20).Bb&Rs)!=0))}function hs(e,t,n){if(e<0||t>n||t<e)throw V(new E1e(dG+e+Gxe+t+qxe+n))}function FJe(e,t,n){this.d=new zz,this.c=new yn,this.a=e,this.e=t,this.c=n}function ate(e){e?(this.c=e,this.b=null):(this.c=null,this.b=new He)}function fte(e,t){lF.call(this,e,t),this.a=ke(Wnn,lG,443,2,0,1),this.b=!0}function rme(e){ZWe.call(this,e,0),xze(this),this.d.b=this.d,this.d.a=this.d}function sme(e){this.e=e,this.b=this.e.a.entries(),this.a=ke(Br,Pt,1,0,5,1)}function qJe(){qJe=Z,Ipt=Hc(Wn(new xr,(ts(),Cf),(cs(),Ace)),Ws,Tk)}function LPt(){return _Q(),Y(K(E6e,1),Pe,286,0,[tle,ele,ile,nle,rle,nJ])}function PPt(){return nL(),Y(K(L6e,1),Pe,284,0,[rJ,N6e,D6e,A6e,_6e,sle])}function IPt(){return zS(),Y(K(z6e,1),Pe,285,0,[eC,I6e,B6e,$6e,R6e,P6e])}function RPt(){return ek(),Y(K(qj,1),Pe,233,0,[Fj,YE,zj,zv,h3,f3])}function $Pt(){return AQ(),Y(K(m7e,1),Pe,328,0,[Iae,g7e,b7e,h7e,p7e,d7e])}function BPt(){return gb(),Y(K(kae,1),Pe,300,0,[xae,QC,HC,yae,FC,qC])}function zPt(){return Bd(),Y(K(vTe,1),Pe,259,0,[wae,GP,UP,uV,cV,lV])}function FPt(){return es(),Y(K(T7e,1),Pe,103,0,[up,Bh,p9,Fb,e1,kc])}function qPt(){return Gl(),Y(K(mV,1),Pe,282,0,[ap,W1,nI,ZC,YC,Vk])}function ome(e){var t;return!e.a&&e.b!=-1&&(t=e.c.Ah(),e.a=Dt(t,e.b)),e.a}function Ln(e,t){return e.Qi()&&e.Gc(t)?!1:(e.Fi(t),!0)}function Xf(e,t){return iD(t,"Horizontal alignment cannot be null"),e.b=t,e}function HJe(e,t,n){vi();var i;return i=q0(e,t),n&&i&&nNt(e)&&(i=null),i}function cme(e,t,n){var i;i=e.b[n.c.p][n.p],i.b+=t.b,i.c+=t.c,i.a+=t.a,++i.a}function lme(e,t,n){var i;e.d[t.g]=n,i=e.g.c,i[t.g]=p.Math.max(i[t.g],n+1)}function C0(e,t){var n,i;return n=e.a-t.a,i=e.b-t.b,p.Math.sqrt(n*n+i*i)}function ume(e,t){var n,i;for(i=t.Jc();i.Ob();)n=c(i.Pb(),37),lrt(e,n,0,0)}function Mg(e,t,n){var i,r;for(r=e.Jc();r.Ob();)i=c(r.Pb(),37),JS(i,t,n)}function HPt(e){var t,n;for(n=Pn(e.a,0);n.b!=n.d.c;)t=c(Dn(n),65),Hve(t)}function QJe(e,t){return PRe(e.e,t)||hb(e.e,t,new JYe(t)),c(vh(e.e,t),114)}function ru(e,t,n,i){return zt(e),zt(t),zt(n),zt(i),new Ppe(e,t,new ii)}function Nl(e,t,n,i){this.$j(),this.a=t,this.b=e,this.c=new Npe(this,t,n,i)}function hte(e,t,n,i,r,o){Mbe.call(this,t,i,r,o),this.c=e,this.b=n}function pD(e,t,n,i,r,o){Mbe.call(this,t,i,r,o),this.c=e,this.a=n}function bD(e,t){var n,i,r;return r=e.r,i=e.d,n=cE(e,t,!0),n.b!=r||n.a!=i}function mD(e,t,n){var i,r;return r=(i=qS(e.b,t),i),r?nG(xD(e,r),n):null}function QPt(e,t,n){var i,r,o;i=S1(e,n),r=null,i&&(r=Eve(i)),o=r,HYe(t,n,o)}function GPt(e,t,n){var i,r,o;i=S1(e,n),r=null,i&&(r=Eve(i)),o=r,HYe(t,n,o)}function UPt(e,t){var n;return n=Ut(e.k,t),vye(e,t),Nie(e,t),uye(e,t,n),null}function cS(e,t){var n;return n=e.Fh(t),n>=0?e.Ih(n,!0,!0):uw(e,t,!0)}function JPt(e,t){return Ci(de(be($(e,(Ie(),Dw)))),de(be($(t,Dw))))}function ame(e,t){RF.call(this,t.xd(),t.wd()&-16449),zt(e),this.a=e,this.c=t}function fme(e,t,n,i,r){BBe(this),this.b=e,this.d=t,this.f=n,this.g=i,this.c=r}function Gc(e){kZ(this),W_(e>=0,"Initial capacity must not be negative")}function z4(e){var t;return Bn(e),ae(e,206)?(t=c(e,206),t):new kz(e)}function VPt(e){for(;!e.a;)if(!vFe(e.c,new FNe(e)))return!1;return!0}function XPt(e){var t;if(!e.a)throw V(new BHe);return t=e.a,e.a=Wi(e.a),t}function WPt(e){if(e.b<=0)throw V(new Mo);return--e.b,e.a-=e.c.c,$e(e.a)}function hme(e,t){if(e.g==null||t>=e.i)throw V(new bZ(t,e.i));return e.g[t]}function GJe(e,t,n){if(kS(e,n),n!=null&&!e.dk(n))throw V(new lY);return n}function KPt(e,t,n){var i;return i=JWe(e,t,n),e.b=new PH(i.c.length),Eye(e,i)}function UJe(e){var t;if(e.ll())for(t=e.i-1;t>=0;--t)ce(e,t);return _be(e)}function YPt(e){uH(),c(e.mf((In(),oy)),185).Ec((Gl(),nI)),e.of(Nae,null)}function uH(){uH=Z,i2t=new rN,s2t=new Y$,r2t=h$t((In(),Nae),i2t,op,s2t)}function JJe(){JJe=Z,YQ(),OEe=sr,pyt=Gr,SEe=new qs(sr),byt=new qs(Gr)}function aH(){aH=Z,F9e=new yge("LEAF_NUMBER",0),Cue=new yge("NODE_SIZE",1)}function dte(e){e.a=ke(Hn,li,30,e.b+1,15,1),e.c=ke(Hn,li,30,e.b,15,1),e.d=0}function ZPt(e,t){e.a.Le(t.d,e.b)>0&&(Qe(e.c,new lpe(t.c,t.d,e.d)),e.b=t.d)}function lS(e,t,n,i){var r;i=(Qm(),i||Hke),r=e.slice(t,n),Rve(r,e,t,n,-t,i)}function ba(e,t,n,i,r){return t<0?uw(e,n,i):c(n,69).uk().wk(e,e.ei(),t,i,r)}function VJe(e,t){var n,i;return i=t/e.c.Pd().gc()|0,n=t%e.c.Pd().gc(),B4(e,i,n)}function dme(e){var t,n;if(!e.b)return null;for(n=e.b;t=n.a[0];)n=t;return n}function XJe(e){var t,n;if(!e.b)return null;for(n=e.b;t=n.a[1];)n=t;return n}function eIt(e){return ae(e,183)?""+c(e,183).a:e==null?null:To(e)}function tIt(e){return ae(e,183)?""+c(e,183).a:e==null?null:To(e)}function WJe(e,t){if(t.a)throw V(new Ao(cct));Er(e.a,t),t.a=e,!e.j&&(e.j=t)}function Ql(){Ql=Z,gd=new zY(dk,0),W0=new zY(cj,1),Tf=new zY(gk,2)}function uS(){uS=Z,oce=new fF("All",0),cce=new jBe,lce=new RBe,uce=new TBe}function KJe(){KJe=Z,Jft=Mn((uS(),Y(K(xU,1),Pe,310,0,[oce,cce,lce,uce])))}function YJe(){YJe=Z,Iht=Mn((tw(),Y(K(Pht,1),Pe,414,0,[lP,cP,gce,pce])))}function ZJe(){ZJe=Z,Tdt=Mn((vS(),Y(K(jdt,1),Pe,413,0,[Cw,Iv,Pv,l3])))}function eVe(){eVe=Z,_dt=Mn((X4(),Y(K(kOe,1),Pe,384,0,[XE,xOe,Tce,Ece])))}function tVe(){tVe=Z,Gdt=Mn((qH(),Y(K(Qdt,1),Pe,368,0,[Dce,VU,XU,dP])))}function nVe(){nVe=Z,n1t=Mn((xf(),Y(K(t1t,1),Pe,418,0,[Bv,$j,Bj,Lce])))}function iVe(){iVe=Z,Wpt=Mn((ab(),Y(K(Xpt,1),Pe,409,0,[DP,OC,RJ,IJ])))}function rVe(){rVe=Z,ypt=Mn((pv(),Y(K(Vle,1),Pe,205,0,[DJ,Jle,S3,O3])))}function sVe(){sVe=Z,Opt=Mn((P1(),Y(K(Hje,1),Pe,270,0,[np,qje,Kle,Yle])))}function oVe(){oVe=Z,d1t=Mn((I7(),Y(K(y6e,1),Pe,302,0,[ZE,w6e,pP,v6e])))}function cVe(){cVe=Z,rmt=Mn((E7(),Y(K(R9e,1),Pe,354,0,[xue,UJ,yue,vue])))}function lVe(){lVe=Z,Lmt=Mn((wQ(),Y(K(o8e,1),Pe,355,0,[_ue,r8e,s8e,i8e])))}function uVe(){uVe=Z,$mt=Mn((MQ(),Y(K(Rmt,1),Pe,406,0,[$ue,Pue,Rue,Iue])))}function aVe(){aVe=Z,Dbt=Mn((W4(),Y(K(s9e,1),Pe,402,0,[FJ,TC,EC,CC])))}function fVe(){fVe=Z,Bwt=Mn((kQ(),Y(K(aTe,1),Pe,396,0,[sae,oae,cae,lae])))}function hVe(){hVe=Z,q2t=Mn((jS(),Y(K(a7e,1),Pe,280,0,[KP,pV,l7e,u7e])))}function dVe(){dVe=Z,Q2t=Mn((L1(),Y(K(Pae,1),Pe,225,0,[Lae,YP,g9,Jk])))}function gVe(){gVe=Z,X2t=Mn((qu(),Y(K(V2t,1),Pe,293,0,[eI,Yd,cp,ZP])))}function pVe(){pVe=Z,uvt=Mn((Yq(),Y(K(lI,1),Pe,290,0,[D7e,P7e,Bae,L7e])))}function bVe(){bVe=Z,ovt=Mn((Tu(),Y(K(eM,1),Pe,381,0,[sI,qb,rI,ay])))}function mVe(){mVe=Z,avt=Mn((tQ(),Y(K(B7e,1),Pe,327,0,[zae,I7e,$7e,R7e])))}function wVe(){wVe=Z,dvt=Mn((HH(),Y(K(hvt,1),Pe,412,0,[Fae,F7e,z7e,q7e])))}function wD(){wD=Z,C6e=new uge(Zf,0),iJ=new uge("IMPROVE_STRAIGHTNESS",1)}function fH(){fH=Z,Uue=new lZ(Tlt,0),D8e=new lZ(_5e,1),_8e=new lZ(Zf,2)}function gme(e){var t;if(!Ate(e))throw V(new Mo);return e.e=1,t=e.d,e.d=null,t}function Ag(e){var t;return So(e)&&(t=0-e,!isNaN(t))?t:A0(yS(e))}function Lo(e,t,n){for(;n<e.c.length;++n)if(gc(t,e.c[n]))return n;return-1}function dl(e,t){var n;return n=Lo(e,t,0),n==-1?!1:(Cg(e,n),!0)}function vVe(e,t){var n;return n=c($4(e.e,t),395),n?(fpe(n),n.e):null}function nIt(e,t,n,i,r){return zt(e),zt(t),zt(n),zt(i),zt(r),new Ppe(e,t,i)}function yVe(e){B2(!!e.c),HZ(e.f.g,e.d),e.c.Qb(),e.c=null,e.b=nwe(e),e.d=e.f.g}function vD(e){var t;for(t=e.p+1;t<e.c.a.c.length;++t)--c(Je(e.c.a,t),9).p}function gte(e){var t;t=e.hj(),t!=null&&e.d!=-1&&c(t,95).uh(e),e.i&&e.i.mj()}function iIt(e){var t;return S0(e),t=ke(is,io,30,0,15,1),ax(e.a,new $Ne(t)),t}function xVe(e,t,n){var i;return S0(e),i=new qr,i.a=t,e.a.Nb(new FRe(i,n)),i.a}function pte(e,t){return SD(t)!=10&&Y(Ou(t),t.Qm,t.__elementTypeId$,SD(t),e),e}function bte(e){var t,n;return n=c(Je(e.j,0),12),t=c($(n,(Ie(),Si)),12),t}function mte(e,t){var n;this.f=e,this.b=t,n=c(Ut(e.b,t),263),this.c=n?n.b:null}function kVe(){Pu(),this.b=new yn,this.f=new yn,this.g=new yn,this.e=new yn}function hH(e){FF(this),this.g=e?$q(e,e.ge()):null,this.f=e,Dq(this),this.he()}function C1(e,t,n,i,r,o,a){Ete.call(this,t,i,r,o,a),this.c=e,this.b=n}function yD(e,t){if(t<0)throw V(new qc(Glt+t));return cUe(e,t+1),Je(e.j,t)}function dH(e,t){return gc(t,Je(e.f,0))||gc(t,Je(e.f,1))||gc(t,Je(e.f,2))}function rIt(e,t){return new JZ(t,F2(As(t.e),t.f.a+e,t.f.b+e),(Bt(),!1))}function sIt(e,t){return G6(),Qe(e,new Is(t,$e(t.e.c.length+t.g.c.length)))}function oIt(e,t){return G6(),Qe(e,new Is(t,$e(t.e.c.length+t.g.c.length)))}function pme(e,t){xT();var n,i;return n=I4(e),i=I4(t),!!n&&!!i&&!YYe(n.k,i.k)}function xD(e,t){var n,i;return n=c(t,687),i=n.ui(),!i&&n.xi(i=new Z$e(e,t)),i}function ao(e,t){var n,i;return n=c(t,689),i=n.Yk(),!i&&n.al(i=new AGe(e,t)),i}function kD(e){bqe();var t,n;return t=e+128,n=Cke[t],!n&&(n=Cke[t]=new cr(e)),n}function su(e){return e.b||(e.b=new Iqe(e,Ys,e),!e.a&&(e.a=new H_(e,e))),e.b}function OVe(e){return HZ(e.d.a.e.g,e.b),gn(e.c!=e.d.a.d),e.a=e.c,e.c=e.c.a,e.a}function gH(e){var t,n;return n=e.length,t=ke(_a,cd,30,n,15,1),lHe(e,0,n,t,0),t}function SVe(e,t){for(;t[0]<e.length&&Xh(` 	\r
`,pl(ws(e,t[0])))>=0;)++t[0]}function jVe(e,t){eOe=new om,Rht=t,UE=e,c(UE.b,68),ime(UE,eOe,null),gst(UE)}function b7(){b7=Z,yce=new qY("XY",0),vce=new qY("X",1),xce=new qY("Y",2)}function gl(){gl=Z,nh=new FY("TOP",0),K0=new FY(cj,1),Ef=new FY(Wxe,2)}function M1(){M1=Z,vP=new VY(Zf,0),p3=new VY("TOP",1),Ek=new VY(Wxe,2)}function OD(){OD=Z,Zle=new hge("INPUT_ORDER",0),eue=new hge("PORT_DEGREE",1)}function aS(){aS=Z,Ske=nl(uu,uu,524287),Nft=nl(0,0,ML),jke=ite(1),ite(2),Tke=ite(0)}function bme(e){var t;return t=q4(Wt(e,32)),t==null&&(il(e),t=q4(Wt(e,32))),t}function mme(e){var t;return e.Lh()||(t=bn(e.Ah())-e.gi(),e.Xh().Kk(t)),e.wh()}function TVe(e){(this.q?this.q:(Mt(),Mt(),Vd)).zc(e.q?e.q:(Mt(),Mt(),Vd))}function EVe(e,t){Nc(e,t==null||ZF((zt(t),t))||isNaN((zt(t),t))?0:(zt(t),t))}function CVe(e,t){_l(e,t==null||ZF((zt(t),t))||isNaN((zt(t),t))?0:(zt(t),t))}function MVe(e,t){rb(e,t==null||ZF((zt(t),t))||isNaN((zt(t),t))?0:(zt(t),t))}function AVe(e,t){ib(e,t==null||ZF((zt(t),t))||isNaN((zt(t),t))?0:(zt(t),t))}function cIt(e,t){S4(c(c(e.f,19).mf((In(),u9)),103))&&iYe(Ype(c(e.f,19)),t)}function wte(e,t){var n;return n=Ki(e.d,t),n>=0?dQ(e,n,!0,!0):uw(e,t,!0)}function pH(e,t){var n;return n=e.bd(t),n>=0?(e.ed(n),!0):!1}function vte(e,t,n){var i;return i=e.g[t],QT(e,t,e.Xi(t,n)),e.Pi(t,n,i),e.Li(),i}function yte(e){var t;return e.d!=e.r&&(t=Qa(e),e.e=!!t&&t.jk()==Nat,e.d=t),e.e}function xte(e,t){var n;for(Bn(e),Bn(t),n=!1;t.Ob();)n=n|e.Ec(t.Pb());return n}function jo(e,t){var n,i;return P0(e),i=new Kbe(t,e.a),n=new xFe(i),new Tt(e,n)}function vh(e,t){var n;return n=c(Ut(e.e,t),395),n?(VBe(e,n),n.e):null}function lIt(e,t){var n,i,r;r=t.c.i,n=c(Ut(e.f,r),60),i=n.d.c-n.e.c,Xme(t.a,i,0)}function $d(e,t,n){var i,r;for(i=10,r=0;r<n-1;r++)t<i&&(e.a+="0"),i*=10;e.a+=t}function wme(e,t){var n;for(++e.d,++e.c[t],n=t+1;n<e.a.length;)++e.a[n],n+=n&-n}function kte(e){var t;return t=e.b.c.length==0?null:Je(e.b,0),t!=null&&Nte(e,0),t}function uIt(e){switch(e.g){case 0:return gi;case 1:return ls;default:return 0}}function aIt(e){return H2e(e,(aS(),Tke))<0?-YTt(yS(e)):e.l+e.m*hk+e.h*wb}function NVe(e){var t,n;return t=e/60|0,n=e%60,n==0?""+t:""+t+":"+(""+n)}function rv(e,t){var n=e.a[t],i=(Ute(),ece)[typeof n];return i?i(n):_we(typeof n)}function fIt(e,t){return ae(t,104)&&(c(t,20).Bb&Rs)!=0?new mZ(t,e):new mS(t,e)}function hIt(e,t){return ae(t,104)&&(c(t,20).Bb&Rs)!=0?new mZ(t,e):new mS(t,e)}function dIt(e,t,n){return v4(new ze(n.e.a+n.f.a/2,n.e.b+n.f.b/2),e)==(zt(t),t)}function vme(e){if(!e.c)throw V(new Mo);return e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function _Ve(e){if(!e.e)throw V(new Mo);return e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function DVe(e,t,n,i){if(!e)throw V(new qt(tE(t,Y(K(Br,1),Pt,1,5,[n,i]))))}function LVe(){LVe=Z,evt=Mn((Ue(),Y(K(Bs,1),uc,64,0,[Bo,Kt,nn,mn,Yt])))}function PVe(){PVe=Z,F2t=Mn((_r(),Y(K(JC,1),Pe,87,0,[$h,vo,po,Rh,Ma])))}function IVe(){IVe=Z,xdt=Mn((ts(),Y(K(vOe,1),Pe,364,0,[Cf,Xd,yc,xc,Ws])))}function m7(){m7=Z,Mdt=new J9,Adt=new Pa,Edt=new By,Cdt=new MO,Ndt=new s2}function bH(){bH=Z,bce=new nge("EADES",0),jU=new nge("FRUCHTERMAN_REINGOLD",1)}function RVe(e){this.g=e,this.f=new He,this.a=p.Math.min(this.g.c.c,this.g.d.c)}function $Ve(e,t,n,i){vi(),jm.call(this,26),this.c=e,this.a=t,this.d=n,this.b=i}function gIt(e,t){var n,i;for(i=t.c,n=i+1;n<=t.f;n++)e.a[n]>e.a[i]&&(i=n);return i}function BVe(e){var t;for(++e.a,t=e.c.a.length;e.a<t;++e.a)if(e.c.b[e.a])return}function pIt(e,t){var n;return n=iw(e.e.c,t.e.c),n==0?Ci(e.e.d,t.e.d):n}function zVe(e){var t;return t=c($(e,(Ie(),Nw)),318),t?t.a==e:!1}function FVe(e){var t;return t=c($(e,(Ie(),Nw)),318),t?t.i==e:!1}function qVe(e,t){return t==(qZ(),qZ(),Qft)?e.toLocaleLowerCase():e.toLowerCase()}function SD(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function bIt(e){var t,n;if(e.a){n=null;do t=e.a,e.a=null,n=ctt(t,n);while(e.a);e.a=n}}function mIt(e){var t,n;if(e.b){n=null;do t=e.b,e.b=null,n=ctt(t,n);while(e.b);e.b=n}}function wIt(e,t){var n;for(n=0;e.e!=e.i.gc();)PAt(t,un(e),$e(n)),n!=gi&&++n}function Ote(e,t){var n;return n=c(Ut(e.a,t),151),n||(n=new cm,ci(e.a,t,n)),n}function vIt(e,t,n){var i;return i=e.a.e[c(t.a,9).p]-e.a.e[c(n.a,9).p],ks(Y_(i))}function Dt(e,t){var n;return n=(e.i==null&&sd(e),e.i),t>=0&&t<n.length?n[t]:null}function yme(e){return((e.i&2)!=0?"interface ":(e.i&1)!=0?"":"class ")+(x1(e),e.o)}function mH(e){return _c(e,gi)>0?gi:_c(e,ls)<0?ls:Gn(e)}function wf(e,t,n){var i;if(t==null)throw V(new i4);return i=S1(e,t),PLt(e,t,n),i}function HVe(e,t){return zt(t),Cpe(e),e.d.Ob()?(t.Ad(e.d.Pb()),!0):!1}function QVe(e){this.b=new He,this.a=new He,this.c=new He,this.d=new He,this.e=e}function GVe(e,t,n){KF.call(this),xme(this),this.a=e,this.c=n,this.b=t.d,this.f=t.e}function yIt(){return Jt(),Y(K(Cce,1),Pe,252,0,[ur,Cr,Ar,Ic,ac,_h,fP,WE])}function UVe(){UVe=Z,K2t=Mn((Rx(),Y(K(KC,1),Pe,260,0,[lp,tI,S7e,WC,j7e])))}function JVe(){JVe=Z,o2t=Mn((kh(),Y(K(Lh,1),Pe,161,0,[_t,pr,sh,Kg,J1])))}function VVe(){VVe=Z,r1t=Mn((bv(),Y(K(i1t,1),Pe,372,0,[gP,YU,ZU,KU,WU])))}function XVe(){XVe=Z,hmt=Mn((EQ(),Y(K(fmt,1),Pe,365,0,[Tue,Oue,Eue,Sue,jue])))}function WVe(){WVe=Z,A1t=Mn((Su(),Y(K(nSe,1),Pe,166,0,[OP,oC,G1,cC,Nb])))}function KVe(){KVe=Z,xpt=Mn((B7(),Y(K(Ije,1),Pe,329,0,[Pje,Xle,Wle,wC,vC])))}function YVe(){YVe=Z,dwt=Mn((Y7(),Y(K(hwt,1),Pe,370,0,[M3,zk,$C,RC,qP])))}function ZVe(){ZVe=Z,vwt=Mn((rL(),Y(K(H8e,1),Pe,331,0,[z8e,Yue,q8e,Zue,F8e])))}function xIt(){return JQ(),Y(K(p6e,1),Pe,277,0,[Rce,zce,Ice,Hce,Bce,$ce,qce,Fce])}function kIt(){return z0(),Y(K(c2t,1),Pe,287,0,[bTe,Ir,Ts,qk,us,Vi,Fk,Ph])}function OIt(){return ok(),Y(K(gI,1),Pe,235,0,[Gae,TV,dI,hI,Qae,jV,SV,Hae])}function SIt(e,t){return F4(),-hc(c($(e,(Jo(),T3)),15).a,c($(t,T3),15).a)}function jIt(e,t,n,i){var r;e.j=-1,Wve(e,Cve(e,t,n),(Hs(),r=c(t,69).tk(),r.vl(i)))}function TIt(e,t,n){var i,r;for(r=new U(n);r.a<r.c.c.length;)i=G(r),ove(e,t,i)}function fo(e){var t,n;n=(t=new dY,t),Ln((!e.q&&(e.q=new _e(tf,e,11,10)),e.q),n)}function EIt(e,t){var n;return n=t>0?t-1:t,gIe(r8t(vXe(cpe(new o4,n),e.n),e.j),e.k)}function wH(e,t){var n;return P0(e),n=new rQe(e,e.a.xd(),e.a.wd()|4,t),new Tt(e,n)}function CIt(e,t){var n,i;return n=c(fv(e.d,t),18),n?(i=t,e.e.pc(i,n)):null}function eXe(e){this.d=e,this.c=e.c.vc().Jc(),this.b=null,this.a=null,this.e=(qz(),Xoe)}function Xm(e){if(e<0)throw V(new qt("Illegal Capacity: "+e));this.g=this.$i(e)}function MIt(e,t){if(0>e||e>t)throw V(new C1e("fromIndex: 0, toIndex: "+e+qxe+t))}function tXe(e,t){return!!k7(e,t,Gn(js(Qd,Id(Gn(js(t==null?0:zi(t),Gd)),15))))}function AIt(e,t){S4(c($(c(e.e,9),(Ge(),ar)),103))&&(Mt(),Rr(c(e.e,9).j,t))}function NIt(e){var t;return t=de(be($(e,(Ge(),Jg)))),t<0&&(t=0,Me(e,Jg,t)),t}function vH(e,t){var n,i;for(i=e.Jc();i.Ob();)n=c(i.Pb(),70),Me(n,(Ie(),_k),t)}function _It(e,t,n){var i;i=p.Math.max(0,e.b/2-.5),q7(n,i,1),Qe(t,new URe(n,i))}function nXe(e,t,n,i,r,o){var a;a=ste(i),Os(a,r),ss(a,o),jt(e.a,i,new tq(a,t,n.f))}function iXe(e,t){ri(e,(Fd(),zue),t.f),ri(e,zmt,t.e),ri(e,Bue,t.d),ri(e,Bmt,t.c)}function Ste(e){var t;B2(!!e.c),t=e.c.a,ma(e.d,e.c),e.b==e.c?e.b=t:--e.a,e.c=null}function rXe(e){return e.a>=-.01&&e.a<=Ch&&(e.a=0),e.b>=-.01&&e.b<=Ch&&(e.b=0),e}function Ax(e){GS();var t,n;for(n=P5e,t=0;t<e.length;t++)e[t]>n&&(n=e[t]);return n}function sXe(e,t){var n;if(n=hL(e.Ah(),t),!n)throw V(new qt(J0+t+doe));return n}function sv(e,t){var n;for(n=e;Wi(n);)if(n=Wi(n),n==t)return!0;return!1}function DIt(e,t){return t&&e.b[t.g]==t?(mr(e.b,t.g,null),--e.c,!0):!1}function ma(e,t){var n;return n=t.c,t.a.b=t.b,t.b.a=t.a,t.a=t.b=null,t.c=null,--e.b,n}function Uc(e,t){var n,i,r,o;for(zt(t),i=e.c,r=0,o=i.length;r<o;++r)n=i[r],t.Ad(n)}function LIt(e,t){var n,i,r;for(i=t.a.jd(),n=c(t.a.kd(),18).gc(),r=0;r<n;r++)e.Ad(i)}function PIt(e){var t,n;for(t=e.a.d.j,n=e.c.d.j;t!=n;)yf(e.b,t),t=WH(t);yf(e.b,t)}function IIt(e){var t;for(t=0;t<e.c.length;t++)(ht(t,e.c.length),c(e.c[t],12)).p=t}function RIt(e,t,n){var i,r,o;for(r=t[n],i=0;i<r.length;i++)o=r[i],e.e[o.c.p][o.p]=i}function jte(e,t){var n,i,r,o;for(i=e.d,r=0,o=i.length;r<o;++r)n=i[r],gh(e.g,n).a=t}function oXe(e,t,n){var i,r;i=t;do r=de(e.p[i.p])+n,e.p[i.p]=r,i=e.a[i.p];while(i!=t)}function $It(e){var t;return t=p.Math.sqrt(e.a*e.a+e.b*e.b),t>0&&(e.a/=t,e.b/=t),e}function yH(e){this.b=(Bn(e),new ql(e)),this.a=new He,this.d=new He,this.e=new fs}function xme(e){e.b=(Ql(),W0),e.f=(gl(),K0),e.d=(zu(2,Ev),new Gc(2)),e.e=new fs}function cXe(){cXe=Z,OU=(Wf(),Y(K(Lv,1),Pe,240,0,[Wo,Kc,Ko])).length,hce=OU}function Wf(){Wf=Z,Wo=new BY("BEGIN",0),Kc=new BY(cj,1),Ko=new BY("END",2)}function yh(){yh=Z,h9=new fZ(cj,0),uy=new fZ("HEAD",1),d9=new fZ("TAIL",2)}function jD(){jD=Z,tJ=new lge("READING_DIRECTION",0),j6e=new lge("ROTATION",1)}function TD(){TD=Z,pae=new jge("DIRECT_ROUTING",0),gae=new jge("BEND_ROUTING",1)}function F4(){F4=Z,cmt=id(id(id(ST(new xr,(W4(),TC)),(nE(),lue)),u9e),d9e)}function A1(){A1=Z,umt=id(id(id(ST(new xr,(W4(),CC)),(nE(),f9e)),o9e),a9e)}function Nx(e,t){return l8t(x7(e,t,Gn(js(Qd,Id(Gn(js(t==null?0:zi(t),Gd)),15)))))}function kme(e,t){return dh(),vf(zg),p.Math.abs(e-t)<=zg||e==t||isNaN(e)&&isNaN(t)}function Ome(e,t){return dh(),vf(zg),p.Math.abs(e-t)<=zg||e==t||isNaN(e)&&isNaN(t)}function Bu(e){var t;return e.w?e.w:(t=TDt(e),t&&!t.Sh()&&(e.w=t),t)}function BIt(e){var t;return e==null?null:(t=c(e,198),_Qt(t,t.length))}function ce(e,t){if(e.g==null||t>=e.i)throw V(new bZ(t,e.i));return e.Ui(t,e.g[t])}function zIt(e,t){Mt();var n,i;for(i=new He,n=0;n<e;++n)It(i.c,t);return new TY(i)}function lXe(e){return P0(e),T4(!0,"n may not be negative"),new Tt(e,new AXe(e.a))}function FIt(e,t){return $0(),hc(e.b.c.length-e.e.c.length,t.b.c.length-t.e.c.length)}function fS(e,t){var n,i;i=e.a,n=vBt(e,t,null),i!=t&&!e.e&&(n=YS(e,t,n)),n&&n.mj()}function qIt(e,t){var n;return n=Qr(As(c(Ut(e.g,t),8)),qge(c(Ut(e.f,t),463).b)),n}function uXe(e,t,n){var i=function(){return e.apply(i,arguments)};return t.apply(i,n),i}function q4(e){var t;return XT(e==null||Array.isArray(e)&&(t=SD(e),!(t>=14&&t<=16))),e}function aXe(){aXe=Z,x1t=Mn((nL(),Y(K(L6e,1),Pe,284,0,[rJ,N6e,D6e,A6e,_6e,sle])))}function fXe(){fXe=Z,k1t=Mn((zS(),Y(K(z6e,1),Pe,285,0,[eC,I6e,B6e,$6e,R6e,P6e])))}function hXe(){hXe=Z,v1t=Mn((_Q(),Y(K(E6e,1),Pe,286,0,[tle,ele,ile,nle,rle,nJ])))}function dXe(){dXe=Z,f1t=Mn((ek(),Y(K(qj,1),Pe,233,0,[Fj,YE,zj,zv,h3,f3])))}function gXe(){gXe=Z,G2t=Mn((AQ(),Y(K(m7e,1),Pe,328,0,[Iae,g7e,b7e,h7e,p7e,d7e])))}function pXe(){pXe=Z,p2t=Mn((gb(),Y(K(kae,1),Pe,300,0,[xae,QC,HC,yae,FC,qC])))}function bXe(){bXe=Z,u2t=Mn((Bd(),Y(K(vTe,1),Pe,259,0,[wae,GP,UP,uV,cV,lV])))}function mXe(){mXe=Z,Y2t=Mn((es(),Y(K(T7e,1),Pe,103,0,[up,Bh,p9,Fb,e1,kc])))}function wXe(){wXe=Z,Z2t=Mn((Gl(),Y(K(mV,1),Pe,282,0,[ap,W1,nI,ZC,YC,Vk])))}function HIt(){return yv(),Y(K(Ks,1),Pe,96,0,[Nf,X1,_f,Lf,Zd,Ya,Xu,Df,Ka])}function w7(){w7=Z,iI=new dZ(R4e,0),Rae=new dZ("PARENT",1),C7e=new dZ("ROOT",2)}function vXe(e,t){return e.n=t,e.n?(e.f=new He,e.e=new He):(e.f=null,e.e=null),e}function ib(e,t){var n;n=e.f,e.f=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new iv(e,3,n,e.f))}function xH(e,t){var n;n=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new iv(e,1,n,e.b))}function Wm(e,t){var n;n=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new iv(e,3,n,e.b))}function Km(e,t){var n;n=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new iv(e,4,n,e.c))}function rb(e,t){var n;n=e.g,e.g=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new iv(e,4,n,e.g))}function Nc(e,t){var n;n=e.i,e.i=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new iv(e,5,n,e.i))}function _l(e,t){var n;n=e.j,e.j=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new iv(e,6,n,e.j))}function Ym(e,t){var n;n=e.j,e.j=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new iv(e,1,n,e.j))}function Zm(e,t){var n;n=e.k,e.k=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new iv(e,2,n,e.k))}function kH(e,t){var n;n=e.a,e.a=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new iv(e,0,n,e.a))}function Ng(e,t){var n;n=e.s,e.s=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Yee(e,4,n,e.s))}function ov(e,t){var n;n=e.t,e.t=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Yee(e,5,n,e.t))}function Tte(e,t){var n;n=e.d,e.d=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Yee(e,2,n,e.d))}function hS(e,t){var n;n=e.F,e.F=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,5,n,t))}function ED(e,t){var n;return n=c(Ut((cF(),EV),e),58),n?n.ek(t):ke(Br,Pt,1,t,5,1)}function N1(e,t){var n,i;return n=t in e.a,n&&(i=S1(e,t).pe(),i)?i.a:null}function QIt(e,t){var n,i,r;return n=(i=(b0(),r=new pN,r),t&&xye(i,t),i),Bme(n,e),n}function yXe(e,t,n){var i;return i=DS(n),ci(e.c,i,t),ci(e.d,t,n),ci(e.e,t,Y2(t)),t}function vn(e,t,n,i,r,o){var a;return a=xee(e,t),kXe(n,a),a.i=r?8:0,a.f=i,a.e=r,a.g=o,a}function Sme(e,t,n,i,r){this.d=t,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=e,this.a=n}function jme(e,t,n,i,r){this.d=t,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=e,this.a=n}function Tme(e,t,n,i,r){this.d=t,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=e,this.a=n}function Eme(e,t,n,i,r){this.d=t,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=e,this.a=n}function Cme(e,t,n,i,r){this.d=t,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=e,this.a=n}function xXe(e,t){var n,i,r,o;for(i=t,r=0,o=i.length;r<o;++r)n=i[r],WJe(e.a,n);return e}function wa(e){var t,n,i,r;for(n=e,i=0,r=n.length;i<r;++i)t=n[i],Bn(t);return new hBe(e)}function Mme(e){var t;return t=Qr(As(e.d.d),e.c.d),RS(t,e.c.e.a,e.c.e.b),Oi(t,e.c.d)}function Ame(e){var t;return t=Qr(As(e.c.d),e.d.d),RS(t,e.d.e.a,e.d.e.b),Oi(t,e.d.d)}function GIt(e){var t=/function(?:\s+([\w$]+))?\s*\(/,n=t.exec(e);return n&&n[1]||fre}function kXe(e,t){if(e){t.n=e;var n=M_t(t);if(!n){gU[e]=[t];return}n.Pm=t}}function UIt(e,t,n){var i,r;return r=e.length,i=p.Math.min(n,r),Xve(e,0,t,0,i,!0),t}function OXe(e,t,n){if(kS(e,n),!e.il()&&n!=null&&!e.dk(n))throw V(new lY);return n}function Cn(e,t){var n;return zt(t),n=e[":"+t],W_(!!n,"Enum constant undefined: "+t),n}function JIt(e,t){var n,i;return n=e.c,i=t.e[e.p],i>0?c(Je(n.a,i-1),9):null}function vf(e){if(!(e>=0))throw V(new qt("tolerance ("+e+") must be >= 0"));return e}function v7(){return bae||(bae=new Wit,Dx(bae,Y(K(c3,1),Pt,139,0,[new WN]))),bae}function OH(){OH=Z,Yje=new eZ("NO",0),sue=new eZ(u3e,1),Kje=new eZ("LOOK_BACK",2)}function SH(){SH=Z,x6e=new QY("ARD",0),eJ=new QY("MSD",1),Gce=new QY("MANUAL",2)}function Gs(){Gs=Z,xC=new WY(mE,0),Vl=new WY("INPUT",1),Yc=new WY("OUTPUT",2)}function VIt(){return uL(),Y(K(S6e,1),Pe,268,0,[Vce,O6e,Wce,Kce,Xce,Yce,bP,Jce,Uce])}function XIt(){return fL(),Y(K(_je,1),Pe,269,0,[Gle,Mje,Aje,Hle,Cje,Nje,NJ,qle,Qle])}function WIt(){return lu(),Y(K(A7e,1),Pe,267,0,[b9,cI,wV,tM,vV,xV,yV,$ae,oI])}function to(e,t,n){return fb(e,t),Jc(e,n),Ng(e,0),ov(e,1),Ig(e,!0),Pg(e,!0),e}function SXe(e,t){var n;return ae(t,45)?e.c.Kc(t):(n=vne(e,t),oQ(e,t),n)}function y7(e,t){var n,i,r,o;for(i=t,r=0,o=i.length;r<o;++r)n=i[r],rr(e,n,e.c.b,e.c)}function KIt(){XIe();for(var e=Qoe,t=0;t<arguments.length;t++)e.push(arguments[t])}function YIt(e){var t,n,i,r;for(n=e.a,i=0,r=n.length;i<r;++i)t=n[i],uHe(t,t.length,null)}function jH(e){var t,n;for(n=e.c.Bc().Jc();n.Ob();)t=c(n.Pb(),18),t.$b();e.c.$b(),e.d=0}function CD(e,t){var n;if(n=e.gc(),t<0||t>n)throw V(new Q2(t,n));return new F0e(e,t)}function jXe(e,t){var n,i;for(n=0,i=e.gc();n<i;++n)if(gc(t,e.Xb(n)))return n;return-1}function Nme(e){var t,n;if(e==0)return 32;for(n=0,t=1;(t&e)==0;t<<=1)++n;return n}function zu(e,t){if(e<0)throw V(new qt(t+" cannot be negative but was: "+e));return e}function ZIt(e,t){t.Tg("Hierarchical port constraint processing",1),wFt(e),knn(e),t.Ug()}function TH(e,t){e.b=p.Math.max(e.b,t.d),e.e+=t.r+(e.a.c.length==0?0:e.c),Qe(e.a,t)}function TXe(e){B2(e.c>=0),Izt(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function eRt(e){var t,n;for(n=new U(MZe(e));n.a<n.c.c.length;)t=c(G(n),692),t.Zf()}function tRt(e,t){var n,i,r;r=t.c.i,n=c(Ut(e.f,r),60),i=n.d.c-n.e.c,Uc(t.b,new z_e(i))}function EH(e,t){return c8t(k7(e.a,t,Gn(js(Qd,Id(Gn(js(t==null?0:zi(t),Gd)),15)))))}function EXe(e,t,n,i){this.$j(),this.a=t,this.b=e,this.c=null,this.c=new bFe(this,t,n,i)}function Ete(e,t,n,i,r){this.d=e,this.n=t,this.g=n,this.o=i,this.p=-1,r||(this.o=-2-i-1)}function CXe(){t0e.call(this),this.n=-1,this.g=null,this.i=null,this.j=null,this.Bb|=Ga}function MXe(e){U1e(),this.g=new yn,this.f=new yn,this.b=new yn,this.c=new Jm,this.i=e}function _me(){this.f=new fs,this.d=new d1e,this.c=new fs,this.a=new He,this.b=new He}function AXe(e){RF.call(this,e.yd(64)?zge(0,Ha(e.xd(),1)):TL,e.wd()),this.b=1,this.a=e}function nRt(e,t){return F4(),c($(t,(Jo(),T3)),15).a<e.gc()&&c($(t,T3),15).a>=0}function Dme(){Dme=Z,Bpt=Wn(Wn(Wn(new xr,(ts(),Cf),(cs(),u3)),Xd,$v),yc,Rv)}function NXe(){NXe=Z,zpt=Wn(Wn(Wn(new xr,(ts(),Cf),(cs(),u3)),Xd,$v),yc,Rv)}function Lme(){Lme=Z,Fpt=Wn(Wn(Wn(new xr,(ts(),Cf),(cs(),u3)),Xd,$v),yc,Rv)}function _Xe(){_Xe=Z,qpt=Wn(Wn(Wn(new xr,(ts(),Cf),(cs(),u3)),Xd,$v),yc,Rv)}function DXe(){DXe=Z,Hpt=Wn(Wn(Wn(new xr,(ts(),Cf),(cs(),u3)),Xd,$v),yc,Rv)}function LXe(){LXe=Z,Qpt=Wn(Wn(Wn(new xr,(ts(),Cf),(cs(),u3)),Xd,$v),yc,Rv)}function PXe(){PXe=Z,Jpt=Hc(Wn(Wn(new xr,(ts(),yc),(cs(),zU)),xc,PU),Ws,BU)}function IXe(){IXe=Z,_ft=Y(K(Hn,1),li,30,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function Pme(e,t){var n;n=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,0,n,e.b))}function Ime(e,t){var n;n=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,1,n,e.c))}function Cte(e,t){var n;n=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,4,n,e.c))}function Rme(e,t){var n;n=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,1,n,e.c))}function $me(e,t){var n;n=e.d,e.d=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,1,n,e.d))}function dS(e,t){var n;n=e.k,e.k=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,2,n,e.k))}function Mte(e,t){var n;n=e.D,e.D=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,2,n,e.D))}function CH(e,t){var n;n=e.f,e.f=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,8,n,e.f))}function MH(e,t){var n;n=e.i,e.i=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,7,n,e.i))}function Bme(e,t){var n;n=e.a,e.a=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,8,n,e.a))}function zme(e,t){var n;n=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,0,n,e.b))}function iRt(e,t,n){var i;e.b=t,e.a=n,i=(e.a&512)==512?new _Pe:new ZB,e.c=HXt(i,e.b,e.a)}function RXe(e,t){return R1(e.e,t)?(Hs(),yte(t)?new uq(t,e):new L_(t,e)):new Y$e(t,e)}function rRt(e){var t,n;return 0>e?new Q1e:(t=e+1,n=new GUe(t,e),new y0e(null,n))}function sRt(e,t){Mt();var n;return n=new f4(1),Yr(e)?uo(n,e,t):bl(n.f,e,t),new rY(n)}function oRt(e,t){var n;n=new om,c(t.b,68),c(t.b,68),c(t.b,68),Uc(t.a,new X0e(e,n,t))}function $Xe(e,t){var n;return ae(t,8)?(n=c(t,8),e.a==n.a&&e.b==n.b):!1}function cRt(e){var t;return t=$(e,(Ie(),Si)),ae(t,176)?cYe(c(t,176)):null}function BXe(e){var t;return e=p.Math.max(e,2),t=hwe(e),e>t?(t<<=1,t>0?t:hE):t}function Ate(e){switch(Yge(e.e!=3),e.e){case 2:return!1;case 0:return!0}return hPt(e)}function Fme(e){var t;return e.b==null?(Og(),Og(),wI):(t=e.sl()?e.rl():e.ql(),t)}function zXe(e,t){var n,i;for(i=t.vc().Jc();i.Ob();)n=c(i.Pb(),45),eL(e,n.jd(),n.kd())}function qme(e,t){var n;n=e.d,e.d=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,11,n,e.d))}function AH(e,t){var n;n=e.j,e.j=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,13,n,e.j))}function Hme(e,t){var n;n=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,21,n,e.b))}function Qme(e,t){e.r>0&&e.c<e.r&&(e.c+=t,e.i&&e.i.d>0&&e.g!=0&&Qme(e.i,t/e.r*e.i.d))}function _x(e){var t;return HZ(e.f.g,e.d),gn(e.b),e.c=e.a,t=c(e.a.Pb(),45),e.b=nwe(e),t}function FXe(e,t){var n;return n=t==null?-1:Lo(e.b,t,0),n<0?!1:(Nte(e,n),!0)}function yf(e,t){var n;return zt(t),n=t.g,e.b[n]?!1:(mr(e.b,n,t),++e.c,!0)}function NH(e,t){var n,i;return n=1-t,i=e.a[n],e.a[n]=i.a[t],i.a[t]=e,e.b=!0,i.b=!1,i}function Nte(e,t){var n;n=Cg(e.b,e.b.c.length-1),t<e.b.c.length&&(ku(e.b,t,n),Ett(e,t))}function lRt(e,t){(nH(),Nh?null:t.c).length==0&&qze(t,new Ti),uo(e.a,Nh?null:t.c,t)}function qXe(e,t,n){var i,r,o;for(o=e.a.length-1,r=e.b,i=0;i<n;r=r+1&o,++i)mr(t,i,e.a[r])}function uRt(e,t){typeof window===kL&&typeof window.$gwt===kL&&(window.$gwt[e]=t)}function aRt(e,t){hr(mi(new Tt(null,new Et(new an(e.b),1)),new x$e(e,t)),new O$e(e,t))}function M0(){M0=Z,jk=new bi(n3e),CU=new bi(Cct),VE=new bi(Mct),uP=new bi(Act)}function gS(){gS=Z,hP=new oge("TO_INTERNAL_LTR",0),Mce=new oge("TO_INPUT_DIRECTION",1)}function _H(){_H=Z,JJ=new vge("P1_NODE_PLACEMENT",0),C3=new vge("P2_EDGE_ROUTING",1)}function ew(){ew=Z,Aw=new HY("START",0),Y0=new HY("MIDDLE",1),Mw=new HY("END",2)}function HXe(e,t,n){Cbe.call(this,e,t,n),this.a=new yn,this.b=new yn,this.d=new cDe(this)}function QXe(e){ype.call(this),this.b=de(be($(e,(Ge(),Mf)))),this.a=c($(e,U1),225)}function fRt(e,t){var n,i;return n=c($(e,(Ge(),Xv)),8),i=c($(t,Xv),8),Ci(n.b,i.b)}function hRt(e,t){var n,i;i=new He,n=t;do It(i.c,n),n=c(Ut(e.k,n),17);while(n);return i}function _te(e,t,n){var i;return i=new He,Sye(e,t,i,n,!0,!0),e.b=new PH(i.c.length),i}function GXe(e,t){var n;return n=c(Ut(e.c,t),459),n||(n=new fPe,n.c=t,ci(e.c,n.c,n)),n}function Dte(e,t){var n=e.a,i=0;for(var r in n)n.hasOwnProperty(r)&&(t[i++]=r);return t}function Gme(e){var t,n;for(n=new on(e);n.e!=n.i.gc();)t=c(un(n),19),Nc(t,0),_l(t,0)}function UXe(e){var t,n;for(n=e.c.a.ec().Jc();n.Ob();)t=c(n.Pb(),221),sx(t,new Uqe(t.f))}function Ume(e){var t,n;for(n=e.c.a.ec().Jc();n.Ob();)t=c(n.Pb(),221),Rde(t,new Bet(t.e))}function sb(e,t){var n,i;for(n=e.Nc(),lS(n,0,n.length,t),i=0;i<n.length;i++)e.fd(i,n[i])}function Jc(e,t){var n;n=e.zb,e.zb=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,1,n,e.zb))}function lr(e,t){var n,i;n=(i=new hY,i),n.n=t,Ln((!e.s&&(e.s=new _e(Ol,e,21,17)),e.s),n)}function qi(e,t){var n,i;i=(n=new w0e,n),i.n=t,Ln((!e.s&&(e.s=new _e(Ol,e,21,17)),e.s),i)}function Lte(e,t){var n;return ae(t,18)?(n=c(t,18),e.Fc(n)):xte(e,c(Bn(t),22).Jc())}function DH(e,t){var n;n=e.xb,e.xb=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,3,n,e.xb))}function LH(e,t){var n;n=e.yb,e.yb=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,2,n,e.yb))}function dRt(e,t){t.Tg(Gct,1),hr(jo(new Tt(null,new Et(e.b,16)),new NO),new um),t.Ug()}function zi(e){return Yr(e)?_g(e):$2(e)?m4(e):R2(e)?Hze(e):jpe(e)?e.Hb():kpe(e)?Rm(e):cbe(e)}function Ss(e,t){var n,i,r;for(zt(t),n=!1,r=t.Jc();r.Ob();)i=r.Pb(),n=n|e.Ec(i);return n}function JXe(e){var t,n,i;for(t=0,i=e.Jc();i.Ob();)n=i.Pb(),t+=n!=null?zi(n):0,t=~~t;return t}function VXe(e){var t;return e==0?"UTC":(e<0?(e=-e,t="UTC+"):t="UTC-",t+NVe(e))}function Jme(e){return e.a<54?e.f<0?-1:e.f>0?1:0:(!e.c&&(e.c=oD(tc(e.f))),e.c).e}function XXe(e,t){t?e.B==null&&(e.B=e.D,e.D=null):e.B!=null&&(e.D=e.B,e.B=null)}function wr(e,t,n,i,r,o,a,d,b,v,x,T,A){return xtt(e,t,n,i,r,o,a,d,b,v,x,T,A),hne(e,!1),e}function Pte(e,t,n,i,r,o){var a;this.c=e,a=new He,M2e(e,a,t,e.b,n,i,r,o),this.a=new os(a,0)}function WXe(){this.c=new Xz(0),this.b=new Xz(L5e),this.d=new Xz(blt),this.a=new Xz(mlt)}function KXe(e){this.e=e,this.d=new Vz(uv(E4(this.e).gc())),this.c=this.e.a,this.b=this.e.c}function PH(e){this.b=e,this.a=ke(Hn,li,30,e+1,15,1),this.c=ke(Hn,li,30,e,15,1),this.d=0}function gRt(){return F0(),Y(K(Fje,1),Pe,246,0,[LJ,AP,NP,$je,Bje,Rje,zje,PJ,e9,yC])}function pRt(){return Us(),Y(K(ole,1),Pe,262,0,[sJ,Ca,tC,oJ,Uj,g3,nC,Qj,Gj,cJ])}function YXe(e,t){return de(be(mu(qD(Qc(new Tt(null,new Et(e.c.b,16)),new V_e(e)),t))))}function Vme(e,t){return de(be(mu(qD(Qc(new Tt(null,new Et(e.c.b,16)),new J_e(e)),t))))}function ZXe(e,t){return dh(),vf(Ch),p.Math.abs(0-t)<=Ch||t==0||isNaN(0)&&isNaN(t)?0:e/t}function bRt(e,t){return vS(),e==Cw&&t==Iv||e==Iv&&t==Cw||e==l3&&t==Pv||e==Pv&&t==l3}function mRt(e,t){return vS(),e==Cw&&t==Pv||e==Cw&&t==l3||e==Iv&&t==l3||e==Iv&&t==Pv}function wRt(e,t,n){var i,r,o;for(i=0,r=0;r<n;r++)o=t[r],e[r]=o<<1|i,i=o>>>31;i!=0&&(e[n]=i)}function Xme(e,t,n){var i,r;for(r=Pn(e,0);r.b!=r.d.c;)i=c(Dn(r),8),i.a+=t,i.b+=n;return e}function x7(e,t,n){var i;for(i=e.b[n&e.f];i;i=i.b)if(n==i.a&&k1(t,i.g))return i;return null}function k7(e,t,n){var i;for(i=e.c[n&e.f];i;i=i.d)if(n==i.f&&k1(t,i.i))return i;return null}function vRt(e,t){var n,i;return n=c(Se(e,(B0(),XJ)),15),i=c(Se(t,XJ),15),hc(n.a,i.a)}function yRt(e,t){var n;t.Tg("General Compactor",1),n=bzt(c(Se(e,(B0(),Aue)),387)),n.Bg(e)}function xRt(e,t,n){n.Tg("DFS Treeifying phase",1),Ezt(e,t),fXt(e,t),e.a=null,e.b=null,n.Ug()}function kRt(e,t,n,i){var r;r=new c4,Kp(r,"x",jQ(e,t,i.a)),Kp(r,"y",TQ(e,t,i.b)),N4(n,r)}function ORt(e,t,n,i){var r;r=new c4,Kp(r,"x",jQ(e,t,i.a)),Kp(r,"y",TQ(e,t,i.b)),N4(n,r)}function Ite(){Ite=Z,oM=new EPe,Xae=Y(K(Ol,1),r3,182,0,[]),Jvt=Y(K(tf,1),ske,62,0,[])}function H4(){H4=Z,_ce=new Qi("edgelabelcenterednessanalysis.includelabel",(Bt(),X0))}function Dl(){Dl=Z,COe=new h5,TOe=new f0,EOe=new Od,jOe=new Y9,MOe=new WM,AOe=new u2}function SRt(e,t){t.Tg(Gct,1),n2e(x8t(new Nz((yT(),new Tee(e,!1,!1,new K9))))),t.Ug()}function Rte(e){var t;return t=Ebe(e),RT(t.a,0)?(L2(),L2(),sce):(L2(),new _Z(t.b))}function $te(e){var t;return t=Ebe(e),RT(t.a,0)?(L2(),L2(),sce):(L2(),new _Z(t.c))}function jRt(e){var t;return t=Jq(e),RT(t.a,0)?(Zz(),Zz(),Gft):(Zz(),new Eze(t.b))}function TRt(e){return e.b.c.i.k==(Jt(),Ar)?c($(e.b.c.i,(Ie(),Si)),12):e.b.c}function eWe(e){return e.b.d.i.k==(Jt(),Ar)?c($(e.b.d.i,(Ie(),Si)),12):e.b.d}function tWe(e){switch(e.g){case 2:return Ue(),Yt;case 4:return Ue(),nn;default:return e}}function nWe(e){switch(e.g){case 1:return Ue(),mn;case 3:return Ue(),Kt;default:return e}}function ERt(e,t){var n;return n=dve(e),Qve(new ze(n.c,n.d),new ze(n.b,n.a),e.Kf(),t,e.$f())}function CRt(e){var t,n,i;for(i=0,n=new U(e.b);n.a<n.c.c.length;)t=c(G(n),26),t.p=i,++i}function O7(e,t){var n,i;for(zt(t),i=t.vc().Jc();i.Ob();)n=c(i.Pb(),45),e.yc(n.jd(),n.kd())}function MRt(e,t,n){var i;for(i=n.Jc();i.Ob();)if(!Xq(e,t,i.Pb()))return!1;return!0}function ARt(e,t){var n;for(Bn(t);e.Ob();)if(n=e.Pb(),!twe(c(n,9)))return!1;return!0}function NRt(e,t,n,i,r){var o;return n&&(o=Ki(t.Ah(),e.c),r=n.Oh(t,-1-(o==-1?i:o),null,r)),r}function _Rt(e,t,n,i,r){var o;return n&&(o=Ki(t.Ah(),e.c),r=n.Qh(t,-1-(o==-1?i:o),null,r)),r}function iWe(e){var t;if(e.b==-2){if(e.e==0)t=-1;else for(t=0;e.a[t]==0;t++);e.b=t}return e.b}function DRt(e){if(zt(e),e.length==0)throw V(new Vh("Zero length BigInteger"));oKt(this,e)}function Wme(e){this.i=e.gc(),this.i>0&&(this.g=this.$i(this.i+(this.i/8|0)+1),e.Oc(this.g))}function rWe(e,t,n){this.g=e,this.d=t,this.e=n,this.a=new He,OUt(this),Mt(),Rr(this.a,null)}function va(e,t,n,i,r,o,a){En.call(this,e,t),this.d=n,this.e=i,this.c=r,this.b=o,this.a=mf(a)}function Kme(e,t){t.q=e,e.d=p.Math.max(e.d,t.r),e.b+=t.d+(e.a.c.length==0?0:e.c),Qe(e.a,t)}function Bte(e,t){var n,i,r,o;return r=e.c,n=e.c+e.b,o=e.d,i=e.d+e.a,t.a>r&&t.a<n&&t.b>o&&t.b<i}function cv(e,t){var n,i;for(i=Pn(e,0);i.b!=i.d.c;)n=c(Dn(i),8),n.a+=t.a,n.b+=t.b;return e}function LRt(e,t){return t<e.b.gc()?c(e.b.Xb(t),9):t==e.b.gc()?e.a:c(Je(e.e,t-e.b.gc()-1),9)}function MD(e,t){return Bt(),Yr(e)?Vbe(e,qn(t)):$2(e)?lee(e,be(t)):R2(e)?yAt(e,Ye(t)):e.Dd(t)}function IH(e,t){var n;ae(t,93)?(c(e.c,78).Ek(),n=c(t,93),zXe(e,n)):c(e.c,78).Wb(t)}function sWe(e,t,n,i){ae(e.Cb,187)&&(c(e.Cb,187).tb=null),Jc(e,n),t&&BUt(e,t),i&&e.el(!0)}function AD(e,t){var n,i;for(zt(t),i=e.vc().Jc();i.Ob();)n=c(i.Pb(),45),t.Wd(n.jd(),n.kd())}function PRt(e){var t,n,i;return e.j==(Ue(),Kt)&&(t=pnt(e),n=Ml(t,nn),i=Ml(t,Yt),i||i&&n)}function Yme(){Yme=Z,Vpt=id(sBe(Wn(Wn(new xr,(ts(),yc),(cs(),zU)),xc,PU),Ws),BU)}function oWe(){oWe=Z,Ypt=id(sBe(Wn(Wn(new xr,(ts(),yc),(cs(),zU)),xc,PU),Ws),BU)}function cWe(){cWe=Z,Idt=Mn((Jt(),Y(K(Cce,1),Pe,252,0,[ur,Cr,Ar,Ic,ac,_h,fP,WE])))}function lWe(){lWe=Z,a1t=Mn((JQ(),Y(K(p6e,1),Pe,277,0,[Rce,zce,Ice,Hce,Bce,$ce,qce,Fce])))}function uWe(){uWe=Z,l2t=Mn((z0(),Y(K(c2t,1),Pe,287,0,[bTe,Ir,Ts,qk,us,Vi,Fk,Ph])))}function aWe(){aWe=Z,Tvt=Mn((ok(),Y(K(gI,1),Pe,235,0,[Gae,TV,dI,hI,Qae,jV,SV,Hae])))}function fWe(){return nE(),Y(K(fin,1),Pe,265,0,[lue,u9e,d9e,g9e,h9e,l9e,p9e,o9e,f9e,a9e,c9e])}function RH(){RH=Z,Due=new sZ(Zf,0),l8e=new sZ("POLAR_COORDINATE",1),c8e=new sZ("ID",2)}function pS(){pS=Z,JE=new Qi("debugSVG",(Bt(),!1)),tOe=new Qi("overlapsExisted",!0)}function IRt(){var e;return ace||(ace=new tPe,e=new tte(""),vTt(e,(R6(),Xke)),lRt(ace,e)),ace}function hWe(e){return q2(),e.A.Gc((Tu(),ay))&&!e.B.Gc((lu(),cI))?hYe(e):null}function dWe(e,t){var n;return n=$ye(v7(),e),n?(ri(t,(In(),cy),n),!0):!1}function Fu(e,t){var n;for(n=0;n<t.j.c.length;n++)c(yD(e,n),24).Fc(c(yD(t,n),18));return e}function RRt(e,t){var n,i;for(i=new U(t.b);i.a<i.c.c.length;)n=c(G(i),26),e.a[n.p]=XQt(n)}function lv(e){this.f=e,this.e=new Bbe(this.f.i),this.a=this.e,this.b=nwe(this),this.d=this.f.g}function gr(e,t){sq.call(this,Vvt,e,t),this.b=this,this.a=rl(e.Ah(),Dt(this.e.Ah(),this.c))}function gWe(){this.a=c(Ve((Sf(),TU)),15).a,this.c=de(be(Ve(EU))),this.b=de(be(Ve(mce)))}function pWe(e,t){e.a=Ns(e.a,1),e.c=p.Math.min(e.c,t),e.b=p.Math.max(e.b,t),e.d=Ns(e.d,t)}function zte(e,t,n,i){var r;r=e.a.length,n>r?n=r:en(t,n+1),e.a=Fa(e.a,0,t)+(""+i)+Hpe(e.a,n)}function ob(e,t,n){var i,r;return r=c(VT(e.d,t),15),i=c(VT(e.b,n),15),!r||!i?null:B4(e,r.a,i.a)}function $Rt(e,t,n){return Ci(v4(LS(e),new ze(t.e.a,t.e.b)),v4(LS(e),new ze(n.e.a,n.e.b)))}function BRt(e,t,n){return e==(ab(),RJ)?new b8:cu(t,1)!=0?new D1e(n.length):new uIe(n.length)}function yi(e,t){var n,i,r;if(n=e.qh(),n!=null&&e.th())for(i=0,r=n.length;i<r;++i)n[i].bj(t)}function bS(e,t){var n,i;for(n=e,i=Vr(n).e;i;){if(n=i,n==t)return!0;i=Vr(n).e}return!1}function A0(e){var t;return t=e.h,t==0?e.l+e.m*hk:t==z1?e.l+e.m*hk-wb:e}function zRt(e,t,n){var i,r;return i=e.a.f[t.p],r=e.a.f[n.p],i<r?-1:i==r?0:1}function uv(e){return e<3?(zu(e,Fot),e+1):e<hE?ks(p.Math.ceil(e/.75)):gi}function tc(e){return AL<e&&e<wb?e<0?p.Math.ceil(e):p.Math.floor(e):A0(VVt(e))}function bWe(e){switch(e.a.g){case 1:return new E$e;case 3:return new NZe;default:return new PK}}function Wt(e,t){var n;return(e.Db&t)!=0?(n=Gne(e,t),n==-1?e.Eb:q4(e.Eb)[n]):null}function FRt(e){var t;if(e.a==e.b.a)throw V(new Mo);return t=e.a,e.c=t,e.a=c(za(e.a.e),229),t}function mWe(e){var t;e.d==null?(++e.e,e.f=0,AKe(null)):(++e.e,t=e.d,e.d=null,e.f=0,AKe(t))}function qRt(e,t){var n,i;for(i=new U(t);i.a<i.c.c.length;)n=c(G(i),70),Qe(e.d,n),WQt(e,n)}function HRt(e,t){var n,i;for(i=new on(e);i.e!=i.i.gc();)n=c(un(i),19),fa(n,n.i+t.b,n.j+t.d)}function Uo(e,t){var n,i;return n=(i=new b1,i),n.G=t,!e.rb&&(e.rb=new V2(e,lh,e)),Ln(e.rb,n),n}function hi(e,t){var n,i;return n=(i=new Rz,i),n.G=t,!e.rb&&(e.rb=new V2(e,lh,e)),Ln(e.rb,n),n}function ND(e){var t,n,i;for(i=0,n=new h4(e.a);n.a<n.c.a.length;)t=d7(n),e.b.Gc(t)&&++i;return i}function QRt(e){var t,n,i;for(t=1,i=e.Jc();i.Ob();)n=i.Pb(),t=31*t+(n==null?0:zi(n)),t=~~t;return t}function _D(e){var t;return e<128?(mqe(),t=Ake[e],!t&&(t=Ake[e]=new qo(e)),t):new qo(e)}function $H(e){var t;if(e.g>1||e.Ob())return++e.a,e.g=0,t=e.i,e.Ob(),t;throw V(new Mo)}function GRt(e){ABe();var t;return LRe(cue,e)||(t=new w2,t.a=e,E0e(cue,e,t)),c(eo(cue,e),642)}function qa(e){var t,n,i,r;return r=e,i=0,r<0&&(r+=wb,i=z1),n=ks(r/hk),t=ks(r-n*hk),nl(t,n,i)}function wWe(e,t){var n;return n=e.a.get(t),n===void 0?++e.d:(W7t(e.a,t),--e.c,++e.b.g),n}function nc(e,t){var n;return t&&(n=t.lf(),n.dc()||(e.q?O7(e.q,n):e.q=new mBe(n))),e}function URt(e,t){var n,i,r;return n=t.p-e.p,n==0?(i=e.f.a*e.f.b,r=t.f.a*t.f.b,Ci(i,r)):n}function Zme(e,t){switch(t){case 1:return!!e.n&&e.n.i!=0;case 2:return e.k!=null}return Obe(e,t)}function JRt(e){return e.b.c.length!=0&&c(Je(e.b,0),70).a?c(Je(e.b,0),70).a:Aee(e)}function VRt(e,t){var n;try{t.be()}catch(i){if(i=kr(i),ae(i,81))n=i,It(e.c,n);else throw V(i)}}function XRt(e,t){var n;t.Tg("Edge and layer constraint edge reversal",1),n=xWt(e),itn(n),t.Ug()}function WRt(e,t){var n,i;return n=e.j,i=t.j,n!=i?n.g-i.g:e.p==t.p?0:n==(Ue(),Kt)?e.p-t.p:t.p-e.p}function mS(e,t){this.b=e,this.e=t,this.d=t.j,this.f=(Hs(),c(e,69).vk()),this.k=rl(t.e.Ah(),e)}function cb(e,t,n){this.b=(zt(e),e),this.d=(zt(t),t),this.e=(zt(n),n),this.c=this.d+(""+this.e)}function ewe(e,t,n,i,r){WWe.call(this,e,n,i,r),this.f=ke(Wd,qg,9,t.a.c.length,0,1),xh(t.a,this.f)}function S7(e,t,n,i,r){mr(e.c[t.g],n.g,i),mr(e.c[n.g],t.g,i),mr(e.b[t.g],n.g,r),mr(e.b[n.g],t.g,r)}function vWe(e,t){e.c&&(ort(e,t,!0),hr(new Tt(null,new Et(t,16)),new eDe(e))),ort(e,t,!1)}function DD(e){this.n=new He,this.e=new _i,this.j=new _i,this.k=new He,this.f=new He,this.p=e}function yWe(e){e.r=new Tr,e.w=new Tr,e.t=new He,e.i=new He,e.d=new Tr,e.a=new w4,e.c=new yn}function tw(){tw=Z,lP=new hF("UP",0),cP=new hF(qre,1),gce=new hF(dk,2),pce=new hF(gk,3)}function BH(){BH=Z,Gje=new KY("EQUALLY",0),tue=new KY("NORTH",1),Uje=new KY("NORTH_SOUTH",2)}function wS(){wS=Z,cle=new UY("ONE_SIDED",0),lle=new UY("TWO_SIDED",1),mP=new UY("OFF",2)}function xWe(){xWe=Z,cvt=Mn((lu(),Y(K(A7e,1),Pe,267,0,[b9,cI,wV,tM,vV,xV,yV,$ae,oI])))}function kWe(){kWe=Z,W2t=Mn((yv(),Y(K(Ks,1),Pe,96,0,[Nf,X1,_f,Lf,Zd,Ya,Xu,Df,Ka])))}function OWe(){OWe=Z,p1t=Mn((uL(),Y(K(S6e,1),Pe,268,0,[Vce,O6e,Wce,Kce,Xce,Yce,bP,Jce,Uce])))}function SWe(){SWe=Z,wpt=Mn((fL(),Y(K(_je,1),Pe,269,0,[Gle,Mje,Aje,Hle,Cje,Nje,NJ,qle,Qle])))}function xf(){xf=Z,Bv=new bF(cj,0),$j=new bF(dk,1),Bj=new bF(gk,2),Lce=new bF("TOP",3)}function zH(){zH=Z,oue=new tZ("OFF",0),t9=new tZ("SINGLE_EDGE",1),Zv=new tZ("MULTI_EDGE",2)}function LD(){LD=Z,oV=new Oge("MINIMUM_SPANNING_TREE",0),oTe=new Oge("MAXIMUM_SPANNING_TREE",1)}function KRt(e,t,n){var i,r;r=c($(e,(Ge(),go)),79),r&&(i=new tu,ine(i,0,r),cv(i,n),Ss(t,i))}function twe(e){var t;return t=c($(e,(Ie(),Yo)),64),e.k==(Jt(),Ar)&&(t==(Ue(),Yt)||t==nn)}function YRt(e){var t;if(e){if(t=e,t.dc())throw V(new Mo);return t.Xb(t.gc()-1)}return cGe(e.Jc())}function Fte(e,t,n,i){return n==1?(!e.n&&(e.n=new _e(zo,e,1,7)),_s(e.n,t,i)):xve(e,t,n,i)}function PD(e,t){var n,i;return i=(n=new R8,n),Jc(i,t),Ln((!e.A&&(e.A=new Cl(ul,e,7)),e.A),i),i}function ZRt(e,t,n){var i,r,o,a;return o=null,a=t,r=Vm(a,xoe),i=new D$e(e,n),o=(tet(i.a,i.b,r),r),o}function FH(e,t,n){var i,r,o,a;a=Vr(e),i=a.d,r=a.c,o=e.n,t&&(o.a=o.a-i.b-r.a),n&&(o.b=o.b-i.d-r.b)}function e$t(e,t){var n,i,r;return n=e.l+t.l,i=e.m+t.m+(n>>22),r=e.h+t.h+(i>>22),nl(n&uu,i&uu,r&z1)}function jWe(e,t){var n,i,r;return n=e.l-t.l,i=e.m-t.m+(n>>22),r=e.h-t.h+(i>>22),nl(n&uu,i&uu,r&z1)}function ID(e,t){var n,i;for(zt(t),i=t.Jc();i.Ob();)if(n=i.Pb(),!e.Gc(n))return!1;return!0}function qte(e){var t;return(!e.a||(e.Bb&1)==0&&e.a.Sh())&&(t=Qa(e),ae(t,160)&&(e.a=c(t,160))),e.a}function kr(e){var t;return ae(e,81)?e:(t=e&&e.__java$exception,t||(t=new mKe(e),XLe(t)),t)}function Hte(e){if(ae(e,196))return c(e,127);if(e)return null;throw V(new l4(zut))}function TWe(e){switch(e.g){case 0:return new cK;case 1:return new q$;case 2:default:return null}}function nwe(e){return e.a.Ob()?!0:e.a!=e.e?!1:(e.a=new sme(e.f.f),e.a.Ob())}function EWe(e,t){if(t==null)return!1;for(;e.a!=e.b;)if(xi(t,JH(e)))return!0;return!1}function CWe(e,t){return!e||!t||e==t?!1:CYe(e.d.c,t.d.c+t.d.b)&&CYe(t.d.c,e.d.c+e.d.b)}function t$t(){return nH(),Nh?new tte(null):hnt(IRt(),"com.google.common.base.Strings")}function Or(e,t){var n,i;return n=t.Nc(),i=n.length,i==0?!1:(ape(e.c,e.c.length,n),!0)}function n$t(e,t){var n,i;return n=e.c,i=t.e[e.p],i<n.a.c.length-1?c(Je(n.a,i+1),9):null}function i$t(e){var t,n;for(LYt(e),n=new U(e.d);n.a<n.c.c.length;)t=c(G(n),108),t.i&&jGt(t)}function MWe(e,t){var n,i;for(i=new U(e.b);i.a<i.c.c.length;)n=c(G(i),70),Me(n,(Ie(),_k),t)}function r$t(e,t,n){var i,r;for(r=new U(e.b);r.a<r.c.c.length;)i=c(G(r),19),fa(i,i.i+t,i.j+n)}function Qte(e){var t,n,i;for(t=new _i,i=Pn(e.d,0);i.b!=i.d.c;)n=c(Dn(i),65),ei(t,n.c);return t}function iwe(e){var t,n,i,r;for(t=1,n=0,r=e.gc();n<r;++n)i=e.Ti(n),t=31*t+(i==null?0:zi(i));return t}function AWe(e){var t,n;return n=(t=new R8,t),Jc(n,"T"),Ln((!e.d&&(e.d=new Cl(ul,e,11)),e.d),n),n}function NWe(e,t){var n;return n=Nd(t.a.gc()),hr(wH(new Tt(null,new Et(t,1)),e.i),new y$e(e,n)),n}function _We(e,t,n,i){var r;return uD(t,e.e.Pd().gc()),uD(n,e.c.Pd().gc()),r=e.a[t][n],mr(e.a[t],n,i),r}function s$t(e,t,n,i){c(n.b,68),c(n.b,68),c(i.b,68),c(i.b,68),c(i.b,68),Uc(i.a,new V0e(e,t,i))}function o$t(e,t){e.d==(_r(),po)||e.d==Ma?c(t.a,60).c.Ec(c(t.b,60)):c(t.b,60).c.Ec(c(t.a,60))}function rwe(e,t){this.c=e,this.d=t,this.b=this.d/this.c.c.Pd().gc()|0,this.a=this.d%this.c.c.Pd().gc()}function c$t(e,t,n,i,r){return GS(),p.Math.min(Lst(e,t,n,i,r),Lst(n,i,e,t,XF(new ze(r.a,r.b))))}function DWe(e,t){if(!e)throw V(new qt(tE("value already present: %s",Y(K(Br,1),Pt,1,5,[t]))))}function LWe(e,t,n){var i;cc(e.a),Uc(n.i,new JDe(e)),i=new zF(c(Ut(e.a,t.b),68)),LYe(e,i,t),n.f=i}function l$t(e){var t;Bg(e,!0),t=Fg,ki(e,(Ge(),Kj))&&(t+=c($(e,Kj),15).a),Me(e,Kj,$e(t))}function Gte(e){var t,n,i,r;for(r=new He,i=e.Jc();i.Ob();)n=c(i.Pb(),19),t=xv(n),Or(r,t);return r}function swe(e){var t,n;return n=(b0(),t=new o6,t),e&&Ln((!e.a&&(e.a=new _e(Gi,e,6,6)),e.a),n),n}function Q4(e,t){var n,i;if(i=0,e<64&&e<=t)for(t=t<64?t:63,n=e;n<=t;n++)i=Zh(i,Ld(1,n));return i}function PWe(e){switch(e.g){case 1:return cp;case 2:return Yd;case 3:return ZP;default:return eI}}function u$t(e){switch(c($(e,(Ge(),$o)),166).g){case 2:case 4:return!0;default:return!1}}function owe(e,t){switch(t){case 0:!e.o&&(e.o=new Nl((lc(),t1),Zg,e,0)),e.o.c.$b();return}hie(e,t)}function a$t(e,t){var n,i;for(Pq(t,"predicate"),i=0;e.Ob();i++)if(n=e.Pb(),t.Lb(n))return i;return-1}function cwe(e){Mt();var t,n,i;for(i=0,n=e.Jc();n.Ob();)t=n.Pb(),i=i+(t!=null?zi(t):0),i=i|0;return i}function f$t(e){var t;return t=new qe,t.a=e,t.b=m$t(e),t.c=ke(tt,Fe,2,2,6,1),t.c[0]=VXe(e),t.c[1]=VXe(e),t}function Y(e,t,n,i,r){return r.Pm=e,r.Qm=t,r.Rm=we,r.__elementTypeId$=n,r.__elementTypeCategory$=i,r}function h$t(e,t,n,i){return new K1e(Y(K(Eb,1),lG,45,0,[(zne(e,t),new _m(e,t)),(zne(n,i),new _m(n,i))]))}function qH(){qH=Z,Dce=new pF(Zf,0),VU=new pF(Vct,1),XU=new pF(Xct,2),dP=new pF("BOTH",3)}function vS(){vS=Z,Cw=new dF("Q1",0),Iv=new dF("Q4",1),Pv=new dF("Q2",2),l3=new dF("Q3",3)}function N0(){N0=Z,wP=new JY("ONLY_WITHIN_GROUP",0),F6e=new JY(Jre,1),Fv=new JY("ENFORCED",2)}function lb(){lb=Z,Zce=new GY(Zf,0),Hj=new GY("INCOMING_ONLY",1),d3=new GY("OUTGOING_ONLY",2)}function G4(){G4=Z,n2t=new H$,t2t=new nN}function Ute(){Ute=Z,ece={boolean:g8t,number:E9t,string:C9t,object:Stt,function:Stt,undefined:o9t}}function IWe(){IWe=Z,kpt=Mn((F0(),Y(K(Fje,1),Pe,246,0,[LJ,AP,NP,$je,Bje,Rje,zje,PJ,e9,yC])))}function RWe(){RWe=Z,O1t=Mn((Us(),Y(K(ole,1),Pe,262,0,[sJ,Ca,tC,oJ,Uj,g3,nC,Qj,Gj,cJ])))}function d$t(e){var t,n,i,r;for(n=e.a,i=0,r=n.length;i<r;++i)t=n[i],XWe(e,t,(Ue(),mn)),XWe(e,t,Kt)}function $We(e){var t,n,i;return n=e.n,i=e.o,t=e.d,new pf(n.a-t.b,n.b-t.d,i.a+(t.b+t.c),i.b+(t.d+t.a))}function g$t(e,t){return!e||!t||e==t?!1:iw(e.b.c,t.b.c+t.b.b)<0&&iw(t.b.c,e.b.c+e.b.b)<0}function Jte(e,t,n){return e>=128?!1:e<64?$T(Zr(Ld(1,e),n),0):$T(Zr(Ld(1,e-64),t),0)}function lwe(e,t,n){var i;if(i=e.gc(),t>i)throw V(new Q2(t,i));return e.Qi()&&(n=qQe(e,n)),e.Ci(t,n)}function p$t(e,t){var n,i;return n=c(c(Ut(e.g,t.a),49).a,68),i=c(c(Ut(e.g,t.b),49).a,68),Rrt(n,i)}function yS(e){var t,n,i;return t=~e.l+1&uu,n=~e.m+(t==0?1:0)&uu,i=~e.h+(t==0&&n==0?1:0)&z1,nl(t,n,i)}function b$t(e){GS();var t,n,i;for(n=ke(Wr,Fe,8,2,0,1),i=0,t=0;t<2;t++)i+=.5,n[t]=WFt(i,e);return n}function BWe(e,t){var n,i,r,o;for(n=!1,i=e.a[t].length,o=0;o<i-1;o++)r=o+1,n=n|Czt(e,t,o,r);return n}function zWe(e){var t,n;return n=new iH,nc(n,e),Me(n,(M0(),jk),e),t=new yn,vYt(e,n,t),Ken(e,n,t),n}function Me(e,t,n){return n==null?(!e.q&&(e.q=new yn),$4(e.q,t)):(!e.q&&(e.q=new yn),ci(e.q,t,n)),e}function RD(e,t,n){return n==null?(!e.q&&(e.q=new yn),$4(e.q,t)):(!e.q&&(e.q=new yn),ci(e.q,t,n)),e}function FWe(e,t){return v4(LS(c($(t,(Jo(),Bw)),87)),new ze(e.c.e.a-e.b.e.a,e.c.e.b-e.b.e.b))<=0}function qWe(e,t){this.b=e,bx.call(this,(c(ce(De((O0(),Gt).o),10),20),t.i),t.g),this.a=(Ite(),Xae)}function uwe(e,t,n){this.q=new p.Date,this.q.setFullYear(e+H0,t,n),this.q.setHours(0,0,0,0),rE(this,0)}function awe(){this.o=null,this.k=null,this.j=null,this.d=null,this.b=null,this.n=null,this.a=null}function HWe(e,t){for(;e.g==null&&!e.c?dbe(e):e.g==null||e.i!=0&&c(e.g[e.i-1],51).Ob();)t.Bi(RQ(e))}function $D(e,t,n){switch(n.g){case 2:e.b=t;break;case 1:e.c=t;break;case 4:e.d=t;break;case 3:e.a=t}}function fwe(e,t){switch(t){case 7:return!!e.e&&e.e.i!=0;case 8:return!!e.d&&e.d.i!=0}return s2e(e,t)}function QWe(e){var t,n;return t=e.t-e.k[e.o.p]*e.d+e.j[e.o.p]>e.f,n=e.u+e.e[e.o.p]*e.d>e.f*e.s*e.d,t||n}function j7(e){var t;return t=e.a[e.b],t==null?null:(mr(e.a,e.b,null),e.b=e.b+1&e.a.length-1,t)}function GWe(e,t,n){var i,r;return i=new fte(t,n),r=new ni,e.b=vit(e,e.b,i,r),r.b||++e.c,e.b.b=!1,r.d}function UWe(e){var t,n;return n=cL(e.h),n==32?(t=cL(e.m),t==32?cL(e.l)+32:t+20-10):n-12}function hwe(e){var t;if(e<0)return ls;if(e==0)return 0;for(t=hE;(t&e)==0;t>>=1);return t}function m$t(e){var t;return e==0?"Etc/GMT":(e<0?(e=-e,t="Etc/GMT-"):t="Etc/GMT+",t+NVe(e))}function dwe(e){var t;return(!e.c||(e.Bb&1)==0&&(e.c.Db&64)!=0)&&(t=Qa(e),ae(t,89)&&(e.c=c(t,29))),e.c}function _0(e){var t,n;for(n=new U(e.a.b);n.a<n.c.c.length;)t=c(G(n),84),t.g.c=-t.g.c-t.g.b;HQ(e)}function D0(e){var t,n;for(n=new U(e.a.b);n.a<n.c.c.length;)t=c(G(n),60),t.d.c=-t.d.c-t.d.b;yye(e)}function w$t(e){var t,n,i;return t=c(e.e&&e.e(),10),i=(n=t.slice(),c(pte(n,t),10)),new da(t,i,t.length)}function Vte(e){var t,n,i;t=~e.l+1&uu,n=~e.m+(t==0?1:0)&uu,i=~e.h+(t==0&&n==0?1:0)&z1,e.l=t,e.m=n,e.h=i}function Po(e){var t,n,i,r,o;for(t=new fs,i=e,r=0,o=i.length;r<o;++r)n=i[r],t.a+=n.a,t.b+=n.b;return t}function gwe(e,t){Mt();var n,i,r,o,a;for(a=!1,i=t,r=0,o=i.length;r<o;++r)n=i[r],a=a|e.Ec(n);return a}function Xte(e,t,n){var i,r,o,a;return o=null,a=t,r=Vm(a,"labels"),i=new B$e(e,n),o=(Tnt(i.a,i.b,r),r),o}function JWe(e,t,n){var i;return i=new He,Sye(e,t,i,(Ue(),nn),!0,!1),Sye(e,n,i,Yt,!1,!1),i}function v$t(e,t,n,i){var r;return r=aye(e,t,n,i),!r&&(r=xBt(e,n,i),r&&!Jx(e,t,r))?null:r}function y$t(e,t,n,i){var r;return r=fye(e,t,n,i),!r&&(r=une(e,n,i),r&&!Jx(e,t,r))?null:r}function VWe(e,t){var n;for(n=0;n<e.a.a.length;n++)if(!c(xqe(e.a,n),181).Lb(t))return!1;return!0}function x$t(e,t,n){if(Bn(t),n.Ob())for(Nge(t,SHe(n.Pb()));n.Ob();)Nge(t,e.a),Nge(t,SHe(n.Pb()));return t}function pwe(e){Mt();var t,n,i;for(i=1,n=e.Jc();n.Ob();)t=n.Pb(),i=31*i+(t!=null?zi(t):0),i=i|0;return i}function XWe(e,t,n){var i,r,o,a;for(a=N7(t,n),o=0,r=a.Jc();r.Ob();)i=c(r.Pb(),12),ci(e.c,i,$e(o++))}function ub(e){var t,n;for(n=new U(e.a.b);n.a<n.c.c.length;)t=c(G(n),84),t.f.$b();k9t(e.b,e),cit(e)}function _1(e){var t;return S0(e),t=new qr,e.a.zd(t)?(B6(),new wY(zt(t.a))):(B6(),B6(),Uke)}function bwe(e){var t;return e.b<=0?!1:(t=Xh("MLydhHmsSDkK",pl(ws(e.c,0))),t>1||t>=0&&e.b<3)}function k$t(e,t,n){return!D6(mi(new Tt(null,new Et(e.c,16)),new S6(new k$e(t,n)))).zd((Fp(),Ok))}function Wte(e,t,n){this.g=e,this.e=new fs,this.f=new fs,this.d=new _i,this.b=new _i,this.a=t,this.c=n}function Kte(e,t,n,i){this.b=new He,this.n=new He,this.i=i,this.j=n,this.s=e,this.t=t,this.r=0,this.d=0}function WWe(e,t,n,i){this.b=new yn,this.g=new yn,this.d=(M7(),_J),this.c=e,this.e=t,this.d=n,this.a=i}function KWe(e,t,n){e.g=die(e,t,(Ue(),nn),e.b),e.d=die(e,n,nn,e.b),!(e.g.c==0||e.d.c==0)&&zet(e)}function YWe(e,t,n){e.g=die(e,t,(Ue(),Yt),e.j),e.d=die(e,n,Yt,e.j),!(e.g.c==0||e.d.c==0)&&zet(e)}function O$t(e,t,n,i,r){var o;return o=rye(e,t),n&&Vte(o),r&&(e=nqt(e,t),i?V0=yS(e):V0=nl(e.l,e.m,e.h)),o}function S$t(e,t,n,i,r){var o,a;if(a=e.length,o=n.length,t<0||i<0||r<0||t+r>a||i+r>o)throw V(new r1e)}function ZWe(e,t){W_(e>=0,"Negative initial capacity"),W_(t>=0,"Non-positive load factor"),cc(this)}function xS(){xS=Z,d6e=new b5,g6e=new RW,Wdt=new $W,Xdt=new BW,Vdt=new TR,h6e=(zt(Vdt),new ft)}function T7(){T7=Z,b9e=new iZ(Zf,0),uue=new iZ("MIDDLE_TO_MIDDLE",1),PP=new iZ("AVOID_OVERLAP",2)}function mwe(e,t,n){switch(t){case 0:!e.o&&(e.o=new Nl((lc(),t1),Zg,e,0)),IH(e.o,n);return}pie(e,t,n)}function j$t(e,t){switch(t.g){case 0:ae(e.b,638)||(e.b=new gWe);break;case 1:ae(e.b,639)||(e.b=new hqe)}}function eKe(e){switch(e.g){case 0:return new U$;default:throw V(new qt(GG+(e.f!=null?e.f:""+e.g)))}}function tKe(e){switch(e.g){case 0:return new iN;default:throw V(new qt(GG+(e.f!=null?e.f:""+e.g)))}}function nKe(e){switch(e.g){case 0:return new tx;default:throw V(new qt(Bse+(e.f!=null?e.f:""+e.g)))}}function iKe(e){switch(e.g){case 0:return new V$;default:throw V(new qt(Bse+(e.f!=null?e.f:""+e.g)))}}function rKe(e){switch(e.g){case 0:return new Q$;default:throw V(new qt(Bse+(e.f!=null?e.f:""+e.g)))}}function kS(e,t){if(!e.Ji()&&t==null)throw V(new qt("The 'no null' constraint is violated"));return t}function wwe(e){var t,n,i;for(t=new tu,i=Pn(e,0);i.b!=i.d.c;)n=c(Dn(i),8),z6(t,0,new Ms(n));return t}function _g(e){var t,n;for(t=0,n=0;n<e.length;n++)t=(t<<5)-t+(en(n,e.length),e.charCodeAt(n))|0;return t}function T$t(e){var t,n;t=c($(e,(Ie(),Jl)),9),t&&(n=t.c,dl(n.a,t),n.a.c.length==0&&dl(Vr(t).b,n))}function E$t(e,t){var n,i;return n=c(Se(e,(Th(),zP)),15).a,i=c(Se(t,zP),15).a,n==i||n<i?-1:n>i?1:0}function sKe(e,t){var n,i,r;for(r=e.b;r;){if(n=e.a.Le(t,r.d),n==0)return r;i=n<0?0:1,r=r.a[i]}return null}function Dx(e,t){var n,i,r,o,a;for(i=t,r=0,o=i.length;r<o;++r)n=i[r],a=new xHe(e),n.tf(a),NYt(a);cc(e.f)}function oKe(e,t,n){var i,r;this.g=e,this.c=t,this.a=this,this.d=this,r=BXe(n),i=ke(Sft,EL,229,r,0,1),this.b=i}function C$t(){vi();var e;return tfe||(e=h7t(q0("M",!0)),e=mq(q0("M",!1),e),tfe=e,tfe)}function vwe(e){switch(e.g){case 1:return blt;default:case 2:return 0;case 3:return mlt;case 4:return L5e}}function ywe(e,t){return nit(e,t)?(jt(e.b,c($(t,(Ie(),Q1)),24),t),ei(e.a,t),!0):!1}function M$t(e){return Qe(e.c,(G4(),n2t)),Ome(e.a,de(be(Ve((yne(),AJ)))))?new wm:new ZDe(e)}function A$t(e){for(;!e.d||!e.d.Ob();)if(e.b&&!pT(e.b))e.d=c(M4(e.b),51);else return null;return e.d}function N$t(e,t){return ki(e,(Ie(),Ri))&&ki(t,Ri)?c($(e,Ri),15).a-c($(t,Ri),15).a:0}function _$t(e,t){return ki(e,(Ie(),Ri))&&ki(t,Ri)?c($(t,Ri),15).a-c($(e,Ri),15).a:0}function Yte(e,t){var n;return t===e?!0:ae(t,231)?(n=c(t,231),xi(e.Zb(),n.Zb())):!1}function Zte(e){switch(e.i){case 2:return!0;case 1:return!1;case-1:++e.c;default:return e.Yl()}}function cKe(e){return Nh?ke(Vft,ict,574,0,0,1):c(xh(e.a,ke(Vft,ict,574,e.a.c.length,0,1)),848)}function xwe(e,t){var n;t*2+1>=e.b.c.length||(xwe(e,2*t+1),n=2*t+2,n<e.b.c.length&&xwe(e,n),Ett(e,t))}function D$t(e,t){var n,i;for(i=Pn(e,0);i.b!=i.d.c;)n=c(Dn(i),221),n.e.length>0&&(t.Ad(n),n.i&&lFt(n))}function kwe(e,t,n){var i;for(i=n-1;i>=0&&e[i]===t[i];i--);return i<0?0:IY(Zr(e[i],Js),Zr(t[i],Js))?-1:1}function L$t(e,t){var n;return!e||e==t||!ki(t,(Ie(),_w))?!1:(n=c($(t,(Ie(),_w)),9),n!=e)}function Lx(e,t,n){var i,r;return r=(i=new dY,i),to(r,t,n),Ln((!e.q&&(e.q=new _e(tf,e,11,10)),e.q),r),r}function ene(e,t){var n,i;return i=c(Wt(e.a,4),131),n=ke(Jae,Aoe,420,t,0,1),i!=null&&wc(i,0,n,0,i.length),n}function tne(e){var t,n,i,r;for(r=_8t(Ovt,e),n=r.length,i=ke(tt,Fe,2,n,6,1),t=0;t<n;++t)i[t]=r[t];return i}function lKe(e,t){var n;return n=new Eie((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,t),e.e!=null||(n.c=e),n}function P$t(e,t){var n,i;for(i=e.Zb().Bc().Jc();i.Ob();)if(n=c(i.Pb(),18),n.Gc(t))return!0;return!1}function uKe(e,t,n){var i,r,o,a;for(zt(n),a=!1,o=e.dd(t),r=n.Jc();r.Ob();)i=r.Pb(),o.Rb(i),a=!0;return a}function I$t(e,t){var n;return e===t?!0:ae(t,93)?(n=c(t,93),Sve(Gp(e),n.vc())):!1}function aKe(e,t,n){var i,r;for(r=n.Jc();r.Ob();)if(i=c(r.Pb(),45),e.ze(t,i.kd()))return!0;return!1}function fKe(e,t,n){return e.d[t.p][n.p]||(AFt(e,t,n),e.d[t.p][n.p]=!0,e.d[n.p][t.p]=!0),e.a[t.p][n.p]}function OS(e,t){e.D==null&&e.B!=null&&(e.D=e.B,e.B=null),Mte(e,t==null?null:(zt(t),t)),e.C&&e.fl(null)}function HH(){HH=Z,Fae=new NF("ELK",0),F7e=new NF("JSON",1),z7e=new NF("DOT",2),q7e=new NF("SVG",3)}function E7(){E7=Z,xue=new kF(Jre,0),UJ=new kF(klt,1),yue=new kF("FAN",2),vue=new kF("CONSTRAINT",3)}function BD(){BD=Z,VJ=new rZ(Zf,0),H9e=new rZ("RADIAL_COMPACTION",1),Q9e=new rZ("WEDGE_COMPACTION",2)}function C7(){C7=Z,iue=new YY("STACKED",0),nue=new YY("REVERSE_STACKED",1),_P=new YY("SEQUENCED",2)}function ya(){ya=Z,Wke=new $Y("CONCURRENT",0),wl=new $Y("IDENTITY_FINISH",1),Kke=new $Y("UNORDERED",2)}function D1(){D1=Z,bV=new hZ(R4e,0),Yg=new hZ("INCLUDE_CHILDREN",1),XC=new hZ("SEPARATE_CHILDREN",2)}function QH(){QH=Z,k7e=new qp(15),U2t=new Ur((In(),Ih),k7e),VC=Qk,w7e=m2t,v7e=zb,x7e=D3,y7e=sy}function nne(){nne=Z,Oce=PQe(Y(K(JC,1),Pe,87,0,[(_r(),po),vo])),Sce=PQe(Y(K(JC,1),Pe,87,0,[Ma,Rh]))}function R$t(e){var t,n,i;for(t=0,i=ke(Wr,Fe,8,e.b,0,1),n=Pn(e,0);n.b!=n.d.c;)i[t++]=c(Dn(n),8);return i}function ine(e,t,n){var i,r,o;for(i=new _i,o=Pn(n,0);o.b!=o.d.c;)r=c(Dn(o),8),ei(i,new Ms(r));uKe(e,t,i)}function $$t(e,t){var n;n=Ve((yne(),AJ))!=null&&t.Rg()!=null?de(be(t.Rg()))/de(be(Ve(AJ))):1,ci(e.b,t,n)}function B$t(e,t){var n,i;return n=c(e.d.Ac(t),18),n?(i=e.e.hc(),i.Fc(n),e.e.d-=n.gc(),n.$b(),i):null}function Owe(e,t){var n,i;if(i=e.c[t],i!=0)for(e.c[t]=0,e.d-=i,n=t+1;n<e.a.length;)e.a[n]-=i,n+=n&-n}function Swe(e){var t;if(t=e.a.c.length,t>0)return V6(t-1,e.a.c.length),Cg(e.a,t-1);throw V(new KLe)}function z$t(e,t,n){if(t<0)throw V(new qc(Glt+t));t<e.j.c.length?ku(e.j,t,n):(cUe(e,t),Qe(e.j,n))}function hKe(e,t,n){if(e>t)throw V(new qt(dG+e+rct+t));if(e<0||t>n)throw V(new C1e(dG+e+Gxe+t+qxe+n))}function dKe(e){if(!e.a||(e.a.i&8)==0)throw V(new co("Enumeration class expected for layout option "+e.f))}function gKe(e){FQe.call(this,"The given string does not match the expected format for individual spacings.",e)}function pKe(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 ZZ(),yke;case 1:return new n4(_tt(new h4(e)));default:return new QPe(e)}}function bKe(e){switch(e.gc()){case 0:return ZZ(),yke;case 1:return new n4(e.Jc().Pb());default:return new Y1e(e)}}function jwe(e){var t;return t=(!e.a&&(e.a=new _e(K1,e,9,5)),e.a),t.i!=0?M8t(c(ce(t,0),691)):null}function F$t(e,t){var n;return n=Ns(e,t),IY(Uee(e,t),0)|LF(Uee(e,n),0)?n:Ns(TL,Uee(Jp(n,63),1))}function Twe(e,t,n){var i,r;return ev(t,e.c.length),i=n.Nc(),r=i.length,r==0?!1:(ape(e.c,t,i),!0)}function q$t(e,t){var n,i;for(n=e.a.length-1;t!=e.b;)i=t-1&n,mr(e.a,t,e.a[i]),t=i;mr(e.a,e.b,null),e.b=e.b+1&n}function H$t(e,t){var n,i;for(n=e.a.length-1,e.c=e.c-1&n;t!=e.c;)i=t+1&n,mr(e.a,t,e.a[i]),t=i;mr(e.a,e.c,null)}function av(e){var t;++e.j,e.i==0?e.g=null:e.i<e.g.length&&(t=e.g,e.g=e.$i(e.i),wc(t,0,e.g,0,e.i))}function Px(e){return(e.c!=e.b.b||e.i!=e.g.b)&&(_2(e.a.c,0),Or(e.a,e.b),Or(e.a,e.g),e.c=e.b.b,e.i=e.g.b),e.a}function Ou(e){return Yr(e)?tt:$2(e)?jr:R2(e)?or:jpe(e)||kpe(e)?e.Pm:e.Pm||Array.isArray(e)&&K(Tft,1)||Tft}function Q$t(e){return e?(e.i&1)!=0?e==Sl?or:e==Hn?Pr:e==wy?Lj:e==is?jr:e==Gw?Tw:e==B3?Ew:e==$l?xk:HE:e:null}function mKe(e){KPe(),FF(this),Dq(this),this.e=e,git(this,e),this.g=e==null?ml:To(e),this.a="",this.b=e,this.a=""}function wKe(){y9t.call(this,new rme(uv(16))),zu(2,Rot),this.b=2,this.a=new Kpe(null,null,0,null),u_(this.a,this.a)}function ab(){ab=Z,DP=new yF("BARYCENTER",0),OC=new yF(Uct,1),RJ=new yF(Jct,2),IJ=new yF("MEDIAN",3)}function M7(){M7=Z,Ule=new XY("DUMMY_NODE_OVER",0),Dje=new XY("DUMMY_NODE_UNDER",1),_J=new XY("EQUAL",2)}function SS(){SS=Z,rue=new ZY("CONSERVATIVE",0),Xje=new ZY("CONSERVATIVE_SOFT",1),kC=new ZY("SLOPPY",2)}function vKe(e){var t,n,i;for(i=0,n=new Ht(Xt(e.a.Jc(),new F));hn(n);)t=c(rn(n),17),t.c.i==t.d.i||++i;return i}function GH(e){var t,n,i,r,o;for(o=1,n=e,i=0,r=n.length;i<r;++i)t=n[i],o=31*o+(t!=null?zi(t):0),o=o|0;return o}function Mn(e){var t,n,i,r,o;for(t={},i=e,r=0,o=i.length;r<o;++r)n=i[r],t[":"+(n.f!=null?n.f:""+n.g)]=n;return t}function yKe(e,t,n){var i,r,o,a;for(r=n,o=0,a=r.length;o<a;++o)if(i=r[o],e.b.ze(t,i.jd()))return i;return null}function G$t(e){var t,n;if(e==null)return null;for(t=0,n=e.length;t<n;t++)if(!nqe(e[t]))return e[t];return null}function rne(e,t){return!e||t&&!e.j||ae(e,129)&&c(e,129).a.b==0?0:e.ff()}function UH(e,t){return!e||t&&!e.k||ae(e,129)&&c(e,129).a.a==0?0:e.gf()}function xKe(e,t){var n;for(n=0;n<t.length;n++)if(e==(en(n,t.length),t.charCodeAt(n)))return!0;return!1}function U$t(e,t){return t<e.length&&(en(t,e.length),e.charCodeAt(t)!=63)&&(en(t,e.length),e.charCodeAt(t)!=35)}function kKe(e,t){var n,i,r;for(r=t-e.f,i=new U(e.d);i.a<i.c.c.length;)n=c(G(i),320),xYe(n,n.e,n.f+r);e.f=t}function J$t(e){var t,n;for(n=new U(e.r);n.a<n.c.c.length;)if(t=c(G(n),9),e.n[t.p]<=0)return t;return null}function V$t(e){var t;return t=new RVe(e),lD(e.a,Ndt,new Qo(Y(K(aP,1),Pt,378,0,[t]))),t.d&&Qe(t.f,t.d),t.f}function X$t(e){var t;for(Bn(e),Q0e(!0,"numberToAdvance must be nonnegative"),t=0;t<0&&hn(e);t++)rn(e);return t}function Ewe(e,t){var n,i,r;return i=!1,n=t.q.d,t.d<e.b&&(r=wye(t.q,e.b),t.q.d>r&&(uet(t.q,r),i=n!=t.q.d)),i}function OKe(e,t){var n,i,r,o,a,d,b,v;return b=t.i,v=t.j,i=e.f,r=i.i,o=i.j,a=b-r,d=v-o,n=p.Math.sqrt(a*a+d*d),n}function SKe(e,t){var n,i,r;n=e,r=0;do{if(n==t)return r;if(i=n.e,!i)throw V(new a_);n=Vr(i),++r}while(!0)}function fb(e,t){var n,i,r;i=e.Wk(t,null),r=null,t&&(r=(_6(),n=new Tm,n),fS(r,e.r)),i=Sh(e,r,i),i&&i.mj()}function W$t(e,t){var n,i;for(i=cu(e.d,1)!=0,n=!0;n;)n=!1,n=t.c.kg(t.e,i),n=n|dL(e,t,i,!1),i=!i;Ume(e)}function Cwe(e,t){var n,i;return i=lQ(e),i||(n=(Vie(),_nt(t)),i=new FLe(n),Ln(i.Cl(),e)),i}function zD(e,t){var n,i;return n=c(e.c.Ac(t),18),n?(i=e.hc(),i.Fc(n),e.d-=n.gc(),n.$b(),e.mc(i)):e.jc()}function K$t(e){var t;if(!(e.c.c<0?e.a>=e.c.b:e.a<=e.c.b))throw V(new Mo);return t=e.a,e.a+=e.c.c,++e.b,$e(t)}function Y$t(e){var t,n;if(e==null)return!1;for(t=0,n=e.length;t<n;t++)if(!nqe(e[t]))return!1;return!0}function jKe(e,t){var n;for(n=0;n<t.length;n++)if(e==(en(n,t.length),t.charCodeAt(n)))return!0;return!1}function TKe(e){var t;if(e.c!=0)return e.c;for(t=0;t<e.a.length;t++)e.c=e.c*33+(e.a[t]&-1);return e.c=e.c*e.e,e.c}function JH(e){var t;return gn(e.a!=e.b),t=e.d.a[e.a],yze(e.b==e.d.c&&t!=null),e.c=e.a,e.a=e.a+1&e.d.a.length-1,t}function EKe(e,t,n,i){var r,o;e.a=t,o=i?0:1,e.f=(r=new ntt(e.c,e.a,n,o),new Bit(n,e.a,r,e.e,e.b,e.c==(ab(),OC)))}function Z$t(e,t,n){var i,r;for(r=t.a.a.ec().Jc();r.Ob();)if(i=c(r.Pb(),60),gQe(e,i,n))return!0;return!1}function fv(e,t){Bn(e);try{return e.xc(t)}catch(n){if(n=kr(n),ae(n,214)||ae(n,174))return null;throw V(n)}}function eBt(e,t){Bn(e);try{return e.Ac(t)}catch(n){if(n=kr(n),ae(n,214)||ae(n,174))return null;throw V(n)}}function sne(e,t,n){return p.Math.abs(t-e)<BG||p.Math.abs(n-e)<BG?!0:t-e>BG?e-n>BG:n-e>BG}function _c(e,t){var n;return So(e)&&So(t)&&(n=e-t,!isNaN(n))?n:H2e(So(e)?qa(e):e,So(t)?qa(t):t)}function tBt(e,t,n){var i;i=new nnt(e,t),jt(e.r,t.$f(),i),n&&!ZT(e.u)&&(i.c=new DQe(e.d),Uc(t.Pf(),new WNe(i)))}function one(e){var t;return t=new Fge(e.a),nc(t,e),Me(t,(Ie(),Si),e),t.o.a=e.g,t.o.b=e.f,t.n.a=e.i,t.n.b=e.j,t}function nBt(e){var t;return t=BF(Jpt),c($(e,(Ie(),Rc)),24).Gc((Us(),Uj))&&Wn(t,(ts(),yc),(cs(),HU)),t}function iBt(e){var t,n,i,r;for(r=new Tr,i=new U(e);i.a<i.c.c.length;)n=c(G(i),19),t=ZXt(n),Ss(r,t);return r}function Mwe(e,t){var n,i,r;for(r=1,n=e,i=t>=0?t:-t;i>0;)i%2==0?(n*=n,i=i/2|0):(r*=n,i-=1);return t<0?1/r:r}function rBt(e,t){var n,i,r;for(r=1,n=e,i=t>=0?t:-t;i>0;)i%2==0?(n*=n,i=i/2|0):(r*=n,i-=1);return t<0?1/r:r}function L0(e,t){var n,i,r,o;return o=(r=e?lQ(e):null,Ott((i=t,r&&r.El(),i))),o==t&&(n=lQ(e),n&&n.El()),o}function Awe(e,t,n){var i,r;return r=e.a,e.a=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new Jr(e,1,1,r,t),n?n.lj(i):n=i),n}function CKe(e,t,n){var i,r;return r=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new Jr(e,1,3,r,t),n?n.lj(i):n=i),n}function MKe(e,t,n){var i,r;return r=e.f,e.f=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new Jr(e,1,0,r,t),n?n.lj(i):n=i),n}function sBt(e,t,n,i){var r,o;for(o=e.Jc();o.Ob();)r=c(o.Pb(),70),r.n.a=t.a+(i.a-r.o.a)/2,r.n.b=t.b,t.b+=r.o.b+n}function oBt(e,t,n,i,r,o,a,d){var b;for(b=n;o<a;)b>=i||t<n&&d.Le(e[t],e[b])<=0?mr(r,o++,e[t++]):mr(r,o++,e[b++])}function AKe(e){var t,n;if(e!=null)for(n=0;n<e.length;++n)t=e[n],t&&(c(t.g,375),t.i)}function cBt(e,t,n,i,r){t==0||i==0||(t==1?r[i]=O2e(r,n,i,e[0]):i==1?r[t]=O2e(r,e,t,n[0]):sJt(e,n,r,t,i))}function cne(e){return(Ue(),xl).Gc(e.j)?de(be($(e,(Ie(),Jj)))):Po(Y(K(Wr,1),Fe,8,0,[e.i.n,e.n,e.a])).b}function NKe(e,t){var n;return n=new Oh(e),pu(n,(Jt(),Cr)),Me(n,(Ie(),Si),t),Me(n,(Ge(),ar),(es(),kc)),n}function _Ke(e,t,n){var i,r;for(r=e.Jc();r.Ob();){if(i=c(r.Pb(),9),i==t)return-1;if(i==n)return 1}return 0}function lBt(e,t,n){var i,r,o,a;for(i=n/e.gc(),r=0,a=e.Jc();a.Ob();)o=c(a.Pb(),189),kKe(o,o.f+i*r),pHt(o,t,i),++r}function uBt(e){var t,n,i;for(i=new U(e.b);i.a<i.c.c.length;)n=c(G(i),221),t=n.c.ig()?n.f:n.a,t&&dZt(t,n.j)}function aBt(e){var t,n,i;for(i=0,n=new U(e.a);n.a<n.c.c.length;)t=c(G(n),175),i=p.Math.max(i,t.g);return i}function Nwe(){this.a=new t6,this.f=new zDe(this),this.b=new FDe(this),this.i=new qDe(this),this.e=new HDe(this)}function jS(){jS=Z,KP=new TF(R4e,0),pV=new TF("CONTAINER",1),l7e=new TF("PARENT",2),u7e=new TF("ROOT",3)}function U4(){U4=Z,N7e=new gZ("PARALLEL_NODE",0),fy=new gZ("HIERARCHICAL_NODE",1),kV=new gZ("ROOT_NODE",2)}function VH(){VH=Z,P8e=new uZ("EQUAL_BETWEEN_STRUCTURES",0),I8e=new uZ("TO_ASPECT_RATIO",1),Jue=new uZ(Zf,2)}function _we(e){throw Ute(),V(new JPe("Unexpected typeof result '"+e+"'; please report this bug to the GWT team"))}function DKe(e){switch(e.g){case 0:return new z$;case 1:return new oK;case 2:return new F$;default:return null}}function Dwe(e,t){switch(t){case 1:!e.n&&(e.n=new _e(zo,e,1,7)),An(e.n);return;case 2:dS(e,null);return}owe(e,t)}function LKe(e,t){var n;e.a.c.length>0&&(n=c(Je(e.a,e.a.c.length-1),572),ywe(n,t))||Qe(e.a,new UUe(t))}function PKe(e,t){var n;e.c.length!=0&&(n=c(xh(e,ke(Wd,qg,9,e.c.length,0,1)),201),Pge(n,new jd),Jtt(n,t))}function IKe(e,t){var n;e.c.length!=0&&(n=c(xh(e,ke(Wd,qg,9,e.c.length,0,1)),201),Pge(n,new Hy),Jtt(n,t))}function $e(e){var t,n;return e>-129&&e<128?(fqe(),t=e+128,n=Nke[t],!n&&(n=Nke[t]=new Ho(e)),n):new Ho(e)}function TS(e){var t,n;return e>-129&&e<128?(vqe(),t=e+128,n=Pke[t],!n&&(n=Pke[t]=new $t(e)),n):new $t(e)}function RKe(e){var t;return t=new g0,t.a+="VerticalSegment ",Ec(t,e.e),t.a+=" ",Zn(t,Zge(new jY,new U(e.k))),t.a}function fBt(e){Pu();var t,n;t=e.d.c-e.e.c,n=c(e.g,157),Uc(n.b,new D_e(t)),Uc(n.c,new L_e(t)),vs(n.i,new P_e(t))}function hBt(e){var t;return t=c(vh(e.c.c,""),236),t||(t=new L4(N6(A6(new _p,""),"Other")),hb(e.c.c,"",t)),t}function A7(e){var t;return(e.Db&64)!=0?kf(e):(t=new Ba(kf(e)),t.a+=" (name: ",Zs(t,e.zb),t.a+=")",t.a)}function Lwe(e,t,n){var i,r;return r=e.sb,e.sb=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new Jr(e,1,4,r,t),n?n.lj(i):n=i),n}function lne(e,t){var n,i,r;for(n=0,r=Io(e,t).Jc();r.Ob();)i=c(r.Pb(),12),n+=$(i,(Ie(),Jl))!=null?1:0;return n}function Ix(e,t,n){var i,r,o;for(i=0,o=Pn(e,0);o.b!=o.d.c&&(r=de(be(Dn(o))),!(r>n));)r>=t&&++i;return i}function dBt(e,t,n){var i,r;return i=new C1(e.e,3,13,null,(r=t.c,r||(At(),Fh)),Rg(e,t),!1),n?n.lj(i):n=i,n}function gBt(e,t,n){var i,r;return i=new C1(e.e,4,13,(r=t.c,r||(At(),Fh)),null,Rg(e,t),!1),n?n.lj(i):n=i,n}function Pwe(e,t,n){var i,r;return r=e.r,e.r=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new Jr(e,1,8,r,e.r),n?n.lj(i):n=i),n}function Lg(e,t){var n,i;return n=c(t,688),i=n.cl(),!i&&n.dl(i=ae(t,89)?new K$e(e,c(t,29)):new MGe(e,c(t,160))),i}function FD(e,t,n){var i;e.Zi(e.i+1),i=e.Xi(t,n),t!=e.i&&wc(e.g,t,e.g,t+1,e.i-t),mr(e.g,t,i),++e.i,e.Ki(t,n),e.Li()}function pBt(e,t){var n;e.c=t,e.a=fzt(t),e.a<54&&(e.f=(n=t.d>1?PGe(t.a[0],t.a[1]):PGe(t.a[0],0),tb(t.e>0?n:Ag(n))))}function bBt(e,t){var n;return t.a&&(n=t.a.a.length,e.a?Zn(e.a,e.b):e.a=new Lu(e.d),qGe(e.a,t.a,t.d.length,n)),e}function mBt(e,t){var n,i,r,o;if(t.cj(e.a),o=c(Wt(e.a,8),2014),o!=null)for(n=o,i=0,r=n.length;i<r;++i)null.Sm()}function qD(e,t){var n;return n=new qr,e.a.zd(n)?(B6(),new wY(zt(xVe(e,n.a,t)))):(S0(e),B6(),B6(),Uke)}function $Ke(e){var t;return _c(e,0)<0&&(e=A0(AAt(So(e)?qa(e):e))),t=Gn(Jp(e,32)),64-(t!=0?cL(t):cL(Gn(e))+32)}function xi(e,t){return Yr(e)?St(e,t):$2(e)?mFe(e,t):R2(e)?(zt(e),xe(e)===xe(t)):jpe(e)?e.Fb(t):kpe(e)?gBe(e,t):kbe(e,t)}function BKe(e,t){Bn(e);try{return e._b(t)}catch(n){if(n=kr(n),ae(n,214)||ae(n,174))return!1;throw V(n)}}function Iwe(e,t){Bn(e);try{return e.Gc(t)}catch(n){if(n=kr(n),ae(n,214)||ae(n,174))return!1;throw V(n)}}function wBt(e,t){Bn(e);try{return e.Kc(t)}catch(n){if(n=kr(n),ae(n,214)||ae(n,174))return!1;throw V(n)}}function Rwe(e,t,n,i){switch(t){case 1:return!e.n&&(e.n=new _e(zo,e,1,7)),e.n;case 2:return e.k}return _2e(e,t,n,i)}function N7(e,t){switch(t.g){case 2:case 1:return Io(e,t);case 3:case 4:return ju(Io(e,t))}return Mt(),Mt(),$s}function xa(e,t,n){if(t<0)zve(e,n);else{if(!n.pk())throw V(new qt(J0+n.ve()+AE));c(n,69).uk().Ck(e,e.ei(),t)}}function zKe(e,t,n){if(e<0||t>n)throw V(new qc(dG+e+Gxe+t+", size: "+n));if(e>t)throw V(new qt(dG+e+rct+t))}function Pg(e,t){var n;n=(e.Bb&256)!=0,t?e.Bb|=256:e.Bb&=-257,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new bf(e,1,2,n,t))}function $we(e,t){var n;n=(e.Bb&256)!=0,t?e.Bb|=256:e.Bb&=-257,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new bf(e,1,8,n,t))}function Bwe(e,t){var n;n=(e.Bb&512)!=0,t?e.Bb|=512:e.Bb&=-513,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new bf(e,1,9,n,t))}function Ig(e,t){var n;n=(e.Bb&512)!=0,t?e.Bb|=512:e.Bb&=-513,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new bf(e,1,3,n,t))}function XH(e,t){var n;n=(e.Bb&256)!=0,t?e.Bb|=256:e.Bb&=-257,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new bf(e,1,8,n,t))}function vBt(e,t,n){var i,r;return r=e.a,e.a=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new Jr(e,1,5,r,e.a),n?ive(n,i):n=i),n}function FKe(e){var t;return(e.Db&64)!=0?kf(e):(t=new Ba(kf(e)),t.a+=" (source: ",Zs(t,e.d),t.a+=")",t.a)}function _7(e,t){var n;return e.b==-1&&e.a&&(n=e.a.nk(),e.b=n?e.c.Eh(e.a.Jj(),n):Ki(e.c.Ah(),e.a)),e.c.vh(e.b,t)}function qKe(e,t){var n,i;for(i=new on(e);i.e!=i.i.gc();)if(n=c(un(i),29),xe(t)===xe(n))return!0;return!1}function yBt(e){cG();var t,n,i,r;for(n=Cne(),i=0,r=n.length;i<r;++i)if(t=n[i],Lo(t.a,e,0)!=-1)return t;return dce}function HKe(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function QKe(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 zwe(e){var t,n;return t=e.k,t==(Jt(),Ar)?(n=c($(e,(Ie(),Yo)),64),n==(Ue(),Kt)||n==mn):!1}function GKe(e,t){var n,i;for(i=new on(e);i.e!=i.i.gc();)if(n=c(un(i),146),xe(t)===xe(n))return!0;return!1}function xBt(e,t,n){var i,r,o;return o=(r=qS(e.b,t),r),o&&(i=c(nG(xD(e,o),""),29),i)?aye(e,i,t,n):null}function une(e,t,n){var i,r,o;return o=(r=qS(e.b,t),r),o&&(i=c(nG(xD(e,o),""),29),i)?fye(e,i,t,n):null}function D7(e,t,n){var i;if(i=e.gc(),t>i)throw V(new Q2(t,i));if(e.Qi()&&e.Gc(n))throw V(new qt(YL));e.Ei(t,n)}function kBt(e,t){t.Tg("Sort end labels",1),hr(mi(jo(new Tt(null,new Et(e.b,16)),new g5),new p5),new gR),t.Ug()}function _r(){_r=Z,$h=new N_(mE,0),vo=new N_(gk,1),po=new N_(dk,2),Rh=new N_(qre,3),Ma=new N_("UP",4)}function HD(){HD=Z,tV=new aZ("P1_STRUCTURE",0),nV=new aZ("P2_PROCESSING_ORDER",1),iV=new aZ("P3_EXECUTION",2)}function UKe(){UKe=Z,lmt=id(id(ST(id(id(ST(Wn(new xr,(W4(),TC),(nE(),lue)),EC),h9e),g9e),CC),l9e),p9e)}function OBt(e){var t,n,i;for(t=new He,i=new U(e.b);i.a<i.c.c.length;)n=c(G(i),598),Or(t,c(n.Af(),18));return t}function SBt(e){var t,n,i;for(i=0,n=e.length,t=0;t<n;t++)e[t]==32||e[t]==13||e[t]==10||e[t]==9||(e[i++]=e[t]);return i}function jBt(e){var t;return t=e.a[e.c-1&e.a.length-1],t==null?null:(e.c=e.c-1&e.a.length-1,mr(e.a,e.c,null),t)}function JKe(e){var t,n;for(n=e.p.a.ec().Jc();n.Ob();)if(t=c(n.Pb(),220),t.f&&e.b[t.c]<-1e-10)return t;return null}function Fwe(e,t){switch(e.b.g){case 0:case 1:return t;case 2:case 3:return new pf(t.d,0,t.a,t.b);default:return null}}function VKe(e){switch(e.g){case 2:return vo;case 1:return po;case 4:return Rh;case 3:return Ma;default:return $h}}function qwe(e){switch(e.g){case 1:return Yt;case 2:return Kt;case 3:return nn;case 4:return mn;default:return Bo}}function QD(e){switch(e.g){case 1:return mn;case 2:return Yt;case 3:return Kt;case 4:return nn;default:return Bo}}function WH(e){switch(e.g){case 1:return nn;case 2:return mn;case 3:return Yt;case 4:return Kt;default:return Bo}}function TBt(e){switch(e){case 0:return new mPe;case 1:return new pPe;case 2:return new bPe;default:throw V(new a_)}}function EBt(e){switch(c($(e,(Ie(),Mb)),316).g){case 1:Me(e,Mb,(M1(),Ek));break;case 2:Me(e,Mb,(M1(),p3))}}function GD(e,t){this.e=t,this.a=$Ke(e),this.a<54?this.f=tb(e):this.c=(rd(),_c(e,0)>=0?I0(e):n7(I0(Ag(e))))}function XKe(e,t,n,i,r,o){this.e=new He,this.f=(Gs(),xC),Qe(this.e,e),this.d=t,this.a=n,this.b=i,this.f=r,this.c=o}function CBt(e){var t;if(!e.a)throw V(new co("Cannot offset an unassigned cut."));t=e.c-e.b,e.b+=t,oQe(e,t),cQe(e,t)}function WKe(e){var t;return t=Ebe(e),RT(t.a,0)?(L2(),L2(),sce):(L2(),new _Z(PY(t.a,0)?Xbe(t)/tb(t.a):0))}function MBt(e,t){var n;if(n=hL(e,t),ae(n,336))return c(n,38);throw V(new qt(J0+t+"' is not a valid attribute"))}function Ci(e,t){return e<t?-1:e>t?1:e==t?e==0?Ci(1/e,1/t):0:isNaN(e)?isNaN(t)?0:1:-1}function L7(e,t,n){var i,r;return e.Nj()?(r=e.Oj(),i=wie(e,t,n),e.Hj(e.Gj(7,$e(n),i,t,r)),i):wie(e,t,n)}function ane(e,t){var n,i,r;e.d==null?(++e.e,--e.f):(r=t.jd(),n=t.yi(),i=(n&gi)%e.d.length,yPt(e,i,Bnt(e,i,n,r)))}function ES(e,t){var n;n=(e.Bb&Ga)!=0,t?e.Bb|=Ga:e.Bb&=-1025,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new bf(e,1,10,n,t))}function CS(e,t){var n;n=(e.Bb&Cv)!=0,t?e.Bb|=Cv:e.Bb&=-4097,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new bf(e,1,12,n,t))}function MS(e,t){var n;n=(e.Bb&Il)!=0,t?e.Bb|=Il:e.Bb&=-8193,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new bf(e,1,15,n,t))}function AS(e,t){var n;n=(e.Bb&$1)!=0,t?e.Bb|=$1:e.Bb&=-2049,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new bf(e,1,11,n,t))}function ABt(e,t){var n;return n=Ci(e.b.c,t.b.c),n!=0||(n=Ci(e.a.a,t.a.a),n!=0)?n:Ci(e.a.b,t.a.b)}function KH(e){var t,n;return n=c($(e,(Ge(),Vu)),87),n==(_r(),$h)?(t=de(be($(e,gJ))),t>=1?vo:Rh):n}function NBt(e){var t,n;for(n=Dnt(Bu(e)).Jc();n.Ob();)if(t=qn(n.Pb()),iE(e,t))return HLt((_Re(),Pvt),t);return null}function _Bt(e,t,n){var i,r;for(r=e.a.ec().Jc();r.Ob();)if(i=c(r.Pb(),9),ID(n,c(Je(t,i.p),18)))return i;return null}function DBt(e,t,n){var i,r;for(r=ae(t,104)&&(c(t,20).Bb&Rs)!=0?new mZ(t,e):new mS(t,e),i=0;i<n;++i)gQ(r);return r}function LBt(e,t){var n,i,r,o,a;for(a=rl(e.e.Ah(),t),o=0,n=c(e.g,123),r=0;r<e.i;++r)i=n[r],a.$l(i.Jk())&&++o;return o}function PBt(e,t,n){var i,r;return i=c(t.mf(e.a),34),r=c(n.mf(e.a),34),i!=null&&r!=null?MD(i,r):i!=null?-1:r!=null?1:0}function KKe(e,t,n){var i,r;if(e.c)bve(e.c,t,n);else for(r=new U(e.b);r.a<r.c.c.length;)i=c(G(r),168),KKe(i,t,n)}function fne(e,t){var n,i;for(i=new U(t);i.a<i.c.c.length;)n=c(G(i),49),dl(e.b.b,n.b),WNt(c(n.a,197),c(n.b,84))}function Hwe(e,t){var n,i,r;for(zt(t),n=!1,i=new U(e);i.a<i.c.c.length;)r=G(i),t.Gc(r)&&(t7(i),n=!0);return n}function IBt(e){var t,n;for(n=Xp(new g0,91),t=!0;e.Ob();)t||(n.a+=Xc),t=!1,Ec(n,e.Pb());return(n.a+="]",n).a}function Qwe(e){var t;return t=ke(_a,cd,30,2,15,1),e-=Rs,t[0]=(e>>10)+NL&Dr,t[1]=(e&1023)+56320&Dr,nd(t,0,t.length)}function Gwe(e,t){var n;n=(e.Bb&Rs)!=0,t?e.Bb|=Rs:e.Bb&=-65537,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new bf(e,1,20,n,t))}function Uwe(e,t){var n;n=(e.Bb&rc)!=0,t?e.Bb|=rc:e.Bb&=-32769,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new bf(e,1,18,n,t))}function hne(e,t){var n;n=(e.Bb&rc)!=0,t?e.Bb|=rc:e.Bb&=-32769,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new bf(e,1,18,n,t))}function NS(e,t){var n;n=(e.Bb&od)!=0,t?e.Bb|=od:e.Bb&=-16385,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new bf(e,1,16,n,t))}function Jwe(e,t,n){var i;return i=0,t&&(mx(e.a)?i+=t.f.a/2:i+=t.f.b/2),n&&(mx(e.a)?i+=n.f.a/2:i+=n.f.b/2),i}function nw(e,t,n){var i;return i=e.a.get(t),e.a.set(t,n===void 0?null:n),i===void 0?(++e.c,++e.b.g):++e.d,i}function dne(e,t,n){var i,r;return i=(b0(),r=new O2,r),kH(i,t),xH(i,n),e&&Ln((!e.a&&(e.a=new Nr(Yu,e,5)),e.a),i),i}function RBt(e,t,n){var i;i=n,!i&&(i=cpe(new o4,0)),i.Tg(_ct,2),oZe(e.b,t,i.dh(1)),$Zt(e,t,i.dh(1)),$tn(t,i.dh(1)),i.Ug()}function Io(e,t){var n;return e.i||Bve(e),n=c(eo(e.g,t),49),n?new Yh(e.j,c(n.a,15).a,c(n.b,15).a):(Mt(),Mt(),$s)}function Ns(e,t){var n;return So(e)&&So(t)&&(n=e+t,AL<n&&n<wb)?n:A0(e$t(So(e)?qa(e):e,So(t)?qa(t):t))}function js(e,t){var n;return So(e)&&So(t)&&(n=e*t,AL<n&&n<wb)?n:A0(jZt(So(e)?qa(e):e,So(t)?qa(t):t))}function Ha(e,t){var n;return So(e)&&So(t)&&(n=e-t,AL<n&&n<wb)?n:A0(jWe(So(e)?qa(e):e,So(t)?qa(t):t))}function YH(e){var t;switch(e.gc()){case 0:return hq(),Woe;case 1:return new IZ(Bn(e.Xb(0)));default:return t=e,new Gee(t)}}function $Bt(e){switch(c($(e,(Ge(),U1)),225).g){case 1:return new hg;case 3:return new O5;default:return new h2}}function BBt(e){var t;return t=mv(e),t>34028234663852886e22?sr:t<-34028234663852886e22?Gr:t}function td(e){var t,n,i;for(t=new He,i=new U(e.j);i.a<i.c.c.length;)n=c(G(i),12),Qe(t,n.b);return Bn(t),new FT(t)}function vr(e){var t,n,i;for(t=new He,i=new U(e.j);i.a<i.c.c.length;)n=c(G(i),12),Qe(t,n.e);return Bn(t),new FT(t)}function Fi(e){var t,n,i;for(t=new He,i=new U(e.j);i.a<i.c.c.length;)n=c(G(i),12),Qe(t,n.g);return Bn(t),new FT(t)}function gne(e){var t;return(e.Db&64)!=0?kf(e):(t=new Ba(kf(e)),t.a+=" (identifier: ",Zs(t,e.k),t.a+=")",t.a)}function P0(e){if(e.c)P0(e.c);else if(e.d)throw V(new co("Stream already terminated, can't be modified or used"))}function YKe(e,t,n){switch(t.g){case 1:e.b-=n.b/2;break;case 3:e.b+=n.b/2;break;case 4:e.a-=n.a/2;break;case 2:e.a+=n.a/2}}function zBt(e,t){return St(t.b&&t.c?eb(t.b)+"->"+eb(t.c):"e_"+zi(t),e.b&&e.c?eb(e.b)+"->"+eb(e.c):"e_"+zi(e))}function FBt(e,t){return St(t.b&&t.c?eb(t.b)+"->"+eb(t.c):"e_"+zi(t),e.b&&e.c?eb(e.b)+"->"+eb(e.c):"e_"+zi(e))}function qBt(e){return nne(),Bt(),!!(nYe(c(e.a,84).j,c(e.b,87))||c(e.a,84).d.e!=0&&nYe(c(e.a,84).j,c(e.b,87)))}function pne(){fve();var e,t,n;n=Xnn+++Date.now(),e=ks(p.Math.floor(n*DL))&hG,t=ks(n-e*Fxe),this.a=e^1502,this.b=t^Ire}function ZKe(e,t,n,i,r){BBe(this),this.b=e,this.d=ke(Wd,qg,9,t.a.c.length,0,1),this.f=n,xh(t.a,this.d),this.g=i,this.c=r}function Vwe(e,t){e.n.c.length==0&&Qe(e.n,new qq(e.s,e.t,e.i)),Qe(e.b,t),C2e(c(Je(e.n,e.n.c.length-1),211),t),qrt(e,t)}function HBt(e,t,n){var i;n.Tg("Straight Line Edge Routing",1),n.bh(t,G5e),i=c(Se(t,(Sx(),E3)),19),nst(e,i),n.bh(t,qG)}function bt(e){var t,n,i,r;return n=(t=c(Gf((i=e.Pm,r=i.f,r==Tn?i:r)),10),new da(t,c(gf(t,t.length),10),0)),yf(n,e),n}function QBt(e){var t,n;for(n=mJt(Bu(Z2(e))).Jc();n.Ob();)if(t=qn(n.Pb()),iE(e,t))return QLt((DRe(),Ivt),t);return null}function bne(e,t){var n,i,r;for(r=0,i=c(t.Kb(e),22).Jc();i.Ob();)n=c(i.Pb(),17),Ze(Ye($(n,(Ie(),Ug))))||++r;return r}function eYe(e){var t,n,i,r;for(t=new Kze(e.Pd().gc()),r=0,i=z4(e.Pd().Jc());i.Ob();)n=i.Pb(),NNt(t,n,$e(r++));return xGt(t.a)}function GBt(e){var t,n,i;for(n=0,i=e.length;n<i;n++)if(e[n]==null)throw V(new l4("at index "+n));return t=e,new Qo(t)}function UBt(e,t,n){var i;try{x$t(e,t,n)}catch(r){throw r=kr(r),ae(r,602)?(i=r,V(new zbe(i))):V(r)}return t}function tYe(e,t){var n,i;for(n=Pn(e,0);n.b!=n.d.c;){if(i=f_(be(Dn(n))),i==t)return;if(i>t){DGe(n);break}}Tq(n,t)}function JBt(e,t){var n,i,r;i=Ex(t),r=de(be(dv(i,(Ge(),Mf)))),n=p.Math.max(0,r/2-.5),q7(t,n,1),Qe(e,new ZRe(t,n))}function at(e,t){var n,i,r,o,a;if(n=t.f,hb(e.c.d,n,t),t.g!=null)for(r=t.g,o=0,a=r.length;o<a;++o)i=r[o],hb(e.c.e,i,t)}function VBt(e,t,n,i){var r,o,a;for(r=t+1;r<n;++r)for(o=r;o>t&&i.Le(e[o-1],e[o])>0;--o)a=e[o],mr(e,o,e[o-1]),mr(e,o-1,a)}function ka(e,t,n,i){if(t<0)pye(e,n,i);else{if(!n.pk())throw V(new qt(J0+n.ve()+AE));c(n,69).uk().Ak(e,e.ei(),t,i)}}function XBt(e,t){var n;if(n=hL(e.Ah(),t),ae(n,104))return c(n,20);throw V(new qt(J0+t+"' is not a valid reference"))}function To(e){var t;return Array.isArray(e)&&e.Rm===we?zp(Ou(e))+"@"+(t=zi(e)>>>0,t.toString(16)):e.toString()}function WBt(e,t){return e.h==ML&&e.m==0&&e.l==0?(t&&(V0=nl(0,0,0)),pBe((aS(),jke))):(t&&(V0=nl(e.l,e.m,e.h)),nl(0,0,0))}function KBt(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 nYe(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 Xwe(e,t,n,i){switch(t){case 3:return e.f;case 4:return e.g;case 5:return e.i;case 6:return e.j}return Rwe(e,t,n,i)}function ZH(e,t){if(t==e.d)return e.e;if(t==e.e)return e.d;throw V(new qt("Node "+t+" not part of edge "+e))}function YBt(e){return e.e==null?e:(!e.c&&(e.c=new Eie((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,null)),e.c)}function ZBt(e){return e.k!=(Jt(),ur)?!1:Mx(new Tt(null,new X2(new Ht(Xt(Fi(e).a.Jc(),new F)))),new yA)}function ou(e){var t;if(e.b){if(ou(e.b),e.b.d!=e.c)throw V(new aa)}else e.d.dc()&&(t=c(e.f.c.xc(e.e),18),t&&(e.d=t))}function ezt(e){q2();var t,n,i,r;for(t=e.o.b,i=c(c(Ei(e.r,(Ue(),mn)),24),85).Jc();i.Ob();)n=c(i.Pb(),116),r=n.e,r.b+=t}function tzt(e,t){var n,i,r;for(i=DWt(e,t),r=i[i.length-1]/2,n=0;n<i.length;n++)if(i[n]>=r)return t.c+n;return t.c+t.b.gc()}function Wwe(e,t,n,i,r){var o,a,d;for(a=r;t.b!=t.c;)o=c(M4(t),9),d=c(Io(o,i).Xb(0),12),e.d[d.p]=a++,It(n.c,d);return a}function P7(e){var t;this.a=(t=c(e.e&&e.e(),10),new da(t,c(gf(t,t.length),10),0)),this.b=ke(Br,Pt,1,this.a.a.length,5,1)}function Kwe(e){yne(),this.c=mf(Y(K(gin,1),Pt,837,0,[bpt])),this.b=new yn,this.a=e,ci(this.b,AJ,1),Uc(mpt,new YDe(this))}function Su(){Su=Z,OP=new S_(Zf,0),oC=new S_("FIRST",1),G1=new S_(Vct,2),cC=new S_("LAST",3),Nb=new S_(Xct,4)}function I7(){I7=Z,ZE=new mF("LAYER_SWEEP",0),w6e=new mF("MEDIAN_LAYER_SWEEP",1),pP=new mF(Yre,2),v6e=new mF(Zf,3)}function eQ(){eQ=Z,h8e=new cZ("ASPECT_RATIO_DRIVEN",0),Fue=new cZ("MAX_SCALE_DRIVEN",1),f8e=new cZ("AREA_DRIVEN",2)}function tQ(){tQ=Z,zae=new AF(_5e,0),I7e=new AF("GROUP_DEC",1),$7e=new AF("GROUP_MIXED",2),R7e=new AF("GROUP_INC",3)}function L1(){L1=Z,Lae=new EF(mE,0),YP=new EF("POLYLINE",1),g9=new EF("ORTHOGONAL",2),Jk=new EF("SPLINES",3)}function Ywe(){Ywe=Z,Hwt=new bi(S4e),fTe=(Wq(),iae),qwt=new vt(j4e,fTe),Fwt=new vt(T4e,50),zwt=new vt(E4e,(Bt(),!0))}function nzt(e){var t,n,i,r,o;return o=hve(e),n=p_(e.c),i=!n,i&&(r=new bg,wf(o,"knownLayouters",r),t=new CLe(r),vs(e.c,t)),o}function Zwe(e,t){var n,i,r,o,a,d;for(i=0,n=0,o=t,a=0,d=o.length;a<d;++a)r=o[a],r>0&&(i+=r,++n);return n>1&&(i+=e.d*(n-1)),i}function e2e(e){var t,n,i;for(i=new vg,i.a+="[",t=0,n=e.gc();t<n;)Zs(i,GT(e.Ti(t))),++t<n&&(i.a+=Xc);return i.a+="]",i.a}function mne(e,t,n){var i,r;for(i=0,r=e.length;i<r;i++)if(Jte((en(i,e.length),e.charCodeAt(i)),t,n))return!0;return!1}function izt(e){var t;return e==null?!0:(t=e.length,t>0&&(en(t-1,e.length),e.charCodeAt(t-1)==58)&&!mne(e,rM,sM))}function t2e(e,t){var n;return xe(e)===xe(t)?!0:ae(t,92)?(n=c(t,92),e.e==n.e&&e.d==n.d&&JLt(e,n.a)):!1}function J4(e){switch(Ue(),e.g){case 4:return Kt;case 1:return nn;case 3:return mn;case 2:return Yt;default:return Bo}}function rzt(e){var t,n;if(e.b)return e.b;for(n=Nh?null:e.d;n;){if(t=Nh?null:n.b,t)return t;n=Nh?null:n.d}return R6(),Xke}function iw(e,t){return dh(),vf(zg),p.Math.abs(e-t)<=zg||e==t||isNaN(e)&&isNaN(t)?0:e<t?-1:e>t?1:Hp(isNaN(e),isNaN(t))}function iYe(e,t){H6();var n,i,r,o;for(i=UJe(e),r=t,lS(i,0,i.length,r),n=0;n<i.length;n++)o=Bqt(e,i[n],n),n!=o&&L7(e,n,o)}function n2e(e){var t,n,i;for(i=de(be(e.a.mf((In(),hV)))),n=new U(e.a.Qf());n.a<n.c.c.length;)t=c(G(n),692),cot(e,t,i)}function szt(e){var t,n,i,r;for(t=(e.j==null&&(e.j=(iS(),r=Zoe.ke(e),SHt(r))),e.j),n=0,i=t.length;n<i;++n);}function wne(e,t){var n,i;for(i=new U(t);i.a<i.c.c.length;)n=c(G(i),49),Qe(e.b.b,c(n.b,84)),Vee(c(n.a,197),c(n.b,84))}function ozt(e,t,n){var i,r;for(r=e.a.b,i=r.c.length;i<n;i++)Qp(r,0,new dc(e.a));zr(t,c(Je(r,r.c.length-n),26)),e.b[t.p]=n}function czt(e,t,n){var i;n.Tg(qlt,1),(!t.a&&(t.a=new _e(_n,t,10,11)),t.a).i!=0&&(i=c(Se(t,(zd(),BC)),19),nrt(e,i)),n.Ug()}function lzt(e,t,n,i,r){Ru(),Of(uf(ff(af(hf(new Ra,0),r.d.e-e),t),r.d)),Of(uf(ff(af(hf(new Ra,0),n-r.a.e),r.a),i))}function rYe(e,t){var n,i,r,o;t&&(r=N1(t,"x"),n=new yLe(e),Ym(n.a,(zt(r),r)),o=N1(t,"y"),i=new xLe(e),Zm(i.a,(zt(o),o)))}function sYe(e,t){var n,i,r,o;t&&(r=N1(t,"x"),n=new OLe(e),Wm(n.a,(zt(r),r)),o=N1(t,"y"),i=new SLe(e),Km(i.a,(zt(o),o)))}function oYe(e,t){var n;return e.d?Cc(e.b,t)?c(Ut(e.b,t),43):(n=t.bg(),ci(e.b,t,n),n):t.bg()}function i2e(e,t,n){var i,r;if(++e.j,n.dc())return!1;for(r=n.Jc();r.Ob();)i=r.Pb(),e.oj(t,e.Xi(t,i)),++t;return!0}function uzt(e,t){var n,i,r,o;for(r=new Gc(t.gc()),i=t.Jc();i.Ob();)n=i.Pb(),o=Pie(e,c(n,57)),o&&It(r.c,o);return r}function hv(e,t,n){var i,r;for(r=e.Jc();r.Ob();)if(i=r.Pb(),xe(t)===xe(i)||t!=null&&xi(t,i))return n&&r.Qb(),!0;return!1}function azt(e,t,n,i){var r,o;if(o=n-t,o<3)for(;o<3;)e*=10,++o;else{for(r=1;o>3;)r*=10,--o;e=(e+(r>>1))/r|0}return i.i=e,!0}function fzt(e){var t,n,i;return e.e==0?0:(t=e.d<<5,n=e.a[e.d-1],e.e<0&&(i=iWe(e),i==e.d-1&&(--n,n=n|0)),t-=cL(n),t)}function hzt(e){var t,n,i;return e<vU.length?vU[e]:(n=e>>5,t=e&31,i=ke(Hn,li,30,n+1,15,1),i[n]=1<<t,new Vp(1,n+1,i))}function cYe(e){var t,n,i;return n=e.ih(),n?(t=e.Bh(),ae(t,176)&&(i=cYe(c(t,176)),i!=null)?i+"."+n:n):null}function r2e(e){var t;return!e.c&&(e.c=new r2),Rr(e.d,new l5),iWt(e),t=VXt(e),hr(new Tt(null,new Et(e.d,16)),new KNe(e)),t}function dzt(e,t){t.Tg("End label post-processing",1),hr(mi(jo(new Tt(null,new Et(e.b,16)),new dR),new YM),new uW),t.Ug()}function ju(e){var t,n;return ae(e,312)?(n=mPt(c(e,312)),t=n,t):ae(e,437)?c(e,437).a:ae(e,59)?new GPe(e):new F1e(e)}function gzt(e){var t=e.e;function n(i){return!i||i.length==0?"":"	"+i.join(`
	`)}return t&&(t.stack||n(e[hre]))}function s2e(e,t){switch(t){case 3:return e.f!=0;case 4:return e.g!=0;case 5:return e.i!=0;case 6:return e.j!=0}return Zme(e,t)}function o2e(e,t){switch(t){case 3:ib(e,0);return;case 4:rb(e,0);return;case 5:Nc(e,0);return;case 6:_l(e,0);return}Dwe(e,t)}function pzt(e){switch(e.g){case 0:return new A$;case 1:return new N$;default:throw V(new qt(Jse+(e.f!=null?e.f:""+e.g)))}}function lYe(e){switch(e.g){case 0:return new sK;case 1:return new _$;default:throw V(new qt(Xre+(e.f!=null?e.f:""+e.g)))}}function bzt(e){switch(e.g){case 1:return new E$;case 2:return new zze;default:throw V(new qt(Jse+(e.f!=null?e.f:""+e.g)))}}function uYe(e){switch(e.g){case 0:return new w1e;case 1:return new xPe;default:throw V(new qt(GG+(e.f!=null?e.f:""+e.g)))}}function rw(e,t){switch(t.g){case 1:return j4(e.j,(Dl(),TOe));case 2:return j4(e.j,(Dl(),COe));default:return Mt(),Mt(),$s}}function aYe(e,t){var n,i;if(t){for(n=0;n<e.i;++n)if(i=c(e.g[n],374),i.kj(t))return!1;return Ln(e,t)}else return!1}function c2e(e){var t,n,i,r;for(t=new bg,r=new cx(e.b.Jc());r.b.Ob();)i=c(r.b.Pb(),697),n=EGt(i),RAt(t,t.a.length,n);return t.a}function nQ(e){var t;return(e.Db&64)!=0?A7(e):(t=new Ba(A7(e)),t.a+=" (instanceClassName: ",Zs(t,e.D),t.a+=")",t.a)}function l2e(e,t){var n;return e.i>0&&(t.length<e.i&&(n=ED(Ou(t).c,e.i),t=n),wc(e.g,0,t,0,e.i)),t.length>e.i&&mr(t,e.i,null),t}function mzt(e,t,n){var i,r;return i=de(e.p[t.i.p])+de(e.d[t.i.p])+t.n.b+t.a.b,r=de(e.p[n.i.p])+de(e.d[n.i.p])+n.n.b+n.a.b,r-i}function Ki(e,t){var n,i,r;if(n=(e.i==null&&sd(e),e.i),i=t.Jj(),i!=-1){for(r=n.length;i<r;++i)if(n[i]==t)return i}return-1}function vne(e,t){var n,i,r;return e.f>0?(e.Zj(),i=t==null?0:zi(t),r=(i&gi)%e.d.length,n=Bnt(e,r,i,t),n!=-1):!1}function iQ(e){var t,n,i,r;for(r=0,n=0,i=e.length;n<i;n++)t=(en(n,e.length),e.charCodeAt(n)),t<64&&(r=Zh(r,Ld(1,t)));return r}function wzt(e){var t,n,i,r,o;for(n=c(e.g,686),i=e.i-1;i>=0;--i)for(t=n[i],r=0;r<i;++r)if(o=n[r],Lrt(e,t,o)){Y4(e,i);break}}function UD(e,t){var n,i,r,o;for(o=rl(e.e.Ah(),t),n=c(e.g,123),r=0;r<e.i;++r)if(i=n[r],o.$l(i.Jk()))return!1;return!0}function fYe(e,t){var n,i;if(i=new O6(e.a.$c(t,!0)),i.a.gc()<=1)throw V(new i4);return n=i.a.ec().Jc(),n.Pb(),c(n.Pb(),41)}function vzt(e,t,n){var i,r;for(i=Zr(n,Js),r=0;_c(i,0)!=0&&r<t;r++)i=Ns(i,Zr(e[r],Js)),e[r]=Gn(i),i=Bm(i,32);return Gn(i)}function rQ(e,t){$ge();var n,i;return n=G_((Fz(),Fz(),qE)),i=null,t==n&&(i=c(Mc(Oke,e),622)),i||(i=new pHe(e),t==n&&uo(Oke,e,i)),i}function hYe(e){q2();var t;return t=new Ms(c(e.e.mf((In(),D3)),8)),e.B.Gc((lu(),b9))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t}function yzt(e){uH(),c(e.mf((In(),op)),185).Gc((lu(),yV))&&(c(e.mf(oy),185).Ec((Gl(),Vk)),c(e.mf(op),185).Kc(yV))}function dYe(e){var t,n;t=e.d==(ek(),zj),n=nve(e),t&&!n||!t&&n?Me(e.a,(Ge(),pd),(Bd(),UP)):Me(e.a,(Ge(),pd),(Bd(),GP))}function xzt(e){var t,n,i,r;for(i=ZGt(e),Rr(i,Bdt),r=e.d,r.c.length=0,n=new U(i);n.a<n.c.c.length;)t=c(G(n),458),Or(r,t.b)}function yne(){yne=Z,eF(),AJ=(Ge(),Ib),mpt=mf(Y(K(mae,1),N5e,149,0,[CP,Mf,k3,Pb,Kv,Rle,Yj,Zj,$le,bC,Wv,tp,Yv]))}function kzt(e,t){var n;return n=c(Hl(e,ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[(ya(),wl)]))),16),n.Oc(aqe(n.gc()))}function Kf(e,t){var n,i,r;return e.f>0&&(e.Zj(),i=t==null?0:zi(t),r=(i&gi)%e.d.length,n=Jve(e,r,i,t),n)?n.kd():null}function gYe(e,t){var n,i,r;return ae(t,45)?(n=c(t,45),i=n.jd(),r=fv(e.Pc(),i),k1(r,n.kd())&&(r!=null||e.Pc()._b(i))):!1}function Vc(e,t,n){var i,r,o;return e.Nj()?(i=e.i,o=e.Oj(),FD(e,i,t),r=e.Gj(3,null,t,i,o),n?n.lj(r):n=r):FD(e,e.i,t),n}function Ozt(e,t,n){var i,r;return i=new C1(e.e,4,10,(r=t.c,ae(r,89)?c(r,29):(At(),rf)),null,Rg(e,t),!1),n?n.lj(i):n=i,n}function Szt(e,t,n){var i,r;return i=new C1(e.e,3,10,null,(r=t.c,ae(r,89)?c(r,29):(At(),rf)),Rg(e,t),!1),n?n.lj(i):n=i,n}function pYe(e){pv();var t;return(e.q?e.q:(Mt(),Mt(),Vd))._b((Ge(),Iw))?t=c($(e,Iw),205):t=c($(Vr(e),pC),205),t}function I0(e){rd();var t,n;return n=Gn(e),t=Gn(Jp(e,32)),t!=0?new zGe(n,t):n>10||n<0?new T1(1,n):Rft[n]}function bYe(e){if(e.b==null){for(;e.a.Ob();)if(e.b=e.a.Pb(),!c(e.b,52).Gh())return!0;return e.b=null,!1}else return!0}function mYe(e,t,n){cXe(),yPe.call(this),this.a=U2(oht,[Fe,Vxe],[599,219],0,[OU,hce],2),this.c=new w4,this.g=e,this.f=t,this.d=n}function wYe(e){this.e=ke(Hn,li,30,e.length,15,1),this.c=ke(Sl,Yf,30,e.length,16,1),this.b=ke(Sl,Yf,30,e.length,16,1),this.f=0}function jzt(e){var t,n;for(e.j=ke(is,io,30,e.p.c.length,15,1),n=new U(e.p);n.a<n.c.c.length;)t=c(G(n),9),e.j[t.p]=t.o.b/e.i}function vYe(e,t){var n,i;e.a=Ns(e.a,1),e.c=p.Math.min(e.c,t),e.b=p.Math.max(e.b,t),e.d+=t,n=t-e.f,i=e.e+n,e.f=i-e.e-n,e.e=i}function Tzt(e,t){t.Tg("Min Size Postprocessing",1),ri(e,(Fd(),ty),p.Math.max(de(be(Se(e,ty))),de(be(Se(e,LC))))),t.Ug()}function yYe(e,t){e.Vj();try{e.d._c(e.e++,t),e.f=e.d.j,e.g=-1}catch(n){throw n=kr(n),ae(n,99)?V(new aa):V(n)}}function xne(){xne=Z,Kae=new d0,cEe=new xB,lEe=new Ed,uEe=new kB,aEe=new vm,fEe=new nx,hEe=new ym,dEe=new xN,gEe=new kN}function u2e(){u2e=Z,E7e=new qp(15),nvt=new Ur((In(),Ih),E7e),rvt=new Ur(oh,15),ivt=new Ur(_ae,$e(0)),tvt=new Ur(l9,uj)}function sQ(){sQ=Z,_C=new oZ("P1_WIDTH_APPROXIMATION",0),KJ=new oZ("P2_PACKING",1),Lue=new oZ("P3_WHITESPACE_ELIMINATION",2)}function JD(e,t){var n,i;for(i=t.length,n=0;n<i;n+=2)Dc(e,(en(n,t.length),t.charCodeAt(n)),(en(n+1,t.length),t.charCodeAt(n+1)))}function xYe(e,t,n){var i,r,o,a;for(o=t-e.e,a=n-e.f,r=new U(e.a);r.a<r.c.c.length;)i=c(G(r),175),XD(i,i.s+o,i.t+a);e.e=t,e.f=n}function Ezt(e,t){var n,i,r,o;for(o=t.b.b,e.a=new _i,e.b=ke(Hn,li,30,o,15,1),n=0,r=Pn(t.b,0);r.b!=r.d.c;)i=c(Dn(r),41),i.g=n++}function dv(e,t){var n,i;return i=null,ki(e,(Ge(),CJ))&&(n=c($(e,CJ),105),n.nf(t)&&(i=n.mf(t))),i==null&&(i=$(Vr(e),t)),i}function R7(e,t){var n;ttn(t),n=c($(e,(Ge(),yJ)),286),n&&Me(e,yJ,Tqt(n)),Sg(e.c),Sg(e.f),Zbe(e.d),Zbe(c($(e,jJ),216))}function kne(e,t){var n;return So(e)&&So(t)&&(n=e%t,AL<n&&n<wb)?n:A0((dxe(So(e)?qa(e):e,So(t)?qa(t):t,!0),V0))}function a2e(e,t,n){var i,r,o,a,d;return a=e.k,d=t.k,i=n[a.g][d.g],r=be(dv(e,i)),o=be(dv(t,i)),p.Math.max((zt(r),r),(zt(o),o))}function f2e(e,t,n){var i,r;i=c(Mc(v9,t),122),r=c(Mc(fM,t),122),n?(uo(v9,e,i),uo(fM,e,r)):(uo(fM,e,i),uo(v9,e,r))}function kYe(e,t){var n,i,r,o;return n=t>>5,t&=31,r=e.d+n+(t==0?0:1),i=ke(Hn,li,30,r,15,1),TQt(i,e.a,n,t),o=new Vp(e.e,r,i),a7(o),o}function _S(e,t,n){var i,r,o;for(r=null,o=e.b;o;){if(i=e.a.Le(t,o.d),n&&i==0)return o;i>=0?o=o.a[1]:(r=o,o=o.a[0])}return r}function VD(e,t,n){var i,r,o;for(r=null,o=e.b;o;){if(i=e.a.Le(t,o.d),n&&i==0)return o;i<=0?o=o.a[0]:(r=o,o=o.a[1])}return r}function OYe(e,t,n){var i,r,o,a;for(r=c(Ut(e.b,n),172),i=0,a=new U(t.j);a.a<a.c.c.length;)o=c(G(a),114),r[o.d.p]&&++i;return i}function Czt(e,t,n,i){var r,o,a;return r=!1,ken(e.f,n,i)&&(Zzt(e.f,e.a[t][n],e.a[t][i]),o=e.a[t],a=o[i],o[i]=o[n],o[n]=a,r=!0),r}function Mzt(e,t){var n,i,r;for(i=new Ht(Xt(Fi(e).a.Jc(),new F));hn(i);)if(n=c(rn(i),17),r=n.d.i,r.c==t)return!1;return!0}function Azt(e){var t;t=e.a;do t=c(rn(new Ht(Xt(Fi(t).a.Jc(),new F))),17).d.i,t.k==(Jt(),Cr)&&Qe(e.e,t);while(t.k==(Jt(),Cr))}function One(e){var t;e.c!=0&&(t=c(Je(e.a,e.b),296),t.b==1?(++e.b,e.b<e.a.c.length&&Nt(c(Je(e.a,e.b),296))):--t.b,--e.c)}function SYe(e){var t,n,i,r,o;if(e==null)return null;for(o=new He,n=tne(e),i=0,r=n.length;i<r;++i)t=n[i],Qe(o,Lc(t,!0));return o}function jYe(e){var t,n,i,r,o;if(e==null)return null;for(o=new He,n=tne(e),i=0,r=n.length;i<r;++i)t=n[i],Qe(o,Lc(t,!0));return o}function TYe(e){var t,n,i,r,o;if(e==null)return null;for(o=new He,n=tne(e),i=0,r=n.length;i<r;++i)t=n[i],Qe(o,Lc(t,!0));return o}function EYe(e){var t,n;return t=c(Wt(e.a,4),131),t!=null?(n=ke(Jae,Aoe,420,t.length,0,1),wc(t,0,n,0,t.length),n):Evt}function Sne(e,t){for(var n=0;!t[n]||t[n]=="";)n++;for(var i=t[n++];n<t.length;n++)!t[n]||t[n]==""||(i+=e+t[n]);return i}function nd(e,t,n){var i,r,o,a;for(o=t+n,hs(t,o,e.length),a="",r=t;r<o;)i=p.Math.min(r+1e4,o),a+=bNt(e.slice(r,i)),r=i;return a}function Nzt(){return Error.stackTraceLimit>0?(p.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function Tu(){Tu=Z,sI=new MF("PORTS",0),qb=new MF("PORT_LABELS",1),rI=new MF("NODE_LABELS",2),ay=new MF("MINIMUM_SIZE",3)}function P1(){P1=Z,np=new vF(Zf,0),qje=new vF("NODES_AND_EDGES",1),Kle=new vF("PREFER_EDGES",2),Yle=new vF("PREFER_NODES",3)}function _zt(e,t){return dh(),dh(),vf(zg),(p.Math.abs(e-t)<=zg||e==t||isNaN(e)&&isNaN(t)?0:e<t?-1:e>t?1:Hp(isNaN(e),isNaN(t)))>0}function h2e(e,t){return dh(),dh(),vf(zg),(p.Math.abs(e-t)<=zg||e==t||isNaN(e)&&isNaN(t)?0:e<t?-1:e>t?1:Hp(isNaN(e),isNaN(t)))<0}function CYe(e,t){return dh(),dh(),vf(zg),(p.Math.abs(e-t)<=zg||e==t||isNaN(e)&&isNaN(t)?0:e<t?-1:e>t?1:Hp(isNaN(e),isNaN(t)))<=0}function d2e(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 g2e(e,t,n,i,r,o){this.a=e,this.c=t,this.b=n,this.f=i,this.d=r,this.e=o,this.c>0&&this.b>0&&(this.g=dq(this.c,this.b,this.a))}function Dzt(e,t){var n=e.a,i;t=String(t),n.hasOwnProperty(t)&&(i=n[t]);var r=(Ute(),ece)[typeof i],o=r?r(i):_we(typeof i);return o}function DS(e){var t,n,i;if(i=null,t=hd in e.a,n=!t,n)throw V(new Jh("Every element must have an id."));return i=nk(S1(e,hd)),i}function sw(e){var t,n;for(n=ott(e),t=null;e.c==2;)wi(e),t||(t=(vi(),vi(),new qT(2)),bb(t,n),n=t),n.Hm(ott(e));return n}function oQ(e,t){var n,i,r;return e.Zj(),i=t==null?0:zi(t),r=(i&gi)%e.d.length,n=Jve(e,r,i,t),n?(SXe(e,n),n.kd()):null}function MYe(e,t){return e.e>t.e?1:e.e<t.e?-1:e.d>t.d?e.e:e.d<t.d?-t.e:e.e*kwe(e.a,t.a,e.d)}function AYe(e){return e>=48&&e<48+p.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function Lzt(e,t){if(t.c==e)return t.d;if(t.d==e)return t.c;throw V(new qt("Input edge is not connected to the input port."))}function id(e,t){if(e.a<0)throw V(new co("Did not call before(...) or after(...) before calling add(...)."));return a0e(e,e.a,t),e}function NYe(e,t){var n,i,r;if(e.c)ib(e.c,t);else for(n=t-yu(e),r=new U(e.a);r.a<r.c.c.length;)i=c(G(r),168),NYe(i,yu(i)+n)}function _Ye(e,t){var n,i,r;if(e.c)rb(e.c,t);else for(n=t-Al(e),r=new U(e.d);r.a<r.c.c.length;)i=c(G(r),168),_Ye(i,Al(i)+n)}function p2e(e){return Hq(),ae(e,167)?c(Ut(pI,qft),297).Qg(e):Cc(pI,Ou(e))?c(Ut(pI,Ou(e)),297).Qg(e):null}function il(e){var t,n;return(e.Db&32)==0&&(n=(t=c(Wt(e,16),29),bn(t||e.fi())-bn(e.fi())),n!=0&&V4(e,32,ke(Br,Pt,1,n,5,1))),e}function V4(e,t,n){var i;(e.Db&t)!=0?n==null?rJt(e,t):(i=Gne(e,t),i==-1?e.Eb=n:mr(q4(e.Eb),i,n)):n!=null&&EXt(e,t,n)}function Pzt(e,t,n,i){var r,o;t.c.length!=0&&(r=xVt(n,i),o=TUt(t),hr(wH(new Tt(null,new Et(o,1)),new o$),new GHe(e,n,r,i)))}function Izt(e,t){var n,i,r,o;return i=e.a.length-1,n=t-e.b&i,o=e.c-t&i,r=e.c-e.b&i,yze(n<r),n>=o?(H$t(e,t),-1):(q$t(e,t),1)}function Rzt(e,t){var n,i;for(n=(en(t,e.length),e.charCodeAt(t)),i=t+1;i<e.length&&(en(i,e.length),e.charCodeAt(i)==n);)++i;return i-t}function b2e(e){var t,n;switch(n=e.Nc(),n.length){case 0:return hq(),Woe;case 1:return t=n[0],new IZ(Bn(t));default:return new Gee(GBt(n))}}function m2e(e){switch(typeof e){case sre:return _g(e);case Axe:return m4(e);case lk:return Hze(e);default:return e==null?0:Rm(e)}}function $zt(e){if(cQ(Oj,e))return Bt(),Dj;if(cQ(loe,e))return Bt(),X0;throw V(new qt("Expecting true or false"))}function Bzt(e,t){return e.e<t.e?-1:e.e>t.e?1:e.f<t.f?-1:e.f>t.f?1:zi(e)-zi(t)}function DYe(e,t){var n;return xe(t)===xe(e)?!0:!ae(t,24)||(n=c(t,24),n.gc()!=e.gc())?!1:e.Hc(n)}function cQ(e,t){return zt(e),t==null?!1:St(e,t)?!0:e.length==t.length&&St(e.toLowerCase(),t.toLowerCase())}function gv(e){var t,n;return _c(e,-129)>0&&_c(e,128)<0?(wqe(),t=Gn(e)+128,n=_ke[t],!n&&(n=_ke[t]=new Sm(e)),n):new Sm(e)}function X4(){X4=Z,XE=new gF(Zf,0),xOe=new gF("INSIDE_PORT_SIDE_GROUPS",1),Tce=new gF("GROUP_MODEL_ORDER",2),Ece=new gF(Jre,3)}function lQ(e){var t,n,i;if(i=e.Gh(),!i)for(t=0,n=e.Mh();n;n=n.Mh()){if(++t>_re)return n.Nh();if(i=n.Gh(),i||n==e)break}return i}function zzt(e){var t;return e.b||s8t(e,(t=dEt(e.e,e.a),!t||!St(loe,Kf((!t.b&&(t.b=new wu((At(),zs),Zo,t)),t.b),"qualified")))),e.c}function Fzt(e){var t,n;for(n=new U(e.a.b);n.a<n.c.c.length;)if(t=c(G(n),70),Ze(Ye($(t,(Ge(),x3)))))return!0;return!1}function qzt(e,t){zee();var n,i;for(i=new Ht(Xt(td(e).a.Jc(),new F));hn(i);)if(n=c(rn(i),17),n.d.i==t||n.c.i==t)return n;return null}function LYe(e,t,n){var i,r,o;for(o=new U(n.a);o.a<o.c.c.length;)r=c(G(o),227),i=new zF(c(Ut(e.a,r.b),68)),Qe(t.a,i),LYe(e,i,r)}function PYe(e,t,n){var i,r,o;i=t.c.p,o=t.p,e.b[i][o]=new sQe(e,t),n&&(e.a[i][o]=new tDe(t),r=c($(t,(Ie(),_w)),9),r&&jt(e.d,r,t))}function Hzt(e,t,n){var i;e.a=n,e.a.Tg(Hlt,1),(!t.a&&(t.a=new _e(_n,t,10,11)),t.a).i!=0&&(i=c(Se(t,(zd(),BC)),19),Nnt(e,i)),e.a.Ug()}function IYe(e,t){var n,i;return n=t.ni(e.a),n&&(i=qn(Kf((!n.b&&(n.b=new wu((At(),zs),Zo,n)),n.b),di)),i!=null)?i:t.ve()}function Qzt(e,t){var n,i;return n=t.ni(e.a),n&&(i=qn(Kf((!n.b&&(n.b=new wu((At(),zs),Zo,n)),n.b),di)),i!=null)?i:t.ve()}function Gzt(e,t){(!t&&console.groupCollapsed!=null?console.groupCollapsed:console.group??console.log).call(console,e)}function Uzt(e,t,n,i){i==e,c(n.b,68),c(n.b,68),c(i.b,68),c(i.b,68).c.b,ime(i,t,e)}function w2e(e,t,n){t.b=p.Math.max(t.b,-n.a),t.c=p.Math.max(t.c,n.a-e.a),t.d=p.Math.max(t.d,-n.b),t.a=p.Math.max(t.a,n.b-e.b)}function Jzt(e,t,n){var i,r,o;return i=c(ce(su(e.a),t),88),o=(r=i.c,r||(At(),Fh)),(o.Sh()?L0(e.b,c(o,52)):o)==n?WQ(i):fS(i,n),o}function v2e(e,t,n){this.c=e,this.f=new He,this.e=new fs,this.j=new wpe,this.n=new wpe,this.b=t,this.g=new pf(t.c,t.d,t.b,t.a),this.a=n}function jne(e){var t,n,i,r;for(this.a=new Ad,this.d=new Tr,this.e=0,n=e,i=0,r=n.length;i<r;++i)t=n[i],!this.f&&(this.f=t),Vee(this,t)}function RYe(e){rd(),e.length==0?(this.e=0,this.d=1,this.a=Y(K(Hn,1),li,30,15,[0])):(this.e=1,this.d=e.length,this.a=e,a7(this))}function $7(e,t,n){yPe.call(this),this.a=ke(oht,Vxe,219,(Wf(),Y(K(Lv,1),Pe,240,0,[Wo,Kc,Ko])).length,0,1),this.b=e,this.d=t,this.c=n}function Vzt(e){var t,n,i,r,o,a;for(a=c($(e,(Ie(),Si)),12),Me(a,Jj,e.i.n.b),t=ed(e.e),i=t,r=0,o=i.length;r<o;++r)n=i[r],ss(n,a)}function Xzt(e){var t,n,i,r,o,a;for(n=c($(e,(Ie(),Si)),12),Me(n,Jj,e.i.n.b),t=ed(e.g),r=t,o=0,a=r.length;o<a;++o)i=r[o],Os(i,n)}function Wzt(e,t){var n,i,r,o;for(i=0,r=t.gc();i<r;++i)n=t.Rl(i),ae(n,104)&&(c(n,20).Bb&rc)!=0&&(o=t.Sl(i),o!=null&&Pie(e,c(o,57)))}function Kzt(){var e;return pU!=0&&(e=Date.now(),e-Eft>2e3&&(Eft=e,bU=p.setTimeout(h8t,10))),pU++==0?(bIt((O1e(),kke)),!0):!1}function Yzt(e,t,n){var i;(Xft?(rzt(e),!0):Wft||Yft?(R6(),!0):Kft&&(R6(),!1))&&(i=new DFe(t),i.b=n,rGt(e,i))}function Tne(e,t){var n;n=!e.A.Gc((Tu(),qb))||e.q==(es(),kc),e.u.Gc((Gl(),W1))?n?_tn(e,t):Xst(e,t):e.u.Gc(ap)&&(n?etn(e,t):aot(e,t))}function $Ye(e){var t;xe(Se(e,(In(),A3)))===xe((D1(),bV))&&(Wi(e)?(t=c(Se(Wi(e),A3),348),ri(e,A3,t)):ri(e,A3,XC))}function Zzt(e,t,n){var i,r;cie(e.e,t,n,(Ue(),Yt)),cie(e.i,t,n,nn),e.a&&(r=c($(t,(Ie(),Si)),12),i=c($(n,Si),12),Jee(e.g,r,i))}function BYe(e,t,n){return new pf(p.Math.min(e.a,t.a)-n/2,p.Math.min(e.b,t.b)-n/2,p.Math.abs(e.a-t.a)+n,p.Math.abs(e.b-t.b)+n)}function eFt(e,t){var n,i;return n=hc(e.a.c.p,t.a.c.p),n!=0?n:(i=hc(e.a.d.i.p,t.a.d.i.p),i!=0?i:hc(t.a.d.p,e.a.d.p))}function tFt(e,t,n){var i,r,o,a;return o=t.j,a=n.j,o!=a?o.g-a.g:(i=e.f[t.p],r=e.f[n.p],i==0&&r==0?0:i==0?-1:r==0?1:Ci(i,r))}function zYe(e){var t;this.d=new He,this.j=new fs,this.g=new fs,t=e.g.b,this.f=c($(Vr(t),(Ge(),Vu)),87),this.e=de(be(fQ(t,Kv)))}function FYe(e){this.d=new He,this.e=new E0,this.c=ke(Hn,li,30,(Ue(),Y(K(Bs,1),uc,64,0,[Bo,Kt,nn,mn,Yt])).length,15,1),this.b=e}function y2e(e,t,n){var i;switch(i=n[e.g][t],e.g){case 1:case 3:return new ze(0,i);case 2:case 4:return new ze(i,0);default:return null}}function nFt(e,t){var n;if(n=Nx(e.o,t),n==null)throw V(new Jh("Node did not exist in input."));return vye(e,t),Nie(e,t),uye(e,t,n),null}function qYe(e,t,n){var i,r;r=c(rD(t.f),207);try{r.kf(e,n),Vpe(t.f,r)}catch(o){throw o=kr(o),ae(o,102)?(i=o,V(i)):V(o)}}function HYe(e,t,n){var i,r,o,a,d,b;return i=null,d=bxe(v7(),t),o=null,d&&(r=null,b=gxe(d,n),a=null,b!=null&&(a=e.of(d,b)),r=a,o=r),i=o,i}function Ene(e,t,n,i){var r;if(r=e.length,t>=r)return r;for(t=t>0?t:0;t<r&&!Jte((en(t,e.length),e.charCodeAt(t)),n,i);t++);return t}function xh(e,t){var n,i;for(i=e.c.length,t.length<i&&(t=Uz(new Array(i),t)),n=0;n<i;++n)mr(t,n,e.c[n]);return t.length>i&&mr(t,i,null),t}function QYe(e,t){var n,i;for(i=e.a.length,t.length<i&&(t=Uz(new Array(i),t)),n=0;n<i;++n)mr(t,n,e.a[n]);return t.length>i&&mr(t,i,null),t}function iFt(e){var t;if(e==null)return null;if(t=JJt(Lc(e,!0)),t==null)throw V(new kY("Invalid hexBinary value: '"+e+"'"));return t}function uQ(e,t,n){var i;t.a.length>0&&(Qe(e.b,new UFe(t.a,n)),i=t.a.length,0<i?t.a=Fa(t.a,0,0):0>i&&(t.a+=qBe(ke(_a,cd,30,-i,15,1))))}function GYe(e,t,n){var i,r,o;if(!n[t.d])for(n[t.d]=!0,r=new U(Px(t));r.a<r.c.c.length;)i=c(G(r),220),o=ZH(i,t),GYe(e,o,n)}function UYe(e,t){var n,i,r,o;for(n=0,r=new U(t.a);r.a<r.c.c.length;)i=c(G(r),9),o=i.o.a+i.d.c+i.d.b+e.j,n=p.Math.max(n,o);return n}function hb(e,t,n){var i,r,o;return r=c(Ut(e.e,t),395),r?(o=M0e(r,n),VBe(e,r),o):(i=new npe(e,t,n),ci(e.e,t,i),EQe(i),null)}function rFt(e,t){var n;if(n=Ut(e.q,t),n==null)throw V(new Jh("Port did not exist in input."));return vye(e,t),Nie(e,t),uye(e,t,n),null}function Cne(){return cG(),Y(K(Dht,1),Pe,169,0,[Nht,Aht,_ht,kht,xht,Oht,Tht,jht,Sht,Mht,Cht,Eht,vht,wht,yht,bht,pht,mht,dht,hht,ght,dce])}function LS(e){switch(e.g){case 4:return new ze(0,-1);case 1:return new ze(1,0);case 2:return new ze(-1,0);default:return new ze(0,1)}}function Mne(e){switch(e.g){case 1:return _r(),Ma;case 4:return _r(),po;case 2:return _r(),vo;case 3:return _r(),Rh}return _r(),$h}function sFt(e){var t;switch(t=e.fj(null),t){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}function kh(){kh=Z,_t=new A_("PARENTS",0),pr=new A_("NODES",1),sh=new A_("EDGES",2),Kg=new A_("PORTS",3),J1=new A_("LABELS",4)}function oFt(e,t,n,i){var r,o,a;return r=new C1(e.e,1,13,(a=t.c,a||(At(),Fh)),(o=n.c,o||(At(),Fh)),Rg(e,t),!1),i?i.lj(r):i=r,i}function cFt(e,t,n){var i;switch(i=n.q.getFullYear()-H0+H0,i<0&&(i=-i),t){case 1:e.a+=i;break;case 2:$d(e,i%100,2);break;default:$d(e,i,t)}}function Pn(e,t){var n,i;if(ev(t,e.b),t>=e.b>>1)for(i=e.c,n=e.b;n>t;--n)i=i.b;else for(i=e.a.a,n=0;n<t;++n)i=i.a;return new _Fe(e,t,i)}function JYe(e){this.b=new He,this.e=new He,this.d=e,this.a=!D6(mi(new Tt(null,new X2(new wh(e.b))),new S6(new GR))).zd((Fp(),Ok))}function lFt(e){var t;e.g&&(e.c.ig()?e.f:e.a)&&(t=e.c.ig()?e.f:e.a,jye(t.a,e.o,!0),jye(t.a,e.o,!1),Me(e.o,(Ge(),ar),(es(),Fb)))}function VYe(e,t){var n,i,r;r=t.d.i,i=r.k,!(i==(Jt(),ur)||i==_h)&&(n=new Ht(Xt(Fi(r).a.Jc(),new F)),hn(n)&&ci(e.k,t,c(rn(n),17)))}function uFt(e,t){return A1(),Ci((e.a.b==0?new ze(e.c.e.a,e.c.e.b):c(q6(e.a),8)).b,(t.a.b==0?new ze(t.c.e.a,t.c.e.b):c(q6(t.a),8)).b)}function aFt(e,t){return A1(),Ci((e.a.b==0?new ze(e.c.e.a,e.c.e.b):c(q6(e.a),8)).a,(t.a.b==0?new ze(t.c.e.a,t.c.e.b):c(q6(t.a),8)).a)}function fFt(e,t){return A1(),Ci((e.a.b==0?new ze(e.b.e.a,e.b.e.b):c(df(e.a),8)).a,(t.a.b==0?new ze(t.b.e.a,t.b.e.b):c(df(t.a),8)).a)}function hFt(e,t){return A1(),Ci((e.a.b==0?new ze(e.b.e.a,e.b.e.b):c(df(e.a),8)).b,(t.a.b==0?new ze(t.b.e.a,t.b.e.b):c(df(t.a),8)).b)}function Rx(){Rx=Z,lp=new __("DISTRIBUTED",0),tI=new __("JUSTIFIED",1),S7e=new __("BEGIN",2),WC=new __(cj,3),j7e=new __("END",4)}function Ane(e,t){var n,i,r;return i=Dt(e.Ah(),t),n=t-e.gi(),n<0?(r=e.Fh(i),r>=0?e.Th(r):mie(e,i)):n<0?mie(e,i):c(i,69).uk().zk(e,e.ei(),n)}function XYe(e){var t,n,i;for(i=(!e.o&&(e.o=new Nl((lc(),t1),Zg,e,0)),e.o),n=i.c.Jc();n.e!=n.i.gc();)t=c(n.Wj(),45),t.kd();return gD(i)}function Ve(e){var t;if(ae(e.a,4)){if(t=p2e(e.a),t==null)throw V(new co(Jlt+e.b+"'. "+Ult+(x1(bI),bI.k)+A4e));return t}else return e.a}function dFt(e){var t;if(e==null)return null;if(t=ztn(Lc(e,!0)),t==null)throw V(new kY("Invalid base64Binary value: '"+e+"'"));return t}function un(e){var t;try{return t=e.i.Xb(e.e),e.Vj(),e.g=e.e++,t}catch(n){throw n=kr(n),ae(n,99)?(e.Vj(),V(new Mo)):V(n)}}function Nne(e){var t;try{return t=e.c.Ti(e.e),e.Vj(),e.g=e.e++,t}catch(n){throw n=kr(n),ae(n,99)?(e.Vj(),V(new Mo)):V(n)}}function aQ(e){var t,n,i,r;for(r=0,n=0,i=e.length;n<i;n++)t=(en(n,e.length),e.charCodeAt(n)),t>=64&&t<128&&(r=Zh(r,Ld(1,t-64)));return r}function fQ(e,t){var n,i;return i=null,ki(e,(In(),Gk))&&(n=c($(e,Gk),105),n.nf(t)&&(i=n.mf(t))),i==null&&Vr(e)&&(i=$(Vr(e),t)),i}function gFt(e,t){var n;return n=c($(e,(Ge(),go)),79),TZ(t,Ddt)?n?xu(n):(n=new tu,Me(e,go,n)):n&&Me(e,go,null),n}function pFt(e,t){var n,i,r;for(r=new Gc(t.gc()),i=t.Jc();i.Ob();)n=c(i.Pb(),295),n.c==n.f?FS(e,n,n.c):DGt(e,n)||It(r.c,n);return r}function WYe(e,t){var n,i,r;for(n=e.o,r=c(c(Ei(e.r,t),24),85).Jc();r.Ob();)i=c(r.Pb(),116),i.e.a=wqt(i,n.a),i.e.b=n.b*de(be(i.b.mf(SU)))}function bFt(e,t){var n,i,r,o;return r=e.k,n=de(be($(e,(Ie(),Dw)))),o=t.k,i=de(be($(t,Dw))),o!=(Jt(),Ar)?-1:r!=Ar?1:n==i?0:n<i?-1:1}function mFt(e,t){var n,i;return n=c(c(Ut(e.g,t.a),49).a,68),i=c(c(Ut(e.g,t.b),49).a,68),C0(t.a,t.b)-C0(t.a,qge(n.b))-C0(t.b,qge(i.b))}function PS(e,t){var n,i;if(++e.j,t!=null&&(n=(i=e.a.Cb,ae(i,101)?c(i,101).qh():null),JUt(t,n))){V4(e.a,4,n);return}V4(e.a,4,c(t,131))}function hQ(e){switch(J1e(),this.c=new He,this.d=e,e.g){case 0:case 2:this.a=Wpe(yOe),this.b=sr;break;case 3:case 1:this.a=yOe,this.b=Gr}}function wFt(e){var t;S4(c($(e,(Ge(),ar)),103))&&(t=e.b,Wtt((ht(0,t.c.length),c(t.c[0],26))),Wtt(c(Je(t,t.c.length-1),26)))}function vFt(e,t){t.Tg("Self-Loop post-processing",1),hr(mi(mi(jo(new Tt(null,new Et(e.b,16)),new fA),new MR),new AR),new NR),t.Ug()}function KYe(e,t,n){var i,r;if(e.c)Nc(e.c,e.c.i+t),_l(e.c,e.c.j+n);else for(r=new U(e.b);r.a<r.c.c.length;)i=c(G(r),168),KYe(i,t,n)}function yFt(e){var t,n,i;for(i=e.c.a,e.p=(Bn(i),new ql(i)),n=new U(i);n.a<n.c.c.length;)t=c(G(n),9),t.p=nUt(t).a;Mt(),Rr(e.p,new KR)}function xFt(e,t){var n,i;if(e.j.length!=t.j.length)return!1;for(n=0,i=e.j.length;n<i;n++)if(!St(e.j[n],t.j[n]))return!1;return!0}function YYe(e,t){Mt();var n,i,r,o;for(n=e,o=t,ae(e,24)&&!ae(t,24)&&(n=t,o=e),r=n.Jc();r.Ob();)if(i=r.Pb(),o.Gc(i))return!1;return!0}function kFt(e,t,n,i){if(t.a<i.a)return!0;if(t.a==i.a){if(t.b<i.b)return!0;if(t.b==i.b&&e.b>n.b)return!0}return!1}function ZYe(e){var t;return t=new g0,t.a+="n",e.k!=(Jt(),ur)&&Zn(Zn((t.a+="(",t),NZ(e.k).toLowerCase()),")"),Zn((t.a+="_",t),KD(e)),t.a}function B7(){B7=Z,Pje=new j_(_5e,0),Xle=new j_(Yre,1),Wle=new j_("LINEAR_SEGMENTS",2),wC=new j_("BRANDES_KOEPF",3),vC=new j_(flt,4)}function W4(){W4=Z,FJ=new xF("P1_TREEIFICATION",0),TC=new xF("P2_NODE_ORDERING",1),EC=new xF("P3_NODE_PLACEMENT",2),CC=new xF(vlt,3)}function K4(e,t,n,i){var r;return n>=0?e.Ph(t,n,i):(e.Mh()&&(i=(r=e.Ch(),r>=0?e.xh(i):e.Mh().Qh(e,-1-r,null,i))),e.zh(t,n,i))}function x2e(e,t){switch(t){case 7:!e.e&&(e.e=new Ct($i,e,7,4)),An(e.e);return;case 8:!e.d&&(e.d=new Ct($i,e,8,5)),An(e.d);return}o2e(e,t)}function ri(e,t,n){return n==null?(!e.o&&(e.o=new Nl((lc(),t1),Zg,e,0)),oQ(e.o,t)):(!e.o&&(e.o=new Nl((lc(),t1),Zg,e,0)),eL(e.o,t,n)),e}function bc(e,t){var n;n=e.dd(t);try{return n.Pb()}catch(i){throw i=kr(i),ae(i,113)?V(new qc("Can't get element "+t)):V(i)}}function eZe(e,t){var n;switch(n=c(eo(e.b,t),129).n,t.g){case 1:e.t>=0&&(n.d=e.t);break;case 3:e.t>=0&&(n.a=e.t)}e.C&&(n.b=e.C.b,n.c=e.C.c)}function OFt(e){var t;t=e.a;do t=c(rn(new Ht(Xt(vr(t).a.Jc(),new F))),17).c.i,t.k==(Jt(),Cr)&&e.b.Ec(t);while(t.k==(Jt(),Cr));e.b=ju(e.b)}function tZe(e,t){var n,i,r;for(r=e,i=new Ht(Xt(vr(t).a.Jc(),new F));hn(i);)n=c(rn(i),17),n.c.i.c&&(r=p.Math.max(r,n.c.i.c.p));return r}function SFt(e,t){var n,i,r;for(r=0,i=c(c(Ei(e.r,t),24),85).Jc();i.Ob();)n=c(i.Pb(),116),r+=n.d.d+n.b.Kf().b+n.d.a,i.Ob()&&(r+=e.w);return r}function jFt(e,t){var n,i,r;for(r=0,i=c(c(Ei(e.r,t),24),85).Jc();i.Ob();)n=c(i.Pb(),116),r+=n.d.b+n.b.Kf().a+n.d.c,i.Ob()&&(r+=e.w);return r}function nZe(e){var t,n,i,r;if(i=0,r=xv(e),r.c.length==0)return 1;for(n=new U(r);n.a<n.c.c.length;)t=c(G(n),19),i+=nZe(t);return i}function iZe(e){var t,n;for(this.b=new He,this.c=e,this.a=!1,n=new U(e.a);n.a<n.c.c.length;)t=c(G(n),9),this.a=this.a|t.k==(Jt(),ur)}function TFt(e,t,n){var i,r,o,a;return i=e.bd(t),i!=-1&&(e.Nj()?(o=e.Oj(),a=aq(e,i),r=e.Gj(4,a,null,i,o),n?n.lj(r):n=r):aq(e,i)),n}function _s(e,t,n){var i,r,o,a;return i=e.bd(t),i!=-1&&(e.Nj()?(o=e.Oj(),a=Y4(e,i),r=e.Gj(4,a,null,i,o),n?n.lj(r):n=r):Y4(e,i)),n}function EFt(e,t,n,i){var r,o,a;n.Uh(t)&&(Hs(),yte(t)?(r=c(n.Jh(t),164),Wzt(e,r)):(o=(a=t,a?c(i,52).di(a):null),o&&Zjt(n.Jh(t),o)))}function dQ(e,t,n,i){var r,o,a;return o=Dt(e.Ah(),t),r=t-e.gi(),r<0?(a=e.Fh(o),a>=0?e.Ih(a,n,!0):uw(e,o,n)):c(o,69).uk().wk(e,e.ei(),r,n,i)}function CFt(e,t,n,i){var r,o;o=t.nf((In(),_3))?c(t.mf(_3),24):e.j,r=yBt(o),r!=(cG(),dce)&&(n&&!d2e(r)||jve(VJt(e,r,i),t))}function _ne(e,t){return Yr(e)?!!yft[t]:e.Qm?!!e.Qm[t]:$2(e)?!!vft[t]:R2(e)?!!wft[t]:!1}function MFt(e){switch(e.g){case 1:return tw(),lP;case 3:return tw(),cP;case 2:return tw(),pce;case 4:return tw(),gce;default:return null}}function AFt(e,t,n){if(e.e)switch(e.b){case 1:FNt(e.c,t,n);break;case 0:qNt(e.c,t,n)}else dUe(e.c,t,n);e.a[t.p][n.p]=e.c.i,e.a[n.p][t.p]=e.c.e}function rZe(e){var t,n;if(e==null)return null;for(n=ke(Wd,Fe,201,e.length,0,2),t=0;t<n.length;t++)n[t]=c(VLt(e[t],e[t].length),201);return n}function sZe(e){var t;t=c($(e,(Jo(),N9e)),100),Me(e,(Ii(),n9),new ze(0,0)),hrt(new hD,e,t.b-de(be($(e,due))),t.d-de(be($(e,gue))))}function gQ(e){var t;if(Zte(e))return xq(e),e.sl()&&(t=X7(e.e,e.b,e.c,e.a,e.j),e.j=t),e.g=e.a,++e.a,++e.c,e.i=0,e.j;throw V(new Mo)}function oZe(e,t,n){n.Tg("Compound graph preprocessor",1),e.a=new Jm,Gst(e,t,null),hZt(e,t),PVt(e),Me(t,(Ie(),J6e),e.a),e.a=null,cc(e.b),n.Ug()}function cZe(e,t,n){var i,r,o;for(r=new Ht(Xt((t?vr(e):Fi(e)).a.Jc(),new F));hn(r);)i=c(rn(r),17),o=t?i.c.i:i.d.i,o.k==(Jt(),ac)&&zr(o,n)}function NFt(e,t){var n,i,r;for(t.Tg("Untreeify",1),n=c($(e,(Ii(),k9e)),16),r=n.Jc();r.Ob();)i=c(r.Pb(),65),ei(i.b.d,i),ei(i.c.b,i);t.Ug()}function lZe(e,t,n){var i,r,o;return i=t.i.j.c.length,ki(t,(Ie(),Ri))&&ki(n,Ri)?(r=aw(t,n,e.b,i),o=aw(n,t,e.b,i),r<o?-1:r>o?1:0):0}function pv(){pv=Z,DJ=new wF(Zf,0),Jle=new wF("PORT_POSITION",1),S3=new wF("NODE_SIZE_WHERE_SPACE_PERMITS",2),O3=new wF("NODE_SIZE",3)}function Bd(){Bd=Z,wae=new _T("AUTOMATIC",0),GP=new _T(dk,1),UP=new _T(gk,2),uV=new _T("TOP",3),cV=new _T(Wxe,4),lV=new _T(cj,5)}function $x(e,t,n){var i,r;if(r=e.gc(),t>=r)throw V(new Q2(t,r));if(e.Qi()&&(i=e.bd(n),i>=0&&i!=t))throw V(new qt(YL));return e.Vi(t,n)}function Rg(e,t){var n,i,r;if(r=zZe(e,t),r>=0)return r;if(e.ml()){for(i=0;i<e.i;++i)if(n=e.nl(c(e.g[i],57)),xe(n)===xe(t))return i}return-1}function k2e(e,t){if(this.a=c(Bn(e),257),this.b=c(Bn(t),257),e.Cd(t)>0||e==(bY(),Uoe)||t==(mY(),Joe))throw V(new qt("Invalid range: "+hUe(e,t)))}function O2e(e,t,n,i){US();var r,o;for(r=0,o=0;o<n;o++)r=Ns(js(Zr(t[o],Js),Zr(i,Js)),Zr(Gn(r),Js)),e[o]=Gn(r),r=Jp(r,32);return Gn(r)}function S2e(e,t,n){var i,r;for(r=0,i=0;i<hce;i++)r=p.Math.max(r,rne(e.a[t.g][i],n));return t==(Wf(),Kc)&&e.b&&(r=p.Math.max(r,e.b.b)),r}function pQ(e,t){var n,i;if(f0e(t>0),(t&-t)==t)return ks(t*cu(e,31)*4656612873077393e-25);do n=cu(e,31),i=n%t;while(n-i+(t-1)<0);return ks(i)}function _Ft(e,t){var n,i,r;for(n=Im(new Bp,e),r=new U(t);r.a<r.c.c.length;)i=c(G(r),126),Of(uf(ff(hf(af(new Ra,0),0),n),i));return n}function XD(e,t,n){var i,r;for(r$t(e,t-e.s,n-e.t),r=new U(e.n);r.a<r.c.c.length;)i=c(G(r),211),tY(i,i.e+t-e.s),Az(i,i.f+n-e.t);e.s=t,e.t=n}function DFt(e,t,n){switch(n.g){case 1:e.a=t.a/2,e.b=0;break;case 2:e.a=t.a,e.b=t.b/2;break;case 3:e.a=t.a/2,e.b=t.b;break;case 4:e.a=0,e.b=t.b/2}}function WD(e,t,n,i){var r,o;for(r=t;r<e.c.length;r++)if(o=(ht(r,e.c.length),c(e.c[r],12)),n.Mb(o))It(i.c,o);else return r;return e.c.length}function LFt(e){var t,n,i;for(i=c(Ei(e.a,(bv(),YU)),16).Jc();i.Ob();)n=c(i.Pb(),108),t=L2e(n),W6(e,n,t[0],(ew(),Mw),0),W6(e,n,t[1],Aw,1)}function PFt(e){var t,n,i;for(i=c(Ei(e.a,(bv(),ZU)),16).Jc();i.Ob();)n=c(i.Pb(),108),t=L2e(n),W6(e,n,t[0],(ew(),Mw),0),W6(e,n,t[1],Aw,1)}function Dne(e){switch(e.g){case 0:return null;case 1:return new WXe;case 2:return new v1e;default:throw V(new qt(Jse+(e.f!=null?e.f:""+e.g)))}}function uZe(e){var t;return t=de(be(Se(e,(In(),ly))))*p.Math.sqrt((!e.a&&(e.a=new _e(_n,e,10,11)),e.a).i),new ze(t,t/de(be(Se(e,a9))))}function Lne(e){var t;return e.f&&e.f.Sh()&&(t=c(e.f,52),e.f=c(L0(e,t),83),e.f!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,9,8,t,e.f))),e.f}function Pne(e){var t;return e.i&&e.i.Sh()&&(t=c(e.i,52),e.i=c(L0(e,t),83),e.i!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,9,7,t,e.i))),e.i}function Qs(e){var t;return e.b&&(e.b.Db&64)!=0&&(t=e.b,e.b=c(L0(e,t),20),e.b!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,9,21,t,e.b))),e.b}function bQ(e,t){var n,i,r;e.d==null?(++e.e,++e.f):(i=t.yi(),GVt(e,e.f+1),r=(i&gi)%e.d.length,n=e.d[r],!n&&(n=e.d[r]=e.bk()),n.Ec(t),++e.f)}function j2e(e,t,n){var i;return t.rk()?!1:t.Gk()!=-2?(i=t.gk(),i==null?n==null:xi(i,n)):t.ok()==e.e.Ah()&&n==null}function mQ(){var e;zu(16,Fot),e=BXe(16),this.b=ke(Voe,EL,309,e,0,1),this.c=ke(Voe,EL,309,e,0,1),this.a=null,this.e=null,this.i=0,this.f=e-1,this.g=0}function Oh(e){_0e.call(this),this.k=(Jt(),ur),this.j=(zu(6,Ev),new Gc(6)),this.b=(zu(2,Ev),new Gc(2)),this.d=new fY,this.f=new d1e,this.a=e}function IFt(e){var t,n,i,r,o;for(n=0,r=new U(e.a);r.a<r.c.c.length;)i=c(G(r),126),i.d=n++;return t=FQt(e),o=null,t.c.length>1&&(o=_Ft(e,t)),o}function RFt(e){var t,n,i;for(t=0,i=new U(e.c.a);i.a<i.c.c.length;)n=c(G(i),9),t+=Jf(new Ht(Xt(Fi(n).a.Jc(),new F)));return t/e.c.a.c.length}function Ine(e){var t,n;for(n=new on(e);n.e!=n.i.gc();)if(t=c(un(n),88),t.e||(!t.d&&(t.d=new Nr(Ys,t,1)),t.d).i!=0)return!0;return!1}function Rne(e){var t,n;for(n=new on(e);n.e!=n.i.gc();)if(t=c(un(n),88),t.e||(!t.d&&(t.d=new Nr(Ys,t,1)),t.d).i!=0)return!0;return!1}function aZe(e,t,n,i){var r,o,a;for(r=c(Ei(i?e.a:e.b,t),24),a=r.Jc();a.Ob();)if(o=c(a.Pb(),19),UQ(e,n,o))return!0;return!1}function $Ft(e,t){for(var n,i;e.Ob();)if(!t.Ob()||(n=e.Pb(),i=t.Pb(),!(xe(n)===xe(i)||n!=null&&xi(n,i))))return!1;return!t.Ob()}function BFt(e){var t,n;e.c.length<=1||(t=Tit(e,(Ue(),mn)),utt(e,c(t.a,15).a,c(t.b,15).a),n=Tit(e,Yt),utt(e,c(n.a,15).a,c(n.b,15).a))}function zFt(e,t,n){var i,r;for(r=e.a.b,i=r.c.length;i<n;i++)Qp(r,r.c.length,new dc(e.a));zr(t,(ht(n-1,r.c.length),c(r.c[n-1],26))),e.b[t.p]=n}function fZe(e,t){var n,i,r;for(e.b[t.g]=1,i=Pn(t.d,0);i.b!=i.d.c;)n=c(Dn(i),65),r=n.c,e.b[r.g]==1?ei(e.a,n):e.b[r.g]==2?e.b[r.g]=1:fZe(e,r)}function $ne(){$ne=Z,rTe=(Cie(),eTe),iTe=new qp(8),new Ur((In(),Ih),iTe),new Ur(oh,8),Lwt=Y8e,tTe=Twt,nTe=Ewt,Dwt=new Ur(VP,(Bt(),!1))}function FFt(e,t,n){var i;n.Tg("Shrinking tree compaction",1),Ze(Ye($(t,(pS(),JE))))?(oRt(e,t.f),jVe(t.f,(i=t.c,i))):jVe(t.f,t.c),n.Ug()}function T2e(e,t,n,i){switch(t){case 7:return!e.e&&(e.e=new Ct($i,e,7,4)),e.e;case 8:return!e.d&&(e.d=new Ct($i,e,8,5)),e.d}return Xwe(e,t,n,i)}function Bne(e){var t;return e.a&&e.a.Sh()&&(t=c(e.a,52),e.a=c(L0(e,t),146),e.a!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,9,5,t,e.a))),e.a}function db(e){return e<48||e>102?-1:e<=57?e-48:e<65?-1:e<=70?e-65+10:e<97?-1:e-97+10}function zne(e,t){if(e==null)throw V(new l4("null key in entry: null="+t));if(t==null)throw V(new l4("null value in entry: "+e+"=null"))}function hZe(e,t){var n;return n=Y(K(is,1),io,30,15,[rne(e.a[0],t),rne(e.a[1],t),rne(e.a[2],t)]),e.d&&(n[0]=p.Math.max(n[0],n[2]),n[2]=n[0]),n}function dZe(e,t){var n;return n=Y(K(is,1),io,30,15,[UH(e.a[0],t),UH(e.a[1],t),UH(e.a[2],t)]),e.d&&(n[0]=p.Math.max(n[0],n[2]),n[2]=n[0]),n}function E2e(e,t,n){S4(c($(t,(Ge(),ar)),103))||(Rbe(e,t,$g(t,n)),Rbe(e,t,$g(t,(Ue(),mn))),Rbe(e,t,$g(t,Kt)),Mt(),Rr(t.j,new Y_e(e)))}function gZe(e){var t,n;for(e.c||UZt(e),n=new tu,t=new U(e.a),G(t);t.a<t.c.c.length;)ei(n,c(G(t),415).a);return gn(n.b!=0),ma(n,n.c.b),n}function qFt(e,t,n){var i,r,o,a,d;for(d=e.r+t,e.r+=t,e.d+=n,i=n/e.n.c.length,r=0,a=new U(e.n);a.a<a.c.c.length;)o=c(G(a),211),BJt(o,d,i,r),++r}function HFt(e){var t,n,i;for(e.b.a.$b(),e.a=ke(kU,Pt,60,e.c.c.a.b.c.length,0,1),t=0,i=new U(e.c.c.a.b);i.a<i.c.c.length;)n=c(G(i),60),n.f=t++}function QFt(e){var t,n,i;for(e.b.a.$b(),e.a=ke(kce,Pt,84,e.c.a.a.b.c.length,0,1),t=0,i=new U(e.c.a.a.b);i.a<i.c.c.length;)n=c(G(i),84),n.i=t++}function GFt(e){var t,n,i,r,o;for(i=new U(e.b);i.a<i.c.c.length;)for(n=c(G(i),26),t=0,o=new U(n.a);o.a<o.c.c.length;)r=c(G(o),9),r.p=t++}function UFt(e,t,n){var i,r,o,a;for(a=0,i=n/e.a.c.length,o=new U(e.a);o.a<o.c.c.length;)r=c(G(o),175),XD(r,r.s,r.t+a*i),qFt(r,e.d-r.r+t,i),++a}function pZe(e){var t;if(t=X$t(e),!hn(e))throw V(new qc("position (0) must be less than the number of elements that remained ("+t+")"));return rn(e)}function JFt(e,t){var n;return e.a||(n=ke(is,io,30,0,15,1),ax(e.b.a,new RNe(n)),VLe(n,uXe(Re.prototype.Ke,Re,[])),e.a=new yFe(n,e.d)),oH(e.a,t)}function bZe(e){switch(e.g){case 1:return Ue(),Yt;case 4:return Ue(),Kt;case 3:return Ue(),nn;case 2:return Ue(),mn;default:return Ue(),Bo}}function VFt(e,t,n){t.k==(Jt(),ur)&&n.k==Cr&&(e.d=lne(t,(Ue(),mn)),e.b=lne(t,Kt)),n.k==ur&&t.k==Cr&&(e.d=lne(n,(Ue(),Kt)),e.b=lne(n,mn))}function Fne(e,t){var n,i,r;for(r=Io(e,t),i=r.Jc();i.Ob();)if(n=c(i.Pb(),12),$(n,(Ie(),Jl))!=null||UT(new wh(n.b)))return!0;return!1}function XFt(e,t,n){n.Tg("Linear segments node placement",1),e.b=c($(t,(Ie(),w3)),317),Onn(e,t),VYt(e,t),pZt(e,t),Ztn(e),e.a=null,e.b=null,n.Ug()}function C2e(e,t){return Nc(t,e.e+e.d+(e.c.c.length==0?0:e.b)),_l(t,e.f),e.a=p.Math.max(e.a,t.f),e.d+=t.g+(e.c.c.length==0?0:e.b),Qe(e.c,t),!0}function WFt(e,t){var n,i,r,o,a,d;for(r=t.length-1,a=0,d=0,i=0;i<=r;i++)o=t[i],n=uGt(r,i)*Mwe(1-e,r-i)*Mwe(e,i),a+=o.a*n,d+=o.b*n;return new ze(a,d)}function mZe(e,t){var n,i,r,o,a;for(n=t.gc(),e.Zi(e.i+n),o=t.Jc(),a=e.i,e.i+=n,i=a;i<e.i;++i)r=o.Pb(),QT(e,i,e.Xi(i,r)),e.Ki(i,r),e.Li();return n!=0}function KFt(e,t,n){var i,r,o;return e.Nj()?(i=e.Cj(),o=e.Oj(),++e.j,e.oj(i,e.Xi(i,t)),r=e.Gj(3,null,t,i,o),n?n.lj(r):n=r):Uze(e,e.Cj(),t),n}function YFt(e,t,n){var i,r,o;return i=c(ce(pc(e.a),t),88),o=(r=i.c,ae(r,89)?c(r,29):(At(),rf)),((o.Db&64)!=0?L0(e.b,o):o)==n?WQ(i):fS(i,n),o}function ZFt(e){var t;return e==null?null:new x0((t=Lc(e,!0),t.length>0&&(en(0,t.length),t.charCodeAt(0)==43)?(en(1,t.length+1),t.substr(1)):t))}function eqt(e){var t;return e==null?null:new x0((t=Lc(e,!0),t.length>0&&(en(0,t.length),t.charCodeAt(0)==43)?(en(1,t.length+1),t.substr(1)):t))}function M2e(e,t,n,i,r,o,a,d){var b,v;i&&(b=i.a[0],b&&M2e(e,t,n,b,r,o,a,d),Xne(e,n,i.d,r,o,a,d)&&t.Ec(i),v=i.a[1],v&&M2e(e,t,n,v,r,o,a,d))}function z7(e,t){var n,i,r,o;for(o=e.gc(),t.length<o&&(t=Uz(new Array(o),t)),r=t,i=e.Jc(),n=0;n<o;++n)mr(r,n,i.Pb());return t.length>o&&mr(t,o,null),t}function tqt(e,t){var n,i;if(i=e.gc(),t==null){for(n=0;n<i;n++)if(e.Xb(n)==null)return n}else for(n=0;n<i;n++)if(xi(t,e.Xb(n)))return n;return-1}function qne(e,t){var n,i,r;return n=t.jd(),r=t.kd(),i=e.xc(n),!(!(xe(r)===xe(i)||r!=null&&xi(r,i))||i==null&&!e._b(n))}function nqt(e,t){var n,i,r;return t<=22?(n=e.l&(1<<t)-1,i=r=0):t<=44?(n=e.l,i=e.m&(1<<t-22)-1,r=0):(n=e.l,i=e.m,r=e.h&(1<<t-44)-1),nl(n,i,r)}function iqt(e,t){switch(t.g){case 1:return e.f.n.d+e.t;case 3:return e.f.n.a+e.t;case 2:return e.f.n.c+e.s;case 4:return e.f.n.b+e.s;default:return 0}}function rqt(e,t){var n,i;switch(i=t.c,n=t.a,e.b.g){case 0:n.d=e.e-i.a-i.d;break;case 1:n.d+=e.e;break;case 2:n.c=e.e-i.a-i.d;break;case 3:n.c=e.e+i.d}}function wQ(){wQ=Z,_ue=new OF(Zf,0),r8e=new OF(Yct,1),s8e=new OF("EDGE_LENGTH_BY_POSITION",2),i8e=new OF("CROSSING_MINIMIZATION_BY_POSITION",3)}function Hne(e,t){var n,i;if(n=c(Nx(e.n,t),19),n)return n;if(i=c(Nx(e.p,t),127),i)return i;throw V(new Jh("Referenced shape does not exist: "+t))}function wZe(e,t){if(e.g==-1)throw V(new El);e.Vj();try{e.d.fd(e.g,t),e.f=e.d.j}catch(n){throw n=kr(n),ae(n,99)?V(new aa):V(n)}}function A2e(e,t){var n,i;if(ae(t,257)){i=c(t,257);try{return n=e.Cd(i),n==0}catch(r){if(r=kr(r),ae(r,214))return!1;throw V(r)}}return!1}function sqt(e,t){if(e.c==t)return e.d;if(e.d==t)return e.c;throw V(new qt("Node 'one' must be either source or target of edge 'edge'."))}function oqt(e,t){if(e.c.i==t)return e.d.i;if(e.d.i==t)return e.c.i;throw V(new qt("Node "+t+" is neither source nor target of edge "+e))}function cqt(e,t,n){n.Tg("Self-Loop ordering",1),hr(Qc(mi(mi(jo(new Tt(null,new Et(t.b,16)),new $O),new zW),new c8),new CR),new S_e(e)),n.Ug()}function Qne(e,t,n,i,r,o){var a,d,b,v,x;for(a=aHt(t,n,o),d=n==(Ue(),Kt)||n==Yt?-1:1,v=e[n.g],x=0;x<v.length;x++)b=v[x],b>0&&(b+=r),v[x]=a,a+=d*(b+i)}function lqt(e){var t;for(t=0;t<e.a.c.length;t++)if(ki(c(Je(e.a,t),9),(Ge(),_le))&&Ze(Ye($(c(Je(e.a,t),9),_le))))return!0;return!1}function vZe(e){var t,n,i;for(i=e.f,e.n=ke(is,io,30,i,15,1),e.d=ke(is,io,30,i,15,1),t=0;t<i;t++)n=c(Je(e.c.b,t),26),e.n[t]=UYe(e,n),e.d[t]=Ynt(e,n)}function yZe(e,t,n,i){var r;this.c=e,this.d=t,r=new _i,rr(r,n,r.c.b,r.c),this.a=r,this.b=c($(i,(Jo(),Bw)),87),this.e=de(be($(i,L9e))),Tot(this)}function uqt(e,t,n){var i,r;return e.a?r=Ci(n.j,t.j):r=Ci(t.j,n.j),r==0?(i=hc(c(Se(t,(zd(),QP)),15).a,c(Se(n,QP),15).a),i):r}function Gne(e,t){var n,i,r;for(r=0,i=2;i<t;i<<=1)(e.Db&i)!=0&&++r;if(r==0){for(n=t<<=1;n<=128;n<<=1)if((e.Db&n)!=0)return 0;return-1}else return r}function xZe(e,t){var n,i,r,o,a;for(a=rl(e.e.Ah(),t),o=null,n=c(e.g,123),r=0;r<e.i;++r)i=n[r],a.$l(i.Jk())&&(!o&&(o=new P5),Ln(o,i));o&&fot(e,o)}function kZe(e){var t,n,i;if(!e)return null;if(e.dc())return"";for(i=new vg,n=e.Jc();n.Ob();)t=n.Pb(),Zs(i,qn(t)),i.a+=" ";return wZ(i,i.a.length-1)}function OZe(e,t){var n=new Array(t),i;switch(e){case 14:case 15:i=0;break;case 16:i=!1;break;default:return n}for(var r=0;r<t;++r)n[r]=i;return n}function ow(e){var t,n,i;for(n=new U(e.a.b);n.a<n.c.c.length;)t=c(G(n),60),t.c.$b();v1(e.d)?i=e.a.c:i=e.a.d,Uc(i,new VNe(e)),e.c.bf(e),wit(e)}function SZe(e){var t,n,i,r;for(n=new U(e.e.c);n.a<n.c.c.length;){for(t=c(G(n),292),r=new U(t.b);r.a<r.c.c.length;)i=c(G(r),448),cxe(i);rnt(t)}}function jZe(e){var t,n,i;for(i=gi,n=new U(e.a);n.a<n.c.c.length;)t=c(G(n),9),ki(t,(Ie(),Ri))&&(i=p.Math.min(i,c($(t,Ri),15).a));return i}function vQ(e){var t,n,i,r,o;for(i=0,o=0,r=0,n=new U(e.a);n.a<n.c.c.length;)t=c(G(n),175),o=p.Math.max(o,t.r),i+=t.d+(r>0?e.c:0),++r;e.b=i,e.d=o}function TZe(e,t){var n;return n=Y(K(is,1),io,30,15,[S2e(e,(Wf(),Wo),t),S2e(e,Kc,t),S2e(e,Ko,t)]),e.f&&(n[0]=p.Math.max(n[0],n[2]),n[2]=n[0]),n}function EZe(e){var t;ki(e,(Ge(),Pw))&&(t=c($(e,Pw),24),t.Gc((yv(),Nf))?(t.Kc(Nf),t.Ec(_f)):t.Gc(_f)&&(t.Kc(_f),t.Ec(Nf)))}function CZe(e){var t;ki(e,(Ge(),Pw))&&(t=c($(e,Pw),24),t.Gc((yv(),Lf))?(t.Kc(Lf),t.Ec(Ya)):t.Gc(Ya)&&(t.Kc(Ya),t.Ec(Lf)))}function Une(e,t,n,i){var r,o,a,d;return e.a==null&&lGt(e,t),a=t.b.j.c.length,o=n.d.p,d=i.d.p,r=d-1,r<0&&(r=a-1),o<=r?e.a[r]-e.a[o]:e.a[a-1]-e.a[o]+e.a[r]}function aqt(e){var t;for(t=0;t<e.a.c.length;t++)if(ki(c(Je(e.a,t),9),(Ge(),Dle))&&!Ze(Ye($(c(Je(e.a,t),9),Dle))))return!1;return!0}function fqt(e,t,n){var i,r,o,a,d;for(o=e.c,d=n?t:e,i=n?e:t,r=d.p+1;r<i.p;++r)if(a=c(Je(o.a,r),9),!(a.k==(Jt(),_h)||Wqt(a)))return!1;return!0}function hqt(e){var t,n;if(!e.b)for(e.b=Uq(c(e.f,19).jh().i),n=new on(c(e.f,19).jh());n.e!=n.i.gc();)t=c(un(n),158),Qe(e.b,new yY(t));return e.b}function dqt(e){var t,n;if(!e.e)for(e.e=Uq(Ype(c(e.f,19)).i),n=new on(Ype(c(e.f,19)));n.e!=n.i.gc();)t=c(un(n),127),Qe(e.e,new nLe(t));return e.e}function MZe(e){var t,n;if(!e.a)for(e.a=Uq(Lq(c(e.f,19)).i),n=new on(Lq(c(e.f,19)));n.e!=n.i.gc();)t=c(un(n),19),Qe(e.a,new JF(e,t));return e.a}function cw(e){var t;if(!e.C&&(e.D!=null||e.B!=null))if(t=Uen(e),t)e.fl(t);else try{e.fl(null)}catch(n){if(n=kr(n),!ae(n,63))throw V(n)}return e.C}function gqt(e){switch(e.q.g){case 5:net(e,(Ue(),Kt)),net(e,mn);break;case 4:kst(e,(Ue(),Kt)),kst(e,mn);break;default:ptt(e,(Ue(),Kt)),ptt(e,mn)}}function pqt(e){switch(e.q.g){case 5:iet(e,(Ue(),nn)),iet(e,Yt);break;case 4:Ost(e,(Ue(),nn)),Ost(e,Yt);break;default:btt(e,(Ue(),nn)),btt(e,Yt)}}function Bx(e,t){var n,i,r;for(r=new fs,i=e.Jc();i.Ob();)n=c(i.Pb(),37),JS(n,r.a,0),r.a+=n.f.a+t,r.b=p.Math.max(r.b,n.f.b);return r.b>0&&(r.b+=t),r}function yQ(e,t){var n,i,r;for(r=new fs,i=e.Jc();i.Ob();)n=c(i.Pb(),37),JS(n,0,r.b),r.b+=n.f.b+t,r.a=p.Math.max(r.a,n.f.a);return r.a>0&&(r.a+=t),r}function AZe(e,t){var n,i;if(t.length==0)return 0;for(n=kee(e.a,t[0],(Ue(),Yt)),n+=kee(e.a,t[t.length-1],nn),i=0;i<t.length;i++)n+=KQt(e,i,t);return n}function NZe(){eE(),this.c=new He,this.i=new He,this.e=new Ad,this.f=new Ad,this.g=new Ad,this.j=new He,this.a=new He,this.b=new yn,this.k=new yn}function Jne(e,t){var n,i;return e.Db>>16==6?e.Cb.Qh(e,5,ch,t):(i=Qs(c(Dt((n=c(Wt(e,16),29),n||e.fi()),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function bqt(e){iS();var t=e.e;if(t&&t.stack){var n=t.stack,i=t+`
`;return n.substring(0,i.length)==i&&(n=n.substring(i.length)),n.split(`
`)}return[]}function mqt(e){var t;return t=(IXe(),_ft),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 _Ze(e){var t,n,i;e.b==e.c&&(i=e.a.length,n=hwe(p.Math.max(8,i))<<1,e.b!=0?(t=gf(e.a,n),qXe(e,t,i),e.a=t,e.b=0):_2(e.a,n),e.c=i)}function wqt(e,t){var n;return n=e.b,n.nf((In(),au))?n.$f()==(Ue(),Yt)?-n.Kf().a-de(be(n.mf(au))):t+de(be(n.mf(au))):n.$f()==(Ue(),Yt)?-n.Kf().a:t}function KD(e){var t;return e.b.c.length!=0&&c(Je(e.b,0),70).a?c(Je(e.b,0),70).a:(t=Aee(e),t??""+(e.c?Lo(e.c.a,e,0):-1))}function xQ(e){var t;return e.f.c.length!=0&&c(Je(e.f,0),70).a?c(Je(e.f,0),70).a:(t=Aee(e),t??""+(e.i?Lo(e.i.j,e,0):-1))}function vqt(e,t){var n,i;if(t<0||t>=e.gc())return null;for(n=t;n<e.gc();++n)if(i=c(e.Xb(n),134),n==e.gc()-1||!i.o)return new Is($e(n),i);return null}function N2e(e){var t,n,i,r,o;for(o=0,r=Gr,i=0,n=new U(e.a);n.a<n.c.c.length;)t=c(G(n),175),o+=t.r+(i>0?e.c:0),r=p.Math.max(r,t.d),++i;e.e=o,e.b=r}function yqt(e){var t,n;if(!e.b)for(e.b=Uq(c(e.f,127).jh().i),n=new on(c(e.f,127).jh());n.e!=n.i.gc();)t=c(un(n),158),Qe(e.b,new yY(t));return e.b}function xqt(e,t){var n,i,r;if(t.dc())return H6(),H6(),mI;for(n=new Vze(e,t.gc()),r=new on(e);r.e!=r.i.gc();)i=un(r),t.Gc(i)&&Ln(n,i);return n}function _2e(e,t,n,i){return t==0?i?(!e.o&&(e.o=new Nl((lc(),t1),Zg,e,0)),e.o):(!e.o&&(e.o=new Nl((lc(),t1),Zg,e,0)),gD(e.o)):dQ(e,t,n,i)}function Vne(e){var t,n;if(e.rb)for(t=0,n=e.rb.i;t<n;++t)z_(ce(e.rb,t));if(e.vb)for(t=0,n=e.vb.i;t<n;++t)z_(ce(e.vb,t));KT((Ll(),bs),e),e.Bb|=1}function Hi(e,t,n,i,r,o,a,d,b,v,x,T,A,L){return xtt(e,t,i,null,r,o,a,d,b,v,A,!0,L),Uwe(e,x),ae(e.Cb,89)&&vv(iu(c(e.Cb,89)),2),n&&Hme(e,n),Gwe(e,T),e}function kqt(e){var t,n;if(e==null)return null;n=0;try{n=Hu(e,ls,gi)&Dr}catch(i){if(i=kr(i),ae(i,133))t=gH(e),n=t[0];else throw V(i)}return _D(n)}function Oqt(e){var t,n;if(e==null)return null;n=0;try{n=Hu(e,ls,gi)&Dr}catch(i){if(i=kr(i),ae(i,133))t=gH(e),n=t[0];else throw V(i)}return _D(n)}function Sqt(e,t){var n,i,r;return r=e.h-t.h,r<0||(n=e.l-t.l,i=e.m-t.m+(n>>22),r+=i>>22,r<0)?!1:(e.l=n&uu,e.m=i&uu,e.h=r&z1,!0)}function Xne(e,t,n,i,r,o,a){var d,b;return!(t.Re()&&(b=e.a.Le(n,i),b<0||!r&&b==0)||t.Se()&&(d=e.a.Le(n,o),d>0||!a&&d==0))}function jqt(e,t){xS();var n;if(n=e.j.g-t.j.g,n!=0)return 0;switch(e.j.g){case 2:return bne(t,g6e)-bne(e,g6e);case 4:return bne(e,d6e)-bne(t,d6e)}return 0}function Tqt(e){switch(e.g){case 0:return ele;case 1:return tle;case 2:return nle;case 3:return ile;case 4:return nJ;case 5:return rle;default:return null}}function ho(e,t,n){var i,r;return i=(r=new gY,fb(r,t),Jc(r,n),Ln((!e.c&&(e.c=new _e(Fw,e,12,10)),e.c),r),r),Ng(i,0),ov(i,1),Ig(i,!0),Pg(i,!0),i}function Y4(e,t){var n,i;if(t>=e.i)throw V(new bZ(t,e.i));return++e.j,n=e.g[t],i=e.i-t-1,i>0&&wc(e.g,t+1,e.g,t,i),mr(e.g,--e.i,null),e.Oi(t,n),e.Li(),n}function DZe(e,t){var n,i;return e.Db>>16==17?e.Cb.Qh(e,21,ef,t):(i=Qs(c(Dt((n=c(Wt(e,16),29),n||e.fi()),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function Eqt(e){var t,n,i,r;for(Mt(),Rr(e.c,e.a),r=new U(e.c);r.a<r.c.c.length;)for(i=G(r),n=new U(e.b);n.a<n.c.c.length;)t=c(G(n),690),t._e(i)}function Cqt(e){var t,n,i,r;for(Mt(),Rr(e.c,e.a),r=new U(e.c);r.a<r.c.c.length;)for(i=G(r),n=new U(e.b);n.a<n.c.c.length;)t=c(G(n),378),t._e(i)}function Mqt(e){var t,n,i,r,o;for(r=gi,o=null,i=new U(e.d);i.a<i.c.c.length;)n=c(G(i),220),n.d.j^n.e.j&&(t=n.e.e-n.d.e-n.a,t<r&&(r=t,o=n));return o}function D2e(){D2e=Z,adt=new vt(i3e,(Bt(),!1)),cdt=new vt(r3e,100),fOe=(b7(),yce),ldt=new vt(s3e,fOe),udt=new vt(o3e,ud),fdt=new vt(c3e,$e(gi))}function LZe(e,t){var n,i,r;for(i=new Ht(Xt(td(e).a.Jc(),new F));hn(i);)return n=c(rn(i),17),r=c(t.Kb(n),9),new Y8(Bn(r.n.b+r.o.b/2));return hT(),hT(),Goe}function PZe(e,t,n){var i,r,o,a,d,b,v,x;for(v=0,r=e.a[t],o=0,a=r.length;o<a;++o)for(i=r[o],x=N7(i,n),b=x.Jc();b.Ob();)d=c(b.Pb(),12),ci(e.f,d,$e(v++))}function IZe(e,t,n){var i,r,o,a;if(n)for(r=n.a.length,i=new Up(r),a=(i.b-i.a)*i.c<0?(v0(),bp):new k0(i);a.Ob();)o=c(a.Pb(),15),jt(e,t,nk(rv(n,o.a)))}function RZe(e,t,n){var i,r,o,a;if(n)for(r=n.a.length,i=new Up(r),a=(i.b-i.a)*i.c<0?(v0(),bp):new k0(i);a.Ob();)o=c(a.Pb(),15),jt(e,t,nk(rv(n,o.a)))}function L2e(e){$0();var t;return t=c(z7(E4(e.k),ke(Bs,uc,64,2,0,1)),128),lS(t,0,t.length,null),t[0]==(Ue(),Kt)&&t[1]==Yt&&(mr(t,0,Yt),mr(t,1,Kt)),t}function $Ze(e,t,n){var i,r,o;return r=cXt(e,t,n),o=Eye(e,r),dte(e.b),Jee(e,t,n),Mt(),Rr(r,new lDe(e)),i=Eye(e,r),dte(e.b),Jee(e,n,t),new Is($e(o),$e(i))}function BZe(){BZe=Z,ibt=Wn(new xr,(ts(),Ws),(cs(),KE)),BJ=new Qi("linearSegments.inputPrio",$e(0)),zJ=new Qi("linearSegments.outputPrio",$e(0))}function Aqt(e){var t,n,i,r;for(n=0,t=0,r=new on(e);r.e!=r.i.gc();)i=c(un(r),19),n=p.Math.max(i.g+i.i,n),t=p.Math.max(i.f+i.j,t);return new ze(n,t)}function Nqt(e,t){var n,i,r,o;for(o=0,i=new U(e);i.a<i.c.c.length;)n=c(G(i),19),o+=p.Math.pow(n.g*n.f-t,2);return r=p.Math.sqrt(o/(e.c.length-1)),r}function qu(){qu=Z,eI=new CF("UNKNOWN",0),Yd=new CF("ABOVE",1),cp=new CF("BELOW",2),ZP=new CF("INLINE",3),new Qi("org.eclipse.elk.labelSide",eI)}function _qt(e,t){if(ae(t,273))return C7t(e,c(t,74));if(ae(t,278))return c(t,278);throw V(new qt(Cj+jh(new Qo(Y(K(Br,1),Pt,1,5,[t])))))}function zZe(e,t){var n;if(e.Wi()&&t!=null){for(n=0;n<e.i;++n)if(xi(t,e.g[n]))return n}else for(n=0;n<e.i;++n)if(xe(e.g[n])===xe(t))return n;return-1}function Dqt(e,t,n){var i,r;return t.c==(Gs(),Yc)&&n.c==Vl?-1:t.c==Vl&&n.c==Yc?1:(i=SKe(t.a,e.a),r=SKe(n.a,e.a),t.c==Yc?r-i:i-r)}function R0(e,t,n){if(n&&(t<0||t>n.a.c.length))throw V(new qt("index must be >= 0 and <= layer node count"));e.c&&dl(e.c.a,e),e.c=n,n&&Qp(n.a,t,e)}function FZe(e,t){this.c=new yn,this.a=e,this.b=t,this.d=c($(e,(Ie(),w3)),317),xe($(e,(Ge(),uje)))===xe((wD(),iJ))?this.e=new gPe:this.e=new dPe}function Wne(e,t){var n,i;n=e.dd(t);try{return i=n.Pb(),n.Qb(),i}catch(r){throw r=kr(r),ae(r,113)?V(new qc("Can't remove element "+t)):V(r)}}function Lqt(e,t){var n,i,r;if(i=new Yz,r=new uwe(i.q.getFullYear()-H0,i.q.getMonth(),i.q.getDate()),n=_Yt(e,t,r),n==0||n<t.length)throw V(new qt(t));return r}function P2e(e,t){var n,i,r;for(zt(t),f0e(t!=e),r=e.b.c.length,i=t.Jc();i.Ob();)n=i.Pb(),Qe(e.b,zt(n));return r!=e.b.c.length?(xwe(e,0),!0):!1}function YD(){YD=Z,pOe=(In(),GC),new Ur(aV,(Bt(),!0)),ddt=zb,gdt=D3,pdt=op,hdt=_3,mOe=UC,bdt=oy,gOe=(D2e(),adt),hOe=ldt,dOe=udt,bOe=fdt,MU=cdt}function Pqt(e,t){if(t==e.c)return e.d;if(t==e.d)return e.c;throw V(new qt("'port' must be either the source port or target port of the edge."))}function Iqt(e,t){var n,i;for(e.b=0,e.d=new zz,i=new U(t.a);i.a<i.c.c.length;)n=c(G(i),9),c($(n,(Ie(),sC)),15).a==-1&&(Fst(e,n),e.d.a.c.length=0)}function qZe(e,t){var n,i,r,o,a;for(i=0,r=0,n=0,a=new U(e);a.a<a.c.c.length;)o=c(G(a),189),i=p.Math.max(i,o.e),r+=o.b+(n>0?t:0),++n;return new ze(i,r)}function Rqt(e,t,n){var i,r;switch(r=e.o,i=e.d,t.g){case 1:return-i.d-n;case 3:return r.b+i.a+n;case 2:return r.a+i.c+n;case 4:return-i.b-n;default:return 0}}function I2e(e,t,n,i){var r,o,a,d;for(zr(t,c(i.Xb(0),26)),d=i.hd(1,i.gc()),o=c(n.Kb(t),22).Jc();o.Ob();)r=c(o.Pb(),17),a=r.c.i==t?r.d.i:r.c.i,I2e(e,a,n,d)}function HZe(e){var t;return t=new yn,ki(e,(Ie(),wle))?c($(e,wle),93):(hr(mi(new Tt(null,new Et(e.j,16)),new gA),new E_e(t)),Me(e,wle,t),t)}function $qt(e,t,n){var i;n.Tg("AbsolutPlacer",1),(!t.a&&(t.a=new _e(_n,t,10,11)),t.a).i!=0&&(i=c(Se(t,(zd(),BC)),19),Nc(i,i.i-$tt(e,i)),Ret(e,i)),n.Ug()}function F7(e,t){var n,i;return i=null,e.nf((In(),Gk))&&(n=c(e.mf(Gk),105),n.nf(t)&&(i=n.mf(t))),i==null&&e.Rf()&&(i=e.Rf().mf(t)),i==null&&(i=Ve(t)),i}function R2e(e,t){var n,i;return e.Db>>16==6?e.Cb.Qh(e,6,$i,t):(i=Qs(c(Dt((n=c(Wt(e,16),29),n||(lc(),OV)),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function $2e(e,t){var n,i;return e.Db>>16==7?e.Cb.Qh(e,1,uI,t):(i=Qs(c(Dt((n=c(Wt(e,16),29),n||(lc(),Q7e)),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function B2e(e,t){var n,i;return e.Db>>16==9?e.Cb.Qh(e,9,_n,t):(i=Qs(c(Dt((n=c(Wt(e,16),29),n||(lc(),U7e)),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function QZe(e,t){var n,i;return e.Db>>16==5?e.Cb.Qh(e,9,MV,t):(i=Qs(c(Dt((n=c(Wt(e,16),29),n||(At(),t0)),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function GZe(e,t){var n,i;return e.Db>>16==7?e.Cb.Qh(e,6,ch,t):(i=Qs(c(Dt((n=c(Wt(e,16),29),n||(At(),i0)),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function z2e(e,t){var n,i;return e.Db>>16==3?e.Cb.Qh(e,0,fI,t):(i=Qs(c(Dt((n=c(Wt(e,16),29),n||(At(),e0)),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function F2e(e,t){var n,i;return e.Db>>16==3?e.Cb.Qh(e,12,_n,t):(i=Qs(c(Dt((n=c(Wt(e,16),29),n||(lc(),H7e)),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function Bqt(e,t,n){var i,r,o;for(n<0&&(n=0),o=e.i,r=n;r<o;r++)if(i=ce(e,r),t==null){if(i==null)return r}else if(xe(t)===xe(i)||xi(t,i))return r;return-1}function zqt(e,t){var n,i;return n=t.ni(e.a),n?(i=qn(Kf((!n.b&&(n.b=new wu((At(),zs),Zo,n)),n.b),aU)),St(nP,i)?KT(e,Bu(t.ok())):i):null}function IS(e,t){var n,i;if(t){if(t==e)return!0;for(n=0,i=c(t,52).Mh();i&&i!=t;i=i.Mh()){if(++n>_re)return IS(e,i);if(i==e)return!0}}return!1}function Fqt(e){switch(WF(),e.q.g){case 5:Rtt(e,(Ue(),Kt)),Rtt(e,mn);break;case 4:Qnt(e,(Ue(),Kt)),Qnt(e,mn);break;default:Zst(e,(Ue(),Kt)),Zst(e,mn)}}function qqt(e){switch(WF(),e.q.g){case 5:int(e,(Ue(),nn)),int(e,Yt);break;case 4:WYe(e,(Ue(),nn)),WYe(e,Yt);break;default:eot(e,(Ue(),nn)),eot(e,Yt)}}function Hqt(e){var t,n;t=c($(e,(Sf(),edt)),15),t?(n=t.a,n==0?Me(e,(M0(),CU),new pne):Me(e,(M0(),CU),new eH(n))):Me(e,(M0(),CU),new eH(1))}function Qqt(e,t){var n;switch(n=e.i,t.g){case 1:return-(e.n.b+e.o.b);case 2:return e.n.a-n.o.a;case 3:return e.n.b-n.o.b;case 4:return-(e.n.a+e.o.a)}return 0}function Gqt(e,t){switch(e.g){case 0:return t==(Su(),G1)?VU:XU;case 1:return t==(Su(),G1)?VU:dP;case 2:return t==(Su(),G1)?dP:XU;default:return dP}}function ZD(e,t){var n,i,r;for(dl(e.a,t),e.e-=t.r+(e.a.c.length==0?0:e.c),r=zse,i=new U(e.a);i.a<i.c.c.length;)n=c(G(i),175),r=p.Math.max(r,n.d);e.b=r}function Uqt(e,t,n){var i,r,o;if(o=c(Ut(e.r,t),301),r=null,o)switch(o.g){case 2:i=be(Ut(e.i,t)),r=(zt(n),n+(zt(i),i));break;default:r=n}else r=n;return r}function Jqt(e,t,n){var i,r,o;if(o=c(Ut(e.r,t),301),r=null,o)switch(o.g){case 2:i=be(Ut(e.j,t)),r=(zt(n),n+(zt(i),i));break;default:r=n}else r=n;return r}function Qa(e){var t;return(e.Bb&1)==0&&e.r&&e.r.Sh()&&(t=c(e.r,52),e.r=c(L0(e,t),146),e.r!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,9,8,t,e.r))),e.r}function Kne(e,t,n){var i;return i=Y(K(is,1),io,30,15,[gve(e,(Wf(),Wo),t,n),gve(e,Kc,t,n),gve(e,Ko,t,n)]),e.f&&(i[0]=p.Math.max(i[0],i[2]),i[2]=i[0]),i}function Vqt(e,t){var n,i,r;if(r=pFt(e,t),r.c.length!=0)for(Rr(r,new SW),n=r.c.length,i=0;i<n;i++)FS(e,(ht(i,r.c.length),c(r.c[i],295)),nWt(e,r,i))}function q7(e,t,n){var i,r;i=t*n,ae(e.g,157)?(r=I4(e),r.f.d?r.f.a||(e.d.a+=i+Ch):(e.d.d-=i+Ch,e.d.a+=i+Ch)):ae(e.g,9)&&(e.d.d-=i,e.d.a+=2*i)}function Xqt(e){var t,n,i,r;for(r=c(Ei(e.a,(bv(),WU)),16).Jc();r.Ob();)for(i=c(r.Pb(),108),n=E4(i.k).Jc();n.Ob();)t=c(n.Pb(),64),W6(e,i,t,(ew(),Y0),1)}function Wqt(e){var t,n;if(e.k==(Jt(),Cr)){for(n=new Ht(Xt(td(e).a.Jc(),new F));hn(n);)if(t=c(rn(n),17),!ys(t)&&e.c==X2e(t,e).c)return!0}return!1}function Kqt(e){var t,n;if(e.k==(Jt(),Cr)){for(n=new Ht(Xt(td(e).a.Jc(),new F));hn(n);)if(t=c(rn(n),17),!ys(t)&&t.c.i.c==t.d.i.c)return!0}return!1}function q2e(e,t){var n,i;return e.Db>>16==11?e.Cb.Qh(e,10,_n,t):(i=Qs(c(Dt((n=c(Wt(e,16),29),n||(lc(),G7e)),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function UZe(e,t){var n,i;return e.Db>>16==10?e.Cb.Qh(e,11,ef,t):(i=Qs(c(Dt((n=c(Wt(e,16),29),n||(At(),n0)),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function JZe(e,t){var n,i;return e.Db>>16==10?e.Cb.Qh(e,12,tf,t):(i=Qs(c(Dt((n=c(Wt(e,16),29),n||(At(),by)),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function VZe(e,t){var n,i,r,o,a;if(t)for(r=t.a.length,n=new Up(r),a=(n.b-n.a)*n.c<0?(v0(),bp):new k0(n);a.Ob();)o=c(a.Pb(),15),i=sS(t,o.a),i&&$nt(e,i)}function Yqt(){X1e();var e,t;for(Enn((O0(),Gt)),mnn(Gt),Vne(Gt),oEe=(At(),Fh),t=new U(pEe);t.a<t.c.c.length;)e=c(G(t),251),YS(e,Fh,null);return!0}function H2e(e,t){var n,i,r,o,a,d,b,v;return b=e.h>>19,v=t.h>>19,b!=v?v-b:(r=e.h,d=t.h,r!=d?r-d:(i=e.m,a=t.m,i!=a?i-a:(n=e.l,o=t.l,n-o)))}function XZe(e,t,n){var i,r,o,a,d;for(r=e[n.g],d=new U(t.d);d.a<d.c.c.length;)a=c(G(d),108),o=a.i,o&&o.i==n&&(i=a.d[n.g],r[i]=p.Math.max(r[i],o.j.b))}function Zqt(e,t){var n,i,r,o,a;for(i=0,r=0,n=0,a=new U(t.d);a.a<a.c.c.length;)o=c(G(a),320),vQ(o),i=p.Math.max(i,o.b),r+=o.d+(n>0?e.b:0),++n;t.b=i,t.e=r}function WZe(e){var t,n,i;if(i=e.b,vRe(e.i,i.length)){for(n=i.length*2,e.b=ke(Voe,EL,309,n,0,1),e.c=ke(Voe,EL,309,n,0,1),e.f=n-1,e.i=0,t=e.a;t;t=t.c)oL(e,t,t);++e.g}}function H7(e,t){return e.b.a=p.Math.min(e.b.a,t.c),e.b.b=p.Math.min(e.b.b,t.d),e.a.a=p.Math.max(e.a.a,t.c),e.a.b=p.Math.max(e.a.b,t.d),It(e.c,t),!0}function eHt(e,t,n){var i;i=t.c.i,i.k==(Jt(),Cr)?(Me(e,(Ie(),ih),c($(i,ih),12)),Me(e,Wa,c($(i,Wa),12))):(Me(e,(Ie(),ih),t.c),Me(e,Wa,n.d))}function tHt(e,t,n){return n.Tg(wlt,1),c7(e.b),Iu(e.b,(W4(),FJ),FJ),Iu(e.b,TC,TC),Iu(e.b,EC,EC),Iu(e.b,CC,CC),e.a=aE(e.b,t),qHt(e,t,n.dh(1)),n.Ug(),t}function RS(e,t,n){GS();var i,r,o,a,d,b;return a=t/2,o=n/2,i=p.Math.abs(e.a),r=p.Math.abs(e.b),d=1,b=1,i>a&&(d=a/i),r>o&&(b=o/r),y1(e,p.Math.min(d,b)),e}function nHt(){YQ();var e,t;try{if(t=c(Z2e((w0(),nf),Ej),2092),t)return t}catch(n){if(n=kr(n),ae(n,102))e=n,Rpe((Fn(),e));else throw V(n)}return new Dp}function iHt(){YQ();var e,t;try{if(t=c(Z2e((w0(),nf),Ja),2019),t)return t}catch(n){if(n=kr(n),ae(n,102))e=n,Rpe((Fn(),e));else throw V(n)}return new I5}function rHt(){JJe();var e,t;try{if(t=c(Z2e((w0(),nf),Tb),2101),t)return t}catch(n){if(n=kr(n),ae(n,102))e=n,Rpe((Fn(),e));else throw V(n)}return new Md}function sHt(e,t,n){var i,r;return r=e.e,e.e=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new Jr(e,1,4,r,t),n?n.lj(i):n=i),r!=t&&(t?n=YS(e,BQ(e,t),n):n=YS(e,e.a,n)),n}function KZe(){Yz.call(this),this.e=-1,this.a=!1,this.p=ls,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=ls}function oHt(e,t){var n,i,r;if(i=e.b.d.d,e.a||(i+=e.b.d.a),r=t.b.d.d,t.a||(r+=t.b.d.a),n=Ci(i,r),n==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function cHt(e,t){var n,i,r;if(i=e.b.b.d,e.a||(i+=e.b.b.a),r=t.b.b.d,t.a||(r+=t.b.b.a),n=Ci(i,r),n==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function lHt(e,t){var n,i,r;if(i=e.b.g.d,e.a||(i+=e.b.g.a),r=t.b.g.d,t.a||(r+=t.b.g.a),n=Ci(i,r),n==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function Q2e(){Q2e=Z,wdt=Hc(Wn(Wn(Wn(new xr,(ts(),xc),(cs(),ZOe)),xc,e6e),Ws,t6e),Ws,qOe),ydt=Wn(Wn(new xr,xc,POe),xc,HOe),vdt=Hc(new xr,Ws,GOe)}function uHt(e){var t,n,i,r,o;for(t=c($(e,(Ie(),iC)),93),o=e.n,i=t.Bc().Jc();i.Ob();)n=c(i.Pb(),319),r=n.i,r.c+=o.a,r.d+=o.b,n.c?Ait(n):Nit(n);Me(e,iC,null)}function aHt(e,t,n){var i,r;switch(r=e.b,i=r.d,t.g){case 1:return-i.d-n;case 2:return r.o.a+i.c+n;case 3:return r.o.b+i.a+n;case 4:return-i.b-n;default:return-1}}function YZe(e,t){var n,i;for(i=new U(t);i.a<i.c.c.length;)n=c(G(i),9),e.c[n.c.p][n.p].a=oee(e.i),e.c[n.c.p][n.p].d=de(e.c[n.c.p][n.p].a),e.c[n.c.p][n.p].b=1}function fHt(e,t){var n,i,r,o;for(o=0,i=new U(e);i.a<i.c.c.length;)n=c(G(i),168),o+=p.Math.pow(Al(n)*yu(n)-t,2);return r=p.Math.sqrt(o/(e.c.length-1)),r}function hHt(e,t,n){var i,r;for(n.Tg("Interactive node placement",1),e.a=c($(t,(Ie(),w3)),317),r=new U(t.b);r.a<r.c.c.length;)i=c(G(r),26),qXt(e,i);n.Ug()}function dHt(e){var t,n,i,r,o;if(i=0,r=e3,e.b)for(t=0;t<360;t++)n=t*.017453292519943295,Qye(e,e.d,0,0,kb,n),o=e.b.Cg(e.d),o<r&&(i=n,r=o);Qye(e,e.d,0,0,kb,i)}function gHt(e,t){var n,i,r,o;for(o=new yn,t.e=null,t.f=null,i=new U(t.i);i.a<i.c.c.length;)n=c(G(i),68),r=c(Ut(e.g,n.a),49),n.a=Oq(n.b),ci(o,n.a,r);e.g=o}function pHt(e,t,n){var i,r,o,a,d,b;for(r=t-e.e,o=r/e.d.c.length,a=0,b=new U(e.d);b.a<b.c.c.length;)d=c(G(b),320),i=e.b-d.b+n,xYe(d,d.e+a*o,d.f),UFt(d,o,i),++a}function ZZe(e){var t;if(e.f.Zj(),e.b!=-1){if(++e.b,t=e.f.d[e.a],e.b<t.i)return;++e.a}for(;e.a<e.f.d.length;++e.a)if(t=e.f.d[e.a],t&&t.i!=0){e.b=0;return}e.b=-1}function bHt(e,t){var n,i,r;for(r=t.c.length,n=dUt(e,r==0?"":(ht(0,t.c.length),qn(t.c[0]))),i=1;i<r&&n;++i)n=c(n,52).Wh((ht(i,t.c.length),qn(t.c[i])));return n}function eet(e,t,n,i){var r,o,a;return o=LWt(e,t,n,i),a=Pye(e,o),cie(e,t,n,i),dte(e.b),Mt(),Rr(o,new uDe(e)),r=Pye(e,o),cie(e,n,t,i),dte(e.b),new Is($e(a),$e(r))}function mHt(e,t){var n;t.Tg("Delaunay triangulation",1),n=new He,Uc(e.i,new GDe(n)),Ze(Ye($(e,(pS(),JE)))),e.e?Ss(e.e,bot(n)):e.e=bot(n),t.Ug()}function kQ(){kQ=Z,sae=new jF("P1_NODE_Y_PLACEMENT",0),oae=new jF("P2_NODE_RELATIVE_PLACEMENT",1),cae=new jF("P3_NODE_ABSOLUTE_PLACEMENT",2),lae=new jF(vlt,3)}function wHt(e,t,n){var i,r;for(I_(e,e.j+t,e.k+n),r=new on((!e.a&&(e.a=new Nr(Yu,e,5)),e.a));r.e!=r.i.gc();)i=c(un(r),373),xZ(i,i.a+t,i.b+n);P_(e,e.b+t,e.c+n)}function G2e(e,t,n,i){switch(n){case 7:return!e.e&&(e.e=new Ct($i,e,7,4)),Vc(e.e,t,i);case 8:return!e.d&&(e.d=new Ct($i,e,8,5)),Vc(e.d,t,i)}return rie(e,t,n,i)}function U2e(e,t,n,i){switch(n){case 7:return!e.e&&(e.e=new Ct($i,e,7,4)),_s(e.e,t,i);case 8:return!e.d&&(e.d=new Ct($i,e,8,5)),_s(e.d,t,i)}return Fte(e,t,n,i)}function tet(e,t,n){var i,r,o,a,d;if(n)for(o=n.a.length,i=new Up(o),d=(i.b-i.a)*i.c<0?(v0(),bp):new k0(i);d.Ob();)a=c(d.Pb(),15),r=sS(n,a.a),r&&Itt(e,r,t)}function eL(e,t,n){var i,r,o,a,d;return e.Zj(),o=t==null?0:zi(t),e.f>0&&(a=(o&gi)%e.d.length,r=Jve(e,a,o,t),r)?(d=r.ld(n),d):(i=e.ak(o,t,n),e.c.Ec(i),null)}function J2e(e,t){var n,i,r,o;switch(Lg(e,t).Il()){case 3:case 2:{for(n=Ux(t),r=0,o=n.i;r<o;++r)if(i=c(ce(n,r),38),Hm(ao(e,i))==5)return i;break}}return null}function vHt(e){var t,n,i,r,o;if(vRe(e.f,e.b.length))for(i=ke(Sft,EL,229,e.b.length*2,0,1),e.b=i,r=i.length-1,n=e.a;n!=e;n=n.Zd())o=c(n,229),t=o.d&r,o.a=i[t],i[t]=o}function net(e,t){var n,i,r,o;for(o=0,r=c(c(Ei(e.r,t),24),85).Jc();r.Ob();)i=c(r.Pb(),116),o=p.Math.max(o,i.e.a+i.b.Kf().a);n=c(eo(e.b,t),129),n.n.b=0,n.a.a=o}function iet(e,t){var n,i,r,o;for(n=0,o=c(c(Ei(e.r,t),24),85).Jc();o.Ob();)r=c(o.Pb(),116),n=p.Math.max(n,r.e.b+r.b.Kf().b);i=c(eo(e.b,t),129),i.n.d=0,i.a.b=n}function yHt(e){var t,n,i;for(n=new U(e.p);n.a<n.c.c.length;)t=c(G(n),9),t.k==(Jt(),ur)&&(i=t.o.b,e.i=p.Math.min(e.i,i),e.g=p.Math.max(e.g,i))}function ret(e,t,n){var i,r,o;for(o=new U(t);o.a<o.c.c.length;)i=c(G(o),9),e.c[i.c.p][i.p].e=!1;for(r=new U(t);r.a<r.c.c.length;)i=c(G(r),9),vxe(e,i,n)}function xHt(e){var t,n;return n=c($(e,(Ie(),Rc)),24),t=BF(vbt),n.Gc((Us(),g3))&&Fu(t,kbt),n.Gc(nC)&&Fu(t,Obt),n.Gc(Qj)&&Fu(t,ybt),n.Gc(Gj)&&Fu(t,xbt),t}function V2e(e){if(e<0)throw V(new qt("The input must be positive"));return e<mTe.length?tb(mTe[e]):p.Math.sqrt(kb*e)*(rBt(e,e)/Mwe(2.718281828459045,e))}function $S(e,t){var n;if(e.Wi()&&t!=null){for(n=0;n<e.i;++n)if(xi(t,e.g[n]))return!0}else for(n=0;n<e.i;++n)if(xe(e.g[n])===xe(t))return!0;return!1}function kHt(e,t){if(t==null){for(;e.a.Ob();)if(c(e.a.Pb(),45).kd()==null)return!0}else for(;e.a.Ob();)if(xi(t,c(e.a.Pb(),45).kd()))return!0;return!1}function OHt(e,t){var n,i,r;return t===e?!0:ae(t,675)?(r=c(t,2025),DYe((i=e.g,i||(e.g=new KN(e))),(n=r.g,n||(r.g=new KN(r))))):!1}function SHt(e){var t,n,i,r;for(t="$z",n="nz",r=p.Math.min(e.length,5),i=r-1;i>=0;i--)if(St(e[i].d,t)||St(e[i].d,n)){e.length>=i+1&&e.splice(0,i+1);break}return e}function tL(e,t){var n;return So(e)&&So(t)&&(n=e/t,AL<n&&n<wb)?n<0?p.Math.ceil(n):p.Math.floor(n):A0(dxe(So(e)?qa(e):e,So(t)?qa(t):t,!1))}function X2e(e,t){if(t==e.c.i)return e.d.i;if(t==e.d.i)return e.c.i;throw V(new qt("'node' must either be the source node or target node of the edge."))}function jHt(e){var t,n,i,r;if(r=c($(e,(Ie(),U6e)),37),r){for(i=new fs,t=Vr(e.c.i);t!=r;)n=t.e,t=Vr(n),F2(Oi(Oi(i,n.n),t.c),t.d.b,t.d.d);return i}return $dt}function THt(e){var t;t=c($(e,(Ie(),Lw)),339),hr(jo(new Tt(null,new Et(t.d,16)),new FW),new j_e(e)),hr(mi(new Tt(null,new Et(t.d,16)),new qW),new T_e(e))}function Yne(e,t){var n,i,r,o;for(r=t?Fi(e):vr(e),i=new Ht(Xt(r.a.Jc(),new F));hn(i);)if(n=c(rn(i),17),o=X2e(n,e),o.k==(Jt(),Cr)&&o.c!=e.c)return o;return null}function Zne(e,t,n){var i,r;i=Ix(t.j,n.s,n.c)+Ix(n.e,t.s,t.c),r=Ix(n.j,t.s,t.c)+Ix(t.e,n.s,n.c),i==r?i>0&&(e.b+=2,e.a+=i):(e.b+=1,e.a+=p.Math.min(i,r))}function set(e,t){var n,i;if(i=!1,Yr(t)&&(i=!0,N4(e,new W2(qn(t)))),i||ae(t,245)&&(i=!0,N4(e,(n=zZ(c(t,245)),new w6(n)))),!i)throw V(new xY(V4e))}function EHt(e,t,n,i){var r,o,a;return r=new C1(e.e,1,10,(a=t.c,ae(a,89)?c(a,29):(At(),rf)),(o=n.c,ae(o,89)?c(o,29):(At(),rf)),Rg(e,t),!1),i?i.lj(r):i=r,i}function W2e(e){var t,n;switch(c($(Vr(e),(Ge(),tje)),425).g){case 0:return t=e.n,n=e.o,new ze(t.a+n.a/2,t.b+n.b/2);case 1:return new Ms(e.n);default:return null}}function nL(){nL=Z,rJ=new AT(Zf,0),N6e=new AT("LEFTUP",1),D6e=new AT("RIGHTUP",2),A6e=new AT("LEFTDOWN",3),_6e=new AT("RIGHTDOWN",4),sle=new AT("BALANCED",5)}function CHt(e,t,n){var i,r,o;if(i=Ci(e.a[t.p],e.a[n.p]),i==0){if(r=c($(t,(Ie(),Nk)),16),o=c($(n,Nk),16),r.Gc(n))return-1;if(o.Gc(t))return 1}return i}function MHt(e){switch(e.g){case 1:return new C$;case 2:return new T8;case 3:return new D5;case 0:return null;default:throw V(new qt(Jse+(e.f!=null?e.f:""+e.g)))}}function K2e(e,t,n){switch(t){case 1:!e.n&&(e.n=new _e(zo,e,1,7)),An(e.n),!e.n&&(e.n=new _e(zo,e,1,7)),dr(e.n,c(n,18));return;case 2:dS(e,qn(n));return}mwe(e,t,n)}function Y2e(e,t,n){switch(t){case 3:ib(e,de(be(n)));return;case 4:rb(e,de(be(n)));return;case 5:Nc(e,de(be(n)));return;case 6:_l(e,de(be(n)));return}K2e(e,t,n)}function OQ(e,t,n){var i,r,o;o=(i=new gY,i),r=Sh(o,t,null),r&&r.mj(),Jc(o,n),Ln((!e.c&&(e.c=new _e(Fw,e,12,10)),e.c),o),Ng(o,0),ov(o,1),Ig(o,!0),Pg(o,!0)}function Z2e(e,t){var n,i,r;return n=TT(e.i,t),ae(n,244)?(r=c(n,244),r.wi()==null,r.ti()):ae(n,496)?(i=c(n,2016),r=i.b,r):null}function AHt(e,t,n,i){var r,o;return Bn(t),Bn(n),o=c(VT(e.d,t),15),DVe(!!o,"Row %s not in %s",t,e.e),r=c(VT(e.b,n),15),DVe(!!r,"Column %s not in %s",n,e.c),_We(e,o.a,r.a,i)}function NHt(e){var t,n,i,r,o,a;for(n=null,r=e,o=0,a=r.length;o<a;++o){i=r[o];try{s7(i)}catch(d){if(d=kr(d),ae(d,102))t=d,n?Eet(n,t):n=t;else throw V(d)}}n&&c9t(n)}function oet(e,t,n,i,r,o,a){var d,b,v,x,T;if(x=r[o],v=o==a-1,d=v?i:0,T=OZe(d,x),i!=10&&Y(K(e,a-o),t[o],n[o],d,T),!v)for(++o,b=0;b<x;++b)T[b]=oet(e,t,n,i,r,o,a);return T}function _Ht(e){var t,n,i,r,o;for(i=new lv(new Rp(e.b).a);i.b;)n=_x(i),t=c(n.jd(),9),o=c(c(n.kd(),49).a,9),r=c(c(n.kd(),49).b,8),Oi(Uf(t.n),Oi(As(o.n),r))}function DHt(e,t){var n,i,r,o;for(o=new U(t.a);o.a<o.c.c.length;)for(r=c(G(o),9),gT(e.d),i=new Ht(Xt(Fi(r).a.Jc(),new F));hn(i);)n=c(rn(i),17),gnt(e,r,n.d.i)}function Q7(e){if(e.g==-1)throw V(new El);e.Vj();try{e.i.ed(e.g),e.f=e.i.j,e.g<e.e&&--e.e,e.g=-1}catch(t){throw t=kr(t),ae(t,99)?V(new aa):V(t)}}function LHt(e){var t,n,i,r;for(r=-1,i=0,n=new U(e);n.a<n.c.c.length;){if(t=c(G(n),253),t.c==(Gs(),Vl)){r=i==0?0:i-1;break}else i==e.c.length-1&&(r=i);i+=1}return r}function PHt(e){var t,n,i,r;for(r=0,t=0,i=new U(e.c);i.a<i.c.c.length;)n=c(G(i),19),Nc(n,e.e+r),_l(n,e.f),r+=n.g+e.b,t=p.Math.max(t,n.f+e.b);e.d=r-e.b,e.a=t-e.b}function zx(e){var t,n,i;for(n=new U(e.a.b);n.a<n.c.c.length;)t=c(G(n),60),i=t.d.c,t.d.c=t.d.d,t.d.d=i,i=t.d.b,t.d.b=t.d.a,t.d.a=i,i=t.b.a,t.b.a=t.b.b,t.b.b=i;yye(e)}function Fx(e){var t,n,i;for(n=new U(e.a.b);n.a<n.c.c.length;)t=c(G(n),84),i=t.g.c,t.g.c=t.g.d,t.g.d=i,i=t.g.b,t.g.b=t.g.a,t.g.a=i,i=t.e.a,t.e.a=t.e.b,t.e.b=i;HQ(e)}function IHt(e){var t,n,i,r,o;for(o=E4(e.k),n=(Ue(),Y(K(Bs,1),uc,64,0,[Bo,Kt,nn,mn,Yt])),i=0,r=n.length;i<r;++i)if(t=n[i],t!=Bo&&!o.Gc(t))return t;return null}function eie(e,t){var n,i;return i=c(y4(_1(mi(new Tt(null,new Et(t.j,16)),new Vy))),12),i&&(n=c(Je(i.e,0),17),n)?c($(n,(Ie(),Ri)),15).a:uIt(e.d)}function cet(e){var t,n;return n=$Q(e),tv(n)?null:(t=(Bn(n),c(pZe(new Ht(Xt(n.a.Jc(),new F))),74)),no(c(ce((!t.b&&(t.b=new Ct(xn,t,4,7)),t.b),0),83)))}function SQ(e){var t;return e.o||(t=e.sk(),t?e.o=new Qpe(e,e,null):e.$k()?e.o=new N0e(e,null):Hm(ao((Ll(),bs),e))==1?e.o=new yUe(e):e.o=new $Z(e,null)),e.o}function RHt(e,t,n,i){var r,o,a,d,b;n.Uh(t)&&(r=(a=t,a?c(i,52).di(a):null),r&&(b=n.Jh(t),d=t.t,d>1||d==-1?(o=c(b,16),r.Wb(uzt(e,o))):r.Wb(Pie(e,c(b,57)))))}function $Ht(e,t,n,i){XIe();var r=Qoe;function o(){for(var a=0;a<r.length;a++)r[a]()}if(e)try{Eyt(o)()}catch(a){e(t,a)}else Eyt(o)()}function BHt(e,t){var n,i,r,o;for(r=(o=new an(e.b).a.vc().Jc(),new yr(o));r.a.Ob();)if(i=(n=c(r.a.Pb(),45),c(n.jd(),34)),Dge(t,c(i,15))<0)return!1;return!0}function zHt(e,t){var n,i,r,o;for(r=(o=new an(e.b).a.vc().Jc(),new yr(o));r.a.Ob();)if(i=(n=c(r.a.Pb(),45),c(n.jd(),34)),Dge(t,c(i,15))>0)return!1;return!0}function FHt(e){switch(c($(e.b,(Ge(),VSe)),382).g){case 1:hr(Qc(jo(new Tt(null,new Et(e.d,16)),new Ap),new dm),new JR);break;case 2:kWt(e);break;case 0:hUt(e)}}function qHt(e,t,n){var i,r,o;for(i=n,!i&&(i=new o4),i.Tg("Layout",e.a.c.length),o=new U(e.a);o.a<o.c.c.length;){if(r=c(G(o),43),i.Zg())return;r.If(t,i.dh(1))}i.Ug()}function HHt(e,t){var n,i;for(dl(e.b,t),i=new U(e.n);i.a<i.c.c.length;)if(n=c(G(i),211),Lo(n.c,t,0)!=-1){dl(n.c,t),PHt(n),n.c.c.length==0&&dl(e.n,n);break}ist(e)}function uet(e,t){var n,i,r,o,a;for(a=e.f,r=0,o=0,i=new U(e.a);i.a<i.c.c.length;)n=c(G(i),175),XD(n,e.e,a),bD(n,t),o=p.Math.max(o,n.r),a+=n.d+e.c,r=a;e.d=o,e.b=r}function gb(){gb=Z,xae=new DT("V_TOP",0),QC=new DT("V_CENTER",1),HC=new DT("V_BOTTOM",2),yae=new DT("H_LEFT",3),FC=new DT("H_CENTER",4),qC=new DT("H_RIGHT",5)}function eve(e){var t;return(e.Db&64)!=0?nQ(e):(t=new Ba(nQ(e)),t.a+=" (abstract: ",yg(t,(e.Bb&256)!=0),t.a+=", interface: ",yg(t,(e.Bb&512)!=0),t.a+=")",t.a)}function QHt(e){var t;e.c==null&&(t=xe(e.b)===xe(xke)?null:e.b,e.d=t==null?ml:Bqe(t)?ZTt(iQe(t)):Yr(t)?Pxe:zp(Ou(t)),e.a=e.a+": "+(Bqe(t)?J7t(iQe(t)):t+""),e.c="("+e.d+") "+e.a)}function GHt(){function e(){try{return new Map().entries().next().done}catch{return!1}}return typeof Map===ore&&Map.prototype.entries&&e()?Map:ytn()}function UHt(e,t){var n,i,r,o;for(o=new os(e.e,0),n=0;o.b<o.d.gc();){if(i=de((gn(o.b<o.d.gc()),be(o.d.Xb(o.c=o.b++)))),r=i-t,r>Hse)return n;r>-1e-6&&++n}return n}function jQ(e,t,n){if(ae(t,273))return vVt(e,c(t,74),n);if(ae(t,278))return Uqt(e,c(t,278),n);throw V(new qt(Cj+jh(new Qo(Y(K(Br,1),Pt,1,5,[t,n])))))}function TQ(e,t,n){if(ae(t,273))return yVt(e,c(t,74),n);if(ae(t,278))return Jqt(e,c(t,278),n);throw V(new qt(Cj+jh(new Qo(Y(K(Br,1),Pt,1,5,[t,n])))))}function tve(e,t){var n;t!=e.b?(n=null,e.b&&(n=Bq(e.b,e,-4,n)),t&&(n=K4(t,e,-4,n)),n=CKe(e,t,n),n&&n.mj()):(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,3,t,t))}function aet(e,t){var n;t!=e.f?(n=null,e.f&&(n=Bq(e.f,e,-1,n)),t&&(n=K4(t,e,-1,n)),n=MKe(e,t,n),n&&n.mj()):(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,0,t,t))}function JHt(e,t,n,i){var r,o,a,d;return bu(e.e)&&(r=t.Jk(),d=t.kd(),o=n.kd(),a=j0(e,1,r,d,o,r.Hk()?XS(e,r,o,ae(r,104)&&(c(r,20).Bb&Rs)!=0):-1,!0),i?i.lj(a):i=a),i}function fet(e){var t,n,i;if(e==null)return null;if(n=c(e,16),n.dc())return"";for(i=new vg,t=n.Jc();t.Ob();)Zs(i,(Ai(),qn(t.Pb()))),i.a+=" ";return wZ(i,i.a.length-1)}function het(e){var t,n,i;if(e==null)return null;if(n=c(e,16),n.dc())return"";for(i=new vg,t=n.Jc();t.Ob();)Zs(i,(Ai(),qn(t.Pb()))),i.a+=" ";return wZ(i,i.a.length-1)}function VHt(e,t){var n,i,r,o,a;for(o=new U(t.a);o.a<o.c.c.length;)for(r=c(G(o),9),i=new Ht(Xt(vr(r).a.Jc(),new F));hn(i);)n=c(rn(i),17),a=n.c.i.p,e.n[a]=e.n[a]-1}function XHt(e,t,n){var i,r;return i=e.c[t.c.p][t.p],r=e.c[n.c.p][n.p],i.a!=null&&r.a!=null?lee(i.a,r.a):i.a!=null?-1:r.a!=null?1:0}function det(e,t){var n,i,r,o,a,d;if(t)for(o=t.a.length,n=new Up(o),d=(n.b-n.a)*n.c<0?(v0(),bp):new k0(n);d.Ob();)a=c(d.Pb(),15),r=sS(t,a.a),i=new hLe(e),HHe(i.a,r)}function get(e,t){var n,i,r,o,a,d;if(t)for(o=t.a.length,n=new Up(o),d=(n.b-n.a)*n.c<0?(v0(),bp):new k0(n);d.Ob();)a=c(d.Pb(),15),r=sS(t,a.a),i=new iLe(e),qHe(i.a,r)}function WHt(e){var t;if(e!=null&&e.length>0&&ws(e,e.length-1)==33)try{return t=_nt(Fa(e,0,e.length-1)),t.e==null}catch(n){if(n=kr(n),!ae(n,33))throw V(n)}return!1}function KHt(e,t,n){var i,r,o;switch(i=Vr(t),r=KH(i),o=new mc,Do(o,t),n.g){case 1:$r(o,QD(J4(r)));break;case 2:$r(o,J4(r))}return Me(o,(Ge(),Jv),be($(e,Jv))),o}function nve(e){var t,n;return t=c(rn(new Ht(Xt(vr(e.a).a.Jc(),new F))),17),n=c(rn(new Ht(Xt(Fi(e.a).a.Jc(),new F))),17),Ze(Ye($(t,(Ie(),Ug))))||Ze(Ye($(n,Ug)))}function bv(){bv=Z,gP=new O_("ONE_SIDE",0),YU=new O_("TWO_SIDES_CORNER",1),ZU=new O_("TWO_SIDES_OPPOSING",2),KU=new O_("THREE_SIDES",3),WU=new O_("FOUR_SIDES",4)}function pet(e,t){var n,i,r,o;for(o=new He,r=0,i=t.Jc();i.Ob();){for(n=$e(c(i.Pb(),15).a+r);n.a<e.f&&!tAt(e,n.a);)n=$e(n.a+1),++r;if(n.a>=e.f)break;It(o.c,n)}return o}function YHt(e){var t,n;for(n=new U(e.e.b);n.a<n.c.c.length;)t=c(G(n),26),zen(e,t);hr(mi(jo(jo(new Tt(null,new Et(e.e.b,16)),new Yy),new VO),new w8),new ODe(e))}function ive(e,t){return t?e.kj(t)?!1:e.i?e.i.lj(t):ae(t,152)?(e.i=c(t,152),!0):(e.i=new pB,e.i.lj(t)):!1}function bet(e,t,n){var i,r,o;return i=t.Jk(),o=t.kd(),r=i.Hk()?j0(e,3,i,null,o,XS(e,i,o,ae(i,104)&&(c(i,20).Bb&Rs)!=0),!0):j0(e,1,i,i.gk(),o,-1,!0),n?n.lj(r):n=r,n}function ZHt(e){if(e=Lc(e,!0),St(Oj,e)||St("1",e))return Bt(),Dj;if(St(loe,e)||St("0",e))return Bt(),X0;throw V(new kY("Invalid boolean value: '"+e+"'"))}function rve(e,t,n){var i,r,o;for(r=e.vc().Jc();r.Ob();)if(i=c(r.Pb(),45),o=i.jd(),xe(t)===xe(o)||t!=null&&xi(t,o))return n&&(i=new lF(i.jd(),i.kd()),r.Qb()),i;return null}function eQt(e){q2();var t,n,i;e.B.Gc((lu(),wV))&&(i=e.f.i,t=new Rq(e.a.c),n=new s4,n.b=t.c-i.c,n.d=t.d-i.d,n.c=i.c+i.b-(t.c+t.b),n.a=i.d+i.a-(t.d+t.a),e.e.Yf(n))}function met(e,t,n,i){var r,o,a;for(a=p.Math.min(n,Qrt(c(e.b,68),t,n,i)),o=new U(e.a);o.a<o.c.c.length;)r=c(G(o),227),r!=t&&(a=p.Math.min(a,met(r,t,a,i)));return a}function sve(e){var t,n,i,r;for(r=ke(Wd,Fe,201,e.b.c.length,0,2),i=new os(e.b,0);i.b<i.d.gc();)t=(gn(i.b<i.d.gc()),c(i.d.Xb(i.c=i.b++),26)),n=i.b-1,r[n]=cD(t.a);return r}function ove(e,t,n){var i,r,o;i=c(vh(e.a,n),34),i!=null&&(o=c(vh(e.b,i),66),hv(o,n,!0)),r=c(vh(e.b,t),66),r||(r=new _i,hb(e.b,t,r)),rr(r,n,r.c.b,r.c),hb(e.a,n,t)}function tie(e,t,n,i,r){var o,a,d,b;for(a=U9t(_1e(U0e(MFt(n)),i),Rqt(e,n,r)),b=$g(e,n).Jc();b.Ob();)d=c(b.Pb(),12),t[d.p]&&(o=t[d.p].i,Qe(a.d,new ree(o,Fwe(a,o))));r2e(a)}function cve(e,t){this.f=new yn,this.b=new yn,this.j=new yn,this.a=e,this.c=t,this.c>0&&PZe(this,this.c-1,(Ue(),nn)),this.c<this.a.length-1&&PZe(this,this.c+1,(Ue(),Yt))}function tQt(e,t){var n,i,r,o,a;for(o=new U(t.d);o.a<o.c.c.length;)for(r=c(G(o),108),a=c(Ut(e.c,r),117).o,i=new h4(r.b);i.a<i.c.a.length;)n=c(d7(i),64),lme(r,n,a)}function lve(e){e.length>0&&e[0].length>0&&(this.c=Ze(Ye($(Vr(e[0][0]),(Ie(),X6e))))),this.a=ke(Gpt,Fe,2096,e.length,0,2),this.b=ke(Upt,Fe,2097,e.length,0,2),this.d=new wKe}function nQt(e){return e.c.length==0?!1:(ht(0,e.c.length),c(e.c[0],17)).c.i.k==(Jt(),Cr)?!0:Mx(Qc(new Tt(null,new Et(e,16)),new NA),new eK)}function wet(e,t){var n,i,r,o,a,d,b;for(d=xv(t),o=t.f,b=t.g,a=p.Math.sqrt(o*o+b*b),r=0,i=new U(d);i.a<i.c.c.length;)n=c(G(i),19),r+=wet(e,n);return p.Math.max(r,a)}function es(){es=Z,up=new PT(mE,0),Bh=new PT("FREE",1),p9=new PT("FIXED_SIDE",2),Fb=new PT("FIXED_ORDER",3),e1=new PT("FIXED_RATIO",4),kc=new PT("FIXED_POS",5)}function iQt(e,t){var n,i,r;if(n=t.ni(e.a),n){for(r=qn(Kf((!n.b&&(n.b=new wu((At(),zs),Zo,n)),n.b),Va)),i=1;i<(Ll(),vEe).length;++i)if(St(vEe[i],r))return i}return 0}function rQt(e){var t,n,i,r,o;if(e==null)return ml;for(o=new cb(Xc,"[","]"),n=e,i=0,r=n.length;i<r;++i)t=n[i],E1(o,""+t);return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}function sQt(e){var t,n,i,r,o;if(e==null)return ml;for(o=new cb(Xc,"[","]"),n=e,i=0,r=n.length;i<r;++i)t=n[i],E1(o,""+t);return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}function vet(e){var t,n,i;for(i=new cb(Xc,"{","}"),n=e.vc().Jc();n.Ob();)t=c(n.Pb(),45),E1(i,aUe(e,t.jd())+"="+aUe(e,t.kd()));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function oQt(e){for(var t,n,i,r;!pT(e.o);)n=c(M4(e.o),49),i=c(n.a,126),t=c(n.b,220),r=ZH(t,i),t.e==i?(GF(r.g,t),i.e=r.e+t.a):(GF(r.b,t),i.e=r.e-t.a),Qe(e.e.a,i)}function uve(e,t){var n,i,r;for(n=null,r=c(t.Kb(e),22).Jc();r.Ob();)if(i=c(r.Pb(),17),!n)n=i.c.i==e?i.d.i:i.c.i;else if((i.c.i==e?i.d.i:i.c.i)!=n)return!1;return!0}function yet(e,t){var n,i,r,o,a;for(n=Vnt(e,!1,t),r=new U(n);r.a<r.c.c.length;)i=c(G(r),135),i.d==0?(qee(i,null),Hee(i,null)):(o=i.a,a=i.b,qee(i,a),Hee(i,o))}function cQt(e){var t,n;return t=new xr,Fu(t,Tbt),n=c($(e,(Ie(),Rc)),24),n.Gc((Us(),nC))&&Fu(t,Abt),n.Gc(Qj)&&Fu(t,Ebt),n.Gc(g3)&&Fu(t,Mbt),n.Gc(Gj)&&Fu(t,Cbt),t}function Z4(){Z4=Z,new Ur((In(),oh),20),gTe=new qp(5),new Ur(Ih,gTe),Qwt=GC,Uwt=u9,new Ur(aV,(Bt(),!1)),dTe=UC,Gwt=V1,c9=(Ywe(),Hwt),aae=qwt,hTe=Fwt,uae=zwt}function ave(e,t,n){var i,r,o,a,d;for(szt(e),r=(e.k==null&&(e.k=ke(Koe,Fe,81,0,0,1)),e.k),o=0,a=r.length;o<a;++o)i=r[o],ave(i);d=e.f,d&&ave(d)}function lQt(e){var t,n,i,r;for(BZt(e),n=new Ht(Xt(td(e).a.Jc(),new F));hn(n);)t=c(rn(n),17),i=t.c.i==e,r=i?t.d:t.c,i?ss(t,null):Os(t,null),Me(t,(Ie(),Z6e),r),uJt(e,r.i)}function uQt(e,t,n){var i,r,o,a;for(a=Lo(e.e,t,0),o=new h1e,o.b=n,i=new os(e.e,a);i.b<i.d.gc();)r=(gn(i.b<i.d.gc()),c(i.d.Xb(i.c=i.b++),9)),r.p=n,Qe(o.e,r),nu(i);return o}function aQt(e){var t,n,i;for(n=new on((!e.a&&(e.a=new _e(_n,e,10,11)),e.a));n.e!=n.i.gc();)if(t=c(un(n),19),i=$Q(t),!hn(new Ht(Xt(i.a.Jc(),new F))))return t;return null}function fQt(e){var t,n,i;for(n=new on((!e.a&&(e.a=new _e(_n,e,10,11)),e.a));n.e!=n.i.gc();)if(t=c(un(n),19),i=$Q(t),!hn(new Ht(Xt(i.a.Jc(),new F))))return t;return null}function EQ(){EQ=Z,Tue=new E_("OVERLAP_REMOVAL",0),Oue=new E_(Tlt,1),Eue=new E_("ROTATION",2),Sue=new E_("GRAPH_SIZE_CALCULATION",3),jue=new E_("OUTGOING_EDGE_ANGLES",4)}function xet(e){switch(e.g){case 0:return new G$;case 1:return new n6;default:throw V(new qt("No implementation is available for the edge router "+(e.f!=null?e.f:""+e.g)))}}function hQt(){var e;return Svt?c(qS((w0(),nf),Ej),2094):(e=c(ae(Mc((w0(),nf),Ej),563)?Mc(nf,Ej):new wnt,563),Svt=!0,jen(e),znn(e),Vne(e),uo(nf,Ej,e),e)}function nie(e,t,n){var i,r;if(e.j==0)return n;if(r=c(OXe(e,t,n),76),i=n.Jk(),!i.pk()||!e.a.$l(i))throw V(new Ao("Invalid entry feature '"+i.ok().zb+"."+i.ve()+"'"));return r}function dQt(e,t){var n,i,r,o,a,d,b,v;for(d=e.a,b=0,v=d.length;b<v;++b)for(a=d[b],i=a,r=0,o=i.length;r<o;++r)if(n=i[r],xe(t)===xe(n)||t!=null&&xi(t,n))return!0;return!1}function gQt(e){var t,n,i;return _c(e,0)>=0?(n=tL(e,aG),i=kne(e,aG)):(t=Jp(e,1),n=tL(t,5e8),i=kne(t,5e8),i=Ns(Ld(i,1),Zr(e,1))),Zh(Ld(i,32),Zr(n,Js))}function pQt(e,t,n,i){var r,o,a,d,b;for(r=null,o=0,d=new U(t);d.a<d.c.c.length;)a=c(G(d),19),b=a.i+a.g,e<a.j+a.f+i&&(r?n.i-b<n.i-o&&(r=a):r=a,o=r.i+r.g);return r?o+i:0}function bQt(e,t,n,i){var r,o,a,d,b;for(o=null,r=0,d=new U(t);d.a<d.c.c.length;)a=c(G(d),19),b=a.j+a.f,e<a.i+a.g+i&&(o?n.j-b<n.j-r&&(o=a):o=a,r=o.j+o.f);return o?r+i:0}function mQt(e){var t,n,i;for(t=!1,i=e.b.c.length,n=0;n<i;n++)bwe(c(Je(e.b,n),439))?!t&&n+1<i&&bwe(c(Je(e.b,n+1),439))&&(t=!0,c(Je(e.b,n),439).a=!0):t=!1}function wQt(e,t,n,i,r){var o,a;for(o=0,a=0;a<r;a++)o=Ns(o,Ha(Zr(t[a],Js),Zr(i[a],Js))),e[a]=Gn(o),o=Bm(o,32);for(;a<n;a++)o=Ns(o,Zr(t[a],Js)),e[a]=Gn(o),o=Bm(o,32)}function vQt(e,t){US();var n,i;for(i=(rd(),wU),n=e;t>1;t>>=1)(t&1)!=0&&(i=Cx(i,n)),n.d==1?n=Cx(n,n):n=new RYe(wrt(n.a,n.d,ke(Hn,li,30,n.d<<1,15,1)));return i=Cx(i,n),i}function fve(){fve=Z;var e,t,n,i;for(Jke=ke(is,io,30,25,15,1),Vke=ke(is,io,30,33,15,1),i=152587890625e-16,t=32;t>=0;t--)Vke[t]=i,i*=.5;for(n=1,e=24;e>=0;e--)Jke[e]=n,n*=.5}function yQt(e){var t,n;if(Ze(Ye(Se(e,(Ge(),Gv))))){for(n=new Ht(Xt(I1(e).a.Jc(),new F));hn(n);)if(t=c(rn(n),74),lw(t)&&Ze(Ye(Se(t,_b))))return!0}return!1}function ket(e){var t,n,i,r;for(t=new _i,n=new _i,r=Pn(e,0);r.b!=r.d.c;)i=c(Dn(r),12),i.e.c.length==0?rr(n,i,n.c.b,n.c):rr(t,i,t.c.b,t.c);return ju(t).Fc(n),t}function Oet(e,t){var n,i,r;Er(e.f,t)&&(t.b=e,i=t.c,Lo(e.j,i,0)!=-1||Qe(e.j,i),r=t.d,Lo(e.j,r,0)!=-1||Qe(e.j,r),n=t.a.b,n.c.length!=0&&(!e.i&&(e.i=new zYe(e)),qRt(e.i,n)))}function xQt(e){var t,n,i,r,o;return n=e.c.d,i=n.j,r=e.d.d,o=r.j,i==o?n.p<r.p?0:1:WH(i)==o?0:qwe(i)==o?1:(t=e.b,Ml(t.b,WH(i))?0:1)}function CQ(e,t){var n,i,r,o,a,d;r=e,a=h7(r,"layoutOptions"),!a&&(a=h7(r,Nut)),a&&(d=a,i=null,d&&(i=(o=Dte(d,ke(tt,Fe,2,0,6,1)),new NY(d,o))),i&&(n=new G$e(d,t),vs(i,n)))}function no(e){if(ae(e,209))return c(e,19);if(ae(e,196))return bh(c(e,127));throw V(e?new wg("Only support nodes and ports."):new l4(zut))}function kQt(e,t,n,i){return(t>=0&&St(e.substr(t,3),"GMT")||t>=0&&St(e.substr(t,3),"UTC"))&&(n[0]=t+3),Vye(e,n,i)}function OQt(e,t){var n,i,r,o,a;for(o=e.g.a,a=e.g.b,i=new U(e.d);i.a<i.c.c.length;)n=c(G(i),70),r=n.n,r.a=o,e.i==(Ue(),Kt)?r.b=a+e.j.b-n.o.b:r.b=a,Oi(r,t),o+=n.o.a+e.e}function jet(e,t,n){if(e.b)throw V(new co("The task is already done."));return e.p!=null?!1:(e.p=t,e.r=n,e.k&&(e.o=(kg(),js(tc(Date.now()),Fg))),!0)}function hve(e){var t,n,i,r,o,a,d;return d=new c4,n=e.Og(),r=n!=null,r&&J6(d,hd,e.Og()),i=e.ve(),o=i!=null,o&&J6(d,di,e.ve()),t=e.Ng(),a=t!=null,a&&J6(d,"description",e.Ng()),d}function Tet(e,t,n){var i,r,o;return o=e.q,e.q=t,(e.Db&4)!=0&&(e.Db&1)==0&&(r=new Jr(e,1,9,o,t),n?n.lj(r):n=r),t?(i=t.c,i!=e.r&&(n=e.Wk(i,n))):e.r&&(n=e.Wk(null,n)),n}function SQt(e,t,n){var i,r,o,a,d;for(n=(d=t,K4(d,e.e,-1-e.c,n)),a=Xpe(e.a),o=(i=new lv(new Rp(a.a).a),new Iz(i));o.a.b;)r=c(_x(o.a).jd(),88),n=YS(r,BQ(r,e.a),n);return n}function jQt(e,t,n){var i,r,o,a,d;for(n=(d=t,Bq(d,e.e,-1-e.c,n)),a=Xpe(e.a),o=(i=new lv(new Rp(a.a).a),new Iz(i));o.a.b;)r=c(_x(o.a).jd(),88),n=YS(r,BQ(r,e.a),n);return n}function TQt(e,t,n,i){var r,o,a;if(i==0)wc(t,0,e,n,e.length-n);else for(a=32-i,e[e.length-1]=0,o=e.length-1;o>n;o--)e[o]|=t[o-n-1]>>>a,e[o-1]=t[o-n-1]<<i;for(r=0;r<n;r++)e[r]=0}function EQt(e){var t,n,i,r,o;for(t=0,n=0,o=e.Jc();o.Ob();)i=c(o.Pb(),116),t=p.Math.max(t,i.d.b),n=p.Math.max(n,i.d.c);for(r=e.Jc();r.Ob();)i=c(r.Pb(),116),i.d.b=t,i.d.c=n}function CQt(e){var t,n,i,r,o;for(n=0,t=0,o=e.Jc();o.Ob();)i=c(o.Pb(),116),n=p.Math.max(n,i.d.d),t=p.Math.max(t,i.d.a);for(r=e.Jc();r.Ob();)i=c(r.Pb(),116),i.d.d=n,i.d.a=t}function iie(e,t,n,i,r){var o,a;o=c(Hl(mi(t.Mc(),new d8),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[(ya(),wl)]))),16),U7(o),a=c(ob(e.b,n,i),16),r==0?a.ad(0,o):a.Fc(o)}function MQt(e,t,n){n.Tg("Grow Tree",1),e.b=t.f,Ze(Ye($(t,(pS(),JE))))?(e.c=new om,iGe(e,null)):e.c=new om,e.a=!1,oit(e,t.f),Me(t,tOe,(Bt(),!!e.a)),n.Ug()}function pb(e){var t;this.d=new yn,this.c=e.c,this.e=e.d,this.b=e.b,this.f=new Aqe(e.e),this.a=e.a,e.f?this.g=e.f:this.g=(t=c(Gf(gI),10),new da(t,c(gf(t,t.length),10),0))}function dve(e){var t,n,i,r;for(t=null,r=new U(e.Pf());r.a<r.c.c.length;)i=c(G(r),190),n=new pf(i.Jf().a,i.Jf().b,i.Kf().a,i.Kf().b),t?G7(t,n):t=n;return!t&&(t=new w4),t}function rie(e,t,n,i){var r,o;return n==1?(!e.n&&(e.n=new _e(zo,e,1,7)),Vc(e.n,t,i)):(o=c(Dt((r=c(Wt(e,16),29),r||e.fi()),n),69),o.uk().xk(e,il(e),n-bn(e.fi()),t,i))}function sie(e,t,n){var i,r,o,a,d;for(i=n.gc(),e.Zi(e.i+i),d=e.i-t,d>0&&wc(e.g,t,e.g,t+i,d),a=n.Jc(),e.i+=i,r=0;r<i;++r)o=a.Pb(),QT(e,t,e.Xi(t,o)),e.Ki(t,o),e.Li(),++t;return i!=0}function Sh(e,t,n){var i;return t!=e.q?(e.q&&(n=Bq(e.q,e,-10,n)),t&&(n=K4(t,e,-10,n)),n=Tet(e,t,n)):(e.Db&4)!=0&&(e.Db&1)==0&&(i=new Jr(e,1,9,t,t),n?n.lj(i):n=i),n}function oie(e,t,n,i){return Q0e((n&od)==0,"flatMap does not support SUBSIZED characteristic"),Q0e((n&4)==0,"flatMap does not support SORTED characteristic"),Bn(e),Bn(t),new nUe(e,t,n,i)}function Eet(e,t){Lpe(t,"Cannot suppress a null exception."),W_(t!=e,"Exception can not suppress itself."),!e.i&&(e.k==null?e.k=Y(K(Koe,1),Fe,81,0,[t]):e.k[e.k.length]=t)}function AQt(e,t){var n;if(n=bBe(e.b.$f(),t.b.$f()),n!=0)return n;switch(e.b.$f().g){case 1:case 2:return hc(e.b.Lf(),t.b.Lf());case 3:case 4:return hc(t.b.Lf(),e.b.Lf())}return 0}function NQt(e){var t,n,i;for(i=e.e.c.length,e.a=U2(Hn,[Fe,li],[54,30],15,[i,i],2),n=new U(e.c);n.a<n.c.c.length;)t=c(G(n),292),e.a[t.c.a][t.d.a]+=c($(t,(Sf(),Sk)),15).a}function _Qt(e,t){var n,i,r,o,a;if(e==null)return null;for(a=ke(_a,cd,30,2*t,15,1),i=0,r=0;i<t;++i)n=e[i]>>4&15,o=e[i]&15,a[r++]=J7e[n],a[r++]=J7e[o];return nd(a,0,a.length)}function pl(e){var t,n;return e>=Rs?(t=NL+(e-Rs>>10&1023)&Dr,n=56320+(e-Rs&1023)&Dr,String.fromCharCode(t)+(""+String.fromCharCode(n))):String.fromCharCode(e&Dr)}function DQt(e,t){q2();var n,i,r,o;return r=c(c(Ei(e.r,t),24),85),r.gc()>=2?(i=c(r.Jc().Pb(),116),n=e.u.Gc((Gl(),ZC)),o=e.u.Gc(Vk),!i.a&&!n&&(r.gc()==2||o)):!1}function Cet(e,t,n,i,r){var o,a,d;for(o=kit(e,t,n,i,r),d=!1;!o;)IQ(e,r,!0),d=!0,o=kit(e,t,n,i,r);d&&IQ(e,r,!1),a=Gte(r),a.c.length!=0&&(e.d&&e.d.Fg(a),Cet(e,r,n,i,a))}function MQ(){MQ=Z,$ue=new SF("NODE_SIZE_REORDERER",0),Pue=new SF("INTERACTIVE_NODE_REORDERER",1),Rue=new SF("MIN_SIZE_PRE_PROCESSOR",2),Iue=new SF("MIN_SIZE_POST_PROCESSOR",3)}function AQ(){AQ=Z,Iae=new LT(Zf,0),g7e=new LT("DIRECTED",1),b7e=new LT("UNDIRECTED",2),h7e=new LT("ASSOCIATION",3),p7e=new LT("GENERALIZATION",4),d7e=new LT("DEPENDENCY",5)}function LQt(e,t){var n;if(!bh(e))throw V(new co(mut));switch(n=bh(e),t.g){case 1:return-(e.j+e.f);case 2:return e.i-n.g;case 3:return e.j-n.f;case 4:return-(e.i+e.g)}return 0}function PQt(e,t,n){var i,r,o;return i=t.Jk(),o=t.kd(),r=i.Hk()?j0(e,4,i,o,null,XS(e,i,o,ae(i,104)&&(c(i,20).Bb&Rs)!=0),!0):j0(e,i.rk()?2:1,i,o,i.gk(),-1,!0),n?n.lj(r):n=r,n}function BS(e,t){var n,i;for(zt(t),i=e.b.c.length,Qe(e.b,t);i>0;){if(n=i,i=(i-1)/2|0,e.a.Le(Je(e.b,i),t)<=0)return ku(e.b,n,t),!0;ku(e.b,n,Je(e.b,i))}return ku(e.b,i,t),!0}function gve(e,t,n,i){var r,o;if(r=0,n)r=UH(e.a[n.g][t.g],i);else for(o=0;o<OU;o++)r=p.Math.max(r,UH(e.a[o][t.g],i));return t==(Wf(),Kc)&&e.b&&(r=p.Math.max(r,e.b.a)),r}function IQt(e,t){var n,i,r,o,a,d;return r=e.i,o=t.i,!r||!o||r.i!=o.i||r.i==(Ue(),nn)||r.i==(Ue(),Yt)?!1:(a=r.g.a,n=a+r.j.a,d=o.g.a,i=d+o.j.a,a<=i&&n>=d)}function Met(e){switch(e.g){case 0:return new B$;case 1:return new eN;default:throw V(new qt("No implementation is available for the width approximator "+(e.f!=null?e.f:""+e.g)))}}function pve(e,t,n,i){var r;if(r=!1,Yr(i)&&(r=!0,J6(t,n,qn(i))),r||R2(i)&&(r=!0,pve(e,t,n,i)),r||ae(i,245)&&(r=!0,Kp(t,n,c(i,245))),!r)throw V(new xY(V4e))}function RQt(e,t){var n,i,r;if(n=t.ni(e.a),n&&(r=Kf((!n.b&&(n.b=new wu((At(),zs),Zo,n)),n.b),Ua),r!=null)){for(i=1;i<(Ll(),mEe).length;++i)if(St(mEe[i],r))return i}return 0}function $Qt(e,t){var n,i,r;if(n=t.ni(e.a),n&&(r=Kf((!n.b&&(n.b=new wu((At(),zs),Zo,n)),n.b),Ua),r!=null)){for(i=1;i<(Ll(),wEe).length;++i)if(St(wEe[i],r))return i}return 0}function Aet(e,t){var n,i,r,o;if(zt(t),o=e.a.gc(),o<t.gc())for(n=e.a.ec().Jc();n.Ob();)i=n.Pb(),t.Gc(i)&&n.Qb();else for(r=t.Jc();r.Ob();)i=r.Pb(),e.a.Ac(i)!=null;return o!=e.a.gc()}function Net(e){var t,n;switch(n=As(Po(Y(K(Wr,1),Fe,8,0,[e.i.n,e.n,e.a]))),t=e.i.d,e.j.g){case 1:n.b-=t.d;break;case 2:n.a+=t.c;break;case 3:n.b+=t.a;break;case 4:n.a-=t.b}return n}function BQt(e){var t;for(t=(H4(),c(rn(new Ht(Xt(vr(e).a.Jc(),new F))),17).c.i);t.k==(Jt(),Cr);)Me(t,(Ie(),kP),(Bt(),!0)),t=c(rn(new Ht(Xt(vr(t).a.Jc(),new F))),17).c.i}function cie(e,t,n,i){var r,o,a,d;for(d=N7(t,i),a=d.Jc();a.Ob();)r=c(a.Pb(),12),e.d[r.p]=e.d[r.p]+e.c[n.p];for(d=N7(n,i),o=d.Jc();o.Ob();)r=c(o.Pb(),12),e.d[r.p]=e.d[r.p]-e.c[t.p]}function bve(e,t,n){var i,r;for(r=new on((!e.a&&(e.a=new _e(_n,e,10,11)),e.a));r.e!=r.i.gc();)i=c(un(r),19),fa(i,i.i+t,i.j+n);vs((!e.b&&(e.b=new _e($i,e,12,3)),e.b),new S$e(t,n))}function zQt(e,t,n,i){var r,o;for(o=t,r=o.d==null||e.a.Le(n.d,o.d)>0?1:0;o.a[r]!=n;)o=o.a[r],r=e.a.Le(n.d,o.d)>0?1:0;o.a[r]=i,i.b=n.b,i.a[0]=n.a[0],i.a[1]=n.a[1],n.a[0]=null,n.a[1]=null}function FQt(e){var t,n,i,r;for(t=new He,n=ke(Sl,Yf,30,e.a.c.length,16,1),Dpe(n,n.length),r=new U(e.a);r.a<r.c.c.length;)i=c(G(r),126),n[i.d]||(It(t.c,i),GYe(e,i,n));return t}function _et(e,t){var n,i,r,o,a;for(r=t==1?Sce:Oce,i=r.a.ec().Jc();i.Ob();)for(n=c(i.Pb(),87),a=c(Ei(e.f.c,n),24).Jc();a.Ob();)o=c(a.Pb(),49),dl(e.b.b,o.b),dl(e.b.a,c(o.b,84).d)}function qQt(e,t){var n;t.Tg("Hierarchical port position processing",1),n=e.b,n.c.length>0&&drt((ht(0,n.c.length),c(n.c[0],26)),e),n.c.length>1&&drt(c(Je(n,n.c.length-1),26),e),t.Ug()}function HQt(e){Gl();var t,n;return t=Li(W1,Y(K(mV,1),Pe,282,0,[ap])),!(ND(Fq(t,e))>1||(n=Li(ZC,Y(K(mV,1),Pe,282,0,[YC,Vk])),ND(Fq(n,e))>1))}function mve(e,t){var n;n=Mc((w0(),nf),e),ae(n,496)?uo(nf,e,new X$e(this,t)):uo(nf,e,this),uie(this,t),t==(_6(),sEe)?(this.wb=c(this,2017),c(t,2019)):this.wb=(O0(),Gt)}function QQt(e){var t,n,i;if(e==null)return null;for(t=null,n=0;n<iM.length;++n)try{return ARe(iM[n],e)}catch(r){if(r=kr(r),ae(r,33))i=r,t=i;else throw V(r)}throw V(new hH(t))}function Det(){Det=Z,zft=Y(K(tt,1),Fe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),Fft=Y(K(tt,1),Fe,2,6,["Jan","Feb","Mar","Apr",ak,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])}function $(e,t){var n,i;return i=(!e.q&&(e.q=new yn),Ut(e.q,t)),i??(n=t.Rg(),ae(n,4)&&(n==null?(!e.q&&(e.q=new yn),$4(e.q,t)):(!e.q&&(e.q=new yn),ci(e.q,t,n))),n)}function ts(){ts=Z,Cf=new k_("P1_CYCLE_BREAKING",0),Xd=new k_("P2_LAYERING",1),yc=new k_("P3_NODE_ORDERING",2),xc=new k_("P4_NODE_PLACEMENT",3),Ws=new k_("P5_EDGE_ROUTING",4)}function GQt(e,t){m7();var n;if(e.c==t.c){if(e.b==t.b||bRt(e.b,t.b)){if(n=Z8t(e.b)?1:-1,e.a&&!t.a)return n;if(!e.a&&t.a)return-n}return hc(e.b.g,t.b.g)}else return Ci(e.c,t.c)}function UQt(e,t,n,i){var r,o,a,d,b;return a=$Ze(e.a,t,n),d=c(a.a,15).a,o=c(a.b,15).a,i&&(b=c($(t,(Ie(),Jl)),9),r=c($(n,Jl),9),b&&r&&(dUe(e.b,b,r),d+=e.b.i,o+=e.b.e)),d>o}function Let(e,t){var n,i,r;if(vve(e,t))return!0;for(i=new U(t);i.a<i.c.c.length;)if(n=c(G(i),19),r=cet(n),UQ(e,n,r)||OKe(e,n)-e.g<=e.a)return!0;return!1}function iL(){iL=Z,sV=(Cie(),eTe),nae=_wt,tae=Nwt,J8e=Cwt,eae=Awt,U8e=new qp(8),xwt=new Ur((In(),Ih),U8e),kwt=new Ur(oh,8),Owt=Y8e,Q8e=Swt,G8e=jwt,ywt=new Ur(VP,(Bt(),!1))}function NQ(){NQ=Z,STe=new qp(15),d2t=new Ur((In(),Ih),STe),g2t=new Ur(oh,15),jTe=new Ur(WP,$e(0)),xTe=x2t,f2t=zb,h2t=op,yTe=new Ur(l9,Vlt),kTe=GC,OTe=D3,vae=w2t,a2t=JP}function JQt(e,t){if(ae(t,209))return nFt(e,c(t,19));if(ae(t,196))return rFt(e,c(t,127));if(t)return null;throw V(new qt(Cj+jh(new Qo(Y(K(Br,1),Pt,1,5,[t])))))}function VQt(e,t){if(ae(t,363))return UPt(e,c(t,158));if(ae(t,273))return tZt(e,c(t,74));if(t)return null;throw V(new qt(Cj+jh(new Qo(Y(K(Br,1),Pt,1,5,[t])))))}function lie(e){if((!e.b&&(e.b=new Ct(xn,e,4,7)),e.b).i!=1||(!e.c&&(e.c=new Ct(xn,e,5,8)),e.c).i!=1)throw V(new qt(qut));return no(c(ce((!e.b&&(e.b=new Ct(xn,e,4,7)),e.b),0),83))}function Pet(e){if((!e.b&&(e.b=new Ct(xn,e,4,7)),e.b).i!=1||(!e.c&&(e.c=new Ct(xn,e,5,8)),e.c).i!=1)throw V(new qt(qut));return no(c(ce((!e.c&&(e.c=new Ct(xn,e,5,8)),e.c),0),83))}function wve(e,t,n){var i,r,o;if(++e.j,r=e.Cj(),t>=r||t<0)throw V(new qc(Soe+t+Sb+r));if(n>=r||n<0)throw V(new qc(joe+n+Sb+r));return t!=n?i=(o=e.Aj(n),e.oj(t,o),o):i=e.vj(n),i}function Iet(e){var t,n,i;if(i=e,e)for(t=0,n=e.Bh();n;n=n.Bh()){if(++t>_re)return Iet(n);if(i=n,n==e)throw V(new co("There is a cycle in the containment hierarchy of "+e))}return i}function jh(e){var t,n,i;for(i=new cb(Xc,"[","]"),n=e.Jc();n.Ob();)t=n.Pb(),E1(i,xe(t)===xe(e)?"(this Collection)":t==null?ml:To(t));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function vve(e,t){var n,i;if(i=!1,t.gc()<2)return!1;for(n=0;n<t.gc();n++)n<t.gc()-1?i=i|UQ(e,c(t.Xb(n),19),c(t.Xb(n+1),19)):i=i|UQ(e,c(t.Xb(n),19),c(t.Xb(0),19));return i}function Ret(e,t){var n,i,r;if(r=(!t.e&&(t.e=new Ct($i,t,7,4)),t.e).i,r>0)for(i=0;i<r;i++)n=c(ce(eS(c(ce((!t.e&&(t.e=new Ct($i,t,7,4)),t.e),i),74)),0),19),Nc(n,n.i+t.i),Ret(e,n)}function $et(e,t){var n;t!=e.a?(n=null,e.a&&(n=c(e.a,52).Qh(e,4,ch,n)),t&&(n=c(t,52).Oh(e,4,ch,n)),n=Awe(e,t,n),n&&n.mj()):(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,1,t,t))}function yve(e,t){var n;t!=e.e?(e.e&&lJe(Xpe(e.e),e),t&&(!t.b&&(t.b=new Pz(new pY)),wFe(t.b,e)),n=sHt(e,t,null),n&&n.mj()):(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,4,t,t))}function XQt(e){var t,n,i,r;if(mx(c($(e.b,(Ge(),Vu)),87)))return 0;for(t=0,i=new U(e.a);i.a<i.c.c.length;)n=c(G(i),9),n.k==(Jt(),ur)&&(r=n.o.a,t=p.Math.max(t,r));return t}function WQt(e,t){var n;n=t.o,v1(e.f)?(e.j.a=p.Math.max(e.j.a,n.a),e.j.b+=n.b,e.d.c.length>1&&(e.j.b+=e.e)):(e.j.a+=n.a,e.j.b=p.Math.max(e.j.b,n.b),e.d.c.length>1&&(e.j.a+=e.e))}function $0(){$0=Z,o1t=Y(K(Bs,1),uc,64,0,[(Ue(),Kt),nn,mn]),s1t=Y(K(Bs,1),uc,64,0,[nn,mn,Yt]),c1t=Y(K(Bs,1),uc,64,0,[mn,Yt,Kt]),l1t=Y(K(Bs,1),uc,64,0,[Yt,Kt,nn])}function Bet(e){var t,n,i,r,o,a,d,b,v;for(this.a=rZe(e),this.b=new He,n=e,i=0,r=n.length;i<r;++i)for(t=n[i],o=new He,Qe(this.b,o),d=t,b=0,v=d.length;b<v;++b)a=d[b],Qe(o,new ql(a.j))}function KQt(e,t,n){var i,r,o;return o=0,i=n[t],t<n.length-1&&(r=n[t+1],e.b[t]?(o=Rnn(e.d,i,r),o+=kee(e.a,i,(Ue(),nn)),o+=kee(e.a,r,Yt)):o=KPt(e.a,i,r)),e.c[t]&&(o+=vPt(e.a,i)),o}function YQt(e,t,n,i,r){var o,a,d,b;for(b=null,d=new U(i);d.a<d.c.c.length;)if(a=c(G(d),447),a!=n&&Lo(a.e,r,0)!=-1){b=a;break}o=ste(r),Os(o,n.b),ss(o,b.b),jt(e.a,r,new tq(o,t,n.f))}function zet(e){for(;e.g.c!=0&&e.d.c!=0;)PZ(e.g).c>PZ(e.d).c?(e.i+=e.g.c,One(e.d)):PZ(e.d).c>PZ(e.g).c?(e.e+=e.d.c,One(e.g)):(e.i+=Sqe(e.g),e.e+=Sqe(e.d),One(e.g),One(e.d))}function ZQt(e,t,n){var i,r,o,a;for(o=t.q,a=t.r,new Yp((Vf(),ip),t,o,1),new Yp(ip,o,a,1),r=new U(n);r.a<r.c.c.length;)i=c(G(r),117),i!=o&&i!=t&&i!=a&&(axe(e.a,i,t),axe(e.a,i,a))}function Fet(e,t,n,i){e.a.d=p.Math.min(t,n),e.a.a=p.Math.max(t,i)-e.a.d,t<n?(e.b=.5*(t+n),e.g=Qse*e.b+.9*t,e.f=Qse*e.b+.9*n):(e.b=.5*(t+i),e.g=Qse*e.b+.9*i,e.f=Qse*e.b+.9*t)}function eGt(e){var t,n,i,r;if(e.b!=0){for(t=new _i,r=Pn(e,0);r.b!=r.d.c;)i=c(Dn(r),41),Ss(t,Qte(i)),n=i.e,n.a=c($(i,(Ii(),RP)),15).a,n.b=c($(i,$P),15).a;return t}return new _i}function tGt(e){switch(c($(e,(Ge(),$o)),166).g){case 1:Me(e,$o,(Su(),cC));break;case 2:Me(e,$o,(Su(),Nb));break;case 3:Me(e,$o,(Su(),oC));break;case 4:Me(e,$o,(Su(),G1))}}function nGt(e,t,n){var i;n.Tg("Self-Loop routing",1),i=$Bt(t),IF($(t,(sH(),zC))),hr(Qc(mi(mi(jo(new Tt(null,new Et(t.b,16)),new BO),new _R),new DR),new LR),new GRe(e,i)),n.Ug()}function zS(){zS=Z,eC=new NT(Zf,0),I6e=new NT(dk,1),B6e=new NT(gk,2),$6e=new NT("LEFT_RIGHT_CONSTRAINT_LOCKING",3),R6e=new NT("LEFT_RIGHT_CONNECTION_LOCKING",4),P6e=new NT(Yct,5)}function qet(e,t,n){var i,r,o,a,d,b,v;d=n.a/2,o=n.b/2,i=p.Math.abs(t.a-e.a),r=p.Math.abs(t.b-e.b),b=1,v=1,i>d&&(b=d/i),r>o&&(v=o/r),a=p.Math.min(b,v),e.a+=a*(t.a-e.a),e.b+=a*(t.b-e.b)}function iGt(e,t,n,i,r){var o,a;for(a=!1,o=c(Je(n.b,0),19);aYt(e,t,o,i,r)&&(a=!0,HHt(n,o),n.b.c.length!=0);)o=c(Je(n.b,0),19);return n.b.c.length==0&&ZD(n.j,n),a&&vQ(t.q),a}function xve(e,t,n,i){var r,o;return n==0?(!e.o&&(e.o=new Nl((lc(),t1),Zg,e,0)),YF(e.o,t,i)):(o=c(Dt((r=c(Wt(e,16),29),r||e.fi()),n),69),o.uk().yk(e,il(e),n-bn(e.fi()),t,i))}function uie(e,t){var n;t!=e.sb?(n=null,e.sb&&(n=c(e.sb,52).Qh(e,1,nM,n)),t&&(n=c(t,52).Oh(e,1,nM,n)),n=Lwe(e,t,n),n&&n.mj()):(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,4,t,t))}function Het(e,t){var n,i,r,o;if(t)r=N1(t,"x"),n=new uLe(e),Wm(n.a,(zt(r),r)),o=N1(t,"y"),i=new aLe(e),Km(i.a,(zt(o),o));else throw V(new Jh("All edge sections need an end point."))}function Qet(e,t){var n,i,r,o;if(t)r=N1(t,"x"),n=new oLe(e),Ym(n.a,(zt(r),r)),o=N1(t,"y"),i=new cLe(e),Zm(i.a,(zt(o),o));else throw V(new Jh("All edge sections need a start point."))}function rGt(e,t){var n,i,r,o,a,d,b;for(i=cKe(e),o=0,d=i.length;o<d;++o)Jet(t);for(b=!Nh&&e.e?Nh?null:e.d:null;b;){for(n=cKe(b),r=0,a=n.length;r<a;++r)Jet(t);b=!Nh&&b.e?Nh?null:b.d:null}}function Get(e,t){var n,i;i=c($(t,(Ge(),ar)),103),Me(t,(Ie(),eSe),i),n=t.e,n&&(hr(new Tt(null,new Et(n.a,16)),new Jde(e)),hr(jo(new Tt(null,new Et(n.b,16)),new $y),new Vde(e)))}function sGt(e){var t,n,i,r;if(t=!1,ki(e,(Ie(),iC)))for(n=c($(e,iC),93),r=new U(e.j);r.a<r.c.c.length;)i=c(G(r),12),sVt(i)&&(t||(xUt(Vr(e)),t=!0),xzt(c(n.xc(i),319)))}function oGt(e){var t,n,i,r,o,a,d,b,v;return v=hve(e),n=e.e,o=n!=null,o&&J6(v,WG,e.e),d=e.k,a=!!d,a&&J6(v,"type",NZ(e.k)),i=p_(e.j),r=!i,r&&(b=new bg,wf(v,koe,b),t=new MLe(b),vs(e.j,t)),v}function cGt(e){var t,n,i,r;for(r=Xp((zu(e.gc(),"size"),new a4),123),i=!0,n=Gp(e).Jc();n.Ob();)t=c(n.Pb(),45),i||(r.a+=Xc),i=!1,Ec(Xp(Ec(r,t.jd()),61),t.kd());return(r.a+="}",r).a}function Uet(e,t){var n,i,r;return t&=63,t<22?(n=e.l<<t,i=e.m<<t|e.l>>22-t,r=e.h<<t|e.m>>22-t):t<44?(n=0,i=e.l<<t-22,r=e.m<<t-22|e.l>>44-t):(n=0,i=0,r=e.l<<t-44),nl(n&uu,i&uu,r&z1)}function mv(e){if(Eke==null&&(Eke=new RegExp("^\\s*[+-]?(NaN|Infinity|((\\d+\\.?\\d*)|(\\.\\d+))([eE][+-]?\\d+)?[dDfF]?)\\s*$")),!Eke.test(e))throw V(new Vh(pw+e+'"'));return parseFloat(e)}function Jet(e){var t,n,i;t=St(typeof console,Bre)?null:new as,t&&(R6(),n=(i=900,i>=Fg?"error":i>=900?"warn":i>=800?"info":"log"),wHe(n,e.a),e.b&&kye(t,n,e.b,"Exception: ",!0))}function Vet(e,t){var n,i,r,o,a;for(r=t==1?Sce:Oce,i=r.a.ec().Jc();i.Ob();)for(n=c(i.Pb(),87),a=c(Ei(e.f.c,n),24).Jc();a.Ob();)o=c(a.Pb(),49),Qe(e.b.b,c(o.b,84)),Qe(e.b.a,c(o.b,84).d)}function Xet(e,t,n,i){var r,o,a,d,b;switch(b=e.b,o=t.d,a=o.j,d=y2e(a,b.d[a.g],n),r=Oi(As(o.n),o.a),o.j.g){case 3:case 1:d.a+=r.a;break;case 2:d.b+=r.b;break;case 4:d.b+=r.b}rr(i,d,i.c.b,i.c)}function lGt(e,t){var n,i,r,o;for(o=t.b.j,e.a=ke(Hn,li,30,o.c.length,15,1),r=0,i=0;i<o.c.length;i++)n=(ht(i,o.c.length),c(o.c[i],12)),n.e.c.length==0&&n.g.c.length==0?r+=1:r+=3,e.a[i]=r}function _Q(){_Q=Z,tle=new MT("ALWAYS_UP",0),ele=new MT("ALWAYS_DOWN",1),ile=new MT("DIRECTION_UP",2),nle=new MT("DIRECTION_DOWN",3),rle=new MT("SMART_UP",4),nJ=new MT("SMART_DOWN",5)}function Wet(e){switch(e.g){case 0:return new _K;case 1:return new LK;case 2:return new uz;case 3:return new C$e;case 4:return new Hqe;default:throw V(new qt(Bse+(e.f!=null?e.f:""+e.g)))}}function uGt(e,t){if(e<0||t<0)throw V(new qt("k and n must be positive"));if(t>e)throw V(new qt("k must be smaller than n"));return t==0||t==e?1:e==0?0:V2e(e)/(V2e(t)*V2e(e-t))}function kve(e,t){var n,i,r,o;for(n=new vZ(e);n.g==null&&!n.c?dbe(n):n.g==null||n.i!=0&&c(n.g[n.i-1],51).Ob();)if(o=c(RQ(n),57),ae(o,176))for(i=c(o,176),r=0;r<t.length;r++)t[r].Jg(i)}function aie(e){var t;return(e.Db&64)!=0?gne(e):(t=new Ba(gne(e)),t.a+=" (height: ",ux(t,e.f),t.a+=", width: ",ux(t,e.g),t.a+=", x: ",ux(t,e.i),t.a+=", y: ",ux(t,e.j),t.a+=")",t.a)}function aGt(e){var t,n,i,r,o,a,d;for(t=new E0,i=e,r=0,o=i.length;r<o;++r)if(n=i[r],a=Bn(n.jd()),d=hb(t,a,Bn(n.kd())),d!=null)throw V(new qt("duplicate key: "+a));this.b=(Mt(),new rY(t))}function fGt(e){var t,n,i,r,o;if(e==null)return ml;for(o=new cb(Xc,"[","]"),n=e,i=0,r=n.length;i<r;++i)t=n[i],E1(o,String.fromCharCode(t));return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}function Ove(){Ove=Z,nOe=(bH(),jU),Bht=new vt(pG,nOe),$e(1),$ht=new vt(e3e,$e(300)),$e(0),qht=new vt(t3e,$e(0)),Hht=new vt(Qre,ud),zht=new vt(Gre,5),Qht=jU,Fht=bce}function hGt(e,t){var n;if(t!=null&&!e.c.Fk().dk(t))throw n=ae(t,57)?c(t,57).Ah().zb:zp(Ou(t)),V(new C6(J0+e.c.ve()+"'s type '"+e.c.Fk().ve()+"' does not permit a value of type '"+n+"'"))}function dGt(e,t,n){var i,r;for(r=new os(e.b,0);r.b<r.d.gc();)i=(gn(r.b<r.d.gc()),c(r.d.Xb(r.c=r.b++),70)),xe($(i,(Ie(),Y6e)))===xe(t)&&(Ave(i.n,Vr(e.c.i),n),nu(r),Qe(t.b,i))}function Ket(e){var t,n;return n=p.Math.sqrt((e.k==null&&(e.k=Vme(e,new Ff)),de(e.k)/(e.b*(e.g==null&&(e.g=YXe(e,new b2)),de(e.g))))),t=Gn(tc(p.Math.round(n))),t=p.Math.min(t,e.f),t}function gGt(){var e,t,n;for(t=0,e=0;e<1;e++){if(n=Yve((en(e,1),"X".charCodeAt(e))),n==0)throw V(new Un((en(e,2),"Unknown Option: "+"X".substr(e))));t|=n}return t}function pGt(e){var t,n,i,r,o,a;for(t=new xx,n=new xx,T0(t,e),T0(n,e);n.b!=n.c;)for(r=c(M4(n),37),a=new U(r.a);a.a<a.c.c.length;)o=c(G(a),9),o.e&&(i=o.e,T0(t,i),T0(n,i));return t}function mc(){Dl(),_0e.call(this),this.j=(Ue(),Bo),this.a=new fs,new fY,this.f=(zu(2,Ev),new Gc(2)),this.e=(zu(4,Ev),new Gc(4)),this.g=(zu(4,Ev),new Gc(4)),this.b=new QRe(this.e,this.g)}function bGt(e,t){var n,i;return!(Ze(Ye($(t,(Ie(),Ug))))||(i=t.c.i,e==(Su(),oC)&&i.k==(Jt(),ac))||(n=c($(i,(Ge(),$o)),166),n==G1))}function mGt(e,t){var n,i;return!(Ze(Ye($(t,(Ie(),Ug))))||(i=t.d.i,e==(Su(),cC)&&i.k==(Jt(),ac))||(n=c($(i,(Ge(),$o)),166),n==Nb))}function wGt(e,t){var n,i,r,o,a,d,b;for(a=e.d,b=e.o,d=new pf(-a.b,-a.d,a.b+b.a+a.c,a.d+b.b+a.a),i=t,r=0,o=i.length;r<o;++r)n=i[r],n&&G7(d,n.i);a.b=-d.c,a.d=-d.d,a.c=d.b-a.b-b.a,a.a=d.a-a.d-b.b}function vGt(e,t){if(t.a)switch(c($(t.b,(Ie(),eSe)),103).g){case 0:case 1:FHt(t);case 2:hr(new Tt(null,new Et(t.d,16)),new uA),aJt(e.a,t)}else hr(new Tt(null,new Et(t.d,16)),new uA)}function rL(){rL=Z,z8e=new M_("CENTER_DISTANCE",0),Yue=new M_("CIRCLE_UNDERLAP",1),q8e=new M_("RECTANGLE_UNDERLAP",2),Zue=new M_("INVERTED_OVERLAP",3),F8e=new M_("MINIMUM_ROOT_DISTANCE",4)}function yGt(e){Mye();var t,n,i,r,o;if(e==null)return null;for(i=e.length,r=i*2,t=ke(_a,cd,30,r,15,1),n=0;n<i;n++)o=e[n],o<0&&(o+=256),t[n*2]=LV[o>>4],t[n*2+1]=LV[o&15];return nd(t,0,t.length)}function xGt(e){var t,n,i;switch(i=e.c.length,i){case 0:return jee(),jft;case 1:return t=c(_tt(new U(e)),45),$7t(t.jd(),t.kd());default:return n=c(xh(e,ke(Eb,lG,45,e.c.length,0,1)),178),new W1e(n)}}function $g(e,t){switch(t.g){case 1:return j4(e.j,(Dl(),EOe));case 2:return j4(e.j,(Dl(),jOe));case 3:return j4(e.j,(Dl(),MOe));case 4:return j4(e.j,(Dl(),AOe));default:return Mt(),Mt(),$s}}function kGt(e,t){var n,i,r;n=$Mt(t,e.e),i=c(Ut(e.g.f,n),15).a,r=e.a.c.length-1,e.a.c.length!=0&&c(Je(e.a,r),296).c==i?(++c(Je(e.a,r),296).a,++c(Je(e.a,r),296).b):Qe(e.a,new Tze(i))}function B0(){B0=Z,_mt=(In(),Qk),Dmt=oh,Cmt=zb,Mmt=D3,Amt=op,Emt=_3,K9e=UC,Nmt=oy,Mue=(Bye(),bmt),Aue=mmt,Z9e=xmt,Nue=Smt,e8e=kmt,t8e=Omt,Y9e=wmt,XJ=vmt,WJ=ymt,BP=jmt,n8e=Tmt,W9e=pmt}function Yet(e,t){var n,i,r,o,a;if(e.e<=t||ODt(e,e.g,t))return e.g;for(o=e.r,i=e.g,a=e.r,r=(o-i)/2+i;i+1<o;)n=cE(e,r,!1),n.b<=r&&n.a<=t?(a=r,o=r):i=r,r=(o-i)/2+i;return a}function OGt(e,t,n){var i;i=Sit(e,t,!0),jet(n,"Recursive Graph Layout",i),kve(t,Y(K(pTe,1),Pt,528,0,[new pg])),pa(t,(In(),cy))||kve(t,Y(K(pTe,1),Pt,528,0,[new uK])),Mxe(e,t,null,n),Zet(n)}function Zet(e){var t;if(e.p==null)throw V(new co("The task has not begun yet."));e.b||(e.k&&(t=(kg(),js(tc(Date.now()),Fg)),e.q=tb(Ha(t,e.o))*1e-9),e.c<e.r&&Qme(e,e.r-e.c),e.b=!0)}function SGt(e){var t,n,i;for(i=new tu,ei(i,new ze(e.j,e.k)),n=new on((!e.a&&(e.a=new Nr(Yu,e,5)),e.a));n.e!=n.i.gc();)t=c(un(n),373),ei(i,new ze(t.a,t.b));return ei(i,new ze(e.b,e.c)),i}function ett(e,t,n,i,r){var o,a,d,b,v,x;if(r)for(b=r.a.length,o=new Up(b),x=(o.b-o.a)*o.c<0?(v0(),bp):new k0(o);x.Ob();)v=c(x.Pb(),15),d=sS(r,v.a),a=new ZHe(e,t,n,i),yrt(a.a,a.b,a.c,a.d,d)}function Sve(e,t){var n;if(xe(e)===xe(t))return!0;if(ae(t,24)){n=c(t,24);try{return e.gc()==n.gc()&&e.Hc(n)}catch(i){if(i=kr(i),ae(i,174)||ae(i,214))return!1;throw V(i)}}return!1}function fie(e,t,n,i,r,o){switch(this.c=e,t.g){case 2:if(e.a.Le(r,n)<0)throw V(new qt(Hxe+r+nct+n));break;case 1:e.a.Le(r,r);break;case 3:e.a.Le(n,n)}this.f=t,this.b=n,this.a=i,this.e=r,this.d=o}function jve(e,t){var n;Qe(e.d,t),n=t.Kf(),e.c?(e.e.a=p.Math.max(e.e.a,n.a),e.e.b+=n.b,e.d.c.length>1&&(e.e.b+=e.a)):(e.e.a+=n.a,e.e.b=p.Math.max(e.e.b,n.b),e.d.c.length>1&&(e.e.a+=e.a))}function jGt(e){var t,n,i,r;switch(r=e.i,t=r.b,i=r.j,n=r.g,r.a.g){case 0:n.a=(e.g.b.o.a-i.a)/2;break;case 1:n.a=t.d.n.a+t.d.a.a;break;case 2:n.a=t.d.n.a+t.d.a.a-i.a;break;case 3:n.b=t.d.n.b+t.d.a.b}}function TGt(e,t,n){var i,r,o;for(r=new Ht(Xt(td(n).a.Jc(),new F));hn(r);)i=c(rn(r),17),!ys(i)&&!(!ys(i)&&i.c.i.c==i.d.i.c)&&(o=Jnt(e,i,n,new wPe),o.c.length>1&&It(t.c,o))}function ttt(e,t,n,i,r){if(i<t||r<n)throw V(new qt("The highx must be bigger then lowx and the highy must be bigger then lowy"));return e.a<t?e.a=t:e.a>i&&(e.a=i),e.b<n?e.b=n:e.b>r&&(e.b=r),e}function EGt(e){if(ae(e,144))return YVt(c(e,144));if(ae(e,236))return nzt(c(e,236));if(ae(e,21))return oGt(c(e,21));throw V(new qt(Cj+jh(new Qo(Y(K(Br,1),Pt,1,5,[e])))))}function CGt(e,t,n,i,r){var o,a,d;for(o=!0,a=0;a<i;a++)o=o&n[a]==0;if(r==0)wc(n,i,e,0,t),a=t;else{for(d=32-r,o=o&n[a]<<d==0,a=0;a<t-1;a++)e[a]=n[a+i]>>>r|n[a+i+1]<<d;e[a]=n[a+i]>>>r,++a}return o}function Tve(e,t,n,i){var r,o,a;if(t.k==(Jt(),Cr)){for(o=new Ht(Xt(vr(t).a.Jc(),new F));hn(o);)if(r=c(rn(o),17),a=r.c.i.k,a==Cr&&e.c.a[r.c.i.c.p]==i&&e.c.a[t.c.p]==n)return!0}return!1}function MGt(e,t,n){var i;n.Tg("YPlacer",1),e.a=de(be(Se(t,(Z4(),hTe)))),e.b=de(be(Se(t,(In(),oh)))),(!t.a&&(t.a=new _e(_n,t,10,11)),t.a).i!=0&&(i=c(Se(t,(zd(),BC)),19),iit(e,i,0)),n.Ug()}function AGt(e,t){var n,i,r,o;return t&=63,n=e.h&z1,t<22?(o=n>>>t,r=e.m>>t|n<<22-t,i=e.l>>t|e.m<<22-t):t<44?(o=0,r=n>>>t-22,i=e.m>>t-22|e.h<<44-t):(o=0,r=0,i=n>>>t-44),nl(i&uu,r&uu,o&z1)}function ntt(e,t,n,i){var r;this.b=i,this.e=e==(ab(),OC),r=t[n],this.d=U2(Sl,[Fe,Yf],[172,30],16,[r.length,r.length],2),this.a=U2(Hn,[Fe,li],[54,30],15,[r.length,r.length],2),this.c=new cve(t,n)}function NGt(e){var t,n,i;for(e.k=new vbe((Ue(),Y(K(Bs,1),uc,64,0,[Bo,Kt,nn,mn,Yt])).length,e.j.c.length),i=new U(e.j);i.a<i.c.c.length;)n=c(G(i),114),t=n.d.j,jt(e.k,t,n);e.e=BVt(E4(e.k))}function itt(e,t){var n,i,r;Er(e.d,t),n=new y2,ci(e.c,t,n),n.f=cne(t.c),n.a=cne(t.d),n.d=(eE(),r=t.c.i.k,r==(Jt(),ur)||r==_h),n.e=(i=t.d.i.k,i==ur||i==_h),n.b=t.c.j==(Ue(),Yt),n.c=t.d.j==nn}function _Gt(e){var t,n,i,r,o;for(o=gi,r=gi,i=new U(Px(e));i.a<i.c.c.length;)n=c(G(i),220),t=n.e.e-n.d.e,n.e==e&&t<r?r=t:t<o&&(o=t);return r==gi&&(r=-1),o==gi&&(o=-1),new Is($e(r),$e(o))}function DGt(e,t){var n,i,r,o;for(n=t.a.o.a,o=new Yh(Vr(t.a).b,t.c,t.f+1),r=new oT(o);r.b<r.d.gc();)if(i=(gn(r.b<r.d.gc()),c(r.d.Xb(r.c=r.b++),26)),i.c.a>=n)return FS(e,t,i.p),!0;return!1}function qx(e,t,n,i){var r,o,a,d,b,v;for(a=n.length,o=0,r=-1,v=qVe((en(t,e.length+1),e.substr(t)),(qZ(),Gke)),d=0;d<a;++d)b=n[d].length,b>o&&MAt(v,qVe(n[d],Gke))&&(r=d,o=b);return r>=0&&(i[0]=t+o),r}function LGt(e,t,n){var i,r,o,a,d,b,v,x;o=e.d.p,d=o.e,b=o.r,e.g=new U_(b),a=e.d.o.c.p,i=a>0?d[a-1]:ke(Wd,qg,9,0,0,1),r=d[a],v=a<d.length-1?d[a+1]:ke(Wd,qg,9,0,0,1),x=t==n-1,x?$ee(e.g,r,v):$ee(e.g,i,r)}function rtt(e){var t;return(e.Db&64)!=0?aie(e):(t=new Lu(B4e),!e.a||Zn(Zn((t.a+=' "',t),e.a),'"'),Zn(Nm(Zn(Nm(Zn(Nm(Zn(Nm((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function stt(e,t,n){var i,r,o,a,d;for(d=rl(e.e.Ah(),t),r=c(e.g,123),i=0,a=0;a<e.i;++a)if(o=r[a],d.$l(o.Jk())){if(i==n)return kv(e,a),Hs(),c(t,69).vk()?o:o.kd();++i}throw V(new qc(DE+n+Sb+i))}function ott(e){var t,n,i;if(t=e.c,t==2||t==7||t==1)return vi(),vi(),hM;for(i=jxe(e),n=null;(t=e.c)!=2&&t!=7&&t!=1;)n||(n=(vi(),vi(),new qT(1)),bb(n,i),i=n),bb(n,jxe(e));return i}function PGt(e,t,n){return e<0||e>n?Ive(e,n,"start index"):t<0||t>n?Ive(t,n,"end index"):tE("end index (%s) must not be less than start index (%s)",Y(K(Br,1),Pt,1,5,[$e(t),$e(e)]))}function ctt(e,t){var n,i,r,o;for(i=0,r=e.length;i<r;i++){o=e[i];try{o[1]?o[0].Sm()&&(t=aAt(t,o)):o[0].Sm()}catch(a){if(a=kr(a),ae(a,81))n=a,Gz(),UNt(ae(n,477)?c(n,477).ie():n);else throw V(a)}}return t}function FS(e,t,n){var i,r,o;for(n!=t.c+t.b.gc()&&GYt(t.a,LRt(t,n-t.c)),o=t.a.c.p,e.a[o]=p.Math.max(e.a[o],t.a.o.a),r=c($(t.a,(Ie(),rC)),16).Jc();r.Ob();)i=c(r.Pb(),70),Me(i,_ce,(Bt(),!0))}function IGt(e,t){var n,i,r;r=sXt(t),Me(t,(Ie(),ple),r),r&&(i=gi,lo(e.f,r)&&(i=c(No(lo(e.f,r)),15).a),n=c(Je(t.g,0),17),Ze(Ye($(n,Ug)))||ci(e,r,$e(p.Math.min(c($(n,Ri),15).a,i))))}function RGt(e){var t,n,i,r;for(n=gi,r=!0,t=0;t<e.a.c.length;t++)ki(c(Je(e.a,t),9),(Ge(),OJ))&&(r=!1,i=c($(c(Je(e.a,t),9),OJ),15).a,n=n<i?n:i);return r&&(n=c(Ve((Ge(),OJ)),15).a),n}function ltt(e,t,n){var i,r,o,a,d;for(t.p=-1,d=rw(t,(Gs(),Yc)).Jc();d.Ob();)for(a=c(d.Pb(),12),r=new U(a.g);r.a<r.c.c.length;)i=c(G(r),17),o=i.d.i,t!=o&&(o.p<0?n.Ec(i):o.p>0&&ltt(e,o,n));t.p=0}function $Gt(e){var t,n,i,r;for(t=Xp(Zn(new Lu("Predicates."),"and"),40),n=!0,r=new oT(e);r.b<r.d.gc();)i=(gn(r.b<r.d.gc()),r.d.Xb(r.c=r.b++)),n||(t.a+=","),t.a+=""+i,n=!1;return(t.a+=")",t).a}function utt(e,t,n){var i,r,o;if(!(n<=t+2))for(r=(n-t)/2|0,i=0;i<r;++i)o=(ht(t+i,e.c.length),c(e.c[t+i],12)),ku(e,t+i,(ht(n-i-1,e.c.length),c(e.c[n-i-1],12))),ht(n-i-1,e.c.length),e.c[n-i-1]=o}function att(e,t){var n,i,r;if(t.c.length!=0){for(n=Let(e,t),r=!1;!n;)IQ(e,t,!0),r=!0,n=Let(e,t);r&&IQ(e,t,!1),i=Gte(t),e.b&&e.b.Fg(i),e.a=OKe(e,(ht(0,t.c.length),c(t.c[0],19))),att(e,i)}}function hie(e,t){var n,i,r;if(i=Dt(e.Ah(),t),n=t-e.gi(),n<0)if(i)if(i.pk())r=e.Fh(i),r>=0?e.hi(r):zve(e,i);else throw V(new qt(J0+i.ve()+AE));else throw V(new qt(Cut+t+Mut));else xa(e,n,i)}function Eve(e){var t,n;if(n=null,t=!1,ae(e,213)&&(t=!0,n=c(e,213).a),t||ae(e,266)&&(t=!0,n=""+c(e,266).a),t||ae(e,482)&&(t=!0,n=""+c(e,482).a),!t)throw V(new xY(V4e));return n}function Cve(e,t,n){var i,r,o,a,d,b;for(b=rl(e.e.Ah(),t),i=0,d=e.i,r=c(e.g,123),a=0;a<e.i;++a)if(o=r[a],b.$l(o.Jk())){if(n==i)return a;++i,d=a+1}if(n==i)return d;throw V(new qc(DE+n+Sb+i))}function BGt(e,t){var n,i,r,o;if(e.f.c.length==0)return null;for(o=new w4,i=new U(e.f);i.a<i.c.c.length;)n=c(G(i),70),r=n.o,o.b=p.Math.max(o.b,r.a),o.a+=r.b;return o.a+=(e.f.c.length-1)*t,o}function zGt(e){var t,n,i,r;for(i=e.a.d.j,r=e.a.d.j,n=new U(e.i.d);n.a<n.c.c.length;)t=c(G(n),70),Me(t,(Ge(),x3),null);i==(Ue(),Kt)||r==Kt?Tg(e,mn,(xf(),Bv),null):Tg(e,Kt,(xf(),Bv),null)}function Mve(e){var t,n,i,r;for(e.e=0,r=Pn(e.f,0);r.b!=r.d.c;)i=c(Dn(r),9),i.p>=e.d.b.c.length&&(t=new dc(e.d),t.p=i.p-1,Qe(e.d.b,t),n=new dc(e.d),n.p=i.p,Qe(e.d.b,n)),zr(i,c(Je(e.d.b,i.p),26))}function FGt(e){var t,n,i,r;for(n=new _i,Ss(n,e.o),i=new zz;n.b!=0;)t=c(n.b==0?null:(gn(n.b!=0),ma(n,n.a.a)),504),r=oot(e,t,!0),r&&Qe(i.a,t);for(;i.a.c.length!=0;)t=c(Swe(i),504),oot(e,t,!1)}function nt(e){var t;this.c=new _i,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=c(Gf(Lh),10),new da(t,c(gf(t,t.length),10),0)),this.g=e.f}function z0(){z0=Z,bTe=new p4(mE,0),Ir=new p4("BOOLEAN",1),Ts=new p4("INT",2),qk=new p4("STRING",3),us=new p4("DOUBLE",4),Vi=new p4("ENUM",5),Fk=new p4("ENUMSET",6),Ph=new p4("OBJECT",7)}function G7(e,t){var n,i,r,o,a;i=p.Math.min(e.c,t.c),o=p.Math.min(e.d,t.d),r=p.Math.max(e.c+e.b,t.c+t.b),a=p.Math.max(e.d+e.a,t.d+t.a),r<i&&(n=i,i=r,r=n),a<o&&(n=o,o=a,a=n),WFe(e,i,o,r-i,a-o)}function ftt(e,t){var n,i;if(e.f){for(;t.Ob();)if(n=c(t.Pb(),76),i=n.Jk(),ae(i,104)&&(c(i,20).Bb&rc)!=0&&(!e.e||i.nk()!=m9||i.Jj()!=0)&&n.kd()!=null)return t.Ub(),!0;return!1}else return t.Ob()}function htt(e,t){var n,i;if(e.f){for(;t.Sb();)if(n=c(t.Ub(),76),i=n.Jk(),ae(i,104)&&(c(i,20).Bb&rc)!=0&&(!e.e||i.nk()!=m9||i.Jj()!=0)&&n.kd()!=null)return t.Pb(),!0;return!1}else return t.Sb()}function Ll(){Ll=Z,wEe=Y(K(tt,1),Fe,2,6,[lke,tP,lU,Uat,uU,Doe,WG]),mEe=Y(K(tt,1),Fe,2,6,[lke,"empty",tP,eP,"elementOnly"]),vEe=Y(K(tt,1),Fe,2,6,[lke,"preserve","replace",th]),bs=new oqe}function Ave(e,t,n){var i,r,o;if(t!=n){i=t;do Oi(e,i.c),r=i.e,r&&(o=i.d,F2(e,o.b,o.d),Oi(e,r.n),i=Vr(r));while(r);i=n;do Qr(e,i.c),r=i.e,r&&(o=i.d,Nze(e,o.b,o.d),Qr(e,r.n),i=Vr(r));while(r)}}function die(e,t,n,i){var r,o,a,d,b;if(i.f.c+i.i.c==0)for(a=e.a[e.c],d=0,b=a.length;d<b;++d)o=a[d],ci(i,o,new rWe(e,o,n));return r=c(No(lo(i.f,t)),674),r.b=0,r.c=r.f,r.c==0||Nt(c(Je(r.a,r.b),296)),r}function dtt(e){var t;this.j=new He,this.f=new Tr,this.b=(t=c(Gf(Bs),10),new da(t,c(gf(t,t.length),10),0)),this.d=ke(Hn,li,30,(Ue(),Y(K(Bs,1),uc,64,0,[Bo,Kt,nn,mn,Yt])).length,15,1),this.g=e}function ek(){ek=Z,Fj=new CT("MEDIAN_LAYER",0),YE=new CT("TAIL_LAYER",1),zj=new CT("HEAD_LAYER",2),zv=new CT("SPACE_EFFICIENT_LAYER",3),h3=new CT("WIDEST_LAYER",4),f3=new CT("CENTER_LAYER",5)}function Nve(e,t,n){var i,r,o;if(!e.b[t.g]){for(e.b[t.g]=!0,i=n,!i&&(i=new hD),ei(i.b,t),o=e.a[t.g].Jc();o.Ob();)r=c(o.Pb(),65),r.b!=t&&Nve(e,r.b,i),r.c!=t&&Nve(e,r.c,i),ei(i.a,r);return i}return null}function qGt(e){switch(e.g){case 0:case 1:case 2:return Ue(),Kt;case 3:case 4:case 5:return Ue(),mn;case 6:case 7:case 8:return Ue(),Yt;case 9:case 10:case 11:return Ue(),nn;default:return Ue(),Bo}}function HGt(e,t){var n;return e.c.length==0?!1:(n=pYe((ht(0,e.c.length),c(e.c[0],17)).c.i),Ru(),n==(pv(),S3)||n==O3?!0:Mx(Qc(new Tt(null,new Et(e,16)),new g8),new bDe(t)))}function gie(e,t){if(ae(t,209))return dTt(e,c(t,19));if(ae(t,196))return gTt(e,c(t,127));if(ae(t,446))return hTt(e,c(t,171));throw V(new qt(Cj+jh(new Qo(Y(K(Br,1),Pt,1,5,[t])))))}function gtt(e,t,n){var i,r;if(this.f=e,i=c(Ut(e.b,t),263),r=i?i.a:0,Wbe(n,r),n>=(r/2|0))for(this.e=i?i.c:null,this.d=r;n++<r;)_Ve(this);else for(this.c=i?i.b:null;n-- >0;)vme(this);this.b=t,this.a=null}function QGt(e,t){var n,i;t.a?bXt(e,t):(n=c(DY(e.b,t.b),60),n&&n==e.a[t.b.f]&&n.a&&n.a!=t.b.a&&n.c.Ec(t.b),i=c(_Y(e.b,t.b),60),i&&e.a[i.f]==t.b&&i.a&&i.a!=t.b.a&&t.b.c.Ec(i),EZ(e.b,t.b))}function ptt(e,t){var n,i;if(n=c(eo(e.b,t),129),c(c(Ei(e.r,t),24),85).dc()){n.n.b=0,n.n.c=0;return}n.n.b=e.C.b,n.n.c=e.C.c,e.A.Gc((Tu(),qb))&&Jit(e,t),i=jFt(e,t),jie(e,t)==(Rx(),lp)&&(i+=2*e.w),n.a.a=i}function btt(e,t){var n,i;if(n=c(eo(e.b,t),129),c(c(Ei(e.r,t),24),85).dc()){n.n.d=0,n.n.a=0;return}n.n.d=e.C.d,n.n.a=e.C.a,e.A.Gc((Tu(),qb))&&Vit(e,t),i=SFt(e,t),jie(e,t)==(Rx(),lp)&&(i+=2*e.w),n.a.b=i}function GGt(e,t){var n,i,r,o;for(o=new He,i=new U(t);i.a<i.c.c.length;)n=c(G(i),68),Qe(o,new rge(n,!0)),Qe(o,new rge(n,!1));r=new vQe(e),r.a.a.$b(),RGe(o,e.b,new Qo(Y(K(eht,1),Pt,690,0,[r])))}function UGt(e,t){var n,i,r;t.Tg("End label pre-processing",1),n=de(be($(e,(Ge(),k3)))),i=de(be($(e,Kv))),r=mx(c($(e,Vu),87)),hr(jo(new Tt(null,new Et(e.b,16)),new t8),new LFe(n,i,r)),t.Ug()}function _ve(e,t){var n,i,r;if(!e.d[t.p]){for(e.d[t.p]=!0,e.a[t.p]=!0,i=new Ht(Xt(Fi(t).a.Jc(),new F));hn(i);)n=c(rn(i),17),!ys(n)&&(r=n.d.i,e.a[r.p]?Qe(e.b,n):_ve(e,r));e.a[t.p]=!1}}function tk(e,t,n){var i;switch(i=0,c($(t,(Ge(),$o)),166).g){case 2:i=2*-n+e.a,++e.a;break;case 1:i=-n;break;case 3:i=n;break;case 4:i=2*n+e.b,++e.b}return ki(t,(Ie(),Ri))&&(i+=c($(t,Ri),15).a),i}function mtt(e,t,n){var i,r,o;for(n.yc(t,e),Qe(e.n,t),o=e.p.yg(t),t.j==e.p.zg()?tYe(e.e,o):tYe(e.j,o),Eq(e),r=Pd(wa(Y(K(Ea,1),Pt,22,0,[new T6(t),new t4(t)])));hn(r);)i=c(rn(r),12),n._b(i)||mtt(e,i,n)}function JGt(e,t,n){var i,r,o;for(n.Tg("Processor set neighbors",1),e.a=t.b.b==0?1:t.b.b,r=null,i=Pn(t.b,0);!r&&i.b!=i.d.c;)o=c(Dn(i),41),Ze(Ye($(o,(Ii(),sp))))&&(r=o);r&&Eit(e,new w1(r),n),n.Ug()}function Dve(e){var t,n,i;return n=c(Se(e,(In(),zb)),24),n.Gc((Tu(),ay))?(i=c(Se(e,op),24),t=new Ms(c(Se(e,D3),8)),i.Gc((lu(),b9))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t):new fs}function Lve(e){var t,n,i;if(!e.b){for(i=new yB,n=new x4(oE(e));n.e!=n.i.gc();)t=c(Nne(n),20),(t.Bb&rc)!=0&&Ln(i,t);av(i),e.b=new bx((c(ce(De((O0(),Gt).o),8),20),i.i),i.g),iu(e).b&=-9}return e.b}function wv(e){var t,n,i;for(n=e.length,i=0;i<n&&(en(i,e.length),e.charCodeAt(i)<=32);)++i;for(t=n;t>i&&(en(t-1,e.length),e.charCodeAt(t-1)<=32);)--t;return i>0||t<n?(hs(i,t,e.length),e.substr(i,t-i)):e}function VGt(e,t){var n,i,r,o,a,d,b,v;b=c(z7(E4(t.k),ke(Bs,uc,64,2,0,1)),128),v=t.g,n=oUe(t,b[0]),r=sUe(t,b[1]),i=Une(e,v,n,r),o=oUe(t,b[1]),d=sUe(t,b[0]),a=Une(e,v,o,d),i<=a?(t.a=n,t.c=r):(t.a=o,t.c=d)}function wtt(e,t,n,i,r){var o,a,d,b,v;if(t)for(d=t.Jc();d.Ob();)for(a=c(d.Pb(),9),v=Dye(a,(Gs(),Yc),n).Jc();v.Ob();)b=c(v.Pb(),12),o=c(No(lo(r.f,b)),117),o||(o=new DD(e.d),It(i.c,o),mtt(o,b,r))}function U7(e){var t;Mt();var n,i,r,o,a,d;if(ae(e,59))for(o=0,r=e.gc()-1;o<r;++o,--r)t=e.Xb(o),e.fd(o,e.Xb(r)),e.fd(r,t);else for(n=e.cd(),a=e.dd(e.gc());n.Tb()<a.Vb();)i=n.Pb(),d=a.Ub(),n.Wb(d),a.Wb(i)}function DQ(e,t){var n,i,r,o,a,d;for(d=0,o=new xx,T0(o,t);o.b!=o.c;)for(a=c(M4(o),221),d+=AZe(a.d,a.e),r=new U(a.b);r.a<r.c.c.length;)i=c(G(r),37),n=c(Je(e.b,i.p),221),n.s||(d+=DQ(e,n));return d}function vtt(e,t,n){var i,r;yWe(this),t==(Um(),rp)?Er(this.r,e.c):Er(this.w,e.c),n==rp?Er(this.r,e.d):Er(this.w,e.d),itt(this,e),i=cne(e.c),r=cne(e.d),Fet(this,i,r,r),this.o=(eE(),p.Math.abs(i-r)<.2)}function ytt(e,t,n){var i,r,o,a,d,b;if(d=c(Wt(e.a,8),2014),d!=null)for(r=d,o=0,a=r.length;o<a;++o)null.Sm();i=n,(e.a.Db&1)==0&&(b=new kHe(e,n,t),i.bj(b)),ae(i,683)?c(i,683).dj(e.a):i.aj()==e.a&&i.cj(null)}function XGt(){var e;return myt?c(qS((w0(),nf),Tb),2023):(vtn(),e=c(ae(Mc((w0(),nf),Tb),589)?Mc(nf,Tb):new $He,589),myt=!0,rnn(e),$nn(e),ci((V1e(),rEe),e,new AB),Vne(e),uo(nf,Tb,e),e)}function WGt(e,t,n,i){var r;return r=qx(e,n,Y(K(tt,1),Fe,2,6,[Sre,jre,Tre,Ere,Cre,Mre,Are]),t),r<0&&(r=qx(e,n,Y(K(tt,1),Fe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),t)),r<0?!1:(i.d=r,!0)}function KGt(e,t,n,i){var r;return r=qx(e,n,Y(K(tt,1),Fe,2,6,[Sre,jre,Tre,Ere,Cre,Mre,Are]),t),r<0&&(r=qx(e,n,Y(K(tt,1),Fe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),t)),r<0?!1:(i.d=r,!0)}function bl(e,t,n){var i,r,o,a;if(a=e.b.Ae(t),r=(i=e.a.get(a),i??ke(Br,Pt,1,0,5,1)),r.length==0)e.a.set(a,r);else if(o=yKe(e,t,r),o)return o.ld(n);return mr(r,r.length,new lF(t,n)),++e.c,++e.b.g,null}function YGt(e){var t,n,i;for(KJt(e),i=new He,n=new U(e.a.a.b);n.a<n.c.c.length;)t=c(G(n),84),Qe(i,new sge(t,!0)),Qe(i,new sge(t,!1));QFt(e.c),lD(i,e.b,new Qo(Y(K(aP,1),Pt,378,0,[e.c]))),hJt(e)}function sL(e,t){var n,i,r;for(r=new He,i=new U(e.c.a.b);i.a<i.c.c.length;)n=c(G(i),60),t.Lb(n)&&(Qe(r,new ige(n,!0)),Qe(r,new ige(n,!1)));HFt(e.e),RGe(r,e.d,new Qo(Y(K(eht,1),Pt,690,0,[e.e])))}function ZGt(e){var t,n,i,r;for(n=new yn,r=new U(e.d);r.a<r.c.c.length;)i=c(G(r),190),t=c(i.mf((Ie(),Ak)),17),lo(n.f,t)||ci(n,t,new uQe(t)),Qe(c(No(lo(n.f,t)),458).b,i);return new ql(new m1(n))}function eUt(e,t){var n,i,r,o,a;for(i=new VGe(e.j.c.length),n=null,o=new U(e.j);o.a<o.c.c.length;)r=c(G(o),12),r.j!=n&&(i.b==i.c||qnt(i,n,t),Ibe(i),n=r.j),a=xnt(r),a&&Abe(i,a);i.b==i.c||qnt(i,n,t)}function tUt(e,t){var n,i,r;for(i=new os(e.b,0);i.b<i.d.gc();)n=(gn(i.b<i.d.gc()),c(i.d.Xb(i.c=i.b++),70)),r=c($(n,(Ge(),bd)),281),r==(yh(),uy)&&(nu(i),Qe(t.b,n),ki(n,(Ie(),Ak))||Me(n,Ak,e))}function nUt(e){var t,n,i,r,o;for(t=Jf(new Ht(Xt(Fi(e).a.Jc(),new F))),r=new Ht(Xt(vr(e).a.Jc(),new F));hn(r);)i=c(rn(r),17),n=i.c.i,o=Jf(new Ht(Xt(Fi(n).a.Jc(),new F))),t=p.Math.max(t,o);return $e(t)}function Pve(e,t,n){var i,r,o;i=c(Se(e,(In(),JP)),24),r=0,o=0,t.a>n.a&&(i.Gc((gb(),FC))?r=(t.a-n.a)/2:i.Gc(qC)&&(r=t.a-n.a)),t.b>n.b&&(i.Gc((gb(),QC))?o=(t.b-n.b)/2:i.Gc(HC)&&(o=t.b-n.b)),bve(e,r,o)}function xtt(e,t,n,i,r,o,a,d,b,v,x,T,A){ae(e.Cb,89)&&vv(iu(c(e.Cb,89)),4),Jc(e,n),e.f=a,CS(e,d),AS(e,b),ES(e,v),MS(e,x),Ig(e,T),NS(e,A),Pg(e,!0),Ng(e,r),e.Xk(o),fb(e,t),i!=null&&(e.i=null,AH(e,i))}function Ive(e,t,n){if(e<0)return tE(_ot,Y(K(Br,1),Pt,1,5,[n,$e(e)]));if(t<0)throw V(new qt(Dot+t));return tE("%s (%s) must not be greater than size (%s)",Y(K(Br,1),Pt,1,5,[n,$e(e),$e(t)]))}function Rve(e,t,n,i,r,o){var a,d,b,v;if(a=i-n,a<7){VBt(t,n,i,o);return}if(b=n+r,d=i+r,v=b+(d-b>>1),Rve(t,e,b,v,-r,o),Rve(t,e,v,d,-r,o),o.Le(e[v-1],e[v])<=0){for(;n<i;)mr(t,n++,e[b++]);return}oBt(e,b,v,d,t,n,i,o)}function iUt(e,t){var n,i,r,o,a,d,b;for(b=t.d,r=t.b.j,d=new U(b);d.a<d.c.c.length;)for(a=c(G(d),108),o=ke(Sl,Yf,30,r.c.length,16,1),ci(e.b,a,o),n=a.a.d.p-1,i=a.c.d.p;n!=i;)n=(n+1)%r.c.length,o[n]=!0}function rUt(e,t){if(Dme(),ki(e,(Ie(),Ri))&&ki(t,Ri))return hc(c($(e,Ri),15).a,c($(t,Ri),15).a);throw V(new u4("The BF model order layer assigner requires all real nodes to have a model order."))}function sUt(e,t){if(Lme(),ki(e,(Ie(),Ri))&&ki(t,Ri))return hc(c($(e,Ri),15).a,c($(t,Ri),15).a);throw V(new u4("The DF model order layer assigner requires all real nodes to have a model order."))}function oUt(e,t){for(e.r=new DD(e.p),ZK(e.r,e),Ss(e.r.j,e.j),xu(e.j),ei(e.j,t),ei(e.r.e,t),Eq(e),Eq(e.r);e.f.c.length!=0;)HBe(c(Je(e.f,0),135));for(;e.k.c.length!=0;)HBe(c(Je(e.k,0),135));return e.r}function pie(e,t,n){var i,r,o;if(r=Dt(e.Ah(),t),i=t-e.gi(),i<0)if(r)if(r.pk())o=e.Fh(r),o>=0?e.$h(o,n):pye(e,r,n);else throw V(new qt(J0+r.ve()+AE));else throw V(new qt(Cut+t+Mut));else ka(e,i,r,n)}function ktt(e){var t,n;if(e.f){for(;e.n>0;){if(t=c(e.k.Xb(e.n-1),76),n=t.Jk(),ae(n,104)&&(c(n,20).Bb&rc)!=0&&(!e.e||n.nk()!=m9||n.Jj()!=0)&&t.kd()!=null)return!0;--e.n}return!1}else return e.n>0}function Ott(e){var t,n,i,r;if(n=c(e,52).Yh(),n)try{if(i=null,t=qS((w0(),nf),mrt(YBt(n))),t&&(r=t.Zh(),r&&(i=r.Dl(N9t(n.e)))),i&&i!=e)return Ott(i)}catch(o){if(o=kr(o),!ae(o,63))throw V(o)}return e}function cUt(e,t,n){var i,r,o;n.Tg("Remove overlaps",1),n.bh(t,G5e),i=c(Se(t,(Sx(),E3)),19),e.f=i,e.a=Dne(c(Se(t,(B0(),BP)),304)),r=be(Se(t,(In(),oh))),ox(e,(zt(r),r)),o=xv(i),qst(e,t,o,n),n.bh(t,qG)}function lUt(e){var t,n,i;if(Ze(Ye(Se(e,(In(),XP))))){for(i=new He,n=new Ht(Xt(I1(e).a.Jc(),new F));hn(n);)t=c(rn(n),74),lw(t)&&Ze(Ye(Se(t,Sae)))&&It(i.c,t);return i}else return Mt(),Mt(),$s}function Stt(e){if(!e)return YPe(),Aft;var t=e.valueOf?e.valueOf():e;if(t!==e){var n=ece[typeof t];return n?n(t):_we(typeof t)}else return e instanceof Array||e instanceof p.Array?new n_(e):new W5(e)}function jtt(e,t,n){var i,r,o;switch(o=e.o,i=c(eo(e.p,n),256),r=i.i,r.b=V7(i),r.a=J7(i),r.b=p.Math.max(r.b,o.a),r.b>o.a&&!t&&(r.b=o.a),r.c=-(r.b-o.a)/2,n.g){case 1:r.d=-r.a;break;case 3:r.d=o.b}$ie(i),Bie(i)}function Ttt(e,t,n){var i,r,o;switch(o=e.o,i=c(eo(e.p,n),256),r=i.i,r.b=V7(i),r.a=J7(i),r.a=p.Math.max(r.a,o.b),r.a>o.b&&!t&&(r.a=o.b),r.d=-(r.a-o.b)/2,n.g){case 4:r.c=-r.b;break;case 2:r.c=o.a}$ie(i),Bie(i)}function uUt(e,t){var n,i,r;return ae(t.g,9)&&c(t.g,9).k==(Jt(),Ar)?sr:(r=I4(t),r?p.Math.max(0,e.b/2-.5):(n=Ex(t),n?(i=de(be(dv(n,(Ge(),Ib)))),p.Math.max(0,i/2-.5)):sr))}function aUt(e,t){var n,i,r;return ae(t.g,9)&&c(t.g,9).k==(Jt(),Ar)?sr:(r=I4(t),r?p.Math.max(0,e.b/2-.5):(n=Ex(t),n?(i=de(be(dv(n,(Ge(),Ib)))),p.Math.max(0,i/2-.5)):sr))}function fUt(e,t){var n,i,r,o,a;if(!t.dc()){if(r=c(t.Xb(0),134),t.gc()==1){hit(e,r,r,1,0,t);return}for(n=1;n<t.gc();)(r.j||!r.o)&&(o=vqt(t,n),o&&(i=c(o.a,15).a,a=c(o.b,134),hit(e,r,a,n,i,t),n=i+1,r=a))}}function hUt(e){var t,n,i,r,o,a;for(a=new ql(e.d),Rr(a,new OA),t=(JQ(),Y(K(p6e,1),Pe,277,0,[Rce,zce,Ice,Hce,Bce,$ce,qce,Fce])),n=0,o=new U(a);o.a<o.c.c.length;)r=c(G(o),108),i=t[n%t.length],YUt(r,i),++n}function $ve(e,t){var n,i,r,o,a,d,b,v,x,T;return x=null,T=e,a=N1(T,"x"),n=new gLe(t),EVe(n.a,a),d=N1(T,"y"),i=new pLe(t),CVe(i.a,d),b=N1(T,woe),r=new bLe(t),MVe(r.a,b),v=N1(T,moe),o=new mLe(t),x=(AVe(o.a,v),v),x}function vv(e,t){Qit(e,t),(e.b&1)!=0&&(e.a.a=null),(e.b&2)!=0&&(e.a.f=null),(e.b&4)!=0&&(e.a.g=null,e.a.i=null),(e.b&16)!=0&&(e.a.d=null,e.a.e=null),(e.b&8)!=0&&(e.a.b=null),(e.b&32)!=0&&(e.a.j=null,e.a.c=null)}function dUt(e,t){var n,i,r;if(r=0,t.length>0)try{r=Hu(t,ls,gi)}catch(o){throw o=kr(o),ae(o,133)?(i=o,V(new hH(i))):V(o)}return n=(!e.a&&(e.a=new oY(e)),e.a),r<n.i&&r>=0?c(ce(n,r),57):null}function gUt(e,t){if(e<0)return tE(_ot,Y(K(Br,1),Pt,1,5,["index",$e(e)]));if(t<0)throw V(new qt(Dot+t));return tE("%s (%s) must be less than size (%s)",Y(K(Br,1),Pt,1,5,["index",$e(e),$e(t)]))}function pUt(e){var t,n,i,r,o;if(e==null)return ml;for(o=new cb(Xc,"[","]"),n=e,i=0,r=n.length;i<r;++i)t=n[i],o.a?Zn(o.a,o.b):o.a=new Lu(o.d),zT(o.a,""+t);return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}function bUt(e){var t,n,i,r,o;if(e==null)return ml;for(o=new cb(Xc,"[","]"),n=e,i=0,r=n.length;i<r;++i)t=n[i],o.a?Zn(o.a,o.b):o.a=new Lu(o.d),zT(o.a,""+t);return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}function mUt(e){var t,n,i,r,o;if(e==null)return ml;for(o=new cb(Xc,"[","]"),n=e,i=0,r=n.length;i<r;++i)t=n[i],o.a?Zn(o.a,o.b):o.a=new Lu(o.d),zT(o.a,""+t);return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}function wUt(e){var t,n,i,r,o;if(e==null)return ml;for(o=new cb(Xc,"[","]"),n=e,i=0,r=n.length;i<r;++i)t=n[i],o.a?Zn(o.a,o.b):o.a=new Lu(o.d),zT(o.a,""+t);return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}function Ett(e,t){var n,i,r,o,a,d;for(n=e.b.c.length,r=Je(e.b,t);t*2+1<n&&(i=(o=2*t+1,a=o+1,d=o,a<n&&e.a.Le(Je(e.b,a),Je(e.b,o))<0&&(d=a),d),!(e.a.Le(r,Je(e.b,i))<0));)ku(e.b,t,Je(e.b,i)),t=i;ku(e.b,t,r)}function bie(e,t,n){var i,r;return i=n.d,r=n.e,e.g[i.d]<=e.i[t.d]&&e.i[t.d]<=e.i[i.d]&&e.g[r.d]<=e.i[t.d]&&e.i[t.d]<=e.i[r.d]?!(e.i[i.d]<e.i[r.d]):e.i[i.d]<e.i[r.d]}function vUt(e,t){var n;if(n=c($(t,(Ge(),hC)),302),n!=e)throw V(new u4("The hierarchy aware processor "+n+" in child node "+t+" is only allowed if the root node specifies the same hierarchical processor."))}function yUt(e,t){var n,i,r,o,a;for(i=(!t.s&&(t.s=new _e(Ol,t,21,17)),t.s),o=null,r=0,a=i.i;r<a;++r)switch(n=c(ce(i,r),182),Hm(ao(e,n))){case 2:case 3:!o&&(o=new He),It(o.c,n)}return o||(Mt(),Mt(),$s)}function Ctt(e,t,n){var i,r,o,a,d,b;for(b=sr,o=new U(eit(e.b));o.a<o.c.c.length;)for(r=c(G(o),180),d=new U(eit(t.b));d.a<d.c.c.length;)a=c(G(d),180),i=c$t(r.a,r.b,a.a,a.b,n),b=p.Math.min(b,i);return b}function $r(e,t){if(!t)throw V(new i4);if(e.j=t,!e.d)switch(e.j.g){case 1:e.a.a=e.o.a/2,e.a.b=0;break;case 2:e.a.a=e.o.a,e.a.b=e.o.b/2;break;case 3:e.a.a=e.o.a/2,e.a.b=e.o.b;break;case 4:e.a.a=0,e.a.b=e.o.b/2}}function xUt(e){var t,n,i,r,o,a,d;for(i=0,n=new U(e.b);n.a<n.c.c.length;)for(t=c(G(n),26),o=new U(t.a);o.a<o.c.c.length;)for(r=c(G(o),9),r.p=i++,d=new U(r.j);d.a<d.c.c.length;)a=c(G(d),12),a.p=i++}function kUt(e,t){Pu();var n,i,r,o,a,d;for(n=null,a=t.Jc();a.Ob();)o=c(a.Pb(),134),!o.o&&(i=ETt(o.a),r=BMt(o.a),d=new sE(i,r,null,c(o.d.a.ec().Jc().Pb(),17)),Qe(d.c,o.a),It(e.c,d),n&&Qe(n.d,d),n=d)}function OUt(e){var t,n,i,r,o,a;for(a=N7(e.d,e.e),o=a.Jc();o.Ob();)for(r=c(o.Pb(),12),i=e.e==(Ue(),Yt)?r.e:r.g,n=new U(i);n.a<n.c.c.length;)t=c(G(n),17),!ys(t)&&t.c.i.c!=t.d.i.c&&(kGt(e,t),++e.f,++e.c)}function Mtt(e,t){var n,i;if(t.dc())return Mt(),Mt(),$s;for(i=new He,Qe(i,$e(ls)),n=1;n<e.f;++n)e.a==null&&Hit(e),e.a[n]&&Qe(i,$e(n));return i.c.length==1?(Mt(),Mt(),$s):(Qe(i,$e(gi)),OYt(t,i))}function SUt(e,t){var n,i,r,o,a,d,b;a=t.c.i.k!=(Jt(),ur),b=a?t.d:t.c,n=Pqt(t,b).i,r=c(Ut(e.k,b),126),i=e.i[n.p].a,TFe(b.i)<(n.c?Lo(n.c.a,n,0):-1)?(o=r,d=i):(o=i,d=r),Of(uf(ff(hf(af(new Ra,0),4),o),d))}function Att(e,t,n){var i,r,o,a,d,b;if(n)for(r=n.a.length,i=new Up(r),d=(i.b-i.a)*i.c<0?(v0(),bp):new k0(i);d.Ob();)a=c(d.Pb(),15),b=Hne(e,nk(rv(n,a.a))),b&&(o=(!t.b&&(t.b=new Ct(xn,t,4,7)),t.b),Ln(o,b))}function Ntt(e,t,n){var i,r,o,a,d,b;if(n)for(r=n.a.length,i=new Up(r),d=(i.b-i.a)*i.c<0?(v0(),bp):new k0(i);d.Ob();)a=c(d.Pb(),15),b=Hne(e,nk(rv(n,a.a))),b&&(o=(!t.c&&(t.c=new Ct(xn,t,5,8)),t.c),Ln(o,b))}function oL(e,t,n){var i,r;i=t.a&e.f,t.b=e.b[i],e.b[i]=t,r=t.f&e.f,t.d=e.c[r],e.c[r]=t,n?(t.e=n.e,t.e?t.e.c=t:e.a=t,t.c=n.c,t.c?t.c.e=t:e.e=t):(t.e=e.e,t.c=null,e.e?e.e.c=t:e.a=t,e.e=t),++e.i,++e.g}function _tt(e){var t,n,i;if(t=e.Pb(),!e.Ob())return t;for(i=Ec(Zn(new g0,"expected one element but was: <"),t),n=0;n<4&&e.Ob();n++)Ec((i.a+=Xc,i),e.Pb());throw e.Ob()&&(i.a+=", ..."),i.a+=">",V(new qt(i.a))}function jUt(e){var t,n;return n=-e.a,t=Y(K(_a,1),cd,30,15,[43,48,48,48,48]),n<0&&(t[0]=45,n=-n),t[1]=t[1]+((n/60|0)/10|0)&Dr,t[2]=t[2]+(n/60|0)%10&Dr,t[3]=t[3]+(n%60/10|0)&Dr,t[4]=t[4]+n%10&Dr,nd(t,0,t.length)}function Bve(e){var t,n,i,r;for(e.g=new P7(c(Bn(Bs),299)),i=0,n=(Ue(),Kt),t=0;t<e.j.c.length;t++)r=c(Je(e.j,t),12),r.j!=n&&(i!=t&&A4(e.g,n,new Is($e(i),$e(t))),n=r.j,i=t);A4(e.g,n,new Is($e(i),$e(t)))}function zve(e,t){var n,i,r;if(r=Jx((Ll(),bs),e.Ah(),t),r)Hs(),c(r,69).vk()||(r=P4(ao(bs,r))),i=(n=e.Fh(r),c(n>=0?e.Ih(n,!0,!0):uw(e,r,!0),164)),c(i,222).Xl(t);else throw V(new qt(J0+t.ve()+AE))}function Fve(e){var t,n;return e>-0x800000000000&&e<0x800000000000?e==0?0:(t=e<0,t&&(e=-e),n=ks(p.Math.floor(p.Math.log(e)/.6931471805599453)),(!t||e!=p.Math.pow(2,n))&&++n,n):$Ke(tc(e))}function TUt(e){var t,n,i,r,o,a,d;for(o=new Ad,n=new U(e);n.a<n.c.c.length;)t=c(G(n),135),a=t.a,d=t.b,!(o.a._b(a)||o.a._b(d))&&(r=a,i=d,a.e.b+a.j.b>2&&d.e.b+d.j.b<=2&&(r=d,i=a),o.a.yc(r,o),r.q=i);return o}function EUt(e,t,n){n.Tg("Eades radial",1),n.bh(t,qG),e.d=c(Se(t,(Sx(),E3)),19),e.c=de(be(Se(t,(B0(),WJ)))),e.e=Dne(c(Se(t,BP),304)),e.a=pzt(c(Se(t,n8e),431)),e.b=MHt(c(Se(t,Y9e),355)),dHt(e),n.bh(t,qG)}function CUt(e,t){if(t.Tg("Target Width Setter",1),pa(e,(Th(),Que)))ri(e,(Fd(),ty),be(Se(e,Que)));else throw V(new Uh("A target width has to be set if the TargetWidthWidthApproximator should be used."));t.Ug()}function Dtt(e,t){var n,i,r;return i=new Oh(e),nc(i,t),Me(i,(Ie(),fJ),t),Me(i,(Ge(),ar),(es(),kc)),Me(i,pd,(Bd(),lV)),pu(i,(Jt(),Ar)),n=new mc,Do(n,i),$r(n,(Ue(),Yt)),r=new mc,Do(r,i),$r(r,nn),i}function Ltt(e,t){var n,i,r,o,a;for(e.c[t.p]=!0,Qe(e.a,t),a=new U(t.j);a.a<a.c.c.length;)for(o=c(G(a),12),i=new wh(o.b);_o(i.a)||_o(i.b);)n=c(_o(i.a)?G(i.a):G(i.b),17),r=Lzt(o,n).i,e.c[r.p]||Ltt(e,r)}function Ptt(e){var t,n,i,r,o,a,d;for(a=0,n=new on((!e.a&&(e.a=new _e(_n,e,10,11)),e.a));n.e!=n.i.gc();)t=c(un(n),19),d=t.g,r=t.f,i=p.Math.sqrt(d*d+r*r),a=p.Math.max(i,a),o=Ptt(t),a=p.Math.max(o,a);return a}function Gl(){Gl=Z,ap=new IT("OUTSIDE",0),W1=new IT("INSIDE",1),nI=new IT("NEXT_TO_PORT_IF_POSSIBLE",2),ZC=new IT("ALWAYS_SAME_SIDE",3),YC=new IT("ALWAYS_OTHER_SAME_SIDE",4),Vk=new IT("SPACE_EFFICIENT",5)}function Itt(e,t,n){var i,r,o,a,d,b;return i=eLt(e,(r=(b0(),o=new fT,o),n&&qQ(r,n),r),t),dS(i,j1(t,hd)),CQ(t,i),LJt(t,i),$ve(t,i),a=t,d=Vm(a,"ports"),b=new z$e(e,i),Xnt(b.a,b.b,d),Xte(e,t,i),ZRt(e,t,i),i}function MUt(e){var t,n;return n=-e.a,t=Y(K(_a,1),cd,30,15,[43,48,48,58,48,48]),n<0&&(t[0]=45,n=-n),t[1]=t[1]+((n/60|0)/10|0)&Dr,t[2]=t[2]+(n/60|0)%10&Dr,t[4]=t[4]+(n%60/10|0)&Dr,t[5]=t[5]+n%10&Dr,nd(t,0,t.length)}function AUt(e){var t,n,i,r,o;if(e==null)return ml;for(o=new cb(Xc,"[","]"),n=e,i=0,r=n.length;i<r;++i)t=n[i],o.a?Zn(o.a,o.b):o.a=new Lu(o.d),zT(o.a,""+YT(t));return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}function qve(e,t){var n,i,r;for(r=gi,i=new U(Px(t));i.a<i.c.c.length;)n=c(G(i),220),n.f&&!e.c[n.c]&&(e.c[n.c]=!0,r=p.Math.min(r,qve(e,ZH(n,t))));return e.i[t.d]=e.j,e.g[t.d]=p.Math.min(r,e.j++),e.g[t.d]}function Rtt(e,t){var n,i,r;for(r=c(c(Ei(e.r,t),24),85).Jc();r.Ob();)i=c(r.Pb(),116),i.e.b=(n=i.b,n.nf((In(),au))?n.$f()==(Ue(),Kt)?-n.Kf().b-de(be(n.mf(au))):de(be(n.mf(au))):n.$f()==(Ue(),Kt)?-n.Kf().b:0)}function Hve(e){var t,n,i,r,o;t=e.a,n=e.b,r=e.c,i=new ze(n.e.a+n.f.a/2,n.e.b+n.f.b/2),o=new ze(r.e.a+r.f.a/2,r.e.b+r.f.b/2),rr(t,i,t.a,t.a.a),rr(t,o,t.c.b,t.c),qet(i,c(bc(t,1),8),e.b.f),qet(o,c(bc(t,t.b-2),8),e.c.f)}function $tt(e,t){var n,i,r,o;if(r=(!t.e&&(t.e=new Ct($i,t,7,4)),t.e).i,r==0)return t.i;for(i=0,o=0,n=0;n<r;n++)o=$tt(e,c(ce(eS(c(ce((!t.e&&(t.e=new Ct($i,t,7,4)),t.e),n),74)),0),19)),i=o<i?o:i;return i+t.i}function nk(e){var t,n;if(n=!1,ae(e,213))return n=!0,c(e,213).a;if(!n&&ae(e,266)&&(t=c(e,266).a%1==0,t))return n=!0,$e(K8t(c(e,266).a));throw V(new Jh("Id must be a string or an integer: '"+e+"'."))}function NUt(e,t){var n,i,r,o,a,d;for(o=null,r=new Kqe((!e.a&&(e.a=new oY(e)),e.a));Vve(r);)if(n=c(RQ(r),57),i=(a=n.Ah(),d=(Ux(a),a.o),!d||!n.Uh(d)?null:$0e(qte(d),n.Jh(d))),i!=null&&St(i,t)){o=n;break}return o}function Btt(e,t){var n;this.e=(Bn(e),b2e(e)),this.c=(Bn(t),b2e(t)),Kge(this.e.Pd().dc()==this.c.Pd().dc()),this.d=eYe(this.e),this.b=eYe(this.c),n=U2(Br,[Fe,Pt],[5,1],5,[this.e.Pd().gc(),this.c.Pd().gc()],2),this.a=n,YIt(this)}function ztt(e,t,n){var i,r,o,a,d;if(zu(n,"occurrences"),n==0)return d=c(fv(D4(e.a),t),18),d?d.gc():0;if(a=c(fv(D4(e.a),t),18),!a)return 0;if(o=a.gc(),n>=o)a.$b();else for(r=a.Jc(),i=0;i<n;i++)r.Pb(),r.Qb();return o}function _Ut(e,t,n){var i,r,o,a;return zu(n,"oldCount"),zu(0,"newCount"),i=c(fv(D4(e.a),t),18),(i?i.gc():0)==n?(zu(0,"count"),r=(o=c(fv(D4(e.a),t),18),o?o.gc():0),a=-r,a>0?T1e():a<0&&ztt(e,t,-a),!0):!1}function DUt(e){var t;return t=Y(K(_a,1),cd,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)&Dr,t[5]=t[5]+(e/60|0)%10&Dr,t[7]=t[7]+(e%60/10|0)&Dr,t[8]=t[8]+e%10&Dr,nd(t,0,t.length)}function J7(e){var t,n,i,r,o,a,d;if(d=0,e.b==0){for(a=hZe(e,!0),t=0,i=a,r=0,o=i.length;r<o;++r)n=i[r],n>0&&(d+=n,++t);t>1&&(d+=e.c*(t-1))}else d=sIe(Rte(K2(mi(dee(e.a),new zf),new im)));return d>0?d+e.n.d+e.n.a:0}function V7(e){var t,n,i,r,o,a,d;if(d=0,e.b==0)d=sIe(Rte(K2(mi(dee(e.a),new of),new c1)));else{for(a=dZe(e,!0),t=0,i=a,r=0,o=i.length;r<o;++r)n=i[r],n>0&&(d+=n,++t);t>1&&(d+=e.c*(t-1))}return d>0?d+e.n.b+e.n.c:0}function LUt(e){var t,n;if(e.c.length!=2)throw V(new co("Order only allowed for two paths."));t=(ht(0,e.c.length),c(e.c[0],17)),n=(ht(1,e.c.length),c(e.c[1],17)),t.d.i!=n.c.i&&(e.c.length=0,It(e.c,n),It(e.c,t))}function Ftt(e,t,n){var i;for(Pm(n,t.g,t.f),fa(n,t.i,t.j),i=0;i<(!t.a&&(t.a=new _e(_n,t,10,11)),t.a).i;i++)Ftt(e,c(ce((!t.a&&(t.a=new _e(_n,t,10,11)),t.a),i),19),c(ce((!n.a&&(n.a=new _e(_n,n,10,11)),n.a),i),19))}function PUt(e,t){var n,i,r,o;for(o=c(eo(e.b,t),129),n=o.a,r=c(c(Ei(e.r,t),24),85).Jc();r.Ob();)i=c(r.Pb(),116),i.c&&(n.a=p.Math.max(n.a,hpe(i.c)));if(n.a>0)switch(t.g){case 2:o.n.c=e.s;break;case 4:o.n.b=e.s}}function IUt(e,t){var n,i,r;return n=c($(t,(Sf(),Sk)),15).a-c($(e,Sk),15).a,n==0?(i=Qr(As(c($(e,(M0(),uP)),8)),c($(e,VE),8)),r=Qr(As(c($(t,uP),8)),c($(t,VE),8)),Ci(i.a*i.b,r.a*r.b)):n}function RUt(e,t){var n,i,r;return n=c($(t,(Jo(),GJ)),15).a-c($(e,GJ),15).a,n==0?(i=Qr(As(c($(e,(Ii(),IP)),8)),c($(e,n9),8)),r=Qr(As(c($(t,IP),8)),c($(t,n9),8)),Ci(i.a*i.b,r.a*r.b)):n}function qtt(e){var t,n;return n=new g0,n.a+="e_",t=JRt(e),t!=null&&(n.a+=""+t),e.c&&e.d&&(Zn((n.a+=" ",n),xQ(e.c)),Zn(Ec((n.a+="[",n),e.c.i),"]"),Zn((n.a+=Vre,n),xQ(e.d)),Zn(Ec((n.a+="[",n),e.d.i),"]")),n.a}function Htt(e){switch(e.g){case 0:return new cz;case 1:return new QN;case 2:return new UN;case 3:return new RK;default:throw V(new qt("No implementation is available for the layout phase "+(e.f!=null?e.f:""+e.g)))}}function Qve(e,t,n,i,r){var o;switch(o=0,r.g){case 1:o=p.Math.max(0,t.b+e.b-(n.b+i));break;case 3:o=p.Math.max(0,-e.b-i);break;case 2:o=p.Math.max(0,-e.a-i);break;case 4:o=p.Math.max(0,t.a+e.a-(n.a+i))}return o}function Qtt(e,t,n){var i,r,o,a,d;if(n)for(r=n.a.length,i=new Up(r),d=(i.b-i.a)*i.c<0?(v0(),bp):new k0(i);d.Ob();)a=c(d.Pb(),15),o=sS(n,a.a),H4e in o.a||koe in o.a?QWt(e,o,t):gnn(e,o,t),WTt(c(Ut(e.c,DS(o)),74))}function Gve(e){var t,n;switch(e.b){case-1:return!0;case 0:return n=e.t,n>1||n==-1?(e.b=-1,!0):(t=Qa(e),t&&(Hs(),t.jk()==Nat)?(e.b=-1,!0):(e.b=1,!1));default:case 1:return!1}}function Uve(e,t){var n,i,r,o;if(wi(e),e.c!=0||e.a!=123)throw V(new Un(Xn((Fn(),Zut))));if(o=t==112,i=e.d,n=F6(e.i,125,i),n<0)throw V(new Un(Xn((Fn(),eat))));return r=Fa(e.i,i,n),e.d=n+1,HJe(r,o,(e.e&512)==512)}function $Ut(e){var t,n,i,r,o,a,d;for(d=Nd(e.c.length),r=new U(e);r.a<r.c.c.length;){for(i=c(G(r),9),a=new Tr,o=Fi(i),n=new Ht(Xt(o.a.Jc(),new F));hn(n);)t=c(rn(n),17),t.c.i==t.d.i||Er(a,t.d.i);It(d.c,a)}return d}function BUt(e,t){var n,i,r;if(!t)Mte(e,null),hS(e,null);else if((t.i&4)!=0)for(i="[]",n=t.c;;n=n.c){if((n.i&4)==0){r=j1e((x1(n),n.o+i)),Mte(e,r),hS(e,r);break}i+="[]"}else r=j1e((x1(t),t.o)),Mte(e,r),hS(e,r);e.fl(t)}function X7(e,t,n,i,r){var o,a,d,b;return b=LZ(e,c(r,57)),xe(b)!==xe(r)?(d=c(e.g[n],76),o=Rd(t,b),QT(e,n,nie(e,n,o)),bu(e.e)&&(a=j0(e,9,o.Jk(),r,b,i,!1),ive(a,new C1(e.e,9,e.c,d,o,i,!1)),gte(a)),b):r}function Gtt(e,t){var n,i,r;try{return r=kDt(e.a,t),r}catch(o){if(o=kr(o),ae(o,33)){try{if(i=Hu(t,ls,gi),n=Gf(e.a),i>=0&&i<n.length)return n[i]}catch(a){if(a=kr(a),!ae(a,133))throw V(a)}return null}else throw V(o)}}function mie(e,t){var n,i,r;if(r=Jx((Ll(),bs),e.Ah(),t),r)return Hs(),c(r,69).vk()||(r=P4(ao(bs,r))),i=(n=e.Fh(r),c(n>=0?e.Ih(n,!0,!0):uw(e,r,!0),164)),c(i,222).Ul(t);throw V(new qt(J0+t.ve()+doe))}function zUt(){X1e();var e;return Xvt?c(qS((w0(),nf),Ja),2017):(ui(Eb,new km),Ien(),e=c(ae(Mc((w0(),nf),Ja),552)?Mc(nf,Ja):new DHe,552),Xvt=!0,Pnn(e),Fnn(e),ci((V1e(),rEe),e,new c6),uo(nf,Ja,e),e)}function FUt(e,t){var n,i,r,o;e.j=-1,bu(e.e)?(n=e.i,o=e.i!=0,fD(e,t),i=new C1(e.e,3,e.c,null,t,n,o),r=t.xl(e.e,e.c,null),r=bet(e,t,r),r?(r.lj(i),r.mj()):yi(e.e,i)):(fD(e,t),r=t.xl(e.e,e.c,null),r&&r.mj())}function LQ(e,t){var n,i,r;if(r=0,i=t[0],i>=e.length)return-1;for(n=(en(i,e.length),e.charCodeAt(i));n>=48&&n<=57&&(r=r*10+(n-48),++i,!(i>=e.length));)n=(en(i,e.length),e.charCodeAt(i));return i>t[0]?t[0]=i:r=-1,r}function qUt(e,t,n){var i,r,o,a,d;a=e.c,d=e.d,o=Po(Y(K(Wr,1),Fe,8,0,[a.i.n,a.n,a.a])).b,r=(o+Po(Y(K(Wr,1),Fe,8,0,[d.i.n,d.n,d.a])).b)/2,i=null,a.j==(Ue(),nn)?i=new ze(t+a.i.c.c.a+n,r):i=new ze(t-n,r),z6(e.a,0,i)}function lw(e){var t,n,i,r;for(t=null,i=Pd(wa(Y(K(Ea,1),Pt,22,0,[(!e.b&&(e.b=new Ct(xn,e,4,7)),e.b),(!e.c&&(e.c=new Ct(xn,e,5,8)),e.c)])));hn(i);)if(n=c(rn(i),83),r=no(n),!t)t=r;else if(t!=r)return!1;return!0}function wie(e,t,n){var i;if(++e.j,t>=e.i)throw V(new qc(Soe+t+Sb+e.i));if(n>=e.i)throw V(new qc(joe+n+Sb+e.i));return i=e.g[n],t!=n&&(t<n?wc(e.g,t,e.g,t+1,n-t):wc(e.g,n+1,e.g,n,t-n),mr(e.g,t,i),e.Ni(t,i,n),e.Li()),i}function jt(e,t,n){var i;if(i=c(e.c.xc(t),18),i)return i.Ec(n)?(++e.d,!0):!1;if(i=e.ic(t),i.Ec(n))return++e.d,e.c.yc(t,i),!0;throw V(new zbe("New Collection violated the Collection spec"))}function cL(e){var t,n,i;return e<0?0:e==0?32:(i=-(e>>16),t=i>>16&16,n=16-t,e=e>>t,i=e-256,t=i>>16&8,n+=t,e<<=t,i=e-Cv,t=i>>16&4,n+=t,e<<=t,i=e-od,t=i>>16&2,n+=t,e<<=t,i=e>>14,t=i&~(i>>1),n+2-t)}function HUt(e,t){var n,i,r;for(r=new He,i=Pn(t.a,0);i.b!=i.d.c;)n=c(Dn(i),65),n.c.g==e.g&&xe($(n.b,(Jo(),md)))!==xe($(n.c,md))&&!Mx(new Tt(null,new Et(r,16)),new CDe(n))&&It(r.c,n);return Rr(r,new x2),r}function Utt(e,t,n){var i,r,o,a;return ae(t,156)&&ae(n,156)?(o=c(t,156),a=c(n,156),e.a[o.a][a.a]+e.a[a.a][o.a]):ae(t,254)&&ae(n,254)&&(i=c(t,254),r=c(n,254),i.a==r.a)?c($(r.a,(Sf(),Sk)),15).a:0}function Jtt(e,t){var n,i,r,o,a,d,b,v;for(v=de(be($(t,(Ge(),bC)))),b=e[0].n.a+e[0].o.a+e[0].d.c+v,d=1;d<e.length;d++)i=e[d].n,r=e[d].o,n=e[d].d,o=i.a-n.b-b,o<0&&(i.a-=o),a=t.f,a.a=p.Math.max(a.a,i.a+r.a),b=i.a+r.a+n.c+v}function QUt(e,t){var n,i,r,o,a,d;return i=c(c(Ut(e.g,t.a),49).a,68),r=c(c(Ut(e.g,t.b),49).a,68),o=i.b,a=r.b,n=vZt(o,a),n>=0?n:(d=r7(Qr(new ze(a.c+a.b/2,a.d+a.a/2),new ze(o.c+o.b/2,o.d+o.a/2))),-(Trt(o,a)-1)*d)}function GUt(e,t,n){var i;hr(new Tt(null,(!n.a&&(n.a=new _e(Gi,n,6,6)),new Et(n.a,16))),new j$e(e,t)),hr(new Tt(null,(!n.n&&(n.n=new _e(zo,n,1,7)),new Et(n.n,16))),new T$e(e,t)),i=c(Se(n,(In(),N3)),79),i&&Xme(i,e,t)}function uw(e,t,n){var i,r,o;if(o=Jx((Ll(),bs),e.Ah(),t),o)return Hs(),c(o,69).vk()||(o=P4(ao(bs,o))),r=(i=e.Fh(o),c(i>=0?e.Ih(i,!0,!0):uw(e,o,!0),164)),c(r,222).Ql(t,n);throw V(new qt(J0+t.ve()+doe))}function Jve(e,t,n,i){var r,o,a,d,b;if(r=e.d[t],r){if(o=r.g,b=r.i,i!=null){for(d=0;d<b;++d)if(a=c(o[d],138),a.yi()==n&&xi(i,a.jd()))return a}else for(d=0;d<b;++d)if(a=c(o[d],138),xe(a.jd())===xe(i))return a}return null}function UUt(e,t){var n,i,r,o,a;for(i=(!t.s&&(t.s=new _e(Ol,t,21,17)),t.s),o=null,r=0,a=i.i;r<a;++r)switch(n=c(ce(i,r),182),Hm(ao(e,n))){case 4:case 5:case 6:{!o&&(o=new He),It(o.c,n);break}}return o||(Mt(),Mt(),$s)}function lL(e,t){var n;if(t<0)throw V(new Qz("Negative exponent"));if(t==0)return wU;if(t==1||t2e(e,wU)||t2e(e,QE))return e;if(!ynt(e,0)){for(n=1;!ynt(e,n);)++n;return Cx(hzt(n*t),lL(qbe(e,n),t))}return vQt(e,t)}function JUt(e,t){var n,i,r;if(xe(e)===xe(t))return!0;if(e==null||t==null||e.length!=t.length)return!1;for(n=0;n<e.length;++n)if(i=e[n],r=t[n],!(xe(i)===xe(r)||i!=null&&xi(i,r)))return!1;return!0}function Vtt(e){G1e();var t,n,i;for(this.b=Sdt,this.c=(_r(),$h),this.f=(SRe(),Odt),this.a=e,N1e(this,new c2),HQ(this),i=new U(e.b);i.a<i.c.c.length;)n=c(G(i),84),n.d||(t=new jne(Y(K(kce,1),Pt,84,0,[n])),Qe(e.a,t))}function Xtt(e){sbe();var t,n;for(this.b=nht,this.c=rht,this.g=(jRe(),tht),this.d=(_r(),$h),this.a=e,yye(this),n=new U(e.b);n.a<n.c.c.length;)t=c(G(n),60),!t.a&&pze(xXe(new l1e,Y(K(kU,1),Pt,60,0,[t])),e),t.e=new Rq(t.d)}function VUt(e,t,n){var i,r,o,a,d,b;if(!e||e.c.length==0)return null;for(o=new SQe(t,!n),r=new U(e);r.a<r.c.c.length;)i=c(G(r),70),jve(o,(yT(),new _z(i)));return a=o.i,a.a=(b=o.n,o.e.b+b.d+b.a),a.b=(d=o.n,o.e.a+d.b+d.c),o}function Wtt(e){var t,n,i,r,o,a,d;for(d=cD(e.a),Pge(d,new i8),n=null,r=d,o=0,a=r.length;o<a&&(i=r[o],i.k==(Jt(),Ar));++o)t=c($(i,(Ie(),Yo)),64),!(t!=(Ue(),Yt)&&t!=nn)&&(n&&c($(n,Nk),16).Ec(i),n=i)}function XUt(e,t,n){var i,r,o,a,d,b,v;b=(ht(t,e.c.length),c(e.c[t],341)),Cg(e,t),b.b/2>=n&&(i=t,v=(b.c+b.a)/2,a=v-n,b.c<=v-n&&(r=new UZ(b.c,a),Qp(e,i++,r)),d=v+n,d<=b.a&&(o=new UZ(d,b.a),ev(i,e.c.length),ET(e.c,i,o)))}function Ktt(e,t,n){var i,r,o,a,d,b;if(!t.dc()){for(r=new _i,b=t.Jc();b.Ob();)for(d=c(b.Pb(),41),ci(e.a,$e(d.g),$e(n)),a=(i=Pn(new w1(d).a.d,0),new lx(i));d_(a.a);)o=c(Dn(a.a),65).c,rr(r,o,r.c.b,r.c);Ktt(e,r,n+1)}}function Vve(e){var t;if(!e.c&&e.g==null)e.d=e._i(e.f),Ln(e,e.d),t=e.d;else{if(e.g==null)return!0;if(e.i==0)return!1;t=c(e.g[e.i-1],51)}return t==e.b&&null.Tm>=null.Sm()?(RQ(e),Vve(e)):t.Ob()}function Ytt(e){if(this.a=e,e.c.i.k==(Jt(),Ar))this.c=e.c,this.d=c($(e.c.i,(Ie(),Yo)),64);else if(e.d.i.k==Ar)this.c=e.d,this.d=c($(e.d.i,(Ie(),Yo)),64);else throw V(new qt("Edge "+e+" is not an external edge."))}function Ztt(e,t){var n,i,r;r=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,3,r,e.b)),t?t!=e&&(Jc(e,t.zb),Tte(e,t.d),n=(i=t.c,i??t.zb),Cte(e,n==null||St(n,t.zb)?null:n)):(Jc(e,null),Tte(e,0),Cte(e,null))}function ent(e){!Yoe&&(Yoe=Htn());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(n){return T_t(n)});return'"'+t+'"'}function Xve(e,t,n,i,r,o){var a,d,b,v,x;if(r!=0)for(xe(e)===xe(n)&&(e=e.slice(t,t+r),t=0),b=n,d=t,v=t+r;d<v;)a=p.Math.min(d+1e4,v),r=a-d,x=e.slice(d,a),x.splice(0,0,i,o?r:0),Array.prototype.splice.apply(b,x),d=a,i+=r}function WUt(e){var t,n,i,r,o,a;for(r=e.e.c.length,i=ke(Ju,Mv,16,r,0,1),a=new U(e.e);a.a<a.c.c.length;)o=c(G(a),156),i[o.a]=new _i;for(n=new U(e.c);n.a<n.c.c.length;)t=c(G(n),292),i[t.c.a].Ec(t),i[t.d.a].Ec(t);return i}function KUt(e,t){var n,i,r,o,a;if(n=c(Wt(e.a,4),131),a=n==null?0:n.length,t>=a)throw V(new Q2(t,a));return r=n[t],a==1?i=null:(i=ke(Jae,Aoe,420,a-1,0,1),wc(n,0,i,0,t),o=a-t-1,o>0&&wc(n,t+1,i,t,o)),PS(e,i),ytt(e,t,r),r}function tnt(e){var t,n;if(e.f){for(;e.n<e.o;){if(t=c(e.j?e.j.Yi(e.n):e.k.Xb(e.n),76),n=t.Jk(),ae(n,104)&&(c(n,20).Bb&rc)!=0&&(!e.e||n.nk()!=m9||n.Jj()!=0)&&t.kd()!=null)return!0;++e.n}return!1}else return e.n<e.o}function ik(){ik=Z,Kk=c(ce(De((I1e(),sc).qb),6),38),Wk=c(ce(De(sc.qb),3),38),Zae=c(ce(De(sc.qb),4),38),efe=c(ce(De(sc.qb),5),20),SQ(Kk),SQ(Wk),SQ(Zae),SQ(efe),Zvt=new Qo(Y(K(Ol,1),r3,182,0,[Kk,Wk]))}function nnt(e,t){var n;this.d=new aT,this.b=t,this.e=new Ms(t.Jf()),n=e.u.Gc((Gl(),nI)),e.u.Gc(W1)?e.F?this.a=n&&!t._f():this.a=!0:e.u.Gc(ap)?n?this.a=!(t.Sf().Jc().Ob()||t.Uf().Jc().Ob()):this.a=!1:this.a=!1}function int(e,t){var n,i,r,o;for(n=e.o.a,o=c(c(Ei(e.r,t),24),85).Jc();o.Ob();)r=c(o.Pb(),116),r.e.a=(i=r.b,i.nf((In(),au))?i.$f()==(Ue(),Yt)?-i.Kf().a-de(be(i.mf(au))):n+de(be(i.mf(au))):i.$f()==(Ue(),Yt)?-i.Kf().a:n)}function rnt(e){var t,n,i,r,o,a,d;if(i=e.a.c.length,i>0)for(a=e.c.d,d=e.d.d,r=y1(Qr(new ze(d.a,d.b),a),1/(i+1)),o=new ze(a.a,a.b),n=new U(e.a);n.a<n.c.c.length;)t=c(G(n),254),t.d.a=o.a+r.a,t.d.b=o.b+r.b,o.a+=r.a,o.b+=r.b}function snt(e,t){var n,i,r,o;n=c($(e,(Ge(),Vu)),87),o=c(Se(t,Wj),64),r=c($(e,ar),103),r!=(es(),Bh)&&r!=up?o==(Ue(),Bo)&&(o=txe(t,n),o==Bo&&(o=J4(n))):(i=hst(t),i>0?o=J4(n):o=QD(J4(n))),ri(t,Wj,o)}function ont(e,t){var n,i;if(e.c.length!=0){if(e.c.length==2)ck((ht(0,e.c.length),c(e.c[0],9)),(qu(),Yd)),ck((ht(1,e.c.length),c(e.c[1],9)),cp);else for(i=new U(e);i.a<i.c.c.length;)n=c(G(i),9),ck(n,t);e.c.length=0}}function YUt(e,t){var n,i,r,o,a;for(a=e.j,t.a!=t.b&&Rr(a,new VR),r=a.c.length/2|0,i=0;i<r;i++)o=(ht(i,a.c.length),c(a.c[i],114)),o.c&&$r(o.d,t.a);for(n=r;n<a.c.length;n++)o=(ht(n,a.c.length),c(a.c[n],114)),o.c&&$r(o.d,t.b)}function rk(e,t,n,i){var r;switch(r=0,c($(t,(Ge(),$o)),166).g){case 2:r=2*-n+e.a,++e.a;break;case 1:r=-n;break;case 3:r=n;break;case 4:r=2*n+e.b,++e.b}return ki(t,(Ie(),Ri))&&(r+=c($(t,Hv),15).a*i+c($(t,Ri),15).a),r}function ZUt(e,t,n){var i,r,o;return i=e.c[t.c.p][t.p],r=e.c[n.c.p][n.p],i.a!=null&&r.a!=null?(o=lee(i.a,r.a),o<0?gL(e,t,n):o>0&&gL(e,n,t),o):i.a!=null?(gL(e,t,n),-1):r.a!=null?(gL(e,n,t),1):0}function cnt(e){zee();var t,n,i,r,o,a,d;for(n=new E0,r=new U(e.e.b);r.a<r.c.c.length;)for(i=c(G(r),26),a=new U(i.a);a.a<a.c.c.length;)o=c(G(a),9),d=e.g[o.p],t=c(vh(n,d),16),t||(t=new He,hb(n,d,t)),t.Ec(o);return n}function eJt(e,t){var n,i,r,o,a;for(r=t.b.b,e.a=ke(Ju,Mv,16,r,0,1),e.b=ke(Sl,Yf,30,r,16,1),a=Pn(t.b,0);a.b!=a.d.c;)o=c(Dn(a),41),e.a[o.g]=new _i;for(i=Pn(t.a,0);i.b!=i.d.c;)n=c(Dn(i),65),e.a[n.b.g].Ec(n),e.a[n.c.g].Ec(n)}function lnt(e,t){var n,i,r,o;e.Nj()?(n=e.Cj(),o=e.Oj(),++e.j,e.oj(n,e.Xi(n,t)),i=e.Gj(3,null,t,n,o),e.Kj()?(r=e.Lj(t,null),r?(r.lj(i),r.mj()):e.Hj(i)):e.Hj(i)):(OHe(e,t),e.Kj()&&(r=e.Lj(t,null),r&&r.mj()))}function Wve(e,t,n){var i,r,o;e.Nj()?(o=e.Oj(),FD(e,t,n),i=e.Gj(3,null,n,t,o),e.Kj()?(r=e.Lj(n,null),e.Rj()&&(r=e.Sj(n,r)),r?(r.lj(i),r.mj()):e.Hj(i)):e.Hj(i)):(FD(e,t,n),e.Kj()&&(r=e.Lj(n,null),r&&r.mj()))}function PQ(e,t){var n,i,r,o,a;for(a=rl(e.e.Ah(),t),r=new P5,n=c(e.g,123),o=e.i;--o>=0;)i=n[o],a.$l(i.Jk())&&Ln(r,i);!fot(e,r)&&bu(e.e)&&E6(e,t.Hk()?j0(e,6,t,(Mt(),$s),null,-1,!1):j0(e,t.rk()?2:1,t,null,null,-1,!1))}function tJt(e,t){var n,i,r,o,a;return e.a==(zS(),eC)?!0:(o=t.a.c,n=t.a.c+t.a.b,!(t.j&&(i=t.A,a=i.c.c.a-i.o.a/2,r=o-(i.n.a+i.o.a),r>a)||t.q&&(i=t.C,a=i.c.c.a-i.o.a/2,r=i.n.a-n,r>a)))}function unt(e,t,n){var i,r,o,a,d,b;for(i=0,b=n,t||(i=n*(e.c.length-1),b*=-1),o=new U(e);o.a<o.c.c.length;){for(r=c(G(o),9),Me(r,(Ge(),pd),(Bd(),lV)),r.o.a=i,d=$g(r,(Ue(),nn)).Jc();d.Ob();)a=c(d.Pb(),12),a.n.a=i;i+=b}}function ant(e){var t;return(e.Db&64)!=0?kf(e):(t=new Ba(kf(e)),t.a+=" (startX: ",ux(t,e.j),t.a+=", startY: ",ux(t,e.k),t.a+=", endX: ",ux(t,e.b),t.a+=", endY: ",ux(t,e.c),t.a+=", identifier: ",Zs(t,e.d),t.a+=")",t.a)}function Kve(e){var t;return(e.Db&64)!=0?A7(e):(t=new Ba(A7(e)),t.a+=" (ordered: ",yg(t,(e.Bb&256)!=0),t.a+=", unique: ",yg(t,(e.Bb&512)!=0),t.a+=", lowerBound: ",MY(t,e.s),t.a+=", upperBound: ",MY(t,e.t),t.a+=")",t.a)}function fnt(e,t,n,i,r,o,a,d){var b;return ae(e.Cb,89)&&vv(iu(c(e.Cb,89)),4),Jc(e,n),e.f=i,CS(e,r),AS(e,o),ES(e,a),MS(e,!1),Ig(e,!0),NS(e,d),Pg(e,!0),Ng(e,0),e.b=0,ov(e,1),b=Sh(e,t,null),b&&b.mj(),hne(e,!1),e}function hnt(e,t){var n,i,r,o;return n=c(Mc(e.a,t),515),n||(i=new tte(t),r=(nH(),Nh?null:i.c),o=Fa(r,0,p.Math.max(0,QF(r,pl(46)))),fEt(i,hnt(e,o)),(Nh?null:i.c).length==0&&qze(i,new Ti),uo(e.a,Nh?null:i.c,i),i)}function nJt(e,t){var n,i;return ki(e,(Ie(),y3))?ki(t,y3)?(n=be($(e,y3)),i=be($(t,y3)),n!=null&&i!=null?Ci((zt(n),n),(zt(i),i)):n!=null?-1:i!=null?1:0):-1:1}function dnt(){this.a=new gB,this.n=new mQ,this.p=new mQ,this.c=new yn,this.f=new mQ,this.o=new mQ,this.q=new yn,this.d=new yn,this.g=new yn,this.k=new yn,this.e=new yn,this.i=new yn,this.j=new yn,this.r=new yn,this.b=new yn}function sk(e,t,n){var i,r,o,a,d,b;return d=e.nl(n),d!=n?(a=e.g[t],b=d,QT(e,t,e.Xi(t,b)),o=a,e.Pi(t,b,o),e.$k()&&(i=n,r=e.Mj(i,null),!c(d,52).Mh()&&(r=e.Lj(b,r)),r&&r.mj()),bu(e.e)&&E6(e,e.Gj(9,n,d,t,!1)),d):n}function iJt(e,t){var n,i,r,o;for(i=new U(e.a.a);i.a<i.c.c.length;)n=c(G(i),197),n.g=!0;for(o=new U(e.a.b);o.a<o.c.c.length;)r=c(G(o),84),r.k=Ze(Ye(e.e.Kb(new Is(r,t)))),r.d.g=r.d.g&Ze(Ye(e.e.Kb(new Is(r,t))));return e}function gnt(e,t,n){var i,r,o,a,d;if(!e.d[n.p]){for(r=new Ht(Xt(Fi(n).a.Jc(),new F));hn(r);){for(i=c(rn(r),17),d=i.d.i,a=new Ht(Xt(vr(d).a.Jc(),new F));hn(a);)o=c(rn(a),17),o.c.i==t&&(e.a[o.p]=!0);gnt(e,t,d)}e.d[n.p]=!0}}function rJt(e,t){var n,i,r,o,a,d,b;if(i=QKe(e.Db&254),i==1)e.Eb=null;else if(o=q4(e.Eb),i==2)r=Gne(e,t),e.Eb=o[r==0?1:0];else{for(a=ke(Br,Pt,1,i-1,5,1),n=2,d=0,b=0;n<=128;n<<=1)n==t?++d:(e.Db&n)!=0&&(a[b++]=o[d++]);e.Eb=a}e.Db&=~t}function Yve(e){var t;switch(t=0,e){case 105:t=2;break;case 109:t=8;break;case 115:t=4;break;case 120:t=16;break;case 117:t=32;break;case 119:t=64;break;case 70:t=256;break;case 72:t=128;break;case 88:t=512;break;case 44:t=Ga}return t}function sJt(e,t,n,i,r){var o,a,d,b;if(xe(e)===xe(t)&&i==r){wrt(e,i,n);return}for(d=0;d<i;d++){for(a=0,o=e[d],b=0;b<r;b++)a=Ns(Ns(js(Zr(o,Js),Zr(t[b],Js)),Zr(n[d+b],Js)),Zr(Gn(a),Js)),n[d+b]=Gn(a),a=Jp(a,32);n[d+r]=Gn(a)}}function pnt(e){var t,n,i,r,o;if(n=(t=c(Gf(Bs),10),new da(t,c(gf(t,t.length),10),0)),o=c($(e,(Ie(),Jl)),9),o)for(r=new U(o.j);r.a<r.c.c.length;)i=c(G(r),12),xe($(i,Si))===xe(e)&&UT(new wh(i.b))&&yf(n,i.j);return n}function oJt(e,t){var n,i,r;for(i=new U(e.i.d);i.a<i.c.c.length;)n=c(G(i),70),Me(n,(Ge(),x3),null);switch(t.g){case 2:case 4:r=e.a,e.c.d.n.b<r.d.n.b&&(r=e.c),Tg(e,t,(xf(),Lce),r);break;case 1:case 3:Tg(e,t,(xf(),Bv),null)}}function bnt(e,t){t.b!=0&&(isNaN(e.s)?e.s=de((gn(t.b!=0),be(t.a.a.c))):e.s=p.Math.min(e.s,de((gn(t.b!=0),be(t.a.a.c)))),isNaN(e.c)?e.c=de((gn(t.b!=0),be(t.c.b.c))):e.c=p.Math.max(e.c,de((gn(t.b!=0),be(t.c.b.c)))))}function W7(e){var t,n,i,r;for(t=null,i=Pd(wa(Y(K(Ea,1),Pt,22,0,[(!e.b&&(e.b=new Ct(xn,e,4,7)),e.b),(!e.c&&(e.c=new Ct(xn,e,5,8)),e.c)])));hn(i);)if(n=c(rn(i),83),r=no(n),!t)t=Wi(r);else if(t!=Wi(r))return!0;return!1}function vie(e,t){var n,i,r,o;e.Nj()?(n=e.i,o=e.Oj(),fD(e,t),i=e.Gj(3,null,t,n,o),e.Kj()?(r=e.Lj(t,null),e.Rj()&&(r=e.Sj(t,r)),r?(r.lj(i),r.mj()):e.Hj(i)):e.Hj(i)):(fD(e,t),e.Kj()&&(r=e.Lj(t,null),r&&r.mj()))}function cJt(e,t){var n,i,r,o;if(o=Z_(e.a,t.b),!o)throw V(new co("Invalid hitboxes for scanline overlap calculation."));for(r=!1,i=e.a.a.ec().Jc();i.Ob();)if(n=c(i.Pb(),68),g$t(t.b,n))o8t(e.b.a,t.b,n),r=!0;else if(r)break}function lJt(e){var t;if(!e.a)throw V(new co("IDataType class expected for layout option "+e.f));if(t=MLt(e.a),t==null)throw V(new co("Couldn't create new instance of property '"+e.f+"'. "+Ult+(x1(bI),bI.k)+A4e));return c(t,419)}function yie(e){var t,n,i,r,o;return o=e.Mh(),o&&o.Sh()&&(r=L0(e,o),r!=o)?(n=e.Ch(),i=(t=e.Ch(),t>=0?e.xh(null):e.Mh().Qh(e,-1-t,null,null)),e.yh(c(r,52),n),i&&i.mj(),e.sh()&&e.th()&&n>-1&&yi(e,new Jr(e,9,n,o,r)),r):o}function Zve(e,t){var n,i,r,o,a;for(o=e.b.Ae(t),i=(n=e.a.get(o),n??ke(Br,Pt,1,0,5,1)),a=0;a<i.length;a++)if(r=i[a],e.b.ze(t,r.jd()))return i.length==1?(i.length=0,X7t(e.a,o)):i.splice(a,1),--e.c,++e.b.g,r.kd();return null}function mnt(e){var t,n,i,r,o,a,d,b;for(a=0,o=e.f.e,i=0;i<o.c.length;++i)for(d=(ht(i,o.c.length),c(o.c[i],156)),r=i+1;r<o.c.length;++r)b=(ht(r,o.c.length),c(o.c[r],156)),n=C0(d.d,b.d),t=n-e.a[d.a][b.a],a+=e.i[d.a][b.a]*t*t;return a}function uJt(e,t){var n;if(!ki(t,(Ge(),$o))&&(n=Gqt(c($(t,f6e),368),c($(e,$o),166)),Me(t,f6e,n),!hn(new Ht(Xt(td(t).a.Jc(),new F)))))switch(n.g){case 1:Me(t,$o,(Su(),oC));break;case 2:Me(t,$o,(Su(),cC))}}function aJt(e,t){var n;SWt(e),e.a=(n=new SY,hr(new Tt(null,new Et(t.d,16)),new H_e(n)),n),$Wt(e,c($(t.b,(Ge(),Mle)),349)),LFt(e),wJt(e),Xqt(e),PFt(e),IZt(e,t),hr(jo(new Tt(null,NGe(VAt(e.b).a)),new xA),new UR),t.a=!1,e.a=null}function eye(){eye=Z,Rbt=new vt(I5e,(Bt(),!1)),$bt=new vt(R5e,7),$e(0),qbt=new vt($5e,$e(0)),zbt=new vt(B5e,$e(-1)),j9e=(E7(),xue),Hbt=new vt(z5e,j9e),O9e=(T7(),PP),Bbt=new vt(F5e,O9e),S9e=(Gq(),kue),Fbt=new vt(q5e,S9e)}function wnt(){mve.call(this,Ej,(b0(),bvt)),this.p=null,this.a=null,this.f=null,this.n=null,this.g=null,this.c=null,this.i=null,this.j=null,this.d=null,this.b=null,this.e=null,this.k=null,this.o=null,this.s=null,this.q=!1,this.r=!1}function ok(){ok=Z,Gae=new b4(Zct,0),TV=new b4("INSIDE_SELF_LOOPS",1),dI=new b4("MULTI_EDGES",2),hI=new b4("EDGE_LABELS",3),Qae=new b4("PORTS",4),jV=new b4("COMPOUND",5),SV=new b4("CLUSTERS",6),Hae=new b4("DISCONNECTED",7)}function vnt(e,t,n){var i,r,o;e.Nj()?(o=e.Oj(),++e.j,e.oj(t,e.Xi(t,n)),i=e.Gj(3,null,n,t,o),e.Kj()?(r=e.Lj(n,null),r?(r.lj(i),r.mj()):e.Hj(i)):e.Hj(i)):(++e.j,e.oj(t,e.Xi(t,n)),e.Kj()&&(r=e.Lj(n,null),r&&r.mj()))}function ynt(e,t){var n,i,r;if(t==0)return(e.a[0]&1)!=0;if(t<0)throw V(new Qz("Negative bit address"));if(r=t>>5,r>=e.d)return e.e<0;if(n=e.a[r],t=1<<(t&31),e.e<0){if(i=iWe(e),r<i)return!1;i==r?n=-n:n=~n}return(n&t)!=0}function xnt(e){var t,n,i,r,o;if(r=new He,o=krt(e,r),t=c($(e,(Ie(),Jl)),9),t)for(i=new U(t.j);i.a<i.c.c.length;)n=c(G(i),12),xe($(n,Si))===xe(e)&&(o=p.Math.max(o,krt(n,r)));return r.c.length==0||Me(e,b3,o),o!=-1?r:null}function fJt(e,t,n,i){var r;c(n.b,68),c(n.b,68),c(i.b,68),c(i.b,68),r=Qr(As(c(n.b,68).c),c(i.b,68).c),rq(r,Ctt(c(n.b,68),c(i.b,68),r)),c(i.b,68),c(i.b,68),c(i.b,68).c.a+r.a,c(i.b,68).c.b+r.b,c(i.b,68),Uc(i.a,new X0e(e,t,i))}function tye(e,t){var n,i,r,o,a,d,b;if(o=t.e,o){for(n=yie(o),i=c(e.g,686),a=0;a<e.i;++a)if(b=i[a],Bne(b)==n&&(r=(!b.d&&(b.d=new Nr(Ys,b,1)),b.d),d=c(n.Jh(_ie(o,o.Cb,o.Db>>16)),16).bd(o),d<r.i))return tye(e,c(ce(r,d),88))}return t}function E(e,t,n){var i=gU,r,o=i[e],a=o instanceof Array?o[0]:null;o&&!a?f=o:(f=(r=t&&t.prototype,!r&&(r=gU[t]),A_t(r)),f.Qm=n,!t&&(f.Rm=we),i[e]=f);for(var d=3;d<arguments.length;++d)arguments[d].prototype=f;a&&(f.Pm=a)}function hn(e){for(var t;!c(Bn(e.a),51).Ob();){if(e.d=A$t(e),!e.d)return!1;if(e.a=c(e.d.Pb(),51),ae(e.a,35)){if(t=c(e.a,35),e.a=t.a,!e.b&&(e.b=new xx),T0(e.b,e.d),t.b)for(;!pT(t.b);)T0(e.b,c(NAt(t.b),51));e.d=t.d}}return!0}function nye(e,t){var n,i,r,o;for(r=1,t.j=!0,o=null,i=new U(Px(t));i.a<i.c.c.length;)n=c(G(i),220),e.c[n.c]||(e.c[n.c]=!0,o=ZH(n,t),n.f?r+=nye(e,o):!o.j&&n.a==n.e.e-n.d.e&&(n.f=!0,Er(e.p,n),r+=nye(e,o)));return r}function hJt(e){var t,n,i;for(n=new U(e.a.a.b);n.a<n.c.c.length;)t=c(G(n),84),i=(zt(0),0),i>0&&(!(v1(e.a.c)&&t.n.d)&&!(mx(e.a.c)&&t.n.b)&&(t.g.d+=p.Math.max(0,i/2-.5)),!(v1(e.a.c)&&t.n.a)&&!(mx(e.a.c)&&t.n.c)&&(t.g.a-=i-1))}function knt(e,t,n){var i,r,o,a,d,b;o=c(Je(t.e,0),17).c,i=o.i,r=i.k,b=c(Je(n.g,0),17).d,a=b.i,d=a.k,r==(Jt(),Cr)?Me(e,(Ie(),ih),c($(i,ih),12)):Me(e,(Ie(),ih),o),d==Cr?Me(e,(Ie(),Wa),c($(a,Wa),12)):Me(e,(Ie(),Wa),b)}function Ont(e,t){var n,i,r,o,a,d;for(o=new U(e.b);o.a<o.c.c.length;)for(r=c(G(o),26),d=new U(r.a);d.a<d.c.c.length;)for(a=c(G(d),9),a.k==(Jt(),ac)&&ck(a,t),i=new Ht(Xt(Fi(a).a.Jc(),new F));hn(i);)n=c(rn(i),17),MWe(n,t)}function dJt(e,t){var n,i,r;for(t.Tg("Layer constraint preprocessing",1),n=new He,r=new os(e.a,0);r.b<r.d.gc();)i=(gn(r.b<r.d.gc()),c(r.d.Xb(r.c=r.b++),9)),u$t(i)&&(lQt(i),It(n.c,i),nu(r));n.c.length==0||Me(e,(Ie(),dle),n),t.Ug()}function iye(e){var t,n,i;this.c=e,i=c($(e,(Ge(),Vu)),87),t=de(be($(e,gJ))),n=de(be($(e,xje))),i==(_r(),po)||i==vo||i==$h?this.b=t*n:this.b=1/(t*n),this.j=de(be($(e,Yv))),this.e=de(be($(e,Ib))),this.f=e.b.c.length}function gJt(e){var t,n;for(e.e=ke(Hn,li,30,e.p.c.length,15,1),e.k=ke(Hn,li,30,e.p.c.length,15,1),n=new U(e.p);n.a<n.c.c.length;)t=c(G(n),9),e.e[t.p]=Jf(new Ht(Xt(vr(t).a.Jc(),new F))),e.k[t.p]=Jf(new Ht(Xt(Fi(t).a.Jc(),new F)))}function pJt(e){var t,n,i,r,o,a;for(r=0,e.q=new He,t=new Tr,a=new U(e.p);a.a<a.c.c.length;){for(o=c(G(a),9),o.p=r,i=new Ht(Xt(Fi(o).a.Jc(),new F));hn(i);)n=c(rn(i),17),Er(t,n.d.i);t.a.Ac(o)!=null,Qe(e.q,new G2(t)),t.a.$b(),++r}}function rye(e,t){var n,i,r,o,a;return t&=63,n=e.h,i=(n&ML)!=0,i&&(n|=-1048576),t<22?(a=n>>t,o=e.m>>t|n<<22-t,r=e.l>>t|e.m<<22-t):t<44?(a=i?z1:0,o=n>>t-22,r=e.m>>t-22|n<<44-t):(a=i?z1:0,o=i?uu:0,r=n>>t-44),nl(r&uu,o&uu,a&z1)}function bJt(e,t){var n;switch(c7(e.a),Iu(e.a,(kQ(),sae),(rF(),fae)),Iu(e.a,oae,(sF(),hae)),Iu(e.a,cae,(oF(),dae)),c(Se(t,(Z4(),aae)),389).g){case 1:n=(TD(),gae);break;case 0:default:n=(TD(),pae)}return Iu(e.a,lae,n),aE(e.a,t)}function Snt(e,t){var n,i,r,o,a,d,b,v,x;if(e.a.f>0&&ae(t,45)&&(e.a.Zj(),v=c(t,45),b=v.jd(),o=b==null?0:zi(b),a=j0e(e.a,o),n=e.a.d[a],n)){for(i=c(n.g,375),x=n.i,d=0;d<x;++d)if(r=i[d],r.yi()==o&&r.Fb(v))return Snt(e,v),!0}return!1}function mJt(e){var t,n,i,r,o,a,d;if(t=e.ni(Ja),t&&(d=qn(Kf((!t.b&&(t.b=new wu((At(),zs),Zo,t)),t.b),"settingDelegates")),d!=null)){for(n=new He,r=Sv(d,"\\w+"),o=0,a=r.length;o<a;++o)i=r[o],It(n.c,i);return n}return Mt(),Mt(),$s}function wJt(e){var t,n,i,r;for(r=c(Ei(e.a,(bv(),KU)),16).Jc();r.Ob();)i=c(r.Pb(),108),n=(t=E4(i.k),t.Gc((Ue(),Kt))?t.Gc(nn)?t.Gc(mn)?t.Gc(Yt)?null:o1t:l1t:c1t:s1t),W6(e,i,n[0],(ew(),Mw),0),W6(e,i,n[1],Y0,1),W6(e,i,n[2],Aw,1)}function vJt(e,t){var n,i;n=YWt(t),FXt(e,t,n),yet(e.a,c($(Vr(t.b),(Ie(),Dk)),237)),vKt(e),tQt(e,t),i=ke(Hn,li,30,t.b.j.c.length,15,1),Yie(e,t,(Ue(),Kt),i,n),Yie(e,t,nn,i,n),Yie(e,t,mn,i,n),Yie(e,t,Yt,i,n),e.a=null,e.c=null,e.b=null}function sye(e,t,n){switch(t){case 7:!e.e&&(e.e=new Ct($i,e,7,4)),An(e.e),!e.e&&(e.e=new Ct($i,e,7,4)),dr(e.e,c(n,18));return;case 8:!e.d&&(e.d=new Ct($i,e,8,5)),An(e.d),!e.d&&(e.d=new Ct($i,e,8,5)),dr(e.d,c(n,18));return}Y2e(e,t,n)}function oye(e,t){var n,i,r,o,a;if(xe(t)===xe(e))return!0;if(!ae(t,16)||(a=c(t,16),e.gc()!=a.gc()))return!1;for(o=a.Jc(),i=e.Jc();i.Ob();)if(n=i.Pb(),r=o.Pb(),!(xe(n)===xe(r)||n!=null&&xi(n,r)))return!1;return!0}function yJt(e,t){var n,i,r,o;for(o=c(Hl(jo(jo(new Tt(null,new Et(t.b,16)),new PO),new o8),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[(ya(),wl)]))),16),o.Ic(new wR),n=0,r=o.Jc();r.Ob();)i=c(r.Pb(),12),i.p==-1&&lye(e,i,n++)}function xJt(e,t){var n,i,r,o,a;for(t.Tg("Port side processing",1),a=new U(e.a);a.a<a.c.c.length;)r=c(G(a),9),Vrt(r);for(i=new U(e.b);i.a<i.c.c.length;)for(n=c(G(i),26),o=new U(n.a);o.a<o.c.c.length;)r=c(G(o),9),Vrt(r);t.Ug()}function kJt(e,t){var n,i,r,o,a,d;for(i=new E0,a=Zq(new Qo(e.g)),o=a.a.ec().Jc();o.Ob();){if(r=c(o.Pb(),9),!r){t.ah("There are no classes in a balanced layout.");break}d=e.j[r.p],n=c(vh(i,d),16),n||(n=new He,hb(i,d,n)),n.Ec(r)}return i}function OJt(e,t){var n,i,r,o,a;i=new _i,rr(i,t,i.c.b,i.c);do for(n=(gn(i.b!=0),c(ma(i,i.a.a),41)),e.b[n.g]=1,o=Pn(n.d,0);o.b!=o.d.c;)r=c(Dn(o),65),a=r.c,e.b[a.g]==1?ei(e.a,r):e.b[a.g]==2?e.b[a.g]=1:rr(i,a,i.c.b,i.c);while(i.b!=0)}function cye(e,t){if(ae(t,209))return Wi(c(t,19));if(ae(t,196))return bh(c(t,127));if(ae(t,363))return gbe(c(t,158));if(ae(t,273))return E7t(e,c(t,74));throw V(new qt(Cj+jh(new Qo(Y(K(Br,1),Pt,1,5,[t])))))}function SJt(e,t,n){var i;i=null,t&&(i=t.d),H7(e,new $6(t.n.a-i.b+n.a,t.n.b-i.d+n.b)),H7(e,new $6(t.n.a-i.b+n.a,t.n.b+t.o.b+i.a+n.b)),H7(e,new $6(t.n.a+t.o.a+i.c+n.a,t.n.b-i.d+n.b)),H7(e,new $6(t.n.a+t.o.a+i.c+n.a,t.n.b+t.o.b+i.a+n.b))}function lye(e,t,n){var i,r,o;for(t.p=n,o=Pd(wa(Y(K(Ea,1),Pt,22,0,[new T6(t),new t4(t)])));hn(o);)i=c(rn(o),12),i.p==-1&&lye(e,i,n);if(t.i.k==(Jt(),Cr))for(r=new U(t.i.j);r.a<r.c.c.length;)i=c(G(r),12),i!=t&&i.p==-1&&lye(e,i,n)}function jnt(e){var t,n,i,r,o;if(r=c(Hl(pbe(wbe(e)),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[(ya(),wl)]))),16),i=e3,r.gc()>=2)for(n=r.Jc(),t=be(n.Pb());n.Ob();)o=t,t=be(n.Pb()),i=p.Math.min(i,(zt(t),t-(zt(o),o)));return i}function jJt(e,t){var n,i,r;for(r=new He,i=Pn(t.a,0);i.b!=i.d.c;)n=c(Dn(i),65),n.b.g==e.g&&!St(n.b.c,zG)&&xe($(n.b,(Jo(),md)))!==xe($(n.c,md))&&!Mx(new Tt(null,new Et(r,16)),new MDe(n))&&It(r.c,n);return Rr(r,new pm),r}function TJt(e,t){var n,i,r;if(xe(t)===xe(Bn(e)))return!0;if(!ae(t,16)||(i=c(t,16),r=e.gc(),r!=i.gc()))return!1;if(ae(i,59)){for(n=0;n<r;n++)if(!k1(e.Xb(n),i.Xb(n)))return!1;return!0}else return $Ft(e.Jc(),i.Jc())}function EJt(e,t,n,i,r,o){var a,d,b,v;for(d=!D6(mi(e.Mc(),new S6(new kW))).zd((Fp(),Ok)),a=e,o==(_r(),Ma)&&(a=ju(a)),v=a.Jc();v.Ob();)b=c(v.Pb(),70),b.n.a=t.a,d?b.n.b=t.b+(i.b-b.o.b)/2:r?b.n.b=t.b:b.n.b=t.b+i.b-b.o.b,t.a+=b.o.a+n}function Tnt(e,t,n){var i,r,o,a,d,b,v;if(n)for(o=n.a.length,i=new Up(o),d=(i.b-i.a)*i.c<0?(v0(),bp):new k0(i);d.Ob();)a=c(d.Pb(),15),b=sS(n,a.a),b&&(v=QIt(j1(b,yoe),t),ci(e.k,v,b),r=hd in b.a,r&&dS(v,j1(b,hd)),CQ(b,v),$ve(b,v))}function CJt(e,t,n){var i,r,o,a,d;if(d=n,!d&&(d=cpe(new o4,0)),d.Tg(_ct,1),Nst(e.c,t),a=Ren(e.a,t),a.gc()==1)ast(c(a.Xb(0),37),d);else for(o=1/a.gc(),r=a.Jc();r.Ob();){if(i=c(r.Pb(),37),n.Zg())return;ast(i,d.dh(o))}P9t(e.a,a,t),lWt(t),d.Ug()}function Ent(e,t,n){var i,r,o,a,d;if(r=e.f,!r&&(r=c(e.a.a.ec().Jc().Pb(),60)),q7(r,t,n),e.a.a.gc()!=1)for(i=t*n,a=e.a.a.ec().Jc();a.Ob();)o=c(a.Pb(),60),o!=r&&(d=I4(o),d.f.d?(o.d.d+=i+Ch,o.d.a-=i+Ch):d.f.a&&(o.d.a-=i+Ch))}function MJt(e,t,n,i){var r,o,a,d,b,v,x,T;r=n,x=t,o=x;do o=e.a[o.p],d=(T=e.g[o.p],de(e.p[T.p])+de(e.d[o.p])-o.d.d),b=JIt(o,i),b&&(a=(v=e.g[b.p],de(e.p[v.p])+de(e.d[b.p])+b.o.b+b.d.a),r=p.Math.min(r,d-(a+yx(e.k,o,b))));while(x!=o);return r}function AJt(e,t,n,i){var r,o,a,d,b,v,x,T;r=n,x=t,o=x;do o=e.a[o.p],a=(T=e.g[o.p],de(e.p[T.p])+de(e.d[o.p])+o.o.b+o.d.a),b=n$t(o,i),b&&(d=(v=e.g[b.p],de(e.p[v.p])+de(e.d[b.p])-b.d.d),r=p.Math.min(r,d-(a+yx(e.k,o,b))));while(x!=o);return r}function Cnt(e,t){var n;if(t.Tg("Equal Whitespace Eliminator",1),pa(e,(Fd(),ZJ)))lBt(c(Se(e,ZJ),16),de(be(Se(e,Bk))),(n=de(be(Se(e,DC))),de(be(Se(e,(Th(),IC)))),n));else throw V(new Uh("The graph does not contain rows."));t.Ug()}function Se(e,t){var n,i;return i=(!e.o&&(e.o=new Nl((lc(),t1),Zg,e,0)),Kf(e.o,t)),i??(n=t.Rg(),ae(n,4)&&(n==null?(!e.o&&(e.o=new Nl((lc(),t1),Zg,e,0)),oQ(e.o,t)):(!e.o&&(e.o=new Nl((lc(),t1),Zg,e,0)),eL(e.o,t,n))),n)}function yv(){yv=Z,Nf=new dx("H_LEFT",0),X1=new dx("H_CENTER",1),_f=new dx("H_RIGHT",2),Lf=new dx("V_TOP",3),Zd=new dx("V_CENTER",4),Ya=new dx("V_BOTTOM",5),Xu=new dx("INSIDE",6),Df=new dx("OUTSIDE",7),Ka=new dx("H_PRIORITY",8)}function NJt(e,t){var n,i,r,o,a,d,b;if(!t.f)throw V(new qt("The input edge is not a tree edge."));for(o=null,r=gi,i=new U(e.d);i.a<i.c.c.length;)n=c(G(i),220),d=n.d,b=n.e,bie(e,d,t)&&!bie(e,b,t)&&(a=b.e-d.e-n.a,a<r&&(r=a,o=n));return o}function _Jt(e){var t,n,i,r,o,a;if(!(e.f.e.c.length<=1)){t=0,r=mnt(e),n=sr;do{for(t>0&&(r=n),a=new U(e.f.e);a.a<a.c.c.length;)o=c(G(a),156),!Ze(Ye($(o,(YD(),gOe))))&&(i=HKt(e,o),Oi(Uf(o.d),i));n=mnt(e)}while(!KAt(e,t++,r,n))}}function DJt(e,t){var n,i,r,o,a;for(o=e.g.a,a=e.g.b,i=new U(e.d);i.a<i.c.c.length;)n=c(G(i),70),r=n.n,e.a==(xf(),$j)||e.i==(Ue(),nn)?r.a=o:e.a==Bj||e.i==(Ue(),Yt)?r.a=o+e.j.a-n.o.a:r.a=o+(e.j.a-n.o.a)/2,r.b=a,Oi(r,t),a+=n.o.b+e.e}function Mnt(e){var t,n,i,r;for(r=0,t=c(Se(e,(In(),z2t)),15).a,i=new on((!e.a&&(e.a=new _e(_n,e,10,11)),e.a));i.e!=i.i.gc();)n=c(un(i),19),!n.a&&(n.a=new _e(_n,n,10,11)),n.a&&(!n.a&&(n.a=new _e(_n,n,10,11)),n.a).i>0?r+=t:r+=1;return r}function LJt(e,t){var n,i,r,o,a,d,b,v,x,T;v=e,b=h7(v,"individualSpacings"),b&&(i=pa(t,(In(),Gk)),a=!i,a&&(r=new L5,ri(t,Gk,r)),d=c(Se(t,Gk),380),T=b,o=null,T&&(o=(x=Dte(T,ke(tt,Fe,2,0,6,1)),new NY(T,x))),o&&(n=new U$e(T,d),vs(o,n)))}function PJt(e,t){var n,i,r,o,a,d,b,v,x,T,A;return b=null,T=e,x=null,($ut in T.a||But in T.a||XG in T.a)&&(v=null,A=swe(t),a=h7(T,$ut),n=new dLe(A),rYe(n.a,a),d=h7(T,But),i=new kLe(A),sYe(i.a,d),o=Vm(T,XG),r=new jLe(A),v=(get(r.a,o),o),x=v),b=x,b}function IJt(e,t){var n,i,r;if(t===e)return!0;if(ae(t,544)){if(r=c(t,841),e.a.d!=r.a.d||jx(e).gc()!=jx(r).gc())return!1;for(i=jx(r).Jc();i.Ob();)if(n=c(i.Pb(),421),rGe(e,n.a.jd())!=c(n.a.kd(),18).gc())return!1;return!0}return!1}function RJt(e,t){var n,i,r,o;for(o=new U(t.a);o.a<o.c.c.length;)for(r=c(G(o),9),Me(r,(Ie(),dJ),(Bt(),!1)),Me(r,Lk,$e(-1)),Me(r,sC,$e(-1)),e.d.a.c.length=0,i=new Ht(Xt(td(r).a.Jc(),new F));hn(i);)n=c(rn(i),17),Me(n,M1t,!1)}function $Jt(e,t){return e.c<t.c?-1:e.c>t.c?1:e.b<t.b?-1:e.b>t.b?1:e.a!=t.a?zi(e.a)-zi(t.a):e.d==(g7(),jC)&&t.d==SC?-1:e.d==SC&&t.d==jC?1:0}function xie(e){var t,n,i,r,o,a,d,b;for(r=sr,i=Gr,n=new U(e.e.b);n.a<n.c.c.length;)for(t=c(G(n),26),a=new U(t.a);a.a<a.c.c.length;)o=c(G(a),9),b=de(e.p[o.p]),d=b+de(e.b[e.g[o.p].p]),r=p.Math.min(r,b),i=p.Math.max(i,d);return i-r}function Ant(e,t){var n,i,r,o,a;return o=t.a,o.c.i==t.b?a=o.d:a=o.c,o.c.i==t.b?i=o.c:i=o.d,r=mzt(e.a,a,i),r>0&&r<e3?(n=MJt(e.a,i.i,r,e.c),oXe(e.a,i.i,-n),n>0):r<0&&-r<e3?(n=AJt(e.a,i.i,-r,e.c),oXe(e.a,i.i,n),n>0):!1}function BJt(e,t,n,i){var r,o,a,d,b,v,x,T;for(r=(t-e.d)/e.c.c.length,o=0,e.a+=n,e.d=t,T=new U(e.c);T.a<T.c.c.length;)x=c(G(T),19),v=x.g,b=x.f,Nc(x,x.i+o*r),_l(x,x.j+i*n),rb(x,x.g+r),ib(x,e.a),++o,d=x.g,a=x.f,Pve(x,new ze(d,a),new ze(v,b))}function Nnt(e,t){var n,i,r,o,a,d,b,v;for(i=new Ht(Xt(I1(t).a.Jc(),new F));hn(i);)n=c(rn(i),74),v=no(c(ce((!n.c&&(n.c=new Ct(xn,n,5,8)),n.c),0),83)),a=Z7(n),d=t.i+t.g/2,b=t.j+t.f,r=v.i+v.g/2,o=v.j,Ym(a,d),Zm(a,b),Wm(a,r),Km(a,o),Nnt(e,v)}function zJt(e){var t,n,i,r,o,a,d;if(e==null)return null;for(d=e.length,r=(d+1)/2|0,a=ke($l,i3,30,r,15,1),d%2!=0&&(a[--r]=_ye((en(d-1,e.length),e.charCodeAt(d-1)))),n=0,i=0;n<r;++n)t=_ye(ws(e,i++)),o=_ye(ws(e,i++)),a[n]=(t<<4|o)<<24>>24;return a}function FJt(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 n=e.j,i=e.d;i=i.split("/"),e.o=Sne(".",[n,Sne("$",i)]),e.b=Sne(".",[n,Sne(".",i)]),e.k=i[i.length-1]}function qJt(e,t){var n,i,r,o,a;for(a=null,o=new U(e.e.a);o.a<o.c.c.length;)if(r=c(G(o),126),r.b.a.c.length==r.g.a.c.length){for(i=r.e,a=_Gt(r),n=r.e-c(a.a,15).a+1;n<r.e+c(a.b,15).a;n++)t[n]<t[i]&&(i=n);t[i]<t[r.e]&&(--t[r.e],++t[i],r.e=i)}}function uye(e,t,n){var i,r,o,a,d,b,v,x;v=c(n,150),x=cye(e,t),o=null,i=null,x&&(i=jQ(e,x,t.i)),i!=null?o=i:(d=t.i,o=d),Kp(v,"x",o),a=null,r=null,x&&(r=TQ(e,x,t.j)),r!=null?a=r:(b=t.j,a=b),Kp(v,"y",a),Kp(v,woe,t.g),Kp(v,moe,t.f)}function _nt(e){Vie();var t,n,i,r;return i=Xh(e,pl(35)),t=i==-1?e:(hs(0,i,e.length),e.substr(0,i)),n=i==-1?null:(en(i+1,e.length+1),e.substr(i+1)),r=BLt(iEe,t),r?n!=null&&(r=lKe(r,(zt(n),n))):(r=Mnn(t),YLt(iEe,t,r),n!=null&&(r=lKe(r,n))),r}function aye(e,t,n,i){var r,o,a,d,b;for(r=zye(e,t),d=0,b=r.gc();d<b;++d)if(o=c(r.Xb(d),182),St(i,tS(ao(e,o)))){if(a=tD(ao(e,o)),n==null){if(a==null)return o}else if(St(n,a))return o}return null}function fye(e,t,n,i){var r,o,a,d,b;for(r=Die(e,t),d=0,b=r.gc();d<b;++d)if(o=c(r.Xb(d),182),St(i,tS(ao(e,o)))){if(a=tD(ao(e,o)),n==null){if(a==null)return o}else if(St(n,a))return o}return null}function HJt(e,t,n){var i,r,o,a,d,b;if(a=new P5,d=rl(e.e.Ah(),t),i=c(e.g,123),Hs(),c(t,69).vk())for(o=0;o<e.i;++o)r=i[o],d.$l(r.Jk())&&Ln(a,r);else for(o=0;o<e.i;++o)r=i[o],d.$l(r.Jk())&&(b=r.kd(),Ln(a,n?X7(e,t,o,a.i,b):b));return _be(a)}function Dnt(e){var t,n,i,r,o,a,d;if(e&&(t=e.ni(Ja),t&&(a=qn(Kf((!t.b&&(t.b=new wu((At(),zs),Zo,t)),t.b),"conversionDelegates")),a!=null))){for(d=new He,i=Sv(a,"\\w+"),r=0,o=i.length;r<o;++r)n=i[r],It(d.c,n);return d}return Mt(),Mt(),$s}function Lnt(e,t){var n,i,r,o,a,d,b,v;for(a=t==1?Sce:Oce,o=a.a.ec().Jc();o.Ob();)for(r=c(o.Pb(),87),b=c(Ei(e.f.c,r),24).Jc();b.Ob();)switch(d=c(b.Pb(),49),i=c(d.b,84),v=c(d.a,197),n=v.c,r.g){case 2:case 1:i.g.d+=n;break;case 4:case 3:i.g.c+=n}}function QJt(e,t){var n,i,r,o,a;for(n=new P7(qj),r=(ek(),Y(K(qj,1),Pe,233,0,[Fj,YE,zj,zv,h3,f3])),o=0,a=r.length;o<a;++o)i=r[o],E0e(n,i,new He);return hr(Qc(mi(jo(new Tt(null,new Et(e.b,16)),new OW),new cA),new m_e(t)),new w_e(n)),n}function Pnt(e,t){var n,i,r;for(n=1;n<e.c.length;n++){for(r=(ht(n,e.c.length),c(e.c[n],9)),i=n;i>0&&xL(t,(ht(i-1,e.c.length),c(e.c[i-1],9)),r)>0;)ku(e,i,(ht(i-1,e.c.length),c(e.c[i-1],9))),--i;ht(i,e.c.length),e.c[i]=r}t.b=new yn,t.g=new yn}function Int(e,t,n){var i,r,o;for(i=1;i<e.c.length;i++){for(o=(ht(i,e.c.length),c(e.c[i],9)),r=i;r>0&&t.Le((ht(r-1,e.c.length),c(e.c[r-1],9)),o)>0;)ku(e,r,(ht(r-1,e.c.length),c(e.c[r-1],9))),--r;ht(r,e.c.length),e.c[r]=o}n.a=new yn,n.b=new yn}function IQ(e,t,n){var i,r,o,a,d,b,v,x,T,A;for(o=t.Jc();o.Ob();)r=c(o.Pb(),19),x=r.i+r.g/2,A=r.j+r.f/2,b=e.f,a=b.i+b.g/2,d=b.j+b.f/2,v=x-a,T=A-d,i=p.Math.sqrt(v*v+T*T),v*=e.e/i,T*=e.e/i,n?(x-=v,A-=T):(x+=v,A+=T),Nc(r,x-r.g/2),_l(r,A-r.f/2)}function Hx(e){var t,n,i;if(!e.c&&e.b!=null){for(t=e.b.length-4;t>=0;t-=2)for(n=0;n<=t;n+=2)(e.b[n]>e.b[n+2]||e.b[n]===e.b[n+2]&&e.b[n+1]>e.b[n+3])&&(i=e.b[n+2],e.b[n+2]=e.b[n],e.b[n]=i,i=e.b[n+3],e.b[n+3]=e.b[n+1],e.b[n+1]=i);e.c=!0}}function kf(e){var t,n;return n=new Lu(zp(e.Pm)),n.a+="@",Zn(n,(t=zi(e)>>>0,t.toString(16))),e.Sh()?(n.a+=" (eProxyURI: ",Ec(n,e.Yh()),e.Hh()&&(n.a+=" eClass: ",Ec(n,e.Hh())),n.a+=")"):e.Hh()&&(n.a+=" (eClass: ",Ec(n,e.Hh()),n.a+=")"),n.a}function K7(e){var t,n,i,r;if(e.e)throw V(new co((x1(fce),zre+fce.k+Fre)));for(e.d==(_r(),$h)&&iG(e,po),n=new U(e.a.a);n.a<n.c.c.length;)t=c(G(n),321),t.g=t.i;for(r=new U(e.a.b);r.a<r.c.c.length;)i=c(G(r),60),i.i=Gr;return e.b.af(e),e}function GJt(e,t){var n,i,r,o,a,d,b,v,x;for(b=Nd(e.c-e.b&e.a.length-1),v=null,x=null,o=new o7(e);o.a!=o.b;)r=c(JH(o),9),n=(d=c($(r,(Ie(),ih)),12),d?d.i:null),i=(a=c($(r,Wa),12),a?a.i:null),(v!=n||x!=i)&&(ont(b,t),v=n,x=i),It(b.c,r);ont(b,t)}function Rnt(e){switch(e.g){case 0:return new Hz((ab(),DP));case 1:return new Hz((ab(),IJ));case 2:return new oz;case 3:return new GN;default:throw V(new qt("No implementation is available for the crossing minimizer "+(e.f!=null?e.f:""+e.g)))}}function UJt(e,t){var n,i,r,o,a;if(t<2*e.b)throw V(new qt("The knot vector must have at least two time the dimension elements."));for(e.f=1,r=0;r<e.b;r++)Qe(e.e,0);for(a=t+1-2*e.b,n=a,o=1;o<a;o++)Qe(e.e,o/n);if(e.d)for(i=0;i<e.b;i++)Qe(e.e,1)}function $nt(e,t){var n,i,r,o,a,d,b,v,x;if(v=t,x=c(EH(yee(e.o),v),19),!x)throw r=j1(v,hd),d="Unable to find elk node for json object '"+r,b=d+"' Panic!",V(new Jh(b));o=Vm(v,"edges"),n=new L$e(e,x),Qtt(n.a,n.b,o),a=Vm(v,xoe),i=new sLe(e),VZe(i.a,a)}function Bnt(e,t,n,i){var r,o,a,d,b;if(i!=null){if(r=e.d[t],r){for(o=r.g,b=r.i,d=0;d<b;++d)if(a=c(o[d],138),a.yi()==n&&xi(i,a.jd()))return d}}else if(r=e.d[t],r){for(o=r.g,b=r.i,d=0;d<b;++d)if(a=c(o[d],138),xe(a.jd())===xe(i))return d}return-1}function qS(e,t){var n,i,r;return n=t==null?No(lo(e.f,null)):TT(e.i,t),ae(n,244)?(r=c(n,244),r.wi()==null,r):ae(n,496)?(i=c(n,2016),r=i.a,r&&(r.yb==null||(t==null?bl(e.f,null,r):nw(e.i,t,r))),r):null}function JJt(e){Mye();var t,n,i,r,o,a,d;if(e==null||(r=e.length,r%2!=0))return null;for(t=gH(e),o=r/2|0,n=ke($l,i3,30,o,15,1),i=0;i<o;i++){if(a=aM[t[i*2]],a==-1||(d=aM[t[i*2+1]],d==-1))return null;n[i]=(a<<4|d)<<24>>24}return n}function VJt(e,t,n){var i,r,o;if(r=c(eo(e.i,t),319),!r)if(r=new GVe(e.d,t,n),A4(e.i,t,r),d2e(t))XTt(e.a,t.c,t.b,r);else switch(o=qGt(t),i=c(eo(e.p,o),256),o.g){case 1:case 3:r.j=!0,vY(i,t.b,r);break;case 4:case 2:r.k=!0,vY(i,t.c,r)}return r}function XJt(e,t,n,i){var r,o,a,d,b,v;if(d=new P5,b=rl(e.e.Ah(),t),r=c(e.g,123),Hs(),c(t,69).vk())for(a=0;a<e.i;++a)o=r[a],b.$l(o.Jk())&&Ln(d,o);else for(a=0;a<e.i;++a)o=r[a],b.$l(o.Jk())&&(v=o.kd(),Ln(d,i?X7(e,t,a,d.i,v):v));return l2e(d,n)}function znt(e,t){var n,i,r,o,a,d,b,v;if(r=e.b[t.p],r>=0)return r;for(o=1,d=new U(t.j);d.a<d.c.c.length;)for(a=c(G(d),12),i=new U(a.g);i.a<i.c.c.length;)n=c(G(i),17),v=n.d.i,t!=v&&(b=znt(e,v),o=p.Math.max(o,b+1));return ozt(e,t,o),o}function Fnt(e,t){var n,i,r,o,a,d,b,v;if(r=e.b[t.p],r>=0)return r;for(o=1,d=new U(t.j);d.a<d.c.c.length;)for(a=c(G(d),12),i=new U(a.e);i.a<i.c.c.length;)n=c(G(i),17),v=n.c.i,t!=v&&(b=Fnt(e,v),o=p.Math.max(o,b+1));return zFt(e,t,o),o}function WJt(e){var t,n,i,r;for(r=e.length,t=null,i=0;i<r;i++)n=(en(i,e.length),e.charCodeAt(i)),Xh(".*+?{[()|\\^$",pl(n))>=0?(t||(t=new bT,i>0&&Zs(t,(hs(0,i,e.length),e.substr(0,i)))),t.a+="\\",K6(t,n&Dr)):t&&K6(t,n&Dr);return t?t.a:e}function KJt(e){var t,n,i;for(n=new U(e.a.a.b);n.a<n.c.c.length;)t=c(G(n),84),i=(zt(0),0),i>0&&(!(v1(e.a.c)&&t.n.d)&&!(mx(e.a.c)&&t.n.b)&&(t.g.d-=p.Math.max(0,i/2-.5)),!(v1(e.a.c)&&t.n.a)&&!(mx(e.a.c)&&t.n.c)&&(t.g.a+=p.Math.max(0,i-1)))}function qnt(e,t,n){var i,r;if((e.c-e.b&e.a.length-1)==2)t==(Ue(),Kt)||t==nn?(vH(c(j7(e),16),(qu(),Yd)),vH(c(j7(e),16),cp)):(vH(c(j7(e),16),(qu(),cp)),vH(c(j7(e),16),Yd));else for(r=new o7(e);r.a!=r.b;)i=c(JH(r),16),vH(i,n)}function YJt(e,t,n){var i,r,o,a,d,b,v,x,T;for(x=-1,T=0,d=t,b=0,v=d.length;b<v;++b){for(a=d[b],i=new UHe(e,x==-1?t[0]:t[x],n,(M7(),_J)),r=0;r<a.length;r++)for(o=r+1;o<a.length;o++)ki(a[r],(Ie(),Ri))&&ki(a[o],Ri)&&xL(i,a[r],a[o])>0&&++T;++x}return T}function ZJt(e,t,n){var i;if(n.Tg("XPlacer",1),e.b=de(be(Se(t,(In(),oh)))),e.a=Ze(Ye(Se(t,(Z4(),uae)))),(!t.a&&(t.a=new _e(_n,t,10,11)),t.a).i!=0)switch(i=c(Se(t,(zd(),BC)),19),c(Se(t,aae),389).g){case 0:Cot(e,i);break;case 1:Eot(e,i)}n.Ug()}function eVt(e,t){var n,i,r,o,a,d,b;for(r=U6(new Zde(e)),d=new os(r,r.c.length),o=U6(new Zde(t)),b=new os(o,o.c.length),a=null;d.b>0&&b.b>0&&(n=(gn(d.b>0),c(d.a.Xb(d.c=--d.b),19)),i=(gn(b.b>0),c(b.a.Xb(b.c=--b.b),19)),n==i);)a=n;return a}function tVt(e,t){var n,i,r,o;for(t.Tg("Self-Loop pre-processing",1),i=new U(e.a);i.a<i.c.c.length;)n=c(G(i),9),ZBt(n)&&(r=(o=new FYe(n),Me(n,(Ie(),Lw),o),OKt(o),o),hr(Qc(jo(new Tt(null,new Et(r.d,16)),new QW),new GW),new l1),vXt(r));t.Ug()}function Hnt(e,t,n){var i,r,o,a;gGe(e,t)>gGe(e,n)?(i=Io(n,(Ue(),nn)),e.d=i.dc()?0:KZ(c(i.Xb(0),12)),a=Io(t,Yt),e.b=a.dc()?0:KZ(c(a.Xb(0),12))):(r=Io(n,(Ue(),Yt)),e.d=r.dc()?0:KZ(c(r.Xb(0),12)),o=Io(t,nn),e.b=o.dc()?0:KZ(c(o.Xb(0),12)))}function nVt(e){var t,n,i,r,o,a,d,b;t=!0,r=null,o=null;e:for(b=new U(e.a);b.a<b.c.c.length;)for(d=c(G(b),9),i=new Ht(Xt(vr(d).a.Jc(),new F));hn(i);){if(n=c(rn(i),17),r&&r!=d){t=!1;break e}if(r=d,a=n.c.i,o&&o!=a){t=!1;break e}o=a}return t}function iVt(e,t,n){var i,r,o,a,d,b,v,x;for(x=(i=c(t.e&&t.e(),10),new da(i,c(gf(i,i.length),10),0)),b=Sv(n,"[\\[\\]\\s,]+"),o=b,a=0,d=o.length;a<d;++a)if(r=o[a],wv(r).length!=0){if(v=Gtt(e,r),v==null)return null;yf(x,c(v,23))}return x}function Qnt(e,t){var n,i,r,o;for(n=e.o.a,o=c(c(Ei(e.r,t),24),85).Jc();o.Ob();)r=c(o.Pb(),116),r.e.a=n*de(be(r.b.mf(SU))),r.e.b=(i=r.b,i.nf((In(),au))?i.$f()==(Ue(),Kt)?-i.Kf().b-de(be(i.mf(au))):de(be(i.mf(au))):i.$f()==(Ue(),Kt)?-i.Kf().b:0)}function rVt(e,t,n){var i,r,o,a,d,b;for(o=-1,d=-1,a=0;a<t.c.length&&(r=(ht(a,t.c.length),c(t.c[a],341)),!(r.c>e.c));a++)r.a>=e.s&&(o<0&&(o=a),d=a);return b=(e.s+e.c)/2,o>=0&&(i=qWt(e,t,o,d),b=C8t((ht(i,t.c.length),c(t.c[i],341))),XUt(t,i,n)),b}function $n(e,t,n){var i,r,o,a,d,b,v;for(a=(o=new vN,o),$me(a,(zt(t),t)),v=(!a.b&&(a.b=new wu((At(),zs),Zo,a)),a.b),b=1;b<n.length;b+=2)eL(v,n[b-1],n[b]);for(i=(!e.Ab&&(e.Ab=new _e(oi,e,0,3)),e.Ab),d=0;d<0;++d)r=YAt(c(ce(i,i.i-1),594)),i=r;Ln(i,a)}function hye(e,t,n,i,r,o){var a,d,b;if(!r[t.a]){for(r[t.a]=!0,a=i,!a&&(a=new iH),Qe(a.e,t),b=o[t.a].Jc();b.Ob();)d=c(b.Pb(),292),!(d.d==n||d.c==n)&&(d.c!=t&&hye(e,d.c,t,a,r,o),d.d!=t&&hye(e,d.d,t,a,r,o),Qe(a.c,d),Or(a.d,d.b));return a}return null}function sVt(e){var t,n,i,r,o,a,d;for(t=0,r=new U(e.e);r.a<r.c.c.length;)i=c(G(r),17),n=Mx(new Tt(null,new Et(i.b,16)),new tA),n&&++t;for(a=new U(e.g);a.a<a.c.c.length;)o=c(G(a),17),d=Mx(new Tt(null,new Et(o.b,16)),new pR),d&&++t;return t>=2}function oVt(e,t,n,i,r){var o,a,d,b,v,x;for(o=e.c.d.j,a=c(bc(n,0),8),x=1;x<n.b;x++)v=c(bc(n,x),8),rr(i,a,i.c.b,i.c),d=y1(Oi(new Ms(a),v),.5),b=y1(new Fee(vwe(o)),r),Oi(d,b),rr(i,d,i.c.b,i.c),a=v,o=t==0?WH(o):qwe(o);ei(i,(gn(n.b!=0),c(n.c.b.c,8)))}function cVt(e){yv();var t,n,i;return n=Li(Xu,Y(K(Ks,1),Pe,96,0,[Df])),!(ND(Fq(n,e))>1||(t=Li(Nf,Y(K(Ks,1),Pe,96,0,[X1,_f])),ND(Fq(t,e))>1)||(i=Li(Lf,Y(K(Ks,1),Pe,96,0,[Zd,Ya])),ND(Fq(i,e))>1))}function Gnt(e){var t,n,i,r,o,a,d;for(t=0,i=new U(e.a);i.a<i.c.c.length;)for(n=c(G(i),9),o=new Ht(Xt(Fi(n).a.Jc(),new F));hn(o);)r=c(rn(o),17),e==r.d.i.c&&r.c.j==(Ue(),Yt)&&(a=mh(r.c).b,d=mh(r.d).b,t=p.Math.max(t,p.Math.abs(d-a)));return t}function dye(e,t,n){var i,r,o;for(o=new U(e.t);o.a<o.c.c.length;)i=c(G(o),275),i.b.s<0&&i.c>0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&ei(t,i.b));for(r=new U(e.i);r.a<r.c.c.length;)i=c(G(r),275),i.a.s<0&&i.c>0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&ei(n,i.a))}function lVt(e){var t,n,i,r,o,a;for(a=c(Se(e,(In(),Ih)),100),n=0,i=0,o=new on((!e.a&&(e.a=new _e(_n,e,10,11)),e.a));o.e!=o.i.gc();)r=c(un(o),19),t=c(Se(r,V1),125),n<r.i+r.g+t.c&&(n=r.i+r.g+t.c),i<r.j+r.f+t.a&&(i=r.j+r.f+t.a);rb(e,n+a.c),ib(e,i+a.a)}function RQ(e){var t,n,i,r,o;if(e.g==null&&(e.d=e._i(e.f),Ln(e,e.d),e.c))return o=e.f,o;if(t=c(e.g[e.i-1],51),r=t.Pb(),e.e=t,n=e._i(r),n.Ob())e.d=n,Ln(e,n);else for(e.d=null;!t.Ob()&&(mr(e.g,--e.i,null),e.i!=0);)i=c(e.g[e.i-1],51),t=i;return r}function uVt(e,t){var n,i,r,o,a,d;if(i=t,r=i.Jk(),R1(e.e,r)){if(r.Qi()&&Xq(e,r,i.kd()))return!1}else for(d=rl(e.e.Ah(),r),n=c(e.g,123),o=0;o<e.i;++o)if(a=n[o],d.$l(a.Jk()))return xi(a,i)?!1:(c($x(e,o,t),76),!0);return Ln(e,t)}function Jt(){Jt=Z,ur=new g4("NORMAL",0),Cr=new g4("LONG_EDGE",1),Ar=new g4("EXTERNAL_PORT",2),Ic=new g4("NORTH_SOUTH_PORT",3),ac=new g4("LABEL",4),_h=new g4("BREAKING_POINT",5),fP=new g4("PLACEHOLDER",6),WE=new g4("NONSHIFTING_PLACEHOLDER",7)}function aVt(e,t,n,i){var r,o,a,d;for(r=new Oh(e),pu(r,(Jt(),ac)),Me(r,(Ie(),Si),t),Me(r,rC,i),Me(r,(Ge(),ar),(es(),kc)),Me(r,ih,t.c),Me(r,Wa,t.d),Sie(t,r),d=p.Math.floor(n/2),a=new U(r.j);a.a<a.c.c.length;)o=c(G(a),12),o.n.b=d;return r}function uL(){uL=Z,Vce=new fx(u3e,0),O6e=new fx(Kct,1),Wce=new fx(Yre,2),Kce=new fx(Jre,3),Xce=new fx("GREEDY_MODEL_ORDER",4),Yce=new fx("SCC_CONNECTIVITY",5),bP=new fx("SCC_NODE_TYPE",6),Jce=new fx("DFS_NODE_ORDER",7),Uce=new fx("BFS_NODE_ORDER",8)}function Unt(e,t,n){var i,r,o,a,d;for(n.Tg("ELK Force",1),Ze(Ye(Se(t,(Sf(),oOe))))||l7((i=new j6((m0(),new mg(t))),i)),d=zWe(t),Hqt(d),j$t(e,c($(d,sOe),429)),a=Hrt(e.a,d),o=a.Jc();o.Ob();)r=c(o.Pb(),238),KKt(e.b,r,n.dh(1/a.gc()));d=sot(a),got(d),n.Ug()}function gye(e,t,n){switch(n.g){case 1:return new ze(t.a,p.Math.min(e.d.b,t.b));case 2:return new ze(p.Math.max(e.c.a,t.a),t.b);case 3:return new ze(t.a,p.Math.max(e.c.b,t.b));case 4:return new ze(p.Math.min(t.a,e.d.a),t.b)}return new ze(t.a,t.b)}function fVt(e,t){var n,i,r,o,a;if(t.Tg("Breaking Point Processor",1),Wen(e),Ze(Ye($(e,(Ge(),Tje))))){for(r=new U(e.b);r.a<r.c.c.length;)for(i=c(G(r),26),n=0,a=new U(i.a);a.a<a.c.c.length;)o=c(G(a),9),o.p=n++;FYt(e),fit(e,!0),fit(e,!1)}t.Ug()}function $Q(e){var t,n,i;for(t=Nd(1+(!e.c&&(e.c=new _e(fu,e,9,9)),e.c).i),Qe(t,(!e.d&&(e.d=new Ct($i,e,8,5)),e.d)),i=new on((!e.c&&(e.c=new _e(fu,e,9,9)),e.c));i.e!=i.i.gc();)n=c(un(i),127),Qe(t,(!n.d&&(n.d=new Ct($i,n,8,5)),n.d));return Bn(t),new FT(t)}function I1(e){var t,n,i;for(t=Nd(1+(!e.c&&(e.c=new _e(fu,e,9,9)),e.c).i),Qe(t,(!e.e&&(e.e=new Ct($i,e,7,4)),e.e)),i=new on((!e.c&&(e.c=new _e(fu,e,9,9)),e.c));i.e!=i.i.gc();)n=c(un(i),127),Qe(t,(!n.e&&(n.e=new Ct($i,n,7,4)),n.e));return Bn(t),new FT(t)}function hVt(e){var t,n,i,r;if(e==null)return null;if(i=Lc(e,!0),r=rP.length,St(i.substr(i.length-r,r),rP)){if(n=i.length,n==4){if(t=(en(0,i.length),i.charCodeAt(0)),t==43)return OEe;if(t==45)return pyt}else if(n==3)return OEe}return mv(i)}function dVt(e,t,n,i){var r,o,a,d,b,v,x,T,A;for(T=i?(Ue(),Yt):(Ue(),nn),r=!1,b=t[n],v=0,x=b.length;v<x;++v)d=b[v],!S4(c($(d,(Ge(),ar)),103))&&(a=d.e,A=!Io(d,T).dc()&&!!a,A&&(o=sve(a),e.b=new cve(o,i?0:o.length-1)),r=r|eWt(e,d,T,A));return r}function Jnt(e,t,n,i){var r,o,a;if(a=X2e(t,n),It(i.c,t),e.j[a.p]==-1||e.j[a.p]==2||e.a[t.p])return i;for(e.j[a.p]=-1,o=new Ht(Xt(td(a).a.Jc(),new F));hn(o);)if(r=c(rn(o),17),!(!(!ys(r)&&!(!ys(r)&&r.c.i.c==r.d.i.c))||r==t))return Jnt(e,r,a,i);return i}function gVt(e){var t,n,i,r;for(t=0,n=0,r=new U(e.j);r.a<r.c.c.length;)if(i=c(G(r),12),t=Gn(Ns(t,aJe(mi(new Tt(null,new Et(i.e,16)),new JO)))),n=Gn(Ns(n,aJe(mi(new Tt(null,new Et(i.g,16)),new m8)))),t>1||n>1)return 2;return t+n==1?2:0}function cu(e,t){var n,i,r,o,a,d;return o=e.a*Ire+e.b*1502,d=e.b*Ire+11,n=p.Math.floor(d*DL),o+=n,d-=n*Fxe,o%=Fxe,e.a=o,e.b=d,t<=24?p.Math.floor(e.a*Jke[t]):(r=e.a*(1<<t-24),a=p.Math.floor(e.b*Vke[t]),i=r+a,i>=2147483648&&(i-=4294967296),i)}function Vnt(e,t,n){var i,r,o,a,d,b,v;for(o=new He,v=new _i,a=new _i,AYt(e,v,a,t),fen(e,v,a,t,n),b=new U(e);b.a<b.c.c.length;)for(d=c(G(b),117),r=new U(d.k);r.a<r.c.c.length;)i=c(G(r),135),(!t||i.c==(Vf(),ip))&&d.g>i.b.g&&It(o.c,i);return o}function pVt(e,t,n){var i,r,o,a,d,b;for(d=e.c,a=(n.q?n.q:(Mt(),Mt(),Vd)).vc().Jc();a.Ob();)o=c(a.Pb(),45),i=!D6(mi(new Tt(null,new Et(d,16)),new S6(new v$e(t,o)))).zd((Fp(),Ok)),i&&(b=o.kd(),ae(b,4)&&(r=p2e(b),r!=null&&(b=r)),t.of(c(o.jd(),149),b))}function bVt(e,t){var n,i,r,o;for(t.Tg("Resize child graph to fit parent.",1),i=new U(e.b);i.a<i.c.c.length;)n=c(G(i),26),Or(e.a,n.a),n.a.c.length=0;for(o=new U(e.a);o.a<o.c.c.length;)r=c(G(o),9),zr(r,null);e.b.c.length=0,IXt(e),e.e&&MKt(e.e,e),t.Ug()}function mVt(e,t){var n,i,r,o,a;for(t.Tg("Edge joining",1),n=Ze(Ye($(e,(Ge(),Ble)))),r=new U(e.b);r.a<r.c.c.length;)for(i=c(G(r),26),a=new os(i.a,0);a.b<a.d.gc();)o=(gn(a.b<a.d.gc()),c(a.d.Xb(a.c=a.b++),9)),o.k==(Jt(),Cr)&&(Kie(o,n),nu(a));t.Ug()}function wVt(e,t,n){var i,r;if(c7(e.b),Iu(e.b,(HD(),tV),(kT(),HP)),Iu(e.b,nV,t.g),Iu(e.b,iV,t.a),e.a=aE(e.b,t),n.Tg("Compaction by shrinking a tree",e.a.c.length),t.i.c.length>1)for(r=new U(e.a);r.a<r.c.c.length;)i=c(G(r),43),i.If(t,n.dh(1));n.Ug()}function pye(e,t,n){var i,r,o;if(o=Jx((Ll(),bs),e.Ah(),t),o){if(Hs(),!c(o,69).vk()&&(o=P4(ao(bs,o)),!o))throw V(new qt(J0+t.ve()+AE));r=(i=e.Fh(o),c(i>=0?e.Ih(i,!0,!0):uw(e,o,!0),164)),c(r,222).Vl(t,n)}else throw V(new qt(J0+t.ve()+AE))}function vVt(e,t,n){var i,r,o,a,d,b;if(b=x0e(e,c(Ut(e.e,t),19)),d=null,b)switch(b.g){case 3:i=Hge(e,Y2(t)),d=(zt(n),n+(zt(i),i));break;case 2:r=Hge(e,Y2(t)),a=(zt(n),n+(zt(r),r)),o=Hge(e,c(Ut(e.e,t),19)),d=a-(zt(o),o);break;default:d=n}else d=n;return d}function yVt(e,t,n){var i,r,o,a,d,b;if(b=x0e(e,c(Ut(e.e,t),19)),d=null,b)switch(b.g){case 3:i=Qge(e,Y2(t)),d=(zt(n),n+(zt(i),i));break;case 2:r=Qge(e,Y2(t)),a=(zt(n),n+(zt(r),r)),o=Qge(e,c(Ut(e.e,t),19)),d=a-(zt(o),o);break;default:d=n}else d=n;return d}function BQ(e,t){var n,i,r,o,a;if(t){for(o=ae(e.Cb,89)||ae(e.Cb,104),a=!o&&ae(e.Cb,336),i=new on((!t.a&&(t.a=new WT(t,Ys,t)),t.a));i.e!=i.i.gc();)if(n=c(un(i),88),r=WQ(n),o?ae(r,89):a?ae(r,160):r)return r;return o?(At(),rf):(At(),Fh)}else return null}function xVt(e,t){var n,i,r,o,a;for(n=new He,r=jo(new Tt(null,new Et(e,16)),new A5),o=jo(new Tt(null,new Et(e,16)),new v8),a=iIt(OPt(K2(_Vt(Y(K(Ynn,1),Pt,840,0,[r,o])),new c$))),i=1;i<a.length;i++)a[i]-a[i-1]>=2*t&&Qe(n,new UZ(a[i-1]+t,a[i]-t));return n}function Xnt(e,t,n){var i,r,o,a,d,b,v,x;if(n)for(o=n.a.length,i=new Up(o),d=(i.b-i.a)*i.c<0?(v0(),bp):new k0(i);d.Ob();)a=c(d.Pb(),15),r=sS(n,a.a),r&&(b=CLt(e,(v=(b0(),x=new g1e,x),t&&bye(v,t),v),r),dS(b,j1(r,hd)),CQ(r,b),$ve(r,b),Xte(e,r,b))}function zQ(e){var t,n,i,r,o,a;if(!e.j){if(a=new dK,t=oM,o=t.a.yc(e,t),o==null){for(i=new on(wo(e));i.e!=i.i.gc();)n=c(un(i),29),r=zQ(n),dr(a,r),Ln(a,n);t.a.Ac(e)!=null}av(a),e.j=new bx((c(ce(De((O0(),Gt).o),11),20),a.i),a.g),iu(e).b&=-33}return e.j}function kVt(e){var t,n,i,r;if(e==null)return null;if(i=Lc(e,!0),r=rP.length,St(i.substr(i.length-r,r),rP)){if(n=i.length,n==4){if(t=(en(0,i.length),i.charCodeAt(0)),t==43)return SEe;if(t==45)return byt}else if(n==3)return SEe}return new o1e(i)}function OVt(e){var t,n,i;return n=e.l,(n&n-1)!=0||(i=e.m,(i&i-1)!=0)||(t=e.h,(t&t-1)!=0)||t==0&&i==0&&n==0?-1:t==0&&i==0&&n!=0?Nme(n):t==0&&i!=0&&n==0?Nme(i)+22:t!=0&&i==0&&n==0?Nme(t)+44:-1}function Qx(e,t){var n,i,r,o,a;for(r=t.a&e.f,o=null,i=e.b[r];;i=i.b){if(i==t){o?o.b=t.b:e.b[r]=t.b;break}o=i}for(a=t.f&e.f,o=null,n=e.c[a];;n=n.d){if(n==t){o?o.d=t.d:e.c[a]=t.d;break}o=n}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 SVt(e,t){var n;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?(n=c(za(c($4(e.b,t.a),263)),263),n.a=0,++e.c):(n=c(za(c(Ut(e.b,t.a),263)),263),--n.a,t.e?t.e.c=t.c:n.b=c(za(t.c),501),t.c?t.c.e=t.e:n.c=c(za(t.e),501)),--e.d}function kie(e,t){var n,i,r,o;for(o=new os(e,0),n=(gn(o.b<o.d.gc()),c(o.d.Xb(o.c=o.b++),148));o.b<o.d.gc();)i=(gn(o.b<o.d.gc()),c(o.d.Xb(o.c=o.b++),148)),r=new lpe(i.c,n.d,t),gn(o.b>0),o.a.Xb(o.c=--o.b),H2(o,r),gn(o.b<o.d.gc()),o.d.Xb(o.c=o.b++),r.a=!1,n=i}function Wnt(e){var t,n,i,r,o,a;for(r=c($(e,(Ie(),lJ)),12),a=new U(e.j);a.a<a.c.c.length;){for(o=c(G(a),12),i=new U(o.g);i.a<i.c.c.length;)return t=c(G(i),17),ss(t,r),o;for(n=new U(o.e);n.a<n.c.c.length;)return t=c(G(n),17),Os(t,r),o}return null}function Knt(e,t,n){var i,r,o,a,d,b;for(b=c(z2(e.a,t),15).a,n?ove(e.a,$e(b+1),t):ove(e.a,$e(b-1),t),a=new Ad,r=new Ht(Xt((n?Fi(t):vr(t)).a.Jc(),new F));hn(r);)i=c(rn(r),17),n?o=i.d.i:o=i.c.i,xe(z2(e.a,o))===xe(z2(e.a,t))&&(d=a.a.yc(o,a),d==null);return a}function jVt(e,t,n){var i,r;i=tc(n.q.getTime()),_c(i,0)<0?(r=Fg-Gn(kne(Ag(i),Fg)),r==Fg&&(r=0)):r=Gn(kne(i,Fg)),t==1?(r=p.Math.min((r+50)/100|0,9),Xp(e,48+r&Dr)):t==2?(r=p.Math.min((r+5)/10|0,99),$d(e,r,2)):($d(e,r,3),t>3&&$d(e,0,t-3))}function TVt(e){var t,n,i,r;return xe($(e,(Ge(),Qv)))===xe((D1(),Yg))?!e.e&&xe($(e,jP))!==xe((wS(),mP)):(i=c($(e,Ele),303),r=Ze(Ye($(e,Cle)))||xe($(e,hC))===xe((I7(),pP)),t=c($(e,qSe),15).a,n=e.a.c.length,!r&&i!=(wS(),mP)&&(t==0||t>n))}function EVt(e,t){var n,i,r,o,a,d,b;for(r=e.Jc();r.Ob();)for(i=c(r.Pb(),9),d=new mc,Do(d,i),$r(d,(Ue(),nn)),Me(d,(Ie(),hJ),(Bt(),!0)),a=t.Jc();a.Ob();)o=c(a.Pb(),9),b=new mc,Do(b,o),$r(b,Yt),Me(b,hJ,!0),n=new Gm,Me(n,hJ,!0),Os(n,d),ss(n,b)}function CVt(e){var t,n;for(n=0;n<e.c.length&&!(lqe((ht(n,e.c.length),c(e.c[n],114)))>0);n++);if(n>0&&n<e.c.length-1)return n;for(t=0;t<e.c.length&&!(lqe((ht(t,e.c.length),c(e.c[t],114)))>0);t++);return t>0&&n<e.c.length-1?t:e.c.length/2|0}function Ynt(e,t){var n,i,r,o,a,d,b;for(r=0,a=new U(t.a);a.a<a.c.c.length;)for(o=c(G(a),9),r+=o.o.b+o.d.a+o.d.d+e.e,i=new Ht(Xt(vr(o).a.Jc(),new F));hn(i);)n=c(rn(i),17),n.c.i.k==(Jt(),Ic)&&(b=n.c.i,d=c($(b,(Ie(),Si)),9),r+=d.o.b+d.d.a+d.d.d);return r}function MVt(e,t){var n,i,r,o;t.Tg("Min Size Preprocessing",1),i=Dve(e),Wi(e)&&(n=(m0(),new mg(Wi(e))),o=new JF(Wi(e)?new mg(Wi(e)):null,e),r=yxe(n,o,!1,!0),i.a=p.Math.max(i.a,r.a),i.b=p.Math.max(i.b,r.b)),ri(e,(Fd(),LC),i.a),ri(e,YJ,i.b),t.Ug()}function Znt(e,t){var n,i;if(t!=e.Cb||e.Db>>16!=6&&t){if(IS(e,t))throw V(new qt(NE+ant(e)));i=null,e.Cb&&(i=(n=e.Db>>16,n>=0?R2e(e,i):e.Cb.Qh(e,-1-n,null,i))),t&&(i=K4(t,e,6,i)),i=O0e(e,t,i),i&&i.mj()}else(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,6,t,t))}function FQ(e,t){var n,i;if(t!=e.Cb||e.Db>>16!=3&&t){if(IS(e,t))throw V(new qt(NE+rst(e)));i=null,e.Cb&&(i=(n=e.Db>>16,n>=0?F2e(e,i):e.Cb.Qh(e,-1-n,null,i))),t&&(i=K4(t,e,12,i)),i=k0e(e,t,i),i&&i.mj()}else(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,3,t,t))}function bye(e,t){var n,i;if(t!=e.Cb||e.Db>>16!=9&&t){if(IS(e,t))throw V(new qt(NE+Yit(e)));i=null,e.Cb&&(i=(n=e.Db>>16,n>=0?B2e(e,i):e.Cb.Qh(e,-1-n,null,i))),t&&(i=K4(t,e,9,i)),i=S0e(e,t,i),i&&i.mj()}else(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,9,t,t))}function HS(e){var t,n,i,r,o;if(i=Qa(e),o=e.j,o==null&&i)return e.Hk()?null:i.gk();if(ae(i,160)){if(n=i.hk(),n&&(r=n.ti(),r!=e.i)){if(t=c(i,160),t.lk())try{e.g=r.qi(t,o)}catch(a){if(a=kr(a),ae(a,81))e.g=null;else throw V(a)}e.i=r}return e.g}return null}function eit(e){var t;return t=new He,Qe(t,new d4(new ze(e.c,e.d),new ze(e.c+e.b,e.d))),Qe(t,new d4(new ze(e.c,e.d),new ze(e.c,e.d+e.a))),Qe(t,new d4(new ze(e.c+e.b,e.d+e.a),new ze(e.c+e.b,e.d))),Qe(t,new d4(new ze(e.c+e.b,e.d+e.a),new ze(e.c,e.d+e.a))),t}function AVt(e){var t,n,i,r;for(i=e.a.d.j,r=e.c.d.j,n=new U(e.i.d);n.a<n.c.c.length;)t=c(G(n),70),Me(t,(Ge(),x3),null);i==(Ue(),Kt)?Tg(e,Kt,(xf(),$j),e.a):r==Kt?Tg(e,Kt,(xf(),Bj),e.c):i==mn?Tg(e,mn,(xf(),Bj),e.a):r==mn&&Tg(e,mn,(xf(),$j),e.c)}function NVt(e){var t,n,i;if(e==null)return ml;try{return To(e)}catch(r){if(r=kr(r),ae(r,102))return t=r,i=zp(Ou(e))+"@"+(n=(kg(),m2e(e)>>>0),n.toString(16)),Yzt(t$t(),(R6(),"Exception during lenientFormat for "+i),t),"<"+i+" threw "+zp(t.Pm)+">";throw V(r)}}function _Vt(e){var t,n,i,r,o,a,d,b,v;for(i=!1,t=336,n=0,o=new Wze(e.length),d=e,b=0,v=d.length;b<v;++b)a=d[b],i=i|(P0(a),!1),r=(S0(a),a.a),Qe(o.a,Bn(r)),t&=r.wd(),n=F$t(n,r.xd());return c(c(cHe(new Tt(null,oie(new Et(b2e(o.a),16),new _,t,n)),new jz(e)),684),840)}function DVt(e,t,n,i){var r,o,a,d;r=OYe(e,t,n),o=OYe(e,n,t),a=c(Ut(e.c,t),117),d=c(Ut(e.c,n),117),r<o?new Yp((Vf(),ey),a,d,o-r):o<r?new Yp((Vf(),ey),d,a,r-o):(r!=0||!(!t.i||!n.i)&&i[t.i.c][n.i.c])&&(new Yp((Vf(),ey),a,d,0),new Yp(ey,d,a,0))}function LVt(e,t,n){var i,r,o,a,d;for(n.Tg("Breaking Point Removing",1),e.a=c($(t,(Ge(),U1)),225),o=new U(t.b);o.a<o.c.c.length;)for(r=c(G(o),26),d=new U(Zp(r.a));d.a<d.c.c.length;)a=c(G(d),9),zVe(a)&&(i=c($(a,(Ie(),Nw)),318),!i.d&&Wst(e,i));n.Ug()}function Y7(){Y7=Z,M3=new C_("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),zk=new C_("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),$C=new C_("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),RC=new C_("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),qP=new C_("WHOLE_DRAWING",4)}function PVt(e){var t,n,i,r;for(i=new lv(new Rp(e.b).a);i.b;)n=_x(i),r=c(n.jd(),12),t=c(n.kd(),9),Me(t,(Ie(),Si),r),Me(r,Jl,t),Me(r,xP,(Bt(),!0)),$r(r,c($(t,Yo),64)),$(t,Yo),Me(r.i,(Ge(),ar),(es(),p9)),c($(Vr(r.i),Rc),24).Ec((Us(),Uj))}function IVt(e){var t,n,i,r,o,a,d;for(o=new _i,r=new U(e.d.a);r.a<r.c.c.length;)i=c(G(r),126),i.b.a.c.length==0&&rr(o,i,o.c.b,o.c);if(o.b>1)for(t=Im((n=new Bp,++e.b,n),e.d),d=Pn(o,0);d.b!=d.d.c;)a=c(Dn(d),126),Of(uf(ff(hf(af(new Ra,1),0),t),a))}function qQ(e,t){var n,i;if(t!=e.Cb||e.Db>>16!=11&&t){if(IS(e,t))throw V(new qt(NE+Rye(e)));i=null,e.Cb&&(i=(n=e.Db>>16,n>=0?q2e(e,i):e.Cb.Qh(e,-1-n,null,i))),t&&(i=K4(t,e,10,i)),i=L0e(e,t,i),i&&i.mj()}else(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,11,t,t))}function RVt(e,t,n){var i,r,o,a,d,b;if(o=0,a=0,e.c)for(b=new U(e.d.i.j);b.a<b.c.c.length;)d=c(G(b),12),o+=d.e.c.length;else o=1;if(e.d)for(b=new U(e.c.i.j);b.a<b.c.c.length;)d=c(G(b),12),a+=d.g.c.length;else a=1;return r=ks(Y_(a-o)),i=(n+t)/2+(n-t)*(.4*r),i}function $Vt(e,t){var n,i,r,o,a,d;for(t.Tg("Partition postprocessing",1),i=new U(e.b);i.a<i.c.c.length;)for(n=c(G(i),26),o=new U(n.a);o.a<o.c.c.length;)for(r=c(G(o),9),d=new U(r.j);d.a<d.c.c.length;)a=c(G(d),12),Ze(Ye($(a,(Ie(),hJ))))&&t7(d);t.Ug()}function BVt(e){bv();var t,n;if(e.Gc((Ue(),Bo)))throw V(new qt("Port sides must not contain UNDEFINED"));switch(e.gc()){case 1:return gP;case 2:return t=e.Gc(nn)&&e.Gc(Yt),n=e.Gc(Kt)&&e.Gc(mn),t||n?ZU:YU;case 3:return KU;case 4:return WU;default:return null}}function tit(e,t,n){return GS(),Bte(e,t)&&Bte(e,n)?!1:Zie(new ze(e.c,e.d),new ze(e.c+e.b,e.d),t,n)||Zie(new ze(e.c+e.b,e.d),new ze(e.c+e.b,e.d+e.a),t,n)||Zie(new ze(e.c+e.b,e.d+e.a),new ze(e.c,e.d+e.a),t,n)||Zie(new ze(e.c,e.d+e.a),new ze(e.c,e.d),t,n)}function mye(e,t){var n,i,r,o;if(!e.dc()){for(n=0,i=e.gc();n<i;++n)if(o=qn(e.Xb(n)),o==null?t==null:St(o.substr(0,3),"!##")?t!=null&&(r=t.length,!St(o.substr(o.length-r,r),t)||o.length!=t.length+3)&&!St(Tb,t):St(o,Poe)&&!St(Tb,t)||St(o,t))return!0}return!1}function zVt(e,t,n,i){var r,o,a,d,b,v;for(a=e.j.c.length,b=ke(tin,Vxe,319,a,0,1),d=0;d<a;d++)o=c(Je(e.j,d),12),o.p=d,b[d]=VUt(xnt(o),n,i);for(hXt(e,b,n,t,i),v=new yn,r=0;r<b.length;r++)b[r]&&ci(v,c(Je(e.j,r),12),b[r]);v.f.c+v.i.c!=0&&(Me(e,(Ie(),iC),v),wGt(e,b))}function FVt(e,t,n){var i,r,o;for(r=new U(e.a.b);r.a<r.c.c.length;)if(i=c(G(r),60),o=Ex(i),o&&o.k==(Jt(),Ar))switch(c($(o,(Ie(),Yo)),64).g){case 4:o.n.a=t.a;break;case 2:o.n.a=n.a-(o.o.a+o.d.c);break;case 1:o.n.b=t.b;break;case 3:o.n.b=n.b-(o.o.b+o.d.a)}}function qVt(e,t,n){var i,r,o;for(n.Tg("Processor determine the height for each level",1),e.a=t.b.b==0?1:t.b.b,r=null,i=Pn(t.b,0);!r&&i.b!=i.d.c;)o=c(Dn(i),41),Ze(Ye($(o,(Ii(),sp))))&&(r=o);r&&Jrt(e,mf(Y(K(qJ,1),FG,41,0,[r])),n,c($(t,(Jo(),Bw)),87)),n.Ug()}function HVt(e){var t,n,i,r,o,a;for(i=(b0(),o=new fT,o),aL(i,e),n=new on((!e.a&&(e.a=new _e(_n,e,10,11)),e.a));n.e!=n.i.gc();)t=c(un(n),19),a=(r=new fT,r),qQ(a,i),Pm(a,t.g,t.f),dS(a,t.k),fa(a,t.i,t.j),Ln((!i.a&&(i.a=new _e(_n,i,10,11)),i.a),a),aL(a,t);return i}function QVt(e,t,n){var i,r,o,a,d;return r=c(Se(t,(NQ(),jTe)),15),!r&&(r=$e(0)),o=c(Se(n,jTe),15),!o&&(o=$e(0)),r.a>o.a?-1:r.a<o.a?1:e.a&&(i=Ci(t.j,n.j),i!=0||(i=Ci(t.i,n.i),i!=0))?i:(a=t.g*t.f,d=n.g*n.f,Ci(a,d))}function GVt(e,t){var n,i,r,o,a,d,b,v,x,T;if(++e.e,b=e.d==null?0:e.d.length,t>b){for(x=e.d,e.d=ke(X7e,ike,67,2*b+4,0,1),o=0;o<b;++o)if(v=x[o],v)for(i=v.g,T=v.i,d=0;d<T;++d)r=c(i[d],138),a=j0e(e,r.yi()),n=e.d[a],!n&&(n=e.d[a]=e.bk()),n.Ec(r);return!0}else return!1}function UVt(e,t,n){var i,r,o,a,d,b;if(r=n,o=r.Jk(),R1(e.e,o)){if(o.Qi()){for(i=c(e.g,123),a=0;a<e.i;++a)if(d=i[a],xi(d,r)&&a!=t)throw V(new qt(YL))}}else for(b=rl(e.e.Ah(),o),i=c(e.g,123),a=0;a<e.i;++a)if(d=i[a],b.$l(d.Jk()))throw V(new qt(iP));D7(e,t,n)}function nit(e,t){var n,i,r,o,a,d;for(n=c($(t,(Ie(),Q1)),24),a=c(Ei((ire(),Di),n),24),d=c(Ei(si,n),24),o=a.Jc();o.Ob();)if(i=c(o.Pb(),24),!c(Ei(e.b,i),16).dc())return!1;for(r=d.Jc();r.Ob();)if(i=c(r.Pb(),24),!c(Ei(e.b,i),16).dc())return!1;return!0}function JVt(e,t,n){e.d=0,e.b=0,t.k==(Jt(),Ic)&&n.k==Ic&&c($(t,(Ie(),Si)),9)==c($(n,Si),9)&&(bte(t).j==(Ue(),Kt)?Hnt(e,t,n):Hnt(e,n,t)),t.k==Ic&&n.k==Cr?bte(t).j==(Ue(),Kt)?e.d=1:e.b=1:n.k==Ic&&t.k==Cr&&(bte(n).j==(Ue(),Kt)?e.b=1:e.d=1),VFt(e,t,n)}function wye(e,t){var n,i,r,o,a,d,b,v,x;if(e.a.c.length==1)return Yet(c(Je(e.a,0),175),t);for(a=aBt(e),b=0,v=e.d,o=a,x=e.d,d=(v-o)/2+o;o+1<v;){for(b=0,i=new U(e.a);i.a<i.c.c.length;)n=c(G(i),175),b+=(r=cE(n,d,!1),r.a);b<t?(x=d,v=d):o=d,d=(v-o)/2+o}return x}function aL(e,t){var n,i,r,o,a;if(!t)return e;if(ae(t,344))for(r=c(t,344),o=(!e.o&&(e.o=new Nl((lc(),t1),Zg,e,0)),e.o),i=r.fh().c.Jc();i.e!=i.i.gc();)n=c(i.Wj(),45),a=n.kd(),eL(o,c(n.jd(),149),a);else!e.o&&(e.o=new Nl((lc(),t1),Zg,e,0)),zXe(e.o,t.lf());return e}function vye(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z;return x=null,I=cye(e,t),b=null,I&&(b=_qt(e,I)),z=b,n=null,r=be(Ut(e.i,z)),r!=null?n=r:n=$e(0),A=n,i=null,o=be(Ut(e.j,z)),o!=null?i=o:i=$e(0),L=i,v=t.i,a=Bze(v,A),ci(e.i,t,a),T=t.j,d=Bze(T,L),x=be(ci(e.j,t,d)),x}function VVt(e){var t,n,i,r,o;return isNaN(e)?(aS(),Tke):e<-9223372036854776e3?(aS(),Nft):e>=9223372036854776e3?(aS(),Ske):(r=!1,e<0&&(r=!0,e=-e),i=0,e>=wb&&(i=ks(e/wb),e-=i*wb),n=0,e>=hk&&(n=ks(e/hk),e-=n*hk),t=ks(e),o=nl(t,n,i),r&&Vte(o),o)}function XVt(e){var t,n,i,r,o;if(o=new He,Uc(e.b,new GNe(o)),e.b.c.length=0,o.c.length!=0){for(t=(ht(0,o.c.length),c(o.c[0],81)),n=1,i=o.c.length;n<i;++n)r=(ht(n,o.c.length),c(o.c[n],81)),r!=t&&Eet(t,r);if(ae(t,63))throw V(c(t,63));if(ae(t,298))throw V(c(t,298))}}function WVt(e,t){var n,i,r,o;for(n=!t||!e.u.Gc((Gl(),W1)),o=0,r=new U(e.e.Vf());r.a<r.c.c.length;){if(i=c(G(r),844),i.$f()==(Ue(),Bo))throw V(new qt("Label and node size calculator can only be used with ports that have port sides assigned."));i.Of(o++),tBt(e,i,n)}}function iit(e,t,n){var i,r,o;for(pa(t,(Z4(),c9))&&(n=de(be(Se(t,c9)))),_l(t,n),o=n+e.a+t.f+p.Math.max(c(Se(t,(In(),V1)),125).a,e.b),r=0;r<(!t.e&&(t.e=new Ct($i,t,7,4)),t.e).i;r++)i=c(ce(eS(c(ce((!t.e&&(t.e=new Ct($i,t,7,4)),t.e),r),74)),0),19),iit(e,i,o)}function yye(e){var t,n,i,r,o;for(n=new U(e.a.a);n.a<n.c.c.length;){for(t=c(G(n),321),t.j=null,o=t.a.a.ec().Jc();o.Ob();)i=c(o.Pb(),60),Uf(i.b),(!t.j||i.d.c<t.j.d.c)&&(t.j=i);for(r=t.a.a.ec().Jc();r.Ob();)i=c(r.Pb(),60),i.b.a=i.d.c-t.j.d.c,i.b.b=i.d.d-t.j.d.d}return e}function HQ(e){var t,n,i,r,o;for(n=new U(e.a.a);n.a<n.c.c.length;){for(t=c(G(n),197),t.f=null,o=t.a.a.ec().Jc();o.Ob();)i=c(o.Pb(),84),Uf(i.e),(!t.f||i.g.c<t.f.g.c)&&(t.f=i);for(r=t.a.a.ec().Jc();r.Ob();)i=c(r.Pb(),84),i.e.a=i.g.c-t.f.g.c,i.e.b=i.g.d-t.f.g.d}return e}function KVt(e,t,n){var i,r,o,a,d;for(a=N7(e,n),d=ke(Wd,qg,9,t.length,0,1),i=0,o=a.Jc();o.Ob();)r=c(o.Pb(),12),Ze(Ye($(r,(Ie(),xP))))&&(d[i++]=c($(r,Jl),9));if(i<t.length)throw V(new co("Expected "+t.length+" hierarchical ports, but found only "+i+"."));return d}function YVt(e){var t,n,i,r,o,a,d,b,v,x,T;return T=hve(e),t=e.a,b=t!=null,b&&J6(T,"category",e.a),r=p_(new an(e.d)),a=!r,a&&(v=new bg,wf(T,"knownOptions",v),n=new TLe(v),vs(new an(e.d),n)),o=p_(e.g),d=!o,d&&(x=new bg,wf(T,"supportedFeatures",x),i=new ELe(x),vs(e.g,i)),T}function ZVt(e,t){var n;e.d&&(t.c!=e.e.c||mRt(e.e.b,t.b))&&(Qe(e.f,e.d),e.a=e.d.c+e.d.b,e.d=null,e.e=null),eTt(t.b)?e.c=t:e.b=t,(t.b==(vS(),Cw)&&!t.a||t.b==Pv&&t.a||t.b==l3&&t.a||t.b==Iv&&!t.a)&&e.c&&e.b&&(n=new pf(e.a,e.c.d,t.c-e.a,e.b.d-e.c.d),e.d=n,e.e=t)}function zd(){zd=Z,$b=new bi("LEFT_OUTLINE"),ny=new bi("RIGHT_OUTLINE"),wd=new bi("OUTLINE_MAX_DEPTH"),o9=new bi("MIN_X"),s9=new bi("MAX_X"),$wt=new bi("MIN_Y"),rae=new bi("MAX_Y"),BC=new bi("root"),zw=new bi("EDGE_BEND_HEIGHT"),QP=new bi("Node Model Order")}function xye(e,t){var n,i;if(t!=e.Cb||e.Db>>16!=7&&t){if(IS(e,t))throw V(new qt(NE+rtt(e)));i=null,e.Cb&&(i=(n=e.Db>>16,n>=0?$2e(e,i):e.Cb.Qh(e,-1-n,null,i))),t&&(i=c(t,52).Oh(e,1,uI,i)),i=Ope(e,t,i),i&&i.mj()}else(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,7,t,t))}function rit(e,t){var n,i;if(t!=e.Cb||e.Db>>16!=3&&t){if(IS(e,t))throw V(new qt(NE+FKe(e)));i=null,e.Cb&&(i=(n=e.Db>>16,n>=0?z2e(e,i):e.Cb.Qh(e,-1-n,null,i))),t&&(i=c(t,52).Oh(e,0,fI,i)),i=Spe(e,t,i),i&&i.mj()}else(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,3,t,t))}function Oie(e,t){US();var n,i,r,o,a,d,b,v,x;return t.d>e.d&&(d=e,e=t,t=d),t.d<63?BXt(e,t):(a=(e.d&-2)<<4,v=qbe(e,a),x=qbe(t,a),i=Hie(e,R4(v,a)),r=Hie(t,R4(x,a)),b=Oie(v,x),n=Oie(i,r),o=Oie(Hie(v,i),Hie(r,x)),o=Wie(Wie(o,b),n),o=R4(o,a),b=R4(b,a<<1),Wie(Wie(b,o),n))}function fL(){fL=Z,Gle=new hx(flt,0),Mje=new hx("LONGEST_PATH",1),Aje=new hx("LONGEST_PATH_SOURCE",2),Hle=new hx("COFFMAN_GRAHAM",3),Cje=new hx(Yre,4),Nje=new hx("STRETCH_WIDTH",5),NJ=new hx("MIN_WIDTH",6),qle=new hx("BF_MODEL_ORDER",7),Qle=new hx("DF_MODEL_ORDER",8)}function eXt(e,t){var n,i,r,o,a,d;if(!e.tb){for(o=(!e.rb&&(e.rb=new V2(e,lh,e)),e.rb),d=new f4(o.i),r=new on(o);r.e!=r.i.gc();)i=c(un(r),146),a=i.ve(),n=c(a==null?bl(d.f,null,i):nw(d.i,a,i),146),n&&(a==null?bl(d.f,null,n):nw(d.i,a,n));e.tb=d}return c(Mc(e.tb,t),146)}function hL(e,t){var n,i,r,o,a;if((e.i==null&&sd(e),e.i).length,!e.p){for(a=new f4((3*e.g.i/2|0)+1),r=new x4(e.g);r.e!=r.i.gc();)i=c(Nne(r),182),o=i.ve(),n=c(o==null?bl(a.f,null,i):nw(a.i,o,i),182),n&&(o==null?bl(a.f,null,n):nw(a.i,o,n));e.p=a}return c(Mc(e.p,t),182)}function kye(e,t,n,i,r){var o,a,d,b,v;for(Gzt(i+$q(n,n.ge()),r),wHe(t,gzt(n)),o=n.f,o&&kye(e,t,o,"Caused by: ",!1),d=(n.k==null&&(n.k=ke(Koe,Fe,81,0,0,1)),n.k),b=0,v=d.length;b<v;++b)a=d[b],kye(e,t,a,"Suppressed: ",!1);console.groupEnd!=null&&console.groupEnd.call(console)}function dL(e,t,n,i){var r,o,a,d,b;for(b=t.e,d=b.length,a=t.q.tg(b,n?0:d-1,n),r=b[n?0:d-1],a=a|Git(e,r,n,i),o=n?1:d-2;n?o<d:o>=0;o+=n?1:-1)a=a|t.c.jg(b,o,n,i&&!Ze(Ye($(t.j,(Ie(),Z0))))&&!Ze(Ye($(t.j,(Ie(),m3))))),a=a|t.q.tg(b,o,n),a=a|Git(e,b[o],n,i);return Er(e.c,t),a}function QQ(e,t,n){var i,r,o,a,d,b,v,x,T,A;for(x=JGe(e.j),T=0,A=x.length;T<A;++T){if(v=x[T],n==(Gs(),Vl)||n==xC)for(b=ed(v.g),r=b,o=0,a=r.length;o<a;++o)i=r[o],mGt(t,i)&&Bg(i,!0);if(n==Yc||n==xC)for(d=ed(v.e),r=d,o=0,a=r.length;o<a;++o)i=r[o],bGt(t,i)&&Bg(i,!0)}}function sit(){return cs(),Y(K(oin,1),Pe,80,0,[FOe,$Oe,u3,Ace,o6e,IU,UU,$v,r6e,XOe,n6e,Rv,s6e,UOe,c6e,_Oe,zU,Nce,LU,HU,u6e,qU,DOe,i6e,a6e,QU,NOe,l6e,PU,HOe,e6e,ZOe,JU,IOe,DU,$U,POe,Rj,KOe,JOe,t6e,KE,BOe,ROe,YOe,VOe,BU,GU,LOe,FU,WOe,RU,QOe,qOe,Tk,_U,GOe,zOe])}function tXt(e){var t,n;switch(t=null,n=null,IHt(e).g){case 1:t=(Ue(),nn),n=Yt;break;case 2:t=(Ue(),mn),n=Kt;break;case 3:t=(Ue(),Yt),n=nn;break;case 4:t=(Ue(),Kt),n=mn}Y5(e,c(mu(C4(c(Ei(e.k,t),16).Mc(),a3)),114)),K5(e,c(mu(J2(c(Ei(e.k,n),16).Mc(),a3)),114))}function QS(e){var t;if(PPe.call(this),this.i=new K$,this.g=e,this.f=c(e.e&&e.e(),10).length,this.f==0)throw V(new qt("There must be at least one phase in the phase enumeration."));this.c=(t=c(Gf(this.g),10),new da(t,c(gf(t,t.length),10),0)),this.a=new xr,this.b=new yn}function nXt(e){var t,n,i,r,o,a;if(r=c(Je(e.j,0),12),r.e.c.length+r.g.c.length==0)e.n.a=0;else{for(a=0,i=Pd(wa(Y(K(Ea,1),Pt,22,0,[new T6(r),new t4(r)])));hn(i);)n=c(rn(i),12),a+=n.i.n.a+n.n.a+n.a.a;t=c($(e,(Ge(),Rw)),8),o=t?t.a:0,e.n.a=a/(r.e.c.length+r.g.c.length)-o}}function oit(e,t){var n,i,r;for(i=new U(t.a);i.a<i.c.c.length;)n=c(G(i),227),see(c(n.b,68),Qr(As(c(t.b,68).c),c(t.b,68).a)),r=Trt(c(t.b,68).b,c(n.b,68).b),r>1&&(e.a=!0),dAt(c(n.b,68),Oi(As(c(t.b,68).c),y1(Qr(As(c(n.b,68).a),c(t.b,68).a),r))),iGe(e,t),oit(e,n)}function cit(e){var t,n,i,r,o,a,d;for(o=new U(e.a.a);o.a<o.c.c.length;)i=c(G(o),197),i.e=0,i.d.a.$b();for(r=new U(e.a.a);r.a<r.c.c.length;)for(i=c(G(r),197),n=i.a.a.ec().Jc();n.Ob();)for(t=c(n.Pb(),84),d=t.f.Jc();d.Ob();)a=c(d.Pb(),84),a.d!=i&&(Er(i.d,a),++a.d.e)}function iXt(e,t){var n,i,r,o,a,d,b;for(t.Tg("Constraints Postprocessor",1),a=0,o=new U(e.b);o.a<o.c.c.length;){for(r=c(G(o),26),b=0,d=!1,i=new U(r.a);i.a<i.c.c.length;)n=c(G(i),9),n.k==(Jt(),ur)&&(d=!0,Me(n,(Ge(),dC),$e(a)),Me(n,wJ,$e(b)),++b);d&&++a}t.Ug()}function rXt(e){var t,n,i,r,o,a,d,b;for(b=e.j.c.length,n=0,t=b,r=2*b,d=new U(e.j);d.a<d.c.c.length;)switch(a=c(G(d),12),a.j.g){case 2:case 4:a.p=-1;break;case 1:case 3:i=a.e.c.length,o=a.g.c.length,i>0&&o>0?a.p=t++:i>0?a.p=n++:o>0?a.p=r++:a.p=n++}Mt(),Rr(e.j,new PW)}function sXt(e){var t,n;n=null,t=c(Je(e.g,0),17);do{if(n=t.d.i,ki(n,(Ie(),Wa)))return c($(n,Wa),12).i;if(n.k!=(Jt(),ur)&&hn(new Ht(Xt(Fi(n).a.Jc(),new F))))t=c(rn(new Ht(Xt(Fi(n).a.Jc(),new F))),17);else if(n.k!=ur)return null}while(n&&n.k!=(Jt(),ur));return n}function oXt(e,t){var n,i,r,o,a,d,b,v,x;for(d=t.j,a=t.g,b=c(Je(d,d.c.length-1),114),x=(ht(0,d.c.length),c(d.c[0],114)),v=Une(e,a,b,x),o=1;o<d.c.length;o++)n=(ht(o-1,d.c.length),c(d.c[o-1],114)),r=(ht(o,d.c.length),c(d.c[o],114)),i=Une(e,a,n,r),i>v&&(b=n,x=r,v=i);t.a=x,t.c=b}function aw(e,t,n,i){var r,o;if(r=xe($(n,(Ge(),aC)))===xe((N0(),Fv)),o=c($(n,FSe),16),ki(e,(Ie(),Ri)))if(r){if(o.Gc($(e,fC))&&o.Gc($(t,fC)))return i*c($(e,fC),15).a+c($(e,Ri),15).a}else return c($(e,Ri),15).a;else return-1;return c($(e,Ri),15).a}function cXt(e,t,n){var i,r,o,a,d,b,v;for(v=new xg(new fDe(e)),a=Y(K(Rdt,1),Pct,12,0,[t,n]),d=0,b=a.length;d<b;++d)for(o=a[d],v.a.yc(o,(Bt(),X0))==null,r=new wh(o.b);_o(r.a)||_o(r.b);)i=c(_o(r.a)?G(r.a):G(r.b),17),i.c==i.d||Z_(v,o==i.c?i.d:i.c);return Bn(v),new ql(v)}function Of(e){if(!e.a.d||!e.a.e)throw V(new co((x1(sht),sht.k+" must have a source and target "+(x1(Yke),Yke.k)+" specified.")));if(e.a.d==e.a.e)throw V(new co("Network simplex does not support self-loops: "+e.a+" "+e.a.d+" "+e.a.e));return GF(e.a.d.g,e.a),GF(e.a.e.b,e.a),e.a}function lXt(e,t,n){var i,r,o,a,d;for(n.Tg("Longest path layering",1),e.a=t,d=e.a.a,e.b=ke(Hn,li,30,d.c.length,15,1),i=0,a=new U(d);a.a<a.c.c.length;)r=c(G(a),9),r.p=i,e.b[i]=-1,++i;for(o=new U(d);o.a<o.c.c.length;)r=c(G(o),9),znt(e,r);d.c.length=0,e.a=null,e.b=null,n.Ug()}function lit(e,t,n){var i,r,o,a,d,b;if(i=0,t.b!=0&&n.b!=0){o=Pn(t,0),a=Pn(n,0),d=de(be(Dn(o))),b=de(be(Dn(a))),r=!0;do{if(d>b-e.b&&d<b+e.b)return-1;d>b-e.a&&d<b+e.a&&++i,d<=b&&o.b!=o.d.c?d=de(be(Dn(o))):b<=d&&a.b!=a.d.c?b=de(be(Dn(a))):r=!1}while(r)}return i}function uit(e,t){var n,i;return c7(e.a),Iu(e.a,(_H(),JJ),JJ),Iu(e.a,C3,C3),i=new xr,Wn(i,C3,(EQ(),Tue)),xe(Se(t,(B0(),Aue)))!==xe((BD(),VJ))&&Wn(i,C3,Oue),Ze(Ye(Se(t,Z9e)))&&Wn(i,C3,Eue),Wn(i,C3,Sue),Ze(Ye(Se(t,t8e)))&&Hc(i,C3,jue),Ige(e.a,i),n=aE(e.a,t),n}function uXt(e,t,n,i){var r,o,a,d,b,v,x,T,A;for(b=0,x=new U(e.a);x.a<x.c.c.length;){for(v=c(G(x),9),d=0,o=new Ht(Xt(vr(v).a.Jc(),new F));hn(o);)r=c(rn(o),17),T=mh(r.c).b,A=mh(r.d).b,d=p.Math.max(d,p.Math.abs(A-T));b=p.Math.max(b,d)}return a=i*p.Math.min(1,t/n)*b,a}function aXt(e){var t,n;for(n=new Ht(Xt(Fi(e).a.Jc(),new F));hn(n);)if(t=c(rn(n),17),t.d.i.k!=(Jt(),ac))throw V(new Uh(Kre+KD(e)+"' has its layer constraint set to LAST, but has at least one outgoing edge that  does not go to a LAST_SEPARATE node. That must not happen."))}function fXt(e,t){var n,i,r,o,a;for(a=c($(t,(Jo(),D9e)),430),o=Pn(t.b,0);o.b!=o.d.c;)if(r=c(Dn(o),41),e.b[r.g]==0){switch(a.g){case 0:fZe(e,r);break;case 1:OJt(e,r)}e.b[r.g]=2}for(i=Pn(e.a,0);i.b!=i.d.c;)n=c(Dn(i),65),hv(n.b.d,n,!0),hv(n.c.b,n,!0);Me(t,(Ii(),k9e),e.a)}function Oye(e){var t;return t=new bT,(e&256)!=0&&(t.a+="F"),(e&128)!=0&&(t.a+="H"),(e&512)!=0&&(t.a+="X"),(e&2)!=0&&(t.a+="i"),(e&8)!=0&&(t.a+="m"),(e&4)!=0&&(t.a+="s"),(e&32)!=0&&(t.a+="u"),(e&64)!=0&&(t.a+="w"),(e&16)!=0&&(t.a+="x"),(e&Ga)!=0&&(t.a+=","),j1e(t.a)}function hXt(e,t,n,i,r){var o,a,d,b;for(b=(o=c(Gf(Bs),10),new da(o,c(gf(o,o.length),10),0)),d=new U(e.j);d.a<d.c.c.length;)a=c(G(d),12),t[a.p]&&(Ptn(a,t[a.p],i),yf(b,a.j));r?(tie(e,t,(Ue(),nn),2*n,i),tie(e,t,Yt,2*n,i)):(tie(e,t,(Ue(),Kt),2*n,i),tie(e,t,mn,2*n,i))}function dXt(e,t){var n,i,r,o,a,d,b;for(r=new He,n=0;n<=e.j;n++)i=new dc(t),i.p=e.j-n,It(r.c,i);for(d=new U(e.p);d.a<d.c.c.length;)a=c(G(d),9),zr(a,c(Je(r,e.j-e.g[a.p]),26));for(o=new U(r);o.a<o.c.c.length;)b=c(G(o),26),b.a.c.length==0&&t7(o);t.b.c.length=0,Or(t.b,r)}function gXt(e,t,n){var i,r,o,a,d,b;for(i=c(Ei(e.c,t),16),r=c(Ei(e.c,n),16),o=i.dd(i.gc()),a=r.dd(r.gc());o.Sb()&&a.Sb();)if(d=c(o.Ub(),15),b=c(a.Ub(),15),d!=b)return hc(d.a,b.a);return!o.Ob()&&!a.Ob()?t.p<n.p?-1:t.p>n.p?1:0:o.Ob()?1:-1}function pXt(e,t){var n,i,r,o,a,d;t.Tg(Rlt,1),r=c(Se(e,(Th(),PC)),100),o=(!e.a&&(e.a=new _e(_n,e,10,11)),e.a),a=Aqt(o),d=p.Math.max(a.a,de(be(Se(e,(Fd(),LC))))-(r.b+r.c)),i=p.Math.max(a.b,de(be(Se(e,YJ)))-(r.d+r.a)),n=i-a.b,ri(e,DC,n),ri(e,Bk,d),ri(e,r9,i+n),t.Ug()}function Z7(e){var t,n;if((!e.a&&(e.a=new _e(Gi,e,6,6)),e.a).i==0)return swe(e);for(t=c(ce((!e.a&&(e.a=new _e(Gi,e,6,6)),e.a),0),171),An((!t.a&&(t.a=new Nr(Yu,t,5)),t.a)),Ym(t,0),Zm(t,0),Wm(t,0),Km(t,0),n=(!e.a&&(e.a=new _e(Gi,e,6,6)),e.a);n.i>1;)kv(n,n.i-1);return t}function rl(e,t){Hs();var n,i,r,o;return t?t==(Ai(),gyt)||(t==nyt||t==Hb||t==tyt)&&e!=kEe?new xxe(e,t):(i=c(t,689),n=i.Yk(),n||(tS(ao((Ll(),bs),t)),n=i.Yk()),o=(!n.i&&(n.i=new yn),n.i),r=c(No(lo(o.f,e)),2020),!r&&ci(o,e,r=new xxe(e,t)),r):Yvt}function bXt(e,t){var n,i;if(i=Z_(e.b,t.b),!i)throw V(new co("Invalid hitboxes for scanline constraint calculation."));(CWe(t.b,c(b8t(e.b,t.b),60))||CWe(t.b,c(p8t(e.b,t.b),60)))&&kg(),e.a[t.b.f]=c(DY(e.b,t.b),60),n=c(_Y(e.b,t.b),60),n&&(e.a[n.f]=t.b)}function mXt(e,t){var n,i,r,o,a,d,b,v,x;for(b=c($(e,(Ie(),Si)),12),v=Po(Y(K(Wr,1),Fe,8,0,[b.i.n,b.n,b.a])).a,x=e.i.n.b,n=ed(e.e),r=n,o=0,a=r.length;o<a;++o)i=r[o],ss(i,b),Cs(i.a,new ze(v,x)),t&&(d=c($(i,(Ge(),go)),79),d||(d=new tu,Me(i,go,d)),ei(d,new ze(v,x)))}function wXt(e,t){var n,i,r,o,a,d,b,v,x;for(r=c($(e,(Ie(),Si)),12),v=Po(Y(K(Wr,1),Fe,8,0,[r.i.n,r.n,r.a])).a,x=e.i.n.b,n=ed(e.g),a=n,d=0,b=a.length;d<b;++d)o=a[d],Os(o,r),px(o.a,new ze(v,x)),t&&(i=c($(o,(Ge(),go)),79),i||(i=new tu,Me(o,go,i)),ei(i,new ze(v,x)))}function vXt(e){var t,n,i,r,o,a,d,b,v;if(i=e.b,o=i.e,a=S4(c($(i,(Ge(),ar)),103)),n=!!o&&c($(o,(Ie(),Rc)),24).Gc((Us(),Ca)),!(a||n))for(v=(d=new m1(e.e).a.vc().Jc(),new N2(d));v.a.Ob();)b=(t=c(v.a.Pb(),45),c(t.kd(),114)),b.a&&(r=b.d,Do(r,null),b.c=!0,e.a=!0)}function yXt(e,t){var n,i,r,o;for(t.Tg("Semi-Interactive Crossing Minimization Processor",1),n=!1,r=new U(e.b);r.a<r.c.c.length;)i=c(G(r),26),o=qD(wH(mi(mi(new Tt(null,new Et(i.a,16)),new hA),new UW),new m5),new dA),n=n|o.a!=null;n&&Me(e,(Ie(),X6e),(Bt(),!0)),t.Ug()}function xXt(e,t){var n,i,r,o,a,d;for(e.b=new He,e.d=c($(t,(Ie(),Dk)),237),e.e=CDt(e.d),o=new _i,r=mf(Y(K(Ldt,1),Dct,37,0,[t])),a=0;a<r.c.length;)i=(ht(a,r.c.length),c(r.c[a],37)),i.p=a++,n=new Dst(i,e.a,e.b),Or(r,n.b),Qe(e.b,n),n.s&&(d=Pn(o,0),Tq(d,n));return e.c=new Tr,o}function kXt(e,t){var n,i,r,o,a,d;for(a=c(c(Ei(e.r,t),24),85).Jc();a.Ob();)o=c(a.Pb(),116),n=o.c?hpe(o.c):0,n>0?o.a?(d=o.b.Kf().a,n>d&&(r=(n-d)/2,o.d.b=r,o.d.c=r)):o.d.c=e.s+n:ZT(e.u)&&(i=dve(o.b),i.c<0&&(o.d.b=-i.c),i.c+i.b>o.b.Kf().a&&(o.d.c=i.c+i.b-o.b.Kf().a))}function OXt(e,t){var n,i,r,o,a;a=new He,n=t;do o=c(Ut(e.b,n),134),o.B=n.c,o.D=n.d,It(a.c,o),n=c(Ut(e.k,n),17);while(n);return i=(ht(0,a.c.length),c(a.c[0],134)),i.j=!0,i.A=c(i.d.a.ec().Jc().Pb(),17).c.i,r=c(Je(a,a.c.length-1),134),r.q=!0,r.C=c(r.d.a.ec().Jc().Pb(),17).d.i,a}function SXt(e){var t,n;n=c($(e,(Ge(),$o)),166),t=c($(e,(Ie(),Mb)),316),n==(Su(),G1)?(Me(e,$o,OP),Me(e,Mb,(M1(),p3))):n==Nb?(Me(e,$o,OP),Me(e,Mb,(M1(),Ek))):t==(M1(),p3)?(Me(e,$o,G1),Me(e,Mb,vP)):t==Ek&&(Me(e,$o,Nb),Me(e,Mb,vP))}function GQ(){GQ=Z,LP=new XO,vbt=Wn(new xr,(ts(),yc),(cs(),LU)),kbt=Hc(Wn(new xr,yc,qU),Ws,FU),Obt=id(id(ST(Hc(Wn(new xr,Cf,UU),Ws,GU),xc),QU),JU),ybt=Hc(Wn(Wn(Wn(new xr,Xd,IU),xc,$U),xc,Rj),Ws,RU),xbt=Hc(Wn(Wn(new xr,xc,Rj),xc,DU),Ws,_U)}function eE(){eE=Z,Tbt=Wn(Hc(new xr,(ts(),Ws),(cs(),QOe)),yc,LU),Abt=id(id(ST(Hc(Wn(new xr,Cf,UU),Ws,GU),xc),QU),JU),Ebt=Hc(Wn(Wn(Wn(new xr,Xd,IU),xc,$U),xc,Rj),Ws,RU),Mbt=Wn(Wn(new xr,yc,qU),Ws,FU),Cbt=Hc(Wn(Wn(new xr,xc,Rj),xc,DU),Ws,_U)}function jXt(e,t,n,i,r){var o,a;(!ys(t)&&t.c.i.c==t.d.i.c||!$Xe(Po(Y(K(Wr,1),Fe,8,0,[r.i.n,r.n,r.a])),n))&&!ys(t)&&(t.c==r?z6(t.a,0,new Ms(n)):ei(t.a,new Ms(n)),i&&!$a(e.a,n)&&(a=c($(t,(Ge(),go)),79),a||(a=new tu,Me(t,go,a)),o=new Ms(n),rr(a,o,a.c.b,a.c),Er(e.a,o)))}function ait(e,t){var n,i,r,o;for(o=Gn(js(Qd,Id(Gn(js(t==null?0:zi(t),Gd)),15))),n=o&e.b.length-1,r=null,i=e.b[n];i;r=i,i=i.a)if(i.d==o&&k1(i.i,t))return r?r.a=i.a:e.b[n]=i.a,lIe(c(za(i.c),600),c(za(i.f),600)),u_(c(za(i.b),229),c(za(i.e),229)),--e.f,++e.e,!0;return!1}function TXt(e){var t,n;for(n=new Ht(Xt(vr(e).a.Jc(),new F));hn(n);)if(t=c(rn(n),17),t.c.i.k!=(Jt(),ac))throw V(new Uh(Kre+KD(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 fit(e,t){var n,i,r,o,a,d,b,v,x,T,A;r=t?new jA:new TA,o=!1;do for(o=!1,v=t?ju(e.b):e.b,b=v.Jc();b.Ob();)for(d=c(b.Pb(),26),A=Zp(d.a),t||ju(A),T=new U(A);T.a<T.c.c.length;)x=c(G(T),9),r.Mb(x)&&(i=x,n=c($(x,(Ie(),Nw)),318),a=t?n.b:n.k,o=Rit(i,a,t,!1));while(o)}function EXt(e,t,n){var i,r,o,a,d,b,v;if(r=QKe(e.Db&254),r==0)e.Eb=n;else{if(r==1)d=ke(Br,Pt,1,2,5,1),o=Gne(e,t),o==0?(d[0]=n,d[1]=e.Eb):(d[0]=e.Eb,d[1]=n);else for(d=ke(Br,Pt,1,r+1,5,1),a=q4(e.Eb),i=2,b=0,v=0;i<=128;i<<=1)i==t?d[v++]=n:(e.Db&i)!=0&&(d[v++]=a[b++]);e.Eb=d}e.Db|=t}function hit(e,t,n,i,r,o){var a,d,b,v,x,T,A,L,I,z,Q,W;for(x=i,t.j&&t.o?(L=c(Ut(e.f,t.A),60),z=L.d.c+L.d.b,--x):z=t.a.c+t.a.b,T=r,n.q&&n.o?(L=c(Ut(e.f,n.C),60),v=L.d.c,++T):v=n.a.c,Q=v-z,b=p.Math.max(2,T-x),d=Q/b,I=z+d,A=x;A<T;++A)a=c(o.Xb(A),134),W=a.a.b,a.a.c=I-W/2,I+=d}function Sye(e,t,n,i,r,o){var a,d,b,v,x,T;for(v=n.c.length,o&&(e.c=ke(Hn,li,30,t.length,15,1)),a=r?0:t.length-1;r?a<t.length:a>=0;a+=r?1:-1){for(d=t[a],b=i==(Ue(),nn)?r?Io(d,i):ju(Io(d,i)):r?ju(Io(d,i)):Io(d,i),o&&(e.c[d.p]=b.gc()),T=b.Jc();T.Ob();)x=c(T.Pb(),12),e.d[x.p]=v++;Or(n,b)}}function dit(e,t,n){var i,r,o,a,d,b,v,x;for(o=de(be(e.b.Jc().Pb())),v=de(be(YRt(t.b))),i=y1(As(e.a),v-n),r=y1(As(t.a),n-o),x=Oi(i,r),y1(x,1/(v-o)),this.a=x,this.b=new He,d=!0,a=e.b.Jc(),a.Pb();a.Ob();)b=de(be(a.Pb())),d&&b-n>Hse&&(this.b.Ec(n),d=!1),this.b.Ec(b);d&&this.b.Ec(n)}function CXt(e){var t,n,i,r;if(GWt(e,e.n),e.d.c.length>0){for(gT(e.c);nye(e,c(G(new U(e.e.a)),126))<e.e.a.c.length;){for(t=Mqt(e),r=t.e.e-t.d.e-t.a,t.e.j&&(r=-r),i=new U(e.e.a);i.a<i.c.c.length;)n=c(G(i),126),n.j&&(n.e+=r);gT(e.c)}gT(e.c),qve(e,c(G(new U(e.e.a)),126)),xst(e)}}function MXt(e,t,n){var i,r,o,a,d;for(n.Tg("Longest path to source layering",1),e.a=t,d=e.a.a,e.b=ke(Hn,li,30,d.c.length,15,1),i=0,a=new U(d);a.a<a.c.c.length;)r=c(G(a),9),r.p=i,e.b[i]=-1,++i;for(o=new U(d);o.a<o.c.c.length;)r=c(G(o),9),Fnt(e,r);d.c.length=0,e.a=null,e.b=null,n.Ug()}function AXt(e,t){G4();var n,i;if(n=nte(v7(),t.Og()),n){if(i=n.j,ae(e,209))return P_t(c(e,19))?Ml(i,(kh(),pr))||Ml(i,_t):Ml(i,(kh(),pr));if(ae(e,273))return Ml(i,(kh(),sh));if(ae(e,196))return Ml(i,(kh(),Kg));if(ae(e,363))return Ml(i,(kh(),J1))}return!0}function NXt(e,t,n){var i,r,o,a,d,b;if(r=n,o=r.Jk(),R1(e.e,o)){if(o.Qi()){for(i=c(e.g,123),a=0;a<e.i;++a)if(d=i[a],xi(d,r)&&a!=t)throw V(new qt(YL))}}else for(b=rl(e.e.Ah(),o),i=c(e.g,123),a=0;a<e.i;++a)if(d=i[a],b.$l(d.Jk())&&a!=t)throw V(new qt(iP));return c($x(e,t,n),76)}function git(e,t){if(t instanceof Object)try{if(t.__java$exception=e,navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&$doc.documentMode<9)return;var n=e;Object.defineProperties(t,{cause:{get:function(){var i=n.fe();return i&&i.de()}},suppressed:{get:function(){return n.ee()}}})}catch{}}function pit(e,t){var n,i,r,o,a;if(i=t>>5,t&=31,i>=e.d)return e.e<0?(rd(),Ift):(rd(),QE);if(o=e.d-i,r=ke(Hn,li,30,o+1,15,1),CGt(r,o,e.a,i,t),e.e<0){for(n=0;n<i&&e.a[n]==0;n++);if(n<i||t>0&&e.a[n]<<32-t!=0){for(n=0;n<o&&r[n]==-1;n++)r[n]=0;n==o&&++o,++r[n]}}return a=new Vp(e.e,o,r),a7(a),a}function _Xt(e,t,n,i){var r,o,a,d,b;return d=no(c(ce((!t.b&&(t.b=new Ct(xn,t,4,7)),t.b),0),83)),b=no(c(ce((!t.c&&(t.c=new Ct(xn,t,5,8)),t.c),0),83)),Wi(d)==Wi(b)||sv(b,d)?null:(a=Y2(t),a==n?i:(o=c(Ut(e.a,a),9),o&&(r=o.e,r)?r:null))}function DXt(e,t){var n;switch(n=c($(e,(Ge(),yJ)),286),t.Tg("Label side selection ("+n+")",1),n.g){case 0:Ont(e,(qu(),Yd));break;case 1:Ont(e,(qu(),cp));break;case 2:Xrt(e,(qu(),Yd));break;case 3:Xrt(e,(qu(),cp));break;case 4:Oit(e,(qu(),Yd));break;case 5:Oit(e,(qu(),cp))}t.Ug()}function R1(e,t){Hs();var n,i,r;return t.Hk()?!0:t.Gk()==-2?t==(ik(),Kk)||t==Wk||t==Zae||t==efe?!0:(r=e.Ah(),Ki(r,t)>=0?!1:(n=Jx((Ll(),bs),r,t),n?(i=n.Gk(),(i>1||i==-1)&&Hm(ao(bs,n))!=3):!0)):!1}function LXt(e,t,n,i){var r,o,a,d,b,v,x,T,A,L;if(b=e.c.d,v=e.d.d,b.j!=v.j)for(L=e.b,x=null,d=null,a=Fzt(e),a&&L.i&&(x=e.b.i.i,d=L.i.j),r=b.j,T=null;r!=v.j;)T=t==0?WH(r):qwe(r),o=y2e(r,L.d[r.g],n),A=y2e(T,L.d[T.g],n),a&&x&&d&&(r==x?YKe(o,x,d):T==x&&YKe(A,x,d)),ei(i,Oi(o,A)),r=T}function jye(e,t,n){var i,r,o,a,d,b;if(i=n8t(n,e.length),a=e[i],o=dIe(n,a.length),a[o].k==(Jt(),Ar))for(b=t.j,r=0;r<b.c.length;r++)d=(ht(r,b.c.length),c(b.c[r],12)),(n?d.j==(Ue(),nn):d.j==(Ue(),Yt))&&Ze(Ye($(d,(Ie(),xP))))&&(ku(b,r,c($(a[o],(Ie(),Si)),12)),o+=n?1:-1)}function PXt(e,t){var n,i,r,o,a,d,b,v;t.Tg("Greedy Width Approximator",1),n=de(be(Se(e,(Th(),eV)))),b=c(Se(e,PC),100),o=c(Se(e,E8e),388),a=Ze(Ye(Se(e,T8e))),d=de(be(Se(e,IC))),v=(!e.a&&(e.a=new _e(_n,e,10,11)),e.a),Gme(v),r=new BFe(n,o,a),i=HWt(r,v,d,b),ri(e,(Fd(),ty),i.c),t.Ug()}function bit(e){if(e.g==null)switch(e.p){case 0:e.g=I_t(e)?(Bt(),Dj):(Bt(),X0);break;case 1:e.g=kD(NLt(e));break;case 2:e.g=_D(SDt(e));break;case 3:e.g=cNt(e);break;case 4:e.g=new qs(lNt(e));break;case 6:e.g=gv(fNt(e));break;case 5:e.g=$e(x_t(e));break;case 7:e.g=TS(LLt(e))}return e.g}function Tye(e){if(e.n==null)switch(e.p){case 0:e.n=R_t(e)?(Bt(),Dj):(Bt(),X0);break;case 1:e.n=kD(_Lt(e));break;case 2:e.n=_D(jDt(e));break;case 3:e.n=aNt(e);break;case 4:e.n=new qs(uNt(e));break;case 6:e.n=gv(hNt(e));break;case 5:e.n=$e(k_t(e));break;case 7:e.n=TS(DLt(e))}return e.n}function mit(e,t,n,i){var r,o,a,d,b;if(d=(Hs(),c(t,69).vk()),R1(e.e,t)){if(t.Qi()&&KQ(e,t,i,ae(t,104)&&(c(t,20).Bb&Rs)!=0))throw V(new qt(YL))}else for(b=rl(e.e.Ah(),t),r=c(e.g,123),a=0;a<e.i;++a)if(o=r[a],b.$l(o.Jk()))throw V(new qt(iP));D7(e,Cve(e,t,n),d?c(i,76):Rd(t,i))}function wit(e){var t,n,i,r,o,a,d;for(o=new U(e.a.a);o.a<o.c.c.length;)i=c(G(o),321),i.g=0,i.i=0,i.e.a.$b();for(r=new U(e.a.a);r.a<r.c.c.length;)for(i=c(G(r),321),n=i.a.a.ec().Jc();n.Ob();)for(t=c(n.Pb(),60),d=t.c.Jc();d.Ob();)a=c(d.Pb(),60),a.a!=i&&(Er(i.e,a),++a.a.g,++a.a.i)}function IXt(e){var t,n,i,r,o;r=c($(e,(Ge(),Db)),24),o=c($(e,EJ),24),n=new ze(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),t=new Ms(n),r.Gc((Tu(),ay))&&(i=c($(e,Xj),8),o.Gc((lu(),b9))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),t.a=p.Math.max(n.a,i.a),t.b=p.Math.max(n.b,i.b)),RYt(e,n,t)}function RXt(e,t){var n,i,r;t.a?(Z_(e.b,t.b),e.a[t.b.i]=c(DY(e.b,t.b),84),n=c(_Y(e.b,t.b),84),n&&(e.a[n.i]=t.b)):(i=c(DY(e.b,t.b),84),i&&i==e.a[t.b.i]&&i.d&&i.d!=t.b.d&&i.f.Ec(t.b),r=c(_Y(e.b,t.b),84),r&&e.a[r.i]==t.b&&r.d&&r.d!=t.b.d&&t.b.f.Ec(r),EZ(e.b,t.b))}function Sie(e,t){var n,i,r,o,a,d;return o=e.d,d=de(be($(e,(Ge(),Jg)))),d<0&&(d=0,Me(e,Jg,d)),t.o.b=d,a=p.Math.floor(d/2),i=new mc,$r(i,(Ue(),Yt)),Do(i,t),i.n.b=a,r=new mc,$r(r,nn),Do(r,t),r.n.b=a,ss(e,i),n=new Gm,nc(n,e),Me(n,go,null),Os(n,r),ss(n,o),VKt(t,e,n),tUt(e,n),n}function $Xt(e){var t,n;return n=c($(e,(Ie(),Rc)),24),t=new xr,n.Gc((Us(),tC))&&(Fu(t,pbt),Fu(t,r9e)),(n.Gc(Uj)||Ze(Ye($(e,(Ge(),Nle)))))&&(Fu(t,r9e),n.Gc(g3)&&Fu(t,mbt)),n.Gc(Ca)&&Fu(t,gbt),n.Gc(nC)&&Fu(t,wbt),n.Gc(oJ)&&Fu(t,bbt),n.Gc(Qj)&&Fu(t,hbt),n.Gc(Gj)&&Fu(t,dbt),t}function BXt(e,t){var n,i,r,o,a,d,b,v,x,T,A;return i=e.d,o=t.d,d=i+o,b=e.e!=t.e?-1:1,d==2?(x=js(Zr(e.a[0],Js),Zr(t.a[0],Js)),A=Gn(x),T=Gn(Jp(x,32)),T==0?new T1(b,A):new Vp(b,2,Y(K(Hn,1),li,30,15,[A,T]))):(n=e.a,r=t.a,a=ke(Hn,li,30,d,15,1),cBt(n,i,r,o,a),v=new Vp(b,d,a),a7(v),v)}function vit(e,t,n,i){var r,o;if(t){if(r=e.a.Le(n.d,t.d),r==0)return i.d=M0e(t,n.e),i.b=!0,t;o=r<0?0:1,t.a[o]=vit(e,t.a[o],n,i),D2(t.a[o])&&(D2(t.a[1-o])?(t.b=!0,t.a[0].b=!1,t.a[1].b=!1):D2(t.a[o].a[o])?t=NH(t,1-o):D2(t.a[o].a[1-o])&&(t=LGe(t,1-o)))}else return n;return t}function yit(e,t,n){var i,r,o,a;r=e.i,i=e.n,Ube(e,(Wf(),Wo),r.c+i.b,n),Ube(e,Ko,r.c+r.b-i.c-n[2],n),a=r.b-i.b-i.c,n[0]>0&&(n[0]+=e.d,a-=n[0]),n[2]>0&&(n[2]+=e.d,a-=n[2]),o=p.Math.max(0,a),n[1]=p.Math.max(n[1],a),Ube(e,Kc,r.c+i.b+n[0]-(n[1]-a)/2,n),t==Kc&&(e.c.b=o,e.c.c=r.c+i.b+(o-a)/2)}function xit(){this.c=ke(is,io,30,(Ue(),Y(K(Bs,1),uc,64,0,[Bo,Kt,nn,mn,Yt])).length,15,1),this.b=ke(is,io,30,Y(K(Bs,1),uc,64,0,[Bo,Kt,nn,mn,Yt]).length,15,1),this.a=ke(is,io,30,Y(K(Bs,1),uc,64,0,[Bo,Kt,nn,mn,Yt]).length,15,1),tge(this.c,sr),tge(this.b,Gr),tge(this.a,Gr)}function zXt(e,t,n,i){var r,o,a,d,b;for(b=t.i,d=n[b.g][e.d[b.g]],r=!1,a=new U(t.d);a.a<a.c.c.length;)if(o=c(G(a),70),Ze(Ye($(o,(Ge(),x3))))){r=!0;break}switch(r&&(i=0),b.g){case 1:d-=i+t.j.b,t.g.b=d;break;case 3:d+=i,t.g.b=d;break;case 4:d-=i+t.j.a,t.g.a=d;break;case 2:d+=i,t.g.a=d}}function Dc(e,t,n){var i,r,o,a;if(t<=n?(r=t,o=n):(r=n,o=t),i=0,e.b==null)e.b=ke(Hn,li,30,2,15,1),e.b[0]=r,e.b[1]=o,e.c=!0;else{if(i=e.b.length,e.b[i-1]+1==r){e.b[i-1]=o;return}a=ke(Hn,li,30,i+2,15,1),wc(e.b,0,a,0,i),e.b=a,e.b[i-1]>=r&&(e.c=!1,e.a=!1),e.b[i++]=r,e.b[i]=o,e.c||Hx(e)}}function FXt(e,t,n){var i,r,o,a,d,b,v;for(v=t.d,e.a=new Gc(v.c.length),e.c=new yn,d=new U(v);d.a<d.c.c.length;)a=c(G(d),108),o=new DD(null),Qe(e.a,o),ci(e.c,a,o);for(e.b=new yn,iUt(e,t),i=0;i<v.c.length-1;i++)for(b=c(Je(t.d,i),108),r=i+1;r<v.c.length;r++)DVt(e,b,c(Je(t.d,r),108),n)}function qXt(e,t){var n,i,r,o,a,d,b;for(n=Gr,d=(Jt(),ur),r=new U(t.a);r.a<r.c.c.length;)i=c(G(r),9),o=i.k,o!=ur&&(a=be($(i,(Ie(),K6e))),a==null?(n=p.Math.max(n,0),i.n.b=n+l0e(e.a,o,d)):i.n.b=(zt(a),a)),b=l0e(e.a,o,d),i.n.b<n+b+i.d.d&&(i.n.b=n+b+i.d.d),n=i.n.b+i.o.b+i.d.a,d=o}function xv(e){var t,n,i,r,o;for(r=new He,t=new G2((!e.a&&(e.a=new _e(_n,e,10,11)),e.a)),i=new Ht(Xt(I1(e).a.Jc(),new F));hn(i);)n=c(rn(i),74),ae(ce((!n.b&&(n.b=new Ct(xn,n,4,7)),n.b),0),196)||(o=no(c(ce((!n.c&&(n.c=new Ct(xn,n,5,8)),n.c),0),83)),t.a._b(o)||It(r.c,o));return r}function HXt(e,t,n){var i,r,o;if(e.e=n,e.d=0,e.b=0,e.f=1,e.i=t,(e.e&16)==16&&(e.i=WWt(e.i)),e.j=e.i.length,wi(e),o=sw(e),e.d!=e.j)throw V(new Un(Xn((Fn(),Qut))));if(e.g){for(i=0;i<e.g.a.c.length;i++)if(r=c(qm(e.g,i),587),e.f<=r.a)throw V(new Un(Xn((Fn(),Gut))));e.g.a.c.length=0}return o}function QXt(e,t){var n,i,r,o,a,d,b;for(t.Tg("Comment post-processing",1),o=new U(e.b);o.a<o.c.c.length;){for(r=c(G(o),26),i=new He,d=new U(r.a);d.a<d.c.c.length;)a=c(G(d),9),b=c($(a,(Ie(),Pk)),16),n=c($(a,Ck),16),(b||n)&&(ltn(a,b,n),b&&Or(i,b),n&&Or(i,n));Or(r.a,i)}t.Ug()}function kit(e,t,n,i,r){var o,a,d,b,v,x;if(e.d&&e.d.Fg(r),o=c(r.Xb(0),19),aZe(e,n,o,!1)||(a=c(r.Xb(r.gc()-1),19),aZe(e,i,a,!0))||vve(e,r))return!0;for(x=r.Jc();x.Ob();)for(v=c(x.Pb(),19),b=t.Jc();b.Ob();)if(d=c(b.Pb(),19),UQ(e,v,d))return!0;return!1}function GXt(e,t,n){var i,r,o,a,d,b,v,x,T,A;A=t.c.length,T=(v=e.Fh(n),c(v>=0?e.Ih(v,!1,!0):uw(e,n,!1),61));e:for(o=T.Jc();o.Ob();){for(r=c(o.Pb(),57),x=0;x<A;++x)if(a=(ht(x,t.c.length),c(t.c[x],76)),b=a.kd(),d=a.Jk(),i=r.Kh(d,!1),b==null?i!=null:!xi(b,i))continue e;return r}return null}function UXt(e,t,n,i){var r,o,a,d;for(r=c($g(t,(Ue(),Yt)).Jc().Pb(),12),o=c($g(t,nn).Jc().Pb(),12),d=new U(e.j);d.a<d.c.c.length;){for(a=c(G(d),12);a.e.c.length!=0;)ss(c(Je(a.e,0),17),r);for(;a.g.c.length!=0;)Os(c(Je(a.g,0),17),o)}n||Me(t,(Ie(),ih),null),i||Me(t,(Ie(),Wa),null)}function Oit(e,t){var n,i,r,o,a,d,b;for(n=new xx,o=new U(e.b);o.a<o.c.c.length;){for(r=c(G(o),26),b=!0,i=0,d=new U(r.a);d.a<d.c.c.length;)switch(a=c(G(d),9),a.k.g){case 4:++i;case 1:Abe(n,a);break;case 0:eUt(a,t);default:n.b==n.c||grt(n,i,b,!1,t),b=!1,i=0}n.b==n.c||grt(n,i,b,!0,t)}}function JXt(e){var t,n,i,r,o,a,d,b,v;for(e.a=new D0e,v=0,r=0,i=new U(e.i.b);i.a<i.c.c.length;){for(t=c(G(i),26),t.p=r,b=new U(t.a);b.a<b.c.c.length;)d=c(G(b),9),d.p=v,++v;++r}for(o=e.r==(F0(),e9),a=o?Jdt:Udt,n=new U(e.i.b);n.a<n.c.c.length;)t=c(G(n),26),Rr(t.a,a),TIt(e.a,$e(t.p),t.a)}function Eye(e,t){var n,i,r,o,a,d;for(n=0,d=new U(t);d.a<d.c.c.length;){for(a=c(G(d),12),Owe(e.b,e.d[a.p]),r=new wh(a.b);_o(r.a)||_o(r.b);)i=c(_o(r.a)?G(r.a):G(r.b),17),o=$1e(e,a==i.c?i.d:i.c),o>e.d[a.p]&&(n+=$be(e.b,o),T0(e.a,$e(o)));for(;!pT(e.a);)wme(e.b,c(M4(e.a),15).a)}return n}function Sit(e,t,n){var i,r,o,a;for(o=(!t.a&&(t.a=new _e(_n,t,10,11)),t.a).i,r=new on((!t.a&&(t.a=new _e(_n,t,10,11)),t.a));r.e!=r.i.gc();)i=c(un(r),19),(!i.a&&(i.a=new _e(_n,i,10,11)),i.a).i==0||(o+=Sit(e,i,!1));if(n)for(a=Wi(t);a;)o+=(!a.a&&(a.a=new _e(_n,a,10,11)),a.a).i,a=Wi(a);return o}function kv(e,t){var n,i,r,o;return e.Nj()?(i=null,r=e.Oj(),e.Rj()&&(i=e.Tj(e.Yi(t),null)),n=e.Gj(4,o=Y4(e,t),null,t,r),e.Kj()&&o!=null&&(i=e.Mj(o,i)),i?(i.lj(n),i.mj()):e.Hj(n),o):(o=Y4(e,t),e.Kj()&&o!=null&&(i=e.Mj(o,null),i&&i.mj()),o)}function VXt(e){var t,n,i,r,o,a,d,b,v,x;for(v=e.a,t=new Tr,b=0,i=new U(e.d);i.a<i.c.c.length;){for(n=c(G(i),228),x=0,sb(n.b,new rm),a=Pn(n.b,0);a.b!=a.d.c;)o=c(Dn(a),228),t.a._b(o)&&(r=n.c,d=o.c,x<d.d+d.a+v&&x+r.a+v>d.d&&(x=d.d+d.a+v));n.c.d=x,t.a.yc(n,t),b=p.Math.max(b,n.c.d+n.c.a)}return b}function XXt(e,t,n){var i,r,o,a,d,b;for(a=c($(e,(Ie(),dle)),16).Jc();a.Ob();){switch(o=c(a.Pb(),9),c($(o,(Ge(),$o)),166).g){case 2:zr(o,t);break;case 4:zr(o,n)}for(r=new Ht(Xt(td(o).a.Jc(),new F));hn(r);)i=c(rn(r),17),!(i.c&&i.d)&&(d=!i.d,b=c($(i,Z6e),12),d?ss(i,b):Os(i,b))}}function Us(){Us=Z,sJ=new P2("COMMENTS",0),Ca=new P2("EXTERNAL_PORTS",1),tC=new P2("HYPEREDGES",2),oJ=new P2("HYPERNODES",3),Uj=new P2("NON_FREE_PORTS",4),g3=new P2("NORTH_SOUTH_PORTS",5),nC=new P2(Zct,6),Qj=new P2("CENTER_LABELS",7),Gj=new P2("END_LABELS",8),cJ=new P2("PARTITIONS",9)}function WXt(e,t,n,i,r){return i<0?(i=qx(e,r,Y(K(tt,1),Fe,2,6,[dre,gre,pre,bre,ak,mre,wre,vre,yre,xre,kre,Ore]),t),i<0&&(i=qx(e,r,Y(K(tt,1),Fe,2,6,["Jan","Feb","Mar","Apr",ak,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),i<0?!1:(n.k=i,!0)):i>0?(n.k=i-1,!0):!1}function KXt(e,t,n,i,r){return i<0?(i=qx(e,r,Y(K(tt,1),Fe,2,6,[dre,gre,pre,bre,ak,mre,wre,vre,yre,xre,kre,Ore]),t),i<0&&(i=qx(e,r,Y(K(tt,1),Fe,2,6,["Jan","Feb","Mar","Apr",ak,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),i<0?!1:(n.k=i,!0)):i>0?(n.k=i-1,!0):!1}function YXt(e,t,n,i,r,o){var a,d,b,v;if(d=32,i<0){if(t[0]>=e.length||(d=ws(e,t[0]),d!=43&&d!=45)||(++t[0],i=LQ(e,t),i<0))return!1;d==45&&(i=-i)}return d==32&&t[0]-n==2&&r.b==2&&(b=new Yz,v=b.q.getFullYear()-H0+H0-80,a=v%100,o.a=i==a,i+=(v/100|0)*100+(i<a?100:0)),o.p=i,!0}function jit(e,t){var n,i,r,o,a;Wi(e)&&(a=c($(t,(Ge(),Db)),185),xe(Se(e,ar))===xe((es(),up))&&ri(e,ar,Bh),i=(m0(),new mg(Wi(e))),o=new JF(Wi(e)?new mg(Wi(e)):null,e),r=yxe(i,o,!1,!0),yf(a,(Tu(),ay)),n=c($(t,Xj),8),n.a=p.Math.max(r.a,n.a),n.b=p.Math.max(r.b,n.b))}function ZXt(e){var t,n,i,r,o,a;for(o=new Tr,t=new G2((!e.a&&(e.a=new _e(_n,e,10,11)),e.a)),r=new Ht(Xt(I1(e).a.Jc(),new F));hn(r);)i=c(rn(r),74),ae(ce((!i.b&&(i.b=new Ct(xn,i,4,7)),i.b),0),196)||(a=no(c(ce((!i.c&&(i.c=new Ct(xn,i,5,8)),i.c),0),83)),t.a._b(a)||(n=o.a.yc(a,o),n==null));return o}function GS(){GS=Z,mTe=Y(K(Gw,1),Wot,30,14,[1,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368e3,{l:3506176,m:794077,h:1},{l:884736,m:916411,h:20},{l:3342336,m:3912489,h:363},{l:589824,m:3034138,h:6914},{l:3407872,m:1962506,h:138294}]),p.Math.pow(2,-65)}function US(){US=Z;var e,t;for(kk=ke(o3,Fe,92,32,0,1),GE=ke(o3,Fe,92,32,0,1),e=1,t=0;t<=18;t++)kk[t]=(rd(),_c(e,0)>=0?I0(e):n7(I0(Ag(e)))),GE[t]=LF(Ld(e,t),0)?I0(Ld(e,t)):n7(I0(Ag(Ld(e,t)))),e=js(e,5);for(;t<GE.length;t++)kk[t]=Cx(kk[t-1],kk[1]),GE[t]=Cx(GE[t-1],(rd(),ice))}function Tit(e,t){var n,i,r,o,a;if(e.c.length==0)return new Is($e(0),$e(0));for(n=(ht(0,e.c.length),c(e.c[0],12)).j,a=0,o=t.g,i=t.g+1;a<e.c.length-1&&n.g<o;)++a,n=(ht(a,e.c.length),c(e.c[a],12)).j;for(r=a;r<e.c.length-1&&n.g<i;)++r,n=(ht(a,e.c.length),c(e.c[a],12)).j;return new Is($e(a),$e(r))}function eWt(e,t,n,i){var r,o,a,d,b,v,x;b=Io(t,n),(n==(Ue(),mn)||n==Yt)&&(b=ju(b)),a=!1;do for(r=!1,o=0;o<b.gc()-1;o++)v=c(b.Xb(o),12),d=c(b.Xb(o+1),12),UQt(e,v,d,i)&&(a=!0,Jee(e.a,c(b.Xb(o),12),c(b.Xb(o+1),12)),x=c(b.Xb(o+1),12),b.fd(o+1,c(b.Xb(o),12)),b.fd(o,x),r=!0);while(r);return a}function tWt(e,t,n){var i,r,o,a;for(n.Tg(ylt,1),r=c(Hl(mi(new Tt(null,new Et(t.b,16)),new HA),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[(ya(),wl)]))),16),Ktt(e,r,0),a=Pn(t.b,0);a.b!=a.d.c;)o=c(Dn(a),41),i=Ut(e.a,$e(o.g))!=null?c(Ut(e.a,$e(o.g)),15).a:0,Me(o,(Jo(),md),$e(i));n.Ug()}function UQ(e,t,n){var i,r,o,a,d,b,v,x;return d=t.i-e.g/2,b=n.i-e.g/2,v=t.j-e.g/2,x=n.j-e.g/2,o=t.g+e.g,a=n.g+e.g,i=t.f+e.g,r=n.f+e.g,d<b+a&&b<d&&v<x+r&&x<v||b<d+o&&d<b&&x<v+i&&v<x||d<b+a&&b<d&&v<x&&x<v+i?!0:b<d+o&&d<b&&v<x+r&&x<v}function nWt(e,t,n){var i,r,o,a,d,b,v,x,T,A;for(o=t.c.length,a=(ht(n,t.c.length),c(t.c[n],295)),d=a.a.o.a,T=a.c,A=0,v=a.c;v<=a.f;v++){if(d<=e.a[v])return v;for(x=e.a[v],b=null,r=n+1;r<o;r++)i=(ht(r,t.c.length),c(t.c[r],295)),i.c<=v&&i.f>=v&&(b=i);b&&(x=p.Math.max(x,b.a.o.a)),x>A&&(T=v,A=x)}return T}function iWt(e){var t,n,i,r,o,a,d;for(o=new xg(c(Bn(new u5),50)),d=Gr,n=new U(e.d);n.a<n.c.c.length;){for(t=c(G(n),228),d=t.c.c;o.a.gc()!=0&&(a=c(o.a.Rc(),228),a.c.c+a.c.b<d);)o.a.Ac(a)!=null;for(r=o.a.ec().Jc();r.Ob();)i=c(r.Pb(),228),ei(i.b,t),ei(t.b,i);o.a.yc(t,(Bt(),X0))==null}}function Eit(e,t,n){var i,r,o,a,d;if(!tv(t)){for(d=n.dh((ae(t,18)?c(t,18).gc():Jf(t.Jc()))/e.a|0),d.Tg(xlt,1),a=new GA,o=null,r=t.Jc();r.Ob();)i=c(r.Pb(),41),a=wa(Y(K(Ea,1),Pt,22,0,[a,new w1(i)])),o&&(Me(o,(Ii(),Ibt),i),Me(i,pue,o),cte(i)==cte(o)&&(Me(o,bue,i),Me(i,HJ,o))),o=i;d.Ug(),Eit(e,a,n)}}function rWt(e,t){var n,i,r;if(t==null){for(i=(!e.a&&(e.a=new _e(K1,e,9,5)),new on(e.a));i.e!=i.i.gc();)if(n=c(un(i),691),r=n.c,(r??n.zb)==null)return n}else for(i=(!e.a&&(e.a=new _e(K1,e,9,5)),new on(e.a));i.e!=i.i.gc();)if(n=c(un(i),691),St(t,(r=n.c,r??n.zb)))return n;return null}function jie(e,t){var n;switch(n=null,t.g){case 1:e.e.nf((In(),Eae))&&(n=c(e.e.mf(Eae),260));break;case 3:e.e.nf((In(),Cae))&&(n=c(e.e.mf(Cae),260));break;case 2:e.e.nf((In(),Tae))&&(n=c(e.e.mf(Tae),260));break;case 4:e.e.nf((In(),Mae))&&(n=c(e.e.mf(Mae),260))}return!n&&(n=c(e.e.mf((In(),JTe)),260)),n}function Cit(e,t,n){var i,r,o,a,d,b;for(r=n,o=0,d=new U(t);d.a<d.c.c.length;)a=c(G(d),19),ri(a,(B0(),XJ),$e(r++)),b=xv(a),i=p.Math.atan2(a.j+a.f/2,a.i+a.g/2),i+=i<0?kb:0,i<.7853981633974483||i>Nlt?Rr(b,e.b):i<=Nlt&&i>_lt?Rr(b,e.d):i<=_lt&&i>Dlt?Rr(b,e.c):i<=Dlt&&Rr(b,e.a),o=Cit(e,b,o);return r}function Mit(e,t,n,i){var r,o,a,d,b,v;for(r=(i.c+i.a)/2,xu(t.j),ei(t.j,r),xu(n.e),ei(n.e,r),v=new fIe,d=new U(e.f);d.a<d.c.c.length;)o=c(G(d),135),b=o.a,Zne(v,t,b),Zne(v,n,b);for(a=new U(e.k);a.a<a.c.c.length;)o=c(G(a),135),b=o.b,Zne(v,t,b),Zne(v,n,b);return v.b+=2,v.a+=lQe(t,e.q),v.a+=lQe(e.q,n),v}function sWt(e,t,n){var i;n.Tg("Processor arrange node",1),Ze(Ye($(t,(Jo(),E9e)))),i=c(mu(_1(mi(new Tt(null,new Et(t.b,16)),new h$))),41),e.a=c($(t,I9e),354),e.a==(E7(),yue)||e.a==UJ?Jst(e,new Qo(Y(K(qJ,1),FG,41,0,[i])),n.dh(1)):e.a==vue&&yot(e,new Qo(Y(K(qJ,1),FG,41,0,[i])),n.dh(1)),n.Ug()}function Ait(e){var t,n,i,r,o,a,d;for(n=e.i,t=e.n,d=n.d,e.f==(gl(),K0)?d+=(n.a-e.e.b)/2:e.f==Ef&&(d+=n.a-e.e.b),r=new U(e.d);r.a<r.c.c.length;){switch(i=c(G(r),190),a=i.Kf(),o=new fs,o.b=d,d+=a.b+e.a,e.b.g){case 0:o.a=n.c+t.b;break;case 1:o.a=n.c+t.b+(n.b-a.a)/2;break;case 2:o.a=n.c+n.b-t.c-a.a}i.Mf(o)}}function Nit(e){var t,n,i,r,o,a,d;for(n=e.i,t=e.n,d=n.c,e.b==(Ql(),W0)?d+=(n.b-e.e.a)/2:e.b==Tf&&(d+=n.b-e.e.a),r=new U(e.d);r.a<r.c.c.length;){switch(i=c(G(r),190),a=i.Kf(),o=new fs,o.a=d,d+=a.a+e.a,e.f.g){case 0:o.b=n.d+t.d;break;case 1:o.b=n.d+t.d+(n.a-a.b)/2;break;case 2:o.b=n.d+n.a-t.a-a.b}i.Mf(o)}}function oWt(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I;x=n.a.c,a=n.a.c+n.a.b,o=c(Ut(n.c,t),460),L=o.f,I=o.a,b=new ze(x,L),T=new ze(a,I),r=x,n.p||(r+=e.c),r+=n.F+n.v*e.b,v=new ze(r,L),A=new ze(r,I),y7(t.a,Y(K(Wr,1),Fe,8,0,[b,v])),d=n.d.a.gc()>1,d&&(i=new ze(r,n.b),ei(t.a,i)),y7(t.a,Y(K(Wr,1),Fe,8,0,[A,T]))}function Cye(e,t,n){var i,r;for(t<e.d.b.c.length?(e.b=c(Je(e.d.b,t),26),e.a=c(Je(e.d.b,t-1),26),e.c=t):(e.a=new dc(e.d),e.a.p=t-1,Qe(e.d.b,e.a),e.b=new dc(e.d),e.b.p=t,Qe(e.d.b,e.b),e.c=t),zr(n,e.b),r=new Ht(Xt(vr(n).a.Jc(),new F));hn(r);)i=c(rn(r),17),!i.c.i.c&&i.c.i.k==(Jt(),ac)&&zr(i.c.i,e.a)}function cWt(e,t){var n,i,r,o;for(o=Io(t,(Ue(),mn)).Jc();o.Ob();)i=c(o.Pb(),12),n=c($(i,(Ie(),Jl)),9),n&&Of(uf(ff(hf(af(new Ra,0),.1),e.i[t.p].d),e.i[n.p].a));for(r=Io(t,Kt).Jc();r.Ob();)i=c(r.Pb(),12),n=c($(i,(Ie(),Jl)),9),n&&Of(uf(ff(hf(af(new Ra,0),.1),e.i[n.p].d),e.i[t.p].a))}function _it(e){Dm(e,new pb(Am(Em(Mm(Cm(new h1,JG),"ELK Randomizer"),'Distributes the nodes randomly on the plane, leading to very obfuscating layouts. Can be useful to demonstrate the power of "real" layout algorithms.'),new fN))),Be(e,JG,mw,E7e),Be(e,JG,bw,15),Be(e,JG,bG,$e(0)),Be(e,JG,aj,uj)}function Mye(){Mye=Z;var e,t,n,i,r,o;for(aM=ke($l,i3,30,255,15,1),LV=ke(_a,cd,30,16,15,1),t=0;t<255;t++)aM[t]=-1;for(n=57;n>=48;n--)aM[n]=n-48<<24>>24;for(i=70;i>=65;i--)aM[i]=i-65+10<<24>>24;for(r=102;r>=97;r--)aM[r]=r-97+10<<24>>24;for(o=0;o<10;o++)LV[o]=48+o&Dr;for(e=10;e<=15;e++)LV[e]=65+e-10&Dr}function Dit(e,t){t.Tg("Process graph bounds",1),Me(e,(Ii(),due),T_($te(K2(new Tt(null,new Et(e.b,16)),new tK)))),Me(e,gue,T_($te(K2(new Tt(null,new Et(e.b,16)),new du)))),Me(e,y9e,T_(Rte(K2(new Tt(null,new Et(e.b,16)),new FA)))),Me(e,x9e,T_(Rte(K2(new Tt(null,new Et(e.b,16)),new qA)))),t.Ug()}function lWt(e){var t,n,i,r,o;r=c($(e,(Ge(),Db)),24),o=c($(e,EJ),24),n=new ze(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),t=new Ms(n),r.Gc((Tu(),ay))&&(i=c($(e,Xj),8),o.Gc((lu(),b9))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),t.a=p.Math.max(n.a,i.a),t.b=p.Math.max(n.b,i.b)),Ze(Ye($(e,Ple)))||IYt(e,n,t)}function uWt(e){var t,n,i,r,o,a,d;for(t=!1,n=0,r=new U(e.d.b);r.a<r.c.c.length;)for(i=c(G(r),26),i.p=n++,a=new U(i.a);a.a<a.c.c.length;)o=c(G(a),9),!t&&!tv(td(o))&&(t=!0);d=Li((_r(),$h),Y(K(JC,1),Pe,87,0,[po,vo])),t||(yf(d,Ma),yf(d,Rh)),e.a=new QVe(d),cc(e.f),cc(e.b),cc(e.e),cc(e.g)}function Tie(e){var t,n,i,r,o,a;if(!e.c){if(a=new Fl,t=oM,o=t.a.yc(e,t),o==null){for(i=new on(pc(e));i.e!=i.i.gc();)n=c(un(i),88),r=WQ(n),ae(r,89)&&dr(a,Tie(c(r,29))),Ln(a,n);t.a.Ac(e)!=null,t.a.gc()==0}wzt(a),av(a),e.c=new bx((c(ce(De((O0(),Gt).o),15),20),a.i),a.g),iu(e).b&=-33}return e.c}function Aye(e){var t;if(e.c!=10)throw V(new Un(Xn((Fn(),ZG))));switch(t=e.a,t){case 110:t=10;break;case 114:t=13;break;case 116:t=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw V(new Un(Xn((Fn(),Ta))))}return t}function Lit(e){var t,n,i,r,o;if(e.l==0&&e.m==0&&e.h==0)return"0";if(e.h==ML&&e.m==0&&e.l==0)return"-9223372036854775808";if(e.h>>19!=0)return"-"+Lit(yS(e));for(n=e,i="";!(n.l==0&&n.m==0&&n.h==0);){if(r=ite(aG),n=dxe(n,r,!0),t=""+IIe(V0),!(n.l==0&&n.m==0&&n.h==0))for(o=9-t.length;o>0;o--)t="0"+t;i=t+i}return i}function aWt(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var e="__proto__",t=Object.create(null);if(t[e]!==void 0)return!1;var n=Object.getOwnPropertyNames(t);return!(n.length!=0||(t[e]=42,t[e]!==42)||Object.getOwnPropertyNames(t).length==0)}function fWt(e,t,n){var i,r,o,a,d,b,v,x,T;for(i=n.c,r=n.d,d=mh(t.c),b=mh(t.d),i==t.c?(d=gye(e,d,r),b=Net(t.d)):(d=Net(t.c),b=gye(e,b,r)),v=new Jz(t.a),rr(v,d,v.a,v.a.a),rr(v,b,v.c.b,v.c),a=t.c==i,T=new rPe,o=0;o<v.b-1;++o)x=new Is(c(bc(v,o),8),c(bc(v,o+1),8)),a&&o==0||!a&&o==v.b-2?T.b=x:Qe(T.a,x);return T}function hWt(e,t){var n,i,r,o;if(o=e.j.g-t.j.g,o!=0)return o;if(n=c($(e,(Ge(),Vg)),15),i=c($(t,Vg),15),n&&i&&(r=n.a-i.a,r!=0))return r;switch(e.j.g){case 1:return Ci(e.n.a,t.n.a);case 2:return Ci(e.n.b,t.n.b);case 3:return Ci(t.n.a,e.n.a);case 4:return Ci(t.n.b,e.n.b);default:throw V(new co(l3e))}}function Nye(e,t,n,i){var r,o,a,d,b;if(Jf((J_(),new Ht(Xt(td(t).a.Jc(),new F))))>=e.a||!uve(t,n))return-1;if(tv(c(i.Kb(t),22)))return 1;for(r=0,a=c(i.Kb(t),22).Jc();a.Ob();)if(o=c(a.Pb(),17),b=o.c.i==t?o.d.i:o.c.i,d=Nye(e,b,n,i),d==-1||(r=p.Math.max(r,d),r>e.c-1))return-1;return r+1}function Th(){Th=Z,eV=new Ur((In(),l9),1.3),swt=new Ur(sy,(Bt(),!1)),O8e=new qp(15),PC=new Ur(Ih,O8e),IC=new Ur(oh,15),twt=JP,rwt=zb,owt=D3,cwt=op,iwt=_3,que=UC,lwt=oy,E8e=(Wye(),Ymt),T8e=Kmt,Que=ewt,C8e=Zmt,k8e=Vmt,Hue=Jmt,x8e=Umt,j8e=Wmt,v8e=GC,nwt=jae,zP=Hmt,w8e=qmt,FP=Qmt,S8e=Xmt,y8e=Gmt}function Pit(e,t){var n,i,r,o,a,d;if(xe(t)===xe(e))return!0;if(!ae(t,16)||(i=c(t,16),d=e.gc(),i.gc()!=d))return!1;if(a=i.Jc(),e.Wi()){for(n=0;n<d;++n)if(r=e.Ti(n),o=a.Pb(),r==null?o!=null:!xi(r,o))return!1}else for(n=0;n<d;++n)if(r=e.Ti(n),o=a.Pb(),xe(r)!==xe(o))return!1;return!0}function Iit(e,t){var n,i,r,o,a,d;if(e.f>0){if(e.Zj(),t!=null){for(o=0;o<e.d.length;++o)if(n=e.d[o],n){for(i=c(n.g,375),d=n.i,a=0;a<d;++a)if(r=i[a],xi(t,r.kd()))return!0}}else for(o=0;o<e.d.length;++o)if(n=e.d[o],n){for(i=c(n.g,375),d=n.i,a=0;a<d;++a)if(r=i[a],xe(t)===xe(r.kd()))return!0}}return!1}function dWt(e,t){var n,i,r;return n=t.ni(e.a),n&&(r=qn(Kf((!n.b&&(n.b=new wu((At(),zs),Zo,n)),n.b),"affiliation")),r!=null)?(i=QF(r,pl(35)),i==-1?une(e,KT(e,Bu(t.ok())),r):i==0?une(e,null,(en(1,r.length+1),r.substr(1))):une(e,(hs(0,i,r.length),r.substr(0,i)),(en(i+1,r.length+1),r.substr(i+1)))):null}function JQ(){JQ=Z,Rce=new _4("NORTH",0,(Ue(),Kt),Kt),zce=new _4("SOUTH",1,mn,mn),Ice=new _4("EAST",2,nn,nn),Hce=new _4("WEST",3,Yt,Yt),Bce=new _4("NORTH_WEST_CORNER",4,Yt,Kt),$ce=new _4("NORTH_EAST_CORNER",5,Kt,nn),qce=new _4("SOUTH_WEST_CORNER",6,mn,Yt),Fce=new _4("SOUTH_EAST_CORNER",7,nn,mn)}function gWt(e,t,n){var i,r,o,a;n.Tg("Orthogonally routing hierarchical port edges",1),e.a=0,i=lZt(t),men(t,i),ZZt(e,t,i),mtn(t),r=c($(t,(Ge(),ar)),103),o=t.b,Hst((ht(0,o.c.length),c(o.c[0],26)),r,t),Hst(c(Je(o,o.c.length-1),26),r,t),a=t.b,Yrt((ht(0,a.c.length),c(a.c[0],26))),Yrt(c(Je(a,a.c.length-1),26)),n.Ug()}function _ye(e){switch(e){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return e-48<<24>>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 V(new Vh("Invalid hexadecimal"))}}function Rit(e,t,n,i){var r,o,a,d,b,v;for(b=Yne(e,n),v=Yne(t,n),r=!1;b&&v&&(i||fqt(b,v,n));)a=Yne(b,n),d=Yne(v,n),vD(t),vD(e),o=b.c,Kie(b,!1),Kie(v,!1),n?(R0(t,v.p,o),t.p=v.p,R0(e,b.p+1,o),e.p=b.p):(R0(e,b.p,o),e.p=b.p,R0(t,v.p+1,o),t.p=v.p),zr(b,null),zr(v,null),b=a,v=d,r=!0;return r}function $it(e){switch(e.g){case 0:return new HN;case 1:return new nz;case 3:return new CRe;case 4:return new GO;case 5:return new sFe;case 6:return new W8;case 2:return new MK;case 7:return new FN;case 8:return new CK;default:throw V(new qt("No implementation is available for the layerer "+(e.f!=null?e.f:""+e.g)))}}function pWt(e,t,n,i){var r,o,a,d,b;for(r=!1,o=!1,d=new U(i.j);d.a<d.c.c.length;)a=c(G(d),12),xe($(a,(Ie(),Si)))===xe(n)&&(a.g.c.length==0?a.e.c.length==0||(r=!0):o=!0);return b=0,r&&r^o?b=n.j==(Ue(),Kt)?-e.e[i.c.p][i.p]:t-e.e[i.c.p][i.p]:o&&r^o?b=e.e[i.c.p][i.p]+1:r&&o&&(b=n.j==(Ue(),Kt)?0:t/2),b}function Eie(e,t,n,i,r,o,a,d){var b,v,x;for(b=0,t!=null&&(b^=_g(t.toLowerCase())),n!=null&&(b^=_g(n)),i!=null&&(b^=_g(i)),a!=null&&(b^=_g(a)),d!=null&&(b^=_g(d)),v=0,x=o.length;v<x;v++)b^=_g(o[v]);e?b|=256:b&=-257,r?b|=16:b&=-17,this.f=b,this.i=t==null?null:(zt(t),t),this.a=n,this.d=i,this.j=o,this.g=a,this.e=d}function Dye(e,t,n){var i,r;switch(r=null,t.g){case 1:r=(Dl(),TOe);break;case 2:r=(Dl(),COe)}switch(i=null,n.g){case 1:i=(Dl(),EOe);break;case 2:i=(Dl(),jOe);break;case 3:i=(Dl(),MOe);break;case 4:i=(Dl(),AOe)}return r&&i?j4(e.j,new zK(new Qo(Y(K(Qnn,1),Pt,181,0,[c(Bn(r),181),c(Bn(i),181)])))):(Mt(),Mt(),$s)}function bWt(e){var t,n,i;switch(t=c($(e,(Ge(),Xj)),8),Me(e,Xj,new ze(t.b,t.a)),c($(e,pd),259).g){case 1:Me(e,pd,(Bd(),uV));break;case 2:Me(e,pd,(Bd(),cV));break;case 3:Me(e,pd,(Bd(),GP));break;case 4:Me(e,pd,(Bd(),UP))}(e.q?e.q:(Mt(),Mt(),Vd))._b(Xv)&&(n=c($(e,Xv),8),i=n.a,n.a=n.b,n.b=i)}function Bit(e,t,n,i,r,o){if(this.b=n,this.d=r,e>=t.length)throw V(new qc("Greedy SwitchDecider: Free layer not in graph."));this.c=t[e],this.e=new U_(i),_te(this.e,this.c,(Ue(),Yt)),this.i=new U_(i),_te(this.i,this.c,nn),this.f=new Mqe(this.c),this.a=!o&&r.i&&!r.s&&this.c[0].k==(Jt(),Ar),this.a&&LGt(this,e,t.length)}function zit(e,t){var n,i,r,o,a,d;o=!e.B.Gc((lu(),oI)),a=e.B.Gc($ae),e.a=new mYe(a,o,e.c),e.n&&nbe(e.a.n,e.n),vY(e.g,(Wf(),Kc),e.a),t||(i=new $7(1,o,e.c),i.n.a=e.k,A4(e.p,(Ue(),Kt),i),r=new $7(1,o,e.c),r.n.d=e.k,A4(e.p,mn,r),d=new $7(0,o,e.c),d.n.c=e.k,A4(e.p,Yt,d),n=new $7(0,o,e.c),n.n.b=e.k,A4(e.p,nn,n))}function mWt(e){var t,n,i;switch(t=c($(e.d,(Ge(),U1)),225),t.g){case 2:n=lnn(e);break;case 3:n=(i=new He,hr(mi(Qc(jo(jo(new Tt(null,new Et(e.d.b,16)),new hm),new QR),new h8),new h0),new F_e(i)),i);break;default:throw V(new co("Compaction not supported for "+t+" edges."))}AZt(e,n),vs(new an(e.g),new R_e(e))}function wWt(e,t){var n,i,r,o,a,d,b;if(t.Tg("Process directions",1),n=c($(e,(Jo(),Bw)),87),n!=(_r(),Rh))for(r=Pn(e.b,0);r.b!=r.d.c;){switch(i=c(Dn(r),41),d=c($(i,(Ii(),RP)),15).a,b=c($(i,$P),15).a,n.g){case 4:b*=-1;break;case 1:o=d,d=b,b=o;break;case 2:a=d,d=-b,b=a}Me(i,RP,$e(d)),Me(i,$P,$e(b))}t.Ug()}function vWt(e){var t,n,i,r,o,a,d,b;for(b=new JUe,d=new U(e.a);d.a<d.c.c.length;)if(a=c(G(d),9),a.k!=(Jt(),Ar)){for(SJt(b,a,new fs),o=new Ht(Xt(Fi(a).a.Jc(),new F));hn(o);)if(r=c(rn(o),17),!(r.c.i.k==Ar||r.d.i.k==Ar))for(i=Pn(r.a,0);i.b!=i.d.c;)n=c(Dn(i),8),t=n,H7(b,new $6(t.a,t.b))}return b}function Cie(){Cie=Z,eTe=new bi(eoe),Z8e=(kT(),HP),Y8e=new vt(ioe,Z8e),K8e=(LD(),oV),_wt=new vt(m4e,K8e),W8e=(rL(),Yue),Nwt=new vt(w4e,W8e),Cwt=new vt(toe,null),X8e=(dD(),rV),Awt=new vt(noe,X8e),V8e=(nF(),Xue),Swt=new vt(v4e,V8e),jwt=new vt(y4e,(Bt(),!1)),Twt=new vt(x4e,$e(64)),Ewt=new vt(k4e,!0),Mwt=Kue}function Fit(e,t){var n,i,r,o,a,d,b,v,x,T;for(e.p=1,r=e.c,T=new Ad,x=rw(e,(Gs(),Yc)).Jc();x.Ob();)for(v=c(x.Pb(),12),i=new U(v.g);i.a<i.c.c.length;)n=c(G(i),17),b=n.d.i,e!=b&&(o=b.c,o.p<=r.p&&(a=r.p+1,a==t.b.c.length?(d=new dc(t),d.p=a,Qe(t.b,d),zr(b,d)):(d=c(Je(t.b,a),26),zr(b,d)),T.a.yc(b,T)));return T}function qit(e){switch(e.g){case 0:return new xpe;case 1:return new sz;case 2:return new Fc;case 3:return new rz;case 4:return new M$e;case 5:return new N$e;case 6:return new A$e;case 7:return new Qf;case 8:return new NK;default:throw V(new qt("No implementation is available for the cycle breaker "+(e.f!=null?e.f:""+e.g)))}}function yWt(e,t){var n,i;if(n=c($(e,(Ii(),aue)),16),!n||n.gc()<1)return null;if(n.gc()==1)return c(n.Xb(0),41);switch(i=null,t.g){case 2:i=c(mu(C4(n.Mc(),new k8)),41);break;case 1:i=c(mu(J2(n.Mc(),new ca)),41);break;case 4:i=c(mu(C4(n.Mc(),new x8)),41);break;case 3:i=c(mu(J2(n.Mc(),new N5)),41)}return i}function Hit(e){var t,n,i,r,o,a;if(e.a==null)if(e.a=ke(Sl,Yf,30,e.c.b.c.length,16,1),e.a[0]=!1,ki(e.c,(Ge(),Fle)))for(i=c($(e.c,Fle),16),n=i.Jc();n.Ob();)t=c(n.Pb(),15).a,t>0&&t<e.a.length&&(e.a[t]=!1);else for(a=new U(e.c.b),a.a<a.c.c.length&&G(a),r=1;a.a<a.c.c.length;)o=c(G(a),26),e.a[r++]=nVt(o)}function Fd(){Fd=Z,DC=new bi("additionalHeight"),r9=new bi("drawingHeight"),Bk=new bi("drawingWidth"),YJ=new bi("minHeight"),LC=new bi("minWidth"),ZJ=new bi("rows"),ty=new bi("targetWidth"),zue=new Qi("minRowIncrease",0),zmt=new Qi("maxRowIncrease",0),Bue=new Qi("minRowDecrease",0),Bmt=new Qi("maxRowDecrease",0)}function Qit(e,t){var n,i,r,o;switch(r=e.b,t){case 1:{e.b|=1,e.b|=4,e.b|=8;break}case 2:{e.b|=2,e.b|=4,e.b|=8;break}case 4:{e.b|=1,e.b|=2,e.b|=4,e.b|=8;break}case 3:{e.b|=16,e.b|=8;break}case 0:{e.b|=32,e.b|=16,e.b|=8,e.b|=1,e.b|=2,e.b|=4;break}}if(e.b!=r&&e.c)for(i=new on(e.c);i.e!=i.i.gc();)o=c(un(i),474),n=iu(o),vv(n,t)}function Git(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I;for(r=!1,a=t,d=0,b=a.length;d<b;++d)o=a[d],Ze((Bt(),!!o.e))&&!c(Je(e.b,o.e.p),221).s&&(r=r|(v=o.e,x=c(Je(e.b,v.p),221),T=x.e,A=dIe(n,T.length),L=T[A][0],L.k==(Jt(),Ar)?T[A]=KVt(o,T[A],n?(Ue(),Yt):(Ue(),nn)):x.c.kg(T,n),I=dL(e,x,n,i),jye(x.e,x.o,n),I));return r}function Uit(e,t){var n,i,r,o,a;for(o=(!t.a&&(t.a=new _e(_n,t,10,11)),t.a).i,r=new on((!t.a&&(t.a=new _e(_n,t,10,11)),t.a));r.e!=r.i.gc();)i=c(un(r),19),xe(Se(i,(In(),A3)))!==xe((D1(),XC))&&(a=c(Se(t,cy),144),n=c(Se(i,cy),144),(a==n||a&&Fbe(a,n))&&(!i.a&&(i.a=new _e(_n,i,10,11)),i.a).i!=0&&(o+=Uit(e,i)));return o}function xWt(e){var t,n,i,r,o;for(o=new Gc(e.a.c.length),r=new U(e.a);r.a<r.c.c.length;){switch(i=c(G(r),9),n=c($(i,(Ge(),$o)),166),t=null,n.g){case 1:case 2:t=(lb(),d3);break;case 3:case 4:t=(lb(),Hj)}t?(Me(i,(Ie(),aJ),(lb(),d3)),t==Hj?QQ(i,n,(Gs(),Vl)):t==d3&&QQ(i,n,(Gs(),Yc))):It(o.c,i)}return o}function kWt(e){var t,n,i,r,o,a,d;for(i=0,d=0,a=new U(e.d);a.a<a.c.c.length;)o=c(G(a),108),r=c(Hl(mi(new Tt(null,new Et(o.j,16)),new cf),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[(ya(),wl)]))),16),n=null,i<=d?(n=(Ue(),Kt),i+=r.gc()):d<i&&(n=(Ue(),mn),d+=r.gc()),t=n,hr(Qc(r.Mc(),new kA),new Q_e(t))}function OWt(e,t){var n;return n=new cm,t&&nc(n,c(Ut(e.a,uI),105)),ae(t,278)&&nc(n,c(Ut(e.a,aI),105)),ae(t,363)?(nc(n,c(Ut(e.a,zo),105)),n):(ae(t,83)&&nc(n,c(Ut(e.a,xn),105)),ae(t,209)?(nc(n,c(Ut(e.a,_n),105)),n):ae(t,196)?(nc(n,c(Ut(e.a,fu),105)),n):(ae(t,273)&&nc(n,c(Ut(e.a,$i),105)),n))}function SWt(e){var t,n,i,r,o,a,d,b;for(e.b=new Btt(new Qo((Ue(),Y(K(Bs,1),uc,64,0,[Bo,Kt,nn,mn,Yt]))),new Qo((ew(),Y(K(Pce,1),Pe,369,0,[Aw,Y0,Mw])))),a=Y(K(Bs,1),uc,64,0,[Bo,Kt,nn,mn,Yt]),d=0,b=a.length;d<b;++d)for(o=a[d],n=Y(K(Pce,1),Pe,369,0,[Aw,Y0,Mw]),i=0,r=n.length;i<r;++i)t=n[i],AHt(e.b,o,t,new He)}function Jit(e,t){var n,i,r,o,a,d,b,v,x,T;if(a=c(c(Ei(e.r,t),24),85),d=e.u.Gc((Gl(),ap)),n=e.u.Gc(ZC),i=e.u.Gc(YC),v=e.u.Gc(Vk),T=e.B.Gc((lu(),xV)),x=!n&&!i&&(v||a.gc()==2),kXt(e,t),r=null,b=null,d){for(o=a.Jc(),r=c(o.Pb(),116),b=r;o.Ob();)b=c(o.Pb(),116);r.d.b=0,b.d.c=0,x&&!r.a&&(r.d.c=0)}T&&(EQt(a),d&&(r.d.b=0,b.d.c=0))}function Vit(e,t){var n,i,r,o,a,d,b,v,x,T;if(a=c(c(Ei(e.r,t),24),85),d=e.u.Gc((Gl(),ap)),n=e.u.Gc(ZC),i=e.u.Gc(YC),b=e.u.Gc(Vk),T=e.B.Gc((lu(),xV)),v=!n&&!i&&(b||a.gc()==2),zKt(e,t),x=null,r=null,d){for(o=a.Jc(),x=c(o.Pb(),116),r=x;o.Ob();)r=c(o.Pb(),116);x.d.d=0,r.d.a=0,v&&!x.a&&(x.d.a=0)}T&&(CQt(a),d&&(x.d.d=0,r.d.a=0))}function Xit(e,t,n){var i,r,o,a,d,b,v,x;if(r=t.k,t.p>=0)return!1;if(t.p=n.b,Qe(n.e,t),r==(Jt(),Cr)||r==Ic){for(a=new U(t.j);a.a<a.c.c.length;)for(o=c(G(a),12),x=(i=new U(new t4(o).a.g),new Wde(i));_o(x.a);)if(v=c(G(x.a),17).d,d=v.i,b=d.k,t.c!=d.c&&(b==Cr||b==Ic)&&Xit(e,d,n))return!0}return!0}function VQ(e){var t;return(e.Db&64)!=0?Kve(e):(t=new Ba(Kve(e)),t.a+=" (changeable: ",yg(t,(e.Bb&Ga)!=0),t.a+=", volatile: ",yg(t,(e.Bb&$1)!=0),t.a+=", transient: ",yg(t,(e.Bb&Cv)!=0),t.a+=", defaultValueLiteral: ",Zs(t,e.j),t.a+=", unsettable: ",yg(t,(e.Bb&Il)!=0),t.a+=", derived: ",yg(t,(e.Bb&od)!=0),t.a+=")",t.a)}function jWt(e,t){var n,i,r,o,a;return r=t.ni(e.a),r&&(i=(!r.b&&(r.b=new wu((At(),zs),Zo,r)),r.b),n=qn(Kf(i,xs)),n!=null&&(o=n.lastIndexOf("#"),a=o==-1?b0e(e,t.hk(),n):o==0?mD(e,null,(en(1,n.length+1),n.substr(1))):mD(e,(hs(0,o,n.length),n.substr(0,o)),(en(o+1,n.length+1),n.substr(o+1))),ae(a,160)))?c(a,160):null}function TWt(e,t){var n,i,r,o,a;return i=t.ni(e.a),i&&(n=(!i.b&&(i.b=new wu((At(),zs),Zo,i)),i.b),o=qn(Kf(n,Loe)),o!=null&&(r=o.lastIndexOf("#"),a=r==-1?b0e(e,t.hk(),o):r==0?mD(e,null,(en(1,o.length+1),o.substr(1))):mD(e,(hs(0,r,o.length),o.substr(0,r)),(en(r+1,o.length+1),o.substr(r+1))),ae(a,160)))?c(a,160):null}function EWt(e,t){var n,i,r,o,a,d,b,v,x,T,A;for(t.Tg("Restoring reversed edges",1),b=new U(e.b);b.a<b.c.c.length;)for(d=c(G(b),26),x=new U(d.a);x.a<x.c.c.length;)for(v=c(G(x),9),A=new U(v.j);A.a<A.c.c.length;)for(T=c(G(A),12),a=ed(T.g),i=a,r=0,o=i.length;r<o;++r)n=i[r],Ze(Ye($(n,(Ie(),Ug))))&&Bg(n,!1);t.Ug()}function CWt(e,t,n,i){var r,o,a,d,b;for(b=ke(is,Fe,109,(Ue(),Y(K(Bs,1),uc,64,0,[Bo,Kt,nn,mn,Yt])).length,0,2),o=Y(K(Bs,1),uc,64,0,[Bo,Kt,nn,mn,Yt]),a=0,d=o.length;a<d;++a)r=o[a],b[r.g]=ke(is,io,30,e.c[r.g],15,1);return XZe(b,e,Kt),XZe(b,e,mn),Qne(b,e,Kt,t,n,i),Qne(b,e,nn,t,n,i),Qne(b,e,mn,t,n,i),Qne(b,e,Yt,t,n,i),b}function MWt(e,t,n){if(Cc(e.a,t)){if($a(c(Ut(e.a,t),47),n))return 1}else ci(e.a,t,new Tr);if(Cc(e.a,n)){if($a(c(Ut(e.a,n),47),t))return-1}else ci(e.a,n,new Tr);if(Cc(e.b,t)){if($a(c(Ut(e.b,t),47),n))return-1}else ci(e.b,t,new Tr);if(Cc(e.b,n)){if($a(c(Ut(e.b,n),47),t))return 1}else ci(e.b,n,new Tr);return 0}function AWt(e){var t,n,i,r,o,a;e.q==(es(),e1)||e.q==kc||(r=e.f.n.d+cq(c(eo(e.b,(Ue(),Kt)),129))+e.c,t=e.f.n.a+cq(c(eo(e.b,mn),129))+e.c,i=c(eo(e.b,nn),129),a=c(eo(e.b,Yt),129),o=p.Math.max(0,i.n.d-r),o=p.Math.max(o,a.n.d-r),n=p.Math.max(0,i.n.a-t),n=p.Math.max(n,a.n.a-t),i.n.d=o,a.n.d=o,i.n.a=n,a.n.a=n)}function Lye(e,t,n,i){var r,o,a,d,b,v;if(n==null){for(r=c(e.g,123),d=0;d<e.i;++d)if(a=r[d],a.Jk()==t)return _s(e,a,i)}return o=(Hs(),c(t,69).vk()?c(n,76):Rd(t,n)),bu(e.e)?(v=!UD(e,t),i=Vc(e,o,i),b=t.Hk()?j0(e,3,t,null,n,XS(e,t,n,ae(t,104)&&(c(t,20).Bb&Rs)!=0),v):j0(e,1,t,t.gk(),n,-1,v),i?i.lj(b):i=b):i=Vc(e,o,i),i}function Wit(){this.b=new E0,this.d=new E0,this.e=new E0,this.c=new E0,this.a=new yn,this.f=new yn,Tx(Wr,new qf,new Z$),Tx(wTe,new sB,new oB),Tx(OOe,new cB,new oN),Tx(SOe,new cN,new lN),Tx(fvt,new lB,new uN),Tx(Gnn,new eB,new tB),Tx(Vnn,new nB,new i6),Tx(Unn,new iB,new _8),Tx(Jnn,new rB,new aK),Tx(Knn,new D8,new sN)}function tE(e,t){var n,i,r,o,a;for(e=e==null?ml:(zt(e),e),r=0;r<t.length;r++)t[r]=NVt(t[r]);for(n=new a4,a=0,i=0;i<t.length&&(o=e.indexOf("%s",a),o!=-1);)n.a+=""+Fa(e==null?ml:(zt(e),e),a,o),Ec(n,t[i++]),a=o+2;if(qGe(n,e,a,e.length),i<t.length){for(n.a+=" [",Ec(n,t[i++]);i<t.length;)n.a+=Xc,Ec(n,t[i++]);n.a+="]"}return n.a}function Pye(e,t){var n,i,r,o,a,d,b;for(n=0,b=new U(t);b.a<b.c.c.length;){for(d=c(G(b),12),Owe(e.b,e.d[d.p]),a=0,r=new wh(d.b);_o(r.a)||_o(r.b);)i=c(_o(r.a)?G(r.a):G(r.b),17),THe(i)?(o=$1e(e,d==i.c?i.d:i.c),o>e.d[d.p]&&(n+=$be(e.b,o),T0(e.a,$e(o)))):++a;for(n+=e.b.d*a;!pT(e.a);)wme(e.b,c(M4(e.a),15).a)}return n}function Kit(e){var t,n,i,r,o,a;return o=0,t=Qa(e),t.ik()&&(o|=4),(e.Bb&Il)!=0&&(o|=2),ae(e,104)?(n=c(e,20),r=Qs(n),(n.Bb&rc)!=0&&(o|=32),r&&(bn(Z2(r)),o|=8,a=r.t,(a>1||a==-1)&&(o|=16),(r.Bb&rc)!=0&&(o|=64)),(n.Bb&Rs)!=0&&(o|=$1),o|=Ga):ae(t,462)?o|=512:(i=t.ik(),i&&(i.i&1)!=0&&(o|=256)),(e.Bb&512)!=0&&(o|=128),o}function NWt(e,t){var n;return e.f==Yae?(n=Hm(ao((Ll(),bs),t)),e.e?n==4&&t!=(ik(),Kk)&&t!=(ik(),Wk)&&t!=(ik(),Zae)&&t!=(ik(),efe):n==2):e.d&&(e.d.Gc(t)||e.d.Gc(P4(ao((Ll(),bs),t)))||e.d.Gc(Jx((Ll(),bs),e.b,t)))?!0:e.f&&mye((Ll(),e.f),tD(ao(bs,t)))?(n=Hm(ao(bs,t)),e.e?n==4:n==2):!1}function _Wt(e,t){var n,i,r,o,a,d,b,v;for(o=new He,t.b.c.length=0,n=c(Hl(wbe(new Tt(null,new Et(new an(e.a.b),1))),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[(ya(),wl)]))),16),r=n.Jc();r.Ob();)if(i=c(r.Pb(),15),a=Nbe(e.a,i),a.b!=0)for(d=new dc(t),It(o.c,d),d.p=i.a,v=Pn(a,0);v.b!=v.d.c;)b=c(Dn(v),9),zr(b,d);Or(t.b,o)}function Mie(e){var t,n,i,r,o,a,d;for(d=new yn,i=new U(e.a.b);i.a<i.c.c.length;)t=c(G(i),60),ci(d,t,new He);for(r=new U(e.a.b);r.a<r.c.c.length;)for(t=c(G(r),60),t.i=Gr,a=t.c.Jc();a.Ob();)o=c(a.Pb(),60),c(No(lo(d.f,o)),16).Ec(t);for(n=new U(e.a.b);n.a<n.c.c.length;)t=c(G(n),60),t.c.$b(),t.c=c(No(lo(d.f,t)),16);wit(e)}function Aie(e){var t,n,i,r,o,a,d;for(d=new yn,i=new U(e.a.b);i.a<i.c.c.length;)t=c(G(i),84),ci(d,t,new He);for(r=new U(e.a.b);r.a<r.c.c.length;)for(t=c(G(r),84),t.o=Gr,a=t.f.Jc();a.Ob();)o=c(a.Pb(),84),c(No(lo(d.f,o)),16).Ec(t);for(n=new U(e.a.b);n.a<n.c.c.length;)t=c(G(n),84),t.f.$b(),t.f=c(No(lo(d.f,t)),16);cit(e)}function DWt(e,t){var n,i,r,o,a,d,b,v,x,T,A;for(b=Vr(t.a),r=de(be($(b,(Ge(),tp))))*2,x=de(be($(b,Yv))),v=p.Math.max(r,x),o=ke(is,io,30,t.f-t.c+1,15,1),i=-v,n=0,d=t.b.Jc();d.Ob();)a=c(d.Pb(),9),i+=e.a[a.c.p]+v,o[n++]=i;for(i+=e.a[t.a.c.p]+v,o[n++]=i,A=new U(t.e);A.a<A.c.c.length;)T=c(G(A),9),i+=e.a[T.c.p]+v,o[n++]=i;return o}function LWt(e,t,n,i){var r,o,a,d,b,v,x,T,A;for(A=new xg(new aDe(e)),d=Y(K(Wd,1),qg,9,0,[t,n]),b=0,v=d.length;b<v;++b)for(a=d[b],T=N7(a,i).Jc();T.Ob();)for(x=c(T.Pb(),12),o=new wh(x.b);_o(o.a)||_o(o.b);)r=c(_o(o.a)?G(o.a):G(o.b),17),ys(r)||(A.a.yc(x,(Bt(),X0))==null,THe(r)&&Z_(A,x==r.c?r.d:r.c));return Bn(A),new ql(A)}function PWt(e,t,n,i){var r,o,a,d,b,v,x,T;return a=c(Se(n,(In(),Qk)),8),b=a.a,x=a.b+e,r=p.Math.atan2(x,b),r<0&&(r+=kb),r+=t,r>kb&&(r-=kb),d=c(Se(i,Qk),8),v=d.a,T=d.b+e,o=p.Math.atan2(T,v),o<0&&(o+=kb),o+=t,o>kb&&(o-=kb),dh(),vf(1e-10),p.Math.abs(r-o)<=1e-10||r==o||isNaN(r)&&isNaN(o)?0:r<o?-1:r>o?1:Hp(isNaN(r),isNaN(o))}function Iye(e,t,n,i){var r,o,a;t&&(o=de(be($(t,(Ii(),Wg))))+i,a=n+de(be($(t,QJ)))/2,Me(t,RP,$e(Gn(tc(p.Math.round(o))))),Me(t,$P,$e(Gn(tc(p.Math.round(a))))),t.d.b==0||Iye(e,c(qF((r=Pn(new w1(t).a.d,0),new lx(r))),41),n+de(be($(t,QJ)))+e.b,i+de(be($(t,i9)))),$(t,bue)!=null&&Iye(e,c($(t,bue),41),n,i))}function IWt(e,t){var n,i,r,o;if(o=c(Se(e,(In(),L3)),64).g-c(Se(t,L3),64).g,o!=0)return o;if(n=c(Se(e,Aae),15),i=c(Se(t,Aae),15),n&&i&&(r=n.a-i.a,r!=0))return r;switch(c(Se(e,L3),64).g){case 1:return Ci(e.i,t.i);case 2:return Ci(e.j,t.j);case 3:return Ci(t.i,e.i);case 4:return Ci(t.j,e.j);default:throw V(new co(l3e))}}function Rye(e){var t,n,i;return(e.Db&64)!=0?aie(e):(t=new Lu(z4e),n=e.k,n?Zn(Zn((t.a+=' "',t),n),'"'):(!e.n&&(e.n=new _e(zo,e,1,7)),e.n.i>0&&(i=(!e.n&&(e.n=new _e(zo,e,1,7)),c(ce(e.n,0),158)).a,!i||Zn(Zn((t.a+=' "',t),i),'"'))),Zn(Nm(Zn(Nm(Zn(Nm(Zn(Nm((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function Yit(e){var t,n,i;return(e.Db&64)!=0?aie(e):(t=new Lu(F4e),n=e.k,n?Zn(Zn((t.a+=' "',t),n),'"'):(!e.n&&(e.n=new _e(zo,e,1,7)),e.n.i>0&&(i=(!e.n&&(e.n=new _e(zo,e,1,7)),c(ce(e.n,0),158)).a,!i||Zn(Zn((t.a+=' "',t),i),'"'))),Zn(Nm(Zn(Nm(Zn(Nm(Zn(Nm((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function RWt(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I;for(L=-1,I=0,x=t,T=0,A=x.length;T<A;++T){for(v=x[T],a=v,d=0,b=a.length;d<b;++d)for(o=a[d],n=new fme(e,L==-1?t[0]:t[L],c($(Vr(o),(Ge(),Kd)),270),HZe(o),Ze(Ye($(Vr(o),jle)))),i=0;i<o.j.c.length;i++)for(r=i+1;r<o.j.c.length;r++)Vqe(n,c(Je(o.j,i),12),c(Je(o.j,r),12))>0&&++I;++L}return I}function $Wt(e,t){var n,i,r,o,a;for(t==(C7(),nue)&&U7(c(Ei(e.a,(bv(),gP)),16)),r=c(Ei(e.a,(bv(),gP)),16).Jc();r.Ob();)switch(i=c(r.Pb(),108),n=c(Je(i.j,0),114).d.j,o=new ql(i.j),Rr(o,new k5),t.g){case 2:iie(e,o,n,(ew(),Y0),1);break;case 1:case 0:a=CVt(o),iie(e,new Yh(o,0,a),n,(ew(),Y0),0),iie(e,new Yh(o,a,o.c.length),n,Y0,1)}}function BWt(e){var t,n,i,r,o,a,d;for(r=c($(e,(Ie(),_w)),9),i=e.j,n=(ht(0,i.c.length),c(i.c[0],12)),a=new U(r.j);a.a<a.c.c.length;)if(o=c(G(a),12),xe(o)===xe($(n,Si))){o.j==(Ue(),Kt)&&e.p>r.p?($r(o,mn),o.d&&(d=o.o.b,t=o.a.b,o.a.b=d-t)):o.j==mn&&r.p>e.p&&($r(o,Kt),o.d&&(d=o.o.b,t=o.a.b,o.a.b=-(d-t)));break}return r}function $ye(e,t){var n,i,r,o,a,d,b;if(t==null||t.length==0)return null;if(r=c(Mc(e.a,t),144),!r){for(i=(d=new m1(e.b).a.vc().Jc(),new N2(d));i.a.Ob();)if(n=(o=c(i.a.Pb(),45),c(o.kd(),144)),a=n.c,b=t.length,St(a.substr(a.length-b,b),t)&&(t.length==a.length||ws(a,a.length-t.length-1)==46)){if(r)return null;r=n}r&&uo(e.a,t,r)}return r}function JS(e,t,n){var i,r,o,a,d,b,v,x,T,A;for(o=new ze(t,n),x=new U(e.a);x.a<x.c.c.length;)for(v=c(G(x),9),Oi(v.n,o),A=new U(v.j);A.a<A.c.c.length;)for(T=c(G(A),12),r=new U(T.g);r.a<r.c.c.length;)for(i=c(G(r),17),cv(i.a,o),a=c($(i,(Ge(),go)),79),a&&cv(a,o),b=new U(i.b);b.a<b.c.c.length;)d=c(G(b),70),Oi(d.n,o)}function zWt(e,t,n){var i,r,o,a,d,b,v,x,T,A;for(o=new ze(t,n),x=new U(e.a);x.a<x.c.c.length;)for(v=c(G(x),9),Oi(v.n,o),A=new U(v.j);A.a<A.c.c.length;)for(T=c(G(A),12),r=new U(T.g);r.a<r.c.c.length;)for(i=c(G(r),17),cv(i.a,o),a=c($(i,(Ge(),go)),79),a&&cv(a,o),b=new U(i.b);b.a<b.c.c.length;)d=c(G(b),70),Oi(d.n,o)}function Zit(e){if((!e.b&&(e.b=new Ct(xn,e,4,7)),e.b).i==0)throw V(new u4("Edges must have a source."));if((!e.c&&(e.c=new Ct(xn,e,5,8)),e.c).i==0)throw V(new u4("Edges must have a target."));if(!e.b&&(e.b=new Ct(xn,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new Ct(xn,e,5,8)),e.c.i<=1)))throw V(new u4("Hyperedges are not supported."))}function FWt(e,t){var n,i;t.Tg("Partition preprocessing",1),i=c(Hl(mi(new Tt(null,new Et(e.a,16)),new kR),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[(ya(),wl)]))),16),n=c(Hl(mi(jo(mi(new Tt(null,new Et(e.a,16)),new OR),new SR),new k_e(i)),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[wl]))),16),hr(n.Mc(),new jR),t.Ug()}function ert(e){var t,n,i;ki(e,(Ge(),Pw))&&(i=c($(e,Pw),24),!i.dc()&&(n=(t=c(Gf(Ks),10),new da(t,c(gf(t,t.length),10),0)),i.Gc((yv(),Xu))?yf(n,Xu):yf(n,Df),i.Gc(Ka)||yf(n,Ka),i.Gc(Nf)?yf(n,Lf):i.Gc(X1)?yf(n,Zd):i.Gc(_f)&&yf(n,Ya),i.Gc(Lf)?yf(n,Nf):i.Gc(Zd)?yf(n,X1):i.Gc(Ya)&&yf(n,_f),Me(e,Pw,n)))}function trt(e,t){var n,i;for(this.b=new He,this.e=new He,this.a=e,this.d=t,OFt(this),Azt(this),this.b.dc()?this.c=e.c.p:this.c=c(this.b.Xb(0),9).c.p,this.e.c.length==0?this.f=e.c.p:this.f=c(Je(this.e,this.e.c.length-1),9).c.p,i=c($(e,(Ie(),rC)),16).Jc();i.Ob();)if(n=c(i.Pb(),70),ki(n,(Ge(),vJ))){this.d=c($(n,vJ),233);break}}function Eu(e,t,n){var i,r,o,a,d,b,v,x;for(i=c(Ut(e.b,t),47),o=c(Ut(e.b,n),47),r=c(Ut(e.g,t),47),a=c(Ut(e.g,n),47),i.a.yc(n,i),a.a.yc(t,a),x=o.a.ec().Jc();x.Ob();)v=c(x.Pb(),9),i.a.yc(v,i),Er(c(Ut(e.g,v),47),t),Ss(c(Ut(e.g,v),47),r);for(b=r.a.ec().Jc();b.Ob();)d=c(b.Pb(),9),a.a.yc(d,a),Er(c(Ut(e.b,d),47),n),Ss(c(Ut(e.b,d),47),o)}function gL(e,t,n){var i,r,o,a,d,b,v,x;for(i=c(Ut(e.a,t),47),o=c(Ut(e.a,n),47),r=c(Ut(e.b,t),47),a=c(Ut(e.b,n),47),i.a.yc(n,i),a.a.yc(t,a),x=o.a.ec().Jc();x.Ob();)v=c(x.Pb(),9),i.a.yc(v,i),Er(c(Ut(e.b,v),47),t),Ss(c(Ut(e.b,v),47),r);for(b=r.a.ec().Jc();b.Ob();)d=c(b.Pb(),9),a.a.yc(d,a),Er(c(Ut(e.a,d),47),n),Ss(c(Ut(e.a,d),47),o)}function rd(){rd=Z;var e;for(wU=new T1(1,1),ice=new T1(1,10),QE=new T1(0,0),Ift=new T1(-1,1),Rft=Y(K(o3,1),Fe,92,0,[QE,wU,new T1(1,2),new T1(1,3),new T1(1,4),new T1(1,5),new T1(1,6),new T1(1,7),new T1(1,8),new T1(1,9),ice]),vU=ke(o3,Fe,92,32,0,1),e=0;e<vU.length;e++)vU[e]=LF(Ld(1,e),0)?I0(Ld(1,e)):n7(I0(Ag(Ld(1,e))))}function nrt(e,t){var n,i,r,o,a,d,b,v,x;for(r=new Ht(Xt(I1(t).a.Jc(),new F));hn(r);)i=c(rn(r),74),x=no(c(ce((!i.c&&(i.c=new Ct(xn,i,5,8)),i.c),0),83)),d=Z7(i),b=t.i+t.g/2,v=t.j+t.f,o=x.i+x.g/2,a=x.j,Ym(d,b),Zm(d,v),Wm(d,o),Km(d,a),n=de(be(Se(x,(zd(),zw)))),p.Math.abs(n-(a-de(be(Se(Wi(x),(In(),oh))))/2))>zg&&dne(d,o,n),nrt(e,x)}function irt(e,t,n,i,r,o,a){if(e.c=i.Jf().a,e.d=i.Jf().b,r&&(e.c+=r.Jf().a,e.d+=r.Jf().b),e.b=t.Kf().a,e.a=t.Kf().b,!r)n?e.c-=a+t.Kf().a:e.c+=i.Kf().a+a;else switch(r.$f().g){case 0:case 2:e.c+=r.Kf().a+a+o.a+a;break;case 4:e.c-=a+o.a+a+t.Kf().a;break;case 1:e.c+=r.Kf().a+a,e.d-=a+o.b+a+t.Kf().b;break;case 3:e.c+=r.Kf().a+a,e.d+=r.Kf().b+a+o.b+a}}function qWt(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I;if(o=n,n<i)for(A=(L=new DD(e.p),I=new DD(e.p),Ss(L.e,e.e),L.q=e.q,L.r=I,Eq(L),Ss(I.j,e.j),I.r=L,Eq(I),new Is(L,I)),T=c(A.a,117),x=c(A.b,117),r=(ht(o,t.c.length),c(t.c[o],341)),a=Mit(e,T,x,r),v=n+1;v<=i;v++)d=(ht(v,t.c.length),c(t.c[v],341)),b=Mit(e,T,x,d),kFt(d,b,r,a)&&(r=d,a=b,o=v);return o}function HWt(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I;for(a=c(ce(t,0),19),Nc(a,0),_l(a,0),A=new He,It(A.c,a),d=a,o=new dpe(e.a,a.g,a.f,(Y7(),qP)),L=1;L<t.i;L++)I=c(ce(t,L),19),b=Fie(e,M3,I,d,o,A,n),v=Fie(e,zk,I,d,o,A,n),x=Fie(e,$C,I,d,o,A,n),T=Fie(e,RC,I,d,o,A,n),r=xZt(e,b,v,x,T,I,d,i),Nc(I,r.d),_l(I,r.e),o_(r,qP),o=r,d=I,It(A.c,I);return o}function QWt(e,t,n){var i,r,o,a,d,b,v,x,T,A;if(x=null,A=t,T=yXe(e,uUe(n),A),dS(T,j1(A,hd)),a=Vm(A,H4e),i=new P$e(e,T),Att(i.a,i.b,a),d=Vm(A,koe),r=new I$e(e,T),Ntt(r.a,r.b,d),(!T.b&&(T.b=new Ct(xn,T,4,7)),T.b).i==0||(!T.c&&(T.c=new Ct(xn,T,5,8)),T.c).i==0)throw o=j1(A,hd),b=Put+o,v=b+Mj,V(new Jh(v));return CQ(A,T),enn(e,A,T),x=Xte(e,A,T),x}function GWt(e,t){var n,i,r,o,a,d,b;for(r=ke(Hn,li,30,e.e.a.c.length,15,1),a=new U(e.e.a);a.a<a.c.c.length;)o=c(G(a),126),r[o.d]+=o.b.a.c.length;for(d=X_(t);d.b!=0;)for(o=c(d.b==0?null:(gn(d.b!=0),ma(d,d.a.a)),126),i=z4(new U(o.g.a));i.Ob();)n=c(i.Pb(),220),b=n.e,b.e=p.Math.max(b.e,o.e+n.a),--r[b.d],r[b.d]==0&&rr(d,b,d.c.b,d.c)}function rrt(e){var t,n,i,r,o,a,d,b,v,x,T;for(n=ls,r=gi,d=new U(e.e.a);d.a<d.c.c.length;)o=c(G(d),126),r=p.Math.min(r,o.e),n=p.Math.max(n,o.e);for(t=ke(Hn,li,30,n-r+1,15,1),a=new U(e.e.a);a.a<a.c.c.length;)o=c(G(a),126),o.e-=r,++t[o.e];if(i=0,e.k!=null)for(v=e.k,x=0,T=v.length;x<T&&(b=v[x],t[i++]+=b,t.length!=i);++x);return t}function UWt(e,t){var n,i,r,o,a,d;if(t.Tg("Edge routing",1),r=c($(e,(Jo(),mue)),386),r==(T7(),uue))HPt(e);else if(r==PP)for(c(mu(_1(mi(new Tt(null,new Et(e.b,16)),new y8))),41),o=de(be($(e,L9e))),a=de(be($(e,M9e))),d=c($(e,Bw),87),nnn(e,d,o),Lnn(e,d,o,a),Inn(e,d,o,a),i=Pn(e.a,0);i.b!=i.d.c;)n=c(Dn(i),65),n.a.b<2&&Hve(n);t.Ug()}function srt(e){switch(e.d){case 9:case 8:return!0;case 3:case 5:case 4:case 6:return!1;case 7:return c(Tye(e),15).a==e.o;case 1:case 2:{if(e.o==-2)return!1;switch(e.p){case 0:case 1:case 2:case 6:case 5:case 7:return RT(e.k,e.f);case 3:case 4:return e.j==e.e;default:return e.n==null?e.g==null:xi(e.n,e.g)}}default:return!1}}function JWt(e){var t,n,i,r;for(r=e.b,t=!1,i=new U(e.i.d);i.a<i.c.c.length;)if(n=c(G(i),70),Ze(Ye($(n,(Ge(),x3))))){t=!0;break}Ml(r,(Ue(),Kt))?Ml(r,mn)?Ml(r,Yt)?Ml(r,nn)||Tg(e,t?Yt:Kt,t?(xf(),Bv):(xf(),Bj),t?null:e.c):Tg(e,t?nn:Kt,t?(xf(),Bv):(xf(),$j),t?null:e.a):Tg(e,Kt,(xf(),Bv),null):Tg(e,mn,(xf(),Bv),null)}function ort(e,t,n){var i,r,o,a,d,b,v,x,T;for(o=new Gc(t.c.length),v=new U(t);v.a<v.c.c.length;)a=c(G(v),9),Qe(o,e.b[a.c.p][a.p]);for(_Zt(e,o,n),T=null;T=Aen(o);)hYt(e,c(T.a,242),c(T.b,242),o);for(t.c.length=0,r=new U(o);r.a<r.c.c.length;)for(i=c(G(r),242),d=i.d,b=0,x=d.length;b<x;++b)a=d[b],It(t.c,a),e.a[a.c.p][a.p].a=gh(i.g,i.d[0]).a}function VWt(e,t){var n,i,r;switch(t.Tg("Breaking Point Insertion",1),i=new iye(e),c($(e,(Ge(),zle)),351).g){case 2:r=new HO;break;case 0:r=new Np;break;default:r=new CA}if(n=r.mg(e,i),Ze(Ye($(e,jje)))&&(n=zZt(e,n)),!r.ng()&&ki(e,MJ))switch(c($(e,MJ),352).g){case 2:n=Mtt(i,n);break;case 1:n=pet(i,n)}if(n.dc()){t.Ug();return}cnn(e,n),t.Ug()}function crt(e){Dm(e,new pb(Am(Em(Mm(Cm(new h1,jj),"ELK Fixed"),"Keeps the current layout as it is, without any automatic modification. Optional coordinates can be given for nodes and edge bend points."),new uB))),Be(e,jj,mw,k7e),Be(e,jj,RG,Ve(VC)),Be(e,jj,D4e,Ve(w7e)),Be(e,jj,Yx,Ve(v7e)),Be(e,jj,mk,Ve(x7e)),Be(e,jj,dj,Ve(y7e))}function XQ(e,t,n){var i,r,o,a,d;if(i=Gn(js(Qd,Id(Gn(js(t==null?0:zi(t),Gd)),15))),d=Gn(js(Qd,Id(Gn(js(n==null?0:zi(n),Gd)),15))),o=x7(e,t,i),o&&d==o.f&&k1(n,o.i))return n;if(a=k7(e,n,d),a)throw V(new qt("value already present: "+n));return r=new Aq(t,i,n,d),o?(Qx(e,o),oL(e,r,o),o.e=null,o.c=null,o.i):(oL(e,r,null),WZe(e),null)}function XWt(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I;x=n.a.c,a=n.a.c+n.a.b,o=c(Ut(n.c,t),460),L=o.f,I=o.a,o.b?b=new ze(a,L):b=new ze(x,L),o.c?T=new ze(x,I):T=new ze(a,I),r=x,n.p||(r+=e.c),r+=n.F+n.v*e.b,v=new ze(r,L),A=new ze(r,I),y7(t.a,Y(K(Wr,1),Fe,8,0,[b,v])),d=n.d.a.gc()>1,d&&(i=new ze(r,n.b),ei(t.a,i)),y7(t.a,Y(K(Wr,1),Fe,8,0,[A,T]))}function F0(){F0=Z,LJ=new I2(Zf,0),AP=new I2("NIKOLOV",1),NP=new I2("NIKOLOV_PIXEL",2),$je=new I2("NIKOLOV_IMPROVED",3),Bje=new I2("NIKOLOV_IMPROVED_PIXEL",4),Rje=new I2("DUMMYNODE_PERCENTAGE",5),zje=new I2("NODECOUNT_PERCENTAGE",6),PJ=new I2("NO_BOUNDARY",7),e9=new I2("MODEL_ORDER_LEFT_TO_RIGHT",8),yC=new I2("MODEL_ORDER_RIGHT_TO_LEFT",9)}function Nie(e,t){var n,i,r,o,a,d,b,v,x,T,A,L;return x=null,A=cye(e,t),i=null,d=c(Se(t,(In(),S2t)),301),d?i=d:i=(w7(),iI),L=i,L==(w7(),iI)&&(r=null,v=c(Ut(e.r,A),301),v?r=v:r=Rae,L=r),ci(e.r,t,L),o=null,b=c(Se(t,O2t),280),b?o=b:o=(jS(),KP),T=o,T==(jS(),KP)&&(a=null,n=c(Ut(e.b,A),280),n?a=n:a=pV,T=a),x=c(ci(e.b,t,T),280),x}function WWt(e){var t,n,i,r,o;for(i=e.length,t=new bT,o=0;o<i;)if(n=ws(e,o++),!(n==9||n==10||n==12||n==13||n==32)){if(n==35){for(;o<i&&(n=ws(e,o++),!(n==13||n==10)););continue}n==92&&o<i?(r=(en(o,e.length),e.charCodeAt(o)))==35||r==9||r==10||r==12||r==13||r==32?(K6(t,r&Dr),++o):(t.a+="\\",K6(t,r&Dr),++o):K6(t,n&Dr)}return t.a}function Bye(){Bye=Z,pmt=new vt(V5e,(Bt(),!1)),vmt=new vt(X5e,$e(0)),ymt=new vt(W5e,0),xmt=new vt(HG,!1),U9e=(BD(),VJ),mmt=new vt(Vse,U9e),$e(0),bmt=new vt(Xse,$e(1)),V9e=(RH(),Due),jmt=new vt(K5e,V9e),X9e=(aH(),Cue),Tmt=new vt(Y5e,X9e),J9e=(wQ(),_ue),wmt=new vt(Z5e,J9e),Smt=new vt(Wse,0),kmt=new vt(Kse,!1),Omt=new vt(e4e,!1)}function KWt(e,t){var n,i,r;for(i=new U(t);i.a<i.c.c.length;)if(n=c(G(i),19),jt(e.a,n,n),jt(e.b,n,n),r=xv(n),r.c.length!=0)for(e.d&&e.d.Fg(r),jt(e.a,n,(ht(0,r.c.length),c(r.c[0],19))),jt(e.b,n,c(Je(r,r.c.length-1),19));Gte(r).c.length!=0;)r=Gte(r),e.d&&e.d.Fg(r),jt(e.a,n,(ht(0,r.c.length),c(r.c[0],19))),jt(e.b,n,c(Je(r,r.c.length-1),19))}function _ie(e,t,n){var i,r,o,a,d,b;if(t)if(n<=-1){if(i=Dt(t.Ah(),-1-n),ae(i,104))return c(i,20);for(a=c(t.Jh(i),164),d=0,b=a.gc();d<b;++d)if(xe(a.Sl(d))===xe(e)&&(r=a.Rl(d),ae(r,104)&&(o=c(r,20),(o.Bb&rc)!=0)))return o;throw V(new co("The containment feature could not be located"))}else return Qs(c(Dt(e.Ah(),n),20));else return null}function YWt(e){var t,n,i,r,o,a,d,b,v,x;for(n=0,d=new U(e.d);d.a<d.c.c.length;)a=c(G(d),108),a.i&&(a.i.c=n++);for(t=U2(Sl,[Fe,Yf],[172,30],16,[n,n],2),x=e.d,r=0;r<x.c.length;r++)if(b=(ht(r,x.c.length),c(x.c[r],108)),b.i)for(o=r+1;o<x.c.length;o++)v=(ht(o,x.c.length),c(x.c[o],108)),v.i&&(i=IQt(b,v),t[b.i.c][v.i.c]=i,t[v.i.c][b.i.c]=i);return t}function nE(){nE=Z,lue=new Lm("ROOT_PROC",0),u9e=new Lm("FAN_PROC",1),d9e=new Lm("LEVEL_PROC",2),g9e=new Lm("NEIGHBORS_PROC",3),h9e=new Lm("LEVEL_HEIGHT",4),l9e=new Lm("DIRECTION_PROC",5),p9e=new Lm("NODE_POSITION_PROC",6),o9e=new Lm("COMPACTION_PROC",7),f9e=new Lm("LEVEL_COORDS",8),a9e=new Lm("GRAPH_BOUNDS_PROC",9),c9e=new Lm("DETREEIFYING_PROC",10)}function zye(e,t){var n,i,r,o,a,d,b,v,x,T;for(T=wo(t),v=null,r=!1,d=0,x=pc(T.a).i;d<x;++d)a=c(vL(T,d,(o=c(ce(pc(T.a),d),88),b=o.c,ae(b,89)?c(b,29):(At(),rf))),29),n=zye(e,a),n.dc()||(v?(r||(r=!0,v=new pq(v)),v.Fc(n)):v=n);return i=yUt(e,t),i.dc()?v||(Mt(),Mt(),$s):v?(r||(v=new pq(v)),v.Fc(i),v):i}function Die(e,t){var n,i,r,o,a,d,b,v,x,T;for(T=wo(t),v=null,i=!1,d=0,x=pc(T.a).i;d<x;++d)o=c(vL(T,d,(r=c(ce(pc(T.a),d),88),b=r.c,ae(b,89)?c(b,29):(At(),rf))),29),n=Die(e,o),n.dc()||(v?(i||(i=!0,v=new pq(v)),v.Fc(n)):v=n);return a=UUt(e,t),a.dc()?v||(Mt(),Mt(),$s):v?(i||(v=new pq(v)),v.Fc(a),v):a}function ZWt(e,t){var n,i,r,o,a;for(e.c==null||e.c.length<t.c.length?e.c=ke(Sl,Yf,30,t.c.length,16,1):gT(e.c),e.a=new He,i=0,a=new U(t);a.a<a.c.c.length;)r=c(G(a),9),r.p=i++;for(n=new _i,o=new U(t);o.a<o.c.c.length;)r=c(G(o),9),e.c[r.p]||(Ltt(e,r),n.b==0||(gn(n.b!=0),c(n.a.a.c,16)).gc()<e.a.c.length?px(n,e.a):Cs(n,e.a),e.a=new He);return n}function eKt(e,t,n,i){var r,o,a;$(i.d.i,(Ie(),Ri))==null?ci(t,$e(gi-(t.f.c+t.i.c)),new G2(new Qo(Y(K(Ij,1),bj,17,0,[i])))):(a=0,o=i.d.i,n?(r=c($(e.c,ep),15).a,a=r*c($(o,(Ge(),Hv)),15).a+c($(o,Ri),15).a):a=c($(i.d.i,Ri),15).a,Cc(t,$e(a))?Er(c(Ut(t,$e(a)),47),i):ci(t,$e(a),new G2(new Qo(Y(K(Ij,1),bj,17,0,[i])))))}function pL(e,t,n){var i,r,o,a,d,b;if(ae(t,76))return _s(e,t,n);for(d=null,o=null,i=c(e.g,123),a=0;a<e.i;++a)if(r=i[a],xi(t,r.kd())&&(o=r.Jk(),ae(o,104)&&(c(o,20).Bb&rc)!=0)){d=r;break}return d&&(bu(e.e)&&(b=o.Hk()?j0(e,4,o,t,null,XS(e,o,t,ae(o,104)&&(c(o,20).Bb&Rs)!=0),!0):j0(e,o.rk()?2:1,o,t,o.gk(),-1,!0),n?n.lj(b):n=b),n=pL(e,d,n)),n}function tKt(e,t,n){var i,r,o,a;if(a=rl(e.e.Ah(),t),i=c(e.g,123),Hs(),c(t,69).vk()){for(o=0;o<e.i;++o)if(r=i[o],a.$l(r.Jk())&&xi(r,n))return kv(e,o),!0}else if(n!=null){for(o=0;o<e.i;++o)if(r=i[o],a.$l(r.Jk())&&xi(n,r.kd()))return kv(e,o),!0}else for(o=0;o<e.i;++o)if(r=i[o],a.$l(r.Jk())&&r.kd()==null)return kv(e,o),!0;return!1}function lrt(e,t,n,i){var r,o,a,d,b,v,x,T,A,L;for(a=F2(t.c,n,i),T=new U(t.a);T.a<T.c.c.length;){for(x=c(G(T),9),Oi(x.n,a),L=new U(x.j);L.a<L.c.c.length;)for(A=c(G(L),12),o=new U(A.g);o.a<o.c.c.length;)for(r=c(G(o),17),cv(r.a,a),d=c($(r,(Ge(),go)),79),d&&cv(d,a),v=new U(r.b);v.a<v.c.c.length;)b=c(G(v),70),Oi(b.n,a);Qe(e.a,x),x.a=e}}function nKt(e,t){var n,i,r,o,a;if(t.Tg("Node and Port Label Placement and Node Sizing",1),MBe((yT(),new Tee(e,!0,!0,new vW))),c($(e,(Ie(),Rc)),24).Gc((Us(),Ca)))for(o=c($(e,(Ge(),Vv)),24),r=o.Gc((Gl(),nI)),a=Ze(Ye($(e,pje))),i=new U(e.b);i.a<i.c.c.length;)n=c(G(i),26),hr(mi(new Tt(null,new Et(n.a,16)),new vR),new zFe(o,r,a));t.Ug()}function urt(e){Dm(e,new pb(Am(Em(Mm(Cm(new h1,xj),"ELK SPOrE Overlap Removal"),'A node overlap removal algorithm proposed by Nachmanson et al. in "Node overlap removal by growing a tree".'),new M8))),Be(e,xj,eoe,Ve(rTe)),Be(e,xj,mw,iTe),Be(e,xj,bw,8),Be(e,xj,ioe,Ve(Lwt)),Be(e,xj,x4e,Ve(tTe)),Be(e,xj,k4e,Ve(nTe)),Be(e,xj,XL,(Bt(),!1))}function iKt(e,t){var n,i,r,o,a,d,b;if(n=t.ni(e.a),n&&(b=qn(Kf((!n.b&&(n.b=new wu((At(),zs),Zo,n)),n.b),uke)),b!=null)){for(i=new He,o=Sv(b,"\\w"),a=0,d=o.length;a<d;++a)r=o[a],St(r,"##other")?Qe(i,"!##"+KT(e,Bu(t.ok()))):St(r,"##local")?i.c.push(null):St(r,nP)?Qe(i,KT(e,Bu(t.ok()))):It(i.c,r);return i}return Mt(),Mt(),$s}function Gx(e,t,n,i){this.e=e,this.k=c($(e,(Ie(),w3)),317),this.g=ke(Wd,qg,9,t,0,1),this.b=ke(jr,Fe,347,t,7,1),this.a=ke(Wd,qg,9,t,0,1),this.d=ke(jr,Fe,347,t,7,1),this.j=ke(Wd,qg,9,t,0,1),this.i=ke(jr,Fe,347,t,7,1),this.p=ke(jr,Fe,347,t,7,1),this.n=ke(or,Fe,476,t,8,1),x_(this.n,(Bt(),!1)),this.f=ke(or,Fe,476,t,8,1),x_(this.f,!0),this.o=n,this.c=i}function bL(e){var t,n,i,r,o,a,d,b;if(e.d)throw V(new co((x1(jce),zre+jce.k+Fre)));for(e.c==(_r(),$h)&&Vx(e,po),n=new U(e.a.a);n.a<n.c.c.length;)t=c(G(n),197),t.e=0;for(a=new U(e.a.b);a.a<a.c.c.length;)for(o=c(G(a),84),o.o=Gr,r=o.f.Jc();r.Ob();)i=c(r.Pb(),84),++i.d.e;for(stn(e),b=new U(e.a.b);b.a<b.c.c.length;)d=c(G(b),84),d.k=!0;return e}function rKt(e,t){var n,i,r,o,a,d,b,v;for(d=new dtt(e),n=new _i,rr(n,t,n.c.b,n.c);n.b!=0;){for(i=c(n.b==0?null:(gn(n.b!=0),ma(n,n.a.a)),114),i.d.p=1,a=new U(i.e);a.a<a.c.c.length;)r=c(G(a),342),Oet(d,r),v=r.d,v.d.p==0&&rr(n,v,n.c.b,n.c);for(o=new U(i.b);o.a<o.c.c.length;)r=c(G(o),342),Oet(d,r),b=r.c,b.d.p==0&&rr(n,b,n.c.b,n.c)}return d}function Fye(e,t){var n,i,r,o,a,d,b;if(!e.e[t.p]){for(e.e[t.p]=!0,e.a[t.p]=!0,o=new yn,n=xe($(e.c,(Ge(),Ik)))===xe((N0(),Fv)),vs(Fi(t),new PFe(e,o,n)),a=new o0e(new an(o)),r=a.a.ec().Jc();r.Ob();)i=c(r.Pb(),15).a,d=c(c(Ut(o,$e(i)),47).a.ec().Jc().Pb(),17),!ys(d)&&(b=d.d.i,e.a[b.p]?Or(e.b,c(Ut(o,$e(i)),18)):Fye(e,b));e.a[t.p]=!1}}function art(e){var t,n,i,r,o;if(i=de(be(Se(e,(In(),C2t)))),i!=1)for(Pm(e,i*e.g,i*e.f),n=Y8t(EMt((!e.c&&(e.c=new _e(fu,e,9,9)),e.c),new dN)),o=Pd(wa(Y(K(Ea,1),Pt,22,0,[(!e.n&&(e.n=new _e(zo,e,1,7)),e.n),(!e.c&&(e.c=new _e(fu,e,9,9)),e.c),n])));hn(o);)r=c(rn(o),278),r.ph(i*r.mh(),i*r.nh()),r.oh(i*r.lh(),i*r.kh()),t=c(r.mf(XTe),8),t&&(t.a*=i,t.b*=i)}function qye(e,t,n){var i,r,o,a,d;if(a=(Hs(),c(t,69).vk()),R1(e.e,t)){if(t.Qi()&&KQ(e,t,n,ae(t,104)&&(c(t,20).Bb&Rs)!=0))return!1}else for(d=rl(e.e.Ah(),t),i=c(e.g,123),o=0;o<e.i;++o)if(r=i[o],d.$l(r.Jk()))return(a?xi(r,n):n==null?r.kd()==null:xi(n,r.kd()))?!1:(c($x(e,o,a?c(n,76):Rd(t,n)),76),!0);return Ln(e,a?c(n,76):Rd(t,n))}function sKt(e,t,n,i,r){var o,a,d,b,v,x,T,A;for(a=new U(e.b);a.a<a.c.c.length;)for(o=c(G(a),26),A=cD(o.a),v=A,x=0,T=v.length;x<T;++x)switch(b=v[x],c($(b,(Ge(),$o)),166).g){case 1:TXt(b),zr(b,t),cZe(b,!0,i);break;case 3:aXt(b),zr(b,n),cZe(b,!1,r)}for(d=new os(e.b,0);d.b<d.d.gc();)(gn(d.b<d.d.gc()),c(d.d.Xb(d.c=d.b++),26)).a.c.length==0&&nu(d)}function oKt(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q;for(L=t.length,b=L,en(0,t.length),t.charCodeAt(0)==45?(T=-1,A=1,--L):(T=1,A=0),o=(qie(),Bft)[10],r=L/o|0,Q=L%o,Q!=0&&++r,d=ke(Hn,li,30,r,15,1),n=$ft[8],a=0,I=A+(Q==0?o:Q),z=A;z<b;z=I,I=z+o)i=Hu((hs(z,I,t.length),t.substr(z,I-z)),ls,gi),v=(US(),O2e(d,d,a,n)),v+=vzt(d,a,i),d[a++]=v;x=a,e.e=T,e.d=x,e.a=d,a7(e)}function cKt(e){var t,n,i,r,o,a,d,b,v,x,T,A;for(d=e.i,r=Ze(Ye($(d,(Ge(),Gv)))),x=0,i=0,v=new U(e.g);v.a<v.c.c.length;)b=c(G(v),17),a=ys(b),o=a&&r&&Ze(Ye($(b,_b))),A=b.d.i,a&&o?++i:a&&!o?++x:Vr(A).e==d?++i:++x;for(n=new U(e.e);n.a<n.c.c.length;)t=c(G(n),17),a=ys(t),o=a&&r&&Ze(Ye($(t,_b))),T=t.c.i,a&&o?++x:a&&!o?++i:Vr(T).e==d?++x:++i;return x-i}function frt(e,t){var n,i,r,o,a,d;if(!t.dc())if(c(t.Xb(0),295).d==(ek(),zv))Vqt(e,t);else for(i=t.Jc();i.Ob();){switch(n=c(i.Pb(),295),n.d.g){case 5:FS(e,n,tzt(e,n));break;case 0:FS(e,n,(a=n.f-n.c+1,d=(a-1)/2|0,n.c+d));break;case 4:FS(e,n,gIt(e,n));break;case 2:dYe(n),FS(e,n,(o=nve(n),o?n.c:n.f));break;case 1:dYe(n),FS(e,n,(r=nve(n),r?n.f:n.c))}BQt(n.a)}}function Hye(e,t,n,i){var r,o,a;return a=new uRe(t,n),e.a?i?(r=c(za(c(Ut(e.b,t),263)),263),++r.a,a.d=i.d,a.e=i.e,a.b=i,a.c=i,i.e?i.e.c=a:r.b=a,i.d?i.d.b=a:e.a=a,i.d=a,i.e=a):(c(za(e.e),501).b=a,a.d=e.e,e.e=a,r=c(Ut(e.b,t),263),r?(++r.a,o=r.c,o.c=a,a.e=o,r.c=a):(ci(e.b,t,r=new obe(a)),++e.c)):(e.a=e.e=a,ci(e.b,t,new obe(a)),++e.c),++e.d,a}function Lie(e,t){var n,i,r,o,a;if(t.Tg("Network simplex",1),e.e.a.c.length<1){t.Ug();return}for(o=new U(e.e.a);o.a<o.c.c.length;)r=c(G(o),126),r.e=0;for(a=e.e.a.c.length>=40,a&&XKt(e),uZt(e),CXt(e),n=JKe(e),i=0;n&&i<e.f;)hKt(e,n,NJt(e,n)),n=JKe(e),++i;a&&oQt(e),e.a?qJt(e,rrt(e)):rrt(e),e.b=null,e.d=null,e.p=null,e.c=null,e.g=null,e.i=null,e.n=null,e.o=null,t.Ug()}function lKt(e,t){var n,i,r,o,a,d,b;if(!t.e){for(t.e=!0,i=t.d.a.ec().Jc();i.Ob();){if(n=c(i.Pb(),17),t.o&&t.d.a.gc()<=1){a=t.a.c,d=t.a.c+t.a.b,b=new ze(a+(d-a)/2,t.b),ei(c(t.d.a.ec().Jc().Pb(),17).a,b);continue}if(r=c(Ut(t.c,n),460),r.b||r.c){XWt(e,n,t);continue}o=e.d==(SS(),kC)&&(r.d||r.e)&&tJt(e,t)&&t.d.a.gc()<=1,o?Qen(n,t):oWt(e,n,t)}t.k&&vs(t.d,new iA)}}function Qye(e,t,n,i,r,o){var a,d,b,v,x,T,A,L,I,z,Q,W,re,le;for(A=o,d=(i+r)/2+A,Q=n*p.Math.cos(d),W=n*p.Math.sin(d),re=Q-t.g/2,le=W-t.f/2,Nc(t,re),_l(t,le),T=e.a.Dg(t),z=2*p.Math.acos(n/n+e.c),z<r-i?(L=z/T,a=(i+r-z)/2):(L=(r-i)/T,a=i),I=xv(t),e.e&&(e.e.Eg(e.d),e.e.Fg(I)),v=new U(I);v.a<v.c.c.length;)b=c(G(v),19),x=e.a.Dg(b),Qye(e,b,n+e.c,a,a+L*x,o),a+=L*x}function uKt(e,t,n){var i;switch(i=n.q.getMonth(),t){case 5:Zn(e,Y(K(tt,1),Fe,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[i]);break;case 4:Zn(e,Y(K(tt,1),Fe,2,6,[dre,gre,pre,bre,ak,mre,wre,vre,yre,xre,kre,Ore])[i]);break;case 3:Zn(e,Y(K(tt,1),Fe,2,6,["Jan","Feb","Mar","Apr",ak,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[i]);break;default:$d(e,i+1,t)}}function aKt(e,t,n,i){var r,o,a,d,b,v,x,T,A;for(b=new ze(n,i),Qr(b,c($(t,(M0(),VE)),8)),A=new U(t.e);A.a<A.c.c.length;)T=c(G(A),156),Oi(T.d,b),Qe(e.e,T);for(d=new U(t.c);d.a<d.c.c.length;){for(a=c(G(d),292),o=new U(a.a);o.a<o.c.c.length;)r=c(G(o),254),Oi(r.d,b);Qe(e.c,a)}for(x=new U(t.d);x.a<x.c.c.length;)v=c(G(x),448),Oi(v.d,b),Qe(e.d,v)}function Gye(e,t){var n,i,r,o,a,d,b,v;for(b=new U(t.j);b.a<b.c.c.length;)for(d=c(G(b),12),r=new wh(d.b);_o(r.a)||_o(r.b);)i=c(_o(r.a)?G(r.a):G(r.b),17),n=i.c==d?i.d:i.c,o=n.i,t!=o&&(v=c($(i,(Ge(),Kj)),15).a,v<0&&(v=0),a=o.p,e.c[a]==0&&(i.d==n?(e.a[a]-=v+1,e.a[a]<=0&&e.d[a]>0&&ei(e.g,o)):(e.d[a]-=v+1,e.d[a]<=0&&e.a[a]>0&&ei(e.f,o))))}function hrt(e,t,n,i){var r,o,a,d,b,v,x;for(b=new ze(n,i),Qr(b,c($(t,(Ii(),n9)),8)),x=Pn(t.b,0);x.b!=x.d.c;)v=c(Dn(x),41),Oi(v.e,b),ei(e.b,v);for(d=c(Hl(pbe(new Tt(null,new Et(t.a,16))),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[(ya(),wl)]))),16).Jc();d.Ob();){for(a=c(d.Pb(),65),o=Pn(a.a,0);o.b!=o.d.c;)r=c(Dn(o),8),r.a+=b.a,r.b+=b.b;ei(e.a,a)}}function Uye(e,t){var n,i,r,o;if(0<(ae(e,18)?c(e,18).gc():Jf(e.Jc()))){if(r=t,1<r){for(--r,o=new f1,i=e.Jc();i.Ob();)n=c(i.Pb(),41),o=wa(Y(K(Ea,1),Pt,22,0,[o,new w1(n)]));return Uye(o,r)}if(r<0){for(o=new Nu,i=e.Jc();i.Ob();)n=c(i.Pb(),41),o=wa(Y(K(Ea,1),Pt,22,0,[o,new w1(n)]));if(0<(ae(o,18)?c(o,18).gc():Jf(o.Jc())))return Uye(o,r)}}return c(qF(e.Jc()),41)}function fKt(e,t,n){var i,r,o,a;for(n.Tg("Processor order nodes",2),e.b=de(be($(t,(Jo(),wue)))),e.a=c($(t,Bw),87),e.a==(_r(),$h)&&(e.a=Rh,Me(t,Bw,e.a)),r=new _i,a=Pn(t.b,0);a.b!=a.d.c;)o=c(Dn(a),41),Ze(Ye($(o,(Ii(),sp))))&&rr(r,o,r.c.b,r.c);i=(gn(r.b!=0),c(r.a.a.c,41)),ust(e,i),n.eh(1),Iye(e,i,0-de(be($(i,(Ii(),QJ))))/2,0),n.eh(1),n.Ug()}function lu(){lu=Z,b9=new gx("DEFAULT_MINIMUM_SIZE",0),cI=new gx("MINIMUM_SIZE_ACCOUNTS_FOR_PADDING",1),wV=new gx("COMPUTE_PADDING",2),tM=new gx("OUTSIDE_NODE_LABELS_OVERHANG",3),vV=new gx("PORTS_OVERHANG",4),xV=new gx("UNIFORM_PORT_SPACING",5),yV=new gx("SPACE_EFFICIENT_PORT_LABELS",6),$ae=new gx("FORCE_TABULAR_NODE_LABELS",7),oI=new gx("ASYMMETRICAL",8)}function Pie(e,t){var n,i,r,o,a,d,b,v;if(t){if(n=(o=t.Ah(),o?Bu(o).ti().pi(o):null),n){for(hb(e,t,n),r=t.Ah(),b=0,v=(r.i==null&&sd(r),r.i).length;b<v;++b)d=(i=(r.i==null&&sd(r),r.i),b>=0&&b<i.length?i[b]:null),d.pk()&&!d.qk()&&(ae(d,336)?EFt(e,c(d,38),t,n):(a=c(d,20),(a.Bb&rc)!=0&&RHt(e,a,t,n)));t.Sh()&&c(n,52).bi(c(t,52).Yh())}return n}else return null}function hKt(e,t,n){var i,r,o;if(!t.f)throw V(new qt("Given leave edge is no tree edge."));if(n.f)throw V(new qt("Given enter edge is a tree edge already."));for(t.f=!1,Jge(e.p,t),n.f=!0,Er(e.p,n),i=n.e.e-n.d.e-n.a,bie(e,n.e,t)||(i=-i),o=new U(e.e.a);o.a<o.c.c.length;)r=c(G(o),126),bie(e,r,t)||(r.e+=i);e.j=1,gT(e.c),qve(e,c(G(new U(e.e.a)),126)),xst(e)}function drt(e,t){var n,i,r,o,a,d;if(d=c($(t,(Ge(),ar)),103),d==(es(),e1)||d==kc)for(r=new ze(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a).b,a=new U(e.a);a.a<a.c.c.length;)o=c(G(a),9),o.k==(Jt(),Ar)&&(n=c($(o,(Ie(),Yo)),64),!(n!=(Ue(),nn)&&n!=Yt)&&(i=de(be($(o,Dw))),d==e1&&(i*=r),o.n.b=i-c($(o,Rw),8).b,FH(o,!1,!0)))}function grt(e,t,n,i,r){n&&(!i||(e.c-e.b&e.a.length-1)>1)&&t==1&&c(e.a[e.b],9).k==(Jt(),ac)?ck(c(e.a[e.b],9),(qu(),Yd)):i&&(!n||(e.c-e.b&e.a.length-1)>1)&&t==1&&c(e.a[e.c-1&e.a.length-1],9).k==(Jt(),ac)?ck(c(e.a[e.c-1&e.a.length-1],9),(qu(),cp)):(e.c-e.b&e.a.length-1)==2?(ck(c(j7(e),9),(qu(),Yd)),ck(c(j7(e),9),cp)):GJt(e,r),Ibe(e)}function dKt(e){var t,n,i,r,o,a,d,b;for(b=new yn,t=new uY,a=e.Jc();a.Ob();)r=c(a.Pb(),9),d=Im(w_(new Bp,r),t),bl(b.f,r,d);for(o=e.Jc();o.Ob();)for(r=c(o.Pb(),9),i=new Ht(Xt(Fi(r).a.Jc(),new F));hn(i);)n=c(rn(i),17),!ys(n)&&Of(uf(ff(af(hf(new Ra,p.Math.max(1,c($(n,(Ge(),mje)),15).a)),1),c(Ut(b,n.c.i),126)),c(Ut(b,n.d.i),126)));return t}function prt(e,t,n,i){var r,o,a,d,b,v,x,T,A,L;if(RIt(e,t,n),o=t[n],L=i?(Ue(),Yt):(Ue(),nn),JTt(t.length,n,i)){for(r=t[i?n-1:n+1],eme(e,r,i?(Gs(),Yc):(Gs(),Vl)),b=o,x=0,A=b.length;x<A;++x)a=b[x],E2e(e,a,L);for(eme(e,o,i?(Gs(),Vl):(Gs(),Yc)),d=r,v=0,T=d.length;v<T;++v)a=d[v],a.e||E2e(e,a,QD(L))}else for(d=o,v=0,T=d.length;v<T;++v)a=d[v],E2e(e,a,L);return!1}function gKt(e,t,n,i,r){var o,a,d,b,v,x,T;for(Mt(),Rr(e,new fK),d=new os(e,0),T=new He,o=0;d.b<d.d.gc();)a=(gn(d.b<d.d.gc()),c(d.d.Xb(d.c=d.b++),168)),T.c.length!=0&&Al(a)*yu(a)>o*2?(x=new yH(T),v=Al(a)/yu(a),b=tre(x,t,new s4,n,i,r,v),Oi(Uf(x.e),b),T.c.length=0,o=0,It(T.c,x),It(T.c,a),o=Al(x)*yu(x)+Al(a)*yu(a)):(It(T.c,a),o+=Al(a)*yu(a));return T}function pKt(e,t){var n,i,r,o,a,d,b;for(t.Tg("Port order processing",1),b=c($(e,(Ge(),bje)),426),i=new U(e.b);i.a<i.c.c.length;)for(n=c(G(i),26),o=new U(n.a);o.a<o.c.c.length;)r=c(G(o),9),a=c($(r,ar),103),d=r.j,a==(es(),Fb)||a==e1||a==kc?(Mt(),Rr(d,h6e)):a!=Bh&&a!=up&&(Mt(),Rr(d,Wdt),BFt(d),b==(OD(),eue)&&Rr(d,Xdt)),r.i=!0,Bve(r);t.Ug()}function bKt(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I;if(bu(e.e)){if(t!=n&&(r=c(e.g,123),L=r[n],a=L.Jk(),R1(e.e,a))){for(I=rl(e.e.Ah(),a),b=-1,d=-1,i=0,v=0,T=t>n?t:n;v<=T;++v)v==n?d=i++:(o=r[v],x=I.$l(o.Jk()),v==t&&(b=v==T&&!x?i-1:i),x&&++i);return A=c(L7(e,t,n),76),d!=b&&E6(e,new pD(e.e,7,a,$e(d),L.kd(),b)),A}}else return c(wie(e,t,n),76);return c(L7(e,t,n),76)}function Jye(e,t){var n,i,r,o,a,d,b,v,x,T;for(T=0,o=new xx,T0(o,t);o.b!=o.c;)for(b=c(M4(o),221),v=0,x=c($(t.j,(Ge(),Kd)),270),c($(t.j,aC),330),a=de(be($(t.j,SP))),d=de(be($(t.j,Ole))),x!=(P1(),np)&&(v+=a*YJt(t.j,b.e,x),v+=d*RWt(t.j,b.e)),T+=AZe(b.d,b.e)+v,r=new U(b.b);r.a<r.c.c.length;)i=c(G(r),37),n=c(Je(e.b,i.p),221),n.s||(T+=DQ(e,n));return T}function brt(){brt=Z,pbt=Wn(new xr,(ts(),xc),(cs(),KOe)),r9e=Wn(new xr,yc,LU),mbt=Hc(Wn(new xr,yc,qU),Ws,FU),gbt=Hc(Wn(Wn(new xr,yc,UOe),xc,JOe),Ws,VOe),wbt=id(id(ST(Hc(Wn(new xr,Cf,UU),Ws,GU),xc),QU),JU),bbt=Hc(new xr,Ws,YOe),hbt=Hc(Wn(Wn(Wn(new xr,Xd,IU),xc,$U),xc,Rj),Ws,RU),dbt=Hc(Wn(Wn(new xr,xc,Rj),xc,DU),Ws,_U)}function mKt(e,t,n,i,r,o){var a,d,b,v,x,T,A;for(v=UWe(t)-UWe(e),a=Uet(t,v),b=nl(0,0,0);v>=0&&(d=Sqt(e,a),!(d&&(v<22?b.l|=1<<v:v<44?b.m|=1<<v-22:b.h|=1<<v-44,e.l==0&&e.m==0&&e.h==0)));)x=a.m,T=a.h,A=a.l,a.h=T>>>1,a.m=x>>>1|(T&1)<<21,a.l=A>>>1|(x&1)<<21,--v;return n&&Vte(b),o&&(i?(V0=yS(e),r&&(V0=jWe(V0,(aS(),jke)))):V0=nl(e.l,e.m,e.h)),b}function wKt(e,t){var n,i,r,o,a,d,b,v,x,T;for(v=e.e[t.c.p][t.p]+1,b=t.c.a.c.length+1,d=new U(e.a);d.a<d.c.c.length;){for(a=c(G(d),12),T=0,o=0,r=Pd(wa(Y(K(Ea,1),Pt,22,0,[new T6(a),new t4(a)])));hn(r);)i=c(rn(r),12),i.i.c==t.c&&(T+=zTt(e,i.i)+1,++o);n=T/o,x=a.j,x==(Ue(),nn)?n<v?e.f[a.p]=e.c-n:e.f[a.p]=e.b+(b-n):x==Yt&&(n<v?e.f[a.p]=e.b+n:e.f[a.p]=e.c-(b-n))}}function Hu(e,t,n){var i,r,o,a,d;if(e==null)throw V(new Vh(ml));for(o=e.length,a=o>0&&(en(0,e.length),e.charCodeAt(0)==45||(en(0,e.length),e.charCodeAt(0)==43))?1:0,i=a;i<o;i++)if(AYe((en(i,e.length),e.charCodeAt(i)))==-1)throw V(new Vh(pw+e+'"'));if(d=parseInt(e,10),r=d<t,isNaN(d))throw V(new Vh(pw+e+'"'));if(r||d>n)throw V(new Vh(pw+e+'"'));return d}function vKt(e){var t,n,i,r,o,a,d;for(a=new _i,o=new U(e.a);o.a<o.c.c.length;)r=c(G(o),117),r_(r,r.f.c.length),y6(r,r.k.c.length),r.i==0&&(r.o=0,rr(a,r,a.c.b,a.c));for(;a.b!=0;)for(r=c(a.b==0?null:(gn(a.b!=0),ma(a,a.a.a)),117),i=r.o+1,n=new U(r.f);n.a<n.c.c.length;)t=c(G(n),135),d=t.a,x6(d,p.Math.max(d.o,i)),y6(d,d.i-1),d.i==0&&rr(a,d,a.c.b,a.c)}function yKt(e){var t,n,i,r,o,a,d,b;for(a=new U(e);a.a<a.c.c.length;){for(o=c(G(a),74),i=no(c(ce((!o.b&&(o.b=new Ct(xn,o,4,7)),o.b),0),83)),d=i.i,b=i.j,r=c(ce((!o.a&&(o.a=new _e(Gi,o,6,6)),o.a),0),171),I_(r,r.j+d,r.k+b),P_(r,r.b+d,r.c+b),n=new on((!r.a&&(r.a=new Nr(Yu,r,5)),r.a));n.e!=n.i.gc();)t=c(un(n),373),xZ(t,t.a+d,t.b+b);Xme(c(Se(o,(In(),N3)),79),d,b)}}function VS(e){var t;switch(e){case 100:return Xx(FE,!0);case 68:return Xx(FE,!1);case 119:return Xx($oe,!0);case 87:return Xx($oe,!1);case 115:return Xx(Boe,!0);case 83:return Xx(Boe,!1);case 99:return Xx(zoe,!0);case 67:return Xx(zoe,!1);case 105:return Xx(Foe,!0);case 73:return Xx(Foe,!1);default:throw V(new Ao((t=e,uft+t.toString(16))))}}function xKt(e){var t,n,i,r,o;switch(r=c(Je(e.a,0),9),t=new Oh(e),Qe(e.a,t),t.o.a=p.Math.max(1,r.o.a),t.o.b=p.Math.max(1,r.o.b),t.n.a=r.n.a,t.n.b=r.n.b,c($(r,(Ie(),Yo)),64).g){case 4:t.n.a+=2;break;case 1:t.n.b+=2;break;case 2:t.n.a-=2;break;case 3:t.n.b-=2}return i=new mc,Do(i,t),n=new Gm,o=c(Je(r.j,0),12),Os(n,o),ss(n,i),Oi(Uf(i.n),o.n),Oi(Uf(i.a),o.a),t}function Oa(e,t,n,i){var r,o,a,d,b,v,x,T,A,L;for(r=t,d=n,i<0&&(r=n,d=t),o=c(Ut(e.a,r),47),b=c(Ut(e.a,d),47),a=c(Ut(e.e,r),47),v=c(Ut(e.e,d),47),o.a.yc(d,o),v.a.yc(r,v),L=b.a.ec().Jc();L.Ob();)A=c(L.Pb(),12),o.a.yc(A,o),Er(c(Ut(e.e,A),47),r),Ss(c(Ut(e.e,A),47),a);for(T=a.a.ec().Jc();T.Ob();)x=c(T.Pb(),12),v.a.yc(x,v),Er(c(Ut(e.a,x),47),d),Ss(c(Ut(e.a,x),47),b)}function kKt(e,t,n){var i,r,o,a,d;for(o=0,r=new on((!e.a&&(e.a=new _e(_n,e,10,11)),e.a));r.e!=r.i.gc();)i=c(un(r),19),a="",(!i.n&&(i.n=new _e(zo,i,1,7)),i.n).i==0||(a=c(ce((!i.n&&(i.n=new _e(zo,i,1,7)),i.n),0),158).a),d=new Wte(o++,t,a),nc(d,i),Me(d,(Ii(),AC),i),d.e.b=i.j+i.f/2,d.f.a=p.Math.max(i.g,1),d.e.a=i.i+i.g/2,d.f.b=p.Math.max(i.f,1),ei(t.b,d),bl(n.f,i,d)}function Vye(e,t,n){var i,r,o,a;if(t[0]>=e.length)return n.o=0,!0;switch(ws(e,t[0])){case 43:r=1;break;case 45:r=-1;break;default:return n.o=0,!0}if(++t[0],o=t[0],a=LQ(e,t),a==0&&t[0]==o)return!1;if(t[0]<e.length&&ws(e,t[0])==58){if(i=a*60,++t[0],o=t[0],a=LQ(e,t),a==0&&t[0]==o)return!1;i+=a}else i=a,i<24&&t[0]-o<=2?i*=60:i=i%100+(i/100|0)*60;return i*=r,n.o=-i,!0}function OKt(e){var t,n,i,r,o,a,d,b,v;for(a=new He,i=new Ht(Xt(Fi(e.b).a.Jc(),new F));hn(i);)n=c(rn(i),17),ys(n)&&Qe(a,new rJe(n,QJe(e,n.c),QJe(e,n.d)));for(v=(o=new m1(e.e).a.vc().Jc(),new N2(o));v.a.Ob();)d=(t=c(v.a.Pb(),45),c(t.kd(),114)),d.d.p=0;for(b=(r=new m1(e.e).a.vc().Jc(),new N2(r));b.a.Ob();)d=(t=c(b.a.Pb(),45),c(t.kd(),114)),d.d.p==0&&Qe(e.d,rKt(e,d))}function SKt(e,t){var n,i,r,o,a,d,b,v,x;for(a=new U(t.b);a.a<a.c.c.length;)for(o=c(G(a),26),v=new U(o.a);v.a<v.c.c.length;){for(b=c(G(v),9),x=new He,d=0,i=new Ht(Xt(vr(b).a.Jc(),new F));hn(i);)n=c(rn(i),17),!(ys(n)||!ys(n)&&n.c.i.c==n.d.i.c)&&(r=c($(n,(Ge(),$k)),15).a,r>d&&(d=r,x.c.length=0),r==d&&Qe(x,new Is(n.c.i,n)));Mt(),Rr(x,e.c),Qp(e.b,b.p,x)}}function jKt(e,t){var n,i,r,o,a,d,b,v,x;for(a=new U(t.b);a.a<a.c.c.length;)for(o=c(G(a),26),v=new U(o.a);v.a<v.c.c.length;){for(b=c(G(v),9),x=new He,d=0,i=new Ht(Xt(Fi(b).a.Jc(),new F));hn(i);)n=c(rn(i),17),!(ys(n)||!ys(n)&&n.c.i.c==n.d.i.c)&&(r=c($(n,(Ge(),$k)),15).a,r>d&&(d=r,x.c.length=0),r==d&&Qe(x,new Is(n.d.i,n)));Mt(),Rr(x,e.c),Qp(e.f,b.p,x)}}function TKt(e){var t,n,i,r,o,a,d;for(o=bh(e),r=new on((!e.e&&(e.e=new Ct($i,e,7,4)),e.e));r.e!=r.i.gc();)if(i=c(un(r),74),d=no(c(ce((!i.c&&(i.c=new Ct(xn,i,5,8)),i.c),0),83)),!sv(d,o))return!0;for(n=new on((!e.d&&(e.d=new Ct($i,e,8,5)),e.d));n.e!=n.i.gc();)if(t=c(un(n),74),a=no(c(ce((!t.b&&(t.b=new Ct(xn,t,4,7)),t.b),0),83)),!sv(a,o))return!0;return!1}function EKt(e){var t,n,i,r,o;i=c($(e,(Ie(),Si)),19),o=c(Se(i,(Ge(),Db)),185).Gc((Tu(),qb)),e.e||(r=c($(e,Rc),24),t=new ze(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),r.Gc((Us(),Ca))?(ri(i,ar,(es(),kc)),hw(i,t.a,t.b,!1,!0)):Ze(Ye(Se(i,Ple)))||hw(i,t.a,t.b,!0,!0)),o?ri(i,Db,bt(qb)):ri(i,Db,(n=c(Gf(eM),10),new da(n,c(gf(n,n.length),10),0)))}function CKt(e,t){var n,i,r,o,a,d,b,v;if(v=Ye($(t,(Jo(),Zbt))),v==null||(zt(v),v)){for(eJt(e,t),r=new He,b=Pn(t.b,0);b.b!=b.d.c;)a=c(Dn(b),41),n=Nve(e,a,null),n&&(nc(n,t),It(r.c,n));if(e.a=null,e.b=null,r.c.length>1)for(i=new U(r);i.a<i.c.c.length;)for(n=c(G(i),121),o=0,d=Pn(n.b,0);d.b!=d.d.c;)a=c(Dn(d),41),a.g=o++;return r}return mf(Y(K(ain,1),Sct,121,0,[t]))}function MKt(e,t){var n,i,r,o,a,d;for(r=new U(t.a);r.a<r.c.c.length;)i=c(G(r),9),o=$(i,(Ie(),Si)),ae(o,12)&&(a=c(o,12),d=Irt(t,i,a.o.a,a.o.b),a.n.a=d.a,a.n.b=d.b,$r(a,c($(i,Yo),64)));n=new ze(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),c($(t,(Ie(),Rc)),24).Gc((Us(),Ca))?(Me(e,(Ge(),ar),(es(),kc)),c($(Vr(e),Rc),24).Ec(Uj),Tst(e,n,!1)):Tst(e,n,!0)}function AKt(e){var t,n,i,r,o,a,d,b;for(b=new tu,t=Pn(e,0),d=null,n=c(Dn(t),8),r=c(Dn(t),8);t.b!=t.d.c;)d=n,n=r,r=c(Dn(t),8),o=rXe(Qr(new ze(d.a,d.b),n)),a=rXe(Qr(new ze(r.a,r.b),n)),i=10,i=p.Math.min(i,p.Math.abs(o.a+o.b)/2),i=p.Math.min(i,p.Math.abs(a.a+a.b)/2),o.a=Y_(o.a)*i,o.b=Y_(o.b)*i,a.a=Y_(a.a)*i,a.b=Y_(a.b)*i,ei(b,Oi(o,n)),ei(b,Oi(a,n));return b}function NKt(e,t,n){var i,r,o,a,d,b;if(n.Tg("Minimize Crossings "+e.a,1),i=t.b.c.length==0||!D6(mi(new Tt(null,new Et(t.b,16)),new S6(new AA))).zd((Fp(),Ok)),b=t.b.c.length==1&&c(Je(t.b,0),26).a.c.length==1,o=xe($(t,(Ge(),Qv)))===xe((D1(),Yg)),i||b&&!o){n.Ug();return}r=xXt(e,t),a=(d=c(bc(r,0),221),d.c.ig()?d.c.cg()?new sDe(e):new oDe(e):new rDe(e)),D$t(r,a),uBt(e),n.Ug()}function Qu(e,t,n,i){var r,o,a,d,b;return a=e.Mh(),b=e.Gh(),r=null,b?t&&(_ie(e,t,n).Bb&Rs)==0?(i=_s(b.Cl(),e,i),e.ai(null),r=t.Nh()):b=null:(a&&(b=a.Nh()),t&&(r=t.Nh())),b!=r&&b&&b.Gl(e),d=e.Ch(),e.yh(t,n),b!=r&&r&&r.Fl(e),e.sh()&&e.th()&&(a&&d>=0&&d!=n&&(o=new Jr(e,1,d,a,null),i?i.lj(o):i=o),n>=0&&(o=new Jr(e,1,n,d==n?a:null,t),i?i.lj(o):i=o)),i}function mrt(e){var t,n,i;if(e.b==null){if(i=new vg,e.i!=null&&(Zs(i,e.i),i.a+=":"),(e.f&256)!=0){for((e.f&256)!=0&&e.a!=null&&(jNt(e.i)||(i.a+="//"),Zs(i,e.a)),e.d!=null&&(i.a+="/",Zs(i,e.d)),(e.f&16)!=0&&(i.a+="/"),t=0,n=e.j.length;t<n;t++)t!=0&&(i.a+="/"),Zs(i,e.j[t]);e.g!=null&&(i.a+="?",Zs(i,e.g))}else Zs(i,e.a);e.e!=null&&(i.a+="#",Zs(i,e.e)),e.b=i.a}return e.b}function _Kt(e,t,n,i,r){var o,a,d,b;o=new Oh(e),pu(o,(Jt(),Ic)),Me(o,(Ge(),ar),(es(),kc)),Me(o,(Ie(),Si),t.c.i),a=new mc,Me(a,Si,t.c),$r(a,r),Do(a,o),Me(t.c,Jl,o),d=new Oh(e),pu(d,Ic),Me(d,ar,kc),Me(d,Si,t.d.i),b=new mc,Me(b,Si,t.d),$r(b,r),Do(b,d),Me(t.d,Jl,d),Os(t,a),ss(t,b),ev(0,n.c.length),ET(n.c,0,o),It(i.c,d),Me(o,uJ,$e(1)),Me(d,uJ,$e(1))}function DKt(e,t,n,i){var r,o,a,d,b;if(b=Gn(js(Qd,Id(Gn(js(t==null?0:zi(t),Gd)),15))),r=Gn(js(Qd,Id(Gn(js(n==null?0:zi(n),Gd)),15))),d=k7(e,t,b),a=x7(e,n,r),d&&r==d.a&&k1(n,d.g))return n;if(a)throw V(new qt("key already present: "+n));return d&&Qx(e,d),a&&Qx(e,a),o=new Aq(n,r,t,b),oL(e,o,a),a&&(a.e=null,a.c=null),d&&(d.e=null,d.c=null),WZe(e),d?d.g:null}function wrt(e,t,n){var i,r,o,a,d;for(o=0;o<t;o++){for(i=0,d=o+1;d<t;d++)i=Ns(Ns(js(Zr(e[o],Js),Zr(e[d],Js)),Zr(n[o+d],Js)),Zr(Gn(i),Js)),n[o+d]=Gn(i),i=Jp(i,32);n[o+t]=Gn(i)}for(wRt(n,n,t<<1),i=0,r=0,a=0;r<t;++r,a++)i=Ns(Ns(js(Zr(e[r],Js),Zr(e[r],Js)),Zr(n[a],Js)),Zr(Gn(i),Js)),n[a]=Gn(i),i=Jp(i,32),++a,i=Ns(i,Zr(n[a],Js)),n[a]=Gn(i),i=Jp(i,32);return n}function vrt(e,t,n){var i,r,o,a,d,b,v,x;if(!tv(t)){for(b=de(be(dv(n.c,(Ge(),bC)))),v=c(dv(n.c,MP),125),!v&&(v=new aT),i=n.a,r=null,d=t.Jc();d.Ob();)a=c(d.Pb(),12),x=0,r?(x=b,x+=r.o.b):x=v.d,o=Im(w_(new Bp,a),e.f),ci(e.k,a,o),Of(uf(ff(af(hf(new Ra,0),ks(p.Math.ceil(x))),i),o)),r=a,i=o;Of(uf(ff(af(hf(new Ra,0),ks(p.Math.ceil(v.a+r.o.b))),i),n.d))}}function LKt(e,t,n,i,r,o,a,d){var b,v,x,T,A,L;return L=!1,A=o-n.s,x=n.t-t.f+(v=cE(n,A,!1),v.a),i.g+d>A?!1:(T=(b=cE(i,A,!1),b.a),x+d+T<=t.b&&(bD(n,o-n.s),n.c=!0,bD(i,o-n.s),XD(i,n.s,n.t+n.d+d),i.k=!0,Kme(n.q,i),L=!0,r&&(TH(t,i),i.j=t,e.c.length>a&&(ZD((ht(a,e.c.length),c(e.c[a],189)),i),(ht(a,e.c.length),c(e.c[a],189)).a.c.length==0&&Cg(e,a)))),L)}function PKt(e,t){var n,i,r,o,a,d;if(t.Tg("Partition midprocessing",1),r=new Jm,hr(mi(new Tt(null,new Et(e.a,16)),new IO),new x_e(r)),r.d!=0){for(d=c(Hl(wbe((o=r.i,new Tt(null,(o||(r.i=new Ox(r,r.c))).Lc()))),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[(ya(),wl)]))),16),i=d.Jc(),n=c(i.Pb(),15);i.Ob();)a=c(i.Pb(),15),EVt(c(Ei(r,n),24),c(Ei(r,a),24)),n=a;t.Ug()}}function iE(e,t){var n,i,r,o,a;if(e.Ab){if(e.Ab){if(a=e.Ab.i,a>0){if(r=c(e.Ab.g,2012),t==null){for(o=0;o<a;++o)if(n=r[o],n.d==null)return n}else for(o=0;o<a;++o)if(n=r[o],St(t,n.d))return n}}else if(t==null){for(i=new on(e.Ab);i.e!=i.i.gc();)if(n=c(un(i),594),n.d==null)return n}else for(i=new on(e.Ab);i.e!=i.i.gc();)if(n=c(un(i),594),St(t,n.d))return n}return null}function yrt(e,t,n,i,r){var o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me;L=ELt(e,swe(t),r),qme(L,j1(r,hd)),k=null,I=r,z=h7(I,Lut),Q=new rLe(L),Qet(Q.a,z),W=h7(I,"endPoint"),re=new lLe(L),Het(re.a,W),le=Vm(I,XG),me=new fLe(L),det(me.a,le),T=j1(r,G4e),o=new R$e(e,L),aFe(o.a,o.b,T),A=j1(r,Q4e),a=new $$e(e,L),fFe(a.a,a.b,A),v=Vm(r,J4e),d=new H$e(n,L),IZe(d.b,d.a,v),x=Vm(r,U4e),b=new Q$e(i,L),RZe(b.b,b.a,x)}function xrt(e,t,n){var i,r,o,a,d,b,v,x;if(t.p==0){for(t.p=1,a=n,a||(r=new He,o=(i=c(Gf(Bs),10),new da(i,c(gf(i,i.length),10),0)),a=new Is(r,o)),c(a.a,16).Ec(t),t.k==(Jt(),Ar)&&c(a.b,24).Ec(c($(t,(Ie(),Yo)),64)),b=new U(t.j);b.a<b.c.c.length;)for(d=c(G(b),12),x=Pd(wa(Y(K(Ea,1),Pt,22,0,[new T6(d),new t4(d)])));hn(x);)v=c(rn(x),12),xrt(e,v.i,a);return a}return null}function Xye(e,t,n){var i,r,o,a,d;switch(d=null,t.g){case 1:for(r=new U(e.j);r.a<r.c.c.length;)if(i=c(G(r),12),Ze(Ye($(i,(Ie(),gle)))))return i;d=new mc,Me(d,(Ie(),gle),(Bt(),!0));break;case 2:for(a=new U(e.j);a.a<a.c.c.length;)if(o=c(G(a),12),Ze(Ye($(o,(Ie(),ble)))))return o;d=new mc,Me(d,(Ie(),ble),(Bt(),!0))}return d&&(Do(d,e),$r(d,n),DFt(d.n,e.o,n)),d}function krt(e,t){var n,i,r,o,a,d;for(d=-1,a=new _i,i=new wh(e.b);_o(i.a)||_o(i.b);){for(n=c(_o(i.a)?G(i.a):G(i.b),17),d=p.Math.max(d,de(be($(n,(Ge(),Jg))))),n.c==e?hr(mi(new Tt(null,new Et(n.b,16)),new am),new a_e(a)):hr(mi(new Tt(null,new Et(n.b,16)),new ZM),new f_e(a)),o=Pn(a,0);o.b!=o.d.c;)r=c(Dn(o),70),ki(r,(Ie(),Ak))||Me(r,Ak,n);Or(t,a),xu(a)}return d}function fw(e,t,n,i,r){var o,a,d,b,v;d=r?i.b:i.a,!$a(e.a,i)&&(v=d>n.s&&d<n.c,b=!1,n.e.b!=0&&n.j.b!=0&&(b=b|(p.Math.abs(d-de(be(q6(n.e))))<ud&&p.Math.abs(d-de(be(q6(n.j))))<ud),b=b|(p.Math.abs(d-de(be(df(n.e))))<ud&&p.Math.abs(d-de(be(df(n.j))))<ud)),(v||b)&&(a=c($(t,(Ge(),go)),79),a||(a=new tu,Me(t,go,a)),o=new Ms(i),rr(a,o,a.c.b,a.c),Er(e.a,o)))}function IKt(e,t,n){var i,r,o,a,d,b,v,x,T;for(n.Tg("Processor set coordinates",1),e.a=t.b.b==0?1:t.b.b,v=null,i=Pn(t.b,0);!v&&i.b!=i.d.c;)T=c(Dn(i),41),Ze(Ye($(T,(Ii(),sp))))&&(v=T,b=T.e,b.a=c($(T,RP),15).a,b.b=c($(T,$P),15).a);d=Qte(v),x=1;do d=eGt((r=d,n.dh(x),r)),x=d.b/e.a|0;while(d.b!=0);for(a=Pn(t.b,0);a.b!=a.d.c;)o=c(Dn(a),41),Qr(o.e,new ze(o.f.a/2,o.f.b/2));n.Ug()}function RKt(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z;for(n=!1,x=de(be($(t,(Ge(),Ib)))),I=zg*x,r=new U(t.b);r.a<r.c.c.length;)for(i=c(G(r),26),v=new U(i.a),o=c(G(v),9),T=Ape(e.a[o.p]);v.a<v.c.c.length;)d=c(G(v),9),A=Ape(e.a[d.p]),T!=A&&(L=yx(e.b,o,d),a=o.n.b+o.o.b+o.d.a+T.a+L,b=d.n.b-d.d.d+A.a,a>b+I&&(z=T.g+A.g,A.a=(A.g*A.a+T.g*T.a)/z,A.g=z,T.f=A,n=!0)),o=d,T=A;return n}function $Kt(e,t,n){var i,r,o,a,d,b,v,x;for(n.Tg(ylt,1),cc(e.b),cc(e.a),d=null,o=Pn(t.b,0);!d&&o.b!=o.d.c;)v=c(Dn(o),41),Ze(Ye($(v,(Ii(),sp))))&&(d=v);for(b=new _i,rr(b,d,b.c.b,b.c),tot(e,b),x=Pn(t.b,0);x.b!=x.d.c;)v=c(Dn(x),41),a=qn($(v,(Ii(),MC))),r=Mc(e.b,a)!=null?c(Mc(e.b,a),15).a:0,Me(v,hue,$e(r)),i=1+(Mc(e.a,a)!=null?c(Mc(e.a,a),15).a:0),Me(v,v9e,$e(i));n.Ug()}function Ort(e){Dm(e,new pb(Am(Em(Mm(Cm(new h1,Ow),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new aN))),Be(e,Ow,mw,STe),Be(e,Ow,bw,15),Be(e,Ow,RL,$e(0)),Be(e,Ow,N4e,Ve(xTe)),Be(e,Ow,Yx,Ve(f2t)),Be(e,Ow,bk,Ve(h2t)),Be(e,Ow,aj,Vlt),Be(e,Ow,fj,Ve(kTe)),Be(e,Ow,mk,Ve(OTe)),Be(e,Ow,_4e,Ve(vae)),Be(e,Ow,IG,Ve(a2t))}function Srt(e,t){var n,i,r,o,a,d,b,v,x;if(r=e.i,a=r.o.a,o=r.o.b,a<=0&&o<=0)return Ue(),Bo;switch(v=e.n.a,x=e.n.b,d=e.o.a,n=e.o.b,t.g){case 2:case 1:if(v<0)return Ue(),Yt;if(v+d>a)return Ue(),nn;break;case 4:case 3:if(x<0)return Ue(),Kt;if(x+n>o)return Ue(),mn}return b=(v+d/2)/a,i=(x+n/2)/o,b+i<=1&&b-i<=0?(Ue(),Yt):b+i>=1&&b-i>=0?(Ue(),nn):i<.5?(Ue(),Kt):(Ue(),mn)}function jrt(e,t,n,i,r,o,a){var d,b,v,x,T,A;for(A=new w4,v=t.Jc();v.Ob();)for(d=c(v.Pb(),845),T=new U(d.Pf());T.a<T.c.c.length;)x=c(G(T),190),xe(x.mf((In(),Oae)))===xe((yh(),d9))&&(irt(A,x,!1,i,r,o,a),G7(e,A));for(b=n.Jc();b.Ob();)for(d=c(b.Pb(),845),T=new U(d.Pf());T.a<T.c.c.length;)x=c(G(T),190),xe(x.mf((In(),Oae)))===xe((yh(),uy))&&(irt(A,x,!0,i,r,o,a),G7(e,A))}function BKt(e,t,n){var i,r,o,a,d,b,v;for(a=new on((!e.a&&(e.a=new _e(_n,e,10,11)),e.a));a.e!=a.i.gc();)for(o=c(un(a),19),r=new Ht(Xt(I1(o).a.Jc(),new F));hn(r);)i=c(rn(r),74),!W7(i)&&!W7(i)&&!lw(i)&&(b=c(No(lo(n.f,o)),41),v=c(Ut(n,no(c(ce((!i.c&&(i.c=new Ct(xn,i,5,8)),i.c),0),83))),41),b&&v&&(d=new rbe(b,v),Me(d,(Ii(),AC),i),nc(d,i),ei(b.d,d),ei(v.b,d),ei(t.a,d)))}function zKt(e,t){var n,i,r,o,a,d,b,v;for(b=c(c(Ei(e.r,t),24),85).Jc();b.Ob();)d=c(b.Pb(),116),r=d.c?iqe(d.c):0,r>0?d.a?(v=d.b.Kf().b,r>v&&(e.v||d.c.d.c.length==1?(a=(r-v)/2,d.d.d=a,d.d.a=a):(n=c(Je(d.c.d,0),190).Kf().b,i=(n-v)/2,d.d.d=p.Math.max(0,i),d.d.a=r-i-v))):d.d.a=e.t+r:ZT(e.u)&&(o=dve(d.b),o.d<0&&(d.d.d=-o.d),o.d+o.a>d.b.Kf().b&&(d.d.a=o.d+o.a-d.b.Kf().b))}function Sf(){Sf=Z,Sk=new Ur((In(),WP),$e(1)),EU=new Ur(oh,80),ndt=new Ur(e7e,5),Uht=new Ur(l9,uj),edt=new Ur(_ae,$e(1)),tdt=new Ur(Dae,(Bt(),!0)),cOe=new qp(50),Yht=new Ur(Ih,cOe),rOe=GC,lOe=u9,Jht=new Ur(aV,!1),oOe=UC,Wht=sy,Kht=op,Xht=zb,Vht=_3,Zht=oy,sOe=(Ove(),Bht),wce=Hht,TU=$ht,mce=zht,uOe=qht,sdt=f9,odt=dV,rdt=ly,idt=a9,aOe=(U4(),fy),new Ur(Uk,aOe)}function FKt(e,t){var n;switch(SD(e)){case 6:return Yr(t);case 7:return $2(t);case 8:return R2(t);case 3:return Array.isArray(t)&&(n=SD(t),!(n>=14&&n<=16));case 11:return t!=null&&typeof t===ore;case 12:return t!=null&&(typeof t===kL||typeof t==ore);case 0:return _ne(t,e.__elementTypeId$);case 2:return hee(t)&&t.Rm!==we;case 1:return hee(t)&&t.Rm!==we||_ne(t,e.__elementTypeId$);default:return!0}}function qKt(e){var t,n,i,r;i=e.o,q2(),e.A.dc()||xi(e.A,Zke)?r=i.a:(e.D?r=p.Math.max(i.a,V7(e.f)):r=V7(e.f),e.A.Gc((Tu(),rI))&&!e.B.Gc((lu(),tM))&&(r=p.Math.max(r,V7(c(eo(e.p,(Ue(),Kt)),256))),r=p.Math.max(r,V7(c(eo(e.p,mn),256)))),t=hWe(e),t&&(r=p.Math.max(r,t.a))),Ze(Ye(e.e.Rf().mf((In(),sy))))?i.a=p.Math.max(i.a,r):i.a=r,n=e.f.i,n.c=0,n.b=r,$ie(e.f)}function Trt(e,t){var n,i,r,o;return i=p.Math.min(p.Math.abs(e.c-(t.c+t.b)),p.Math.abs(e.c+e.b-t.c)),o=p.Math.min(p.Math.abs(e.d-(t.d+t.a)),p.Math.abs(e.d+e.a-t.d)),n=p.Math.abs(e.c+e.b/2-(t.c+t.b/2)),n>e.b/2+t.b/2||(r=p.Math.abs(e.d+e.a/2-(t.d+t.a/2)),r>e.a/2+t.a/2)?1:n==0&&r==0?0:n==0?o/r+1:r==0?i/n+1:p.Math.min(i/n,o/r)+1}function HKt(e,t){var n,i,r,o,a,d,b;for(o=0,d=0,b=0,r=new U(e.f.e);r.a<r.c.c.length;)i=c(G(r),156),t!=i&&(a=e.i[t.a][i.a],o+=a,n=C0(t.d,i.d),n>0&&e.d!=(b7(),xce)&&(d+=a*(i.d.a+e.a[t.a][i.a]*(t.d.a-i.d.a)/n)),n>0&&e.d!=(b7(),vce)&&(b+=a*(i.d.b+e.a[t.a][i.a]*(t.d.b-i.d.b)/n)));switch(e.d.g){case 1:return new ze(d/o,t.d.b);case 2:return new ze(t.d.a,b/o);default:return new ze(d/o,b/o)}}function Ert(e){var t,n,i,r,o,a;for(n=(!e.a&&(e.a=new Nr(Yu,e,5)),e.a).i+2,a=new Gc(n),Qe(a,new ze(e.j,e.k)),hr(new Tt(null,(!e.a&&(e.a=new Nr(Yu,e,5)),new Et(e.a,16))),new eLe(a)),Qe(a,new ze(e.b,e.c)),t=1;t<a.c.length-1;)i=(ht(t-1,a.c.length),c(a.c[t-1],8)),r=(ht(t,a.c.length),c(a.c[t],8)),o=(ht(t+1,a.c.length),c(a.c[t+1],8)),i.a==r.a&&r.a==o.a||i.b==r.b&&r.b==o.b?Cg(a,t):++t;return a}function Crt(e,t){xS();var n,i,r,o,a;if(a=c($(e.i,(Ge(),ar)),103),o=e.j.g-t.j.g,o!=0||!(a==(es(),Fb)||a==e1||a==kc))return 0;if(a==(es(),Fb)&&(n=c($(e,Vg),15),i=c($(t,Vg),15),n&&i&&(r=n.a-i.a,r!=0)))return r;switch(e.j.g){case 1:return Ci(e.n.a,t.n.a);case 2:return Ci(e.n.b,t.n.b);case 3:return Ci(t.n.a,e.n.a);case 4:return Ci(t.n.b,e.n.b);default:throw V(new co(l3e))}}function Mrt(e,t){var n,i,r,o,a,d,b;for(n=bze(ORe(xRe(kRe(new u1e,t),new Rq(t.e)),Zdt),e.a),t.j.c.length==0||WJe(c(Je(t.j,0),60).a,n),b=new cY,ci(e.e,n,b),a=new Tr,d=new Tr,o=new U(t.k);o.a<o.c.c.length;)r=c(G(o),17),Er(a,r.c),Er(d,r.d);i=a.a.gc()-d.a.gc(),i<0?($D(b,!0,(_r(),po)),$D(b,!1,vo)):i>0&&($D(b,!1,(_r(),po)),$D(b,!0,vo)),Uc(t.g,new YRe(e,n)),ci(e.g,t,n)}function Wye(){Wye=Z,Xmt=new vt(i4e,(Bt(),!1)),$e(-1),qmt=new vt(r4e,$e(-1)),$e(-1),Hmt=new vt(s4e,$e(-1)),Qmt=new vt(o4e,!1),Gmt=new vt(c4e,!1),m8e=(tH(),Gue),Zmt=new vt(l4e,m8e),ewt=new vt(u4e,-1),b8e=(eQ(),Fue),Ymt=new vt(a4e,b8e),Kmt=new vt(f4e,!0),g8e=(fH(),Uue),Vmt=new vt(h4e,g8e),Jmt=new vt(d4e,!1),$e(1),Umt=new vt(g4e,$e(1)),p8e=(VH(),Jue),Wmt=new vt(p4e,p8e)}function Art(){Art=Z;var e;for(Dke=Y(K(Hn,1),li,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]),tce=ke(Hn,li,30,37,15,1),Dft=Y(K(Hn,1),li,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]),Lke=ke(Gw,Wot,30,37,14,1),e=2;e<=36;e++)tce[e]=ks(p.Math.pow(e,Dke[e])),Lke[e]=tL(TL,tce[e])}function QKt(e){var t;if((!e.a&&(e.a=new _e(Gi,e,6,6)),e.a).i!=1)throw V(new qt(wut+(!e.a&&(e.a=new _e(Gi,e,6,6)),e.a).i));return t=new tu,Hte(c(ce((!e.b&&(e.b=new Ct(xn,e,4,7)),e.b),0),83))&&Ss(t,vot(e,Hte(c(ce((!e.b&&(e.b=new Ct(xn,e,4,7)),e.b),0),83)),!1)),Hte(c(ce((!e.c&&(e.c=new Ct(xn,e,5,8)),e.c),0),83))&&Ss(t,vot(e,Hte(c(ce((!e.c&&(e.c=new Ct(xn,e,5,8)),e.c),0),83)),!0)),t}function Nrt(e,t){var n,i,r,o,a;for(t.d?r=e.a.c==(Kh(),$w)?vr(t.b):Fi(t.b):r=e.a.c==(Kh(),Xg)?vr(t.b):Fi(t.b),o=!1,i=new Ht(Xt(r.a.Jc(),new F));hn(i);)if(n=c(rn(i),17),a=Ze(e.a.f[e.a.g[t.b.p].p]),!(!a&&!ys(n)&&n.c.i.c==n.d.i.c)&&!(Ze(e.a.n[e.a.g[t.b.p].p])||Ze(e.a.n[e.a.g[t.b.p].p]))&&(o=!0,$a(e.b,e.a.g[oqt(n,t.b).p])))return t.c=!0,t.a=n,t;return t.c=o,t.a=null,t}function Kye(e,t,n){var i,r,o,a,d,b,v;if(i=n.gc(),i==0)return!1;if(e.Nj())if(b=e.Oj(),i2e(e,t,n),a=i==1?e.Gj(3,null,n.Jc().Pb(),t,b):e.Gj(5,null,n,t,b),e.Kj()){for(d=i<100?null:new p0(i),o=t+i,r=t;r<o;++r)v=e.vj(r),d=e.Lj(v,d),d=d;d?(d.lj(a),d.mj()):e.Hj(a)}else e.Hj(a);else if(i2e(e,t,n),e.Kj()){for(d=i<100?null:new p0(i),o=t+i,r=t;r<o;++r)d=e.Lj(e.vj(r),d);d&&d.mj()}return!0}function _rt(e,t,n){var i,r,o,a,d;return e.Nj()?(r=null,o=e.Oj(),i=e.Gj(1,d=(a=e.Bj(t,e.Xi(t,n)),a),n,t,o),e.Kj()&&!(e.Wi()&&d?xi(d,n):xe(d)===xe(n))&&(d&&(r=e.Mj(d,r)),r=e.Lj(n,r)),r?(r.lj(i),r.mj()):e.Hj(i),d):(d=(a=e.Bj(t,e.Xi(t,n)),a),e.Kj()&&!(e.Wi()&&d?xi(d,n):xe(d)===xe(n))&&(r=null,d&&(r=e.Mj(d,null)),r=e.Lj(n,r),r&&r.mj()),d)}function Yye(e,t){var n,i,r,o,a,d,b,v,x;if(e.e=t,e.f=c($(t,(M0(),CU)),237),NQt(t),e.d=p.Math.max(t.e.c.length*16+t.c.c.length,256),!Ze(Ye($(t,(Sf(),rOe)))))for(x=e.e.e.c.length,b=new U(t.e);b.a<b.c.c.length;)d=c(G(b),156),v=d.d,v.a=oee(e.f)*x,v.b=oee(e.f)*x;for(n=t.b,o=new U(t.c);o.a<o.c.c.length;)if(r=c(G(o),292),i=c($(r,uOe),15).a,i>0){for(a=0;a<i;a++)Qe(n,new aHe(r));rnt(r)}}function GKt(e,t){var n,i,r,o,a,d,b,v,x,T;for(t.Tg("Hypernodes processing",1),r=new U(e.b);r.a<r.c.c.length;)for(i=c(G(r),26),d=new U(i.a);d.a<d.c.c.length;)if(a=c(G(d),9),Ze(Ye($(a,(Ge(),xJ))))&&a.j.c.length<=2){for(T=0,x=0,n=0,o=0,v=new U(a.j);v.a<v.c.c.length;)switch(b=c(G(v),12),b.j.g){case 1:++T;break;case 2:++x;break;case 3:++n;break;case 4:++o}T==0&&n==0&&tnn(e,a,o<=x)}t.Ug()}function Drt(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I;if(A=new W2(e.Yg()),wf(t,di,A),n&&!e.Wg().a.dc())for(x=new bg,wf(t,"logs",x),d=0,I=new cx(e.Wg().b.Jc());I.b.Ob();)L=qn(I.b.Pb()),T=new W2(L),rv(x,d),Wee(x,d,T),++d;if(i&&(v=new w6(e.Vg()),wf(t,"executionTime",v)),!e.Xg().a.dc())for(a=new bg,wf(t,xoe,a),d=0,o=new cx(e.Xg().b.Jc());o.b.Ob();)r=c(o.b.Pb(),861),b=new c4,rv(a,d),Wee(a,d,b),Drt(r,b,n,i),++d}function Zye(){Zye=Z,LY(),Tyt=new PN,Y(K(Xk,2),Fe,377,0,[Y(K(Xk,1),dU,596,0,[new g_(Zat)])]),Y(K(Xk,2),Fe,377,0,[Y(K(Xk,1),dU,596,0,[new g_(dke)])]),Y(K(Xk,2),Fe,377,0,[Y(K(Xk,1),dU,596,0,[new g_(eft)]),Y(K(Xk,1),dU,596,0,[new g_(dke)])]),new x0("-1"),Y(K(Xk,2),Fe,377,0,[Y(K(Xk,1),dU,596,0,[new g_("\\c+")])]),new x0("0"),new x0("0"),new x0("1"),new x0("0"),new x0(oft)}function UKt(e,t,n){var i,r,o,a,d,b,v,x,T;for(n.Tg("Hyperedge merging",1),yJt(e,t),b=new os(t.b,0);b.b<b.d.gc();)if(d=(gn(b.b<b.d.gc()),c(b.d.Xb(b.c=b.b++),26)),x=d.a,x.c.length!=0)for(i=null,r=null,o=null,a=null,v=0;v<x.c.length;v++)i=(ht(v,x.c.length),c(x.c[v],9)),r=i.k,r==(Jt(),Cr)&&a==Cr&&(T=QYt(i,o),T.a&&(UXt(i,o,T.b,T.c),ht(v,x.c.length),B1e(x.c,v,1),--v,i=o,r=a)),o=i,a=r;n.Ug()}function JKt(e,t,n,i,r){var o,a,d,b,v,x,T;for(a=new U(t);a.a<a.c.c.length;){if(o=c(G(a),17),b=o.c,n.a._b(b))v=(Um(),rp);else if(i.a._b(b))v=(Um(),j3);else throw V(new qt("Source port must be in one of the port sets."));if(x=o.d,n.a._b(x))T=(Um(),rp);else if(i.a._b(x))T=(Um(),j3);else throw V(new qt("Target port must be in one of the port sets."));d=new vtt(o,v,T),ci(e.b,o,d),It(r.c,d)}}function WQ(e){var t,n;return e.c&&e.c.Sh()&&(n=c(e.c,52),e.c=c(L0(e,n),146),e.c!=n&&((e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,9,2,n,e.c)),ae(e.Cb,408)?e.Db>>16==-15&&e.Cb.Vh()&&gte(new hte(e.Cb,9,13,n,e.c,Rg(su(c(e.Cb,62)),e))):ae(e.Cb,89)&&e.Db>>16==-23&&e.Cb.Vh()&&(t=e.c,ae(t,89)||(t=(At(),rf)),ae(n,89)||(n=(At(),rf)),gte(new hte(e.Cb,9,10,n,t,Rg(pc(c(e.Cb,29)),e)))))),e.c}function Lrt(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I;if(t==n)return!0;if(t=tye(e,t),n=tye(e,n),i=Bne(t),i){if(x=Bne(n),x!=i)return x?(b=i.kk(),I=x.kk(),b==I&&b!=null):!1;if(a=(!t.d&&(t.d=new Nr(Ys,t,1)),t.d),o=a.i,A=(!n.d&&(n.d=new Nr(Ys,n,1)),n.d),o==A.i){for(v=0;v<o;++v)if(r=c(ce(a,v),88),T=c(ce(A,v),88),!Lrt(e,r,T))return!1}return!0}else return d=t.e,L=n.e,d==L}function Prt(e,t,n,i){var r,o,a,d,b,v,x,T;if(R1(e.e,t)){for(T=rl(e.e.Ah(),t),o=c(e.g,123),x=null,b=-1,d=-1,r=0,v=0;v<e.i;++v)a=o[v],T.$l(a.Jk())&&(r==n&&(b=v),r==i&&(d=v,x=a.kd()),++r);if(b==-1)throw V(new qc(Soe+n+Sb+r));if(d==-1)throw V(new qc(joe+i+Sb+r));return L7(e,b,d),bu(e.e)&&E6(e,j0(e,7,t,$e(i),x,n,!0)),x}else throw V(new qt("The feature must be many-valued to support move"))}function Irt(e,t,n,i){var r,o,a,d,b;switch(b=new Ms(t.n),b.a+=t.o.a/2,b.b+=t.o.b/2,d=de(be($(t,(Ge(),Jv)))),o=e.f,a=e.d,r=e.c,c($(t,(Ie(),Yo)),64).g){case 1:b.a+=a.b+r.a-n/2,b.b=-i-d,t.n.b=-(a.d+d+r.b);break;case 2:b.a=o.a+a.b+a.c+d,b.b+=a.d+r.b-i/2,t.n.a=o.a+a.c+d-r.a;break;case 3:b.a+=a.b+r.a-n/2,b.b=o.b+a.d+a.a+d,t.n.b=o.b+a.a+d-r.b;break;case 4:b.a=-n-d,b.b+=a.d+r.b-i/2,t.n.a=-(a.b+d+r.a)}return b}function VKt(e,t,n){var i,r;i=t.c.i,r=n.d.i,i.k==(Jt(),Cr)?(Me(e,(Ie(),ih),c($(i,ih),12)),Me(e,Wa,c($(i,Wa),12)),Me(e,qv,Ye($(i,qv)))):i.k==ac?(Me(e,(Ie(),ih),c($(i,ih),12)),Me(e,Wa,c($(i,Wa),12)),Me(e,qv,(Bt(),!0))):r.k==ac?(Me(e,(Ie(),ih),c($(r,ih),12)),Me(e,Wa,c($(r,Wa),12)),Me(e,qv,(Bt(),!0))):(Me(e,(Ie(),ih),t.c),Me(e,Wa,n.d))}function XKt(e){var t,n,i,r,o,a,d;for(e.o=new xx,i=new _i,a=new U(e.e.a);a.a<a.c.c.length;)o=c(G(a),126),Px(o).c.length==1&&rr(i,o,i.c.b,i.c);for(;i.b!=0;)o=c(i.b==0?null:(gn(i.b!=0),ma(i,i.a.a)),126),Px(o).c.length!=0&&(t=c(Je(Px(o),0),220),n=o.g.a.c.length>0,d=ZH(t,o),i0e(n?d.b:d.g,t),Px(d).c.length==1&&rr(i,d,i.c.b,i.c),r=new Is(o,t),T0(e.o,r),dl(e.e.a,o))}function Rrt(e,t){var n,i,r,o,a,d,b;return i=p.Math.abs(Oq(e.b).a-Oq(t.b).a),d=p.Math.abs(Oq(e.b).b-Oq(t.b).b),r=0,b=0,n=1,a=1,i>e.b.b/2+t.b.b/2&&(r=p.Math.min(p.Math.abs(e.b.c-(t.b.c+t.b.b)),p.Math.abs(e.b.c+e.b.b-t.b.c)),n=1-r/i),d>e.b.a/2+t.b.a/2&&(b=p.Math.min(p.Math.abs(e.b.d-(t.b.d+t.b.a)),p.Math.abs(e.b.d+e.b.a-t.b.d)),a=1-b/d),o=p.Math.min(n,a),(1-o)*p.Math.sqrt(i*i+d*d)}function WKt(e){var t,n,i,r;for(ere(e,e.e,e.f,(Um(),rp),!0,e.c,e.i),ere(e,e.e,e.f,rp,!1,e.c,e.i),ere(e,e.e,e.f,j3,!0,e.c,e.i),ere(e,e.e,e.f,j3,!1,e.c,e.i),JKt(e,e.c,e.e,e.f,e.i),i=new os(e.i,0);i.b<i.d.gc();)for(t=(gn(i.b<i.d.gc()),c(i.d.Xb(i.c=i.b++),134)),r=new os(e.i,i.b);r.b<r.d.gc();)n=(gn(r.b<r.d.gc()),c(r.d.Xb(r.c=r.b++),134)),FZt(t,n);fnn(e.i,c($(e.d,(Ie(),Dk)),237)),Cen(e.i)}function Iie(e,t){var n,i;if(t!=null){if(i=cw(e),i)if((i.i&1)!=0){if(i==Sl)return R2(t);if(i==Hn)return ae(t,15);if(i==wy)return ae(t,165);if(i==$l)return ae(t,224);if(i==_a)return ae(t,183);if(i==is)return $2(t);if(i==B3)return ae(t,193);if(i==Gw)return ae(t,192)}else return cF(),n=c(Ut(EV,i),58),!n||n.dk(t);else if(ae(t,57))return e.bl(c(t,57))}return!1}function exe(){exe=Z;var e,t,n,i,r,o,a,d,b;for(qh=ke($l,i3,30,255,15,1),r0=ke(_a,cd,30,64,15,1),t=0;t<255;t++)qh[t]=-1;for(n=90;n>=65;n--)qh[n]=n-65<<24>>24;for(i=122;i>=97;i--)qh[i]=i-97+26<<24>>24;for(r=57;r>=48;r--)qh[r]=r-48+52<<24>>24;for(qh[43]=62,qh[47]=63,o=0;o<=25;o++)r0[o]=65+o&Dr;for(a=26,b=0;a<=51;++a,b++)r0[a]=97+b&Dr;for(e=52,d=0;e<=61;++e,d++)r0[e]=48+d&Dr;r0[62]=43,r0[63]=47}function $rt(e,t){var n,i,r,o,a,d;return r=Jme(e),d=Jme(t),r==d?e.e==t.e&&e.a<54&&t.a<54?e.f<t.f?-1:e.f>t.f?1:0:(i=e.e-t.e,n=(e.d>0?e.d:p.Math.floor((e.a-1)*Kot)+1)-(t.d>0?t.d:p.Math.floor((t.a-1)*Kot)+1),n>i+1?r:n<i-1?-r:(o=(!e.c&&(e.c=oD(tc(e.f))),e.c),a=(!t.c&&(t.c=oD(tc(t.f))),t.c),i<0?o=Cx(o,Krt(-i)):i>0&&(a=Cx(a,Krt(i))),MYe(o,a))):r<d?-1:1}function Brt(e){var t,n,i,r,o,a;return i=new _me,nc(i,e),xe($(i,(Ge(),Vu)))===xe((_r(),$h))&&Me(i,Vu,KH(i)),$(i,(sH(),zC))==null&&(a=c(Iet(e),176),Me(i,zC,IF(a.mf(zC)))),Me(i,(Ie(),Si),e),Me(i,Rc,(t=c(Gf(ole),10),new da(t,c(gf(t,t.length),10),0))),r=Zen((Wi(e)&&(m0(),new mg(Wi(e))),m0(),new JF(Wi(e)?new mg(Wi(e)):null,e)),vo),o=c($(i,fje),100),n=i.d,IQe(n,o),IQe(n,r),i}function KKt(e,t,n){var i,r,o,a,d,b,v,x;for(n.Tg(Ect,1),e.qf(t),o=0;e.sf(o)&&!n.Zg();){for(e.rf(),x=Pd(wa(Y(K(Ea,1),Pt,22,0,[t.e,t.d,t.b])));hn(x);)for(b=c(rn(x),314),d=Pd(wa(Y(K(Ea,1),Pt,22,0,[t.e,t.d,t.b])));hn(d);)a=c(rn(d),314),a!=b&&(r=e.pf(a,b),r&&Oi(b.c,r));for(v=Pd(wa(Y(K(Ea,1),Pt,22,0,[t.e,t.d,t.b])));hn(v);)b=c(rn(v),314),i=b.c,ttt(i,-e.d,-e.d,e.d,e.d),Oi(b.d,i),i.a=0,i.b=0;++o}n.Ug()}function YKt(e,t){var n,i,r,o,a,d,b,v,x,T,A,L;if(e.dc())return new fs;for(v=0,T=0,r=e.Jc();r.Ob();)i=c(r.Pb(),37),o=i.f,v=p.Math.max(v,o.a),T+=o.a*o.b;for(v=p.Math.max(v,p.Math.sqrt(T)*de(be($(c(e.Jc().Pb(),37),(Ge(),gJ))))),A=0,L=0,b=0,n=t,d=e.Jc();d.Ob();)a=c(d.Pb(),37),x=a.f,A+x.a>v&&(A=0,L+=b+t,b=0),JS(a,A,L),n=p.Math.max(n,A+x.a),b=p.Math.max(b,x.b),A+=x.a+t;return new ze(n+t,L+b+t)}function txe(e,t){var n,i,r,o,a,d,b;if(!bh(e))throw V(new co(mut));if(i=bh(e),o=i.g,r=i.f,o<=0&&r<=0)return Ue(),Bo;switch(d=e.i,b=e.j,t.g){case 2:case 1:if(d<0)return Ue(),Yt;if(d+e.g>o)return Ue(),nn;break;case 4:case 3:if(b<0)return Ue(),Kt;if(b+e.f>r)return Ue(),mn}return a=(d+e.g/2)/o,n=(b+e.f/2)/r,a+n<=1&&a-n<=0?(Ue(),Yt):a+n>=1&&a-n>=0?(Ue(),nn):n<.5?(Ue(),Kt):(Ue(),mn)}function ZKt(e,t,n,i,r){var o,a;if(o=Ns(Zr(t[0],Js),Zr(i[0],Js)),e[0]=Gn(o),o=Bm(o,32),n>=r){for(a=1;a<r;a++)o=Ns(o,Ns(Zr(t[a],Js),Zr(i[a],Js))),e[a]=Gn(o),o=Bm(o,32);for(;a<n;a++)o=Ns(o,Zr(t[a],Js)),e[a]=Gn(o),o=Bm(o,32)}else{for(a=1;a<n;a++)o=Ns(o,Ns(Zr(t[a],Js),Zr(i[a],Js))),e[a]=Gn(o),o=Bm(o,32);for(;a<r;a++)o=Ns(o,Zr(i[a],Js)),e[a]=Gn(o),o=Bm(o,32)}_c(o,0)!=0&&(e[a]=Gn(o))}function eYt(e,t){var n,i,r,o,a,d,b,v,x;for(t.Tg("Layer constraint edge reversal",1),a=new U(e.b);a.a<a.c.c.length;){for(o=c(G(a),26),x=-1,n=new He,v=cD(o.a),r=0;r<v.length;r++)i=c($(v[r],(Ie(),Mb)),316),x==-1?i!=(M1(),p3)&&(x=r):i==(M1(),p3)&&(zr(v[r],null),R0(v[r],x++,o)),i==(M1(),Ek)&&It(n.c,v[r]);for(b=new U(n);b.a<b.c.c.length;)d=c(G(b),9),zr(d,null),zr(d,o)}t.Ug()}function Ov(e){vi();var t,n,i,r,o,a;if(e.e!=4&&e.e!=5)throw V(new qt("Token#complementRanges(): must be RANGE: "+e.e));for(o=e,Hx(o),lE(o),i=o.b.length+2,o.b[0]==0&&(i-=2),n=o.b[o.b.length-1],n==Nj&&(i-=2),r=new $u(4),r.b=ke(Hn,li,30,i,15,1),a=0,o.b[0]>0&&(r.b[a++]=0,r.b[a++]=o.b[0]-1),t=1;t<o.b.length-2;t+=2)r.b[a++]=o.b[t]+1,r.b[a++]=o.b[t+1]-1;return n!=Nj&&(r.b[a++]=n+1,r.b[a]=Nj),r.a=!0,r}function tYt(e,t){var n,i,r,o,a,d,b,v,x;for(t.Tg("Hierarchical port dummy size processing",1),b=new He,x=new He,i=de(be($(e,(Ge(),Wv)))),n=i*2,o=new U(e.b);o.a<o.c.c.length;){for(r=c(G(o),26),b.c.length=0,x.c.length=0,d=new U(r.a);d.a<d.c.c.length;)a=c(G(d),9),a.k==(Jt(),Ar)&&(v=c($(a,(Ie(),Yo)),64),v==(Ue(),Kt)?It(b.c,a):v==mn&&It(x.c,a));unt(b,!0,n),unt(x,!1,n)}t.Ug()}function zrt(e,t){var n,i,r,o,a,d,b,v,x,T,A,L;if(e.c.length==1)return 0;for(A=de(be(t.a)),L=de(be(t.b)),x=0,b=new U(e);b.a<b.c.c.length;)d=c(G(b),19),x+=d.g;for(n=(x-A+L)/2,o=0;n<o&&0<e.c.length;)o+=(ht(0,e.c.length),c(e.c[0],19)).lh();for(i=o-n,T=n-(o-(ht(0,e.c.length),c(e.c[0],19)).lh()),i>T?v=0:v=-1,t.a=A+i,a=0,r=v+1;r<e.c.length;r++)a+=(ht(r,e.c.length),c(e.c[r],19)).lh();return t.b=L+a,v}function Rie(e,t,n){var i,r,o,a,d,b,v,x;if(i=n.gc(),i==0)return!1;if(e.Nj())if(v=e.Oj(),sie(e,t,n),a=i==1?e.Gj(3,null,n.Jc().Pb(),t,v):e.Gj(5,null,n,t,v),e.Kj()){for(d=i<100?null:new p0(i),o=t+i,r=t;r<o;++r)x=e.g[r],d=e.Lj(x,d),d=e.Sj(x,d);d?(d.lj(a),d.mj()):e.Hj(a)}else e.Hj(a);else if(sie(e,t,n),e.Kj()){for(d=i<100?null:new p0(i),o=t+i,r=t;r<o;++r)b=e.g[r],d=e.Lj(b,d);d&&d.mj()}return!0}function nxe(e,t,n,i){var r,o,a,d,b;for(a=new U(e.k);a.a<a.c.c.length;)r=c(G(a),135),(!i||r.c==(Vf(),ip))&&(b=r.b,b.g<0&&r.d>0&&(r_(b,b.d-r.d),r.c==(Vf(),ip)&&YK(b,b.a-r.d),b.d<=0&&b.i>0&&rr(t,b,t.c.b,t.c)));for(o=new U(e.f);o.a<o.c.c.length;)r=c(G(o),135),(!i||r.c==(Vf(),ip))&&(d=r.a,d.g<0&&r.d>0&&(y6(d,d.i-r.d),r.c==(Vf(),ip)&&rT(d,d.b-r.d),d.i<=0&&d.d>0&&rr(n,d,n.c.b,n.c)))}function nYt(e,t,n,i,r){var o,a,d,b,v,x,T,A,L;for(Mt(),Rr(e,new mm),a=X_(e),L=new He,A=new He,d=null,b=0;a.b!=0;)o=c(a.b==0?null:(gn(a.b!=0),ma(a,a.a.a)),168),!d||Al(d)*yu(d)/2<Al(o)*yu(o)?(d=o,It(L.c,o)):(b+=Al(o)*yu(o),It(A.c,o),A.c.length>1&&(b>Al(d)*yu(d)/2||a.b==0)&&(T=new yH(A),x=Al(d)/yu(d),v=tre(T,t,new s4,n,i,r,x),Oi(Uf(T.e),v),d=T,It(L.c,T),b=0,A.c.length=0));return Or(L,A),L}function wc(e,t,n,i,r){kg();var o,a,d,b,v,x,T;if(Lpe(e,"src"),Lpe(n,"dest"),T=Ou(e),b=Ou(n),ipe((T.i&4)!=0,"srcType is not an array"),ipe((b.i&4)!=0,"destType is not an array"),x=T.c,a=b.c,ipe((x.i&1)!=0?x==a:(a.i&1)==0,"Array types don't match"),S$t(e,t,n,i,r),(x.i&1)==0&&T!=b)if(v=q4(e),o=q4(n),xe(e)===xe(n)&&t<i)for(t+=r,d=i+r;d-- >i;)mr(o,d,v[--t]);else for(d=i+r;i<d;)mr(o,i++,v[t++]);else Xve(e,t,n,i,r,!0)}function Frt(e,t){var n,i,r,o,a,d,b,v,x;switch(t.Tg("Box layout",2),r=f_(be(Se(e,(NQ(),g2t)))),o=c(Se(e,d2t),100),n=Ze(Ye(Se(e,xTe))),i=Ze(Ye(Se(e,kTe))),c(Se(e,vae),327).g){case 0:a=(x=new ql((!e.a&&(e.a=new _e(_n,e,10,11)),e.a)),Mt(),Rr(x,new KDe(i)),x),d=Dve(e),b=be(Se(e,yTe)),(b==null||(zt(b),b<=0))&&(b=1.3),v=Vtn(a,r,o,d.a,d.b,n,(zt(b),b)),hw(e,v.a,v.b,!1,!0);break;default:DZt(e,r,o,n)}t.Ug()}function iYt(e,t,n,i,r){var o,a,d,b,v,x,T,A,L,I;for(A=UHt(e,n),b=0;b<t;b++){for(H2(r,n),L=new He,I=(gn(i.b<i.d.gc()),c(i.d.Xb(i.c=i.b++),415)),x=A+b;x<e.b;x++)d=I,I=(gn(i.b<i.d.gc()),c(i.d.Xb(i.c=i.b++),415)),Qe(L,new dit(d,I,n));for(T=A+b;T<e.b;T++)gn(i.b>0),i.a.Xb(i.c=--i.b),T>A+b&&nu(i);for(a=new U(L);a.a<a.c.c.length;)o=c(G(a),415),H2(i,o);if(b<t-1)for(v=A+b;v<e.b;v++)gn(i.b>0),i.a.Xb(i.c=--i.b)}}function rYt(){vi();var e,t,n,i,r,o;if(nfe)return nfe;for(e=new $u(4),jv(e,q0(qoe,!0)),fE(e,q0("M",!0)),fE(e,q0("C",!0)),o=new $u(4),i=0;i<11;i++)Dc(o,i,i);return t=new $u(4),jv(t,q0("M",!0)),Dc(t,4448,4607),Dc(t,65438,65439),r=new qT(2),bb(r,e),bb(r,hM),n=new qT(2),n.Hm(mq(o,q0("L",!0))),n.Hm(t),n=new nv(3,n),n=new Ipe(r,n),nfe=n,nfe}function Sv(e,t){var n,i,r,o,a,d,b,v;for(n=new RegExp(t,"g"),b=ke(tt,Fe,2,0,6,1),i=0,v=e,o=null;;)if(d=n.exec(v),d==null||v==""){b[i]=v;break}else a=d.index,b[i]=(hs(0,a,v.length),v.substr(0,a)),v=Fa(v,a+d[0].length,v.length),n.lastIndex=0,o==v&&(b[i]=(hs(0,1,v.length),v.substr(0,1)),v=(en(1,v.length+1),v.substr(1))),o=v,++i;if(e.length>0){for(r=b.length;r>0&&b[r-1]=="";)--r;r<b.length&&(b.length=r)}return b}function Jo(){Jo=Z,_9e=new qp(20),N9e=new Ur((In(),Ih),_9e),wue=new Ur(oh,20),L9e=new Ur(t7e,3),Qbt=new Ur(l9,uj),GJ=new Ur(WP,$e(1)),Zbt=new Ur(Dae,(Bt(),!0)),E9e=VP,C9e=(_r(),$h),Bw=new Ur(Bb,C9e),Gbt=GC,Ubt=jae,Vbt=zb,Xbt=sy,Wbt=D3,Kbt=op,Jbt=_3,A9e=UC,Ybt=oy,I9e=(eye(),Hbt),D9e=Fbt,nmt=f9,imt=dV,tmt=ly,emt=a9,P9e=(U4(),fy),new Ur(Uk,P9e),T3=zbt,mue=Bbt,md=qbt,T9e=Rbt,M9e=$bt}function sYt(e){var t,n,i,r,o,a,d,b,v,x,T,A;if(d=Wi(e),T=Mnt(e),t=c(Se(e,(In(),$2t)),15).a,d){for(x=ls,i=new on((!d.a&&(d.a=new _e(_n,d,10,11)),d.a));i.e!=i.i.gc();)n=c(un(i),19),b=Mnt(n),b>x&&(x=b);for(v=p.Math.pow(4,t),x>v&&(v=x),A=(p.Math.log(v)-p.Math.log(1))/t,o=p.Math.exp(A),r=o,a=0;a<t;a++){if(T<r)return p.Math.pow(2,a);r*=o}return p.Math.pow(2,t-1)}else return 1}function oYt(e){var t,n,i,r,o,a,d,b,v,x,T;for(T=new PA,T.d=0,a=new U(e.b);a.a<a.c.c.length;)o=c(G(a),26),T.d+=o.a.c.length;for(i=0,r=0,T.a=ke(Hn,li,30,e.b.c.length,15,1),v=0,x=0,T.e=ke(Hn,li,30,T.d,15,1),n=new U(e.b);n.a<n.c.c.length;)for(t=c(G(n),26),t.p=i++,T.a[t.p]=r++,x=0,b=new U(t.a);b.a<b.c.c.length;)d=c(G(b),9),d.p=v++,T.e[d.p]=x++;return T.c=new SDe(T),T.b=Nd(T.d),SKt(T,e),T.f=Nd(T.d),jKt(T,e),T}function cYt(e){var t,n;if(t=qn(Se(e,(In(),Hk))),!dWe(t,e)&&!pa(e,cy)&&((!e.a&&(e.a=new _e(_n,e,10,11)),e.a).i!=0||Ze(Ye(Se(e,XP)))))if(t==null||wv(t).length==0){if(!dWe(Qt,e))throw n=Zn(Zn(new Lu("Unable to load default layout algorithm "),Qt)," for unconfigured node "),rG(e,n),V(new Uh(n.a))}else throw n=Zn(Zn(new Lu("Layout algorithm '"),t),"' not found for "),rG(e,n),V(new Uh(n.a))}function $ie(e){var t,n,i,r,o,a,d,b,v,x,T,A,L;if(n=e.i,t=e.n,e.b==0)for(L=n.c+t.b,A=n.b-t.b-t.c,a=e.a,b=0,x=a.length;b<x;++b)r=a[b],vq(r,L,A);else i=dZe(e,!1),vq(e.a[0],n.c+t.b,i[0]),vq(e.a[2],n.c+n.b-t.c-i[2],i[2]),T=n.b-t.b-t.c,i[0]>0&&(T-=i[0]+e.c,i[0]+=e.c),i[2]>0&&(T-=i[2]+e.c),i[1]=p.Math.max(i[1],T),vq(e.a[1],n.c+t.b+i[0]-(i[1]-T)/2,i[1]);for(o=e.a,d=0,v=o.length;d<v;++d)r=o[d],ae(r,338)&&c(r,338).hf()}function lYt(e){var t,n,i,r,o,a,d,b,v,x;for(x=ke(Hn,li,30,e.b.c.length+1,15,1),v=new Tr,i=0,o=new U(e.b);o.a<o.c.c.length;){for(r=c(G(o),26),x[i++]=v.a.gc(),b=new U(r.a);b.a<b.c.c.length;)for(a=c(G(b),9),n=new Ht(Xt(Fi(a).a.Jc(),new F));hn(n);)t=c(rn(n),17),v.a.yc(t,v);for(d=new U(r.a);d.a<d.c.c.length;)for(a=c(G(d),9),n=new Ht(Xt(vr(a).a.Jc(),new F));hn(n);)t=c(rn(n),17),v.a.Ac(t)!=null}return x}function qrt(e,t){var n,i,r,o;for(o=c(Je(e.n,e.n.c.length-1),211).d,e.p=p.Math.min(e.p,t.g),e.r=p.Math.max(e.r,o),e.g=p.Math.max(e.g,t.g+(e.b.c.length==1?0:e.i)),e.o=p.Math.min(e.o,t.f),e.e+=t.f+(e.b.c.length==1?0:e.i),e.f=p.Math.max(e.f,t.f),r=e.n.c.length>0?(e.n.c.length-1)*e.i:0,i=new U(e.n);i.a<i.c.c.length;)n=c(G(i),211),r+=n.a;e.d=r,e.a=e.e/e.b.c.length-e.i*((e.b.c.length-1)/e.b.c.length),N2e(e.j)}function Hrt(e,t){var n,i,r,o,a,d,b,v,x,T;if(x=Ye($(t,(Sf(),tdt))),x==null||(zt(x),x)){for(T=ke(Sl,Yf,30,t.e.c.length,16,1),a=WUt(t),r=new _i,v=new U(t.e);v.a<v.c.c.length;)d=c(G(v),156),n=hye(e,d,null,null,T,a),n&&(nc(n,t),rr(r,n,r.c.b,r.c));if(r.b>1)for(i=Pn(r,0);i.b!=i.d.c;)for(n=c(Dn(i),238),o=0,b=new U(n.e);b.a<b.c.c.length;)d=c(G(b),156),d.a=o++;return r}return mf(Y(K(iin,1),Sct,238,0,[t]))}function sd(e){var t,n,i,r,o,a,d;if(!e.g){if(d=new hh,t=oM,a=t.a.yc(e,t),a==null){for(i=new on(wo(e));i.e!=i.i.gc();)n=c(un(i),29),dr(d,sd(n));t.a.Ac(e)!=null,t.a.gc()==0}for(r=d.i,o=(!e.s&&(e.s=new _e(Ol,e,21,17)),new on(e.s));o.e!=o.i.gc();++r)w(c(un(o),454),r);dr(d,(!e.s&&(e.s=new _e(Ol,e,21,17)),e.s)),av(d),e.g=new qWe(e,d),e.i=c(d.g,258),e.i==null&&(e.i=Xae),e.p=null,iu(e).b&=-5}return e.g}function uYt(e,t){var n,i,r,o,a,d,b,v,x;if(n=t.ni(e.a),n&&(b=qn(Kf((!n.b&&(n.b=new wu((At(),zs),Zo,n)),n.b),"memberTypes")),b!=null)){for(v=new He,o=Sv(b,"\\w"),a=0,d=o.length;a<d;++a)r=o[a],i=r.lastIndexOf("#"),x=i==-1?b0e(e,t.hk(),r):i==0?mD(e,null,(en(1,r.length+1),r.substr(1))):mD(e,(hs(0,i,r.length),r.substr(0,i)),(en(i+1,r.length+1),r.substr(i+1))),ae(x,160)&&Qe(v,c(x,160));return v}return Mt(),Mt(),$s}function Bie(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I;if(i=e.i,n=e.n,e.b==0)t=hZe(e,!1),yq(e.a[0],i.d+n.d,t[0]),yq(e.a[2],i.d+i.a-n.a-t[2],t[2]),A=i.a-n.d-n.a,T=A,t[0]>0&&(t[0]+=e.c,T-=t[0]),t[2]>0&&(T-=t[2]+e.c),t[1]=p.Math.max(t[1],T),yq(e.a[1],i.d+n.d+t[0]-(t[1]-T)/2,t[1]);else for(I=i.d+n.d,L=i.a-n.d-n.a,a=e.a,b=0,x=a.length;b<x;++b)r=a[b],yq(r,I,L);for(o=e.a,d=0,v=o.length;d<v;++d)r=o[d],ae(r,338)&&c(r,338).jf()}function aYt(e,t,n,i,r){var o,a,d;if(n.f>=t.o&&n.f<=t.f||t.a*.5<=n.f&&t.a*1.5>=n.f){if(a=c(Je(t.n,t.n.c.length-1),211),a.e+a.d+n.g+r<=i&&(o=c(Je(t.n,t.n.c.length-1),211),o.f-e.f+n.f<=e.b||e.a.c.length==1))return Vwe(t,n),!0;if(t.s+n.g<=i&&t.t+t.d+n.f+r<=e.f+e.b)return Qe(t.b,n),d=c(Je(t.n,t.n.c.length-1),211),Qe(t.n,new qq(t.s,d.f+d.a+t.i,t.i)),C2e(c(Je(t.n,t.n.c.length-1),211),n),qrt(t,n),!0}return!1}function KQ(e,t,n,i){var r,o,a,d,b;if(b=rl(e.e.Ah(),t),r=c(e.g,123),Hs(),c(t,69).vk()){for(a=0;a<e.i;++a)if(o=r[a],b.$l(o.Jk())&&xi(o,n))return!0}else if(n!=null){for(d=0;d<e.i;++d)if(o=r[d],b.$l(o.Jk())&&xi(n,o.kd()))return!0;if(i){for(a=0;a<e.i;++a)if(o=r[a],b.$l(o.Jk())&&xe(n)===xe(LZ(e,c(o.kd(),57))))return!0}}else for(a=0;a<e.i;++a)if(o=r[a],b.$l(o.Jk())&&o.kd()==null)return!1;return!1}function fYt(e,t){var n,i,r,o,a,d;if(n=t.ni(e.a),n&&(d=qn(Kf((!n.b&&(n.b=new wu((At(),zs),Zo,n)),n.b),WG)),d!=null))switch(r=QF(d,pl(35)),i=t.ok(),r==-1?(a=KT(e,Bu(i)),o=d):r==0?(a=null,o=(en(1,d.length+1),d.substr(1))):(a=(hs(0,r,d.length),d.substr(0,r)),o=(en(r+1,d.length+1),d.substr(r+1))),Hm(ao(e,t))){case 2:case 3:return v$t(e,i,a,o);case 0:case 4:case 5:case 6:return y$t(e,i,a,o)}return null}function Qrt(e,t,n,i){var r,o,a,d;for(d=n,a=new U(t.a);a.a<a.c.c.length;){if(o=c(G(a),227),r=c(o.b,68),iw(e.b.c,r.b.c+r.b.b)<=0&&iw(r.b.c,e.b.c+e.b.b)<=0&&iw(e.b.d,r.b.d+r.b.a)<=0&&iw(r.b.d,e.b.d+e.b.a)<=0){if(iw(r.b.c,e.b.c+e.b.b)==0&&i.a<0||iw(r.b.c+r.b.b,e.b.c)==0&&i.a>0||iw(r.b.d,e.b.d+e.b.a)==0&&i.b<0||iw(r.b.d+r.b.a,e.b.d)==0&&i.b>0){d=0;break}}else d=p.Math.min(d,Ctt(e,r,i));d=p.Math.min(d,Qrt(e,o,d,i))}return d}function ixe(e,t){var n,i,r,o,a,d,b;if(e.b<2)throw V(new qt("The vector chain must contain at least a source and a target point."));for(r=(gn(e.b!=0),c(e.a.a.c,8)),I_(t,r.a,r.b),b=new k4((!t.a&&(t.a=new Nr(Yu,t,5)),t.a)),a=Pn(e,1);a.a<e.b-1;)d=c(Dn(a),8),b.e!=b.i.gc()?n=c(un(b),373):(n=(b0(),i=new O2,i),yYe(b,n)),xZ(n,d.a,d.b);for(;b.e!=b.i.gc();)un(b),Q7(b);o=(gn(e.b!=0),c(e.c.b.c,8)),P_(t,o.a,o.b)}function Grt(e,t,n,i){var r,o,a,d,b,v;if(v=rl(e.e.Ah(),t),a=c(e.g,123),R1(e.e,t)){if(t.Qi()&&(o=XS(e,t,i,ae(t,104)&&(c(t,20).Bb&Rs)!=0),o>=0&&o!=n))throw V(new qt(YL));for(r=0,b=0;b<e.i;++b)if(d=a[b],v.$l(d.Jk())){if(r==n)return c($x(e,b,(Hs(),c(t,69).vk()?c(i,76):Rd(t,i))),76);++r}throw V(new qc(DE+n+Sb+r))}else{for(b=0;b<e.i;++b)if(d=a[b],v.$l(d.Jk()))return Hs(),c(t,69).vk()?d:d.kd();return null}}function Urt(e,t){var n,i,r,o,a,d,b,v,x;for(n=0,r=new U((ht(0,e.c.length),c(e.c[0],108)).g.b.j);r.a<r.c.c.length;)i=c(G(r),12),i.p=n++;for(t==(Ue(),Kt)?Rr(e,new jl):Rr(e,new Oo),d=0,x=e.c.length-1;d<x;)a=(ht(d,e.c.length),c(e.c[d],108)),v=(ht(x,e.c.length),c(e.c[x],108)),o=t==Kt?a.c:a.a,b=t==Kt?v.a:v.c,Tg(a,t,(xf(),Bj),o),Tg(v,t,$j,b),++d,--x;d==x&&Tg((ht(d,e.c.length),c(e.c[d],108)),t,(xf(),Bv),null)}function hYt(e,t,n,i){var r,o,a,d,b,v;for(a=new Sst(e,t,n),b=new os(i,0),r=!1;b.b<b.d.gc();)d=(gn(b.b<b.d.gc()),c(b.d.Xb(b.c=b.b++),242)),d==t||d==n?nu(b):!r&&de(gh(d.g,d.d[0]).a)>de(gh(a.g,a.d[0]).a)?(gn(b.b>0),b.a.Xb(b.c=--b.b),H2(b,a),r=!0):d.e&&d.e.gc()>0&&(o=(!d.e&&(d.e=new He),d.e).Kc(t),v=(!d.e&&(d.e=new He),d.e).Kc(n),(o||v)&&((!d.e&&(d.e=new He),d.e).Ec(a),++a.c));r||It(i.c,a)}function dYt(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W;return T=e.a.i+e.a.g/2,A=e.a.i+e.a.g/2,I=t.i+t.g/2,Q=t.j+t.f/2,d=new ze(I,Q),v=c(Se(t,(In(),Qk)),8),v.a=v.a+T,v.b=v.b+A,o=(d.b-v.b)/(d.a-v.a),i=d.b-o*d.a,z=n.i+n.g/2,W=n.j+n.f/2,b=new ze(z,W),x=c(Se(n,Qk),8),x.a=x.a+T,x.b=x.b+A,a=(b.b-x.b)/(b.a-x.a),r=b.b-a*b.a,L=(i-r)/(a-o),v.a<L&&d.a<L||L<v.a&&L<d.a?!1:!(x.a<L&&b.a<L||L<x.a&&L<b.a)}function gYt(e,t,n){var i,r,o,a;for(n.Tg(dlt,1),e.a=t,e.c=new He,o=p.Math.max(t.a.c.length,c($(t,(Ie(),ep)),15).a);a=new FJe(e.c,e.d,e.b),RJt(a,t),Iqt(a,t),e.d.b!=0;){for(e.rg(o,o*c($(t,yP),15).a),r=new U(e.c);r.a<r.c.c.length;)i=c(G(r),17),Bg(i,!1),Me(i.c.i,(Ge(),dC),$e(c($(i.c.i,dC),15).a+1)),Me(t,Mk,(Bt(),!0));xu(e.d),cc(e.b),e.c.c.length=0}n.Ug(),n.ah("Execution Time: "+n.Vg())}function Jrt(e,t,n,i){var r,o,a,d,b,v;if(!tv(t)){if(v=n.dh((ae(t,18)?c(t,18).gc():Jf(t.Jc()))/e.a|0),v.Tg(xlt,1),b=new nK,d=0,i==(_r(),po)||i==vo)for(a=t.Jc();a.Ob();)r=c(a.Pb(),41),b=wa(Y(K(Ea,1),Pt,22,0,[b,new w1(r)])),d<r.f.a&&(d=r.f.a);else for(a=t.Jc();a.Ob();)r=c(a.Pb(),41),b=wa(Y(K(Ea,1),Pt,22,0,[b,new w1(r)])),d<r.f.b&&(d=r.f.b);for(o=t.Jc();o.Ob();)r=c(o.Pb(),41),Me(r,(Ii(),QJ),d);v.Ug(),Jrt(e,b,n,i)}}function rxe(e,t,n){var i,r,o,a,d,b,v,x;this.a=e,this.b=t,this.c=n,this.e=mf(Y(K(ein,1),Pt,180,0,[new d4(e,t),new d4(t,n),new d4(n,e)])),this.f=mf(Y(K(Wr,1),Fe,8,0,[e,t,n])),this.d=(i=Qr(As(this.b),this.a),r=Qr(As(this.c),this.a),o=Qr(As(this.c),this.b),a=i.a*(this.a.a+this.b.a)+i.b*(this.a.b+this.b.b),d=r.a*(this.a.a+this.c.a)+r.b*(this.a.b+this.c.b),b=2*(i.a*o.b-i.b*o.a),v=(r.b*a-i.b*d)/b,x=(i.a*d-r.a*a)/b,new ze(v,x))}function Bg(e,t){var n,i,r,o,a,d;for(o=e.c,a=e.d,Os(e,null),ss(e,null),t&&Ze(Ye($(a,(Ie(),gle))))?Os(e,Xye(a.i,(Gs(),Yc),(Ue(),nn))):Os(e,a),t&&Ze(Ye($(o,(Ie(),ble))))?ss(e,Xye(o.i,(Gs(),Vl),(Ue(),Yt))):ss(e,o),i=new U(e.b);i.a<i.c.c.length;)n=c(G(i),70),r=c($(n,(Ge(),bd)),281),r==(yh(),d9)?Me(n,bd,uy):r==uy&&Me(n,bd,d9);d=Ze(Ye($(e,(Ie(),Ug)))),Me(e,Ug,(Bt(),!d)),e.a=wwe(e.a)}function pYt(e,t){var n,i,r,o,a;return n=LS(c($(t,(Jo(),Bw)),87)),e.b.b==0?null:(a=c(Hl(Qc(new Tt(null,new Et(e.b,16)),new Es),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[(ya(),wl)]))),16),o=c(Hl(mi(new Tt(null,new Et(t.b,16)),new TDe(a)),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[wl]))),16),r=be(mu(J2(Qc(o.Mc(),new EDe(n)),(Qm(),Qm(),rce)))),i=c(mu(_1(mi(o.Mc(),new h$e(n,r)))),41),i)}function bYt(e,t){var n,i,r,o,a,d;if(Mt(),Rr(t,new Yde(!1)),n=new He,i=new He,e.a)Ten(t,n,i);else{for(Qe(n,c(Je(t,t.c.length-1),19)),a=0,d=0,o=1;o<t.c.length;o++)a<=d?(Qe(n,c(Je(t,t.c.length-1-o),19)),a+=c(Je(t,t.c.length-1-o),19).lh()):(Qe(i,c(Je(t,t.c.length-1-o),19)),d+=c(Je(t,t.c.length-1-o),19).lh());U7(n)}for(Rr(i,new Yde(!0)),Or(n,i),r=0;r<t.c.length;r++)ku(t,r,(ht(r,n.c.length),c(n.c[r],19)))}function mYt(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q;n=Im(new Bp,e.f),v=e.i[t.c.i.p],L=e.i[t.d.i.p],b=t.c,A=t.d,d=b.a.b,T=A.a.b,v.b||(d+=b.n.b),L.b||(T+=A.n.b),x=ks(p.Math.max(0,d-T)),a=ks(p.Math.max(0,T-d)),I=(z=p.Math.max(1,c($(t,(Ge(),$k)),15).a),Q=Dbe(t.c.i.k,t.d.i.k),z*Q),r=Of(uf(ff(af(hf(new Ra,I),a),n),c(Ut(e.k,t.c),126))),o=Of(uf(ff(af(hf(new Ra,I),x),n),c(Ut(e.k,t.d),126))),i=new s$e(r,o),e.c[t.p]=i}function wYt(e,t){var n,i,r,o,a,d,b,v,x,T;for(n=new vu(e.c,-100,new vu(0,e.a,e.b)),i=new vu(t.c,-100,new vu(0,t.a,t.b)),a=n.c-i.c,b=n,v=i,x=b.c,T=v.c;b&&v.b;)v.b.a>b.a?(r=v.b.c,o=v.b.a-v.a,d=x-T-(b.a-v.a)*r/o,a=p.Math.max(a,d),b=b.b,b&&(x+=b.c)):(v=v.b,T+=v.c);for(b=n,v=i,x=b.c,T=v.c;v&&b.b;)b.b.a>v.a?(r=b.b.c,o=b.b.a-b.a,d=x-T+(v.a-b.a)*r/o,a=p.Math.max(a,d),v=v.b,v&&(T+=v.c)):(b=b.b,x+=b.c);return a}function vYt(e,t,n){var i,r,o,a,d,b;for(i=0,o=new on((!e.a&&(e.a=new _e(_n,e,10,11)),e.a));o.e!=o.i.gc();)r=c(un(o),19),a="",(!r.n&&(r.n=new _e(zo,r,1,7)),r.n).i==0||(a=c(ce((!r.n&&(r.n=new _e(zo,r,1,7)),r.n),0),158).a),d=new IBe(a),nc(d,r),Me(d,(M0(),jk),r),d.a=i++,d.d.a=r.i+r.g/2,d.d.b=r.j+r.f/2,d.e.a=p.Math.max(r.g,1),d.e.b=p.Math.max(r.f,1),Qe(t.e,d),bl(n.f,r,d),b=c(Se(r,(Sf(),lOe)),103),b==(es(),up)&&(b=Bh)}function Vrt(e){var t,n,i;if(wx(c($(e,(Ge(),ar)),103)))for(n=new U(e.j);n.a<n.c.c.length;)t=c(G(n),12),t.j==(Ue(),Bo)&&(i=c($(t,(Ie(),Jl)),9),i?$r(t,c($(i,Yo),64)):t.e.c.length-t.g.c.length<0?$r(t,nn):$r(t,Yt));else{for(n=new U(e.j);n.a<n.c.c.length;)t=c(G(n),12),i=c($(t,(Ie(),Jl)),9),i?$r(t,c($(i,Yo),64)):t.e.c.length-t.g.c.length<0?$r(t,(Ue(),nn)):$r(t,(Ue(),Yt));Me(e,ar,(es(),p9))}}function yYt(e,t){var n,i,r,o,a,d,b;t.Tg("Layer constraint postprocessing",1),b=e.b,b.c.length!=0&&(i=(ht(0,b.c.length),c(b.c[0],26)),a=c(Je(b,b.c.length-1),26),n=new dc(e),o=new dc(e),sKt(e,i,a,n,o),n.a.c.length==0||(ev(0,b.c.length),ET(b.c,0,n)),o.a.c.length==0||It(b.c,o)),ki(e,(Ie(),dle))&&(r=new dc(e),d=new dc(e),XXt(e,r,d),r.a.c.length==0||(ev(0,b.c.length),ET(b.c,0,r)),d.a.c.length==0||It(b.c,d)),t.Ug()}function mL(e){var t,n,i;switch(e){case 91:case 93:case 45:case 94:case 44:case 92:i="\\"+String.fromCharCode(e&Dr);break;case 12:i="\\f";break;case 10:i="\\n";break;case 13:i="\\r";break;case 9:i="\\t";break;case 27:i="\\e";break;default:e<32?(n=(t=e>>>0,"0"+t.toString(16)),i="\\x"+Fa(n,n.length-2,n.length)):e>=Rs?(n=(t=e>>>0,"0"+t.toString(16)),i="\\v"+Fa(n,n.length-6,n.length)):i=""+String.fromCharCode(e&Dr)}return i}function Xrt(e,t){var n,i,r,o,a,d,b,v,x;for(o=new U(e.b);o.a<o.c.c.length;)for(r=c(G(o),26),d=new U(r.a);d.a<d.c.c.length;)for(a=c(G(d),9),a.k==(Jt(),ac)&&(b=(v=c(rn(new Ht(Xt(vr(a).a.Jc(),new F))),17),x=c(rn(new Ht(Xt(Fi(a).a.Jc(),new F))),17),!Ze(Ye($(v,(Ie(),Ug))))||!Ze(Ye($(x,Ug)))?t:PWe(t)),ck(a,b)),i=new Ht(Xt(Fi(a).a.Jc(),new F));hn(i);)n=c(rn(i),17),b=Ze(Ye($(n,(Ie(),Ug))))?PWe(t):t,MWe(n,b)}function sxe(e){var t,n,i,r,o,a;for(this.e=new He,this.a=new He,n=e.b-1;n<3;n++)z6(e,0,c(bc(e,0),8));if(e.b<4)throw V(new qt("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,UJt(this,e.b+this.b-1),a=new He,o=new U(this.e),t=0;t<this.b-1;t++)Qe(a,be(G(o)));for(r=Pn(e,0);r.b!=r.d.c;)i=c(Dn(r),8),Qe(a,be(G(o))),Qe(this.a,new TQe(i,a)),ht(0,a.c.length),a.c.splice(0,1)}function Wrt(e,t,n){var i,r,o,a;return e.Nj()?(r=null,o=e.Oj(),i=e.Gj(1,a=vte(e,t,n),n,t,o),e.Kj()&&!(e.Wi()&&a!=null?xi(a,n):xe(a)===xe(n))?(a!=null&&(r=e.Mj(a,r)),r=e.Lj(n,r),e.Rj()&&(r=e.Uj(a,n,r)),r?(r.lj(i),r.mj()):e.Hj(i)):(e.Rj()&&(r=e.Uj(a,n,r)),r?(r.lj(i),r.mj()):e.Hj(i)),a):(a=vte(e,t,n),e.Kj()&&!(e.Wi()&&a!=null?xi(a,n):xe(a)===xe(n))&&(r=null,a!=null&&(r=e.Mj(a,null)),r=e.Lj(n,r),r&&r.mj()),a)}function xYt(e,t){var n,i,r,o,a;if(t.Tg("Path-Like Graph Wrapping",1),e.b.c.length==0){t.Ug();return}if(r=new iye(e),a=(r.i==null&&(r.i=Vme(r,new qO)),de(r.i)*r.f),n=a/(r.i==null&&(r.i=Vme(r,new qO)),de(r.i)),r.b>n){t.Ug();return}switch(c($(e,(Ge(),zle)),351).g){case 2:o=new HO;break;case 0:o=new Np;break;default:o=new CA}if(i=o.mg(e,r),!o.ng())switch(c($(e,MJ),352).g){case 2:i=Mtt(r,i);break;case 1:i=pet(r,i)}bZt(e,r,i),t.Ug()}function rE(e,t){var n,i,r,o,a,d,b,v;t%=24,e.q.getHours()!=t&&(i=new p.Date(e.q.getTime()),i.setDate(i.getDate()+1),d=e.q.getTimezoneOffset()-i.getTimezoneOffset(),d>0&&(b=d/60|0,v=d%60,r=e.q.getDate(),n=e.q.getHours(),n+b>=24&&++r,o=new p.Date(e.q.getFullYear(),e.q.getMonth(),r,t+b,e.q.getMinutes()+v,e.q.getSeconds(),e.q.getMilliseconds()),e.q.setTime(o.getTime()))),a=e.q.getTime(),e.q.setTime(a+36e5),e.q.getHours()!=t&&e.q.setTime(a)}function kYt(e,t){var n,i,r,o;if(V_t(e.d,e.e),e.c.a.$b(),de(be($(t.j,(Ge(),SP))))!=0||de(be($(t.j,SP)))!=0)for(n=e3,xe($(t.j,Kd))!==xe((P1(),np))&&Me(t.j,(Ie(),Z0),(Bt(),!0)),o=c($(t.j,mC),15).a,r=0;r<o&&(i=PYt(e,t),!(i<n&&(n=i,UXe(e),n==0)));r++);else for(n=gi,xe($(t.j,Kd))!==xe((P1(),np))&&Me(t.j,(Ie(),Z0),(Bt(),!0)),o=c($(t.j,mC),15).a,r=0;r<o&&(i=tst(e,t),!(i<n&&(n=i,UXe(e),n==0)));r++);}function OYt(e,t){var n,i,r,o,a,d,b,v;for(a=new He,d=0,n=0,b=0;d<t.c.length-1&&n<e.gc();){for(i=c(e.Xb(n),15).a+b;(ht(d+1,t.c.length),c(t.c[d+1],15)).a<i;)++d;for(v=0,o=i-(ht(d,t.c.length),c(t.c[d],15)).a,r=(ht(d+1,t.c.length),c(t.c[d+1],15)).a-i,o>r&&++v,Qe(a,(ht(d+v,t.c.length),c(t.c[d+v],15))),b+=(ht(d+v,t.c.length),c(t.c[d+v],15)).a-i,++n;n<e.gc()&&c(e.Xb(n),15).a+b<=(ht(d+v,t.c.length),c(t.c[d+v],15)).a;)++n;d+=1+v}return a}function SYt(e,t){var n,i,r,o,a;for(a=new Ht(Xt(vr(t).a.Jc(),new F));hn(a);)if(o=c(rn(a),17),e.f.b==0?(r=o.c.i.k==(Jt(),ur)&&!!o.c.i.c&&o.c.i.c.p==e.c,hn(new Ht(Xt(vr(o.c.i).a.Jc(),new F)))?(n=c(rn(new Ht(Xt(vr(o.c.i).a.Jc(),new F))),17).c.i.c,i=o.c.i.k==ac&&!!n&&n.p==e.c):i=!1):(r=o.c.i.k==(Jt(),ur)&&o.c.i.p==e.c,i=o.c.i.k==ac&&c(rn(new Ht(Xt(vr(o.c.i).a.Jc(),new F))),17).c.i.p==e.c),r||i)return!0;return!1}function jYt(e,t,n,i,r){var o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le;for(A=new He,W=Zq(i),Q=t*e.a,T=0,I=0,o=new Tr,a=new Tr,d=new He,re=0,le=0,L=0,z=0,v=0,x=0;W.a.gc()!=0;)b=_Bt(W,r,a),b&&(W.a.Ac(b)!=null,It(d.c,b),o.a.yc(b,o),I=e.f[b.p],re+=e.e[b.p]-I*e.b,T=e.c[b.p],le+=T*e.b,x+=I*e.b,z+=e.e[b.p]),(!b||W.a.gc()==0||re>=Q&&e.e[b.p]>I*e.b||le>=n*Q)&&(It(A.c,d),d=new He,Ss(a,o),o.a.$b(),v-=x,L=p.Math.max(L,v*e.b+z),v+=le,re=le,le=0,x=0,z=0);return new Is(L,A)}function zie(e){var t,n,i,r,o,a,d;if(!e.d){if(d=new vB,t=oM,o=t.a.yc(e,t),o==null){for(i=new on(wo(e));i.e!=i.i.gc();)n=c(un(i),29),dr(d,zie(n));t.a.Ac(e)!=null,t.a.gc()==0}for(a=d.i,r=(!e.q&&(e.q=new _e(tf,e,11,10)),new on(e.q));r.e!=r.i.gc();++a)c(un(r),408);dr(d,(!e.q&&(e.q=new _e(tf,e,11,10)),e.q)),av(d),e.d=new bx((c(ce(De((O0(),Gt).o),9),20),d.i),d.g),e.e=c(d.g,685),e.e==null&&(e.e=Jvt),iu(e).b&=-17}return e.d}function XS(e,t,n,i){var r,o,a,d,b,v;if(v=rl(e.e.Ah(),t),b=0,r=c(e.g,123),Hs(),c(t,69).vk()){for(a=0;a<e.i;++a)if(o=r[a],v.$l(o.Jk())){if(xi(o,n))return b;++b}}else if(n!=null){for(d=0;d<e.i;++d)if(o=r[d],v.$l(o.Jk())){if(xi(n,o.kd()))return b;++b}if(i){for(b=0,a=0;a<e.i;++a)if(o=r[a],v.$l(o.Jk())){if(xe(n)===xe(LZ(e,c(o.kd(),57))))return b;++b}}}else for(a=0;a<e.i;++a)if(o=r[a],v.$l(o.Jk())){if(o.kd()==null)return b;++b}return-1}function TYt(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I,z;if(n.Uh(t)&&(x=(L=t,L?c(i,52).di(L):null),x))if(z=n.Kh(t,e.a),I=t.t,I>1||I==-1)if(T=c(z,72),A=c(x,72),T.dc())A.$b();else for(a=!!Qs(t),o=0,d=e.a?T.Jc():T.Gi();d.Ob();)v=c(d.Pb(),57),r=c(vh(e,v),57),r?(a?(b=A.bd(r),b==-1?A.Ei(o,r):o!=b&&A.Si(o,r)):A.Ei(o,r),++o):e.b&&!a&&(A.Ei(o,v),++o);else z==null?x.Wb(null):(r=vh(e,z),r==null?e.b&&!Qs(t)&&x.Wb(z):x.Wb(r))}function EYt(e,t){var n,i,r,o,a,d,b,v;for(n=new LO,r=new Ht(Xt(vr(t).a.Jc(),new F));hn(r);)if(i=c(rn(r),17),!ys(i)&&(d=i.c.i,uve(d,NU))){if(v=Nye(e,d,NU,AU),v==-1)continue;n.b=p.Math.max(n.b,v),!n.a&&(n.a=new He),Qe(n.a,d)}for(a=new Ht(Xt(Fi(t).a.Jc(),new F));hn(a);)if(o=c(rn(a),17),!ys(o)&&(b=o.d.i,uve(b,AU))){if(v=Nye(e,b,AU,NU),v==-1)continue;n.d=p.Math.max(n.d,v),!n.c&&(n.c=new He),Qe(n.c,b)}return n}function CYt(e,t,n,i){var r,o,a,d,b,v,x;if(n.d.i!=t.i){for(r=new Oh(e),pu(r,(Jt(),Cr)),Me(r,(Ie(),Si),n),Me(r,(Ge(),ar),(es(),kc)),It(i.c,r),a=new mc,Do(a,r),$r(a,(Ue(),Yt)),d=new mc,Do(d,r),$r(d,nn),x=n.d,ss(n,a),o=new Gm,nc(o,n),Me(o,go,null),Os(o,d),ss(o,x),v=new os(n.b,0);v.b<v.d.gc();)b=(gn(v.b<v.d.gc()),c(v.d.Xb(v.c=v.b++),70)),xe($(b,bd))===xe((yh(),uy))&&(Me(b,Ak,n),nu(v),Qe(o.b,b));knt(r,a,d)}}function MYt(e,t,n,i){var r,o,a,d,b,v,x;if(n.c.i!=t.i)for(r=new Oh(e),pu(r,(Jt(),Cr)),Me(r,(Ie(),Si),n),Me(r,(Ge(),ar),(es(),kc)),It(i.c,r),a=new mc,Do(a,r),$r(a,(Ue(),Yt)),d=new mc,Do(d,r),$r(d,nn),ss(n,a),o=new Gm,nc(o,n),Me(o,go,null),Os(o,d),ss(o,t),knt(r,a,d),v=new os(n.b,0);v.b<v.d.gc();)b=(gn(v.b<v.d.gc()),c(v.d.Xb(v.c=v.b++),70)),x=c($(b,bd),281),x==(yh(),uy)&&(ki(b,Ak)||Me(b,Ak,n),nu(v),Qe(o.b,b))}function Krt(e){US();var t,n,i,r;if(t=ks(e),e<GE.length)return GE[t];if(e<=50)return lL((rd(),ice),t);if(e<=Fg)return R4(lL(kk[1],t),t);if(e>1e6)throw V(new Qz("power of ten too big"));if(e<=gi)return R4(lL(kk[1],t),t);for(i=lL(kk[1],gi),r=i,n=tc(e-gi),t=ks(e%gi);_c(n,gi)>0;)r=Cx(r,i),n=Ha(n,gi);for(r=Cx(r,lL(kk[1],t)),r=R4(r,gi),n=tc(e-gi);_c(n,gi)>0;)r=R4(r,gi),n=Ha(n,gi);return r=R4(r,t),r}function Yrt(e){var t,n,i,r,o,a,d,b,v,x;for(b=new U(e.a);b.a<b.c.c.length;)if(d=c(G(b),9),d.k==(Jt(),Ar)&&(r=c($(d,(Ie(),Yo)),64),r==(Ue(),nn)||r==Yt))for(i=new Ht(Xt(td(d).a.Jc(),new F));hn(i);)n=c(rn(i),17),t=n.a,t.b!=0&&(v=n.c,v.i==d&&(o=(gn(t.b!=0),c(t.a.a.c,8)),o.b=Po(Y(K(Wr,1),Fe,8,0,[v.i.n,v.n,v.a])).b),x=n.d,x.i==d&&(a=(gn(t.b!=0),c(t.c.b.c,8)),a.b=Po(Y(K(Wr,1),Fe,8,0,[x.i.n,x.n,x.a])).b))}function sE(e,t,n,i){var r,o,a;if(this.j=new He,this.k=new He,this.b=new He,this.c=new He,this.e=new w4,this.i=new tu,this.f=new cY,this.d=new He,this.g=new He,Qe(this.b,e),Qe(this.b,t),this.e.c=p.Math.min(e.a,t.a),this.e.d=p.Math.min(e.b,t.b),this.e.b=p.Math.abs(e.a-t.a),this.e.a=p.Math.abs(e.b-t.b),r=c($(i,(Ge(),go)),79),r)for(a=Pn(r,0);a.b!=a.d.c;)o=c(Dn(a),8),kme(o.a,e.a)&&ei(this.i,o);n&&Qe(this.j,n),Qe(this.k,i)}function AYt(e,t,n,i){var r,o,a,d,b,v,x;for(d=-1,x=new U(e);x.a<x.c.c.length;)v=c(G(x),117),v.g=d--,r=Gn(Jq(Nq(mi(new Tt(null,new Et(v.f,16)),new IA),new RA)).d),o=Gn(Jq(Nq(mi(new Tt(null,new Et(v.k,16)),new WO),new KO)).d),a=r,b=o,i||(a=Gn(Jq(Nq(new Tt(null,new Et(v.f,16)),new s$)).d),b=Gn(Jq(Nq(new Tt(null,new Et(v.k,16)),new v2)).d)),v.d=a,v.a=r,v.i=b,v.b=o,b==0?rr(n,v,n.c.b,n.c):a==0&&rr(t,v,t.c.b,t.c)}function ck(e,t){var n,i,r,o,a,d;if(e.k==(Jt(),ac)&&(n=e.k==ac&&!D6(mi(c($(e,(Ie(),rC)),16).Mc(),new S6(new zy))).zd((Fp(),Ok))?(qu(),ZP):t,Me(e,(Ie(),_k),n),n!=(qu(),cp)))for(i=c($(e,Si),17),d=de(be($(i,(Ge(),Jg)))),a=0,n==Yd?a=e.o.b-p.Math.ceil(d/2):n==ZP&&(a=p.Math.ceil(e.o.b-de(be($(Vr(e),k3)))-d)/2,e.o.b-=de(be($(Vr(e),k3))),e.o.b-=d),o=new U(e.j);o.a<o.c.c.length;)r=c(G(o),12),r.n.b=a}function Zrt(e,t,n){var i,r,o,a,d,b,v,x,T;for(r=!0,a=new U(e.b);a.a<a.c.c.length;){for(o=c(G(a),26),v=Gr,x=null,b=new U(o.a);b.a<b.c.c.length;)if(d=c(G(b),9),T=de(t.p[d.p])+de(t.d[d.p])-d.d.d,i=de(t.p[d.p])+de(t.d[d.p])+d.o.b+d.d.a,T>v&&i>v)x=d,v=de(t.p[d.p])+de(t.d[d.p])+d.o.b+d.d.a;else{r=!1,n.$g()&&n.ah("bk node placement breaks on "+d+" which should have been after "+x);break}if(!r)break}return n.$g()&&n.ah(t+" is feasible: "+r),r}function est(e,t){var n,i;i=c(Se(t,(In(),V1)),125),n=new vu(0,t.j+t.f+i.a+e.b/2,new vu(t.g/2,t.j+t.f+i.a+e.b/2,null)),ri(t,(zd(),$b),new vu(-i.b-e.b/2+t.g/2,t.j-i.d-e.b/2,new vu(-t.g/2,t.j-i.d,n))),n=new vu(0,t.j+t.f+i.a,new vu(-t.g/2,t.j+t.f+i.a+e.b/2,null)),ri(t,ny,new vu(t.g/2+i.c+e.b/2,t.j-i.d,new vu(t.g/2,t.j-i.d-e.b/2,n))),ri(t,o9,t.i-i.b),ri(t,s9,t.i+i.c+t.g),ri(t,$wt,t.j-i.d),ri(t,rae,t.j+i.a+t.f),ri(t,wd,c(Se(t,$b),107).b.b.a)}function oxe(e,t,n,i){var r,o,a,d,b,v,x,T,A;if(o=new Oh(e),pu(o,(Jt(),Ic)),Me(o,(Ge(),ar),(es(),kc)),r=0,t){for(a=new mc,Me(a,(Ie(),Si),t),Me(o,Si,t.i),$r(a,(Ue(),Yt)),Do(a,o),A=ed(t.e),v=A,x=0,T=v.length;x<T;++x)b=v[x],ss(b,a);Me(t,Jl,o),++r}if(n){for(d=new mc,Me(o,(Ie(),Si),n.i),Me(d,Si,n),$r(d,(Ue(),nn)),Do(d,o),A=ed(n.g),v=A,x=0,T=v.length;x<T;++x)b=v[x],Os(b,d);Me(n,Jl,o),++r}return Me(o,(Ie(),uJ),$e(r)),It(i.c,o),o}function NYt(e){var t,n,i,r,o,a,d,b,v,x,T,A,L;for(n=(v=new m1(e.c.b).a.vc().Jc(),new N2(v));n.a.Ob();)t=(d=c(n.a.Pb(),45),c(d.kd(),144)),r=t.a,r==null&&(r=""),i=q7t(e.c,r),!i&&r.length==0&&(i=hBt(e)),i&&!hv(i.c,t,!1)&&ei(i.c,t);for(a=Pn(e.a,0);a.b!=a.d.c;)o=c(Dn(a),478),x=nte(e.c,o.a),L=nte(e.c,o.b),x&&L&&ei(x.c,new Is(L,o.c));for(xu(e.a),A=Pn(e.b,0);A.b!=A.d.c;)T=c(Dn(A),478),t=F7t(e.c,T.a),b=nte(e.c,T.b),t&&b&&j8t(t,b,T.c);xu(e.b)}function _Yt(e,t,n){var i,r,o,a,d,b,v,x,T;for(a=new KZe,v=Y(K(Hn,1),li,30,15,[0]),r=-1,o=0,i=0,b=0;b<e.b.c.length;++b)if(x=c(Je(e.b,b),439),x.b>0){if(r<0&&x.a&&(r=b,o=v[0],i=0),r>=0){if(d=x.b,b==r&&(d-=i++,d==0))return 0;if(!rot(t,v,x,d,a)){b=r-1,v[0]=o;continue}}else if(r=-1,!rot(t,v,x,0,a))return 0}else{if(r=-1,ws(x.c,0)==32){if(T=v[0],SVe(t,v),v[0]>T)continue}else if(YNt(t,x.c,v[0])){v[0]+=x.c.length;continue}return 0}return ktn(a,n)?v[0]:0}function DYt(e,t,n){var i,r,o,a,d,b,v,x,T,A;for(x=new kq(new YNe(n)),d=ke(Sl,Yf,30,e.f.e.c.length,16,1),Dpe(d,d.length),n[t.a]=0,v=new U(e.f.e);v.a<v.c.c.length;)b=c(G(v),156),b.a!=t.a&&(n[b.a]=gi),T4(BS(x,b),sj);for(;x.b.c.length!=0;)for(T=c(kte(x),156),d[T.a]=!0,o=lze(new AY(e.b,T),0);o.c;)r=c(vme(o),292),A=sqt(r,T),!d[A.a]&&(ki(r,(YD(),MU))?a=de(be($(r,MU))):a=e.c,i=n[T.a]+a,i<n[A.a]&&(n[A.a]=i,FXe(x,A),T4(BS(x,A),sj)))}function cxe(e){var t,n,i,r,o,a,d,b;n=Ze(Ye($(e,(Sf(),Jht)))),o=e.a.c.d,d=e.a.d.d,n?(a=y1(Qr(new ze(d.a,d.b),o),.5),b=y1(As(e.e),.5),t=Qr(Oi(new ze(o.a,o.b),a),b),h0e(e.d,t)):(r=de(be($(e.a,ndt))),i=e.d,o.a>=d.a?o.b>=d.b?(i.a=d.a+(o.a-d.a)/2+r,i.b=d.b+(o.b-d.b)/2-r-e.e.b):(i.a=d.a+(o.a-d.a)/2+r,i.b=o.b+(d.b-o.b)/2+r):o.b>=d.b?(i.a=o.a+(d.a-o.a)/2+r,i.b=d.b+(o.b-d.b)/2+r):(i.a=o.a+(d.a-o.a)/2+r,i.b=o.b+(d.b-o.b)/2-r-e.e.b))}function oE(e){var t,n,i,r,o,a,d,b;if(!e.f){if(b=new Lp,d=new Lp,t=oM,a=t.a.yc(e,t),a==null){for(o=new on(wo(e));o.e!=o.i.gc();)r=c(un(o),29),dr(b,oE(r));t.a.Ac(e)!=null,t.a.gc()==0}for(i=(!e.s&&(e.s=new _e(Ol,e,21,17)),new on(e.s));i.e!=i.i.gc();)n=c(un(i),182),ae(n,104)&&Ln(d,c(n,20));av(d),e.r=new YFe(e,(c(ce(De((O0(),Gt).o),6),20),d.i),d.g),dr(b,e.r),av(b),e.f=new bx((c(ce(De(Gt.o),5),20),b.i),b.g),iu(e).b&=-3}return e.f}function YQ(){YQ=Z,J7e=Y(K(_a,1),cd,30,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),Ovt=new RegExp(`[ 	
\r\f]+`);try{iM=Y(K(vin,1),Pt,2093,0,[new l_(($ge(),rQ("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",G_((Fz(),Fz(),qE))))),new l_(rQ("yyyy-MM-dd'T'HH:mm:ss'.'SSS",G_(qE))),new l_(rQ("yyyy-MM-dd'T'HH:mm:ss",G_(qE))),new l_(rQ("yyyy-MM-dd'T'HH:mm",G_(qE))),new l_(rQ("yyyy-MM-dd",G_(qE)))])}catch(e){if(e=kr(e),!ae(e,81))throw V(e)}}function LYt(e){var t,n,i,r,o,a,d;for(n=null,d=null,i=c($(e.b,(Ge(),Mle)),349),i==(C7(),_P)&&(n=new He,d=new He),a=new U(e.d);a.a<a.c.c.length;)if(o=c(G(a),108),r=o.i,!!r)switch(o.e.g){case 0:t=c(d7(new h4(o.b)),64),i==_P&&t==(Ue(),Kt)?It(n.c,o):i==_P&&t==(Ue(),mn)?It(d.c,o):oJt(o,t);break;case 1:AVt(o);break;case 2:case 3:JWt(o);break;case 4:zGt(o)}n&&(n.c.length==0||Urt(n,(Ue(),Kt)),d.c.length==0||Urt(d,(Ue(),mn)))}function PYt(e,t){var n,i,r,o;if(r=cu(e.d,1)!=0,i=Jye(e,t),i==0&&Ze(Ye($(t.j,(Ie(),Z0)))))return 0;!Ze(Ye($(t.j,(Ie(),Z0))))&&!Ze(Ye($(t.j,m3)))||xe($(t.j,(Ge(),Kd)))===xe((P1(),np))?t.c.kg(t.e,r):r=Ze(Ye($(t.j,Z0))),dL(e,t,r,!0),Ze(Ye($(t.j,m3)))&&Me(t.j,m3,(Bt(),!1)),Ze(Ye($(t.j,Z0)))&&(Me(t.j,Z0,(Bt(),!1)),Me(t.j,m3,!0)),n=Jye(e,t);do{if(Ume(e),n==0)return 0;r=!r,o=n,dL(e,t,r,!1),n=Jye(e,t)}while(o>n);return o}function tst(e,t){var n,i,r,o;if(r=cu(e.d,1)!=0,i=DQ(e,t),i==0&&Ze(Ye($(t.j,(Ie(),Z0)))))return 0;!Ze(Ye($(t.j,(Ie(),Z0))))&&!Ze(Ye($(t.j,m3)))||xe($(t.j,(Ge(),Kd)))===xe((P1(),np))?t.c.kg(t.e,r):r=Ze(Ye($(t.j,Z0))),dL(e,t,r,!0),Ze(Ye($(t.j,m3)))&&Me(t.j,m3,(Bt(),!1)),Ze(Ye($(t.j,Z0)))&&(Me(t.j,Z0,(Bt(),!1)),Me(t.j,m3,!0)),n=DQ(e,t);do{if(Ume(e),n==0)return 0;r=!r,o=n,dL(e,t,r,!1),n=DQ(e,t)}while(o>n);return o}function IYt(e,t,n){var i,r,o,a,d;if(i=c($(e,(Ge(),Tle)),24),n.a>t.a&&(i.Gc((gb(),FC))?e.c.a+=(n.a-t.a)/2:i.Gc(qC)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(i.Gc((gb(),QC))?e.c.b+=(n.b-t.b)/2:i.Gc(HC)&&(e.c.b+=n.b-t.b)),c($(e,(Ie(),Rc)),24).Gc((Us(),Ca))&&(n.a>t.a||n.b>t.b))for(d=new U(e.a);d.a<d.c.c.length;)a=c(G(d),9),a.k==(Jt(),Ar)&&(r=c($(a,Yo),64),r==(Ue(),nn)?a.n.a+=n.a-t.a:r==mn&&(a.n.b+=n.b-t.b));o=e.d,e.f.a=n.a-o.b-o.c,e.f.b=n.b-o.d-o.a}function RYt(e,t,n){var i,r,o,a,d;if(i=c($(e,(Ge(),Tle)),24),n.a>t.a&&(i.Gc((gb(),FC))?e.c.a+=(n.a-t.a)/2:i.Gc(qC)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(i.Gc((gb(),QC))?e.c.b+=(n.b-t.b)/2:i.Gc(HC)&&(e.c.b+=n.b-t.b)),c($(e,(Ie(),Rc)),24).Gc((Us(),Ca))&&(n.a>t.a||n.b>t.b))for(a=new U(e.a);a.a<a.c.c.length;)o=c(G(a),9),o.k==(Jt(),Ar)&&(r=c($(o,Yo),64),r==(Ue(),nn)?o.n.a+=n.a-t.a:r==mn&&(o.n.b+=n.b-t.b));d=e.d,e.f.a=n.a-d.b-d.c,e.f.b=n.b-d.d-d.a}function $Yt(e){var t,n,i,r,o,a,d,b,v,x,T,A;for(t=cnt(e),x=(d=new an(t).a.vc().Jc(),new yr(d));x.a.Ob();){for(v=(r=c(x.a.Pb(),45),c(r.jd(),9)),T=0,A=0,T=v.d.d,A=v.o.b+v.d.a,e.d[v.p]=0,n=v;(o=e.a[n.p])!=v;)i=qzt(n,o),b=0,e.c==(Kh(),Xg)?b=i.d.n.b+i.d.a.b-i.c.n.b-i.c.a.b:b=i.c.n.b+i.c.a.b-i.d.n.b-i.d.a.b,a=de(e.d[n.p])+b,e.d[o.p]=a,T=p.Math.max(T,o.d.d-a),A=p.Math.max(A,a+o.o.b+o.d.a),n=o;n=v;do e.d[n.p]=de(e.d[n.p])+T,n=e.a[n.p];while(n!=v);e.b[v.p]=T+A}}function lxe(e,t,n,i){var r,o,a,d,b,v,x,T,A;return b=Qr(new ze(n.a,n.b),e),v=b.a*t.b-b.b*t.a,x=t.a*i.b-t.b*i.a,T=(b.a*i.b-b.b*i.a)/x,A=v/x,x==0?v==0?(r=Oi(new ze(n.a,n.b),y1(new ze(i.a,i.b),.5)),o=C0(e,r),a=C0(Oi(new ze(e.a,e.b),t),r),d=p.Math.sqrt(i.a*i.a+i.b*i.b)*.5,o<a&&o<=d?new ze(e.a,e.b):a<=d?Oi(new ze(e.a,e.b),t):null):null:T>=0&&T<=1&&A>=0&&A<=1?Oi(new ze(e.a,e.b),y1(new ze(t.a,t.b),T)):null}function cE(e,t,n){var i,r,o,a,d,b,v,x,T,A;for(o=0,a=e.t,r=0,i=0,b=0,A=0,T=0,n&&(e.n.c.length=0,Qe(e.n,new qq(e.s,e.t,e.i))),d=0,x=new U(e.b);x.a<x.c.c.length;)v=c(G(x),19),o+v.g+(d>0?e.i:0)>t&&b>0&&(o=0,a+=b+e.i,r=p.Math.max(r,A),i+=b+e.i,b=0,A=0,n&&(++T,Qe(e.n,new qq(e.s,a,e.i))),d=0),A+=v.g+(d>0?e.i:0),b=p.Math.max(b,v.f),n&&C2e(c(Je(e.n,T),211),v),o+=v.g+(d>0?e.i:0),++d;return r=p.Math.max(r,A),i+=b,n&&(e.r=r,e.d=i,N2e(e.j)),new pf(e.s,e.t,r,i)}function ZQ(e){var t,n,i;return n=xe(Se(e,(Ge(),Rk)))===xe((uL(),Kce))||xe(Se(e,Rk))===xe(Uce)||xe(Se(e,Rk))===xe(Jce)||xe(Se(e,Rk))===xe(Xce)||xe(Se(e,Rk))===xe(Yce)||xe(Se(e,Rk))===xe(bP),i=xe(Se(e,kJ))===xe((fL(),qle))||xe(Se(e,kJ))===xe(Qle)||xe(Se(e,TP))===xe((F0(),e9))||xe(Se(e,TP))===xe((F0(),yC)),t=xe(Se(e,Kd))!==xe((P1(),np))||Ze(Ye(Se(e,Vj)))||xe(Se(e,uC))!==xe((X4(),XE))||de(be(Se(e,SP)))!=0||de(be(Se(e,Ole)))!=0,n||i||t}function Ux(e){var t,n,i,r,o,a,d,b;if(!e.a){if(e.o=null,b=new ILe(e),t=new wB,n=oM,d=n.a.yc(e,n),d==null){for(a=new on(wo(e));a.e!=a.i.gc();)o=c(un(a),29),dr(b,Ux(o));n.a.Ac(e)!=null,n.a.gc()==0}for(r=(!e.s&&(e.s=new _e(Ol,e,21,17)),new on(e.s));r.e!=r.i.gc();)i=c(un(r),182),ae(i,336)&&Ln(t,c(i,38));av(t),e.k=new KFe(e,(c(ce(De((O0(),Gt).o),7),20),t.i),t.g),dr(b,e.k),av(b),e.a=new bx((c(ce(De(Gt.o),4),20),b.i),b.g),iu(e).b&=-2}return e.a}function BYt(e){var t,n,i,r,o,a,d,b,v,x,T,A;if(d=e.d,T=c($(e,(Ie(),Pk)),16),t=c($(e,Ck),16),!(!T&&!t)){if(o=de(be(dv(e,(Ge(),Ile)))),a=de(be(dv(e,wje))),A=0,T){for(v=0,r=T.Jc();r.Ob();)i=c(r.Pb(),9),v=p.Math.max(v,i.o.b),A+=i.o.a;A+=o*(T.gc()-1),d.d+=v+a}if(n=0,t){for(v=0,r=t.Jc();r.Ob();)i=c(r.Pb(),9),v=p.Math.max(v,i.o.b),n+=i.o.a;n+=o*(t.gc()-1),d.a+=v+a}b=p.Math.max(A,n),b>e.o.a&&(x=(b-e.o.a)/2,d.b=p.Math.max(d.b,x),d.c=p.Math.max(d.c,x))}}function uxe(e,t,n,i){var r,o,a,d,b,v,x;if(x=rl(e.e.Ah(),t),r=0,o=c(e.g,123),b=null,Hs(),c(t,69).vk()){for(d=0;d<e.i;++d)if(a=o[d],x.$l(a.Jk())){if(xi(a,n)){b=a;break}++r}}else if(n!=null){for(d=0;d<e.i;++d)if(a=o[d],x.$l(a.Jk())){if(xi(n,a.kd())){b=a;break}++r}}else for(d=0;d<e.i;++d)if(a=o[d],x.$l(a.Jk())){if(a.kd()==null){b=a;break}++r}return b&&(bu(e.e)&&(v=t.Hk()?new Zee(e.e,4,t,n,null,r,!0):j0(e,t.rk()?2:1,t,n,t.gk(),-1,!0),i?i.lj(v):i=v),i=pL(e,b,i)),i}function Fie(e,t,n,i,r,o,a){var d,b,v,x,T,A,L,I,z;switch(I=0,z=0,b=r.c,d=r.b,x=n.f,L=n.g,t.g){case 0:I=i.i+i.g+a,e.c?z=bQt(I,o,i,a):z=i.j,A=p.Math.max(b,I+L),v=p.Math.max(d,z+x);break;case 1:z=i.j+i.f+a,e.c?I=pQt(z,o,i,a):I=i.i,A=p.Math.max(b,I+L),v=p.Math.max(d,z+x);break;case 2:I=b+a,z=0,A=b+a+L,v=p.Math.max(d,x);break;case 3:I=0,z=d+a,A=p.Math.max(b,L),v=d+a+x;break;default:throw V(new qt("IllegalPlacementOption."))}return T=new g2e(e.a,A,v,t,I,z),T}function zYt(e){var t,n,i,r,o,a,d,b;for(o=new mGe,oTt(o,(G4(),t2t)),i=(r=Dte(e,ke(tt,Fe,2,0,6,1)),new oT(new Qo(new NY(e,r).b)));i.b<i.d.gc();)n=(gn(i.b<i.d.gc()),qn(i.d.Xb(i.c=i.b++))),a=bxe(hp,n),a&&(t=S1(e,n),t.re()?d=t.re().a:t.oe()?d=""+t.oe().a:t.pe()?d=""+t.pe().a:d=t.Ib(),b=gxe(a,d),b!=null&&((Ml(a.j,(kh(),pr))||Ml(a.j,_t))&&RD(Ote(o,_n),a,b),Ml(a.j,sh)&&RD(Ote(o,$i),a,b),Ml(a.j,Kg)&&RD(Ote(o,fu),a,b),Ml(a.j,J1)&&RD(Ote(o,zo),a,b)));return o}function wL(e,t,n){var i,r,o,a,d,b,v,x;if(r=c(e.g,123),R1(e.e,t))return Hs(),c(t,69).vk()?new uq(t,e):new L_(t,e);for(v=rl(e.e.Ah(),t),i=0,d=0;d<e.i;++d){if(o=r[d],a=o.Jk(),v.$l(a)){if(Hs(),c(t,69).vk())return o;if(a==(ik(),Kk)||a==Wk){for(b=new Lu(To(o.kd()));++d<e.i;)o=r[d],a=o.Jk(),(a==Kk||a==Wk)&&Zn(b,To(o.kd()));return B0e(c(t.Fk(),160),b.a)}else return x=o.kd(),x!=null&&n&&ae(t,104)&&(c(t,20).Bb&Rs)!=0&&(x=X7(e,t,d,i,x)),x}++i}return t.gk()}function FYt(e){var t,n,i,r,o,a,d,b;for(r=new U(e.b);r.a<r.c.c.length;)for(i=c(G(r),26),a=new U(Zp(i.a));a.a<a.c.c.length;)if(o=c(G(a),9),FVe(o)&&(n=c($(o,(Ie(),Nw)),318),!n.g&&n.d))for(t=n,b=n.d;b;)Rit(b.i,b.k,!1,!0),vD(t.a),vD(b.i),vD(b.k),vD(b.b),ss(b.c,t.c.d),ss(t.c,null),zr(t.a,null),zr(b.i,null),zr(b.k,null),zr(b.b,null),d=new Lbe(t.i,b.a,t.e,b.j,b.f),d.k=t.k,d.n=t.n,d.b=t.b,d.c=b.c,d.g=t.g,d.d=b.d,Me(t.i,Nw,d),Me(b.a,Nw,d),b=b.d,t=d}function eG(e,t,n,i){var r,o,a,d,b,v;if(b=rl(e.e.Ah(),t),o=c(e.g,123),R1(e.e,t)){for(r=0,d=0;d<e.i;++d)if(a=o[d],b.$l(a.Jk())){if(r==n)return Hs(),c(t,69).vk()?a:(v=a.kd(),v!=null&&i&&ae(t,104)&&(c(t,20).Bb&Rs)!=0&&(v=X7(e,t,d,r,v)),v);++r}throw V(new qc(DE+n+Sb+r))}else{for(r=0,d=0;d<e.i;++d){if(a=o[d],b.$l(a.Jk()))return Hs(),c(t,69).vk()?a:(v=a.kd(),v!=null&&i&&ae(t,104)&&(c(t,20).Bb&Rs)!=0&&(v=X7(e,t,d,r,v)),v);++r}return t.gk()}}function qie(){qie=Z,$ft=Y(K(Hn,1),li,30,15,[ls,1162261467,hE,1220703125,362797056,1977326743,hE,387420489,aG,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128e7,1801088541,113379904,148035889,191102976,244140625,308915776,387420489,481890304,594823321,729e6,887503681,hE,1291467969,1544804416,1838265625,60466176]),Bft=Y(K(Hn,1),li,30,15,[-1,-1,31,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])}function Hie(e,t){var n,i,r,o,a,d,b,v,x,T;if(a=e.e,b=t.e,b==0)return e;if(a==0)return t.e==0?t:new Vp(-t.e,t.d,t.a);if(o=e.d,d=t.d,o+d==2)return n=Zr(e.a[0],Js),i=Zr(t.a[0],Js),a<0&&(n=Ag(n)),b<0&&(i=Ag(i)),rd(),LF(Ha(n,i),0)?I0(Ha(n,i)):n7(I0(Ag(Ha(n,i))));if(r=o!=d?o>d?1:-1:kwe(e.a,t.a,o),r==-1)T=-b,x=a==b?ote(t.a,d,e.a,o):lte(t.a,d,e.a,o);else if(T=a,a==b){if(r==0)return rd(),QE;x=ote(e.a,o,t.a,d)}else x=lte(e.a,o,t.a,d);return v=new Vp(T,x.length,x),a7(v),v}function qYt(e,t){var n,i,r,o;if(o=Brt(t),!t.c&&(t.c=new _e(fu,t,9,9)),hr(new Tt(null,(!t.c&&(t.c=new _e(fu,t,9,9)),new Et(t.c,16))),new n_e(o)),r=c($(o,(Ie(),Rc)),24),Ben(t,r),r.Gc((Us(),Ca)))for(i=new on((!t.c&&(t.c=new _e(fu,t,9,9)),t.c));i.e!=i.i.gc();)n=c(un(i),127),atn(e,t,o,n);return c(Se(t,(Ge(),Db)),185).gc()!=0&&jit(t,o),Ze(Ye($(o,dje)))&&r.Ec(cJ),ki(o,EP)&&XPe(new Kwe(de(be($(o,EP)))),o),xe(Se(t,Qv))===xe((D1(),Yg))?_nn(e,t,o):btn(e,t,o),o}function Lc(e,t){var n,i,r,o,a,d,b;if(e==null)return null;if(o=e.length,o==0)return"";for(b=ke(_a,cd,30,o,15,1),hs(0,o,e.length),hs(0,o,b.length),lHe(e,0,o,b,0),n=null,d=t,r=0,a=0;r<o;r++)i=b[r],Not(),i<=32&&(ne[i]&2)!=0?d?(!n&&(n=new Ba(e)),d7t(n,r-a++)):(d=t,i!=32&&(!n&&(n=new Ba(e)),zte(n,r-a,r-a+1," "))):d=!1;return d?n?(o=n.a.length,o>0?Fa(n.a,0,o-1):""):(hs(0,o-1,e.length),e.substr(0,o-1)):n?n.a:e}function HYt(e,t,n){var i,r,o;if(ki(t,(Ge(),$o))&&(xe($(t,$o))===xe((Su(),G1))||xe($(t,$o))===xe(Nb))||ki(n,$o)&&(xe($(n,$o))===xe((Su(),G1))||xe($(n,$o))===xe(Nb)))return 0;if(i=Vr(t),r=MWt(e,t,n),r!=0)return r;if(ki(t,(Ie(),Ri))&&ki(n,Ri)){if(o=hc(aw(t,n,i,c($(i,ep),15).a),aw(n,t,i,c($(i,ep),15).a)),xe($(i,aC))===xe((N0(),wP))&&xe($(t,fC))!==xe($(n,fC))&&(o=0),o<0)return gL(e,t,n),o;if(o>0)return gL(e,n,t),o}return ZUt(e,t,n)}function nst(e,t){var n,i,r,o,a,d,b,v,x,T,A;for(i=new Ht(Xt(I1(t).a.Jc(),new F));hn(i);)n=c(rn(i),74),ae(ce((!n.b&&(n.b=new Ct(xn,n,4,7)),n.b),0),196)||(b=no(c(ce((!n.c&&(n.c=new Ct(xn,n,5,8)),n.c),0),83)),W7(n)||(a=t.i+t.g/2,d=t.j+t.f/2,x=b.i+b.g/2,T=b.j+b.f/2,A=new fs,A.a=x-a,A.b=T-d,o=new ze(A.a,A.b),RS(o,t.g,t.f),A.a-=o.a,A.b-=o.b,a=x-A.a,d=T-A.b,v=new ze(A.a,A.b),RS(v,b.g,b.f),A.a-=v.a,A.b-=v.b,x=a+A.a,T=d+A.b,r=Z7(n),Ym(r,a),Zm(r,d),Wm(r,x),Km(r,T),nst(e,b)))}function jv(e,t){var n,i,r,o,a;if(a=c(t,140),Hx(e),Hx(a),a.b!=null){if(e.c=!0,e.b==null){e.b=ke(Hn,li,30,a.b.length,15,1),wc(a.b,0,e.b,0,a.b.length);return}for(o=ke(Hn,li,30,e.b.length+a.b.length,15,1),n=0,i=0,r=0;n<e.b.length||i<a.b.length;)n>=e.b.length?(o[r++]=a.b[i++],o[r++]=a.b[i++]):i>=a.b.length?(o[r++]=e.b[n++],o[r++]=e.b[n++]):a.b[i]<e.b[n]||a.b[i]===e.b[n]&&a.b[i+1]<e.b[n+1]?(o[r++]=a.b[i++],o[r++]=a.b[i++]):(o[r++]=e.b[n++],o[r++]=e.b[n++]);e.b=o}}function QYt(e,t){var n,i,r,o,a,d,b,v,x,T;return n=Ze(Ye($(e,(Ie(),qv)))),d=Ze(Ye($(t,qv))),i=c($(e,ih),12),b=c($(t,ih),12),r=c($(e,Wa),12),v=c($(t,Wa),12),x=!!i&&i==b,T=!!r&&r==v,!n&&!d?new W0e(c(G(new U(e.j)),12).p==c(G(new U(t.j)),12).p,x,T):(o=(!Ze(Ye($(e,qv)))||Ze(Ye($(e,kP))))&&(!Ze(Ye($(t,qv)))||Ze(Ye($(t,kP)))),a=(!Ze(Ye($(e,qv)))||!Ze(Ye($(e,kP))))&&(!Ze(Ye($(t,qv)))||!Ze(Ye($(t,kP)))),new W0e(x&&o||T&&a,x,T))}function ist(e){var t,n,i,r,o,a,d,b;for(i=0,n=0,b=new _i,t=0,d=new U(e.n);d.a<d.c.c.length;)a=c(G(d),211),a.c.c.length==0?rr(b,a,b.c.b,b.c):(i=p.Math.max(i,a.d),n+=a.a+(t>0?e.i:0)),++t;for(Hwe(e.n,b),e.d=n,e.r=i,e.g=0,e.f=0,e.e=0,e.o=sr,e.p=sr,o=new U(e.b);o.a<o.c.c.length;)r=c(G(o),19),e.p=p.Math.min(e.p,r.g),e.g=p.Math.max(e.g,r.g),e.f=p.Math.max(e.f,r.f),e.o=p.Math.min(e.o,r.f),e.e+=r.f+e.i;e.a=e.e/e.b.c.length-e.i*((e.b.c.length-1)/e.b.c.length),N2e(e.j)}function rst(e){var t,n,i,r;return(e.Db&64)!=0?gne(e):(t=new Lu($4e),i=e.k,i?Zn(Zn((t.a+=' "',t),i),'"'):(!e.n&&(e.n=new _e(zo,e,1,7)),e.n.i>0&&(r=(!e.n&&(e.n=new _e(zo,e,1,7)),c(ce(e.n,0),158)).a,!r||Zn(Zn((t.a+=' "',t),r),'"'))),n=(!e.b&&(e.b=new Ct(xn,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new Ct(xn,e,5,8)),e.c.i<=1))),n?t.a+=" [":t.a+=" ",Zn(t,Zge(new jY,new on(e.b))),n&&(t.a+="]"),t.a+=Vre,n&&(t.a+="["),Zn(t,Zge(new jY,new on(e.c))),n&&(t.a+="]"),t.a)}function GYt(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt;for(je=e.c,Oe=t.c,n=Lo(je.a,e,0),i=Lo(Oe.a,t,0),le=c(rw(e,(Gs(),Vl)).Jc().Pb(),12),wt=c(rw(e,Yc).Jc().Pb(),12),me=c(rw(t,Vl).Jc().Pb(),12),Lt=c(rw(t,Yc).Jc().Pb(),12),W=ed(le.e),Xe=ed(wt.g),re=ed(me.e),mt=ed(Lt.g),R0(e,i,Oe),a=re,x=0,I=a.length;x<I;++x)r=a[x],ss(r,le);for(d=mt,T=0,z=d.length;T<z;++T)r=d[T],Os(r,wt);for(R0(t,n,je),b=W,A=0,Q=b.length;A<Q;++A)r=b[A],ss(r,me);for(o=Xe,v=0,L=o.length;v<L;++v)r=o[v],Os(r,Lt)}function UYt(e){var t,n,i,r,o,a,d;for(a=c(Se(e,(Sx(),E3)),19),i=new on((!a.e&&(a.e=new Ct($i,a,7,4)),a.e));i.e!=i.i.gc();)n=c(un(i),74),d=new ze(c(ce((!n.a&&(n.a=new _e(Gi,n,6,6)),n.a),0),171).j,c(ce((!n.a&&(n.a=new _e(Gi,n,6,6)),n.a),0),171).k),o=new ze(c(ce((!n.a&&(n.a=new _e(Gi,n,6,6)),n.a),0),171).b,c(ce((!n.a&&(n.a=new _e(Gi,n,6,6)),n.a),0),171).c),r=new ze(o.a-d.a,o.b-d.b),t=p.Math.atan2(r.b,r.a),c(ce((!n.c&&(n.c=new Ct(xn,n,5,8)),n.c),0),83).of((B0(),Nue),t)}function JYt(e,t){var n,i,r,o,a,d,b,v,x;for(t.Tg("Interactive Node Reorderer",1),x=(!e.a&&(e.a=new _e(_n,e,10,11)),e.a),d=new He,r=new on(x);r.e!=r.i.gc();)n=c(un(r),19),pa(n,(Th(),zP))&&It(d.c,n);for(o=new U(d);o.a<o.c.c.length;)n=c(G(o),19),pH(x,n);for(Mt(),Rr(d,new KA),a=new U(d);a.a<a.c.c.length;)n=c(G(a),19),v=c(Se(n,(Th(),zP)),15).a,v=p.Math.min(v,x.i),D7(x,v,n);for(b=0,i=new on(x);i.e!=i.i.gc();)n=c(un(i),19),ri(n,(Th(),w8e),$e(b)),++b;t.Ug()}function VYt(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z;for(d=ke(Hn,li,30,t.b.c.length,15,1),v=ke(Cce,Pe,252,t.b.c.length,0,1),b=ke(Wd,qg,9,t.b.c.length,0,1),T=e.a,A=0,L=T.length;A<L;++A){for(x=T[A],z=0,a=new U(x.e);a.a<a.c.c.length;)r=c(G(a),9),i=Lge(r.c),++d[i],I=de(be($(t,(Ge(),Mf)))),d[i]>0&&b[i]&&(I=yx(e.b,b[i],r)),z=p.Math.max(z,r.c.c.b+I);for(o=new U(x.e);o.a<o.c.c.length;)r=c(G(o),9),r.n.b=z+r.d.d,n=r.c,n.c.b=z+r.d.d+r.o.b+r.d.a,v[Lo(n.b.b,n,0)]=r.k,b[Lo(n.b.b,n,0)]=r}}function axe(e,t,n){var i,r,o,a,d,b,v,x;return p.Math.abs(t.s-t.c)<ud||p.Math.abs(n.s-n.c)<ud?0:(i=lit(e,t.j,n.e),r=lit(e,n.j,t.e),o=i==-1||r==-1,a=0,o?(i==-1&&(new Yp((Vf(),ip),n,t,1),++a),r==-1&&(new Yp((Vf(),ip),t,n,1),++a)):(d=Ix(t.j,n.s,n.c),d+=Ix(n.e,t.s,t.c),b=Ix(n.j,t.s,t.c),b+=Ix(t.e,n.s,n.c),v=i+16*d,x=r+16*b,v<x?new Yp((Vf(),ey),t,n,x-v):v>x?new Yp((Vf(),ey),n,t,v-x):v>0&&x>0&&(new Yp((Vf(),ey),t,n,0),new Yp(ey,n,t,0))),a)}function XYt(e,t,n){var i,r,o;for(e.a=new He,o=Pn(t.b,0);o.b!=o.d.c;){for(r=c(Dn(o),41);c($(r,(Jo(),md)),15).a>e.a.c.length-1;)Qe(e.a,new Is(e3,P5e));i=c($(r,md),15).a,n==(_r(),po)||n==vo?(r.e.a<de(be(c(Je(e.a,i),49).a))&&e4(c(Je(e.a,i),49),r.e.a),r.e.a+r.f.a>de(be(c(Je(e.a,i),49).b))&&c_(c(Je(e.a,i),49),r.e.a+r.f.a)):(r.e.b<de(be(c(Je(e.a,i),49).a))&&e4(c(Je(e.a,i),49),r.e.b),r.e.b+r.f.b>de(be(c(Je(e.a,i),49).b))&&c_(c(Je(e.a,i),49),r.e.b+r.f.b))}}function sst(e,t,n,i){var r,o,a,d,b,v,x;if(o=KH(i),d=Ze(Ye($(i,(Ge(),cje)))),(d||Ze(Ye($(e,xJ))))&&!wx(c($(e,ar),103)))r=J4(o),b=Xye(e,n,n==(Gs(),Yc)?r:QD(r));else switch(b=new mc,Do(b,e),t?(x=b.n,x.a=t.a-e.n.a,x.b=t.b-e.n.b,ttt(x,0,0,e.o.a,e.o.b),$r(b,Srt(b,o))):(r=J4(o),$r(b,n==(Gs(),Yc)?r:QD(r))),a=c($(i,(Ie(),Rc)),24),v=b.j,o.g){case 2:case 1:(v==(Ue(),Kt)||v==mn)&&a.Ec((Us(),g3));break;case 4:case 3:(v==(Ue(),nn)||v==Yt)&&a.Ec((Us(),g3))}return b}function ost(e,t){var n,i,r,o,a,d;for(a=new lv(new Rp(e.f.b).a);a.b;){if(o=_x(a),r=c(o.jd(),598),t==1){if(r.yf()!=(_r(),Ma)&&r.yf()!=Rh)continue}else if(r.yf()!=(_r(),po)&&r.yf()!=vo)continue;switch(i=c(c(o.kd(),49).b,84),d=c(c(o.kd(),49).a,197),n=d.c,r.yf().g){case 2:i.g.c=e.e.a,i.g.b=p.Math.max(1,i.g.b+n);break;case 1:i.g.c=i.g.c+n,i.g.b=p.Math.max(1,i.g.b-n);break;case 4:i.g.d=e.e.b,i.g.a=p.Math.max(1,i.g.a+n);break;case 3:i.g.d=i.g.d+n,i.g.a=p.Math.max(1,i.g.a-n)}}}function WYt(e,t){var n,i,r,o,a,d,b,v,x,T;for(t.Tg("Simple node placement",1),T=c($(e,(Ie(),w3)),317),d=0,o=new U(e.b);o.a<o.c.c.length;){for(i=c(G(o),26),a=i.c,a.b=0,n=null,v=new U(i.a);v.a<v.c.c.length;)b=c(G(v),9),n&&(a.b+=a2e(b,n,T.c)),a.b+=b.d.d+b.o.b+b.d.a,n=b;d=p.Math.max(d,a.b)}for(r=new U(e.b);r.a<r.c.c.length;)for(i=c(G(r),26),a=i.c,x=(d-a.b)/2,n=null,v=new U(i.a);v.a<v.c.c.length;)b=c(G(v),9),n&&(x+=a2e(b,n,T.c)),x+=b.d.d,b.n.b=x,x+=b.o.b+b.d.a,n=b;t.Ug()}function cst(e){Dm(e,new pb(Am(Em(Mm(Cm(new h1,yw),"ELK SPOrE Compaction"),"ShrinkTree is a compaction algorithm that maintains the topology of a layout. The relocation of diagram elements is based on contracting a spanning tree."),new tN))),Be(e,yw,eoe,Ve(sV)),Be(e,yw,m4e,Ve(nae)),Be(e,yw,w4e,Ve(tae)),Be(e,yw,toe,Ve(J8e)),Be(e,yw,noe,Ve(eae)),Be(e,yw,mw,U8e),Be(e,yw,bw,8),Be(e,yw,ioe,Ve(Owt)),Be(e,yw,v4e,Ve(Q8e)),Be(e,yw,y4e,Ve(G8e)),Be(e,yw,XL,(Bt(),!1))}function KYt(e,t){var n,i,r,o;for(IIt(t.b.j),hr(Qc(new Tt(null,new Et(t.d,16)),new d2),new XR),o=new U(t.d);o.a<o.c.c.length;){switch(r=c(G(o),108),r.e.g){case 0:n=c(Je(r.j,0),114).d.j,Y5(r,c(mu(C4(c(Ei(r.k,n),16).Mc(),a3)),114)),K5(r,c(mu(J2(c(Ei(r.k,n),16).Mc(),a3)),114));break;case 1:i=L2e(r),Y5(r,c(mu(C4(c(Ei(r.k,i[0]),16).Mc(),a3)),114)),K5(r,c(mu(J2(c(Ei(r.k,i[1]),16).Mc(),a3)),114));break;case 2:VGt(e,r);break;case 3:tXt(r);break;case 4:oXt(e,r)}PIt(r)}e.a=null}function Qie(e,t,n){var i,r,o,a,d,b,v,x;return i=e.a.o==(ph(),Dh)?sr:Gr,d=Nrt(e,new d$e(t,n)),!d.a&&d.c?(ei(e.d,d),i):d.a?(r=d.a.c,b=d.a.d,n?(v=e.a.c==(Kh(),$w)?b:r,o=e.a.c==$w?r:b,a=e.a.g[o.i.p],x=de(e.a.p[a.p])+de(e.a.d[o.i.p])+o.n.b+o.a.b-de(e.a.d[v.i.p])-v.n.b-v.a.b):(v=e.a.c==(Kh(),Xg)?b:r,o=e.a.c==Xg?r:b,x=de(e.a.p[e.a.g[o.i.p].p])+de(e.a.d[o.i.p])+o.n.b+o.a.b-de(e.a.d[v.i.p])-v.n.b-v.a.b),e.a.n[e.a.g[r.i.p].p]=(Bt(),!0),e.a.n[e.a.g[b.i.p].p]=!0,x):i}function YYt(e,t,n,i){var r,o,a,d,b,v,x,T;if(i.gc()==0)return!1;if(b=(Hs(),c(t,69).vk()),a=b?i:new Xm(i.gc()),R1(e.e,t)){if(t.Qi())for(x=i.Jc();x.Ob();)v=x.Pb(),KQ(e,t,v,ae(t,104)&&(c(t,20).Bb&Rs)!=0)||(o=Rd(t,v),a.Ec(o));else if(!b)for(x=i.Jc();x.Ob();)v=x.Pb(),o=Rd(t,v),a.Ec(o)}else{for(T=rl(e.e.Ah(),t),r=c(e.g,123),d=0;d<e.i;++d)if(o=r[d],T.$l(o.Jk()))throw V(new qt(iP));if(i.gc()>1)throw V(new qt(iP));b||(o=Rd(t,i.Jc().Pb()),a.Ec(o))}return lwe(e,Cve(e,t,n),a)}function tG(e,t,n){var i,r,o,a,d,b,v,x;if(R1(e.e,t))b=(Hs(),c(t,69).vk()?new uq(t,e):new L_(t,e)),PQ(b.c,b.b),HT(b,c(n,18));else{for(x=rl(e.e.Ah(),t),i=c(e.g,123),a=0;a<e.i;++a)if(r=i[a],o=r.Jk(),x.$l(o)){if(o==(ik(),Kk)||o==Wk){for(v=j2e(e,t,n),d=a,v?kv(e,a):++a;a<e.i;)r=i[a],o=r.Jk(),o==Kk||o==Wk?kv(e,a):++a;v||c($x(e,d,Rd(t,n)),76)}else j2e(e,t,n)?kv(e,a):c($x(e,a,(Hs(),c(t,69).vk()?c(n,76):Rd(t,n))),76);return}j2e(e,t,n)||Ln(e,(Hs(),c(t,69).vk()?c(n,76):Rd(t,n)))}}function lst(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z;for(T=0;T<t.length;T++){for(d=e.Jc();d.Ob();)o=c(d.Pb(),223),o.fg(T,t);for(A=0;A<t[T].length;A++){for(b=e.Jc();b.Ob();)o=c(b.Pb(),223),o.gg(T,A,t);for(z=t[T][A].j,L=0;L<z.c.length;L++){for(v=e.Jc();v.Ob();)o=c(v.Pb(),223),o.hg(T,A,L,t);for(I=(ht(L,z.c.length),c(z.c[L],12)),n=0,r=new wh(I.b);_o(r.a)||_o(r.b);)for(i=c(_o(r.a)?G(r.a):G(r.b),17),x=e.Jc();x.Ob();)o=c(x.Pb(),223),o.eg(T,A,L,n++,i,t)}}}for(a=e.Jc();a.Ob();)o=c(a.Pb(),223),o.dg()}function ZYt(e,t,n){var i,r,o,a,d,b,v,x,T,A,L;for(n.Tg(hlt,1),T=t.a,x=T.c.length,e.c=new He,e.d=ke(Sl,Yf,30,x,16,1),e.a=ke(Sl,Yf,30,x,16,1),e.b=new He,a=0,v=new U(T);v.a<v.c.c.length;)b=c(G(v),9),b.p=a,tv(vr(b))&&Qe(e.c,b),++a;for(L=new U(e.c);L.a<L.c.c.length;)A=c(G(L),9),_ve(e,A);for(o=0;o<x;o++)e.d[o]||(d=(ht(o,T.c.length),c(T.c[o],9)),_ve(e,d));for(r=new U(e.b);r.a<r.c.c.length;)i=c(G(r),17),Bg(i,!0),Me(t,(Ie(),Mk),(Bt(),!0));e.c=null,e.d=null,e.a=null,e.b=null,n.Ug()}function eZt(e,t,n){var i,r,o,a,d,b,v,x,T,A,L;for(n.Tg(hlt,1),e.c=t,T=t.a,x=T.c.length,e.d=new He,e.e=ke(Sl,Yf,30,x,16,1),e.a=ke(Sl,Yf,30,x,16,1),e.b=new He,a=0,v=new U(T);v.a<v.c.c.length;)b=c(G(v),9),b.p=a,tv(vr(b))&&Qe(e.d,b),++a;for(L=new U(e.d);L.a<L.c.c.length;)A=c(G(L),9),Fye(e,A);for(o=0;o<x;o++)e.e[o]||(d=(ht(o,T.c.length),c(T.c[o],9)),Fye(e,d));for(r=new U(e.b);r.a<r.c.c.length;)i=c(G(r),17),Bg(i,!0),Me(t,(Ie(),Mk),(Bt(),!0));e.d=null,e.e=null,e.a=null,e.b=null,n.Ug()}function tZt(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z;if(I=c(Ut(e.d,t),150),!I)throw V(new Jh("Edge did not exist in input."));return Nie(e,t),T=DS(I),a=p_((!t.a&&(t.a=new _e(Gi,t,6,6)),t.a)),b=!a,b&&(z=new bg,i=new KHe(e,T,z,t),J8t((!t.a&&(t.a=new _e(Gi,t,6,6)),t.a),i),wf(I,Ooe,null),wf(I,Ooe,z)),o=pa(t,(In(),N3)),o&&(A=c(Se(t,N3),79),d=!A||jHe(A),v=!d,v&&(L=new bg,r=new RFe(e,t,L),vs(A,r),wf(I,"junctionPoints",L))),n=x0e(e,c(Ut(e.e,t),19)),x=n==(jS(),pV),x&&J6(I,"container",Y2(t).k),null}function nZt(e,t){var n,i,r,o,a,d,b;for(e.b=de(be($(t,(Ge(),Wv)))),e.c=de(be($(t,tp))),e.d=c($(t,Ale),350),e.a=c($(t,bJ),285),GFt(t),d=c(Hl(mi(mi(jo(jo(new Tt(null,new Et(t.b,16)),new fm),new nA),new DO),new a2),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[(ya(),wl)]))),16),r=d.Jc();r.Ob();)n=c(r.Pb(),17),a=c($(n,(Ie(),Ab)),16),a.Ic(new h_e(e)),Me(n,Ab,null);for(i=d.Jc();i.Ob();)n=c(i.Pb(),17),b=c($(n,(Ie(),tSe)),17),o=c($(n,v3),16),vnn(e,o,b),Me(n,v3,null)}function Gie(e,t){var n,i,r,o,a,d,b;if(e.a){if(d=e.a.ve(),b=null,d!=null?t.a+=""+d:(a=e.a.kk(),a!=null&&(o=Xh(a,pl(91)),o!=-1?(b=(en(o,a.length+1),a.substr(o)),t.a+=""+Fa(a==null?ml:(zt(a),a),0,o)):t.a+=""+a)),e.d&&e.d.i!=0){for(r=!0,t.a+="<",i=new on(e.d);i.e!=i.i.gc();)n=c(un(i),88),r?r=!1:t.a+=Xc,Gie(n,t);t.a+=">"}b!=null&&(t.a+=""+b)}else e.e?(d=e.e.zb,d!=null&&(t.a+=""+d)):(t.a+="?",e.b?(t.a+=" super ",Gie(e.b,t)):e.f&&(t.a+=" extends ",Gie(e.f,t)))}function iZt(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 rZt(e){var t,n,i,r;if(i=rre((!e.c&&(e.c=oD(tc(e.f))),e.c),0),e.e==0||e.a==0&&e.f!=-1&&e.e<0)return i;if(t=Jme(e)<0?1:0,n=e.e,r=(i.length+1+p.Math.abs(ks(e.e)),new a4),t==1&&(r.a+="-"),e.e>0)if(n-=i.length-t,n>=0){for(r.a+="0.";n>Cb.length;n-=Cb.length)kqe(r,Cb);eFe(r,Cb,ks(n)),Zn(r,(en(t,i.length+1),i.substr(t)))}else n=t-n,Zn(r,Fa(i,t,ks(n))),r.a+=".",Zn(r,Hpe(i,ks(n)));else{for(Zn(r,(en(t,i.length+1),i.substr(t)));n<-Cb.length;n+=Cb.length)kqe(r,Cb);eFe(r,Cb,ks(-n))}return r.a}function Uie(e){var t,n,i,r,o,a,d,b,v;return!(e.k!=(Jt(),ur)||e.j.c.length<=1||(o=c($(e,(Ge(),ar)),103),o==(es(),kc))||(r=(pv(),(e.q?e.q:(Mt(),Mt(),Vd))._b(Iw)?i=c($(e,Iw),205):i=c($(Vr(e),pC),205),i),r==DJ)||!(r==S3||r==O3)&&(a=de(be(dv(e,bC))),t=c($(e,MP),125),!t&&(t=new A0e(a,a,a,a)),v=Io(e,(Ue(),Yt)),b=t.d+t.a+(v.gc()-1)*a,b>e.o.b||(n=Io(e,nn),d=t.d+t.a+(n.gc()-1)*a,d>e.o.b)))}function sZt(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q;t.Tg("Orthogonal edge routing",1),v=de(be($(e,(Ge(),Yv)))),n=de(be($(e,Wv))),i=de(be($(e,tp))),A=new mee(0,n),Q=0,a=new os(e.b,0),d=null,x=null,b=null,T=null;do x=a.b<a.d.gc()?(gn(a.b<a.d.gc()),c(a.d.Xb(a.c=a.b++),26)):null,T=x?x.a:null,d&&(hxe(d,Q),Q+=d.c.a),z=d?Q+i:Q,I=mxe(A,e,b,T,z),r=!d||PF(b,(GQ(),LP)),o=!x||PF(T,(GQ(),LP)),I>0?(L=(I-1)*n,d&&(L+=i),x&&(L+=i),L<v&&!r&&!o&&(L=v),Q+=L):!r&&!o&&(Q+=v),d=x,b=T;while(x);e.f.a=Q,t.Ug()}function nG(e,t){var n,i,r,o,a,d,b,v,x,T;if(x=null,e.d&&(x=c(Mc(e.d,t),146)),!x){if(o=e.a.si(),T=o.i,!e.d||vT(e.d)!=T){for(b=new yn,e.d&&O7(b,e.d),v=b.f.c+b.i.c,d=v;d<T;++d)i=c(ce(o,d),146),r=Lg(e.e,i).ve(),n=c(r==null?bl(b.f,null,i):nw(b.i,r,i),146),n&&n!=i&&(r==null?bl(b.f,null,n):nw(b.i,r,n));if(b.f.c+b.i.c!=T)for(a=0;a<v;++a)i=c(ce(o,a),146),r=Lg(e.e,i).ve(),n=c(r==null?bl(b.f,null,i):nw(b.i,r,i),146),n&&n!=i&&(r==null?bl(b.f,null,n):nw(b.i,r,n));e.d=b}x=c(Mc(e.d,t),146)}return x}function Jie(e,t,n,i,r,o,a){var d,b,v,x,T,A,L;return T=Ze(Ye($(t,(Ge(),lje)))),A=null,o==(Gs(),Vl)&&i.c.i==n?A=i.c:o==Yc&&i.d.i==n&&(A=i.d),v=a,!v||!T||A?(x=(Ue(),Bo),A?x=A.j:wx(c($(n,ar),103))&&(x=o==Vl?Yt:nn),b=oZt(e,t,n,o,x,i),d=ste((Vr(n),i)),o==Vl?(Os(d,c(Je(b.j,0),12)),ss(d,r)):(Os(d,r),ss(d,c(Je(b.j,0),12))),v=new XKe(i,d,b,c($(b,(Ie(),Si)),12),o,!A)):(Qe(v.e,i),L=p.Math.max(de(be($(v.d,Jg))),de(be($(i,Jg)))),Me(v.d,Jg,L)),jt(e.a,i,new tq(v.d,t,o)),v}function Vie(){Vie=Z;var e;iEe=new SPe,_vt=ke(tt,Fe,2,0,6,1),Avt=Zh(Q4(33,58),Q4(1,26)),Nvt=Zh(Q4(97,122),Q4(65,90)),Y7e=Q4(48,57),Cvt=Zh(Avt,0),Mvt=Zh(Nvt,Y7e),Z7e=Zh(Zh(0,Q4(1,6)),Q4(33,38)),eEe=Zh(Zh(Y7e,Q4(65,70)),Q4(97,102)),Dvt=Zh(Cvt,aQ("-_.!~*'()")),Lvt=Zh(Mvt,iQ("-_.!~*'()")),aQ(wat),iQ(wat),Zh(Dvt,aQ(";:@&=+$,")),Zh(Lvt,iQ(";:@&=+$,")),tEe=aQ(":/?#"),nEe=iQ(":/?#"),rM=aQ("/?#"),sM=iQ("/?#"),e=new Tr,e.a.yc("jar",e),e.a.yc("zip",e),e.a.yc("archive",e),CV=(Mt(),new M6(e))}function oZt(e,t,n,i,r,o){var a,d,b,v,x,T;return a=null,v=i==(Gs(),Vl)?o.c:o.d,b=KH(t),v.i==n?(a=c(Ut(e.b,v),9),a||(a=yL(v,c($(n,(Ge(),ar)),103),r,cKt(v),null,v.n,v.o,b,t),Me(a,(Ie(),Si),v),ci(e.b,v,a))):(a=yL((x=new cm,T=de(be($(t,(Ge(),Mf))))/2,RD(x,Jv,T),x),c($(n,ar),103),r,i==Vl?-1:1,null,new fs,new ze(0,0),b,t),d=KHt(a,n,i),Me(a,(Ie(),Si),d),ci(e.b,d,a)),c($(t,(Ie(),Rc)),24).Ec((Us(),Ca)),wx(c($(t,(Ge(),ar)),103))?Me(t,ar,(es(),p9)):Me(t,ar,(es(),Bh)),a}function WS(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I;d=0,I=0,b=zq(e.g,e.g.length),o=e.e,a=e.j,i=e.b,r=e.c;do{for(L=0,x=new U(e.q);x.a<x.c.c.length;)v=c(G(x),9),A=Ast(e,v),n=!0,(e.r==(F0(),AP)||e.r==NP)&&(n=Ze(Ye(A.b))),c(A.a,15).a<0&&n?(++L,b=zq(e.g,e.g.length),e.e=e.e+c(A.a,15).a,I+=o-e.e,o=e.e+c(A.a,15).a,a=e.j,i=Zp(e.b),r=Zp(e.c)):(e.g=zq(b,b.length),e.e=o,e.b=(Bn(i),i?new ql(i):U6(new U(i))),e.c=(Bn(r),r?new ql(r):U6(new U(r))),e.j=a);++d,T=L!=0&&Ze(Ye(t.Kb(new Is($e(I),$e(d)))))}while(T)}function cZt(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt;return a=e.f,A=t.f,d=a==(Y7(),zk)||a==RC,L=A==zk||A==RC,b=a==M3||a==$C,I=A==M3||A==$C,v=a==M3||a==zk,z=A==M3||A==zk,d&&L?e.f==RC?e:t:b&&I?e.f==$C?e:t:v&&z?(a==M3?(T=e,x=t):(T=t,x=e),o=(Q=n.j+n.f,W=T.e+i.f,re=p.Math.max(Q,W),le=re-p.Math.min(n.j,T.e),me=T.d+i.g-n.i,me*le),r=(je=n.i+n.g,Oe=x.d+i.g,Xe=p.Math.max(je,Oe),mt=Xe-p.Math.min(n.i,x.d),wt=x.e+i.f-n.j,mt*wt),o<=r?e.f==M3?e:t:e.f==zk?e:t):e}function ust(e,t){var n,i,r,o,a,d,b,v,x,T;if(Me(t,(Ii(),i9),0),b=c($(t,HJ),41),t.d.b==0)b?(x=de(be($(b,Wg)))+e.b+Jwe(e,b,t),Me(t,Wg,x)):Me(t,Wg,0);else{for(i=(o=Pn(new w1(t).a.d,0),new lx(o));d_(i.a);)n=c(Dn(i.a),65).c,ust(e,n);d=c(qF((a=Pn(new w1(t).a.d,0),new lx(a))),41),T=c(KTt((r=Pn(new w1(t).a.d,0),new lx(r))),41),v=(de(be($(T,Wg)))+de(be($(d,Wg))))/2,b?(x=de(be($(b,Wg)))+e.b+Jwe(e,b,t),Me(t,Wg,x),Me(t,i9,de(be($(t,Wg)))-v),Oen(e,t)):Me(t,Wg,v)}}function lZt(e){var t,n,i,r,o,a,d,b,v,x,T,A,L;if(v=new He,!ki(e,(Ie(),hle)))return v;for(i=c($(e,hle),16).Jc();i.Ob();)t=c(i.Pb(),9),MZt(t,e),It(v.c,t);for(o=new U(e.b);o.a<o.c.c.length;)for(r=c(G(o),26),d=new U(r.a);d.a<d.c.c.length;)a=c(G(d),9),a.k==(Jt(),Ar)&&(b=c($(a,fJ),9),b&&(x=new mc,Do(x,a),T=c($(a,Yo),64),$r(x,T),A=c(Je(b.j,0),12),L=new Gm,Os(L,x),ss(L,A)));for(n=new U(v);n.a<n.c.c.length;)t=c(G(n),9),zr(t,c(Je(e.b,e.b.c.length-1),26));return v}function uZt(e){var t,n,i,r,o,a,d,b,v,x,T;for(x=e.e.a.c.length,a=new U(e.e.a);a.a<a.c.c.length;)o=c(G(a),126),o.j=!1;for(e.i=ke(Hn,li,30,x,15,1),e.g=ke(Hn,li,30,x,15,1),e.n=new He,r=0,T=new He,b=new U(e.e.a);b.a<b.c.c.length;)d=c(G(b),126),d.d=r++,d.b.a.c.length==0&&Qe(e.n,d),Or(T,d.g);for(t=0,i=new U(T);i.a<i.c.c.length;)n=c(G(i),220),n.c=t++,n.f=!1;v=T.c.length,e.b==null||e.b.length<v?(e.b=ke(is,io,30,v,15,1),e.c=ke(Sl,Yf,30,v,16,1)):gT(e.c),e.d=T,e.p=new MZ(uv(e.d.c.length)),e.j=1}function aZt(e,t){var n,i,r,o,a,d,b,v,x;if(!(t.e.c.length<=1)){for(e.f=t,e.d=c($(e.f,(YD(),hOe)),385),e.g=c($(e.f,bOe),15).a,e.e=de(be($(e.f,dOe))),e.c=de(be($(e.f,MU))),sHe(e.b),r=new U(e.f.c);r.a<r.c.c.length;)i=c(G(r),292),Hye(e.b,i.c,i,null),Hye(e.b,i.d,i,null);for(d=e.f.e.c.length,e.a=U2(is,[Fe,io],[109,30],15,[d,d],2),v=new U(e.f.e);v.a<v.c.c.length;)b=c(G(v),156),DYt(e,b,e.a[b.a]);for(e.i=U2(is,[Fe,io],[109,30],15,[d,d],2),o=0;o<d;++o)for(a=0;a<d;++a)n=e.a[o][a],x=1/(n*n),e.i[o][a]=x}}function ast(e,t){var n,i,r,o,a,d,b,v,x,T,A,L;if(d=t._g(),d||t.Tg(Ect,1),n=c($(e,(Ie(),mle)),16),a=1/n.gc(),t.$g())for(t.ah("ELK Layered uses the following "+n.gc()+" modules:"),L=0,A=n.Jc();A.Ob();)x=c(A.Pb(),43),i=(L<10?"0":"")+L++,t.ah("   Slot "+i+": "+zp(Ou(x)));for(T=n.Jc();T.Ob();){if(x=c(T.Pb(),43),t.Zg())return;x.If(e,t.dh(a))}for(o=new U(e.b);o.a<o.c.c.length;)r=c(G(o),26),Or(e.a,r.a),r.a.c.length=0;for(v=new U(e.a);v.a<v.c.c.length;)b=c(G(v),9),zr(b,null);e.b.c.length=0,d||t.Ug()}function fZt(e,t){var n,i,r,o,a,d,b,v,x;if(ki(e.d.i,(Ge(),Uv)))return d=c($(e.c.i,Uv),15),v=c($(e.d.i,Uv),15),hc(d.a,v.a)>0;for(d=c($(e.c.i,Uv),15).a,o=c(Hl(mi(t.Mc(),new O_e(d)),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[(ya(),wl)]))),16),a=new _i,x=new Tr,ei(a,e.c.i),Er(x,e.c.i);a.b!=0;){if(n=c(a.b==0?null:(gn(a.b!=0),ma(a,a.a.a)),9),o.Gc(n))return!0;for(r=new Ht(Xt(Fi(n).a.Jc(),new F));hn(r);)i=c(rn(r),17),b=i.d.i,x.a._b(b)||(x.a.yc(b,x),rr(a,b,a.c.b,a.c))}return!1}function fst(e,t,n){var i,r,o,a,d,b,v,x,T;for(T=new He,x=new Sbe(0,n),o=0,TH(x,new Kte(0,0,x,n)),r=0,v=new on(e);v.e!=v.i.gc();)b=c(un(v),19),i=c(Je(x.a,x.a.c.length-1),175),d=r+b.g+(c(Je(x.a,0),175).b.c.length==0?0:n),(d>t||Ze(Ye(Se(b,(Th(),FP)))))&&(r=0,o+=x.b+n,It(T.c,x),x=new Sbe(o,n),i=new Kte(0,x.f,x,n),TH(x,i),r=0),i.b.c.length==0||!Ze(Ye(Se(Wi(b),(Th(),Hue))))&&(b.f>=i.o&&b.f<=i.f||i.a*.5<=b.f&&i.a*1.5>=b.f)?Vwe(i,b):(a=new Kte(i.s+i.r+n,x.f,x,n),TH(x,a),Vwe(a,b)),r=b.i+b.g;return It(T.c,x),T}function lE(e){var t,n,i,r;if(!(e.b==null||e.b.length<=2)&&!e.a){for(t=0,r=0;r<e.b.length;){for(t!=r?(e.b[t]=e.b[r++],e.b[t+1]=e.b[r++]):r+=2,n=e.b[t+1];r<e.b.length&&!(n+1<e.b[r]);)if(n+1==e.b[r])e.b[t+1]=e.b[r+1],n=e.b[t+1],r+=2;else if(n>=e.b[r+1])r+=2;else if(n<e.b[r+1])e.b[t+1]=e.b[r+1],n=e.b[t+1],r+=2;else throw V(new Ao("Token#compactRanges(): Internel Error: ["+e.b[t]+","+e.b[t+1]+"] ["+e.b[r]+","+e.b[r+1]+"]"));t+=2}t!=e.b.length&&(i=ke(Hn,li,30,t,15,1),wc(e.b,0,i,0,t),e.b=i),e.a=!0}}function hZt(e,t){var n,i,r,o,a,d,b;for(a=E4(e.a).Jc();a.Ob();){if(o=c(a.Pb(),17),o.b.c.length>0)for(i=new ql(c(Ei(e.a,o),24)),Mt(),Rr(i,new Xde(t)),r=new os(o.b,0);r.b<r.d.gc();){switch(n=(gn(r.b<r.d.gc()),c(r.d.Xb(r.c=r.b++),70)),d=-1,c($(n,(Ge(),bd)),281).g){case 1:d=i.c.length-1;break;case 0:d=LHt(i);break;case 2:d=0}d!=-1&&(b=(ht(d,i.c.length),c(i.c[d],253)),Qe(b.b.b,n),c($(Vr(b.b.c.i),(Ie(),Rc)),24).Ec((Us(),Gj)),c($(Vr(b.b.c.i),Rc),24).Ec(Qj),nu(r),Me(n,Y6e,o))}Os(o,null),ss(o,null)}}function dZt(e,t){var n,i,r,o,a,d,b,v,x,T,A;for(x=new He,A=new Tr,a=t.b,r=0;r<a.c.length;r++){for(v=(ht(r,a.c.length),c(a.c[r],26)).a,x.c.length=0,o=0;o<v.c.length;o++)d=e.a[r][o],d.p=o,d.k==(Jt(),Ic)&&It(x.c,d),ku(c(Je(t.b,r),26).a,o,d),d.j.c.length=0,Or(d.j,c(c(Je(e.b,r),16).Xb(o),18)),S4(c($(d,(Ge(),ar)),103))||Me(d,ar,(es(),Fb));for(i=new U(x);i.a<i.c.c.length;)n=c(G(i),9),T=BWt(n),A.a.yc(T,A),A.a.yc(n,A)}for(b=A.a.ec().Jc();b.Ob();)d=c(b.Pb(),9),Mt(),Rr(d.j,(xS(),h6e)),d.i=!0,Bve(d)}function gZt(e,t){var n,i,r,o,a,d,b,v,x,T,A,L;if(t.Tg("Edge splitting",1),e.b.c.length<=2){t.Ug();return}for(o=new os(e.b,0),a=(gn(o.b<o.d.gc()),c(o.d.Xb(o.c=o.b++),26));o.b<o.d.gc();)for(r=a,a=(gn(o.b<o.d.gc()),c(o.d.Xb(o.c=o.b++),26)),b=new U(r.a);b.a<b.c.c.length;)for(d=c(G(b),9),x=new U(d.j);x.a<x.c.c.length;)for(v=c(G(x),12),i=new U(v.g);i.a<i.c.c.length;)n=c(G(i),17),A=n.d,T=A.i.c,T!=r&&T!=a&&Sie(n,(L=new Oh(e),pu(L,(Jt(),Cr)),Me(L,(Ie(),Si),n),Me(L,(Ge(),ar),(es(),kc)),zr(L,a),L));t.Ug()}function hst(e){var t,n,i,r,o,a,d,b,v,x,T,A;for(t=bh(e),o=Ze(Ye(Se(t,(Ge(),Gv)))),x=0,r=0,v=new on((!e.e&&(e.e=new Ct($i,e,7,4)),e.e));v.e!=v.i.gc();)b=c(un(v),74),d=lw(b),a=d&&o&&Ze(Ye(Se(b,_b))),A=no(c(ce((!b.c&&(b.c=new Ct(xn,b,5,8)),b.c),0),83)),d&&a?++r:d&&!a?++x:Wi(A)==t||A==t?++r:++x;for(i=new on((!e.d&&(e.d=new Ct($i,e,8,5)),e.d));i.e!=i.i.gc();)n=c(un(i),74),d=lw(n),a=d&&o&&Ze(Ye(Se(n,_b))),T=no(c(ce((!n.b&&(n.b=new Ct(xn,n,4,7)),n.b),0),83)),d&&a?++x:d&&!a?++r:Wi(T)==t||T==t?++x:++r;return x-r}function dst(e){var t,n,i,r,o;return e.g!=null?e.g:e.a<32?(e.g=Dtn(tc(e.f),ks(e.e)),e.g):(r=rre((!e.c&&(e.c=oD(tc(e.f))),e.c),0),e.e==0?r:(t=(!e.c&&(e.c=oD(tc(e.f))),e.c).e<0?2:1,n=r.length,i=-e.e+n-t,o=new g0,o.a+=""+r,e.e>0&&i>=-6?i>=0?R_(o,n-ks(e.e),"."):(zte(o,t-1,t-1,"0."),R_(o,t+1,nd(Cb,0,-ks(i)-1))):(n-t>=1&&(R_(o,t,"."),++n),R_(o,n,"E"),i>0&&R_(o,++n,"+"),R_(o,++n,""+YT(tc(i)))),e.g=o.a,e.g))}function pZt(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe;i=de(be($(t,(Ge(),aje)))),je=c($(t,mC),15).a,A=4,r=3,Oe=20/je,L=!1,b=0,a=gi;do{for(o=b!=1,T=b!=0,Xe=0,Q=e.a,re=0,me=Q.length;re<me;++re)I=Q[re],I.f=null,rtn(e,I,o,T,i),Xe+=p.Math.abs(I.a);do d=RKt(e,t);while(d);for(z=e.a,W=0,le=z.length;W<le;++W)if(I=z[W],n=Ape(I).a,n!=0)for(x=new U(I.e);x.a<x.c.c.length;)v=c(G(x),9),v.n.b+=n;b==0||b==1?(--A,A<=0&&(Xe<a||-A>je)?(b=2,a=gi):b==0?(b=1,a=Xe):(b=0,a=Xe)):(L=Xe>=a||a-Xe<Oe,a=Xe,L&&--r)}while(!(L&&r<=0))}function Xie(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I;for(I=new yn,o=e.a.ec().Jc();o.Ob();)i=c(o.Pb(),180),ci(I,i,n.$e(i));for(a=(Bn(e),e?new ql(e):U6(e.a.ec().Jc())),Rr(a,new JNe(I)),d=Zq(a),b=new zF(t),L=new yn,bl(L.f,t,b);d.a.gc()!=0;){for(v=null,x=null,T=null,r=d.a.ec().Jc();r.Ob();)if(i=c(r.Pb(),180),de(be(No(lo(I.f,i))))<=sr){if(Cc(L,i.a)&&!Cc(L,i.b)){x=i.b,T=i.a,v=i;break}if(Cc(L,i.b)&&!Cc(L,i.a)){x=i.a,T=i.b,v=i;break}}if(!v)break;A=new zF(x),Qe(c(No(lo(L.f,T)),227).a,A),bl(L.f,x,A),d.a.Ac(v)!=null}return b}function bb(e,t){var n,i,r,o,a,d;if(t){if(!e.a&&(e.a=new Bz),e.e==2){$z(e.a,t);return}if(t.e==1){for(r=0;r<t.Nm();r++)bb(e,t.Jm(r));return}if(d=e.a.a.c.length,d==0){$z(e.a,t);return}if(a=c(qm(e.a,d-1),122),!((a.e==0||a.e==10)&&(t.e==0||t.e==10))){$z(e.a,t);return}o=t.e==0?2:t.Km().length,a.e==0?(n=new bT,i=a.Im(),i>=Rs?Zs(n,Qwe(i)):K6(n,i&Dr),a=new Ree(10,null,0),DAt(e.a,a,d-1)):(n=(a.Km().length+o,new bT),Zs(n,a.Km())),t.e==0?(i=t.Im(),i>=Rs?Zs(n,Qwe(i)):K6(n,i&Dr)):Zs(n,t.Km()),c(a,521).b=n.a}}function bZt(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q;if(!n.dc()){for(d=0,A=0,i=n.Jc(),I=c(i.Pb(),15).a;d<t.f;){if(d==I&&(A=0,i.Ob()?I=c(i.Pb(),15).a:I=t.f+1),d!=A){for(Q=c(Je(e.b,d),26),L=c(Je(e.b,A),26),z=Zp(Q.a),T=new U(z);T.a<T.c.c.length;)if(x=c(G(T),9),R0(x,L.a.c.length,L),A==0)for(a=Zp(vr(x)),o=new U(a);o.a<o.c.c.length;)r=c(G(o),17),Bg(r,!0),Me(e,(Ie(),Mk),(Bt(),!0)),yst(e,r,1)}++A,++d}for(b=new os(e.b,0);b.b<b.d.gc();)v=(gn(b.b<b.d.gc()),c(b.d.Xb(b.c=b.b++),26)),v.a.c.length==0&&nu(b)}}function mZt(e,t,n){var i,r,o;if(r=c($(t,(Ge(),bJ)),285),r!=(zS(),eC)){switch(n.Tg("Horizontal Compaction",1),e.a=t,o=new kVe,i=new Xtt((o.d=t,o.c=c($(o.d,U1),225),uWt(o),xen(o),mWt(o),o.a)),Q9t(i,e.b),c($(t,$Se),427).g){case 1:cIe(i,new QXe(e.a));break;default:cIe(i,(sbe(),iht))}switch(r.g){case 1:K7(i);break;case 2:K7(iG(i,(_r(),vo)));break;case 3:K7(oIe(iG(K7(i),(_r(),vo)),new bA));break;case 4:K7(oIe(iG(K7(i),(_r(),vo)),new __e(o)));break;case 5:K7(H9t(i,Kdt))}iG(i,(_r(),po)),i.e=!0,ptn(o),n.Ug()}}function wZt(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le;for(a=t.b,x=a.o,b=a.d,i=de(be(fQ(a,(Ge(),Mf)))),r=de(be(fQ(a,k3))),v=de(be(fQ(a,$le))),d=new fY,ope(d,b.d,b.c,b.a,b.b),A=CWt(t,i,r,v),W=new U(t.d);W.a<W.c.c.length;){for(Q=c(G(W),108),I=Q.f.a.ec().Jc();I.Ob();)L=c(I.Pb(),342),o=L.a,T=xQt(L),n=(re=new tu,Xet(L,L.c,A,re),LXt(L,T,A,re),Xet(L,L.d,A,re),re),n=e.lg(L,T,n),xu(o.a),Ss(o.a,n),hr(new Tt(null,new Et(n,16)),new n$e(x,d));z=Q.i,z&&(zXt(Q,z,A,r),le=new Ms(z.g),w2e(x,d,le),Oi(le,z.j),w2e(x,d,le))}ope(b,d.d,d.c,d.a,d.b)}function vZt(e,t){GS();var n,i,r,o,a,d;return o=t.c-(e.c+e.b),r=e.c-(t.c+t.b),a=e.d-(t.d+t.a),n=t.d-(e.d+e.a),i=p.Math.max(r,o),d=p.Math.max(a,n),dh(),vf(fd),(p.Math.abs(i)<=fd||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:Hp(isNaN(i),isNaN(0)))>=0^(vf(fd),(p.Math.abs(d)<=fd||d==0||isNaN(d)&&isNaN(0)?0:d<0?-1:d>0?1:Hp(isNaN(d),isNaN(0)))>=0)?p.Math.max(d,i):(vf(fd),(p.Math.abs(i)<=fd||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:Hp(isNaN(i),isNaN(0)))>0?p.Math.sqrt(d*d+i*i):-p.Math.sqrt(d*d+i*i))}function yZt(e){var t,n,i,r;r=e.o,q2(),e.A.dc()||xi(e.A,Zke)?t=r.b:(e.D?t=p.Math.max(r.b,J7(e.f)):t=J7(e.f),e.A.Gc((Tu(),rI))&&!e.B.Gc((lu(),tM))&&(t=p.Math.max(t,J7(c(eo(e.p,(Ue(),nn)),256))),t=p.Math.max(t,J7(c(eo(e.p,Yt),256)))),n=hWe(e),n&&(t=p.Math.max(t,n.b)),e.A.Gc(sI)&&(e.q==(es(),e1)||e.q==kc)&&(t=p.Math.max(t,cq(c(eo(e.b,(Ue(),nn)),129))),t=p.Math.max(t,cq(c(eo(e.b,Yt),129))))),Ze(Ye(e.e.Rf().mf((In(),sy))))?r.b=p.Math.max(r.b,t):r.b=t,i=e.f.i,i.d=0,i.a=t,Bie(e.f)}function xZt(e,t,n,i,r,o,a,d){var b,v,x,T;switch(b=mf(Y(K(din,1),Pt,241,0,[t,n,i,r])),T=null,e.b.g){case 1:T=mf(Y(K(M8e,1),Pt,527,0,[new C8,new ZA,new e6]));break;case 0:T=mf(Y(K(M8e,1),Pt,527,0,[new e6,new ZA,new C8]));break;case 2:T=mf(Y(K(M8e,1),Pt,527,0,[new ZA,new C8,new e6]))}for(x=new U(T);x.a<x.c.c.length;)v=c(G(x),527),b.c.length>1&&(b=v.Gg(b,e.a,d));return b.c.length==1?c(Je(b,b.c.length-1),241):b.c.length==2?cZt((ht(0,b.c.length),c(b.c[0],241)),(ht(1,b.c.length),c(b.c[1],241)),a,o):null}function kZt(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I;r=new W5(e),o=new dnt,i=(aD(o.n),aD(o.p),cc(o.c),aD(o.f),aD(o.o),cc(o.q),cc(o.d),cc(o.g),cc(o.k),cc(o.e),cc(o.i),cc(o.j),cc(o.r),cc(o.b),A=Itt(o,r,null),$nt(o,r),A),t&&(b=new W5(t),a=zYt(b),kve(i,Y(K(pTe,1),Pt,528,0,[a]))),T=!1,x=!1,n&&(b=new W5(n),YG in b.a&&(T=S1(b,YG).oe().a),Hut in b.a&&(x=S1(b,Hut).oe().a)),v=gIe(vXe(new o4,T),x),OGt(new X$,i,v),YG in r.a&&wf(r,YG,null),(T||x)&&(d=new c4,Drt(v,d,T,x),wf(r,YG,d)),L=new wLe(o),HWe(new vZ(i),L),I=new vLe(o),HWe(new vZ(i),I)}function OZt(e,t,n){var i,r,o,a,d,b,v;for(n.Tg("Find roots",1),e.a.c.length=0,r=Pn(t.b,0);r.b!=r.d.c;)i=c(Dn(r),41),i.b.b==0&&(Me(i,(Ii(),sp),(Bt(),!0)),Qe(e.a,i));switch(e.a.c.length){case 0:o=new Wte(0,t,"DUMMY_ROOT"),Me(o,(Ii(),sp),(Bt(),!0)),Me(o,fue,!0),ei(t.b,o);break;case 1:break;default:for(a=new Wte(0,t,zG),b=new U(e.a);b.a<b.c.c.length;)d=c(G(b),41),v=new rbe(a,d),Me(v,(Ii(),fue),(Bt(),!0)),ei(a.a.a,v),ei(a.d,v),ei(d.b,v),Me(d,sp,!1);Me(a,(Ii(),sp),(Bt(),!0)),Me(a,fue,!0),ei(t.b,a)}n.Ug()}function gst(e){var t,n,i,r,o,a;for(Uc(e.a,new Py),n=new U(e.a);n.a<n.c.c.length;)t=c(G(n),227),i=Qr(As(c(e.b,68).c),c(t.b,68).c),Rht?(a=c(e.b,68).b,o=c(t.b,68).b,p.Math.abs(i.a)>=p.Math.abs(i.b)?(i.b=0,o.d+o.a>a.d&&o.d<a.d+a.a&&rq(i,p.Math.max(a.c-(o.c+o.b),o.c-(a.c+a.b)))):(i.a=0,o.c+o.b>a.c&&o.c<a.c+a.b&&rq(i,p.Math.max(a.d-(o.d+o.a),o.d-(a.d+a.a))))):rq(i,Rrt(c(e.b,68),c(t.b,68))),r=p.Math.sqrt(i.a*i.a+i.b*i.b),r=met(UE,t,r,i),rq(i,r),see(c(t.b,68),i),Uc(t.a,new Ude(i)),c(UE.b,68),ime(UE,eOe,t)}function SZt(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I;for(e.f=new uY,v=0,r=0,a=new U(e.e.b);a.a<a.c.c.length;)for(o=c(G(a),26),b=new U(o.a);b.a<b.c.c.length;){for(d=c(G(b),9),d.p=v++,i=new Ht(Xt(Fi(d).a.Jc(),new F));hn(i);)n=c(rn(i),17),n.p=r++;for(t=Uie(d),A=new U(d.j);A.a<A.c.c.length;)T=c(G(A),12),t&&(I=T.a.b,I!=p.Math.floor(I)&&(x=I-tb(tc(p.Math.round(I))),T.a.b-=x)),L=T.n.b+T.a.b,L!=p.Math.floor(L)&&(x=L-tb(tc(p.Math.round(L))),T.n.b-=x)}e.g=v,e.b=r,e.i=ke(uin,Pt,410,v,0,1),e.c=ke(lin,Pt,651,r,0,1),e.d.a.$b()}function An(e){var t,n,i,r,o,a,d,b,v;if(e.Nj())if(b=e.Oj(),e.i>0){if(t=new Cge(e.i,e.g),n=e.i,o=n<100?null:new p0(n),e.Rj())for(i=0;i<e.i;++i)a=e.g[i],o=e.Tj(a,o);if(p7(e),r=n==1?e.Gj(4,ce(t,0),null,0,b):e.Gj(6,t,null,-1,b),e.Kj()){for(i=new x4(t);i.e!=i.i.gc();)o=e.Mj(Nne(i),o);o?(o.lj(r),o.mj()):e.Hj(r)}else o?(o.lj(r),o.mj()):e.Hj(r)}else p7(e),e.Hj(e.Gj(6,(Mt(),$s),null,-1,b));else if(e.Kj())if(e.i>0){for(d=e.g,v=e.i,p7(e),o=v<100?null:new p0(v),i=0;i<v;++i)a=d[i],o=e.Mj(a,o);o&&o.mj()}else p7(e);else p7(e)}function fxe(e,t,n){var i,r,o,a,d,b,v,x,T,A;for(yWe(this),n==(Um(),rp)?Er(this.r,e):Er(this.w,e),x=sr,v=Gr,a=t.a.ec().Jc();a.Ob();)r=c(a.Pb(),49),d=c(r.a,457),i=c(r.b,17),b=i.c,b==e&&(b=i.d),d==rp?Er(this.r,b):Er(this.w,b),A=(Ue(),xl).Gc(b.j)?de(be($(b,(Ie(),Jj)))):Po(Y(K(Wr,1),Fe,8,0,[b.i.n,b.n,b.a])).b,x=p.Math.min(x,A),v=p.Math.max(v,A);for(T=(Ue(),xl).Gc(e.j)?de(be($(e,(Ie(),Jj)))):Po(Y(K(Wr,1),Fe,8,0,[e.i.n,e.n,e.a])).b,Fet(this,T,x,v),o=t.a.ec().Jc();o.Ob();)r=c(o.Pb(),49),itt(this,c(r.b,17));this.o=!1}function jZt(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn;return n=e.l&8191,i=e.l>>13|(e.m&15)<<9,r=e.m>>4&8191,o=e.m>>17|(e.h&255)<<5,a=(e.h&1048320)>>8,d=t.l&8191,b=t.l>>13|(t.m&15)<<9,v=t.m>>4&8191,x=t.m>>17|(t.h&255)<<5,T=(t.h&1048320)>>8,mt=n*d,wt=i*d,Lt=r*d,Rt=o*d,fn=a*d,b!=0&&(wt+=n*b,Lt+=i*b,Rt+=r*b,fn+=o*b),v!=0&&(Lt+=n*v,Rt+=i*v,fn+=r*v),x!=0&&(Rt+=n*x,fn+=i*x),T!=0&&(fn+=n*T),L=mt&uu,I=(wt&511)<<13,A=L+I,Q=mt>>22,W=wt>>9,re=(Lt&262143)<<4,le=(Rt&31)<<17,z=Q+W+re+le,je=Lt>>18,Oe=Rt>>5,Xe=(fn&4095)<<8,me=je+Oe+Xe,z+=A>>22,A&=uu,me+=z>>22,z&=uu,me&=z1,nl(A,z,me)}function pst(e){var t,n,i,r,o,a,d;if(d=c(Je(e.j,0),12),d.g.c.length!=0&&d.e.c.length!=0)throw V(new co("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(d.g.c.length!=0){for(o=sr,n=new U(d.g);n.a<n.c.c.length;)t=c(G(n),17),a=t.d.i,i=c($(a,(Ge(),SJ)),125),o=p.Math.min(o,a.n.a-i.b);return new Y8(Bn(o))}if(d.e.c.length!=0){for(r=Gr,n=new U(d.e);n.a<n.c.c.length;)t=c(G(n),17),a=t.c.i,i=c($(a,(Ge(),SJ)),125),r=p.Math.max(r,a.n.a+a.o.a+i.c);return new Y8(Bn(r))}return hT(),hT(),Goe}function bst(e){Dm(e,new pb(EY(h_(Am(Em(Mm(Cm(new h1,xw),"ELK VertiFlex"),"Tree layout algorithm that allows defining set vertical positions for nodes rather than automatically placing nodes on levels according to their topology."),new J$),H5e),Li((ok(),dI),Y(K(gI,1),Pe,235,0,[hI]))))),Be(e,xw,bw,20),Be(e,xw,mw,gTe),Be(e,xw,fj,Ve(Qwt)),Be(e,xw,mG,Ve(Uwt)),Be(e,xw,$L,(Bt(),!1)),Be(e,xw,hj,Ve(dTe)),Be(e,xw,$se,Ve(Gwt)),Be(e,xw,S4e,Ve(c9)),Be(e,xw,j4e,Ve(aae)),Be(e,xw,T4e,Ve(hTe)),Be(e,xw,E4e,Ve(uae))}function TZt(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q;for(n.Tg("Interactive cycle breaking",1),T=new He,L=new U(t.a);L.a<L.c.c.length;)for(A=c(G(L),9),A.p=1,I=W2e(A).a,x=rw(A,(Gs(),Yc)).Jc();x.Ob();)for(v=c(x.Pb(),12),o=new U(v.g);o.a<o.c.c.length;)i=c(G(o),17),z=i.d.i,z!=A&&(Q=W2e(z).a,Q<I&&It(T.c,i));for(a=new U(T);a.a<a.c.c.length;)i=c(G(a),17),Bg(i,!0);for(T.c.length=0,b=new U(t.a);b.a<b.c.c.length;)d=c(G(b),9),d.p>0&&ltt(e,d,T);for(r=new U(T);r.a<r.c.c.length;)i=c(G(r),17),Bg(i,!0);T.c.length=0,n.Ug()}function mst(e,t){var n,i,r,o,a,d,b;if(e.ml()){if(e.i>4)if(e.dk(t)){if(e.$k()){if(r=c(t,52),i=r.Bh(),b=i==e.e&&(e.kl()?r.vh(r.Ch(),e.gl())==e.hl():-1-r.Ch()==e.Jj()),e.ll()&&!b&&!i&&r.Gh()){for(o=0;o<e.i;++o)if(n=e.nl(c(e.g[o],57)),xe(n)===xe(t))return!0}return b}else if(e.kl()&&!e.jl()){if(a=c(t,57).Jh(Qs(c(e.Jk(),20))),xe(a)===xe(e.e))return!0;if(a==null||!c(a,57).Sh())return!1}}else return!1;if(d=$S(e,t),e.ll()&&!d){for(o=0;o<e.i;++o)if(r=e.nl(c(e.g[o],57)),xe(r)===xe(t))return!0}return d}else return $S(e,t)}function EZt(e,t){var n,i,r,o,a,d,b,v,x;for(n=0,x=new He,d=new U(t);d.a<d.c.c.length;){switch(a=c(G(d),12),Owe(e.b,e.d[a.p]),x.c.length=0,a.i.k.g){case 0:i=c($(a,(Ie(),Jl)),9),Uc(i.j,new hDe(x));break;case 1:jTt(_1(mi(new Tt(null,new Et(a.i.j,16)),new dDe(a))),new gDe(x));break;case 3:r=c($(a,(Ie(),Si)),12),Qe(x,new Is(r,$e(a.e.c.length+a.g.c.length)))}for(v=new U(x);v.a<v.c.c.length;)b=c(G(v),49),o=$1e(e,c(b.a,12)),o>e.d[a.p]&&(n+=$be(e.b,o)*c(b.b,15).a,T0(e.a,$e(o)));for(;!pT(e.a);)wme(e.b,c(M4(e.a),15).a)}return n}function CZt(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q;for(t.Tg(dlt,1),L=new He,x=p.Math.max(e.a.c.length,c($(e,(Ie(),ep)),15).a),n=x*c($(e,yP),15).a,d=xe($(e,(Ge(),Ik)))===xe((N0(),Fv)),z=new U(e.a);z.a<z.c.c.length;)for(I=c(G(z),9),i=new QO,b=d?rk(i,I,n,x):tk(i,I,x),A=rw(I,(Gs(),Yc)).Jc();A.Ob();)for(T=c(A.Pb(),12),a=new U(T.g);a.a<a.c.c.length;)r=c(G(a),17),Q=r.d.i,v=d?rk(i,Q,n,x):tk(i,Q,x),v<b&&It(L.c,r);for(o=new U(L);o.a<o.c.c.length;)r=c(G(o),17),Bg(r,!0),Me(e,Mk,(Bt(),!0));L.c.length=0,t.Ug()}function MZt(e,t){var n,i,r,o,a,d,b,v,x,T;if(x=c($(e,(Ie(),Yo)),64),i=c(Je(e.j,0),12),x==(Ue(),Kt)?$r(i,mn):x==mn&&$r(i,Kt),c($(t,(Ge(),Db)),185).Gc((Tu(),qb))){if(b=de(be($(e,Yj))),v=de(be($(e,Zj))),a=de(be($(e,Kv))),d=c($(t,Vv),24),d.Gc((Gl(),W1)))for(n=v,T=e.o.a/2-i.n.a,o=new U(i.f);o.a<o.c.c.length;)r=c(G(o),70),r.n.b=n,r.n.a=T-r.o.a/2,n+=r.o.b+a;else if(d.Gc(ap))for(o=new U(i.f);o.a<o.c.c.length;)r=c(G(o),70),r.n.a=b+e.o.a-i.n.a;ADt(new Nz((yT(),new Tee(t,!1,!1,new K9))),new eq(null,e,!1))}}function AZt(e,t){var n,i,r,o,a,d,b,v,x;if(t.c.length!=0){for(Mt(),eee(t.c,t.c.length,null),r=new U(t),i=c(G(r),157);r.a<r.c.c.length;)n=c(G(r),157),kme(i.e.c,n.e.c)&&!(h2e(Gze(i.e).b,n.e.d)||h2e(Gze(n.e).b,i.e.d))?i=(Or(i.k,n.k),Or(i.b,n.b),Or(i.c,n.c),Ss(i.i,n.i),Or(i.d,n.d),Or(i.j,n.j),o=p.Math.min(i.e.c,n.e.c),a=p.Math.min(i.e.d,n.e.d),d=p.Math.max(i.e.c+i.e.b,n.e.c+n.e.b),b=d-o,v=p.Math.max(i.e.d+i.e.a,n.e.d+n.e.a),x=v-a,WFe(i.e,o,a,b,x),PDt(i.f,n.f),!i.a&&(i.a=n.a),Or(i.g,n.g),Qe(i.g,n),i):(Mrt(e,i),i=n);Mrt(e,i)}}function NZt(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je;for(b=new He,o=new U(t.a);o.a<o.c.c.length;)for(r=c(G(o),9),d=new U(r.j);d.a<d.c.c.length;){for(a=c(G(d),12),x=null,le=ed(a.g),me=0,je=le.length;me<je;++me)re=le[me],bS(re.d.i,n)||(W=Jie(e,t,n,re,re.c,(Gs(),Yc),x),W!=x&&It(b.c,W),W.c&&(x=W));for(v=null,I=ed(a.e),z=0,Q=I.length;z<Q;++z)L=I[z],bS(L.c.i,n)||(W=Jie(e,t,n,L,L.d,(Gs(),Vl),v),W!=v&&It(b.c,W),W.c&&(v=W))}for(A=new U(b);A.a<A.c.c.length;)T=c(G(A),447),Lo(t.a,T.a,0)!=-1||Qe(t.a,T.a),T.c&&It(i.c,T)}function _Zt(e,t,n){var i,r,o,a,d,b,v,x,T,A,L;for(d=new U(t);d.a<d.c.c.length;)o=c(G(d),242),o.e=null,o.c=0;for(b=null,a=new U(t);a.a<a.c.c.length;)if(o=c(G(a),242),T=o.d[0],!(n&&T.k!=(Jt(),ur))){for(L=c($(T,(Ie(),Nk)),16).Jc();L.Ob();)A=c(L.Pb(),9),(!n||A.k==(Jt(),ur))&&((!o.e&&(o.e=new He),o.e).Ec(e.b[A.c.p][A.p]),++e.b[A.c.p][A.p].c);if(!n&&T.k==(Jt(),ur)){if(b)for(x=c(Ei(e.d,b),24).Jc();x.Ob();)for(v=c(x.Pb(),9),r=c(Ei(e.d,T),24).Jc();r.Ob();)i=c(r.Pb(),9),BCt(e.b[v.c.p][v.p]).Ec(e.b[i.c.p][i.p]),++e.b[i.c.p][i.p].c;b=T}}}function DZt(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I,z,Q;for(T=new Ms(c(Se(e,(NQ(),OTe)),8)),T.a=p.Math.max(T.a-n.b-n.c,0),T.b=p.Math.max(T.b-n.d-n.a,0),r=be(Se(e,yTe)),(r==null||(zt(r),r<=0))&&(r=1.3),d=new He,I=new on((!e.a&&(e.a=new _e(_n,e,10,11)),e.a));I.e!=I.i.gc();)L=c(un(I),19),a=new Aze(L),It(d.c,a);switch(A=c(Se(e,vae),327),A.g){case 3:Q=gKt(d,t,T.a,T.b,(v=i,zt(r),v));break;case 1:Q=nYt(d,t,T.a,T.b,(x=i,zt(r),x));break;default:Q=PZt(d,t,T.a,T.b,(b=i,zt(r),b))}o=new yH(Q),z=tre(o,t,n,T.a,T.b,i,(zt(r),r)),hw(e,z.a,z.b,!1,!0)}function LZt(e,t,n,i){var r,o,a,d,b,v;if(d=e.j,d==(Ue(),Bo)&&t!=(es(),Bh)&&t!=(es(),up)&&(d=Srt(e,n),$r(e,d),!(e.q?e.q:(Mt(),Mt(),Vd))._b((Ge(),Jv))&&d!=Bo&&(e.n.a!=0||e.n.b!=0)&&Me(e,Jv,Qqt(e,d))),t==(es(),e1)){switch(v=0,d.g){case 1:case 3:o=e.i.o.a,o>0&&(v=e.n.a/o);break;case 2:case 4:r=e.i.o.b,r>0&&(v=e.n.b/r)}Me(e,(Ie(),Dw),v)}if(b=e.o,a=e.a,i)a.a=i.a,a.b=i.b,e.d=!0;else if(t!=Bh&&t!=up&&d!=Bo)switch(d.g){case 1:a.a=b.a/2;break;case 2:a.a=b.a,a.b=b.b/2;break;case 3:a.a=b.a/2,a.b=b.b;break;case 4:a.b=b.b/2}else a.a=b.a/2,a.b=b.b/2}function uE(e){var t,n,i,r,o,a,d,b,v,x;if(e.Nj())if(x=e.Cj(),b=e.Oj(),x>0)if(t=new Wme(e.nj()),n=x,o=n<100?null:new p0(n),q_(e,n,t.g),r=n==1?e.Gj(4,ce(t,0),null,0,b):e.Gj(6,t,null,-1,b),e.Kj()){for(i=new on(t);i.e!=i.i.gc();)o=e.Mj(un(i),o);o?(o.lj(r),o.mj()):e.Hj(r)}else o?(o.lj(r),o.mj()):e.Hj(r);else q_(e,e.Cj(),e.Dj()),e.Hj(e.Gj(6,(Mt(),$s),null,-1,b));else if(e.Kj())if(x=e.Cj(),x>0){for(d=e.Dj(),v=x,q_(e,x,d),o=v<100?null:new p0(v),i=0;i<v;++i)a=d[i],o=e.Mj(a,o);o&&o.mj()}else q_(e,e.Cj(),e.Dj());else q_(e,e.Cj(),e.Dj())}function PZt(e,t,n,i,r){var o,a,d,b,v,x,T,A,L,I,z,Q;for(d=ke(is,io,30,e.c.length,15,1),A=new kq(new hN),P2e(A,e),v=0,z=new He;A.b.c.length!=0;)if(a=c(A.b.c.length==0?null:Je(A.b,0),168),v>1&&Al(a)*yu(a)/2>d[0]){for(o=0;o<z.c.length-1&&Al(a)*yu(a)/2>d[o];)++o;I=new Yh(z,0,o+1),T=new yH(I),x=Al(a)/yu(a),b=tre(T,t,new s4,n,i,r,x),Oi(Uf(T.e),b),T4(BS(A,T),sj),L=new Yh(z,o+1,z.c.length),P2e(A,L),z.c.length=0,v=0,Nqe(d,d.length,0)}else Q=A.b.c.length==0?null:Je(A.b,0),Q!=null&&Nte(A,0),v>0&&(d[v]=d[v-1]),d[v]+=Al(a)*yu(a),++v,It(z.c,a);return z}function IZt(e,t){var n,i,r,o;n=t.b,o=new ql(n.j),r=0,i=n.j,i.c.length=0,zm(c(ob(e.b,(Ue(),Kt),(ew(),Aw)),16),n),r=WD(o,r,new FO,i),zm(c(ob(e.b,Kt,Y0),16),n),r=WD(o,r,new ag,i),zm(c(ob(e.b,Kt,Mw),16),n),zm(c(ob(e.b,nn,Aw),16),n),zm(c(ob(e.b,nn,Y0),16),n),r=WD(o,r,new fg,i),zm(c(ob(e.b,nn,Mw),16),n),zm(c(ob(e.b,mn,Aw),16),n),r=WD(o,r,new f2,i),zm(c(ob(e.b,mn,Y0),16),n),r=WD(o,r,new Mp,i),zm(c(ob(e.b,mn,Mw),16),n),zm(c(ob(e.b,Yt,Aw),16),n),r=WD(o,r,new ug,i),zm(c(ob(e.b,Yt,Y0),16),n),zm(c(ob(e.b,Yt,Mw),16),n)}function RZt(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z;for(t.Tg("Layer size calculation",1),x=sr,v=Gr,r=!1,d=new U(e.b);d.a<d.c.c.length;)if(a=c(G(d),26),b=a.c,b.a=0,b.b=0,a.a.c.length!=0){for(r=!0,A=new U(a.a);A.a<A.c.c.length;)T=c(G(A),9),I=T.o,L=T.d,b.a=p.Math.max(b.a,I.a+L.b+L.c);i=c(Je(a.a,0),9),z=i.n.b-i.d.d,i.k==(Jt(),Ar)&&(z-=c($(e,(Ge(),MP)),125).d),o=c(Je(a.a,a.a.c.length-1),9),n=o.n.b+o.o.b+o.d.a,o.k==Ar&&(n+=c($(e,(Ge(),MP)),125).a),b.b=n-z,x=p.Math.min(x,z),v=p.Math.max(v,n)}r||(x=0,v=0),e.f.b=v-x,e.c.b-=x,t.Ug()}function wst(e,t,n){var i,r,o,a,d,b,v,x,T,A;for(a=t.d,d=n.d;a.a-d.a==0&&a.b-d.b==0;)b=!1,ae(t,254)&&ae(n,254)&&!b?(v=c(t,254).a,x=Qr(new Ms(Ame(v)),Mme(v)),i=2,r=new ze(x.a/p.Math.sqrt(x.a*x.a+x.b*x.b)*i,-x.b/p.Math.sqrt(x.a*x.a+x.b*x.b)*i),Oi(a,r),T=c(n,254).a,A=Qr(new Ms(Ame(T)),Mme(T)),i=x==A?-2:2,o=new ze(A.a/p.Math.sqrt(A.a*A.a+A.b*A.b)*i,-(A.b/p.Math.sqrt(A.a*A.a+A.b*A.b))*i),Oi(a,o),b=!0):(a.a+=cu(e,26)*dE+cu(e,27)*gE-.5,a.b+=cu(e,26)*dE+cu(e,27)*gE-.5,d.a+=cu(e,26)*dE+cu(e,27)*gE-.5,d.b+=cu(e,26)*dE+cu(e,27)*gE-.5)}function $Zt(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q;for(v=pGt(t),z=c($(t,(Ge(),hC)),302),vs(v,new ZNe(z)),Q=c($(t,jP),303),vs(v,new e_e(Q)),I=0,x=new He,o=new o7(v);o.a!=o.b;)r=c(JH(o),37),Nst(e.c,r),A=c($(r,(Ie(),mle)),16),I+=A.gc(),i=A.Jc(),Qe(x,new Is(r,i));for(n.Tg("Recursive hierarchical layout",I),L=c(c(Je(x,x.c.length-1),49).b,51);L.Ob();)for(b=new U(x);b.a<b.c.c.length;)for(d=c(G(b),49),A=c(d.b,51),a=c(d.a,37);A.Ob();)if(T=c(A.Pb(),43),ae(T,456)){if(a.e)break;T.If(a,n.dh(1));break}else T.If(a,n.dh(1));n.Ug()}function hxe(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W;for(o=0,a=0,v=new U(e.a);v.a<v.c.c.length;)d=c(G(v),9),o=p.Math.max(o,d.d.b),a=p.Math.max(a,d.d.c);for(b=new U(e.a);b.a<b.c.c.length;){switch(d=c(G(b),9),n=c($(d,(Ge(),pd)),259),n.g){case 1:I=0;break;case 2:I=1;break;case 5:I=.5;break;default:for(i=0,T=0,L=new U(d.j);L.a<L.c.c.length;)A=c(G(L),12),A.e.c.length==0||++i,A.g.c.length==0||++T;i+T==0?I=.5:I=T/(i+T)}Q=e.c,x=d.o.a,W=(Q.a-x)*I,I>.5?W-=a*2*(I-.5):I<.5&&(W+=o*2*(.5-I)),r=d.d.b,W<r&&(W=r),z=d.d.c,W>Q.a-z-x&&(W=Q.a-z-x),d.n.a=t+W}}function BZt(e){var t,n,i,r,o;if(i=c($(e,(Ge(),$o)),166),i==(Su(),G1)){for(n=new Ht(Xt(vr(e).a.Jc(),new F));hn(n);)if(t=c(rn(n),17),!YUe(t))throw V(new Uh(Kre+KD(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(i==Nb){for(o=new Ht(Xt(Fi(e).a.Jc(),new F));hn(o);)if(r=c(rn(o),17),!YUe(r))throw V(new Uh(Kre+KD(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 aE(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I;if(e.e&&e.c.c<e.f)throw V(new co("Expected "+e.f+" phases to be configured; only found "+e.c.c));for(x=c(Gf(e.g),10),L=Nd(e.f),o=x,d=0,v=o.length;d<v;++d)i=o[d],T=c(yD(e,i.g),173),T?Qe(L,c(oYe(e,T),86)):L.c.push(null);for(I=new xr,hr(mi(Qc(mi(new Tt(null,new Et(L,16)),new W$),new VDe(t)),new N8),new XDe(I)),Fu(I,e.a),n=new He,r=x,a=0,b=r.length;a<b;++a)i=r[a],Or(n,NWe(e,Dee(c(yD(I,i.g),22)))),A=c(Je(L,i.g),86),A&&It(n.c,A);return Or(n,NWe(e,Dee(c(yD(I,x[x.length-1].g+1),22)))),n}function zZt(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me;for(A=new He,r=new He,z=null,d=t.Jc();d.Ob();)a=c(d.Pb(),15),o=new nDe(a.a),It(r.c,o),z&&(o.d=z,z.e=o),z=o;for(le=lYt(e),x=0;x<r.c.length;++x){for(L=null,Q=Ybe((ht(0,r.c.length),c(r.c[0],657))),n=null,i=sr,T=1;T<e.b.c.length;++T)W=Q?p.Math.abs(Q.b-T):p.Math.abs(T-L.b)+1,I=L?p.Math.abs(T-L.b):W+1,I<W?(v=L,b=I):(v=Q,b=W),re=(me=de(be($(e,(Ge(),Sje)))),le[T]+p.Math.pow(b,me)),re<i&&(i=re,n=v,n.c=T),Q&&T==Q.b&&(L=Q,Q=jAt(Q));n&&(Qe(A,$e(n.c)),n.a=!0,CBt(n))}return Mt(),eee(A.c,A.c.length,null),A}function dxe(e,t,n){var i,r,o,a,d,b;if(t.l==0&&t.m==0&&t.h==0)throw V(new Qz("divide by zero"));if(e.l==0&&e.m==0&&e.h==0)return n&&(V0=nl(0,0,0)),nl(0,0,0);if(t.h==ML&&t.m==0&&t.l==0)return WBt(e,n);if(b=!1,t.h>>19!=0&&(t=yS(t),b=!b),a=OVt(t),o=!1,r=!1,i=!1,e.h==ML&&e.m==0&&e.l==0)if(r=!0,o=!0,a==-1)e=pBe((aS(),Ske)),i=!0,b=!b;else return d=rye(e,a),b&&Vte(d),n&&(V0=nl(0,0,0)),d;else e.h>>19!=0&&(o=!0,e=yS(e),i=!0,b=!b);return a!=-1?O$t(e,a,b,o,n):H2e(e,t)<0?(n&&(o?V0=yS(e):V0=nl(e.l,e.m,e.h)),nl(0,0,0)):mKt(i?e:nl(e.l,e.m,e.h),t,b,o,r,n)}function Wie(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I;if(a=e.e,b=t.e,a==0)return t;if(b==0)return e;if(o=e.d,d=t.d,o+d==2)return n=Zr(e.a[0],Js),i=Zr(t.a[0],Js),a==b?(x=Ns(n,i),I=Gn(x),L=Gn(Jp(x,32)),L==0?new T1(a,I):new Vp(a,2,Y(K(Hn,1),li,30,15,[I,L]))):(rd(),LF(a<0?Ha(i,n):Ha(n,i),0)?I0(a<0?Ha(i,n):Ha(n,i)):n7(I0(Ag(a<0?Ha(i,n):Ha(n,i)))));if(a==b)A=a,T=o>=d?lte(e.a,o,t.a,d):lte(t.a,d,e.a,o);else{if(r=o!=d?o>d?1:-1:kwe(e.a,t.a,o),r==0)return rd(),QE;r==1?(A=a,T=ote(e.a,o,t.a,d)):(A=b,T=ote(t.a,d,e.a,o))}return v=new Vp(A,T.length,T),a7(v),v}function FZt(e,t){var n,i,r,o,a,d,b;if(!(e.g>t.f||t.g>e.f)){for(n=0,i=0,a=e.w.a.ec().Jc();a.Ob();)r=c(a.Pb(),12),sne(Po(Y(K(Wr,1),Fe,8,0,[r.i.n,r.n,r.a])).b,t.g,t.f)&&++n;for(d=e.r.a.ec().Jc();d.Ob();)r=c(d.Pb(),12),sne(Po(Y(K(Wr,1),Fe,8,0,[r.i.n,r.n,r.a])).b,t.g,t.f)&&--n;for(b=t.w.a.ec().Jc();b.Ob();)r=c(b.Pb(),12),sne(Po(Y(K(Wr,1),Fe,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&++i;for(o=t.r.a.ec().Jc();o.Ob();)r=c(o.Pb(),12),sne(Po(Y(K(Wr,1),Fe,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&--i;n<i?new rH(e,t,i-n):i<n?new rH(t,e,n-i):(new rH(t,e,0),new rH(e,t,0))}}function qZt(e){var t,n,i,r,o,a,d,b,v,x;for(t=new hh,n=new hh,v=St(eP,(r=iE(e.b,Kn),r?qn(Kf((!r.b&&(r.b=new wu((At(),zs),Zo,r)),r.b),Ua)):null)),b=0;b<e.i;++b)d=c(e.g[b],182),ae(d,104)?(a=c(d,20),(a.Bb&rc)!=0?((a.Bb&od)==0||!v&&(o=iE(a,Kn),(o?qn(Kf((!o.b&&(o.b=new wu((At(),zs),Zo,o)),o.b),WG)):null)==null))&&Ln(t,a):(x=Qs(a),x&&(x.Bb&rc)!=0||((a.Bb&od)==0||!v&&(i=iE(a,Kn),(i?qn(Kf((!i.b&&(i.b=new wu((At(),zs),Zo,i)),i.b),WG)):null)==null))&&Ln(n,a))):(Hs(),c(d,69).vk()&&(d.qk()||(Ln(t,d),Ln(n,d))));av(t),av(n),e.a=c(t.g,258),c(n.g,258)}function Jx(e,t,n){var i,r,o,a,d,b,v,x,T;if(Ki(t,n)>=0)return n;switch(Hm(ao(e,n))){case 2:{if(St("",Lg(e,n.ok()).ve())){if(b=tD(ao(e,n)),d=tS(ao(e,n)),x=aye(e,t,b,d),x)return x;for(r=zye(e,t),a=0,T=r.gc();a<T;++a)if(x=c(r.Xb(a),182),mye(gee(ao(e,x)),b))return x}return null}case 4:{if(St("",Lg(e,n.ok()).ve())){for(i=n;i;i=EDt(ao(e,i)))if(v=tD(ao(e,i)),d=tS(ao(e,i)),x=fye(e,t,v,d),x)return x;if(b=tD(ao(e,n)),St(Tb,b))return J2e(e,t);for(o=Die(e,t),a=0,T=o.gc();a<T;++a)if(x=c(o.Xb(a),182),mye(gee(ao(e,x)),b))return x}return null}default:return null}}function HZt(e,t,n){var i,r,o,a,d,b,v,x;if(n.gc()==0)return!1;if(d=(Hs(),c(t,69).vk()),o=d?n:new Xm(n.gc()),R1(e.e,t)){if(t.Qi())for(v=n.Jc();v.Ob();)b=v.Pb(),KQ(e,t,b,ae(t,104)&&(c(t,20).Bb&Rs)!=0)||(r=Rd(t,b),o.Gc(r)||o.Ec(r));else if(!d)for(v=n.Jc();v.Ob();)b=v.Pb(),r=Rd(t,b),o.Ec(r)}else{if(n.gc()>1)throw V(new qt(iP));for(x=rl(e.e.Ah(),t),i=c(e.g,123),a=0;a<e.i;++a)if(r=i[a],x.$l(r.Jk())){if(n.Gc(d?r:r.kd()))return!1;for(v=n.Jc();v.Ob();)b=v.Pb(),c($x(e,a,d?c(b,76):Rd(t,b)),76);return!0}d||(r=Rd(t,n.Jc().Pb()),o.Ec(r))}return dr(e,o)}function QZt(e,t){var n,i,r,o,a,d,b,v,x;for(x=new _i,d=(v=new m1(e.c).a.vc().Jc(),new N2(v));d.a.Ob();)o=(r=c(d.a.Pb(),45),c(r.kd(),459)),o.b==0&&rr(x,o,x.c.b,x.c);for(;x.b!=0;)for(o=c(x.b==0?null:(gn(x.b!=0),ma(x,x.a.a)),459),o.a==null&&(o.a=0),i=new U(o.d);i.a<i.c.c.length;)n=c(G(i),659),n.b.a==null?n.b.a=de(o.a)+n.a:t.o==(ph(),Rb)?n.b.a=p.Math.min(de(n.b.a),de(o.a)+n.a):n.b.a=p.Math.max(de(n.b.a),de(o.a)+n.a),--n.b.b,n.b.b==0&&ei(x,n.b);for(a=(b=new m1(e.c).a.vc().Jc(),new N2(b));a.a.Ob();)o=(r=c(a.a.Pb(),45),c(r.kd(),459)),t.i[o.c.p]=o.a}function GZt(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I;for(x=n+t.c.c.a,L=new U(t.j);L.a<L.c.c.length;){if(A=c(G(L),12),r=Po(Y(K(Wr,1),Fe,8,0,[A.i.n,A.n,A.a])),t.k==(Jt(),Ic)&&(d=c($(A,(Ie(),Si)),12),r.a=Po(Y(K(Wr,1),Fe,8,0,[d.i.n,d.n,d.a])).a,t.n.a=r.a),a=new ze(0,r.b),A.j==(Ue(),nn))a.a=x;else if(A.j==Yt)a.a=n;else continue;if(I=p.Math.abs(r.a-a.a),!(I<=i&&!Kqt(t)))for(o=A.g.c.length+A.e.c.length>1,v=new wh(A.b);_o(v.a)||_o(v.b);)b=c(_o(v.a)?G(v.a):G(v.b),17),T=b.c==A?b.d:b.c,p.Math.abs(Po(Y(K(Wr,1),Fe,8,0,[T.i.n,T.n,T.a])).b-a.b)>1&&jXt(e,b,a,o,A)}}function UZt(e){var t,n,i,r,o,a;if(r=new os(e.e,0),i=new os(e.a,0),e.d)for(n=0;n<e.b;n++)gn(r.b<r.d.gc()),r.d.Xb(r.c=r.b++);else for(n=0;n<e.b-1;n++)gn(r.b<r.d.gc()),r.d.Xb(r.c=r.b++),nu(r);for(t=de((gn(r.b<r.d.gc()),be(r.d.Xb(r.c=r.b++))));e.f-t>Hse;){for(o=t,a=0;p.Math.abs(t-o)<Hse;)++a,t=de((gn(r.b<r.d.gc()),be(r.d.Xb(r.c=r.b++)))),gn(i.b<i.d.gc()),i.d.Xb(i.c=i.b++);a<e.b&&(gn(r.b>0),r.a.Xb(r.c=--r.b),iYt(e,e.b-a,o,i,r),gn(r.b<r.d.gc()),r.d.Xb(r.c=r.b++)),gn(i.b>0),i.a.Xb(i.c=--i.b)}if(!e.d)for(n=0;n<e.b-1;n++)gn(r.b<r.d.gc()),r.d.Xb(r.c=r.b++),nu(r);e.d=!0,e.c=!0}function Ai(){Ai=Z,kEe=(I1e(),sc).b,nyt=c(ce(De(sc.b),0),38),Hb=c(ce(De(sc.b),1),38),tyt=c(ce(De(sc.b),2),38),I3=sc.bb,c(ce(De(sc.bb),0),38),c(ce(De(sc.bb),1),38),R3=sc.fb,cM=c(ce(De(sc.fb),0),38),c(ce(De(sc.fb),1),38),c(ce(De(sc.fb),2),20),Qw=sc.qb,gyt=c(ce(De(sc.qb),0),38),c(ce(De(sc.qb),1),20),c(ce(De(sc.qb),2),20),xI=c(ce(De(sc.qb),3),38),kI=c(ce(De(sc.qb),4),38),uM=c(ce(De(sc.qb),6),38),lM=c(ce(De(sc.qb),5),20),iyt=sc.j,ryt=sc.k,syt=sc.q,oyt=sc.w,cyt=sc.B,lyt=sc.A,uyt=sc.C,ayt=sc.D,fyt=sc._,hyt=sc.cb,dyt=sc.hb}function JZt(e,t,n){var i,r,o,a,d,b,v,x,T,A,L;e.c=0,e.b=0,i=2*t.c.a.c.length+1;e:for(T=n.Jc();T.Ob();){if(x=c(T.Pb(),12),d=x.j==(Ue(),Kt)||x.j==mn,L=0,d){if(A=c($(x,(Ie(),Jl)),9),!A)continue;L+=pWt(e,i,x,A)}else{for(v=new U(x.g);v.a<v.c.c.length;)if(b=c(G(v),17),r=b.d,r.i.c==t.c){Qe(e.a,x);continue e}else L+=e.g[r.p];for(a=new U(x.e);a.a<a.c.c.length;)if(o=c(G(a),17),r=o.c,r.i.c==t.c){Qe(e.a,x);continue e}else L-=e.g[r.p]}x.e.c.length+x.g.c.length>0?(e.f[x.p]=L/(x.e.c.length+x.g.c.length),e.c=p.Math.min(e.c,e.f[x.p]),e.b=p.Math.max(e.b,e.f[x.p])):d&&(e.f[x.p]=L)}}function VZt(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 XZt(e,t,n){var i,r,o,a;for(n.Tg("Graph transformation ("+e.a+")",1),a=Zp(t.a),o=new U(t.b);o.a<o.c.c.length;)r=c(G(o),26),Or(a,r.a);if(i=c($(t,(Ge(),QSe)),424),i==(jD(),tJ))switch(c($(t,Vu),87).g){case 2:f7(t,a);break;case 3:R7(t,a);break;case 4:e.a==(gS(),hP)?(R7(t,a),Xee(t,a)):(Xee(t,a),R7(t,a))}else if(e.a==(gS(),hP))switch(c($(t,Vu),87).g){case 2:f7(t,a),Xee(t,a);break;case 3:R7(t,a),f7(t,a);break;case 4:f7(t,a),R7(t,a)}else switch(c($(t,Vu),87).g){case 2:f7(t,a),Xee(t,a);break;case 3:f7(t,a),R7(t,a);break;case 4:R7(t,a),f7(t,a)}n.Ug()}function WZt(e){var t,n,i,r,o,a,d,b;for(o=new U(e.a.b);o.a<o.c.c.length;)r=c(G(o),84),r.b.c=r.g.c,r.b.d=r.g.d;for(b=new ze(sr,sr),t=new ze(Gr,Gr),i=new U(e.a.b);i.a<i.c.c.length;)n=c(G(i),84),b.a=p.Math.min(b.a,n.g.c),b.b=p.Math.min(b.b,n.g.d),t.a=p.Math.max(t.a,n.g.c+n.g.b),t.b=p.Math.max(t.b,n.g.d+n.g.a);for(d=Cq(e.c).a.nc();d.Ob();)a=c(d.Pb(),49),n=c(a.b,84),b.a=p.Math.min(b.a,n.g.c),b.b=p.Math.min(b.b,n.g.d),t.a=p.Math.max(t.a,n.g.c+n.g.b),t.b=p.Math.max(t.b,n.g.d+n.g.a);e.d=XF(new ze(b.a,b.b)),e.e=Qr(new ze(t.a,t.b),b),e.a.a.c.length=0,e.a.b.c.length=0}function vst(e,t,n){var i,r,o,a,d,b;for(pa(t,(Z4(),c9))?b=de(be(Se(t,c9))):b=n,r=b+t.f+p.Math.max(c(Se(t,(In(),V1)),125).a,e.b),d=new on((!t.e&&(t.e=new Ct($i,t,7,4)),t.e));d.e!=d.i.gc();)if(o=c(un(d),74),i=c(ce((!o.c&&(o.c=new Ct(xn,o,5,8)),o.c),0),19),pa(i,c9)&&r>de(be(Se(i,c9)))+c(Se(i,V1),125).d)throw V(new Uh("Invalid vertical constraints. Node "+i.k+" has a vertical constraint that is too low for its ancestors."));for(a=new on((!t.e&&(t.e=new Ct($i,t,7,4)),t.e));a.e!=a.i.gc();)o=c(un(a),74),i=c(ce((!o.c&&(o.c=new Ct(xn,o,5,8)),o.c),0),19),vst(e,i,r)}function KZt(e){m7();var t,n,i,r,o,a,d;for(d=new iPe,n=new U(e);n.a<n.c.c.length;)t=c(G(n),148),(!d.b||t.c>=d.b.c)&&(d.b=t),(!d.c||t.c<=d.c.c)&&(d.d=d.c,d.c=t),(!d.e||t.d>=d.e.d)&&(d.e=t),(!d.f||t.d<=d.f.d)&&(d.f=t);return i=new hQ((vS(),Cw)),lD(e,Adt,new Qo(Y(K(aP,1),Pt,378,0,[i]))),a=new hQ(Iv),lD(e,Mdt,new Qo(Y(K(aP,1),Pt,378,0,[a]))),r=new hQ(Pv),lD(e,Cdt,new Qo(Y(K(aP,1),Pt,378,0,[r]))),o=new hQ(l3),lD(e,Edt,new Qo(Y(K(aP,1),Pt,378,0,[o]))),kie(i.c,Cw),kie(r.c,Pv),kie(o.c,l3),kie(a.c,Iv),d.a.c.length=0,Or(d.a,i.c),Or(d.a,ju(r.c)),Or(d.a,o.c),Or(d.a,ju(a.c)),d}function YZt(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I;for(t.Tg(Rlt,1),L=de(be(Se(e,(Fd(),ty)))),a=de(be(Se(e,(Th(),IC)))),d=c(Se(e,PC),100),Gme((!e.a&&(e.a=new _e(_n,e,10,11)),e.a)),x=fst((!e.a&&(e.a=new _e(_n,e,10,11)),e.a),L,a),!e.a&&(e.a=new _e(_n,e,10,11)),v=new U(x);v.a<v.c.c.length;)for(b=c(G(v),189),r=new U(b.a);r.a<r.c.c.length;)i=c(G(r),175),A=new abe(i.s,i.t,de(be(Se(e,IC)))),Kme(A,i),Qe(b.d,A);T=qZe(x,a),I=p.Math.max(T.a,de(be(Se(e,LC)))-(d.b+d.c)),o=p.Math.max(T.b,de(be(Se(e,YJ)))-(d.d+d.a)),n=o-T.b,ri(e,DC,n),ri(e,Bk,I),ri(e,r9,o+n),ri(e,ZJ,x),t.Ug()}function ZZt(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z;for(v=new Ad,x=new Ad,I=new Ad,z=new Ad,b=de(be($(t,(Ge(),Ib)))),o=de(be($(t,Mf))),d=new U(n);d.a<d.c.c.length;)if(a=c(G(d),9),T=c($(a,(Ie(),Yo)),64),T==(Ue(),Kt))for(x.a.yc(a,x),r=new Ht(Xt(vr(a).a.Jc(),new F));hn(r);)i=c(rn(r),17),Er(v,i.c.i);else if(T==mn)for(z.a.yc(a,z),r=new Ht(Xt(vr(a).a.Jc(),new F));hn(r);)i=c(rn(r),17),Er(I,i.c.i);v.a.gc()!=0&&(A=new mee(2,o),L=mxe(A,t,v,x,-b-t.c.b),L>0&&(e.a=b+(L-1)*o,t.c.b+=e.a,t.f.b+=e.a)),I.a.gc()!=0&&(A=new mee(1,o),L=mxe(A,t,I,z,t.f.b+b-t.c.b),L>0&&(t.f.b+=b+(L-1)*o))}function yst(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me;for(x=de(be($(e,(Ge(),Pb)))),i=de(be($(e,yje))),A=new L5,Me(A,Pb,x+i),v=t,W=v.d,z=v.c.i,re=v.d.i,Q=Lge(z.c),le=Lge(re.c),r=new He,T=Q;T<=le;T++)d=new Oh(e),pu(d,(Jt(),Cr)),Me(d,(Ie(),Si),v),Me(d,ar,(es(),kc)),Me(d,CJ,A),L=c(Je(e.b,T),26),T==Q?R0(d,L.a.c.length-n,L):zr(d,L),me=de(be($(v,Jg))),me<0&&(me=0,Me(v,Jg,me)),d.o.b=me,I=p.Math.floor(me/2),a=new mc,$r(a,(Ue(),Yt)),Do(a,d),a.n.b=I,b=new mc,$r(b,nn),Do(b,d),b.n.b=I,ss(v,a),o=new Gm,nc(o,v),Me(o,go,null),Os(o,b),ss(o,W),eHt(d,v,o),It(r.c,o),v=o;return r}function een(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le;if(z=t.b.c.length,!(z<3)){for(L=ke(Hn,li,30,z,15,1),T=0,x=new U(t.b);x.a<x.c.c.length;)v=c(G(x),26),L[T++]=v.a.c.length;for(A=new os(t.b,2),i=1;i<z-1;i++)for(n=(gn(A.b<A.d.gc()),c(A.d.Xb(A.c=A.b++),26)),I=new U(n.a),o=0,d=0,b=0;b<L[i+1];b++)if(le=c(G(I),9),b==L[i+1]-1||Tve(e,le,i+1,i)){for(a=L[i]-1,Tve(e,le,i+1,i)&&(a=e.c.e[c(c(c(Je(e.c.b,le.p),16).Xb(0),49).a,9).p]);d<=b;){if(re=c(Je(n.a,d),9),!Tve(e,re,i+1,i))for(W=c(Je(e.c.b,re.p),16).Jc();W.Ob();)Q=c(W.Pb(),49),r=e.c.e[c(Q.a,9).p],(r<o||r>a)&&Er(e.b,c(Q.b,17));++d}o=a}}}function Kie(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le;for(b=c($g(e,(Ue(),Yt)).Jc().Pb(),12).e,L=c($g(e,nn).Jc().Pb(),12).g,d=b.c.length,le=mh(c(Je(e.j,0),12));d-- >0;){for(z=(ht(0,b.c.length),c(b.c[0],17)),r=(ht(0,L.c.length),c(L.c[0],17)),re=r.d.e,o=Lo(re,r,0),YDt(z,r.d,o),Os(r,null),ss(r,null),I=z.a,t&&ei(I,new Ms(le)),i=Pn(r.a,0);i.b!=i.d.c;)n=c(Dn(i),8),ei(I,new Ms(n));for(W=z.b,A=new U(r.b);A.a<A.c.c.length;)T=c(G(A),70),It(W.c,T);if(Q=c($(z,(Ge(),go)),79),a=c($(r,go),79),a)for(Q||(Q=new tu,Me(z,go,Q)),x=Pn(a,0);x.b!=x.d.c;)v=c(Dn(x),8),ei(Q,new Ms(v))}}function ten(e,t){var n,i,r,o,a,d,b,v;for(t.Tg("Sort By Input Model "+$(e,(Ge(),Kd)),1),o=0,r=new U(e.b);r.a<r.c.c.length;){for(i=c(G(r),26),i.p=o,v=o==0?0:o-1,b=c(Je(e.b,v),26),n=new ewe(e,b,c($(e,Kd),270),c($(e,Sle),353),(c($(e,aC),330),!0)),Pnt(i.a,n),d=new U(i.a);d.a<d.c.c.length;)a=c(G(d),9),xe($(a,ar))!==xe((es(),Fb))&&xe($(a,ar))!==xe(kc)&&(Mt(),Rr(a.j,new ZKe(e,b,c($(e,Kd),270),HZe(a),Ze(Ye($(e,jle))))),t.ah("Node "+a+" ports: "+a.j));n=new ewe(e,b,c($(e,Kd),270),c($(e,Sle),353),(c($(e,aC),330),!1)),Pnt(i.a,n),t.ah("Layer "+o+": "+i),++o}t.Ug()}function gxe(e,t){var n;if(t==null||St(t,ml)||t.length==0&&e.k!=(z0(),Fk))return null;switch(e.k.g){case 1:return cQ(t,Oj)?(Bt(),Dj):cQ(t,loe)?(Bt(),X0):null;case 2:try{return $e(Hu(t,ls,gi))}catch(i){if(i=kr(i),ae(i,133))return null;throw V(i)}case 4:try{return mv(t)}catch(i){if(i=kr(i),ae(i,133))return null;throw V(i)}case 3:return t;case 5:return dKe(e),Gtt(e,t);case 6:return dKe(e),iVt(e,e.a,t);case 7:try{return n=lJt(e),n.ag(t),n}catch(i){if(i=kr(i),ae(i,33))return null;throw V(i)}default:throw V(new co("Invalid type set for this layout option."))}}function pxe(e){var t;switch(e.d){case 1:{if(e.Qj())return e.o!=-2;break}case 2:{if(e.Qj())return e.o==-2;break}case 3:case 5:case 4:case 6:case 7:return e.o>-2;default:return!1}switch(t=e.Pj(),e.p){case 0:return t!=null&&Ze(Ye(t))!=$T(e.k,0);case 1:return t!=null&&c(t,224).a!=Gn(e.k)<<24>>24;case 2:return t!=null&&c(t,183).a!=(Gn(e.k)&Dr);case 6:return t!=null&&$T(c(t,192).a,e.k);case 5:return t!=null&&c(t,15).a!=Gn(e.k);case 7:return t!=null&&c(t,193).a!=Gn(e.k)<<16>>16;case 3:return t!=null&&de(be(t))!=e.j;case 4:return t!=null&&c(t,165).a!=e.j;default:return t==null?e.n!=null:!xi(t,e.n)}}function vL(e,t,n){var i,r,o,a;return e.ml()&&e.ll()&&(a=aee(e,c(n,57)),xe(a)!==xe(n))?(e.vj(t),e.Bj(t,GJe(e,t,a)),e.$k()&&(o=(r=c(n,52),e.kl()?e.il()?r.Qh(e.b,Qs(c(Dt(hl(e.b),e.Jj()),20)).n,c(Dt(hl(e.b),e.Jj()).Fk(),29).ik(),null):r.Qh(e.b,Ki(r.Ah(),Qs(c(Dt(hl(e.b),e.Jj()),20))),null,null):r.Qh(e.b,-1-e.Jj(),null,null)),!c(a,52).Mh()&&(o=(i=c(a,52),e.kl()?e.il()?i.Oh(e.b,Qs(c(Dt(hl(e.b),e.Jj()),20)).n,c(Dt(hl(e.b),e.Jj()).Fk(),29).ik(),o):i.Oh(e.b,Ki(i.Ah(),Qs(c(Dt(hl(e.b),e.Jj()),20))),null,o):i.Oh(e.b,-1-e.Jj(),null,o))),o&&o.mj()),bu(e.b)&&e.Hj(e.Gj(9,n,a,t,!1)),a):n}function xst(e){var t,n,i,r,o,a,d,b,v,x;for(i=new He,a=new U(e.e.a);a.a<a.c.c.length;){for(r=c(G(a),126),x=0,r.k.c.length=0,n=new U(Px(r));n.a<n.c.c.length;)t=c(G(n),220),t.f&&(Qe(r.k,t),++x);x==1&&It(i.c,r)}for(o=new U(i);o.a<o.c.c.length;)for(r=c(G(o),126);r.k.c.length==1;){for(v=c(G(new U(r.k)),220),e.b[v.c]=v.g,d=v.d,b=v.e,n=new U(Px(r));n.a<n.c.c.length;)t=c(G(n),220),xi(t,v)||(t.f?d==t.d||b==t.e?e.b[v.c]-=e.b[t.c]-t.g:e.b[v.c]+=e.b[t.c]-t.g:r==d?t.d==r?e.b[v.c]+=t.g:e.b[v.c]-=t.g:t.d==r?e.b[v.c]-=t.g:e.b[v.c]+=t.g);dl(d.k,v),dl(b.k,v),d==r?r=v.e:r=v.d}}function kst(e,t){var n,i,r,o,a,d,b,v,x,T,A,L;if(n=c(eo(e.b,t),129),b=c(c(Ei(e.r,t),24),85),b.dc()){n.n.b=0,n.n.c=0;return}for(v=e.u.Gc((Gl(),W1)),a=0,d=b.Jc(),x=null,T=0,A=0;d.Ob();)i=c(d.Pb(),116),r=de(be(i.b.mf((WF(),SU)))),o=i.b.Kf().a,e.A.Gc((Tu(),qb))&&Jit(e,t),x?(L=A+x.d.c+e.w+i.d.b,a=p.Math.max(a,(dh(),vf(Ch),p.Math.abs(T-r)<=Ch||T==r||isNaN(T)&&isNaN(r)?0:L/(r-T)))):e.C&&e.C.b>0&&(a=p.Math.max(a,ZXe(e.C.b+i.d.b,r))),x=i,T=r,A=o;e.C&&e.C.c>0&&(L=A+e.C.c,v&&(L+=x.d.c),a=p.Math.max(a,(dh(),vf(Ch),p.Math.abs(T-1)<=Ch||T==1||isNaN(T)&&isNaN(1)?0:L/(1-T)))),n.n.b=0,n.a.a=a}function Ost(e,t){var n,i,r,o,a,d,b,v,x,T,A,L;if(n=c(eo(e.b,t),129),b=c(c(Ei(e.r,t),24),85),b.dc()){n.n.d=0,n.n.a=0;return}for(v=e.u.Gc((Gl(),W1)),a=0,e.A.Gc((Tu(),qb))&&Vit(e,t),d=b.Jc(),x=null,A=0,T=0;d.Ob();)i=c(d.Pb(),116),o=de(be(i.b.mf((WF(),SU)))),r=i.b.Kf().b,x?(L=T+x.d.a+e.w+i.d.d,a=p.Math.max(a,(dh(),vf(Ch),p.Math.abs(A-o)<=Ch||A==o||isNaN(A)&&isNaN(o)?0:L/(o-A)))):e.C&&e.C.d>0&&(a=p.Math.max(a,ZXe(e.C.d+i.d.d,o))),x=i,A=o,T=r;e.C&&e.C.a>0&&(L=T+e.C.a,v&&(L+=x.d.a),a=p.Math.max(a,(dh(),vf(Ch),p.Math.abs(A-1)<=Ch||A==1||isNaN(A)&&isNaN(1)?0:L/(1-A)))),n.n.d=0,n.a.b=a}function Sst(e,t,n){var i,r,o,a,d,b;for(this.g=e,d=t.d.length,b=n.d.length,this.d=ke(Wd,qg,9,d+b,0,1),a=0;a<d;a++)this.d[a]=t.d[a];for(o=0;o<b;o++)this.d[d+o]=n.d[o];if(t.e){if(this.e=X_(t.e),this.e.Kc(n),n.e)for(r=n.e.Jc();r.Ob();)i=c(r.Pb(),242),i!=t&&(this.e.Gc(i)?--i.c:this.e.Ec(i))}else n.e&&(this.e=X_(n.e),this.e.Kc(t));this.f=t.f+n.f,this.a=t.a+n.a,this.a>0?jte(this,this.f/this.a):gh(t.g,t.d[0]).a!=null&&gh(n.g,n.d[0]).a!=null?jte(this,(de(gh(t.g,t.d[0]).a)+de(gh(n.g,n.d[0]).a))/2):gh(t.g,t.d[0]).a!=null?jte(this,gh(t.g,t.d[0]).a):gh(n.g,n.d[0]).a!=null&&jte(this,gh(n.g,n.d[0]).a)}function nen(e,t,n,i,r,o,a,d){var b,v,x,T,A,L,I,z,Q,W;if(I=!1,v=wye(n.q,t.f+t.b-n.q.f),L=i.f>t.b&&d,W=r-(n.q.e+v-a),T=(b=cE(i,W,!1),b.a),L&&T>i.f)return!1;if(L){for(A=0,Q=new U(t.d);Q.a<Q.c.c.length;)z=c(G(Q),320),A+=wye(z,i.f)+a;W=r-A}return W<i.g||(x=o==e.c.length-1&&W>=(ht(o,e.c.length),c(e.c[o],189)).e,!L&&T>t.b&&!x)?!1:((x||L||T<=t.b)&&(x&&T>t.b?(n.d=T,bD(n,Yet(n,T))):(uet(n.q,v),n.c=!0),bD(i,r-(n.s+n.r)),XD(i,n.q.e+n.q.d,t.f),TH(t,i),e.c.length>o&&(ZD((ht(o,e.c.length),c(e.c[o],189)),i),(ht(o,e.c.length),c(e.c[o],189)).a.c.length==0&&Cg(e,o)),I=!0),I)}function ien(e){var t,n,i;for(Dx(hp,Y(K(c3,1),Pt,139,0,[new WN])),n=new n_(e),i=0;i<n.a.length;++i)t=rv(n,i).re().a,St(t,"layered")?Dx(hp,Y(K(c3,1),Pt,139,0,[new iz])):St(t,"force")?Dx(hp,Y(K(c3,1),Pt,139,0,[new TK])):St(t,"stress")?Dx(hp,Y(K(c3,1),Pt,139,0,[new ez])):St(t,"mrtree")?Dx(hp,Y(K(c3,1),Pt,139,0,[new IK])):St(t,"radial")?Dx(hp,Y(K(c3,1),Pt,139,0,[new DK])):St(t,"sporeOverlap")||St(t,"sporeCompaction")?Dx(hp,Y(K(c3,1),Pt,139,0,[new hz])):St(t,"rectpacking")?Dx(hp,Y(K(c3,1),Pt,139,0,[new fz])):St(t,"vertiflex")&&Dx(hp,Y(K(c3,1),Pt,139,0,[new VN]))}function ren(e,t){var n,i,r,o,a,d,b,v,x,T;for(e.a=new bHe(w$t(JC)),i=new U(t.a);i.a<i.c.c.length;){for(n=c(G(i),847),d=new jne(Y(K(kce,1),Pt,84,0,[])),Qe(e.a.a,d),v=new U(n.d);v.a<v.c.c.length;)b=c(G(v),120),x=new c0e(e,b),wxe(x,c($(n.c,(Ie(),Q1)),24)),Cc(e.g,n)||(ci(e.g,n,new ze(b.c,b.d)),ci(e.f,n,x)),Qe(e.a.b,x),Vee(d,x);for(a=new U(n.b);a.a<a.c.c.length;)o=c(G(a),598),x=new c0e(e,o.Bf()),ci(e.b,o,new Is(d,x)),wxe(x,c($(n.c,(Ie(),Q1)),24)),o.zf()&&(T=new v2e(e,o.zf(),1),wxe(T,c($(n.c,Q1),24)),r=new jne(Y(K(kce,1),Pt,84,0,[])),Vee(r,T),jt(e.c,o.yf(),new Is(d,T)))}return e.a}function sen(e,t,n){var i,r,o,a,d,b,v,x,T,A,L;for(n.Tg("Breadth-first cycle removal",1),e.c=t,T=t.a,e.a=new _i,e.e=new Tr,e.d=new Tr,e.f=ke(Sl,Yf,30,T.c.length,16,1),e.b=new He,d=0,x=new U(T);x.a<x.c.c.length;)v=c(G(x),9),v.p=d,tv(vr(v))&&Er(e.e,v),tv(Fi(v))&&Er(e.d,v),++d;for(L=e.e.a.ec().Jc();L.Ob();)A=c(L.Pb(),9),ei(e.a,A),Jpe(e);for(Jpe(e),i=!0;i;){for(i=!1,a=0;a<T.c.length;a++)if(!e.f[a]){b=(ht(a,T.c.length),c(T.c[a],9)),ei(e.a,b),i=!0;break}Jpe(e)}for(o=new U(e.b);o.a<o.c.c.length;)r=c(G(o),17),Bg(r,!0),Me(t,(Ie(),Mk),(Bt(),!0));e.e=null,e.f=null,e.a=null,e.b=null,n.Ug()}function oen(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q;if(a=n.Jk(),ae(a,104)&&(c(a,20).Bb&Rs)!=0&&(A=c(n.kd(),52),z=L0(e.e,A),z!=A)){if(x=Rd(a,z),QT(e,t,nie(e,t,x)),T=null,bu(e.e)&&(i=Jx((Ll(),bs),e.e.Ah(),a),i!=Dt(e.e.Ah(),e.c))){for(Q=rl(e.e.Ah(),a),d=0,o=c(e.g,123),b=0;b<t;++b)r=o[b],Q.$l(r.Jk())&&++d;T=new Zee(e.e,9,i,A,z,d,!1),T.lj(new C1(e.e,9,e.c,n,x,t,!1))}return I=c(a,20),L=Qs(I),L?(T=A.Qh(e.e,Ki(A.Ah(),L),null,T),T=c(z,52).Oh(e.e,Ki(z.Ah(),L),null,T)):(I.Bb&rc)!=0&&(v=-1-Ki(e.e.Ah(),I),T=A.Qh(e.e,v,null,null),!c(z,52).Mh()&&(T=c(z,52).Oh(e.e,v,null,T))),T&&T.mj(),x}return n}function jst(e){var t;this.a=e,t=(Jt(),Y(K(Cce,1),Pe,252,0,[ur,Cr,Ar,Ic,ac,_h,fP,WE])).length,this.b=U2(mae,[Fe,N5e],[597,149],0,[t,t],2),this.c=U2(mae,[Fe,N5e],[597,149],0,[t,t],2),Pee(this,ur,(Ge(),Ib),Yv),S7(this,ur,Cr,Pb,tp),nD(this,ur,Ic,Pb),nD(this,ur,Ar,Pb),S7(this,ur,ac,Ib,Yv),Pee(this,Cr,Mf,Wv),nD(this,Cr,Ic,Mf),nD(this,Cr,Ar,Mf),S7(this,Cr,ac,Pb,tp),CBe(this,Ic,Mf),nD(this,Ic,Ar,Mf),nD(this,Ic,ac,Rle),CBe(this,Ar,bC),S7(this,Ar,ac,Zj,Yj),Pee(this,ac,Mf,Mf),Pee(this,_h,Mf,Wv),S7(this,_h,ur,Pb,tp),S7(this,_h,ac,Pb,tp),S7(this,_h,Cr,Pb,tp)}function cen(e,t,n,i,r,o){var a;if(!(t==null||!mne(t,tEe,nEe)))throw V(new qt("invalid scheme: "+t));if(!e&&!(n!=null&&Xh(n,pl(35))==-1&&n.length>0&&(en(0,n.length),n.charCodeAt(0)!=47)))throw V(new qt("invalid opaquePart: "+n));if(e&&!(t!=null&&wT(CV,t.toLowerCase()))&&!(n==null||!mne(n,rM,sM)))throw V(new qt(vat+n));if(e&&t!=null&&wT(CV,t.toLowerCase())&&!WHt(n))throw V(new qt(vat+n));if(!izt(i))throw V(new qt("invalid device: "+i));if(!Y$t(r))throw a=r==null?"invalid segments: null":"invalid segment: "+G$t(r),V(new qt(a));if(!(o==null||Xh(o,pl(35))==-1))throw V(new qt("invalid query: "+o))}function Tst(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W;if(A=new Ms(e.o),W=t.a/A.a,d=t.b/A.b,z=t.a-A.a,o=t.b-A.b,n)for(r=xe($(e,(Ge(),ar)))===xe((es(),kc)),I=new U(e.j);I.a<I.c.c.length;)switch(L=c(G(I),12),L.j.g){case 1:r||(L.n.a*=W);break;case 2:L.n.a+=z,r||(L.n.b*=d);break;case 3:r||(L.n.a*=W),L.n.b+=o;break;case 4:r||(L.n.b*=d)}for(v=new U(e.b);v.a<v.c.c.length;)b=c(G(v),70),x=b.n.a+b.o.a/2,T=b.n.b+b.o.b/2,Q=x/A.a,a=T/A.b,Q+a>=1&&(Q-a>0&&T>=0?(b.n.a+=z,b.n.b+=o*a):Q-a<0&&x>=0&&(b.n.a+=z*Q,b.n.b+=o));e.o.a=t.a,e.o.b=t.b,Me(e,(Ge(),Db),(Tu(),i=c(Gf(eM),10),new da(i,c(gf(i,i.length),10),0)))}function len(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W;if(n.Tg("Network simplex layering",1),e.b=t,W=c($(t,(Ge(),mC)),15).a*4,Q=e.b.a,Q.c.length<1){n.Ug();return}for(o=ZWt(e,Q),z=null,r=Pn(o,0);r.b!=r.d.c;){for(i=c(Dn(r),16),d=W*ks(p.Math.sqrt(i.gc())),a=dKt(i),Lie(M1e(G9t(A1e(QZ(a),d),z),!0),n.dh(1)),A=e.b.b,I=new U(a.a);I.a<I.c.c.length;){for(L=c(G(I),126);A.c.length<=L.e;)Qp(A,A.c.length,new dc(e.b));x=c(L.f,9),zr(x,c(Je(A,L.e),26))}if(o.b>1)for(z=ke(Hn,li,30,e.b.b.c.length,15,1),T=0,v=new U(e.b.b);v.a<v.c.c.length;)b=c(G(v),26),z[T++]=b.a.c.length}Q.c.length=0,e.a=null,e.b=null,e.c=null,n.Ug()}function uen(e,t){var n,i,r,o,a,d,b,v,x,T;for(x=new He,T=new xx,o=null,r=0,i=0;i<t.length;++i)switch(n=t[i],L$t(o,n)&&(r=Wwe(e,T,x,$J,r)),ki(n,(Ie(),_w))&&(o=c($(n,_w),9)),n.k.g){case 0:for(b=Rge(j4(Io(n,(Ue(),Kt)),new DA));Ate(b);)a=c(gme(b),12),e.d[a.p]=r++,It(x.c,a);for(r=Wwe(e,T,x,$J,r),v=Rge(j4(Io(n,mn),new DA));Ate(v);)a=c(gme(v),12),e.d[a.p]=r++,It(x.c,a);break;case 3:Io(n,i9e).dc()||(a=c(Io(n,i9e).Xb(0),12),e.d[a.p]=r++,It(x.c,a)),Io(n,$J).dc()||T0(T,n);break;case 1:for(d=Io(n,(Ue(),Yt)).Jc();d.Ob();)a=c(d.Pb(),12),e.d[a.p]=r++,It(x.c,a);Io(n,nn).Ic(new l$e(T,n))}return Wwe(e,T,x,$J,r),x}function bxe(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I;if(t==null||t.length==0)return null;if(o=c(Mc(e.f,t),21),!o){for(r=(L=new m1(e.d).a.vc().Jc(),new N2(L));r.a.Ob();)if(n=(a=c(r.a.Pb(),45),c(a.kd(),21)),d=n.f,I=t.length,St(d.substr(d.length-I,I),t)&&(t.length==d.length||ws(d,d.length-t.length-1)==46)){if(o)return null;o=n}if(!o){for(i=(A=new m1(e.d).a.vc().Jc(),new N2(A));i.a.Ob();)if(n=(a=c(i.a.Pb(),45),c(a.kd(),21)),T=n.g,T!=null){for(b=T,v=0,x=b.length;v<x;++v)if(d=b[v],I=t.length,St(d.substr(d.length-I,I),t)&&(t.length==d.length||ws(d,d.length-t.length-1)==46)){if(o)return null;o=n}}}o&&uo(e.f,t,o)}return o}function aen(e,t){var n,i,r,o,a;for(n=new a4,a=!1,o=0;o<t.length;o++){if(i=(en(o,t.length),t.charCodeAt(o)),i==32){for(uQ(e,n,0),n.a+=" ",uQ(e,n,0);o+1<t.length&&(en(o+1,t.length),t.charCodeAt(o+1)==32);)++o;continue}if(a){i==39?o+1<t.length&&(en(o+1,t.length),t.charCodeAt(o+1)==39)?(n.a+=String.fromCharCode(i),++o):a=!1:n.a+=String.fromCharCode(i);continue}if(Xh("GyMLdkHmsSEcDahKzZv",pl(i))>0){uQ(e,n,0),n.a+=String.fromCharCode(i),r=Rzt(t,o),uQ(e,n,r),o+=r-1;continue}i==39?o+1<t.length&&(en(o+1,t.length),t.charCodeAt(o+1)==39)?(n.a+="'",++o):a=!0:n.a+=String.fromCharCode(i)}uQ(e,n,0),mQt(e)}function fen(e,t,n,i,r){var o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le;for(le=XFe(e),b=new He,o=e.c.length,v=o-1,x=o+1;le.a.gc()!=0;){for(;n.b!=0;)W=(gn(n.b!=0),c(ma(n,n.a.a),117)),le.a.Ac(W)!=null,W.g=v--,nxe(W,t,n,i);for(;t.b!=0;)re=(gn(t.b!=0),c(ma(t,t.a.a),117)),le.a.Ac(re)!=null,re.g=x++,nxe(re,t,n,i);for(d=ls,z=le.a.ec().Jc();z.Ob();){if(I=c(z.Pb(),117),!i&&I.b>0&&I.a<=0){b.c.length=0,It(b.c,I);break}L=I.i-I.d,L>=d&&(L>d&&(b.c.length=0,d=L),It(b.c,I))}b.c.length!=0&&(a=c(Je(b,pQ(r,b.c.length)),117),le.a.Ac(a)!=null,a.g=x++,nxe(a,t,n,i),b.c.length=0)}for(Q=e.c.length+1,A=new U(e);A.a<A.c.c.length;)T=c(G(A),117),T.g<o&&(T.g=T.g+Q)}function hen(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W;for(v=zse,b=e3,W=new He,I=new U(t);I.a<I.c.c.length;){for(L=c(G(I),9),r=new He,d=new Ht(Xt(vr(L).a.Jc(),new F));hn(d);)o=c(rn(d),17),Q=o.d.i,z=o.c.i,Q.c.p==n&&It(r.c,Q),z.c.p==n&&It(r.c,z);for(a=new Ht(Xt(Fi(L).a.Jc(),new F));hn(a);)o=c(rn(a),17),Q=o.d.i,z=o.c.i,Q.c.p==n&&It(r.c,Q),z.c.p==n&&It(r.c,z);r.c.length==0?It(W.c,L):(Mt(),Rr(r,e.b),A=de(be($(c(Je(r,r.c.length/2|0),9),(Ie(),y3)))),Me(L,y3,A),v=p.Math.min(v,A),b=p.Math.max(b,A))}for(i=(b+v)/2,T=new U(W);T.a<T.c.c.length;)x=c(G(T),9),Me(x,(Ie(),y3),i)}function den(e,t){var n,i,r,o,a,d,b,v,x,T,A;for(r=new U(e.a.b);r.a<r.c.c.length;)for(n=c(G(r),26),b=new U(n.a);b.a<b.c.c.length;)d=c(G(b),9),t.j[d.p]=d,t.i[d.p]=t.o==(ph(),Dh)?Gr:sr;for(cc(e.c),a=e.a.b,t.c==(Kh(),Xg)&&(a=ju(a)),QDt(e.e,t,e.b),x_(t.p,null),o=a.Jc();o.Ob();)for(n=c(o.Pb(),26),v=n.a,t.o==(ph(),Dh)&&(v=ju(v)),A=v.Jc();A.Ob();)T=c(A.Pb(),9),t.g[T.p]==T&&hot(e,T,t);for(QZt(e,t),i=a.Jc();i.Ob();)for(n=c(i.Pb(),26),A=new U(n.a);A.a<A.c.c.length;)T=c(G(A),9),t.p[T.p]=t.p[t.g[T.p].p],T==t.g[T.p]&&(x=de(t.i[t.j[T.p].p]),(t.o==(ph(),Dh)&&x>Gr||t.o==Rb&&x<sr)&&(t.p[T.p]=de(t.p[T.p])+x));e.e.wg()}function gen(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q;if(Ze(Ye($(n,(Ge(),Gv)))))for(d=new U(n.j);d.a<d.c.c.length;)for(a=c(G(d),12),A=ed(a.g),v=A,x=0,T=v.length;x<T;++x)b=v[x],o=b.d.i==n,r=o&&Ze(Ye($(b,_b))),r&&(I=b.c,L=c(Ut(e.b,I),9),L||(L=yL(I,(es(),Bh),I.j,-1,null,null,I.o,c($(t,Vu),87),t),Me(L,(Ie(),Si),I),ci(e.b,I,L),Qe(t.a,L)),Q=b.d,z=c(Ut(e.b,Q),9),z||(z=yL(Q,(es(),Bh),Q.j,1,null,null,Q.o,c($(t,Vu),87),t),Me(z,(Ie(),Si),Q),ci(e.b,Q,z),Qe(t.a,z)),i=ste(b),Os(i,c(Je(L.j,0),12)),ss(i,c(Je(z.j,0),12)),jt(e.a,b,new tq(i,t,(Gs(),Yc))),c($(t,(Ie(),Rc)),24).Ec((Us(),Ca)))}function pen(e,t,n,i,r){var o,a,d,b,v,x,T,A,L,I,z,Q;for(o=new He,v=new U(i);v.a<v.c.c.length;)if(d=c(G(v),447),a=null,d.f==(Gs(),Yc))for(I=new U(d.e);I.a<I.c.c.length;)L=c(G(I),17),Q=L.d.i,Vr(Q)==t?nXe(e,t,d,L,d.b,L.d):!n||bS(Q,n)?YQt(e,t,d,i,L):(A=Jie(e,t,n,L,d.b,Yc,a),A!=a&&It(o.c,A),A.c&&(a=A));else for(T=new U(d.e);T.a<T.c.c.length;)if(x=c(G(T),17),z=x.c.i,Vr(z)==t)nXe(e,t,d,x,x.c,d.b);else{if(!n||bS(z,n))continue;A=Jie(e,t,n,x,d.b,Vl,a),A!=a&&It(o.c,A),A.c&&(a=A)}for(b=new U(o);b.a<b.c.c.length;)d=c(G(b),447),Lo(t.a,d.a,0)!=-1||Qe(t.a,d.a),d.c&&It(r.c,d)}function ben(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me;for(r=c($(e,(Ii(),AC)),19),v=gi,x=gi,d=ls,b=ls,le=Pn(e.b,0);le.b!=le.d.c;)W=c(Dn(le),41),L=W.e,I=W.f,v=p.Math.min(v,L.a-I.a/2),x=p.Math.min(x,L.b-I.b/2),d=p.Math.max(d,L.a+I.a/2),b=p.Math.max(b,L.b+I.b/2);for(A=c(Se(r,(Jo(),N9e)),100),re=Pn(e.b,0);re.b!=re.d.c;)W=c(Dn(re),41),T=$(W,AC),ae(T,209)&&(o=c(T,19),fa(o,W.e.a,W.e.b),aL(o,W));for(Q=Pn(e.a,0);Q.b!=Q.d.c;)z=c(Dn(Q),65),i=c($(z,AC),74),i&&(t=z.a,n=Z7(i),ixe(t,n));me=d-v+(A.b+A.c),a=b-x+(A.d+A.a),Ze(Ye(Se(r,(In(),sy))))||hw(r,me,a,!1,!1),ri(r,ry,me-(A.b+A.c)),ri(r,iy,a-(A.d+A.a))}function Est(e){var t,n,i,r,o,a,d;for(t=0,o=new U(e.b.a);o.a<o.c.c.length;)i=c(G(o),197),i.b=0,i.c=0;for(Vet(e,0),wne(e,e.g),HQ(e.c),S1e(e.c),n=(_r(),po),bL(nZ(Vx(bL(nZ(Vx(bL(Vx(e.c,n)),VKe(n)))),n))),Vx(e.c,po),fne(e,e.g),_et(e,0),ost(e,0),Lnt(e,1),Vet(e,1),wne(e,e.d),HQ(e.c),a=new U(e.b.a);a.a<a.c.c.length;)i=c(G(a),197),t+=p.Math.abs(i.c);for(d=new U(e.b.a);d.a<d.c.c.length;)i=c(G(d),197),i.b=0,i.c=0;for(n=Ma,bL(nZ(Vx(bL(nZ(Vx(bL(S1e(Vx(e.c,n))),VKe(n)))),n))),Vx(e.c,po),fne(e,e.d),_et(e,1),ost(e,1),Lnt(e,0),S1e(e.c),r=new U(e.b.a);r.a<r.c.c.length;)i=c(G(r),197),t+=p.Math.abs(i.c);return t}function men(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z;for(n=c($(e,(Ge(),ar)),103),a=e.f,o=e.d,d=a.a+o.b+o.c,b=0-o.d-e.c.b,x=a.b+o.d+o.a-e.c.b,v=new He,T=new He,r=new U(t);r.a<r.c.c.length;){switch(i=c(G(r),9),n.g){case 1:case 2:case 3:nXt(i);break;case 4:A=c($(i,Rw),8),L=A?A.a:0,i.n.a=d*de(be($(i,(Ie(),Dw))))-L,FH(i,!0,!1);break;case 5:I=c($(i,Rw),8),z=I?I.a:0,i.n.a=de(be($(i,(Ie(),Dw))))-z,FH(i,!0,!1),a.a=p.Math.max(a.a,i.n.a+i.o.a/2)}switch(c($(i,(Ie(),Yo)),64).g){case 1:i.n.b=b,It(v.c,i);break;case 3:i.n.b=x,It(T.c,i)}}switch(n.g){case 1:case 2:PKe(v,e),PKe(T,e);break;case 3:IKe(v,e),IKe(T,e)}}function wen(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I;for(n.Tg("Label dummy switching",1),i=c($(t,(Ge(),vJ)),233),CRt(t),r=QJt(t,i),e.a=ke(is,io,30,t.b.c.length,15,1),d=(ek(),Y(K(qj,1),Pe,233,0,[Fj,YE,zj,zv,h3,f3])),x=0,L=d.length;x<L;++x)if(o=d[x],(o==h3||o==f3||o==zv)&&!c(Ml(r.a,o)?r.b[o.g]:null,16).dc()){RRt(e,t);break}for(b=Y(K(qj,1),Pe,233,0,[Fj,YE,zj,zv,h3,f3]),T=0,I=b.length;T<I;++T)o=b[T],o==h3||o==f3||o==zv||frt(e,c(Ml(r.a,o)?r.b[o.g]:null,16));for(a=Y(K(qj,1),Pe,233,0,[Fj,YE,zj,zv,h3,f3]),v=0,A=a.length;v<A;++v)o=a[v],(o==h3||o==f3||o==zv)&&frt(e,c(Ml(r.a,o)?r.b[o.g]:null,16));e.a=null,n.Ug()}function Cst(e,t){var n,i,r,o,a,d,b,v,x;if(v=t,!(v.b==null||e.b==null)){for(Hx(e),lE(e),Hx(v),lE(v),n=ke(Hn,li,30,e.b.length+v.b.length,15,1),x=0,i=0,a=0;i<e.b.length&&a<v.b.length;)if(r=e.b[i],o=e.b[i+1],d=v.b[a],b=v.b[a+1],o<d)i+=2;else if(o>=d&&r<=b)d<=r&&o<=b?(n[x++]=r,n[x++]=o,i+=2):d<=r?(n[x++]=r,n[x++]=b,e.b[i]=b+1,a+=2):o<=b?(n[x++]=d,n[x++]=o,i+=2):(n[x++]=d,n[x++]=b,e.b[i]=b+1);else if(b<r)a+=2;else throw V(new Ao("Token#intersectRanges(): Internal Error: ["+e.b[i]+","+e.b[i+1]+"] & ["+v.b[a]+","+v.b[a+1]+"]"));for(;i<e.b.length;)n[x++]=e.b[i++],n[x++]=e.b[i++];e.b=ke(Hn,li,30,x,15,1),wc(n,0,e.b,0,x)}}function ven(e){var t,n,i,r,o,a,d;for(t=new He,e.g=new He,e.d=new He,a=new lv(new Rp(e.f.b).a);a.b;)o=_x(a),Qe(t,c(c(o.kd(),49).b,84)),v1(c(o.jd(),598).yf())?Qe(e.d,c(o.kd(),49)):Qe(e.g,c(o.kd(),49));for(wne(e,e.d),wne(e,e.g),e.c=new Vtt(e.b),J9t(e.c,(U1e(),kdt)),fne(e,e.d),fne(e,e.g),Or(t,e.c.a.b),e.e=new ze(sr,sr),e.a=new ze(Gr,Gr),i=new U(t);i.a<i.c.c.length;)n=c(G(i),84),e.e.a=p.Math.min(e.e.a,n.g.c),e.e.b=p.Math.min(e.e.b,n.g.d),e.a.a=p.Math.max(e.a.a,n.g.c+n.g.b),e.a.b=p.Math.max(e.a.b,n.g.d+n.g.a);N1e(e.c,new ro),d=0;do r=Est(e),++d;while((d<2||r>zg)&&d<10);N1e(e.c,new al),Est(e),IAt(e.c),WZt(e.f)}function yen(e,t){var n,i,r,o,a,d,b,v,x,T,A;switch(e.k.g){case 1:if(i=c($(e,(Ie(),Si)),17),n=c($(i,W6e),79),n?Ze(Ye($(i,Ug)))&&(n=wwe(n)):n=new tu,v=c($(e,ih),12),v){if(x=Po(Y(K(Wr,1),Fe,8,0,[v.i.n,v.n,v.a])),t<=x.a)return x.b;rr(n,x,n.a,n.a.a)}if(T=c($(e,Wa),12),T){if(A=Po(Y(K(Wr,1),Fe,8,0,[T.i.n,T.n,T.a])),A.a<=t)return A.b;rr(n,A,n.c.b,n.c)}if(n.b>=2){for(b=Pn(n,0),a=c(Dn(b),8),d=c(Dn(b),8);d.a<t&&b.b!=b.d.c;)a=d,d=c(Dn(b),8);return a.b+(t-a.a)/(d.a-a.a)*(d.b-a.b)}break;case 3:switch(o=c($(c(Je(e.j,0),12),(Ie(),Si)),12),r=o.i,o.j.g){case 1:return r.n.b;case 3:return r.n.b+r.o.b}}return W2e(e).b}function xen(e){var t,n,i,r,o,a,d,b,v,x,T;for(a=new U(e.d.b);a.a<a.c.c.length;)for(o=c(G(a),26),b=new U(o.a);b.a<b.c.c.length;){if(d=c(G(b),9),Ze(Ye($(d,(Ge(),lC))))&&!tv(td(d))){i=c(XNt(td(d)),17),x=i.c.i,x==d&&(x=i.d.i),T=new Is(x,Qr(As(d.n),x.n)),ci(e.b,d,T);continue}r=new pf(d.n.a-d.d.b,d.n.b-d.d.d,d.o.a+d.d.b+d.d.c,d.o.b+d.d.d+d.d.a),t=bze(ORe(xRe(kRe(new u1e,d),r),Ydt),e.a),pze(y8t(xXe(new l1e,Y(K(kU,1),Pt,60,0,[t])),t),e.a),v=new cY,ci(e.e,t,v),n=Jf(new Ht(Xt(vr(d).a.Jc(),new F)))-Jf(new Ht(Xt(Fi(d).a.Jc(),new F))),n<0?$D(v,!0,(_r(),po)):n>0&&$D(v,!0,(_r(),vo)),d.k==(Jt(),Ar)&&CHe(v),ci(e.f,d,t)}}function Mst(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re;for(v=sr,x=sr,d=Gr,b=Gr,A=new U(t.i);A.a<A.c.c.length;)T=c(G(A),68),r=c(c(Ut(e.g,T.a),49).b,19),fa(r,T.b.c,T.b.d),v=p.Math.min(v,r.i),x=p.Math.min(x,r.j),d=p.Math.max(d,r.i+r.g),b=p.Math.max(b,r.j+r.f);for(L=c(Se(e.c,(iL(),xwt)),100),hw(e.c,d-v+(L.b+L.c),b-x+(L.d+L.a),!0,!0),bve(e.c,-v+L.b,-x+L.d),i=new on(XHe(e.c));i.e!=i.i.gc();)n=c(un(i),74),a=Z7(n),I=lie(n),Q=Pet(n),z=new ze(I.i+I.g/2,I.j+I.f/2),o=new ze(Q.i+Q.g/2,Q.j+Q.f/2),W=Qr(new ze(o.a,o.b),z),RS(W,I.g,I.f),Oi(z,W),re=Qr(new ze(z.a,z.b),o),RS(re,Q.g,Q.f),Oi(o,re),I_(a,z.a,z.b),P_(a,o.a,o.b)}function Ast(e,t){var n,i,r,o,a,d,b,v,x,T;for(b=!0,r=0,v=e.g[t.p],x=t.o.b+e.o,n=e.d[t.p][2],ku(e.b,v,$e(c(Je(e.b,v),15).a-1+n)),ku(e.c,v,de(be(Je(e.c,v)))-x+n*e.f),++v,v>=e.j?(++e.j,Qe(e.b,$e(1)),Qe(e.c,x)):(i=e.d[t.p][1],ku(e.b,v,$e(c(Je(e.b,v),15).a+1-i)),ku(e.c,v,de(be(Je(e.c,v)))+x-i*e.f)),(e.r==(F0(),AP)&&(c(Je(e.b,v),15).a>e.k||c(Je(e.b,v-1),15).a>e.k)||e.r==NP&&(de(be(Je(e.c,v)))>e.n||de(be(Je(e.c,v-1)))>e.n))&&(b=!1),a=new Ht(Xt(vr(t).a.Jc(),new F));hn(a);)o=c(rn(a),17),d=o.c.i,e.g[d.p]==v&&(T=Ast(e,d),r=r+c(T.a,15).a,b=b&&Ze(Ye(T.b)));return e.g[t.p]=v,r=r+e.d[t.p][0],new Is($e(r),(Bt(),!!b))}function ken(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe;return A=e.c[t],L=e.c[n],I=c($(A,(Ie(),Nk)),16),!!I&&I.gc()!=0&&I.Gc(L)||(z=A.k!=(Jt(),Cr)&&L.k!=Cr,Q=c($(A,_w),9),W=c($(L,_w),9),re=Q!=W,le=!!Q&&Q!=A||!!W&&W!=L,me=Fne(A,(Ue(),Kt)),je=Fne(L,mn),le=le|(Fne(A,mn)||Fne(L,Kt)),Oe=le&&re||me||je,z&&Oe)||A.k==(Jt(),Ic)&&L.k==ur||L.k==(Jt(),Ic)&&A.k==ur?!1:(x=e.c[t],o=e.c[n],r=eet(e.e,x,o,(Ue(),Yt)),b=eet(e.i,x,o,nn),JVt(e.f,x,o),v=fKe(e.b,x,o)+c(r.a,15).a+c(b.a,15).a+e.f.d,d=fKe(e.b,o,x)+c(r.b,15).a+c(b.b,15).a+e.f.b,e.a&&(T=c($(x,Si),12),a=c($(o,Si),12),i=$Ze(e.g,T,a),v+=c(i.a,15).a,d+=c(i.b,15).a),v>d)}function Nst(e,t){var n,i,r,o,a;n=de(be($(t,(Ge(),Mf)))),n<2&&Me(t,Mf,2),i=c($(t,Vu),87),i==(_r(),$h)&&Me(t,Vu,KH(t)),r=c($(t,apt),15),r.a==0?Me(t,(Ie(),Dk),new pne):Me(t,(Ie(),Dk),new eH(r.a)),o=Ye($(t,gC)),o==null&&Me(t,gC,(Bt(),xe($(t,U1))===xe((L1(),g9)))),hr(new Tt(null,new Et(t.a,16)),new Jde(e)),hr(jo(new Tt(null,new Et(t.b,16)),new $y),new Vde(e)),a=new jst(t),Me(t,(Ie(),w3),a),c7(e.a),Iu(e.a,(ts(),Cf),c($(t,Rk),173)),Iu(e.a,Xd,c($(t,kJ),173)),Iu(e.a,yc,c($(t,hC),173)),Iu(e.a,xc,c($(t,TJ),173)),Iu(e.a,Ws,GRt(c($(t,U1),225))),Ige(e.a,wnn(t)),Me(t,mle,aE(e.a,t))}function mxe(e,t,n,i,r){var o,a,d,b,v,x,T,A,L,I,z,Q,W;for(T=new yn,a=new He,wtt(e,n,e.d.zg(),a,T),wtt(e,i,e.d.Ag(),a,T),e.b=.2*(z=jnt(jo(new Tt(null,new Et(a,16)),new $A)),Q=jnt(jo(new Tt(null,new Et(a,16)),new BA)),p.Math.min(z,Q)),o=0,d=0;d<a.c.length-1;d++)for(b=(ht(d,a.c.length),c(a.c[d],117)),I=d+1;I<a.c.length;I++)o+=axe(e,b,(ht(I,a.c.length),c(a.c[I],117)));for(A=c($(t,(Ie(),Dk)),237),o>=2&&(W=Vnt(a,!0,A),!e.e&&(e.e=new jDe(e)),Pzt(e.e,W,a,e.b)),yet(a,A),Men(a),L=-1,x=new U(a);x.a<x.c.c.length;)v=c(G(x),117),!(p.Math.abs(v.s-v.c)<ud)&&(L=p.Math.max(L,v.o),e.d.xg(v,r,e.c));return e.d.a.a.$b(),L+1}function Oen(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me;for(T=c(qF((a=Pn(new w1(t).a.d,0),new lx(a))),41),I=T?c($(T,(Ii(),pue)),41):null,r=1;T&&I;){for(b=0,me=0,n=T,i=I,d=0;d<r;d++)n=cte(n),i=cte(i),me+=de(be($(n,(Ii(),i9)))),b+=de(be($(i,i9)));if(le=de(be($(I,(Ii(),Wg)))),re=de(be($(T,Wg))),A=Jwe(e,T,I),L=le+b+e.b+A-re-me,0<L){for(v=t,x=0;v&&v!=i;)++x,v=c($(v,HJ),41);if(v)for(W=L/x,v=t;v!=i;)Q=de(be($(v,Wg)))+L,Me(v,Wg,Q),z=de(be($(v,i9)))+L,Me(v,i9,z),L-=W,v=c($(v,HJ),41);else return}++r,T.d.b==0?T=Uye(new w1(t),r):T=c(qF((o=Pn(new w1(T).a.d,0),new lx(o))),41),I=T?c($(T,pue),41):null}}function Sen(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I;for(t.Tg("Label dummy removal",1),i=de(be($(e,(Ge(),k3)))),r=de(be($(e,Kv))),v=c($(e,Vu),87),b=new U(e.b);b.a<b.c.c.length;)for(d=c(G(b),26),T=new os(d.a,0);T.b<T.d.gc();)x=(gn(T.b<T.d.gc()),c(T.d.Xb(T.c=T.b++),9)),x.k==(Jt(),ac)&&(A=c($(x,(Ie(),Si)),17),I=de(be($(A,Jg))),a=xe($(x,_k))===xe((qu(),cp)),n=new Ms(x.n),a&&(n.b+=I+i),o=new ze(x.o.a,x.o.b+(x.k==ac&&!D6(mi(c($(x,rC),16).Mc(),new S6(new zy))).zd((Fp(),Ok))?0:-I-i)),L=c($(x,rC),16),v==(_r(),Ma)||v==Rh?EJt(L,n,r,o,a,v):sBt(L,n,r,o),Or(A.b,L),Kie(x,xe($(e,U1))===xe((L1(),YP))),nu(T));t.Ug()}function jen(e){e.q||(e.q=!0,e.p=Uo(e,0),e.a=Uo(e,1),qi(e.a,0),e.f=Uo(e,2),qi(e.f,1),lr(e.f,2),e.n=Uo(e,3),lr(e.n,3),lr(e.n,4),lr(e.n,5),lr(e.n,6),e.g=Uo(e,4),qi(e.g,7),lr(e.g,8),e.c=Uo(e,5),qi(e.c,7),qi(e.c,8),e.i=Uo(e,6),qi(e.i,9),qi(e.i,10),qi(e.i,11),qi(e.i,12),lr(e.i,13),e.j=Uo(e,7),qi(e.j,9),e.d=Uo(e,8),qi(e.d,3),qi(e.d,4),qi(e.d,5),qi(e.d,6),lr(e.d,7),lr(e.d,8),lr(e.d,9),lr(e.d,10),e.b=Uo(e,9),lr(e.b,0),lr(e.b,1),e.e=Uo(e,10),lr(e.e,1),lr(e.e,2),lr(e.e,3),lr(e.e,4),qi(e.e,5),qi(e.e,6),qi(e.e,7),qi(e.e,8),qi(e.e,9),qi(e.e,10),lr(e.e,11),e.k=Uo(e,11),lr(e.k,0),lr(e.k,1),e.o=hi(e,12),e.s=hi(e,13))}function Ten(e,t,n){var i,r,o,a,d,b,v,x;if(e.c.length!=0)for(e.c.length==1&&Qe(t,(ht(0,e.c.length),c(e.c[0],19))),e.c.length==2&&(a=(ht(0,e.c.length),c(e.c[0],19)),v=(ht(1,e.c.length),c(e.c[1],19)),c(Se(a,(zd(),QP)),15).a>c(Se(v,QP),15).a?(It(t.c,v),It(n.c,a)):(It(t.c,a),It(n.c,v))),r=new He,x=new hK,x.a=0,x.b=0,i=(ht(0,e.c.length),c(e.c[0],19)),It(r.c,i),d=1;d<e.c.length;d++)b=(ht(d,e.c.length),c(e.c[d],19)),Ci(i.j,b.j)==0||(o=zrt(r,x),Or(t,new Yh(r,0,o+1)),Or(n,new Yh(r,o+1,r.c.length)),r=new He),It(r.c,b),i=b,d==e.c.length-1&&(o=zrt(r,x),Or(t,new Yh(r,0,o+1)),Or(n,new Yh(r,o+1,r.c.length)))}function wxe(e,t){t.dc()&&_d(e.j,!0,!0,!0,!0),xi(t,(Ue(),Pf))&&_d(e.j,!0,!0,!0,!1),xi(t,Aa)&&_d(e.j,!1,!0,!0,!0),xi(t,Wu)&&_d(e.j,!0,!0,!1,!0),xi(t,Za)&&_d(e.j,!0,!1,!0,!0),xi(t,Xl)&&_d(e.j,!1,!0,!0,!1),xi(t,Na)&&_d(e.j,!1,!0,!1,!0),xi(t,Ku)&&_d(e.j,!0,!1,!1,!0),xi(t,If)&&_d(e.j,!0,!1,!0,!1),xi(t,xl)&&_d(e.j,!0,!0,!0,!0),xi(t,ll)&&_d(e.j,!0,!0,!0,!0),xi(t,xl)&&_d(e.j,!0,!0,!0,!0),xi(t,yl)&&_d(e.j,!0,!0,!0,!0),xi(t,kl)&&_d(e.j,!0,!0,!0,!0),xi(t,Wl)&&_d(e.j,!0,!0,!0,!0),xi(t,$c)&&_d(e.j,!0,!0,!0,!0)}function _st(e,t,n){var i,r,o,a,d,b,v,x,T;if(e.a!=t.hk())throw V(new qt(Tj+t.ve()+Sw));if(i=Lg((Ll(),bs),t).Hl(),i)return i.hk().ti().oi(i,n);if(a=Lg(bs,t).Jl(),a){if(n==null)return null;if(d=c(n,16),d.dc())return"";for(T=new vg,o=d.Jc();o.Ob();)r=o.Pb(),Zs(T,a.hk().ti().oi(a,r)),T.a+=" ";return wZ(T,T.a.length-1)}if(x=Lg(bs,t).Kl(),!x.dc()){for(v=x.Jc();v.Ob();)if(b=c(v.Pb(),160),b.dk(n))try{if(T=b.hk().ti().oi(b,n),T!=null)return T}catch(A){if(A=kr(A),!ae(A,102))throw V(A)}throw V(new qt("Invalid value: '"+n+"' for datatype :"+t.ve()))}return c(t,839).mk(),n==null?null:ae(n,183)?""+c(n,183).a:Ou(n)==mU?zBe(iM[0],c(n,208)):To(n)}function Dst(e,t,n){var i,r,o,a;this.j=e,this.e=sve(e),this.o=this.j.e,this.i=!!this.o,this.p=this.i?c(Je(n,Vr(this.o).p),221):null,r=c($(e,(Ie(),Rc)),24),this.g=r.Gc((Us(),Ca)),this.b=new He,this.d=new wYe(this.e),a=c($(this.j,Dk),237),this.q=BRt(t,a,this.e),this.k=new BQe(this),o=mf(Y(K(e1t,1),Pt,223,0,[this,this.d,this.k,this.q])),t==(ab(),DP)&&!Ze(Ye($(e,(Ge(),Vj))))?(i=new lve(this.e),It(o.c,i),this.c=new Cbe(i,a,c(this.q,411))):t==DP&&Ze(Ye($(e,(Ge(),Vj))))?(i=new lve(this.e),It(o.c,i),this.c=new HXe(i,a,c(this.q,411))):t==IJ?this.c=new aQe(a):this.c=new t$e(t,this),Qe(o,this.c),lst(o,this.e),this.s=Ytn(this.k)}function Een(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W;for(t.Tg("Interactive crossing minimization",1),a=0,o=new U(e.b);o.a<o.c.c.length;)i=c(G(o),26),i.p=a++;for(A=sve(e),Q=new D1e(A.length),lst(new Qo(Y(K(e1t,1),Pt,223,0,[Q])),A),z=0,a=0,r=new U(e.b);r.a<r.c.c.length;){for(i=c(G(r),26),n=0,T=0,x=new U(i.a);x.a<x.c.c.length;)for(b=c(G(x),9),b.n.a>0&&(n+=b.n.a+b.o.a/2,++T),I=new U(b.j);I.a<I.c.c.length;)L=c(G(I),12),L.p=z++;for(T>0&&(n/=T),W=ke(is,io,30,i.a.c.length,15,1),d=0,v=new U(i.a);v.a<v.c.c.length;)b=c(G(v),9),b.p=d++,W[b.p]=yen(b,n),b.k==(Jt(),Cr)&&Me(b,(Ie(),K6e),W[b.p]);Mt(),Rr(i.a,new iDe(W)),prt(Q,A,a,!0),++a}t.Ug()}function Cen(e){var t,n,i,r,o,a,d,b,v,x;for(v=new _i,d=new _i,o=new U(e);o.a<o.c.c.length;)i=c(G(o),134),i.v=0,i.n=i.i.c.length,i.u=i.t.c.length,i.n==0&&rr(v,i,v.c.b,v.c),i.u==0&&i.r.a.gc()==0&&rr(d,i,d.c.b,d.c);for(a=-1;v.b!=0;)for(i=c(Wne(v,0),134),n=new U(i.t);n.a<n.c.c.length;)t=c(G(n),275),x=t.b,x.v=p.Math.max(x.v,i.v+1),a=p.Math.max(a,x.v),--x.n,x.n==0&&rr(v,x,v.c.b,v.c);if(a>-1){for(r=Pn(d,0);r.b!=r.d.c;)i=c(Dn(r),134),i.v=a;for(;d.b!=0;)for(i=c(Wne(d,0),134),n=new U(i.i);n.a<n.c.c.length;)t=c(G(n),275),b=t.a,b.r.a.gc()==0&&(b.v=p.Math.min(b.v,i.v-1),--b.u,b.u==0&&rr(d,b,d.c.b,d.c))}}function Men(e){var t,n,i,r,o,a,d,b,v,x;for(v=new He,d=new He,a=new U(e);a.a<a.c.c.length;)r=c(G(a),117),r_(r,r.f.c.length),y6(r,r.k.c.length),r.d==0&&It(v.c,r),r.i==0&&r.e.b==0&&It(d.c,r);for(i=-1;v.c.length!=0;)for(r=c(Cg(v,0),117),n=new U(r.k);n.a<n.c.c.length;)t=c(G(n),135),x=t.b,x6(x,p.Math.max(x.o,r.o+1)),i=p.Math.max(i,x.o),r_(x,x.d-1),x.d==0&&It(v.c,x);if(i>-1){for(o=new U(d);o.a<o.c.c.length;)r=c(G(o),117),r.o=i;for(;d.c.length!=0;)for(r=c(Cg(d,0),117),n=new U(r.f);n.a<n.c.c.length;)t=c(G(n),135),b=t.a,!(b.e.b>0)&&(x6(b,p.Math.min(b.o,r.o-1)),y6(b,b.i-1),b.i==0&&It(d.c,b))}}function Lst(e,t,n,i,r){var o,a,d,b;return b=sr,a=!1,d=lxe(e,Qr(new ze(t.a,t.b),e),Oi(new ze(n.a,n.b),r),Qr(new ze(i.a,i.b),n)),o=!!d&&!(p.Math.abs(d.a-e.a)<=kw&&p.Math.abs(d.b-e.b)<=kw||p.Math.abs(d.a-t.a)<=kw&&p.Math.abs(d.b-t.b)<=kw),d=lxe(e,Qr(new ze(t.a,t.b),e),n,r),d&&((p.Math.abs(d.a-e.a)<=kw&&p.Math.abs(d.b-e.b)<=kw)==(p.Math.abs(d.a-t.a)<=kw&&p.Math.abs(d.b-t.b)<=kw)||o?b=p.Math.min(b,r7(Qr(d,n))):a=!0),d=lxe(e,Qr(new ze(t.a,t.b),e),i,r),d&&(a||(p.Math.abs(d.a-e.a)<=kw&&p.Math.abs(d.b-e.b)<=kw)==(p.Math.abs(d.a-t.a)<=kw&&p.Math.abs(d.b-t.b)<=kw)||o)&&(b=p.Math.min(b,r7(Qr(d,i)))),b}function Pst(e){Dm(e,new pb(h_(Am(Em(Mm(Cm(new h1,Q0),Nct),"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 f5),sl))),Be(e,Q0,fj,Ve(pOe)),Be(e,Q0,$L,(Bt(),!0)),Be(e,Q0,Yx,Ve(ddt)),Be(e,Q0,mk,Ve(gdt)),Be(e,Q0,bk,Ve(pdt)),Be(e,Q0,gj,Ve(hdt)),Be(e,Q0,hj,Ve(mOe)),Be(e,Q0,pj,Ve(bdt)),Be(e,Q0,i3e,Ve(gOe)),Be(e,Q0,s3e,Ve(hOe)),Be(e,Q0,o3e,Ve(dOe)),Be(e,Q0,c3e,Ve(bOe)),Be(e,Q0,r3e,Ve(MU))}function Aen(e){var t,n,i,r,o,a,d,b;for(t=null,i=new U(e);i.a<i.c.c.length;)n=c(G(i),242),de(gh(n.g,n.d[0]).a),n.b=null,n.e&&n.e.gc()>0&&n.c==0&&(!t&&(t=new He),It(t.c,n));if(t)for(;t.c.length!=0;){if(n=c(Cg(t,0),242),n.b&&n.b.c.length>0){for(o=(!n.b&&(n.b=new He),new U(n.b));o.a<o.c.c.length;)if(r=c(G(o),242),f_(gh(r.g,r.d[0]).a)==f_(gh(n.g,n.d[0]).a)){if(Lo(e,r,0)>Lo(e,n,0))return new Is(r,n)}else if(de(gh(r.g,r.d[0]).a)>de(gh(n.g,n.d[0]).a))return new Is(r,n)}for(d=(!n.e&&(n.e=new He),n.e).Jc();d.Ob();)a=c(d.Pb(),242),b=(!a.b&&(a.b=new He),a.b),ev(0,b.c.length),ET(b.c,0,n),a.c==b.c.length&&It(t.c,a)}return null}function fE(e,t){var n,i,r,o,a,d,b,v,x;if(t.e==5){Cst(e,t);return}if(v=t,!(v.b==null||e.b==null)){for(Hx(e),lE(e),Hx(v),lE(v),n=ke(Hn,li,30,e.b.length+v.b.length,15,1),x=0,i=0,a=0;i<e.b.length&&a<v.b.length;)if(r=e.b[i],o=e.b[i+1],d=v.b[a],b=v.b[a+1],o<d)n[x++]=e.b[i++],n[x++]=e.b[i++];else if(o>=d&&r<=b)d<=r&&o<=b?i+=2:d<=r?(e.b[i]=b+1,a+=2):o<=b?(n[x++]=r,n[x++]=d-1,i+=2):(n[x++]=r,n[x++]=d-1,e.b[i]=b+1,a+=2);else if(b<r)a+=2;else throw V(new Ao("Token#subtractRanges(): Internal Error: ["+e.b[i]+","+e.b[i+1]+"] - ["+v.b[a]+","+v.b[a+1]+"]"));for(;i<e.b.length;)n[x++]=e.b[i++],n[x++]=e.b[i++];e.b=ke(Hn,li,30,x,15,1),wc(n,0,e.b,0,x)}}function Nen(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W;for(i=new U(e.e.b);i.a<i.c.c.length;)for(n=c(G(i),26),o=new U(n.a);o.a<o.c.c.length;)if(r=c(G(o),9),L=e.i[r.p],v=L.a.e,b=L.d.e,r.n.b=v,W=b-v-r.o.b,t=Uie(r),A=(pv(),(r.q?r.q:(Mt(),Mt(),Vd))._b((Ge(),Iw))?T=c($(r,Iw),205):T=c($(Vr(r),pC),205),T),t&&(A==S3||A==O3)&&(r.o.b+=W),t&&(A==Jle||A==S3||A==O3)){for(z=new U(r.j);z.a<z.c.c.length;)I=c(G(z),12),(Ue(),ll).Gc(I.j)&&(x=c(Ut(e.k,I),126),I.n.b=x.e-v);for(d=new U(r.b);d.a<d.c.c.length;)a=c(G(d),70),Q=c($(r,Pw),24),Q.Gc((yv(),Ya))?a.n.b+=W:Q.Gc(Zd)&&(a.n.b+=W/2);(A==S3||A==O3)&&Io(r,(Ue(),mn)).Ic(new vDe(W))}}function _en(e){var t,n,i,r,o,a,d;if(!e.A.dc()){if(e.A.Gc((Tu(),sI))&&(c(eo(e.b,(Ue(),Kt)),129).k=!0,c(eo(e.b,mn),129).k=!0,t=e.q!=(es(),e1)&&e.q!=kc,Om(c(eo(e.b,nn),129),t),Om(c(eo(e.b,Yt),129),t),Om(e.g,t),e.A.Gc(qb)&&(c(eo(e.b,Kt),129).j=!0,c(eo(e.b,mn),129).j=!0,c(eo(e.b,nn),129).k=!0,c(eo(e.b,Yt),129).k=!0,e.g.k=!0)),e.A.Gc(rI))for(e.a.j=!0,e.a.k=!0,e.g.j=!0,e.g.k=!0,d=e.B.Gc((lu(),tM)),r=Cne(),o=0,a=r.length;o<a;++o)i=r[o],n=c(eo(e.i,i),319),n&&(d2e(i)?(n.j=!0,n.k=!0):(n.j=!d,n.k=!d));e.A.Gc(ay)&&e.B.Gc((lu(),cI))&&(e.g.j=!0,e.g.j=!0,e.a.j||(e.a.j=!0,e.a.k=!0,e.a.e=!0))}}function Den(e,t,n){var i,r,o,a,d,b,v,x,T,A;for(v=new He,b=new U(t.a);b.a<b.c.c.length;)for(a=c(G(b),9),A=Io(a,(Ue(),nn)).Jc();A.Ob();)for(T=c(A.Pb(),12),r=new U(T.g);r.a<r.c.c.length;)i=c(G(r),17),!(!ys(i)&&i.c.i.c==i.d.i.c||ys(i)||i.d.i.c!=n)&&It(v.c,i);for(d=ju(n.a).Jc();d.Ob();)for(a=c(d.Pb(),9),A=Io(a,(Ue(),Yt)).Jc();A.Ob();)for(T=c(A.Pb(),12),r=new U(T.e);r.a<r.c.c.length;)if(i=c(G(r),17),!(!ys(i)&&i.c.i.c==i.d.i.c||ys(i)||i.c.i.c!=t)&&v.c.length!=0){for(x=new os(v,v.c.length),o=(gn(x.b>0),c(x.a.Xb(x.c=--x.b),17));o!=i&&x.b>0;)e.a[o.p]=!0,e.a[i.p]=!0,o=(gn(x.b>0),c(x.a.Xb(x.c=--x.b),17));x.b>0&&nu(x)}}function Ist(e,t,n){var i,r,o,a,d,b,v,x,T,A;if(n)for(i=-1,x=new os(t,0);x.b<x.d.gc();){if(d=(gn(x.b<x.d.gc()),c(x.d.Xb(x.c=x.b++),9)),T=e.c[d.c.p][d.p].a,T==null){for(a=i+1,o=new os(t,x.b);o.b<o.d.gc();)if(A=BTt(e,(gn(o.b<o.d.gc()),c(o.d.Xb(o.c=o.b++),9))).a,A!=null){a=(zt(A),A);break}T=(i+a)/2,e.c[d.c.p][d.p].a=T,e.c[d.c.p][d.p].d=(zt(T),T),e.c[d.c.p][d.p].b=1}i=(zt(T),T)}else{for(r=0,v=new U(t);v.a<v.c.c.length;)d=c(G(v),9),e.c[d.c.p][d.p].a!=null&&(r=p.Math.max(r,de(e.c[d.c.p][d.p].a)));for(r+=2,b=new U(t);b.a<b.c.c.length;)d=c(G(b),9),e.c[d.c.p][d.p].a==null&&(T=cu(e.i,24)*DL*r-1,e.c[d.c.p][d.p].a=T,e.c[d.c.p][d.p].d=T,e.c[d.c.p][d.p].b=1)}}function Len(e){var t,n,i,r,o,a,d,b,v,x,T,A;for(r=new U(e.a.a.b);r.a<r.c.c.length;)for(i=c(G(r),60),b=i.c.Jc();b.Ob();)d=c(b.Pb(),60),i.a!=d.a&&(v1(e.a.d)?T=e.a.g.df(i,d):T=e.a.g.ef(i,d),o=i.b.a+i.d.b+T-d.b.a,o=p.Math.ceil(o),o=p.Math.max(0,o),pme(i,d)?(a=Im(new Bp,e.d),v=ks(p.Math.ceil(d.b.a-i.b.a)),t=v-(d.b.a-i.b.a),x=I4(i).a,n=i,x||(x=I4(d).a,t=-t,n=d),x&&(n.b.a-=t,x.n.a-=t),Of(uf(ff(hf(af(new Ra,p.Math.max(0,v)),1),a),e.c[i.a.d])),Of(uf(ff(hf(af(new Ra,p.Math.max(0,-v)),1),a),e.c[d.a.d]))):(A=1,(ae(i.g,157)&&ae(d.g,9)||ae(d.g,157)&&ae(i.g,9))&&(A=2),Of(uf(ff(hf(af(new Ra,ks(o)),A),e.c[i.a.d]),e.c[d.a.d]))))}function Rst(e,t,n){var i,r,o,a,d,b,v,x,T,A,L;if(!e.b)return!1;for(a=null,A=null,b=new fte(null,null),r=1,b.a[1]=e.b,T=b;T.a[r];)v=r,d=A,A=T,T=T.a[r],i=e.a.Le(t,T.d),r=i<0?0:1,i==0&&(!n.c||gc(T.e,n.d))&&(a=T),!(T&&T.b)&&!D2(T.a[r])&&(D2(T.a[1-r])?A=A.a[v]=NH(T,r):D2(T.a[1-r])||(L=A.a[1-v],L&&(!D2(L.a[1-v])&&!D2(L.a[v])?(A.b=!1,L.b=!0,T.b=!0):(o=d.a[1]==A?1:0,D2(L.a[v])?d.a[o]=LGe(A,v):D2(L.a[1-v])&&(d.a[o]=NH(A,v)),T.b=d.a[o].b=!0,d.a[o].a[0].b=!1,d.a[o].a[1].b=!1))));return a&&(n.b=!0,n.d=a.e,T!=a&&(x=new fte(T.d,T.e),zQt(e,b,a,x),A==a&&(A=x)),A.a[A.a[1]==T?1:0]=T.a[T.a[0]?0:1],--e.c),e.b=b.a[1],e.b&&(e.b.b=!1),n.b}function Pen(e,t,n){var i,r,o,a,d,b,v,x,T;for(!n&&(n=f$t(t.q.getTimezoneOffset())),r=(t.q.getTimezoneOffset()-n.a)*6e4,d=new T0e(Ns(tc(t.q.getTime()),r)),b=d,d.q.getTimezoneOffset()!=t.q.getTimezoneOffset()&&(r>0?r-=864e5:r+=864e5,b=new T0e(Ns(tc(t.q.getTime()),r))),x=new a4,v=e.a.length,o=0;o<v;)if(i=ws(e.a,o),i>=97&&i<=122||i>=65&&i<=90){for(a=o+1;a<v&&ws(e.a,a)==i;++a);Dnn(x,i,a-o,d,b,n),o=a}else if(i==39){if(++o,o<v&&ws(e.a,o)==39){x.a+="'",++o;continue}for(T=!1;!T;){for(a=o;a<v&&ws(e.a,a)!=39;)++a;if(a>=v)throw V(new qt("Missing trailing '"));a+1<v&&ws(e.a,a+1)==39?++a:T=!0,Zn(x,Fa(e.a,o,a)),o=a+1}}else x.a+=String.fromCharCode(i),++o;return x.a}function Ien(){ui(dy,new oc),ui(oi,new j2),ui(ef,new F8),ui(lh,new TN),ui(Vae,new EN),ui(MV,new CB),ui(K1,new f6),ui(nM,new CN),ui(fI,new l6),ui(qae,new R5),ui(fp,new OB),ui(tf,new SB),ui(ch,new u6),ui(Fw,new jB),ui(gy,new $8),ui(Ol,new TB),ui(hy,new gK),ui(Zo,new pK),ui(Ys,new el),ui(ul,new so),ui(or,new mo),ui(K($l,1),new jc),ui(xk,new d1),ui(HE,new S2),ui(mU,new $5),ui(DEe,new ON),ui(jr,new xm),ui(V7e,new gu),ui(K7e,new ix),ui(yEe,new SN),ui(AV,new g1),ui(Lj,new B5),ui(Pr,new a6),ui(wke,new Cd),ui(Tw,new jN),ui(vke,new B8),ui(bEe,new EB),ui(LEe,new z8),ui(Ew,new T2),ui(tt,new Ia),ui(W7e,new E2),ui(PEe,new z5)}function $st(e,t){var n,i,r,o,a,d,b,v,x;if(e==null)return ml;if(b=t.a.yc(e,t),b!=null)return"[...]";for(n=new cb(Xc,"[","]"),r=e,o=0,a=r.length;o<a;++o)i=r[o],i!=null&&(Ou(i).i&4)!=0?Array.isArray(i)&&(x=SD(i),!(x>=14&&x<=16))?t.a._b(i)?(n.a?Zn(n.a,n.b):n.a=new Lu(n.d),zT(n.a,"[...]")):(d=q4(i),v=new G2(t),E1(n,$st(d,v))):ae(i,172)?E1(n,wUt(c(i,172))):ae(i,198)?E1(n,rQt(c(i,198))):ae(i,203)?E1(n,fGt(c(i,203))):ae(i,2090)?E1(n,sQt(c(i,2090))):ae(i,54)?E1(n,mUt(c(i,54))):ae(i,591)?E1(n,AUt(c(i,591))):ae(i,838)?E1(n,bUt(c(i,838))):ae(i,109)&&E1(n,pUt(c(i,109))):E1(n,i==null?ml:To(i));return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function KS(e,t){var n,i,r,o;o=e.F,t==null?(e.F=null,OS(e,null)):(e.F=(zt(t),t),i=Xh(t,pl(60)),i!=-1?(r=(hs(0,i,t.length),t.substr(0,i)),Xh(t,pl(46))==-1&&!St(r,lk)&&!St(r,LE)&&!St(r,tU)&&!St(r,PE)&&!St(r,IE)&&!St(r,RE)&&!St(r,$E)&&!St(r,BE)&&(r=_at),n=QF(t,pl(62)),n!=-1&&(r+=""+(en(n+1,t.length+1),t.substr(n+1))),OS(e,r)):(r=t,Xh(t,pl(46))==-1&&(i=Xh(t,pl(91)),i!=-1&&(r=(hs(0,i,t.length),t.substr(0,i))),!St(r,lk)&&!St(r,LE)&&!St(r,tU)&&!St(r,PE)&&!St(r,IE)&&!St(r,RE)&&!St(r,$E)&&!St(r,BE)?(r=_at,i!=-1&&(r+=""+(en(i,t.length+1),t.substr(i)))):r=t),OS(e,r),r==t&&(e.F=e.D))),(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Jr(e,1,5,o,t))}function Ren(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I;if(e.c=e.e,I=Ye($(t,(Ge(),fpt))),L=I==null||(zt(I),I),o=c($(t,(Ie(),Rc)),24).Gc((Us(),Ca)),r=c($(t,ar),103),n=!(r==(es(),Fb)||r==e1||r==kc),L&&(n||!o)){for(T=new U(t.a);T.a<T.c.c.length;)v=c(G(T),9),v.p=0;for(A=new He,x=new U(t.a);x.a<x.c.c.length;)if(v=c(G(x),9),i=xrt(e,v,null),i){for(b=new _me,nc(b,t),Me(b,Q1,c(i.b,24)),nbe(b.d,t.d),Me(b,Xj,null),d=c(i.a,16).Jc();d.Ob();)a=c(d.Pb(),9),Qe(b.a,a),a.a=b;A.Ec(b)}o&&(xe($(t,uC))===xe((X4(),Tce))?e.c=e.b:xe($(t,uC))===xe(Ece)?e.c=e.d:e.c=e.a)}else A=new Qo(Y(K(Ldt,1),Dct,37,0,[t]));return xe($(t,uC))!==xe((X4(),XE))&&(Mt(),A.gd(new X9)),A}function Bst(e,t){var n,i,r,o,a,d,b,v,x,T;if(b=t.length-1,d=(en(b,t.length),t.charCodeAt(b)),d==93){if(a=Xh(t,pl(91)),a>=0)return r=XBt(e,(hs(1,a,t.length),t.substr(1,a-1))),x=(hs(a+1,b,t.length),t.substr(a+1,b-(a+1))),unn(e,x,r)}else{if(n=-1,Mke==null&&(Mke=new RegExp("\\d")),Mke.test(String.fromCharCode(d))&&(n=z0e(t,pl(46),b-1),n>=0)){i=c(rte(e,sXe(e,(hs(1,n,t.length),t.substr(1,n-1))),!1),61),v=0;try{v=Hu((en(n+1,t.length+1),t.substr(n+1)),ls,gi)}catch(A){throw A=kr(A),ae(A,133)?(o=A,V(new hH(o))):V(A)}if(v<i.gc())return T=i.Xb(v),ae(T,76)&&(T=c(T,76).kd()),c(T,57)}if(n<0)return c(rte(e,sXe(e,(en(1,t.length+1),t.substr(1))),!1),57)}return null}function $en(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z;for(t.Tg("Label dummy insertions",1),T=new He,a=de(be($(e,(Ge(),k3)))),v=de(be($(e,Kv))),x=c($(e,Vu),87),L=new U(e.a);L.a<L.c.c.length;)for(A=c(G(L),9),o=new Ht(Xt(Fi(A).a.Jc(),new F));hn(o);)if(r=c(rn(o),17),r.c.i!=r.d.i&&TZ(r.b,Hdt)){for(z=NIt(r),I=Nd(r.b.c.length),n=aVt(e,r,z,I),It(T.c,n),i=n.o,d=new os(r.b,0);d.b<d.d.gc();)b=(gn(d.b<d.d.gc()),c(d.d.Xb(d.c=d.b++),70)),xe($(b,bd))===xe((yh(),h9))&&(x==(_r(),Ma)||x==Rh?(i.a+=b.o.a+v,i.b=p.Math.max(i.b,b.o.b)):(i.a=p.Math.max(i.a,b.o.a),i.b+=b.o.b+v),It(I.c,b),nu(d));x==(_r(),Ma)||x==Rh?(i.a-=v,i.b+=a+z):i.b+=a-v+z}Or(e.a,T),t.Ug()}function YS(e,t,n){var i,r,o,a,d,b,v;if(v=e.c,!t&&(t=oEe),e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&(b=new Jr(e,1,2,v,e.c),n?n.lj(b):n=b),v!=t){if(ae(e.Cb,294))e.Db>>16==-10?n=c(e.Cb,294).Wk(t,n):e.Db>>16==-15&&(!t&&(t=(At(),Fh)),!v&&(v=(At(),Fh)),e.Cb.Vh()&&(b=new C1(e.Cb,1,13,v,t,Rg(su(c(e.Cb,62)),e),!1),n?n.lj(b):n=b));else if(ae(e.Cb,89))e.Db>>16==-23&&(ae(t,89)||(t=(At(),rf)),ae(v,89)||(v=(At(),rf)),e.Cb.Vh()&&(b=new C1(e.Cb,1,10,v,t,Rg(pc(c(e.Cb,29)),e),!1),n?n.lj(b):n=b));else if(ae(e.Cb,449))for(d=c(e.Cb,842),a=(!d.b&&(d.b=new Pz(new pY)),d.b),o=(i=new lv(new Rp(a.a).a),new Iz(i));o.a.b;)r=c(_x(o.a).jd(),88),n=YS(r,BQ(r,d),n)}return n}function Ben(e,t){var n,i,r,o,a,d,b,v,x,T,A;for(a=Ze(Ye(Se(e,(Ge(),Gv)))),A=c(Se(e,Vv),24),b=!1,v=!1,T=new on((!e.c&&(e.c=new _e(fu,e,9,9)),e.c));T.e!=T.i.gc()&&(!b||!v);){for(o=c(un(T),127),d=0,r=Pd(wa(Y(K(Ea,1),Pt,22,0,[(!o.d&&(o.d=new Ct($i,o,8,5)),o.d),(!o.e&&(o.e=new Ct($i,o,7,4)),o.e)])));hn(r)&&(i=c(rn(r),74),x=a&&lw(i)&&Ze(Ye(Se(i,_b))),n=mst((!i.b&&(i.b=new Ct(xn,i,4,7)),i.b),o)?e==Wi(no(c(ce((!i.c&&(i.c=new Ct(xn,i,5,8)),i.c),0),83))):e==Wi(no(c(ce((!i.b&&(i.b=new Ct(xn,i,4,7)),i.b),0),83))),!((x||n)&&(++d,d>1))););(d>0||A.Gc((Gl(),W1))&&(!o.n&&(o.n=new _e(zo,o,1,7)),o.n).i>0)&&(b=!0),d>1&&(v=!0)}b&&t.Ec((Us(),Ca)),v&&t.Ec((Us(),tC))}function zst(e){var t,n,i,r,o,a,d,b,v,x,T,A;if(A=c(Se(e,(In(),zb)),24),A.dc())return null;if(d=0,a=0,A.Gc((Tu(),sI))){for(x=c(Se(e,u9),103),i=2,n=2,r=2,o=2,t=Wi(e)?c(Se(Wi(e),Bb),87):c(Se(e,Bb),87),v=new on((!e.c&&(e.c=new _e(fu,e,9,9)),e.c));v.e!=v.i.gc();)if(b=c(un(v),127),T=c(Se(b,L3),64),T==(Ue(),Bo)&&(T=txe(b,t),ri(b,L3,T)),x==(es(),kc))switch(T.g){case 1:i=p.Math.max(i,b.i+b.g);break;case 2:n=p.Math.max(n,b.j+b.f);break;case 3:r=p.Math.max(r,b.i+b.g);break;case 4:o=p.Math.max(o,b.j+b.f)}else switch(T.g){case 1:i+=b.g+2;break;case 2:n+=b.f+2;break;case 3:r+=b.g+2;break;case 4:o+=b.f+2}d=p.Math.max(i,r),a=p.Math.max(n,o)}return hw(e,d,a,!0,!0)}function zen(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z;for(r=null,i=new U(t.a);i.a<i.c.c.length;)n=c(G(i),9),Uie(n)?o=(d=Im(w_(new Bp,n),e.f),b=Im(w_(new Bp,n),e.f),v=new tbe(n,!0,d,b),x=n.o.b,T=(pv(),(n.q?n.q:(Mt(),Mt(),Vd))._b((Ge(),Iw))?A=c($(n,Iw),205):A=c($(Vr(n),pC),205),A),L=1e4,T==O3&&(L=1),I=Of(uf(ff(af(hf(new Ra,L),ks(p.Math.ceil(x))),d),b)),T==S3&&Er(e.d,I),vrt(e,ju(Io(n,(Ue(),Yt))),v),vrt(e,Io(n,nn),v),v):o=(z=Im(w_(new Bp,n),e.f),hr(mi(new Tt(null,new Et(n.j,16)),new ZR),new o$e(e,z)),new tbe(n,!1,z,z)),e.i[n.p]=o,r&&(a=r.c.d.a+yx(e.n,r.c,n)+n.d.d,r.b||(a+=r.c.o.b),Of(uf(ff(hf(af(new Ra,ks(p.Math.ceil(a))),0),r.d),o.a))),r=o}function Yie(e,t,n,i,r){var o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me;for(re=c(Hl(wH(mi(new Tt(null,new Et(t.d,16)),new G_e(n)),new U_e(n)),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[(ya(),wl)]))),16),T=gi,x=ls,b=new U(t.b.j);b.a<b.c.c.length;)d=c(G(b),12),d.j==n&&(T=p.Math.min(T,d.p),x=p.Math.max(x,d.p));if(T==gi)for(a=0;a<re.gc();a++)lme(c(re.Xb(a),108),n,a);else for(le=ke(Hn,li,30,r.length,15,1),uAt(le,le.length),W=re.Jc();W.Ob();){for(Q=c(W.Pb(),108),o=c(Ut(e.b,Q),172),v=0,z=T;z<=x;z++)o[z]&&(v=p.Math.max(v,i[z]));if(Q.i){for(L=Q.i.c,me=new Tr,A=0;A<r.length;A++)r[L][A]&&Er(me,$e(le[A]));for(;$a(me,$e(v));)++v}for(lme(Q,n,v),I=T;I<=x;I++)o[I]&&(i[I]=v+1);Q.i&&(le[Q.i.c]=v)}}function Fst(e,t){var n,i,r,o,a,d,b,v;for(Me(t,(Ie(),sC),$e(e.b)),Me(t,Lk,$e(e.b)),++e.b,yBe(e.d,t),Me(t,dJ,(Bt(),!0)),i=new Ht(Xt(td(t).a.Jc(),new F));hn(i);)n=c(rn(i),17),!(n.c.i!=t&&Lo(e.a,n,0)==-1)&&(n.c.i==t&&Lo(e.a,n,0)!=-1||(v=null,n.d.i==t?v=n.c.i:v=n.d.i,c($(v,sC),15).a==-1?(Fst(e,v),Me(t,Lk,$e(p.Math.min(c($(t,Lk),15).a,c($(v,Lk),15).a)))):Ze(Ye($(v,dJ)))&&Me(t,Lk,$e(p.Math.min(c($(t,Lk),15).a,c($(v,sC),15).a)))));if(xe($(t,Lk))===xe($(t,sC))){b=new Tr,o=null;do o=c(Swe(e.d),9),Me(o,dJ,!1),b.a.yc(o,b);while(t!=o);if(b.a.gc()>1)for(r=e.e.b,ei(e.e,b),d=b.a.ec().Jc();d.Ob();)a=c(d.Pb(),9),ci(e.c,a,$e(r))}}function Fen(e,t,n,i){var r,o,a,d,b,v,x,T,A,L;for(o=new Ytt(t),T=fWt(e,t,o),L=p.Math.max(de(be($(t,(Ge(),Jg)))),1),x=new U(T.a);x.a<x.c.c.length;)v=c(G(x),49),b=BYe(c(v.a,8),c(v.b,8),L),k=!0,k=k&$m(n,new ze(b.c,b.d)),k=k&$m(n,F2(new ze(b.c,b.d),b.b,0)),k=k&$m(n,F2(new ze(b.c,b.d),0,b.a)),k&$m(n,F2(new ze(b.c,b.d),b.b,b.a));switch(A=o.d,d=BYe(c(T.b.a,8),c(T.b.b,8),L),A==(Ue(),Yt)||A==nn?(i.c[A.g]=p.Math.min(i.c[A.g],d.d),i.b[A.g]=p.Math.max(i.b[A.g],d.d+d.a)):(i.c[A.g]=p.Math.min(i.c[A.g],d.c),i.b[A.g]=p.Math.max(i.b[A.g],d.c+d.b)),r=Gr,a=o.c.i.d,A.g){case 4:r=a.c;break;case 2:r=a.b;break;case 1:r=a.a;break;case 3:r=a.d}return i.a[A.g]=p.Math.max(i.a[A.g],r),o}function qen(e,t,n){var i,r,o,a,d,b,v,x,T,A,L;if(o=c($(e,(Ie(),Si)),74),!!o){for(i=e.a,r=new Ms(n),Oi(r,jHt(e)),bS(e.d.i,e.c.i)?(A=e.c,T=Po(Y(K(Wr,1),Fe,8,0,[A.n,A.a])),Qr(T,n)):T=mh(e.c),rr(i,T,i.a,i.a.a),L=mh(e.d),$(e,vle)!=null&&Oi(L,c($(e,vle),8)),rr(i,L,i.c.b,i.c),cv(i,r),a=Z7(o),CH(a,c(ce((!o.b&&(o.b=new Ct(xn,o,4,7)),o.b),0),83)),MH(a,c(ce((!o.c&&(o.c=new Ct(xn,o,5,8)),o.c),0),83)),ixe(i,a),x=new U(e.b);x.a<x.c.c.length;)v=c(G(x),70),d=c($(v,Si),158),rb(d,v.o.a),ib(d,v.o.b),fa(d,v.n.a+r.a,v.n.b+r.b),ri(d,(H4(),_ce),Ye($(v,_ce)));b=c($(e,(Ge(),go)),79),b?(cv(b,r),ri(o,go,b)):ri(o,go,null),t==(L1(),Jk)?ri(o,U1,Jk):ri(o,U1,null)}}function Hen(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re;for(L=t.c.length,A=0,T=new U(e.b);T.a<T.c.c.length;)if(x=c(G(T),26),W=x.a,W.c.length!=0){for(Q=new U(W),v=0,re=null,r=c(G(Q),9),o=null;r;){if(o=c(Je(t,r.p),264),o.c>=0){for(b=null,d=new os(x.a,v+1);d.b<d.d.gc()&&(a=(gn(d.b<d.d.gc()),c(d.d.Xb(d.c=d.b++),9)),b=c(Je(t,a.p),264),!(b.d==o.d&&b.c<o.c));)b=null;b&&(re&&(ku(i,r.p,$e(c(Je(i,r.p),15).a-1)),c(Je(n,re.p),16).Kc(o)),o=uQt(o,r,L++),It(t.c,o),Qe(n,new He),re?(c(Je(n,re.p),16).Ec(o),Qe(i,$e(1))):Qe(i,$e(0)))}I=null,Q.a<Q.c.c.length&&(I=c(G(Q),9),z=c(Je(t,I.p),264),c(Je(n,r.p),16).Ec(z),ku(i,I.p,$e(c(Je(i,I.p),15).a+1))),o.d=A,o.c=v++,re=r,r=I}++A}}function Qen(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt;d=c(Ut(t.c,e),460),re=t.a.c,b=t.a.c+t.a.b,wt=d.f,Lt=d.a,a=wt<Lt,z=new ze(re,wt),le=new ze(b,Lt),r=(re+b)/2,Q=new ze(r,wt),me=new ze(r,Lt),o=RVt(e,wt,Lt),Oe=mh(t.B),Xe=new ze(r,o),mt=mh(t.D),n=b$t(Y(K(Wr,1),Fe,8,0,[Oe,Xe,mt])),L=!1,W=t.B.i,W&&W.c&&d.d&&(v=a&&W.p<W.c.a.c.length-1||!a&&W.p>0,v?v&&(A=W.p,a?++A:--A,T=c(Je(W.c.a,A),9),i=$We(T),L=!(tit(i,Oe,n[0])||Jqe(i,Oe,n[0]))):L=!0),I=!1,je=t.D.i,je&&je.c&&d.e&&(x=a&&je.p>0||!a&&je.p<je.c.a.c.length-1,x?(A=je.p,a?--A:++A,T=c(Je(je.c.a,A),9),i=$We(T),I=!(tit(i,n[0],mt)||Jqe(i,n[0],mt))):I=!0),L&&I&&ei(e.a,Xe),L||y7(e.a,Y(K(Wr,1),Fe,8,0,[z,Q])),I||y7(e.a,Y(K(Wr,1),Fe,8,0,[me,le]))}function qst(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt;if(n.c.length!=0){for(I=new He,L=new U(n);L.a<L.c.c.length;)A=c(G(L),19),Qe(I,new ze(A.i,A.j));for(i.bh(t,"Before removing overlaps");vve(e,n);)IQ(e,n,!1);if(i.bh(t,"After removing overlaps"),d=0,b=0,r=null,n.c.length!=0&&(r=(ht(0,n.c.length),c(n.c[0],19)),d=r.i-(ht(0,I.c.length),c(I.c[0],8)).a,b=r.j-(ht(0,I.c.length),c(I.c[0],8)).b),a=p.Math.sqrt(d*d+b*b),T=iBt(n),o=1,T.a.gc()!=0){for(x=T.a.ec().Jc();x.Ob();)v=c(x.Pb(),19),z=e.f,Q=z.i+z.g/2,W=z.j+z.f/2,re=v.i+v.g/2,le=v.j+v.f/2,me=re-Q,je=le-W,Oe=p.Math.sqrt(me*me+je*je),Xe=me/Oe,mt=je/Oe,Nc(v,v.i+Xe*a),_l(v,v.j+mt*a);i.bh(t,"Child movement "+o),++o}e.a&&e.a.Fg(new ql(T)),qst(e,t,new ql(T),i)}}function Gen(e,t){var n,i,r,o,a,d,b,v,x,T,A;if(!e.f[t.p]){for(e.f[t.p]=!0,b=new yn,r=xe($(e.c,(Ge(),Ik)))===xe((N0(),Fv)),i=new Ht(Xt(Fi(t).a.Jc(),new F));hn(i);)n=c(rn(i),17),ki(n.d.i,(Ie(),Ri))?(A=0,T=n.d.i,r?(d=c($(e.c,ep),15).a,A=d*c($(T,Hv),15).a+c($(T,Ri),15).a):A=c($(n.d.i,Ri),15).a,Cc(b,$e(A))?Er(c(Ut(b,$e(A)),47),n):ci(b,$e(A),new G2(new Qo(Y(K(Ij,1),bj,17,0,[n]))))):ci(b,$e(gi-(b.f.c+b.i.c)),new G2(new Qo(Y(K(Ij,1),bj,17,0,[n]))));for(v=new o0e(new an(b)),a=v.a.ec().Jc();a.Ob();)o=c(a.Pb(),15).a,x=c(c(Ut(b,$e(o)),47).a.ec().Jc().Pb(),17),!ys(x)&&(T=x.d.i,e.f[T.p]&&!$a(e.e,t)&&!$a(e.d,T)?Or(e.b,c(Ut(b,$e(o)),18)):ei(e.a,T))}}function Uen(e){var t,n,i,r;if(n=e.D!=null?e.D:e.B,t=Xh(n,pl(91)),t!=-1){i=(hs(0,t,n.length),n.substr(0,t)),r=new vg;do r.a+="[";while((t=F6(n,91,++t))!=-1);St(i,lk)?r.a+="Z":St(i,LE)?r.a+="B":St(i,tU)?r.a+="C":St(i,PE)?r.a+="D":St(i,IE)?r.a+="F":St(i,RE)?r.a+="I":St(i,$E)?r.a+="J":St(i,BE)?r.a+="S":(r.a+="L",r.a+=""+i,r.a+=";");try{return null}catch(o){if(o=kr(o),!ae(o,63))throw V(o)}}else if(Xh(n,pl(46))==-1){if(St(n,lk))return Sl;if(St(n,LE))return $l;if(St(n,tU))return _a;if(St(n,PE))return is;if(St(n,IE))return wy;if(St(n,RE))return Hn;if(St(n,$E))return Gw;if(St(n,BE))return B3}return null}function Jen(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe;for(T=new qpe(new Fde(e));T.c!=T.d.a.d;)for(x=OVe(T),d=c(x.d,57),t=c(x.e,57),a=d.Ah(),z=0,me=(a.i==null&&sd(a),a.i).length;z<me;++z)if(v=(o=(a.i==null&&sd(a),a.i),z>=0&&z<o.length?o[z]:null),v.pk()&&!v.qk()){if(ae(v,104))b=c(v,20),(b.Bb&rc)==0&&(Oe=Qs(b),!(Oe&&(Oe.Bb&rc)!=0))&&TYt(e,b,d,t);else if(Hs(),c(v,69).vk()&&(n=(je=v,c(je?c(t,52).di(je):null,164)),n))for(L=c(d.Jh(v),164),i=n.gc(),Q=0,I=L.gc();Q<I;++Q)if(A=L.Rl(Q),ae(A,104)){if(le=L.Sl(Q),r=vh(e,le),r==null&&le!=null){if(re=c(A,20),!e.b||(re.Bb&rc)!=0||Qs(re))continue;r=le}if(!n.Ml(A,r)){for(W=0;W<i;++W)if(n.Rl(W)==A&&xe(n.Sl(W))===xe(r)){n.Ri(n.gc()-1,W),--i;break}}}else n.Ml(L.Rl(Q),L.Sl(Q))}}function Ven(e,t,n){var i;if(n.Tg("StretchWidth layering",1),t.a.c.length==0){n.Ug();return}for(e.c=t,e.t=0,e.u=0,e.i=sr,e.g=Gr,e.d=de(be($(t,(Ge(),Mf)))),yFt(e),pJt(e),gJt(e),yHt(e),jzt(e),e.i=p.Math.max(1,e.i),e.g=p.Math.max(1,e.g),e.d=e.d/e.i,e.f=e.g/e.i,e.s=RFt(e),i=new dc(e.c),Qe(e.c.b,i),e.r=Zp(e.p),e.n=zq(e.k,e.k.length);e.r.c.length!=0;)e.o=J$t(e),!e.o||QWe(e)&&e.b.a.gc()!=0?(VHt(e,i),i=new dc(e.c),Qe(e.c.b,i),Ss(e.a,e.b),e.b.a.$b(),e.t=e.u,e.u=0):QWe(e)?(e.c.b.c.length=0,i=new dc(e.c),Qe(e.c.b,i),e.t=0,e.u=0,e.b.a.$b(),e.a.a.$b(),++e.f,e.r=Zp(e.p),e.n=zq(e.k,e.k.length)):(zr(e.o,i),dl(e.r,e.o),Er(e.b,e.o),e.t=e.t-e.k[e.o.p]*e.d+e.j[e.o.p],e.u+=e.e[e.o.p]*e.d);t.a.c.length=0,U7(t.b),n.Ug()}function Zie(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le;return b=e,x=Qr(new ze(t.a,t.b),e),v=n,T=Qr(new ze(i.a,i.b),n),A=b.a,Q=b.b,I=v.a,re=v.b,L=x.a,W=x.b,z=T.a,le=T.b,r=z*W-L*le,dh(),vf(fd),p.Math.abs(0-r)<=fd||r==0||isNaN(0)&&isNaN(r)?!1:(a=1/r*((A-I)*W-(Q-re)*L),d=1/r*-(-(A-I)*le+(Q-re)*z),o=(vf(fd),(p.Math.abs(0-a)<=fd||a==0||isNaN(0)&&isNaN(a)?0:0<a?-1:0>a?1:Hp(isNaN(0),isNaN(a)))<0&&(vf(fd),(p.Math.abs(a-1)<=fd||a==1||isNaN(a)&&isNaN(1)?0:a<1?-1:a>1?1:Hp(isNaN(a),isNaN(1)))<0)&&(vf(fd),(p.Math.abs(0-d)<=fd||d==0||isNaN(0)&&isNaN(d)?0:0<d?-1:0>d?1:Hp(isNaN(0),isNaN(d)))<0)&&(vf(fd),(p.Math.abs(d-1)<=fd||d==1||isNaN(d)&&isNaN(1)?0:d<1?-1:d>1?1:Hp(isNaN(d),isNaN(1)))<0)),o)}function Xen(e){var t,n,i,r,o,a,d,b,v,x,T;for(e.j=ke(Hn,li,30,e.g,15,1),e.o=new He,hr(jo(new Tt(null,new Et(e.e.b,16)),new t$),new yDe(e)),e.a=ke(Sl,Yf,30,e.b,16,1),qD(new Tt(null,new Et(e.e.b,16)),new kDe(e)),i=(T=new He,hr(mi(jo(new Tt(null,new Et(e.e.b,16)),new M5),new xDe(e)),new c$e(e,T)),T),b=new U(i);b.a<b.c.c.length;)if(d=c(G(b),504),!(d.c.length<=1)){if(d.c.length==2){LUt(d),Uie((ht(0,d.c.length),c(d.c[0],17)).d.i)||Qe(e.o,d);continue}if(!(nQt(d)||HGt(d,new n$)))for(v=new U(d),r=null;v.a<v.c.c.length;)t=c(G(v),17),n=e.c[t.p],!r||v.a>=v.c.c.length?x=Dbe((Jt(),ur),Cr):x=Dbe((Jt(),Cr),Cr),x*=2,o=n.a.g,n.a.g=p.Math.max(o,o+(x-o)),a=n.b.g,n.b.g=p.Math.max(a,a+(x-a)),r=t}}function iG(e,t){var n;if(e.e)throw V(new co((x1(fce),zre+fce.k+Fre)));if(!R8t(e.a,t))throw V(new Ao(uct+t+act));if(t==e.d)return e;switch(n=e.d,e.d=t,n.g){case 0:switch(t.g){case 2:ow(e);break;case 1:D0(e),ow(e);break;case 4:zx(e),ow(e);break;case 3:zx(e),D0(e),ow(e)}break;case 2:switch(t.g){case 1:D0(e),Mie(e);break;case 4:zx(e),ow(e);break;case 3:zx(e),D0(e),ow(e)}break;case 1:switch(t.g){case 2:D0(e),Mie(e);break;case 4:D0(e),zx(e),ow(e);break;case 3:D0(e),zx(e),D0(e),ow(e)}break;case 4:switch(t.g){case 2:zx(e),ow(e);break;case 1:zx(e),D0(e),ow(e);break;case 3:D0(e),Mie(e)}break;case 3:switch(t.g){case 2:D0(e),zx(e),ow(e);break;case 1:D0(e),zx(e),D0(e),ow(e);break;case 4:D0(e),Mie(e)}}return e}function Vx(e,t){var n;if(e.d)throw V(new co((x1(jce),zre+jce.k+Fre)));if(!$8t(e.a,t))throw V(new Ao(uct+t+act));if(t==e.c)return e;switch(n=e.c,e.c=t,n.g){case 0:switch(t.g){case 2:ub(e);break;case 1:_0(e),ub(e);break;case 4:Fx(e),ub(e);break;case 3:Fx(e),_0(e),ub(e)}break;case 2:switch(t.g){case 1:_0(e),Aie(e);break;case 4:Fx(e),ub(e);break;case 3:Fx(e),_0(e),ub(e)}break;case 1:switch(t.g){case 2:_0(e),Aie(e);break;case 4:_0(e),Fx(e),ub(e);break;case 3:_0(e),Fx(e),_0(e),ub(e)}break;case 4:switch(t.g){case 2:Fx(e),ub(e);break;case 1:Fx(e),_0(e),ub(e);break;case 3:_0(e),Aie(e)}break;case 3:switch(t.g){case 2:_0(e),Fx(e),ub(e);break;case 1:_0(e),Fx(e),_0(e),ub(e);break;case 4:_0(e),Aie(e)}}return e}function Wen(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le;for(T=e.b,x=new os(T,0),H2(x,new dc(e)),re=!1,a=1;x.b<x.d.gc();){for(v=(gn(x.b<x.d.gc()),c(x.d.Xb(x.c=x.b++),26)),z=(ht(a,T.c.length),c(T.c[a],26)),Q=Zp(v.a),W=Q.c.length,I=new U(Q);I.a<I.c.c.length;)A=c(G(I),9),zr(A,z);if(re){for(L=ju(Q).Jc();L.Ob();)for(A=c(L.Pb(),9),o=new U(Zp(vr(A)));o.a<o.c.c.length;)r=c(G(o),17),Bg(r,!0),Me(e,(Ie(),Mk),(Bt(),!0)),i=yst(e,r,W),n=c($(A,Nw),318),le=c(Je(i,i.c.length-1),17),n.k=le.c.i,n.n=le,n.b=r.d.i,n.c=r;re=!1}else Q.c.length!=0&&(t=(ht(0,Q.c.length),c(Q.c[0],9)),t.k==(Jt(),_h)&&(re=!0,a=-1));++a}for(d=new os(e.b,0);d.b<d.d.gc();)b=(gn(d.b<d.d.gc()),c(d.d.Xb(d.c=d.b++),26)),b.a.c.length==0&&nu(d)}function rG(e,t){var n,i,r,o,a,d,b,v;if(ae(e.Bh(),176)?(rG(c(e.Bh(),176),t),t.a+=" > "):t.a+="Root ",n=e.Ah().zb,St(n.substr(0,3),"Elk")?Zn(t,(en(3,n.length+1),n.substr(3))):t.a+=""+n,r=e.ih(),r){Zn((t.a+=" ",t),r);return}if(ae(e,363)&&(v=c(e,158).a,v)){Zn((t.a+=" ",t),v);return}for(a=new on(e.jh());a.e!=a.i.gc();)if(o=c(un(a),158),v=o.a,v){Zn((t.a+=" ",t),v);return}if(ae(e,273)&&(i=c(e,74),!i.b&&(i.b=new Ct(xn,i,4,7)),i.b.i!=0&&(!i.c&&(i.c=new Ct(xn,i,5,8)),i.c.i!=0))){for(t.a+=" (",d=new k4((!i.b&&(i.b=new Ct(xn,i,4,7)),i.b));d.e!=d.i.gc();)d.e>0&&(t.a+=Xc),rG(c(un(d),176),t);for(t.a+=Vre,b=new k4((!i.c&&(i.c=new Ct(xn,i,5,8)),i.c));b.e!=b.i.gc();)b.e>0&&(t.a+=Xc),rG(c(un(b),176),t);t.a+=")"}}function Ken(e,t,n){var i,r,o,a,d,b,v,x;for(b=new on((!e.a&&(e.a=new _e(_n,e,10,11)),e.a));b.e!=b.i.gc();)for(d=c(un(b),19),r=new Ht(Xt(I1(d).a.Jc(),new F));hn(r);){if(i=c(rn(r),74),!i.b&&(i.b=new Ct(xn,i,4,7)),!(i.b.i<=1&&(!i.c&&(i.c=new Ct(xn,i,5,8)),i.c.i<=1)))throw V(new u4("Graph must not contain hyperedges."));if(!W7(i)&&d!=no(c(ce((!i.c&&(i.c=new Ct(xn,i,5,8)),i.c),0),83)))for(v=new iFe,nc(v,i),Me(v,(M0(),jk),i),Cz(v,c(No(lo(n.f,d)),156)),KK(v,c(Ut(n,no(c(ce((!i.c&&(i.c=new Ct(xn,i,5,8)),i.c),0),83))),156)),Qe(t.c,v),a=new on((!i.n&&(i.n=new _e(zo,i,1,7)),i.n));a.e!=a.i.gc();)o=c(un(a),158),x=new gUe(v,o.a),nc(x,o),Me(x,jk,o),x.e.a=p.Math.max(o.g,1),x.e.b=p.Math.max(o.f,1),cxe(x),Qe(t.d,x)}}function Yen(e,t,n){var i,r,o,a,d,b,v,x,T,A;switch(n.Tg("Node promotion heuristic",1),e.i=t,e.r=c($(t,(Ge(),TP)),246),e.r!=(F0(),e9)&&e.r!=yC?Stn(e):JXt(e),x=c($(e.i,sje),15).a,o=new _W,e.r.g){case 2:case 1:WS(e,o);break;case 3:for(e.r=PJ,WS(e,o),b=0,d=new U(e.b);d.a<d.c.c.length;)a=c(G(d),15),b=p.Math.max(b,a.a);b>e.k&&(e.r=AP,WS(e,o));break;case 4:for(e.r=PJ,WS(e,o),v=0,r=new U(e.c);r.a<r.c.c.length;)i=be(G(r)),v=p.Math.max(v,(zt(i),i));v>e.n&&(e.r=NP,WS(e,o));break;case 6:A=ks(p.Math.ceil(e.g.length*x/100)),WS(e,new v_e(A));break;case 5:T=ks(p.Math.ceil(e.e*x/100)),WS(e,new y_e(T));break;case 8:Oot(e,!0);break;case 9:Oot(e,!1);break;default:WS(e,o)}e.r!=e9&&e.r!=yC?dXt(e,t):_Wt(e,t),n.Ug()}function Zen(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le;for(T=new kxe(e),C_t(T,!(t==(_r(),Ma)||t==Rh)),x=T.a,A=new s4,r=(Wf(),Y(K(Lv,1),Pe,240,0,[Wo,Kc,Ko])),a=0,b=r.length;a<b;++a)n=r[a],v=CZ(x,Wo,n),v&&(A.d=p.Math.max(A.d,v.ff()));for(i=Y(K(Lv,1),Pe,240,0,[Wo,Kc,Ko]),o=0,d=i.length;o<d;++o)n=i[o],v=CZ(x,Ko,n),v&&(A.a=p.Math.max(A.a,v.ff()));for(z=Y(K(Lv,1),Pe,240,0,[Wo,Kc,Ko]),W=0,le=z.length;W<le;++W)L=z[W],v=CZ(x,L,Wo),v&&(A.b=p.Math.max(A.b,v.gf()));for(I=Y(K(Lv,1),Pe,240,0,[Wo,Kc,Ko]),Q=0,re=I.length;Q<re;++Q)L=I[Q],v=CZ(x,L,Ko),v&&(A.c=p.Math.max(A.c,v.gf()));return A.d>0&&(A.d+=x.n.d,A.d+=x.d),A.a>0&&(A.a+=x.n.a,A.a+=x.d),A.b>0&&(A.b+=x.n.b,A.b+=x.d),A.c>0&&(A.c+=x.n.c,A.c+=x.d),A}function Hst(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I;for(A=n.d,T=n.c,o=new ze(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),a=o.b,v=new U(e.a);v.a<v.c.c.length;)if(d=c(G(v),9),d.k==(Jt(),Ar)){switch(i=c($(d,(Ie(),Yo)),64),r=c($(d,V6e),8),x=d.n,i.g){case 2:x.a=n.f.a+A.c-T.a;break;case 4:x.a=-T.a-A.b}switch(I=0,i.g){case 2:case 4:t==(es(),e1)?(L=de(be($(d,Dw))),x.b=o.b*L-c($(d,(Ge(),Rw)),8).b,I=x.b+r.b,FH(d,!1,!0)):t==kc&&(x.b=de(be($(d,Dw)))-c($(d,(Ge(),Rw)),8).b,I=x.b+r.b,FH(d,!1,!0))}a=p.Math.max(a,I)}for(n.f.b+=a-o.b,b=new U(e.a);b.a<b.c.c.length;)if(d=c(G(b),9),d.k==(Jt(),Ar))switch(i=c($(d,(Ie(),Yo)),64),x=d.n,i.g){case 1:x.b=-T.b-A.d;break;case 3:x.b=n.f.b+A.a-T.b}}function Qst(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z;if(v=wYt(c(Se(t,(zd(),ny)),107),c(Se(n,$b),107)),Nc(n,t.i+v),de(be(Se(e,wd)))<de(be(Se(n,wd)))){for(A=c(Se(e,$b),107),x=A.c+e.i;A.b;)A=A.b,x+=A.c;for(o=new vu(c(Se(n,$b),107).c,-100,c(Se(n,$b),107).b),z=o.c+n.i;o.b.a<=A.a;)o=o.b,z+=o.c;d=o.b.c,b=o.b.a-o.a,a=(A.a-o.a)*d/b,I=-x+z+a,L=new vu(o.b.c-a,o.b.a,o.b.b),Z5(A,new vu(I,A.a,L)),ri(e,wd,be(Se(n,wd)))}if(de(be(Se(n,wd)))<de(be(Se(t,wd)))){for(T=c(Se(n,ny),107),z=T.c+n.i;T.b;)T=T.b,z+=T.c;for(r=new vu(c(Se(t,ny),107).c,-100,c(Se(t,ny),107).b),i=r.c+t.i;r.b.a<=T.a;)r=r.b,i+=r.c;d=r.b.c,b=r.b.a-r.a,a=(T.a-r.a)*d/b,I=i-z+a,L=new vu(r.b.c-a,r.b.a,r.b.b),Z5(T,new vu(I,T.a,L)),ri(n,wd,be(Se(t,wd)))}}function etn(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W;if(x=c(c(Ei(e.r,t),24),85),x.gc()<=2||t==(Ue(),nn)||t==(Ue(),Yt)){aot(e,t);return}for(z=e.u.Gc((Gl(),Vk)),n=t==(Ue(),Kt)?(tw(),lP):(tw(),cP),W=t==Kt?(gl(),Ef):(gl(),nh),i=_1e(U0e(n),e.s),Q=t==Kt?sr:Gr,v=x.Jc();v.Ob();)d=c(v.Pb(),116),!(!d.c||d.c.d.c.length<=0)&&(I=d.b.Kf(),L=d.e,T=d.c,A=T.i,A.b=(o=T.n,T.e.a+o.b+o.c),A.a=(a=T.n,T.e.b+a.d+a.a),z?(A.c=L.a-(r=T.n,T.e.a+r.b+r.c)-e.s,z=!1):A.c=L.a+I.a+e.s,iD(W,Xxe),T.f=W,Xf(T,(Ql(),Tf)),Qe(i.d,new ree(A,Fwe(i,A))),Q=t==Kt?p.Math.min(Q,L.b):p.Math.max(Q,L.b+d.b.Kf().b));for(Q+=t==Kt?-e.t:e.t,r2e((i.e=Q,i)),b=x.Jc();b.Ob();)d=c(b.Pb(),116),!(!d.c||d.c.d.c.length<=0)&&(A=d.c.i,A.c-=d.e.a,A.d-=d.e.b)}function Gst(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le;for(r=new He,z=new U(t.a);z.a<z.c.c.length;)if(I=c(G(z),9),L=I.e,L&&(i=Gst(e,L,I),Or(r,i),gen(e,L,I),c($(L,(Ie(),Rc)),24).Gc((Us(),Ca))))for(re=c($(I,(Ge(),ar)),103),A=c($(I,Vv),185).Gc((Gl(),W1)),W=new U(I.j);W.a<W.c.c.length;)for(Q=c(G(W),12),o=c(Ut(e.b,Q),9),o||(o=yL(Q,re,Q.j,-(Q.e.c.length-Q.g.c.length),null,new fs,Q.o,c($(L,Vu),87),L),Me(o,Si,Q),ci(e.b,Q,o),Qe(L.a,o)),a=c(Je(o.j,0),12),x=new U(Q.f);x.a<x.c.c.length;)v=c(G(x),70),d=new aIe,d.o.a=v.o.a,d.o.b=v.o.b,Qe(a.f,d),A||(le=Q.j,T=0,ZT(c($(I,Vv),24))&&(T=Qve(v.n,v.o,Q.o,0,le)),re==(es(),Bh)||(Ue(),ll).Gc(le)?d.o.a=T:d.o.b=T);return b=new He,pen(e,t,n,r,b),n&&NZt(e,t,n,b),b}function vxe(e,t,n){var i,r,o,a,d,b,v,x,T;if(!e.c[t.c.p][t.p].e){for(e.c[t.c.p][t.p].e=!0,e.c[t.c.p][t.p].b=0,e.c[t.c.p][t.p].d=0,e.c[t.c.p][t.p].a=null,x=new U(t.j);x.a<x.c.c.length;)for(v=c(G(x),12),T=n?new T6(v):new t4(v),b=T.Jc();b.Ob();)d=c(b.Pb(),12),a=d.i,a.c==t.c?a!=t&&(vxe(e,a,n),e.c[t.c.p][t.p].b+=e.c[a.c.p][a.p].b,e.c[t.c.p][t.p].d+=e.c[a.c.p][a.p].d):(e.c[t.c.p][t.p].d+=e.g[d.p],++e.c[t.c.p][t.p].b);if(o=c($(t,(Ie(),Q6e)),16),o)for(r=o.Jc();r.Ob();)i=c(r.Pb(),9),t.c==i.c&&(vxe(e,i,n),e.c[t.c.p][t.p].b+=e.c[i.c.p][i.p].b,e.c[t.c.p][t.p].d+=e.c[i.c.p][i.p].d);e.c[t.c.p][t.p].b>0&&(e.c[t.c.p][t.p].d+=cu(e.i,24)*DL*.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 ttn(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q;for(I=new U(e);I.a<I.c.c.length;){for(L=c(G(I),9),Sg(L.n),Sg(L.o),Zbe(L.f),ert(L),bWt(L),Q=new U(L.j);Q.a<Q.c.c.length;){for(z=c(G(Q),12),Sg(z.n),Sg(z.a),Sg(z.o),$r(z,bZe(z.j)),o=c($(z,(Ge(),Vg)),15),o&&Me(z,Vg,$e(-o.a)),r=new U(z.g);r.a<r.c.c.length;){for(i=c(G(r),17),n=Pn(i.a,0);n.b!=n.d.c;)t=c(Dn(n),8),Sg(t);if(b=c($(i,go),79),b)for(d=Pn(b,0);d.b!=d.d.c;)a=c(Dn(d),8),Sg(a);for(T=new U(i.b);T.a<T.c.c.length;)v=c(G(T),70),Sg(v.n),Sg(v.o)}for(A=new U(z.f);A.a<A.c.c.length;)v=c(G(A),70),Sg(v.n),Sg(v.o)}for(L.k==(Jt(),Ar)&&(Me(L,(Ie(),Yo),bZe(c($(L,Yo),64))),SXt(L)),x=new U(L.b);x.a<x.c.c.length;)v=c(G(x),70),ert(v),Sg(v.o),Sg(v.n)}}function ntn(e){q2();var t,n,i,r,o,a,d;for(i=e.f.n,a=$pe(e.r).a.nc();a.Ob();){if(o=c(a.Pb(),116),r=0,o.b.nf((In(),au))&&(r=de(be(o.b.mf(au))),r<0))switch(o.b.$f().g){case 1:i.d=p.Math.max(i.d,-r);break;case 3:i.a=p.Math.max(i.a,-r);break;case 2:i.c=p.Math.max(i.c,-r);break;case 4:i.b=p.Math.max(i.b,-r)}if(ZT(e.u))switch(t=ERt(o.b,r),d=!c(e.e.mf(op),185).Gc((lu(),oI)),n=!1,o.b.$f().g){case 1:n=t>i.d,i.d=p.Math.max(i.d,t),d&&n&&(i.d=p.Math.max(i.d,i.a),i.a=i.d+r);break;case 3:n=t>i.a,i.a=p.Math.max(i.a,t),d&&n&&(i.a=p.Math.max(i.a,i.d),i.d=i.a+r);break;case 2:n=t>i.c,i.c=p.Math.max(i.c,t),d&&n&&(i.c=p.Math.max(i.b,i.c),i.b=i.c+r);break;case 4:n=t>i.b,i.b=p.Math.max(i.b,t),d&&n&&(i.b=p.Math.max(i.b,i.c),i.c=i.b+r)}}}function Ust(e,t){var n,i,r,o,a,d,b,v,x;return v="",t.length==0?e.le(Rxe,fre,-1,-1):(x=wv(t),St(x.substr(0,3),"at ")&&(x=(en(3,x.length+1),x.substr(3))),x=x.replace(/\[.*?\]/g,""),a=x.indexOf("("),a==-1?(a=x.indexOf("@"),a==-1?(v=x,x=""):(v=wv((en(a+1,x.length+1),x.substr(a+1))),x=wv((hs(0,a,x.length),x.substr(0,a))))):(n=x.indexOf(")",a),v=(hs(a+1,n,x.length),x.substr(a+1,n-(a+1))),x=wv((hs(0,a,x.length),x.substr(0,a)))),a=Xh(x,pl(46)),a!=-1&&(x=(en(a+1,x.length+1),x.substr(a+1))),(x.length==0||St(x,"Anonymous function"))&&(x=fre),d=QF(v,pl(58)),r=z0e(v,pl(58),d-1),b=-1,i=-1,o=Rxe,d!=-1&&r!=-1&&(o=(hs(0,r,v.length),v.substr(0,r)),b=Oze((hs(r+1,d,v.length),v.substr(r+1,d-(r+1)))),i=Oze((en(d+1,v.length+1),v.substr(d+1)))),e.le(o,x,b,i))}function itn(e){var t,n,i,r,o,a,d,b,v,x,T;for(v=new U(e);v.a<v.c.c.length;){switch(b=c(G(v),9),a=c($(b,(Ge(),$o)),166),o=null,a.g){case 1:case 2:o=(lb(),d3);break;case 3:case 4:o=(lb(),Hj)}if(o)Me(b,(Ie(),aJ),(lb(),d3)),o==Hj?QQ(b,a,(Gs(),Vl)):o==d3&&QQ(b,a,(Gs(),Yc));else if(wx(c($(b,ar),103))&&b.j.c.length!=0){for(t=!0,T=new U(b.j);T.a<T.c.c.length;){if(x=c(G(T),12),!(x.j==(Ue(),nn)&&x.e.c.length-x.g.c.length>0||x.j==Yt&&x.e.c.length-x.g.c.length<0)){t=!1;break}for(r=new U(x.g);r.a<r.c.c.length;)if(n=c(G(r),17),d=c($(n.d.i,$o),166),d==(Su(),cC)||d==Nb){t=!1;break}for(i=new U(x.e);i.a<i.c.c.length;)if(n=c(G(i),17),d=c($(n.c.i,$o),166),d==(Su(),oC)||d==G1){t=!1;break}}t&&QQ(b,a,(Gs(),xC))}}}function rtn(e,t,n,i,r){var o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe;for(Oe=0,L=0,T=new U(t.e);T.a<T.c.c.length;){for(x=c(G(T),9),A=0,d=0,b=n?c($(x,BJ),15).a:ls,W=i?c($(x,zJ),15).a:ls,v=p.Math.max(b,W),le=new U(x.j);le.a<le.c.c.length;){if(re=c(G(le),12),me=x.n.b+re.n.b+re.a.b,i)for(a=new U(re.g);a.a<a.c.c.length;)o=c(G(a),17),z=o.d,I=z.i,t!=e.a[I.p]&&(Q=p.Math.max(c($(I,BJ),15).a,c($(I,zJ),15).a),je=c($(o,(Ge(),$k)),15).a,je>=v&&je>=Q&&(A+=I.n.b+z.n.b+z.a.b-me,++d));if(n)for(a=new U(re.e);a.a<a.c.c.length;)o=c(G(a),17),z=o.c,I=z.i,t!=e.a[I.p]&&(Q=p.Math.max(c($(I,BJ),15).a,c($(I,zJ),15).a),je=c($(o,(Ge(),$k)),15).a,je>=v&&je>=Q&&(A+=I.n.b+z.n.b+z.a.b-me,++d))}d>0&&(Oe+=A/d,++L)}L>0?(t.a=r*Oe/L,t.g=L):(t.a=0,t.g=0)}function yxe(e,t,n,i){var r,o,a,d,b;return d=new kxe(t),WVt(d,i),r=!0,e&&e.nf((In(),Bb))&&(o=c(e.mf((In(),Bb)),87),r=o==(_r(),$h)||o==po||o==vo),zit(d,!1),Uc(d.e.Pf(),new G0e(d,!1,r)),Iee(d,d.f,(Wf(),Wo),(Ue(),Kt)),Iee(d,d.f,Ko,mn),Iee(d,d.g,Wo,Yt),Iee(d,d.g,Ko,nn),eZe(d,Kt),eZe(d,mn),zHe(d,nn),zHe(d,Yt),q2(),a=d.A.Gc((Tu(),ay))&&d.B.Gc((lu(),cI))?hYe(d):null,a&&V9t(d.a,a),ntn(d),gqt(d),pqt(d),_en(d),qKt(d),Fqt(d),Tne(d,Kt),Tne(d,mn),AWt(d),yZt(d),n&&(ezt(d),qqt(d),Tne(d,nn),Tne(d,Yt),b=d.B.Gc((lu(),tM)),jtt(d,b,Kt),jtt(d,b,mn),Ttt(d,b,nn),Ttt(d,b,Yt),hr(new Tt(null,new Et(new m1(d.i),0)),new t2),hr(mi(new Tt(null,$pe(d.r).a.oc()),new n2),new i2),eQt(d),d.e.Nf(d.o),hr(new Tt(null,$pe(d.r).a.oc()),new a0)),d.o}function stn(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z;for(v=sr,i=new U(e.a.b);i.a<i.c.c.length;)t=c(G(i),84),v=p.Math.min(v,t.d.f.g.c+t.e.a);for(L=new _i,a=new U(e.a.a);a.a<a.c.c.length;)o=c(G(a),197),o.i=v,o.e==0&&rr(L,o,L.c.b,L.c);for(;L.b!=0;){for(o=c(L.b==0?null:(gn(L.b!=0),ma(L,L.a.a)),197),r=o.f.g.c,A=o.a.a.ec().Jc();A.Ob();)x=c(A.Pb(),84),z=o.i+x.e.a,x.d.g||x.g.c<z?x.o=z:x.o=x.g.c;for(r-=o.f.o,o.b+=r,e.c==(_r(),vo)||e.c==Rh?o.c+=r:o.c-=r,T=o.a.a.ec().Jc();T.Ob();)for(x=c(T.Pb(),84),b=x.f.Jc();b.Ob();)d=c(b.Pb(),84),v1(e.c)?I=e.f.wf(x,d):I=e.f.xf(x,d),d.d.i=p.Math.max(d.d.i,x.o+x.g.b+I-d.e.a),d.k||(d.d.i=p.Math.max(d.d.i,d.g.c-d.e.a)),--d.d.e,d.d.e==0&&ei(L,d.d)}for(n=new U(e.a.b);n.a<n.c.c.length;)t=c(G(n),84),t.g.c=t.o}function Jst(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe;for(n.Tg(Slt,1),A=(Ii(),hue),e.a==(E7(),UJ)&&(A=v9e),x=0,Mt(),t.gd(new sY(A)),o=t.gc(),d=t.dd(t.gc()),v=!0;v&&d.Sb();)re=c(d.Ub(),41),c($(re,A),15).a==0?--o:v=!1;if(Oe=t.hd(0,o),a=new FZ(Oe),Oe=t.hd(o,t.gc()),b=new FZ(Oe),a.b==0)for(z=Pn(b,0);z.b!=z.d.c;)I=c(Dn(z),41),Me(I,NC,$e(x++));else for(T=a.b,je=Pn(a,0);je.b!=je.d.c;){for(me=c(Dn(je),41),Me(me,NC,$e(x++)),i=Qte(me),Jst(e,i,n.dh(1/T|0)),sb(i,Wpe(new sY(NC))),L=new _i,le=Pn(i,0);le.b!=le.d.c;)for(re=c(Dn(le),41),W=Pn(me.d,0);W.b!=W.d.c;)Q=c(Dn(W),65),Q.c==re&&rr(L,Q,L.c.b,L.c);for(xu(me.d),Ss(me.d,L),d=Pn(b,b.b),r=me.d.b,v=!0;0<r&&v&&d.Sb();)re=c(d.Ub(),41),c($(re,A),15).a==0?(Me(re,NC,$e(x++)),--r,d.Qb()):v=!1}n.Ug()}function Vst(e,t,n){var i,r,o,a,d,b,v,x,T,A;for(x=new Oh(n),nc(x,t),Me(x,(Ie(),Si),t),x.o.a=t.g,x.o.b=t.f,x.n.a=t.i,x.n.b=t.j,Qe(n.a,x),ci(e.a,t,x),((!t.a&&(t.a=new _e(_n,t,10,11)),t.a).i!=0||Ze(Ye(Se(t,(Ge(),Gv)))))&&Me(x,G6e,(Bt(),!0)),v=c($(n,Rc),24),T=c($(x,(Ge(),ar)),103),T==(es(),up)?Me(x,ar,Bh):T!=Bh&&v.Ec((Us(),Uj)),A=0,i=c($(n,Vu),87),b=new on((!t.c&&(t.c=new _e(fu,t,9,9)),t.c));b.e!=b.i.gc();)d=c(un(b),127),r=Wi(t),ZQ(r)&&!Ze(Ye(Se(t,mJ)))&&ri(d,Ri,$e(A++)),Ze(Ye(Se(d,Lb)))||ftn(e,d,x,v,i,T);for(a=new on((!t.n&&(t.n=new _e(zo,t,1,7)),t.n));a.e!=a.i.gc();)o=c(un(a),158),!Ze(Ye(Se(o,Lb)))&&o.a&&Qe(x.b,one(o));return Ze(Ye($(x,lC)))&&v.Ec((Us(),sJ)),Ze(Ye($(x,xJ)))&&(v.Ec((Us(),oJ)),v.Ec(tC),Me(x,ar,Bh)),x}function otn(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le;for(t.Tg("Inverted port preprocessing",1),x=e.b,v=new os(x,0),n=null,le=new He;v.b<v.d.gc();){for(re=n,n=(gn(v.b<v.d.gc()),c(v.d.Xb(v.c=v.b++),26)),L=new U(le);L.a<L.c.c.length;)T=c(G(L),9),zr(T,re);for(le.c.length=0,I=new U(n.a);I.a<I.c.c.length;)if(T=c(G(I),9),T.k==(Jt(),ur)&&wx(c($(T,(Ge(),ar)),103))){for(W=Dye(T,(Gs(),Vl),(Ue(),nn)).Jc();W.Ob();)for(z=c(W.Pb(),12),b=z.e,d=c(xh(b,ke(Ij,bj,17,b.c.length,0,1)),324),r=d,o=0,a=r.length;o<a;++o)i=r[o],MYt(e,z,i,le);for(Q=Dye(T,Yc,Yt).Jc();Q.Ob();)for(z=c(Q.Pb(),12),b=z.g,d=c(xh(b,ke(Ij,bj,17,b.c.length,0,1)),324),r=d,o=0,a=r.length;o<a;++o)i=r[o],CYt(e,z,i,le)}}for(A=new U(le);A.a<A.c.c.length;)T=c(G(A),9),zr(T,n);t.Ug()}function ctn(e){var t,n,i,r,o,a,d,b,v,x,T,A,L;for(T=de(be(Se(e,(B0(),Nue)))),Ze(Ye(Se(e,e8e)))&&(x=c(Se(e,(Sx(),E3)),19),o=c(ce(eS(c(ce((!x.e&&(x.e=new Ct($i,x,7,4)),x.e),(!x.e&&(x.e=new Ct($i,x,7,4)),x.e).i-1),74)),0),19),i=c(ce(eS(c(ce((!x.e&&(x.e=new Ct($i,x,7,4)),x.e),0),74)),0),19),a=new ze(o.i+o.g/2,o.j+o.f/2),r=new ze(i.i+i.g/2,i.j+i.f/2),n=T,n<=0&&(n+=kb),A=p.Math.acos((a.a*r.a+a.b*r.b)/(p.Math.sqrt(a.a*a.a+a.b*a.b)*p.Math.sqrt(r.a*r.a+r.b*r.b))),A<=0&&(A+=kb),t=p.Math.atan2(a.b,a.a),t<=0&&(t+=kb),T=L5e-(t-n+A/2)),b=new on((!e.a&&(e.a=new _e(_n,e,10,11)),e.a));b.e!=b.i.gc();)d=c(un(b),19),v=new ze(d.i+d.g/2,d.j+d.f/2),L=v.a*p.Math.cos(T)-v.b*p.Math.sin(T),v.b=v.a*p.Math.sin(T)+v.b*p.Math.cos(T),v.a=L,fa(d,v.a-d.g/2,v.b-d.f/2)}function ltn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W;if(z=e.n,Q=e.o,A=e.d,T=de(be(dv(e,(Ge(),Ile)))),t){for(x=T*(t.gc()-1),L=0,b=t.Jc();b.Ob();)a=c(b.Pb(),9),x+=a.o.a,L=p.Math.max(L,a.o.b);for(W=z.a-(x-Q.a)/2,o=z.b-A.d+L,i=Q.a/(t.gc()+1),r=i,d=t.Jc();d.Ob();)a=c(d.Pb(),9),a.n.a=W,a.n.b=o-a.o.b,W+=a.o.a+T,v=Wnt(a),v.n.a=a.o.a/2-v.a.a,v.n.b=a.o.b,I=c($(a,(Ie(),lJ)),12),I.e.c.length+I.g.c.length==1&&(I.n.a=r-I.a.a,I.n.b=0,Do(I,e)),r+=i}if(n){for(x=T*(n.gc()-1),L=0,b=n.Jc();b.Ob();)a=c(b.Pb(),9),x+=a.o.a,L=p.Math.max(L,a.o.b);for(W=z.a-(x-Q.a)/2,o=z.b+Q.b+A.a-L,i=Q.a/(n.gc()+1),r=i,d=n.Jc();d.Ob();)a=c(d.Pb(),9),a.n.a=W,a.n.b=o,W+=a.o.a+T,v=Wnt(a),v.n.a=a.o.a/2-v.a.a,v.n.b=0,I=c($(a,(Ie(),lJ)),12),I.e.c.length+I.g.c.length==1&&(I.n.a=r-I.a.a,I.n.b=Q.b,Do(I,e)),r+=i}}function ere(e,t,n,i,r,o,a){var d,b,v,x,T,A,L,I,z,Q,W,re,le;for(A=null,i==(Um(),rp)?A=t:i==j3&&(A=n),z=A.a.ec().Jc();z.Ob();){for(I=c(z.Pb(),12),Q=Po(Y(K(Wr,1),Fe,8,0,[I.i.n,I.n,I.a])).b,le=new Tr,d=new Tr,v=new wh(I.b);_o(v.a)||_o(v.b);)if(b=c(_o(v.a)?G(v.a):G(v.b),17),Ze(Ye($(b,(Ie(),Ug))))==r&&Lo(o,b,0)!=-1){if(b.d==I?W=b.c:W=b.d,re=Po(Y(K(Wr,1),Fe,8,0,[W.i.n,W.n,W.a])).b,p.Math.abs(re-Q)<.2)continue;re<Q?t.a._b(W)?Er(le,new Is(rp,b)):Er(le,new Is(j3,b)):t.a._b(W)?Er(d,new Is(rp,b)):Er(d,new Is(j3,b))}if(le.a.gc()>1)for(L=new fxe(I,le,i),vs(le,new a$e(e,L)),It(a.c,L),T=le.a.ec().Jc();T.Ob();)x=c(T.Pb(),49),dl(o,x.b);if(d.a.gc()>1)for(L=new fxe(I,d,i),vs(d,new f$e(e,L)),It(a.c,L),T=d.a.ec().Jc();T.Ob();)x=c(T.Pb(),49),dl(o,x.b)}}function utn(e,t){var n,i,r,o,a,d;if(c($(t,(Ie(),Rc)),24).Gc((Us(),Ca))){for(d=new U(t.a);d.a<d.c.c.length;)o=c(G(d),9),o.k==(Jt(),ur)&&(r=c($(o,(Ge(),SJ)),125),e.c=p.Math.min(e.c,o.n.a-r.b),e.a=p.Math.max(e.a,o.n.a+o.o.a+r.c),e.d=p.Math.min(e.d,o.n.b-r.d),e.b=p.Math.max(e.b,o.n.b+o.o.b+r.a));for(a=new U(t.a);a.a<a.c.c.length;)if(o=c(G(a),9),o.k!=(Jt(),ur))switch(o.k.g){case 2:if(i=c($(o,(Ge(),$o)),166),i==(Su(),G1)){o.n.a=e.c-10,LZe(o,new pW).Jb(new d_e(o));break}if(i==Nb){o.n.a=e.a+10,LZe(o,new bW).Jb(new g_e(o));break}if(n=c($(o,Mb),316),n==(M1(),p3)){pst(o).Jb(new p_e(o)),o.n.b=e.d-10;break}if(n==Ek){pst(o).Jb(new b_e(o)),o.n.b=e.b+10;break}break;default:throw V(new qt("The node type "+o.k+" is not supported by the "+sin))}}}function atn(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I,z,Q;for(b=new ze(i.i+i.g/2,i.j+i.f/2),L=hst(i),I=c(Se(t,(Ge(),ar)),103),Q=c(Se(i,Wj),64),eBe(XYe(i),Jv)||(i.i==0&&i.j==0?z=0:z=LQt(i,Q),ri(i,Jv,z)),v=new ze(t.g,t.f),r=yL(i,I,Q,L,v,b,new ze(i.g,i.f),c($(n,Vu),87),n),Me(r,(Ie(),Si),i),o=c(Je(r.j,0),12),rx(o,TKt(i)),Me(r,Vv,(Gl(),bt(ap))),T=c(Se(t,Vv),185).Gc(W1),d=new on((!i.n&&(i.n=new _e(zo,i,1,7)),i.n));d.e!=d.i.gc();)if(a=c(un(d),158),!Ze(Ye(Se(a,Lb)))&&a.a&&(A=one(a),Qe(o.f,A),!T))switch(x=0,ZT(c(Se(t,Vv),24))&&(x=Qve(new ze(a.i,a.j),new ze(a.g,a.f),new ze(i.g,i.f),0,Q)),Q.g){case 2:case 4:A.o.a=x;break;case 1:case 3:A.o.b=x}Me(r,Yj,be(Se(Wi(t),Yj))),Me(r,Zj,be(Se(Wi(t),Zj))),Me(r,Kv,be(Se(Wi(t),Kv))),Qe(n.a,r),ci(e.a,i,r)}function ftn(e,t,n,i,r,o){var a,d,b,v,x,T;for(v=new mc,nc(v,t),$r(v,c(Se(t,(Ge(),Wj)),64)),Me(v,(Ie(),Si),t),Do(v,n),T=v.o,T.a=t.g,T.b=t.f,x=v.n,x.a=t.i,x.b=t.j,ci(e.a,t,v),a=Mx(Qc(jo(new Tt(null,(!t.e&&(t.e=new Ct($i,t,7,4)),new Et(t.e,16))),new KM),new Z9),new r_e(t)),a||(a=Mx(Qc(jo(new Tt(null,(!t.d&&(t.d=new Ct($i,t,8,5)),new Et(t.d,16))),new Sd),new Fy),new s_e(t))),a||(a=Mx(new Tt(null,(!t.e&&(t.e=new Ct($i,t,7,4)),new Et(t.e,16))),new qy)),Me(v,xP,(Bt(),!!a)),LZt(v,o,r,c(Se(t,Rw),8)),b=new on((!t.n&&(t.n=new _e(zo,t,1,7)),t.n));b.e!=b.i.gc();)d=c(un(b),158),!Ze(Ye(Se(d,Lb)))&&d.a&&Qe(v.f,one(d));switch(r.g){case 2:case 1:(v.j==(Ue(),Kt)||v.j==mn)&&i.Ec((Us(),g3));break;case 4:case 3:(v.j==(Ue(),nn)||v.j==Yt)&&i.Ec((Us(),g3))}return v}function htn(e,t,n,i,r,o){var a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn,ti;Rt=Ut(e.g,r),Rt==null&&(Rt=new c4,I=c(Rt,150),le=t+"_s",me=le+o,L=new W2(me),wf(I,hd,L)),Lt=c(Rt,150),N4(n,Lt),ti=new c4,Kp(ti,"x",jQ(e,i,r.j)),Kp(ti,"y",TQ(e,i,r.k)),wf(Lt,Lut,ti),mt=new c4,Kp(mt,"x",jQ(e,i,r.b)),Kp(mt,"y",TQ(e,i,r.c)),wf(Lt,"endPoint",mt),A=p_((!r.a&&(r.a=new Nr(Yu,r,5)),r.a)),z=!A,z&&(Xe=new bg,a=new IFe(e,i,Xe),vs((!r.a&&(r.a=new Nr(Yu,r,5)),r.a),a),wf(Lt,XG,Xe)),v=Lne(r),je=!!v,je&&pve(e.a,Lt,G4e,gie(e,Lne(r))),re=Pne(r),Oe=!!re,Oe&&pve(e.a,Lt,Q4e,gie(e,Pne(r))),x=(!r.e&&(r.e=new Ct(Gi,r,10,9)),r.e).i==0,Q=!x,Q&&(wt=new bg,d=new F$e(e,wt),vs((!r.e&&(r.e=new Ct(Gi,r,10,9)),r.e),d),wf(Lt,J4e,wt)),T=(!r.g&&(r.g=new Ct(Gi,r,9,10)),r.g).i==0,W=!T,W&&(fn=new bg,b=new q$e(e,fn),vs((!r.g&&(r.g=new Ct(Gi,r,9,10)),r.g),b),wf(Lt,U4e,fn))}function dtn(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W;for(t.Tg("Comment pre-processing",1),n=0,b=new U(e.a);b.a<b.c.c.length;)if(d=c(G(b),9),Ze(Ye($(d,(Ge(),lC))))){for(++n,r=0,i=null,v=null,I=new U(d.j);I.a<I.c.c.length;)A=c(G(I),12),r+=A.e.c.length+A.g.c.length,A.e.c.length==1&&(i=c(Je(A.e,0),17),v=i.c),A.g.c.length==1&&(i=c(Je(A.g,0),17),v=i.d);if(r==1&&v.e.c.length+v.g.c.length==1&&!Ze(Ye($(v.i,lC))))Gtn(d,i,v,v.i),t7(b);else{for(W=new He,L=new U(d.j);L.a<L.c.c.length;){for(A=c(G(L),12),T=new U(A.g);T.a<T.c.c.length;)x=c(G(T),17),x.d.g.c.length==0||It(W.c,x);for(a=new U(A.e);a.a<a.c.c.length;)o=c(G(a),17),o.c.e.c.length==0||It(W.c,o)}for(Q=new U(W);Q.a<Q.c.c.length;)z=c(G(Q),17),Bg(z,!0)}}t.$g()&&t.ah("Found "+n+" comment boxes"),t.Ug()}function gtn(e,t,n,i,r){var o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt;for(le=0,I=0,L=0,A=1,re=new on((!e.a&&(e.a=new _e(_n,e,10,11)),e.a));re.e!=re.i.gc();)Q=c(un(re),19),A+=Jf(new Ht(Xt(I1(Q).a.Jc(),new F))),mt=Q.g,I=p.Math.max(I,mt),T=Q.f,L=p.Math.max(L,T),le+=mt*T;for(z=(!e.a&&(e.a=new _e(_n,e,10,11)),e.a).i,a=le+2*i*i*A*z,o=p.Math.sqrt(a),b=p.Math.max(o*n,I),d=p.Math.max(o/n,L),W=new on((!e.a&&(e.a=new _e(_n,e,10,11)),e.a));W.e!=W.i.gc();)Q=c(un(W),19),wt=r.b+(cu(t,26)*dE+cu(t,27)*gE)*(b-Q.g),Lt=r.b+(cu(t,26)*dE+cu(t,27)*gE)*(d-Q.f),Nc(Q,wt),_l(Q,Lt);for(Xe=b+(r.b+r.c),Oe=d+(r.d+r.a),je=new on((!e.a&&(e.a=new _e(_n,e,10,11)),e.a));je.e!=je.i.gc();)for(me=c(un(je),19),x=new Ht(Xt(I1(me).a.Jc(),new F));hn(x);)v=c(rn(x),74),W7(v)||ynn(v,t,Xe,Oe);Xe+=r.b+r.c,Oe+=r.d+r.a,hw(e,Xe,Oe,!1,!0)}function ptn(e){var t,n,i,r;for(hr(mi(new Tt(null,new Et(e.a.b,16)),new v5),new mA),_Ht(e),hr(mi(new Tt(null,new Et(e.a.b,16)),new u8),new a8),e.c==(L1(),Jk)&&(hr(mi(jo(new Tt(null,new Et(new an(e.f),1)),new wA),new Uy),new I_e(e)),hr(mi(Qc(jo(jo(new Tt(null,new Et(e.d.b,16)),new HR),new f8),new y5),new WW),new $_e(e))),hr(mi(jo(new Tt(null,new Et(new an(e.f),1)),new u1),new vA),new B_e(e)),r=new ze(sr,sr),t=new ze(Gr,Gr),i=new U(e.a.b);i.a<i.c.c.length;)n=c(G(i),60),r.a=p.Math.min(r.a,n.d.c),r.b=p.Math.min(r.b,n.d.d),t.a=p.Math.max(t.a,n.d.c+n.d.b),t.b=p.Math.max(t.b,n.d.d+n.d.a);Oi(Uf(e.d.c),XF(new ze(r.a,r.b))),Oi(Uf(e.d.f),Qr(new ze(t.a,t.b),r)),FVt(e,r,t),cc(e.f),cc(e.b),cc(e.g),cc(e.e),e.a.a.c.length=0,e.a.b.c.length=0,e.a=null,e.d=null}function xxe(e,t){sqe();var n,i,r,o,a,d,b;if(this.a=new Gge(this),this.b=e,this.c=t,this.f=gee(ao((Ll(),bs),t)),this.f.dc())if((d=J2e(bs,e))==t)for(this.e=!0,this.d=new He,this.f=new bB,this.f.Ec(Tb),c(nG(xD(bs,Bu(e)),""),29)==e&&this.f.Ec(KT(bs,Bu(e))),r=Die(bs,e).Jc();r.Ob();)switch(i=c(r.Pb(),182),Hm(ao(bs,i))){case 4:{this.d.Ec(i);break}case 5:{this.f.Fc(gee(ao(bs,i)));break}}else if(Hs(),c(t,69).vk())for(this.e=!0,this.f=null,this.d=new He,a=0,b=(e.i==null&&sd(e),e.i).length;a<b;++a)for(i=(n=(e.i==null&&sd(e),e.i),a>=0&&a<n.length?n[a]:null),o=P4(ao(bs,i));o;o=P4(ao(bs,o)))o==t&&this.d.Ec(i);else Hm(ao(bs,t))==1&&d?(this.f=null,this.d=(ik(),Zvt)):(this.f=null,this.e=!0,this.d=(Mt(),new nY(t)));else this.e=Hm(ao(bs,t))==5,this.f.Fb(Yae)&&(this.f=Yae)}function Xst(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I;for(n=0,i=iqt(e,t),A=e.s,L=e.t,v=c(c(Ei(e.r,t),24),85).Jc();v.Ob();)if(b=c(v.Pb(),116),!(!b.c||b.c.d.c.length<=0)){switch(I=b.b.Kf(),d=b.b.nf((In(),au))?de(be(b.b.mf(au))):0,x=b.c,T=x.i,T.b=(a=x.n,x.e.a+a.b+a.c),T.a=(o=x.n,x.e.b+o.d+o.a),t.g){case 1:T.c=b.a?(I.a-T.b)/2:I.a+A,T.d=I.b+d+i,Xf(x,(Ql(),W0)),Wh(x,(gl(),nh));break;case 3:T.c=b.a?(I.a-T.b)/2:I.a+A,T.d=-d-i-T.a,Xf(x,(Ql(),W0)),Wh(x,(gl(),Ef));break;case 2:T.c=-d-i-T.b,b.a?(r=e.v?T.a:c(Je(x.d,0),190).Kf().b,T.d=(I.b-r)/2):T.d=I.b+L,Xf(x,(Ql(),Tf)),Wh(x,(gl(),K0));break;case 4:T.c=I.a+d+i,b.a?(r=e.v?T.a:c(Je(x.d,0),190).Kf().b,T.d=(I.b-r)/2):T.d=I.b+L,Xf(x,(Ql(),gd)),Wh(x,(gl(),K0))}(t==(Ue(),Kt)||t==mn)&&(n=p.Math.max(n,T.a))}n>0&&(c(eo(e.b,t),129).a.b=n)}function btn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W;for(L=0,i=new Tr,o=new on((!t.a&&(t.a=new _e(_n,t,10,11)),t.a));o.e!=o.i.gc();)r=c(un(o),19),Ze(Ye(Se(r,(Ge(),Lb))))||(T=Wi(r),ZQ(T)&&!Ze(Ye(Se(r,mJ)))&&(ri(r,(Ie(),Ri),$e(L)),++L,pa(r,Hv)&&Er(i,c(Se(r,Hv),15))),Vst(e,r,n));for(Me(n,(Ie(),ep),$e(L)),Me(n,yP,$e(i.a.gc())),L=0,x=new on((!t.b&&(t.b=new _e($i,t,12,3)),t.b));x.e!=x.i.gc();)b=c(un(x),74),ZQ(t)&&(ri(b,Ri,$e(L)),++L),Q=lie(b),W=Pet(b),A=Ze(Ye(Se(Q,(Ge(),Gv)))),z=!Ze(Ye(Se(b,Lb))),I=A&&lw(b)&&Ze(Ye(Se(b,_b))),a=Wi(Q)==t&&Wi(Q)==Wi(W),d=(Wi(Q)==t&&W==t)^(Wi(W)==t&&Q==t),z&&!I&&(d||a)&&Exe(e,b,t,n);if(Wi(t))for(v=new on(XHe(Wi(t)));v.e!=v.i.gc();)b=c(un(v),74),Q=lie(b),Q==t&&lw(b)&&(I=Ze(Ye(Se(Q,(Ge(),Gv))))&&Ze(Ye(Se(b,_b))),I&&Exe(e,b,t,n))}function mtn(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt;for(Oe=new He,I=new U(e.b);I.a<I.c.c.length;)for(L=c(G(I),26),W=new U(L.a);W.a<W.c.c.length;)if(z=c(G(W),9),z.k==(Jt(),Ar)&&ki(z,(Ie(),fJ))){for(re=null,me=null,le=null,wt=new U(z.j);wt.a<wt.c.c.length;)switch(mt=c(G(wt),12),mt.j.g){case 4:re=mt;break;case 2:me=mt;break;default:le=mt}for(je=c(Je(le.g,0),17),x=new Jz(je.a),v=new Ms(le.n),Oi(v,z.n),T=Pn(x,0),Tq(T,v),Xe=wwe(je.a),A=new Ms(le.n),Oi(A,z.n),rr(Xe,A,Xe.c.b,Xe.c),Lt=c($(z,fJ),9),Rt=c(Je(Lt.j,0),12),b=c(xh(re.e,ke(Ij,bj,17,0,0,1)),324),i=b,o=0,d=i.length;o<d;++o)t=i[o],ss(t,Rt),ine(t.a,t.a.b,x);for(b=ed(me.g),n=b,r=0,a=n.length;r<a;++r)t=n[r],Os(t,Rt),ine(t.a,0,Xe);Os(je,null),ss(je,null),It(Oe.c,z)}for(Q=new U(Oe);Q.a<Q.c.c.length;)z=c(G(Q),9),zr(z,null)}function wtn(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I,z;if(A=de(be($(e,(Ge(),Yj)))),L=de(be($(e,Zj))),T=de(be($(e,Kv))),d=e.o,o=c(Je(e.j,0),12),a=o.n,z=BGt(o,T),!!z){if(t.Gc((Gl(),W1)))switch(c($(e,(Ie(),Yo)),64).g){case 1:z.c=(d.a-z.b)/2-a.a,z.d=L;break;case 3:z.c=(d.a-z.b)/2-a.a,z.d=-L-z.a;break;case 2:n&&o.e.c.length==0&&o.g.c.length==0?(x=i?z.a:c(Je(o.f,0),70).o.b,z.d=(d.b-x)/2-a.b):z.d=d.b+L-a.b,z.c=-A-z.b;break;case 4:n&&o.e.c.length==0&&o.g.c.length==0?(x=i?z.a:c(Je(o.f,0),70).o.b,z.d=(d.b-x)/2-a.b):z.d=d.b+L-a.b,z.c=A}else if(t.Gc(ap))switch(c($(e,(Ie(),Yo)),64).g){case 1:case 3:z.c=a.a+A;break;case 2:case 4:n&&!o.c?(x=i?z.a:c(Je(o.f,0),70).o.b,z.d=(d.b-x)/2-a.b):z.d=a.b+L}for(r=z.d,v=new U(o.f);v.a<v.c.c.length;)b=c(G(v),70),I=b.n,I.a=z.c,I.b=r,r+=b.o.b+T}}function kxe(e){var t;if(this.r=SNt(new jO,new e2),this.b=new P7(c(Bn(Bs),299)),this.p=new P7(c(Bn(Bs),299)),this.i=new P7(c(Bn(Dht),299)),this.e=e,this.o=new Ms(e.Kf()),this.D=Ze(Ye(e.mf((In(),f9)))),this.F=e.Wf()||Ze(Ye(e.mf(XP))),this.A=c(e.mf(zb),24),this.B=c(e.mf(op),24),this.q=c(e.mf(u9),103),this.u=c(e.mf(oy),24),!HQt(this.u))throw V(new Uh("Invalid port label placement: "+this.u));if(this.v=Ze(Ye(e.mf(YTe))),this.j=c(e.mf(_3),24),!cVt(this.j))throw V(new Uh("Invalid node label placement: "+this.j));this.n=c(F7(e,BTe),100),this.k=de(be(F7(e,hV))),this.d=de(be(F7(e,n7e))),this.w=de(be(F7(e,c7e))),this.s=de(be(F7(e,i7e))),this.t=de(be(F7(e,r7e))),this.C=c(F7(e,s7e),125),this.c=2*this.d,t=!this.B.Gc((lu(),oI)),this.f=new $7(0,t,0),this.g=new $7(1,t,0),vY(this.f,(Wf(),Kc),this.g)}function vtn(){ui(vI,new AN),ui(DV,new FB),ui(yI,new kK),ui(xEe,new JB),ui(tt,new jK),ui(K($l,1),new LN),ui(or,new KB),ui(xk,new YB),ui(tt,new NB),ui(tt,new bK),ui(tt,new C2),ui(jr,new q8),ui(tt,new MN),ui(Ju,new F5),ui(Ju,new _B),ui(tt,new DB),ui(Lj,new LB),ui(tt,new H8),ui(tt,new mK),ui(tt,new wK),ui(tt,new vK),ui(tt,new IB),ui(K($l,1),new RB),ui(tt,new q5),ui(tt,new Q8),ui(Ju,new $B),ui(Ju,new BB),ui(tt,new zB),ui(Pr,new qB),ui(tt,new HB),ui(Tw,new G8),ui(tt,new QB),ui(tt,new GB),ui(tt,new Tc),ui(tt,new NN),ui(Ju,new yK),ui(Ju,new UB),ui(tt,new xK),ui(tt,new OK),ui(tt,new U8),ui(tt,new H5),ui(tt,new _N),ui(tt,new J8),ui(Ew,new DN),ui(tt,new M2),ui(tt,new Pp),ui(tt,new h6),ui(Ew,new SK),ui(Tw,new VB),ui(tt,new XB),ui(Pr,new WB)}function Wst(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I;switch(x=new tu,e.a.g){case 3:A=c($(t.e,(Ie(),Ab)),16),L=c($(t.j,Ab),16),I=c($(t.f,Ab),16),n=c($(t.e,v3),16),i=c($(t.j,v3),16),r=c($(t.f,v3),16),a=new He,Or(a,A),L.Ic(new j5),Or(a,ju(L)),Or(a,I),o=new He,Or(o,n),Or(o,ju(i)),Or(o,r),Me(t.f,Ab,a),Me(t.f,v3,o),Me(t.f,tSe,t.f),Me(t.e,Ab,null),Me(t.e,v3,null),Me(t.j,Ab,null),Me(t.j,v3,null);break;case 1:Ss(x,t.e.a),ei(x,t.i.n),Ss(x,ju(t.j.a)),ei(x,t.a.n),Ss(x,t.f.a);break;default:Ss(x,t.e.a),Ss(x,ju(t.j.a)),Ss(x,t.f.a)}xu(t.f.a),Ss(t.f.a,x),Os(t.f,t.e.c),d=c($(t.e,(Ge(),go)),79),v=c($(t.j,go),79),b=c($(t.f,go),79),(d||v||b)&&(T=new tu,_pe(T,b),_pe(T,v),_pe(T,d),Me(t.f,go,T)),Os(t.j,null),ss(t.j,null),Os(t.e,null),ss(t.e,null),zr(t.a,null),zr(t.i,null),t.g&&Wst(e,t.g)}function Kst(){Kst=Z;var e,t,n;for(new GD(1,0),new GD(10,0),new GD(0,0),Pft=ke(nce,Fe,249,11,0,1),Cb=ke(_a,cd,30,100,15,1),Rke=Y(K(is,1),io,30,15,[1,5,25,125,625,3125,15625,78125,390625,1953125,9765625,48828125,244140625,1220703125,6103515625,30517578125,152587890625,762939453125,3814697265625,19073486328125,95367431640625,476837158203125,0x878678326eac9]),$ke=ke(Hn,li,30,Rke.length,15,1),Bke=Y(K(is,1),io,30,15,[1,10,100,Fg,1e4,_re,1e6,1e7,1e8,aG,1e10,1e11,1e12,1e13,1e14,1e15,1e16]),zke=ke(Hn,li,30,Bke.length,15,1),Fke=ke(nce,Fe,249,11,0,1),e=0;e<Fke.length;e++)Pft[e]=new GD(e,0),Fke[e]=new GD(0,e),Cb[e]=48;for(;e<Cb.length;e++)Cb[e]=48;for(n=0;n<$ke.length;n++)$ke[n]=Fve(Rke[n]);for(t=0;t<zke.length;t++)zke[t]=Fve(Bke[t]);US()}function ytn(){function e(){this.obj=this.createObject()}return e.prototype.createObject=function(t){return Object.create(null)},e.prototype.get=function(t){return this.obj[t]},e.prototype.set=function(t,n){this.obj[t]=n},e.prototype[Pre]=function(t){delete this.obj[t]},e.prototype.keys=function(){return Object.getOwnPropertyNames(this.obj)},e.prototype.entries=function(){var t=this.keys(),n=this,i=0;return{next:function(){if(i>=t.length)return{done:!0};var r=t[i++];return{value:[r,n.get(r)],done:!1}}}},aWt()||(e.prototype.createObject=function(){return{}},e.prototype.get=function(t){return this.obj[":"+t]},e.prototype.set=function(t,n){this.obj[":"+t]=n},e.prototype[Pre]=function(t){delete this.obj[":"+t]},e.prototype.keys=function(){var t=[];for(var n in this.obj)n.charCodeAt(0)==58&&t.push(n.substring(1));return t}),e}function Ii(){Ii=Z,AC=new bi(n3e),new Qi("DEPTH",$e(0)),hue=new Qi("FAN",$e(0)),v9e=new Qi(klt,$e(0)),sp=new Qi("ROOT",(Bt(),!1)),pue=new Qi("LEFTNEIGHBOR",null),Ibt=new Qi("RIGHTNEIGHBOR",null),HJ=new Qi("LEFTSIBLING",null),bue=new Qi("RIGHTSIBLING",null),fue=new Qi("DUMMY",!1),new Qi("LEVEL",$e(0)),k9e=new Qi("REMOVABLE_EDGES",new _i),RP=new Qi("XCOOR",$e(0)),$P=new Qi("YCOOR",$e(0)),QJ=new Qi("LEVELHEIGHT",0),rh=new Qi("LEVELMIN",0),Af=new Qi("LEVELMAX",0),due=new Qi("GRAPH_XMIN",0),gue=new Qi("GRAPH_YMIN",0),y9e=new Qi("GRAPH_XMAX",0),x9e=new Qi("GRAPH_YMAX",0),w9e=new Qi("COMPACT_LEVEL_ASCENSION",!1),aue=new Qi("COMPACT_CONSTRAINTS",new He),MC=new Qi("ID",""),NC=new Qi("POSITION",$e(0)),Wg=new Qi("PRELIM",0),i9=new Qi("MODIFIER",0),n9=new bi(Mct),IP=new bi(Act)}function xtn(e){exe();var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q;if(e==null)return null;if(T=e.length*8,T==0)return"";for(d=T%24,L=T/24|0,A=d!=0?L+1:L,o=null,o=ke(_a,cd,30,A*4,15,1),v=0,x=0,t=0,n=0,i=0,a=0,r=0,b=0;b<L;b++)t=e[r++],n=e[r++],i=e[r++],x=(n&15)<<24>>24,v=(t&3)<<24>>24,I=(t&-128)==0?t>>2<<24>>24:(t>>2^192)<<24>>24,z=(n&-128)==0?n>>4<<24>>24:(n>>4^240)<<24>>24,Q=(i&-128)==0?i>>6<<24>>24:(i>>6^252)<<24>>24,o[a++]=r0[I],o[a++]=r0[z|v<<4],o[a++]=r0[x<<2|Q],o[a++]=r0[i&63];return d==8?(t=e[r],v=(t&3)<<24>>24,I=(t&-128)==0?t>>2<<24>>24:(t>>2^192)<<24>>24,o[a++]=r0[I],o[a++]=r0[v<<4],o[a++]=61,o[a++]=61):d==16&&(t=e[r],n=e[r+1],x=(n&15)<<24>>24,v=(t&3)<<24>>24,I=(t&-128)==0?t>>2<<24>>24:(t>>2^192)<<24>>24,z=(n&-128)==0?n>>4<<24>>24:(n>>4^240)<<24>>24,o[a++]=r0[I],o[a++]=r0[z|v<<4],o[a++]=r0[x<<2],o[a++]=61),nd(o,0,o.length)}function ktn(e,t){var n,i,r,o,a,d,b;if(e.e==0&&e.p>0&&(e.p=-(e.p-1)),e.p>ls&&Pbe(t,e.p-H0),a=t.q.getDate(),sD(t,1),e.k>=0&&$_t(t,e.k),e.c>=0?sD(t,e.c):e.k>=0?(b=new uwe(t.q.getFullYear()-H0,t.q.getMonth(),35),i=35-b.q.getDate(),sD(t,p.Math.min(i,a))):sD(t,a),e.f<0&&(e.f=t.q.getHours()),e.b>0&&e.f<12&&(e.f+=12),$Tt(t,e.f==24&&e.g?0:e.f),e.j>=0&&wPt(t,e.j),e.n>=0&&_Pt(t,e.n),e.i>=0&&nBe(t,Ns(js(tL(tc(t.q.getTime()),Fg),Fg),e.i)),e.a&&(r=new Yz,Pbe(r,r.q.getFullYear()-H0-80),IY(tc(t.q.getTime()),tc(r.q.getTime()))&&Pbe(t,r.q.getFullYear()-H0+100)),e.d>=0){if(e.c==-1)n=(7+e.d-t.q.getDay())%7,n>3&&(n-=7),d=t.q.getMonth(),sD(t,t.q.getDate()+n),t.q.getMonth()!=d&&sD(t,t.q.getDate()+(n>0?-7:7));else if(t.q.getDay()!=e.d)return!1}return e.o>ls&&(o=t.q.getTimezoneOffset(),nBe(t,Ns(tc(t.q.getTime()),(e.o-o)*60*Fg))),!0}function Yst(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me;if(r=$(t,(Ie(),Si)),!!ae(r,209)){for(I=c(r,19),z=t.e,A=new Ms(t.c),o=t.d,A.a+=o.b,A.b+=o.d,me=c(Se(I,(Ge(),EJ)),185),Ml(me,(lu(),wV))&&(L=c(Se(I,fje),100),Tz(L,o.a),Mz(L,o.d),Ez(L,o.b),i_(L,o.c)),n=new He,x=new U(t.a);x.a<x.c.c.length;)for(b=c(G(x),9),ae($(b,Si),209)?Ttn(b,A):ae($(b,Si),196)&&!z&&(i=c($(b,Si),127),re=Irt(t,b,i.g,i.f),fa(i,re.a,re.b)),W=new U(b.j);W.a<W.c.c.length;)Q=c(G(W),12),hr(mi(new Tt(null,new Et(Q.g,16)),new o_e(b)),new c_e(n));if(z)for(W=new U(z.j);W.a<W.c.c.length;)Q=c(G(W),12),hr(mi(new Tt(null,new Et(Q.g,16)),new l_e(z)),new u_e(n));for(le=c(Se(I,U1),225),d=new U(n);d.a<d.c.c.length;)a=c(G(d),17),qen(a,le,A);for(EKt(t),v=new U(t.a);v.a<v.c.c.length;)b=c(G(v),9),T=b.e,T&&Yst(e,T)}}function Zst(e,t){var n,i,r,o,a,d,b,v,x,T,A,L;if(!c(c(Ei(e.r,t),24),85).dc()){if(a=c(eo(e.b,t),129),b=a.i,d=a.n,x=jie(e,t),i=b.b-d.b-d.c,r=a.a.a,o=b.c+d.b,L=e.w,(x==(Rx(),lp)||x==tI)&&c(c(Ei(e.r,t),24),85).gc()==1&&(r=x==lp?r-2*e.w:r,x=WC),i<r&&!e.B.Gc((lu(),vV)))x==lp?(L+=(i-r)/(c(c(Ei(e.r,t),24),85).gc()+1),o+=L):L+=(i-r)/(c(c(Ei(e.r,t),24),85).gc()-1);else switch(i<r&&(r=x==lp?r-2*e.w:r,x=WC),x.g){case 3:o+=(i-r)/2;break;case 4:o+=i-r;break;case 0:n=(i-r)/(c(c(Ei(e.r,t),24),85).gc()+1),L+=p.Math.max(0,n),o+=L;break;case 1:n=(i-r)/(c(c(Ei(e.r,t),24),85).gc()-1),L+=p.Math.max(0,n)}for(A=c(c(Ei(e.r,t),24),85).Jc();A.Ob();)T=c(A.Pb(),116),T.e.a=o+T.d.b,T.e.b=(v=T.b,v.nf((In(),au))?v.$f()==(Ue(),Kt)?-v.Kf().b-de(be(v.mf(au))):de(be(v.mf(au))):v.$f()==(Ue(),Kt)?-v.Kf().b:0),o+=T.d.b+T.b.Kf().a+T.d.c+L}}function eot(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I;if(!c(c(Ei(e.r,t),24),85).dc()){if(a=c(eo(e.b,t),129),b=a.i,d=a.n,T=jie(e,t),i=b.a-d.d-d.a,r=a.a.b,o=b.d+d.d,I=e.w,v=e.o.a,(T==(Rx(),lp)||T==tI)&&c(c(Ei(e.r,t),24),85).gc()==1&&(r=T==lp?r-2*e.w:r,T=WC),i<r&&!e.B.Gc((lu(),vV)))T==lp?(I+=(i-r)/(c(c(Ei(e.r,t),24),85).gc()+1),o+=I):I+=(i-r)/(c(c(Ei(e.r,t),24),85).gc()-1);else switch(i<r&&(r=T==lp?r-2*e.w:r,T=WC),T.g){case 3:o+=(i-r)/2;break;case 4:o+=i-r;break;case 0:n=(i-r)/(c(c(Ei(e.r,t),24),85).gc()+1),I+=p.Math.max(0,n),o+=I;break;case 1:n=(i-r)/(c(c(Ei(e.r,t),24),85).gc()-1),I+=p.Math.max(0,n)}for(L=c(c(Ei(e.r,t),24),85).Jc();L.Ob();)A=c(L.Pb(),116),A.e.a=(x=A.b,x.nf((In(),au))?x.$f()==(Ue(),Yt)?-x.Kf().a-de(be(x.mf(au))):v+de(be(x.mf(au))):x.$f()==(Ue(),Yt)?-x.Kf().a:v),A.e.b=o+A.d.d,o+=A.d.d+A.b.Kf().b+A.d.a+I}}function Otn(e,t){var n,i,r,o,a;for(t.Tg("Processor determine the coords for each level",1),i=new He,a=Pn(e.b,0);a.b!=a.d.c;){for(r=c(Dn(a),41);c($(r,(Jo(),md)),15).a>i.c.length-1;)Qe(i,new Is(e3,P5e));n=c($(r,md),15).a,v1(c($(e,Bw),87))?(r.e.a<de(be((ht(n,i.c.length),c(i.c[n],49)).a))&&e4((ht(n,i.c.length),c(i.c[n],49)),r.e.a),r.e.a+r.f.a>de(be((ht(n,i.c.length),c(i.c[n],49)).b))&&c_((ht(n,i.c.length),c(i.c[n],49)),r.e.a+r.f.a)):(r.e.b<de(be((ht(n,i.c.length),c(i.c[n],49)).a))&&e4((ht(n,i.c.length),c(i.c[n],49)),r.e.b),r.e.b+r.f.b>de(be((ht(n,i.c.length),c(i.c[n],49)).b))&&c_((ht(n,i.c.length),c(i.c[n],49)),r.e.b+r.f.b))}for(o=Pn(e.b,0);o.b!=o.d.c;)r=c(Dn(o),41),n=c($(r,(Jo(),md)),15).a,Me(r,(Ii(),rh),be((ht(n,i.c.length),c(i.c[n],49)).a)),Me(r,Af,be((ht(n,i.c.length),c(i.c[n],49)).b));t.Ug()}function Stn(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z;for(e.o=de(be($(e.i,(Ge(),Ib)))),e.f=de(be($(e.i,tp))),e.j=e.i.b.c.length,d=e.j-1,A=0,e.k=0,e.n=0,e.b=mf(ke(Pr,Fe,15,e.j,0,1)),e.c=mf(ke(jr,Fe,347,e.j,7,1)),a=new U(e.i.b);a.a<a.c.c.length;){for(r=c(G(a),26),r.p=d,T=new U(r.a);T.a<T.c.c.length;)x=c(G(T),9),x.p=A,++A;--d}for(e.g=ke(Hn,li,30,A,15,1),e.d=U2(Hn,[Fe,li],[54,30],15,[A,3],2),e.p=new He,e.q=new He,t=0,e.e=0,o=new U(e.i.b);o.a<o.c.c.length;){for(r=c(G(o),26),d=r.p,i=0,z=0,b=r.a.c.length,v=0,T=new U(r.a);T.a<T.c.c.length;)x=c(G(T),9),A=x.p,e.g[A]=x.c.p,v+=x.o.b+e.o,n=Jf(new Ht(Xt(vr(x).a.Jc(),new F))),I=Jf(new Ht(Xt(Fi(x).a.Jc(),new F))),e.d[A][0]=I-n,e.d[A][1]=n,e.d[A][2]=I,i+=n,z+=I,n>0&&Qe(e.q,x),Qe(e.p,x);t-=i,L=b+t,v+=t*e.f,ku(e.b,d,$e(L)),ku(e.c,d,v),e.k=p.Math.max(e.k,L),e.n=p.Math.max(e.n,v),e.e+=t,t+=z}}function tot(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le;if(t.b!=0){for(L=new _i,d=null,I=null,i=ks(p.Math.floor(p.Math.log(t.b)*p.Math.LOG10E)+1),b=0,le=Pn(t,0);le.b!=le.d.c;)for(W=c(Dn(le),41),xe(I)!==xe($(W,(Ii(),MC)))&&(I=qn($(W,MC)),b=0),I!=null?d=I+pGe(b++,i):d=pGe(b++,i),Me(W,MC,d),Q=(r=Pn(new w1(W).a.d,0),new lx(r));d_(Q.a);)z=c(Dn(Q.a),65).c,rr(L,z,L.c.b,L.c),Me(z,MC,d);for(A=new yn,a=0;a<d.length-i;a++)for(re=Pn(t,0);re.b!=re.d.c;)W=c(Dn(re),41),v=Fa(qn($(W,(Ii(),MC))),0,a+1),n=(v==null?No(lo(A.f,null)):TT(A.i,v))!=null?c(v==null?No(lo(A.f,null)):TT(A.i,v),15).a+1:1,uo(A,v,$e(n));for(T=new lv(new Rp(A).a);T.b;)x=_x(T),o=$e(Ut(e.a,x.jd())!=null?c(Ut(e.a,x.jd()),15).a:0),uo(e.a,qn(x.jd()),$e(c(x.kd(),15).a+o.a)),o=c(Ut(e.b,x.jd()),15),(!o||o.a<c(x.kd(),15).a)&&uo(e.b,qn(x.jd()),c(x.kd(),15));tot(e,L)}}function jtn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W;for(n.Tg("Breadth first model order layering",1),e.a=t,Q=new He,z=new U(e.a.a);z.a<z.c.c.length;)L=c(G(z),9),L.k==(Jt(),ur)&&It(Q.c,L);for(Mt(),Rr(Q,new oa),b=!0,r=new dc(e.a),i=null,Qe(e.a.b,r),I=new U(Q);I.a<I.c.c.length;)if(L=c(G(I),9),b)zr(L,r),b=!1;else{for(d=new Ht(Xt(vr(L).a.Jc(),new F));hn(d);)o=c(rn(d),17),(o.c.i.k==(Jt(),ur)&&o.c.i.c==r||o.c.i.k==ac&&c(rn(new Ht(Xt(vr(o.c.i).a.Jc(),new F))),17).c.i.c==r)&&(i=new dc(e.a),Qe(e.a.b,i),r=new dc(e.a),Qe(e.a.b,r));for(a=new Ht(Xt(vr(L).a.Jc(),new F));hn(a);)o=c(rn(a),17),o.c.i.k==(Jt(),ac)&&!o.c.i.c&&zr(o.c.i,i);zr(L,r)}for(e.a.a.c.length=0,W=new He,T=new U(e.a.b);T.a<T.c.c.length;)v=c(G(T),26),v.a.c.length==0&&It(W.c,v);for(Hwe(e.a.b,W),A=0,x=new U(e.a.b);x.a<x.c.c.length;)v=c(G(x),26),v.p=A,++A;n.Ug()}function Ue(){Ue=Z;var e;Bo=new D_(mE,0),Kt=new D_("NORTH",1),nn=new D_("EAST",2),mn=new D_("SOUTH",3),Yt=new D_("WEST",4),zh=(Mt(),new M6((e=c(Gf(Bs),10),new da(e,c(gf(e,e.length),10),0)))),Pf=Dg(Li(Kt,Y(K(Bs,1),uc,64,0,[]))),Aa=Dg(Li(nn,Y(K(Bs,1),uc,64,0,[]))),Wu=Dg(Li(mn,Y(K(Bs,1),uc,64,0,[]))),Za=Dg(Li(Yt,Y(K(Bs,1),uc,64,0,[]))),xl=Dg(Li(Kt,Y(K(Bs,1),uc,64,0,[mn]))),ll=Dg(Li(nn,Y(K(Bs,1),uc,64,0,[Yt]))),If=Dg(Li(Kt,Y(K(Bs,1),uc,64,0,[Yt]))),Xl=Dg(Li(Kt,Y(K(Bs,1),uc,64,0,[nn]))),Ku=Dg(Li(mn,Y(K(Bs,1),uc,64,0,[Yt]))),Na=Dg(Li(nn,Y(K(Bs,1),uc,64,0,[mn]))),Wl=Dg(Li(Kt,Y(K(Bs,1),uc,64,0,[nn,Yt]))),yl=Dg(Li(nn,Y(K(Bs,1),uc,64,0,[mn,Yt]))),kl=Dg(Li(Kt,Y(K(Bs,1),uc,64,0,[mn,Yt]))),Rl=Dg(Li(Kt,Y(K(Bs,1),uc,64,0,[nn,mn]))),$c=Dg(Li(Kt,Y(K(Bs,1),uc,64,0,[nn,mn,Yt])))}function Ttn(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z;for(i=c($(e,(Ie(),Si)),19),I=c($(e,(Ge(),wJ)),15).a,o=c($(e,dC),15).a,ri(i,wJ,$e(I)),ri(i,dC,$e(o)),Nc(i,e.n.a+t.a),_l(i,e.n.b+t.b),(c(Se(i,Db),185).gc()!=0||e.e||xe($(Vr(e),TJ))===xe((B7(),vC))&&xBe((pv(),(e.q?e.q:(Mt(),Mt(),Vd))._b(Iw)?A=c($(e,Iw),205):A=c($(Vr(e),pC),205),A)))&&(rb(i,e.o.a),ib(i,e.o.b)),T=new U(e.j);T.a<T.c.c.length;)v=c(G(T),12),z=$(v,Si),ae(z,196)&&(r=c(z,127),fa(r,v.n.a,v.n.b),ri(r,Wj,v.j));for(L=c($(e,Pw),185).gc()!=0,b=new U(e.b);b.a<b.c.c.length;)a=c(G(b),70),(L||c($(a,Pw),185).gc()!=0)&&(n=c($(a,Si),158),Pm(n,a.o.a,a.o.b),fa(n,a.n.a,a.n.b));if(!ZT(c($(e,Vv),24)))for(x=new U(e.j);x.a<x.c.c.length;)for(v=c(G(x),12),d=new U(v.f);d.a<d.c.c.length;)a=c(G(d),70),n=c($(a,Si),158),rb(n,a.o.a),ib(n,a.o.b),fa(n,a.n.a,a.n.b)}function Etn(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt;for(t.Tg("Calculate Graph Size",1),t.bh(e,G5e),T=e3,A=e3,v=zse,x=zse,z=new on((!e.a&&(e.a=new _e(_n,e,10,11)),e.a));z.e!=z.i.gc();)L=c(un(z),19),re=L.i,le=L.j,wt=L.g,d=L.f,b=c(Se(L,(In(),V1)),125),T=p.Math.min(T,re-b.b),A=p.Math.min(A,le-b.d),v=p.Math.max(v,re+wt+b.c),x=p.Math.max(x,le+d+b.a);for(W=c(Se(e,(In(),Ih)),100),Q=new ze(T-W.b,A-W.d),mt=v-T+(W.b+W.c),a=x-A+(W.d+W.a),Ze(Ye(Se(e,(B0(),W9e))))&&(me=c(Se(e,(Sx(),E3)),19),je=c(Se(me,V1),125),Oe=me.i+me.g/2+(je.b+je.c)/2-Q.a,Xe=me.j+me.f/2+(je.d+je.a)/2-Q.b,r=mt-Oe,o=a-Xe,r<mt/2?(n=r-Oe,mt+=n,Q.a-=n):(n=Oe-r,mt+=n),o<a/2?(i=o-Xe,a+=i,Q.b-=i):(i=Xe-o,a+=i)),I=new on((!e.a&&(e.a=new _e(_n,e,10,11)),e.a));I.e!=I.i.gc();)L=c(un(I),19),Nc(L,L.i-Q.a),_l(L,L.j-Q.b);Ze(Ye(Se(e,sy)))||(rb(e,mt),ib(e,a)),ri(e,ry,mt-(W.b+W.c)),ri(e,iy,a-(W.d+W.a)),t.bh(e,qG)}function Ctn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L;if(e.e.a.$b(),e.f.a.$b(),e.c.c.length=0,e.i.c.length=0,e.g.a.$b(),t)for(a=new U(t.a);a.a<a.c.c.length;)for(o=c(G(a),9),T=$g(o,(Ue(),nn)).Jc();T.Ob();)for(x=c(T.Pb(),12),Er(e.e,x),r=new U(x.g);r.a<r.c.c.length;)i=c(G(r),17),!ys(i)&&(Qe(e.c,i),VYe(e,i),d=i.c.i.k,(d==(Jt(),ur)||d==Ic||d==Ar||d==_h)&&Qe(e.j,i),L=i.d,A=L.i.c,A==n?Er(e.f,L):A==t?Er(e.e,L):dl(e.c,i));if(n)for(a=new U(n.a);a.a<a.c.c.length;){for(o=c(G(a),9),v=new U(o.j);v.a<v.c.c.length;)for(b=c(G(v),12),r=new U(b.g);r.a<r.c.c.length;)i=c(G(r),17),ys(i)&&Er(e.g,i);for(T=$g(o,(Ue(),Yt)).Jc();T.Ob();)for(x=c(T.Pb(),12),Er(e.f,x),r=new U(x.g);r.a<r.c.c.length;)i=c(G(r),17),!ys(i)&&(Qe(e.c,i),VYe(e,i),d=i.c.i.k,(d==(Jt(),ur)||d==Ic||d==Ar||d==_h)&&Qe(e.j,i),L=i.d,A=L.i.c,A==n?Er(e.f,L):A==t?Er(e.e,L):dl(e.c,i))}}function Mtn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me;for(n.Tg("Polyline edge routing",1),Q=de(be($(t,(Ge(),JSe)))),L=de(be($(t,Yv))),r=de(be($(t,Wv))),i=p.Math.min(1,r/L),le=0,b=0,t.b.c.length!=0&&(me=Gnt(c(Je(t.b,0),26)),le=.4*i*me),d=new os(t.b,0);d.b<d.d.gc();){for(a=(gn(d.b<d.d.gc()),c(d.d.Xb(d.c=d.b++),26)),o=PF(a,LP),o&&le>0&&(le-=L),hxe(a,le),x=0,A=new U(a.a);A.a<A.c.c.length;){for(T=c(G(A),9),v=0,z=new Ht(Xt(Fi(T).a.Jc(),new F));hn(z);)I=c(rn(z),17),W=mh(I.c).b,re=mh(I.d).b,a==I.d.i.c&&!ys(I)&&(qUt(I,le,.4*i*p.Math.abs(W-re)),I.c.j==(Ue(),Yt)&&(W=0,re=0)),v=p.Math.max(v,p.Math.abs(re-W));switch(T.k.g){case 0:case 4:case 1:case 3:case 5:GZt(e,T,le,Q)}x=p.Math.max(x,v)}d.b<d.d.gc()&&(me=Gnt((gn(d.b<d.d.gc()),c(d.d.Xb(d.c=d.b++),26))),x=p.Math.max(x,me),gn(d.b>0),d.a.Xb(d.c=--d.b)),b=.4*i*x,!o&&d.b<d.d.gc()&&(b+=L),le+=a.c.a+b}e.a.a.$b(),t.f.a=le,n.Ug()}function Atn(e){var t,n,i,r,o;switch(iD(e,Fut),(!e.b&&(e.b=new Ct(xn,e,4,7)),e.b).i+(!e.c&&(e.c=new Ct(xn,e,5,8)),e.c).i){case 0:throw V(new qt("The edge must have at least one source or target."));case 1:return(!e.b&&(e.b=new Ct(xn,e,4,7)),e.b).i==0?Wi(no(c(ce((!e.c&&(e.c=new Ct(xn,e,5,8)),e.c),0),83))):Wi(no(c(ce((!e.b&&(e.b=new Ct(xn,e,4,7)),e.b),0),83)))}if((!e.b&&(e.b=new Ct(xn,e,4,7)),e.b).i==1&&(!e.c&&(e.c=new Ct(xn,e,5,8)),e.c).i==1){if(r=no(c(ce((!e.b&&(e.b=new Ct(xn,e,4,7)),e.b),0),83)),o=no(c(ce((!e.c&&(e.c=new Ct(xn,e,5,8)),e.c),0),83)),Wi(r)==Wi(o))return Wi(r);if(r==Wi(o))return r;if(o==Wi(r))return o}for(i=Pd(wa(Y(K(Ea,1),Pt,22,0,[(!e.b&&(e.b=new Ct(xn,e,4,7)),e.b),(!e.c&&(e.c=new Ct(xn,e,5,8)),e.c)]))),t=no(c(rn(i),83));hn(i);)if(n=no(c(rn(i),83)),n!=t&&!sv(n,t)){if(Wi(n)==Wi(t))t=Wi(n);else if(t=eVt(t,n),!t)return null}return t}function Oxe(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le;if(A=t.length,A>0&&(b=(en(0,t.length),t.charCodeAt(0)),b!=64)){if(b==37&&(T=t.lastIndexOf("%"),v=!1,T!=0&&(T==A-1||(v=(en(T+1,t.length),t.charCodeAt(T+1)==46))))){if(a=(hs(1,T,t.length),t.substr(1,T-1)),le=St("%",a)?null:Sxe(a),i=0,v)try{i=Hu((en(T+2,t.length+1),t.substr(T+2)),ls,gi)}catch(me){throw me=kr(me),ae(me,133)?(d=me,V(new hH(d))):V(me)}for(Q=Fme(e.Dh());Q.Ob();)if(I=$H(Q),ae(I,508)&&(r=c(I,594),re=r.d,(le==null?re==null:St(le,re))&&i--==0))return r;return null}if(x=t.lastIndexOf("."),L=x==-1?t:(hs(0,x,t.length),t.substr(0,x)),n=0,x!=-1)try{n=Hu((en(x+1,t.length+1),t.substr(x+1)),ls,gi)}catch(me){if(me=kr(me),ae(me,133))L=t;else throw V(me)}for(L=St("%",L)?null:Sxe(L),z=Fme(e.Dh());z.Ob();)if(I=$H(z),ae(I,199)&&(o=c(I,199),W=o.ve(),(L==null?W==null:St(L,W))&&n--==0))return o;return null}return Bst(e,t)}function Ntn(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re;for(x=new yn,b=new Jm,i=new U(e.a.a.b);i.a<i.c.c.length;)if(t=c(G(i),60),v=Ex(t),v)bl(x.f,v,t);else if(re=I4(t),re)for(o=new U(re.k);o.a<o.c.c.length;)r=c(G(o),17),jt(b,r,t);for(n=new U(e.a.a.b);n.a<n.c.c.length;)if(t=c(G(n),60),v=Ex(t),v){for(d=new Ht(Xt(Fi(v).a.Jc(),new F));hn(d);)if(a=c(rn(d),17),!ys(a)&&(I=a.c,W=a.d,!((Ue(),xl).Gc(a.c.j)&&xl.Gc(a.d.j)))){if(z=c(Ut(x,a.d.i),60),Of(uf(ff(hf(af(new Ra,0),100),e.c[t.a.d]),e.c[z.a.d])),I.j==Yt&&Xqe((Dl(),I))){for(A=c(Ei(b,a),24).Jc();A.Ob();)if(T=c(A.Pb(),60),T.d.c<t.d.c){if(L=e.c[T.a.d],Q=e.c[t.a.d],L==Q)continue;Of(uf(ff(hf(af(new Ra,1),100),L),Q))}}if(W.j==nn&&Wqe((Dl(),W))){for(A=c(Ei(b,a),24).Jc();A.Ob();)if(T=c(A.Pb(),60),T.d.c>t.d.c){if(L=e.c[t.a.d],Q=e.c[T.a.d],L==Q)continue;Of(uf(ff(hf(af(new Ra,1),100),L),Q))}}}}}function _tn(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe;if(A=c(c(Ei(e.r,t),24),85),t==(Ue(),nn)||t==Yt){Xst(e,t);return}for(o=t==Kt?(tw(),cP):(tw(),lP),me=t==Kt?(gl(),nh):(gl(),Ef),n=c(eo(e.b,t),129),i=n.i,r=i.c+Ax(Y(K(is,1),io,30,15,[n.n.b,e.C.b,e.k])),W=i.c+i.b-Ax(Y(K(is,1),io,30,15,[n.n.c,e.C.c,e.k])),a=_1e(U0e(o),e.t),re=t==Kt?Gr:sr,T=A.Jc();T.Ob();)v=c(T.Pb(),116),!(!v.c||v.c.d.c.length<=0)&&(Q=v.b.Kf(),z=v.e,L=v.c,I=L.i,I.b=(b=L.n,L.e.a+b.b+b.c),I.a=(d=L.n,L.e.b+d.d+d.a),iD(me,Xxe),L.f=me,Xf(L,(Ql(),Tf)),I.c=z.a-(I.b-Q.a)/2,je=p.Math.min(r,z.a),Oe=p.Math.max(W,z.a+Q.a),I.c<je?I.c=je:I.c+I.b>Oe&&(I.c=Oe-I.b),Qe(a.d,new ree(I,Fwe(a,I))),re=t==Kt?p.Math.max(re,z.b+v.b.Kf().b):p.Math.min(re,z.b));for(re+=t==Kt?e.t:-e.t,le=r2e((a.e=re,a)),le>0&&(c(eo(e.b,t),129).a.b=le),x=A.Jc();x.Ob();)v=c(x.Pb(),116),!(!v.c||v.c.d.c.length<=0)&&(I=v.c.i,I.c-=v.e.a,I.d-=v.e.b)}function Dtn(e,t){qie();var n,i,r,o,a,d,b,v,x,T,A,L,I,z;if(b=_c(e,0)<0,b&&(e=Ag(e)),_c(e,0)==0)switch(t){case 0:return"0";case 1:return rj;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 L=new g0,t<0?L.a+="0E+":L.a+="0E",L.a+=t==ls?"2147483648":""+-t,L.a}x=18,T=ke(_a,cd,30,x+1,15,1),n=x,z=e;do v=z,z=tL(z,10),T[--n]=Gn(Ns(48,Ha(v,js(z,10))))&Dr;while(_c(z,0)!=0);if(r=Ha(Ha(Ha(x,n),t),1),t==0)return b&&(T[--n]=45),nd(T,n,x-n);if(t>0&&_c(r,-6)>=0){if(_c(r,0)>=0){for(o=n+Gn(r),d=x-1;d>=o;d--)T[d+1]=T[d];return T[++o]=46,b&&(T[--n]=45),nd(T,n,x-n+1)}for(a=2;IY(a,Ns(Ag(r),1));a++)T[--n]=48;return T[--n]=46,T[--n]=48,b&&(T[--n]=45),nd(T,n,x-n)}return I=n+1,i=x,A=new a4,b&&(A.a+="-"),i-I>=1?(Xp(A,T[n]),A.a+=".",A.a+=nd(T,n+1,x-n-1)):A.a+=nd(T,n,x-n),A.a+="E",_c(r,0)>0&&(A.a+="+"),A.a+=""+YT(r),A.a}function not(e){Dm(e,new pb(h_(Am(Em(Mm(Cm(new h1,Sa),"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 WA),Sa))),Be(e,Sa,RG,Ve(_mt)),Be(e,Sa,bw,Ve(Dmt)),Be(e,Sa,Yx,Ve(Cmt)),Be(e,Sa,mk,Ve(Mmt)),Be(e,Sa,bk,Ve(Amt)),Be(e,Sa,gj,Ve(Emt)),Be(e,Sa,hj,Ve(K9e)),Be(e,Sa,pj,Ve(Nmt)),Be(e,Sa,Xse,Ve(Mue)),Be(e,Sa,Vse,Ve(Aue)),Be(e,Sa,HG,Ve(Z9e)),Be(e,Sa,Wse,Ve(Nue)),Be(e,Sa,Kse,Ve(e8e)),Be(e,Sa,e4e,Ve(t8e)),Be(e,Sa,Z5e,Ve(Y9e)),Be(e,Sa,X5e,Ve(XJ)),Be(e,Sa,W5e,Ve(WJ)),Be(e,Sa,K5e,Ve(BP)),Be(e,Sa,Y5e,Ve(n8e)),Be(e,Sa,V5e,Ve(W9e))}function hw(e,t,n,i,r){var o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe;if(Q=new ze(e.g,e.f),z=Dve(e),z.a=p.Math.max(z.a,t),z.b=p.Math.max(z.b,n),Oe=z.a/Q.a,x=z.b/Q.b,me=z.a-Q.a,b=z.b-Q.b,i)for(a=Wi(e)?c(Se(Wi(e),(In(),Bb)),87):c(Se(e,(In(),Bb)),87),d=xe(Se(e,(In(),u9)))===xe((es(),kc)),re=new on((!e.c&&(e.c=new _e(fu,e,9,9)),e.c));re.e!=re.i.gc();)switch(W=c(un(re),127),le=c(Se(W,L3),64),le==(Ue(),Bo)&&(le=txe(W,a),ri(W,L3,le)),le.g){case 1:d||Nc(W,W.i*Oe);break;case 2:Nc(W,W.i+me),d||_l(W,W.j*x);break;case 3:d||Nc(W,W.i*Oe),_l(W,W.j+b);break;case 4:d||_l(W,W.j*x)}if(Pm(e,z.a,z.b),r)for(A=new on((!e.n&&(e.n=new _e(zo,e,1,7)),e.n));A.e!=A.i.gc();)T=c(un(A),158),L=T.i+T.g/2,I=T.j+T.f/2,je=L/Q.a,v=I/Q.b,je+v>=1&&(je-v>0&&I>=0?(Nc(T,T.i+me),_l(T,T.j+b*v)):je-v<0&&L>=0&&(Nc(T,T.i+me*je),_l(T,T.j+b)));return ri(e,(In(),zb),(Tu(),o=c(Gf(eM),10),new da(o,c(gf(o,o.length),10),0))),new ze(Oe,x)}function sG(e){var t,n,i,r,o,a,d,b,v,x,T;if(e==null)throw V(new Vh(ml));if(v=e,o=e.length,b=!1,o>0&&(t=(en(0,e.length),e.charCodeAt(0)),(t==45||t==43)&&(e=(en(1,e.length+1),e.substr(1)),--o,b=t==45)),o==0)throw V(new Vh(pw+v+'"'));for(;e.length>0&&(en(0,e.length),e.charCodeAt(0)==48);)e=(en(1,e.length+1),e.substr(1)),--o;if(o>(Art(),Dft)[10])throw V(new Vh(pw+v+'"'));for(r=0;r<o;r++)if(AYe((en(r,e.length),e.charCodeAt(r)))==-1)throw V(new Vh(pw+v+'"'));for(T=0,a=Dke[10],x=tce[10],d=Ag(Lke[10]),n=!0,i=o%a,i>0&&(T=-parseInt((hs(0,i,e.length),e.substr(0,i)),10),e=(en(i,e.length+1),e.substr(i)),o-=i,n=!1);o>=a;){if(i=parseInt((hs(0,a,e.length),e.substr(0,a)),10),e=(en(a,e.length+1),e.substr(a)),o-=a,n)n=!1;else{if(_c(T,d)<0)throw V(new Vh(pw+v+'"'));T=js(T,x)}T=Ha(T,i)}if(_c(T,0)>0)throw V(new Vh(pw+v+'"'));if(!b&&(T=Ag(T),_c(T,0)<0))throw V(new Vh(pw+v+'"'));return T}function Sxe(e){Vie();var t,n,i,r,o,a,d,b;if(e==null)return null;if(r=Xh(e,pl(37)),r<0)return e;for(b=new Lu((hs(0,r,e.length),e.substr(0,r))),t=ke($l,i3,30,4,15,1),d=0,i=0,a=e.length;r<a;r++)if(en(r,e.length),e.charCodeAt(r)==37&&e.length>r+2&&Jte((en(r+1,e.length),e.charCodeAt(r+1)),Z7e,eEe)&&Jte((en(r+2,e.length),e.charCodeAt(r+2)),Z7e,eEe))if(n=FMt((en(r+1,e.length),e.charCodeAt(r+1)),(en(r+2,e.length),e.charCodeAt(r+2))),r+=2,i>0?(n&192)==128?t[d++]=n<<24>>24:i=0:n>=128&&((n&224)==192?(t[d++]=n<<24>>24,i=2):(n&240)==224?(t[d++]=n<<24>>24,i=3):(n&248)==240&&(t[d++]=n<<24>>24,i=4)),i>0){if(d==i){switch(d){case 2:{Xp(b,((t[0]&31)<<6|t[1]&63)&Dr);break}case 3:{Xp(b,((t[0]&15)<<12|(t[1]&63)<<6|t[2]&63)&Dr);break}}d=0,i=0}}else{for(o=0;o<d;++o)Xp(b,t[o]&Dr);d=0,b.a+=String.fromCharCode(n)}else{for(o=0;o<d;++o)Xp(b,t[o]&Dr);d=0,Xp(b,(en(r,e.length),e.charCodeAt(r)))}return b.a}function iot(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I;if(L=Wi(no(c(ce((!e.b&&(e.b=new Ct(xn,e,4,7)),e.b),0),83))),I=Wi(no(c(ce((!e.c&&(e.c=new Ct(xn,e,5,8)),e.c),0),83))),T=L==I,d=new fs,t=c(Se(e,(QH(),w7e)),79),t&&t.b>=2){if((!e.a&&(e.a=new _e(Gi,e,6,6)),e.a).i==0)n=(b0(),r=new o6,r),Ln((!e.a&&(e.a=new _e(Gi,e,6,6)),e.a),n);else if((!e.a&&(e.a=new _e(Gi,e,6,6)),e.a).i>1)for(A=new k4((!e.a&&(e.a=new _e(Gi,e,6,6)),e.a));A.e!=A.i.gc();)Q7(A);ixe(t,c(ce((!e.a&&(e.a=new _e(Gi,e,6,6)),e.a),0),171))}if(T)for(i=new on((!e.a&&(e.a=new _e(Gi,e,6,6)),e.a));i.e!=i.i.gc();)for(n=c(un(i),171),v=new on((!n.a&&(n.a=new Nr(Yu,n,5)),n.a));v.e!=v.i.gc();)b=c(un(v),373),d.a=p.Math.max(d.a,b.a),d.b=p.Math.max(d.b,b.b);for(a=new on((!e.n&&(e.n=new _e(zo,e,1,7)),e.n));a.e!=a.i.gc();)o=c(un(a),158),x=c(Se(o,VC),8),x&&fa(o,x.a,x.b),T&&(d.a=p.Math.max(d.a,o.i+o.g),d.b=p.Math.max(d.b,o.j+o.f));return d}function rot(e,t,n,i,r){var o,a,d;if(SVe(e,t),a=t[0],o=ws(n.c,0),d=-1,bwe(n))if(i>0){if(a+i>e.length)return!1;d=LQ((hs(0,a+i,e.length),e.substr(0,a+i)),t)}else d=LQ(e,t);switch(o){case 71:return d=qx(e,a,Y(K(tt,1),Fe,2,6,[Qot,Got]),t),r.e=d,!0;case 77:return WXt(e,t,r,d,a);case 76:return KXt(e,t,r,d,a);case 69:return WGt(e,t,a,r);case 99:return KGt(e,t,a,r);case 97:return d=qx(e,a,Y(K(tt,1),Fe,2,6,["AM","PM"]),t),r.b=d,!0;case 121:return YXt(e,t,a,d,n,r);case 100:return d<=0?!1:(r.c=d,!0);case 83:return d<0?!1:azt(d,a,t[0],r);case 104:d==12&&(d=0);case 75:case 72:return d<0?!1:(r.f=d,r.g=!1,!0);case 107:return d<0?!1:(r.f=d,r.g=!0,!0);case 109:return d<0?!1:(r.j=d,!0);case 115:return d<0?!1:(r.n=d,!0);case 90:if(a<e.length&&(en(a,e.length),e.charCodeAt(a)==90))return++t[0],r.o=0,!0;case 122:case 118:return kQt(e,a,t,r);default:return!1}}function Ltn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt;for(le=t.c.length,r=new Gx(e.a,n,null,null),mt=ke(is,io,30,le,15,1),z=ke(is,io,30,le,15,1),I=ke(is,io,30,le,15,1),Q=0,d=0;d<le;d++)z[d]=gi,I[d]=ls;for(b=0;b<le;b++)for(i=(ht(b,t.c.length),c(t.c[b],188)),mt[b]=xie(i),mt[Q]>mt[b]&&(Q=b),T=new U(e.a.b);T.a<T.c.c.length;)for(x=c(G(T),26),re=new U(x.a);re.a<re.c.c.length;)W=c(G(re),9),Oe=de(i.p[W.p])+de(i.d[W.p]),z[b]=p.Math.min(z[b],Oe),I[b]=p.Math.max(I[b],Oe+W.o.b);for(Xe=ke(is,io,30,le,15,1),v=0;v<le;v++)(ht(v,t.c.length),c(t.c[v],188)).o==(ph(),Rb)?Xe[v]=z[Q]-z[v]:Xe[v]=I[Q]-I[v];for(o=ke(is,io,30,le,15,1),L=new U(e.a.b);L.a<L.c.c.length;)for(A=c(G(L),26),je=new U(A.a);je.a<je.c.c.length;){for(me=c(G(je),9),a=0;a<le;a++)o[a]=de((ht(a,t.c.length),c(t.c[a],188)).p[me.p])+de((ht(a,t.c.length),c(t.c[a],188)).d[me.p])+Xe[a];VLe(o,uXe(Re.prototype.Ke,Re,[])),r.p[me.p]=(o[1]+o[2])/2,r.d[me.p]=0}return r}function Ptn(e,t,n){var i,r,o,a,d;switch(i=t.i,o=e.i.o,r=e.i.d,d=e.n,a=Po(Y(K(Wr,1),Fe,8,0,[d,e.a])),e.j.g){case 1:Wh(t,(gl(),Ef)),i.d=-r.d-n-i.a,c(c(Je(t.d,0),190).mf((Ie(),_k)),293)==(qu(),Yd)?(Xf(t,(Ql(),Tf)),i.c=a.a-de(be($(e,b3)))-n-i.b):(Xf(t,(Ql(),gd)),i.c=a.a+de(be($(e,b3)))+n);break;case 2:Xf(t,(Ql(),gd)),i.c=o.a+r.c+n,c(c(Je(t.d,0),190).mf((Ie(),_k)),293)==(qu(),Yd)?(Wh(t,(gl(),Ef)),i.d=a.b-de(be($(e,b3)))-n-i.a):(Wh(t,(gl(),nh)),i.d=a.b+de(be($(e,b3)))+n);break;case 3:Wh(t,(gl(),nh)),i.d=o.b+r.a+n,c(c(Je(t.d,0),190).mf((Ie(),_k)),293)==(qu(),Yd)?(Xf(t,(Ql(),Tf)),i.c=a.a-de(be($(e,b3)))-n-i.b):(Xf(t,(Ql(),gd)),i.c=a.a+de(be($(e,b3)))+n);break;case 4:Xf(t,(Ql(),Tf)),i.c=-r.b-n-i.b,c(c(Je(t.d,0),190).mf((Ie(),_k)),293)==(qu(),Yd)?(Wh(t,(gl(),Ef)),i.d=a.b-de(be($(e,b3)))-n-i.a):(Wh(t,(gl(),nh)),i.d=a.b+de(be($(e,b3)))+n)}}function Itn(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re;for(t.Tg("Interactive node layering",1),n=new He,A=new U(e.a);A.a<A.c.c.length;){for(x=c(G(A),9),b=x.n.a,d=b+x.o.a,d=p.Math.max(b+1,d),re=new os(n,0),i=null;re.b<re.d.gc();)if(Q=(gn(re.b<re.d.gc()),c(re.d.Xb(re.c=re.b++),571)),Q.c>=d){gn(re.b>0),re.a.Xb(re.c=--re.b);break}else Q.a>b&&(i?(Or(i.b,Q.b),i.a=p.Math.max(i.a,Q.a),nu(re)):(Qe(Q.b,x),Q.c=p.Math.min(Q.c,b),Q.a=p.Math.max(Q.a,d),i=Q));i||(i=new aPe,i.c=b,i.a=d,H2(re,i),Qe(i.b,x))}for(a=e.b,v=0,W=new U(n);W.a<W.c.c.length;)for(Q=c(G(W),571),r=new dc(e),r.p=v++,It(a.c,r),L=new U(Q.b);L.a<L.c.c.length;)x=c(G(L),9),zr(x,r),x.p=0;for(T=new U(e.a);T.a<T.c.c.length;)if(x=c(G(T),9),x.p==0)for(z=Fit(x,e);z.a.gc()!=0;)I=c(z.a.ec().Jc().Pb(),9),z.a.Ac(I)!=null,Ss(z,Fit(I,e));for(o=new os(a,0);o.b<o.d.gc();)(gn(o.b<o.d.gc()),c(o.d.Xb(o.c=o.b++),26)).a.c.length==0&&nu(o);e.a.c.length=0,t.Ug()}function Rtn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z;for(n.Tg(Mlt,1),!t.a&&(t.a=new _e(_n,t,10,11)),i=de(be(Se(t,(Th(),eV)))),x=de(be(Se(t,IC))),A=c(Se(t,PC),100),L=new Tge(i,x),o=xot(L,t,A),iXe(t,L),d=c(Se(t,x8e),15).a;d>1;){if(r=HVt(t),T=o.g,I=c(Se(t,PC),100),z=de(be(Se(t,eV))),(!t.a&&(t.a=new _e(_n,t,10,11)),t.a).i>1&&de(be(Se(t,(Fd(),zue))))!=sr&&(o.c+(I.b+I.c))/(o.b+(I.d+I.a))<z?ri(r,(Fd(),ty),de(be(Se(t,ty)))+de(be(Se(t,zue)))):(!t.a&&(t.a=new _e(_n,t,10,11)),t.a).i>1&&de(be(Se(t,(Fd(),Bue))))!=sr&&(o.c+(I.b+I.c))/(o.b+(I.d+I.a))>z&&ri(r,(Fd(),ty),p.Math.max(de(be(Se(t,LC))),de(be(Se(r,ty)))-de(be(Se(t,Bue))))),L=new Tge(i,x),b=xot(L,r,A),v=b.g,v>=T&&v==v){for(a=0;a<(!r.a&&(r.a=new _e(_n,r,10,11)),r.a).i;a++)Ftt(e,c(ce((!r.a&&(r.a=new _e(_n,r,10,11)),r.a),a),19),c(ce((!t.a&&(t.a=new _e(_n,t,10,11)),t.a),a),19));iXe(t,L),S_t(o,b.c),j_t(o,b.b)}--d}ri(t,(Fd(),r9),o.b),ri(t,Bk,o.c),n.Ug()}function $tn(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt;for(t.Tg("Compound graph postprocessor",1),n=Ze(Ye($(e,(Ge(),Ble)))),d=c($(e,(Ie(),J6e)),231),x=new Tr,W=d.ec().Jc();W.Ob();){for(Q=c(W.Pb(),17),a=new ql(d.cc(Q)),Mt(),Rr(a,new Xde(e)),je=TRt((ht(0,a.c.length),c(a.c[0],253))),Xe=eWe(c(Je(a,a.c.length-1),253)),le=je.i,bS(Xe.i,le)?re=le.e:re=Vr(le),T=gFt(Q,a),xu(Q.a),A=null,o=new U(a);o.a<o.c.c.length;)r=c(G(o),253),z=new fs,Ave(z,r.a,re),L=r.b,i=new tu,ine(i,0,L.a),cv(i,z),me=new Ms(mh(L.c)),Oe=new Ms(mh(L.d)),Oi(me,z),Oi(Oe,z),A&&(i.b==0?I=Oe:I=(gn(i.b!=0),c(i.a.a.c,8)),mt=p.Math.abs(A.a-I.a)>ud,wt=p.Math.abs(A.b-I.b)>ud,(!n&&mt&&wt||n&&(mt||wt))&&ei(Q.a,me)),Ss(Q.a,i),i.b==0?A=me:A=(gn(i.b!=0),c(i.c.b.c,8)),KRt(L,T,z),eWe(r)==Xe&&(Vr(Xe.i)!=r.a&&(z=new fs,Ave(z,Vr(Xe.i),re)),Me(Q,vle,z)),dGt(L,Q,re),x.a.yc(L,x);Os(Q,je),ss(Q,Xe)}for(v=x.a.ec().Jc();v.Ob();)b=c(v.Pb(),17),Os(b,null),ss(b,null);t.Ug()}function Btn(e,t){var n,i,r,o,a,d,b,v,x,T,A;for(r=c($(e,(Jo(),Bw)),87),x=r==(_r(),po)||r==vo?Rh:vo,n=c(Hl(mi(new Tt(null,new Et(e.b,16)),new ex),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[(ya(),wl)]))),16),b=c(Hl(Qc(n.Mc(),new DDe(t)),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[wl]))),16),b.Fc(c(Hl(Qc(n.Mc(),new LDe(t)),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[wl]))),18)),b.gd(new PDe(x)),A=new xg(new IDe(r)),i=new yn,d=b.Jc();d.Ob();)a=c(d.Pb(),243),v=c(a.a,41),Ze(Ye(a.c))?(A.a.yc(v,(Bt(),X0))==null,new O6(A.a.Xc(v,!1)).a.gc()>0&&ci(i,v,c(new O6(A.a.Xc(v,!1)).a.Tc(),41)),new O6(A.a.$c(v,!0)).a.gc()>1&&ci(i,fYe(A,v),v)):(new O6(A.a.Xc(v,!1)).a.gc()>0&&(o=c(new O6(A.a.Xc(v,!1)).a.Tc(),41),xe(o)===xe(No(lo(i.f,v)))&&c($(v,(Ii(),aue)),16).Ec(o)),new O6(A.a.$c(v,!0)).a.gc()>1&&(T=fYe(A,v),xe(No(lo(i.f,T)))===xe(v)&&c($(T,(Ii(),aue)),16).Ec(v)),A.a.Ac(v)!=null)}function sot(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me;if(e.gc()==1)return c(e.Xb(0),238);if(e.gc()<=0)return new iH;for(r=e.Jc();r.Ob();){for(n=c(r.Pb(),238),I=0,x=gi,T=gi,b=ls,v=ls,L=new U(n.e);L.a<L.c.c.length;)A=c(G(L),156),I+=c($(A,(Sf(),Sk)),15).a,x=p.Math.min(x,A.d.a-A.e.a/2),T=p.Math.min(T,A.d.b-A.e.b/2),b=p.Math.max(b,A.d.a+A.e.a/2),v=p.Math.max(v,A.d.b+A.e.b/2);Me(n,(Sf(),Sk),$e(I)),Me(n,(M0(),VE),new ze(x,T)),Me(n,uP,new ze(b,v))}for(Mt(),e.gd(new a5),z=new iH,nc(z,c(e.Xb(0),105)),d=0,re=0,o=e.Jc();o.Ob();)n=c(o.Pb(),238),Q=Qr(As(c($(n,(M0(),uP)),8)),c($(n,VE),8)),d=p.Math.max(d,Q.a),re+=Q.a*Q.b;for(d=p.Math.max(d,p.Math.sqrt(re)*de(be($(z,(Sf(),Uht))))),W=de(be($(z,EU))),le=0,me=0,a=0,t=W,i=e.Jc();i.Ob();)n=c(i.Pb(),238),Q=Qr(As(c($(n,(M0(),uP)),8)),c($(n,VE),8)),le+Q.a>d&&(le=0,me+=a+W,a=0),aKt(z,n,le,me),t=p.Math.max(t,le+Q.a),a=p.Math.max(a,Q.b),le+=Q.a+W;return z}function ztn(e){exe();var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q;if(e==null||(o=gH(e),I=SBt(o),I%4!=0))return null;if(z=I/4|0,z==0)return ke($l,i3,30,0,15,1);for(T=null,t=0,n=0,i=0,r=0,a=0,d=0,b=0,v=0,L=0,A=0,x=0,T=ke($l,i3,30,z*3,15,1);L<z-1;L++){if(!b_(a=o[x++])||!b_(d=o[x++])||!b_(b=o[x++])||!b_(v=o[x++]))return null;t=qh[a],n=qh[d],i=qh[b],r=qh[v],T[A++]=(t<<2|n>>4)<<24>>24,T[A++]=((n&15)<<4|i>>2&15)<<24>>24,T[A++]=(i<<6|r)<<24>>24}return!b_(a=o[x++])||!b_(d=o[x++])?null:(t=qh[a],n=qh[d],b=o[x++],v=o[x++],qh[b]==-1||qh[v]==-1?b==61&&v==61?(n&15)!=0?null:(Q=ke($l,i3,30,L*3+1,15,1),wc(T,0,Q,0,L*3),Q[A]=(t<<2|n>>4)<<24>>24,Q):b!=61&&v==61?(i=qh[b],(i&3)!=0?null:(Q=ke($l,i3,30,L*3+2,15,1),wc(T,0,Q,0,L*3),Q[A++]=(t<<2|n>>4)<<24>>24,Q[A]=((n&15)<<4|i>>2&15)<<24>>24,Q)):null:(i=qh[b],r=qh[v],T[A++]=(t<<2|n>>4)<<24>>24,T[A++]=((n&15)<<4|i>>2&15)<<24>>24,T[A++]=(i<<6|r)<<24>>24,T))}function Ftn(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je;for(t.Tg(Wct,1),I=c($(e,(Ge(),U1)),225),r=new U(e.b);r.a<r.c.c.length;)for(i=c(G(r),26),v=cD(i.a),a=v,d=0,b=a.length;d<b;++d)if(o=a[d],o.k==(Jt(),Ic)){if(I==(L1(),Jk))for(T=new U(o.j);T.a<T.c.c.length;)x=c(G(T),12),x.e.c.length==0||Vzt(x),x.g.c.length==0||Xzt(x);else if(ae($(o,(Ie(),Si)),17))Q=c($(o,Si),17),W=c($g(o,(Ue(),Yt)).Jc().Pb(),12),re=c($g(o,nn).Jc().Pb(),12),le=c($(W,Si),12),me=c($(re,Si),12),Os(Q,me),ss(Q,le),je=new Ms(re.i.n),je.a=Po(Y(K(Wr,1),Fe,8,0,[me.i.n,me.n,me.a])).a,ei(Q.a,je),je=new Ms(W.i.n),je.a=Po(Y(K(Wr,1),Fe,8,0,[le.i.n,le.n,le.a])).a,ei(Q.a,je);else{if(o.j.c.length>=2){for(z=!0,A=new U(o.j),n=c(G(A),12),L=null;A.a<A.c.c.length;)if(L=n,n=c(G(A),12),!xi($(L,Si),$(n,Si))){z=!1;break}}else z=!1;for(T=new U(o.j);T.a<T.c.c.length;)x=c(G(T),12),x.e.c.length==0||mXt(x,z),x.g.c.length==0||wXt(x,z)}zr(o,null)}t.Ug()}function qtn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je;for(d=new U(e.a.b);d.a<d.c.c.length;)for(o=c(G(d),26),le=new U(o.a);le.a<le.c.c.length;)re=c(G(le),9),t.g[re.p]=re,t.a[re.p]=re,t.d[re.p]=0;for(b=e.a.b,t.c==(Kh(),Xg)&&(b=ju(b)),a=b.Jc();a.Ob();)for(o=c(a.Pb(),26),L=-1,A=o.a,t.o==(ph(),Dh)&&(L=gi,A=ju(A)),je=A.Jc();je.Ob();)if(me=c(je.Pb(),9),T=null,t.c==Xg?T=c(Je(e.b.f,me.p),16):T=c(Je(e.b.b,me.p),16),T.gc()>0)if(i=T.gc(),v=ks(p.Math.floor((i+1)/2))-1,r=ks(p.Math.ceil((i+1)/2))-1,t.o==Dh)for(x=r;x>=v;x--)t.a[me.p]==me&&(z=c(T.Xb(x),49),I=c(z.a,9),!$a(n,z.b)&&L>e.b.e[I.p]&&(t.a[I.p]=me,t.g[me.p]=t.g[I.p],t.a[me.p]=t.g[me.p],t.f[t.g[me.p].p]=(Bt(),!!(Ze(t.f[t.g[me.p].p])&me.k==(Jt(),Cr))),L=e.b.e[I.p]));else for(x=v;x<=r;x++)t.a[me.p]==me&&(W=c(T.Xb(x),49),Q=c(W.a,9),!$a(n,W.b)&&L<e.b.e[Q.p]&&(t.a[Q.p]=me,t.g[me.p]=t.g[Q.p],t.a[me.p]=t.g[me.p],t.f[t.g[me.p].p]=(Bt(),!!(Ze(t.f[t.g[me.p].p])&me.k==(Jt(),Cr))),L=e.b.e[Q.p]))}function oot(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt;return le=e.c[(ht(0,t.c.length),c(t.c[0],17)).p],Xe=e.c[(ht(1,t.c.length),c(t.c[1],17)).p],le.a.e.e-le.a.a-(le.b.e.e-le.b.a)==0&&Xe.a.e.e-Xe.a.a-(Xe.b.e.e-Xe.b.a)==0||(W=le.b.e.f,!ae(W,9))?!1:(Q=c(W,9),je=e.i[Q.p],Oe=Q.c?Lo(Q.c.a,Q,0):-1,o=sr,Oe>0&&(r=c(Je(Q.c.a,Oe-1),9),a=e.i[r.p],mt=p.Math.ceil(yx(e.n,r,Q)),o=je.a.e-Q.d.d-(a.a.e+r.o.b+r.d.a)-mt),v=sr,Oe<Q.c.a.c.length-1&&(b=c(Je(Q.c.a,Oe+1),9),x=e.i[b.p],mt=p.Math.ceil(yx(e.n,b,Q)),v=x.a.e-b.d.d-(je.a.e+Q.o.b+Q.d.a)-mt),n&&(dh(),vf(fd),p.Math.abs(o-v)<=fd||o==v||isNaN(o)&&isNaN(v))?!0:(i=bee(le.a),d=-bee(le.b),T=-bee(Xe.a),re=bee(Xe.b),z=le.a.e.e-le.a.a-(le.b.e.e-le.b.a)>0&&Xe.a.e.e-Xe.a.a-(Xe.b.e.e-Xe.b.a)<0,I=le.a.e.e-le.a.a-(le.b.e.e-le.b.a)<0&&Xe.a.e.e-Xe.a.a-(Xe.b.e.e-Xe.b.a)>0,L=le.a.e.e+le.b.a<Xe.b.e.e+Xe.a.a,A=le.a.e.e+le.b.a>Xe.b.e.e+Xe.a.a,me=0,!z&&!I&&(A?o+T>0?me=T:v-i>0&&(me=i):L&&(o+d>0?me=d:v-re>0&&(me=re))),je.a.e+=me,je.b&&(je.d.e+=me),!1))}function cot(e,t,n){var i,r,o,a,d,b,v,x,T,A;if(i=new pf(t.Jf().a,t.Jf().b,t.Kf().a,t.Kf().b),r=new w4,e.c)for(a=new U(t.Pf());a.a<a.c.c.length;)o=c(G(a),190),r.c=o.Jf().a+t.Jf().a,r.d=o.Jf().b+t.Jf().b,r.b=o.Kf().a,r.a=o.Kf().b,G7(i,r);for(v=new U(t.Vf());v.a<v.c.c.length;){if(b=c(G(v),844),x=b.Jf().a+t.Jf().a,T=b.Jf().b+t.Jf().b,e.e&&(r.c=x,r.d=T,r.b=b.Kf().a,r.a=b.Kf().b,G7(i,r)),e.d)for(a=new U(b.Pf());a.a<a.c.c.length;)o=c(G(a),190),r.c=o.Jf().a+x,r.d=o.Jf().b+T,r.b=o.Kf().a,r.a=o.Kf().b,G7(i,r);if(e.b){if(A=new ze(-n,-n),c(t.mf((In(),oy)),185).Gc((Gl(),ap)))for(a=new U(b.Pf());a.a<a.c.c.length;)o=c(G(a),190),A.a+=o.Kf().a+n,A.b+=o.Kf().b+n;A.a=p.Math.max(A.a,0),A.b=p.Math.max(A.b,0),jrt(i,b.Uf(),b.Sf(),t,b,A,n)}}e.b&&jrt(i,t.Uf(),t.Sf(),t,null,null,n),d=new GZ(t.Tf()),d.d=p.Math.max(0,t.Jf().b-i.d),d.a=p.Math.max(0,i.d+i.a-(t.Jf().b+t.Kf().b)),d.b=p.Math.max(0,t.Jf().a-i.c),d.c=p.Math.max(0,i.c+i.b-(t.Jf().a+t.Kf().a)),t.Xf(d)}function Htn(){var e=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F"];return e[34]='\\"',e[92]="\\\\",e[173]="\\u00ad",e[1536]="\\u0600",e[1537]="\\u0601",e[1538]="\\u0602",e[1539]="\\u0603",e[1757]="\\u06dd",e[1807]="\\u070f",e[6068]="\\u17b4",e[6069]="\\u17b5",e[8203]="\\u200b",e[8204]="\\u200c",e[8205]="\\u200d",e[8206]="\\u200e",e[8207]="\\u200f",e[8232]="\\u2028",e[8233]="\\u2029",e[8234]="\\u202a",e[8235]="\\u202b",e[8236]="\\u202c",e[8237]="\\u202d",e[8238]="\\u202e",e[8288]="\\u2060",e[8289]="\\u2061",e[8290]="\\u2062",e[8291]="\\u2063",e[8292]="\\u2064",e[8298]="\\u206a",e[8299]="\\u206b",e[8300]="\\u206c",e[8301]="\\u206d",e[8302]="\\u206e",e[8303]="\\u206f",e[65279]="\\ufeff",e[65529]="\\ufff9",e[65530]="\\ufffa",e[65531]="\\ufffb",e}function lot(e){Dm(e,new pb(EY(h_(Am(Em(Mm(Cm(new h1,sl),"ELK Force"),"Force-based algorithm provided by the Eclipse Layout Kernel. Implements methods that follow physical analogies by simulating forces that move the nodes into a balanced distribution. Currently the original Eades model and the Fruchterman - Reingold model are supported."),new Ry),sl),Li((ok(),dI),Y(K(gI,1),Pe,235,0,[hI]))))),Be(e,sl,RL,$e(1)),Be(e,sl,bw,80),Be(e,sl,Ure,5),Be(e,sl,aj,uj),Be(e,sl,bG,$e(1)),Be(e,sl,vE,(Bt(),!0)),Be(e,sl,mw,cOe),Be(e,sl,fj,Ve(rOe)),Be(e,sl,mG,Ve(lOe)),Be(e,sl,$L,!1),Be(e,sl,hj,Ve(oOe)),Be(e,sl,dj,Ve(Wht)),Be(e,sl,bk,Ve(Kht)),Be(e,sl,Yx,Ve(Xht)),Be(e,sl,gj,Ve(Vht)),Be(e,sl,pj,Ve(Zht)),Be(e,sl,pG,Ve(sOe)),Be(e,sl,Qre,Ve(wce)),Be(e,sl,e3e,Ve(TU)),Be(e,sl,Gre,Ve(mce)),Be(e,sl,t3e,Ve(uOe)),Be(e,sl,BL,Ve(sdt)),Be(e,sl,zL,Ve(odt)),Be(e,sl,FL,Ve(rdt)),Be(e,sl,qL,Ve(idt)),Be(e,sl,ww,aOe)}function Qtn(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I,z,Q,W;for(L=c(Je((ht(0,t.c.length),c(t.c[0],26)).a,i),9),n>0&&zr(L,(ht(n,t.c.length),c(t.c[n],26))),o=0,A=!0,W=ju(Zp(vr(L))),b=W.Jc();b.Ob();){for(d=c(b.Pb(),17),A=!1,T=d,v=0;v<n;v++)r=NKe(e,T),i+o>(ht(v,t.c.length),c(t.c[v],26)).a.c.length?zr(r,(ht(v,t.c.length),c(t.c[v],26))):R0(r,i+o,(ht(v,t.c.length),c(t.c[v],26))),T=Sie(T,r);n>0&&(o+=1)}if(A){for(v=0;v<n;v++)r=new Oh(e),pu(r,(Jt(),fP)),i+o>(ht(v,t.c.length),c(t.c[v],26)).a.c.length?zr(r,(ht(v,t.c.length),c(t.c[v],26))):R0(r,i+o,(ht(v,t.c.length),c(t.c[v],26)));n>0&&(o+=1)}for(a=!1,z=new Ht(Xt(Fi(L).a.Jc(),new F));hn(z);){for(I=c(rn(z),17),T=I,x=n+1;x<t.c.length;x++)r=NKe(e,T),zr(r,(ht(x,t.c.length),c(t.c[x],26))),T=Sie(T,r);for(v=0;v<=n;v++)a&&(Q=new Oh(e),pu(Q,(Jt(),WE)),i+1>(ht(v,t.c.length),c(t.c[v],26)).a.c.length?zr(Q,(ht(v,t.c.length),c(t.c[v],26))):R0(Q,i+1,(ht(v,t.c.length),c(t.c[v],26))));a&&(o+=1),a=!0}return o>0?o-1:0}function q0(e,t){vi();var n,i,r,o,a,d,b,v,x,T,A,L,I;if(vT(v9)==0){for(T=ke(yin,Fe,122,wyt.length,0,1),a=0;a<T.length;a++)T[a]=new $u(4);for(i=new bT,o=0;o<jEe.length;o++){if(x=new $u(4),o<84?(d=o*2,L=(en(d,Hoe.length),Hoe.charCodeAt(d)),A=(en(d+1,Hoe.length),Hoe.charCodeAt(d+1)),Dc(x,L,A)):(d=(o-84)*2,Dc(x,TEe[d],TEe[d+1])),b=jEe[o],St(b,"Specials")&&Dc(x,65520,65533),St(b,hft)&&(Dc(x,983040,1048573),Dc(x,1048576,1114109)),uo(v9,b,x),uo(fM,b,Ov(x)),v=i.a.length,0<v?i.a=Fa(i.a,0,0):0>v&&(i.a+=qBe(ke(_a,cd,30,-v,15,1))),i.a+="Is",Xh(b,pl(32))>=0)for(r=0;r<b.length;r++)en(r,b.length),b.charCodeAt(r)!=32&&K6(i,(en(r,b.length),b.charCodeAt(r)));else i.a+=""+b;f2e(i.a,b,!0)}f2e(qoe,"Cn",!1),f2e(bke,"Cn",!0),n=new $u(4),Dc(n,0,Nj),uo(v9,"ALL",n),uo(fM,"ALL",Ov(n)),!my&&(my=new yn),uo(my,qoe,qoe),!my&&(my=new yn),uo(my,bke,bke),!my&&(my=new yn),uo(my,"ALL","ALL")}return I=c(Mc(t?v9:fM,e),140),I}function uot(e){Dm(e,new pb(EY(h_(Am(Em(Mm(Cm(new h1,cl),"ELK Mr. Tree"),"Tree-based algorithm provided by the Eclipse Layout Kernel. Computes a spanning tree of the input graph and arranges all nodes according to the resulting parent-children hierarchy. I pity the fool who doesn't use Mr. Tree Layout."),new O8),H5e),bt((ok(),Hae))))),Be(e,cl,mw,_9e),Be(e,cl,bw,20),Be(e,cl,Lse,3),Be(e,cl,aj,uj),Be(e,cl,RL,$e(1)),Be(e,cl,vE,(Bt(),!0)),Be(e,cl,XL,Ve(E9e)),Be(e,cl,Pse,C9e),Be(e,cl,fj,Ve(Gbt)),Be(e,cl,$G,Ve(Ubt)),Be(e,cl,Yx,Ve(Vbt)),Be(e,cl,dj,Ve(Xbt)),Be(e,cl,mk,Ve(Wbt)),Be(e,cl,bk,Ve(Kbt)),Be(e,cl,gj,Ve(Jbt)),Be(e,cl,hj,Ve(A9e)),Be(e,cl,pj,Ve(Ybt)),Be(e,cl,z5e,Ve(I9e)),Be(e,cl,q5e,Ve(D9e)),Be(e,cl,BL,Ve(nmt)),Be(e,cl,zL,Ve(imt)),Be(e,cl,FL,Ve(tmt)),Be(e,cl,qL,Ve(emt)),Be(e,cl,ww,P9e),Be(e,cl,B5e,Ve(T3)),Be(e,cl,F5e,Ve(mue)),Be(e,cl,$5e,Ve(md)),Be(e,cl,I5e,Ve(T9e)),Be(e,cl,R5e,Ve(M9e))}function aot(e,t){var n,i,r,o,a,d,b,v,x,T,A;for(v=c(c(Ei(e.r,t),24),85),a=DQt(e,t),n=e.u.Gc((Gl(),YC)),b=v.Jc();b.Ob();)if(d=c(b.Pb(),116),!(!d.c||d.c.d.c.length<=0)){switch(A=d.b.Kf(),x=d.c,T=x.i,T.b=(o=x.n,x.e.a+o.b+o.c),T.a=(r=x.n,x.e.b+r.d+r.a),t.g){case 1:d.a?(T.c=(A.a-T.b)/2,Xf(x,(Ql(),W0))):a||n?(T.c=-T.b-e.s,Xf(x,(Ql(),Tf))):(T.c=A.a+e.s,Xf(x,(Ql(),gd))),T.d=-T.a-e.t,Wh(x,(gl(),Ef));break;case 3:d.a?(T.c=(A.a-T.b)/2,Xf(x,(Ql(),W0))):a||n?(T.c=-T.b-e.s,Xf(x,(Ql(),Tf))):(T.c=A.a+e.s,Xf(x,(Ql(),gd))),T.d=A.b+e.t,Wh(x,(gl(),nh));break;case 2:d.a?(i=e.v?T.a:c(Je(x.d,0),190).Kf().b,T.d=(A.b-i)/2,Wh(x,(gl(),K0))):a||n?(T.d=-T.a-e.t,Wh(x,(gl(),Ef))):(T.d=A.b+e.t,Wh(x,(gl(),nh))),T.c=A.a+e.s,Xf(x,(Ql(),gd));break;case 4:d.a?(i=e.v?T.a:c(Je(x.d,0),190).Kf().b,T.d=(A.b-i)/2,Wh(x,(gl(),K0))):a||n?(T.d=-T.a-e.t,Wh(x,(gl(),Ef))):(T.d=A.b+e.t,Wh(x,(gl(),nh))),T.c=-T.b-e.s,Xf(x,(Ql(),Tf))}a=!1}}function Gtn(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re;if(A=!1,T=!1,wx(c($(i,(Ge(),ar)),103))){a=!1,d=!1;e:for(I=new U(i.j);I.a<I.c.c.length;)for(L=c(G(I),12),Q=Pd(wa(Y(K(Ea,1),Pt,22,0,[new T6(L),new t4(L)])));hn(Q);)if(z=c(rn(Q),12),!Ze(Ye($(z.i,lC)))){if(L.j==(Ue(),Kt)){a=!0;break e}if(L.j==mn){d=!0;break e}}A=d&&!a,T=a&&!d}if(!A&&!T&&i.b.c.length!=0){for(x=0,v=new U(i.b);v.a<v.c.c.length;)b=c(G(v),70),x+=b.n.b+b.o.b/2;x/=i.b.c.length,re=x>=i.o.b/2}else re=!T;re?(W=c($(i,(Ie(),Pk)),16),W?A?o=W:(r=c($(i,Ck),16),r?W.gc()<=r.gc()?o=W:o=r:(o=new He,Me(i,Ck,o))):(o=new He,Me(i,Pk,o))):(r=c($(i,(Ie(),Ck)),16),r?T?o=r:(W=c($(i,Pk),16),W?r.gc()<=W.gc()?o=r:o=W:(o=new He,Me(i,Pk,o))):(o=new He,Me(i,Ck,o))),o.Ec(e),Me(e,(Ie(),lJ),n),t.d==n?(ss(t,null),n.e.c.length+n.g.c.length==0&&Do(n,null),T$t(n)):(Os(t,null),n.e.c.length+n.g.c.length==0&&Do(n,null)),xu(t.a)}function Utn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn,ti,tr;for(n.Tg("MinWidth layering",1),L=t.b,Xe=t.a,tr=c($(t,(Ge(),ije)),15).a,d=c($(t,rje),15).a,e.b=de(be($(t,Mf))),e.d=sr,me=new U(Xe);me.a<me.c.c.length;)re=c(G(me),9),re.k==(Jt(),ur)&&(Lt=re.o.b,e.d=p.Math.min(e.d,Lt));for(e.d=p.Math.max(1,e.d),mt=Xe.c.length,e.c=ke(Hn,li,30,mt,15,1),e.f=ke(Hn,li,30,mt,15,1),e.e=ke(is,io,30,mt,15,1),v=0,e.a=0,je=new U(Xe);je.a<je.c.c.length;)re=c(G(je),9),re.p=v++,e.c[re.p]=vKe(vr(re)),e.f[re.p]=vKe(Fi(re)),e.e[re.p]=re.o.b/e.d,e.a+=e.e[re.p];for(e.b/=e.d,e.a/=mt,Oe=$Ut(Xe),Rr(Xe,Wpe(new K_e(e))),z=sr,I=gi,a=null,ti=tr,fn=tr,o=d,r=d,tr<0&&(ti=c(n9e.a.Gd(),15).a,fn=c(n9e.b.Gd(),15).a),d<0&&(o=c(t9e.a.Gd(),15).a,r=c(t9e.b.Gd(),15).a),Rt=ti;Rt<=fn;Rt++)for(i=o;i<=r;i++)wt=jYt(e,Rt,i,Xe,Oe),W=de(be(wt.a)),A=c(wt.b,16),Q=A.gc(),(W<z||W==z&&Q<I)&&(z=W,I=Q,a=A);for(T=a.Jc();T.Ob();){for(x=c(T.Pb(),16),b=new dc(t),le=x.Jc();le.Ob();)re=c(le.Pb(),9),zr(re,b);It(L.c,b)}U7(L),Xe.c.length=0,n.Ug()}function Jtn(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe;for(t.Tg(Wct,1),z=new He,Oe=new He,v=new U(e.b);v.a<v.c.c.length;)for(b=c(G(v),26),W=-1,I=cD(b.a),T=I,A=0,L=T.length;A<L;++A)if(x=T[A],++W,!!(x.k==(Jt(),ur)&&wx(c($(x,(Ge(),ar)),103)))){for(!S4(c($(x,(Ge(),ar)),103))&&xe($(Vr(x),Kd))===xe((P1(),np))&&rXt(x),Me(x,(Ie(),_w),x),z.c.length=0,Oe.c.length=0,n=new He,me=new _i,Lte(me,$g(x,(Ue(),Kt))),xe($(Vr(x),Kd))!==xe((P1(),np))&&(me=ket(me)),dot(e,me,z,Oe,n),d=W,Xe=x,o=new U(z);o.a<o.c.c.length;)i=c(G(o),9),R0(i,d,b),++W,Me(i,_w,x),a=c(Je(i.j,0),12),Q=c($(a,Si),12),Ze(Ye($(Q,kle)))||c($(i,Nk),16).Ec(Xe);for(xu(me),le=$g(x,mn).Jc();le.Ob();)re=c(le.Pb(),12),rr(me,re,me.a,me.a.a);for(xe($(Vr(x),Kd))!==xe(np)&&(me=ket(me)),dot(e,me,Oe,null,n),je=x,r=new U(Oe);r.a<r.c.c.length;)i=c(G(r),9),R0(i,++W,b),Me(i,_w,x),a=c(Je(i.j,0),12),Q=c($(a,Si),12),Ze(Ye($(Q,kle)))||c($(je,Nk),16).Ec(i);n.c.length==0||Me(x,Q6e,n)}t.Ug()}function Vtn(e,t,n,i,r,o,a){var d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn,ti,tr;for(L=0,Lt=0,b=new U(e);b.a<b.c.c.length;)d=c(G(b),19),zst(d),L=p.Math.max(L,d.g),Lt+=d.g*d.f;for(I=Lt/e.c.length,wt=Nqt(e,I),Lt+=e.c.length*wt,Lt+=p.Math.sqrt(Lt)*(n.a+n.d),Lt+=p.Math.sqrt(Lt)*n.c,L=p.Math.max(L,p.Math.sqrt(Lt*a))+n.b,ti=n.b,tr=n.d,A=0,x=n.b+n.c,mt=new _i,ei(mt,$e(0)),Oe=new _i,v=new os(e,0);v.b<v.d.gc();)d=(gn(v.b<v.d.gc()),c(v.d.Xb(v.c=v.b++),19)),fn=d.g,T=d.f,ti+fn>L&&(o&&(Cs(Oe,A),Cs(mt,$e(v.b-1))),ti=n.b,tr+=A+t,A=0,x=p.Math.max(x,n.b+n.c+fn)),Nc(d,ti),_l(d,tr),x=p.Math.max(x,ti+fn+n.c),A=p.Math.max(A,T),ti+=fn+t;if(x=p.Math.max(x,i),Rt=tr+A+n.a,Rt<r&&(A+=r-Rt,Rt=r),o)for(ti=n.b,v=new os(e,0),Cs(mt,$e(e.c.length)),Xe=Pn(mt,0),W=c(Dn(Xe),15).a,Cs(Oe,A),je=Pn(Oe,0),me=0;v.b<v.d.gc();)v.b==W&&(ti=n.b,me=de(be(Dn(je))),W=c(Dn(Xe),15).a),d=(gn(v.b<v.d.gc()),c(v.d.Xb(v.c=v.b++),19)),re=d.f,ib(d,me),z=me,v.b==W&&(Q=x-ti-n.c,le=d.g,rb(d,Q),Pve(d,new ze(Q,z),new ze(le,re))),ti+=d.g+t;return new ze(x,Rt)}function Xtn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn;if(n.Tg("Spline edge routing",1),t.b.c.length==0){t.f.a=0,n.Ug();return}re=de(be($(t,(Ge(),Yv)))),d=de(be($(t,tp))),a=de(be($(t,Wv))),W=c($(t,Ale),350),mt=W==(SS(),kC),Xe=de(be($(t,XSe))),e.d=t,e.j.c.length=0,e.a.c.length=0,cc(e.k),b=c(Je(t.b,0),26),x=PF(b.a,(GQ(),LP)),I=c(Je(t.b,t.b.c.length-1),26),T=PF(I.a,LP),z=new U(t.b),Q=null,fn=0;do{for(le=z.a<z.c.c.length?c(G(z),26):null,Ctn(e,Q,le),WKt(e),wt=q9t(jRt(Nq(mi(new Tt(null,new Et(e.i,16)),new a1),new dg))),Rt=0,me=fn,A=!Q||x&&Q==b,L=!le||T&&le==I,wt>0?(v=0,Q&&(v+=d),v+=(wt-1)*a,le&&(v+=d),mt&&le&&(v=p.Math.max(v,uXt(le,a,re,Xe))),v<re&&!A&&!L&&(Rt=(re-v)/2,v=re),me+=v):!A&&!L&&(me+=re),le&&hxe(le,me),Oe=new U(e.i);Oe.a<Oe.c.c.length;)je=c(G(Oe),134),je.a.c=fn,je.a.b=me-fn,je.F=Rt,je.p=!Q;Or(e.a,e.i),fn=me,le&&(fn+=le.c.a),Q=le,A=L}while(le);for(r=new U(e.j);r.a<r.c.c.length;)i=c(G(r),17),o=hRt(e,i),Me(i,(Ie(),v3),o),Lt=OXt(e,i),Me(i,Ab,Lt);t.f.a=fn,e.d=null,n.Ug()}function Wtn(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt;for(e.b=t,e.a=c($(t,(Ge(),KSe)),15).a,e.c=c($(t,ZSe),15).a,e.c==0&&(e.c=gi),Q=new os(t.b,0);Q.b<Q.d.gc();){for(z=(gn(Q.b<Q.d.gc()),c(Q.d.Xb(Q.c=Q.b++),26)),d=new He,x=-1,me=-1,le=new U(z.a);le.a<le.c.c.length;)re=c(G(le),9),Jf((J_(),new Ht(Xt(td(re).a.Jc(),new F))))>=e.a&&(i=EYt(e,re),x=p.Math.max(x,i.b),me=p.Math.max(me,i.d),Qe(d,new Is(re,i)));for(mt=new He,v=0;v<x;++v)Qp(mt,0,(gn(Q.b>0),Q.a.Xb(Q.c=--Q.b),wt=new dc(e.b),H2(Q,wt),gn(Q.b<Q.d.gc()),Q.d.Xb(Q.c=Q.b++),wt));for(a=new U(d);a.a<a.c.c.length;)if(r=c(G(a),49),L=c(r.b,573).a,!!L)for(A=new U(L);A.a<A.c.c.length;)T=c(G(A),9),I2e(e,T,AU,mt);for(n=new He,b=0;b<me;++b)Qe(n,(Lt=new dc(e.b),H2(Q,Lt),Lt));for(o=new U(d);o.a<o.c.c.length;)if(r=c(G(o),49),Xe=c(r.b,573).c,!!Xe)for(Oe=new U(Xe);Oe.a<Oe.c.c.length;)je=c(G(Oe),9),I2e(e,je,NU,n)}for(W=new os(t.b,0);W.b<W.d.gc();)I=(gn(W.b<W.d.gc()),c(W.d.Xb(W.c=W.b++),26)),I.a.c.length==0&&nu(W)}function fot(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me;if(z=e.i!=0,le=!1,W=null,bu(e.e)){if(x=t.gc(),x>0){for(A=x<100?null:new p0(x),v=new Wme(t),I=v.g,W=ke(Hn,li,30,x,15,1),i=0,me=new Xm(x),r=0;r<e.i;++r){d=e.g[r],L=d;e:for(re=0;re<2;++re){for(b=x;--b>=0;)if(L!=null?xi(L,I[b]):xe(L)===xe(I[b])){W.length<=i&&(Q=W,W=ke(Hn,li,30,2*W.length,15,1),wc(Q,0,W,0,i)),W[i++]=r,Ln(me,I[b]);break e}if(L=L,xe(L)===xe(d))break}}if(v=me,I=me.g,x=i,i>W.length&&(Q=W,W=ke(Hn,li,30,i,15,1),wc(Q,0,W,0,i)),i>0){for(le=!0,o=0;o<i;++o)L=I[o],A=jFe(e,c(L,76),A);for(a=i;--a>=0;)Y4(e,W[a]);if(i!=x){for(r=x;--r>=i;)Y4(v,r);Q=W,W=ke(Hn,li,30,i,15,1),wc(Q,0,W,0,i)}t=v}}}else for(t=xqt(e,t),r=e.i;--r>=0;)t.Gc(e.g[r])&&(Y4(e,r),le=!0);if(le){if(W!=null){for(n=t.gc(),T=n==1?u7(e,4,t.Jc().Pb(),null,W[0],z):u7(e,6,t,W,W[0],z),A=n<100?null:new p0(n),r=t.Jc();r.Ob();)L=r.Pb(),A=q0e(e,c(L,76),A);A?(A.lj(T),A.mj()):yi(e.e,T)}else{for(A=sEt(t.gc()),r=t.Jc();r.Ob();)L=r.Pb(),A=q0e(e,c(L,76),A);A&&A.mj()}return!0}else return!1}function Ktn(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le;for(n=new iZe(t),n.a||xKt(t),v=vWt(t),b=new Jm,Q=new xit,z=new U(t.a);z.a<z.c.c.length;)for(I=c(G(z),9),r=new Ht(Xt(Fi(I).a.Jc(),new F));hn(r);)i=c(rn(r),17),(i.c.i.k==(Jt(),Ar)||i.d.i.k==Ar)&&(x=Fen(e,i,v,Q),jt(b,Mne(x.d),x.a));for(a=new He,le=c($(n.c,(Ie(),Q1)),24).Jc();le.Ob();){switch(re=c(le.Pb(),64),L=Q.c[re.g],A=Q.b[re.g],d=Q.a[re.g],o=null,W=null,re.g){case 4:o=new pf(e.d.a,L,v.b.a-e.d.a,A-L),W=new pf(e.d.a,L,d,A-L),$m(v,new ze(o.c+o.b,o.d)),$m(v,new ze(o.c+o.b,o.d+o.a));break;case 2:o=new pf(v.a.a,L,e.c.a-v.a.a,A-L),W=new pf(e.c.a-d,L,d,A-L),$m(v,new ze(o.c,o.d)),$m(v,new ze(o.c,o.d+o.a));break;case 1:o=new pf(L,e.d.b,A-L,v.b.b-e.d.b),W=new pf(L,e.d.b,A-L,d),$m(v,new ze(o.c,o.d+o.a)),$m(v,new ze(o.c+o.b,o.d+o.a));break;case 3:o=new pf(L,v.a.b,A-L,e.c.b-v.a.b),W=new pf(L,e.c.b-d,A-L,d),$m(v,new ze(o.c,o.d)),$m(v,new ze(o.c+o.b,o.d))}o&&(T=new cPe,T.d=re,T.b=o,T.c=W,T.a=Dee(c(Ei(b,Mne(re)),24)),It(a.c,T))}return Or(n.b,a),n.d=V$t(KZt(v)),n}function hot(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z;if(n.p[t.p]==null){d=!0,n.p[t.p]=0,a=t,z=n.o==(ph(),Rb)?Gr:sr;do r=e.b.e[a.p],o=a.c.a.c.length,n.o==Rb&&r>0||n.o==Dh&&r<o-1?(b=null,v=null,n.o==Dh?b=c(Je(a.c.a,r+1),9):b=c(Je(a.c.a,r-1),9),v=n.g[b.p],hot(e,v,n),z=e.e.vg(z,t,a),n.j[t.p]==t&&(n.j[t.p]=n.j[v.p]),n.j[t.p]==n.j[v.p]?(I=yx(e.d,a,b),n.o==Dh?(i=de(n.p[t.p]),T=de(n.p[v.p])+de(n.d[b.p])-b.d.d-I-a.d.a-a.o.b-de(n.d[a.p]),d?(d=!1,n.p[t.p]=p.Math.min(T,z)):n.p[t.p]=p.Math.min(i,p.Math.min(T,z))):(i=de(n.p[t.p]),T=de(n.p[v.p])+de(n.d[b.p])+b.o.b+b.d.a+I+a.d.d-de(n.d[a.p]),d?(d=!1,n.p[t.p]=p.Math.max(T,z)):n.p[t.p]=p.Math.max(i,p.Math.max(T,z)))):(I=de(be($(e.a,(Ge(),Ib)))),L=GXe(e,n.j[t.p]),x=GXe(e,n.j[v.p]),n.o==Dh?(A=de(n.p[t.p])+de(n.d[a.p])+a.o.b+a.d.a+I-(de(n.p[v.p])+de(n.d[b.p])-b.d.d),dGe(L,x,A)):(A=de(n.p[t.p])+de(n.d[a.p])-a.d.d-de(n.p[v.p])-de(n.d[b.p])-b.o.b-b.d.a-I,dGe(L,x,A)))):z=e.e.vg(z,t,a),a=n.a[a.p];while(a!=t);d9t(e.e,t)}}function Ytn(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt;if(n=de(be($(e.a.j,(Ge(),HSe)))),n<-1||!e.a.i||S4(c($(e.a.o,ar),103))||Io(e.a.o,(Ue(),nn)).gc()<2&&Io(e.a.o,Yt).gc()<2)return!0;if(e.a.c.ig())return!1;for(je=0,me=0,le=new He,b=e.a.e,v=0,x=b.length;v<x;++v){for(d=b[v],A=d,L=0,z=A.length;L<z;++L){if(T=A[L],T.k==(Jt(),Ic)){It(le.c,T);continue}for(i=e.b[T.c.p][T.p],T.k==Ar?(i.b=1,c($(T,(Ie(),Si)),12).j==(Ue(),nn)&&(me+=i.a)):(wt=Io(T,(Ue(),Yt)),wt.dc()||!TZ(wt,new E5)?i.c=1:(r=Io(T,nn),(r.dc()||!TZ(r,new T5))&&(je+=i.a))),a=new Ht(Xt(Fi(T).a.Jc(),new F));hn(a);)o=c(rn(a),17),je+=i.c,me+=i.b,mt=o.d.i,cme(e,i,mt);for(W=wa(Y(K(Ea,1),Pt,22,0,[Io(T,(Ue(),Kt)),Io(T,mn)])),Xe=new Ht(new e0e(W.a.length,W.a));hn(Xe);)Oe=c(rn(Xe),12),re=c($(Oe,(Ie(),Jl)),9),re&&(je+=i.c,me+=i.b,cme(e,i,re))}for(I=new U(le);I.a<I.c.c.length;)for(T=c(G(I),9),i=e.b[T.c.p][T.p],a=new Ht(Xt(Fi(T).a.Jc(),new F));hn(a);)o=c(rn(a),17),je+=i.c,me+=i.b,mt=o.d.i,cme(e,i,mt);le.c.length=0}return t=je+me,Q=t==0?sr:(je-me)/t,Q>=n}function Ztn(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt;for(le=e.a,me=0,je=le.length;me<je;++me){for(re=le[me],v=gi,x=gi,I=new U(re.e);I.a<I.c.c.length;)A=c(G(I),9),a=A.c?Lo(A.c.a,A,0):-1,a>0?(T=c(Je(A.c.a,a-1),9),mt=yx(e.b,A,T),Q=A.n.b-A.d.d-(T.n.b+T.o.b+T.d.a+mt)):Q=A.n.b-A.d.d,v=p.Math.min(Q,v),a<A.c.a.c.length-1?(T=c(Je(A.c.a,a+1),9),mt=yx(e.b,A,T),W=T.n.b-T.d.d-(A.n.b+A.o.b+A.d.a+mt)):W=2*A.n.b,x=p.Math.min(W,x);for(b=gi,o=!1,r=c(Je(re.e,0),9),Lt=new U(r.j);Lt.a<Lt.c.c.length;)for(wt=c(G(Lt),12),z=r.n.b+wt.n.b+wt.a.b,i=new U(wt.e);i.a<i.c.c.length;)n=c(G(i),17),Oe=n.c,t=Oe.i.n.b+Oe.n.b+Oe.a.b-z,p.Math.abs(t)<p.Math.abs(b)&&p.Math.abs(t)<(t<0?v:x)&&(b=t,o=!0);for(d=c(Je(re.e,re.e.c.length-1),9),Xe=new U(d.j);Xe.a<Xe.c.c.length;)for(Oe=c(G(Xe),12),z=d.n.b+Oe.n.b+Oe.a.b,i=new U(Oe.g);i.a<i.c.c.length;)n=c(G(i),17),wt=n.d,t=wt.i.n.b+wt.n.b+wt.a.b-z,p.Math.abs(t)<p.Math.abs(b)&&p.Math.abs(t)<(t<0?v:x)&&(b=t,o=!0);if(o&&b!=0)for(L=new U(re.e);L.a<L.c.c.length;)A=c(G(L),9),A.n.b+=b}}function enn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn;for(le=t,re=new Jm,me=new Jm,x=Vm(le,Ooe),i=new YHe(e,n,re,me),ett(i.a,i.b,i.c,i.d,x),b=(Xe=re.i,Xe||(re.i=new Ox(re,re.c))),wt=b.Jc();wt.Ob();)for(mt=c(wt.Pb(),171),r=c(Ei(re,mt),24),z=r.Jc();z.Ob();)if(I=z.Pb(),je=c(Nx(e.f,I),171),je)d=(!mt.e&&(mt.e=new Ct(Gi,mt,10,9)),mt.e),Ln(d,je);else throw a=j1(le,hd),A=Iut+I+Rut+a,L=A+Mj,V(new Jh(L));for(v=(Oe=me.i,Oe||(me.i=new Ox(me,me.c))),Rt=v.Jc();Rt.Ob();)for(Lt=c(Rt.Pb(),171),o=c(Ei(me,Lt),24),W=o.Jc();W.Ob();)if(Q=W.Pb(),je=c(Nx(e.f,Q),171),je)T=(!Lt.g&&(Lt.g=new Ct(Gi,Lt,9,10)),Lt.g),Ln(T,je);else throw a=j1(le,hd),A=Iut+Q+Rut+a,L=A+Mj,V(new Jh(L));!n.b&&(n.b=new Ct(xn,n,4,7)),n.b.i!=0&&(!n.c&&(n.c=new Ct(xn,n,5,8)),n.c.i!=0)&&(!n.b&&(n.b=new Ct(xn,n,4,7)),n.b.i<=1&&(!n.c&&(n.c=new Ct(xn,n,5,8)),n.c.i<=1))&&(!n.a&&(n.a=new _e(Gi,n,6,6)),n.a).i==1&&(fn=c(ce((!n.a&&(n.a=new _e(Gi,n,6,6)),n.a),0),171),!Lne(fn)&&!Pne(fn)&&(CH(fn,c(ce((!n.b&&(n.b=new Ct(xn,n,4,7)),n.b),0),83)),MH(fn,c(ce((!n.c&&(n.c=new Ct(xn,n,5,8)),n.c),0),83))))}function tnn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W;if(i=new He,r=gi,o=gi,a=gi,n)for(r=e.f.a,z=new U(t.j);z.a<z.c.c.length;)for(I=c(G(z),12),b=new U(I.g);b.a<b.c.c.length;)d=c(G(b),17),d.a.b!=0&&(x=c(q6(d.a),8),x.a<r&&(o=r-x.a,a=gi,i.c.length=0,r=x.a),x.a<=r&&(It(i.c,d),d.a.b>1&&(a=p.Math.min(a,p.Math.abs(c(bc(d.a,1),8).b-x.b)))));else for(z=new U(t.j);z.a<z.c.c.length;)for(I=c(G(z),12),b=new U(I.e);b.a<b.c.c.length;)d=c(G(b),17),d.a.b!=0&&(A=c(df(d.a),8),A.a>r&&(o=A.a-r,a=gi,i.c.length=0,r=A.a),A.a>=r&&(It(i.c,d),d.a.b>1&&(a=p.Math.min(a,p.Math.abs(c(bc(d.a,d.a.b-2),8).b-A.b)))));if(i.c.length!=0&&o>t.o.a/2&&a>t.o.b/2){for(L=new mc,Do(L,t),$r(L,(Ue(),Kt)),L.n.a=t.o.a/2,W=new mc,Do(W,t),$r(W,mn),W.n.a=t.o.a/2,W.n.b=t.o.b,b=new U(i);b.a<b.c.c.length;)d=c(G(b),17),n?(v=c(XZ(d.a),8),Q=d.a.b==0?mh(d.d):c(q6(d.a),8),Q.b>=v.b?Os(d,W):Os(d,L)):(v=c(NMt(d.a),8),Q=d.a.b==0?mh(d.c):c(df(d.a),8),Q.b>=v.b?ss(d,W):ss(d,L)),T=c($(d,(Ge(),go)),79),T&&hv(T,v,!0);t.n.a=r-t.o.a/2}}function nnn(e,t,n){var i,r,o,a,d,b,v,x,T,A;for(d=Pn(e.b,0);d.b!=d.d.c;)if(a=c(Dn(d),41),!St(a.c,zG))for(v=jJt(a,e),t==(_r(),po)||t==vo?Rr(v,new w$):Rr(v,new iK),b=v.c.length,i=0;i<b;i++)x=(ht(i,v.c.length),c(v.c[i],65)).c,St(x.c,"n11"),!(Ze(Ye($(a,(Ii(),w9e))))&&!FWe((ht(i,v.c.length),c(v.c[i],65)),e))&&(r=b==1?.5:(i+1)/(b+1),t==po?(o=de(be($(a,rh))),A=a.e.b+a.f.b*r,px((ht(i,v.c.length),c(v.c[i],65)).a,new ze(p.Math.min(o,a.e.a-n),A)),px((ht(i,v.c.length),c(v.c[i],65)).a,new ze(a.e.a,A))):t==vo?(o=de(be($(a,Af)))+n,A=a.e.b+a.f.b*r,px((ht(i,v.c.length),c(v.c[i],65)).a,new ze(o,A)),px((ht(i,v.c.length),c(v.c[i],65)).a,new ze(a.e.a+a.f.a,A))):t==Ma?(o=de(be($(a,rh))),T=a.e.a+a.f.a*r,px((ht(i,v.c.length),c(v.c[i],65)).a,new ze(T,p.Math.min(a.e.b-n,o))),px((ht(i,v.c.length),c(v.c[i],65)).a,new ze(T,a.e.b))):(o=de(be($(a,Af)))+n,T=a.e.a+a.f.a*r,px((ht(i,v.c.length),c(v.c[i],65)).a,new ze(T,o)),px((ht(i,v.c.length),c(v.c[i],65)).a,new ze(T,a.e.b+a.f.b))))}function yL(e,t,n,i,r,o,a,d,b){var v,x,T,A,L,I,z;switch(L=n,x=new Oh(b),pu(x,(Jt(),Ar)),Me(x,(Ie(),V6e),a),Me(x,(Ge(),ar),(es(),kc)),z=de(be(e.mf(Jv))),Me(x,Jv,z),T=new mc,Do(T,x),t!=Bh&&t!=up||(i>=0?L=J4(d):L=QD(J4(d)),e.of(Wj,L)),v=new fs,A=!1,e.nf(Rw)?(h0e(v,c(e.mf(Rw),8)),A=!0):VTt(v,a.a/2,a.b/2),L.g){case 4:Me(x,$o,(Su(),G1)),Me(x,aJ,(lb(),d3)),x.o.b=a.b,z<0&&(x.o.a=-z),$r(T,(Ue(),nn)),A||(v.a=a.a),v.a-=a.a;break;case 2:Me(x,$o,(Su(),Nb)),Me(x,aJ,(lb(),Hj)),x.o.b=a.b,z<0&&(x.o.a=-z),$r(T,(Ue(),Yt)),A||(v.a=0);break;case 1:Me(x,Mb,(M1(),p3)),x.o.a=a.a,z<0&&(x.o.b=-z),$r(T,(Ue(),mn)),A||(v.b=a.b),v.b-=a.b;break;case 3:Me(x,Mb,(M1(),Ek)),x.o.a=a.a,z<0&&(x.o.b=-z),$r(T,(Ue(),Kt)),A||(v.b=0)}if(h0e(T.n,v),Me(x,Rw,v),t==Fb||t==e1||t==kc){if(I=0,t==Fb&&e.nf(Vg))switch(L.g){case 1:case 2:I=c(e.mf(Vg),15).a;break;case 3:case 4:I=-c(e.mf(Vg),15).a}else switch(L.g){case 4:case 2:I=o.b,t==e1&&(I/=r.b);break;case 1:case 3:I=o.a,t==e1&&(I/=r.a)}Me(x,Dw,I)}return Me(x,Yo,L),x}function inn(){P1e();function e(i){var r=this;this.dispatch=function(o){var a=o.data;switch(a.cmd){case"algorithms":var d=c2e((Mt(),new k6(new m1(hp.b))));i.postMessage({id:a.id,data:d});break;case"categories":var b=c2e((Mt(),new k6(new m1(hp.c))));i.postMessage({id:a.id,data:b});break;case"options":var v=c2e((Mt(),new k6(new m1(hp.d))));i.postMessage({id:a.id,data:v});break;case"register":ien(a.algorithms),i.postMessage({id:a.id});break;case"layout":kZt(a.graph,a.layoutOptions||{},a.options||{}),i.postMessage({id:a.id,data:a.graph});break}},this.saveDispatch=function(o){try{r.dispatch(o)}catch(a){i.postMessage({id:o.data.id,error:a})}}}function t(i){var r=this;this.dispatcher=new e({postMessage:function(o){r.onmessage({data:o})}}),this.postMessage=function(o){setTimeout(function(){r.dispatcher.saveDispatch({data:o})},0)}}if(typeof document===Bre&&typeof self!==Bre){var n=new e(self);self.onmessage=n.saveDispatch}else typeof h!==Bre&&h.exports&&(Object.defineProperty(g,"__esModule",{value:!0}),h.exports={default:t,Worker:t})}function tre(e,t,n,i,r,o,a){var d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn,ti,tr;for(z=0,Lt=0,v=new U(e.b);v.a<v.c.c.length;)b=c(G(v),168),b.c&&zst(b.c),z=p.Math.max(z,Al(b)),Lt+=Al(b)*yu(b);for(Q=Lt/e.b.c.length,wt=fHt(e.b,Q),Lt+=e.b.c.length*wt,z=p.Math.max(z,p.Math.sqrt(Lt*a))+n.b,ti=n.b,tr=n.d,L=0,T=n.b+n.c,mt=new _i,ei(mt,$e(0)),Oe=new _i,x=new os(e.b,0),I=null,d=new He;x.b<x.d.gc();)b=(gn(x.b<x.d.gc()),c(x.d.Xb(x.c=x.b++),168)),fn=Al(b),A=yu(b),ti+fn>z&&(o&&(Cs(Oe,L),Cs(mt,$e(x.b-1)),Qe(e.d,I),d.c.length=0),ti=n.b,tr+=L+t,L=0,T=p.Math.max(T,n.b+n.c+fn)),It(d.c,b),KYe(b,ti,tr),T=p.Math.max(T,ti+fn+n.c),L=p.Math.max(L,A),ti+=fn+t,I=b;if(Or(e.a,d),Qe(e.d,c(Je(d,d.c.length-1),168)),T=p.Math.max(T,i),Rt=tr+L+n.a,Rt<r&&(L+=r-Rt,Rt=r),o)for(ti=n.b,x=new os(e.b,0),Cs(mt,$e(e.b.c.length)),Xe=Pn(mt,0),re=c(Dn(Xe),15).a,Cs(Oe,L),je=Pn(Oe,0),me=0;x.b<x.d.gc();)x.b==re&&(ti=n.b,me=de(be(Dn(je))),re=c(Dn(Xe),15).a),b=(gn(x.b<x.d.gc()),c(x.d.Xb(x.c=x.b++),168)),NYe(b,me),x.b==re&&(W=T-ti-n.c,le=Al(b),_Ye(b,W),KKe(b,(W-le)/2,0)),ti+=Al(b)+t;return new ze(T,Rt)}function rnn(e){e.N||(e.N=!0,e.b=Uo(e,0),lr(e.b,0),lr(e.b,1),lr(e.b,2),e.bb=Uo(e,1),lr(e.bb,0),lr(e.bb,1),e.fb=Uo(e,2),lr(e.fb,3),lr(e.fb,4),qi(e.fb,5),e.qb=Uo(e,3),lr(e.qb,0),qi(e.qb,1),qi(e.qb,2),lr(e.qb,3),lr(e.qb,4),qi(e.qb,5),lr(e.qb,6),e.a=hi(e,4),e.c=hi(e,5),e.d=hi(e,6),e.e=hi(e,7),e.f=hi(e,8),e.g=hi(e,9),e.i=hi(e,10),e.j=hi(e,11),e.k=hi(e,12),e.n=hi(e,13),e.o=hi(e,14),e.p=hi(e,15),e.q=hi(e,16),e.s=hi(e,17),e.r=hi(e,18),e.t=hi(e,19),e.u=hi(e,20),e.v=hi(e,21),e.w=hi(e,22),e.B=hi(e,23),e.A=hi(e,24),e.C=hi(e,25),e.D=hi(e,26),e.F=hi(e,27),e.G=hi(e,28),e.H=hi(e,29),e.J=hi(e,30),e.I=hi(e,31),e.K=hi(e,32),e.M=hi(e,33),e.L=hi(e,34),e.P=hi(e,35),e.Q=hi(e,36),e.R=hi(e,37),e.S=hi(e,38),e.T=hi(e,39),e.U=hi(e,40),e.V=hi(e,41),e.X=hi(e,42),e.W=hi(e,43),e.Y=hi(e,44),e.Z=hi(e,45),e.$=hi(e,46),e._=hi(e,47),e.ab=hi(e,48),e.cb=hi(e,49),e.db=hi(e,50),e.eb=hi(e,51),e.gb=hi(e,52),e.hb=hi(e,53),e.ib=hi(e,54),e.jb=hi(e,55),e.kb=hi(e,56),e.lb=hi(e,57),e.mb=hi(e,58),e.nb=hi(e,59),e.ob=hi(e,60),e.pb=hi(e,61))}function snn(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me;if(re=0,t.f.a==0)for(Q=new U(e);Q.a<Q.c.c.length;)I=c(G(Q),9),re=p.Math.max(re,I.n.a+I.o.a+I.d.c);else re=t.f.a-t.c.a;for(re-=t.c.a,z=new U(e);z.a<z.c.c.length;){switch(I=c(G(z),9),uT(I.n,re-I.o.a),spe(I.f),EZe(I),(I.q?I.q:(Mt(),Mt(),Vd))._b((Ge(),Xv))&&uT(c($(I,Xv),8),re-I.o.a),c($(I,pd),259).g){case 1:Me(I,pd,(Bd(),UP));break;case 2:Me(I,pd,(Bd(),GP))}for(W=I.o,me=new U(I.j);me.a<me.c.c.length;){for(le=c(G(me),12),uT(le.n,W.a-le.o.a),uT(le.a,le.o.a),$r(le,tWe(le.j)),a=c($(le,Vg),15),a&&Me(le,Vg,$e(-a.a)),o=new U(le.g);o.a<o.c.c.length;){for(r=c(G(o),17),i=Pn(r.a,0);i.b!=i.d.c;)n=c(Dn(i),8),n.a=re-n.a;if(v=c($(r,go),79),v)for(b=Pn(v,0);b.b!=b.d.c;)d=c(Dn(b),8),d.a=re-d.a;for(A=new U(r.b);A.a<A.c.c.length;)x=c(G(A),70),uT(x.n,re-x.o.a)}for(L=new U(le.f);L.a<L.c.c.length;)x=c(G(L),70),uT(x.n,le.o.a-x.o.a)}for(I.k==(Jt(),Ar)&&(Me(I,(Ie(),Yo),tWe(c($(I,Yo),64))),tGt(I)),T=new U(I.b);T.a<T.c.c.length;)x=c(G(T),70),EZe(x),uT(x.n,W.a-x.o.a)}}function onn(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me;if(re=0,t.f.b==0)for(Q=new U(e);Q.a<Q.c.c.length;)I=c(G(Q),9),re=p.Math.max(re,I.n.b+I.o.b+I.d.a);else re=t.f.b-t.c.b;for(re-=t.c.b,z=new U(e);z.a<z.c.c.length;){switch(I=c(G(z),9),lT(I.n,re-I.o.b),rpe(I.f),CZe(I),(I.q?I.q:(Mt(),Mt(),Vd))._b((Ge(),Xv))&&lT(c($(I,Xv),8),re-I.o.b),c($(I,pd),259).g){case 3:Me(I,pd,(Bd(),cV));break;case 4:Me(I,pd,(Bd(),uV))}for(W=I.o,me=new U(I.j);me.a<me.c.c.length;){for(le=c(G(me),12),lT(le.n,W.b-le.o.b),lT(le.a,le.o.b),$r(le,nWe(le.j)),a=c($(le,Vg),15),a&&Me(le,Vg,$e(-a.a)),o=new U(le.g);o.a<o.c.c.length;){for(r=c(G(o),17),i=Pn(r.a,0);i.b!=i.d.c;)n=c(Dn(i),8),n.b=re-n.b;if(v=c($(r,go),79),v)for(b=Pn(v,0);b.b!=b.d.c;)d=c(Dn(b),8),d.b=re-d.b;for(A=new U(r.b);A.a<A.c.c.length;)x=c(G(A),70),lT(x.n,re-x.o.b)}for(L=new U(le.f);L.a<L.c.c.length;)x=c(G(L),70),lT(x.n,le.o.b-x.o.b)}for(I.k==(Jt(),Ar)&&(Me(I,(Ie(),Yo),nWe(c($(I,Yo),64))),EBt(I)),T=new U(I.b);T.a<T.c.c.length;)x=c(G(T),70),CZe(x),lT(x.n,W.b-x.o.b)}}function cnn(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn,ti;for(re=new os(e.b,0),x=t.Jc(),I=0,v=c(x.Pb(),15).a,je=0,n=new Tr,Xe=new Ad;re.b<re.d.gc();){for(W=(gn(re.b<re.d.gc()),c(re.d.Xb(re.c=re.b++),26)),me=new U(W.a);me.a<me.c.c.length;){for(le=c(G(me),9),L=new Ht(Xt(Fi(le).a.Jc(),new F));hn(L);)T=c(rn(L),17),Xe.a.yc(T,Xe);for(A=new Ht(Xt(vr(le).a.Jc(),new F));hn(A);)T=c(rn(A),17),Xe.a.Ac(T)!=null}if(I+1==v){for(r=new dc(e),H2(re,r),o=new dc(e),H2(re,o),wt=Xe.a.ec().Jc();wt.Ob();)mt=c(wt.Pb(),17),n.a._b(mt)||(++je,n.a.yc(mt,n)),a=new Oh(e),Me(a,(Ge(),ar),(es(),p9)),zr(a,r),pu(a,(Jt(),_h)),z=new mc,Do(z,a),$r(z,(Ue(),Yt)),Lt=new mc,Do(Lt,a),$r(Lt,nn),i=new Oh(e),Me(i,ar,p9),zr(i,o),pu(i,_h),Q=new mc,Do(Q,i),$r(Q,Yt),Rt=new mc,Do(Rt,i),$r(Rt,nn),Oe=new Gm,Os(Oe,mt.c),ss(Oe,z),Me(Oe,(Ie(),Ri),c($(mt,Ri),15)),ti=new Gm,Os(ti,Lt),ss(ti,Q),Me(ti,Ri,c($(mt,Ri),15)),Os(mt,Rt),d=new Lbe(a,i,Oe,ti,mt),Me(a,Nw,d),Me(i,Nw,d),fn=Oe.c.i,fn.k==_h&&(b=c($(fn,Nw),318),b.d=d,d.g=b);if(x.Ob())v=c(x.Pb(),15).a;else break}++I}return $e(je)}function lnn(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q;for(z=new He,A=new U(e.d.b);A.a<A.c.c.length;)for(T=c(G(A),26),I=new U(T.a);I.a<I.c.c.length;){for(L=c(G(I),9),r=c(Ut(e.f,L),60),b=new Ht(Xt(Fi(L).a.Jc(),new F));hn(b);)if(a=c(rn(b),17),i=Pn(a.a,0),v=!0,x=null,i.b!=i.d.c){for(t=c(Dn(i),8),n=null,a.c.j==(Ue(),Kt)&&(Q=new sE(t,new ze(t.a,r.d.d),r,a),Q.f.a=!0,Q.a=a.c,It(z.c,Q)),a.c.j==mn&&(Q=new sE(t,new ze(t.a,r.d.d+r.d.a),r,a),Q.f.d=!0,Q.a=a.c,It(z.c,Q));i.b!=i.d.c;)n=c(Dn(i),8),kme(t.b,n.b)||(x=new sE(t,n,null,a),It(z.c,x),v&&(v=!1,n.b<r.d.d?x.f.a=!0:n.b>r.d.d+r.d.a?x.f.d=!0:(x.f.d=!0,x.f.a=!0))),i.b!=i.d.c&&(t=n);x&&(o=c(Ut(e.f,a.d.i),60),t.b<o.d.d?x.f.a=!0:t.b>o.d.d+o.d.a?x.f.d=!0:(x.f.d=!0,x.f.a=!0))}for(d=new Ht(Xt(vr(L).a.Jc(),new F));hn(d);)a=c(rn(d),17),a.a.b!=0&&(t=c(df(a.a),8),a.d.j==(Ue(),Kt)&&(Q=new sE(t,new ze(t.a,r.d.d),r,a),Q.f.a=!0,Q.a=a.d,It(z.c,Q)),a.d.j==mn&&(Q=new sE(t,new ze(t.a,r.d.d+r.d.a),r,a),Q.f.d=!0,Q.a=a.d,It(z.c,Q)))}return z}function unn(e,t,n){var i,r,o,a,d,b,v,x,T,A;for(b=new He,T=t.length,a=dwe(n),v=0;v<T;++v){switch(x=n0e(t,pl(61),v),i=MBt(a,(hs(v,x,t.length),t.substr(v,x-v))),r=qte(i),o=r.hk().ti(),ws(t,++x)){case 39:{d=F6(t,39,++x),Qe(b,new _F(i,Mee((hs(x,d,t.length),t.substr(x,d-x)),o,r))),v=d+1;break}case 34:{d=F6(t,34,++x),Qe(b,new _F(i,Mee((hs(x,d,t.length),t.substr(x,d-x)),o,r))),v=d+1;break}case 91:{A=new He,Qe(b,new _F(i,A));e:for(;;){switch(ws(t,++x)){case 39:{d=F6(t,39,++x),Qe(A,Mee((hs(x,d,t.length),t.substr(x,d-x)),o,r)),x=d+1;break}case 34:{d=F6(t,34,++x),Qe(A,Mee((hs(x,d,t.length),t.substr(x,d-x)),o,r)),x=d+1;break}case 110:{if(++x,t.indexOf("ull",x)==x)A.c.push(null);else throw V(new Ao(Eut));x+=3;break}}if(x<T)switch(en(x,t.length),t.charCodeAt(x)){case 44:break;case 93:break e;default:throw V(new Ao("Expecting , or ]"))}else break}v=x+1;break}case 110:{if(++x,t.indexOf("ull",x)==x)Qe(b,new _F(i,null));else throw V(new Ao(Eut));v=x+3;break}}if(v<T){if(en(v,t.length),t.charCodeAt(v)!=44)throw V(new Ao("Expecting ,"))}else break}return GXt(e,b,n)}function ann(e){var t,n,i,r,o;switch(t=e.c,o=null,t){case 6:return e.Cm();case 13:return e.Dm();case 23:return e.um();case 22:return e.zm();case 18:return e.wm();case 8:wi(e),o=(vi(),EEe);break;case 9:return e.cm(!0);case 19:return e.dm();case 10:switch(e.a){case 100:case 68:case 119:case 87:case 115:case 83:return o=e.bm(e.a),wi(e),o;case 101:case 102:case 110:case 114:case 116:case 117:case 118:case 120:n=e.am(),n<Rs?o=(vi(),vi(),new Dd(0,n)):o=Fqe(Qwe(n));break;case 99:return e.mm();case 67:return e.hm();case 105:return e.pm();case 73:return e.im();case 103:return e.nm();case 88:return e.jm();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return e.em();case 80:case 112:if(o=Uve(e,e.a),!o)throw V(new Un(Xn((Fn(),Coe))));break;default:o=rqe(e.a)}wi(e);break;case 0:if(e.a==93||e.a==123||e.a==125)throw V(new Un(Xn((Fn(),K4e))));o=rqe(e.a),i=e.a,wi(e),(i&64512)==NL&&e.c==0&&(e.a&64512)==56320&&(r=ke(_a,cd,30,2,15,1),r[0]=i&Dr,r[1]=e.a&Dr,o=fee(Fqe(nd(r,0,r.length)),0),wi(e));break;default:throw V(new Un(Xn((Fn(),K4e))))}return o}function fnn(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt;for(wt=new _i,Oe=new _i,Q=-1,b=new U(e);b.a<b.c.c.length;){for(a=c(G(b),134),a.s=Q--,x=0,le=0,o=new U(a.t);o.a<o.c.c.length;)i=c(G(o),275),le+=i.c;for(r=new U(a.i);r.a<r.c.c.length;)i=c(G(r),275),x+=i.c;a.n=x,a.u=le,le==0?rr(Oe,a,Oe.c.b,Oe.c):x==0&&rr(wt,a,wt.c.b,wt.c)}for(Rt=Zq(e),T=e.c.length,z=T+1,W=T-1,L=new He;Rt.a.gc()!=0;){for(;Oe.b!=0;)je=(gn(Oe.b!=0),c(ma(Oe,Oe.a.a),134)),Rt.a.Ac(je)!=null,je.s=W--,dye(je,wt,Oe);for(;wt.b!=0;)Xe=(gn(wt.b!=0),c(ma(wt,wt.a.a),134)),Rt.a.Ac(Xe)!=null,Xe.s=z++,dye(Xe,wt,Oe);for(I=ls,v=Rt.a.ec().Jc();v.Ob();)a=c(v.Pb(),134),re=a.u-a.n,re>=I&&(re>I&&(L.c.length=0,I=re),It(L.c,a));L.c.length!=0&&(A=c(Je(L,pQ(t,L.c.length)),134),Rt.a.Ac(A)!=null,A.s=z++,dye(A,wt,Oe),L.c.length=0)}for(me=e.c.length+1,d=new U(e);d.a<d.c.c.length;)a=c(G(d),134),a.s<T&&(a.s+=me);for(mt=new U(e);mt.a<mt.c.c.length;)for(Xe=c(G(mt),134),n=new os(Xe.t,0);n.b<n.d.gc();)i=(gn(n.b<n.d.gc()),c(n.d.Xb(n.c=n.b++),275)),Lt=i.b,Xe.s>Lt.s&&(nu(n),dl(Lt.i,i),i.c>0&&(i.a=Lt,Qe(Lt.t,i),i.b=Xe,Qe(Xe.i,i)))}function dot(e,t,n,i,r){var o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt;for(z=new Gc(t.b),me=new Gc(t.b),A=new Gc(t.b),mt=new Gc(t.b),Q=new Gc(t.b),Xe=Pn(t,0);Xe.b!=Xe.d.c;)for(je=c(Dn(Xe),12),d=new U(je.g);d.a<d.c.c.length;)if(o=c(G(d),17),o.c.i==o.d.i){if(je.j==o.d.j){It(mt.c,o);continue}else if(je.j==(Ue(),Kt)&&o.d.j==mn){It(Q.c,o);continue}}for(b=new U(Q);b.a<b.c.c.length;)o=c(G(b),17),_Kt(e,o,n,i,(Ue(),nn));for(a=new U(mt);a.a<a.c.c.length;)o=c(G(a),17),wt=new Oh(e),pu(wt,(Jt(),Ic)),Me(wt,(Ge(),ar),(es(),kc)),Me(wt,(Ie(),Si),o),Lt=new mc,Me(Lt,Si,o.d),$r(Lt,(Ue(),Yt)),Do(Lt,wt),Rt=new mc,Me(Rt,Si,o.c),$r(Rt,nn),Do(Rt,wt),Me(o.c,Jl,wt),Me(o.d,Jl,wt),Os(o,null),ss(o,null),It(n.c,wt),Me(wt,uJ,$e(2));for(Oe=Pn(t,0);Oe.b!=Oe.d.c;)je=c(Dn(Oe),12),v=je.e.c.length>0,W=je.g.c.length>0,v&&W?It(A.c,je):v?It(z.c,je):W&&It(me.c,je);for(I=new U(z);I.a<I.c.c.length;)L=c(G(I),12),Qe(r,oxe(e,L,null,n));for(le=new U(me);le.a<le.c.c.length;)re=c(G(le),12),Qe(r,oxe(e,null,re,n));for(T=new U(A);T.a<T.c.c.length;)x=c(G(T),12),Qe(r,oxe(e,x,x,n))}function nre(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le;for(A=sr,L=sr,x=0,T=0,b=new He,d=new on((!e.b&&(e.b=new _e($i,e,12,3)),e.b));d.e!=d.i.gc();)o=c(un(d),74),b=wa(Y(K(Ea,1),Pt,22,0,[b,(!o.n&&(o.n=new _e(zo,o,1,7)),o.n)]));for(le=Pd(wa(Y(K(Ea,1),Pt,22,0,[(!e.n&&(e.n=new _e(zo,e,1,7)),e.n),(!e.a&&(e.a=new _e(_n,e,10,11)),e.a),b])));hn(le);)re=c(rn(le),278),v=c(re.mf((In(),V1)),125),A>re.mh()-v.b&&(A=re.mh()-v.b),L>re.nh()-v.d&&(L=re.nh()-v.d),x<re.mh()+re.lh()+v.c&&(x=re.mh()+re.lh()+v.c),T<re.nh()+re.kh()+v.a&&(T=re.nh()+re.kh()+v.a);for(a=new on((!e.b&&(e.b=new _e($i,e,12,3)),e.b));a.e!=a.i.gc();)for(o=c(un(a),74),W=new on((!o.a&&(o.a=new _e(Gi,o,6,6)),o.a));W.e!=W.i.gc();)for(Q=c(un(W),171),I=Q.j,i=Q.b,z=Q.k,r=Q.c,A=p.Math.min(A,I),A=p.Math.min(A,i),x=p.Math.max(x,I),x=p.Math.max(x,i),L=p.Math.min(L,z),L=p.Math.min(L,r),T=p.Math.max(T,z),T=p.Math.max(T,r),n=new on((!Q.a&&(Q.a=new Nr(Yu,Q,5)),Q.a));n.e!=n.i.gc();)t=c(un(n),373),A=p.Math.min(A,t.a),x=p.Math.max(x,t.a),L=p.Math.min(L,t.b),T=p.Math.max(T,t.b);ri(e,(In(),ry),x-A),ri(e,iy,T-L)}function got(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn,ti,tr;for(L=c($(e,(M0(),jk)),19),le=gi,me=gi,W=ls,re=ls,Oe=new U(e.e);Oe.a<Oe.c.c.length;)je=c(G(Oe),156),Rt=je.d,fn=je.e,le=p.Math.min(le,Rt.a-fn.a/2),me=p.Math.min(me,Rt.b-fn.b/2),W=p.Math.max(W,Rt.a+fn.a/2),re=p.Math.max(re,Rt.b+fn.b/2);for(n=new U(e.b);n.a<n.c.c.length;)t=c(G(n),254),Rt=t.d,fn=t.e,le=p.Math.min(le,Rt.a-fn.a/2),me=p.Math.min(me,Rt.b-fn.b/2),W=p.Math.max(W,Rt.a+fn.a/2),re=p.Math.max(re,Rt.b+fn.b/2);for(Lt=c(Se(L,(Sf(),Yht)),100),wt=new ze(Lt.b-le,Lt.d-me),v=new U(e.e);v.a<v.c.c.length;)b=c(G(v),156),mt=$(b,jk),ae(mt,209)&&(z=c(mt,19),Xe=Oi(new Ms(b.d),wt),fa(z,Xe.a-z.g/2,Xe.b-z.f/2));for(o=new U(e.c);o.a<o.c.c.length;)r=c(G(o),292),T=c($(r,jk),74),A=Z7(T),ti=new Ms(Mme(r)),Oi(ti,wt),I_(A,ti.a,ti.b),Uc(r.a,new qRe(wt,A)),i=new Ms(Ame(r)),Oi(i,wt),P_(A,i.a,i.b);for(d=new U(e.d);d.a<d.c.c.length;)a=c(G(d),448),I=c($(a,jk),158),Q=Oi(new Ms(a.d),wt),fa(I,Q.a,Q.b);tr=W-le+(Lt.b+Lt.c),x=re-me+(Lt.d+Lt.a),Ze(Ye(Se(L,(In(),sy))))||hw(L,tr,x,!1,!0),ri(L,ry,tr-(Lt.b+Lt.c)),ri(L,iy,x-(Lt.d+Lt.a))}function hnn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le;for(n.Tg("Depth first model order layering",1),e.d=t,Q=new He,z=new U(e.d.a);z.a<z.c.c.length;)L=c(G(z),9),L.k==(Jt(),ur)&&It(Q.c,L);for(Mt(),Rr(Q,new MA),a=!0,e.b=new dc(e.d),e.a=null,Qe(e.d.b,e.b),e.b.p=0,e.c=0,e.f=new _i,I=new U(Q);I.a<I.c.c.length;)if(L=c(G(I),9),a)zr(L,e.b),a=!1;else if(SYt(e,L))if(A=e.c,A=tZe(A,L),i=A+2,x=A-e.c,e.f.b==0)Cye(e,i,L);else if(x>0){for(le=Pn(e.f,0);le.b!=le.d.c;)re=c(Dn(le),9),re.p+=A-e.e;Mve(e),xu(e.f),Cye(e,i,L)}else{for(ei(e.f,L),L.p=i,e.e=p.Math.max(e.e,i),o=new Ht(Xt(vr(L).a.Jc(),new F));hn(o);)r=c(rn(o),17),!r.c.i.c&&r.c.i.k==(Jt(),ac)&&(ei(e.f,r.c.i),r.c.i.p=i-1);e.c=i}else Mve(e),xu(e.f),i=0,hn(new Ht(Xt(vr(L).a.Jc(),new F)))?(A=0,A=tZe(A,L),i=A+2,Cye(e,i,L)):(ei(e.f,L),L.p=0,e.e=p.Math.max(e.e,0),e.b=c(Je(e.d.b,0),26),e.c=0);for(e.f.b==0||Mve(e),e.d.a.c.length=0,W=new He,v=new U(e.d.b);v.a<v.c.c.length;)d=c(G(v),26),d.a.c.length==0&&It(W.c,d);for(Hwe(e.d.b,W),T=0,b=new U(e.d.b);b.a<b.c.c.length;)d=c(G(b),26),d.p=T,++T;n.Ug()}function dnn(e,t,n){var i,r,o,a,d,b,v,x,T;if(n.Tg("Network simplex node placement",1),e.e=t,e.n=c($(t,(Ie(),w3)),317),SZt(e),YHt(e),hr(jo(new Tt(null,new Et(e.e.b,16)),new C5),new wDe(e)),hr(mi(jo(mi(jo(new Tt(null,new Et(e.e.b,16)),new i$),new Zy),new r$),new m2),new mDe(e)),Ze(Ye($(e.e,(Ge(),gC))))&&(a=n.dh(1),a.Tg("Straight Edges Pre-Processing",1),Xen(e),a.Ug()),IFt(e.f),o=c($(t,mC),15).a*e.f.a.c.length,Lie(M1e(A1e(QZ(e.f),o),!1),n.dh(1)),e.d.a.gc()!=0){for(a=n.dh(1),a.Tg("Flexible Where Space Processing",1),d=c(mu(C4(Qc(new Tt(null,new Et(e.f.a,16)),new _A),new YR)),15).a,b=c(mu(J2(Qc(new Tt(null,new Et(e.f.a,16)),new p8),new Wy)),15).a,v=b-d,x=Im(new Bp,e.f),T=Im(new Bp,e.f),Of(uf(ff(af(hf(new Ra,2e4),v),x),T)),hr(mi(mi(dee(e.i),new e$),new Ky),new QHe(d,x,v,T)),r=e.d.a.ec().Jc();r.Ob();)i=c(r.Pb(),220),i.g=1;Lie(M1e(A1e(QZ(e.f),o),!1),a.dh(1)),a.Ug()}Ze(Ye($(t,gC)))&&(a=n.dh(1),a.Tg("Straight Edges Post-Processing",1),FGt(e),a.Ug()),Nen(e),e.e=null,e.f=null,e.i=null,e.c=null,cc(e.k),e.j=null,e.a=null,e.o=null,e.d.a.$b(),n.Ug()}function pot(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt;return T=YKt(fl(e,(Ue(),zh)),t),I=Bx(fl(e,Pf),t),me=Bx(fl(e,Wu),t),mt=yQ(fl(e,Za),t),A=yQ(fl(e,Aa),t),re=Bx(fl(e,If),t),z=Bx(fl(e,Xl),t),Oe=Bx(fl(e,Ku),t),je=Bx(fl(e,Na),t),wt=yQ(fl(e,ll),t),W=Bx(fl(e,xl),t),le=Bx(fl(e,Wl),t),Xe=Bx(fl(e,yl),t),Lt=yQ(fl(e,kl),t),L=yQ(fl(e,Rl),t),Q=Bx(fl(e,$c),t),n=Ax(Y(K(is,1),io,30,15,[re.a,mt.a,Oe.a,Lt.a])),i=Ax(Y(K(is,1),io,30,15,[I.a,T.a,me.a,Q.a])),r=W.a,o=Ax(Y(K(is,1),io,30,15,[z.a,A.a,je.a,L.a])),v=Ax(Y(K(is,1),io,30,15,[re.b,I.b,z.b,le.b])),b=Ax(Y(K(is,1),io,30,15,[mt.b,T.b,A.b,Q.b])),x=wt.b,d=Ax(Y(K(is,1),io,30,15,[Oe.b,me.b,je.b,Xe.b])),Mg(fl(e,zh),n+r,v+x),Mg(fl(e,$c),n+r,v+x),Mg(fl(e,Pf),n+r,0),Mg(fl(e,Wu),n+r,v+x+b),Mg(fl(e,Za),0,v+x),Mg(fl(e,Aa),n+r+i,v+x),Mg(fl(e,Xl),n+r+i,0),Mg(fl(e,Ku),0,v+x+b),Mg(fl(e,Na),n+r+i,v+x+b),Mg(fl(e,ll),0,v),Mg(fl(e,xl),n,0),Mg(fl(e,yl),0,v+x+b),Mg(fl(e,Rl),n+r+i,0),a=new fs,a.a=Ax(Y(K(is,1),io,30,15,[n+i+r+o,wt.a,le.a,Xe.a])),a.b=Ax(Y(K(is,1),io,30,15,[v+b+x+d,W.b,Lt.b,L.b])),a}function gnn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn,ti,tr,Kl,bo;if(Lt=null,fn=t,Rt=yXe(e,uUe(n),fn),dS(Rt,j1(fn,hd)),ti=c(Nx(e.n,nk(S1(fn,boe))),19),A=S1(fn,"sourcePort"),i=null,A&&(i=nk(A)),tr=c(Nx(e.p,i),127),!ti)throw d=DS(fn),I="An edge must have a source node (edge id: '"+d,z=I+Mj,V(new Jh(z));if(tr&&!gc(bh(tr),ti))throw b=j1(fn,hd),Q="The source port of an edge must be a port of the edge's source node (edge id: '"+b,W=Q+Mj,V(new Jh(W));if(mt=(!Rt.b&&(Rt.b=new Ct(xn,Rt,4,7)),Rt.b),o=null,tr?o=tr:o=ti,Ln(mt,o),Kl=c(Nx(e.n,nk(S1(fn,X4e))),19),L=S1(fn,"targetPort"),r=null,L&&(r=nk(L)),bo=c(Nx(e.p,r),127),!Kl)throw T=DS(fn),re="An edge must have a target node (edge id: '"+T,le=re+Mj,V(new Jh(le));if(bo&&!gc(bh(bo),Kl))throw v=j1(fn,hd),me="The target port of an edge must be a port of the edge's target node (edge id: '"+v,je=me+Mj,V(new Jh(je));if(wt=(!Rt.c&&(Rt.c=new Ct(xn,Rt,5,8)),Rt.c),a=null,bo?a=bo:a=Kl,Ln(wt,a),(!Rt.b&&(Rt.b=new Ct(xn,Rt,4,7)),Rt.b).i==0||(!Rt.c&&(Rt.c=new Ct(xn,Rt,5,8)),Rt.c).i==0)throw x=j1(fn,hd),Oe=Put+x,Xe=Oe+Mj,V(new Jh(Xe));return CQ(fn,Rt),PJt(fn,Rt),Lt=Xte(e,fn,Rt),Lt}function bot(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt;for(re=new ze(sr,sr),t=new ze(Gr,Gr),mt=new U(e);mt.a<mt.c.c.length;)Xe=c(G(mt),8),re.a=p.Math.min(re.a,Xe.a),re.b=p.Math.min(re.b,Xe.b),t.a=p.Math.max(t.a,Xe.a),t.b=p.Math.max(t.b,Xe.b);for(A=new ze(t.a-re.a,t.b-re.b),v=new ze(re.a-50,re.b-A.a-50),x=new ze(re.a-50,t.b+A.a+50),T=new ze(t.a+A.b/2+50,re.b+A.b/2),L=new rxe(v,x,T),Oe=new Tr,o=new He,n=new He,Oe.a.yc(L,Oe),Lt=new U(e);Lt.a<Lt.c.c.length;){for(wt=c(G(Lt),8),o.c.length=0,je=Oe.a.ec().Jc();je.Ob();)le=c(je.Pb(),322),i=le.d,C0(i,le.a),iw(C0(le.d,wt),C0(le.d,le.a))<0&&It(o.c,le);for(n.c.length=0,me=new U(o);me.a<me.c.c.length;)for(le=c(G(me),322),Q=new U(le.e);Q.a<Q.c.c.length;){for(I=c(G(Q),180),a=!0,b=new U(o);b.a<b.c.c.length;)d=c(G(b),322),d!=le&&(gc(I,Je(d.e,0))||gc(I,Je(d.e,1))||gc(I,Je(d.e,2)))&&(a=!1);a&&It(n.c,I)}for(Aet(Oe,o),vs(Oe,new eu),z=new U(n);z.a<z.c.c.length;)I=c(G(z),180),Er(Oe,new rxe(wt,I.a,I.b))}for(W=new Tr,vs(Oe,new UNe(W)),r=W.a.ec().Jc();r.Ob();)I=c(r.Pb(),180),(dH(L,I.a)||dH(L,I.b))&&r.Qb();return vs(W,new tm),W}function lc(){lc=Z,kIe(),xvt=Kr.a,c(ce(De(Kr.a),0),20),vvt=Kr.f,c(ce(De(Kr.f),0),20),c(ce(De(Kr.f),1),38),yvt=Kr.n,c(ce(De(Kr.n),0),38),c(ce(De(Kr.n),1),38),c(ce(De(Kr.n),2),38),c(ce(De(Kr.n),3),38),Q7e=Kr.g,c(ce(De(Kr.g),0),20),c(ce(De(Kr.g),1),38),wvt=Kr.c,c(ce(De(Kr.c),0),20),c(ce(De(Kr.c),1),20),G7e=Kr.i,c(ce(De(Kr.i),0),20),c(ce(De(Kr.i),1),20),c(ce(De(Kr.i),2),20),c(ce(De(Kr.i),3),20),c(ce(De(Kr.i),4),38),U7e=Kr.j,c(ce(De(Kr.j),0),20),H7e=Kr.d,c(ce(De(Kr.d),0),20),c(ce(De(Kr.d),1),20),c(ce(De(Kr.d),2),20),c(ce(De(Kr.d),3),20),c(ce(De(Kr.d),4),38),c(ce(De(Kr.d),5),38),c(ce(De(Kr.d),6),38),c(ce(De(Kr.d),7),38),mvt=Kr.b,c(ce(De(Kr.b),0),38),c(ce(De(Kr.b),1),38),OV=Kr.e,c(ce(De(Kr.e),0),38),c(ce(De(Kr.e),1),38),c(ce(De(Kr.e),2),38),c(ce(De(Kr.e),3),38),c(ce(De(Kr.e),4),20),c(ce(De(Kr.e),5),20),c(ce(De(Kr.e),6),20),c(ce(De(Kr.e),7),20),c(ce(De(Kr.e),8),20),c(ce(De(Kr.e),9),20),c(ce(De(Kr.e),10),38),t1=Kr.k,c(ce(De(Kr.k),0),38),c(ce(De(Kr.k),1),38)}function jxe(e){var t,n,i,r,o;switch(t=e.c,t){case 11:return e.tm();case 12:return e.vm();case 14:return e.xm();case 15:return e.Am();case 16:return e.ym();case 17:return e.Bm();case 21:return wi(e),vi(),vi(),hM;case 10:switch(e.a){case 65:return e.fm();case 90:return e.km();case 122:return e.rm();case 98:return e.lm();case 66:return e.gm();case 60:return e.qm();case 62:return e.om()}}switch(o=ann(e),t=e.c,t){case 3:return e.Gm(o);case 4:return e.Em(o);case 5:return e.Fm(o);case 0:if(e.a==123&&e.d<e.j){if(r=e.d,i=0,n=-1,(t=ws(e.i,r++))>=48&&t<=57){for(i=t-48;r<e.j&&(t=ws(e.i,r++))>=48&&t<=57;)if(i=i*10+t-48,i<0)throw V(new Un(Xn((Fn(),tke))))}else throw V(new Un(Xn((Fn(),aat))));if(n=i,t==44){if(r>=e.j)throw V(new Un(Xn((Fn(),hat))));if((t=ws(e.i,r++))>=48&&t<=57){for(n=t-48;r<e.j&&(t=ws(e.i,r++))>=48&&t<=57;)if(n=n*10+t-48,n<0)throw V(new Un(Xn((Fn(),tke))));if(i>n)throw V(new Un(Xn((Fn(),dat))))}else n=-1}if(t!=125)throw V(new Un(Xn((Fn(),fat))));e._l(r)?(o=(vi(),vi(),new nv(9,o)),e.d=r+1):(o=(vi(),vi(),new nv(3,o)),e.d=r),o.Mm(i),o.Lm(n),wi(e)}}return o}function pnn(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je;for(r=1,L=new He,i=0;i<e.b.c.length;i++){if(t=RGt(c(Je(e.b,i),26)),le=aqt(c(Je(e.b,i),26)),x=lqt(c(Je(e.b,i),26)),x){for(v=0,n=0,z=new U(c(Je(e.b,i),26).a);z.a<z.c.c.length;)I=c(G(z),9),v=p.Math.max(v,I.o.a),n+=I.o.b;if(n/=c(Je(e.b,i),26).a.c.length,v+=p.Math.max(2*de(be($(e,(Ge(),tp)))),p.Math.max(c(Je(e.b,i),26).a.c.length*de(be($(e,Wv))),de(be($(e,Yv))))),n+=p.Math.max(de(be($(e,Ib))),de(be($(e,Pb)))),v/n>=c(Je(e.b,i),26).a.c.length/4)continue}if(c(Je(e.b,i),26).a.c.length>t){for(me=new He,Qe(me,c(Je(e.b,i),26)),a=0;a<t-1;a++)T=new dc(e),Qe(L,new Is(T,$e(i+a+r))),It(me.c,T);for(r+=t-1,re=(ht(0,me.c.length),c(me.c[0],26)).a.c.length,o=0,Q=0,je=0;o<re;++o,++Q,je++)I=c(Je((ht(0,me.c.length),c(me.c[0],26)).a,Q),9),I.k!=(Jt(),WE)?Q+=Qtn(e,me,je%t,Q):(o-=1,je-=1),le&&I.k==Cr&&(je=-1)}}for(A=new U(L);A.a<A.c.c.length;)T=c(G(A),49),Qp(e.b,c(T.b,15).a,c(T.a,26));for(b=new U(e.b);b.a<b.c.c.length;)for(d=c(G(b),26),W=new os(d.a,0);W.b<W.d.gc();)I=(gn(W.b<W.d.gc()),c(W.d.Xb(W.c=W.b++),9)),(I.k==(Jt(),fP)||I.k==WE)&&nu(W)}function dw(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q;if(n==null)return null;if(e.a!=t.hk())throw V(new qt(Tj+t.ve()+Sw));if(ae(t,462)){if(Q=rWt(c(t,682),n),!Q)throw V(new qt(goe+n+"' is not a valid enumerator of '"+t.ve()+"'"));return Q}switch(Lg((Ll(),bs),t).Ll()){case 2:{n=Lc(n,!1);break}case 3:{n=Lc(n,!0);break}}if(i=Lg(bs,t).Hl(),i)return i.hk().ti().qi(i,n);if(A=Lg(bs,t).Jl(),A){for(Q=new He,v=tne(n),x=0,T=v.length;x<T;++x)b=v[x],Qe(Q,A.hk().ti().qi(A,b));return Q}if(z=Lg(bs,t).Kl(),!z.dc()){for(I=z.Jc();I.Ob();){L=c(I.Pb(),160);try{if(Q=L.hk().ti().qi(L,n),Q!=null)return Q}catch(W){if(W=kr(W),!ae(W,63))throw V(W)}}throw V(new qt(goe+n+"' does not match any member types of the union datatype '"+t.ve()+"'"))}if(c(t,839).mk(),r=Q$t(t.ik()),!r)return null;if(r==HE){a=0;try{a=Hu(n,ls,gi)&Dr}catch(W){if(W=kr(W),ae(W,133))o=gH(n),a=o[0];else throw V(W)}return _D(a)}if(r==mU){for(d=0;d<iM.length;++d)try{return ARe(iM[d],n)}catch(W){if(W=kr(W),!ae(W,33))throw V(W)}throw V(new qt(goe+n+"' is not a date formatted string of the form yyyy-MM-dd'T'HH:mm:ss'.'SSSZ or a valid subset thereof"))}throw V(new qt(goe+n+"' is invalid. "))}function ire(){ire=Z,Di=new Jm,jt(Di,(Ue(),zh),$c),jt(Di,Za,$c),jt(Di,Za,kl),jt(Di,Aa,Rl),jt(Di,Aa,$c),jt(Di,Pf,$c),jt(Di,Pf,Wl),jt(Di,Wu,yl),jt(Di,Wu,$c),jt(Di,xl,ll),jt(Di,xl,$c),jt(Di,xl,Wl),jt(Di,xl,yl),jt(Di,ll,xl),jt(Di,ll,kl),jt(Di,ll,Rl),jt(Di,ll,$c),jt(Di,If,If),jt(Di,If,Wl),jt(Di,If,kl),jt(Di,Xl,Xl),jt(Di,Xl,Wl),jt(Di,Xl,Rl),jt(Di,Ku,Ku),jt(Di,Ku,yl),jt(Di,Ku,kl),jt(Di,Na,Na),jt(Di,Na,yl),jt(Di,Na,Rl),jt(Di,Wl,Pf),jt(Di,Wl,xl),jt(Di,Wl,If),jt(Di,Wl,Xl),jt(Di,Wl,$c),jt(Di,Wl,Wl),jt(Di,Wl,kl),jt(Di,Wl,Rl),jt(Di,yl,Wu),jt(Di,yl,xl),jt(Di,yl,Ku),jt(Di,yl,Na),jt(Di,yl,yl),jt(Di,yl,kl),jt(Di,yl,Rl),jt(Di,yl,$c),jt(Di,kl,Za),jt(Di,kl,ll),jt(Di,kl,If),jt(Di,kl,Ku),jt(Di,kl,Wl),jt(Di,kl,yl),jt(Di,kl,kl),jt(Di,kl,$c),jt(Di,Rl,Aa),jt(Di,Rl,ll),jt(Di,Rl,Xl),jt(Di,Rl,Na),jt(Di,Rl,Wl),jt(Di,Rl,yl),jt(Di,Rl,Rl),jt(Di,Rl,$c),jt(Di,$c,zh),jt(Di,$c,Za),jt(Di,$c,Aa),jt(Di,$c,Pf),jt(Di,$c,Wu),jt(Di,$c,xl),jt(Di,$c,ll),jt(Di,$c,Wl),jt(Di,$c,yl),jt(Di,$c,kl),jt(Di,$c,Rl),jt(Di,$c,$c)}function Txe(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt;for(e.d=new ze(sr,sr),e.c=new ze(Gr,Gr),A=t.Jc();A.Ob();)for(x=c(A.Pb(),37),le=new U(x.a);le.a<le.c.c.length;)re=c(G(le),9),e.d.a=p.Math.min(e.d.a,re.n.a-re.d.b),e.d.b=p.Math.min(e.d.b,re.n.b-re.d.d),e.c.a=p.Math.max(e.c.a,re.n.a+re.o.a+re.d.c),e.c.b=p.Math.max(e.c.b,re.n.b+re.o.b+re.d.a);for(d=new sPe,T=t.Jc();T.Ob();)x=c(T.Pb(),37),i=Ktn(e,x),Qe(d.a,i),i.a=i.a|!c($(i.c,(Ie(),Q1)),24).dc();for(e.b=(nne(),mt=new kn,mt.f=new MXe(n),mt.b=ren(mt.f,d),mt),ven((I=e.b,new o4,I)),e.e=new fs,e.a=e.b.f.e,a=new U(d.a);a.a<a.c.c.length;)for(r=c(G(a),847),me=E_t(e.b,r),zWt(r.c,me.a,me.b),Q=new U(r.c.a);Q.a<Q.c.c.length;)z=c(G(Q),9),z.k==(Jt(),Ar)&&(W=gye(e,z.n,c($(z,(Ie(),Yo)),64)),Oi(Uf(z.n),W));for(o=new U(d.a);o.a<o.c.c.length;)for(r=c(G(o),847),v=new U(OBt(r));v.a<v.c.c.length;)for(b=c(G(v),17),Xe=new Jz(b.a),z6(Xe,0,mh(b.c)),ei(Xe,mh(b.d)),L=null,Oe=Pn(Xe,0);Oe.b!=Oe.d.c;){if(je=c(Dn(Oe),8),!L){L=je;continue}Ome(L.a,je.a)?(e.e.a=p.Math.min(e.e.a,L.a),e.a.a=p.Math.max(e.a.a,L.a)):Ome(L.b,je.b)&&(e.e.b=p.Math.min(e.e.b,L.b),e.a.b=p.Math.max(e.a.b,L.b)),L=je}XF(e.e),Oi(e.a,e.e)}function bnn(e,t){var n,i,r,o,a,d,b,v;if(n=0,a=0,o=t.length,d=null,v=new a4,a<o&&(en(a,t.length),t.charCodeAt(a)==43)&&(++a,++n,a<o&&(en(a,t.length),t.charCodeAt(a)==43||(en(a,t.length),t.charCodeAt(a)==45))))throw V(new Vh(pw+t+'"'));for(;a<o&&(en(a,t.length),t.charCodeAt(a)!=46)&&(en(a,t.length),t.charCodeAt(a)!=101)&&(en(a,t.length),t.charCodeAt(a)!=69);)++a;if(v.a+=""+Fa(t==null?ml:(zt(t),t),n,a),a<o&&(en(a,t.length),t.charCodeAt(a)==46)){for(++a,n=a;a<o&&(en(a,t.length),t.charCodeAt(a)!=101)&&(en(a,t.length),t.charCodeAt(a)!=69);)++a;e.e=a-n,v.a+=""+Fa(t==null?ml:(zt(t),t),n,a)}else e.e=0;if(a<o&&(en(a,t.length),t.charCodeAt(a)==101||(en(a,t.length),t.charCodeAt(a)==69))&&(++a,n=a,a<o&&(en(a,t.length),t.charCodeAt(a)==43)&&(++a,a<o&&(en(a,t.length),t.charCodeAt(a)!=45)&&++n),d=(hs(n,o,t.length),t.substr(n,o-n)),e.e=e.e-Hu(d,ls,gi),e.e!=ks(e.e)))throw V(new Vh("Scale out of range."));if(b=v.a,b.length<16){if(e.f=(qke==null&&(qke=new RegExp("^[+-]?\\d*$","i")),qke.test(b)?parseInt(b,10):NaN),isNaN(e.f))throw V(new Vh(pw+t+'"'));e.a=Fve(e.f)}else pBt(e,new x0(b));for(e.d=v.a.length,r=0;r<v.a.length&&(i=ws(v.a,r),!(i!=45&&i!=48));++r)--e.d;e.d==0&&(e.d=1)}function mnn(e){$n(e.b,Ja,Y(K(tt,1),Fe,2,6,[jw,"ConsistentTransient"])),$n(e.a,Ja,Y(K(tt,1),Fe,2,6,[jw,"WellFormedSourceURI"])),$n(e.o,Ja,Y(K(tt,1),Fe,2,6,[jw,"InterfaceIsAbstract AtMostOneID UniqueFeatureNames UniqueOperationSignatures NoCircularSuperTypes WellFormedMapEntryClass ConsistentSuperTypes DisjointFeatureAndOperationSignatures"])),$n(e.p,Ja,Y(K(tt,1),Fe,2,6,[jw,"WellFormedInstanceTypeName UniqueTypeParameterNames"])),$n(e.v,Ja,Y(K(tt,1),Fe,2,6,[jw,"UniqueEnumeratorNames UniqueEnumeratorLiterals"])),$n(e.R,Ja,Y(K(tt,1),Fe,2,6,[jw,"WellFormedName"])),$n(e.T,Ja,Y(K(tt,1),Fe,2,6,[jw,"UniqueParameterNames UniqueTypeParameterNames NoRepeatingVoid"])),$n(e.U,Ja,Y(K(tt,1),Fe,2,6,[jw,"WellFormedNsURI WellFormedNsPrefix UniqueSubpackageNames UniqueClassifierNames UniqueNsURIs"])),$n(e.W,Ja,Y(K(tt,1),Fe,2,6,[jw,"ConsistentOpposite SingleContainer ConsistentKeys ConsistentUnique ConsistentContainer"])),$n(e.bb,Ja,Y(K(tt,1),Fe,2,6,[jw,"ValidDefaultValueLiteral"])),$n(e.eb,Ja,Y(K(tt,1),Fe,2,6,[jw,"ValidLowerBound ValidUpperBound ConsistentBounds ValidType"])),$n(e.H,Ja,Y(K(tt,1),Fe,2,6,[jw,"ConsistentType ConsistentBounds ConsistentArguments"]))}function wnn(e){var t,n,i,r,o;switch(n=c($(e,(Ie(),Rc)),24),t=BF(wdt),r=c($(e,(Ge(),Qv)),348),r==(D1(),Yg)&&Fu(t,vdt),Ze(Ye($(e,Nle)))?Wn(t,(ts(),Cf),(cs(),Nce)):Wn(t,(ts(),yc),(cs(),Nce)),$(e,(sH(),zC))!=null&&Fu(t,ydt),(Ze(Ye($(e,eje)))||Ze(Ye($(e,WSe))))&&Hc(t,(ts(),Ws),(cs(),BOe)),c($(e,Vu),87).g){case 2:case 3:case 4:Hc(Wn(t,(ts(),Cf),(cs(),FOe)),Ws,zOe)}switch(n.Gc((Us(),sJ))&&Hc(Wn(Wn(t,(ts(),Cf),(cs(),$Oe)),xc,IOe),Ws,ROe),xe($(e,TP))!==xe((F0(),LJ))&&Wn(t,(ts(),yc),(cs(),n6e)),n.Gc(cJ)&&(Wn(t,(ts(),Cf),(cs(),o6e)),Wn(t,Xd,r6e),Wn(t,yc,s6e)),xe($(e,bJ))!==xe((zS(),eC))&&xe($(e,U1))!==xe((L1(),YP))&&Hc(t,(ts(),Ws),(cs(),WOe)),Ze(Ye($(e,YSe)))&&Wn(t,(ts(),yc),(cs(),XOe)),Ze(Ye($(e,Cle)))&&Wn(t,(ts(),yc),(cs(),c6e)),TVt(e)&&(xe($(e,Qv))===xe(Yg)?i=c($(e,jP),303):i=c($(e,Ele),303),o=i==(wS(),cle)?(cs(),i6e):(cs(),a6e),Wn(t,(ts(),xc),o)),c($(e,oje),428).g==1&&Wn(t,(ts(),xc),(cs(),NOe)),c($(e,Eje),383).g){case 1:Wn(t,(ts(),xc),(cs(),l6e));break;case 2:Hc(Wn(Wn(t,(ts(),yc),(cs(),_Oe)),xc,DOe),Ws,LOe)}return xe($(e,Kd))!==xe((P1(),np))&&Wn(t,(ts(),yc),(cs(),u6e)),t}function vnn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt;if(!t.dc()){if(r=new tu,d=n||c(t.Xb(0),17),I=d.c,eE(),A=I.i.k,!(A==(Jt(),ur)||A==Ic||A==Ar||A==_h))throw V(new qt("The target node of the edge must be a normal node or a northSouthPort."));for(Cs(r,Po(Y(K(Wr,1),Fe,8,0,[I.i.n,I.n,I.a]))),(Ue(),xl).Gc(I.j)&&(Q=de(be($(I,(Ie(),Jj)))),T=new ze(Po(Y(K(Wr,1),Fe,8,0,[I.i.n,I.n,I.a])).a,Q),rr(r,T,r.c.b,r.c)),x=null,i=!1,b=t.Jc();b.Ob();)a=c(b.Pb(),17),o=a.a,o.b!=0&&(i?(v=y1(Oi(x,(gn(o.b!=0),c(o.a.a.c,8))),.5),rr(r,v,r.c.b,r.c),i=!1):i=!0,x=As((gn(o.b!=0),c(o.c.b.c,8))),Ss(r,o),xu(o));z=d.d,xl.Gc(z.j)&&(Q=de(be($(z,(Ie(),Jj)))),T=new ze(Po(Y(K(Wr,1),Fe,8,0,[z.i.n,z.n,z.a])).a,Q),rr(r,T,r.c.b,r.c)),Cs(r,Po(Y(K(Wr,1),Fe,8,0,[z.i.n,z.n,z.a]))),e.d==(SS(),rue)&&(W=(gn(r.b!=0),c(r.a.a.c,8)),re=c(bc(r,1),8),le=new Fee(vwe(I.j)),le.a*=5,le.b*=5,me=Qr(new ze(re.a,re.b),W),je=new ze(Bee(le.a,me.a),Bee(le.b,me.b)),Oi(je,W),Oe=Pn(r,1),Tq(Oe,je),Xe=(gn(r.b!=0),c(r.c.b.c,8)),mt=c(bc(r,r.b-2),8),le=new Fee(vwe(z.j)),le.a*=5,le.b*=5,me=Qr(new ze(mt.a,mt.b),Xe),wt=new ze(Bee(le.a,me.a),Bee(le.b,me.b)),Oi(wt,Xe),z6(r,r.b-1,wt)),L=new sxe(r),Ss(d.a,gZe(L))}}function ynn(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn,ti,tr,Kl,bo,Zu,z3,s0,Rf,Y1;if(le=c(ce((!e.b&&(e.b=new Ct(xn,e,4,7)),e.b),0),83),je=le.mh(),Oe=le.nh(),me=le.lh()/2,z=le.kh()/2,ae(le,196)&&(re=c(le,127),je+=bh(re).i,je+=bh(re).i),je+=me,Oe+=z,Rt=c(ce((!e.b&&(e.b=new Ct(xn,e,4,7)),e.b),0),83),ti=Rt.mh(),tr=Rt.nh(),fn=Rt.lh()/2,Xe=Rt.kh()/2,ae(Rt,196)&&(Lt=c(Rt,127),ti+=bh(Lt).i,ti+=bh(Lt).i),ti+=fn,tr+=Xe,(!e.a&&(e.a=new _e(Gi,e,6,6)),e.a).i==0)d=(b0(),v=new o6,v),Ln((!e.a&&(e.a=new _e(Gi,e,6,6)),e.a),d);else if((!e.a&&(e.a=new _e(Gi,e,6,6)),e.a).i>1)for(I=new k4((!e.a&&(e.a=new _e(Gi,e,6,6)),e.a));I.e!=I.i.gc();)Q7(I);for(a=c(ce((!e.a&&(e.a=new _e(Gi,e,6,6)),e.a),0),171),Q=ti,ti>je+me?Q=je+me:ti<je-me&&(Q=je-me),W=tr,tr>Oe+z?W=Oe+z:tr<Oe-z&&(W=Oe-z),Q>je-me&&Q<je+me&&W>Oe-z&&W<Oe+z&&(Q=je+me),Ym(a,Q),Zm(a,W),mt=je,je>ti+fn?mt=ti+fn:je<ti-fn&&(mt=ti-fn),wt=Oe,Oe>tr+Xe?wt=tr+Xe:Oe<tr-Xe&&(wt=tr-Xe),mt>ti-fn&&mt<ti+fn&&wt>tr-Xe&&wt<tr+Xe&&(wt=tr+Xe),Wm(a,mt),Km(a,wt),An((!a.a&&(a.a=new Nr(Yu,a,5)),a.a)),o=pQ(t,5),le==Rt&&++o,Zu=mt-Q,Rf=wt-W,Kl=p.Math.sqrt(Zu*Zu+Rf*Rf),T=Kl*.20000000298023224,z3=Zu/(o+1),Y1=Rf/(o+1),bo=Q,s0=W,x=0;x<o;x++)bo+=z3,s0+=Y1,A=bo+cu(t,24)*DL*T-T/2,A<0?A=1:A>n&&(A=n-1),L=s0+cu(t,24)*DL*T-T/2,L<0?L=1:L>i&&(L=i-1),r=(b0(),b=new O2,b),kH(r,A),xH(r,L),Ln((!a.a&&(a.a=new Nr(Yu,a,5)),a.a),r)}function rre(e,t){qie();var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe;if(le=e.e,x=e.d,r=e.a,le==0)switch(t){case 0:return"0";case 1:return rj;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 W=new g0,W.a+="0E",W.a+=-t,W.a}if(z=x*10+1+7,Q=ke(_a,cd,30,z+1,15,1),n=z,x==1)if(o=r[0],o<0){Xe=Zr(o,Js);do T=Xe,Xe=tL(Xe,10),Q[--n]=48+Gn(Ha(T,js(Xe,10)))&Dr;while(_c(Xe,0)!=0)}else{Xe=o;do T=Xe,Xe=Xe/10|0,Q[--n]=48+(T-Xe*10)&Dr;while(Xe!=0)}else{me=ke(Hn,li,30,x,15,1),Oe=x,wc(r,0,me,0,Oe);e:for(;;){for(re=0,d=Oe-1;d>=0;d--)je=Ns(Ld(re,32),Zr(me[d],Js)),L=gQt(je),me[d]=Gn(L),re=Gn(Bm(L,32));I=Gn(re),A=n;do Q[--n]=48+I%10&Dr;while((I=I/10|0)!=0&&n!=0);for(i=9-A+n,a=0;a<i&&n>0;a++)Q[--n]=48;for(b=Oe-1;me[b]==0;b--)if(b==0)break e;Oe=b+1}for(;Q[n]==48;)++n}return v=le<0,v&&(Q[--n]=45),nd(Q,n,z-n)}function mot(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe;switch(e.c=t,e.g=new yn,n=(m0(),new mg(e.c)),i=new Nz(n),n2e(i),le=qn(Se(e.c,(iL(),J8e))),b=c(Se(e.c,tae),331),je=c(Se(e.c,nae),432),a=c(Se(e.c,Q8e),480),me=c(Se(e.c,eae),433),e.j=de(be(Se(e.c,kwt))),d=e.a,b.g){case 0:d=e.a;break;case 1:d=e.b;break;case 2:d=e.i;break;case 3:d=e.e;break;case 4:d=e.f;break;default:throw V(new qt(GG+(b.f!=null?b.f:""+b.g)))}if(e.d=new _Qe(d,je,a),Me(e.d,(pS(),JE),Ye(Se(e.c,ywt))),e.d.c=Ze(Ye(Se(e.c,G8e))),Lq(e.c).i==0)return e.d;for(T=new on(Lq(e.c));T.e!=T.i.gc();){for(x=c(un(T),19),L=x.g/2,A=x.f/2,Oe=new ze(x.i+L,x.j+A);Cc(e.g,Oe);)F2(Oe,(p.Math.random()-.5)*ud,(p.Math.random()-.5)*ud);z=c(Se(x,(In(),V1)),125),Q=new nGe(Oe,new pf(Oe.a-L-e.j/2-z.b,Oe.b-A-e.j/2-z.d,x.g+e.j+(z.b+z.c),x.f+e.j+(z.d+z.a))),Qe(e.d.i,Q),ci(e.g,Oe,new Is(Q,x))}switch(me.g){case 0:if(le==null)e.d.d=c(Je(e.d.i,0),68);else for(re=new U(e.d.i);re.a<re.c.c.length;)Q=c(G(re),68),I=c(c(Ut(e.g,Q.a),49).b,19).ih(),I!=null&&St(I,le)&&(e.d.d=Q);break;case 1:for(r=new ze(e.c.g,e.c.f),r.a*=.5,r.b*=.5,F2(r,e.c.i,e.c.j),o=sr,W=new U(e.d.i);W.a<W.c.c.length;)Q=c(G(W),68),v=C0(Q.a,r),v<o&&(o=v,e.d.d=Q);break;default:throw V(new qt(GG+(me.f!=null?me.f:""+me.g)))}return e.d}function wot(e){Dm(e,new pb(Am(Em(Mm(Cm(new h1,Ul),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new $$))),Be(e,Ul,aj,1.3),Be(e,Ul,dj,(Bt(),!1)),Be(e,Ul,mw,O8e),Be(e,Ul,bw,15),Be(e,Ul,IG,Ve(twt)),Be(e,Ul,Yx,Ve(rwt)),Be(e,Ul,mk,Ve(owt)),Be(e,Ul,bk,Ve(cwt)),Be(e,Ul,gj,Ve(iwt)),Be(e,Ul,hj,Ve(que)),Be(e,Ul,pj,Ve(lwt)),Be(e,Ul,a4e,Ve(E8e)),Be(e,Ul,f4e,Ve(T8e)),Be(e,Ul,u4e,Ve(Que)),Be(e,Ul,l4e,Ve(C8e)),Be(e,Ul,h4e,Ve(k8e)),Be(e,Ul,d4e,Ve(Hue)),Be(e,Ul,g4e,Ve(x8e)),Be(e,Ul,p4e,Ve(j8e)),Be(e,Ul,fj,Ve(v8e)),Be(e,Ul,$G,Ve(nwt)),Be(e,Ul,s4e,Ve(zP)),Be(e,Ul,r4e,Ve(w8e)),Be(e,Ul,o4e,Ve(FP)),Be(e,Ul,i4e,Ve(S8e)),Be(e,Ul,c4e,Ve(y8e))}function xnn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn,ti,tr,Kl,bo,Zu;for(n.Tg("Greedy cycle removal",1),e.b=t,le=t.a,Zu=le.c.length,e.a=ke(Hn,li,30,Zu,15,1),e.d=ke(Hn,li,30,Zu,15,1),e.c=ke(Hn,li,30,Zu,15,1),v=0,W=new U(le);W.a<W.c.c.length;){for(z=c(G(W),9),z.p=v,wt=new U(z.j);wt.a<wt.c.c.length;){for(Oe=c(G(wt),12),d=new U(Oe.e);d.a<d.c.c.length;)i=c(G(d),17),i.c.i!=z&&(fn=c($(i,(Ge(),Kj)),15).a,e.a[v]+=fn>0?fn+1:1);for(a=new U(Oe.g);a.a<a.c.c.length;)i=c(G(a),17),i.d.i!=z&&(fn=c($(i,(Ge(),Kj)),15).a,e.d[v]+=fn>0?fn+1:1)}e.d[v]==0?ei(e.f,z):e.a[v]==0&&ei(e.g,z),++v}for(I=-1,L=1,T=new He,e.e=c($(t,(Ie(),Dk)),237);Zu>0;){for(;e.f.b!=0;)tr=c(XZ(e.f),9),e.c[tr.p]=I--,Gye(e,tr),--Zu;for(;e.g.b!=0;)Kl=c(XZ(e.g),9),e.c[Kl.p]=L++,Gye(e,Kl),--Zu;if(Zu>0){for(A=ls,re=new U(le);re.a<re.c.c.length;)z=c(G(re),9),e.c[z.p]==0&&(me=e.d[z.p]-e.a[z.p],me>=A&&(me>A&&(T.c.length=0,A=me),It(T.c,z)));x=e.qg(T),e.c[x.p]=L++,Gye(e,x),--Zu}}for(ti=le.c.length+1,v=0;v<le.c.length;v++)e.c[v]<0&&(e.c[v]+=ti);for(Q=new U(le);Q.a<Q.c.c.length;)for(z=c(G(Q),9),Rt=JGe(z.j),Xe=Rt,mt=0,Lt=Xe.length;mt<Lt;++mt)for(Oe=Xe[mt],je=ed(Oe.g),r=je,o=0,b=r.length;o<b;++o)i=r[o],bo=i.d.i.p,e.c[z.p]>e.c[bo]&&(Bg(i,!0),Me(t,Mk,(Bt(),!0)));e.a=null,e.d=null,e.c=null,xu(e.g),xu(e.f),n.Ug()}function vot(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe;for(je=c(ce((!e.a&&(e.a=new _e(Gi,e,6,6)),e.a),0),171),x=new tu,me=new yn,Oe=Ert(je),bl(me.f,je,Oe),A=new yn,i=new _i,I=Pd(wa(Y(K(Ea,1),Pt,22,0,[(!t.d&&(t.d=new Ct($i,t,8,5)),t.d),(!t.e&&(t.e=new Ct($i,t,7,4)),t.e)])));hn(I);){if(L=c(rn(I),74),(!e.a&&(e.a=new _e(Gi,e,6,6)),e.a).i!=1)throw V(new qt(wut+(!e.a&&(e.a=new _e(Gi,e,6,6)),e.a).i));L!=e&&(Q=c(ce((!L.a&&(L.a=new _e(Gi,L,6,6)),L.a),0),171),rr(i,Q,i.c.b,i.c),z=c(No(lo(me.f,Q)),13),z||(z=Ert(Q),bl(me.f,Q,z)),T=n?Qr(new Ms(c(Je(Oe,Oe.c.length-1),8)),c(Je(z,z.c.length-1),8)):Qr(new Ms((ht(0,Oe.c.length),c(Oe.c[0],8))),(ht(0,z.c.length),c(z.c[0],8))),bl(A.f,Q,T))}if(i.b!=0)for(W=c(Je(Oe,n?Oe.c.length-1:0),8),v=1;v<Oe.c.length;v++){for(re=c(Je(Oe,n?Oe.c.length-1-v:v),8),r=Pn(i,0);r.b!=r.d.c;)Q=c(Dn(r),171),z=c(No(lo(me.f,Q)),13),z.c.length<=v?Ste(r):(le=Oi(new Ms(c(Je(z,n?z.c.length-1-v:v),8)),c(No(lo(A.f,Q)),8)),(re.a!=le.a||re.b!=le.b)&&(o=re.a-W.a,d=re.b-W.b,a=le.a-W.a,b=le.b-W.b,a*d==b*o&&(o==0||isNaN(o)?o:o<0?-1:1)==(a==0||isNaN(a)?a:a<0?-1:1)&&(d==0||isNaN(d)?d:d<0?-1:1)==(b==0||isNaN(b)?b:b<0?-1:1)?(p.Math.abs(o)<p.Math.abs(a)||p.Math.abs(d)<p.Math.abs(b))&&rr(x,re,x.c.b,x.c):v>1&&rr(x,W,x.c.b,x.c),Ste(r)));W=re}return x}function yot(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt;for(n.Tg(Slt,1),Lt=c(Hl(mi(new Tt(null,new Et(t,16)),new d$),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[(ya(),wl)]))),16),x=c(Hl(mi(new Tt(null,new Et(t,16)),new $De(t)),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[wl]))),16),I=c(Hl(mi(new Tt(null,new Et(t,16)),new RDe(t)),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[wl]))),16),z=ke(qJ,FG,41,t.gc(),0,1),a=0;a<x.gc();a++)r=c(x.Xb(a),41),wt=c($(r,(Jo(),T3)),15).a,wt>=0&&wt<x.gc()&&!z[wt]&&(z[wt]=r,x.ed(a),--a);for(d=0;d<x.gc();d++)for(r=c(x.Xb(d),41),wt=c($(r,(Jo(),T3)),15).a,A=0;;A++){if(L=wt+A,L<z.length&&L>=0&&!z[L]){z[L]=r,x.ed(d),--d;break}if(L=wt-A,L<z.length&&L>=0&&!z[L]){z[L]=r,x.ed(d),--d;break}}for(I.gd(new g$),b=z.length-1;b>=0;b--)!z[b]&&!I.dc()&&(z[b]=c(I.Xb(0),41),I.ed(0));for(v=0;v<z.length;v++)!z[v]&&!Lt.dc()&&(z[v]=c(Lt.Xb(0),41),Lt.ed(0));for(o=0;o<z.length;o++)Me(z[o],(Ii(),NC),$e(o));for(T=c(kzt(mi(new Tt(null,new Et(t,16)),new p$)),526),Oe=T,Xe=0,mt=Oe.length;Xe<mt;++Xe){for(je=Oe[Xe],i=Qte(je),yot(e,i,n.dh(1/T.length|0)),Mt(),sb(i,new sY((Ii(),NC))),Q=new _i,me=Pn(i,0);me.b!=me.d.c;)for(le=c(Dn(me),41),re=Pn(je.d,0);re.b!=re.d.c;)W=c(Dn(re),65),W.c==le&&rr(Q,W,Q.c.b,Q.c);xu(je.d),Ss(je.d,Q)}n.Ug()}function xot(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me;for(le=de(be(Se(t,(Fd(),ty)))),L=de(be(Se(t,LC))),A=de(be(Se(t,YJ))),Gme((!t.a&&(t.a=new _e(_n,t,10,11)),t.a)),W=fst((!t.a&&(t.a=new _e(_n,t,10,11)),t.a),le,e.b),Q=0;Q<W.c.length;Q++)if(b=(ht(Q,W.c.length),c(W.c[Q],189)),Q!=0&&(I=(ht(Q-1,W.c.length),c(W.c[Q-1],189)),kKe(b,I.f+I.b+e.b)),z=Snn(Q,W,le,e.b,Ze(Ye(Se(t,(Th(),Hue))))),Ze(Ye(z.b))){for(o=new U(b.a);o.a<o.c.c.length;)r=c(G(o),175),r.c=!1,r.k=!1,ist(r);b.d=new He,b.e=le,--Q}else if(Zqt(e,b),Q+1<W.c.length&&(e.e=p.Math.max(b.e+e.b+c(Je((ht(Q+1,W.c.length),c(W.c[Q+1],189)).a,0),175).r-le,e.c),e.f=p.Math.min(b.e+e.b+c(Je((ht(Q+1,W.c.length),c(W.c[Q+1],189)).a,0),175).r-le,e.d),b.d.c.length!=0&&(e.c=p.Math.max(e.c,c(Je(b.d,b.d.c.length-1),320).d+(b.d.c.length<=1?0:e.b)),e.d=p.Math.min(e.c,c(Je(b.d,b.d.c.length-1),320).d+(b.d.c.length<=1?0:e.b)))),W.c.length==1)for(T=c(Je(b.d,b.d.c.length-1),320),x=c(Je(T.a,T.a.c.length-1),175),d=new U(x.n);d.a<d.c.c.length;)a=c(G(d),211),e.c=p.Math.max(e.c,x.r-a.d),e.d=p.Math.min(e.d,x.r-a.d),e.e=p.Math.max(e.e,a.d+e.b),e.f=p.Math.min(e.f,a.d+e.b);return re=qZe(W,e.b),me=p.Math.max(re.a,L-(n.b+n.c)),v=p.Math.max(re.b,A-(n.d+n.a)),i=v-re.b,ri(t,DC,i),ri(t,ZJ,W),new dpe(e.a,me,re.b+i,(Y7(),qP))}function knn(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn;if(Xe=c($(e,(Ge(),ar)),103),Xe!=(es(),Bh)&&Xe!=up){for(I=e.b,L=I.c.length,x=new Gc((zu(L+2,are),mH(Ns(Ns(5,L+2),(L+2)/10|0)))),z=new Gc((zu(L+2,are),mH(Ns(Ns(5,L+2),(L+2)/10|0)))),Qe(x,new yn),Qe(x,new yn),Qe(z,new He),Qe(z,new He),Oe=new He,t=0;t<L;t++)for(n=(ht(t,I.c.length),c(I.c[t],26)),mt=(ht(t,x.c.length),c(x.c[t],93)),Q=new yn,It(x.c,Q),Lt=(ht(t,z.c.length),c(z.c[t],16)),re=new He,It(z.c,re),r=new U(n.a);r.a<r.c.c.length;){if(i=c(G(r),9),zwe(i)){It(Oe.c,i);continue}for(v=new Ht(Xt(vr(i).a.Jc(),new F));hn(v);)d=c(rn(v),17),Rt=d.c.i,zwe(Rt)&&(wt=c(mt.xc($(Rt,(Ie(),Si))),9),wt||(wt=Dtt(e,Rt),mt.yc($(Rt,Si),wt),Lt.Ec(wt)),Os(d,c(Je(wt.j,1),12)));for(b=new Ht(Xt(Fi(i).a.Jc(),new F));hn(b);)d=c(rn(b),17),fn=d.d.i,zwe(fn)&&(W=c(Ut(Q,$(fn,(Ie(),Si))),9),W||(W=Dtt(e,fn),ci(Q,$(fn,Si),W),It(re.c,W)),ss(d,c(Je(W.j,0),12)))}for(T=0;T<z.c.length;T++)if(le=(ht(T,z.c.length),c(z.c[T],16)),!le.dc())for(A=null,T==0?(A=new dc(e),ev(0,I.c.length),ET(I.c,0,A)):T==x.c.length-1?(A=new dc(e),It(I.c,A)):A=(ht(T-1,I.c.length),c(I.c[T-1],26)),a=le.Jc();a.Ob();)o=c(a.Pb(),9),zr(o,A);for(je=new U(Oe);je.a<je.c.c.length;)me=c(G(je),9),zr(me,null);Me(e,(Ie(),hle),Oe)}}function Onn(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn,ti,tr,Kl,bo;for(tr=new He,I=new U(t.b);I.a<I.c.c.length;)for(A=c(G(I),26),je=new U(A.a);je.a<je.c.c.length;){for(me=c(G(je),9),me.p=-1,T=ls,mt=ls,Lt=new U(me.j);Lt.a<Lt.c.c.length;){for(wt=c(G(Lt),12),r=new U(wt.e);r.a<r.c.c.length;)n=c(G(r),17),Rt=c($(n,(Ge(),$k)),15).a,T=p.Math.max(T,Rt);for(i=new U(wt.g);i.a<i.c.c.length;)n=c(G(i),17),Rt=c($(n,(Ge(),$k)),15).a,mt=p.Math.max(mt,Rt)}Me(me,BJ,$e(T)),Me(me,zJ,$e(mt))}for(W=0,L=new U(t.b);L.a<L.c.c.length;)for(A=c(G(L),26),je=new U(A.a);je.a<je.c.c.length;)me=c(G(je),9),me.p<0&&(ti=new h1e,ti.b=W++,Xit(e,me,ti),It(tr.c,ti));for(Xe=Nd(tr.c.length),x=Nd(tr.c.length),a=0;a<tr.c.length;a++)Qe(Xe,new He),Qe(x,$e(0));for(Hen(t,tr,Xe,x),Kl=c(xh(tr,ke(rbt,plt,264,tr.c.length,0,1)),846),Oe=c(xh(Xe,ke(Ju,Mv,16,Xe.c.length,0,1)),200),v=ke(Hn,li,30,x.c.length,15,1),d=0;d<v.length;d++)v[d]=(ht(d,x.c.length),c(x.c[d],15)).a;for(re=0,le=new He,b=0;b<Kl.length;b++)v[b]==0&&It(le.c,Kl[b]);for(Q=ke(Hn,li,30,Kl.length,15,1);le.c.length!=0;)for(ti=c(Cg(le,0),264),Q[ti.b]=re++;!Oe[ti.b].dc();)bo=c(Oe[ti.b].ed(0),264),--v[bo.b],v[bo.b]==0&&It(le.c,bo);for(e.a=ke(rbt,plt,264,Kl.length,0,1),o=0;o<Kl.length;o++)for(z=Kl[o],fn=Q[o],e.a[fn]=z,z.b=fn,je=new U(z.e);je.a<je.c.c.length;)me=c(G(je),9),me.p=fn;return e.a}function Snn(e,t,n,i,r){var o,a,d,b,v,x,T,A,L,I,z,Q,W;for(z=!1,b=!1,A=e+1,I=(ht(e,t.c.length),c(t.c[e],189)),d=I.a,v=null,a=0;a<I.a.c.length;a++)if(o=(ht(a,d.c.length),c(d.c[a],175)),!o.c){if(o.b.c.length==0){kg(),ZD(I,o),--a,z=!0;continue}if(o.k||(v&&vQ(v),v=new abe(v?v.e+v.d+i:0,I.f,i),XD(o,v.e+v.d,I.f),Qe(I.d,v),Kme(v,o),o.k=!0),x=null,x=(W=null,a<I.a.c.length-1?W=c(Je(I.a,a+1),175):A<t.c.length&&(ht(A,t.c.length),c(t.c[A],189)).a.c.length!=0&&(W=c(Je((ht(A,t.c.length),c(t.c[A],189)).a,0),175)),W),Q=!1,x&&(Q=!xi(x.j,I)),x){if(x.b.c.length!=0&&!Ze(Ye(c(Je(x.b,0),19).mf((Th(),FP)))))bD(o,n-o.s),vQ(o.q),z=z|iGt(I,o,x,n,i);else{ZD(I,x);break}if(x.b.c.length==0)for(t.c.length>A&&ZD((ht(A,t.c.length),c(t.c[A],189)),x),x=null;t.c.length>A&&(ht(A,t.c.length),c(t.c[A],189)).a.c.length==0;)dl(t,(ht(A,t.c.length),t.c[A]));if(!x){--a;continue}if(!Ze(Ye(c(Je(x.b,0),19).mf((Th(),FP))))&&LKt(t,I,o,x,Q,n,A,i)){z=!0;continue}if(Q){if(L=I.b,T=x.f,!Ze(Ye(c(Je(x.b,0),19).mf(FP)))&&nen(t,I,o,x,n,A,i,r)){if(z=!0,L<T){b=!0,x.j=I;break}continue}else if(Ewe(I,o)){o.c=!0,z=!0;continue}}else if(Ewe(I,o)){o.c=!0,z=!0;continue}if(z)continue}if(Ewe(I,o)){o.c=!0,z=!0,x&&(x.k=!1);continue}else vQ(o.q)}return new Is((Bt(),!!z),!!b)}function wi(e){var t,n,i;if(e.d>=e.j){e.a=-1,e.c=1;return}if(t=ws(e.i,e.d++),e.a=t,e.b==1){switch(t){case 92:if(i=10,e.d>=e.j)throw V(new Un(Xn((Fn(),ZG))));e.a=ws(e.i,e.d++);break;case 45:(e.e&512)==512&&e.d<e.j&&ws(e.i,e.d)==91?(++e.d,i=24):i=0;break;case 91:if((e.e&512)!=512&&e.d<e.j&&ws(e.i,e.d)==58){++e.d,i=20;break}default:(t&64512)==NL&&e.d<e.j&&(n=ws(e.i,e.d),(n&64512)==56320&&(e.a=Rs+(t-NL<<10)+n-56320,++e.d)),i=0}e.c=i;return}switch(t){case 124:i=2;break;case 42:i=3;break;case 43:i=4;break;case 63:i=5;break;case 41:i=7;break;case 46:i=8;break;case 91:i=9;break;case 94:i=11;break;case 36:i=12;break;case 40:if(i=6,e.d>=e.j||ws(e.i,e.d)!=63)break;if(++e.d>=e.j)throw V(new Un(Xn((Fn(),Eoe))));switch(t=ws(e.i,e.d++),t){case 58:i=13;break;case 61:i=14;break;case 33:i=15;break;case 91:i=19;break;case 62:i=18;break;case 60:if(e.d>=e.j)throw V(new Un(Xn((Fn(),Eoe))));if(t=ws(e.i,e.d++),t==61)i=16;else if(t==33)i=17;else throw V(new Un(Xn((Fn(),Uut))));break;case 35:for(;e.d<e.j&&(t=ws(e.i,e.d++),t!=41););if(t!=41)throw V(new Un(Xn((Fn(),Jut))));i=21;break;default:if(t==45||97<=t&&t<=122||65<=t&&t<=90){--e.d,i=22;break}else if(t==40){i=23;break}throw V(new Un(Xn((Fn(),Eoe))))}break;case 92:if(i=10,e.d>=e.j)throw V(new Un(Xn((Fn(),ZG))));e.a=ws(e.i,e.d++);break;default:i=0}e.c=i}function jnn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q;if(n.Tg("Process compaction",1),!!Ze(Ye($(t,(Jo(),T9e))))){for(r=c($(t,Bw),87),L=de(be($(t,wue))),XYt(e,t,r),Btn(t,L/2/2),I=t.b,sb(I,new ADe(r)),v=Pn(I,0);v.b!=v.d.c;)if(b=c(Dn(v),41),!Ze(Ye($(b,(Ii(),sp))))){if(i=yWt(b,r),z=pYt(b,t),T=0,A=0,i)switch(Q=i.e,r.g){case 2:T=Q.a-L-b.f.a,z.e.a-L-b.f.a<T&&(T=z.e.a-L-b.f.a),A=T+b.f.a;break;case 1:T=Q.a+i.f.a+L,z.e.a+L>T&&(T=z.e.a+z.f.a+L),A=T+b.f.a;break;case 4:T=Q.b-L-b.f.b,z.e.b-L-b.f.b<T&&(T=z.e.b-L-b.f.b),A=T+b.f.b;break;case 3:T=Q.b+i.f.b+L,z.e.b+L>T&&(T=z.e.b+z.f.b+L),A=T+b.f.b}else if(z)switch(r.g){case 2:T=z.e.a-L-b.f.a,A=T+b.f.a;break;case 1:T=z.e.a+z.f.a+L,A=T+b.f.a;break;case 4:T=z.e.b-L-b.f.b,A=T+b.f.b;break;case 3:T=z.e.b+z.f.b+L,A=T+b.f.b}xe($(t,mue))===xe((T7(),PP))?(o=T,a=A,d=_1(mi(new Tt(null,new Et(e.a,16)),new g$e(o,a))),d.a!=null?r==(_r(),po)||r==vo?b.e.a=T:b.e.b=T:(r==(_r(),po)||r==Ma?d=_1(mi(lXe(new Tt(null,new Et(e.a,16))),new NDe(o))):d=_1(mi(lXe(new Tt(null,new Et(e.a,16))),new _De(o))),d.a!=null&&(r==po||r==vo?b.e.a=de(be((gn(d.a!=null),c(d.a,49)).a)):b.e.b=de(be((gn(d.a!=null),c(d.a,49)).a)))),d.a!=null&&(x=Lo(e.a,(gn(d.a!=null),d.a),0),x>0&&x!=c($(b,md),15).a&&(Me(b,w9e,(Bt(),!0)),Me(b,md,$e(x))))):r==(_r(),po)||r==vo?b.e.a=T:b.e.b=T}n.Ug()}}function Tnn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je;if(n.Tg("Coffman-Graham Layering",1),t.a.c.length==0){n.Ug();return}for(je=c($(t,(Ge(),nje)),15).a,b=0,a=0,A=new U(t.a);A.a<A.c.c.length;)for(T=c(G(A),9),T.p=b++,o=new Ht(Xt(Fi(T).a.Jc(),new F));hn(o);)r=c(rn(o),17),r.p=a++;for(e.d=ke(Sl,Yf,30,b,16,1),e.a=ke(Sl,Yf,30,a,16,1),e.b=ke(Hn,li,30,b,15,1),e.e=ke(Hn,li,30,b,15,1),e.f=ke(Hn,li,30,b,15,1),jH(e.c),DHt(e,t),I=new kq(new X_e(e)),me=new U(t.a);me.a<me.c.c.length;){for(re=c(G(me),9),o=new Ht(Xt(vr(re).a.Jc(),new F));hn(o);)r=c(rn(o),17),e.a[r.p]||++e.b[re.p];e.b[re.p]==0&&T4(BS(I,re),sj)}for(d=0;I.b.c.length!=0;)for(re=c(kte(I),9),e.f[re.p]=d++,o=new Ht(Xt(Fi(re).a.Jc(),new F));hn(o);)r=c(rn(o),17),!e.a[r.p]&&(Q=r.d.i,--e.b[Q.p],jt(e.c,Q,$e(e.f[re.p])),e.b[Q.p]==0&&T4(BS(I,Q),sj));for(L=new kq(new W_e(e)),le=new U(t.a);le.a<le.c.c.length;){for(re=c(G(le),9),o=new Ht(Xt(Fi(re).a.Jc(),new F));hn(o);)r=c(rn(o),17),e.a[r.p]||++e.e[re.p];e.e[re.p]==0&&T4(BS(L,re),sj)}for(x=new He,i=FHe(t,x);L.b.c.length!=0;)for(W=c(kte(L),9),(i.a.c.length>=je||!Mzt(W,i))&&(i=FHe(t,x)),zr(W,i),o=new Ht(Xt(vr(W).a.Jc(),new F));hn(o);)r=c(rn(o),17),!e.a[r.p]&&(z=r.c.i,--e.e[z.p],e.e[z.p]==0&&T4(BS(L,z),sj));for(v=x.c.length-1;v>=0;--v)Qe(t.b,(ht(v,x.c.length),c(x.c[v],26)));t.a.c.length=0,n.Ug()}function kot(e){var t,n,i,r,o,a,d,b,v;for(e.b=1,wi(e),t=null,e.c==0&&e.a==94?(wi(e),t=(vi(),vi(),new $u(4)),Dc(t,0,Nj),d=new $u(4)):d=(vi(),vi(),new $u(4)),r=!0;(v=e.c)!=1;){if(v==0&&e.a==93&&!r){t&&(fE(t,d),d=t);break}if(n=e.a,i=!1,v==10)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:jv(d,VS(n)),i=!0;break;case 105:case 73:case 99:case 67:n=(jv(d,VS(n)),-1),n<0&&(i=!0);break;case 112:case 80:if(b=Uve(e,n),!b)throw V(new Un(Xn((Fn(),Coe))));jv(d,b),i=!0;break;default:n=Aye(e)}else if(v==24&&!r){if(t&&(fE(t,d),d=t),o=kot(e),fE(d,o),e.c!=0||e.a!=93)throw V(new Un(Xn((Fn(),nat))));break}if(wi(e),!i){if(v==0){if(n==91)throw V(new Un(Xn((Fn(),Z4e))));if(n==93)throw V(new Un(Xn((Fn(),eke))));if(n==45&&!r&&e.a!=93)throw V(new Un(Xn((Fn(),Moe))))}if(e.c!=0||e.a!=45||n==45&&r)Dc(d,n,n);else{if(wi(e),(v=e.c)==1)throw V(new Un(Xn((Fn(),eU))));if(v==0&&e.a==93)Dc(d,n,n),Dc(d,45,45);else{if(v==0&&e.a==93||v==24)throw V(new Un(Xn((Fn(),Moe))));if(a=e.a,v==0){if(a==91)throw V(new Un(Xn((Fn(),Z4e))));if(a==93)throw V(new Un(Xn((Fn(),eke))));if(a==45)throw V(new Un(Xn((Fn(),Moe))))}else v==10&&(a=Aye(e));if(wi(e),n>a)throw V(new Un(Xn((Fn(),sat))));Dc(d,n,a)}}}r=!1}if(e.c==1)throw V(new Un(Xn((Fn(),eU))));return Hx(d),lE(d),e.b=0,wi(e),d}function Oot(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me;me=!1;do for(me=!1,o=t?new an(e.a.b).a.gc()-2:1;t?o>=0:o<new an(e.a.b).a.gc();o+=t?-1:1)for(r=Nbe(e.a,$e(o)),L=0;L<r.b;L++)if(T=c(bc(r,L),9),!!ki(T,(Ie(),Ri))&&!(BHt(e.a,$e(o))&&e.r==(F0(),e9)||zHt(e.a,$e(o))&&e.r==(F0(),yC))){for(le=!0,W=0;W<r.b;W++)Q=c(bc(r,W),9),ki(Q,Ri)&&(t&&c($(T,Ri),15).a<c($(Q,Ri),15).a||!t&&c($(T,Ri),15).a>c($(Q,Ri),15).a)&&(le=!1);if(le){for(b=t?o+1:o-1,d=Nbe(e.a,$e(b)),a=!1,re=!0,i=!1,x=Pn(d,0);x.b!=x.d.c;)v=c(Dn(x),9),ki(v,Ri)?v.p!=T.p&&(a=a|(t?c($(v,Ri),15).a<c($(T,Ri),15).a:c($(v,Ri),15).a>c($(T,Ri),15).a),re=!1):!a&&re&&v.k==(Jt(),ac)&&(i=!0,t?A=c(rn(new Ht(Xt(vr(v).a.Jc(),new F))),17).c.i:A=c(rn(new Ht(Xt(Fi(v).a.Jc(),new F))),17).d.i,A==T&&(t?n=c(rn(new Ht(Xt(Fi(v).a.Jc(),new F))),17).d.i:n=c(rn(new Ht(Xt(vr(v).a.Jc(),new F))),17).c.i,(t?c(z2(e.a,n),15).a-c(z2(e.a,A),15).a:c(z2(e.a,A),15).a-c(z2(e.a,n),15).a)<=2&&(re=!1)));if(i&&re&&(t?n=c(rn(new Ht(Xt(Fi(T).a.Jc(),new F))),17).d.i:n=c(rn(new Ht(Xt(vr(T).a.Jc(),new F))),17).c.i,(t?c(z2(e.a,n),15).a-c(z2(e.a,T),15).a:c(z2(e.a,T),15).a-c(z2(e.a,n),15).a)<=2&&n.k==(Jt(),ur)&&(re=!1)),a||re){for(z=Knt(e,T,t);z.a.gc()!=0;)I=c(z.a.ec().Jc().Pb(),9),z.a.Ac(I)!=null,Ss(z,Knt(e,I,t));--L,me=!0}}}while(me)}function Enn(e){$n(e.c,Kn,Y(K(tt,1),Fe,2,6,[xs,"http://www.w3.org/2001/XMLSchema#decimal"])),$n(e.d,Kn,Y(K(tt,1),Fe,2,6,[xs,"http://www.w3.org/2001/XMLSchema#integer"])),$n(e.e,Kn,Y(K(tt,1),Fe,2,6,[xs,"http://www.w3.org/2001/XMLSchema#boolean"])),$n(e.f,Kn,Y(K(tt,1),Fe,2,6,[xs,"EBoolean",di,"EBoolean:Object"])),$n(e.i,Kn,Y(K(tt,1),Fe,2,6,[xs,"http://www.w3.org/2001/XMLSchema#byte"])),$n(e.g,Kn,Y(K(tt,1),Fe,2,6,[xs,"http://www.w3.org/2001/XMLSchema#hexBinary"])),$n(e.j,Kn,Y(K(tt,1),Fe,2,6,[xs,"EByte",di,"EByte:Object"])),$n(e.n,Kn,Y(K(tt,1),Fe,2,6,[xs,"EChar",di,"EChar:Object"])),$n(e.t,Kn,Y(K(tt,1),Fe,2,6,[xs,"http://www.w3.org/2001/XMLSchema#double"])),$n(e.u,Kn,Y(K(tt,1),Fe,2,6,[xs,"EDouble",di,"EDouble:Object"])),$n(e.F,Kn,Y(K(tt,1),Fe,2,6,[xs,"http://www.w3.org/2001/XMLSchema#float"])),$n(e.G,Kn,Y(K(tt,1),Fe,2,6,[xs,"EFloat",di,"EFloat:Object"])),$n(e.I,Kn,Y(K(tt,1),Fe,2,6,[xs,"http://www.w3.org/2001/XMLSchema#int"])),$n(e.J,Kn,Y(K(tt,1),Fe,2,6,[xs,"EInt",di,"EInt:Object"])),$n(e.N,Kn,Y(K(tt,1),Fe,2,6,[xs,"http://www.w3.org/2001/XMLSchema#long"])),$n(e.O,Kn,Y(K(tt,1),Fe,2,6,[xs,"ELong",di,"ELong:Object"])),$n(e.Z,Kn,Y(K(tt,1),Fe,2,6,[xs,"http://www.w3.org/2001/XMLSchema#short"])),$n(e.$,Kn,Y(K(tt,1),Fe,2,6,[xs,"EShort",di,"EShort:Object"])),$n(e._,Kn,Y(K(tt,1),Fe,2,6,[xs,"http://www.w3.org/2001/XMLSchema#string"]))}function Ge(){Ge=Z,Ile=(In(),M2t),wje=A2t,CP=N2t,Mf=_2t,k3=e7e,Pb=t7e,Kv=n7e,Yj=i7e,Zj=r7e,Rle=hV,Ib=oh,$le=D2t,bC=c7e,CJ=Gk,EP=(Cxe(),y0t),Wv=x0t,tp=k0t,Yv=O0t,upt=new Ur(WP,$e(0)),Kj=m0t,mje=w0t,$k=v0t,Eje=G0t,yje=T0t,xje=M0t,zle=I0t,kje=_0t,Oje=L0t,MJ=X0t,Fle=U0t,jje=F0t,Sje=B0t,Tje=H0t,oje=Zgt,_le=Xgt,OJ=Vgt,Dle=Kgt,Iw=f0t,pC=h0t,Ale=Ogt,XSe=jgt,gpt=f9,ppt=dV,dpt=ly,hpt=a9,vje=(U4(),fy),new Ur(Uk,vje),hje=new qp(12),fje=new Ur(Ih,hje),USe=(L1(),g9),U1=new Ur(NTe,USe),Jv=new Ur(au,0),apt=new Ur(_ae,$e(1)),gJ=new Ur(l9,uj),Lb=fV,ar=u9,Wj=L3,npt=VP,pd=b2t,Qv=A3,fpt=new Ur(Dae,(Bt(),!0)),Gv=XP,_b=Sae,Db=zb,EJ=op,Ple=sy,GSe=(_r(),$h),Vu=new Ur(Bb,GSe),Pw=_3,jJ=BTe,Vv=oy,lpt=Nae,pje=YTe,gje=(Rx(),tI),new Ur(JTe,gje),spt=Eae,opt=Cae,cpt=Mae,rpt=Tae,Ble=j0t,kJ=Jgt,TP=Ugt,mC=S0t,$o=Bgt,Rk=pgt,hC=ggt,Vj=Z1t,qSe=egt,Ele=rgt,jP=tgt,Cle=hgt,cje=e0t,lje=t0t,tje=Dgt,TJ=p0t,Lle=r0t,Nle=Cgt,aje=u0t,VSe=xgt,Mle=kgt,Tle=JP,uje=n0t,bJ=P1t,$Se=L1t,pJ=D1t,YSe=Ngt,KSe=Agt,ZSe=_gt,Xj=D3,go=N3,Jg=y2t,bd=Oae,x3=aV,HSe=ogt,Vg=Aae,lC=v2t,xJ=k2t,Rw=XTe,dje=j2t,Uv=T2t,ije=Fgt,rje=Hgt,Xv=Qk,kle=_1t,sje=Ggt,yJ=wgt,vJ=mgt,SJ=V1,nje=Igt,gC=o0t,MP=s7e,QSe=bgt,bje=b0t,JSe=vgt,Z0t=lgt,ept=ugt,ipt=$gt,tpt=agt,eje=jae,dC=zgt,wJ=fgt,Kd=Y1t,Sle=X1t,SP=R1t,Ole=$1t,mJ=W1t,uC=I1t,jle=K1t,Hv=V1t,fC=J1t,Y0t=U1t,Ik=B1t,aC=G1t,FSe=Q1t,BSe=z1t,zSe=q1t,WSe=Mgt}function Cnn(e,t,n,i,r,o,a){var d,b,v,x,T,A,L,I;return A=c(i.a,15).a,L=c(i.b,15).a,T=e.b,I=e.c,d=0,x=0,t==(_r(),po)||t==vo?(x=T_(WKe(K2(Qc(new Tt(null,new Et(n.b,16)),new k$),new UA))),T.e.b+T.f.b/2>x?(v=++L,d=de(be(mu(J2(Qc(new Tt(null,new Et(n.b,16)),new m$e(r,v)),new bm))))):(b=++A,d=de(be(mu(C4(Qc(new Tt(null,new Et(n.b,16)),new w$e(r,b)),new j8)))))):(x=T_(WKe(K2(Qc(new Tt(null,new Et(n.b,16)),new VA),new ZO))),T.e.a+T.f.a/2>x?(v=++L,d=de(be(mu(J2(Qc(new Tt(null,new Et(n.b,16)),new b$e(r,v)),new JA))))):(b=++A,d=de(be(mu(C4(Qc(new Tt(null,new Et(n.b,16)),new p$e(r,b)),new b$)))))),t==po?(Cs(e.a,new ze(de(be($(T,(Ii(),rh))))-r,d)),Cs(e.a,new ze(I.e.a+I.f.a+r+o,d)),Cs(e.a,new ze(I.e.a+I.f.a+r+o,I.e.b+I.f.b/2)),Cs(e.a,new ze(I.e.a+I.f.a,I.e.b+I.f.b/2))):t==vo?(Cs(e.a,new ze(de(be($(T,(Ii(),Af))))+r,T.e.b+T.f.b/2)),Cs(e.a,new ze(T.e.a+T.f.a+r,d)),Cs(e.a,new ze(I.e.a-r-o,d)),Cs(e.a,new ze(I.e.a-r-o,I.e.b+I.f.b/2)),Cs(e.a,new ze(I.e.a,I.e.b+I.f.b/2))):t==Ma?(Cs(e.a,new ze(d,de(be($(T,(Ii(),rh))))-r)),Cs(e.a,new ze(d,I.e.b+I.f.b+r+o)),Cs(e.a,new ze(I.e.a+I.f.a/2,I.e.b+I.f.b+r+o)),Cs(e.a,new ze(I.e.a+I.f.a/2,I.e.b+I.f.b+r))):(e.a.b==0||(c(df(e.a),8).b=de(be($(T,(Ii(),Af))))+r*c(a.b,15).a),Cs(e.a,new ze(d,de(be($(T,(Ii(),Af))))+r*c(a.b,15).a)),Cs(e.a,new ze(d,I.e.b-r*c(a.a,15).a-o))),new Is($e(A),$e(L))}function Mnn(e){var t,n,i,r,o,a,d,b,v,x,T,A,L;if(a=!0,T=null,i=null,r=null,t=!1,L=_vt,v=null,o=null,d=0,b=Ene(e,d,tEe,nEe),b<e.length&&(en(b,e.length),e.charCodeAt(b)==58)&&(T=(hs(d,b,e.length),e.substr(d,b-d)),d=b+1),n=T!=null&&wT(CV,T.toLowerCase()),n){if(b=e.lastIndexOf("!/"),b==-1)throw V(new qt("no archive separator"));a=!0,i=Fa(e,d,++b),d=b}else d>=0&&St(e.substr(d,2),"//")?(d+=2,b=Ene(e,d,rM,sM),i=(hs(d,b,e.length),e.substr(d,b-d)),d=b):T!=null&&(d==e.length||(en(d,e.length),e.charCodeAt(d)!=47))&&(a=!1,b=n0e(e,pl(35),d),b==-1&&(b=e.length),i=(hs(d,b,e.length),e.substr(d,b-d)),d=b);if(!n&&d<e.length&&(en(d,e.length),e.charCodeAt(d)==47)&&(b=Ene(e,d+1,rM,sM),x=(hs(d+1,b,e.length),e.substr(d+1,b-(d+1))),x.length>0&&ws(x,x.length-1)==58&&(r=x,d=b)),d<e.length&&(en(d,e.length),e.charCodeAt(d)==47)&&(++d,t=!0),d<e.length&&(en(d,e.length),e.charCodeAt(d)!=63)&&(en(d,e.length),e.charCodeAt(d)!=35)){for(A=new He;d<e.length&&(en(d,e.length),e.charCodeAt(d)!=63)&&(en(d,e.length),e.charCodeAt(d)!=35);)b=Ene(e,d,rM,sM),Qe(A,(hs(d,b,e.length),e.substr(d,b-d))),d=b,d<e.length&&(en(d,e.length),e.charCodeAt(d)==47)&&(U$t(e,++d)||A.c.push(""));L=ke(tt,Fe,2,A.c.length,6,1),xh(A,L)}return d<e.length&&(en(d,e.length),e.charCodeAt(d)==63)&&(b=F6(e,35,++d),b==-1&&(b=e.length),v=(hs(d,b,e.length),e.substr(d,b-d)),d=b),d<e.length&&(o=Hpe(e,++d)),cen(a,T,i,r,L,v),new Eie(a,T,i,r,t,L,v,o)}function xL(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me;if(Cc(e.b,t)){if($a(c(Ut(e.b,t),47),n))return 1}else ci(e.b,t,new Tr);if(Cc(e.b,n)){if($a(c(Ut(e.b,n),47),t))return-1}else ci(e.b,n,new Tr);if(Cc(e.g,t)){if($a(c(Ut(e.g,t),47),n))return-1}else ci(e.g,t,new Tr);if(Cc(e.g,n)){if($a(c(Ut(e.b,n),47),t))return 1}else ci(e.g,n,new Tr);if(e.e==(P1(),Kle)||!ki(t,(Ie(),Ri))||!ki(n,(Ie(),Ri))){for(A=null,x=new U(t.j);x.a<x.c.c.length;)if(b=c(G(x),12),b.e.c.length!=0&&c(Je(b.e,0),17).c.i.c.p==t.c.p-1){A=c(Je(b.e,0),17).c;break}for(I=null,v=new U(n.j);v.a<v.c.c.length;)if(b=c(G(v),12),b.e.c.length!=0&&c(Je(b.e,0),17).c.i.c.p==n.c.p-1){I=c(Je(b.e,0),17).c;break}if(A&&I){if(T=A.i,L=I.i,T&&T==L){for(Q=new U(T.j);Q.a<Q.c.c.length;){if(z=c(G(Q),12),z==A)return Eu(e,n,t),-1;if(z==I)return Eu(e,t,n),1}return r=eie(e,t),a=eie(e,n),r>a?(Eu(e,t,n),1):(Eu(e,n,t),-1)}for(re=e.f,le=0,me=re.length;le<me;++le){if(W=re[le],W==T)return Eu(e,n,t),-1;if(W==L)return Eu(e,t,n),1}}if(A&&!I||!A&&I){if(i=jot(e,t,n),i!=0)return i>0?Eu(e,t,n):Eu(e,n,t),i;if(!ki(t,(Ie(),Ri))||!ki(n,Ri))return o=eie(e,t),d=eie(e,n),o>d?(Eu(e,t,n),1):(Eu(e,n,t),-1)}if(!A&&!I&&(i=jot(e,t,n),i!=0))return i>0?Eu(e,t,n):Eu(e,n,t),i}return ki(t,(Ie(),Ri))&&ki(n,Ri)?(o=aw(t,n,e.c,c($(e.c,ep),15).a),d=aw(n,t,e.c,c($(e.c,ep),15).a),o>d?(Eu(e,t,n),1):(Eu(e,n,t),-1)):(Eu(e,n,t),-1)}function Sot(){Sot=Z,ire(),si=new Jm,jt(si,(Ue(),Pf),zh),jt(si,Za,zh),jt(si,Xl,zh),jt(si,If,zh),jt(si,kl,zh),jt(si,Wl,zh),jt(si,If,Pf),jt(si,zh,Aa),jt(si,Pf,Aa),jt(si,Za,Aa),jt(si,Xl,Aa),jt(si,xl,Aa),jt(si,If,Aa),jt(si,kl,Aa),jt(si,Wl,Aa),jt(si,ll,Aa),jt(si,zh,Wu),jt(si,Pf,Wu),jt(si,Aa,Wu),jt(si,Za,Wu),jt(si,Xl,Wu),jt(si,xl,Wu),jt(si,If,Wu),jt(si,ll,Wu),jt(si,Ku,Wu),jt(si,kl,Wu),jt(si,Rl,Wu),jt(si,Wl,Wu),jt(si,Pf,Za),jt(si,Xl,Za),jt(si,If,Za),jt(si,Wl,Za),jt(si,Pf,Xl),jt(si,Za,Xl),jt(si,If,Xl),jt(si,Xl,Xl),jt(si,kl,Xl),jt(si,zh,Na),jt(si,Pf,Na),jt(si,Aa,Na),jt(si,Wu,Na),jt(si,Za,Na),jt(si,Xl,Na),jt(si,xl,Na),jt(si,If,Na),jt(si,Ku,Na),jt(si,ll,Na),jt(si,Wl,Na),jt(si,kl,Na),jt(si,$c,Na),jt(si,zh,Ku),jt(si,Pf,Ku),jt(si,Aa,Ku),jt(si,Za,Ku),jt(si,Xl,Ku),jt(si,xl,Ku),jt(si,If,Ku),jt(si,ll,Ku),jt(si,Wl,Ku),jt(si,Rl,Ku),jt(si,$c,Ku),jt(si,Pf,ll),jt(si,Za,ll),jt(si,Xl,ll),jt(si,If,ll),jt(si,Ku,ll),jt(si,Wl,ll),jt(si,kl,ll),jt(si,zh,yl),jt(si,Pf,yl),jt(si,Aa,yl),jt(si,Za,yl),jt(si,Xl,yl),jt(si,xl,yl),jt(si,If,yl),jt(si,ll,yl),jt(si,Wl,yl),jt(si,Pf,kl),jt(si,Aa,kl),jt(si,Wu,kl),jt(si,Xl,kl),jt(si,zh,Rl),jt(si,Pf,Rl),jt(si,Wu,Rl),jt(si,Za,Rl),jt(si,Xl,Rl),jt(si,xl,Rl),jt(si,If,Rl),jt(si,If,$c),jt(si,Xl,$c),jt(si,ll,zh),jt(si,ll,Za),jt(si,ll,Aa),jt(si,xl,zh),jt(si,xl,Pf),jt(si,xl,Wu)}function Ann(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe;switch(n.Tg("Brandes & Koepf node placement",1),e.a=t,e.c=oYt(t),i=c($(t,(Ge(),Lle)),284),L=Ze(Ye($(t,gC))),e.d=i==(nL(),rJ)&&!L||i==sle,een(e,t),je=null,Oe=null,W=null,re=null,Q=(zu(4,Ev),new Gc(4)),c($(t,Lle),284).g){case 3:W=new Gx(t,e.c.d,(ph(),Rb),(Kh(),Xg)),It(Q.c,W);break;case 1:re=new Gx(t,e.c.d,(ph(),Dh),(Kh(),Xg)),It(Q.c,re);break;case 4:je=new Gx(t,e.c.d,(ph(),Rb),(Kh(),$w)),It(Q.c,je);break;case 2:Oe=new Gx(t,e.c.d,(ph(),Dh),(Kh(),$w)),It(Q.c,Oe);break;default:W=new Gx(t,e.c.d,(ph(),Rb),(Kh(),Xg)),re=new Gx(t,e.c.d,Dh,Xg),je=new Gx(t,e.c.d,Rb,$w),Oe=new Gx(t,e.c.d,Dh,$w),It(Q.c,je),It(Q.c,Oe),It(Q.c,W),It(Q.c,re)}for(r=new u$e(t,e.c),d=new U(Q);d.a<d.c.c.length;)o=c(G(d),188),qtn(r,o,e.b),$Yt(o);for(A=new FZe(t,e.c),b=new U(Q);b.a<b.c.c.length;)o=c(G(b),188),den(A,o);if(n.$g())for(v=new U(Q);v.a<v.c.c.length;)o=c(G(v),188),n.ah(o+" size is "+xie(o));if(T=null,e.d&&(x=Ltn(e,Q,e.c.d),Zrt(t,x,n)&&(T=x)),!T)for(v=new U(Q);v.a<v.c.c.length;)o=c(G(v),188),Zrt(t,o,n)&&(!T||xie(T)>xie(o))&&(T=o);for(!T&&(T=(ht(0,Q.c.length),c(Q.c[0],188))),z=new U(t.b);z.a<z.c.c.length;)for(I=c(G(z),26),me=new U(I.a);me.a<me.c.c.length;)le=c(G(me),9),le.n.b=de(T.p[le.p])+de(T.d[le.p]);for(n.$g()&&(n.ah("Chosen node placement: "+T),n.ah("Blocks: "+cnt(T)),n.ah("Classes: "+kJt(T,n)),n.ah("Marked edges: "+e.b)),a=new U(Q);a.a<a.c.c.length;)o=c(G(a),188),o.g=null,o.b=null,o.a=null,o.d=null,o.j=null,o.i=null,o.p=null;$Lt(e.c),e.b.a.$b(),n.Ug()}function jot(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt;if(t.k==(Jt(),Cr)&&n.k==ur)return o=c(Je(c(y4(_1(mi(new Tt(null,new Et(t.j,16)),new S5))),12).e,0),17).c,r=o.i,d=c(Je(c(y4(_1(mi(new Tt(null,new Et(t.j,16)),new g2))),12).g,0),17).d,a=d.i,i=t.c.p,r.c.p!=i&&a.c.p!=i?0:r==n||a==n?(Eu(e,t,n),1):xL(e,r,n);if(t.k==ur&&n.k==Cr)return o=c(Je(c(y4(_1(mi(new Tt(null,new Et(n.j,16)),new S5))),12).e,0),17).c,r=o.i,d=c(Je(c(y4(_1(mi(new Tt(null,new Et(n.j,16)),new g2))),12).g,0),17).d,a=d.i,i=t.c.p,r.c.p!=i&&a.c.p!=i?0:r==t||a==t?(Eu(e,n,t),-1):xL(e,t,r);if(t.k==Cr&&n.k==Cr){if(A=c(Je(c(y4(_1(mi(new Tt(null,new Et(t.j,16)),new S5))),12).e,0),17).c,L=c(Je(c(y4(_1(mi(new Tt(null,new Et(t.j,16)),new g2))),12).g,0),17).d,I=A.i,z=L.i,b=t.c.p,x=!1,T=!1,me=c(Je(c(y4(_1(mi(new Tt(null,new Et(n.j,16)),new S5))),12).e,0),17).c,je=c(Je(c(y4(_1(mi(new Tt(null,new Et(n.j,16)),new g2))),12).g,0),17).d,Oe=me.i,Xe=je.i,Q=n.c.p,re=!1,le=!1,v=t,W=n,I.c.p==b?(x=!0,v=I):z.c.p==b&&(T=!0,v=z),Oe.c.p==Q?(re=!0,W=Oe):Xe.c.p==Q&&(le=!0,W=Xe),v==W)if(e.a){if(x&&re)return Lt=Mot(new fme(e.c,e.f,e.e,null,le),A,me),Lt>0?(Eu(e,n,t),1):(Eu(e,t,n),-1);if(x&&le)return Eu(e,n,t),1;if(T&&re)return Eu(e,t,n),-1;if(T&&le)return 0}else for(wt=new U(v.j);wt.a<wt.c.c.length;){if(mt=c(G(wt),12),A==mt)return Eu(e,n,t),-1;if(me==mt)return Eu(e,t,n),1}return xL(e,v,W)}else return 0}function Nnn(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn;if(e.c.length==1)return sZe((ht(0,e.c.length),c(e.c[0],121))),ht(0,e.c.length),c(e.c[0],121);if(e.c.length<=0)return new hD;for(b=new U(e);b.a<b.c.c.length;){for(a=c(G(b),121),re=0,I=gi,z=gi,A=ls,L=ls,W=Pn(a.b,0);W.b!=W.d.c;)Q=c(Dn(W),41),re+=c($(Q,(Jo(),GJ)),15).a,I=p.Math.min(I,Q.e.a),z=p.Math.min(z,Q.e.b),A=p.Math.max(A,Q.e.a+Q.f.a),L=p.Math.max(L,Q.e.b+Q.f.b);Me(a,(Jo(),GJ),$e(re)),Me(a,(Ii(),n9),new ze(I,z)),Me(a,IP,new ze(A,L))}for(Mt(),Rr(e,new l$),je=new hD,nc(je,(ht(0,e.c.length),c(e.c[0],105))),T=0,Lt=0,v=new U(e);v.a<v.c.c.length;)a=c(G(v),121),Oe=Qr(As(c($(a,(Ii(),IP)),8)),c($(a,n9),8)),T=p.Math.max(T,Oe.a),Lt+=Oe.a*Oe.b;for(T=p.Math.max(T,p.Math.sqrt(Lt)*de(be($(je,(Jo(),Qbt))))),Xe=de(be($(je,wue))),Rt=0,fn=0,x=0,t=Xe,d=new U(e);d.a<d.c.c.length;)a=c(G(d),121),Oe=Qr(As(c($(a,(Ii(),IP)),8)),c($(a,n9),8)),Rt+Oe.a>T&&(Rt=0,fn+=x+Xe,x=0),hrt(je,a,Rt,fn),t=p.Math.max(t,Rt+Oe.a),x=p.Math.max(x,Oe.b),Rt+=Oe.a+Xe;for(me=new yn,n=new yn,wt=new U(e);wt.a<wt.c.c.length;)for(mt=c(G(wt),121),i=Ze(Ye($(mt,(In(),VP)))),le=mt.q?mt.q:Vd,o=le.vc().Jc();o.Ob();)r=c(o.Pb(),45),Cc(me,r.jd())?xe(c(r.jd(),149).Rg())!==xe(r.kd())&&(i&&Cc(n,r.jd())?(kg(),""+c(r.jd(),149).Og()):(ci(me,c(r.jd(),149),r.kd()),Me(je,c(r.jd(),149),r.kd()),i&&ci(n,c(r.jd(),149),r.kd()))):(ci(me,c(r.jd(),149),r.kd()),Me(je,c(r.jd(),149),r.kd()));return Dit(je,new gN),sZe(je),je}function oG(e,t){switch(e.e){case 0:case 2:case 4:case 6:case 42:case 44:case 46:case 48:case 8:case 10:case 12:case 14:case 16:case 18:case 20:case 22:case 24:case 26:case 28:case 30:case 32:case 34:case 36:case 38:return new fQe(e.b,e.a,t,e.c);case 1:return new HF(e.a,t,Ki(t.Ah(),e.c));case 43:return new WBe(e.a,t,Ki(t.Ah(),e.c));case 3:return new Nr(e.a,t,Ki(t.Ah(),e.c));case 45:return new Cl(e.a,t,Ki(t.Ah(),e.c));case 41:return new Nl(c(Qa(e.c),29),e.a,t,Ki(t.Ah(),e.c));case 50:return new EXe(c(Qa(e.c),29),e.a,t,Ki(t.Ah(),e.c));case 5:return new P0e(e.a,t,Ki(t.Ah(),e.c),e.d.n);case 47:return new hFe(e.a,t,Ki(t.Ah(),e.c),e.d.n);case 7:return new _e(e.a,t,Ki(t.Ah(),e.c),e.d.n);case 49:return new O4(e.a,t,Ki(t.Ah(),e.c),e.d.n);case 9:return new KBe(e.a,t,Ki(t.Ah(),e.c));case 11:return new ZBe(e.a,t,Ki(t.Ah(),e.c));case 13:return new Xge(e.a,t,Ki(t.Ah(),e.c));case 15:return new sq(e.a,t,Ki(t.Ah(),e.c));case 17:return new YBe(e.a,t,Ki(t.Ah(),e.c));case 19:return new kx(e.a,t,Ki(t.Ah(),e.c));case 21:return new Vge(e.a,t,Ki(t.Ah(),e.c));case 23:return new K_(e.a,t,Ki(t.Ah(),e.c));case 25:return new pFe(e.a,t,Ki(t.Ah(),e.c),e.d.n);case 27:return new Ct(e.a,t,Ki(t.Ah(),e.c),e.d.n);case 29:return new gFe(e.a,t,Ki(t.Ah(),e.c),e.d.n);case 31:return new dFe(e.a,t,Ki(t.Ah(),e.c),e.d.n);case 33:return new R0e(e.a,t,Ki(t.Ah(),e.c),e.d.n);case 35:return new I0e(e.a,t,Ki(t.Ah(),e.c),e.d.n);case 37:return new BZ(e.a,t,Ki(t.Ah(),e.c),e.d.n);case 39:return new Sq(e.a,t,Ki(t.Ah(),e.c),e.d.n);case 40:return new gr(t,Ki(t.Ah(),e.c));default:throw V(new Ao("Unknown feature style: "+e.e))}}function _nn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn,ti;for(d=new _i,Xe=c($(n,(Ge(),Vu)),87),Q=0,i=new Tr,Ss(d,(!t.a&&(t.a=new _e(_n,t,10,11)),t.a));d.b!=0;)T=c(d.b==0?null:(gn(d.b!=0),ma(d,d.a.a)),19),x=Wi(T),ZQ(x)&&!Ze(Ye(Se(T,mJ)))&&(ri(T,(Ie(),Ri),$e(Q++)),pa(T,Hv)&&Er(i,c(Se(T,Hv),15))),re=!Ze(Ye(Se(T,Lb))),re&&(L=(!T.a&&(T.a=new _e(_n,T,10,11)),T.a).i!=0,z=yQt(T),I=xe(Se(T,Qv))===xe((D1(),Yg)),ti=!pa(T,(In(),Hk))||XUe(qn(Se(T,Hk))),je=null,ti&&I&&(L||z)&&(je=Brt(T),Me(je,Vu,Xe),ki(je,EP)&&XPe(new Kwe(de(be($(je,EP)))),je),c(Se(T,Db),185).gc()!=0&&(A=je,hr(new Tt(null,(!T.c&&(T.c=new _e(fu,T,9,9)),new Et(T.c,16))),new i_e(A)),jit(T,je))),mt=n,wt=c(Ut(e.a,Wi(T)),9),wt&&(mt=wt.e),me=Vst(e,T,mt),je&&(me.e=je,je.e=me,Ss(d,(!T.a&&(T.a=new _e(_n,T,10,11)),T.a))));for(Me(n,(Ie(),ep),$e(Q)),Me(n,yP,$e(i.a.gc())),Q=0,rr(d,t,d.c.b,d.c);d.b!=0;){for(a=c(d.b==0?null:(gn(d.b!=0),ma(d,d.a.a)),19),v=new on((!a.b&&(a.b=new _e($i,a,12,3)),a.b));v.e!=v.i.gc();)b=c(un(v),74),Zit(b),ZQ(t)&&ri(b,Ri,$e(Q++)),Rt=no(c(ce((!b.b&&(b.b=new Ct(xn,b,4,7)),b.b),0),83)),fn=no(c(ce((!b.c&&(b.c=new Ct(xn,b,5,8)),b.c),0),83)),!(Ze(Ye(Se(b,Lb)))||Ze(Ye(Se(Rt,Lb)))||Ze(Ye(Se(fn,Lb))))&&(W=lw(b)&&Ze(Ye(Se(Rt,Gv)))&&Ze(Ye(Se(b,_b))),Oe=a,W||sv(fn,Rt)?Oe=Rt:sv(Rt,fn)&&(Oe=fn),mt=n,wt=c(Ut(e.a,Oe),9),wt&&(mt=wt.e),le=Exe(e,b,Oe,mt),Me(le,U6e,_Xt(e,b,t,n)));if(I=xe(Se(a,Qv))===xe((D1(),Yg)),I)for(o=new on((!a.a&&(a.a=new _e(_n,a,10,11)),a.a));o.e!=o.i.gc();)r=c(un(o),19),ti=!pa(r,(In(),Hk))||XUe(qn(Se(r,Hk))),Lt=xe(Se(r,Qv))===xe(Yg),ti&&Lt&&rr(d,r,d.c.b,d.c)}}function Tot(e){var t,n,i,r,o,a,d,b;for(o=0,r=e.a.b,b=Pn(e.a,0);b.b!=b.d.c;){if(d=c(Dn(b),243),a=(o+1)/(r+1),!e.c&&!e.d)return;e.c&&!e.d?(e.g=!0,e.b==(_r(),po)?(i=e.c.e.b+e.c.f.b+e.e*(o+1),t=new ze(de(be($(e.c,(Ii(),Af))))+e.e,i),n=new ze(de(be($(e.c,rh)))-e.e,i)):e.b==vo?(i=e.c.e.b+e.c.f.b+e.e*(o+1),t=new ze(de(be($(e.c,(Ii(),rh))))-e.e,i),n=new ze(de(be($(e.c,Af)))+e.e,i)):e.b==Ma?(i=e.c.e.a+e.c.f.a+e.e*(o+1),t=new ze(i,de(be($(e.c,(Ii(),Af))))+e.e),n=new ze(i,de(be($(e.c,rh)))-e.e)):(i=e.c.e.a+e.c.f.a+e.e*(o+1),t=new ze(i,de(be($(e.c,(Ii(),rh))))-e.e),n=new ze(i,de(be($(e.c,Af)))+e.e))):e.c&&e.d?e.b==(_r(),po)?(i=e.d.e.b*a+(e.c.e.b+e.c.f.b)*(1-a),t=new ze(de(be($(e.c,(Ii(),Af))))+e.e,i),n=new ze(de(be($(e.c,rh)))-e.e,i)):e.b==vo?(i=e.d.e.b*a+(e.c.e.b+e.c.f.b)*(1-a),t=new ze(de(be($(e.c,(Ii(),rh))))-e.e,i),n=new ze(de(be($(e.c,Af)))+e.e,i)):e.b==Ma?(i=e.d.e.a*a+(e.c.e.a+e.c.f.a)*(1-a),t=new ze(i,de(be($(e.c,(Ii(),Af))))+e.e),n=new ze(i,de(be($(e.c,rh)))-e.e)):(i=e.d.e.a*a+(e.c.e.a+e.c.f.a)*(1-a),t=new ze(i,de(be($(e.c,(Ii(),rh))))-e.e),n=new ze(i,de(be($(e.c,Af)))+e.e)):(e.f=!0,e.b==(_r(),po)?(i=e.d.e.b-e.e*(o+1),t=new ze(de(be($(e.d,(Ii(),Af))))+e.e,i),n=new ze(de(be($(e.d,rh)))-e.e,i)):e.b==vo?(i=e.d.e.b-e.e*(o+1),t=new ze(de(be($(e.d,(Ii(),rh))))-e.e,i),n=new ze(de(be($(e.d,Af)))+e.e,i)):e.b==Ma?(i=e.d.e.a-e.e*(o+1),t=new ze(i,de(be($(e.d,(Ii(),Af))))+e.e),n=new ze(i,de(be($(e.d,rh)))-e.e)):(i=e.d.e.a-e.e*(o+1),t=new ze(i,de(be($(e.d,(Ii(),rh))))-e.e),n=new ze(i,de(be($(e.d,Af)))+e.e))),c(d.a,8).a=t.a,c(d.a,8).b=t.b,d.b.a=n.a,d.b.b=n.b,++o}}function Dnn(e,t,n,i,r,o){var a,d,b,v,x,T,A,L,I,z,Q,W;switch(t){case 71:d=i.q.getFullYear()-H0>=-1900?1:0,n>=4?Zn(e,Y(K(tt,1),Fe,2,6,[Qot,Got])[d]):Zn(e,Y(K(tt,1),Fe,2,6,["BC","AD"])[d]);break;case 121:cFt(e,n,i);break;case 77:uKt(e,n,i);break;case 107:b=r.q.getHours(),b==0?$d(e,24,n):$d(e,b,n);break;case 83:jVt(e,n,r);break;case 69:x=i.q.getDay(),n==5?Zn(e,Y(K(tt,1),Fe,2,6,["S","M","T","W","T","F","S"])[x]):n==4?Zn(e,Y(K(tt,1),Fe,2,6,[Sre,jre,Tre,Ere,Cre,Mre,Are])[x]):Zn(e,Y(K(tt,1),Fe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[x]);break;case 97:r.q.getHours()>=12&&r.q.getHours()<24?Zn(e,Y(K(tt,1),Fe,2,6,["AM","PM"])[1]):Zn(e,Y(K(tt,1),Fe,2,6,["AM","PM"])[0]);break;case 104:T=r.q.getHours()%12,T==0?$d(e,12,n):$d(e,T,n);break;case 75:A=r.q.getHours()%12,$d(e,A,n);break;case 72:L=r.q.getHours(),$d(e,L,n);break;case 99:I=i.q.getDay(),n==5?Zn(e,Y(K(tt,1),Fe,2,6,["S","M","T","W","T","F","S"])[I]):n==4?Zn(e,Y(K(tt,1),Fe,2,6,[Sre,jre,Tre,Ere,Cre,Mre,Are])[I]):n==3?Zn(e,Y(K(tt,1),Fe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[I]):$d(e,I,1);break;case 76:z=i.q.getMonth(),n==5?Zn(e,Y(K(tt,1),Fe,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[z]):n==4?Zn(e,Y(K(tt,1),Fe,2,6,[dre,gre,pre,bre,ak,mre,wre,vre,yre,xre,kre,Ore])[z]):n==3?Zn(e,Y(K(tt,1),Fe,2,6,["Jan","Feb","Mar","Apr",ak,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[z]):$d(e,z+1,n);break;case 81:Q=i.q.getMonth()/3|0,n<4?Zn(e,Y(K(tt,1),Fe,2,6,["Q1","Q2","Q3","Q4"])[Q]):Zn(e,Y(K(tt,1),Fe,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[Q]);break;case 100:W=i.q.getDate(),$d(e,W,n);break;case 109:v=r.q.getMinutes(),$d(e,v,n);break;case 115:a=r.q.getSeconds(),$d(e,a,n);break;case 122:n<4?Zn(e,o.c[0]):Zn(e,o.c[1]);break;case 118:Zn(e,o.b);break;case 90:n<3?Zn(e,jUt(o)):n==3?Zn(e,MUt(o)):Zn(e,DUt(o.a));break;default:return!1}return!0}function Exe(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn,ti;if(Zit(t),b=c(ce((!t.b&&(t.b=new Ct(xn,t,4,7)),t.b),0),83),x=c(ce((!t.c&&(t.c=new Ct(xn,t,5,8)),t.c),0),83),d=no(b),v=no(x),a=(!t.a&&(t.a=new _e(Gi,t,6,6)),t.a).i==0?null:c(ce((!t.a&&(t.a=new _e(Gi,t,6,6)),t.a),0),171),Xe=c(Ut(e.a,d),9),Rt=c(Ut(e.a,v),9),mt=null,fn=null,ae(b,196)&&(Oe=c(Ut(e.a,b),248),ae(Oe,12)?mt=c(Oe,12):ae(Oe,9)&&(Xe=c(Oe,9),mt=c(Je(Xe.j,0),12))),ae(x,196)&&(Lt=c(Ut(e.a,x),248),ae(Lt,12)?fn=c(Lt,12):ae(Lt,9)&&(Rt=c(Lt,9),fn=c(Je(Rt.j,0),12))),!Xe||!Rt)throw V(new u4("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(z=new Gm,nc(z,t),Me(z,(Ie(),Si),t),Me(z,(Ge(),go),null),L=c($(i,Rc),24),Xe==Rt&&L.Ec((Us(),nC)),mt||(je=(Gs(),Yc),wt=null,a&&wx(c($(Xe,ar),103))&&(wt=new ze(a.j,a.k),pUe(wt,Y2(t)),qUe(wt,n),sv(v,d)&&(je=Vl,Oi(wt,Xe.n))),mt=sst(Xe,wt,je,i)),fn||(je=(Gs(),Vl),ti=null,a&&wx(c($(Rt,ar),103))&&(ti=new ze(a.b,a.c),pUe(ti,Y2(t)),qUe(ti,n)),fn=sst(Rt,ti,je,Vr(Rt))),Os(z,mt),ss(z,fn),(mt.e.c.length>1||mt.g.c.length>1||fn.e.c.length>1||fn.g.c.length>1)&&L.Ec((Us(),tC)),A=new on((!t.n&&(t.n=new _e(zo,t,1,7)),t.n));A.e!=A.i.gc();)if(T=c(un(A),158),!Ze(Ye(Se(T,Lb)))&&T.a)switch(Q=one(T),Qe(z.b,Q),c($(Q,bd),281).g){case 1:case 2:L.Ec((Us(),Gj));break;case 0:L.Ec((Us(),Qj)),Me(Q,bd,(yh(),h9))}if(o=c($(i,hC),302),W=c($(i,TJ),329),r=o==(I7(),pP)||W==(B7(),Xle),a&&(!a.a&&(a.a=new Nr(Yu,a,5)),a.a).i!=0&&r){for(re=SGt(a),I=new tu,me=Pn(re,0);me.b!=me.d.c;)le=c(Dn(me),8),ei(I,new Ms(le));Me(z,W6e,I)}return z}function Lnn(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn,ti,tr;for(wt=0,Lt=0,Xe=new yn,je=c(mu(J2(Qc(new Tt(null,new Et(e.b,16)),new m$),new S8)),15).a+1,mt=ke(Hn,li,30,je,15,1),Q=ke(Hn,li,30,je,15,1),z=0;z<je;z++)mt[z]=0,Q[z]=0;for(b=c(Hl(pbe(new Tt(null,new Et(e.a,16))),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[(ya(),wl)]))),16),x=b.Jc();x.Ob();)if(v=c(x.Pb(),65),fn=c($(v.b,(Jo(),md)),15).a,tr=c($(v.c,md),15).a,me=tr-fn,me>1)for(d=fn+1;d<tr;d++){if(T=d,Oe=c(Hl(mi(new Tt(null,new Et(e.b,16)),new BDe(T)),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[wl]))),16),I=0,t==(_r(),po)||t==vo){for(Oe.gd(new x$),I=0;I<Oe.gc()&&(W=(d-fn)/(tr-fn),!(c(Oe.Xb(I),41).e.b>v.b.e.b*(1-W)+v.c.e.b*W));I++);if(Oe.gc()>0&&(ti=v.a.b==0?As(v.b.e):c(df(v.a),8),le=Oi(As(c(Oe.Xb(Oe.gc()-1),41).e),c(Oe.Xb(Oe.gc()-1),41).f),A=Oi(As(c(Oe.Xb(0),41).e),c(Oe.Xb(0),41).f),I>=Oe.gc()-1&&ti.b>le.b&&v.c.e.b>le.b||I<=0&&ti.b<A.a&&v.c.e.b<A.b))continue}else{for(Oe.gd(new XA),I=0;I<Oe.gc()&&(W=(d-fn)/(tr-fn),!(c(Oe.Xb(I),41).e.a>v.b.e.a*(1-W)+v.c.e.a*W));I++);if(Oe.gc()>0&&(ti=v.a.b==0?As(v.b.e):c(df(v.a),8),le=Oi(As(c(Oe.Xb(Oe.gc()-1),41).e),c(Oe.Xb(Oe.gc()-1),41).f),A=Oi(As(c(Oe.Xb(0),41).e),c(Oe.Xb(0),41).f),I>=Oe.gc()-1&&ti.a>le.a&&v.c.e.a>le.a||I<=0&&ti.a<A.a&&v.c.e.a<A.a))continue}r=new fs,o=new fs,ei(v.a,r),ei(v.a,o),a=new JZ(r,o,v),re=Zh(Ld(d,32),Zr(I,Js)),Cc(Xe,gv(re))?(L=c(Ut(Xe,gv(re)),669),ei(L.a,a),v1(L.b)?sb(L.a,new O$):sb(L.a,new S$),Tot(L)):(L=new yZe(I==0?null:c(Oe.Xb(I-1),41),I==Oe.gc()?null:c(Oe.Xb(I),41),a,e),ci(Xe,gv(re),L)),t==po||t==vo?(L.f&&L.d.e.b<=de(be($(e,(Ii(),gue))))&&++wt,L.g&&L.c.e.b+L.c.f.b>=de(be($(e,(Ii(),x9e))))&&++Lt):(L.f&&L.d.e.a<=de(be($(e,(Ii(),due))))&&++wt,L.g&&L.c.e.a+L.c.f.a>=de(be($(e,(Ii(),y9e))))&&++Lt)}else me==0?Hve(v):me<0&&(++mt[fn],++Q[tr],Rt=Cnn(v,t,e,new Is($e(wt),$e(Lt)),n,i,new Is($e(Q[tr]),$e(mt[fn]))),wt=c(Rt.a,15).a,Lt=c(Rt.b,15).a)}function Pnn(e){e.gb||(e.gb=!0,e.b=Uo(e,0),lr(e.b,18),qi(e.b,19),e.a=Uo(e,1),lr(e.a,1),qi(e.a,2),qi(e.a,3),qi(e.a,4),qi(e.a,5),e.o=Uo(e,2),lr(e.o,8),lr(e.o,9),qi(e.o,10),qi(e.o,11),qi(e.o,12),qi(e.o,13),qi(e.o,14),qi(e.o,15),qi(e.o,16),qi(e.o,17),qi(e.o,18),qi(e.o,19),qi(e.o,20),qi(e.o,21),qi(e.o,22),qi(e.o,23),fo(e.o),fo(e.o),fo(e.o),fo(e.o),fo(e.o),fo(e.o),fo(e.o),fo(e.o),fo(e.o),fo(e.o),e.p=Uo(e,3),lr(e.p,2),lr(e.p,3),lr(e.p,4),lr(e.p,5),qi(e.p,6),qi(e.p,7),fo(e.p),fo(e.p),e.q=Uo(e,4),lr(e.q,8),e.v=Uo(e,5),qi(e.v,9),fo(e.v),fo(e.v),fo(e.v),e.w=Uo(e,6),lr(e.w,2),lr(e.w,3),lr(e.w,4),qi(e.w,5),e.B=Uo(e,7),qi(e.B,1),fo(e.B),fo(e.B),fo(e.B),e.Q=Uo(e,8),qi(e.Q,0),fo(e.Q),e.R=Uo(e,9),lr(e.R,1),e.S=Uo(e,10),fo(e.S),fo(e.S),fo(e.S),fo(e.S),fo(e.S),fo(e.S),fo(e.S),fo(e.S),fo(e.S),fo(e.S),fo(e.S),fo(e.S),fo(e.S),fo(e.S),fo(e.S),e.T=Uo(e,11),qi(e.T,10),qi(e.T,11),qi(e.T,12),qi(e.T,13),qi(e.T,14),fo(e.T),fo(e.T),e.U=Uo(e,12),lr(e.U,2),lr(e.U,3),qi(e.U,4),qi(e.U,5),qi(e.U,6),qi(e.U,7),fo(e.U),e.V=Uo(e,13),qi(e.V,10),e.W=Uo(e,14),lr(e.W,18),lr(e.W,19),lr(e.W,20),qi(e.W,21),qi(e.W,22),qi(e.W,23),e.bb=Uo(e,15),lr(e.bb,10),lr(e.bb,11),lr(e.bb,12),lr(e.bb,13),lr(e.bb,14),lr(e.bb,15),lr(e.bb,16),qi(e.bb,17),fo(e.bb),fo(e.bb),e.eb=Uo(e,16),lr(e.eb,2),lr(e.eb,3),lr(e.eb,4),lr(e.eb,5),lr(e.eb,6),lr(e.eb,7),qi(e.eb,8),qi(e.eb,9),e.ab=Uo(e,17),lr(e.ab,0),lr(e.ab,1),e.H=Uo(e,18),qi(e.H,0),qi(e.H,1),qi(e.H,2),qi(e.H,3),qi(e.H,4),qi(e.H,5),fo(e.H),e.db=Uo(e,19),qi(e.db,2),e.c=hi(e,20),e.d=hi(e,21),e.e=hi(e,22),e.f=hi(e,23),e.i=hi(e,24),e.g=hi(e,25),e.j=hi(e,26),e.k=hi(e,27),e.n=hi(e,28),e.r=hi(e,29),e.s=hi(e,30),e.t=hi(e,31),e.u=hi(e,32),e.fb=hi(e,33),e.A=hi(e,34),e.C=hi(e,35),e.D=hi(e,36),e.F=hi(e,37),e.G=hi(e,38),e.I=hi(e,39),e.J=hi(e,40),e.L=hi(e,41),e.M=hi(e,42),e.N=hi(e,43),e.O=hi(e,44),e.P=hi(e,45),e.X=hi(e,46),e.Y=hi(e,47),e.Z=hi(e,48),e.$=hi(e,49),e._=hi(e,50),e.cb=hi(e,51),e.K=hi(e,52))}function Eot(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le;if(est(e,t),(!t.e&&(t.e=new Ct($i,t,7,4)),t.e).i!=0){for(d=new He,L=0;L<(!t.e&&(t.e=new Ct($i,t,7,4)),t.e).i;L++)r=c(ce(eS(c(ce((!t.e&&(t.e=new Ct($i,t,7,4)),t.e),L),74)),0),19),Eot(e,r),It(d.c,r);for(b=d.c.length,I=0;I<d.c.length-1;I++)Qst((ht(0,d.c.length),c(d.c[0],19)),(ht(I,d.c.length),c(d.c[I],19)),(ht(I+1,d.c.length),c(d.c[I+1],19)));for(Q=((ht(0,d.c.length),c(d.c[0],19)).mh()+(ht(0,d.c.length),c(d.c[0],19)).lh()/2+c(Je(d,d.c.length-1),19).mh()+c(Je(d,d.c.length-1),19).lh()/2-t.g)/2-t.i,a=new U(d);a.a<a.c.c.length;)r=c(G(a),19),Nc(r,r.i-Q),ri(r,(zd(),zw),c(Se(r,$b),107).a);for(A=0;A<b-1&&(ht(A,d.c.length),c(d.c[A],19)).mh()+(ht(A,d.c.length),c(d.c[A],19)).lh()+c((ht(A,d.c.length),c(d.c[A],19)).mf((In(),V1)),125).c-t.g/2<=0;)++A;for(v=de(be((ht(A,d.c.length),c(d.c[A],19)).mf((zd(),zw)))),i=0;i<b;i++)v<de(be((ht(i,d.c.length),c(d.c[i],19)).mf(zw)))?(ht(i,d.c.length),c(d.c[i],19)).of(zw,v):v=de(be((ht(i,d.c.length),c(d.c[i],19)).mf(zw)));for(A=b-1;A>0&&(ht(A,d.c.length),c(d.c[A],19)).mh()-c((ht(A,d.c.length),c(d.c[A],19)).mf((In(),V1)),125).b-t.g/2>=0;)--A;if(A<b)for(n=A;n>=0;n--)v<de(be((ht(n,d.c.length),c(d.c[n],19)).mf(zw)))?(ht(n,d.c.length),c(d.c[n],19)).of(zw,v):v=de(be((ht(n,d.c.length),c(d.c[n],19)).mf(zw)));for(z=c((ht(0,d.c.length),c(d.c[0],19)).mf($b),107),x=c(Se(t,$b),107),re=(ht(0,d.c.length),c(d.c[0],19)).mh()+z.c-x.c,W=new vu(0,z.a,z.b),Z5(x.b.b.b,new vu(re,de(be((ht(0,d.c.length),c(d.c[0],19)).mf(zw))),W)),T=c(Se(t,ny),107),le=c((ht(b-1,d.c.length),c(d.c[b-1],19)).mf(ny),107),re=(ht(b-1,d.c.length),c(d.c[b-1],19)).mh()+le.c-T.c,W=new vu(0,le.a,le.b),Z5(T.b.b.b,new vu(re,de(be((ht(b-1,d.c.length),c(d.c[b-1],19)).mf(zw))),W)),o=new U(d);o.a<o.c.c.length;)r=c(G(o),19),ri(t,wd,p.Math.max(de(be(Se(t,wd))),de(be(Se(r,wd))))),ri(t,o9,p.Math.min(de(be(Se(t,o9))),r.i+de(be(Se(r,o9))))),ri(t,s9,p.Math.max(de(be(Se(t,s9))),r.i+de(be(Se(r,s9)))));ri(t,rae,be(Se(t,wd)))}}function Cot(e,t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt;if(est(e,t),(!t.e&&(t.e=new Ct($i,t,7,4)),t.e).i!=0){for(a=new He,x=0;x<(!t.e&&(t.e=new Ct($i,t,7,4)),t.e).i;x++)i=c(ce(eS(c(ce((!t.e&&(t.e=new Ct($i,t,7,4)),t.e),x),74)),0),19),Cot(e,i),It(a.c,i);for(bYt(e,a),T=0;T<a.c.length-1;T++)Qst((ht(0,a.c.length),c(a.c[0],19)),(ht(T,a.c.length),c(a.c[T],19)),(ht(T+1,a.c.length),c(a.c[T+1],19)));for(je=0,Q=0,W=0;je<a.c.length&&(ht(je,a.c.length),c(a.c[je],19)).nh()>=Q;)(ht(je,a.c.length),c(a.c[je],19)).nh()>Q&&(W=je,Q=(ht(je,a.c.length),c(a.c[je],19)).nh()),je+=1;if(re=0,je>0&&(re=((ht(W,a.c.length),c(a.c[W],19)).mh()+(ht(je-1,a.c.length),c(a.c[je-1],19)).mh()+(ht(je-1,a.c.length),c(a.c[je-1],19)).lh())/2-t.i-t.g/2),!Ze(Ye(Se(t,(Z4(),uae))))){if(n=((ht(0,a.c.length),c(a.c[0],19)).mh()+c(Je(a,a.c.length-1),19).mh()+c(Je(a,a.c.length-1),19).lh()-t.g)/2-t.i,n<re){for(v=0;v<W;v++)for(A=v+1;A<W+1;A++)for(mt=c((ht(v,a.c.length),c(a.c[v],19)).mf((zd(),ny)),107),wt=(ht(v,a.c.length),c(a.c[v],19)).mh()+mt.c,Oe=(ht(A,a.c.length),c(a.c[A],19)).mh()+(ht(A,a.c.length),c(a.c[A],19)).lh()/2;mt&&mt.a<Q;)le=Oe-t.g/2+(Oe-wt)*(t.j+t.f-Q)/(Q-mt.a),n=p.Math.max(n,le),mt=mt.b,mt&&(wt+=mt.c);re=n}if(n>re){for(v=je;v<a.c.length;v++)for(A=je-1;A<v;A++)for(I=c((ht(v,a.c.length),c(a.c[v],19)).mf((zd(),$b)),107),z=(ht(v,a.c.length),c(a.c[v],19)).mh()+I.c,Oe=(ht(A,a.c.length),c(a.c[A],19)).mh()+(ht(A,a.c.length),c(a.c[A],19)).lh()/2;I&&I.a<Q;)le=Oe-t.g/2+(Oe-z)*(t.j+t.f-Q)/(Q-I.a),n=p.Math.min(n,le),I=I.b,I&&(z+=I.c);re=n}}for(o=new U(a);o.a<o.c.c.length;)i=c(G(o),19),Nc(i,i.i-re);for(d=c(Se(t,(zd(),$b)),107),L=c((ht(0,a.c.length),c(a.c[0],19)).mf($b),107),me=(ht(0,a.c.length),c(a.c[0],19)).mh()+L.c-d.c,Z5(d.b.b.b,new vu(me,L.a,L.b)),b=c(Se(t,ny),107),Xe=c(c(Je(a,a.c.length-1),19).mf(ny),107),me=c(Je(a,a.c.length-1),19).mh()+Xe.c-b.c,Z5(b.b.b.b,new vu(me,Xe.a,Xe.b)),r=new U(a);r.a<r.c.c.length;)i=c(G(r),19),ri(t,wd,p.Math.max(de(be(Se(t,wd))),de(be(Se(i,wd))))),ri(t,o9,p.Math.min(de(be(Se(t,o9))),i.i+de(be(Se(i,o9))))),ri(t,s9,p.Math.max(de(be(Se(t,s9))),i.i+de(be(Se(i,s9)))));ri(t,rae,be(Se(t,wd)))}}function Inn(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I;for(T=Pn(e.b,0);T.b!=T.d.c;)if(x=c(Dn(T),41),!St(x.c,zG))for(o=c(Hl(new Tt(null,new Et(HUt(x,e),16)),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[(ya(),wl)]))),16),t==(_r(),po)||t==vo?o.gd(new v$):o.gd(new y$),I=o.gc(),r=0;r<I;r++)a=I==1?.5:(1+r)/(I+1),t==po?(v=de(be($(x,(Ii(),Af)))),x.e.a+x.f.a+i<v?Cs(c(o.Xb(r),65).a,new ze(v+n,x.e.b+x.f.b*a)):c(o.Xb(r),65).a.b>0&&(d=c(df(c(o.Xb(r),65).a),8).a,A=x.e.a+x.f.a/2,b=c(df(c(o.Xb(r),65).a),8).b,L=x.e.b+x.f.b/2,i>0&&p.Math.abs(b-L)/(p.Math.abs(d-A)/40)>50&&(L>b?Cs(c(o.Xb(r),65).a,new ze(x.e.a+x.f.a+i/5.3,x.e.b+x.f.b*a-i/2)):Cs(c(o.Xb(r),65).a,new ze(x.e.a+x.f.a+i/5.3,x.e.b+x.f.b*a+i/2)))),Cs(c(o.Xb(r),65).a,new ze(x.e.a+x.f.a,x.e.b+x.f.b*a))):t==vo?(v=de(be($(x,(Ii(),rh)))),x.e.a-i>v?Cs(c(o.Xb(r),65).a,new ze(v-n,x.e.b+x.f.b*a)):c(o.Xb(r),65).a.b>0&&(d=c(df(c(o.Xb(r),65).a),8).a,A=x.e.a+x.f.a/2,b=c(df(c(o.Xb(r),65).a),8).b,L=x.e.b+x.f.b/2,i>0&&p.Math.abs(b-L)/(p.Math.abs(d-A)/40)>50&&(L>b?Cs(c(o.Xb(r),65).a,new ze(x.e.a-i/5.3,x.e.b+x.f.b*a-i/2)):Cs(c(o.Xb(r),65).a,new ze(x.e.a-i/5.3,x.e.b+x.f.b*a+i/2)))),Cs(c(o.Xb(r),65).a,new ze(x.e.a,x.e.b+x.f.b*a))):t==Ma?(v=de(be($(x,(Ii(),Af)))),x.e.b+x.f.b+i<v?Cs(c(o.Xb(r),65).a,new ze(x.e.a+x.f.a*a,v+n)):c(o.Xb(r),65).a.b>0&&(d=c(df(c(o.Xb(r),65).a),8).a,A=x.e.a+x.f.a/2,b=c(df(c(o.Xb(r),65).a),8).b,L=x.e.b+x.f.b/2,i>0&&p.Math.abs(d-A)/(p.Math.abs(b-L)/40)>50&&(A>d?Cs(c(o.Xb(r),65).a,new ze(x.e.a+x.f.a*a-i/2,x.e.b+i/5.3+x.f.b)):Cs(c(o.Xb(r),65).a,new ze(x.e.a+x.f.a*a+i/2,x.e.b+i/5.3+x.f.b)))),Cs(c(o.Xb(r),65).a,new ze(x.e.a+x.f.a*a,x.e.b+x.f.b))):(v=de(be($(x,(Ii(),rh)))),FWe(c(o.Xb(r),65),e)?Cs(c(o.Xb(r),65).a,new ze(x.e.a+x.f.a*a,c(df(c(o.Xb(r),65).a),8).b)):x.e.b-i>v?Cs(c(o.Xb(r),65).a,new ze(x.e.a+x.f.a*a,v-n)):c(o.Xb(r),65).a.b>0&&(d=c(df(c(o.Xb(r),65).a),8).a,A=x.e.a+x.f.a/2,b=c(df(c(o.Xb(r),65).a),8).b,L=x.e.b+x.f.b/2,i>0&&p.Math.abs(d-A)/(p.Math.abs(b-L)/40)>50&&(A>d?Cs(c(o.Xb(r),65).a,new ze(x.e.a+x.f.a*a-i/2,x.e.b-i/5.3)):Cs(c(o.Xb(r),65).a,new ze(x.e.a+x.f.a*a+i/2,x.e.b-i/5.3)))),Cs(c(o.Xb(r),65).a,new ze(x.e.a+x.f.a*a,x.e.b)))}function Mot(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe;if(a=t,A=n,Cc(e.a,a)){if($a(c(Ut(e.a,a),47),A))return 1}else ci(e.a,a,new Tr);if(Cc(e.a,A)){if($a(c(Ut(e.a,A),47),a))return-1}else ci(e.a,A,new Tr);if(Cc(e.e,a)){if($a(c(Ut(e.e,a),47),A))return-1}else ci(e.e,a,new Tr);if(Cc(e.e,A)){if($a(c(Ut(e.a,A),47),a))return 1}else ci(e.e,A,new Tr);if(a.j!=A.j)return je=tTt(a.j,A.j),je>0?Oa(e,a,A,1):Oa(e,A,a,1),je;if(Oe=1,a.e.c.length!=0&&A.e.c.length!=0){if((a.j==(Ue(),Yt)&&A.j==Yt||a.j==Kt&&A.j==Kt||a.j==mn&&A.j==mn)&&(Oe=-Oe),x=c(Je(a.e,0),17).c,Q=c(Je(A.e,0),17).c,b=x.i,I=Q.i,b==I)for(le=new U(b.j);le.a<le.c.c.length;){if(re=c(G(le),12),x==re)return Oa(e,A,a,Oe),-Oe;if(Q==re)return Oa(e,a,A,Oe),Oe}if(x.i.k==(Jt(),Cr)&&Q.i.k==Cr&&b.c.p==I.c.p&&b.c.p==a.i.c.p&&(me=b.c,r=_Ke(me,b,I),r!=0))return a.j==nn&&A.j==nn&&(Oe=-Oe),r>0?(Oa(e,a,A,Oe),Oe):(Oa(e,A,a,Oe),-Oe);if(i=_Ke(c(Hl(dee(e.d),ru(new fr,new rs,new ko,Y(K(vl,1),Pe,132,0,[(ya(),wl)]))),22),b,I),i!=0)return i>0?(Oa(e,a,A,Oe),Oe):(Oa(e,A,a,Oe),-Oe);if(e.c&&(je=lZe(e,a,A),je!=0))return je>0?(Oa(e,a,A,Oe),Oe):(Oa(e,A,a,Oe),-Oe)}return a.g.c.length!=0&&A.g.c.length!=0?((a.j==(Ue(),Yt)&&A.j==Yt||a.j==mn&&A.j==mn)&&(Oe=-Oe),T=c($(a,(Ie(),ple)),9),W=c($(A,ple),9),e.f==(P1(),Yle)&&T&&W&&ki(T,Ri)&&ki(W,Ri)?(d=aw(T,W,e.b,c($(e.b,ep),15).a),L=aw(W,T,e.b,c($(e.b,ep),15).a),d>L?(Oa(e,a,A,Oe),Oe):(Oa(e,A,a,Oe),-Oe)):e.c&&(je=lZe(e,a,A),je!=0)?je>0?(Oa(e,a,A,Oe),Oe):(Oa(e,A,a,Oe),-Oe):(v=0,z=0,ki(c(Je(a.g,0),17),Ri)&&(v=aw(c(Je(a.g,0),248),c(Je(A.g,0),248),e.b,a.g.c.length+a.e.c.length)),ki(c(Je(A.g,0),17),Ri)&&(z=aw(c(Je(A.g,0),248),c(Je(a.g,0),248),e.b,A.g.c.length+A.e.c.length)),T&&T==W||e.g&&(e.g._b(T)&&(v=c(e.g.xc(T),15).a),e.g._b(W)&&(z=c(e.g.xc(W),15).a)),v>z?(Oa(e,a,A,Oe),Oe):(Oa(e,A,a,Oe),-Oe))):a.e.c.length!=0&&A.g.c.length!=0?(Oa(e,a,A,Oe),1):a.g.c.length!=0&&A.e.c.length!=0?(Oa(e,A,a,Oe),-1):ki(a,(Ie(),Ri))&&ki(A,Ri)?(o=a.i.j.c.length,d=aw(a,A,e.b,o),L=aw(A,a,e.b,o),(a.j==(Ue(),Yt)&&A.j==Yt||a.j==mn&&A.j==mn)&&(Oe=-Oe),d>L?(Oa(e,a,A,Oe),Oe):(Oa(e,A,a,Oe),-Oe)):(Oa(e,A,a,Oe),-Oe)}function Ie(){Ie=Z;var e,t;Si=new bi(n3e),U6e=new bi("coordinateOrigin"),mle=new bi("processors"),G6e=new Qi("compoundNode",(Bt(),!1)),xP=new Qi("insideConnections",!1),W6e=new bi("originalBendpoints"),K6e=new bi("originalDummyNodePosition"),Y6e=new bi("originalLabelEdge"),rC=new bi("representedLabels"),iC=new bi("endLabels"),Ak=new bi("endLabel.origin"),_k=new Qi("labelSide",(qu(),eI)),b3=new Qi("maxEdgeThickness",0),Ug=new Qi("reversed",!1),Dk=new bi(Cct),ih=new Qi("longEdgeSource",null),Wa=new Qi("longEdgeTarget",null),qv=new Qi("longEdgeHasLabelDummies",!1),kP=new Qi("longEdgeBeforeLabelDummy",!1),aJ=new Qi("edgeConstraint",(lb(),Zce)),_w=new bi("inLayerLayoutUnit"),Mb=new Qi("inLayerConstraint",(M1(),vP)),Nk=new Qi("inLayerSuccessorConstraint",new He),X6e=new Qi("inLayerSuccessorConstraintBetweenNonDummies",!1),Jl=new bi("portDummy"),uJ=new Qi("crossingHint",$e(0)),Rc=new Qi("graphProperties",(t=c(Gf(ole),10),new da(t,c(gf(t,t.length),10),0))),Yo=new Qi("externalPortSide",(Ue(),Bo)),V6e=new Qi("externalPortSize",new fs),hle=new bi("externalPortReplacedDummies"),fJ=new bi("externalPortReplacedDummy"),Q1=new Qi("externalPortConnections",(e=c(Gf(Bs),10),new da(e,c(gf(e,e.length),10),0))),Dw=new Qi(Oct,0),Q6e=new bi("barycenterAssociates"),Pk=new bi("TopSideComments"),Ck=new bi("BottomSideComments"),lJ=new bi("CommentConnectionPort"),gle=new Qi("inputCollect",!1),ble=new Qi("outputCollect",!1),Mk=new Qi("cyclic",!1),J6e=new bi("crossHierarchyMap"),vle=new bi("targetOffset"),new Qi("splineLabelSize",new fs),w3=new bi("spacings"),hJ=new Qi("partitionConstraint",!1),Nw=new bi("breakingPoint.info"),tSe=new bi("splines.survivingEdge"),Ab=new bi("splines.route.start"),v3=new bi("splines.edgeChain"),eSe=new bi("originalPortConstraints"),Lw=new bi("selfLoopHolder"),Jj=new bi("splines.nsPortY"),Ri=new bi("modelOrder"),ep=new bi("modelOrder.maximum"),yP=new bi("modelOrderGroups.cb.number"),ple=new bi("longEdgeTargetNode"),Z0=new Qi(elt,!1),m3=new Qi(elt,!1),dle=new bi("layerConstraints.hiddenNodes"),Z6e=new bi("layerConstraints.opposidePort"),wle=new bi("targetNode.modelOrder"),Lk=new Qi("tarjan.lowlink",$e(gi)),sC=new Qi("tarjan.id",$e(-1)),dJ=new Qi("tarjan.onstack",!1),M1t=new Qi("partOfCycle",!1),y3=new bi("medianHeuristic.weight")}function In(){In=Z;var e,t;Hk=new bi(Xlt),cy=new bi(Wlt),TTe=(Bd(),wae),b2t=new vt(h5e,TTe),l9=new vt(aj,null),m2t=new bi(D4e),CTe=(gb(),Li(xae,Y(K(kae,1),Pe,300,0,[yae]))),JP=new vt(IG,CTe),VP=new vt(XL,(Bt(),!1)),MTe=(_r(),$h),Bb=new vt(Pse,MTe),_Te=(L1(),Lae),NTe=new vt(VL,_Te),x2t=new vt(N4e,!1),LTe=(D1(),bV),A3=new vt(PG,LTe),GTe=new qp(12),Ih=new vt(mw,GTe),GC=new vt(fj,!1),jae=new vt($G,!1),UC=new vt(hj,!1),WTe=(es(),up),u9=new vt(mG,WTe),Qk=new bi(RG),WP=new bi(RL),_ae=new bi(bG),Dae=new bi(vE),RTe=new tu,N3=new vt(O5e,RTe),v2t=new vt(E5e,!1),k2t=new vt(C5e,!1),new vt(Klt,0),$Te=new aT,V1=new vt($se,$Te),fV=new vt(a5e,!1),C2t=new vt(Ylt,1),ry=new bi(Zlt),iy=new bi(eut),f9=new vt(BL,!1),new vt(tut,!0),$e(0),new vt(nut,$e(100)),new vt(iut,!1),$e(0),new vt(rut,$e(4e3)),$e(0),new vt(sut,$e(400)),new vt(out,!1),new vt(cut,!1),new vt(lut,!0),new vt(uut,!1),ETe=(tQ(),zae),w2t=new vt(_4e,ETe),ITe=(w7(),iI),S2t=new vt(aut,ITe),PTe=(jS(),KP),O2t=new vt(fut,PTe),M2t=new vt(Y3e,10),A2t=new vt(Z3e,10),N2t=new vt(e5e,20),_2t=new vt(t5e,10),e7e=new vt(Ure,2),t7e=new vt(Lse,10),n7e=new vt(n5e,0),hV=new vt(s5e,5),i7e=new vt(i5e,1),r7e=new vt(r5e,1),oh=new vt(bw,20),D2t=new vt(o5e,10),c7e=new vt(c5e,10),Gk=new bi(l5e),o7e=new OBe,s7e=new vt(A5e,o7e),T2t=new bi(Rse),UTe=!1,j2t=new vt(Ise,UTe),zTe=new qp(5),BTe=new vt(p5e,zTe),FTe=(yv(),t=c(Gf(Ks),10),new da(t,c(gf(t,t.length),10),0)),_3=new vt(gj,FTe),VTe=(Rx(),lp),JTe=new vt(w5e,VTe),Eae=new bi(v5e),Cae=new bi(y5e),Mae=new bi(x5e),Tae=new bi(k5e),qTe=(e=c(Gf(eM),10),new da(e,c(gf(e,e.length),10),0)),zb=new vt(Yx,qTe),QTe=bt((lu(),b9)),op=new vt(bk,QTe),HTe=new ze(0,0),D3=new vt(mk,HTe),sy=new vt(dj,!1),ATe=(yh(),h9),Oae=new vt(j5e,ATe),aV=new vt($L,!1),$e(1),new vt(hut,null),XTe=new bi(M5e),Aae=new bi(T5e),ZTe=(Ue(),Bo),L3=new vt(f5e,ZTe),au=new bi(u5e),KTe=(Gl(),bt(ap)),oy=new vt(pj,KTe),Nae=new vt(b5e,!1),YTe=new vt(m5e,!0),$e(1),$2t=new vt(uoe,$e(3)),$e(1),z2t=new vt(L4e,$e(4)),dV=new vt(zL,1),gV=new vt(aoe,null),ly=new vt(FL,150),a9=new vt(qL,1.414),Uk=new vt(ww,null),L2t=new vt(P4e,1),XP=new vt(d5e,!1),Sae=new vt(g5e,!1),y2t=new vt(S5e,1),DTe=(AQ(),Iae),new vt(dut,DTe),E2t=!0,B2t=(Yq(),Bae),I2t=(U4(),fy),R2t=fy,P2t=fy}function cs(){cs=Z,FOe=new Mr("DIRECTION_PREPROCESSOR",0),$Oe=new Mr("COMMENT_PREPROCESSOR",1),u3=new Mr("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),Ace=new Mr("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),o6e=new Mr("PARTITION_PREPROCESSOR",4),IU=new Mr("LABEL_DUMMY_INSERTER",5),UU=new Mr("SELF_LOOP_PREPROCESSOR",6),$v=new Mr("LAYER_CONSTRAINT_PREPROCESSOR",7),r6e=new Mr("PARTITION_MIDPROCESSOR",8),XOe=new Mr("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),n6e=new Mr("NODE_PROMOTION",10),Rv=new Mr("LAYER_CONSTRAINT_POSTPROCESSOR",11),s6e=new Mr("PARTITION_POSTPROCESSOR",12),UOe=new Mr("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),c6e=new Mr("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),_Oe=new Mr("BREAKING_POINT_INSERTER",15),zU=new Mr("LONG_EDGE_SPLITTER",16),Nce=new Mr("PORT_SIDE_PROCESSOR",17),LU=new Mr("INVERTED_PORT_PROCESSOR",18),HU=new Mr("PORT_LIST_SORTER",19),u6e=new Mr("SORT_BY_INPUT_ORDER_OF_MODEL",20),qU=new Mr("NORTH_SOUTH_PORT_PREPROCESSOR",21),DOe=new Mr("BREAKING_POINT_PROCESSOR",22),i6e=new Mr(Uct,23),a6e=new Mr(Jct,24),QU=new Mr("SELF_LOOP_PORT_RESTORER",25),NOe=new Mr("ALTERNATING_LAYER_UNZIPPER",26),l6e=new Mr("SINGLE_EDGE_GRAPH_WRAPPER",27),PU=new Mr("IN_LAYER_CONSTRAINT_PROCESSOR",28),HOe=new Mr("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",29),e6e=new Mr("LABEL_AND_NODE_SIZE_PROCESSOR",30),ZOe=new Mr("INNERMOST_NODE_MARGIN_CALCULATOR",31),JU=new Mr("SELF_LOOP_ROUTER",32),IOe=new Mr("COMMENT_NODE_MARGIN_CALCULATOR",33),DU=new Mr("END_LABEL_PREPROCESSOR",34),$U=new Mr("LABEL_DUMMY_SWITCHER",35),POe=new Mr("CENTER_LABEL_MANAGEMENT_PROCESSOR",36),Rj=new Mr("LABEL_SIDE_SELECTOR",37),KOe=new Mr("HYPEREDGE_DUMMY_MERGER",38),JOe=new Mr("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",39),t6e=new Mr("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",40),KE=new Mr("HIERARCHICAL_PORT_POSITION_PROCESSOR",41),BOe=new Mr("CONSTRAINTS_POSTPROCESSOR",42),ROe=new Mr("COMMENT_POSTPROCESSOR",43),YOe=new Mr("HYPERNODE_PROCESSOR",44),VOe=new Mr("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",45),BU=new Mr("LONG_EDGE_JOINER",46),GU=new Mr("SELF_LOOP_POSTPROCESSOR",47),LOe=new Mr("BREAKING_POINT_REMOVER",48),FU=new Mr("NORTH_SOUTH_PORT_POSTPROCESSOR",49),WOe=new Mr("HORIZONTAL_COMPACTOR",50),RU=new Mr("LABEL_DUMMY_REMOVER",51),QOe=new Mr("FINAL_SPLINE_BENDPOINTS_CALCULATOR",52),qOe=new Mr("END_LABEL_SORTER",53),Tk=new Mr("REVERSED_EDGE_RESTORER",54),_U=new Mr("END_LABEL_POSTPROCESSOR",55),GOe=new Mr("HIERARCHICAL_NODE_RESIZER",56),zOe=new Mr("DIRECTION_POSTPROCESSOR",57)}function Rnn(e,t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn,ti,tr,Kl,bo,Zu,z3,s0,Rf,Y1,Da,Zk,dM,Z1,uh,o0,Qb,Gb,eO,Ub,Jb,eg,vy,IEe,Uw,gM,ife,tO,pM,yy,bM,rfe,Myt;for(IEe=0,ti=t,bo=0,s0=ti.length;bo<s0;++bo)for(Rt=ti[bo],o0=new U(Rt.j);o0.a<o0.c.c.length;){for(uh=c(G(o0),12),Gb=0,d=new U(uh.g);d.a<d.c.c.length;)a=c(G(d),17),Rt.c!=a.d.i.c&&++Gb;Gb>0&&(e.a[uh.p]=IEe++)}for(pM=0,tr=n,Zu=0,Rf=tr.length;Zu<Rf;++Zu){for(Rt=tr[Zu],Y1=0,o0=new U(Rt.j);o0.a<o0.c.c.length&&(uh=c(G(o0),12),uh.j==(Ue(),Kt));)for(d=new U(uh.e);d.a<d.c.c.length;)if(a=c(G(d),17),Rt.c!=a.c.i.c){++Y1;break}for(Zk=0,eO=new os(Rt.j,Rt.j.c.length);eO.b>0;){for(uh=(gn(eO.b>0),c(eO.a.Xb(eO.c=--eO.b),12)),Gb=0,d=new U(uh.e);d.a<d.c.c.length;)a=c(G(d),17),Rt.c!=a.c.i.c&&++Gb;Gb>0&&(uh.j==(Ue(),Kt)?(e.a[uh.p]=pM,++pM):(e.a[uh.p]=pM+Y1+Zk,++Zk))}pM+=Zk}for(Qb=new yn,I=new Ad,fn=t,Kl=0,z3=fn.length;Kl<z3;++Kl)for(Rt=fn[Kl],ife=new U(Rt.j);ife.a<ife.c.c.length;)for(gM=c(G(ife),12),d=new U(gM.g);d.a<d.c.c.length;)if(a=c(G(d),17),bM=a.d,Rt.c!=bM.i.c)if(Uw=c(No(lo(Qb.f,gM)),470),yy=c(No(lo(Qb.f,bM)),470),!Uw&&!yy)L=new cFe,I.a.yc(L,I),Qe(L.a,a),Qe(L.d,gM),bl(Qb.f,gM,L),Qe(L.d,bM),bl(Qb.f,bM,L);else if(!Uw)Qe(yy.a,a),Qe(yy.d,gM),bl(Qb.f,gM,yy);else if(!yy)Qe(Uw.a,a),Qe(Uw.d,bM),bl(Qb.f,bM,Uw);else if(Uw==yy)Qe(Uw.a,a);else{for(Qe(Uw.a,a),Z1=new U(yy.d);Z1.a<Z1.c.c.length;)dM=c(G(Z1),12),bl(Qb.f,dM,Uw);Or(Uw.a,yy.a),Or(Uw.d,yy.d),I.a.Ac(yy)!=null}for(z=c(z7(I,ke(cin,{3:1,4:1,5:1,2024:1},470,I.a.gc(),0,1)),2024),Lt=t[0].c,vy=n[0].c,x=z,T=0,A=x.length;T<A;++T)for(v=x[T],v.e=IEe,v.f=pM,o0=new U(v.d);o0.a<o0.c.c.length;)uh=c(G(o0),12),Ub=e.a[uh.p],uh.i.c==Lt?(Ub<v.e&&(v.e=Ub),Ub>v.b&&(v.b=Ub)):uh.i.c==vy&&(Ub<v.f&&(v.f=Ub),Ub>v.c&&(v.c=Ub));for(lS(z,0,z.length,null),tO=ke(Hn,li,30,z.length,15,1),i=ke(Hn,li,30,pM+1,15,1),W=0;W<z.length;W++)tO[W]=z[W].f,i[tO[W]]=1;for(o=0,re=0;re<i.length;re++)i[re]==1?i[re]=o:--o;for(Jb=0,le=0;le<tO.length;le++)tO[le]+=i[tO[le]],Jb=p.Math.max(Jb,tO[le]+1);for(b=1;b<Jb;)b*=2;for(Myt=2*b-1,b-=1,rfe=ke(Hn,li,30,Myt,15,1),r=0,mt=0;mt<tO.length;mt++)for(Xe=tO[mt]+b,++rfe[Xe];Xe>0;)Xe%2>0&&(r+=rfe[Xe+1]),Xe=(Xe-1)/2|0,++rfe[Xe];for(wt=ke(Zpt,Pt,371,z.length*2,0,1),me=0;me<z.length;me++)wt[2*me]=new _q(z[me],z[me].e,z[me].b,(g7(),jC)),wt[2*me+1]=new _q(z[me],z[me].b,z[me].e,SC);for(lS(wt,0,wt.length,null),Da=0,je=0;je<wt.length;je++)switch(wt[je].d.g){case 0:++Da;break;case 1:--Da,r+=Da}for(eg=ke(Zpt,Pt,371,z.length*2,0,1),Oe=0;Oe<z.length;Oe++)eg[2*Oe]=new _q(z[Oe],z[Oe].f,z[Oe].c,(g7(),jC)),eg[2*Oe+1]=new _q(z[Oe],z[Oe].c,z[Oe].f,SC);for(lS(eg,0,eg.length,null),Da=0,Q=0;Q<eg.length;Q++)switch(eg[Q].d.g){case 0:++Da;break;case 1:--Da,r+=Da}return r}function vi(){vi=Z,hM=new jm(7),CEe=new Dd(8,94),new Dd(8,64),MEe=new Dd(8,36),yyt=new Dd(8,65),xyt=new Dd(8,122),kyt=new Dd(8,90),Syt=new Dd(8,98),vyt=new Dd(8,66),Oyt=new Dd(8,60),jyt=new Dd(8,62),EEe=new jm(11),PV=new $u(4),Dc(PV,48,57),y9=new $u(4),Dc(y9,48,57),Dc(y9,65,90),Dc(y9,95,95),Dc(y9,97,122),Yk=new $u(4),Dc(Yk,9,9),Dc(Yk,10,10),Dc(Yk,12,12),Dc(Yk,13,13),Dc(Yk,32,32),AEe=Ov(PV),_Ee=Ov(y9),NEe=Ov(Yk),v9=new yn,fM=new yn,wyt=Y(K(tt,1),Fe,2,6,["Cn","Lu","Ll","Lt","Lm","Lo","Mn","Me","Mc","Nd","Nl","No","Zs","Zl","Zp","Cc","Cf",null,"Co","Cs","Pd","Ps","Pe","Pc","Po","Sm","Sc","Sk","So","Pi","Pf","L","M","N","Z","C","P","S"]),jEe=Y(K(tt,1),Fe,2,6,["Basic Latin","Latin-1 Supplement","Latin Extended-A","Latin Extended-B","IPA Extensions","Spacing Modifier Letters","Combining Diacritical Marks","Greek","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul Jamo","Ethiopic","Cherokee","Unified Canadian Aboriginal Syllabics","Ogham","Runic","Khmer","Mongolian","Latin Extended Additional","Greek Extended","General Punctuation","Superscripts and Subscripts","Currency Symbols","Combining Marks for Symbols","Letterlike Symbols","Number Forms","Arrows","Mathematical Operators","Miscellaneous Technical","Control Pictures","Optical Character Recognition","Enclosed Alphanumerics","Box Drawing","Block Elements","Geometric Shapes","Miscellaneous Symbols","Dingbats","Braille Patterns","CJK Radicals Supplement","Kangxi Radicals","Ideographic Description Characters","CJK Symbols and Punctuation","Hiragana","Katakana","Bopomofo","Hangul Compatibility Jamo","Kanbun","Bopomofo Extended","Enclosed CJK Letters and Months","CJK Compatibility","CJK Unified Ideographs Extension A","CJK Unified Ideographs","Yi Syllables","Yi Radicals","Hangul Syllables",hft,"CJK Compatibility Ideographs","Alphabetic Presentation Forms","Arabic Presentation Forms-A","Combining Half Marks","CJK Compatibility Forms","Small Form Variants","Arabic Presentation Forms-B","Specials","Halfwidth and Fullwidth Forms","Old Italic","Gothic","Deseret","Byzantine Musical Symbols","Musical Symbols","Mathematical Alphanumeric Symbols","CJK Unified Ideographs Extension B","CJK Compatibility Ideographs Supplement","Tags"]),TEe=Y(K(Hn,1),li,30,15,[66304,66351,66352,66383,66560,66639,118784,119039,119040,119295,119808,120831,131072,173782,194560,195103,917504,917631])}function cG(){cG=Z,Nht=new va("OUT_T_L",0,(Ql(),gd),(gl(),Ef),(Wf(),Wo),Wo,Y(K(Xa,1),Pt,24,0,[Li((yv(),Df),Y(K(Ks,1),Pe,96,0,[Lf,Nf]))])),Aht=new va("OUT_T_C",1,W0,Ef,Wo,Kc,Y(K(Xa,1),Pt,24,0,[Li(Df,Y(K(Ks,1),Pe,96,0,[Lf,X1])),Li(Df,Y(K(Ks,1),Pe,96,0,[Lf,X1,Ka]))])),_ht=new va("OUT_T_R",2,Tf,Ef,Wo,Ko,Y(K(Xa,1),Pt,24,0,[Li(Df,Y(K(Ks,1),Pe,96,0,[Lf,_f]))])),kht=new va("OUT_B_L",3,gd,nh,Ko,Wo,Y(K(Xa,1),Pt,24,0,[Li(Df,Y(K(Ks,1),Pe,96,0,[Ya,Nf]))])),xht=new va("OUT_B_C",4,W0,nh,Ko,Kc,Y(K(Xa,1),Pt,24,0,[Li(Df,Y(K(Ks,1),Pe,96,0,[Ya,X1])),Li(Df,Y(K(Ks,1),Pe,96,0,[Ya,X1,Ka]))])),Oht=new va("OUT_B_R",5,Tf,nh,Ko,Ko,Y(K(Xa,1),Pt,24,0,[Li(Df,Y(K(Ks,1),Pe,96,0,[Ya,_f]))])),Tht=new va("OUT_L_T",6,Tf,nh,Wo,Wo,Y(K(Xa,1),Pt,24,0,[Li(Df,Y(K(Ks,1),Pe,96,0,[Nf,Lf,Ka]))])),jht=new va("OUT_L_C",7,Tf,K0,Kc,Wo,Y(K(Xa,1),Pt,24,0,[Li(Df,Y(K(Ks,1),Pe,96,0,[Nf,Zd])),Li(Df,Y(K(Ks,1),Pe,96,0,[Nf,Zd,Ka]))])),Sht=new va("OUT_L_B",8,Tf,Ef,Ko,Wo,Y(K(Xa,1),Pt,24,0,[Li(Df,Y(K(Ks,1),Pe,96,0,[Nf,Ya,Ka]))])),Mht=new va("OUT_R_T",9,gd,nh,Wo,Ko,Y(K(Xa,1),Pt,24,0,[Li(Df,Y(K(Ks,1),Pe,96,0,[_f,Lf,Ka]))])),Cht=new va("OUT_R_C",10,gd,K0,Kc,Ko,Y(K(Xa,1),Pt,24,0,[Li(Df,Y(K(Ks,1),Pe,96,0,[_f,Zd])),Li(Df,Y(K(Ks,1),Pe,96,0,[_f,Zd,Ka]))])),Eht=new va("OUT_R_B",11,gd,Ef,Ko,Ko,Y(K(Xa,1),Pt,24,0,[Li(Df,Y(K(Ks,1),Pe,96,0,[_f,Ya,Ka]))])),vht=new va("IN_T_L",12,gd,nh,Wo,Wo,Y(K(Xa,1),Pt,24,0,[Li(Xu,Y(K(Ks,1),Pe,96,0,[Lf,Nf])),Li(Xu,Y(K(Ks,1),Pe,96,0,[Lf,Nf,Ka]))])),wht=new va("IN_T_C",13,W0,nh,Wo,Kc,Y(K(Xa,1),Pt,24,0,[Li(Xu,Y(K(Ks,1),Pe,96,0,[Lf,X1])),Li(Xu,Y(K(Ks,1),Pe,96,0,[Lf,X1,Ka]))])),yht=new va("IN_T_R",14,Tf,nh,Wo,Ko,Y(K(Xa,1),Pt,24,0,[Li(Xu,Y(K(Ks,1),Pe,96,0,[Lf,_f])),Li(Xu,Y(K(Ks,1),Pe,96,0,[Lf,_f,Ka]))])),bht=new va("IN_C_L",15,gd,K0,Kc,Wo,Y(K(Xa,1),Pt,24,0,[Li(Xu,Y(K(Ks,1),Pe,96,0,[Zd,Nf])),Li(Xu,Y(K(Ks,1),Pe,96,0,[Zd,Nf,Ka]))])),pht=new va("IN_C_C",16,W0,K0,Kc,Kc,Y(K(Xa,1),Pt,24,0,[Li(Xu,Y(K(Ks,1),Pe,96,0,[Zd,X1])),Li(Xu,Y(K(Ks,1),Pe,96,0,[Zd,X1,Ka]))])),mht=new va("IN_C_R",17,Tf,K0,Kc,Ko,Y(K(Xa,1),Pt,24,0,[Li(Xu,Y(K(Ks,1),Pe,96,0,[Zd,_f])),Li(Xu,Y(K(Ks,1),Pe,96,0,[Zd,_f,Ka]))])),dht=new va("IN_B_L",18,gd,Ef,Ko,Wo,Y(K(Xa,1),Pt,24,0,[Li(Xu,Y(K(Ks,1),Pe,96,0,[Ya,Nf])),Li(Xu,Y(K(Ks,1),Pe,96,0,[Ya,Nf,Ka]))])),hht=new va("IN_B_C",19,W0,Ef,Ko,Kc,Y(K(Xa,1),Pt,24,0,[Li(Xu,Y(K(Ks,1),Pe,96,0,[Ya,X1])),Li(Xu,Y(K(Ks,1),Pe,96,0,[Ya,X1,Ka]))])),ght=new va("IN_B_R",20,Tf,Ef,Ko,Ko,Y(K(Xa,1),Pt,24,0,[Li(Xu,Y(K(Ks,1),Pe,96,0,[Ya,_f])),Li(Xu,Y(K(Ks,1),Pe,96,0,[Ya,_f,Ka]))])),dce=new va(mE,21,null,null,null,null,Y(K(Xa,1),Pt,24,0,[]))}function Cxe(){Cxe=Z,bSe=(jD(),tJ),bgt=new vt(a3e,bSe),Cgt=new vt(f3e,(Bt(),!1)),kSe=(Vq(),fle),Dgt=new vt(kG,kSe),e0t=new vt(h3e,!1),t0t=new vt(d3e,!0),_1t=new vt(g3e,!1),DSe=(OD(),Zle),b0t=new vt(p3e,DSe),$e(1),S0t=new vt(b3e,$e(7)),j0t=new vt(m3e,!1),Mgt=new vt(w3e,!1),pSe=(uL(),Vce),pgt=new vt(GL,pSe),jSe=(fL(),Gle),Jgt=new vt(UL,jSe),OSe=(Su(),OP),Bgt=new vt(v3e,OSe),$e(-1),$gt=new vt(y3e,null),$e(-1),zgt=new vt(x3e,$e(-1)),$e(-1),Fgt=new vt(Zre,$e(4)),$e(-1),Hgt=new vt(ese,$e(2)),SSe=(F0(),LJ),Ugt=new vt(tse,SSe),$e(0),Ggt=new vt(nse,$e(0)),Igt=new vt(ise,$e(gi)),gSe=(I7(),ZE),ggt=new vt(OE,gSe),Z1t=new vt(k3e,!1),ogt=new vt(rse,.1),hgt=new vt(sse,!1),lgt=new vt(O3e,null),ugt=new vt(S3e,null),$e(-1),agt=new vt(j3e,null),$e(-1),fgt=new vt(T3e,$e(-1)),$e(0),egt=new vt(E3e,$e(40)),dSe=(wS(),lle),rgt=new vt(ose,dSe),hSe=mP,tgt=new vt(OG,hSe),_Se=(B7(),wC),p0t=new vt(Zx,_Se),o0t=new bi(SG),MSe=(wD(),iJ),n0t=new vt(cse,MSe),ASe=(nL(),rJ),r0t=new vt(lse,ASe),u0t=new vt(use,.3),f0t=new bi(ase),NSe=(pv(),DJ),h0t=new vt(fse,NSe),vSe=(BH(),tue),xgt=new vt(C3e,vSe),ySe=(C7(),iue),kgt=new vt(M3e,ySe),xSe=(SS(),kC),Ogt=new vt(jG,xSe),jgt=new vt(TG,.2),vgt=new vt(hse,2),y0t=new vt(A3e,null),k0t=new vt(N3e,10),x0t=new vt(_3e,10),O0t=new vt(D3e,20),$e(0),m0t=new vt(L3e,$e(0)),$e(0),w0t=new vt(P3e,$e(0)),$e(0),v0t=new vt(I3e,$e(0)),D1t=new vt(dse,!1),sSe=(zS(),eC),P1t=new vt(R3e,sSe),rSe=(lH(),Qce),L1t=new vt($3e,rSe),Ngt=new vt(EG,!1),$e(0),Agt=new vt(gse,$e(16)),$e(0),_gt=new vt(pse,$e(5)),ISe=(zH(),oue),G0t=new vt(F1,ISe),T0t=new vt(CG,10),M0t=new vt(MG,1),PSe=(SH(),eJ),I0t=new vt(SE,PSe),_0t=new bi(bse),LSe=$e(1),$e(0),L0t=new vt(mse,LSe),RSe=(OH(),sue),X0t=new vt(AG,RSe),U0t=new bi(NG),F0t=new vt(_G,!0),B0t=new vt(DG,2),H0t=new vt(wse,!0),CSe=(Kq(),xle),Zgt=new vt(vse,CSe),Xgt=new vt(yse,!1),TSe=$e(2),$e(1),Vgt=new vt(xse,TSe),ESe=!0,Kgt=new vt(kse,ESe),wSe=(_Q(),nJ),wgt=new vt(B3e,wSe),mSe=(ek(),Fj),mgt=new vt(z3e,mSe),fSe=(P1(),np),Y1t=new vt(LG,fSe),K1t=new vt(F3e,!1),W1t=new vt(JL,!1),oSe=(X4(),XE),I1t=new vt(Ose,oSe),aSe=(M7(),Ule),X1t=new vt(q3e,aSe),R1t=new vt(Sse,0),$1t=new vt(jse,0),V1t=new vt(Tse,$e(0)),J1t=new vt(Ese,$e(0)),U1t=new vt(Cse,$e(0)),cSe=(N0(),wP),B1t=new vt(H3e,cSe),z1t=new bi(Mse),q1t=new bi(Ase),uSe=wP,G1t=new vt(Q3e,uSe),lSe=Iq(INt(Y(K(Pr,1),Fe,15,0,[$e(1),$e(2),$e(6),$e(7),$e(10),$e(11)]))),Q1t=new vt(G3e,lSe),Pgt=Wce,Lgt=pP,qgt=NJ,Qgt=NJ,Rgt=Hle,cgt=(D1(),Yg),dgt=ZE,sgt=ZE,ngt=ZE,igt=Yg,c0t=vC,l0t=wC,i0t=wC,s0t=wC,a0t=Wle,g0t=vC,d0t=vC,Sgt=(L1(),Jk),Tgt=Jk,Egt=kC,ygt=YP,E0t=t9,C0t=Zv,A0t=t9,N0t=Zv,R0t=t9,$0t=Zv,D0t=Gce,P0t=eJ,W0t=t9,K0t=Zv,J0t=t9,V0t=Zv,q0t=Zv,z0t=Zv,Q0t=Zv,Wgt=$e(2),Ygt=yle,F1t=bP,H1t=bP}function At(){At=Z,py=(O0(),Gt).b,c(ce(De(Gt.b),0),38),c(ce(De(Gt.b),1),20),e0=Gt.a,c(ce(De(Gt.a),0),38),c(ce(De(Gt.a),1),20),c(ce(De(Gt.a),2),20),c(ce(De(Gt.a),3),20),c(ce(De(Gt.a),4),20),dp=Gt.o,c(ce(De(Gt.o),0),38),c(ce(De(Gt.o),1),38),$vt=c(ce(De(Gt.o),2),20),c(ce(De(Gt.o),3),20),c(ce(De(Gt.o),4),20),c(ce(De(Gt.o),5),20),c(ce(De(Gt.o),6),20),c(ce(De(Gt.o),7),20),c(ce(De(Gt.o),8),20),c(ce(De(Gt.o),9),20),c(ce(De(Gt.o),10),20),c(ce(De(Gt.o),11),20),c(ce(De(Gt.o),12),20),c(ce(De(Gt.o),13),20),c(ce(De(Gt.o),14),20),c(ce(De(Gt.o),15),20),c(ce(Mi(Gt.o),0),62),c(ce(Mi(Gt.o),1),62),c(ce(Mi(Gt.o),2),62),c(ce(Mi(Gt.o),3),62),c(ce(Mi(Gt.o),4),62),c(ce(Mi(Gt.o),5),62),c(ce(Mi(Gt.o),6),62),c(ce(Mi(Gt.o),7),62),c(ce(Mi(Gt.o),8),62),c(ce(Mi(Gt.o),9),62),Rvt=Gt.p,c(ce(De(Gt.p),0),38),c(ce(De(Gt.p),1),38),c(ce(De(Gt.p),2),38),c(ce(De(Gt.p),3),38),c(ce(De(Gt.p),4),20),c(ce(De(Gt.p),5),20),c(ce(Mi(Gt.p),0),62),c(ce(Mi(Gt.p),1),62),Bvt=Gt.q,c(ce(De(Gt.q),0),38),gp=Gt.v,c(ce(De(Gt.v),0),20),c(ce(Mi(Gt.v),0),62),c(ce(Mi(Gt.v),1),62),c(ce(Mi(Gt.v),2),62),t0=Gt.w,c(ce(De(Gt.w),0),38),c(ce(De(Gt.w),1),38),c(ce(De(Gt.w),2),38),c(ce(De(Gt.w),3),20),pp=Gt.B,c(ce(De(Gt.B),0),20),c(ce(Mi(Gt.B),0),62),c(ce(Mi(Gt.B),1),62),c(ce(Mi(Gt.B),2),62),zvt=Gt.Q,c(ce(De(Gt.Q),0),20),c(ce(Mi(Gt.Q),0),62),Fvt=Gt.R,c(ce(De(Gt.R),0),38),rf=Gt.S,c(ce(Mi(Gt.S),0),62),c(ce(Mi(Gt.S),1),62),c(ce(Mi(Gt.S),2),62),c(ce(Mi(Gt.S),3),62),c(ce(Mi(Gt.S),4),62),c(ce(Mi(Gt.S),5),62),c(ce(Mi(Gt.S),6),62),c(ce(Mi(Gt.S),7),62),c(ce(Mi(Gt.S),8),62),c(ce(Mi(Gt.S),9),62),c(ce(Mi(Gt.S),10),62),c(ce(Mi(Gt.S),11),62),c(ce(Mi(Gt.S),12),62),c(ce(Mi(Gt.S),13),62),c(ce(Mi(Gt.S),14),62),n0=Gt.T,c(ce(De(Gt.T),0),20),c(ce(De(Gt.T),2),20),qvt=c(ce(De(Gt.T),3),20),c(ce(De(Gt.T),4),20),c(ce(Mi(Gt.T),0),62),c(ce(Mi(Gt.T),1),62),c(ce(De(Gt.T),1),20),i0=Gt.U,c(ce(De(Gt.U),0),38),c(ce(De(Gt.U),1),38),c(ce(De(Gt.U),2),20),c(ce(De(Gt.U),3),20),c(ce(De(Gt.U),4),20),c(ce(De(Gt.U),5),20),c(ce(Mi(Gt.U),0),62),by=Gt.V,c(ce(De(Gt.V),0),20),P3=Gt.W,c(ce(De(Gt.W),0),38),c(ce(De(Gt.W),1),38),c(ce(De(Gt.W),2),38),c(ce(De(Gt.W),3),20),c(ce(De(Gt.W),4),20),c(ce(De(Gt.W),5),20),Hvt=Gt.bb,c(ce(De(Gt.bb),0),38),c(ce(De(Gt.bb),1),38),c(ce(De(Gt.bb),2),38),c(ce(De(Gt.bb),3),38),c(ce(De(Gt.bb),4),38),c(ce(De(Gt.bb),5),38),c(ce(De(Gt.bb),6),38),c(ce(De(Gt.bb),7),20),c(ce(Mi(Gt.bb),0),62),c(ce(Mi(Gt.bb),1),62),Qvt=Gt.eb,c(ce(De(Gt.eb),0),38),c(ce(De(Gt.eb),1),38),c(ce(De(Gt.eb),2),38),c(ce(De(Gt.eb),3),38),c(ce(De(Gt.eb),4),38),c(ce(De(Gt.eb),5),38),c(ce(De(Gt.eb),6),20),c(ce(De(Gt.eb),7),20),zs=Gt.ab,c(ce(De(Gt.ab),0),38),c(ce(De(Gt.ab),1),38),qw=Gt.H,c(ce(De(Gt.H),0),20),c(ce(De(Gt.H),1),20),c(ce(De(Gt.H),2),20),c(ce(De(Gt.H),3),20),c(ce(De(Gt.H),4),20),c(ce(De(Gt.H),5),20),c(ce(Mi(Gt.H),0),62),Hw=Gt.db,c(ce(De(Gt.db),0),20),Fh=Gt.M}function $nn(e){var t;e.O||(e.O=!0,Jc(e,"type"),DH(e,"ecore.xml.type"),LH(e,Tb),t=c(qS((w0(),nf),Tb),2023),Ln(wo(e.fb),e.b),Go(e.b,vI,"AnyType",!1,!1,!0),wr(c(ce(De(e.b),0),38),e.wb.D,eP,null,0,-1,vI,!1,!1,!0,!1,!1,!1),wr(c(ce(De(e.b),1),38),e.wb.D,"any",null,0,-1,vI,!0,!0,!0,!1,!1,!0),wr(c(ce(De(e.b),2),38),e.wb.D,"anyAttribute",null,0,-1,vI,!1,!1,!0,!1,!1,!1),Go(e.bb,DV,Jat,!1,!1,!0),wr(c(ce(De(e.bb),0),38),e.gb,"data",null,0,1,DV,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.bb),1),38),e.gb,X4e,null,1,1,DV,!1,!1,!0,!1,!0,!1),Go(e.fb,yI,Vat,!1,!1,!0),wr(c(ce(De(e.fb),0),38),t.gb,"rawValue",null,0,1,yI,!0,!0,!0,!1,!0,!0),wr(c(ce(De(e.fb),1),38),t.a,_E,null,0,1,yI,!0,!0,!0,!1,!0,!0),Hi(c(ce(De(e.fb),2),20),e.wb.q,null,"instanceType",1,1,yI,!1,!1,!0,!1,!1,!1,!1),Go(e.qb,xEe,Xat,!1,!1,!0),wr(c(ce(De(e.qb),0),38),e.wb.D,eP,null,0,-1,null,!1,!1,!0,!1,!1,!1),Hi(c(ce(De(e.qb),1),20),e.wb.ab,null,"xMLNSPrefixMap",0,-1,null,!0,!1,!0,!0,!1,!1,!1),Hi(c(ce(De(e.qb),2),20),e.wb.ab,null,"xSISchemaLocation",0,-1,null,!0,!1,!0,!0,!1,!1,!1),wr(c(ce(De(e.qb),3),38),e.gb,"cDATA",null,0,-2,null,!0,!0,!0,!1,!1,!0),wr(c(ce(De(e.qb),4),38),e.gb,"comment",null,0,-2,null,!0,!0,!0,!1,!1,!0),Hi(c(ce(De(e.qb),5),20),e.bb,null,lft,0,-2,null,!0,!0,!0,!0,!1,!1,!0),wr(c(ce(De(e.qb),6),38),e.gb,yoe,null,0,-2,null,!0,!0,!0,!1,!1,!0),fi(e.a,Br,"AnySimpleType",!0),fi(e.c,tt,"AnyURI",!0),fi(e.d,K($l,1),"Base64Binary",!0),fi(e.e,Sl,"Boolean",!0),fi(e.f,or,"BooleanObject",!0),fi(e.g,$l,"Byte",!0),fi(e.i,xk,"ByteObject",!0),fi(e.j,tt,"Date",!0),fi(e.k,tt,"DateTime",!0),fi(e.n,nce,"Decimal",!0),fi(e.o,is,"Double",!0),fi(e.p,jr,"DoubleObject",!0),fi(e.q,tt,"Duration",!0),fi(e.s,Ju,"ENTITIES",!0),fi(e.r,Ju,"ENTITIESBase",!0),fi(e.t,tt,fke,!0),fi(e.u,wy,"Float",!0),fi(e.v,Lj,"FloatObject",!0),fi(e.w,tt,"GDay",!0),fi(e.B,tt,"GMonth",!0),fi(e.A,tt,"GMonthDay",!0),fi(e.C,tt,"GYear",!0),fi(e.D,tt,"GYearMonth",!0),fi(e.F,K($l,1),"HexBinary",!0),fi(e.G,tt,"ID",!0),fi(e.H,tt,"IDREF",!0),fi(e.J,Ju,"IDREFS",!0),fi(e.I,Ju,"IDREFSBase",!0),fi(e.K,Hn,"Int",!0),fi(e.M,o3,"Integer",!0),fi(e.L,Pr,"IntObject",!0),fi(e.P,tt,"Language",!0),fi(e.Q,Gw,"Long",!0),fi(e.R,Tw,"LongObject",!0),fi(e.S,tt,"Name",!0),fi(e.T,tt,hU,!0),fi(e.U,o3,"NegativeInteger",!0),fi(e.V,tt,gke,!0),fi(e.X,Ju,"NMTOKENS",!0),fi(e.W,Ju,"NMTOKENSBase",!0),fi(e.Y,o3,"NonNegativeInteger",!0),fi(e.Z,o3,"NonPositiveInteger",!0),fi(e.$,tt,"NormalizedString",!0),fi(e._,tt,"NOTATION",!0),fi(e.ab,tt,"PositiveInteger",!0),fi(e.cb,tt,"QName",!0),fi(e.db,B3,"Short",!0),fi(e.eb,Ew,"ShortObject",!0),fi(e.gb,tt,Pxe,!0),fi(e.hb,tt,"Time",!0),fi(e.ib,tt,"Token",!0),fi(e.jb,B3,"UnsignedByte",!0),fi(e.kb,Ew,"UnsignedByteObject",!0),fi(e.lb,Gw,"UnsignedInt",!0),fi(e.mb,Tw,"UnsignedIntObject",!0),fi(e.nb,o3,"UnsignedLong",!0),fi(e.ob,Hn,"UnsignedShort",!0),fi(e.pb,Pr,"UnsignedShortObject",!0),Cwe(e,Tb),Bnn(e))}function Mxe(e,t,n,i){var r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt,Rt,fn,ti,tr,Kl,bo,Zu,z3,s0,Rf,Y1,Da,Zk,dM,Z1,uh,o0,Qb,Gb,eO,Ub,Jb,eg,vy;if(i.Zg()||Ze(Ye(Se(t,(In(),fV)))))return Mt(),Mt(),$s;if(Xe=(!t.a&&(t.a=new _e(_n,t,10,11)),t.a).i!=0,wt=lUt(t),mt=!wt.dc(),Xe||mt){if(r=c(Se(t,cy),144),!r)throw V(new Uh("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if(Ub=Ege(r,(ok(),TV)),$Ye(t),!Xe&&mt&&!Ub)return Mt(),Mt(),$s;if(le=new He,xe(Se(t,A3))===xe((D1(),Yg))&&(Ege(r,jV)||Ege(r,SV))){if(Ze(Ye(Se(t,f9))))throw V(new Uh("Topdown layout cannot be used together with hierarchy handling."));for(z3=Uit(e,t),s0=new _i,Ss(s0,(!t.a&&(t.a=new _e(_n,t,10,11)),t.a));s0.b!=0;)bo=c(s0.b==0?null:(gn(s0.b!=0),ma(s0,s0.a.a)),19),$Ye(bo),eO=xe(Se(bo,A3))===xe(XC),eO||pa(bo,Hk)&&!Fbe(r,Se(bo,cy))?(Q=Mxe(e,bo,n,i),Or(le,Q),ri(bo,A3,XC),art(bo)):Ss(s0,(!bo.a&&(bo.a=new _e(_n,bo,10,11)),bo.a))}else{if(z3=(!t.a&&(t.a=new _e(_n,t,10,11)),t.a).i,Ze(Ye(Se(t,f9)))){if(Jb=i.dh(1),Jb.Tg(Qlt,1),Se(t,Uk)==null)throw V(new Uh(t.k+" has not been assigned a top-down node type."));if(c(Se(t,Uk),283)==(U4(),fy)||c(Se(t,Uk),283)==kV)for(re=new on((!t.a&&(t.a=new _e(_n,t,10,11)),t.a));re.e!=re.i.gc();)W=c(un(re),19),Kl=c(Se(W,cy),144),Y1=c(Se(W,Ih),100),(!W.a&&(W.a=new _e(_n,W,10,11)),W.a).i>0&&rD(Kl.f),Se(W,gV)!=null&&(!W.a&&(W.a=new _e(_n,W,10,11)),!!W.a)&&(!W.a&&(W.a=new _e(_n,W,10,11)),W.a).i>0?(d=c(Se(W,gV),525),Gb=d.Sg(W),Pm(W,p.Math.max(W.g,Gb.a+Y1.b+Y1.c),p.Math.max(W.f,Gb.b+Y1.d+Y1.a))):(!W.a&&(W.a=new _e(_n,W,10,11)),W.a).i!=0&&(Gb=new ze(de(be(Se(W,ly))),de(be(Se(W,ly)))/de(be(Se(W,a9)))),Pm(W,p.Math.max(W.g,Gb.a+Y1.b+Y1.c),p.Math.max(W.f,Gb.b+Y1.d+Y1.a)));if(Rf=c(Se(t,Ih),100),L=t.g-(Rf.b+Rf.c),A=t.f-(Rf.d+Rf.a),Jb.ah("Available Child Area: ("+L+"|"+A+")"),ri(t,l9,L/A),qYe(t,r,i.dh(z3)),c(Se(t,Uk),283)==kV&&(nre(t),Pm(t,Rf.b+de(be(Se(t,ry)))+Rf.c,Rf.d+de(be(Se(t,iy)))+Rf.a)),Jb.ah("Executed layout algorithm: "+qn(Se(t,Hk))+" on node "+t.k),c(Se(t,Uk),283)==fy){if(L<0||A<0)throw V(new Uh("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(pa(t,ry)||pa(t,iy)||nre(t),z=de(be(Se(t,ry))),I=de(be(Se(t,iy))),Jb.ah("Desired Child Area: ("+z+"|"+I+")"),Zk=L/z,dM=A/I,Da=p.Math.min(Zk,p.Math.min(dM,de(be(Se(t,L2t))))),ri(t,dV,Da),Jb.ah(t.k+" -- Local Scale Factor (X|Y): ("+Zk+"|"+dM+")"),me=c(Se(t,JP),24),o=0,a=0,Da<Zk&&(me.Gc((gb(),FC))?o=(L/2-z*Da/2)/Da:me.Gc(qC)&&(o=(L-z*Da)/Da)),Da<dM&&(me.Gc((gb(),QC))?a=(A/2-I*Da/2)/Da:me.Gc(HC)&&(a=(A-I*Da)/Da)),eg=o+(Rf.b/Da-Rf.b),vy=a+(Rf.d/Da-Rf.d),Jb.ah("Shift: ("+eg+"|"+vy+")"),Zu=new on((!t.a&&(t.a=new _e(_n,t,10,11)),t.a));Zu.e!=Zu.i.gc();)bo=c(un(Zu),19),Nc(bo,bo.i+eg),_l(bo,bo.j+vy);for(Oe=new on((!t.b&&(t.b=new _e($i,t,12,3)),t.b));Oe.e!=Oe.i.gc();){for(je=c(un(Oe),74),uh=new on((!je.a&&(je.a=new _e(Gi,je,6,6)),je.a));uh.e!=uh.i.gc();)for(Z1=c(un(uh),171),I_(Z1,Z1.j+eg,Z1.k+vy),P_(Z1,Z1.b+eg,Z1.c+vy),v=new on((!Z1.a&&(Z1.a=new Nr(Yu,Z1,5)),Z1.a));v.e!=v.i.gc();)b=c(un(v),373),xZ(b,b.a+eg,b.b+vy);for(tr=new on((!je.n&&(je.n=new _e(zo,je,1,7)),je.n));tr.e!=tr.i.gc();)ti=c(un(tr),158),fa(ti,ti.i+eg,ti.j+vy);for(fn=c(Se(je,N3),79),Rt=Pn(fn,0);Rt.b!=Rt.d.c;)Lt=c(Dn(Rt),8),Lt.a+=eg,Lt.b+=vy;ri(je,N3,fn)}}Jb.Ug()}for(T=new on((!t.a&&(t.a=new _e(_n,t,10,11)),t.a));T.e!=T.i.gc();)x=c(un(T),19),Q=Mxe(e,x,n,i),Or(le,Q),art(x)}if(i.Zg())return Mt(),Mt(),$s;for(Qb=new U(le);Qb.a<Qb.c.c.length;)o0=c(G(Qb),74),ri(o0,fV,(Bt(),!0));return Ze(Ye(Se(t,f9)))||qYe(t,r,i.dh(z3)),yKt(le),mt&&Ub?wt:(Mt(),Mt(),$s)}else return Mt(),Mt(),$s}function Xx(e,t){var n,i;return $3||($3=new yn,w9=new yn,i=(vi(),vi(),new $u(4)),JD(i,`	
\r\r  `),uo($3,Boe,i),uo(w9,Boe,Ov(i)),i=new $u(4),JD(i,aft),uo($3,FE,i),uo(w9,FE,Ov(i)),i=new $u(4),JD(i,aft),uo($3,FE,i),uo(w9,FE,Ov(i)),i=new $u(4),JD(i,fft),jv(i,c(Mc($3,FE),122)),uo($3,$oe,i),uo(w9,$oe,Ov(i)),i=new $u(4),JD(i,"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),uo($3,zoe,i),uo(w9,zoe,Ov(i)),i=new $u(4),JD(i,fft),Dc(i,95,95),Dc(i,58,58),uo($3,Foe,i),uo(w9,Foe,Ov(i))),n=c(Mc(t?$3:w9,e),140),n}function Aot(e){Dm(e,new pb(EY(h_(Am(Em(Mm(Cm(new h1,Qt),"ELK Layered"),"Layer-based algorithm provided by the Eclipse Layout Kernel. Arranges as many edges as possible into one direction by placing nodes into subsequent layers. This implementation supports different routing styles (straight, orthogonal, splines); if orthogonal routing is selected, arbitrary port constraints are respected, thus enabling the layout of block diagrams such as actor-oriented models or circuit schematics. Furthermore, full layout of compound graphs with cross-hierarchy edges is supported when the respective option is activated on the top level."),new YW),Qt),Li((ok(),Gae),Y(K(gI,1),Pe,235,0,[TV,dI,hI,Qae,jV,SV]))))),Be(e,Qt,Y3e,Ve(Ile)),Be(e,Qt,Z3e,Ve(wje)),Be(e,Qt,e5e,Ve(CP)),Be(e,Qt,t5e,Ve(Mf)),Be(e,Qt,Ure,Ve(k3)),Be(e,Qt,Lse,Ve(Pb)),Be(e,Qt,n5e,Ve(Kv)),Be(e,Qt,i5e,Ve(Yj)),Be(e,Qt,r5e,Ve(Zj)),Be(e,Qt,s5e,Ve(Rle)),Be(e,Qt,bw,Ve(Ib)),Be(e,Qt,o5e,Ve($le)),Be(e,Qt,c5e,Ve(bC)),Be(e,Qt,l5e,Ve(CJ)),Be(e,Qt,A3e,Ve(EP)),Be(e,Qt,_3e,Ve(Wv)),Be(e,Qt,N3e,Ve(tp)),Be(e,Qt,D3e,Ve(Yv)),Be(e,Qt,RL,$e(0)),Be(e,Qt,L3e,Ve(Kj)),Be(e,Qt,P3e,Ve(mje)),Be(e,Qt,I3e,Ve($k)),Be(e,Qt,F1,Ve(Eje)),Be(e,Qt,CG,Ve(yje)),Be(e,Qt,MG,Ve(xje)),Be(e,Qt,SE,Ve(zle)),Be(e,Qt,bse,Ve(kje)),Be(e,Qt,mse,Ve(Oje)),Be(e,Qt,AG,Ve(MJ)),Be(e,Qt,NG,Ve(Fle)),Be(e,Qt,_G,Ve(jje)),Be(e,Qt,DG,Ve(Sje)),Be(e,Qt,wse,Ve(Tje)),Be(e,Qt,vse,Ve(oje)),Be(e,Qt,yse,Ve(_le)),Be(e,Qt,xse,Ve(OJ)),Be(e,Qt,kse,Ve(Dle)),Be(e,Qt,ase,Ve(Iw)),Be(e,Qt,fse,Ve(pC)),Be(e,Qt,jG,Ve(Ale)),Be(e,Qt,TG,Ve(XSe)),Be(e,Qt,BL,Ve(gpt)),Be(e,Qt,zL,Ve(ppt)),Be(e,Qt,FL,Ve(dpt)),Be(e,Qt,qL,Ve(hpt)),Be(e,Qt,ww,vje),Be(e,Qt,mw,hje),Be(e,Qt,VL,USe),Be(e,Qt,u5e,0),Be(e,Qt,bG,$e(1)),Be(e,Qt,aj,uj),Be(e,Qt,a5e,Ve(Lb)),Be(e,Qt,mG,Ve(ar)),Be(e,Qt,f5e,Ve(Wj)),Be(e,Qt,XL,Ve(npt)),Be(e,Qt,h5e,Ve(pd)),Be(e,Qt,PG,Ve(Qv)),Be(e,Qt,vE,(Bt(),!0)),Be(e,Qt,d5e,Ve(Gv)),Be(e,Qt,g5e,Ve(_b)),Be(e,Qt,Yx,Ve(Db)),Be(e,Qt,bk,Ve(EJ)),Be(e,Qt,dj,Ve(Ple)),Be(e,Qt,Pse,GSe),Be(e,Qt,gj,Ve(Pw)),Be(e,Qt,p5e,Ve(jJ)),Be(e,Qt,pj,Ve(Vv)),Be(e,Qt,b5e,Ve(lpt)),Be(e,Qt,m5e,Ve(pje)),Be(e,Qt,w5e,gje),Be(e,Qt,v5e,Ve(spt)),Be(e,Qt,y5e,Ve(opt)),Be(e,Qt,x5e,Ve(cpt)),Be(e,Qt,k5e,Ve(rpt)),Be(e,Qt,m3e,Ve(Ble)),Be(e,Qt,UL,Ve(kJ)),Be(e,Qt,tse,Ve(TP)),Be(e,Qt,b3e,Ve(mC)),Be(e,Qt,v3e,Ve($o)),Be(e,Qt,GL,Ve(Rk)),Be(e,Qt,OE,Ve(hC)),Be(e,Qt,k3e,Ve(Vj)),Be(e,Qt,E3e,Ve(qSe)),Be(e,Qt,ose,Ve(Ele)),Be(e,Qt,OG,Ve(jP)),Be(e,Qt,sse,Ve(Cle)),Be(e,Qt,h3e,Ve(cje)),Be(e,Qt,d3e,Ve(lje)),Be(e,Qt,kG,Ve(tje)),Be(e,Qt,Zx,Ve(TJ)),Be(e,Qt,lse,Ve(Lle)),Be(e,Qt,f3e,Ve(Nle)),Be(e,Qt,use,Ve(aje)),Be(e,Qt,C3e,Ve(VSe)),Be(e,Qt,M3e,Ve(Mle)),Be(e,Qt,IG,Ve(Tle)),Be(e,Qt,cse,Ve(uje)),Be(e,Qt,R3e,Ve(bJ)),Be(e,Qt,$3e,Ve($Se)),Be(e,Qt,dse,Ve(pJ)),Be(e,Qt,EG,Ve(YSe)),Be(e,Qt,gse,Ve(KSe)),Be(e,Qt,pse,Ve(ZSe)),Be(e,Qt,mk,Ve(Xj)),Be(e,Qt,O5e,Ve(go)),Be(e,Qt,S5e,Ve(Jg)),Be(e,Qt,j5e,Ve(bd)),Be(e,Qt,$L,Ve(x3)),Be(e,Qt,rse,Ve(HSe)),Be(e,Qt,T5e,Ve(Vg)),Be(e,Qt,E5e,Ve(lC)),Be(e,Qt,C5e,Ve(xJ)),Be(e,Qt,M5e,Ve(Rw)),Be(e,Qt,Ise,Ve(dje)),Be(e,Qt,Rse,Ve(Uv)),Be(e,Qt,Zre,Ve(ije)),Be(e,Qt,ese,Ve(rje)),Be(e,Qt,RG,Ve(Xv)),Be(e,Qt,g3e,Ve(kle)),Be(e,Qt,nse,Ve(sje)),Be(e,Qt,B3e,Ve(yJ)),Be(e,Qt,z3e,Ve(vJ)),Be(e,Qt,$se,Ve(SJ)),Be(e,Qt,ise,Ve(nje)),Be(e,Qt,SG,Ve(gC)),Be(e,Qt,A5e,Ve(MP)),Be(e,Qt,a3e,Ve(QSe)),Be(e,Qt,p3e,Ve(bje)),Be(e,Qt,hse,Ve(JSe)),Be(e,Qt,O3e,Ve(Z0t)),Be(e,Qt,S3e,Ve(ept)),Be(e,Qt,y3e,Ve(ipt)),Be(e,Qt,j3e,Ve(tpt)),Be(e,Qt,$G,Ve(eje)),Be(e,Qt,x3e,Ve(dC)),Be(e,Qt,T3e,Ve(wJ)),Be(e,Qt,LG,Ve(Kd)),Be(e,Qt,q3e,Ve(Sle)),Be(e,Qt,Sse,Ve(SP)),Be(e,Qt,jse,Ve(Ole)),Be(e,Qt,JL,Ve(mJ)),Be(e,Qt,Ose,Ve(uC)),Be(e,Qt,F3e,Ve(jle)),Be(e,Qt,Tse,Ve(Hv)),Be(e,Qt,Ese,Ve(fC)),Be(e,Qt,Cse,Ve(Y0t)),Be(e,Qt,H3e,Ve(Ik)),Be(e,Qt,Q3e,Ve(aC)),Be(e,Qt,G3e,Ve(FSe)),Be(e,Qt,Mse,Ve(BSe)),Be(e,Qt,Ase,Ve(zSe)),Be(e,Qt,w3e,Ve(WSe))}function Bnn(e){$n(e.a,Kn,Y(K(tt,1),Fe,2,6,[di,"anySimpleType"])),$n(e.b,Kn,Y(K(tt,1),Fe,2,6,[di,"anyType",Ua,eP])),$n(c(ce(De(e.b),0),38),Kn,Y(K(tt,1),Fe,2,6,[Ua,Doe,di,":mixed"])),$n(c(ce(De(e.b),1),38),Kn,Y(K(tt,1),Fe,2,6,[Ua,Doe,uke,Poe,di,":1",Wat,"lax"])),$n(c(ce(De(e.b),2),38),Kn,Y(K(tt,1),Fe,2,6,[Ua,Uat,uke,Poe,di,":2",Wat,"lax"])),$n(e.c,Kn,Y(K(tt,1),Fe,2,6,[di,"anyURI",Va,th])),$n(e.d,Kn,Y(K(tt,1),Fe,2,6,[di,"base64Binary",Va,th])),$n(e.e,Kn,Y(K(tt,1),Fe,2,6,[di,lk,Va,th])),$n(e.f,Kn,Y(K(tt,1),Fe,2,6,[di,"boolean:Object",xs,lk])),$n(e.g,Kn,Y(K(tt,1),Fe,2,6,[di,LE])),$n(e.i,Kn,Y(K(tt,1),Fe,2,6,[di,"byte:Object",xs,LE])),$n(e.j,Kn,Y(K(tt,1),Fe,2,6,[di,"date",Va,th])),$n(e.k,Kn,Y(K(tt,1),Fe,2,6,[di,"dateTime",Va,th])),$n(e.n,Kn,Y(K(tt,1),Fe,2,6,[di,"decimal",Va,th])),$n(e.o,Kn,Y(K(tt,1),Fe,2,6,[di,PE,Va,th])),$n(e.p,Kn,Y(K(tt,1),Fe,2,6,[di,"double:Object",xs,PE])),$n(e.q,Kn,Y(K(tt,1),Fe,2,6,[di,"duration",Va,th])),$n(e.s,Kn,Y(K(tt,1),Fe,2,6,[di,"ENTITIES",xs,Kat,ake,"1"])),$n(e.r,Kn,Y(K(tt,1),Fe,2,6,[di,Kat,Loe,fke])),$n(e.t,Kn,Y(K(tt,1),Fe,2,6,[di,fke,xs,hU])),$n(e.u,Kn,Y(K(tt,1),Fe,2,6,[di,IE,Va,th])),$n(e.v,Kn,Y(K(tt,1),Fe,2,6,[di,"float:Object",xs,IE])),$n(e.w,Kn,Y(K(tt,1),Fe,2,6,[di,"gDay",Va,th])),$n(e.B,Kn,Y(K(tt,1),Fe,2,6,[di,"gMonth",Va,th])),$n(e.A,Kn,Y(K(tt,1),Fe,2,6,[di,"gMonthDay",Va,th])),$n(e.C,Kn,Y(K(tt,1),Fe,2,6,[di,"gYear",Va,th])),$n(e.D,Kn,Y(K(tt,1),Fe,2,6,[di,"gYearMonth",Va,th])),$n(e.F,Kn,Y(K(tt,1),Fe,2,6,[di,"hexBinary",Va,th])),$n(e.G,Kn,Y(K(tt,1),Fe,2,6,[di,"ID",xs,hU])),$n(e.H,Kn,Y(K(tt,1),Fe,2,6,[di,"IDREF",xs,hU])),$n(e.J,Kn,Y(K(tt,1),Fe,2,6,[di,"IDREFS",xs,Yat,ake,"1"])),$n(e.I,Kn,Y(K(tt,1),Fe,2,6,[di,Yat,Loe,"IDREF"])),$n(e.K,Kn,Y(K(tt,1),Fe,2,6,[di,RE])),$n(e.M,Kn,Y(K(tt,1),Fe,2,6,[di,hke])),$n(e.L,Kn,Y(K(tt,1),Fe,2,6,[di,"int:Object",xs,RE])),$n(e.P,Kn,Y(K(tt,1),Fe,2,6,[di,"language",xs,Ioe,Roe,Zat])),$n(e.Q,Kn,Y(K(tt,1),Fe,2,6,[di,$E])),$n(e.R,Kn,Y(K(tt,1),Fe,2,6,[di,"long:Object",xs,$E])),$n(e.S,Kn,Y(K(tt,1),Fe,2,6,[di,"Name",xs,Ioe,Roe,dke])),$n(e.T,Kn,Y(K(tt,1),Fe,2,6,[di,hU,xs,"Name",Roe,eft])),$n(e.U,Kn,Y(K(tt,1),Fe,2,6,[di,"negativeInteger",xs,tft,sP,"-1"])),$n(e.V,Kn,Y(K(tt,1),Fe,2,6,[di,gke,xs,Ioe,Roe,"\\c+"])),$n(e.X,Kn,Y(K(tt,1),Fe,2,6,[di,"NMTOKENS",xs,nft,ake,"1"])),$n(e.W,Kn,Y(K(tt,1),Fe,2,6,[di,nft,Loe,gke])),$n(e.Y,Kn,Y(K(tt,1),Fe,2,6,[di,pke,xs,hke,oP,"0"])),$n(e.Z,Kn,Y(K(tt,1),Fe,2,6,[di,tft,xs,hke,sP,"0"])),$n(e.$,Kn,Y(K(tt,1),Fe,2,6,[di,ift,xs,sre,Va,"replace"])),$n(e._,Kn,Y(K(tt,1),Fe,2,6,[di,"NOTATION",Va,th])),$n(e.ab,Kn,Y(K(tt,1),Fe,2,6,[di,"positiveInteger",xs,pke,oP,"1"])),$n(e.bb,Kn,Y(K(tt,1),Fe,2,6,[di,"processingInstruction_._type",Ua,"empty"])),$n(c(ce(De(e.bb),0),38),Kn,Y(K(tt,1),Fe,2,6,[Ua,lU,di,"data"])),$n(c(ce(De(e.bb),1),38),Kn,Y(K(tt,1),Fe,2,6,[Ua,lU,di,X4e])),$n(e.cb,Kn,Y(K(tt,1),Fe,2,6,[di,"QName",Va,th])),$n(e.db,Kn,Y(K(tt,1),Fe,2,6,[di,BE])),$n(e.eb,Kn,Y(K(tt,1),Fe,2,6,[di,"short:Object",xs,BE])),$n(e.fb,Kn,Y(K(tt,1),Fe,2,6,[di,"simpleAnyType",Ua,tP])),$n(c(ce(De(e.fb),0),38),Kn,Y(K(tt,1),Fe,2,6,[di,":3",Ua,tP])),$n(c(ce(De(e.fb),1),38),Kn,Y(K(tt,1),Fe,2,6,[di,":4",Ua,tP])),$n(c(ce(De(e.fb),2),20),Kn,Y(K(tt,1),Fe,2,6,[di,":5",Ua,tP])),$n(e.gb,Kn,Y(K(tt,1),Fe,2,6,[di,sre,Va,"preserve"])),$n(e.hb,Kn,Y(K(tt,1),Fe,2,6,[di,"time",Va,th])),$n(e.ib,Kn,Y(K(tt,1),Fe,2,6,[di,Ioe,xs,ift,Va,th])),$n(e.jb,Kn,Y(K(tt,1),Fe,2,6,[di,rft,sP,"255",oP,"0"])),$n(e.kb,Kn,Y(K(tt,1),Fe,2,6,[di,"unsignedByte:Object",xs,rft])),$n(e.lb,Kn,Y(K(tt,1),Fe,2,6,[di,sft,sP,"4294967295",oP,"0"])),$n(e.mb,Kn,Y(K(tt,1),Fe,2,6,[di,"unsignedInt:Object",xs,sft])),$n(e.nb,Kn,Y(K(tt,1),Fe,2,6,[di,"unsignedLong",xs,pke,sP,oft,oP,"0"])),$n(e.ob,Kn,Y(K(tt,1),Fe,2,6,[di,cft,sP,"65535",oP,"0"])),$n(e.pb,Kn,Y(K(tt,1),Fe,2,6,[di,"unsignedShort:Object",xs,cft])),$n(e.qb,Kn,Y(K(tt,1),Fe,2,6,[di,"",Ua,eP])),$n(c(ce(De(e.qb),0),38),Kn,Y(K(tt,1),Fe,2,6,[Ua,Doe,di,":mixed"])),$n(c(ce(De(e.qb),1),20),Kn,Y(K(tt,1),Fe,2,6,[Ua,lU,di,"xmlns:prefix"])),$n(c(ce(De(e.qb),2),20),Kn,Y(K(tt,1),Fe,2,6,[Ua,lU,di,"xsi:schemaLocation"])),$n(c(ce(De(e.qb),3),38),Kn,Y(K(tt,1),Fe,2,6,[Ua,uU,di,"cDATA",aU,nP])),$n(c(ce(De(e.qb),4),38),Kn,Y(K(tt,1),Fe,2,6,[Ua,uU,di,"comment",aU,nP])),$n(c(ce(De(e.qb),5),20),Kn,Y(K(tt,1),Fe,2,6,[Ua,uU,di,lft,aU,nP])),$n(c(ce(De(e.qb),6),38),Kn,Y(K(tt,1),Fe,2,6,[Ua,uU,di,yoe,aU,nP]))}function Xn(e){return St("_UI_EMFDiagnostic_marker",e)?"EMF Problem":St("_UI_CircularContainment_diagnostic",e)?"An object may not circularly contain itself":St(Qut,e)?"Wrong character.":St(Gut,e)?"Invalid reference number.":St(ZG,e)?"A character is required after \\.":St(Eoe,e)?"'?' is not expected.  '(?:' or '(?=' or '(?!' or '(?<' or '(?#' or '(?>'?":St(Uut,e)?"'(?<' or '(?<!' is expected.":St(Jut,e)?"A comment is not terminated.":St(jb,e)?"')' is expected.":St(W4e,e)?"Unexpected end of the pattern in a modifier group.":St(Vut,e)?"':' is expected.":St(Xut,e)?"Unexpected end of the pattern in a conditional group.":St(Wut,e)?"A back reference or an anchor or a lookahead or a look-behind is expected in a conditional pattern.":St(Kut,e)?"There are more than three choices in a conditional group.":St(Yut,e)?"A character in U+0040-U+005f must follow \\c.":St(Zut,e)?"A '{' is required before a character category.":St(eat,e)?"A property name is not closed by '}'.":St(K4e,e)?"Unexpected meta character.":St(Coe,e)?"Unknown property.":St(Y4e,e)?"A POSIX character class must be closed by ':]'.":St(eU,e)?"Unexpected end of the pattern in a character class.":St(tat,e)?"Unknown name for a POSIX character class.":St("parser.cc.4",e)?"'-' is invalid here.":St(nat,e)?"']' is expected.":St(Z4e,e)?"'[' is invalid in a character class.  Write '\\['.":St(eke,e)?"']' is invalid in a character class.  Write '\\]'.":St(Moe,e)?"'-' is an invalid character range. Write '\\-'.":St(iat,e)?"'[' is expected.":St(rat,e)?"')' or '-[' or '+[' or '&[' is expected.":St(sat,e)?"The range end code point is less than the start code point.":St(Qg,e)?"Invalid Unicode hex notation.":St(oat,e)?"Overflow in a hex notation.":St(cat,e)?"'\\x{' must be closed by '}'.":St(lat,e)?"Invalid Unicode code point.":St(uat,e)?"An anchor must not be here.":St(Ta,e)?"This expression is not supported in the current option setting.":St(aat,e)?"Invalid quantifier. A digit is expected.":St(fat,e)?"Invalid quantifier. Invalid quantity or a '}' is missing.":St(hat,e)?"Invalid quantifier. A digit or '}' is expected.":St(dat,e)?"Invalid quantifier. A min quantity must be <= a max quantity.":St(tke,e)?"Invalid quantifier. A quantity value overflow.":St("_UI_PackageRegistry_extensionpoint",e)?"Ecore Package Registry for Generated Packages":St("_UI_DynamicPackageRegistry_extensionpoint",e)?"Ecore Package Registry for Dynamic Packages":St("_UI_FactoryRegistry_extensionpoint",e)?"Ecore Factory Override Registry":St("_UI_URIExtensionParserRegistry_extensionpoint",e)?"URI Extension Parser Registry":St("_UI_URIProtocolParserRegistry_extensionpoint",e)?"URI Protocol Parser Registry":St("_UI_URIContentParserRegistry_extensionpoint",e)?"URI Content Parser Registry":St("_UI_ContentHandlerRegistry_extensionpoint",e)?"Content Handler Registry":St("_UI_URIMappingRegistry_extensionpoint",e)?"URI Converter Mapping Registry":St("_UI_PackageRegistryImplementation_extensionpoint",e)?"Ecore Package Registry Implementation":St("_UI_ValidationDelegateRegistry_extensionpoint",e)?"Validation Delegate Registry":St("_UI_SettingDelegateRegistry_extensionpoint",e)?"Feature Setting Delegate Factory Registry":St("_UI_InvocationDelegateRegistry_extensionpoint",e)?"Operation Invocation Delegate Factory Registry":St("_UI_EClassInterfaceNotAbstract_diagnostic",e)?"A class that is an interface must also be abstract":St("_UI_EClassNoCircularSuperTypes_diagnostic",e)?"A class may not be a super type of itself":St("_UI_EClassNotWellFormedMapEntryNoInstanceClassName_diagnostic",e)?"A class that inherits from a map entry class must have instance class name 'java.util.Map$Entry'":St("_UI_EReferenceOppositeOfOppositeInconsistent_diagnostic",e)?"The opposite of the opposite may not be a reference different from this one":St("_UI_EReferenceOppositeNotFeatureOfType_diagnostic",e)?"The opposite must be a feature of the reference's type":St("_UI_EReferenceTransientOppositeNotTransient_diagnostic",e)?"The opposite of a transient reference must be transient if it is proxy resolving":St("_UI_EReferenceOppositeBothContainment_diagnostic",e)?"The opposite of a containment reference must not be a containment reference":St("_UI_EReferenceConsistentUnique_diagnostic",e)?"A containment or bidirectional reference must be unique if its upper bound is different from 1":St("_UI_ETypedElementNoType_diagnostic",e)?"The typed element must have a type":St("_UI_EAttributeNoDataType_diagnostic",e)?"The generic attribute type must not refer to a class":St("_UI_EReferenceNoClass_diagnostic",e)?"The generic reference type must not refer to a data type":St("_UI_EGenericTypeNoTypeParameterAndClassifier_diagnostic",e)?"A generic type can't refer to both a type parameter and a classifier":St("_UI_EGenericTypeNoClass_diagnostic",e)?"A generic super type must refer to a class":St("_UI_EGenericTypeNoTypeParameterOrClassifier_diagnostic",e)?"A generic type in this context must refer to a classifier or a type parameter":St("_UI_EGenericTypeBoundsOnlyForTypeArgument_diagnostic",e)?"A generic type may have bounds only when used as a type argument":St("_UI_EGenericTypeNoUpperAndLowerBound_diagnostic",e)?"A generic type must not have both a lower and an upper bound":St("_UI_EGenericTypeNoTypeParameterOrClassifierAndBound_diagnostic",e)?"A generic type with bounds must not also refer to a type parameter or classifier":St("_UI_EGenericTypeNoArguments_diagnostic",e)?"A generic type may have arguments only if it refers to a classifier":St("_UI_EGenericTypeOutOfScopeTypeParameter_diagnostic",e)?"A generic type may only refer to a type parameter that is in scope":e}function znn(e){var t,n,i,r,o,a,d,b,v,x,T,A,L,I,z;e.r||(e.r=!0,Jc(e,"graph"),DH(e,"graph"),LH(e,Ej),PD(e.o,"T"),Ln(wo(e.a),e.p),Ln(wo(e.f),e.a),Ln(wo(e.n),e.f),Ln(wo(e.g),e.n),Ln(wo(e.c),e.n),Ln(wo(e.i),e.c),Ln(wo(e.j),e.c),Ln(wo(e.d),e.f),Ln(wo(e.e),e.a),Go(e.p,nin,Tct,!0,!0,!1),I=Lx(e.p,e.p,"setProperty"),z=AWe(I),v=O1(e.o),x=(n=(i=new Tm,i),n),Ln((!v.d&&(v.d=new Nr(Ys,v,1)),v.d),x),T=Cee(z),tve(x,T),OQ(I,v,q4e),v=Cee(z),OQ(I,v,_E),I=Lx(e.p,null,"getProperty"),z=AWe(I),v=O1(e.o),x=Cee(z),Ln((!v.d&&(v.d=new Nr(Ys,v,1)),v.d),x),OQ(I,v,q4e),v=Cee(z),L=Sh(I,v,null),L&&L.mj(),I=Lx(e.p,e.wb.e,"hasProperty"),v=O1(e.o),x=(r=(o=new Tm,o),r),Ln((!v.d&&(v.d=new Nr(Ys,v,1)),v.d),x),OQ(I,v,q4e),I=Lx(e.p,e.p,"copyProperties"),ho(I,e.p,boe),I=Lx(e.p,null,"getAllProperties"),v=O1(e.wb.P),x=O1(e.o),Ln((!v.d&&(v.d=new Nr(Ys,v,1)),v.d),x),T=(a=(d=new Tm,d),a),Ln((!x.d&&(x.d=new Nr(Ys,x,1)),x.d),T),x=O1(e.wb.M),Ln((!v.d&&(v.d=new Nr(Ys,v,1)),v.d),x),A=Sh(I,v,null),A&&A.mj(),Go(e.a,m9,vut,!0,!1,!0),Hi(c(ce(De(e.a),0),20),e.k,null,Nut,0,-1,m9,!1,!1,!0,!0,!1,!1,!1),Go(e.f,uI,xut,!0,!1,!0),Hi(c(ce(De(e.f),0),20),e.g,c(ce(De(e.g),0),20),"labels",0,-1,uI,!1,!1,!0,!0,!1,!1,!1),wr(c(ce(De(e.f),1),38),e.wb._,_ut,null,0,1,uI,!1,!1,!0,!1,!0,!1),Go(e.n,aI,"ElkShape",!0,!1,!0),wr(c(ce(De(e.n),0),38),e.wb.t,moe,rj,1,1,aI,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.n),1),38),e.wb.t,woe,rj,1,1,aI,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.n),2),38),e.wb.t,"x",rj,1,1,aI,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.n),3),38),e.wb.t,"y",rj,1,1,aI,!1,!1,!0,!1,!0,!1),I=Lx(e.n,null,"setDimensions"),ho(I,e.wb.t,woe),ho(I,e.wb.t,moe),I=Lx(e.n,null,"setLocation"),ho(I,e.wb.t,"x"),ho(I,e.wb.t,"y"),Go(e.g,zo,B4e,!1,!1,!0),Hi(c(ce(De(e.g),0),20),e.f,c(ce(De(e.f),0),20),voe,0,1,zo,!1,!1,!0,!1,!1,!1,!1),wr(c(ce(De(e.g),1),38),e.wb._,yoe,"",0,1,zo,!1,!1,!0,!1,!0,!1),Go(e.c,xn,kut,!0,!1,!0),Hi(c(ce(De(e.c),0),20),e.d,c(ce(De(e.d),1),20),"outgoingEdges",0,-1,xn,!1,!1,!0,!1,!0,!1,!1),Hi(c(ce(De(e.c),1),20),e.d,c(ce(De(e.d),2),20),"incomingEdges",0,-1,xn,!1,!1,!0,!1,!0,!1,!1),Go(e.i,_n,z4e,!1,!1,!0),Hi(c(ce(De(e.i),0),20),e.j,c(ce(De(e.j),0),20),"ports",0,-1,_n,!1,!1,!0,!0,!1,!1,!1),Hi(c(ce(De(e.i),1),20),e.i,c(ce(De(e.i),2),20),xoe,0,-1,_n,!1,!1,!0,!0,!1,!1,!1),Hi(c(ce(De(e.i),2),20),e.i,c(ce(De(e.i),1),20),voe,0,1,_n,!1,!1,!0,!1,!1,!1,!1),Hi(c(ce(De(e.i),3),20),e.d,c(ce(De(e.d),0),20),"containedEdges",0,-1,_n,!1,!1,!0,!0,!1,!1,!1),wr(c(ce(De(e.i),4),38),e.wb.e,Dut,null,0,1,_n,!0,!0,!1,!1,!0,!0),Go(e.j,fu,F4e,!1,!1,!0),Hi(c(ce(De(e.j),0),20),e.i,c(ce(De(e.i),0),20),voe,0,1,fu,!1,!1,!0,!1,!1,!1,!1),Go(e.d,$i,$4e,!1,!1,!0),Hi(c(ce(De(e.d),0),20),e.i,c(ce(De(e.i),3),20),"containingNode",0,1,$i,!1,!1,!0,!1,!1,!1,!1),Hi(c(ce(De(e.d),1),20),e.c,c(ce(De(e.c),0),20),H4e,0,-1,$i,!1,!1,!0,!1,!0,!1,!1),Hi(c(ce(De(e.d),2),20),e.c,c(ce(De(e.c),1),20),koe,0,-1,$i,!1,!1,!0,!1,!0,!1,!1),Hi(c(ce(De(e.d),3),20),e.e,c(ce(De(e.e),5),20),Ooe,0,-1,$i,!1,!1,!0,!0,!1,!1,!1),wr(c(ce(De(e.d),4),38),e.wb.e,"hyperedge",null,0,1,$i,!0,!0,!1,!1,!0,!0),wr(c(ce(De(e.d),5),38),e.wb.e,Dut,null,0,1,$i,!0,!0,!1,!1,!0,!0),wr(c(ce(De(e.d),6),38),e.wb.e,"selfloop",null,0,1,$i,!0,!0,!1,!1,!0,!0),wr(c(ce(De(e.d),7),38),e.wb.e,"connected",null,0,1,$i,!0,!0,!1,!1,!0,!0),Go(e.b,Yu,yut,!1,!1,!0),wr(c(ce(De(e.b),0),38),e.wb.t,"x",rj,1,1,Yu,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.b),1),38),e.wb.t,"y",rj,1,1,Yu,!1,!1,!0,!1,!0,!1),I=Lx(e.b,null,"set"),ho(I,e.wb.t,"x"),ho(I,e.wb.t,"y"),Go(e.e,Gi,Out,!1,!1,!0),wr(c(ce(De(e.e),0),38),e.wb.t,"startX",null,0,1,Gi,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.e),1),38),e.wb.t,"startY",null,0,1,Gi,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.e),2),38),e.wb.t,"endX",null,0,1,Gi,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.e),3),38),e.wb.t,"endY",null,0,1,Gi,!1,!1,!0,!1,!0,!1),Hi(c(ce(De(e.e),4),20),e.b,null,XG,0,-1,Gi,!1,!1,!0,!0,!1,!1,!1),Hi(c(ce(De(e.e),5),20),e.d,c(ce(De(e.d),3),20),voe,0,1,Gi,!1,!1,!0,!1,!1,!1,!1),Hi(c(ce(De(e.e),6),20),e.c,null,Q4e,0,1,Gi,!1,!1,!0,!1,!0,!1,!1),Hi(c(ce(De(e.e),7),20),e.c,null,G4e,0,1,Gi,!1,!1,!0,!1,!0,!1,!1),Hi(c(ce(De(e.e),8),20),e.e,c(ce(De(e.e),9),20),U4e,0,-1,Gi,!1,!1,!0,!1,!0,!1,!1),Hi(c(ce(De(e.e),9),20),e.e,c(ce(De(e.e),8),20),J4e,0,-1,Gi,!1,!1,!0,!1,!0,!1,!1),wr(c(ce(De(e.e),10),38),e.wb._,_ut,null,0,1,Gi,!1,!1,!0,!1,!0,!1),I=Lx(e.e,null,"setStartLocation"),ho(I,e.wb.t,"x"),ho(I,e.wb.t,"y"),I=Lx(e.e,null,"setEndLocation"),ho(I,e.wb.t,"x"),ho(I,e.wb.t,"y"),Go(e.k,Eb,"ElkPropertyToValueMapEntry",!1,!1,!1),v=O1(e.o),x=(b=(t=new Tm,t),b),Ln((!v.d&&(v.d=new Nr(Ys,v,1)),v.d),x),fnt(c(ce(De(e.k),0),38),v,"key",Eb,!1,!1,!0,!1),wr(c(ce(De(e.k),1),38),e.s,_E,null,0,1,Eb,!1,!1,!0,!1,!0,!1),fi(e.o,mae,"IProperty",!0),fi(e.s,Br,"PropertyValue",!0),Cwe(e,Ej))}function Not(){Not=Z,ne=ke($l,i3,30,Rs,15,1),ne[9]=35,ne[10]=19,ne[13]=19,ne[32]=51,ne[33]=49,ne[34]=33,ve(ne,35,38,49),ne[38]=1,ve(ne,39,45,49),ve(ne,45,47,-71),ne[47]=49,ve(ne,48,58,-71),ne[58]=61,ne[59]=49,ne[60]=1,ne[61]=49,ne[62]=33,ve(ne,63,65,49),ve(ne,65,91,-3),ve(ne,91,93,33),ne[93]=1,ne[94]=33,ne[95]=-3,ne[96]=33,ve(ne,97,123,-3),ve(ne,123,183,33),ne[183]=-87,ve(ne,184,192,33),ve(ne,192,215,-19),ne[215]=33,ve(ne,216,247,-19),ne[247]=33,ve(ne,248,306,-19),ve(ne,306,308,33),ve(ne,308,319,-19),ve(ne,319,321,33),ve(ne,321,329,-19),ne[329]=33,ve(ne,330,383,-19),ne[383]=33,ve(ne,384,452,-19),ve(ne,452,461,33),ve(ne,461,497,-19),ve(ne,497,500,33),ve(ne,500,502,-19),ve(ne,502,506,33),ve(ne,506,536,-19),ve(ne,536,592,33),ve(ne,592,681,-19),ve(ne,681,699,33),ve(ne,699,706,-19),ve(ne,706,720,33),ve(ne,720,722,-87),ve(ne,722,768,33),ve(ne,768,838,-87),ve(ne,838,864,33),ve(ne,864,866,-87),ve(ne,866,902,33),ne[902]=-19,ne[903]=-87,ve(ne,904,907,-19),ne[907]=33,ne[908]=-19,ne[909]=33,ve(ne,910,930,-19),ne[930]=33,ve(ne,931,975,-19),ne[975]=33,ve(ne,976,983,-19),ve(ne,983,986,33),ne[986]=-19,ne[987]=33,ne[988]=-19,ne[989]=33,ne[990]=-19,ne[991]=33,ne[992]=-19,ne[993]=33,ve(ne,994,1012,-19),ve(ne,1012,1025,33),ve(ne,1025,1037,-19),ne[1037]=33,ve(ne,1038,1104,-19),ne[1104]=33,ve(ne,1105,1117,-19),ne[1117]=33,ve(ne,1118,1154,-19),ne[1154]=33,ve(ne,1155,1159,-87),ve(ne,1159,1168,33),ve(ne,1168,1221,-19),ve(ne,1221,1223,33),ve(ne,1223,1225,-19),ve(ne,1225,1227,33),ve(ne,1227,1229,-19),ve(ne,1229,1232,33),ve(ne,1232,1260,-19),ve(ne,1260,1262,33),ve(ne,1262,1270,-19),ve(ne,1270,1272,33),ve(ne,1272,1274,-19),ve(ne,1274,1329,33),ve(ne,1329,1367,-19),ve(ne,1367,1369,33),ne[1369]=-19,ve(ne,1370,1377,33),ve(ne,1377,1415,-19),ve(ne,1415,1425,33),ve(ne,1425,1442,-87),ne[1442]=33,ve(ne,1443,1466,-87),ne[1466]=33,ve(ne,1467,1470,-87),ne[1470]=33,ne[1471]=-87,ne[1472]=33,ve(ne,1473,1475,-87),ne[1475]=33,ne[1476]=-87,ve(ne,1477,1488,33),ve(ne,1488,1515,-19),ve(ne,1515,1520,33),ve(ne,1520,1523,-19),ve(ne,1523,1569,33),ve(ne,1569,1595,-19),ve(ne,1595,1600,33),ne[1600]=-87,ve(ne,1601,1611,-19),ve(ne,1611,1619,-87),ve(ne,1619,1632,33),ve(ne,1632,1642,-87),ve(ne,1642,1648,33),ne[1648]=-87,ve(ne,1649,1720,-19),ve(ne,1720,1722,33),ve(ne,1722,1727,-19),ne[1727]=33,ve(ne,1728,1743,-19),ne[1743]=33,ve(ne,1744,1748,-19),ne[1748]=33,ne[1749]=-19,ve(ne,1750,1765,-87),ve(ne,1765,1767,-19),ve(ne,1767,1769,-87),ne[1769]=33,ve(ne,1770,1774,-87),ve(ne,1774,1776,33),ve(ne,1776,1786,-87),ve(ne,1786,2305,33),ve(ne,2305,2308,-87),ne[2308]=33,ve(ne,2309,2362,-19),ve(ne,2362,2364,33),ne[2364]=-87,ne[2365]=-19,ve(ne,2366,2382,-87),ve(ne,2382,2385,33),ve(ne,2385,2389,-87),ve(ne,2389,2392,33),ve(ne,2392,2402,-19),ve(ne,2402,2404,-87),ve(ne,2404,2406,33),ve(ne,2406,2416,-87),ve(ne,2416,2433,33),ve(ne,2433,2436,-87),ne[2436]=33,ve(ne,2437,2445,-19),ve(ne,2445,2447,33),ve(ne,2447,2449,-19),ve(ne,2449,2451,33),ve(ne,2451,2473,-19),ne[2473]=33,ve(ne,2474,2481,-19),ne[2481]=33,ne[2482]=-19,ve(ne,2483,2486,33),ve(ne,2486,2490,-19),ve(ne,2490,2492,33),ne[2492]=-87,ne[2493]=33,ve(ne,2494,2501,-87),ve(ne,2501,2503,33),ve(ne,2503,2505,-87),ve(ne,2505,2507,33),ve(ne,2507,2510,-87),ve(ne,2510,2519,33),ne[2519]=-87,ve(ne,2520,2524,33),ve(ne,2524,2526,-19),ne[2526]=33,ve(ne,2527,2530,-19),ve(ne,2530,2532,-87),ve(ne,2532,2534,33),ve(ne,2534,2544,-87),ve(ne,2544,2546,-19),ve(ne,2546,2562,33),ne[2562]=-87,ve(ne,2563,2565,33),ve(ne,2565,2571,-19),ve(ne,2571,2575,33),ve(ne,2575,2577,-19),ve(ne,2577,2579,33),ve(ne,2579,2601,-19),ne[2601]=33,ve(ne,2602,2609,-19),ne[2609]=33,ve(ne,2610,2612,-19),ne[2612]=33,ve(ne,2613,2615,-19),ne[2615]=33,ve(ne,2616,2618,-19),ve(ne,2618,2620,33),ne[2620]=-87,ne[2621]=33,ve(ne,2622,2627,-87),ve(ne,2627,2631,33),ve(ne,2631,2633,-87),ve(ne,2633,2635,33),ve(ne,2635,2638,-87),ve(ne,2638,2649,33),ve(ne,2649,2653,-19),ne[2653]=33,ne[2654]=-19,ve(ne,2655,2662,33),ve(ne,2662,2674,-87),ve(ne,2674,2677,-19),ve(ne,2677,2689,33),ve(ne,2689,2692,-87),ne[2692]=33,ve(ne,2693,2700,-19),ne[2700]=33,ne[2701]=-19,ne[2702]=33,ve(ne,2703,2706,-19),ne[2706]=33,ve(ne,2707,2729,-19),ne[2729]=33,ve(ne,2730,2737,-19),ne[2737]=33,ve(ne,2738,2740,-19),ne[2740]=33,ve(ne,2741,2746,-19),ve(ne,2746,2748,33),ne[2748]=-87,ne[2749]=-19,ve(ne,2750,2758,-87),ne[2758]=33,ve(ne,2759,2762,-87),ne[2762]=33,ve(ne,2763,2766,-87),ve(ne,2766,2784,33),ne[2784]=-19,ve(ne,2785,2790,33),ve(ne,2790,2800,-87),ve(ne,2800,2817,33),ve(ne,2817,2820,-87),ne[2820]=33,ve(ne,2821,2829,-19),ve(ne,2829,2831,33),ve(ne,2831,2833,-19),ve(ne,2833,2835,33),ve(ne,2835,2857,-19),ne[2857]=33,ve(ne,2858,2865,-19),ne[2865]=33,ve(ne,2866,2868,-19),ve(ne,2868,2870,33),ve(ne,2870,2874,-19),ve(ne,2874,2876,33),ne[2876]=-87,ne[2877]=-19,ve(ne,2878,2884,-87),ve(ne,2884,2887,33),ve(ne,2887,2889,-87),ve(ne,2889,2891,33),ve(ne,2891,2894,-87),ve(ne,2894,2902,33),ve(ne,2902,2904,-87),ve(ne,2904,2908,33),ve(ne,2908,2910,-19),ne[2910]=33,ve(ne,2911,2914,-19),ve(ne,2914,2918,33),ve(ne,2918,2928,-87),ve(ne,2928,2946,33),ve(ne,2946,2948,-87),ne[2948]=33,ve(ne,2949,2955,-19),ve(ne,2955,2958,33),ve(ne,2958,2961,-19),ne[2961]=33,ve(ne,2962,2966,-19),ve(ne,2966,2969,33),ve(ne,2969,2971,-19),ne[2971]=33,ne[2972]=-19,ne[2973]=33,ve(ne,2974,2976,-19),ve(ne,2976,2979,33),ve(ne,2979,2981,-19),ve(ne,2981,2984,33),ve(ne,2984,2987,-19),ve(ne,2987,2990,33),ve(ne,2990,2998,-19),ne[2998]=33,ve(ne,2999,3002,-19),ve(ne,3002,3006,33),ve(ne,3006,3011,-87),ve(ne,3011,3014,33),ve(ne,3014,3017,-87),ne[3017]=33,ve(ne,3018,3022,-87),ve(ne,3022,3031,33),ne[3031]=-87,ve(ne,3032,3047,33),ve(ne,3047,3056,-87),ve(ne,3056,3073,33),ve(ne,3073,3076,-87),ne[3076]=33,ve(ne,3077,3085,-19),ne[3085]=33,ve(ne,3086,3089,-19),ne[3089]=33,ve(ne,3090,3113,-19),ne[3113]=33,ve(ne,3114,3124,-19),ne[3124]=33,ve(ne,3125,3130,-19),ve(ne,3130,3134,33),ve(ne,3134,3141,-87),ne[3141]=33,ve(ne,3142,3145,-87),ne[3145]=33,ve(ne,3146,3150,-87),ve(ne,3150,3157,33),ve(ne,3157,3159,-87),ve(ne,3159,3168,33),ve(ne,3168,3170,-19),ve(ne,3170,3174,33),ve(ne,3174,3184,-87),ve(ne,3184,3202,33),ve(ne,3202,3204,-87),ne[3204]=33,ve(ne,3205,3213,-19),ne[3213]=33,ve(ne,3214,3217,-19),ne[3217]=33,ve(ne,3218,3241,-19),ne[3241]=33,ve(ne,3242,3252,-19),ne[3252]=33,ve(ne,3253,3258,-19),ve(ne,3258,3262,33),ve(ne,3262,3269,-87),ne[3269]=33,ve(ne,3270,3273,-87),ne[3273]=33,ve(ne,3274,3278,-87),ve(ne,3278,3285,33),ve(ne,3285,3287,-87),ve(ne,3287,3294,33),ne[3294]=-19,ne[3295]=33,ve(ne,3296,3298,-19),ve(ne,3298,3302,33),ve(ne,3302,3312,-87),ve(ne,3312,3330,33),ve(ne,3330,3332,-87),ne[3332]=33,ve(ne,3333,3341,-19),ne[3341]=33,ve(ne,3342,3345,-19),ne[3345]=33,ve(ne,3346,3369,-19),ne[3369]=33,ve(ne,3370,3386,-19),ve(ne,3386,3390,33),ve(ne,3390,3396,-87),ve(ne,3396,3398,33),ve(ne,3398,3401,-87),ne[3401]=33,ve(ne,3402,3406,-87),ve(ne,3406,3415,33),ne[3415]=-87,ve(ne,3416,3424,33),ve(ne,3424,3426,-19),ve(ne,3426,3430,33),ve(ne,3430,3440,-87),ve(ne,3440,3585,33),ve(ne,3585,3631,-19),ne[3631]=33,ne[3632]=-19,ne[3633]=-87,ve(ne,3634,3636,-19),ve(ne,3636,3643,-87),ve(ne,3643,3648,33),ve(ne,3648,3654,-19),ve(ne,3654,3663,-87),ne[3663]=33,ve(ne,3664,3674,-87),ve(ne,3674,3713,33),ve(ne,3713,3715,-19),ne[3715]=33,ne[3716]=-19,ve(ne,3717,3719,33),ve(ne,3719,3721,-19),ne[3721]=33,ne[3722]=-19,ve(ne,3723,3725,33),ne[3725]=-19,ve(ne,3726,3732,33),ve(ne,3732,3736,-19),ne[3736]=33,ve(ne,3737,3744,-19),ne[3744]=33,ve(ne,3745,3748,-19),ne[3748]=33,ne[3749]=-19,ne[3750]=33,ne[3751]=-19,ve(ne,3752,3754,33),ve(ne,3754,3756,-19),ne[3756]=33,ve(ne,3757,3759,-19),ne[3759]=33,ne[3760]=-19,ne[3761]=-87,ve(ne,3762,3764,-19),ve(ne,3764,3770,-87),ne[3770]=33,ve(ne,3771,3773,-87),ne[3773]=-19,ve(ne,3774,3776,33),ve(ne,3776,3781,-19),ne[3781]=33,ne[3782]=-87,ne[3783]=33,ve(ne,3784,3790,-87),ve(ne,3790,3792,33),ve(ne,3792,3802,-87),ve(ne,3802,3864,33),ve(ne,3864,3866,-87),ve(ne,3866,3872,33),ve(ne,3872,3882,-87),ve(ne,3882,3893,33),ne[3893]=-87,ne[3894]=33,ne[3895]=-87,ne[3896]=33,ne[3897]=-87,ve(ne,3898,3902,33),ve(ne,3902,3904,-87),ve(ne,3904,3912,-19),ne[3912]=33,ve(ne,3913,3946,-19),ve(ne,3946,3953,33),ve(ne,3953,3973,-87),ne[3973]=33,ve(ne,3974,3980,-87),ve(ne,3980,3984,33),ve(ne,3984,3990,-87),ne[3990]=33,ne[3991]=-87,ne[3992]=33,ve(ne,3993,4014,-87),ve(ne,4014,4017,33),ve(ne,4017,4024,-87),ne[4024]=33,ne[4025]=-87,ve(ne,4026,4256,33),ve(ne,4256,4294,-19),ve(ne,4294,4304,33),ve(ne,4304,4343,-19),ve(ne,4343,4352,33),ne[4352]=-19,ne[4353]=33,ve(ne,4354,4356,-19),ne[4356]=33,ve(ne,4357,4360,-19),ne[4360]=33,ne[4361]=-19,ne[4362]=33,ve(ne,4363,4365,-19),ne[4365]=33,ve(ne,4366,4371,-19),ve(ne,4371,4412,33),ne[4412]=-19,ne[4413]=33,ne[4414]=-19,ne[4415]=33,ne[4416]=-19,ve(ne,4417,4428,33),ne[4428]=-19,ne[4429]=33,ne[4430]=-19,ne[4431]=33,ne[4432]=-19,ve(ne,4433,4436,33),ve(ne,4436,4438,-19),ve(ne,4438,4441,33),ne[4441]=-19,ve(ne,4442,4447,33),ve(ne,4447,4450,-19),ne[4450]=33,ne[4451]=-19,ne[4452]=33,ne[4453]=-19,ne[4454]=33,ne[4455]=-19,ne[4456]=33,ne[4457]=-19,ve(ne,4458,4461,33),ve(ne,4461,4463,-19),ve(ne,4463,4466,33),ve(ne,4466,4468,-19),ne[4468]=33,ne[4469]=-19,ve(ne,4470,4510,33),ne[4510]=-19,ve(ne,4511,4520,33),ne[4520]=-19,ve(ne,4521,4523,33),ne[4523]=-19,ve(ne,4524,4526,33),ve(ne,4526,4528,-19),ve(ne,4528,4535,33),ve(ne,4535,4537,-19),ne[4537]=33,ne[4538]=-19,ne[4539]=33,ve(ne,4540,4547,-19),ve(ne,4547,4587,33),ne[4587]=-19,ve(ne,4588,4592,33),ne[4592]=-19,ve(ne,4593,4601,33),ne[4601]=-19,ve(ne,4602,7680,33),ve(ne,7680,7836,-19),ve(ne,7836,7840,33),ve(ne,7840,7930,-19),ve(ne,7930,7936,33),ve(ne,7936,7958,-19),ve(ne,7958,7960,33),ve(ne,7960,7966,-19),ve(ne,7966,7968,33),ve(ne,7968,8006,-19),ve(ne,8006,8008,33),ve(ne,8008,8014,-19),ve(ne,8014,8016,33),ve(ne,8016,8024,-19),ne[8024]=33,ne[8025]=-19,ne[8026]=33,ne[8027]=-19,ne[8028]=33,ne[8029]=-19,ne[8030]=33,ve(ne,8031,8062,-19),ve(ne,8062,8064,33),ve(ne,8064,8117,-19),ne[8117]=33,ve(ne,8118,8125,-19),ne[8125]=33,ne[8126]=-19,ve(ne,8127,8130,33),ve(ne,8130,8133,-19),ne[8133]=33,ve(ne,8134,8141,-19),ve(ne,8141,8144,33),ve(ne,8144,8148,-19),ve(ne,8148,8150,33),ve(ne,8150,8156,-19),ve(ne,8156,8160,33),ve(ne,8160,8173,-19),ve(ne,8173,8178,33),ve(ne,8178,8181,-19),ne[8181]=33,ve(ne,8182,8189,-19),ve(ne,8189,8400,33),ve(ne,8400,8413,-87),ve(ne,8413,8417,33),ne[8417]=-87,ve(ne,8418,8486,33),ne[8486]=-19,ve(ne,8487,8490,33),ve(ne,8490,8492,-19),ve(ne,8492,8494,33),ne[8494]=-19,ve(ne,8495,8576,33),ve(ne,8576,8579,-19),ve(ne,8579,12293,33),ne[12293]=-87,ne[12294]=33,ne[12295]=-19,ve(ne,12296,12321,33),ve(ne,12321,12330,-19),ve(ne,12330,12336,-87),ne[12336]=33,ve(ne,12337,12342,-87),ve(ne,12342,12353,33),ve(ne,12353,12437,-19),ve(ne,12437,12441,33),ve(ne,12441,12443,-87),ve(ne,12443,12445,33),ve(ne,12445,12447,-87),ve(ne,12447,12449,33),ve(ne,12449,12539,-19),ne[12539]=33,ve(ne,12540,12543,-87),ve(ne,12543,12549,33),ve(ne,12549,12589,-19),ve(ne,12589,19968,33),ve(ne,19968,40870,-19),ve(ne,40870,44032,33),ve(ne,44032,55204,-19),ve(ne,55204,NL,33),ve(ne,57344,65534,33)}function Fnn(e){var t,n,i,r,o,a,d;e.hb||(e.hb=!0,Jc(e,"ecore"),DH(e,"ecore"),LH(e,Ja),PD(e.fb,"E"),PD(e.L,"T"),PD(e.P,"K"),PD(e.P,"V"),PD(e.cb,"E"),Ln(wo(e.b),e.bb),Ln(wo(e.a),e.Q),Ln(wo(e.o),e.p),Ln(wo(e.p),e.R),Ln(wo(e.q),e.p),Ln(wo(e.v),e.q),Ln(wo(e.w),e.R),Ln(wo(e.B),e.Q),Ln(wo(e.R),e.Q),Ln(wo(e.T),e.eb),Ln(wo(e.U),e.R),Ln(wo(e.V),e.eb),Ln(wo(e.W),e.bb),Ln(wo(e.bb),e.eb),Ln(wo(e.eb),e.R),Ln(wo(e.db),e.R),Go(e.b,dy,Oat,!1,!1,!0),wr(c(ce(De(e.b),0),38),e.e,"iD",null,0,1,dy,!1,!1,!0,!1,!0,!1),Hi(c(ce(De(e.b),1),20),e.q,null,"eAttributeType",1,1,dy,!0,!0,!1,!1,!0,!1,!0),Go(e.a,oi,yat,!1,!1,!0),wr(c(ce(De(e.a),0),38),e._,boe,null,0,1,oi,!1,!1,!0,!1,!0,!1),Hi(c(ce(De(e.a),1),20),e.ab,null,"details",0,-1,oi,!1,!1,!0,!0,!1,!1,!1),Hi(c(ce(De(e.a),2),20),e.Q,c(ce(De(e.Q),0),20),"eModelElement",0,1,oi,!0,!1,!0,!1,!1,!1,!1),Hi(c(ce(De(e.a),3),20),e.S,null,"contents",0,-1,oi,!1,!1,!0,!0,!1,!1,!1),Hi(c(ce(De(e.a),4),20),e.S,null,"references",0,-1,oi,!1,!1,!0,!1,!0,!1,!1),Go(e.o,ef,"EClass",!1,!1,!0),wr(c(ce(De(e.o),0),38),e.e,"abstract",null,0,1,ef,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.o),1),38),e.e,"interface",null,0,1,ef,!1,!1,!0,!1,!0,!1),Hi(c(ce(De(e.o),2),20),e.o,null,"eSuperTypes",0,-1,ef,!1,!1,!0,!1,!0,!0,!1),Hi(c(ce(De(e.o),3),20),e.T,c(ce(De(e.T),0),20),"eOperations",0,-1,ef,!1,!1,!0,!0,!1,!1,!1),Hi(c(ce(De(e.o),4),20),e.b,null,"eAllAttributes",0,-1,ef,!0,!0,!1,!1,!0,!1,!0),Hi(c(ce(De(e.o),5),20),e.W,null,"eAllReferences",0,-1,ef,!0,!0,!1,!1,!0,!1,!0),Hi(c(ce(De(e.o),6),20),e.W,null,"eReferences",0,-1,ef,!0,!0,!1,!1,!0,!1,!0),Hi(c(ce(De(e.o),7),20),e.b,null,"eAttributes",0,-1,ef,!0,!0,!1,!1,!0,!1,!0),Hi(c(ce(De(e.o),8),20),e.W,null,"eAllContainments",0,-1,ef,!0,!0,!1,!1,!0,!1,!0),Hi(c(ce(De(e.o),9),20),e.T,null,"eAllOperations",0,-1,ef,!0,!0,!1,!1,!0,!1,!0),Hi(c(ce(De(e.o),10),20),e.bb,null,"eAllStructuralFeatures",0,-1,ef,!0,!0,!1,!1,!0,!1,!0),Hi(c(ce(De(e.o),11),20),e.o,null,"eAllSuperTypes",0,-1,ef,!0,!0,!1,!1,!0,!1,!0),Hi(c(ce(De(e.o),12),20),e.b,null,"eIDAttribute",0,1,ef,!0,!0,!1,!1,!1,!1,!0),Hi(c(ce(De(e.o),13),20),e.bb,c(ce(De(e.bb),7),20),"eStructuralFeatures",0,-1,ef,!1,!1,!0,!0,!1,!1,!1),Hi(c(ce(De(e.o),14),20),e.H,null,"eGenericSuperTypes",0,-1,ef,!1,!1,!0,!0,!1,!0,!1),Hi(c(ce(De(e.o),15),20),e.H,null,"eAllGenericSuperTypes",0,-1,ef,!0,!0,!1,!1,!0,!1,!0),d=to(c(ce(Mi(e.o),0),62),e.e,"isSuperTypeOf"),ho(d,e.o,"someClass"),to(c(ce(Mi(e.o),1),62),e.I,"getFeatureCount"),d=to(c(ce(Mi(e.o),2),62),e.bb,Pat),ho(d,e.I,"featureID"),d=to(c(ce(Mi(e.o),3),62),e.I,Iat),ho(d,e.bb,zE),d=to(c(ce(Mi(e.o),4),62),e.bb,Pat),ho(d,e._,"featureName"),to(c(ce(Mi(e.o),5),62),e.I,"getOperationCount"),d=to(c(ce(Mi(e.o),6),62),e.T,"getEOperation"),ho(d,e.I,"operationID"),d=to(c(ce(Mi(e.o),7),62),e.I,Rat),ho(d,e.T,cke),d=to(c(ce(Mi(e.o),8),62),e.T,"getOverride"),ho(d,e.T,cke),d=to(c(ce(Mi(e.o),9),62),e.H,"getFeatureType"),ho(d,e.bb,zE),Go(e.p,lh,Sat,!0,!1,!0),wr(c(ce(De(e.p),0),38),e._,"instanceClassName",null,0,1,lh,!1,!0,!0,!0,!0,!1),t=O1(e.L),n=Tbe(),Ln((!t.d&&(t.d=new Nr(Ys,t,1)),t.d),n),fnt(c(ce(De(e.p),1),38),t,"instanceClass",lh,!0,!0,!1,!0),wr(c(ce(De(e.p),2),38),e.M,$at,null,0,1,lh,!0,!0,!1,!1,!0,!0),wr(c(ce(De(e.p),3),38),e._,"instanceTypeName",null,0,1,lh,!1,!0,!0,!0,!0,!1),Hi(c(ce(De(e.p),4),20),e.U,c(ce(De(e.U),3),20),"ePackage",0,1,lh,!0,!1,!1,!1,!0,!1,!1),Hi(c(ce(De(e.p),5),20),e.db,null,Bat,0,-1,lh,!1,!1,!0,!0,!0,!1,!1),d=to(c(ce(Mi(e.p),0),62),e.e,zat),ho(d,e.M,kL),to(c(ce(Mi(e.p),1),62),e.I,"getClassifierID"),Go(e.q,Vae,"EDataType",!1,!1,!0),wr(c(ce(De(e.q),0),38),e.e,"serializable",Oj,0,1,Vae,!1,!1,!0,!1,!0,!1),Go(e.v,MV,"EEnum",!1,!1,!0),Hi(c(ce(De(e.v),0),20),e.w,c(ce(De(e.w),3),20),"eLiterals",0,-1,MV,!1,!1,!0,!0,!1,!1,!1),d=to(c(ce(Mi(e.v),0),62),e.w,Fat),ho(d,e._,di),d=to(c(ce(Mi(e.v),1),62),e.w,Fat),ho(d,e.I,_E),d=to(c(ce(Mi(e.v),2),62),e.w,"getEEnumLiteralByLiteral"),ho(d,e._,"literal"),Go(e.w,K1,jat,!1,!1,!0),wr(c(ce(De(e.w),0),38),e.I,_E,null,0,1,K1,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.w),1),38),e.A,"instance",null,0,1,K1,!0,!1,!0,!1,!0,!1),wr(c(ce(De(e.w),2),38),e._,"literal",null,0,1,K1,!1,!1,!0,!1,!0,!1),Hi(c(ce(De(e.w),3),20),e.v,c(ce(De(e.v),0),20),"eEnum",0,1,K1,!0,!1,!1,!1,!1,!1,!1),Go(e.B,nM,"EFactory",!1,!1,!0),Hi(c(ce(De(e.B),0),20),e.U,c(ce(De(e.U),2),20),"ePackage",1,1,nM,!0,!1,!0,!1,!1,!1,!1),d=to(c(ce(Mi(e.B),0),62),e.S,"create"),ho(d,e.o,"eClass"),d=to(c(ce(Mi(e.B),1),62),e.M,"createFromString"),ho(d,e.q,"eDataType"),ho(d,e._,"literalValue"),d=to(c(ce(Mi(e.B),2),62),e._,"convertToString"),ho(d,e.q,"eDataType"),ho(d,e.M,"instanceValue"),Go(e.Q,fI,Sut,!0,!1,!0),Hi(c(ce(De(e.Q),0),20),e.a,c(ce(De(e.a),2),20),"eAnnotations",0,-1,fI,!1,!1,!0,!0,!1,!1,!1),d=to(c(ce(Mi(e.Q),0),62),e.a,"getEAnnotation"),ho(d,e._,boe),Go(e.R,qae,jut,!0,!1,!0),wr(c(ce(De(e.R),0),38),e._,di,null,0,1,qae,!1,!1,!0,!1,!0,!1),Go(e.S,fp,"EObject",!1,!1,!0),to(c(ce(Mi(e.S),0),62),e.o,"eClass"),to(c(ce(Mi(e.S),1),62),e.e,"eIsProxy"),to(c(ce(Mi(e.S),2),62),e.X,"eResource"),to(c(ce(Mi(e.S),3),62),e.S,"eContainer"),to(c(ce(Mi(e.S),4),62),e.bb,"eContainingFeature"),to(c(ce(Mi(e.S),5),62),e.W,"eContainmentFeature"),d=to(c(ce(Mi(e.S),6),62),null,"eContents"),t=O1(e.fb),n=O1(e.S),Ln((!t.d&&(t.d=new Nr(Ys,t,1)),t.d),n),r=Sh(d,t,null),r&&r.mj(),d=to(c(ce(Mi(e.S),7),62),null,"eAllContents"),t=O1(e.cb),n=O1(e.S),Ln((!t.d&&(t.d=new Nr(Ys,t,1)),t.d),n),o=Sh(d,t,null),o&&o.mj(),d=to(c(ce(Mi(e.S),8),62),null,"eCrossReferences"),t=O1(e.fb),n=O1(e.S),Ln((!t.d&&(t.d=new Nr(Ys,t,1)),t.d),n),a=Sh(d,t,null),a&&a.mj(),d=to(c(ce(Mi(e.S),9),62),e.M,"eGet"),ho(d,e.bb,zE),d=to(c(ce(Mi(e.S),10),62),e.M,"eGet"),ho(d,e.bb,zE),ho(d,e.e,"resolve"),d=to(c(ce(Mi(e.S),11),62),null,"eSet"),ho(d,e.bb,zE),ho(d,e.M,"newValue"),d=to(c(ce(Mi(e.S),12),62),e.e,"eIsSet"),ho(d,e.bb,zE),d=to(c(ce(Mi(e.S),13),62),null,"eUnset"),ho(d,e.bb,zE),d=to(c(ce(Mi(e.S),14),62),e.M,"eInvoke"),ho(d,e.T,cke),t=O1(e.fb),n=Tbe(),Ln((!t.d&&(t.d=new Nr(Ys,t,1)),t.d),n),OQ(d,t,"arguments"),sNt(d,e.K),Go(e.T,tf,Eat,!1,!1,!0),Hi(c(ce(De(e.T),0),20),e.o,c(ce(De(e.o),3),20),qat,0,1,tf,!0,!1,!1,!1,!1,!1,!1),Hi(c(ce(De(e.T),1),20),e.db,null,Bat,0,-1,tf,!1,!1,!0,!0,!0,!1,!1),Hi(c(ce(De(e.T),2),20),e.V,c(ce(De(e.V),0),20),"eParameters",0,-1,tf,!1,!1,!0,!0,!1,!1,!1),Hi(c(ce(De(e.T),3),20),e.p,null,"eExceptions",0,-1,tf,!1,!1,!0,!1,!0,!0,!1),Hi(c(ce(De(e.T),4),20),e.H,null,"eGenericExceptions",0,-1,tf,!1,!1,!0,!0,!1,!0,!1),to(c(ce(Mi(e.T),0),62),e.I,Rat),d=to(c(ce(Mi(e.T),1),62),e.e,"isOverrideOf"),ho(d,e.T,"someOperation"),Go(e.U,ch,"EPackage",!1,!1,!0),wr(c(ce(De(e.U),0),38),e._,"nsURI",null,0,1,ch,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.U),1),38),e._,"nsPrefix",null,0,1,ch,!1,!1,!0,!1,!0,!1),Hi(c(ce(De(e.U),2),20),e.B,c(ce(De(e.B),0),20),"eFactoryInstance",1,1,ch,!0,!1,!0,!1,!1,!1,!1),Hi(c(ce(De(e.U),3),20),e.p,c(ce(De(e.p),4),20),"eClassifiers",0,-1,ch,!1,!1,!0,!0,!0,!1,!1),Hi(c(ce(De(e.U),4),20),e.U,c(ce(De(e.U),5),20),"eSubpackages",0,-1,ch,!1,!1,!0,!0,!0,!1,!1),Hi(c(ce(De(e.U),5),20),e.U,c(ce(De(e.U),4),20),"eSuperPackage",0,1,ch,!0,!1,!1,!1,!0,!1,!1),d=to(c(ce(Mi(e.U),0),62),e.p,"getEClassifier"),ho(d,e._,di),Go(e.V,Fw,Cat,!1,!1,!0),Hi(c(ce(De(e.V),0),20),e.T,c(ce(De(e.T),2),20),"eOperation",0,1,Fw,!0,!1,!1,!1,!1,!1,!1),Go(e.W,gy,Mat,!1,!1,!0),wr(c(ce(De(e.W),0),38),e.e,"containment",null,0,1,gy,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.W),1),38),e.e,"container",null,0,1,gy,!0,!0,!1,!1,!0,!0),wr(c(ce(De(e.W),2),38),e.e,"resolveProxies",Oj,0,1,gy,!1,!1,!0,!1,!0,!1),Hi(c(ce(De(e.W),3),20),e.W,null,"eOpposite",0,1,gy,!1,!1,!0,!1,!0,!1,!1),Hi(c(ce(De(e.W),4),20),e.o,null,"eReferenceType",1,1,gy,!0,!0,!1,!1,!0,!1,!0),Hi(c(ce(De(e.W),5),20),e.b,null,"eKeys",0,-1,gy,!1,!1,!0,!1,!0,!1,!1),Go(e.bb,Ol,kat,!0,!1,!0),wr(c(ce(De(e.bb),0),38),e.e,"changeable",Oj,0,1,Ol,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.bb),1),38),e.e,"volatile",null,0,1,Ol,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.bb),2),38),e.e,"transient",null,0,1,Ol,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.bb),3),38),e._,"defaultValueLiteral",null,0,1,Ol,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.bb),4),38),e.M,$at,null,0,1,Ol,!0,!0,!1,!1,!0,!0),wr(c(ce(De(e.bb),5),38),e.e,"unsettable",null,0,1,Ol,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.bb),6),38),e.e,"derived",null,0,1,Ol,!1,!1,!0,!1,!0,!1),Hi(c(ce(De(e.bb),7),20),e.o,c(ce(De(e.o),13),20),qat,0,1,Ol,!0,!1,!1,!1,!1,!1,!1),to(c(ce(Mi(e.bb),0),62),e.I,Iat),d=to(c(ce(Mi(e.bb),1),62),null,"getContainerClass"),t=O1(e.L),n=Tbe(),Ln((!t.d&&(t.d=new Nr(Ys,t,1)),t.d),n),i=Sh(d,t,null),i&&i.mj(),Go(e.eb,hy,xat,!0,!1,!0),wr(c(ce(De(e.eb),0),38),e.e,"ordered",Oj,0,1,hy,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.eb),1),38),e.e,"unique",Oj,0,1,hy,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.eb),2),38),e.I,"lowerBound",null,0,1,hy,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.eb),3),38),e.I,"upperBound","1",0,1,hy,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.eb),4),38),e.e,"many",null,0,1,hy,!0,!0,!1,!1,!0,!0),wr(c(ce(De(e.eb),5),38),e.e,"required",null,0,1,hy,!0,!0,!1,!1,!0,!0),Hi(c(ce(De(e.eb),6),20),e.p,null,"eType",0,1,hy,!1,!0,!0,!1,!0,!0,!1),Hi(c(ce(De(e.eb),7),20),e.H,null,"eGenericType",0,1,hy,!1,!0,!0,!0,!1,!0,!1),Go(e.ab,Eb,"EStringToStringMapEntry",!1,!1,!1),wr(c(ce(De(e.ab),0),38),e._,"key",null,0,1,Eb,!1,!1,!0,!1,!0,!1),wr(c(ce(De(e.ab),1),38),e._,_E,null,0,1,Eb,!1,!1,!0,!1,!0,!1),Go(e.H,Ys,Tat,!1,!1,!0),Hi(c(ce(De(e.H),0),20),e.H,null,"eUpperBound",0,1,Ys,!1,!1,!0,!0,!1,!1,!1),Hi(c(ce(De(e.H),1),20),e.H,null,"eTypeArguments",0,-1,Ys,!1,!1,!0,!0,!1,!1,!1),Hi(c(ce(De(e.H),2),20),e.p,null,"eRawType",1,1,Ys,!0,!1,!1,!1,!0,!1,!0),Hi(c(ce(De(e.H),3),20),e.H,null,"eLowerBound",0,1,Ys,!1,!1,!0,!0,!1,!1,!1),Hi(c(ce(De(e.H),4),20),e.db,null,"eTypeParameter",0,1,Ys,!1,!1,!0,!1,!1,!1,!1),Hi(c(ce(De(e.H),5),20),e.p,null,"eClassifier",0,1,Ys,!1,!1,!0,!1,!0,!1,!1),d=to(c(ce(Mi(e.H),0),62),e.e,zat),ho(d,e.M,kL),Go(e.db,ul,Aat,!1,!1,!0),Hi(c(ce(De(e.db),0),20),e.H,null,"eBounds",0,-1,ul,!1,!1,!0,!0,!1,!1,!1),fi(e.c,nce,"EBigDecimal",!0),fi(e.d,o3,"EBigInteger",!0),fi(e.e,Sl,"EBoolean",!0),fi(e.f,or,"EBooleanObject",!0),fi(e.i,$l,"EByte",!0),fi(e.g,K($l,1),"EByteArray",!0),fi(e.j,xk,"EByteObject",!0),fi(e.k,_a,"EChar",!0),fi(e.n,HE,"ECharacterObject",!0),fi(e.r,mU,"EDate",!0),fi(e.s,DEe,"EDiagnosticChain",!1),fi(e.t,is,"EDouble",!0),fi(e.u,jr,"EDoubleObject",!0),fi(e.fb,V7e,"EEList",!1),fi(e.A,K7e,"EEnumerator",!1),fi(e.C,yEe,"EFeatureMap",!1),fi(e.D,AV,"EFeatureMapEntry",!1),fi(e.F,wy,"EFloat",!0),fi(e.G,Lj,"EFloatObject",!0),fi(e.I,Hn,"EInt",!0),fi(e.J,Pr,"EIntegerObject",!0),fi(e.L,wke,"EJavaClass",!0),fi(e.M,Br,"EJavaObject",!0),fi(e.N,Gw,"ELong",!0),fi(e.O,Tw,"ELongObject",!0),fi(e.P,vke,"EMap",!1),fi(e.X,bEe,"EResource",!1),fi(e.Y,LEe,"EResourceSet",!1),fi(e.Z,B3,"EShort",!0),fi(e.$,Ew,"EShortObject",!0),fi(e._,tt,"EString",!0),fi(e.cb,W7e,"ETreeIterator",!1),fi(e.K,PEe,"EInvocationTargetException",!1),Cwe(e,Ja))}var kL="object",lk="boolean",Axe="number",sre="string",ore="function",gi=2147483647,Vo="java.lang",OL={3:1},SL="com.google.common.base",Xc=", ",_ot="%s (%s) must not be negative",Pt={3:1,4:1,5:1},Dot="negative size: ",Nxe="no calls to next() since the last call to remove()",Lot="Optional.of(",ml="null",ZS={206:1,51:1},kt="com.google.common.collect",ej={206:1,51:1,130:1},mb={231:1,3:1},ns={51:1},On="java.util",gw={93:1},Tv={22:1,32:1,18:1},Eh=2042,Pl={22:1,32:1,18:1,24:1},$1=2048,_xe={93:1,141:1,136:1},Pot={22:1,32:1,18:1,24:1,85:1},Dxe={22:1,32:1,18:1,279:1,24:1,85:1},qd={51:1,130:1},cre={359:1,45:1},Iot="AbstractMapEntry",Rot="expectedValuesPerKey",Fe={3:1,6:1,4:1,5:1},od=16384,Gu={163:1},ln={42:1},jL={204:1},TL={l:4194303,m:4194303,h:524287},lre={257:1,3:1,34:1},$ot="range unbounded on this side",Hd={22:1},Bot={22:1,18:1},Lxe={3:1,22:1,32:1,18:1},tj={312:1,3:1,22:1,32:1,18:1,16:1,59:1},lG={3:1,4:1,5:1,178:1},nj={3:1,93:1},ure={22:1,18:1,24:1},uk={3:1,22:1,32:1,18:1,24:1},zot={22:1,18:1,24:1,85:1},Qd=461845907,Gd=-862048943,EL={3:1,6:1,4:1,5:1,178:1},Fot="expectedSize",hE=1073741824,Ev="initialArraySize",Pe={3:1,6:1,4:1,10:1,5:1},ij={22:1,32:1,56:1,18:1,16:1},are="arraySize",Ga=1024,qot={22:1,32:1,56:1,18:1,16:1,59:1},Jn={48:1},uG={376:1},zg=1e-4,ls=-2147483648,Hot="__noinit__",B1={3:1,102:1,63:1,81:1},CL="com.google.gwt.core.client.impl",Pxe="String",Ixe="com.google.gwt.core.client",fre="anonymous",hre="fnStack",Rxe="Unknown",cd={203:1,3:1,4:1},Fg=1e3,Dr=65535,dre="January",gre="February",pre="March",bre="April",ak="May",mre="June",wre="July",vre="August",yre="September",xre="October",kre="November",Ore="December",H0=1900,li={54:1,3:1,4:1},Qot="Before Christ",Got="Anno Domini",Sre="Sunday",jre="Monday",Tre="Tuesday",Ere="Wednesday",Cre="Thursday",Mre="Friday",Are="Saturday",$xe="com.google.gwt.i18n.shared",Uot="DateTimeFormat",Nre="com.google.gwt.i18n.client",Jot="DefaultDateTimeFormatInfo",Vot={3:1,4:1,34:1,208:1},fk="com.google.gwt.json.client",uu=4194303,z1=1048575,ML=524288,hk=4194304,wb=17592186044416,aG=1e9,AL=-17592186044416,Bxe="java.io",fG={3:1,102:1,99:1,63:1,81:1},Xot={3:1,298:1,81:1},pw='For input string: "',sr=1/0,Gr=-1/0,Cv=4096,Wot={3:1,4:1,591:1},Qt="org.eclipse.elk.layered",Rs=65536,NL=55296,io={109:1,3:1,4:1},_re=1e5,Kot=.3010299956639812,Js=4294967295,rj="0.0",Dre={45:1},sj="Unable to add element to queue",Yot={3:1,4:1,22:1,32:1,56:1,13:1,18:1,16:1,59:1},Zot={3:1,22:1,32:1,56:1,18:1,16:1,59:1},ect={22:1,18:1,16:1},Lre={3:1,50:1},_L={191:1},Wx={3:1,4:1,93:1},zxe={3:1,4:1,22:1,32:1,18:1,47:1,24:1},Pre="delete",dE=14901161193847656e-24,gE=11102230246251565e-32,Ire=15525485,DL=5960464477539063e-23,Fxe=16777216,hG=16777215,qxe=", length: ",tct={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1},Hxe="subMap: ",nct=" less than ",Rre={3:1,34:1,23:1,310:1},$re="java.util.function",pE="java.util.logging",ict={3:1,4:1,5:1,848:1},Bre="undefined",Vs="java.util.stream",Qxe={524:1,684:1},dG="fromIndex: ",rct=" > toIndex: ",Gxe=", toIndex: ",Uxe="Index: ",Jxe=", Size: ",oj="org.eclipse.elk.alg.common",Yn={50:1},sct="org.eclipse.elk.alg.common.compaction",oct="Scanline/EventHandler",Ud="org.eclipse.elk.alg.common.compaction.oned",cct="CNode belongs to another CGroup.",lct="ISpacingsHandler/1",zre="The ",Fre=" instance has been finished already.",uct="The direction ",act=" is not supported by the CGraph instance.",fct="OneDimensionalCompactor",hct="OneDimensionalCompactor/lambda$0$Type",dct="Quadruplet",gct="ScanlineConstraintCalculator",pct="ScanlineConstraintCalculator/ConstraintsScanlineHandler",bct="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",mct="ScanlineConstraintCalculator/Timestamp",wct="ScanlineConstraintCalculator/lambda$0$Type",ld={181:1,48:1},bE="org.eclipse.elk.alg.common.networksimplex",Yf={172:1,3:1,4:1},vct="org.eclipse.elk.alg.common.nodespacing",vb="org.eclipse.elk.alg.common.nodespacing.cellsystem",cj="CENTER",yct={219:1,338:1},Vxe={3:1,4:1,5:1,599:1},dk="LEFT",gk="RIGHT",Xxe="Vertical alignment cannot be null",Wxe="BOTTOM",gG="org.eclipse.elk.alg.common.nodespacing.internal",mE="UNDEFINED",Ch=.01,LL="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",xct="LabelPlacer/lambda$0$Type",kct="LabelPlacer/lambda$1$Type",Oct="portRatioOrPosition",lj="org.eclipse.elk.alg.common.overlaps",qre="DOWN",pk="org.eclipse.elk.alg.common.spore",Mv={3:1,4:1,5:1,200:1},Sct={3:1,6:1,4:1,5:1,91:1,111:1},Hre="org.eclipse.elk.alg.force",Kxe="ComponentsProcessor",jct="ComponentsProcessor/1",Yxe="ElkGraphImporter/lambda$0$Type",yb={207:1},Kx="org.eclipse.elk.core",PL="org.eclipse.elk.graph.properties",Tct="IPropertyHolder",IL="org.eclipse.elk.alg.force.graph",Ect="Component Layout",Zxe="org.eclipse.elk.alg.force.model",Ro="org.eclipse.elk.core.data",pG="org.eclipse.elk.force.model",e3e="org.eclipse.elk.force.iterations",t3e="org.eclipse.elk.force.repulsivePower",Qre="org.eclipse.elk.force.temperature",ud=.001,Gre="org.eclipse.elk.force.repulsion",jf={139:1},wE="org.eclipse.elk.alg.force.options",uj=1.600000023841858,sl="org.eclipse.elk.force",RL="org.eclipse.elk.priority",bw="org.eclipse.elk.spacing.nodeNode",Ure="org.eclipse.elk.spacing.edgeLabel",aj="org.eclipse.elk.aspectRatio",bG="org.eclipse.elk.randomSeed",vE="org.eclipse.elk.separateConnectedComponents",mw="org.eclipse.elk.padding",fj="org.eclipse.elk.interactive",mG="org.eclipse.elk.portConstraints",$L="org.eclipse.elk.edgeLabels.inline",hj="org.eclipse.elk.omitNodeMicroLayout",dj="org.eclipse.elk.nodeSize.fixedGraphSize",bk="org.eclipse.elk.nodeSize.options",Yx="org.eclipse.elk.nodeSize.constraints",gj="org.eclipse.elk.nodeLabels.placement",pj="org.eclipse.elk.portLabels.placement",BL="org.eclipse.elk.topdownLayout",zL="org.eclipse.elk.topdown.scaleFactor",FL="org.eclipse.elk.topdown.hierarchicalNodeWidth",qL="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",ww="org.eclipse.elk.topdown.nodeType",n3e="origin",Cct="random",Mct="boundingBox.upLeft",Act="boundingBox.lowRight",i3e="org.eclipse.elk.stress.fixed",r3e="org.eclipse.elk.stress.desiredEdgeLength",s3e="org.eclipse.elk.stress.dimension",o3e="org.eclipse.elk.stress.epsilon",c3e="org.eclipse.elk.stress.iterationLimit",Q0="org.eclipse.elk.stress",Nct="ELK Stress",mk="org.eclipse.elk.nodeSize.minimum",wG="org.eclipse.elk.alg.force.stress",_ct="Layered layout",wk="org.eclipse.elk.alg.layered",HL="org.eclipse.elk.alg.layered.compaction.components",yE="org.eclipse.elk.alg.layered.compaction.oned",vG="org.eclipse.elk.alg.layered.compaction.oned.algs",xb="org.eclipse.elk.alg.layered.compaction.recthull",Mh="org.eclipse.elk.alg.layered.components",Zf="NONE",Jre="MODEL_ORDER",uc={3:1,6:1,4:1,10:1,5:1,128:1},Dct={3:1,6:1,4:1,5:1,137:1,91:1,111:1},yG="org.eclipse.elk.alg.layered.compound",Pi={43:1},vc="org.eclipse.elk.alg.layered.graph",Vre=" -> ",Lct="Not supported by LGraph",l3e="Port side is undefined",bj={3:1,6:1,4:1,5:1,324:1,137:1,91:1,111:1},qg={3:1,6:1,4:1,5:1,137:1,201:1,212:1,91:1,111:1},Pct={3:1,6:1,4:1,5:1,137:1,2021:1,212:1,91:1,111:1},Ict=`([{"' 	\r
`,Rct=`)]}"' 	\r
`,$ct="The given string contains parts that cannot be parsed as numbers.",QL="org.eclipse.elk.core.math",Bct={3:1,4:1,125:1,216:1,419:1},zct={3:1,4:1,100:1,216:1,419:1},Hg="org.eclipse.elk.alg.layered.graph.transform",Fct="ElkGraphImporter",qct="ElkGraphImporter/lambda$1$Type",Hct="ElkGraphImporter/lambda$2$Type",Qct="ElkGraphImporter/lambda$4$Type",tn="org.eclipse.elk.alg.layered.intermediate",Gct="Node margin calculation",Uct="ONE_SIDED_GREEDY_SWITCH",Jct="TWO_SIDED_GREEDY_SWITCH",Xre="No implementation is available for the layout processor ",Wre="IntermediateProcessorStrategy",Kre="Node '",Vct="FIRST_SEPARATE",Xct="LAST_SEPARATE",Wct="Odd port side processing",Sr="org.eclipse.elk.alg.layered.intermediate.compaction",xE="org.eclipse.elk.alg.layered.intermediate.greedyswitch",Jd="org.eclipse.elk.alg.layered.p3order.counting",kE={223:1},vk="org.eclipse.elk.alg.layered.intermediate.loops",Uu="org.eclipse.elk.alg.layered.intermediate.loops.ordering",G0="org.eclipse.elk.alg.layered.intermediate.loops.routing",xG="org.eclipse.elk.alg.layered.intermediate.preserveorder",ad="org.eclipse.elk.alg.layered.intermediate.wrapping",Xo="org.eclipse.elk.alg.layered.options",Yre="INTERACTIVE",u3e="GREEDY",Kct="DEPTH_FIRST",Yct="EDGE_LENGTH",Zct="SELF_LOOPS",elt="firstTryWithInitialOrder",a3e="org.eclipse.elk.layered.directionCongruency",f3e="org.eclipse.elk.layered.feedbackEdges",kG="org.eclipse.elk.layered.interactiveReferencePoint",h3e="org.eclipse.elk.layered.mergeEdges",d3e="org.eclipse.elk.layered.mergeHierarchyEdges",g3e="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",p3e="org.eclipse.elk.layered.portSortingStrategy",b3e="org.eclipse.elk.layered.thoroughness",m3e="org.eclipse.elk.layered.unnecessaryBendpoints",w3e="org.eclipse.elk.layered.generatePositionAndLayerIds",GL="org.eclipse.elk.layered.cycleBreaking.strategy",UL="org.eclipse.elk.layered.layering.strategy",v3e="org.eclipse.elk.layered.layering.layerConstraint",y3e="org.eclipse.elk.layered.layering.layerChoiceConstraint",x3e="org.eclipse.elk.layered.layering.layerId",Zre="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",ese="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",tse="org.eclipse.elk.layered.layering.nodePromotion.strategy",nse="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",ise="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",OE="org.eclipse.elk.layered.crossingMinimization.strategy",k3e="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",rse="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",sse="org.eclipse.elk.layered.crossingMinimization.semiInteractive",O3e="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",S3e="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",j3e="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",T3e="org.eclipse.elk.layered.crossingMinimization.positionId",E3e="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",ose="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",OG="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",Zx="org.eclipse.elk.layered.nodePlacement.strategy",SG="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",cse="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",lse="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",use="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",ase="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",fse="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",C3e="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",M3e="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",jG="org.eclipse.elk.layered.edgeRouting.splines.mode",TG="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",hse="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",A3e="org.eclipse.elk.layered.spacing.baseValue",N3e="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",_3e="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",D3e="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",L3e="org.eclipse.elk.layered.priority.direction",P3e="org.eclipse.elk.layered.priority.shortness",I3e="org.eclipse.elk.layered.priority.straightness",dse="org.eclipse.elk.layered.compaction.connectedComponents",R3e="org.eclipse.elk.layered.compaction.postCompaction.strategy",$3e="org.eclipse.elk.layered.compaction.postCompaction.constraints",EG="org.eclipse.elk.layered.highDegreeNodes.treatment",gse="org.eclipse.elk.layered.highDegreeNodes.threshold",pse="org.eclipse.elk.layered.highDegreeNodes.treeHeight",F1="org.eclipse.elk.layered.wrapping.strategy",CG="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",MG="org.eclipse.elk.layered.wrapping.correctionFactor",SE="org.eclipse.elk.layered.wrapping.cutting.strategy",bse="org.eclipse.elk.layered.wrapping.cutting.cuts",mse="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",AG="org.eclipse.elk.layered.wrapping.validify.strategy",NG="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",_G="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",DG="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",wse="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",vse="org.eclipse.elk.layered.layerUnzipping.strategy",yse="org.eclipse.elk.layered.layerUnzipping.minimizeEdgeLength",xse="org.eclipse.elk.layered.layerUnzipping.layerSplit",kse="org.eclipse.elk.layered.layerUnzipping.resetOnLongEdges",B3e="org.eclipse.elk.layered.edgeLabels.sideSelection",z3e="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",LG="org.eclipse.elk.layered.considerModelOrder.strategy",F3e="org.eclipse.elk.layered.considerModelOrder.portModelOrder",JL="org.eclipse.elk.layered.considerModelOrder.noModelOrder",Ose="org.eclipse.elk.layered.considerModelOrder.components",q3e="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",Sse="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",jse="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",Tse="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cycleBreakingId",Ese="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.crossingMinimizationId",Cse="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.componentGroupId",H3e="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbGroupOrderStrategy",Mse="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredSourceId",Ase="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredTargetId",Q3e="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmGroupOrderStrategy",G3e="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmEnforcedGroupOrders",Nse="layering",tlt="layering.minWidth",nlt="layering.nodePromotion",mj="crossingMinimization",PG="org.eclipse.elk.hierarchyHandling",ilt="crossingMinimization.greedySwitch",rlt="nodePlacement",slt="nodePlacement.bk",olt="edgeRouting",VL="org.eclipse.elk.edgeRouting",Ah="spacing",U3e="priority",J3e="compaction",clt="compaction.postCompaction",llt="Specifies whether and how post-process compaction is applied.",V3e="highDegreeNodes",X3e="wrapping",ult="wrapping.cutting",alt="wrapping.validify",W3e="wrapping.multiEdge",_se="layerUnzipping",Dse="edgeLabels",jE="considerModelOrder",wj="considerModelOrder.groupModelOrder",K3e="Group ID of the Node Type",Y3e="org.eclipse.elk.spacing.commentComment",Z3e="org.eclipse.elk.spacing.commentNode",e5e="org.eclipse.elk.spacing.componentComponent",t5e="org.eclipse.elk.spacing.edgeEdge",Lse="org.eclipse.elk.spacing.edgeNode",n5e="org.eclipse.elk.spacing.labelLabel",i5e="org.eclipse.elk.spacing.labelPortHorizontal",r5e="org.eclipse.elk.spacing.labelPortVertical",s5e="org.eclipse.elk.spacing.labelNode",o5e="org.eclipse.elk.spacing.nodeSelfLoop",c5e="org.eclipse.elk.spacing.portPort",l5e="org.eclipse.elk.spacing.individual",u5e="org.eclipse.elk.port.borderOffset",a5e="org.eclipse.elk.noLayout",f5e="org.eclipse.elk.port.side",XL="org.eclipse.elk.debugMode",h5e="org.eclipse.elk.alignment",d5e="org.eclipse.elk.insideSelfLoops.activate",g5e="org.eclipse.elk.insideSelfLoops.yo",Pse="org.eclipse.elk.direction",p5e="org.eclipse.elk.nodeLabels.padding",b5e="org.eclipse.elk.portLabels.nextToPortIfPossible",m5e="org.eclipse.elk.portLabels.treatAsGroup",w5e="org.eclipse.elk.portAlignment.default",v5e="org.eclipse.elk.portAlignment.north",y5e="org.eclipse.elk.portAlignment.south",x5e="org.eclipse.elk.portAlignment.west",k5e="org.eclipse.elk.portAlignment.east",IG="org.eclipse.elk.contentAlignment",O5e="org.eclipse.elk.junctionPoints",S5e="org.eclipse.elk.edge.thickness",j5e="org.eclipse.elk.edgeLabels.placement",T5e="org.eclipse.elk.port.index",E5e="org.eclipse.elk.commentBox",C5e="org.eclipse.elk.hypernode",M5e="org.eclipse.elk.port.anchor",Ise="org.eclipse.elk.partitioning.activate",Rse="org.eclipse.elk.partitioning.partition",RG="org.eclipse.elk.position",$se="org.eclipse.elk.margins",A5e="org.eclipse.elk.spacing.portsSurrounding",$G="org.eclipse.elk.interactiveLayout",ic="org.eclipse.elk.core.util",N5e={3:1,4:1,5:1,597:1},flt="NETWORK_SIMPLEX",_5e="SIMPLE",Bse="No implementation is available for the node placer ",Xr={86:1,43:1},vw="org.eclipse.elk.alg.layered.p1cycles",hlt="Depth-first cycle removal",dlt="Model order cycle breaking",q1="org.eclipse.elk.alg.layered.p2layers",D5e={411:1,223:1},glt={838:1,3:1,4:1},ol="org.eclipse.elk.alg.layered.p3order",e3=17976931348623157e292,zse=5e-324,Xs="org.eclipse.elk.alg.layered.p4nodes",plt={3:1,4:1,5:1,846:1},fd=1e-5,U0="org.eclipse.elk.alg.layered.p4nodes.bk",Fse="org.eclipse.elk.alg.layered.p5edges",eh="org.eclipse.elk.alg.layered.p5edges.orthogonal",qse="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",Hse=1e-6,Av="org.eclipse.elk.alg.layered.p5edges.splines",Qse=.09999999999999998,BG=1e-8,blt=4.71238898038469,mlt=1.5707963267948966,L5e=3.141592653589793,H1="org.eclipse.elk.alg.mrtree",wlt="Tree layout",vlt="P4_EDGE_ROUTING",Gse=.10000000149011612,zG="SUPER_ROOT",TE="org.eclipse.elk.alg.mrtree.graph",P5e=-17976931348623157e292,Pc="org.eclipse.elk.alg.mrtree.intermediate",ylt="Processor compute fanout",FG={3:1,6:1,4:1,5:1,526:1,91:1,111:1},xlt="Set neighbors in level",WL="org.eclipse.elk.alg.mrtree.options",klt="DESCENDANTS",I5e="org.eclipse.elk.mrtree.compaction",R5e="org.eclipse.elk.mrtree.edgeEndTextureLength",$5e="org.eclipse.elk.mrtree.treeLevel",B5e="org.eclipse.elk.mrtree.positionConstraint",z5e="org.eclipse.elk.mrtree.weighting",F5e="org.eclipse.elk.mrtree.edgeRoutingMode",q5e="org.eclipse.elk.mrtree.searchOrder",Olt="Position Constraint",cl="org.eclipse.elk.mrtree",H5e="org.eclipse.elk.tree",Slt="Processor arrange level",vj="org.eclipse.elk.alg.mrtree.p2order",Cu="org.eclipse.elk.alg.mrtree.p4route",Q5e="org.eclipse.elk.alg.radial",jlt="The given graph is not a tree!",kb=6.283185307179586,G5e="Before",qG="After",U5e="org.eclipse.elk.alg.radial.intermediate",Tlt="COMPACTION",Use="org.eclipse.elk.alg.radial.intermediate.compaction",Elt={3:1,4:1,5:1,91:1},J5e="org.eclipse.elk.alg.radial.intermediate.optimization",Jse="No implementation is available for the layout option ",EE="org.eclipse.elk.alg.radial.options",Clt="CompactionStrategy",V5e="org.eclipse.elk.radial.centerOnRoot",X5e="org.eclipse.elk.radial.orderId",W5e="org.eclipse.elk.radial.radius",HG="org.eclipse.elk.radial.rotate",Vse="org.eclipse.elk.radial.compactor",Xse="org.eclipse.elk.radial.compactionStepSize",K5e="org.eclipse.elk.radial.sorter",Y5e="org.eclipse.elk.radial.wedgeCriteria",Z5e="org.eclipse.elk.radial.optimizationCriteria",Wse="org.eclipse.elk.radial.rotation.targetAngle",Kse="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",e4e="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",Mlt="Compaction",t4e="rotation",Sa="org.eclipse.elk.radial",Alt="org.eclipse.elk.alg.radial.p1position.wedge",n4e="org.eclipse.elk.alg.radial.sorting",Nlt=5.497787143782138,_lt=3.9269908169872414,Dlt=2.356194490192345,Llt="org.eclipse.elk.alg.rectpacking",CE="org.eclipse.elk.alg.rectpacking.intermediate",Yse="org.eclipse.elk.alg.rectpacking.options",i4e="org.eclipse.elk.rectpacking.trybox",r4e="org.eclipse.elk.rectpacking.currentPosition",s4e="org.eclipse.elk.rectpacking.desiredPosition",o4e="org.eclipse.elk.rectpacking.inNewRow",c4e="org.eclipse.elk.rectpacking.orderBySize",l4e="org.eclipse.elk.rectpacking.widthApproximation.strategy",u4e="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",a4e="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",f4e="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",h4e="org.eclipse.elk.rectpacking.packing.strategy",d4e="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",g4e="org.eclipse.elk.rectpacking.packing.compaction.iterations",p4e="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",Zse="widthApproximation",Plt="Compaction Strategy",Ilt="packing.compaction",Ul="org.eclipse.elk.rectpacking",yj="org.eclipse.elk.alg.rectpacking.p1widthapproximation",QG="org.eclipse.elk.alg.rectpacking.p2packing",Rlt="No Compaction",b4e="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",KL="org.eclipse.elk.alg.rectpacking.util",GG="No implementation available for ",Nv="org.eclipse.elk.alg.spore",_v="org.eclipse.elk.alg.spore.options",yw="org.eclipse.elk.sporeCompaction",eoe="org.eclipse.elk.underlyingLayoutAlgorithm",m4e="org.eclipse.elk.processingOrder.treeConstruction",w4e="org.eclipse.elk.processingOrder.spanningTreeCostFunction",toe="org.eclipse.elk.processingOrder.preferredRoot",noe="org.eclipse.elk.processingOrder.rootSelection",ioe="org.eclipse.elk.structure.structureExtractionStrategy",v4e="org.eclipse.elk.compaction.compactionStrategy",y4e="org.eclipse.elk.compaction.orthogonal",x4e="org.eclipse.elk.overlapRemoval.maxIterations",k4e="org.eclipse.elk.overlapRemoval.runScanline",roe="processingOrder",$lt="overlapRemoval",xj="org.eclipse.elk.sporeOverlap",Blt="org.eclipse.elk.alg.spore.p1structure",soe="org.eclipse.elk.alg.spore.p2processingorder",ooe="org.eclipse.elk.alg.spore.p3execution",O4e="org.eclipse.elk.alg.vertiflex",S4e="org.eclipse.elk.vertiflex.verticalConstraint",j4e="org.eclipse.elk.vertiflex.layoutStrategy",T4e="org.eclipse.elk.vertiflex.layerDistance",E4e="org.eclipse.elk.vertiflex.considerNodeModelOrder",C4e="org.eclipse.elk.alg.vertiflex.options",xw="org.eclipse.elk.vertiflex",zlt="org.eclipse.elk.alg.vertiflex.p1yplacement",coe="org.eclipse.elk.alg.vertiflex.p2relative",Flt="org.eclipse.elk.alg.vertiflex.p3absolute",qlt="BendEdgeRouter",M4e="org.eclipse.elk.alg.vertiflex.p4edgerouting",Hlt="StraightEdgeRouter",Qlt="Topdown Layout",Glt="Invalid index: ",kj="org.eclipse.elk.core.alg",t3={343:1},Dv={297:1},Ult="Make sure its type is registered with the ",A4e=" utility class.",Oj="true",loe="false",Jlt="Couldn't clone property '",kw=.05,Wc="org.eclipse.elk.core.options",Vlt=1.2999999523162842,Ow="org.eclipse.elk.box",N4e="org.eclipse.elk.expandNodes",_4e="org.eclipse.elk.box.packingMode",Xlt="org.eclipse.elk.algorithm",Wlt="org.eclipse.elk.resolvedAlgorithm",D4e="org.eclipse.elk.bendPoints",qnn="org.eclipse.elk.labelManager",Klt="org.eclipse.elk.softwrappingFuzziness",Ylt="org.eclipse.elk.scaleFactor",Zlt="org.eclipse.elk.childAreaWidth",eut="org.eclipse.elk.childAreaHeight",tut="org.eclipse.elk.animate",nut="org.eclipse.elk.animTimeFactor",iut="org.eclipse.elk.layoutAncestors",rut="org.eclipse.elk.maxAnimTime",sut="org.eclipse.elk.minAnimTime",out="org.eclipse.elk.progressBar",cut="org.eclipse.elk.validateGraph",lut="org.eclipse.elk.validateOptions",uut="org.eclipse.elk.zoomToFit",aut="org.eclipse.elk.json.shapeCoords",fut="org.eclipse.elk.json.edgeCoords",Hnn="org.eclipse.elk.font.name",hut="org.eclipse.elk.font.size",uoe="org.eclipse.elk.topdown.sizeCategories",L4e="org.eclipse.elk.topdown.sizeCategoriesHierarchicalNodeWeight",aoe="org.eclipse.elk.topdown.sizeApproximator",P4e="org.eclipse.elk.topdown.scaleCap",dut="org.eclipse.elk.edge.type",gut="partitioning",put="nodeLabels",UG="portAlignment",foe="nodeSize",hoe="port",I4e="portLabels",Sj="topdown",but="insideSelfLoops",R4e="INHERIT",jj="org.eclipse.elk.fixed",JG="org.eclipse.elk.random",VG={3:1,34:1,23:1,525:1,290:1},mut="port must have a parent node to calculate the port side",wut="The edge needs to have exactly one edge section. Found: ",ME="org.eclipse.elk.core.util.adapters",ja="org.eclipse.emf.ecore",n3="org.eclipse.elk.graph",vut="EMapPropertyHolder",yut="ElkBendPoint",xut="ElkGraphElement",kut="ElkConnectableShape",$4e="ElkEdge",Out="ElkEdgeSection",Sut="EModelElement",jut="ENamedElement",B4e="ElkLabel",z4e="ElkNode",F4e="ElkPort",Tut={95:1,94:1},yk="org.eclipse.emf.common.notify.impl",J0="The feature '",AE="' is not a valid changeable feature",Eut="Expecting null",doe="' is not a valid feature",Cut="The feature ID",Mut=" is not a valid feature ID",rc=32768,Aut={110:1,95:1,94:1,57:1,52:1,101:1},Vt="org.eclipse.emf.ecore.impl",Ob="org.eclipse.elk.graph.impl",NE="Recursive containment not allowed for ",Tj="The datatype '",Sw="' is not a valid classifier",goe="The value '",i3={198:1,3:1,4:1},poe="The class '",Ej="http://www.eclipse.org/elk/ElkGraph",q4e="property",_E="value",boe="source",Nut="properties",_ut="identifier",moe="height",woe="width",voe="parent",yoe="text",xoe="children",Dut="hierarchical",H4e="sources",koe="targets",Ooe="sections",XG="bendPoints",Q4e="outgoingShape",G4e="incomingShape",U4e="outgoingSections",J4e="incomingSections",Ds="org.eclipse.emf.common.util",V4e="Severe implementation error in the Json to ElkGraph importer.",hd="id",ds="org.eclipse.elk.graph.json",Cj="Unhandled parameter types: ",Lut="startPoint",Put="An edge must have at least one source and one target (edge id: '",Mj="').",Iut="Referenced edge section does not exist: ",Rut=" (edge id: '",X4e="target",$ut="sourcePoint",But="targetPoint",WG="group",di="name",zut="connectableShape cannot be null",Fut="edge cannot be null",qut="Passed edge is not 'simple'.",KG="org.eclipse.elk.graph.util",YL="The 'no duplicates' constraint is violated",Soe="targetIndex=",Sb=", size=",joe="sourceIndex=",dd={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1},Toe={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},YG="logging",Hut="measureExecutionTime",Qut="parser.parse.1",Gut="parser.parse.2",ZG="parser.next.1",Eoe="parser.next.2",Uut="parser.next.3",Jut="parser.next.4",jb="parser.factor.1",W4e="parser.factor.2",Vut="parser.factor.3",Xut="parser.factor.4",Wut="parser.factor.5",Kut="parser.factor.6",Yut="parser.atom.1",Zut="parser.atom.2",eat="parser.atom.3",K4e="parser.atom.4",Coe="parser.atom.5",Y4e="parser.cc.1",eU="parser.cc.2",tat="parser.cc.3",nat="parser.cc.5",Z4e="parser.cc.6",eke="parser.cc.7",Moe="parser.cc.8",iat="parser.ope.1",rat="parser.ope.2",sat="parser.ope.3",Qg="parser.descape.1",oat="parser.descape.2",cat="parser.descape.3",lat="parser.descape.4",uat="parser.descape.5",Ta="parser.process.1",aat="parser.quantifier.1",fat="parser.quantifier.2",hat="parser.quantifier.3",dat="parser.quantifier.4",tke="parser.quantifier.5",gat="org.eclipse.emf.common.notify",nke={420:1,683:1},pat={3:1,4:1,22:1,32:1,56:1,18:1,16:1,71:1,61:1},ZL={374:1,152:1},DE="index=",Aoe={3:1,4:1,5:1,131:1},bat={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,61:1},ike={3:1,6:1,4:1,5:1,200:1},mat={3:1,4:1,5:1,178:1,375:1},wat=";/?:@&=+$,",vat="invalid authority: ",yat="EAnnotation",xat="ETypedElement",kat="EStructuralFeature",Oat="EAttribute",Sat="EClassifier",jat="EEnumLiteral",Tat="EGenericType",Eat="EOperation",Cat="EParameter",Mat="EReference",Aat="ETypeParameter",Ji="org.eclipse.emf.ecore.util",Noe={78:1},rke={3:1,22:1,18:1,16:1,61:1,593:1,78:1,72:1,98:1},Nat="org.eclipse.emf.ecore.util.FeatureMap$Entry",Il=8192,LE="byte",tU="char",PE="double",IE="float",RE="int",$E="long",BE="short",_at="java.lang.Object",r3={3:1,4:1,5:1,258:1},ske={3:1,4:1,5:1,685:1},Dat={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,72:1},Eo={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},eP="mixed",Kn="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",Ua="kind",Lat={3:1,4:1,5:1,686:1},oke={3:1,4:1,22:1,32:1,56:1,18:1,16:1,71:1,61:1,78:1,72:1,98:1},nU={22:1,32:1,56:1,18:1,16:1,61:1,72:1},iU={51:1,130:1,289:1},rU={76:1,345:1},sU="The value of type '",oU="' must be of type '",s3=1318,Ja="http://www.eclipse.org/emf/2002/Ecore",cU=-32768,jw="constraints",xs="baseType",Pat="getEStructuralFeature",Iat="getFeatureID",zE="feature",Rat="getOperationID",cke="operation",$at="defaultValue",Bat="eTypeParameters",zat="isInstance",Fat="getEEnumLiteral",qat="eContainingClass",ai={58:1},Hat={3:1,4:1,5:1,123:1},Qat="org.eclipse.emf.ecore.resource",Gat={95:1,94:1,595:1,2013:1},_oe="org.eclipse.emf.ecore.resource.impl",lke="unspecified",tP="simple",lU="attribute",Uat="attributeWildcard",uU="element",Doe="elementWildcard",th="collapse",Loe="itemType",aU="namespace",nP="##targetNamespace",Va="whiteSpace",uke="wildcards",Tb="http://www.eclipse.org/emf/2003/XMLType",Poe="##any",Aj="uninitialized",iP="The multiplicity constraint is violated",fU="org.eclipse.emf.ecore.xml.type",Jat="ProcessingInstruction",Vat="SimpleAnyType",Xat="XMLTypeDocumentRoot",Lr="org.eclipse.emf.ecore.xml.type.impl",rP="INF",Wat="processing",Kat="ENTITIES_._base",ake="minLength",fke="ENTITY",hU="NCName",Yat="IDREFS_._base",hke="integer",Ioe="token",Roe="pattern",Zat="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",dke="\\i\\c*",eft="[\\i-[:]][\\c-[:]]*",tft="nonPositiveInteger",sP="maxInclusive",gke="NMTOKEN",nft="NMTOKENS_._base",pke="nonNegativeInteger",oP="minInclusive",ift="normalizedString",rft="unsignedByte",sft="unsignedInt",oft="18446744073709551615",cft="unsignedShort",lft="processingInstruction",Gg="org.eclipse.emf.ecore.xml.type.internal",Nj=1114111,uft="Internal Error: shorthands: \\u",FE="xml:isDigit",$oe="xml:isWord",Boe="xml:isSpace",zoe="xml:isNameChar",Foe="xml:isInitialNameChar",aft="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",fft="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",hft="Private Use",qoe="ASSIGNED",Hoe="\0ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁯⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿　〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ﬀﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",bke="UNASSIGNED",_j={3:1,122:1},dft="org.eclipse.emf.ecore.xml.type.util",dU={3:1,4:1,5:1,377:1},mke="org.eclipse.xtext.xbase.lib",gft="Cannot add elements to a Range",pft="Cannot set elements in a Range",bft="Cannot remove elements from a Range",mft="user.agent",f,gU,Qoe;p.goog=p.goog||{},p.goog.global=p.goog.global||p,gU={},E(1,null,{},S),f.Fb=function(t){return gBe(this,t)},f.Gb=function(){return this.Pm},f.Hb=function(){return Rm(this)},f.Ib=function(){var t;return zp(Ou(this))+"@"+(t=zi(this)>>>0,t.toString(16))},f.equals=function(e){return this.Fb(e)},f.hashCode=function(){return this.Hb()},f.toString=function(){return this.Ib()};var wft,vft,yft;E(299,1,{299:1,2103:1},awe),f.te=function(t){var n;return n=new awe,n.i=4,t>1?n.c=GQe(this,t-1):n.c=this,n},f.ue=function(){return x1(this),this.b},f.ve=function(){return zp(this)},f.we=function(){return x1(this),this.k},f.xe=function(){return(this.i&4)!=0},f.ye=function(){return(this.i&1)!=0},f.Ib=function(){return yme(this)},f.i=0;var Br=M(Vo,"Object",1),wke=M(Vo,"Class",299);E(2075,1,OL),M(SL,"Optional",2075),E(1172,2075,OL,C),f.Fb=function(t){return t===this},f.Hb=function(){return 2040732332},f.Ib=function(){return"Optional.absent()"},f.Jb=function(t){return Bn(t),hT(),Goe};var Goe;M(SL,"Absent",1172),E(634,1,{},jY),M(SL,"Joiner",634);var Qnn=Zi(SL,"Predicate");E(584,1,{181:1,584:1,3:1,48:1},zK),f.Mb=function(t){return VWe(this,t)},f.Lb=function(t){return VWe(this,t)},f.Fb=function(t){var n;return ae(t,584)?(n=c(t,584),oye(this.a,n.a)):!1},f.Hb=function(){return pwe(this.a)+306654252},f.Ib=function(){return $Gt(this.a)},M(SL,"Predicates/AndPredicate",584),E(416,2075,{416:1,3:1},Y8),f.Fb=function(t){var n;return ae(t,416)?(n=c(t,416),xi(this.a,n.a)):!1},f.Hb=function(){return 1502476572+zi(this.a)},f.Ib=function(){return Lot+this.a+")"},f.Jb=function(t){return new Y8(Pq(t.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},M(SL,"Present",416),E(206,1,ZS),f.Nb=function(t){ps(this,t)},f.Qb=function(){nIe()},M(kt,"UnmodifiableIterator",206),E(2055,206,ej),f.Qb=function(){nIe()},f.Rb=function(t){throw V(new zn)},f.Wb=function(t){throw V(new zn)},M(kt,"UnmodifiableListIterator",2055),E(394,2055,ej),f.Ob=function(){return this.b<this.c},f.Sb=function(){return this.b>0},f.Pb=function(){if(this.b>=this.c)throw V(new Mo);return this.Xb(this.b++)},f.Tb=function(){return this.b},f.Ub=function(){if(this.b<=0)throw V(new Mo);return this.Xb(--this.b)},f.Vb=function(){return this.b-1},f.b=0,f.c=0,M(kt,"AbstractIndexedListIterator",394),E(709,206,ZS),f.Ob=function(){return Ate(this)},f.Pb=function(){return gme(this)},f.e=1,M(kt,"AbstractIterator",709),E(2063,1,{231:1}),f.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},f.Fb=function(t){return Yte(this,t)},f.Hb=function(){return zi(this.Zb())},f.dc=function(){return this.gc()==0},f.ec=function(){return E4(this)},f.Ib=function(){return To(this.Zb())},M(kt,"AbstractMultimap",2063),E(737,2063,mb),f.$b=function(){jH(this)},f._b=function(t){return wIe(this,t)},f.ac=function(){return new P6(this,this.c)},f.ic=function(t){return this.hc()},f.bc=function(){return new Ox(this,this.c)},f.jc=function(){return this.mc(this.hc())},f.kc=function(){return new FPe(this)},f.lc=function(){return oie(this.c.vc().Lc(),new P,64,this.d)},f.cc=function(t){return Ei(this,t)},f.fc=function(t){return zD(this,t)},f.gc=function(){return this.d},f.mc=function(t){return Mt(),new k6(t)},f.nc=function(){return new zPe(this)},f.oc=function(){return oie(this.c.Bc().Lc(),new N,64,this.d)},f.pc=function(t,n){return new cH(this,t,n,null)},f.d=0,M(kt,"AbstractMapBasedMultimap",737),E(1678,737,mb),f.hc=function(){return new Gc(this.a)},f.jc=function(){return Mt(),Mt(),$s},f.cc=function(t){return c(Ei(this,t),16)},f.fc=function(t){return c(zD(this,t),16)},f.Zb=function(){return D4(this)},f.Fb=function(t){return Yte(this,t)},f.qc=function(t){return c(Ei(this,t),16)},f.rc=function(t){return c(zD(this,t),16)},f.mc=function(t){return Iq(c(t,16))},f.pc=function(t,n){return tUe(this,t,c(n,16),null)},M(kt,"AbstractListMultimap",1678),E(743,1,ns),f.Nb=function(t){ps(this,t)},f.Ob=function(){return this.c.Ob()||this.e.Ob()},f.Pb=function(){var t;return this.e.Ob()||(t=c(this.c.Pb(),45),this.b=t.jd(),this.a=c(t.kd(),18),this.e=this.a.Jc()),this.sc(this.b,this.e.Pb())},f.Qb=function(){this.e.Qb(),c(za(this.a),18).dc()&&this.c.Qb(),--this.d.d},M(kt,"AbstractMapBasedMultimap/Itr",743),E(1110,743,ns,zPe),f.sc=function(t,n){return n},M(kt,"AbstractMapBasedMultimap/1",1110),E(1111,1,{},N),f.Kb=function(t){return c(t,18).Lc()},M(kt,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1111),E(1112,743,ns,FPe),f.sc=function(t,n){return new _m(t,n)},M(kt,"AbstractMapBasedMultimap/2",1112);var vke=Zi(On,"Map");E(2044,1,gw),f.wc=function(t){AD(this,t)},f.$b=function(){this.vc().$b()},f.tc=function(t){return qne(this,t)},f._b=function(t){return!!rve(this,t,!1)},f.uc=function(t){var n,i,r;for(i=this.vc().Jc();i.Ob();)if(n=c(i.Pb(),45),r=n.kd(),xe(t)===xe(r)||t!=null&&xi(t,r))return!0;return!1},f.Fb=function(t){var n,i,r;if(t===this)return!0;if(!ae(t,93)||(r=c(t,93),this.gc()!=r.gc()))return!1;for(i=r.vc().Jc();i.Ob();)if(n=c(i.Pb(),45),!this.tc(n))return!1;return!0},f.xc=function(t){return No(rve(this,t,!1))},f.Hb=function(){return cwe(this.vc())},f.dc=function(){return this.gc()==0},f.ec=function(){return new an(this)},f.yc=function(t,n){throw V(new wg("Put not supported on this map"))},f.zc=function(t){O7(this,t)},f.Ac=function(t){return No(rve(this,t,!0))},f.gc=function(){return this.vc().gc()},f.Ib=function(){return vet(this)},f.Bc=function(){return new m1(this)},M(On,"AbstractMap",2044),E(2064,2044,gw),f.bc=function(){return new Wz(this)},f.vc=function(){return zqe(this)},f.ec=function(){var t;return t=this.g,t||(this.g=this.bc())},f.Bc=function(){var t;return t=this.i,t||(this.i=new gRe(this))},M(kt,"Maps/ViewCachingAbstractMap",2064),E(398,2064,gw,P6),f.xc=function(t){return CIt(this,t)},f.Ac=function(t){return B$t(this,t)},f.$b=function(){this.d==this.e.c?this.e.$b():fq(new gpe(this))},f._b=function(t){return BKe(this.d,t)},f.Dc=function(){return new G5(this)},f.Cc=function(){return this.Dc()},f.Fb=function(t){return this===t||xi(this.d,t)},f.Hb=function(){return zi(this.d)},f.ec=function(){return this.e.ec()},f.gc=function(){return this.d.gc()},f.Ib=function(){return To(this.d)},M(kt,"AbstractMapBasedMultimap/AsMap",398);var Ea=Zi(Vo,"Iterable");E(32,1,Tv),f.Ic=function(t){vs(this,t)},f.Lc=function(){return new Et(this,0)},f.Mc=function(){return new Tt(null,this.Lc())},f.Ec=function(t){throw V(new wg("Add not supported on this collection"))},f.Fc=function(t){return Ss(this,t)},f.$b=function(){Zpe(this)},f.Gc=function(t){return hv(this,t,!1)},f.Hc=function(t){return ID(this,t)},f.dc=function(){return this.gc()==0},f.Kc=function(t){return hv(this,t,!0)},f.Nc=function(){return Tpe(this)},f.Oc=function(t){return z7(this,t)},f.Ib=function(){return jh(this)},M(On,"AbstractCollection",32);var Xa=Zi(On,"Set");E(Eh,32,Pl),f.Lc=function(){return new Et(this,1)},f.Fb=function(t){return DYe(this,t)},f.Hb=function(){return cwe(this)},M(On,"AbstractSet",Eh),E(2047,Eh,Pl),M(kt,"Sets/ImprovedAbstractSet",2047),E($1,2047,Pl),f.$b=function(){this.Pc().$b()},f.Gc=function(t){return gYe(this,t)},f.dc=function(){return this.Pc().dc()},f.Kc=function(t){var n;return this.Gc(t)&&ae(t,45)?(n=c(t,45),this.Pc().ec().Kc(n.jd())):!1},f.gc=function(){return this.Pc().gc()},M(kt,"Maps/EntrySet",$1),E(1108,$1,Pl,G5),f.Gc=function(t){return Iwe(this.a.d.vc(),t)},f.Jc=function(){return new gpe(this.a)},f.Pc=function(){return this.a},f.Kc=function(t){var n;return Iwe(this.a.d.vc(),t)?(n=c(za(c(t,45)),45),bPt(this.a.e,n.jd()),!0):!1},f.Lc=function(){return V_(this.a.d.vc().Lc(),new pz(this.a))},M(kt,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1108),E(1109,1,{},pz),f.Kb=function(t){return QUe(this.a,c(t,45))},M(kt,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1109),E(741,1,ns,gpe),f.Nb=function(t){ps(this,t)},f.Pb=function(){var t;return t=c(this.b.Pb(),45),this.a=c(t.kd(),18),QUe(this.c,t)},f.Ob=function(){return this.b.Ob()},f.Qb=function(){Q6(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},M(kt,"AbstractMapBasedMultimap/AsMap/AsMapIterator",741),E(534,2047,Pl,Wz),f.$b=function(){this.b.$b()},f.Gc=function(t){return this.b._b(t)},f.Ic=function(t){Bn(t),this.b.wc(new t_(t))},f.dc=function(){return this.b.dc()},f.Jc=function(){return new dT(this.b.vc().Jc())},f.Kc=function(t){return this.b._b(t)?(this.b.Ac(t),!0):!1},f.gc=function(){return this.b.gc()},M(kt,"Maps/KeySet",534),E(333,534,Pl,Ox),f.$b=function(){var t;fq((t=this.b.vc().Jc(),new z1e(this,t)))},f.Hc=function(t){return this.b.ec().Hc(t)},f.Fb=function(t){return this===t||xi(this.b.ec(),t)},f.Hb=function(){return zi(this.b.ec())},f.Jc=function(){var t;return t=this.b.vc().Jc(),new z1e(this,t)},f.Kc=function(t){var n,i;return i=0,n=c(this.b.Ac(t),18),n&&(i=n.gc(),n.$b(),this.a.d-=i),i>0},f.Lc=function(){return this.b.ec().Lc()},M(kt,"AbstractMapBasedMultimap/KeySet",333),E(742,1,ns,z1e),f.Nb=function(t){ps(this,t)},f.Ob=function(){return this.c.Ob()},f.Pb=function(){return this.a=c(this.c.Pb(),45),this.a.jd()},f.Qb=function(){var t;Q6(!!this.a),t=c(this.a.kd(),18),this.c.Qb(),this.b.a.d-=t.gc(),t.$b(),this.a=null},M(kt,"AbstractMapBasedMultimap/KeySet/1",742),E(492,398,{93:1,136:1},F_),f.bc=function(){return this.Qc()},f.ec=function(){return this.Sc()},f.Qc=function(){return new m_(this.c,this.Uc())},f.Rc=function(){return this.Uc().Rc()},f.Sc=function(){var t;return t=this.b,t||(this.b=this.Qc())},f.Tc=function(){return this.Uc().Tc()},f.Uc=function(){return c(this.d,136)},M(kt,"AbstractMapBasedMultimap/SortedAsMap",492),E(442,492,_xe,JT),f.bc=function(){return new L6(this.a,c(c(this.d,136),141))},f.Qc=function(){return new L6(this.a,c(c(this.d,136),141))},f.ec=function(){var t;return t=this.b,c(t||(this.b=new L6(this.a,c(c(this.d,136),141))),279)},f.Sc=function(){var t;return t=this.b,c(t||(this.b=new L6(this.a,c(c(this.d,136),141))),279)},f.Uc=function(){return c(c(this.d,136),141)},f.Vc=function(t){return c(c(this.d,136),141).Vc(t)},f.Wc=function(t){return c(c(this.d,136),141).Wc(t)},f.Xc=function(t,n){return new JT(this.a,c(c(this.d,136),141).Xc(t,n))},f.Yc=function(t){return c(c(this.d,136),141).Yc(t)},f.Zc=function(t){return c(c(this.d,136),141).Zc(t)},f.$c=function(t,n){return new JT(this.a,c(c(this.d,136),141).$c(t,n))},M(kt,"AbstractMapBasedMultimap/NavigableAsMap",442),E(491,333,Pot,m_),f.Lc=function(){return this.b.ec().Lc()},M(kt,"AbstractMapBasedMultimap/SortedKeySet",491),E(397,491,Dxe,L6),M(kt,"AbstractMapBasedMultimap/NavigableKeySet",397),E(543,32,Tv,cH),f.Ec=function(t){var n,i;return ou(this),i=this.d.dc(),n=this.d.Ec(t),n&&(++this.f.d,i&&Q_(this)),n},f.Fc=function(t){var n,i,r;return t.dc()?!1:(r=(ou(this),this.d.gc()),n=this.d.Fc(t),n&&(i=this.d.gc(),this.f.d+=i-r,r==0&&Q_(this)),n)},f.$b=function(){var t;t=(ou(this),this.d.gc()),t!=0&&(this.d.$b(),this.f.d-=t,wq(this))},f.Gc=function(t){return ou(this),this.d.Gc(t)},f.Hc=function(t){return ou(this),this.d.Hc(t)},f.Fb=function(t){return t===this?!0:(ou(this),xi(this.d,t))},f.Hb=function(){return ou(this),zi(this.d)},f.Jc=function(){return ou(this),new tpe(this)},f.Kc=function(t){var n;return ou(this),n=this.d.Kc(t),n&&(--this.f.d,wq(this)),n},f.gc=function(){return tBe(this)},f.Lc=function(){return ou(this),this.d.Lc()},f.Ib=function(){return ou(this),To(this.d)},M(kt,"AbstractMapBasedMultimap/WrappedCollection",543);var Ju=Zi(On,"List");E(739,543,{22:1,32:1,18:1,16:1},Epe),f.gd=function(t){sb(this,t)},f.Lc=function(){return ou(this),this.d.Lc()},f._c=function(t,n){var i;ou(this),i=this.d.dc(),c(this.d,16)._c(t,n),++this.a.d,i&&Q_(this)},f.ad=function(t,n){var i,r,o;return n.dc()?!1:(o=(ou(this),this.d.gc()),i=c(this.d,16).ad(t,n),i&&(r=this.d.gc(),this.a.d+=r-o,o==0&&Q_(this)),i)},f.Xb=function(t){return ou(this),c(this.d,16).Xb(t)},f.bd=function(t){return ou(this),c(this.d,16).bd(t)},f.cd=function(){return ou(this),new _Be(this)},f.dd=function(t){return ou(this),new nQe(this,t)},f.ed=function(t){var n;return ou(this),n=c(this.d,16).ed(t),--this.a.d,wq(this),n},f.fd=function(t,n){return ou(this),c(this.d,16).fd(t,n)},f.hd=function(t,n){return ou(this),tUe(this.a,this.e,c(this.d,16).hd(t,n),this.b?this.b:this)},M(kt,"AbstractMapBasedMultimap/WrappedList",739),E(1107,739,{22:1,32:1,18:1,16:1,59:1},vze),M(kt,"AbstractMapBasedMultimap/RandomAccessWrappedList",1107),E(626,1,ns,tpe),f.Nb=function(t){ps(this,t)},f.Ob=function(){return nS(this),this.b.Ob()},f.Pb=function(){return nS(this),this.b.Pb()},f.Qb=function(){ize(this)},M(kt,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",626),E(740,626,qd,_Be,nQe),f.Qb=function(){ize(this)},f.Rb=function(t){var n;n=tBe(this.a)==0,(nS(this),c(this.b,130)).Rb(t),++this.a.a.d,n&&Q_(this.a)},f.Sb=function(){return(nS(this),c(this.b,130)).Sb()},f.Tb=function(){return(nS(this),c(this.b,130)).Tb()},f.Ub=function(){return(nS(this),c(this.b,130)).Ub()},f.Vb=function(){return(nS(this),c(this.b,130)).Vb()},f.Wb=function(t){(nS(this),c(this.b,130)).Wb(t)},M(kt,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",740),E(738,543,Pot,m0e),f.Lc=function(){return ou(this),this.d.Lc()},M(kt,"AbstractMapBasedMultimap/WrappedSortedSet",738),E(1106,738,Dxe,SBe),M(kt,"AbstractMapBasedMultimap/WrappedNavigableSet",1106),E(1105,543,Pl,Fze),f.Lc=function(){return ou(this),this.d.Lc()},M(kt,"AbstractMapBasedMultimap/WrappedSet",1105),E(1114,1,{},P),f.Kb=function(t){return xPt(c(t,45))},M(kt,"AbstractMapBasedMultimap/lambda$1$Type",1114),E(1113,1,{},FK),f.Kb=function(t){return new _m(this.a,t)},M(kt,"AbstractMapBasedMultimap/lambda$2$Type",1113);var Eb=Zi(On,"Map/Entry");E(359,1,cre),f.Fb=function(t){var n;return ae(t,45)?(n=c(t,45),k1(this.jd(),n.jd())&&k1(this.kd(),n.kd())):!1},f.Hb=function(){var t,n;return t=this.jd(),n=this.kd(),(t==null?0:zi(t))^(n==null?0:zi(n))},f.ld=function(t){throw V(new zn)},f.Ib=function(){return this.jd()+"="+this.kd()},M(kt,Iot,359),E(2065,32,Tv),f.$b=function(){this.md().$b()},f.Gc=function(t){var n;return ae(t,45)?(n=c(t,45),HDt(this.md(),n.jd(),n.kd())):!1},f.Kc=function(t){var n;return ae(t,45)?(n=c(t,45),IGe(this.md(),n.jd(),n.kd())):!1},f.gc=function(){return this.md().d},M(kt,"Multimaps/Entries",2065),E(744,2065,Tv,bz),f.Jc=function(){return this.a.kc()},f.md=function(){return this.a},f.Lc=function(){return this.a.lc()},M(kt,"AbstractMultimap/Entries",744),E(745,744,Pl,y1e),f.Lc=function(){return this.a.lc()},f.Fb=function(t){return Sve(this,t)},f.Hb=function(){return JXe(this)},M(kt,"AbstractMultimap/EntrySet",745),E(746,32,Tv,mz),f.$b=function(){this.a.$b()},f.Gc=function(t){return P$t(this.a,t)},f.Jc=function(){return this.a.nc()},f.gc=function(){return this.a.d},f.Lc=function(){return this.a.oc()},M(kt,"AbstractMultimap/Values",746),E(2066,32,{841:1,22:1,32:1,18:1}),f.Ic=function(t){Bn(t),jx(this).Ic(new Oz(t))},f.Lc=function(){var t;return t=jx(this).Lc(),oie(t,new ie,64|t.wd()&1296,this.a.d)},f.Ec=function(t){return T1e(),!0},f.Fc=function(t){return Bn(this),Bn(t),ae(t,544)?UDt(c(t,841)):!t.dc()&&xte(this,t.Jc())},f.Gc=function(t){var n;return n=c(fv(D4(this.a),t),18),(n?n.gc():0)>0},f.Fb=function(t){return IJt(this,t)},f.Hb=function(){return zi(jx(this))},f.dc=function(){return jx(this).dc()},f.Kc=function(t){return ztt(this,t,1)>0},f.Ib=function(){return To(jx(this))},M(kt,"AbstractMultiset",2066),E(2068,2047,Pl),f.$b=function(){jH(this.a.a)},f.Gc=function(t){var n,i;return ae(t,493)?(i=c(t,421),c(i.a.kd(),18).gc()<=0?!1:(n=rGe(this.a,i.a.jd()),n==c(i.a.kd(),18).gc())):!1},f.Kc=function(t){var n,i,r,o;return ae(t,493)&&(i=c(t,421),n=i.a.jd(),r=c(i.a.kd(),18).gc(),r!=0)?(o=this.a,_Ut(o,n,r)):!1},M(kt,"Multisets/EntrySet",2068),E(1120,2068,Pl,qK),f.Jc=function(){return new UPe(zqe(D4(this.a.a)).Jc())},f.gc=function(){return D4(this.a.a).gc()},M(kt,"AbstractMultiset/EntrySet",1120),E(625,737,mb),f.hc=function(){return this.nd()},f.jc=function(){return this.od()},f.cc=function(t){return this.pd(t)},f.fc=function(t){return this.qd(t)},f.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},f.od=function(){return Mt(),Mt(),yU},f.Fb=function(t){return Yte(this,t)},f.pd=function(t){return c(Ei(this,t),24)},f.qd=function(t){return c(zD(this,t),24)},f.mc=function(t){return Mt(),new M6(c(t,24))},f.pc=function(t,n){return new Fze(this,t,c(n,24))},M(kt,"AbstractSetMultimap",625),E(1706,625,mb),f.hc=function(){return new xg(this.b)},f.nd=function(){return new xg(this.b)},f.jc=function(){return Bpe(new xg(this.b))},f.od=function(){return Bpe(new xg(this.b))},f.cc=function(t){return c(c(Ei(this,t),24),85)},f.pd=function(t){return c(c(Ei(this,t),24),85)},f.fc=function(t){return c(c(zD(this,t),24),85)},f.qd=function(t){return c(c(zD(this,t),24),85)},f.mc=function(t){return ae(t,279)?Bpe(c(t,279)):(Mt(),new s0e(c(t,85)))},f.Zb=function(){var t;return t=this.f,t||(this.f=ae(this.c,141)?new JT(this,c(this.c,141)):ae(this.c,136)?new F_(this,c(this.c,136)):new P6(this,this.c))},f.pc=function(t,n){return ae(n,279)?new SBe(this,t,c(n,279)):new m0e(this,t,c(n,85))},M(kt,"AbstractSortedSetMultimap",1706),E(1707,1706,mb),f.Zb=function(){var t;return t=this.f,c(c(t||(this.f=ae(this.c,141)?new JT(this,c(this.c,141)):ae(this.c,136)?new F_(this,c(this.c,136)):new P6(this,this.c)),136),141)},f.ec=function(){var t;return t=this.i,c(c(t||(this.i=ae(this.c,141)?new L6(this,c(this.c,141)):ae(this.c,136)?new m_(this,c(this.c,136)):new Ox(this,this.c)),85),279)},f.bc=function(){return ae(this.c,141)?new L6(this,c(this.c,141)):ae(this.c,136)?new m_(this,c(this.c,136)):new Ox(this,this.c)},M(kt,"AbstractSortedKeySortedSetMultimap",1707),E(2088,1,{2025:1}),f.Fb=function(t){return OHt(this,t)},f.Hb=function(){var t;return cwe((t=this.g,t||(this.g=new KN(this))))},f.Ib=function(){var t;return vet((t=this.f,t||(this.f=new Wge(this))))},M(kt,"AbstractTable",2088),E(676,Eh,Pl,KN),f.$b=function(){iIe()},f.Gc=function(t){var n,i;return ae(t,471)?(n=c(t,694),i=c(fv(dHe(this.a),y0(n.c.e,n.b)),93),!!i&&Iwe(i.vc(),new _m(y0(n.c.c,n.a),B4(n.c,n.b,n.a)))):!1},f.Jc=function(){return JNt(this.a)},f.Kc=function(t){var n,i;return ae(t,471)?(n=c(t,694),i=c(fv(dHe(this.a),y0(n.c.e,n.b)),93),!!i&&wBt(i.vc(),new _m(y0(n.c.c,n.a),B4(n.c,n.b,n.a)))):!1},f.gc=function(){return pqe(this.a)},f.Lc=function(){return WDt(this.a)},M(kt,"AbstractTable/CellSet",676),E(2004,32,Tv,HK),f.$b=function(){iIe()},f.Gc=function(t){return dQt(this.a,t)},f.Jc=function(){return VNt(this.a)},f.gc=function(){return pqe(this.a)},f.Lc=function(){return NGe(this.a)},M(kt,"AbstractTable/Values",2004),E(1679,1678,mb),M(kt,"ArrayListMultimapGwtSerializationDependencies",1679),E(510,1679,mb,SY,vbe),f.hc=function(){return new Gc(this.a)},f.a=0,M(kt,"ArrayListMultimap",510),E(675,2088,{675:1,2025:1,3:1},Btt),M(kt,"ArrayTable",675),E(2e3,394,ej,eze),f.Xb=function(t){return new rwe(this.a,t)},M(kt,"ArrayTable/1",2e3),E(2001,1,{},QK),f.rd=function(t){return new rwe(this.a,t)},M(kt,"ArrayTable/1methodref$getCell$Type",2001),E(2089,1,{694:1}),f.Fb=function(t){var n;return t===this?!0:ae(t,471)?(n=c(t,694),k1(y0(this.c.e,this.b),y0(n.c.e,n.b))&&k1(y0(this.c.c,this.a),y0(n.c.c,n.a))&&k1(B4(this.c,this.b,this.a),B4(n.c,n.b,n.a))):!1},f.Hb=function(){return GH(Y(K(Br,1),Pt,1,5,[y0(this.c.e,this.b),y0(this.c.c,this.a),B4(this.c,this.b,this.a)]))},f.Ib=function(){return"("+y0(this.c.e,this.b)+","+y0(this.c.c,this.a)+")="+B4(this.c,this.b,this.a)},M(kt,"Tables/AbstractCell",2089),E(471,2089,{471:1,694:1},rwe),f.a=0,f.b=0,f.d=0,M(kt,"ArrayTable/2",471),E(2003,1,{},wz),f.rd=function(t){return VJe(this.a,t)},M(kt,"ArrayTable/2methodref$getValue$Type",2003),E(2002,394,ej,tze),f.Xb=function(t){return VJe(this.a,t)},M(kt,"ArrayTable/3",2002),E(2056,2044,gw),f.$b=function(){fq(this.kc())},f.vc=function(){return new tT(this)},f.lc=function(){return new JHe(this.kc(),this.gc())},M(kt,"Maps/IteratorBasedAbstractMap",2056),E(834,2056,gw),f.$b=function(){throw V(new zn)},f._b=function(t){return vIe(this.c,t)},f.kc=function(){return new nze(this,this.c.b.c.gc())},f.lc=function(){return YZ(this.c.b.c.gc(),16,new U5(this))},f.xc=function(t){var n;return n=c(VT(this.c,t),15),n?this.td(n.a):null},f.dc=function(){return this.c.b.c.dc()},f.ec=function(){return cee(this.c)},f.yc=function(t,n){var i;if(i=c(VT(this.c,t),15),!i)throw V(new qt(this.sd()+" "+t+" not in "+cee(this.c)));return this.ud(i.a,n)},f.Ac=function(t){throw V(new zn)},f.gc=function(){return this.c.b.c.gc()},M(kt,"ArrayTable/ArrayMap",834),E(1999,1,{},U5),f.rd=function(t){return gHe(this.a,t)},M(kt,"ArrayTable/ArrayMap/0methodref$getEntry$Type",1999),E(1997,359,cre,WIe),f.jd=function(){return u7t(this.a,this.b)},f.kd=function(){return this.a.td(this.b)},f.ld=function(t){return this.a.ud(this.b,t)},f.b=0,M(kt,"ArrayTable/ArrayMap/1",1997),E(1998,394,ej,nze),f.Xb=function(t){return gHe(this.a,t)},M(kt,"ArrayTable/ArrayMap/2",1998),E(1996,834,gw,iHe),f.sd=function(){return"Column"},f.td=function(t){return B4(this.b,this.a,t)},f.ud=function(t,n){return _We(this.b,this.a,t,n)},f.a=0,M(kt,"ArrayTable/Row",1996),E(835,834,gw,Wge),f.td=function(t){return new iHe(this.a,t)},f.yc=function(t,n){return c(n,93),_9t()},f.ud=function(t,n){return c(n,93),D9t()},f.sd=function(){return"Row"},M(kt,"ArrayTable/RowMap",835),E(1138,1,Gu,KIe),f.yd=function(t){return(this.a.wd()&-262&t)!=0},f.wd=function(){return this.a.wd()&-262},f.xd=function(){return this.a.xd()},f.Nb=function(t){this.a.Nb(new ZIe(t,this.b))},f.zd=function(t){return this.a.zd(new YIe(t,this.b))},M(kt,"CollectSpliterators/1",1138),E(1139,1,ln,YIe),f.Ad=function(t){this.a.Ad(this.b.Kb(t))},M(kt,"CollectSpliterators/1/lambda$0$Type",1139),E(1140,1,ln,ZIe),f.Ad=function(t){this.a.Ad(this.b.Kb(t))},M(kt,"CollectSpliterators/1/lambda$1$Type",1140),E(1135,1,Gu,OFe),f.yd=function(t){return((16464|this.b)&t)!=0},f.wd=function(){return 16464|this.b},f.xd=function(){return this.a.xd()},f.Nb=function(t){this.a.Oe(new tRe(t,this.c))},f.zd=function(t){return this.a.Pe(new eRe(t,this.c))},f.b=0,M(kt,"CollectSpliterators/1WithCharacteristics",1135),E(1136,1,jL,eRe),f.Bd=function(t){this.a.Ad(this.b.rd(t))},M(kt,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1136),E(1137,1,jL,tRe),f.Bd=function(t){this.a.Ad(this.b.rd(t))},M(kt,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1137),E(1131,1,Gu),f.yd=function(t){return(this.a&t)!=0},f.wd=function(){return this.a},f.xd=function(){return this.e&&(this.b=zge(this.b,this.e.xd())),zge(this.b,0)},f.Nb=function(t){this.e&&(this.e.Nb(t),this.e=null),this.c.Nb(new nRe(this,t)),this.b=0},f.zd=function(t){for(;;){if(this.e&&this.e.zd(t))return $T(this.b,TL)&&(this.b=Ha(this.b,1)),!0;if(this.e=null,!this.c.zd(new e_(this)))return!1}},f.a=0,f.b=0,M(kt,"CollectSpliterators/FlatMapSpliterator",1131),E(1133,1,ln,e_),f.Ad=function(t){tEt(this.a,t)},M(kt,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1133),E(1134,1,ln,nRe),f.Ad=function(t){TNt(this.a,this.b,t)},M(kt,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1134),E(1132,1131,Gu,nUe),M(kt,"CollectSpliterators/FlatMapSpliteratorOfObject",1132),E(257,1,lre),f.Dd=function(t){return this.Cd(c(t,257))},f.Cd=function(t){var n;return t==(mY(),Joe)?1:t==(bY(),Uoe)?-1:(n=(lq(),MD(this.a,t.a)),n!=0?n:(Bt(),ae(this,517)==ae(t,517)?0:ae(this,517)?1:-1))},f.Gd=function(){return this.a},f.Fb=function(t){return A2e(this,t)},M(kt,"Cut",257),E(1810,257,lre,BPe),f.Cd=function(t){return t==this?0:1},f.Ed=function(t){throw V(new i1e)},f.Fd=function(t){t.a+="+∞)"},f.Gd=function(){throw V(new co($ot))},f.Hb=function(){return kg(),m2e(this)},f.Hd=function(t){return!1},f.Ib=function(){return"+∞"};var Uoe;M(kt,"Cut/AboveAll",1810),E(517,257,{257:1,517:1,3:1,34:1},oze),f.Ed=function(t){Ec((t.a+="(",t),this.a)},f.Fd=function(t){Xp(Ec(t,this.a),93)},f.Hb=function(){return~zi(this.a)},f.Hd=function(t){return lq(),MD(this.a,t)<0},f.Ib=function(){return"/"+this.a+"\\"},M(kt,"Cut/AboveValue",517),E(1809,257,lre,$Pe),f.Cd=function(t){return t==this?0:-1},f.Ed=function(t){t.a+="(-∞"},f.Fd=function(t){throw V(new i1e)},f.Gd=function(){throw V(new co($ot))},f.Hb=function(){return kg(),m2e(this)},f.Hd=function(t){return!0},f.Ib=function(){return"-∞"};var Joe;M(kt,"Cut/BelowAll",1809),E(1811,257,lre,cze),f.Ed=function(t){Ec((t.a+="[",t),this.a)},f.Fd=function(t){Xp(Ec(t,this.a),41)},f.Hb=function(){return zi(this.a)},f.Hd=function(t){return lq(),MD(this.a,t)<=0},f.Ib=function(){return"\\"+this.a+"/"},M(kt,"Cut/BelowValue",1811),E(539,1,Hd),f.Ic=function(t){vs(this,t)},f.Ib=function(){return IBt(c(Pq(this,"use Optional.orNull() instead of Optional.or(null)"),22).Jc())},M(kt,"FluentIterable",539),E(438,539,Hd,FT),f.Jc=function(){return new Ht(Xt(this.a.Jc(),new F))},M(kt,"FluentIterable/2",438),E(36,1,{},F),f.Kb=function(t){return c(t,22).Jc()},f.Fb=function(t){return this===t},M(kt,"FluentIterable/2/0methodref$iterator$Type",36),E(1051,539,Hd,hBe),f.Jc=function(){return Pd(this)},M(kt,"FluentIterable/3",1051),E(721,394,ej,e0e),f.Xb=function(t){return this.a[t].Jc()},M(kt,"FluentIterable/3/1",721),E(2049,1,{}),f.Ib=function(){return To(this.Id().b)},M(kt,"ForwardingObject",2049),E(2050,2049,Bot),f.Id=function(){return this.Jd()},f.Ic=function(t){vs(this,t)},f.Lc=function(){return new Et(this,0)},f.Mc=function(){return new Tt(null,this.Lc())},f.Ec=function(t){return this.Jd(),SIe()},f.Fc=function(t){return this.Jd(),jIe()},f.$b=function(){this.Jd(),TIe()},f.Gc=function(t){return this.Jd().Gc(t)},f.Hc=function(t){return this.Jd().Hc(t)},f.dc=function(){return this.Jd().b.dc()},f.Jc=function(){return this.Jd().Jc()},f.Kc=function(t){return this.Jd(),EIe()},f.gc=function(){return this.Jd().b.gc()},f.Nc=function(){return this.Jd().Nc()},f.Oc=function(t){return this.Jd().Oc(t)},M(kt,"ForwardingCollection",2050),E(2057,32,Lxe),f.Jc=function(){return this.Md()},f.Ec=function(t){throw V(new zn)},f.Fc=function(t){throw V(new zn)},f.Kd=function(){var t;return t=this.c,t||(this.c=this.Ld())},f.$b=function(){throw V(new zn)},f.Gc=function(t){return t!=null&&hv(this,t,!1)},f.Ld=function(){switch(this.gc()){case 0:return hq(),Woe;case 1:return new IZ(Bn(this.Md().Pb()));default:return new epe(this,this.Nc())}},f.Kc=function(t){throw V(new zn)},M(kt,"ImmutableCollection",2057),E(1271,2057,Lxe,xz),f.Jc=function(){return z4(new cx(this.a.b.Jc()))},f.Gc=function(t){return t!=null&&wT(this.a,t)},f.Hc=function(t){return q1e(this.a,t)},f.dc=function(){return this.a.b.dc()},f.Md=function(){return z4(new cx(this.a.b.Jc()))},f.gc=function(){return this.a.b.gc()},f.Nc=function(){return this.a.b.Nc()},f.Oc=function(t){return H1e(this.a,t)},f.Ib=function(){return To(this.a.b)},M(kt,"ForwardingImmutableCollection",1271),E(312,2057,tj),f.Jc=function(){return this.Md()},f.cd=function(){return this.Nd(0)},f.dd=function(t){return this.Nd(t)},f.gd=function(t){sb(this,t)},f.Lc=function(){return new Et(this,16)},f.hd=function(t,n){return this.Od(t,n)},f._c=function(t,n){throw V(new zn)},f.ad=function(t,n){throw V(new zn)},f.Kd=function(){return this},f.Fb=function(t){return TJt(this,t)},f.Hb=function(){return QRt(this)},f.bd=function(t){return t==null?-1:tqt(this,t)},f.Md=function(){return this.Nd(0)},f.Nd=function(t){return AZ(this,t)},f.ed=function(t){throw V(new zn)},f.fd=function(t,n){throw V(new zn)},f.Od=function(t,n){var i;return YH((i=new dRe(this),new Yh(i,t,n)))},M(kt,"ImmutableList",312),E(2084,312,tj),f.Jc=function(){return z4(this.Pd().Jc())},f.hd=function(t,n){return YH(this.Pd().hd(t,n))},f.Gc=function(t){return t!=null&&this.Pd().Gc(t)},f.Hc=function(t){return this.Pd().Hc(t)},f.Fb=function(t){return xi(this.Pd(),t)},f.Xb=function(t){return y0(this,t)},f.Hb=function(){return zi(this.Pd())},f.bd=function(t){return this.Pd().bd(t)},f.dc=function(){return this.Pd().dc()},f.Md=function(){return z4(this.Pd().Jc())},f.gc=function(){return this.Pd().gc()},f.Od=function(t,n){return YH(this.Pd().hd(t,n))},f.Nc=function(){return this.Pd().Oc(ke(Br,Pt,1,this.Pd().gc(),5,1))},f.Oc=function(t){return this.Pd().Oc(t)},f.Ib=function(){return To(this.Pd())},M(kt,"ForwardingImmutableList",2084),E(724,1,nj),f.vc=function(){return Gp(this)},f.wc=function(t){AD(this,t)},f.ec=function(){return cee(this)},f.Bc=function(){return this.Td()},f.$b=function(){throw V(new zn)},f._b=function(t){return this.xc(t)!=null},f.uc=function(t){return this.Td().Gc(t)},f.Rd=function(){return new J5(this)},f.Sd=function(){return new b6(this)},f.Fb=function(t){return I$t(this,t)},f.Hb=function(){return Gp(this).Hb()},f.dc=function(){return this.gc()==0},f.yc=function(t,n){return L9t()},f.Ac=function(t){throw V(new zn)},f.Ib=function(){return cGt(this)},f.Td=function(){return this.e?this.e:this.e=this.Sd()},f.c=null,f.d=null,f.e=null,M(kt,"ImmutableMap",724),E(725,724,nj),f._b=function(t){return vIe(this,t)},f.uc=function(t){return mRe(this.b,t)},f.Qd=function(){return bKe(new ZN(this))},f.Rd=function(){return bKe(IHe(this.b))},f.Sd=function(){return new xz(PHe(this.b))},f.Fb=function(t){return wRe(this.b,t)},f.xc=function(t){return VT(this,t)},f.Hb=function(){return zi(this.b.c)},f.dc=function(){return this.b.c.dc()},f.gc=function(){return this.b.c.gc()},f.Ib=function(){return To(this.b.c)},M(kt,"ForwardingImmutableMap",725),E(2051,2050,ure),f.Id=function(){return this.Ud()},f.Jd=function(){return this.Ud()},f.Lc=function(){return new Et(this,1)},f.Fb=function(t){return t===this||this.Ud().Fb(t)},f.Hb=function(){return this.Ud().Hb()},M(kt,"ForwardingSet",2051),E(1066,2051,ure,ZN),f.Id=function(){return Z6(this.a.b)},f.Jd=function(){return Z6(this.a.b)},f.Gc=function(t){if(ae(t,45)&&c(t,45).jd()==null)return!1;try{return bRe(Z6(this.a.b),t)}catch(n){if(n=kr(n),ae(n,214))return!1;throw V(n)}},f.Ud=function(){return Z6(this.a.b)},f.Oc=function(t){var n,i;return n=OQe(Z6(this.a.b),t),Z6(this.a.b).b.gc()<n.length&&(i=n,mr(i,Z6(this.a.b).b.gc(),null)),n},M(kt,"ForwardingImmutableMap/1",1066),E(2058,2057,uk),f.Jc=function(){return this.Md()},f.Lc=function(){return new Et(this,1)},f.Fb=function(t){return Sve(this,t)},f.Hb=function(){return JXe(this)},M(kt,"ImmutableSet",2058),E(716,2058,uk),f.Jc=function(){return z4(new cx(this.a.b.Jc()))},f.Gc=function(t){return t!=null&&wT(this.a,t)},f.Hc=function(t){return q1e(this.a,t)},f.Hb=function(){return zi(this.a.b)},f.dc=function(){return this.a.b.dc()},f.Md=function(){return z4(new cx(this.a.b.Jc()))},f.gc=function(){return this.a.b.gc()},f.Nc=function(){return this.a.b.Nc()},f.Oc=function(t){return H1e(this.a,t)},f.Ib=function(){return To(this.a.b)},M(kt,"ForwardingImmutableSet",716),E(2052,2051,zot),f.Id=function(){return this.b},f.Jd=function(){return this.b},f.Ud=function(){return this.b},f.Lc=function(){return new aF(this)},M(kt,"ForwardingSortedSet",2052),E(535,2056,nj,mQ),f.zc=function(t){O7(this,t)},f.Bc=function(){var t;return t=this.d,new SZ(t||(this.d=new Z8(this)))},f.$b=function(){aD(this)},f._b=function(t){return!!x7(this,t,Gn(js(Qd,Id(Gn(js(t==null?0:zi(t),Gd)),15))))},f.uc=function(t){return tXe(this,t)},f.kc=function(){return new fze(this,this)},f.wc=function(t){RQe(this,t)},f.xc=function(t){return Nx(this,t)},f.ec=function(){return new jZ(this)},f.yc=function(t,n){return XQ(this,t,n)},f.Ac=function(t){var n;return n=x7(this,t,Gn(js(Qd,Id(Gn(js(t==null?0:zi(t),Gd)),15)))),n?(Qx(this,n),n.e=null,n.c=null,n.i):null},f.gc=function(){return this.i},f.vd=function(){var t;return t=this.d,new SZ(t||(this.d=new Z8(this)))},f.f=0,f.g=0,f.i=0,M(kt,"HashBiMap",535),E(536,1,ns),f.Nb=function(t){ps(this,t)},f.Ob=function(){return rUe(this)},f.Pb=function(){var t;if(!rUe(this))throw V(new Mo);return t=c(za(this.c),309),this.c=t.c,this.f=t,--this.d,this.Vd(t)},f.Qb=function(){if(this.e.g!=this.b)throw V(new aa);if(!this.f)throw V(new co(Nxe));Qx(this.e,this.f),this.b=this.e.g,this.f=null},f.b=0,f.d=0,f.f=null,M(kt,"HashBiMap/Itr",536),E(1016,536,ns,fze),f.Vd=function(t){return new iRe(this,t)},M(kt,"HashBiMap/1",1016),E(1017,359,cre,iRe),f.jd=function(){return this.a.g},f.kd=function(){return this.a.i},f.ld=function(t){var n,i,r;return i=this.a.i,r=Gn(js(Qd,Id(Gn(js(t==null?0:zi(t),Gd)),15))),r==this.a.f&&(xe(t)===xe(i)||t!=null&&xi(t,i))?t:(DWe(!k7(this.b.a,t,r),t),Qx(this.b.a,this.a),n=new Aq(this.a.g,this.a.a,t,r),oL(this.b.a,n,this.a),this.a.e=null,this.a.c=null,this.b.b=this.b.a.g,this.b.f==this.a&&(this.b.f=n),this.a=n,i)},M(kt,"HashBiMap/1/MapEntry",1017),E(247,359,{359:1,247:1,3:1,45:1},_m),f.jd=function(){return this.g},f.kd=function(){return this.i},f.ld=function(t){throw V(new zn)},M(kt,"ImmutableEntry",247),E(309,247,{359:1,309:1,247:1,3:1,45:1},Aq),f.a=0,f.f=0;var Voe=M(kt,"HashBiMap/BiEntry",309);E(616,2056,nj,Z8),f.zc=function(t){O7(this,t)},f.Bc=function(){return new jZ(this.a)},f.$b=function(){aD(this.a)},f._b=function(t){return tXe(this.a,t)},f.kc=function(){return new hze(this,this.a)},f.wc=function(t){Bn(t),RQe(this.a,new GK(t))},f.xc=function(t){return EH(this,t)},f.ec=function(){return new SZ(this)},f.yc=function(t,n){return DKt(this.a,t,n)},f.Ac=function(t){var n;return n=k7(this.a,t,Gn(js(Qd,Id(Gn(js(t==null?0:zi(t),Gd)),15)))),n?(Qx(this.a,n),n.e=null,n.c=null,n.g):null},f.gc=function(){return this.a.i},f.vd=function(){return new jZ(this.a)},M(kt,"HashBiMap/Inverse",616),E(1013,536,ns,hze),f.Vd=function(t){return new rRe(this,t)},M(kt,"HashBiMap/Inverse/1",1013),E(1014,359,cre,rRe),f.jd=function(){return this.a.i},f.kd=function(){return this.a.g},f.ld=function(t){var n,i,r;return r=this.a.g,n=Gn(js(Qd,Id(Gn(js(t==null?0:zi(t),Gd)),15))),n==this.a.a&&(xe(t)===xe(r)||t!=null&&xi(t,r))?t:(DWe(!x7(this.b.a.a,t,n),t),Qx(this.b.a.a,this.a),i=new Aq(t,n,this.a.i,this.a.f),this.a=i,oL(this.b.a.a,i,null),this.b.b=this.b.a.a.g,r)},M(kt,"HashBiMap/Inverse/1/InverseEntry",1014),E(617,534,Pl,SZ),f.Jc=function(){return new qPe(this.a.a)},f.Kc=function(t){var n;return n=k7(this.a.a,t,Gn(js(Qd,Id(Gn(js(t==null?0:zi(t),Gd)),15)))),n?(Qx(this.a.a,n),!0):!1},M(kt,"HashBiMap/Inverse/InverseKeySet",617),E(1012,536,ns,qPe),f.Vd=function(t){return t.i},M(kt,"HashBiMap/Inverse/InverseKeySet/1",1012),E(1015,1,{},GK),f.Wd=function(t,n){a9t(this.a,t,n)},M(kt,"HashBiMap/Inverse/lambda$0$Type",1015),E(615,534,Pl,jZ),f.Jc=function(){return new HPe(this.a)},f.Kc=function(t){var n;return n=x7(this.a,t,Gn(js(Qd,Id(Gn(js(t==null?0:zi(t),Gd)),15)))),n?(Qx(this.a,n),n.e=null,n.c=null,!0):!1},M(kt,"HashBiMap/KeySet",615),E(1011,536,ns,HPe),f.Vd=function(t){return t.g},M(kt,"HashBiMap/KeySet/1",1011),E(1104,625,mb),M(kt,"HashMultimapGwtSerializationDependencies",1104),E(274,1104,mb,Jm),f.hc=function(){return new Vz(uv(this.a))},f.nd=function(){return new Vz(uv(this.a))},f.a=2,M(kt,"HashMultimap",274),E(2076,312,tj),f.Gc=function(t){return this.Xd().Gc(t)},f.dc=function(){return this.Xd().dc()},f.gc=function(){return this.Xd().gc()},M(kt,"ImmutableAsList",2076),E(2009,725,nj),f.Td=function(){return new n4(this.a)},f.Bc=function(){return new n4(this.a)},f.vd=function(){return new n4(this.a)},M(kt,"ImmutableBiMap",2009),E(2054,1,{}),M(kt,"ImmutableCollection/Builder",2054),E(1027,716,uk,QPe),M(kt,"ImmutableEnumSet",1027),E(971,394,ej,kFe),f.Xb=function(t){return this.a.Xb(t)},M(kt,"ImmutableList/1",971),E(970,2054,{},Wze),M(kt,"ImmutableList/Builder",970),E(620,206,ZS,YN),f.Ob=function(){return this.a.Ob()},f.Pb=function(){return c(this.a.Pb(),45).jd()},M(kt,"ImmutableMap/1",620),E(1046,1,{},R),f.Kb=function(t){return c(t,45).jd()},M(kt,"ImmutableMap/2methodref$getKey$Type",1046),E(1045,1,{},Kze),M(kt,"ImmutableMap/Builder",1045),E(2077,2058,uk),f.Kd=function(){var t;return t=this.b,t||(this.b=new V5(this))},f.Ld=function(){return new epe(this,z7(this,ke(Br,Pt,1,this.gc(),5,1)))},M(kt,"ImmutableSet/CachingAsList",2077),E(2078,2077,uk),f.Jc=function(){var t;return t=Gp(this.a).Md(),new YN(t)},f.Ld=function(){return new V5(this)},f.Ic=function(t){var n,i;for(Bn(t),i=this.gc(),n=0;n<i;n++)t.Ad(c(Gp(this.a).Kd().Xb(n),45).jd())},f.Md=function(){var t;return t=this.b,AZ(t||(this.b=new V5(this)),0)},f.Lc=function(){return YZ(this.gc(),1296,new yz(this))},M(kt,"IndexedImmutableSet",2078),E(1207,2078,uk,J5),f.Jc=function(){var t;return t=Gp(this.a).Md(),new YN(t)},f.Gc=function(t){return this.a._b(t)},f.Ic=function(t){Bn(t),AD(this.a,new vz(t))},f.Md=function(){var t;return t=Gp(this.a).Md(),new YN(t)},f.gc=function(){return this.a.gc()},f.Lc=function(){return V_(Gp(this.a).Lc(),new R)},M(kt,"ImmutableMapKeySet",1207),E(1208,1,{},vz),f.Wd=function(t,n){this.a.Ad(t)},M(kt,"ImmutableMapKeySet/lambda$0$Type",1208),E(1204,2057,Lxe,b6),f.Jc=function(){return new WZ(this)},f.Kd=function(){var t;return t=Gp(this.a).Kd(),new lRe(this,t)},f.Gc=function(t){return t!=null&&kHt(new WZ(this),t)},f.Md=function(){return new WZ(this)},f.gc=function(){return this.a.gc()},f.Lc=function(){return V_(Gp(this.a).Lc(),new q)},M(kt,"ImmutableMapValues",1204),E(1205,1,{},q),f.Kb=function(t){return c(t,45).kd()},M(kt,"ImmutableMapValues/0methodref$getValue$Type",1205),E(635,206,ZS,WZ),f.Ob=function(){return this.a.Ob()},f.Pb=function(){return c(this.a.Pb(),45).kd()},M(kt,"ImmutableMapValues/1",635),E(1206,2076,tj,lRe),f.Xd=function(){return this.a},f.Xb=function(t){return c(this.b.Xb(t),45).kd()},M(kt,"ImmutableMapValues/2",1206),E(1209,1,{},yz),f.rd=function(t){return vHe(this.a,t)},M(kt,"IndexedImmutableSet/0methodref$get$Type",1209),E(636,2076,tj,V5),f.Xd=function(){return this.a},f.Xb=function(t){return vHe(this.a,t)},f.gc=function(){return this.a.a.gc()},M(kt,"IndexedImmutableSet/1",636),E(1047,539,Hd,ZFe),f.Ic=function(t){Bn(t),this.b.Ic(new sRe(this.a,t))},f.Jc=function(){return Rge(this)},M(kt,"Iterables/4",1047),E(1048,1,ln,sRe),f.Ad=function(t){I8t(this.b,this.a,t)},M(kt,"Iterables/4/lambda$0$Type",1048),E(1049,539,Hd,eqe),f.Ic=function(t){Bn(t),vs(this.a,new cRe(t,this.b))},f.Jc=function(){return Xt(new on(this.a),this.b)},M(kt,"Iterables/5",1049),E(1050,1,ln,cRe),f.Ad=function(t){this.a.Ad(kBe(t))},M(kt,"Iterables/5/lambda$0$Type",1050),E(1068,206,ZS,kz),f.Ob=function(){return this.a.Ob()},f.Pb=function(){return this.a.Pb()},M(kt,"Iterators/1",1068),E(1069,709,ZS,oRe),f.Yb=function(){for(var t;this.b.Ob();)if(t=this.b.Pb(),this.a.Lb(t))return t;return this.e=2,null},M(kt,"Iterators/5",1069),E(486,1,ns),f.Nb=function(t){ps(this,t)},f.Ob=function(){return this.b.Ob()},f.Pb=function(){return this.Yd(this.b.Pb())},f.Qb=function(){this.b.Qb()},M(kt,"TransformedIterator",486),E(1070,486,ns,uze),f.Yd=function(t){return this.a.Kb(t)},M(kt,"Iterators/6",1070),E(1067,394,ej,tqe),f.Xb=function(t){return this.a[t]};var xft;M(kt,"Iterators/ArrayItr",1067),E(35,1,{35:1,51:1},Ht),f.Nb=function(t){ps(this,t)},f.Ob=function(){return hn(this)},f.Pb=function(){return rn(this)},f.Qb=function(){if(!this.c)throw V(new co(Nxe));this.c.Qb(),this.c=null},M(kt,"Iterators/ConcatenatedIterator",35),E(23,1,{3:1,34:1,23:1}),f.Dd=function(t){return WPe(this,c(t,23))},f.Fb=function(t){return this===t},f.Hb=function(){return Rm(this)},f.Ib=function(){return NZ(this)},f.g=0;var Tn=M(Vo,"Enum",23);E(541,23,{541:1,3:1,34:1,23:1,51:1},UBe),f.Nb=function(t){ps(this,t)},f.Ob=function(){return!1},f.Pb=function(){throw V(new Mo)},f.Qb=function(){Q6(!1)};var Xoe,kft=vn(kt,"Iterators/EmptyModifiableIterator",541,Tn,GAt,f7t),Oft;E(727,206,ZS,v6),f.Ob=function(){return!this.a},f.Pb=function(){if(this.a)throw V(new Mo);return this.a=!0,this.b},f.a=!1,M(kt,"Iterators/SingletonIterator",727),E(1894,625,mb),M(kt,"LinkedHashMultimapGwtSerializationDependencies",1894),E(1895,1894,mb,wKe),f.hc=function(){return new MZ(uv(this.b))},f.$b=function(){jH(this),u_(this.a,this.a)},f.nd=function(){return new MZ(uv(this.b))},f.ic=function(t){return new oKe(this,t,this.b)},f.kc=function(){return new Fpe(this)},f.lc=function(){var t;return new Et((t=this.g,c(t||(this.g=new y1e(this)),24)),17)},f.ec=function(){var t;return t=this.i,t||(this.i=new Ox(this,this.c))},f.nc=function(){return new k1e(new Fpe(this))},f.oc=function(){var t;return V_(new Et((t=this.g,c(t||(this.g=new y1e(this)),24)),17),new X)},f.b=2,M(kt,"LinkedHashMultimap",1895),E(1898,1,{},X),f.Kb=function(t){return c(t,45).kd()},M(kt,"LinkedHashMultimap/0methodref$getValue$Type",1898),E(826,1,ns,Fpe),f.Nb=function(t){ps(this,t)},f.Pb=function(){return FRt(this)},f.Ob=function(){return this.a!=this.b.a},f.Qb=function(){Q6(!!this.c),IGe(this.b,this.c.g,this.c.i),this.c=null},M(kt,"LinkedHashMultimap/1",826),E(229,247,{359:1,247:1,229:1,600:1,3:1,45:1},Kpe),f.Zd=function(){return c(za(this.f),600)},f.$d=function(t){this.c=t},f._d=function(t){this.f=t},f.d=0;var Sft=M(kt,"LinkedHashMultimap/ValueEntry",229);E(1896,2047,{600:1,22:1,32:1,18:1,24:1},oKe),f.Ec=function(t){var n,i,r,o,a;for(a=Gn(js(Qd,Id(Gn(js(t==null?0:zi(t),Gd)),15))),n=a&this.b.length-1,o=this.b[n],i=o;i;i=i.a)if(i.d==a&&k1(i.i,t))return!1;return r=new Kpe(this.c,t,a,o),lIe(this.d,r),r.f=this,this.d=r,u_(c(za(this.g.a.b),229),r),u_(r,this.g.a),this.b[n]=r,++this.f,++this.e,vHt(this),!0},f.$b=function(){var t,n;for(x_(this.b,null),this.f=0,t=this.a;t!=this;t=t.Zd())n=c(t,229),u_(c(za(n.b),229),c(za(n.e),229));this.a=this,this.d=this,++this.e},f.Gc=function(t){var n,i;for(i=Gn(js(Qd,Id(Gn(js(t==null?0:zi(t),Gd)),15))),n=this.b[i&this.b.length-1];n;n=n.a)if(n.d==i&&k1(n.i,t))return!0;return!1},f.Ic=function(t){var n;for(Bn(t),n=this.a;n!=this;n=n.Zd())t.Ad(c(n,229).i)},f.Zd=function(){return this.a},f.Jc=function(){return new MHe(this)},f.Kc=function(t){return ait(this,t)},f.$d=function(t){this.d=t},f._d=function(t){this.a=t},f.gc=function(){return this.f},f.e=0,f.f=0,M(kt,"LinkedHashMultimap/ValueSet",1896),E(1897,1,ns,MHe),f.Nb=function(t){ps(this,t)},f.Ob=function(){return bpe(this),this.b!=this.c},f.Pb=function(){var t,n;if(bpe(this),this.b==this.c)throw V(new Mo);return t=c(this.b,229),n=t.i,this.d=t,this.b=c(za(t.f),600),n},f.Qb=function(){bpe(this),Q6(!!this.d),ait(this.c,this.d.i),this.a=this.c.e,this.d=null},f.a=0,M(kt,"LinkedHashMultimap/ValueSet/1",1897),E(774,2063,mb,uBe),f.Zb=function(){var t;return t=this.f,t||(this.f=new ege(this))},f.Fb=function(t){return Yte(this,t)},f.cc=function(t){return new AY(this,t)},f.fc=function(t){return tme(this,t)},f.$b=function(){sHe(this)},f._b=function(t){return pRe(this,t)},f.ac=function(){return new ege(this)},f.bc=function(){return new eT(this)},f.qc=function(t){return new AY(this,t)},f.dc=function(){return!this.a},f.rc=function(t){return tme(this,t)},f.gc=function(){return this.d},f.c=0,f.d=0,M(kt,"LinkedListMultimap",774),E(56,32,ij),f.gd=function(t){sb(this,t)},f.Lc=function(){return new Et(this,16)},f._c=function(t,n){throw V(new wg("Add not supported on this list"))},f.Ec=function(t){return this._c(this.gc(),t),!0},f.ad=function(t,n){var i,r,o;for(zt(n),i=!1,o=n.Jc();o.Ob();)r=o.Pb(),this._c(t++,r),i=!0;return i},f.$b=function(){this.ae(0,this.gc())},f.Fb=function(t){return oye(this,t)},f.Hb=function(){return pwe(this)},f.bd=function(t){return jXe(this,t)},f.Jc=function(){return new oT(this)},f.cd=function(){return this.dd(0)},f.dd=function(t){return new os(this,t)},f.ed=function(t){throw V(new wg("Remove not supported on this list"))},f.ae=function(t,n){var i,r;for(r=this.dd(t),i=t;i<n;++i)r.Pb(),r.Qb()},f.fd=function(t,n){throw V(new wg("Set not supported on this list"))},f.hd=function(t,n){return new Yh(this,t,n)},f.j=0,M(On,"AbstractList",56),E(2041,56,ij),f._c=function(t,n){z6(this,t,n)},f.ad=function(t,n){return uKe(this,t,n)},f.Xb=function(t){return bc(this,t)},f.Jc=function(){return this.dd(0)},f.ed=function(t){return Wne(this,t)},f.fd=function(t,n){var i,r;i=this.dd(t);try{return r=i.Pb(),i.Wb(n),r}catch(o){throw o=kr(o),ae(o,113)?V(new qc("Can't set element "+t)):V(o)}},M(On,"AbstractSequentialList",2041),E(643,2041,ij,AY),f.dd=function(t){return lze(this,t)},f.gc=function(){var t;return t=c(Ut(this.a.b,this.b),263),t?t.a:0},M(kt,"LinkedListMultimap/1",643),E(1292,2047,Pl,eT),f.Gc=function(t){return pRe(this.a,t)},f.Jc=function(){return new KXe(this.a)},f.Kc=function(t){return!tme(this.a,t).a.dc()},f.gc=function(){return vT(this.a.b)},M(kt,"LinkedListMultimap/1KeySetImpl",1292),E(1291,1,ns,KXe),f.Nb=function(t){ps(this,t)},f.Ob=function(){return mpe(this),!!this.c},f.Pb=function(){if(mpe(this),!this.c)throw V(new Mo);this.a=this.c,Er(this.d,this.a.a);do this.c=this.c.b;while(this.c&&!Er(this.d,this.c.a));return this.a.a},f.Qb=function(){mpe(this),Q6(!!this.a),fq(new mte(this.e,this.a.a)),this.a=null,this.b=this.e.c},f.b=0,M(kt,"LinkedListMultimap/DistinctKeyIterator",1291),E(263,1,{263:1},obe),f.a=0,M(kt,"LinkedListMultimap/KeyList",263),E(501,359,{359:1,501:1,45:1},uRe),f.jd=function(){return this.a},f.kd=function(){return this.f},f.ld=function(t){var n;return n=this.f,this.f=t,n},M(kt,"LinkedListMultimap/Node",501),E(562,1,qd,mte,gtt),f.Nb=function(t){ps(this,t)},f.Rb=function(t){this.e=Hye(this.f,this.b,t,this.c),++this.d,this.a=null},f.Ob=function(){return!!this.c},f.Sb=function(){return!!this.e},f.Pb=function(){return vme(this)},f.Tb=function(){return this.d},f.Ub=function(){return _Ve(this)},f.Vb=function(){return this.d-1},f.Qb=function(){Q6(!!this.a),this.a!=this.c?(this.e=this.a.e,--this.d):this.c=this.a.c,SVt(this.f,this.a),this.a=null},f.Wb=function(t){Yge(!!this.a),this.a.f=t},f.d=0,M(kt,"LinkedListMultimap/ValueForKeyIterator",562),E(1023,56,ij),f._c=function(t,n){this.a._c(t,n)},f.ad=function(t,n){return this.a.ad(t,n)},f.Gc=function(t){return this.a.Gc(t)},f.Xb=function(t){return this.a.Xb(t)},f.ed=function(t){return this.a.ed(t)},f.fd=function(t,n){return this.a.fd(t,n)},f.gc=function(){return this.a.gc()},M(kt,"Lists/AbstractListWrapper",1023),E(Ga,1023,qot),M(kt,"Lists/RandomAccessListWrapper",Ga),E(1026,Ga,qot,dRe),f.dd=function(t){return this.a.dd(t)},M(kt,"Lists/1",1026),E(437,56,{437:1,22:1,32:1,56:1,18:1,16:1},F1e),f._c=function(t,n){this.a._c(X6(this,t),n)},f.$b=function(){this.a.$b()},f.Xb=function(t){return this.a.Xb(zpe(this,t))},f.Jc=function(){return hGe(this,0)},f.dd=function(t){return hGe(this,t)},f.ed=function(t){return this.a.ed(zpe(this,t))},f.ae=function(t,n){(HGe(t,n,this.a.gc()),ju(this.a.hd(X6(this,n),X6(this,t)))).$b()},f.fd=function(t,n){return this.a.fd(zpe(this,t),n)},f.gc=function(){return this.a.gc()},f.hd=function(t,n){return HGe(t,n,this.a.gc()),ju(this.a.hd(X6(this,n),X6(this,t)))},M(kt,"Lists/ReverseList",437),E(1022,437,{437:1,22:1,32:1,56:1,18:1,16:1,59:1},GPe),M(kt,"Lists/RandomAccessReverseList",1022),E(1025,1,qd,aRe),f.Nb=function(t){ps(this,t)},f.Rb=function(t){this.c.Rb(t),this.c.Ub(),this.a=!1},f.Ob=function(){return this.c.Sb()},f.Sb=function(){return this.c.Ob()},f.Pb=function(){if(!this.c.Sb())throw V(new Mo);return this.a=!0,this.c.Ub()},f.Tb=function(){return X6(this.b,this.c.Tb())},f.Ub=function(){if(!this.c.Ob())throw V(new Mo);return this.a=!0,this.c.Pb()},f.Vb=function(){return X6(this.b,this.c.Tb())-1},f.Qb=function(){Q6(this.a),this.c.Qb(),this.a=!1},f.Wb=function(t){Yge(this.a),this.c.Wb(t)},f.a=!1,M(kt,"Lists/ReverseList/1",1025),E(436,486,ns,dT),f.Yd=function(t){return uF(t)},M(kt,"Maps/1",436),E(708,486,ns,k1e),f.Yd=function(t){return c(t,45).kd()},M(kt,"Maps/2",708),E(967,486,ns,aze),f.Yd=function(t){return new _m(t,yIe(this.a,t))},M(kt,"Maps/3",967),E(964,$1,Pl,tT),f.Ic=function(t){b9t(this.a,t)},f.Jc=function(){return this.a.kc()},f.Pc=function(){return this.a},f.Lc=function(){return this.a.lc()},M(kt,"Maps/IteratorBasedAbstractMap/1",964),E(965,1,{},t_),f.Wd=function(t,n){this.a.Ad(t)},M(kt,"Maps/KeySet/lambda$0$Type",965),E(963,32,Tv,gRe),f.$b=function(){this.a.$b()},f.Gc=function(t){return this.a.uc(t)},f.Ic=function(t){Bn(t),this.a.wc(new JK(t))},f.dc=function(){return this.a.dc()},f.Jc=function(){return new k1e(this.a.vc().Jc())},f.Kc=function(t){var n,i;try{return hv(this,t,!0)}catch(r){if(r=kr(r),ae(r,46)){for(i=this.a.vc().Jc();i.Ob();)if(n=c(i.Pb(),45),k1(t,n.kd()))return this.a.Ac(n.jd()),!0;return!1}else throw V(r)}},f.gc=function(){return this.a.gc()},M(kt,"Maps/Values",963),E(966,1,{},JK),f.Wd=function(t,n){this.a.Ad(n)},M(kt,"Maps/Values/lambda$0$Type",966),E(747,2064,gw,ege),f.xc=function(t){return this.a._b(t)?this.a.cc(t):null},f.Ac=function(t){return this.a._b(t)?this.a.fc(t):null},f.$b=function(){this.a.$b()},f._b=function(t){return this.a._b(t)},f.Dc=function(){return new VK(this)},f.Cc=function(){return this.Dc()},f.dc=function(){return this.a.dc()},f.ec=function(){return this.a.ec()},f.gc=function(){return this.a.ec().gc()},M(kt,"Multimaps/AsMap",747),E(1115,$1,Pl,VK),f.Jc=function(){return PTt(this.a.a.ec(),new UK(this))},f.Pc=function(){return this.a},f.Kc=function(t){var n;return gYe(this,t)?(n=c(za(c(t,45)),45),T9t(this.a,n.jd()),!0):!1},M(kt,"Multimaps/AsMap/EntrySet",1115),E(1119,1,{},UK),f.Kb=function(t){return yIe(this,t)},f.Fb=function(t){return this===t},M(kt,"Multimaps/AsMap/EntrySet/lambda$0$Type",1119),E(544,2066,{544:1,841:1,22:1,32:1,18:1},m6),f.$b=function(){jH(this.a)},f.Gc=function(t){return wIe(this.a,t)},f.Ic=function(t){Bn(t),vs(i7(this.a),new nT(t))},f.Jc=function(){return new dT(i7(this.a).a.kc())},f.gc=function(){return this.a.d},f.Lc=function(){return V_(i7(this.a).Lc(),new J)},M(kt,"Multimaps/Keys",544),E(1117,1,{},J),f.Kb=function(t){return c(t,45).jd()},M(kt,"Multimaps/Keys/0methodref$getKey$Type",1117),E(1116,486,ns,UPe),f.Yd=function(t){return new XK(c(t,45))},M(kt,"Multimaps/Keys/1",1116),E(2067,1,{421:1}),f.Fb=function(t){var n;return ae(t,493)?(n=c(t,421),c(this.a.kd(),18).gc()==c(n.a.kd(),18).gc()&&k1(this.a.jd(),n.a.jd())):!1},f.Hb=function(){var t;return t=this.a.jd(),(t==null?0:zi(t))^c(this.a.kd(),18).gc()},f.Ib=function(){var t,n;return n=GT(this.a.jd()),t=c(this.a.kd(),18).gc(),t==1?n:n+" x "+t},M(kt,"Multisets/AbstractEntry",2067),E(493,2067,{493:1,421:1},XK),M(kt,"Multimaps/Keys/1/1",493),E(1118,1,ln,nT),f.Ad=function(t){this.a.Ad(c(t,45).jd())},M(kt,"Multimaps/Keys/lambda$1$Type",1118),E(1121,1,ln,ee),f.Ad=function(t){eAt(c(t,421))},M(kt,"Multiset/lambda$0$Type",1121),E(748,1,ln,Oz),f.Ad=function(t){LIt(this.a,c(t,421))},M(kt,"Multiset/lambda$1$Type",748),E(1122,1,{},te),M(kt,"Multisets/0methodref$add$Type",1122),E(749,1,{},ie),f.Kb=function(t){return nLt(c(t,421))},M(kt,"Multisets/lambda$1$Type",749),E(2085,1,OL),M(kt,"RangeGwtSerializationDependencies",2085),E(511,2085,{181:1,511:1,3:1,48:1},k2e),f.Lb=function(t){return Qqe(this,c(t,34))},f.Mb=function(t){return Qqe(this,c(t,34))},f.Fb=function(t){var n;return ae(t,511)?(n=c(t,511),A2e(this.a,n.a)&&A2e(this.b,n.b)):!1},f.Hb=function(){return this.a.Hb()*31+this.b.Hb()},f.Ib=function(){return hUe(this.a,this.b)},M(kt,"Range",511),E(649,2076,tj,epe),f.dd=function(t){return AZ(this.b,t)},f.Xd=function(){return this.a},f.Xb=function(t){return y0(this.b,t)},f.Nd=function(t){return AZ(this.b,t)},M(kt,"RegularImmutableAsList",649),E(652,2084,tj,Gee),f.Pd=function(){return this.a};var Woe;M(kt,"RegularImmutableList",652),E(540,725,nj,W1e,K1e);var jft;M(kt,"RegularImmutableMap",540),E(726,716,uk,Y1e);var yke;M(kt,"RegularImmutableSet",726),E(2053,Eh,Pl),f.Jc=function(){return new ebe(this.a,this.b)},f.Ec=function(t){throw V(new zn)},f.Fc=function(t){throw V(new zn)},f.$b=function(){throw V(new zn)},f.Kc=function(t){throw V(new zn)},M(kt,"Sets/SetView",2053),E(968,2053,Pl,hRe),f.Jc=function(){return new ebe(this.a,this.b)},f.Gc=function(t){return tee(this.a,t)&&this.b.Gc(t)},f.Hc=function(t){return ID(this.a,t)&&this.b.Hc(t)},f.dc=function(){return YYe(this.b,this.a)},f.gc=function(){return ND(this)},f.Mc=function(){return mi(new Tt(null,new Et(this.a,1)),new Sz(this.b))},M(kt,"Sets/2",968),E(969,1,Jn,Sz),f.Mb=function(t){return this.a.Gc(t)},M(kt,"Sets/2/0methodref$contains$Type",969),E(710,709,ZS,ebe),f.Yb=function(){for(var t;Bge(this.a);)if(t=d7(this.a),this.c.Gc(t))return t;return this.e=2,null},M(kt,"Sets/2/1",710),E(613,2052,{613:1,3:1,22:1,18:1,279:1,24:1,85:1},NQe),f.Id=function(){return this.b},f.Jd=function(){return this.b},f.Ud=function(){return this.b},f.Ic=function(t){this.a.Ic(t)},f.Mc=function(){return this.a.Mc()},M(kt,"Sets/UnmodifiableNavigableSet",613),E(2010,2009,nj,RHe),f.Td=function(){return new n4(this.a)},f.Bc=function(){return new n4(this.a)},f.vd=function(){return new n4(this.a)},M(kt,"SingletonImmutableBiMap",2010),E(653,2084,tj,IZ),f.Pd=function(){return this.a},M(kt,"SingletonImmutableList",653),E(360,2058,uk,n4),f.Jc=function(){return new v6(this.a)},f.Gc=function(t){return xi(this.a,t)},f.Md=function(){return new v6(this.a)},f.gc=function(){return 1},M(kt,"SingletonImmutableSet",360),E(1129,1,{},_),f.Kb=function(t){return c(t,163)},M(kt,"Streams/lambda$0$Type",1129),E(1130,1,uG,jz),f.be=function(){NHt(this.a)},M(kt,"Streams/lambda$1$Type",1130),E(1708,1707,mb,dQe),f.Zb=function(){var t;return t=this.f,c(c(t||(this.f=ae(this.c,141)?new JT(this,c(this.c,141)):ae(this.c,136)?new F_(this,c(this.c,136)):new P6(this,this.c)),136),141)},f.hc=function(){return new xg(this.b)},f.nd=function(){return new xg(this.b)},f.ec=function(){var t;return t=this.i,c(c(t||(this.i=ae(this.c,141)?new L6(this,c(this.c,141)):ae(this.c,136)?new m_(this,c(this.c,136)):new Ox(this,this.c)),85),279)},f.ac=function(){return ae(this.c,141)?new JT(this,c(this.c,141)):ae(this.c,136)?new F_(this,c(this.c,136)):new P6(this,this.c)},f.ic=function(t){return t==null&&this.a.Le(t,t),new xg(this.b)},M(kt,"TreeMultimap",1708),E(81,1,{3:1,81:1}),f.ce=function(t){return new Error(t)},f.de=function(){return this.e},f.ee=function(){var t,n,i;for(i=(this.k==null&&(this.k=ke(Koe,Fe,81,0,0,1)),this.k),n=ke(Br,Pt,1,i.length,5,1),t=0;t<i.length;t++)n[t]=i[t].e;return n},f.fe=function(){return this.f},f.ge=function(){return this.g},f.he=function(){x9t(this,GDt(this.ce($q(this,this.g)))),XLe(this)},f.Ib=function(){return $q(this,this.ge())},f.e=Hot,f.i=!1,f.n=!0;var Koe=M(Vo,"Throwable",81);E(102,81,{3:1,102:1,81:1}),M(Vo,"Exception",102),E(63,102,B1,$p,Ao),M(Vo,"RuntimeException",63),E(603,63,B1),M(Vo,"JsException",603),E(865,603,B1),M(CL,"JavaScriptExceptionBase",865),E(477,865,{477:1,3:1,102:1,63:1,81:1},mKe),f.ge=function(){return QHt(this),this.c},f.ie=function(){return xe(this.b)===xe(xke)?null:this.b};var xke;M(Ixe,"JavaScriptException",477);var Tft=M(Ixe,"JavaScriptObject$",0),Yoe;E(2026,1,{}),M(Ixe,"Scheduler",2026);var pU=0,Eft=0,bU=-1;E(892,2026,{},oe);var kke;M(CL,"SchedulerImpl",892);var Zoe;E(2037,1,{}),M(CL,"StackTraceCreator/Collector",2037),E(866,2037,{},se),f.je=function(t){var n={},i=[];t[hre]=i;for(var r=arguments.callee.caller;r;){var o=(iS(),r.name||(r.name=GIt(r.toString())));i.push(o);var a=":"+o,d=n[a];if(d){var b,v;for(b=0,v=d.length;b<v;b++)if(d[b]===r)return}(d||(n[a]=[])).push(r),r=r.caller}},f.ke=function(t){var n,i,r,o;for(r=(iS(),t&&t[hre]?t[hre]:[]),i=r.length,o=ke(Ike,Fe,325,i,0,1),n=0;n<i;n++)o[n]=new Eee(r[n],null,-1);return o},M(CL,"StackTraceCreator/CollectorLegacy",866),E(2038,2037,{}),f.je=function(t){},f.le=function(t,n,i,r){return new Eee(n,t+"@"+r,i<0?-1:i)},f.ke=function(t){var n,i,r,o,a,d;if(o=bqt(t),a=ke(Ike,Fe,325,0,0,1),n=0,r=o.length,r==0)return a;for(d=Ust(this,o[0]),St(d.d,fre)||(a[n++]=d),i=1;i<r;i++)a[n++]=Ust(this,o[i]);return a},M(CL,"StackTraceCreator/CollectorModern",2038),E(867,2038,{},ge),f.le=function(t,n,i,r){return new Eee(n,t,-1)},M(CL,"StackTraceCreator/CollectorModernNoSourceMap",867),E(1055,1,{}),M($xe,Uot,1055),E(622,1055,{622:1},pHe);var Oke;M(Nre,Uot,622),E(2080,1,{}),M($xe,Jot,2080),E(2081,2080,{}),M(Nre,Jot,2081),E(1101,1,{},Ne);var qE;M(Nre,"LocaleInfo",1101),E(2006,1,{},qe),f.a=0,M(Nre,"TimeZone",2006),E(1268,2081,{},Le),M("com.google.gwt.i18n.client.impl.cldr","DateTimeFormatInfoImpl",1268),E(439,1,{439:1},UFe),f.a=!1,f.b=0,M($xe,"DateTimeFormat/PatternPart",439),E(208,1,Vot,Yz,uwe,T0e),f.Dd=function(t){return FDt(this,c(t,208))},f.Fb=function(t){return ae(t,208)&&RT(tc(this.q.getTime()),tc(c(t,208).q.getTime()))},f.Hb=function(){var t;return t=tc(this.q.getTime()),Gn(Uee(t,Jp(t,32)))},f.Ib=function(){var t,n,i;return i=-this.q.getTimezoneOffset(),t=(i>=0?"+":"")+(i/60|0),n=$F(p.Math.abs(i)%60),(Det(),zft)[this.q.getDay()]+" "+Fft[this.q.getMonth()]+" "+$F(this.q.getDate())+" "+$F(this.q.getHours())+":"+$F(this.q.getMinutes())+":"+$F(this.q.getSeconds())+" GMT"+t+n+" "+this.q.getFullYear()};var mU=M(On,"Date",208);E(1994,208,Vot,KZe),f.a=!1,f.b=0,f.c=0,f.d=0,f.e=0,f.f=0,f.g=!1,f.i=0,f.j=0,f.k=0,f.n=0,f.o=0,f.p=0,M("com.google.gwt.i18n.shared.impl","DateRecord",1994),E(2043,1,{}),f.ne=function(){return null},f.oe=function(){return null},f.pe=function(){return null},f.qe=function(){return null},f.re=function(){return null},M(fk,"JSONValue",2043),E(142,2043,{142:1},bg,n_),f.Fb=function(t){return ae(t,142)?kbe(this.a,c(t,142).a):!1},f.me=function(){return e9t},f.Hb=function(){return cbe(this.a)},f.ne=function(){return this},f.Ib=function(){var t,n,i;for(i=new Lu("["),n=0,t=this.a.length;n<t;n++)n>0&&(i.a+=","),Ec(i,rv(this,n));return i.a+="]",i.a},M(fk,"JSONArray",142),E(482,2043,{482:1},iT),f.me=function(){return t9t},f.oe=function(){return this},f.Ib=function(){return Bt(),""+this.a},f.a=!1;var Cft,Mft;M(fk,"JSONBoolean",482),E(990,63,B1,JPe),M(fk,"JSONException",990),E(1028,2043,{},Ke),f.me=function(){return s9t},f.Ib=function(){return ml};var Aft;M(fk,"JSONNull",1028),E(266,2043,{266:1},w6),f.Fb=function(t){return ae(t,266)?this.a==c(t,266).a:!1},f.me=function(){return n9t},f.Hb=function(){return m4(this.a)},f.pe=function(){return this},f.Ib=function(){return this.a+""},f.a=0,M(fk,"JSONNumber",266),E(150,2043,{150:1},c4,W5),f.Fb=function(t){return ae(t,150)?kbe(this.a,c(t,150).a):!1},f.me=function(){return i9t},f.Hb=function(){return cbe(this.a)},f.qe=function(){return this},f.Ib=function(){var t,n,i,r,o,a,d;for(d=new Lu("{"),t=!0,a=Dte(this,ke(tt,Fe,2,0,6,1)),i=a,r=0,o=i.length;r<o;++r)n=i[r],t?t=!1:d.a+=Xc,Zn(d,ent(n)),d.a+=":",Ec(d,S1(this,n));return d.a+="}",d.a},M(fk,"JSONObject",150),E(601,Eh,Pl,NY),f.Gc=function(t){return Yr(t)&&F9t(this.a,qn(t))},f.Jc=function(){return new oT(new Qo(this.b))},f.gc=function(){return this.b.length},M(fk,"JSONObject/1",601);var ece;E(213,2043,{213:1},W2),f.Fb=function(t){return ae(t,213)?St(this.a,c(t,213).a):!1},f.me=function(){return r9t},f.Hb=function(){return _g(this.a)},f.re=function(){return this},f.Ib=function(){return ent(this.a)},M(fk,"JSONString",213);var V0,Ske,Nft,jke,Tke;E(2039,1,{524:1}),M(Bxe,"OutputStream",2039),E(2040,2039,{524:1}),M(Bxe,"FilterOutputStream",2040),E(868,2040,{524:1},pe),M(Bxe,"PrintStream",868),E(423,1,{475:1}),f.Ib=function(){return this.a},M(Vo,"AbstractStringBuilder",423),E(530,63,B1,Qz),M(Vo,"ArithmeticException",530),E(99,63,fG,r1e,qc),M(Vo,"IndexOutOfBoundsException",99),E(650,99,fG,ePe,C1e),M(Vo,"ArrayIndexOutOfBoundsException",650),E(529,63,B1,lY,eIe),M(Vo,"ArrayStoreException",529),E(298,81,Xot,xY),M(Vo,"Error",298),E(202,298,Xot,i1e,zbe),M(Vo,"AssertionError",202),wft={3:1,476:1,34:1};var X0,Dj,or=M(Vo,"Boolean",476);E(245,1,{3:1,245:1});var Eke;M(Vo,"Number",245),E(224,245,{3:1,224:1,34:1,245:1},cr),f.Dd=function(t){return $9t(this,c(t,224))},f.se=function(){return this.a},f.Fb=function(t){return ae(t,224)&&c(t,224).a==this.a},f.Hb=function(){return this.a},f.Ib=function(){return""+this.a},f.a=0;var xk=M(Vo,"Byte",224),Cke;E(183,1,{3:1,183:1,34:1},qo),f.Dd=function(t){return B9t(this,c(t,183))},f.Fb=function(t){return ae(t,183)&&c(t,183).a==this.a},f.Hb=function(){return this.a},f.Ib=function(){return String.fromCharCode(this.a)},f.a=0;var Mke,HE=M(Vo,"Character",183),Ake;E(214,63,{3:1,214:1,102:1,63:1,81:1},WLe,C6),M(Vo,"ClassCastException",214),vft={3:1,34:1,347:1,245:1};var jr=M(Vo,"Double",347);E(165,245,{3:1,34:1,165:1,245:1},qs,o1e),f.Dd=function(t){return X8t(this,c(t,165))},f.se=function(){return this.a},f.Fb=function(t){return ae(t,165)&&mFe(this.a,c(t,165).a)},f.Hb=function(){return ks(this.a)},f.Ib=function(){return""+this.a},f.a=0;var Lj=M(Vo,"Float",165);E(33,63,{3:1,102:1,33:1,63:1,81:1},a_,qt,gKe),M(Vo,"IllegalArgumentException",33),E(73,63,B1,El,co),M(Vo,"IllegalStateException",73),E(15,245,{3:1,34:1,15:1,245:1},Ho),f.Dd=function(t){return Dge(this,c(t,15))},f.se=function(){return this.a},f.Fb=function(t){return ae(t,15)&&c(t,15).a==this.a},f.Hb=function(){return this.a},f.Ib=function(){return""+this.a},f.a=0;var Pr=M(Vo,"Integer",15),Nke,_ft;E(192,245,{3:1,34:1,192:1,245:1},Sm),f.Dd=function(t){return W8t(this,c(t,192))},f.se=function(){return tb(this.a)},f.Fb=function(t){return ae(t,192)&&RT(c(t,192).a,this.a)},f.Hb=function(){return U7t(this.a)},f.Ib=function(){return""+YT(this.a)},f.a=0;var Tw=M(Vo,"Long",192),_ke;E(2119,1,{}),E(1891,63,B1,tIe),M(Vo,"NegativeArraySizeException",1891),E(174,603,{3:1,102:1,174:1,63:1,81:1},i4,l4),f.ce=function(t){return new TypeError(t)},M(Vo,"NullPointerException",174);var Dke,tce,Dft,Lke;E(133,33,{3:1,102:1,33:1,133:1,63:1,81:1},Vh),M(Vo,"NumberFormatException",133),E(193,245,{3:1,34:1,245:1,193:1},$t),f.Dd=function(t){return z9t(this,c(t,193))},f.se=function(){return this.a},f.Fb=function(t){return ae(t,193)&&c(t,193).a==this.a},f.Hb=function(){return this.a},f.Ib=function(){return""+this.a},f.a=0;var Ew=M(Vo,"Short",193),Pke;E(325,1,{3:1,325:1},Eee),f.Fb=function(t){var n;return ae(t,325)?(n=c(t,325),this.c==n.c&&this.d==n.d&&this.a==n.a&&this.b==n.b):!1},f.Hb=function(){return GH(Y(K(Br,1),Pt,1,5,[$e(this.c),this.a,this.d,this.b]))},f.Ib=function(){return this.a+"."+this.d+"("+(this.b!=null?this.b:"Unknown Source")+(this.c>=0?":"+this.c:"")+")"},f.c=0;var Ike=M(Vo,"StackTraceElement",325);yft={3:1,475:1,34:1,2:1};var tt=M(Vo,Pxe,2);E(112,423,{475:1},vg,bT,Ba),M(Vo,"StringBuffer",112),E(106,423,{475:1},g0,a4,Lu),M(Vo,"StringBuilder",106),E(698,99,fG,E1e),M(Vo,"StringIndexOutOfBoundsException",698),E(2124,1,{});var Lft;E(46,63,{3:1,102:1,63:1,81:1,46:1},zn,wg),M(Vo,"UnsupportedOperationException",46),E(249,245,{3:1,34:1,245:1,249:1},GD,R1e),f.Dd=function(t){return $rt(this,c(t,249))},f.se=function(){return mv(dst(this))},f.Fb=function(t){var n;return this===t?!0:ae(t,249)?(n=c(t,249),this.e==n.e&&$rt(this,n)==0):!1},f.Hb=function(){var t;return this.b!=0?this.b:this.a<54?(t=tc(this.f),this.b=Gn(Zr(t,-1)),this.b=33*this.b+Gn(Zr(Bm(t,32),-1)),this.b=17*this.b+ks(this.e),this.b):(this.b=17*TKe(this.c)+ks(this.e),this.b)},f.Ib=function(){return dst(this)},f.a=0,f.b=0,f.d=0,f.e=0,f.f=0;var Pft,Cb,Rke,$ke,Bke,zke,Fke,qke,nce=M("java.math","BigDecimal",249);E(92,245,{3:1,34:1,245:1,92:1},T1,zGe,Vp,RYe,x0),f.Dd=function(t){return MYe(this,c(t,92))},f.se=function(){return mv(rre(this,0))},f.Fb=function(t){return t2e(this,t)},f.Hb=function(){return TKe(this)},f.Ib=function(){return rre(this,0)},f.b=-2,f.c=0,f.d=0,f.e=0;var Ift,wU,Rft,ice,vU,QE,o3=M("java.math","BigInteger",92),$ft,Bft,kk,GE;E(487,2044,gw),f.$b=function(){cc(this)},f._b=function(t){return Cc(this,t)},f.uc=function(t){return aKe(this,t,this.i)||aKe(this,t,this.f)},f.vc=function(){return new Rp(this)},f.xc=function(t){return Ut(this,t)},f.yc=function(t,n){return ci(this,t,n)},f.Ac=function(t){return $4(this,t)},f.gc=function(){return vT(this)},f.g=0,M(On,"AbstractHashMap",487),E(307,Eh,Pl,Rp),f.$b=function(){this.a.$b()},f.Gc=function(t){return QGe(this,t)},f.Jc=function(){return new lv(this.a)},f.Kc=function(t){var n;return QGe(this,t)?(n=c(t,45).jd(),this.a.Ac(n),!0):!1},f.gc=function(){return this.a.gc()},M(On,"AbstractHashMap/EntrySet",307),E(308,1,ns,lv),f.Nb=function(t){ps(this,t)},f.Pb=function(){return _x(this)},f.Ob=function(){return this.b},f.Qb=function(){yVe(this)},f.b=!1,f.d=0,M(On,"AbstractHashMap/EntrySetIterator",308),E(422,1,ns,oT),f.Nb=function(t){ps(this,t)},f.Ob=function(){return RY(this)},f.Pb=function(){return ibe(this)},f.Qb=function(){nu(this)},f.b=0,f.c=-1,M(On,"AbstractList/IteratorImpl",422),E(97,422,qd,os),f.Qb=function(){nu(this)},f.Rb=function(t){H2(this,t)},f.Sb=function(){return this.b>0},f.Tb=function(){return this.b},f.Ub=function(){return gn(this.b>0),this.a.Xb(this.c=--this.b)},f.Vb=function(){return this.b-1},f.Wb=function(t){B2(this.c!=-1),this.a.fd(this.c,t)},M(On,"AbstractList/ListIteratorImpl",97),E(217,56,ij,Yh),f._c=function(t,n){ev(t,this.b),this.c._c(this.a+t,n),++this.b},f.Xb=function(t){return ht(t,this.b),this.c.Xb(this.a+t)},f.ed=function(t){var n;return ht(t,this.b),n=this.c.ed(this.a+t),--this.b,n},f.fd=function(t,n){return ht(t,this.b),this.c.fd(this.a+t,n)},f.gc=function(){return this.b},f.a=0,f.b=0,M(On,"AbstractList/SubList",217),E(234,Eh,Pl,an),f.$b=function(){this.a.$b()},f.Gc=function(t){return this.a._b(t)},f.Jc=function(){var t;return t=this.a.vc().Jc(),new yr(t)},f.Kc=function(t){return this.a._b(t)?(this.a.Ac(t),!0):!1},f.gc=function(){return this.a.gc()},M(On,"AbstractMap/1",234),E(533,1,ns,yr),f.Nb=function(t){ps(this,t)},f.Ob=function(){return this.a.Ob()},f.Pb=function(){var t;return t=c(this.a.Pb(),45),t.jd()},f.Qb=function(){this.a.Qb()},M(On,"AbstractMap/1/1",533),E(232,32,Tv,m1),f.$b=function(){this.a.$b()},f.Gc=function(t){return this.a.uc(t)},f.Jc=function(){var t;return t=this.a.vc().Jc(),new N2(t)},f.gc=function(){return this.a.gc()},M(On,"AbstractMap/2",232),E(305,1,ns,N2),f.Nb=function(t){ps(this,t)},f.Ob=function(){return this.a.Ob()},f.Pb=function(){var t;return t=c(this.a.Pb(),45),t.kd()},f.Qb=function(){this.a.Qb()},M(On,"AbstractMap/2/1",305),E(483,1,{483:1,45:1}),f.Fb=function(t){var n;return ae(t,45)?(n=c(t,45),gc(this.d,n.jd())&&gc(this.e,n.kd())):!1},f.jd=function(){return this.d},f.kd=function(){return this.e},f.Hb=function(){return vx(this.d)^vx(this.e)},f.ld=function(t){return M0e(this,t)},f.Ib=function(){return this.d+"="+this.e},M(On,"AbstractMap/AbstractEntry",483),E(392,483,{483:1,392:1,45:1},lF),M(On,"AbstractMap/SimpleEntry",392),E(2061,1,Dre),f.Fb=function(t){var n;return ae(t,45)?(n=c(t,45),gc(this.jd(),n.jd())&&gc(this.kd(),n.kd())):!1},f.Hb=function(){return vx(this.jd())^vx(this.kd())},f.Ib=function(){return this.jd()+"="+this.kd()},M(On,Iot,2061),E(2069,2044,_xe),f.Vc=function(t){return CY(this.Ce(t))},f.tc=function(t){return HUe(this,t)},f._b=function(t){return C0e(this,t)},f.vc=function(){return new iY(this)},f.Rc=function(){return rHe(this.Ee())},f.Wc=function(t){return CY(this.Fe(t))},f.xc=function(t){var n;return n=t,No(this.De(n))},f.Yc=function(t){return CY(this.Ge(t))},f.ec=function(){return new ANe(this)},f.Tc=function(){return rHe(this.He())},f.Zc=function(t){return CY(this.Ie(t))},M(On,"AbstractNavigableMap",2069),E(627,Eh,Pl,iY),f.Gc=function(t){return ae(t,45)&&HUe(this.b,c(t,45))},f.Jc=function(){return this.b.Be()},f.Kc=function(t){var n;return ae(t,45)?(n=c(t,45),this.b.Je(n)):!1},f.gc=function(){return this.b.gc()},M(On,"AbstractNavigableMap/EntrySet",627),E(1127,Eh,Dxe,ANe),f.Lc=function(){return new aF(this)},f.$b=function(){this.a.$b()},f.Gc=function(t){return C0e(this.a,t)},f.Jc=function(){var t;return t=this.a.vc().b.Be(),new NNe(t)},f.Kc=function(t){return C0e(this.a,t)?(this.a.Ac(t),!0):!1},f.gc=function(){return this.a.gc()},M(On,"AbstractNavigableMap/NavigableKeySet",1127),E(1128,1,ns,NNe),f.Nb=function(t){ps(this,t)},f.Ob=function(){return RY(this.a.a)},f.Pb=function(){var t;return t=kze(this.a),t.jd()},f.Qb=function(){EFe(this.a)},M(On,"AbstractNavigableMap/NavigableKeySet/1",1128),E(2082,32,Tv),f.Ec=function(t){return T4(BS(this,t),sj),!0},f.Fc=function(t){return zt(t),W_(t!=this,"Can't add a queue to itself"),Ss(this,t)},f.$b=function(){for(;kte(this)!=null;);},M(On,"AbstractQueue",2082),E(315,32,{4:1,22:1,32:1,18:1},xx,VGe),f.Ec=function(t){return Abe(this,t),!0},f.$b=function(){Ibe(this)},f.Gc=function(t){return EWe(new o7(this),t)},f.dc=function(){return pT(this)},f.Jc=function(){return new o7(this)},f.Kc=function(t){return L_t(new o7(this),t)},f.gc=function(){return this.c-this.b&this.a.length-1},f.Lc=function(){return new Et(this,272)},f.Oc=function(t){var n;return n=this.c-this.b&this.a.length-1,t.length<n&&(t=Uz(new Array(n),t)),qXe(this,t,n),t.length>n&&mr(t,n,null),t},f.b=0,f.c=0,M(On,"ArrayDeque",315),E(451,1,ns,o7),f.Nb=function(t){ps(this,t)},f.Ob=function(){return this.a!=this.b},f.Pb=function(){return JH(this)},f.Qb=function(){TXe(this)},f.a=0,f.b=0,f.c=-1,M(On,"ArrayDeque/IteratorImpl",451),E(13,56,Yot,He,Gc,ql),f._c=function(t,n){Qp(this,t,n)},f.Ec=function(t){return Qe(this,t)},f.ad=function(t,n){return Twe(this,t,n)},f.Fc=function(t){return Or(this,t)},f.$b=function(){_2(this.c,0)},f.Gc=function(t){return Lo(this,t,0)!=-1},f.Ic=function(t){Uc(this,t)},f.Xb=function(t){return Je(this,t)},f.bd=function(t){return Lo(this,t,0)},f.dc=function(){return this.c.length==0},f.Jc=function(){return new U(this)},f.ed=function(t){return Cg(this,t)},f.Kc=function(t){return dl(this,t)},f.ae=function(t,n){aGe(this,t,n)},f.fd=function(t,n){return ku(this,t,n)},f.gc=function(){return this.c.length},f.gd=function(t){Rr(this,t)},f.Nc=function(){return oq(this.c)},f.Oc=function(t){return xh(this,t)};var Gnn=M(On,"ArrayList",13);E(7,1,ns,U),f.Nb=function(t){ps(this,t)},f.Ob=function(){return _o(this)},f.Pb=function(){return G(this)},f.Qb=function(){t7(this)},f.a=0,f.b=-1,M(On,"ArrayList/1",7),E(2091,p.Function,{},Re),f.Ke=function(t,n){return Ci(t,n)},E(124,56,Zot,Qo),f.Gc=function(t){return jXe(this,t)!=-1},f.Ic=function(t){var n,i,r,o;for(zt(t),i=this.a,r=0,o=i.length;r<o;++r)n=i[r],t.Ad(n)},f.Xb=function(t){return xqe(this,t)},f.fd=function(t,n){var i;return i=(ht(t,this.a.length),this.a[t]),mr(this.a,t,n),i},f.gc=function(){return this.a.length},f.gd=function(t){eee(this.a,this.a.length,t)},f.Nc=function(){return QYe(this,ke(Br,Pt,1,this.a.length,5,1))},f.Oc=function(t){return QYe(this,t)},M(On,"Arrays/ArrayList",124);var $s,Vd,yU;E(945,56,Zot,Ee),f.Gc=function(t){return!1},f.Xb=function(t){return _ge(t)},f.Jc=function(){return Mt(),I6(),Pj},f.cd=function(){return Mt(),I6(),Pj},f.gc=function(){return 0},M(On,"Collections/EmptyList",945),E(946,1,qd,Te),f.Nb=function(t){ps(this,t)},f.Rb=function(t){throw V(new zn)},f.Ob=function(){return!1},f.Sb=function(){return!1},f.Pb=function(){throw V(new Mo)},f.Tb=function(){return 0},f.Ub=function(){throw V(new Mo)},f.Vb=function(){return-1},f.Qb=function(){throw V(new El)},f.Wb=function(t){throw V(new El)};var Pj;M(On,"Collections/EmptyListIterator",946),E(948,2044,nj,ye),f._b=function(t){return!1},f.uc=function(t){return!1},f.vc=function(){return Mt(),yU},f.xc=function(t){return null},f.ec=function(){return Mt(),yU},f.gc=function(){return 0},f.Bc=function(){return Mt(),$s},M(On,"Collections/EmptyMap",948),E(947,Eh,uk,he),f.Gc=function(t){return!1},f.Jc=function(){return Mt(),I6(),Pj},f.gc=function(){return 0},M(On,"Collections/EmptySet",947),E(604,56,{3:1,22:1,32:1,56:1,18:1,16:1},nY),f.Gc=function(t){return gc(this.a,t)},f.Xb=function(t){return ht(t,1),this.a},f.gc=function(){return 1},M(On,"Collections/SingletonList",604),E(379,1,Bot,k6),f.Ic=function(t){vs(this,t)},f.Lc=function(){return new Et(this,0)},f.Mc=function(){return new Tt(null,this.Lc())},f.Ec=function(t){return SIe()},f.Fc=function(t){return jIe()},f.$b=function(){TIe()},f.Gc=function(t){return wT(this,t)},f.Hc=function(t){return q1e(this,t)},f.dc=function(){return this.b.dc()},f.Jc=function(){return new cx(this.b.Jc())},f.Kc=function(t){return EIe()},f.gc=function(){return this.b.gc()},f.Nc=function(){return this.b.Nc()},f.Oc=function(t){return H1e(this,t)},f.Ib=function(){return To(this.b)},M(On,"Collections/UnmodifiableCollection",379),E(326,1,ns,cx),f.Nb=function(t){ps(this,t)},f.Ob=function(){return this.b.Ob()},f.Pb=function(){return this.b.Pb()},f.Qb=function(){CIe()},M(On,"Collections/UnmodifiableCollectionIterator",326),E(532,379,ect,UF),f.Lc=function(){return new Et(this,16)},f._c=function(t,n){throw V(new zn)},f.ad=function(t,n){throw V(new zn)},f.Fb=function(t){return xi(this.a,t)},f.Xb=function(t){return this.a.Xb(t)},f.Hb=function(){return zi(this.a)},f.bd=function(t){return this.a.bd(t)},f.dc=function(){return this.a.dc()},f.cd=function(){return new r0e(this.a.dd(0))},f.dd=function(t){return new r0e(this.a.dd(t))},f.ed=function(t){throw V(new zn)},f.fd=function(t,n){throw V(new zn)},f.gd=function(t){throw V(new zn)},f.hd=function(t,n){return new UF(this.a.hd(t,n))},M(On,"Collections/UnmodifiableList",532),E(701,326,qd,r0e),f.Qb=function(){CIe()},f.Rb=function(t){throw V(new zn)},f.Sb=function(){return this.a.Sb()},f.Tb=function(){return this.a.Tb()},f.Ub=function(){return this.a.Ub()},f.Vb=function(){return this.a.Vb()},f.Wb=function(t){throw V(new zn)},M(On,"Collections/UnmodifiableListIterator",701),E(605,1,gw,rY),f.wc=function(t){AD(this,t)},f.$b=function(){throw V(new zn)},f._b=function(t){return this.c._b(t)},f.uc=function(t){return mRe(this,t)},f.vc=function(){return Z6(this)},f.Fb=function(t){return wRe(this,t)},f.xc=function(t){return this.c.xc(t)},f.Hb=function(){return zi(this.c)},f.dc=function(){return this.c.dc()},f.ec=function(){return IHe(this)},f.yc=function(t,n){throw V(new zn)},f.Ac=function(t){throw V(new zn)},f.gc=function(){return this.c.gc()},f.Ib=function(){return To(this.c)},f.Bc=function(){return PHe(this)},M(On,"Collections/UnmodifiableMap",605),E(391,379,ure,M6),f.Lc=function(){return new Et(this,1)},f.Fb=function(t){return xi(this.b,t)},f.Hb=function(){return zi(this.b)},M(On,"Collections/UnmodifiableSet",391),E(949,391,ure,rIe),f.Gc=function(t){return bRe(this,t)},f.Hc=function(t){return this.b.Hc(t)},f.Jc=function(){var t;return t=this.b.Jc(),new _Ne(t)},f.Nc=function(){var t;return t=this.b.Nc(),bUe(t,t.length),t},f.Oc=function(t){return OQe(this,t)},M(On,"Collections/UnmodifiableMap/UnmodifiableEntrySet",949),E(950,1,ns,_Ne),f.Nb=function(t){ps(this,t)},f.Pb=function(){return new Bde(c(this.a.Pb(),45))},f.Ob=function(){return this.a.Ob()},f.Qb=function(){throw V(new zn)},M(On,"Collections/UnmodifiableMap/UnmodifiableEntrySet/1",950),E(699,1,Dre,Bde),f.Fb=function(t){return this.a.Fb(t)},f.jd=function(){return this.a.jd()},f.kd=function(){return this.a.kd()},f.Hb=function(){return this.a.Hb()},f.ld=function(t){throw V(new zn)},f.Ib=function(){return To(this.a)},M(On,"Collections/UnmodifiableMap/UnmodifiableEntrySet/UnmodifiableEntry",699),E(606,532,{22:1,18:1,16:1,59:1},TY),M(On,"Collections/UnmodifiableRandomAccessList",606),E(700,391,zot,s0e),f.Lc=function(){return new aF(this)},f.Fb=function(t){return xi(this.a,t)},f.Hb=function(){return zi(this.a)},M(On,"Collections/UnmodifiableSortedSet",700),E(850,1,Lre,ft),f.Le=function(t,n){var i;return i=mUe(c(t,12),c(n,12)),i!=0?i:Crt(c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(On,"Comparator/lambda$0$Type",850);var Hke,rce,Qke;E(763,1,Lre,Ce),f.Le=function(t,n){return cAt(c(t,34),c(n,34))},f.Fb=function(t){return this===t},f.Me=function(){return Qm(),Qke},M(On,"Comparators/NaturalOrderComparator",763),E(1203,1,Lre,We),f.Le=function(t,n){return lAt(c(t,34),c(n,34))},f.Fb=function(t){return this===t},f.Me=function(){return Qm(),rce},M(On,"Comparators/ReverseNaturalOrderComparator",1203),E(55,1,Lre,Vn),f.Fb=function(t){return this===t},f.Le=function(t,n){return this.a.Le(n,t)},f.Me=function(){return this.a},M(On,"Comparators/ReversedComparator",55),E(179,63,B1,aa),M(On,"ConcurrentModificationException",179);var zft,Fft;E(1364,1,_L,gt),f.Ne=function(t){vYe(this,t)},f.Ib=function(){return"DoubleSummaryStatistics[count = "+YT(this.a)+", avg = "+(PY(this.a,0)?Xbe(this)/tb(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+Xbe(this)+"]"},f.a=0,f.b=Gr,f.c=sr,f.d=0,f.e=0,f.f=0,M(On,"DoubleSummaryStatistics",1364),E(1864,63,B1,KLe),M(On,"EmptyStackException",1864),E(453,2044,gw,P7),f.yc=function(t,n){return E0e(this,t,n)},f.$b=function(){EHe(this)},f._b=function(t){return LRe(this,t)},f.uc=function(t){var n,i;for(i=new h4(this.a);i.a<i.c.a.length;)if(n=d7(i),gc(t,this.b[n.g]))return!0;return!1},f.vc=function(){return new LNe(this)},f.xc=function(t){return eo(this,t)},f.Ac=function(t){return ybe(this,t)},f.gc=function(){return this.a.c},M(On,"EnumMap",453),E(1304,Eh,Pl,LNe),f.$b=function(){EHe(this.a)},f.Gc=function(t){return GGe(this,t)},f.Jc=function(){return new yqe(this.a)},f.Kc=function(t){var n;return GGe(this,t)?(n=c(t,45).jd(),ybe(this.a,n),!0):!1},f.gc=function(){return this.a.a.c},M(On,"EnumMap/EntrySet",1304),E(1305,1,ns,yqe),f.Nb=function(t){ps(this,t)},f.Pb=function(){return this.b=d7(this.a),new IRe(this.c,this.b)},f.Ob=function(){return Bge(this.a)},f.Qb=function(){B2(!!this.b),ybe(this.c,this.b),this.b=null},M(On,"EnumMap/EntrySetIterator",1305),E(1306,2061,Dre,IRe),f.jd=function(){return this.a},f.kd=function(){return this.b.b[this.a.g]},f.ld=function(t){return ppe(this.b.b,this.a.g,t)},M(On,"EnumMap/MapEntry",1306),E(185,Eh,{22:1,32:1,18:1,185:1,24:1});var qft=M(On,"EnumSet",185);E(167,185,{22:1,32:1,18:1,185:1,167:1,24:1},da),f.Ec=function(t){return yf(this,c(t,23))},f.Gc=function(t){return tee(this,t)},f.Jc=function(){return new h4(this)},f.Kc=function(t){return _qe(this,t)},f.gc=function(){return this.c},f.c=0,M(On,"EnumSet/EnumSetImpl",167),E(357,1,ns,h4),f.Nb=function(t){ps(this,t)},f.Pb=function(){return d7(this)},f.Ob=function(){return Bge(this)},f.Qb=function(){B2(this.b!=-1),mr(this.c.b,this.b,null),--this.c.c,this.b=-1},f.a=-1,f.b=-1,M(On,"EnumSet/EnumSetImpl/IteratorImpl",357),E(44,487,Wx,yn,f4,mBe),f.ze=function(t,n){return xe(t)===xe(n)||t!=null&&xi(t,n)},f.Ae=function(t){var n;return t==null?0:(n=zi(t),n|0)},M(On,"HashMap",44),E(47,Eh,zxe,Tr,Vz,G2),f.Ec=function(t){return Er(this,t)},f.$b=function(){this.a.$b()},f.Gc=function(t){return $a(this,t)},f.dc=function(){return this.a.gc()==0},f.Jc=function(){return this.a.ec().Jc()},f.Kc=function(t){return Jge(this,t)},f.gc=function(){return this.a.gc()};var Unn=M(On,"HashSet",47);E(1884,1,jL,Ot),f.Bd=function(t){pWe(this,t)},f.Ib=function(){return"IntSummaryStatistics[count = "+YT(this.a)+", avg = "+(PY(this.a,0)?tb(this.d)/tb(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+YT(this.d)+"]"},f.a=0,f.b=ls,f.c=gi,f.d=0,M(On,"IntSummaryStatistics",1884),E(1054,1,Hd,wBe),f.Ic=function(t){vs(this,t)},f.Jc=function(){return new sme(this)},f.c=0,M(On,"InternalHashCodeMap",1054),E(723,1,ns,sme),f.Nb=function(t){ps(this,t)},f.Pb=function(){return this.d=this.a[this.c++],this.d},f.Ob=function(){var t;return this.c<this.a.length?!0:(t=this.b.next(),t.done?!1:(this.a=t.value[1],this.c=0,!0))},f.Qb=function(){Zve(this.e,this.d.jd()),this.c!=0&&--this.c},f.c=0,f.d=null,M(On,"InternalHashCodeMap/1",723);var Hft;E(1052,1,Hd,vBe),f.Ic=function(t){vs(this,t)},f.Jc=function(){return new Bbe(this)},f.c=0,f.d=0,M(On,"InternalStringMap",1052),E(722,1,ns,Bbe),f.Nb=function(t){ps(this,t)},f.Pb=function(){return this.c=this.a,this.a=this.b.next(),new AFe(this.d,this.c,this.d.d)},f.Ob=function(){return!this.a.done},f.Qb=function(){wWe(this.d,this.c.value[0])},M(On,"InternalStringMap/1",722),E(1053,2061,Dre,AFe),f.jd=function(){return this.b.value[0]},f.kd=function(){return this.a.d!=this.c?TT(this.a,this.b.value[0]):this.b.value[1]},f.ld=function(t){return nw(this.a,this.b.value[0],t)},f.c=0,M(On,"InternalStringMap/2",1053),E(226,44,Wx,E0,rme),f.$b=function(){Zze(this)},f._b=function(t){return PRe(this,t)},f.uc=function(t){var n;for(n=this.d.a;n!=this.d;){if(gc(n.e,t))return!0;n=n.a}return!1},f.vc=function(){return new Fde(this)},f.xc=function(t){return vh(this,t)},f.yc=function(t,n){return hb(this,t,n)},f.Ac=function(t){return vVe(this,t)},f.gc=function(){return vT(this.e)},f.c=!1,M(On,"LinkedHashMap",226),E(395,392,{483:1,392:1,395:1,45:1},Sze,npe),M(On,"LinkedHashMap/ChainEntry",395),E(711,Eh,Pl,Fde),f.$b=function(){Zze(this.a)},f.Gc=function(t){return UGe(this,t)},f.Jc=function(){return new qpe(this)},f.Kc=function(t){var n;return UGe(this,t)?(n=c(t,45).jd(),vVe(this.a,n),!0):!1},f.gc=function(){return vT(this.a.e)},M(On,"LinkedHashMap/EntrySet",711),E(712,1,ns,qpe),f.Nb=function(t){ps(this,t)},f.Pb=function(){return OVe(this)},f.Ob=function(){return this.c!=this.d.a.d},f.Qb=function(){B2(!!this.a),HZ(this.d.a.e.g,this.b),fpe(this.a),$4(this.d.a.e,this.a.d),this.b=this.d.a.e.g,this.a=null},f.b=0,M(On,"LinkedHashMap/EntrySet/EntryIterator",712),E(184,47,zxe,Ad,MZ,vpe);var Jnn=M(On,"LinkedHashSet",184);E(66,2041,{3:1,4:1,22:1,32:1,56:1,18:1,66:1,16:1},_i,FZ),f.Ec=function(t){return ei(this,t)},f.$b=function(){xu(this)},f.dd=function(t){return Pn(this,t)},f.gc=function(){return this.b},f.b=0;var Vnn=M(On,"LinkedList",66);E(972,1,qd,_Fe),f.Nb=function(t){ps(this,t)},f.Rb=function(t){Tq(this,t)},f.Ob=function(){return d_(this)},f.Sb=function(){return this.b.b!=this.d.a},f.Pb=function(){return Dn(this)},f.Tb=function(){return this.a},f.Ub=function(){return DGe(this)},f.Vb=function(){return this.a-1},f.Qb=function(){Ste(this)},f.Wb=function(t){B2(!!this.c),this.c.c=t},f.a=0,f.c=null,M(On,"LinkedList/ListIteratorImpl",972),E(614,1,{},dt),M(On,"LinkedList/Node",614),E(2036,1,{});var Gke,Qft;M(On,"Locale",2036),E(863,2036,{},cn),f.Ib=function(){return""},M(On,"Locale/1",863),E(864,2036,{},dn),f.Ib=function(){return"unknown"},M(On,"Locale/4",864),E(113,63,{3:1,102:1,63:1,81:1,113:1},Mo,BHe),M(On,"NoSuchElementException",113),E(461,1,{461:1},wY),f.Fb=function(t){var n;return t===this?!0:ae(t,461)?(n=c(t,461),gc(this.a,n.a)):!1},f.Hb=function(){return vx(this.a)},f.Ib=function(){return this.a!=null?Lot+GT(this.a)+")":"Optional.empty()"};var Uke;M(On,"Optional",461),E(405,1,{405:1},aBe,_Z),f.Fb=function(t){var n;return t===this?!0:ae(t,405)?(n=c(t,405),this.a==n.a&&Ci(this.b,n.b)==0):!1},f.Hb=function(){return this.a?ks(this.b):0},f.Ib=function(){return this.a?"OptionalDouble.of("+(""+this.b)+")":"OptionalDouble.empty()"},f.a=!1,f.b=0;var sce;M(On,"OptionalDouble",405),E(514,1,{514:1},fBe,Eze),f.Fb=function(t){var n;return t===this?!0:ae(t,514)?(n=c(t,514),this.a==n.a&&hc(this.b,n.b)==0):!1},f.Hb=function(){return this.a?this.b:0},f.Ib=function(){return this.a?"OptionalInt.of("+(""+this.b)+")":"OptionalInt.empty()"},f.a=!1,f.b=0;var Gft;M(On,"OptionalInt",514),E(500,2082,Tv,kq),f.Fc=function(t){return P2e(this,t)},f.$b=function(){_2(this.b.c,0)},f.Gc=function(t){return(t==null?-1:Lo(this.b,t,0))!=-1},f.Jc=function(){return new DNe(this)},f.Kc=function(t){return FXe(this,t)},f.gc=function(){return this.b.c.length},f.Lc=function(){return new Et(this,256)},f.Nc=function(){return oq(this.b.c)},f.Oc=function(t){return xh(this.b,t)},M(On,"PriorityQueue",500),E(1272,1,ns,DNe),f.Nb=function(t){ps(this,t)},f.Ob=function(){return this.a<this.c.b.c.length},f.Pb=function(){return gn(this.a<this.c.b.c.length),this.b=this.a++,Je(this.c.b,this.b)},f.Qb=function(){B2(this.b!=-1),Nte(this.c,this.a=this.b),this.b=-1},f.a=0,f.b=-1,M(On,"PriorityQueue/1",1272),E(237,1,{237:1},pne,eH),f.a=0,f.b=0;var Jke,Vke,Xnn=0;M(On,"Random",237),E(27,1,Gu,Et,X2,JHe),f.yd=function(t){return(this.a&t)!=0},f.wd=function(){return this.a},f.xd=function(){return Cpe(this),this.c},f.Nb=function(t){Cpe(this),this.d.Nb(t)},f.zd=function(t){return HVe(this,t)},f.a=0,f.c=0,M(On,"Spliterators/IteratorSpliterator",27),E(484,27,Gu,aF),M(On,"SortedSet/1",484),E(607,1,_L,qde),f.Ne=function(t){this.a.Ad(t)},M(On,"Spliterator/OfDouble/0methodref$accept$Type",607),E(608,1,_L,Hde),f.Ne=function(t){this.a.Ad(t)},M(On,"Spliterator/OfDouble/1methodref$accept$Type",608),E(609,1,jL,Qde),f.Bd=function(t){this.a.Ad($e(t))},M(On,"Spliterator/OfInt/2methodref$accept$Type",609),E(610,1,jL,Gde),f.Bd=function(t){this.a.Ad($e(t))},M(On,"Spliterator/OfInt/3methodref$accept$Type",610),E(623,1,Gu),f.Nb=function(t){L1e(this,t)},f.yd=function(t){return(this.d&t)!=0},f.wd=function(){return this.d},f.xd=function(){return this.e},f.d=0,f.e=0,M(On,"Spliterators/BaseSpliterator",623),E(731,623,Gu),f.Oe=function(t){ax(this,t)},f.Nb=function(t){ae(t,191)?ax(this,c(t,191)):ax(this,new Hde(t))},f.zd=function(t){return ae(t,191)?this.Pe(c(t,191)):this.Pe(new qde(t))},M(On,"Spliterators/AbstractDoubleSpliterator",731),E(730,623,Gu),f.Oe=function(t){ax(this,t)},f.Nb=function(t){ae(t,204)?ax(this,c(t,204)):ax(this,new Gde(t))},f.zd=function(t){return ae(t,204)?this.Pe(c(t,204)):this.Pe(new Qde(t))},M(On,"Spliterators/AbstractIntSpliterator",730),E(489,623,Gu),M(On,"Spliterators/AbstractSpliterator",489),E(702,1,Gu),f.Nb=function(t){L1e(this,t)},f.yd=function(t){return(this.b&t)!=0},f.wd=function(){return this.b},f.xd=function(){return this.d-this.c},f.b=0,f.c=0,f.d=0,M(On,"Spliterators/BaseArraySpliterator",702),E(952,702,Gu,cqe),f.Qe=function(t,n){I9t(this,c(t,42),n)},f.Nb=function(t){Oee(this,t)},f.zd=function(t){return oH(this,t)},M(On,"Spliterators/ArraySpliterator",952),E(703,702,Gu,yFe),f.Qe=function(t,n){R9t(this,c(t,191),n)},f.Oe=function(t){Oee(this,t)},f.Nb=function(t){ae(t,191)?Oee(this,c(t,191)):Oee(this,new Hde(t))},f.Pe=function(t){return oH(this,t)},f.zd=function(t){return ae(t,191)?oH(this,c(t,191)):oH(this,new qde(t))},M(On,"Spliterators/DoubleArraySpliterator",703),E(2045,1,Gu),f.Nb=function(t){L1e(this,t)},f.yd=function(t){return(16448&t)!=0},f.wd=function(){return 16448},f.xd=function(){return 0};var Uft;M(On,"Spliterators/EmptySpliterator",2045),E(951,2045,Gu,wn),f.Oe=function(t){Ip(t)},f.Nb=function(t){ae(t,204)?Ip(c(t,204)):Ip(new Gde(t))},f.Pe=function(t){return Z1e(t)},f.zd=function(t){return ae(t,204)?Z1e(c(t,204)):Z1e(new Qde(t))},M(On,"Spliterators/EmptySpliterator/OfInt",951),E(581,56,tct,Bz),f._c=function(t,n){V6(t,this.a.c.length+1),Qp(this.a,t,n)},f.Ec=function(t){return Qe(this.a,t)},f.ad=function(t,n){return V6(t,this.a.c.length+1),Twe(this.a,t,n)},f.Fc=function(t){return Or(this.a,t)},f.$b=function(){_2(this.a.c,0)},f.Gc=function(t){return Lo(this.a,t,0)!=-1},f.Hc=function(t){return ID(this.a,t)},f.Ic=function(t){Uc(this.a,t)},f.Xb=function(t){return V6(t,this.a.c.length),Je(this.a,t)},f.bd=function(t){return Lo(this.a,t,0)},f.dc=function(){return this.a.c.length==0},f.Jc=function(){return new U(this.a)},f.ed=function(t){return V6(t,this.a.c.length),Cg(this.a,t)},f.ae=function(t,n){aGe(this.a,t,n)},f.fd=function(t,n){return V6(t,this.a.c.length),ku(this.a,t,n)},f.gc=function(){return this.a.c.length},f.gd=function(t){Rr(this.a,t)},f.hd=function(t,n){return new Yh(this.a,t,n)},f.Nc=function(){return oq(this.a.c)},f.Oc=function(t){return xh(this.a,t)},f.Ib=function(){return jh(this.a)},M(On,"Vector",581),E(582,581,tct,zz),M(On,"Stack",582),E(215,1,{215:1},cb),f.Ib=function(){return _Ge(this)},M(On,"StringJoiner",215),E(545,2069,{3:1,93:1,141:1,136:1},yRe,uee),f.$b=function(){VPe(this)},f.Be=function(){return new BGe(this)},f.vc=function(){return new wze(this)},f.Ce=function(t){return _S(this,t,!0)},f.De=function(t){return sKe(this,t)},f.Ee=function(){return dme(this)},f.Fe=function(t){return VD(this,t,!0)},f.Ge=function(t){return _S(this,t,!1)},f.He=function(){return XJe(this)},f.Ie=function(t){return VD(this,t,!1)},f.Xc=function(t,n){return uGe(this,t,n)},f.yc=function(t,n){return GWe(this,t,n)},f.Ac=function(t){return AQe(this,t)},f.Je=function(t){return nme(this,t)},f.gc=function(){return this.c},f.$c=function(t,n){return lGe(this,t,n)},f.c=0,M(On,"TreeMap",545),E(546,1,ns,BGe,Pte),f.Nb=function(t){ps(this,t)},f.Pb=function(){return kze(this)},f.Ob=function(){return RY(this.a)},f.Qb=function(){EFe(this)},M(On,"TreeMap/EntryIterator",546),E(1123,627,Pl,wze),f.$b=function(){VPe(this.a)},M(On,"TreeMap/EntrySet",1123),E(443,392,{483:1,392:1,45:1,443:1},fte),f.b=!1;var Wnn=M(On,"TreeMap/Node",443);E(628,1,{},ni),f.Ib=function(){return"State: mv="+this.c+" value="+this.d+" done="+this.a+" found="+this.b},f.a=!1,f.b=!1,f.c=!1,M(On,"TreeMap/State",628),E(629,2069,_xe,fie),f.Be=function(){return new Pte(this.c,this.f,this.b,this.a,this.e,this.d)},f.vc=function(){return new iY(this)},f.Ce=function(t){return iq(this,_S(this.c,t,!0))},f.De=function(t){return iq(this,sKe(this.c,t))},f.Ee=function(){var t;return this.f.Re()?this.a?t=_S(this.c,this.b,!0):t=_S(this.c,this.b,!1):t=dme(this.c),t&&Mq(this,t.d)?t:null},f.Fe=function(t){return iq(this,VD(this.c,t,!0))},f.Ge=function(t){return iq(this,_S(this.c,t,!1))},f.He=function(){var t;return this.f.Se()?this.d?t=VD(this.c,this.e,!0):t=VD(this.c,this.e,!1):t=XJe(this.c),t&&Mq(this,t.d)?t:null},f.Ie=function(t){return iq(this,VD(this.c,t,!1))},f.Xc=function(t,n){if(this.f.Se()&&this.c.a.Le(t,this.e)>0)throw V(new qt(Hxe+t+" greater than "+this.e));return this.f.Re()?MQe(this.c,this.b,this.a,t,n):uGe(this.c,t,n)},f.yc=function(t,n){if(!Xne(this.c,this.f,t,this.b,this.a,this.e,this.d))throw V(new qt(t+" outside the range "+this.b+" to "+this.e));return GWe(this.c,t,n)},f.Ac=function(t){var n;return n=t,Xne(this.c,this.f,n,this.b,this.a,this.e,this.d)?AQe(this.c,n):null},f.Je=function(t){return Mq(this,t.jd())&&nme(this.c,t)},f.gc=function(){var t,n,i;if(this.f.Re()?this.a?n=_S(this.c,this.b,!0):n=_S(this.c,this.b,!1):n=dme(this.c),!(n&&Mq(this,n.d)&&n))return 0;for(t=0,i=new Pte(this.c,this.f,this.b,this.a,this.e,this.d);RY(i.a);i.b=c(ibe(i.a),45))++t;return t},f.$c=function(t,n){if(this.f.Re()&&this.c.a.Le(t,this.b)<0)throw V(new qt(Hxe+t+nct+this.b));return this.f.Se()?MQe(this.c,t,n,this.e,this.d):lGe(this.c,t,n)},f.a=!1,f.d=!1,M(On,"TreeMap/SubMap",629),E(310,23,Rre,fF),f.Re=function(){return!1},f.Se=function(){return!1};var oce,cce,lce,uce,xU=vn(On,"TreeMap/SubMapType",310,Tn,oLt,yEt);E(1124,310,Rre,jBe),f.Se=function(){return!0},vn(On,"TreeMap/SubMapType/1",1124,xU,null,null),E(1125,310,Rre,RBe),f.Re=function(){return!0},f.Se=function(){return!0},vn(On,"TreeMap/SubMapType/2",1125,xU,null,null),E(1126,310,Rre,TBe),f.Re=function(){return!0},vn(On,"TreeMap/SubMapType/3",1126,xU,null,null);var Jft;E(143,Eh,{3:1,22:1,32:1,18:1,279:1,24:1,85:1,143:1},aY,o0e,xg,O6),f.Lc=function(){return new aF(this)},f.Ec=function(t){return Z_(this,t)},f.$b=function(){this.a.$b()},f.Gc=function(t){return this.a._b(t)},f.Jc=function(){return this.a.ec().Jc()},f.Kc=function(t){return EZ(this,t)},f.gc=function(){return this.a.gc()};var Knn=M(On,"TreeSet",143);E(1063,1,{},PNe),f.Te=function(t,n){return B7t(this.a,t,n)},M($re,"BinaryOperator/lambda$0$Type",1063),E(1064,1,{},INe),f.Te=function(t,n){return z7t(this.a,t,n)},M($re,"BinaryOperator/lambda$1$Type",1064),E(944,1,{},ii),f.Kb=function(t){return t},M($re,"Function/lambda$0$Type",944),E(390,1,Jn,S6),f.Mb=function(t){return!this.a.Mb(t)},M($re,"Predicate/lambda$2$Type",390),E(574,1,{574:1});var Vft=M(pE,"Handler",574);E(2086,1,OL),f.ve=function(){return"DUMMY"},f.Ib=function(){return this.ve()};var Xke;M(pE,"Level",2086),E(1689,2086,OL,ji),f.ve=function(){return"INFO"},M(pE,"Level/LevelInfo",1689),E(1841,1,{},tPe);var ace;M(pE,"LogManager",1841),E(1883,1,OL,DFe),f.b=null,M(pE,"LogRecord",1883),E(515,1,{515:1},tte),f.e=!1;var Xft=!1,Wft=!1,Nh=!1,Kft=!1,Yft=!1;M(pE,"Logger",515),E(827,574,{574:1},Ti),M(pE,"SimpleConsoleLogHandler",827),E(132,23,{3:1,34:1,23:1,132:1},$Y);var Wke,wl,Kke,vl=vn(Vs,"Collector/Characteristics",132,Tn,Q_t,xEt),Zft;E(753,1,{},Ppe),M(Vs,"CollectorImpl",753),E(1061,1,{},nr),f.Te=function(t,n){return bBt(c(t,215),c(n,215))},M(Vs,"Collectors/10methodref$merge$Type",1061),E(1062,1,{},ms),f.Kb=function(t){return _Ge(c(t,215))},M(Vs,"Collectors/11methodref$toString$Type",1062),E(153,1,{},rs),f.Wd=function(t,n){c(t,18).Ec(n)},M(Vs,"Collectors/20methodref$add$Type",153),E(155,1,{},fr),f.Ve=function(){return new He},M(Vs,"Collectors/21methodref$ctor$Type",155),E(1060,1,{},jp),f.Wd=function(t,n){E1(c(t,215),c(n,475))},M(Vs,"Collectors/9methodref$add$Type",1060),E(1059,1,{},JFe),f.Ve=function(){return new cb(this.a,this.b,this.c)},M(Vs,"Collectors/lambda$15$Type",1059),E(154,1,{},ko),f.Te=function(t,n){return m8t(c(t,18),c(n,18))},M(Vs,"Collectors/lambda$45$Type",154),E(542,1,{}),f.Ye=function(){s7(this)},f.d=!1,M(Vs,"TerminatableStream",542),E(775,542,Qxe,v0e),f.Ye=function(){s7(this)},M(Vs,"DoubleStreamImpl",775),E(1309,731,Gu,VFe),f.Pe=function(t){return JFt(this,c(t,191))},f.a=null,M(Vs,"DoubleStreamImpl/2",1309),E(1310,1,_L,RNe),f.Ne=function(t){fTt(this.a,t)},M(Vs,"DoubleStreamImpl/2/lambda$0$Type",1310),E(1307,1,_L,$Ne),f.Ne=function(t){aTt(this.a,t)},M(Vs,"DoubleStreamImpl/lambda$0$Type",1307),E(1308,1,_L,BNe),f.Ne=function(t){vYe(this.a,t)},M(Vs,"DoubleStreamImpl/lambda$2$Type",1308),E(1363,730,Gu,GUe),f.Pe=function(t){return KDt(this,c(t,204))},f.a=0,f.b=0,f.c=0,M(Vs,"IntStream/5",1363),E(800,542,Qxe,y0e),f.Ye=function(){s7(this)},f.Ze=function(){return S0(this),this.a},M(Vs,"IntStreamImpl",800),E(801,542,Qxe,Q1e),f.Ye=function(){s7(this)},f.Ze=function(){return S0(this),Uge(),Uft},M(Vs,"IntStreamImpl/Empty",801),E(1668,1,jL,zNe),f.Bd=function(t){pWe(this.a,t)},M(Vs,"IntStreamImpl/lambda$4$Type",1668);var Ynn=Zi(Vs,"Stream");E(28,542,{524:1,684:1,840:1},Tt),f.Ye=function(){s7(this)};var Ok;M(Vs,"StreamImpl",28),E(1083,489,Gu,xFe),f.zd=function(t){for(;VPt(this);){if(this.a.zd(t))return!0;s7(this.b),this.b=null,this.a=null}return!1},M(Vs,"StreamImpl/1",1083),E(1084,1,ln,FNe),f.Ad=function(t){AMt(this.a,c(t,840))},M(Vs,"StreamImpl/1/lambda$0$Type",1084),E(1085,1,Jn,qNe),f.Mb=function(t){return Er(this.a,t)},M(Vs,"StreamImpl/1methodref$add$Type",1085),E(1086,489,Gu,rQe),f.zd=function(t){var n;return this.a||(n=new He,this.b.a.Nb(new HNe(n)),Mt(),Rr(n,this.c),this.a=new Et(n,16)),HVe(this.a,t)},f.a=null,M(Vs,"StreamImpl/5",1086),E(1087,1,ln,HNe),f.Ad=function(t){Qe(this.a,t)},M(Vs,"StreamImpl/5/2methodref$add$Type",1087),E(732,489,Gu,ame),f.zd=function(t){for(this.b=!1;!this.b&&this.c.zd(new RRe(this,t)););return this.b},f.b=!1,M(Vs,"StreamImpl/FilterSpliterator",732),E(1077,1,ln,RRe),f.Ad=function(t){SAt(this.a,this.b,t)},M(Vs,"StreamImpl/FilterSpliterator/lambda$0$Type",1077),E(1072,731,Gu,eJe),f.Pe=function(t){return iEt(this,c(t,191))},M(Vs,"StreamImpl/MapToDoubleSpliterator",1072),E(1076,1,ln,$Re),f.Ad=function(t){D8t(this.a,this.b,t)},M(Vs,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1076),E(1071,730,Gu,tJe),f.Pe=function(t){return rEt(this,c(t,204))},M(Vs,"StreamImpl/MapToIntSpliterator",1071),E(1075,1,ln,BRe),f.Ad=function(t){L8t(this.a,this.b,t)},M(Vs,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1075),E(729,489,Gu,Kbe),f.zd=function(t){return vFe(this,t)},M(Vs,"StreamImpl/MapToObjSpliterator",729),E(1074,1,ln,zRe),f.Ad=function(t){P8t(this.a,this.b,t)},M(Vs,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1074),E(1073,489,Gu,AXe),f.zd=function(t){for(;PY(this.b,0);){if(!this.a.zd(new xo))return!1;this.b=Ha(this.b,1)}return this.a.zd(t)},f.b=0,M(Vs,"StreamImpl/SkipSpliterator",1073),E(1078,1,ln,xo),f.Ad=function(t){},M(Vs,"StreamImpl/SkipSpliterator/lambda$0$Type",1078),E(624,1,ln,qr),f.Ad=function(t){WK(this,t)},M(Vs,"StreamImpl/ValueConsumer",624),E(1079,1,ln,Nn),f.Ad=function(t){Fp()},M(Vs,"StreamImpl/lambda$0$Type",1079),E(1080,1,ln,Ps),f.Ad=function(t){Fp()},M(Vs,"StreamImpl/lambda$1$Type",1080),E(1081,1,{},QNe),f.Te=function(t,n){return TEt(this.a,t,n)},M(Vs,"StreamImpl/lambda$4$Type",1081),E(1082,1,ln,FRe),f.Ad=function(t){K7t(this.b,this.a,t)},M(Vs,"StreamImpl/lambda$5$Type",1082),E(1088,1,ln,GNe),f.Ad=function(t){VRt(this.a,c(t,376))},M(Vs,"TerminatableStream/lambda$0$Type",1088),E(2121,1,{}),E(1993,1,{},as),M("javaemul.internal","ConsoleLogger",1993);var Znn=0;E(2113,1,{}),E(1817,1,ln,eu),f.Ad=function(t){c(t,322)},M(oj,"BowyerWatsonTriangulation/lambda$0$Type",1817),E(1818,1,ln,UNe),f.Ad=function(t){Ss(this.a,c(t,322).e)},M(oj,"BowyerWatsonTriangulation/lambda$1$Type",1818),E(1819,1,ln,tm),f.Ad=function(t){c(t,180)},M(oj,"BowyerWatsonTriangulation/lambda$2$Type",1819),E(1814,1,Yn,JNe),f.Le=function(t,n){return zLt(this.a,c(t,180),c(n,180))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(oj,"NaiveMinST/lambda$0$Type",1814),E(401,1,{},j6),M(oj,"NodeMicroLayout",401),E(180,1,{180:1},d4),f.Fb=function(t){var n;return ae(t,180)?(n=c(t,180),gc(this.a,n.a)&&gc(this.b,n.b)||gc(this.a,n.b)&&gc(this.b,n.a)):!1},f.Hb=function(){return vx(this.a)+vx(this.b)};var ein=M(oj,"TEdge",180);E(322,1,{322:1},rxe),f.Fb=function(t){var n;return ae(t,322)?(n=c(t,322),dH(this,n.a)&&dH(this,n.b)&&dH(this,n.c)):!1},f.Hb=function(){return vx(this.a)+vx(this.b)+vx(this.c)},M(oj,"TTriangle",322),E(227,1,{227:1},zF),M(oj,"Tree",227),E(1195,1,{},eGe),M(sct,"Scanline",1195);var eht=Zi(sct,oct);E(1745,1,{},QVe),M(Ud,"CGraph",1745),E(321,1,{321:1},zQe),f.b=0,f.c=0,f.d=0,f.g=0,f.i=0,f.k=Gr,M(Ud,"CGroup",321),E(821,1,{},l1e),M(Ud,"CGroup/CGroupBuilder",821),E(60,1,{60:1},nFe),f.Ib=function(){var t;return this.j?qn(this.j.Kb(this)):(x1(kU),kU.o+"@"+(t=Rm(this)>>>0,t.toString(16)))},f.f=0,f.i=Gr;var kU=M(Ud,"CNode",60);E(820,1,{},u1e),M(Ud,"CNode/CNodeBuilder",820);var tht;E(1568,1,{},og),f.df=function(t,n){return 0},f.ef=function(t,n){return 0},M(Ud,lct,1568),E(1847,1,{},Tp),f.af=function(t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q;for(x=sr,r=new U(t.a.b);r.a<r.c.c.length;)n=c(G(r),60),x=p.Math.min(x,n.a.j.d.c+n.b.a);for(I=new _i,d=new U(t.a.a);d.a<d.c.c.length;)a=c(G(d),321),a.k=x,a.g==0&&rr(I,a,I.c.b,I.c);for(;I.b!=0;){for(a=c(I.b==0?null:(gn(I.b!=0),ma(I,I.a.a)),321),o=a.j.d.c,L=a.a.a.ec().Jc();L.Ob();)T=c(L.Pb(),60),Q=a.k+T.b.a,!Z$t(t,a,t.d)||T.d.c<Q?T.i=Q:T.i=T.d.c;for(o-=a.j.i,a.b+=o,t.d==(_r(),vo)||t.d==Rh?a.c+=o:a.c-=o,A=a.a.a.ec().Jc();A.Ob();)for(T=c(A.Pb(),60),v=T.c.Jc();v.Ob();)b=c(v.Pb(),60),v1(t.d)?z=t.g.df(T,b):z=t.g.ef(T,b),b.a.k=p.Math.max(b.a.k,T.i+T.d.b+z-b.b.a),gQe(t,b,t.d)&&(b.a.k=p.Math.max(b.a.k,b.d.c-b.b.a)),--b.a.g,b.a.g==0&&ei(I,b.a)}for(i=new U(t.a.b);i.a<i.c.c.length;)n=c(G(i),60),n.d.c=n.i},M(Ud,"LongestPathCompaction",1847),E(1743,1,{},Xtt),f.e=!1;var nht,iht,rht,fce=M(Ud,fct,1743);E(1744,1,ln,VNe),f.Ad=function(t){o$t(this.a,c(t,49))},M(Ud,hct,1744),E(1848,1,{},nm),f.bf=function(t){var n,i,r,o,a,d,b;for(i=new U(t.a.b);i.a<i.c.c.length;)n=c(G(i),60),n.c.$b();for(o=new U(t.a.b);o.a<o.c.c.length;)for(r=c(G(o),60),d=new U(t.a.b);d.a<d.c.c.length;)a=c(G(d),60),r!=a&&(r.a&&r.a==a.a||(v1(t.d)?b=t.g.ef(r,a):b=t.g.df(r,a),(a.d.c>r.d.c||r.d.c==a.d.c&&r.d.b<a.d.b)&&_zt(a.d.d+a.d.a+b,r.d.d)&&h2e(a.d.d,r.d.d+r.d.a+b)&&r.c.Ec(a)))},M(Ud,"QuadraticConstraintCalculation",1848),E(520,1,{520:1},cY),f.a=!1,f.b=!1,f.c=!1,f.d=!1,M(Ud,dct,520),E(811,1,{},ype),f.bf=function(t){this.c=t,sL(this,new OO)},M(Ud,gct,811),E(1771,1,{690:1},mQe),f._e=function(t){QGt(this,c(t,466))},M(Ud,pct,1771),E(1772,1,Yn,Mu),f.Le=function(t,n){return ENt(c(t,60),c(n,60))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Ud,bct,1772),E(466,1,{466:1},ige),f.a=!1,M(Ud,mct,466),E(1773,1,Yn,Ep),f.Le=function(t,n){return oHt(c(t,466),c(n,466))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Ud,wct,1773),E(1774,1,ld,OO),f.Lb=function(t){return c(t,60),!0},f.Fb=function(t){return this===t},f.Mb=function(t){return c(t,60),!0},M(Ud,"ScanlineConstraintCalculator/lambda$1$Type",1774),E(220,1,{220:1},SO),f.Ib=function(){return"NEdge[id="+this.b+" w="+this.g+" d="+this.a+"]"},f.a=1,f.b=0,f.c=0,f.f=!1,f.g=0;var sht=M(bE,"NEdge",220);E(186,1,{},Ra),M(bE,"NEdge/NEdgeBuilder",186),E(658,1,{},uY),M(bE,"NGraph",658),E(126,1,{126:1},sJe),f.c=-1,f.d=0,f.e=0,f.i=-1,f.j=!1;var Yke=M(bE,"NNode",126);E(802,1,ect,c1e),f.Ic=function(t){vs(this,t)},f.gd=function(t){sb(this,t)},f.Lc=function(){return new Et(this,16)},f.Mc=function(){return new Tt(null,new Et(this,16))},f._c=function(t,n){++this.b,Qp(this.a,t,n)},f.Ec=function(t){return GF(this,t)},f.ad=function(t,n){return++this.b,Twe(this.a,t,n)},f.Fc=function(t){return++this.b,Or(this.a,t)},f.$b=function(){++this.b,_2(this.a.c,0)},f.Gc=function(t){return Lo(this.a,t,0)!=-1},f.Hc=function(t){return ID(this.a,t)},f.Xb=function(t){return Je(this.a,t)},f.bd=function(t){return Lo(this.a,t,0)},f.dc=function(){return this.a.c.length==0},f.Jc=function(){return z4(new U(this.a))},f.cd=function(){throw V(new zn)},f.dd=function(t){throw V(new zn)},f.ed=function(t){return++this.b,Cg(this.a,t)},f.Kc=function(t){return i0e(this,t)},f.fd=function(t,n){return++this.b,ku(this.a,t,n)},f.gc=function(){return this.a.c.length},f.hd=function(t,n){return new Yh(this.a,t,n)},f.Nc=function(){return oq(this.a.c)},f.Oc=function(t){return xh(this.a,t)},f.b=0,M(bE,"NNode/ChangeAwareArrayList",802),E(276,1,{},Bp),M(bE,"NNode/NNodeBuilder",276),E(1677,1,{},TO),f.a=!1,f.f=gi,f.j=0,M(bE,"NetworkSimplex",1677),E(1290,1,ln,XNe),f.Ad=function(t){yxe(this.a,c(t,692),!0,!1)},M(vct,"NodeLabelAndSizeCalculator/lambda$0$Type",1290),E(561,1,{},Nz),f.b=!0,f.c=!0,f.d=!0,f.e=!0,M(vct,"NodeMarginCalculator",561),E(219,1,{219:1}),f.j=!1,f.k=!1;var oht=M(vb,"Cell",219);E(129,219,{129:1,219:1},tFe),f.ff=function(){return cq(this)},f.gf=function(){var t;return t=this.n,this.a.a+t.b+t.c},M(vb,"AtomicCell",129),E(240,23,{3:1,34:1,23:1,240:1},BY);var Wo,Kc,Ko,Lv=vn(vb,"ContainerArea",240,Tn,G_t,kEt),cht;E(338,219,yct),M(vb,"ContainerCell",338),E(1516,338,yct,mYe),f.ff=function(){var t;return t=0,this.e?this.b?t=this.b.b:this.a[1][1]&&(t=this.a[1][1].ff()):t=Zwe(this,TZe(this,!0)),t>0?t+this.n.d+this.n.a:0},f.gf=function(){var t,n,i,r,o;if(o=0,this.e)this.b?o=this.b.a:this.a[1][1]&&(o=this.a[1][1].gf());else if(this.g)o=Zwe(this,Kne(this,null,!0));else for(n=(Wf(),Y(K(Lv,1),Pe,240,0,[Wo,Kc,Ko])),i=0,r=n.length;i<r;++i)t=n[i],o=p.Math.max(o,Zwe(this,Kne(this,t,!0)));return o>0?o+this.n.b+this.n.c:0},f.hf=function(){var t,n,i,r,o;if(this.g)for(t=Kne(this,null,!1),i=(Wf(),Y(K(Lv,1),Pe,240,0,[Wo,Kc,Ko])),r=0,o=i.length;r<o;++r)n=i[r],yit(this,n,t);else for(i=(Wf(),Y(K(Lv,1),Pe,240,0,[Wo,Kc,Ko])),r=0,o=i.length;r<o;++r)n=i[r],t=Kne(this,n,!1),yit(this,n,t)},f.jf=function(){var t,n,i,r;n=this.i,t=this.n,r=TZe(this,!1),Jbe(this,(Wf(),Wo),n.d+t.d,r),Jbe(this,Ko,n.d+n.a-t.a-r[2],r),i=n.a-t.d-t.a,r[0]>0&&(r[0]+=this.d,i-=r[0]),r[2]>0&&(r[2]+=this.d,i-=r[2]),this.c.a=p.Math.max(0,i),this.c.d=n.d+t.d+(this.c.a-i)/2,r[1]=p.Math.max(r[1],i),Jbe(this,Kc,n.d+t.d+r[0]-(r[1]-i)/2,r)},f.b=null,f.d=0,f.e=!1,f.f=!1,f.g=!1;var hce=0,OU=0;M(vb,"GridContainerCell",1516),E(464,23,{3:1,34:1,23:1,464:1},zY);var W0,gd,Tf,lht=vn(vb,"HorizontalLabelAlignment",464,Tn,U_t,OEt),uht;E(319,219,{219:1,319:1},DQe,GVe,SQe),f.ff=function(){return iqe(this)},f.gf=function(){return hpe(this)},f.a=0,f.c=!1;var tin=M(vb,"LabelCell",319);E(256,338,{219:1,338:1,256:1},$7),f.ff=function(){return J7(this)},f.gf=function(){return V7(this)},f.hf=function(){$ie(this)},f.jf=function(){Bie(this)},f.b=0,f.c=0,f.d=!1,M(vb,"StripContainerCell",256),E(1672,1,Jn,of),f.Mb=function(t){return M9t(c(t,219))},M(vb,"StripContainerCell/lambda$0$Type",1672),E(1673,1,{},c1),f.We=function(t){return c(t,219).gf()},M(vb,"StripContainerCell/lambda$1$Type",1673),E(1674,1,Jn,zf),f.Mb=function(t){return A9t(c(t,219))},M(vb,"StripContainerCell/lambda$2$Type",1674),E(1675,1,{},im),f.We=function(t){return c(t,219).ff()},M(vb,"StripContainerCell/lambda$3$Type",1675),E(465,23,{3:1,34:1,23:1,465:1},FY);var Ef,K0,nh,aht=vn(vb,"VerticalLabelAlignment",465,Tn,J_t,SEt),fht;E(794,1,{},kxe),f.c=0,f.d=0,f.k=0,f.s=0,f.t=0,f.v=!1,f.w=0,f.D=!1,f.F=!1,M(gG,"NodeContext",794),E(1514,1,Yn,jO),f.Le=function(t,n){return bBe(c(t,64),c(n,64))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(gG,"NodeContext/0methodref$comparePortSides$Type",1514),E(1515,1,Yn,e2),f.Le=function(t,n){return AQt(c(t,116),c(n,116))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(gG,"NodeContext/1methodref$comparePortContexts$Type",1515),E(169,23,{3:1,34:1,23:1,169:1},va);var hht,dht,ght,pht,bht,mht,wht,vht,yht,xht,kht,Oht,Sht,jht,Tht,Eht,Cht,Mht,Aht,Nht,_ht,dce,Dht=vn(gG,"NodeLabelLocation",169,Tn,Cne,jEt),Lht;E(116,1,{116:1},nnt),f.a=!1,M(gG,"PortContext",116),E(1519,1,ln,t2),f.Ad=function(t){RIe(c(t,319))},M(LL,xct,1519),E(1520,1,Jn,n2),f.Mb=function(t){return!!c(t,116).c},M(LL,kct,1520),E(1521,1,ln,i2),f.Ad=function(t){RIe(c(t,116).c)},M(LL,"LabelPlacer/lambda$2$Type",1521);var Zke;E(1518,1,ln,a0),f.Ad=function(t){q2(),l9t(c(t,116))},M(LL,"NodeLabelAndSizeUtilities/lambda$0$Type",1518),E(795,1,ln,G0e),f.Ad=function(t){k8t(this.b,this.c,this.a,c(t,190))},f.a=!1,f.c=!1,M(LL,"NodeLabelCellCreator/lambda$0$Type",795),E(1517,1,ln,WNe),f.Ad=function(t){h9t(this.a,c(t,190))},M(LL,"PortContextCreator/lambda$0$Type",1517);var SU;E(1889,1,{},r2),M(lj,"GreedyRectangleStripOverlapRemover",1889),E(1890,1,Yn,rm),f.Le=function(t,n){return t7t(c(t,228),c(n,228))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(lj,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1890),E(1843,1,{},oPe),f.a=5,f.e=0,M(lj,"RectangleStripOverlapRemover",1843),E(1844,1,Yn,l5),f.Le=function(t,n){return n7t(c(t,228),c(n,228))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(lj,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1844),E(1846,1,Yn,u5),f.Le=function(t,n){return BAt(c(t,228),c(n,228))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(lj,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1846),E(414,23,{3:1,34:1,23:1,414:1},hF);var cP,gce,pce,lP,Pht=vn(lj,"RectangleStripOverlapRemover/OverlapRemovalDirection",414,Tn,sLt,CEt),Iht;E(228,1,{228:1},ree),M(lj,"RectangleStripOverlapRemover/RectangleNode",228),E(1845,1,ln,KNe),f.Ad=function(t){rqt(this.a,c(t,228))},M(lj,"RectangleStripOverlapRemover/lambda$1$Type",1845);var Rht=!1,UE,eOe;E(1815,1,ln,Py),f.Ad=function(t){gst(c(t,227))},M(pk,"DepthFirstCompaction/0methodref$compactTree$Type",1815),E(817,1,ln,Ude),f.Ad=function(t){dNt(this.a,c(t,227))},M(pk,"DepthFirstCompaction/lambda$1$Type",817),E(1816,1,ln,NFe),f.Ad=function(t){Uzt(this.a,this.b,this.c,c(t,227))},M(pk,"DepthFirstCompaction/lambda$2$Type",1816);var JE,tOe;E(68,1,{68:1},nGe),M(pk,"Node",68),E(1191,1,{},PBe),M(pk,"ScanlineOverlapCheck",1191),E(1192,1,{690:1},vQe),f._e=function(t){G7t(this,c(t,445))},M(pk,"ScanlineOverlapCheck/OverlapsScanlineHandler",1192),E(1193,1,Yn,sm),f.Le=function(t,n){return ABt(c(t,68),c(n,68))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(pk,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1193),E(445,1,{445:1},rge),f.a=!1,M(pk,"ScanlineOverlapCheck/Timestamp",445),E(1194,1,Yn,EO),f.Le=function(t,n){return cHt(c(t,445),c(n,445))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(pk,"ScanlineOverlapCheck/lambda$0$Type",1194),E(549,1,{},om),M("org.eclipse.elk.alg.common.utils","SVGImage",549),E(755,1,{},Iy),M(Hre,Kxe,755),E(1176,1,Yn,a5),f.Le=function(t,n){return IUt(c(t,238),c(n,238))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Hre,jct,1176),E(1177,1,ln,qRe),f.Ad=function(t){X_t(this.b,this.a,c(t,254))},M(Hre,Yxe,1177),E(207,1,yb),M(Kx,"AbstractLayoutProvider",207),E(733,207,yb,a1e),f.kf=function(t,n){Unt(this,t,n)},M(Hre,"ForceLayoutProvider",733);var nin=Zi(PL,Tct);E(151,1,{3:1,105:1,151:1},cm),f.of=function(t,n){return RD(this,t,n)},f.lf=function(){return Oqe(this)},f.mf=function(t){return $(this,t)},f.nf=function(t){return ki(this,t)},M(PL,"MapPropertyHolder",151),E(314,151,{3:1,314:1,105:1,151:1}),M(IL,"FParticle",314),E(254,314,{3:1,254:1,314:1,105:1,151:1},aHe),f.Ib=function(){var t;return this.a?(t=Lo(this.a.a,this,0),t>=0?"b"+t+"["+Kee(this.a)+"]":"b["+Kee(this.a)+"]"):"b_"+Rm(this)},M(IL,"FBendpoint",254),E(292,151,{3:1,292:1,105:1,151:1},iFe),f.Ib=function(){return Kee(this)},M(IL,"FEdge",292),E(238,151,{3:1,238:1,105:1,151:1},iH);var iin=M(IL,"FGraph",238);E(448,314,{3:1,448:1,314:1,105:1,151:1},gUe),f.Ib=function(){return this.b==null||this.b.length==0?"l["+Kee(this.a)+"]":"l_"+this.b},M(IL,"FLabel",448),E(156,314,{3:1,156:1,314:1,105:1,151:1},IBe),f.Ib=function(){return xbe(this)},f.a=0,M(IL,"FNode",156),E(2079,1,{}),f.qf=function(t){Yye(this,t)},f.rf=function(){SZe(this)},f.d=0,M(Zxe,"AbstractForceModel",2079),E(638,2079,{638:1},gWe),f.pf=function(t,n){var i,r,o,a,d;return wst(this.f,t,n),o=Qr(As(n.d),t.d),d=p.Math.sqrt(o.a*o.a+o.b*o.b),r=p.Math.max(0,d-r7(t.e)/2-r7(n.e)/2),i=Utt(this.e,t,n),i>0?a=-_At(r,this.c)*i:a=b7t(r,this.b)*c($(t,(Sf(),Sk)),15).a,y1(o,a/d),o},f.qf=function(t){Yye(this,t),this.a=c($(t,(Sf(),TU)),15).a,this.c=de(be($(t,EU))),this.b=de(be($(t,mce)))},f.sf=function(t){return t<this.a},f.a=0,f.b=0,f.c=0,M(Zxe,"EadesModel",638),E(639,2079,{639:1},hqe),f.pf=function(t,n){var i,r,o,a,d;return wst(this.f,t,n),o=Qr(As(n.d),t.d),d=p.Math.sqrt(o.a*o.a+o.b*o.b),r=p.Math.max(0,d-r7(t.e)/2-r7(n.e)/2),a=p7t(r,this.a)*c($(t,(Sf(),Sk)),15).a,i=Utt(this.e,t,n),i>0&&(a-=j9t(r,this.a)*i),y1(o,a*this.b/d),o},f.qf=function(t){var n,i,r,o,a,d,b;for(Yye(this,t),this.b=de(be($(t,(Sf(),wce)))),this.c=this.b/c($(t,TU),15).a,r=t.e.c.length,a=0,o=0,b=new U(t.e);b.a<b.c.c.length;)d=c(G(b),156),a+=d.e.a,o+=d.e.b;n=a*o,i=de(be($(t,EU)))*Ch,this.a=p.Math.sqrt(n/(2*r))*i},f.rf=function(){SZe(this),this.b-=this.c},f.sf=function(t){return this.b>0},f.a=0,f.b=0,f.c=0,M(Zxe,"FruchtermanReingoldModel",639);var c3=Zi(Ro,"ILayoutMetaDataProvider");E(852,1,jf,TK),f.tf=function(t){at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,pG),""),"Force Model"),"Determines the model for force calculation."),nOe),(z0(),Vi)),iOe),bt((kh(),_t))))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,e3e),""),"Iterations"),"The number of iterations on the force model."),$e(300)),Ts),Pr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,t3e),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),$e(0)),Ts),Pr),bt(sh)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Qre),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),ud),us),jr),bt(_t)))),er(t,Qre,pG,Qht),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Gre),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),us),jr),bt(_t)))),er(t,Gre,pG,Fht),lot((new EK,t))};var $ht,Bht,nOe,zht,Fht,qht,Hht,Qht;M(wE,"ForceMetaDataProvider",852),E(429,23,{3:1,34:1,23:1,429:1},nge);var bce,jU,iOe=vn(wE,"ForceModelStrategy",429,Tn,v_t,AEt),Ght;E(993,1,jf,EK),f.tf=function(t){lot(t)};var Uht,Jht,rOe,TU,sOe,Vht,Xht,Wht,Kht,oOe,Yht,cOe,lOe,Zht,Sk,edt,mce,uOe,tdt,ndt,EU,wce,idt,rdt,sdt,aOe,odt;M(wE,"ForceOptions",993),E(994,1,{},Ry),f.uf=function(){var t;return t=new a1e,t},f.vf=function(t){},M(wE,"ForceOptions/ForceFactory",994);var uP,VE,jk,CU;E(853,1,jf,ez),f.tf=function(t){at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,i3e),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(Bt(),!1)),(z0(),Ir)),or),bt((kh(),pr))))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,r3e),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),us),jr),Li(_t,Y(K(Lh,1),Pe,161,0,[sh]))))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,s3e),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),fOe),Vi),wOe),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,o3e),""),"Stress Epsilon"),"Termination criterion for the iterative process."),ud),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,c3e),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),$e(gi)),Ts),Pr),bt(_t)))),Pst((new oo,t))};var cdt,ldt,fOe,udt,adt,fdt;M(wE,"StressMetaDataProvider",853),E(997,1,jf,oo),f.tf=function(t){Pst(t)};var MU,hOe,dOe,gOe,pOe,bOe,hdt,ddt,gdt,pdt,mOe,bdt;M(wE,"StressOptions",997),E(998,1,{},f5),f.uf=function(){var t;return t=new rFe,t},f.vf=function(t){},M(wE,"StressOptions/StressFactory",998),E(1091,207,yb,rFe),f.kf=function(t,n){var i,r,o,a,d;for(n.Tg(Nct,1),Ze(Ye(Se(t,(YD(),pOe))))?Ze(Ye(Se(t,mOe)))||l7((i=new j6((m0(),new mg(t))),i)):Unt(new a1e,t,n.dh(1)),o=zWe(t),r=Hrt(this.a,o),d=r.Jc();d.Ob();)a=c(d.Pb(),238),!(a.e.c.length<=1)&&(aZt(this.b,a),_Jt(this.b),Uc(a.d,new cg));o=sot(r),got(o),n.Ug()},M(wG,"StressLayoutProvider",1091),E(1092,1,ln,cg),f.Ad=function(t){cxe(c(t,448))},M(wG,"StressLayoutProvider/lambda$0$Type",1092),E(995,1,{},ZLe),f.c=0,f.e=0,f.g=0,M(wG,"StressMajorization",995),E(385,23,{3:1,34:1,23:1,385:1},qY);var vce,yce,xce,wOe=vn(wG,"StressMajorization/Dimension",385,Tn,W_t,NEt),mdt;E(996,1,Yn,YNe),f.Le=function(t,n){return cEt(this.a,c(t,156),c(n,156))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(wG,"StressMajorization/lambda$0$Type",996),E(1173,1,{},bGe),M(wk,"ElkLayered",1173),E(1174,1,ln,ZNe),f.Ad=function(t){vUt(this.a,c(t,37))},M(wk,"ElkLayered/lambda$0$Type",1174),E(1175,1,ln,e_e),f.Ad=function(t){oEt(this.a,c(t,37))},M(wk,"ElkLayered/lambda$1$Type",1175),E(1258,1,{},$Be);var wdt,vdt,ydt;M(wk,"GraphConfigurator",1258),E(764,1,ln,Jde),f.Ad=function(t){Get(this.a,c(t,9))},M(wk,"GraphConfigurator/lambda$0$Type",764),E(765,1,{},$y),f.Kb=function(t){return Q2e(),new Tt(null,new Et(c(t,26).a,16))},M(wk,"GraphConfigurator/lambda$1$Type",765),E(766,1,ln,Vde),f.Ad=function(t){Get(this.a,c(t,9))},M(wk,"GraphConfigurator/lambda$2$Type",766),E(1090,207,yb,nPe),f.kf=function(t,n){var i;i=qYt(new lPe,t),xe(Se(t,(Ge(),Qv)))===xe((D1(),Yg))?RBt(this.a,i,n):CJt(this.a,i,n),n.Zg()||Yst(new d6,i)},M(wk,"LayeredLayoutProvider",1090),E(364,23,{3:1,34:1,23:1,364:1},k_);var Cf,Xd,yc,xc,Ws,vOe=vn(wk,"LayeredPhases",364,Tn,nPt,_Et),xdt;E(1700,1,{},MXe),f.i=0;var kdt;M(HL,"ComponentsToCGraphTransformer",1700);var Odt;E(1701,1,{},Au),f.wf=function(t,n){return p.Math.min(t.a!=null?de(t.a):t.c.i,n.a!=null?de(n.a):n.c.i)},f.xf=function(t,n){return p.Math.min(t.a!=null?de(t.a):t.c.i,n.a!=null?de(n.a):n.c.i)},M(HL,"ComponentsToCGraphTransformer/1",1701),E(84,1,{84:1}),f.i=0,f.k=!0,f.o=Gr;var kce=M(yE,"CNode",84);E(463,84,{463:1,84:1},c0e,v2e),f.Ib=function(){return""},M(HL,"ComponentsToCGraphTransformer/CRectNode",463),E(1669,1,{},kn);var Oce,Sce;M(HL,"OneDimensionalComponentsCompaction",1669),E(1670,1,{},ro),f.Kb=function(t){return B_t(c(t,49))},f.Fb=function(t){return this===t},M(HL,"OneDimensionalComponentsCompaction/lambda$0$Type",1670),E(1671,1,{},al),f.Kb=function(t){return qBt(c(t,49))},f.Fb=function(t){return this===t},M(HL,"OneDimensionalComponentsCompaction/lambda$1$Type",1671),E(1703,1,{},bHe),M(yE,"CGraph",1703),E(197,1,{197:1},jne),f.b=0,f.c=0,f.e=0,f.g=!0,f.i=Gr,M(yE,"CGroup",197),E(1702,1,{},o2),f.wf=function(t,n){return p.Math.max(t.a!=null?de(t.a):t.c.i,n.a!=null?de(n.a):n.c.i)},f.xf=function(t,n){return p.Math.max(t.a!=null?de(t.a):t.c.i,n.a!=null?de(n.a):n.c.i)},M(yE,lct,1702),E(1704,1,{},Vtt),f.d=!1;var Sdt,jce=M(yE,fct,1704);E(1705,1,{},c2),f.Kb=function(t){return G1e(),Bt(),c(c(t,49).a,84).d.e!=0},f.Fb=function(t){return this===t},M(yE,hct,1705),E(825,1,{},wpe),f.a=!1,f.b=!1,f.c=!1,f.d=!1,M(yE,dct,825),E(1885,1,{},Lqe),M(vG,gct,1885);var aP=Zi(xb,oct);E(1886,1,{378:1},wQe),f._e=function(t){RXt(this,c(t,468))},M(vG,pct,1886),E(1887,1,Yn,sa),f.Le=function(t,n){return CNt(c(t,84),c(n,84))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(vG,bct,1887),E(468,1,{468:1},sge),f.a=!1,M(vG,mct,468),E(1888,1,Yn,V9),f.Le=function(t,n){return lHt(c(t,468),c(n,468))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(vG,wct,1888),E(148,1,{148:1},$6,lpe),f.Fb=function(t){var n;return t==null||rin!=Ou(t)?!1:(n=c(t,148),gc(this.c,n.c)&&gc(this.d,n.d))},f.Hb=function(){return GH(Y(K(Br,1),Pt,1,5,[this.c,this.d]))},f.Ib=function(){return"("+this.c+Xc+this.d+(this.a?"cx":"")+this.b+")"},f.a=!0,f.c=0,f.d=0;var rin=M(xb,"Point",148);E(413,23,{3:1,34:1,23:1,413:1},dF);var Cw,Pv,l3,Iv,jdt=vn(xb,"Point/Quadrant",413,Tn,rLt,MEt),Tdt;E(1691,1,{},iPe),f.b=null,f.c=null,f.d=null,f.e=null,f.f=null;var Edt,Cdt,Mdt,Adt,Ndt;M(xb,"RectilinearConvexHull",1691),E(576,1,{378:1},hQ),f._e=function(t){ZPt(this,c(t,148))},f.b=0;var yOe;M(xb,"RectilinearConvexHull/MaximalElementsEventHandler",576),E(1693,1,Yn,CO),f.Le=function(t,n){return MNt(be(t),be(n))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(xb,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1693),E(1692,1,{378:1},RVe),f._e=function(t){ZVt(this,c(t,148))},f.a=0,f.b=null,f.c=null,f.d=null,f.e=null,M(xb,"RectilinearConvexHull/RectangleEventHandler",1692),E(1694,1,Yn,J9),f.Le=function(t,n){return NDt(c(t,148),c(n,148))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(xb,"RectilinearConvexHull/lambda$0$Type",1694),E(1695,1,Yn,Pa),f.Le=function(t,n){return _Dt(c(t,148),c(n,148))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(xb,"RectilinearConvexHull/lambda$1$Type",1695),E(1696,1,Yn,By),f.Le=function(t,n){return LDt(c(t,148),c(n,148))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(xb,"RectilinearConvexHull/lambda$2$Type",1696),E(1697,1,Yn,MO),f.Le=function(t,n){return DDt(c(t,148),c(n,148))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(xb,"RectilinearConvexHull/lambda$3$Type",1697),E(1698,1,Yn,s2),f.Le=function(t,n){return GQt(c(t,148),c(n,148))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(xb,"RectilinearConvexHull/lambda$4$Type",1698),E(1699,1,{},tGe),M(xb,"Scanline",1699),E(2083,1,{}),M(Mh,"AbstractGraphPlacer",2083),E(337,1,{337:1},Cze),f.Df=function(t){return this.Ef(t)?(jt(this.b,c($(t,(Ie(),Q1)),24),t),!0):!1},f.Ef=function(t){var n,i,r,o;for(n=c($(t,(Ie(),Q1)),24),o=c(Ei(Di,n),24),r=o.Jc();r.Ob();)if(i=c(r.Pb(),24),!c(Ei(this.b,i),16).dc())return!1;return!0};var Di;M(Mh,"ComponentGroup",337),E(773,2083,{},f1e),f.Ff=function(t){var n,i;for(i=new U(this.a);i.a<i.c.c.length;)if(n=c(G(i),337),n.Df(t))return;Qe(this.a,new Cze(t))},f.Cf=function(t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z;if(this.a.c.length=0,n.a.c.length=0,t.dc()){n.f.a=0,n.f.b=0;return}for(d=c(t.Xb(0),37),nc(n,d),o=t.Jc();o.Ob();)r=c(o.Pb(),37),this.Ff(r);for(z=new fs,a=de(be($(d,(Ge(),CP)))),x=new U(this.a);x.a<x.c.c.length;)b=c(G(x),337),T=pot(b,a),Mg(Cq(b.b),z.a,z.b),z.a+=T.a,z.b+=T.b;if(n.f.a=z.a-a,n.f.b=z.b-a,Ze(Ye($(d,pJ)))&&xe($(d,U1))===xe((L1(),g9))){for(I=t.Jc();I.Ob();)A=c(I.Pb(),37),JS(A,A.c.a,A.c.b);for(i=new Cp,Txe(i,t,a),L=t.Jc();L.Ob();)A=c(L.Pb(),37),Oi(Uf(A.c),i.e);Oi(Uf(n.f),i.a)}for(v=new U(this.a);v.a<v.c.c.length;)b=c(G(v),337),ume(n,Cq(b.b))},M(Mh,"ComponentGroupGraphPlacer",773),E(1288,773,{},vPe),f.Ff=function(t){LKe(this,t)},f.Cf=function(t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me;if(this.a.c.length=0,n.a.c.length=0,t.dc()){n.f.a=0,n.f.b=0;return}for(d=c(t.Xb(0),37),nc(n,d),o=t.Jc();o.Ob();)r=c(o.Pb(),37),LKe(this,r);for(me=new fs,le=new fs,Q=new fs,z=new fs,a=de(be($(d,(Ge(),CP)))),x=new U(this.a);x.a<x.c.c.length;){if(b=c(G(x),337),v1(c($(n,(In(),Bb)),87))){for(Q.a=me.a,re=new dT(i7(vee(b.b).a).a.kc());re.b.Ob();)if(W=c(uF(re.b.Pb()),24),W.Gc((Ue(),Kt))){Q.a=le.a;break}}else if(mx(c($(n,Bb),87))){for(Q.b=me.b,re=new dT(i7(vee(b.b).a).a.kc());re.b.Ob();)if(W=c(uF(re.b.Pb()),24),W.Gc((Ue(),Yt))){Q.b=le.b;break}}if(T=pot(c(b,572),a),Mg(Cq(b.b),Q.a,Q.b),v1(c($(n,Bb),87))){for(le.a=Q.a+T.a,z.a=p.Math.max(z.a,le.a),re=new dT(i7(vee(b.b).a).a.kc());re.b.Ob();)if(W=c(uF(re.b.Pb()),24),W.Gc((Ue(),mn))){me.a=Q.a+T.a;break}le.b=Q.b+T.b,Q.b=le.b,z.b=p.Math.max(z.b,Q.b)}else if(mx(c($(n,Bb),87))){for(le.b=Q.b+T.b,z.b=p.Math.max(z.b,le.b),re=new dT(i7(vee(b.b).a).a.kc());re.b.Ob();)if(W=c(uF(re.b.Pb()),24),W.Gc((Ue(),nn))){me.b=Q.b+T.b;break}le.a=Q.a+T.a,Q.a=le.a,z.a=p.Math.max(z.a,Q.a)}}if(n.f.a=z.a-a,n.f.b=z.b-a,Ze(Ye($(d,pJ)))&&xe($(d,U1))===xe((L1(),g9))){for(I=t.Jc();I.Ob();)A=c(I.Pb(),37),JS(A,A.c.a,A.c.b);for(i=new Cp,Txe(i,t,a),L=t.Jc();L.Ob();)A=c(L.Pb(),37),Oi(Uf(A.c),i.e);Oi(Uf(n.f),i.a)}for(v=new U(this.a);v.a<v.c.c.length;)b=c(G(v),337),ume(n,Cq(b.b))},M(Mh,"ComponentGroupModelOrderGraphPlacer",1288),E(384,23,{3:1,34:1,23:1,384:1},gF);var Tce,xOe,Ece,XE,kOe=vn(Mh,"ComponentOrderingStrategy",384,Tn,cLt,DEt),_dt;E(655,1,{},Cp),M(Mh,"ComponentsCompactor",655),E(1511,13,Yot,JUe),f.Ec=function(t){return H7(this,c(t,148))},M(Mh,"ComponentsCompactor/Hullpoints",1511),E(1508,1,{847:1},iZe),f.a=!1,M(Mh,"ComponentsCompactor/InternalComponent",1508),E(1507,1,Hd,sPe),f.Ic=function(t){vs(this,t)},f.Jc=function(){return new U(this.a)},M(Mh,"ComponentsCompactor/InternalConnectedComponents",1507),E(1510,1,{598:1},Ytt),f.zf=function(){return null},f.Af=function(){return this.a},f.yf=function(){return Mne(this.d)},f.Bf=function(){return this.b},M(Mh,"ComponentsCompactor/InternalExternalExtension",1510),E(1509,1,{598:1},cPe),f.Af=function(){return this.a},f.yf=function(){return Mne(this.d)},f.zf=function(){return this.c},f.Bf=function(){return this.b},M(Mh,"ComponentsCompactor/InternalUnionExternalExtension",1509),E(1513,1,{},xit),M(Mh,"ComponentsCompactor/OuterSegments",1513),E(1512,1,{},rPe),M(Mh,"ComponentsCompactor/Segments",1512),E(1259,1,{},oJe),M(Mh,Kxe,1259),E(1260,1,Yn,X9),f.Le=function(t,n){return IDt(c(t,37),c(n,37))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Mh,"ComponentsProcessor/lambda$0$Type",1260),E(572,337,{337:1,572:1},UUe),f.Df=function(t){return ywe(this,t)},f.Ef=function(t){return nit(this,t)};var si;M(Mh,"ModelOrderComponentGroup",572),E(1286,2083,{},lm),f.Cf=function(t,n){var i,r,o,a,d,b,v,x,T,A,L;if(t.gc()==1){A=c(t.Xb(0),37),A!=n&&(n.a.c.length=0,lrt(n,A,0,0),nc(n,A),nbe(n.d,A.d),n.f.a=A.f.a,n.f.b=A.f.b);return}else if(t.dc()){n.a.c.length=0,n.f.a=0,n.f.b=0;return}for(this.Hf(t,n),o=c(t.Xb(0),37),n.a.c.length=0,nc(n,o),x=0,L=0,d=t.Jc();d.Ob();)a=c(d.Pb(),37),T=a.f,x=p.Math.max(x,T.a),L+=T.a*T.b;if(x=p.Math.max(x,p.Math.sqrt(L)*de(be($(n,(Ge(),gJ))))),r=de(be($(n,CP))),this.Gf(t,n,x,r),Ze(Ye($(o,pJ)))){for(i=new Cp,Txe(i,t,r),v=t.Jc();v.Ob();)b=c(v.Pb(),37),Oi(Uf(b.c),i.e);Oi(Uf(n.f),i.a)}ume(n,t)},f.Gf=function(t,n,i,r){var o,a,d,b,v,x,T,A;for(T=0,A=0,b=0,o=r,d=t.Jc();d.Ob();)a=c(d.Pb(),37),x=a.f,T+x.a>i&&(T=0,A+=b+r,b=0),v=a.c,JS(a,T+v.a,A+v.b),Uf(v),o=p.Math.max(o,T+x.a),b=p.Math.max(b,x.b),T+=x.a+r;n.f.a=o,n.f.b=A+b},f.Hf=function(t,n){var i,r,o,a,d;if(xe($(n,(Ge(),uC)))===xe((X4(),XE))){for(r=t.Jc();r.Ob();){for(i=c(r.Pb(),37),d=0,a=new U(i.a);a.a<a.c.c.length;)o=c(G(a),9),d+=c($(o,upt),15).a;i.p=d}Mt(),t.gd(new XM)}},M(Mh,"SimpleRowGraphPlacer",1286),E(1289,1286,{},l2),f.Gf=function(t,n,i,r){var o,a,d,b,v,x,T,A,L,I;for(L=0,I=0,b=0,o=r,v=null,A=0,d=t.Jc();d.Ob();)a=c(d.Pb(),37),T=a.f,(L+T.a>i&&!c($(a,(Ie(),Q1)),24).Gc((Ue(),Kt))||v&&c($(v,(Ie(),Q1)),24).Gc((Ue(),nn))||c($(a,(Ie(),Q1)),24).Gc((Ue(),Yt)))&&(L=A,I+=b+r,b=0),x=a.c,c($(a,(Ie(),Q1)),24).Gc((Ue(),Kt))&&(L=o+r),JS(a,L+x.a,I+x.b),o=p.Math.max(o,L+T.a),c($(a,Q1),24).Gc(mn)&&(A=p.Math.max(A,L+T.a+r)),Uf(x),b=p.Math.max(b,T.b),L+=T.a+r,v=a;n.f.a=o,n.f.b=I+b},f.Hf=function(t,n){},M(Mh,"ModelOrderRowGraphPlacer",1289),E(1287,1,Yn,XM),f.Le=function(t,n){return URt(c(t,37),c(n,37))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Mh,"SimpleRowGraphPlacer/1",1287);var Ddt;E(1257,1,ld,AO),f.Lb=function(t){var n;return n=c($(c(t,253).b,(Ge(),go)),79),!!n&&n.b!=0},f.Fb=function(t){return this===t},f.Mb=function(t){var n;return n=c($(c(t,253).b,(Ge(),go)),79),!!n&&n.b!=0},M(yG,"CompoundGraphPostprocessor/1",1257),E(1256,1,Pi,uPe),f.If=function(t,n){oZe(this,c(t,37),n)},M(yG,"CompoundGraphPreprocessor",1256),E(447,1,{447:1},XKe),f.c=!1,M(yG,"CompoundGraphPreprocessor/ExternalPort",447),E(253,1,{253:1},tq),f.Ib=function(){return NZ(this.c)+":"+qtt(this.b)},M(yG,"CrossHierarchyEdge",253),E(771,1,Yn,Xde),f.Le=function(t,n){return Dqt(this,c(t,253),c(n,253))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(yG,"CrossHierarchyEdgeComparator",771),E(248,151,{3:1,248:1,105:1,151:1}),f.p=0,M(vc,"LGraphElement",248),E(17,248,{3:1,17:1,248:1,105:1,151:1},Gm),f.Ib=function(){return qtt(this)};var Ij=M(vc,"LEdge",17);E(37,248,{3:1,22:1,37:1,248:1,105:1,151:1},_me),f.Ic=function(t){vs(this,t)},f.Jc=function(){return new U(this.b)},f.Ib=function(){return this.b.c.length==0?"G-unlayered"+jh(this.a):this.a.c.length==0?"G-layered"+jh(this.b):"G[layerless"+jh(this.a)+", layers"+jh(this.b)+"]"};var Ldt=M(vc,"LGraph",37),Pdt;E(662,1,{}),f.Jf=function(){return this.e.n},f.mf=function(t){return $(this.e,t)},f.Kf=function(){return this.e.o},f.Lf=function(){return this.e.p},f.nf=function(t){return ki(this.e,t)},f.Mf=function(t){this.e.n.a=t.a,this.e.n.b=t.b},f.Nf=function(t){this.e.o.a=t.a,this.e.o.b=t.b},f.Of=function(t){this.e.p=t},M(vc,"LGraphAdapters/AbstractLShapeAdapter",662),E(467,1,{845:1},cT),f.Pf=function(){var t,n;if(!this.b)for(this.b=Nd(this.a.b.c.length),n=new U(this.a.b);n.a<n.c.c.length;)t=c(G(n),70),Qe(this.b,new _z(t));return this.b},f.b=null,M(vc,"LGraphAdapters/LEdgeAdapter",467),E(661,1,{},Tee),f.Qf=function(){var t,n,i,r,o,a;if(!this.b){for(this.b=new He,r=new U(this.a.b);r.a<r.c.c.length;)for(i=c(G(r),26),a=new U(i.a);a.a<a.c.c.length;)if(o=c(G(a),9),this.c.Mb(o)&&(Qe(this.b,new eq(this,o,this.e)),this.d)){if(ki(o,(Ie(),Pk)))for(n=c($(o,Pk),16).Jc();n.Ob();)t=c(n.Pb(),9),Qe(this.b,new eq(this,t,!1));if(ki(o,Ck))for(n=c($(o,Ck),16).Jc();n.Ob();)t=c(n.Pb(),9),Qe(this.b,new eq(this,t,!1))}}return this.b},f.Jf=function(){throw V(new wg(Lct))},f.mf=function(t){return $(this.a,t)},f.Kf=function(){return this.a.f},f.Lf=function(){return this.a.p},f.nf=function(t){return ki(this.a,t)},f.Mf=function(t){throw V(new wg(Lct))},f.Nf=function(t){this.a.f.a=t.a,this.a.f.b=t.b},f.Of=function(t){this.a.p=t},f.b=null,f.d=!1,f.e=!1,M(vc,"LGraphAdapters/LGraphAdapter",661),E(578,662,{190:1},_z),M(vc,"LGraphAdapters/LLabelAdapter",578),E(577,662,{692:1},eq),f.Rf=function(){return this.b},f.Sf=function(){return Mt(),Mt(),$s},f.Pf=function(){var t,n;if(!this.a)for(this.a=Nd(c(this.e,9).b.c.length),n=new U(c(this.e,9).b);n.a<n.c.c.length;)t=c(G(n),70),Qe(this.a,new _z(t));return this.a},f.Tf=function(){var t;return t=c(this.e,9).d,new A0e(t.d,t.c,t.a,t.b)},f.Uf=function(){return Mt(),Mt(),$s},f.Vf=function(){var t,n;if(!this.c)for(this.c=Nd(c(this.e,9).j.c.length),n=new U(c(this.e,9).j);n.a<n.c.c.length;)t=c(G(n),12),Qe(this.c,new HRe(t,this.d));return this.c},f.Wf=function(){return Ze(Ye($(c(this.e,9),(Ie(),G6e))))},f.Xf=function(t){c(this.e,9).d.b=t.b,c(this.e,9).d.d=t.d,c(this.e,9).d.c=t.c,c(this.e,9).d.a=t.a},f.Yf=function(t){c(this.e,9).f.b=t.b,c(this.e,9).f.d=t.d,c(this.e,9).f.c=t.c,c(this.e,9).f.a=t.a},f.Zf=function(){AIt(this,(yT(),Pdt))},f.a=null,f.b=null,f.c=null,f.d=!1,M(vc,"LGraphAdapters/LNodeAdapter",577),E(1775,662,{844:1},HRe),f.Sf=function(){var t,n,i,r,o,a,d,b;if(this.d&&c(this.e,12).i.k==(Jt(),Ic))return Mt(),Mt(),$s;if(!this.a){for(this.a=new He,i=new U(c(this.e,12).e);i.a<i.c.c.length;)t=c(G(i),17),Qe(this.a,new cT(t));if(this.d&&(r=c($(c(this.e,12),(Ie(),Jl)),9),r))for(n=new Ht(Xt(vr(r).a.Jc(),new F));hn(n);)t=c(rn(n),17),Qe(this.a,new cT(t));if(ki(c(this.e,12).i,(Ie(),Lw))&&(d=c($(c(this.e,12).i,Lw),339),b=c(vh(d.e,this.e),114),b))for(a=new U(b.b);a.a<a.c.c.length;)o=c(G(a),342),Qe(this.a,new cT(o.a))}return this.a},f.Pf=function(){var t,n;if(!this.b)for(this.b=Nd(c(this.e,12).f.c.length),n=new U(c(this.e,12).f);n.a<n.c.c.length;)t=c(G(n),70),Qe(this.b,new _z(t));return this.b},f.Uf=function(){var t,n,i,r,o,a,d,b;if(this.d&&c(this.e,12).i.k==(Jt(),Ic))return Mt(),Mt(),$s;if(!this.c){for(this.c=new He,i=new U(c(this.e,12).g);i.a<i.c.c.length;)t=c(G(i),17),Qe(this.c,new cT(t));if(this.d&&(r=c($(c(this.e,12),(Ie(),Jl)),9),r))for(n=new Ht(Xt(Fi(r).a.Jc(),new F));hn(n);)t=c(rn(n),17),Qe(this.c,new cT(t));if(ki(c(this.e,12).i,(Ie(),Lw))&&(d=c($(c(this.e,12).i,Lw),339),b=c(vh(d.e,this.e),114),b))for(a=new U(b.e);a.a<a.c.c.length;)o=c(G(a),342),Qe(this.c,new cT(o.a))}return this.c},f.$f=function(){return c(this.e,12).j},f._f=function(){return Ze(Ye($(c(this.e,12),(Ie(),xP))))},f.a=null,f.b=null,f.c=null,f.d=!1,M(vc,"LGraphAdapters/LPortAdapter",1775),E(1776,1,Yn,W9),f.Le=function(t,n){return hWt(c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(vc,"LGraphAdapters/PortComparator",1776),E(812,1,Jn,K9),f.Mb=function(t){return c(t,9),yT(),!0},M(vc,"LGraphAdapters/lambda$0$Type",812),E(400,248,{3:1,248:1,400:1,105:1,151:1}),M(vc,"LShape",400),E(70,400,{3:1,248:1,70:1,400:1,105:1,151:1},aIe,Fge),f.Ib=function(){var t;return t=ZMt(this),t==null?"label":"l_"+t},M(vc,"LLabel",70),E(216,1,{3:1,4:1,216:1,419:1}),f.Fb=function(t){var n;return ae(t,216)?(n=c(t,216),this.d==n.d&&this.a==n.a&&this.b==n.b&&this.c==n.c):!1},f.Hb=function(){var t,n;return t=m4(this.b)<<16,t|=m4(this.a)&Dr,n=m4(this.c)<<16,n|=m4(this.d)&Dr,t^n},f.ag=function(t){var n,i,r,o,a,d,b,v,x,T,A;for(a=0;a<t.length&&xKe((en(a,t.length),t.charCodeAt(a)),Ict);)++a;for(n=t.length;n>0&&xKe((en(n-1,t.length),t.charCodeAt(n-1)),Rct);)--n;if(a<n){T=Sv((hs(a,n,t.length),t.substr(a,n-a)),",|;");try{for(b=T,v=0,x=b.length;v<x;++v){if(d=b[v],o=Sv(d,"="),o.length!=2)throw V(new qt("Expecting a list of key-value pairs."));r=wv(o[0]),A=mv(wv(o[1])),St(r,"top")?this.d=A:St(r,"left")?this.b=A:St(r,"bottom")?this.a=A:St(r,"right")&&(this.c=A)}}catch(L){throw L=kr(L),ae(L,133)?(i=L,V(new qt($ct+i))):V(L)}}},f.Ib=function(){return"[top="+this.d+",left="+this.b+",bottom="+this.a+",right="+this.c+"]"},f.a=0,f.b=0,f.c=0,f.d=0,M(QL,"Spacing",216),E(125,216,Bct,aT,OBe,A0e,GZ);var OOe=M(QL,"ElkMargin",125);E(656,125,Bct,fY),M(vc,"LMargin",656),E(9,400,{3:1,248:1,9:1,400:1,105:1,151:1},Oh),f.Ib=function(){return ZYe(this)},f.i=!1;var Wd=M(vc,"LNode",9);E(252,23,{3:1,34:1,23:1,252:1},g4);var _h,Ar,ac,Cr,WE,ur,Ic,fP,Cce=vn(vc,"LNode/NodeType",252,Tn,yIt,EEt),Idt;E(769,1,Jn,zy),f.Mb=function(t){return Ze(Ye($(c(t,70),(Ge(),x3))))},M(vc,"LNode/lambda$0$Type",769),E(100,216,zct,s4,qp,J0e);var SOe=M(QL,"ElkPadding",100);E(772,100,zct,d1e),M(vc,"LPadding",772),E(12,400,{3:1,248:1,12:1,400:1,105:1,151:1},mc),f.Ib=function(){var t,n,i;return t=new g0,Zn((t.a+="p_",t),xQ(this)),this.i&&Zn(Ec((t.a+="[",t),this.i),"]"),this.e.c.length==1&&this.g.c.length==0&&c(Je(this.e,0),17).c!=this&&(n=c(Je(this.e,0),17).c,Zn((t.a+=" << ",t),xQ(n)),Zn(Ec((t.a+="[",t),n.i),"]")),this.e.c.length==0&&this.g.c.length==1&&c(Je(this.g,0),17).d!=this&&(i=c(Je(this.g,0),17).d,Zn((t.a+=" >> ",t),xQ(i)),Zn(Ec((t.a+="[",t),i.i),"]")),t.a},f.c=!0,f.d=!1;var jOe,TOe,EOe,COe,MOe,AOe,Rdt=M(vc,"LPort",12);E(404,1,Hd,T6),f.Ic=function(t){vs(this,t)},f.Jc=function(){var t;return t=new U(this.a.e),new t_e(t)},M(vc,"LPort/1",404),E(1285,1,ns,t_e),f.Nb=function(t){ps(this,t)},f.Pb=function(){return c(G(this.a),17).c},f.Ob=function(){return _o(this.a)},f.Qb=function(){t7(this.a)},M(vc,"LPort/1/1",1285),E(366,1,Hd,t4),f.Ic=function(t){vs(this,t)},f.Jc=function(){var t;return t=new U(this.a.g),new Wde(t)},M(vc,"LPort/2",366),E(770,1,ns,Wde),f.Nb=function(t){ps(this,t)},f.Pb=function(){return c(G(this.a),17).d},f.Ob=function(){return _o(this.a)},f.Qb=function(){t7(this.a)},M(vc,"LPort/2/1",770),E(1278,1,Hd,QRe),f.Ic=function(t){vs(this,t)},f.Jc=function(){return new wh(this)},M(vc,"LPort/CombineIter",1278),E(210,1,ns,wh),f.Nb=function(t){ps(this,t)},f.Qb=function(){xIe()},f.Ob=function(){return UT(this)},f.Pb=function(){return _o(this.a)?G(this.a):G(this.b)},M(vc,"LPort/CombineIter/1",210),E(1279,1,ld,h5),f.Lb=function(t){return Xqe(t)},f.Fb=function(t){return this===t},f.Mb=function(t){return Dl(),c(t,12).g.c.length!=0},M(vc,"LPort/lambda$0$Type",1279),E(1280,1,ld,f0),f.Lb=function(t){return Wqe(t)},f.Fb=function(t){return this===t},f.Mb=function(t){return Dl(),c(t,12).e.c.length!=0},M(vc,"LPort/lambda$1$Type",1280),E(1281,1,ld,Od),f.Lb=function(t){return Dl(),c(t,12).j==(Ue(),Kt)},f.Fb=function(t){return this===t},f.Mb=function(t){return Dl(),c(t,12).j==(Ue(),Kt)},M(vc,"LPort/lambda$2$Type",1281),E(1282,1,ld,Y9),f.Lb=function(t){return Dl(),c(t,12).j==(Ue(),nn)},f.Fb=function(t){return this===t},f.Mb=function(t){return Dl(),c(t,12).j==(Ue(),nn)},M(vc,"LPort/lambda$3$Type",1282),E(1283,1,ld,WM),f.Lb=function(t){return Dl(),c(t,12).j==(Ue(),mn)},f.Fb=function(t){return this===t},f.Mb=function(t){return Dl(),c(t,12).j==(Ue(),mn)},M(vc,"LPort/lambda$4$Type",1283),E(1284,1,ld,u2),f.Lb=function(t){return Dl(),c(t,12).j==(Ue(),Yt)},f.Fb=function(t){return this===t},f.Mb=function(t){return Dl(),c(t,12).j==(Ue(),Yt)},M(vc,"LPort/lambda$5$Type",1284),E(26,248,{3:1,22:1,248:1,26:1,105:1,151:1},dc),f.Ic=function(t){vs(this,t)},f.Jc=function(){return new U(this.a)},f.Ib=function(){return"L_"+Lo(this.b.b,this,0)+jh(this.a)},M(vc,"Layer",26),E(1676,1,{},FJe),f.b=0,M(vc,"Tarjan",1676),E(1294,1,{},lPe),M(Hg,Fct,1294),E(1298,1,{},Z9),f.Kb=function(t){return no(c(t,83))},M(Hg,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1298),E(1301,1,{},Fy),f.Kb=function(t){return no(c(t,83))},M(Hg,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1301),E(1295,1,ln,n_e),f.Ad=function(t){snt(this.a,c(t,127))},M(Hg,Yxe,1295),E(1296,1,ln,i_e),f.Ad=function(t){snt(this.a,c(t,127))},M(Hg,qct,1296),E(1297,1,{},KM),f.Kb=function(t){return new Tt(null,new Et(eS(c(t,74)),16))},M(Hg,Hct,1297),E(1299,1,Jn,r_e),f.Mb=function(t){return lTt(this.a,c(t,19))},M(Hg,Qct,1299),E(1300,1,{},Sd),f.Kb=function(t){return new Tt(null,new Et(mNt(c(t,74)),16))},M(Hg,"ElkGraphImporter/lambda$5$Type",1300),E(1302,1,Jn,s_e),f.Mb=function(t){return uTt(this.a,c(t,19))},M(Hg,"ElkGraphImporter/lambda$7$Type",1302),E(1303,1,Jn,qy),f.Mb=function(t){return BNt(c(t,74))},M(Hg,"ElkGraphImporter/lambda$8$Type",1303),E(1273,1,{},d6);var $dt;M(Hg,"ElkGraphLayoutTransferrer",1273),E(1274,1,Jn,o_e),f.Mb=function(t){return aEt(this.a,c(t,17))},M(Hg,"ElkGraphLayoutTransferrer/lambda$0$Type",1274),E(1275,1,ln,c_e),f.Ad=function(t){y_(),Qe(this.a,c(t,17))},M(Hg,"ElkGraphLayoutTransferrer/lambda$1$Type",1275),E(1276,1,Jn,l_e),f.Mb=function(t){return Q7t(this.a,c(t,17))},M(Hg,"ElkGraphLayoutTransferrer/lambda$2$Type",1276),E(1277,1,ln,u_e),f.Ad=function(t){y_(),Qe(this.a,c(t,17))},M(Hg,"ElkGraphLayoutTransferrer/lambda$3$Type",1277),E(813,1,{},D0e),M(tn,"BiLinkedHashMultiMap",813),E(1528,1,Pi,e8),f.If=function(t,n){dRt(c(t,37),n)},M(tn,"CommentNodeMarginCalculator",1528),E(1529,1,{},NO),f.Kb=function(t){return new Tt(null,new Et(c(t,26).a,16))},M(tn,"CommentNodeMarginCalculator/lambda$0$Type",1529),E(1530,1,ln,um),f.Ad=function(t){BYt(c(t,9))},M(tn,"CommentNodeMarginCalculator/lambda$1$Type",1530),E(1531,1,Pi,aR),f.If=function(t,n){QXt(c(t,37),n)},M(tn,"CommentPostprocessor",1531),E(1532,1,Pi,fR),f.If=function(t,n){dtn(c(t,37),n)},M(tn,"CommentPreprocessor",1532),E(1533,1,Pi,d5),f.If=function(t,n){iXt(c(t,37),n)},M(tn,"ConstraintsPostprocessor",1533),E(1534,1,Pi,lW),f.If=function(t,n){XRt(c(t,37),n)},M(tn,"EdgeAndLayerConstraintEdgeReverser",1534),E(1535,1,Pi,hR),f.If=function(t,n){dzt(c(t,37),n)},M(tn,"EndLabelPostprocessor",1535),E(1536,1,{},dR),f.Kb=function(t){return new Tt(null,new Et(c(t,26).a,16))},M(tn,"EndLabelPostprocessor/lambda$0$Type",1536),E(1537,1,Jn,YM),f.Mb=function(t){return KLt(c(t,9))},M(tn,"EndLabelPostprocessor/lambda$1$Type",1537),E(1538,1,ln,uW),f.Ad=function(t){uHt(c(t,9))},M(tn,"EndLabelPostprocessor/lambda$2$Type",1538),E(1539,1,Pi,aW),f.If=function(t,n){UGt(c(t,37),n)},M(tn,"EndLabelPreprocessor",1539),E(1540,1,{},t8),f.Kb=function(t){return new Tt(null,new Et(c(t,26).a,16))},M(tn,"EndLabelPreprocessor/lambda$0$Type",1540),E(1541,1,ln,LFe),f.Ad=function(t){O8t(this.a,this.b,this.c,c(t,9))},f.a=0,f.b=0,f.c=!1,M(tn,"EndLabelPreprocessor/lambda$1$Type",1541),E(1542,1,Jn,am),f.Mb=function(t){return xe($(c(t,70),(Ge(),bd)))===xe((yh(),d9))},M(tn,"EndLabelPreprocessor/lambda$2$Type",1542),E(1543,1,ln,a_e),f.Ad=function(t){ei(this.a,c(t,70))},M(tn,"EndLabelPreprocessor/lambda$3$Type",1543),E(1544,1,Jn,ZM),f.Mb=function(t){return xe($(c(t,70),(Ge(),bd)))===xe((yh(),uy))},M(tn,"EndLabelPreprocessor/lambda$4$Type",1544),E(1545,1,ln,f_e),f.Ad=function(t){ei(this.a,c(t,70))},M(tn,"EndLabelPreprocessor/lambda$5$Type",1545),E(1593,1,Pi,V8),f.If=function(t,n){kBt(c(t,37),n)};var Bdt;M(tn,"EndLabelSorter",1593),E(1594,1,Yn,eA),f.Le=function(t,n){return eFt(c(t,458),c(n,458))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(tn,"EndLabelSorter/1",1594),E(458,1,{458:1},uQe),M(tn,"EndLabelSorter/LabelGroup",458),E(1595,1,{},g5),f.Kb=function(t){return v_(),new Tt(null,new Et(c(t,26).a,16))},M(tn,"EndLabelSorter/lambda$0$Type",1595),E(1596,1,Jn,p5),f.Mb=function(t){return v_(),c(t,9).k==(Jt(),ur)},M(tn,"EndLabelSorter/lambda$1$Type",1596),E(1597,1,ln,gR),f.Ad=function(t){sGt(c(t,9))},M(tn,"EndLabelSorter/lambda$2$Type",1597),E(1598,1,Jn,tA),f.Mb=function(t){return v_(),xe($(c(t,70),(Ge(),bd)))===xe((yh(),uy))},M(tn,"EndLabelSorter/lambda$3$Type",1598),E(1599,1,Jn,pR),f.Mb=function(t){return v_(),xe($(c(t,70),(Ge(),bd)))===xe((yh(),d9))},M(tn,"EndLabelSorter/lambda$4$Type",1599),E(1546,1,Pi,_O),f.If=function(t,n){nZt(this,c(t,37))},f.b=0,f.c=0,M(tn,"FinalSplineBendpointsCalculator",1546),E(1547,1,{},fm),f.Kb=function(t){return new Tt(null,new Et(c(t,26).a,16))},M(tn,"FinalSplineBendpointsCalculator/lambda$0$Type",1547),E(1548,1,{},nA),f.Kb=function(t){return new Tt(null,new X2(new Ht(Xt(Fi(c(t,9)).a.Jc(),new F))))},M(tn,"FinalSplineBendpointsCalculator/lambda$1$Type",1548),E(1549,1,Jn,DO),f.Mb=function(t){return!ys(c(t,17))},M(tn,"FinalSplineBendpointsCalculator/lambda$2$Type",1549),E(1550,1,Jn,a2),f.Mb=function(t){return ki(c(t,17),(Ie(),Ab))},M(tn,"FinalSplineBendpointsCalculator/lambda$3$Type",1550),E(1551,1,ln,h_e),f.Ad=function(t){lKt(this.a,c(t,134))},M(tn,"FinalSplineBendpointsCalculator/lambda$4$Type",1551),E(1552,1,ln,iA),f.Ad=function(t){U7(c(t,17).a)},M(tn,"FinalSplineBendpointsCalculator/lambda$5$Type",1552),E(797,1,Pi,Kde),f.If=function(t,n){XZt(this,c(t,37),n)},M(tn,"GraphTransformer",797),E(506,23,{3:1,34:1,23:1,506:1},oge);var Mce,hP,zdt=vn(tn,"GraphTransformer/Mode",506,Tn,y_t,LEt),Fdt;E(1553,1,Pi,n8),f.If=function(t,n){bVt(c(t,37),n)},M(tn,"HierarchicalNodeResizingProcessor",1553),E(1554,1,Pi,bR),f.If=function(t,n){ZIt(c(t,37),n)},M(tn,"HierarchicalPortConstraintProcessor",1554),E(1555,1,Yn,i8),f.Le=function(t,n){return bFt(c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(tn,"HierarchicalPortConstraintProcessor/NodeComparator",1555),E(1556,1,Pi,r8),f.If=function(t,n){tYt(c(t,37),n)},M(tn,"HierarchicalPortDummySizeProcessor",1556),E(1557,1,Pi,mR),f.If=function(t,n){gWt(this,c(t,37),n)},f.a=0,M(tn,"HierarchicalPortOrthogonalEdgeRouter",1557),E(1558,1,Yn,jd),f.Le=function(t,n){return e7t(c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(tn,"HierarchicalPortOrthogonalEdgeRouter/1",1558),E(1559,1,Yn,Hy),f.Le=function(t,n){return JPt(c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(tn,"HierarchicalPortOrthogonalEdgeRouter/2",1559),E(1560,1,Pi,s8),f.If=function(t,n){qQt(c(t,37),n)},M(tn,"HierarchicalPortPositionProcessor",1560),E(1561,1,Pi,$N),f.If=function(t,n){Wtn(this,c(t,37))},f.a=0,f.c=0;var AU,NU;M(tn,"HighDegreeNodeLayeringProcessor",1561),E(573,1,{573:1},LO),f.b=-1,f.d=-1,M(tn,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",573),E(1562,1,{},fW),f.Kb=function(t){return J_(),vr(c(t,9))},f.Fb=function(t){return this===t},M(tn,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1562),E(1563,1,{},rA),f.Kb=function(t){return J_(),Fi(c(t,9))},f.Fb=function(t){return this===t},M(tn,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1563),E(1569,1,Pi,sA),f.If=function(t,n){UKt(this,c(t,37),n)},M(tn,"HyperedgeDummyMerger",1569),E(798,1,{},W0e),f.a=!1,f.b=!1,f.c=!1,M(tn,"HyperedgeDummyMerger/MergeState",798),E(1570,1,{},PO),f.Kb=function(t){return new Tt(null,new Et(c(t,26).a,16))},M(tn,"HyperedgeDummyMerger/lambda$0$Type",1570),E(1571,1,{},o8),f.Kb=function(t){return new Tt(null,new Et(c(t,9).j,16))},M(tn,"HyperedgeDummyMerger/lambda$1$Type",1571),E(1572,1,ln,wR),f.Ad=function(t){c(t,12).p=-1},M(tn,"HyperedgeDummyMerger/lambda$2$Type",1572),E(1573,1,Pi,hW),f.If=function(t,n){GKt(c(t,37),n)},M(tn,"HypernodesProcessor",1573),E(1574,1,Pi,dW),f.If=function(t,n){eYt(c(t,37),n)},M(tn,"InLayerConstraintProcessor",1574),E(1575,1,Pi,gW),f.If=function(t,n){SRt(c(t,37),n)},M(tn,"InnermostNodeMarginCalculator",1575),E(1576,1,Pi,oA),f.If=function(t,n){utn(this,c(t,37))},f.a=Gr,f.b=Gr,f.c=sr,f.d=sr;var sin=M(tn,"InteractiveExternalPortPositioner",1576);E(1577,1,{},pW),f.Kb=function(t){return c(t,17).d.i},f.Fb=function(t){return this===t},M(tn,"InteractiveExternalPortPositioner/lambda$0$Type",1577),E(1578,1,{},d_e),f.Kb=function(t){return i7t(this.a,be(t))},f.Fb=function(t){return this===t},M(tn,"InteractiveExternalPortPositioner/lambda$1$Type",1578),E(1579,1,{},bW),f.Kb=function(t){return c(t,17).c.i},f.Fb=function(t){return this===t},M(tn,"InteractiveExternalPortPositioner/lambda$2$Type",1579),E(1580,1,{},g_e),f.Kb=function(t){return r7t(this.a,be(t))},f.Fb=function(t){return this===t},M(tn,"InteractiveExternalPortPositioner/lambda$3$Type",1580),E(1581,1,{},p_e),f.Kb=function(t){return Z7t(this.a,be(t))},f.Fb=function(t){return this===t},M(tn,"InteractiveExternalPortPositioner/lambda$4$Type",1581),E(1582,1,{},b_e),f.Kb=function(t){return eEt(this.a,be(t))},f.Fb=function(t){return this===t},M(tn,"InteractiveExternalPortPositioner/lambda$5$Type",1582),E(80,23,{3:1,34:1,23:1,80:1,177:1},Mr),f.bg=function(){switch(this.g){case 15:return new p2;case 22:return new gm;case 48:return new EA;case 29:case 36:return new jW;case 33:return new e8;case 43:return new aR;case 1:return new fR;case 42:return new d5;case 57:return new Kde((gS(),hP));case 0:return new Kde((gS(),Mce));case 2:return new lW;case 55:return new hR;case 34:return new aW;case 52:return new _O;case 56:return new n8;case 13:return new bR;case 39:return new r8;case 45:return new mR;case 41:return new s8;case 9:return new $N;case 50:return new mze;case 38:return new sA;case 44:return new hW;case 28:return new dW;case 31:return new gW;case 3:return new oA;case 18:return new mW;case 30:return new wW;case 5:return new BN;case 51:return new xW;case 35:return new tz;case 37:return new TW;case 53:return new V8;case 11:return new yR;case 7:return new zN;case 40:return new EW;case 46:return new CW;case 16:return new MW;case 10:return new r$e;case 49:return new DW;case 21:return new LW;case 23:return new Hz((ab(),OC));case 8:return new lA;case 12:return new IW;case 4:return new xR;case 19:return new g6;case 17:return new ER;case 54:return new RO;case 6:return new HW;case 25:return new hPe;case 26:return new Xy;case 47:return new aA;case 32:return new lFe;case 14:return new PR;case 27:return new KW;case 20:return new zO;case 24:return new Hz((ab(),RJ));default:throw V(new qt(Xre+(this.f!=null?this.f:""+this.g)))}};var NOe,_Oe,DOe,LOe,POe,IOe,ROe,$Oe,BOe,zOe,FOe,u3,_U,DU,qOe,HOe,QOe,GOe,UOe,JOe,VOe,KE,XOe,WOe,KOe,YOe,ZOe,Ace,LU,PU,e6e,IU,RU,$U,Rj,Rv,$v,t6e,BU,zU,n6e,FU,qU,i6e,r6e,s6e,o6e,HU,Nce,Tk,QU,GU,UU,JU,c6e,l6e,u6e,a6e,oin=vn(tn,Wre,80,Tn,sit,PEt),qdt;E(1583,1,Pi,mW),f.If=function(t,n){otn(c(t,37),n)},M(tn,"InvertedPortProcessor",1583),E(1584,1,Pi,wW),f.If=function(t,n){nKt(c(t,37),n)},M(tn,"LabelAndNodeSizeProcessor",1584),E(1585,1,Jn,vW),f.Mb=function(t){return c(t,9).k==(Jt(),ur)},M(tn,"LabelAndNodeSizeProcessor/lambda$0$Type",1585),E(1586,1,Jn,vR),f.Mb=function(t){return c(t,9).k==(Jt(),Ar)},M(tn,"LabelAndNodeSizeProcessor/lambda$1$Type",1586),E(1587,1,ln,zFe),f.Ad=function(t){S8t(this.b,this.a,this.c,c(t,9))},f.a=!1,f.c=!1,M(tn,"LabelAndNodeSizeProcessor/lambda$2$Type",1587),E(1588,1,Pi,BN),f.If=function(t,n){$en(c(t,37),n)};var Hdt;M(tn,"LabelDummyInserter",1588),E(1589,1,ld,yW),f.Lb=function(t){return xe($(c(t,70),(Ge(),bd)))===xe((yh(),h9))},f.Fb=function(t){return this===t},f.Mb=function(t){return xe($(c(t,70),(Ge(),bd)))===xe((yh(),h9))},M(tn,"LabelDummyInserter/1",1589),E(1590,1,Pi,xW),f.If=function(t,n){Sen(c(t,37),n)},M(tn,"LabelDummyRemover",1590),E(1591,1,Jn,kW),f.Mb=function(t){return Ze(Ye($(c(t,70),(Ge(),x3))))},M(tn,"LabelDummyRemover/lambda$0$Type",1591),E(1344,1,Pi,tz),f.If=function(t,n){wen(this,c(t,37),n)},f.a=null;var _ce;M(tn,"LabelDummySwitcher",1344),E(295,1,{295:1},trt),f.c=0,f.d=null,f.f=0,M(tn,"LabelDummySwitcher/LabelDummyInfo",295),E(1345,1,{},OW),f.Kb=function(t){return H4(),new Tt(null,new Et(c(t,26).a,16))},M(tn,"LabelDummySwitcher/lambda$0$Type",1345),E(1346,1,Jn,cA),f.Mb=function(t){return H4(),c(t,9).k==(Jt(),ac)},M(tn,"LabelDummySwitcher/lambda$1$Type",1346),E(1347,1,{},m_e),f.Kb=function(t){return H7t(this.a,c(t,9))},M(tn,"LabelDummySwitcher/lambda$2$Type",1347),E(1348,1,ln,w_e),f.Ad=function(t){WAt(this.a,c(t,295))},M(tn,"LabelDummySwitcher/lambda$3$Type",1348),E(1349,1,Yn,SW),f.Le=function(t,n){return TAt(c(t,295),c(n,295))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(tn,"LabelDummySwitcher/lambda$4$Type",1349),E(796,1,Pi,jW),f.If=function(t,n){jPt(c(t,37),n)},M(tn,"LabelManagementProcessor",796),E(1592,1,Pi,TW),f.If=function(t,n){DXt(c(t,37),n)},M(tn,"LabelSideSelector",1592),E(1600,1,Pi,yR),f.If=function(t,n){yYt(c(t,37),n)},M(tn,"LayerConstraintPostprocessor",1600),E(1601,1,Pi,zN),f.If=function(t,n){dJt(c(t,37),n)};var f6e;M(tn,"LayerConstraintPreprocessor",1601),E(368,23,{3:1,34:1,23:1,368:1},pF);var dP,VU,XU,Dce,Qdt=vn(tn,"LayerConstraintPreprocessor/HiddenNodeConnections",368,Tn,lLt,IEt),Gdt;E(1602,1,Pi,EW),f.If=function(t,n){RZt(c(t,37),n)},M(tn,"LayerSizeAndGraphHeightCalculator",1602),E(1603,1,Pi,CW),f.If=function(t,n){mVt(c(t,37),n)},M(tn,"LongEdgeJoiner",1603),E(1604,1,Pi,MW),f.If=function(t,n){gZt(c(t,37),n)},M(tn,"LongEdgeSplitter",1604),E(1605,1,Pi,r$e),f.If=function(t,n){Yen(this,c(t,37),n)},f.e=0,f.f=0,f.j=0,f.k=0,f.n=0,f.o=0;var Udt,Jdt;M(tn,"NodePromotion",1605),E(1606,1,Yn,AW),f.Le=function(t,n){return _$t(c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(tn,"NodePromotion/1",1606),E(1607,1,Yn,NW),f.Le=function(t,n){return N$t(c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(tn,"NodePromotion/2",1607),E(1608,1,{},_W),f.Kb=function(t){return c(t,49),nq(),Bt(),!0},f.Fb=function(t){return this===t},M(tn,"NodePromotion/lambda$0$Type",1608),E(1609,1,{},v_e),f.Kb=function(t){return __t(this.a,c(t,49))},f.Fb=function(t){return this===t},f.a=0,M(tn,"NodePromotion/lambda$1$Type",1609),E(1610,1,{},y_e),f.Kb=function(t){return D_t(this.a,c(t,49))},f.Fb=function(t){return this===t},f.a=0,M(tn,"NodePromotion/lambda$2$Type",1610),E(1611,1,Pi,DW),f.If=function(t,n){Ftn(c(t,37),n)},M(tn,"NorthSouthPortPostprocessor",1611),E(1612,1,Pi,LW),f.If=function(t,n){Jtn(c(t,37),n)},M(tn,"NorthSouthPortPreprocessor",1612),E(1613,1,Yn,PW),f.Le=function(t,n){return WRt(c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(tn,"NorthSouthPortPreprocessor/lambda$0$Type",1613),E(1614,1,Pi,lA),f.If=function(t,n){PKt(c(t,37),n)},M(tn,"PartitionMidprocessor",1614),E(1615,1,Jn,IO),f.Mb=function(t){return ki(c(t,9),(Ge(),Uv))},M(tn,"PartitionMidprocessor/lambda$0$Type",1615),E(1616,1,ln,x_e),f.Ad=function(t){$Nt(this.a,c(t,9))},M(tn,"PartitionMidprocessor/lambda$1$Type",1616),E(1617,1,Pi,IW),f.If=function(t,n){$Vt(c(t,37),n)},M(tn,"PartitionPostprocessor",1617),E(1618,1,Pi,xR),f.If=function(t,n){FWt(c(t,37),n)},M(tn,"PartitionPreprocessor",1618),E(1619,1,Jn,kR),f.Mb=function(t){return ki(c(t,9),(Ge(),Uv))},M(tn,"PartitionPreprocessor/lambda$0$Type",1619),E(1620,1,Jn,OR),f.Mb=function(t){return ki(c(t,9),(Ge(),Uv))},M(tn,"PartitionPreprocessor/lambda$1$Type",1620),E(1621,1,{},SR),f.Kb=function(t){return new Tt(null,new X2(new Ht(Xt(Fi(c(t,9)).a.Jc(),new F))))},M(tn,"PartitionPreprocessor/lambda$2$Type",1621),E(1622,1,Jn,k_e),f.Mb=function(t){return u8t(this.a,c(t,17))},M(tn,"PartitionPreprocessor/lambda$3$Type",1622),E(1623,1,ln,jR),f.Ad=function(t){l$t(c(t,17))},M(tn,"PartitionPreprocessor/lambda$4$Type",1623),E(1624,1,Jn,O_e),f.Mb=function(t){return XAt(this.a,c(t,9))},f.a=0,M(tn,"PartitionPreprocessor/lambda$5$Type",1624),E(1625,1,Pi,g6),f.If=function(t,n){pKt(c(t,37),n)};var h6e,Vdt,Xdt,Wdt,d6e,g6e;M(tn,"PortListSorter",1625),E(1626,1,{},b5),f.Kb=function(t){return xS(),c(t,12).e},M(tn,"PortListSorter/lambda$0$Type",1626),E(1627,1,{},RW),f.Kb=function(t){return xS(),c(t,12).g},M(tn,"PortListSorter/lambda$1$Type",1627),E(1628,1,Yn,$W),f.Le=function(t,n){return mUe(c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(tn,"PortListSorter/lambda$2$Type",1628),E(1629,1,Yn,BW),f.Le=function(t,n){return jqt(c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(tn,"PortListSorter/lambda$3$Type",1629),E(1630,1,Yn,TR),f.Le=function(t,n){return Crt(c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(tn,"PortListSorter/lambda$4$Type",1630),E(1631,1,Pi,ER),f.If=function(t,n){xJt(c(t,37),n)},M(tn,"PortSideProcessor",1631),E(1632,1,Pi,RO),f.If=function(t,n){EWt(c(t,37),n)},M(tn,"ReversedEdgeRestorer",1632),E(1637,1,Pi,hPe),f.If=function(t,n){cqt(this,c(t,37),n)},M(tn,"SelfLoopPortRestorer",1637),E(1638,1,{},$O),f.Kb=function(t){return new Tt(null,new Et(c(t,26).a,16))},M(tn,"SelfLoopPortRestorer/lambda$0$Type",1638),E(1639,1,Jn,zW),f.Mb=function(t){return c(t,9).k==(Jt(),ur)},M(tn,"SelfLoopPortRestorer/lambda$1$Type",1639),E(1640,1,Jn,c8),f.Mb=function(t){return ki(c(t,9),(Ie(),Lw))},M(tn,"SelfLoopPortRestorer/lambda$2$Type",1640),E(1641,1,{},CR),f.Kb=function(t){return c($(c(t,9),(Ie(),Lw)),339)},M(tn,"SelfLoopPortRestorer/lambda$3$Type",1641),E(1642,1,ln,S_e),f.Ad=function(t){vGt(this.a,c(t,339))},M(tn,"SelfLoopPortRestorer/lambda$4$Type",1642),E(799,1,ln,uA),f.Ad=function(t){NGt(c(t,108))},M(tn,"SelfLoopPortRestorer/lambda$5$Type",799),E(1644,1,Pi,aA),f.If=function(t,n){vFt(c(t,37),n)},M(tn,"SelfLoopPostProcessor",1644),E(1645,1,{},fA),f.Kb=function(t){return new Tt(null,new Et(c(t,26).a,16))},M(tn,"SelfLoopPostProcessor/lambda$0$Type",1645),E(1646,1,Jn,MR),f.Mb=function(t){return c(t,9).k==(Jt(),ur)},M(tn,"SelfLoopPostProcessor/lambda$1$Type",1646),E(1647,1,Jn,AR),f.Mb=function(t){return ki(c(t,9),(Ie(),Lw))},M(tn,"SelfLoopPostProcessor/lambda$2$Type",1647),E(1648,1,ln,NR),f.Ad=function(t){THt(c(t,9))},M(tn,"SelfLoopPostProcessor/lambda$3$Type",1648),E(1649,1,{},FW),f.Kb=function(t){return new Tt(null,new Et(c(t,108).f,1))},M(tn,"SelfLoopPostProcessor/lambda$4$Type",1649),E(1650,1,ln,j_e),f.Ad=function(t){iLt(this.a,c(t,342))},M(tn,"SelfLoopPostProcessor/lambda$5$Type",1650),E(1651,1,Jn,qW),f.Mb=function(t){return!!c(t,108).i},M(tn,"SelfLoopPostProcessor/lambda$6$Type",1651),E(1652,1,ln,T_e),f.Ad=function(t){S9t(this.a,c(t,108))},M(tn,"SelfLoopPostProcessor/lambda$7$Type",1652),E(1633,1,Pi,HW),f.If=function(t,n){tVt(c(t,37),n)},M(tn,"SelfLoopPreProcessor",1633),E(1634,1,{},QW),f.Kb=function(t){return new Tt(null,new Et(c(t,108).f,1))},M(tn,"SelfLoopPreProcessor/lambda$0$Type",1634),E(1635,1,{},GW),f.Kb=function(t){return c(t,342).a},M(tn,"SelfLoopPreProcessor/lambda$1$Type",1635),E(1636,1,ln,l1),f.Ad=function(t){ITt(c(t,17))},M(tn,"SelfLoopPreProcessor/lambda$2$Type",1636),E(1653,1,Pi,lFe),f.If=function(t,n){nGt(this,c(t,37),n)},M(tn,"SelfLoopRouter",1653),E(1654,1,{},BO),f.Kb=function(t){return new Tt(null,new Et(c(t,26).a,16))},M(tn,"SelfLoopRouter/lambda$0$Type",1654),E(1655,1,Jn,_R),f.Mb=function(t){return c(t,9).k==(Jt(),ur)},M(tn,"SelfLoopRouter/lambda$1$Type",1655),E(1656,1,Jn,DR),f.Mb=function(t){return ki(c(t,9),(Ie(),Lw))},M(tn,"SelfLoopRouter/lambda$2$Type",1656),E(1657,1,{},LR),f.Kb=function(t){return c($(c(t,9),(Ie(),Lw)),339)},M(tn,"SelfLoopRouter/lambda$3$Type",1657),E(1658,1,ln,GRe),f.Ad=function(t){_Nt(this.a,this.b,c(t,339))},M(tn,"SelfLoopRouter/lambda$4$Type",1658),E(1659,1,Pi,PR),f.If=function(t,n){yXt(c(t,37),n)},M(tn,"SemiInteractiveCrossMinProcessor",1659),E(1660,1,Jn,hA),f.Mb=function(t){return c(t,9).k==(Jt(),ur)},M(tn,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1660),E(1661,1,Jn,UW),f.Mb=function(t){return Oqe(c(t,9))._b((Ge(),Xv))},M(tn,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1661),E(1662,1,Yn,m5),f.Le=function(t,n){return fRt(c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(tn,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1662),E(1663,1,{},dA),f.Te=function(t,n){return RNt(c(t,9),c(n,9))},M(tn,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1663),E(1665,1,Pi,zO),f.If=function(t,n){ten(c(t,37),n)},M(tn,"SortByInputModelProcessor",1665),E(1666,1,Jn,gA),f.Mb=function(t){return c(t,12).g.c.length!=0},M(tn,"SortByInputModelProcessor/lambda$0$Type",1666),E(1667,1,ln,E_e),f.Ad=function(t){IGt(this.a,c(t,12))},M(tn,"SortByInputModelProcessor/lambda$1$Type",1667),E(1746,811,{},QXe),f.bf=function(t){var n,i,r,o;switch(this.c=t,this.a.g){case 2:n=new He,hr(mi(new Tt(null,new Et(this.c.a.b,16)),new qR),new WRe(this,n)),sL(this,new Qy),Uc(n,new w5),n.c.length=0,hr(mi(new Tt(null,new Et(this.c.a.b,16)),new pA),new M_e(n)),sL(this,new RR),Uc(n,new Gy),n.c.length=0,i=DBe($te(K2(new Tt(null,new Et(this.c.a.b,16)),new A_e(this))),new $R),hr(new Tt(null,new Et(this.c.a.a,16)),new JRe(i,n)),sL(this,new zR),Uc(n,new JW),n.c.length=0;break;case 3:r=new He,sL(this,new IR),o=DBe($te(K2(new Tt(null,new Et(this.c.a.b,16)),new C_e(this))),new BR),hr(mi(new Tt(null,new Et(this.c.a.b,16)),new VW),new XRe(o,r)),sL(this,new XW),Uc(r,new FR),r.c.length=0;break;default:throw V(new YLe)}},f.b=0,M(Sr,"EdgeAwareScanlineConstraintCalculation",1746),E(1747,1,ld,IR),f.Lb=function(t){return ae(c(t,60).g,157)},f.Fb=function(t){return this===t},f.Mb=function(t){return ae(c(t,60).g,157)},M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1747),E(1748,1,{},C_e),f.We=function(t){return uUt(this.a,c(t,60))},M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1748),E(1756,1,uG,URe),f.be=function(){q7(this.a,this.b,-1)},f.b=0,M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1756),E(1758,1,ld,Qy),f.Lb=function(t){return ae(c(t,60).g,157)},f.Fb=function(t){return this===t},f.Mb=function(t){return ae(c(t,60).g,157)},M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1758),E(1759,1,ln,w5),f.Ad=function(t){c(t,376).be()},M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1759),E(1760,1,Jn,pA),f.Mb=function(t){return ae(c(t,60).g,9)},M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1760),E(1762,1,ln,M_e),f.Ad=function(t){JBt(this.a,c(t,60))},M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1762),E(1761,1,uG,ZRe),f.be=function(){q7(this.b,this.a,-1)},f.a=0,M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1761),E(1763,1,ld,RR),f.Lb=function(t){return ae(c(t,60).g,9)},f.Fb=function(t){return this===t},f.Mb=function(t){return ae(c(t,60).g,9)},M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1763),E(1764,1,ln,Gy),f.Ad=function(t){c(t,376).be()},M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1764),E(1765,1,{},A_e),f.We=function(t){return aUt(this.a,c(t,60))},M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1765),E(1766,1,{},$R),f.Ue=function(){return 0},M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1766),E(1749,1,{},BR),f.Ue=function(){return 0},M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1749),E(1768,1,ln,JRe),f.Ad=function(t){bAt(this.a,this.b,c(t,321))},f.a=0,M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1768),E(1767,1,uG,VRe),f.be=function(){Ent(this.a,this.b,-1)},f.b=0,M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1767),E(1769,1,ld,zR),f.Lb=function(t){return c(t,60),!0},f.Fb=function(t){return this===t},f.Mb=function(t){return c(t,60),!0},M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1769),E(1770,1,ln,JW),f.Ad=function(t){c(t,376).be()},M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1770),E(1750,1,Jn,VW),f.Mb=function(t){return ae(c(t,60).g,9)},M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1750),E(1752,1,ln,XRe),f.Ad=function(t){mAt(this.a,this.b,c(t,60))},f.a=0,M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1752),E(1751,1,uG,e$e),f.be=function(){q7(this.b,this.a,-1)},f.a=0,M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1751),E(1753,1,ld,XW),f.Lb=function(t){return c(t,60),!0},f.Fb=function(t){return this===t},f.Mb=function(t){return c(t,60),!0},M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1753),E(1754,1,ln,FR),f.Ad=function(t){c(t,376).be()},M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1754),E(1755,1,Jn,qR),f.Mb=function(t){return ae(c(t,60).g,157)},M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1755),E(1757,1,ln,WRe),f.Ad=function(t){_It(this.a,this.b,c(t,60))},M(Sr,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1757),E(1564,1,Pi,mze),f.If=function(t,n){mZt(this,c(t,37),n)};var Kdt;M(Sr,"HorizontalGraphCompactor",1564),E(1565,1,{},N_e),f.df=function(t,n){var i,r,o;return pme(t,n)||(i=Ex(t),r=Ex(n),i&&i.k==(Jt(),Ar)||r&&r.k==(Jt(),Ar))?0:(o=c($(this.a.a,(Ie(),w3)),317),c7t(o,i?i.k:(Jt(),Cr),r?r.k:(Jt(),Cr)))},f.ef=function(t,n){var i,r,o;return pme(t,n)?1:(i=Ex(t),r=Ex(n),o=c($(this.a.a,(Ie(),w3)),317),l0e(o,i?i.k:(Jt(),Cr),r?r.k:(Jt(),Cr)))},M(Sr,"HorizontalGraphCompactor/1",1565),E(1566,1,{},bA),f.cf=function(t,n){return xT(),t.a.i==0},M(Sr,"HorizontalGraphCompactor/lambda$0$Type",1566),E(1567,1,{},__e),f.cf=function(t,n){return zNt(this.a,t,n)},M(Sr,"HorizontalGraphCompactor/lambda$1$Type",1567),E(1713,1,{},kVe);var Ydt,Zdt;M(Sr,"LGraphToCGraphTransformer",1713),E(1721,1,Jn,h0),f.Mb=function(t){return t!=null},M(Sr,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1721),E(1714,1,{},l8),f.Kb=function(t){return Pu(),To($(c(c(t,60).g,9),(Ie(),Si)))},M(Sr,"LGraphToCGraphTransformer/lambda$0$Type",1714),E(1715,1,{},lg),f.Kb=function(t){return Pu(),RKe(c(c(t,60).g,157))},M(Sr,"LGraphToCGraphTransformer/lambda$1$Type",1715),E(1724,1,Jn,v5),f.Mb=function(t){return Pu(),ae(c(t,60).g,9)},M(Sr,"LGraphToCGraphTransformer/lambda$10$Type",1724),E(1725,1,ln,mA),f.Ad=function(t){PNt(c(t,60))},M(Sr,"LGraphToCGraphTransformer/lambda$11$Type",1725),E(1726,1,Jn,u8),f.Mb=function(t){return Pu(),ae(c(t,60).g,157)},M(Sr,"LGraphToCGraphTransformer/lambda$12$Type",1726),E(1730,1,ln,a8),f.Ad=function(t){fBt(c(t,60))},M(Sr,"LGraphToCGraphTransformer/lambda$13$Type",1730),E(1727,1,ln,D_e),f.Ad=function(t){iTt(this.a,c(t,8))},f.a=0,M(Sr,"LGraphToCGraphTransformer/lambda$14$Type",1727),E(1728,1,ln,L_e),f.Ad=function(t){sTt(this.a,c(t,120))},f.a=0,M(Sr,"LGraphToCGraphTransformer/lambda$15$Type",1728),E(1729,1,ln,P_e),f.Ad=function(t){rTt(this.a,c(t,8))},f.a=0,M(Sr,"LGraphToCGraphTransformer/lambda$16$Type",1729),E(1731,1,{},wA),f.Kb=function(t){return Pu(),new Tt(null,new X2(new Ht(Xt(Fi(c(t,9)).a.Jc(),new F))))},M(Sr,"LGraphToCGraphTransformer/lambda$17$Type",1731),E(1732,1,Jn,Uy),f.Mb=function(t){return Pu(),ys(c(t,17))},M(Sr,"LGraphToCGraphTransformer/lambda$18$Type",1732),E(1733,1,ln,I_e),f.Ad=function(t){lIt(this.a,c(t,17))},M(Sr,"LGraphToCGraphTransformer/lambda$19$Type",1733),E(1717,1,ln,R_e),f.Ad=function(t){RDt(this.a,c(t,157))},M(Sr,"LGraphToCGraphTransformer/lambda$2$Type",1717),E(1734,1,{},HR),f.Kb=function(t){return Pu(),new Tt(null,new Et(c(t,26).a,16))},M(Sr,"LGraphToCGraphTransformer/lambda$20$Type",1734),E(1735,1,{},f8),f.Kb=function(t){return Pu(),new Tt(null,new X2(new Ht(Xt(Fi(c(t,9)).a.Jc(),new F))))},M(Sr,"LGraphToCGraphTransformer/lambda$21$Type",1735),E(1736,1,{},y5),f.Kb=function(t){return Pu(),c($(c(t,17),(Ie(),Ab)),16)},M(Sr,"LGraphToCGraphTransformer/lambda$22$Type",1736),E(1737,1,Jn,WW),f.Mb=function(t){return l7t(c(t,16))},M(Sr,"LGraphToCGraphTransformer/lambda$23$Type",1737),E(1738,1,ln,$_e),f.Ad=function(t){fUt(this.a,c(t,16))},M(Sr,"LGraphToCGraphTransformer/lambda$24$Type",1738),E(1739,1,{},u1),f.Kb=function(t){return Pu(),new Tt(null,new X2(new Ht(Xt(Fi(c(t,9)).a.Jc(),new F))))},M(Sr,"LGraphToCGraphTransformer/lambda$25$Type",1739),E(1740,1,Jn,vA),f.Mb=function(t){return Pu(),ys(c(t,17))},M(Sr,"LGraphToCGraphTransformer/lambda$26$Type",1740),E(1742,1,ln,B_e),f.Ad=function(t){tRt(this.a,c(t,17))},M(Sr,"LGraphToCGraphTransformer/lambda$27$Type",1742),E(1741,1,ln,z_e),f.Ad=function(t){X9t(this.a,c(t,70))},f.a=0,M(Sr,"LGraphToCGraphTransformer/lambda$28$Type",1741),E(1716,1,ln,KRe),f.Ad=function(t){ILt(this.a,this.b,c(t,157))},M(Sr,"LGraphToCGraphTransformer/lambda$3$Type",1716),E(1718,1,{},hm),f.Kb=function(t){return Pu(),new Tt(null,new Et(c(t,26).a,16))},M(Sr,"LGraphToCGraphTransformer/lambda$4$Type",1718),E(1719,1,{},QR),f.Kb=function(t){return Pu(),new Tt(null,new X2(new Ht(Xt(Fi(c(t,9)).a.Jc(),new F))))},M(Sr,"LGraphToCGraphTransformer/lambda$5$Type",1719),E(1720,1,{},h8),f.Kb=function(t){return Pu(),c($(c(t,17),(Ie(),Ab)),16)},M(Sr,"LGraphToCGraphTransformer/lambda$6$Type",1720),E(1722,1,ln,F_e),f.Ad=function(t){kUt(this.a,c(t,16))},M(Sr,"LGraphToCGraphTransformer/lambda$8$Type",1722),E(1723,1,ln,YRe),f.Ad=function(t){MTt(this.a,this.b,c(t,157))},M(Sr,"LGraphToCGraphTransformer/lambda$9$Type",1723),E(1712,1,{},Jy),f.af=function(t){var n,i,r,o,a;for(this.a=t,this.d=new uY,this.c=ke(Yke,Pt,126,this.a.a.a.c.length,0,1),this.b=0,i=new U(this.a.a.a);i.a<i.c.c.length;)n=c(G(i),321),n.d=this.b,a=Im(w_(new Bp,n),this.d),this.c[this.b]=a,++this.b;for(Len(this),Ntn(this),IVt(this),Lie(QZ(this.d),new o4),o=new U(this.a.a.b);o.a<o.c.c.length;)r=c(G(o),60),r.d.c=this.c[r.a.d].e+r.b.a},f.b=0,M(Sr,"NetworkSimplexCompaction",1712),E(157,1,{34:1,157:1},sE),f.Dd=function(t){return pIt(this,c(t,157))},f.Ib=function(){return RKe(this)},M(Sr,"VerticalSegment",157),E(833,1,{},cve),f.c=0,f.e=0,f.i=0,M(xE,"BetweenLayerEdgeTwoNodeCrossingsCounter",833),E(674,1,{674:1},rWe),f.Ib=function(){return"AdjacencyList [node="+this.d+", adjacencies= "+this.a+"]"},f.b=0,f.c=0,f.f=0,M(xE,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList",674),E(296,1,{34:1,296:1},Tze),f.Dd=function(t){return HMt(this,c(t,296))},f.Ib=function(){return"Adjacency [position="+this.c+", cardinality="+this.a+", currentCardinality="+this.b+"]"},f.a=0,f.b=0,f.c=0,M(xE,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList/Adjacency",296),E(2005,1,{},ntt),f.b=0,f.e=!1,M(xE,"CrossingMatrixFiller",2005);var e1t=Zi(Jd,"IInitializable");E(1863,1,kE,t$e),f.eg=function(t,n,i,r,o,a){},f.gg=function(t,n,i){},f.cg=function(){return this.c!=(ab(),OC)},f.dg=function(){this.e=ke(Hn,li,30,this.d,15,1)},f.fg=function(t,n){n[t][0].c.p=t},f.hg=function(t,n,i,r){++this.d},f.ig=function(){return!0},f.jg=function(t,n,i,r){return EKe(this,t,n,i),ZLt(this,n)},f.kg=function(t,n){var i;return i=t8t(n,t.length),EKe(this,t,i,n),BWe(this,i)},f.d=0,M(xE,"GreedySwitchHeuristic",1863),E(2008,1,{},Mqe),f.b=0,f.d=0,M(xE,"NorthSouthEdgeNeighbouringNodeCrossingsCounter",2008),E(1995,1,{},Bit),f.a=!1,M(xE,"SwitchDecider",1995),E(108,1,{108:1},dtt),f.a=null,f.c=null,f.i=null,M(vk,"SelfHyperLoop",108),E(1992,1,{},zYe),f.c=0,f.e=0,M(vk,"SelfHyperLoopLabels",1992),E(418,23,{3:1,34:1,23:1,418:1},bF);var Bv,$j,Bj,Lce,t1t=vn(vk,"SelfHyperLoopLabels/Alignment",418,Tn,uLt,REt),n1t;E(342,1,{342:1},rJe),M(vk,"SelfLoopEdge",342),E(339,1,{339:1},FYe),f.a=!1,M(vk,"SelfLoopHolder",339),E(1777,1,Jn,yA),f.Mb=function(t){return ys(c(t,17))},M(vk,"SelfLoopHolder/lambda$0$Type",1777),E(114,1,{114:1},JYe),f.a=!1,f.c=!1,M(vk,"SelfLoopPort",114),E(1849,1,Jn,GR),f.Mb=function(t){return ys(c(t,17))},M(vk,"SelfLoopPort/lambda$0$Type",1849),E(372,23,{3:1,34:1,23:1,372:1},O_);var WU,gP,KU,YU,ZU,i1t=vn(vk,"SelfLoopType",372,Tn,rPt,$Et),r1t;E(1785,1,{},X8);var s1t,o1t,c1t,l1t;M(Uu,"PortRestorer",1785),E(369,23,{3:1,34:1,23:1,369:1},HY);var Mw,Y0,Aw,Pce=vn(Uu,"PortRestorer/PortSideArea",369,Tn,hDt,FEt),u1t;E(1786,1,{},xA),f.Kb=function(t){return $0(),c(t,16).Mc()},M(Uu,"PortRestorer/lambda$0$Type",1786),E(1787,1,ln,UR),f.Ad=function(t){$0(),c(t,114).c=!1},M(Uu,"PortRestorer/lambda$1$Type",1787),E(1796,1,Jn,ug),f.Mb=function(t){return $0(),c(t,12).j==(Ue(),Yt)},M(Uu,"PortRestorer/lambda$10$Type",1796),E(1797,1,{},x5),f.Kb=function(t){return $0(),c(t,114).d},M(Uu,"PortRestorer/lambda$11$Type",1797),E(1798,1,ln,q_e),f.Ad=function(t){W9t(this.a,c(t,12))},M(Uu,"PortRestorer/lambda$12$Type",1798),E(1788,1,ln,H_e),f.Ad=function(t){O7t(this.a,c(t,108))},M(Uu,"PortRestorer/lambda$2$Type",1788),E(1789,1,Yn,k5),f.Le=function(t,n){return FIt(c(t,114),c(n,114))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Uu,"PortRestorer/lambda$3$Type",1789),E(1790,1,Jn,d8),f.Mb=function(t){return $0(),c(t,114).c},M(Uu,"PortRestorer/lambda$4$Type",1790),E(1791,1,Jn,FO),f.Mb=function(t){return PRt(c(t,12))},M(Uu,"PortRestorer/lambda$5$Type",1791),E(1792,1,Jn,ag),f.Mb=function(t){return $0(),c(t,12).j==(Ue(),Kt)},M(Uu,"PortRestorer/lambda$6$Type",1792),E(1793,1,Jn,fg),f.Mb=function(t){return $0(),c(t,12).j==(Ue(),nn)},M(Uu,"PortRestorer/lambda$7$Type",1793),E(1794,1,Jn,f2),f.Mb=function(t){return TLt(c(t,12))},M(Uu,"PortRestorer/lambda$8$Type",1794),E(1795,1,Jn,Mp),f.Mb=function(t){return $0(),c(t,12).j==(Ue(),mn)},M(Uu,"PortRestorer/lambda$9$Type",1795),E(277,23,{3:1,34:1,23:1,277:1},_4);var Ice,Rce,$ce,Bce,zce,Fce,qce,Hce,p6e=vn(Uu,"PortSideAssigner/Target",277,Tn,xIt,qEt),a1t;E(1778,1,{},Ap),f.Kb=function(t){return mi(new Tt(null,new Et(c(t,108).j,16)),new cf)},M(Uu,"PortSideAssigner/lambda$1$Type",1778),E(1779,1,{},dm),f.Kb=function(t){return c(t,114).d},M(Uu,"PortSideAssigner/lambda$2$Type",1779),E(1780,1,ln,JR),f.Ad=function(t){$r(c(t,12),(Ue(),Kt))},M(Uu,"PortSideAssigner/lambda$3$Type",1780),E(1781,1,{},kA),f.Kb=function(t){return c(t,114).d},M(Uu,"PortSideAssigner/lambda$4$Type",1781),E(1782,1,ln,Q_e),f.Ad=function(t){u9t(this.a,c(t,12))},M(Uu,"PortSideAssigner/lambda$5$Type",1782),E(1783,1,Yn,OA),f.Le=function(t,n){return rNt(c(t,108),c(n,108))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Uu,"PortSideAssigner/lambda$6$Type",1783),E(1784,1,Yn,VR),f.Le=function(t,n){return RMt(c(t,114),c(n,114))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Uu,"PortSideAssigner/lambda$7$Type",1784),E(814,1,Jn,cf),f.Mb=function(t){return c(t,114).c},M(Uu,"PortSideAssigner/lambda$8$Type",814),E(2087,1,{}),M(G0,"AbstractSelfLoopRouter",2087),E(1803,1,Yn,jl),f.Le=function(t,n){return lEt(c(t,108),c(n,108))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(G0,xct,1803),E(1804,1,Yn,Oo),f.Le=function(t,n){return uEt(c(t,108),c(n,108))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(G0,kct,1804),E(1850,2087,{},h2),f.lg=function(t,n,i){return i},M(G0,"OrthogonalSelfLoopRouter",1850),E(1852,1,ln,n$e),f.Ad=function(t){w2e(this.b,this.a,c(t,8))},M(G0,"OrthogonalSelfLoopRouter/lambda$0$Type",1852),E(1851,1850,{},hg),f.lg=function(t,n,i){var r,o;return r=t.c.d,z6(i,0,Oi(As(r.n),r.a)),o=t.d.d,ei(i,Oi(As(o.n),o.a)),AKt(i)},M(G0,"PolylineSelfLoopRouter",1851),E(1799,1,{},AK),f.a=null;var a3;M(G0,"RoutingDirector",1799),E(1800,1,Yn,SA),f.Le=function(t,n){return LMt(c(t,114),c(n,114))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(G0,"RoutingDirector/lambda$0$Type",1800),E(1801,1,{},d2),f.Kb=function(t){return tF(),c(t,108).j},M(G0,"RoutingDirector/lambda$1$Type",1801),E(1802,1,ln,XR),f.Ad=function(t){tF(),c(t,16).gd(a3)},M(G0,"RoutingDirector/lambda$2$Type",1802),E(1805,1,{},WR),M(G0,"RoutingSlotAssigner",1805),E(1806,1,Jn,G_e),f.Mb=function(t){return B8t(this.a,c(t,108))},M(G0,"RoutingSlotAssigner/lambda$0$Type",1806),E(1807,1,Yn,U_e),f.Le=function(t,n){return nAt(this.a,c(t,108),c(n,108))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(G0,"RoutingSlotAssigner/lambda$1$Type",1807),E(1853,1850,{},O5),f.lg=function(t,n,i){var r,o,a,d;return r=de(be(fQ(t.b.g.b,(Ge(),k3)))),d=new Mze(Y(K(Wr,1),Fe,8,0,[(a=t.c.d,Oi(new Ms(a.n),a.a))])),oVt(t,n,i,d,r),ei(d,(o=t.d.d,Oi(new Ms(o.n),o.a))),gZe(new sxe(d))},M(G0,"SplineSelfLoopRouter",1853),E(516,1,Yn,ewe,UHe),f.Le=function(t,n){return xL(this,c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},f.a=!1,M(xG,"ModelOrderNodeComparator",516),E(1808,1,Jn,Vy),f.Mb=function(t){return c(t,12).e.c.length!=0},M(xG,"ModelOrderNodeComparator/lambda$0$Type",1808),E(579,1,Jn,S5),f.Mb=function(t){return c(t,12).e.c.length!=0},M(xG,"ModelOrderNodeComparator/lambda$1$Type",579),E(580,1,Jn,g2),f.Mb=function(t){return c(t,12).g.c.length!=0},M(xG,"ModelOrderNodeComparator/lambda$2$Type",580),E(663,1,Yn,ZKe,fme),f.Le=function(t,n){return Vqe(this,t,n)},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},f.c=!1,M(xG,"ModelOrderPortComparator",663),E(1643,1,Pi,Xy),f.If=function(t,n){pnn(c(t,37))},M("org.eclipse.elk.alg.layered.intermediate.unzipping","AlternatingLayerUnzipper",1643),E(809,1,{},Np),f.mg=function(t,n){var i,r,o,a;for(o=Ket(n),i=new He,a=n.f/o,r=1;r<o;++r)Qe(i,$e(Gn(tc(p.Math.round(r*a)))));return i},f.ng=function(){return!1},M(ad,"ARDCutIndexHeuristic",809),E(1522,1,Pi,p2),f.If=function(t,n){VWt(c(t,37),n)},M(ad,"BreakingPointInserter",1522),E(318,1,{318:1},Lbe),f.Ib=function(){var t;return t=new g0,t.a+="BPInfo[",t.a+=`
	start=`,Ec(t,this.i),t.a+=`
	end=`,Ec(t,this.a),t.a+=`
	nodeStartEdge=`,Ec(t,this.e),t.a+=`
	startEndEdge=`,Ec(t,this.j),t.a+=`
	originalEdge=`,Ec(t,this.f),t.a+=`
	startInLayerDummy=`,Ec(t,this.k),t.a+=`
	startInLayerEdge=`,Ec(t,this.n),t.a+=`
	endInLayerDummy=`,Ec(t,this.b),t.a+=`
	endInLayerEdge=`,Ec(t,this.c),t.a},M(ad,"BreakingPointInserter/BPInfo",318),E(657,1,{657:1},nDe),f.a=!1,f.b=0,f.c=0,M(ad,"BreakingPointInserter/Cut",657),E(1523,1,Pi,gm),f.If=function(t,n){fVt(c(t,37),n)},M(ad,"BreakingPointProcessor",1523),E(1524,1,Jn,jA),f.Mb=function(t){return zVe(c(t,9))},M(ad,"BreakingPointProcessor/0methodref$isEnd$Type",1524),E(1525,1,Jn,TA),f.Mb=function(t){return FVe(c(t,9))},M(ad,"BreakingPointProcessor/1methodref$isStart$Type",1525),E(1526,1,Pi,EA),f.If=function(t,n){LVt(this,c(t,37),n)},M(ad,"BreakingPointRemover",1526),E(1527,1,ln,j5),f.Ad=function(t){c(t,134).k=!0},M(ad,"BreakingPointRemover/lambda$0$Type",1527),E(805,1,{},iye),f.b=0,f.e=0,f.f=0,f.j=0,M(ad,"GraphStats",805),E(806,1,{},qO),f.Te=function(t,n){return p.Math.max(de(be(t)),de(be(n)))},M(ad,"GraphStats/0methodref$max$Type",806),E(807,1,{},b2),f.Te=function(t,n){return p.Math.max(de(be(t)),de(be(n)))},M(ad,"GraphStats/2methodref$max$Type",807),E(1709,1,{},Ff),f.Te=function(t,n){return OCt(be(t),be(n))},M(ad,"GraphStats/lambda$1$Type",1709),E(1710,1,{},J_e),f.Kb=function(t){return UYe(this.a,c(t,26))},M(ad,"GraphStats/lambda$2$Type",1710),E(1711,1,{},V_e),f.Kb=function(t){return Ynt(this.a,c(t,26))},M(ad,"GraphStats/lambda$6$Type",1711),E(808,1,{},HO),f.mg=function(t,n){var i;return i=c($(t,(Ge(),kje)),16),i||(Mt(),Mt(),$s)},f.ng=function(){return!1},M(ad,"ICutIndexCalculator/ManualCutIndexCalculator",808),E(810,1,{},CA),f.mg=function(t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je;for(je=(n.n==null&&vZe(n),n.n),v=(n.d==null&&vZe(n),n.d),me=ke(is,io,30,je.length,15,1),me[0]=je[0],re=je[0],x=1;x<je.length;x++)me[x]=me[x-1]+je[x],re+=je[x];for(o=Ket(n)-1,d=c($(t,(Ge(),Oje)),15).a,r=Gr,i=new He,L=p.Math.max(0,o-d);L<=p.Math.min(n.f-1,o+d);L++){if(Q=re/(L+1),W=0,T=1,a=new He,le=Gr,A=0,b=0,z=v[0],L==0)le=re,b=(n.g==null&&(n.g=YXe(n,new b2)),de(n.g));else{for(;T<n.f;)me[T-1]-W>=Q&&(Qe(a,$e(T)),le=p.Math.max(le,me[T-1]-A),b+=z,W+=me[T-1]-W,A=me[T-1],z=v[T]),z=p.Math.max(z,v[T]),++T;b+=z}I=p.Math.min(1/le,1/n.b/b),I>r&&(r=I,i=a)}return i},f.ng=function(){return!1},M(ad,"MSDCutIndexHeuristic",810),E(1664,1,Pi,KW),f.If=function(t,n){xYt(c(t,37),n)},M(ad,"SingleEdgeGraphWrapper",1664),E(233,23,{3:1,34:1,23:1,233:1},CT);var f3,zj,Fj,zv,YE,h3,qj=vn(Xo,"CenterEdgeLabelPlacementStrategy",233,Tn,RPt,zEt),f1t;E(427,23,{3:1,34:1,23:1,427:1},cge);var b6e,Qce,m6e=vn(Xo,"ConstraintCalculationStrategy",427,Tn,i_t,BEt),h1t;E(302,23,{3:1,34:1,23:1,302:1,173:1,177:1},mF),f.bg=function(){return Rnt(this)},f.og=function(){return Rnt(this)};var pP,ZE,w6e,v6e,y6e=vn(Xo,"CrossingMinimizationStrategy",302,Tn,dLt,HEt),d1t;E(351,23,{3:1,34:1,23:1,351:1},QY);var x6e,Gce,eJ,k6e=vn(Xo,"CuttingStrategy",351,Tn,eDt,QEt),g1t;E(268,23,{3:1,34:1,23:1,268:1,173:1,177:1},fx),f.bg=function(){return qit(this)},f.og=function(){return qit(this)};var Uce,O6e,Jce,Vce,Xce,Wce,Kce,Yce,bP,S6e=vn(Xo,"CycleBreakingStrategy",268,Tn,VIt,GEt),p1t;E(424,23,{3:1,34:1,23:1,424:1},lge);var tJ,j6e,T6e=vn(Xo,"DirectionCongruency",424,Tn,r_t,UEt),b1t;E(452,23,{3:1,34:1,23:1,452:1},GY);var Hj,Zce,d3,m1t=vn(Xo,"EdgeConstraint",452,Tn,tDt,JEt),w1t;E(286,23,{3:1,34:1,23:1,286:1},MT);var ele,tle,nle,ile,nJ,rle,E6e=vn(Xo,"EdgeLabelSideSelection",286,Tn,LPt,VEt),v1t;E(479,23,{3:1,34:1,23:1,479:1},uge);var iJ,C6e,M6e=vn(Xo,"EdgeStraighteningStrategy",479,Tn,s_t,XEt),y1t;E(284,23,{3:1,34:1,23:1,284:1},AT);var sle,A6e,N6e,rJ,_6e,D6e,L6e=vn(Xo,"FixedAlignment",284,Tn,PPt,WEt),x1t;E(285,23,{3:1,34:1,23:1,285:1},NT);var P6e,I6e,R6e,$6e,eC,B6e,z6e=vn(Xo,"GraphCompactionStrategy",285,Tn,IPt,KEt),k1t;E(262,23,{3:1,34:1,23:1,262:1},P2);var Qj,sJ,Gj,Ca,tC,oJ,Uj,g3,cJ,nC,ole=vn(Xo,"GraphProperties",262,Tn,pRt,YEt),O1t;E(303,23,{3:1,34:1,23:1,303:1},UY);var mP,cle,lle,ule=vn(Xo,"GreedySwitchType",303,Tn,Z_t,ZEt),S1t;E(330,23,{3:1,34:1,23:1,330:1},JY);var Fv,F6e,wP,ale=vn(Xo,"GroupOrderStrategy",330,Tn,K_t,eCt),j1t;E(316,23,{3:1,34:1,23:1,316:1},VY);var Ek,vP,p3,T1t=vn(Xo,"InLayerConstraint",316,Tn,Y_t,tCt),E1t;E(425,23,{3:1,34:1,23:1,425:1},age);var fle,q6e,H6e=vn(Xo,"InteractiveReferencePoint",425,Tn,e_t,nCt),C1t,Q6e,Ck,Nw,yP,lJ,G6e,U6e,uJ,J6e,Mk,aJ,iC,Ak,Q1,hle,fJ,Yo,V6e,Z0,Rc,dle,gle,xP,Mb,_w,Nk,X6e,M1t,_k,kP,qv,ih,Wa,ple,b3,ep,Ri,Si,W6e,K6e,Y6e,Z6e,eSe,ble,hJ,Jl,Dw,mle,Dk,rC,Ug,m3,Lw,w3,v3,Jj,Ab,tSe,wle,vle,sC,Lk,dJ,Pk,y3;E(166,23,{3:1,34:1,23:1,166:1},S_);var oC,G1,cC,Nb,OP,nSe=vn(Xo,"LayerConstraint",166,Tn,lPt,iCt),A1t;E(428,23,{3:1,34:1,23:1,428:1},fge);var yle,xle,iSe=vn(Xo,"LayerUnzippingStrategy",428,Tn,t_t,rCt),N1t;E(851,1,jf,iz),f.tf=function(t){at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,a3e),""),"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."),bSe),(z0(),Vi)),T6e),bt((kh(),_t))))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,f3e),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Bt(),!1)),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,kG),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),kSe),Vi),H6e),bt(_t)))),er(t,kG,GL,Pgt),er(t,kG,OE,Lgt),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,h3e),""),"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),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,d3e),""),"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),Ir),or),bt(_t)))),at(t,new nt(K9t(lt(ct(ut(yt(it(ot(rt(st(new et,g3e),""),"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),Ir),or),bt(Kg)),Y(K(tt,1),Fe,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,p3e),""),"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."),DSe),Vi),Qje),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,b3e),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),$e(7)),Ts),Pr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,m3e),""),"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),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,w3e),""),"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),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,GL),"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)."),pSe),Vi),S6e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,UL),Nse),"Node Layering Strategy"),"Strategy for node layering."),jSe),Vi),_je),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,v3e),Nse),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),OSe),Vi),nSe),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,y3e),Nse),"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),Ts),Pr),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,x3e),Nse),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),$e(-1)),Ts),Pr),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Zre),tlt),"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."),$e(4)),Ts),Pr),bt(_t)))),er(t,Zre,UL,qgt),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,ese),tlt),"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."),$e(2)),Ts),Pr),bt(_t)))),er(t,ese,UL,Qgt),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,tse),nlt),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),SSe),Vi),Fje),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,nse),nlt),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),$e(0)),Ts),Pr),bt(_t)))),er(t,nse,tse,null),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,ise),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),$e(gi)),Ts),Pr),bt(_t)))),er(t,ise,UL,Rgt),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,OE),mj),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),gSe),Vi),y6e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,k3e),mj),"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),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,rse),mj),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),us),jr),bt(_t)))),er(t,rse,PG,cgt),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,sse),mj),"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),Ir),or),bt(_t)))),er(t,sse,OE,dgt),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,O3e),mj),"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),qk),tt),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,S3e),mj),"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),qk),tt),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,j3e),mj),"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),Ts),Pr),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,T3e),mj),"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."),$e(-1)),Ts),Pr),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,E3e),ilt),"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."),$e(40)),Ts),Pr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,ose),ilt),"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."),dSe),Vi),ule),bt(_t)))),er(t,ose,OE,sgt),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,OG),"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."),hSe),Vi),ule),bt(_t)))),er(t,OG,OE,ngt),er(t,OG,PG,igt),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Zx),rlt),"Node Placement Strategy"),"Strategy for node placement."),_Se),Vi),Ije),bt(_t)))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,SG),rlt),"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."),Ir),or),bt(_t)))),er(t,SG,Zx,c0t),er(t,SG,Zx,l0t),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,cse),slt),"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."),MSe),Vi),M6e),bt(_t)))),er(t,cse,Zx,i0t),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,lse),slt),"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."),ASe),Vi),L6e),bt(_t)))),er(t,lse,Zx,s0t),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,use),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),us),jr),bt(_t)))),er(t,use,Zx,a0t),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,ase),"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."),Vi),Vle),bt(pr)))),er(t,ase,Zx,g0t),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,fse),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),NSe),Vi),Vle),bt(_t)))),er(t,fse,Zx,d0t),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,C3e),olt),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),vSe),Vi),Jje),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,M3e),olt),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),ySe),Vi),Vje),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,jG),"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."),xSe),Vi),Wje),bt(_t)))),er(t,jG,VL,Sgt),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,TG),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),us),jr),bt(_t)))),er(t,TG,VL,Tgt),er(t,TG,jG,Egt),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,hse),"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),us),jr),bt(_t)))),er(t,hse,VL,ygt),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,A3e),Ah),"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."),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,N3e),Ah),"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),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,_3e),Ah),"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),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,D3e),Ah),"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),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,L3e),U3e),"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."),$e(0)),Ts),Pr),bt(sh)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,P3e),U3e),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),$e(0)),Ts),Pr),bt(sh)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,I3e),U3e),"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."),$e(0)),Ts),Pr),bt(sh)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,dse),J3e),"Connected Components Compaction"),"Tries to further compact components (disconnected sub-graphs)."),!1),Ir),or),bt(_t)))),er(t,dse,vE,!0),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,R3e),clt),"Post Compaction Strategy"),llt),sSe),Vi),z6e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,$3e),clt),"Post Compaction Constraint Calculation"),llt),rSe),Vi),m6e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,EG),V3e),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,gse),V3e),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),$e(16)),Ts),Pr),bt(_t)))),er(t,gse,EG,!0),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,pse),V3e),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),$e(5)),Ts),Pr),bt(_t)))),er(t,pse,EG,!0),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,F1),X3e),"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'."),ISe),Vi),e9e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,CG),X3e),"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),us),jr),bt(_t)))),er(t,CG,F1,E0t),er(t,CG,F1,C0t),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,MG),X3e),"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),us),jr),bt(_t)))),er(t,MG,F1,A0t),er(t,MG,F1,N0t),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,SE),ult),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),PSe),Vi),k6e),bt(_t)))),er(t,SE,F1,R0t),er(t,SE,F1,$0t),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,bse),ult),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),Ph),Ju),bt(_t)))),er(t,bse,SE,D0t),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,mse),"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."),LSe),Ts),Pr),bt(_t)))),er(t,mse,SE,P0t),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,AG),alt),"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."),RSe),Vi),Zje),bt(_t)))),er(t,AG,F1,W0t),er(t,AG,F1,K0t),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,NG),alt),"Valid Indices for Wrapping"),null),Ph),Ju),bt(_t)))),er(t,NG,F1,J0t),er(t,NG,F1,V0t),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,_G),W3e),"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),Ir),or),bt(_t)))),er(t,_G,F1,q0t),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,DG),W3e),"Distance Penalty When Improving Cuts"),null),2),us),jr),bt(_t)))),er(t,DG,F1,z0t),er(t,DG,_G,!0),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,wse),W3e),"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),Ir),or),bt(_t)))),er(t,wse,F1,Q0t),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,vse),_se),"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'."),CSe),Vi),iSe),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,yse),_se),"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),Ir),or),bt(pr)))),er(t,yse,xse,Wgt),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,xse),_se),"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."),TSe),Ts),Pr),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,kse),_se),"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."),ESe),Ir),or),bt(pr)))),er(t,kse,vse,Ygt),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,B3e),Dse),"Edge Label Side Selection"),"Method to decide on edge label sides."),wSe),Vi),E6e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,z3e),Dse),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),mSe),Vi),qj),Li(_t,Y(K(Lh,1),Pe,161,0,[J1]))))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,LG),jE),"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."),fSe),Vi),Hje),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,F3e),jE),"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),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,JL),jE),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),Ir),or),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Ose),jE),"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."),oSe),Vi),kOe),bt(_t)))),er(t,Ose,vE,null),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,q3e),jE),"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."),aSe),Vi),Lje),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Sse),jE),"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),us),jr),bt(_t)))),er(t,Sse,LG,null),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,jse),jE),"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),us),jr),bt(_t)))),er(t,jse,LG,null),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Tse),wj),K3e),"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."),$e(0)),Ts),Pr),bt(pr)))),er(t,Tse,JL,!1),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Ese),wj),K3e),"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."),$e(0)),Ts),Pr),Li(pr,Y(K(Lh,1),Pe,161,0,[sh,Kg]))))),er(t,Ese,JL,!1),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Cse),wj),K3e),"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."),$e(0)),Ts),Pr),Li(pr,Y(K(Lh,1),Pe,161,0,[sh,Kg]))))),er(t,Cse,JL,!1),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,H3e),wj),"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."),cSe),Vi),ale),bt(_t)))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,Mse),wj),"Cycle Breaking Preferred Source Id"),"The model order group id for which should be preferred as a source if possible."),Ts),Pr),bt(_t)))),er(t,Mse,GL,F1t),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,Ase),wj),"Cycle Breaking Preferred Target Id"),"The model order group id for which should be preferred as a target if possible."),Ts),Pr),bt(_t)))),er(t,Ase,GL,H1t),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Q3e),wj),"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."),uSe),Vi),ale),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,G3e),wj),"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."),lSe),Ph),Ju),bt(_t)))),Aot((new qN,t))};var _1t,D1t,L1t,rSe,P1t,sSe,I1t,oSe,R1t,$1t,B1t,cSe,z1t,F1t,q1t,H1t,Q1t,lSe,G1t,uSe,U1t,J1t,V1t,X1t,aSe,W1t,K1t,Y1t,fSe,Z1t,egt,tgt,hSe,ngt,igt,rgt,dSe,sgt,ogt,cgt,lgt,ugt,agt,fgt,hgt,dgt,ggt,gSe,pgt,pSe,bgt,bSe,mgt,mSe,wgt,wSe,vgt,ygt,xgt,vSe,kgt,ySe,Ogt,xSe,Sgt,jgt,Tgt,Egt,Cgt,Mgt,Agt,Ngt,_gt,Dgt,kSe,Lgt,Pgt,Igt,Rgt,$gt,Bgt,OSe,zgt,Fgt,qgt,Hgt,Qgt,Ggt,Ugt,SSe,Jgt,jSe,Vgt,TSe,Xgt,Wgt,Kgt,ESe,Ygt,Zgt,CSe,e0t,t0t,n0t,MSe,i0t,r0t,ASe,s0t,o0t,c0t,l0t,u0t,a0t,f0t,h0t,NSe,d0t,g0t,p0t,_Se,b0t,DSe,m0t,w0t,v0t,y0t,x0t,k0t,O0t,S0t,j0t,T0t,E0t,C0t,M0t,A0t,N0t,_0t,D0t,L0t,LSe,P0t,I0t,PSe,R0t,$0t,B0t,z0t,F0t,q0t,H0t,Q0t,G0t,ISe,U0t,J0t,V0t,X0t,RSe,W0t,K0t;M(Xo,"LayeredMetaDataProvider",851),E(991,1,jf,qN),f.tf=function(t){Aot(t)};var pd,kle,gJ,lC,pJ,$Se,bJ,uC,SP,Ole,Ik,BSe,zSe,FSe,aC,Y0t,fC,Hv,Sle,mJ,jle,Kd,Tle,Vj,qSe,jP,Ele,HSe,Z0t,ept,tpt,wJ,Cle,hC,Rk,npt,Vu,QSe,GSe,vJ,x3,bd,yJ,U1,USe,JSe,VSe,Mle,Ale,XSe,Jg,Nle,WSe,Qv,KSe,YSe,ZSe,xJ,Gv,_b,eje,tje,go,nje,ipt,$o,dC,ije,rje,sje,TP,kJ,OJ,_le,Dle,oje,SJ,cje,lje,jJ,Pw,uje,Lle,gC,aje,Iw,pC,TJ,Db,Ple,Xj,EJ,Lb,fje,hje,dje,Uv,gje,rpt,spt,opt,cpt,Rw,Jv,ar,Vg,lpt,Vv,pje,Wj,bje,Xv,upt,Kj,mje,$k,apt,fpt,EP,Ile,wje,CP,Mf,Wv,k3,Pb,tp,CJ,Kv,Rle,Yj,Zj,Ib,Yv,$le,MP,bC,mC,hpt,dpt,gpt,vje,ppt,Ble,yje,xje,kje,Oje,zle,Sje,jje,Tje,Eje,Fle,MJ;M(Xo,"LayeredOptions",991),E(992,1,{},YW),f.uf=function(){var t;return t=new nPe,t},f.vf=function(t){},M(Xo,"LayeredOptions/LayeredFactory",992),E(1357,1,{}),f.a=0;var bpt;M(ic,"ElkSpacings/AbstractSpacingsBuilder",1357),E(785,1357,{},Kwe);var AJ,mpt;M(Xo,"LayeredSpacings/LayeredSpacingsBuilder",785),E(269,23,{3:1,34:1,23:1,269:1,173:1,177:1},hx),f.bg=function(){return $it(this)},f.og=function(){return $it(this)};var qle,Hle,Qle,Cje,Mje,Aje,NJ,Gle,Nje,_je=vn(Xo,"LayeringStrategy",269,Tn,XIt,uCt),wpt;E(353,23,{3:1,34:1,23:1,353:1},XY);var Ule,Dje,_J,Lje=vn(Xo,"LongEdgeOrderingStrategy",353,Tn,oDt,oCt),vpt;E(205,23,{3:1,34:1,23:1,205:1},wF);var O3,S3,DJ,Jle,Vle=vn(Xo,"NodeFlexibility",205,Tn,fLt,sCt),ypt;E(329,23,{3:1,34:1,23:1,329:1,173:1,177:1},j_),f.bg=function(){return Wet(this)},f.og=function(){return Wet(this)};var wC,Xle,Wle,vC,Pje,Ije=vn(Xo,"NodePlacementStrategy",329,Tn,cPt,cCt),xpt;E(246,23,{3:1,34:1,23:1,246:1},I2);var Rje,e9,yC,AP,$je,Bje,NP,zje,LJ,PJ,Fje=vn(Xo,"NodePromotionStrategy",246,Tn,gRt,lCt),kpt;E(270,23,{3:1,34:1,23:1,270:1},vF);var qje,np,Kle,Yle,Hje=vn(Xo,"OrderingStrategy",270,Tn,hLt,aCt),Opt;E(426,23,{3:1,34:1,23:1,426:1},hge);var Zle,eue,Qje=vn(Xo,"PortSortingStrategy",426,Tn,n_t,fCt),Spt;E(455,23,{3:1,34:1,23:1,455:1},WY);var Vl,Yc,xC,jpt=vn(Xo,"PortType",455,Tn,nDt,hCt),Tpt;E(382,23,{3:1,34:1,23:1,382:1},KY);var Gje,tue,Uje,Jje=vn(Xo,"SelfLoopDistributionStrategy",382,Tn,iDt,dCt),Ept;E(349,23,{3:1,34:1,23:1,349:1},YY);var nue,_P,iue,Vje=vn(Xo,"SelfLoopOrderingStrategy",349,Tn,rDt,gCt),Cpt;E(317,1,{317:1},jst),M(Xo,"Spacings",317),E(350,23,{3:1,34:1,23:1,350:1},ZY);var rue,Xje,kC,Wje=vn(Xo,"SplineRoutingMode",350,Tn,sDt,pCt),Mpt;E(352,23,{3:1,34:1,23:1,352:1},eZ);var sue,Kje,Yje,Zje=vn(Xo,"ValidifyStrategy",352,Tn,cDt,bCt),Apt;E(383,23,{3:1,34:1,23:1,383:1},tZ);var Zv,oue,t9,e9e=vn(Xo,"WrappingStrategy",383,Tn,lDt,mCt),Npt;E(1373,1,Xr,NK),f.pg=function(t){return c(t,37),_pt},f.If=function(t,n){sen(this,c(t,37),n)};var _pt;M(vw,"BFSNodeOrderCycleBreaker",1373),E(1371,1,Xr,Qf),f.pg=function(t){return c(t,37),Dpt},f.If=function(t,n){eZt(this,c(t,37),n)};var Dpt;M(vw,"DFSNodeOrderCycleBreaker",1371),E(1372,1,ln,PFe),f.Ad=function(t){eKt(this.a,this.c,this.b,c(t,17))},f.b=!1,M(vw,"DFSNodeOrderCycleBreaker/lambda$0$Type",1372),E(1365,1,Xr,sz),f.pg=function(t){return c(t,37),Lpt},f.If=function(t,n){ZYt(this,c(t,37),n)};var Lpt;M(vw,"DepthFirstCycleBreaker",1365),E(786,1,Xr,xpe),f.pg=function(t){return c(t,37),Ppt},f.If=function(t,n){xnn(this,c(t,37),n)},f.qg=function(t){return c(Je(t,pQ(this.e,t.c.length)),9)};var Ppt;M(vw,"GreedyCycleBreaker",786),E(1368,786,Xr,M$e),f.qg=function(t){var n,i,r,o,a,d,b,v,x;for(x=null,r=gi,v=p.Math.max(this.b.a.c.length,c($(this.b,(Ie(),ep)),15).a),n=v*c($(this.b,yP),15).a,o=new QO,i=xe($(this.b,(Ge(),Ik)))===xe((N0(),Fv)),b=new U(t);b.a<b.c.c.length;)d=c(G(b),9),ki(d,Ri)&&(a=i?rk(o,d,n,v):tk(o,d,v),r>a&&(r=a,x=d));return x||c(Je(t,pQ(this.e,t.c.length)),9)},M(vw,"GreedyModelOrderCycleBreaker",1368),E(509,1,{},QO),f.a=0,f.b=0,M(vw,"GroupModelOrderCalculator",509),E(1366,1,Xr,Fc),f.pg=function(t){return c(t,37),Ipt},f.If=function(t,n){TZt(this,c(t,37),n)};var Ipt;M(vw,"InteractiveCycleBreaker",1366),E(1367,1,Xr,rz),f.pg=function(t){return c(t,37),Rpt},f.If=function(t,n){CZt(c(t,37),n)};var Rpt;M(vw,"ModelOrderCycleBreaker",1367),E(787,1,Xr),f.pg=function(t){return c(t,37),$pt},f.If=function(t,n){gYt(this,c(t,37),n)},f.rg=function(t,n){var i,r,o,a,d,b,v,x,T,A;for(d=0;d<this.d.b;d++){for(b=null,i=new QO,v=ls,A=c(bc(this.d,d),24).Jc();A.Ob();)T=c(A.Pb(),9),a=xe($(this.a,(Ge(),Ik)))===xe((N0(),Fv)),b?(x=a?rk(i,T,n,t):tk(i,T,t),v<x&&(b=T,v=x)):(b=T,v=a?rk(i,T,n,t):tk(i,T,t));for(o=new Ht(Xt(Fi(b).a.Jc(),new F));hn(o);)r=c(rn(o),17),c(bc(this.d,d),24).Gc(r.d.i)&&Qe(this.c,r)}};var $pt;M(vw,"SCCModelOrderCycleBreaker",787),E(1370,787,Xr,A$e),f.rg=function(t,n){var i,r,o,a,d,b,v,x,T,A,L,I;for(d=0;d<this.d.b;d++)if(!(c(bc(this.d,d),24).gc()<=1)){for(v=null,b=null,A=gi,T=ls,a=xe($(this.a,(Ge(),Ik)))===xe((N0(),Fv)),i=new QO,I=c(bc(this.d,d),24).Jc();I.Ob();)L=c(I.Pb(),9),!v||!b?(v=L,A=a?rk(i,L,n,t):tk(i,L,t),b=L,T=A):(x=a?rk(i,L,n,t):tk(i,L,t),A>x&&(v=L,A=x),T<x&&(b=L,T=x));if(xe($(v,Hv))===xe($(this.a,BSe)))for(o=new Ht(Xt(vr(v).a.Jc(),new F));hn(o);)r=c(rn(o),17),c(bc(this.d,d),24).Gc(r.c.i)&&Qe(this.c,r);else if(xe($(b,Hv))===xe($(this.a,zSe)))for(o=new Ht(Xt(Fi(b).a.Jc(),new F));hn(o);)r=c(rn(o),17),c(bc(this.d,d),24).Gc(r.c.i)&&Qe(this.c,r);else if(Jf(new Ht(Xt(vr(v).a.Jc(),new F)))>Jf(new Ht(Xt(Fi(b).a.Jc(),new F))))for(o=new Ht(Xt(vr(v).a.Jc(),new F));hn(o);)r=c(rn(o),17),c(bc(this.d,d),24).Gc(r.c.i)&&Qe(this.c,r);else for(o=new Ht(Xt(Fi(b).a.Jc(),new F));hn(o);)r=c(rn(o),17),c(bc(this.d,d),24).Gc(r.d.i)&&Qe(this.c,r)}},M(vw,"SCCNodeTypeCycleBreaker",1370),E(1369,787,Xr,N$e),f.rg=function(t,n){var i,r,o,a,d,b,v,x,T,A,L,I;for(d=0;d<this.d.b;d++)if(!(c(bc(this.d,d),24).gc()<=1)){for(v=null,b=null,A=gi,T=ls,a=xe($(this.a,(Ge(),Ik)))===xe((N0(),Fv)),i=new QO,I=c(bc(this.d,d),24).Jc();I.Ob();)L=c(I.Pb(),9),!v||!b?(v=L,A=a?rk(i,L,n,t):tk(i,L,t),b=L,T=A):(x=a?rk(i,L,n,t):tk(i,L,t),A>x&&(v=L,A=x),T<x&&(b=L,T=x));if(Jf(new Ht(Xt(vr(v).a.Jc(),new F)))>Jf(new Ht(Xt(Fi(b).a.Jc(),new F))))for(o=new Ht(Xt(vr(v).a.Jc(),new F));hn(o);)r=c(rn(o),17),c(bc(this.d,d),24).Gc(r.c.i)&&Qe(this.c,r);else for(o=new Ht(Xt(Fi(b).a.Jc(),new F));hn(o);)r=c(rn(o),17),c(bc(this.d,d),24).Gc(r.d.i)&&Qe(this.c,r)}},M(vw,"SCConnectivity",1369),E(1385,1,Xr,FN),f.pg=function(t){return c(t,37),Bpt},f.If=function(t,n){jtn(this,c(t,37),n)};var Bpt;M(q1,"BreadthFirstModelOrderLayerer",1385),E(1386,1,Yn,oa),f.Le=function(t,n){return rUt(c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(q1,"BreadthFirstModelOrderLayerer/lambda$0$Type",1386),E(1376,1,Xr,CRe),f.pg=function(t){return c(t,37),zpt},f.If=function(t,n){Tnn(this,c(t,37),n)};var zpt;M(q1,"CoffmanGrahamLayerer",1376),E(1377,1,Yn,X_e),f.Le=function(t,n){return gXt(this.a,c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(q1,"CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type",1377),E(1378,1,Yn,W_e),f.Le=function(t,n){return pAt(this.a,c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(q1,"CoffmanGrahamLayerer/lambda$1$Type",1378),E(1387,1,Xr,CK),f.pg=function(t){return c(t,37),Fpt},f.If=function(t,n){hnn(this,c(t,37),n)},f.c=0,f.e=0;var Fpt;M(q1,"DepthFirstModelOrderLayerer",1387),E(1388,1,Yn,MA),f.Le=function(t,n){return sUt(c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(q1,"DepthFirstModelOrderLayerer/lambda$0$Type",1388),E(1379,1,Xr,GO),f.pg=function(t){return c(t,37),Wn(Wn(Wn(new xr,(ts(),Cf),(cs(),Ace)),Xd,$v),yc,Rv)},f.If=function(t,n){Itn(c(t,37),n)},M(q1,"InteractiveLayerer",1379),E(571,1,{571:1},aPe),f.a=0,f.c=0,M(q1,"InteractiveLayerer/LayerSpan",571),E(1375,1,Xr,nz),f.pg=function(t){return c(t,37),qpt},f.If=function(t,n){lXt(this,c(t,37),n)};var qpt;M(q1,"LongestPathLayerer",1375),E(1384,1,Xr,MK),f.pg=function(t){return c(t,37),Hpt},f.If=function(t,n){MXt(this,c(t,37),n)};var Hpt;M(q1,"LongestPathSourceLayerer",1384),E(1382,1,Xr,W8),f.pg=function(t){return c(t,37),Wn(Wn(Wn(new xr,(ts(),Cf),(cs(),u3)),Xd,$v),yc,Rv)},f.If=function(t,n){Utn(this,c(t,37),n)},f.a=0,f.b=0,f.d=0;var t9e,n9e;M(q1,"MinWidthLayerer",1382),E(1383,1,Yn,K_e),f.Le=function(t,n){return zRt(this,c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(q1,"MinWidthLayerer/MinOutgoingEdgesComparator",1383),E(1374,1,Xr,HN),f.pg=function(t){return c(t,37),Qpt},f.If=function(t,n){len(this,c(t,37),n)};var Qpt;M(q1,"NetworkSimplexLayerer",1374),E(1380,1,Xr,sFe),f.pg=function(t){return c(t,37),Wn(Wn(Wn(new xr,(ts(),Cf),(cs(),u3)),Xd,$v),yc,Rv)},f.If=function(t,n){Ven(this,c(t,37),n)},f.d=0,f.f=0,f.g=0,f.i=0,f.s=0,f.t=0,f.u=0,M(q1,"StretchWidthLayerer",1380),E(1381,1,Yn,KR),f.Le=function(t,n){return kPt(c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(q1,"StretchWidthLayerer/1",1381),E(411,1,D5e),f.eg=function(t,n,i,r,o,a){},f.tg=function(t,n,i){return prt(this,t,n,i)},f.dg=function(){this.g=ke(wy,glt,30,this.d,15,1),this.f=ke(wy,glt,30,this.d,15,1)},f.fg=function(t,n){this.e[t]=ke(Hn,li,30,n[t].length,15,1)},f.gg=function(t,n,i){var r;r=i[t][n],r.p=n,this.e[t][n]=n},f.hg=function(t,n,i,r){c(Je(r[t][n].j,i),12).p=this.d++},f.b=0,f.c=0,f.d=0,M(ol,"AbstractBarycenterPortDistributor",411),E(1680,1,Yn,Y_e),f.Le=function(t,n){return tFt(this.a,c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(ol,"AbstractBarycenterPortDistributor/lambda$0$Type",1680),E(823,1,kE,Cbe),f.eg=function(t,n,i,r,o,a){},f.gg=function(t,n,i){},f.hg=function(t,n,i,r){},f.cg=function(){return!1},f.dg=function(){this.c=this.e.a,this.g=this.f.g},f.fg=function(t,n){n[t][0].c.p=t},f.ig=function(){return!1},f.ug=function(t,n,i,r){i?YZe(this,t):(ret(this,t,r),Ist(this,t,n)),t.c.length>1&&(Ze(Ye($(Vr((ht(0,t.c.length),c(t.c[0],9))),(Ge(),Vj))))?Int(t,this.d,c(this,667)):(Mt(),Rr(t,this.d)),vWe(this.e,t))},f.jg=function(t,n,i,r){var o,a,d,b,v,x,T;for(n!=jqe(i,t.length)&&(a=t[n-(i?1:-1)],eme(this.f,a,i?(Gs(),Yc):(Gs(),Vl))),o=t[n][0],T=!r||o.k==(Jt(),Ar),x=mf(t[n]),this.ug(x,T,!1,i),d=0,v=new U(x);v.a<v.c.c.length;)b=c(G(v),9),t[n][d++]=b;return!1},f.kg=function(t,n){var i,r,o,a,d;for(d=jqe(n,t.length),a=mf(t[d]),this.ug(a,!1,!0,n),i=0,o=new U(a);o.a<o.c.c.length;)r=c(G(o),9),t[d][i++]=r;return!1},M(ol,"BarycenterHeuristic",823),E(665,1,{665:1},tDe),f.Ib=function(){return"BarycenterState [node="+this.c+", summedWeight="+this.d+", degree="+this.b+", barycenter="+this.a+", visited="+this.e+"]"},f.b=0,f.d=0,f.e=!1;var Gpt=M(ol,"BarycenterHeuristic/BarycenterState",665);E(1859,1,Yn,Z_e),f.Le=function(t,n){return XHt(this.a,c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(ol,"BarycenterHeuristic/lambda$0$Type",1859),E(822,1,kE,lve),f.dg=function(){},f.eg=function(t,n,i,r,o,a){},f.hg=function(t,n,i,r){},f.fg=function(t,n){this.a[t]=ke(Gpt,{3:1,4:1,5:1,2096:1},665,n[t].length,0,1),this.b[t]=ke(Upt,{3:1,4:1,5:1,2097:1},242,n[t].length,0,1)},f.gg=function(t,n,i){PYe(this,i[t][n],!0)},f.c=!1,M(ol,"ForsterConstraintResolver",822),E(242,1,{242:1},sQe,Sst),f.Ib=function(){var t,n;for(n=new g0,n.a+="[",t=0;t<this.d.length;t++)Zn(n,ZYe(this.d[t])),gh(this.g,this.d[0]).a!=null&&Zn(Zn((n.a+="<",n),G8t(gh(this.g,this.d[0]).a)),">"),t<this.d.length-1&&(n.a+=Xc);return(n.a+="]",n).a},f.a=0,f.c=0,f.f=0;var Upt=M(ol,"ForsterConstraintResolver/ConstraintGroup",242);E(1854,1,ln,eDe),f.Ad=function(t){PYe(this.a,c(t,9),!1)},M(ol,"ForsterConstraintResolver/lambda$0$Type",1854),E(221,1,{221:1,223:1},Dst),f.eg=function(t,n,i,r,o,a){},f.fg=function(t,n){},f.dg=function(){this.r=ke(Hn,li,30,this.n,15,1)},f.gg=function(t,n,i){var r,o;o=i[t][n],r=o.e,r&&Qe(this.b,r)},f.hg=function(t,n,i,r){++this.n},f.Ib=function(){return $st(this.e,new Tr)},f.g=!1,f.i=!1,f.n=0,f.s=!1,M(ol,"GraphInfoHolder",221),E(1892,1,kE,b8),f.eg=function(t,n,i,r,o,a){},f.fg=function(t,n){},f.hg=function(t,n,i,r){},f.tg=function(t,n,i){return i&&n>0?$ee(this.a,t[n-1],t[n]):!i&&n<t.length-1?$ee(this.a,t[n],t[n+1]):_te(this.a,t[n],i?(Ue(),Yt):(Ue(),nn)),dVt(this,t,n,i)},f.dg=function(){this.d=ke(Hn,li,30,this.c,15,1),this.a=new U_(this.d)},f.gg=function(t,n,i){var r;r=i[t][n],this.c+=r.j.c.length},f.c=0,M(ol,"GreedyPortDistributor",1892),E(1393,1,Xr,oz),f.pg=function(t){return nBt(c(t,37))},f.If=function(t,n){Een(c(t,37),n)};var Jpt;M(ol,"InteractiveCrossingMinimizer",1393),E(1394,1,Yn,iDe),f.Le=function(t,n){return CHt(this,c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(ol,"InteractiveCrossingMinimizer/1",1394),E(456,1,{456:1,86:1,43:1},Hz),f.pg=function(t){var n;return c(t,37),n=BF(Vpt),Wn(n,(ts(),yc),(cs(),HU)),n},f.If=function(t,n){NKt(this,c(t,37),n)},f.e=0;var Vpt;M(ol,"LayerSweepCrossingMinimizer",456),E(1390,1,ln,rDe),f.Ad=function(t){kYt(this.a,c(t,221))},M(ol,"LayerSweepCrossingMinimizer/0methodref$compareDifferentRandomizedLayouts$Type",1390),E(1391,1,ln,sDe),f.Ad=function(t){W$t(this.a,c(t,221))},M(ol,"LayerSweepCrossingMinimizer/1methodref$minimizeCrossingsNoCounter$Type",1391),E(1392,1,ln,oDe),f.Ad=function(t){tst(this.a,c(t,221))},M(ol,"LayerSweepCrossingMinimizer/2methodref$minimizeCrossingsWithCounter$Type",1392),E(409,23,{3:1,34:1,23:1,409:1},yF);var DP,IJ,OC,RJ,Xpt=vn(ol,"LayerSweepCrossingMinimizer/CrossMinType",409,Tn,aLt,wCt),Wpt;E(1389,1,Jn,AA),f.Mb=function(t){return Yme(),c(t,26).a.c.length==0},M(ol,"LayerSweepCrossingMinimizer/lambda$0$Type",1389),E(1856,1,kE,BQe),f.dg=function(){},f.eg=function(t,n,i,r,o,a){},f.hg=function(t,n,i,r){},f.fg=function(t,n){n[t][0].c.p=t,this.b[t]=ke(Kpt,{3:1,4:1,5:1,2022:1},666,n[t].length,0,1)},f.gg=function(t,n,i){var r;r=i[t][n],r.p=n,mr(this.b[t],n,new UO)},M(ol,"LayerSweepTypeDecider",1856),E(666,1,{666:1},UO),f.Ib=function(){return"NodeInfo [connectedEdges="+this.a+", hierarchicalInfluence="+this.b+", randomInfluence="+this.c+"]"},f.a=0,f.b=0,f.c=0;var Kpt=M(ol,"LayerSweepTypeDecider/NodeInfo",666);E(1857,1,ld,T5),f.Lb=function(t){return UT(new wh(c(t,12).b))},f.Fb=function(t){return this===t},f.Mb=function(t){return UT(new wh(c(t,12).b))},M(ol,"LayerSweepTypeDecider/lambda$0$Type",1857),E(1858,1,ld,E5),f.Lb=function(t){return UT(new wh(c(t,12).b))},f.Fb=function(t){return this===t},f.Mb=function(t){return UT(new wh(c(t,12).b))},M(ol,"LayerSweepTypeDecider/lambda$1$Type",1858),E(1893,411,D5e,uIe),f.sg=function(t,n,i){var r,o,a,d,b,v,x,T,A;switch(x=this.g,i.g){case 1:{for(r=0,o=0,v=new U(t.j);v.a<v.c.c.length;)d=c(G(v),12),d.e.c.length!=0&&(++r,d.j==(Ue(),Kt)&&++o);for(a=n+o,A=n+r,b=rw(t,(Gs(),Vl)).Jc();b.Ob();)d=c(b.Pb(),12),d.j==(Ue(),Kt)?(x[d.p]=a,--a):(x[d.p]=A,--A);return r}case 2:{for(T=0,b=rw(t,(Gs(),Yc)).Jc();b.Ob();)d=c(b.Pb(),12),++T,x[d.p]=n+T;return T}default:throw V(new a_)}},M(ol,"LayerTotalPortDistributor",1893),E(1861,1,kE,aQe),f.dg=function(){},f.eg=function(t,n,i,r,o,a){},f.fg=function(t,n){},f.gg=function(t,n,i){},f.hg=function(t,n,i,r){},f.cg=function(){return!1},f.ig=function(){return!0},f.jg=function(t,n,i,r){var o,a,d,b;for(o=mf(t[n]),hen(this,o,i?n-1:n+1),Mt(),Rr(o,this.b),a=0,b=new U(o);b.a<b.c.c.length;)d=c(G(b),9),t[n][a++]=d;return!1},f.kg=function(t,n){var i,r,o,a,d,b;for(i=n?0:p.Math.max(0,t.length-1),r=mf(t[i]),b=new U(r);b.a<b.c.c.length;)a=c(G(b),9),Me(a,(Ie(),y3),oee(this.a));for(Mt(),Rr(r,this.b),o=0,d=new U(r);d.a<d.c.c.length;)a=c(G(d),9),t[i][o++]=a,Me(a,(Ie(),y3),o);return!1},M(ol,"MedianHeuristic",1861),E(1862,1,Yn,ZW),f.Le=function(t,n){return nJt(c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(ol,"MedianHeuristic/lambda$0$Type",1862),E(667,823,{667:1,223:1},HXe),f.ug=function(t,n,i,r){i?YZe(this,t):(ret(this,t,r),Ist(this,t,n)),t.c.length>1&&(Ze(Ye($(Vr((ht(0,t.c.length),c(t.c[0],9))),(Ge(),Vj))))?Int(t,this.d,this):(Mt(),Rr(t,this.d)),Ze(Ye($(Vr((ht(0,t.c.length),c(t.c[0],9))),Vj)))||vWe(this.e,t))},M(ol,"ModelOrderBarycenterHeuristic",667),E(1860,1,Yn,cDe),f.Le=function(t,n){return HYt(this.a,c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(ol,"ModelOrderBarycenterHeuristic/lambda$0$Type",1860),E(1395,1,Xr,GN),f.pg=function(t){var n;return c(t,37),n=BF(Ypt),Wn(n,(ts(),yc),(cs(),HU)),n},f.If=function(t,n){ANt((c(t,37),n))};var Ypt;M(ol,"NoCrossingMinimizer",1395),E(803,411,D5e,D1e),f.sg=function(t,n,i){var r,o,a,d,b,v,x,T,A,L,I;switch(A=this.g,i.g){case 1:{for(o=0,a=0,T=new U(t.j);T.a<T.c.c.length;)v=c(G(T),12),v.e.c.length!=0&&(++o,v.j==(Ue(),Kt)&&++a);for(r=1/(o+1),d=n+a*r,I=n+1-r,x=rw(t,(Gs(),Vl)).Jc();x.Ob();)v=c(x.Pb(),12),v.j==(Ue(),Kt)?(A[v.p]=d,d-=r):(A[v.p]=I,I-=r);break}case 2:{for(b=0,T=new U(t.j);T.a<T.c.c.length;)v=c(G(T),12),v.g.c.length==0||++b;for(r=1/(b+1),L=n+r,x=rw(t,(Gs(),Yc)).Jc();x.Ob();)v=c(x.Pb(),12),A[v.p]=L,L+=r;break}default:throw V(new qt("Port type is undefined"))}return 1},M(ol,"NodeRelativePortDistributor",803),E(815,1,{},Uqe,Bet),M(ol,"SweepCopy",815),E(1855,1,kE,wYe),f.fg=function(t,n){},f.dg=function(){var t;t=ke(Hn,li,30,this.f,15,1),this.d=new pDe(t),this.a=new U_(t)},f.eg=function(t,n,i,r,o,a){var d;d=c(Je(a[t][n].j,i),12),o.c==d&&o.c.i.c==o.d.i.c&&++this.e[t]},f.gg=function(t,n,i){var r;r=i[t][n],this.c[t]=this.c[t]|r.k==(Jt(),Ic)},f.hg=function(t,n,i,r){var o;o=c(Je(r[t][n].j,i),12),o.p=this.f++,o.g.c.length+o.e.c.length>1&&(o.j==(Ue(),nn)?this.b[t]=!0:o.j==Yt&&t>0&&(this.b[t-1]=!0))},f.f=0,M(Jd,"AllCrossingsCounter",1855),E(590,1,{},PH),f.b=0,f.d=0,M(Jd,"BinaryIndexedTree",590),E(523,1,{},U_);var i9e,$J;M(Jd,"CrossingsCounter",523),E(1929,1,Yn,lDe),f.Le=function(t,n){return iAt(this.a,c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Jd,"CrossingsCounter/lambda$0$Type",1929),E(1930,1,Yn,uDe),f.Le=function(t,n){return rAt(this.a,c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Jd,"CrossingsCounter/lambda$1$Type",1930),E(1931,1,Yn,aDe),f.Le=function(t,n){return sAt(this.a,c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Jd,"CrossingsCounter/lambda$2$Type",1931),E(1932,1,Yn,fDe),f.Le=function(t,n){return oAt(this.a,c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Jd,"CrossingsCounter/lambda$3$Type",1932),E(1933,1,ln,hDe),f.Ad=function(t){sIt(this.a,c(t,12))},M(Jd,"CrossingsCounter/lambda$4$Type",1933),E(1934,1,Jn,dDe),f.Mb=function(t){return z8t(this.a,c(t,12))},M(Jd,"CrossingsCounter/lambda$5$Type",1934),E(1935,1,ln,gDe),f.Ad=function(t){_$e(this,t)},M(Jd,"CrossingsCounter/lambda$6$Type",1935),E(1936,1,ln,l$e),f.Ad=function(t){var n;G6(),T0(this.b,(n=this.a,c(t,12),n))},M(Jd,"CrossingsCounter/lambda$7$Type",1936),E(831,1,ld,DA),f.Lb=function(t){return G6(),ki(c(t,12),(Ie(),Jl))},f.Fb=function(t){return this===t},f.Mb=function(t){return G6(),ki(c(t,12),(Ie(),Jl))},M(Jd,"CrossingsCounter/lambda$8$Type",831),E(1928,1,{},pDe),M(Jd,"HyperedgeCrossingsCounter",1928),E(470,1,{34:1,470:1},cFe),f.Dd=function(t){return Bzt(this,c(t,470))},f.b=0,f.c=0,f.e=0,f.f=0;var cin=M(Jd,"HyperedgeCrossingsCounter/Hyperedge",470);E(371,1,{34:1,371:1},_q),f.Dd=function(t){return $Jt(this,c(t,371))},f.b=0,f.c=0;var Zpt=M(Jd,"HyperedgeCrossingsCounter/HyperedgeCorner",371);E(522,23,{3:1,34:1,23:1,522:1},pge);var SC,jC,ebt=vn(Jd,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",522,Tn,u_t,vCt),tbt;E(1397,1,Xr,LK),f.pg=function(t){return c($(c(t,37),(Ie(),Rc)),24).Gc((Us(),Ca))?nbt:null},f.If=function(t,n){hHt(this,c(t,37),n)};var nbt;M(Xs,"InteractiveNodePlacer",1397),E(1398,1,Xr,uz),f.pg=function(t){return c($(c(t,37),(Ie(),Rc)),24).Gc((Us(),Ca))?ibt:null},f.If=function(t,n){XFt(this,c(t,37),n)};var ibt,BJ,zJ;M(Xs,"LinearSegmentsNodePlacer",1398),E(264,1,{34:1,264:1},h1e),f.Dd=function(t){return Z9t(this,c(t,264))},f.Fb=function(t){var n;return ae(t,264)?(n=c(t,264),this.b==n.b):!1},f.Hb=function(){return this.b},f.Ib=function(){return"ls"+jh(this.e)},f.a=0,f.b=0,f.c=-1,f.d=-1,f.g=0;var rbt=M(Xs,"LinearSegmentsNodePlacer/LinearSegment",264);E(1400,1,Xr,Hqe),f.pg=function(t){return c($(c(t,37),(Ie(),Rc)),24).Gc((Us(),Ca))?sbt:null},f.If=function(t,n){dnn(this,c(t,37),n)},f.b=0,f.g=0;var sbt;M(Xs,"NetworkSimplexPlacer",1400),E(1419,1,Yn,YR),f.Le=function(t,n){return hc(c(t,15).a,c(n,15).a)},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Xs,"NetworkSimplexPlacer/0methodref$compare$Type",1419),E(1421,1,Yn,Wy),f.Le=function(t,n){return hc(c(t,15).a,c(n,15).a)},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Xs,"NetworkSimplexPlacer/1methodref$compare$Type",1421),E(651,1,{651:1},s$e);var lin=M(Xs,"NetworkSimplexPlacer/EdgeRep",651);E(410,1,{410:1},tbe),f.b=!1;var uin=M(Xs,"NetworkSimplexPlacer/NodeRep",410);E(504,13,{3:1,4:1,22:1,32:1,56:1,13:1,18:1,16:1,59:1,504:1},wPe),M(Xs,"NetworkSimplexPlacer/Path",504),E(1401,1,{},NA),f.Kb=function(t){return c(t,17).d.i.k},M(Xs,"NetworkSimplexPlacer/Path/lambda$0$Type",1401),E(1402,1,Jn,eK),f.Mb=function(t){return c(t,252)==(Jt(),Cr)},M(Xs,"NetworkSimplexPlacer/Path/lambda$1$Type",1402),E(1403,1,{},g8),f.Kb=function(t){return c(t,17).d.i},M(Xs,"NetworkSimplexPlacer/Path/lambda$2$Type",1403),E(1404,1,Jn,bDe),f.Mb=function(t){return Qze(pYe(c(t,9)))},M(Xs,"NetworkSimplexPlacer/Path/lambda$3$Type",1404),E(1405,1,Jn,ZR),f.Mb=function(t){return QMt(c(t,12))},M(Xs,"NetworkSimplexPlacer/lambda$0$Type",1405),E(1406,1,ln,o$e),f.Ad=function(t){ATt(this.a,this.b,c(t,12))},M(Xs,"NetworkSimplexPlacer/lambda$1$Type",1406),E(1415,1,ln,mDe),f.Ad=function(t){SUt(this.a,c(t,17))},M(Xs,"NetworkSimplexPlacer/lambda$10$Type",1415),E(1416,1,{},C5),f.Kb=function(t){return Ru(),new Tt(null,new Et(c(t,26).a,16))},M(Xs,"NetworkSimplexPlacer/lambda$11$Type",1416),E(1417,1,ln,wDe),f.Ad=function(t){cWt(this.a,c(t,9))},M(Xs,"NetworkSimplexPlacer/lambda$12$Type",1417),E(1418,1,{},_A),f.Kb=function(t){return Ru(),$e(c(t,126).e)},M(Xs,"NetworkSimplexPlacer/lambda$13$Type",1418),E(1420,1,{},p8),f.Kb=function(t){return Ru(),$e(c(t,126).e)},M(Xs,"NetworkSimplexPlacer/lambda$15$Type",1420),E(1422,1,Jn,e$),f.Mb=function(t){return Ru(),c(t,410).c.k==(Jt(),ur)},M(Xs,"NetworkSimplexPlacer/lambda$17$Type",1422),E(1423,1,Jn,Ky),f.Mb=function(t){return Ru(),c(t,410).c.j.c.length>1},M(Xs,"NetworkSimplexPlacer/lambda$18$Type",1423),E(1424,1,ln,QHe),f.Ad=function(t){lzt(this.c,this.b,this.d,this.a,c(t,410))},f.c=0,f.d=0,M(Xs,"NetworkSimplexPlacer/lambda$19$Type",1424),E(1407,1,{},Yy),f.Kb=function(t){return Ru(),new Tt(null,new Et(c(t,26).a,16))},M(Xs,"NetworkSimplexPlacer/lambda$2$Type",1407),E(1425,1,ln,vDe),f.Ad=function(t){LTt(this.a,c(t,12))},f.a=0,M(Xs,"NetworkSimplexPlacer/lambda$20$Type",1425),E(1426,1,{},t$),f.Kb=function(t){return Ru(),new Tt(null,new Et(c(t,26).a,16))},M(Xs,"NetworkSimplexPlacer/lambda$21$Type",1426),E(1427,1,ln,yDe),f.Ad=function(t){FTt(this.a,c(t,9))},M(Xs,"NetworkSimplexPlacer/lambda$22$Type",1427),E(1428,1,Jn,n$),f.Mb=function(t){return Qze(t)},M(Xs,"NetworkSimplexPlacer/lambda$23$Type",1428),E(1429,1,{},M5),f.Kb=function(t){return Ru(),new Tt(null,new Et(c(t,26).a,16))},M(Xs,"NetworkSimplexPlacer/lambda$24$Type",1429),E(1430,1,Jn,xDe),f.Mb=function(t){return V8t(this.a,c(t,9))},M(Xs,"NetworkSimplexPlacer/lambda$25$Type",1430),E(1431,1,ln,c$e),f.Ad=function(t){TGt(this.a,this.b,c(t,9))},M(Xs,"NetworkSimplexPlacer/lambda$26$Type",1431),E(1432,1,Jn,JO),f.Mb=function(t){return Ru(),!ys(c(t,17))},M(Xs,"NetworkSimplexPlacer/lambda$27$Type",1432),E(1433,1,Jn,m8),f.Mb=function(t){return Ru(),!ys(c(t,17))},M(Xs,"NetworkSimplexPlacer/lambda$28$Type",1433),E(1434,1,{},kDe),f.Te=function(t,n){return DTt(this.a,c(t,26),c(n,26))},M(Xs,"NetworkSimplexPlacer/lambda$29$Type",1434),E(1408,1,{},VO),f.Kb=function(t){return Ru(),new Tt(null,new X2(new Ht(Xt(Fi(c(t,9)).a.Jc(),new F))))},M(Xs,"NetworkSimplexPlacer/lambda$3$Type",1408),E(1409,1,Jn,w8),f.Mb=function(t){return Ru(),VDt(c(t,17))},M(Xs,"NetworkSimplexPlacer/lambda$4$Type",1409),E(1410,1,ln,ODe),f.Ad=function(t){mYt(this.a,c(t,17))},M(Xs,"NetworkSimplexPlacer/lambda$5$Type",1410),E(1411,1,{},i$),f.Kb=function(t){return Ru(),new Tt(null,new Et(c(t,26).a,16))},M(Xs,"NetworkSimplexPlacer/lambda$6$Type",1411),E(1412,1,Jn,Zy),f.Mb=function(t){return Ru(),c(t,9).k==(Jt(),ur)},M(Xs,"NetworkSimplexPlacer/lambda$7$Type",1412),E(1413,1,{},r$),f.Kb=function(t){return Ru(),new Tt(null,new X2(new Ht(Xt(td(c(t,9)).a.Jc(),new F))))},M(Xs,"NetworkSimplexPlacer/lambda$8$Type",1413),E(1414,1,Jn,m2),f.Mb=function(t){return Ru(),qMt(c(t,17))},M(Xs,"NetworkSimplexPlacer/lambda$9$Type",1414),E(1396,1,Xr,_K),f.pg=function(t){return c($(c(t,37),(Ie(),Rc)),24).Gc((Us(),Ca))?obt:null},f.If=function(t,n){WYt(c(t,37),n)};var obt;M(Xs,"SimpleNodePlacer",1396),E(188,1,{188:1},Gx),f.Ib=function(){var t;return t="",this.c==(Kh(),$w)?t+=gk:this.c==Xg&&(t+=dk),this.o==(ph(),Rb)?t+=qre:this.o==Dh?t+="UP":t+="BALANCED",t},M(U0,"BKAlignedLayout",188),E(513,23,{3:1,34:1,23:1,513:1},dge);var Xg,$w,cbt=vn(U0,"BKAlignedLayout/HDirection",513,Tn,c_t,yCt),lbt;E(512,23,{3:1,34:1,23:1,512:1},gge);var Rb,Dh,ubt=vn(U0,"BKAlignedLayout/VDirection",512,Tn,o_t,xCt),abt;E(1681,1,{},u$e),M(U0,"BKAligner",1681),E(1684,1,{},FZe),M(U0,"BKCompactor",1684),E(659,1,{659:1},LA),f.a=0,M(U0,"BKCompactor/ClassEdge",659),E(459,1,{459:1},fPe),f.a=null,f.b=0,M(U0,"BKCompactor/ClassNode",459),E(1399,1,Xr,C$e),f.pg=function(t){return c($(c(t,37),(Ie(),Rc)),24).Gc((Us(),Ca))?fbt:null},f.If=function(t,n){Ann(this,c(t,37),n)},f.d=!1;var fbt;M(U0,"BKNodePlacer",1399),E(1682,1,{},PA),f.d=0,M(U0,"NeighborhoodInformation",1682),E(1683,1,Yn,SDe),f.Le=function(t,n){return vIt(this,c(t,49),c(n,49))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(U0,"NeighborhoodInformation/NeighborComparator",1683),E(816,1,{}),M(U0,"ThresholdStrategy",816),E(1812,816,{},dPe),f.vg=function(t,n,i){return this.a.o==(ph(),Dh)?sr:Gr},f.wg=function(){},M(U0,"ThresholdStrategy/NullThresholdStrategy",1812),E(583,1,{583:1},d$e),f.c=!1,f.d=!1,M(U0,"ThresholdStrategy/Postprocessable",583),E(1813,816,{},gPe),f.vg=function(t,n,i){var r,o,a;return o=n==i,r=this.a.a[i.p]==n,o||r?(a=t,this.a.c==(Kh(),$w)?(o&&(a=Qie(this,n,!0)),!isNaN(a)&&!isFinite(a)&&r&&(a=Qie(this,i,!1))):(o&&(a=Qie(this,n,!0)),!isNaN(a)&&!isFinite(a)&&r&&(a=Qie(this,i,!1))),a):t},f.wg=function(){for(var t,n,i,r,o;this.d.b!=0;)o=c(CQe(this.d),583),r=Nrt(this,o),r.a&&(t=r.a,i=Ze(this.a.f[this.a.g[o.b.p].p]),!(!i&&!ys(t)&&t.c.i.c==t.d.i.c)&&(n=Ant(this,o),n||yBe(this.e,o)));for(;this.e.a.c.length!=0;)Ant(this,c(Swe(this.e),583))},M(U0,"ThresholdStrategy/SimpleThresholdStrategy",1813),E(642,1,{642:1,173:1,177:1},w2),f.bg=function(){return bWe(this)},f.og=function(){return bWe(this)};var cue;M(Fse,"EdgeRouterFactory",642),E(1462,1,Xr,PK),f.pg=function(t){return $Xt(c(t,37))},f.If=function(t,n){sZt(c(t,37),n)};var hbt,dbt,gbt,pbt,bbt,r9e,mbt,wbt;M(Fse,"OrthogonalEdgeRouter",1462),E(1455,1,Xr,E$e),f.pg=function(t){return xHt(c(t,37))},f.If=function(t,n){Mtn(this,c(t,37),n)};var vbt,ybt,xbt,kbt,LP,Obt;M(Fse,"PolylineEdgeRouter",1455),E(1456,1,ld,XO),f.Lb=function(t){return twe(c(t,9))},f.Fb=function(t){return this===t},f.Mb=function(t){return twe(c(t,9))},M(Fse,"PolylineEdgeRouter/1",1456),E(1868,1,Jn,IA),f.Mb=function(t){return c(t,135).c==(Vf(),ip)},M(eh,"HyperEdgeCycleDetector/lambda$0$Type",1868),E(1869,1,{},RA),f.Xe=function(t){return c(t,135).d},M(eh,"HyperEdgeCycleDetector/lambda$1$Type",1869),E(1870,1,Jn,WO),f.Mb=function(t){return c(t,135).c==(Vf(),ip)},M(eh,"HyperEdgeCycleDetector/lambda$2$Type",1870),E(1871,1,{},KO),f.Xe=function(t){return c(t,135).d},M(eh,"HyperEdgeCycleDetector/lambda$3$Type",1871),E(1872,1,{},s$),f.Xe=function(t){return c(t,135).d},M(eh,"HyperEdgeCycleDetector/lambda$4$Type",1872),E(1873,1,{},v2),f.Xe=function(t){return c(t,135).d},M(eh,"HyperEdgeCycleDetector/lambda$5$Type",1873),E(117,1,{34:1,117:1},DD),f.Dd=function(t){return Y9t(this,c(t,117))},f.Fb=function(t){var n;return ae(t,117)?(n=c(t,117),this.g==n.g):!1},f.Hb=function(){return this.g},f.Ib=function(){var t,n,i,r;for(t=new Lu("{"),r=new U(this.n);r.a<r.c.c.length;)i=c(G(r),12),n=KD(i.i),n==null&&(n="n"+TFe(i.i)),t.a+=""+n,r.a<r.c.c.length&&(t.a+=",");return t.a+="}",t.a},f.a=0,f.b=0,f.c=NaN,f.d=0,f.g=0,f.i=0,f.o=0,f.s=NaN,M(eh,"HyperEdgeSegment",117),E(135,1,{135:1},Yp),f.Ib=function(){return this.a+"->"+this.b+" ("+m7t(this.c)+")"},f.d=0,M(eh,"HyperEdgeSegmentDependency",135),E(519,23,{3:1,34:1,23:1,519:1},bge);var ip,ey,Sbt=vn(eh,"HyperEdgeSegmentDependency/DependencyType",519,Tn,l_t,kCt),jbt;E(1874,1,{},jDe),M(eh,"HyperEdgeSegmentSplitter",1874),E(1875,1,{},fIe),f.a=0,f.b=0,M(eh,"HyperEdgeSegmentSplitter/AreaRating",1875),E(341,1,{341:1},UZ),f.a=0,f.b=0,f.c=0,M(eh,"HyperEdgeSegmentSplitter/FreeArea",341),E(1876,1,Yn,o$),f.Le=function(t,n){return gEt(c(t,117),c(n,117))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(eh,"HyperEdgeSegmentSplitter/lambda$0$Type",1876),E(1877,1,ln,GHe),f.Ad=function(t){RLt(this.a,this.d,this.c,this.b,c(t,117))},f.b=0,M(eh,"HyperEdgeSegmentSplitter/lambda$1$Type",1877),E(1878,1,{},A5),f.Kb=function(t){return new Tt(null,new Et(c(t,117).e,16))},M(eh,"HyperEdgeSegmentSplitter/lambda$2$Type",1878),E(1879,1,{},v8),f.Kb=function(t){return new Tt(null,new Et(c(t,117).j,16))},M(eh,"HyperEdgeSegmentSplitter/lambda$3$Type",1879),E(1880,1,{},c$),f.We=function(t){return de(be(t))},M(eh,"HyperEdgeSegmentSplitter/lambda$4$Type",1880),E(660,1,{},mee),f.a=0,f.b=0,f.c=0,M(eh,"OrthogonalRoutingGenerator",660),E(1685,1,{},$A),f.Kb=function(t){return new Tt(null,new Et(c(t,117).e,16))},M(eh,"OrthogonalRoutingGenerator/lambda$0$Type",1685),E(1686,1,{},BA),f.Kb=function(t){return new Tt(null,new Et(c(t,117).j,16))},M(eh,"OrthogonalRoutingGenerator/lambda$1$Type",1686),E(668,1,{}),M(qse,"BaseRoutingDirectionStrategy",668),E(1866,668,{},pPe),f.xg=function(t,n,i){var r,o,a,d,b,v,x,T,A,L,I,z,Q;if(!(t.r&&!t.q))for(T=n+t.o*i,x=new U(t.n);x.a<x.c.c.length;)for(v=c(G(x),12),A=Po(Y(K(Wr,1),Fe,8,0,[v.i.n,v.n,v.a])).a,b=new U(v.g);b.a<b.c.c.length;)d=c(G(b),17),ys(d)||(z=d.d,Q=Po(Y(K(Wr,1),Fe,8,0,[z.i.n,z.n,z.a])).a,p.Math.abs(A-Q)>ud&&(a=T,o=t,r=new ze(A,a),ei(d.a,r),fw(this,d,o,r,!1),L=t.r,L&&(I=de(be(bc(L.e,0))),r=new ze(I,a),ei(d.a,r),fw(this,d,o,r,!1),a=n+L.o*i,o=L,r=new ze(I,a),ei(d.a,r),fw(this,d,o,r,!1)),r=new ze(Q,a),ei(d.a,r),fw(this,d,o,r,!1)))},f.yg=function(t){return t.i.n.a+t.n.a+t.a.a},f.zg=function(){return Ue(),mn},f.Ag=function(){return Ue(),Kt},M(qse,"NorthToSouthRoutingStrategy",1866),E(1867,668,{},bPe),f.xg=function(t,n,i){var r,o,a,d,b,v,x,T,A,L,I,z,Q;if(!(t.r&&!t.q))for(T=n-t.o*i,x=new U(t.n);x.a<x.c.c.length;)for(v=c(G(x),12),A=Po(Y(K(Wr,1),Fe,8,0,[v.i.n,v.n,v.a])).a,b=new U(v.g);b.a<b.c.c.length;)d=c(G(b),17),ys(d)||(z=d.d,Q=Po(Y(K(Wr,1),Fe,8,0,[z.i.n,z.n,z.a])).a,p.Math.abs(A-Q)>ud&&(a=T,o=t,r=new ze(A,a),ei(d.a,r),fw(this,d,o,r,!1),L=t.r,L&&(I=de(be(bc(L.e,0))),r=new ze(I,a),ei(d.a,r),fw(this,d,o,r,!1),a=n-L.o*i,o=L,r=new ze(I,a),ei(d.a,r),fw(this,d,o,r,!1)),r=new ze(Q,a),ei(d.a,r),fw(this,d,o,r,!1)))},f.yg=function(t){return t.i.n.a+t.n.a+t.a.a},f.zg=function(){return Ue(),Kt},f.Ag=function(){return Ue(),mn},M(qse,"SouthToNorthRoutingStrategy",1867),E(1865,668,{},mPe),f.xg=function(t,n,i){var r,o,a,d,b,v,x,T,A,L,I,z,Q;if(!(t.r&&!t.q))for(T=n+t.o*i,x=new U(t.n);x.a<x.c.c.length;)for(v=c(G(x),12),A=Po(Y(K(Wr,1),Fe,8,0,[v.i.n,v.n,v.a])).b,b=new U(v.g);b.a<b.c.c.length;)d=c(G(b),17),ys(d)||(z=d.d,Q=Po(Y(K(Wr,1),Fe,8,0,[z.i.n,z.n,z.a])).b,p.Math.abs(A-Q)>ud&&(a=T,o=t,r=new ze(a,A),ei(d.a,r),fw(this,d,o,r,!0),L=t.r,L&&(I=de(be(bc(L.e,0))),r=new ze(a,I),ei(d.a,r),fw(this,d,o,r,!0),a=n+L.o*i,o=L,r=new ze(a,I),ei(d.a,r),fw(this,d,o,r,!0)),r=new ze(a,Q),ei(d.a,r),fw(this,d,o,r,!0)))},f.yg=function(t){return t.i.n.b+t.n.b+t.a.b},f.zg=function(){return Ue(),nn},f.Ag=function(){return Ue(),Yt},M(qse,"WestToEastRoutingStrategy",1865),E(819,1,{},sxe),f.Ib=function(){return jh(this.a)},f.b=0,f.c=!1,f.d=!1,f.f=0,M(Av,"NubSpline",819),E(415,1,{415:1},dit,TQe),M(Av,"NubSpline/PolarCP",415),E(1457,1,Xr,NZe),f.pg=function(t){return cQt(c(t,37))},f.If=function(t,n){Xtn(this,c(t,37),n)};var Tbt,Ebt,Cbt,Mbt,Abt;M(Av,"SplineEdgeRouter",1457),E(275,1,{275:1},rH),f.Ib=function(){return this.a+" ->("+this.c+") "+this.b},f.c=0,M(Av,"SplineEdgeRouter/Dependency",275),E(457,23,{3:1,34:1,23:1,457:1},mge);var rp,j3,Nbt=vn(Av,"SplineEdgeRouter/SideToProcess",457,Tn,a_t,SCt),_bt;E(1458,1,Jn,a1),f.Mb=function(t){return eE(),!c(t,134).o},M(Av,"SplineEdgeRouter/lambda$0$Type",1458),E(1459,1,{},dg),f.Xe=function(t){return eE(),c(t,134).v+1},M(Av,"SplineEdgeRouter/lambda$1$Type",1459),E(1460,1,ln,a$e),f.Ad=function(t){JMt(this.a,this.b,c(t,49))},M(Av,"SplineEdgeRouter/lambda$2$Type",1460),E(1461,1,ln,f$e),f.Ad=function(t){VMt(this.a,this.b,c(t,49))},M(Av,"SplineEdgeRouter/lambda$3$Type",1461),E(134,1,{34:1,134:1},vtt,fxe),f.Dd=function(t){return e8t(this,c(t,134))},f.b=0,f.e=!1,f.f=0,f.g=0,f.j=!1,f.k=!1,f.n=0,f.o=!1,f.p=!1,f.q=!1,f.s=0,f.u=0,f.v=0,f.F=0,M(Av,"SplineSegment",134),E(460,1,{460:1},y2),f.a=0,f.b=!1,f.c=!1,f.d=!1,f.e=!1,f.f=0,M(Av,"SplineSegment/EdgeInformation",460),E(1179,1,{},zA),M(H1,Kxe,1179),E(1180,1,Yn,l$),f.Le=function(t,n){return RUt(c(t,121),c(n,121))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(H1,jct,1180),E(1178,1,{},MIe),M(H1,"MrTree",1178),E(402,23,{3:1,34:1,23:1,402:1,173:1,177:1},xF),f.bg=function(){return Htt(this)},f.og=function(){return Htt(this)};var FJ,TC,EC,CC,s9e=vn(H1,"TreeLayoutPhases",402,Tn,mLt,jCt),Dbt;E(1093,207,yb,uFe),f.kf=function(t,n){var i,r,o,a,d,b,v,x;for(Ze(Ye(Se(t,(Jo(),A9e))))||l7((i=new j6((m0(),new mg(t))),i)),d=n.dh(Gse),d.Tg("build tGraph",1),b=(v=new hD,nc(v,t),Me(v,(Ii(),AC),t),x=new yn,kKt(t,v,x),BKt(t,v,x),v),d.Ug(),d=n.dh(Gse),d.Tg("Split graph",1),a=CKt(this.a,b),d.Ug(),o=new U(a);o.a<o.c.c.length;)r=c(G(o),121),tHt(this.b,r,n.dh(.5999999940395355/a.c.length));d=n.dh(Gse),d.Tg("Pack components",1),b=Nnn(a),d.Ug(),d=n.dh(Gse),d.Tg("Apply layout results",1),ben(b),d.Ug()},M(H1,"TreeLayoutProvider",1093),E(1829,1,Hd,f1),f.Ic=function(t){vs(this,t)},f.Jc=function(){return Mt(),I6(),Pj},M(H1,"TreeUtil/1",1829),E(1830,1,Hd,Nu),f.Ic=function(t){vs(this,t)},f.Jc=function(){return Mt(),I6(),Pj},M(H1,"TreeUtil/2",1830),E(1820,1,Jn,y8),f.Mb=function(t){return Ze(Ye($(c(t,41),(Ii(),sp))))},M(H1,"TreeUtil/lambda$0$Type",1820),E(1826,1,Jn,TDe),f.Mb=function(t){return this.a.Gc(c(t,41))},M(H1,"TreeUtil/lambda$10$Type",1826),E(1827,1,{},EDe),f.Kb=function(t){return ALt(this.a,c(t,41))},M(H1,"TreeUtil/lambda$11$Type",1827),E(1828,1,Jn,h$e),f.Mb=function(t){return dIt(this.a,this.b,c(t,41))},M(H1,"TreeUtil/lambda$12$Type",1828),E(1821,1,Jn,CDe),f.Mb=function(t){return zBt(this.a,c(t,65))},M(H1,"TreeUtil/lambda$3$Type",1821),E(1822,1,Yn,x2),f.Le=function(t,n){return bEt(c(t,65),c(n,65))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(H1,"TreeUtil/lambda$4$Type",1822),E(1823,1,Jn,MDe),f.Mb=function(t){return FBt(this.a,c(t,65))},M(H1,"TreeUtil/lambda$7$Type",1823),E(1824,1,Yn,pm),f.Le=function(t,n){return pEt(c(t,65),c(n,65))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(H1,"TreeUtil/lambda$8$Type",1824),E(1825,1,{},Es),f.Kb=function(t){return c(t,65).b},M(H1,"TreeUtil/lambda$9$Type",1825),E(497,151,{3:1,497:1,105:1,151:1}),f.g=0,M(TE,"TGraphElement",497),E(65,497,{3:1,65:1,497:1,105:1,151:1},rbe),f.Ib=function(){return this.b&&this.c?eb(this.b)+"->"+eb(this.c):"e_"+zi(this)},M(TE,"TEdge",65),E(121,151,{3:1,121:1,105:1,151:1},hD),f.Ib=function(){var t,n,i,r,o;for(o=null,r=Pn(this.b,0);r.b!=r.d.c;)i=c(Dn(r),41),o+=(i.c==null||i.c.length==0?"n_"+i.g:"n_"+i.c)+`
`;for(n=Pn(this.a,0);n.b!=n.d.c;)t=c(Dn(n),65),o+=(t.b&&t.c?eb(t.b)+"->"+eb(t.c):"e_"+zi(t))+`
`;return o};var ain=M(TE,"TGraph",121);E(640,497,{3:1,497:1,640:1,105:1,151:1}),M(TE,"TShape",640),E(41,640,{3:1,497:1,41:1,640:1,105:1,151:1},Wte),f.Ib=function(){return eb(this)};var qJ=M(TE,"TNode",41);E(239,1,Hd,w1),f.Ic=function(t){vs(this,t)},f.Jc=function(){var t;return t=Pn(this.a.d,0),new lx(t)},M(TE,"TNode/2",239),E(335,1,ns,lx),f.Nb=function(t){ps(this,t)},f.Pb=function(){return c(Dn(this.a),65).c},f.Ob=function(){return d_(this.a)},f.Qb=function(){Ste(this.a)},M(TE,"TNode/2/1",335),E(1910,1,Pi,zc),f.If=function(t,n){jnn(this,c(t,121),n)},M(Pc,"CompactionProcessor",1910),E(1911,1,Yn,ADe),f.Le=function(t,n){return $Rt(this.a,c(t,41),c(n,41))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Pc,"CompactionProcessor/lambda$0$Type",1911),E(1912,1,Jn,g$e),f.Mb=function(t){return KNt(this.b,this.a,c(t,49))},f.a=0,f.b=0,M(Pc,"CompactionProcessor/lambda$1$Type",1912),E(1921,1,Yn,ca),f.Le=function(t,n){return zAt(c(t,41),c(n,41))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Pc,"CompactionProcessor/lambda$10$Type",1921),E(1922,1,Yn,x8),f.Le=function(t,n){return s7t(c(t,41),c(n,41))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Pc,"CompactionProcessor/lambda$11$Type",1922),E(1923,1,Yn,N5),f.Le=function(t,n){return FAt(c(t,41),c(n,41))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Pc,"CompactionProcessor/lambda$12$Type",1923),E(1913,1,Jn,NDe),f.Mb=function(t){return GTt(this.a,c(t,49))},f.a=0,M(Pc,"CompactionProcessor/lambda$2$Type",1913),E(1914,1,Jn,_De),f.Mb=function(t){return UTt(this.a,c(t,49))},f.a=0,M(Pc,"CompactionProcessor/lambda$3$Type",1914),E(1915,1,Jn,ex),f.Mb=function(t){return c(t,41).c.indexOf(zG)==-1},M(Pc,"CompactionProcessor/lambda$4$Type",1915),E(1916,1,{},DDe),f.Kb=function(t){return XDt(this.a,c(t,41))},f.a=0,M(Pc,"CompactionProcessor/lambda$5$Type",1916),E(1917,1,{},LDe),f.Kb=function(t){return rIt(this.a,c(t,41))},f.a=0,M(Pc,"CompactionProcessor/lambda$6$Type",1917),E(1918,1,Yn,PDe),f.Le=function(t,n){return dPt(this.a,c(t,243),c(n,243))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Pc,"CompactionProcessor/lambda$7$Type",1918),E(1919,1,Yn,IDe),f.Le=function(t,n){return gPt(this.a,c(t,41),c(n,41))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Pc,"CompactionProcessor/lambda$8$Type",1919),E(1920,1,Yn,k8),f.Le=function(t,n){return o7t(c(t,41),c(n,41))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Pc,"CompactionProcessor/lambda$9$Type",1920),E(1908,1,Pi,YO),f.If=function(t,n){wWt(c(t,121),n)},M(Pc,"DirectionProcessor",1908),E(H0,1,Pi,oFe),f.If=function(t,n){$Kt(this,c(t,121),n)},M(Pc,"FanProcessor",H0),E(1263,1,Pi,_5),f.If=function(t,n){Dit(c(t,121),n)},M(Pc,"GraphBoundsProcessor",1263),E(1264,1,{},tK),f.We=function(t){return c(t,41).e.a},M(Pc,"GraphBoundsProcessor/lambda$0$Type",1264),E(1265,1,{},du),f.We=function(t){return c(t,41).e.b},M(Pc,"GraphBoundsProcessor/lambda$1$Type",1265),E(1266,1,{},FA),f.We=function(t){return T8t(c(t,41))},M(Pc,"GraphBoundsProcessor/lambda$2$Type",1266),E(1267,1,{},qA),f.We=function(t){return E8t(c(t,41))},M(Pc,"GraphBoundsProcessor/lambda$3$Type",1267),E(265,23,{3:1,34:1,23:1,265:1,177:1},Lm),f.bg=function(){switch(this.g){case 0:return new LPe;case 1:return new oFe;case 2:return new DPe;case 3:return new QA;case 4:return new a$;case 8:return new u$;case 5:return new YO;case 6:return new Gh;case 7:return new zc;case 9:return new _5;case 10:return new _u;default:throw V(new qt(Xre+(this.f!=null?this.f:""+this.g)))}};var o9e,c9e,l9e,u9e,a9e,f9e,h9e,d9e,g9e,p9e,lue,fin=vn(Pc,Wre,265,Tn,fWe,TCt),Lbt;E(1907,1,Pi,u$),f.If=function(t,n){Otn(c(t,121),n)},M(Pc,"LevelCoordinatesProcessor",1907),E(1905,1,Pi,a$),f.If=function(t,n){qVt(this,c(t,121),n)},f.a=0,M(Pc,"LevelHeightProcessor",1905),E(1906,1,Hd,nK),f.Ic=function(t){vs(this,t)},f.Jc=function(){return Mt(),I6(),Pj},M(Pc,"LevelHeightProcessor/1",1906),E(1901,1,Pi,DPe),f.If=function(t,n){tWt(this,c(t,121),n)},M(Pc,"LevelProcessor",1901),E(1902,1,Jn,HA),f.Mb=function(t){return Ze(Ye($(c(t,41),(Ii(),sp))))},M(Pc,"LevelProcessor/lambda$0$Type",1902),E(1903,1,Pi,QA),f.If=function(t,n){JGt(this,c(t,121),n)},f.a=0,M(Pc,"NeighborsProcessor",1903),E(1904,1,Hd,GA),f.Ic=function(t){vs(this,t)},f.Jc=function(){return Mt(),I6(),Pj},M(Pc,"NeighborsProcessor/1",1904),E(1909,1,Pi,Gh),f.If=function(t,n){IKt(this,c(t,121),n)},f.a=0,M(Pc,"NodePositionProcessor",1909),E(1899,1,Pi,LPe),f.If=function(t,n){OZt(this,c(t,121),n)},M(Pc,"RootProcessor",1899),E(1924,1,Pi,_u),f.If=function(t,n){NFt(c(t,121),n)},M(Pc,"Untreeifyer",1924),E(386,23,{3:1,34:1,23:1,386:1},iZ);var PP,uue,b9e,m9e=vn(WL,"EdgeRoutingMode",386,Tn,uDt,ECt),Pbt,IP,n9,aue,w9e,v9e,fue,hue,y9e,due,x9e,gue,MC,pue,HJ,QJ,Af,rh,i9,AC,NC,Wg,k9e,Ibt,bue,sp,RP,$P;E(854,1,jf,IK),f.tf=function(t){at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,I5e),""),Olt),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(Bt(),!1)),(z0(),Ir)),or),bt((kh(),_t))))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,R5e),""),"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),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,$5e),""),"Tree Level"),"The index for the tree level the node is in"),$e(0)),Ts),Pr),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,B5e),""),Olt),"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"),$e(-1)),Ts),Pr),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,z5e),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),j9e),Vi),R9e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,F5e),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),O9e),Vi),m9e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,q5e),""),"Search Order"),"Which search order to use when computing a spanning tree."),S9e),Vi),B9e),bt(_t)))),uot((new A2,t))};var Rbt,$bt,Bbt,O9e,zbt,Fbt,S9e,qbt,Hbt,j9e;M(WL,"MrTreeMetaDataProvider",854),E(999,1,jf,A2),f.tf=function(t){uot(t)};var Qbt,T9e,E9e,Bw,C9e,M9e,mue,Gbt,Ubt,Jbt,Vbt,Xbt,Wbt,Kbt,A9e,N9e,_9e,Ybt,T3,GJ,D9e,Zbt,L9e,wue,emt,tmt,nmt,P9e,imt,md,I9e;M(WL,"MrTreeOptions",999),E(Fg,1,{},O8),f.uf=function(){var t;return t=new uFe,t},f.vf=function(t){},M(WL,"MrTreeOptions/MrtreeFactory",Fg),E(354,23,{3:1,34:1,23:1,354:1},kF);var vue,UJ,yue,xue,R9e=vn(WL,"OrderWeighting",354,Tn,gLt,CCt),rmt;E(430,23,{3:1,34:1,23:1,430:1},wge);var $9e,kue,B9e=vn(WL,"TreeifyingOrder",430,Tn,f_t,MCt),smt;E(1463,1,Xr,cz),f.pg=function(t){return c(t,121),omt},f.If=function(t,n){xRt(this,c(t,121),n)};var omt;M("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1463),E(1464,1,Xr,QN),f.pg=function(t){return c(t,121),cmt},f.If=function(t,n){sWt(this,c(t,121),n)};var cmt;M(vj,"NodeOrderer",1464),E(1471,1,{},f$),f.rd=function(t){return aqe(t)},M(vj,"NodeOrderer/0methodref$lambda$6$Type",1471),E(1465,1,Jn,h$),f.Mb=function(t){return F4(),Ze(Ye($(c(t,41),(Ii(),sp))))},M(vj,"NodeOrderer/lambda$0$Type",1465),E(1466,1,Jn,d$),f.Mb=function(t){return F4(),c($(c(t,41),(Jo(),T3)),15).a<0},M(vj,"NodeOrderer/lambda$1$Type",1466),E(1467,1,Jn,$De),f.Mb=function(t){return nRt(this.a,c(t,41))},M(vj,"NodeOrderer/lambda$2$Type",1467),E(1468,1,Jn,RDe),f.Mb=function(t){return JDt(this.a,c(t,41))},M(vj,"NodeOrderer/lambda$3$Type",1468),E(1469,1,Yn,g$),f.Le=function(t,n){return SIt(c(t,41),c(n,41))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(vj,"NodeOrderer/lambda$4$Type",1469),E(1470,1,Jn,p$),f.Mb=function(t){return F4(),c($(c(t,41),(Ii(),hue)),15).a!=0},M(vj,"NodeOrderer/lambda$5$Type",1470),E(1472,1,Xr,UN),f.pg=function(t){return c(t,121),lmt},f.If=function(t,n){fKt(this,c(t,121),n)},f.b=0;var lmt;M("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1472),E(1473,1,Xr,RK),f.pg=function(t){return c(t,121),umt},f.If=function(t,n){UWt(c(t,121),n)};var umt,hin=M(Cu,"EdgeRouter",1473);E(1475,1,Yn,S8),f.Le=function(t,n){return hc(c(t,15).a,c(n,15).a)},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Cu,"EdgeRouter/0methodref$compare$Type",1475),E(1480,1,{},UA),f.We=function(t){return de(be(t))},M(Cu,"EdgeRouter/1methodref$doubleValue$Type",1480),E(1482,1,Yn,bm),f.Le=function(t,n){return Ci(de(be(t)),de(be(n)))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Cu,"EdgeRouter/2methodref$compare$Type",1482),E(1484,1,Yn,j8),f.Le=function(t,n){return Ci(de(be(t)),de(be(n)))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Cu,"EdgeRouter/3methodref$compare$Type",1484),E(1486,1,{},ZO),f.We=function(t){return de(be(t))},M(Cu,"EdgeRouter/4methodref$doubleValue$Type",1486),E(1488,1,Yn,JA),f.Le=function(t,n){return Ci(de(be(t)),de(be(n)))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Cu,"EdgeRouter/5methodref$compare$Type",1488),E(1490,1,Yn,b$),f.Le=function(t,n){return Ci(de(be(t)),de(be(n)))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Cu,"EdgeRouter/6methodref$compare$Type",1490),E(1474,1,{},m$),f.Kb=function(t){return A1(),c($(c(t,41),(Jo(),md)),15)},M(Cu,"EdgeRouter/lambda$0$Type",1474),E(1485,1,{},VA),f.Kb=function(t){return w7t(c(t,41))},M(Cu,"EdgeRouter/lambda$11$Type",1485),E(1487,1,{},b$e),f.Kb=function(t){return GMt(this.b,this.a,c(t,41))},f.a=0,f.b=0,M(Cu,"EdgeRouter/lambda$13$Type",1487),E(1489,1,{},p$e),f.Kb=function(t){return v7t(this.b,this.a,c(t,41))},f.a=0,f.b=0,M(Cu,"EdgeRouter/lambda$15$Type",1489),E(1491,1,Yn,w$),f.Le=function(t,n){return uFt(c(t,65),c(n,65))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Cu,"EdgeRouter/lambda$17$Type",1491),E(1492,1,Yn,iK),f.Le=function(t,n){return aFt(c(t,65),c(n,65))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Cu,"EdgeRouter/lambda$18$Type",1492),E(1493,1,Yn,v$),f.Le=function(t,n){return hFt(c(t,65),c(n,65))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Cu,"EdgeRouter/lambda$19$Type",1493),E(1476,1,Jn,BDe),f.Mb=function(t){return N_t(this.a,c(t,41))},f.a=0,M(Cu,"EdgeRouter/lambda$2$Type",1476),E(1494,1,Yn,y$),f.Le=function(t,n){return fFt(c(t,65),c(n,65))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Cu,"EdgeRouter/lambda$20$Type",1494),E(1477,1,Yn,x$),f.Le=function(t,n){return PMt(c(t,41),c(n,41))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Cu,"EdgeRouter/lambda$3$Type",1477),E(1478,1,Yn,XA),f.Le=function(t,n){return IMt(c(t,41),c(n,41))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Cu,"EdgeRouter/lambda$4$Type",1478),E(1479,1,{},k$),f.Kb=function(t){return k7t(c(t,41))},M(Cu,"EdgeRouter/lambda$5$Type",1479),E(1481,1,{},m$e),f.Kb=function(t){return UMt(this.b,this.a,c(t,41))},f.a=0,f.b=0,M(Cu,"EdgeRouter/lambda$7$Type",1481),E(1483,1,{},w$e),f.Kb=function(t){return x7t(this.b,this.a,c(t,41))},f.a=0,f.b=0,M(Cu,"EdgeRouter/lambda$9$Type",1483),E(669,1,{669:1},yZe),f.e=0,f.f=!1,f.g=!1,M(Cu,"MultiLevelEdgeNodeNodeGap",669),E(1881,1,Yn,O$),f.Le=function(t,n){return q_t(c(t,243),c(n,243))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Cu,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1881),E(1882,1,Yn,S$),f.Le=function(t,n){return H_t(c(t,243),c(n,243))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Cu,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1882);var E3;E(490,23,{3:1,34:1,23:1,490:1,173:1,177:1},vge),f.bg=function(){return lYe(this)},f.og=function(){return lYe(this)};var JJ,C3,z9e=vn(Q5e,"RadialLayoutPhases",490,Tn,h_t,ACt),amt;E(1094,207,yb,AIe),f.kf=function(t,n){var i,r,o,a,d,b;if(i=uit(this,t),n.Tg("Radial layout",i.c.length),Ze(Ye(Se(t,(B0(),K9e))))||l7((r=new j6((m0(),new mg(t))),r)),b=aQt(t),ri(t,(Sx(),E3),b),!b)throw V(new qt(jlt));for(o=de(be(Se(t,WJ))),o==0&&(o=Ptt(t)),ri(t,WJ,o),d=new U(uit(this,t));d.a<d.c.c.length;)a=c(G(d),43),a.If(t,n.dh(1));n.Ug()},M(Q5e,"RadialLayoutProvider",1094),E(548,1,Yn,Xz),f.Le=function(t,n){return PWt(this.a,this.b,c(t,19),c(n,19))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},f.a=0,f.b=0,M(Q5e,"RadialUtil/lambda$0$Type",548),E(1361,1,Pi,j$),f.If=function(t,n){Etn(c(t,19),n)},M(U5e,"CalculateGraphSize",1361),E(1362,1,Pi,T$),f.If=function(t,n){UYt(c(t,19))},M(U5e,"EdgeAngleCalculator",1362),E(365,23,{3:1,34:1,23:1,365:1,177:1},E_),f.bg=function(){switch(this.g){case 0:return new E8;case 1:return new rK;case 2:return new M$;case 3:return new j$;case 4:return new T$;default:throw V(new qt(Xre+(this.f!=null?this.f:""+this.g)))}};var Oue,Sue,jue,Tue,Eue,fmt=vn(U5e,Wre,365,Tn,iPt,NCt),hmt;E(648,1,{}),f.e=1,f.g=0,M(Use,"AbstractRadiusExtensionCompaction",648),E(1832,648,{},zze),f.Bg=function(t){var n,i,r,o,a,d,b,v,x;for(this.c=c(Se(t,(Sx(),E3)),19),eY(this,this.c),this.d=Dne(c(Se(t,(B0(),BP)),304)),v=c(Se(t,Mue),15),v&&sT(this,v.a),b=be(Se(t,(In(),oh))),ox(this,(zt(b),b)),x=xv(this.c),this.d&&this.d.Fg(x),KWt(this,x),d=new Qo(Y(K(_n,1),Elt,19,0,[this.c])),i=0;i<2;i++)for(n=0;n<x.c.length;n++)o=new Qo(Y(K(_n,1),Elt,19,0,[(ht(n,x.c.length),c(x.c[n],19))])),a=n<x.c.length-1?(ht(n+1,x.c.length),c(x.c[n+1],19)):(ht(0,x.c.length),c(x.c[0],19)),r=n==0?c(Je(x,x.c.length-1),19):(ht(n-1,x.c.length),c(x.c[n-1],19)),Cet(this,(ht(n,x.c.length),c(x.c[n],19),d),r,a,o)},M(Use,"AnnulusWedgeCompaction",1832),E(1359,1,Pi,rK),f.If=function(t,n){yRt(c(t,19),n)},M(Use,"GeneralCompactor",1359),E(1831,648,{},E$),f.Bg=function(t){var n,i,r,o;i=c(Se(t,(Sx(),E3)),19),this.f=i,this.b=Dne(c(Se(t,(B0(),BP)),304)),o=c(Se(t,Mue),15),o&&sT(this,o.a),r=be(Se(t,(In(),oh))),ox(this,(zt(r),r)),n=xv(i),this.b&&this.b.Fg(n),att(this,n)},f.a=0,M(Use,"RadialCompaction",1831),E(1840,1,{},D5),f.Cg=function(t){var n,i,r,o,a,d;for(this.a=t,n=0,d=xv(t),r=0,a=new U(d);a.a<a.c.c.length;)for(o=c(G(a),19),++r,i=r;i<d.c.length;i++)dYt(this,o,(ht(i,d.c.length),c(d.c[i],19)))&&(n+=1);return n},M(J5e,"CrossingMinimizationPosition",1840),E(1838,1,{},C$),f.Cg=function(t){var n,i,r,o,a,d,b,v,x,T,A,L,I;for(r=0,i=new Ht(Xt(I1(t).a.Jc(),new F));hn(i);)n=c(rn(i),74),b=no(c(ce((!n.c&&(n.c=new Ct(xn,n,5,8)),n.c),0),83)),x=b.i+b.g/2,T=b.j+b.f/2,o=t.i+t.g/2,a=t.j+t.f/2,A=new fs,A.a=x-o,A.b=T-a,d=new ze(A.a,A.b),RS(d,t.g,t.f),A.a-=d.a,A.b-=d.b,o=x-A.a,a=T-A.b,v=new ze(A.a,A.b),RS(v,b.g,b.f),A.a-=v.a,A.b-=v.b,x=o+A.a,T=a+A.b,L=x-o,I=T-a,r+=p.Math.sqrt(L*L+I*I);return r},M(J5e,"EdgeLengthOptimization",1838),E(1839,1,{},T8),f.Cg=function(t){var n,i,r,o,a,d,b,v,x,T,A;for(r=0,i=new Ht(Xt(I1(t).a.Jc(),new F));hn(i);)n=c(rn(i),74),b=no(c(ce((!n.c&&(n.c=new Ct(xn,n,5,8)),n.c),0),83)),v=b.i+b.g/2,x=b.j+b.f/2,o=c(Se(b,(In(),Qk)),8),a=t.i+o.a+t.g/2,d=t.j+o.b+t.f,T=v-a,A=x-d,r+=p.Math.sqrt(T*T+A*A);return r},M(J5e,"EdgeLengthPositionOptimization",1839),E(1358,648,Pi,E8),f.If=function(t,n){cUt(this,c(t,19),n)},M("org.eclipse.elk.alg.radial.intermediate.overlaps","RadiusExtensionOverlapRemoval",1358),E(1360,1,Pi,M$),f.If=function(t,n){CAt(c(t,19),n)},M("org.eclipse.elk.alg.radial.intermediate.rotation","GeneralRotator",1360),E(431,23,{3:1,34:1,23:1,431:1},yge);var F9e,Cue,q9e=vn(EE,"AnnulusWedgeCriteria",431,Tn,d_t,_Ct),dmt;E(387,23,{3:1,34:1,23:1,387:1},rZ);var VJ,H9e,Q9e,G9e=vn(EE,Clt,387,Tn,aDt,DCt),gmt;E(855,1,jf,DK),f.tf=function(t){at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,V5e),""),"Center On Root"),"Centers the layout on the root of the tree i.e. so that the central node is also the center node of the final layout. This introduces additional whitespace."),(Bt(),!1)),(z0(),Ir)),or),bt((kh(),_t))))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,X5e),""),"Order ID"),"The id can be used to define an order for nodes of one radius. This can be used to sort them in the layer accordingly."),$e(0)),Ts),Pr),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,W5e),""),"Radius"),"The radius option can be used to set the initial radius for the radial layouter."),0),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,HG),""),"Rotate"),"The rotate option determines whether a rotation of the layout should be performed."),!1),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Vse),""),Mlt),"With the compacter option it can be determined how compaction on the graph is done. It can be chosen between none, the radial compaction or the compaction of wedges separately."),U9e),Vi),G9e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Xse),""),"Compaction Step Size"),"Determine the size of steps with which the compaction is done. Step size 1 correlates to a compaction of 1 pixel per Iteration."),$e(1)),Ts),Pr),bt(_t)))),er(t,Xse,Vse,null),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,K5e),""),"Sorter"),"Sort the nodes per radius according to the sorting algorithm. The strategies are none, by the given order id, or sorting them by polar coordinates."),V9e),Vi),u8e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Y5e),""),"Annulus Wedge Criteria"),"Determine how the wedge for the node placement is calculated. It can be chosen between wedge determination by the number of leaves or by the maximum sum of diagonals."),X9e),Vi),q9e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Z5e),""),"Translation Optimization"),"Find the optimal translation of the nodes of the first radii according to this criteria. For example edge crossings can be minimized."),J9e),Vi),o8e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Wse),t4e),"Target Angle"),"The angle in radians that the layout should be rotated to after layout."),0),us),jr),bt(_t)))),er(t,Wse,HG,null),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Kse),t4e),"Additional Wedge Space"),"If set to true, modifies the target angle by rotating further such that space is left for an edge to pass in between the nodes. This option should only be used in conjunction with top-down layout."),!1),Ir),or),bt(_t)))),er(t,Kse,HG,null),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,e4e),t4e),"Outgoing Edge Angles"),"Calculate the required angle of connected nodes to leave space for an incoming edge. This option should only be used in conjunction with top-down layout."),!1),Ir),or),bt(_t)))),not((new lz,t))};var pmt,bmt,mmt,U9e,wmt,J9e,vmt,ymt,xmt,kmt,Omt,Smt,jmt,V9e,Tmt,X9e;M(EE,"RadialMetaDataProvider",855),E(1001,1,jf,lz),f.tf=function(t){not(t)};var W9e,Mue,Aue,Emt,Cmt,Mmt,Amt,K9e,Y9e,XJ,Nmt,_mt,WJ,Z9e,e8e,t8e,Nue,BP,Dmt,n8e;M(EE,"RadialOptions",1001),E(1002,1,{},WA),f.uf=function(){var t;return t=new AIe,t},f.vf=function(t){},M(EE,"RadialOptions/RadialFactory",1002),E(355,23,{3:1,34:1,23:1,355:1},OF);var i8e,r8e,s8e,_ue,o8e=vn(EE,"RadialTranslationStrategy",355,Tn,pLt,LCt),Lmt;E(304,23,{3:1,34:1,23:1,304:1},sZ);var c8e,Due,l8e,u8e=vn(EE,"SortingStrategy",304,Tn,mDt,PCt),Pmt;E(1448,1,Xr,sK),f.pg=function(t){return c(t,19),null},f.If=function(t,n){EUt(this,c(t,19),n)},f.c=0,M("org.eclipse.elk.alg.radial.p1position","EadesRadial",1448),E(1836,1,{},A$),f.Dg=function(t){return nZe(t)},M(Alt,"AnnulusWedgeByLeafs",1836),E(1837,1,{},N$),f.Dg=function(t){return wet(this,t)},M(Alt,"AnnulusWedgeByNodeSpace",1837),E(1449,1,Xr,_$),f.pg=function(t){return c(t,19),null},f.If=function(t,n){HBt(this,c(t,19),n)},M("org.eclipse.elk.alg.radial.p2routing","StraightLineEdgeRouter",1449),E(818,1,{},v1e),f.Eg=function(t){},f.Fg=function(t){JLe(this,t)},M(n4e,"IDSorter",818),E(1835,1,Yn,D$),f.Le=function(t,n){return vRt(c(t,19),c(n,19))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(n4e,"IDSorter/lambda$0$Type",1835),E(1834,1,{},WXe),f.Eg=function(t){FGe(this,t)},f.Fg=function(t){var n;t.dc()||(this.e||(n=Tqe(c(t.Xb(0),19)),FGe(this,n)),JLe(this.e,t))},M(n4e,"PolarCoordinateSorter",1834),E(441,23,{3:1,34:1,23:1,441:1},oZ);var _C,KJ,Lue,a8e=vn(Llt,"RectPackingLayoutPhases",441,Tn,bDt,ICt),Imt;E(1098,207,yb,NIe),f.kf=function(t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt;if(n.Tg("Rectangle Packing",1),A=c(Se(t,(Th(),PC)),100),v=Ze(Ye(Se(t,swt))),T=de(be(Se(t,IC))),wt=Ze(Ye(Se(t,S8e))),me=(!t.a&&(t.a=new _e(_n,t,10,11)),t.a),Ze(Ye(Se(t,que)))||l7((o=new j6((m0(),new mg(t))),o)),mt=!1,wt&&me.i>=3)for(Oe=c(ce(me,0),19),Xe=c(ce(me,1),19),a=0;a+2<me.i;)if(je=Oe,Oe=Xe,Xe=c(ce(me,a+2),19),je.f>=Oe.f+Xe.f+T||Xe.f>=je.f+Oe.f+T){mt=!0;break}else++a;else mt=!0;if(!mt){for(L=me.i,b=new on(me);b.e!=b.i.gc();)d=c(un(b),19),ri(d,(In(),WP),$e(L)),--L;Frt(t,new o4),n.Ug();return}for(i=(c7(this.a),Iu(this.a,(sQ(),_C),c(Se(t,C8e),173)),Iu(this.a,KJ,c(Se(t,k8e),173)),Iu(this.a,Lue,c(Se(t,j8e),173)),Ige(this.a,(Lt=new xr,Wn(Lt,_C,(MQ(),Rue)),Wn(Lt,KJ,Iue),Ze(Ye(Se(t,y8e)))&&Wn(Lt,_C,$ue),Ze(Ye(Se(t,v8e)))&&Wn(Lt,_C,Pue),Lt)),aE(this.a,t)),x=1/i.c.length,z=new U(i);z.a<z.c.c.length;){if(I=c(G(z),43),n.Zg())return;I.If(t,n.dh(x))}for(W=0,Q=0,le=new on(me);le.e!=le.i.gc();)re=c(un(le),19),W=p.Math.max(W,re.i+re.g),Q=p.Math.max(Q,re.j+re.f);Pve(t,new ze(de(be(Se(t,(Fd(),Bk)))),de(be(Se(t,r9)))),new ze(W,Q)),HRt(me,A),v||hw(t,de(be(Se(t,Bk)))+(A.b+A.c),de(be(Se(t,r9)))+(A.d+A.a),!1,!0),Ze(Ye(Se(t,que)))||l7((r=new j6((m0(),new mg(t))),r)),n.Ug()},M(Llt,"RectPackingLayoutProvider",1098),E(1496,1,Pi,L$),f.If=function(t,n){JYt(c(t,19),n)},M(CE,"InteractiveNodeReorderer",1496),E(1497,1,Yn,KA),f.Le=function(t,n){return E$t(c(t,19),c(n,19))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(CE,"InteractiveNodeReorderer/lambda$0$Type",1497),E(406,23,{3:1,34:1,23:1,406:1,177:1},SF),f.bg=function(){switch(this.g){case 0:return new R$;case 1:return new L$;case 2:return new I$;case 3:return new P$}return null};var Pue,Iue,Rue,$ue,Rmt=vn(CE,Wre,406,Tn,bLt,RCt),$mt;E(1499,1,Pi,P$),f.If=function(t,n){Tzt(c(t,19),n)},M(CE,"MinSizePostProcessor",1499),E(1498,1,Pi,I$),f.If=function(t,n){MVt(c(t,19),n)},M(CE,"MinSizePreProcessor",1498),E(1688,1,Yn,YA),f.Le=function(t,n){return nTt(c(t,19),c(n,19))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(CE,"NodeSizeComparator",1688),E(1495,1,Pi,R$),f.If=function(t,n){ZDt(c(t,19))},M(CE,"NodeSizeReorderer",1495);var DC,r9,Bk,Bmt,zmt,YJ,Bue,zue,LC,ZJ,ty;E(388,23,{3:1,34:1,23:1,388:1},cZ);var f8e,h8e,Fue,d8e=vn(Yse,"OptimizationGoal",388,Tn,fDt,$Ct),Fmt;E(857,1,jf,fz),f.tf=function(t){at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,i4e),""),"Try box layout first"),"Whether one should check whether the regions are stackable to see whether box layout would do the job. For example, nodes with the same height are not stackable inside a row. Therefore, box layout will perform better and faster."),(Bt(),!1)),(z0(),Ir)),or),bt((kh(),_t))))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,r4e),""),"Current position of a node in the order of nodes"),"The rectangles are ordered. Normally according to their definition the the model. This option specifies the current position of a node."),$e(-1)),Ts),Pr),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,s4e),""),"Desired index of node"),"The rectangles are ordered. Normally according to their definition the the model. This option allows to specify a desired position that has preference over the original position."),$e(-1)),Ts),Pr),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,o4e),""),"In new Row"),"If set to true this node begins in a new row. Consequently this node cannot be moved in a previous layer during compaction. Width approximation does does not take this into account."),!1),Ir),or),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,c4e),""),"Order nodes by height"),"If set to true the nodes will be sorted by their height before computing the layout. The largest node will be in the first position."),!1),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,l4e),Zse),"Width Approximation Strategy"),"Strategy for finding an initial width of the drawing."),m8e),Vi),N8e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,u4e),Zse),"Target Width"),"Option to place the rectangles in the given target width instead of approximating the width using the desired aspect ratio. The padding is not included in this. Meaning a drawing will have width of targetwidth + horizontal padding."),-1),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,a4e),Zse),"Optimization Goal"),"Optimization goal for approximation of the bounding box given by the first iteration. Determines whether layout is sorted by the maximum scaling, aspect ratio, or area. Depending on the strategy the aspect ratio might be nearly ignored."),b8e),Vi),d8e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,f4e),Zse),"Shift Last Placed."),"When placing a rectangle behind or below the last placed rectangle in the first iteration, it is sometimes possible to shift the rectangle further to the left or right, resulting in less whitespace. True (default) enables the shift and false disables it. Disabling the shift produces a greater approximated area by the first iteration and a layout, when using ONLY the first iteration (default not the case), where it is sometimes impossible to implement a size transformation of rectangles that will fill the bounding box and eliminate empty spaces."),!0),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,h4e),"packing"),Plt),"Strategy for finding an initial placement on nodes."),g8e),Vi),L8e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,d4e),Ilt),"Row Height Reevaluation"),"During the compaction step the height of a row is normally not changed. If this options is set, the blocks of other rows might be added if they exceed the row height. If this is the case the whole row has to be packed again to be optimal regarding the new row height. This option should, therefore, be used with care since it might be computation heavy."),!1),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,g4e),Ilt),"Compaction iterations"),"Defines the number of compaction iterations. E.g. if set to 2 the width is initially approximated, then the drawing is compacted and based on the resulting drawing the target width is decreased or increased and a second compaction step is executed and the result compared to the first one. The best run is used based on the scale measure."),$e(1)),Ts),Pr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,p4e),"whiteSpaceElimination"),"White Space Approximation Strategy"),"Strategy for expanding nodes such that whitespace in the parent is eliminated."),p8e),Vi),R8e),bt(_t)))),wot((new az,t))};var qmt,Hmt,Qmt,Gmt,Umt,Jmt,Vmt,g8e,Xmt,Wmt,p8e,Kmt,Ymt,b8e,Zmt,m8e,ewt;M(Yse,"RectPackingMetaDataProvider",857),E(1007,1,jf,az),f.tf=function(t){wot(t)};var eV,twt,w8e,zP,v8e,nwt,FP,iwt,rwt,swt,owt,cwt,que,y8e,x8e,Hue,k8e,PC,O8e,lwt,IC,S8e,j8e,T8e,E8e,C8e,Que;M(Yse,"RectPackingOptions",1007),E(1008,1,{},$$),f.uf=function(){var t;return t=new NIe,t},f.vf=function(t){},M(Yse,"RectPackingOptions/RectpackingFactory",1008),E(1687,1,{},BFe),f.a=0,f.c=!1,M(yj,"AreaApproximation",1687);var M8e=Zi(yj,"BestCandidateFilter");E(671,1,{527:1},ZA),f.Gg=function(t,n,i){var r,o,a,d,b,v;for(v=new He,a=sr,b=new U(t);b.a<b.c.c.length;)d=c(G(b),241),a=p.Math.min(a,(d.c+(i.b+i.c))*(d.b+(i.d+i.a)));for(o=new U(t);o.a<o.c.c.length;)r=c(G(o),241),(r.c+(i.b+i.c))*(r.b+(i.d+i.a))==a&&It(v.c,r);return v},M(yj,"AreaFilter",671),E(672,1,{527:1},e6),f.Gg=function(t,n,i){var r,o,a,d,b,v;for(b=new He,v=sr,d=new U(t);d.a<d.c.c.length;)a=c(G(d),241),v=p.Math.min(v,p.Math.abs((a.c+(i.b+i.c))/(a.b+(i.d+i.a))-n));for(o=new U(t);o.a<o.c.c.length;)r=c(G(o),241),p.Math.abs((r.c+(i.b+i.c))/(r.b+(i.d+i.a))-n)==v&&It(b.c,r);return b},M(yj,"AspectRatioFilter",672),E(1441,1,Xr,B$),f.pg=function(t){return c(t,19),null},f.If=function(t,n){PXt(c(t,19),n)},M(yj,"GreedyWidthApproximator",1441),E(670,1,{527:1},C8),f.Gg=function(t,n,i){var r,o,a,d,b,v;for(v=new He,a=Gr,b=new U(t);b.a<b.c.c.length;)d=c(G(b),241),a=p.Math.max(a,dq(d.c+(i.b+i.c),d.b+(i.d+i.a),d.a));for(o=new U(t);o.a<o.c.c.length;)r=c(G(o),241),dq(r.c+(i.b+i.c),r.b+(i.d+i.a),r.a)==a&&It(v.c,r);return v},M(yj,"ScaleMeasureFilter",670),E(1442,1,Xr,eN),f.pg=function(t){return c(t,19),null},f.If=function(t,n){CUt(c(t,19),n)},M(yj,"TargetWidthWidthApproximator",1442),E(481,23,{3:1,34:1,23:1,481:1,173:1,177:1},xge),f.bg=function(){return Met(this)},f.og=function(){return Met(this)};var Gue,A8e,N8e=vn(yj,"WidthApproximationStrategy",481,Tn,p_t,UCt),uwt;E(1443,1,Xr,z$),f.pg=function(t){return c(t,19),null},f.If=function(t,n){Rtn(this,c(t,19),n)},M(QG,"Compactor",1443),E(1445,1,Xr,F$),f.pg=function(t){return c(t,19),null},f.If=function(t,n){pXt(c(t,19),n)},M(QG,"NoPlacement",1445),E(434,23,{3:1,34:1,23:1,434:1,173:1,177:1},lZ),f.bg=function(){return DKe(this)},f.og=function(){return DKe(this)};var Uue,_8e,D8e,L8e=vn(QG,"PackingStrategy",434,Tn,gDt,JCt),awt;E(804,1,{},Tge),f.a=0,f.b=0,f.c=0,f.d=sr,f.e=0,f.f=sr,M(QG,"RowFillingAndCompaction",804),E(1444,1,Xr,oK),f.pg=function(t){return c(t,19),null},f.If=function(t,n){YZt(c(t,19),n)},M(QG,"SimplePlacement",1444),E(1446,1,Xr,cK),f.pg=function(t){return c(t,19),null},f.If=function(t,n){this.Hg(c(t,19),n)},f.Hg=function(t,n){Cnt(t,n)},M(b4e,"EqualWhitespaceEliminator",1446),E(1447,1446,Xr,q$),f.Hg=function(t,n){var i,r,o,a,d;n.Tg("To Aspect Ratio Whitesapce Eliminator",1),d=de(be(Se(t,(Fd(),Bk)))),a=de(be(Se(t,r9))),o=de(be(Se(t,(Th(),eV)))),i=de(be(Se(t,DC))),r=d/a,r<o?(d=a*o,ri(t,Bk,d)):(i+=d/o-a,ri(t,DC,i),ri(t,r9,a+i)),Cnt(t,n),n.Ug()},M(b4e,"ToAspectratioNodeExpander",1447),E(435,23,{3:1,34:1,23:1,435:1,173:1,177:1},uZ),f.bg=function(){return TWe(this)},f.og=function(){return TWe(this)};var P8e,Jue,I8e,R8e=vn(b4e,"WhiteSpaceEliminationStrategy",435,Tn,dDt,VCt),fwt;E(175,1,{175:1},Kte),f.a=0,f.c=!1,f.d=0,f.e=0,f.f=0,f.g=0,f.i=0,f.k=!1,f.o=sr,f.p=sr,f.r=0,f.s=0,f.t=0,M(KL,"Block",175),E(211,1,{211:1},qq),f.a=0,f.b=0,f.d=0,f.e=0,f.f=0,M(KL,"BlockRow",211),E(320,1,{320:1},abe),f.b=0,f.c=0,f.d=0,f.e=0,f.f=0,M(KL,"BlockStack",320),E(241,1,{241:1},dpe,g2e),f.a=0,f.b=0,f.c=0,f.d=0,f.e=0,f.g=0;var din=M(KL,"DrawingData",241);E(370,23,{3:1,34:1,23:1,370:1},C_);var zk,M3,RC,$C,qP,hwt=vn(KL,"DrawingDataDescriptor",370,Tn,sPt,zCt),dwt;E(189,1,{189:1},Sbe),f.b=0,f.c=0,f.e=0,f.f=0,M(KL,"RectRow",189),E(757,1,{},Nwe),f.j=0,M(Nv,Fct,757),E(1186,1,{},t6),f.$e=function(t){return C0(t.a,t.b)},M(Nv,Yxe,1186),E(1187,1,{},zDe),f.$e=function(t){return pPt(this.a,t)},M(Nv,qct,1187),E(1188,1,{},FDe),f.$e=function(t){return mFt(this.a,t)},M(Nv,Hct,1188),E(1189,1,{},qDe),f.$e=function(t){return p$t(this.a,t)},M(Nv,"ElkGraphImporter/lambda$3$Type",1189),E(1190,1,{},HDe),f.$e=function(t){return QUt(this.a,t)},M(Nv,Qct,1190),E(1095,207,yb,_Ie),f.kf=function(t,n){var i,r,o,a,d,b,v,x,T,A,L,I;for(pa(t,(iL(),sV))&&(I=qn(Se(t,($ne(),rTe))),a=$ye(v7(),I),a&&(d=c(rD(a.f),207),d.kf(t,n.dh(1)))),ri(t,eae,(dD(),rV)),ri(t,tae,(rL(),Zue)),ri(t,nae,(LD(),oV)),b=c(Se(t,($ne(),tTe)),15).a,n.Tg("Overlap removal",1),Ze(Ye(Se(t,Dwt))),v=new Tr,x=new QDe(v),r=new Nwe,i=mot(r,t),T=!0,o=0;o<b&&T;){if(Ze(Ye(Se(t,nTe)))){if(v.a.$b(),GGt(new PBe(x),i.i),v.a.gc()==0)break;i.e=v}for(c7(this.b),Iu(this.b,(HD(),tV),(kT(),HP)),Iu(this.b,nV,i.g),Iu(this.b,iV,(iF(),Wue)),this.a=aE(this.b,i),L=new U(this.a);L.a<L.c.c.length;)A=c(G(L),43),A.If(i,n.dh(1));gHt(r,i),T=Ze(Ye($(i,(pS(),tOe)))),++o}Mst(r,i),n.Ug()},M(Nv,"OverlapRemovalLayoutProvider",1095),E(1096,1,{},QDe),M(Nv,"OverlapRemovalLayoutProvider/lambda$0$Type",1096),E(440,23,{3:1,34:1,23:1,440:1},aZ);var tV,nV,iV,Vue=vn(Nv,"SPOrEPhases",440,Tn,pDt,qCt),gwt;E(1196,1,{},DIe),M(Nv,"ShrinkTree",1196),E(1097,207,yb,RPe),f.kf=function(t,n){var i,r,o,a,d;pa(t,(iL(),sV))&&(d=qn(Se(t,sV)),o=$ye(v7(),d),o&&(a=c(rD(o.f),207),a.kf(t,n.dh(1)))),r=new Nwe,i=mot(r,t),wVt(this.a,i,n.dh(1)),Mst(r,i)},M(Nv,"ShrinkTreeLayoutProvider",1097),E(311,151,{3:1,311:1,105:1,151:1},_Qe),f.c=!1,M("org.eclipse.elk.alg.spore.graph","Graph",311),E(480,23,{3:1,34:1,23:1,480:1,173:1,177:1},MRe),f.bg=function(){return eKe(this)},f.og=function(){return eKe(this)};var Xue,$8e=vn(_v,Clt,480,Tn,kNt,FCt),pwt;E(550,23,{3:1,34:1,23:1,550:1,173:1,177:1},jze),f.bg=function(){return new A8},f.og=function(){return new A8};var Wue,bwt=vn(_v,"OverlapRemovalStrategy",550,Tn,xNt,HCt),mwt;E(433,23,{3:1,34:1,23:1,433:1},kge);var rV,Kue,B8e=vn(_v,"RootSelection",433,Tn,g_t,QCt),wwt;E(331,23,{3:1,34:1,23:1,331:1},M_);var z8e,Yue,Zue,F8e,q8e,H8e=vn(_v,"SpanningTreeCostFunction",331,Tn,oPt,GCt),vwt;E(1005,1,jf,$K),f.tf=function(t){cst(t)};var Q8e,G8e,ywt,xwt,U8e,J8e,eae,tae,nae,kwt,Owt,sV;M(_v,"SporeCompactionOptions",1005),E(1006,1,{},tN),f.uf=function(){var t;return t=new RPe,t},f.vf=function(t){},M(_v,"SporeCompactionOptions/SporeCompactionFactory",1006),E(856,1,jf,hz),f.tf=function(t){at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,eoe),""),"Underlying Layout Algorithm"),"A layout algorithm that is applied to the graph before it is compacted. If this is null, nothing is applied before compaction."),(z0(),qk)),tt),bt((kh(),_t))))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,ioe),"structure"),"Structure Extraction Strategy"),"This option defines what kind of triangulation or other partitioning of the plane is applied to the vertices."),Z8e),Vi),sTe),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,m4e),roe),"Tree Construction Strategy"),"Whether a minimum spanning tree or a maximum spanning tree should be constructed."),K8e),Vi),cTe),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,w4e),roe),"Cost Function for Spanning Tree"),"The cost function is used in the creation of the spanning tree."),W8e),Vi),H8e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,toe),roe),"Root node for spanning tree construction"),"The identifier of the node that is preferred as the root of the spanning tree. If this is null, the first node is chosen."),null),qk),tt),bt(_t)))),er(t,toe,noe,Mwt),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,noe),roe),"Root selection for spanning tree"),"This sets the method used to select a root node for the construction of a spanning tree"),X8e),Vi),B8e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,v4e),J3e),Plt),"This option defines how the compaction is applied."),V8e),Vi),$8e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,y4e),J3e),"Orthogonal Compaction"),"Restricts the translation of nodes to orthogonal directions in the compaction phase."),(Bt(),!1)),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,x4e),$lt),"Upper limit for iterations of overlap removal"),null),$e(64)),Ts),Pr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,k4e),$lt),"Whether to run a supplementary scanline overlap check."),null),!0),Ir),or),bt(_t)))),urt((new JN,t)),cst((new $K,t))};var Swt,V8e,jwt,Twt,Ewt,Cwt,Mwt,Awt,X8e,Nwt,W8e,_wt,K8e,Y8e,Z8e,eTe;M(_v,"SporeMetaDataProvider",856),E(1003,1,jf,JN),f.tf=function(t){urt(t)};var Dwt,tTe,nTe,iTe,Lwt,rTe;M(_v,"SporeOverlapRemovalOptions",1003),E(1004,1,{},M8),f.uf=function(){var t;return t=new _Ie,t},f.vf=function(t){},M(_v,"SporeOverlapRemovalOptions/SporeOverlapFactory",1004),E(531,23,{3:1,34:1,23:1,531:1,173:1,177:1},AHe),f.bg=function(){return tKe(this)},f.og=function(){return tKe(this)};var HP,sTe=vn(_v,"StructureExtractionStrategy",531,Tn,ONt,XCt),Pwt;E(432,23,{3:1,34:1,23:1,432:1,173:1,177:1},Oge),f.bg=function(){return uYe(this)},f.og=function(){return uYe(this)};var oTe,oV,cTe=vn(_v,"TreeConstructionStrategy",432,Tn,b_t,WCt),Iwt;E(1435,1,Xr,iN),f.pg=function(t){return c(t,311),new xr},f.If=function(t,n){mHt(c(t,311),n)},M(Blt,"DelaunayTriangulationPhase",1435),E(1436,1,ln,GDe),f.Ad=function(t){Qe(this.a,c(t,68).a)},M(Blt,"DelaunayTriangulationPhase/lambda$0$Type",1436),E(788,1,Xr,w1e),f.pg=function(t){return c(t,311),new xr},f.If=function(t,n){this.Ig(c(t,311),n)},f.Ig=function(t,n){var i,r,o;n.Tg("Minimum spanning tree construction",1),t.d?r=t.d.a:r=c(Je(t.i,0),68).a,Ze(Ye($(t,(pS(),JE))))?o=Xie(t.e,r,(i=t.b,i)):o=Xie(t.e,r,t.b),LWe(this,o,t),n.Ug()},M(soe,"MinSTPhase",788),E(1438,788,Xr,xPe),f.Ig=function(t,n){var i,r,o,a;n.Tg("Maximum spanning tree construction",1),i=new UDe(t),t.d?o=t.d.c:o=c(Je(t.i,0),68).c,Ze(Ye($(t,(pS(),JE))))?a=Xie(t.e,o,(r=i,r)):a=Xie(t.e,o,i),LWe(this,a,t),n.Ug()},M(soe,"MaxSTPhase",1438),E(1439,1,{},UDe),f.$e=function(t){return H8t(this.a,t)},M(soe,"MaxSTPhase/lambda$0$Type",1439),E(1437,1,ln,JDe),f.Ad=function(t){CTt(this.a,c(t,68))},M(soe,"MinSTPhase/lambda$0$Type",1437),E(790,1,Xr,A8),f.pg=function(t){return c(t,311),new xr},f.If=function(t,n){MQt(this,c(t,311),n)},f.a=!1,M(ooe,"GrowTreePhase",790),E(791,1,ln,V0e),f.Ad=function(t){s$t(this.a,this.b,this.c,c(t,227))},M(ooe,"GrowTreePhase/lambda$0$Type",791),E(1440,1,Xr,U$),f.pg=function(t){return c(t,311),new xr},f.If=function(t,n){FFt(this,c(t,311),n)},M(ooe,"ShrinkTreeCompactionPhase",1440),E(789,1,ln,X0e),f.Ad=function(t){fJt(this.a,this.b,this.c,c(t,227))},M(ooe,"ShrinkTreeCompactionPhase/lambda$0$Type",789),E(389,23,{3:1,34:1,23:1,389:1},Sge);var lTe,iae,uTe=vn(O4e,"EdgeRoutingStrategy",389,Tn,w_t,KCt),Rwt,zw,$b,s9,rae,o9,$wt,QP,wd,ny,BC;E(396,23,{3:1,34:1,23:1,396:1},jF);var sae,oae,cae,lae,aTe=vn(O4e,"VertiFlexLayoutPhases",396,Tn,wLt,YCt),Bwt;E(1099,207,yb,LIe),f.kf=function(t,n){var i,r,o,a,d,b,v,x,T,A,L;if(i=bJt(this,t),n.Tg(wlt,i.c.length),this.b=de(be(Se(t,(In(),oh)))),Ze(Ye(Se(t,(Z4(),dTe))))||l7((r=new j6((m0(),new mg(t))),r)),L=fQt(t),ri(t,(zd(),BC),L),!L)throw V(new Uh(jlt));for(a=new on((!t.a&&(t.a=new _e(_n,t,10,11)),t.a));a.e!=a.i.gc();){if(o=c(un(a),19),x=(!o.d&&(o.d=new Ct($i,o,8,5)),o.d).i,x>1)throw V(new Uh("The given graph is not an acyclic tree!"));Nc(o,0),_l(o,0)}for(vst(this,L,0),d=0,v=new on((!t.a&&(t.a=new _e(_n,t,10,11)),t.a));v.e!=v.i.gc();)b=c(un(v),19),ri(b,QP,$e(d)),d+=1;for(A=new U(i);A.a<A.c.c.length;)T=c(G(A),43),T.If(t,n.dh(1));lVt(t),n.Ug()},f.b=0,M(O4e,"VertiFlexLayoutProvider",1099),E(858,1,jf,VN),f.tf=function(t){at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,S4e),""),"Fixed vertical position"),"The Y position that the node should be fixed at."),(z0(),us)),jr),bt((kh(),pr))))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,j4e),""),"Edge layout strategy"),"Strategy for the layout of the children. 'straight' for straight line drawings, 'bend' for a possible bend. When straight edges are prioritized the nodes will be reordered in order to guarantee that straight edges are possible. If bend points are enabled on the other hand, the given model order of the nodes is maintained and bend points are introduced to prevent edge node overlaps."),fTe),Vi),uTe),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,T4e),""),"Layer distance"),"The distance to use between nodes of different layers if no vertical constraints are set."),50),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,E4e),""),"Consider node model order"),"Consider node model as a secondary criterion when using straight line routing."),(Bt(),!0)),Ir),or),bt(_t)))),bst((new BK,t))};var zwt,Fwt,qwt,fTe,Hwt;M(C4e,"VertiFlexMetaDataProvider",858),E(1009,1,jf,BK),f.tf=function(t){bst(t)};var uae,Qwt,hTe,aae,Gwt,dTe,gTe,Uwt,c9;M(C4e,"VertiFlexOptions",1009),E(1010,1,{},J$),f.uf=function(){var t;return t=new LIe,t},f.vf=function(t){},M(C4e,"VertiFlexOptions/VertiflexFactory",1010),E(1450,1,Xr,tx),f.pg=function(t){return c(t,19),null},f.If=function(t,n){MGt(this,c(t,19),n)},f.a=0,f.b=0,M(zlt,"NodeYPlacer",1450),E(557,23,{3:1,34:1,23:1,557:1,173:1,177:1},Cqe),f.bg=function(){return nKe(this)},f.og=function(){return nKe(this)};var fae,Jwt=vn(zlt,"NodeYPlacerStrategy",557,Tn,wNt,ZCt),Vwt;E(824,1,Yn,Yde),f.Le=function(t,n){return uqt(this,c(t,19),c(n,19))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},f.a=!1,M(coe,"NodeComparator",824),E(107,1,{107:1},vu),f.Ib=function(){return"X:"+this.c+",  Y:"+this.a},f.a=0,f.c=0,M(coe,"OutlineNode",107),E(1451,1,Xr,V$),f.pg=function(t){return c(t,19),null},f.If=function(t,n){ZJt(this,c(t,19),n)},f.a=!1,f.b=0,M(coe,"RelativeXPlacer",1451),E(558,23,{3:1,34:1,23:1,558:1,173:1,177:1},Eqe),f.bg=function(){return iKe(this)},f.og=function(){return iKe(this)};var hae,Xwt=vn(coe,"RelativeXPlacerStrategy",558,Tn,vNt,eMt),Wwt;E(1452,1,Xr,Q$),f.pg=function(t){return c(t,19),null},f.If=function(t,n){$qt(this,c(t,19),n)},M(Flt,"AbsoluteXPlacer",1452),E(559,23,{3:1,34:1,23:1,559:1,173:1,177:1},eHe),f.bg=function(){return rKe(this)},f.og=function(){return rKe(this)};var dae,Kwt=vn(Flt,"AbsoluteXPlacerStrategy",559,Tn,yNt,tMt),Ywt;E(1454,1,Xr,n6),f.pg=function(t){return c(t,19),null},f.If=function(t,n){czt(this,c(t,19),n)},M(M4e,qlt,1454),E(498,23,{3:1,34:1,23:1,498:1,173:1,177:1},jge),f.bg=function(){return xet(this)},f.og=function(){return xet(this)};var gae,pae,Zwt=vn(M4e,"EdgerouterStrategy",498,Tn,m_t,nMt),e2t;E(1453,1,Xr,G$),f.pg=function(t){return c(t,19),null},f.If=function(t,n){Hzt(this,c(t,19),n)},M(M4e,Hlt,1453);var pTe=Zi(ic,"IGraphElementVisitor");E(862,1,{528:1},mGe),f.Jg=function(t){var n;n=OWt(this,t),nc(n,c(Ut(this.b,t),105)),pVt(this,t,n)};var t2t,n2t;M(Kx,"LayoutConfigurator",862);var gin=Zi(Kx,"LayoutConfigurator/IPropertyHolderOptionFilter");E(935,1,{837:1},H$),f.Lg=function(t,n){return G4(),!t.nf(n)},M(Kx,"LayoutConfigurator/lambda$0$Type",935),E(936,1,{2011:1},nN),f.Kg=function(t,n){return G4(),!t.nf(n)},M(Kx,"LayoutConfigurator/lambda$1$Type",936),E(937,1,{2011:1},lK),f.Kg=function(t,n){return PIe(t,n)},M(Kx,"LayoutConfigurator/lambda$2$Type",937),E(938,1,Jn,v$e),f.Mb=function(t){return gNt(this.a,this.b,c(t,2011))},M(Kx,"LayoutConfigurator/lambda$3$Type",938),E(860,1,{},X$),M(Kx,"RecursiveGraphLayoutEngine",860),E(194,63,B1,YLe,Uh),M(Kx,"UnsupportedConfigurationException",194),E(367,63,B1,u4),M(Kx,"UnsupportedGraphException",367),E(756,1,{}),M(ic,"AbstractRandomListAccessor",756),E(403,756,{},QS),f.Mg=function(){return null},f.d=!0,f.e=!0,f.f=0,M(kj,"AlgorithmAssembler",403),E(1181,1,Jn,W$),f.Mb=function(t){return!!c(t,86)},M(kj,"AlgorithmAssembler/lambda$0$Type",1181),E(1182,1,{},VDe),f.Kb=function(t){return i8t(this.a,c(t,86))},M(kj,"AlgorithmAssembler/lambda$1$Type",1182),E(1183,1,Jn,N8),f.Mb=function(t){return!!c(t,75)},M(kj,"AlgorithmAssembler/lambda$2$Type",1183),E(1184,1,ln,XDe),f.Ad=function(t){Fu(this.a,c(t,75))},M(kj,"AlgorithmAssembler/lambda$3$Type",1184),E(1185,1,ln,y$e),f.Ad=function(t){T7t(this.a,this.b,c(t,177))},M(kj,"AlgorithmAssembler/lambda$4$Type",1185),E(1311,1,Yn,K$),f.Le=function(t,n){return GNt(c(t,177),c(n,177))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(kj,"EnumBasedFactoryComparator",1311),E(75,756,{75:1},xr),f.Mg=function(){return new Tr},f.a=0,M(kj,"LayoutProcessorConfiguration",75),E(1018,1,{528:1},pg),f.Jg=function(t){AD(r2t,new WDe(t))};var i2t,r2t,s2t;M(Ro,"DeprecatedLayoutOptionReplacer",1018),E(1019,1,ln,rN),f.Ad=function(t){YPt(c(t,176))},M(Ro,"DeprecatedLayoutOptionReplacer/lambda$0$Type",1019),E(1020,1,ln,Y$),f.Ad=function(t){yzt(c(t,176))},M(Ro,"DeprecatedLayoutOptionReplacer/lambda$1$Type",1020),E(1021,1,{},WDe),f.Wd=function(t,n){S7t(this.a,c(t,149),c(n,42))},M(Ro,"DeprecatedLayoutOptionReplacer/lambda$2$Type",1021),E(144,1,{697:1,144:1},pb),f.Fb=function(t){return Fbe(this,t)},f.Ng=function(){return this.b},f.Og=function(){return this.c},f.ve=function(){return this.e},f.Hb=function(){return _g(this.c)},f.Ib=function(){return"Layout Algorithm: "+this.c};var pin=M(Ro,"LayoutAlgorithmData",144);E(271,1,{},h1),M(Ro,"LayoutAlgorithmData/Builder",271),E(714,1,{528:1},uK),f.Jg=function(t){vUe(t)},M(Ro,"LayoutAlgorithmResolver",714),E(236,1,{697:1,236:1},L4),f.Fb=function(t){return ae(t,236)?St(this.b,c(t,236).b):!1},f.Ng=function(){return this.a},f.Og=function(){return this.b},f.ve=function(){return this.d},f.Hb=function(){return _g(this.b)},f.Ib=function(){return"Layout Type: "+this.b},M(Ro,"LayoutCategoryData",236),E(358,1,{},_p),M(Ro,"LayoutCategoryData/Builder",358),E(869,1,{},Wit);var bae;M(Ro,"LayoutMetaDataService",869),E(870,1,{},xHe),M(Ro,"LayoutMetaDataService/Registry",870),E(478,1,{478:1},Du),M(Ro,"LayoutMetaDataService/Registry/Triple",478),E(871,1,t3,qf),f.Pg=function(){return new fs},M(Ro,"LayoutMetaDataService/lambda$0$Type",871),E(872,1,Dv,Z$),f.Qg=function(t){return As(c(t,8))},M(Ro,"LayoutMetaDataService/lambda$1$Type",872),E(881,1,t3,eB),f.Pg=function(){return new He},M(Ro,"LayoutMetaDataService/lambda$10$Type",881),E(882,1,Dv,tB),f.Qg=function(t){return new ql(c(t,13))},M(Ro,"LayoutMetaDataService/lambda$11$Type",882),E(883,1,t3,nB),f.Pg=function(){return new _i},M(Ro,"LayoutMetaDataService/lambda$12$Type",883),E(884,1,Dv,i6),f.Qg=function(t){return X_(c(t,66))},M(Ro,"LayoutMetaDataService/lambda$13$Type",884),E(885,1,t3,iB),f.Pg=function(){return new Tr},M(Ro,"LayoutMetaDataService/lambda$14$Type",885),E(886,1,Dv,_8),f.Qg=function(t){return Dee(c(t,47))},M(Ro,"LayoutMetaDataService/lambda$15$Type",886),E(887,1,t3,rB),f.Pg=function(){return new Ad},M(Ro,"LayoutMetaDataService/lambda$16$Type",887),E(888,1,Dv,aK),f.Qg=function(t){return Zq(c(t,47))},M(Ro,"LayoutMetaDataService/lambda$17$Type",888),E(889,1,t3,D8),f.Pg=function(){return new aY},M(Ro,"LayoutMetaDataService/lambda$18$Type",889),E(890,1,Dv,sN),f.Qg=function(t){return XFe(c(t,143))},M(Ro,"LayoutMetaDataService/lambda$19$Type",890),E(873,1,t3,sB),f.Pg=function(){return new tu},M(Ro,"LayoutMetaDataService/lambda$2$Type",873),E(874,1,Dv,oB),f.Qg=function(t){return new Jz(c(t,79))},M(Ro,"LayoutMetaDataService/lambda$3$Type",874),E(875,1,t3,cB),f.Pg=function(){return new aT},M(Ro,"LayoutMetaDataService/lambda$4$Type",875),E(876,1,Dv,oN),f.Qg=function(t){return new GZ(c(t,125))},M(Ro,"LayoutMetaDataService/lambda$5$Type",876),E(877,1,t3,cN),f.Pg=function(){return new s4},M(Ro,"LayoutMetaDataService/lambda$6$Type",877),E(878,1,Dv,lN),f.Qg=function(t){return new J0e(c(t,100))},M(Ro,"LayoutMetaDataService/lambda$7$Type",878),E(879,1,t3,lB),f.Pg=function(){return new L5},M(Ro,"LayoutMetaDataService/lambda$8$Type",879),E(880,1,Dv,uN),f.Qg=function(t){return new TVe(c(t,380))},M(Ro,"LayoutMetaDataService/lambda$9$Type",880);var mae=Zi(PL,"IProperty");E(21,1,{34:1,697:1,21:1,149:1},nt),f.Dd=function(t){return QTt(this,c(t,149))},f.Fb=function(t){return ae(t,21)?St(this.f,c(t,21).f):ae(t,149)&&St(this.f,c(t,149).Og())},f.Rg=function(){var t;if(ae(this.b,4)){if(t=p2e(this.b),t==null)throw V(new co(Jlt+this.f+"'. Make sure it's type is registered with the "+(x1(bI),bI.k)+A4e));return t}else return this.b},f.Ng=function(){return this.d},f.Og=function(){return this.f},f.ve=function(){return this.i},f.Hb=function(){return _g(this.f)},f.Ib=function(){return"Layout Option: "+this.f},M(Ro,"LayoutOptionData",21),E(25,1,{},et),M(Ro,"LayoutOptionData/Builder",25),E(161,23,{3:1,34:1,23:1,161:1},A_);var sh,J1,pr,_t,Kg,Lh=vn(Ro,"LayoutOptionData/Target",161,Tn,uPt,iMt),o2t;E(287,23,{3:1,34:1,23:1,287:1},p4);var Ir,us,Vi,Fk,Ts,Ph,qk,bTe,c2t=vn(Ro,"LayoutOptionData/Type",287,Tn,kIt,rMt),l2t,zC,mTe;E(120,1,{120:1},w4,pf,Rq),f.Fb=function(t){var n;return t==null||!ae(t,120)?!1:(n=c(t,120),gc(this.c,n.c)&&gc(this.d,n.d)&&gc(this.b,n.b)&&gc(this.a,n.a))},f.Hb=function(){return GH(Y(K(Br,1),Pt,1,5,[this.c,this.d,this.b,this.a]))},f.Ib=function(){return"Rect[x="+this.c+",y="+this.d+",w="+this.b+",h="+this.a+"]"},f.a=0,f.b=0,f.c=0,f.d=0,M(QL,"ElkRectangle",120),E(8,1,{3:1,4:1,8:1,419:1},fs,Fee,ze,Ms),f.Fb=function(t){return $Xe(this,t)},f.Hb=function(){return m4(this.a)+mqt(m4(this.b))},f.ag=function(t){var n,i,r,o;for(r=0;r<t.length&&jKe((en(r,t.length),t.charCodeAt(r)),Ict);)++r;for(n=t.length;n>0&&jKe((en(n-1,t.length),t.charCodeAt(n-1)),Rct);)--n;if(r>=n)throw V(new qt("The given string does not contain any numbers."));if(o=Sv((hs(r,n,t.length),t.substr(r,n-r)),`,|;|\r|
`),o.length!=2)throw V(new qt("Exactly two numbers are expected, "+o.length+" were found."));try{this.a=mv(wv(o[0])),this.b=mv(wv(o[1]))}catch(a){throw a=kr(a),ae(a,133)?(i=a,V(new qt($ct+i))):V(a)}},f.Ib=function(){return"("+this.a+","+this.b+")"},f.a=0,f.b=0;var Wr=M(QL,"KVector",8);E(79,66,{3:1,4:1,22:1,32:1,56:1,18:1,66:1,16:1,79:1,419:1},tu,Jz,Mze),f.Nc=function(){return R$t(this)},f.ag=function(t){var n,i,r,o,a,d;r=Sv(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| |	|
`),xu(this);try{for(i=0,a=0,o=0,d=0;i<r.length;)r[i]!=null&&wv(r[i]).length>0&&(a%2==0?o=mv(r[i]):d=mv(r[i]),a>0&&a%2!=0&&ei(this,new ze(o,d)),++a),++i}catch(b){throw b=kr(b),ae(b,133)?(n=b,V(new qt("The given string does not match the expected format for vectors."+n))):V(b)}},f.Ib=function(){var t,n,i;for(t=new Lu("("),n=Pn(this,0);n.b!=n.d.c;)i=c(Dn(n),8),Zn(t,i.a+","+i.b),n.b!=n.d.c&&(t.a+="; ");return(t.a+=")",t).a};var wTe=M(QL,"KVectorChain",79);E(259,23,{3:1,34:1,23:1,259:1},_T);var wae,cV,lV,GP,UP,uV,vTe=vn(Wc,"Alignment",259,Tn,zPt,sMt),u2t;E(984,1,jf,XN),f.tf=function(t){Ort(t)};var yTe,vae,a2t,xTe,kTe,f2t,OTe,h2t,d2t,STe,jTe,g2t;M(Wc,"BoxLayouterOptions",984),E(985,1,{},aN),f.uf=function(){var t;return t=new aB,t},f.vf=function(t){},M(Wc,"BoxLayouterOptions/BoxFactory",985),E(300,23,{3:1,34:1,23:1,300:1},DT);var FC,yae,qC,HC,QC,xae,kae=vn(Wc,"ContentAlignment",300,Tn,BPt,oMt),p2t;E(696,1,jf,WN),f.tf=function(t){at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,Xlt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(z0(),qk)),tt),bt((kh(),_t))))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,Wlt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),Ph),pin),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,h5e),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),TTe),Vi),vTe),bt(pr)))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,aj),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,D4e),""),"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."),Ph),wTe),bt(sh)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,IG),""),"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."),CTe),Fk),kae),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,XL),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Bt(),!1)),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Pse),""),"Direction"),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),MTe),Vi),JC),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,VL),""),"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."),_Te),Vi),Pae),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,N4e),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,PG),""),"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`."),LTe),Vi),O7e),Li(_t,Y(K(Lh,1),Pe,161,0,[pr]))))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,mw),""),"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."),GTe),Ph),SOe),Li(_t,Y(K(Lh,1),Pe,161,0,[pr]))))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,fj),""),"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),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,$G),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,hj),""),"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),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,mG),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),WTe),Vi),T7e),bt(pr)))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,RG),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),Ph),Wr),Li(pr,Y(K(Lh,1),Pe,161,0,[Kg,J1]))))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,RL),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),Ts),Pr),Li(pr,Y(K(Lh,1),Pe,161,0,[sh]))))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,bG),""),"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)."),Ts),Pr),bt(_t)))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,vE),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,O5e),""),"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."),RTe),Ph),wTe),bt(sh)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,E5e),""),"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),Ir),or),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,C5e),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),Ir),or),bt(pr)))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,qnn),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),Ph),xin),Li(_t,Y(K(Lh,1),Pe,161,0,[J1]))))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Klt),""),"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),us),jr),bt(J1)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,$se),""),"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."),$Te),Ph),OOe),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,a5e),""),"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),Ir),or),Li(pr,Y(K(Lh,1),Pe,161,0,[sh,Kg,J1]))))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Ylt),""),"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),us),jr),bt(pr)))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,Zlt),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,eut),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,BL),""),Qlt),"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),Ir),or),bt(_t)))),er(t,BL,ww,null),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,tut),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,nut),""),"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'."),$e(100)),Ts),Pr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,iut),""),"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),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,rut),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),$e(4e3)),Ts),Pr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,sut),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),$e(400)),Ts),Pr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,out),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,cut),""),"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),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,lut),""),"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),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,uut),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,_4e),"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."),ETe),Vi),B7e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,aut),"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."),ITe),Vi),M7e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,fut),"json"),"Edge Coords"),"For layouts transferred into JSON graphs, specify the coordinate system to be used for edge route points and edge labels."),PTe),Vi),a7e),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Y3e),Ah),"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),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Z3e),Ah),"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),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,e5e),Ah),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,t5e),Ah),"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),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Ure),Ah),"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),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Lse),Ah),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,n5e),Ah),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,s5e),Ah),"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),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,i5e),Ah),"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),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,r5e),Ah),"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),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,bw),Ah),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,o5e),Ah),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),us),jr),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,c5e),Ah),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),us),jr),Li(_t,Y(K(Lh,1),Pe,161,0,[pr]))))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,l5e),Ah),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),Ph),fvt),Li(pr,Y(K(Lh,1),Pe,161,0,[sh,Kg,J1]))))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,A5e),Ah),"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."),o7e),Ph),OOe),bt(_t)))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,Rse),gut),"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)."),Ts),Pr),Li(_t,Y(K(Lh,1),Pe,161,0,[pr]))))),er(t,Rse,Ise,E2t),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Ise),gut),"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."),UTe),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,p5e),put),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),zTe),Ph),SOe),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,gj),put),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),FTe),Fk),Ks),Li(pr,Y(K(Lh,1),Pe,161,0,[J1]))))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,w5e),UG),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),VTe),Vi),KC),bt(pr)))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,v5e),UG),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),Vi),KC),bt(pr)))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,y5e),UG),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),Vi),KC),bt(pr)))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,x5e),UG),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),Vi),KC),bt(pr)))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,k5e),UG),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),Vi),KC),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,Yx),foe),"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."),qTe),Fk),eM),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,bk),foe),"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."),QTe),Fk),A7e),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,mk),foe),"Node Size Minimum"),"The minimal size to which a node can be reduced."),HTe),Ph),Wr),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,dj),foe),"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),Ir),or),bt(_t)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,j5e),Dse),"Edge Label Placement"),"Gives a hint on where to put edge labels."),ATe),Vi),f7e),bt(J1)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,$L),Dse),"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),Ir),or),bt(J1)))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,Hnn),"font"),"Font Name"),"Font name used for a label."),qk),tt),bt(J1)))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,hut),"font"),"Font Size"),"Font size used for a label."),Ts),Pr),bt(J1)))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,M5e),hoe),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),Ph),Wr),bt(Kg)))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,T5e),hoe),"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."),Ts),Pr),bt(Kg)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,f5e),hoe),"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."),ZTe),Vi),Bs),bt(Kg)))),at(t,new nt(lt(ct(ut(it(ot(rt(st(new et,u5e),hoe),"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."),us),jr),bt(Kg)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,pj),I4e),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),KTe),Fk),mV),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,b5e),I4e),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),Ir),or),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,m5e),I4e),"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),Ir),or),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,uoe),Sj),"Number of size categories"),"Defines the number of categories to use for the FIXED_INTEGER_RATIO_BOXES size approximator."),$e(3)),Ts),Pr),bt(_t)))),er(t,uoe,aoe,B2t),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,L4e),Sj),"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."),$e(4)),Ts),Pr),bt(_t)))),er(t,L4e,uoe,null),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,zL),Sj),"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),us),jr),bt(_t)))),er(t,zL,ww,I2t),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,aoe),Sj),"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),Ph),bin),bt(pr)))),er(t,aoe,ww,R2t),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,FL),Sj),"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),us),jr),Li(_t,Y(K(Lh,1),Pe,161,0,[pr]))))),er(t,FL,ww,null),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,qL),Sj),"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),us),jr),Li(_t,Y(K(Lh,1),Pe,161,0,[pr]))))),er(t,qL,ww,null),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,ww),Sj),"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),Vi),_7e),bt(pr)))),er(t,ww,dj,null),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,P4e),Sj),"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),us),jr),bt(_t)))),er(t,P4e,ww,P2t),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,d5e),but),"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),Ir),or),bt(pr)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,g5e),but),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),Ir),or),bt(sh)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,S5e),"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),us),jr),bt(sh)))),at(t,new nt(lt(ct(ut(yt(it(ot(rt(st(new et,dut),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),DTe),Vi),m7e),bt(sh)))),OT(t,new L4(mT(N6(A6(new _p,Qt),"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.'))),OT(t,new L4(mT(N6(A6(new _p,"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.`))),OT(t,new L4(mT(N6(A6(new _p,sl),"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."))),OT(t,new L4(mT(N6(A6(new _p,"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."))),OT(t,new L4(mT(N6(A6(new _p,H5e),"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."))),OT(t,new L4(mT(N6(A6(new _p,"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."))),OT(t,new L4(mT(N6(A6(new _p,Sa),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),crt((new dz,t)),Ort((new XN,t)),_it((new gz,t))};var Hk,b2t,TTe,l9,m2t,w2t,ETe,iy,ry,v2t,JP,CTe,VP,Bb,MTe,aV,Oae,ATe,NTe,_Te,y2t,DTe,x2t,A3,LTe,k2t,XP,Sae,GC,jae,O2t,PTe,S2t,ITe,N3,RTe,V1,$Te,BTe,zTe,_3,FTe,zb,qTe,sy,D3,HTe,op,QTe,fV,UC,Ih,GTe,j2t,UTe,T2t,E2t,JTe,VTe,Tae,Eae,Cae,Mae,XTe,au,u9,WTe,Aae,Nae,oy,KTe,YTe,L3,ZTe,Qk,WP,_ae,cy,C2t,Dae,M2t,A2t,N2t,_2t,e7e,t7e,Gk,n7e,hV,i7e,r7e,oh,D2t,s7e,o7e,c7e,a9,ly,f9,Uk,L2t,P2t,dV,I2t,gV,R2t,$2t,B2t,z2t;M(Wc,"CoreOptions",696),E(87,23,{3:1,34:1,23:1,87:1},N_);var Rh,po,vo,$h,Ma,JC=vn(Wc,"Direction",87,Tn,XLt,cMt),F2t;E(280,23,{3:1,34:1,23:1,280:1},TF);var pV,KP,l7e,u7e,a7e=vn(Wc,"EdgeCoords",280,Tn,vLt,lMt),q2t;E(281,23,{3:1,34:1,23:1,281:1},fZ);var h9,uy,d9,f7e=vn(Wc,"EdgeLabelPlacement",281,Tn,vDt,uMt),H2t;E(225,23,{3:1,34:1,23:1,225:1},EF);var g9,YP,Jk,Lae,Pae=vn(Wc,"EdgeRouting",225,Tn,yLt,aMt),Q2t;E(328,23,{3:1,34:1,23:1,328:1},LT);var h7e,d7e,g7e,p7e,Iae,b7e,m7e=vn(Wc,"EdgeType",328,Tn,$Pt,fMt),G2t;E(982,1,jf,dz),f.tf=function(t){crt(t)};var w7e,v7e,y7e,x7e,U2t,k7e,VC;M(Wc,"FixedLayouterOptions",982),E(983,1,{},uB),f.uf=function(){var t;return t=new hB,t},f.vf=function(t){},M(Wc,"FixedLayouterOptions/FixedFactory",983),E(348,23,{3:1,34:1,23:1,348:1},hZ);var Yg,bV,XC,O7e=vn(Wc,"HierarchyHandling",348,Tn,xDt,hMt),J2t,bin=Zi(Wc,"ITopdownSizeApproximator");E(293,23,{3:1,34:1,23:1,293:1},CF);var Yd,cp,ZP,eI,V2t=vn(Wc,"LabelSide",293,Tn,xLt,dMt),X2t;E(96,23,{3:1,34:1,23:1,96:1},dx);var X1,Nf,Ka,_f,Xu,Df,Ya,Zd,Lf,Ks=vn(Wc,"NodeLabelPlacement",96,Tn,HIt,gMt),W2t;E(260,23,{3:1,34:1,23:1,260:1},__);var S7e,WC,lp,j7e,tI,KC=vn(Wc,"PortAlignment",260,Tn,aPt,pMt),K2t;E(103,23,{3:1,34:1,23:1,103:1},PT);var Fb,kc,e1,p9,Bh,up,T7e=vn(Wc,"PortConstraints",103,Tn,FPt,bMt),Y2t;E(282,23,{3:1,34:1,23:1,282:1},IT);var YC,ZC,W1,nI,ap,Vk,mV=vn(Wc,"PortLabelPlacement",282,Tn,qPt,mMt),Z2t;E(64,23,{3:1,34:1,23:1,64:1},D_);var nn,Kt,Aa,Na,yl,ll,zh,Pf,Xl,Rl,$c,Wl,xl,kl,If,Wu,Ku,Za,mn,Bo,Yt,Bs=vn(Wc,"PortSide",64,Tn,WLt,vMt),evt;E(986,1,jf,gz),f.tf=function(t){_it(t)};var tvt,nvt,E7e,ivt,rvt;M(Wc,"RandomLayouterOptions",986),E(987,1,{},fN),f.uf=function(){var t;return t=new dB,t},f.vf=function(t){},M(Wc,"RandomLayouterOptions/RandomFactory",987),E(301,23,{3:1,34:1,23:1,301:1},dZ);var iI,Rae,C7e,M7e=vn(Wc,"ShapeCoords",301,Tn,wDt,wMt),svt;E(381,23,{3:1,34:1,23:1,381:1},MF);var ay,rI,sI,qb,eM=vn(Wc,"SizeConstraint",381,Tn,kLt,yMt),ovt;E(267,23,{3:1,34:1,23:1,267:1},gx);var oI,wV,b9,$ae,cI,tM,vV,yV,xV,A7e=vn(Wc,"SizeOptions",267,Tn,WIt,xMt),cvt;E(283,23,{3:1,34:1,23:1,283:1},gZ);var fy,N7e,kV,_7e=vn(Wc,"TopdownNodeTypes",283,Tn,yDt,kMt),lvt;E(290,23,VG);var D7e,Bae,L7e,P7e,lI=vn(Wc,"TopdownSizeApproximator",290,Tn,OLt,OMt);E(978,290,VG,gqe),f.Sg=function(t){return uZe(t)},vn(Wc,"TopdownSizeApproximator/1",978,lI,null,null),E(979,290,VG,Yqe),f.Sg=function(t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt,Lt;for(n=c(Se(t,(In(),cy)),144),Xe=(b0(),I=new fT,I),aL(Xe,t),mt=new yn,a=new on((!t.a&&(t.a=new _e(_n,t,10,11)),t.a));a.e!=a.i.gc();)r=c(un(a),19),le=(L=new fT,L),qQ(le,Xe),aL(le,r),Lt=uZe(r),Pm(le,p.Math.max(r.g,Lt.a),p.Math.max(r.f,Lt.b)),bl(mt.f,r,le);for(o=new on((!t.a&&(t.a=new _e(_n,t,10,11)),t.a));o.e!=o.i.gc();)for(r=c(un(o),19),T=new on((!r.e&&(r.e=new Ct($i,r,7,4)),r.e));T.e!=T.i.gc();)x=c(un(T),74),je=c(No(lo(mt.f,r)),19),Oe=c(Ut(mt,ce((!x.c&&(x.c=new Ct(xn,x,5,8)),x.c),0)),19),me=(A=new L8,A),Ln((!me.b&&(me.b=new Ct(xn,me,4,7)),me.b),je),Ln((!me.c&&(me.c=new Ct(xn,me,5,8)),me.c),Oe),FQ(me,Wi(je)),aL(me,x);Q=c(rD(n.f),207);try{Q.kf(Xe,new gN),Vpe(n.f,Q)}catch(Rt){throw Rt=kr(Rt),ae(Rt,102)?(z=Rt,V(z)):V(Rt)}return pa(Xe,ry)||pa(Xe,iy)||nre(Xe),v=de(be(Se(Xe,ry))),b=de(be(Se(Xe,iy))),d=v/b,i=de(be(Se(Xe,ly)))*p.Math.sqrt((!Xe.a&&(Xe.a=new _e(_n,Xe,10,11)),Xe.a).i),wt=c(Se(Xe,Ih),100),re=wt.b+wt.c+1,W=wt.d+wt.a+1,new ze(p.Math.max(re,i),p.Math.max(W,i/d))},vn(Wc,"TopdownSizeApproximator/2",979,lI,null,null),E(980,290,VG,jQe),f.Sg=function(t){var n,i,r,o,a,d;return i=de(be(Se(t,(In(),ly)))),n=i/de(be(Se(t,a9))),r=sYt(t),a=c(Se(t,Ih),100),o=de(be(Ve(oh))),Wi(t)&&(o=de(be(Se(Wi(t),oh)))),d=y1(new ze(i,n),r),Oi(d,new ze(-(a.b+a.c)-o,-(a.d+a.a)-o))},vn(Wc,"TopdownSizeApproximator/3",980,lI,null,null),E(981,290,VG,Zqe),f.Sg=function(t){var n,i,r,o,a,d,b,v,x,T;for(d=new on((!t.a&&(t.a=new _e(_n,t,10,11)),t.a));d.e!=d.i.gc();)a=c(un(d),19),Se(a,(In(),gV))!=null&&(!a.a&&(a.a=new _e(_n,a,10,11)),!!a.a)&&(!a.a&&(a.a=new _e(_n,a,10,11)),a.a).i>0?(i=c(Se(a,gV),525),T=i.Sg(a),x=c(Se(a,Ih),100),Pm(a,p.Math.max(a.g,T.a+x.b+x.c),p.Math.max(a.f,T.b+x.d+x.a))):(!a.a&&(a.a=new _e(_n,a,10,11)),a.a).i!=0&&Pm(a,de(be(Se(a,ly))),de(be(Se(a,ly)))/de(be(Se(a,a9))));n=c(Se(t,(In(),cy)),144),v=c(rD(n.f),207);try{v.kf(t,new gN),Vpe(n.f,v)}catch(A){throw A=kr(A),ae(A,102)?(b=A,V(b)):V(A)}return ri(t,Hk,jj),vUe(t),nre(t),o=de(be(Se(t,ry))),r=de(be(Se(t,iy))),new ze(o,r)},vn(Wc,"TopdownSizeApproximator/4",981,lI,null,null);var uvt;E(346,1,{861:1},o4),f.Tg=function(t,n){return jet(this,t,n)},f.Ug=function(){Zet(this)},f.Vg=function(){return this.q},f.Wg=function(){return this.f?Iq(this.f):null},f.Xg=function(){return Iq(this.a)},f.Yg=function(){return this.p},f.Zg=function(){return!1},f.$g=function(){return this.n},f._g=function(){return this.p!=null&&!this.b},f.ah=function(t){var n;this.n&&(n=t,Qe(this.f,n))},f.bh=function(t,n){var i,r;this.n&&t&&BDt(this,(i=new mHe,r=Pie(i,t),Jen(i),r),(HH(),Fae))},f.dh=function(t){var n;return this.b?null:(n=EIt(this,this.g),ei(this.a,n),n.i=this,this.d=t,n)},f.eh=function(t){t>0&&!this.b&&Qme(this,t)},f.b=!1,f.c=0,f.d=-1,f.e=null,f.f=null,f.g=-1,f.j=!1,f.k=!1,f.n=!1,f.o=0,f.q=0,f.r=0,M(ic,"BasicProgressMonitor",346),E(713,207,yb,aB),f.kf=function(t,n){Frt(t,n)},M(ic,"BoxLayoutProvider",713),E(974,1,Yn,KDe),f.Le=function(t,n){return QVt(this,c(t,19),c(n,19))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},f.a=!1,M(ic,"BoxLayoutProvider/1",974),E(168,1,{168:1},yH,Aze),f.Ib=function(){return this.c?Rye(this.c):jh(this.b)},M(ic,"BoxLayoutProvider/Group",168),E(327,23,{3:1,34:1,23:1,327:1},AF);var I7e,R7e,$7e,zae,B7e=vn(ic,"BoxLayoutProvider/PackingMode",327,Tn,SLt,SMt),avt;E(975,1,Yn,mm),f.Le=function(t,n){return QNt(c(t,168),c(n,168))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(ic,"BoxLayoutProvider/lambda$0$Type",975),E(976,1,Yn,hN),f.Le=function(t,n){return DNt(c(t,168),c(n,168))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(ic,"BoxLayoutProvider/lambda$1$Type",976),E(977,1,Yn,fK),f.Le=function(t,n){return LNt(c(t,168),c(n,168))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(ic,"BoxLayoutProvider/lambda$2$Type",977),E(1350,1,{837:1},fB),f.Lg=function(t,n){return eF(),!ae(n,176)||PIe((G4(),c(t,176)),n)},M(ic,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1350),E(1351,1,ln,YDe),f.Ad=function(t){$$t(this.a,c(t,149))},M(ic,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1351),E(1352,1,ln,wm),f.Ad=function(t){c(t,105),eF()},M(ic,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1352),E(1356,1,ln,ZDe),f.Ad=function(t){aRt(this.a,c(t,105))},M(ic,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1356),E(1354,1,Jn,x$e),f.Mb=function(t){return k$t(this.a,this.b,c(t,149))},M(ic,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1354),E(1353,1,Jn,k$e),f.Mb=function(t){return y7t(this.a,this.b,c(t,837))},M(ic,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1353),E(1355,1,ln,O$e),f.Ad=function(t){EAt(this.a,this.b,c(t,149))},M(ic,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1355),E(939,1,{},dN),f.Kb=function(t){return kBe(t)},f.Fb=function(t){return this===t},M(ic,"ElkUtil/lambda$0$Type",939),E(940,1,ln,S$e),f.Ad=function(t){GUt(this.a,this.b,c(t,74))},f.a=0,f.b=0,M(ic,"ElkUtil/lambda$1$Type",940),E(941,1,ln,j$e),f.Ad=function(t){O9t(this.a,this.b,c(t,171))},f.a=0,f.b=0,M(ic,"ElkUtil/lambda$2$Type",941),E(942,1,ln,T$e),f.Ad=function(t){bTt(this.a,this.b,c(t,158))},f.a=0,f.b=0,M(ic,"ElkUtil/lambda$3$Type",942),E(943,1,ln,eLe),f.Ad=function(t){XMt(this.a,c(t,373))},M(ic,"ElkUtil/lambda$4$Type",943),E(332,1,{34:1,332:1},Yjt),f.Dd=function(t){return qTt(this,c(t,245))},f.Fb=function(t){var n;return ae(t,332)?(n=c(t,332),this.a==n.a):!1},f.Hb=function(){return ks(this.a)},f.Ib=function(){return this.a+" (exclusive)"},f.a=0,M(ic,"ExclusiveBounds/ExclusiveLowerBound",332),E(1100,207,yb,hB),f.kf=function(t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re,le,me,je,Oe,Xe,mt,wt;for(n.Tg("Fixed Layout",1),a=c(Se(t,(In(),NTe)),225),A=0,L=0,le=new on((!t.a&&(t.a=new _e(_n,t,10,11)),t.a));le.e!=le.i.gc();){for(W=c(un(le),19),wt=c(Se(W,(QH(),VC)),8),wt&&(fa(W,wt.a,wt.b),c(Se(W,v7e),185).Gc((Tu(),ay))&&(I=c(Se(W,x7e),8),I.a>0&&I.b>0&&hw(W,I.a,I.b,!0,!0))),A=p.Math.max(A,W.i+W.g),L=p.Math.max(L,W.j+W.f),x=new on((!W.n&&(W.n=new _e(zo,W,1,7)),W.n));x.e!=x.i.gc();)b=c(un(x),158),wt=c(Se(b,VC),8),wt&&fa(b,wt.a,wt.b),A=p.Math.max(A,W.i+b.i+b.g),L=p.Math.max(L,W.j+b.j+b.f);for(Oe=new on((!W.c&&(W.c=new _e(fu,W,9,9)),W.c));Oe.e!=Oe.i.gc();)for(je=c(un(Oe),127),wt=c(Se(je,VC),8),wt&&fa(je,wt.a,wt.b),Xe=W.i+je.i,mt=W.j+je.j,A=p.Math.max(A,Xe+je.g),L=p.Math.max(L,mt+je.f),v=new on((!je.n&&(je.n=new _e(zo,je,1,7)),je.n));v.e!=v.i.gc();)b=c(un(v),158),wt=c(Se(b,VC),8),wt&&fa(b,wt.a,wt.b),A=p.Math.max(A,Xe+b.i+b.g),L=p.Math.max(L,mt+b.j+b.f);for(o=new Ht(Xt(I1(W).a.Jc(),new F));hn(o);)i=c(rn(o),74),T=iot(i),A=p.Math.max(A,T.a),L=p.Math.max(L,T.b);for(r=new Ht(Xt($Q(W).a.Jc(),new F));hn(r);)i=c(rn(r),74),Wi(lie(i))!=t&&(T=iot(i),A=p.Math.max(A,T.a),L=p.Math.max(L,T.b))}if(a==(L1(),g9))for(re=new on((!t.a&&(t.a=new _e(_n,t,10,11)),t.a));re.e!=re.i.gc();)for(W=c(un(re),19),r=new Ht(Xt(I1(W).a.Jc(),new F));hn(r);)i=c(rn(r),74),d=QKt(i),d.b==0?ri(i,N3,null):ri(i,N3,d);Ze(Ye(Se(t,(QH(),y7e))))||(me=c(Se(t,U2t),100),Q=A+me.b+me.c,z=L+me.d+me.a,hw(t,Q,z,!0,!0)),n.Ug()},M(ic,"FixedLayoutProvider",1100),E(380,151,{3:1,419:1,380:1,105:1,151:1},L5,TVe),f.ag=function(t){var n,i,r,o,a,d,b,v,x;if(t)try{for(v=Sv(t,";,;"),a=v,d=0,b=a.length;d<b;++d){if(o=a[d],i=Sv(o,"\\:"),r=bxe(v7(),i[0]),!r)throw V(new qt("Invalid option id: "+i[0]));if(x=gxe(r,i[1]),x==null)throw V(new qt("Invalid option value: "+i[1]));x==null?(!this.q&&(this.q=new yn),$4(this.q,r)):(!this.q&&(this.q=new yn),ci(this.q,r,x))}}catch(T){throw T=kr(T),ae(T,102)?(n=T,V(new gKe(n))):V(T)}},f.Ib=function(){var t;return t=qn(Hl(Qc((this.q?this.q:(Mt(),Mt(),Vd)).vc().Mc(),new r6),nIt(new JFe,new jp,new nr,new ms,Y(K(vl,1),Pe,132,0,[])))),t};var fvt=M(ic,"IndividualSpacings",380);E(973,1,{},r6),f.Kb=function(t){return HNt(c(t,45))},M(ic,"IndividualSpacings/lambda$0$Type",973),E(715,1,{},Aqe),f.c=0,M(ic,"InstancePool",715),E(1833,1,{},Tl),M(ic,"LoggedGraph",1833),E(412,23,{3:1,34:1,23:1,412:1},NF);var z7e,Fae,F7e,q7e,hvt=vn(ic,"LoggedGraph/Type",412,Tn,jLt,jMt),dvt;E(621,1,{861:1},gN),f.Tg=function(t,n){return!1},f.Ug=function(){},f.Vg=function(){return 0},f.Wg=function(){return null},f.Xg=function(){return null},f.Yg=function(){return null},f.Zg=function(){return!1},f.$g=function(){return!1},f._g=function(){return!1},f.ah=function(t){},f.bh=function(t,n){},f.dh=function(t){return this},f.eh=function(t){},M(ic,"NullElkProgressMonitor",621),E(49,1,{22:1,49:1},hK,Is),f.Ic=function(t){vs(this,t)},f.Fb=function(t){var n,i,r;return ae(t,49)?(i=c(t,49),n=this.a==null?i.a==null:xi(this.a,i.a),r=this.b==null?i.b==null:xi(this.b,i.b),n&&r):!1},f.Hb=function(){var t,n,i,r,o,a;return i=this.a==null?0:zi(this.a),t=i&Dr,n=i&-65536,a=this.b==null?0:zi(this.b),r=a&Dr,o=a&-65536,t^o>>16&Dr|n^r<<16},f.Jc=function(){return new tLe(this)},f.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+To(this.b)+")":this.b==null?"pair("+To(this.a)+",null)":"pair("+To(this.a)+","+To(this.b)+")"},M(ic,"Pair",49),E(988,1,ns,tLe),f.Nb=function(t){ps(this,t)},f.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},f.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 V(new Mo)},f.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),V(new El)},f.b=!1,f.c=!1,M(ic,"Pair/1",988),E(1089,207,yb,dB),f.kf=function(t,n){var i,r,o,a,d;if(n.Tg("Random Layout",1),(!t.a&&(t.a=new _e(_n,t,10,11)),t.a).i==0){n.Ug();return}a=c(Se(t,(u2e(),ivt)),15),a&&a.a!=0?o=new eH(a.a):o=new pne,i=f_(be(Se(t,tvt))),d=f_(be(Se(t,rvt))),r=c(Se(t,nvt),100),gtn(t,o,i,d,r),n.Ug()},M(ic,"RandomLayoutProvider",1089),E(243,1,{243:1},JZ),f.Fb=function(t){return gc(this.a,c(t,243).a)&&gc(this.b,c(t,243).b)&&gc(this.c,c(t,243).c)},f.Hb=function(){return GH(Y(K(Br,1),Pt,1,5,[this.a,this.b,this.c]))},f.Ib=function(){return"("+this.a+Xc+this.b+Xc+this.c+")"},M(ic,"Triple",243);var gvt;E(554,1,{}),f.Jf=function(){return new ze(this.f.i,this.f.j)},f.mf=function(t){return kQe(t,(In(),au))?Se(this.f,pvt):Se(this.f,t)},f.Kf=function(){return new ze(this.f.g,this.f.f)},f.Lf=function(){return this.g},f.nf=function(t){return pa(this.f,t)},f.Mf=function(t){Nc(this.f,t.a),_l(this.f,t.b)},f.Nf=function(t){rb(this.f,t.a),ib(this.f,t.b)},f.Of=function(t){this.g=t},f.g=0;var pvt;M(ME,"ElkGraphAdapters/AbstractElkGraphElementAdapter",554),E(556,1,{845:1},Dz),f.Pf=function(){var t,n;if(!this.b)for(this.b=Uq(See(this.a).i),n=new on(See(this.a));n.e!=n.i.gc();)t=c(un(n),158),Qe(this.b,new yY(t));return this.b},f.b=null,M(ME,"ElkGraphAdapters/ElkEdgeAdapter",556),E(250,554,{},mg),f.Qf=function(){return MZe(this)},f.a=null,M(ME,"ElkGraphAdapters/ElkGraphAdapter",250),E(637,554,{190:1},yY),M(ME,"ElkGraphAdapters/ElkLabelAdapter",637),E(555,554,{692:1},JF),f.Pf=function(){return hqt(this)},f.Tf=function(){var t;return t=c(Se(this.f,(In(),V1)),125),!t&&(t=new aT),t},f.Vf=function(){return dqt(this)},f.Xf=function(t){var n;n=new GZ(t),ri(this.f,(In(),V1),n)},f.Yf=function(t){ri(this.f,(In(),Ih),new J0e(t))},f.Rf=function(){return this.d},f.Sf=function(){var t,n;if(!this.a)for(this.a=new He,n=new Ht(Xt($Q(c(this.f,19)).a.Jc(),new F));hn(n);)t=c(rn(n),74),Qe(this.a,new Dz(t));return this.a},f.Uf=function(){var t,n;if(!this.c)for(this.c=new He,n=new Ht(Xt(I1(c(this.f,19)).a.Jc(),new F));hn(n);)t=c(rn(n),74),Qe(this.c,new Dz(t));return this.c},f.Wf=function(){return Lq(c(this.f,19)).i!=0||Ze(Ye(c(this.f,19).mf((In(),XP))))},f.Zf=function(){cIt(this,(m0(),gvt))},f.a=null,f.b=null,f.c=null,f.d=null,f.e=null,M(ME,"ElkGraphAdapters/ElkNodeAdapter",555),E(1261,554,{844:1},nLe),f.Pf=function(){return yqt(this)},f.Sf=function(){var t,n;if(!this.a)for(this.a=Nd(c(this.f,127).gh().i),n=new on(c(this.f,127).gh());n.e!=n.i.gc();)t=c(un(n),74),Qe(this.a,new Dz(t));return this.a},f.Uf=function(){var t,n;if(!this.c)for(this.c=Nd(c(this.f,127).hh().i),n=new on(c(this.f,127).hh());n.e!=n.i.gc();)t=c(un(n),74),Qe(this.c,new Dz(t));return this.c},f.$f=function(){return c(c(this.f,127).mf((In(),L3)),64)},f._f=function(){var t,n,i,r,o,a,d,b;for(r=bh(c(this.f,127)),i=new on(c(this.f,127).hh());i.e!=i.i.gc();)for(t=c(un(i),74),b=new on((!t.c&&(t.c=new Ct(xn,t,5,8)),t.c));b.e!=b.i.gc();){if(d=c(un(b),83),sv(no(d),r))return!0;if(no(d)==r&&Ze(Ye(Se(t,(In(),Sae)))))return!0}for(n=new on(c(this.f,127).gh());n.e!=n.i.gc();)for(t=c(un(n),74),a=new on((!t.b&&(t.b=new Ct(xn,t,4,7)),t.b));a.e!=a.i.gc();)if(o=c(un(a),83),sv(no(o),r))return!0;return!1},f.a=null,f.b=null,f.c=null,M(ME,"ElkGraphAdapters/ElkPortAdapter",1261),E(1262,1,Yn,s6),f.Le=function(t,n){return IWt(c(t,127),c(n,127))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(ME,"ElkGraphAdapters/PortComparator",1262);var fp=Zi(ja,"EObject"),m9=Zi(n3,vut),Yu=Zi(n3,yut),uI=Zi(n3,xut),aI=Zi(n3,"ElkShape"),xn=Zi(n3,kut),$i=Zi(n3,$4e),Gi=Zi(n3,Out),fI=Zi(ja,Sut),nM=Zi(ja,"EFactory"),bvt,qae=Zi(ja,jut),ch=Zi(ja,"EPackage"),Kr,mvt,wvt,H7e,OV,vvt,Q7e,G7e,U7e,t1,yvt,xvt,zo=Zi(n3,B4e),_n=Zi(n3,z4e),fu=Zi(n3,F4e);E(94,1,Tut),f.qh=function(){return this.rh(),null},f.rh=function(){return null},f.sh=function(){return this.rh(),!1},f.th=function(){return!1},f.uh=function(t){yi(this,t)},M(yk,"BasicNotifierImpl",94),E(101,94,Aut),f.Vh=function(){return bu(this)},f.vh=function(t,n){return t},f.wh=function(){throw V(new zn)},f.xh=function(t){var n;return n=Qs(c(Dt(this.Ah(),this.Ch()),20)),this.Mh().Qh(this,n.n,n.f,t)},f.yh=function(t,n){throw V(new zn)},f.zh=function(t,n,i){return Qu(this,t,n,i)},f.Ah=function(){var t;return this.wh()&&(t=this.wh().Lk(),t)?t:this.fi()},f.Bh=function(){return yie(this)},f.Ch=function(){throw V(new zn)},f.Dh=function(){var t,n;return n=this.Xh().Mk(),!n&&this.wh().Rk(n=(jT(),t=ube(sd(this.Ah())),t==null?Wae:new B_(this,t))),n},f.Eh=function(t,n){return t},f.Fh=function(t){var n;return n=t.nk(),n?t.Jj():Ki(this.Ah(),t)},f.Gh=function(){var t;return t=this.wh(),t?t.Ok():null},f.Hh=function(){return this.wh()?this.wh().Lk():null},f.Ih=function(t,n,i){return dQ(this,t,n,i)},f.Jh=function(t){return cS(this,t)},f.Kh=function(t,n){return rte(this,t,n)},f.Lh=function(){var t;return t=this.wh(),!!t&&t.Pk()},f.Mh=function(){throw V(new zn)},f.Nh=function(){return lQ(this)},f.Oh=function(t,n,i,r){return K4(this,t,n,r)},f.Ph=function(t,n,i){var r;return r=c(Dt(this.Ah(),n),69),r.uk().xk(this,this.ei(),n-this.gi(),t,i)},f.Qh=function(t,n,i,r){return Bq(this,t,n,r)},f.Rh=function(t,n,i){var r;return r=c(Dt(this.Ah(),n),69),r.uk().yk(this,this.ei(),n-this.gi(),t,i)},f.Sh=function(){return!!this.wh()&&!!this.wh().Nk()},f.Th=function(t){return Ane(this,t)},f.Uh=function(t){return $Qe(this,t)},f.Wh=function(t){return Bst(this,t)},f.Xh=function(){throw V(new zn)},f.Yh=function(){return this.wh()?this.wh().Nk():null},f.Zh=function(){return lQ(this)},f.$h=function(t,n){pie(this,t,n)},f._h=function(t){this.Xh().Qk(t)},f.ai=function(t){this.Xh().Tk(t)},f.bi=function(t){this.Xh().Sk(t)},f.ci=function(t,n){var i,r,o,a;return a=this.Gh(),a&&t&&(n=_s(a.Cl(),this,n),a.Gl(this)),r=this.Mh(),r&&((_ie(this,this.Mh(),this.Ch()).Bb&Rs)!=0?(o=r.Nh(),o&&(t?!a&&o.Gl(this):o.Fl(this))):(n=(i=this.Ch(),i>=0?this.xh(n):this.Mh().Qh(this,-1-i,null,n)),n=this.zh(null,-1,n))),this.ai(t),n},f.di=function(t){var n,i,r,o,a,d,b,v;if(i=this.Ah(),a=Ki(i,t),n=this.gi(),a>=n)return c(t,69).uk().Bk(this,this.ei(),a-n);if(a<=-1)if(d=Jx((Ll(),bs),i,t),d){if(Hs(),c(d,69).vk()||(d=P4(ao(bs,d))),o=(r=this.Fh(d),c(r>=0?this.Ih(r,!0,!0):uw(this,d,!0),164)),v=d.Gk(),v>1||v==-1)return c(c(o,222).Ql(t,!1),78)}else throw V(new qt(J0+t.ve()+doe));else if(t.Hk())return r=this.Fh(t),c(r>=0?this.Ih(r,!1,!0):uw(this,t,!1),78);return b=new V$e(this,t),b},f.ei=function(){return mme(this)},f.fi=function(){return(O0(),Gt).S},f.gi=function(){return bn(this.fi())},f.hi=function(t){hie(this,t)},f.Ib=function(){return kf(this)},M(Vt,"BasicEObjectImpl",101);var kvt;E(118,101,{110:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1}),f.ii=function(t){var n;return n=bme(this),n[t]},f.ji=function(t,n){var i;i=bme(this),mr(i,t,n)},f.ki=function(t){var n;n=bme(this),mr(n,t,null)},f.qh=function(){return c(Wt(this,4),131)},f.rh=function(){throw V(new zn)},f.sh=function(){return(this.Db&4)!=0},f.wh=function(){throw V(new zn)},f.li=function(t){V4(this,2,t)},f.yh=function(t,n){this.Db=n<<16|this.Db&255,this.li(t)},f.Ah=function(){return hl(this)},f.Ch=function(){return this.Db>>16},f.Dh=function(){var t,n;return jT(),n=ube(sd((t=c(Wt(this,16),29),t||this.fi()))),n==null?Wae:new B_(this,n)},f.th=function(){return(this.Db&1)==0},f.Gh=function(){return c(Wt(this,128),2013)},f.Hh=function(){return c(Wt(this,16),29)},f.Lh=function(){return(this.Db&32)!=0},f.Mh=function(){return c(Wt(this,2),52)},f.Sh=function(){return(this.Db&64)!=0},f.Xh=function(){throw V(new zn)},f.Yh=function(){return c(Wt(this,64),291)},f._h=function(t){V4(this,16,t)},f.ai=function(t){V4(this,128,t)},f.bi=function(t){V4(this,64,t)},f.ei=function(){return il(this)},f.Db=0,M(Vt,"MinimalEObjectImpl",118),E(119,118,{110:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),f.li=function(t){this.Cb=t},f.Mh=function(){return this.Cb},M(Vt,"MinimalEObjectImpl/Container",119),E(2062,119,{110:1,344:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),f.Ih=function(t,n,i){return _2e(this,t,n,i)},f.Rh=function(t,n,i){return xve(this,t,n,i)},f.Th=function(t){return Obe(this,t)},f.$h=function(t,n){mwe(this,t,n)},f.fi=function(){return lc(),xvt},f.hi=function(t){owe(this,t)},f.lf=function(){return XYe(this)},f.fh=function(){return!this.o&&(this.o=new Nl((lc(),t1),Zg,this,0)),this.o},f.mf=function(t){return Se(this,t)},f.nf=function(t){return pa(this,t)},f.of=function(t,n){return ri(this,t,n)},M(Ob,"EMapPropertyHolderImpl",2062),E(566,119,{110:1,373:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},O2),f.Ih=function(t,n,i){switch(t){case 0:return this.a;case 1:return this.b}return dQ(this,t,n,i)},f.Th=function(t){switch(t){case 0:return this.a!=0;case 1:return this.b!=0}return Ane(this,t)},f.$h=function(t,n){switch(t){case 0:kH(this,de(be(n)));return;case 1:xH(this,de(be(n)));return}pie(this,t,n)},f.fi=function(){return lc(),mvt},f.hi=function(t){switch(t){case 0:kH(this,0);return;case 1:xH(this,0);return}hie(this,t)},f.Ib=function(){var t;return(this.Db&64)!=0?kf(this):(t=new Ba(kf(this)),t.a+=" (x: ",ux(t,this.a),t.a+=", y: ",ux(t,this.b),t.a+=")",t.a)},f.a=0,f.b=0,M(Ob,"ElkBendPointImpl",566),E(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}),f.Ih=function(t,n,i){return Rwe(this,t,n,i)},f.Ph=function(t,n,i){return rie(this,t,n,i)},f.Rh=function(t,n,i){return Fte(this,t,n,i)},f.Th=function(t){return Zme(this,t)},f.$h=function(t,n){K2e(this,t,n)},f.fi=function(){return lc(),vvt},f.hi=function(t){Dwe(this,t)},f.ih=function(){return this.k},f.jh=function(){return See(this)},f.Ib=function(){return gne(this)},f.k=null,M(Ob,"ElkGraphElementImpl",734),E(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}),f.Ih=function(t,n,i){return Xwe(this,t,n,i)},f.Th=function(t){return s2e(this,t)},f.$h=function(t,n){Y2e(this,t,n)},f.fi=function(){return lc(),yvt},f.hi=function(t){o2e(this,t)},f.kh=function(){return this.f},f.lh=function(){return this.g},f.mh=function(){return this.i},f.nh=function(){return this.j},f.oh=function(t,n){Pm(this,t,n)},f.ph=function(t,n){fa(this,t,n)},f.Ib=function(){return aie(this)},f.f=0,f.g=0,f.i=0,f.j=0,M(Ob,"ElkShapeImpl",735),E(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}),f.Ih=function(t,n,i){return T2e(this,t,n,i)},f.Ph=function(t,n,i){return G2e(this,t,n,i)},f.Rh=function(t,n,i){return U2e(this,t,n,i)},f.Th=function(t){return fwe(this,t)},f.$h=function(t,n){sye(this,t,n)},f.fi=function(){return lc(),wvt},f.hi=function(t){x2e(this,t)},f.gh=function(){return!this.d&&(this.d=new Ct($i,this,8,5)),this.d},f.hh=function(){return!this.e&&(this.e=new Ct($i,this,7,4)),this.e},M(Ob,"ElkConnectableShapeImpl",736),E(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},L8),f.xh=function(t){return F2e(this,t)},f.Ih=function(t,n,i){switch(t){case 3:return Y2(this);case 4:return!this.b&&(this.b=new Ct(xn,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Ct(xn,this,5,8)),this.c;case 6:return!this.a&&(this.a=new _e(Gi,this,6,6)),this.a;case 7:return Bt(),!this.b&&(this.b=new Ct(xn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Ct(xn,this,5,8)),this.c.i<=1));case 8:return Bt(),!!W7(this);case 9:return Bt(),!!lw(this);case 10:return Bt(),!this.b&&(this.b=new Ct(xn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Ct(xn,this,5,8)),this.c.i!=0)}return Rwe(this,t,n,i)},f.Ph=function(t,n,i){var r;switch(n){case 3:return this.Cb&&(i=(r=this.Db>>16,r>=0?F2e(this,i):this.Cb.Qh(this,-1-r,null,i))),k0e(this,c(t,19),i);case 4:return!this.b&&(this.b=new Ct(xn,this,4,7)),Vc(this.b,t,i);case 5:return!this.c&&(this.c=new Ct(xn,this,5,8)),Vc(this.c,t,i);case 6:return!this.a&&(this.a=new _e(Gi,this,6,6)),Vc(this.a,t,i)}return rie(this,t,n,i)},f.Rh=function(t,n,i){switch(n){case 3:return k0e(this,null,i);case 4:return!this.b&&(this.b=new Ct(xn,this,4,7)),_s(this.b,t,i);case 5:return!this.c&&(this.c=new Ct(xn,this,5,8)),_s(this.c,t,i);case 6:return!this.a&&(this.a=new _e(Gi,this,6,6)),_s(this.a,t,i)}return Fte(this,t,n,i)},f.Th=function(t){switch(t){case 3:return!!Y2(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 Ct(xn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Ct(xn,this,5,8)),this.c.i<=1));case 8:return W7(this);case 9:return lw(this);case 10:return!this.b&&(this.b=new Ct(xn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Ct(xn,this,5,8)),this.c.i!=0)}return Zme(this,t)},f.$h=function(t,n){switch(t){case 3:FQ(this,c(n,19));return;case 4:!this.b&&(this.b=new Ct(xn,this,4,7)),An(this.b),!this.b&&(this.b=new Ct(xn,this,4,7)),dr(this.b,c(n,18));return;case 5:!this.c&&(this.c=new Ct(xn,this,5,8)),An(this.c),!this.c&&(this.c=new Ct(xn,this,5,8)),dr(this.c,c(n,18));return;case 6:!this.a&&(this.a=new _e(Gi,this,6,6)),An(this.a),!this.a&&(this.a=new _e(Gi,this,6,6)),dr(this.a,c(n,18));return}K2e(this,t,n)},f.fi=function(){return lc(),H7e},f.hi=function(t){switch(t){case 3:FQ(this,null);return;case 4:!this.b&&(this.b=new Ct(xn,this,4,7)),An(this.b);return;case 5:!this.c&&(this.c=new Ct(xn,this,5,8)),An(this.c);return;case 6:!this.a&&(this.a=new _e(Gi,this,6,6)),An(this.a);return}Dwe(this,t)},f.Ib=function(){return rst(this)},M(Ob,"ElkEdgeImpl",273),E(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},o6),f.xh=function(t){return R2e(this,t)},f.Ih=function(t,n,i){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 Nr(Yu,this,5)),this.a;case 6:return LQe(this);case 7:return n?Pne(this):this.i;case 8:return n?Lne(this):this.f;case 9:return!this.g&&(this.g=new Ct(Gi,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Ct(Gi,this,10,9)),this.e;case 11:return this.d}return _2e(this,t,n,i)},f.Ph=function(t,n,i){var r,o,a;switch(n){case 6:return this.Cb&&(i=(o=this.Db>>16,o>=0?R2e(this,i):this.Cb.Qh(this,-1-o,null,i))),O0e(this,c(t,74),i);case 9:return!this.g&&(this.g=new Ct(Gi,this,9,10)),Vc(this.g,t,i);case 10:return!this.e&&(this.e=new Ct(Gi,this,10,9)),Vc(this.e,t,i)}return a=c(Dt((r=c(Wt(this,16),29),r||(lc(),OV)),n),69),a.uk().xk(this,il(this),n-bn((lc(),OV)),t,i)},f.Rh=function(t,n,i){switch(n){case 5:return!this.a&&(this.a=new Nr(Yu,this,5)),_s(this.a,t,i);case 6:return O0e(this,null,i);case 9:return!this.g&&(this.g=new Ct(Gi,this,9,10)),_s(this.g,t,i);case 10:return!this.e&&(this.e=new Ct(Gi,this,10,9)),_s(this.e,t,i)}return xve(this,t,n,i)},f.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!!LQe(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 Obe(this,t)},f.$h=function(t,n){switch(t){case 1:Ym(this,de(be(n)));return;case 2:Zm(this,de(be(n)));return;case 3:Wm(this,de(be(n)));return;case 4:Km(this,de(be(n)));return;case 5:!this.a&&(this.a=new Nr(Yu,this,5)),An(this.a),!this.a&&(this.a=new Nr(Yu,this,5)),dr(this.a,c(n,18));return;case 6:Znt(this,c(n,74));return;case 7:MH(this,c(n,83));return;case 8:CH(this,c(n,83));return;case 9:!this.g&&(this.g=new Ct(Gi,this,9,10)),An(this.g),!this.g&&(this.g=new Ct(Gi,this,9,10)),dr(this.g,c(n,18));return;case 10:!this.e&&(this.e=new Ct(Gi,this,10,9)),An(this.e),!this.e&&(this.e=new Ct(Gi,this,10,9)),dr(this.e,c(n,18));return;case 11:qme(this,qn(n));return}mwe(this,t,n)},f.fi=function(){return lc(),OV},f.hi=function(t){switch(t){case 1:Ym(this,0);return;case 2:Zm(this,0);return;case 3:Wm(this,0);return;case 4:Km(this,0);return;case 5:!this.a&&(this.a=new Nr(Yu,this,5)),An(this.a);return;case 6:Znt(this,null);return;case 7:MH(this,null);return;case 8:CH(this,null);return;case 9:!this.g&&(this.g=new Ct(Gi,this,9,10)),An(this.g);return;case 10:!this.e&&(this.e=new Ct(Gi,this,10,9)),An(this.e);return;case 11:qme(this,null);return}owe(this,t)},f.Ib=function(){return ant(this)},f.b=0,f.c=0,f.d=null,f.j=0,f.k=0,M(Ob,"ElkEdgeSectionImpl",446),E(162,119,{110:1,95:1,94:1,159:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1}),f.Ih=function(t,n,i){var r;return t==0?(!this.Ab&&(this.Ab=new _e(oi,this,0,3)),this.Ab):ba(this,t-bn(this.fi()),Dt((r=c(Wt(this,16),29),r||this.fi()),t),n,i)},f.Ph=function(t,n,i){var r,o;return n==0?(!this.Ab&&(this.Ab=new _e(oi,this,0,3)),Vc(this.Ab,t,i)):(o=c(Dt((r=c(Wt(this,16),29),r||this.fi()),n),69),o.uk().xk(this,il(this),n-bn(this.fi()),t,i))},f.Rh=function(t,n,i){var r,o;return n==0?(!this.Ab&&(this.Ab=new _e(oi,this,0,3)),_s(this.Ab,t,i)):(o=c(Dt((r=c(Wt(this,16),29),r||this.fi()),n),69),o.uk().yk(this,il(this),n-bn(this.fi()),t,i))},f.Th=function(t){var n;return t==0?!!this.Ab&&this.Ab.i!=0:ga(this,t-bn(this.fi()),Dt((n=c(Wt(this,16),29),n||this.fi()),t))},f.Wh=function(t){return Oxe(this,t)},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab),!this.Ab&&(this.Ab=new _e(oi,this,0,3)),dr(this.Ab,c(n,18));return}ka(this,t-bn(this.fi()),Dt((i=c(Wt(this,16),29),i||this.fi()),t),n)},f.ai=function(t){V4(this,128,t)},f.fi=function(){return At(),zvt},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab);return}xa(this,t-bn(this.fi()),Dt((n=c(Wt(this,16),29),n||this.fi()),t))},f.mi=function(){this.Bb|=1},f.ni=function(t){return iE(this,t)},f.Bb=0,M(Vt,"EModelElementImpl",162),E(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},Q5),f.oi=function(t,n){return _st(this,t,n)},f.pi=function(t){var n,i,r,o,a;if(this.a!=Bu(t)||(t.Bb&256)!=0)throw V(new qt(poe+t.zb+Sw));for(r=wo(t);pc(r.a).i!=0;){if(i=c(vL(r,0,(n=c(ce(pc(r.a),0),88),a=n.c,ae(a,89)?c(a,29):(At(),rf))),29),cw(i))return o=Bu(i).ti().pi(i),c(o,52)._h(t),o;r=wo(i)}return(t.D!=null?t.D:t.B)=="java.util.Map$Entry"?new dqe(t):new upe(t)},f.qi=function(t,n){return dw(this,t,n)},f.Ih=function(t,n,i){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),this.Ab;case 1:return this.a}return ba(this,t-bn((At(),pp)),Dt((r=c(Wt(this,16),29),r||pp),t),n,i)},f.Ph=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),Vc(this.Ab,t,i);case 1:return this.a&&(i=c(this.a,52).Qh(this,4,ch,i)),Awe(this,c(t,244),i)}return o=c(Dt((r=c(Wt(this,16),29),r||(At(),pp)),n),69),o.uk().xk(this,il(this),n-bn((At(),pp)),t,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),_s(this.Ab,t,i);case 1:return Awe(this,null,i)}return o=c(Dt((r=c(Wt(this,16),29),r||(At(),pp)),n),69),o.uk().yk(this,il(this),n-bn((At(),pp)),t,i)},f.Th=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return ga(this,t-bn((At(),pp)),Dt((n=c(Wt(this,16),29),n||pp),t))},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab),!this.Ab&&(this.Ab=new _e(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:$et(this,c(n,244));return}ka(this,t-bn((At(),pp)),Dt((i=c(Wt(this,16),29),i||pp),t),n)},f.fi=function(){return At(),pp},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab);return;case 1:$et(this,null);return}xa(this,t-bn((At(),pp)),Dt((n=c(Wt(this,16),29),n||pp),t))};var iM,J7e,Ovt;M(Vt,"EFactoryImpl",717),E(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},Dp),f.oi=function(t,n){switch(t.fk()){case 12:return c(n,149).Og();case 13:return To(n);default:throw V(new qt(Tj+t.ve()+Sw))}},f.pi=function(t){var n,i,r,o,a,d,b,v;switch(t.G==-1&&(t.G=(n=Bu(t),n?Rg(n.si(),t):-1)),t.G){case 4:return a=new pN,a;case 6:return d=new fT,d;case 7:return b=new g1e,b;case 8:return r=new L8,r;case 9:return i=new O2,i;case 10:return o=new o6,o;case 11:return v=new bN,v;default:throw V(new qt(poe+t.zb+Sw))}},f.qi=function(t,n){switch(t.fk()){case 13:case 12:return null;default:throw V(new qt(Tj+t.ve()+Sw))}},M(Ob,"ElkGraphFactoryImpl",1029),E(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}),f.Dh=function(){var t,n;return n=(t=c(Wt(this,16),29),ube(sd(t||this.fi()))),n==null?(jT(),jT(),Wae):new _ze(this,n)},f.Ih=function(t,n,i){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),this.Ab;case 1:return this.ve()}return ba(this,t-bn(this.fi()),Dt((r=c(Wt(this,16),29),r||this.fi()),t),n,i)},f.Th=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return ga(this,t-bn(this.fi()),Dt((n=c(Wt(this,16),29),n||this.fi()),t))},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab),!this.Ab&&(this.Ab=new _e(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:this.ri(qn(n));return}ka(this,t-bn(this.fi()),Dt((i=c(Wt(this,16),29),i||this.fi()),t),n)},f.fi=function(){return At(),Fvt},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab);return;case 1:this.ri(null);return}xa(this,t-bn(this.fi()),Dt((n=c(Wt(this,16),29),n||this.fi()),t))},f.ve=function(){return this.zb},f.ri=function(t){Jc(this,t)},f.Ib=function(){return A7(this)},f.zb=null,M(Vt,"ENamedElementImpl",444),E(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},hQe),f.xh=function(t){return GZe(this,t)},f.Ih=function(t,n,i){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new _e(oi,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 V2(this,lh,this)),this.rb;case 6:return!this.vb&&(this.vb=new O4(ch,this,6,7)),this.vb;case 7:return n?this.Db>>16==7?c(this.Cb,244):null:HQe(this)}return ba(this,t-bn((At(),i0)),Dt((r=c(Wt(this,16),29),r||i0),t),n,i)},f.Ph=function(t,n,i){var r,o,a;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),Vc(this.Ab,t,i);case 4:return this.sb&&(i=c(this.sb,52).Qh(this,1,nM,i)),Lwe(this,c(t,472),i);case 5:return!this.rb&&(this.rb=new V2(this,lh,this)),Vc(this.rb,t,i);case 6:return!this.vb&&(this.vb=new O4(ch,this,6,7)),Vc(this.vb,t,i);case 7:return this.Cb&&(i=(o=this.Db>>16,o>=0?GZe(this,i):this.Cb.Qh(this,-1-o,null,i))),Qu(this,t,7,i)}return a=c(Dt((r=c(Wt(this,16),29),r||(At(),i0)),n),69),a.uk().xk(this,il(this),n-bn((At(),i0)),t,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),_s(this.Ab,t,i);case 4:return Lwe(this,null,i);case 5:return!this.rb&&(this.rb=new V2(this,lh,this)),_s(this.rb,t,i);case 6:return!this.vb&&(this.vb=new O4(ch,this,6,7)),_s(this.vb,t,i);case 7:return Qu(this,null,7,i)}return o=c(Dt((r=c(Wt(this,16),29),r||(At(),i0)),n),69),o.uk().yk(this,il(this),n-bn((At(),i0)),t,i)},f.Th=function(t){var n;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!!HQe(this)}return ga(this,t-bn((At(),i0)),Dt((n=c(Wt(this,16),29),n||i0),t))},f.Wh=function(t){var n;return n=eXt(this,t),n||Oxe(this,t)},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab),!this.Ab&&(this.Ab=new _e(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Jc(this,qn(n));return;case 2:LH(this,qn(n));return;case 3:DH(this,qn(n));return;case 4:uie(this,c(n,472));return;case 5:!this.rb&&(this.rb=new V2(this,lh,this)),An(this.rb),!this.rb&&(this.rb=new V2(this,lh,this)),dr(this.rb,c(n,18));return;case 6:!this.vb&&(this.vb=new O4(ch,this,6,7)),An(this.vb),!this.vb&&(this.vb=new O4(ch,this,6,7)),dr(this.vb,c(n,18));return}ka(this,t-bn((At(),i0)),Dt((i=c(Wt(this,16),29),i||i0),t),n)},f.bi=function(t){var n,i;if(t&&this.rb)for(i=new on(this.rb);i.e!=i.i.gc();)n=un(i),ae(n,361)&&(c(n,361).w=null);V4(this,64,t)},f.fi=function(){return At(),i0},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab);return;case 1:Jc(this,null);return;case 2:LH(this,null);return;case 3:DH(this,null);return;case 4:uie(this,null);return;case 5:!this.rb&&(this.rb=new V2(this,lh,this)),An(this.rb);return;case 6:!this.vb&&(this.vb=new O4(ch,this,6,7)),An(this.vb);return}xa(this,t-bn((At(),i0)),Dt((n=c(Wt(this,16),29),n||i0),t))},f.mi=function(){Vne(this)},f.si=function(){return!this.rb&&(this.rb=new V2(this,lh,this)),this.rb},f.ti=function(){return this.sb},f.ui=function(){return this.ub},f.vi=function(){return this.xb},f.wi=function(){return this.yb},f.xi=function(t){this.ub=t},f.Ib=function(){var t;return(this.Db&64)!=0?A7(this):(t=new Ba(A7(this)),t.a+=" (nsURI: ",Zs(t,this.yb),t.a+=", nsPrefix: ",Zs(t,this.xb),t.a+=")",t.a)},f.xb=null,f.yb=null,M(Vt,"EPackageImpl",187),E(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},wnt),f.q=!1,f.r=!1;var Svt=!1;M(Ob,"ElkGraphPackageImpl",563),E(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},pN),f.xh=function(t){return $2e(this,t)},f.Ih=function(t,n,i){switch(t){case 7:return gbe(this);case 8:return this.a}return Xwe(this,t,n,i)},f.Ph=function(t,n,i){var r;switch(n){case 7:return this.Cb&&(i=(r=this.Db>>16,r>=0?$2e(this,i):this.Cb.Qh(this,-1-r,null,i))),Ope(this,c(t,176),i)}return rie(this,t,n,i)},f.Rh=function(t,n,i){return n==7?Ope(this,null,i):Fte(this,t,n,i)},f.Th=function(t){switch(t){case 7:return!!gbe(this);case 8:return!St("",this.a)}return s2e(this,t)},f.$h=function(t,n){switch(t){case 7:xye(this,c(n,176));return;case 8:Bme(this,qn(n));return}Y2e(this,t,n)},f.fi=function(){return lc(),Q7e},f.hi=function(t){switch(t){case 7:xye(this,null);return;case 8:Bme(this,"");return}o2e(this,t)},f.Ib=function(){return rtt(this)},f.a="",M(Ob,"ElkLabelImpl",363),E(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},fT),f.xh=function(t){return q2e(this,t)},f.Ih=function(t,n,i){switch(t){case 9:return!this.c&&(this.c=new _e(fu,this,9,9)),this.c;case 10:return!this.a&&(this.a=new _e(_n,this,10,11)),this.a;case 11:return Wi(this);case 12:return!this.b&&(this.b=new _e($i,this,12,3)),this.b;case 13:return Bt(),!this.a&&(this.a=new _e(_n,this,10,11)),this.a.i>0}return T2e(this,t,n,i)},f.Ph=function(t,n,i){var r;switch(n){case 9:return!this.c&&(this.c=new _e(fu,this,9,9)),Vc(this.c,t,i);case 10:return!this.a&&(this.a=new _e(_n,this,10,11)),Vc(this.a,t,i);case 11:return this.Cb&&(i=(r=this.Db>>16,r>=0?q2e(this,i):this.Cb.Qh(this,-1-r,null,i))),L0e(this,c(t,19),i);case 12:return!this.b&&(this.b=new _e($i,this,12,3)),Vc(this.b,t,i)}return G2e(this,t,n,i)},f.Rh=function(t,n,i){switch(n){case 9:return!this.c&&(this.c=new _e(fu,this,9,9)),_s(this.c,t,i);case 10:return!this.a&&(this.a=new _e(_n,this,10,11)),_s(this.a,t,i);case 11:return L0e(this,null,i);case 12:return!this.b&&(this.b=new _e($i,this,12,3)),_s(this.b,t,i)}return U2e(this,t,n,i)},f.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!!Wi(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new _e(_n,this,10,11)),this.a.i>0}return fwe(this,t)},f.$h=function(t,n){switch(t){case 9:!this.c&&(this.c=new _e(fu,this,9,9)),An(this.c),!this.c&&(this.c=new _e(fu,this,9,9)),dr(this.c,c(n,18));return;case 10:!this.a&&(this.a=new _e(_n,this,10,11)),An(this.a),!this.a&&(this.a=new _e(_n,this,10,11)),dr(this.a,c(n,18));return;case 11:qQ(this,c(n,19));return;case 12:!this.b&&(this.b=new _e($i,this,12,3)),An(this.b),!this.b&&(this.b=new _e($i,this,12,3)),dr(this.b,c(n,18));return}sye(this,t,n)},f.fi=function(){return lc(),G7e},f.hi=function(t){switch(t){case 9:!this.c&&(this.c=new _e(fu,this,9,9)),An(this.c);return;case 10:!this.a&&(this.a=new _e(_n,this,10,11)),An(this.a);return;case 11:qQ(this,null);return;case 12:!this.b&&(this.b=new _e($i,this,12,3)),An(this.b);return}x2e(this,t)},f.Ib=function(){return Rye(this)},M(Ob,"ElkNodeImpl",209),E(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},g1e),f.xh=function(t){return B2e(this,t)},f.Ih=function(t,n,i){return t==9?bh(this):T2e(this,t,n,i)},f.Ph=function(t,n,i){var r;switch(n){case 9:return this.Cb&&(i=(r=this.Db>>16,r>=0?B2e(this,i):this.Cb.Qh(this,-1-r,null,i))),S0e(this,c(t,19),i)}return G2e(this,t,n,i)},f.Rh=function(t,n,i){return n==9?S0e(this,null,i):U2e(this,t,n,i)},f.Th=function(t){return t==9?!!bh(this):fwe(this,t)},f.$h=function(t,n){switch(t){case 9:bye(this,c(n,19));return}sye(this,t,n)},f.fi=function(){return lc(),U7e},f.hi=function(t){switch(t){case 9:bye(this,null);return}x2e(this,t)},f.Ib=function(){return Yit(this)},M(Ob,"ElkPortImpl",196);var jvt=Zi(Ds,"BasicEMap/Entry");E(1103,119,{110:1,45:1,95:1,94:1,138:1,57:1,115:1,52:1,101:1,118:1,119:1},bN),f.Fb=function(t){return this===t},f.jd=function(){return this.b},f.Hb=function(){return Rm(this)},f.Ai=function(t){Pme(this,c(t,149))},f.Ih=function(t,n,i){switch(t){case 0:return this.b;case 1:return this.c}return dQ(this,t,n,i)},f.Th=function(t){switch(t){case 0:return!!this.b;case 1:return this.c!=null}return Ane(this,t)},f.$h=function(t,n){switch(t){case 0:Pme(this,c(n,149));return;case 1:Ime(this,n);return}pie(this,t,n)},f.fi=function(){return lc(),t1},f.hi=function(t){switch(t){case 0:Pme(this,null);return;case 1:Ime(this,null);return}hie(this,t)},f.yi=function(){var t;return this.a==-1&&(t=this.b,this.a=t?zi(t):0),this.a},f.kd=function(){return this.c},f.zi=function(t){this.a=t},f.ld=function(t){var n;return n=this.c,Ime(this,t),n},f.Ib=function(){var t;return(this.Db&64)!=0?kf(this):(t=new g0,Zn(Zn(Zn(t,this.b?this.b.Og():ml),Vre),GT(this.c)),t.a)},f.a=-1,f.c=null;var Zg=M(Ob,"ElkPropertyToValueMapEntryImpl",1103);E(989,1,{},gB),M(ds,"JsonAdapter",989),E(218,63,B1,Jh),M(ds,"JsonImportException",218),E(859,1,{},dnt),M(ds,"JsonImporter",859),E(893,1,{},D$e),f.Bi=function(t){tet(this.a,this.b,c(t,142))},M(ds,"JsonImporter/lambda$0$Type",893),E(894,1,{},L$e),f.Bi=function(t){Qtt(this.a,this.b,c(t,142))},M(ds,"JsonImporter/lambda$1$Type",894),E(902,1,{},iLe),f.Bi=function(t){qHe(this.a,c(t,150))},M(ds,"JsonImporter/lambda$10$Type",902),E(904,1,{},P$e),f.Bi=function(t){Att(this.a,this.b,c(t,142))},M(ds,"JsonImporter/lambda$11$Type",904),E(905,1,{},I$e),f.Bi=function(t){Ntt(this.a,this.b,c(t,142))},M(ds,"JsonImporter/lambda$12$Type",905),E(911,1,{},YHe),f.Bi=function(t){ett(this.a,this.b,this.c,this.d,c(t,142))},M(ds,"JsonImporter/lambda$13$Type",911),E(910,1,{},ZHe),f.Bi=function(t){yrt(this.a,this.b,this.c,this.d,c(t,150))},M(ds,"JsonImporter/lambda$14$Type",910),E(906,1,{},R$e),f.Bi=function(t){aFe(this.a,this.b,qn(t))},M(ds,"JsonImporter/lambda$15$Type",906),E(907,1,{},$$e),f.Bi=function(t){fFe(this.a,this.b,qn(t))},M(ds,"JsonImporter/lambda$16$Type",907),E(908,1,{},H$e),f.Bi=function(t){IZe(this.b,this.a,c(t,142))},M(ds,"JsonImporter/lambda$17$Type",908),E(909,1,{},Q$e),f.Bi=function(t){RZe(this.b,this.a,c(t,142))},M(ds,"JsonImporter/lambda$18$Type",909),E(914,1,{},rLe),f.Bi=function(t){Qet(this.a,c(t,150))},M(ds,"JsonImporter/lambda$19$Type",914),E(895,1,{},sLe),f.Bi=function(t){VZe(this.a,c(t,142))},M(ds,"JsonImporter/lambda$2$Type",895),E(912,1,{},oLe),f.Bi=function(t){Ym(this.a,de(be(t)))},M(ds,"JsonImporter/lambda$20$Type",912),E(913,1,{},cLe),f.Bi=function(t){Zm(this.a,de(be(t)))},M(ds,"JsonImporter/lambda$21$Type",913),E(917,1,{},lLe),f.Bi=function(t){Het(this.a,c(t,150))},M(ds,"JsonImporter/lambda$22$Type",917),E(915,1,{},uLe),f.Bi=function(t){Wm(this.a,de(be(t)))},M(ds,"JsonImporter/lambda$23$Type",915),E(916,1,{},aLe),f.Bi=function(t){Km(this.a,de(be(t)))},M(ds,"JsonImporter/lambda$24$Type",916),E(919,1,{},fLe),f.Bi=function(t){det(this.a,c(t,142))},M(ds,"JsonImporter/lambda$25$Type",919),E(918,1,{},hLe),f.Bi=function(t){HHe(this.a,c(t,150))},M(ds,"JsonImporter/lambda$26$Type",918),E(920,1,ln,G$e),f.Ad=function(t){QPt(this.b,this.a,qn(t))},M(ds,"JsonImporter/lambda$27$Type",920),E(921,1,ln,U$e),f.Ad=function(t){GPt(this.b,this.a,qn(t))},M(ds,"JsonImporter/lambda$28$Type",921),E(922,1,{},B$e),f.Bi=function(t){Tnt(this.a,this.b,c(t,142))},M(ds,"JsonImporter/lambda$29$Type",922),E(898,1,{},dLe),f.Bi=function(t){rYe(this.a,c(t,150))},M(ds,"JsonImporter/lambda$3$Type",898),E(923,1,{},z$e),f.Bi=function(t){Xnt(this.a,this.b,c(t,142))},M(ds,"JsonImporter/lambda$30$Type",923),E(924,1,{},gLe),f.Bi=function(t){EVe(this.a,be(t))},M(ds,"JsonImporter/lambda$31$Type",924),E(925,1,{},pLe),f.Bi=function(t){CVe(this.a,be(t))},M(ds,"JsonImporter/lambda$32$Type",925),E(926,1,{},bLe),f.Bi=function(t){MVe(this.a,be(t))},M(ds,"JsonImporter/lambda$33$Type",926),E(927,1,{},mLe),f.Bi=function(t){AVe(this.a,be(t))},M(ds,"JsonImporter/lambda$34$Type",927),E(928,1,{},wLe),f.Bi=function(t){JQt(this.a,c(t,57))},M(ds,"JsonImporter/lambda$35$Type",928),E(929,1,{},vLe),f.Bi=function(t){VQt(this.a,c(t,57))},M(ds,"JsonImporter/lambda$36$Type",929),E(933,1,{},KHe),M(ds,"JsonImporter/lambda$37$Type",933),E(930,1,ln,IFe),f.Ad=function(t){kRt(this.a,this.c,this.b,c(t,373))},M(ds,"JsonImporter/lambda$38$Type",930),E(931,1,ln,F$e),f.Ad=function(t){F8t(this.a,this.b,c(t,171))},M(ds,"JsonImporter/lambda$39$Type",931),E(896,1,{},yLe),f.Bi=function(t){Ym(this.a,de(be(t)))},M(ds,"JsonImporter/lambda$4$Type",896),E(932,1,ln,q$e),f.Ad=function(t){q8t(this.a,this.b,c(t,171))},M(ds,"JsonImporter/lambda$40$Type",932),E(934,1,ln,RFe),f.Ad=function(t){ORt(this.a,this.b,this.c,c(t,8))},M(ds,"JsonImporter/lambda$41$Type",934),E(897,1,{},xLe),f.Bi=function(t){Zm(this.a,de(be(t)))},M(ds,"JsonImporter/lambda$5$Type",897),E(901,1,{},kLe),f.Bi=function(t){sYe(this.a,c(t,150))},M(ds,"JsonImporter/lambda$6$Type",901),E(899,1,{},OLe),f.Bi=function(t){Wm(this.a,de(be(t)))},M(ds,"JsonImporter/lambda$7$Type",899),E(900,1,{},SLe),f.Bi=function(t){Km(this.a,de(be(t)))},M(ds,"JsonImporter/lambda$8$Type",900),E(903,1,{},jLe),f.Bi=function(t){get(this.a,c(t,142))},M(ds,"JsonImporter/lambda$9$Type",903),E(953,1,ln,TLe),f.Ad=function(t){N4(this.a,new W2(qn(t)))},M(ds,"JsonMetaDataConverter/lambda$0$Type",953),E(954,1,ln,ELe),f.Ad=function(t){qAt(this.a,c(t,235))},M(ds,"JsonMetaDataConverter/lambda$1$Type",954),E(955,1,ln,CLe),f.Ad=function(t){F_t(this.a,c(t,144))},M(ds,"JsonMetaDataConverter/lambda$2$Type",955),E(956,1,ln,MLe),f.Ad=function(t){HAt(this.a,c(t,161))},M(ds,"JsonMetaDataConverter/lambda$3$Type",956),E(235,23,{3:1,34:1,23:1,235:1},b4);var SV,jV,Hae,hI,TV,dI,Qae,Gae,gI=vn(PL,"GraphFeature",235,Tn,OIt,TMt),Tvt;E(11,1,{34:1,149:1},bi,Qi,vt,Ur),f.Dd=function(t){return HTt(this,c(t,149))},f.Fb=function(t){return kQe(this,t)},f.Rg=function(){return Ve(this)},f.Og=function(){return this.b},f.Hb=function(){return _g(this.b)},f.Ib=function(){return this.b},M(PL,"Property",11),E(664,1,Yn,sY),f.Le=function(t,n){return PBt(this,c(t,105),c(n,105))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(PL,"PropertyHolderComparator",664),E(705,1,ns,Zde),f.Nb=function(t){ps(this,t)},f.Pb=function(){return XPt(this)},f.Qb=function(){xIe()},f.Ob=function(){return!!this.a},M(KG,"ElkGraphUtil/AncestorIterator",705);var V7e=Zi(Ds,"EList");E(71,56,{22:1,32:1,56:1,18:1,16:1,71:1,61:1}),f._c=function(t,n){D7(this,t,n)},f.Ec=function(t){return Ln(this,t)},f.ad=function(t,n){return lwe(this,t,n)},f.Fc=function(t){return dr(this,t)},f.Gi=function(){return new x4(this)},f.Hi=function(){return new $_(this)},f.Ii=function(t){return CD(this,t)},f.Ji=function(){return!0},f.Ki=function(t,n){},f.Li=function(){},f.Mi=function(t,n){ute(this,t,n)},f.Ni=function(t,n,i){},f.Oi=function(t,n){},f.Pi=function(t,n,i){},f.Fb=function(t){return Pit(this,t)},f.Hb=function(){return iwe(this)},f.Qi=function(){return!1},f.Jc=function(){return new on(this)},f.cd=function(){return new k4(this)},f.dd=function(t){var n;if(n=this.gc(),t<0||t>n)throw V(new Q2(t,n));return new pee(this,t)},f.Si=function(t,n){this.Ri(t,this.bd(n))},f.Kc=function(t){return pH(this,t)},f.Ui=function(t,n){return n},f.fd=function(t,n){return $x(this,t,n)},f.Ib=function(){return e2e(this)},f.Wi=function(){return!0},f.Xi=function(t,n){return kS(this,n)},M(Ds,"AbstractEList",71),E(67,71,dd,P5,Xm,Wme),f.Ci=function(t,n){return sie(this,t,n)},f.Di=function(t){return mZe(this,t)},f.Ei=function(t,n){FD(this,t,n)},f.Fi=function(t){fD(this,t)},f.Yi=function(t){return hme(this,t)},f.$b=function(){p7(this)},f.Gc=function(t){return $S(this,t)},f.Xb=function(t){return ce(this,t)},f.Zi=function(t){var n,i,r;++this.j,i=this.g==null?0:this.g.length,t>i&&(r=this.g,n=i+(i/2|0)+4,n<t&&(n=t),this.g=this.$i(n),r!=null&&wc(r,0,this.g,0,this.i))},f.bd=function(t){return zZe(this,t)},f.dc=function(){return this.i==0},f.Ri=function(t,n){return wie(this,t,n)},f.$i=function(t){return ke(Br,Pt,1,t,5,1)},f.Ti=function(t){return this.g[t]},f.ed=function(t){return Y4(this,t)},f.Vi=function(t,n){return vte(this,t,n)},f.gc=function(){return this.i},f.Nc=function(){return _be(this)},f.Oc=function(t){return l2e(this,t)},f.i=0;var X7e=M(Ds,"BasicEList",67),W7e=Zi(Ds,"TreeIterator");E(704,67,Toe),f.Nb=function(t){ps(this,t)},f.Ob=function(){return this.g==null&&!this.c?dbe(this):this.g==null||this.i!=0&&c(this.g[this.i-1],51).Ob()},f.Pb=function(){return RQ(this)},f.Qb=function(){if(!this.e)throw V(new co("There is no valid object to remove."));this.e.Qb()},f.c=!1,M(Ds,"AbstractTreeIterator",704),E(611,704,Toe,vZ),f._i=function(t){var n;return n=c(t,57).Dh().Jc(),ae(n,289)&&c(n,289).ul(new mN),n},M(KG,"ElkGraphUtil/PropertiesSkippingTreeIterator",611),E(957,1,{},mN),M(KG,"ElkGraphUtil/PropertiesSkippingTreeIterator/1",957);var pI,Uae,bI=M(KG,"ElkReflect",null);E(891,1,Dv,P8),f.Qg=function(t){return Hq(),MDt(c(t,185))},M(KG,"ElkReflect/lambda$0$Type",891);var hp;Zi(Ds,"ResourceLocator"),E(1056,1,{}),M(Ds,"DelegatingResourceLocator",1056),E(1057,1056,{}),M("org.eclipse.emf.common","EMFPlugin",1057);var Jae=Zi(gat,"Adapter"),min=Zi(gat,"Notification");E(1155,1,nke),f.aj=function(){return this.d},f.bj=function(t){},f.cj=function(t){this.d=t},f.dj=function(t){this.d==t&&(this.d=null)},f.d=null,M(yk,"AdapterImpl",1155),E(2072,71,pat),f.Ci=function(t,n){return i2e(this,t,n)},f.Di=function(t){var n,i,r;if(++this.j,t.dc())return!1;for(n=this.Cj(),r=t.Jc();r.Ob();)i=r.Pb(),this.pj(this.Xi(n,i)),++n;return!0},f.Ei=function(t,n){Uze(this,t,n)},f.Fi=function(t){OHe(this,t)},f.nj=function(){return this.qj()},f.$b=function(){q_(this,this.Cj(),this.Dj())},f.Gc=function(t){return this.sj(t)},f.Hc=function(t){return this.tj(t)},f.oj=function(t,n){this.zj().Sm()},f.pj=function(t){this.zj().Sm()},f.qj=function(){return this.zj()},f.rj=function(){this.zj().Sm()},f.sj=function(t){return this.zj().Sm()},f.tj=function(t){return this.zj().Sm()},f.uj=function(t){return this.zj().Sm()},f.vj=function(t){return this.zj().Sm()},f.wj=function(){return this.zj().Sm()},f.xj=function(t){return this.zj().Sm()},f.yj=function(){return this.zj().Sm()},f.Aj=function(t){return this.zj().Sm()},f.Bj=function(t,n){return this.zj().Sm()},f.Cj=function(){return this.zj().Sm()},f.Dj=function(){return this.zj().Sm()},f.Ej=function(t){return this.zj().Sm()},f.Fj=function(){return this.zj().Sm()},f.Fb=function(t){return this.uj(t)},f.Xb=function(t){return this.Ui(t,this.vj(t))},f.Hb=function(){return this.wj()},f.bd=function(t){return this.xj(t)},f.dc=function(){return this.yj()},f.Ri=function(t,n){return wve(this,t,n)},f.Ti=function(t){return this.vj(t)},f.ed=function(t){return aq(this,t)},f.Kc=function(t){var n;return n=this.bd(t),n>=0?(this.ed(n),!0):!1},f.Vi=function(t,n){return this.Bj(t,this.Xi(t,n))},f.gc=function(){return this.Cj()},f.Nc=function(){return this.Dj()},f.Oc=function(t){return this.Ej(t)},f.Ib=function(){return this.Fj()},M(Ds,"DelegatingEList",2072),E(2073,2072,pat),f.Ci=function(t,n){return Kye(this,t,n)},f.Di=function(t){return this.Ci(this.Cj(),t)},f.Ei=function(t,n){vnt(this,t,n)},f.Fi=function(t){lnt(this,t)},f.Ji=function(){return!this.Kj()},f.$b=function(){uE(this)},f.Gj=function(t,n,i,r,o){return new yQe(this,t,n,i,r,o)},f.Hj=function(t){yi(this.hj(),t)},f.Ij=function(){return null},f.Jj=function(){return-1},f.hj=function(){return null},f.Kj=function(){return!1},f.Lj=function(t,n){return n},f.Mj=function(t,n){return n},f.Nj=function(){return!1},f.Oj=function(){return!this.yj()},f.Ri=function(t,n){var i,r;return this.Nj()?(r=this.Oj(),i=wve(this,t,n),this.Hj(this.Gj(7,$e(n),i,t,r)),i):wve(this,t,n)},f.ed=function(t){var n,i,r,o;return this.Nj()?(i=null,r=this.Oj(),n=this.Gj(4,o=aq(this,t),null,t,r),this.Kj()&&o?(i=this.Mj(o,i),i?(i.lj(n),i.mj()):this.Hj(n)):i?(i.lj(n),i.mj()):this.Hj(n),o):(o=aq(this,t),this.Kj()&&o&&(i=this.Mj(o,null),i&&i.mj()),o)},f.Vi=function(t,n){return _rt(this,t,n)},M(yk,"DelegatingNotifyingListImpl",2073),E(152,1,ZL),f.lj=function(t){return ive(this,t)},f.mj=function(){gte(this)},f.ej=function(){return this.d},f.Ij=function(){return null},f.Pj=function(){return null},f.fj=function(t){return-1},f.gj=function(){return bit(this)},f.hj=function(){return null},f.ij=function(){return Tye(this)},f.jj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},f.Qj=function(){return!1},f.kj=function(t){var n,i,r,o,a,d,b,v,x,T,A;switch(this.d){case 1:case 2:switch(o=t.ej(),o){case 1:case 2:if(a=t.hj(),xe(a)===xe(this.hj())&&this.fj(null)==t.fj(null))return this.g=t.gj(),t.ej()==1&&(this.d=1),!0}case 4:{switch(o=t.ej(),o){case 4:{if(a=t.hj(),xe(a)===xe(this.hj())&&this.fj(null)==t.fj(null))return x=pxe(this),v=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,d=t.jj(),this.d=6,A=new Xm(2),v<=d?(Ln(A,this.n),Ln(A,t.ij()),this.g=Y(K(Hn,1),li,30,15,[this.o=v,d+1])):(Ln(A,t.ij()),Ln(A,this.n),this.g=Y(K(Hn,1),li,30,15,[this.o=d,v])),this.n=A,x||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(o=t.ej(),o){case 4:{if(a=t.hj(),xe(a)===xe(this.hj())&&this.fj(null)==t.fj(null)){for(x=pxe(this),d=t.jj(),T=c(this.g,54),r=ke(Hn,li,30,T.length+1,15,1),n=0;n<T.length&&(b=T[n],b<=d);)r[n++]=b,++d;for(i=c(this.n,16),i._c(n,t.ij()),r[n]=d;++n<r.length;)r[n]=T[n-1];return this.g=r,x||(this.o=-2-r[0]),!0}break}}break}}return!1},f.Ib=function(){var t,n,i,r;switch(r=new Ba(zp(this.Pm)+"@"+(n=zi(this)>>>0,n.toString(16))),r.a+=" (eventType: ",this.d){case 1:{r.a+="SET";break}case 2:{r.a+="UNSET";break}case 3:{r.a+="ADD";break}case 5:{r.a+="ADD_MANY";break}case 4:{r.a+="REMOVE";break}case 6:{r.a+="REMOVE_MANY";break}case 7:{r.a+="MOVE";break}case 8:{r.a+="REMOVING_ADAPTER";break}case 9:{r.a+="RESOLVE";break}default:{MY(r,this.d);break}}if(srt(this)&&(r.a+=", touch: true"),r.a+=", position: ",MY(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=", notifier: ",BT(r,this.hj()),r.a+=", feature: ",BT(r,this.Ij()),r.a+=", oldValue: ",BT(r,Tye(this)),r.a+=", newValue: ",this.d==6&&ae(this.g,54)){for(i=c(this.g,54),r.a+="[",t=0;t<i.length;)r.a+=i[t],++t<i.length&&(r.a+=Xc);r.a+="]"}else BT(r,bit(this));return r.a+=", isTouch: ",yg(r,srt(this)),r.a+=", wasSet: ",yg(r,pxe(this)),r.a+=")",r.a},f.d=0,f.e=0,f.f=0,f.j=0,f.k=0,f.o=0,f.p=0,M(yk,"NotificationImpl",152),E(1169,152,ZL,yQe),f.Ij=function(){return this.a.Ij()},f.fj=function(t){return this.a.Jj()},f.hj=function(){return this.a.hj()},M(yk,"DelegatingNotifyingListImpl/1",1169),E(255,67,dd,pB,p0),f.Ec=function(t){return aYe(this,c(t,374))},f.lj=function(t){return aYe(this,t)},f.mj=function(){var t,n,i;for(t=0;t<this.i;++t)n=c(this.g[t],374),i=n.hj(),i!=null&&n.ej()!=-1&&c(i,95).uh(n)},f.$i=function(t){return ke(min,Pt,374,t,0,1)},M(yk,"NotificationChainImpl",255),E(1502,94,Tut),f.rh=function(){return this.e},f.th=function(){return(this.f&1)!=0},f.f=1,M(yk,"NotifierImpl",1502),E(2070,67,dd),f.Ci=function(t,n){return Rie(this,t,n)},f.Di=function(t){return this.Ci(this.i,t)},f.Ei=function(t,n){Wve(this,t,n)},f.Fi=function(t){vie(this,t)},f.Ji=function(){return!this.Kj()},f.$b=function(){An(this)},f.Gj=function(t,n,i,r,o){return new xQe(this,t,n,i,r,o)},f.Hj=function(t){yi(this.hj(),t)},f.Ij=function(){return null},f.Jj=function(){return-1},f.hj=function(){return null},f.Kj=function(){return!1},f.Rj=function(){return!1},f.Lj=function(t,n){return n},f.Mj=function(t,n){return n},f.Nj=function(){return!1},f.Oj=function(){return this.i!=0},f.Ri=function(t,n){return L7(this,t,n)},f.ed=function(t){return kv(this,t)},f.Vi=function(t,n){return Wrt(this,t,n)},f.Sj=function(t,n){return n},f.Tj=function(t,n){return n},f.Uj=function(t,n,i){return i},M(yk,"NotifyingListImpl",2070),E(1168,152,ZL,xQe),f.Ij=function(){return this.a.Ij()},f.fj=function(t){return this.a.Jj()},f.hj=function(){return this.a.hj()},M(yk,"NotifyingListImpl/1",1168),E(958,67,dd,Vze),f.Gc=function(t){return this.i>10?((!this.b||this.c.j!=this.a)&&(this.b=new G2(this),this.a=this.j),$a(this.b,t)):$S(this,t)},f.Wi=function(){return!0},f.a=0,M(Ds,"AbstractEList/1",958),E(306,99,fG,Q2),M(Ds,"AbstractEList/BasicIndexOutOfBoundsException",306),E(39,1,ns,on),f.Nb=function(t){ps(this,t)},f.Vj=function(){if(this.i.j!=this.f)throw V(new aa)},f.Wj=function(){return un(this)},f.Ob=function(){return this.e!=this.i.gc()},f.Pb=function(){return this.Wj()},f.Qb=function(){Q7(this)},f.e=0,f.f=0,f.g=-1,M(Ds,"AbstractEList/EIterator",39),E(288,39,qd,k4,pee),f.Qb=function(){Q7(this)},f.Rb=function(t){yYe(this,t)},f.Xj=function(){var t;try{return t=this.d.Xb(--this.e),this.Vj(),this.g=this.e,t}catch(n){throw n=kr(n),ae(n,99)?(this.Vj(),V(new Mo)):V(n)}},f.Yj=function(t){wZe(this,t)},f.Sb=function(){return this.e!=0},f.Tb=function(){return this.e},f.Ub=function(){return this.Xj()},f.Vb=function(){return this.e-1},f.Wb=function(t){this.Yj(t)},M(Ds,"AbstractEList/EListIterator",288),E(356,39,ns,x4),f.Wj=function(){return Nne(this)},f.Qb=function(){throw V(new zn)},M(Ds,"AbstractEList/NonResolvingEIterator",356),E(393,288,qd,$_,F0e),f.Rb=function(t){throw V(new zn)},f.Wj=function(){var t;try{return t=this.c.Ti(this.e),this.Vj(),this.g=this.e++,t}catch(n){throw n=kr(n),ae(n,99)?(this.Vj(),V(new Mo)):V(n)}},f.Xj=function(){var t;try{return t=this.c.Ti(--this.e),this.Vj(),this.g=this.e,t}catch(n){throw n=kr(n),ae(n,99)?(this.Vj(),V(new Mo)):V(n)}},f.Qb=function(){throw V(new zn)},f.Wb=function(t){throw V(new zn)},M(Ds,"AbstractEList/NonResolvingEListIterator",393),E(2059,71,bat),f.Ci=function(t,n){var i,r,o,a,d,b,v,x,T,A,L;if(o=n.gc(),o!=0){for(x=c(Wt(this.a,4),131),T=x==null?0:x.length,L=T+o,r=ene(this,L),A=T-t,A>0&&wc(x,t,r,t+o,A),v=n.Jc(),d=0;d<o;++d)b=v.Pb(),i=t+d,OZ(r,i,kS(this,b));for(PS(this,r),a=0;a<o;++a)b=r[t],this.Ki(t,b),++t;return!0}else return++this.j,!1},f.Di=function(t){var n,i,r,o,a,d,b,v,x;if(r=t.gc(),r!=0){for(v=(i=c(Wt(this.a,4),131),i==null?0:i.length),x=v+r,n=ene(this,x),b=t.Jc(),a=v;a<x;++a)d=b.Pb(),OZ(n,a,kS(this,d));for(PS(this,n),o=v;o<x;++o)d=n[o],this.Ki(o,d);return!0}else return++this.j,!1},f.Ei=function(t,n){var i,r,o,a;r=c(Wt(this.a,4),131),o=r==null?0:r.length,i=ene(this,o+1),a=kS(this,n),t!=o&&wc(r,t,i,t+1,o-t),mr(i,t,a),PS(this,i),this.Ki(t,n)},f.Fi=function(t){var n,i,r;r=(i=c(Wt(this.a,4),131),i==null?0:i.length),n=ene(this,r+1),OZ(n,r,kS(this,t)),PS(this,n),this.Ki(r,t)},f.Gi=function(){return new KUe(this)},f.Hi=function(){return new nHe(this)},f.Ii=function(t){var n,i;if(i=(n=c(Wt(this.a,4),131),n==null?0:n.length),t<0||t>i)throw V(new Q2(t,i));return new _He(this,t)},f.$b=function(){var t,n;++this.j,t=c(Wt(this.a,4),131),n=t==null?0:t.length,PS(this,null),ute(this,n,t)},f.Gc=function(t){var n,i,r,o,a;if(n=c(Wt(this.a,4),131),n!=null){if(t!=null){for(r=n,o=0,a=r.length;o<a;++o)if(i=r[o],xi(t,i))return!0}else for(r=n,o=0,a=r.length;o<a;++o)if(i=r[o],xe(i)===xe(t))return!0}return!1},f.Xb=function(t){var n,i;if(n=c(Wt(this.a,4),131),i=n==null?0:n.length,t>=i)throw V(new Q2(t,i));return n[t]},f.bd=function(t){var n,i,r;if(n=c(Wt(this.a,4),131),n!=null){if(t!=null){for(i=0,r=n.length;i<r;++i)if(xi(t,n[i]))return i}else for(i=0,r=n.length;i<r;++i)if(xe(n[i])===xe(t))return i}return-1},f.dc=function(){return c(Wt(this.a,4),131)==null},f.Jc=function(){return new WUe(this)},f.cd=function(){return new tHe(this)},f.dd=function(t){var n,i;if(i=(n=c(Wt(this.a,4),131),n==null?0:n.length),t<0||t>i)throw V(new Q2(t,i));return new NHe(this,t)},f.Ri=function(t,n){var i,r,o;if(i=EYe(this),o=i==null?0:i.length,t>=o)throw V(new qc(Soe+t+Sb+o));if(n>=o)throw V(new qc(joe+n+Sb+o));return r=i[n],t!=n&&(t<n?wc(i,t,i,t+1,n-t):wc(i,n+1,i,n,t-n),mr(i,t,r),PS(this,i)),r},f.Ti=function(t){return c(Wt(this.a,4),131)[t]},f.ed=function(t){return KUt(this,t)},f.Vi=function(t,n){var i,r;return i=EYe(this),r=i[t],OZ(i,t,kS(this,n)),PS(this,i),r},f.gc=function(){var t;return t=c(Wt(this.a,4),131),t==null?0:t.length},f.Nc=function(){var t,n,i;return t=c(Wt(this.a,4),131),i=t==null?0:t.length,n=ke(Jae,Aoe,420,i,0,1),i>0&&wc(t,0,n,0,i),n},f.Oc=function(t){var n,i,r;return n=c(Wt(this.a,4),131),r=n==null?0:n.length,r>0&&(t.length<r&&(i=ED(Ou(t).c,r),t=i),wc(n,0,t,0,r)),t.length>r&&mr(t,r,null),t};var Evt;M(Ds,"ArrayDelegatingEList",2059),E(1043,39,ns,WUe),f.Vj=function(){if(this.b.j!=this.f||xe(c(Wt(this.b.a,4),131))!==xe(this.a))throw V(new aa)},f.Qb=function(){Q7(this),this.a=c(Wt(this.b.a,4),131)},M(Ds,"ArrayDelegatingEList/EIterator",1043),E(719,288,qd,tHe,NHe),f.Vj=function(){if(this.b.j!=this.f||xe(c(Wt(this.b.a,4),131))!==xe(this.a))throw V(new aa)},f.Yj=function(t){wZe(this,t),this.a=c(Wt(this.b.a,4),131)},f.Qb=function(){Q7(this),this.a=c(Wt(this.b.a,4),131)},M(Ds,"ArrayDelegatingEList/EListIterator",719),E(1044,356,ns,KUe),f.Vj=function(){if(this.b.j!=this.f||xe(c(Wt(this.b.a,4),131))!==xe(this.a))throw V(new aa)},M(Ds,"ArrayDelegatingEList/NonResolvingEIterator",1044),E(720,393,qd,nHe,_He),f.Vj=function(){if(this.b.j!=this.f||xe(c(Wt(this.b.a,4),131))!==xe(this.a))throw V(new aa)},M(Ds,"ArrayDelegatingEList/NonResolvingEListIterator",720),E(612,306,fG,bZ),M(Ds,"BasicEList/BasicIndexOutOfBoundsException",612),E(706,67,dd,Cge),f._c=function(t,n){throw V(new zn)},f.Ec=function(t){throw V(new zn)},f.ad=function(t,n){throw V(new zn)},f.Fc=function(t){throw V(new zn)},f.$b=function(){throw V(new zn)},f.Zi=function(t){throw V(new zn)},f.Jc=function(){return this.Gi()},f.cd=function(){return this.Hi()},f.dd=function(t){return this.Ii(t)},f.Ri=function(t,n){throw V(new zn)},f.Si=function(t,n){throw V(new zn)},f.ed=function(t){throw V(new zn)},f.Kc=function(t){throw V(new zn)},f.fd=function(t,n){throw V(new zn)},M(Ds,"BasicEList/UnmodifiableEList",706),E(718,1,{3:1,22:1,18:1,16:1,61:1,593:1}),f._c=function(t,n){NTt(this,t,c(n,45))},f.Ec=function(t){return M7t(this,c(t,45))},f.Ic=function(t){vs(this,t)},f.Xb=function(t){return c(ce(this.c,t),138)},f.Ri=function(t,n){return c(this.c.Ri(t,n),45)},f.Si=function(t,n){_Tt(this,t,c(n,45))},f.ed=function(t){return c(this.c.ed(t),45)},f.fd=function(t,n){return QAt(this,t,c(n,45))},f.gd=function(t){sb(this,t)},f.Lc=function(){return new Et(this,16)},f.Mc=function(){return new Tt(null,new Et(this,16))},f.ad=function(t,n){return this.c.ad(t,n)},f.Fc=function(t){return this.c.Fc(t)},f.$b=function(){this.c.$b()},f.Gc=function(t){return this.c.Gc(t)},f.Hc=function(t){return ID(this.c,t)},f.Zj=function(){var t,n,i;if(this.d==null){for(this.d=ke(X7e,ike,67,2*this.f+1,0,1),i=this.e,this.f=0,n=this.c.Jc();n.e!=n.i.gc();)t=c(n.Wj(),138),bQ(this,t);this.e=i}},f.Fb=function(t){return SFe(this,t)},f.Hb=function(){return iwe(this.c)},f.bd=function(t){return this.c.bd(t)},f.$j=function(){this.c=new ALe(this)},f.dc=function(){return this.f==0},f.Jc=function(){return this.c.Jc()},f.cd=function(){return this.c.cd()},f.dd=function(t){return this.c.dd(t)},f._j=function(){return gD(this)},f.ak=function(t,n,i){return new $Fe(t,n,i)},f.bk=function(){return new wN},f.Kc=function(t){return SXe(this,t)},f.gc=function(){return this.f},f.hd=function(t,n){return new Yh(this.c,t,n)},f.Nc=function(){return this.c.Nc()},f.Oc=function(t){return this.c.Oc(t)},f.Ib=function(){return e2e(this.c)},f.e=0,f.f=0,M(Ds,"BasicEMap",718),E(1038,67,dd,ALe),f.Ki=function(t,n){g9t(this,c(n,138))},f.Ni=function(t,n,i){var r;++(r=this,c(n,138),r).a.e},f.Oi=function(t,n){p9t(this,c(n,138))},f.Pi=function(t,n,i){a7t(this,c(n,138),c(i,138))},f.Mi=function(t,n){mWe(this.a)},M(Ds,"BasicEMap/1",1038),E(1039,67,dd,wN),f.$i=function(t){return ke(win,mat,618,t,0,1)},M(Ds,"BasicEMap/2",1039),E(1040,Eh,Pl,NLe),f.$b=function(){this.a.c.$b()},f.Gc=function(t){return vne(this.a,t)},f.Jc=function(){return this.a.f==0?(H6(),mI.a):new pIe(this.a)},f.Kc=function(t){var n;return n=this.a.f,oQ(this.a,t),this.a.f!=n},f.gc=function(){return this.a.f},M(Ds,"BasicEMap/3",1040),E(1041,32,Tv,_Le),f.$b=function(){this.a.c.$b()},f.Gc=function(t){return Iit(this.a,t)},f.Jc=function(){return this.a.f==0?(H6(),mI.a):new bIe(this.a)},f.gc=function(){return this.a.f},M(Ds,"BasicEMap/4",1041),E(1042,Eh,Pl,DLe),f.$b=function(){this.a.c.$b()},f.Gc=function(t){var n,i,r,o,a,d,b,v,x;if(this.a.f>0&&ae(t,45)&&(this.a.Zj(),v=c(t,45),b=v.jd(),o=b==null?0:zi(b),a=j0e(this.a,o),n=this.a.d[a],n)){for(i=c(n.g,375),x=n.i,d=0;d<x;++d)if(r=i[d],r.yi()==o&&r.Fb(v))return!0}return!1},f.Jc=function(){return this.a.f==0?(H6(),mI.a):new Nee(this.a)},f.Kc=function(t){return Snt(this,t)},f.gc=function(){return this.a.f},M(Ds,"BasicEMap/5",1042),E(619,1,ns,Nee),f.Nb=function(t){ps(this,t)},f.Ob=function(){return this.b!=-1},f.Pb=function(){var t;if(this.f.e!=this.c)throw V(new aa);if(this.b==-1)throw V(new Mo);return this.d=this.a,this.e=this.b,ZZe(this),t=c(this.f.d[this.d].g[this.e],138),this.ck(t)},f.Qb=function(){if(this.f.e!=this.c)throw V(new aa);if(this.e==-1)throw V(new El);this.f.c.Kc(ce(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&this.b!=-1&&--this.b},f.ck=function(t){return t},f.a=0,f.b=-1,f.c=0,f.d=0,f.e=0,M(Ds,"BasicEMap/BasicEMapIterator",619),E(1036,619,ns,pIe),f.ck=function(t){return t.jd()},M(Ds,"BasicEMap/BasicEMapKeyIterator",1036),E(1037,619,ns,bIe),f.ck=function(t){return t.kd()},M(Ds,"BasicEMap/BasicEMapValueIterator",1037),E(1035,1,gw,LLe),f.wc=function(t){AD(this,t)},f.$b=function(){this.a.c.$b()},f._b=function(t){return eBe(this,t)},f.uc=function(t){return Iit(this.a,t)},f.vc=function(){return CPt(this.a)},f.Fb=function(t){return SFe(this.a,t)},f.xc=function(t){return Kf(this.a,t)},f.Hb=function(){return iwe(this.a.c)},f.dc=function(){return this.a.f==0},f.ec=function(){return TPt(this.a)},f.yc=function(t,n){return eL(this.a,t,n)},f.Ac=function(t){return oQ(this.a,t)},f.gc=function(){return this.a.f},f.Ib=function(){return e2e(this.a.c)},f.Bc=function(){return EPt(this.a)},M(Ds,"BasicEMap/DelegatingMap",1035),E(618,1,{45:1,138:1,618:1},$Fe),f.Fb=function(t){var n;return ae(t,45)?(n=c(t,45),(this.b!=null?xi(this.b,n.jd()):xe(this.b)===xe(n.jd()))&&(this.c!=null?xi(this.c,n.kd()):xe(this.c)===xe(n.kd()))):!1},f.yi=function(){return this.a},f.jd=function(){return this.b},f.kd=function(){return this.c},f.Hb=function(){return this.a^(this.c==null?0:zi(this.c))},f.zi=function(t){this.a=t},f.Ai=function(t){throw V(new $p)},f.ld=function(t){var n;return n=this.c,this.c=t,n},f.Ib=function(){return this.b+"->"+this.c},f.a=0;var win=M(Ds,"BasicEMap/EntryImpl",618);E(538,1,{},gg),M(Ds,"BasicEMap/View",538);var mI;E(776,1,{}),f.Fb=function(t){return oye((Mt(),$s),t)},f.Hb=function(){return pwe((Mt(),$s))},f.Ib=function(){return jh((Mt(),$s))},M(Ds,"ECollections/BasicEmptyUnmodifiableEList",776),E(1314,1,qd,la),f.Nb=function(t){ps(this,t)},f.Rb=function(t){throw V(new zn)},f.Ob=function(){return!1},f.Sb=function(){return!1},f.Pb=function(){throw V(new Mo)},f.Tb=function(){return 0},f.Ub=function(){throw V(new Mo)},f.Vb=function(){return-1},f.Qb=function(){throw V(new zn)},f.Wb=function(t){throw V(new zn)},M(Ds,"ECollections/BasicEmptyUnmodifiableEList/1",1314),E(1312,776,{22:1,18:1,16:1,61:1},kPe),f._c=function(t,n){$Ie()},f.Ec=function(t){return BIe()},f.ad=function(t,n){return zIe()},f.Fc=function(t){return FIe()},f.$b=function(){qIe()},f.Gc=function(t){return!1},f.Hc=function(t){return!1},f.Ic=function(t){vs(this,t)},f.Xb=function(t){return _ge((Mt(),t)),null},f.bd=function(t){return-1},f.dc=function(){return!0},f.Jc=function(){return this.a},f.cd=function(){return this.a},f.dd=function(t){return this.a},f.Ri=function(t,n){return HIe()},f.Si=function(t,n){QIe()},f.ed=function(t){return GIe()},f.Kc=function(t){return UIe()},f.fd=function(t,n){return JIe()},f.gc=function(){return 0},f.gd=function(t){sb(this,t)},f.Lc=function(){return new Et(this,16)},f.Mc=function(){return new Tt(null,new Et(this,16))},f.hd=function(t,n){return Mt(),new Yh($s,t,n)},f.Nc=function(){return Tpe((Mt(),$s))},f.Oc=function(t){return Mt(),z7($s,t)},M(Ds,"ECollections/EmptyUnmodifiableEList",1312),E(1313,776,{22:1,18:1,16:1,61:1,593:1},OPe),f._c=function(t,n){$Ie()},f.Ec=function(t){return BIe()},f.ad=function(t,n){return zIe()},f.Fc=function(t){return FIe()},f.$b=function(){qIe()},f.Gc=function(t){return!1},f.Hc=function(t){return!1},f.Ic=function(t){vs(this,t)},f.Xb=function(t){return _ge((Mt(),t)),null},f.bd=function(t){return-1},f.dc=function(){return!0},f.Jc=function(){return this.a},f.cd=function(){return this.a},f.dd=function(t){return this.a},f.Ri=function(t,n){return HIe()},f.Si=function(t,n){QIe()},f.ed=function(t){return GIe()},f.Kc=function(t){return UIe()},f.fd=function(t,n){return JIe()},f.gc=function(){return 0},f.gd=function(t){sb(this,t)},f.Lc=function(){return new Et(this,16)},f.Mc=function(){return new Tt(null,new Et(this,16))},f.hd=function(t,n){return Mt(),new Yh($s,t,n)},f.Nc=function(){return Tpe((Mt(),$s))},f.Oc=function(t){return Mt(),z7($s,t)},f._j=function(){return Mt(),Mt(),Vd},M(Ds,"ECollections/EmptyUnmodifiableEMap",1313);var K7e=Zi(Ds,"Enumerator"),EV;E(291,1,{291:1},Eie),f.Fb=function(t){var n;return this===t?!0:ae(t,291)?(n=c(t,291),this.f==n.f&&hAt(this.i,n.i)&&nee(this.a,(this.f&256)!=0?(n.f&256)!=0?n.a:null:(n.f&256)!=0?null:n.a)&&nee(this.d,n.d)&&nee(this.g,n.g)&&nee(this.e,n.e)&&xFt(this,n)):!1},f.Hb=function(){return this.f},f.Ib=function(){return mrt(this)},f.f=0;var Cvt=0,Mvt=0,Avt=0,Nvt=0,Y7e=0,Z7e=0,eEe=0,tEe=0,nEe=0,_vt,rM=0,sM=0,Dvt=0,Lvt=0,CV,iEe;M(Ds,"URI",291),E(1102,44,Wx,SPe),f.yc=function(t,n){return c(uo(this,qn(t),c(n,291)),291)},M(Ds,"URI/URICache",1102),E(495,67,dd,bB,pq),f.Qi=function(){return!0},M(Ds,"UniqueEList",495),E(585,63,B1,hH),M(Ds,"WrappedException",585);var oi=Zi(ja,yat),hy=Zi(ja,xat),Ol=Zi(ja,kat),dy=Zi(ja,Oat),lh=Zi(ja,Sat),ef=Zi(ja,"EClass"),Vae=Zi(ja,"EDataType"),Pvt;E(1210,44,Wx,jPe),f.xc=function(t){return Yr(t)?Mc(this,t):No(lo(this.f,t))},M(ja,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1210);var MV=Zi(ja,"EEnum"),K1=Zi(ja,jat),Ys=Zi(ja,Tat),tf=Zi(ja,Eat),nf,Fw=Zi(ja,Cat),gy=Zi(ja,Mat);E(1034,1,{},lf),f.Ib=function(){return"NIL"},M(ja,"EStructuralFeature/Internal/DynamicValueHolder/1",1034);var Ivt;E(1033,44,Wx,TPe),f.xc=function(t){return Yr(t)?Mc(this,t):No(lo(this.f,t))},M(ja,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1033);var ul=Zi(ja,Aat),Xk=Zi(ja,"EValidator/PatternMatcher"),rEe,sEe,Gt,e0,py,dp,Rvt,$vt,Bvt,gp,t0,pp,qw,Fh,zvt,Fvt,rf,n0,qvt,i0,by,P3,zs,Hvt,Qvt,Hw,AV=Zi(Ji,"FeatureMap/Entry");E(537,1,{76:1},_F),f.Jk=function(){return this.a},f.kd=function(){return this.b},M(Vt,"BasicEObjectImpl/1",537),E(1032,1,Noe,V$e),f.Dk=function(t){return rte(this.a,this.b,t)},f.Oj=function(){return $Qe(this.a,this.b)},f.Wb=function(t){hbe(this.a,this.b,t)},f.Ek=function(){oNt(this.a,this.b)},M(Vt,"BasicEObjectImpl/4",1032),E(2060,1,{115:1}),f.Kk=function(t){this.e=t==0?Gvt:ke(Br,Pt,1,t,5,1)},f.ii=function(t){return this.e[t]},f.ji=function(t,n){this.e[t]=n},f.ki=function(t){this.e[t]=null},f.Lk=function(){return this.c},f.Mk=function(){throw V(new zn)},f.Nk=function(){throw V(new zn)},f.Ok=function(){return this.d},f.Pk=function(){return this.e!=null},f.Qk=function(t){this.c=t},f.Rk=function(t){throw V(new zn)},f.Sk=function(t){throw V(new zn)},f.Tk=function(t){this.d=t};var Gvt;M(Vt,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2060),E(195,2060,{115:1},ua),f.Mk=function(){return this.a},f.Nk=function(){return this.b},f.Rk=function(t){this.a=t},f.Sk=function(t){this.b=t},M(Vt,"BasicEObjectImpl/EPropertiesHolderImpl",195),E(505,101,Aut,I8),f.rh=function(){return this.f},f.wh=function(){return this.k},f.yh=function(t,n){this.g=t,this.i=n},f.Ah=function(){return(this.j&2)==0?this.fi():this.Xh().Lk()},f.Ch=function(){return this.i},f.th=function(){return(this.j&1)!=0},f.Mh=function(){return this.g},f.Sh=function(){return(this.j&4)!=0},f.Xh=function(){return!this.k&&(this.k=new ua),this.k},f._h=function(t){this.Xh().Qk(t),t?this.j|=2:this.j&=-3},f.bi=function(t){this.Xh().Sk(t),t?this.j|=4:this.j&=-5},f.fi=function(){return(O0(),Gt).S},f.i=0,f.j=1,M(Vt,"EObjectImpl",505),E(792,505,{110:1,95:1,94:1,57:1,115:1,52:1,101:1},upe),f.ii=function(t){return this.e[t]},f.ji=function(t,n){this.e[t]=n},f.ki=function(t){this.e[t]=null},f.Ah=function(){return this.d},f.Fh=function(t){return Ki(this.d,t)},f.Hh=function(){return this.d},f.Lh=function(){return this.e!=null},f.Xh=function(){return!this.k&&(this.k=new mB),this.k},f._h=function(t){this.d=t},f.ei=function(){var t;return this.e==null&&(t=bn(this.d),this.e=t==0?Uvt:ke(Br,Pt,1,t,5,1)),this},f.gi=function(){return 0};var Uvt;M(Vt,"DynamicEObjectImpl",792),E(1500,792,{110:1,45:1,95:1,94:1,138:1,57:1,115:1,52:1,101:1},dqe),f.Fb=function(t){return this===t},f.Hb=function(){return Rm(this)},f._h=function(t){this.d=t,this.b=hL(t,"key"),this.c=hL(t,_E)},f.yi=function(){var t;return this.a==-1&&(t=wte(this,this.b),this.a=t==null?0:zi(t)),this.a},f.jd=function(){return wte(this,this.b)},f.kd=function(){return wte(this,this.c)},f.zi=function(t){this.a=t},f.Ai=function(t){hbe(this,this.b,t)},f.ld=function(t){var n;return n=wte(this,this.c),hbe(this,this.c,t),n},f.a=0,M(Vt,"DynamicEObjectImpl/BasicEMapEntry",1500),E(1501,1,{115:1},mB),f.Kk=function(t){throw V(new zn)},f.ii=function(t){throw V(new zn)},f.ji=function(t,n){throw V(new zn)},f.ki=function(t){throw V(new zn)},f.Lk=function(){throw V(new zn)},f.Mk=function(){return this.a},f.Nk=function(){return this.b},f.Ok=function(){return this.c},f.Pk=function(){throw V(new zn)},f.Qk=function(t){throw V(new zn)},f.Rk=function(t){this.a=t},f.Sk=function(t){this.b=t},f.Tk=function(t){this.c=t},M(Vt,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1501),E(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},vN),f.xh=function(t){return z2e(this,t)},f.Ih=function(t,n,i){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),this.Ab;case 1:return this.d;case 2:return i?(!this.b&&(this.b=new wu((At(),zs),Zo,this)),this.b):(!this.b&&(this.b=new wu((At(),zs),Zo,this)),gD(this.b));case 3:return QQe(this);case 4:return!this.a&&(this.a=new Nr(fp,this,4)),this.a;case 5:return!this.c&&(this.c=new kx(fp,this,5)),this.c}return ba(this,t-bn((At(),e0)),Dt((r=c(Wt(this,16),29),r||e0),t),n,i)},f.Ph=function(t,n,i){var r,o,a;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),Vc(this.Ab,t,i);case 3:return this.Cb&&(i=(o=this.Db>>16,o>=0?z2e(this,i):this.Cb.Qh(this,-1-o,null,i))),Spe(this,c(t,159),i)}return a=c(Dt((r=c(Wt(this,16),29),r||(At(),e0)),n),69),a.uk().xk(this,il(this),n-bn((At(),e0)),t,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),_s(this.Ab,t,i);case 2:return!this.b&&(this.b=new wu((At(),zs),Zo,this)),YF(this.b,t,i);case 3:return Spe(this,null,i);case 4:return!this.a&&(this.a=new Nr(fp,this,4)),_s(this.a,t,i)}return o=c(Dt((r=c(Wt(this,16),29),r||(At(),e0)),n),69),o.uk().yk(this,il(this),n-bn((At(),e0)),t,i)},f.Th=function(t){var n;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!!QQe(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return ga(this,t-bn((At(),e0)),Dt((n=c(Wt(this,16),29),n||e0),t))},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab),!this.Ab&&(this.Ab=new _e(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:WMt(this,qn(n));return;case 2:!this.b&&(this.b=new wu((At(),zs),Zo,this)),IH(this.b,n);return;case 3:rit(this,c(n,159));return;case 4:!this.a&&(this.a=new Nr(fp,this,4)),An(this.a),!this.a&&(this.a=new Nr(fp,this,4)),dr(this.a,c(n,18));return;case 5:!this.c&&(this.c=new kx(fp,this,5)),An(this.c),!this.c&&(this.c=new kx(fp,this,5)),dr(this.c,c(n,18));return}ka(this,t-bn((At(),e0)),Dt((i=c(Wt(this,16),29),i||e0),t),n)},f.fi=function(){return At(),e0},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab);return;case 1:$me(this,null);return;case 2:!this.b&&(this.b=new wu((At(),zs),Zo,this)),this.b.c.$b();return;case 3:rit(this,null);return;case 4:!this.a&&(this.a=new Nr(fp,this,4)),An(this.a);return;case 5:!this.c&&(this.c=new kx(fp,this,5)),An(this.c);return}xa(this,t-bn((At(),e0)),Dt((n=c(Wt(this,16),29),n||e0),t))},f.Ib=function(){return FKe(this)},f.d=null,M(Vt,"EAnnotationImpl",508),E(145,718,rke,Nl),f.Ei=function(t,n){pTt(this,t,c(n,45))},f.Uk=function(t,n){return mEt(this,c(t,45),n)},f.Yi=function(t){return c(c(this.c,72).Yi(t),138)},f.Gi=function(){return c(this.c,72).Gi()},f.Hi=function(){return c(this.c,72).Hi()},f.Ii=function(t){return c(this.c,72).Ii(t)},f.Vk=function(t,n){return YF(this,t,n)},f.Dk=function(t){return c(this.c,78).Dk(t)},f.$j=function(){},f.Oj=function(){return c(this.c,78).Oj()},f.ak=function(t,n,i){var r;return r=c(Bu(this.b).ti().pi(this.b),138),r.zi(t),r.Ai(n),r.ld(i),r},f.bk=function(){return new t1e(this)},f.Wb=function(t){IH(this,t)},f.Ek=function(){c(this.c,78).Ek()},M(Ji,"EcoreEMap",145),E(170,145,rke,wu),f.Zj=function(){var t,n,i,r,o,a;if(this.d==null){for(a=ke(X7e,ike,67,2*this.f+1,0,1),i=this.c.Jc();i.e!=i.i.gc();)n=c(i.Wj(),138),r=n.yi(),o=(r&gi)%a.length,t=a[o],!t&&(t=a[o]=new t1e(this)),t.Ec(n);this.d=a}},M(Vt,"EAnnotationImpl/1",170),E(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}),f.Ih=function(t,n,i){var r,o;switch(t){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Bt(),(this.Bb&256)!=0;case 3:return Bt(),(this.Bb&512)!=0;case 4:return $e(this.s);case 5:return $e(this.t);case 6:return Bt(),!!this.Hk();case 7:return Bt(),o=this.s,o>=1;case 8:return n?Qa(this):this.r;case 9:return this.q}return ba(this,t-bn(this.fi()),Dt((r=c(Wt(this,16),29),r||this.fi()),t),n,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),_s(this.Ab,t,i);case 9:return wee(this,i)}return o=c(Dt((r=c(Wt(this,16),29),r||this.fi()),n),69),o.uk().yk(this,il(this),n-bn(this.fi()),t,i)},f.Th=function(t){var n,i;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 i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Fm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Fm(this.q).i==0)}return ga(this,t-bn(this.fi()),Dt((n=c(Wt(this,16),29),n||this.fi()),t))},f.$h=function(t,n){var i,r;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab),!this.Ab&&(this.Ab=new _e(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:this.ri(qn(n));return;case 2:Pg(this,Ze(Ye(n)));return;case 3:Ig(this,Ze(Ye(n)));return;case 4:Ng(this,c(n,15).a);return;case 5:this.Xk(c(n,15).a);return;case 8:fb(this,c(n,146));return;case 9:r=Sh(this,c(n,88),null),r&&r.mj();return}ka(this,t-bn(this.fi()),Dt((i=c(Wt(this,16),29),i||this.fi()),t),n)},f.fi=function(){return At(),Qvt},f.hi=function(t){var n,i;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab);return;case 1:this.ri(null);return;case 2:Pg(this,!0);return;case 3:Ig(this,!0);return;case 4:Ng(this,0);return;case 5:this.Xk(1);return;case 8:fb(this,null);return;case 9:i=Sh(this,null,null),i&&i.mj();return}xa(this,t-bn(this.fi()),Dt((n=c(Wt(this,16),29),n||this.fi()),t))},f.mi=function(){Qa(this),this.Bb|=1},f.Fk=function(){return Qa(this)},f.Gk=function(){return this.t},f.Hk=function(){var t;return t=this.t,t>1||t==-1},f.Qi=function(){return(this.Bb&512)!=0},f.Wk=function(t,n){return Pwe(this,t,n)},f.Xk=function(t){ov(this,t)},f.Ib=function(){return Kve(this)},f.s=0,f.t=1,M(Vt,"ETypedElementImpl",294),E(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}),f.xh=function(t){return DZe(this,t)},f.Ih=function(t,n,i){var r,o;switch(t){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Bt(),(this.Bb&256)!=0;case 3:return Bt(),(this.Bb&512)!=0;case 4:return $e(this.s);case 5:return $e(this.t);case 6:return Bt(),!!this.Hk();case 7:return Bt(),o=this.s,o>=1;case 8:return n?Qa(this):this.r;case 9:return this.q;case 10:return Bt(),(this.Bb&Ga)!=0;case 11:return Bt(),(this.Bb&$1)!=0;case 12:return Bt(),(this.Bb&Cv)!=0;case 13:return this.j;case 14:return HS(this);case 15:return Bt(),(this.Bb&Il)!=0;case 16:return Bt(),(this.Bb&od)!=0;case 17:return Z2(this)}return ba(this,t-bn(this.fi()),Dt((r=c(Wt(this,16),29),r||this.fi()),t),n,i)},f.Ph=function(t,n,i){var r,o,a;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),Vc(this.Ab,t,i);case 17:return this.Cb&&(i=(o=this.Db>>16,o>=0?DZe(this,i):this.Cb.Qh(this,-1-o,null,i))),Qu(this,t,17,i)}return a=c(Dt((r=c(Wt(this,16),29),r||this.fi()),n),69),a.uk().xk(this,il(this),n-bn(this.fi()),t,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),_s(this.Ab,t,i);case 9:return wee(this,i);case 17:return Qu(this,null,17,i)}return o=c(Dt((r=c(Wt(this,16),29),r||this.fi()),n),69),o.uk().yk(this,il(this),n-bn(this.fi()),t,i)},f.Th=function(t){var n,i;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 i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Fm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Fm(this.q).i==0);case 10:return(this.Bb&Ga)==0;case 11:return(this.Bb&$1)!=0;case 12:return(this.Bb&Cv)!=0;case 13:return this.j!=null;case 14:return HS(this)!=null;case 15:return(this.Bb&Il)!=0;case 16:return(this.Bb&od)!=0;case 17:return!!Z2(this)}return ga(this,t-bn(this.fi()),Dt((n=c(Wt(this,16),29),n||this.fi()),t))},f.$h=function(t,n){var i,r;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab),!this.Ab&&(this.Ab=new _e(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Qee(this,qn(n));return;case 2:Pg(this,Ze(Ye(n)));return;case 3:Ig(this,Ze(Ye(n)));return;case 4:Ng(this,c(n,15).a);return;case 5:this.Xk(c(n,15).a);return;case 8:fb(this,c(n,146));return;case 9:r=Sh(this,c(n,88),null),r&&r.mj();return;case 10:ES(this,Ze(Ye(n)));return;case 11:AS(this,Ze(Ye(n)));return;case 12:CS(this,Ze(Ye(n)));return;case 13:Age(this,qn(n));return;case 15:MS(this,Ze(Ye(n)));return;case 16:NS(this,Ze(Ye(n)));return}ka(this,t-bn(this.fi()),Dt((i=c(Wt(this,16),29),i||this.fi()),t),n)},f.fi=function(){return At(),Hvt},f.hi=function(t){var n,i;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab);return;case 1:ae(this.Cb,89)&&vv(iu(c(this.Cb,89)),4),Jc(this,null);return;case 2:Pg(this,!0);return;case 3:Ig(this,!0);return;case 4:Ng(this,0);return;case 5:this.Xk(1);return;case 8:fb(this,null);return;case 9:i=Sh(this,null,null),i&&i.mj();return;case 10:ES(this,!0);return;case 11:AS(this,!1);return;case 12:CS(this,!1);return;case 13:this.i=null,AH(this,null);return;case 15:MS(this,!1);return;case 16:NS(this,!1);return}xa(this,t-bn(this.fi()),Dt((n=c(Wt(this,16),29),n||this.fi()),t))},f.mi=function(){tS(ao((Ll(),bs),this)),Qa(this),this.Bb|=1},f.nk=function(){return this.f},f.gk=function(){return HS(this)},f.ok=function(){return Z2(this)},f.sk=function(){return null},f.Yk=function(){return this.k},f.Jj=function(){return this.n},f.tk=function(){return SQ(this)},f.uk=function(){var t,n,i,r,o,a,d,b,v;return this.p||(i=Z2(this),(i.i==null&&sd(i),i.i).length,r=this.sk(),r&&bn(Z2(r)),o=Qa(this),d=o.ik(),t=d?(d.i&1)!=0?d==Sl?or:d==Hn?Pr:d==wy?Lj:d==is?jr:d==Gw?Tw:d==B3?Ew:d==$l?xk:HE:d:null,n=HS(this),b=o.gk(),QBt(this),(this.Bb&od)!=0&&((a=J2e((Ll(),bs),i))&&a!=this||(a=P4(ao(bs,this))))?this.p=new W$e(this,a):this.Hk()?this.$k()?r?(this.Bb&Il)!=0?t?this._k()?this.p=new Wp(47,t,this,r):this.p=new Wp(5,t,this,r):this._k()?this.p=new nb(46,this,r):this.p=new nb(4,this,r):t?this._k()?this.p=new Wp(49,t,this,r):this.p=new Wp(7,t,this,r):this._k()?this.p=new nb(48,this,r):this.p=new nb(6,this,r):(this.Bb&Il)!=0?t?t==Eb?this.p=new jg(50,jvt,this):this._k()?this.p=new jg(43,t,this):this.p=new jg(1,t,this):this._k()?this.p=new Eg(42,this):this.p=new Eg(0,this):t?t==Eb?this.p=new jg(41,jvt,this):this._k()?this.p=new jg(45,t,this):this.p=new jg(3,t,this):this._k()?this.p=new Eg(44,this):this.p=new Eg(2,this):ae(o,160)?t==AV?this.p=new Eg(40,this):(this.Bb&512)!=0?(this.Bb&Il)!=0?t?this.p=new jg(9,t,this):this.p=new Eg(8,this):t?this.p=new jg(11,t,this):this.p=new Eg(10,this):(this.Bb&Il)!=0?t?this.p=new jg(13,t,this):this.p=new Eg(12,this):t?this.p=new jg(15,t,this):this.p=new Eg(14,this):r?(v=r.t,v>1||v==-1?this._k()?(this.Bb&Il)!=0?t?this.p=new Wp(25,t,this,r):this.p=new nb(24,this,r):t?this.p=new Wp(27,t,this,r):this.p=new nb(26,this,r):(this.Bb&Il)!=0?t?this.p=new Wp(29,t,this,r):this.p=new nb(28,this,r):t?this.p=new Wp(31,t,this,r):this.p=new nb(30,this,r):this._k()?(this.Bb&Il)!=0?t?this.p=new Wp(33,t,this,r):this.p=new nb(32,this,r):t?this.p=new Wp(35,t,this,r):this.p=new nb(34,this,r):(this.Bb&Il)!=0?t?this.p=new Wp(37,t,this,r):this.p=new nb(36,this,r):t?this.p=new Wp(39,t,this,r):this.p=new nb(38,this,r)):this._k()?(this.Bb&Il)!=0?t?this.p=new jg(17,t,this):this.p=new Eg(16,this):t?this.p=new jg(19,t,this):this.p=new Eg(18,this):(this.Bb&Il)!=0?t?this.p=new jg(21,t,this):this.p=new Eg(20,this):t?this.p=new jg(23,t,this):this.p=new Eg(22,this):this.Zk()?this._k()?this.p=new FFe(c(o,29),this,r):this.p=new fbe(c(o,29),this,r):ae(o,160)?t==AV?this.p=new Eg(40,this):(this.Bb&Il)!=0?t?this.p=new $qe(n,b,this,(xne(),d==Hn?hEe:d==Sl?cEe:d==Gw?dEe:d==wy?fEe:d==is?aEe:d==B3?gEe:d==$l?lEe:d==_a?uEe:Kae)):this.p=new tQe(c(o,160),n,b,this):t?this.p=new Rqe(n,b,this,(xne(),d==Hn?hEe:d==Sl?cEe:d==Gw?dEe:d==wy?fEe:d==is?aEe:d==B3?gEe:d==$l?lEe:d==_a?uEe:Kae)):this.p=new eQe(c(o,160),n,b,this):this.$k()?r?(this.Bb&Il)!=0?this._k()?this.p=new HFe(c(o,29),this,r):this.p=new Z0e(c(o,29),this,r):this._k()?this.p=new qFe(c(o,29),this,r):this.p=new VZ(c(o,29),this,r):(this.Bb&Il)!=0?this._k()?this.p=new Ize(c(o,29),this):this.p=new g0e(c(o,29),this):this._k()?this.p=new Pze(c(o,29),this):this.p=new DZ(c(o,29),this):this._k()?r?(this.Bb&Il)!=0?this.p=new QFe(c(o,29),this,r):this.p=new K0e(c(o,29),this,r):(this.Bb&Il)!=0?this.p=new $ze(c(o,29),this):this.p=new p0e(c(o,29),this):r?(this.Bb&Il)!=0?this.p=new GFe(c(o,29),this,r):this.p=new Y0e(c(o,29),this,r):(this.Bb&Il)!=0?this.p=new Rze(c(o,29),this):this.p=new bq(c(o,29),this)),this.p},f.pk=function(){return(this.Bb&Ga)!=0},f.Zk=function(){return!1},f.$k=function(){return!1},f.qk=function(){return(this.Bb&od)!=0},f.vk=function(){return yte(this)},f._k=function(){return!1},f.rk=function(){return(this.Bb&Il)!=0},f.al=function(t){this.k=t},f.ri=function(t){Qee(this,t)},f.Ib=function(){return VQ(this)},f.e=!1,f.n=0,M(Vt,"EStructuralFeatureImpl",454),E(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},hY),f.Ih=function(t,n,i){var r,o;switch(t){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Bt(),(this.Bb&256)!=0;case 3:return Bt(),(this.Bb&512)!=0;case 4:return $e(this.s);case 5:return $e(this.t);case 6:return Bt(),!!Gve(this);case 7:return Bt(),o=this.s,o>=1;case 8:return n?Qa(this):this.r;case 9:return this.q;case 10:return Bt(),(this.Bb&Ga)!=0;case 11:return Bt(),(this.Bb&$1)!=0;case 12:return Bt(),(this.Bb&Cv)!=0;case 13:return this.j;case 14:return HS(this);case 15:return Bt(),(this.Bb&Il)!=0;case 16:return Bt(),(this.Bb&od)!=0;case 17:return Z2(this);case 18:return Bt(),(this.Bb&rc)!=0;case 19:return n?qte(this):uJe(this)}return ba(this,t-bn((At(),py)),Dt((r=c(Wt(this,16),29),r||py),t),n,i)},f.Th=function(t){var n,i;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 Gve(this);case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Fm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Fm(this.q).i==0);case 10:return(this.Bb&Ga)==0;case 11:return(this.Bb&$1)!=0;case 12:return(this.Bb&Cv)!=0;case 13:return this.j!=null;case 14:return HS(this)!=null;case 15:return(this.Bb&Il)!=0;case 16:return(this.Bb&od)!=0;case 17:return!!Z2(this);case 18:return(this.Bb&rc)!=0;case 19:return!!uJe(this)}return ga(this,t-bn((At(),py)),Dt((n=c(Wt(this,16),29),n||py),t))},f.$h=function(t,n){var i,r;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab),!this.Ab&&(this.Ab=new _e(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Qee(this,qn(n));return;case 2:Pg(this,Ze(Ye(n)));return;case 3:Ig(this,Ze(Ye(n)));return;case 4:Ng(this,c(n,15).a);return;case 5:mIe(this,c(n,15).a);return;case 8:fb(this,c(n,146));return;case 9:r=Sh(this,c(n,88),null),r&&r.mj();return;case 10:ES(this,Ze(Ye(n)));return;case 11:AS(this,Ze(Ye(n)));return;case 12:CS(this,Ze(Ye(n)));return;case 13:Age(this,qn(n));return;case 15:MS(this,Ze(Ye(n)));return;case 16:NS(this,Ze(Ye(n)));return;case 18:hne(this,Ze(Ye(n)));return}ka(this,t-bn((At(),py)),Dt((i=c(Wt(this,16),29),i||py),t),n)},f.fi=function(){return At(),py},f.hi=function(t){var n,i;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab);return;case 1:ae(this.Cb,89)&&vv(iu(c(this.Cb,89)),4),Jc(this,null);return;case 2:Pg(this,!0);return;case 3:Ig(this,!0);return;case 4:Ng(this,0);return;case 5:this.b=0,ov(this,1);return;case 8:fb(this,null);return;case 9:i=Sh(this,null,null),i&&i.mj();return;case 10:ES(this,!0);return;case 11:AS(this,!1);return;case 12:CS(this,!1);return;case 13:this.i=null,AH(this,null);return;case 15:MS(this,!1);return;case 16:NS(this,!1);return;case 18:hne(this,!1);return}xa(this,t-bn((At(),py)),Dt((n=c(Wt(this,16),29),n||py),t))},f.mi=function(){qte(this),tS(ao((Ll(),bs),this)),Qa(this),this.Bb|=1},f.Hk=function(){return Gve(this)},f.Wk=function(t,n){return this.b=0,this.a=null,Pwe(this,t,n)},f.Xk=function(t){mIe(this,t)},f.Ib=function(){var t;return(this.Db&64)!=0?VQ(this):(t=new Ba(VQ(this)),t.a+=" (iD: ",yg(t,(this.Bb&rc)!=0),t.a+=")",t.a)},f.b=0,M(Vt,"EAttributeImpl",336),E(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}),f.bl=function(t){return t.Ah()==this},f.xh=function(t){return Jne(this,t)},f.yh=function(t,n){this.w=null,this.Db=n<<16|this.Db&255,this.Cb=t},f.Ih=function(t,n,i){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return cw(this);case 4:return this.gk();case 5:return this.F;case 6:return n?Bu(this):rS(this);case 7:return!this.A&&(this.A=new Cl(ul,this,7)),this.A}return ba(this,t-bn(this.fi()),Dt((r=c(Wt(this,16),29),r||this.fi()),t),n,i)},f.Ph=function(t,n,i){var r,o,a;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),Vc(this.Ab,t,i);case 6:return this.Cb&&(i=(o=this.Db>>16,o>=0?Jne(this,i):this.Cb.Qh(this,-1-o,null,i))),Qu(this,t,6,i)}return a=c(Dt((r=c(Wt(this,16),29),r||this.fi()),n),69),a.uk().xk(this,il(this),n-bn(this.fi()),t,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),_s(this.Ab,t,i);case 6:return Qu(this,null,6,i);case 7:return!this.A&&(this.A=new Cl(ul,this,7)),_s(this.A,t,i)}return o=c(Dt((r=c(Wt(this,16),29),r||this.fi()),n),69),o.uk().yk(this,il(this),n-bn(this.fi()),t,i)},f.Th=function(t){var n;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!!cw(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!rS(this);case 7:return!!this.A&&this.A.i!=0}return ga(this,t-bn(this.fi()),Dt((n=c(Wt(this,16),29),n||this.fi()),t))},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab),!this.Ab&&(this.Ab=new _e(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Qq(this,qn(n));return;case 2:yZ(this,qn(n));return;case 5:KS(this,qn(n));return;case 7:!this.A&&(this.A=new Cl(ul,this,7)),An(this.A),!this.A&&(this.A=new Cl(ul,this,7)),dr(this.A,c(n,18));return}ka(this,t-bn(this.fi()),Dt((i=c(Wt(this,16),29),i||this.fi()),t),n)},f.fi=function(){return At(),Rvt},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab);return;case 1:ae(this.Cb,187)&&(c(this.Cb,187).tb=null),Jc(this,null);return;case 2:OS(this,null),hS(this,this.D);return;case 5:KS(this,null);return;case 7:!this.A&&(this.A=new Cl(ul,this,7)),An(this.A);return}xa(this,t-bn(this.fi()),Dt((n=c(Wt(this,16),29),n||this.fi()),t))},f.fk=function(){var t;return this.G==-1&&(this.G=(t=Bu(this),t?Rg(t.si(),this):-1)),this.G},f.gk=function(){return null},f.hk=function(){return Bu(this)},f.cl=function(){return this.v},f.ik=function(){return cw(this)},f.jk=function(){return this.D!=null?this.D:this.B},f.kk=function(){return this.F},f.dk=function(t){return Iie(this,t)},f.dl=function(t){this.v=t},f.el=function(t){XXe(this,t)},f.fl=function(t){this.C=t},f.ri=function(t){Qq(this,t)},f.Ib=function(){return nQ(this)},f.C=null,f.D=null,f.G=-1,M(Vt,"EClassifierImpl",361),E(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},b1),f.bl=function(t){return nEt(this,t.Ah())},f.Ih=function(t,n,i){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return cw(this);case 4:return null;case 5:return this.F;case 6:return n?Bu(this):rS(this);case 7:return!this.A&&(this.A=new Cl(ul,this,7)),this.A;case 8:return Bt(),(this.Bb&256)!=0;case 9:return Bt(),(this.Bb&512)!=0;case 10:return wo(this);case 11:return!this.q&&(this.q=new _e(tf,this,11,10)),this.q;case 12:return Ux(this);case 13:return oE(this);case 14:return oE(this),this.r;case 15:return Ux(this),this.k;case 16:return Lve(this);case 17:return zie(this);case 18:return sd(this);case 19:return zQ(this);case 20:return Ux(this),this.o;case 21:return!this.s&&(this.s=new _e(Ol,this,21,17)),this.s;case 22:return pc(this);case 23:return Tie(this)}return ba(this,t-bn((At(),dp)),Dt((r=c(Wt(this,16),29),r||dp),t),n,i)},f.Ph=function(t,n,i){var r,o,a;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),Vc(this.Ab,t,i);case 6:return this.Cb&&(i=(o=this.Db>>16,o>=0?Jne(this,i):this.Cb.Qh(this,-1-o,null,i))),Qu(this,t,6,i);case 11:return!this.q&&(this.q=new _e(tf,this,11,10)),Vc(this.q,t,i);case 21:return!this.s&&(this.s=new _e(Ol,this,21,17)),Vc(this.s,t,i)}return a=c(Dt((r=c(Wt(this,16),29),r||(At(),dp)),n),69),a.uk().xk(this,il(this),n-bn((At(),dp)),t,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),_s(this.Ab,t,i);case 6:return Qu(this,null,6,i);case 7:return!this.A&&(this.A=new Cl(ul,this,7)),_s(this.A,t,i);case 11:return!this.q&&(this.q=new _e(tf,this,11,10)),_s(this.q,t,i);case 21:return!this.s&&(this.s=new _e(Ol,this,21,17)),_s(this.s,t,i);case 22:return _s(pc(this),t,i)}return o=c(Dt((r=c(Wt(this,16),29),r||(At(),dp)),n),69),o.uk().yk(this,il(this),n-bn((At(),dp)),t,i)},f.Th=function(t){var n;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!!cw(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!rS(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&&pc(this.u.a).i!=0&&!(this.n&&Ine(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return Ux(this).i!=0;case 13:return oE(this).i!=0;case 14:return oE(this),this.r.i!=0;case 15:return Ux(this),this.k.i!=0;case 16:return Lve(this).i!=0;case 17:return zie(this).i!=0;case 18:return sd(this).i!=0;case 19:return zQ(this).i!=0;case 20:return Ux(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&Ine(this.n);case 23:return Tie(this).i!=0}return ga(this,t-bn((At(),dp)),Dt((n=c(Wt(this,16),29),n||dp),t))},f.Wh=function(t){var n;return n=this.i==null||this.q&&this.q.i!=0?null:hL(this,t),n||Oxe(this,t)},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab),!this.Ab&&(this.Ab=new _e(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Qq(this,qn(n));return;case 2:yZ(this,qn(n));return;case 5:KS(this,qn(n));return;case 7:!this.A&&(this.A=new Cl(ul,this,7)),An(this.A),!this.A&&(this.A=new Cl(ul,this,7)),dr(this.A,c(n,18));return;case 8:$we(this,Ze(Ye(n)));return;case 9:Bwe(this,Ze(Ye(n)));return;case 10:uE(wo(this)),dr(wo(this),c(n,18));return;case 11:!this.q&&(this.q=new _e(tf,this,11,10)),An(this.q),!this.q&&(this.q=new _e(tf,this,11,10)),dr(this.q,c(n,18));return;case 21:!this.s&&(this.s=new _e(Ol,this,21,17)),An(this.s),!this.s&&(this.s=new _e(Ol,this,21,17)),dr(this.s,c(n,18));return;case 22:An(pc(this)),dr(pc(this),c(n,18));return}ka(this,t-bn((At(),dp)),Dt((i=c(Wt(this,16),29),i||dp),t),n)},f.fi=function(){return At(),dp},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab);return;case 1:ae(this.Cb,187)&&(c(this.Cb,187).tb=null),Jc(this,null);return;case 2:OS(this,null),hS(this,this.D);return;case 5:KS(this,null);return;case 7:!this.A&&(this.A=new Cl(ul,this,7)),An(this.A);return;case 8:$we(this,!1);return;case 9:Bwe(this,!1);return;case 10:this.u&&uE(this.u);return;case 11:!this.q&&(this.q=new _e(tf,this,11,10)),An(this.q);return;case 21:!this.s&&(this.s=new _e(Ol,this,21,17)),An(this.s);return;case 22:this.n&&An(this.n);return}xa(this,t-bn((At(),dp)),Dt((n=c(Wt(this,16),29),n||dp),t))},f.mi=function(){var t,n;if(Ux(this),oE(this),Lve(this),zie(this),sd(this),zQ(this),Tie(this),p7(_Mt(iu(this))),this.s)for(t=0,n=this.s.i;t<n;++t)z_(ce(this.s,t));if(this.q)for(t=0,n=this.q.i;t<n;++t)z_(ce(this.q,t));Lg((Ll(),bs),this).ve(),this.Bb|=1},f.Ib=function(){return eve(this)},f.k=null,f.r=null;var oM,Jvt,Xae;M(Vt,"EClassImpl",89),E(2071,2070,Dat),f.Ci=function(t,n){return Rie(this,t,n)},f.Di=function(t){return Rie(this,this.i,t)},f.Ei=function(t,n){Wve(this,t,n)},f.Fi=function(t){vie(this,t)},f.Uk=function(t,n){return Vc(this,t,n)},f.Yi=function(t){return hme(this,t)},f.Vk=function(t,n){return _s(this,t,n)},f.Vi=function(t,n){return Wrt(this,t,n)},f.Gi=function(){return new x4(this)},f.Hi=function(){return new $_(this)},f.Ii=function(t){return CD(this,t)},M(Ji,"NotifyingInternalEListImpl",2071),E(630,2071,Eo),f.Gc=function(t){return mst(this,t)},f.Gj=function(t,n,i,r,o){return u7(this,t,n,i,r,o)},f.Hj=function(t){E6(this,t)},f.Dk=function(t){return this},f.Jk=function(){return Dt(this.e.Ah(),this.Jj())},f.Ij=function(){return this.Jk()},f.Jj=function(){return Ki(this.e.Ah(),this.Jk())},f.gl=function(){return c(this.Jk().Fk(),29).ik()},f.hl=function(){return Qs(c(this.Jk(),20)).n},f.hj=function(){return this.e},f.il=function(){return!0},f.jl=function(){return!1},f.kl=function(){return!1},f.ll=function(){return!1},f.bd=function(t){return Rg(this,t)},f.Lj=function(t,n){var i;return i=c(t,52),this.kl()?this.il()?i.Oh(this.e,this.hl(),this.gl(),n):i.Oh(this.e,Ki(i.Ah(),Qs(c(this.Jk(),20))),null,n):i.Oh(this.e,-1-this.Jj(),null,n)},f.Mj=function(t,n){var i;return i=c(t,52),this.kl()?this.il()?i.Qh(this.e,this.hl(),this.gl(),n):i.Qh(this.e,Ki(i.Ah(),Qs(c(this.Jk(),20))),null,n):i.Qh(this.e,-1-this.Jj(),null,n)},f.$k=function(){return!1},f.ml=function(){return!0},f.dk=function(t){return fUe(this.d,t)},f.Nj=function(){return bu(this.e)},f.Oj=function(){return this.i!=0},f.$i=function(t){return ED(this.d,t)},f.Ui=function(t,n){return this.ml()&&this.ll()?sk(this,t,c(n,57)):n},f.nl=function(t){return t.Sh()?L0(this.e,c(t,52)):t},f.Wb=function(t){FBe(this,t)},f.Nc=function(){return UJe(this)},f.Oc=function(t){var n;if(this.ll())for(n=this.i-1;n>=0;--n)ce(this,n);return l2e(this,t)},f.Ek=function(){An(this)},f.Xi=function(t,n){return OXe(this,t,n)},M(Ji,"EcoreEList",630),E(494,630,Eo,K_),f.Ji=function(){return!1},f.Jj=function(){return this.c},f.Kj=function(){return!1},f.ml=function(){return!0},f.Qi=function(){return!0},f.Ui=function(t,n){return n},f.Wi=function(){return!1},f.c=0,M(Ji,"EObjectEList",494),E(82,494,Eo,Nr),f.Kj=function(){return!0},f.kl=function(){return!1},f.$k=function(){return!0},M(Ji,"EObjectContainmentEList",82),E(547,82,Eo,HF),f.Li=function(){this.b=!0},f.Oj=function(){return this.b},f.Ek=function(){var t;An(this),bu(this.e)?(t=this.b,this.b=!1,yi(this.e,new bf(this.e,2,this.c,t,!1))):this.b=!1},f.b=!1,M(Ji,"EObjectContainmentEList/Unsettable",547),E(1142,547,Eo,Pqe),f.Ri=function(t,n){var i,r;return i=c(L7(this,t,n),88),bu(this.e)&&E6(this,new pD(this.a,7,(At(),$vt),$e(n),(r=i.c,ae(r,89)?c(r,29):rf),t)),i},f.Sj=function(t,n){return Szt(this,c(t,88),n)},f.Tj=function(t,n){return Ozt(this,c(t,88),n)},f.Uj=function(t,n,i){return EHt(this,c(t,88),c(n,88),i)},f.Gj=function(t,n,i,r,o){switch(t){case 3:return u7(this,t,n,i,r,this.i>1);case 5:return u7(this,t,n,i,r,this.i-c(i,16).gc()>0);default:return new C1(this.e,t,this.c,n,i,r,!0)}},f.Rj=function(){return!0},f.Oj=function(){return Ine(this)},f.Ek=function(){An(this)},M(Vt,"EClassImpl/1",1142),E(1156,1155,nke),f.bj=function(t){var n,i,r,o,a,d,b;if(i=t.ej(),i!=8){if(r=sFt(t),r==0)switch(i){case 1:case 9:{b=t.ij(),b!=null&&(n=iu(c(b,474)),!n.c&&(n.c=new Hf),pH(n.c,t.hj())),d=t.gj(),d!=null&&(o=c(d,474),(o.Bb&1)==0&&(n=iu(o),!n.c&&(n.c=new Hf),Ln(n.c,c(t.hj(),29))));break}case 3:{d=t.gj(),d!=null&&(o=c(d,474),(o.Bb&1)==0&&(n=iu(o),!n.c&&(n.c=new Hf),Ln(n.c,c(t.hj(),29))));break}case 5:{if(d=t.gj(),d!=null)for(a=c(d,18).Jc();a.Ob();)o=c(a.Pb(),474),(o.Bb&1)==0&&(n=iu(o),!n.c&&(n.c=new Hf),Ln(n.c,c(t.hj(),29)));break}case 4:{b=t.ij(),b!=null&&(o=c(b,474),(o.Bb&1)==0&&(n=iu(o),!n.c&&(n.c=new Hf),pH(n.c,t.hj())));break}case 6:{if(b=t.ij(),b!=null)for(a=c(b,18).Jc();a.Ob();)o=c(a.Pb(),474),(o.Bb&1)==0&&(n=iu(o),!n.c&&(n.c=new Hf),pH(n.c,t.hj()));break}}this.ol(r)}},f.ol=function(t){Qit(this,t)},f.b=63,M(Vt,"ESuperAdapter",1156),E(1157,1156,nke,PLe),f.ol=function(t){vv(this,t)},M(Vt,"EClassImpl/10",1157),E(1146,706,Eo),f.Ci=function(t,n){return sie(this,t,n)},f.Di=function(t){return mZe(this,t)},f.Ei=function(t,n){FD(this,t,n)},f.Fi=function(t){fD(this,t)},f.Yi=function(t){return hme(this,t)},f.Vi=function(t,n){return vte(this,t,n)},f.Uk=function(t,n){throw V(new zn)},f.Gi=function(){return new x4(this)},f.Hi=function(){return new $_(this)},f.Ii=function(t){return CD(this,t)},f.Vk=function(t,n){throw V(new zn)},f.Dk=function(t){return this},f.Oj=function(){return this.i!=0},f.Wb=function(t){throw V(new zn)},f.Ek=function(){throw V(new zn)},M(Ji,"EcoreEList/UnmodifiableEList",1146),E(334,1146,Eo,bx),f.Wi=function(){return!1},M(Ji,"EcoreEList/UnmodifiableEList/FastCompare",334),E(1149,334,Eo,qWe),f.bd=function(t){var n,i,r;if(ae(t,182)&&(n=c(t,182),i=n.Jj(),i!=-1)){for(r=this.i;i<r;++i)if(xe(this.g[i])===xe(t))return i}return-1},M(Vt,"EClassImpl/1EAllStructuralFeaturesList",1149),E(1143,495,dd,Fl),f.$i=function(t){return ke(Ys,Lat,88,t,0,1)},f.Wi=function(){return!1},M(Vt,"EClassImpl/1EGenericSuperTypeEList",1143),E(631,495,dd,hh),f.$i=function(t){return ke(Ol,r3,182,t,0,1)},f.Wi=function(){return!1},M(Vt,"EClassImpl/1EStructuralFeatureUniqueEList",631),E(750,495,dd,Lp),f.$i=function(t){return ke(gy,r3,20,t,0,1)},f.Wi=function(){return!1},M(Vt,"EClassImpl/1ReferenceList",750),E(1144,495,dd,ILe),f.Ki=function(t,n){wAt(this,c(n,38))},f.$i=function(t){return ke(dy,r3,38,t,0,1)},f.Wi=function(){return!1},M(Vt,"EClassImpl/2",1144),E(1145,495,dd,wB),f.$i=function(t){return ke(dy,r3,38,t,0,1)},f.Wi=function(){return!1},M(Vt,"EClassImpl/3",1145),E(1147,334,Eo,KFe),f.Ec=function(t){return GLt(this,c(t,38))},f.Fi=function(t){w8t(this,c(t,38))},M(Vt,"EClassImpl/4",1147),E(1148,334,Eo,YFe),f.Ec=function(t){return ULt(this,c(t,20))},f.Fi=function(t){v8t(this,c(t,20))},M(Vt,"EClassImpl/5",1148),E(1150,495,dd,vB),f.$i=function(t){return ke(tf,ske,62,t,0,1)},f.Wi=function(){return!1},M(Vt,"EClassImpl/6",1150),E(1151,495,dd,yB),f.$i=function(t){return ke(gy,r3,20,t,0,1)},f.Wi=function(){return!1},M(Vt,"EClassImpl/7",1151),E(2074,2073,{3:1,4:1,22:1,32:1,56:1,18:1,16:1,71:1,61:1,72:1}),f.Ci=function(t,n){return Kye(this,t,n)},f.Di=function(t){return Kye(this,this.Cj(),t)},f.Ei=function(t,n){vnt(this,t,n)},f.Fi=function(t){lnt(this,t)},f.Uk=function(t,n){return KFt(this,t,n)},f.Vk=function(t,n){return TFt(this,t,n)},f.Vi=function(t,n){return _rt(this,t,n)},f.Yi=function(t){return this.vj(t)},f.Gi=function(){return new x4(this)},f.nj=function(){return this.qj()},f.Hi=function(){return new $_(this)},f.Ii=function(t){return CD(this,t)},M(Ji,"DelegatingNotifyingInternalEListImpl",2074),E(751,2074,oke),f.Ji=function(){var t;return t=Dt(hl(this.b),this.Jj()).Fk(),ae(t,160)&&!ae(t,462)&&(t.ik().i&1)==0},f.Gc=function(t){var n,i,r,o,a,d,b,v;if(this.ml()){if(v=this.Cj(),v>4)if(this.dk(t)){if(this.$k()){if(r=c(t,52),i=r.Bh(),b=i==this.b&&(this.kl()?r.vh(r.Ch(),c(Dt(hl(this.b),this.Jj()).Fk(),29).ik())==Qs(c(Dt(hl(this.b),this.Jj()),20)).n:-1-r.Ch()==this.Jj()),this.ll()&&!b&&!i&&r.Gh()){for(o=0;o<v;++o)if(n=aee(this,this.vj(o)),xe(n)===xe(t))return!0}return b}else if(this.kl()&&!this.jl()){if(a=c(t,57).Jh(Qs(c(Dt(hl(this.b),this.Jj()),20))),xe(a)===xe(this.b))return!0;if(a==null||!c(a,57).Sh())return!1}}else return!1;if(d=this.sj(t),this.ll()&&!d){for(o=0;o<v;++o)if(r=aee(this,this.vj(o)),xe(r)===xe(t))return!0}return d}else return this.sj(t)},f.Gj=function(t,n,i,r,o){return new C1(this.b,t,this.Jj(),n,i,r,o)},f.Hj=function(t){yi(this.b,t)},f.Dk=function(t){return this},f.Ij=function(){return Dt(hl(this.b),this.Jj())},f.Jj=function(){return Ki(hl(this.b),Dt(hl(this.b),this.Jj()))},f.hj=function(){return this.b},f.il=function(){return!!Dt(hl(this.b),this.Jj()).Fk().ik()},f.Kj=function(){var t,n;return n=Dt(hl(this.b),this.Jj()),ae(n,104)?(t=c(n,20),(t.Bb&rc)!=0||!!Qs(c(n,20))):!1},f.jl=function(){var t,n,i,r;return n=Dt(hl(this.b),this.Jj()),ae(n,104)?(t=c(n,20),i=Qs(t),!!i&&(r=i.t,r>1||r==-1)):!1},f.kl=function(){var t,n,i;return n=Dt(hl(this.b),this.Jj()),ae(n,104)?(t=c(n,20),i=Qs(t),!!i):!1},f.ll=function(){var t,n;return n=Dt(hl(this.b),this.Jj()),ae(n,104)?(t=c(n,20),(t.Bb&Rs)!=0):!1},f.bd=function(t){var n,i,r,o;if(r=this.xj(t),r>=0)return r;if(this.ml()){for(i=0,o=this.Cj();i<o;++i)if(n=aee(this,this.vj(i)),xe(n)===xe(t))return i}return-1},f.Lj=function(t,n){var i;return i=c(t,52),this.kl()?this.il()?i.Oh(this.b,Qs(c(Dt(hl(this.b),this.Jj()),20)).n,c(Dt(hl(this.b),this.Jj()).Fk(),29).ik(),n):i.Oh(this.b,Ki(i.Ah(),Qs(c(Dt(hl(this.b),this.Jj()),20))),null,n):i.Oh(this.b,-1-this.Jj(),null,n)},f.Mj=function(t,n){var i;return i=c(t,52),this.kl()?this.il()?i.Qh(this.b,Qs(c(Dt(hl(this.b),this.Jj()),20)).n,c(Dt(hl(this.b),this.Jj()).Fk(),29).ik(),n):i.Qh(this.b,Ki(i.Ah(),Qs(c(Dt(hl(this.b),this.Jj()),20))),null,n):i.Qh(this.b,-1-this.Jj(),null,n)},f.$k=function(){var t,n;return n=Dt(hl(this.b),this.Jj()),ae(n,104)?(t=c(n,20),(t.Bb&rc)!=0):!1},f.ml=function(){return ae(Dt(hl(this.b),this.Jj()).Fk(),89)},f.dk=function(t){return Dt(hl(this.b),this.Jj()).Fk().dk(t)},f.Nj=function(){return bu(this.b)},f.Oj=function(){return!this.yj()},f.Qi=function(){return Dt(hl(this.b),this.Jj()).Qi()},f.Ui=function(t,n){return vL(this,t,n)},f.Wb=function(t){uE(this),dr(this,c(t,16))},f.Nc=function(){var t;if(this.ll())for(t=this.Cj()-1;t>=0;--t)vL(this,t,this.vj(t));return this.Dj()},f.Oc=function(t){var n;if(this.ll())for(n=this.Cj()-1;n>=0;--n)vL(this,n,this.vj(n));return this.Ej(t)},f.Ek=function(){uE(this)},f.Xi=function(t,n){return GJe(this,t,n)},M(Ji,"DelegatingEcoreEList",751),E(1152,751,oke,Xze),f.oj=function(t,n){j7t(this,t,c(n,29))},f.pj=function(t){mTt(this,c(t,29))},f.vj=function(t){var n,i;return n=c(ce(pc(this.a),t),88),i=n.c,ae(i,89)?c(i,29):(At(),rf)},f.Aj=function(t){var n,i;return n=c(kv(pc(this.a),t),88),i=n.c,ae(i,89)?c(i,29):(At(),rf)},f.Bj=function(t,n){return YFt(this,t,c(n,29))},f.Ji=function(){return!1},f.Gj=function(t,n,i,r,o){return null},f.qj=function(){return new RLe(this)},f.rj=function(){An(pc(this.a))},f.sj=function(t){return qKe(this,t)},f.tj=function(t){var n,i;for(i=t.Jc();i.Ob();)if(n=i.Pb(),!qKe(this,n))return!1;return!0},f.uj=function(t){var n,i,r;if(ae(t,16)&&(r=c(t,16),r.gc()==pc(this.a).i)){for(n=r.Jc(),i=new on(this);n.Ob();)if(xe(n.Pb())!==xe(un(i)))return!1;return!0}return!1},f.wj=function(){var t,n,i,r,o;for(i=1,n=new on(pc(this.a));n.e!=n.i.gc();)t=c(un(n),88),r=(o=t.c,ae(o,89)?c(o,29):(At(),rf)),i=31*i+(r?Rm(r):0);return i},f.xj=function(t){var n,i,r,o;for(r=0,i=new on(pc(this.a));i.e!=i.i.gc();){if(n=c(un(i),88),xe(t)===xe((o=n.c,ae(o,89)?c(o,29):(At(),rf))))return r;++r}return-1},f.yj=function(){return pc(this.a).i==0},f.zj=function(){return null},f.Cj=function(){return pc(this.a).i},f.Dj=function(){var t,n,i,r,o,a;for(a=pc(this.a).i,o=ke(Br,Pt,1,a,5,1),i=0,n=new on(pc(this.a));n.e!=n.i.gc();)t=c(un(n),88),o[i++]=(r=t.c,ae(r,89)?c(r,29):(At(),rf));return o},f.Ej=function(t){var n,i,r,o,a,d,b;for(b=pc(this.a).i,t.length<b&&(o=ED(Ou(t).c,b),t=o),t.length>b&&mr(t,b,null),r=0,i=new on(pc(this.a));i.e!=i.i.gc();)n=c(un(i),88),a=(d=n.c,ae(d,89)?c(d,29):(At(),rf)),mr(t,r++,a);return t},f.Fj=function(){var t,n,i,r,o;for(o=new vg,o.a+="[",t=pc(this.a),n=0,r=pc(this.a).i;n<r;)Zs(o,GT((i=c(ce(t,n),88).c,ae(i,89)?c(i,29):(At(),rf)))),++n<r&&(o.a+=Xc);return o.a+="]",o.a},f.Hj=function(t){},f.Jj=function(){return 10},f.il=function(){return!0},f.Kj=function(){return!1},f.jl=function(){return!1},f.kl=function(){return!1},f.ll=function(){return!0},f.$k=function(){return!1},f.ml=function(){return!0},f.dk=function(t){return ae(t,89)},f.Oj=function(){return $Dt(this.a)},f.Qi=function(){return!0},f.Wi=function(){return!0},M(Vt,"EClassImpl/8",1152),E(1153,2041,ij,RLe),f.dd=function(t){return CD(this.a,t)},f.gc=function(){return pc(this.a.a).i},M(Vt,"EClassImpl/8/1",1153),E(1154,495,dd,dK),f.$i=function(t){return ke(lh,Pt,146,t,0,1)},f.Wi=function(){return!1},M(Vt,"EClassImpl/9",1154),E(1141,47,zxe,EPe),M(Vt,"EClassImpl/MyHashSet",1141),E(570,361,{110:1,95:1,94:1,146:1,160:1,839:1,159:1,199:1,57:1,115:1,52:1,101:1,361:1,162:1,118:1,119:1,688:1},Rz),f.Ih=function(t,n,i){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return cw(this);case 4:return this.gk();case 5:return this.F;case 6:return n?Bu(this):rS(this);case 7:return!this.A&&(this.A=new Cl(ul,this,7)),this.A;case 8:return Bt(),(this.Bb&256)!=0}return ba(this,t-bn(this.fi()),Dt((r=c(Wt(this,16),29),r||this.fi()),t),n,i)},f.Th=function(t){var n;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!!cw(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!rS(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0}return ga(this,t-bn(this.fi()),Dt((n=c(Wt(this,16),29),n||this.fi()),t))},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab),!this.Ab&&(this.Ab=new _e(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Qq(this,qn(n));return;case 2:yZ(this,qn(n));return;case 5:KS(this,qn(n));return;case 7:!this.A&&(this.A=new Cl(ul,this,7)),An(this.A),!this.A&&(this.A=new Cl(ul,this,7)),dr(this.A,c(n,18));return;case 8:XH(this,Ze(Ye(n)));return}ka(this,t-bn(this.fi()),Dt((i=c(Wt(this,16),29),i||this.fi()),t),n)},f.fi=function(){return At(),Bvt},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab);return;case 1:ae(this.Cb,187)&&(c(this.Cb,187).tb=null),Jc(this,null);return;case 2:OS(this,null),hS(this,this.D);return;case 5:KS(this,null);return;case 7:!this.A&&(this.A=new Cl(ul,this,7)),An(this.A);return;case 8:XH(this,!0);return}xa(this,t-bn(this.fi()),Dt((n=c(Wt(this,16),29),n||this.fi()),t))},f.mi=function(){Lg((Ll(),bs),this).ve(),this.Bb|=1},f.mk=function(){var t,n,i;if(!this.c&&(t=Dnt(Bu(this)),!t.dc()))for(i=t.Jc();i.Ob();)n=qn(i.Pb()),iE(this,n)&&NBt(this);return this.b},f.gk=function(){var t;if(!this.e){t=null;try{t=cw(this)}catch(n){if(n=kr(n),!ae(n,102))throw V(n)}this.d=null,t&&(t.i&1)!=0&&(t==Sl?this.d=(Bt(),X0):t==Hn?this.d=$e(0):t==wy?this.d=new qs(0):t==is?this.d=0:t==Gw?this.d=gv(0):t==B3?this.d=TS(0):t==$l?this.d=kD(0):this.d=_D(0)),this.e=!0}return this.d},f.lk=function(){return(this.Bb&256)!=0},f.pl=function(t){t&&(this.D="org.eclipse.emf.common.util.AbstractEnumerator")},f.el=function(t){XXe(this,t),this.pl(t)},f.fl=function(t){this.C=t,this.e=!1},f.Ib=function(){var t;return(this.Db&64)!=0?nQ(this):(t=new Ba(nQ(this)),t.a+=" (serializable: ",yg(t,(this.Bb&256)!=0),t.a+=")",t.a)},f.c=!1,f.d=null,f.e=!1,M(Vt,"EDataTypeImpl",570),E(462,570,{110:1,95:1,94:1,146:1,160:1,839:1,682:1,159:1,199:1,57:1,115:1,52:1,101:1,361:1,462:1,162:1,118:1,119:1,688:1},CPe),f.Ih=function(t,n,i){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return cw(this);case 4:return jwe(this);case 5:return this.F;case 6:return n?Bu(this):rS(this);case 7:return!this.A&&(this.A=new Cl(ul,this,7)),this.A;case 8:return Bt(),(this.Bb&256)!=0;case 9:return!this.a&&(this.a=new _e(K1,this,9,5)),this.a}return ba(this,t-bn((At(),gp)),Dt((r=c(Wt(this,16),29),r||gp),t),n,i)},f.Ph=function(t,n,i){var r,o,a;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),Vc(this.Ab,t,i);case 6:return this.Cb&&(i=(o=this.Db>>16,o>=0?Jne(this,i):this.Cb.Qh(this,-1-o,null,i))),Qu(this,t,6,i);case 9:return!this.a&&(this.a=new _e(K1,this,9,5)),Vc(this.a,t,i)}return a=c(Dt((r=c(Wt(this,16),29),r||(At(),gp)),n),69),a.uk().xk(this,il(this),n-bn((At(),gp)),t,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),_s(this.Ab,t,i);case 6:return Qu(this,null,6,i);case 7:return!this.A&&(this.A=new Cl(ul,this,7)),_s(this.A,t,i);case 9:return!this.a&&(this.a=new _e(K1,this,9,5)),_s(this.a,t,i)}return o=c(Dt((r=c(Wt(this,16),29),r||(At(),gp)),n),69),o.uk().yk(this,il(this),n-bn((At(),gp)),t,i)},f.Th=function(t){var n;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!!cw(this);case 4:return!!jwe(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!rS(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 ga(this,t-bn((At(),gp)),Dt((n=c(Wt(this,16),29),n||gp),t))},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab),!this.Ab&&(this.Ab=new _e(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Qq(this,qn(n));return;case 2:yZ(this,qn(n));return;case 5:KS(this,qn(n));return;case 7:!this.A&&(this.A=new Cl(ul,this,7)),An(this.A),!this.A&&(this.A=new Cl(ul,this,7)),dr(this.A,c(n,18));return;case 8:XH(this,Ze(Ye(n)));return;case 9:!this.a&&(this.a=new _e(K1,this,9,5)),An(this.a),!this.a&&(this.a=new _e(K1,this,9,5)),dr(this.a,c(n,18));return}ka(this,t-bn((At(),gp)),Dt((i=c(Wt(this,16),29),i||gp),t),n)},f.fi=function(){return At(),gp},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab);return;case 1:ae(this.Cb,187)&&(c(this.Cb,187).tb=null),Jc(this,null);return;case 2:OS(this,null),hS(this,this.D);return;case 5:KS(this,null);return;case 7:!this.A&&(this.A=new Cl(ul,this,7)),An(this.A);return;case 8:XH(this,!0);return;case 9:!this.a&&(this.a=new _e(K1,this,9,5)),An(this.a);return}xa(this,t-bn((At(),gp)),Dt((n=c(Wt(this,16),29),n||gp),t))},f.mi=function(){var t,n;if(this.a)for(t=0,n=this.a.i;t<n;++t)z_(ce(this.a,t));Lg((Ll(),bs),this).ve(),this.Bb|=1},f.gk=function(){return jwe(this)},f.dk=function(t){return t!=null},f.pl=function(t){},M(Vt,"EEnumImpl",462),E(575,444,{110:1,95:1,94:1,2018:1,691:1,159:1,199:1,57:1,115:1,52:1,101:1,575:1,162:1,118:1,119:1},GLe),f.ve=function(){return this.zb},f.xh=function(t){return QZe(this,t)},f.Ih=function(t,n,i){var r,o;switch(t){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return $e(this.d);case 3:return this.b?this.b:this.a;case 4:return o=this.c,o??this.zb;case 5:return this.Db>>16==5?c(this.Cb,682):null}return ba(this,t-bn((At(),t0)),Dt((r=c(Wt(this,16),29),r||t0),t),n,i)},f.Ph=function(t,n,i){var r,o,a;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),Vc(this.Ab,t,i);case 5:return this.Cb&&(i=(o=this.Db>>16,o>=0?QZe(this,i):this.Cb.Qh(this,-1-o,null,i))),Qu(this,t,5,i)}return a=c(Dt((r=c(Wt(this,16),29),r||(At(),t0)),n),69),a.uk().xk(this,il(this),n-bn((At(),t0)),t,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),_s(this.Ab,t,i);case 5:return Qu(this,null,5,i)}return o=c(Dt((r=c(Wt(this,16),29),r||(At(),t0)),n),69),o.uk().yk(this,il(this),n-bn((At(),t0)),t,i)},f.Th=function(t){var n;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&&c(this.Cb,682))}return ga(this,t-bn((At(),t0)),Dt((n=c(Wt(this,16),29),n||t0),t))},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab),!this.Ab&&(this.Ab=new _e(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Jc(this,qn(n));return;case 2:Tte(this,c(n,15).a);return;case 3:Ztt(this,c(n,2018));return;case 4:Cte(this,qn(n));return}ka(this,t-bn((At(),t0)),Dt((i=c(Wt(this,16),29),i||t0),t),n)},f.fi=function(){return At(),t0},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab);return;case 1:Jc(this,null);return;case 2:Tte(this,0);return;case 3:Ztt(this,null);return;case 4:Cte(this,null);return}xa(this,t-bn((At(),t0)),Dt((n=c(Wt(this,16),29),n||t0),t))},f.Ib=function(){var t;return t=this.c,t??this.zb},f.b=null,f.c=null,f.d=0,M(Vt,"EEnumLiteralImpl",575);var vin=Zi(Vt,"EFactoryImpl/InternalEDateTimeFormat");E(488,1,{2093:1},l_),M(Vt,"EFactoryImpl/1ClientInternalEDateTimeFormat",488),E(251,119,{110:1,95:1,94:1,88:1,57:1,115:1,52:1,101:1,251:1,118:1,119:1},Tm),f.zh=function(t,n,i){var r;return i=Qu(this,t,n,i),this.e&&ae(t,182)&&(r=BQ(this,this.e),r!=this.c&&(i=YS(this,r,i))),i},f.Ih=function(t,n,i){var r;switch(t){case 0:return this.f;case 1:return!this.d&&(this.d=new Nr(Ys,this,1)),this.d;case 2:return n?WQ(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return n?Bne(this):this.a}return ba(this,t-bn((At(),qw)),Dt((r=c(Wt(this,16),29),r||qw),t),n,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return MKe(this,null,i);case 1:return!this.d&&(this.d=new Nr(Ys,this,1)),_s(this.d,t,i);case 3:return CKe(this,null,i)}return o=c(Dt((r=c(Wt(this,16),29),r||(At(),qw)),n),69),o.uk().yk(this,il(this),n-bn((At(),qw)),t,i)},f.Th=function(t){var n;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 ga(this,t-bn((At(),qw)),Dt((n=c(Wt(this,16),29),n||qw),t))},f.$h=function(t,n){var i;switch(t){case 0:aet(this,c(n,88));return;case 1:!this.d&&(this.d=new Nr(Ys,this,1)),An(this.d),!this.d&&(this.d=new Nr(Ys,this,1)),dr(this.d,c(n,18));return;case 3:tve(this,c(n,88));return;case 4:yve(this,c(n,842));return;case 5:fS(this,c(n,146));return}ka(this,t-bn((At(),qw)),Dt((i=c(Wt(this,16),29),i||qw),t),n)},f.fi=function(){return At(),qw},f.hi=function(t){var n;switch(t){case 0:aet(this,null);return;case 1:!this.d&&(this.d=new Nr(Ys,this,1)),An(this.d);return;case 3:tve(this,null);return;case 4:yve(this,null);return;case 5:fS(this,null);return}xa(this,t-bn((At(),qw)),Dt((n=c(Wt(this,16),29),n||qw),t))},f.Ib=function(){var t;return t=new Lu(kf(this)),t.a+=" (expression: ",Gie(this,t),t.a+=")",t.a};var oEe;M(Vt,"EGenericTypeImpl",251),E(2046,2041,nU),f.Ei=function(t,n){Jze(this,t,n)},f.Uk=function(t,n){return Jze(this,this.gc(),t),n},f.Yi=function(t){return bc(this.nj(),t)},f.Gi=function(){return this.Hi()},f.nj=function(){return new qLe(this)},f.Hi=function(){return this.Ii(0)},f.Ii=function(t){return this.nj().dd(t)},f.Vk=function(t,n){return hv(this,t,!0),n},f.Ri=function(t,n){var i,r;return r=Wne(this,n),i=this.dd(t),i.Rb(r),r},f.Si=function(t,n){var i;hv(this,n,!0),i=this.dd(t),i.Rb(n)},M(Ji,"AbstractSequentialInternalEList",2046),E(485,2046,nU,B_),f.Yi=function(t){return bc(this.nj(),t)},f.Gi=function(){return this.b==null?(Og(),Og(),wI):this.ql()},f.nj=function(){return new dBe(this.a,this.b)},f.Hi=function(){return this.b==null?(Og(),Og(),wI):this.ql()},f.Ii=function(t){var n,i;if(this.b==null){if(t<0||t>1)throw V(new qc(DE+t+", size=0"));return Og(),Og(),wI}for(i=this.ql(),n=0;n<t;++n)$H(i);return i},f.dc=function(){var t,n,i,r,o,a;if(this.b!=null){for(i=0;i<this.b.length;++i)if(t=this.b[i],!this.tl()||this.a.Uh(t)){if(a=this.a.Kh(t,!1),Hs(),c(t,69).vk()){for(n=c(a,164),r=0,o=n.gc();r<o;++r)if(yHe(n.Rl(r))&&n.Sl(r)!=null)return!1}else if(t.Hk()){if(!c(a,18).dc())return!1}else if(a!=null)return!1}}return!0},f.Jc=function(){return Fme(this)},f.dd=function(t){var n,i;if(this.b==null){if(t!=0)throw V(new qc(DE+t+", size=0"));return Og(),Og(),wI}for(i=this.sl()?this.rl():this.ql(),n=0;n<t;++n)$H(i);return i},f.Ri=function(t,n){throw V(new zn)},f.Si=function(t,n){throw V(new zn)},f.ql=function(){return new VF(this.a,this.b)},f.rl=function(){return new d0e(this.a,this.b)},f.sl=function(){return!0},f.gc=function(){var t,n,i,r,o,a,d;if(o=0,this.b!=null){for(i=0;i<this.b.length;++i)if(t=this.b[i],!this.tl()||this.a.Uh(t))if(d=this.a.Kh(t,!1),Hs(),c(t,69).vk())for(n=c(d,164),r=0,a=n.gc();r<a;++r)yHe(n.Rl(r))&&n.Sl(r)!=null&&++o;else t.Hk()?o+=c(d,18).gc():d!=null&&++o}return o},f.tl=function(){return!0};var Wae;M(Ji,"EContentsEList",485),E(1158,485,nU,_ze),f.ql=function(){return new Dze(this.a,this.b)},f.rl=function(){return new Lze(this.a,this.b)},f.tl=function(){return!1},M(Vt,"ENamedElementImpl/1",1158),E(289,1,iU,VF),f.Nb=function(t){ps(this,t)},f.Rb=function(t){throw V(new zn)},f.ul=function(t){if(this.g!=0||this.e)throw V(new co("Iterator already in use or already filtered"));this.e=t},f.Ob=function(){var t,n,i,r,o,a;switch(this.g){case 3:case 2:return!0;case 1:return!1;case-3:this.p?this.p.Pb():++this.n;default:if(!this.k||(this.p?!ftt(this,this.p):!tnt(this))){for(;this.d<this.c.length;)if(n=this.c[this.d++],(!this.e||n.nk()!=m9||n.Jj()!=0)&&(!this.tl()||this.b.Uh(n))){if(a=this.b.Kh(n,this.sl()),this.f=(Hs(),c(n,69).vk()),this.f||n.Hk()){if(this.sl()?(r=c(a,16),this.k=r):(r=c(a,72),this.k=this.j=r),ae(this.k,59)?(this.p=null,this.o=this.k.gc(),this.n=0):this.p=this.j?this.j.Hi():this.k.cd(),this.p?ftt(this,this.p):tnt(this))return o=this.p?this.p.Pb():this.j?this.j.Yi(this.n++):this.k.Xb(this.n++),this.f?(t=c(o,76),t.Jk(),i=t.kd(),this.i=i):(i=o,this.i=i),this.g=3,!0}else if(a!=null)return this.k=null,this.p=null,i=a,this.i=i,this.g=2,!0}return this.k=null,this.p=null,this.f=!1,this.g=1,!1}else return o=this.p?this.p.Pb():this.j?this.j.Yi(this.n++):this.k.Xb(this.n++),this.f?(t=c(o,76),t.Jk(),i=t.kd(),this.i=i):(i=o,this.i=i),this.g=3,!0}},f.Sb=function(){var t,n,i,r,o,a;switch(this.g){case-3:case-2:return!0;case-1:return!1;case 3:this.p?this.p.Ub():--this.n;default:if(!this.k||(this.p?!htt(this,this.p):!ktt(this))){for(;this.d>0;)if(n=this.c[--this.d],(!this.e||n.nk()!=m9||n.Jj()!=0)&&(!this.tl()||this.b.Uh(n))){if(a=this.b.Kh(n,this.sl()),this.f=(Hs(),c(n,69).vk()),this.f||n.Hk()){if(this.sl()?(r=c(a,16),this.k=r):(r=c(a,72),this.k=this.j=r),ae(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ii(this.k.gc()):this.k.dd(this.k.gc()),this.p?htt(this,this.p):ktt(this))return o=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(t=c(o,76),t.Jk(),i=t.kd(),this.i=i):(i=o,this.i=i),this.g=-3,!0}else if(a!=null)return this.k=null,this.p=null,i=a,this.i=i,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return o=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(t=c(o,76),t.Jk(),i=t.kd(),this.i=i):(i=o,this.i=i),this.g=-3,!0}},f.Pb=function(){return $H(this)},f.Tb=function(){return this.a},f.Ub=function(){var t;if(this.g<-1||this.Sb())return--this.a,this.g=0,t=this.i,this.Sb(),t;throw V(new Mo)},f.Vb=function(){return this.a-1},f.Qb=function(){throw V(new zn)},f.sl=function(){return!1},f.Wb=function(t){throw V(new zn)},f.tl=function(){return!0},f.a=0,f.d=0,f.f=!1,f.g=0,f.n=0,f.o=0;var wI;M(Ji,"EContentsEList/FeatureIteratorImpl",289),E(707,289,iU,d0e),f.sl=function(){return!0},M(Ji,"EContentsEList/ResolvingFeatureIteratorImpl",707),E(1159,707,iU,Lze),f.tl=function(){return!1},M(Vt,"ENamedElementImpl/1/1",1159),E(1160,289,iU,Dze),f.tl=function(){return!1},M(Vt,"ENamedElementImpl/1/2",1160),E(40,152,ZL,iv,Yee,Jr,hte,C1,bf,Sme,yGe,jme,xGe,Hbe,kGe,Cme,OGe,Qbe,SGe,Tme,jGe,e7,pD,_ee,Eme,TGe,Gbe,EGe),f.Ij=function(){return ome(this)},f.Pj=function(){var t;return t=ome(this),t?t.gk():null},f.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)},f.hj=function(){return this.c},f.Qj=function(){var t;return t=ome(this),t?t.rk():!1},f.b=-1,M(Vt,"ENotificationImpl",40),E(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},dY),f.xh=function(t){return UZe(this,t)},f.Ih=function(t,n,i){var r,o,a;switch(t){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Bt(),(this.Bb&256)!=0;case 3:return Bt(),(this.Bb&512)!=0;case 4:return $e(this.s);case 5:return $e(this.t);case 6:return Bt(),a=this.t,a>1||a==-1;case 7:return Bt(),o=this.s,o>=1;case 8:return n?Qa(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?c(this.Cb,29):null;case 11:return!this.d&&(this.d=new Cl(ul,this,11)),this.d;case 12:return!this.c&&(this.c=new _e(Fw,this,12,10)),this.c;case 13:return!this.a&&(this.a=new H_(this,this)),this.a;case 14:return su(this)}return ba(this,t-bn((At(),n0)),Dt((r=c(Wt(this,16),29),r||n0),t),n,i)},f.Ph=function(t,n,i){var r,o,a;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),Vc(this.Ab,t,i);case 10:return this.Cb&&(i=(o=this.Db>>16,o>=0?UZe(this,i):this.Cb.Qh(this,-1-o,null,i))),Qu(this,t,10,i);case 12:return!this.c&&(this.c=new _e(Fw,this,12,10)),Vc(this.c,t,i)}return a=c(Dt((r=c(Wt(this,16),29),r||(At(),n0)),n),69),a.uk().xk(this,il(this),n-bn((At(),n0)),t,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),_s(this.Ab,t,i);case 9:return wee(this,i);case 10:return Qu(this,null,10,i);case 11:return!this.d&&(this.d=new Cl(ul,this,11)),_s(this.d,t,i);case 12:return!this.c&&(this.c=new _e(Fw,this,12,10)),_s(this.c,t,i);case 14:return _s(su(this),t,i)}return o=c(Dt((r=c(Wt(this,16),29),r||(At(),n0)),n),69),o.uk().yk(this,il(this),n-bn((At(),n0)),t,i)},f.Th=function(t){var n,i,r;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 r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Fm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Fm(this.q).i==0);case 10:return!!(this.Db>>16==10&&c(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&&su(this.a.a).i!=0&&!(this.b&&Rne(this.b));case 14:return!!this.b&&Rne(this.b)}return ga(this,t-bn((At(),n0)),Dt((n=c(Wt(this,16),29),n||n0),t))},f.$h=function(t,n){var i,r;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab),!this.Ab&&(this.Ab=new _e(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Jc(this,qn(n));return;case 2:Pg(this,Ze(Ye(n)));return;case 3:Ig(this,Ze(Ye(n)));return;case 4:Ng(this,c(n,15).a);return;case 5:ov(this,c(n,15).a);return;case 8:fb(this,c(n,146));return;case 9:r=Sh(this,c(n,88),null),r&&r.mj();return;case 11:!this.d&&(this.d=new Cl(ul,this,11)),An(this.d),!this.d&&(this.d=new Cl(ul,this,11)),dr(this.d,c(n,18));return;case 12:!this.c&&(this.c=new _e(Fw,this,12,10)),An(this.c),!this.c&&(this.c=new _e(Fw,this,12,10)),dr(this.c,c(n,18));return;case 13:!this.a&&(this.a=new H_(this,this)),uE(this.a),!this.a&&(this.a=new H_(this,this)),dr(this.a,c(n,18));return;case 14:An(su(this)),dr(su(this),c(n,18));return}ka(this,t-bn((At(),n0)),Dt((i=c(Wt(this,16),29),i||n0),t),n)},f.fi=function(){return At(),n0},f.hi=function(t){var n,i;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab);return;case 1:Jc(this,null);return;case 2:Pg(this,!0);return;case 3:Ig(this,!0);return;case 4:Ng(this,0);return;case 5:ov(this,1);return;case 8:fb(this,null);return;case 9:i=Sh(this,null,null),i&&i.mj();return;case 11:!this.d&&(this.d=new Cl(ul,this,11)),An(this.d);return;case 12:!this.c&&(this.c=new _e(Fw,this,12,10)),An(this.c);return;case 13:this.a&&uE(this.a);return;case 14:this.b&&An(this.b);return}xa(this,t-bn((At(),n0)),Dt((n=c(Wt(this,16),29),n||n0),t))},f.mi=function(){var t,n;if(this.c)for(t=0,n=this.c.i;t<n;++t)z_(ce(this.c,t));Qa(this),this.Bb|=1},M(Vt,"EOperationImpl",408),E(503,751,oke,H_),f.oj=function(t,n){A7t(this,t,c(n,146))},f.pj=function(t){wTt(this,c(t,146))},f.vj=function(t){var n,i;return n=c(ce(su(this.a),t),88),i=n.c,i||(At(),Fh)},f.Aj=function(t){var n,i;return n=c(kv(su(this.a),t),88),i=n.c,i||(At(),Fh)},f.Bj=function(t,n){return Jzt(this,t,c(n,146))},f.Ji=function(){return!1},f.Gj=function(t,n,i,r,o){return null},f.qj=function(){return new $Le(this)},f.rj=function(){An(su(this.a))},f.sj=function(t){return GKe(this,t)},f.tj=function(t){var n,i;for(i=t.Jc();i.Ob();)if(n=i.Pb(),!GKe(this,n))return!1;return!0},f.uj=function(t){var n,i,r;if(ae(t,16)&&(r=c(t,16),r.gc()==su(this.a).i)){for(n=r.Jc(),i=new on(this);n.Ob();)if(xe(n.Pb())!==xe(un(i)))return!1;return!0}return!1},f.wj=function(){var t,n,i,r,o;for(i=1,n=new on(su(this.a));n.e!=n.i.gc();)t=c(un(n),88),r=(o=t.c,o||(At(),Fh)),i=31*i+(r?zi(r):0);return i},f.xj=function(t){var n,i,r,o;for(r=0,i=new on(su(this.a));i.e!=i.i.gc();){if(n=c(un(i),88),xe(t)===xe((o=n.c,o||(At(),Fh))))return r;++r}return-1},f.yj=function(){return su(this.a).i==0},f.zj=function(){return null},f.Cj=function(){return su(this.a).i},f.Dj=function(){var t,n,i,r,o,a;for(a=su(this.a).i,o=ke(Br,Pt,1,a,5,1),i=0,n=new on(su(this.a));n.e!=n.i.gc();)t=c(un(n),88),o[i++]=(r=t.c,r||(At(),Fh));return o},f.Ej=function(t){var n,i,r,o,a,d,b;for(b=su(this.a).i,t.length<b&&(o=ED(Ou(t).c,b),t=o),t.length>b&&mr(t,b,null),r=0,i=new on(su(this.a));i.e!=i.i.gc();)n=c(un(i),88),a=(d=n.c,d||(At(),Fh)),mr(t,r++,a);return t},f.Fj=function(){var t,n,i,r,o;for(o=new vg,o.a+="[",t=su(this.a),n=0,r=su(this.a).i;n<r;)Zs(o,GT((i=c(ce(t,n),88).c,i||(At(),Fh)))),++n<r&&(o.a+=Xc);return o.a+="]",o.a},f.Hj=function(t){},f.Jj=function(){return 13},f.il=function(){return!0},f.Kj=function(){return!1},f.jl=function(){return!1},f.kl=function(){return!1},f.ll=function(){return!0},f.$k=function(){return!1},f.ml=function(){return!0},f.dk=function(t){return ae(t,146)},f.Oj=function(){return qDt(this.a)},f.Qi=function(){return!0},f.Wi=function(){return!0},M(Vt,"EOperationImpl/1",503),E(1342,2041,ij,$Le),f.dd=function(t){return CD(this.a,t)},f.gc=function(){return su(this.a.a).i},M(Vt,"EOperationImpl/1/1",1342),E(1343,547,Eo,Iqe),f.Ri=function(t,n){var i,r;return i=c(L7(this,t,n),88),bu(this.e)&&E6(this,new pD(this.a,7,(At(),qvt),$e(n),(r=i.c,r||Fh),t)),i},f.Sj=function(t,n){return dBt(this,c(t,88),n)},f.Tj=function(t,n){return gBt(this,c(t,88),n)},f.Uj=function(t,n,i){return oFt(this,c(t,88),c(n,88),i)},f.Gj=function(t,n,i,r,o){switch(t){case 3:return u7(this,t,n,i,r,this.i>1);case 5:return u7(this,t,n,i,r,this.i-c(i,16).gc()>0);default:return new C1(this.e,t,this.c,n,i,r,!0)}},f.Rj=function(){return!0},f.Oj=function(){return Rne(this)},f.Ek=function(){An(this)},M(Vt,"EOperationImpl/2",1343),E(496,1,{2016:1,496:1},X$e),M(Vt,"EPackageImpl/1",496),E(14,82,Eo,_e),f.gl=function(){return this.d},f.hl=function(){return this.b},f.kl=function(){return!0},f.b=0,M(Ji,"EObjectContainmentWithInverseEList",14),E(362,14,Eo,O4),f.ll=function(){return!0},f.Ui=function(t,n){return sk(this,t,c(n,57))},M(Ji,"EObjectContainmentWithInverseEList/Resolving",362),E(313,362,Eo,V2),f.Li=function(){this.a.tb=null},M(Vt,"EPackageImpl/2",313),E(1255,1,{},yN),M(Vt,"EPackageImpl/3",1255),E(728,44,Wx,p1e),f._b=function(t){return Yr(t)?Lee(this,t):!!lo(this.f,t)},M(Vt,"EPackageRegistryImpl",728),E(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},gY),f.xh=function(t){return JZe(this,t)},f.Ih=function(t,n,i){var r,o,a;switch(t){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Bt(),(this.Bb&256)!=0;case 3:return Bt(),(this.Bb&512)!=0;case 4:return $e(this.s);case 5:return $e(this.t);case 6:return Bt(),a=this.t,a>1||a==-1;case 7:return Bt(),o=this.s,o>=1;case 8:return n?Qa(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?c(this.Cb,62):null}return ba(this,t-bn((At(),by)),Dt((r=c(Wt(this,16),29),r||by),t),n,i)},f.Ph=function(t,n,i){var r,o,a;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),Vc(this.Ab,t,i);case 10:return this.Cb&&(i=(o=this.Db>>16,o>=0?JZe(this,i):this.Cb.Qh(this,-1-o,null,i))),Qu(this,t,10,i)}return a=c(Dt((r=c(Wt(this,16),29),r||(At(),by)),n),69),a.uk().xk(this,il(this),n-bn((At(),by)),t,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),_s(this.Ab,t,i);case 9:return wee(this,i);case 10:return Qu(this,null,10,i)}return o=c(Dt((r=c(Wt(this,16),29),r||(At(),by)),n),69),o.uk().yk(this,il(this),n-bn((At(),by)),t,i)},f.Th=function(t){var n,i,r;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 r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Fm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Fm(this.q).i==0);case 10:return!!(this.Db>>16==10&&c(this.Cb,62))}return ga(this,t-bn((At(),by)),Dt((n=c(Wt(this,16),29),n||by),t))},f.fi=function(){return At(),by},M(Vt,"EParameterImpl",507),E(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},w0e),f.Ih=function(t,n,i){var r,o,a,d;switch(t){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Bt(),(this.Bb&256)!=0;case 3:return Bt(),(this.Bb&512)!=0;case 4:return $e(this.s);case 5:return $e(this.t);case 6:return Bt(),d=this.t,d>1||d==-1;case 7:return Bt(),o=this.s,o>=1;case 8:return n?Qa(this):this.r;case 9:return this.q;case 10:return Bt(),(this.Bb&Ga)!=0;case 11:return Bt(),(this.Bb&$1)!=0;case 12:return Bt(),(this.Bb&Cv)!=0;case 13:return this.j;case 14:return HS(this);case 15:return Bt(),(this.Bb&Il)!=0;case 16:return Bt(),(this.Bb&od)!=0;case 17:return Z2(this);case 18:return Bt(),(this.Bb&rc)!=0;case 19:return Bt(),a=Qs(this),!!(a&&(a.Bb&rc)!=0);case 20:return Bt(),(this.Bb&Rs)!=0;case 21:return n?Qs(this):this.b;case 22:return n?dwe(this):VUe(this);case 23:return!this.a&&(this.a=new kx(dy,this,23)),this.a}return ba(this,t-bn((At(),P3)),Dt((r=c(Wt(this,16),29),r||P3),t),n,i)},f.Th=function(t){var n,i,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 o=this.t,o>1||o==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Fm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Fm(this.q).i==0);case 10:return(this.Bb&Ga)==0;case 11:return(this.Bb&$1)!=0;case 12:return(this.Bb&Cv)!=0;case 13:return this.j!=null;case 14:return HS(this)!=null;case 15:return(this.Bb&Il)!=0;case 16:return(this.Bb&od)!=0;case 17:return!!Z2(this);case 18:return(this.Bb&rc)!=0;case 19:return r=Qs(this),!!r&&(r.Bb&rc)!=0;case 20:return(this.Bb&Rs)==0;case 21:return!!this.b;case 22:return!!VUe(this);case 23:return!!this.a&&this.a.i!=0}return ga(this,t-bn((At(),P3)),Dt((n=c(Wt(this,16),29),n||P3),t))},f.$h=function(t,n){var i,r;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab),!this.Ab&&(this.Ab=new _e(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Qee(this,qn(n));return;case 2:Pg(this,Ze(Ye(n)));return;case 3:Ig(this,Ze(Ye(n)));return;case 4:Ng(this,c(n,15).a);return;case 5:ov(this,c(n,15).a);return;case 8:fb(this,c(n,146));return;case 9:r=Sh(this,c(n,88),null),r&&r.mj();return;case 10:ES(this,Ze(Ye(n)));return;case 11:AS(this,Ze(Ye(n)));return;case 12:CS(this,Ze(Ye(n)));return;case 13:Age(this,qn(n));return;case 15:MS(this,Ze(Ye(n)));return;case 16:NS(this,Ze(Ye(n)));return;case 18:z_t(this,Ze(Ye(n)));return;case 20:Gwe(this,Ze(Ye(n)));return;case 21:Hme(this,c(n,20));return;case 23:!this.a&&(this.a=new kx(dy,this,23)),An(this.a),!this.a&&(this.a=new kx(dy,this,23)),dr(this.a,c(n,18));return}ka(this,t-bn((At(),P3)),Dt((i=c(Wt(this,16),29),i||P3),t),n)},f.fi=function(){return At(),P3},f.hi=function(t){var n,i;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab);return;case 1:ae(this.Cb,89)&&vv(iu(c(this.Cb,89)),4),Jc(this,null);return;case 2:Pg(this,!0);return;case 3:Ig(this,!0);return;case 4:Ng(this,0);return;case 5:ov(this,1);return;case 8:fb(this,null);return;case 9:i=Sh(this,null,null),i&&i.mj();return;case 10:ES(this,!0);return;case 11:AS(this,!1);return;case 12:CS(this,!1);return;case 13:this.i=null,AH(this,null);return;case 15:MS(this,!1);return;case 16:NS(this,!1);return;case 18:Uwe(this,!1),ae(this.Cb,89)&&vv(iu(c(this.Cb,89)),2);return;case 20:Gwe(this,!0);return;case 21:Hme(this,null);return;case 23:!this.a&&(this.a=new kx(dy,this,23)),An(this.a);return}xa(this,t-bn((At(),P3)),Dt((n=c(Wt(this,16),29),n||P3),t))},f.mi=function(){dwe(this),tS(ao((Ll(),bs),this)),Qa(this),this.Bb|=1},f.sk=function(){return Qs(this)},f.Zk=function(){var t;return t=Qs(this),!!t&&(t.Bb&rc)!=0},f.$k=function(){return(this.Bb&rc)!=0},f._k=function(){return(this.Bb&Rs)!=0},f.Wk=function(t,n){return this.c=null,Pwe(this,t,n)},f.Ib=function(){var t;return(this.Db&64)!=0?VQ(this):(t=new Ba(VQ(this)),t.a+=" (containment: ",yg(t,(this.Bb&rc)!=0),t.a+=", resolveProxies: ",yg(t,(this.Bb&Rs)!=0),t.a+=")",t.a)},M(Vt,"EReferenceImpl",104),E(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},Td),f.Fb=function(t){return this===t},f.jd=function(){return this.b},f.kd=function(){return this.c},f.Hb=function(){return Rm(this)},f.Ai=function(t){KMt(this,qn(t))},f.ld=function(t){return zMt(this,qn(t))},f.Ih=function(t,n,i){var r;switch(t){case 0:return this.b;case 1:return this.c}return ba(this,t-bn((At(),zs)),Dt((r=c(Wt(this,16),29),r||zs),t),n,i)},f.Th=function(t){var n;switch(t){case 0:return this.b!=null;case 1:return this.c!=null}return ga(this,t-bn((At(),zs)),Dt((n=c(Wt(this,16),29),n||zs),t))},f.$h=function(t,n){var i;switch(t){case 0:YMt(this,qn(n));return;case 1:Rme(this,qn(n));return}ka(this,t-bn((At(),zs)),Dt((i=c(Wt(this,16),29),i||zs),t),n)},f.fi=function(){return At(),zs},f.hi=function(t){var n;switch(t){case 0:zme(this,null);return;case 1:Rme(this,null);return}xa(this,t-bn((At(),zs)),Dt((n=c(Wt(this,16),29),n||zs),t))},f.yi=function(){var t;return this.a==-1&&(t=this.b,this.a=t==null?0:_g(t)),this.a},f.zi=function(t){this.a=t},f.Ib=function(){var t;return(this.Db&64)!=0?kf(this):(t=new Ba(kf(this)),t.a+=" (key: ",Zs(t,this.b),t.a+=", value: ",Zs(t,this.c),t.a+=")",t.a)},f.a=-1,f.b=null,f.c=null;var Zo=M(Vt,"EStringToStringMapEntryImpl",553),Vvt=Zi(Ji,"FeatureMap/Entry/Internal");E(569,1,rU),f.vl=function(t){return this.wl(c(t,52))},f.wl=function(t){return this.vl(t)},f.Fb=function(t){var n,i;return this===t?!0:ae(t,76)?(n=c(t,76),n.Jk()==this.c?(i=this.kd(),i==null?n.kd()==null:xi(i,n.kd())):!1):!1},f.Jk=function(){return this.c},f.Hb=function(){var t;return t=this.kd(),zi(this.c)^(t==null?0:zi(t))},f.Ib=function(){var t,n;return t=this.c,n=Bu(t.ok()).vi(),t.ve(),(n!=null&&n.length!=0?n+":"+t.ve():t.ve())+"="+this.kd()},M(Vt,"EStructuralFeatureImpl/BasicFeatureMapEntry",569),E(784,569,rU,N0e),f.wl=function(t){return new N0e(this.c,t)},f.kd=function(){return this.a},f.xl=function(t,n,i){return NRt(this,t,this.a,n,i)},f.yl=function(t,n,i){return _Rt(this,t,this.a,n,i)},M(Vt,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",784),E(1316,1,{},W$e),f.wk=function(t,n,i,r,o){var a;return a=c(cS(t,this.b),222),a.Wl(this.a).Dk(r)},f.xk=function(t,n,i,r,o){var a;return a=c(cS(t,this.b),222),a.Nl(this.a,r,o)},f.yk=function(t,n,i,r,o){var a;return a=c(cS(t,this.b),222),a.Ol(this.a,r,o)},f.zk=function(t,n,i){var r;return r=c(cS(t,this.b),222),r.Wl(this.a).Oj()},f.Ak=function(t,n,i,r){var o;o=c(cS(t,this.b),222),o.Wl(this.a).Wb(r)},f.Bk=function(t,n,i){return c(cS(t,this.b),222).Wl(this.a)},f.Ck=function(t,n,i){var r;r=c(cS(t,this.b),222),r.Wl(this.a).Ek()},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1316),E(90,1,{},jg,Wp,Eg,nb),f.wk=function(t,n,i,r,o){var a;if(a=n.ii(i),a==null&&n.ji(i,a=oG(this,t)),!o)switch(this.e){case 50:case 41:return c(a,593)._j();case 40:return c(a,222).Tl()}return a},f.xk=function(t,n,i,r,o){var a,d;return d=n.ii(i),d==null&&n.ji(i,d=oG(this,t)),a=c(d,72).Uk(r,o),a},f.yk=function(t,n,i,r,o){var a;return a=n.ii(i),a!=null&&(o=c(a,72).Vk(r,o)),o},f.zk=function(t,n,i){var r;return r=n.ii(i),r!=null&&c(r,78).Oj()},f.Ak=function(t,n,i,r){var o;o=c(n.ii(i),78),!o&&n.ji(i,o=oG(this,t)),o.Wb(r)},f.Bk=function(t,n,i){var r,o;return o=n.ii(i),o==null&&n.ji(i,o=oG(this,t)),ae(o,78)?c(o,78):(r=c(n.ii(i),16),new zLe(r))},f.Ck=function(t,n,i){var r;r=c(n.ii(i),78),!r&&n.ji(i,r=oG(this,t)),r.Ek()},f.b=0,f.e=0,M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateMany",90),E(502,1,{}),f.xk=function(t,n,i,r,o){throw V(new zn)},f.yk=function(t,n,i,r,o){throw V(new zn)},f.Bk=function(t,n,i){return new WHe(this,t,n,i)};var n1;M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingle",502),E(1333,1,Noe,WHe),f.Dk=function(t){return this.a.wk(this.c,this.d,this.b,t,!0)},f.Oj=function(){return this.a.zk(this.c,this.d,this.b)},f.Wb=function(t){this.a.Ak(this.c,this.d,this.b,t)},f.Ek=function(){this.a.Ck(this.c,this.d,this.b)},f.b=0,M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1333),E(777,502,{},fbe),f.wk=function(t,n,i,r,o){return _ie(t,t.Mh(),t.Ch())==this.b?this._k()&&r?yie(t):t.Mh():null},f.xk=function(t,n,i,r,o){var a,d;return t.Mh()&&(o=(a=t.Ch(),a>=0?t.xh(o):t.Mh().Qh(t,-1-a,null,o))),d=Ki(t.Ah(),this.e),t.zh(r,d,o)},f.yk=function(t,n,i,r,o){var a;return a=Ki(t.Ah(),this.e),t.zh(null,a,o)},f.zk=function(t,n,i){var r;return r=Ki(t.Ah(),this.e),!!t.Mh()&&t.Ch()==r},f.Ak=function(t,n,i,r){var o,a,d,b,v;if(r!=null&&!Iie(this.a,r))throw V(new C6(sU+(ae(r,57)?eve(c(r,57).Ah()):yme(Ou(r)))+oU+this.a+"'"));if(o=t.Mh(),d=Ki(t.Ah(),this.e),xe(r)!==xe(o)||t.Ch()!=d&&r!=null){if(IS(t,c(r,57)))throw V(new qt(NE+t.Ib()));v=null,o&&(v=(a=t.Ch(),a>=0?t.xh(v):t.Mh().Qh(t,-1-a,null,v))),b=c(r,52),b&&(v=b.Oh(t,Ki(b.Ah(),this.b),null,v)),v=t.zh(b,d,v),v&&v.mj()}else t.sh()&&t.th()&&yi(t,new Jr(t,1,d,r,r))},f.Ck=function(t,n,i){var r,o,a,d;r=t.Mh(),r?(d=(o=t.Ch(),o>=0?t.xh(null):t.Mh().Qh(t,-1-o,null,null)),a=Ki(t.Ah(),this.e),d=t.zh(null,a,d),d&&d.mj()):t.sh()&&t.th()&&yi(t,new e7(t,1,this.e,null,null))},f._k=function(){return!1},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",777),E(1317,777,{},FFe),f._k=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1317),E(567,502,{}),f.wk=function(t,n,i,r,o){var a;return a=n.ii(i),a==null?this.b:xe(a)===xe(n1)?null:a},f.zk=function(t,n,i){var r;return r=n.ii(i),r!=null&&(xe(r)===xe(n1)||!xi(r,this.b))},f.Ak=function(t,n,i,r){var o,a;t.sh()&&t.th()?(o=(a=n.ii(i),a==null?this.b:xe(a)===xe(n1)?null:a),r==null?this.c!=null?(n.ji(i,null),r=this.b):this.b!=null?n.ji(i,n1):n.ji(i,null):(this.zl(r),n.ji(i,r)),yi(t,this.d.Al(t,1,this.e,o,r))):r==null?this.c!=null?n.ji(i,null):this.b!=null?n.ji(i,n1):n.ji(i,null):(this.zl(r),n.ji(i,r))},f.Ck=function(t,n,i){var r,o;t.sh()&&t.th()?(r=(o=n.ii(i),o==null?this.b:xe(o)===xe(n1)?null:o),n.ki(i),yi(t,this.d.Al(t,1,this.e,r,this.b))):n.ki(i)},f.zl=function(t){throw V(new WLe)},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",567),E(s3,1,{},d0),f.Al=function(t,n,i,r,o){return new e7(t,n,i,r,o)},f.Bl=function(t,n,i,r,o,a){return new _ee(t,n,i,r,o,a)};var cEe,lEe,uEe,aEe,fEe,hEe,dEe,Kae,gEe;M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",s3),E(1334,s3,{},xB),f.Al=function(t,n,i,r,o){return new Gbe(t,n,i,Ze(Ye(r)),Ze(Ye(o)))},f.Bl=function(t,n,i,r,o,a){return new EGe(t,n,i,Ze(Ye(r)),Ze(Ye(o)),a)},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1334),E(1335,s3,{},Ed),f.Al=function(t,n,i,r,o){return new Sme(t,n,i,c(r,224).a,c(o,224).a)},f.Bl=function(t,n,i,r,o,a){return new yGe(t,n,i,c(r,224).a,c(o,224).a,a)},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1335),E(1336,s3,{},kB),f.Al=function(t,n,i,r,o){return new jme(t,n,i,c(r,183).a,c(o,183).a)},f.Bl=function(t,n,i,r,o,a){return new xGe(t,n,i,c(r,183).a,c(o,183).a,a)},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1336),E(1337,s3,{},vm),f.Al=function(t,n,i,r,o){return new Hbe(t,n,i,de(be(r)),de(be(o)))},f.Bl=function(t,n,i,r,o,a){return new kGe(t,n,i,de(be(r)),de(be(o)),a)},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1337),E(1338,s3,{},nx),f.Al=function(t,n,i,r,o){return new Cme(t,n,i,c(r,165).a,c(o,165).a)},f.Bl=function(t,n,i,r,o,a){return new OGe(t,n,i,c(r,165).a,c(o,165).a,a)},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1338),E(1339,s3,{},ym),f.Al=function(t,n,i,r,o){return new Qbe(t,n,i,c(r,15).a,c(o,15).a)},f.Bl=function(t,n,i,r,o,a){return new SGe(t,n,i,c(r,15).a,c(o,15).a,a)},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1339),E(1340,s3,{},xN),f.Al=function(t,n,i,r,o){return new Tme(t,n,i,c(r,192).a,c(o,192).a)},f.Bl=function(t,n,i,r,o,a){return new jGe(t,n,i,c(r,192).a,c(o,192).a,a)},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1340),E(1341,s3,{},kN),f.Al=function(t,n,i,r,o){return new Eme(t,n,i,c(r,193).a,c(o,193).a)},f.Bl=function(t,n,i,r,o,a){return new TGe(t,n,i,c(r,193).a,c(o,193).a,a)},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1341),E(1319,567,{},eQe),f.zl=function(t){if(!this.a.dk(t))throw V(new C6(sU+Ou(t)+oU+this.a+"'"))},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1319),E(1320,567,{},Rqe),f.zl=function(t){},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1320),E(778,567,{}),f.zk=function(t,n,i){var r;return r=n.ii(i),r!=null},f.Ak=function(t,n,i,r){var o,a;t.sh()&&t.th()?(o=!0,a=n.ii(i),a==null?(o=!1,a=this.b):xe(a)===xe(n1)&&(a=null),r==null?this.c!=null?(n.ji(i,null),r=this.b):n.ji(i,n1):(this.zl(r),n.ji(i,r)),yi(t,this.d.Bl(t,1,this.e,a,r,!o))):r==null?this.c!=null?n.ji(i,null):n.ji(i,n1):(this.zl(r),n.ji(i,r))},f.Ck=function(t,n,i){var r,o;t.sh()&&t.th()?(r=!0,o=n.ii(i),o==null?(r=!1,o=this.b):xe(o)===xe(n1)&&(o=null),n.ki(i),yi(t,this.d.Bl(t,2,this.e,o,this.b,r))):n.ki(i)},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",778),E(1321,778,{},tQe),f.zl=function(t){if(!this.a.dk(t))throw V(new C6(sU+Ou(t)+oU+this.a+"'"))},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1321),E(1322,778,{},$qe),f.zl=function(t){},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1322),E(407,502,{},bq),f.wk=function(t,n,i,r,o){var a,d,b,v,x;if(x=n.ii(i),this.rk()&&xe(x)===xe(n1))return null;if(this._k()&&r&&x!=null){if(b=c(x,52),b.Sh()&&(v=L0(t,b),b!=v)){if(!Iie(this.a,v))throw V(new C6(sU+Ou(v)+oU+this.a+"'"));n.ji(i,x=v),this.$k()&&(a=c(v,52),d=b.Qh(t,this.b?Ki(b.Ah(),this.b):-1-Ki(t.Ah(),this.e),null,null),!a.Mh()&&(d=a.Oh(t,this.b?Ki(a.Ah(),this.b):-1-Ki(t.Ah(),this.e),null,d)),d&&d.mj()),t.sh()&&t.th()&&yi(t,new e7(t,9,this.e,b,v))}return x}else return x},f.xk=function(t,n,i,r,o){var a,d;return d=n.ii(i),xe(d)===xe(n1)&&(d=null),n.ji(i,r),this.Kj()?xe(d)!==xe(r)&&d!=null&&(a=c(d,52),o=a.Qh(t,Ki(a.Ah(),this.b),null,o)):this.$k()&&d!=null&&(o=c(d,52).Qh(t,-1-Ki(t.Ah(),this.e),null,o)),t.sh()&&t.th()&&(!o&&(o=new p0(4)),o.lj(new e7(t,1,this.e,d,r))),o},f.yk=function(t,n,i,r,o){var a;return a=n.ii(i),xe(a)===xe(n1)&&(a=null),n.ki(i),t.sh()&&t.th()&&(!o&&(o=new p0(4)),this.rk()?o.lj(new e7(t,2,this.e,a,null)):o.lj(new e7(t,1,this.e,a,null))),o},f.zk=function(t,n,i){var r;return r=n.ii(i),r!=null},f.Ak=function(t,n,i,r){var o,a,d,b,v;if(r!=null&&!Iie(this.a,r))throw V(new C6(sU+(ae(r,57)?eve(c(r,57).Ah()):yme(Ou(r)))+oU+this.a+"'"));v=n.ii(i),b=v!=null,this.rk()&&xe(v)===xe(n1)&&(v=null),d=null,this.Kj()?xe(v)!==xe(r)&&(v!=null&&(o=c(v,52),d=o.Qh(t,Ki(o.Ah(),this.b),null,d)),r!=null&&(o=c(r,52),d=o.Oh(t,Ki(o.Ah(),this.b),null,d))):this.$k()&&xe(v)!==xe(r)&&(v!=null&&(d=c(v,52).Qh(t,-1-Ki(t.Ah(),this.e),null,d)),r!=null&&(d=c(r,52).Oh(t,-1-Ki(t.Ah(),this.e),null,d))),r==null&&this.rk()?n.ji(i,n1):n.ji(i,r),t.sh()&&t.th()?(a=new _ee(t,1,this.e,v,r,this.rk()&&!b),d?(d.lj(a),d.mj()):yi(t,a)):d&&d.mj()},f.Ck=function(t,n,i){var r,o,a,d,b;b=n.ii(i),d=b!=null,this.rk()&&xe(b)===xe(n1)&&(b=null),a=null,b!=null&&(this.Kj()?(r=c(b,52),a=r.Qh(t,Ki(r.Ah(),this.b),null,a)):this.$k()&&(a=c(b,52).Qh(t,-1-Ki(t.Ah(),this.e),null,a))),n.ki(i),t.sh()&&t.th()?(o=new _ee(t,this.rk()?2:1,this.e,b,null,d),a?(a.lj(o),a.mj()):yi(t,o)):a&&a.mj()},f.Kj=function(){return!1},f.$k=function(){return!1},f._k=function(){return!1},f.rk=function(){return!1},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",407),E(568,407,{},DZ),f.$k=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",568),E(1325,568,{},Pze),f._k=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1325),E(780,568,{},g0e),f.rk=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",780),E(1327,780,{},Ize),f._k=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1327),E(645,568,{},VZ),f.Kj=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",645),E(1326,645,{},qFe),f._k=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1326),E(781,645,{},Z0e),f.rk=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",781),E(1328,781,{},HFe),f._k=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1328),E(646,407,{},p0e),f._k=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",646),E(1329,646,{},$ze),f.rk=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1329),E(782,646,{},K0e),f.Kj=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",782),E(1330,782,{},QFe),f.rk=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1330),E(1323,407,{},Rze),f.rk=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1323),E(779,407,{},Y0e),f.Kj=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",779),E(1324,779,{},GFe),f.rk=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1324),E(783,569,rU,Qpe),f.wl=function(t){return new Qpe(this.a,this.c,t)},f.kd=function(){return this.b},f.xl=function(t,n,i){return MPt(this,t,this.b,i)},f.yl=function(t,n,i){return APt(this,t,this.b,i)},M(Vt,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",783),E(1331,1,Noe,zLe),f.Dk=function(t){return this.a},f.Oj=function(){return ae(this.a,98)?c(this.a,98).Oj():!this.a.dc()},f.Wb=function(t){this.a.$b(),this.a.Fc(c(t,16))},f.Ek=function(){ae(this.a,98)?c(this.a,98).Ek():this.a.$b()},M(Vt,"EStructuralFeatureImpl/SettingMany",1331),E(1332,569,rU,yUe),f.vl=function(t){return new $Z((Ai(),uM),this.b.oi(this.a,t))},f.kd=function(){return null},f.xl=function(t,n,i){return i},f.yl=function(t,n,i){return i},M(Vt,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1332),E(647,569,rU,$Z),f.vl=function(t){return new $Z(this.c,t)},f.kd=function(){return this.a},f.xl=function(t,n,i){return i},f.yl=function(t,n,i){return i},M(Vt,"EStructuralFeatureImpl/SimpleFeatureMapEntry",647),E(399,495,dd,Hf),f.$i=function(t){return ke(ef,Pt,29,t,0,1)},f.Wi=function(){return!1},M(Vt,"ESuperAdapter/1",399),E(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},R8),f.Ih=function(t,n,i){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new WT(this,Ys,this)),this.a}return ba(this,t-bn((At(),Hw)),Dt((r=c(Wt(this,16),29),r||Hw),t),n,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new _e(oi,this,0,3)),_s(this.Ab,t,i);case 2:return!this.a&&(this.a=new WT(this,Ys,this)),_s(this.a,t,i)}return o=c(Dt((r=c(Wt(this,16),29),r||(At(),Hw)),n),69),o.uk().yk(this,il(this),n-bn((At(),Hw)),t,i)},f.Th=function(t){var n;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 ga(this,t-bn((At(),Hw)),Dt((n=c(Wt(this,16),29),n||Hw),t))},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab),!this.Ab&&(this.Ab=new _e(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Jc(this,qn(n));return;case 2:!this.a&&(this.a=new WT(this,Ys,this)),An(this.a),!this.a&&(this.a=new WT(this,Ys,this)),dr(this.a,c(n,18));return}ka(this,t-bn((At(),Hw)),Dt((i=c(Wt(this,16),29),i||Hw),t),n)},f.fi=function(){return At(),Hw},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new _e(oi,this,0,3)),An(this.Ab);return;case 1:Jc(this,null);return;case 2:!this.a&&(this.a=new WT(this,Ys,this)),An(this.a);return}xa(this,t-bn((At(),Hw)),Dt((n=c(Wt(this,16),29),n||Hw),t))},M(Vt,"ETypeParameterImpl",449),E(450,82,Eo,WT),f.Lj=function(t,n){return SQt(this,c(t,88),n)},f.Mj=function(t,n){return jQt(this,c(t,88),n)},M(Vt,"ETypeParameterImpl/1",450),E(644,44,Wx,pY),f.ec=function(){return new Pz(this)},M(Vt,"ETypeParameterImpl/2",644),E(564,Eh,Pl,Pz),f.Ec=function(t){return wFe(this,c(t,88))},f.Fc=function(t){var n,i,r;for(r=!1,i=t.Jc();i.Ob();)n=c(i.Pb(),88),ci(this.a,n,"")==null&&(r=!0);return r},f.$b=function(){cc(this.a)},f.Gc=function(t){return Cc(this.a,t)},f.Jc=function(){var t;return t=new lv(new Rp(this.a).a),new Iz(t)},f.Kc=function(t){return lJe(this,t)},f.gc=function(){return vT(this.a)},M(Vt,"ETypeParameterImpl/2/1",564),E(565,1,ns,Iz),f.Nb=function(t){ps(this,t)},f.Pb=function(){return c(_x(this.a).jd(),88)},f.Ob=function(){return this.a.b},f.Qb=function(){yVe(this.a)},M(Vt,"ETypeParameterImpl/2/1/1",565),E(1293,44,Wx,MPe),f._b=function(t){return Yr(t)?Lee(this,t):!!lo(this.f,t)},f.xc=function(t){var n,i;return n=Yr(t)?Mc(this,t):No(lo(this.f,t)),ae(n,843)?(i=c(n,843),n=i.Ik(),ci(this,c(t,244),n),n):n??(t==null?(LY(),Wvt):null)},M(Vt,"EValidatorRegistryImpl",1293),E(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},I5),f.oi=function(t,n){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 n==null?null:To(n);case 25:return BIt(n);case 27:return eIt(n);case 28:return tIt(n);case 29:return n==null?null:zBe(iM[0],c(n,208));case 41:return n==null?"":zp(c(n,299));case 42:return To(n);case 50:return qn(n);default:throw V(new qt(Tj+t.ve()+Sw))}},f.pi=function(t){var n,i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W;switch(t.G==-1&&(t.G=(L=Bu(t),L?Rg(L.si(),t):-1)),t.G){case 0:return i=new hY,i;case 1:return n=new vN,n;case 2:return r=new b1,r;case 4:return o=new Rz,o;case 5:return a=new CPe,a;case 6:return d=new GLe,d;case 7:return b=new Q5,b;case 10:return x=new I8,x;case 11:return T=new dY,T;case 12:return A=new hQe,A;case 13:return I=new gY,I;case 14:return z=new w0e,z;case 17:return Q=new Td,Q;case 18:return v=new Tm,v;case 19:return W=new R8,W;default:throw V(new qt(poe+t.zb+Sw))}},f.qi=function(t,n){switch(t.fk()){case 20:return n==null?null:new R1e(n);case 21:return n==null?null:new x0(n);case 23:case 22:return n==null?null:$zt(n);case 26:case 24:return n==null?null:kD(Hu(n,-128,127)<<24>>24);case 25:return zJt(n);case 27:return kqt(n);case 28:return Oqt(n);case 29:return QQt(n);case 32:case 31:return n==null?null:mv(n);case 38:case 37:return n==null?null:new o1e(n);case 40:case 39:return n==null?null:$e(Hu(n,ls,gi));case 41:return null;case 42:return n==null,null;case 44:case 43:return n==null?null:gv(sG(n));case 49:case 48:return n==null?null:TS(Hu(n,cU,32767)<<16>>16);case 50:return n;default:throw V(new qt(Tj+t.ve()+Sw))}},M(Vt,"EcoreFactoryImpl",1315),E(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},DHe),f.gb=!1,f.hb=!1;var pEe,Xvt=!1;M(Vt,"EcorePackageImpl",552),E(1211,1,{843:1},c6),f.Ik=function(){return gze(),Kvt},M(Vt,"EcorePackageImpl/1",1211),E(1220,1,ai,l6),f.dk=function(t){return ae(t,159)},f.ek=function(t){return ke(fI,Pt,159,t,0,1)},M(Vt,"EcorePackageImpl/10",1220),E(1221,1,ai,R5),f.dk=function(t){return ae(t,199)},f.ek=function(t){return ke(qae,Pt,199,t,0,1)},M(Vt,"EcorePackageImpl/11",1221),E(1222,1,ai,OB),f.dk=function(t){return ae(t,57)},f.ek=function(t){return ke(fp,Pt,57,t,0,1)},M(Vt,"EcorePackageImpl/12",1222),E(1223,1,ai,SB),f.dk=function(t){return ae(t,408)},f.ek=function(t){return ke(tf,ske,62,t,0,1)},M(Vt,"EcorePackageImpl/13",1223),E(1224,1,ai,u6),f.dk=function(t){return ae(t,244)},f.ek=function(t){return ke(ch,Pt,244,t,0,1)},M(Vt,"EcorePackageImpl/14",1224),E(1225,1,ai,jB),f.dk=function(t){return ae(t,507)},f.ek=function(t){return ke(Fw,Pt,2095,t,0,1)},M(Vt,"EcorePackageImpl/15",1225),E(1226,1,ai,$8),f.dk=function(t){return ae(t,104)},f.ek=function(t){return ke(gy,r3,20,t,0,1)},M(Vt,"EcorePackageImpl/16",1226),E(1227,1,ai,TB),f.dk=function(t){return ae(t,182)},f.ek=function(t){return ke(Ol,r3,182,t,0,1)},M(Vt,"EcorePackageImpl/17",1227),E(1228,1,ai,gK),f.dk=function(t){return ae(t,473)},f.ek=function(t){return ke(hy,Pt,473,t,0,1)},M(Vt,"EcorePackageImpl/18",1228),E(1229,1,ai,pK),f.dk=function(t){return ae(t,553)},f.ek=function(t){return ke(Zo,mat,553,t,0,1)},M(Vt,"EcorePackageImpl/19",1229),E(1212,1,ai,oc),f.dk=function(t){return ae(t,336)},f.ek=function(t){return ke(dy,r3,38,t,0,1)},M(Vt,"EcorePackageImpl/2",1212),E(1230,1,ai,el),f.dk=function(t){return ae(t,251)},f.ek=function(t){return ke(Ys,Lat,88,t,0,1)},M(Vt,"EcorePackageImpl/20",1230),E(1231,1,ai,so),f.dk=function(t){return ae(t,449)},f.ek=function(t){return ke(ul,Pt,842,t,0,1)},M(Vt,"EcorePackageImpl/21",1231),E(1232,1,ai,mo),f.dk=function(t){return R2(t)},f.ek=function(t){return ke(or,Fe,476,t,8,1)},M(Vt,"EcorePackageImpl/22",1232),E(1233,1,ai,jc),f.dk=function(t){return ae(t,198)},f.ek=function(t){return ke($l,Fe,198,t,0,2)},M(Vt,"EcorePackageImpl/23",1233),E(1234,1,ai,d1),f.dk=function(t){return ae(t,224)},f.ek=function(t){return ke(xk,Fe,224,t,0,1)},M(Vt,"EcorePackageImpl/24",1234),E(1235,1,ai,S2),f.dk=function(t){return ae(t,183)},f.ek=function(t){return ke(HE,Fe,183,t,0,1)},M(Vt,"EcorePackageImpl/25",1235),E(1236,1,ai,$5),f.dk=function(t){return ae(t,208)},f.ek=function(t){return ke(mU,Fe,208,t,0,1)},M(Vt,"EcorePackageImpl/26",1236),E(1237,1,ai,ON),f.dk=function(t){return!1},f.ek=function(t){return ke(DEe,Pt,2191,t,0,1)},M(Vt,"EcorePackageImpl/27",1237),E(1238,1,ai,xm),f.dk=function(t){return $2(t)},f.ek=function(t){return ke(jr,Fe,347,t,7,1)},M(Vt,"EcorePackageImpl/28",1238),E(1239,1,ai,gu),f.dk=function(t){return ae(t,61)},f.ek=function(t){return ke(V7e,Mv,61,t,0,1)},M(Vt,"EcorePackageImpl/29",1239),E(1213,1,ai,j2),f.dk=function(t){return ae(t,508)},f.ek=function(t){return ke(oi,{3:1,4:1,5:1,2012:1},594,t,0,1)},M(Vt,"EcorePackageImpl/3",1213),E(1240,1,ai,ix),f.dk=function(t){return ae(t,575)},f.ek=function(t){return ke(K7e,Pt,2018,t,0,1)},M(Vt,"EcorePackageImpl/30",1240),E(1241,1,ai,SN),f.dk=function(t){return ae(t,164)},f.ek=function(t){return ke(yEe,Mv,164,t,0,1)},M(Vt,"EcorePackageImpl/31",1241),E(1242,1,ai,g1),f.dk=function(t){return ae(t,76)},f.ek=function(t){return ke(AV,Hat,76,t,0,1)},M(Vt,"EcorePackageImpl/32",1242),E(1243,1,ai,B5),f.dk=function(t){return ae(t,165)},f.ek=function(t){return ke(Lj,Fe,165,t,0,1)},M(Vt,"EcorePackageImpl/33",1243),E(1244,1,ai,a6),f.dk=function(t){return ae(t,15)},f.ek=function(t){return ke(Pr,Fe,15,t,0,1)},M(Vt,"EcorePackageImpl/34",1244),E(1245,1,ai,Cd),f.dk=function(t){return ae(t,299)},f.ek=function(t){return ke(wke,Pt,299,t,0,1)},M(Vt,"EcorePackageImpl/35",1245),E(1246,1,ai,jN),f.dk=function(t){return ae(t,192)},f.ek=function(t){return ke(Tw,Fe,192,t,0,1)},M(Vt,"EcorePackageImpl/36",1246),E(1247,1,ai,B8),f.dk=function(t){return ae(t,93)},f.ek=function(t){return ke(vke,Pt,93,t,0,1)},M(Vt,"EcorePackageImpl/37",1247),E(1248,1,ai,EB),f.dk=function(t){return ae(t,595)},f.ek=function(t){return ke(bEe,Pt,595,t,0,1)},M(Vt,"EcorePackageImpl/38",1248),E(1249,1,ai,z8),f.dk=function(t){return!1},f.ek=function(t){return ke(LEe,Pt,2192,t,0,1)},M(Vt,"EcorePackageImpl/39",1249),E(1214,1,ai,F8),f.dk=function(t){return ae(t,89)},f.ek=function(t){return ke(ef,Pt,29,t,0,1)},M(Vt,"EcorePackageImpl/4",1214),E(1250,1,ai,T2),f.dk=function(t){return ae(t,193)},f.ek=function(t){return ke(Ew,Fe,193,t,0,1)},M(Vt,"EcorePackageImpl/40",1250),E(1251,1,ai,Ia),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Vt,"EcorePackageImpl/41",1251),E(1252,1,ai,E2),f.dk=function(t){return ae(t,592)},f.ek=function(t){return ke(W7e,Pt,592,t,0,1)},M(Vt,"EcorePackageImpl/42",1252),E(1253,1,ai,z5),f.dk=function(t){return!1},f.ek=function(t){return ke(PEe,Fe,2193,t,0,1)},M(Vt,"EcorePackageImpl/43",1253),E(1254,1,ai,km),f.dk=function(t){return ae(t,45)},f.ek=function(t){return ke(Eb,lG,45,t,0,1)},M(Vt,"EcorePackageImpl/44",1254),E(1215,1,ai,TN),f.dk=function(t){return ae(t,146)},f.ek=function(t){return ke(lh,Pt,146,t,0,1)},M(Vt,"EcorePackageImpl/5",1215),E(1216,1,ai,EN),f.dk=function(t){return ae(t,160)},f.ek=function(t){return ke(Vae,Pt,160,t,0,1)},M(Vt,"EcorePackageImpl/6",1216),E(1217,1,ai,CB),f.dk=function(t){return ae(t,462)},f.ek=function(t){return ke(MV,Pt,682,t,0,1)},M(Vt,"EcorePackageImpl/7",1217),E(1218,1,ai,f6),f.dk=function(t){return ae(t,575)},f.ek=function(t){return ke(K1,Pt,691,t,0,1)},M(Vt,"EcorePackageImpl/8",1218),E(1219,1,ai,CN),f.dk=function(t){return ae(t,472)},f.ek=function(t){return ke(nM,Pt,472,t,0,1)},M(Vt,"EcorePackageImpl/9",1219),E(1030,2059,bat,ZPe),f.Ki=function(t,n){mBt(this,c(n,420))},f.Oi=function(t,n){ytt(this,t,c(n,420))},M(Vt,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1030),E(1031,152,ZL,kHe),f.hj=function(){return this.a.a},M(Vt,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1031),E(1058,1057,{},NBe),M("org.eclipse.emf.ecore.plugin","EcorePlugin",1058);var bEe=Zi(Qat,"Resource");E(793,1502,Gat),f.Fl=function(t){},f.Gl=function(t){},f.Cl=function(){return!this.a&&(this.a=new oY(this)),this.a},f.Dl=function(t){var n,i,r,o,a;if(r=t.length,r>0)if(en(0,t.length),t.charCodeAt(0)==47){for(a=new Gc(4),o=1,n=1;n<r;++n)en(n,t.length),t.charCodeAt(n)==47&&(Qe(a,o==n?"":(hs(o,n,t.length),t.substr(o,n-o))),o=n+1);return Qe(a,(en(o,t.length+1),t.substr(o))),bHt(this,a)}else en(r-1,t.length),t.charCodeAt(r-1)==63&&(i=z0e(t,pl(63),r-2),i>0&&(t=(hs(0,i,t.length),t.substr(0,i))));return NUt(this,t)},f.El=function(){return this.c},f.Ib=function(){var t;return zp(this.Pm)+"@"+(t=zi(this)>>>0,t.toString(16))+" uri='"+this.d+"'"},f.b=!1,M(_oe,"ResourceImpl",793),E(1503,793,Gat,FLe),M(_oe,"BinaryResourceImpl",1503),E(1171,704,Toe),f._i=function(t){return ae(t,57)?ZNt(this,c(t,57)):ae(t,595)?new on(c(t,595).Cl()):xe(t)===xe(this.f)?c(t,18).Jc():(H6(),mI.a)},f.Ob=function(){return Vve(this)},f.a=!1,M(Ji,"EcoreUtil/ContentTreeIterator",1171),E(1504,1171,Toe,Kqe),f._i=function(t){return xe(t)===xe(this.f)?c(t,16).Jc():new iUe(c(t,57))},M(_oe,"ResourceImpl/5",1504),E(654,2071,Dat,oY),f.Gc=function(t){return this.i<=4?$S(this,t):ae(t,52)&&c(t,52).Gh()==this.a},f.Ki=function(t,n){t==this.i-1&&(this.a.b||(this.a.b=!0))},f.Mi=function(t,n){t==0?this.a.b||(this.a.b=!0):ute(this,t,n)},f.Oi=function(t,n){},f.Pi=function(t,n,i){},f.Jj=function(){return 2},f.hj=function(){return this.a},f.Kj=function(){return!0},f.Lj=function(t,n){var i;return i=c(t,52),n=i.ci(this.a,n),n},f.Mj=function(t,n){var i;return i=c(t,52),i.ci(null,n)},f.Nj=function(){return!1},f.Qi=function(){return!0},f.$i=function(t){return ke(fp,Pt,57,t,0,1)},f.Wi=function(){return!1},M(_oe,"ResourceImpl/ContentsEList",654),E(962,2041,ij,qLe),f.dd=function(t){return this.a.Ii(t)},f.gc=function(){return this.a.gc()},M(Ji,"AbstractSequentialInternalEList/1",962);var mEe,wEe,bs,vEe;E(632,1,{},oqe);var NV,_V;M(Ji,"BasicExtendedMetaData",632),E(1162,1,{},K$e),f.Hl=function(){return null},f.Il=function(){return this.a==-2&&y(this,RQt(this.d,this.b)),this.a},f.Jl=function(){return null},f.Kl=function(){return Mt(),Mt(),$s},f.ve=function(){return this.c==Aj&&j(this,IYe(this.d,this.b)),this.c},f.Ll=function(){return 0},f.a=-2,f.c=Aj,M(Ji,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1162),E(1163,1,{},MGe),f.Hl=function(){return this.a==(oS(),NV)&&H(this,jWt(this.f,this.b)),this.a},f.Il=function(){return 0},f.Jl=function(){return this.c==(oS(),NV)&&D(this,TWt(this.f,this.b)),this.c},f.Kl=function(){return!this.d&&Ae(this,uYt(this.f,this.b)),this.d},f.ve=function(){return this.e==Aj&&Ft(this,IYe(this.f,this.b)),this.e},f.Ll=function(){return this.g==-2&&Sn(this,iQt(this.f,this.b)),this.g},f.e=Aj,f.g=-2,M(Ji,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1163),E(1161,1,{},Z$e),f.b=!1,f.c=!1,M(Ji,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1161),E(1164,1,{},AGe),f.c=-2,f.e=Aj,f.f=Aj,M(Ji,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1164),E(588,630,Eo,sq),f.Jj=function(){return this.c},f.ml=function(){return!1},f.Ui=function(t,n){return n},f.c=0,M(Ji,"EDataTypeEList",588);var yEe=Zi(Ji,"FeatureMap");E(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},gr),f._c=function(t,n){UVt(this,t,c(n,76))},f.Ec=function(t){return uVt(this,c(t,76))},f.Fi=function(t){tNt(this,c(t,76))},f.Lj=function(t,n){return wEt(this,c(t,76),n)},f.Mj=function(t,n){return q0e(this,c(t,76),n)},f.Ri=function(t,n){return bKt(this,t,n)},f.Ui=function(t,n){return oen(this,t,c(n,76))},f.fd=function(t,n){return NXt(this,t,c(n,76))},f.Sj=function(t,n){return vEt(this,c(t,76),n)},f.Tj=function(t,n){return jFe(this,c(t,76),n)},f.Uj=function(t,n,i){return JHt(this,c(t,76),c(n,76),i)},f.Xi=function(t,n){return nie(this,t,c(n,76))},f.Ml=function(t,n){return qye(this,t,n)},f.ad=function(t,n){var i,r,o,a,d,b,v,x,T;for(x=new Xm(n.gc()),o=n.Jc();o.Ob();)if(r=c(o.Pb(),76),a=r.Jk(),R1(this.e,a))(!a.Qi()||!Xq(this,a,r.kd())&&!$S(x,r))&&Ln(x,r);else{for(T=rl(this.e.Ah(),a),i=c(this.g,123),d=!0,b=0;b<this.i;++b)if(v=i[b],T.$l(v.Jk())){c($x(this,b,r),76),d=!1;break}d&&Ln(x,r)}return lwe(this,t,x)},f.Fc=function(t){var n,i,r,o,a,d,b,v,x;for(v=new Xm(t.gc()),r=t.Jc();r.Ob();)if(i=c(r.Pb(),76),o=i.Jk(),R1(this.e,o))(!o.Qi()||!Xq(this,o,i.kd())&&!$S(v,i))&&Ln(v,i);else{for(x=rl(this.e.Ah(),o),n=c(this.g,123),a=!0,d=0;d<this.i;++d)if(b=n[d],x.$l(b.Jk())){c($x(this,d,i),76),a=!1;break}a&&Ln(v,i)}return dr(this,v)},f.Di=function(t){return this.j=-1,Rie(this,this.i,t)},f.Nl=function(t,n,i){return Lye(this,t,n,i)},f.Vk=function(t,n){return pL(this,t,n)},f.Ol=function(t,n,i){return uxe(this,t,n,i)},f.Pl=function(){return this},f.Ql=function(t,n){return wL(this,t,n)},f.Rl=function(t){return c(ce(this,t),76).Jk()},f.Sl=function(t){return c(ce(this,t),76).kd()},f.Tl=function(){return this.b},f.Kj=function(){return!0},f.Rj=function(){return!0},f.Ul=function(t){return!UD(this,t)},f.$i=function(t){return ke(Vvt,Hat,345,t,0,1)},f.nl=function(t){return LZ(this,t)},f.Wb=function(t){eD(this,t)},f.Vl=function(t,n){tG(this,t,n)},f.Wl=function(t){return RXe(this,t)},f.Xl=function(t){xZe(this,t)},M(Ji,"BasicFeatureMap",77),E(1939,1,qd),f.Nb=function(t){ps(this,t)},f.Rb=function(t){if(this.g==-1)throw V(new El);xq(this);try{mit(this.e,this.b,this.a,t),this.d=this.e.j,gQ(this)}catch(n){throw n=kr(n),ae(n,99)?V(new aa):V(n)}},f.Ob=function(){return Zte(this)},f.Sb=function(){return pKe(this)},f.Pb=function(){return gQ(this)},f.Tb=function(){return this.a},f.Ub=function(){var t;if(pKe(this))return xq(this),this.g=--this.a,this.sl()&&(t=X7(this.e,this.b,this.c,this.a,this.j),this.j=t),this.i=0,this.j;throw V(new Mo)},f.Vb=function(){return this.a-1},f.Qb=function(){if(this.g==-1)throw V(new El);xq(this);try{stt(this.e,this.b,this.g),this.d=this.e.j,this.g<this.a&&(--this.a,--this.c),--this.g}catch(t){throw t=kr(t),ae(t,99)?V(new aa):V(t)}},f.sl=function(){return!1},f.Wb=function(t){if(this.g==-1)throw V(new El);xq(this);try{Grt(this.e,this.b,this.g,t),this.d=this.e.j}catch(n){throw n=kr(n),ae(n,99)?V(new aa):V(n)}},f.a=0,f.c=0,f.d=0,f.f=!1,f.g=0,f.i=0,M(Ji,"FeatureMapUtil/BasicFeatureEIterator",1939),E(417,1939,qd,mS),f.Yl=function(){var t,n,i;for(i=this.e.i,t=c(this.e.g,123);this.c<i;){if(n=t[this.c],this.k.$l(n.Jk()))return this.j=this.f?n:n.kd(),this.i=2,!0;++this.c}return this.i=1,this.g=-1,!1},f.Zl=function(){var t,n;for(t=c(this.e.g,123);--this.c>=0;)if(n=t[this.c],this.k.$l(n.Jk()))return this.j=this.f?n:n.kd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},M(Ji,"BasicFeatureMap/FeatureEIterator",417),E(673,417,qd,mZ),f.sl=function(){return!0},M(Ji,"BasicFeatureMap/ResolvingFeatureEIterator",673),E(960,485,nU,QBe),f.nj=function(){return this},M(Ji,"EContentsEList/1",960),E(961,485,nU,dBe),f.sl=function(){return!1},M(Ji,"EContentsEList/2",961),E(959,289,iU,GBe),f.ul=function(t){},f.Ob=function(){return!1},f.Sb=function(){return!1},M(Ji,"EContentsEList/FeatureIteratorImpl/1",959),E(832,588,Eo,Xge),f.Li=function(){this.a=!0},f.Oj=function(){return this.a},f.Ek=function(){var t;An(this),bu(this.e)?(t=this.a,this.a=!1,yi(this.e,new bf(this.e,2,this.c,t,!1))):this.a=!1},f.a=!1,M(Ji,"EDataTypeEList/Unsettable",832),E(1937,588,Eo,ZBe),f.Qi=function(){return!0},M(Ji,"EDataTypeUniqueEList",1937),E(1938,832,Eo,KBe),f.Qi=function(){return!0},M(Ji,"EDataTypeUniqueEList/Unsettable",1938),E(147,82,Eo,Cl),f.ll=function(){return!0},f.Ui=function(t,n){return sk(this,t,c(n,57))},M(Ji,"EObjectContainmentEList/Resolving",147),E(1165,547,Eo,WBe),f.ll=function(){return!0},f.Ui=function(t,n){return sk(this,t,c(n,57))},M(Ji,"EObjectContainmentEList/Unsettable/Resolving",1165),E(760,14,Eo,P0e),f.Li=function(){this.a=!0},f.Oj=function(){return this.a},f.Ek=function(){var t;An(this),bu(this.e)?(t=this.a,this.a=!1,yi(this.e,new bf(this.e,2,this.c,t,!1))):this.a=!1},f.a=!1,M(Ji,"EObjectContainmentWithInverseEList/Unsettable",760),E(1199,760,Eo,hFe),f.ll=function(){return!0},f.Ui=function(t,n){return sk(this,t,c(n,57))},M(Ji,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1199),E(752,494,Eo,Vge),f.Li=function(){this.a=!0},f.Oj=function(){return this.a},f.Ek=function(){var t;An(this),bu(this.e)?(t=this.a,this.a=!1,yi(this.e,new bf(this.e,2,this.c,t,!1))):this.a=!1},f.a=!1,M(Ji,"EObjectEList/Unsettable",752),E(340,494,Eo,kx),f.ll=function(){return!0},f.Ui=function(t,n){return sk(this,t,c(n,57))},M(Ji,"EObjectResolvingEList",340),E(1842,752,Eo,YBe),f.ll=function(){return!0},f.Ui=function(t,n){return sk(this,t,c(n,57))},M(Ji,"EObjectResolvingEList/Unsettable",1842),E(1505,1,{},p1);var Wvt;M(Ji,"EObjectValidator",1505),E(551,494,Eo,Sq),f.gl=function(){return this.d},f.hl=function(){return this.b},f.Kj=function(){return!0},f.kl=function(){return!0},f.b=0,M(Ji,"EObjectWithInverseEList",551),E(1202,551,Eo,dFe),f.jl=function(){return!0},M(Ji,"EObjectWithInverseEList/ManyInverse",1202),E(633,551,Eo,BZ),f.Li=function(){this.a=!0},f.Oj=function(){return this.a},f.Ek=function(){var t;An(this),bu(this.e)?(t=this.a,this.a=!1,yi(this.e,new bf(this.e,2,this.c,t,!1))):this.a=!1},f.a=!1,M(Ji,"EObjectWithInverseEList/Unsettable",633),E(1201,633,Eo,gFe),f.jl=function(){return!0},M(Ji,"EObjectWithInverseEList/Unsettable/ManyInverse",1201),E(761,551,Eo,I0e),f.ll=function(){return!0},f.Ui=function(t,n){return sk(this,t,c(n,57))},M(Ji,"EObjectWithInverseResolvingEList",761),E(31,761,Eo,Ct),f.jl=function(){return!0},M(Ji,"EObjectWithInverseResolvingEList/ManyInverse",31),E(762,633,Eo,R0e),f.ll=function(){return!0},f.Ui=function(t,n){return sk(this,t,c(n,57))},M(Ji,"EObjectWithInverseResolvingEList/Unsettable",762),E(1200,762,Eo,pFe),f.jl=function(){return!0},M(Ji,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1200),E(1166,630,Eo),f.Ji=function(){return(this.b&1792)==0},f.Li=function(){this.b|=1},f.il=function(){return(this.b&4)!=0},f.Kj=function(){return(this.b&40)!=0},f.jl=function(){return(this.b&16)!=0},f.kl=function(){return(this.b&8)!=0},f.ll=function(){return(this.b&$1)!=0},f.$k=function(){return(this.b&32)!=0},f.ml=function(){return(this.b&Ga)!=0},f.dk=function(t){return this.d?fUe(this.d,t):this.Jk().Fk().dk(t)},f.Oj=function(){return(this.b&2)!=0?(this.b&1)!=0:this.i!=0},f.Qi=function(){return(this.b&128)!=0},f.Ek=function(){var t;An(this),(this.b&2)!=0&&(bu(this.e)?(t=(this.b&1)!=0,this.b&=-2,E6(this,new bf(this.e,2,Ki(this.e.Ah(),this.Jk()),t,!1))):this.b&=-2)},f.Wi=function(){return(this.b&1536)==0},f.b=0,M(Ji,"EcoreEList/Generic",1166),E(1167,1166,Eo,fQe),f.Jk=function(){return this.a},M(Ji,"EcoreEList/Dynamic",1167),E(759,67,dd,t1e),f.$i=function(t){return ED(this.a.a,t)},M(Ji,"EcoreEMap/1",759),E(758,82,Eo,Npe),f.Ki=function(t,n){bQ(this.b,c(n,138))},f.Mi=function(t,n){mWe(this.b)},f.Ni=function(t,n,i){var r;++(r=this.b,c(n,138),r).e},f.Oi=function(t,n){ane(this.b,c(n,138))},f.Pi=function(t,n,i){ane(this.b,c(i,138)),xe(i)===xe(n)&&c(i,138).zi(STt(c(n,138).jd())),bQ(this.b,c(n,138))},M(Ji,"EcoreEMap/DelegateEObjectContainmentEList",758),E(1197,145,rke,EXe),M(Ji,"EcoreEMap/Unsettable",1197),E(1198,758,Eo,bFe),f.Li=function(){this.a=!0},f.Oj=function(){return this.a},f.Ek=function(){var t;An(this),bu(this.e)?(t=this.a,this.a=!1,yi(this.e,new bf(this.e,2,this.c,t,!1))):this.a=!1},f.a=!1,M(Ji,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1198),E(1170,226,Wx,mHe),f.a=!1,f.b=!1,M(Ji,"EcoreUtil/Copier",1170),E(754,1,ns,iUe),f.Nb=function(t){ps(this,t)},f.Ob=function(){return bYe(this)},f.Pb=function(){var t;return bYe(this),t=this.b,this.b=null,t},f.Qb=function(){this.a.Qb()},M(Ji,"EcoreUtil/ProperContentIterator",754),E(1506,1505,{},K8);var Kvt;M(Ji,"EcoreValidator",1506);var Yvt;Zi(Ji,"FeatureMapUtil/Validator"),E(1270,1,{2020:1},MB),f.$l=function(t){return!0},M(Ji,"FeatureMapUtil/1",1270),E(767,1,{2020:1},xxe),f.$l=function(t){var n;return this.c==t?!0:(n=Ye(Ut(this.a,t)),n==null?NWt(this,t)?(ZUe(this.a,t,(Bt(),Dj)),!0):(ZUe(this.a,t,(Bt(),X0)),!1):n==(Bt(),Dj))},f.e=!1;var Yae;M(Ji,"FeatureMapUtil/BasicValidator",767),E(768,44,Wx,Gge),M(Ji,"FeatureMapUtil/BasicValidator/Cache",768),E(499,56,{22:1,32:1,56:1,18:1,16:1,61:1,78:1,72:1,98:1},L_),f._c=function(t,n){mit(this.c,this.b,t,n)},f.Ec=function(t){return qye(this.c,this.b,t)},f.ad=function(t,n){return YYt(this.c,this.b,t,n)},f.Fc=function(t){return HT(this,t)},f.Ei=function(t,n){jIt(this.c,this.b,t,n)},f.Uk=function(t,n){return Lye(this.c,this.b,t,n)},f.Yi=function(t){return eG(this.c,this.b,t,!1)},f.Gi=function(){return EBe(this.c,this.b)},f.Hi=function(){return cTt(this.c,this.b)},f.Ii=function(t){return NPt(this.c,this.b,t)},f.Vk=function(t,n){return Yze(this,t,n)},f.$b=function(){r4(this)},f.Gc=function(t){return Xq(this.c,this.b,t)},f.Hc=function(t){return MRt(this.c,this.b,t)},f.Xb=function(t){return eG(this.c,this.b,t,!0)},f.Dk=function(t){return this},f.bd=function(t){return FLt(this.c,this.b,t)},f.dc=function(){return DF(this)},f.Oj=function(){return!UD(this.c,this.b)},f.Jc=function(){return fIt(this.c,this.b)},f.cd=function(){return hIt(this.c,this.b)},f.dd=function(t){return DBt(this.c,this.b,t)},f.Ri=function(t,n){return Prt(this.c,this.b,t,n)},f.Si=function(t,n){DPt(this.c,this.b,t,n)},f.ed=function(t){return stt(this.c,this.b,t)},f.Kc=function(t){return tKt(this.c,this.b,t)},f.fd=function(t,n){return Grt(this.c,this.b,t,n)},f.Wb=function(t){PQ(this.c,this.b),HT(this,c(t,16))},f.gc=function(){return LBt(this.c,this.b)},f.Nc=function(){return zDt(this.c,this.b)},f.Oc=function(t){return qLt(this.c,this.b,t)},f.Ib=function(){var t,n;for(n=new vg,n.a+="[",t=EBe(this.c,this.b);Zte(t);)Zs(n,GT(gQ(t))),Zte(t)&&(n.a+=Xc);return n.a+="]",n.a},f.Ek=function(){PQ(this.c,this.b)},M(Ji,"FeatureMapUtil/FeatureEList",499),E(641,40,ZL,Zee),f.fj=function(t){return _7(this,t)},f.kj=function(t){var n,i,r,o,a,d,b;switch(this.d){case 1:case 2:{if(a=t.hj(),xe(a)===xe(this.c)&&_7(this,null)==t.fj(null))return this.g=t.gj(),t.ej()==1&&(this.d=1),!0;break}case 3:{switch(o=t.ej(),o){case 3:{if(a=t.hj(),xe(a)===xe(this.c)&&_7(this,null)==t.fj(null))return this.d=5,n=new Xm(2),Ln(n,this.g),Ln(n,t.gj()),this.g=n,!0;break}}break}case 5:{switch(o=t.ej(),o){case 3:{if(a=t.hj(),xe(a)===xe(this.c)&&_7(this,null)==t.fj(null))return i=c(this.g,18),i.Ec(t.gj()),!0;break}}break}case 4:{switch(o=t.ej(),o){case 3:{if(a=t.hj(),xe(a)===xe(this.c)&&_7(this,null)==t.fj(null))return this.d=1,this.g=t.gj(),!0;break}case 4:{if(a=t.hj(),xe(a)===xe(this.c)&&_7(this,null)==t.fj(null))return this.d=6,b=new Xm(2),Ln(b,this.n),Ln(b,t.ij()),this.n=b,d=Y(K(Hn,1),li,30,15,[this.o,t.jj()]),this.g=d,!0;break}}break}case 6:{switch(o=t.ej(),o){case 4:{if(a=t.hj(),xe(a)===xe(this.c)&&_7(this,null)==t.fj(null))return i=c(this.n,18),i.Ec(t.ij()),d=c(this.g,54),r=ke(Hn,li,30,d.length+1,15,1),wc(d,0,r,0,d.length),r[d.length]=t.jj(),this.g=r,!0;break}}break}}return!1},M(Ji,"FeatureMapUtil/FeatureENotificationImpl",641),E(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},uq),f.Ml=function(t,n){return qye(this.c,t,n)},f.Nl=function(t,n,i){return Lye(this.c,t,n,i)},f.Ol=function(t,n,i){return uxe(this.c,t,n,i)},f.Pl=function(){return this},f.Ql=function(t,n){return wL(this.c,t,n)},f.Rl=function(t){return c(eG(this.c,this.b,t,!1),76).Jk()},f.Sl=function(t){return c(eG(this.c,this.b,t,!1),76).kd()},f.Tl=function(){return this.a},f.Ul=function(t){return!UD(this.c,t)},f.Vl=function(t,n){tG(this.c,t,n)},f.Wl=function(t){return RXe(this.c,t)},f.Xl=function(t){xZe(this.c,t)},M(Ji,"FeatureMapUtil/FeatureFeatureMap",560),E(1269,1,Noe,Y$e),f.Dk=function(t){return eG(this.b,this.a,-1,t)},f.Oj=function(){return!UD(this.b,this.a)},f.Wb=function(t){tG(this.b,this.a,t)},f.Ek=function(){PQ(this.b,this.a)},M(Ji,"FeatureMapUtil/FeatureValue",1269);var Wk,Zae,efe,Kk,Zvt,vI=Zi(fU,"AnyType");E(677,63,B1,kY),M(fU,"InvalidDatatypeValueException",677);var DV=Zi(fU,Jat),yI=Zi(fU,Vat),xEe=Zi(fU,Xat),eyt,sc,kEe,Hb,tyt,nyt,iyt,ryt,syt,oyt,cyt,lyt,uyt,ayt,fyt,I3,hyt,R3,cM,dyt,Qw,xI,kI,gyt,lM,uM;E(836,505,{110:1,95:1,94:1,57:1,52:1,101:1,849:1},b1e),f.Ih=function(t,n,i){switch(t){case 0:return i?(!this.c&&(this.c=new gr(this,0)),this.c):(!this.c&&(this.c=new gr(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new gr(this,0)),c(Ac(this.c,(Ai(),Hb)),164)):(!this.c&&(this.c=new gr(this,0)),c(c(Ac(this.c,(Ai(),Hb)),164),222)).Tl();case 2:return i?(!this.b&&(this.b=new gr(this,2)),this.b):(!this.b&&(this.b=new gr(this,2)),this.b.b)}return ba(this,t-bn(this.fi()),Dt((this.j&2)==0?this.fi():(!this.k&&(this.k=new ua),this.k).Lk(),t),n,i)},f.Rh=function(t,n,i){var r;switch(n){case 0:return!this.c&&(this.c=new gr(this,0)),pL(this.c,t,i);case 1:return(!this.c&&(this.c=new gr(this,0)),c(c(Ac(this.c,(Ai(),Hb)),164),72)).Vk(t,i);case 2:return!this.b&&(this.b=new gr(this,2)),pL(this.b,t,i)}return r=c(Dt((this.j&2)==0?this.fi():(!this.k&&(this.k=new ua),this.k).Lk(),n),69),r.uk().yk(this,mme(this),n-bn(this.fi()),t,i)},f.Th=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new gr(this,0)),c(Ac(this.c,(Ai(),Hb)),164)).dc();case 2:return!!this.b&&this.b.i!=0}return ga(this,t-bn(this.fi()),Dt((this.j&2)==0?this.fi():(!this.k&&(this.k=new ua),this.k).Lk(),t))},f.$h=function(t,n){switch(t){case 0:!this.c&&(this.c=new gr(this,0)),eD(this.c,n);return;case 1:(!this.c&&(this.c=new gr(this,0)),c(c(Ac(this.c,(Ai(),Hb)),164),222)).Wb(n);return;case 2:!this.b&&(this.b=new gr(this,2)),eD(this.b,n);return}ka(this,t-bn(this.fi()),Dt((this.j&2)==0?this.fi():(!this.k&&(this.k=new ua),this.k).Lk(),t),n)},f.fi=function(){return Ai(),kEe},f.hi=function(t){switch(t){case 0:!this.c&&(this.c=new gr(this,0)),An(this.c);return;case 1:(!this.c&&(this.c=new gr(this,0)),c(Ac(this.c,(Ai(),Hb)),164)).$b();return;case 2:!this.b&&(this.b=new gr(this,2)),An(this.b);return}xa(this,t-bn(this.fi()),Dt((this.j&2)==0?this.fi():(!this.k&&(this.k=new ua),this.k).Lk(),t))},f.Ib=function(){var t;return(this.j&4)!=0?kf(this):(t=new Ba(kf(this)),t.a+=" (mixed: ",BT(t,this.c),t.a+=", anyAttribute: ",BT(t,this.b),t.a+=")",t.a)},M(Lr,"AnyTypeImpl",836),E(678,505,{110:1,95:1,94:1,57:1,52:1,101:1,2098:1,678:1},PB),f.Ih=function(t,n,i){switch(t){case 0:return this.a;case 1:return this.b}return ba(this,t-bn((Ai(),I3)),Dt((this.j&2)==0?I3:(!this.k&&(this.k=new ua),this.k).Lk(),t),n,i)},f.Th=function(t){switch(t){case 0:return this.a!=null;case 1:return this.b!=null}return ga(this,t-bn((Ai(),I3)),Dt((this.j&2)==0?I3:(!this.k&&(this.k=new ua),this.k).Lk(),t))},f.$h=function(t,n){switch(t){case 0:Yi(this,qn(n));return;case 1:tl(this,qn(n));return}ka(this,t-bn((Ai(),I3)),Dt((this.j&2)==0?I3:(!this.k&&(this.k=new ua),this.k).Lk(),t),n)},f.fi=function(){return Ai(),I3},f.hi=function(t){switch(t){case 0:this.a=null;return;case 1:this.b=null;return}xa(this,t-bn((Ai(),I3)),Dt((this.j&2)==0?I3:(!this.k&&(this.k=new ua),this.k).Lk(),t))},f.Ib=function(){var t;return(this.j&4)!=0?kf(this):(t=new Ba(kf(this)),t.a+=" (data: ",Zs(t,this.a),t.a+=", target: ",Zs(t,this.b),t.a+=")",t.a)},f.a=null,f.b=null,M(Lr,"ProcessingInstructionImpl",678),E(679,836,{110:1,95:1,94:1,57:1,52:1,101:1,849:1,2099:1,679:1},APe),f.Ih=function(t,n,i){switch(t){case 0:return i?(!this.c&&(this.c=new gr(this,0)),this.c):(!this.c&&(this.c=new gr(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new gr(this,0)),c(Ac(this.c,(Ai(),Hb)),164)):(!this.c&&(this.c=new gr(this,0)),c(c(Ac(this.c,(Ai(),Hb)),164),222)).Tl();case 2:return i?(!this.b&&(this.b=new gr(this,2)),this.b):(!this.b&&(this.b=new gr(this,2)),this.b.b);case 3:return!this.c&&(this.c=new gr(this,0)),qn(wL(this.c,(Ai(),cM),!0));case 4:return B0e(this.a,(!this.c&&(this.c=new gr(this,0)),qn(wL(this.c,(Ai(),cM),!0))));case 5:return this.a}return ba(this,t-bn((Ai(),R3)),Dt((this.j&2)==0?R3:(!this.k&&(this.k=new ua),this.k).Lk(),t),n,i)},f.Th=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new gr(this,0)),c(Ac(this.c,(Ai(),Hb)),164)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new gr(this,0)),qn(wL(this.c,(Ai(),cM),!0))!=null;case 4:return B0e(this.a,(!this.c&&(this.c=new gr(this,0)),qn(wL(this.c,(Ai(),cM),!0))))!=null;case 5:return!!this.a}return ga(this,t-bn((Ai(),R3)),Dt((this.j&2)==0?R3:(!this.k&&(this.k=new ua),this.k).Lk(),t))},f.$h=function(t,n){switch(t){case 0:!this.c&&(this.c=new gr(this,0)),eD(this.c,n);return;case 1:(!this.c&&(this.c=new gr(this,0)),c(c(Ac(this.c,(Ai(),Hb)),164),222)).Wb(n);return;case 2:!this.b&&(this.b=new gr(this,2)),eD(this.b,n);return;case 3:jbe(this,qn(n));return;case 4:jbe(this,$0e(this.a,n));return;case 5:Hr(this,c(n,160));return}ka(this,t-bn((Ai(),R3)),Dt((this.j&2)==0?R3:(!this.k&&(this.k=new ua),this.k).Lk(),t),n)},f.fi=function(){return Ai(),R3},f.hi=function(t){switch(t){case 0:!this.c&&(this.c=new gr(this,0)),An(this.c);return;case 1:(!this.c&&(this.c=new gr(this,0)),c(Ac(this.c,(Ai(),Hb)),164)).$b();return;case 2:!this.b&&(this.b=new gr(this,2)),An(this.b);return;case 3:!this.c&&(this.c=new gr(this,0)),tG(this.c,(Ai(),cM),null);return;case 4:jbe(this,$0e(this.a,null));return;case 5:this.a=null;return}xa(this,t-bn((Ai(),R3)),Dt((this.j&2)==0?R3:(!this.k&&(this.k=new ua),this.k).Lk(),t))},M(Lr,"SimpleAnyTypeImpl",679),E(680,505,{110:1,95:1,94:1,57:1,52:1,101:1,2100:1,680:1},NPe),f.Ih=function(t,n,i){switch(t){case 0:return i?(!this.a&&(this.a=new gr(this,0)),this.a):(!this.a&&(this.a=new gr(this,0)),this.a.b);case 1:return i?(!this.b&&(this.b=new Nl((At(),zs),Zo,this,1)),this.b):(!this.b&&(this.b=new Nl((At(),zs),Zo,this,1)),gD(this.b));case 2:return i?(!this.c&&(this.c=new Nl((At(),zs),Zo,this,2)),this.c):(!this.c&&(this.c=new Nl((At(),zs),Zo,this,2)),gD(this.c));case 3:return!this.a&&(this.a=new gr(this,0)),Ac(this.a,(Ai(),xI));case 4:return!this.a&&(this.a=new gr(this,0)),Ac(this.a,(Ai(),kI));case 5:return!this.a&&(this.a=new gr(this,0)),Ac(this.a,(Ai(),lM));case 6:return!this.a&&(this.a=new gr(this,0)),Ac(this.a,(Ai(),uM))}return ba(this,t-bn((Ai(),Qw)),Dt((this.j&2)==0?Qw:(!this.k&&(this.k=new ua),this.k).Lk(),t),n,i)},f.Rh=function(t,n,i){var r;switch(n){case 0:return!this.a&&(this.a=new gr(this,0)),pL(this.a,t,i);case 1:return!this.b&&(this.b=new Nl((At(),zs),Zo,this,1)),YF(this.b,t,i);case 2:return!this.c&&(this.c=new Nl((At(),zs),Zo,this,2)),YF(this.c,t,i);case 5:return!this.a&&(this.a=new gr(this,0)),Yze(Ac(this.a,(Ai(),lM)),t,i)}return r=c(Dt((this.j&2)==0?(Ai(),Qw):(!this.k&&(this.k=new ua),this.k).Lk(),n),69),r.uk().yk(this,mme(this),n-bn((Ai(),Qw)),t,i)},f.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 gr(this,0)),!DF(Ac(this.a,(Ai(),xI)));case 4:return!this.a&&(this.a=new gr(this,0)),!DF(Ac(this.a,(Ai(),kI)));case 5:return!this.a&&(this.a=new gr(this,0)),!DF(Ac(this.a,(Ai(),lM)));case 6:return!this.a&&(this.a=new gr(this,0)),!DF(Ac(this.a,(Ai(),uM)))}return ga(this,t-bn((Ai(),Qw)),Dt((this.j&2)==0?Qw:(!this.k&&(this.k=new ua),this.k).Lk(),t))},f.$h=function(t,n){switch(t){case 0:!this.a&&(this.a=new gr(this,0)),eD(this.a,n);return;case 1:!this.b&&(this.b=new Nl((At(),zs),Zo,this,1)),IH(this.b,n);return;case 2:!this.c&&(this.c=new Nl((At(),zs),Zo,this,2)),IH(this.c,n);return;case 3:!this.a&&(this.a=new gr(this,0)),r4(Ac(this.a,(Ai(),xI))),!this.a&&(this.a=new gr(this,0)),HT(Ac(this.a,xI),c(n,18));return;case 4:!this.a&&(this.a=new gr(this,0)),r4(Ac(this.a,(Ai(),kI))),!this.a&&(this.a=new gr(this,0)),HT(Ac(this.a,kI),c(n,18));return;case 5:!this.a&&(this.a=new gr(this,0)),r4(Ac(this.a,(Ai(),lM))),!this.a&&(this.a=new gr(this,0)),HT(Ac(this.a,lM),c(n,18));return;case 6:!this.a&&(this.a=new gr(this,0)),r4(Ac(this.a,(Ai(),uM))),!this.a&&(this.a=new gr(this,0)),HT(Ac(this.a,uM),c(n,18));return}ka(this,t-bn((Ai(),Qw)),Dt((this.j&2)==0?Qw:(!this.k&&(this.k=new ua),this.k).Lk(),t),n)},f.fi=function(){return Ai(),Qw},f.hi=function(t){switch(t){case 0:!this.a&&(this.a=new gr(this,0)),An(this.a);return;case 1:!this.b&&(this.b=new Nl((At(),zs),Zo,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new Nl((At(),zs),Zo,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new gr(this,0)),r4(Ac(this.a,(Ai(),xI)));return;case 4:!this.a&&(this.a=new gr(this,0)),r4(Ac(this.a,(Ai(),kI)));return;case 5:!this.a&&(this.a=new gr(this,0)),r4(Ac(this.a,(Ai(),lM)));return;case 6:!this.a&&(this.a=new gr(this,0)),r4(Ac(this.a,(Ai(),uM)));return}xa(this,t-bn((Ai(),Qw)),Dt((this.j&2)==0?Qw:(!this.k&&(this.k=new ua),this.k).Lk(),t))},f.Ib=function(){var t;return(this.j&4)!=0?kf(this):(t=new Ba(kf(this)),t.a+=" (mixed: ",BT(t,this.a),t.a+=")",t.a)},M(Lr,"XMLTypeDocumentRootImpl",680),E(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},Md),f.oi=function(t,n){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 n==null?null:To(n);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return qn(n);case 6:return P7t(c(n,198));case 12:case 47:case 49:case 11:return _st(this,t,n);case 13:return n==null?null:rZt(c(n,249));case 15:case 14:return n==null?null:UAt(de(be(n)));case 17:return fet((Ai(),n));case 18:return fet(n);case 21:case 20:return n==null?null:JAt(c(n,165).a);case 27:return I7t(c(n,198));case 30:return kZe((Ai(),c(n,16)));case 31:return kZe(c(n,16));case 40:return L7t((Ai(),n));case 42:return het((Ai(),n));case 43:return het(n);case 59:case 48:return D7t((Ai(),n));default:throw V(new qt(Tj+t.ve()+Sw))}},f.pi=function(t){var n,i,r,o,a;switch(t.G==-1&&(t.G=(i=Bu(t),i?Rg(i.si(),t):-1)),t.G){case 0:return n=new b1e,n;case 1:return r=new PB,r;case 2:return o=new APe,o;case 3:return a=new NPe,a;default:throw V(new qt(poe+t.zb+Sw))}},f.qi=function(t,n){var i,r,o,a,d,b,v,x,T,A,L,I,z,Q,W,re;switch(t.fk()){case 5:case 52:case 4:return n;case 6:return dFt(n);case 8:case 7:return n==null?null:ZHt(n);case 9:return n==null?null:kD(Hu((r=Lc(n,!0),r.length>0&&(en(0,r.length),r.charCodeAt(0)==43)?(en(1,r.length+1),r.substr(1)):r),-128,127)<<24>>24);case 10:return n==null?null:kD(Hu((o=Lc(n,!0),o.length>0&&(en(0,o.length),o.charCodeAt(0)==43)?(en(1,o.length+1),o.substr(1)):o),-128,127)<<24>>24);case 11:return qn(dw(this,(Ai(),iyt),n));case 12:return qn(dw(this,(Ai(),ryt),n));case 13:return n==null?null:new R1e(Lc(n,!0));case 15:case 14:return hVt(n);case 16:return qn(dw(this,(Ai(),syt),n));case 17:return SYe((Ai(),n));case 18:return SYe(n);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Lc(n,!0);case 21:case 20:return kVt(n);case 22:return qn(dw(this,(Ai(),oyt),n));case 23:return qn(dw(this,(Ai(),cyt),n));case 24:return qn(dw(this,(Ai(),lyt),n));case 25:return qn(dw(this,(Ai(),uyt),n));case 26:return qn(dw(this,(Ai(),ayt),n));case 27:return iFt(n);case 30:return jYe((Ai(),n));case 31:return jYe(n);case 32:return n==null?null:$e(Hu((T=Lc(n,!0),T.length>0&&(en(0,T.length),T.charCodeAt(0)==43)?(en(1,T.length+1),T.substr(1)):T),ls,gi));case 33:return n==null?null:new x0((A=Lc(n,!0),A.length>0&&(en(0,A.length),A.charCodeAt(0)==43)?(en(1,A.length+1),A.substr(1)):A));case 34:return n==null?null:$e(Hu((L=Lc(n,!0),L.length>0&&(en(0,L.length),L.charCodeAt(0)==43)?(en(1,L.length+1),L.substr(1)):L),ls,gi));case 36:return n==null?null:gv(sG((I=Lc(n,!0),I.length>0&&(en(0,I.length),I.charCodeAt(0)==43)?(en(1,I.length+1),I.substr(1)):I)));case 37:return n==null?null:gv(sG((z=Lc(n,!0),z.length>0&&(en(0,z.length),z.charCodeAt(0)==43)?(en(1,z.length+1),z.substr(1)):z)));case 40:return eqt((Ai(),n));case 42:return TYe((Ai(),n));case 43:return TYe(n);case 44:return n==null?null:new x0((Q=Lc(n,!0),Q.length>0&&(en(0,Q.length),Q.charCodeAt(0)==43)?(en(1,Q.length+1),Q.substr(1)):Q));case 45:return n==null?null:new x0((W=Lc(n,!0),W.length>0&&(en(0,W.length),W.charCodeAt(0)==43)?(en(1,W.length+1),W.substr(1)):W));case 46:return Lc(n,!1);case 47:return qn(dw(this,(Ai(),fyt),n));case 59:case 48:return ZFt((Ai(),n));case 49:return qn(dw(this,(Ai(),hyt),n));case 50:return n==null?null:TS(Hu((re=Lc(n,!0),re.length>0&&(en(0,re.length),re.charCodeAt(0)==43)?(en(1,re.length+1),re.substr(1)):re),cU,32767)<<16>>16);case 51:return n==null?null:TS(Hu((a=Lc(n,!0),a.length>0&&(en(0,a.length),a.charCodeAt(0)==43)?(en(1,a.length+1),a.substr(1)):a),cU,32767)<<16>>16);case 53:return qn(dw(this,(Ai(),dyt),n));case 55:return n==null?null:TS(Hu((d=Lc(n,!0),d.length>0&&(en(0,d.length),d.charCodeAt(0)==43)?(en(1,d.length+1),d.substr(1)):d),cU,32767)<<16>>16);case 56:return n==null?null:TS(Hu((b=Lc(n,!0),b.length>0&&(en(0,b.length),b.charCodeAt(0)==43)?(en(1,b.length+1),b.substr(1)):b),cU,32767)<<16>>16);case 57:return n==null?null:gv(sG((v=Lc(n,!0),v.length>0&&(en(0,v.length),v.charCodeAt(0)==43)?(en(1,v.length+1),v.substr(1)):v)));case 58:return n==null?null:gv(sG((x=Lc(n,!0),x.length>0&&(en(0,x.length),x.charCodeAt(0)==43)?(en(1,x.length+1),x.substr(1)):x)));case 60:return n==null?null:$e(Hu((i=Lc(n,!0),i.length>0&&(en(0,i.length),i.charCodeAt(0)==43)?(en(1,i.length+1),i.substr(1)):i),ls,gi));case 61:return n==null?null:$e(Hu(Lc(n,!0),ls,gi));default:throw V(new qt(Tj+t.ve()+Sw))}};var pyt,OEe,byt,SEe;M(Lr,"XMLTypeFactoryImpl",2007),E(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},$He),f.N=!1,f.O=!1;var myt=!1;M(Lr,"XMLTypePackageImpl",589),E(1940,1,{843:1},AB),f.Ik=function(){return Zye(),Tyt},M(Lr,"XMLTypePackageImpl/1",1940),E(1949,1,ai,NB),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/10",1949),E(1950,1,ai,bK),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/11",1950),E(1951,1,ai,C2),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/12",1951),E(1952,1,ai,q8),f.dk=function(t){return $2(t)},f.ek=function(t){return ke(jr,Fe,347,t,7,1)},M(Lr,"XMLTypePackageImpl/13",1952),E(1953,1,ai,MN),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/14",1953),E(1954,1,ai,F5),f.dk=function(t){return ae(t,16)},f.ek=function(t){return ke(Ju,Mv,16,t,0,1)},M(Lr,"XMLTypePackageImpl/15",1954),E(1955,1,ai,_B),f.dk=function(t){return ae(t,16)},f.ek=function(t){return ke(Ju,Mv,16,t,0,1)},M(Lr,"XMLTypePackageImpl/16",1955),E(1956,1,ai,DB),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/17",1956),E(1957,1,ai,LB),f.dk=function(t){return ae(t,165)},f.ek=function(t){return ke(Lj,Fe,165,t,0,1)},M(Lr,"XMLTypePackageImpl/18",1957),E(1958,1,ai,H8),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/19",1958),E(1941,1,ai,AN),f.dk=function(t){return ae(t,849)},f.ek=function(t){return ke(vI,Pt,849,t,0,1)},M(Lr,"XMLTypePackageImpl/2",1941),E(1959,1,ai,mK),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/20",1959),E(1960,1,ai,wK),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/21",1960),E(1961,1,ai,vK),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/22",1961),E(1962,1,ai,IB),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/23",1962),E(1963,1,ai,RB),f.dk=function(t){return ae(t,198)},f.ek=function(t){return ke($l,Fe,198,t,0,2)},M(Lr,"XMLTypePackageImpl/24",1963),E(1964,1,ai,q5),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/25",1964),E(1965,1,ai,Q8),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/26",1965),E(1966,1,ai,$B),f.dk=function(t){return ae(t,16)},f.ek=function(t){return ke(Ju,Mv,16,t,0,1)},M(Lr,"XMLTypePackageImpl/27",1966),E(1967,1,ai,BB),f.dk=function(t){return ae(t,16)},f.ek=function(t){return ke(Ju,Mv,16,t,0,1)},M(Lr,"XMLTypePackageImpl/28",1967),E(1968,1,ai,zB),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/29",1968),E(1942,1,ai,FB),f.dk=function(t){return ae(t,678)},f.ek=function(t){return ke(DV,Pt,2098,t,0,1)},M(Lr,"XMLTypePackageImpl/3",1942),E(1969,1,ai,qB),f.dk=function(t){return ae(t,15)},f.ek=function(t){return ke(Pr,Fe,15,t,0,1)},M(Lr,"XMLTypePackageImpl/30",1969),E(1970,1,ai,HB),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/31",1970),E(1971,1,ai,G8),f.dk=function(t){return ae(t,192)},f.ek=function(t){return ke(Tw,Fe,192,t,0,1)},M(Lr,"XMLTypePackageImpl/32",1971),E(1972,1,ai,QB),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/33",1972),E(1973,1,ai,GB),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/34",1973),E(1974,1,ai,Tc),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/35",1974),E(1975,1,ai,NN),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/36",1975),E(1976,1,ai,yK),f.dk=function(t){return ae(t,16)},f.ek=function(t){return ke(Ju,Mv,16,t,0,1)},M(Lr,"XMLTypePackageImpl/37",1976),E(1977,1,ai,UB),f.dk=function(t){return ae(t,16)},f.ek=function(t){return ke(Ju,Mv,16,t,0,1)},M(Lr,"XMLTypePackageImpl/38",1977),E(1978,1,ai,xK),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/39",1978),E(1943,1,ai,kK),f.dk=function(t){return ae(t,679)},f.ek=function(t){return ke(yI,Pt,2099,t,0,1)},M(Lr,"XMLTypePackageImpl/4",1943),E(1979,1,ai,OK),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/40",1979),E(1980,1,ai,U8),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/41",1980),E(1981,1,ai,H5),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/42",1981),E(1982,1,ai,_N),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/43",1982),E(1983,1,ai,J8),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/44",1983),E(1984,1,ai,DN),f.dk=function(t){return ae(t,193)},f.ek=function(t){return ke(Ew,Fe,193,t,0,1)},M(Lr,"XMLTypePackageImpl/45",1984),E(1985,1,ai,M2),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/46",1985),E(1986,1,ai,Pp),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/47",1986),E(1987,1,ai,h6),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/48",1987),E(1988,1,ai,SK),f.dk=function(t){return ae(t,193)},f.ek=function(t){return ke(Ew,Fe,193,t,0,1)},M(Lr,"XMLTypePackageImpl/49",1988),E(1944,1,ai,JB),f.dk=function(t){return ae(t,680)},f.ek=function(t){return ke(xEe,Pt,2100,t,0,1)},M(Lr,"XMLTypePackageImpl/5",1944),E(1989,1,ai,VB),f.dk=function(t){return ae(t,192)},f.ek=function(t){return ke(Tw,Fe,192,t,0,1)},M(Lr,"XMLTypePackageImpl/50",1989),E(1990,1,ai,XB),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/51",1990),E(1991,1,ai,WB),f.dk=function(t){return ae(t,15)},f.ek=function(t){return ke(Pr,Fe,15,t,0,1)},M(Lr,"XMLTypePackageImpl/52",1991),E(1945,1,ai,jK),f.dk=function(t){return Yr(t)},f.ek=function(t){return ke(tt,Fe,2,t,6,1)},M(Lr,"XMLTypePackageImpl/6",1945),E(1946,1,ai,LN),f.dk=function(t){return ae(t,198)},f.ek=function(t){return ke($l,Fe,198,t,0,2)},M(Lr,"XMLTypePackageImpl/7",1946),E(1947,1,ai,KB),f.dk=function(t){return R2(t)},f.ek=function(t){return ke(or,Fe,476,t,8,1)},M(Lr,"XMLTypePackageImpl/8",1947),E(1948,1,ai,YB),f.dk=function(t){return ae(t,224)},f.ek=function(t){return ke(xk,Fe,224,t,0,1)},M(Lr,"XMLTypePackageImpl/9",1948);var qh,r0,aM,LV,ne;E(53,63,B1,Un),M(Gg,"RegEx/ParseException",53),E(828,1,{},ZB),f._l=function(t){return t<this.j&&ws(this.i,t)==63},f.am=function(){var t,n,i,r,o;if(this.c!=10)throw V(new Un(Xn((Fn(),ZG))));switch(t=this.a,t){case 101:t=27;break;case 102:t=12;break;case 110:t=10;break;case 114:t=13;break;case 116:t=9;break;case 120:if(wi(this),this.c!=0)throw V(new Un(Xn((Fn(),Qg))));if(this.a==123){o=0,i=0;do{if(wi(this),this.c!=0)throw V(new Un(Xn((Fn(),Qg))));if((o=db(this.a))<0)break;if(i>i*16)throw V(new Un(Xn((Fn(),oat))));i=i*16+o}while(!0);if(this.a!=125)throw V(new Un(Xn((Fn(),cat))));if(i>Nj)throw V(new Un(Xn((Fn(),lat))));t=i}else{if(o=0,this.c!=0||(o=db(this.a))<0)throw V(new Un(Xn((Fn(),Qg))));if(i=o,wi(this),this.c!=0||(o=db(this.a))<0)throw V(new Un(Xn((Fn(),Qg))));i=i*16+o,t=i}break;case 117:if(r=0,wi(this),this.c!=0||(r=db(this.a))<0)throw V(new Un(Xn((Fn(),Qg))));if(n=r,wi(this),this.c!=0||(r=db(this.a))<0)throw V(new Un(Xn((Fn(),Qg))));if(n=n*16+r,wi(this),this.c!=0||(r=db(this.a))<0)throw V(new Un(Xn((Fn(),Qg))));if(n=n*16+r,wi(this),this.c!=0||(r=db(this.a))<0)throw V(new Un(Xn((Fn(),Qg))));n=n*16+r,t=n;break;case 118:if(wi(this),this.c!=0||(r=db(this.a))<0)throw V(new Un(Xn((Fn(),Qg))));if(n=r,wi(this),this.c!=0||(r=db(this.a))<0)throw V(new Un(Xn((Fn(),Qg))));if(n=n*16+r,wi(this),this.c!=0||(r=db(this.a))<0)throw V(new Un(Xn((Fn(),Qg))));if(n=n*16+r,wi(this),this.c!=0||(r=db(this.a))<0)throw V(new Un(Xn((Fn(),Qg))));if(n=n*16+r,wi(this),this.c!=0||(r=db(this.a))<0)throw V(new Un(Xn((Fn(),Qg))));if(n=n*16+r,wi(this),this.c!=0||(r=db(this.a))<0)throw V(new Un(Xn((Fn(),Qg))));if(n=n*16+r,n>Nj)throw V(new Un(Xn((Fn(),"parser.descappe.4"))));t=n;break;case 65:case 90:case 122:throw V(new Un(Xn((Fn(),uat))))}return t},f.bm=function(t){var n,i;switch(t){case 100:i=(this.e&32)==32?q0("Nd",!0):(vi(),PV);break;case 68:i=(this.e&32)==32?q0("Nd",!1):(vi(),AEe);break;case 119:i=(this.e&32)==32?q0("IsWord",!0):(vi(),y9);break;case 87:i=(this.e&32)==32?q0("IsWord",!1):(vi(),_Ee);break;case 115:i=(this.e&32)==32?q0("IsSpace",!0):(vi(),Yk);break;case 83:i=(this.e&32)==32?q0("IsSpace",!1):(vi(),NEe);break;default:throw V(new Ao((n=t,uft+n.toString(16))))}return i},f.cm=function(t){var n,i,r,o,a,d,b,v,x,T,A,L;for(this.b=1,wi(this),n=null,this.c==0&&this.a==94?(wi(this),t?T=(vi(),vi(),new $u(5)):(n=(vi(),vi(),new $u(4)),Dc(n,0,Nj),T=new $u(4))):T=(vi(),vi(),new $u(4)),o=!0;(L=this.c)!=1&&!(L==0&&this.a==93&&!o);){if(o=!1,i=this.a,r=!1,L==10)switch(i){case 100:case 68:case 119:case 87:case 115:case 83:jv(T,this.bm(i)),r=!0;break;case 105:case 73:case 99:case 67:i=this.sm(T,i),i<0&&(r=!0);break;case 112:case 80:if(A=Uve(this,i),!A)throw V(new Un(Xn((Fn(),Coe))));jv(T,A),r=!0;break;default:i=this.am()}else if(L==20){if(d=F6(this.i,58,this.d),d<0)throw V(new Un(Xn((Fn(),Y4e))));if(b=!0,ws(this.i,this.d)==94&&(++this.d,b=!1),a=Fa(this.i,this.d,d),v=HJe(a,b,(this.e&512)==512),!v)throw V(new Un(Xn((Fn(),tat))));if(jv(T,v),r=!0,d+1>=this.j||ws(this.i,d+1)!=93)throw V(new Un(Xn((Fn(),Y4e))));this.d=d+2}if(wi(this),!r)if(this.c!=0||this.a!=45)Dc(T,i,i);else{if(wi(this),(L=this.c)==1)throw V(new Un(Xn((Fn(),eU))));L==0&&this.a==93?(Dc(T,i,i),Dc(T,45,45)):(x=this.a,L==10&&(x=this.am()),wi(this),Dc(T,i,x))}(this.e&Ga)==Ga&&this.c==0&&this.a==44&&wi(this)}if(this.c==1)throw V(new Un(Xn((Fn(),eU))));return n&&(fE(n,T),T=n),Hx(T),lE(T),this.b=0,wi(this),T},f.dm=function(){var t,n,i,r;for(i=this.cm(!1);(r=this.c)!=7;)if(t=this.a,r==0&&(t==45||t==38)||r==4){if(wi(this),this.c!=9)throw V(new Un(Xn((Fn(),iat))));if(n=this.cm(!1),r==4)jv(i,n);else if(t==45)fE(i,n);else if(t==38)Cst(i,n);else throw V(new Ao("ASSERT"))}else throw V(new Un(Xn((Fn(),rat))));return wi(this),i},f.em=function(){var t,n;return t=this.a-48,n=(vi(),vi(),new Ree(12,null,t)),!this.g&&(this.g=new Bz),$z(this.g,new n1e(t)),wi(this),n},f.fm=function(){return wi(this),vi(),yyt},f.gm=function(){return wi(this),vi(),vyt},f.hm=function(){throw V(new Un(Xn((Fn(),Ta))))},f.im=function(){throw V(new Un(Xn((Fn(),Ta))))},f.jm=function(){return wi(this),C$t()},f.km=function(){return wi(this),vi(),kyt},f.lm=function(){return wi(this),vi(),Syt},f.mm=function(){var t;if(this.d>=this.j||((t=ws(this.i,this.d++))&65504)!=64)throw V(new Un(Xn((Fn(),Yut))));return wi(this),vi(),vi(),new Dd(0,t-64)},f.nm=function(){return wi(this),rYt()},f.om=function(){return wi(this),vi(),jyt},f.pm=function(){var t;return t=(vi(),vi(),new Dd(0,105)),wi(this),t},f.qm=function(){return wi(this),vi(),Oyt},f.rm=function(){return wi(this),vi(),xyt},f.sm=function(t,n){return this.am()},f.tm=function(){return wi(this),vi(),CEe},f.um=function(){var t,n,i,r,o;if(this.d+1>=this.j)throw V(new Un(Xn((Fn(),Xut))));if(r=-1,n=null,t=ws(this.i,this.d),49<=t&&t<=57){if(r=t-48,!this.g&&(this.g=new Bz),$z(this.g,new n1e(r)),++this.d,ws(this.i,this.d)!=41)throw V(new Un(Xn((Fn(),jb))));++this.d}else switch(t==63&&--this.d,wi(this),n=jxe(this),n.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw V(new Un(Xn((Fn(),jb))));break;default:throw V(new Un(Xn((Fn(),Wut))))}if(wi(this),o=sw(this),i=null,o.e==2){if(o.Nm()!=2)throw V(new Un(Xn((Fn(),Kut))));i=o.Jm(1),o=o.Jm(0)}if(this.c!=7)throw V(new Un(Xn((Fn(),jb))));return wi(this),vi(),vi(),new $Ve(r,n,o,i)},f.vm=function(){return wi(this),vi(),MEe},f.wm=function(){var t;if(wi(this),t=jq(24,sw(this)),this.c!=7)throw V(new Un(Xn((Fn(),jb))));return wi(this),t},f.xm=function(){var t;if(wi(this),t=jq(20,sw(this)),this.c!=7)throw V(new Un(Xn((Fn(),jb))));return wi(this),t},f.ym=function(){var t;if(wi(this),t=jq(22,sw(this)),this.c!=7)throw V(new Un(Xn((Fn(),jb))));return wi(this),t},f.zm=function(){var t,n,i,r,o;for(t=0,i=0,n=-1;this.d<this.j&&(n=ws(this.i,this.d),o=Yve(n),o!=0);)t|=o,++this.d;if(this.d>=this.j)throw V(new Un(Xn((Fn(),W4e))));if(n==45){for(++this.d;this.d<this.j&&(n=ws(this.i,this.d),o=Yve(n),o!=0);)i|=o,++this.d;if(this.d>=this.j)throw V(new Un(Xn((Fn(),W4e))))}if(n==58){if(++this.d,wi(this),r=fHe(sw(this),t,i),this.c!=7)throw V(new Un(Xn((Fn(),jb))));wi(this)}else if(n==41)++this.d,wi(this),r=fHe(sw(this),t,i);else throw V(new Un(Xn((Fn(),Vut))));return r},f.Am=function(){var t;if(wi(this),t=jq(21,sw(this)),this.c!=7)throw V(new Un(Xn((Fn(),jb))));return wi(this),t},f.Bm=function(){var t;if(wi(this),t=jq(23,sw(this)),this.c!=7)throw V(new Un(Xn((Fn(),jb))));return wi(this),t},f.Cm=function(){var t,n;if(wi(this),t=this.f++,n=fee(sw(this),t),this.c!=7)throw V(new Un(Xn((Fn(),jb))));return wi(this),n},f.Dm=function(){var t;if(wi(this),t=fee(sw(this),0),this.c!=7)throw V(new Un(Xn((Fn(),jb))));return wi(this),t},f.Em=function(t){return wi(this),this.c==5?(wi(this),mq(t,(vi(),vi(),new nv(9,t)))):mq(t,(vi(),vi(),new nv(3,t)))},f.Fm=function(t){var n;return wi(this),n=(vi(),vi(),new qT(2)),this.c==5?(wi(this),bb(n,hM),bb(n,t)):(bb(n,t),bb(n,hM)),n},f.Gm=function(t){return wi(this),this.c==5?(wi(this),vi(),vi(),new nv(9,t)):(vi(),vi(),new nv(3,t))},f.a=0,f.b=0,f.c=0,f.d=0,f.e=0,f.f=1,f.g=null,f.j=0,M(Gg,"RegEx/RegexParser",828),E(1927,828,{},_Pe),f._l=function(t){return!1},f.am=function(){return Aye(this)},f.bm=function(t){return VS(t)},f.cm=function(t){return kot(this)},f.dm=function(){throw V(new Un(Xn((Fn(),Ta))))},f.em=function(){throw V(new Un(Xn((Fn(),Ta))))},f.fm=function(){throw V(new Un(Xn((Fn(),Ta))))},f.gm=function(){throw V(new Un(Xn((Fn(),Ta))))},f.hm=function(){return wi(this),VS(67)},f.im=function(){return wi(this),VS(73)},f.jm=function(){throw V(new Un(Xn((Fn(),Ta))))},f.km=function(){throw V(new Un(Xn((Fn(),Ta))))},f.lm=function(){throw V(new Un(Xn((Fn(),Ta))))},f.mm=function(){return wi(this),VS(99)},f.nm=function(){throw V(new Un(Xn((Fn(),Ta))))},f.om=function(){throw V(new Un(Xn((Fn(),Ta))))},f.pm=function(){return wi(this),VS(105)},f.qm=function(){throw V(new Un(Xn((Fn(),Ta))))},f.rm=function(){throw V(new Un(Xn((Fn(),Ta))))},f.sm=function(t,n){return jv(t,VS(n)),-1},f.tm=function(){return wi(this),vi(),vi(),new Dd(0,94)},f.um=function(){throw V(new Un(Xn((Fn(),Ta))))},f.vm=function(){return wi(this),vi(),vi(),new Dd(0,36)},f.wm=function(){throw V(new Un(Xn((Fn(),Ta))))},f.xm=function(){throw V(new Un(Xn((Fn(),Ta))))},f.ym=function(){throw V(new Un(Xn((Fn(),Ta))))},f.zm=function(){throw V(new Un(Xn((Fn(),Ta))))},f.Am=function(){throw V(new Un(Xn((Fn(),Ta))))},f.Bm=function(){throw V(new Un(Xn((Fn(),Ta))))},f.Cm=function(){var t;if(wi(this),t=fee(sw(this),0),this.c!=7)throw V(new Un(Xn((Fn(),jb))));return wi(this),t},f.Dm=function(){throw V(new Un(Xn((Fn(),Ta))))},f.Em=function(t){return wi(this),mq(t,(vi(),vi(),new nv(3,t)))},f.Fm=function(t){var n;return wi(this),n=(vi(),vi(),new qT(2)),bb(n,t),bb(n,hM),n},f.Gm=function(t){return wi(this),vi(),vi(),new nv(3,t)};var $3=null,w9=null;M(Gg,"RegEx/ParserForXMLSchema",1927),E(122,1,_j,jm),f.Hm=function(t){throw V(new Ao("Not supported."))},f.Im=function(){return-1},f.Jm=function(t){return null},f.Km=function(){return null},f.Lm=function(t){},f.Mm=function(t){},f.Nm=function(){return 0},f.Ib=function(){return this.Om(0)},f.Om=function(t){return this.e==11?".":""},f.e=0;var jEe,v9,fM,wyt,TEe,my=null,PV,tfe=null,EEe,hM,nfe=null,CEe,MEe,AEe,NEe,_Ee,vyt,Yk,yyt,xyt,kyt,Oyt,y9,Syt,jyt,yin=M(Gg,"RegEx/Token",122);E(140,122,{3:1,140:1,122:1},$u),f.Om=function(t){var n,i,r;if(this.e==4)if(this==EEe)i=".";else if(this==PV)i="\\d";else if(this==y9)i="\\w";else if(this==Yk)i="\\s";else{for(r=new vg,r.a+="[",n=0;n<this.b.length;n+=2)(t&Ga)!=0&&n>0&&(r.a+=","),this.b[n]===this.b[n+1]?Zs(r,mL(this.b[n])):(Zs(r,mL(this.b[n])),r.a+="-",Zs(r,mL(this.b[n+1])));r.a+="]",i=r.a}else if(this==AEe)i="\\D";else if(this==_Ee)i="\\W";else if(this==NEe)i="\\S";else{for(r=new vg,r.a+="[^",n=0;n<this.b.length;n+=2)(t&Ga)!=0&&n>0&&(r.a+=","),this.b[n]===this.b[n+1]?Zs(r,mL(this.b[n])):(Zs(r,mL(this.b[n])),r.a+="-",Zs(r,mL(this.b[n+1])));r.a+="]",i=r.a}return i},f.a=!1,f.c=!1,M(Gg,"RegEx/RangeToken",140),E(587,1,{587:1},n1e),f.a=0,M(Gg,"RegEx/RegexParser/ReferencePosition",587),E(586,1,{3:1,586:1},VIe),f.Fb=function(t){var n;return t==null||!ae(t,586)?!1:(n=c(t,586),St(this.b,n.b)&&this.a==n.a)},f.Hb=function(){return _g(this.b+"/"+Oye(this.a))},f.Ib=function(){return this.c.Om(this.a)},f.a=0,M(Gg,"RegEx/RegularExpression",586),E(230,122,_j,Dd),f.Im=function(){return this.a},f.Om=function(t){var n,i,r;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:r="\\"+RZ(this.a&Dr);break;case 12:r="\\f";break;case 10:r="\\n";break;case 13:r="\\r";break;case 9:r="\\t";break;case 27:r="\\e";break;default:this.a>=Rs?(i=(n=this.a>>>0,"0"+n.toString(16)),r="\\v"+Fa(i,i.length-6,i.length)):r=""+RZ(this.a&Dr)}break;case 8:this==CEe||this==MEe?r=""+RZ(this.a&Dr):r="\\"+RZ(this.a&Dr);break;default:r=null}return r},f.a=0,M(Gg,"RegEx/Token/CharToken",230),E(323,122,_j,nv),f.Jm=function(t){return this.a},f.Lm=function(t){this.b=t},f.Mm=function(t){this.c=t},f.Nm=function(){return 1},f.Om=function(t){var n;if(this.e==3)if(this.c<0&&this.b<0)n=this.a.Om(t)+"*";else if(this.c==this.b)n=this.a.Om(t)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)n=this.a.Om(t)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)n=this.a.Om(t)+"{"+this.c+",}";else throw V(new Ao("Token#toString(): CLOSURE "+this.c+Xc+this.b));else if(this.c<0&&this.b<0)n=this.a.Om(t)+"*?";else if(this.c==this.b)n=this.a.Om(t)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)n=this.a.Om(t)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)n=this.a.Om(t)+"{"+this.c+",}?";else throw V(new Ao("Token#toString(): NONGREEDYCLOSURE "+this.c+Xc+this.b));return n},f.b=0,f.c=0,M(Gg,"RegEx/Token/ClosureToken",323),E(829,122,_j,Ipe),f.Jm=function(t){return t==0?this.a:this.b},f.Nm=function(){return 2},f.Om=function(t){var n;return this.b.e==3&&this.b.Jm(0)==this.a?n=this.a.Om(t)+"+":this.b.e==9&&this.b.Jm(0)==this.a?n=this.a.Om(t)+"+?":n=this.a.Om(t)+(""+this.b.Om(t)),n},M(Gg,"RegEx/Token/ConcatToken",829),E(1925,122,_j,$Ve),f.Jm=function(t){if(t==0)return this.d;if(t==1)return this.b;throw V(new Ao("Internal Error: "+t))},f.Nm=function(){return this.b?2:1},f.Om=function(t){var n;return this.c>0?n="(?("+this.c+")":this.a.e==8?n="(?("+this.a+")":n="(?"+this.a,this.b?n+=this.d+"|"+this.b+")":n+=this.d+")",n},f.c=0,M(Gg,"RegEx/Token/ConditionToken",1925),E(1926,122,_j,fGe),f.Jm=function(t){return this.b},f.Nm=function(){return 1},f.Om=function(t){return"(?"+(this.a==0?"":Oye(this.a))+(this.c==0?"":Oye(this.c))+":"+this.b.Om(t)+")"},f.a=0,f.c=0,M(Gg,"RegEx/Token/ModifierToken",1926),E(830,122,_j,Gpe),f.Jm=function(t){return this.a},f.Nm=function(){return 1},f.Om=function(t){var n;switch(n=null,this.e){case 6:this.b==0?n="(?:"+this.a.Om(t)+")":n="("+this.a.Om(t)+")";break;case 20:n="(?="+this.a.Om(t)+")";break;case 21:n="(?!"+this.a.Om(t)+")";break;case 22:n="(?<="+this.a.Om(t)+")";break;case 23:n="(?<!"+this.a.Om(t)+")";break;case 24:n="(?>"+this.a.Om(t)+")"}return n},f.b=0,M(Gg,"RegEx/Token/ParenToken",830),E(521,122,{3:1,122:1,521:1},Ree),f.Km=function(){return this.b},f.Om=function(t){return this.e==12?"\\"+this.a:WJt(this.b)},f.a=0,M(Gg,"RegEx/Token/StringToken",521),E(469,122,_j,qT),f.Hm=function(t){bb(this,t)},f.Jm=function(t){return c(qm(this.a,t),122)},f.Nm=function(){return this.a?this.a.a.c.length:0},f.Om=function(t){var n,i,r,o,a;if(this.e==1){if(this.a.a.c.length==2)n=c(qm(this.a,0),122),i=c(qm(this.a,1),122),i.e==3&&i.Jm(0)==n?o=n.Om(t)+"+":i.e==9&&i.Jm(0)==n?o=n.Om(t)+"+?":o=n.Om(t)+(""+i.Om(t));else{for(a=new vg,r=0;r<this.a.a.c.length;r++)Zs(a,c(qm(this.a,r),122).Om(t));o=a.a}return o}if(this.a.a.c.length==2&&c(qm(this.a,1),122).e==7)o=c(qm(this.a,0),122).Om(t)+"?";else if(this.a.a.c.length==2&&c(qm(this.a,0),122).e==7)o=c(qm(this.a,1),122).Om(t)+"??";else{for(a=new vg,Zs(a,c(qm(this.a,0),122).Om(t)),r=1;r<this.a.a.c.length;r++)a.a+="|",Zs(a,c(qm(this.a,r),122).Om(t));o=a.a}return o},M(Gg,"RegEx/Token/UnionToken",469),E(518,1,{596:1},g_),f.Ib=function(){return this.a.b},M(dft,"XMLTypeUtil/PatternMatcherImpl",518),E(1690,1505,{},PN);var Tyt;M(dft,"XMLTypeValidator",1690),E(272,1,Hd,Up),f.Ic=function(t){vs(this,t)},f.Jc=function(){return(this.b-this.a)*this.c<0?bp:new k0(this)},f.a=0,f.b=0,f.c=0;var bp;M(mke,"ExclusiveRange",272),E(1065,1,qd,IN),f.Rb=function(t){c(t,15),yTt()},f.Nb=function(t){ps(this,t)},f.Pb=function(){return a8t()},f.Ub=function(){return f8t()},f.Wb=function(t){c(t,15),kTt()},f.Ob=function(){return!1},f.Sb=function(){return!1},f.Tb=function(){return-1},f.Vb=function(){return-1},f.Qb=function(){throw V(new wg(bft))},M(mke,"ExclusiveRange/1",1065),E(261,1,qd,k0),f.Rb=function(t){c(t,15),xTt()},f.Nb=function(t){ps(this,t)},f.Pb=function(){return K$t(this)},f.Ub=function(){return WPt(this)},f.Wb=function(t){c(t,15),OTt()},f.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},f.Sb=function(){return this.b>0},f.Tb=function(){return this.b},f.Vb=function(){return this.b-1},f.Qb=function(){throw V(new wg(bft))},f.a=0,f.b=0,M(mke,"ExclusiveRange/RangeIterator",261);var _a=Y6(tU,"C"),Hn=Y6(RE,"I"),Sl=Y6(lk,"Z"),Gw=Y6($E,"J"),$l=Y6(LE,"B"),is=Y6(PE,"D"),wy=Y6(IE,"F"),B3=Y6(BE,"S"),xin=Zi("org.eclipse.elk.core.labels","ILabelManager"),DEe=Zi(Ds,"DiagnosticChain"),LEe=Zi(Qat,"ResourceSet"),PEe=M(Ds,"InvocationTargetException",null),Eyt=(Gz(),fPt),Cyt=Cyt=$Ht;KIt(f9t),uRt("permProps",[[["locale","default"],[mft,"gecko1_8"]],[["locale","default"],[mft,"safari"]]]),Cyt(null,"elk",null)}).call(this)}).call(this,typeof Ayt<"u"?Ayt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(u,h,g){function m(J){"@babel/helpers - typeof";return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ee){return typeof ee}:function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},m(J)}function p(J,ee,te){return Object.defineProperty(J,"prototype",{writable:!1}),J}function k(J,ee){if(!(J instanceof ee))throw new TypeError("Cannot call a class as a function")}function S(J,ee,te){return ee=P(ee),C(J,_()?Reflect.construct(ee,te||[],P(J).constructor):ee.apply(J,te))}function C(J,ee){if(ee&&(m(ee)=="object"||typeof ee=="function"))return ee;if(ee!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N(J)}function N(J){if(J===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J}function _(){try{var J=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_=function(){return!!J})()}function P(J){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ee){return ee.__proto__||Object.getPrototypeOf(ee)},P(J)}function R(J,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(ee&&ee.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),Object.defineProperty(J,"prototype",{writable:!1}),ee&&q(J,ee)}function q(J,ee){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(te,ie){return te.__proto__=ie,te},q(J,ee)}var F=u("./elk-api.js").default,X=(function(J){function ee(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};k(this,ee);var ie=Object.assign({},te),oe=!1;try{u.resolve("web-worker"),oe=!0}catch{}if(te.workerUrl)if(oe){var se=u("web-worker");ie.workerFactory=function(qe){return new se(qe)}}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(!ie.workerFactory){var ge=u("./elk-worker.min.js"),Ne=ge.Worker;ie.workerFactory=function(qe){return new Ne(qe)}}return S(this,ee,[ie])}return R(ee,J),p(ee)})(F);Object.defineProperty(h.exports,"__esModule",{value:!0}),h.exports=X,X.default=X},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(u,h,g){var m=typeof Worker<"u"?Worker:void 0;h.exports=m},{}]},{},[3])(3)})})(VCe)),VCe.exports}var r3n=i3n();const s3n=fAe(r3n),o3n=new s3n;function g4t(l,s){const u=[...new Set(l)].sort((m,p)=>m-p),h=new Map;let g=0;for(;g<u.length;){let m=g;for(;m<u.length&&u[m]-u[g]<=s;)m++;const p=u.slice(g,m),k=p[Math.floor(p.length/2)];for(const S of p)h.set(S,k);g=m}return h}function c3n(l,s=20){const u=[...l.values()],h=g4t(u.map(m=>m.x),s),g=g4t(u.map(m=>m.y),s);for(const m of l.values())m.x=h.get(m.x)??m.x,m.y=g.get(m.y)??m.y}async function MNe(l,s){const u={id:"root",layoutOptions:{"elk.algorithm":"layered","elk.direction":"RIGHT","elk.spacing.nodeNode":"60","elk.layered.spacing.nodeNodeBetweenLayers":"120","elk.layered.crossingMinimization.strategy":"LAYER_SWEEP"},children:l.map(m=>({id:m.id,width:240,height:70})),edges:s.map(m=>({id:m.id,sources:[m.source],targets:[m.target]}))},h=await o3n.layout(u),g=new Map;for(const m of h.children||[])g.set(m.id,{x:m.x??0,y:m.y??0});return c3n(g),l.map(m=>({...m,position:g.get(m.id)||m.position}))}function Kjt(l){return l.reduce((s,u)=>{const h=u.id.match(/_(\d+)$/);return h?Math.max(s,parseInt(h[1],10)):s},-1)+1}function II(l){return l.map(s=>({...s,type:"default",animated:!1}))}const l3n=50,u3n=1e3,a3n=3e4;function f3n({setNodesRaw:l,setEdgesRaw:s,setPreamble:u,preambleRef:h,nodeIdCounter:g,fitView:m}){const{setSyncBanner:p}=Zc(),{addToast:k}=Ay(),[S,C]=ue.useState("reconnecting"),N=ue.useRef(0);return ue.useEffect(()=>{const P=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws/sync`;let R=null,q=null,F=!0;function X(){F&&(R=new WebSocket(P),R.onopen=()=>{F&&(N.current=0,C("connected"))},R.onmessage=async J=>{try{const ee=JSON.parse(J.data);if(ee.type==="graph_update"&&ee.graph){if(Zc.getState().dirty)return;const te=ee.graph,ie=te.nodes||[],oe=II(te.edges||[]);if(ie.some(ge=>ge.position&&(ge.position.x!==0||ge.position.y!==0)))l(ie);else{const ge=await MNe(ie,oe);l(ge)}s(oe),te.preamble!==void 0&&(u(te.preamble||""),h.current=te.preamble||""),g.current=Kjt(ie),p(null),k("info","Pipeline updated from file"),setTimeout(()=>m({padding:.8}),100)}ee.type==="parse_error"&&p(ee.error||"Parse error in pipeline file")}catch(ee){k("error",`WebSocket sync error: ${ee instanceof Error?ee.message:String(ee)}`)}},R.onclose=()=>{if(!F)return;if(N.current+=1,N.current>l3n){C("disconnected");return}C("reconnecting");const J=Math.min(u3n*2**(N.current-1),a3n);q=setTimeout(X,J)},R.onerror=()=>{R==null||R.close()})}return X(),()=>{F=!1,q&&clearTimeout(q),R==null||R.close()}},[l,s,u,h,g,m,p,k]),S}function eX(l,s,u={}){return{nodeId:l,nodeLabel:s,status:"ok",row_count:0,column_count:0,columns:[],preview:[],error:null,...u}}const h3n=["data_input","banding_source","instanceOf"];function d3n(l){var h,g;const s=new Set(l.map(m=>m.id)),u=[];for(const m of l){const p=((h=m.data)==null?void 0:h.config)??{},k=((g=m.data)==null?void 0:g.label)||m.id;for(const S of h3n){const C=p[S];typeof C=="string"&&C&&!s.has(C)&&u.push({nodeId:m.id,nodeLabel:k,field:S,referencedId:C})}}return u}function g3n(l){if(l.length===0)return"";if(l.length===1){const s=l[0];return`"${s.nodeLabel}" references missing node "${s.referencedId}" in ${s.field}`}return`${l.length} nodes have broken references to missing nodes`}function XCe(l){return String(l.data.label||l.id)}function p4t(l,s){return!l&&!s?!0:!l||!s||l.length!==s.length?!1:l.every((u,h)=>u.name===s[h].name&&u.dtype===s[h].dtype)}function p3n(l,s,u){const h=u.status==="ok"||u.status==="error"||u.status==="loading"?u.status:"ok";return eX(l,s,{status:h,row_count:u.row_count??0,column_count:u.column_count??0,columns:u.columns??[],preview:u.preview??[],error:u.error??null,error_line:u.error_line??null,timing_ms:u.timing_ms??0,memory_bytes:u.memory_bytes??0,timings:u.timings??[],memory:u.memory??[],schema_warnings:u.schema_warnings??[]})}function b3n({selectedNode:l,graphRef:s,parentGraphRef:u,submodelsRef:h,setNodes:g,setNodesRaw:m,setEdgesRaw:p,setPreamble:k,preambleRef:S,pipelineNameRef:C,sourceFileRef:N,lastSavedRef:_,nodeIdCounter:P}){const R=Sc(Te=>Te.rowLimit),q=Sc(Te=>Te.activeSource),F=Zc(Te=>Te.setDirty),X=Ay(Te=>Te.addToast),[J,ee]=ue.useState(!0),[te,ie]=ue.useState(null),[oe,se]=ue.useState({}),ge=ue.useRef(null),Ne=ue.useRef(null),qe=ue.useRef(R);ue.useEffect(()=>{qe.current=R},[R]);const Ke=ue.useRef(q);ue.useEffect(()=>{Ke.current=q},[q]);const Le=ue.useRef(new Set),we=ue.useRef(()=>{}),Z=ue.useCallback(Te=>{var gt;const{edges:ye,nodes:ft}=s.current,Ce=ye.filter(Ot=>Ot.source===Te).map(Ot=>Ot.target);if(Ce.length===0)return;const We=Yfe(s,u,h,S);for(const Ot of Ce){if(Le.current.has(Ot))continue;Le.current.add(Ot);const dt=ft.find(dn=>dn.id===Ot),cn=(gt=dt==null?void 0:dt.data)==null?void 0:gt._columns;Kfe(We,Ot,qe.current,Ke.current).then(dn=>{if(dn.columns){const wn=dn.columns;g(ni=>ni.map(nr=>nr.id===Ot?{...nr,data:{...nr.data,_columns:wn,_availableColumns:dn.available_columns??wn,_schemaWarnings:dn.schema_warnings??[]}}:nr)),p4t(cn,wn)||we.current(Ot)}}).catch(dn=>{console.warn("propagation_failed",Ot,dn),X("warning",`Preview propagation failed for "${Ot}"`)}).finally(()=>{Le.current.delete(Ot)})}},[s,u,h,S,g,X]);ue.useEffect(()=>{we.current=Z},[Z]),ue.useEffect(()=>{Rhn().then(Te=>{const ye=Te.nodes??[],ft=Te.edges??[];m(ye),p(II(ft)),Te.preamble!==void 0&&(k(Te.preamble||""),S.current=Te.preamble||""),Te.pipeline_name&&(C.current=Te.pipeline_name),Te.source_file&&(N.current=Te.source_file),Te.submodels&&(h.current=Te.submodels),Te.sources&&Array.isArray(Te.sources)&&Sc.getState().setSources(Te.sources),Te.active_source&&Sc.getState().setActiveSource(Te.active_source),P.current=Kjt(ye),_.current=JSON.stringify({nodes:ye,edges:ft,preamble:Te.preamble||""}),ee(!1)}).catch(Te=>{X("error",`Failed to load pipeline: ${Te.message}`),ee(!1)})},[m,p,k,S,C,N,h,P,_,X]);const pe=ue.useCallback(Te=>{var cn;(cn=ge.current)==null||cn.abort();const ye=new AbortController;ge.current=ye;const ft=XCe(Te),{getPreview:Ce,setPreview:We,graphVersion:gt}=Oc.getState(),Ot=Ce(Te.id);if(Ot){if(ie(Ot.data),Ot.graphVersion===gt)return}else ie(eX(Te.id,ft,{status:"loading"}));const dt=Yfe(s,u,h,S);Kfe(dt,Te.id,qe.current,Ke.current,{signal:ye.signal}).then(dn=>{var ni;const wn=p3n(Te.id,ft,dn);if(ie(wn),We(Te.id,wn,Oc.getState().graphVersion),dn.node_statuses&&se(dn.node_statuses),dn.columns){const nr=(ni=Te.data)==null?void 0:ni._columns,ii=dn.columns;g(ji=>ji.map(Ti=>Ti.id===Te.id?{...Ti,data:{...Ti.data,_columns:ii,_availableColumns:dn.available_columns??ii,_schemaWarnings:dn.schema_warnings??[]}}:Ti)),p4t(nr,ii)||Z(Te.id)}}).catch(dn=>{(dn instanceof wO||dn.name!=="AbortError")&&(ie(eX(Te.id,ft,{status:"error",error:dn.message})),se({}))})},[s,u,h,S,g,Z]),Re=ue.useCallback(Te=>{Ne.current&&clearTimeout(Ne.current);const ye=Oc.getState().getPreview(Te.id);ie(ye?ye.data:eX(Te.id,XCe(Te),{status:"loading"})),Ne.current=setTimeout(()=>pe(Te),200)},[pe]),he=ue.useCallback(Te=>{const{nodes:ye,edges:ft}=s.current,Ce=new Map(ye.map(dt=>[dt.id,dt])),gt=ft.filter(dt=>dt.target===Te.id).map(dt=>dt.source).map(dt=>Ce.get(dt)).filter(dt=>{var cn;return!!dt&&!((cn=dt.data)!=null&&cn._columns)});if(gt.length===0){pe(Te);return}ie(eX(Te.id,XCe(Te),{status:"loading"}));const Ot=Yfe(s,u,h,S);Promise.all(gt.map(dt=>Kfe(Ot,dt.id,qe.current,Ke.current).then(cn=>{cn.columns&&g(dn=>dn.map(wn=>wn.id===dt.id?{...wn,data:{...wn.data,_columns:cn.columns,_availableColumns:cn.available_columns??cn.columns,_schemaWarnings:cn.schema_warnings??[]}}:wn))}).catch(cn=>{var dn;console.warn("upstream_preview_failed",dt.id,cn),X("warning",`Upstream preview failed for "${((dn=dt.data)==null?void 0:dn.label)||dt.id}"`)}))).then(()=>{pe(Te)})},[pe,s,u,h,S,g,X]),Ee=ue.useCallback(()=>{const{nodes:Te,edges:ye}=s.current,ft=d3n(Te);ft.length>0&&X("warning",g3n(ft));const{sources:Ce,activeSource:We}=Sc.getState();$hn({name:C.current,description:"",graph:{nodes:Te,edges:ye,submodels:h.current},preamble:S.current,source_file:N.current,sources:Ce,active_source:We}).then(gt=>{_.current=JSON.stringify({nodes:Te,edges:ye,preamble:S.current}),F(!1),X("success",`Saved → ${gt.file}`)}).catch(gt=>{console.warn("Pipeline save failed:",gt),X("error","Failed to save pipeline")})},[s,h,S,N,C,_,F,X]);return ue.useEffect(()=>{l||se({})},[l]),ue.useEffect(()=>()=>{var Te;(Te=ge.current)==null||Te.abort(),Ne.current&&clearTimeout(Ne.current)},[]),{loading:J,previewData:te,setPreviewData:ie,nodeStatuses:oe,fetchPreview:Re,refreshPreview:he,handleSave:Ee}}function m3n({nodes:l,edges:s,selectedNode:u,graphRef:h,parentGraphRef:g,submodelsRef:m,preambleRef:p,nodeStatuses:k,hoveredNodeId:S}){const C=Ay(we=>we.addToast),N=Sc(we=>we.rowLimit),_=Sc(we=>we.activeSource),P=ec(we=>we.transform[2]<.45),[R,q]=ue.useState(null),[F,X]=ue.useState(null),J=ue.useCallback(()=>{q(null),X(null)},[]),ee=ue.useCallback((we,Z)=>{if(!u)return;const pe=Yfe(h,g,m,p);X({rowIndex:we,column:Z}),Bhn({graph:pe,row_index:we,target_node_id:u.id,column:Z,row_limit:N,source:_}).then(Re=>{Re.status==="ok"&&Re.trace?q(Re.trace):(C("error",Re.error||"Trace failed"),J())}).catch(Re=>{C("error",`Trace error: ${Re.message}`),J()})},[u,h,g,m,p,N,_,C,J]),te=ue.useMemo(()=>{const we=new Map;for(const Z of l){const pe=Kw(Z);if(pe.nodeType===pi.SUBMODEL){const he=(pe.config||{}).childNodeIds||[];for(const Ee of he)we.set(Ee,Z.id)}}return we},[l]),ie=ue.useMemo(()=>{const we=new Map;for(const Z of l)Z.id.startsWith("port_in__")?we.set(Z.id.replace("port_in__",""),Z.id):Z.id.startsWith("port_out__")&&we.set(Z.id.replace("port_out__",""),Z.id);return we},[l]),oe=ue.useCallback(we=>te.get(we)||ie.get(we)||we,[te,ie]),se=ue.useMemo(()=>{if(!R)return new Set;const we=new Set;for(const Z of R.steps)we.add(oe(Z.node_id));return we},[R,oe]),{traceValueMap:ge,relevantNodeIds:Ne}=ue.useMemo(()=>{if(!R)return{traceValueMap:new Map,relevantNodeIds:new Set};const we=new Map,Z=new Set;for(const pe of R.steps){if(!pe.column_relevant)continue;const Re=oe(pe.node_id);if(Z.add(Re),R.column&&pe.output_values[R.column]!==void 0)we.set(Re,pe.output_values[R.column]);else{const he=pe.schema_diff.columns_added[0]||pe.schema_diff.columns_modified[0];he&&we.set(Re,pe.output_values[he])}}return{traceValueMap:we,relevantNodeIds:Z}},[R,oe]),qe=ue.useMemo(()=>{if(!S)return null;const we=new Set([S]);for(const Z of s)Z.source===S&&we.add(Z.target),Z.target===S&&we.add(Z.source);return we},[S,s]),Ke=ue.useMemo(()=>{const we=R!==null;return l.map(Z=>{const pe=k[Z.id],Re=se.has(Z.id),he=we&&!Re,Ee=!we&&qe!==null&&!qe.has(Z.id);return{...Z,data:{...Z.data,_status:pe,_traceActive:we&&Ne.has(Z.id),_traceDimmed:he,_hoverDimmed:Ee,_traceValue:ge.get(Z.id)},style:{...Z.style||{},transition:"opacity 0.2s ease"}}})},[l,k,R,se,Ne,ge,qe]),Le=ue.useMemo(()=>R?s.map(we=>{const Z=se.has(we.source),pe=se.has(we.target);return Z&&pe?{...we,style:{stroke:"var(--accent)",strokeWidth:2.5,filter:"drop-shadow(0 0 4px var(--accent))"},markerEnd:{type:aO.ArrowClosed,width:14,height:14,color:"var(--accent)"},animated:!0}:{...we,style:{stroke:"rgba(255,255,255,.05)",strokeWidth:1},markerEnd:{type:aO.ArrowClosed,width:14,height:14,color:"rgba(255,255,255,.05)"}}}):S?s.map(we=>we.source===S||we.target===S?{...we,style:{stroke:"rgba(255,255,255,.55)",strokeWidth:2},markerEnd:{type:aO.ArrowClosed,width:14,height:14,color:"rgba(255,255,255,.55)"}}:{...we,style:{stroke:"rgba(255,255,255,.06)",strokeWidth:1},markerEnd:{type:aO.ArrowClosed,width:14,height:14,color:"rgba(255,255,255,.06)"}}):P?s.map(we=>({...we,style:{stroke:"rgba(255,255,255,.38)",strokeWidth:2},markerEnd:{type:aO.ArrowClosed,width:16,height:16,color:"rgba(255,255,255,.38)"}})):s,[s,R,se,S,P]);return{traceResult:R,tracedCell:F,handleCellClick:ee,clearTrace:J,nodesWithStatus:Ke,edgesWithTrace:Le}}function w3n({graphRef:l,parentGraphRef:s,submodelsRef:u,setNodesRaw:h,setEdgesRaw:g,setSelectedNode:m,setPreviewData:p,preambleRef:k,sourceFileRef:S,pipelineNameRef:C,fitView:N}){const{addToast:_}=Ay(),{setDirty:P}=Zc(),[R,q]=ue.useState([{type:"pipeline",name:"main",file:""}]),F=ue.useCallback(async(te,ie)=>{try{const oe={nodes:l.current.nodes,edges:l.current.edges,submodels:u.current},ge=(await Fhn({name:te,node_ids:ie,graph:oe,preamble:k.current,source_file:S.current,pipeline_name:C.current})).graph;ge&&(h(ge.nodes??[]),g(II(ge.edges??[])),u.current=ge.submodels??{},_("success",`Submodel "${te}" created`),P(!1),setTimeout(()=>N({padding:.8}),100))}catch(oe){_("error",`Create submodel failed: ${oe instanceof Error?oe.message:String(oe)}`)}},[l,u,h,g,k,S,C,N,_,P]),X=ue.useCallback(async te=>{const ie=te.replace("submodel__","");try{const se=(await qhn(ie)).graph;if(se){const ge=[...l.current.nodes],Ne=[...l.current.edges];s.current={nodes:ge,edges:Ne,submodels:{...u.current}},q(ye=>{const ft=[...ye];return ft.length>0&&(ft[ft.length-1]={...ft[ft.length-1],_savedNodes:ge,_savedEdges:Ne}),[...ft,{type:"submodel",name:ie,file:`modules/${ie}.py`}]});const qe=se.nodes??[],Ke=II(se.edges??[]),Le=`submodel__${ie}`,we=new Map(ge.map(ye=>[ye.id,ye])),Z=new Set(qe.map(ye=>ye.id)),pe=Ne.filter(ye=>ye.target===Le),Re=new Map;for(const ye of pe){const ft=ye.targetHandle,Ce=ft?ft.replace("in__",""):"__unconnected__",We=Re.get(ye.source)||[];We.push(Ce),Re.set(ye.source,We)}for(const[ye,ft]of Re){const Ce=we.get(ye),We=Ce?String(Kw(Ce).label||ye):ye,gt=`port_in__${ye}`;qe.push({id:gt,type:pi.SUBMODEL_PORT,position:{x:0,y:0},data:{label:We,portDirection:"input",portName:We}});for(const Ot of[...new Set(ft)])Z.has(Ot)&&Ke.push({id:`e_${gt}_${Ot}`,source:gt,target:Ot,type:"default",animated:!1,style:{strokeDasharray:"6 3",opacity:.5}})}const he=Ne.filter(ye=>ye.source===Le&&ye.sourceHandle),Ee=new Map;for(const ye of he){const ft=ye.sourceHandle.replace("out__","");if(!Z.has(ft))continue;const Ce=Ee.get(ye.target)||[];Ce.push(ft),Ee.set(ye.target,Ce)}for(const[ye,ft]of Ee){const Ce=we.get(ye),We=Ce?String(Kw(Ce).label||ye):ye,gt=`port_out__${ye}`;qe.push({id:gt,type:pi.SUBMODEL_PORT,position:{x:0,y:0},data:{label:We,portDirection:"output",portName:We}});for(const Ot of[...new Set(ft)])Ke.push({id:`e_${Ot}_${gt}`,source:Ot,target:gt,type:"default",animated:!1,style:{strokeDasharray:"6 3",opacity:.5}})}const Te=await MNe(qe,Ke);h(Te),g(Ke),m(null),p(null),setTimeout(()=>N({padding:.8}),100)}}catch(oe){_("error",`Drill-down failed: ${oe instanceof Error?oe.message:String(oe)}`)}},[l,s,u,h,g,m,p,N,_]),J=ue.useCallback(te=>{q(ie=>{if(te>=ie.length-1)return ie;const oe=ie[te];return oe._savedNodes&&oe._savedEdges&&(h(oe._savedNodes),g(II(oe._savedEdges)),m(null),p(null),setTimeout(()=>N({padding:.8}),100)),te===0&&(s.current=null),ie.slice(0,te+1)})},[s,h,g,m,p,N]),ee=ue.useCallback(async te=>{try{const ie={nodes:l.current.nodes,edges:l.current.edges,submodels:u.current},se=(await Hhn({submodel_name:te,graph:ie,preamble:k.current,source_file:S.current,pipeline_name:C.current})).graph;se&&(h(se.nodes??[]),g(II(se.edges??[])),u.current={},_("success",`Submodel "${te}" dissolved`),P(!1),setTimeout(()=>N({padding:.8}),100))}catch(ie){_("error",`Dissolve failed: ${ie instanceof Error?ie.message:String(ie)}`)}},[l,u,h,g,k,S,C,N,_,P]);return{viewStack:R,handleDrillIntoSubmodel:X,handleBreadcrumbNavigate:J,handleCreateSubmodel:F,handleDissolveSubmodel:ee}}function v3n({handleSave:l,setNodes:s,setEdges:u,undo:h,redo:g,fitView:m,graphRef:p,clipboard:k,nodeIdCounter:S,setSelectedNode:C,setPreviewData:N,clearTrace:_,closePanel:P}){const{addToast:R}=Ay(),{setShortcutsOpen:q,setSubmodelDialog:F,setNodeSearchOpen:X}=Zc();ue.useEffect(()=>{const J=ee=>{var ge,Ne;const te=(ge=ee.target)==null?void 0:ge.tagName,ie=ee.target,oe=te==="INPUT"||te==="TEXTAREA"||((Ne=ie.closest)==null?void 0:Ne.call(ie,".cm-editor"))!=null,se=ee.ctrlKey||ee.metaKey;if(se&&ee.key==="s"){ee.preventDefault(),l();return}if(se&&ee.key==="z"&&!ee.shiftKey){ee.preventDefault(),h();return}if(se&&ee.key==="z"&&ee.shiftKey){ee.preventDefault(),g();return}if(se&&ee.key==="y"){ee.preventDefault(),g();return}if(se&&ee.key==="c"&&!oe){const{nodes:qe,edges:Ke}=p.current,Le=qe.filter(pe=>pe.selected);if(Le.length===0)return;const we=new Set(Le.map(pe=>pe.id)),Z=Ke.filter(pe=>we.has(pe.source)&&we.has(pe.target));k.current={nodes:Le,edges:Z},R("info",`Copied ${Le.length} node${Le.length>1?"s":""}`);return}if(se&&ee.key==="v"&&!oe){const{nodes:qe,edges:Ke}=k.current;if(qe.length===0)return;ee.preventDefault();const Le=new Map,we=qe.map(pe=>{S.current+=1;const Re=`${pe.type}_${S.current}`;return Le.set(pe.id,Re),{...pe,id:Re,position:{x:pe.position.x+60,y:pe.position.y+60},selected:!0,data:{...pe.data,label:`${pe.data.label} copy`}}}),Z=Ke.flatMap(pe=>{const Re=Le.get(pe.source),he=Le.get(pe.target);return!Re||!he?[]:[{...pe,id:`e-${Re}-${he}`,source:Re,target:he}]});s(pe=>[...pe.map(Re=>({...Re,selected:!1})),...we]),u(pe=>[...pe,...Z]),R("info",`Pasted ${we.length} node${we.length>1?"s":""}`);return}if(se&&ee.key==="a"&&!oe){ee.preventDefault(),s(qe=>qe.map(Ke=>({...Ke,selected:!0})));return}if(se&&ee.key==="1"){ee.preventDefault(),m({padding:.8});return}if(se&&ee.key==="k"){ee.preventDefault(),X(qe=>!qe);return}if(ee.key==="Escape"){_(),P();return}if(ee.key==="?"&&!oe){ee.preventDefault(),q(qe=>!qe);return}if(se&&ee.key==="g"){ee.preventDefault();const{nodes:qe}=p.current,Ke=qe.filter(Le=>Le.selected).map(Le=>Le.id);Ke.length>=2?F({nodeIds:Ke}):R("info","Select at least 2 nodes to create a submodel (Ctrl+G)");return}if((ee.key==="Delete"||ee.key==="Backspace")&&!oe){const{nodes:qe,edges:Ke}=p.current,Le=new Set(qe.filter(Z=>Z.selected).map(Z=>Z.id)),we=new Set(Ke.filter(Z=>Z.selected).map(Z=>Z.id));if(Le.size===0&&we.size===0)return;Le.size>0?(s(qe.filter(Z=>!Le.has(Z.id))),u(Ke.filter(Z=>!Le.has(Z.source)&&!Le.has(Z.target))),C(null),N(null)):u(Ke.filter(Z=>!we.has(Z.id)))}};return window.addEventListener("keydown",J),()=>window.removeEventListener("keydown",J)},[l,s,u,h,g,m,p,k,S,C,N,_,P,R,q,F,X])}const b4t=500,y3n=5e3,x3n=1440*60*1e3,k3n=5;function O3n(l,s){const{jobs:u,pollFn:h,onProgress:g,onComplete:m,onFail:p,labelFn:k,jobIdFn:S,isComplete:C,isError:N,getResult:_,getErrorMessage:P,addToast:R,successLabel:q,failLabel:F}=l,X=Object.keys(u),J=Object.keys(s.current);for(const ee of X){let te=function(ge){if(Date.now()-ge.startedAt>=x3n){delete s.current[ee],p(ee,"Job timed out after 24 hours"),R("error",`${F}: ${k(ie)} — Job timed out after 24 hours`);return}const qe=ge.consecutiveErrors===0?b4t:Math.min(b4t*Math.pow(2,ge.consecutiveErrors),y3n);ge.timeoutId=setTimeout(async()=>{try{const Ke=await h(S(ie));if(ge.consecutiveErrors=0,ge.toastedWarning=!1,C(Ke)||N(Ke)){if(delete s.current[ee],C(Ke)&&_(Ke))m(ee,_(Ke)),R("success",`${q}: ${k(ie)}`);else{const Le=P(Ke)||"Unknown error";p(ee,Le),R("error",`${F}: ${k(ie)} — ${Le}`)}return}g(ee,Ke)}catch(Ke){ge.consecutiveErrors+=1,console.warn(`${F} poll failed (attempt ${ge.consecutiveErrors}, will retry):`,Ke),ge.consecutiveErrors>=k3n&&!ge.toastedWarning&&(ge.toastedWarning=!0,R("warning",`Polling is struggling for ${k(ie)} — ${ge.consecutiveErrors} consecutive errors`))}s.current[ee]&&te(ge)},qe)};if(s.current[ee])continue;const ie=u[ee],se={startedAt:Date.now(),consecutiveErrors:0,toastedWarning:!1};s.current[ee]=se,te(se)}for(const ee of J)u[ee]||(clearTimeout(s.current[ee].timeoutId),delete s.current[ee])}function m4t(l){const s=ue.useRef({});ue.useEffect(()=>{O3n(l,s)},[l.jobs,l.pollFn,l.onProgress,l.onComplete,l.onFail,l.addToast]),ue.useEffect(()=>{const u=s.current;return()=>{for(const h of Object.values(u))clearTimeout(h.timeoutId)}},[])}function S3n(){const l=Ay(R=>R.addToast),s=Oc(R=>R.solveJobs),u=Oc(R=>R.updateSolveProgress),h=Oc(R=>R.completeSolveJob),g=Oc(R=>R.failSolveJob),m=ue.useCallback(R=>Khn(R),[]),p=ue.useCallback((R,q)=>h(R,q.result),[h]);m4t({jobs:s,pollFn:m,onProgress:u,onComplete:p,onFail:g,labelFn:R=>R.nodeLabel,jobIdFn:R=>R.jobId,isComplete:R=>R.status==="completed",isError:R=>R.status==="error",getResult:R=>R.result?R:void 0,getErrorMessage:R=>R.message||"Unknown error",addToast:l,successLabel:"Optimisation complete",failLabel:"Optimisation failed"});const k=Oc(R=>R.trainJobs),S=Oc(R=>R.updateTrainProgress),C=Oc(R=>R.completeTrainJob),N=Oc(R=>R.failTrainJob),_=ue.useCallback(R=>Uhn(R),[]),P=ue.useCallback((R,q)=>C(R,q.result),[C]);m4t({jobs:k,pollFn:_,onProgress:S,onComplete:P,onFail:N,labelFn:R=>R.nodeLabel,jobIdFn:R=>R.jobId,isComplete:R=>R.status==="completed",isError:R=>R.status==="error",getResult:R=>R.result?R:void 0,getErrorMessage:R=>R.message||"Unknown error",addToast:l,successLabel:"Training complete",failLabel:"Training failed"})}function j3n({graphRef:l,nodeIdCounter:s,lastSelectedNodeRef:u,setNodes:h,setEdges:g,setSelectedNode:m,setPreviewData:p,fitView:k}){const S=Ay(X=>X.addToast),C=Oc(X=>X.clearNode),N=Zc(X=>X.setRenameDialog),_=ue.useCallback(X=>{var te;const{nodes:J,edges:ee}=l.current;h(()=>J.filter(ie=>ie.id!==X)),g(()=>ee.filter(ie=>ie.source!==X&&ie.target!==X)),m(ie=>(ie==null?void 0:ie.id)===X?null:ie),p(ie=>(ie==null?void 0:ie.nodeId)===X?null:ie),C(X),((te=u.current)==null?void 0:te.id)===X&&(u.current=null)},[l,u,h,g,m,p,C]),P=ue.useCallback(X=>{const{nodes:J}=l.current,ee=J.find(oe=>oe.id===X);if(!ee)return;s.current+=1;const te=`${ee.type}_${s.current}`,ie={...ee,id:te,position:{x:ee.position.x+40,y:ee.position.y+40},selected:!0,data:{...ee.data,label:`${ee.data.label} copy`}};h(oe=>[...oe.map(se=>({...se,selected:!1})),ie]),m(ie)},[l,s,h,m]),R=ue.useCallback(X=>{const{nodes:J}=l.current,ee=J.find(ge=>ge.id===X);if(!ee)return;s.current+=1;const te=Kw(ee),ie=te.nodeType||pi.POLARS,se={id:`${ie}_${s.current}`,type:ee.type,position:{x:ee.position.x+60,y:ee.position.y+80},selected:!0,data:{label:`${te.label} instance`,description:`Instance of ${te.label}`,nodeType:ie,config:{instanceOf:X}}};h(ge=>[...ge.map(Ne=>({...Ne,selected:!1})),se]),m(se),S("info",`Created instance of "${te.label}"`)},[l,s,h,m,S]),q=ue.useCallback(X=>{const{nodes:J}=l.current,ee=J.find(te=>te.id===X);ee&&N({nodeId:X,currentLabel:String(ee.data.label)})},[l,N]),F=ue.useCallback(async()=>{const{nodes:X,edges:J}=l.current;if(X.length===0)return;const ee=await MNe(X,J);h(()=>ee),setTimeout(()=>k({padding:.15}),50),S("info","Auto-layout applied")},[l,h,k,S]);return{handleDeleteNode:_,handleDuplicateNode:P,handleCreateInstance:R,handleRenameNode:q,handleAutoLayout:F}}function T3n(l,s,u){const h=s.find(p=>p.id===l);if(!h)return!1;const g=Yw[Kw(h).nodeType];return g!=null&&g.maxInputs?u.filter(p=>p.target===l).length>=g.maxInputs:!1}function E3n({graphRef:l,nodeIdCounter:s,lastSelectedNodeRef:u,setNodes:h,setEdges:g,setSelectedNode:m,setContextMenu:p,fetchPreview:k,clearTrace:S,screenToFlowPosition:C}){const N=ue.useCallback(J=>{if(J.source===J.target)return;const{edges:ee,nodes:te}=l.current;if(ee.some(se=>se.source===J.source&&se.target===J.target)||T3n(J.target,te,ee))return;const oe=te.find(se=>se.id===J.target);if(oe&&Kw(oe).nodeType===pi.SUBMODEL&&J.targetHandle){g(se=>sMe({...J,targetHandle:null},se));return}g(se=>sMe(J,se))},[l,g]),_=ue.useCallback(({nodes:J})=>{J.length!==1&&(m(null),S())},[m,S]),P=ue.useCallback((J,ee)=>{m(te=>((te==null?void 0:te.id)!==ee.id&&(k(ee),S()),ee)),u.current=ee},[m,k,S,u]),R=ue.useCallback(J=>{g(ee=>ee.filter(te=>te.id!==J))},[g]),q=ue.useCallback((J,ee)=>{J.preventDefault(),p({x:J.clientX,y:J.clientY,nodeId:ee.id,nodeLabel:String(ee.data.label),isSubmodel:Kw(ee).nodeType===pi.SUBMODEL})},[p]),F=ue.useCallback(J=>{J.preventDefault(),J.dataTransfer.dropEffect="move"},[]),X=ue.useCallback(J=>{var ge;J.preventDefault();const ee=J.dataTransfer.getData("application/reactflow-type");if(!ee)return;let te={};try{te=JSON.parse(J.dataTransfer.getData("application/reactflow-config")||"{}")}catch{}const ie=C({x:J.clientX,y:J.clientY});s.current+=1;const se={id:`${ee}_${s.current}`,type:ee,position:ie,data:{label:`${((ge=Yw[ee])==null?void 0:ge.name)||"Node"} ${s.current}`,description:"",nodeType:ee,config:te}};h(Ne=>[...Ne.map(qe=>({...qe,selected:!1})),{...se,selected:!0}]),m(se)},[C,s,h,m]);return{onConnect:N,onSelectionChange:_,onNodeClick:P,handleDeleteEdge:R,onNodeContextMenu:q,onDragOver:F,onDrop:X}}const C3n={[pi.API_INPUT]:c0,[pi.DATA_SOURCE]:c0,[pi.POLARS]:c0,[pi.MODEL_SCORE]:c0,[pi.RATING_STEP]:c0,[pi.BANDING]:c0,[pi.OUTPUT]:c0,[pi.DATA_SINK]:c0,[pi.EXTERNAL_FILE]:c0,[pi.LIVE_SWITCH]:c0,[pi.MODELLING]:c0,[pi.OPTIMISER]:c0,[pi.OPTIMISER_APPLY]:c0,[pi.SCENARIO_EXPANDER]:c0,[pi.CONSTANT]:c0,[pi.SUBMODEL]:zdn,[pi.SUBMODEL_PORT]:qdn};function M3n(){const{nodes:l,edges:s,setNodes:u,setEdges:h,setNodesRaw:g,setEdgesRaw:m,onNodesChange:p,onEdgesChange:k,undo:S,redo:C,canUndo:N,canRedo:_}=n3n(),{screenToFlowPosition:P,fitView:R,zoomIn:q,zoomOut:F}=JX(),X=Sc(kn=>kn.fetchMlflow),J=Zc(kn=>kn.paletteOpen),ee=Zc(kn=>kn.setPaletteOpen),te=Zc(kn=>kn.utilityOpen),ie=Zc(kn=>kn.setUtilityOpen),oe=Zc(kn=>kn.importsOpen),se=Zc(kn=>kn.setImportsOpen),ge=Zc(kn=>kn.gitOpen),Ne=Zc(kn=>kn.setGitOpen),qe=Zc(kn=>kn.shortcutsOpen),Ke=Zc(kn=>kn.setShortcutsOpen),Le=Zc(kn=>kn.submodelDialog),we=Zc(kn=>kn.setSubmodelDialog),Z=Zc(kn=>kn.renameDialog),pe=Zc(kn=>kn.setRenameDialog),Re=Zc(kn=>kn.syncBanner),he=Zc(kn=>kn.setSyncBanner),Ee=Zc(kn=>kn.dirty),Te=Zc(kn=>kn.setDirty),ye=Zc(kn=>kn.hoveredNodeId),ft=Zc(kn=>kn.setHoveredNodeId),Ce=Zc(kn=>kn.nodeSearchOpen),We=Zc(kn=>kn.setNodeSearchOpen);ue.useEffect(()=>{X()},[X]);const[gt,Ot]=ue.useState(null),[dt,cn]=ue.useState(null),[dn,wn]=ue.useState(""),ni=ue.useRef(null),[nr,ii]=ue.useState(null);ue.useEffect(()=>{gt&&ii(gt.id)},[gt]);const ji=ue.useCallback(()=>{Ot(null),ni.current=null,ii(null),ie(!1),se(!1),Ne(!1)},[ie,se,Ne]),Ti=Oc(kn=>kn.bumpGraphVersion),as=Oc(kn=>kn.getOptimiserPreview),xo=Oc(kn=>kn.getModellingPreview),qr=ue.useRef({}),Nn=ue.useRef({nodes:[],edges:[]}),Ps=ue.useRef({nodes:[],edges:[]}),ms=ue.useRef(null),rs=ue.useRef(""),fr=ue.useRef(""),jp=ue.useRef("main"),ko=ue.useRef(""),eu=ue.useRef(0),tm=ue.useRef("");ue.useEffect(()=>{Ps.current={nodes:l,edges:s};const kn=l.map(Pa=>`${Pa.id}:${JSON.stringify(Pa.data)}`).join("|"),ro=s.map(Pa=>`${Pa.id}:${Pa.source}:${Pa.target}`).join("|"),al=`${kn}||${ro}`;al!==tm.current&&(tm.current=al,Ti())},[l,s,Ti]);const og=ue.useRef(null);ue.useEffect(()=>{if(rs.current){const kn=og.current;kn&&(kn.nodes!==l||kn.edges!==s||kn.preamble!==dn)&&Te(!0)}og.current={nodes:l,edges:s,preamble:dn}},[l,s,dn,Te]);const Tp=f3n({setNodesRaw:g,setEdgesRaw:m,setPreamble:wn,preambleRef:fr,nodeIdCounter:eu,fitView:R}),{loading:nm,previewData:Mu,setPreviewData:Ep,nodeStatuses:OO,fetchPreview:SO,refreshPreview:im,handleSave:of}=b3n({selectedNode:gt,graphRef:Ps,parentGraphRef:ms,submodelsRef:qr,setNodes:u,setNodesRaw:g,setEdgesRaw:m,setPreamble:wn,preambleRef:fr,pipelineNameRef:jp,sourceFileRef:ko,lastSavedRef:rs,nodeIdCounter:eu}),{traceResult:c1,tracedCell:zf,handleCellClick:jO,clearTrace:e2,nodesWithStatus:TO,edgesWithTrace:t2}=m3n({nodes:l,edges:s,selectedNode:gt,graphRef:Ps,parentGraphRef:ms,submodelsRef:qr,preambleRef:fr,nodeStatuses:OO,hoveredNodeId:ye}),{viewStack:n2,handleDrillIntoSubmodel:i2,handleBreadcrumbNavigate:a0,handleCreateSubmodel:r2,handleDissolveSubmodel:rm}=w3n({graphRef:Ps,parentGraphRef:ms,submodelsRef:qr,setNodesRaw:g,setEdgesRaw:m,setSelectedNode:Ot,setPreviewData:kn=>Ep(kn),preambleRef:fr,sourceFileRef:ko,pipelineNameRef:jp,fitView:R});v3n({handleSave:of,setNodes:u,setEdges:h,undo:S,redo:C,fitView:R,graphRef:Ps,clipboard:Nn,nodeIdCounter:eu,setSelectedNode:Ot,setPreviewData:kn=>Ep(kn),clearTrace:e2,closePanel:ji}),S3n();const l5=ue.useCallback((kn,ro)=>{u(al=>al.map(Pa=>Pa.id===kn?{...Pa,data:ro}:Pa)),Ot(al=>al&&al.id===kn?{...al,data:ro}:al)},[u]),{handleDeleteNode:u5,handleDuplicateNode:Py,handleCreateInstance:sm,handleRenameNode:EO,handleAutoLayout:om}=j3n({graphRef:Ps,nodeIdCounter:eu,lastSelectedNodeRef:ni,setNodes:u,setEdges:h,setSelectedNode:Ot,setPreviewData:Ep,fitView:R}),{onConnect:Iy,onSelectionChange:a5,onNodeClick:cm,handleDeleteEdge:Ry,onNodeContextMenu:f5,onDragOver:$y,onDrop:cg}=E3n({graphRef:Ps,nodeIdCounter:eu,lastSelectedNodeRef:ni,setNodes:u,setEdges:h,setSelectedNode:Ot,setContextMenu:cn,fetchPreview:SO,clearTrace:e2,screenToFlowPosition:P});if(nm)return O.jsx("div",{className:"h-full w-full flex items-center justify-center",style:{background:"var(--bg-base)"},children:O.jsx("div",{className:"text-sm",style:{color:"var(--text-muted)"},children:"Loading pipeline..."})});const Au=qr.current;return O.jsxs("div",{className:"h-full w-full flex flex-col",style:{background:"var(--bg-base)"},children:[O.jsx(Xxn,{nodeCount:l.length,dirty:Ee,canUndo:N,canRedo:_,onUndo:S,onRedo:C,onZoomIn:()=>q(),onZoomOut:()=>F(),onOpenUtility:()=>{ie(!0),Ot(null),ni.current=null},onOpenImports:()=>{se(!0),Ot(null),ni.current=null},onOpenGit:()=>{Ne(!0),Ot(null),ni.current=null},onCentre:()=>R({padding:.15}),onAutoLayout:om,onSave:of,wsStatus:Tp,timings:Mu==null?void 0:Mu.timings,memory:Mu==null?void 0:Mu.memory}),O.jsxs("div",{className:"flex-1 flex min-h-0",children:[O.jsx("nav",{"aria-label":"Node palette",children:J?O.jsx(VV,{name:"NodePalette",children:O.jsx(Qdn,{onCollapse:()=>ee(!1),nodes:l})}):O.jsx("button",{onClick:()=>ee(!0),"aria-label":"Show node palette",className:"shrink-0 flex items-center justify-center w-10 h-full transition-colors",style:{background:"var(--chrome)",borderRight:"1px solid var(--chrome-border)"},onMouseEnter:kn=>kn.currentTarget.style.background="var(--chrome-hover)",onMouseLeave:kn=>kn.currentTarget.style.background="var(--chrome)",title:"Show node palette",children:O.jsx(Bfn,{size:16,style:{color:"var(--text-muted)"}})})}),O.jsxs("main",{className:"flex-1 flex flex-col min-w-0",children:[Re&&O.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 text-[12px] font-medium",style:{background:"rgba(239, 68, 68, 0.15)",color:"#f87171",borderBottom:"1px solid rgba(239, 68, 68, 0.3)"},children:[O.jsx("span",{className:"flex-1 truncate",children:Re}),O.jsx("button",{onClick:()=>he(null),className:"opacity-60 hover:opacity-100",children:"✕"})]}),O.jsx(VV,{name:"Canvas",children:O.jsxs("div",{className:"flex-1 min-h-0 relative",children:[O.jsx(Hxn,{viewStack:n2,onNavigate:a0}),O.jsx(can,{nodes:TO,edges:t2,onNodesChange:p,onEdgesChange:k,onConnect:Iy,onSelectionChange:a5,onNodeMouseEnter:(kn,ro)=>ft(ro.id),onNodeMouseLeave:()=>ft(null),onNodeClick:(kn,ro)=>{ie(!1),se(!1),Ne(!1),cm(kn,ro)},onNodeContextMenu:f5,onNodeDoubleClick:(kn,ro)=>{Kw(ro).nodeType===pi.SUBMODEL&&i2(ro.id)},onPaneClick:()=>{cn(null),e2(),ji()},onDrop:cg,onDragOver:$y,nodeTypes:C3n,panOnDrag:[2],selectionOnDrag:!0,selectNodesOnDrag:!0,selectionMode:XI.Partial,selectionKeyCode:null,minZoom:.1,fitView:!0,fitViewOptions:{padding:.15},proOptions:{hideAttribution:!0},defaultEdgeOptions:{type:"default",animated:!1,style:{stroke:"rgba(255,255,255,.25)",strokeWidth:1.5}},connectionLineStyle:{stroke:"var(--accent)",strokeWidth:2,strokeDasharray:"6 3"},children:O.jsx(gan,{variant:gO.Dots,gap:24,size:1,color:"rgba(255,255,255,.06)"})})]})}),O.jsx(VV,{name:"DataPreview",children:(()=>{const kn=(gt==null?void 0:gt.id)??nr,ro=kn?xo(kn):null;if(ro)return O.jsx(_xn,{data:ro,nodeId:kn});const al=kn?as(kn):null;if(al)return O.jsx(Fyn,{data:al,nodeId:kn});const Pa=kn?l.find(CO=>CO.id===kn):null;return Pa&&Kw(Pa).nodeType===pi.OPTIMISER&&Mu&&Mu.status==="ok"&&Mu.preview.length>0?O.jsx(txn,{data:Mu,config:Kw(Pa).config??{}}):O.jsx(Byn,{data:Mu,onCellClick:jO,tracedCell:zf})})()})]}),O.jsx("aside",{"aria-label":"Node properties",children:O.jsx(VV,{name:"NodePanel",children:ge?O.jsx(e3n,{onClose:()=>Ne(!1)}):te?O.jsx(Yxn,{onClose:()=>ie(!1),onImportAdded:kn=>{const ro=fr.current;if(!ro.includes(kn)){const al=ro?`${ro}
${kn}`:kn;wn(al),fr.current=al,Te(!0)}}}):oe?O.jsx(Zxn,{preamble:dn,onPreambleChange:kn=>{wn(kn),fr.current=kn,Te(!0)},onClose:()=>se(!1)}):c1?O.jsx(Lxn,{trace:c1,onClose:e2}):O.jsx(Ryn,{node:(()=>{const kn=(gt==null?void 0:gt.id)??nr;return kn?l.find(ro=>ro.id===kn)??null:null})(),edges:s,allNodes:l,submodels:Au,preamble:dn,onClose:ji,onUpdateNode:l5,onDeleteEdge:Ry,onRefreshPreview:()=>{gt&&im(gt)},dimmed:!gt&&!!nr,errorLine:(Mu==null?void 0:Mu.nodeId)===((gt==null?void 0:gt.id)??nr)?(Mu==null?void 0:Mu.error_line)??null:null})})})]}),dt&&O.jsx(Bxn,{x:dt.x,y:dt.y,nodeId:dt.nodeId,nodeLabel:dt.nodeLabel,onClose:()=>cn(null),onDelete:u5,onDuplicate:Py,onRename:EO,onCreateInstance:sm,isSubmodel:dt.isSubmodel,onDissolveSubmodel:rm}),qe&&O.jsx(qxn,{onClose:()=>Ke(!1)}),Le&&O.jsx(Wxn,{nodeCount:Le.nodeIds.length,onClose:()=>we(null),onSubmit:kn=>{r2(kn,Le.nodeIds),we(null)}}),Z&&O.jsx(Kxn,{defaultValue:Z.currentLabel,onCancel:()=>pe(null),onConfirm:kn=>{const ro=Ps.current.nodes.find(al=>al.id===Z.nodeId);ro&&l5(Z.nodeId,{...ro.data,label:kn}),pe(null)}}),Ce&&O.jsx(t3n,{onClose:()=>We(!1),onSelectNode:kn=>{const ro=Ps.current.nodes.find(al=>al.id===kn)??null;ro&&(Ot(ro),ni.current=ro,ie(!1),se(!1),Ne(!1))}}),O.jsx(VV,{name:"Toast",children:O.jsx($xn,{})})]})}function A3n(){return O.jsx(nOt,{children:O.jsx(M3n,{})})}_in.createRoot(document.getElementById("root")).render(O.jsx(ue.StrictMode,{children:O.jsx(A3n,{})}));
