var ern=Object.defineProperty;var trn=(l,s,u)=>s in l?ern(l,s,{enumerable:!0,configurable:!0,writable:!0,value:u}):l[s]=u;var VCe=(l,s,u)=>trn(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 Kxt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function EAe(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var XCe={exports:{}},HW={};/**
 * @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 Yxt;function nrn(){if(Yxt)return HW;Yxt=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 O in g)O!=="key"&&(m[O]=g[O])}else m=g;return g=m.ref,{$$typeof:l,type:h,key:p,ref:g!==void 0?g:null,props:m}}return HW.Fragment=s,HW.jsx=u,HW.jsxs=u,HW}var Zxt;function irn(){return Zxt||(Zxt=1,XCe.exports=nrn()),XCe.exports}var y=irn(),KCe={exports:{}},Bs={};/**
 * @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 eyt;function rrn(){if(eyt)return Bs;eyt=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"),O=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),P=Symbol.iterator;function I(Te){return Te===null||typeof Te!="object"?null:(Te=P&&Te[P]||Te["@@iterator"],typeof Te=="function"?Te:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,X={};function Q(Te,et,Ie){this.props=Te,this.context=et,this.refs=X,this.updater=Ie||q}Q.prototype.isReactComponent={},Q.prototype.setState=function(Te,et){if(typeof Te!="object"&&typeof Te!="function"&&Te!=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,Te,et,"setState")},Q.prototype.forceUpdate=function(Te){this.updater.enqueueForceUpdate(this,Te,"forceUpdate")};function te(){}te.prototype=Q.prototype;function V(Te,et,Ie){this.props=Te,this.context=et,this.refs=X,this.updater=Ie||q}var ne=V.prototype=new te;ne.constructor=V,z(ne,Q.prototype),ne.isPureReactComponent=!0;var ce=Array.isArray;function se(){}var me={H:null,A:null,T:null,S:null},ye=Object.prototype.hasOwnProperty;function qe(Te,et,Ie){var Ye=Ie.ref;return{$$typeof:l,type:Te,key:et,ref:Ye!==void 0?Ye:null,props:Ie}}function Be(Te,et){return qe(Te.type,et,Te.props)}function ke(Te){return typeof Te=="object"&&Te!==null&&Te.$$typeof===l}function le(Te){var et={"=":"=0",":":"=2"};return"$"+Te.replace(/[=:]/g,function(Ie){return et[Ie]})}var W=/\/+/g;function pe(Te,et){return typeof Te=="object"&&Te!==null&&Te.key!=null?le(""+Te.key):et.toString(36)}function je(Te){switch(Te.status){case"fulfilled":return Te.value;case"rejected":throw Te.reason;default:switch(typeof Te.status=="string"?Te.then(se,se):(Te.status="pending",Te.then(function(et){Te.status==="pending"&&(Te.status="fulfilled",Te.value=et)},function(et){Te.status==="pending"&&(Te.status="rejected",Te.reason=et)})),Te.status){case"fulfilled":return Te.value;case"rejected":throw Te.reason}}throw Te}function ue(Te,et,Ie,Ye,Je){var _t=typeof Te;(_t==="undefined"||_t==="boolean")&&(Te=null);var nn=!1;if(Te===null)nn=!0;else switch(_t){case"bigint":case"string":case"number":nn=!0;break;case"object":switch(Te.$$typeof){case l:case s:nn=!0;break;case N:return nn=Te._init,ue(nn(Te._payload),et,Ie,Ye,Je)}}if(nn)return Je=Je(Te),nn=Ye===""?"."+pe(Te,0):Ye,ce(Je)?(Ie="",nn!=null&&(Ie=nn.replace(W,"$&/")+"/"),ue(Je,et,Ie,"",function(rr){return rr})):Je!=null&&(ke(Je)&&(Je=Be(Je,Ie+(Je.key==null||Te&&Te.key===Je.key?"":(""+Je.key).replace(W,"$&/")+"/")+nn)),et.push(Je)),1;nn=0;var an=Ye===""?".":Ye+":";if(ce(Te))for(var Jn=0;Jn<Te.length;Jn++)Ye=Te[Jn],_t=an+pe(Ye,Jn),nn+=ue(Ye,et,Ie,_t,Je);else if(Jn=I(Te),typeof Jn=="function")for(Te=Jn.call(Te),Jn=0;!(Ye=Te.next()).done;)Ye=Ye.value,_t=an+pe(Ye,Jn++),nn+=ue(Ye,et,Ie,_t,Je);else if(_t==="object"){if(typeof Te.then=="function")return ue(je(Te),et,Ie,Ye,Je);throw et=String(Te),Error("Objects are not valid as a React child (found: "+(et==="[object Object]"?"object with keys {"+Object.keys(Te).join(", ")+"}":et)+"). If you meant to render a collection of children, use an array instead.")}return nn}function ve(Te,et,Ie){if(Te==null)return Te;var Ye=[],Je=0;return ue(Te,Ye,"","",function(_t){return et.call(Ie,_t,Je++)}),Ye}function xe(Te){if(Te._status===-1){var et=Te._result;et=et(),et.then(function(Ie){(Te._status===0||Te._status===-1)&&(Te._status=1,Te._result=Ie)},function(Ie){(Te._status===0||Te._status===-1)&&(Te._status=2,Te._result=Ie)}),Te._status===-1&&(Te._status=0,Te._result=et)}if(Te._status===1)return Te._result.default;throw Te._result}var Ee=typeof reportError=="function"?reportError:function(Te){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var et=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Te=="object"&&Te!==null&&typeof Te.message=="string"?String(Te.message):String(Te),error:Te});if(!window.dispatchEvent(et))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",Te);return}console.error(Te)},tt={map:ve,forEach:function(Te,et,Ie){ve(Te,function(){et.apply(this,arguments)},Ie)},count:function(Te){var et=0;return ve(Te,function(){et++}),et},toArray:function(Te){return ve(Te,function(et){return et})||[]},only:function(Te){if(!ke(Te))throw Error("React.Children.only expected to receive a single React element child.");return Te}};return Bs.Activity=_,Bs.Children=tt,Bs.Component=Q,Bs.Fragment=u,Bs.Profiler=g,Bs.PureComponent=V,Bs.StrictMode=h,Bs.Suspense=j,Bs.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=me,Bs.__COMPILER_RUNTIME={__proto__:null,c:function(Te){return me.H.useMemoCache(Te)}},Bs.cache=function(Te){return function(){return Te.apply(null,arguments)}},Bs.cacheSignal=function(){return null},Bs.cloneElement=function(Te,et,Ie){if(Te==null)throw Error("The argument must be a React element, but you passed "+Te+".");var Ye=z({},Te.props),Je=Te.key;if(et!=null)for(_t in et.key!==void 0&&(Je=""+et.key),et)!ye.call(et,_t)||_t==="key"||_t==="__self"||_t==="__source"||_t==="ref"&&et.ref===void 0||(Ye[_t]=et[_t]);var _t=arguments.length-2;if(_t===1)Ye.children=Ie;else if(1<_t){for(var nn=Array(_t),an=0;an<_t;an++)nn[an]=arguments[an+2];Ye.children=nn}return qe(Te.type,Je,Ye)},Bs.createContext=function(Te){return Te={$$typeof:p,_currentValue:Te,_currentValue2:Te,_threadCount:0,Provider:null,Consumer:null},Te.Provider=Te,Te.Consumer={$$typeof:m,_context:Te},Te},Bs.createElement=function(Te,et,Ie){var Ye,Je={},_t=null;if(et!=null)for(Ye in et.key!==void 0&&(_t=""+et.key),et)ye.call(et,Ye)&&Ye!=="key"&&Ye!=="__self"&&Ye!=="__source"&&(Je[Ye]=et[Ye]);var nn=arguments.length-2;if(nn===1)Je.children=Ie;else if(1<nn){for(var an=Array(nn),Jn=0;Jn<nn;Jn++)an[Jn]=arguments[Jn+2];Je.children=an}if(Te&&Te.defaultProps)for(Ye in nn=Te.defaultProps,nn)Je[Ye]===void 0&&(Je[Ye]=nn[Ye]);return qe(Te,_t,Je)},Bs.createRef=function(){return{current:null}},Bs.forwardRef=function(Te){return{$$typeof:O,render:Te}},Bs.isValidElement=ke,Bs.lazy=function(Te){return{$$typeof:N,_payload:{_status:-1,_result:Te},_init:xe}},Bs.memo=function(Te,et){return{$$typeof:C,type:Te,compare:et===void 0?null:et}},Bs.startTransition=function(Te){var et=me.T,Ie={};me.T=Ie;try{var Ye=Te(),Je=me.S;Je!==null&&Je(Ie,Ye),typeof Ye=="object"&&Ye!==null&&typeof Ye.then=="function"&&Ye.then(se,Ee)}catch(_t){Ee(_t)}finally{et!==null&&Ie.types!==null&&(et.types=Ie.types),me.T=et}},Bs.unstable_useCacheRefresh=function(){return me.H.useCacheRefresh()},Bs.use=function(Te){return me.H.use(Te)},Bs.useActionState=function(Te,et,Ie){return me.H.useActionState(Te,et,Ie)},Bs.useCallback=function(Te,et){return me.H.useCallback(Te,et)},Bs.useContext=function(Te){return me.H.useContext(Te)},Bs.useDebugValue=function(){},Bs.useDeferredValue=function(Te,et){return me.H.useDeferredValue(Te,et)},Bs.useEffect=function(Te,et){return me.H.useEffect(Te,et)},Bs.useEffectEvent=function(Te){return me.H.useEffectEvent(Te)},Bs.useId=function(){return me.H.useId()},Bs.useImperativeHandle=function(Te,et,Ie){return me.H.useImperativeHandle(Te,et,Ie)},Bs.useInsertionEffect=function(Te,et){return me.H.useInsertionEffect(Te,et)},Bs.useLayoutEffect=function(Te,et){return me.H.useLayoutEffect(Te,et)},Bs.useMemo=function(Te,et){return me.H.useMemo(Te,et)},Bs.useOptimistic=function(Te,et){return me.H.useOptimistic(Te,et)},Bs.useReducer=function(Te,et,Ie){return me.H.useReducer(Te,et,Ie)},Bs.useRef=function(Te){return me.H.useRef(Te)},Bs.useState=function(Te){return me.H.useState(Te)},Bs.useSyncExternalStore=function(Te,et,Ie){return me.H.useSyncExternalStore(Te,et,Ie)},Bs.useTransition=function(){return me.H.useTransition()},Bs.version="19.2.4",Bs}var tyt;function WV(){return tyt||(tyt=1,KCe.exports=rrn()),KCe.exports}var re=WV();const DI=EAe(re);var YCe={exports:{}},GW={},ZCe={exports:{}},eEe={};/**
 * @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 nyt;function srn(){return nyt||(nyt=1,(function(l){function s(ue,ve){var xe=ue.length;ue.push(ve);e:for(;0<xe;){var Ee=xe-1>>>1,tt=ue[Ee];if(0<g(tt,ve))ue[Ee]=ve,ue[xe]=tt,xe=Ee;else break e}}function u(ue){return ue.length===0?null:ue[0]}function h(ue){if(ue.length===0)return null;var ve=ue[0],xe=ue.pop();if(xe!==ve){ue[0]=xe;e:for(var Ee=0,tt=ue.length,Te=tt>>>1;Ee<Te;){var et=2*(Ee+1)-1,Ie=ue[et],Ye=et+1,Je=ue[Ye];if(0>g(Ie,xe))Ye<tt&&0>g(Je,Ie)?(ue[Ee]=Je,ue[Ye]=xe,Ee=Ye):(ue[Ee]=Ie,ue[et]=xe,Ee=et);else if(Ye<tt&&0>g(Je,xe))ue[Ee]=Je,ue[Ye]=xe,Ee=Ye;else break e}}return ve}function g(ue,ve){var xe=ue.sortIndex-ve.sortIndex;return xe!==0?xe:ue.id-ve.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,O=p.now();l.unstable_now=function(){return p.now()-O}}var j=[],C=[],N=1,_=null,P=3,I=!1,q=!1,z=!1,X=!1,Q=typeof setTimeout=="function"?setTimeout:null,te=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function ne(ue){for(var ve=u(C);ve!==null;){if(ve.callback===null)h(C);else if(ve.startTime<=ue)h(C),ve.sortIndex=ve.expirationTime,s(j,ve);else break;ve=u(C)}}function ce(ue){if(z=!1,ne(ue),!q)if(u(j)!==null)q=!0,se||(se=!0,le());else{var ve=u(C);ve!==null&&je(ce,ve.startTime-ue)}}var se=!1,me=-1,ye=5,qe=-1;function Be(){return X?!0:!(l.unstable_now()-qe<ye)}function ke(){if(X=!1,se){var ue=l.unstable_now();qe=ue;var ve=!0;try{e:{q=!1,z&&(z=!1,te(me),me=-1),I=!0;var xe=P;try{t:{for(ne(ue),_=u(j);_!==null&&!(_.expirationTime>ue&&Be());){var Ee=_.callback;if(typeof Ee=="function"){_.callback=null,P=_.priorityLevel;var tt=Ee(_.expirationTime<=ue);if(ue=l.unstable_now(),typeof tt=="function"){_.callback=tt,ne(ue),ve=!0;break t}_===u(j)&&h(j),ne(ue)}else h(j);_=u(j)}if(_!==null)ve=!0;else{var Te=u(C);Te!==null&&je(ce,Te.startTime-ue),ve=!1}}break e}finally{_=null,P=xe,I=!1}ve=void 0}}finally{ve?le():se=!1}}}var le;if(typeof V=="function")le=function(){V(ke)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,pe=W.port2;W.port1.onmessage=ke,le=function(){pe.postMessage(null)}}else le=function(){Q(ke,0)};function je(ue,ve){me=Q(function(){ue(l.unstable_now())},ve)}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(ue){ue.callback=null},l.unstable_forceFrameRate=function(ue){0>ue||125<ue?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ye=0<ue?Math.floor(1e3/ue):5},l.unstable_getCurrentPriorityLevel=function(){return P},l.unstable_next=function(ue){switch(P){case 1:case 2:case 3:var ve=3;break;default:ve=P}var xe=P;P=ve;try{return ue()}finally{P=xe}},l.unstable_requestPaint=function(){X=!0},l.unstable_runWithPriority=function(ue,ve){switch(ue){case 1:case 2:case 3:case 4:case 5:break;default:ue=3}var xe=P;P=ue;try{return ve()}finally{P=xe}},l.unstable_scheduleCallback=function(ue,ve,xe){var Ee=l.unstable_now();switch(typeof xe=="object"&&xe!==null?(xe=xe.delay,xe=typeof xe=="number"&&0<xe?Ee+xe:Ee):xe=Ee,ue){case 1:var tt=-1;break;case 2:tt=250;break;case 5:tt=1073741823;break;case 4:tt=1e4;break;default:tt=5e3}return tt=xe+tt,ue={id:N++,callback:ve,priorityLevel:ue,startTime:xe,expirationTime:tt,sortIndex:-1},xe>Ee?(ue.sortIndex=xe,s(C,ue),u(j)===null&&ue===u(C)&&(z?(te(me),me=-1):z=!0,je(ce,xe-Ee))):(ue.sortIndex=tt,s(j,ue),q||I||(q=!0,se||(se=!0,le()))),ue},l.unstable_shouldYield=Be,l.unstable_wrapCallback=function(ue){var ve=P;return function(){var xe=P;P=ve;try{return ue.apply(this,arguments)}finally{P=xe}}}})(eEe)),eEe}var iyt;function orn(){return iyt||(iyt=1,ZCe.exports=srn()),ZCe.exports}var tEe={exports:{}},rg={};/**
 * @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 crn(){if(ryt)return rg;ryt=1;var l=WV();function s(j){var C="https://react.dev/errors/"+j;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 #"+j+"; 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(j,C,N){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:g,key:_==null?null:""+_,children:j,containerInfo:C,implementation:N}}var p=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function O(j,C){if(j==="font")return"";if(typeof C=="string")return C==="use-credentials"?C:""}return rg.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=h,rg.createPortal=function(j,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(j,C,null,N)},rg.flushSync=function(j){var C=p.T,N=h.p;try{if(p.T=null,h.p=2,j)return j()}finally{p.T=C,h.p=N,h.d.f()}},rg.preconnect=function(j,C){typeof j=="string"&&(C?(C=C.crossOrigin,C=typeof C=="string"?C==="use-credentials"?C:"":void 0):C=null,h.d.C(j,C))},rg.prefetchDNS=function(j){typeof j=="string"&&h.d.D(j)},rg.preinit=function(j,C){if(typeof j=="string"&&C&&typeof C.as=="string"){var N=C.as,_=O(N,C.crossOrigin),P=typeof C.integrity=="string"?C.integrity:void 0,I=typeof C.fetchPriority=="string"?C.fetchPriority:void 0;N==="style"?h.d.S(j,typeof C.precedence=="string"?C.precedence:void 0,{crossOrigin:_,integrity:P,fetchPriority:I}):N==="script"&&h.d.X(j,{crossOrigin:_,integrity:P,fetchPriority:I,nonce:typeof C.nonce=="string"?C.nonce:void 0})}},rg.preinitModule=function(j,C){if(typeof j=="string")if(typeof C=="object"&&C!==null){if(C.as==null||C.as==="script"){var N=O(C.as,C.crossOrigin);h.d.M(j,{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(j)},rg.preload=function(j,C){if(typeof j=="string"&&typeof C=="object"&&C!==null&&typeof C.as=="string"){var N=C.as,_=O(N,C.crossOrigin);h.d.L(j,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})}},rg.preloadModule=function(j,C){if(typeof j=="string")if(C){var N=O(C.as,C.crossOrigin);h.d.m(j,{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(j)},rg.requestFormReset=function(j){h.d.r(j)},rg.unstable_batchedUpdates=function(j,C){return j(C)},rg.useFormState=function(j,C,N){return p.H.useFormState(j,C,N)},rg.useFormStatus=function(){return p.H.useHostTransitionStatus()},rg.version="19.2.4",rg}var syt;function W4t(){if(syt)return tEe.exports;syt=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(),tEe.exports=crn(),tEe.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 oyt;function lrn(){if(oyt)return GW;oyt=1;var l=orn(),s=WV(),u=W4t();function h(w){var x="https://react.dev/errors/"+w;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)x+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+w+"; visit "+x+" 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 x=w,S=w;if(w.alternate)for(;x.return;)x=x.return;else{w=x;do x=w,(x.flags&4098)!==0&&(S=x.return),w=x.return;while(w)}return x.tag===3?S:null}function p(w){if(w.tag===13){var x=w.memoizedState;if(x===null&&(w=w.alternate,w!==null&&(x=w.memoizedState)),x!==null)return x.dehydrated}return null}function O(w){if(w.tag===31){var x=w.memoizedState;if(x===null&&(w=w.alternate,w!==null&&(x=w.memoizedState)),x!==null)return x.dehydrated}return null}function j(w){if(m(w)!==w)throw Error(h(188))}function C(w){var x=w.alternate;if(!x){if(x=m(w),x===null)throw Error(h(188));return x!==w?null:w}for(var S=w,D=x;;){var B=S.return;if(B===null)break;var H=B.alternate;if(H===null){if(D=B.return,D!==null){S=D;continue}break}if(B.child===H.child){for(H=B.child;H;){if(H===S)return j(B),w;if(H===D)return j(B),x;H=H.sibling}throw Error(h(188))}if(S.return!==D.return)S=B,D=H;else{for(var de=!1,De=B.child;De;){if(De===S){de=!0,S=B,D=H;break}if(De===D){de=!0,D=B,S=H;break}De=De.sibling}if(!de){for(De=H.child;De;){if(De===S){de=!0,S=H,D=B;break}if(De===D){de=!0,D=H,S=B;break}De=De.sibling}if(!de)throw Error(h(189))}}if(S.alternate!==D)throw Error(h(190))}if(S.tag!==3)throw Error(h(188));return S.stateNode.current===S?w:x}function N(w){var x=w.tag;if(x===5||x===26||x===27||x===6)return w;for(w=w.child;w!==null;){if(x=N(w),x!==null)return x;w=w.sibling}return null}var _=Object.assign,P=Symbol.for("react.element"),I=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),te=Symbol.for("react.consumer"),V=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),ye=Symbol.for("react.lazy"),qe=Symbol.for("react.activity"),Be=Symbol.for("react.memo_cache_sentinel"),ke=Symbol.iterator;function le(w){return w===null||typeof w!="object"?null:(w=ke&&w[ke]||w["@@iterator"],typeof w=="function"?w:null)}var W=Symbol.for("react.client.reference");function pe(w){if(w==null)return null;if(typeof w=="function")return w.$$typeof===W?null:w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case z:return"Fragment";case Q:return"Profiler";case X:return"StrictMode";case ce:return"Suspense";case se:return"SuspenseList";case qe:return"Activity"}if(typeof w=="object")switch(w.$$typeof){case q:return"Portal";case V:return w.displayName||"Context";case te:return(w._context.displayName||"Context")+".Consumer";case ne:var x=w.render;return w=w.displayName,w||(w=x.displayName||x.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case me:return x=w.displayName||null,x!==null?x:pe(w.type)||"Memo";case ye:x=w._payload,w=w._init;try{return pe(w(x))}catch{}}return null}var je=Array.isArray,ue=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xe={pending:!1,data:null,method:null,action:null},Ee=[],tt=-1;function Te(w){return{current:w}}function et(w){0>tt||(w.current=Ee[tt],Ee[tt]=null,tt--)}function Ie(w,x){tt++,Ee[tt]=w.current,w.current=x}var Ye=Te(null),Je=Te(null),_t=Te(null),nn=Te(null);function an(w,x){switch(Ie(_t,x),Ie(Je,w),Ie(Ye,null),x.nodeType){case 9:case 11:w=(w=x.documentElement)&&(w=w.namespaceURI)?dz(w):0;break;default:if(w=x.tagName,x=x.namespaceURI)x=dz(x),w=gz(x,w);else switch(w){case"svg":w=1;break;case"math":w=2;break;default:w=0}}et(Ye),Ie(Ye,w)}function Jn(){et(Ye),et(Je),et(_t)}function rr(w){w.memoizedState!==null&&Ie(nn,w);var x=Ye.current,S=gz(x,w.type);x!==S&&(Ie(Je,w),Ie(Ye,S))}function ei(w){Je.current===w&&(et(Ye),et(Je)),nn.current===w&&(et(nn),y6._currentValue=xe)}var Ei,xi;function Kr(w){if(Ei===void 0)try{throw Error()}catch(S){var x=S.stack.trim().match(/\n( *(at )?)/);Ei=x&&x[1]||"",xi=-1<S.stack.indexOf(`
    at`)?" (<anonymous>)":-1<S.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ei+w+xi}var mo=!1;function hs(w,x){if(!w||mo)return"";mo=!0;var S=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var D={DetermineComponentFrameRoot:function(){try{if(x){var On=function(){throw Error()};if(Object.defineProperty(On.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(On,[])}catch(cn){var en=cn}Reflect.construct(w,[],On)}else{try{On.call()}catch(cn){en=cn}w.call(On.prototype)}}else{try{throw Error()}catch(cn){en=cn}(On=w())&&typeof On.catch=="function"&&On.catch(function(){})}}catch(cn){if(cn&&en&&typeof cn.stack=="string")return[cn.stack,en.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(),de=H[0],De=H[1];if(de&&De){var mt=de.split(`
`),qt=De.split(`
`);for(B=D=0;D<mt.length&&!mt[D].includes("DetermineComponentFrameRoot");)D++;for(;B<qt.length&&!qt[B].includes("DetermineComponentFrameRoot");)B++;if(D===mt.length||B===qt.length)for(D=mt.length-1,B=qt.length-1;1<=D&&0<=B&&mt[D]!==qt[B];)B--;for(;1<=D&&0<=B;D--,B--)if(mt[D]!==qt[B]){if(D!==1||B!==1)do if(D--,B--,0>B||mt[D]!==qt[B]){var mn=`
`+mt[D].replace(" at new "," at ");return w.displayName&&mn.includes("<anonymous>")&&(mn=mn.replace("<anonymous>",w.displayName)),mn}while(1<=D&&0<=B);break}}}finally{mo=!1,Error.prepareStackTrace=S}return(S=w?w.displayName||w.name:"")?Kr(S):""}function Fo(w,x){switch(w.tag){case 26:case 27:case 5:return Kr(w.type);case 16:return Kr("Lazy");case 13:return w.child!==x&&x!==null?Kr("Suspense Fallback"):Kr("Suspense");case 19:return Kr("SuspenseList");case 0:case 15:return hs(w.type,!1);case 11:return hs(w.type.render,!1);case 1:return hs(w.type,!0);case 31:return Kr("Activity");default:return""}}function Bn(w){try{var x="",S=null;do x+=Fo(w,S),S=w,w=w.return;while(w);return x}catch(D){return`
Error generating stack: `+D.message+`
`+D.stack}}var zs=Object.prototype.hasOwnProperty,Ji=l.unstable_scheduleCallback,ds=l.unstable_cancelCallback,qo=l.unstable_shouldYield,yo=l.unstable_requestPaint,sa=l.unstable_now,_p=l.unstable_getCurrentPriorityLevel,Wh=l.unstable_ImmediatePriority,d0=l.unstable_UserBlockingPriority,Dp=l.unstable_NormalPriority,EO=l.unstable_LowPriority,c2=l.unstable_IdlePriority,qc=l.log,cb=l.unstable_setDisableYieldValue,lb=null,qf=null;function lg(w){if(typeof qc=="function"&&cb(w),qf&&typeof qf.setStrictMode=="function")try{qf.setStrictMode(lb,w)}catch{}}var cf=Math.clz32?Math.clz32:AO,h5=Math.log,MO=Math.LN2;function AO(w){return w>>>=0,w===0?32:31-(h5(w)/MO|0)|0}var g0=256,l2=262144,u2=4194304;function ug(w){var x=w&42;if(x!==0)return x;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 a2(w,x,S){var D=w.pendingLanes;if(D===0)return 0;var B=0,H=w.suspendedLanes,de=w.pingedLanes;w=w.warmLanes;var De=D&134217727;return De!==0?(D=De&~H,D!==0?B=ug(D):(de&=De,de!==0?B=ug(de):S||(S=De&~w,S!==0&&(B=ug(S))))):(De=D&~H,De!==0?B=ug(De):de!==0?B=ug(de):S||(S=D&~w,S!==0&&(B=ug(S)))),B===0?0:x!==0&&x!==B&&(x&H)===0&&(H=B&-B,S=x&-x,H>=S||H===32&&(S&4194048)!==0)?x:B}function ub(w,x){return(w.pendingLanes&~(w.suspendedLanes&~w.pingedLanes)&x)===0}function NO(w,x){switch(w){case 1:case 2:case 4:case 8:case 64:return x+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 x+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 d5(){var w=u2;return u2<<=1,(u2&62914560)===0&&(u2=4194304),w}function f2(w){for(var x=[],S=0;31>S;S++)x.push(w);return x}function ab(w,x){w.pendingLanes|=x,x!==268435456&&(w.suspendedLanes=0,w.pingedLanes=0,w.warmLanes=0)}function _O(w,x,S,D,B,H){var de=w.pendingLanes;w.pendingLanes=S,w.suspendedLanes=0,w.pingedLanes=0,w.warmLanes=0,w.expiredLanes&=S,w.entangledLanes&=S,w.errorRecoveryDisabledLanes&=S,w.shellSuspendCounter=0;var De=w.entanglements,mt=w.expirationTimes,qt=w.hiddenUpdates;for(S=de&~S;0<S;){var mn=31-cf(S),On=1<<mn;De[mn]=0,mt[mn]=-1;var en=qt[mn];if(en!==null)for(qt[mn]=null,mn=0;mn<en.length;mn++){var cn=en[mn];cn!==null&&(cn.lane&=-536870913)}S&=~On}D!==0&&fb(w,D,0),H!==0&&B===0&&w.tag!==0&&(w.suspendedLanes|=H&~(de&~x))}function fb(w,x,S){w.pendingLanes|=x,w.suspendedLanes&=~x;var D=31-cf(x);w.entangledLanes|=x,w.entanglements[D]=w.entanglements[D]|1073741824|S&261930}function qx(w,x){var S=w.entangledLanes|=x;for(w=w.entanglements;S;){var D=31-cf(S),B=1<<D;B&x|w[D]&x&&(w[D]|=x),S&=~B}}function g5(w,x){var S=x&-x;return S=(S&42)!==0?1:hb(S),(S&(w.suspendedLanes|x))!==0?0:S}function hb(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 Hx(w){return w&=-w,2<w?8<w?(w&134217727)!==0?32:268435456:8:2}function p5(){var w=ve.p;return w!==0?w:(w=window.event,w===void 0?32:iY(w.type))}function Gx(w,x){var S=ve.p;try{return ve.p=w,x()}finally{ve.p=S}}var ag=Math.random().toString(36).slice(2),_u="__reactFiber$"+ag,lf="__reactProps$"+ag,p0="__reactContainer$"+ag,In="__reactEvents$"+ag,tc="__reactListeners$"+ag,tu="__reactHandles$"+ag,Ia="__reactResources$"+ag,db="__reactMarker$"+ag;function DO(w){delete w[_u],delete w[lf],delete w[In],delete w[tc],delete w[tu]}function Lp(w){var x=w[_u];if(x)return x;for(var S=w.parentNode;S;){if(x=S[p0]||S[_u]){if(S=x.alternate,x.child!==null||S!==null&&S.child!==null)for(w=xz(w);w!==null;){if(S=w[_u])return S;w=xz(w)}return x}w=S,S=w.parentNode}return null}function h2(w){if(w=w[_u]||w[p0]){var x=w.tag;if(x===5||x===6||x===13||x===31||x===26||x===27||x===3)return w}return null}function d2(w){var x=w.tag;if(x===5||x===26||x===27||x===6)return w.stateNode;throw Error(h(33))}function g2(w){var x=w[Ia];return x||(x=w[Ia]={hoistableStyles:new Map,hoistableScripts:new Map}),x}function oa(w){w[db]=!0}var K9=new Set,Y9={};function gb(w,x){p2(w,x),p2(w+"Capture",x)}function p2(w,x){for(Y9[w]=x,w=0;w<x.length;w++)K9.add(x[w])}var YM=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]*$"),LO={},Z9={};function e8(w){return zs.call(Z9,w)?!0:zs.call(LO,w)?!1:YM.test(w)?Z9[w]=!0:(LO[w]=!0,!1)}function Qx(w,x,S){if(e8(x))if(S===null)w.removeAttribute(x);else{switch(typeof S){case"undefined":case"function":case"symbol":w.removeAttribute(x);return;case"boolean":var D=x.toLowerCase().slice(0,5);if(D!=="data-"&&D!=="aria-"){w.removeAttribute(x);return}}w.setAttribute(x,""+S)}}function m5(w,x,S){if(S===null)w.removeAttribute(x);else{switch(typeof S){case"undefined":case"function":case"symbol":case"boolean":w.removeAttribute(x);return}w.setAttribute(x,""+S)}}function m0(w,x,S,D){if(D===null)w.removeAttribute(S);else{switch(typeof D){case"undefined":case"function":case"symbol":case"boolean":w.removeAttribute(S);return}w.setAttributeNS(x,S,""+D)}}function Cd(w){switch(typeof w){case"bigint":case"boolean":case"number":case"string":case"undefined":return w;case"object":return w;default:return""}}function t8(w){var x=w.type;return(w=w.nodeName)&&w.toLowerCase()==="input"&&(x==="checkbox"||x==="radio")}function ZM(w,x,S){var D=Object.getOwnPropertyDescriptor(w.constructor.prototype,x);if(!w.hasOwnProperty(x)&&typeof D<"u"&&typeof D.get=="function"&&typeof D.set=="function"){var B=D.get,H=D.set;return Object.defineProperty(w,x,{configurable:!0,get:function(){return B.call(this)},set:function(de){S=""+de,H.call(this,de)}}),Object.defineProperty(w,x,{enumerable:D.enumerable}),{getValue:function(){return S},setValue:function(de){S=""+de},stopTracking:function(){w._valueTracker=null,delete w[x]}}}}function m2(w){if(!w._valueTracker){var x=t8(w)?"checked":"value";w._valueTracker=ZM(w,x,""+w[x])}}function n8(w){if(!w)return!1;var x=w._valueTracker;if(!x)return!0;var S=x.getValue(),D="";return w&&(D=t8(w)?w.checked?"true":"false":w.value),w=D,w!==S?(x.setValue(w),!0):!1}function Ux(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 eA=/[\n"\\]/g;function Ed(w){return w.replace(eA,function(x){return"\\"+x.charCodeAt(0).toString(16)+" "})}function Jx(w,x,S,D,B,H,de,De){w.name="",de!=null&&typeof de!="function"&&typeof de!="symbol"&&typeof de!="boolean"?w.type=de:w.removeAttribute("type"),x!=null?de==="number"?(x===0&&w.value===""||w.value!=x)&&(w.value=""+Cd(x)):w.value!==""+Cd(x)&&(w.value=""+Cd(x)):de!=="submit"&&de!=="reset"||w.removeAttribute("value"),x!=null?PO(w,de,Cd(x)):S!=null?PO(w,de,Cd(S)):D!=null&&w.removeAttribute("value"),B==null&&H!=null&&(w.defaultChecked=!!H),B!=null&&(w.checked=B&&typeof B!="function"&&typeof B!="symbol"),De!=null&&typeof De!="function"&&typeof De!="symbol"&&typeof De!="boolean"?w.name=""+Cd(De):w.removeAttribute("name")}function i8(w,x,S,D,B,H,de,De){if(H!=null&&typeof H!="function"&&typeof H!="symbol"&&typeof H!="boolean"&&(w.type=H),x!=null||S!=null){if(!(H!=="submit"&&H!=="reset"||x!=null)){m2(w);return}S=S!=null?""+Cd(S):"",x=x!=null?""+Cd(x):S,De||x===w.value||(w.value=x),w.defaultValue=x}D=D??B,D=typeof D!="function"&&typeof D!="symbol"&&!!D,w.checked=De?w.checked:!!D,w.defaultChecked=!!D,de!=null&&typeof de!="function"&&typeof de!="symbol"&&typeof de!="boolean"&&(w.name=de),m2(w)}function PO(w,x,S){x==="number"&&Ux(w.ownerDocument)===w||w.defaultValue===""+S||(w.defaultValue=""+S)}function pb(w,x,S,D){if(w=w.options,x){x={};for(var B=0;B<S.length;B++)x["$"+S[B]]=!0;for(S=0;S<w.length;S++)B=x.hasOwnProperty("$"+w[S].value),w[S].selected!==B&&(w[S].selected=B),B&&D&&(w[S].defaultSelected=!0)}else{for(S=""+Cd(S),x=null,B=0;B<w.length;B++){if(w[B].value===S){w[B].selected=!0,D&&(w[B].defaultSelected=!0);return}x!==null||w[B].disabled||(x=w[B])}x!==null&&(x.selected=!0)}}function bR(w,x,S){if(x!=null&&(x=""+Cd(x),x!==w.value&&(w.value=x),S==null)){w.defaultValue!==x&&(w.defaultValue=x);return}w.defaultValue=S!=null?""+Cd(S):""}function wR(w,x,S,D){if(x==null){if(D!=null){if(S!=null)throw Error(h(92));if(je(D)){if(1<D.length)throw Error(h(93));D=D[0]}S=D}S==null&&(S=""),x=S}S=Cd(x),w.defaultValue=S,D=w.textContent,D===S&&D!==""&&D!==null&&(w.value=D),m2(w)}function b5(w,x){if(x){var S=w.firstChild;if(S&&S===w.lastChild&&S.nodeType===3){S.nodeValue=x;return}}w.textContent=x}var gX=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 vR(w,x,S){var D=x.indexOf("--")===0;S==null||typeof S=="boolean"||S===""?D?w.setProperty(x,""):x==="float"?w.cssFloat="":w[x]="":D?w.setProperty(x,S):typeof S!="number"||S===0||gX.has(x)?x==="float"?w.cssFloat=S:w[x]=(""+S).trim():w[x]=S+"px"}function xR(w,x,S){if(x!=null&&typeof x!="object")throw Error(h(62));if(w=w.style,S!=null){for(var D in S)!S.hasOwnProperty(D)||x!=null&&x.hasOwnProperty(D)||(D.indexOf("--")===0?w.setProperty(D,""):D==="float"?w.cssFloat="":w[D]="");for(var B in x)D=x[B],x.hasOwnProperty(B)&&S[B]!==D&&vR(w,B,D)}else for(var H in x)x.hasOwnProperty(H)&&vR(w,H,x[H])}function tA(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 pX=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"]]),mX=/^[\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 r8(w){return mX.test(""+w)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":w}function mb(){}var nA=null;function iA(w){return w=w.target||w.srcElement||window,w.correspondingUseElement&&(w=w.correspondingUseElement),w.nodeType===3?w.parentNode:w}var w5=null,v5=null;function yR(w){var x=h2(w);if(x&&(w=x.stateNode)){var S=w[lf]||null;e:switch(w=x.stateNode,x.type){case"input":if(Jx(w,S.value,S.defaultValue,S.defaultValue,S.checked,S.defaultChecked,S.type,S.name),x=S.name,S.type==="radio"&&x!=null){for(S=w;S.parentNode;)S=S.parentNode;for(S=S.querySelectorAll('input[name="'+Ed(""+x)+'"][type="radio"]'),x=0;x<S.length;x++){var D=S[x];if(D!==w&&D.form===w.form){var B=D[lf]||null;if(!B)throw Error(h(90));Jx(D,B.value,B.defaultValue,B.defaultValue,B.checked,B.defaultChecked,B.type,B.name)}}for(x=0;x<S.length;x++)D=S[x],D.form===w.form&&n8(D)}break e;case"textarea":bR(w,S.value,S.defaultValue);break e;case"select":x=S.value,x!=null&&pb(w,!!S.multiple,x,!1)}}}var rA=!1;function kR(w,x,S){if(rA)return w(x,S);rA=!0;try{var D=w(x);return D}finally{if(rA=!1,(w5!==null||v5!==null)&&(Q8(),w5&&(x=w5,w=v5,v5=w5=null,yR(x),w)))for(x=0;x<w.length;x++)yR(w[x])}}function IO(w,x){var S=w.stateNode;if(S===null)return null;var D=S[lf]||null;if(D===null)return null;S=D[x];e:switch(x){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(S&&typeof S!="function")throw Error(h(231,x,typeof S));return S}var bb=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sA=!1;if(bb)try{var RO={};Object.defineProperty(RO,"passive",{get:function(){sA=!0}}),window.addEventListener("test",RO,RO),window.removeEventListener("test",RO,RO)}catch{sA=!1}var b2=null,oA=null,s8=null;function OR(){if(s8)return s8;var w,x=oA,S=x.length,D,B="value"in b2?b2.value:b2.textContent,H=B.length;for(w=0;w<S&&x[w]===B[w];w++);var de=S-w;for(D=1;D<=de&&x[S-D]===B[H-D];D++);return s8=B.slice(w,1<D?1-D:void 0)}function o8(w){var x=w.keyCode;return"charCode"in w?(w=w.charCode,w===0&&x===13&&(w=13)):w=x,w===10&&(w=13),32<=w||w===13?w:0}function c8(){return!0}function jR(){return!1}function Md(w){function x(S,D,B,H,de){this._reactName=S,this._targetInst=B,this.type=D,this.nativeEvent=H,this.target=de,this.currentTarget=null;for(var De in w)w.hasOwnProperty(De)&&(S=w[De],this[De]=S?S(H):H[De]);return this.isDefaultPrevented=(H.defaultPrevented!=null?H.defaultPrevented:H.returnValue===!1)?c8:jR,this.isPropagationStopped=jR,this}return _(x.prototype,{preventDefault:function(){this.defaultPrevented=!0;var S=this.nativeEvent;S&&(S.preventDefault?S.preventDefault():typeof S.returnValue!="unknown"&&(S.returnValue=!1),this.isDefaultPrevented=c8)},stopPropagation:function(){var S=this.nativeEvent;S&&(S.stopPropagation?S.stopPropagation():typeof S.cancelBubble!="unknown"&&(S.cancelBubble=!0),this.isPropagationStopped=c8)},persist:function(){},isPersistent:c8}),x}var Wx={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(w){return w.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},l8=Md(Wx),$O=_({},Wx,{view:0,detail:0}),bX=Md($O),cA,lA,BO,u8=_({},$O,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:aA,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!==BO&&(BO&&w.type==="mousemove"?(cA=w.screenX-BO.screenX,lA=w.screenY-BO.screenY):lA=cA=0,BO=w),cA)},movementY:function(w){return"movementY"in w?w.movementY:lA}}),SR=Md(u8),wX=_({},u8,{dataTransfer:0}),vX=Md(wX),xX=_({},$O,{relatedTarget:0}),uA=Md(xX),yX=_({},Wx,{animationName:0,elapsedTime:0,pseudoElement:0}),kX=Md(yX),OX=_({},Wx,{clipboardData:function(w){return"clipboardData"in w?w.clipboardData:window.clipboardData}}),jX=Md(OX),SX=_({},Wx,{data:0}),TR=Md(SX),TX={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},CX={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"},EX={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function MX(w){var x=this.nativeEvent;return x.getModifierState?x.getModifierState(w):(w=EX[w])?!!x[w]:!1}function aA(){return MX}var AX=_({},$O,{key:function(w){if(w.key){var x=TX[w.key]||w.key;if(x!=="Unidentified")return x}return w.type==="keypress"?(w=o8(w),w===13?"Enter":String.fromCharCode(w)):w.type==="keydown"||w.type==="keyup"?CX[w.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:aA,charCode:function(w){return w.type==="keypress"?o8(w):0},keyCode:function(w){return w.type==="keydown"||w.type==="keyup"?w.keyCode:0},which:function(w){return w.type==="keypress"?o8(w):w.type==="keydown"||w.type==="keyup"?w.keyCode:0}}),NX=Md(AX),_X=_({},u8,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),CR=Md(_X),DX=_({},$O,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:aA}),LX=Md(DX),PX=_({},Wx,{propertyName:0,elapsedTime:0,pseudoElement:0}),IX=Md(PX),RX=_({},u8,{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}),$X=Md(RX),BX=_({},Wx,{newState:0,oldState:0}),zX=Md(BX),FX=[9,13,27,32],fA=bb&&"CompositionEvent"in window,zO=null;bb&&"documentMode"in document&&(zO=document.documentMode);var qX=bb&&"TextEvent"in window&&!zO,ER=bb&&(!fA||zO&&8<zO&&11>=zO),MR=" ",AR=!1;function NR(w,x){switch(w){case"keyup":return FX.indexOf(x.keyCode)!==-1;case"keydown":return x.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _R(w){return w=w.detail,typeof w=="object"&&"data"in w?w.data:null}var x5=!1;function HX(w,x){switch(w){case"compositionend":return _R(x);case"keypress":return x.which!==32?null:(AR=!0,MR);case"textInput":return w=x.data,w===MR&&AR?null:w;default:return null}}function GX(w,x){if(x5)return w==="compositionend"||!fA&&NR(w,x)?(w=OR(),s8=oA=b2=null,x5=!1,w):null;switch(w){case"paste":return null;case"keypress":if(!(x.ctrlKey||x.altKey||x.metaKey)||x.ctrlKey&&x.altKey){if(x.char&&1<x.char.length)return x.char;if(x.which)return String.fromCharCode(x.which)}return null;case"compositionend":return ER&&x.locale!=="ko"?null:x.data;default:return null}}var QX={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 DR(w){var x=w&&w.nodeName&&w.nodeName.toLowerCase();return x==="input"?!!QX[w.type]:x==="textarea"}function LR(w,x,S,D){w5?v5?v5.push(D):v5=[D]:w5=D,x=Y8(x,"onChange"),0<x.length&&(S=new l8("onChange","change",null,S,D),w.push({event:S,listeners:x}))}var FO=null,qO=null;function UX(w){cz(w,0)}function a8(w){var x=d2(w);if(n8(x))return w}function PR(w,x){if(w==="change")return x}var hA=!1;if(bb){var dA;if(bb){var gA="oninput"in document;if(!gA){var IR=document.createElement("div");IR.setAttribute("oninput","return;"),gA=typeof IR.oninput=="function"}dA=gA}else dA=!1;hA=dA&&(!document.documentMode||9<document.documentMode)}function RR(){FO&&(FO.detachEvent("onpropertychange",$R),qO=FO=null)}function $R(w){if(w.propertyName==="value"&&a8(qO)){var x=[];LR(x,qO,w,iA(w)),kR(UX,x)}}function JX(w,x,S){w==="focusin"?(RR(),FO=x,qO=S,FO.attachEvent("onpropertychange",$R)):w==="focusout"&&RR()}function WX(w){if(w==="selectionchange"||w==="keyup"||w==="keydown")return a8(qO)}function VX(w,x){if(w==="click")return a8(x)}function XX(w,x){if(w==="input"||w==="change")return a8(x)}function KX(w,x){return w===x&&(w!==0||1/w===1/x)||w!==w&&x!==x}var f1=typeof Object.is=="function"?Object.is:KX;function HO(w,x){if(f1(w,x))return!0;if(typeof w!="object"||w===null||typeof x!="object"||x===null)return!1;var S=Object.keys(w),D=Object.keys(x);if(S.length!==D.length)return!1;for(D=0;D<S.length;D++){var B=S[D];if(!zs.call(x,B)||!f1(w[B],x[B]))return!1}return!0}function BR(w){for(;w&&w.firstChild;)w=w.firstChild;return w}function zR(w,x){var S=BR(w);w=0;for(var D;S;){if(S.nodeType===3){if(D=w+S.textContent.length,w<=x&&D>=x)return{node:S,offset:x-w};w=D}e:{for(;S;){if(S.nextSibling){S=S.nextSibling;break e}S=S.parentNode}S=void 0}S=BR(S)}}function FR(w,x){return w&&x?w===x?!0:w&&w.nodeType===3?!1:x&&x.nodeType===3?FR(w,x.parentNode):"contains"in w?w.contains(x):w.compareDocumentPosition?!!(w.compareDocumentPosition(x)&16):!1:!1}function qR(w){w=w!=null&&w.ownerDocument!=null&&w.ownerDocument.defaultView!=null?w.ownerDocument.defaultView:window;for(var x=Ux(w.document);x instanceof w.HTMLIFrameElement;){try{var S=typeof x.contentWindow.location.href=="string"}catch{S=!1}if(S)w=x.contentWindow;else break;x=Ux(w.document)}return x}function pA(w){var x=w&&w.nodeName&&w.nodeName.toLowerCase();return x&&(x==="input"&&(w.type==="text"||w.type==="search"||w.type==="tel"||w.type==="url"||w.type==="password")||x==="textarea"||w.contentEditable==="true")}var YX=bb&&"documentMode"in document&&11>=document.documentMode,y5=null,mA=null,GO=null,bA=!1;function HR(w,x,S){var D=S.window===S?S.document:S.nodeType===9?S:S.ownerDocument;bA||y5==null||y5!==Ux(D)||(D=y5,"selectionStart"in D&&pA(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}),GO&&HO(GO,D)||(GO=D,D=Y8(mA,"onSelect"),0<D.length&&(x=new l8("onSelect","select",null,x,S),w.push({event:x,listeners:D}),x.target=y5)))}function Vx(w,x){var S={};return S[w.toLowerCase()]=x.toLowerCase(),S["Webkit"+w]="webkit"+x,S["Moz"+w]="moz"+x,S}var k5={animationend:Vx("Animation","AnimationEnd"),animationiteration:Vx("Animation","AnimationIteration"),animationstart:Vx("Animation","AnimationStart"),transitionrun:Vx("Transition","TransitionRun"),transitionstart:Vx("Transition","TransitionStart"),transitioncancel:Vx("Transition","TransitionCancel"),transitionend:Vx("Transition","TransitionEnd")},wA={},GR={};bb&&(GR=document.createElement("div").style,"AnimationEvent"in window||(delete k5.animationend.animation,delete k5.animationiteration.animation,delete k5.animationstart.animation),"TransitionEvent"in window||delete k5.transitionend.transition);function Xx(w){if(wA[w])return wA[w];if(!k5[w])return w;var x=k5[w],S;for(S in x)if(x.hasOwnProperty(S)&&S in GR)return wA[w]=x[S];return w}var QR=Xx("animationend"),UR=Xx("animationiteration"),JR=Xx("animationstart"),ZX=Xx("transitionrun"),eK=Xx("transitionstart"),tK=Xx("transitioncancel"),WR=Xx("transitionend"),VR=new Map,vA="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(" ");vA.push("scrollEnd");function b0(w,x){VR.set(w,x),gb(x,[w])}var f8=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var x=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(x))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},fg=[],O5=0,xA=0;function h8(){for(var w=O5,x=xA=O5=0;x<w;){var S=fg[x];fg[x++]=null;var D=fg[x];fg[x++]=null;var B=fg[x];fg[x++]=null;var H=fg[x];if(fg[x++]=null,D!==null&&B!==null){var de=D.pending;de===null?B.next=B:(B.next=de.next,de.next=B),D.pending=B}H!==0&&XR(S,B,H)}}function d8(w,x,S,D){fg[O5++]=w,fg[O5++]=x,fg[O5++]=S,fg[O5++]=D,xA|=D,w.lanes|=D,w=w.alternate,w!==null&&(w.lanes|=D)}function yA(w,x,S,D){return d8(w,x,S,D),g8(w)}function Kx(w,x){return d8(w,null,null,x),g8(w)}function XR(w,x,S){w.lanes|=S;var D=w.alternate;D!==null&&(D.lanes|=S);for(var B=!1,H=w.return;H!==null;)H.childLanes|=S,D=H.alternate,D!==null&&(D.childLanes|=S),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&&x!==null&&(B=31-cf(S),w=H.hiddenUpdates,D=w[B],D===null?w[B]=[x]:D.push(x),x.lane=S|536870912),H):null}function g8(w){if(50<p6)throw p6=0,NN=null,Error(h(185));for(var x=w.return;x!==null;)w=x,x=w.return;return w.tag===3?w.stateNode:null}var j5={};function nK(w,x,S,D){this.tag=w,this.key=S,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=x,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 h1(w,x,S,D){return new nK(w,x,S,D)}function kA(w){return w=w.prototype,!(!w||!w.isReactComponent)}function wb(w,x){var S=w.alternate;return S===null?(S=h1(w.tag,x,w.key,w.mode),S.elementType=w.elementType,S.type=w.type,S.stateNode=w.stateNode,S.alternate=w,w.alternate=S):(S.pendingProps=x,S.type=w.type,S.flags=0,S.subtreeFlags=0,S.deletions=null),S.flags=w.flags&65011712,S.childLanes=w.childLanes,S.lanes=w.lanes,S.child=w.child,S.memoizedProps=w.memoizedProps,S.memoizedState=w.memoizedState,S.updateQueue=w.updateQueue,x=w.dependencies,S.dependencies=x===null?null:{lanes:x.lanes,firstContext:x.firstContext},S.sibling=w.sibling,S.index=w.index,S.ref=w.ref,S.refCleanup=w.refCleanup,S}function KR(w,x){w.flags&=65011714;var S=w.alternate;return S===null?(w.childLanes=0,w.lanes=x,w.child=null,w.subtreeFlags=0,w.memoizedProps=null,w.memoizedState=null,w.updateQueue=null,w.dependencies=null,w.stateNode=null):(w.childLanes=S.childLanes,w.lanes=S.lanes,w.child=S.child,w.subtreeFlags=0,w.deletions=null,w.memoizedProps=S.memoizedProps,w.memoizedState=S.memoizedState,w.updateQueue=S.updateQueue,w.type=S.type,x=S.dependencies,w.dependencies=x===null?null:{lanes:x.lanes,firstContext:x.firstContext}),w}function p8(w,x,S,D,B,H){var de=0;if(D=w,typeof w=="function")kA(w)&&(de=1);else if(typeof w=="string")de=KK(w,S,Ye.current)?26:w==="html"||w==="head"||w==="body"?27:5;else e:switch(w){case qe:return w=h1(31,S,x,B),w.elementType=qe,w.lanes=H,w;case z:return Yx(S.children,B,H,x);case X:de=8,B|=24;break;case Q:return w=h1(12,S,x,B|2),w.elementType=Q,w.lanes=H,w;case ce:return w=h1(13,S,x,B),w.elementType=ce,w.lanes=H,w;case se:return w=h1(19,S,x,B),w.elementType=se,w.lanes=H,w;default:if(typeof w=="object"&&w!==null)switch(w.$$typeof){case V:de=10;break e;case te:de=9;break e;case ne:de=11;break e;case me:de=14;break e;case ye:de=16,D=null;break e}de=29,S=Error(h(130,w===null?"null":typeof w,"")),D=null}return x=h1(de,S,x,B),x.elementType=w,x.type=D,x.lanes=H,x}function Yx(w,x,S,D){return w=h1(7,w,D,x),w.lanes=S,w}function OA(w,x,S){return w=h1(6,w,null,x),w.lanes=S,w}function YR(w){var x=h1(18,null,null,0);return x.stateNode=w,x}function jA(w,x,S){return x=h1(4,w.children!==null?w.children:[],w.key,x),x.lanes=S,x.stateNode={containerInfo:w.containerInfo,pendingChildren:null,implementation:w.implementation},x}var ZR=new WeakMap;function hg(w,x){if(typeof w=="object"&&w!==null){var S=ZR.get(w);return S!==void 0?S:(x={value:w,source:x,stack:Bn(x)},ZR.set(w,x),x)}return{value:w,source:x,stack:Bn(x)}}var S5=[],T5=0,m8=null,QO=0,dg=[],gg=0,w2=null,Pp=1,Ip="";function vb(w,x){S5[T5++]=QO,S5[T5++]=m8,m8=w,QO=x}function e$(w,x,S){dg[gg++]=Pp,dg[gg++]=Ip,dg[gg++]=w2,w2=w;var D=Pp;w=Ip;var B=32-cf(D)-1;D&=~(1<<B),S+=1;var H=32-cf(x)+B;if(30<H){var de=B-B%5;H=(D&(1<<de)-1).toString(32),D>>=de,B-=de,Pp=1<<32-cf(x)+B|S<<B|D,Ip=H+w}else Pp=1<<H|S<<B|D,Ip=w}function SA(w){w.return!==null&&(vb(w,1),e$(w,1,0))}function TA(w){for(;w===m8;)m8=S5[--T5],S5[T5]=null,QO=S5[--T5],S5[T5]=null;for(;w===w2;)w2=dg[--gg],dg[gg]=null,Ip=dg[--gg],dg[gg]=null,Pp=dg[--gg],dg[gg]=null}function t$(w,x){dg[gg++]=Pp,dg[gg++]=Ip,dg[gg++]=w2,Pp=x.id,Ip=x.overflow,w2=w}var uf=null,Tl=null,ko=!1,v2=null,pg=!1,CA=Error(h(519));function x2(w){var x=Error(h(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw y2(hg(x,w)),CA}function n$(w){var x=w.stateNode,S=w.type,D=w.memoizedProps;switch(x[_u]=w,x[lf]=D,S){case"dialog":so("cancel",x),so("close",x);break;case"iframe":case"object":case"embed":so("load",x);break;case"video":case"audio":for(S=0;S<b6.length;S++)so(b6[S],x);break;case"source":so("error",x);break;case"img":case"image":case"link":so("error",x),so("load",x);break;case"details":so("toggle",x);break;case"input":so("invalid",x),i8(x,D.value,D.defaultValue,D.checked,D.defaultChecked,D.type,D.name,!0);break;case"select":so("invalid",x);break;case"textarea":so("invalid",x),wR(x,D.value,D.defaultValue,D.children)}S=D.children,typeof S!="string"&&typeof S!="number"&&typeof S!="bigint"||x.textContent===""+S||D.suppressHydrationWarning===!0||fz(x.textContent,S)?(D.popover!=null&&(so("beforetoggle",x),so("toggle",x)),D.onScroll!=null&&so("scroll",x),D.onScrollEnd!=null&&so("scrollend",x),D.onClick!=null&&(x.onclick=mb),x=!0):x=!1,x||x2(w,!0)}function i$(w){for(uf=w.return;uf;)switch(uf.tag){case 5:case 31:case 13:pg=!1;return;case 27:case 3:pg=!0;return;default:uf=uf.return}}function C5(w){if(w!==uf)return!1;if(!ko)return i$(w),ko=!0,!1;var x=w.tag,S;if((S=x!==3&&x!==27)&&((S=x===5)&&(S=w.type,S=!(S!=="form"&&S!=="button")||JN(w.type,w.memoizedProps)),S=!S),S&&Tl&&x2(w),i$(w),x===13){if(w=w.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(h(317));Tl=ZN(w)}else if(x===31){if(w=w.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(h(317));Tl=ZN(w)}else x===27?(x=Tl,R2(w.type)?(w=YN,YN=null,Tl=w):Tl=x):Tl=uf?wg(w.stateNode.nextSibling):null;return!0}function Zx(){Tl=uf=null,ko=!1}function E5(){var w=v2;return w!==null&&(_d===null?_d=w:_d.push.apply(_d,w),v2=null),w}function y2(w){v2===null?v2=[w]:v2.push(w)}var EA=Te(null),ey=null,Rp=null;function k2(w,x,S){Ie(EA,x._currentValue),x._currentValue=S}function xb(w){w._currentValue=EA.current,et(EA)}function MA(w,x,S){for(;w!==null;){var D=w.alternate;if((w.childLanes&x)!==x?(w.childLanes|=x,D!==null&&(D.childLanes|=x)):D!==null&&(D.childLanes&x)!==x&&(D.childLanes|=x),w===S)break;w=w.return}}function AA(w,x,S,D){var B=w.child;for(B!==null&&(B.return=w);B!==null;){var H=B.dependencies;if(H!==null){var de=B.child;H=H.firstContext;e:for(;H!==null;){var De=H;H=B;for(var mt=0;mt<x.length;mt++)if(De.context===x[mt]){H.lanes|=S,De=H.alternate,De!==null&&(De.lanes|=S),MA(H.return,S,w),D||(de=null);break e}H=De.next}}else if(B.tag===18){if(de=B.return,de===null)throw Error(h(341));de.lanes|=S,H=de.alternate,H!==null&&(H.lanes|=S),MA(de,S,w),de=null}else de=B.child;if(de!==null)de.return=B;else for(de=B;de!==null;){if(de===w){de=null;break}if(B=de.sibling,B!==null){B.return=de.return,de=B;break}de=de.return}B=de}}function M5(w,x,S,D){w=null;for(var B=x,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 de=B.alternate;if(de===null)throw Error(h(387));if(de=de.memoizedProps,de!==null){var De=B.type;f1(B.pendingProps.value,de.value)||(w!==null?w.push(De):w=[De])}}else if(B===nn.current){if(de=B.alternate,de===null)throw Error(h(387));de.memoizedState.memoizedState!==B.memoizedState.memoizedState&&(w!==null?w.push(y6):w=[y6])}B=B.return}w!==null&&AA(x,w,S,D),x.flags|=262144}function UO(w){for(w=w.firstContext;w!==null;){if(!f1(w.context._currentValue,w.memoizedValue))return!0;w=w.next}return!1}function O2(w){ey=w,Rp=null,w=w.dependencies,w!==null&&(w.firstContext=null)}function Hf(w){return NA(ey,w)}function JO(w,x){return ey===null&&O2(w),NA(w,x)}function NA(w,x){var S=x._currentValue;if(x={context:x,memoizedValue:S,next:null},Rp===null){if(w===null)throw Error(h(308));Rp=x,w.dependencies={lanes:0,firstContext:x},w.flags|=524288}else Rp=Rp.next=x;return S}var iK=typeof AbortController<"u"?AbortController:function(){var w=[],x=this.signal={aborted:!1,addEventListener:function(S,D){w.push(D)}};this.abort=function(){x.aborted=!0,w.forEach(function(S){return S()})}},rK=l.unstable_scheduleCallback,WO=l.unstable_NormalPriority,ca={$$typeof:V,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _A(){return{controller:new iK,data:new Map,refCount:0}}function VO(w){w.refCount--,w.refCount===0&&rK(WO,function(){w.controller.abort()})}var XO=null,DA=0,A5=0,N5=null;function sK(w,x){if(XO===null){var S=XO=[];DA=0,A5=RN(),N5={status:"pending",value:void 0,then:function(D){S.push(D)}}}return DA++,x.then(r$,r$),x}function r$(){if(--DA===0&&XO!==null){N5!==null&&(N5.status="fulfilled");var w=XO;XO=null,A5=0,N5=null;for(var x=0;x<w.length;x++)(0,w[x])()}}function oK(w,x){var S=[],D={status:"pending",value:null,reason:null,then:function(B){S.push(B)}};return w.then(function(){D.status="fulfilled",D.value=x;for(var B=0;B<S.length;B++)(0,S[B])(x)},function(B){for(D.status="rejected",D.reason=B,B=0;B<S.length;B++)(0,S[B])(void 0)}),D}var s$=ue.S;ue.S=function(w,x){LB=sa(),typeof x=="object"&&x!==null&&typeof x.then=="function"&&sK(w,x),s$!==null&&s$(w,x)};var ty=Te(null);function LA(){var w=ty.current;return w!==null?w:nl.pooledCache}function b8(w,x){x===null?Ie(ty,ty.current):Ie(ty,x.pool)}function o$(){var w=LA();return w===null?null:{parent:ca._currentValue,pool:w}}var _5=Error(h(460)),PA=Error(h(474)),w8=Error(h(542)),v8={then:function(){}};function IA(w){return w=w.status,w==="fulfilled"||w==="rejected"}function c$(w,x,S){switch(S=w[S],S===void 0?w.push(x):S!==x&&(x.then(mb,mb),x=S),x.status){case"fulfilled":return x.value;case"rejected":throw w=x.reason,u$(w),w;default:if(typeof x.status=="string")x.then(mb,mb);else{if(w=nl,w!==null&&100<w.shellSuspendCounter)throw Error(h(482));w=x,w.status="pending",w.then(function(D){if(x.status==="pending"){var B=x;B.status="fulfilled",B.value=D}},function(D){if(x.status==="pending"){var B=x;B.status="rejected",B.reason=D}})}switch(x.status){case"fulfilled":return x.value;case"rejected":throw w=x.reason,u$(w),w}throw iy=x,_5}}function ny(w){try{var x=w._init;return x(w._payload)}catch(S){throw S!==null&&typeof S=="object"&&typeof S.then=="function"?(iy=S,_5):S}}var iy=null;function l$(){if(iy===null)throw Error(h(459));var w=iy;return iy=null,w}function u$(w){if(w===_5||w===w8)throw Error(h(483))}var D5=null,KO=0;function x8(w){var x=KO;return KO+=1,D5===null&&(D5=[]),c$(D5,w,x)}function YO(w,x){x=x.props.ref,w.ref=x!==void 0?x:null}function y8(w,x){throw x.$$typeof===P?Error(h(525)):(w=Object.prototype.toString.call(x),Error(h(31,w==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":w)))}function a$(w){function x(Nt,kt){if(w){var Bt=Nt.deletions;Bt===null?(Nt.deletions=[kt],Nt.flags|=16):Bt.push(kt)}}function S(Nt,kt){if(!w)return null;for(;kt!==null;)x(Nt,kt),kt=kt.sibling;return null}function D(Nt){for(var kt=new Map;Nt!==null;)Nt.key!==null?kt.set(Nt.key,Nt):kt.set(Nt.index,Nt),Nt=Nt.sibling;return kt}function B(Nt,kt){return Nt=wb(Nt,kt),Nt.index=0,Nt.sibling=null,Nt}function H(Nt,kt,Bt){return Nt.index=Bt,w?(Bt=Nt.alternate,Bt!==null?(Bt=Bt.index,Bt<kt?(Nt.flags|=67108866,kt):Bt):(Nt.flags|=67108866,kt)):(Nt.flags|=1048576,kt)}function de(Nt){return w&&Nt.alternate===null&&(Nt.flags|=67108866),Nt}function De(Nt,kt,Bt,hn){return kt===null||kt.tag!==6?(kt=OA(Bt,Nt.mode,hn),kt.return=Nt,kt):(kt=B(kt,Bt),kt.return=Nt,kt)}function mt(Nt,kt,Bt,hn){var xr=Bt.type;return xr===z?mn(Nt,kt,Bt.props.children,hn,Bt.key):kt!==null&&(kt.elementType===xr||typeof xr=="object"&&xr!==null&&xr.$$typeof===ye&&ny(xr)===kt.type)?(kt=B(kt,Bt.props),YO(kt,Bt),kt.return=Nt,kt):(kt=p8(Bt.type,Bt.key,Bt.props,null,Nt.mode,hn),YO(kt,Bt),kt.return=Nt,kt)}function qt(Nt,kt,Bt,hn){return kt===null||kt.tag!==4||kt.stateNode.containerInfo!==Bt.containerInfo||kt.stateNode.implementation!==Bt.implementation?(kt=jA(Bt,Nt.mode,hn),kt.return=Nt,kt):(kt=B(kt,Bt.children||[]),kt.return=Nt,kt)}function mn(Nt,kt,Bt,hn,xr){return kt===null||kt.tag!==7?(kt=Yx(Bt,Nt.mode,hn,xr),kt.return=Nt,kt):(kt=B(kt,Bt),kt.return=Nt,kt)}function On(Nt,kt,Bt){if(typeof kt=="string"&&kt!==""||typeof kt=="number"||typeof kt=="bigint")return kt=OA(""+kt,Nt.mode,Bt),kt.return=Nt,kt;if(typeof kt=="object"&&kt!==null){switch(kt.$$typeof){case I:return Bt=p8(kt.type,kt.key,kt.props,null,Nt.mode,Bt),YO(Bt,kt),Bt.return=Nt,Bt;case q:return kt=jA(kt,Nt.mode,Bt),kt.return=Nt,kt;case ye:return kt=ny(kt),On(Nt,kt,Bt)}if(je(kt)||le(kt))return kt=Yx(kt,Nt.mode,Bt,null),kt.return=Nt,kt;if(typeof kt.then=="function")return On(Nt,x8(kt),Bt);if(kt.$$typeof===V)return On(Nt,JO(Nt,kt),Bt);y8(Nt,kt)}return null}function en(Nt,kt,Bt,hn){var xr=kt!==null?kt.key:null;if(typeof Bt=="string"&&Bt!==""||typeof Bt=="number"||typeof Bt=="bigint")return xr!==null?null:De(Nt,kt,""+Bt,hn);if(typeof Bt=="object"&&Bt!==null){switch(Bt.$$typeof){case I:return Bt.key===xr?mt(Nt,kt,Bt,hn):null;case q:return Bt.key===xr?qt(Nt,kt,Bt,hn):null;case ye:return Bt=ny(Bt),en(Nt,kt,Bt,hn)}if(je(Bt)||le(Bt))return xr!==null?null:mn(Nt,kt,Bt,hn,null);if(typeof Bt.then=="function")return en(Nt,kt,x8(Bt),hn);if(Bt.$$typeof===V)return en(Nt,kt,JO(Nt,Bt),hn);y8(Nt,Bt)}return null}function cn(Nt,kt,Bt,hn,xr){if(typeof hn=="string"&&hn!==""||typeof hn=="number"||typeof hn=="bigint")return Nt=Nt.get(Bt)||null,De(kt,Nt,""+hn,xr);if(typeof hn=="object"&&hn!==null){switch(hn.$$typeof){case I:return Nt=Nt.get(hn.key===null?Bt:hn.key)||null,mt(kt,Nt,hn,xr);case q:return Nt=Nt.get(hn.key===null?Bt:hn.key)||null,qt(kt,Nt,hn,xr);case ye:return hn=ny(hn),cn(Nt,kt,Bt,hn,xr)}if(je(hn)||le(hn))return Nt=Nt.get(Bt)||null,mn(kt,Nt,hn,xr,null);if(typeof hn.then=="function")return cn(Nt,kt,Bt,x8(hn),xr);if(hn.$$typeof===V)return cn(Nt,kt,Bt,JO(kt,hn),xr);y8(kt,hn)}return null}function Zi(Nt,kt,Bt,hn){for(var xr=null,Ho=null,lr=kt,gs=kt=0,Fs=null;lr!==null&&gs<Bt.length;gs++){lr.index>gs?(Fs=lr,lr=null):Fs=lr.sibling;var Go=en(Nt,lr,Bt[gs],hn);if(Go===null){lr===null&&(lr=Fs);break}w&&lr&&Go.alternate===null&&x(Nt,lr),kt=H(Go,kt,gs),Ho===null?xr=Go:Ho.sibling=Go,Ho=Go,lr=Fs}if(gs===Bt.length)return S(Nt,lr),ko&&vb(Nt,gs),xr;if(lr===null){for(;gs<Bt.length;gs++)lr=On(Nt,Bt[gs],hn),lr!==null&&(kt=H(lr,kt,gs),Ho===null?xr=lr:Ho.sibling=lr,Ho=lr);return ko&&vb(Nt,gs),xr}for(lr=D(lr);gs<Bt.length;gs++)Fs=cn(lr,Nt,gs,Bt[gs],hn),Fs!==null&&(w&&Fs.alternate!==null&&lr.delete(Fs.key===null?gs:Fs.key),kt=H(Fs,kt,gs),Ho===null?xr=Fs:Ho.sibling=Fs,Ho=Fs);return w&&lr.forEach(function(Ab){return x(Nt,Ab)}),ko&&vb(Nt,gs),xr}function qr(Nt,kt,Bt,hn){if(Bt==null)throw Error(h(151));for(var xr=null,Ho=null,lr=kt,gs=kt=0,Fs=null,Go=Bt.next();lr!==null&&!Go.done;gs++,Go=Bt.next()){lr.index>gs?(Fs=lr,lr=null):Fs=lr.sibling;var Ab=en(Nt,lr,Go.value,hn);if(Ab===null){lr===null&&(lr=Fs);break}w&&lr&&Ab.alternate===null&&x(Nt,lr),kt=H(Ab,kt,gs),Ho===null?xr=Ab:Ho.sibling=Ab,Ho=Ab,lr=Fs}if(Go.done)return S(Nt,lr),ko&&vb(Nt,gs),xr;if(lr===null){for(;!Go.done;gs++,Go=Bt.next())Go=On(Nt,Go.value,hn),Go!==null&&(kt=H(Go,kt,gs),Ho===null?xr=Go:Ho.sibling=Go,Ho=Go);return ko&&vb(Nt,gs),xr}for(lr=D(lr);!Go.done;gs++,Go=Bt.next())Go=cn(lr,Nt,gs,Go.value,hn),Go!==null&&(w&&Go.alternate!==null&&lr.delete(Go.key===null?gs:Go.key),kt=H(Go,kt,gs),Ho===null?xr=Go:Ho.sibling=Go,Ho=Go);return w&&lr.forEach(function(Hp){return x(Nt,Hp)}),ko&&vb(Nt,gs),xr}function il(Nt,kt,Bt,hn){if(typeof Bt=="object"&&Bt!==null&&Bt.type===z&&Bt.key===null&&(Bt=Bt.props.children),typeof Bt=="object"&&Bt!==null){switch(Bt.$$typeof){case I:e:{for(var xr=Bt.key;kt!==null;){if(kt.key===xr){if(xr=Bt.type,xr===z){if(kt.tag===7){S(Nt,kt.sibling),hn=B(kt,Bt.props.children),hn.return=Nt,Nt=hn;break e}}else if(kt.elementType===xr||typeof xr=="object"&&xr!==null&&xr.$$typeof===ye&&ny(xr)===kt.type){S(Nt,kt.sibling),hn=B(kt,Bt.props),YO(hn,Bt),hn.return=Nt,Nt=hn;break e}S(Nt,kt);break}else x(Nt,kt);kt=kt.sibling}Bt.type===z?(hn=Yx(Bt.props.children,Nt.mode,hn,Bt.key),hn.return=Nt,Nt=hn):(hn=p8(Bt.type,Bt.key,Bt.props,null,Nt.mode,hn),YO(hn,Bt),hn.return=Nt,Nt=hn)}return de(Nt);case q:e:{for(xr=Bt.key;kt!==null;){if(kt.key===xr)if(kt.tag===4&&kt.stateNode.containerInfo===Bt.containerInfo&&kt.stateNode.implementation===Bt.implementation){S(Nt,kt.sibling),hn=B(kt,Bt.children||[]),hn.return=Nt,Nt=hn;break e}else{S(Nt,kt);break}else x(Nt,kt);kt=kt.sibling}hn=jA(Bt,Nt.mode,hn),hn.return=Nt,Nt=hn}return de(Nt);case ye:return Bt=ny(Bt),il(Nt,kt,Bt,hn)}if(je(Bt))return Zi(Nt,kt,Bt,hn);if(le(Bt)){if(xr=le(Bt),typeof xr!="function")throw Error(h(150));return Bt=xr.call(Bt),qr(Nt,kt,Bt,hn)}if(typeof Bt.then=="function")return il(Nt,kt,x8(Bt),hn);if(Bt.$$typeof===V)return il(Nt,kt,JO(Nt,Bt),hn);y8(Nt,Bt)}return typeof Bt=="string"&&Bt!==""||typeof Bt=="number"||typeof Bt=="bigint"?(Bt=""+Bt,kt!==null&&kt.tag===6?(S(Nt,kt.sibling),hn=B(kt,Bt),hn.return=Nt,Nt=hn):(S(Nt,kt),hn=OA(Bt,Nt.mode,hn),hn.return=Nt,Nt=hn),de(Nt)):S(Nt,kt)}return function(Nt,kt,Bt,hn){try{KO=0;var xr=il(Nt,kt,Bt,hn);return D5=null,xr}catch(lr){if(lr===_5||lr===w8)throw lr;var Ho=h1(29,lr,null,Nt.mode);return Ho.lanes=hn,Ho.return=Nt,Ho}finally{}}}var ry=a$(!0),f$=a$(!1),j2=!1;function RA(w){w.updateQueue={baseState:w.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $A(w,x){w=w.updateQueue,x.updateQueue===w&&(x.updateQueue={baseState:w.baseState,firstBaseUpdate:w.firstBaseUpdate,lastBaseUpdate:w.lastBaseUpdate,shared:w.shared,callbacks:null})}function S2(w){return{lane:w,tag:0,payload:null,callback:null,next:null}}function T2(w,x,S){var D=w.updateQueue;if(D===null)return null;if(D=D.shared,(cc&2)!==0){var B=D.pending;return B===null?x.next=x:(x.next=B.next,B.next=x),D.pending=x,x=g8(w),XR(w,null,S),x}return d8(w,D,x,S),g8(w)}function ZO(w,x,S){if(x=x.updateQueue,x!==null&&(x=x.shared,(S&4194048)!==0)){var D=x.lanes;D&=w.pendingLanes,S|=D,x.lanes=S,qx(w,S)}}function BA(w,x){var S=w.updateQueue,D=w.alternate;if(D!==null&&(D=D.updateQueue,S===D)){var B=null,H=null;if(S=S.firstBaseUpdate,S!==null){do{var de={lane:S.lane,tag:S.tag,payload:S.payload,callback:null,next:null};H===null?B=H=de:H=H.next=de,S=S.next}while(S!==null);H===null?B=H=x:H=H.next=x}else B=H=x;S={baseState:D.baseState,firstBaseUpdate:B,lastBaseUpdate:H,shared:D.shared,callbacks:D.callbacks},w.updateQueue=S;return}w=S.lastBaseUpdate,w===null?S.firstBaseUpdate=x:w.next=x,S.lastBaseUpdate=x}var zA=!1;function e6(){if(zA){var w=N5;if(w!==null)throw w}}function t6(w,x,S,D){zA=!1;var B=w.updateQueue;j2=!1;var H=B.firstBaseUpdate,de=B.lastBaseUpdate,De=B.shared.pending;if(De!==null){B.shared.pending=null;var mt=De,qt=mt.next;mt.next=null,de===null?H=qt:de.next=qt,de=mt;var mn=w.alternate;mn!==null&&(mn=mn.updateQueue,De=mn.lastBaseUpdate,De!==de&&(De===null?mn.firstBaseUpdate=qt:De.next=qt,mn.lastBaseUpdate=mt))}if(H!==null){var On=B.baseState;de=0,mn=qt=mt=null,De=H;do{var en=De.lane&-536870913,cn=en!==De.lane;if(cn?(bo&en)===en:(D&en)===en){en!==0&&en===A5&&(zA=!0),mn!==null&&(mn=mn.next={lane:0,tag:De.tag,payload:De.payload,callback:null,next:null});e:{var Zi=w,qr=De;en=x;var il=S;switch(qr.tag){case 1:if(Zi=qr.payload,typeof Zi=="function"){On=Zi.call(il,On,en);break e}On=Zi;break e;case 3:Zi.flags=Zi.flags&-65537|128;case 0:if(Zi=qr.payload,en=typeof Zi=="function"?Zi.call(il,On,en):Zi,en==null)break e;On=_({},On,en);break e;case 2:j2=!0}}en=De.callback,en!==null&&(w.flags|=64,cn&&(w.flags|=8192),cn=B.callbacks,cn===null?B.callbacks=[en]:cn.push(en))}else cn={lane:en,tag:De.tag,payload:De.payload,callback:De.callback,next:null},mn===null?(qt=mn=cn,mt=On):mn=mn.next=cn,de|=en;if(De=De.next,De===null){if(De=B.shared.pending,De===null)break;cn=De,De=cn.next,cn.next=null,B.lastBaseUpdate=cn,B.shared.pending=null}}while(!0);mn===null&&(mt=On),B.baseState=mt,B.firstBaseUpdate=qt,B.lastBaseUpdate=mn,H===null&&(B.shared.lanes=0),_2|=de,w.lanes=de,w.memoizedState=On}}function h$(w,x){if(typeof w!="function")throw Error(h(191,w));w.call(x)}function d$(w,x){var S=w.callbacks;if(S!==null)for(w.callbacks=null,w=0;w<S.length;w++)h$(S[w],x)}var L5=Te(null),k8=Te(0);function g$(w,x){w=Cb,Ie(k8,w),Ie(L5,x),Cb=w|x.baseLanes}function FA(){Ie(k8,Cb),Ie(L5,L5.current)}function qA(){Cb=k8.current,et(L5),et(k8)}var d1=Te(null),mg=null;function C2(w){var x=w.alternate;Ie(Du,Du.current&1),Ie(d1,w),mg===null&&(x===null||L5.current!==null||x.memoizedState!==null)&&(mg=w)}function HA(w){Ie(Du,Du.current),Ie(d1,w),mg===null&&(mg=w)}function p$(w){w.tag===22?(Ie(Du,Du.current),Ie(d1,w),mg===null&&(mg=w)):E2()}function E2(){Ie(Du,Du.current),Ie(d1,d1.current)}function g1(w){et(d1),mg===w&&(mg=null),et(Du)}var Du=Te(0);function O8(w){for(var x=w;x!==null;){if(x.tag===13){var S=x.memoizedState;if(S!==null&&(S=S.dehydrated,S===null||XN(S)||KN(S)))return x}else if(x.tag===19&&(x.memoizedProps.revealOrder==="forwards"||x.memoizedProps.revealOrder==="backwards"||x.memoizedProps.revealOrder==="unstable_legacy-backwards"||x.memoizedProps.revealOrder==="together")){if((x.flags&128)!==0)return x}else if(x.child!==null){x.child.return=x,x=x.child;continue}if(x===w)break;for(;x.sibling===null;){if(x.return===null||x.return===w)return null;x=x.return}x.sibling.return=x.return,x=x.sibling}return null}var yb=0,Ts=null,Hc=null,la=null,j8=!1,P5=!1,sy=!1,S8=0,n6=0,I5=null,cK=0;function gu(){throw Error(h(321))}function GA(w,x){if(x===null)return!1;for(var S=0;S<x.length&&S<w.length;S++)if(!f1(w[S],x[S]))return!1;return!0}function QA(w,x,S,D,B,H){return yb=H,Ts=x,x.memoizedState=null,x.updateQueue=null,x.lanes=0,ue.H=w===null||w.memoizedState===null?Y$:sN,sy=!1,H=S(D,B),sy=!1,P5&&(H=b$(x,S,D,B)),m$(w),H}function m$(w){ue.H=o6;var x=Hc!==null&&Hc.next!==null;if(yb=0,la=Hc=Ts=null,j8=!1,n6=0,I5=null,x)throw Error(h(300));w===null||Pu||(w=w.dependencies,w!==null&&UO(w)&&(Pu=!0))}function b$(w,x,S,D){Ts=w;var B=0;do{if(P5&&(I5=null),n6=0,P5=!1,25<=B)throw Error(h(301));if(B+=1,la=Hc=null,w.updateQueue!=null){var H=w.updateQueue;H.lastEffect=null,H.events=null,H.stores=null,H.memoCache!=null&&(H.memoCache.index=0)}ue.H=gK,H=x(S,D)}while(P5);return H}function lK(){var w=ue.H,x=w.useState()[0];return x=typeof x.then=="function"?i6(x):x,w=w.useState()[0],(Hc!==null?Hc.memoizedState:null)!==w&&(Ts.flags|=1024),x}function UA(){var w=S8!==0;return S8=0,w}function JA(w,x,S){x.updateQueue=w.updateQueue,x.flags&=-2053,w.lanes&=~S}function WA(w){if(j8){for(w=w.memoizedState;w!==null;){var x=w.queue;x!==null&&(x.pending=null),w=w.next}j8=!1}yb=0,la=Hc=Ts=null,P5=!1,n6=S8=0,I5=null}function Vh(){var w={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return la===null?Ts.memoizedState=la=w:la=la.next=w,la}function Lu(){if(Hc===null){var w=Ts.alternate;w=w!==null?w.memoizedState:null}else w=Hc.next;var x=la===null?Ts.memoizedState:la.next;if(x!==null)la=x,Hc=w;else{if(w===null)throw Ts.alternate===null?Error(h(467)):Error(h(310));Hc=w,w={memoizedState:Hc.memoizedState,baseState:Hc.baseState,baseQueue:Hc.baseQueue,queue:Hc.queue,next:null},la===null?Ts.memoizedState=la=w:la=la.next=w}return la}function T8(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function i6(w){var x=n6;return n6+=1,I5===null&&(I5=[]),w=c$(I5,w,x),x=Ts,(la===null?x.memoizedState:la.next)===null&&(x=x.alternate,ue.H=x===null||x.memoizedState===null?Y$:sN),w}function C8(w){if(w!==null&&typeof w=="object"){if(typeof w.then=="function")return i6(w);if(w.$$typeof===V)return Hf(w)}throw Error(h(438,String(w)))}function VA(w){var x=null,S=Ts.updateQueue;if(S!==null&&(x=S.memoCache),x==null){var D=Ts.alternate;D!==null&&(D=D.updateQueue,D!==null&&(D=D.memoCache,D!=null&&(x={data:D.data.map(function(B){return B.slice()}),index:0})))}if(x==null&&(x={data:[],index:0}),S===null&&(S=T8(),Ts.updateQueue=S),S.memoCache=x,S=x.data[x.index],S===void 0)for(S=x.data[x.index]=Array(w),D=0;D<w;D++)S[D]=Be;return x.index++,S}function kb(w,x){return typeof x=="function"?x(w):x}function E8(w){var x=Lu();return XA(x,Hc,w)}function XA(w,x,S){var D=w.queue;if(D===null)throw Error(h(311));D.lastRenderedReducer=S;var B=w.baseQueue,H=D.pending;if(H!==null){if(B!==null){var de=B.next;B.next=H.next,H.next=de}x.baseQueue=B=H,D.pending=null}if(H=w.baseState,B===null)w.memoizedState=H;else{x=B.next;var De=de=null,mt=null,qt=x,mn=!1;do{var On=qt.lane&-536870913;if(On!==qt.lane?(bo&On)===On:(yb&On)===On){var en=qt.revertLane;if(en===0)mt!==null&&(mt=mt.next={lane:0,revertLane:0,gesture:null,action:qt.action,hasEagerState:qt.hasEagerState,eagerState:qt.eagerState,next:null}),On===A5&&(mn=!0);else if((yb&en)===en){qt=qt.next,en===A5&&(mn=!0);continue}else On={lane:0,revertLane:qt.revertLane,gesture:null,action:qt.action,hasEagerState:qt.hasEagerState,eagerState:qt.eagerState,next:null},mt===null?(De=mt=On,de=H):mt=mt.next=On,Ts.lanes|=en,_2|=en;On=qt.action,sy&&S(H,On),H=qt.hasEagerState?qt.eagerState:S(H,On)}else en={lane:On,revertLane:qt.revertLane,gesture:qt.gesture,action:qt.action,hasEagerState:qt.hasEagerState,eagerState:qt.eagerState,next:null},mt===null?(De=mt=en,de=H):mt=mt.next=en,Ts.lanes|=On,_2|=On;qt=qt.next}while(qt!==null&&qt!==x);if(mt===null?de=H:mt.next=De,!f1(H,w.memoizedState)&&(Pu=!0,mn&&(S=N5,S!==null)))throw S;w.memoizedState=H,w.baseState=de,w.baseQueue=mt,D.lastRenderedState=H}return B===null&&(D.lanes=0),[w.memoizedState,D.dispatch]}function w$(w){var x=Lu(),S=x.queue;if(S===null)throw Error(h(311));S.lastRenderedReducer=w;var D=S.dispatch,B=S.pending,H=x.memoizedState;if(B!==null){S.pending=null;var de=B=B.next;do H=w(H,de.action),de=de.next;while(de!==B);f1(H,x.memoizedState)||(Pu=!0),x.memoizedState=H,x.baseQueue===null&&(x.baseState=H),S.lastRenderedState=H}return[H,D]}function v$(w,x,S){var D=Ts,B=Lu(),H=ko;if(H){if(S===void 0)throw Error(h(407));S=S()}else S=x();var de=!f1((Hc||B).memoizedState,S);if(de&&(B.memoizedState=S,Pu=!0),B=B.queue,ZA(k$.bind(null,D,B,w),[w]),B.getSnapshot!==x||de||la!==null&&la.memoizedState.tag&1){if(D.flags|=2048,R5(9,{destroy:void 0},y$.bind(null,D,B,S,x),null),nl===null)throw Error(h(349));H||(yb&127)!==0||x$(D,x,S)}return S}function x$(w,x,S){w.flags|=16384,w={getSnapshot:x,value:S},x=Ts.updateQueue,x===null?(x=T8(),Ts.updateQueue=x,x.stores=[w]):(S=x.stores,S===null?x.stores=[w]:S.push(w))}function y$(w,x,S,D){x.value=S,x.getSnapshot=D,O$(x)&&j$(w)}function k$(w,x,S){return S(function(){O$(x)&&j$(w)})}function O$(w){var x=w.getSnapshot;w=w.value;try{var S=x();return!f1(w,S)}catch{return!0}}function j$(w){var x=Kx(w,2);x!==null&&Dd(x,w,2)}function KA(w){var x=Vh();if(typeof w=="function"){var S=w;if(w=S(),sy){lg(!0);try{S()}finally{lg(!1)}}}return x.memoizedState=x.baseState=w,x.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kb,lastRenderedState:w},x}function S$(w,x,S,D){return w.baseState=S,XA(w,Hc,typeof D=="function"?D:kb)}function uK(w,x,S,D,B){if(_8(w))throw Error(h(485));if(w=x.action,w!==null){var H={payload:B,action:w,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(de){H.listeners.push(de)}};ue.T!==null?S(!0):H.isTransition=!1,D(H),S=x.pending,S===null?(H.next=x.pending=H,T$(x,H)):(H.next=S.next,x.pending=S.next=H)}}function T$(w,x){var S=x.action,D=x.payload,B=w.state;if(x.isTransition){var H=ue.T,de={};ue.T=de;try{var De=S(B,D),mt=ue.S;mt!==null&&mt(de,De),C$(w,x,De)}catch(qt){YA(w,x,qt)}finally{H!==null&&de.types!==null&&(H.types=de.types),ue.T=H}}else try{H=S(B,D),C$(w,x,H)}catch(qt){YA(w,x,qt)}}function C$(w,x,S){S!==null&&typeof S=="object"&&typeof S.then=="function"?S.then(function(D){E$(w,x,D)},function(D){return YA(w,x,D)}):E$(w,x,S)}function E$(w,x,S){x.status="fulfilled",x.value=S,M$(x),w.state=S,x=w.pending,x!==null&&(S=x.next,S===x?w.pending=null:(S=S.next,x.next=S,T$(w,S)))}function YA(w,x,S){var D=w.pending;if(w.pending=null,D!==null){D=D.next;do x.status="rejected",x.reason=S,M$(x),x=x.next;while(x!==D)}w.action=null}function M$(w){w=w.listeners;for(var x=0;x<w.length;x++)(0,w[x])()}function A$(w,x){return x}function N$(w,x){if(ko){var S=nl.formState;if(S!==null){e:{var D=Ts;if(ko){if(Tl){t:{for(var B=Tl,H=pg;B.nodeType!==8;){if(!H){B=null;break t}if(B=wg(B.nextSibling),B===null){B=null;break t}}H=B.data,B=H==="F!"||H==="F"?B:null}if(B){Tl=wg(B.nextSibling),D=B.data==="F!";break e}}x2(D)}D=!1}D&&(x=S[0])}}return S=Vh(),S.memoizedState=S.baseState=x,D={pending:null,lanes:0,dispatch:null,lastRenderedReducer:A$,lastRenderedState:x},S.queue=D,S=V$.bind(null,Ts,D),D.dispatch=S,D=KA(!1),H=rN.bind(null,Ts,!1,D.queue),D=Vh(),B={state:x,dispatch:null,action:w,pending:null},D.queue=B,S=uK.bind(null,Ts,B,H,S),B.dispatch=S,D.memoizedState=w,[x,S,!1]}function _$(w){var x=Lu();return D$(x,Hc,w)}function D$(w,x,S){if(x=XA(w,x,A$)[0],w=E8(kb)[0],typeof x=="object"&&x!==null&&typeof x.then=="function")try{var D=i6(x)}catch(de){throw de===_5?w8:de}else D=x;x=Lu();var B=x.queue,H=B.dispatch;return S!==x.memoizedState&&(Ts.flags|=2048,R5(9,{destroy:void 0},aK.bind(null,B,S),null)),[D,H,w]}function aK(w,x){w.action=x}function L$(w){var x=Lu(),S=Hc;if(S!==null)return D$(x,S,w);Lu(),x=x.memoizedState,S=Lu();var D=S.queue.dispatch;return S.memoizedState=w,[x,D,!1]}function R5(w,x,S,D){return w={tag:w,create:S,deps:D,inst:x,next:null},x=Ts.updateQueue,x===null&&(x=T8(),Ts.updateQueue=x),S=x.lastEffect,S===null?x.lastEffect=w.next=w:(D=S.next,S.next=w,w.next=D,x.lastEffect=w),w}function P$(){return Lu().memoizedState}function M8(w,x,S,D){var B=Vh();Ts.flags|=w,B.memoizedState=R5(1|x,{destroy:void 0},S,D===void 0?null:D)}function A8(w,x,S,D){var B=Lu();D=D===void 0?null:D;var H=B.memoizedState.inst;Hc!==null&&D!==null&&GA(D,Hc.memoizedState.deps)?B.memoizedState=R5(x,H,S,D):(Ts.flags|=w,B.memoizedState=R5(1|x,H,S,D))}function I$(w,x){M8(8390656,8,w,x)}function ZA(w,x){A8(2048,8,w,x)}function fK(w){Ts.flags|=4;var x=Ts.updateQueue;if(x===null)x=T8(),Ts.updateQueue=x,x.events=[w];else{var S=x.events;S===null?x.events=[w]:S.push(w)}}function R$(w){var x=Lu().memoizedState;return fK({ref:x,nextImpl:w}),function(){if((cc&2)!==0)throw Error(h(440));return x.impl.apply(void 0,arguments)}}function $$(w,x){return A8(4,2,w,x)}function B$(w,x){return A8(4,4,w,x)}function z$(w,x){if(typeof x=="function"){w=w();var S=x(w);return function(){typeof S=="function"?S():x(null)}}if(x!=null)return w=w(),x.current=w,function(){x.current=null}}function F$(w,x,S){S=S!=null?S.concat([w]):null,A8(4,4,z$.bind(null,x,w),S)}function eN(){}function q$(w,x){var S=Lu();x=x===void 0?null:x;var D=S.memoizedState;return x!==null&&GA(x,D[1])?D[0]:(S.memoizedState=[w,x],w)}function H$(w,x){var S=Lu();x=x===void 0?null:x;var D=S.memoizedState;if(x!==null&&GA(x,D[1]))return D[0];if(D=w(),sy){lg(!0);try{w()}finally{lg(!1)}}return S.memoizedState=[D,x],D}function tN(w,x,S){return S===void 0||(yb&1073741824)!==0&&(bo&261930)===0?w.memoizedState=x:(w.memoizedState=S,w=IB(),Ts.lanes|=w,_2|=w,S)}function G$(w,x,S,D){return f1(S,x)?S:L5.current!==null?(w=tN(w,S,D),f1(w,x)||(Pu=!0),w):(yb&42)===0||(yb&1073741824)!==0&&(bo&261930)===0?(Pu=!0,w.memoizedState=S):(w=IB(),Ts.lanes|=w,_2|=w,x)}function Q$(w,x,S,D,B){var H=ve.p;ve.p=H!==0&&8>H?H:8;var de=ue.T,De={};ue.T=De,rN(w,!1,x,S);try{var mt=B(),qt=ue.S;if(qt!==null&&qt(De,mt),mt!==null&&typeof mt=="object"&&typeof mt.then=="function"){var mn=oK(mt,D);s6(w,x,mn,w1(w))}else s6(w,x,D,w1(w))}catch(On){s6(w,x,{then:function(){},status:"rejected",reason:On},w1())}finally{ve.p=H,de!==null&&De.types!==null&&(de.types=De.types),ue.T=de}}function nN(){}function r6(w,x,S,D){if(w.tag!==5)throw Error(h(476));var B=U$(w).queue;Q$(w,B,x,xe,S===null?nN:function(){return N8(w),S(D)})}function U$(w){var x=w.memoizedState;if(x!==null)return x;x={memoizedState:xe,baseState:xe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kb,lastRenderedState:xe},next:null};var S={};return x.next={memoizedState:S,baseState:S,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kb,lastRenderedState:S},next:null},w.memoizedState=x,w=w.alternate,w!==null&&(w.memoizedState=x),x}function N8(w){var x=U$(w);x.next===null&&(x=w.alternate.memoizedState),s6(w,x.next.queue,{},w1())}function iN(){return Hf(y6)}function J$(){return Lu().memoizedState}function W$(){return Lu().memoizedState}function hK(w){for(var x=w.return;x!==null;){switch(x.tag){case 24:case 3:var S=w1();w=S2(S);var D=T2(x,w,S);D!==null&&(Dd(D,x,S),ZO(D,x,S)),x={cache:_A()},w.payload=x;return}x=x.return}}function dK(w,x,S){var D=w1();S={lane:D,revertLane:0,gesture:null,action:S,hasEagerState:!1,eagerState:null,next:null},_8(w)?X$(x,S):(S=yA(w,x,S,D),S!==null&&(Dd(S,w,D),K$(S,x,D)))}function V$(w,x,S){var D=w1();s6(w,x,S,D)}function s6(w,x,S,D){var B={lane:D,revertLane:0,gesture:null,action:S,hasEagerState:!1,eagerState:null,next:null};if(_8(w))X$(x,B);else{var H=w.alternate;if(w.lanes===0&&(H===null||H.lanes===0)&&(H=x.lastRenderedReducer,H!==null))try{var de=x.lastRenderedState,De=H(de,S);if(B.hasEagerState=!0,B.eagerState=De,f1(De,de))return d8(w,x,B,0),nl===null&&h8(),!1}catch{}finally{}if(S=yA(w,x,B,D),S!==null)return Dd(S,w,D),K$(S,x,D),!0}return!1}function rN(w,x,S,D){if(D={lane:2,revertLane:RN(),gesture:null,action:D,hasEagerState:!1,eagerState:null,next:null},_8(w)){if(x)throw Error(h(479))}else x=yA(w,S,D,2),x!==null&&Dd(x,w,2)}function _8(w){var x=w.alternate;return w===Ts||x!==null&&x===Ts}function X$(w,x){P5=j8=!0;var S=w.pending;S===null?x.next=x:(x.next=S.next,S.next=x),w.pending=x}function K$(w,x,S){if((S&4194048)!==0){var D=x.lanes;D&=w.pendingLanes,S|=D,x.lanes=S,qx(w,S)}}var o6={readContext:Hf,use:C8,useCallback:gu,useContext:gu,useEffect:gu,useImperativeHandle:gu,useLayoutEffect:gu,useInsertionEffect:gu,useMemo:gu,useReducer:gu,useRef:gu,useState:gu,useDebugValue:gu,useDeferredValue:gu,useTransition:gu,useSyncExternalStore:gu,useId:gu,useHostTransitionStatus:gu,useFormState:gu,useActionState:gu,useOptimistic:gu,useMemoCache:gu,useCacheRefresh:gu};o6.useEffectEvent=gu;var Y$={readContext:Hf,use:C8,useCallback:function(w,x){return Vh().memoizedState=[w,x===void 0?null:x],w},useContext:Hf,useEffect:I$,useImperativeHandle:function(w,x,S){S=S!=null?S.concat([w]):null,M8(4194308,4,z$.bind(null,x,w),S)},useLayoutEffect:function(w,x){return M8(4194308,4,w,x)},useInsertionEffect:function(w,x){M8(4,2,w,x)},useMemo:function(w,x){var S=Vh();x=x===void 0?null:x;var D=w();if(sy){lg(!0);try{w()}finally{lg(!1)}}return S.memoizedState=[D,x],D},useReducer:function(w,x,S){var D=Vh();if(S!==void 0){var B=S(x);if(sy){lg(!0);try{S(x)}finally{lg(!1)}}}else B=x;return D.memoizedState=D.baseState=B,w={pending:null,lanes:0,dispatch:null,lastRenderedReducer:w,lastRenderedState:B},D.queue=w,w=w.dispatch=dK.bind(null,Ts,w),[D.memoizedState,w]},useRef:function(w){var x=Vh();return w={current:w},x.memoizedState=w},useState:function(w){w=KA(w);var x=w.queue,S=V$.bind(null,Ts,x);return x.dispatch=S,[w.memoizedState,S]},useDebugValue:eN,useDeferredValue:function(w,x){var S=Vh();return tN(S,w,x)},useTransition:function(){var w=KA(!1);return w=Q$.bind(null,Ts,w.queue,!0,!1),Vh().memoizedState=w,[!1,w]},useSyncExternalStore:function(w,x,S){var D=Ts,B=Vh();if(ko){if(S===void 0)throw Error(h(407));S=S()}else{if(S=x(),nl===null)throw Error(h(349));(bo&127)!==0||x$(D,x,S)}B.memoizedState=S;var H={value:S,getSnapshot:x};return B.queue=H,I$(k$.bind(null,D,H,w),[w]),D.flags|=2048,R5(9,{destroy:void 0},y$.bind(null,D,H,S,x),null),S},useId:function(){var w=Vh(),x=nl.identifierPrefix;if(ko){var S=Ip,D=Pp;S=(D&~(1<<32-cf(D)-1)).toString(32)+S,x="_"+x+"R_"+S,S=S8++,0<S&&(x+="H"+S.toString(32)),x+="_"}else S=cK++,x="_"+x+"r_"+S.toString(32)+"_";return w.memoizedState=x},useHostTransitionStatus:iN,useFormState:N$,useActionState:N$,useOptimistic:function(w){var x=Vh();x.memoizedState=x.baseState=w;var S={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return x.queue=S,x=rN.bind(null,Ts,!0,S),S.dispatch=x,[w,x]},useMemoCache:VA,useCacheRefresh:function(){return Vh().memoizedState=hK.bind(null,Ts)},useEffectEvent:function(w){var x=Vh(),S={impl:w};return x.memoizedState=S,function(){if((cc&2)!==0)throw Error(h(440));return S.impl.apply(void 0,arguments)}}},sN={readContext:Hf,use:C8,useCallback:q$,useContext:Hf,useEffect:ZA,useImperativeHandle:F$,useInsertionEffect:$$,useLayoutEffect:B$,useMemo:H$,useReducer:E8,useRef:P$,useState:function(){return E8(kb)},useDebugValue:eN,useDeferredValue:function(w,x){var S=Lu();return G$(S,Hc.memoizedState,w,x)},useTransition:function(){var w=E8(kb)[0],x=Lu().memoizedState;return[typeof w=="boolean"?w:i6(w),x]},useSyncExternalStore:v$,useId:J$,useHostTransitionStatus:iN,useFormState:_$,useActionState:_$,useOptimistic:function(w,x){var S=Lu();return S$(S,Hc,w,x)},useMemoCache:VA,useCacheRefresh:W$};sN.useEffectEvent=R$;var gK={readContext:Hf,use:C8,useCallback:q$,useContext:Hf,useEffect:ZA,useImperativeHandle:F$,useInsertionEffect:$$,useLayoutEffect:B$,useMemo:H$,useReducer:w$,useRef:P$,useState:function(){return w$(kb)},useDebugValue:eN,useDeferredValue:function(w,x){var S=Lu();return Hc===null?tN(S,w,x):G$(S,Hc.memoizedState,w,x)},useTransition:function(){var w=w$(kb)[0],x=Lu().memoizedState;return[typeof w=="boolean"?w:i6(w),x]},useSyncExternalStore:v$,useId:J$,useHostTransitionStatus:iN,useFormState:L$,useActionState:L$,useOptimistic:function(w,x){var S=Lu();return Hc!==null?S$(S,Hc,w,x):(S.baseState=w,[w,S.queue.dispatch])},useMemoCache:VA,useCacheRefresh:W$};gK.useEffectEvent=R$;function oN(w,x,S,D){x=w.memoizedState,S=S(D,x),S=S==null?x:_({},x,S),w.memoizedState=S,w.lanes===0&&(w.updateQueue.baseState=S)}var D8={enqueueSetState:function(w,x,S){w=w._reactInternals;var D=w1(),B=S2(D);B.payload=x,S!=null&&(B.callback=S),x=T2(w,B,D),x!==null&&(Dd(x,w,D),ZO(x,w,D))},enqueueReplaceState:function(w,x,S){w=w._reactInternals;var D=w1(),B=S2(D);B.tag=1,B.payload=x,S!=null&&(B.callback=S),x=T2(w,B,D),x!==null&&(Dd(x,w,D),ZO(x,w,D))},enqueueForceUpdate:function(w,x){w=w._reactInternals;var S=w1(),D=S2(S);D.tag=2,x!=null&&(D.callback=x),x=T2(w,D,S),x!==null&&(Dd(x,w,S),ZO(x,w,S))}};function Z$(w,x,S,D,B,H,de){return w=w.stateNode,typeof w.shouldComponentUpdate=="function"?w.shouldComponentUpdate(D,H,de):x.prototype&&x.prototype.isPureReactComponent?!HO(S,D)||!HO(B,H):!0}function eB(w,x,S,D){w=x.state,typeof x.componentWillReceiveProps=="function"&&x.componentWillReceiveProps(S,D),typeof x.UNSAFE_componentWillReceiveProps=="function"&&x.UNSAFE_componentWillReceiveProps(S,D),x.state!==w&&D8.enqueueReplaceState(x,x.state,null)}function oy(w,x){var S=x;if("ref"in x){S={};for(var D in x)D!=="ref"&&(S[D]=x[D])}if(w=w.defaultProps){S===x&&(S=_({},S));for(var B in w)S[B]===void 0&&(S[B]=w[B])}return S}function tB(w){f8(w)}function nB(w){console.error(w)}function iB(w){f8(w)}function L8(w,x){try{var S=w.onUncaughtError;S(x.value,{componentStack:x.stack})}catch(D){setTimeout(function(){throw D})}}function rB(w,x,S){try{var D=w.onCaughtError;D(S.value,{componentStack:S.stack,errorBoundary:x.tag===1?x.stateNode:null})}catch(B){setTimeout(function(){throw B})}}function cN(w,x,S){return S=S2(S),S.tag=3,S.payload={element:null},S.callback=function(){L8(w,x)},S}function sB(w){return w=S2(w),w.tag=3,w}function p1(w,x,S,D){var B=S.type.getDerivedStateFromError;if(typeof B=="function"){var H=D.value;w.payload=function(){return B(H)},w.callback=function(){rB(x,S,D)}}var de=S.stateNode;de!==null&&typeof de.componentDidCatch=="function"&&(w.callback=function(){rB(x,S,D),typeof B!="function"&&(D2===null?D2=new Set([this]):D2.add(this));var De=D.stack;this.componentDidCatch(D.value,{componentStack:De!==null?De:""})})}function pK(w,x,S,D,B){if(S.flags|=32768,D!==null&&typeof D=="object"&&typeof D.then=="function"){if(x=S.alternate,x!==null&&M5(x,S,B,!0),S=d1.current,S!==null){switch(S.tag){case 31:case 13:return mg===null?U8():S.alternate===null&&pu===0&&(pu=3),S.flags&=-257,S.flags|=65536,S.lanes=B,D===v8?S.flags|=16384:(x=S.updateQueue,x===null?S.updateQueue=new Set([D]):x.add(D),LN(w,D,B)),!1;case 22:return S.flags|=65536,D===v8?S.flags|=16384:(x=S.updateQueue,x===null?(x={transitions:null,markerInstances:null,retryQueue:new Set([D])},S.updateQueue=x):(S=x.retryQueue,S===null?x.retryQueue=new Set([D]):S.add(D)),LN(w,D,B)),!1}throw Error(h(435,S.tag))}return LN(w,D,B),U8(),!1}if(ko)return x=d1.current,x!==null?((x.flags&65536)===0&&(x.flags|=256),x.flags|=65536,x.lanes=B,D!==CA&&(w=Error(h(422),{cause:D}),y2(hg(w,S)))):(D!==CA&&(x=Error(h(423),{cause:D}),y2(hg(x,S))),w=w.current.alternate,w.flags|=65536,B&=-B,w.lanes|=B,D=hg(D,S),B=cN(w.stateNode,D,B),BA(w,B),pu!==4&&(pu=2)),!1;var H=Error(h(520),{cause:D});if(H=hg(H,S),g6===null?g6=[H]:g6.push(H),pu!==4&&(pu=2),x===null)return!0;D=hg(D,S),S=x;do{switch(S.tag){case 3:return S.flags|=65536,w=B&-B,S.lanes|=w,w=cN(S.stateNode,D,w),BA(S,w),!1;case 1:if(x=S.type,H=S.stateNode,(S.flags&128)===0&&(typeof x.getDerivedStateFromError=="function"||H!==null&&typeof H.componentDidCatch=="function"&&(D2===null||!D2.has(H))))return S.flags|=65536,B&=-B,S.lanes|=B,B=sB(B),p1(B,w,S,D),BA(S,B),!1}S=S.return}while(S!==null);return!1}var $p=Error(h(461)),Pu=!1;function Gf(w,x,S,D){x.child=w===null?f$(x,null,S,D):ry(x,w.child,S,D)}function oB(w,x,S,D,B){S=S.render;var H=x.ref;if("ref"in D){var de={};for(var De in D)De!=="ref"&&(de[De]=D[De])}else de=D;return O2(x),D=QA(w,x,S,de,H,B),De=UA(),w!==null&&!Pu?(JA(w,x,B),Ob(w,x,B)):(ko&&De&&SA(x),x.flags|=1,Gf(w,x,D,B),x.child)}function cB(w,x,S,D,B){if(w===null){var H=S.type;return typeof H=="function"&&!kA(H)&&H.defaultProps===void 0&&S.compare===null?(x.tag=15,x.type=H,lB(w,x,H,D,B)):(w=p8(S.type,null,D,x,x.mode,B),w.ref=x.ref,w.return=x,x.child=w)}if(H=w.child,!pN(w,B)){var de=H.memoizedProps;if(S=S.compare,S=S!==null?S:HO,S(de,D)&&w.ref===x.ref)return Ob(w,x,B)}return x.flags|=1,w=wb(H,D),w.ref=x.ref,w.return=x,x.child=w}function lB(w,x,S,D,B){if(w!==null){var H=w.memoizedProps;if(HO(H,D)&&w.ref===x.ref)if(Pu=!1,x.pendingProps=D=H,pN(w,B))(w.flags&131072)!==0&&(Pu=!0);else return x.lanes=w.lanes,Ob(w,x,B)}return lN(w,x,S,D,B)}function uB(w,x,S,D){var B=D.children,H=w!==null?w.memoizedState:null;if(w===null&&x.stateNode===null&&(x.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),D.mode==="hidden"){if((x.flags&128)!==0){if(H=H!==null?H.baseLanes|S:S,w!==null){for(D=x.child=w.child,B=0;D!==null;)B=B|D.lanes|D.childLanes,D=D.sibling;D=B&~H}else D=0,x.child=null;return aB(w,x,H,S,D)}if((S&536870912)!==0)x.memoizedState={baseLanes:0,cachePool:null},w!==null&&b8(x,H!==null?H.cachePool:null),H!==null?g$(x,H):FA(),p$(x);else return D=x.lanes=536870912,aB(w,x,H!==null?H.baseLanes|S:S,S,D)}else H!==null?(b8(x,H.cachePool),g$(x,H),E2(),x.memoizedState=null):(w!==null&&b8(x,null),FA(),E2());return Gf(w,x,B,S),x.child}function c6(w,x){return w!==null&&w.tag===22||x.stateNode!==null||(x.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),x.sibling}function aB(w,x,S,D,B){var H=LA();return H=H===null?null:{parent:ca._currentValue,pool:H},x.memoizedState={baseLanes:S,cachePool:H},w!==null&&b8(x,null),FA(),p$(x),w!==null&&M5(w,x,D,!0),x.childLanes=B,null}function P8(w,x){return x=rt({mode:x.mode,children:x.children},w.mode),x.ref=w.ref,w.child=x,x.return=w,x}function fB(w,x,S){return ry(x,w.child,null,S),w=P8(x,x.pendingProps),w.flags|=2,g1(x),x.memoizedState=null,w}function mK(w,x,S){var D=x.pendingProps,B=(x.flags&128)!==0;if(x.flags&=-129,w===null){if(ko){if(D.mode==="hidden")return w=P8(x,D),x.lanes=536870912,c6(null,w);if(HA(x),(w=Tl)?(w=vz(w,pg),w=w!==null&&w.data==="&"?w:null,w!==null&&(x.memoizedState={dehydrated:w,treeContext:w2!==null?{id:Pp,overflow:Ip}:null,retryLane:536870912,hydrationErrors:null},S=YR(w),S.return=x,x.child=S,uf=x,Tl=null)):w=null,w===null)throw x2(x);return x.lanes=536870912,null}return P8(x,D)}var H=w.memoizedState;if(H!==null){var de=H.dehydrated;if(HA(x),B)if(x.flags&256)x.flags&=-257,x=fB(w,x,S);else if(x.memoizedState!==null)x.child=w.child,x.flags|=128,x=null;else throw Error(h(558));else if(Pu||M5(w,x,S,!1),B=(S&w.childLanes)!==0,Pu||B){if(D=nl,D!==null&&(de=g5(D,S),de!==0&&de!==H.retryLane))throw H.retryLane=de,Kx(w,de),Dd(D,w,de),$p;U8(),x=fB(w,x,S)}else w=H.treeContext,Tl=wg(de.nextSibling),uf=x,ko=!0,v2=null,pg=!1,w!==null&&t$(x,w),x=P8(x,D),x.flags|=4096;return x}return w=wb(w.child,{mode:D.mode,children:D.children}),w.ref=x.ref,x.child=w,w.return=x,w}function I8(w,x){var S=x.ref;if(S===null)w!==null&&w.ref!==null&&(x.flags|=4194816);else{if(typeof S!="function"&&typeof S!="object")throw Error(h(284));(w===null||w.ref!==S)&&(x.flags|=4194816)}}function lN(w,x,S,D,B){return O2(x),S=QA(w,x,S,D,void 0,B),D=UA(),w!==null&&!Pu?(JA(w,x,B),Ob(w,x,B)):(ko&&D&&SA(x),x.flags|=1,Gf(w,x,S,B),x.child)}function hB(w,x,S,D,B,H){return O2(x),x.updateQueue=null,S=b$(x,D,S,B),m$(w),D=UA(),w!==null&&!Pu?(JA(w,x,H),Ob(w,x,H)):(ko&&D&&SA(x),x.flags|=1,Gf(w,x,S,H),x.child)}function dB(w,x,S,D,B){if(O2(x),x.stateNode===null){var H=j5,de=S.contextType;typeof de=="object"&&de!==null&&(H=Hf(de)),H=new S(D,H),x.memoizedState=H.state!==null&&H.state!==void 0?H.state:null,H.updater=D8,x.stateNode=H,H._reactInternals=x,H=x.stateNode,H.props=D,H.state=x.memoizedState,H.refs={},RA(x),de=S.contextType,H.context=typeof de=="object"&&de!==null?Hf(de):j5,H.state=x.memoizedState,de=S.getDerivedStateFromProps,typeof de=="function"&&(oN(x,S,de,D),H.state=x.memoizedState),typeof S.getDerivedStateFromProps=="function"||typeof H.getSnapshotBeforeUpdate=="function"||typeof H.UNSAFE_componentWillMount!="function"&&typeof H.componentWillMount!="function"||(de=H.state,typeof H.componentWillMount=="function"&&H.componentWillMount(),typeof H.UNSAFE_componentWillMount=="function"&&H.UNSAFE_componentWillMount(),de!==H.state&&D8.enqueueReplaceState(H,H.state,null),t6(x,D,H,B),e6(),H.state=x.memoizedState),typeof H.componentDidMount=="function"&&(x.flags|=4194308),D=!0}else if(w===null){H=x.stateNode;var De=x.memoizedProps,mt=oy(S,De);H.props=mt;var qt=H.context,mn=S.contextType;de=j5,typeof mn=="object"&&mn!==null&&(de=Hf(mn));var On=S.getDerivedStateFromProps;mn=typeof On=="function"||typeof H.getSnapshotBeforeUpdate=="function",De=x.pendingProps!==De,mn||typeof H.UNSAFE_componentWillReceiveProps!="function"&&typeof H.componentWillReceiveProps!="function"||(De||qt!==de)&&eB(x,H,D,de),j2=!1;var en=x.memoizedState;H.state=en,t6(x,D,H,B),e6(),qt=x.memoizedState,De||en!==qt||j2?(typeof On=="function"&&(oN(x,S,On,D),qt=x.memoizedState),(mt=j2||Z$(x,S,mt,D,en,qt,de))?(mn||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"&&(x.flags|=4194308)):(typeof H.componentDidMount=="function"&&(x.flags|=4194308),x.memoizedProps=D,x.memoizedState=qt),H.props=D,H.state=qt,H.context=de,D=mt):(typeof H.componentDidMount=="function"&&(x.flags|=4194308),D=!1)}else{H=x.stateNode,$A(w,x),de=x.memoizedProps,mn=oy(S,de),H.props=mn,On=x.pendingProps,en=H.context,qt=S.contextType,mt=j5,typeof qt=="object"&&qt!==null&&(mt=Hf(qt)),De=S.getDerivedStateFromProps,(qt=typeof De=="function"||typeof H.getSnapshotBeforeUpdate=="function")||typeof H.UNSAFE_componentWillReceiveProps!="function"&&typeof H.componentWillReceiveProps!="function"||(de!==On||en!==mt)&&eB(x,H,D,mt),j2=!1,en=x.memoizedState,H.state=en,t6(x,D,H,B),e6();var cn=x.memoizedState;de!==On||en!==cn||j2||w!==null&&w.dependencies!==null&&UO(w.dependencies)?(typeof De=="function"&&(oN(x,S,De,D),cn=x.memoizedState),(mn=j2||Z$(x,S,mn,D,en,cn,mt)||w!==null&&w.dependencies!==null&&UO(w.dependencies))?(qt||typeof H.UNSAFE_componentWillUpdate!="function"&&typeof H.componentWillUpdate!="function"||(typeof H.componentWillUpdate=="function"&&H.componentWillUpdate(D,cn,mt),typeof H.UNSAFE_componentWillUpdate=="function"&&H.UNSAFE_componentWillUpdate(D,cn,mt)),typeof H.componentDidUpdate=="function"&&(x.flags|=4),typeof H.getSnapshotBeforeUpdate=="function"&&(x.flags|=1024)):(typeof H.componentDidUpdate!="function"||de===w.memoizedProps&&en===w.memoizedState||(x.flags|=4),typeof H.getSnapshotBeforeUpdate!="function"||de===w.memoizedProps&&en===w.memoizedState||(x.flags|=1024),x.memoizedProps=D,x.memoizedState=cn),H.props=D,H.state=cn,H.context=mt,D=mn):(typeof H.componentDidUpdate!="function"||de===w.memoizedProps&&en===w.memoizedState||(x.flags|=4),typeof H.getSnapshotBeforeUpdate!="function"||de===w.memoizedProps&&en===w.memoizedState||(x.flags|=1024),D=!1)}return H=D,I8(w,x),D=(x.flags&128)!==0,H||D?(H=x.stateNode,S=D&&typeof S.getDerivedStateFromError!="function"?null:H.render(),x.flags|=1,w!==null&&D?(x.child=ry(x,w.child,null,B),x.child=ry(x,null,S,B)):Gf(w,x,S,B),x.memoizedState=H.state,w=x.child):w=Ob(w,x,B),w}function gB(w,x,S,D){return Zx(),x.flags|=256,Gf(w,x,S,D),x.child}var uN={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function aN(w){return{baseLanes:w,cachePool:o$()}}function fN(w,x,S){return w=w!==null?w.childLanes&~S:0,x&&(w|=b1),w}function pB(w,x,S){var D=x.pendingProps,B=!1,H=(x.flags&128)!==0,de;if((de=H)||(de=w!==null&&w.memoizedState===null?!1:(Du.current&2)!==0),de&&(B=!0,x.flags&=-129),de=(x.flags&32)!==0,x.flags&=-33,w===null){if(ko){if(B?C2(x):E2(),(w=Tl)?(w=vz(w,pg),w=w!==null&&w.data!=="&"?w:null,w!==null&&(x.memoizedState={dehydrated:w,treeContext:w2!==null?{id:Pp,overflow:Ip}:null,retryLane:536870912,hydrationErrors:null},S=YR(w),S.return=x,x.child=S,uf=x,Tl=null)):w=null,w===null)throw x2(x);return KN(w)?x.lanes=32:x.lanes=536870912,null}var De=D.children;return D=D.fallback,B?(E2(),B=x.mode,De=rt({mode:"hidden",children:De},B),D=Yx(D,B,S,null),De.return=x,D.return=x,De.sibling=D,x.child=De,D=x.child,D.memoizedState=aN(S),D.childLanes=fN(w,de,S),x.memoizedState=uN,c6(null,D)):(C2(x),hN(x,De))}var mt=w.memoizedState;if(mt!==null&&(De=mt.dehydrated,De!==null)){if(H)x.flags&256?(C2(x),x.flags&=-257,x=dN(w,x,S)):x.memoizedState!==null?(E2(),x.child=w.child,x.flags|=128,x=null):(E2(),De=D.fallback,B=x.mode,D=rt({mode:"visible",children:D.children},B),De=Yx(De,B,S,null),De.flags|=2,D.return=x,De.return=x,D.sibling=De,x.child=D,ry(x,w.child,null,S),D=x.child,D.memoizedState=aN(S),D.childLanes=fN(w,de,S),x.memoizedState=uN,x=c6(null,D));else if(C2(x),KN(De)){if(de=De.nextSibling&&De.nextSibling.dataset,de)var qt=de.dgst;de=qt,D=Error(h(419)),D.stack="",D.digest=de,y2({value:D,source:null,stack:null}),x=dN(w,x,S)}else if(Pu||M5(w,x,S,!1),de=(S&w.childLanes)!==0,Pu||de){if(de=nl,de!==null&&(D=g5(de,S),D!==0&&D!==mt.retryLane))throw mt.retryLane=D,Kx(w,D),Dd(de,w,D),$p;XN(De)||U8(),x=dN(w,x,S)}else XN(De)?(x.flags|=192,x.child=w.child,x=null):(w=mt.treeContext,Tl=wg(De.nextSibling),uf=x,ko=!0,v2=null,pg=!1,w!==null&&t$(x,w),x=hN(x,D.children),x.flags|=4096);return x}return B?(E2(),De=D.fallback,B=x.mode,mt=w.child,qt=mt.sibling,D=wb(mt,{mode:"hidden",children:D.children}),D.subtreeFlags=mt.subtreeFlags&65011712,qt!==null?De=wb(qt,De):(De=Yx(De,B,S,null),De.flags|=2),De.return=x,D.return=x,D.sibling=De,x.child=D,c6(null,D),D=x.child,De=w.child.memoizedState,De===null?De=aN(S):(B=De.cachePool,B!==null?(mt=ca._currentValue,B=B.parent!==mt?{parent:mt,pool:mt}:B):B=o$(),De={baseLanes:De.baseLanes|S,cachePool:B}),D.memoizedState=De,D.childLanes=fN(w,de,S),x.memoizedState=uN,c6(w.child,D)):(C2(x),S=w.child,w=S.sibling,S=wb(S,{mode:"visible",children:D.children}),S.return=x,S.sibling=null,w!==null&&(de=x.deletions,de===null?(x.deletions=[w],x.flags|=16):de.push(w)),x.child=S,x.memoizedState=null,S)}function hN(w,x){return x=rt({mode:"visible",children:x},w.mode),x.return=w,w.child=x}function rt(w,x){return w=h1(22,w,null,x),w.lanes=0,w}function dN(w,x,S){return ry(x,w.child,null,S),w=hN(x,x.pendingProps.children),w.flags|=2,x.memoizedState=null,w}function mB(w,x,S){w.lanes|=x;var D=w.alternate;D!==null&&(D.lanes|=x),MA(w.return,x,S)}function gN(w,x,S,D,B,H){var de=w.memoizedState;de===null?w.memoizedState={isBackwards:x,rendering:null,renderingStartTime:0,last:D,tail:S,tailMode:B,treeForkCount:H}:(de.isBackwards=x,de.rendering=null,de.renderingStartTime=0,de.last=D,de.tail=S,de.tailMode=B,de.treeForkCount=H)}function bB(w,x,S){var D=x.pendingProps,B=D.revealOrder,H=D.tail;D=D.children;var de=Du.current,De=(de&2)!==0;if(De?(de=de&1|2,x.flags|=128):de&=1,Ie(Du,de),Gf(w,x,D,S),D=ko?QO:0,!De&&w!==null&&(w.flags&128)!==0)e:for(w=x.child;w!==null;){if(w.tag===13)w.memoizedState!==null&&mB(w,S,x);else if(w.tag===19)mB(w,S,x);else if(w.child!==null){w.child.return=w,w=w.child;continue}if(w===x)break e;for(;w.sibling===null;){if(w.return===null||w.return===x)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}switch(B){case"forwards":for(S=x.child,B=null;S!==null;)w=S.alternate,w!==null&&O8(w)===null&&(B=S),S=S.sibling;S=B,S===null?(B=x.child,x.child=null):(B=S.sibling,S.sibling=null),gN(x,!1,B,S,H,D);break;case"backwards":case"unstable_legacy-backwards":for(S=null,B=x.child,x.child=null;B!==null;){if(w=B.alternate,w!==null&&O8(w)===null){x.child=B;break}w=B.sibling,B.sibling=S,S=B,B=w}gN(x,!0,S,null,H,D);break;case"together":gN(x,!1,null,null,void 0,D);break;default:x.memoizedState=null}return x.child}function Ob(w,x,S){if(w!==null&&(x.dependencies=w.dependencies),_2|=x.lanes,(S&x.childLanes)===0)if(w!==null){if(M5(w,x,S,!1),(S&x.childLanes)===0)return null}else return null;if(w!==null&&x.child!==w.child)throw Error(h(153));if(x.child!==null){for(w=x.child,S=wb(w,w.pendingProps),x.child=S,S.return=x;w.sibling!==null;)w=w.sibling,S=S.sibling=wb(w,w.pendingProps),S.return=x;S.sibling=null}return x.child}function pN(w,x){return(w.lanes&x)!==0?!0:(w=w.dependencies,!!(w!==null&&UO(w)))}function bK(w,x,S){switch(x.tag){case 3:an(x,x.stateNode.containerInfo),k2(x,ca,w.memoizedState.cache),Zx();break;case 27:case 5:rr(x);break;case 4:an(x,x.stateNode.containerInfo);break;case 10:k2(x,x.type,x.memoizedProps.value);break;case 31:if(x.memoizedState!==null)return x.flags|=128,HA(x),null;break;case 13:var D=x.memoizedState;if(D!==null)return D.dehydrated!==null?(C2(x),x.flags|=128,null):(S&x.child.childLanes)!==0?pB(w,x,S):(C2(x),w=Ob(w,x,S),w!==null?w.sibling:null);C2(x);break;case 19:var B=(w.flags&128)!==0;if(D=(S&x.childLanes)!==0,D||(M5(w,x,S,!1),D=(S&x.childLanes)!==0),B){if(D)return bB(w,x,S);x.flags|=128}if(B=x.memoizedState,B!==null&&(B.rendering=null,B.tail=null,B.lastEffect=null),Ie(Du,Du.current),D)break;return null;case 22:return x.lanes=0,uB(w,x,S,x.pendingProps);case 24:k2(x,ca,w.memoizedState.cache)}return Ob(w,x,S)}function wB(w,x,S){if(w!==null)if(w.memoizedProps!==x.pendingProps)Pu=!0;else{if(!pN(w,S)&&(x.flags&128)===0)return Pu=!1,bK(w,x,S);Pu=(w.flags&131072)!==0}else Pu=!1,ko&&(x.flags&1048576)!==0&&e$(x,QO,x.index);switch(x.lanes=0,x.tag){case 16:e:{var D=x.pendingProps;if(w=ny(x.elementType),x.type=w,typeof w=="function")kA(w)?(D=oy(w,D),x.tag=1,x=dB(null,x,w,D,S)):(x.tag=0,x=lN(null,x,w,D,S));else{if(w!=null){var B=w.$$typeof;if(B===ne){x.tag=11,x=oB(null,x,w,D,S);break e}else if(B===me){x.tag=14,x=cB(null,x,w,D,S);break e}}throw x=pe(w)||w,Error(h(306,x,""))}}return x;case 0:return lN(w,x,x.type,x.pendingProps,S);case 1:return D=x.type,B=oy(D,x.pendingProps),dB(w,x,D,B,S);case 3:e:{if(an(x,x.stateNode.containerInfo),w===null)throw Error(h(387));D=x.pendingProps;var H=x.memoizedState;B=H.element,$A(w,x),t6(x,D,null,S);var de=x.memoizedState;if(D=de.cache,k2(x,ca,D),D!==H.cache&&AA(x,[ca],S,!0),e6(),D=de.element,H.isDehydrated)if(H={element:D,isDehydrated:!1,cache:de.cache},x.updateQueue.baseState=H,x.memoizedState=H,x.flags&256){x=gB(w,x,D,S);break e}else if(D!==B){B=hg(Error(h(424)),x),y2(B),x=gB(w,x,D,S);break e}else{switch(w=x.stateNode.containerInfo,w.nodeType){case 9:w=w.body;break;default:w=w.nodeName==="HTML"?w.ownerDocument.body:w}for(Tl=wg(w.firstChild),uf=x,ko=!0,v2=null,pg=!0,S=f$(x,null,D,S),x.child=S;S;)S.flags=S.flags&-3|4096,S=S.sibling}else{if(Zx(),D===B){x=Ob(w,x,S);break e}Gf(w,x,D,S)}x=x.child}return x;case 26:return I8(w,x),w===null?(S=Sz(x.type,null,x.pendingProps,null))?x.memoizedState=S:ko||(S=x.type,w=x.pendingProps,D=Z8(_t.current).createElement(S),D[_u]=x,D[lf]=w,Uf(D,S,w),oa(D),x.stateNode=D):x.memoizedState=Sz(x.type,w.memoizedProps,x.pendingProps,w.memoizedState),null;case 27:return rr(x),w===null&&ko&&(D=x.stateNode=yz(x.type,x.pendingProps,_t.current),uf=x,pg=!0,B=Tl,R2(x.type)?(YN=B,Tl=wg(D.firstChild)):Tl=B),Gf(w,x,x.pendingProps.children,S),I8(w,x),w===null&&(x.flags|=4194304),x.child;case 5:return w===null&&ko&&((B=D=Tl)&&(D=HK(D,x.type,x.pendingProps,pg),D!==null?(x.stateNode=D,uf=x,Tl=wg(D.firstChild),pg=!1,B=!0):B=!1),B||x2(x)),rr(x),B=x.type,H=x.pendingProps,de=w!==null?w.memoizedProps:null,D=H.children,JN(B,H)?D=null:de!==null&&JN(B,de)&&(x.flags|=32),x.memoizedState!==null&&(B=QA(w,x,lK,null,null,S),y6._currentValue=B),I8(w,x),Gf(w,x,D,S),x.child;case 6:return w===null&&ko&&((w=S=Tl)&&(S=GK(S,x.pendingProps,pg),S!==null?(x.stateNode=S,uf=x,Tl=null,w=!0):w=!1),w||x2(x)),null;case 13:return pB(w,x,S);case 4:return an(x,x.stateNode.containerInfo),D=x.pendingProps,w===null?x.child=ry(x,null,D,S):Gf(w,x,D,S),x.child;case 11:return oB(w,x,x.type,x.pendingProps,S);case 7:return Gf(w,x,x.pendingProps,S),x.child;case 8:return Gf(w,x,x.pendingProps.children,S),x.child;case 12:return Gf(w,x,x.pendingProps.children,S),x.child;case 10:return D=x.pendingProps,k2(x,x.type,D.value),Gf(w,x,D.children,S),x.child;case 9:return B=x.type._context,D=x.pendingProps.children,O2(x),B=Hf(B),D=D(B),x.flags|=1,Gf(w,x,D,S),x.child;case 14:return cB(w,x,x.type,x.pendingProps,S);case 15:return lB(w,x,x.type,x.pendingProps,S);case 19:return bB(w,x,S);case 31:return mK(w,x,S);case 22:return uB(w,x,S,x.pendingProps);case 24:return O2(x),D=Hf(ca),w===null?(B=LA(),B===null&&(B=nl,H=_A(),B.pooledCache=H,H.refCount++,H!==null&&(B.pooledCacheLanes|=S),B=H),x.memoizedState={parent:D,cache:B},RA(x),k2(x,ca,B)):((w.lanes&S)!==0&&($A(w,x),t6(x,null,null,S),e6()),B=w.memoizedState,H=x.memoizedState,B.parent!==D?(B={parent:D,cache:D},x.memoizedState=B,x.lanes===0&&(x.memoizedState=x.updateQueue.baseState=B),k2(x,ca,D)):(D=H.cache,k2(x,ca,D),D!==B.cache&&AA(x,[ca],S,!0))),Gf(w,x,x.pendingProps.children,S),x.child;case 29:throw x.pendingProps}throw Error(h(156,x.tag))}function jb(w){w.flags|=4}function mN(w,x,S,D,B){if((x=(w.mode&32)!==0)&&(x=!1),x){if(w.flags|=16777216,(B&335544128)===B)if(w.stateNode.complete)w.flags|=8192;else if(zB())w.flags|=8192;else throw iy=v8,PA}else w.flags&=-16777217}function vB(w,x){if(x.type!=="stylesheet"||(x.state.loading&4)!==0)w.flags&=-16777217;else if(w.flags|=16777216,!Mz(x))if(zB())w.flags|=8192;else throw iy=v8,PA}function $5(w,x){x!==null&&(w.flags|=4),w.flags&16384&&(x=w.tag!==22?d5():536870912,w.lanes|=x,H5|=x)}function l6(w,x){if(!ko)switch(w.tailMode){case"hidden":x=w.tail;for(var S=null;x!==null;)x.alternate!==null&&(S=x),x=x.sibling;S===null?w.tail=null:S.sibling=null;break;case"collapsed":S=w.tail;for(var D=null;S!==null;)S.alternate!==null&&(D=S),S=S.sibling;D===null?x||w.tail===null?w.tail=null:w.tail.sibling=null:D.sibling=null}}function Cl(w){var x=w.alternate!==null&&w.alternate.child===w.child,S=0,D=0;if(x)for(var B=w.child;B!==null;)S|=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;)S|=B.lanes|B.childLanes,D|=B.subtreeFlags,D|=B.flags,B.return=w,B=B.sibling;return w.subtreeFlags|=D,w.childLanes=S,x}function bN(w,x,S){var D=x.pendingProps;switch(TA(x),x.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Cl(x),null;case 1:return Cl(x),null;case 3:return S=x.stateNode,D=null,w!==null&&(D=w.memoizedState.cache),x.memoizedState.cache!==D&&(x.flags|=2048),xb(ca),Jn(),S.pendingContext&&(S.context=S.pendingContext,S.pendingContext=null),(w===null||w.child===null)&&(C5(x)?jb(x):w===null||w.memoizedState.isDehydrated&&(x.flags&256)===0||(x.flags|=1024,E5())),Cl(x),null;case 26:var B=x.type,H=x.memoizedState;return w===null?(jb(x),H!==null?(Cl(x),vB(x,H)):(Cl(x),mN(x,B,null,D,S))):H?H!==w.memoizedState?(jb(x),Cl(x),vB(x,H)):(Cl(x),x.flags&=-16777217):(w=w.memoizedProps,w!==D&&jb(x),Cl(x),mN(x,B,w,D,S)),null;case 27:if(ei(x),S=_t.current,B=x.type,w!==null&&x.stateNode!=null)w.memoizedProps!==D&&jb(x);else{if(!D){if(x.stateNode===null)throw Error(h(166));return Cl(x),null}w=Ye.current,C5(x)?n$(x):(w=yz(B,D,S),x.stateNode=w,jb(x))}return Cl(x),null;case 5:if(ei(x),B=x.type,w!==null&&x.stateNode!=null)w.memoizedProps!==D&&jb(x);else{if(!D){if(x.stateNode===null)throw Error(h(166));return Cl(x),null}if(H=Ye.current,C5(x))n$(x);else{var de=Z8(_t.current);switch(H){case 1:H=de.createElementNS("http://www.w3.org/2000/svg",B);break;case 2:H=de.createElementNS("http://www.w3.org/1998/Math/MathML",B);break;default:switch(B){case"svg":H=de.createElementNS("http://www.w3.org/2000/svg",B);break;case"math":H=de.createElementNS("http://www.w3.org/1998/Math/MathML",B);break;case"script":H=de.createElement("div"),H.innerHTML="<script><\/script>",H=H.removeChild(H.firstChild);break;case"select":H=typeof D.is=="string"?de.createElement("select",{is:D.is}):de.createElement("select"),D.multiple?H.multiple=!0:D.size&&(H.size=D.size);break;default:H=typeof D.is=="string"?de.createElement(B,{is:D.is}):de.createElement(B)}}H[_u]=x,H[lf]=D;e:for(de=x.child;de!==null;){if(de.tag===5||de.tag===6)H.appendChild(de.stateNode);else if(de.tag!==4&&de.tag!==27&&de.child!==null){de.child.return=de,de=de.child;continue}if(de===x)break e;for(;de.sibling===null;){if(de.return===null||de.return===x)break e;de=de.return}de.sibling.return=de.return,de=de.sibling}x.stateNode=H;e:switch(Uf(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&&jb(x)}}return Cl(x),mN(x,x.type,w===null?null:w.memoizedProps,x.pendingProps,S),null;case 6:if(w&&x.stateNode!=null)w.memoizedProps!==D&&jb(x);else{if(typeof D!="string"&&x.stateNode===null)throw Error(h(166));if(w=_t.current,C5(x)){if(w=x.stateNode,S=x.memoizedProps,D=null,B=uf,B!==null)switch(B.tag){case 27:case 5:D=B.memoizedProps}w[_u]=x,w=!!(w.nodeValue===S||D!==null&&D.suppressHydrationWarning===!0||fz(w.nodeValue,S)),w||x2(x,!0)}else w=Z8(w).createTextNode(D),w[_u]=x,x.stateNode=w}return Cl(x),null;case 31:if(S=x.memoizedState,w===null||w.memoizedState!==null){if(D=C5(x),S!==null){if(w===null){if(!D)throw Error(h(318));if(w=x.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(h(557));w[_u]=x}else Zx(),(x.flags&128)===0&&(x.memoizedState=null),x.flags|=4;Cl(x),w=!1}else S=E5(),w!==null&&w.memoizedState!==null&&(w.memoizedState.hydrationErrors=S),w=!0;if(!w)return x.flags&256?(g1(x),x):(g1(x),null);if((x.flags&128)!==0)throw Error(h(558))}return Cl(x),null;case 13:if(D=x.memoizedState,w===null||w.memoizedState!==null&&w.memoizedState.dehydrated!==null){if(B=C5(x),D!==null&&D.dehydrated!==null){if(w===null){if(!B)throw Error(h(318));if(B=x.memoizedState,B=B!==null?B.dehydrated:null,!B)throw Error(h(317));B[_u]=x}else Zx(),(x.flags&128)===0&&(x.memoizedState=null),x.flags|=4;Cl(x),B=!1}else B=E5(),w!==null&&w.memoizedState!==null&&(w.memoizedState.hydrationErrors=B),B=!0;if(!B)return x.flags&256?(g1(x),x):(g1(x),null)}return g1(x),(x.flags&128)!==0?(x.lanes=S,x):(S=D!==null,w=w!==null&&w.memoizedState!==null,S&&(D=x.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)),S!==w&&S&&(x.child.flags|=8192),$5(x,x.updateQueue),Cl(x),null);case 4:return Jn(),w===null&&qN(x.stateNode.containerInfo),Cl(x),null;case 10:return xb(x.type),Cl(x),null;case 19:if(et(Du),D=x.memoizedState,D===null)return Cl(x),null;if(B=(x.flags&128)!==0,H=D.rendering,H===null)if(B)l6(D,!1);else{if(pu!==0||w!==null&&(w.flags&128)!==0)for(w=x.child;w!==null;){if(H=O8(w),H!==null){for(x.flags|=128,l6(D,!1),w=H.updateQueue,x.updateQueue=w,$5(x,w),x.subtreeFlags=0,w=S,S=x.child;S!==null;)KR(S,w),S=S.sibling;return Ie(Du,Du.current&1|2),ko&&vb(x,D.treeForkCount),x.child}w=w.sibling}D.tail!==null&&sa()>H8&&(x.flags|=128,B=!0,l6(D,!1),x.lanes=4194304)}else{if(!B)if(w=O8(H),w!==null){if(x.flags|=128,B=!0,w=w.updateQueue,x.updateQueue=w,$5(x,w),l6(D,!0),D.tail===null&&D.tailMode==="hidden"&&!H.alternate&&!ko)return Cl(x),null}else 2*sa()-D.renderingStartTime>H8&&S!==536870912&&(x.flags|=128,B=!0,l6(D,!1),x.lanes=4194304);D.isBackwards?(H.sibling=x.child,x.child=H):(w=D.last,w!==null?w.sibling=H:x.child=H,D.last=H)}return D.tail!==null?(w=D.tail,D.rendering=w,D.tail=w.sibling,D.renderingStartTime=sa(),w.sibling=null,S=Du.current,Ie(Du,B?S&1|2:S&1),ko&&vb(x,D.treeForkCount),w):(Cl(x),null);case 22:case 23:return g1(x),qA(),D=x.memoizedState!==null,w!==null?w.memoizedState!==null!==D&&(x.flags|=8192):D&&(x.flags|=8192),D?(S&536870912)!==0&&(x.flags&128)===0&&(Cl(x),x.subtreeFlags&6&&(x.flags|=8192)):Cl(x),S=x.updateQueue,S!==null&&$5(x,S.retryQueue),S=null,w!==null&&w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(S=w.memoizedState.cachePool.pool),D=null,x.memoizedState!==null&&x.memoizedState.cachePool!==null&&(D=x.memoizedState.cachePool.pool),D!==S&&(x.flags|=2048),w!==null&&et(ty),null;case 24:return S=null,w!==null&&(S=w.memoizedState.cache),x.memoizedState.cache!==S&&(x.flags|=2048),xb(ca),Cl(x),null;case 25:return null;case 30:return null}throw Error(h(156,x.tag))}function wK(w,x){switch(TA(x),x.tag){case 1:return w=x.flags,w&65536?(x.flags=w&-65537|128,x):null;case 3:return xb(ca),Jn(),w=x.flags,(w&65536)!==0&&(w&128)===0?(x.flags=w&-65537|128,x):null;case 26:case 27:case 5:return ei(x),null;case 31:if(x.memoizedState!==null){if(g1(x),x.alternate===null)throw Error(h(340));Zx()}return w=x.flags,w&65536?(x.flags=w&-65537|128,x):null;case 13:if(g1(x),w=x.memoizedState,w!==null&&w.dehydrated!==null){if(x.alternate===null)throw Error(h(340));Zx()}return w=x.flags,w&65536?(x.flags=w&-65537|128,x):null;case 19:return et(Du),null;case 4:return Jn(),null;case 10:return xb(x.type),null;case 22:case 23:return g1(x),qA(),w!==null&&et(ty),w=x.flags,w&65536?(x.flags=w&-65537|128,x):null;case 24:return xb(ca),null;case 25:return null;default:return null}}function xB(w,x){switch(TA(x),x.tag){case 3:xb(ca),Jn();break;case 26:case 27:case 5:ei(x);break;case 4:Jn();break;case 31:x.memoizedState!==null&&g1(x);break;case 13:g1(x);break;case 19:et(Du);break;case 10:xb(x.type);break;case 22:case 23:g1(x),qA(),w!==null&&et(ty);break;case 24:xb(ca)}}function u6(w,x){try{var S=x.updateQueue,D=S!==null?S.lastEffect:null;if(D!==null){var B=D.next;S=B;do{if((S.tag&w)===w){D=void 0;var H=S.create,de=S.inst;D=H(),de.destroy=D}S=S.next}while(S!==B)}}catch(De){Ec(x,x.return,De)}}function M2(w,x,S){try{var D=x.updateQueue,B=D!==null?D.lastEffect:null;if(B!==null){var H=B.next;D=H;do{if((D.tag&w)===w){var de=D.inst,De=de.destroy;if(De!==void 0){de.destroy=void 0,B=x;var mt=S,qt=De;try{qt()}catch(mn){Ec(B,mt,mn)}}}D=D.next}while(D!==H)}}catch(mn){Ec(x,x.return,mn)}}function R8(w){var x=w.updateQueue;if(x!==null){var S=w.stateNode;try{d$(x,S)}catch(D){Ec(w,w.return,D)}}}function a6(w,x,S){S.props=oy(w.type,w.memoizedProps),S.state=w.memoizedState;try{S.componentWillUnmount()}catch(D){Ec(w,x,D)}}function A2(w,x){try{var S=w.ref;if(S!==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 S=="function"?w.refCleanup=S(D):S.current=D}}catch(B){Ec(w,x,B)}}function Bp(w,x){var S=w.ref,D=w.refCleanup;if(S!==null)if(typeof D=="function")try{D()}catch(B){Ec(w,x,B)}finally{w.refCleanup=null,w=w.alternate,w!=null&&(w.refCleanup=null)}else if(typeof S=="function")try{S(null)}catch(B){Ec(w,x,B)}else S.current=null}function wN(w){var x=w.type,S=w.memoizedProps,D=w.stateNode;try{e:switch(x){case"button":case"input":case"select":case"textarea":S.autoFocus&&D.focus();break e;case"img":S.src?D.src=S.src:S.srcSet&&(D.srcset=S.srcSet)}}catch(B){Ec(w,w.return,B)}}function vN(w,x,S){try{var D=w.stateNode;RK(D,w.type,S,x),D[lf]=x}catch(B){Ec(w,w.return,B)}}function yB(w){return w.tag===5||w.tag===3||w.tag===26||w.tag===27&&R2(w.type)||w.tag===4}function B5(w){e:for(;;){for(;w.sibling===null;){if(w.return===null||yB(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&&R2(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 xN(w,x,S){var D=w.tag;if(D===5||D===6)w=w.stateNode,x?(S.nodeType===9?S.body:S.nodeName==="HTML"?S.ownerDocument.body:S).insertBefore(w,x):(x=S.nodeType===9?S.body:S.nodeName==="HTML"?S.ownerDocument.body:S,x.appendChild(w),S=S._reactRootContainer,S!=null||x.onclick!==null||(x.onclick=mb));else if(D!==4&&(D===27&&R2(w.type)&&(S=w.stateNode,x=null),w=w.child,w!==null))for(xN(w,x,S),w=w.sibling;w!==null;)xN(w,x,S),w=w.sibling}function $8(w,x,S){var D=w.tag;if(D===5||D===6)w=w.stateNode,x?S.insertBefore(w,x):S.appendChild(w);else if(D!==4&&(D===27&&R2(w.type)&&(S=w.stateNode),w=w.child,w!==null))for($8(w,x,S),w=w.sibling;w!==null;)$8(w,x,S),w=w.sibling}function kB(w){var x=w.stateNode,S=w.memoizedProps;try{for(var D=w.type,B=x.attributes;B.length;)x.removeAttributeNode(B[0]);Uf(x,D,S),x[_u]=w,x[lf]=S}catch(H){Ec(w,w.return,H)}}var bg=!1,ua=!1,yN=!1,OB=typeof WeakSet=="function"?WeakSet:Set,af=null;function B8(w,x){if(w=w.containerInfo,QN=O6,w=qR(w),pA(w)){if("selectionStart"in w)var S={start:w.selectionStart,end:w.selectionEnd};else e:{S=(S=w.ownerDocument)&&S.defaultView||window;var D=S.getSelection&&S.getSelection();if(D&&D.rangeCount!==0){S=D.anchorNode;var B=D.anchorOffset,H=D.focusNode;D=D.focusOffset;try{S.nodeType,H.nodeType}catch{S=null;break e}var de=0,De=-1,mt=-1,qt=0,mn=0,On=w,en=null;t:for(;;){for(var cn;On!==S||B!==0&&On.nodeType!==3||(De=de+B),On!==H||D!==0&&On.nodeType!==3||(mt=de+D),On.nodeType===3&&(de+=On.nodeValue.length),(cn=On.firstChild)!==null;)en=On,On=cn;for(;;){if(On===w)break t;if(en===S&&++qt===B&&(De=de),en===H&&++mn===D&&(mt=de),(cn=On.nextSibling)!==null)break;On=en,en=On.parentNode}On=cn}S=De===-1||mt===-1?null:{start:De,end:mt}}else S=null}S=S||{start:0,end:0}}else S=null;for(UN={focusedElem:w,selectionRange:S},O6=!1,af=x;af!==null;)if(x=af,w=x.child,(x.subtreeFlags&1028)!==0&&w!==null)w.return=x,af=w;else for(;af!==null;){switch(x=af,H=x.alternate,w=x.flags,x.tag){case 0:if((w&4)!==0&&(w=x.updateQueue,w=w!==null?w.events:null,w!==null))for(S=0;S<w.length;S++)B=w[S],B.ref.impl=B.nextImpl;break;case 11:case 15:break;case 1:if((w&1024)!==0&&H!==null){w=void 0,S=x,B=H.memoizedProps,H=H.memoizedState,D=S.stateNode;try{var Zi=oy(S.type,B);w=D.getSnapshotBeforeUpdate(Zi,H),D.__reactInternalSnapshotBeforeUpdate=w}catch(qr){Ec(S,S.return,qr)}}break;case 3:if((w&1024)!==0){if(w=x.stateNode.containerInfo,S=w.nodeType,S===9)VN(w);else if(S===1)switch(w.nodeName){case"HEAD":case"HTML":case"BODY":VN(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=x.sibling,w!==null){w.return=x.return,af=w;break}af=x.return}}function jB(w,x,S){var D=S.flags;switch(S.tag){case 0:case 11:case 15:Sb(w,S),D&4&&u6(5,S);break;case 1:if(Sb(w,S),D&4)if(w=S.stateNode,x===null)try{w.componentDidMount()}catch(de){Ec(S,S.return,de)}else{var B=oy(S.type,x.memoizedProps);x=x.memoizedState;try{w.componentDidUpdate(B,x,w.__reactInternalSnapshotBeforeUpdate)}catch(de){Ec(S,S.return,de)}}D&64&&R8(S),D&512&&A2(S,S.return);break;case 3:if(Sb(w,S),D&64&&(w=S.updateQueue,w!==null)){if(x=null,S.child!==null)switch(S.child.tag){case 27:case 5:x=S.child.stateNode;break;case 1:x=S.child.stateNode}try{d$(w,x)}catch(de){Ec(S,S.return,de)}}break;case 27:x===null&&D&4&&kB(S);case 26:case 5:Sb(w,S),x===null&&D&4&&wN(S),D&512&&A2(S,S.return);break;case 12:Sb(w,S);break;case 31:Sb(w,S),D&4&&TB(w,S);break;case 13:Sb(w,S),D&4&&CB(w,S),D&64&&(w=S.memoizedState,w!==null&&(w=w.dehydrated,w!==null&&(S=CK.bind(null,S),QK(w,S))));break;case 22:if(D=S.memoizedState!==null||bg,!D){x=x!==null&&x.memoizedState!==null||ua,B=bg;var H=ua;bg=D,(ua=x)&&!H?Tb(w,S,(S.subtreeFlags&8772)!==0):Sb(w,S),bg=B,ua=H}break;case 30:break;default:Sb(w,S)}}function kN(w){var x=w.alternate;x!==null&&(w.alternate=null,kN(x)),w.child=null,w.deletions=null,w.sibling=null,w.tag===5&&(x=w.stateNode,x!==null&&DO(x)),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 ql=null,gh=!1;function zp(w,x,S){for(S=S.child;S!==null;)SB(w,x,S),S=S.sibling}function SB(w,x,S){if(qf&&typeof qf.onCommitFiberUnmount=="function")try{qf.onCommitFiberUnmount(lb,S)}catch{}switch(S.tag){case 26:ua||Bp(S,x),zp(w,x,S),S.memoizedState?S.memoizedState.count--:S.stateNode&&(S=S.stateNode,S.parentNode.removeChild(S));break;case 27:ua||Bp(S,x);var D=ql,B=gh;R2(S.type)&&(ql=S.stateNode,gh=!1),zp(w,x,S),W5(S.stateNode),ql=D,gh=B;break;case 5:ua||Bp(S,x);case 6:if(D=ql,B=gh,ql=null,zp(w,x,S),ql=D,gh=B,ql!==null)if(gh)try{(ql.nodeType===9?ql.body:ql.nodeName==="HTML"?ql.ownerDocument.body:ql).removeChild(S.stateNode)}catch(H){Ec(S,x,H)}else try{ql.removeChild(S.stateNode)}catch(H){Ec(S,x,H)}break;case 18:ql!==null&&(gh?(w=ql,bz(w.nodeType===9?w.body:w.nodeName==="HTML"?w.ownerDocument.body:w,S.stateNode),fy(w)):bz(ql,S.stateNode));break;case 4:D=ql,B=gh,ql=S.stateNode.containerInfo,gh=!0,zp(w,x,S),ql=D,gh=B;break;case 0:case 11:case 14:case 15:M2(2,S,x),ua||M2(4,S,x),zp(w,x,S);break;case 1:ua||(Bp(S,x),D=S.stateNode,typeof D.componentWillUnmount=="function"&&a6(S,x,D)),zp(w,x,S);break;case 21:zp(w,x,S);break;case 22:ua=(D=ua)||S.memoizedState!==null,zp(w,x,S),ua=D;break;default:zp(w,x,S)}}function TB(w,x){if(x.memoizedState===null&&(w=x.alternate,w!==null&&(w=w.memoizedState,w!==null))){w=w.dehydrated;try{fy(w)}catch(S){Ec(x,x.return,S)}}}function CB(w,x){if(x.memoizedState===null&&(w=x.alternate,w!==null&&(w=w.memoizedState,w!==null&&(w=w.dehydrated,w!==null))))try{fy(w)}catch(S){Ec(x,x.return,S)}}function vK(w){switch(w.tag){case 31:case 13:case 19:var x=w.stateNode;return x===null&&(x=w.stateNode=new OB),x;case 22:return w=w.stateNode,x=w._retryCache,x===null&&(x=w._retryCache=new OB),x;default:throw Error(h(435,w.tag))}}function ON(w,x){var S=vK(w);x.forEach(function(D){if(!S.has(D)){S.add(D);var B=EK.bind(null,w,D);D.then(B,B)}})}function Ad(w,x){var S=x.deletions;if(S!==null)for(var D=0;D<S.length;D++){var B=S[D],H=w,de=x,De=de;e:for(;De!==null;){switch(De.tag){case 27:if(R2(De.type)){ql=De.stateNode,gh=!1;break e}break;case 5:ql=De.stateNode,gh=!1;break e;case 3:case 4:ql=De.stateNode.containerInfo,gh=!0;break e}De=De.return}if(ql===null)throw Error(h(160));SB(H,de,B),ql=null,gh=!1,H=B.alternate,H!==null&&(H.return=null),B.return=null}if(x.subtreeFlags&13886)for(x=x.child;x!==null;)EB(x,w),x=x.sibling}var w0=null;function EB(w,x){var S=w.alternate,D=w.flags;switch(w.tag){case 0:case 11:case 14:case 15:Ad(x,w),Nd(w),D&4&&(M2(3,w,w.return),u6(3,w),M2(5,w,w.return));break;case 1:Ad(x,w),Nd(w),D&512&&(ua||S===null||Bp(S,S.return)),D&64&&bg&&(w=w.updateQueue,w!==null&&(D=w.callbacks,D!==null&&(S=w.shared.hiddenCallbacks,w.shared.hiddenCallbacks=S===null?D:S.concat(D))));break;case 26:var B=w0;if(Ad(x,w),Nd(w),D&512&&(ua||S===null||Bp(S,S.return)),D&4){var H=S!==null?S.memoizedState:null;if(D=w.memoizedState,S===null)if(D===null)if(w.stateNode===null){e:{D=w.type,S=w.memoizedProps,B=B.ownerDocument||B;t:switch(D){case"title":H=B.getElementsByTagName("title")[0],(!H||H[db]||H[_u]||H.namespaceURI==="http://www.w3.org/2000/svg"||H.hasAttribute("itemprop"))&&(H=B.createElement(D),B.head.insertBefore(H,B.querySelector("head > title"))),Uf(H,D,S),H[_u]=w,oa(H),D=H;break e;case"link":var de=Ez("link","href",B).get(D+(S.href||""));if(de){for(var De=0;De<de.length;De++)if(H=de[De],H.getAttribute("href")===(S.href==null||S.href===""?null:S.href)&&H.getAttribute("rel")===(S.rel==null?null:S.rel)&&H.getAttribute("title")===(S.title==null?null:S.title)&&H.getAttribute("crossorigin")===(S.crossOrigin==null?null:S.crossOrigin)){de.splice(De,1);break t}}H=B.createElement(D),Uf(H,D,S),B.head.appendChild(H);break;case"meta":if(de=Ez("meta","content",B).get(D+(S.content||""))){for(De=0;De<de.length;De++)if(H=de[De],H.getAttribute("content")===(S.content==null?null:""+S.content)&&H.getAttribute("name")===(S.name==null?null:S.name)&&H.getAttribute("property")===(S.property==null?null:S.property)&&H.getAttribute("http-equiv")===(S.httpEquiv==null?null:S.httpEquiv)&&H.getAttribute("charset")===(S.charSet==null?null:S.charSet)){de.splice(De,1);break t}}H=B.createElement(D),Uf(H,D,S),B.head.appendChild(H);break;default:throw Error(h(468,D))}H[_u]=w,oa(H),D=H}w.stateNode=D}else nT(B,w.type,w.stateNode);else w.stateNode=Cz(B,D,w.memoizedProps);else H!==D?(H===null?S.stateNode!==null&&(S=S.stateNode,S.parentNode.removeChild(S)):H.count--,D===null?nT(B,w.type,w.stateNode):Cz(B,D,w.memoizedProps)):D===null&&w.stateNode!==null&&vN(w,w.memoizedProps,S.memoizedProps)}break;case 27:Ad(x,w),Nd(w),D&512&&(ua||S===null||Bp(S,S.return)),S!==null&&D&4&&vN(w,w.memoizedProps,S.memoizedProps);break;case 5:if(Ad(x,w),Nd(w),D&512&&(ua||S===null||Bp(S,S.return)),w.flags&32){B=w.stateNode;try{b5(B,"")}catch(Zi){Ec(w,w.return,Zi)}}D&4&&w.stateNode!=null&&(B=w.memoizedProps,vN(w,B,S!==null?S.memoizedProps:B)),D&1024&&(yN=!0);break;case 6:if(Ad(x,w),Nd(w),D&4){if(w.stateNode===null)throw Error(h(162));D=w.memoizedProps,S=w.stateNode;try{S.nodeValue=D}catch(Zi){Ec(w,w.return,Zi)}}break;case 3:if(Z5=null,B=w0,w0=eT(x.containerInfo),Ad(x,w),w0=B,Nd(w),D&4&&S!==null&&S.memoizedState.isDehydrated)try{fy(x.containerInfo)}catch(Zi){Ec(w,w.return,Zi)}yN&&(yN=!1,MB(w));break;case 4:D=w0,w0=eT(w.stateNode.containerInfo),Ad(x,w),Nd(w),w0=D;break;case 12:Ad(x,w),Nd(w);break;case 31:Ad(x,w),Nd(w),D&4&&(D=w.updateQueue,D!==null&&(w.updateQueue=null,ON(w,D)));break;case 13:Ad(x,w),Nd(w),w.child.flags&8192&&w.memoizedState!==null!=(S!==null&&S.memoizedState!==null)&&(q8=sa()),D&4&&(D=w.updateQueue,D!==null&&(w.updateQueue=null,ON(w,D)));break;case 22:B=w.memoizedState!==null;var mt=S!==null&&S.memoizedState!==null,qt=bg,mn=ua;if(bg=qt||B,ua=mn||mt,Ad(x,w),ua=mn,bg=qt,Nd(w),D&8192)e:for(x=w.stateNode,x._visibility=B?x._visibility&-2:x._visibility|1,B&&(S===null||mt||bg||ua||cy(w)),S=null,x=w;;){if(x.tag===5||x.tag===26){if(S===null){mt=S=x;try{if(H=mt.stateNode,B)de=H.style,typeof de.setProperty=="function"?de.setProperty("display","none","important"):de.display="none";else{De=mt.stateNode;var On=mt.memoizedProps.style,en=On!=null&&On.hasOwnProperty("display")?On.display:null;De.style.display=en==null||typeof en=="boolean"?"":(""+en).trim()}}catch(Zi){Ec(mt,mt.return,Zi)}}}else if(x.tag===6){if(S===null){mt=x;try{mt.stateNode.nodeValue=B?"":mt.memoizedProps}catch(Zi){Ec(mt,mt.return,Zi)}}}else if(x.tag===18){if(S===null){mt=x;try{var cn=mt.stateNode;B?wz(cn,!0):wz(mt.stateNode,!1)}catch(Zi){Ec(mt,mt.return,Zi)}}}else if((x.tag!==22&&x.tag!==23||x.memoizedState===null||x===w)&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===w)break e;for(;x.sibling===null;){if(x.return===null||x.return===w)break e;S===x&&(S=null),x=x.return}S===x&&(S=null),x.sibling.return=x.return,x=x.sibling}D&4&&(D=w.updateQueue,D!==null&&(S=D.retryQueue,S!==null&&(D.retryQueue=null,ON(w,S))));break;case 19:Ad(x,w),Nd(w),D&4&&(D=w.updateQueue,D!==null&&(w.updateQueue=null,ON(w,D)));break;case 30:break;case 21:break;default:Ad(x,w),Nd(w)}}function Nd(w){var x=w.flags;if(x&2){try{for(var S,D=w.return;D!==null;){if(yB(D)){S=D;break}D=D.return}if(S==null)throw Error(h(160));switch(S.tag){case 27:var B=S.stateNode,H=B5(w);$8(w,H,B);break;case 5:var de=S.stateNode;S.flags&32&&(b5(de,""),S.flags&=-33);var De=B5(w);$8(w,De,de);break;case 3:case 4:var mt=S.stateNode.containerInfo,qt=B5(w);xN(w,qt,mt);break;default:throw Error(h(161))}}catch(mn){Ec(w,w.return,mn)}w.flags&=-3}x&4096&&(w.flags&=-4097)}function MB(w){if(w.subtreeFlags&1024)for(w=w.child;w!==null;){var x=w;MB(x),x.tag===5&&x.flags&1024&&x.stateNode.reset(),w=w.sibling}}function Sb(w,x){if(x.subtreeFlags&8772)for(x=x.child;x!==null;)jB(w,x.alternate,x),x=x.sibling}function cy(w){for(w=w.child;w!==null;){var x=w;switch(x.tag){case 0:case 11:case 14:case 15:M2(4,x,x.return),cy(x);break;case 1:Bp(x,x.return);var S=x.stateNode;typeof S.componentWillUnmount=="function"&&a6(x,x.return,S),cy(x);break;case 27:W5(x.stateNode);case 26:case 5:Bp(x,x.return),cy(x);break;case 22:x.memoizedState===null&&cy(x);break;case 30:cy(x);break;default:cy(x)}w=w.sibling}}function Tb(w,x,S){for(S=S&&(x.subtreeFlags&8772)!==0,x=x.child;x!==null;){var D=x.alternate,B=w,H=x,de=H.flags;switch(H.tag){case 0:case 11:case 15:Tb(B,H,S),u6(4,H);break;case 1:if(Tb(B,H,S),D=H,B=D.stateNode,typeof B.componentDidMount=="function")try{B.componentDidMount()}catch(qt){Ec(D,D.return,qt)}if(D=H,B=D.updateQueue,B!==null){var De=D.stateNode;try{var mt=B.shared.hiddenCallbacks;if(mt!==null)for(B.shared.hiddenCallbacks=null,B=0;B<mt.length;B++)h$(mt[B],De)}catch(qt){Ec(D,D.return,qt)}}S&&de&64&&R8(H),A2(H,H.return);break;case 27:kB(H);case 26:case 5:Tb(B,H,S),S&&D===null&&de&4&&wN(H),A2(H,H.return);break;case 12:Tb(B,H,S);break;case 31:Tb(B,H,S),S&&de&4&&TB(B,H);break;case 13:Tb(B,H,S),S&&de&4&&CB(B,H);break;case 22:H.memoizedState===null&&Tb(B,H,S),A2(H,H.return);break;case 30:break;default:Tb(B,H,S)}x=x.sibling}}function jN(w,x){var S=null;w!==null&&w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(S=w.memoizedState.cachePool.pool),w=null,x.memoizedState!==null&&x.memoizedState.cachePool!==null&&(w=x.memoizedState.cachePool.pool),w!==S&&(w!=null&&w.refCount++,S!=null&&VO(S))}function SN(w,x){w=null,x.alternate!==null&&(w=x.alternate.memoizedState.cache),x=x.memoizedState.cache,x!==w&&(x.refCount++,w!=null&&VO(w))}function Qf(w,x,S,D){if(x.subtreeFlags&10256)for(x=x.child;x!==null;)z8(w,x,S,D),x=x.sibling}function z8(w,x,S,D){var B=x.flags;switch(x.tag){case 0:case 11:case 15:Qf(w,x,S,D),B&2048&&u6(9,x);break;case 1:Qf(w,x,S,D);break;case 3:Qf(w,x,S,D),B&2048&&(w=null,x.alternate!==null&&(w=x.alternate.memoizedState.cache),x=x.memoizedState.cache,x!==w&&(x.refCount++,w!=null&&VO(w)));break;case 12:if(B&2048){Qf(w,x,S,D),w=x.stateNode;try{var H=x.memoizedProps,de=H.id,De=H.onPostCommit;typeof De=="function"&&De(de,x.alternate===null?"mount":"update",w.passiveEffectDuration,-0)}catch(mt){Ec(x,x.return,mt)}}else Qf(w,x,S,D);break;case 31:Qf(w,x,S,D);break;case 13:Qf(w,x,S,D);break;case 23:break;case 22:H=x.stateNode,de=x.alternate,x.memoizedState!==null?H._visibility&2?Qf(w,x,S,D):f6(w,x):H._visibility&2?Qf(w,x,S,D):(H._visibility|=2,z5(w,x,S,D,(x.subtreeFlags&10256)!==0||!1)),B&2048&&jN(de,x);break;case 24:Qf(w,x,S,D),B&2048&&SN(x.alternate,x);break;default:Qf(w,x,S,D)}}function z5(w,x,S,D,B){for(B=B&&((x.subtreeFlags&10256)!==0||!1),x=x.child;x!==null;){var H=w,de=x,De=S,mt=D,qt=de.flags;switch(de.tag){case 0:case 11:case 15:z5(H,de,De,mt,B),u6(8,de);break;case 23:break;case 22:var mn=de.stateNode;de.memoizedState!==null?mn._visibility&2?z5(H,de,De,mt,B):f6(H,de):(mn._visibility|=2,z5(H,de,De,mt,B)),B&&qt&2048&&jN(de.alternate,de);break;case 24:z5(H,de,De,mt,B),B&&qt&2048&&SN(de.alternate,de);break;default:z5(H,de,De,mt,B)}x=x.sibling}}function f6(w,x){if(x.subtreeFlags&10256)for(x=x.child;x!==null;){var S=w,D=x,B=D.flags;switch(D.tag){case 22:f6(S,D),B&2048&&jN(D.alternate,D);break;case 24:f6(S,D),B&2048&&SN(D.alternate,D);break;default:f6(S,D)}x=x.sibling}}var h6=8192;function F5(w,x,S){if(w.subtreeFlags&h6)for(w=w.child;w!==null;)AB(w,x,S),w=w.sibling}function AB(w,x,S){switch(w.tag){case 26:F5(w,x,S),w.flags&h6&&w.memoizedState!==null&&YK(S,w0,w.memoizedState,w.memoizedProps);break;case 5:F5(w,x,S);break;case 3:case 4:var D=w0;w0=eT(w.stateNode.containerInfo),F5(w,x,S),w0=D;break;case 22:w.memoizedState===null&&(D=w.alternate,D!==null&&D.memoizedState!==null?(D=h6,h6=16777216,F5(w,x,S),h6=D):F5(w,x,S));break;default:F5(w,x,S)}}function NB(w){var x=w.alternate;if(x!==null&&(w=x.child,w!==null)){x.child=null;do x=w.sibling,w.sibling=null,w=x;while(w!==null)}}function d6(w){var x=w.deletions;if((w.flags&16)!==0){if(x!==null)for(var S=0;S<x.length;S++){var D=x[S];af=D,DB(D,w)}NB(w)}if(w.subtreeFlags&10256)for(w=w.child;w!==null;)_B(w),w=w.sibling}function _B(w){switch(w.tag){case 0:case 11:case 15:d6(w),w.flags&2048&&M2(9,w,w.return);break;case 3:d6(w);break;case 12:d6(w);break;case 22:var x=w.stateNode;w.memoizedState!==null&&x._visibility&2&&(w.return===null||w.return.tag!==13)?(x._visibility&=-3,F8(w)):d6(w);break;default:d6(w)}}function F8(w){var x=w.deletions;if((w.flags&16)!==0){if(x!==null)for(var S=0;S<x.length;S++){var D=x[S];af=D,DB(D,w)}NB(w)}for(w=w.child;w!==null;){switch(x=w,x.tag){case 0:case 11:case 15:M2(8,x,x.return),F8(x);break;case 22:S=x.stateNode,S._visibility&2&&(S._visibility&=-3,F8(x));break;default:F8(x)}w=w.sibling}}function DB(w,x){for(;af!==null;){var S=af;switch(S.tag){case 0:case 11:case 15:M2(8,S,x);break;case 23:case 22:if(S.memoizedState!==null&&S.memoizedState.cachePool!==null){var D=S.memoizedState.cachePool.pool;D!=null&&D.refCount++}break;case 24:VO(S.memoizedState.cache)}if(D=S.child,D!==null)D.return=S,af=D;else e:for(S=w;af!==null;){D=af;var B=D.sibling,H=D.return;if(kN(D),D===S){af=null;break e}if(B!==null){B.return=H,af=B;break e}af=H}}}var xK={getCacheForType:function(w){var x=Hf(ca),S=x.data.get(w);return S===void 0&&(S=w(),x.data.set(w,S)),S},cacheSignal:function(){return Hf(ca).controller.signal}},yK=typeof WeakMap=="function"?WeakMap:Map,cc=0,nl=null,ro=null,bo=0,Cc=0,m1=null,N2=!1,q5=!1,TN=!1,Cb=0,pu=0,_2=0,ly=0,CN=0,b1=0,H5=0,g6=null,_d=null,EN=!1,q8=0,LB=0,H8=1/0,G8=null,D2=null,Ra=0,L2=null,G5=null,Eb=0,MN=0,AN=null,PB=null,p6=0,NN=null;function w1(){return(cc&2)!==0&&bo!==0?bo&-bo:ue.T!==null?RN():p5()}function IB(){if(b1===0)if((bo&536870912)===0||ko){var w=l2;l2<<=1,(l2&3932160)===0&&(l2=262144),b1=w}else b1=536870912;return w=d1.current,w!==null&&(w.flags|=32),b1}function Dd(w,x,S){(w===nl&&(Cc===2||Cc===9)||w.cancelPendingCommit!==null)&&(Q5(w,0),P2(w,bo,b1,!1)),ab(w,S),((cc&2)===0||w!==nl)&&(w===nl&&((cc&2)===0&&(ly|=S),pu===4&&P2(w,bo,b1,!1)),Fp(w))}function RB(w,x,S){if((cc&6)!==0)throw Error(h(327));var D=!S&&(x&127)===0&&(x&w.expiredLanes)===0||ub(w,x),B=D?jK(w,x):DN(w,x,!0),H=D;do{if(B===0){q5&&!D&&P2(w,x,0,!1);break}else{if(S=w.current.alternate,H&&!kK(S)){B=DN(w,x,!1),H=!1;continue}if(B===2){if(H=x,w.errorRecoveryDisabledLanes&H)var de=0;else de=w.pendingLanes&-536870913,de=de!==0?de:de&536870912?536870912:0;if(de!==0){x=de;e:{var De=w;B=g6;var mt=De.current.memoizedState.isDehydrated;if(mt&&(Q5(De,de).flags|=256),de=DN(De,de,!1),de!==2){if(TN&&!mt){De.errorRecoveryDisabledLanes|=H,ly|=H,B=4;break e}H=_d,_d=B,H!==null&&(_d===null?_d=H:_d.push.apply(_d,H))}B=de}if(H=!1,B!==2)continue}}if(B===1){Q5(w,0),P2(w,x,0,!0);break}e:{switch(D=w,H=B,H){case 0:case 1:throw Error(h(345));case 4:if((x&4194048)!==x)break;case 6:P2(D,x,b1,!N2);break e;case 2:_d=null;break;case 3:case 5:break;default:throw Error(h(329))}if((x&62914560)===x&&(B=q8+300-sa(),10<B)){if(P2(D,x,b1,!N2),a2(D,0,!0)!==0)break e;Eb=x,D.timeoutHandle=pz($B.bind(null,D,S,_d,G8,EN,x,b1,ly,H5,N2,H,"Throttled",-0,0),B);break e}$B(D,S,_d,G8,EN,x,b1,ly,H5,N2,H,null,-0,0)}}break}while(!0);Fp(w)}function $B(w,x,S,D,B,H,de,De,mt,qt,mn,On,en,cn){if(w.timeoutHandle=-1,On=x.subtreeFlags,On&8192||(On&16785408)===16785408){On={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mb},AB(x,H,On);var Zi=(H&62914560)===H?q8-sa():(H&4194048)===H?LB-sa():0;if(Zi=ZK(On,Zi),Zi!==null){Eb=H,w.cancelPendingCommit=Zi(UB.bind(null,w,x,H,S,D,B,de,De,mt,mn,On,null,en,cn)),P2(w,H,de,!qt);return}}UB(w,x,H,S,D,B,de,De,mt)}function kK(w){for(var x=w;;){var S=x.tag;if((S===0||S===11||S===15)&&x.flags&16384&&(S=x.updateQueue,S!==null&&(S=S.stores,S!==null)))for(var D=0;D<S.length;D++){var B=S[D],H=B.getSnapshot;B=B.value;try{if(!f1(H(),B))return!1}catch{return!1}}if(S=x.child,x.subtreeFlags&16384&&S!==null)S.return=x,x=S;else{if(x===w)break;for(;x.sibling===null;){if(x.return===null||x.return===w)return!0;x=x.return}x.sibling.return=x.return,x=x.sibling}}return!0}function P2(w,x,S,D){x&=~CN,x&=~ly,w.suspendedLanes|=x,w.pingedLanes&=~x,D&&(w.warmLanes|=x),D=w.expirationTimes;for(var B=x;0<B;){var H=31-cf(B),de=1<<H;D[H]=-1,B&=~de}S!==0&&fb(w,S,x)}function Q8(){return(cc&6)===0?(m6(0),!1):!0}function _N(){if(ro!==null){if(Cc===0)var w=ro.return;else w=ro,Rp=ey=null,WA(w),D5=null,KO=0,w=ro;for(;w!==null;)xB(w.alternate,w),w=w.return;ro=null}}function Q5(w,x){var S=w.timeoutHandle;S!==-1&&(w.timeoutHandle=-1,zK(S)),S=w.cancelPendingCommit,S!==null&&(w.cancelPendingCommit=null,S()),Eb=0,_N(),nl=w,ro=S=wb(w.current,null),bo=x,Cc=0,m1=null,N2=!1,q5=ub(w,x),TN=!1,H5=b1=CN=ly=_2=pu=0,_d=g6=null,EN=!1,(x&8)!==0&&(x|=x&32);var D=w.entangledLanes;if(D!==0)for(w=w.entanglements,D&=x;0<D;){var B=31-cf(D),H=1<<B;x|=w[B],D&=~H}return Cb=x,h8(),S}function BB(w,x){Ts=null,ue.H=o6,x===_5||x===w8?(x=l$(),Cc=3):x===PA?(x=l$(),Cc=4):Cc=x===$p?8:x!==null&&typeof x=="object"&&typeof x.then=="function"?6:1,m1=x,ro===null&&(pu=1,L8(w,hg(x,w.current)))}function zB(){var w=d1.current;return w===null?!0:(bo&4194048)===bo?mg===null:(bo&62914560)===bo||(bo&536870912)!==0?w===mg:!1}function FB(){var w=ue.H;return ue.H=o6,w===null?o6:w}function qB(){var w=ue.A;return ue.A=xK,w}function U8(){pu=4,N2||(bo&4194048)!==bo&&d1.current!==null||(q5=!0),(_2&134217727)===0&&(ly&134217727)===0||nl===null||P2(nl,bo,b1,!1)}function DN(w,x,S){var D=cc;cc|=2;var B=FB(),H=qB();(nl!==w||bo!==x)&&(G8=null,Q5(w,x)),x=!1;var de=pu;e:do try{if(Cc!==0&&ro!==null){var De=ro,mt=m1;switch(Cc){case 8:_N(),de=6;break e;case 3:case 2:case 9:case 6:d1.current===null&&(x=!0);var qt=Cc;if(Cc=0,m1=null,U5(w,De,mt,qt),S&&q5){de=0;break e}break;default:qt=Cc,Cc=0,m1=null,U5(w,De,mt,qt)}}OK(),de=pu;break}catch(mn){BB(w,mn)}while(!0);return x&&w.shellSuspendCounter++,Rp=ey=null,cc=D,ue.H=B,ue.A=H,ro===null&&(nl=null,bo=0,h8()),de}function OK(){for(;ro!==null;)HB(ro)}function jK(w,x){var S=cc;cc|=2;var D=FB(),B=qB();nl!==w||bo!==x?(G8=null,H8=sa()+500,Q5(w,x)):q5=ub(w,x);e:do try{if(Cc!==0&&ro!==null){x=ro;var H=m1;t:switch(Cc){case 1:Cc=0,m1=null,U5(w,x,H,1);break;case 2:case 9:if(IA(H)){Cc=0,m1=null,GB(x);break}x=function(){Cc!==2&&Cc!==9||nl!==w||(Cc=7),Fp(w)},H.then(x,x);break e;case 3:Cc=7;break e;case 4:Cc=5;break e;case 7:IA(H)?(Cc=0,m1=null,GB(x)):(Cc=0,m1=null,U5(w,x,H,7));break;case 5:var de=null;switch(ro.tag){case 26:de=ro.memoizedState;case 5:case 27:var De=ro;if(de?Mz(de):De.stateNode.complete){Cc=0,m1=null;var mt=De.sibling;if(mt!==null)ro=mt;else{var qt=De.return;qt!==null?(ro=qt,J8(qt)):ro=null}break t}}Cc=0,m1=null,U5(w,x,H,5);break;case 6:Cc=0,m1=null,U5(w,x,H,6);break;case 8:_N(),pu=6;break e;default:throw Error(h(462))}}SK();break}catch(mn){BB(w,mn)}while(!0);return Rp=ey=null,ue.H=D,ue.A=B,cc=S,ro!==null?0:(nl=null,bo=0,h8(),pu)}function SK(){for(;ro!==null&&!qo();)HB(ro)}function HB(w){var x=wB(w.alternate,w,Cb);w.memoizedProps=w.pendingProps,x===null?J8(w):ro=x}function GB(w){var x=w,S=x.alternate;switch(x.tag){case 15:case 0:x=hB(S,x,x.pendingProps,x.type,void 0,bo);break;case 11:x=hB(S,x,x.pendingProps,x.type.render,x.ref,bo);break;case 5:WA(x);default:xB(S,x),x=ro=KR(x,Cb),x=wB(S,x,Cb)}w.memoizedProps=w.pendingProps,x===null?J8(w):ro=x}function U5(w,x,S,D){Rp=ey=null,WA(x),D5=null,KO=0;var B=x.return;try{if(pK(w,B,x,S,bo)){pu=1,L8(w,hg(S,w.current)),ro=null;return}}catch(H){if(B!==null)throw ro=B,H;pu=1,L8(w,hg(S,w.current)),ro=null;return}x.flags&32768?(ko||D===1?w=!0:q5||(bo&536870912)!==0?w=!1:(N2=w=!0,(D===2||D===9||D===3||D===6)&&(D=d1.current,D!==null&&D.tag===13&&(D.flags|=16384))),QB(x,w)):J8(x)}function J8(w){var x=w;do{if((x.flags&32768)!==0){QB(x,N2);return}w=x.return;var S=bN(x.alternate,x,Cb);if(S!==null){ro=S;return}if(x=x.sibling,x!==null){ro=x;return}ro=x=w}while(x!==null);pu===0&&(pu=5)}function QB(w,x){do{var S=wK(w.alternate,w);if(S!==null){S.flags&=32767,ro=S;return}if(S=w.return,S!==null&&(S.flags|=32768,S.subtreeFlags=0,S.deletions=null),!x&&(w=w.sibling,w!==null)){ro=w;return}ro=w=S}while(w!==null);pu=6,ro=null}function UB(w,x,S,D,B,H,de,De,mt){w.cancelPendingCommit=null;do W8();while(Ra!==0);if((cc&6)!==0)throw Error(h(327));if(x!==null){if(x===w.current)throw Error(h(177));if(H=x.lanes|x.childLanes,H|=xA,_O(w,S,H,de,De,mt),w===nl&&(ro=nl=null,bo=0),G5=x,L2=w,Eb=S,MN=H,AN=B,PB=D,(x.subtreeFlags&10256)!==0||(x.flags&10256)!==0?(w.callbackNode=null,w.callbackPriority=0,MK(Dp,function(){return KB(),null})):(w.callbackNode=null,w.callbackPriority=0),D=(x.flags&13878)!==0,(x.subtreeFlags&13878)!==0||D){D=ue.T,ue.T=null,B=ve.p,ve.p=2,de=cc,cc|=4;try{B8(w,x,S)}finally{cc=de,ve.p=B,ue.T=D}}Ra=1,JB(),WB(),VB()}}function JB(){if(Ra===1){Ra=0;var w=L2,x=G5,S=(x.flags&13878)!==0;if((x.subtreeFlags&13878)!==0||S){S=ue.T,ue.T=null;var D=ve.p;ve.p=2;var B=cc;cc|=4;try{EB(x,w);var H=UN,de=qR(w.containerInfo),De=H.focusedElem,mt=H.selectionRange;if(de!==De&&De&&De.ownerDocument&&FR(De.ownerDocument.documentElement,De)){if(mt!==null&&pA(De)){var qt=mt.start,mn=mt.end;if(mn===void 0&&(mn=qt),"selectionStart"in De)De.selectionStart=qt,De.selectionEnd=Math.min(mn,De.value.length);else{var On=De.ownerDocument||document,en=On&&On.defaultView||window;if(en.getSelection){var cn=en.getSelection(),Zi=De.textContent.length,qr=Math.min(mt.start,Zi),il=mt.end===void 0?qr:Math.min(mt.end,Zi);!cn.extend&&qr>il&&(de=il,il=qr,qr=de);var Nt=zR(De,qr),kt=zR(De,il);if(Nt&&kt&&(cn.rangeCount!==1||cn.anchorNode!==Nt.node||cn.anchorOffset!==Nt.offset||cn.focusNode!==kt.node||cn.focusOffset!==kt.offset)){var Bt=On.createRange();Bt.setStart(Nt.node,Nt.offset),cn.removeAllRanges(),qr>il?(cn.addRange(Bt),cn.extend(kt.node,kt.offset)):(Bt.setEnd(kt.node,kt.offset),cn.addRange(Bt))}}}}for(On=[],cn=De;cn=cn.parentNode;)cn.nodeType===1&&On.push({element:cn,left:cn.scrollLeft,top:cn.scrollTop});for(typeof De.focus=="function"&&De.focus(),De=0;De<On.length;De++){var hn=On[De];hn.element.scrollLeft=hn.left,hn.element.scrollTop=hn.top}}O6=!!QN,UN=QN=null}finally{cc=B,ve.p=D,ue.T=S}}w.current=x,Ra=2}}function WB(){if(Ra===2){Ra=0;var w=L2,x=G5,S=(x.flags&8772)!==0;if((x.subtreeFlags&8772)!==0||S){S=ue.T,ue.T=null;var D=ve.p;ve.p=2;var B=cc;cc|=4;try{jB(w,x.alternate,x)}finally{cc=B,ve.p=D,ue.T=S}}Ra=3}}function VB(){if(Ra===4||Ra===3){Ra=0,yo();var w=L2,x=G5,S=Eb,D=PB;(x.subtreeFlags&10256)!==0||(x.flags&10256)!==0?Ra=5:(Ra=0,G5=L2=null,XB(w,w.pendingLanes));var B=w.pendingLanes;if(B===0&&(D2=null),Hx(S),x=x.stateNode,qf&&typeof qf.onCommitFiberRoot=="function")try{qf.onCommitFiberRoot(lb,x,void 0,(x.current.flags&128)===128)}catch{}if(D!==null){x=ue.T,B=ve.p,ve.p=2,ue.T=null;try{for(var H=w.onRecoverableError,de=0;de<D.length;de++){var De=D[de];H(De.value,{componentStack:De.stack})}}finally{ue.T=x,ve.p=B}}(Eb&3)!==0&&W8(),Fp(w),B=w.pendingLanes,(S&261930)!==0&&(B&42)!==0?w===NN?p6++:(p6=0,NN=w):p6=0,m6(0)}}function XB(w,x){(w.pooledCacheLanes&=x)===0&&(x=w.pooledCache,x!=null&&(w.pooledCache=null,VO(x)))}function W8(){return JB(),WB(),VB(),KB()}function KB(){if(Ra!==5)return!1;var w=L2,x=MN;MN=0;var S=Hx(Eb),D=ue.T,B=ve.p;try{ve.p=32>S?32:S,ue.T=null,S=AN,AN=null;var H=L2,de=Eb;if(Ra=0,G5=L2=null,Eb=0,(cc&6)!==0)throw Error(h(331));var De=cc;if(cc|=4,_B(H.current),z8(H,H.current,de,S),cc=De,m6(0,!1),qf&&typeof qf.onPostCommitFiberRoot=="function")try{qf.onPostCommitFiberRoot(lb,H)}catch{}return!0}finally{ve.p=B,ue.T=D,XB(w,x)}}function YB(w,x,S){x=hg(S,x),x=cN(w.stateNode,x,2),w=T2(w,x,2),w!==null&&(ab(w,2),Fp(w))}function Ec(w,x,S){if(w.tag===3)YB(w,w,S);else for(;x!==null;){if(x.tag===3){YB(x,w,S);break}else if(x.tag===1){var D=x.stateNode;if(typeof x.type.getDerivedStateFromError=="function"||typeof D.componentDidCatch=="function"&&(D2===null||!D2.has(D))){w=hg(S,w),S=sB(2),D=T2(x,S,2),D!==null&&(p1(S,D,x,w),ab(D,2),Fp(D));break}}x=x.return}}function LN(w,x,S){var D=w.pingCache;if(D===null){D=w.pingCache=new yK;var B=new Set;D.set(x,B)}else B=D.get(x),B===void 0&&(B=new Set,D.set(x,B));B.has(S)||(TN=!0,B.add(S),w=TK.bind(null,w,x,S),x.then(w,w))}function TK(w,x,S){var D=w.pingCache;D!==null&&D.delete(x),w.pingedLanes|=w.suspendedLanes&S,w.warmLanes&=~S,nl===w&&(bo&S)===S&&(pu===4||pu===3&&(bo&62914560)===bo&&300>sa()-q8?(cc&2)===0&&Q5(w,0):CN|=S,H5===bo&&(H5=0)),Fp(w)}function ZB(w,x){x===0&&(x=d5()),w=Kx(w,x),w!==null&&(ab(w,x),Fp(w))}function CK(w){var x=w.memoizedState,S=0;x!==null&&(S=x.retryLane),ZB(w,S)}function EK(w,x){var S=0;switch(w.tag){case 31:case 13:var D=w.stateNode,B=w.memoizedState;B!==null&&(S=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(x),ZB(w,S)}function MK(w,x){return Ji(w,x)}var V8=null,J5=null,PN=!1,X8=!1,IN=!1,I2=0;function Fp(w){w!==J5&&w.next===null&&(J5===null?V8=J5=w:J5=J5.next=w),X8=!0,PN||(PN=!0,NK())}function m6(w,x){if(!IN&&X8){IN=!0;do for(var S=!1,D=V8;D!==null;){if(w!==0){var B=D.pendingLanes;if(B===0)var H=0;else{var de=D.suspendedLanes,De=D.pingedLanes;H=(1<<31-cf(42|w)+1)-1,H&=B&~(de&~De),H=H&201326741?H&201326741|1:H?H|2:0}H!==0&&(S=!0,iz(D,H))}else H=bo,H=a2(D,D===nl?H:0,D.cancelPendingCommit!==null||D.timeoutHandle!==-1),(H&3)===0||ub(D,H)||(S=!0,iz(D,H));D=D.next}while(S);IN=!1}}function AK(){ez()}function ez(){X8=PN=!1;var w=0;I2!==0&&BK()&&(w=I2);for(var x=sa(),S=null,D=V8;D!==null;){var B=D.next,H=tz(D,x);H===0?(D.next=null,S===null?V8=B:S.next=B,B===null&&(J5=S)):(S=D,(w!==0||(H&3)!==0)&&(X8=!0)),D=B}Ra!==0&&Ra!==5||m6(w),I2!==0&&(I2=0)}function tz(w,x){for(var S=w.suspendedLanes,D=w.pingedLanes,B=w.expirationTimes,H=w.pendingLanes&-62914561;0<H;){var de=31-cf(H),De=1<<de,mt=B[de];mt===-1?((De&S)===0||(De&D)!==0)&&(B[de]=NO(De,x)):mt<=x&&(w.expiredLanes|=De),H&=~De}if(x=nl,S=bo,S=a2(w,w===x?S:0,w.cancelPendingCommit!==null||w.timeoutHandle!==-1),D=w.callbackNode,S===0||w===x&&(Cc===2||Cc===9)||w.cancelPendingCommit!==null)return D!==null&&D!==null&&ds(D),w.callbackNode=null,w.callbackPriority=0;if((S&3)===0||ub(w,S)){if(x=S&-S,x===w.callbackPriority)return x;switch(D!==null&&ds(D),Hx(S)){case 2:case 8:S=d0;break;case 32:S=Dp;break;case 268435456:S=c2;break;default:S=Dp}return D=nz.bind(null,w),S=Ji(S,D),w.callbackPriority=x,w.callbackNode=S,x}return D!==null&&D!==null&&ds(D),w.callbackPriority=2,w.callbackNode=null,2}function nz(w,x){if(Ra!==0&&Ra!==5)return w.callbackNode=null,w.callbackPriority=0,null;var S=w.callbackNode;if(W8()&&w.callbackNode!==S)return null;var D=bo;return D=a2(w,w===nl?D:0,w.cancelPendingCommit!==null||w.timeoutHandle!==-1),D===0?null:(RB(w,D,x),tz(w,sa()),w.callbackNode!=null&&w.callbackNode===S?nz.bind(null,w):null)}function iz(w,x){if(W8())return null;RB(w,x,!0)}function NK(){FK(function(){(cc&6)!==0?Ji(Wh,AK):ez()})}function RN(){if(I2===0){var w=A5;w===0&&(w=g0,g0<<=1,(g0&261888)===0&&(g0=256)),I2=w}return I2}function rz(w){return w==null||typeof w=="symbol"||typeof w=="boolean"?null:typeof w=="function"?w:r8(""+w)}function sz(w,x){var S=x.ownerDocument.createElement("input");return S.name=x.name,S.value=x.value,w.id&&S.setAttribute("form",w.id),x.parentNode.insertBefore(S,x),w=new FormData(w),S.parentNode.removeChild(S),w}function oz(w,x,S,D,B){if(x==="submit"&&S&&S.stateNode===B){var H=rz((B[lf]||null).action),de=D.submitter;de&&(x=(x=de[lf]||null)?rz(x.formAction):de.getAttribute("formAction"),x!==null&&(H=x,de=null));var De=new l8("action","action",null,D,B);w.push({event:De,listeners:[{instance:null,listener:function(){if(D.defaultPrevented){if(I2!==0){var mt=de?sz(B,de):new FormData(B);r6(S,{pending:!0,data:mt,method:B.method,action:H},null,mt)}}else typeof H=="function"&&(De.preventDefault(),mt=de?sz(B,de):new FormData(B),r6(S,{pending:!0,data:mt,method:B.method,action:H},H,mt))},currentTarget:B}]})}}for(var $N=0;$N<vA.length;$N++){var BN=vA[$N],zN=BN.toLowerCase(),_K=BN[0].toUpperCase()+BN.slice(1);b0(zN,"on"+_K)}b0(QR,"onAnimationEnd"),b0(UR,"onAnimationIteration"),b0(JR,"onAnimationStart"),b0("dblclick","onDoubleClick"),b0("focusin","onFocus"),b0("focusout","onBlur"),b0(ZX,"onTransitionRun"),b0(eK,"onTransitionStart"),b0(tK,"onTransitionCancel"),b0(WR,"onTransitionEnd"),p2("onMouseEnter",["mouseout","mouseover"]),p2("onMouseLeave",["mouseout","mouseover"]),p2("onPointerEnter",["pointerout","pointerover"]),p2("onPointerLeave",["pointerout","pointerover"]),gb("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),gb("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),gb("onBeforeInput",["compositionend","keypress","textInput","paste"]),gb("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),gb("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),gb("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var b6="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(" "),DK=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(b6));function cz(w,x){x=(x&4)!==0;for(var S=0;S<w.length;S++){var D=w[S],B=D.event;D=D.listeners;e:{var H=void 0;if(x)for(var de=D.length-1;0<=de;de--){var De=D[de],mt=De.instance,qt=De.currentTarget;if(De=De.listener,mt!==H&&B.isPropagationStopped())break e;H=De,B.currentTarget=qt;try{H(B)}catch(mn){f8(mn)}B.currentTarget=null,H=mt}else for(de=0;de<D.length;de++){if(De=D[de],mt=De.instance,qt=De.currentTarget,De=De.listener,mt!==H&&B.isPropagationStopped())break e;H=De,B.currentTarget=qt;try{H(B)}catch(mn){f8(mn)}B.currentTarget=null,H=mt}}}}function so(w,x){var S=x[In];S===void 0&&(S=x[In]=new Set);var D=w+"__bubble";S.has(D)||(lz(x,w,2,!1),S.add(D))}function FN(w,x,S){var D=0;x&&(D|=4),lz(S,w,D,x)}var K8="_reactListening"+Math.random().toString(36).slice(2);function qN(w){if(!w[K8]){w[K8]=!0,K9.forEach(function(S){S!=="selectionchange"&&(DK.has(S)||FN(S,!1,w),FN(S,!0,w))});var x=w.nodeType===9?w:w.ownerDocument;x===null||x[K8]||(x[K8]=!0,FN("selectionchange",!1,x))}}function lz(w,x,S,D){switch(iY(x)){case 2:var B=vg;break;case 8:B=nY;break;default:B=Dz}S=B.bind(null,x,S,w),B=void 0,!sA||x!=="touchstart"&&x!=="touchmove"&&x!=="wheel"||(B=!0),D?B!==void 0?w.addEventListener(x,S,{capture:!0,passive:B}):w.addEventListener(x,S,!0):B!==void 0?w.addEventListener(x,S,{passive:B}):w.addEventListener(x,S,!1)}function HN(w,x,S,D,B){var H=D;if((x&1)===0&&(x&2)===0&&D!==null)e:for(;;){if(D===null)return;var de=D.tag;if(de===3||de===4){var De=D.stateNode.containerInfo;if(De===B)break;if(de===4)for(de=D.return;de!==null;){var mt=de.tag;if((mt===3||mt===4)&&de.stateNode.containerInfo===B)return;de=de.return}for(;De!==null;){if(de=Lp(De),de===null)return;if(mt=de.tag,mt===5||mt===6||mt===26||mt===27){D=H=de;continue e}De=De.parentNode}}D=D.return}kR(function(){var qt=H,mn=iA(S),On=[];e:{var en=VR.get(w);if(en!==void 0){var cn=l8,Zi=w;switch(w){case"keypress":if(o8(S)===0)break e;case"keydown":case"keyup":cn=NX;break;case"focusin":Zi="focus",cn=uA;break;case"focusout":Zi="blur",cn=uA;break;case"beforeblur":case"afterblur":cn=uA;break;case"click":if(S.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":cn=SR;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":cn=vX;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":cn=LX;break;case QR:case UR:case JR:cn=kX;break;case WR:cn=IX;break;case"scroll":case"scrollend":cn=bX;break;case"wheel":cn=$X;break;case"copy":case"cut":case"paste":cn=jX;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":cn=CR;break;case"toggle":case"beforetoggle":cn=zX}var qr=(x&4)!==0,il=!qr&&(w==="scroll"||w==="scrollend"),Nt=qr?en!==null?en+"Capture":null:en;qr=[];for(var kt=qt,Bt;kt!==null;){var hn=kt;if(Bt=hn.stateNode,hn=hn.tag,hn!==5&&hn!==26&&hn!==27||Bt===null||Nt===null||(hn=IO(kt,Nt),hn!=null&&qr.push(w6(kt,hn,Bt))),il)break;kt=kt.return}0<qr.length&&(en=new cn(en,Zi,null,S,mn),On.push({event:en,listeners:qr}))}}if((x&7)===0){e:{if(en=w==="mouseover"||w==="pointerover",cn=w==="mouseout"||w==="pointerout",en&&S!==nA&&(Zi=S.relatedTarget||S.fromElement)&&(Lp(Zi)||Zi[p0]))break e;if((cn||en)&&(en=mn.window===mn?mn:(en=mn.ownerDocument)?en.defaultView||en.parentWindow:window,cn?(Zi=S.relatedTarget||S.toElement,cn=qt,Zi=Zi?Lp(Zi):null,Zi!==null&&(il=m(Zi),qr=Zi.tag,Zi!==il||qr!==5&&qr!==27&&qr!==6)&&(Zi=null)):(cn=null,Zi=qt),cn!==Zi)){if(qr=SR,hn="onMouseLeave",Nt="onMouseEnter",kt="mouse",(w==="pointerout"||w==="pointerover")&&(qr=CR,hn="onPointerLeave",Nt="onPointerEnter",kt="pointer"),il=cn==null?en:d2(cn),Bt=Zi==null?en:d2(Zi),en=new qr(hn,kt+"leave",cn,S,mn),en.target=il,en.relatedTarget=Bt,hn=null,Lp(mn)===qt&&(qr=new qr(Nt,kt+"enter",Zi,S,mn),qr.target=Bt,qr.relatedTarget=il,hn=qr),il=hn,cn&&Zi)t:{for(qr=LK,Nt=cn,kt=Zi,Bt=0,hn=Nt;hn;hn=qr(hn))Bt++;hn=0;for(var xr=kt;xr;xr=qr(xr))hn++;for(;0<Bt-hn;)Nt=qr(Nt),Bt--;for(;0<hn-Bt;)kt=qr(kt),hn--;for(;Bt--;){if(Nt===kt||kt!==null&&Nt===kt.alternate){qr=Nt;break t}Nt=qr(Nt),kt=qr(kt)}qr=null}else qr=null;cn!==null&&uz(On,en,cn,qr,!1),Zi!==null&&il!==null&&uz(On,il,Zi,qr,!0)}}e:{if(en=qt?d2(qt):window,cn=en.nodeName&&en.nodeName.toLowerCase(),cn==="select"||cn==="input"&&en.type==="file")var Ho=PR;else if(DR(en))if(hA)Ho=XX;else{Ho=WX;var lr=JX}else cn=en.nodeName,!cn||cn.toLowerCase()!=="input"||en.type!=="checkbox"&&en.type!=="radio"?qt&&tA(qt.elementType)&&(Ho=PR):Ho=VX;if(Ho&&(Ho=Ho(w,qt))){LR(On,Ho,S,mn);break e}lr&&lr(w,en,qt),w==="focusout"&&qt&&en.type==="number"&&qt.memoizedProps.value!=null&&PO(en,"number",en.value)}switch(lr=qt?d2(qt):window,w){case"focusin":(DR(lr)||lr.contentEditable==="true")&&(y5=lr,mA=qt,GO=null);break;case"focusout":GO=mA=y5=null;break;case"mousedown":bA=!0;break;case"contextmenu":case"mouseup":case"dragend":bA=!1,HR(On,S,mn);break;case"selectionchange":if(YX)break;case"keydown":case"keyup":HR(On,S,mn)}var gs;if(fA)e:{switch(w){case"compositionstart":var Fs="onCompositionStart";break e;case"compositionend":Fs="onCompositionEnd";break e;case"compositionupdate":Fs="onCompositionUpdate";break e}Fs=void 0}else x5?NR(w,S)&&(Fs="onCompositionEnd"):w==="keydown"&&S.keyCode===229&&(Fs="onCompositionStart");Fs&&(ER&&S.locale!=="ko"&&(x5||Fs!=="onCompositionStart"?Fs==="onCompositionEnd"&&x5&&(gs=OR()):(b2=mn,oA="value"in b2?b2.value:b2.textContent,x5=!0)),lr=Y8(qt,Fs),0<lr.length&&(Fs=new TR(Fs,w,null,S,mn),On.push({event:Fs,listeners:lr}),gs?Fs.data=gs:(gs=_R(S),gs!==null&&(Fs.data=gs)))),(gs=qX?HX(w,S):GX(w,S))&&(Fs=Y8(qt,"onBeforeInput"),0<Fs.length&&(lr=new TR("onBeforeInput","beforeinput",null,S,mn),On.push({event:lr,listeners:Fs}),lr.data=gs)),oz(On,w,qt,S,mn)}cz(On,x)})}function w6(w,x,S){return{instance:w,listener:x,currentTarget:S}}function Y8(w,x){for(var S=x+"Capture",D=[];w!==null;){var B=w,H=B.stateNode;if(B=B.tag,B!==5&&B!==26&&B!==27||H===null||(B=IO(w,S),B!=null&&D.unshift(w6(w,B,H)),B=IO(w,x),B!=null&&D.push(w6(w,B,H))),w.tag===3)return D;w=w.return}return[]}function LK(w){if(w===null)return null;do w=w.return;while(w&&w.tag!==5&&w.tag!==27);return w||null}function uz(w,x,S,D,B){for(var H=x._reactName,de=[];S!==null&&S!==D;){var De=S,mt=De.alternate,qt=De.stateNode;if(De=De.tag,mt!==null&&mt===D)break;De!==5&&De!==26&&De!==27||qt===null||(mt=qt,B?(qt=IO(S,H),qt!=null&&de.unshift(w6(S,qt,mt))):B||(qt=IO(S,H),qt!=null&&de.push(w6(S,qt,mt)))),S=S.return}de.length!==0&&w.push({event:x,listeners:de})}var PK=/\r\n?/g,IK=/\u0000|\uFFFD/g;function az(w){return(typeof w=="string"?w:""+w).replace(PK,`
`).replace(IK,"")}function fz(w,x){return x=az(x),az(w)===x}function Gc(w,x,S,D,B,H){switch(S){case"children":typeof D=="string"?x==="body"||x==="textarea"&&D===""||b5(w,D):(typeof D=="number"||typeof D=="bigint")&&x!=="body"&&b5(w,""+D);break;case"className":m5(w,"class",D);break;case"tabIndex":m5(w,"tabindex",D);break;case"dir":case"role":case"viewBox":case"width":case"height":m5(w,S,D);break;case"style":xR(w,D,H);break;case"data":if(x!=="object"){m5(w,"data",D);break}case"src":case"href":if(D===""&&(x!=="a"||S!=="href")){w.removeAttribute(S);break}if(D==null||typeof D=="function"||typeof D=="symbol"||typeof D=="boolean"){w.removeAttribute(S);break}D=r8(""+D),w.setAttribute(S,D);break;case"action":case"formAction":if(typeof D=="function"){w.setAttribute(S,"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"&&(S==="formAction"?(x!=="input"&&Gc(w,x,"name",B.name,B,null),Gc(w,x,"formEncType",B.formEncType,B,null),Gc(w,x,"formMethod",B.formMethod,B,null),Gc(w,x,"formTarget",B.formTarget,B,null)):(Gc(w,x,"encType",B.encType,B,null),Gc(w,x,"method",B.method,B,null),Gc(w,x,"target",B.target,B,null)));if(D==null||typeof D=="symbol"||typeof D=="boolean"){w.removeAttribute(S);break}D=r8(""+D),w.setAttribute(S,D);break;case"onClick":D!=null&&(w.onclick=mb);break;case"onScroll":D!=null&&so("scroll",w);break;case"onScrollEnd":D!=null&&so("scrollend",w);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(h(61));if(S=D.__html,S!=null){if(B.children!=null)throw Error(h(60));w.innerHTML=S}}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}S=r8(""+D),w.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",S);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(S,""+D):w.removeAttribute(S);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(S,""):w.removeAttribute(S);break;case"capture":case"download":D===!0?w.setAttribute(S,""):D!==!1&&D!=null&&typeof D!="function"&&typeof D!="symbol"?w.setAttribute(S,D):w.removeAttribute(S);break;case"cols":case"rows":case"size":case"span":D!=null&&typeof D!="function"&&typeof D!="symbol"&&!isNaN(D)&&1<=D?w.setAttribute(S,D):w.removeAttribute(S);break;case"rowSpan":case"start":D==null||typeof D=="function"||typeof D=="symbol"||isNaN(D)?w.removeAttribute(S):w.setAttribute(S,D);break;case"popover":so("beforetoggle",w),so("toggle",w),Qx(w,"popover",D);break;case"xlinkActuate":m0(w,"http://www.w3.org/1999/xlink","xlink:actuate",D);break;case"xlinkArcrole":m0(w,"http://www.w3.org/1999/xlink","xlink:arcrole",D);break;case"xlinkRole":m0(w,"http://www.w3.org/1999/xlink","xlink:role",D);break;case"xlinkShow":m0(w,"http://www.w3.org/1999/xlink","xlink:show",D);break;case"xlinkTitle":m0(w,"http://www.w3.org/1999/xlink","xlink:title",D);break;case"xlinkType":m0(w,"http://www.w3.org/1999/xlink","xlink:type",D);break;case"xmlBase":m0(w,"http://www.w3.org/XML/1998/namespace","xml:base",D);break;case"xmlLang":m0(w,"http://www.w3.org/XML/1998/namespace","xml:lang",D);break;case"xmlSpace":m0(w,"http://www.w3.org/XML/1998/namespace","xml:space",D);break;case"is":Qx(w,"is",D);break;case"innerText":case"textContent":break;default:(!(2<S.length)||S[0]!=="o"&&S[0]!=="O"||S[1]!=="n"&&S[1]!=="N")&&(S=pX.get(S)||S,Qx(w,S,D))}}function GN(w,x,S,D,B,H){switch(S){case"style":xR(w,D,H);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(h(61));if(S=D.__html,S!=null){if(B.children!=null)throw Error(h(60));w.innerHTML=S}}break;case"children":typeof D=="string"?b5(w,D):(typeof D=="number"||typeof D=="bigint")&&b5(w,""+D);break;case"onScroll":D!=null&&so("scroll",w);break;case"onScrollEnd":D!=null&&so("scrollend",w);break;case"onClick":D!=null&&(w.onclick=mb);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Y9.hasOwnProperty(S))e:{if(S[0]==="o"&&S[1]==="n"&&(B=S.endsWith("Capture"),x=S.slice(2,B?S.length-7:void 0),H=w[lf]||null,H=H!=null?H[S]:null,typeof H=="function"&&w.removeEventListener(x,H,B),typeof D=="function")){typeof H!="function"&&H!==null&&(S in w?w[S]=null:w.hasAttribute(S)&&w.removeAttribute(S)),w.addEventListener(x,D,B);break e}S in w?w[S]=D:D===!0?w.setAttribute(S,""):Qx(w,S,D)}}}function Uf(w,x,S){switch(x){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":so("error",w),so("load",w);var D=!1,B=!1,H;for(H in S)if(S.hasOwnProperty(H)){var de=S[H];if(de!=null)switch(H){case"src":D=!0;break;case"srcSet":B=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(h(137,x));default:Gc(w,x,H,de,S,null)}}B&&Gc(w,x,"srcSet",S.srcSet,S,null),D&&Gc(w,x,"src",S.src,S,null);return;case"input":so("invalid",w);var De=H=de=B=null,mt=null,qt=null;for(D in S)if(S.hasOwnProperty(D)){var mn=S[D];if(mn!=null)switch(D){case"name":B=mn;break;case"type":de=mn;break;case"checked":mt=mn;break;case"defaultChecked":qt=mn;break;case"value":H=mn;break;case"defaultValue":De=mn;break;case"children":case"dangerouslySetInnerHTML":if(mn!=null)throw Error(h(137,x));break;default:Gc(w,x,D,mn,S,null)}}i8(w,H,De,mt,qt,de,B,!1);return;case"select":so("invalid",w),D=de=H=null;for(B in S)if(S.hasOwnProperty(B)&&(De=S[B],De!=null))switch(B){case"value":H=De;break;case"defaultValue":de=De;break;case"multiple":D=De;default:Gc(w,x,B,De,S,null)}x=H,S=de,w.multiple=!!D,x!=null?pb(w,!!D,x,!1):S!=null&&pb(w,!!D,S,!0);return;case"textarea":so("invalid",w),H=B=D=null;for(de in S)if(S.hasOwnProperty(de)&&(De=S[de],De!=null))switch(de){case"value":D=De;break;case"defaultValue":B=De;break;case"children":H=De;break;case"dangerouslySetInnerHTML":if(De!=null)throw Error(h(91));break;default:Gc(w,x,de,De,S,null)}wR(w,D,B,H);return;case"option":for(mt in S)if(S.hasOwnProperty(mt)&&(D=S[mt],D!=null))switch(mt){case"selected":w.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:Gc(w,x,mt,D,S,null)}return;case"dialog":so("beforetoggle",w),so("toggle",w),so("cancel",w),so("close",w);break;case"iframe":case"object":so("load",w);break;case"video":case"audio":for(D=0;D<b6.length;D++)so(b6[D],w);break;case"image":so("error",w),so("load",w);break;case"details":so("toggle",w);break;case"embed":case"source":case"link":so("error",w),so("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(qt in S)if(S.hasOwnProperty(qt)&&(D=S[qt],D!=null))switch(qt){case"children":case"dangerouslySetInnerHTML":throw Error(h(137,x));default:Gc(w,x,qt,D,S,null)}return;default:if(tA(x)){for(mn in S)S.hasOwnProperty(mn)&&(D=S[mn],D!==void 0&&GN(w,x,mn,D,S,void 0));return}}for(De in S)S.hasOwnProperty(De)&&(D=S[De],D!=null&&Gc(w,x,De,D,S,null))}function RK(w,x,S,D){switch(x){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var B=null,H=null,de=null,De=null,mt=null,qt=null,mn=null;for(cn in S){var On=S[cn];if(S.hasOwnProperty(cn)&&On!=null)switch(cn){case"checked":break;case"value":break;case"defaultValue":mt=On;default:D.hasOwnProperty(cn)||Gc(w,x,cn,null,D,On)}}for(var en in D){var cn=D[en];if(On=S[en],D.hasOwnProperty(en)&&(cn!=null||On!=null))switch(en){case"type":H=cn;break;case"name":B=cn;break;case"checked":qt=cn;break;case"defaultChecked":mn=cn;break;case"value":de=cn;break;case"defaultValue":De=cn;break;case"children":case"dangerouslySetInnerHTML":if(cn!=null)throw Error(h(137,x));break;default:cn!==On&&Gc(w,x,en,cn,D,On)}}Jx(w,de,De,mt,qt,mn,H,B);return;case"select":cn=de=De=en=null;for(H in S)if(mt=S[H],S.hasOwnProperty(H)&&mt!=null)switch(H){case"value":break;case"multiple":cn=mt;default:D.hasOwnProperty(H)||Gc(w,x,H,null,D,mt)}for(B in D)if(H=D[B],mt=S[B],D.hasOwnProperty(B)&&(H!=null||mt!=null))switch(B){case"value":en=H;break;case"defaultValue":De=H;break;case"multiple":de=H;default:H!==mt&&Gc(w,x,B,H,D,mt)}x=De,S=de,D=cn,en!=null?pb(w,!!S,en,!1):!!D!=!!S&&(x!=null?pb(w,!!S,x,!0):pb(w,!!S,S?[]:"",!1));return;case"textarea":cn=en=null;for(De in S)if(B=S[De],S.hasOwnProperty(De)&&B!=null&&!D.hasOwnProperty(De))switch(De){case"value":break;case"children":break;default:Gc(w,x,De,null,D,B)}for(de in D)if(B=D[de],H=S[de],D.hasOwnProperty(de)&&(B!=null||H!=null))switch(de){case"value":en=B;break;case"defaultValue":cn=B;break;case"children":break;case"dangerouslySetInnerHTML":if(B!=null)throw Error(h(91));break;default:B!==H&&Gc(w,x,de,B,D,H)}bR(w,en,cn);return;case"option":for(var Zi in S)if(en=S[Zi],S.hasOwnProperty(Zi)&&en!=null&&!D.hasOwnProperty(Zi))switch(Zi){case"selected":w.selected=!1;break;default:Gc(w,x,Zi,null,D,en)}for(mt in D)if(en=D[mt],cn=S[mt],D.hasOwnProperty(mt)&&en!==cn&&(en!=null||cn!=null))switch(mt){case"selected":w.selected=en&&typeof en!="function"&&typeof en!="symbol";break;default:Gc(w,x,mt,en,D,cn)}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 qr in S)en=S[qr],S.hasOwnProperty(qr)&&en!=null&&!D.hasOwnProperty(qr)&&Gc(w,x,qr,null,D,en);for(qt in D)if(en=D[qt],cn=S[qt],D.hasOwnProperty(qt)&&en!==cn&&(en!=null||cn!=null))switch(qt){case"children":case"dangerouslySetInnerHTML":if(en!=null)throw Error(h(137,x));break;default:Gc(w,x,qt,en,D,cn)}return;default:if(tA(x)){for(var il in S)en=S[il],S.hasOwnProperty(il)&&en!==void 0&&!D.hasOwnProperty(il)&&GN(w,x,il,void 0,D,en);for(mn in D)en=D[mn],cn=S[mn],!D.hasOwnProperty(mn)||en===cn||en===void 0&&cn===void 0||GN(w,x,mn,en,D,cn);return}}for(var Nt in S)en=S[Nt],S.hasOwnProperty(Nt)&&en!=null&&!D.hasOwnProperty(Nt)&&Gc(w,x,Nt,null,D,en);for(On in D)en=D[On],cn=S[On],!D.hasOwnProperty(On)||en===cn||en==null&&cn==null||Gc(w,x,On,en,D,cn)}function hz(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,x=0,S=performance.getEntriesByType("resource"),D=0;D<S.length;D++){var B=S[D],H=B.transferSize,de=B.initiatorType,De=B.duration;if(H&&De&&hz(de)){for(de=0,De=B.responseEnd,D+=1;D<S.length;D++){var mt=S[D],qt=mt.startTime;if(qt>De)break;var mn=mt.transferSize,On=mt.initiatorType;mn&&hz(On)&&(mt=mt.responseEnd,de+=mn*(mt<De?1:(De-qt)/(mt-qt)))}if(--D,x+=8*(H+de)/(B.duration/1e3),w++,10<w)break}}if(0<w)return x/w/1e6}return navigator.connection&&(w=navigator.connection.downlink,typeof w=="number")?w:5}var QN=null,UN=null;function Z8(w){return w.nodeType===9?w:w.ownerDocument}function dz(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 gz(w,x){if(w===0)switch(x){case"svg":return 1;case"math":return 2;default:return 0}return w===1&&x==="foreignObject"?0:w}function JN(w,x){return w==="textarea"||w==="noscript"||typeof x.children=="string"||typeof x.children=="number"||typeof x.children=="bigint"||typeof x.dangerouslySetInnerHTML=="object"&&x.dangerouslySetInnerHTML!==null&&x.dangerouslySetInnerHTML.__html!=null}var WN=null;function BK(){var w=window.event;return w&&w.type==="popstate"?w===WN?!1:(WN=w,!0):(WN=null,!1)}var pz=typeof setTimeout=="function"?setTimeout:void 0,zK=typeof clearTimeout=="function"?clearTimeout:void 0,mz=typeof Promise=="function"?Promise:void 0,FK=typeof queueMicrotask=="function"?queueMicrotask:typeof mz<"u"?function(w){return mz.resolve(null).then(w).catch(qK)}:pz;function qK(w){setTimeout(function(){throw w})}function R2(w){return w==="head"}function bz(w,x){var S=x,D=0;do{var B=S.nextSibling;if(w.removeChild(S),B&&B.nodeType===8)if(S=B.data,S==="/$"||S==="/&"){if(D===0){w.removeChild(B),fy(x);return}D--}else if(S==="$"||S==="$?"||S==="$~"||S==="$!"||S==="&")D++;else if(S==="html")W5(w.ownerDocument.documentElement);else if(S==="head"){S=w.ownerDocument.head,W5(S);for(var H=S.firstChild;H;){var de=H.nextSibling,De=H.nodeName;H[db]||De==="SCRIPT"||De==="STYLE"||De==="LINK"&&H.rel.toLowerCase()==="stylesheet"||S.removeChild(H),H=de}}else S==="body"&&W5(w.ownerDocument.body);S=B}while(S);fy(x)}function wz(w,x){var S=w;w=0;do{var D=S.nextSibling;if(S.nodeType===1?x?(S._stashedDisplay=S.style.display,S.style.display="none"):(S.style.display=S._stashedDisplay||"",S.getAttribute("style")===""&&S.removeAttribute("style")):S.nodeType===3&&(x?(S._stashedText=S.nodeValue,S.nodeValue=""):S.nodeValue=S._stashedText||""),D&&D.nodeType===8)if(S=D.data,S==="/$"){if(w===0)break;w--}else S!=="$"&&S!=="$?"&&S!=="$~"&&S!=="$!"||w++;S=D}while(S)}function VN(w){var x=w.firstChild;for(x&&x.nodeType===10&&(x=x.nextSibling);x;){var S=x;switch(x=x.nextSibling,S.nodeName){case"HTML":case"HEAD":case"BODY":VN(S),DO(S);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(S.rel.toLowerCase()==="stylesheet")continue}w.removeChild(S)}}function HK(w,x,S,D){for(;w.nodeType===1;){var B=S;if(w.nodeName.toLowerCase()!==x.toLowerCase()){if(!D&&(w.nodeName!=="INPUT"||w.type!=="hidden"))break}else if(D){if(!w[db])switch(x){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(x==="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=wg(w.nextSibling),w===null)break}return null}function GK(w,x,S){if(x==="")return null;for(;w.nodeType!==3;)if((w.nodeType!==1||w.nodeName!=="INPUT"||w.type!=="hidden")&&!S||(w=wg(w.nextSibling),w===null))return null;return w}function vz(w,x){for(;w.nodeType!==8;)if((w.nodeType!==1||w.nodeName!=="INPUT"||w.type!=="hidden")&&!x||(w=wg(w.nextSibling),w===null))return null;return w}function XN(w){return w.data==="$?"||w.data==="$~"}function KN(w){return w.data==="$!"||w.data==="$?"&&w.ownerDocument.readyState!=="loading"}function QK(w,x){var S=w.ownerDocument;if(w.data==="$~")w._reactRetry=x;else if(w.data!=="$?"||S.readyState!=="loading")x();else{var D=function(){x(),S.removeEventListener("DOMContentLoaded",D)};S.addEventListener("DOMContentLoaded",D),w._reactRetry=D}}function wg(w){for(;w!=null;w=w.nextSibling){var x=w.nodeType;if(x===1||x===3)break;if(x===8){if(x=w.data,x==="$"||x==="$!"||x==="$?"||x==="$~"||x==="&"||x==="F!"||x==="F")break;if(x==="/$"||x==="/&")return null}}return w}var YN=null;function ZN(w){w=w.nextSibling;for(var x=0;w;){if(w.nodeType===8){var S=w.data;if(S==="/$"||S==="/&"){if(x===0)return wg(w.nextSibling);x--}else S!=="$"&&S!=="$!"&&S!=="$?"&&S!=="$~"&&S!=="&"||x++}w=w.nextSibling}return null}function xz(w){w=w.previousSibling;for(var x=0;w;){if(w.nodeType===8){var S=w.data;if(S==="$"||S==="$!"||S==="$?"||S==="$~"||S==="&"){if(x===0)return w;x--}else S!=="/$"&&S!=="/&"||x++}w=w.previousSibling}return null}function yz(w,x,S){switch(x=Z8(S),w){case"html":if(w=x.documentElement,!w)throw Error(h(452));return w;case"head":if(w=x.head,!w)throw Error(h(453));return w;case"body":if(w=x.body,!w)throw Error(h(454));return w;default:throw Error(h(451))}}function W5(w){for(var x=w.attributes;x.length;)w.removeAttributeNode(x[0]);DO(w)}var v1=new Map,aa=new Set;function eT(w){return typeof w.getRootNode=="function"?w.getRootNode():w.nodeType===9?w:w.ownerDocument}var qp=ve.d;ve.d={f:UK,r:tT,D:JK,C:Oz,L:jz,m:WK,X:VK,S:e_,M:XK};function UK(){var w=qp.f(),x=Q8();return w||x}function tT(w){var x=h2(w);x!==null&&x.tag===5&&x.type==="form"?N8(x):qp.r(w)}var V5=typeof document>"u"?null:document;function kz(w,x,S){var D=V5;if(D&&typeof x=="string"&&x){var B=Ed(x);B='link[rel="'+w+'"][href="'+B+'"]',typeof S=="string"&&(B+='[crossorigin="'+S+'"]'),aa.has(B)||(aa.add(B),w={rel:w,crossOrigin:S,href:x},D.querySelector(B)===null&&(x=D.createElement("link"),Uf(x,"link",w),oa(x),D.head.appendChild(x)))}}function JK(w){qp.D(w),kz("dns-prefetch",w,null)}function Oz(w,x){qp.C(w,x),kz("preconnect",w,x)}function jz(w,x,S){qp.L(w,x,S);var D=V5;if(D&&w&&x){var B='link[rel="preload"][as="'+Ed(x)+'"]';x==="image"&&S&&S.imageSrcSet?(B+='[imagesrcset="'+Ed(S.imageSrcSet)+'"]',typeof S.imageSizes=="string"&&(B+='[imagesizes="'+Ed(S.imageSizes)+'"]')):B+='[href="'+Ed(w)+'"]';var H=B;switch(x){case"style":H=X5(w);break;case"script":H=K5(w)}v1.has(H)||(w=_({rel:"preload",href:x==="image"&&S&&S.imageSrcSet?void 0:w,as:x},S),v1.set(H,w),D.querySelector(B)!==null||x==="style"&&D.querySelector(v6(H))||x==="script"&&D.querySelector(x6(H))||(x=D.createElement("link"),Uf(x,"link",w),oa(x),D.head.appendChild(x)))}}function WK(w,x){qp.m(w,x);var S=V5;if(S&&w){var D=x&&typeof x.as=="string"?x.as:"script",B='link[rel="modulepreload"][as="'+Ed(D)+'"][href="'+Ed(w)+'"]',H=B;switch(D){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":H=K5(w)}if(!v1.has(H)&&(w=_({rel:"modulepreload",href:w},x),v1.set(H,w),S.querySelector(B)===null)){switch(D){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(S.querySelector(x6(H)))return}D=S.createElement("link"),Uf(D,"link",w),oa(D),S.head.appendChild(D)}}}function e_(w,x,S){qp.S(w,x,S);var D=V5;if(D&&w){var B=g2(D).hoistableStyles,H=X5(w);x=x||"default";var de=B.get(H);if(!de){var De={loading:0,preload:null};if(de=D.querySelector(v6(H)))De.loading=5;else{w=_({rel:"stylesheet",href:w,"data-precedence":x},S),(S=v1.get(H))&&n_(w,S);var mt=de=D.createElement("link");oa(mt),Uf(mt,"link",w),mt._p=new Promise(function(qt,mn){mt.onload=qt,mt.onerror=mn}),mt.addEventListener("load",function(){De.loading|=1}),mt.addEventListener("error",function(){De.loading|=2}),De.loading|=4,Y5(de,x,D)}de={type:"stylesheet",instance:de,count:1,state:De},B.set(H,de)}}}function VK(w,x){qp.X(w,x);var S=V5;if(S&&w){var D=g2(S).hoistableScripts,B=K5(w),H=D.get(B);H||(H=S.querySelector(x6(B)),H||(w=_({src:w,async:!0},x),(x=v1.get(B))&&i_(w,x),H=S.createElement("script"),oa(H),Uf(H,"link",w),S.head.appendChild(H)),H={type:"script",instance:H,count:1,state:null},D.set(B,H))}}function XK(w,x){qp.M(w,x);var S=V5;if(S&&w){var D=g2(S).hoistableScripts,B=K5(w),H=D.get(B);H||(H=S.querySelector(x6(B)),H||(w=_({src:w,async:!0,type:"module"},x),(x=v1.get(B))&&i_(w,x),H=S.createElement("script"),oa(H),Uf(H,"link",w),S.head.appendChild(H)),H={type:"script",instance:H,count:1,state:null},D.set(B,H))}}function Sz(w,x,S,D){var B=(B=_t.current)?eT(B):null;if(!B)throw Error(h(446));switch(w){case"meta":case"title":return null;case"style":return typeof S.precedence=="string"&&typeof S.href=="string"?(x=X5(S.href),S=g2(B).hoistableStyles,D=S.get(x),D||(D={type:"style",instance:null,count:0,state:null},S.set(x,D)),D):{type:"void",instance:null,count:0,state:null};case"link":if(S.rel==="stylesheet"&&typeof S.href=="string"&&typeof S.precedence=="string"){w=X5(S.href);var H=g2(B).hoistableStyles,de=H.get(w);if(de||(B=B.ownerDocument||B,de={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},H.set(w,de),(H=B.querySelector(v6(w)))&&!H._p&&(de.instance=H,de.state.loading=5),v1.has(w)||(S={rel:"preload",as:"style",href:S.href,crossOrigin:S.crossOrigin,integrity:S.integrity,media:S.media,hrefLang:S.hrefLang,referrerPolicy:S.referrerPolicy},v1.set(w,S),H||t_(B,w,S,de.state))),x&&D===null)throw Error(h(528,""));return de}if(x&&D!==null)throw Error(h(529,""));return null;case"script":return x=S.async,S=S.src,typeof S=="string"&&x&&typeof x!="function"&&typeof x!="symbol"?(x=K5(S),S=g2(B).hoistableScripts,D=S.get(x),D||(D={type:"script",instance:null,count:0,state:null},S.set(x,D)),D):{type:"void",instance:null,count:0,state:null};default:throw Error(h(444,w))}}function X5(w){return'href="'+Ed(w)+'"'}function v6(w){return'link[rel="stylesheet"]['+w+"]"}function Tz(w){return _({},w,{"data-precedence":w.precedence,precedence:null})}function t_(w,x,S,D){w.querySelector('link[rel="preload"][as="style"]['+x+"]")?D.loading=1:(x=w.createElement("link"),D.preload=x,x.addEventListener("load",function(){return D.loading|=1}),x.addEventListener("error",function(){return D.loading|=2}),Uf(x,"link",S),oa(x),w.head.appendChild(x))}function K5(w){return'[src="'+Ed(w)+'"]'}function x6(w){return"script[async]"+w}function Cz(w,x,S){if(x.count++,x.instance===null)switch(x.type){case"style":var D=w.querySelector('style[data-href~="'+Ed(S.href)+'"]');if(D)return x.instance=D,oa(D),D;var B=_({},S,{"data-href":S.href,"data-precedence":S.precedence,href:null,precedence:null});return D=(w.ownerDocument||w).createElement("style"),oa(D),Uf(D,"style",B),Y5(D,S.precedence,w),x.instance=D;case"stylesheet":B=X5(S.href);var H=w.querySelector(v6(B));if(H)return x.state.loading|=4,x.instance=H,oa(H),H;D=Tz(S),(B=v1.get(B))&&n_(D,B),H=(w.ownerDocument||w).createElement("link"),oa(H);var de=H;return de._p=new Promise(function(De,mt){de.onload=De,de.onerror=mt}),Uf(H,"link",D),x.state.loading|=4,Y5(H,S.precedence,w),x.instance=H;case"script":return H=K5(S.src),(B=w.querySelector(x6(H)))?(x.instance=B,oa(B),B):(D=S,(B=v1.get(H))&&(D=_({},S),i_(D,B)),w=w.ownerDocument||w,B=w.createElement("script"),oa(B),Uf(B,"link",D),w.head.appendChild(B),x.instance=B);case"void":return null;default:throw Error(h(443,x.type))}else x.type==="stylesheet"&&(x.state.loading&4)===0&&(D=x.instance,x.state.loading|=4,Y5(D,S.precedence,w));return x.instance}function Y5(w,x,S){for(var D=S.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),B=D.length?D[D.length-1]:null,H=B,de=0;de<D.length;de++){var De=D[de];if(De.dataset.precedence===x)H=De;else if(H!==B)break}H?H.parentNode.insertBefore(w,H.nextSibling):(x=S.nodeType===9?S.head:S,x.insertBefore(w,x.firstChild))}function n_(w,x){w.crossOrigin==null&&(w.crossOrigin=x.crossOrigin),w.referrerPolicy==null&&(w.referrerPolicy=x.referrerPolicy),w.title==null&&(w.title=x.title)}function i_(w,x){w.crossOrigin==null&&(w.crossOrigin=x.crossOrigin),w.referrerPolicy==null&&(w.referrerPolicy=x.referrerPolicy),w.integrity==null&&(w.integrity=x.integrity)}var Z5=null;function Ez(w,x,S){if(Z5===null){var D=new Map,B=Z5=new Map;B.set(S,D)}else B=Z5,D=B.get(S),D||(D=new Map,B.set(S,D));if(D.has(w))return D;for(D.set(w,null),S=S.getElementsByTagName(w),B=0;B<S.length;B++){var H=S[B];if(!(H[db]||H[_u]||w==="link"&&H.getAttribute("rel")==="stylesheet")&&H.namespaceURI!=="http://www.w3.org/2000/svg"){var de=H.getAttribute(x)||"";de=w+de;var De=D.get(de);De?De.push(H):D.set(de,[H])}}return D}function nT(w,x,S){w=w.ownerDocument||w,w.head.insertBefore(S,x==="title"?w.querySelector("head > title"):null)}function KK(w,x,S){if(S===1||x.itemProp!=null)return!1;switch(w){case"meta":case"title":return!0;case"style":if(typeof x.precedence!="string"||typeof x.href!="string"||x.href==="")break;return!0;case"link":if(typeof x.rel!="string"||typeof x.href!="string"||x.href===""||x.onLoad||x.onError)break;switch(x.rel){case"stylesheet":return w=x.disabled,typeof x.precedence=="string"&&w==null;default:return!0}case"script":if(x.async&&typeof x.async!="function"&&typeof x.async!="symbol"&&!x.onLoad&&!x.onError&&x.src&&typeof x.src=="string")return!0}return!1}function Mz(w){return!(w.type==="stylesheet"&&(w.state.loading&3)===0)}function YK(w,x,S,D){if(S.type==="stylesheet"&&(typeof D.media!="string"||matchMedia(D.media).matches!==!1)&&(S.state.loading&4)===0){if(S.instance===null){var B=X5(D.href),H=x.querySelector(v6(B));if(H){x=H._p,x!==null&&typeof x=="object"&&typeof x.then=="function"&&(w.count++,w=iT.bind(w),x.then(w,w)),S.state.loading|=4,S.instance=H,oa(H);return}H=x.ownerDocument||x,D=Tz(D),(B=v1.get(B))&&n_(D,B),H=H.createElement("link"),oa(H);var de=H;de._p=new Promise(function(De,mt){de.onload=De,de.onerror=mt}),Uf(H,"link",D),S.instance=H}w.stylesheets===null&&(w.stylesheets=new Map),w.stylesheets.set(S,x),(x=S.state.preload)&&(S.state.loading&3)===0&&(w.count++,S=iT.bind(w),x.addEventListener("load",S),x.addEventListener("error",S))}}var r_=0;function ZK(w,x){return w.stylesheets&&w.count===0&&sT(w,w.stylesheets),0<w.count||0<w.imgCount?function(S){var D=setTimeout(function(){if(w.stylesheets&&sT(w,w.stylesheets),w.unsuspend){var H=w.unsuspend;w.unsuspend=null,H()}},6e4+x);0<w.imgBytes&&r_===0&&(r_=62500*$K());var B=setTimeout(function(){if(w.waitingForImages=!1,w.count===0&&(w.stylesheets&&sT(w,w.stylesheets),w.unsuspend)){var H=w.unsuspend;w.unsuspend=null,H()}},(w.imgBytes>r_?50:800)+x);return w.unsuspend=S,function(){w.unsuspend=null,clearTimeout(D),clearTimeout(B)}}:null}function iT(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)sT(this,this.stylesheets);else if(this.unsuspend){var w=this.unsuspend;this.unsuspend=null,w()}}}var rT=null;function sT(w,x){w.stylesheets=null,w.unsuspend!==null&&(w.count++,rT=new Map,x.forEach(eY,w),rT=null,iT.call(w))}function eY(w,x){if(!(x.state.loading&4)){var S=rT.get(w);if(S)var D=S.get(null);else{S=new Map,rT.set(w,S);for(var B=w.querySelectorAll("link[data-precedence],style[data-precedence]"),H=0;H<B.length;H++){var de=B[H];(de.nodeName==="LINK"||de.getAttribute("media")!=="not all")&&(S.set(de.dataset.precedence,de),D=de)}D&&S.set(null,D)}B=x.instance,de=B.getAttribute("data-precedence"),H=S.get(de)||D,H===D&&S.set(null,B),S.set(de,B),this.count++,D=iT.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)),x.state.loading|=4}}var y6={$$typeof:V,Provider:null,Consumer:null,_currentValue:xe,_currentValue2:xe,_threadCount:0};function tY(w,x,S,D,B,H,de,De,mt){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=f2(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=f2(0),this.hiddenUpdates=f2(null),this.identifierPrefix=D,this.onUncaughtError=B,this.onCaughtError=H,this.onRecoverableError=de,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=mt,this.incompleteTransitions=new Map}function Az(w,x,S,D,B,H,de,De,mt,qt,mn,On){return w=new tY(w,x,S,de,mt,qt,mn,On,De),x=1,H===!0&&(x|=24),H=h1(3,null,null,x),w.current=H,H.stateNode=w,x=_A(),x.refCount++,w.pooledCache=x,x.refCount++,H.memoizedState={element:D,isDehydrated:S,cache:x},RA(H),w}function Nz(w){return w?(w=j5,w):j5}function _z(w,x,S,D,B,H){B=Nz(B),D.context===null?D.context=B:D.pendingContext=B,D=S2(x),D.payload={element:S},H=H===void 0?null:H,H!==null&&(D.callback=H),S=T2(w,D,x),S!==null&&(Dd(S,w,x),ZO(S,w,x))}function s_(w,x){if(w=w.memoizedState,w!==null&&w.dehydrated!==null){var S=w.retryLane;w.retryLane=S!==0&&S<x?S:x}}function oT(w,x){s_(w,x),(w=w.alternate)&&s_(w,x)}function k6(w){if(w.tag===13||w.tag===31){var x=Kx(w,67108864);x!==null&&Dd(x,w,67108864),oT(w,67108864)}}function e4(w){if(w.tag===13||w.tag===31){var x=w1();x=hb(x);var S=Kx(w,x);S!==null&&Dd(S,w,x),oT(w,x)}}var O6=!0;function vg(w,x,S,D){var B=ue.T;ue.T=null;var H=ve.p;try{ve.p=2,Dz(w,x,S,D)}finally{ve.p=H,ue.T=B}}function nY(w,x,S,D){var B=ue.T;ue.T=null;var H=ve.p;try{ve.p=8,Dz(w,x,S,D)}finally{ve.p=H,ue.T=B}}function Dz(w,x,S,D){if(O6){var B=Lz(D);if(B===null)HN(w,x,D,o_,S),rY(w,D);else if(c_(B,w,x,S,D))D.stopPropagation();else if(rY(w,D),x&4&&-1<Vde.indexOf(w)){for(;B!==null;){var H=h2(B);if(H!==null)switch(H.tag){case 3:if(H=H.stateNode,H.current.memoizedState.isDehydrated){var de=ug(H.pendingLanes);if(de!==0){var De=H;for(De.pendingLanes|=2,De.entangledLanes|=2;de;){var mt=1<<31-cf(de);De.entanglements[1]|=mt,de&=~mt}Fp(H),(cc&6)===0&&(H8=sa()+500,m6(0))}}break;case 31:case 13:De=Kx(H,2),De!==null&&Dd(De,H,2),Q8(),oT(H,2)}if(H=Lz(D),H===null&&HN(w,x,D,o_,S),H===B)break;B=H}B!==null&&D.stopPropagation()}else HN(w,x,D,null,S)}}function Lz(w){return w=iA(w),Pz(w)}var o_=null;function Pz(w){if(o_=null,w=Lp(w),w!==null){var x=m(w);if(x===null)w=null;else{var S=x.tag;if(S===13){if(w=p(x),w!==null)return w;w=null}else if(S===31){if(w=O(x),w!==null)return w;w=null}else if(S===3){if(x.stateNode.current.memoizedState.isDehydrated)return x.tag===3?x.stateNode.containerInfo:null;w=null}else x!==w&&(w=null)}}return o_=w,null}function iY(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(_p()){case Wh:return 2;case d0:return 8;case Dp:case EO:return 32;case c2:return 268435456;default:return 32}default:return 32}}var Iz=!1,mu=null,Mb=null,uy=null,t4=new Map,n4=new Map,ay=[],Vde="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 rY(w,x){switch(w){case"focusin":case"focusout":mu=null;break;case"dragenter":case"dragleave":Mb=null;break;case"mouseover":case"mouseout":uy=null;break;case"pointerover":case"pointerout":t4.delete(x.pointerId);break;case"gotpointercapture":case"lostpointercapture":n4.delete(x.pointerId)}}function cT(w,x,S,D,B,H){return w===null||w.nativeEvent!==H?(w={blockedOn:x,domEventName:S,eventSystemFlags:D,nativeEvent:H,targetContainers:[B]},x!==null&&(x=h2(x),x!==null&&k6(x)),w):(w.eventSystemFlags|=D,x=w.targetContainers,B!==null&&x.indexOf(B)===-1&&x.push(B),w)}function c_(w,x,S,D,B){switch(x){case"focusin":return mu=cT(mu,w,x,S,D,B),!0;case"dragenter":return Mb=cT(Mb,w,x,S,D,B),!0;case"mouseover":return uy=cT(uy,w,x,S,D,B),!0;case"pointerover":var H=B.pointerId;return t4.set(H,cT(t4.get(H)||null,w,x,S,D,B)),!0;case"gotpointercapture":return H=B.pointerId,n4.set(H,cT(n4.get(H)||null,w,x,S,D,B)),!0}return!1}function j6(w){var x=Lp(w.target);if(x!==null){var S=m(x);if(S!==null){if(x=S.tag,x===13){if(x=p(S),x!==null){w.blockedOn=x,Gx(w.priority,function(){e4(S)});return}}else if(x===31){if(x=O(S),x!==null){w.blockedOn=x,Gx(w.priority,function(){e4(S)});return}}else if(x===3&&S.stateNode.current.memoizedState.isDehydrated){w.blockedOn=S.tag===3?S.stateNode.containerInfo:null;return}}}w.blockedOn=null}function S6(w){if(w.blockedOn!==null)return!1;for(var x=w.targetContainers;0<x.length;){var S=Lz(w.nativeEvent);if(S===null){S=w.nativeEvent;var D=new S.constructor(S.type,S);nA=D,S.target.dispatchEvent(D),nA=null}else return x=h2(S),x!==null&&k6(x),w.blockedOn=S,!1;x.shift()}return!0}function sY(w,x,S){S6(w)&&S.delete(x)}function Xde(){Iz=!1,mu!==null&&S6(mu)&&(mu=null),Mb!==null&&S6(Mb)&&(Mb=null),uy!==null&&S6(uy)&&(uy=null),t4.forEach(sY),n4.forEach(sY)}function l_(w,x){w.blockedOn===x&&(w.blockedOn=null,Iz||(Iz=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Xde)))}var lT=null;function oY(w){lT!==w&&(lT=w,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){lT===w&&(lT=null);for(var x=0;x<w.length;x+=3){var S=w[x],D=w[x+1],B=w[x+2];if(typeof D!="function"){if(Pz(D||S)===null)continue;break}var H=h2(S);H!==null&&(w.splice(x,3),x-=3,r6(H,{pending:!0,data:B,method:S.method,action:D},D,B))}}))}function fy(w){function x(mt){return l_(mt,w)}mu!==null&&l_(mu,w),Mb!==null&&l_(Mb,w),uy!==null&&l_(uy,w),t4.forEach(x),n4.forEach(x);for(var S=0;S<ay.length;S++){var D=ay[S];D.blockedOn===w&&(D.blockedOn=null)}for(;0<ay.length&&(S=ay[0],S.blockedOn===null);)j6(S),S.blockedOn===null&&ay.shift();if(S=(w.ownerDocument||w).$$reactFormReplay,S!=null)for(D=0;D<S.length;D+=3){var B=S[D],H=S[D+1],de=B[lf]||null;if(typeof H=="function")de||oY(S);else if(de){var De=null;if(H&&H.hasAttribute("formAction")){if(B=H,de=H[lf]||null)De=de.formAction;else if(Pz(B)!==null)continue}else De=de.action;typeof De=="function"?S[D+1]=De:(S.splice(D,3),D-=3),oY(S)}}}function cY(){function w(H){H.canIntercept&&H.info==="react-transition"&&H.intercept({handler:function(){return new Promise(function(de){return B=de})},focusReset:"manual",scroll:"manual"})}function x(){B!==null&&(B(),B=null),D||setTimeout(S,20)}function S(){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",x),navigation.addEventListener("navigateerror",x),setTimeout(S,100),function(){D=!0,navigation.removeEventListener("navigate",w),navigation.removeEventListener("navigatesuccess",x),navigation.removeEventListener("navigateerror",x),B!==null&&(B(),B=null)}}}function Rz(w){this._internalRoot=w}u_.prototype.render=Rz.prototype.render=function(w){var x=this._internalRoot;if(x===null)throw Error(h(409));var S=x.current,D=w1();_z(S,D,w,x,null,null)},u_.prototype.unmount=Rz.prototype.unmount=function(){var w=this._internalRoot;if(w!==null){this._internalRoot=null;var x=w.containerInfo;_z(w.current,2,null,w,null,null),Q8(),x[p0]=null}};function u_(w){this._internalRoot=w}u_.prototype.unstable_scheduleHydration=function(w){if(w){var x=p5();w={blockedOn:null,target:w,priority:x};for(var S=0;S<ay.length&&x!==0&&x<ay[S].priority;S++);ay.splice(S,0,w),S===0&&j6(w)}};var i4=s.version;if(i4!=="19.2.4")throw Error(h(527,i4,"19.2.4"));ve.findDOMNode=function(w){var x=w._reactInternals;if(x===void 0)throw typeof w.render=="function"?Error(h(188)):(w=Object.keys(w).join(","),Error(h(268,w)));return w=C(x),w=w!==null?N(w):null,w=w===null?null:w.stateNode,w};var a_={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:ue,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var r4=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!r4.isDisabled&&r4.supportsFiber)try{lb=r4.inject(a_),qf=r4}catch{}}return GW.createRoot=function(w,x){if(!g(w))throw Error(h(299));var S=!1,D="",B=tB,H=nB,de=iB;return x!=null&&(x.unstable_strictMode===!0&&(S=!0),x.identifierPrefix!==void 0&&(D=x.identifierPrefix),x.onUncaughtError!==void 0&&(B=x.onUncaughtError),x.onCaughtError!==void 0&&(H=x.onCaughtError),x.onRecoverableError!==void 0&&(de=x.onRecoverableError)),x=Az(w,1,!1,null,null,S,D,null,B,H,de,cY),w[p0]=x.current,qN(w),new Rz(x)},GW.hydrateRoot=function(w,x,S){if(!g(w))throw Error(h(299));var D=!1,B="",H=tB,de=nB,De=iB,mt=null;return S!=null&&(S.unstable_strictMode===!0&&(D=!0),S.identifierPrefix!==void 0&&(B=S.identifierPrefix),S.onUncaughtError!==void 0&&(H=S.onUncaughtError),S.onCaughtError!==void 0&&(de=S.onCaughtError),S.onRecoverableError!==void 0&&(De=S.onRecoverableError),S.formState!==void 0&&(mt=S.formState)),x=Az(w,1,!0,x,S??null,D,B,mt,H,de,De,cY),x.context=Nz(null),S=x.current,D=w1(),D=hb(D),B=S2(D),B.callback=null,T2(S,B,D),S=D,x.current.lanes=S,ab(x,S),Fp(x),w[p0]=x.current,qN(w),new u_(x)},GW.version="19.2.4",GW}var cyt;function urn(){if(cyt)return YCe.exports;cyt=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(),YCe.exports=lrn(),YCe.exports}var arn=urn();function dh(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=dh(l[u]))!==""&&(s+=(s&&" ")+h);else for(let u in l)l[u]&&(s+=(s&&" ")+u);return s}var frn={value:()=>{}};function hde(){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 the(u)}function the(l){this._=l}function hrn(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}})}the.prototype=hde.prototype={constructor:the,on:function(l,s){var u=this._,h=hrn(l+"",u),g,m=-1,p=h.length;if(arguments.length<2){for(;++m<p;)if((g=(l=h[m]).type)&&(g=drn(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]=lyt(u[g],l.name,s);else if(s==null)for(g in u)u[g]=lyt(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 the(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 drn(l,s){for(var u=0,h=l.length,g;u<h;++u)if((g=l[u]).name===s)return g.value}function lyt(l,s,u){for(var h=0,g=l.length;h<g;++h)if(l[h].name===s){l[h]=frn,l=l.slice(0,h).concat(l.slice(h+1));break}return u!=null&&l.push({name:s,value:u}),l}var hMe="http://www.w3.org/1999/xhtml";const uyt={svg:"http://www.w3.org/2000/svg",xhtml:hMe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function dde(l){var s=l+="",u=s.indexOf(":");return u>=0&&(s=l.slice(0,u))!=="xmlns"&&(l=l.slice(u+1)),uyt.hasOwnProperty(s)?{space:uyt[s],local:l}:l}function grn(l){return function(){var s=this.ownerDocument,u=this.namespaceURI;return u===hMe&&s.documentElement.namespaceURI===hMe?s.createElement(l):s.createElementNS(u,l)}}function prn(l){return function(){return this.ownerDocument.createElementNS(l.space,l.local)}}function V4t(l){var s=dde(l);return(s.local?prn:grn)(s)}function mrn(){}function MAe(l){return l==null?mrn:function(){return this.querySelector(l)}}function brn(l){typeof l!="function"&&(l=MAe(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,O=h[g]=new Array(p),j,C,N=0;N<p;++N)(j=m[N])&&(C=l.call(j,j.__data__,N,m))&&("__data__"in j&&(C.__data__=j.__data__),O[N]=C);return new ob(h,this._parents)}function wrn(l){return l==null?[]:Array.isArray(l)?l:Array.from(l)}function vrn(){return[]}function X4t(l){return l==null?vrn:function(){return this.querySelectorAll(l)}}function xrn(l){return function(){return wrn(l.apply(this,arguments))}}function yrn(l){typeof l=="function"?l=xrn(l):l=X4t(l);for(var s=this._groups,u=s.length,h=[],g=[],m=0;m<u;++m)for(var p=s[m],O=p.length,j,C=0;C<O;++C)(j=p[C])&&(h.push(l.call(j,j.__data__,C,p)),g.push(j));return new ob(h,g)}function K4t(l){return function(){return this.matches(l)}}function Y4t(l){return function(s){return s.matches(l)}}var krn=Array.prototype.find;function Orn(l){return function(){return krn.call(this.children,l)}}function jrn(){return this.firstElementChild}function Srn(l){return this.select(l==null?jrn:Orn(typeof l=="function"?l:Y4t(l)))}var Trn=Array.prototype.filter;function Crn(){return Array.from(this.children)}function Ern(l){return function(){return Trn.call(this.children,l)}}function Mrn(l){return this.selectAll(l==null?Crn:Ern(typeof l=="function"?l:Y4t(l)))}function Arn(l){typeof l!="function"&&(l=K4t(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,O=h[g]=[],j,C=0;C<p;++C)(j=m[C])&&l.call(j,j.__data__,C,m)&&O.push(j);return new ob(h,this._parents)}function Z4t(l){return new Array(l.length)}function Nrn(){return new ob(this._enter||this._groups.map(Z4t),this._parents)}function yhe(l,s){this.ownerDocument=l.ownerDocument,this.namespaceURI=l.namespaceURI,this._next=null,this._parent=l,this.__data__=s}yhe.prototype={constructor:yhe,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 _rn(l){return function(){return l}}function Drn(l,s,u,h,g,m){for(var p=0,O,j=s.length,C=m.length;p<C;++p)(O=s[p])?(O.__data__=m[p],h[p]=O):u[p]=new yhe(l,m[p]);for(;p<j;++p)(O=s[p])&&(g[p]=O)}function Lrn(l,s,u,h,g,m,p){var O,j,C=new Map,N=s.length,_=m.length,P=new Array(N),I;for(O=0;O<N;++O)(j=s[O])&&(P[O]=I=p.call(j,j.__data__,O,s)+"",C.has(I)?g[O]=j:C.set(I,j));for(O=0;O<_;++O)I=p.call(l,m[O],O,m)+"",(j=C.get(I))?(h[O]=j,j.__data__=m[O],C.delete(I)):u[O]=new yhe(l,m[O]);for(O=0;O<N;++O)(j=s[O])&&C.get(P[O])===j&&(g[O]=j)}function Prn(l){return l.__data__}function Irn(l,s){if(!arguments.length)return Array.from(this,Prn);var u=s?Lrn:Drn,h=this._parents,g=this._groups;typeof l!="function"&&(l=_rn(l));for(var m=g.length,p=new Array(m),O=new Array(m),j=new Array(m),C=0;C<m;++C){var N=h[C],_=g[C],P=_.length,I=Rrn(l.call(N,N&&N.__data__,C,h)),q=I.length,z=O[C]=new Array(q),X=p[C]=new Array(q),Q=j[C]=new Array(P);u(N,_,z,X,Q,I,s);for(var te=0,V=0,ne,ce;te<q;++te)if(ne=z[te]){for(te>=V&&(V=te+1);!(ce=X[V])&&++V<q;);ne._next=ce||null}}return p=new ob(p,h),p._enter=O,p._exit=j,p}function Rrn(l){return typeof l=="object"&&"length"in l?l:Array.from(l)}function $rn(){return new ob(this._exit||this._groups.map(Z4t),this._parents)}function Brn(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 zrn(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),O=new Array(g),j=0;j<p;++j)for(var C=u[j],N=h[j],_=C.length,P=O[j]=new Array(_),I,q=0;q<_;++q)(I=C[q]||N[q])&&(P[q]=I);for(;j<g;++j)O[j]=u[j];return new ob(O,this._parents)}function Frn(){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 qrn(l){l||(l=Hrn);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],O=p.length,j=g[m]=new Array(O),C,N=0;N<O;++N)(C=p[N])&&(j[N]=C);j.sort(s)}return new ob(g,this._parents).order()}function Hrn(l,s){return l<s?-1:l>s?1:l>=s?0:NaN}function Grn(){var l=arguments[0];return arguments[0]=this,l.apply(null,arguments),this}function Qrn(){return Array.from(this)}function Urn(){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 Jrn(){let l=0;for(const s of this)++l;return l}function Wrn(){return!this.node()}function Vrn(l){for(var s=this._groups,u=0,h=s.length;u<h;++u)for(var g=s[u],m=0,p=g.length,O;m<p;++m)(O=g[m])&&l.call(O,O.__data__,m,g);return this}function Xrn(l){return function(){this.removeAttribute(l)}}function Krn(l){return function(){this.removeAttributeNS(l.space,l.local)}}function Yrn(l,s){return function(){this.setAttribute(l,s)}}function Zrn(l,s){return function(){this.setAttributeNS(l.space,l.local,s)}}function esn(l,s){return function(){var u=s.apply(this,arguments);u==null?this.removeAttribute(l):this.setAttribute(l,u)}}function tsn(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 nsn(l,s){var u=dde(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?Krn:Xrn:typeof s=="function"?u.local?tsn:esn:u.local?Zrn:Yrn)(u,s))}function ekt(l){return l.ownerDocument&&l.ownerDocument.defaultView||l.document&&l||l.defaultView}function isn(l){return function(){this.style.removeProperty(l)}}function rsn(l,s,u){return function(){this.style.setProperty(l,s,u)}}function ssn(l,s,u){return function(){var h=s.apply(this,arguments);h==null?this.style.removeProperty(l):this.style.setProperty(l,h,u)}}function osn(l,s,u){return arguments.length>1?this.each((s==null?isn:typeof s=="function"?ssn:rsn)(l,s,u??"")):KI(this.node(),l)}function KI(l,s){return l.style.getPropertyValue(s)||ekt(l).getComputedStyle(l,null).getPropertyValue(s)}function csn(l){return function(){delete this[l]}}function lsn(l,s){return function(){this[l]=s}}function usn(l,s){return function(){var u=s.apply(this,arguments);u==null?delete this[l]:this[l]=u}}function asn(l,s){return arguments.length>1?this.each((s==null?csn:typeof s=="function"?usn:lsn)(l,s)):this.node()[l]}function tkt(l){return l.trim().split(/^|\s+/)}function AAe(l){return l.classList||new nkt(l)}function nkt(l){this._node=l,this._names=tkt(l.getAttribute("class")||"")}nkt.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 ikt(l,s){for(var u=AAe(l),h=-1,g=s.length;++h<g;)u.add(s[h])}function rkt(l,s){for(var u=AAe(l),h=-1,g=s.length;++h<g;)u.remove(s[h])}function fsn(l){return function(){ikt(this,l)}}function hsn(l){return function(){rkt(this,l)}}function dsn(l,s){return function(){(s.apply(this,arguments)?ikt:rkt)(this,l)}}function gsn(l,s){var u=tkt(l+"");if(arguments.length<2){for(var h=AAe(this.node()),g=-1,m=u.length;++g<m;)if(!h.contains(u[g]))return!1;return!0}return this.each((typeof s=="function"?dsn:s?fsn:hsn)(u,s))}function psn(){this.textContent=""}function msn(l){return function(){this.textContent=l}}function bsn(l){return function(){var s=l.apply(this,arguments);this.textContent=s??""}}function wsn(l){return arguments.length?this.each(l==null?psn:(typeof l=="function"?bsn:msn)(l)):this.node().textContent}function vsn(){this.innerHTML=""}function xsn(l){return function(){this.innerHTML=l}}function ysn(l){return function(){var s=l.apply(this,arguments);this.innerHTML=s??""}}function ksn(l){return arguments.length?this.each(l==null?vsn:(typeof l=="function"?ysn:xsn)(l)):this.node().innerHTML}function Osn(){this.nextSibling&&this.parentNode.appendChild(this)}function jsn(){return this.each(Osn)}function Ssn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Tsn(){return this.each(Ssn)}function Csn(l){var s=typeof l=="function"?l:V4t(l);return this.select(function(){return this.appendChild(s.apply(this,arguments))})}function Esn(){return null}function Msn(l,s){var u=typeof l=="function"?l:V4t(l),h=s==null?Esn:typeof s=="function"?s:MAe(s);return this.select(function(){return this.insertBefore(u.apply(this,arguments),h.apply(this,arguments)||null)})}function Asn(){var l=this.parentNode;l&&l.removeChild(this)}function Nsn(){return this.each(Asn)}function _sn(){var l=this.cloneNode(!1),s=this.parentNode;return s?s.insertBefore(l,this.nextSibling):l}function Dsn(){var l=this.cloneNode(!0),s=this.parentNode;return s?s.insertBefore(l,this.nextSibling):l}function Lsn(l){return this.select(l?Dsn:_sn)}function Psn(l){return arguments.length?this.property("__data__",l):this.node().__data__}function Isn(l){return function(s){l.call(this,s,this.__data__)}}function Rsn(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 $sn(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 Bsn(l,s,u){return function(){var h=this.__on,g,m=Isn(s);if(h){for(var p=0,O=h.length;p<O;++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 zsn(l,s,u){var h=Rsn(l+""),g,m=h.length,p;if(arguments.length<2){var O=this.node().__on;if(O){for(var j=0,C=O.length,N;j<C;++j)for(g=0,N=O[j];g<m;++g)if((p=h[g]).type===N.type&&p.name===N.name)return N.value}return}for(O=s?Bsn:$sn,g=0;g<m;++g)this.each(O(h[g],s,u));return this}function skt(l,s,u){var h=ekt(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 Fsn(l,s){return function(){return skt(this,l,s)}}function qsn(l,s){return function(){return skt(this,l,s.apply(this,arguments))}}function Hsn(l,s){return this.each((typeof s=="function"?qsn:Fsn)(l,s))}function*Gsn(){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 okt=[null];function ob(l,s){this._groups=l,this._parents=s}function VV(){return new ob([[document.documentElement]],okt)}function Qsn(){return this}ob.prototype=VV.prototype={constructor:ob,select:brn,selectAll:yrn,selectChild:Srn,selectChildren:Mrn,filter:Arn,data:Irn,enter:Nrn,exit:$rn,join:Brn,merge:zrn,selection:Qsn,order:Frn,sort:qrn,call:Grn,nodes:Qrn,node:Urn,size:Jrn,empty:Wrn,each:Vrn,attr:nsn,style:osn,property:asn,classed:gsn,text:wsn,html:ksn,raise:jsn,lower:Tsn,append:Csn,insert:Msn,remove:Nsn,clone:Lsn,datum:Psn,on:zsn,dispatch:Hsn,[Symbol.iterator]:Gsn};function rb(l){return typeof l=="string"?new ob([[document.querySelector(l)]],[document.documentElement]):new ob([[l]],okt)}function Usn(l){let s;for(;s=l.sourceEvent;)l=s;return l}function Ex(l,s){if(l=Usn(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 Jsn={passive:!1},yV={capture:!0,passive:!1};function nEe(l){l.stopImmediatePropagation()}function qI(l){l.preventDefault(),l.stopImmediatePropagation()}function ckt(l){var s=l.document.documentElement,u=rb(l).on("dragstart.drag",qI,yV);"onselectstart"in s?u.on("selectstart.drag",qI,yV):(s.__noselect=s.style.MozUserSelect,s.style.MozUserSelect="none")}function lkt(l,s){var u=l.document.documentElement,h=rb(l).on("dragstart.drag",null);s&&(h.on("click.drag",qI,yV),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 ffe=l=>()=>l;function dMe(l,{sourceEvent:s,subject:u,target:h,identifier:g,active:m,x:p,y:O,dx:j,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:O,enumerable:!0,configurable:!0},dx:{value:j,enumerable:!0,configurable:!0},dy:{value:C,enumerable:!0,configurable:!0},_:{value:N}})}dMe.prototype.on=function(){var l=this._.on.apply(this._,arguments);return l===this._?this:l};function Wsn(l){return!l.ctrlKey&&!l.button}function Vsn(){return this.parentNode}function Xsn(l,s){return s??{x:l.x,y:l.y}}function Ksn(){return navigator.maxTouchPoints||"ontouchstart"in this}function ukt(){var l=Wsn,s=Vsn,u=Xsn,h=Ksn,g={},m=hde("start","drag","end"),p=0,O,j,C,N,_=0;function P(ne){ne.on("mousedown.drag",I).filter(h).on("touchstart.drag",X).on("touchmove.drag",Q,Jsn).on("touchend.drag touchcancel.drag",te).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function I(ne,ce){if(!(N||!l.call(this,ne,ce))){var se=V(this,s.call(this,ne,ce),ne,ce,"mouse");se&&(rb(ne.view).on("mousemove.drag",q,yV).on("mouseup.drag",z,yV),ckt(ne.view),nEe(ne),C=!1,O=ne.clientX,j=ne.clientY,se("start",ne))}}function q(ne){if(qI(ne),!C){var ce=ne.clientX-O,se=ne.clientY-j;C=ce*ce+se*se>_}g.mouse("drag",ne)}function z(ne){rb(ne.view).on("mousemove.drag mouseup.drag",null),lkt(ne.view,C),qI(ne),g.mouse("end",ne)}function X(ne,ce){if(l.call(this,ne,ce)){var se=ne.changedTouches,me=s.call(this,ne,ce),ye=se.length,qe,Be;for(qe=0;qe<ye;++qe)(Be=V(this,me,ne,ce,se[qe].identifier,se[qe]))&&(nEe(ne),Be("start",ne,se[qe]))}}function Q(ne){var ce=ne.changedTouches,se=ce.length,me,ye;for(me=0;me<se;++me)(ye=g[ce[me].identifier])&&(qI(ne),ye("drag",ne,ce[me]))}function te(ne){var ce=ne.changedTouches,se=ce.length,me,ye;for(N&&clearTimeout(N),N=setTimeout(function(){N=null},500),me=0;me<se;++me)(ye=g[ce[me].identifier])&&(nEe(ne),ye("end",ne,ce[me]))}function V(ne,ce,se,me,ye,qe){var Be=m.copy(),ke=Ex(qe||se,ce),le,W,pe;if((pe=u.call(ne,new dMe("beforestart",{sourceEvent:se,target:P,identifier:ye,active:p,x:ke[0],y:ke[1],dx:0,dy:0,dispatch:Be}),me))!=null)return le=pe.x-ke[0]||0,W=pe.y-ke[1]||0,function je(ue,ve,xe){var Ee=ke,tt;switch(ue){case"start":g[ye]=je,tt=p++;break;case"end":delete g[ye],--p;case"drag":ke=Ex(xe||ve,ce),tt=p;break}Be.call(ue,ne,new dMe(ue,{sourceEvent:ve,subject:pe,target:P,identifier:ye,active:tt,x:ke[0]+le,y:ke[1]+W,dx:ke[0]-Ee[0],dy:ke[1]-Ee[1],dispatch:Be}),me)}}return P.filter=function(ne){return arguments.length?(l=typeof ne=="function"?ne:ffe(!!ne),P):l},P.container=function(ne){return arguments.length?(s=typeof ne=="function"?ne:ffe(ne),P):s},P.subject=function(ne){return arguments.length?(u=typeof ne=="function"?ne:ffe(ne),P):u},P.touchable=function(ne){return arguments.length?(h=typeof ne=="function"?ne:ffe(!!ne),P):h},P.on=function(){var ne=m.on.apply(m,arguments);return ne===m?P:ne},P.clickDistance=function(ne){return arguments.length?(_=(ne=+ne)*ne,P):Math.sqrt(_)},P}function NAe(l,s,u){l.prototype=s.prototype=u,u.constructor=l}function akt(l,s){var u=Object.create(l.prototype);for(var h in s)u[h]=s[h];return u}function XV(){}var kV=.7,khe=1/kV,HI="\\s*([+-]?\\d+)\\s*",OV="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",s5="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ysn=/^#([0-9a-f]{3,8})$/,Zsn=new RegExp(`^rgb\\(${HI},${HI},${HI}\\)$`),eon=new RegExp(`^rgb\\(${s5},${s5},${s5}\\)$`),ton=new RegExp(`^rgba\\(${HI},${HI},${HI},${OV}\\)$`),non=new RegExp(`^rgba\\(${s5},${s5},${s5},${OV}\\)$`),ion=new RegExp(`^hsl\\(${OV},${s5},${s5}\\)$`),ron=new RegExp(`^hsla\\(${OV},${s5},${s5},${OV}\\)$`),ayt={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};NAe(XV,BM,{copy(l){return Object.assign(new this.constructor,this,l)},displayable(){return this.rgb().displayable()},hex:fyt,formatHex:fyt,formatHex8:son,formatHsl:oon,formatRgb:hyt,toString:hyt});function fyt(){return this.rgb().formatHex()}function son(){return this.rgb().formatHex8()}function oon(){return fkt(this).formatHsl()}function hyt(){return this.rgb().formatRgb()}function BM(l){var s,u;return l=(l+"").trim().toLowerCase(),(s=Ysn.exec(l))?(u=s[1].length,s=parseInt(s[1],16),u===6?dyt(s):u===3?new jp(s>>8&15|s>>4&240,s>>4&15|s&240,(s&15)<<4|s&15,1):u===8?hfe(s>>24&255,s>>16&255,s>>8&255,(s&255)/255):u===4?hfe(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=Zsn.exec(l))?new jp(s[1],s[2],s[3],1):(s=eon.exec(l))?new jp(s[1]*255/100,s[2]*255/100,s[3]*255/100,1):(s=ton.exec(l))?hfe(s[1],s[2],s[3],s[4]):(s=non.exec(l))?hfe(s[1]*255/100,s[2]*255/100,s[3]*255/100,s[4]):(s=ion.exec(l))?myt(s[1],s[2]/100,s[3]/100,1):(s=ron.exec(l))?myt(s[1],s[2]/100,s[3]/100,s[4]):ayt.hasOwnProperty(l)?dyt(ayt[l]):l==="transparent"?new jp(NaN,NaN,NaN,0):null}function dyt(l){return new jp(l>>16&255,l>>8&255,l&255,1)}function hfe(l,s,u,h){return h<=0&&(l=s=u=NaN),new jp(l,s,u,h)}function con(l){return l instanceof XV||(l=BM(l)),l?(l=l.rgb(),new jp(l.r,l.g,l.b,l.opacity)):new jp}function gMe(l,s,u,h){return arguments.length===1?con(l):new jp(l,s,u,h??1)}function jp(l,s,u,h){this.r=+l,this.g=+s,this.b=+u,this.opacity=+h}NAe(jp,gMe,akt(XV,{brighter(l){return l=l==null?khe:Math.pow(khe,l),new jp(this.r*l,this.g*l,this.b*l,this.opacity)},darker(l){return l=l==null?kV:Math.pow(kV,l),new jp(this.r*l,this.g*l,this.b*l,this.opacity)},rgb(){return this},clamp(){return new jp(LM(this.r),LM(this.g),LM(this.b),Ohe(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:gyt,formatHex:gyt,formatHex8:lon,formatRgb:pyt,toString:pyt}));function gyt(){return`#${SM(this.r)}${SM(this.g)}${SM(this.b)}`}function lon(){return`#${SM(this.r)}${SM(this.g)}${SM(this.b)}${SM((isNaN(this.opacity)?1:this.opacity)*255)}`}function pyt(){const l=Ohe(this.opacity);return`${l===1?"rgb(":"rgba("}${LM(this.r)}, ${LM(this.g)}, ${LM(this.b)}${l===1?")":`, ${l})`}`}function Ohe(l){return isNaN(l)?1:Math.max(0,Math.min(1,l))}function LM(l){return Math.max(0,Math.min(255,Math.round(l)||0))}function SM(l){return l=LM(l),(l<16?"0":"")+l.toString(16)}function myt(l,s,u,h){return h<=0?l=s=u=NaN:u<=0||u>=1?l=s=NaN:s<=0&&(l=NaN),new Mx(l,s,u,h)}function fkt(l){if(l instanceof Mx)return new Mx(l.h,l.s,l.l,l.opacity);if(l instanceof XV||(l=BM(l)),!l)return new Mx;if(l instanceof Mx)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,O=m-g,j=(m+g)/2;return O?(s===m?p=(u-h)/O+(u<h)*6:u===m?p=(h-s)/O+2:p=(s-u)/O+4,O/=j<.5?m+g:2-m-g,p*=60):O=j>0&&j<1?0:p,new Mx(p,O,j,l.opacity)}function uon(l,s,u,h){return arguments.length===1?fkt(l):new Mx(l,s,u,h??1)}function Mx(l,s,u,h){this.h=+l,this.s=+s,this.l=+u,this.opacity=+h}NAe(Mx,uon,akt(XV,{brighter(l){return l=l==null?khe:Math.pow(khe,l),new Mx(this.h,this.s,this.l*l,this.opacity)},darker(l){return l=l==null?kV:Math.pow(kV,l),new Mx(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 jp(iEe(l>=240?l-240:l+120,g,h),iEe(l,g,h),iEe(l<120?l+240:l-120,g,h),this.opacity)},clamp(){return new Mx(byt(this.h),dfe(this.s),dfe(this.l),Ohe(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=Ohe(this.opacity);return`${l===1?"hsl(":"hsla("}${byt(this.h)}, ${dfe(this.s)*100}%, ${dfe(this.l)*100}%${l===1?")":`, ${l})`}`}}));function byt(l){return l=(l||0)%360,l<0?l+360:l}function dfe(l){return Math.max(0,Math.min(1,l||0))}function iEe(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 _Ae=l=>()=>l;function aon(l,s){return function(u){return l+u*s}}function fon(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 hon(l){return(l=+l)==1?hkt:function(s,u){return u-s?fon(s,u,l):_Ae(isNaN(s)?u:s)}}function hkt(l,s){var u=s-l;return u?aon(l,u):_Ae(isNaN(l)?s:l)}const jhe=(function l(s){var u=hon(s);function h(g,m){var p=u((g=gMe(g)).r,(m=gMe(m)).r),O=u(g.g,m.g),j=u(g.b,m.b),C=hkt(g.opacity,m.opacity);return function(N){return g.r=p(N),g.g=O(N),g.b=j(N),g.opacity=C(N),g+""}}return h.gamma=l,h})(1);function don(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 gon(l){return ArrayBuffer.isView(l)&&!(l instanceof DataView)}function pon(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]=aV(l[p],s[p]);for(;p<u;++p)m[p]=s[p];return function(O){for(p=0;p<h;++p)m[p]=g[p](O);return m}}function mon(l,s){var u=new Date;return l=+l,s=+s,function(h){return u.setTime(l*(1-h)+s*h),u}}function K3(l,s){return l=+l,s=+s,function(u){return l*(1-u)+s*u}}function bon(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]=aV(l[g],s[g]):h[g]=s[g];return function(m){for(g in u)h[g]=u[g](m);return h}}var pMe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rEe=new RegExp(pMe.source,"g");function won(l){return function(){return l}}function von(l){return function(s){return l(s)+""}}function dkt(l,s){var u=pMe.lastIndex=rEe.lastIndex=0,h,g,m,p=-1,O=[],j=[];for(l=l+"",s=s+"";(h=pMe.exec(l))&&(g=rEe.exec(s));)(m=g.index)>u&&(m=s.slice(u,m),O[p]?O[p]+=m:O[++p]=m),(h=h[0])===(g=g[0])?O[p]?O[p]+=g:O[++p]=g:(O[++p]=null,j.push({i:p,x:K3(h,g)})),u=rEe.lastIndex;return u<s.length&&(m=s.slice(u),O[p]?O[p]+=m:O[++p]=m),O.length<2?j[0]?von(j[0].x):won(s):(s=j.length,function(C){for(var N=0,_;N<s;++N)O[(_=j[N]).i]=_.x(C);return O.join("")})}function aV(l,s){var u=typeof s,h;return s==null||u==="boolean"?_Ae(s):(u==="number"?K3:u==="string"?(h=BM(s))?(s=h,jhe):dkt:s instanceof BM?jhe:s instanceof Date?mon:gon(s)?don:Array.isArray(s)?pon:typeof s.valueOf!="function"&&typeof s.toString!="function"||isNaN(s)?bon:K3)(l,s)}var wyt=180/Math.PI,mMe={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function gkt(l,s,u,h,g,m){var p,O,j;return(p=Math.sqrt(l*l+s*s))&&(l/=p,s/=p),(j=l*u+s*h)&&(u-=l*j,h-=s*j),(O=Math.sqrt(u*u+h*h))&&(u/=O,h/=O,j/=O),l*h<s*u&&(l=-l,s=-s,j=-j,p=-p),{translateX:g,translateY:m,rotate:Math.atan2(s,l)*wyt,skewX:Math.atan(j)*wyt,scaleX:p,scaleY:O}}var gfe;function xon(l){const s=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(l+"");return s.isIdentity?mMe:gkt(s.a,s.b,s.c,s.d,s.e,s.f)}function yon(l){return l==null||(gfe||(gfe=document.createElementNS("http://www.w3.org/2000/svg","g")),gfe.setAttribute("transform",l),!(l=gfe.transform.baseVal.consolidate()))?mMe:(l=l.matrix,gkt(l.a,l.b,l.c,l.d,l.e,l.f))}function pkt(l,s,u,h){function g(C){return C.length?C.pop()+" ":""}function m(C,N,_,P,I,q){if(C!==_||N!==P){var z=I.push("translate(",null,s,null,u);q.push({i:z-4,x:K3(C,_)},{i:z-2,x:K3(N,P)})}else(_||P)&&I.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:K3(C,N)})):N&&_.push(g(_)+"rotate("+N+h)}function O(C,N,_,P){C!==N?P.push({i:_.push(g(_)+"skewX(",null,h)-2,x:K3(C,N)}):N&&_.push(g(_)+"skewX("+N+h)}function j(C,N,_,P,I,q){if(C!==_||N!==P){var z=I.push(g(I)+"scale(",null,",",null,")");q.push({i:z-4,x:K3(C,_)},{i:z-2,x:K3(N,P)})}else(_!==1||P!==1)&&I.push(g(I)+"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),O(C.skewX,N.skewX,_,P),j(C.scaleX,C.scaleY,N.scaleX,N.scaleY,_,P),C=N=null,function(I){for(var q=-1,z=P.length,X;++q<z;)_[(X=P[q]).i]=X.x(I);return _.join("")}}}var kon=pkt(xon,"px, ","px)","deg)"),Oon=pkt(yon,", ",")",")"),jon=1e-12;function vyt(l){return((l=Math.exp(l))+1/l)/2}function Son(l){return((l=Math.exp(l))-1/l)/2}function Ton(l){return((l=Math.exp(2*l))-1)/(l+1)}const nhe=(function l(s,u,h){function g(m,p){var O=m[0],j=m[1],C=m[2],N=p[0],_=p[1],P=p[2],I=N-O,q=_-j,z=I*I+q*q,X,Q;if(z<jon)Q=Math.log(P/C)/s,X=function(me){return[O+me*I,j+me*q,C*Math.exp(s*me*Q)]};else{var te=Math.sqrt(z),V=(P*P-C*C+h*z)/(2*C*u*te),ne=(P*P-C*C-h*z)/(2*P*u*te),ce=Math.log(Math.sqrt(V*V+1)-V),se=Math.log(Math.sqrt(ne*ne+1)-ne);Q=(se-ce)/s,X=function(me){var ye=me*Q,qe=vyt(ce),Be=C/(u*te)*(qe*Ton(s*ye+ce)-Son(ce));return[O+Be*I,j+Be*q,C*qe/vyt(s*ye+ce)]}}return X.duration=Q*1e3*s/Math.SQRT2,X}return g.rho=function(m){var p=Math.max(.001,+m),O=p*p,j=O*O;return l(p,O,j)},g})(Math.SQRT2,2,4);var YI=0,rV=0,QW=0,mkt=1e3,She,sV,The=0,zM=0,gde=0,jV=typeof performance=="object"&&performance.now?performance:Date,bkt=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(l){setTimeout(l,17)};function DAe(){return zM||(bkt(Con),zM=jV.now()+gde)}function Con(){zM=0}function Che(){this._call=this._time=this._next=null}Che.prototype=wkt.prototype={constructor:Che,restart:function(l,s,u){if(typeof l!="function")throw new TypeError("callback is not a function");u=(u==null?DAe():+u)+(s==null?0:+s),!this._next&&sV!==this&&(sV?sV._next=this:She=this,sV=this),this._call=l,this._time=u,bMe()},stop:function(){this._call&&(this._call=null,this._time=1/0,bMe())}};function wkt(l,s,u){var h=new Che;return h.restart(l,s,u),h}function Eon(){DAe(),++YI;for(var l=She,s;l;)(s=zM-l._time)>=0&&l._call.call(void 0,s),l=l._next;--YI}function xyt(){zM=(The=jV.now())+gde,YI=rV=0;try{Eon()}finally{YI=0,Aon(),zM=0}}function Mon(){var l=jV.now(),s=l-The;s>mkt&&(gde-=s,The=l)}function Aon(){for(var l,s=She,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:She=u);sV=l,bMe(h)}function bMe(l){if(!YI){rV&&(rV=clearTimeout(rV));var s=l-zM;s>24?(l<1/0&&(rV=setTimeout(xyt,l-jV.now()-gde)),QW&&(QW=clearInterval(QW))):(QW||(The=jV.now(),QW=setInterval(Mon,mkt)),YI=1,bkt(xyt))}}function yyt(l,s,u){var h=new Che;return s=s==null?0:+s,h.restart(g=>{h.stop(),l(g+s)},s,u),h}var Non=hde("start","end","cancel","interrupt"),_on=[],vkt=0,kyt=1,wMe=2,ihe=3,Oyt=4,vMe=5,rhe=6;function pde(l,s,u,h,g,m){var p=l.__transition;if(!p)l.__transition={};else if(u in p)return;Don(l,u,{name:s,index:h,group:g,on:Non,tween:_on,time:m.time,delay:m.delay,duration:m.duration,ease:m.ease,timer:null,state:vkt})}function LAe(l,s){var u=Bx(l,s);if(u.state>vkt)throw new Error("too late; already scheduled");return u}function a5(l,s){var u=Bx(l,s);if(u.state>ihe)throw new Error("too late; already running");return u}function Bx(l,s){var u=l.__transition;if(!u||!(u=u[s]))throw new Error("transition not found");return u}function Don(l,s,u){var h=l.__transition,g;h[s]=u,u.timer=wkt(m,0,u.time);function m(C){u.state=kyt,u.timer.restart(p,u.delay,u.time),u.delay<=C&&p(C-u.delay)}function p(C){var N,_,P,I;if(u.state!==kyt)return j();for(N in h)if(I=h[N],I.name===u.name){if(I.state===ihe)return yyt(p);I.state===Oyt?(I.state=rhe,I.timer.stop(),I.on.call("interrupt",l,l.__data__,I.index,I.group),delete h[N]):+N<s&&(I.state=rhe,I.timer.stop(),I.on.call("cancel",l,l.__data__,I.index,I.group),delete h[N])}if(yyt(function(){u.state===ihe&&(u.state=Oyt,u.timer.restart(O,u.delay,u.time),O(C))}),u.state=wMe,u.on.call("start",l,l.__data__,u.index,u.group),u.state===wMe){for(u.state=ihe,g=new Array(P=u.tween.length),N=0,_=-1;N<P;++N)(I=u.tween[N].value.call(l,l.__data__,u.index,u.group))&&(g[++_]=I);g.length=_+1}}function O(C){for(var N=C<u.duration?u.ease.call(null,C/u.duration):(u.timer.restart(j),u.state=vMe,1),_=-1,P=g.length;++_<P;)g[_].call(l,N);u.state===vMe&&(u.on.call("end",l,l.__data__,u.index,u.group),j())}function j(){u.state=rhe,u.timer.stop(),delete h[s];for(var C in h)return;delete l.__transition}}function she(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>wMe&&h.state<vMe,h.state=rhe,h.timer.stop(),h.on.call(g?"interrupt":"cancel",l,l.__data__,h.index,h.group),delete u[p]}m&&delete l.__transition}}function Lon(l){return this.each(function(){she(this,l)})}function Pon(l,s){var u,h;return function(){var g=a5(this,l),m=g.tween;if(m!==u){h=u=m;for(var p=0,O=h.length;p<O;++p)if(h[p].name===s){h=h.slice(),h.splice(p,1);break}}g.tween=h}}function Ion(l,s,u){var h,g;if(typeof u!="function")throw new Error;return function(){var m=a5(this,l),p=m.tween;if(p!==h){g=(h=p).slice();for(var O={name:s,value:u},j=0,C=g.length;j<C;++j)if(g[j].name===s){g[j]=O;break}j===C&&g.push(O)}m.tween=g}}function Ron(l,s){var u=this._id;if(l+="",arguments.length<2){for(var h=Bx(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?Pon:Ion)(u,l,s))}function PAe(l,s,u){var h=l._id;return l.each(function(){var g=a5(this,h);(g.value||(g.value={}))[s]=u.apply(this,arguments)}),function(g){return Bx(g,h).value[s]}}function xkt(l,s){var u;return(typeof s=="number"?K3:s instanceof BM?jhe:(u=BM(s))?(s=u,jhe):dkt)(l,s)}function $on(l){return function(){this.removeAttribute(l)}}function Bon(l){return function(){this.removeAttributeNS(l.space,l.local)}}function zon(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 Fon(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 qon(l,s,u){var h,g,m;return function(){var p,O=u(this),j;return O==null?void this.removeAttribute(l):(p=this.getAttribute(l),j=O+"",p===j?null:p===h&&j===g?m:(g=j,m=s(h=p,O)))}}function Hon(l,s,u){var h,g,m;return function(){var p,O=u(this),j;return O==null?void this.removeAttributeNS(l.space,l.local):(p=this.getAttributeNS(l.space,l.local),j=O+"",p===j?null:p===h&&j===g?m:(g=j,m=s(h=p,O)))}}function Gon(l,s){var u=dde(l),h=u==="transform"?Oon:xkt;return this.attrTween(l,typeof s=="function"?(u.local?Hon:qon)(u,h,PAe(this,"attr."+l,s)):s==null?(u.local?Bon:$on)(u):(u.local?Fon:zon)(u,h,s))}function Qon(l,s){return function(u){this.setAttribute(l,s.call(this,u))}}function Uon(l,s){return function(u){this.setAttributeNS(l.space,l.local,s.call(this,u))}}function Jon(l,s){var u,h;function g(){var m=s.apply(this,arguments);return m!==h&&(u=(h=m)&&Uon(l,m)),u}return g._value=s,g}function Won(l,s){var u,h;function g(){var m=s.apply(this,arguments);return m!==h&&(u=(h=m)&&Qon(l,m)),u}return g._value=s,g}function Von(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=dde(l);return this.tween(u,(h.local?Jon:Won)(h,s))}function Xon(l,s){return function(){LAe(this,l).delay=+s.apply(this,arguments)}}function Kon(l,s){return s=+s,function(){LAe(this,l).delay=s}}function Yon(l){var s=this._id;return arguments.length?this.each((typeof l=="function"?Xon:Kon)(s,l)):Bx(this.node(),s).delay}function Zon(l,s){return function(){a5(this,l).duration=+s.apply(this,arguments)}}function ecn(l,s){return s=+s,function(){a5(this,l).duration=s}}function tcn(l){var s=this._id;return arguments.length?this.each((typeof l=="function"?Zon:ecn)(s,l)):Bx(this.node(),s).duration}function ncn(l,s){if(typeof s!="function")throw new Error;return function(){a5(this,l).ease=s}}function icn(l){var s=this._id;return arguments.length?this.each(ncn(s,l)):Bx(this.node(),s).ease}function rcn(l,s){return function(){var u=s.apply(this,arguments);if(typeof u!="function")throw new Error;a5(this,l).ease=u}}function scn(l){if(typeof l!="function")throw new Error;return this.each(rcn(this._id,l))}function ocn(l){typeof l!="function"&&(l=K4t(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,O=h[g]=[],j,C=0;C<p;++C)(j=m[C])&&l.call(j,j.__data__,C,m)&&O.push(j);return new kO(h,this._parents,this._name,this._id)}function ccn(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),O=0;O<m;++O)for(var j=s[O],C=u[O],N=j.length,_=p[O]=new Array(N),P,I=0;I<N;++I)(P=j[I]||C[I])&&(_[I]=P);for(;O<h;++O)p[O]=s[O];return new kO(p,this._parents,this._name,this._id)}function lcn(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 ucn(l,s,u){var h,g,m=lcn(s)?LAe:a5;return function(){var p=m(this,l),O=p.on;O!==h&&(g=(h=O).copy()).on(s,u),p.on=g}}function acn(l,s){var u=this._id;return arguments.length<2?Bx(this.node(),u).on.on(l):this.each(ucn(u,l,s))}function fcn(l){return function(){var s=this.parentNode;for(var u in this.__transition)if(+u!==l)return;s&&s.removeChild(this)}}function hcn(){return this.on("end.remove",fcn(this._id))}function dcn(l){var s=this._name,u=this._id;typeof l!="function"&&(l=MAe(l));for(var h=this._groups,g=h.length,m=new Array(g),p=0;p<g;++p)for(var O=h[p],j=O.length,C=m[p]=new Array(j),N,_,P=0;P<j;++P)(N=O[P])&&(_=l.call(N,N.__data__,P,O))&&("__data__"in N&&(_.__data__=N.__data__),C[P]=_,pde(C[P],s,u,P,C,Bx(N,u)));return new kO(m,this._parents,s,u)}function gcn(l){var s=this._name,u=this._id;typeof l!="function"&&(l=X4t(l));for(var h=this._groups,g=h.length,m=[],p=[],O=0;O<g;++O)for(var j=h[O],C=j.length,N,_=0;_<C;++_)if(N=j[_]){for(var P=l.call(N,N.__data__,_,j),I,q=Bx(N,u),z=0,X=P.length;z<X;++z)(I=P[z])&&pde(I,s,u,z,P,q);m.push(P),p.push(N)}return new kO(m,p,s,u)}var pcn=VV.prototype.constructor;function mcn(){return new pcn(this._groups,this._parents)}function bcn(l,s){var u,h,g;return function(){var m=KI(this,l),p=(this.style.removeProperty(l),KI(this,l));return m===p?null:m===u&&p===h?g:g=s(u=m,h=p)}}function ykt(l){return function(){this.style.removeProperty(l)}}function wcn(l,s,u){var h,g=u+"",m;return function(){var p=KI(this,l);return p===g?null:p===h?m:m=s(h=p,u)}}function vcn(l,s,u){var h,g,m;return function(){var p=KI(this,l),O=u(this),j=O+"";return O==null&&(j=O=(this.style.removeProperty(l),KI(this,l))),p===j?null:p===h&&j===g?m:(g=j,m=s(h=p,O))}}function xcn(l,s){var u,h,g,m="style."+s,p="end."+m,O;return function(){var j=a5(this,l),C=j.on,N=j.value[m]==null?O||(O=ykt(s)):void 0;(C!==u||g!==N)&&(h=(u=C).copy()).on(p,g=N),j.on=h}}function ycn(l,s,u){var h=(l+="")=="transform"?kon:xkt;return s==null?this.styleTween(l,bcn(l,h)).on("end.style."+l,ykt(l)):typeof s=="function"?this.styleTween(l,vcn(l,h,PAe(this,"style."+l,s))).each(xcn(this._id,l)):this.styleTween(l,wcn(l,h,s),u).on("end.style."+l,null)}function kcn(l,s,u){return function(h){this.style.setProperty(l,s.call(this,h),u)}}function Ocn(l,s,u){var h,g;function m(){var p=s.apply(this,arguments);return p!==g&&(h=(g=p)&&kcn(l,p,u)),h}return m._value=s,m}function jcn(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,Ocn(l,s,u??""))}function Scn(l){return function(){this.textContent=l}}function Tcn(l){return function(){var s=l(this);this.textContent=s??""}}function Ccn(l){return this.tween("text",typeof l=="function"?Tcn(PAe(this,"text",l)):Scn(l==null?"":l+""))}function Ecn(l){return function(s){this.textContent=l.call(this,s)}}function Mcn(l){var s,u;function h(){var g=l.apply(this,arguments);return g!==u&&(s=(u=g)&&Ecn(g)),s}return h._value=l,h}function Acn(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,Mcn(l))}function Ncn(){for(var l=this._name,s=this._id,u=kkt(),h=this._groups,g=h.length,m=0;m<g;++m)for(var p=h[m],O=p.length,j,C=0;C<O;++C)if(j=p[C]){var N=Bx(j,s);pde(j,l,u,C,p,{time:N.time+N.delay+N.duration,delay:0,duration:N.duration,ease:N.ease})}return new kO(h,this._parents,l,u)}function _cn(){var l,s,u=this,h=u._id,g=u.size();return new Promise(function(m,p){var O={value:p},j={value:function(){--g===0&&m()}};u.each(function(){var C=a5(this,h),N=C.on;N!==l&&(s=(l=N).copy(),s._.cancel.push(O),s._.interrupt.push(O),s._.end.push(j)),C.on=s}),g===0&&m()})}var Dcn=0;function kO(l,s,u,h){this._groups=l,this._parents=s,this._name=u,this._id=h}function kkt(){return++Dcn}var oO=VV.prototype;kO.prototype={constructor:kO,select:dcn,selectAll:gcn,selectChild:oO.selectChild,selectChildren:oO.selectChildren,filter:ocn,merge:ccn,selection:mcn,transition:Ncn,call:oO.call,nodes:oO.nodes,node:oO.node,size:oO.size,empty:oO.empty,each:oO.each,on:acn,attr:Gon,attrTween:Von,style:ycn,styleTween:jcn,text:Ccn,textTween:Acn,remove:hcn,tween:Ron,delay:Yon,duration:tcn,ease:icn,easeVarying:scn,end:_cn,[Symbol.iterator]:oO[Symbol.iterator]};function Lcn(l){return((l*=2)<=1?l*l*l:(l-=2)*l*l+2)/2}var Pcn={time:null,delay:0,duration:250,ease:Lcn};function Icn(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 Rcn(l){var s,u;l instanceof kO?(s=l._id,l=l._name):(s=kkt(),(u=Pcn).time=DAe(),l=l==null?null:l+"");for(var h=this._groups,g=h.length,m=0;m<g;++m)for(var p=h[m],O=p.length,j,C=0;C<O;++C)(j=p[C])&&pde(j,l,s,C,p,u||Icn(j,s));return new kO(h,this._parents,l,s)}VV.prototype.interrupt=Lon;VV.prototype.transition=Rcn;const pfe=l=>()=>l;function $cn(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 bO(l,s,u){this.k=l,this.x=s,this.y=u}bO.prototype={constructor:bO,scale:function(l){return l===1?this:new bO(this.k*l,this.x,this.y)},translate:function(l,s){return l===0&s===0?this:new bO(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 mde=new bO(1,0,0);Okt.prototype=bO.prototype;function Okt(l){for(;!l.__zoom;)if(!(l=l.parentNode))return mde;return l.__zoom}function sEe(l){l.stopImmediatePropagation()}function UW(l){l.preventDefault(),l.stopImmediatePropagation()}function Bcn(l){return(!l.ctrlKey||l.type==="wheel")&&!l.button}function zcn(){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 jyt(){return this.__zoom||mde}function Fcn(l){return-l.deltaY*(l.deltaMode===1?.05:l.deltaMode?1:.002)*(l.ctrlKey?10:1)}function qcn(){return navigator.maxTouchPoints||"ontouchstart"in this}function Hcn(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 jkt(){var l=Bcn,s=zcn,u=Hcn,h=Fcn,g=qcn,m=[0,1/0],p=[[-1/0,-1/0],[1/0,1/0]],O=250,j=nhe,C=hde("start","zoom","end"),N,_,P,I=500,q=150,z=0,X=10;function Q(pe){pe.property("__zoom",jyt).on("wheel.zoom",ye,{passive:!1}).on("mousedown.zoom",qe).on("dblclick.zoom",Be).filter(g).on("touchstart.zoom",ke).on("touchmove.zoom",le).on("touchend.zoom touchcancel.zoom",W).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}Q.transform=function(pe,je,ue,ve){var xe=pe.selection?pe.selection():pe;xe.property("__zoom",jyt),pe!==xe?ce(pe,je,ue,ve):xe.interrupt().each(function(){se(this,arguments).event(ve).start().zoom(null,typeof je=="function"?je.apply(this,arguments):je).end()})},Q.scaleBy=function(pe,je,ue,ve){Q.scaleTo(pe,function(){var xe=this.__zoom.k,Ee=typeof je=="function"?je.apply(this,arguments):je;return xe*Ee},ue,ve)},Q.scaleTo=function(pe,je,ue,ve){Q.transform(pe,function(){var xe=s.apply(this,arguments),Ee=this.__zoom,tt=ue==null?ne(xe):typeof ue=="function"?ue.apply(this,arguments):ue,Te=Ee.invert(tt),et=typeof je=="function"?je.apply(this,arguments):je;return u(V(te(Ee,et),tt,Te),xe,p)},ue,ve)},Q.translateBy=function(pe,je,ue,ve){Q.transform(pe,function(){return u(this.__zoom.translate(typeof je=="function"?je.apply(this,arguments):je,typeof ue=="function"?ue.apply(this,arguments):ue),s.apply(this,arguments),p)},null,ve)},Q.translateTo=function(pe,je,ue,ve,xe){Q.transform(pe,function(){var Ee=s.apply(this,arguments),tt=this.__zoom,Te=ve==null?ne(Ee):typeof ve=="function"?ve.apply(this,arguments):ve;return u(mde.translate(Te[0],Te[1]).scale(tt.k).translate(typeof je=="function"?-je.apply(this,arguments):-je,typeof ue=="function"?-ue.apply(this,arguments):-ue),Ee,p)},ve,xe)};function te(pe,je){return je=Math.max(m[0],Math.min(m[1],je)),je===pe.k?pe:new bO(je,pe.x,pe.y)}function V(pe,je,ue){var ve=je[0]-ue[0]*pe.k,xe=je[1]-ue[1]*pe.k;return ve===pe.x&&xe===pe.y?pe:new bO(pe.k,ve,xe)}function ne(pe){return[(+pe[0][0]+ +pe[1][0])/2,(+pe[0][1]+ +pe[1][1])/2]}function ce(pe,je,ue,ve){pe.on("start.zoom",function(){se(this,arguments).event(ve).start()}).on("interrupt.zoom end.zoom",function(){se(this,arguments).event(ve).end()}).tween("zoom",function(){var xe=this,Ee=arguments,tt=se(xe,Ee).event(ve),Te=s.apply(xe,Ee),et=ue==null?ne(Te):typeof ue=="function"?ue.apply(xe,Ee):ue,Ie=Math.max(Te[1][0]-Te[0][0],Te[1][1]-Te[0][1]),Ye=xe.__zoom,Je=typeof je=="function"?je.apply(xe,Ee):je,_t=j(Ye.invert(et).concat(Ie/Ye.k),Je.invert(et).concat(Ie/Je.k));return function(nn){if(nn===1)nn=Je;else{var an=_t(nn),Jn=Ie/an[2];nn=new bO(Jn,et[0]-an[0]*Jn,et[1]-an[1]*Jn)}tt.zoom(null,nn)}})}function se(pe,je,ue){return!ue&&pe.__zooming||new me(pe,je)}function me(pe,je){this.that=pe,this.args=je,this.active=0,this.sourceEvent=null,this.extent=s.apply(pe,je),this.taps=0}me.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,je){return this.mouse&&pe!=="mouse"&&(this.mouse[1]=je.invert(this.mouse[0])),this.touch0&&pe!=="touch"&&(this.touch0[1]=je.invert(this.touch0[0])),this.touch1&&pe!=="touch"&&(this.touch1[1]=je.invert(this.touch1[0])),this.that.__zoom=je,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(pe){var je=rb(this.that).datum();C.call(pe,this.that,new $cn(pe,{sourceEvent:this.sourceEvent,target:Q,transform:this.that.__zoom,dispatch:C}),je)}};function ye(pe,...je){if(!l.apply(this,arguments))return;var ue=se(this,je).event(pe),ve=this.__zoom,xe=Math.max(m[0],Math.min(m[1],ve.k*Math.pow(2,h.apply(this,arguments)))),Ee=Ex(pe);if(ue.wheel)(ue.mouse[0][0]!==Ee[0]||ue.mouse[0][1]!==Ee[1])&&(ue.mouse[1]=ve.invert(ue.mouse[0]=Ee)),clearTimeout(ue.wheel);else{if(ve.k===xe)return;ue.mouse=[Ee,ve.invert(Ee)],she(this),ue.start()}UW(pe),ue.wheel=setTimeout(tt,q),ue.zoom("mouse",u(V(te(ve,xe),ue.mouse[0],ue.mouse[1]),ue.extent,p));function tt(){ue.wheel=null,ue.end()}}function qe(pe,...je){if(P||!l.apply(this,arguments))return;var ue=pe.currentTarget,ve=se(this,je,!0).event(pe),xe=rb(pe.view).on("mousemove.zoom",et,!0).on("mouseup.zoom",Ie,!0),Ee=Ex(pe,ue),tt=pe.clientX,Te=pe.clientY;ckt(pe.view),sEe(pe),ve.mouse=[Ee,this.__zoom.invert(Ee)],she(this),ve.start();function et(Ye){if(UW(Ye),!ve.moved){var Je=Ye.clientX-tt,_t=Ye.clientY-Te;ve.moved=Je*Je+_t*_t>z}ve.event(Ye).zoom("mouse",u(V(ve.that.__zoom,ve.mouse[0]=Ex(Ye,ue),ve.mouse[1]),ve.extent,p))}function Ie(Ye){xe.on("mousemove.zoom mouseup.zoom",null),lkt(Ye.view,ve.moved),UW(Ye),ve.event(Ye).end()}}function Be(pe,...je){if(l.apply(this,arguments)){var ue=this.__zoom,ve=Ex(pe.changedTouches?pe.changedTouches[0]:pe,this),xe=ue.invert(ve),Ee=ue.k*(pe.shiftKey?.5:2),tt=u(V(te(ue,Ee),ve,xe),s.apply(this,je),p);UW(pe),O>0?rb(this).transition().duration(O).call(ce,tt,ve,pe):rb(this).call(Q.transform,tt,ve,pe)}}function ke(pe,...je){if(l.apply(this,arguments)){var ue=pe.touches,ve=ue.length,xe=se(this,je,pe.changedTouches.length===ve).event(pe),Ee,tt,Te,et;for(sEe(pe),tt=0;tt<ve;++tt)Te=ue[tt],et=Ex(Te,this),et=[et,this.__zoom.invert(et),Te.identifier],xe.touch0?!xe.touch1&&xe.touch0[2]!==et[2]&&(xe.touch1=et,xe.taps=0):(xe.touch0=et,Ee=!0,xe.taps=1+!!N);N&&(N=clearTimeout(N)),Ee&&(xe.taps<2&&(_=et[0],N=setTimeout(function(){N=null},I)),she(this),xe.start())}}function le(pe,...je){if(this.__zooming){var ue=se(this,je).event(pe),ve=pe.changedTouches,xe=ve.length,Ee,tt,Te,et;for(UW(pe),Ee=0;Ee<xe;++Ee)tt=ve[Ee],Te=Ex(tt,this),ue.touch0&&ue.touch0[2]===tt.identifier?ue.touch0[0]=Te:ue.touch1&&ue.touch1[2]===tt.identifier&&(ue.touch1[0]=Te);if(tt=ue.that.__zoom,ue.touch1){var Ie=ue.touch0[0],Ye=ue.touch0[1],Je=ue.touch1[0],_t=ue.touch1[1],nn=(nn=Je[0]-Ie[0])*nn+(nn=Je[1]-Ie[1])*nn,an=(an=_t[0]-Ye[0])*an+(an=_t[1]-Ye[1])*an;tt=te(tt,Math.sqrt(nn/an)),Te=[(Ie[0]+Je[0])/2,(Ie[1]+Je[1])/2],et=[(Ye[0]+_t[0])/2,(Ye[1]+_t[1])/2]}else if(ue.touch0)Te=ue.touch0[0],et=ue.touch0[1];else return;ue.zoom("touch",u(V(tt,Te,et),ue.extent,p))}}function W(pe,...je){if(this.__zooming){var ue=se(this,je).event(pe),ve=pe.changedTouches,xe=ve.length,Ee,tt;for(sEe(pe),P&&clearTimeout(P),P=setTimeout(function(){P=null},I),Ee=0;Ee<xe;++Ee)tt=ve[Ee],ue.touch0&&ue.touch0[2]===tt.identifier?delete ue.touch0:ue.touch1&&ue.touch1[2]===tt.identifier&&delete ue.touch1;if(ue.touch1&&!ue.touch0&&(ue.touch0=ue.touch1,delete ue.touch1),ue.touch0)ue.touch0[1]=this.__zoom.invert(ue.touch0[0]);else if(ue.end(),ue.taps===2&&(tt=Ex(tt,this),Math.hypot(_[0]-tt[0],_[1]-tt[1])<X)){var Te=rb(this).on("dblclick.zoom");Te&&Te.apply(this,arguments)}}}return Q.wheelDelta=function(pe){return arguments.length?(h=typeof pe=="function"?pe:pfe(+pe),Q):h},Q.filter=function(pe){return arguments.length?(l=typeof pe=="function"?pe:pfe(!!pe),Q):l},Q.touchable=function(pe){return arguments.length?(g=typeof pe=="function"?pe:pfe(!!pe),Q):g},Q.extent=function(pe){return arguments.length?(s=typeof pe=="function"?pe:pfe([[+pe[0][0],+pe[0][1]],[+pe[1][0],+pe[1][1]]]),Q):s},Q.scaleExtent=function(pe){return arguments.length?(m[0]=+pe[0],m[1]=+pe[1],Q):[m[0],m[1]]},Q.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],Q):[[p[0][0],p[0][1]],[p[1][0],p[1][1]]]},Q.constrain=function(pe){return arguments.length?(u=pe,Q):u},Q.duration=function(pe){return arguments.length?(O=+pe,Q):O},Q.interpolate=function(pe){return arguments.length?(j=pe,Q):j},Q.on=function(){var pe=C.on.apply(C,arguments);return pe===C?Q:pe},Q.clickDistance=function(pe){return arguments.length?(z=(pe=+pe)*pe,Q):Math.sqrt(z)},Q.tapDistance=function(pe){return arguments.length?(X=+pe,Q):X},Q}const c5={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."},SV=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],Skt=["Enter"," ","Escape"],Tkt={"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 ZI;(function(l){l.Strict="strict",l.Loose="loose"})(ZI||(ZI={}));var PM;(function(l){l.Free="free",l.Vertical="vertical",l.Horizontal="horizontal"})(PM||(PM={}));var eR;(function(l){l.Partial="partial",l.Full="full"})(eR||(eR={}));const Ckt={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var D9;(function(l){l.Bezier="default",l.Straight="straight",l.Step="step",l.SmoothStep="smoothstep",l.SimpleBezier="simplebezier"})(D9||(D9={}));var gO;(function(l){l.Arrow="arrow",l.ArrowClosed="arrowclosed"})(gO||(gO={}));var ir;(function(l){l.Left="left",l.Top="top",l.Right="right",l.Bottom="bottom"})(ir||(ir={}));const Syt={[ir.Left]:ir.Right,[ir.Right]:ir.Left,[ir.Top]:ir.Bottom,[ir.Bottom]:ir.Top};function Ekt(l){return l===null?null:l?"valid":"invalid"}const Mkt=l=>"id"in l&&"source"in l&&"target"in l,Gcn=l=>"id"in l&&"position"in l&&!("source"in l)&&!("target"in l),IAe=l=>"id"in l&&"internals"in l&&!("source"in l)&&!("target"in l),KV=(l,s=[0,0])=>{const{width:u,height:h}=SO(l),g=l.origin??s,m=u*g[0],p=h*g[1];return{x:l.position.x-m,y:l.position.y-p}},Qcn=(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):IAe(g)?g:s.nodeLookup.get(g.id));const O=p?Ehe(p,s.nodeOrigin):{x:0,y:0,x2:0,y2:0};return bde(h,O)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return wde(u)},YV=(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=bde(u,Ehe(g)),h=!0)}),h?wde(u):{x:0,y:0,width:0,height:0}},RAe=(l,s,[u,h,g]=[0,0,1],m=!1,p=!1)=>{const O={...eX(s,[u,h,g]),width:s.width/g,height:s.height/g},j=[];for(const C of l.values()){const{measured:N,selectable:_=!0,hidden:P=!1}=C;if(p&&!_||P)continue;const I=N.width??C.width??C.initialWidth??null,q=N.height??C.height??C.initialHeight??null,z=TV(O,nR(C)),X=(I??0)*(q??0),Q=m&&z>0;(!C.internals.handleBounds||Q||z>=X||C.dragging)&&j.push(C)}return j},Ucn=(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 Jcn(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 Wcn({nodes:l,width:s,height:u,panZoom:h,minZoom:g,maxZoom:m},p){if(l.size===0)return Promise.resolve(!0);const O=Jcn(l,p),j=YV(O),C=$Ae(j,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 Akt({nodeId:l,nextPosition:s,nodeLookup:u,nodeOrigin:h=[0,0],nodeExtent:g,onError:m}){const p=u.get(l),O=p.parentId?u.get(p.parentId):void 0,{x:j,y:C}=O?O.internals.positionAbsolute:{x:0,y:0},N=p.origin??h;let _=p.extent||g;if(p.extent==="parent"&&!p.expandParent)if(!O)m==null||m("005",c5.error005());else{const I=O.measured.width,q=O.measured.height;I&&q&&(_=[[j,C],[j+I,C+q]])}else O&&iR(p.extent)&&(_=[[p.extent[0][0]+j,p.extent[0][1]+C],[p.extent[1][0]+j,p.extent[1][1]+C]]);const P=iR(_)?FM(s,_,p.measured):s;return(p.measured.width===void 0||p.measured.height===void 0)&&(m==null||m("015",c5.error015())),{position:{x:P.x-j+(p.measured.width??0)*N[0],y:P.y-C+(p.measured.height??0)*N[1]},positionAbsolute:P}}async function Vcn({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 I=m.has(P.id),q=!I&&P.parentId&&p.find(z=>z.id===P.parentId);(I||q)&&p.push(P)}const O=new Set(s.map(P=>P.id)),j=h.filter(P=>P.deletable!==!1),N=Ucn(p,j);for(const P of j)O.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 tR=(l,s=0,u=1)=>Math.min(Math.max(l,s),u),FM=(l={x:0,y:0},s,u)=>({x:tR(l.x,s[0][0],s[1][0]-((u==null?void 0:u.width)??0)),y:tR(l.y,s[0][1],s[1][1]-((u==null?void 0:u.height)??0))});function Nkt(l,s,u){const{width:h,height:g}=SO(u),{x:m,y:p}=u.internals.positionAbsolute;return FM(l,[[m,p],[m+h,p+g]],s)}const Tyt=(l,s,u)=>l<s?tR(Math.abs(l-s),1,s)/s:l>u?-tR(Math.abs(l-u),1,s)/s:0,_kt=(l,s,u=15,h=40)=>{const g=Tyt(l.x,h,s.width-h)*u,m=Tyt(l.y,h,s.height-h)*u;return[g,m]},bde=(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)}),xMe=({x:l,y:s,width:u,height:h})=>({x:l,y:s,x2:l+u,y2:s+h}),wde=({x:l,y:s,x2:u,y2:h})=>({x:l,y:s,width:u-l,height:h-s}),nR=(l,s=[0,0])=>{var g,m;const{x:u,y:h}=IAe(l)?l.internals.positionAbsolute:KV(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}},Ehe=(l,s=[0,0])=>{var g,m;const{x:u,y:h}=IAe(l)?l.internals.positionAbsolute:KV(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)}},Dkt=(l,s)=>wde(bde(xMe(l),xMe(s))),TV=(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)},Cyt=l=>Nx(l.width)&&Nx(l.height)&&Nx(l.x)&&Nx(l.y),Nx=l=>!isNaN(l)&&isFinite(l),Xcn=(l,s)=>{},ZV=(l,s=[1,1])=>({x:s[0]*Math.round(l.x/s[0]),y:s[1]*Math.round(l.y/s[1])}),eX=({x:l,y:s},[u,h,g],m=!1,p=[1,1])=>{const O={x:(l-u)/g,y:(s-h)/g};return m?ZV(O,p):O},Mhe=({x:l,y:s},[u,h,g])=>({x:l*g+u,y:s*g+h});function TI(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 Kcn(l,s,u){if(typeof l=="string"||typeof l=="number"){const h=TI(l,u),g=TI(l,s);return{top:h,right:g,bottom:h,left:g,x:g*2,y:h*2}}if(typeof l=="object"){const h=TI(l.top??l.y??0,u),g=TI(l.bottom??l.y??0,u),m=TI(l.left??l.x??0,s),p=TI(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:O}=Mhe(l,[s,u,h]),{x:j,y:C}=Mhe({x:l.x+l.width,y:l.y+l.height},[s,u,h]),N=g-j,_=m-C;return{left:Math.floor(p),top:Math.floor(O),right:Math.floor(N),bottom:Math.floor(_)}}const $Ae=(l,s,u,h,g,m)=>{const p=Kcn(m,s,u),O=(s-p.x)/l.width,j=(u-p.y)/l.height,C=Math.min(O,j),N=tR(C,h,g),_=l.x+l.width/2,P=l.y+l.height/2,I=s/2-_*N,q=u/2-P*N,z=Ycn(l,I,q,N,s,u),X={left:Math.min(z.left-p.left,0),top:Math.min(z.top-p.top,0),right:Math.min(z.right-p.right,0),bottom:Math.min(z.bottom-p.bottom,0)};return{x:I-X.left+X.right,y:q-X.top+X.bottom,zoom:N}},CV=()=>{var l;return typeof navigator<"u"&&((l=navigator==null?void 0:navigator.userAgent)==null?void 0:l.indexOf("Mac"))>=0};function iR(l){return l!=null&&l!=="parent"}function SO(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 Lkt(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 Pkt(l,s={width:0,height:0},u,h,g){const m={...l},p=h.get(u);if(p){const O=p.origin||g;m.x+=p.internals.positionAbsolute.x-(s.width??0)*O[0],m.y+=p.internals.positionAbsolute.y-(s.height??0)*O[1]}return m}function Eyt(l,s){if(l.size!==s.size)return!1;for(const u of l)if(!s.has(u))return!1;return!0}function Zcn(){let l,s;return{promise:new Promise((h,g)=>{l=h,s=g}),resolve:l,reject:s}}function eln(l){return{...Tkt,...l||{}}}function fV(l,{snapGrid:s=[0,0],snapToGrid:u=!1,transform:h,containerBounds:g}){const{x:m,y:p}=_x(l),O=eX({x:m-((g==null?void 0:g.left)??0),y:p-((g==null?void 0:g.top)??0)},h),{x:j,y:C}=u?ZV(O,s):O;return{xSnapped:j,ySnapped:C,...O}}const BAe=l=>({width:l.offsetWidth,height:l.offsetHeight}),Ikt=l=>{var s;return((s=l==null?void 0:l.getRootNode)==null?void 0:s.call(l))||(window==null?void 0:window.document)},tln=["INPUT","SELECT","TEXTAREA"];function Rkt(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:tln.includes(s.nodeName)||s.hasAttribute("contenteditable")||!!s.closest(".nokey")}const $kt=l=>"clientX"in l,_x=(l,s)=>{var m,p;const u=$kt(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)}},Myt=(l,s,u,h,g)=>{const m=s.querySelectorAll(`.${l}`);return!m||!m.length?null:Array.from(m).map(p=>{const O=p.getBoundingClientRect();return{id:p.getAttribute("data-handleid"),type:l,nodeId:g,position:p.getAttribute("data-handlepos"),x:(O.left-u.left)/h,y:(O.top-u.top)/h,...BAe(p)}})};function Bkt({sourceX:l,sourceY:s,targetX:u,targetY:h,sourceControlX:g,sourceControlY:m,targetControlX:p,targetControlY:O}){const j=l*.125+g*.375+p*.375+u*.125,C=s*.125+m*.375+O*.375+h*.125,N=Math.abs(j-l),_=Math.abs(C-s);return[j,C,N,_]}function mfe(l,s){return l>=0?.5*l:s*25*Math.sqrt(-l)}function Ayt({pos:l,x1:s,y1:u,x2:h,y2:g,c:m}){switch(l){case ir.Left:return[s-mfe(s-h,m),u];case ir.Right:return[s+mfe(h-s,m),u];case ir.Top:return[s,u-mfe(u-g,m)];case ir.Bottom:return[s,u+mfe(g-u,m)]}}function zkt({sourceX:l,sourceY:s,sourcePosition:u=ir.Bottom,targetX:h,targetY:g,targetPosition:m=ir.Top,curvature:p=.25}){const[O,j]=Ayt({pos:u,x1:l,y1:s,x2:h,y2:g,c:p}),[C,N]=Ayt({pos:m,x1:h,y1:g,x2:l,y2:s,c:p}),[_,P,I,q]=Bkt({sourceX:l,sourceY:s,targetX:h,targetY:g,sourceControlX:O,sourceControlY:j,targetControlX:C,targetControlY:N});return[`M${l},${s} C${O},${j} ${C},${N} ${h},${g}`,_,P,I,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,O=h<s?h+p:h-p;return[m,O,g,p]}function nln({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,O=Math.max(l.parentId||g&&l.selected?l.internals.z:0,s.parentId||g&&s.selected?s.internals.z:0);return p+O}function iln({sourceNode:l,targetNode:s,width:u,height:h,transform:g}){const m=bde(Ehe(l),Ehe(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 TV(p,wde(m))>0}const rln=({source:l,sourceHandle:s,target:u,targetHandle:h})=>`xy-edge__${l}${s||""}-${u}${h||""}`,sln=(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)),qkt=(l,s,u={})=>{if(!l.source||!l.target)return s;const h=u.getEdgeId||rln;let g;return Mkt(l)?g={...l}:g={...l,id:h(l)},sln(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,O]=Fkt({sourceX:l,sourceY:s,targetX:u,targetY:h});return[`M ${l},${s}L ${u},${h}`,g,m,p,O]}const Nyt={[ir.Left]:{x:-1,y:0},[ir.Right]:{x:1,y:0},[ir.Top]:{x:0,y:-1},[ir.Bottom]:{x:0,y:1}},oln=({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},_yt=(l,s)=>Math.sqrt(Math.pow(s.x-l.x,2)+Math.pow(s.y-l.y,2));function cln({source:l,sourcePosition:s=ir.Bottom,target:u,targetPosition:h=ir.Top,center:g,offset:m,stepPosition:p}){const O=Nyt[s],j=Nyt[h],C={x:l.x+O.x*m,y:l.y+O.y*m},N={x:u.x+j.x*m,y:u.y+j.y*m},_=oln({source:C,sourcePosition:s,target:N}),P=_.x!==0?"x":"y",I=_[P];let q=[],z,X;const Q={x:0,y:0},te={x:0,y:0},[,,V,ne]=Fkt({sourceX:l.x,sourceY:l.y,targetX:u.x,targetY:u.y});if(O[P]*j[P]===-1){P==="x"?(z=g.x??C.x+(N.x-C.x)*p,X=g.y??(C.y+N.y)/2):(z=g.x??(C.x+N.x)/2,X=g.y??C.y+(N.y-C.y)*p);const se=[{x:z,y:C.y},{x:z,y:N.y}],me=[{x:C.x,y:X},{x:N.x,y:X}];O[P]===I?q=P==="x"?se:me:q=P==="x"?me:se}else{const se=[{x:C.x,y:N.y}],me=[{x:N.x,y:C.y}];if(P==="x"?q=O.x===I?me:se:q=O.y===I?se:me,s===h){const le=Math.abs(l[P]-u[P]);if(le<=m){const W=Math.min(m-1,m-le);O[P]===I?Q[P]=(C[P]>l[P]?-1:1)*W:te[P]=(N[P]>u[P]?-1:1)*W}}if(s!==h){const le=P==="x"?"y":"x",W=O[P]===j[le],pe=C[le]>N[le],je=C[le]<N[le];(O[P]===1&&(!W&&pe||W&&je)||O[P]!==1&&(!W&&je||W&&pe))&&(q=P==="x"?se:me)}const ye={x:C.x+Q.x,y:C.y+Q.y},qe={x:N.x+te.x,y:N.y+te.y},Be=Math.max(Math.abs(ye.x-q[0].x),Math.abs(qe.x-q[0].x)),ke=Math.max(Math.abs(ye.y-q[0].y),Math.abs(qe.y-q[0].y));Be>=ke?(z=(ye.x+qe.x)/2,X=q[0].y):(z=q[0].x,X=(ye.y+qe.y)/2)}return[[l,{x:C.x+Q.x,y:C.y+Q.y},...q,{x:N.x+te.x,y:N.y+te.y},u],z,X,V,ne]}function lln(l,s,u,h){const g=Math.min(_yt(l,s)/2,_yt(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 O=l.x<u.x?1:-1,j=l.y<u.y?-1:1;return`L ${m},${p+g*j}Q ${m},${p} ${m+g*O},${p}`}function yMe({sourceX:l,sourceY:s,sourcePosition:u=ir.Bottom,targetX:h,targetY:g,targetPosition:m=ir.Top,borderRadius:p=5,centerX:O,centerY:j,offset:C=20,stepPosition:N=.5}){const[_,P,I,q,z]=cln({source:{x:l,y:s},sourcePosition:u,target:{x:h,y:g},targetPosition:m,center:{x:O,y:j},offset:C,stepPosition:N});return[_.reduce((Q,te,V)=>{let ne="";return V>0&&V<_.length-1?ne=lln(_[V-1],te,_[V+1],p):ne=`${V===0?"M":"L"}${te.x} ${te.y}`,Q+=ne,Q},""),P,I,q,z]}function Dyt(l){var s;return l&&!!(l.internals.handleBounds||(s=l.handles)!=null&&s.length)&&!!(l.measured.width||l.width||l.initialWidth)}function uln(l){var _;const{sourceNode:s,targetNode:u}=l;if(!Dyt(s)||!Dyt(u))return null;const h=s.internals.handleBounds||Lyt(s.handles),g=u.internals.handleBounds||Lyt(u.handles),m=Pyt((h==null?void 0:h.source)??[],l.sourceHandle),p=Pyt(l.connectionMode===ZI.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",c5.error008(m?"target":"source",{id:l.id,sourceHandle:l.sourceHandle,targetHandle:l.targetHandle})),null;const O=(m==null?void 0:m.position)||ir.Bottom,j=(p==null?void 0:p.position)||ir.Top,C=qM(s,m,O),N=qM(u,p,j);return{sourceX:C.x,sourceY:C.y,targetX:N.x,targetY:N.y,sourcePosition:O,targetPosition:j}}function Lyt(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 qM(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:O}=s??SO(l);if(h)return{x:g+p/2,y:m+O/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+O/2};case ir.Bottom:return{x:g+p/2,y:m+O};case ir.Left:return{x:g,y:m+O/2}}}function Pyt(l,s){return l&&(s?l.find(u=>u.id===s):l[0])||null}function kMe(l,s){return l?typeof l=="string"?l:`${s?`${s}__`:""}${Object.keys(l).sort().map(h=>`${h}=${l[h]}`).join("&")}`:""}function aln(l,{id:s,defaultColor:u,defaultMarkerStart:h,defaultMarkerEnd:g}){const m=new Set;return l.reduce((p,O)=>([O.markerStart||h,O.markerEnd||g].forEach(j=>{if(j&&typeof j=="object"){const C=kMe(j,s);m.has(C)||(p.push({id:C,color:j.color||u,...j}),m.add(C))}}),p),[]).sort((p,O)=>p.id.localeCompare(O.id))}const Gkt=1e3,fln=10,zAe={nodeOrigin:[0,0],nodeExtent:SV,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},hln={...zAe,checkEquality:!0};function FAe(l,s){const u={...l};for(const h in s)s[h]!==void 0&&(u[h]=s[h]);return u}function dln(l,s,u){const h=FAe(zAe,u);for(const g of l.values())if(g.parentId)HAe(g,l,s,h);else{const m=KV(g,h.nodeOrigin),p=iR(g.extent)?g.extent:h.nodeExtent,O=FM(m,p,SO(g));g.internals.positionAbsolute=O}}function gln(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 qAe(l){return l==="manual"}function OMe(l,s,u,h={}){var C,N;const g=FAe(hln,h),m={i:0},p=new Map(s),O=g!=null&&g.elevateNodesOnSelect&&!qAe(g.zIndexMode)?Gkt:0;let j=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 I=KV(_,g.nodeOrigin),q=iR(_.extent)?_.extent:g.nodeExtent,z=FM(I,q,SO(_));P={...g.defaults,..._,measured:{width:(C=_.measured)==null?void 0:C.width,height:(N=_.measured)==null?void 0:N.height},internals:{positionAbsolute:z,handleBounds:gln(_,P),z:Qkt(_,O,g.zIndexMode),userNode:_}},s.set(_.id,P)}(P.measured===void 0||P.measured.width===void 0||P.measured.height===void 0)&&!P.hidden&&(j=!1),_.parentId&&HAe(P,s,u,h,m)}return j}function pln(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 HAe(l,s,u,h,g){const{elevateNodesOnSelect:m,nodeOrigin:p,nodeExtent:O,zIndexMode:j}=FAe(zAe,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}pln(l,u),g&&!N.parentId&&N.internals.rootParentIndex===void 0&&j==="auto"&&(N.internals.rootParentIndex=++g.i,N.internals.z=N.internals.z+g.i*fln),g&&N.internals.rootParentIndex!==void 0&&(g.i=N.internals.rootParentIndex);const _=m&&!qAe(j)?Gkt:0,{x:P,y:I,z:q}=mln(l,N,p,O,_,j),{positionAbsolute:z}=l.internals,X=P!==z.x||I!==z.y;(X||q!==l.internals.z)&&s.set(l.id,{...l,internals:{...l.internals,positionAbsolute:X?{x:P,y:I}:z,z:q}})}function Qkt(l,s,u){const h=Nx(l.zIndex)?l.zIndex:0;return qAe(u)?h:h+(l.selected?s:0)}function mln(l,s,u,h,g,m){const{x:p,y:O}=s.internals.positionAbsolute,j=SO(l),C=KV(l,u),N=iR(l.extent)?FM(C,l.extent,j):C;let _=FM({x:p+N.x,y:O+N.y},h,j);l.extent==="parent"&&(_=Nkt(_,j,s));const P=Qkt(l,g,m),I=s.internals.z??0;return{x:_.x,y:_.y,z:I>=P?I+1:P}}function GAe(l,s,u,h=[0,0]){var p;const g=[],m=new Map;for(const O of l){const j=s.get(O.parentId);if(!j)continue;const C=((p=m.get(O.parentId))==null?void 0:p.expandedRect)??nR(j),N=Dkt(C,O.rect);m.set(O.parentId,{expandedRect:N,parent:j})}return m.size>0&&m.forEach(({expandedRect:O,parent:j},C)=>{var V;const N=j.internals.positionAbsolute,_=SO(j),P=j.origin??h,I=O.x<N.x?Math.round(Math.abs(N.x-O.x)):0,q=O.y<N.y?Math.round(Math.abs(N.y-O.y)):0,z=Math.max(_.width,Math.round(O.width)),X=Math.max(_.height,Math.round(O.height)),Q=(z-_.width)*P[0],te=(X-_.height)*P[1];(I>0||q>0||Q||te)&&(g.push({id:C,type:"position",position:{x:j.position.x-I+Q,y:j.position.y-q+te}}),(V=u.get(C))==null||V.forEach(ne=>{l.some(ce=>ce.id===ne.id)||g.push({id:ne.id,type:"position",position:{x:ne.position.x+I,y:ne.position.y+q}})})),(_.width<O.width||_.height<O.height||I||q)&&g.push({id:C,type:"dimensions",setAttributes:!0,dimensions:{width:z+(I?P[0]*I-Q:0),height:X+(q?P[1]*q-te:0)}})}),g}function bln(l,s,u,h,g,m,p){const O=h==null?void 0:h.querySelector(".xyflow__viewport");let j=!1;if(!O)return{changes:[],updatedInternals:j};const C=[],N=window.getComputedStyle(O),{m22:_}=new window.DOMMatrixReadOnly(N.transform),P=[];for(const I of l.values()){const q=s.get(I.id);if(!q)continue;if(q.hidden){s.set(q.id,{...q,internals:{...q.internals,handleBounds:void 0}}),j=!0;continue}const z=BAe(I.nodeElement),X=q.measured.width!==z.width||q.measured.height!==z.height;if(!!(z.width&&z.height&&(X||!q.internals.handleBounds||I.force))){const te=I.nodeElement.getBoundingClientRect(),V=iR(q.extent)?q.extent:m;let{positionAbsolute:ne}=q.internals;q.parentId&&q.extent==="parent"?ne=Nkt(ne,z,s.get(q.parentId)):V&&(ne=FM(ne,V,z));const ce={...q,measured:z,internals:{...q.internals,positionAbsolute:ne,handleBounds:{source:Myt("source",I.nodeElement,te,_,q.id),target:Myt("target",I.nodeElement,te,_,q.id)}}};s.set(q.id,ce),q.parentId&&HAe(ce,s,u,{nodeOrigin:g,zIndexMode:p}),j=!0,X&&(C.push({id:q.id,type:"dimensions",dimensions:z}),q.expandParent&&q.parentId&&P.push({id:q.id,parentId:q.parentId,rect:nR(ce,g)}))}}if(P.length>0){const I=GAe(P,s,u,g);C.push(...I)}return{changes:C,updatedInternals:j}}async function wln({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),O=!!p&&(p.x!==u[0]||p.y!==u[1]||p.k!==u[2]);return Promise.resolve(O)}function Iyt(l,s,u,h,g,m){let p=g;const O=h.get(p)||new Map;h.set(p,O.set(u,s)),p=`${g}-${l}`;const j=h.get(p)||new Map;if(h.set(p,j.set(u,s)),m){p=`${g}-${l}-${m}`;const C=h.get(p)||new Map;h.set(p,C.set(u,s))}}function Ukt(l,s,u){l.clear(),s.clear();for(const h of u){const{source:g,target:m,sourceHandle:p=null,targetHandle:O=null}=h,j={edgeId:h.id,source:g,target:m,sourceHandle:p,targetHandle:O},C=`${g}-${p}--${m}-${O}`,N=`${m}-${O}--${g}-${p}`;Iyt("source",j,N,l,g,p),Iyt("target",j,C,l,m,O),s.set(h.id,h)}}function Jkt(l,s){if(!l.parentId)return!1;const u=s.get(l.parentId);return u?u.selected?!0:Jkt(u,s):!1}function Ryt(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 vln(l,s,u,h){const g=new Map;for(const[m,p]of l)if((p.selected||p.id===h)&&(!p.parentId||!Jkt(p,l))&&(p.draggable||s&&typeof p.draggable>"u")){const O=l.get(m);O&&g.set(m,{id:m,position:O.position||{x:0,y:0},distance:{x:u.x-O.internals.positionAbsolute.x,y:u.y-O.internals.positionAbsolute.y},extent:O.extent,parentId:O.parentId,origin:O.origin,expandParent:O.expandParent,internals:{positionAbsolute:O.internals.positionAbsolute||{x:0,y:0}},measured:{width:O.measured.width??0,height:O.measured.height??0}})}return g}function oEe({nodeId:l,dragItems:s,nodeLookup:u,dragging:h=!0}){var p,O,j;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=(O=u.get(l))==null?void 0:O.internals.userNode;return[m?{...m,position:((j=s.get(l))==null?void 0:j.position)||m.position,dragging:h}:g[0],g]}function xln({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=ZV(m,s);return{x:p.x-m.x,y:p.y-m.y}}function yln({onNodeMouseDown:l,getStoreItems:s,onDragStart:u,onDrag:h,onDragStop:g}){let m={x:null,y:null},p=0,O=new Map,j=!1,C={x:0,y:0},N=null,_=!1,P=null,I=!1,q=!1,z=null;function X({noDragClassName:te,handleSelector:V,domNode:ne,isSelectable:ce,nodeId:se,nodeClickDistance:me=0}){P=rb(ne);function ye({x:le,y:W}){const{nodeLookup:pe,nodeExtent:je,snapGrid:ue,snapToGrid:ve,nodeOrigin:xe,onNodeDrag:Ee,onSelectionDrag:tt,onError:Te,updateNodePositions:et}=s();m={x:le,y:W};let Ie=!1;const Ye=O.size>1,Je=Ye&&je?xMe(YV(O)):null,_t=Ye&&ve?xln({dragItems:O,snapGrid:ue,x:le,y:W}):null;for(const[nn,an]of O){if(!pe.has(nn))continue;let Jn={x:le-an.distance.x,y:W-an.distance.y};ve&&(Jn=_t?{x:Math.round(Jn.x+_t.x),y:Math.round(Jn.y+_t.y)}:ZV(Jn,ue));let rr=null;if(Ye&&je&&!an.extent&&Je){const{positionAbsolute:xi}=an.internals,Kr=xi.x-Je.x+je[0][0],mo=xi.x+an.measured.width-Je.x2+je[1][0],hs=xi.y-Je.y+je[0][1],Fo=xi.y+an.measured.height-Je.y2+je[1][1];rr=[[Kr,hs],[mo,Fo]]}const{position:ei,positionAbsolute:Ei}=Akt({nodeId:nn,nextPosition:Jn,nodeLookup:pe,nodeExtent:rr||je,nodeOrigin:xe,onError:Te});Ie=Ie||an.position.x!==ei.x||an.position.y!==ei.y,an.position=ei,an.internals.positionAbsolute=Ei}if(q=q||Ie,!!Ie&&(et(O,!0),z&&(h||Ee||!se&&tt))){const[nn,an]=oEe({nodeId:se,dragItems:O,nodeLookup:pe});h==null||h(z,O,nn,an),Ee==null||Ee(z,nn,an),se||tt==null||tt(z,an)}}async function qe(){if(!N)return;const{transform:le,panBy:W,autoPanSpeed:pe,autoPanOnNodeDrag:je}=s();if(!je){j=!1,cancelAnimationFrame(p);return}const[ue,ve]=_kt(C,N,pe);(ue!==0||ve!==0)&&(m.x=(m.x??0)-ue/le[2],m.y=(m.y??0)-ve/le[2],await W({x:ue,y:ve})&&ye(m)),p=requestAnimationFrame(qe)}function Be(le){var Ye;const{nodeLookup:W,multiSelectionActive:pe,nodesDraggable:je,transform:ue,snapGrid:ve,snapToGrid:xe,selectNodesOnDrag:Ee,onNodeDragStart:tt,onSelectionDragStart:Te,unselectNodesAndEdges:et}=s();_=!0,(!Ee||!ce)&&!pe&&se&&((Ye=W.get(se))!=null&&Ye.selected||et()),ce&&Ee&&se&&(l==null||l(se));const Ie=fV(le.sourceEvent,{transform:ue,snapGrid:ve,snapToGrid:xe,containerBounds:N});if(m=Ie,O=vln(W,je,Ie,se),O.size>0&&(u||tt||!se&&Te)){const[Je,_t]=oEe({nodeId:se,dragItems:O,nodeLookup:W});u==null||u(le.sourceEvent,O,Je,_t),tt==null||tt(le.sourceEvent,Je,_t),se||Te==null||Te(le.sourceEvent,_t)}}const ke=ukt().clickDistance(me).on("start",le=>{const{domNode:W,nodeDragThreshold:pe,transform:je,snapGrid:ue,snapToGrid:ve}=s();N=(W==null?void 0:W.getBoundingClientRect())||null,I=!1,q=!1,z=le.sourceEvent,pe===0&&Be(le),m=fV(le.sourceEvent,{transform:je,snapGrid:ue,snapToGrid:ve,containerBounds:N}),C=_x(le.sourceEvent,N)}).on("drag",le=>{const{autoPanOnNodeDrag:W,transform:pe,snapGrid:je,snapToGrid:ue,nodeDragThreshold:ve,nodeLookup:xe}=s(),Ee=fV(le.sourceEvent,{transform:pe,snapGrid:je,snapToGrid:ue,containerBounds:N});if(z=le.sourceEvent,(le.sourceEvent.type==="touchmove"&&le.sourceEvent.touches.length>1||se&&!xe.has(se))&&(I=!0),!I){if(!j&&W&&_&&(j=!0,qe()),!_){const tt=_x(le.sourceEvent,N),Te=tt.x-C.x,et=tt.y-C.y;Math.sqrt(Te*Te+et*et)>ve&&Be(le)}(m.x!==Ee.xSnapped||m.y!==Ee.ySnapped)&&O&&_&&(C=_x(le.sourceEvent,N),ye(Ee))}}).on("end",le=>{if(!(!_||I)&&(j=!1,_=!1,cancelAnimationFrame(p),O.size>0)){const{nodeLookup:W,updateNodePositions:pe,onNodeDragStop:je,onSelectionDragStop:ue}=s();if(q&&(pe(O,!1),q=!1),g||je||!se&&ue){const[ve,xe]=oEe({nodeId:se,dragItems:O,nodeLookup:W,dragging:!1});g==null||g(le.sourceEvent,O,ve,xe),je==null||je(le.sourceEvent,ve,xe),se||ue==null||ue(le.sourceEvent,xe)}}}).filter(le=>{const W=le.target;return!le.button&&(!te||!Ryt(W,`.${te}`,ne))&&(!V||Ryt(W,V,ne))});P.call(ke)}function Q(){P==null||P.on(".drag",null)}return{update:X,destroy:Q}}function kln(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())TV(g,nR(m))>0&&h.push(m);return h}const Oln=250;function jln(l,s,u,h){var O,j;let g=[],m=1/0;const p=kln(l,u,s+Oln);for(const C of p){const N=[...((O=C.internals.handleBounds)==null?void 0:O.source)??[],...((j=C.internals.handleBounds)==null?void 0:j.target)??[]];for(const _ of N){if(h.nodeId===_.nodeId&&h.type===_.type&&h.id===_.id)continue;const{x:P,y:I}=qM(C,_,_.position,!0),q=Math.sqrt(Math.pow(P-l.x,2)+Math.pow(I-l.y,2));q>s||(q<m?(g=[{..._,x:P,y:I}],m=q):q===m&&g.push({..._,x:P,y:I}))}}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 Wkt(l,s,u,h,g,m=!1){var C,N,_;const p=h.get(l);if(!p)return null;const O=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)??[]],j=(u?O==null?void 0:O.find(P=>P.id===u):O==null?void 0:O[0])??null;return j&&m?{...j,...qM(p,j,j.position,!0)}:j}function Vkt(l,s){return l||(s!=null&&s.classList.contains("target")?"target":s!=null&&s.classList.contains("source")?"source":null)}function Sln(l,s){let u=null;return s?u=!0:l&&!s&&(u=!1),u}const Xkt=()=>!0;function Tln(l,{connectionMode:s,connectionRadius:u,handleId:h,nodeId:g,edgeUpdaterType:m,isTarget:p,domNode:O,nodeLookup:j,lib:C,autoPanOnConnect:N,flowId:_,panBy:P,cancelConnection:I,onConnectStart:q,onConnect:z,onConnectEnd:X,isValidConnection:Q=Xkt,onReconnectEnd:te,updateConnection:V,getTransform:ne,getFromHandle:ce,autoPanSpeed:se,dragThreshold:me=1,handleDomNode:ye}){const qe=Ikt(l.target);let Be=0,ke;const{x:le,y:W}=_x(l),pe=Vkt(m,ye),je=O==null?void 0:O.getBoundingClientRect();let ue=!1;if(!je||!pe)return;const ve=Wkt(g,pe,h,j,s);if(!ve)return;let xe=_x(l,je),Ee=!1,tt=null,Te=!1,et=null;function Ie(){if(!N||!je)return;const[ei,Ei]=_kt(xe,je,se);P({x:ei,y:Ei}),Be=requestAnimationFrame(Ie)}const Ye={...ve,nodeId:g,type:pe,position:ve.position},Je=j.get(g);let nn={inProgress:!0,isValid:null,from:qM(Je,Ye,ir.Left,!0),fromHandle:Ye,fromPosition:Ye.position,fromNode:Je,to:xe,toHandle:null,toPosition:Syt[Ye.position],toNode:null,pointer:xe};function an(){ue=!0,V(nn),q==null||q(l,{nodeId:g,handleId:h,handleType:pe})}me===0&&an();function Jn(ei){if(!ue){const{x:Fo,y:Bn}=_x(ei),zs=Fo-le,Ji=Bn-W;if(!(zs*zs+Ji*Ji>me*me))return;an()}if(!ce()||!Ye){rr(ei);return}const Ei=ne();xe=_x(ei,je),ke=jln(eX(xe,Ei,!1,[1,1]),u,j,Ye),Ee||(Ie(),Ee=!0);const xi=Kkt(ei,{handle:ke,connectionMode:s,fromNodeId:g,fromHandleId:h,fromType:p?"target":"source",isValidConnection:Q,doc:qe,lib:C,flowId:_,nodeLookup:j});et=xi.handleDomNode,tt=xi.connection,Te=Sln(!!ke,xi.isValid);const Kr=j.get(g),mo=Kr?qM(Kr,Ye,ir.Left,!0):nn.from,hs={...nn,from:mo,isValid:Te,to:xi.toHandle&&Te?Mhe({x:xi.toHandle.x,y:xi.toHandle.y},Ei):xe,toHandle:xi.toHandle,toPosition:Te&&xi.toHandle?xi.toHandle.position:Syt[Ye.position],toNode:xi.toHandle?j.get(xi.toHandle.nodeId):null,pointer:xe};V(hs),nn=hs}function rr(ei){if(!("touches"in ei&&ei.touches.length>0)){if(ue){(ke||et)&&tt&&Te&&(z==null||z(tt));const{inProgress:Ei,...xi}=nn,Kr={...xi,toPosition:nn.toHandle?nn.toPosition:null};X==null||X(ei,Kr),m&&(te==null||te(ei,Kr))}I(),cancelAnimationFrame(Be),Ee=!1,Te=!1,tt=null,et=null,qe.removeEventListener("mousemove",Jn),qe.removeEventListener("mouseup",rr),qe.removeEventListener("touchmove",Jn),qe.removeEventListener("touchend",rr)}}qe.addEventListener("mousemove",Jn),qe.addEventListener("mouseup",rr),qe.addEventListener("touchmove",Jn),qe.addEventListener("touchend",rr)}function Kkt(l,{handle:s,connectionMode:u,fromNodeId:h,fromHandleId:g,fromType:m,doc:p,lib:O,flowId:j,isValidConnection:C=Xkt,nodeLookup:N}){const _=m==="target",P=s?p.querySelector(`.${O}-flow__handle[data-id="${j}-${s==null?void 0:s.nodeId}-${s==null?void 0:s.id}-${s==null?void 0:s.type}"]`):null,{x:I,y:q}=_x(l),z=p.elementFromPoint(I,q),X=z!=null&&z.classList.contains(`${O}-flow__handle`)?z:P,Q={handleDomNode:X,isValid:!1,connection:null,toHandle:null};if(X){const te=Vkt(void 0,X),V=X.getAttribute("data-nodeid"),ne=X.getAttribute("data-handleid"),ce=X.classList.contains("connectable"),se=X.classList.contains("connectableend");if(!V||!te)return Q;const me={source:_?V:h,sourceHandle:_?ne:g,target:_?h:V,targetHandle:_?g:ne};Q.connection=me;const qe=ce&&se&&(u===ZI.Strict?_&&te==="source"||!_&&te==="target":V!==h||ne!==g);Q.isValid=qe&&C(me),Q.toHandle=Wkt(V,te,ne,N,u,!0)}return Q}const jMe={onPointerDown:Tln,isValid:Kkt};function Cln({domNode:l,panZoom:s,getTransform:u,getViewScale:h}){const g=rb(l);function m({translateExtent:O,width:j,height:C,zoomStep:N=1,pannable:_=!0,zoomable:P=!0,inversePan:I=!1}){const q=V=>{if(V.sourceEvent.type!=="wheel"||!s)return;const ne=u(),ce=V.sourceEvent.ctrlKey&&CV()?10:1,se=-V.sourceEvent.deltaY*(V.sourceEvent.deltaMode===1?.05:V.sourceEvent.deltaMode?1:.002)*N,me=ne[2]*Math.pow(2,se*ce);s.scaleTo(me)};let z=[0,0];const X=V=>{(V.sourceEvent.type==="mousedown"||V.sourceEvent.type==="touchstart")&&(z=[V.sourceEvent.clientX??V.sourceEvent.touches[0].clientX,V.sourceEvent.clientY??V.sourceEvent.touches[0].clientY])},Q=V=>{const ne=u();if(V.sourceEvent.type!=="mousemove"&&V.sourceEvent.type!=="touchmove"||!s)return;const ce=[V.sourceEvent.clientX??V.sourceEvent.touches[0].clientX,V.sourceEvent.clientY??V.sourceEvent.touches[0].clientY],se=[ce[0]-z[0],ce[1]-z[1]];z=ce;const me=h()*Math.max(ne[2],Math.log(ne[2]))*(I?-1:1),ye={x:ne[0]-se[0]*me,y:ne[1]-se[1]*me},qe=[[0,0],[j,C]];s.setViewportConstrained({x:ye.x,y:ye.y,zoom:ne[2]},qe,O)},te=jkt().on("start",X).on("zoom",_?Q:null).on("zoom.wheel",P?q:null);g.call(te,{})}function p(){g.on("zoom",null)}return{update:m,destroy:p,pointer:Ex}}const vde=l=>({x:l.x,y:l.y,zoom:l.k}),cEe=({x:l,y:s,zoom:u})=>mde.translate(l,s).scale(u),LI=(l,s)=>l.target.closest(`.${s}`),Ykt=(l,s)=>s===2&&Array.isArray(l)&&l.includes(2),Eln=l=>((l*=2)<=1?l*l*l:(l-=2)*l*l+2)/2,lEe=(l,s=0,u=Eln,h=()=>{})=>{const g=typeof s=="number"&&s>0;return g||h(),g?l.transition().duration(s).ease(u).on("end",h):l},Zkt=l=>{const s=l.ctrlKey&&CV()?10:1;return-l.deltaY*(l.deltaMode===1?.05:l.deltaMode?1:.002)*s};function Mln({zoomPanValues:l,noWheelClassName:s,d3Selection:u,d3Zoom:h,panOnScrollMode:g,panOnScrollSpeed:m,zoomOnPinch:p,onPanZoomStart:O,onPanZoom:j,onPanZoomEnd:C}){return N=>{if(LI(N,s))return N.ctrlKey&&N.preventDefault(),!1;N.preventDefault(),N.stopImmediatePropagation();const _=u.property("__zoom").k||1;if(N.ctrlKey&&p){const X=Ex(N),Q=Zkt(N),te=_*Math.pow(2,Q);h.scaleTo(u,te,X,N);return}const P=N.deltaMode===1?20:1;let I=g===PM.Vertical?0:N.deltaX*P,q=g===PM.Horizontal?0:N.deltaY*P;!CV()&&N.shiftKey&&g!==PM.Vertical&&(I=N.deltaY*P,q=0),h.translateBy(u,-(I/_)*m,-(q/_)*m,{internal:!0});const z=vde(u.property("__zoom"));clearTimeout(l.panScrollTimeout),l.isPanScrolling?(j==null||j(N,z),l.panScrollTimeout=setTimeout(()=>{C==null||C(N,z),l.isPanScrolling=!1},150)):(l.isPanScrolling=!0,O==null||O(N,z))}}function Aln({noWheelClassName:l,preventScrolling:s,d3ZoomHandler:u}){return function(h,g){const m=h.type==="wheel",p=!s&&m&&!h.ctrlKey,O=LI(h,l);if(h.ctrlKey&&m&&O&&h.preventDefault(),p||O)return null;h.preventDefault(),u.call(this,h,g)}}function Nln({zoomPanValues:l,onDraggingChange:s,onPanZoomStart:u}){return h=>{var m,p,O;if((m=h.sourceEvent)!=null&&m.internal)return;const g=vde(h.transform);l.mouseButton=((p=h.sourceEvent)==null?void 0:p.button)||0,l.isZoomingOrPanning=!0,l.prevViewport=g,((O=h.sourceEvent)==null?void 0:O.type)==="mousedown"&&s(!0),u&&(u==null||u(h.sourceEvent,g))}}function _ln({zoomPanValues:l,panOnDrag:s,onPaneContextMenu:u,onTransformChange:h,onPanZoom:g}){return m=>{var p,O;l.usedRightMouseButton=!!(u&&Ykt(s,l.mouseButton??0)),(p=m.sourceEvent)!=null&&p.sync||h([m.transform.x,m.transform.y,m.transform.k]),g&&!((O=m.sourceEvent)!=null&&O.internal)&&(g==null||g(m.sourceEvent,vde(m.transform)))}}function Dln({zoomPanValues:l,panOnDrag:s,panOnScroll:u,onDraggingChange:h,onPanZoomEnd:g,onPaneContextMenu:m}){return p=>{var O;if(!((O=p.sourceEvent)!=null&&O.internal)&&(l.isZoomingOrPanning=!1,m&&Ykt(s,l.mouseButton??0)&&!l.usedRightMouseButton&&p.sourceEvent&&m(p.sourceEvent),l.usedRightMouseButton=!1,h(!1),g)){const j=vde(p.transform);l.prevViewport=j,clearTimeout(l.timerId),l.timerId=setTimeout(()=>{g==null||g(p.sourceEvent,j)},u?150:0)}}}function Lln({zoomActivationKeyPressed:l,zoomOnScroll:s,zoomOnPinch:u,panOnDrag:h,panOnScroll:g,zoomOnDoubleClick:m,userSelectionActive:p,noWheelClassName:O,noPanClassName:j,lib:C,connectionInProgress:N}){return _=>{var X;const P=l||s,I=u&&_.ctrlKey,q=_.type==="wheel";if(_.button===1&&_.type==="mousedown"&&(LI(_,`${C}-flow__node`)||LI(_,`${C}-flow__edge`)))return!0;if(!h&&!P&&!g&&!m&&!u||p||N&&!q||LI(_,O)&&q||LI(_,j)&&(!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&&!I&&q||!h&&(_.type==="mousedown"||_.type==="touchstart")||Array.isArray(h)&&!h.includes(_.button)&&_.type==="mousedown")return!1;const z=Array.isArray(h)&&h.includes(_.button)||!_.button||_.button<=1;return(!_.ctrlKey||q)&&z}}function Pln({domNode:l,minZoom:s,maxZoom:u,translateExtent:h,viewport:g,onPanZoom:m,onPanZoomStart:p,onPanZoomEnd:O,onDraggingChange:j}){const C={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},N=l.getBoundingClientRect(),_=jkt().scaleExtent([s,u]).translateExtent(h),P=rb(l).call(_);te({x:g.x,y:g.y,zoom:tR(g.zoom,s,u)},[[0,0],[N.width,N.height]],h);const I=P.on("wheel.zoom"),q=P.on("dblclick.zoom");_.wheelDelta(Zkt);function z(ke,le){return P?new Promise(W=>{_==null||_.interpolate((le==null?void 0:le.interpolate)==="linear"?aV:nhe).transform(lEe(P,le==null?void 0:le.duration,le==null?void 0:le.ease,()=>W(!0)),ke)}):Promise.resolve(!1)}function X({noWheelClassName:ke,noPanClassName:le,onPaneContextMenu:W,userSelectionActive:pe,panOnScroll:je,panOnDrag:ue,panOnScrollMode:ve,panOnScrollSpeed:xe,preventScrolling:Ee,zoomOnPinch:tt,zoomOnScroll:Te,zoomOnDoubleClick:et,zoomActivationKeyPressed:Ie,lib:Ye,onTransformChange:Je,connectionInProgress:_t,paneClickDistance:nn,selectionOnDrag:an}){pe&&!C.isZoomingOrPanning&&Q();const Jn=je&&!Ie&&!pe;_.clickDistance(an?1/0:!Nx(nn)||nn<0?0:nn);const rr=Jn?Mln({zoomPanValues:C,noWheelClassName:ke,d3Selection:P,d3Zoom:_,panOnScrollMode:ve,panOnScrollSpeed:xe,zoomOnPinch:tt,onPanZoomStart:p,onPanZoom:m,onPanZoomEnd:O}):Aln({noWheelClassName:ke,preventScrolling:Ee,d3ZoomHandler:I});if(P.on("wheel.zoom",rr,{passive:!1}),!pe){const Ei=Nln({zoomPanValues:C,onDraggingChange:j,onPanZoomStart:p});_.on("start",Ei);const xi=_ln({zoomPanValues:C,panOnDrag:ue,onPaneContextMenu:!!W,onPanZoom:m,onTransformChange:Je});_.on("zoom",xi);const Kr=Dln({zoomPanValues:C,panOnDrag:ue,panOnScroll:je,onPaneContextMenu:W,onPanZoomEnd:O,onDraggingChange:j});_.on("end",Kr)}const ei=Lln({zoomActivationKeyPressed:Ie,panOnDrag:ue,zoomOnScroll:Te,panOnScroll:je,zoomOnDoubleClick:et,zoomOnPinch:tt,userSelectionActive:pe,noPanClassName:le,noWheelClassName:ke,lib:Ye,connectionInProgress:_t});_.filter(ei),et?P.on("dblclick.zoom",q):P.on("dblclick.zoom",null)}function Q(){_.on("zoom",null)}async function te(ke,le,W){const pe=cEe(ke),je=_==null?void 0:_.constrain()(pe,le,W);return je&&await z(je),new Promise(ue=>ue(je))}async function V(ke,le){const W=cEe(ke);return await z(W,le),new Promise(pe=>pe(W))}function ne(ke){if(P){const le=cEe(ke),W=P.property("__zoom");(W.k!==ke.zoom||W.x!==ke.x||W.y!==ke.y)&&(_==null||_.transform(P,le,null,{sync:!0}))}}function ce(){const ke=P?Okt(P.node()):{x:0,y:0,k:1};return{x:ke.x,y:ke.y,zoom:ke.k}}function se(ke,le){return P?new Promise(W=>{_==null||_.interpolate((le==null?void 0:le.interpolate)==="linear"?aV:nhe).scaleTo(lEe(P,le==null?void 0:le.duration,le==null?void 0:le.ease,()=>W(!0)),ke)}):Promise.resolve(!1)}function me(ke,le){return P?new Promise(W=>{_==null||_.interpolate((le==null?void 0:le.interpolate)==="linear"?aV:nhe).scaleBy(lEe(P,le==null?void 0:le.duration,le==null?void 0:le.ease,()=>W(!0)),ke)}):Promise.resolve(!1)}function ye(ke){_==null||_.scaleExtent(ke)}function qe(ke){_==null||_.translateExtent(ke)}function Be(ke){const le=!Nx(ke)||ke<0?0:ke;_==null||_.clickDistance(le)}return{update:X,destroy:Q,setViewport:V,setViewportConstrained:te,getViewport:ce,scaleTo:se,scaleBy:me,setScaleExtent:ye,setTranslateExtent:qe,syncViewport:ne,setClickDistance:Be}}var rR;(function(l){l.Line="line",l.Handle="handle"})(rR||(rR={}));function Iln({width:l,prevWidth:s,height:u,prevHeight:h,affectsX:g,affectsY:m}){const p=l-s,O=u-h,j=[p>0?1:p<0?-1:0,O>0?1:O<0?-1:0];return p&&g&&(j[0]=j[0]*-1),O&&m&&(j[1]=j[1]*-1),j}function $yt(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 S9(l,s){return Math.max(0,s-l)}function T9(l,s){return Math.max(0,l-s)}function bfe(l,s,u){return Math.max(0,s-l,l-u)}function Byt(l,s){return l?!s:s}function Rln(l,s,u,h,g,m,p,O){let{affectsX:j,affectsY:C}=s;const{isHorizontal:N,isVertical:_}=s,P=N&&_,{xSnapped:I,ySnapped:q}=u,{minWidth:z,maxWidth:X,minHeight:Q,maxHeight:te}=h,{x:V,y:ne,width:ce,height:se,aspectRatio:me}=l;let ye=Math.floor(N?I-l.pointerX:0),qe=Math.floor(_?q-l.pointerY:0);const Be=ce+(j?-ye:ye),ke=se+(C?-qe:qe),le=-m[0]*ce,W=-m[1]*se;let pe=bfe(Be,z,X),je=bfe(ke,Q,te);if(p){let xe=0,Ee=0;j&&ye<0?xe=S9(V+ye+le,p[0][0]):!j&&ye>0&&(xe=T9(V+Be+le,p[1][0])),C&&qe<0?Ee=S9(ne+qe+W,p[0][1]):!C&&qe>0&&(Ee=T9(ne+ke+W,p[1][1])),pe=Math.max(pe,xe),je=Math.max(je,Ee)}if(O){let xe=0,Ee=0;j&&ye>0?xe=T9(V+ye,O[0][0]):!j&&ye<0&&(xe=S9(V+Be,O[1][0])),C&&qe>0?Ee=T9(ne+qe,O[0][1]):!C&&qe<0&&(Ee=S9(ne+ke,O[1][1])),pe=Math.max(pe,xe),je=Math.max(je,Ee)}if(g){if(N){const xe=bfe(Be/me,Q,te)*me;if(pe=Math.max(pe,xe),p){let Ee=0;!j&&!C||j&&!C&&P?Ee=T9(ne+W+Be/me,p[1][1])*me:Ee=S9(ne+W+(j?ye:-ye)/me,p[0][1])*me,pe=Math.max(pe,Ee)}if(O){let Ee=0;!j&&!C||j&&!C&&P?Ee=S9(ne+Be/me,O[1][1])*me:Ee=T9(ne+(j?ye:-ye)/me,O[0][1])*me,pe=Math.max(pe,Ee)}}if(_){const xe=bfe(ke*me,z,X)/me;if(je=Math.max(je,xe),p){let Ee=0;!j&&!C||C&&!j&&P?Ee=T9(V+ke*me+le,p[1][0])/me:Ee=S9(V+(C?qe:-qe)*me+le,p[0][0])/me,je=Math.max(je,Ee)}if(O){let Ee=0;!j&&!C||C&&!j&&P?Ee=S9(V+ke*me,O[1][0])/me:Ee=T9(V+(C?qe:-qe)*me,O[0][0])/me,je=Math.max(je,Ee)}}}qe=qe+(qe<0?je:-je),ye=ye+(ye<0?pe:-pe),g&&(P?Be>ke*me?qe=(Byt(j,C)?-ye:ye)/me:ye=(Byt(j,C)?-qe:qe)*me:N?(qe=ye/me,C=j):(ye=qe*me,j=C));const ue=j?V+ye:V,ve=C?ne+qe:ne;return{width:ce+(j?-ye:ye),height:se+(C?-qe:qe),x:m[0]*ye*(j?-1:1)+ue,y:m[1]*qe*(C?-1:1)+ve}}const eOt={width:0,height:0,x:0,y:0},$ln={...eOt,pointerX:0,pointerY:0,aspectRatio:1};function Bln(l){return[[0,0],[l.measured.width,l.measured.height]]}function zln(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,O=u[0]*m,j=u[1]*p;return[[h-O,g-j],[h+m-O,g+p-j]]}function Fln({domNode:l,nodeId:s,getStoreItems:u,onChange:h,onEnd:g}){const m=rb(l);let p={controlDirection:$yt("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function O({controlPosition:C,boundaries:N,keepAspectRatio:_,resizeDirection:P,onResizeStart:I,onResize:q,onResizeEnd:z,shouldResize:X}){let Q={...eOt},te={...$ln};p={boundaries:N,resizeDirection:P,keepAspectRatio:_,controlDirection:$yt(C)};let V,ne=null,ce=[],se,me,ye,qe=!1;const Be=ukt().on("start",ke=>{const{nodeLookup:le,transform:W,snapGrid:pe,snapToGrid:je,nodeOrigin:ue,paneDomNode:ve}=u();if(V=le.get(s),!V)return;ne=(ve==null?void 0:ve.getBoundingClientRect())??null;const{xSnapped:xe,ySnapped:Ee}=fV(ke.sourceEvent,{transform:W,snapGrid:pe,snapToGrid:je,containerBounds:ne});Q={width:V.measured.width??0,height:V.measured.height??0,x:V.position.x??0,y:V.position.y??0},te={...Q,pointerX:xe,pointerY:Ee,aspectRatio:Q.width/Q.height},se=void 0,V.parentId&&(V.extent==="parent"||V.expandParent)&&(se=le.get(V.parentId),me=se&&V.extent==="parent"?Bln(se):void 0),ce=[],ye=void 0;for(const[tt,Te]of le)if(Te.parentId===s&&(ce.push({id:tt,position:{...Te.position},extent:Te.extent}),Te.extent==="parent"||Te.expandParent)){const et=zln(Te,V,Te.origin??ue);ye?ye=[[Math.min(et[0][0],ye[0][0]),Math.min(et[0][1],ye[0][1])],[Math.max(et[1][0],ye[1][0]),Math.max(et[1][1],ye[1][1])]]:ye=et}I==null||I(ke,{...Q})}).on("drag",ke=>{const{transform:le,snapGrid:W,snapToGrid:pe,nodeOrigin:je}=u(),ue=fV(ke.sourceEvent,{transform:le,snapGrid:W,snapToGrid:pe,containerBounds:ne}),ve=[];if(!V)return;const{x:xe,y:Ee,width:tt,height:Te}=Q,et={},Ie=V.origin??je,{width:Ye,height:Je,x:_t,y:nn}=Rln(te,p.controlDirection,ue,p.boundaries,p.keepAspectRatio,Ie,me,ye),an=Ye!==tt,Jn=Je!==Te,rr=_t!==xe&&an,ei=nn!==Ee&&Jn;if(!rr&&!ei&&!an&&!Jn)return;if((rr||ei||Ie[0]===1||Ie[1]===1)&&(et.x=rr?_t:Q.x,et.y=ei?nn:Q.y,Q.x=et.x,Q.y=et.y,ce.length>0)){const mo=_t-xe,hs=nn-Ee;for(const Fo of ce)Fo.position={x:Fo.position.x-mo+Ie[0]*(Ye-tt),y:Fo.position.y-hs+Ie[1]*(Je-Te)},ve.push(Fo)}if((an||Jn)&&(et.width=an&&(!p.resizeDirection||p.resizeDirection==="horizontal")?Ye:Q.width,et.height=Jn&&(!p.resizeDirection||p.resizeDirection==="vertical")?Je:Q.height,Q.width=et.width,Q.height=et.height),se&&V.expandParent){const mo=Ie[0]*(et.width??0);et.x&&et.x<mo&&(Q.x=mo,te.x=te.x-(et.x-mo));const hs=Ie[1]*(et.height??0);et.y&&et.y<hs&&(Q.y=hs,te.y=te.y-(et.y-hs))}const Ei=Iln({width:Q.width,prevWidth:tt,height:Q.height,prevHeight:Te,affectsX:p.controlDirection.affectsX,affectsY:p.controlDirection.affectsY}),xi={...Q,direction:Ei};(X==null?void 0:X(ke,xi))!==!1&&(qe=!0,q==null||q(ke,xi),h(et,ve))}).on("end",ke=>{qe&&(z==null||z(ke,{...Q}),g==null||g({...Q}),qe=!1)});m.call(Be)}function j(){m.on(".drag",null)}return{update:O,destroy:j}}var uEe={exports:{}},aEe={},fEe={exports:{}},hEe={};/**
 * @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 zyt;function qln(){if(zyt)return hEe;zyt=1;var l=WV();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 O(_,P){var I=P(),q=h({inst:{value:I,getSnapshot:P}}),z=q[0].inst,X=q[1];return m(function(){z.value=I,z.getSnapshot=P,j(z)&&X({inst:z})},[_,I,P]),g(function(){return j(z)&&X({inst:z}),_(function(){j(z)&&X({inst:z})})},[_]),p(I),I}function j(_){var P=_.getSnapshot;_=_.value;try{var I=P();return!u(_,I)}catch{return!0}}function C(_,P){return P()}var N=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?C:O;return hEe.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:N,hEe}var Fyt;function Hln(){return Fyt||(Fyt=1,fEe.exports=qln()),fEe.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 qyt;function Gln(){if(qyt)return aEe;qyt=1;var l=WV(),s=Hln();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,O=l.useMemo,j=l.useDebugValue;return aEe.useSyncExternalStoreWithSelector=function(C,N,_,P,I){var q=m(null);if(q.current===null){var z={hasValue:!1,value:null};q.current=z}else z=q.current;q=O(function(){function Q(se){if(!te){if(te=!0,V=se,se=P(se),I!==void 0&&z.hasValue){var me=z.value;if(I(me,se))return ne=me}return ne=se}if(me=ne,h(V,se))return me;var ye=P(se);return I!==void 0&&I(me,ye)?(V=se,me):(V=se,ne=ye)}var te=!1,V,ne,ce=_===void 0?null:_;return[function(){return Q(N())},ce===null?void 0:function(){return Q(ce())}]},[N,_,P,I]);var X=g(C,q[0],q[1]);return p(function(){z.hasValue=!0,z.value=X},[X]),j(X),X},aEe}var Hyt;function Qln(){return Hyt||(Hyt=1,uEe.exports=Gln()),uEe.exports}var Uln=Qln();const Jln=EAe(Uln),Wln={},Gyt=l=>{let s;const u=new Set,h=(N,_)=>{const P=typeof N=="function"?N(s):N;if(!Object.is(P,s)){const I=s;s=_??(typeof P!="object"||P===null)?P:Object.assign({},s,P),u.forEach(q=>q(s,I))}},g=()=>s,j={setState:h,getState:g,getInitialState:()=>C,subscribe:N=>(u.add(N),()=>u.delete(N)),destroy:()=>{(Wln?"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,j);return j},Vln=l=>l?Gyt(l):Gyt,{useDebugValue:Xln}=DI,{useSyncExternalStoreWithSelector:Kln}=Jln,Yln=l=>l;function tOt(l,s=Yln,u){const h=Kln(l.subscribe,l.getState,l.getServerState||l.getInitialState,s,u);return Xln(h),h}const Qyt=(l,s)=>{const u=Vln(l),h=(g,m=s)=>tOt(u,g,m);return Object.assign(h,u),h},Zln=(l,s)=>l?Qyt(l,s):Qyt;function Au(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 xde=re.createContext(null),eun=xde.Provider,nOt=c5.error001();function zo(l,s){const u=re.useContext(xde);if(u===null)throw new Error(nOt);return tOt(u,l,s)}function ra(){const l=re.useContext(xde);if(l===null)throw new Error(nOt);return re.useMemo(()=>({getState:l.getState,setState:l.setState,subscribe:l.subscribe}),[l])}const Uyt={display:"none"},tun={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},iOt="react-flow__node-desc",rOt="react-flow__edge-desc",nun="react-flow__aria-live",iun=l=>l.ariaLiveMessage,run=l=>l.ariaLabelConfig;function sun({rfId:l}){const s=zo(iun);return y.jsx("div",{id:`${nun}-${l}`,"aria-live":"assertive","aria-atomic":"true",style:tun,children:s})}function oun({rfId:l,disableKeyboardA11y:s}){const u=zo(run);return y.jsxs(y.Fragment,{children:[y.jsx("div",{id:`${iOt}-${l}`,style:Uyt,children:s?u["node.a11yDescription.default"]:u["node.a11yDescription.keyboardDisabled"]}),y.jsx("div",{id:`${rOt}-${l}`,style:Uyt,children:u["edge.a11yDescription.default"]}),!s&&y.jsx(sun,{rfId:l})]})}const yde=re.forwardRef(({position:l="top-left",children:s,className:u,style:h,...g},m)=>{const p=`${l}`.split("-");return y.jsx("div",{className:dh(["react-flow__panel",u,...p]),style:h,ref:m,...g,children:s})});yde.displayName="Panel";function cun({proOptions:l,position:s="bottom-right"}){return l!=null&&l.hideAttribution?null:y.jsx(yde,{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:y.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const lun=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}},wfe=l=>l.id;function uun(l,s){return Au(l.selectedNodes.map(wfe),s.selectedNodes.map(wfe))&&Au(l.selectedEdges.map(wfe),s.selectedEdges.map(wfe))}function aun({onSelectionChange:l}){const s=ra(),{selectedNodes:u,selectedEdges:h}=zo(lun,uun);return re.useEffect(()=>{const g={nodes:u,edges:h};l==null||l(g),s.getState().onSelectionChangeHandlers.forEach(m=>m(g))},[u,h,l]),null}const fun=l=>!!l.onSelectionChangeHandlers;function hun({onSelectionChange:l}){const s=zo(fun);return l||s?y.jsx(aun,{onSelectionChange:l}):null}const sOt=[0,0],dun={x:0,y:0,zoom:1},gun=["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"],Jyt=[...gun,"rfId"],pun=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}),Wyt={translateExtent:SV,nodeOrigin:sOt,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function mun(l){const{setNodes:s,setEdges:u,setMinZoom:h,setMaxZoom:g,setTranslateExtent:m,setNodeExtent:p,reset:O,setDefaultNodesAndEdges:j}=zo(pun,Au),C=ra();re.useEffect(()=>(j(l.defaultNodes,l.defaultEdges),()=>{N.current=Wyt,O()}),[]);const N=re.useRef(Wyt);return re.useEffect(()=>{for(const _ of Jyt){const P=l[_],I=N.current[_];P!==I&&(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:eln(P)}):_==="fitView"?C.setState({fitViewQueued:P}):_==="fitViewOptions"?C.setState({fitViewOptions:P}):C.setState({[_]:P})))}N.current=l},Jyt.map(_=>l[_])),null}function Vyt(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function bun(l){var h;const[s,u]=re.useState(l==="system"?null:l);return re.useEffect(()=>{if(l!=="system"){u(l);return}const g=Vyt(),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=Vyt())!=null&&h.matches?"dark":"light"}const Xyt=typeof document<"u"?document:null;function EV(l=null,s={target:Xyt,actInsideInputWithModifier:!0}){const[u,h]=re.useState(!1),g=re.useRef(!1),m=re.useRef(new Set([])),[p,O]=re.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 re.useEffect(()=>{const j=(s==null?void 0:s.target)??Xyt,C=(s==null?void 0:s.actInsideInputWithModifier)??!0;if(l!==null){const N=I=>{var X,Q;if(g.current=I.ctrlKey||I.metaKey||I.shiftKey||I.altKey,(!g.current||g.current&&!C)&&Rkt(I))return!1;const z=Yyt(I.code,O);if(m.current.add(I[z]),Kyt(p,m.current,!1)){const te=((Q=(X=I.composedPath)==null?void 0:X.call(I))==null?void 0:Q[0])||I.target,V=(te==null?void 0:te.nodeName)==="BUTTON"||(te==null?void 0:te.nodeName)==="A";s.preventDefault!==!1&&(g.current||!V)&&I.preventDefault(),h(!0)}},_=I=>{const q=Yyt(I.code,O);Kyt(p,m.current,!0)?(h(!1),m.current.clear()):m.current.delete(I[q]),I.key==="Meta"&&m.current.clear(),g.current=!1},P=()=>{m.current.clear(),h(!1)};return j==null||j.addEventListener("keydown",N),j==null||j.addEventListener("keyup",_),window.addEventListener("blur",P),window.addEventListener("contextmenu",P),()=>{j==null||j.removeEventListener("keydown",N),j==null||j.removeEventListener("keyup",_),window.removeEventListener("blur",P),window.removeEventListener("contextmenu",P)}}},[l,h]),u}function Kyt(l,s,u){return l.filter(h=>u||h.length===s.size).some(h=>h.every(g=>s.has(g)))}function Yyt(l,s){return s.includes(l)?"code":"key"}const wun=()=>{const l=ra();return re.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:O}=l.getState(),j=$Ae(s,h,g,m,p,(u==null?void 0:u.padding)??.1);return O?(await O.setViewport(j,{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:O,y:j}=p.getBoundingClientRect(),C={x:s.x-O,y:s.y-j},N=u.snapGrid??g,_=u.snapToGrid??m;return eX(C,h,_,N)},flowToScreenPosition:s=>{const{transform:u,domNode:h}=l.getState();if(!h)return s;const{x:g,y:m}=h.getBoundingClientRect(),p=Mhe(s,u);return{x:p.x+g,y:p.y+m}}}),[])};function oOt(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 O={...m};for(const j of p)vun(j,O);u.push(O)}return g.length&&g.forEach(m=>{m.index!==void 0?u.splice(m.index,0,{...m.item}):u.push({...m.item})}),u}function vun(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 cOt(l,s){return oOt(l,s)}function lOt(l,s){return oOt(l,s)}function yM(l,s){return{id:l,type:"select",selected:s}}function PI(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(yM(m.id,p)))}return h}function Zyt({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 O=s.get(p.id),j=((g=O==null?void 0:O.internals)==null?void 0:g.userNode)??O;j!==void 0&&j!==p&&u.push({id:p.id,item:p,type:"replace"}),j===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 e3t(l){return{id:l.id,type:"remove"}}const t3t=l=>Gcn(l),xun=l=>Mkt(l);function uOt(l){return re.forwardRef(l)}const yun=typeof window<"u"?re.useLayoutEffect:re.useEffect;function n3t(l){const[s,u]=re.useState(BigInt(0)),[h]=re.useState(()=>kun(()=>u(g=>g+BigInt(1))));return yun(()=>{const g=h.get();g.length&&(l(g),h.reset())},[s]),h}function kun(l){let s=[];return{get:()=>s,reset:()=>{s=[]},push:u=>{s.push(u),l()}}}const aOt=re.createContext(null);function Oun({children:l}){const s=ra(),u=re.useCallback(O=>{const{nodes:j=[],setNodes:C,hasDefaultNodes:N,onNodesChange:_,nodeLookup:P,fitViewQueued:I,onNodesChangeMiddlewareMap:q}=s.getState();let z=j;for(const Q of O)z=typeof Q=="function"?Q(z):Q;let X=Zyt({items:z,lookup:P});for(const Q of q.values())X=Q(X);N&&C(z),X.length>0?_==null||_(X):I&&window.requestAnimationFrame(()=>{const{fitViewQueued:Q,nodes:te,setNodes:V}=s.getState();Q&&V(te)})},[]),h=n3t(u),g=re.useCallback(O=>{const{edges:j=[],setEdges:C,hasDefaultEdges:N,onEdgesChange:_,edgeLookup:P}=s.getState();let I=j;for(const q of O)I=typeof q=="function"?q(I):q;N?C(I):_&&_(Zyt({items:I,lookup:P}))},[]),m=n3t(g),p=re.useMemo(()=>({nodeQueue:h,edgeQueue:m}),[]);return y.jsx(aOt.Provider,{value:p,children:l})}function jun(){const l=re.useContext(aOt);if(!l)throw new Error("useBatchContext must be used within a BatchProvider");return l}const Sun=l=>!!l.panZoom;function tX(){const l=wun(),s=ra(),u=jun(),h=zo(Sun),g=re.useMemo(()=>{const m=_=>s.getState().nodeLookup.get(_),p=_=>{u.nodeQueue.push(_)},O=_=>{u.edgeQueue.push(_)},j=_=>{var Q,te;const{nodeLookup:P,nodeOrigin:I}=s.getState(),q=t3t(_)?_:P.get(_.id),z=q.parentId?Pkt(q.position,q.measured,q.parentId,P,I):q.position,X={...q,position:z,width:((Q=q.measured)==null?void 0:Q.width)??q.width,height:((te=q.measured)==null?void 0:te.height)??q.height};return nR(X)},C=(_,P,I={replace:!1})=>{p(q=>q.map(z=>{if(z.id===_){const X=typeof P=="function"?P(z):P;return I.replace&&t3t(X)?X:{...z,...X}}return z}))},N=(_,P,I={replace:!1})=>{O(q=>q.map(z=>{if(z.id===_){const X=typeof P=="function"?P(z):P;return I.replace&&xun(X)?X:{...z,...X}}return z}))};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:O,addNodes:_=>{const P=Array.isArray(_)?_:[_];u.nodeQueue.push(I=>[...I,...P])},addEdges:_=>{const P=Array.isArray(_)?_:[_];u.edgeQueue.push(I=>[...I,...P])},toObject:()=>{const{nodes:_=[],edges:P=[],transform:I}=s.getState(),[q,z,X]=I;return{nodes:_.map(Q=>({...Q})),edges:P.map(Q=>({...Q})),viewport:{x:q,y:z,zoom:X}}},deleteElements:async({nodes:_=[],edges:P=[]})=>{const{nodes:I,edges:q,onNodesDelete:z,onEdgesDelete:X,triggerNodeChanges:Q,triggerEdgeChanges:te,onDelete:V,onBeforeDelete:ne}=s.getState(),{nodes:ce,edges:se}=await Vcn({nodesToRemove:_,edgesToRemove:P,nodes:I,edges:q,onBeforeDelete:ne}),me=se.length>0,ye=ce.length>0;if(me){const qe=se.map(e3t);X==null||X(se),te(qe)}if(ye){const qe=ce.map(e3t);z==null||z(ce),Q(qe)}return(ye||me)&&(V==null||V({nodes:ce,edges:se})),{deletedNodes:ce,deletedEdges:se}},getIntersectingNodes:(_,P=!0,I)=>{const q=Cyt(_),z=q?_:j(_),X=I!==void 0;return z?(I||s.getState().nodes).filter(Q=>{const te=s.getState().nodeLookup.get(Q.id);if(te&&!q&&(Q.id===_.id||!te.internals.positionAbsolute))return!1;const V=nR(X?Q:te),ne=TV(V,z);return P&&ne>0||ne>=V.width*V.height||ne>=z.width*z.height}):[]},isNodeIntersecting:(_,P,I=!0)=>{const z=Cyt(_)?_:j(_);if(!z)return!1;const X=TV(z,P);return I&&X>0||X>=P.width*P.height||X>=z.width*z.height},updateNode:C,updateNodeData:(_,P,I={replace:!1})=>{C(_,q=>{const z=typeof P=="function"?P(q):P;return I.replace?{...q,data:z}:{...q,data:{...q.data,...z}}},I)},updateEdge:N,updateEdgeData:(_,P,I={replace:!1})=>{N(_,q=>{const z=typeof P=="function"?P(q):P;return I.replace?{...q,data:z}:{...q,data:{...q.data,...z}}},I)},getNodesBounds:_=>{const{nodeLookup:P,nodeOrigin:I}=s.getState();return Qcn(_,{nodeLookup:P,nodeOrigin:I})},getHandleConnections:({type:_,id:P,nodeId:I})=>{var q;return Array.from(((q=s.getState().connectionLookup.get(`${I}-${_}${P?`-${P}`:""}`))==null?void 0:q.values())??[])},getNodeConnections:({type:_,handleId:P,nodeId:I})=>{var q;return Array.from(((q=s.getState().connectionLookup.get(`${I}${_?P?`-${_}-${P}`:`-${_}`:""}`))==null?void 0:q.values())??[])},fitView:async _=>{const P=s.getState().fitViewResolver??Zcn();return s.setState({fitViewQueued:!0,fitViewOptions:_,fitViewResolver:P}),u.nodeQueue.push(I=>[...I]),P.promise}}},[]);return re.useMemo(()=>({...g,...l,viewportInitialized:h}),[h])}const i3t=l=>l.selected,Tun=typeof window<"u"?window:void 0;function Cun({deleteKeyCode:l,multiSelectionKeyCode:s}){const u=ra(),{deleteElements:h}=tX(),g=EV(l,{actInsideInputWithModifier:!1}),m=EV(s,{target:Tun});re.useEffect(()=>{if(g){const{edges:p,nodes:O}=u.getState();h({nodes:O.filter(i3t),edges:p.filter(i3t)}),u.setState({nodesSelectionActive:!1})}},[g]),re.useEffect(()=>{u.setState({multiSelectionActive:m})},[m])}function Eun(l){const s=ra();re.useEffect(()=>{const u=()=>{var g,m,p,O;if(!l.current||!(((m=(g=l.current).checkVisibility)==null?void 0:m.call(g))??!0))return!1;const h=BAe(l.current);(h.height===0||h.width===0)&&((O=(p=s.getState()).onError)==null||O.call(p,"004",c5.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 kde={position:"absolute",width:"100%",height:"100%",top:0,left:0},Mun=l=>({userSelectionActive:l.userSelectionActive,lib:l.lib,connectionInProgress:l.connection.inProgress});function Aun({onPaneContextMenu:l,zoomOnScroll:s=!0,zoomOnPinch:u=!0,panOnScroll:h=!1,panOnScrollSpeed:g=.5,panOnScrollMode:m=PM.Free,zoomOnDoubleClick:p=!0,panOnDrag:O=!0,defaultViewport:j,translateExtent:C,minZoom:N,maxZoom:_,zoomActivationKeyCode:P,preventScrolling:I=!0,children:q,noWheelClassName:z,noPanClassName:X,onViewportChange:Q,isControlledViewport:te,paneClickDistance:V,selectionOnDrag:ne}){const ce=ra(),se=re.useRef(null),{userSelectionActive:me,lib:ye,connectionInProgress:qe}=zo(Mun,Au),Be=EV(P),ke=re.useRef();Eun(se);const le=re.useCallback(W=>{Q==null||Q({x:W[0],y:W[1],zoom:W[2]}),te||ce.setState({transform:W})},[Q,te]);return re.useEffect(()=>{if(se.current){ke.current=Pln({domNode:se.current,minZoom:N,maxZoom:_,translateExtent:C,viewport:j,onDraggingChange:ue=>ce.setState({paneDragging:ue}),onPanZoomStart:(ue,ve)=>{const{onViewportChangeStart:xe,onMoveStart:Ee}=ce.getState();Ee==null||Ee(ue,ve),xe==null||xe(ve)},onPanZoom:(ue,ve)=>{const{onViewportChange:xe,onMove:Ee}=ce.getState();Ee==null||Ee(ue,ve),xe==null||xe(ve)},onPanZoomEnd:(ue,ve)=>{const{onViewportChangeEnd:xe,onMoveEnd:Ee}=ce.getState();Ee==null||Ee(ue,ve),xe==null||xe(ve)}});const{x:W,y:pe,zoom:je}=ke.current.getViewport();return ce.setState({panZoom:ke.current,transform:[W,pe,je],domNode:se.current.closest(".react-flow")}),()=>{var ue;(ue=ke.current)==null||ue.destroy()}}},[]),re.useEffect(()=>{var W;(W=ke.current)==null||W.update({onPaneContextMenu:l,zoomOnScroll:s,zoomOnPinch:u,panOnScroll:h,panOnScrollSpeed:g,panOnScrollMode:m,zoomOnDoubleClick:p,panOnDrag:O,zoomActivationKeyPressed:Be,preventScrolling:I,noPanClassName:X,userSelectionActive:me,noWheelClassName:z,lib:ye,onTransformChange:le,connectionInProgress:qe,selectionOnDrag:ne,paneClickDistance:V})},[l,s,u,h,g,m,p,O,Be,I,X,me,z,ye,le,qe,ne,V]),y.jsx("div",{className:"react-flow__renderer",ref:se,style:kde,children:q})}const Nun=l=>({userSelectionActive:l.userSelectionActive,userSelectionRect:l.userSelectionRect});function _un(){const{userSelectionActive:l,userSelectionRect:s}=zo(Nun,Au);return l&&s?y.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 dEe=(l,s)=>u=>{u.target===s.current&&(l==null||l(u))},Dun=l=>({userSelectionActive:l.userSelectionActive,elementsSelectable:l.elementsSelectable,connectionInProgress:l.connection.inProgress,dragging:l.paneDragging});function Lun({isSelecting:l,selectionKeyPressed:s,selectionMode:u=eR.Full,panOnDrag:h,paneClickDistance:g,selectionOnDrag:m,onSelectionStart:p,onSelectionEnd:O,onPaneClick:j,onPaneContextMenu:C,onPaneScroll:N,onPaneMouseEnter:_,onPaneMouseMove:P,onPaneMouseLeave:I,children:q}){const z=ra(),{userSelectionActive:X,elementsSelectable:Q,dragging:te,connectionInProgress:V}=zo(Dun,Au),ne=Q&&(l||X),ce=re.useRef(null),se=re.useRef(),me=re.useRef(new Set),ye=re.useRef(new Set),qe=re.useRef(!1),Be=xe=>{if(qe.current||V){qe.current=!1;return}j==null||j(xe),z.getState().resetSelectedElements(),z.setState({nodesSelectionActive:!1})},ke=xe=>{if(Array.isArray(h)&&(h!=null&&h.includes(2))){xe.preventDefault();return}C==null||C(xe)},le=N?xe=>N(xe):void 0,W=xe=>{qe.current&&(xe.stopPropagation(),qe.current=!1)},pe=xe=>{var Je,_t;const{domNode:Ee}=z.getState();if(se.current=Ee==null?void 0:Ee.getBoundingClientRect(),!se.current)return;const tt=xe.target===ce.current;if(!tt&&!!xe.target.closest(".nokey")||!l||!(m&&tt||s)||xe.button!==0||!xe.isPrimary)return;(_t=(Je=xe.target)==null?void 0:Je.setPointerCapture)==null||_t.call(Je,xe.pointerId),qe.current=!1;const{x:Ie,y:Ye}=_x(xe.nativeEvent,se.current);z.setState({userSelectionRect:{width:0,height:0,startX:Ie,startY:Ye,x:Ie,y:Ye}}),tt||(xe.stopPropagation(),xe.preventDefault())},je=xe=>{const{userSelectionRect:Ee,transform:tt,nodeLookup:Te,edgeLookup:et,connectionLookup:Ie,triggerNodeChanges:Ye,triggerEdgeChanges:Je,defaultEdgeOptions:_t,resetSelectedElements:nn}=z.getState();if(!se.current||!Ee)return;const{x:an,y:Jn}=_x(xe.nativeEvent,se.current),{startX:rr,startY:ei}=Ee;if(!qe.current){const hs=s?0:g;if(Math.hypot(an-rr,Jn-ei)<=hs)return;nn(),p==null||p(xe)}qe.current=!0;const Ei={startX:rr,startY:ei,x:an<rr?an:rr,y:Jn<ei?Jn:ei,width:Math.abs(an-rr),height:Math.abs(Jn-ei)},xi=me.current,Kr=ye.current;me.current=new Set(RAe(Te,Ei,tt,u===eR.Partial,!0).map(hs=>hs.id)),ye.current=new Set;const mo=(_t==null?void 0:_t.selectable)??!0;for(const hs of me.current){const Fo=Ie.get(hs);if(Fo)for(const{edgeId:Bn}of Fo.values()){const zs=et.get(Bn);zs&&(zs.selectable??mo)&&ye.current.add(Bn)}}if(!Eyt(xi,me.current)){const hs=PI(Te,me.current,!0);Ye(hs)}if(!Eyt(Kr,ye.current)){const hs=PI(et,ye.current);Je(hs)}z.setState({userSelectionRect:Ei,userSelectionActive:!0,nodesSelectionActive:!1})},ue=xe=>{var Ee,tt;xe.button===0&&((tt=(Ee=xe.target)==null?void 0:Ee.releasePointerCapture)==null||tt.call(Ee,xe.pointerId),!X&&xe.target===ce.current&&z.getState().userSelectionRect&&(Be==null||Be(xe)),z.setState({userSelectionActive:!1,userSelectionRect:null}),qe.current&&(O==null||O(xe),z.setState({nodesSelectionActive:me.current.size>0})))},ve=h===!0||Array.isArray(h)&&h.includes(0);return y.jsxs("div",{className:dh(["react-flow__pane",{draggable:ve,dragging:te,selection:l}]),onClick:ne?void 0:dEe(Be,ce),onContextMenu:dEe(ke,ce),onWheel:dEe(le,ce),onPointerEnter:ne?void 0:_,onPointerMove:ne?je:P,onPointerUp:ne?ue:void 0,onPointerDownCapture:ne?pe:void 0,onClickCapture:ne?W:void 0,onPointerLeave:I,ref:ce,style:kde,children:[q,y.jsx(_un,{})]})}function SMe({id:l,store:s,unselect:u=!1,nodeRef:h}){const{addSelectedNodes:g,unselectNodesAndEdges:m,multiSelectionActive:p,nodeLookup:O,onError:j}=s.getState(),C=O.get(l);if(!C){j==null||j("012",c5.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 fOt({nodeRef:l,disabled:s=!1,noDragClassName:u,handleSelector:h,nodeId:g,isSelectable:m,nodeClickDistance:p}){const O=ra(),[j,C]=re.useState(!1),N=re.useRef();return re.useEffect(()=>{N.current=yln({getStoreItems:()=>O.getState(),onNodeMouseDown:_=>{SMe({id:_,store:O,nodeRef:l})},onDragStart:()=>{C(!0)},onDragStop:()=>{C(!1)}})},[]),re.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 I;(I=N.current)==null||I.destroy()}},[u,h,s,m,l,g]),j}const Pun=l=>s=>s.selected&&(s.draggable||l&&typeof s.draggable>"u");function hOt(){const l=ra();return re.useCallback(u=>{const{nodeExtent:h,snapToGrid:g,snapGrid:m,nodesDraggable:p,onError:O,updateNodePositions:j,nodeLookup:C,nodeOrigin:N}=l.getState(),_=new Map,P=Pun(p),I=g?m[0]:5,q=g?m[1]:5,z=u.direction.x*I*u.factor,X=u.direction.y*q*u.factor;for(const[,Q]of C){if(!P(Q))continue;let te={x:Q.internals.positionAbsolute.x+z,y:Q.internals.positionAbsolute.y+X};g&&(te=ZV(te,m));const{position:V,positionAbsolute:ne}=Akt({nodeId:Q.id,nextPosition:te,nodeLookup:C,nodeExtent:h,nodeOrigin:N,onError:O});Q.position=V,Q.internals.positionAbsolute=ne,_.set(Q.id,Q)}j(_)},[])}const QAe=re.createContext(null),Iun=QAe.Provider;QAe.Consumer;const dOt=()=>re.useContext(QAe),Run=l=>({connectOnClick:l.connectOnClick,noPanClassName:l.noPanClassName,rfId:l.rfId}),$un=(l,s,u)=>h=>{const{connectionClickStartHandle:g,connectionMode:m,connection:p}=h,{fromHandle:O,toHandle:j,isValid:C}=p,N=(j==null?void 0:j.nodeId)===l&&(j==null?void 0:j.id)===s&&(j==null?void 0:j.type)===u;return{connectingFrom:(O==null?void 0:O.nodeId)===l&&(O==null?void 0:O.id)===s&&(O==null?void 0:O.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===ZI.Strict?(O==null?void 0:O.type)!==u:l!==(O==null?void 0:O.nodeId)||s!==(O==null?void 0:O.id),connectionInProcess:!!O,clickConnectionInProcess:!!g,valid:N&&C}};function Bun({type:l="source",position:s=ir.Top,isValidConnection:u,isConnectable:h=!0,isConnectableStart:g=!0,isConnectableEnd:m=!0,id:p,onConnect:O,children:j,className:C,onMouseDown:N,onTouchStart:_,...P},I){var je,ue;const q=p||null,z=l==="target",X=ra(),Q=dOt(),{connectOnClick:te,noPanClassName:V,rfId:ne}=zo(Run,Au),{connectingFrom:ce,connectingTo:se,clickConnecting:me,isPossibleEndHandle:ye,connectionInProcess:qe,clickConnectionInProcess:Be,valid:ke}=zo($un(Q,q,l),Au);Q||(ue=(je=X.getState()).onError)==null||ue.call(je,"010",c5.error010());const le=ve=>{const{defaultEdgeOptions:xe,onConnect:Ee,hasDefaultEdges:tt}=X.getState(),Te={...xe,...ve};if(tt){const{edges:et,setEdges:Ie}=X.getState();Ie(qkt(Te,et))}Ee==null||Ee(Te),O==null||O(Te)},W=ve=>{if(!Q)return;const xe=$kt(ve.nativeEvent);if(g&&(xe&&ve.button===0||!xe)){const Ee=X.getState();jMe.onPointerDown(ve.nativeEvent,{handleDomNode:ve.currentTarget,autoPanOnConnect:Ee.autoPanOnConnect,connectionMode:Ee.connectionMode,connectionRadius:Ee.connectionRadius,domNode:Ee.domNode,nodeLookup:Ee.nodeLookup,lib:Ee.lib,isTarget:z,handleId:q,nodeId:Q,flowId:Ee.rfId,panBy:Ee.panBy,cancelConnection:Ee.cancelConnection,onConnectStart:Ee.onConnectStart,onConnectEnd:Ee.onConnectEnd,updateConnection:Ee.updateConnection,onConnect:le,isValidConnection:u||Ee.isValidConnection,getTransform:()=>X.getState().transform,getFromHandle:()=>X.getState().connection.fromHandle,autoPanSpeed:Ee.autoPanSpeed,dragThreshold:Ee.connectionDragThreshold})}xe?N==null||N(ve):_==null||_(ve)},pe=ve=>{const{onClickConnectStart:xe,onClickConnectEnd:Ee,connectionClickStartHandle:tt,connectionMode:Te,isValidConnection:et,lib:Ie,rfId:Ye,nodeLookup:Je,connection:_t}=X.getState();if(!Q||!tt&&!g)return;if(!tt){xe==null||xe(ve.nativeEvent,{nodeId:Q,handleId:q,handleType:l}),X.setState({connectionClickStartHandle:{nodeId:Q,type:l,id:q}});return}const nn=Ikt(ve.target),an=u||et,{connection:Jn,isValid:rr}=jMe.isValid(ve.nativeEvent,{handle:{nodeId:Q,id:q,type:l},connectionMode:Te,fromNodeId:tt.nodeId,fromHandleId:tt.id||null,fromType:tt.type,isValidConnection:an,flowId:Ye,doc:nn,lib:Ie,nodeLookup:Je});rr&&Jn&&le(Jn);const ei=structuredClone(_t);delete ei.inProgress,ei.toPosition=ei.toHandle?ei.toHandle.position:null,Ee==null||Ee(ve,ei),X.setState({connectionClickStartHandle:null})};return y.jsx("div",{"data-handleid":q,"data-nodeid":Q,"data-handlepos":s,"data-id":`${ne}-${Q}-${q}-${l}`,className:dh(["react-flow__handle",`react-flow__handle-${s}`,"nodrag",V,C,{source:!z,target:z,connectable:h,connectablestart:g,connectableend:m,clickconnecting:me,connectingfrom:ce,connectingto:se,valid:ke,connectionindicator:h&&(!qe||ye)&&(qe||Be?m:g)}]),onMouseDown:W,onTouchStart:W,onClick:te?pe:void 0,ref:I,...P,children:j})}const og=re.memo(uOt(Bun));function zun({data:l,isConnectable:s,sourcePosition:u=ir.Bottom}){return y.jsxs(y.Fragment,{children:[l==null?void 0:l.label,y.jsx(og,{type:"source",position:u,isConnectable:s})]})}function Fun({data:l,isConnectable:s,targetPosition:u=ir.Top,sourcePosition:h=ir.Bottom}){return y.jsxs(y.Fragment,{children:[y.jsx(og,{type:"target",position:u,isConnectable:s}),l==null?void 0:l.label,y.jsx(og,{type:"source",position:h,isConnectable:s})]})}function qun(){return null}function Hun({data:l,isConnectable:s,targetPosition:u=ir.Top}){return y.jsxs(y.Fragment,{children:[y.jsx(og,{type:"target",position:u,isConnectable:s}),l==null?void 0:l.label]})}const Ahe={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},r3t={input:zun,default:Fun,output:Hun,group:qun};function Gun(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 Qun=l=>{const{width:s,height:u,x:h,y:g}=YV(l.nodeLookup,{filter:m=>!!m.selected});return{width:Nx(s)?s:null,height:Nx(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 Uun({onSelectionContextMenu:l,noPanClassName:s,disableKeyboardA11y:u}){const h=ra(),{width:g,height:m,transformString:p,userSelectionActive:O}=zo(Qun,Au),j=hOt(),C=re.useRef(null);if(re.useEffect(()=>{var P;u||(P=C.current)==null||P.focus({preventScroll:!0})},[u]),fOt({nodeRef:C}),O||!g||!m)return null;const N=l?P=>{const I=h.getState().nodes.filter(q=>q.selected);l(P,I)}:void 0,_=P=>{Object.prototype.hasOwnProperty.call(Ahe,P.key)&&(P.preventDefault(),j({direction:Ahe[P.key],factor:P.shiftKey?4:1}))};return y.jsx("div",{className:dh(["react-flow__nodesselection","react-flow__container",s]),style:{transform:p},children:y.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 s3t=typeof window<"u"?window:void 0,Jun=l=>({nodesSelectionActive:l.nodesSelectionActive,userSelectionActive:l.userSelectionActive});function gOt({children:l,onPaneClick:s,onPaneMouseEnter:u,onPaneMouseMove:h,onPaneMouseLeave:g,onPaneContextMenu:m,onPaneScroll:p,paneClickDistance:O,deleteKeyCode:j,selectionKeyCode:C,selectionOnDrag:N,selectionMode:_,onSelectionStart:P,onSelectionEnd:I,multiSelectionKeyCode:q,panActivationKeyCode:z,zoomActivationKeyCode:X,elementsSelectable:Q,zoomOnScroll:te,zoomOnPinch:V,panOnScroll:ne,panOnScrollSpeed:ce,panOnScrollMode:se,zoomOnDoubleClick:me,panOnDrag:ye,defaultViewport:qe,translateExtent:Be,minZoom:ke,maxZoom:le,preventScrolling:W,onSelectionContextMenu:pe,noWheelClassName:je,noPanClassName:ue,disableKeyboardA11y:ve,onViewportChange:xe,isControlledViewport:Ee}){const{nodesSelectionActive:tt,userSelectionActive:Te}=zo(Jun,Au),et=EV(C,{target:s3t}),Ie=EV(z,{target:s3t}),Ye=Ie||ye,Je=Ie||ne,_t=N&&Ye!==!0,nn=et||Te||_t;return Cun({deleteKeyCode:j,multiSelectionKeyCode:q}),y.jsx(Aun,{onPaneContextMenu:m,elementsSelectable:Q,zoomOnScroll:te,zoomOnPinch:V,panOnScroll:Je,panOnScrollSpeed:ce,panOnScrollMode:se,zoomOnDoubleClick:me,panOnDrag:!et&&Ye,defaultViewport:qe,translateExtent:Be,minZoom:ke,maxZoom:le,zoomActivationKeyCode:X,preventScrolling:W,noWheelClassName:je,noPanClassName:ue,onViewportChange:xe,isControlledViewport:Ee,paneClickDistance:O,selectionOnDrag:_t,children:y.jsxs(Lun,{onSelectionStart:P,onSelectionEnd:I,onPaneClick:s,onPaneMouseEnter:u,onPaneMouseMove:h,onPaneMouseLeave:g,onPaneContextMenu:m,onPaneScroll:p,panOnDrag:Ye,isSelecting:!!nn,selectionMode:_,selectionKeyPressed:et,paneClickDistance:O,selectionOnDrag:_t,children:[l,tt&&y.jsx(Uun,{onSelectionContextMenu:pe,noPanClassName:ue,disableKeyboardA11y:ve})]})})}gOt.displayName="FlowRenderer";const Wun=re.memo(gOt),Vun=l=>s=>l?RAe(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 Xun(l){return zo(re.useCallback(Vun(l),[l]),Au)}const Kun=l=>l.updateNodeInternals;function Yun(){const l=zo(Kun),[s]=re.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 re.useEffect(()=>()=>{s==null||s.disconnect()},[s]),s}function Zun({node:l,nodeType:s,hasDimensions:u,resizeObserver:h}){const g=ra(),m=re.useRef(null),p=re.useRef(null),O=re.useRef(l.sourcePosition),j=re.useRef(l.targetPosition),C=re.useRef(s),N=u&&!!l.internals.handleBounds;return re.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]),re.useEffect(()=>()=>{p.current&&(h==null||h.unobserve(p.current),p.current=null)},[]),re.useEffect(()=>{if(m.current){const _=C.current!==s,P=O.current!==l.sourcePosition,I=j.current!==l.targetPosition;(_||P||I)&&(C.current=s,O.current=l.sourcePosition,j.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 ean({id:l,onClick:s,onMouseEnter:u,onMouseMove:h,onMouseLeave:g,onContextMenu:m,onDoubleClick:p,nodesDraggable:O,elementsSelectable:j,nodesConnectable:C,nodesFocusable:N,resizeObserver:_,noDragClassName:P,noPanClassName:I,disableKeyboardA11y:q,rfId:z,nodeTypes:X,nodeClickDistance:Q,onError:te}){const{node:V,internals:ne,isParent:ce}=zo(an=>{const Jn=an.nodeLookup.get(l),rr=an.parentLookup.has(l);return{node:Jn,internals:Jn.internals,isParent:rr}},Au);let se=V.type||"default",me=(X==null?void 0:X[se])||r3t[se];me===void 0&&(te==null||te("003",c5.error003(se)),se="default",me=(X==null?void 0:X.default)||r3t.default);const ye=!!(V.draggable||O&&typeof V.draggable>"u"),qe=!!(V.selectable||j&&typeof V.selectable>"u"),Be=!!(V.connectable||C&&typeof V.connectable>"u"),ke=!!(V.focusable||N&&typeof V.focusable>"u"),le=ra(),W=Lkt(V),pe=Zun({node:V,nodeType:se,hasDimensions:W,resizeObserver:_}),je=fOt({nodeRef:pe,disabled:V.hidden||!ye,noDragClassName:P,handleSelector:V.dragHandle,nodeId:l,isSelectable:qe,nodeClickDistance:Q}),ue=hOt();if(V.hidden)return null;const ve=SO(V),xe=Gun(V),Ee=qe||ye||s||u||h||g,tt=u?an=>u(an,{...ne.userNode}):void 0,Te=h?an=>h(an,{...ne.userNode}):void 0,et=g?an=>g(an,{...ne.userNode}):void 0,Ie=m?an=>m(an,{...ne.userNode}):void 0,Ye=p?an=>p(an,{...ne.userNode}):void 0,Je=an=>{const{selectNodesOnDrag:Jn,nodeDragThreshold:rr}=le.getState();qe&&(!Jn||!ye||rr>0)&&SMe({id:l,store:le,nodeRef:pe}),s&&s(an,{...ne.userNode})},_t=an=>{if(!(Rkt(an.nativeEvent)||q)){if(Skt.includes(an.key)&&qe){const Jn=an.key==="Escape";SMe({id:l,store:le,unselect:Jn,nodeRef:pe})}else if(ye&&V.selected&&Object.prototype.hasOwnProperty.call(Ahe,an.key)){an.preventDefault();const{ariaLabelConfig:Jn}=le.getState();le.setState({ariaLiveMessage:Jn["node.a11yDescription.ariaLiveMessage"]({direction:an.key.replace("Arrow","").toLowerCase(),x:~~ne.positionAbsolute.x,y:~~ne.positionAbsolute.y})}),ue({direction:Ahe[an.key],factor:an.shiftKey?4:1})}}},nn=()=>{var Kr;if(q||!((Kr=pe.current)!=null&&Kr.matches(":focus-visible")))return;const{transform:an,width:Jn,height:rr,autoPanOnNodeFocus:ei,setCenter:Ei}=le.getState();if(!ei)return;RAe(new Map([[l,V]]),{x:0,y:0,width:Jn,height:rr},an,!0).length>0||Ei(V.position.x+ve.width/2,V.position.y+ve.height/2,{zoom:an[2]})};return y.jsx("div",{className:dh(["react-flow__node",`react-flow__node-${se}`,{[I]:ye},V.className,{selected:V.selected,selectable:qe,parent:ce,draggable:ye,dragging:je}]),ref:pe,style:{zIndex:ne.z,transform:`translate(${ne.positionAbsolute.x}px,${ne.positionAbsolute.y}px)`,pointerEvents:Ee?"all":"none",visibility:W?"visible":"hidden",...V.style,...xe},"data-id":l,"data-testid":`rf__node-${l}`,onMouseEnter:tt,onMouseMove:Te,onMouseLeave:et,onContextMenu:Ie,onClick:Je,onDoubleClick:Ye,onKeyDown:ke?_t:void 0,tabIndex:ke?0:void 0,onFocus:ke?nn:void 0,role:V.ariaRole??(ke?"group":void 0),"aria-roledescription":"node","aria-describedby":q?void 0:`${iOt}-${z}`,"aria-label":V.ariaLabel,...V.domAttributes,children:y.jsx(Iun,{value:l,children:y.jsx(me,{id:l,data:V.data,type:se,positionAbsoluteX:ne.positionAbsolute.x,positionAbsoluteY:ne.positionAbsolute.y,selected:V.selected??!1,selectable:qe,draggable:ye,deletable:V.deletable??!0,isConnectable:Be,sourcePosition:V.sourcePosition,targetPosition:V.targetPosition,dragging:je,dragHandle:V.dragHandle,zIndex:ne.z,parentId:V.parentId,...ve})})})}var tan=re.memo(ean);const nan=l=>({nodesDraggable:l.nodesDraggable,nodesConnectable:l.nodesConnectable,nodesFocusable:l.nodesFocusable,elementsSelectable:l.elementsSelectable,onError:l.onError});function pOt(l){const{nodesDraggable:s,nodesConnectable:u,nodesFocusable:h,elementsSelectable:g,onError:m}=zo(nan,Au),p=Xun(l.onlyRenderVisibleElements),O=Yun();return y.jsx("div",{className:"react-flow__nodes",style:kde,children:p.map(j=>y.jsx(tan,{id:j,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:O,nodesDraggable:s,nodesConnectable:u,nodesFocusable:h,elementsSelectable:g,nodeClickDistance:l.nodeClickDistance,onError:m},j))})}pOt.displayName="NodeRenderer";const ian=re.memo(pOt);function ran(l){return zo(re.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&&iln({sourceNode:m,targetNode:p,width:u.width,height:u.height,transform:u.transform})&&h.push(g.id)}return h},[l]),Au)}const san=({color:l="none",strokeWidth:s=1})=>{const u={strokeWidth:s,...l&&{stroke:l}};return y.jsx("polyline",{className:"arrow",style:u,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},oan=({color:l="none",strokeWidth:s=1})=>{const u={strokeWidth:s,...l&&{stroke:l,fill:l}};return y.jsx("polyline",{className:"arrowclosed",style:u,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},o3t={[gO.Arrow]:san,[gO.ArrowClosed]:oan};function can(l){const s=ra();return re.useMemo(()=>{var g,m;return Object.prototype.hasOwnProperty.call(o3t,l)?o3t[l]:((m=(g=s.getState()).onError)==null||m.call(g,"009",c5.error009(l)),null)},[l])}const lan=({id:l,type:s,color:u,width:h=12.5,height:g=12.5,markerUnits:m="strokeWidth",strokeWidth:p,orient:O="auto-start-reverse"})=>{const j=can(s);return j?y.jsx("marker",{className:"react-flow__arrowhead",id:l,markerWidth:`${h}`,markerHeight:`${g}`,viewBox:"-10 -10 20 20",markerUnits:m,orient:O,refX:"0",refY:"0",children:y.jsx(j,{color:u,strokeWidth:p})}):null},mOt=({defaultColor:l,rfId:s})=>{const u=zo(m=>m.edges),h=zo(m=>m.defaultEdgeOptions),g=re.useMemo(()=>aln(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?y.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:y.jsx("defs",{children:g.map(m=>y.jsx(lan,{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};mOt.displayName="MarkerDefinitions";var uan=re.memo(mOt);function bOt({x:l,y:s,label:u,labelStyle:h,labelShowBg:g=!0,labelBgStyle:m,labelBgPadding:p=[2,4],labelBgBorderRadius:O=2,children:j,className:C,...N}){const[_,P]=re.useState({x:1,y:0,width:0,height:0}),I=dh(["react-flow__edge-textwrapper",C]),q=re.useRef(null);return re.useEffect(()=>{if(q.current){const z=q.current.getBBox();P({x:z.x,y:z.y,width:z.width,height:z.height})}},[u]),u?y.jsxs("g",{transform:`translate(${l-_.width/2} ${s-_.height/2})`,className:I,visibility:_.width?"visible":"hidden",...N,children:[g&&y.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:O,ry:O}),y.jsx("text",{className:"react-flow__edge-text",y:_.height/2,dy:"0.3em",ref:q,style:h,children:u}),j]}):null}bOt.displayName="EdgeText";const aan=re.memo(bOt);function Ode({path:l,labelX:s,labelY:u,label:h,labelStyle:g,labelShowBg:m,labelBgStyle:p,labelBgPadding:O,labelBgBorderRadius:j,interactionWidth:C=20,...N}){return y.jsxs(y.Fragment,{children:[y.jsx("path",{...N,d:l,fill:"none",className:dh(["react-flow__edge-path",N.className])}),C?y.jsx("path",{d:l,fill:"none",strokeOpacity:0,strokeWidth:C,className:"react-flow__edge-interaction"}):null,h&&Nx(s)&&Nx(u)?y.jsx(aan,{x:s,y:u,label:h,labelStyle:g,labelShowBg:m,labelBgStyle:p,labelBgPadding:O,labelBgBorderRadius:j}):null]})}function c3t({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 wOt({sourceX:l,sourceY:s,sourcePosition:u=ir.Bottom,targetX:h,targetY:g,targetPosition:m=ir.Top}){const[p,O]=c3t({pos:u,x1:l,y1:s,x2:h,y2:g}),[j,C]=c3t({pos:m,x1:h,y1:g,x2:l,y2:s}),[N,_,P,I]=Bkt({sourceX:l,sourceY:s,targetX:h,targetY:g,sourceControlX:p,sourceControlY:O,targetControlX:j,targetControlY:C});return[`M${l},${s} C${p},${O} ${j},${C} ${h},${g}`,N,_,P,I]}function vOt(l){return re.memo(({id:s,sourceX:u,sourceY:h,targetX:g,targetY:m,sourcePosition:p,targetPosition:O,label:j,labelStyle:C,labelShowBg:N,labelBgStyle:_,labelBgPadding:P,labelBgBorderRadius:I,style:q,markerEnd:z,markerStart:X,interactionWidth:Q})=>{const[te,V,ne]=wOt({sourceX:u,sourceY:h,sourcePosition:p,targetX:g,targetY:m,targetPosition:O}),ce=l.isInternal?void 0:s;return y.jsx(Ode,{id:ce,path:te,labelX:V,labelY:ne,label:j,labelStyle:C,labelShowBg:N,labelBgStyle:_,labelBgPadding:P,labelBgBorderRadius:I,style:q,markerEnd:z,markerStart:X,interactionWidth:Q})})}const fan=vOt({isInternal:!1}),xOt=vOt({isInternal:!0});fan.displayName="SimpleBezierEdge";xOt.displayName="SimpleBezierEdgeInternal";function yOt(l){return re.memo(({id:s,sourceX:u,sourceY:h,targetX:g,targetY:m,label:p,labelStyle:O,labelShowBg:j,labelBgStyle:C,labelBgPadding:N,labelBgBorderRadius:_,style:P,sourcePosition:I=ir.Bottom,targetPosition:q=ir.Top,markerEnd:z,markerStart:X,pathOptions:Q,interactionWidth:te})=>{const[V,ne,ce]=yMe({sourceX:u,sourceY:h,sourcePosition:I,targetX:g,targetY:m,targetPosition:q,borderRadius:Q==null?void 0:Q.borderRadius,offset:Q==null?void 0:Q.offset,stepPosition:Q==null?void 0:Q.stepPosition}),se=l.isInternal?void 0:s;return y.jsx(Ode,{id:se,path:V,labelX:ne,labelY:ce,label:p,labelStyle:O,labelShowBg:j,labelBgStyle:C,labelBgPadding:N,labelBgBorderRadius:_,style:P,markerEnd:z,markerStart:X,interactionWidth:te})})}const kOt=yOt({isInternal:!1}),OOt=yOt({isInternal:!0});kOt.displayName="SmoothStepEdge";OOt.displayName="SmoothStepEdgeInternal";function jOt(l){return re.memo(({id:s,...u})=>{var g;const h=l.isInternal?void 0:s;return y.jsx(kOt,{...u,id:h,pathOptions:re.useMemo(()=>{var m;return{borderRadius:0,offset:(m=u.pathOptions)==null?void 0:m.offset}},[(g=u.pathOptions)==null?void 0:g.offset])})})}const han=jOt({isInternal:!1}),SOt=jOt({isInternal:!0});han.displayName="StepEdge";SOt.displayName="StepEdgeInternal";function TOt(l){return re.memo(({id:s,sourceX:u,sourceY:h,targetX:g,targetY:m,label:p,labelStyle:O,labelShowBg:j,labelBgStyle:C,labelBgPadding:N,labelBgBorderRadius:_,style:P,markerEnd:I,markerStart:q,interactionWidth:z})=>{const[X,Q,te]=Hkt({sourceX:u,sourceY:h,targetX:g,targetY:m}),V=l.isInternal?void 0:s;return y.jsx(Ode,{id:V,path:X,labelX:Q,labelY:te,label:p,labelStyle:O,labelShowBg:j,labelBgStyle:C,labelBgPadding:N,labelBgBorderRadius:_,style:P,markerEnd:I,markerStart:q,interactionWidth:z})})}const dan=TOt({isInternal:!1}),COt=TOt({isInternal:!0});dan.displayName="StraightEdge";COt.displayName="StraightEdgeInternal";function EOt(l){return re.memo(({id:s,sourceX:u,sourceY:h,targetX:g,targetY:m,sourcePosition:p=ir.Bottom,targetPosition:O=ir.Top,label:j,labelStyle:C,labelShowBg:N,labelBgStyle:_,labelBgPadding:P,labelBgBorderRadius:I,style:q,markerEnd:z,markerStart:X,pathOptions:Q,interactionWidth:te})=>{const[V,ne,ce]=zkt({sourceX:u,sourceY:h,sourcePosition:p,targetX:g,targetY:m,targetPosition:O,curvature:Q==null?void 0:Q.curvature}),se=l.isInternal?void 0:s;return y.jsx(Ode,{id:se,path:V,labelX:ne,labelY:ce,label:j,labelStyle:C,labelShowBg:N,labelBgStyle:_,labelBgPadding:P,labelBgBorderRadius:I,style:q,markerEnd:z,markerStart:X,interactionWidth:te})})}const gan=EOt({isInternal:!1}),MOt=EOt({isInternal:!0});gan.displayName="BezierEdge";MOt.displayName="BezierEdgeInternal";const l3t={default:MOt,straight:COt,step:SOt,smoothstep:OOt,simplebezier:xOt},u3t={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},pan=(l,s,u)=>u===ir.Left?l-s:u===ir.Right?l+s:l,man=(l,s,u)=>u===ir.Top?l-s:u===ir.Bottom?l+s:l,a3t="react-flow__edgeupdater";function f3t({position:l,centerX:s,centerY:u,radius:h=10,onMouseDown:g,onMouseEnter:m,onMouseOut:p,type:O}){return y.jsx("circle",{onMouseDown:g,onMouseEnter:m,onMouseOut:p,className:dh([a3t,`${a3t}-${O}`]),cx:pan(s,h,l),cy:man(u,h,l),r:h,stroke:"transparent",fill:"transparent"})}function ban({isReconnectable:l,reconnectRadius:s,edge:u,sourceX:h,sourceY:g,targetX:m,targetY:p,sourcePosition:O,targetPosition:j,onReconnect:C,onReconnectStart:N,onReconnectEnd:_,setReconnecting:P,setUpdateHover:I}){const q=ra(),z=(ne,ce)=>{if(ne.button!==0)return;const{autoPanOnConnect:se,domNode:me,isValidConnection:ye,connectionMode:qe,connectionRadius:Be,lib:ke,onConnectStart:le,onConnectEnd:W,cancelConnection:pe,nodeLookup:je,rfId:ue,panBy:ve,updateConnection:xe}=q.getState(),Ee=ce.type==="target",tt=(Ie,Ye)=>{P(!1),_==null||_(Ie,u,ce.type,Ye)},Te=Ie=>C==null?void 0:C(u,Ie),et=(Ie,Ye)=>{P(!0),N==null||N(ne,u,ce.type),le==null||le(Ie,Ye)};jMe.onPointerDown(ne.nativeEvent,{autoPanOnConnect:se,connectionMode:qe,connectionRadius:Be,domNode:me,handleId:ce.id,nodeId:ce.nodeId,nodeLookup:je,isTarget:Ee,edgeUpdaterType:ce.type,lib:ke,flowId:ue,cancelConnection:pe,panBy:ve,isValidConnection:ye,onConnect:Te,onConnectStart:et,onConnectEnd:W,onReconnectEnd:tt,updateConnection:xe,getTransform:()=>q.getState().transform,getFromHandle:()=>q.getState().connection.fromHandle,dragThreshold:q.getState().connectionDragThreshold,handleDomNode:ne.currentTarget})},X=ne=>z(ne,{nodeId:u.target,id:u.targetHandle??null,type:"target"}),Q=ne=>z(ne,{nodeId:u.source,id:u.sourceHandle??null,type:"source"}),te=()=>I(!0),V=()=>I(!1);return y.jsxs(y.Fragment,{children:[(l===!0||l==="source")&&y.jsx(f3t,{position:O,centerX:h,centerY:g,radius:s,onMouseDown:X,onMouseEnter:te,onMouseOut:V,type:"source"}),(l===!0||l==="target")&&y.jsx(f3t,{position:j,centerX:m,centerY:p,radius:s,onMouseDown:Q,onMouseEnter:te,onMouseOut:V,type:"target"})]})}function wan({id:l,edgesFocusable:s,edgesReconnectable:u,elementsSelectable:h,onClick:g,onDoubleClick:m,onContextMenu:p,onMouseEnter:O,onMouseMove:j,onMouseLeave:C,reconnectRadius:N,onReconnect:_,onReconnectStart:P,onReconnectEnd:I,rfId:q,edgeTypes:z,noPanClassName:X,onError:Q,disableKeyboardA11y:te}){let V=zo(Ei=>Ei.edgeLookup.get(l));const ne=zo(Ei=>Ei.defaultEdgeOptions);V=ne?{...ne,...V}:V;let ce=V.type||"default",se=(z==null?void 0:z[ce])||l3t[ce];se===void 0&&(Q==null||Q("011",c5.error011(ce)),ce="default",se=(z==null?void 0:z.default)||l3t.default);const me=!!(V.focusable||s&&typeof V.focusable>"u"),ye=typeof _<"u"&&(V.reconnectable||u&&typeof V.reconnectable>"u"),qe=!!(V.selectable||h&&typeof V.selectable>"u"),Be=re.useRef(null),[ke,le]=re.useState(!1),[W,pe]=re.useState(!1),je=ra(),{zIndex:ue,sourceX:ve,sourceY:xe,targetX:Ee,targetY:tt,sourcePosition:Te,targetPosition:et}=zo(re.useCallback(Ei=>{const xi=Ei.nodeLookup.get(V.source),Kr=Ei.nodeLookup.get(V.target);if(!xi||!Kr)return{zIndex:V.zIndex,...u3t};const mo=uln({id:l,sourceNode:xi,targetNode:Kr,sourceHandle:V.sourceHandle||null,targetHandle:V.targetHandle||null,connectionMode:Ei.connectionMode,onError:Q});return{zIndex:nln({selected:V.selected,zIndex:V.zIndex,sourceNode:xi,targetNode:Kr,elevateOnSelect:Ei.elevateEdgesOnSelect,zIndexMode:Ei.zIndexMode}),...mo||u3t}},[V.source,V.target,V.sourceHandle,V.targetHandle,V.selected,V.zIndex]),Au),Ie=re.useMemo(()=>V.markerStart?`url('#${kMe(V.markerStart,q)}')`:void 0,[V.markerStart,q]),Ye=re.useMemo(()=>V.markerEnd?`url('#${kMe(V.markerEnd,q)}')`:void 0,[V.markerEnd,q]);if(V.hidden||ve===null||xe===null||Ee===null||tt===null)return null;const Je=Ei=>{var hs;const{addSelectedEdges:xi,unselectNodesAndEdges:Kr,multiSelectionActive:mo}=je.getState();qe&&(je.setState({nodesSelectionActive:!1}),V.selected&&mo?(Kr({nodes:[],edges:[V]}),(hs=Be.current)==null||hs.blur()):xi([l])),g&&g(Ei,V)},_t=m?Ei=>{m(Ei,{...V})}:void 0,nn=p?Ei=>{p(Ei,{...V})}:void 0,an=O?Ei=>{O(Ei,{...V})}:void 0,Jn=j?Ei=>{j(Ei,{...V})}:void 0,rr=C?Ei=>{C(Ei,{...V})}:void 0,ei=Ei=>{var xi;if(!te&&Skt.includes(Ei.key)&&qe){const{unselectNodesAndEdges:Kr,addSelectedEdges:mo}=je.getState();Ei.key==="Escape"?((xi=Be.current)==null||xi.blur(),Kr({edges:[V]})):mo([l])}};return y.jsx("svg",{style:{zIndex:ue},children:y.jsxs("g",{className:dh(["react-flow__edge",`react-flow__edge-${ce}`,V.className,X,{selected:V.selected,animated:V.animated,inactive:!qe&&!g,updating:ke,selectable:qe}]),onClick:Je,onDoubleClick:_t,onContextMenu:nn,onMouseEnter:an,onMouseMove:Jn,onMouseLeave:rr,onKeyDown:me?ei:void 0,tabIndex:me?0:void 0,role:V.ariaRole??(me?"group":"img"),"aria-roledescription":"edge","data-id":l,"data-testid":`rf__edge-${l}`,"aria-label":V.ariaLabel===null?void 0:V.ariaLabel||`Edge from ${V.source} to ${V.target}`,"aria-describedby":me?`${rOt}-${q}`:void 0,ref:Be,...V.domAttributes,children:[!W&&y.jsx(se,{id:l,source:V.source,target:V.target,type:V.type,selected:V.selected,animated:V.animated,selectable:qe,deletable:V.deletable??!0,label:V.label,labelStyle:V.labelStyle,labelShowBg:V.labelShowBg,labelBgStyle:V.labelBgStyle,labelBgPadding:V.labelBgPadding,labelBgBorderRadius:V.labelBgBorderRadius,sourceX:ve,sourceY:xe,targetX:Ee,targetY:tt,sourcePosition:Te,targetPosition:et,data:V.data,style:V.style,sourceHandleId:V.sourceHandle,targetHandleId:V.targetHandle,markerStart:Ie,markerEnd:Ye,pathOptions:"pathOptions"in V?V.pathOptions:void 0,interactionWidth:V.interactionWidth}),ye&&y.jsx(ban,{edge:V,isReconnectable:ye,reconnectRadius:N,onReconnect:_,onReconnectStart:P,onReconnectEnd:I,sourceX:ve,sourceY:xe,targetX:Ee,targetY:tt,sourcePosition:Te,targetPosition:et,setUpdateHover:le,setReconnecting:pe})]})})}var van=re.memo(wan);const xan=l=>({edgesFocusable:l.edgesFocusable,edgesReconnectable:l.edgesReconnectable,elementsSelectable:l.elementsSelectable,connectionMode:l.connectionMode,onError:l.onError});function AOt({defaultMarkerColor:l,onlyRenderVisibleElements:s,rfId:u,edgeTypes:h,noPanClassName:g,onReconnect:m,onEdgeContextMenu:p,onEdgeMouseEnter:O,onEdgeMouseMove:j,onEdgeMouseLeave:C,onEdgeClick:N,reconnectRadius:_,onEdgeDoubleClick:P,onReconnectStart:I,onReconnectEnd:q,disableKeyboardA11y:z}){const{edgesFocusable:X,edgesReconnectable:Q,elementsSelectable:te,onError:V}=zo(xan,Au),ne=ran(s);return y.jsxs("div",{className:"react-flow__edges",children:[y.jsx(uan,{defaultColor:l,rfId:u}),ne.map(ce=>y.jsx(van,{id:ce,edgesFocusable:X,edgesReconnectable:Q,elementsSelectable:te,noPanClassName:g,onReconnect:m,onContextMenu:p,onMouseEnter:O,onMouseMove:j,onMouseLeave:C,onClick:N,reconnectRadius:_,onDoubleClick:P,onReconnectStart:I,onReconnectEnd:q,rfId:u,onError:V,edgeTypes:h,disableKeyboardA11y:z},ce))]})}AOt.displayName="EdgeRenderer";const yan=re.memo(AOt),kan=l=>`translate(${l.transform[0]}px,${l.transform[1]}px) scale(${l.transform[2]})`;function Oan({children:l}){const s=zo(kan);return y.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:s},children:l})}function jan(l){const s=tX(),u=re.useRef(!1);re.useEffect(()=>{!u.current&&s.viewportInitialized&&l&&(setTimeout(()=>l(s),1),u.current=!0)},[l,s.viewportInitialized])}const San=l=>{var s;return(s=l.panZoom)==null?void 0:s.syncViewport};function Tan(l){const s=zo(San),u=ra();return re.useEffect(()=>{l&&(s==null||s(l),u.setState({transform:[l.x,l.y,l.zoom]}))},[l,s]),null}function Can(l){return l.connection.inProgress?{...l.connection,to:eX(l.connection.to,l.transform)}:{...l.connection}}function Ean(l){return Can}function Man(l){const s=Ean();return zo(s,Au)}const Aan=l=>({nodesConnectable:l.nodesConnectable,isValid:l.connection.isValid,inProgress:l.connection.inProgress,width:l.width,height:l.height});function Nan({containerStyle:l,style:s,type:u,component:h}){const{nodesConnectable:g,width:m,height:p,isValid:O,inProgress:j}=zo(Aan,Au);return!(m&&g&&j)?null:y.jsx("svg",{style:l,width:m,height:p,className:"react-flow__connectionline react-flow__container",children:y.jsx("g",{className:dh(["react-flow__connection",Ekt(O)]),children:y.jsx(NOt,{style:s,type:u,CustomComponent:h,isValid:O})})})}const NOt=({style:l,type:s=D9.Bezier,CustomComponent:u,isValid:h})=>{const{inProgress:g,from:m,fromNode:p,fromHandle:O,fromPosition:j,to:C,toNode:N,toHandle:_,toPosition:P,pointer:I}=Man();if(!g)return;if(u)return y.jsx(u,{connectionLineType:s,connectionLineStyle:l,fromNode:p,fromHandle:O,fromX:m.x,fromY:m.y,toX:C.x,toY:C.y,fromPosition:j,toPosition:P,connectionStatus:Ekt(h),toNode:N,toHandle:_,pointer:I});let q="";const z={sourceX:m.x,sourceY:m.y,sourcePosition:j,targetX:C.x,targetY:C.y,targetPosition:P};switch(s){case D9.Bezier:[q]=zkt(z);break;case D9.SimpleBezier:[q]=wOt(z);break;case D9.Step:[q]=yMe({...z,borderRadius:0});break;case D9.SmoothStep:[q]=yMe(z);break;default:[q]=Hkt(z)}return y.jsx("path",{d:q,fill:"none",className:"react-flow__connection-path",style:l})};NOt.displayName="ConnectionLine";const _an={};function h3t(l=_an){re.useRef(l),ra(),re.useEffect(()=>{},[l])}function Dan(){ra(),re.useRef(!1),re.useEffect(()=>{},[])}function _Ot({nodeTypes:l,edgeTypes:s,onInit:u,onNodeClick:h,onEdgeClick:g,onNodeDoubleClick:m,onEdgeDoubleClick:p,onNodeMouseEnter:O,onNodeMouseMove:j,onNodeMouseLeave:C,onNodeContextMenu:N,onSelectionContextMenu:_,onSelectionStart:P,onSelectionEnd:I,connectionLineType:q,connectionLineStyle:z,connectionLineComponent:X,connectionLineContainerStyle:Q,selectionKeyCode:te,selectionOnDrag:V,selectionMode:ne,multiSelectionKeyCode:ce,panActivationKeyCode:se,zoomActivationKeyCode:me,deleteKeyCode:ye,onlyRenderVisibleElements:qe,elementsSelectable:Be,defaultViewport:ke,translateExtent:le,minZoom:W,maxZoom:pe,preventScrolling:je,defaultMarkerColor:ue,zoomOnScroll:ve,zoomOnPinch:xe,panOnScroll:Ee,panOnScrollSpeed:tt,panOnScrollMode:Te,zoomOnDoubleClick:et,panOnDrag:Ie,onPaneClick:Ye,onPaneMouseEnter:Je,onPaneMouseMove:_t,onPaneMouseLeave:nn,onPaneScroll:an,onPaneContextMenu:Jn,paneClickDistance:rr,nodeClickDistance:ei,onEdgeContextMenu:Ei,onEdgeMouseEnter:xi,onEdgeMouseMove:Kr,onEdgeMouseLeave:mo,reconnectRadius:hs,onReconnect:Fo,onReconnectStart:Bn,onReconnectEnd:zs,noDragClassName:Ji,noWheelClassName:ds,noPanClassName:qo,disableKeyboardA11y:yo,nodeExtent:sa,rfId:_p,viewport:Wh,onViewportChange:d0}){return h3t(l),h3t(s),Dan(),jan(u),Tan(Wh),y.jsx(Wun,{onPaneClick:Ye,onPaneMouseEnter:Je,onPaneMouseMove:_t,onPaneMouseLeave:nn,onPaneContextMenu:Jn,onPaneScroll:an,paneClickDistance:rr,deleteKeyCode:ye,selectionKeyCode:te,selectionOnDrag:V,selectionMode:ne,onSelectionStart:P,onSelectionEnd:I,multiSelectionKeyCode:ce,panActivationKeyCode:se,zoomActivationKeyCode:me,elementsSelectable:Be,zoomOnScroll:ve,zoomOnPinch:xe,zoomOnDoubleClick:et,panOnScroll:Ee,panOnScrollSpeed:tt,panOnScrollMode:Te,panOnDrag:Ie,defaultViewport:ke,translateExtent:le,minZoom:W,maxZoom:pe,onSelectionContextMenu:_,preventScrolling:je,noDragClassName:Ji,noWheelClassName:ds,noPanClassName:qo,disableKeyboardA11y:yo,onViewportChange:d0,isControlledViewport:!!Wh,children:y.jsxs(Oan,{children:[y.jsx(yan,{edgeTypes:s,onEdgeClick:g,onEdgeDoubleClick:p,onReconnect:Fo,onReconnectStart:Bn,onReconnectEnd:zs,onlyRenderVisibleElements:qe,onEdgeContextMenu:Ei,onEdgeMouseEnter:xi,onEdgeMouseMove:Kr,onEdgeMouseLeave:mo,reconnectRadius:hs,defaultMarkerColor:ue,noPanClassName:qo,disableKeyboardA11y:yo,rfId:_p}),y.jsx(Nan,{style:z,type:q,component:X,containerStyle:Q}),y.jsx("div",{className:"react-flow__edgelabel-renderer"}),y.jsx(ian,{nodeTypes:l,onNodeClick:h,onNodeDoubleClick:m,onNodeMouseEnter:O,onNodeMouseMove:j,onNodeMouseLeave:C,onNodeContextMenu:N,nodeClickDistance:ei,onlyRenderVisibleElements:qe,noPanClassName:qo,noDragClassName:Ji,disableKeyboardA11y:yo,nodeExtent:sa,rfId:_p}),y.jsx("div",{className:"react-flow__viewport-portal"})]})})}_Ot.displayName="GraphView";const Lan=re.memo(_Ot),d3t=({nodes:l,edges:s,defaultNodes:u,defaultEdges:h,width:g,height:m,fitView:p,fitViewOptions:O,minZoom:j=.5,maxZoom:C=2,nodeOrigin:N,nodeExtent:_,zIndexMode:P="basic"}={})=>{const I=new Map,q=new Map,z=new Map,X=new Map,Q=h??s??[],te=u??l??[],V=N??[0,0],ne=_??SV;Ukt(z,X,Q);const ce=OMe(te,I,q,{nodeOrigin:V,nodeExtent:ne,zIndexMode:P});let se=[0,0,1];if(p&&g&&m){const me=YV(I,{filter:ke=>!!((ke.width||ke.initialWidth)&&(ke.height||ke.initialHeight))}),{x:ye,y:qe,zoom:Be}=$Ae(me,g,m,j,C,(O==null?void 0:O.padding)??.1);se=[ye,qe,Be]}return{rfId:"1",width:g??0,height:m??0,transform:se,nodes:te,nodesInitialized:ce,nodeLookup:I,parentLookup:q,edges:Q,edgeLookup:X,connectionLookup:z,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:u!==void 0,hasDefaultEdges:h!==void 0,panZoom:null,minZoom:j,maxZoom:C,translateExtent:SV,nodeExtent:ne,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:ZI.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:V,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:O,fitViewResolver:null,connection:{...Ckt},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:Xcn,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:Tkt,zIndexMode:P,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},Pan=({nodes:l,edges:s,defaultNodes:u,defaultEdges:h,width:g,height:m,fitView:p,fitViewOptions:O,minZoom:j,maxZoom:C,nodeOrigin:N,nodeExtent:_,zIndexMode:P})=>Zln((I,q)=>{async function z(){const{nodeLookup:X,panZoom:Q,fitViewOptions:te,fitViewResolver:V,width:ne,height:ce,minZoom:se,maxZoom:me}=q();Q&&(await Wcn({nodes:X,width:ne,height:ce,panZoom:Q,minZoom:se,maxZoom:me},te),V==null||V.resolve(!0),I({fitViewResolver:null}))}return{...d3t({nodes:l,edges:s,width:g,height:m,fitView:p,fitViewOptions:O,minZoom:j,maxZoom:C,nodeOrigin:N,nodeExtent:_,defaultNodes:u,defaultEdges:h,zIndexMode:P}),setNodes:X=>{const{nodeLookup:Q,parentLookup:te,nodeOrigin:V,elevateNodesOnSelect:ne,fitViewQueued:ce,zIndexMode:se}=q(),me=OMe(X,Q,te,{nodeOrigin:V,nodeExtent:_,elevateNodesOnSelect:ne,checkEquality:!0,zIndexMode:se});ce&&me?(z(),I({nodes:X,nodesInitialized:me,fitViewQueued:!1,fitViewOptions:void 0})):I({nodes:X,nodesInitialized:me})},setEdges:X=>{const{connectionLookup:Q,edgeLookup:te}=q();Ukt(Q,te,X),I({edges:X})},setDefaultNodesAndEdges:(X,Q)=>{if(X){const{setNodes:te}=q();te(X),I({hasDefaultNodes:!0})}if(Q){const{setEdges:te}=q();te(Q),I({hasDefaultEdges:!0})}},updateNodeInternals:X=>{const{triggerNodeChanges:Q,nodeLookup:te,parentLookup:V,domNode:ne,nodeOrigin:ce,nodeExtent:se,debug:me,fitViewQueued:ye,zIndexMode:qe}=q(),{changes:Be,updatedInternals:ke}=bln(X,te,V,ne,ce,se,qe);ke&&(dln(te,V,{nodeOrigin:ce,nodeExtent:se,zIndexMode:qe}),ye?(z(),I({fitViewQueued:!1,fitViewOptions:void 0})):I({}),(Be==null?void 0:Be.length)>0&&(me&&console.log("React Flow: trigger node changes",Be),Q==null||Q(Be)))},updateNodePositions:(X,Q=!1)=>{const te=[];let V=[];const{nodeLookup:ne,triggerNodeChanges:ce,connection:se,updateConnection:me,onNodesChangeMiddlewareMap:ye}=q();for(const[qe,Be]of X){const ke=ne.get(qe),le=!!(ke!=null&&ke.expandParent&&(ke!=null&&ke.parentId)&&(Be!=null&&Be.position)),W={id:qe,type:"position",position:le?{x:Math.max(0,Be.position.x),y:Math.max(0,Be.position.y)}:Be.position,dragging:Q};if(ke&&se.inProgress&&se.fromNode.id===ke.id){const pe=qM(ke,se.fromHandle,ir.Left,!0);me({...se,from:pe})}le&&ke.parentId&&te.push({id:qe,parentId:ke.parentId,rect:{...Be.internals.positionAbsolute,width:Be.measured.width??0,height:Be.measured.height??0}}),V.push(W)}if(te.length>0){const{parentLookup:qe,nodeOrigin:Be}=q(),ke=GAe(te,ne,qe,Be);V.push(...ke)}for(const qe of ye.values())V=qe(V);ce(V)},triggerNodeChanges:X=>{const{onNodesChange:Q,setNodes:te,nodes:V,hasDefaultNodes:ne,debug:ce}=q();if(X!=null&&X.length){if(ne){const se=cOt(X,V);te(se)}ce&&console.log("React Flow: trigger node changes",X),Q==null||Q(X)}},triggerEdgeChanges:X=>{const{onEdgesChange:Q,setEdges:te,edges:V,hasDefaultEdges:ne,debug:ce}=q();if(X!=null&&X.length){if(ne){const se=lOt(X,V);te(se)}ce&&console.log("React Flow: trigger edge changes",X),Q==null||Q(X)}},addSelectedNodes:X=>{const{multiSelectionActive:Q,edgeLookup:te,nodeLookup:V,triggerNodeChanges:ne,triggerEdgeChanges:ce}=q();if(Q){const se=X.map(me=>yM(me,!0));ne(se);return}ne(PI(V,new Set([...X]),!0)),ce(PI(te))},addSelectedEdges:X=>{const{multiSelectionActive:Q,edgeLookup:te,nodeLookup:V,triggerNodeChanges:ne,triggerEdgeChanges:ce}=q();if(Q){const se=X.map(me=>yM(me,!0));ce(se);return}ce(PI(te,new Set([...X]))),ne(PI(V,new Set,!0))},unselectNodesAndEdges:({nodes:X,edges:Q}={})=>{const{edges:te,nodes:V,nodeLookup:ne,triggerNodeChanges:ce,triggerEdgeChanges:se}=q(),me=X||V,ye=Q||te,qe=me.map(ke=>{const le=ne.get(ke.id);return le&&(le.selected=!1),yM(ke.id,!1)}),Be=ye.map(ke=>yM(ke.id,!1));ce(qe),se(Be)},setMinZoom:X=>{const{panZoom:Q,maxZoom:te}=q();Q==null||Q.setScaleExtent([X,te]),I({minZoom:X})},setMaxZoom:X=>{const{panZoom:Q,minZoom:te}=q();Q==null||Q.setScaleExtent([te,X]),I({maxZoom:X})},setTranslateExtent:X=>{var Q;(Q=q().panZoom)==null||Q.setTranslateExtent(X),I({translateExtent:X})},resetSelectedElements:()=>{const{edges:X,nodes:Q,triggerNodeChanges:te,triggerEdgeChanges:V,elementsSelectable:ne}=q();if(!ne)return;const ce=Q.reduce((me,ye)=>ye.selected?[...me,yM(ye.id,!1)]:me,[]),se=X.reduce((me,ye)=>ye.selected?[...me,yM(ye.id,!1)]:me,[]);te(ce),V(se)},setNodeExtent:X=>{const{nodes:Q,nodeLookup:te,parentLookup:V,nodeOrigin:ne,elevateNodesOnSelect:ce,nodeExtent:se,zIndexMode:me}=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]||(OMe(Q,te,V,{nodeOrigin:ne,nodeExtent:X,elevateNodesOnSelect:ce,checkEquality:!1,zIndexMode:me}),I({nodeExtent:X}))},panBy:X=>{const{transform:Q,width:te,height:V,panZoom:ne,translateExtent:ce}=q();return wln({delta:X,panZoom:ne,transform:Q,translateExtent:ce,width:te,height:V})},setCenter:async(X,Q,te)=>{const{width:V,height:ne,maxZoom:ce,panZoom:se}=q();if(!se)return Promise.resolve(!1);const me=typeof(te==null?void 0:te.zoom)<"u"?te.zoom:ce;return await se.setViewport({x:V/2-X*me,y:ne/2-Q*me,zoom:me},{duration:te==null?void 0:te.duration,ease:te==null?void 0:te.ease,interpolate:te==null?void 0:te.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{I({connection:{...Ckt}})},updateConnection:X=>{I({connection:X})},reset:()=>I({...d3t()})}},Object.is);function DOt({initialNodes:l,initialEdges:s,defaultNodes:u,defaultEdges:h,initialWidth:g,initialHeight:m,initialMinZoom:p,initialMaxZoom:O,initialFitViewOptions:j,fitView:C,nodeOrigin:N,nodeExtent:_,zIndexMode:P,children:I}){const[q]=re.useState(()=>Pan({nodes:l,edges:s,defaultNodes:u,defaultEdges:h,width:g,height:m,fitView:C,minZoom:p,maxZoom:O,fitViewOptions:j,nodeOrigin:N,nodeExtent:_,zIndexMode:P}));return y.jsx(eun,{value:q,children:y.jsx(Oun,{children:I})})}function Ian({children:l,nodes:s,edges:u,defaultNodes:h,defaultEdges:g,width:m,height:p,fitView:O,fitViewOptions:j,minZoom:C,maxZoom:N,nodeOrigin:_,nodeExtent:P,zIndexMode:I}){return re.useContext(xde)?y.jsx(y.Fragment,{children:l}):y.jsx(DOt,{initialNodes:s,initialEdges:u,defaultNodes:h,defaultEdges:g,initialWidth:m,initialHeight:p,fitView:O,initialFitViewOptions:j,initialMinZoom:C,initialMaxZoom:N,nodeOrigin:_,nodeExtent:P,zIndexMode:I,children:l})}const Ran={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function $an({nodes:l,edges:s,defaultNodes:u,defaultEdges:h,className:g,nodeTypes:m,edgeTypes:p,onNodeClick:O,onEdgeClick:j,onInit:C,onMove:N,onMoveStart:_,onMoveEnd:P,onConnect:I,onConnectStart:q,onConnectEnd:z,onClickConnectStart:X,onClickConnectEnd:Q,onNodeMouseEnter:te,onNodeMouseMove:V,onNodeMouseLeave:ne,onNodeContextMenu:ce,onNodeDoubleClick:se,onNodeDragStart:me,onNodeDrag:ye,onNodeDragStop:qe,onNodesDelete:Be,onEdgesDelete:ke,onDelete:le,onSelectionChange:W,onSelectionDragStart:pe,onSelectionDrag:je,onSelectionDragStop:ue,onSelectionContextMenu:ve,onSelectionStart:xe,onSelectionEnd:Ee,onBeforeDelete:tt,connectionMode:Te,connectionLineType:et=D9.Bezier,connectionLineStyle:Ie,connectionLineComponent:Ye,connectionLineContainerStyle:Je,deleteKeyCode:_t="Backspace",selectionKeyCode:nn="Shift",selectionOnDrag:an=!1,selectionMode:Jn=eR.Full,panActivationKeyCode:rr="Space",multiSelectionKeyCode:ei=CV()?"Meta":"Control",zoomActivationKeyCode:Ei=CV()?"Meta":"Control",snapToGrid:xi,snapGrid:Kr,onlyRenderVisibleElements:mo=!1,selectNodesOnDrag:hs,nodesDraggable:Fo,autoPanOnNodeFocus:Bn,nodesConnectable:zs,nodesFocusable:Ji,nodeOrigin:ds=sOt,edgesFocusable:qo,edgesReconnectable:yo,elementsSelectable:sa=!0,defaultViewport:_p=dun,minZoom:Wh=.5,maxZoom:d0=2,translateExtent:Dp=SV,preventScrolling:EO=!0,nodeExtent:c2,defaultMarkerColor:qc="#b1b1b7",zoomOnScroll:cb=!0,zoomOnPinch:lb=!0,panOnScroll:qf=!1,panOnScrollSpeed:lg=.5,panOnScrollMode:cf=PM.Free,zoomOnDoubleClick:h5=!0,panOnDrag:MO=!0,onPaneClick:AO,onPaneMouseEnter:g0,onPaneMouseMove:l2,onPaneMouseLeave:u2,onPaneScroll:ug,onPaneContextMenu:a2,paneClickDistance:ub=1,nodeClickDistance:NO=0,children:d5,onReconnect:f2,onReconnectStart:ab,onReconnectEnd:_O,onEdgeContextMenu:fb,onEdgeDoubleClick:qx,onEdgeMouseEnter:g5,onEdgeMouseMove:hb,onEdgeMouseLeave:Hx,reconnectRadius:p5=10,onNodesChange:Gx,onEdgesChange:ag,noDragClassName:_u="nodrag",noWheelClassName:lf="nowheel",noPanClassName:p0="nopan",fitView:In,fitViewOptions:tc,connectOnClick:tu,attributionPosition:Ia,proOptions:db,defaultEdgeOptions:DO,elevateNodesOnSelect:Lp=!0,elevateEdgesOnSelect:h2=!1,disableKeyboardA11y:d2=!1,autoPanOnConnect:g2,autoPanOnNodeDrag:oa,autoPanSpeed:K9,connectionRadius:Y9,isValidConnection:gb,onError:p2,style:YM,id:LO,nodeDragThreshold:Z9,connectionDragThreshold:e8,viewport:Qx,onViewportChange:m5,width:m0,height:Cd,colorMode:t8="light",debug:ZM,onScroll:m2,ariaLabelConfig:n8,zIndexMode:Ux="basic",...eA},Ed){const Jx=LO||"1",i8=bun(t8),PO=re.useCallback(pb=>{pb.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),m2==null||m2(pb)},[m2]);return y.jsx("div",{"data-testid":"rf__wrapper",...eA,onScroll:PO,style:{...YM,...Ran},ref:Ed,className:dh(["react-flow",g,i8]),id:LO,role:"application",children:y.jsxs(Ian,{nodes:l,edges:s,width:m0,height:Cd,fitView:In,fitViewOptions:tc,minZoom:Wh,maxZoom:d0,nodeOrigin:ds,nodeExtent:c2,zIndexMode:Ux,children:[y.jsx(Lan,{onInit:C,onNodeClick:O,onEdgeClick:j,onNodeMouseEnter:te,onNodeMouseMove:V,onNodeMouseLeave:ne,onNodeContextMenu:ce,onNodeDoubleClick:se,nodeTypes:m,edgeTypes:p,connectionLineType:et,connectionLineStyle:Ie,connectionLineComponent:Ye,connectionLineContainerStyle:Je,selectionKeyCode:nn,selectionOnDrag:an,selectionMode:Jn,deleteKeyCode:_t,multiSelectionKeyCode:ei,panActivationKeyCode:rr,zoomActivationKeyCode:Ei,onlyRenderVisibleElements:mo,defaultViewport:_p,translateExtent:Dp,minZoom:Wh,maxZoom:d0,preventScrolling:EO,zoomOnScroll:cb,zoomOnPinch:lb,zoomOnDoubleClick:h5,panOnScroll:qf,panOnScrollSpeed:lg,panOnScrollMode:cf,panOnDrag:MO,onPaneClick:AO,onPaneMouseEnter:g0,onPaneMouseMove:l2,onPaneMouseLeave:u2,onPaneScroll:ug,onPaneContextMenu:a2,paneClickDistance:ub,nodeClickDistance:NO,onSelectionContextMenu:ve,onSelectionStart:xe,onSelectionEnd:Ee,onReconnect:f2,onReconnectStart:ab,onReconnectEnd:_O,onEdgeContextMenu:fb,onEdgeDoubleClick:qx,onEdgeMouseEnter:g5,onEdgeMouseMove:hb,onEdgeMouseLeave:Hx,reconnectRadius:p5,defaultMarkerColor:qc,noDragClassName:_u,noWheelClassName:lf,noPanClassName:p0,rfId:Jx,disableKeyboardA11y:d2,nodeExtent:c2,viewport:Qx,onViewportChange:m5}),y.jsx(mun,{nodes:l,edges:s,defaultNodes:u,defaultEdges:h,onConnect:I,onConnectStart:q,onConnectEnd:z,onClickConnectStart:X,onClickConnectEnd:Q,nodesDraggable:Fo,autoPanOnNodeFocus:Bn,nodesConnectable:zs,nodesFocusable:Ji,edgesFocusable:qo,edgesReconnectable:yo,elementsSelectable:sa,elevateNodesOnSelect:Lp,elevateEdgesOnSelect:h2,minZoom:Wh,maxZoom:d0,nodeExtent:c2,onNodesChange:Gx,onEdgesChange:ag,snapToGrid:xi,snapGrid:Kr,connectionMode:Te,translateExtent:Dp,connectOnClick:tu,defaultEdgeOptions:DO,fitView:In,fitViewOptions:tc,onNodesDelete:Be,onEdgesDelete:ke,onDelete:le,onNodeDragStart:me,onNodeDrag:ye,onNodeDragStop:qe,onSelectionDrag:je,onSelectionDragStart:pe,onSelectionDragStop:ue,onMove:N,onMoveStart:_,onMoveEnd:P,noPanClassName:p0,nodeOrigin:ds,rfId:Jx,autoPanOnConnect:g2,autoPanOnNodeDrag:oa,autoPanSpeed:K9,onError:p2,connectionRadius:Y9,isValidConnection:gb,selectNodesOnDrag:hs,nodeDragThreshold:Z9,connectionDragThreshold:e8,onBeforeDelete:tt,debug:ZM,ariaLabelConfig:n8,zIndexMode:Ux}),y.jsx(hun,{onSelectionChange:W}),d5,y.jsx(cun,{proOptions:db,position:Ia}),y.jsx(oun,{rfId:Jx,disableKeyboardA11y:d2})]})})}var Ban=uOt($an);const zan=l=>l.nodes;function Fan(){return zo(zan,Au)}function qan(l){const[s,u]=re.useState(l),h=re.useCallback(g=>u(m=>cOt(g,m)),[]);return[s,u,h]}function Han(l){const[s,u]=re.useState(l),h=re.useCallback(g=>u(m=>lOt(g,m)),[]);return[s,u,h]}function Gan({dimensions:l,lineWidth:s,variant:u,className:h}){return y.jsx("path",{strokeWidth:s,d:`M${l[0]/2} 0 V${l[1]} M0 ${l[1]/2} H${l[0]}`,className:dh(["react-flow__background-pattern",u,h])})}function Qan({radius:l,className:s}){return y.jsx("circle",{cx:l,cy:l,r:l,className:dh(["react-flow__background-pattern","dots",s])})}var wO;(function(l){l.Lines="lines",l.Dots="dots",l.Cross="cross"})(wO||(wO={}));const Uan={[wO.Dots]:1,[wO.Lines]:1,[wO.Cross]:6},Jan=l=>({transform:l.transform,patternId:`pattern-${l.rfId}`});function LOt({id:l,variant:s=wO.Dots,gap:u=20,size:h,lineWidth:g=1,offset:m=0,color:p,bgColor:O,style:j,className:C,patternClassName:N}){const _=re.useRef(null),{transform:P,patternId:I}=zo(Jan,Au),q=h||Uan[s],z=s===wO.Dots,X=s===wO.Cross,Q=Array.isArray(u)?u:[u,u],te=[Q[0]*P[2]||1,Q[1]*P[2]||1],V=q*P[2],ne=Array.isArray(m)?m:[m,m],ce=X?[V,V]:te,se=[ne[0]*P[2]||1+ce[0]/2,ne[1]*P[2]||1+ce[1]/2],me=`${I}${l||""}`;return y.jsxs("svg",{className:dh(["react-flow__background",C]),style:{...j,...kde,"--xy-background-color-props":O,"--xy-background-pattern-color-props":p},ref:_,"data-testid":"rf__background",children:[y.jsx("pattern",{id:me,x:P[0]%te[0],y:P[1]%te[1],width:te[0],height:te[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${se[0]},-${se[1]})`,children:z?y.jsx(Qan,{radius:V/2,className:N}):y.jsx(Gan,{dimensions:ce,lineWidth:g,variant:s,className:N})}),y.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${me})`})]})}LOt.displayName="Background";const Wan=re.memo(LOt);function Van(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:y.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function Xan(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:y.jsx("path",{d:"M0 0h32v4.2H0z"})})}function Kan(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:y.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 Yan(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:y.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 Zan(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:y.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 vfe({children:l,className:s,...u}){return y.jsx("button",{type:"button",className:dh(["react-flow__controls-button",s]),...u,children:l})}const efn=l=>({isInteractive:l.nodesDraggable||l.nodesConnectable||l.elementsSelectable,minZoomReached:l.transform[2]<=l.minZoom,maxZoomReached:l.transform[2]>=l.maxZoom,ariaLabelConfig:l.ariaLabelConfig});function POt({style:l,showZoom:s=!0,showFitView:u=!0,showInteractive:h=!0,fitViewOptions:g,onZoomIn:m,onZoomOut:p,onFitView:O,onInteractiveChange:j,className:C,children:N,position:_="bottom-left",orientation:P="vertical","aria-label":I}){const q=ra(),{isInteractive:z,minZoomReached:X,maxZoomReached:Q,ariaLabelConfig:te}=zo(efn,Au),{zoomIn:V,zoomOut:ne,fitView:ce}=tX(),se=()=>{V(),m==null||m()},me=()=>{ne(),p==null||p()},ye=()=>{ce(g),O==null||O()},qe=()=>{q.setState({nodesDraggable:!z,nodesConnectable:!z,elementsSelectable:!z}),j==null||j(!z)},Be=P==="horizontal"?"horizontal":"vertical";return y.jsxs(yde,{className:dh(["react-flow__controls",Be,C]),position:_,style:l,"data-testid":"rf__controls","aria-label":I??te["controls.ariaLabel"],children:[s&&y.jsxs(y.Fragment,{children:[y.jsx(vfe,{onClick:se,className:"react-flow__controls-zoomin",title:te["controls.zoomIn.ariaLabel"],"aria-label":te["controls.zoomIn.ariaLabel"],disabled:Q,children:y.jsx(Van,{})}),y.jsx(vfe,{onClick:me,className:"react-flow__controls-zoomout",title:te["controls.zoomOut.ariaLabel"],"aria-label":te["controls.zoomOut.ariaLabel"],disabled:X,children:y.jsx(Xan,{})})]}),u&&y.jsx(vfe,{className:"react-flow__controls-fitview",onClick:ye,title:te["controls.fitView.ariaLabel"],"aria-label":te["controls.fitView.ariaLabel"],children:y.jsx(Kan,{})}),h&&y.jsx(vfe,{className:"react-flow__controls-interactive",onClick:qe,title:te["controls.interactive.ariaLabel"],"aria-label":te["controls.interactive.ariaLabel"],children:z?y.jsx(Zan,{}):y.jsx(Yan,{})}),N]})}POt.displayName="Controls";re.memo(POt);function tfn({id:l,x:s,y:u,width:h,height:g,style:m,color:p,strokeColor:O,strokeWidth:j,className:C,borderRadius:N,shapeRendering:_,selected:P,onClick:I}){const{background:q,backgroundColor:z}=m||{},X=p||q||z;return y.jsx("rect",{className:dh(["react-flow__minimap-node",{selected:P},C]),x:s,y:u,rx:N,ry:N,width:h,height:g,style:{fill:X,stroke:O,strokeWidth:j},shapeRendering:_,onClick:I?Q=>I(Q,l):void 0})}const nfn=re.memo(tfn),ifn=l=>l.nodes.map(s=>s.id),gEe=l=>l instanceof Function?l:()=>l;function rfn({nodeStrokeColor:l,nodeColor:s,nodeClassName:u="",nodeBorderRadius:h=5,nodeStrokeWidth:g,nodeComponent:m=nfn,onClick:p}){const O=zo(ifn,Au),j=gEe(s),C=gEe(l),N=gEe(u),_=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return y.jsx(y.Fragment,{children:O.map(P=>y.jsx(ofn,{id:P,nodeColorFunc:j,nodeStrokeColorFunc:C,nodeClassNameFunc:N,nodeBorderRadius:h,nodeStrokeWidth:g,NodeComponent:m,onClick:p,shapeRendering:_},P))})}function sfn({id:l,nodeColorFunc:s,nodeStrokeColorFunc:u,nodeClassNameFunc:h,nodeBorderRadius:g,nodeStrokeWidth:m,shapeRendering:p,NodeComponent:O,onClick:j}){const{node:C,x:N,y:_,width:P,height:I}=zo(q=>{const{internals:z}=q.nodeLookup.get(l),X=z.userNode,{x:Q,y:te}=z.positionAbsolute,{width:V,height:ne}=SO(X);return{node:X,x:Q,y:te,width:V,height:ne}},Au);return!C||C.hidden||!Lkt(C)?null:y.jsx(O,{x:N,y:_,width:P,height:I,style:C.style,selected:!!C.selected,className:h(C),color:s(C),borderRadius:g,strokeColor:u(C),strokeWidth:m,shapeRendering:p,onClick:j,id:C.id})}const ofn=re.memo(sfn);var cfn=re.memo(rfn);const lfn=200,ufn=150,afn=l=>!l.hidden,ffn=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?Dkt(YV(l.nodeLookup,{filter:afn}),s):s,rfId:l.rfId,panZoom:l.panZoom,translateExtent:l.translateExtent,flowWidth:l.width,flowHeight:l.height,ariaLabelConfig:l.ariaLabelConfig}},hfn="react-flow__minimap-desc";function IOt({style:l,className:s,nodeStrokeColor:u,nodeColor:h,nodeClassName:g="",nodeBorderRadius:m=5,nodeStrokeWidth:p,nodeComponent:O,bgColor:j,maskColor:C,maskStrokeColor:N,maskStrokeWidth:_,position:P="bottom-right",onClick:I,onNodeClick:q,pannable:z=!1,zoomable:X=!1,ariaLabel:Q,inversePan:te,zoomStep:V=1,offsetScale:ne=5}){const ce=ra(),se=re.useRef(null),{boundingRect:me,viewBB:ye,rfId:qe,panZoom:Be,translateExtent:ke,flowWidth:le,flowHeight:W,ariaLabelConfig:pe}=zo(ffn,Au),je=(l==null?void 0:l.width)??lfn,ue=(l==null?void 0:l.height)??ufn,ve=me.width/je,xe=me.height/ue,Ee=Math.max(ve,xe),tt=Ee*je,Te=Ee*ue,et=ne*Ee,Ie=me.x-(tt-me.width)/2-et,Ye=me.y-(Te-me.height)/2-et,Je=tt+et*2,_t=Te+et*2,nn=`${hfn}-${qe}`,an=re.useRef(0),Jn=re.useRef();an.current=Ee,re.useEffect(()=>{if(se.current&&Be)return Jn.current=Cln({domNode:se.current,panZoom:Be,getTransform:()=>ce.getState().transform,getViewScale:()=>an.current}),()=>{var xi;(xi=Jn.current)==null||xi.destroy()}},[Be]),re.useEffect(()=>{var xi;(xi=Jn.current)==null||xi.update({translateExtent:ke,width:le,height:W,inversePan:te,pannable:z,zoomStep:V,zoomable:X})},[z,X,te,V,ke,le,W]);const rr=I?xi=>{var hs;const[Kr,mo]=((hs=Jn.current)==null?void 0:hs.pointer(xi))||[0,0];I(xi,{x:Kr,y:mo})}:void 0,ei=q?re.useCallback((xi,Kr)=>{const mo=ce.getState().nodeLookup.get(Kr).internals.userNode;q(xi,mo)},[]):void 0,Ei=Q??pe["minimap.ariaLabel"];return y.jsx(yde,{position:P,style:{...l,"--xy-minimap-background-color-props":typeof j=="string"?j: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"?_*Ee: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:dh(["react-flow__minimap",s]),"data-testid":"rf__minimap",children:y.jsxs("svg",{width:je,height:ue,viewBox:`${Ie} ${Ye} ${Je} ${_t}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":nn,ref:se,onClick:rr,children:[Ei&&y.jsx("title",{id:nn,children:Ei}),y.jsx(cfn,{onClick:ei,nodeColor:h,nodeStrokeColor:u,nodeBorderRadius:m,nodeClassName:g,nodeStrokeWidth:p,nodeComponent:O}),y.jsx("path",{className:"react-flow__minimap-mask",d:`M${Ie-et},${Ye-et}h${Je+et*2}v${_t+et*2}h${-Je-et*2}z
        M${ye.x},${ye.y}h${ye.width}v${ye.height}h${-ye.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}IOt.displayName="MiniMap";re.memo(IOt);const dfn=l=>s=>l?`${Math.max(1/s.transform[2],1)}`:void 0,gfn={[rR.Line]:"right",[rR.Handle]:"bottom-right"};function pfn({nodeId:l,position:s,variant:u=rR.Handle,className:h,style:g=void 0,children:m,color:p,minWidth:O=10,minHeight:j=10,maxWidth:C=Number.MAX_VALUE,maxHeight:N=Number.MAX_VALUE,keepAspectRatio:_=!1,resizeDirection:P,autoScale:I=!0,shouldResize:q,onResizeStart:z,onResize:X,onResizeEnd:Q}){const te=dOt(),V=typeof l=="string"?l:te,ne=ra(),ce=re.useRef(null),se=u===rR.Handle,me=zo(re.useCallback(dfn(se&&I),[se,I]),Au),ye=re.useRef(null),qe=s??gfn[u];re.useEffect(()=>{if(!(!ce.current||!V))return ye.current||(ye.current=Fln({domNode:ce.current,nodeId:V,getStoreItems:()=>{const{nodeLookup:ke,transform:le,snapGrid:W,snapToGrid:pe,nodeOrigin:je,domNode:ue}=ne.getState();return{nodeLookup:ke,transform:le,snapGrid:W,snapToGrid:pe,nodeOrigin:je,paneDomNode:ue}},onChange:(ke,le)=>{const{triggerNodeChanges:W,nodeLookup:pe,parentLookup:je,nodeOrigin:ue}=ne.getState(),ve=[],xe={x:ke.x,y:ke.y},Ee=pe.get(V);if(Ee&&Ee.expandParent&&Ee.parentId){const tt=Ee.origin??ue,Te=ke.width??Ee.measured.width??0,et=ke.height??Ee.measured.height??0,Ie={id:Ee.id,parentId:Ee.parentId,rect:{width:Te,height:et,...Pkt({x:ke.x??Ee.position.x,y:ke.y??Ee.position.y},{width:Te,height:et},Ee.parentId,pe,tt)}},Ye=GAe([Ie],pe,je,ue);ve.push(...Ye),xe.x=ke.x?Math.max(tt[0]*Te,ke.x):void 0,xe.y=ke.y?Math.max(tt[1]*et,ke.y):void 0}if(xe.x!==void 0&&xe.y!==void 0){const tt={id:V,type:"position",position:{...xe}};ve.push(tt)}if(ke.width!==void 0&&ke.height!==void 0){const Te={id:V,type:"dimensions",resizing:!0,setAttributes:P?P==="horizontal"?"width":"height":!0,dimensions:{width:ke.width,height:ke.height}};ve.push(Te)}for(const tt of le){const Te={...tt,type:"position"};ve.push(Te)}W(ve)},onEnd:({width:ke,height:le})=>{const W={id:V,type:"dimensions",resizing:!1,dimensions:{width:ke,height:le}};ne.getState().triggerNodeChanges([W])}})),ye.current.update({controlPosition:qe,boundaries:{minWidth:O,minHeight:j,maxWidth:C,maxHeight:N},keepAspectRatio:_,resizeDirection:P,onResizeStart:z,onResize:X,onResizeEnd:Q,shouldResize:q}),()=>{var ke;(ke=ye.current)==null||ke.destroy()}},[qe,O,j,C,N,_,z,X,Q,q]);const Be=qe.split("-");return y.jsx("div",{className:dh(["react-flow__resize-control","nodrag",...Be,u,h]),ref:ce,style:{...g,scale:me,...p&&{[se?"backgroundColor":"borderColor"]:p}},children:m})}re.memo(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 ROt=(...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 mfn=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 bfn=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 g3t=l=>{const s=bfn(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 wfn={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 vfn=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 xfn=re.forwardRef(({color:l="currentColor",size:s=24,strokeWidth:u=2,absoluteStrokeWidth:h,className:g="",children:m,iconNode:p,...O},j)=>re.createElement("svg",{ref:j,...wfn,width:s,height:s,stroke:l,strokeWidth:h?Number(u)*24/Number(s):u,className:ROt("lucide",g),...!m&&!vfn(O)&&{"aria-hidden":"true"},...O},[...p.map(([C,N])=>re.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 mr=(l,s)=>{const u=re.forwardRef(({className:h,...g},m)=>re.createElement(xfn,{ref:m,iconNode:s,className:ROt(`lucide-${mfn(g3t(l))}`,`lucide-${l}`,h),...g}));return u.displayName=g3t(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 yfn=[["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"}]],kfn=mr("archive",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 Ofn=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],jfn=mr("arrow-down-to-line",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=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Tfn=mr("arrow-left",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 Cfn=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],$Ot=mr("arrow-right",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 Efn=[["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"}]],p3t=mr("brain-circuit",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 Mfn=[["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"}]],Afn=mr("brain",Mfn);/**
 * @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=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],HM=mr("check",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 _fn=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Sd=mr("chevron-down",_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:"m15 18-6-6 6-6",key:"1wnfg3"}]],UAe=mr("chevron-left",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:"m9 18 6-6-6-6",key:"mthhwq"}]],i2=mr("chevron-right",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:"m18 15-6-6-6 6",key:"153udz"}]],jde=mr("chevron-up",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=[["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"}]],TMe=mr("circle-alert",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"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],JAe=mr("circle-check",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 $fn=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],Bfn=mr("circle-dot",$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=[["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"}]],Ffn=mr("circle-x",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:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Hfn=mr("clock",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 Gfn=[["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"}]],WAe=mr("copy",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 Qfn=[["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"}]],Ufn=mr("crosshair",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 Jfn=[["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"}]],VAe=mr("database",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 Wfn=[["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"}]],Vfn=mr("external-link",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 Xfn=[["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"}]],Kfn=mr("file-archive",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 Yfn=[["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"}]],BOt=mr("file-code-corner",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 Zfn=[["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"}]],zOt=mr("file-text",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 ehn=[["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=mr("flask-conical",ehn);/**
 * @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:"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"}]],nhn=mr("folder",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 ihn=[["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"}]],qOt=mr("git-branch",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=[["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"}]],HOt=mr("git-fork",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 shn=[["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"}]],Nhe=mr("hard-drive-download",shn);/**
 * @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=[["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"}]],chn=mr("hard-drive",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 lhn=[["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"}]],uhn=mr("hash",lhn);/**
 * @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=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],fhn=mr("info",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 hhn=[["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"}]],dhn=mr("layers",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 ghn=[["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"}]],XAe=mr("link-2",ghn);/**
 * @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:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],r2=mr("loader-circle",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=[["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"}]],nX=mr("package",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 bhn=[["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"}]],whn=mr("panel-left-close",bhn);/**
 * @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=[["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"}]],xhn=mr("panel-left-open",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 yhn=[["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"}]],khn=mr("play",yhn);/**
 * @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=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],l5=mr("plus",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 jhn=[["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"}]],KAe=mr("radio",jhn);/**
 * @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=[["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"}]],Thn=mr("redo-2",Shn);/**
 * @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=[["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"}]],YAe=mr("refresh-cw",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 Ehn=[["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"}]],Mhn=mr("rotate-ccw",Ehn);/**
 * @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=[["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"}]],Nhn=mr("rows-3",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 _hn=[["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"}]],GOt=mr("save",_hn);/**
 * @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:"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"}]],Lhn=mr("scan",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:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],dR=mr("search",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 Ihn=[["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"}]],Rhn=mr("sliders-horizontal",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 $hn=[["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"}]],_he=mr("table-2",$hn);/**
 * @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 Bhn=[["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"}]],zhn=mr("table-properties",Bhn);/**
 * @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=[["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"}]],IM=mr("target",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 qhn=[["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"}]],Hhn=mr("timer",qhn);/**
 * @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 Ghn=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],QOt=mr("toggle-left",Ghn);/**
 * @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 Qhn=[["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"}]],F9=mr("trash-2",Qhn);/**
 * @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=[["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"}]],CMe=mr("trash",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 Jhn=[["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"}]],Sp=mr("triangle-alert",Jhn);/**
 * @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 Whn=[["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"}]],Vhn=mr("type",Whn);/**
 * @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:"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"}]],Khn=mr("undo-2",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 Yhn=[["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"}]],Zhn=mr("ungroup",Yhn);/**
 * @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 edn=[["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"}]],UOt=mr("upload",edn);/**
 * @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 tdn=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ix=mr("x",tdn);/**
 * @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 ndn=[["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"}]],idn=mr("zoom-in",ndn);/**
 * @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 rdn=[["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"}]],sdn=mr("zoom-out",rdn);function odn({size:l=16,color:s="currentColor",className:u,style:h}){return y.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:[y.jsx("rect",{x:"1",y:"8",width:"2",height:"6",rx:"0.5",fill:s,opacity:"0.7"}),y.jsx("rect",{x:"4",y:"4",width:"2",height:"10",rx:"0.5",fill:s,opacity:"0.85"}),y.jsx("rect",{x:"7",y:"2",width:"2",height:"12",rx:"0.5",fill:s}),y.jsx("rect",{x:"10",y:"5",width:"2",height:"9",rx:"0.5",fill:s,opacity:"0.85"}),y.jsx("rect",{x:"13",y:"7",width:"2",height:"7",rx:"0.5",fill:s,opacity:"0.7"})]})}const JOt=re.memo(odn),gi={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"},s2={[gi.API_INPUT]:{icon:KAe,color:"#E69F00",label:"QUOTE IN",name:"Quote Input",description:"Live API input for deployment (max 1)",defaultConfig:{path:""},shape:"pill"},[gi.LIVE_SWITCH]:{icon:QOt,color:"#E69F00",label:"SWITCH",name:"Source Switch",description:"Switch between live API and batch data",defaultConfig:{mode:"live"},shape:"pill"},[gi.OUTPUT]:{icon:Bfn,color:"#D55E00",label:"QUOTE OUT",name:"Quote Response",description:"Final price / prediction",defaultConfig:{fields:[]},shape:"pill"},[gi.DATA_SOURCE]:{icon:VAe,color:"#00B386",label:"SOURCE",name:"Data Source",description:"Read from parquet, CSV, or Databricks table",defaultConfig:{path:""}},[gi.DATA_SINK]:{icon:Nhe,color:"#00B386",label:"SINK",name:"Data Sink",description:"Write to parquet, CSV, or directory",defaultConfig:{path:"",format:"parquet"},maxInputs:1},[gi.EXTERNAL_FILE]:{icon:Kfn,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:""}},[gi.CONSTANT]:{icon:uhn,color:"#94a3b8",label:"CONSTANT",name:"Constant",description:"Named constant values (1-row DataFrame)",defaultConfig:{values:[{name:"constant_1",value:"1.0"}]}},[gi.POLARS]:{icon:JOt,color:"#56B4E9",label:"POLARS",name:"Polars",description:"Polars transform / feature engineering",defaultConfig:{}},[gi.BANDING]:{icon:Rhn,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},[gi.SCENARIO_EXPANDER]:{icon:Nhn,color:"#56B4E9",label:"EXPANDER",name:"Expander",description:"Cross-join rows with scenario values (price, tier, etc.)",defaultConfig:{},maxInputs:1},[gi.RATING_STEP]:{icon:zhn,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},[gi.MODELLING]:{icon:FOt,color:"#CC79A7",label:"TRAINING",name:"Model Training",description:"Train a CatBoost or GLM model",defaultConfig:{},maxInputs:1},[gi.MODEL_SCORE]:{icon:Afn,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},[gi.OPTIMISER]:{icon:IM,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}},[gi.OPTIMISER_APPLY]:{icon:Ufn,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__"}},[gi.SUBMODEL]:{icon:nX,color:"#7B8DA0",label:"SUBMODEL",name:"Submodel",description:"Reusable sub-pipeline",defaultConfig:{}},[gi.SUBMODEL_PORT]:{icon:$Ot,color:"#94a3b8",label:"PORT",name:"Port",description:"Submodel input/output port",defaultConfig:{}}},EMe=new Set([gi.API_INPUT,gi.OUTPUT]);function Dhe(l){return!!(l&&EMe.has(l))}const cdn=new Set([gi.DATA_SOURCE,gi.API_INPUT,gi.CONSTANT]),ldn=new Set([gi.OUTPUT,gi.DATA_SINK,gi.MODELLING,gi.OPTIMISER]),udn=[gi.API_INPUT,gi.LIVE_SWITCH,gi.OUTPUT,gi.DATA_SOURCE,gi.DATA_SINK,gi.EXTERNAL_FILE,gi.CONSTANT,gi.POLARS,gi.SCENARIO_EXPANDER,gi.BANDING,gi.RATING_STEP,gi.MODELLING,gi.MODEL_SCORE,gi.OPTIMISER,gi.OPTIMISER_APPLY],adn=Object.fromEntries(Object.entries(s2).map(([l,s])=>[l,s.icon])),Lhe=Object.fromEntries(Object.entries(s2).map(([l,s])=>[l,s.color])),WOt=Object.fromEntries(Object.entries(s2).map(([l,s])=>[l,s.label])),fdn=new Set(Object.entries(s2).filter(([,l])=>l.shape==="pill").map(([l])=>l));function ZAe(l,s=4){return l==null?"null":typeof l=="number"?Number.isInteger(l)?l.toLocaleString():l.toLocaleString(void 0,{maximumFractionDigits:s}):String(l)}function hdn(l){const s=ZAe(l);return s.length>20?s.slice(0,18)+"…":s}function vO(l){return Math.abs(l)>=1e6?(l/1e6).toFixed(2)+"M":Math.abs(l)>=1e3?(l/1e3).toFixed(1)+"K":Number.isInteger(l)?String(l):l.toFixed(4)}function ohe(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 m3t=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(I=>I(s,P))}},g=()=>s,O={setState:h,getState:g,getInitialState:()=>j,subscribe:C=>(u.add(C),()=>u.delete(C))},j=s=l(h,g,O);return O},ddn=(l=>l?m3t(l):m3t),gdn=l=>l;function pdn(l,s=gdn){const u=DI.useSyncExternalStore(l.subscribe,DI.useCallback(()=>s(l.getState()),[l,s]),DI.useCallback(()=>s(l.getInitialState()),[l,s]));return DI.useDebugValue(u),u}const mdn=l=>{const s=ddn(l),u=h=>pdn(s,h);return Object.assign(u,s),u},Sde=(l=>mdn);class OO extends Error{constructor(u,h,g){super(u);VCe(this,"status");VCe(this,"detail");this.name="ApiError",this.status=h,this.detail=g}}async function Fl(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 O=await fetch(l,{...g,signal:m.signal});if(!O.ok){let j;try{const C=await O.json(),N=C.detail??C;j=typeof N=="string"?N:JSON.stringify(N)}catch{j=O.statusText}throw new OO(`HTTP ${O.status}`,O.status,j)}return await O.json()}finally{clearTimeout(p)}}function Nu(l,s,u={}){return Fl(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s),...u})}function eNe(l,s={}){return Fl(l,{method:"DELETE",...s})}function bdn(l){return Fl("/api/pipeline",l).catch(s=>{if(s instanceof OO&&s.status===404)return{nodes:[],edges:[]};throw s})}function che(l,s,u,h,g){return Nu("/api/pipeline/preview",{graph:l,node_id:s,row_limit:u,source:h??"live"},{timeout:12e4,...g})}function wdn(l,s){return Nu("/api/pipeline/save",l,s)}function vdn(l,s){return Nu("/api/pipeline/trace",l,{timeout:12e4,...s})}function xdn(l,s,u,h){return Nu("/api/pipeline/sink",{graph:l,node_id:s,source:u??"live"},{timeout:3e5,...h})}function ydn(l,s){return Nu("/api/submodel/create",l,s)}function kdn(l,s){return Fl(`/api/submodel/${encodeURIComponent(l)}`,s)}function Odn(l,s){return Nu("/api/submodel/dissolve",l,s)}function jdn(l,s){return Fl(`/api/schema?path=${encodeURIComponent(l)}`,s)}function Sdn(l){return Fl("/api/modelling/mlflow/check",l)}function Tdn(l,s){return Fl(`/api/modelling/train/status/${encodeURIComponent(l)}`,s)}function Cdn(l,s){return Nu("/api/modelling/train",{...l,source:l.source??"live"},{...s,timeout:6e5})}function Edn(l,s){return Nu("/api/modelling/estimate",{...l,source:l.source??"live"},{timeout:3e4,...s})}function Mdn(l,s){return Nu("/api/modelling/mlflow/log",l,{timeout:6e5,...s})}function Adn(l,s){return Nu("/api/optimiser/solve",l,{timeout:3e5,...s})}function Ndn(l,s){return Fl(`/api/optimiser/solve/status/${encodeURIComponent(l)}`,s)}function _dn(l,s){return Nu("/api/optimiser/save",l,s)}function Ddn(l,s){return Nu("/api/optimiser/mlflow/log",l,s)}function pEe(l,s){return Nu("/api/optimiser/frontier/select",l,s)}function Ldn(l){return Fl("/api/databricks/warehouses",l)}function Pdn(l){return Fl("/api/databricks/catalogs",l)}function Idn(l,s){return Fl(`/api/databricks/schemas?catalog=${encodeURIComponent(l)}`,s)}function Rdn(l,s,u){return Fl(`/api/databricks/tables?catalog=${encodeURIComponent(l)}&schema=${encodeURIComponent(s)}`,u)}function $dn(l,s){return Fl(`/api/databricks/cache?table=${encodeURIComponent(l)}`,s)}function Bdn(l,s){return Fl(`/api/databricks/fetch/progress?table=${encodeURIComponent(l)}`,s)}function zdn(l,s){return Nu("/api/databricks/fetch",l,{timeout:3e5,...s})}function Fdn(l,s){return eNe(`/api/databricks/cache?table=${encodeURIComponent(l)}`,s)}function qdn(l,s){return Nu("/api/json-cache/build",l,{timeout:18e5,...s})}function Hdn(l,s){return Nu("/api/json-cache/cancel",{path:l},s)}function Gdn(l,s){return Fl(`/api/json-cache/progress?path=${encodeURIComponent(l)}`,s)}function Qdn(l,s){return Fl(`/api/json-cache/status?path=${encodeURIComponent(l)}`,s)}function Udn(l,s){return eNe(`/api/json-cache?path=${encodeURIComponent(l)}`,s)}function Jdn(l){return Fl("/api/mlflow/experiments",l)}function Wdn(l,s,u){const h=new URLSearchParams({experiment_id:l});return s&&h.set("artifact_filter",s),Fl(`/api/mlflow/runs?${h.toString()}`,u)}function Vdn(l){return Fl("/api/mlflow/models",l)}function Xdn(l,s){return Fl(`/api/mlflow/model-versions?model_name=${encodeURIComponent(l)}`,s)}function Kdn(l){return Fl("/api/utility",l)}function Ydn(l,s){return Fl(`/api/utility/${encodeURIComponent(l)}`,s)}function Zdn(l,s){return Nu("/api/utility",l,s)}function e1n(l,s,u){return Fl(`/api/utility/${encodeURIComponent(l)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:s}),...u})}function t1n(l,s){return eNe(`/api/utility/${encodeURIComponent(l)}`,s)}function n1n(l,s,u){const h=new URLSearchParams({dir:l});return s&&h.set("extensions",s),Fl(`/api/files?${h.toString()}`,u)}function i1n(l,s){return Nu("/api/pipeline/read-json",{path:l},s)}function r1n(l){return Fl("/api/git/status",l)}function s1n(l){return Fl("/api/git/branches",l)}function o1n(l,s){return Nu("/api/git/branches",{description:l},s)}function c1n(l,s){return Nu("/api/git/switch",{branch:l},s)}function l1n(l){return Nu("/api/git/save",{},l)}function u1n(l){return Nu("/api/git/submit",{},l)}function a1n(l,s){const u=`?limit=${l}`;return Fl(`/api/git/history${u}`,s)}function f1n(l,s){return Nu("/api/git/revert",{sha:l},s)}function h1n(l){return Nu("/api/git/pull",{},l)}function d1n(l,s){return Nu("/api/git/archive",{branch:l},s)}function g1n(l,s){return Fl("/api/git/branches",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({branch:l}),...s})}let mEe=!1;const dc=Sde()((l,s)=>({rowLimit:100,setRowLimit:u=>l({rowLimit:u}),openSections:{},toggleSection:u=>l(h=>({openSections:{...h.openSections,[u]:!h.openSections[u]}})),isSectionOpen:(u,h=!1)=>{const g=s().openSections[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(mEe||u.mlflow.status!=="pending"&&!h)return;mEe=!0,l({_mlflowFetching:!0,_mlflowLastAttempt:Date.now()});let g;const m=new Promise((p,O)=>{g=setTimeout(()=>O(new Error("MLflow check timed out after 5s")),5e3)});Promise.race([Sdn(),m]).then(p=>{p.mlflow_installed?l({mlflow:{status:"connected",backend:p.backend||"local",host:p.databricks_host||""}}):l({mlflow:{status:"error",backend:"",host:""}})}).catch(p=>{console.warn("MLflow check failed:",p),l({mlflow:{status:"error",backend:"",host:""}})}).finally(()=>{clearTimeout(g),mEe=!1,l({_mlflowFetching:!1})})},sources:["live"],activeSource:"live",setSources:u=>l(h=>({sources:u,activeSource:u.includes(h.activeSource)?h.activeSource:"live"})),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 p1n(){const l=dc(s=>s.mlflow);return{mlflowStatus:l.status==="pending"?"loading":l.status,mlflowBackend:l.backend}}const m1n={ok:"#22c55e",error:"#ef4444",running:"#6366f1"};function b1n({accent:l}){return dc(u=>u.activeSource)!=="live"?null:y.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 w1n=l=>{const s=l.transform[2];return s>.55?"full":s>.3?"medium":"compact"};function v1n({data:l,selected:s}){var ke,le,W,pe;const u=l,h=u.nodeType||gi.POLARS,g=adn[h]||JOt,m=Lhe[h]||Lhe[gi.POLARS],p=WOt[h]||"NODE",O=h===gi.API_INPUT,j=h===gi.LIVE_SWITCH,C=!!((ke=u.config)!=null&&ke.instanceOf),N=cdn.has(h),_=ldn.has(h),P=fdn.has(h),I=!!u._traceActive,q=!!u._traceDimmed,z=!!u._hoverDimmed,X=u._traceValue,Q=(((le=u._schemaWarnings)==null?void 0:le.length)??0)>0,te=zo(w1n),V=q||z,ne=((W=s2[h])==null?void 0:W.name)||p,ce=u._status?`, status: ${u._status}`:"",se=`${ne} node: ${u.label}${ce}${C?", instance":""}${I?", trace active":""}`;if(te==="compact")return y.jsxs("div",{"aria-label":se,role:"button",className:`relative 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:V?.25:1,transition:"opacity 0.2s ease"},children:[!N&&y.jsx(og,{type:"target",position:ir.Left}),y.jsxs("div",{className:"flex items-center gap-2 pl-3 pr-2.5 py-2",children:[y.jsx(g,{size:14,style:{color:m},className:"shrink-0"}),y.jsx("div",{className:"font-bold text-[12px] leading-tight truncate",style:{color:"var(--text-primary)"},children:u.label})]}),!_&&y.jsx(og,{type:"source",position:ir.Right})]});const me=I||s?`3px solid ${m}`:C?`3px dashed ${m}60`:`3px solid ${m}30`,ye=I?`0 0 12px ${m}40, var(--node-shadow)`:"var(--node-shadow)",qe={background:"var(--bg-elevated)",border:me,boxShadow:ye,opacity:V?.25:1,transition:"border-color 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease"},Be=P?"15px 15px 0 0":"11px 11px 0 0";return te==="medium"?y.jsxs("div",{"aria-label":se,role:"button",className:`relative w-[240px] cursor-pointer ${P?"rounded-2xl":"rounded-xl"}`,style:qe,children:[!N&&y.jsx(og,{type:"target",position:ir.Left}),y.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5",style:{background:`${m}30`,borderRadius:Be},children:[y.jsx(g,{size:14,style:{color:m},className:"shrink-0"}),y.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em] shrink-0",style:{color:m},children:p})]}),y.jsx("div",{className:"px-3 py-1.5",children:y.jsx("div",{className:"font-semibold text-[13px] leading-tight truncate",style:{color:"var(--text-primary)"},children:u.label})}),!_&&y.jsx(og,{type:"source",position:ir.Right})]}):y.jsxs("div",{"aria-label":se,role:"button",className:`relative w-[240px] cursor-pointer ${P?"rounded-2xl":"rounded-xl"}`,style:qe,children:[!N&&y.jsx(og,{type:"target",position:ir.Left}),y.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5",style:{background:`${m}30`,borderRadius:Be},children:[y.jsx(g,{size:16,style:{color:m},className:"shrink-0"}),y.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em] shrink-0",style:{color:m},children:p}),C&&y.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 ${(pe=u.config)==null?void 0:pe.instanceOf}`,children:[y.jsx(XAe,{size:8}),"Instance"]}),O&&y.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:[y.jsx(KAe,{size:8}),"API"]}),j&&y.jsx(b1n,{accent:m}),u._status&&y.jsx("span",{className:`${O?"":"ml-auto "} w-[7px] h-[7px] rounded-full shrink-0 ${u._status==="running"?"animate-pulse-dot":""}`,style:{backgroundColor:m1n[u._status]},role:"status","aria-label":`Node ${u._status}`}),Q&&u._status!=="error"&&y.jsx("span",{className:`${!u._status&&!O?"ml-auto ":""}w-[7px] h-[7px] rounded-full shrink-0`,style:{backgroundColor:"#f59e0b"},role:"status","aria-label":"Node has schema warnings"})]}),y.jsxs("div",{className:"px-3 py-2",children:[y.jsx("div",{className:"font-semibold text-[13px] leading-tight truncate",style:{color:"var(--text-primary)"},children:u.label}),I&&X!==void 0&&y.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:hdn(X)})]}),!_&&y.jsx(og,{type:"source",position:ir.Right})]})}const a0=re.memo(v1n),cO=Lhe.submodel||"#64748b";function x1n({data:l,selected:s}){const u=l,h=u.config||{},g=h.inputPorts||[],m=h.outputPorts||[],p=(h.childNodeIds||[]).length,O=!!u._traceActive,j=!!u._traceDimmed,C=!!u._hoverDimmed;return y.jsxs("div",{"aria-label":`Submodel node: ${u.label}, ${p} child nodes${O?", trace active":""}`,role:"button",className:"relative rounded-xl w-[240px] cursor-pointer",style:{background:"var(--bg-elevated)",border:O?`1.5px solid ${cO}`:s?`1.5px solid ${cO}`:"1.5px dashed var(--border-bright)",boxShadow:O?`0 0 12px ${cO}40, var(--node-shadow)`:"var(--node-shadow)",opacity:j||C?.3:1,transition:"border-color 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease"},children:[y.jsx("div",{className:"absolute left-0 top-3 bottom-3 w-[3px] rounded-full",style:{backgroundColor:cO,opacity:s?1:.6,transition:"opacity 0.2s ease"}}),g.map(N=>y.jsx(og,{id:`in__${N}`,type:"target",position:ir.Left,style:{top:"50%",opacity:0,width:0,height:0,pointerEvents:"none"}},`in__${N}`)),y.jsx(og,{type:"target",position:ir.Left}),y.jsxs("div",{className:"pl-4 pr-3 py-2.5",children:[y.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[y.jsx(nX,{size:12,style:{color:cO},className:"shrink-0 opacity-80"}),y.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em] shrink-0",style:{color:cO,opacity:.8},children:"SUBMODEL"}),y.jsxs("span",{className:"ml-auto text-[9px] font-mono px-1.5 py-0.5 rounded-full",style:{background:`${cO}18`,color:cO,border:`1px solid ${cO}30`},children:[p," nodes"]})]}),y.jsx("div",{className:"font-semibold text-[13px] leading-tight truncate",style:{color:"var(--text-primary)"},children:u.label}),h.file&&y.jsx("div",{className:"text-[10px] truncate mt-0.5",style:{color:"var(--text-muted)"},children:h.file}),m.length>0&&y.jsx("div",{className:"flex flex-col gap-0.5 items-end mt-1.5",children:m.map(N=>y.jsxs("span",{className:"text-[9px] font-mono",style:{color:"var(--text-muted)"},children:[N," →"]},N))})]}),m.length>0?m.map((N,_)=>y.jsx(og,{id:`out__${N}`,type:"source",position:ir.Right,style:{top:`${(_+1)/(m.length+1)*100}%`}},`out__${N}`)):y.jsx(og,{type:"source",position:ir.Right})]})}const y1n=re.memo(x1n),bEe="#94a3b8";function k1n({data:l}){const s=l,u=s.portDirection==="input",h=u?$Ot:Tfn,g=!!s._traceActive,m=!!s._traceDimmed;return y.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 ${bEe}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&&y.jsx(og,{type:"target",position:ir.Left}),y.jsx(h,{size:12,style:{color:bEe},className:"shrink-0"}),y.jsx("span",{className:"text-[11px] font-mono font-medium truncate",style:{color:bEe},children:s.portName||s.label}),u&&y.jsx(og,{type:"source",position:ir.Right})]})}const O1n=re.memo(k1n);function j1n(l,s){const u=s2[s];l.dataTransfer.setData("application/reactflow-type",s),l.dataTransfer.setData("application/reactflow-config",JSON.stringify(u.defaultConfig)),l.dataTransfer.effectAllowed="move"}function S1n({onCollapse:l,nodes:s}){const u=new Set;if(s)for(const h of s){const g=h.data.nodeType;g&&EMe.has(g)&&u.add(g)}return y.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:[y.jsxs("div",{className:"px-4 py-3 flex items-center justify-between",children:[y.jsx("h2",{className:"text-[11px] font-bold uppercase tracking-[0.1em]",style:{color:"var(--text-muted)"},children:"Nodes"}),l&&y.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:y.jsx(whn,{size:14})})]}),y.jsx("div",{className:"px-2 space-y-0.5 flex-1",children:udn.map(h=>{const g=s2[h],m=g.icon,p=EMe.has(h)&&u.has(h);return y.jsxs("div",{draggable:!p,onDragStart:O=>{p||j1n(O,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:O=>{p||(O.currentTarget.style.background="var(--chrome-hover)")},onMouseLeave:O=>O.currentTarget.style.background="transparent",title:p?`Only one ${g.name} allowed per pipeline`:g.description,children:[y.jsx("div",{className:"w-6 h-6 rounded-md flex items-center justify-center shrink-0",style:{background:`${g.color}18`},children:y.jsx(m,{size:13,style:{color:g.color}})}),y.jsx("span",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:g.name})]},h)})})]})}function MMe(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 T1n(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 XOt(l){const{_nodeId:s,_columns:u,_schemaWarnings:h,_availableColumns:g,...m}=l,p=O=>{if(O===null||typeof O!="object")return O;if(Array.isArray(O))return O.map(p);const j=Object.keys(O).sort();return Object.fromEntries(j.map(C=>[C,p(O[C])]))};return T1n(JSON.stringify(p(m)))}let xfe={},yfe={};const hc=Sde()((l,s)=>({previews:{},columnCache:{},solveResults:{},solveJobs:{},trainResults:{},trainJobs:{},graphVersion:0,setColumns:(u,h,g,m)=>{const p=m?`${u}:${m}`:u;l(O=>({columnCache:{...O.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(O=>({solveJobs:{...O.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,...O}=g.solveJobs,j=h.frontier,C=j&&((N=j.points)!=null&&N.length)?{points:j.points,n_points:j.n_points,constraint_names:j.constraint_names}:null;return{solveJobs:O,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];if(!m)return g;const{[u]:p,...O}=g.solveJobs;return{solveJobs:O,solveResults:{...g.solveResults,[u]:{...g.solveResults[u]??{result:{status:"error",total_objective:0,baseline_objective:0,constraints:{},baseline_constraints:{},lambdas:{},converged:!1},originalResult:{status:"error",total_objective:0,baseline_objective:0,constraints:{},baseline_constraints:{},lambdas:{},converged:!1}},jobId:m.jobId,configHash:m.configHash,constraints:m.constraints,nodeLabel:m.nodeLabel,frontier:null,selectedPointIndex:null,error:h}}}}),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,...O}=g.trainJobs;return{trainJobs:m?O:g.trainJobs,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];if(!m)return g;const{[u]:p,...O}=g.trainJobs;return{trainJobs:O,trainResults:{...g.trainResults,[u]:{result:{status:"error",error:h,metrics:{},feature_importance:[],model_path:"",train_rows:0,test_rows:0},jobId:m.jobId,configHash:m.configHash}}}}),getOptimiserPreview:u=>{const h=s().solveResults[u];if(!h)return delete xfe[u],null;const g=xfe[u];if(g&&g.source===h)return g.result;const m={result:h.result,jobId:h.jobId,constraints:h.constraints,nodeLabel:h.nodeLabel,frontier:h.frontier,selectedPointIndex:h.selectedPointIndex};return xfe[u]={source:h,result:m},m},getModellingPreview:u=>{const h=s().trainResults[u];if(!h||h.result.status==="error")return delete yfe[u],null;const g=s().trainJobs[u],m=yfe[u];if(m&&m.source===h&&m.jobRef===g)return m.result;const p={result:h.result,jobId:h.jobId,nodeLabel:(g==null?void 0:g.nodeLabel)??"Model",configHash:h.configHash};return yfe[u]={source:h,jobRef:g,result:p},p},clearNode:u=>{delete xfe[u],delete yfe[u],l(h=>{const{[u]:g,...m}=h.previews,p=Object.fromEntries(Object.entries(h.columnCache).filter(([z])=>z!==u&&!z.startsWith(`${u}:`))),{[u]:O,...j}=h.solveResults,{[u]:C,...N}=h.solveJobs,{[u]:_,...P}=h.trainResults,{[u]:I,...q}=h.trainJobs;return{previews:m,columnCache:p,solveResults:j,solveJobs:N,trainResults:P,trainJobs:q}})}})),Rx=Sde()((l,s)=>({toasts:[],_toastCounter:0,addToast:(u,h)=>{const g=String(s()._toastCounter+1);l(m=>({_toastCounter:m._toastCounter+1,toasts:[...m.toasts.slice(-9),{id:g,type:u,text:h}]}))},dismissToast:u=>l(h=>({toasts:h.toasts.filter(g=>g.id!==u)}))}));function An(l,s,u){return l[s]??u}function EI(l,s){const u=parseFloat(l);return Number.isNaN(u)?s:u}function oV(l,s){const u=parseInt(l,10);return Number.isNaN(u)?s:u}function MV(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 lhe(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 P9(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 C1n=["RMSE","MAE","Poisson","Tweedie"],E1n=["Logloss","CrossEntropy"],M1n=["gini","rmse","mae","mse","r2","poisson_deviance","tweedie_deviance"],A1n=["auc","logloss"],N1n={gini:"Gini",rmse:"RMSE",mae:"MAE",mse:"MSE",r2:"R²",poisson_deviance:"Poisson Deviance",tweedie_deviance:"Tweedie Deviance",auc:"AUC",logloss:"Logloss"};function _1n({config:l,onUpdate:s,columns:u,target:h,weight:g,task:m,metrics:p}){const O=m==="classification"?E1n:C1n,j=m==="classification"?A1n:M1n;return y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Target & Weight"}),y.jsxs("div",{className:"mt-1.5 space-y-2",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"Target column"}),y.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:[y.jsx("option",{value:"",children:"Select target..."}),u.map(C=>y.jsxs("option",{value:C.name,children:[C.name," (",C.dtype,")"]},C.name))]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"Weight column (optional)"}),y.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:[y.jsx("option",{value:"",children:"None"}),u.map(C=>y.jsx("option",{value:C.name,children:C.name},C.name))]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"Offset column (optional, e.g. log-exposure)"}),y.jsxs("select",{value:An(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:[y.jsx("option",{value:"",children:"None"}),u.map(C=>y.jsx("option",{value:C.name,children:C.name},C.name))]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"Task"}),y.jsx("div",{className:"flex gap-2 mt-0.5",children:["regression","classification"].map(C=>y.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))})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Loss Function"}),y.jsx("div",{className:"mt-1.5 flex flex-wrap gap-1.5",children:O.map(C=>{const _=An(l,"loss_function","")===C;return y.jsx("button",{onClick:()=>s("loss_function",_?null:C),className:"px-2.5 py-1 rounded-md text-xs font-mono transition-colors",style:P9(_),children:C},C)})}),An(l,"loss_function","")==="Tweedie"&&y.jsxs("div",{className:"mt-2",children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Variance power (1.0=Poisson, 2.0=Gamma)"}),y.jsx("input",{type:"range",min:1,max:2,step:.05,value:An(l,"variance_power",1.5),onChange:C=>s("variance_power",parseFloat(C.target.value)),className:"w-full mt-0.5"}),y.jsx("div",{className:"text-[11px] font-mono text-right",style:{color:"var(--text-muted)"},children:An(l,"variance_power",1.5).toFixed(2)})]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Metrics"}),y.jsx("div",{className:"mt-1.5 flex flex-wrap gap-1.5",children:j.map(C=>{const N=p.includes(C);return y.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:P9(N),children:N1n[C]??C},C)})})]})]})]})}const D1n={iterations:1e3,learning_rate:.05,depth:6,l2_leaf_reg:3,early_stopping_rounds:50};function L1n({onUpdate:l,columns:s,target:u,weight:h,exclude:g,params:m,featureCount:p,featuresOpen:O,toggleSection:j}){const C=m.task_type==="GPU",{task_type:N,..._}=m,P=Object.keys(_).length>0?_:D1n,[I,q]=re.useState(JSON.stringify(P,null,2)),[z,X]=re.useState(null),Q=JSON.stringify(P,null,2),[te,V]=re.useState(Q);Q!==te&&(q(Q),V(Q),X(null));const ne=Be=>{try{const ke=JSON.parse(Be);if(typeof ke!="object"||ke===null||Array.isArray(ke)){X("Must be a JSON object");return}X(null),l("params",C?{...ke,task_type:"GPU"}:ke)}catch(ke){X(ke.message)}},ce=Be=>{try{const ke=JSON.parse(I);l("params",Be?{...ke,task_type:"GPU"}:{...ke})}catch(ke){console.warn("GPU toggle: draft has invalid JSON, falling back to last-known params",ke),l("params",Be?{..._,task_type:"GPU"}:{..._})}},se=re.useMemo(()=>new Set(s.map(Be=>Be.name)),[s]),me=re.useMemo(()=>new Set(g),[g]),ye=re.useMemo(()=>g.filter(Be=>!se.has(Be)),[g,se]),qe=Be=>{l("exclude",g.filter(ke=>ke!==Be))};return y.jsxs(y.Fragment,{children:[y.jsxs("div",{children:[y.jsxs("button",{onClick:()=>j("modelling.features"),className:"flex items-center gap-1 text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:[O?y.jsx(Sd,{size:12}):y.jsx(i2,{size:12}),"Features ",s.length>0&&y.jsxs("span",{className:"font-normal",children:["(",p," of ",s.length,g.length>0?`, ${g.length} excluded`:"",")"]})]}),O&&y.jsxs("div",{className:"mt-1.5 space-y-1",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("span",{className:"text-[10px]",style:{color:"var(--text-muted)"},children:"Toggle columns to include or exclude from training"}),y.jsxs("div",{className:"flex gap-1",children:[y.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"}),y.jsx("button",{onClick:()=>{const Be=s.filter(ke=>ke.name!==u&&ke.name!==h).map(ke=>ke.name);l("exclude",Be)},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"})]})]}),(()=>{const Be=s.filter(W=>W.name!==u&&W.name!==h).map(W=>W.name),ke=new Set(ye);return[...new Set([...Be,...ye])].sort().map(W=>{const pe=ke.has(W),je=me.has(W);return pe?y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"text-[11px] font-mono flex-1 truncate",style:{color:"#f59e0b"},children:W}),y.jsx("span",{className:"text-[10px] italic",style:{color:"var(--text-muted)"},children:"not found"}),y.jsx("button",{onClick:()=>qe(W),className:"p-0.5 rounded transition-colors shrink-0",style:{color:"var(--text-muted)"},onMouseEnter:ue=>{ue.currentTarget.style.color="#ef4444"},onMouseLeave:ue=>{ue.currentTarget.style.color="var(--text-muted)"},title:`Remove "${W}" from exclude list`,children:y.jsx(Ix,{size:12})})]},W):y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"text-[11px] font-mono flex-1 truncate",style:{color:"var(--text-secondary)"},children:W}),[!1,!0].map(ue=>y.jsx("button",{onClick:()=>{ue&&!je?l("exclude",[...g,W]):!ue&&je&&qe(W)},className:"px-1.5 py-0.5 rounded text-[10px] font-mono",style:{background:(ue?je:!je)?ue?"rgba(239,68,68,.15)":"rgba(34,197,94,.15)":"var(--chrome-hover)",color:(ue?je:!je)?ue?"#ef4444":"#22c55e":"var(--text-muted)",border:`1px solid ${(ue?je:!je)?ue?"rgba(239,68,68,.3)":"rgba(34,197,94,.3)":"transparent"}`},children:ue?"Exclude":"Include"},ue?"exclude":"include"))]},W)})})(),ye.length>0&&y.jsx("div",{className:"mt-1.5 flex justify-end",children:y.jsxs("button",{onClick:()=>l("exclude",g.filter(Be=>se.has(Be))),className:"px-1.5 py-0.5 rounded text-[10px] font-mono",style:{background:"rgba(245,158,11,.1)",color:"#f59e0b",border:"1px solid rgba(245,158,11,.2)"},children:["Remove all stale (",ye.length,")"]})})]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Hyperparameters"}),y.jsx("p",{className:"text-[10px] mt-0.5",style:{color:"var(--text-muted)"},children:"Any valid CatBoost parameter. Saved on blur."}),y.jsx("textarea",{value:I,onChange:Be=>{if(q(Be.target.value),z)try{JSON.parse(Be.target.value),X(null)}catch{}},onBlur:()=>ne(I),spellCheck:!1,rows:Math.min(20,Math.max(6,I.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 ${z?"#ef4444":"var(--border)"}`,color:"var(--text-primary)",resize:"vertical"}}),z&&y.jsx("p",{className:"text-[10px] mt-0.5",style:{color:"#ef4444"},children:z}),y.jsxs("label",{className:"flex items-center gap-2 mt-2 cursor-pointer select-none",children:[y.jsx("input",{type:"checkbox",checked:C,onChange:Be=>ce(Be.target.checked),className:"accent-purple-500"}),y.jsx("span",{className:"text-[11px]",style:{color:"var(--text-primary)"},children:"GPU training"}),y.jsx("span",{className:"text-[10px]",style:{color:"var(--text-muted)"},children:"(CUDA)"})]})]})]})}function b3t({config:l,onUpdate:s,columns:u,target:h,weight:g,exclude:m,split:p,mlflowOpen:O,monotonicOpen:j,toggleSection:C,onSplitUpdate:N}){return y.jsxs(y.Fragment,{children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Split Strategy"}),y.jsxs("div",{className:"mt-1.5 space-y-2",children:[y.jsx("div",{className:"flex gap-2",children:["random","temporal","group"].map(_=>y.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"&&y.jsxs("div",{className:"space-y-2",children:[y.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Validation"}),y.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)"}})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Holdout"}),y.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)"}})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Seed"}),y.jsx("input",{type:"number",value:p.seed??42,onChange:_=>N("seed",oV(_.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,I=Math.max(0,1-_-P);return y.jsxs("div",{className:"flex gap-0.5 h-1.5 rounded-full overflow-hidden",style:{background:"var(--chrome-hover)"},children:[y.jsx("div",{style:{width:`${I*100}%`,background:"#a855f7"},title:`Train: ${(I*100).toFixed(0)}%`}),_>0&&y.jsx("div",{style:{width:`${_*100}%`,background:"#3b82f6"},title:`Validation: ${(_*100).toFixed(0)}%`}),P>0&&y.jsx("div",{style:{width:`${P*100}%`,background:"#22c55e"},title:`Holdout: ${(P*100).toFixed(0)}%`})]})})()]}),p.strategy==="temporal"&&y.jsxs("div",{className:"space-y-2",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Date column"}),y.jsxs("select",{value:An(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:[y.jsx("option",{value:"",children:"Select..."}),u.map(_=>y.jsx("option",{value:_.name,children:_.name},_.name))]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Cutoff date"}),y.jsx("input",{type:"date",value:An(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"&&y.jsxs("div",{className:"space-y-2",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Group column"}),y.jsxs("select",{value:An(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:[y.jsx("option",{value:"",children:"Select..."}),u.map(_=>y.jsx("option",{value:_.name,children:_.name},_.name))]})]}),y.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Validation"}),y.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)"}})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Holdout"}),y.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)"}})]})]})]}),y.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Cross-validate"}),y.jsx("button",{onClick:()=>s("cv_folds",l.cv_folds?null:5),className:"px-2 py-0.5 rounded text-[11px] font-mono",style:P9(!!l.cv_folds),children:l.cv_folds?"On":"Off"}),!!l.cv_folds&&y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Folds:"}),y.jsx("input",{type:"number",min:2,max:20,step:1,value:An(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 y.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Row limit"}),y.jsx("input",{type:"number",min:0,step:1e5,value:_??"",onChange:P=>{const I=P.target.value;s("row_limit",I===""?null:Math.max(0,parseInt(I)||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&&y.jsxs("span",{className:"text-[10px] font-mono",style:{color:"var(--text-muted)"},children:[_.toLocaleString()," rows"]})]})})()]})]}),y.jsxs("div",{children:[y.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:[O?y.jsx(Sd,{size:12}):y.jsx(i2,{size:12}),"MLflow Logging"]}),O&&y.jsxs("div",{className:"mt-1.5 space-y-2",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Experiment path"}),y.jsx("input",{type:"text",placeholder:"/Shared/haute/experiment",value:An(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)"}})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Model name (registered model)"}),y.jsx("input",{type:"text",placeholder:"Optional",value:An(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&&y.jsxs("div",{children:[y.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:[j?y.jsx(Sd,{size:12}):y.jsx(i2,{size:12}),"Monotonic Constraints"]}),j&&y.jsxs("div",{className:"mt-1.5 space-y-1",children:[y.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=An(l,"monotone_constraints",{}),I=P[_.name]??0;return y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"text-[11px] font-mono flex-1 truncate",style:{color:"var(--text-secondary)"},children:_.name}),[-1,0,1].map(q=>y.jsx("button",{onClick:()=>{const z={...P};q===0?delete z[_.name]:z[_.name]=q,s("monotone_constraints",Object.keys(z).length>0?z:null)},className:"px-1.5 py-0.5 rounded text-[10px] font-mono",style:{background:I===q?q===1?"rgba(34,197,94,.15)":q===-1?"rgba(239,68,68,.15)":"var(--accent-soft)":"var(--chrome-hover)",color:I===q?q===1?"#22c55e":q===-1?"#ef4444":"var(--accent)":"var(--text-muted)",border:`1px solid ${I===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 P1n({trainProgress:l}){return y.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:[y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-[11px]",children:[y.jsx("span",{style:{color:"#a855f7"},children:l.message||"Training..."}),y.jsx("span",{style:{color:"var(--text-muted)"},children:VOt(l.elapsed_seconds)})]}),y.jsx("div",{className:"w-full h-1.5 rounded-full overflow-hidden",style:{background:"rgba(168,85,247,.15)"},children:y.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&&y.jsxs("div",{className:"flex gap-4 text-[11px] font-mono",style:{color:"var(--text-secondary)"},children:[y.jsxs("span",{children:["Round ",y.jsx("span",{style:{color:"var(--text-primary)"},children:l.iteration}),"/",l.total_iterations]}),Object.entries(l.train_loss).map(([s,u])=>y.jsxs("span",{children:[s,": ",y.jsx("span",{style:{color:"var(--text-primary)"},children:u.toFixed(4)})]},s))]})]})}const I1n=1;function CI(l){return l<1024?`${l.toFixed(0)} MB`:`${(l/1024).toFixed(1)} GB`}function w3t({target:l,training:s,trainProgress:u,trainResult:h,isStale:g,ramEstimate:m,ramEstimateLoading:p,ramEstimateError:O=null,rowLimit:j,submitting:C=!1,onTrain:N}){const _=re.useMemo(()=>{if(!m||m.total_rows==null)return null;const z=m.total_rows,X=j!=null&&j>0;let Q=z;X&&(Q=Math.min(Q,j)),m.safe_row_limit!=null&&(Q=Math.min(Q,m.safe_row_limit));const te=Q*m.bytes_per_row*I1n/(1024*1024),V=Q<z,ne=m.was_downsampled&&!(X&&j<=(m.safe_row_limit??z));let ce=m.gpu_vram_estimated_mb??null;if(ce!=null){const se=X?Math.min(j,z):z,me=m.safe_row_limit??z;me>0&&se!==me&&(ce=ce*se/me)}return{rows:Q,trainingMb:te,wasDownsampled:ne,isLimited:V,gpuVramMb:ce}},[m,j]),P=C||s,I=C?y.jsx(VAe,{size:14,className:"animate-pulse"}):s?y.jsx(r2,{size:14,className:"animate-spin"}):y.jsx(khn,{size:14}),q=C?"Preparing training data...":s?(u==null?void 0:u.message)||"Training...":"Train Model";return y.jsxs(y.Fragment,{children:[g&&y.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:[y.jsx(YAe,{size:12,style:{color:"#f59e0b"},className:"shrink-0"}),y.jsx("span",{style:{color:"#fbbf24"},children:"Config changed since last training"}),y.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&&y.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:[y.jsx(r2,{size:12,className:"animate-spin",style:{color:"#a855f7"}}),y.jsx("span",{style:{color:"var(--text-muted)"},children:"Estimating dataset size..."})]}),O&&!p&&!m&&y.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:[y.jsx(Sp,{size:12,className:"shrink-0",style:{color:"#f59e0b"}}),y.jsx("span",{style:{color:"#fbbf24"},children:"RAM estimate unavailable — training will still work"})]}),m&&!p&&_&&y.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:[y.jsxs("div",{className:"flex items-center gap-2",children:[_.wasDownsampled&&y.jsx(Sp,{size:12,className:"shrink-0",style:{color:"#f59e0b"}}),y.jsx("span",{className:"font-medium",style:{color:_.wasDownsampled?"#fbbf24":"#22c55e"},children:_.wasDownsampled?"Will downsample":"Dataset fits in memory"})]}),y.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-0.5 text-[11px] font-mono",style:{color:"var(--text-secondary)"},children:[y.jsx("span",{children:"Source rows"}),y.jsx("span",{style:{color:"var(--text-primary)"},children:m.total_rows.toLocaleString()}),_.isLimited&&y.jsxs(y.Fragment,{children:[y.jsx("span",{children:"Training rows"}),y.jsx("span",{style:{color:_.wasDownsampled?"#f59e0b":"var(--text-primary)"},children:_.rows.toLocaleString()})]}),y.jsx("span",{children:"Est. training RAM"}),y.jsx("span",{style:{color:"var(--text-primary)"},children:CI(_.trainingMb)}),y.jsx("span",{children:"Available RAM"}),y.jsx("span",{style:{color:"var(--text-primary)"},children:CI(m.available_mb)}),_.gpuVramMb!=null&&y.jsxs(y.Fragment,{children:[y.jsx("span",{children:"Est. GPU VRAM"}),y.jsx("span",{style:{color:m.gpu_vram_available_mb!=null&&_.gpuVramMb>m.gpu_vram_available_mb?"#f59e0b":"var(--text-primary)"},children:CI(_.gpuVramMb)}),m.gpu_vram_available_mb!=null&&y.jsxs(y.Fragment,{children:[y.jsx("span",{children:"GPU VRAM"}),y.jsx("span",{style:{color:"var(--text-primary)"},children:CI(m.gpu_vram_available_mb)})]})]})]}),_.gpuVramMb!=null&&m.gpu_vram_available_mb!=null&&_.gpuVramMb>m.gpu_vram_available_mb&&y.jsxs("div",{className:"flex items-center gap-2 mt-1",style:{color:"#f59e0b"},children:[y.jsx(Sp,{size:12,className:"shrink-0"}),y.jsxs("span",{children:["GPU training needs ~",CI(_.gpuVramMb)," but GPU has ",CI(m.gpu_vram_available_mb),". Training will fall back to CPU automatically."]})]})]}),y.jsx("div",{className:"pt-2",style:{borderTop:"1px solid var(--border)"},children:y.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:[I,q]})}),u&&y.jsx(P1n,{trainProgress:u}),h&&h.status!=="error"&&!s&&!C&&y.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:[y.jsx(JAe,{size:12,style:{color:"#22c55e"},className:"shrink-0"}),y.jsx("span",{style:{color:"#22c55e"},children:"Model trained — results in preview panel below"})]}),h&&h.status==="error"&&y.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:y.jsxs("div",{className:"flex items-start gap-2",children:[y.jsx(Sp,{size:14,className:"shrink-0 mt-0.5",style:{color:"#ef4444"}}),y.jsxs("div",{className:"space-y-1 min-w-0",children:[y.jsx("div",{className:"font-semibold",style:{color:"#ef4444"},children:"Training failed"}),y.jsx("div",{style:{color:"#fca5a5",lineHeight:"1.5"},children:h.error})]})]})})]})}const R1n=[{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"}],$1n={poisson:"log",gamma:"log",tweedie:"log",gaussian:"identity",binomial:"logit",quasipoisson:"log",quasibinomial:"logit",negbinomial:"log"},B1n=["log","identity","logit","inverse","sqrt","cloglog","probit"],z1n=[{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 F1n({config:l,onUpdate:s,columns:u}){const h=An(l,"target",""),g=An(l,"weight",""),m=An(l,"family","poisson"),p=An(l,"link",""),O=An(l,"intercept",!0),j=An(l,"metrics",["gini","poisson_deviance"]),C=$1n[m]||"log";return y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Target & Weight"}),y.jsxs("div",{className:"mt-1.5 space-y-2",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"Target column"}),y.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:[y.jsx("option",{value:"",children:"Select target..."}),u.map(N=>y.jsxs("option",{value:N.name,children:[N.name," (",N.dtype,")"]},N.name))]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"Weight column (optional)"}),y.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:[y.jsx("option",{value:"",children:"None"}),u.map(N=>y.jsx("option",{value:N.name,children:N.name},N.name))]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"Offset column (optional, e.g. log-exposure)"}),y.jsxs("select",{value:An(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:[y.jsx("option",{value:"",children:"None"}),u.map(N=>y.jsx("option",{value:N.name,children:N.name},N.name))]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Family"}),y.jsx("div",{className:"mt-1.5 flex flex-wrap gap-1.5",children:R1n.map(N=>{const _=m===N.value;return y.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:P9(_),title:N.hint,children:N.label},N.value)})})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Link Function"}),y.jsxs("div",{className:"mt-1.5 flex flex-wrap gap-1.5",children:[y.jsxs("button",{onClick:()=>s("link",""),className:"px-2.5 py-1 rounded-md text-xs font-mono transition-colors",style:P9(!p),children:["auto (",C,")"]}),B1n.filter(N=>N!==C).map(N=>y.jsx("button",{onClick:()=>s("link",N),className:"px-2.5 py-1 rounded-md text-xs font-mono transition-colors",style:P9(p===N),children:N},N))]})]}),m==="tweedie"&&y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Variance power (1.0=Poisson, 2.0=Gamma)"}),y.jsx("input",{type:"range",min:1,max:2,step:.05,value:An(l,"var_power",1.5),onChange:N=>s("var_power",parseFloat(N.target.value)),className:"w-full mt-0.5"}),y.jsx("div",{className:"text-[11px] font-mono text-right",style:{color:"var(--text-muted)"},children:An(l,"var_power",1.5).toFixed(2)})]}),y.jsxs("label",{className:"flex items-center gap-2 cursor-pointer select-none",children:[y.jsx("input",{type:"checkbox",checked:O,onChange:N=>s("intercept",N.target.checked),className:"accent-purple-500"}),y.jsx("span",{className:"text-[11px]",style:{color:"var(--text-primary)"},children:"Intercept"})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Metrics"}),y.jsx("div",{className:"mt-1.5 flex flex-wrap gap-1.5",children:z1n.map(N=>{const _=j.includes(N.value);return y.jsx("button",{onClick:()=>{const P=_?j.filter(I=>I!==N.value):[...j,N.value];s("metrics",P)},className:"px-2.5 py-1 rounded-md text-xs font-mono transition-colors",style:P9(_),children:N.label},N.value)})})]})]})]})}const q1n=[{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"}],H1n=new Set(["Utf8","String","Categorical","str","string","object","Enum"]);function G1n(l){return H1n.has(l.dtype)?"categorical":"linear"}const Q1n={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 U1n(l,s){const u=Q1n[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 J1n({config:l,onUpdate:s,columns:u,target:h,weight:g,exclude:m}){const p=An(l,"terms",{}),O=An(l,"interactions",[]),j=An(l,"offset",""),[C,N]=re.useState(!0),[_,P]=re.useState("builder"),I=re.useMemo(()=>u.filter(ue=>ue.name!==h&&ue.name!==g&&ue.name!==j&&!m.includes(ue.name)),[u,h,g,j,m]),q=re.useMemo(()=>Object.keys(p).map(ue=>{const ve=I.find(xe=>xe.name===ue);return ve?{col:ve,spec:p[ue]}:null}).filter(ue=>ue!==null),[p,I]),z=re.useMemo(()=>I.filter(ue=>!(ue.name in p)),[I,p]),X=re.useMemo(()=>JSON.stringify(p,null,2),[p]),[Q,te]=re.useState(X),[V,ne]=re.useState(null),ce=re.useRef(X);re.useEffect(()=>{X!==ce.current&&(te(X),ce.current=X,ne(null))},[X]);const se=re.useCallback(ue=>{const ve=I.find(xe=>xe.name===ue);ve&&s("terms",{...p,[ue]:{type:G1n(ve)}})},[p,I,s]),me=re.useCallback(ue=>{const{[ue]:ve,...xe}=p;s("terms",xe)},[p,s]),ye=re.useCallback((ue,ve)=>{s("terms",{...p,[ue]:ve})},[p,s]),qe=re.useCallback((ue,ve,xe)=>{const tt={...p[ue]||{type:"linear"},[ve]:xe};(xe==null||xe==="")&&delete tt[ve],s("terms",{...p,[ue]:tt})},[p,s]),Be=re.useCallback(ue=>{try{const ve=JSON.parse(ue);if(typeof ve!="object"||ve===null||Array.isArray(ve)){ne("Must be a JSON object");return}ne(null),s("terms",ve)}catch(ve){ne(ve.message)}},[s]),ke=re.useCallback(()=>{s("interactions",[...O,{factors:["",""],include_main:!0}])},[O,s]),le=re.useCallback(ue=>{s("interactions",O.filter((ve,xe)=>xe!==ue))},[O,s]),W=re.useCallback((ue,ve,xe)=>{const Ee=O.map((tt,Te)=>Te===ue?{...tt,[ve]:xe}:tt);s("interactions",Ee)},[O,s]),pe=re.useCallback((ue,ve,xe)=>{const Ee=O.map((tt,Te)=>{if(Te!==ue)return tt;const et=[...tt.factors];return et[ve]=xe,{...tt,factors:et}});s("interactions",Ee)},[O,s]),je=q.map(ue=>ue.col.name);return y.jsxs(y.Fragment,{children:[y.jsxs("div",{children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.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?y.jsx(Sd,{size:12}):y.jsx(i2,{size:12}),"Factors",y.jsxs("span",{className:"font-normal",children:["(",q.length,")"]})]}),C&&y.jsxs("div",{className:"flex gap-0.5",children:[y.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"}),y.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"&&y.jsxs("div",{className:"mt-1.5 space-y-1.5",children:[q.length>0?y.jsx("div",{className:"space-y-1",children:q.map(({col:ue,spec:ve})=>y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsx("button",{onClick:()=>me(ue.name),className:"p-0.5 rounded transition-colors shrink-0",style:{color:"var(--text-muted)"},title:`Remove ${ue.name}`,children:y.jsx(F9,{size:11})}),y.jsx("span",{className:"text-[11px] font-mono truncate",style:{color:"var(--text-secondary)",minWidth:"80px",flex:"1 1 0"},title:ue.name,children:ue.name}),y.jsx("select",{value:ve.type,onChange:xe=>ye(ue.name,U1n(ve,xe.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:q1n.map(xe=>y.jsx("option",{value:xe.value,children:xe.label},xe.value))}),(ve.type==="bs"||ve.type==="ns")&&y.jsx("input",{type:"number",value:ve.df??"",onChange:xe=>qe(ue.name,"df",xe.target.value?parseInt(xe.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"}),ve.type==="target_encoding"&&y.jsx("input",{type:"number",value:ve.prior_weight??1,onChange:xe=>qe(ue.name,"prior_weight",EI(xe.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"}),(ve.type==="linear"||ve.type==="bs"||ve.type==="ns")&&y.jsx("button",{onClick:()=>{const Ee={undefined:"increasing",increasing:"decreasing",decreasing:void 0}[ve.monotonicity??"undefined"];qe(ue.name,"monotonicity",Ee)},className:"px-1 py-0.5 rounded text-[10px] font-mono",style:{background:ve.monotonicity?"rgba(168,85,247,.15)":"var(--chrome-hover)",color:ve.monotonicity?"var(--chart-above)":"var(--text-muted)",border:`1px solid ${ve.monotonicity?"rgba(168,85,247,.3)":"transparent"}`,minWidth:"20px"},title:ve.monotonicity==="increasing"?"Increasing (click: decreasing)":ve.monotonicity==="decreasing"?"Decreasing (click: none)":"No constraint (click: increasing)",children:ve.monotonicity==="increasing"?"↑":ve.monotonicity==="decreasing"?"↓":"─"})]},ue.name))}):y.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."}),z.length>0&&y.jsx("div",{className:"pt-1",style:{borderTop:"1px solid var(--border)"},children:y.jsxs("select",{value:"",onChange:ue=>{ue.target.value&&se(ue.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:[y.jsx("option",{value:"",children:"Add factor..."}),z.map(ue=>y.jsxs("option",{value:ue.name,children:[ue.name," (",ue.dtype,")"]},ue.name))]})})]}),C&&_==="json"&&y.jsxs("div",{className:"mt-1.5",children:[y.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."}),y.jsx("textarea",{value:Q,onChange:ue=>{if(te(ue.target.value),V)try{JSON.parse(ue.target.value),ne(null)}catch{}},onBlur:()=>Be(Q),spellCheck:!1,rows:Math.min(20,Math.max(6,Q.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 ${V?"#ef4444":"var(--border)"}`,color:"var(--text-primary)",resize:"vertical"}}),V&&y.jsx("p",{className:"text-[10px] mt-0.5",style:{color:"#ef4444"},children:V})]})]}),y.jsxs("div",{children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Interactions"}),y.jsxs("button",{onClick:ke,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:[y.jsx(l5,{size:10})," Add"]})]}),O.length>0&&y.jsx("div",{className:"mt-1.5 space-y-1.5",children:O.map((ue,ve)=>y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsxs("select",{value:ue.factors[0]||"",onChange:xe=>pe(ve,0,xe.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:[y.jsx("option",{value:"",children:"Select..."}),je.map(xe=>y.jsx("option",{value:xe,children:xe},xe))]}),y.jsx("span",{className:"text-[10px]",style:{color:"var(--text-muted)"},children:"x"}),y.jsxs("select",{value:ue.factors[1]||"",onChange:xe=>pe(ve,1,xe.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:[y.jsx("option",{value:"",children:"Select..."}),je.filter(xe=>xe!==ue.factors[0]).map(xe=>y.jsx("option",{value:xe,children:xe},xe))]}),y.jsxs("label",{className:"flex items-center gap-1 text-[10px] whitespace-nowrap",style:{color:"var(--text-muted)"},children:[y.jsx("input",{type:"checkbox",checked:ue.include_main,onChange:xe=>W(ve,"include_main",xe.target.checked),className:"accent-purple-500"}),"main"]}),y.jsx("button",{onClick:()=>le(ve),className:"p-0.5 rounded transition-colors",style:{color:"var(--text-muted)"},title:"Remove interaction",children:y.jsx(F9,{size:12})})]},ve))})]})]})}const W1n=[{value:"",label:"None"},{value:"ridge",label:"Ridge"},{value:"lasso",label:"Lasso"},{value:"elastic_net",label:"Elastic Net"}];function V1n({config:l,onUpdate:s}){const[u,h]=re.useState(!1),g=An(l,"regularization",""),m=An(l,"alpha",0),p=An(l,"l1_ratio",.5),O=An(l,"cv_folds",5),j=!!g;return y.jsxs("div",{children:[y.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?y.jsx(Sd,{size:12}):y.jsx(i2,{size:12}),"Regularization",j&&y.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&&y.jsxs("div",{className:"mt-1.5 space-y-2",children:[y.jsx("div",{className:"flex flex-wrap gap-1.5",children:W1n.map(C=>y.jsx("button",{onClick:()=>s("regularization",C.value||null),className:"px-2.5 py-1 rounded-md text-xs font-mono transition-colors",style:P9(g===C.value),children:C.label},C.value))}),j&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{children:[y.jsxs("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:["Alpha (",m===0?"Auto via CV":"Manual",")"]}),y.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)"})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"CV folds"}),y.jsx("input",{type:"number",value:O,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"&&y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"L1 ratio (0=Ridge, 1=Lasso)"}),y.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"}),y.jsx("div",{className:"text-[11px] font-mono text-right",style:{color:"var(--text-muted)"},children:p.toFixed(2)})]})]})]})]})}function X1n({config:l,onUpdate:s,upstreamColumns:u,allNodes:h,edges:g,submodels:m,preamble:p}){var rr;const O=l._nodeId,j=hc(ei=>ei.trainJobs[O]),C=hc(ei=>ei.trainResults[O]),N=hc(ei=>ei.startTrainJob),[_,P]=re.useState(!1),I=!!j,q=(j==null?void 0:j.progress)??null,z=(C==null?void 0:C.result)??null,X=re.useMemo(()=>XOt(l),[l]),Q=!!C&&C.configHash!==X,[te,V]=re.useState(null),[ne,ce]=re.useState(!1),[se,me]=re.useState(null),ye=re.useRef(null),qe=Rx(ei=>ei.addToast),Be=re.useRef({allNodes:h,edges:g,submodels:m,preamble:p});Be.current={allNodes:h,edges:g,submodels:m,preamble:p};const ke=String(((rr=l.params)==null?void 0:rr.task_type)??"").toUpperCase()==="GPU",le=An(l,"exclude",[]).length;re.useEffect(()=>{var hs;if(!O)return;(hs=ye.current)==null||hs.abort();const ei=new AbortController;ye.current=ei,ce(!0),V(null),me(null);const{allNodes:Ei,edges:xi,submodels:Kr,preamble:mo}=Be.current;return Edn({graph:MV(Ei,xi,Kr,mo),node_id:O,source:dc.getState().activeSource},{signal:ei.signal}).then(Fo=>{ei.signal.aborted||V(Fo)}).catch(Fo=>{if(!ei.signal.aborted){const Bn=Fo instanceof Error?Fo.message:String(Fo);me(Bn),qe("warning",`RAM estimate failed: ${Bn}`)}}).finally(()=>{ei.signal.aborted||ce(!1)}),()=>ei.abort()},[O,ke,le,qe]);const W=dc(ei=>ei.isSectionOpen("modelling.features")),pe=dc(ei=>ei.isSectionOpen("modelling.mlflow")),je=dc(ei=>ei.isSectionOpen("modelling.monotonic")),ue=dc(ei=>ei.toggleSection),ve=An(l,"target",""),xe=An(l,"weight",""),Ee=An(l,"exclude",[]),tt=An(l,"algorithm",""),Te=An(l,"task","regression"),et=An(l,"params",{}),Ie=An(l,"split",{strategy:"random",validation_size:.2,holdout_size:0,seed:42}),Ye=An(l,"metrics",Te==="regression"?["gini","rmse"]:["auc","logloss"]),Je=u||[],_t=Je.filter(ei=>ei.name!==ve&&ei.name!==xe&&!Ee.includes(ei.name)).length,nn=re.useCallback((ei,Ei)=>{s("split",{...Ie,[ei]:Ei})},[Ie,s]),an=re.useCallback(()=>MV(h,g,m,p),[h,g,m,p]),Jn=re.useCallback(async()=>{var Ei;const ei=((Ei=h.find(xi=>xi.id===O))==null?void 0:Ei.data.label)||"Model Training";P(!0);try{const xi=await Cdn({graph:an(),node_id:O,source:dc.getState().activeSource});xi.status==="started"&&xi.job_id?N(O,xi.job_id,ei,X):(xi.status,hc.getState().completeTrainJob(O,xi))}catch(xi){hc.getState().completeTrainJob(O,{status:"error",metrics:{},feature_importance:[],model_path:"",train_rows:0,test_rows:0,error:String(xi)})}finally{P(!1)}},[O,h,an,X,N]);return tt?tt==="glm"?y.jsxs("div",{className:"px-4 py-3 space-y-4",children:[y.jsx(F1n,{config:l,onUpdate:s,columns:Je}),y.jsx(J1n,{config:l,onUpdate:s,columns:Je,target:ve,weight:xe,exclude:Ee}),y.jsx(V1n,{config:l,onUpdate:s}),y.jsx(b3t,{config:l,onUpdate:s,columns:Je,target:ve,weight:xe,exclude:Ee,split:Ie,mlflowOpen:pe,monotonicOpen:je,toggleSection:ue,onSplitUpdate:nn}),y.jsx(w3t,{target:ve,training:I,trainProgress:q,trainResult:z,isStale:Q,ramEstimate:te,ramEstimateLoading:ne,ramEstimateError:se,rowLimit:typeof l.row_limit=="number"?l.row_limit:null,submitting:_,onTrain:Jn})]}):y.jsxs("div",{className:"px-4 py-3 space-y-4",children:[y.jsx(_1n,{config:l,onUpdate:s,columns:Je,target:ve,weight:xe,task:Te,metrics:Ye}),y.jsx(L1n,{onUpdate:s,columns:Je,target:ve,weight:xe,exclude:Ee,params:et,featureCount:_t,featuresOpen:W,toggleSection:ue}),y.jsx(b3t,{config:l,onUpdate:s,columns:Je,target:ve,weight:xe,exclude:Ee,split:Ie,mlflowOpen:pe,monotonicOpen:je,toggleSection:ue,onSplitUpdate:nn}),y.jsx(w3t,{target:ve,training:I,trainProgress:q,trainResult:z,isStale:Q,ramEstimate:te,ramEstimateLoading:ne,ramEstimateError:se,rowLimit:typeof l.row_limit=="number"?l.row_limit:null,submitting:_,onTrain:Jn})]}):y.jsxs("div",{className:"px-4 py-3 space-y-3",children:[y.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(ei=>y.jsx("button",{onClick:()=>s("algorithm",ei.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:Ei=>{Ei.currentTarget.style.borderColor="var(--accent)",Ei.currentTarget.style.background="var(--accent-soft)"},onMouseLeave:Ei=>{Ei.currentTarget.style.borderColor="var(--border)",Ei.currentTarget.style.background="var(--chrome-hover)"},children:y.jsxs("div",{className:"min-w-0",children:[y.jsx("div",{className:"text-xs font-semibold",style:{color:"var(--text-primary)"},children:ei.name}),y.jsx("div",{className:"text-[11px] mt-0.5",style:{color:"var(--text-muted)"},children:ei.desc})]})},ei.id))]})}function K1n(l,s,u,h,g){const m=hc(V=>V.setColumns),p=dc(V=>V.activeSource),O=l?`${l}:${p}`:"",j=hc(V=>{var ne;return O?((ne=V.columnCache[O])==null?void 0:ne.columns)??null:null}),C=hc(V=>{if(!O)return!1;const ne=V.columnCache[O];return ne?ne.graphVersion===V.graphVersion:!1}),N=Rx(V=>V.addToast),_=re.useMemo(()=>{const V=s.map(ce=>ce.id).sort().join(","),ne=u.map(ce=>`${ce.source}-${ce.target}`).sort().join(",");return`${V}|${ne}`},[s,u]),P=re.useRef(s),I=re.useRef(u);re.useEffect(()=>{P.current=s},[s]),re.useEffect(()=>{I.current=u},[u]);const[q,z]=re.useState(j??[]),X=re.useRef(j),Q=re.useRef(C);re.useEffect(()=>{X.current=j},[j]),re.useEffect(()=>{Q.current=C},[C]);const te=re.useRef("");return re.useEffect(()=>{if(!j)return;const V=JSON.stringify(j);V!==te.current&&(te.current=V,z(j))},[j]),re.useEffect(()=>{if(!l){z([]);return}if(X.current&&(z(X.current),Q.current))return;const V=new AbortController,ne=MV(P.current,I.current,h,g);return che(ne,l,1,p,{signal:V.signal}).then(ce=>{if(ce.columns){const se=JSON.stringify(ce.columns);se!==te.current&&(te.current=se,z(ce.columns)),m(l,ce.columns,hc.getState().graphVersion,p)}}).catch(ce=>{ce instanceof DOMException&&ce.name==="AbortError"||(console.warn("Column fetch failed for node",l,ce),N("warning",`Column fetch failed for "${l}"`),X.current||z([]))}),()=>V.abort()},[l,_,h,g,p,m,N]),q}function Y1n(l,s,u,h){const g=re.useCallback(()=>{const j=new Set(Object.keys(l)),C=u.find(P=>!j.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=re.useCallback(j=>{const C={...l};delete C[j],h("constraints",C)},[l,h]),p=re.useCallback((j,C)=>{if(j===C)return;const N={};for(const[_,P]of Object.entries(l))N[_===j?C:_]=P;h("constraints",N)},[l,h]),O=re.useCallback((j,C,N)=>{h("constraints",{...l,[j]:{...l[j],[C]:N}})},[l,h]);return{handleAddConstraint:g,handleRemoveConstraint:m,handleConstraintColumnChange:p,handleConstraintValueChange:O}}function Ys(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 KOt(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 YOt(l){const s={};for(const[u,h]of Object.entries(l))h.size>0&&(s[u]=[...h]);return s}function ZOt(l){if(l.data.nodeType!==gi.BANDING)return null;const u=(l.data.config||{}).factors;return Array.isArray(u)?u:null}function v3t(l,s){const u=l.find(m=>m.id===s);if(!u)return{};const h=ZOt(u);if(!h)return{};const g={};return KOt(h,g),YOt(g)}function Z1n(l){const s={};for(const u of l){const h=ZOt(u);h&&KOt(h,s)}return YOt(s)}function e6t(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 egn(l,s,u){return e6t(l,s,u).filter(h=>h.nodeType===gi.BANDING).map(({id:h,label:g})=>({id:h,label:g}))}const tgn=[{value:"min",label:"Min (relative)"},{value:"max",label:"Max (relative)"},{value:"min_abs",label:"Min (absolute)"},{value:"max_abs",label:"Max (absolute)"}];function ngn({config:l,onUpdate:s,allNodes:u,edges:h,submodels:g,accentColor:m}){const p=l._nodeId,O=hc(Bn=>Bn.solveJobs[p]),j=hc(Bn=>Bn.solveResults[p]),C=hc(Bn=>Bn.startSolveJob),[N,_]=re.useState(!1),P=N||!!O,I=(O==null?void 0:O.progress)??null,q=(O==null?void 0:O.error)??null,z=(j==null?void 0:j.result)??null,X=re.useMemo(()=>XOt(l),[l]),Q=!!j&&j.configHash!==X,te=dc(Bn=>Bn.isSectionOpen("optimiser.advanced")),V=dc(Bn=>Bn.isSectionOpen("optimiser.mlflow")),ne=dc(Bn=>Bn.toggleSection),ce=An(l,"mode","online"),se=An(l,"factor_columns",[]),me=An(l,"objective",""),ye=An(l,"constraints",{}),qe=An(l,"quote_id","quote_id"),Be=An(l,"scenario_index","scenario_index"),ke=An(l,"scenario_value","scenario_value"),le=An(l,"max_iter",50),W=An(l,"tolerance",1e-6),pe=An(l,"chunk_size",5e5),je=An(l,"record_history",!1),ue=An(l,"max_cd_iterations",10),ve=An(l,"cd_tolerance",.001),xe=An(l,"frontier_min",.8),Ee=An(l,"frontier_max",1.1),tt=An(l,"frontier_steps",15),Te=re.useMemo(()=>p?e6t(p,u,h):[],[p,u,h]),et=An(l,"data_input",""),Ie=K1n(et,u,h,g),Ye=re.useCallback(()=>MV(u,h,g),[u,h,g]),{handleAddConstraint:Je,handleRemoveConstraint:_t,handleConstraintColumnChange:nn,handleConstraintValueChange:an}=Y1n(ye,me,Ie,s),Jn=re.useCallback(Bn=>{se.some(Ji=>Ji.length===1&&Ji[0]===Bn)?s("factor_columns",se.filter(Ji=>!(Ji.length===1&&Ji[0]===Bn))):s("factor_columns",[...se,[Bn]])},[se,s]),rr=re.useCallback(async()=>{var zs;_(!0);const Bn=((zs=u.find(Ji=>Ji.id===p))==null?void 0:zs.data.label)||"Optimiser";try{const Ji=await Adn({graph:Ye(),node_id:p});Ji.status==="started"&&Ji.job_id?C(p,Ji.job_id,Bn,ye,X):Ji.status==="error"&&hc.getState().failSolveJob(p,Ji.error||"Unknown error")}catch(Ji){hc.getState().failSolveJob(p,String(Ji))}finally{_(!1)}},[p,u,Ye,ye,X,C]),ei=re.useMemo(()=>p?egn(p,u,h):[],[p,u,h]),Ei=An(l,"banding_source",""),xi=Ei||(ei.length>0?ei[0].id:"");re.useEffect(()=>{ce==="ratebook"&&!Ei&&xi&&s("banding_source",xi)},[ce,Ei,xi,s]);const Kr=re.useMemo(()=>xi?v3t(u,xi):{},[u,xi]),mo=re.useMemo(()=>Object.keys(Kr).sort(),[Kr]),hs=re.useCallback(Bn=>{s("banding_source",Bn);const zs=v3t(u,Bn),Ji=Object.keys(zs).map(ds=>[ds]);s("factor_columns",Ji)},[u,s]),Fo=!!me&&(ce!=="ratebook"||se.length>0);return y.jsxs("div",{className:"px-4 py-3 space-y-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Mode"}),y.jsx("div",{className:"mt-1.5 flex gap-1",children:["online","ratebook"].map(Bn=>y.jsx("button",{onClick:()=>s("mode",Bn),className:"flex-1 px-3 py-1.5 rounded-lg text-xs font-medium transition-colors",style:{background:ce===Bn?Ys(m,.15):"var(--chrome-hover)",color:ce===Bn?m:"var(--text-muted)",border:`1px solid ${ce===Bn?Ys(m,.3):"transparent"}`},children:Bn==="online"?"Online":"Ratebook"},Bn))})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Objectives & Constraints"}),y.jsx("div",{className:"mt-1.5",children:Te.length>0?y.jsxs("select",{value:et,onChange:Bn=>s("data_input",Bn.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:[y.jsx("option",{value:"",children:"Select input..."}),Te.map(Bn=>y.jsx("option",{value:Bn.id,children:Bn.label},Bn.id))]}):y.jsx("div",{className:"mt-0.5 text-[11px] py-2 text-center",style:{color:"var(--text-muted)"},children:"No inputs connected."})})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Objective"}),y.jsxs("div",{className:"mt-1.5",children:[y.jsx("label",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"Column to maximise"}),y.jsxs("select",{value:me,onChange:Bn=>s("objective",Bn.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:[y.jsx("option",{value:"",children:"Select objective..."}),Ie.map(Bn=>y.jsxs("option",{value:Bn.name,children:[Bn.name," (",Bn.dtype,")"]},Bn.name))]})]})]}),ce==="ratebook"&&y.jsxs("div",{className:"space-y-3",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Rating Factor Source"}),ei.length>0?y.jsx("select",{value:xi,onChange:Bn=>hs(Bn.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:ei.map(Bn=>y.jsx("option",{value:Bn.id,children:Bn.label},Bn.id))}):y.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."})]}),mo.length>0&&y.jsxs("div",{children:[y.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:[y.jsx(dhn,{size:10,className:"inline mr-1"}),"Rating Factors (",se.length," selected)"]}),y.jsx("div",{className:"mt-1.5 space-y-1",children:mo.map(Bn=>{const zs=Kr[Bn]||[],Ji=se.some(ds=>ds.length===1&&ds[0]===Bn);return y.jsxs("button",{onClick:()=>Jn(Bn),className:"w-full flex items-center justify-between px-2.5 py-1.5 rounded-lg text-xs transition-colors",style:{background:Ji?Ys(m,.1):"var(--bg-surface)",border:`1px solid ${Ji?Ys(m,.3):"var(--border)"}`},children:[y.jsx("span",{className:"font-mono",style:{color:Ji?m:"var(--text-primary)"},children:Bn}),y.jsxs("span",{className:"text-[10px]",style:{color:Ji?Ys(m,.7):"var(--text-muted)"},children:[zs.length," levels"]})]},Bn)})})]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Column Mappings"}),y.jsx("div",{className:"mt-1.5 space-y-2",children:[{key:"quote_id",label:"Quote ID",value:qe,default:"quote_id"},{key:"scenario_index",label:"Scenario Index",value:Be,default:"scenario_index"},{key:"scenario_value",label:"Scenario Value",value:ke,default:"scenario_value"}].map(Bn=>y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:Bn.label}),y.jsxs("select",{value:Bn.value,onChange:zs=>s(Bn.key,zs.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:[y.jsxs("option",{value:"",children:["Select ",Bn.label.toLowerCase(),"..."]}),Ie.map(zs=>y.jsx("option",{value:zs.name,children:zs.name},zs.name))]})]},Bn.key))})]}),y.jsxs("div",{children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:["Constraints (",Object.keys(ye).length,")"]}),y.jsxs("button",{onClick:Je,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:[y.jsx(l5,{size:10})," Add"]})]}),y.jsxs("div",{className:"mt-1.5 space-y-2",children:[Object.entries(ye).map(([Bn,zs])=>{const Ji=Object.keys(zs)[0]||"min",ds=zs[Ji]??.9;return y.jsxs("div",{className:"flex items-center gap-1.5 p-2 rounded-lg",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[y.jsxs("select",{value:Bn,onChange:qo=>nn(Bn,qo.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:[y.jsx("option",{value:Bn,children:Bn}),Ie.filter(qo=>qo.name!==Bn&&qo.name!==me&&!ye[qo.name]).map(qo=>y.jsx("option",{value:qo.name,children:qo.name},qo.name))]}),y.jsx("select",{value:Ji,onChange:qo=>an(Bn,qo.target.value,ds),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:tgn.map(qo=>y.jsx("option",{value:qo.value,children:qo.label},qo.value))}),y.jsx("input",{type:"number",step:.01,value:ds,onChange:qo=>an(Bn,Ji,EI(qo.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)"}}),y.jsx("button",{onClick:()=>_t(Bn),className:"p-0.5 rounded transition-colors shrink-0",style:{color:"var(--text-muted)"},children:y.jsx(Ix,{size:12})})]},Bn)}),Object.keys(ye).length===0&&y.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(ye).length>0&&y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Efficient Frontier"}),y.jsxs("div",{className:"mt-1.5 grid grid-cols-3 gap-2",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Min multiplier"}),y.jsx("input",{type:"number",step:.01,value:xe,onChange:Bn=>s("frontier_min",EI(Bn.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)"}})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Max multiplier"}),y.jsx("input",{type:"number",step:.01,value:Ee,onChange:Bn=>s("frontier_max",EI(Bn.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)"}})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Steps"}),y.jsx("input",{type:"number",min:2,step:1,value:tt,onChange:Bn=>s("frontier_steps",oV(Bn.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)"}})]})]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Solver"}),y.jsxs("div",{className:"mt-1.5 grid grid-cols-2 gap-2",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Max iterations"}),y.jsx("input",{type:"number",min:1,step:1,value:le,onChange:Bn=>s("max_iter",oV(Bn.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)"}})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Tolerance"}),y.jsx("input",{type:"number",step:1e-6,value:W,onChange:Bn=>s("tolerance",EI(Bn.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)"}})]})]})]}),y.jsxs("div",{children:[y.jsxs("button",{onClick:()=>ne("optimiser.advanced"),className:"flex items-center gap-1 text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:[te?y.jsx(Sd,{size:12}):y.jsx(i2,{size:12}),"Advanced"]}),te&&y.jsxs("div",{className:"mt-1.5 space-y-2",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Chunk size"}),y.jsx("input",{type:"number",min:1e3,step:1e4,value:pe,onChange:Bn=>s("chunk_size",oV(Bn.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)"}})]}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Record history"}),y.jsx("button",{onClick:()=>s("record_history",!je),className:"px-2 py-0.5 rounded text-[11px] font-mono",style:{background:je?Ys(m,.15):"var(--chrome-hover)",color:je?m:"var(--text-muted)",border:`1px solid ${je?Ys(m,.3):"transparent"}`},children:je?"On":"Off"})]}),ce==="ratebook"&&y.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"CD iterations"}),y.jsx("input",{type:"number",min:1,step:1,value:ue,onChange:Bn=>s("max_cd_iterations",oV(Bn.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)"}})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"CD tolerance"}),y.jsx("input",{type:"number",step:1e-4,value:ve,onChange:Bn=>s("cd_tolerance",EI(Bn.target.value,.001)),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)"}})]})]})]})]}),y.jsxs("div",{children:[y.jsxs("button",{onClick:()=>ne("optimiser.mlflow"),className:"flex items-center gap-1 text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:[V?y.jsx(Sd,{size:12}):y.jsx(i2,{size:12}),"MLflow Logging"]}),V&&y.jsx("div",{className:"mt-1.5 space-y-2",children:y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Experiment path"}),y.jsx("input",{type:"text",placeholder:"Leave blank for default",value:An(l,"mlflow_experiment",""),onChange:Bn=>s("mlflow_experiment",Bn.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)"}})]})})]}),Q&&y.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:[y.jsx(YAe,{size:12,style:{color:"#f59e0b"},className:"shrink-0"}),y.jsx("span",{style:{color:"#fbbf24"},children:"Config changed since last solve"}),y.jsx("button",{onClick:rr,disabled:P||!Fo,className:"ml-auto px-2 py-0.5 rounded text-[11px] font-medium",style:{background:Ys(m,.15),color:m},children:"Re-run"})]}),y.jsx("div",{className:"space-y-2 pt-2",style:{borderTop:"1px solid var(--border)"},children:P?y.jsx("div",{className:"px-3 py-2.5 rounded-lg text-xs space-y-2",style:{background:Ys(m,.06),border:`1px solid ${Ys(m,.2)}`},children:I?y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-[11px]",children:[y.jsxs("span",{className:"flex items-center gap-1.5",style:{color:m},children:[y.jsx(r2,{size:12,className:"animate-spin shrink-0"}),I.message||"Solving..."]}),y.jsx("span",{style:{color:"var(--text-muted)"},children:VOt(I.elapsed_seconds)})]}),y.jsx("div",{className:"w-full h-1.5 rounded-full overflow-hidden",style:{background:Ys(m,.15)},children:y.jsx("div",{className:"h-full rounded-full transition-all duration-300",style:{width:`${Math.max(I.progress*100,2)}%`,background:m}})})]}):y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(r2,{size:12,className:"animate-spin shrink-0",style:{color:m}}),y.jsx("span",{style:{color:m},children:"Executing pipeline..."})]})}):y.jsxs("button",{onClick:rr,disabled:!Fo,className:"w-full flex items-center justify-center gap-2 px-3 py-2 rounded-lg text-xs font-medium transition-colors",style:{background:m,color:"#fff",opacity:Fo?1:.5},children:[y.jsx(IM,{size:14}),"Optimise"]})}),q&&y.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:y.jsxs("div",{className:"flex items-start gap-2",children:[y.jsx(Sp,{size:14,className:"shrink-0 mt-0.5",style:{color:"#ef4444"}}),y.jsxs("div",{className:"space-y-1 min-w-0",children:[y.jsx("div",{className:"font-semibold",style:{color:"#ef4444"},children:"Optimisation failed"}),y.jsx("div",{style:{color:"#fca5a5",lineHeight:"1.5"},children:q})]})]})}),z&&y.jsxs("div",{className:"space-y-2",children:[!z.converged&&y.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:[y.jsx(Sp,{size:14,className:"shrink-0 mt-0.5",style:{color:"#f59e0b"}}),y.jsxs("div",{children:[y.jsx("div",{className:"font-semibold",style:{color:"#f59e0b"},children:"Solver did not converge"}),y.jsx("div",{style:{color:"#fbbf24",lineHeight:"1.5"},children:z.warning||"Try increasing max iterations or relaxing the tolerance."})]})]}),y.jsx("div",{className:"px-3 py-2 rounded-lg text-xs space-y-1",style:{background:z.converged?"rgba(34,197,94,.1)":"rgba(245,158,11,.06)",border:`1px solid ${z.converged?"rgba(34,197,94,.2)":"rgba(245,158,11,.15)"}`},children:y.jsxs("div",{style:{color:z.converged?"#22c55e":"#f59e0b"},children:[z.converged?"Converged":"Did not converge",z.mode==="ratebook"?` in ${z.cd_iterations??"?"} CD iterations`:` in ${z.iterations??"?"} iterations`,z.n_quotes!=null&&z.n_steps!=null&&y.jsxs(y.Fragment,{children:[" (",z.n_quotes.toLocaleString()," quotes, ",z.n_steps," steps)"]})]})})]})]})}const ign={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 tNe(l){for(const[s,u]of Object.entries(ign))if(l.includes(s))return u;return"text-slate-400"}function nNe({columns:l,className:s="",checkbox:u,interactiveRows:h=!1,nameColor:g,nameSuffix:m}){return y.jsx("div",{className:`rounded-lg overflow-hidden ${s}`.trim(),style:{border:"1px solid var(--border)",background:"var(--bg-input)"},children:y.jsxs("table",{className:"w-full text-xs",children:[y.jsx("thead",{children:y.jsxs("tr",{style:{borderBottom:"1px solid var(--border)",background:"var(--bg-elevated)"},children:[u&&y.jsx("th",{className:"text-left px-2.5 py-1.5 font-semibold",style:{color:"var(--text-muted)",width:28}}),y.jsx("th",{className:"text-left px-2.5 py-1.5 font-semibold",style:{color:"var(--text-muted)"},children:"Column"}),y.jsx("th",{className:"text-left px-2.5 py-1.5 font-semibold",style:{color:"var(--text-muted)"},children:"Type"})]})}),y.jsx("tbody",{children:l.map(p=>{const O=(u==null?void 0:u.isChecked(p.name))??!1,j=(g==null?void 0:g(p.name))??"var(--text-primary)";return y.jsxs("tr",{className:h?"cursor-pointer transition-colors":void 0,style:{borderBottom:"1px solid var(--border)"},onClick:h&&u?()=>u.onToggle(p.name):void 0,onMouseEnter:h?N=>{N.currentTarget.style.background="var(--bg-hover)"}:void 0,onMouseLeave:h?N=>{N.currentTarget.style.background="transparent"}:void 0,children:[u&&y.jsx("td",{className:"px-2.5 py-1.5 text-center",children:y.jsx("input",{type:"checkbox",checked:O,onChange:()=>u.onToggle(p.name),onClick:h?N=>N.stopPropagation():void 0,className:`${u.accentClass??"accent-blue-500"} rounded`})}),y.jsxs("td",{className:"px-2.5 py-1.5 font-mono",style:{color:j},children:[p.name,(m==null?void 0:m(p.name))&&y.jsx("span",{className:"ml-1 text-[10px] font-sans italic",style:{opacity:.7},children:m(p.name)})]}),y.jsx("td",{className:"px-2.5 py-1.5",children:y.jsx("span",{className:`text-[11px] font-medium ${tNe(p.dtype)}`,children:p.dtype})})]},p.name)})})]})})}let AMe=[],t6t=[];(()=>{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?t6t:AMe).push(u=u+l[s])})();function rgn(l){if(l<768)return!1;for(let s=0,u=AMe.length;;){let h=s+u>>1;if(l<AMe[h])u=h;else if(l>=t6t[h])s=h+1;else return!0;if(s==u)return!1}}function x3t(l){return l>=127462&&l<=127487}const y3t=8205;function sgn(l,s,u=!0,h=!0){return(u?n6t:ogn)(l,s,h)}function n6t(l,s,u){if(s==l.length)return s;s&&i6t(l.charCodeAt(s))&&r6t(l.charCodeAt(s-1))&&s--;let h=wEe(l,s);for(s+=k3t(h);s<l.length;){let g=wEe(l,s);if(h==y3t||g==y3t||u&&rgn(g))s+=k3t(g),h=g;else if(x3t(g)){let m=0,p=s-2;for(;p>=0&&x3t(wEe(l,p));)m++,p-=2;if(m%2==0)break;s+=2}else break}return s}function ogn(l,s,u){for(;s>0;){let h=n6t(l,s-2,u);if(h<s)return h;s--}return 0}function wEe(l,s){let u=l.charCodeAt(s);if(!r6t(u)||s+1==l.length)return u;let h=l.charCodeAt(s+1);return i6t(h)?(u-55296<<10)+(h-56320)+65536:u}function i6t(l){return l>=56320&&l<57344}function r6t(l){return l>=55296&&l<56320}function k3t(l){return l<65536?1:2}class gc{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]=sR(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),Y3.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]=sR(this,s,u);let h=[];return this.decompose(s,u,h,0),Y3.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 hV(this),m=new hV(s);for(let p=u,O=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(O+=g.value.length,g.done||O>=h)return!0}}iter(s=1){return new hV(this,s)}iterRange(s,u=this.length){return new s6t(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 o6t(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]?gc.empty:s.length<=32?new zf(s):Y3.from(zf.split(s,[]))}}class zf extends gc{constructor(s,u=cgn(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],O=g+p.length;if((u?h:O)>=s)return new lgn(g,O,h,p);g=O+1,h++}}decompose(s,u,h,g){let m=s<=0&&u>=this.length?this:new zf(O3t(this.text,s,u),Math.min(u,this.length)-Math.max(0,s));if(g&1){let p=h.pop(),O=uhe(m.text,p.text.slice(),0,m.length);if(O.length<=32)h.push(new zf(O,p.length+m.length));else{let j=O.length>>1;h.push(new zf(O.slice(0,j)),new zf(O.slice(j)))}}else h.push(m)}replace(s,u,h){if(!(h instanceof zf))return super.replace(s,u,h);[s,u]=sR(this,s,u);let g=uhe(this.text,uhe(h.text,O3t(this.text,0,s)),u),m=this.length+h.length-(u-s);return g.length<=32?new zf(g,m):Y3.from(zf.split(g,[]),m)}sliceString(s,u=this.length,h=`
`){[s,u]=sR(this,s,u);let g="";for(let m=0,p=0;m<=u&&p<this.text.length;p++){let O=this.text[p],j=m+O.length;m>s&&p&&(g+=h),s<j&&u>m&&(g+=O.slice(Math.max(0,s-m),u-m)),m=j+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 zf(h,g)),h=[],g=-1);return g>-1&&u.push(new zf(h,g)),u}}class Y3 extends gc{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],O=g+p.length,j=h+p.lines-1;if((u?j:O)>=s)return p.lineInner(s,u,h,g);g=O+1,h=j+1}}decompose(s,u,h,g){for(let m=0,p=0;p<=u&&m<this.children.length;m++){let O=this.children[m],j=p+O.length;if(s<=j&&u>=p){let C=g&((p<=s?1:0)|(j>=u?2:0));p>=s&&j<=u&&!C?h.push(O):O.decompose(s-p,u-p,h,C)}p=j+1}}replace(s,u,h){if([s,u]=sR(this,s,u),h.lines<this.lines)for(let g=0,m=0;g<this.children.length;g++){let p=this.children[g],O=m+p.length;if(s>=m&&u<=O){let j=p.replace(s-m,u-m,h),C=this.lines-p.lines+j.lines;if(j.lines<C>>4&&j.lines>C>>6){let N=this.children.slice();return N[g]=j,new Y3(N,this.length-(u-s)+h.length)}return super.replace(m,O,j)}m=O+1}return super.replace(s,u,h)}sliceString(s,u=this.length,h=`
`){[s,u]=sR(this,s,u);let g="";for(let m=0,p=0;m<this.children.length&&p<=u;m++){let O=this.children[m],j=p+O.length;p>s&&m&&(g+=h),s<j&&u>p&&(g+=O.sliceString(s-p,u-p,h)),p=j+1}return g}flatten(s){for(let u of this.children)u.flatten(s)}scanIdentical(s,u){if(!(s instanceof Y3))return 0;let h=0,[g,m,p,O]=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==O)return h;let j=this.children[g],C=s.children[m];if(j!=C)return h+j.scanIdentical(C,u);h+=j.length+1}}static from(s,u=s.reduce((h,g)=>h+g.length+1,-1)){let h=0;for(let I of s)h+=I.lines;if(h<32){let I=[];for(let q of s)q.flatten(I);return new zf(I,u)}let g=Math.max(32,h>>5),m=g<<1,p=g>>1,O=[],j=0,C=-1,N=[];function _(I){let q;if(I.lines>m&&I instanceof Y3)for(let z of I.children)_(z);else I.lines>p&&(j>p||!j)?(P(),O.push(I)):I instanceof zf&&j&&(q=N[N.length-1])instanceof zf&&I.lines+q.lines<=32?(j+=I.lines,C+=I.length+1,N[N.length-1]=new zf(q.text.concat(I.text),q.length+1+I.length)):(j+I.lines>g&&P(),j+=I.lines,C+=I.length+1,N.push(I))}function P(){j!=0&&(O.push(N.length==1?N[0]:Y3.from(N,C)),C=-1,j=N.length=0)}for(let I of s)_(I);return P(),O.length==1?O[0]:new Y3(O,u)}}gc.empty=new zf([""],0);function cgn(l){let s=-1;for(let u of l)s+=u.length+1;return s}function uhe(l,s,u=0,h=1e9){for(let g=0,m=0,p=!0;m<l.length&&g<=h;m++){let O=l[m],j=g+O.length;j>=u&&(j>h&&(O=O.slice(0,h-g)),g<u&&(O=O.slice(u-g)),p?(s[s.length-1]+=O,p=!1):s.push(O)),g=j+1}return s}function O3t(l,s,u){return uhe(l,[""],s,u)}class hV{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 zf?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,O=g instanceof zf?g.text.length:g.children.length;if(p==(u>0?O: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 zf){let j=g.text[p+(u<0?-1:0)];if(this.offsets[h]+=u,j.length>Math.max(0,s))return this.value=s==0?j:u>0?j.slice(s):j.slice(0,j.length-s),this;s-=j.length}else{let j=g.children[p+(u<0?-1:0)];s>j.length?(s-=j.length,this.offsets[h]+=u):(u<0&&this.offsets[h]--,this.nodes.push(j),this.offsets.push(u>0?1:(j instanceof zf?j.text.length:j.children.length)<<1))}}}next(s=0){return s<0&&(this.nextInner(-s,-this.dir),s=this.value.length),this.nextInner(s,this.dir)}}class s6t{constructor(s,u,h){this.value="",this.done=!1,this.cursor=new hV(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 o6t{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"&&(gc.prototype[Symbol.iterator]=function(){return this.iter()},hV.prototype[Symbol.iterator]=s6t.prototype[Symbol.iterator]=o6t.prototype[Symbol.iterator]=function(){return this});class lgn{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 sR(l,s,u){return s=Math.max(0,Math.min(l.length,s)),[s,Math.max(s,Math.min(l.length,u))]}function jd(l,s,u=!0,h=!0){return sgn(l,s,u,h)}function ugn(l){return l>=56320&&l<57344}function agn(l){return l>=55296&&l<56320}function ib(l,s){let u=l.charCodeAt(s);if(!agn(u)||s+1==l.length)return u;let h=l.charCodeAt(s+1);return ugn(h)?(u-55296<<10)+(h-56320)+65536:u}function iNe(l){return l<=65535?String.fromCharCode(l):(l-=65536,String.fromCharCode((l>>10)+55296,(l&1023)+56320))}function Z3(l){return l<65536?1:2}const NMe=/\r\n?|\n/;var u1=(function(l){return l[l.Simple=0]="Simple",l[l.TrackDel=1]="TrackDel",l[l.TrackBefore=2]="TrackBefore",l[l.TrackAfter=3]="TrackAfter",l})(u1||(u1={}));class o5{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){_Me(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 o5(s)}composeDesc(s){return this.empty?s:s.empty?this:c6t(this,s)}mapDesc(s,u=!1){return s.empty?this:DMe(this,s,u)}mapPos(s,u=-1,h=u1.Simple){let g=0,m=0;for(let p=0;p<this.sections.length;){let O=this.sections[p++],j=this.sections[p++],C=g+O;if(j<0){if(C>s)return m+(s-g);m+=O}else{if(h!=u1.Simple&&C>=s&&(h==u1.TrackDel&&g<s&&C>s||h==u1.TrackBefore&&g<s||h==u1.TrackAfter&&C>s))return null;if(C>s||C==s&&u<0&&!O)return s==g||u<0?m:m+j;m+=j}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++],O=g+m;if(p>=0&&g<=u&&O>=s)return g<s&&O>u?"cover":!0;g=O}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 o5(s)}static create(s){return new o5(s)}}class Qh extends o5{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 _Me(this,(u,h,g,m,p)=>s=s.replace(g,g+(h-u),p),!1),s}mapDesc(s,u=!1){return DMe(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],O=u[g+1];if(O>=0){u[g]=O,u[g+1]=p;let j=g>>1;for(;h.length<j;)h.push(gc.empty);h.push(p?s.slice(m,m+p):gc.empty)}m+=p}return new Qh(u,h)}compose(s){return this.empty?s:s.empty?this:c6t(this,s,!0)}map(s,u=!1){return s.empty?this:DMe(this,s,u,!0)}iterChanges(s,u=!1){_Me(this,s,u)}get desc(){return o5.create(this.sections)}filter(s){let u=[],h=[],g=[],m=new AV(this);e:for(let p=0,O=0;;){let j=p==s.length?1e9:s[p++];for(;O<j||O==j&&m.len==0;){if(m.done)break e;let N=Math.min(m.len,j-O);sg(g,N,-1);let _=m.ins==-1?-1:m.off==0?m.ins:0;sg(u,N,_),_>0&&I9(h,u,m.text),m.forward(N),O+=N}let C=s[p++];for(;O<C;){if(m.done)break e;let N=Math.min(m.len,C-O);sg(u,N,-1),sg(g,N,m.ins==-1?-1:m.off==0?m.ins:0),m.forward(N),O+=N}}return{changes:new Qh(u,h),filtered:o5.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,O=null;function j(N=!1){if(!N&&!g.length)return;p<u&&sg(g,u-p,-1);let _=new Qh(g,m);O=O?O.compose(_.map(O)):_,g=[],m=[],p=0}function C(N){if(Array.isArray(N))for(let _ of N)C(_);else if(N instanceof Qh){if(N.length!=u)throw new RangeError(`Mismatched change set length (got ${N.length}, expected ${u})`);j(),O=O?O.compose(N.map(O)):N}else{let{from:_,to:P=_,insert:I}=N;if(_>P||_<0||P>u)throw new RangeError(`Invalid change range ${_} to ${P} (in doc of length ${u})`);let q=I?typeof I=="string"?gc.of(I.split(h||NMe)):I:gc.empty,z=q.length;if(_==P&&z==0)return;_<p&&j(),_>p&&sg(g,_-p,-1),sg(g,P-_,z),I9(m,g,q),p=P}}return C(s),j(!O),O}static empty(s){return new Qh(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,O)=>O&&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(gc.empty);h[g]=gc.of(m.slice(1)),u.push(m[0],h[g].length)}}}return new Qh(u,h)}static createSet(s,u){return new Qh(s,u)}}function sg(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 I9(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(gc.empty);l.push(u)}}function _Me(l,s,u){let h=l.inserted;for(let g=0,m=0,p=0;p<l.sections.length;){let O=l.sections[p++],j=l.sections[p++];if(j<0)g+=O,m+=O;else{let C=g,N=m,_=gc.empty;for(;C+=O,N+=j,j&&h&&(_=_.append(h[p-2>>1])),!(u||p==l.sections.length||l.sections[p+1]<0);)O=l.sections[p++],j=l.sections[p++];s(g,C,m,N,_),g=C,m=N}}}function DMe(l,s,u,h=!1){let g=[],m=h?[]:null,p=new AV(l),O=new AV(s);for(let j=-1;;){if(p.done&&O.len||O.done&&p.len)throw new Error("Mismatched change set lengths");if(p.ins==-1&&O.ins==-1){let C=Math.min(p.len,O.len);sg(g,C,-1),p.forward(C),O.forward(C)}else if(O.ins>=0&&(p.ins<0||j==p.i||p.off==0&&(O.len<p.len||O.len==p.len&&!u))){let C=O.len;for(sg(g,O.ins,-1);C;){let N=Math.min(p.len,C);p.ins>=0&&j<p.i&&p.len<=N&&(sg(g,0,p.ins),m&&I9(m,g,p.text),j=p.i),p.forward(N),C-=N}O.next()}else if(p.ins>=0){let C=0,N=p.len;for(;N;)if(O.ins==-1){let _=Math.min(N,O.len);C+=_,N-=_,O.forward(_)}else if(O.ins==0&&O.len<N)N-=O.len,O.next();else break;sg(g,C,j<p.i?p.ins:0),m&&j<p.i&&I9(m,g,p.text),j=p.i,p.forward(p.len-N)}else{if(p.done&&O.done)return m?Qh.createSet(g,m):o5.create(g);throw new Error("Mismatched change set lengths")}}}function c6t(l,s,u=!1){let h=[],g=u?[]:null,m=new AV(l),p=new AV(s);for(let O=!1;;){if(m.done&&p.done)return g?Qh.createSet(h,g):o5.create(h);if(m.ins==0)sg(h,m.len,0,O),m.next();else if(p.len==0&&!p.done)sg(h,0,p.ins,O),g&&I9(g,h,p.text),p.next();else{if(m.done||p.done)throw new Error("Mismatched change set lengths");{let j=Math.min(m.len2,p.len),C=h.length;if(m.ins==-1){let N=p.ins==-1?-1:p.off?0:p.ins;sg(h,j,N,O),g&&N&&I9(g,h,p.text)}else p.ins==-1?(sg(h,m.off?0:m.len,j,O),g&&I9(g,h,m.textBit(j))):(sg(h,m.off?0:m.len,p.off?0:p.ins,O),g&&!p.off&&I9(g,h,p.text));O=(m.ins>j||p.ins>=0&&p.len>j)&&(O||h.length>C),m.forward2(j),p.forward(j)}}}}class AV{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?gc.empty:s[u]}textBit(s){let{inserted:u}=this.set,h=this.i-2>>1;return h>=u.length&&!s?gc.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 TM{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 TM(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 TM(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=>TM.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 TM.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?TM.create(u,s,48|m):TM.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 O=p.from,j=Math.max(m.to,p.to);g<=u&&u--,s.splice(--g,2,m.anchor>m.head?jn.range(j,O):jn.range(O,j))}}return new jn(s,u)}}function l6t(l,s){for(let u of l.ranges)if(u.to>s)throw new RangeError("Selection points outside of document")}let rNe=0;class Ui{constructor(s,u,h,g,m){this.combine=s,this.compareInput=u,this.compare=h,this.isStatic=g,this.id=rNe++,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:sNe),!!s.static,s.enables)}of(s){return new ahe([],this,0,s)}compute(s,u){if(this.isStatic)throw new Error("Can't compute a static facet");return new ahe(s,this,1,u)}computeN(s,u){if(this.isStatic)throw new Error("Can't compute a static facet");return new ahe(s,this,2,u)}from(s,u){return u||(u=h=>h),this.compute([s],h=>u(h.field(s)))}}function sNe(l,s){return l==s||l.length==s.length&&l.every((u,h)=>u===s[h])}class ahe{constructor(s,u,h,g){this.dependencies=s,this.facet=u,this.type=h,this.value=g,this.id=rNe++}dynamicSlot(s){var u;let h=this.value,g=this.facet.compareInput,m=this.id,p=s[m]>>1,O=this.type==2,j=!1,C=!1,N=[];for(let _ of this.dependencies)_=="doc"?j=!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(j&&P.docChanged||C&&(P.docChanged||P.selection)||LMe(_,N)){let I=h(_);if(O?!j3t(I,_.values[p],g):!g(I,_.values[p]))return _.values[p]=I,1}return 0},reconfigure:(_,P)=>{let I,q=P.config.address[m];if(q!=null){let z=Ihe(P,q);if(this.dependencies.every(X=>X instanceof Ui?P.facet(X)===_.facet(X):X instanceof Td?P.field(X,!1)==_.field(X,!1):!0)||(O?j3t(I=h(_),z,g):g(I=h(_),z)))return _.values[p]=z,0}else I=h(_);return _.values[p]=I,1}}}}function j3t(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 LMe(l,s){let u=!1;for(let h of s)dV(l,h)&1&&(u=!0);return u}function fgn(l,s,u){let h=u.map(j=>l[j.id]),g=u.map(j=>j.type),m=h.filter(j=>!(j&1)),p=l[s.id]>>1;function O(j){let C=[];for(let N=0;N<h.length;N++){let _=Ihe(j,h[N]);if(g[N]==2)for(let P of _)C.push(P);else C.push(_)}return s.combine(C)}return{create(j){for(let C of h)dV(j,C);return j.values[p]=O(j),1},update(j,C){if(!LMe(j,m))return 0;let N=O(j);return s.compare(N,j.values[p])?0:(j.values[p]=N,1)},reconfigure(j,C){let N=LMe(j,h),_=C.config.facets[s.id],P=C.facet(s);if(_&&!N&&sNe(u,_))return j.values[p]=P,0;let I=O(j);return s.compare(I,P)?(j.values[p]=P,0):(j.values[p]=I,1)}}}const kfe=Ui.define({static:!0});class Td{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 Td(rNe++,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(kfe).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(kfe),p=g.facet(kfe),O;return(O=m.find(j=>j.field==this))&&O!=p.find(j=>j.field==this)?(h.values[u]=O.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,kfe.of({field:this,create:s})]}get extension(){return this}}const OM={lowest:4,low:3,default:2,high:1,highest:0};function JW(l){return s=>new u6t(s,l)}const V9={highest:JW(OM.highest),high:JW(OM.high),default:JW(OM.default),low:JW(OM.low),lowest:JW(OM.lowest)};class u6t{constructor(s,u){this.inner=s,this.prec=u}}class oR{of(s){return new PMe(this,s)}reconfigure(s){return oR.reconfigure.of({compartment:this,extension:s})}get(s){return s.config.compartments.get(this)}}class PMe{constructor(s,u){this.compartment=s,this.inner=u}}class Phe{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 hgn(s,u,p))P instanceof Td?g.push(P):(m[P.facet.id]||(m[P.facet.id]=[])).push(P);let O=Object.create(null),j=[],C=[];for(let P of g)O[P.id]=C.length<<1,C.push(I=>P.slot(I));let N=h==null?void 0:h.config.facets;for(let P in m){let I=m[P],q=I[0].facet,z=N&&N[P]||[];if(I.every(X=>X.type==0))if(O[q.id]=j.length<<1|1,sNe(z,I))j.push(h.facet(q));else{let X=q.combine(I.map(Q=>Q.value));j.push(h&&q.compare(X,h.facet(q))?h.facet(q):X)}else{for(let X of I)X.type==0?(O[X.id]=j.length<<1|1,j.push(X.value)):(O[X.id]=C.length<<1,C.push(Q=>X.dynamicSlot(Q)));O[q.id]=C.length<<1,C.push(X=>fgn(X,q,I))}}let _=C.map(P=>P(O));return new Phe(s,p,_,O,j,m)}}function hgn(l,s,u){let h=[[],[],[],[],[]],g=new Map;function m(p,O){let j=g.get(p);if(j!=null){if(j<=O)return;let C=h[j].indexOf(p);C>-1&&h[j].splice(C,1),p instanceof PMe&&u.delete(p.compartment)}if(g.set(p,O),Array.isArray(p))for(let C of p)m(C,O);else if(p instanceof PMe){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,O)}else if(p instanceof u6t)m(p.inner,p.prec);else if(p instanceof Td)h[O].push(p),p.provides&&m(p.provides,O);else if(p instanceof ahe)h[O].push(p),p.facet.extensions&&m(p.facet.extensions,OM.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,O)}}return m(l,OM.default),h.reduce((p,O)=>p.concat(O))}function dV(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 Ihe(l,s){return s&1?l.config.staticValues[s>>1]:l.values[s>>1]}const a6t=Ui.define(),IMe=Ui.define({combine:l=>l.some(s=>s),static:!0}),f6t=Ui.define({combine:l=>l.length?l[0]:void 0,static:!0}),h6t=Ui.define(),d6t=Ui.define(),g6t=Ui.define(),p6t=Ui.define({combine:l=>l.length?l[0]:!1});class TO{constructor(s,u){this.type=s,this.value=u}static define(){return new dgn}}class dgn{of(s){return new TO(this,s)}}class ggn{constructor(s){this.map=s}of(s){return new Ds(this,s)}}class Ds{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 Ds(this.type,u)}is(s){return this.type==s}static define(s={}){return new ggn(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}}Ds.reconfigure=Ds.define();Ds.appendConfig=Ds.define();class hh{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&&l6t(h,u.newLength),m.some(O=>O.type==hh.time)||(this.annotations=m.concat(hh.time.of(Date.now())))}static create(s,u,h,g,m,p){return new hh(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(hh.userEvent);return!!(u&&(u==s||u.length>s.length&&u.slice(0,s.length)==s&&u[s.length]=="."))}}hh.time=TO.define();hh.userEvent=TO.define();hh.addToHistory=TO.define();hh.remote=TO.define();function pgn(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 m6t(l,s,u){var h;let g,m,p;return u?(g=s.changes,m=Qh.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:Ds.mapEffects(l.effects,g).concat(Ds.mapEffects(s.effects,m)),annotations:l.annotations.length?l.annotations.concat(s.annotations):s.annotations,scrollIntoView:l.scrollIntoView||s.scrollIntoView}}function RMe(l,s,u){let h=s.selection,g=GI(s.annotations);return s.userEvent&&(g=g.concat(hh.userEvent.of(s.userEvent))),{changes:s.changes instanceof Qh?s.changes:Qh.of(s.changes||[],u,l.facet(f6t)),selection:h&&(h instanceof jn?h:jn.single(h.anchor,h.head)),effects:GI(s.effects),annotations:g,scrollIntoView:!!s.scrollIntoView}}function b6t(l,s,u){let h=RMe(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=m6t(h,RMe(l,s[m],p?h.changes.newLength:l.doc.length),p)}let g=hh.create(l,h.changes,h.selection,h.effects,h.annotations,h.scrollIntoView);return bgn(u?mgn(g):g)}function mgn(l){let s=l.startState,u=!0;for(let g of s.facet(h6t)){let m=g(l);if(m===!1){u=!1;break}Array.isArray(m)&&(u=u===!0?m:pgn(u,m))}if(u!==!0){let g,m;if(u===!1)m=l.changes.invertedDesc,g=Qh.empty(s.doc.length);else{let p=l.changes.filter(u);g=p.changes,m=p.filtered.mapDesc(p.changes).invertedDesc}l=hh.create(s,g,l.selection&&l.selection.map(m),Ds.mapEffects(l.effects,m),l.annotations,l.scrollIntoView)}let h=s.facet(d6t);for(let g=h.length-1;g>=0;g--){let m=h[g](l);m instanceof hh?l=m:Array.isArray(m)&&m.length==1&&m[0]instanceof hh?l=m[0]:l=b6t(s,GI(m),!1)}return l}function bgn(l){let s=l.startState,u=s.facet(g6t),h=l;for(let g=u.length-1;g>=0;g--){let m=u[g](l);m&&Object.keys(m).length&&(h=m6t(h,RMe(s,m,l.changes.newLength),!0))}return h==l?l:hh.create(s,l.changes,l.selection,h.effects,h.annotations,h.scrollIntoView)}const wgn=[];function GI(l){return l==null?wgn:Array.isArray(l)?l:[l]}var ia=(function(l){return l[l.Word=0]="Word",l[l.Space=1]="Space",l[l.Other=2]="Other",l})(ia||(ia={}));const vgn=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let $Me;try{$Me=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function xgn(l){if($Me)return $Me.test(l);for(let s=0;s<l.length;s++){let u=l[s];if(/\w/.test(u)||u>""&&(u.toUpperCase()!=u.toLowerCase()||vgn.test(u)))return!0}return!1}function ygn(l){return s=>{if(!/\S/.test(s))return ia.Space;if(xgn(s))return ia.Word;for(let u=0;u<l.length;u++)if(s.indexOf(l[u])>-1)return ia.Word;return ia.Other}}class Fc{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 O=0;O<this.config.dynamicSlots.length;O++)dV(this,O<<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 dV(this,h),Ihe(this,h)}update(...s){return b6t(this,s,!0)}applyTransaction(s){let u=this.config,{base:h,compartments:g}=u;for(let O of s.effects)O.is(oR.reconfigure)?(u&&(g=new Map,u.compartments.forEach((j,C)=>g.set(C,j)),u=null),g.set(O.value.compartment,O.value.extension)):O.is(Ds.reconfigure)?(u=null,h=O.value):O.is(Ds.appendConfig)&&(u=null,h=GI(h).concat(O.value));let m;u?m=s.startState.values.slice():(u=Phe.resolve(h,g,this),m=new Fc(u,this.doc,this.selection,u.dynamicSlots.map(()=>null),(j,C)=>C.reconfigure(j,this),null).values);let p=s.startState.facet(IMe)?s.newSelection:s.newSelection.asSingle();new Fc(u,s.newDoc,p,m,(O,j)=>j.update(O,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=GI(h.effects);for(let O=1;O<u.ranges.length;O++){let j=s(u.ranges[O]),C=this.changes(j.changes),N=C.map(g);for(let P=0;P<O;P++)m[P]=m[P].map(N);let _=g.mapDesc(C,!0);m.push(j.range.map(_)),g=g.compose(N),p=Ds.mapEffects(p,N).concat(Ds.mapEffects(GI(j.effects),_))}return{changes:g,selection:jn.create(m,u.mainIndex),effects:p}}changes(s=[]){return s instanceof Qh?s:Qh.of(s,this.doc.length,this.facet(Fc.lineSeparator))}toText(s){return gc.of(s.split(this.facet(Fc.lineSeparator)||NMe))}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:(dV(this,u),Ihe(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 Td&&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],O=s[m];g.push(p.init(j=>p.spec.fromJSON(O,j)))}}return Fc.create({doc:s.doc,selection:jn.fromJSON(s.selection),extensions:u.extensions?g.concat([u.extensions]):g})}static create(s={}){let u=Phe.resolve(s.extensions||[],new Map),h=s.doc instanceof gc?s.doc:gc.of((s.doc||"").split(u.staticFacet(Fc.lineSeparator)||NMe)),g=s.selection?s.selection instanceof jn?s.selection:jn.single(s.selection.anchor,s.selection.head):jn.single(0);return l6t(g,h.length),u.staticFacet(IMe)||(g=g.asSingle()),new Fc(u,h,g,u.dynamicSlots.map(()=>null),(m,p)=>p.create(m),null)}get tabSize(){return this.facet(Fc.tabSize)}get lineBreak(){return this.facet(Fc.lineSeparator)||`
`}get readOnly(){return this.facet(p6t)}phrase(s,...u){for(let h of this.facet(Fc.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(a6t))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 ygn(u.length?u[0]:"")}wordAt(s){let{text:u,from:h,length:g}=this.doc.lineAt(s),m=this.charCategorizer(s),p=s-h,O=s-h;for(;p>0;){let j=jd(u,p,!1);if(m(u.slice(j,p))!=ia.Word)break;p=j}for(;O<g;){let j=jd(u,O);if(m(u.slice(O,j))!=ia.Word)break;O=j}return p==O?null:jn.range(p+h,O+h)}}Fc.allowMultipleSelections=IMe;Fc.tabSize=Ui.define({combine:l=>l.length?l[0]:4});Fc.lineSeparator=f6t;Fc.readOnly=p6t;Fc.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])}});Fc.languageData=a6t;Fc.changeFilter=h6t;Fc.transactionFilter=d6t;Fc.transactionExtender=g6t;oR.reconfigure=Ds.define();function f5(l,s,u={}){let h={};for(let g of l)for(let m of Object.keys(g)){let p=g[m],O=h[m];if(O===void 0)h[m]=p;else if(!(O===p||p===void 0))if(Object.hasOwnProperty.call(u,m))h[m]=u[m](O,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 q9{eq(s){return this==s}range(s,u=s){return BMe.create(s,u,this)}}q9.prototype.startSide=q9.prototype.endSide=0;q9.prototype.point=!1;q9.prototype.mapMode=u1.TrackDel;function oNe(l,s){return l==s||l.constructor==s.constructor&&l.eq(s)}let BMe=class w6t{constructor(s,u,h){this.from=s,this.to=u,this.value=h}static create(s,u,h){return new w6t(s,u,h)}};function zMe(l,s){return l.from-s.from||l.value.startSide-s.value.startSide}class cNe{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,O=m.length;;){if(p==O)return p;let j=p+O>>1,C=m[j]-s||(h?this.value[j].endSide:this.value[j].startSide)-u;if(j==p)return C>=0?p:O;C>=0?O=j:p=j+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,O=-1;for(let j=0;j<this.value.length;j++){let C=this.value[j],N=this.from[j]+s,_=this.to[j]+s,P,I;if(N==_){let q=u.mapPos(N,C.startSide,C.mapMode);if(q==null||(P=I=q,C.startSide!=C.endSide&&(I=u.mapPos(N,C.endSide),I<P)))continue}else if(P=u.mapPos(N,C.startSide),I=u.mapPos(_,C.endSide),P>I||P==I&&C.startSide>0&&C.endSide<=0)continue;(I-P||C.endSide-C.startSide)<0||(p<0&&(p=P),C.point&&(O=Math.max(O,I-P)),h.push(C),g.push(P-p),m.push(I-p))}return{mapped:h.length?new cNe(g,m,h,O):null,pos:p}}}class xo{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 xo(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(zMe)),this.isEmpty)return u.length?xo.of(u):this;let O=new v6t(this,null,-1).goto(0),j=0,C=[],N=new H9;for(;O.value||j<u.length;)if(j<u.length&&(O.from-u[j].from||O.startSide-u[j].value.startSide)>=0){let _=u[j++];N.addInner(_.from,_.to,_.value)||C.push(_)}else O.rangeIndex==1&&O.chunkIndex<this.chunk.length&&(j==u.length||this.chunkEnd(O.chunkIndex)<u[j].from)&&(!p||g>this.chunkEnd(O.chunkIndex)||m<this.chunkPos[O.chunkIndex])&&N.addChunk(this.chunkPos[O.chunkIndex],this.chunk[O.chunkIndex])?O.nextChunk():((!p||g>O.to||m<O.from||p(O.from,O.to,O.value))&&(N.addInner(O.from,O.to,O.value)||C.push(BMe.create(O.from,O.to,O.value))),O.next());return N.finishInner(this.nextLayer.isEmpty&&!C.length?xo.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 O=this.chunkPos[p],j=this.chunk[p],C=s.touchesRange(O,O+j.length);if(C===!1)g=Math.max(g,j.maxPoint),u.push(j),h.push(s.mapPos(O));else if(C===!0){let{mapped:N,pos:_}=j.map(O,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 xo(h,u,m||xo.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 NV.from([this]).goto(s)}get isEmpty(){return this.nextLayer==this}static iter(s,u=0){return NV.from(s).goto(u)}static compare(s,u,h,g,m=-1){let p=s.filter(_=>_.maxPoint>0||!_.isEmpty&&_.maxPoint>=m),O=u.filter(_=>_.maxPoint>0||!_.isEmpty&&_.maxPoint>=m),j=S3t(p,O,h),C=new WW(p,j,m),N=new WW(O,j,m);h.iterGaps((_,P,I)=>T3t(C,_,N,P,I,g)),h.empty&&h.length==0&&T3t(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 O=S3t(m,p),j=new WW(m,O,0).goto(h),C=new WW(p,O,0).goto(h);for(;;){if(j.to!=C.to||!FMe(j.active,C.active)||j.point&&(!C.point||!oNe(j.point,C.point)))return!1;if(j.to>g)return!0;j.next(),C.next()}}static spans(s,u,h,g,m=-1){let p=new WW(s,null,m).goto(u),O=u,j=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,j);g.point(O,C,p.point,N,_,p.pointRank),j=Math.min(p.openEnd(C),N.length)}else C>O&&(g.span(O,C,p.active,j),j=p.openEnd(C));if(p.to>h)return j+(p.point&&p.to>h?1:0);O=p.to,p.next()}}static of(s,u=!1){let h=new H9;for(let g of s instanceof BMe?[s]:u?kgn(s):s)h.add(g.from,g.to,g.value);return h.finish()}static join(s){if(!s.length)return xo.empty;let u=s[s.length-1];for(let h=s.length-2;h>=0;h--)for(let g=s[h];g!=xo.empty;g=g.nextLayer)u=new xo(g.chunkPos,g.chunk,u,Math.max(g.maxPoint,u.maxPoint));return u}}xo.empty=new xo([],[],null,-1);function kgn(l){if(l.length>1)for(let s=l[0],u=1;u<l.length;u++){let h=l[u];if(zMe(s,h)>0)return l.slice().sort(zMe);s=h}return l}xo.empty.nextLayer=xo.empty;class H9{finishChunk(s){this.chunks.push(new cNe(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 H9)).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(xo.empty)}finishInner(s){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return s;let u=xo.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(s):s,this.setMaxPoint);return this.from=null,u}}function S3t(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 O=h.get(m.chunk[p]);O!=null&&(u?u.mapPos(O):O)==m.chunkPos[p]&&!(u!=null&&u.touchesRange(O,O+m.chunk[p].length))&&g.add(m.chunk[p])}return g}class v6t{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 NV{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 v6t(p,u,h,m));return g.length==1?g[0]:new NV(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--)vEe(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--)vEe(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(),vEe(this.heap,0)}}}function vEe(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 WW{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=NV.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){Ofe(this.active,s),Ofe(this.activeTo,s),Ofe(this.activeRank,s),this.minActive=C3t(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++;jfe(this.active,u,h),jfe(this.activeTo,u,g),jfe(this.activeRank,u,m),s&&jfe(s,u,this.cursor.from),this.minActive=C3t(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&&Ofe(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 T3t(l,s,u,h,g,m){l.goto(s),u.goto(h);let p=h+g,O=h,j=h-s,C=!!m.boundChange;for(let N=!1;;){let _=l.to+j-u.to,P=_||l.endSide-u.endSide,I=P<0?l.to+j:u.to,q=Math.min(I,p);if(l.point||u.point?(l.point&&u.point&&oNe(l.point,u.point)&&FMe(l.activeForPoint(l.to),u.activeForPoint(u.to))||m.comparePoint(O,q,l.point,u.point),N=!1):(N&&m.boundChange(O),q>O&&!FMe(l.active,u.active)&&m.compareRange(O,q,l.active,u.active),C&&q<p&&(_||l.openEnd(I)!=u.openEnd(I))&&(N=!0)),I>p)break;O=I,P<=0&&l.next(),P>=0&&u.next()}}function FMe(l,s){if(l.length!=s.length)return!1;for(let u=0;u<l.length;u++)if(l[u]!=s[u]&&!oNe(l[u],s[u]))return!1;return!0}function Ofe(l,s){for(let u=s,h=l.length-1;u<h;u++)l[u]=l[u+1];l.pop()}function jfe(l,s,u){for(let h=l.length-1;h>=s;h--)l[h+1]=l[h];l[s]=u}function C3t(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 iX(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=jd(l,g));return h}function qMe(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=jd(l,g)}return h===!0?-1:l.length}const HMe="ͼ",E3t=typeof Symbol>"u"?"__"+HMe:Symbol.for(HMe),GMe=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),M3t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class G9{constructor(s,u){this.rules=[];let{finish:h}=u||{};function g(p){return/^@/.test(p)?[p]:p.split(/,\s*/)}function m(p,O,j,C){let N=[],_=/^@(\w+)\b/.exec(p[0]),P=_&&_[1]=="keyframes";if(_&&O==null)return j.push(p[0]+";");for(let I in O){let q=O[I];if(/&/.test(I))m(I.split(/,\s*/).map(z=>p.map(X=>z.replace(/&/,X))).reduce((z,X)=>z.concat(X)),q,j);else if(q&&typeof q=="object"){if(!_)throw new RangeError("The value of a property ("+I+") should be a primitive value.");m(g(I),q,N,P)}else q!=null&&N.push(I.replace(/_.*/,"").replace(/[A-Z]/g,z=>"-"+z.toLowerCase())+": "+q+";")}(N.length||P)&&j.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=M3t[E3t]||1;return M3t[E3t]=s+1,HMe+s.toString(36)}static mount(s,u,h){let g=s[GMe],m=h&&h.nonce;g?m&&g.setNonce(m):g=new Ogn(s,m),g.mount(Array.isArray(u)?u:[u],s)}}let A3t=new Map;class Ogn{constructor(s,u){let h=s.ownerDocument||s,g=h.defaultView;if(!s.head&&s.adoptedStyleSheets&&g.CSSStyleSheet){let m=A3t.get(h);if(m)return s[GMe]=m;this.sheet=new g.CSSStyleSheet,A3t.set(h,this)}else this.styleTag=h.createElement("style"),u&&this.styleTag.setAttribute("nonce",u);this.modules=[],s[GMe]=this}mount(s,u){let h=this.sheet,g=0,m=0;for(let p=0;p<s.length;p++){let O=s[p],j=this.modules.indexOf(O);if(j<m&&j>-1&&(this.modules.splice(j,1),m--,j=-1),j==-1){if(this.modules.splice(m++,0,O),h)for(let C=0;C<O.rules.length;C++)h.insertRule(O.rules[C],g++)}else{for(;m<j;)g+=this.modules[m++].rules.length;g+=O.rules.length,m++}}if(h)u.adoptedStyleSheets.indexOf(this.sheet)<0&&(u.adoptedStyleSheets=[this.sheet,...u.adoptedStyleSheets]);else{let p="";for(let j=0;j<this.modules.length;j++)p+=this.modules[j].getRules()+`
`;this.styleTag.textContent=p;let O=u.head||u;this.styleTag.parentNode!=O&&O.insertBefore(this.styleTag,O.firstChild)}}setNonce(s){this.styleTag&&this.styleTag.getAttribute("nonce")!=s&&this.styleTag.setAttribute("nonce",s)}}var Q9={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:"'"},_V={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},jgn=typeof navigator<"u"&&/Mac/.test(navigator.platform),Sgn=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var l1=0;l1<10;l1++)Q9[48+l1]=Q9[96+l1]=String(l1);for(var l1=1;l1<=24;l1++)Q9[l1+111]="F"+l1;for(var l1=65;l1<=90;l1++)Q9[l1]=String.fromCharCode(l1+32),_V[l1]=String.fromCharCode(l1);for(var xEe in Q9)_V.hasOwnProperty(xEe)||(_V[xEe]=Q9[xEe]);function Tgn(l){var s=jgn&&l.metaKey&&l.shiftKey&&!l.ctrlKey&&!l.altKey||Sgn&&l.shiftKey&&l.key&&l.key.length==1||l.key=="Unidentified",u=!s&&l.key||(l.shiftKey?_V:Q9)[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 zl(){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++)x6t(l,arguments[s]);return l}function x6t(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++)x6t(l,s[u]);else throw new RangeError("Unsupported child node: "+s)}let f0=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},QMe=typeof document<"u"?document:{documentElement:{style:{}}};const UMe=/Edge\/(\d+)/.exec(f0.userAgent),y6t=/MSIE \d/.test(f0.userAgent),JMe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(f0.userAgent),Tde=!!(y6t||JMe||UMe),N3t=!Tde&&/gecko\/(\d+)/i.test(f0.userAgent),yEe=!Tde&&/Chrome\/(\d+)/.exec(f0.userAgent),Cgn="webkitFontSmoothing"in QMe.documentElement.style,WMe=!Tde&&/Apple Computer/.test(f0.vendor),_3t=WMe&&(/Mobile\/\w+/.test(f0.userAgent)||f0.maxTouchPoints>2);var Xi={mac:_3t||/Mac/.test(f0.platform),windows:/Win/.test(f0.platform),linux:/Linux|X11/.test(f0.platform),ie:Tde,ie_version:y6t?QMe.documentMode||6:JMe?+JMe[1]:UMe?+UMe[1]:0,gecko:N3t,gecko_version:N3t?+(/Firefox\/(\d+)/.exec(f0.userAgent)||[0,0])[1]:0,chrome:!!yEe,chrome_version:yEe?+yEe[1]:0,ios:_3t,android:/Android\b/.test(f0.userAgent),webkit_version:Cgn?+(/\bAppleWebKit\/(\d+)/.exec(f0.userAgent)||[0,0])[1]:0,safari:WMe,safari_version:WMe?+(/\bVersion\/(\d+(\.\d+)?)/.exec(f0.userAgent)||[0,0])[1]:0,tabSize:QMe.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function lNe(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 Rhe=Object.create(null);function uNe(l,s,u){if(l==s)return!0;l||(l=Rhe),s||(s=Rhe);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 Egn(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 D3t(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 Mgn(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 CO{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 a1=(function(l){return l[l.Text=0]="Text",l[l.WidgetBefore=1]="WidgetBefore",l[l.WidgetAfter=2]="WidgetAfter",l[l.WidgetRange=3]="WidgetRange",l})(a1||(a1={}));class Fr extends q9{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 rX(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 GM(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}=k6t(s,u);h=(m?u?-3e8:-1:5e8)-1,g=(p?u?2e8:1:-6e8)+1}return new GM(s,h,g,u,s.widget||null,!0)}static line(s){return new sX(s)}static set(s,u=!1){return xo.of(s,u)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Fr.none=xo.empty;class rX extends Fr{constructor(s){let{start:u,end:h}=k6t(s);super(u?-1:5e8,h?1:-6e8,null,s),this.tagName=s.tagName||"span",this.attrs=s.class&&s.attributes?lNe(s.attributes,{class:s.class}):s.class?{class:s.class}:s.attributes||Rhe}eq(s){return this==s||s instanceof rX&&this.tagName==s.tagName&&uNe(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)}}rX.prototype.point=!1;class sX extends Fr{constructor(s){super(-2e8,-2e8,null,s)}eq(s){return s instanceof sX&&this.spec.class==s.spec.class&&uNe(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)}}sX.prototype.mapMode=u1.TrackBefore;sX.prototype.point=!0;class GM 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?u1.TrackBefore:u1.TrackAfter:u1.TrackDel}get type(){return this.startSide!=this.endSide?a1.WidgetRange:this.startSide<=0?a1.WidgetBefore:a1.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(s){return s instanceof GM&&Agn(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)}}GM.prototype.point=!0;function k6t(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 Agn(l,s){return l==s||!!(l&&s&&l.compare(s))}function QI(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 DV extends q9{constructor(s,u){super(),this.tagName=s,this.attributes=u}eq(s){return s==this||s instanceof DV&&this.tagName==s.tagName&&uNe(this.attributes,s.attributes)}static create(s){return new DV(s.tagName,s.attributes||Rhe)}static set(s,u=!1){return xo.of(s,u)}}DV.prototype.startSide=DV.prototype.endSide=-1;function LV(l){let s;return l.nodeType==11?s=l.getSelection?l:l.ownerDocument:s=l,s.getSelection()}function VMe(l,s){return s?l==s||l.contains(s.nodeType!=1?s.parentNode:s):!1}function gV(l,s){if(!s.anchorNode)return!1;try{return VMe(l,s.anchorNode)}catch{return!1}}function pV(l){return l.nodeType==3?IV(l,0,l.nodeValue.length).getClientRects():l.nodeType==1?l.getClientRects():[]}function mV(l,s,u,h){return u?L3t(l,s,u,h,-1)||L3t(l,s,u,h,1):!1}function U9(l){for(var s=0;;s++)if(l=l.previousSibling,!l)return s}function $he(l){return l.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(l.nodeName)}function L3t(l,s,u,h,g){for(;;){if(l==u&&s==h)return!0;if(s==(g<0?0:jO(l))){if(l.nodeName=="DIV")return!1;let m=l.parentNode;if(!m||m.nodeType!=1)return!1;s=U9(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?jO(l):0}else return!1}}function jO(l){return l.nodeType==3?l.nodeValue.length:l.childNodes.length}function PV(l,s){let u=s?l.left:l.right;return{left:u,right:u,top:l.top,bottom:l.bottom}}function Ngn(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 O6t(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 _gn(l,s,u,h,g,m,p,O){let j=l.ownerDocument,C=j.defaultView||window;for(let N=l,_=!1;N&&!_;)if(N.nodeType==1){let P,I=N==j.body,q=1,z=1;if(I)P=Ngn(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 te=N.getBoundingClientRect();({scaleX:q,scaleY:z}=O6t(N,te)),P={left:te.left,right:te.left+N.clientWidth*q,top:te.top,bottom:te.top+N.clientHeight*z}}let X=0,Q=0;if(g=="nearest")s.top<P.top?(Q=s.top-(P.top+p),u>0&&s.bottom>P.bottom+Q&&(Q=s.bottom-P.bottom+p)):s.bottom>P.bottom&&(Q=s.bottom-P.bottom+p,u<0&&s.top-Q<P.top&&(Q=s.top-(P.top+p)));else{let te=s.bottom-s.top,V=P.bottom-P.top;Q=(g=="center"&&te<=V?s.top+te/2-V/2:g=="start"||g=="center"&&u<0?s.top-p:s.bottom-V+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"==O?s.left-m:s.right-(P.right-P.left)+m)-P.left,X||Q)if(I)C.scrollBy(X,Q);else{let te=0,V=0;if(Q){let ne=N.scrollTop;N.scrollTop+=Q/z,V=(N.scrollTop-ne)*z}if(X){let ne=N.scrollLeft;N.scrollLeft+=X/q,te=(N.scrollLeft-ne)*q}s={left:s.left-te,top:s.top-V,right:s.right-te,bottom:s.bottom-V},te&&Math.abs(te-X)<1&&(h="nearest"),V&&Math.abs(V-Q)<1&&(g="nearest")}if(I)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 j6t(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 Dgn{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?jO(u):0),h,Math.min(s.focusOffset,h?jO(h):0))}set(s,u,h,g){this.anchorNode=s,this.anchorOffset=u,this.focusNode=h,this.focusOffset=g}}let kM=null;Xi.safari&&Xi.safari_version>=26&&(kM=!1);function S6t(l){if(l.setActive)return l.setActive();if(kM)return l.focus(kM);let s=[];for(let u=l;u&&(s.push(u,u.scrollTop,u.scrollLeft),u!=u.ownerDocument);u=u.parentNode);if(l.focus(kM==null?{get preventScroll(){return kM={preventScroll:!0},!0}}:void 0),!kM){kM=!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 P3t;function IV(l,s,u=s){let h=P3t||(P3t=document.createRange());return h.setEnd(l,u),h.setStart(l,s),h}function UI(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 Lgn(l){for(;l;){if(l&&(l.nodeType==9||l.nodeType==11&&l.host))return l;l=l.assignedSlot||l.parentNode}return null}function Pgn(l,s){let u=s.focusNode,h=s.focusOffset;if(!u||s.anchorNode!=u||s.anchorOffset!=h)return!1;for(h=Math.min(h,jO(u));;)if(h){if(u.nodeType!=1)return!1;let g=u.childNodes[h-1];g.contentEditable=="false"?h--:(u=g,h=jO(u))}else{if(u==l)return!0;h=U9(u),u=u.parentNode}}function T6t(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 C6t(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=jO(u)}else if(u.parentNode&&!$he(u))h=U9(u),u=u.parentNode;else return null}}function E6t(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&&!$he(u))h=U9(u)+1,u=u.parentNode;else return null}}class Dx{constructor(s,u,h=!0){this.node=s,this.offset=u,this.precise=h}static before(s,u){return new Dx(s.parentNode,U9(s),u)}static after(s,u){return new Dx(s.parentNode,U9(s)+1,u)}}var eu=(function(l){return l[l.LTR=0]="LTR",l[l.RTL=1]="RTL",l})(eu||(eu={}));const QM=eu.LTR,aNe=eu.RTL;function M6t(l){let s=[];for(let u=0;u<l.length;u++)s.push(1<<+l[u]);return s}const Ign=M6t("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),Rgn=M6t("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),XMe=Object.create(null),U3=[];for(let l of["()","[]","{}"]){let s=l.charCodeAt(0),u=l.charCodeAt(1);XMe[s]=u,XMe[u]=-s}function A6t(l){return l<=247?Ign[l]:1424<=l&&l<=1524?2:1536<=l&&l<=1785?Rgn[l-1536]:1774<=l&&l<=2220?4:8192<=l&&l<=8204?256:64336<=l&&l<=65023?4:1}const $gn=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class t5{get dir(){return this.level%2?aNe: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 O=s[p];if(O.from<=u&&O.to>=u){if(O.level==h)return p;(m<0||(g!=0?g<0?O.from<u:O.to>u:s[m].level>O.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 Zl=[];function Bgn(l,s,u,h,g){for(let m=0;m<=h.length;m++){let p=m?h[m-1].to:s,O=m<h.length?h[m].from:u,j=m?256:g;for(let C=p,N=j,_=j;C<O;C++){let P=A6t(l.charCodeAt(C));P==512?P=N:P==8&&_==4&&(P=16),Zl[C]=P==4?2:P,P&7&&(_=P),N=P}for(let C=p,N=j,_=j;C<O;C++){let P=Zl[C];if(P==128)C<O-1&&N==Zl[C+1]&&N&24?P=Zl[C]=N:Zl[C]=256;else if(P==64){let I=C+1;for(;I<O&&Zl[I]==64;)I++;let q=C&&N==8||I<u&&Zl[I]==8?_==1?1:8:256;for(let z=C;z<I;z++)Zl[z]=q;C=I-1}else P==8&&_==1&&(Zl[C]=1);N=P,P&7&&(_=P)}}}function zgn(l,s,u,h,g){let m=g==1?2:1;for(let p=0,O=0,j=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,I,q;_<N;_++)if(I=XMe[P=l.charCodeAt(_)])if(I<0){for(let z=O-3;z>=0;z-=3)if(U3[z+1]==-I){let X=U3[z+2],Q=X&2?g:X&4?X&1?m:g:0;Q&&(Zl[_]=Zl[U3[z]]=Q),O=z;break}}else{if(U3.length==189)break;U3[O++]=_,U3[O++]=P,U3[O++]=j}else if((q=Zl[_])==2||q==1){let z=q==g;j=z?0:1;for(let X=O-3;X>=0;X-=3){let Q=U3[X+2];if(Q&2)break;if(z)U3[X+2]|=2;else{if(Q&4)break;U3[X+2]|=4}}}}}function Fgn(l,s,u,h){for(let g=0,m=h;g<=u.length;g++){let p=g?u[g-1].to:l,O=g<u.length?u[g].from:s;for(let j=p;j<O;){let C=Zl[j];if(C==256){let N=j+1;for(;;)if(N==O){if(g==u.length)break;N=u[g++].to,O=g<u.length?u[g].from:s}else if(Zl[N]==256)N++;else break;let _=m==1,P=(N<s?Zl[N]:h)==1,I=_==P?_?1:2:h;for(let q=N,z=g,X=z?u[z-1].to:l;q>j;)q==X&&(q=u[--z].from,X=z?u[z-1].to:l),Zl[--q]=I;j=N}else m=C,j++}}}function KMe(l,s,u,h,g,m,p){let O=h%2?2:1;if(h%2==g%2)for(let j=s,C=0;j<u;){let N=!0,_=!1;if(C==m.length||j<m[C].from){let z=Zl[j];z!=O&&(N=!1,_=z==16)}let P=!N&&O==1?[]:null,I=N?h:h+1,q=j;e:for(;;)if(C<m.length&&q==m[C].from){if(_)break e;let z=m[C];if(!N)for(let X=z.to,Q=C+1;;){if(X==u)break e;if(Q<m.length&&m[Q].from==X)X=m[Q++].to;else{if(Zl[X]==O)break e;break}}if(C++,P)P.push(z);else{z.from>j&&p.push(new t5(j,z.from,I));let X=z.direction==QM!=!(I%2);YMe(l,X?h+1:h,g,z.inner,z.from,z.to,p),j=z.to}q=z.to}else{if(q==u||(N?Zl[q]!=O:Zl[q]==O))break;q++}P?KMe(l,j,q,h+1,g,P,p):j<q&&p.push(new t5(j,q,I)),j=q}else for(let j=u,C=m.length;j>s;){let N=!0,_=!1;if(!C||j>m[C-1].to){let z=Zl[j-1];z!=O&&(N=!1,_=z==16)}let P=!N&&O==1?[]:null,I=N?h:h+1,q=j;e:for(;;)if(C&&q==m[C-1].to){if(_)break e;let z=m[--C];if(!N)for(let X=z.from,Q=C;;){if(X==s)break e;if(Q&&m[Q-1].to==X)X=m[--Q].from;else{if(Zl[X-1]==O)break e;break}}if(P)P.push(z);else{z.to<j&&p.push(new t5(z.to,j,I));let X=z.direction==QM!=!(I%2);YMe(l,X?h+1:h,g,z.inner,z.from,z.to,p),j=z.from}q=z.from}else{if(q==s||(N?Zl[q-1]!=O:Zl[q-1]==O))break;q--}P?KMe(l,q,j,h+1,g,P,p):q<j&&p.push(new t5(q,j,I)),j=q}}function YMe(l,s,u,h,g,m,p){let O=s%2?2:1;Bgn(l,g,m,h,O),zgn(l,g,m,h,O),Fgn(g,m,h,O),KMe(l,g,m,s,u,h,p)}function qgn(l,s,u){if(!l)return[new t5(0,0,s==aNe?1:0)];if(s==QM&&!u.length&&!$gn.test(l))return _6t(l.length);if(u.length)for(;l.length>Zl.length;)Zl[Zl.length]=256;let h=[],g=s==QM?0:1;return YMe(l,g,g,u,0,l.length,h),h}function _6t(l){return[new t5(0,l,0)]}let D6t="";function Hgn(l,s,u,h,g){var m;let p=h.head-l.from,O=t5.find(s,p,(m=h.bidiLevel)!==null&&m!==void 0?m:-1,h.assoc),j=s[O],C=j.side(g,u);if(p==C){let P=O+=g?1:-1;if(P<0||P>=s.length)return null;j=s[O=P],p=j.side(!g,u),C=j.side(g,u)}let N=jd(l.text,p,j.forward(g,u));(N<j.from||N>j.to)&&(N=C),D6t=l.text.slice(Math.min(p,N),Math.max(p,N));let _=O==(g?s.length-1:0)?null:s[O+(g?1:-1)];return _&&N==C&&_.level+(g?0:1)<j.level?jn.cursor(_.side(!g,u)+l.from,_.forward(g,u)?1:-1,_.level):jn.cursor(N+l.from,j.forward(g,u)?-1:1,j.level)}function Ggn(l,s,u){for(let h=s;h<u;h++){let g=A6t(l.charCodeAt(h));if(g==1)return QM;if(g==2||g==4)return aNe}return QM}const L6t=Ui.define(),P6t=Ui.define(),I6t=Ui.define(),R6t=Ui.define(),ZMe=Ui.define(),$6t=Ui.define(),B6t=Ui.define(),fNe=Ui.define(),hNe=Ui.define(),z6t=Ui.define({combine:l=>l.some(s=>s)}),F6t=Ui.define({combine:l=>l.some(s=>s)}),q6t=Ui.define();class JI{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 JI(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 JI(jn.cursor(s.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Sfe=Ds.define({map:(l,s)=>l.map(s)}),H6t=Ds.define();function Tp(l,s,u){let h=l.facet(R6t);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 pO=Ui.define({combine:l=>l.length?l[0]:!0});let Qgn=0;const II=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 Uh{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(II.of({plugin:this,arg:void 0}))}of(s){return this.baseExtensions.concat(II.of({plugin:this,arg:s}))}static define(s,u){const{eventHandlers:h,eventObservers:g,provide:m,decorations:p}=u||{};return new Uh(Qgn++,s,h,g,O=>{let j=[];return p&&j.push(Cde.of(C=>{let N=C.plugin(O);return N?p(N):Fr.none})),m&&j.push(m(O)),j})}static fromClass(s,u){return Uh.define((h,g)=>new s(h,g),u)}}class kEe{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(Tp(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){Tp(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){Tp(s.state,h,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const G6t=Ui.define(),dNe=Ui.define(),Cde=Ui.define(),Q6t=Ui.define(),gNe=Ui.define(),oX=Ui.define(),U6t=Ui.define();function I3t(l,s){let u=l.state.facet(U6t);if(!u.length)return u;let h=u.map(m=>m instanceof Function?m(l):m),g=[];return xo.spans(h,s.from,s.to,{point(){},span(m,p,O,j){let C=m-s.from,N=p-s.from,_=g;for(let P=O.length-1;P>=0;P--,j--){let I=O[P].spec.bidiIsolate,q;if(I==null&&(I=Ggn(s.text,C,N)),j>0&&_.length&&(q=_[_.length-1]).to==C&&q.direction==I)q.to=N,_=q.inner;else{let z={from:C,to:N,direction:I,inner:[]};_.push(z),_=z.inner}}}}),g}const J6t=Ui.define();function pNe(l){let s=0,u=0,h=0,g=0;for(let m of l.state.facet(J6t)){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 cV=Ui.define();class e2{constructor(s,u,h,g){this.fromA=s,this.toA=u,this.fromB=h,this.toB=g}join(s){return new e2(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 O=g<s.length?s[g].fromB:1e9,j=m<u.length?u[m]:1e9,C=Math.min(O,j);if(C==1e9)break;let N=C+p,_=C,P=N;for(;;)if(m<u.length&&u[m]<=_){let I=u[m+1];m+=2,_=Math.max(_,I);for(let q=g;q<s.length&&s[q].fromB<=_;q++)p=s[q].toA-s[q].toB;P=Math.max(P,I+p)}else if(g<s.length&&s[g].fromB<=_){let I=s[g++];_=Math.max(_,I.toB),P=Math.max(P,I.toA),p=I.toA-I.toB}else break;h.push(new e2(N,P,C,_))}return h}}class Bhe{constructor(s,u,h){this.view=s,this.state=u,this.transactions=h,this.flags=0,this.startState=s.state,this.changes=Qh.empty(this.startState.doc.length);for(let m of h)this.changes=this.changes.compose(m.changes);let g=[];this.changes.iterChangedRanges((m,p,O,j)=>g.push(new e2(m,p,O,j))),this.changedRanges=g}static create(s,u,h){return new Bhe(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 Ugn=[];class of{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 Ugn}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&&Egn(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=U9(this.dom),g=this.length?s>0:u>0;return new Dx(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 Mde)return s;return null}static get(s){return s.cmTile}}class Ede extends of{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 O of this.children){if(O.sync(s),p+=O.length+O.breakAfter,g=h?h.nextSibling:u.firstChild,m&&g!=O.dom&&(m.written=!0),O.dom.parentNode==u)for(;g&&g!=O.dom;)g=R3t(g);else u.insertBefore(O.dom,g);h=O.dom}for(g=h?h.nextSibling:u.firstChild,m&&g&&(m.written=!0);g;)g=R3t(g);this.length=p}}function R3t(l){let s=l.nextSibling;return l.parentNode.removeChild(l),s}class Mde extends Ede{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=of.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 xO)u.push(g),h=p,g=0;else{let O=m+p.length,j=s(p,m);if(j!==void 0)return j;m=O+p.breakAfter}}}resolveBlock(s,u){let h,g=-1,m,p=-1;if(this.blockTiles((O,j)=>{let C=j+O.length;if(s>=j&&s<=C){if(O.isWidget()&&u>=-1&&u<=1){if(O.flags&32)return!0;O.flags&16&&(h=void 0)}(j<s||s==C&&(u<-1?O.length:O.covers(1)))&&(!h||!O.isWidget()&&h.isWidget())&&(h=O,g=s-j),(C>s||s==j&&(u>1?O.length:O.covers(-1)))&&(!m||!O.isWidget()&&m.isWidget())&&(m=O,p=s-j)}}),!h&&!m)throw new Error("No tile at position "+s);return h&&u<0||!m?{tile:h,offset:g}:{tile:m,offset:p}}}class xO extends Ede{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 xO(u||document.createElement(s.tagName),s);return u||(h.flags|=4),h}}class cR extends Ede{constructor(s,u){super(s),this.attrs=u}isLine(){return!0}static start(s,u,h){let g=new cR(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,O=-1;function j(N,_){for(let P=0,I=0;P<N.children.length&&I<=_;P++){let q=N.children[P],z=I+q.length;z>=_&&(q.isComposite()?j(q,_-I):(!p||p.isHidden&&(u>0||h&&Wgn(p,q)))&&(z>_||q.flags&32)?(p=q,O=_-I):(I<_||q.flags&16&&!q.isHidden)&&(g=q,m=_-I)),I=z}}j(this,s);let C=(u<0?g:p)||g||p;return C?{tile:C,offset:C==g?m:O}:null}coordsIn(s,u){let h=this.resolveInline(s,u,!0);return h?h.tile.coordsIn(Math.max(0,h.offset),u):Jgn(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 Dx(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,O=!1;for(let j of p.children){if(O)return new Dx(j.dom,0);j==h.tile&&(O=!0)}}return new Dx(this.dom,0)}}function Jgn(l){let s=l.dom.lastChild;if(!s)return l.dom.getBoundingClientRect();let u=pV(s);return u[u.length-1]||null}function Wgn(l,s){let u=l.coordsIn(0,1),h=s.coordsIn(0,1);return u&&h&&h.top<u.bottom}class Op extends Ede{constructor(s,u){super(s),this.mark=u}get domAttrs(){return this.mark.attrs}static of(s,u){let h=new Op(u||document.createElement(s.tagName),s);return u||(h.flags|=4),h}}class CM extends of{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 O=IV(this.dom,g,m).getClientRects();if(!O.length)return null;let j=O[(p?p<0:u>=0)?0:O.length-1];return Xi.safari&&!p&&j.width==0&&(j=Array.prototype.find.call(O,C=>C.width)||j),p?PV(j,p<0):j||null}static of(s,u){let h=new CM(u||document.createTextNode(s),s);return u||(h.flags|=2),h}}class UM extends of{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 PV(this.dom.getBoundingClientRect(),this.length?s==0:u<=0);{let m=this.dom.getClientRects(),p=null;if(!m.length)return null;let O=this.flags&16?!0:this.flags&32?!1:s>0;for(let j=O?m.length-1:0;p=m[j],!(s>0?j==0:j==m.length-1||p.top<p.bottom);j+=O?-1:1);return PV(p,!O)}}get overrideDOMText(){if(!this.length)return gc.empty;let{root:s}=this;if(!s)return gc.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 UM(m,h,s,g)}}class zhe extends of{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 gc.empty}coordsIn(s){return this.dom.getBoundingClientRect()}}class Vgn{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:O}=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&&!O.length)break;h&&h.leave(g),p=!!g.breakAfter,{tile:g,index:m}=O.pop(),m++}else{let j=g.children[m],C=j.breakAfter;(u>0?j.length<=s:j.length<s)&&(!h||h.skip(j,0,j.length)!==!1||!j.isComposite)?(p=!!C,m++,s-=j.length):(O.push({tile:g,index:m}),g=j,m=0,h&&j.isComposite()&&h.enter(j))}else if(m==g.length)p=!!g.breakAfter,{tile:g,index:m}=O.pop(),m++;else if(s){let j=Math.min(s,g.length-m);h&&h.skip(g,m,m+j),s-=j,m+=j}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 Xgn{constructor(s,u,h,g){this.from=s,this.to=u,this.wrapper=h,this.rank=g}}class Kgn{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),O=p.lastChild;if(O&&O.isText()&&!(O.flags&8)&&O.length+s.length<512){this.cache.reused.set(O,2);let j=p.children[p.children.length-1]=new CM(O.dom,O.text+s);j.parent=p}else p.append(g||CM.of(s,(m=this.cache.find(CM))===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)?OEe(u.line.dom):u.line.dom),this.cache.reused.set(u.line,2));let g=h;for(let O=u.marks.length-1;O>=0;O--){let j=u.marks[O],C=g.lastChild;if(C instanceof Op&&C.mark.eq(j.mark))C.dom!=j.dom&&C.setDOM(OEe(j.dom)),g=C;else{if(this.cache.reused.get(j)){let _=of.get(j.dom);_&&_.setDOM(OEe(j.dom))}let N=Op.of(j.mark,j.dom);g.append(N),g=N}this.cache.reused.set(j,2)}let m=of.get(s.text);m&&this.cache.reused.set(m,2);let p=new CM(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=W6t);let g=cR.start(s,u||((h=this.cache.find(cR))===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],O;if(u>0&&(O=g.lastChild)&&O instanceof Op&&O.mark.eq(p))g=O,u--;else{let j=Op.of(p,(h=this.cache.find(Op,C=>C.mark.eq(p)))===null||h===void 0?void 0:h.dom);g.append(j),g=j,u=0}}return g}endLine(){if(this.curLine){this.flushBuffer();let s=this.curLine.lastChild;(!s||!$3t(this.curLine,!1)||s.dom.nodeName!="BR"&&s.isWidget()&&!(Xi.ios&&$3t(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(jEe,0,32)||new UM(jEe.toDOM(),0,jEe,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 Xgn(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 xO&&g.wrapper.eq(h.wrapper))u=g;else{let m=xO.of(h.wrapper,(s=this.cache.find(xO,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(zhe,void 0,1);return h&&(h.flags=u),h||new zhe(u)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class Ygn{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 O=this.textOff=Math.min(s,g.length);return m?null:g.slice(0,O)}let u=Math.min(this.text.length,this.textOff+s),h=this.text.slice(this.textOff,u);return this.textOff=u,h}}const Fhe=[UM,cR,CM,Op,zhe,xO,Mde];for(let l=0;l<Fhe.length;l++)Fhe[l].bucket=l;class Zgn{constructor(s){this.view=s,this.buckets=Fhe.map(()=>[]),this.index=Fhe.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 O=m.length-1;O>=0;O--){let j=(O+p)%m.length,C=m[j];if((!u||u(C))&&!this.reused.has(C))return m.splice(j,1),j<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 O=g[m];if(!this.reused.has(O)&&(p==0?O.widget.compare(s):O.widget.constructor==s.constructor&&s.updateDOM(O.dom,this.view)))return g.splice(m,1),m<this.index[0]&&this.index[0]--,O.widget==s&&O.length==u&&(O.flags&497)==h?(this.reused.set(O,1),O):(this.reused.set(O,2),new UM(O.dom,u,s,O.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 e0n{constructor(s,u,h,g,m){this.view=s,this.decorations=g,this.disallowBlockEffectsFor=m,this.openWidget=!1,this.openMarks=0,this.cache=new Zgn(s),this.text=new Ygn(s.state.doc),this.builder=new Kgn(this.cache,new Mde(s,s.contentDOM),xo.iter(h)),this.cache.reused.set(u,2),this.old=new Vgn(u),this.reuseWalker={skip:(p,O,j)=>{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 O=p<s.length?s[p++]:null,j=O?O.fromA:this.old.root.length;if(j>g){let C=j-g;this.preserve(C,!p,!O),g=j,m+=C}if(!O)break;u&&O.fromA<=u.range.fromA&&O.toA>=u.range.toA?(this.forward(O.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,O.toA),this.emit(u.range.toB,O.toB)):(this.forward(O.fromA,O.toA),this.emit(m,O.toB)),m=O.toB,g=O.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(s,u,h){let g=i0n(this.old),m=this.openMarks;this.old.advance(s,h?1:-1,{skip:(p,O,j)=>{if(p.isWidget())if(this.openWidget)this.builder.continueWidget(j-O);else{let C=j>0||O<p.length?UM.of(p.widget,this.view,j-O,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),!O&&j==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(O,j),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 zhe)this.cache.add(p);else if(p instanceof Op)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 Op&&g.unshift(p.mark)),this.openWidget=!1},leave:p=>{p.isLine()?g.length&&(g.length=m=0):p instanceof Op&&(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=xo.spans(this.decorations,s,u,{point:(O,j,C,N,_,P)=>{if(C instanceof GM){if(this.disallowBlockEffectsFor[P]){if(C.block)throw new RangeError("Block decorations may not be specified via plugins");if(j>this.view.state.doc.lineAt(O).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(m=N.length,_>N.length)g.continueWidget(j-O);else{let I=C.widget||(C.block?lR.block:lR.inline),q=t0n(C),z=this.cache.findWidget(I,j-O,q)||UM.of(I,this.view,j-O,q);C.block?(C.startSide>0&&g.addLineStartIfNotCovered(h),g.addBlockWidget(z)):(g.ensureLine(h),g.addInlineWidget(z,N,_))}h=null}else h=n0n(h,C);j>O&&this.text.skip(j-O)},span:(O,j,C,N)=>{for(let _=O;_<j;){let P=this.text.next(Math.min(512,j-_));P==null?(g.addLineStartIfNotCovered(h),g.addBreak(),_++):(g.ensureLine(h),g.addText(P,C,_==O?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=of.get(g);if(g==this.view.contentDOM)break;m instanceof Op?u.push(m):m!=null&&m.isLine()?h=m:m instanceof xO||(g.nodeName=="DIV"&&!h&&g!=this.view.contentDOM?h=new cR(g,W6t):h||u.push(Op.of(new rX({tagName:g.nodeName.toLowerCase(),attributes:Mgn(g)}),g)))}return{line:h,marks:u}}}function $3t(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 t0n(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 W6t={class:"cm-line"};function n0n(l,s){let u=s.spec.attributes,h=s.spec.class;return!u&&!h||(l||(l={class:"cm-line"}),u&&lNe(u,l),h&&(l.class+=" "+h)),l}function i0n(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 Op&&s.push(h.mark)}return s}function OEe(l){let s=of.get(l);return s&&s.setDOM(l.cloneNode()),l}class lR extends CO{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}}lR.inline=new lR("span");lR.block=new lR("div");const jEe=new class extends CO{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class B3t{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 Mde(s,s.contentDOM),this.updateInner([new e2(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:!h0n(s.changes,this.hasComposition)&&!s.selectionSet&&(g=s.state.selection.main.head));let m=g>-1?s0n(this.view,s.changes,g):null;if(this.domChanged=null,this.hasComposition){let{from:N,to:_}=this.hasComposition;h=new e2(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,O=this.blockWrappers;this.updateDeco();let j=l0n(p,this.decorations,s.changes);j.length&&(h=e2.extendWithRanges(h,j));let C=a0n(O,this.blockWrappers,s.changes);return C.length&&(h=e2.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,O=new e0n(this.view,p,this.blockWrappers,this.decorations,this.dynamicDecorationMap);u&&of.get(u.text)&&O.cache.reused.set(of.get(u.text),2),this.tile=O.run(s,u),eAe(p,O.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 SEe&&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(H6t)&&(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(pO)||h.tabIndex>-1)&&gV(h,this.view.observer.selectionRange)&&!(g&&h.contains(g));if(!(m||u||p))return;let O=this.forceSelection;this.forceSelection=!1;let j=this.view.state.selection.main,C,N;if(j.empty?N=C=this.inlineDOMNearPos(j.anchor,j.assoc||1):(N=this.inlineDOMNearPos(j.head,j.head==j.from?1:-1),C=this.inlineDOMNearPos(j.anchor,j.anchor==j.from?1:-1)),Xi.gecko&&j.empty&&!this.hasComposition&&r0n(C)){let P=document.createTextNode("");this.view.observer.ignore(()=>C.node.insertBefore(P,C.node.childNodes[C.offset]||null)),C=N=new Dx(P,0),O=!0}let _=this.view.observer.selectionRange;(O||!_.focusNode||(!mV(C.node,C.offset,_.anchorNode,_.anchorOffset)||!mV(N.node,N.offset,_.focusNode,_.focusOffset))&&!this.suppressWidgetCursorChange(_,j))&&(this.view.observer.ignore(()=>{Xi.android&&Xi.chrome&&h.contains(_.focusNode)&&f0n(_.focusNode,h)&&(h.blur(),h.focus({preventScroll:!0}));let P=LV(this.view.root);if(P)if(j.empty){if(Xi.gecko){let I=o0n(C.node,C.offset);if(I&&I!=3){let q=(I==1?C6t:E6t)(C.node,C.offset);q&&(C=new Dx(q.node,q.offset))}}P.collapse(C.node,C.offset),j.bidiLevel!=null&&P.caretBidiLevel!==void 0&&(P.caretBidiLevel=j.bidiLevel)}else if(P.extend){P.collapse(C.node,C.offset);try{P.extend(N.node,N.offset)}catch{}}else{let I=document.createRange();j.anchor>j.head&&([C,N]=[N,C]),I.setEnd(N.node,N.offset),I.setStart(C.node,C.offset),P.removeAllRanges(),P.addRange(I)}p&&this.view.root.activeElement==h&&(h.blur(),g&&g.focus())}),this.view.observer.setSelectionRange(C,N)),this.impreciseAnchor=C.precise?null:new Dx(_.anchorNode,_.anchorOffset),this.impreciseHead=N.precise?null:new Dx(_.focusNode,_.focusOffset)}suppressWidgetCursorChange(s,u){return this.hasComposition&&u.empty&&mV(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=LV(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 O=p.posAtStart;if(u.head==O||u.head==O+p.length)return;let j=this.coordsAt(u.head,-1),C=this.coordsAt(u.head,1);if(!j||!C||j.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=jO(s)==0?0:u==0?-1:1;for(;;){let O=s.parentNode;if(O==h.dom)break;p==0&&O.firstChild!=O.lastChild&&(s==O.firstChild?p=-1:p=1),s=O}p<0?m=s:m=s.nextSibling}if(m==h.dom.firstChild)return g;for(;m&&!of.get(m);)m=m.nextSibling;if(!m)return g+h.length;for(let p=0,O=g;;p++){let j=h.children[p];if(j.dom==m)return O;O+=j.length+j.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,O=-1,j=!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,O=s-N,j=N>s),N>s&&p)return!0}}),!h&&!p?this.domAtPos(s,u):(m&&p?h=null:j&&h&&(p=null),h&&u<0||!p?h.domIn(g,u):p.domIn(O,u))}coordsAt(s,u){let{tile:h,offset:g}=this.tile.resolveBlock(s,u);return h.isWidget()?h.widget instanceof SEe?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 O of m.children){if(O.length>=p){let j=g(O,p);if(j)return j}if(p-=O.length,p<0)break}else if(m.isText()&&p<m.length){let O=jd(m.text,p);if(O==p)return null;let j=IV(m.dom,p,O).getClientRects();for(let C=0;C<j.length;C++){let N=j[C];if(C==j.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,O=-1,j=this.view.textDirection==eu.LTR,C=0,N=(_,P,I)=>{for(let q=0;q<_.children.length&&!(P>g);q++){let z=_.children[q],X=P+z.length,Q=z.dom.getBoundingClientRect(),{height:te}=Q;if(I&&!q&&(C+=Q.top-I.top),z instanceof xO)X>h&&N(z,P,Q);else if(P>=h&&(C>0&&u.push(-C),u.push(te+C),C=0,p)){let V=z.dom.lastChild,ne=V?pV(V):[];if(ne.length){let ce=ne[ne.length-1],se=j?ce.right-Q.left:Q.right-ce.left;se>O&&(O=se,this.minWidth=m,this.minWidthFrom=P,this.minWidthTo=X)}}I&&q==_.children.length-1&&(C+=I.bottom-Q.bottom),P=X+z.breakAfter}};return N(this.tile,0,null),u}textDirectionAt(s){let{tile:u}=this.tile.resolveBlock(s,1);return getComputedStyle(u.dom).direction=="rtl"?eu.RTL:eu.LTR}measureTextSize(){let s=this.tile.blockTiles(p=>{if(p.isLine()&&p.children.length&&p.length<=20){let O=0,j;for(let C of p.children){if(!C.isText()||/[^ -~]/.test(C.text))return;let N=pV(C.dom);if(N.length!=1)return;O+=N[0].width,j=N[0].height}if(O)return{lineHeight:p.dom.getBoundingClientRect().height,charWidth:O/p.length,textHeight:j}}});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=pV(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 O=(u.lineBlockAt(p).bottom-u.lineBlockAt(h).top)/this.view.scaleY;s.push(Fr.replace({widget:new SEe(O),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(Cde).map(m=>(this.dynamicDecorationMap[s++]=typeof m=="function")?m(this.view):m),h=!1,g=this.view.state.facet(gNe).map((m,p)=>{let O=typeof m=="function";return O&&(h=!0),O?m(this.view):m});for(g.length&&(this.dynamicDecorationMap[s++]=h,u.push(xo.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(Q6t).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(q6t))try{if(C(this.view,s.range,s))return!0}catch(N){Tp(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=pNe(this.view),p={left:h.left-m.left,top:h.top-m.top,right:h.right+m.right,bottom:h.bottom+m.bottom},{offsetWidth:O,offsetHeight:j}=this.view.scrollDOM;if(_gn(this.view.scrollDOM,p,u.head<u.anchor?-1:1,s.x,s.y,Math.max(Math.min(s.xMargin,O),-O),Math.max(Math.min(s.yMargin,j),-j),this.view.textDirection==eu.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(){eAe(this.tile)}}function eAe(l,s){let u=s==null?void 0:s.get(l);if(u!=1){u==null&&l.destroy();for(let h of l.children)eAe(h,s)}}function r0n(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 V6t(l,s){let u=l.observer.selectionRange;if(!u.focusNode)return null;let h=C6t(u.focusNode,u.focusOffset),g=E6t(u.focusNode,u.focusOffset),m=h||g;if(g&&h&&g.node!=h.node){let O=of.get(g.node);if(!O||O.isText()&&O.text!=g.node.nodeValue)m=g;else if(l.docView.lastCompositionAfterCursor){let j=of.get(h.node);!j||j.isText()&&j.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 s0n(l,s,u){let h=V6t(l,u);if(!h)return null;let{node:g,from:m,to:p}=h,O=g.nodeValue;if(/[\n\r]/.test(O)||l.state.doc.sliceString(h.from,h.to)!=O)return null;let j=s.invertedDesc;return{range:new e2(j.mapPos(m),j.mapPos(p),m,p),text:g}}function o0n(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 c0n=class{constructor(){this.changes=[]}compareRange(s,u){QI(s,u,this.changes)}comparePoint(s,u){QI(s,u,this.changes)}boundChange(s){QI(s,s,this.changes)}};function l0n(l,s,u){let h=new c0n;return xo.compare(l,s,u,h),h.changes}class u0n{constructor(){this.changes=[]}compareRange(s,u){QI(s,u,this.changes)}comparePoint(){}boundChange(s){QI(s,s,this.changes)}}function a0n(l,s,u){let h=new u0n;return xo.compare(l,s,u,h),h.changes}function f0n(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 h0n(l,s){let u=!1;return s&&l.iterChangedRanges((h,g)=>{h<s.to&&g>s.from&&(u=!0)}),u}class SEe extends CO{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 d0n(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,O=m;u<0?p=jd(g.text,m,!1):O=jd(g.text,m);let j=h(g.text.slice(p,O));for(;p>0;){let C=jd(g.text,p,!1);if(h(g.text.slice(C,p))!=j)break;p=C}for(;O<g.length;){let C=jd(g.text,O);if(h(g.text.slice(O,C))!=j)break;O=C}return jn.range(p+g.from,O+g.from)}function g0n(l,s,u,h,g){let m=Math.round((h-s.left)*l.defaultCharacterWidth);if(l.lineWrapping&&u.height>l.defaultLineHeight*1.5){let O=l.viewState.heightOracle.textHeight,j=Math.floor((g-u.top-(l.defaultLineHeight-O)*.5)/O);m+=j*l.viewState.heightOracle.lineLength}let p=l.state.sliceDoc(u.from,u.to);return u.from+qMe(p,m,l.state.tabSize)}function tAe(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==a1.Text&&(g.type!=m.type||(u<0?m.from<s:m.to>s)))&&(g=m)}}return g||h}return h}function p0n(l,s,u,h){let g=tAe(l,s.head,s.assoc||-1),m=!h||g.type!=a1.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(),O=l.textDirectionAt(g.from),j=l.posAtCoords({x:u==(O==eu.LTR)?p.right-1:p.left+1,y:(m.top+m.bottom)/2});if(j!=null)return jn.cursor(j,u?-1:1)}return jn.cursor(u?g.to:g.from,u?-1:1)}function z3t(l,s,u,h){let g=l.state.doc.lineAt(s.head),m=l.bidiSpans(g),p=l.textDirectionAt(g.from);for(let O=s,j=null;;){let C=Hgn(g,m,p,O,u),N=D6t;if(!C){if(g.number==(u?l.state.doc.lines:1))return O;N=`
`,g=l.state.doc.line(g.number+(u?1:-1)),m=l.bidiSpans(g),C=l.visualLineSide(g,!u)}if(j){if(!j(N))return O}else{if(!h)return C;j=h(N)}O=C}}function m0n(l,s,u){let h=l.state.charCategorizer(s),g=h(u);return m=>{let p=h(m);return g==ia.Space&&(g=p),g==p}}function b0n(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,O,j=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-j.left),O=m<0?C.top:C.bottom;else{let q=l.viewState.lineBlockAt(g);p==null&&(p=Math.min(j.right-j.left,l.defaultCharacterWidth*(g-q.from))),O=(m<0?q.top:q.bottom)+N}let _=j.left+p,P=h??l.viewState.heightOracle.textHeight>>1,I=nAe(l,{x:_,y:O+P*m},!1,m);return jn.cursor(I.pos,I.assoc,void 0,p)}function bV(l,s,u){for(;;){let h=0;for(let g of l)g.between(s-1,s+1,(m,p,O)=>{if(s>m&&s<p){let j=h||u||(s-m<p-s?-1:1);s=j<0?m:p,h=j}});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=bV(l,g.from,0);p!=g.from&&(m=jn.cursor(p,-1))}else{let p=bV(l,g.from,-1),O=bV(l,g.to,1);(p!=g.from||O!=g.to)&&(m=jn.range(g.from==g.anchor?p:O,g.from==g.head?p:O))}m&&(u||(u=s.ranges.slice()),u[h]=m)}return u?jn.create(u,s.mainIndex):s}function TEe(l,s,u){let h=bV(l.state.facet(oX).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 e5{constructor(s,u){this.pos=s,this.assoc=u}}function nAe(l,s,u,h){let g=l.contentDOM.getBoundingClientRect(),m=g.top+l.viewState.paddingTop,{x:p,y:O}=s,j=O-m,C;for(;;){if(j<0)return new e5(0,1);if(j>l.viewState.docHeight)return new e5(l.state.doc.length,-1);if(C=l.elementAtHeight(j),h==null)break;if(C.type==a1.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<=j+m:P.bottom>=j+m))break}let _=l.viewState.heightOracle.textHeight/2;j=h>0?C.bottom+_:C.top-_}if(l.viewport.from>=C.to||l.viewport.to<=C.from){if(u)return null;if(C.type==a1.Text){let _=g0n(l,g,C,p,O);return new e5(_,_==C.from?1:-1)}}if(C.type!=a1.Text)return j<(C.top+C.bottom)/2?new e5(C.from,1):new e5(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 w0n(l,p,O,l.textDirectionAt(C.from)).scanTile(N,C.from)}class w0n{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[t5.find(g,s-h.from,-1,u)].level==this.baseDir}dirAt(s,u){let{line:h,spans:g}=this.bidiSpansAt(s);return g[t5.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]),O,j,C=-1,N=1e9,_;e:for(;h<g;){let I=g-h,q=h+g>>1;t:if(m.has(q)){let X=h+Math.floor(Math.random()*I);for(let Q=0;Q<I;Q++){if(!m.has(X)){q=X;break t}X++,X==g&&(X=h)}break e}m.add(q);let z=u(q);if(z)for(let X=0;X<z.length;X++){let Q=z[X],te=0;if(Q.bottom<this.y)(!O||O.bottom<Q.bottom)&&(O=Q),te=1;else if(Q.top>this.y)(!j||j.top>Q.top)&&(j=Q),te=-1;else{let V=Q.left>this.x?this.x-Q.left:Q.right<this.x?this.x-Q.right:0,ne=Math.abs(V);ne<N&&(C=q,N=ne,_=Q),V&&(te=V<0==(this.baseDir==eu.LTR)?-1:1)}te==-1&&(!p||this.baseDirAt(s[q],1))?g=q:te==1&&(!p||this.baseDirAt(s[q+1],-1))&&(h=q+1)}}if(!_){let I=O&&(!j||this.y-O.bottom<j.top-this.y)?O:j;return this.y=(I.top+I.bottom)/2,this.scan(s,u)}let P=(p?this.dirAt(s[C],1):this.baseDir)==eu.LTR;return{i:C,after:this.x>(_.left+_.right)/2==P}}scanText(s,u){let h=[];for(let m=0;m<s.length;m=jd(s.text,m))h.push(u+m);h.push(u+s.length);let g=this.scan(h,m=>{let p=h[m]-u,O=h[m+1]-u;return IV(s.dom,p,O).getClientRects()});return g.after?new e5(h[g.i+1],-1):new e5(h[g.i],1)}scanTile(s,u){if(!s.length)return new e5(u,1);if(s.children.length==1){let O=s.children[0];if(O.isText())return this.scanText(O,u);if(O.isComposite())return this.scanTile(O,u)}let h=[u];for(let O=0,j=u;O<s.children.length;O++)h.push(j+=s.children[O].length);let g=this.scan(h,O=>{let j=s.children[O];return j.flags&48?null:(j.dom.nodeType==1?j.dom:IV(j.dom,0,j.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 e5(h[g.i+1],-1):new e5(p,1)}}const MI="";class v0n{constructor(s,u){this.points=s,this.view=u,this.text="",this.lineSeparator=u.state.facet(Fc.lineSeparator)}append(s){this.text+=s}lineBreak(){this.text+=MI}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=of.get(g),O=g.nextSibling;if(O==u){p!=null&&p.breakAfter&&!O&&h!=this.view.contentDOM&&this.lineBreak();break}let j=of.get(O);(p&&j?p.breakAfter:(p?p.breakAfter:$he(g))||$he(O)&&(g.nodeName!="BR"||p!=null&&p.isWidget())&&this.text.length>m)&&!y0n(O,u)&&this.lineBreak(),g=O}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,O;if(this.lineSeparator?(m=u.indexOf(this.lineSeparator,h),p=this.lineSeparator.length):(O=g.exec(u))&&(m=O.index,p=O[0].length),this.append(u.slice(h,m<0?u.length:m)),m<0)break;if(this.lineBreak(),p>1)for(let j of this.points)j.node==s&&j.pos>this.text.length&&(j.pos-=p-1);h=m+p}}readNode(s){let u=of.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+(x0n(s,h.node,h.offset)?u:0))}}function x0n(l,s,u){for(;;){if(!s||u<jO(s))return!1;if(s==l)return!0;u=U9(s)+1,s=s.parentNode}}function y0n(l,s){let u;for(;!(l==s||!l);l=l.nextSibling){let h=of.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 F3t{constructor(s,u){this.node=s,this.offset=u,this.pos=-1}}class k0n{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 O=m||p?[]:j0n(s),j=new v0n(O,s);j.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=j.text,this.newSel=S0n(O,this.bounds.from)}else{let O=s.observer.selectionRange,j=m&&m.node==O.focusNode&&m.offset==O.focusOffset||!VMe(s.contentDOM,O.focusNode)?s.state.selection.main.head:s.docView.posFromDOM(O.focusNode,O.focusOffset),C=p&&p.node==O.anchorNode&&p.offset==O.anchorOffset||!VMe(s.contentDOM,O.anchorNode)?s.state.selection.main.anchor:s.docView.posFromDOM(O.anchorNode,O.anchorOffset),N=s.viewport;if((Xi.ios||Xi.chrome)&&s.state.selection.main.empty&&j!=C&&(N.from>0||N.to<s.state.doc.length)){let _=Math.min(j,C),P=Math.max(j,C),I=N.from-_,q=N.to-P;(I==0||I==1||_==0)&&(q==0||q==-1||P==s.state.doc.length)&&(j=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,j)):this.newSel=jn.single(C,j)}}}function K6t(l,s,u,h){if(l.isComposite()){let g=-1,m=-1,p=-1,O=-1;for(let j=0,C=h,N=h;j<l.children.length;j++){let _=l.children[j],P=C+_.length;if(C<s&&P>u)return K6t(_,s,u,C);if(P>=s&&g==-1&&(g=j,m=C),C>u&&_.dom.parentNode==l.dom){p=j,O=N;break}N=P,C=P+_.breakAfter}return{from:m,to:O<0?h+l.length:O,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 Y6t(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:O,to:j}=s.bounds,C=m.from,N=null;(p===8||Xi.android&&s.text.length<j-O)&&(C=m.to,N="end");let _=g.doc.sliceString(O,j,MI),P,I;!m.empty&&m.from>=O&&m.to<=j&&(s.typeOver||_!=s.text)&&_.slice(0,m.from-O)==s.text.slice(0,m.from-O)&&_.slice(m.to-O)==s.text.slice(P=s.text.length-(_.length-(m.to-O)))?u={from:m.from,to:m.to,insert:gc.of(s.text.slice(m.from-O,P).split(MI))}:(I=Z6t(_,s.text,C-O,N))&&(Xi.chrome&&p==13&&I.toB==I.from+2&&s.text.slice(I.from,I.toB)==MI+MI&&I.toB--,u={from:O+I.from,to:O+I.toA,insert:gc.of(s.text.slice(I.from,I.toB).split(MI))})}else h&&(!l.hasFocus&&g.facet(pO)||qhe(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:gc.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:gc.of([" "])}),u)return mNe(l,u,h,p);if(h&&!qhe(h,m)){let O=!1,j="select";return l.inputState.lastSelectionTime>Date.now()-50&&(l.inputState.lastSelectionOrigin=="select"&&(O=!0),j=l.inputState.lastSelectionOrigin,j=="select.pointer"&&(h=X6t(g.facet(oX).map(C=>C(l)),h))),l.dispatch({selection:h,scrollIntoView:O,userEvent:j}),!0}else return!1}function mNe(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&&UI(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)&&UI(l.contentDOM,"Backspace",8)||s.from==g.from&&s.to==g.to+1&&s.insert.length==0&&UI(l.contentDOM,"Delete",46)))return!0;let m=s.insert.toString();l.inputState.composing>=0&&l.inputState.composing++;let p,O=()=>p||(p=O0n(l,s,u));return l.state.facet($6t).some(j=>j(l,s.from,s.to,m,O))||l.dispatch(O()),!0}function O0n(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 j=s.from<m.from?-1:1,C=j<0?m.from:m.to,N=bV(g.facet(oX).map(_=>_(l)),C,j);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 j=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(j+s.insert.sliceString(0,void 0,l.state.lineBreak)+C))}else{let j=g.changes(s),C=u&&u.main.to<=j.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&&V6t(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 I=m.to-s.to;h=g.changeByRange(q=>{if(q.from==m.from&&q.to==m.to)return{changes:j,range:C||q.map(j)};let z=q.to-I,X=z-N.length;if(l.state.sliceDoc(X,z)!=N||z>=_.from&&X<=_.to)return{range:q};let Q=g.changes({from:X,to:z,insert:s.insert}),te=q.to-m.to;return{changes:Q,range:C?jn.range(Math.max(0,C.anchor+te),Math.max(0,C.head+te)):q.map(Q)}})}else h={changes:j,selection:C&&g.selection.replaceRange(C)}}let O="input.type";return(l.composing||l.inputState.compositionPendingChange&&l.inputState.compositionEndedAt>Date.now()-50)&&(l.inputState.compositionPendingChange=!1,O+=".compose",l.inputState.compositionFirstChange&&(O+=".start",l.inputState.compositionFirstChange=!1)),g.update(h,{userEvent:O,scrollIntoView:!0})}function Z6t(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,O=s.length;for(;p>0&&O>0&&l.charCodeAt(p-1)==s.charCodeAt(O-1);)p--,O--;if(h=="end"){let j=Math.max(0,m-Math.min(p,O));u-=p+j-m}if(p<m&&l.length<s.length){let j=u<=m&&u>=p?m-u:0;m-=j,O=m+(O-p),p=m}else if(O<m){let j=u<=m&&u>=O?m-u:0;m-=j,p=m+(p-O),O=m}return{from:m,toA:p,toB:O}}function j0n(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 F3t(u,h)),(g!=u||m!=h)&&s.push(new F3t(g,m))),s}function S0n(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 qhe(l,s){return s.head==l.main.head&&s.anchor==l.main.anchor}class T0n{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&&F0n(s.contentDOM.ownerDocument)}handleEvent(s){!L0n(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=C0n(s),h=this.handlers,g=this.view.contentDOM;for(let m in u)if(m!="scroll"){let p=!u[m].handlers.length,O=h[m];O&&p!=!O.handlers.length&&(g.removeEventListener(m,this.handleEvent),O=null),O||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&&tjt.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=ejt.find(h=>h.keyCode==s.keyCode))&&!s.ctrlKey||E0n.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,UI(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 q3t(l,s){return(u,h)=>{try{return s.call(l,h,u)}catch(g){Tp(u.state,g)}}}function C0n(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 O in m){let j=m[O];j&&u(O).handlers.push(q3t(h.value,j))}if(p)for(let O in p){let j=p[O];j&&u(O).observers.push(q3t(h.value,j))}}for(let h in $x)u(h).handlers.push($x[h]);for(let h in Ap)u(h).observers.push(Ap[h]);return s}const ejt=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],E0n="dthko",tjt=[16,17,18,20,91,92,224,225],Tfe=6;function Cfe(l){return Math.max(0,l)*.7+8}function M0n(l,s){return Math.max(Math.abs(l.clientX-s.clientX),Math.abs(l.clientY-s.clientY))}class A0n{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=j6t(s.contentDOM),this.atoms=s.state.facet(oX).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(Fc.allowMultipleSelections)&&N0n(s,u),this.dragging=D0n(s,u)&&rjt(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&&M0n(this.startEvent,s)<10)return;this.select(this.lastEvent=s);let u=0,h=0,g=0,m=0,p=this.view.win.innerWidth,O=this.view.win.innerHeight;this.scrollParents.x&&({left:g,right:p}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:m,bottom:O}=this.scrollParents.y.getBoundingClientRect());let j=pNe(this.view);s.clientX-j.left<=g+Tfe?u=-Cfe(g-s.clientX):s.clientX+j.right>=p-Tfe&&(u=Cfe(s.clientX-p)),s.clientY-j.top<=m+Tfe?h=-Cfe(m-s.clientY):s.clientY+j.bottom>=O-Tfe&&(h=Cfe(s.clientY-O)),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 N0n(l,s){let u=l.state.facet(L6t);return u.length?u[0](s):Xi.mac?s.metaKey:s.ctrlKey}function _0n(l,s){let u=l.state.facet(P6t);return u.length?u[0](s):Xi.mac?!s.altKey:!s.ctrlKey}function D0n(l,s){let{main:u}=l.state.selection;if(u.empty)return!1;let h=LV(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 L0n(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=of.get(u))&&h.isWidget()&&!h.isHidden&&h.widget.ignoreEvent(s))return!1;return!0}const $x=Object.create(null),Ap=Object.create(null),njt=Xi.ie&&Xi.ie_version<15||Xi.ios&&Xi.webkit_version<604;function P0n(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(),ijt(l,u.value)},50)}function Ade(l,s,u){for(let h of l.facet(s))u=h(u,l);return u}function ijt(l,s){s=Ade(l.state,fNe,s);let{state:u}=l,h,g=1,m=u.toText(s),p=m.lines==u.selection.ranges.length;if(iAe!=null&&u.selection.ranges.every(j=>j.empty)&&iAe==m.toString()){let j=-1;h=u.changeByRange(C=>{let N=u.doc.lineAt(C.from);if(N.from==j)return{range:C};j=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(j=>{let C=m.line(g++);return{changes:{from:j.from,to:j.to,insert:C.text},range:jn.cursor(j.from+C.length)}}):h=u.replaceSelection(m);l.dispatch(h,{userEvent:"input.paste",scrollIntoView:!0})}Ap.scroll=l=>{l.inputState.lastScrollTop=l.scrollDOM.scrollTop,l.inputState.lastScrollLeft=l.scrollDOM.scrollLeft};Ap.wheel=Ap.mousewheel=l=>{l.inputState.lastWheelEvent=Date.now()};$x.keydown=(l,s)=>(l.inputState.setSelectionOrigin("select"),s.keyCode==27&&l.inputState.tabFocusMode!=0&&(l.inputState.tabFocusMode=Date.now()+2e3),!1);Ap.touchstart=(l,s)=>{l.inputState.lastTouchTime=Date.now(),l.inputState.setSelectionOrigin("select.pointer")};Ap.touchmove=l=>{l.inputState.setSelectionOrigin("select.pointer")};$x.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(I6t))if(u=h(l,s),u)break;if(!u&&s.button==0&&(u=R0n(l,s)),u){let h=!l.hasFocus;l.inputState.startMouseSelection(new A0n(l,s,u,h)),h&&l.observer.ignore(()=>{S6t(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 H3t(l,s,u,h){if(h==1)return jn.cursor(s,u);if(h==2)return d0n(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,O=g?g.posAtEnd:m.to;return O<l.state.doc.length&&O==m.to&&O++,jn.range(p,O)}}const I0n=Xi.ie&&Xi.ie_version<=11;let G3t=null,Q3t=0,U3t=0;function rjt(l){if(!I0n)return l.detail;let s=G3t,u=U3t;return G3t=l,U3t=Date.now(),Q3t=!s||u>Date.now()-400&&Math.abs(s.clientX-l.clientX)<2&&Math.abs(s.clientY-l.clientY)<2?(Q3t+1)%3:1}function R0n(l,s){let u=l.posAndSideAtCoords({x:s.clientX,y:s.clientY},!1),h=rjt(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,O){let j=l.posAndSideAtCoords({x:m.clientX,y:m.clientY},!1),C,N=H3t(l,j.pos,j.assoc,h);if(u.pos!=j.pos&&!p){let _=H3t(l,u.pos,u.assoc,h),P=Math.min(_.from,N.from),I=Math.max(_.to,N.to);N=P<N.from?jn.range(P,I):jn.range(I,P)}return p?g.replaceRange(g.main.extend(N.from,N.to)):O&&h==1&&g.ranges.length>1&&(C=$0n(g,j.pos))?C:O?g.addRange(N):jn.create([N])}}}function $0n(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}$x.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",Ade(l.state,hNe,l.state.sliceDoc(u.from,u.to))),s.dataTransfer.effectAllowed="copyMove"),!1};$x.dragend=l=>(l.inputState.draggedContent=null,!1);function J3t(l,s,u,h){if(u=Ade(l.state,fNe,u),!u)return;let g=l.posAtCoords({x:s.clientX,y:s.clientY},!1),{draggedContent:m}=l.inputState,p=h&&m&&_0n(l,s)?{from:m.from,to:m.to}:null,O={from:g,insert:u},j=l.state.changes(p?[p,O]:O);l.focus(),l.dispatch({changes:j,selection:{anchor:j.mapPos(g,-1),head:j.mapPos(g,1)},userEvent:p?"move.drop":"input.drop"}),l.inputState.draggedContent=null}$x.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&&J3t(l,s,h.filter(p=>p!=null).join(l.state.lineBreak),!1)};for(let p=0;p<u.length;p++){let O=new FileReader;O.onerror=m,O.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(O.result)||(h[p]=O.result),m()},O.readAsText(u[p])}return!0}else{let h=s.dataTransfer.getData("Text");if(h)return J3t(l,s,h,!0),!0}return!1};$x.paste=(l,s)=>{if(l.state.readOnly)return!0;l.observer.flush();let u=njt?null:s.clipboardData;return u?(ijt(l,u.getData("text/plain")||u.getData("text/uri-list")),!0):(P0n(l),!1)};function B0n(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 z0n(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:Ade(l,hNe,s.join(l.lineBreak)),ranges:u,linewise:h}}let iAe=null;$x.copy=$x.cut=(l,s)=>{if(!gV(l.contentDOM,l.observer.selectionRange))return!1;let{text:u,ranges:h,linewise:g}=z0n(l.state);if(!u&&!g)return!1;iAe=g?u:null,s.type=="cut"&&!l.state.readOnly&&l.dispatch({changes:h,scrollIntoView:!0,userEvent:"delete.cut"});let m=njt?null:s.clipboardData;return m?(m.clearData(),m.setData("text/plain",u),!0):(B0n(l,u),!1)};const sjt=TO.define();function ojt(l,s){let u=[];for(let h of l.facet(B6t)){let g=h(l,s);g&&u.push(g)}return u.length?l.update({effects:u,annotations:sjt.of(!0)}):null}function cjt(l){setTimeout(()=>{let s=l.hasFocus;if(s!=l.inputState.notifiedFocused){let u=ojt(l.state,s);u?l.dispatch(u):l.update([])}},10)}Ap.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),cjt(l)};Ap.blur=l=>{l.observer.clearSelectionRange(),cjt(l)};Ap.compositionstart=Ap.compositionupdate=l=>{l.observer.editContext||(l.inputState.compositionFirstChange==null&&(l.inputState.compositionFirstChange=!0),l.inputState.composing<0&&(l.inputState.composing=0))};Ap.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))};Ap.contextmenu=l=>{l.inputState.lastContextMenu=Date.now()};$x.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 O=p[0],j=l.posAtDOM(O.startContainer,O.startOffset),C=l.posAtDOM(O.endContainer,O.endOffset);return mNe(l,{from:j,to:C,insert:l.state.toText(m)},null),!0}}let g;if(Xi.chrome&&Xi.android&&(g=ejt.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(()=>Ap.compositionend(l,s),20),!1};const W3t=new Set;function F0n(l){W3t.has(l)||(W3t.add(l),l.addEventListener("copy",()=>{}),l.addEventListener("cut",()=>{}))}const V3t=["pre-wrap","normal","pre-line","break-spaces"];let uR=!1;function X3t(){uR=!1}class q0n{constructor(s){this.lineWrapping=s,this.doc=gc.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 V3t.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 O=V3t.indexOf(s)>-1,j=Math.abs(u-this.lineHeight)>.3||this.lineWrapping!=O||Math.abs(h-this.charWidth)>.1;if(this.lineWrapping=O,this.lineHeight=u,this.charWidth=h,this.textHeight=g,this.lineLength=m,j){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 j}}class H0n{constructor(s,u){this.from=s,this.heights=u,this.index=0}get more(){return this.index<this.heights.length}}class Ax{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"?a1.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 GM?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 Ax(this.from,this.length+s.length,this.top,this.height+s.height,u)}}var du=(function(l){return l[l.ByPos=0]="ByPos",l[l.ByHeight=1]="ByHeight",l[l.ByPosNoHeight=2]="ByPosNoHeight",l})(du||(du={}));const fhe=.001;class h0{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)>fhe&&(uR=!0),this.height=s)}replace(s,u,h){return h0.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 O=g.length-1;O>=0;O--){let{fromA:j,toA:C,fromB:N,toB:_}=g[O],P=m.lineAt(j,du.ByPosNoHeight,h.setDoc(u),0,0),I=P.to>=C?P:m.lineAt(C,du.ByPosNoHeight,h,0,0);for(_+=I.to-C,C=I.to;O>0&&P.from<=g[O-1].toA;)j=g[O-1].fromA,N=g[O-1].fromB,O--,j<P.from&&(P=m.lineAt(j,du.ByPosNoHeight,h,0,0));N+=P.from-j,j=P.from;let q=bNe.build(h.setDoc(p),s,N,_);m=Hhe(m,m.replace(j,C,q))}return m.updateHeight(h,0)}static empty(){return new nb(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 O=s[u-1];O.break?s.splice(--u,1,O.left,null,O.right):s.splice(--u,1,O.left,O.right),h+=1+O.break,g-=O.size}else if(m>g*2){let O=s[h];O.break?s.splice(h,1,O.left,null,O.right):s.splice(h,1,O.left,O.right),h+=2+O.break,m-=O.size}else break;else if(g<m){let O=s[u++];O&&(g+=O.size)}else{let O=s[--h];O&&(m+=O.size)}let p=0;return s[u-1]==null?(p=1,u--):s[u]==null&&(p=1,h++),new Q0n(h0.of(s.slice(0,u)),p,h0.of(s.slice(h)))}}function Hhe(l,s){return l==s?l:(l.constructor!=s.constructor&&(uR=!0),s)}h0.prototype.size=1;const G0n=Fr.replace({});class ljt extends h0{constructor(s,u,h){super(s,u),this.deco=h,this.spaceAbove=0}mainBlock(s,u){return new Ax(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 Ax(g,0,h,this.spaceAbove,G0n):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,du.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 nb extends ljt{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 Ax(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 nb||g instanceof c1&&g.flags&4)&&Math.abs(this.length-g.length)<10?(g instanceof c1?g=new nb(g.length,this.height,this.spaceAbove):g.height=this.height,this.outdated||(g.outdated=!1),g):h0.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 c1 extends h0{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,O=0;if(s.lineWrapping){let j=Math.min(this.height,s.lineHeight*m);p=j/m,this.length>m+1&&(O=(this.height-j)/(this.length-m-1))}else p=this.height/m;return{firstLine:h,lastLine:g,perLine:p,perChar:O}}blockAt(s,u,h,g){let{firstLine:m,lastLine:p,perLine:O,perChar:j}=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),_=O+N.length*j,P=Math.max(h,s-_/2);return new Ax(N.from,N.length,P,_,0)}else{let C=Math.max(0,Math.min(p-m,Math.floor((s-h)/O))),{from:N,length:_}=u.doc.line(m+C);return new Ax(N,_,h+O*C,O,0)}}lineAt(s,u,h,g,m){if(u==du.ByHeight)return this.blockAt(s,h,g,m);if(u==du.ByPosNoHeight){let{from:I,to:q}=h.doc.lineAt(s);return new Ax(I,q-I,0,0,0)}let{firstLine:p,perLine:O,perChar:j}=this.heightMetrics(h,m),C=h.doc.lineAt(s),N=O+C.length*j,_=C.number-p,P=g+O*_+j*(C.from-m-_);return new Ax(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:O,perLine:j,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-O;_+=j*q+C*(s-m-q)}let I=j+C*P.length;p(new Ax(P.from,P.length,_,I,0)),_+=I,N=P.to+1}}replace(s,u,h){let g=this.length-u;if(g>0){let m=h[h.length-1];m instanceof c1?h[h.length-1]=new c1(m.length+g):h.push(null,new c1(g-1))}if(s>0){let m=h[0];m instanceof c1?h[0]=new c1(s+m.length):h.unshift(new c1(s-1),null)}return h0.of(h)}decomposeLeft(s,u){u.push(new c1(s-1),null)}decomposeRight(s,u){u.push(null,new c1(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=[],O=Math.max(u,g.from),j=-1;for(g.from>u&&p.push(new c1(g.from-u-1).updateHeight(s,u));O<=m&&g.more;){let N=s.doc.lineAt(O).length;p.length&&p.push(null);let _=g.heights[g.index++],P=0;_<0&&(P=-_,_=g.heights[g.index++]),j==-1?j=_:Math.abs(_-j)>=fhe&&(j=-2);let I=new nb(N,_,P);I.outdated=!1,p.push(I),O+=N+1}O<=m&&p.push(null,new c1(m-O).updateHeight(s,O));let C=h0.of(p);return(j<0||Math.abs(C.height-this.height)>=fhe||Math.abs(j-this.heightMetrics(s,u).perLine)>=fhe)&&(uR=!0),Hhe(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 Q0n extends h0{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,O=m+this.left.length+this.break,j=u==du.ByHeight?s<p:s<O,C=j?this.left.lineAt(s,u,h,g,m):this.right.lineAt(s,u,h,p,O);if(this.break||(j?C.to<O:C.from>O))return C;let N=u==du.ByPosNoHeight?du.ByPosNoHeight:du.ByPos;return j?C.join(this.right.lineAt(O,N,h,p,O)):this.left.lineAt(O,N,h,g,m).join(C)}forEachLine(s,u,h,g,m,p){let O=g+this.left.height,j=m+this.left.length+this.break;if(this.break)s<j&&this.left.forEachLine(s,u,h,g,m,p),u>=j&&this.right.forEachLine(s,u,h,O,j,p);else{let C=this.lineAt(j,du.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,O,j,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 O of h)m.push(O);if(s>0&&K3t(m,p-1),u<this.length){let O=m.length;this.decomposeRight(u,m),K3t(m,O)}return h0.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?h0.of(this.break?[s,null,u]:[s,u]):(this.left=Hhe(this.left,s),this.right=Hhe(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,O=u+m.length+this.break,j=null;return g&&g.from<=u+m.length&&g.more?j=m=m.updateHeight(s,u,h,g):m.updateHeight(s,u,h),g&&g.from<=O+p.length&&g.more?j=p=p.updateHeight(s,O,h,g):p.updateHeight(s,O,h),j?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 K3t(l,s){let u,h;l[s]==null&&(u=l[s-1])instanceof c1&&(h=l[s+1])instanceof c1&&l.splice(s-1,3,new c1(u.length+1+h.length))}const U0n=5;class bNe{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 nb?g.length+=h-this.pos:(h>this.pos||!this.isCovered)&&this.nodes.push(new nb(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 ljt(p,g,h)):(p||m||g>=U0n)&&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 nb(this.pos-s,-1,0)),this.writtenTo=this.pos}blankContent(s,u){let h=new c1(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 nb)return s;let u=new nb(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 nb)&&!this.isCovered?this.nodes.push(new nb(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 nb&&g.updateHeight(this.oracle,h),h+=g?g.length:1;return this.nodes}static build(s,u,h,g){let m=new bNe(h,s);return xo.spans(u,h,g,m,0),m.finish(h)}}function J0n(l,s,u){let h=new W0n;return xo.compare(l,s,u,h,0),h.changes}class W0n{constructor(){this.changes=[]}compareRange(){}comparePoint(s,u,h,g){(s<u||h&&h.heightRelevant||g&&g.heightRelevant)&&QI(s,u,this.changes,5)}}function V0n(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),O=Math.max(0,u.top),j=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),O=Math.max(O,P.top),j=Math.min(C==l.parentNode?g.innerHeight:j,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:O-(u.top+s),bottom:Math.max(O,j)-(u.top+s)}}function X0n(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 K0n(l,s){let u=l.getBoundingClientRect();return{left:0,right:u.right-u.left,top:s,bottom:u.bottom-(u.top+s)}}class CEe{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 Y0n(this.displaySize*(u?s.scaleY:s.scaleX),u)}).range(this.from,this.to)}}class Y0n extends CO{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 Y3t{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=Z3t,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=eu.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let h=u.facet(dNe).some(g=>typeof g!="function"&&g.class=="cm-lineWrapping");this.heightOracle=new q0n(h),this.stateDeco=e5t(u),this.heightMap=h0.empty().applyChanges(this.stateDeco,gc.empty,this.heightOracle.setDoc(u.doc),[new e2(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 Efe(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?Z3t:new wNe(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(lV(s,this.scaler))})}update(s,u=null){this.state=s.state;let h=this.stateDeco;this.stateDeco=e5t(this.state);let g=s.changedRanges,m=e2.extendWithRanges(g,J0n(h,this.stateDeco,s?s.changes:Qh.empty(this.state.doc.length))),p=this.heightMap.height,O=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);X3t(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,s.startState.doc,this.heightOracle.setDoc(this.state.doc),m),(this.heightMap.height!=p||uR)&&(s.flags|=2),O?(this.scrollAnchorPos=s.changes.mapPos(O.from,-1),this.scrollAnchorHeight=O.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=p);let j=m.length?this.mapViewport(this.viewport,s.changes):this.viewport;(u&&(u.range.head<j.from||u.range.head>j.to)||!this.viewportIsAppropriate(j))&&(j=this.getViewport(0,u));let C=j.from!=this.viewport.from||j.to!=this.viewport.to;this.viewport=j,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(F6t)&&(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"?eu.RTL:eu.LTR;let p=this.heightOracle.mustRefreshForWrapping(m)||this.mustMeasureContent==="refresh",O=u.getBoundingClientRect(),j=p||this.mustMeasureContent||this.contentDOMHeight!=O.height;this.contentDOMHeight=O.height,this.mustMeasureContent=!1;let C=0,N=0;if(O.width&&O.height){let{scaleX:ce,scaleY:se}=O6t(u,O);(ce>.005&&Math.abs(this.scaleX-ce)>.005||se>.005&&Math.abs(this.scaleY-se)>.005)&&(this.scaleX=ce,this.scaleY=se,C|=16,p=j=!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&&(j=!0),this.editorWidth=s.scrollDOM.clientWidth,C|=16);let I=j6t(this.view.contentDOM,!1).y;I!=this.scrollParent&&(this.scrollParent=I,this.scrollAnchorHeight=-1,this.scrollOffset=0);let q=this.getScrollOffset();this.scrollOffset!=q&&(this.scrollAnchorHeight=-1,this.scrollOffset=q),this.scrolledToBottom=T6t(this.scrollParent||s.win);let z=(this.printing?K0n:V0n)(u,this.paddingTop),X=z.top-this.pixelViewport.top,Q=z.bottom-this.pixelViewport.bottom;this.pixelViewport=z;let te=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(te!=this.inView&&(this.inView=te,te&&(j=!0)),!this.inView&&!this.scrollTarget&&!X0n(s.dom))return 0;let V=O.width;if((this.contentDOMWidth!=V||this.editorHeight!=s.scrollDOM.clientHeight)&&(this.contentDOMWidth=O.width,this.editorHeight=s.scrollDOM.clientHeight,C|=16),j){let ce=s.docView.measureVisibleLineHeights(this.viewport);if(g.mustRefreshForHeights(ce)&&(p=!0),p||g.lineWrapping&&Math.abs(V-this.contentDOMWidth)>g.charWidth){let{lineHeight:se,charWidth:me,textHeight:ye}=s.docView.measureTextSize();p=se>0&&g.refresh(m,se,me,ye,Math.max(5,V/me),ce),p&&(s.docView.minWidth=0,C|=16)}X>0&&Q>0?N=Math.max(X,Q):X<0&&Q<0&&(N=Math.min(X,Q)),X3t();for(let se of this.viewports){let me=se.from==this.viewport.from?ce:s.docView.measureVisibleLineHeights(se);this.heightMap=(p?h0.empty().applyChanges(this.stateDeco,gc.empty,this.heightOracle,[new e2(0,0,0,s.state.doc.length)]):this.heightMap).updateHeight(g,0,p,new H0n(se.from,me))}uR&&(C|=2)}let ne=!this.viewportIsAppropriate(this.viewport,N)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return ne&&(C&2&&(C|=this.updateScaler()),this.viewport=this.getViewport(N,this.scrollTarget),C|=this.updateForViewport()),(C&2||ne)&&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:O}=this,j=new Efe(g.lineAt(p-h*1e3,du.ByHeight,m,0,0).from,g.lineAt(O+(1-h)*1e3,du.ByHeight,m,0,0).to);if(u){let{head:C}=u.range;if(C<j.from||C>j.to){let N=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),_=g.lineAt(C,du.ByPos,m,0,0),P;u.y=="center"?P=(_.top+_.bottom)/2-N/2:u.y=="start"||u.y=="nearest"&&C<j.from?P=_.top:P=_.bottom-N,j=new Efe(g.lineAt(P-1e3/2,du.ByHeight,m,0,0).from,g.lineAt(P+N+1e3/2,du.ByHeight,m,0,0).to)}}return j}mapViewport(s,u){let h=u.mapPos(s.from,-1),g=u.mapPos(s.to,1);return new Efe(this.heightMap.lineAt(h,du.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(g,du.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,du.ByPos,this.heightOracle,0,0),{bottom:m}=this.heightMap.lineAt(u,du.ByPos,this.heightOracle,0,0),{visibleTop:p,visibleBottom:O}=this;return(s==0||g<=p-Math.max(10,Math.min(-h,250)))&&(u==this.state.doc.length||m>=O+Math.max(10,Math.min(h,250)))&&g>p-2*1e3&&m<O+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 CEe(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!=eu.LTR&&!h)return[];let O=[],j=(N,_,P,I)=>{if(_-N<m)return;let q=this.state.selection.main,z=[q.from];q.empty||z.push(q.to);for(let Q of z)if(Q>N&&Q<_){j(N,Q-10,P,I),j(Q+10,_,P,I);return}let X=epn(s,Q=>Q.from>=P.from&&Q.to<=P.to&&Math.abs(Q.from-N)<m&&Math.abs(Q.to-_)<m&&!z.some(te=>Q.from<te&&Q.to>te));if(!X){if(_<P.to&&u&&h&&u.visibleRanges.some(V=>V.from<=_&&V.to>=_)){let V=u.moveToLineBoundary(jn.cursor(_),!1,!0).head;V>N&&(_=V)}let Q=this.gapSize(P,N,_,I),te=h||Q<2e6?Q:2e6;X=new CEe(N,_,Q,te)}O.push(X)},C=N=>{if(N.length<p||N.type!=a1.Text)return;let _=Z0n(N.from,N.to,this.stateDeco);if(_.total<p)return;let P=this.scrollTarget?this.scrollTarget.range.head:null,I,q;if(h){let z=g/this.heightOracle.lineLength*this.heightOracle.lineHeight,X,Q;if(P!=null){let te=Afe(_,P),V=((this.visibleBottom-this.visibleTop)/2+z)/N.height;X=te-V,Q=te+V}else X=(this.visibleTop-N.top-z)/N.height,Q=(this.visibleBottom-N.top+z)/N.height;I=Mfe(_,X),q=Mfe(_,Q)}else{let z=_.total*this.heightOracle.charWidth,X=g*this.heightOracle.charWidth,Q=0;if(z>2e6)for(let se of s)se.from>=N.from&&se.from<N.to&&se.size!=se.displaySize&&se.from*this.heightOracle.charWidth+Q<this.pixelViewport.left&&(Q=se.size-se.displaySize);let te=this.pixelViewport.left+Q,V=this.pixelViewport.right+Q,ne,ce;if(P!=null){let se=Afe(_,P),me=((V-te)/2+X)/z;ne=se-me,ce=se+me}else ne=(te-X)/z,ce=(V+X)/z;I=Mfe(_,ne),q=Mfe(_,ce)}I>N.from&&j(N.from,I,N,_),q<N.to&&j(q,N.to,N,_)};for(let N of this.viewportLines)Array.isArray(N.type)?N.type.forEach(C):C(N);return O}gapSize(s,u,h,g){let m=Afe(g,h)-Afe(g,u);return this.heightOracle.lineWrapping?s.height*m:g.total*this.heightOracle.charWidth*m}updateLineGaps(s){CEe.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=[];xo.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],O=h[m];(p.from!=O.from||p.to!=O.to)&&(g|=4,s&&s.mapPos(p.from,-1)==O.from&&s.mapPos(p.to,1)==O.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)||lV(this.heightMap.lineAt(s,du.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)||lV(this.heightMap.lineAt(this.scaler.fromDOM(s),du.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 lV(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 Efe{constructor(s,u){this.from=s,this.to=u}}function Z0n(l,s,u){let h=[],g=l,m=0;return xo.spans(u,l,s,{span(){},point(p,O){p>g&&(h.push({from:g,to:p}),m+=p-g),g=O}},20),g<s&&(h.push({from:g,to:s}),m+=s-g),{total:m,ranges:h}}function Mfe({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],O=p-m;if(h<=O)return m+h;h-=O}}function Afe(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 epn(l,s){for(let u of l)if(s(u))return u}const Z3t={toDOM(l){return l},fromDOM(l){return l},scale:1,eq(l){return l==this}};function e5t(l){let s=l.facet(Cde).filter(h=>typeof h!="function"),u=l.facet(gNe).filter(h=>typeof h!="function");return u.length&&s.push(xo.join(u)),s}class wNe{constructor(s,u,h){let g=0,m=0,p=0;this.viewports=h.map(({from:O,to:j})=>{let C=u.lineAt(O,du.ByPos,s,0,0).top,N=u.lineAt(j,du.ByPos,s,0,0).bottom;return g+=N-C,{from:O,to:j,top:C,bottom:N,domTop:0,domBottom:0}}),this.scale=(7e6-g)/(u.height-g);for(let O of this.viewports)O.domTop=p+(O.top-m)*this.scale,p=O.domBottom=O.domTop+(O.bottom-O.top),m=O.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 wNe?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 lV(l,s){if(s.scale==1)return l;let u=s.toDOM(l.top),h=s.toDOM(l.bottom);return new Ax(l.from,l.length,u,h-u,Array.isArray(l._content)?l._content.map(g=>lV(g,s)):l._content)}const Nfe=Ui.define({combine:l=>l.join(" ")}),rAe=Ui.define({combine:l=>l.indexOf(!0)>-1}),sAe=G9.newName(),ujt=G9.newName(),ajt=G9.newName(),fjt={"&light":"."+ujt,"&dark":"."+ajt};function oAe(l,s,u){return new G9(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 tpn=oAe("."+sAe,{"&":{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"}},fjt),npn={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},EEe=Xi.ie&&Xi.ie_version<=11;class ipn{constructor(s){this.view=s,this.active=!1,this.editContext=null,this.selectionRange=new Dgn,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 spn(s),s.state.facet(pO)&&(s.contentDOM.editContext=this.editContext.editContext)),EEe&&(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(pO)?h.root.activeElement!=this.dom:!gV(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&&mV(g.focusNode,g.focusOffset,g.anchorNode,g.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:s}=this,u=LV(s.root);if(!u)return!1;let h=Xi.safari&&s.root.nodeType==11&&s.root.activeElement==this.dom&&rpn(this.view,u)||u;if(!h||this.selectionRange.eq(h))return!1;let g=gV(this.dom,h);return g&&!this.selectionChanged&&s.inputState.lastFocusTime>Date.now()-200&&s.inputState.lastTouchTime<Date.now()-300&&Pgn(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,npn),EEe&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),EEe&&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&&UI(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&&gV(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 k0n(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=Y6t(this.view,u);return this.view.state==h&&(u.domChanged||u.newSel&&!qhe(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=t5t(u,s.previousSibling||s.target.previousSibling,-1),g=t5t(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(pO)!=s.state.facet(pO)&&(s.view.contentDOM.editContext=s.state.facet(pO)?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 t5t(l,s,u){for(;s;){let h=of.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 n5t(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 mV(p.node,p.offset,g,m)&&([u,h,g,m]=[g,m,u,h]),{anchorNode:u,anchorOffset:h,focusNode:g,focusOffset:m}}function rpn(l,s){if(s.getComposedRanges){let g=s.getComposedRanges(l.root)[0];if(g)return n5t(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?n5t(l,u):null}class spn{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,O=this.toEditorPos(h.updateRangeStart),j=this.toEditorPos(h.updateRangeEnd);s.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:h.updateRangeStart,editorBase:O,drifted:!1});let C=j-O>h.text.length;O==this.from&&m<this.from?O=m:j==this.to&&m>this.to&&(j=m);let N=Z6t(s.state.sliceDoc(O,j),h.text,(C?g.from:g.to)-O,C?"end":null);if(!N){let P=jn.single(this.toEditorPos(h.selectionStart),this.toEditorPos(h.selectionEnd));qhe(P,g)||s.dispatch({selection:P,userEvent:"select"});return}let _={from:N.from+O,to:N.toA+O,insert:gc.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:O,to:j,insert:gc.of([h.text.replace("."," ")])}),this.pendingContextChange=_,!s.state.readOnly){let P=this.to-this.from+(_.to-_.from+_.insert.length);mNe(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),O=this.toEditorPos(h.rangeEnd);p<O;p++){let j=s.coordsForChar(p);m=j&&new DOMRect(j.left,j.top,j.right-j.left,j.bottom-j.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,O=m.underlineThickness;if(!/none/i.test(p)&&!/none/i.test(O)){let j=this.toEditorPos(m.rangeStart),C=this.toEditorPos(m.rangeEnd);if(j<C){let N=`text-decoration: underline ${/^[a-z]/.test(p)?p+" ":p=="Dashed"?"dashed ":p=="Squiggle"?"wavy ":""}${/thin/i.test(O)?1:2}px`;g.push(Fr.mark({attributes:{style:N}}).range(j,C))}}}s.dispatch({effects:H6t.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=LV(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,O,j,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||Lgn(s.parent)||document,this.viewState=new Y3t(this,s.state||Fc.create(s)),s.scrollTo&&s.scrollTo.is(Sfe)&&(this.viewState.scrollTarget=s.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(II).map(g=>new kEe(g));for(let g of this.plugins)g.update(this);this.observer=new ipn(this),this.inputState=new T0n(this),this.inputState.ensureHandlers(this.plugins),this.docView=new B3t(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 hh?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,O=0,j=null;s.some(P=>P.annotation(sjt))?(this.inputState.notifiedFocused=p,O=1):p!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=p,j=ojt(m,p),j||(O=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(Fc.phrases)!=this.state.facet(Fc.phrases))return this.setState(m);g=Bhe.create(this,m,s),g.flags|=O;let _=this.viewState.scrollTarget;try{this.updateState=2;for(let P of s){if(_&&(_=_.map(P.changes)),P.scrollIntoView){let{main:I}=P.state.selection;_=new JI(I.empty?I:jn.cursor(I.head,I.head>I.anchor?-1:1))}for(let I of P.effects)I.is(Sfe)&&(_=I.value.clip(this.state))}this.viewState.update(g,_),this.bidiCache=Ghe.update(this.bidiCache,g.changes),g.empty||(this.updatePlugins(g),this.inputState.update(g)),u=this.docView.update(g),this.state.facet(cV)!=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(Nfe)!=g.state.facet(Nfe)&&(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(ZMe))try{P(g)}catch(I){Tp(this.state,I,"update listener")}(j||N)&&Promise.resolve().then(()=>{j&&this.state==j.startState&&this.dispatch(j),N&&!Y6t(this,N)&&C.force&&UI(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 Y3t(this,s),this.plugins=s.facet(II).map(h=>new kEe(h)),this.pluginMap.clear();for(let h of this.plugins)h.update(this);this.docView.destroy(),this.docView=new B3t(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(II),h=s.state.facet(II);if(u!=h){let g=[];for(let m of h){let p=u.indexOf(m);if(p<0)g.push(new kEe(m));else{let O=this.plugins[p];O.mustUpdate=s,g.push(O)}}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){Tp(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 O=0;;O++){if(p<0)if(T6t(h||this.win))m=-1,p=this.viewState.heightMap.height;else{let I=this.viewState.scrollAnchorAt(g);m=I.from,p=I.top}this.updateState=1;let j=this.viewState.measure();if(!j&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(O>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let C=[];j&4||([this.measureRequests,C]=[C,this.measureRequests]);let N=C.map(I=>{try{return I.read(this)}catch(q){return Tp(this.state,q),i5t}}),_=Bhe.create(this,this.state,[]),P=!1;_.flags|=j,u?u.flags|=j:u=_,this.updateState=2,_.empty||(this.updatePlugins(_),this.inputState.update(_),this.updateAttrs(),P=this.docView.update(_),P&&this.docViewUpdate());for(let I=0;I<C.length;I++)if(N[I]!=i5t)try{let q=C[I];q.write&&q.write(N[I],this)}catch(q){Tp(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 O of this.state.facet(ZMe))O(u)}get themeClasses(){return sAe+" "+(this.state.facet(rAe)?ajt:ujt)+" "+this.state.facet(Nfe)}updateAttrs(){let s=r5t(this,G6t,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),u={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(pO)?"true":"false",class:"cm-content",style:`${Xi.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(u["aria-readonly"]="true"),r5t(this,dNe,u);let h=this.observer.ignore(()=>{let g=D3t(this.contentDOM,this.contentAttrs,u),m=D3t(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(cV);let s=this.state.facet(Bi.cspNonce);G9.mount(this.root,this.styleModules.concat(tpn).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 TEe(this,s,z3t(this,s,u,h))}moveByGroup(s,u){return TEe(this,s,z3t(this,s,u,h=>m0n(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 p0n(this,s,u,h)}moveVertically(s,u,h){return TEe(this,s,b0n(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=nAe(this,s,u);return h&&h.pos}posAndSideAtCoords(s,u=!0){return this.readMeasured(),nAe(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[t5.find(m,s-g.from,-1,u)];return PV(h,p.dir==eu.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(z6t)||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>opn)return _6t(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=I3t(this,s))))return m.order;h||(h=I3t(this,s));let g=qgn(s.text,u,h);return this.bidiCache.push(new Ghe(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(()=>{S6t(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 Sfe.of(new JI(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 Sfe.of(new JI(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 Uh.define(()=>({}),{eventHandlers:s})}static domEventObservers(s){return Uh.define(()=>({}),{eventObservers:s})}static theme(s,u){let h=G9.newName(),g=[Nfe.of(h),cV.of(oAe(`.${h}`,s))];return u&&u.dark&&g.push(rAe.of(!0)),g}static baseTheme(s){return V9.lowest(cV.of(oAe("."+sAe,s,fjt)))}static findFromDOM(s){var u;let h=s.querySelector(".cm-content"),g=h&&of.get(h)||of.get(s);return((u=g==null?void 0:g.root)===null||u===void 0?void 0:u.view)||null}}Bi.styleModule=cV;Bi.inputHandler=$6t;Bi.clipboardInputFilter=fNe;Bi.clipboardOutputFilter=hNe;Bi.scrollHandler=q6t;Bi.focusChangeEffect=B6t;Bi.perLineTextDirection=z6t;Bi.exceptionSink=R6t;Bi.updateListener=ZMe;Bi.editable=pO;Bi.mouseSelectionStyle=I6t;Bi.dragMovesSelection=P6t;Bi.clickAddsSelectionRange=L6t;Bi.decorations=Cde;Bi.blockWrappers=Q6t;Bi.outerDecorations=gNe;Bi.atomicRanges=oX;Bi.bidiIsolatedRanges=U6t;Bi.scrollMargins=J6t;Bi.darkTheme=rAe;Bi.cspNonce=Ui.define({combine:l=>l.length?l[0]:""});Bi.contentAttributes=dNe;Bi.editorAttributes=G6t;Bi.lineWrapping=Bi.contentAttributes.of({class:"cm-lineWrapping"});Bi.announce=Ds.define();const opn=4096,i5t={};class Ghe{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:eu.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 Ghe(u.mapPos(p.from,1),u.mapPos(p.to,-1),p.dir,p.isolates,!1,p.order))}return h}}function r5t(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&&lNe(p,u)}return u}const cpn=Xi.mac?"mac":Xi.windows?"win":Xi.linux?"linux":"key";function lpn(l,s){const u=l.split(/-(?!$)/);let h=u[u.length-1];h=="Space"&&(h=" ");let g,m,p,O;for(let j=0;j<u.length-1;++j){const C=u[j];if(/^(cmd|meta|m)$/i.test(C))O=!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"?O=!0:m=!0;else throw new Error("Unrecognized modifier name: "+C)}return g&&(h="Alt-"+h),m&&(h="Ctrl-"+h),O&&(h="Meta-"+h),p&&(h="Shift-"+h),h}function _fe(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 upn=V9.default(Bi.domEventHandlers({keydown(l,s){return djt(hjt(s.state),l,s,"editor")}})),Nde=Ui.define({enables:upn}),s5t=new WeakMap;function hjt(l){let s=l.facet(Nde),u=s5t.get(s);return u||s5t.set(s,u=hpn(s.reduce((h,g)=>h.concat(g),[]))),u}function apn(l,s,u){return djt(hjt(l.state),s,l,u)}let L9=null;const fpn=4e3;function hpn(l,s=cpn){let u=Object.create(null),h=Object.create(null),g=(p,O)=>{let j=h[p];if(j==null)h[p]=O;else if(j!=O)throw new Error("Key binding "+p+" is used both as a regular binding and as a multi-stroke prefix")},m=(p,O,j,C,N)=>{var _,P;let I=u[p]||(u[p]=Object.create(null)),q=O.split(/ (?!$)/).map(Q=>lpn(Q,s));for(let Q=1;Q<q.length;Q++){let te=q.slice(0,Q).join(" ");g(te,!0),I[te]||(I[te]={preventDefault:!0,stopPropagation:!1,run:[V=>{let ne=L9={view:V,prefix:te,scope:p};return setTimeout(()=>{L9==ne&&(L9=null)},fpn),!0}]})}let z=q.join(" ");g(z,!1);let X=I[z]||(I[z]={preventDefault:!1,stopPropagation:!1,run:((P=(_=I._any)===null||_===void 0?void 0:_.run)===null||P===void 0?void 0:P.slice())||[]});j&&X.run.push(j),C&&(X.preventDefault=!0),N&&(X.stopPropagation=!0)};for(let p of l){let O=p.scope?p.scope.split(" "):["editor"];if(p.any)for(let C of O){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(I=>_(I,cAe))}let j=p[s]||p.key;if(j)for(let C of O)m(C,j,p.run,p.preventDefault,p.stopPropagation),p.shift&&m(C,"Shift-"+j,p.shift,p.preventDefault,p.stopPropagation)}return u}let cAe=null;function djt(l,s,u,h){cAe=s;let g=Tgn(s),m=ib(g,0),p=Z3(m)==g.length&&g!=" ",O="",j=!1,C=!1,N=!1;L9&&L9.view==u&&L9.scope==h&&(O=L9.prefix+" ",tjt.indexOf(s.keyCode)<0&&(C=!0,L9=null));let _=new Set,P=X=>{if(X){for(let Q of X.run)if(!_.has(Q)&&(_.add(Q),Q(u)))return X.stopPropagation&&(N=!0),!0;X.preventDefault&&(X.stopPropagation&&(N=!0),C=!0)}return!1},I=l[h],q,z;return I&&(P(I[O+_fe(g,s,!p)])?j=!0:p&&(s.altKey||s.metaKey||s.ctrlKey)&&!(Xi.windows&&s.ctrlKey&&s.altKey)&&!(Xi.mac&&s.altKey&&!(s.ctrlKey||s.metaKey))&&(q=Q9[s.keyCode])&&q!=g?(P(I[O+_fe(q,s,!0)])||s.shiftKey&&(z=_V[s.keyCode])!=g&&z!=q&&P(I[O+_fe(z,s,!1)]))&&(j=!0):p&&s.shiftKey&&P(I[O+_fe(g,s,!0)])&&(j=!0),!j&&P(I._any)&&(j=!0)),C&&(j=!0),j&&N&&s.stopPropagation(),cAe=null,j}class cX{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=gjt(s);return[new cX(u,g.left-m.left,g.top-m.top,null,g.bottom-g.top)]}else return dpn(s,u,h)}}function gjt(l){let s=l.scrollDOM.getBoundingClientRect();return{left:(l.textDirection==eu.LTR?s.left:s.right-l.scrollDOM.clientWidth*l.scaleX)-l.scrollDOM.scrollLeft*l.scaleX,top:s.top-l.scrollDOM.scrollTop*l.scaleY}}function o5t(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,O=l.posAtCoords({x:m.left+1,y:p}),j=l.posAtCoords({x:m.right-1,y:p});return O==null||j==null?h:{from:Math.max(h.from,Math.min(O,j)),to:Math.min(h.to,Math.max(O,j))}}function dpn(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==eu.LTR,p=l.contentDOM,O=p.getBoundingClientRect(),j=gjt(l),C=p.querySelector(".cm-line"),N=C&&window.getComputedStyle(C),_=O.left+(N?parseInt(N.paddingLeft)+Math.min(0,parseInt(N.textIndent)):0),P=O.right-(N?parseInt(N.paddingRight):0),I=tAe(l,h,1),q=tAe(l,g,-1),z=I.type==a1.Text?I:null,X=q.type==a1.Text?q:null;if(z&&(l.lineWrapping||I.widgetLineBreaks)&&(z=o5t(l,h,1,z)),X&&(l.lineWrapping||q.widgetLineBreaks)&&(X=o5t(l,g,-1,X)),z&&X&&z.from==X.from&&z.to==X.to)return te(V(u.from,u.to,z));{let ce=z?V(u.from,null,z):ne(I,!1),se=X?V(null,u.to,X):ne(q,!0),me=[];return(z||I).to<(X||q).from-(z&&X?1:0)||I.widgetLineBreaks>1&&ce.bottom+l.defaultLineHeight/2<se.top?me.push(Q(_,ce.bottom,P,se.top)):ce.bottom<se.top&&l.elementAtHeight((ce.bottom+se.top)/2).type==a1.Text&&(ce.bottom=se.top=(ce.bottom+se.top)/2),te(ce).concat(me).concat(te(se))}function Q(ce,se,me,ye){return new cX(s,ce-j.left,se-j.top,Math.max(0,me-ce),ye-se)}function te({top:ce,bottom:se,horizontal:me}){let ye=[];for(let qe=0;qe<me.length;qe+=2)ye.push(Q(me[qe],ce,me[qe+1],se));return ye}function V(ce,se,me){let ye=1e9,qe=-1e9,Be=[];function ke(pe,je,ue,ve,xe){let Ee=l.coordsAtPos(pe,pe==me.to?-2:2),tt=l.coordsAtPos(ue,ue==me.from?2:-2);!Ee||!tt||(ye=Math.min(Ee.top,tt.top,ye),qe=Math.max(Ee.bottom,tt.bottom,qe),xe==eu.LTR?Be.push(m&&je?_:Ee.left,m&&ve?P:tt.right):Be.push(!m&&ve?_:tt.left,!m&&je?P:Ee.right))}let le=ce??me.from,W=se??me.to;for(let pe of l.visibleRanges)if(pe.to>le&&pe.from<W)for(let je=Math.max(pe.from,le),ue=Math.min(pe.to,W);;){let ve=l.state.doc.lineAt(je);for(let xe of l.bidiSpans(ve)){let Ee=xe.from+ve.from,tt=xe.to+ve.from;if(Ee>=ue)break;tt>je&&ke(Math.max(Ee,je),ce==null&&Ee<=le,Math.min(tt,ue),se==null&&tt>=W,xe.dir)}if(je=ve.to+1,je>=ue)break}return Be.length==0&&ke(le,ce==null,W,se==null,l.textDirection),{top:ye,bottom:qe,horizontal:Be}}function ne(ce,se){let me=O.top+(se?ce.top:ce.bottom);return{top:me,bottom:me,horizontal:[]}}}function gpn(l,s){return l.constructor==s.constructor&&l.eq(s)}class ppn{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(hhe)!=s.state.facet(hhe)&&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(hhe);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)=>!gpn(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 hhe=Ui.define();function pjt(l){return[Uh.define(s=>new ppn(s,l)),hhe.of(l)]}const RV=Ui.define({combine(l){return f5(l,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(s,u)=>Math.min(s,u),drawRangeCursor:(s,u)=>s||u})}});function mpn(l={}){return[RV.of(l),bpn,wpn,vpn,F6t.of(!0)]}function mjt(l){return l.startState.facet(RV)!=l.state.facet(RV)}const bpn=pjt({above:!0,markers(l){let{state:s}=l,u=s.facet(RV),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",O=g.empty?g:jn.cursor(g.head,g.head>g.anchor?-1:1);for(let j of cX.forRange(l,p,O))h.push(j)}}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=mjt(l);return u&&c5t(l.state,s),l.docChanged||l.selectionSet||u},mount(l,s){c5t(s.state,l)},class:"cm-cursorLayer"});function c5t(l,s){s.style.animationDuration=l.facet(RV).cursorBlinkRate+"ms"}const wpn=pjt({above:!1,markers(l){return l.state.selection.ranges.map(s=>s.empty?[]:cX.forRange(l,"cm-selectionBackground",s)).reduce((s,u)=>s.concat(u))},update(l,s){return l.docChanged||l.selectionSet||l.viewportChanged||mjt(l)},class:"cm-selectionLayer"}),vpn=V9.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 xpn(){return kpn}const ypn=Fr.line({class:"cm-activeLine"}),kpn=Uh.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(ypn.range(g.from)),s=g.from)}return Fr.set(u)}},{decorations:l=>l.decorations});class Opn extends CO{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?pV(s.firstChild):[];if(!u.length)return null;let h=window.getComputedStyle(s.parentNode),g=PV(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 l5t(l){let s=Uh.fromClass(class{constructor(u){this.view=u,this.placeholder=l?Fr.set([Fr.widget({widget:new Opn(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 lAe=2e3;function jpn(l,s,u){let h=Math.min(s.line,u.line),g=Math.max(s.line,u.line),m=[];if(s.off>lAe||u.off>lAe||s.col<0||u.col<0){let p=Math.min(s.off,u.off),O=Math.max(s.off,u.off);for(let j=h;j<=g;j++){let C=l.doc.line(j);C.length<=O&&m.push(jn.range(C.from+p,C.to+O))}}else{let p=Math.min(s.col,u.col),O=Math.max(s.col,u.col);for(let j=h;j<=g;j++){let C=l.doc.line(j),N=qMe(C.text,p,l.tabSize,!0);if(N<0)m.push(jn.cursor(C.to));else{let _=qMe(C.text,O,l.tabSize);m.push(jn.range(C.from+N,C.from+_))}}}return m}function Spn(l,s){let u=l.coordsAtPos(l.viewport.from);return u?Math.round(Math.abs((u.left-s)/l.defaultCharacterWidth)):-1}function u5t(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>lAe?-1:g==h.length?Spn(l,s.clientX):iX(h.text,l.state.tabSize,u-h.from);return{line:h.number,col:m,off:g}}function Tpn(l,s){let u=u5t(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 O=u5t(l,g);if(!O)return h;let j=jpn(l.state,u,O);return j.length?p?jn.create(j.concat(h.ranges)):jn.create(j):h}}:null}function Cpn(l){let s=(u=>u.altKey&&u.button==0);return Bi.mouseSelectionStyle.of((u,h)=>s(h)?Tpn(u,h):null)}const Dfe="-10000px";class bjt{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(j=>j);if(g===this.input){for(let j of this.tooltipViews)j.update&&j.update(s);return!1}let p=[],O=u?[]:null;for(let j=0;j<m.length;j++){let C=m[j],N=-1;if(C){for(let _=0;_<this.tooltips.length;_++){let P=this.tooltips[_];P&&P.create==C.create&&(N=_)}if(N<0)p[j]=this.createTooltipView(C,j?p[j-1]:null),O&&(O[j]=!!C.above);else{let _=p[j]=this.tooltipViews[N];O&&(O[j]=u[N]),_.update&&_.update(s)}}}for(let j of this.tooltipViews)p.indexOf(j)<0&&(this.removeTooltipView(j),(h=j.destroy)===null||h===void 0||h.call(j));return u&&(O.forEach((j,C)=>u[C]=j),u.length=O.length),this.input=g,this.tooltips=m,this.tooltipViews=p,!0}}function Epn(l){let s=l.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:s.clientHeight,right:s.clientWidth}}const MEe=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)||Epn}}}),a5t=new WeakMap,vNe=Uh.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(MEe);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 bjt(l,_de,(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(MEe);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=Dfe,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=pNe(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 O=this.manager.tooltipViews[p];return O.getCoords?O.getCoords(m.pos):this.view.coordsAtPos(m.pos)}),size:this.manager.tooltipViews.map(({dom:m})=>m.getBoundingClientRect()),space:this.view.state.facet(MEe).tooltipSpace(this.view),scaleX:l,scaleY:s,makeAbsolute:u}}writeMeasure(l){var s;if(l.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let O of this.manager.tooltipViews)O.dom.style.position="absolute"}let{visible:u,space:h,scaleX:g,scaleY:m}=l,p=[];for(let O=0;O<this.manager.tooltips.length;O++){let j=this.manager.tooltips[O],C=this.manager.tooltipViews[O],{dom:N}=C,_=l.pos[O],P=l.size[O];if(!_||j.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=Dfe;continue}let I=j.arrow?C.dom.querySelector(".cm-tooltip-arrow"):null,q=I?7:0,z=P.right-P.left,X=(s=a5t.get(C))!==null&&s!==void 0?s:P.bottom-P.top,Q=C.offset||Apn,te=this.view.textDirection==eu.LTR,V=P.width>h.right-h.left?te?h.left:h.right-P.width:te?Math.max(h.left,Math.min(_.left-(I?14:0)+Q.x,h.right-z)):Math.min(Math.max(h.left,_.left-z+(I?14:0)-Q.x),h.right-z),ne=this.above[O];!j.strictSide&&(ne?_.top-X-q-Q.y<h.top:_.bottom+X+q+Q.y>h.bottom)&&ne==h.bottom-_.bottom>_.top-h.top&&(ne=this.above[O]=!ne);let ce=(ne?_.top-h.top:h.bottom-_.bottom)-q;if(ce<X&&C.resize!==!1){if(ce<this.view.defaultLineHeight){N.style.top=Dfe;continue}a5t.set(C,X),N.style.height=(X=ce)/m+"px"}else N.style.height&&(N.style.height="");let se=ne?_.top-X-q-Q.y:_.bottom+q+Q.y,me=V+z;if(C.overlap!==!0)for(let ye of p)ye.left<me&&ye.right>V&&ye.top<se+X&&ye.bottom>se&&(se=ne?ye.top-X-2-q:ye.bottom+q+2);if(this.position=="absolute"?(N.style.top=(se-l.parent.top)/m+"px",f5t(N,(V-l.parent.left)/g)):(N.style.top=se/m+"px",f5t(N,V/g)),I){let ye=_.left+(te?Q.x:-Q.x)-(V+14-7);I.style.left=ye/g+"px"}C.overlap!==!0&&p.push({left:V,top:se,right:me,bottom:se+X}),N.classList.toggle("cm-tooltip-above",ne),N.classList.toggle("cm-tooltip-below",!ne),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=Dfe}},{eventObservers:{scroll(){this.maybeMeasure()}}});function f5t(l,s){let u=parseInt(l.style.left,10);(isNaN(u)||Math.abs(s-u)>1)&&(l.style.left=s+"px")}const Mpn=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"}}}),Apn={x:0,y:0},_de=Ui.define({enables:[vNe,Mpn]}),Qhe=Ui.define({combine:l=>l.reduce((s,u)=>s.concat(u),[])});class Dde{static create(s){return new Dde(s)}constructor(s){this.view=s,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new bjt(s,Qhe,(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 Npn=_de.compute([Qhe],l=>{let s=l.facet(Qhe);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:Dde.create,above:s[0].above,arrow:s.some(u=>u.arrow)}});class _pn{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 O=s.coordsAtPos(g);if(!O||u.y<O.top||u.y>O.bottom||u.x<O.left-s.defaultCharacterWidth||u.x>O.right+s.defaultCharacterWidth)return;let j=s.bidiSpans(s.state.doc.lineAt(g)).find(N=>N.from<=g&&N.to>=g),C=j&&j.dir==eu.RTL?-1:1;m=u.x<O.left?-C:C}let p=this.source(s,g,m);if(p!=null&&p.then){let O=this.pending={pos:g};p.then(j=>{this.pending==O&&(this.pending=null,j&&!(Array.isArray(j)&&!j.length)&&s.dispatch({effects:this.setHover.of(Array.isArray(j)?j:[j])}))},j=>Tp(s.state,j,"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(vNe),u=s?s.manager.tooltips.findIndex(h=>h.create==Dde.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&&!Dpn(m.dom,s)||this.pending){let{pos:p}=g[0]||this.pending,O=(h=(u=g[0])===null||u===void 0?void 0:u.end)!==null&&h!==void 0?h:p;(p==O?this.view.posAtCoords(this.lastMove)!=p:!Lpn(this.view,p,O,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 Lfe=4;function Dpn(l,s){let{left:u,right:h,top:g,bottom:m}=l.getBoundingClientRect(),p;if(p=l.querySelector(".cm-tooltip-arrow")){let O=p.getBoundingClientRect();g=Math.min(O.top,g),m=Math.max(O.bottom,m)}return s.clientX>=u-Lfe&&s.clientX<=h+Lfe&&s.clientY>=g-Lfe&&s.clientY<=m+Lfe}function Lpn(l,s,u,h,g,m){let p=l.scrollDOM.getBoundingClientRect(),O=l.documentTop+l.documentPadding.top+l.contentHeight;if(p.left>h||p.right<h||p.top>g||Math.min(p.bottom,O)<g)return!1;let j=l.posAtCoords({x:h,y:g},!1);return j>=s&&j<=u}function Ppn(l,s={}){let u=Ds.define(),h=Td.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 O of g){let j=m.changes.mapPos(O.pos,-1,u1.TrackDel);if(j!=null){let C=Object.assign(Object.create(null),O);C.pos=j,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(Ipn)&&(g=[]);return g},provide:g=>Qhe.from(g)});return{active:h,extension:[h,Uh.define(g=>new _pn(g,l,h,u,s.hoverTime||300)),Npn]}}function wjt(l,s){let u=l.plugin(vNe);if(!u)return null;let h=u.manager.tooltips.indexOf(s);return h<0?null:u.manager.tooltipViews[h]}const Ipn=Ds.define(),h5t=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 vjt(l,s){let u=l.plugin(xjt),h=u?u.specs.indexOf(s):-1;return h>-1?u.panels[h]:null}const xjt=Uh.fromClass(class{constructor(l){this.input=l.state.facet($V),this.specs=this.input.filter(u=>u),this.panels=this.specs.map(u=>u(l));let s=l.state.facet(h5t);this.top=new Pfe(l,!0,s.topContainer),this.bottom=new Pfe(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(h5t);this.top.container!=s.topContainer&&(this.top.sync([]),this.top=new Pfe(l.view,!0,s.topContainer)),this.bottom.container!=s.bottomContainer&&(this.bottom.sync([]),this.bottom=new Pfe(l.view,!1,s.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let u=l.state.facet($V);if(u!=this.input){let h=u.filter(j=>j),g=[],m=[],p=[],O=[];for(let j of h){let C=this.specs.indexOf(j),N;C<0?(N=j(l.view),O.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 j of O)j.dom.classList.add("cm-panel"),j.mount&&j.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 Pfe{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=d5t(s);s=s.nextSibling}else this.dom.insertBefore(u.dom,s);for(;s;)s=d5t(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 d5t(l){let s=l.nextSibling;return l.remove(),s}const $V=Ui.define({enables:xjt});function Rpn(l,s){let u,h=new Promise(p=>u=p),g=p=>$pn(p,s,u);l.state.field(AEe,!1)?l.dispatch({effects:yjt.of(g)}):l.dispatch({effects:Ds.appendConfig.of(AEe.init(()=>[g]))});let m=kjt.of(g);return{close:m,result:h.then(p=>((l.win.queueMicrotask||(j=>l.win.setTimeout(j,10)))(()=>{l.state.field(AEe).indexOf(g)>-1&&l.dispatch({effects:m})}),p))}}const AEe=Td.define({create(){return[]},update(l,s){for(let u of s.effects)u.is(yjt)?l=[u.value].concat(l):u.is(kjt)&&(l=l.filter(h=>h!=u.value));return l},provide:l=>$V.computeN([l],s=>s.field(l))}),yjt=Ds.define(),kjt=Ds.define();function $pn(l,s,u){let h=s.content?s.content(l,()=>p(null)):null;if(!h){if(h=zl("form"),s.input){let O=zl("input",s.input);/^(text|password|number|email|tel|url)$/.test(O.type)&&O.classList.add("cm-textfield"),O.name||(O.name="input"),h.appendChild(zl("label",(s.label||"")+": ",O))}else h.appendChild(document.createTextNode(s.label||""));h.appendChild(document.createTextNode(" ")),h.appendChild(zl("button",{class:"cm-button",type:"submit"},s.submitLabel||"OK"))}let g=h.nodeName=="FORM"?[h]:h.querySelectorAll("form");for(let O=0;O<g.length;O++){let j=g[O];j.addEventListener("keydown",C=>{C.keyCode==27?(C.preventDefault(),p(null)):C.keyCode==13&&(C.preventDefault(),p(j))}),j.addEventListener("submit",C=>{C.preventDefault(),p(j)})}let m=zl("div",h,zl("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(O){m.contains(m.ownerDocument.activeElement)&&l.focus(),u(O)}return{dom:m,top:s.top,mount:()=>{if(s.focus){let O;typeof s.focus=="string"?O=h.querySelector(s.focus):O=h.querySelector("input")||h.querySelector("button"),O&&"select"in O?O.select():O&&"focus"in O&&O.focus()}}}}class u5 extends q9{compare(s){return this==s||this.constructor==s.constructor&&this.eq(s)}eq(s){return!1}destroy(s){}}u5.prototype.elementClass="";u5.prototype.toDOM=void 0;u5.prototype.mapMode=u1.TrackBefore;u5.prototype.startSide=u5.prototype.endSide=-1;u5.prototype.point=!0;const dhe=Ui.define(),Bpn=Ui.define(),zpn={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>xo.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},wV=Ui.define();function Ojt(l){return[jjt(),wV.of({...zpn,...l})]}const g5t=Ui.define({combine:l=>l.some(s=>s)});function jjt(l){return[Fpn]}const Fpn=Uh.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(wV).map(s=>new m5t(l,s)),this.fixed=!l.state.facet(g5t);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(g5t)!=!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=xo.iter(this.view.state.facet(dhe),this.view.viewport.from),h=[],g=this.gutters.map(m=>new qpn(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 O of m.type)if(O.type==a1.Text&&p){uAe(u,h,O.from);for(let j of g)j.line(this.view,O,h);p=!1}else if(O.widget)for(let j of g)j.widget(this.view,O)}else if(m.type==a1.Text){uAe(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(wV),u=l.state.facet(wV),h=l.docChanged||l.heightChanged||l.viewportChanged||!xo.eq(l.startState.facet(dhe),l.state.facet(dhe),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 m5t(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==eu.LTR?{left:h,right:g}:{right:h,left:g}})});function p5t(l){return Array.isArray(l)?l:[l]}function uAe(l,s,u){for(;l.value&&l.from<=u;)l.from==u&&s.push(l.value),l.next()}class qpn{constructor(s,u,h){this.gutter=s,this.height=h,this.i=0,this.cursor=xo.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 O=new Sjt(s,p,m,h);g.elements.push(O),g.dom.appendChild(O.dom)}else g.elements[this.i].update(s,p,m,h);this.height=u.bottom,this.i++}line(s,u,h){let g=[];uAe(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(Bpn)){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 m5t{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 j=m.getBoundingClientRect();p=(j.top+j.bottom)/2}else p=g.clientY;let O=s.lineBlockAtHeight(p-s.documentTop);u.domEventHandlers[h](s,O,g)&&g.preventDefault()});this.markers=p5t(u.markers(s)),u.initialSpacer&&(this.spacer=new Sjt(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=p5t(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!xo.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 Sjt{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":""),Hpn(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 O=p,j=m<u.length?u[m++]:null,C=!1;if(j){let N=j.elementClass;N&&(h+=" "+N);for(let _=p;_<this.markers.length;_++)if(this.markers[_].compare(j)){O=_,C=!0;break}}else O=this.markers.length;for(;p<O;){let N=this.markers[p++];if(N.toDOM){N.destroy(g);let _=g.nextSibling;g.remove(),g=_}}if(!j)break;j.toDOM&&(C?g=g.nextSibling:this.dom.insertBefore(j.toDOM(s),g)),C&&p++}this.dom.className=h,this.markers=u}destroy(){this.setMarkers(null,[])}}function Hpn(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 Gpn=Ui.define(),Qpn=Ui.define(),RI=Ui.define({combine(l){return f5(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?(O,j,C)=>m(O,j,C)||p(O,j,C):p}return h}})}});class NEe extends u5{constructor(s){super(),this.number=s}eq(s){return this.number==s.number}toDOM(){return document.createTextNode(this.number)}}function _Ee(l,s){return l.state.facet(RI).formatNumber(s,l.state)}const Upn=wV.compute([RI],l=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(s){return s.state.facet(Gpn)},lineMarker(s,u,h){return h.some(g=>g.toDOM)?null:new NEe(_Ee(s,s.state.doc.lineAt(u.from).number))},widgetMarker:(s,u,h)=>{for(let g of s.state.facet(Qpn)){let m=g(s,u,h);if(m)return m}return null},lineMarkerChange:s=>s.startState.facet(RI)!=s.state.facet(RI),initialSpacer(s){return new NEe(_Ee(s,b5t(s.state.doc.lines)))},updateSpacer(s,u){let h=_Ee(u.view,b5t(u.view.state.doc.lines));return h==s.number?s:new NEe(h)},domEventHandlers:l.facet(RI).domEventHandlers,side:"before"}));function Jpn(l={}){return[RI.of(l),jjt(),Upn]}function b5t(l){let s=9;for(;s<l;)s=s*10+9;return s}const Wpn=new class extends u5{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},Vpn=dhe.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(Wpn.range(g)))}return xo.of(s)});function Xpn(){return Vpn}const Tjt=1024;let Kpn=0;class DEe{constructor(s,u){this.from=s,this.to=u}}class Co{constructor(s={}){this.id=Kpn++,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=Np.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 vV{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 Ypn=Object.create(null);class Np{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):Ypn,h=(s.top?1:0)|(s.skipped?2:0)|(s.error?4:0)|(s.name==null?8:0),g=new Np(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}}}}Np.none=new Np("",Object.create(null),0,8);class xNe{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 O=p[1],j=p[0];j.combine&&j.id in g&&(O=j.combine(g[j.id],O)),g[j.id]=O}}u.push(g?new Np(h.name,g,h.id,h.flags):h)}return new xNe(u)}}const Ife=new WeakMap,w5t=new WeakMap;var Pa;(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"})(Pa||(Pa={}));class Ff{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,O]of m)this.props[typeof p=="number"?p:p.id]=O}}toString(){let s=vV.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 fAe(this.topNode,s)}cursorAt(s,u=0,h=0){let g=Ife.get(this)||this.topNode,m=new fAe(g);return m.moveTo(s,u),Ife.set(this,m._tree),m}get topNode(){return new Ep(this,0,0,null)}resolve(s,u=0){let h=BV(Ife.get(this)||this.topNode,s,u,!1);return Ife.set(this,h),h}resolveInner(s,u=0){let h=BV(w5t.get(this)||this.topNode,s,u,!0);return w5t.set(this,h),h}resolveStack(s,u=0){return tmn(this,s,u)}iterate(s){let{enter:u,leave:h,from:g=0,to:m=this.length}=s,p=s.mode||0,O=(p&Pa.IncludeAnonymous)>0;for(let j=this.cursor(p|Pa.IncludeAnonymous);;){let C=!1;if(j.from<=m&&j.to>=g&&(!O&&j.type.isAnonymous||u(j)!==!1)){if(j.firstChild())continue;C=!0}for(;C&&h&&(O||!j.type.isAnonymous)&&h(j),!j.nextSibling();){if(!j.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:ONe(Np.none,this.children,this.positions,0,this.children.length,0,this.length,(u,h,g)=>new Ff(this.type,u,h,g,this.propValues),s.makeTree||((u,h,g)=>new Ff(Np.none,u,h,g)))}static build(s){return nmn(s)}}Ff.empty=new Ff(Np.none,[],[],0);class yNe{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 yNe(this.buffer,this.index)}}class J9{constructor(s,u,h){this.buffer=s,this.length=u,this.set=h}get type(){return Np.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,O=-1;for(let j=s;j!=u&&!(Cjt(m,g,p[j+1],p[j+2])&&(O=j,h>0));j=p[j+3]);return O}slice(s,u,h){let g=this.buffer,m=new Uint16Array(u-s),p=0;for(let O=s,j=0;O<u;){m[j++]=g[O++],m[j++]=g[O++]-h;let C=m[j++]=g[O++]-h;m[j++]=g[O++]-s,p=Math.max(p,C)}return new J9(m,p,this.set)}}function Cjt(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 BV(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 Ep&&l.index<0?null:l.parent;if(!p)return l;l=p}let m=h?0:Pa.IgnoreOverlays;if(h)for(let p=l,O=p.parent;O;p=O,O=p.parent)p instanceof Ep&&p.index<0&&((g=O.enter(s,u,m))===null||g===void 0?void 0:g.from)!=p.from&&(l=O);for(;;){let p=l.enter(s,u,m);if(!p)return l;l=p}}class Ejt{cursor(s=0){return new fAe(this,s)}getChild(s,u=null,h=null){let g=v5t(this,s,u,h);return g.length?g[0]:null}getChildren(s,u=null,h=null){return v5t(this,s,u,h)}resolve(s,u=0){return BV(this,s,u,!1)}resolveInner(s,u=0){return BV(this,s,u,!0)}matchContext(s){return aAe(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 Ep extends Ejt{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:O,positions:j}=p._tree,C=u>0?O.length:-1;s!=C;s+=u){let N=O[s],_=j[s]+p.from,P;if(!(!(m&Pa.EnterBracketed&&N instanceof Ff&&(P=vV.get(N))&&!P.overlay&&P.bracketed&&h>=_&&h<=_+N.length)&&!Cjt(g,h,_,_+N.length))){if(N instanceof J9){if(m&Pa.ExcludeBuffers)continue;let I=N.findChild(0,N.buffer.length,u,h-_,g);if(I>-1)return new n5(new Zpn(p,N,s,_),null,I)}else if(m&Pa.IncludeAnonymous||!N.type.isAnonymous||kNe(N)){let I;if(!(m&Pa.IgnoreMounts)&&(I=vV.get(N))&&!I.overlay)return new Ep(I.tree,_,s,p);let q=new Ep(N,_,s,p);return m&Pa.IncludeAnonymous||!q.type.isAnonymous?q:q.nextChild(u<0?N.children.length-1:0,u,h,g,m)}}}if(m&Pa.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&Pa.IgnoreOverlays)&&(g=vV.get(this._tree))&&g.overlay){let m=s-this.from,p=h&Pa.EnterBracketed&&g.bracketed;for(let{from:O,to:j}of g.overlay)if((u>0||p?O<=m:O<m)&&(u<0||p?j>=m:j>m))return new Ep(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 v5t(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 aAe(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 Zpn{constructor(s,u,h,g){this.parent=s,this.buffer=u,this.index=h,this.start=g}}class n5 extends Ejt{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 n5(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&Pa.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 n5(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 n5(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 n5(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 Ff(this.type,s,u,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Mjt(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 Ep&&u.index<0?null:u.parent,g=l.slice();return h?g[s]=h:g.splice(s,1),new emn(g,u)}class emn{constructor(s,u){this.heads=s,this.node=u}get next(){return Mjt(this.heads)}}function tmn(l,s,u){let h=l.resolveInner(s,u),g=null;for(let m=h instanceof Ep?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=vV.get(m.tree);if(p&&p.overlay&&p.overlay[0].from<=s&&p.overlay[p.overlay.length-1].to>=s){let O=new Ep(p.tree,p.overlay[0].from+m.from,-1,m);(g||(g=[h])).push(BV(O,s,u,!1))}}return g?Mjt(g):h}class fAe{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&~Pa.EnterBracketed,s instanceof Ep)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 Ep?(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&Pa.ExcludeBuffers?!1:this.enterChild(1,s,u):this.yield(this._tree.enter(s,u,h))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Pa.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let s=this.mode&Pa.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 O=h._tree.children[m];if(this.mode&Pa.IncludeAnonymous||O instanceof J9||!O.type.isAnonymous||kNe(O))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 n5(this.buffer,u,this.stack[g]);return this.bufferNode=new n5(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 aAe(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 aAe(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 kNe(l){return l.children.some(s=>s instanceof J9||!s.type.isAnonymous||kNe(s))}function nmn(l){var s;let{buffer:u,nodeSet:h,maxBufferLength:g=Tjt,reused:m=[],minRepeatType:p=h.types.length}=l,O=Array.isArray(u)?new yNe(u,u.length):u,j=h.types,C=0,N=0;function _(ce,se,me,ye,qe,Be){let{id:ke,start:le,end:W,size:pe}=O,je=N,ue=C;if(pe<0)if(O.next(),pe==-1){let Te=m[ke];me.push(Te),ye.push(le-ce);return}else if(pe==-3){C=ke;return}else if(pe==-4){N=ke;return}else throw new RangeError(`Unrecognized record size: ${pe}`);let ve=j[ke],xe,Ee,tt=le-ce;if(W-le<=g&&(Ee=X(O.pos-se,qe))){let Te=new Uint16Array(Ee.size-Ee.skip),et=O.pos-Ee.size,Ie=Te.length;for(;O.pos>et;)Ie=Q(Ee.start,Te,Ie);xe=new J9(Te,W-Ee.start,h),tt=Ee.start-ce}else{let Te=O.pos-pe;O.next();let et=[],Ie=[],Ye=ke>=p?ke:-1,Je=0,_t=W;for(;O.pos>Te;)Ye>=0&&O.id==Ye&&O.size>=0?(O.end<=_t-g&&(q(et,Ie,le,Je,O.end,_t,Ye,je,ue),Je=et.length,_t=O.end),O.next()):Be>2500?P(le,Te,et,Ie):_(le,Te,et,Ie,Ye,Be+1);if(Ye>=0&&Je>0&&Je<et.length&&q(et,Ie,le,Je,le,_t,Ye,je,ue),et.reverse(),Ie.reverse(),Ye>-1&&Je>0){let nn=I(ve,ue);xe=ONe(ve,et,Ie,0,et.length,0,W-le,nn,nn)}else xe=z(ve,et,Ie,W-le,je-W,ue)}me.push(xe),ye.push(tt)}function P(ce,se,me,ye){let qe=[],Be=0,ke=-1;for(;O.pos>se;){let{id:le,start:W,end:pe,size:je}=O;if(je>4)O.next();else{if(ke>-1&&W<ke)break;ke<0&&(ke=pe-g),qe.push(le,W,pe),Be++,O.next()}}if(Be){let le=new Uint16Array(Be*4),W=qe[qe.length-2];for(let pe=qe.length-3,je=0;pe>=0;pe-=3)le[je++]=qe[pe],le[je++]=qe[pe+1]-W,le[je++]=qe[pe+2]-W,le[je++]=je;me.push(new J9(le,qe[2]-W,h)),ye.push(W-ce)}}function I(ce,se){return(me,ye,qe)=>{let Be=0,ke=me.length-1,le,W;if(ke>=0&&(le=me[ke])instanceof Ff){if(!ke&&le.type==ce&&le.length==qe)return le;(W=le.prop(Co.lookAhead))&&(Be=ye[ke]+le.length+W)}return z(ce,me,ye,qe,Be,se)}}function q(ce,se,me,ye,qe,Be,ke,le,W){let pe=[],je=[];for(;ce.length>ye;)pe.push(ce.pop()),je.push(se.pop()+me-qe);ce.push(z(h.types[ke],pe,je,Be-qe,le-Be,W)),se.push(qe-me)}function z(ce,se,me,ye,qe,Be,ke){if(Be){let le=[Co.contextHash,Be];ke=ke?[le].concat(ke):[le]}if(qe>25){let le=[Co.lookAhead,qe];ke=ke?[le].concat(ke):[le]}return new Ff(ce,se,me,ye,ke)}function X(ce,se){let me=O.fork(),ye=0,qe=0,Be=0,ke=me.end-g,le={size:0,start:0,skip:0};e:for(let W=me.pos-ce;me.pos>W;){let pe=me.size;if(me.id==se&&pe>=0){le.size=ye,le.start=qe,le.skip=Be,Be+=4,ye+=4,me.next();continue}let je=me.pos-pe;if(pe<0||je<W||me.start<ke)break;let ue=me.id>=p?4:0,ve=me.start;for(me.next();me.pos>je;){if(me.size<0)if(me.size==-3||me.size==-4)ue+=4;else break e;else me.id>=p&&(ue+=4);me.next()}qe=ve,ye+=pe,Be+=ue}return(se<0||ye==ce)&&(le.size=ye,le.start=qe,le.skip=Be),le.size>4?le:void 0}function Q(ce,se,me){let{id:ye,start:qe,end:Be,size:ke}=O;if(O.next(),ke>=0&&ye<p){let le=me;if(ke>4){let W=O.pos-(ke-4);for(;O.pos>W;)me=Q(ce,se,me)}se[--me]=le,se[--me]=Be-ce,se[--me]=qe-ce,se[--me]=ye}else ke==-3?C=ye:ke==-4&&(N=ye);return me}let te=[],V=[];for(;O.pos>0;)_(l.start||0,l.bufferStart||0,te,V,-1,0);let ne=(s=l.length)!==null&&s!==void 0?s:te.length?V[0]+te[0].length:0;return new Ff(j[l.topID],te.reverse(),V.reverse(),ne)}const x5t=new WeakMap;function ghe(l,s){if(!l.isAnonymous||s instanceof J9||s.type!=l)return 1;let u=x5t.get(s);if(u==null){u=1;for(let h of s.children){if(h.type!=l||!(h instanceof Ff)){u=1;break}u+=ghe(l,h)}x5t.set(s,u)}return u}function ONe(l,s,u,h,g,m,p,O,j){let C=0;for(let q=h;q<g;q++)C+=ghe(l,s[q]);let N=Math.ceil(C*1.5/8),_=[],P=[];function I(q,z,X,Q,te){for(let V=X;V<Q;){let ne=V,ce=z[V],se=ghe(l,q[V]);for(V++;V<Q;V++){let me=ghe(l,q[V]);if(se+me>=N)break;se+=me}if(V==ne+1){if(se>N){let me=q[ne];I(me.children,me.positions,0,me.children.length,z[ne]+te);continue}_.push(q[ne])}else{let me=z[V-1]+q[V-1].length-ce;_.push(ONe(l,q,z,ne,V,ce,me,null,j))}P.push(ce+te-m)}}return I(s,u,h,g,0),(O||j)(_,P,p)}class imn{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 n5?this.setBuffer(s.context.buffer,s.index,u):s instanceof Ep&&this.map.set(s.tree,u)}get(s){return s instanceof n5?this.getBuffer(s.context.buffer,s.index):s instanceof Ep?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 RM{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 RM(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 O=0,j=0,C=0;;O++){let N=O<u.length?u[O]:null,_=N?N.fromA:1e9;if(_-j>=h)for(;p&&p.from<_;){let P=p;if(j>=P.from||_<=P.to||C){let I=Math.max(P.from,j)-C,q=Math.min(P.to,_)-C;P=I>=q?null:new RM(I,q,P.tree,P.offset+C,O>0,!!N)}if(P&&g.push(P),p.to>_)break;p=m<s.length?s[m++]:null}if(!N)break;j=N.toA,C=N.toA-N.toB}return g}}class Ajt{startParse(s,u,h){return typeof s=="string"&&(s=new rmn(s)),h=h?h.length?h.map(g=>new DEe(g.from,g.to)):[new DEe(0,0)]:[new DEe(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 rmn{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 y5t={};class Uhe{constructor(s,u,h,g,m,p,O,j,C,N=0,_){this.p=s,this.stack=u,this.state=h,this.reducePos=g,this.pos=m,this.score=p,this.buffer=O,this.bufferBase=j,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 Uhe(s,[],u,h,h,0,[],0,g?new k5t(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),O=m.dynamicPrecedence(g);if(O&&(this.score+=O),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 j=this.stack.length-(h-1)*3-(s&262144?6:0),C=j?this.stack[j-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 _=j?this.stack[j-1]:0,P=this.bufferBase+this.buffer.length-_;if(g<m.minRepeatTerm||s&131072){let I=m.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(g,C,I,P+4,!0)}if(s&262144)this.state=this.stack[j];else{let I=this.stack[j-3];this.state=m.getGoto(I,g,!0)}for(;this.stack.length>j;)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,O=this.buffer.length;if(O==0&&p.parent&&(O=p.bufferBase-p.parent.bufferBase,p=p.parent),O>0&&p.buffer[O-4]==0&&p.buffer[O-1]>-1){if(u==h)return;if(p.buffer[O-2]>=u){p.buffer[O-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 O=!1;for(let j=p;j>0&&this.buffer[j-2]>h;j-=4)if(this.buffer[j-1]>=0){O=!0;break}if(O)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 O=p.stateFlag(m,1);!O&&(g>h||u<=p.maxNode)&&(this.reducePos=g),this.pushState(m,O?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 Uhe(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 smn(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((O,j)=>j&1&&O==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 O=(p>>19)-m;if(O>1){let j=p&65535,C=this.stack.length-O*3;if(C>=0&&s.getGoto(this.stack[C],j,!1)>=0)return O<<19|65536|j}}else{let O=h(p,m+1);if(O!=null)return O}})};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 k5t(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 k5t{constructor(s,u){this.tracker=s,this.context=u,this.hash=s.strict?s.hash(u):0}}class smn{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 Jhe{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 Jhe(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 Jhe(this.stack,this.pos,this.index)}}function Rfe(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++),O=!1;if(p==126){m=65535;break}p>=92&&p--,p>=34&&p--;let j=p-32;if(j>=46&&(j-=46,O=!0),m+=j,O)break;m*=46}u?u[g++]=m:u=new s(m)}return u}class phe{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const O5t=new phe;class omn{constructor(s,u){this.input=s,this.ranges=u,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=O5t,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,O=this.range;for(;O.to<=h;)O=this.ranges[++p];this.chunk2=this.input.chunk(this.chunk2Pos=h),h+this.chunk2.length>O.to&&(this.chunk2=this.chunk2.slice(0,O.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=O5t,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 WI{constructor(s,u){this.data=s,this.id=u}token(s,u){let{parser:h}=u.p;cmn(this.data,s,u,this.id,h.data,h.tokenPrecTable)}}WI.prototype.contextual=WI.prototype.fallback=WI.prototype.extend=!1;WI.prototype.fallback=WI.prototype.extend=!1;class Lde{constructor(s,u={}){this.token=s,this.contextual=!!u.contextual,this.fallback=!!u.fallback,this.extend=!!u.extend}}function cmn(l,s,u,h,g,m){let p=0,O=1<<h,{dialect:j}=u.p.parser;e:for(;(O&l[p])!=0;){let C=l[p+1];for(let I=p+3;I<C;I+=2)if((l[I+1]&O)>0){let q=l[I];if(j.allows(q)&&(s.token.value==-1||s.token.value==q||lmn(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 I=_+P>>1,q=C+I+(I<<1),z=l[q],X=l[q+1]||65536;if(N<z)P=I;else if(N>=X)_=I+1;else{p=l[q+2],s.advance();continue e}}break}}function j5t(l,s,u){for(let h=s,g;(g=l[h])!=65535;h++)if(g==u)return h-s;return-1}function lmn(l,s,u,h){let g=j5t(u,h,s);return g<0||j5t(u,h,l)<g}const eb=typeof process<"u"&&y5t&&/\bparse\b/.test(y5t.LOG);let LEe=null;function S5t(l,s,u){let h=l.cursor(Pa.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 umn{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?S5t(s.tree,s.from+s.offset,1)-s.offset:s.from,this.safeTo=s.openEnd?S5t(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 Ff){if(p==s){if(p<this.safeFrom)return null;let O=p+m.length;if(O<=this.safeTo){let j=m.prop(Co.lookAhead);if(!j||O+j<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 amn{constructor(s,u){this.stream=u,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=s.tokenizers.map(h=>new phe)}getActions(s){let u=0,h=null,{parser:g}=s.p,{tokenizers:m}=g,p=g.stateSlot(s.state,3),O=s.curContext?s.curContext.hash:0,j=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!=O)&&(this.updateCachedToken(_,N,s),_.mask=p,_.context=O),_.lookAhead>_.end+25&&(j=Math.max(_.lookAhead,j)),_.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 j&&s.setLookAhead(j),!h&&s.pos==this.stream.end&&(h=new phe,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 phe,{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 O=m.specializers[p](this.stream.read(s.start,s.end),h);if(O>=0&&h.p.parser.dialect.allows(O>>1)){(O&1)==0?s.value=O>>1:s.extended=O>>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:O}=p;for(let j=0;j<2;j++)for(let C=p.stateSlot(m,j?2:1);;C+=3){if(O[C]==65535)if(O[C+1]==1)C=dO(O,C+2);else{g==0&&O[C+1]==2&&(g=this.putAction(dO(O,C+2),u,h,g));break}O[C]==u&&(g=this.putAction(dO(O,C+1),u,h,g))}return g}}class fmn{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 omn(u,g),this.tokens=new amn(s,this.stream),this.topTerm=s.top[1];let{from:m}=g[0];this.stacks=[Uhe.start(this,s.top[0],m)],this.fragments=h.length&&this.stream.end-m>s.bufferLength*4?new umn(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 O=s[p];for(;;){if(this.tokens.mainToken=null,O.pos>u)h.push(O);else{if(this.advanceStack(O,h,s))continue;{g||(g=[],m=[]),g.push(O);let j=this.tokens.getMainToken(O);m.push(j.value,j.end)}}break}}if(!h.length){let p=g&&gmn(g);if(p)return eb&&console.log("Finish with "+this.stackID(p)),this.stackToTree(p);if(this.parser.strict)throw eb&&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 eb&&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((O,j)=>j.score-O.score);h.length>p;)h.pop();h.some(O=>O.reducePos>u)&&this.recovering--}else if(h.length>1){e:for(let p=0;p<h.length-1;p++){let O=h[p];for(let j=p+1;j<h.length;j++){let C=h[j];if(O.sameState(C)||O.buffer.length>500&&C.buffer.length>500)if((O.score-C.score||O.buffer.length-C.buffer.length)>0)h.splice(j--,1);else{h.splice(p--,1);continue e}}}h.length>12&&(h.sort((p,O)=>O.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=eb?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),eb&&console.log(p+this.stackID(s)+` (via reuse of ${m.getName(_.type.id)})`),!0;if(!(_ instanceof Ff)||_.children.length==0||_.positions[0]>0)break;let I=_.children[0];if(I instanceof Ff&&_.positions[0]==0)_=I;else break}}let O=m.stateSlot(s.state,4);if(O>0)return s.reduce(O),eb&&console.log(p+this.stackID(s)+` (via always-reduce ${m.getName(O&65535)})`),!0;if(s.stack.length>=8400)for(;s.stack.length>6e3&&s.forceReduce(););let j=this.tokens.getActions(s);for(let C=0;C<j.length;){let N=j[C++],_=j[C++],P=j[C++],I=C==j.length||!h,q=I?s:s.split(),z=this.tokens.mainToken;if(q.apply(N,_,z?z.start:q.pos,P),eb&&console.log(p+this.stackID(q)+` (via ${(N&65536)==0?"shift":`reduce of ${m.getName(N&65535)}`} for ${m.getName(_)} @ ${g}${q==s?"":", split"})`),I)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 T5t(s,u),!0}}runRecovery(s,u,h){let g=null,m=!1;for(let p=0;p<s.length;p++){let O=s[p],j=u[p<<1],C=u[(p<<1)+1],N=eb?this.stackID(O)+" -> ":"";if(O.deadEnd&&(m||(m=!0,O.restart(),eb&&console.log(N+this.stackID(O)+" (restarted)"),this.advanceFully(O,h))))continue;let _=O.split(),P=N;for(let I=0;I<10&&_.forceReduce()&&(eb&&console.log(P+this.stackID(_)+" (via force-reduce)"),!this.advanceFully(_,h));I++)eb&&(P=this.stackID(_)+" -> ");for(let I of O.recoverByInsert(j))eb&&console.log(N+this.stackID(I)+" (via recover-insert)"),this.advanceFully(I,h);this.stream.end>O.pos?(C==O.pos&&(C++,j=0),O.recoverByDelete(j,C),eb&&console.log(N+this.stackID(O)+` (via recover-delete ${this.parser.getName(j)})`),T5t(O,h)):(!g||g.score<_.score)&&(g=_)}return g}stackToTree(s){return s.close(),Ff.build({buffer:Jhe.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=(LEe||(LEe=new WeakMap)).get(s);return u||LEe.set(s,u=String.fromCodePoint(this.nextStackID++)),u+s}}function T5t(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 hmn{constructor(s,u,h){this.source=s,this.flags=u,this.disabled=h}allows(s){return!this.disabled||this.disabled[s]==0}}const PEe=l=>l;class dmn{constructor(s){this.start=s.start,this.shift=s.shift||PEe,this.reduce=s.reduce||PEe,this.reuse=s.reuse||PEe,this.hash=s.hash||(()=>0),this.strict=s.strict!==!1}}class Whe extends Ajt{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 O=0;O<s.repeatNodeCount;O++)u.push("");let h=Object.keys(s.topRules).map(O=>s.topRules[O][1]),g=[];for(let O=0;O<u.length;O++)g.push([]);function m(O,j,C){g[O].push([j,j.deserialize(String(C))])}if(s.nodeProps)for(let O of s.nodeProps){let j=O[0];typeof j=="string"&&(j=Co[j]);for(let C=1;C<O.length;){let N=O[C++];if(N>=0)m(N,j,O[C++]);else{let _=O[C+-N];for(let P=-N;P>0;P--)m(O[C++],j,_);C++}}}this.nodeSet=new xNe(u.map((O,j)=>Np.define({name:j>=this.minRepeatTerm?void 0:O,id:j,props:g[j],top:h.indexOf(j)>-1,error:j==0,skipped:s.skippedNodes&&s.skippedNodes.indexOf(j)>-1}))),s.propSources&&(this.nodeSet=this.nodeSet.extend(...s.propSources)),this.strict=!1,this.bufferLength=Tjt;let p=Rfe(s.tokenData);this.context=s.context,this.specializerSpecs=s.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let O=0;O<this.specializerSpecs.length;O++)this.specialized[O]=this.specializerSpecs[O].term;this.specializers=this.specializerSpecs.map(C5t),this.states=Rfe(s.states,Uint32Array),this.data=Rfe(s.stateData),this.goto=Rfe(s.goto),this.maxTerm=s.maxTerm,this.tokenizers=s.tokenizers.map(O=>typeof O=="number"?new WI(p,O):O),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 fmn(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++],O=p&1,j=g[m++];if(O&&h)return j;for(let C=m+(p>>1);m<C;m++)if(g[m]==s)return j;if(O)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=dO(h,m+2)];else{if(h[m+1]==2)return dO(h,m+2);break}if(p==u||p==0)return dO(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=dO(this.data,m+2);else break;g=u(dO(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=dO(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(Whe.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(O=>O.from==h.external);if(!m)return h;let p=Object.assign(Object.assign({},h),{external:m.to});return u.specializers[g]=C5t(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]],O;(O=this.data[p++])!=65535;)(g||(g=new Uint8Array(this.maxTerm+1)))[O]=1;return new hmn(s,h,g)}static deserialize(s){return new Whe(s)}}function dO(l,s){return l[s]|l[s+1]<<16}function gmn(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 C5t(l){if(l.external){let s=l.extend?1:0;return(u,h)=>l.external(u,h)<<1|s}return l.get}let pmn=0;class Zw{constructor(s,u,h,g){this.name=s,this.set=u,this.base=h,this.modified=g,this.id=pmn++}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 Zw&&(u=s),u!=null&&u.base)throw new Error("Can not derive from a modified tag");let g=new Zw(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 Vhe(s);return h=>h.modified.indexOf(u)>-1?h:Vhe.get(h.base||h,h.modified.concat(u).sort((g,m)=>g.id-m.id))}}let mmn=0;class Vhe{constructor(s){this.name=s,this.instances=[],this.id=mmn++}static get(s,u){if(!u.length)return s;let h=u[0].instances.find(O=>O.base==s&&bmn(u,O.modified));if(h)return h;let g=[],m=new Zw(s.name,g,s,u);for(let O of u)O.instances.push(m);let p=wmn(u);for(let O of s.set)if(!O.modified.length)for(let j of p)g.push(Vhe.get(O,j));return m}}function bmn(l,s){return l.length==s.length&&l.every((u,h)=>u==s[h])}function wmn(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 Njt(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,O=g;for(let _=0;;){if(O=="..."&&_>0&&_+3==g.length){p=1;break}let P=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(O);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 I=g[_++];if(_==g.length&&I=="!"){p=0;break}if(I!="/")throw new RangeError("Invalid path: "+g);O=g.slice(_)}let j=m.length-1,C=m[j];if(!C)throw new RangeError("Invalid path: "+g);let N=new zV(h,p,j>0?m.slice(0,j):null);s[C]=N.sort(s[C])}}return _jt.add(s)}const _jt=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 zV(g.tags,g.mode,g.context);u?u.next=m:h=m,u=m}return h}});class zV{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}}zV.empty=new zV([],2,null);function Djt(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 O of m)for(let j of O.set){let C=u[j.id];if(C){p=p?p+" "+C:C;break}}return p},scope:h}}function vmn(l,s){let u=null;for(let h of l){let g=h.style(s);g&&(u=u?u+" "+g:g)}return u}function xmn(l,s,u,h=0,g=l.length){let m=new ymn(h,Array.isArray(s)?s:[s],u);m.highlightRange(l.cursor(),h,g,"",m.highlighters),m.flush(g)}class ymn{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:O,to:j}=s;if(O>=h||j<=u)return;p.isTop&&(m=this.highlighters.filter(I=>!I.scope||I.scope(p)));let C=g,N=kmn(s)||zV.empty,_=vmn(m,N.tags);if(_&&(C&&(C+=" "),C+=_,N.mode==1&&(g+=(g?" ":"")+_)),this.startSpan(Math.max(u,O),C),N.opaque)return;let P=s.tree&&s.tree.prop(Co.mounted);if(P&&P.overlay){let I=s.node.enter(P.overlay[0].from+O,1),q=this.highlighters.filter(X=>!X.scope||X.scope(P.tree.type)),z=s.firstChild();for(let X=0,Q=O;;X++){let te=X<P.overlay.length?P.overlay[X]:null,V=te?te.from+O:j,ne=Math.max(u,Q),ce=Math.min(h,V);if(ne<ce&&z)for(;s.from<ce&&(this.highlightRange(s,ne,ce,g,m),this.startSpan(Math.min(ce,s.to),C),!(s.to>=V||!s.nextSibling())););if(!te||V>h)break;Q=te.to+O,Q>u&&(this.highlightRange(I.cursor(),Math.max(u,te.from+O),Math.min(h,Q),"",q),this.startSpan(Math.min(h,Q),C))}z&&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 kmn(l){let s=l.type.prop(_jt);for(;s&&s.context&&!l.matchContext(s.context);)s=s.next;return s||null}const Ni=Zw.define,$fe=Ni(),A9=Ni(),E5t=Ni(A9),M5t=Ni(A9),N9=Ni(),Bfe=Ni(N9),IEe=Ni(N9),V3=Ni(),xM=Ni(V3),J3=Ni(),W3=Ni(),hAe=Ni(),VW=Ni(hAe),zfe=Ni(),Gn={comment:$fe,lineComment:Ni($fe),blockComment:Ni($fe),docComment:Ni($fe),name:A9,variableName:Ni(A9),typeName:E5t,tagName:Ni(E5t),propertyName:M5t,attributeName:Ni(M5t),className:Ni(A9),labelName:Ni(A9),namespace:Ni(A9),macroName:Ni(A9),literal:N9,string:Bfe,docString:Ni(Bfe),character:Ni(Bfe),attributeValue:Ni(Bfe),number:IEe,integer:Ni(IEe),float:Ni(IEe),bool:Ni(N9),regexp:Ni(N9),escape:Ni(N9),color:Ni(N9),url:Ni(N9),keyword:J3,self:Ni(J3),null:Ni(J3),atom:Ni(J3),unit:Ni(J3),modifier:Ni(J3),operatorKeyword:Ni(J3),controlKeyword:Ni(J3),definitionKeyword:Ni(J3),moduleKeyword:Ni(J3),operator:W3,derefOperator:Ni(W3),arithmeticOperator:Ni(W3),logicOperator:Ni(W3),bitwiseOperator:Ni(W3),compareOperator:Ni(W3),updateOperator:Ni(W3),definitionOperator:Ni(W3),typeOperator:Ni(W3),controlOperator:Ni(W3),punctuation:hAe,separator:Ni(hAe),bracket:VW,angleBracket:Ni(VW),squareBracket:Ni(VW),paren:Ni(VW),brace:Ni(VW),content:V3,heading:xM,heading1:Ni(xM),heading2:Ni(xM),heading3:Ni(xM),heading4:Ni(xM),heading5:Ni(xM),heading6:Ni(xM),contentSeparator:Ni(V3),list:Ni(V3),quote:Ni(V3),emphasis:Ni(V3),strong:Ni(V3),link:Ni(V3),monospace:Ni(V3),strikethrough:Ni(V3),inserted:Ni(),deleted:Ni(),changed:Ni(),invalid:Ni(),meta:zfe,documentMeta:Ni(zfe),annotation:Ni(zfe),processingInstruction:Ni(zfe),definition:Zw.defineModifier("definition"),constant:Zw.defineModifier("constant"),function:Zw.defineModifier("function"),standard:Zw.defineModifier("standard"),local:Zw.defineModifier("local"),special:Zw.defineModifier("special")};for(let l in Gn){let s=Gn[l];s instanceof Zw&&(s.name=l)}Djt([{tag:Gn.link,class:"tok-link"},{tag:Gn.heading,class:"tok-heading"},{tag:Gn.emphasis,class:"tok-emphasis"},{tag:Gn.strong,class:"tok-strong"},{tag:Gn.keyword,class:"tok-keyword"},{tag:Gn.atom,class:"tok-atom"},{tag:Gn.bool,class:"tok-bool"},{tag:Gn.url,class:"tok-url"},{tag:Gn.labelName,class:"tok-labelName"},{tag:Gn.inserted,class:"tok-inserted"},{tag:Gn.deleted,class:"tok-deleted"},{tag:Gn.literal,class:"tok-literal"},{tag:Gn.string,class:"tok-string"},{tag:Gn.number,class:"tok-number"},{tag:[Gn.regexp,Gn.escape,Gn.special(Gn.string)],class:"tok-string2"},{tag:Gn.variableName,class:"tok-variableName"},{tag:Gn.local(Gn.variableName),class:"tok-variableName tok-local"},{tag:Gn.definition(Gn.variableName),class:"tok-variableName tok-definition"},{tag:Gn.special(Gn.variableName),class:"tok-variableName2"},{tag:Gn.definition(Gn.propertyName),class:"tok-propertyName tok-definition"},{tag:Gn.typeName,class:"tok-typeName"},{tag:Gn.namespace,class:"tok-namespace"},{tag:Gn.className,class:"tok-className"},{tag:Gn.macroName,class:"tok-macroName"},{tag:Gn.propertyName,class:"tok-propertyName"},{tag:Gn.operator,class:"tok-operator"},{tag:Gn.comment,class:"tok-comment"},{tag:Gn.meta,class:"tok-meta"},{tag:Gn.invalid,class:"tok-invalid"},{tag:Gn.punctuation,class:"tok-punctuation"}]);const Omn=1,Ljt=194,Pjt=195,jmn=196,A5t=197,Smn=198,Tmn=199,Cmn=200,Emn=2,Ijt=3,N5t=201,Mmn=24,Amn=25,Nmn=49,_mn=50,Dmn=55,Lmn=56,Pmn=57,Imn=59,Rmn=60,$mn=61,Bmn=62,zmn=63,Fmn=65,qmn=238,Hmn=71,Gmn=241,Qmn=242,Umn=243,Jmn=244,Wmn=245,Vmn=246,Xmn=247,Kmn=248,Rjt=72,Ymn=249,Zmn=250,ebn=251,tbn=252,nbn=253,ibn=254,rbn=255,sbn=256,obn=73,cbn=77,lbn=263,ubn=112,abn=130,fbn=151,hbn=152,dbn=155,JM=10,FV=13,jNe=32,Pde=9,SNe=35,gbn=40,pbn=46,dAe=123,_5t=125,$jt=39,Bjt=34,D5t=92,mbn=111,bbn=120,wbn=78,vbn=117,xbn=85,ybn=new Set([Amn,Nmn,_mn,lbn,Fmn,abn,Lmn,Pmn,qmn,Bmn,zmn,Rjt,obn,cbn,Rmn,$mn,fbn,hbn,dbn,ubn]);function REe(l){return l==JM||l==FV}function $Ee(l){return l>=48&&l<=57||l>=65&&l<=70||l>=97&&l<=102}const kbn=new Lde((l,s)=>{let u;if(l.next<0)l.acceptToken(Tmn);else if(s.context.flags&mhe)REe(l.next)&&l.acceptToken(Smn,1);else if(((u=l.peek(-1))<0||REe(u))&&s.canShift(A5t)){let h=0;for(;l.next==jNe||l.next==Pde;)l.advance(),h++;(l.next==JM||l.next==FV||l.next==SNe)&&l.acceptToken(A5t,-h)}else REe(l.next)&&l.acceptToken(jmn,1)},{contextual:!0}),Obn=new Lde((l,s)=>{let u=s.context;if(u.flags)return;let h=l.peek(-1);if(h==JM||h==FV){let g=0,m=0;for(;;){if(l.next==jNe)g++;else if(l.next==Pde)g+=8-g%8;else break;l.advance(),m++}g!=u.indent&&l.next!=JM&&l.next!=FV&&l.next!=SNe&&(g<u.indent?l.acceptToken(Pjt,-m):l.acceptToken(Ljt))}}),mhe=1,zjt=2,uO=4,aO=8,fO=16,hO=32;function bhe(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 jbn=new bhe(null,0,0);function Sbn(l){let s=0;for(let u=0;u<l.length;u++)s+=l.charCodeAt(u)==Pde?8-s%8:1;return s}const L5t=new Map([[Gmn,0],[Qmn,uO],[Umn,aO],[Jmn,aO|uO],[Wmn,fO],[Vmn,fO|uO],[Xmn,fO|aO],[Kmn,fO|aO|uO],[Ymn,hO],[Zmn,hO|uO],[ebn,hO|aO],[tbn,hO|aO|uO],[nbn,hO|fO],[ibn,hO|fO|uO],[rbn,hO|fO|aO],[sbn,hO|fO|aO|uO]].map(([l,s])=>[l,s|zjt])),Tbn=new dmn({start:jbn,reduce(l,s,u,h){return l.flags&mhe&&ybn.has(s)||(s==Hmn||s==Rjt)&&l.flags&zjt?l.parent:l},shift(l,s,u,h){return s==Ljt?new bhe(l,Sbn(h.read(h.pos,u.pos)),0):s==Pjt?l.parent:s==Mmn||s==Dmn||s==Imn||s==Ijt?new bhe(l,0,mhe):L5t.has(s)?new bhe(l,0,L5t.get(s)|l.flags&mhe):l},hash(l){return l.hash}}),Cbn=new Lde(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==jNe||u==Pde)){u!=gbn&&u!=pbn&&u!=JM&&u!=FV&&u!=SNe&&l.acceptToken(Omn);return}}}),Ebn=new Lde((l,s)=>{let{flags:u}=s.context,h=u&uO?Bjt:$jt,g=(u&aO)>0,m=!(u&fO),p=(u&hO)>0,O=l.pos;for(;!(l.next<0);)if(p&&l.next==dAe)if(l.peek(1)==dAe)l.advance(2);else{if(l.pos==O){l.acceptToken(Ijt,1);return}break}else if(m&&l.next==D5t){if(l.pos==O){l.advance();let j=l.next;j>=0&&(l.advance(),Mbn(l,j)),l.acceptToken(Emn);return}break}else if(l.next==D5t&&!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==O){l.acceptToken(N5t,g?3:1);return}break}else if(l.next==JM){if(g)l.advance();else if(l.pos==O){l.acceptToken(N5t);return}break}else l.advance();l.pos>O&&l.acceptToken(Cmn)});function Mbn(l,s){if(s==mbn)for(let u=0;u<2&&l.next>=48&&l.next<=55;u++)l.advance();else if(s==bbn)for(let u=0;u<2&&$Ee(l.next);u++)l.advance();else if(s==vbn)for(let u=0;u<4&&$Ee(l.next);u++)l.advance();else if(s==xbn)for(let u=0;u<8&&$Ee(l.next);u++)l.advance();else if(s==wbn&&l.next==dAe){for(l.advance();l.next>=0&&l.next!=_5t&&l.next!=$jt&&l.next!=Bjt&&l.next!=JM;)l.advance();l.next==_5t&&l.advance()}}const Abn=Njt({'async "*" "**" FormatConversion FormatSpec':Gn.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":Gn.controlKeyword,"in not and or is del":Gn.operatorKeyword,"from def class global nonlocal lambda":Gn.definitionKeyword,import:Gn.moduleKeyword,"with as print":Gn.keyword,Boolean:Gn.bool,None:Gn.null,VariableName:Gn.variableName,"CallExpression/VariableName":Gn.function(Gn.variableName),"FunctionDefinition/VariableName":Gn.function(Gn.definition(Gn.variableName)),"ClassDefinition/VariableName":Gn.definition(Gn.className),PropertyName:Gn.propertyName,"CallExpression/MemberExpression/PropertyName":Gn.function(Gn.propertyName),Comment:Gn.lineComment,Number:Gn.number,String:Gn.string,FormatString:Gn.special(Gn.string),Escape:Gn.escape,UpdateOp:Gn.updateOperator,"ArithOp!":Gn.arithmeticOperator,BitOp:Gn.bitwiseOperator,CompareOp:Gn.compareOperator,AssignOp:Gn.definitionOperator,Ellipsis:Gn.punctuation,At:Gn.meta,"( )":Gn.paren,"[ ]":Gn.squareBracket,"{ }":Gn.brace,".":Gn.derefOperator,", ;":Gn.separator}),Nbn={__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},_bn=Whe.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:Tbn,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:[Abn],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:[Cbn,Obn,kbn,Ebn,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:l=>Nbn[l]||-1}],tokenPrec:7668});var BEe;const $I=new Co;function Dbn(l){return Ui.define({combine:l?s=>s.concat(l):void 0})}const Lbn=new Co;class Lx{constructor(s,u,h=[],g=""){this.data=s,this.name=g,Fc.prototype.hasOwnProperty("tree")||Object.defineProperty(Fc.prototype,"tree",{get(){return Jh(this)}}),this.parser=u,this.extension=[W9.of(this),Fc.languageData.of((m,p,O)=>{let j=P5t(m,p,O),C=j.type.prop($I);if(!C)return[];let N=m.facet(C),_=j.type.prop(Lbn);if(_){let P=j.resolve(p-j.from,O);for(let I of _)if(I.test(P,m)){let q=m.facet(I.facet);return I.type=="replace"?q:q.concat(N)}}return N})].concat(h)}isActiveAt(s,u,h=-1){return P5t(s,u,h).type.prop($I)==this.data}findRegions(s){let u=s.facet(W9);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($I)==this.data){h.push({from:p,to:p+m.length});return}let O=m.prop(Co.mounted);if(O){if(O.tree.prop($I)==this.data){if(O.overlay)for(let j of O.overlay)h.push({from:j.from+p,to:j.to+p});else h.push({from:p,to:p+m.length});return}else if(O.overlay){let j=h.length;if(g(O.tree,O.overlay[0].from+p),h.length>j)return}}for(let j=0;j<m.children.length;j++){let C=m.children[j];C instanceof Ff&&g(C,m.positions[j]+p)}};return g(Jh(s),0),h}get allowsNesting(){return!0}}Lx.setState=Ds.define();function P5t(l,s,u){let h=l.facet(W9),g=Jh(l).topNode;if(!h||h.allowsNesting)for(let m=g;m;m=m.enter(s,u,Pa.ExcludeBuffers|Pa.EnterBracketed))m.type.isTop&&(g=m);return g}class Xhe extends Lx{constructor(s,u,h){super(s,u,[],h),this.parser=u}static define(s){let u=Dbn(s.languageData);return new Xhe(u,s.parser.configure({props:[$I.add(h=>h.isTop?u:void 0)]}),s.name)}configure(s,u){return new Xhe(this.data,this.parser.configure(s),u||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Jh(l){let s=l.field(Lx.state,!1);return s?s.tree:Ff.empty}class Pbn{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 XW=null;class Khe{constructor(s,u,h=[],g,m,p,O,j){this.parser=s,this.state=u,this.fragments=h,this.tree=g,this.treeLen=m,this.viewport=p,this.skipped=O,this.scheduleOn=j,this.parse=null,this.tempSkipped=[]}static create(s,u,h){return new Khe(s,u,[],Ff.empty,0,h,[],null)}startParse(){return this.parser.startParse(new Pbn(this.state.doc),this.fragments)}work(s,u){return u!=null&&u>=this.state.doc.length&&(u=void 0),this.tree!=Ff.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(RM.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(RM.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(s){let u=XW;XW=this;try{return s()}finally{XW=u}}withoutTempSkipped(s){for(let u;u=this.tempSkipped.pop();)s=I5t(s,u.from,u.to);return s}changes(s,u){let{fragments:h,tree:g,treeLen:m,viewport:p,skipped:O}=this;if(this.takeTree(),!s.empty){let j=[];if(s.iterChangedRanges((C,N,_,P)=>j.push({fromA:C,toA:N,fromB:_,toB:P})),h=RM.applyChanges(h,j),g=Ff.empty,m=0,p={from:s.mapPos(p.from,-1),to:s.mapPos(p.to,1)},this.skipped.length){O=[];for(let C of this.skipped){let N=s.mapPos(C.from,1),_=s.mapPos(C.to,-1);N<_&&O.push({from:N,to:_})}}}return new Khe(this.parser,u,h,g,m,p,O,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=I5t(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 Ajt{createParse(u,h,g){let m=g[0].from,p=g[g.length-1].to;return{parsedPos:m,advance(){let j=XW;if(j){for(let C of g)j.tempSkipped.push(C);s&&(j.scheduleOn=j.scheduleOn?Promise.all([j.scheduleOn,s]):s)}return this.parsedPos=p,new Ff(Np.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 XW}}function I5t(l,s,u){return RM.applyChanges(l,[{fromA:s,toA:u,fromB:s,toB:u}])}class aR{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 aR(u)}static init(s){let u=Math.min(3e3,s.doc.length),h=Khe.create(s.facet(W9).parser,s,{from:0,to:u});return h.work(20,u)||h.takeTree(),new aR(h)}}Lx.state=Td.define({create:aR.init,update(l,s){for(let u of s.effects)if(u.is(Lx.setState))return u.value;return s.startState.facet(W9)!=s.state.facet(W9)?aR.init(s.state):l.apply(s)}});let Fjt=l=>{let s=setTimeout(()=>l(),500);return()=>clearTimeout(s)};typeof requestIdleCallback<"u"&&(Fjt=l=>{let s=-1,u=setTimeout(()=>{s=requestIdleCallback(l,{timeout:400})},100);return()=>s<0?clearTimeout(u):cancelIdleCallback(s)});const zEe=typeof navigator<"u"&&(!((BEe=navigator.scheduling)===null||BEe===void 0)&&BEe.isInputPending)?()=>navigator.scheduling.isInputPending():null,Ibn=Uh.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(Lx.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(Lx.state);(u.tree!=u.context.tree||!u.context.isDone(s.doc.length))&&(this.working=Fjt(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(Lx.state);if(m.tree==m.context.tree&&m.context.isDone(g+1e5))return;let p=Date.now()+Math.min(this.chunkBudget,100,s&&!zEe?Math.max(25,s.timeRemaining()-5):1e9),O=m.context.treeLen<g&&h.doc.length>g+1e3,j=m.context.work(()=>zEe&&zEe()||Date.now()>p,g+(O?0:1e5));this.chunkBudget-=Date.now()-u,(j||this.chunkBudget<=0)&&(m.context.takeTree(),this.view.dispatch({effects:Lx.setState.of(new aR(m.context))})),this.chunkBudget>0&&!(j&&!O)&&this.scheduleWork(),this.checkAsyncSchedule(m.context)}checkAsyncSchedule(s){s.scheduleOn&&(this.workScheduled++,s.scheduleOn.then(()=>this.scheduleWork()).catch(u=>Tp(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()}}}),W9=Ui.define({combine(l){return l.length?l[0]:null},enables:l=>[Lx.state,Ibn,Bi.contentAttributes.compute([l],s=>{let u=s.facet(l);return u&&u.name?{"data-language":u.name}:{}})]});class Rbn{constructor(s,u=[]){this.language=s,this.support=u,this.extension=[s,u]}}const $bn=Ui.define(),lX=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 Yhe(l){let s=l.facet(lX);return s.charCodeAt(0)==9?l.tabSize*s.length:s.length}function qV(l,s){let u="",h=l.tabSize,g=l.facet(lX)[0];if(g=="	"){for(;s>=h;)u+="	",s-=h;g=" "}for(let m=0;m<s;m++)u+=g;return u}function TNe(l,s){l instanceof Fc&&(l=new Ide(l));for(let h of l.state.facet($bn)){let g=h(l,s);if(g!==void 0)return g}let u=Jh(l.state);return u.length>=s?Bbn(l,u,s):null}class Ide{constructor(s,u={}){this.state=s,this.options=u,this.unit=Yhe(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 iX(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 qjt=new Co;function Bbn(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 Hjt(h,l,u)}function Hjt(l,s,u){for(let h=l;h;h=h.next){let g=Fbn(h.node);if(g)return g(CNe.create(s,u,h))}return 0}function zbn(l){return l.pos==l.options.simulateBreak&&l.options.simulateDoubleBreak}function Fbn(l){let s=l.type.prop(qjt);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=>Gjt(p,!0,1,void 0,m&&!zbn(p)?g.from:void 0)}return l.parent==null?qbn:null}function qbn(){return 0}class CNe extends Ide{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 CNe(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(Hbn(h,s))break;u=this.state.doc.lineAt(h.from)}return this.lineIndent(u.from)}continue(){return Hjt(this.context.next,this.base,this.pos)}}function Hbn(l,s){for(let u=s;u;u=u.parent)if(l==u)return!0;return!1}function Gbn(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 O=u.to;;){let j=s.childAfter(O);if(!j||j==h)return null;if(!j.type.isSkipped){if(j.from>=p)return null;let C=/^ */.exec(m.text.slice(u.to-m.from))[0].length;return{from:u.from,to:u.to+C}}O=j.to}}function FEe({closing:l,align:s=!0,units:u=1}){return h=>Gjt(h,s,u,l)}function Gjt(l,s,u,h,g){let m=l.textAfter,p=m.match(/^\s*/)[0].length,O=h&&m.slice(p,p+h.length)==h||g==l.pos+p,j=s?Gbn(l):null;return j?O?l.column(j.from):l.column(j.to):l.baseIndent+(O?0:l.unit*u)}const Qbn=200;function Ubn(){return Fc.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+Qbn)return l;let m=u.sliceString(g.from,h);if(!s.some(C=>C.test(m)))return l;let{state:p}=l,O=-1,j=[];for(let{head:C}of p.selection.ranges){let N=p.doc.lineAt(C);if(N.from==O)continue;O=N.from;let _=TNe(p,N.from);if(_==null)continue;let P=/^\s*/.exec(N.text)[0],I=qV(p,_);P!=I&&j.push({from:N.from,to:N.from+P.length,insert:I})}return j.length?[l,{changes:j,sequential:!0}]:l})}const Jbn=Ui.define(),Qjt=new Co;function Wbn(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 Vbn(l,s,u){let h=Jh(l);if(h.length<u)return null;let g=h.resolveStack(u,1),m=null;for(let p=g;p;p=p.next){let O=p.node;if(O.to<=u||O.from>u)continue;if(m&&O.from<s)break;let j=O.type.prop(Qjt);if(j&&(O.to<h.length-50||h.length==l.doc.length||!Xbn(O))){let C=j(O,l);C&&C.from<=u&&C.from>=s&&C.to>u&&(m=C)}}return m}function Xbn(l){let s=l.lastChild;return s&&s.to==l.to&&s.type.isError}function Zhe(l,s,u){for(let h of l.facet(Jbn)){let g=h(l,s,u);if(g)return g}return Vbn(l,s,u)}function Ujt(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 Rde=Ds.define({map:Ujt}),uX=Ds.define({map:Ujt});function Jjt(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 WM=Td.define({create(){return Fr.none},update(l,s){s.isUserEvent("delete")&&s.changes.iterChangedRanges((u,h)=>l=R5t(l,u,h)),l=l.map(s.changes);for(let u of s.effects)if(u.is(Rde)&&!Kbn(l,u.value.from,u.value.to)){let{preparePlaceholder:h}=s.state.facet(Xjt),g=h?Fr.replace({widget:new rwn(h(s.state,u.value))}):$5t;l=l.update({add:[g.range(u.value.from,u.value.to)]})}else u.is(uX)&&(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=R5t(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($5t.range(h,g))}return Fr.set(s,!0)}});function R5t(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 ede(l,s,u){var h;let g=null;return(h=l.field(WM,!1))===null||h===void 0||h.between(s,u,(m,p)=>{(!g||g.from>m)&&(g={from:m,to:p})}),g}function Kbn(l,s,u){let h=!1;return l.between(s,s,(g,m)=>{g==s&&m==u&&(h=!0)}),h}function Wjt(l,s){return l.field(WM,!1)?s:s.concat(Ds.appendConfig.of(Kjt()))}const Ybn=l=>{for(let s of Jjt(l)){let u=Zhe(l.state,s.from,s.to);if(u)return l.dispatch({effects:Wjt(l.state,[Rde.of(u),Vjt(l,u)])}),!0}return!1},Zbn=l=>{if(!l.state.field(WM,!1))return!1;let s=[];for(let u of Jjt(l)){let h=ede(l.state,u.from,u.to);h&&s.push(uX.of(h),Vjt(l,h,!1))}return s.length&&l.dispatch({effects:s}),s.length>0};function Vjt(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 ewn=l=>{let{state:s}=l,u=[];for(let h=0;h<s.doc.length;){let g=l.lineBlockAt(h),m=Zhe(s,g.from,g.to);m&&u.push(Rde.of(m)),h=(m?l.lineBlockAt(m.to):g).to+1}return u.length&&l.dispatch({effects:Wjt(l.state,u)}),!!u.length},twn=l=>{let s=l.state.field(WM,!1);if(!s||!s.size)return!1;let u=[];return s.between(0,l.state.doc.length,(h,g)=>{u.push(uX.of({from:h,to:g}))}),l.dispatch({effects:u}),!0},nwn=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:Ybn},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:Zbn},{key:"Ctrl-Alt-[",run:ewn},{key:"Ctrl-Alt-]",run:twn}],iwn={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Xjt=Ui.define({combine(l){return f5(l,iwn)}});function Kjt(l){return[WM,cwn]}function Yjt(l,s){let{state:u}=l,h=u.facet(Xjt),g=p=>{let O=l.lineBlockAt(l.posAtDOM(p.target)),j=ede(l.state,O.from,O.to);j&&l.dispatch({effects:uX.of(j)}),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 $5t=Fr.replace({widget:new class extends CO{toDOM(l){return Yjt(l,null)}}});class rwn extends CO{constructor(s){super(),this.value=s}eq(s){return this.value==s.value}toDOM(s){return Yjt(s,this.value)}}const swn={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class qEe extends u5{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 own(l={}){let s={...swn,...l},u=new qEe(s,!0),h=new qEe(s,!1),g=Uh.fromClass(class{constructor(p){this.from=p.viewport.from,this.markers=this.buildMarkers(p)}update(p){(p.docChanged||p.viewportChanged||p.startState.facet(W9)!=p.state.facet(W9)||p.startState.field(WM,!1)!=p.state.field(WM,!1)||Jh(p.startState)!=Jh(p.state)||s.foldingChanged(p))&&(this.markers=this.buildMarkers(p.view))}buildMarkers(p){let O=new H9;for(let j of p.viewportLineBlocks){let C=ede(p.state,j.from,j.to)?h:Zhe(p.state,j.from,j.to)?u:null;C&&O.add(j.from,j.from,C)}return O.finish()}}),{domEventHandlers:m}=s;return[g,Ojt({class:"cm-foldGutter",markers(p){var O;return((O=p.plugin(g))===null||O===void 0?void 0:O.markers)||xo.empty},initialSpacer(){return new qEe(s,!1)},domEventHandlers:{...m,click:(p,O,j)=>{if(m.click&&m.click(p,O,j))return!0;let C=ede(p.state,O.from,O.to);if(C)return p.dispatch({effects:uX.of(C)}),!0;let N=Zhe(p.state,O.from,O.to);return N?(p.dispatch({effects:Rde.of(N)}),!0):!1}}}),Kjt()]}const cwn=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 $de{constructor(s,u){this.specs=s;let h;function g(O){let j=G9.newName();return(h||(h=Object.create(null)))["."+j]=O,j}const m=typeof u.all=="string"?u.all:u.all?g(u.all):void 0,p=u.scope;this.scope=p instanceof Lx?O=>O.prop($I)==p.data:p?O=>O==p:void 0,this.style=Djt(s.map(O=>({tag:O.tag,class:O.class||g(Object.assign({},O,{tag:null}))})),{all:m}).style,this.module=h?new G9(h):null,this.themeType=u.themeType}static define(s,u){return new $de(s,u||{})}}const gAe=Ui.define(),lwn=Ui.define({combine(l){return l.length?[l[0]]:null}});function HEe(l){let s=l.facet(gAe);return s.length?s:l.facet(lwn)}function uwn(l,s){let u=[fwn],h;return l instanceof $de&&(l.module&&u.push(Bi.styleModule.of(l.module)),h=l.themeType),h?u.push(gAe.computeN([Bi.darkTheme],g=>g.facet(Bi.darkTheme)==(h=="dark")?[l]:[])):u.push(gAe.of(l)),u}class awn{constructor(s){this.markCache=Object.create(null),this.tree=Jh(s.state),this.decorations=this.buildDeco(s,HEe(s.state)),this.decoratedTo=s.viewport.to}update(s){let u=Jh(s.state),h=HEe(s.state),g=h!=HEe(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 H9;for(let{from:g,to:m}of s.visibleRanges)xmn(this.tree,u,(p,O,j)=>{h.add(p,O,this.markCache[j]||(this.markCache[j]=Fr.mark({class:j})))},g,m);return h.finish()}}const fwn=V9.high(Uh.fromClass(awn,{decorations:l=>l.decorations})),hwn=Bi.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Zjt=1e4,eSt="()[]{}",tSt=Ui.define({combine(l){return f5(l,{afterCursor:!0,brackets:eSt,maxScanDistance:Zjt,renderMatch:pwn})}}),dwn=Fr.mark({class:"cm-matchingBracket"}),gwn=Fr.mark({class:"cm-nonmatchingBracket"});function pwn(l){let s=[],u=l.matched?dwn:gwn;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 B5t(l){let s=[],u=l.facet(tSt);for(let h of l.selection.ranges){if(!h.empty)continue;let g=i5(l,h.head,-1,u)||h.head>0&&i5(l,h.head-1,1,u)||u.afterCursor&&(i5(l,h.head,1,u)||h.head<l.doc.length&&i5(l,h.head+1,-1,u));g&&(s=s.concat(u.renderMatch(g,l)))}return Fr.set(s,!0)}const mwn=Uh.fromClass(class{constructor(l){this.paused=!1,this.decorations=B5t(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=B5t(l.state),this.paused=!1))}},{decorations:l=>l.decorations}),bwn=[mwn,hwn];function wwn(l={}){return[tSt.of(l),bwn]}const vwn=new Co;function pAe(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 mAe(l){let s=l.type.prop(vwn);return s?s(l.node):l}function i5(l,s,u,h={}){let g=h.maxScanDistance||Zjt,m=h.brackets||eSt,p=Jh(l),O=p.resolveInner(s,u);for(let j=O;j;j=j.parent){let C=pAe(j.type,u,m);if(C&&j.from<j.to){let N=mAe(j);if(N&&(u>0?s>=N.from&&s<N.to:s>N.from&&s<=N.to))return xwn(l,s,u,j,N,C,m)}}return ywn(l,s,u,p,O.type,g,m)}function xwn(l,s,u,h,g,m,p){let O=h.parent,j={from:g.from,to:g.to},C=0,N=O==null?void 0:O.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 _=mAe(N);return{start:j,end:_?{from:_.from,to:_.to}:void 0,matched:!0}}else if(pAe(N.type,u,p))C++;else if(pAe(N.type,-u,p)){if(C==0){let _=mAe(N);return{start:j,end:_&&_.from<_.to?{from:_.from,to:_.to}:void 0,matched:!1}}C--}}while(u<0?N.prevSibling():N.nextSibling());return{start:j,matched:!1}}function ywn(l,s,u,h,g,m,p){let O=u<0?l.sliceDoc(s-1,s):l.sliceDoc(s,s+1),j=p.indexOf(O);if(j<0||j%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 I=N.value;u<0&&(P+=I.length);let q=s+P*u;for(let z=u>0?0:I.length-1,X=u>0?I.length:-1;z!=X;z+=u){let Q=p.indexOf(I[z]);if(!(Q<0||h.resolveInner(q+z,1).type!=g))if(Q%2==0==u>0)_++;else{if(_==1)return{start:C,end:{from:q+z,to:q+z+1},matched:Q>>1==j>>1};_--}}u>0&&(P+=I.length)}return N.done?{start:C,matched:!1}:null}const kwn=Object.create(null),z5t=[Np.none],F5t=[],q5t=Object.create(null),Own=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"]])Own[l]=jwn(kwn,s);function GEe(l,s){F5t.indexOf(l)>-1||(F5t.push(l),console.warn(s))}function jwn(l,s){let u=[];for(let O of s.split(" ")){let j=[];for(let C of O.split(".")){let N=l[C]||Gn[C];N?typeof N=="function"?j.length?j=j.map(N):GEe(C,`Modifier ${C} used at start of tag`):j.length?GEe(C,`Tag ${C} used as modifier`):j=Array.isArray(N)?N:[N]:GEe(C,`Unknown highlighting tag ${C}`)}for(let C of j)u.push(C)}if(!u.length)return 0;let h=s.replace(/ /g,"_"),g=h+" "+u.map(O=>O.id),m=q5t[g];if(m)return m.id;let p=q5t[g]=Np.define({id:z5t.length,name:h,props:[Njt({[h]:u})]});return z5t.push(p),p.id}eu.RTL,eu.LTR;class nSt{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=Jh(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(rSt(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 H5t(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 Swn(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=H5t(s)+H5t(u)+"*$";return[new RegExp("^"+h),new RegExp(h)]}function iSt(l){let s=l.map(g=>typeof g=="string"?{label:g}:g),[u,h]=s.every(g=>/^\w+$/.test(g.label))?[/\w*$/,/\w+$/]:Swn(s);return g=>{let m=g.matchBefore(h);return m||g.explicit?{from:m?m.from:g.pos,options:s,validFor:u}:null}}function Twn(l,s){return u=>{for(let h=Jh(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 G5t{constructor(s,u,h,g){this.completion=s,this.source=u,this.match=h,this.score=g}}function $M(l){return l.selection.main.from}function rSt(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 ENe=TO.define();function Cwn(l,s,u,h){let{main:g}=l.selection,m=u-g.from,p=h-g.from;return{...l.changeByRange(O=>{if(O!=g&&u!=h&&l.sliceDoc(O.from+m,O.from+p)!=l.sliceDoc(u,h))return{range:O};let j=l.toText(s);return{changes:{from:O.from+m,to:h==g.from?O.to:O.from+p,insert:j},range:jn.cursor(O.from+m+j.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}const Q5t=new WeakMap;function Ewn(l){if(!Array.isArray(l))return l;let s=Q5t.get(l);return s||Q5t.set(l,s=iSt(l)),s}const tde=Ds.define(),HV=Ds.define();class Mwn{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=ib(s,u),g=Z3(h);this.chars.push(h);let m=s.slice(u,u+g),p=m.toUpperCase();this.folded.push(ib(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 te=ib(s,0),V=Z3(te),ne=V==s.length?0:-100;if(te!=u[0])if(te==h[0])ne+=-200;else return null;return this.ret(ne,[0,V])}let O=s.indexOf(this.pattern);if(O==0)return this.ret(s.length==this.pattern.length?0:-100,[0,this.pattern.length]);let j=u.length,C=0;if(O<0){for(let te=0,V=Math.min(s.length,200);te<V&&C<j;){let ne=ib(s,te);(ne==u[C]||ne==h[C])&&(g[C++]=te),te+=Z3(ne)}if(C<j)return null}let N=0,_=0,P=!1,I=0,q=-1,z=-1,X=/[a-z]/.test(s),Q=!0;for(let te=0,V=Math.min(s.length,200),ne=0;te<V&&_<j;){let ce=ib(s,te);O<0&&(N<j&&ce==u[N]&&(m[N++]=te),I<j&&(ce==u[I]||ce==h[I]?(I==0&&(q=te),z=te+1,I++):I=0));let se,me=ce<255?ce>=48&&ce<=57||ce>=97&&ce<=122?2:ce>=65&&ce<=90?1:0:(se=iNe(ce))!=se.toLowerCase()?1:se!=se.toUpperCase()?2:0;(!te||me==1&&X||ne==0&&me!=0)&&(u[_]==ce||h[_]==ce&&(P=!0)?p[_++]=te:p.length&&(Q=!1)),ne=me,te+=Z3(ce)}return _==j&&p[0]==0&&Q?this.result(-100+(P?-200:0),p,s):I==j&&q==0?this.ret(-200-s.length+(z==s.length?0:-100),[0,z]):O>-1?this.ret(-700-s.length,[O,O+this.pattern.length]):I==j?this.ret(-900-s.length,[q,z]):_==j?this.result(-100+(P?-200:0)+-700+(Q?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 O=p+(this.astral?Z3(ib(h,p)):1);m&&g[m-1]==p?g[m-1]=O:(g[m++]=p,g[m++]=O)}return this.ret(s-h.length,g)}}class Awn{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 Od=Ui.define({combine(l){return f5(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:Nwn,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=>U5t(s(h),u(h)),optionClass:(s,u)=>h=>U5t(s(h),u(h)),addToOptions:(s,u)=>s.concat(u),filterStrict:(s,u)=>s||u})}});function U5t(l,s){return l?s?l+" "+s:l:s}function Nwn(l,s,u,h,g,m){let p=l.textDirection==eu.RTL,O=p,j=!1,C="top",N,_,P=s.left-g.left,I=g.right-s.right,q=h.right-h.left,z=h.bottom-h.top;if(O&&P<Math.min(q,I)?O=!1:!O&&I<Math.min(q,P)&&(O=!0),q<=(O?P:I))N=Math.max(g.top,Math.min(u.top,g.bottom-z))-s.top,_=Math.min(400,O?P:I);else{j=!0,_=Math.min(400,(p?s.right:g.right-s.left)-30);let te=g.bottom-s.bottom;te>=z||te>s.top?N=u.bottom-s.top:(C="bottom",N=s.bottom-u.top)}let X=(s.bottom-s.top)/m.offsetHeight,Q=(s.right-s.left)/m.offsetWidth;return{style:`${C}: ${N/X}px; max-width: ${_/Q}px`,class:"cm-completionInfo-"+(j?p?"left-narrow":"right-narrow":O?"left":"right")}}const MNe=Ds.define();function _wn(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 O=u.displayLabel||u.label,j=0;for(let C=0;C<m.length;){let N=m[C++],_=m[C++];N>j&&p.appendChild(document.createTextNode(O.slice(j,N)));let P=p.appendChild(document.createElement("span"));P.appendChild(document.createTextNode(O.slice(N,_))),P.className="cm-completionMatchedText",j=_}return j<O.length&&p.appendChild(document.createTextNode(O.slice(j))),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 QEe(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 Dwn{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:j=>this.placeInfo(j),key:this},this.space=null,this.currentClass="";let g=s.state.field(u),{options:m,selected:p}=g.open,O=s.state.facet(Od);this.optionContent=_wn(O),this.optionClass=O.optionClass,this.tooltipClass=O.tooltipClass,this.range=QEe(m.length,p,O.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(s.state),this.dom.addEventListener("mousedown",j=>{let{options:C}=s.state.field(u).open;for(let N=j.target,_;N&&N!=this.dom;N=N.parentNode)if(N.nodeName=="LI"&&(_=/-(\d+)$/.exec(N.id))&&+_[1]<C.length){this.applyCompletion(s,C[+_[1]]),j.preventDefault();return}if(j.target==this.list){let N=this.list.classList.contains("cm-completionListIncompleteTop")&&j.clientY<this.list.firstChild.getBoundingClientRect().top?this.range.from-1:this.list.classList.contains("cm-completionListIncompleteBottom")&&j.clientY>this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;N!=null&&(s.dispatch({effects:MNe.of(N)}),j.preventDefault())}}),this.dom.addEventListener("focusout",j=>{let C=s.state.field(this.stateField,!1);C&&C.tooltip&&s.state.facet(Od).closeOnBlur&&j.relatedTarget!=s.contentDOM&&s.dispatch({effects:HV.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:O}=h.open;(!g.open||g.open.options!=m)&&(this.range=QEe(m.length,p,s.state.facet(Od).maxRenderedOptions),this.showOptions(m,h.id)),this.updateSel(),O!=((u=g.open)===null||u===void 0?void 0:u.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!O)}}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=QEe(u.options.length,u.selected,this.view.state.facet(Od).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(O=>{O&&this.view.state.field(this.stateField,!1)==s&&this.addInfoPane(O,g)}).catch(O=>Tp(this.view.state,O,"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&&Pwn(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(Od).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:O,match:j}=s[p],{section:C}=O;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 I=g.appendChild(document.createElement("completion-section"));I.textContent=P}}const N=g.appendChild(document.createElement("li"));N.id=u+"-"+p,N.setAttribute("role","option");let _=this.optionClass(O);_&&(N.className=_);for(let P of this.optionContent){let I=P(O,this.view.state,this.view,j);I&&N.appendChild(I)}}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 Lwn(l,s){return u=>new Dwn(u,l,s)}function Pwn(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 J5t(l){return(l.boost||0)*100+(l.apply?10:0)+(l.info?5:0)+(l.type?1:0)}function Iwn(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(I=>I.name==P)||h.push(typeof _=="string"?{name:P}:_)}},p=s.facet(Od);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 G5t(P,N.source,_?_(P):[],1e9-u.length));else{let P=s.sliceDoc(N.from,N.to),I,q=p.filterStrict?new Awn(P):new Mwn(P);for(let z of N.result.options)if(I=q.match(z.label)){let X=z.displayLabel?_?_(z,I.matched):[]:I.matched,Q=I.score+(z.boost||0);if(m(new G5t(z,N.source,X,Q)),typeof z.section=="object"&&z.section.rank==="dynamic"){let{name:te}=z.section;g||(g=Object.create(null)),g[te]=Math.max(Q,g[te]||-1e9)}}}}if(h){let N=Object.create(null),_=0,P=(I,q)=>(I.rank==="dynamic"&&q.rank==="dynamic"?g[q.name]-g[I.name]:0)||(typeof I.rank=="number"?I.rank:1e9)-(typeof q.rank=="number"?q.rank:1e9)||(I.name<q.name?-1:1);for(let I of h.sort(P))_-=1e5,N[I.name]=_;for(let I of u){let{section:q}=I.completion;q&&(I.score+=N[typeof q=="string"?q:q.name])}}let O=[],j=null,C=p.compareCompletions;for(let N of u.sort((_,P)=>P.score-_.score||C(_.completion,P.completion))){let _=N.completion;!j||j.label!=_.label||j.detail!=_.detail||j.type!=null&&_.type!=null&&j.type!=_.type||j.apply!=_.apply||j.boost!=_.boost?O.push(N):J5t(N.completion)>J5t(j)&&(O[O.length-1]=N),j=N.completion}return O}class BI{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 BI(this.options,W5t(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 O=Iwn(s,u);if(!O.length)return g&&s.some(C=>C.isPending)?g.setDisabled():null;let j=u.facet(Od).selectOnOpen?0:-1;if(g&&g.selected!=j&&g.selected!=-1){let C=g.options[g.selected].completion;for(let N=0;N<O.length;N++)if(O[N].completion==C){j=N;break}}return new BI(O,W5t(h,j),{pos:s.reduce((C,N)=>N.hasResult()?Math.min(C,N.from):C,1e8),create:qwn,above:m.aboveCursor},g?g.timestamp:Date.now(),j,!1)}map(s){return new BI(this.options,this.attrs,{...this.tooltip,pos:s.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new BI(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class nde{constructor(s,u,h){this.active=s,this.id=u,this.open=h}static start(){return new nde(zwn,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(s){let{state:u}=s,h=u.facet(Od),m=(h.override||u.languageDataAt("autocomplete",$M(u)).map(Ewn)).map(j=>(this.active.find(N=>N.source==j)||new t2(j,this.active.some(N=>N.state!=0)?1:0)).update(s,h));m.length==this.active.length&&m.every((j,C)=>j==this.active[C])&&(m=this.active);let p=this.open,O=s.effects.some(j=>j.is(ANe));p&&s.docChanged&&(p=p.map(s.changes)),s.selection||m.some(j=>j.hasResult()&&s.changes.touchesRange(j.from,j.to))||!Rwn(m,this.active)||O?p=BI.build(m,u,this.id,p,h,O):p&&p.disabled&&!m.some(j=>j.isPending)&&(p=null),!p&&m.every(j=>!j.isPending)&&m.some(j=>j.hasResult())&&(m=m.map(j=>j.hasResult()?new t2(j.source,0):j));for(let j of s.effects)j.is(MNe)&&(p=p&&p.setSelected(j.value,this.id));return m==this.active&&p==this.open?this:new nde(m,this.id,p)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?$wn:Bwn}}function Rwn(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 $wn={"aria-autocomplete":"list"},Bwn={};function W5t(l,s){let u={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":l};return s>-1&&(u["aria-activedescendant"]=l+"-"+s),u}const zwn=[];function sSt(l,s){if(l.isUserEvent("input.complete")){let h=l.annotation(ENe);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 t2{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=sSt(s,u),g=this;(h&8||h&16&&this.touches(s))&&(g=new t2(g.source,0)),h&4&&g.state==0&&(g=new t2(this.source,1)),g=g.updateFor(s,h);for(let m of s.effects)if(m.is(tde))g=new t2(g.source,1,m.value);else if(m.is(HV))g=new t2(g.source,0);else if(m.is(ANe))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($M(s.state))}}class VI extends t2{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),O=$M(s.state);if(O>p||!g||u&2&&($M(s.startState)==this.from||O<this.limit))return new t2(this.source,u&4?1:0);let j=s.changes.mapPos(this.limit);return Fwn(g.validFor,s.state,m,p)?new VI(this.source,this.explicit,j,g,m,p):g.update&&(g=g.update(g,m,p,new nSt(s.state,O,!1)))?new VI(this.source,this.explicit,j,g,g.from,(h=g.to)!==null&&h!==void 0?h:$M(s.state)):new t2(this.source,1,this.explicit)}map(s){return s.empty?this:(this.result.map?this.result.map(this.result,s):this.result)?new VI(this.source,this.explicit,s.mapPos(this.limit),this.result,s.mapPos(this.from),s.mapPos(this.to,1)):new t2(this.source,0)}touches(s){return s.changes.touchesRange(this.from,this.to)}}function Fwn(l,s,u,h){if(!l)return!1;let g=s.sliceDoc(u,h);return typeof l=="function"?l(g,u,h,s):rSt(l,!0).test(g)}const ANe=Ds.define({map(l,s){return l.map(u=>u.map(s))}}),kp=Td.define({create(){return nde.start()},update(l,s){return l.update(s)},provide:l=>[_de.from(l,s=>s.tooltip),Bi.contentAttributes.from(l,s=>s.attrs)]});function NNe(l,s){const u=s.completion.apply||s.completion.label;let h=l.state.field(kp).active.find(g=>g.source==s.source);return h instanceof VI?(typeof u=="string"?l.dispatch({...Cwn(l.state,u,h.from,h.to),annotations:ENe.of(s.completion)}):u(l,s.completion,h.from,h.to),!0):!1}const qwn=Lwn(kp,NNe);function Ffe(l,s="option"){return u=>{let h=u.state.field(kp,!1);if(!h||!h.open||h.open.disabled||Date.now()-h.open.timestamp<u.state.facet(Od).interactionDelay)return!1;let g=1,m;s=="page"&&(m=wjt(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,O=h.open.selected>-1?h.open.selected+g*(l?1:-1):l?0:p-1;return O<0?O=s=="page"?0:p-1:O>=p&&(O=s=="page"?p-1:0),u.dispatch({effects:MNe.of(O)}),!0}}const Hwn=l=>{let s=l.state.field(kp,!1);return l.state.readOnly||!s||!s.open||s.open.selected<0||s.open.disabled||Date.now()-s.open.timestamp<l.state.facet(Od).interactionDelay?!1:NNe(l,s.open.options[s.open.selected])},UEe=l=>l.state.field(kp,!1)?(l.dispatch({effects:tde.of(!0)}),!0):!1,Gwn=l=>{let s=l.state.field(kp,!1);return!s||!s.active.some(u=>u.state!=0)?!1:(l.dispatch({effects:HV.of(null)}),!0)};class Qwn{constructor(s,u){this.active=s,this.context=u,this.time=Date.now(),this.updates=[],this.done=void 0}}const Uwn=50,Jwn=1e3,Wwn=Uh.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(kp).active)s.isPending&&this.startQuery(s)}update(l){let s=l.state.field(kp),u=l.state.facet(Od);if(!l.selectionSet&&!l.docChanged&&l.startState.field(kp)==s)return;let h=l.transactions.some(m=>{let p=sSt(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>Uwn&&Date.now()-p.time>Jwn){for(let O of p.context.abortListeners)try{O()}catch(j){Tp(this.view.state,j)}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(tde)))&&(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(kp);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(Od).updateSyncTime))}startQuery(l){let{state:s}=this.view,u=$M(s),h=new nSt(s,u,l.explicit,this.view),g=new Qwn(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:HV.of(null)}),Tp(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(Od).updateSyncTime))}accept(){var l;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let s=[],u=this.view.state.facet(Od),h=this.view.state.field(kp);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 O=$M(m.updates.length?m.updates[0].startState:this.view.state),j=Math.min(O,m.done.from+(m.active.explicit?0:1)),C=new VI(m.active.source,m.active.explicit,j,m.done,m.done.from,(l=m.done.to)!==null&&l!==void 0?l:O);for(let N of m.updates)C=C.update(N,u);if(C.hasResult()){s.push(C);continue}}let p=h.active.find(O=>O.source==m.active.source);if(p&&p.isPending)if(m.done==null){let O=new t2(m.active.source,0);for(let j of m.updates)O=O.update(j,u);O.isPending||s.push(O)}else this.startQuery(p)}(s.length||h.open&&h.open.disabled)&&this.view.dispatch({effects:ANe.of(s)})}},{eventHandlers:{blur(l){let s=this.view.state.field(kp,!1);if(s&&s.tooltip&&this.view.state.facet(Od).closeOnBlur){let u=s.open&&wjt(this.view,s.open.tooltip);(!u||!u.dom.contains(l.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:HV.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:tde.of(!1)}),20),this.composing=0}}}),Vwn=typeof navigator=="object"&&/Win/.test(navigator.platform),Xwn=V9.highest(Bi.domEventHandlers({keydown(l,s){let u=s.state.field(kp,!1);if(!u||!u.open||u.open.disabled||u.open.selected<0||l.key.length>1||l.ctrlKey&&!(Vwn&&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&&NNe(s,h),!1}})),oSt=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 Kwn{constructor(s,u,h,g){this.field=s,this.line=u,this.from=h,this.to=g}}class _Ne{constructor(s,u,h){this.field=s,this.from=u,this.to=h}map(s){let u=s.mapPos(this.from,-1,u1.TrackDel),h=s.mapPos(this.to,1,u1.TrackDel);return u==null||h==null?null:new _Ne(this.field,u,h)}}class DNe{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 j of this.lines){if(h.length){let C=p,N=/^\t*/.exec(j)[0].length;for(let _=0;_<N;_++)C+=s.facet(lX);g.push(u+C.length-N),j=C+j.slice(N)}h.push(j),u+=j.length+1}let O=this.fieldPositions.map(j=>new _Ne(j.field,g[j.line]+j.from,g[j.line]+j.to));return{text:h,ranges:O}}static parse(s){let u=[],h=[],g=[],m;for(let p of s.split(/\r\n?|\n/)){for(;m=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(p);){let O=m[1]?+m[1]:null,j=m[2]||m[3]||"",C=-1,N=j.replace(/\\[{}]/g,_=>_[1]);for(let _=0;_<u.length;_++)(O!=null?u[_].seq==O:N&&u[_].name==N)&&(C=_);if(C<0){let _=0;for(;_<u.length&&(O==null||u[_].seq!=null&&u[_].seq<O);)_++;u.splice(_,0,{seq:O,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 Kwn(C,h.length,m.index,m.index+N.length)),p=p.slice(0,m.index)+j+p.slice(m.index+m[0].length)}p=p.replace(/\\([{}])/g,(O,j,C)=>{for(let N of g)N.line==h.length&&N.from>C&&(N.from--,N.to--);return j}),h.push(p)}return new DNe(h,g)}}let Ywn=Fr.widget({widget:new class extends CO{toDOM(){let l=document.createElement("span");return l.className="cm-snippetFieldPosition",l}ignoreEvent(){return!1}}}),Zwn=Fr.mark({class:"cm-snippetField"});class gR{constructor(s,u){this.ranges=s,this.active=u,this.deco=Fr.set(s.map(h=>(h.from==h.to?Ywn:Zwn).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 gR(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 aX=Ds.define({map(l,s){return l&&l.map(s)}}),e2n=Ds.define(),GV=Td.define({create(){return null},update(l,s){for(let u of s.effects){if(u.is(aX))return u.value;if(u.is(e2n)&&l)return new gR(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 LNe(l,s){return jn.create(l.filter(u=>u.field==s).map(u=>jn.range(u.from,u.to)))}function t2n(l){let s=DNe.parse(l);return(u,h,g,m)=>{let{text:p,ranges:O}=s.instantiate(u.state,g),{main:j}=u.state.selection,C={changes:{from:g,to:m==j.from?j.to:m,insert:gc.of(p)},scrollIntoView:!0,annotations:h?[ENe.of(h),hh.userEvent.of("input.complete")]:void 0};if(O.length&&(C.selection=LNe(O,0)),O.some(N=>N.field>0)){let N=new gR(O,0),_=C.effects=[aX.of(N)];u.state.field(GV,!1)===void 0&&_.push(Ds.appendConfig.of([GV,o2n,c2n,oSt]))}u.dispatch(u.state.update(C))}}function cSt(l){return({state:s,dispatch:u})=>{let h=s.field(GV,!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:LNe(h.ranges,g),effects:aX.of(m?null:new gR(h.ranges,g)),scrollIntoView:!0})),!0}}const n2n=({state:l,dispatch:s})=>l.field(GV,!1)?(s(l.update({effects:aX.of(null)})),!0):!1,i2n=cSt(1),r2n=cSt(-1),s2n=[{key:"Tab",run:i2n,shift:r2n},{key:"Escape",run:n2n}],V5t=Ui.define({combine(l){return l.length?l[0]:s2n}}),o2n=V9.highest(Nde.compute([V5t],l=>l.facet(V5t)));function lO(l,s){return{...s,apply:t2n(l)}}const c2n=Bi.domEventHandlers({mousedown(l,s){let u=s.state.field(GV,!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:LNe(u.ranges,g.field),effects:aX.of(u.ranges.some(m=>m.field>g.field)?new gR(u.ranges,g.field):null),scrollIntoView:!0}),!0)}}),QV={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},EM=Ds.define({map(l,s){let u=s.mapPos(l,-1,u1.TrackAfter);return u??void 0}}),PNe=new class extends q9{};PNe.startSide=1;PNe.endSide=-1;const lSt=Td.define({create(){return xo.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(EM)&&(l=l.update({add:[PNe.range(u.value,u.value+1)]}));return l}});function l2n(){return[a2n,lSt]}const JEe="()[]{}<>«»»«［］｛｝";function uSt(l){for(let s=0;s<JEe.length;s+=2)if(JEe.charCodeAt(s)==l)return JEe.charAt(s+1);return iNe(l<128?l:l+1)}function aSt(l,s){return l.languageDataAt("closeBrackets",s)[0]||QV}const u2n=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),a2n=Bi.inputHandler.of((l,s,u,h)=>{if((u2n?l.composing:l.compositionStarted)||l.state.readOnly)return!1;let g=l.state.selection.main;if(h.length>2||h.length==2&&Z3(ib(h,0))==1||s!=g.from||u!=g.to)return!1;let m=d2n(l.state,h);return m?(l.dispatch(m),!0):!1}),f2n=({state:l,dispatch:s})=>{if(l.readOnly)return!1;let h=aSt(l,l.selection.main.head).brackets||QV.brackets,g=null,m=l.changeByRange(p=>{if(p.empty){let O=g2n(l.doc,p.head);for(let j of h)if(j==O&&Bde(l.doc,p.head)==uSt(ib(j,0)))return{changes:{from:p.head-j.length,to:p.head+j.length},range:jn.cursor(p.head-j.length)}}return{range:g=p}});return g||s(l.update(m,{scrollIntoView:!0,userEvent:"delete.backward"})),!g},h2n=[{key:"Backspace",run:f2n}];function d2n(l,s){let u=aSt(l,l.selection.main.head),h=u.brackets||QV.brackets;for(let g of h){let m=uSt(ib(g,0));if(s==g)return m==g?b2n(l,g,h.indexOf(g+g+g)>-1,u):p2n(l,g,m,u.before||QV.before);if(s==m&&fSt(l,l.selection.main.from))return m2n(l,g,m)}return null}function fSt(l,s){let u=!1;return l.field(lSt).between(0,l.doc.length,h=>{h==s&&(u=!0)}),u}function Bde(l,s){let u=l.sliceString(s,s+2);return u.slice(0,Z3(ib(u,0)))}function g2n(l,s){let u=l.sliceString(s-2,s);return Z3(ib(u,0))==u.length?u:u.slice(1)}function p2n(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:EM.of(p.to+s.length),range:jn.range(p.anchor+s.length,p.head+s.length)};let O=Bde(l.doc,p.head);return!O||/\s/.test(O)||h.indexOf(O)>-1?{changes:{insert:s+u,from:p.head},effects:EM.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 m2n(l,s,u){let h=null,g=l.changeByRange(m=>m.empty&&Bde(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 b2n(l,s,u,h){let g=h.stringPrefixes||QV.stringPrefixes,m=null,p=l.changeByRange(O=>{if(!O.empty)return{changes:[{insert:s,from:O.from},{insert:s,from:O.to}],effects:EM.of(O.to+s.length),range:jn.range(O.anchor+s.length,O.head+s.length)};let j=O.head,C=Bde(l.doc,j),N;if(C==s){if(X5t(l,j))return{changes:{insert:s+s,from:j},effects:EM.of(j+s.length),range:jn.cursor(j+s.length)};if(fSt(l,j)){let P=u&&l.sliceDoc(j,j+s.length*3)==s+s+s?s+s+s:s;return{changes:{from:j,to:j+P.length,insert:P},range:jn.cursor(j+P.length)}}}else{if(u&&l.sliceDoc(j-2*s.length,j)==s+s&&(N=K5t(l,j-2*s.length,g))>-1&&X5t(l,N))return{changes:{insert:s+s+s+s,from:j},effects:EM.of(j+s.length),range:jn.cursor(j+s.length)};if(l.charCategorizer(j)(C)!=ia.Word&&K5t(l,j,g)>-1&&!w2n(l,j,s,g))return{changes:{insert:s+s,from:j},effects:EM.of(j+s.length),range:jn.cursor(j+s.length)}}return{range:m=O}});return m?null:l.update(p,{scrollIntoView:!0,userEvent:"input.type"})}function X5t(l,s){let u=Jh(l).resolveInner(s+1);return u.parent&&u.from==s}function w2n(l,s,u,h){let g=Jh(l).resolveInner(s,-1),m=h.reduce((p,O)=>Math.max(p,O.length),0);for(let p=0;p<5;p++){let O=l.sliceDoc(g.from,Math.min(g.to,g.from+u.length+m)),j=O.indexOf(u);if(!j||j>-1&&h.indexOf(O.slice(0,j))>-1){let N=g.firstChild;for(;N&&N.from==g.from&&N.to-N.from>u.length+j;){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 K5t(l,s,u){let h=l.charCategorizer(s);if(h(l.sliceDoc(s-1,s))!=ia.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))!=ia.Word)return m}return-1}function qfe(l={}){return[Xwn,kp,Od.of(l),Wwn,v2n,oSt]}const hSt=[{key:"Ctrl-Space",run:UEe},{mac:"Alt-`",run:UEe},{mac:"Alt-i",run:UEe},{key:"Escape",run:Gwn},{key:"ArrowDown",run:Ffe(!0)},{key:"ArrowUp",run:Ffe(!1)},{key:"PageDown",run:Ffe(!0,"page")},{key:"PageUp",run:Ffe(!1,"page")},{key:"Enter",run:Hwn}],v2n=V9.highest(Nde.computeN([Od],l=>l.facet(Od).defaultKeymap?[hSt]:[])),Y5t=new imn,dSt=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function Hfe(l){return(s,u,h)=>{if(h)return!1;let g=s.node.getChild("VariableName");return g&&u(g,l),!0}}const x2n={FunctionDefinition:Hfe("function"),ClassDefinition:Hfe("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:Hfe("variable"),AsPattern:Hfe("variable"),__proto__:null};function gSt(l,s){let u=Y5t.get(s);if(u)return u;let h=[],g=!0;function m(p,O){let j=l.sliceString(p.from,p.to);h.push({label:j,type:O})}return s.cursor(Pa.IncludeAnonymous).iterate(p=>{if(p.name){let O=x2n[p.name];if(O&&O(p,m,g)||!g&&dSt.has(p.name))return!1;g=!1}else if(p.to-p.from>8192){for(let O of gSt(l,p.node))h.push(O);return!1}}),Y5t.set(s,h),h}const Z5t=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,pSt=["String","FormatString","Comment","PropertyName"];function y2n(l){let s=Jh(l.state).resolveInner(l.pos,-1);if(pSt.indexOf(s.name)>-1)return null;let u=s.name=="VariableName"||s.to-s.from<20&&Z5t.test(l.state.sliceDoc(s.from,s.to));if(!u&&!l.explicit)return null;let h=[];for(let g=s;g;g=g.parent)dSt.has(g.name)&&(h=h.concat(gSt(l.state.doc,g)));return{options:h,from:u?s.from:l.pos,validFor:Z5t}}const k2n=["__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"}))),O2n=[lO("def ${name}(${params}):\n	${}",{label:"def",detail:"function",type:"keyword"}),lO("for ${name} in ${collection}:\n	${}",{label:"for",detail:"loop",type:"keyword"}),lO("while ${}:\n	${}",{label:"while",detail:"loop",type:"keyword"}),lO("try:\n	${}\nexcept ${error}:\n	${}",{label:"try",detail:"/ except block",type:"keyword"}),lO(`if \${}:
	
`,{label:"if",detail:"block",type:"keyword"}),lO("if ${}:\n	${}\nelse:\n	${}",{label:"if",detail:"/ else block",type:"keyword"}),lO("class ${name}:\n	def __init__(self, ${params}):\n			${}",{label:"class",detail:"definition",type:"keyword"}),lO("import ${module}",{label:"import",detail:"statement",type:"keyword"}),lO("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],j2n=Twn(pSt,iSt(k2n.concat(O2n)));function WEe(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 VEe(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 XEe=Xhe.define({name:"python",parser:_bn.configure({props:[qjt.add({Body:l=>{var s;let u=/^\s*(#|$)/.test(l.textAfter)&&WEe(l)||l.node;return(s=VEe(l,u))!==null&&s!==void 0?s:l.continue()},MatchBody:l=>{var s;let u=WEe(l);return(s=VEe(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":FEe({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":FEe({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":FEe({closing:"]"}),MemberExpression:l=>l.baseIndent+l.unit,"String FormatString":()=>null,Script:l=>{var s;let u=WEe(l);return(s=u&&VEe(l,u))!==null&&s!==void 0?s:l.continue()}}),Qjt.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":Wbn,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 S2n(){return new Rbn(XEe,[XEe.data.of({autocomplete:y2n}),XEe.data.of({autocomplete:j2n})])}const T2n=l=>{let{state:s}=l,u=s.doc.lineAt(s.selection.main.from),h=RNe(l.state,u.from);return h.line?C2n(l):h.block?M2n(l):!1};function INe(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 C2n=INe(_2n,0),E2n=INe(mSt,0),M2n=INe((l,s)=>mSt(l,s,N2n(s)),0);function RNe(l,s){let u=l.languageDataAt("commentTokens",s,1);return u.length?u[0]:{}}const KW=50;function A2n(l,{open:s,close:u},h,g){let m=l.sliceDoc(h-KW,h),p=l.sliceDoc(g,g+KW),O=/\s*$/.exec(m)[0].length,j=/^\s*/.exec(p)[0].length,C=m.length-O;if(m.slice(C-s.length,C)==s&&p.slice(j,j+u.length)==u)return{open:{pos:h-O,margin:O&&1},close:{pos:g+j,margin:j&&1}};let N,_;g-h<=2*KW?N=_=l.sliceDoc(h,g):(N=l.sliceDoc(h,h+KW),_=l.sliceDoc(g-KW,g));let P=/^\s*/.exec(N)[0].length,I=/\s*$/.exec(_)[0].length,q=_.length-I-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-I-u.length,margin:/\s/.test(_.charAt(q-1))?1:0}}:null}function N2n(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 mSt(l,s,u=s.selection.ranges){let h=u.map(m=>RNe(s,m.from).block);if(!h.every(m=>m))return null;let g=u.map((m,p)=>A2n(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,O;p<g.length;p++)if(O=g[p]){let j=h[p],{open:C,close:N}=O;m.push({from:C.pos-j.open.length,to:C.pos+C.margin},{from:N.pos-N.margin,to:N.pos+j.close.length})}return{changes:m}}return null}function _2n(l,s,u=s.selection.ranges){let h=[],g=-1;e:for(let{from:m,to:p}of u){let O=h.length,j=1e9,C;for(let N=m;N<=p;){let _=s.doc.lineAt(N);if(C==null&&(C=RNe(s,_.from).line,!C))continue e;if(_.from>g&&(m==p||p>_.from)){g=_.from;let P=/^\s*/.exec(_.text)[0].length,I=P==_.length,q=_.text.slice(P,P+C.length)==C?P:-1;P<_.text.length&&P<j&&(j=P),h.push({line:_,comment:q,token:C,indent:P,empty:I,single:!1})}N=_.to+1}if(j<1e9)for(let N=O;N<h.length;N++)h[N].indent<h[N].line.text.length&&(h[N].indent=j);h.length==O+1&&(h[O].single=!0)}if(l!=2&&h.some(m=>m.comment<0&&(!m.empty||m.single))){let m=[];for(let{line:O,token:j,indent:C,empty:N,single:_}of h)(_||!N)&&m.push({from:O.from+C,insert:j+" "});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:O,token:j}of h)if(O>=0){let C=p.from+O,N=C+j.length;p.text[N-p.from]==" "&&N++,m.push({from:C,to:N})}return{changes:m}}return null}const bAe=TO.define(),D2n=TO.define(),L2n=Ui.define(),bSt=Ui.define({combine(l){return f5(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)})}}),wSt=Td.define({create(){return r5.empty},update(l,s){let u=s.state.facet(bSt),h=s.annotation(bAe);if(h){let j=Cp.fromTransaction(s,h.selection),C=h.side,N=C==0?l.undone:l.done;return j?N=ide(N,N.length,u.minDepth,j):N=ySt(N,s.startState.selection),new r5(C==0?h.rest:N,C==0?N:h.rest)}let g=s.annotation(D2n);if((g=="full"||g=="before")&&(l=l.isolate()),s.annotation(hh.addToHistory)===!1)return s.changes.empty?l:l.addMapping(s.changes.desc);let m=Cp.fromTransaction(s),p=s.annotation(hh.time),O=s.annotation(hh.userEvent);return m?l=l.addChanges(m,p,O,u,s):s.selection&&(l=l.addSelection(s.startState.selection,p,O,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 r5(l.done.map(Cp.fromJSON),l.undone.map(Cp.fromJSON))}});function P2n(l={}){return[wSt,bSt.of(l),Bi.domEventHandlers({beforeinput(s,u){let h=s.inputType=="historyUndo"?vSt:s.inputType=="historyRedo"?wAe:null;return h?(s.preventDefault(),h(u)):!1}})]}function zde(l,s){return function({state:u,dispatch:h}){if(!s&&u.readOnly)return!1;let g=u.field(wSt,!1);if(!g)return!1;let m=g.pop(l,u,s);return m?(h(m),!0):!1}}const vSt=zde(0,!1),wAe=zde(1,!1),I2n=zde(0,!0),R2n=zde(1,!0);class Cp{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 Cp(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 Cp(s.changes&&Qh.fromJSON(s.changes),[],s.mapped&&o5.fromJSON(s.mapped),s.startSelection&&jn.fromJSON(s.startSelection),s.selectionsAfter.map(jn.fromJSON))}static fromTransaction(s,u){let h=n2;for(let g of s.startState.facet(L2n)){let m=g(s);m.length&&(h=h.concat(m))}return!h.length&&s.changes.empty?null:new Cp(s.changes.invert(s.startState.doc),h,void 0,u||s.startState.selection,n2)}static selection(s){return new Cp(void 0,n2,void 0,void 0,s)}}function ide(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 $2n(l,s){let u=[],h=!1;return l.iterChangedRanges((g,m)=>u.push(g,m)),s.iterChangedRanges((g,m,p,O)=>{for(let j=0;j<u.length;){let C=u[j++],N=u[j++];O>=C&&p<=N&&(h=!0)}}),h}function B2n(l,s){return l.ranges.length==s.ranges.length&&l.ranges.filter((u,h)=>u.empty!=s.ranges[h].empty).length===0}function xSt(l,s){return l.length?s.length?l.concat(s):l:s}const n2=[],z2n=200;function ySt(l,s){if(l.length){let u=l[l.length-1],h=u.selectionsAfter.slice(Math.max(0,u.selectionsAfter.length-z2n));return h.length&&h[h.length-1].eq(s)?l:(h.push(s),ide(l,l.length-1,1e9,u.setSelAfter(h)))}else return[Cp.selection([s])]}function F2n(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 KEe(l,s){if(!l.length)return l;let u=l.length,h=n2;for(;u;){let g=q2n(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?[Cp.selection(h)]:n2}function q2n(l,s,u){let h=xSt(l.selectionsAfter.length?l.selectionsAfter.map(O=>O.map(s)):n2,u);if(!l.changes)return Cp.selection(h);let g=l.changes.map(s),m=s.mapDesc(l.changes,!0),p=l.mapped?l.mapped.composeDesc(m):m;return new Cp(g,Ds.mapEffects(l.effects,s),p,l.startSelection.map(m),h)}const H2n=/^(input\.type|delete)($|\.)/;class r5{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 r5(this.done,this.undone):this}addChanges(s,u,h,g,m){let p=this.done,O=p[p.length-1];return O&&O.changes&&!O.changes.empty&&s.changes&&(!h||H2n.test(h))&&(!O.selectionsAfter.length&&u-this.prevTime<g.newGroupDelay&&g.joinToEvent(m,$2n(O.changes,s.changes))||h=="input.type.compose")?p=ide(p,p.length-1,g.minDepth,new Cp(s.changes.compose(O.changes),xSt(Ds.mapEffects(s.effects,O.changes),O.effects),O.mapped,O.startSelection,n2)):p=ide(p,p.length,g.minDepth,s),new r5(p,n2,u,h)}addSelection(s,u,h,g){let m=this.done.length?this.done[this.done.length-1].selectionsAfter:n2;return m.length>0&&u-this.prevTime<g&&h==this.prevUserEvent&&h&&/^select($|\.)/.test(h)&&B2n(m[m.length-1],s)?this:new r5(ySt(this.done,s),this.undone,u,h)}addMapping(s){return new r5(KEe(this.done,s),KEe(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:bAe.of({side:s,rest:F2n(g),selection:p}),userEvent:s==0?"select.undo":"select.redo",scrollIntoView:!0});if(m.changes){let O=g.length==1?n2:g.slice(0,g.length-1);return m.mapped&&(O=KEe(O,m.mapped)),u.update({changes:m.changes,selection:m.startSelection,effects:m.effects,annotations:bAe.of({side:s,rest:O,selection:p}),filter:!1,userEvent:s==0?"undo":"redo",scrollIntoView:!0})}else return null}}r5.empty=new r5(n2,n2);const G2n=[{key:"Mod-z",run:vSt,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:wAe,preventDefault:!0},{linux:"Ctrl-Shift-z",run:wAe,preventDefault:!0},{key:"Mod-u",run:I2n,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:R2n,preventDefault:!0}];function pR(l,s){return jn.create(l.ranges.map(s),l.mainIndex)}function zx(l,s){return l.update({selection:s,scrollIntoView:!0,userEvent:"select"})}function Fx({state:l,dispatch:s},u){let h=pR(l.selection,u);return h.eq(l.selection,!0)?!1:(s(zx(l,h)),!0)}function Fde(l,s){return jn.cursor(s?l.to:l.from)}function kSt(l,s){return Fx(l,u=>u.empty?l.moveByChar(u,s):Fde(u,s))}function cg(l){return l.textDirectionAt(l.state.selection.main.head)==eu.LTR}const OSt=l=>kSt(l,!cg(l)),jSt=l=>kSt(l,cg(l));function SSt(l,s){return Fx(l,u=>u.empty?l.moveByGroup(u,s):Fde(u,s))}const Q2n=l=>SSt(l,!cg(l)),U2n=l=>SSt(l,cg(l));function J2n(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 qde(l,s,u){let h=Jh(l).resolveInner(s.head),g=u?Co.closedBy:Co.openedBy;for(let j=s.head;;){let C=u?h.childAfter(j):h.childBefore(j);if(!C)break;J2n(l,C,g)?h=C:j=u?C.to:C.from}let m=h.type.prop(g),p,O;return m&&(p=u?i5(l,h.from,1):i5(l,h.to,-1))&&p.matched?O=u?p.end.to:p.end.from:O=u?h.to:h.from,jn.cursor(O,u?-1:1)}const W2n=l=>Fx(l,s=>qde(l.state,s,!cg(l))),V2n=l=>Fx(l,s=>qde(l.state,s,cg(l)));function TSt(l,s){return Fx(l,u=>{if(!u.empty)return Fde(u,s);let h=l.moveVertically(u,s);return h.head!=u.head?h:l.moveToLineBoundary(u,s)})}const CSt=l=>TSt(l,!1),ESt=l=>TSt(l,!0);function MSt(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 ASt(l,s){let u=MSt(l),{state:h}=l,g=pR(h.selection,p=>p.empty?l.moveVertically(p,s,u.height):Fde(p,s));if(g.eq(h.selection))return!1;let m;if(u.selfScroll){let p=l.coordsAtPos(h.selection.main.head),O=l.scrollDOM.getBoundingClientRect(),j=O.top+u.marginTop,C=O.bottom-u.marginBottom;p&&p.top>j&&p.bottom<C&&(m=Bi.scrollIntoView(g.main.head,{y:"start",yMargin:p.top-j}))}return l.dispatch(zx(h,g),{effects:m}),!0}const e4t=l=>ASt(l,!1),vAe=l=>ASt(l,!0);function X9(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 X2n=l=>Fx(l,s=>X9(l,s,!0)),K2n=l=>Fx(l,s=>X9(l,s,!1)),Y2n=l=>Fx(l,s=>X9(l,s,!cg(l))),Z2n=l=>Fx(l,s=>X9(l,s,cg(l))),evn=l=>Fx(l,s=>jn.cursor(l.lineBlockAt(s.head).from,1)),tvn=l=>Fx(l,s=>jn.cursor(l.lineBlockAt(s.head).to,-1));function nvn(l,s,u){let h=!1,g=pR(l.selection,m=>{let p=i5(l,m.head,-1)||i5(l,m.head,1)||m.head>0&&i5(l,m.head-1,1)||m.head<l.doc.length&&i5(l,m.head+1,-1);if(!p||!p.end)return m;h=!0;let O=p.start.from==m.head?p.end.to:p.end.from;return jn.cursor(O)});return h?(s(zx(l,g)),!0):!1}const ivn=({state:l,dispatch:s})=>nvn(l,s);function o2(l,s){let u=pR(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(zx(l.state,u)),!0)}function NSt(l,s){return o2(l,u=>l.moveByChar(u,s))}const _St=l=>NSt(l,!cg(l)),DSt=l=>NSt(l,cg(l));function LSt(l,s){return o2(l,u=>l.moveByGroup(u,s))}const rvn=l=>LSt(l,!cg(l)),svn=l=>LSt(l,cg(l)),ovn=l=>o2(l,s=>qde(l.state,s,!cg(l))),cvn=l=>o2(l,s=>qde(l.state,s,cg(l)));function PSt(l,s){return o2(l,u=>l.moveVertically(u,s))}const ISt=l=>PSt(l,!1),RSt=l=>PSt(l,!0);function $St(l,s){return o2(l,u=>l.moveVertically(u,s,MSt(l).height))}const t4t=l=>$St(l,!1),n4t=l=>$St(l,!0),lvn=l=>o2(l,s=>X9(l,s,!0)),uvn=l=>o2(l,s=>X9(l,s,!1)),avn=l=>o2(l,s=>X9(l,s,!cg(l))),fvn=l=>o2(l,s=>X9(l,s,cg(l))),hvn=l=>o2(l,s=>jn.cursor(l.lineBlockAt(s.head).from)),dvn=l=>o2(l,s=>jn.cursor(l.lineBlockAt(s.head).to)),i4t=({state:l,dispatch:s})=>(s(zx(l,{anchor:0})),!0),r4t=({state:l,dispatch:s})=>(s(zx(l,{anchor:l.doc.length})),!0),s4t=({state:l,dispatch:s})=>(s(zx(l,{anchor:l.selection.main.anchor,head:0})),!0),o4t=({state:l,dispatch:s})=>(s(zx(l,{anchor:l.selection.main.anchor,head:l.doc.length})),!0),gvn=({state:l,dispatch:s})=>(s(l.update({selection:{anchor:0,head:l.doc.length},userEvent:"select"})),!0),pvn=({state:l,dispatch:s})=>{let u=Hde(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},mvn=({state:l,dispatch:s})=>{let u=pR(l.selection,h=>{let g=Jh(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:O}=p;if((O.from<h.from&&O.to>=h.to||O.to>h.to&&O.from<=h.from)&&p.next)return jn.range(O.to,O.from)}return h});return u.eq(l.selection)?!1:(s(zx(l,u)),!0)};function BSt(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 O=m;;){let j=l.moveVertically(O,s);if(j.head<p.from||j.head>p.to){g.some(C=>C.head==j.head)||g.push(j);break}else{if(j.head==O.head)break;O=j}}}return g.length==h.ranges.length?!1:(l.dispatch(zx(u,jn.create(g,g.length-1))),!0)}const bvn=l=>BSt(l,!1),wvn=l=>BSt(l,!0),vvn=({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(zx(l,h)),!0):!1};function fX(l,s){if(l.state.readOnly)return!1;let u="delete.selection",{state:h}=l,g=h.changeByRange(m=>{let{from:p,to:O}=m;if(p==O){let j=s(m);j<p?(u="delete.backward",j=Gfe(l,j,!1)):j>p&&(u="delete.forward",j=Gfe(l,j,!0)),p=Math.min(p,j),O=Math.max(O,j)}else p=Gfe(l,p,!1),O=Gfe(l,O,!0);return p==O?{range:m}:{changes:{from:p,to:O},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 Gfe(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 zSt=(l,s,u)=>fX(l,h=>{let g=h.from,{state:m}=l,p=m.doc.lineAt(g),O,j;if(u&&!s&&g>p.from&&g<p.from+200&&!/[^ \t]/.test(O=p.text.slice(0,g-p.from))){if(O[O.length-1]=="	")return g-1;let C=iX(O,m.tabSize),N=C%Yhe(m)||Yhe(m);for(let _=0;_<N&&O[O.length-1-_]==" ";_++)g--;j=g}else j=jd(p.text,g-p.from,s,s)+p.from,j==g&&p.number!=(s?m.doc.lines:1)?j+=s?1:-1:!s&&/[\ufe00-\ufe0f]/.test(p.text.slice(j-p.from,g-p.from))&&(j=jd(p.text,j-p.from,!1,!1)+p.from);return j}),xAe=l=>zSt(l,!1,!0),FSt=l=>zSt(l,!0,!1),qSt=(l,s)=>fX(l,u=>{let h=u.head,{state:g}=l,m=g.doc.lineAt(h),p=g.charCategorizer(h);for(let O=null;;){if(h==(s?m.to:m.from)){h==u.head&&m.number!=(s?g.doc.lines:1)&&(h+=s?1:-1);break}let j=jd(m.text,h-m.from,s)+m.from,C=m.text.slice(Math.min(h,j)-m.from,Math.max(h,j)-m.from),N=p(C);if(O!=null&&N!=O)break;(C!=" "||h!=u.head)&&(O=N),h=j}return h}),HSt=l=>qSt(l,!1),xvn=l=>qSt(l,!0),yvn=l=>fX(l,s=>{let u=l.lineBlockAt(s.head).to;return s.head<u?u:Math.min(l.state.doc.length,s.head+1)}),kvn=l=>fX(l,s=>{let u=l.moveToLineBoundary(s,!1).head;return s.head>u?u:Math.max(0,s.head-1)}),Ovn=l=>fX(l,s=>{let u=l.moveToLineBoundary(s,!0).head;return s.head<u?u:Math.min(l.state.doc.length,s.head+1)}),jvn=({state:l,dispatch:s})=>{if(l.readOnly)return!1;let u=l.changeByRange(h=>({changes:{from:h.from,to:h.to,insert:gc.of(["",""])},range:jn.cursor(h.from)}));return s(l.update(u,{scrollIntoView:!0,userEvent:"input"})),!0},Svn=({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:jd(m.text,g-m.from,!1)+m.from,O=g==m.to?g+1:jd(m.text,g-m.from,!0)+m.from;return{changes:{from:p,to:O,insert:l.doc.slice(g,O).append(l.doc.slice(p,g))},range:jn.cursor(O)}});return u.changes.empty?!1:(s(l.update(u,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function Hde(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 GSt(l,s,u){if(l.readOnly)return!1;let h=[],g=[];for(let m of Hde(l)){if(u?m.to==l.doc.length:m.from==0)continue;let p=l.doc.lineAt(u?m.to+1:m.from-1),O=p.length+1;if(u){h.push({from:m.to,to:p.to},{from:m.from,insert:p.text+l.lineBreak});for(let j of m.ranges)g.push(jn.range(Math.min(l.doc.length,j.anchor+O),Math.min(l.doc.length,j.head+O)))}else{h.push({from:p.from,to:m.from},{from:m.to,insert:l.lineBreak+p.text});for(let j of m.ranges)g.push(jn.range(j.anchor-O,j.head-O))}}return h.length?(s(l.update({changes:h,scrollIntoView:!0,selection:jn.create(g,l.selection.mainIndex),userEvent:"move.line"})),!0):!1}const Tvn=({state:l,dispatch:s})=>GSt(l,s,!1),Cvn=({state:l,dispatch:s})=>GSt(l,s,!0);function QSt(l,s,u){if(l.readOnly)return!1;let h=[];for(let m of Hde(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 Evn=({state:l,dispatch:s})=>QSt(l,s,!1),Mvn=({state:l,dispatch:s})=>QSt(l,s,!0),Avn=l=>{if(l.state.readOnly)return!1;let{state:s}=l,u=s.changes(Hde(s).map(({from:g,to:m})=>(g>0?g--:m<s.doc.length&&m++,{from:g,to:m}))),h=pR(s.selection,g=>{let m;if(l.lineWrapping){let p=l.lineBlockAt(g.head),O=l.coordsAtPos(g.head,g.assoc||1);O&&(m=p.bottom+l.documentTop-O.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 Nvn(l,s){if(/\(\)|\[\]|\{\}/.test(l.sliceDoc(s-1,s+1)))return{from:s,to:s};let u=Jh(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 c4t=USt(!1),_vn=USt(!0);function USt(l){return({state:s,dispatch:u})=>{if(s.readOnly)return!1;let h=s.changeByRange(g=>{let{from:m,to:p}=g,O=s.doc.lineAt(m),j=!l&&m==p&&Nvn(s,m);l&&(m=p=(p<=O.to?O:s.doc.lineAt(p)).to);let C=new Ide(s,{simulateBreak:m,simulateDoubleBreak:!!j}),N=TNe(C,m);for(N==null&&(N=iX(/^\s*/.exec(s.doc.lineAt(m).text)[0],s.tabSize));p<O.to&&/\s/.test(O.text[p-O.from]);)p++;j?{from:m,to:p}=j:m>O.from&&m<O.from+100&&!/\S/.test(O.text.slice(0,m))&&(m=O.from);let _=["",qV(s,N)];return j&&_.push(qV(s,C.lineIndent(O.from,-1))),{changes:{from:m,to:p,insert:gc.of(_)},range:jn.cursor(m+1+_[1].length)}});return u(s.update(h,{scrollIntoView:!0,userEvent:"input"})),!0}}function $Ne(l,s){let u=-1;return l.changeByRange(h=>{let g=[];for(let p=h.from;p<=h.to;){let O=l.doc.lineAt(p);O.number>u&&(h.empty||h.to>O.from)&&(s(O,g,h),u=O.number),p=O.to+1}let m=l.changes(g);return{changes:g,range:jn.range(m.mapPos(h.anchor,1),m.mapPos(h.head,1))}})}const Dvn=({state:l,dispatch:s})=>{if(l.readOnly)return!1;let u=Object.create(null),h=new Ide(l,{overrideIndentation:m=>{let p=u[m];return p??-1}}),g=$Ne(l,(m,p,O)=>{let j=TNe(h,m.from);if(j==null)return;/\S/.test(m.text)||(j=0);let C=/^\s*/.exec(m.text)[0],N=qV(l,j);(C!=N||O.from<m.from+C.length)&&(u[m.from]=j,p.push({from:m.from,to:m.from+C.length,insert:N}))});return g.changes.empty||s(l.update(g,{userEvent:"indent"})),!0},JSt=({state:l,dispatch:s})=>l.readOnly?!1:(s(l.update($Ne(l,(u,h)=>{h.push({from:u.from,insert:l.facet(lX)})}),{userEvent:"input.indent"})),!0),WSt=({state:l,dispatch:s})=>l.readOnly?!1:(s(l.update($Ne(l,(u,h)=>{let g=/^\s*/.exec(u.text)[0];if(!g)return;let m=iX(g,l.tabSize),p=0,O=qV(l,Math.max(0,m-Yhe(l)));for(;p<g.length&&p<O.length&&g.charCodeAt(p)==O.charCodeAt(p);)p++;h.push({from:u.from+p,to:u.from+g.length,insert:O.slice(p)})}),{userEvent:"delete.dedent"})),!0),Lvn=l=>(l.setTabFocusMode(),!0),Pvn=[{key:"Ctrl-b",run:OSt,shift:_St,preventDefault:!0},{key:"Ctrl-f",run:jSt,shift:DSt},{key:"Ctrl-p",run:CSt,shift:ISt},{key:"Ctrl-n",run:ESt,shift:RSt},{key:"Ctrl-a",run:evn,shift:hvn},{key:"Ctrl-e",run:tvn,shift:dvn},{key:"Ctrl-d",run:FSt},{key:"Ctrl-h",run:xAe},{key:"Ctrl-k",run:yvn},{key:"Ctrl-Alt-h",run:HSt},{key:"Ctrl-o",run:jvn},{key:"Ctrl-t",run:Svn},{key:"Ctrl-v",run:vAe}],Ivn=[{key:"ArrowLeft",run:OSt,shift:_St,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Q2n,shift:rvn,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:Y2n,shift:avn,preventDefault:!0},{key:"ArrowRight",run:jSt,shift:DSt,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:U2n,shift:svn,preventDefault:!0},{mac:"Cmd-ArrowRight",run:Z2n,shift:fvn,preventDefault:!0},{key:"ArrowUp",run:CSt,shift:ISt,preventDefault:!0},{mac:"Cmd-ArrowUp",run:i4t,shift:s4t},{mac:"Ctrl-ArrowUp",run:e4t,shift:t4t},{key:"ArrowDown",run:ESt,shift:RSt,preventDefault:!0},{mac:"Cmd-ArrowDown",run:r4t,shift:o4t},{mac:"Ctrl-ArrowDown",run:vAe,shift:n4t},{key:"PageUp",run:e4t,shift:t4t},{key:"PageDown",run:vAe,shift:n4t},{key:"Home",run:K2n,shift:uvn,preventDefault:!0},{key:"Mod-Home",run:i4t,shift:s4t},{key:"End",run:X2n,shift:lvn,preventDefault:!0},{key:"Mod-End",run:r4t,shift:o4t},{key:"Enter",run:c4t,shift:c4t},{key:"Mod-a",run:gvn},{key:"Backspace",run:xAe,shift:xAe,preventDefault:!0},{key:"Delete",run:FSt,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:HSt,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:xvn,preventDefault:!0},{mac:"Mod-Backspace",run:kvn,preventDefault:!0},{mac:"Mod-Delete",run:Ovn,preventDefault:!0}].concat(Pvn.map(l=>({mac:l.key,run:l.run,shift:l.shift}))),Rvn=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:W2n,shift:ovn},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:V2n,shift:cvn},{key:"Alt-ArrowUp",run:Tvn},{key:"Shift-Alt-ArrowUp",run:Evn},{key:"Alt-ArrowDown",run:Cvn},{key:"Shift-Alt-ArrowDown",run:Mvn},{key:"Mod-Alt-ArrowUp",run:bvn},{key:"Mod-Alt-ArrowDown",run:wvn},{key:"Escape",run:vvn},{key:"Mod-Enter",run:_vn},{key:"Alt-l",mac:"Ctrl-l",run:pvn},{key:"Mod-i",run:mvn,preventDefault:!0},{key:"Mod-[",run:WSt},{key:"Mod-]",run:JSt},{key:"Mod-Alt-\\",run:Dvn},{key:"Shift-Mod-k",run:Avn},{key:"Shift-Mod-\\",run:ivn},{key:"Mod-/",run:T2n},{key:"Alt-A",run:E2n},{key:"Ctrl-m",mac:"Shift-Alt-m",run:Lvn}].concat(Ivn),$vn={key:"Tab",run:JSt,shift:WSt},l4t=typeof String.prototype.normalize=="function"?l=>l.normalize("NFKD"):l=>l;class fR{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?O=>m(l4t(O)):l4t,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 ib(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=iNe(s),h=this.bufferStart+this.bufferPos;this.bufferPos+=Z3(s);let g=this.normalize(u);if(g.length)for(let m=0,p=h;;m++){let O=g.charCodeAt(m),j=this.match(O,p,this.bufferPos+this.bufferStart);if(m==g.length-1){if(j)return this.value=j,this;break}p==h&&m<u.length&&u.charCodeAt(m)==O&&p++}}}match(s,u,h){let g=null;for(let m=0;m<this.matches.length;m+=2){let p=this.matches[m],O=!1;this.query.charCodeAt(p)==s&&(p==this.query.length-1?g={from:this.matches[m+1],to:h}:(this.matches[m]++,O=!0)),O||(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"&&(fR.prototype[Symbol.iterator]=function(){return this});const VSt={from:-1,to:-1,match:/.*/.exec("")},BNe="gm"+(/x/.unicode==null?"":"u");class XSt{constructor(s,u,h,g=0,m=s.length){if(this.text=s,this.to=m,this.curLine="",this.done=!1,this.value=VSt,/\\[sWDnr]|\n|\r|\[\^/.test(u))return new KSt(s,u,h,g,m);this.re=new RegExp(u,BNe+(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=rde(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=rde(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 YEe=new WeakMap;class XI{constructor(s,u){this.from=s,this.text=u}get to(){return this.from+this.text.length}static get(s,u,h){let g=YEe.get(s);if(!g||g.from>=h||g.to<=u){let O=new XI(u,s.sliceString(u,h));return YEe.set(s,O),O}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)),YEe.set(s,new XI(p,m)),new XI(u,m.slice(u-p,h-p))}}class KSt{constructor(s,u,h,g,m){this.text=s,this.to=m,this.done=!1,this.value=VSt,this.matchPos=rde(s,g),this.re=new RegExp(u,BNe+(h!=null&&h.ignoreCase?"i":"")),this.test=h==null?void 0:h.test,this.flat=XI.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=rde(this.text,g+(h==g?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=XI.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(XSt.prototype[Symbol.iterator]=KSt.prototype[Symbol.iterator]=function(){return this});function Bvn(l){try{return new RegExp(l,BNe),!0}catch{return!1}}function rde(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 zvn=l=>{let{state:s}=l,u=String(s.doc.lineAt(l.state.selection.main.head).number),{close:h,result:g}=Rpn(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 O=s.doc.lineAt(s.selection.main.head),[,j,C,N,_]=p,P=N?+N.slice(1):0,I=C?+C:O.number;if(C&&_){let X=I/100;j&&(X=X*(j=="-"?-1:1)+O.number/s.doc.lines),I=Math.round(s.doc.lines*X)}else C&&j&&(I=I*(j=="-"?-1:1)+O.number);let q=s.doc.line(Math.max(1,Math.min(s.doc.lines,I))),z=jn.cursor(q.from+Math.max(0,Math.min(P,q.length)));l.dispatch({effects:[h,Bi.scrollIntoView(z.from,{y:"center"})],selection:z})}),!0},Fvn={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},qvn=Ui.define({combine(l){return f5(l,Fvn,{highlightWordAroundCursor:(s,u)=>s||u,minSelectionLength:Math.min,maxMatches:Math.min})}});function Hvn(l){return[Wvn,Jvn]}const Gvn=Fr.mark({class:"cm-selectionMatch"}),Qvn=Fr.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function u4t(l,s,u,h){return(u==0||l(s.sliceDoc(u-1,u))!=ia.Word)&&(h==s.doc.length||l(s.sliceDoc(h,h+1))!=ia.Word)}function Uvn(l,s,u,h){return l(s.sliceDoc(u,u+1))==ia.Word&&l(s.sliceDoc(h-1,h))==ia.Word}const Jvn=Uh.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(qvn),{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 j=u.wordAt(g.head);if(!j)return Fr.none;p=u.charCategorizer(g.head),m=u.sliceDoc(j.from,j.to)}else{let j=g.to-g.from;if(j<s.minSelectionLength||j>200)return Fr.none;if(s.wholeWords){if(m=u.sliceDoc(g.from,g.to),p=u.charCategorizer(g.head),!(u4t(p,u,g.from,g.to)&&Uvn(p,u,g.from,g.to)))return Fr.none}else if(m=u.sliceDoc(g.from,g.to),!m)return Fr.none}let O=[];for(let j of l.visibleRanges){let C=new fR(u.doc,m,j.from,j.to);for(;!C.next().done;){let{from:N,to:_}=C.value;if((!p||u4t(p,u,N,_))&&(g.empty&&N<=g.from&&_>=g.to?O.push(Qvn.range(N,_)):(N>=g.to||_<=g.from)&&O.push(Gvn.range(N,_)),O.length>s.maxMatches))return Fr.none}}return Fr.set(O)}},{decorations:l=>l.decorations}),Wvn=Bi.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),Vvn=({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 Xvn(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,O=new fR(l.doc,s,h[h.length-1].to);;)if(O.next(),O.done){if(p)return null;O=new fR(l.doc,s,0,Math.max(0,h[h.length-1].from-1)),p=!0}else{if(p&&h.some(j=>j.from==O.value.from))continue;if(m){let j=l.wordAt(O.value.from);if(!j||j.from!=O.value.from||j.to!=O.value.to)continue}return O.value}}const Kvn=({state:l,dispatch:s})=>{let{ranges:u}=l.selection;if(u.some(m=>m.from===m.to))return Vvn({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=Xvn(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},mR=Ui.define({combine(l){return f5(l,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:s=>new fxn(s),scrollToMatch:s=>Bi.scrollIntoView(s)})}});class YSt{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||Bvn(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 ixn(this):new exn(this)}getCursor(s,u=0,h){let g=s.doc?s:Fc.create({doc:s});return h==null&&(h=g.doc.length),this.regexp?NI(this,g,u,h):AI(this,g,u,h)}}class ZSt{constructor(s){this.spec=s}}function Yvn(l,s,u){return(h,g,m,p)=>{if(u&&!u(h,g,m,p))return!1;let O=h>=p&&g<=p+m.length?m.slice(h-p,g-p):s.doc.sliceString(h,g);return l(O,s,h,g)}}function AI(l,s,u,h){let g;return l.wholeWord&&(g=Zvn(s.doc,s.charCategorizer(s.selection.main.head))),l.test&&(g=Yvn(l.test,s,g)),new fR(s.doc,l.unquoted,u,h,l.caseSensitive?void 0:m=>m.toLowerCase(),g)}function Zvn(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(sde(g,u-m))!=ia.Word||s(ode(g,u-m))!=ia.Word)&&(s(ode(g,h-m))!=ia.Word||s(sde(g,h-m))!=ia.Word))}class exn extends ZSt{constructor(s){super(s)}nextMatch(s,u,h){let g=AI(this.spec,s,h,s.doc.length).nextOverlapping();if(g.done){let m=Math.min(s.doc.length,u+this.spec.unquoted.length);g=AI(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=AI(this.spec,s,m,g),O=null;for(;!p.nextOverlapping().done;)O=p.value;if(O)return O;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=AI(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=AI(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 txn(l,s,u){return(h,g,m)=>(!u||u(h,g,m))&&l(m[0],s,h,g)}function NI(l,s,u,h){let g;return l.wholeWord&&(g=nxn(s.charCategorizer(s.selection.main.head))),l.test&&(g=txn(l.test,s,g)),new XSt(s.doc,l.search,{ignoreCase:!l.caseSensitive,test:g},u,h)}function sde(l,s){return l.slice(jd(l,s,!1),s)}function ode(l,s){return l.slice(s,jd(l,s))}function nxn(l){return(s,u,h)=>!h[0].length||(l(sde(h.input,h.index))!=ia.Word||l(ode(h.input,h.index))!=ia.Word)&&(l(ode(h.input,h.index+h[0].length))!=ia.Word||l(sde(h.input,h.index+h[0].length))!=ia.Word)}class ixn extends ZSt{nextMatch(s,u,h){let g=NI(this.spec,s,h,s.doc.length).next();return g.done&&(g=NI(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=NI(this.spec,s,m,h),O=null;for(;!p.next().done;)O=p.value;if(O&&(m==u||O.from>m+10))return O;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=NI(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=NI(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 UV=Ds.define(),zNe=Ds.define(),B9=Td.define({create(l){return new ZEe(yAe(l).create(),null)},update(l,s){for(let u of s.effects)u.is(UV)?l=new ZEe(u.value.create(),l.panel):u.is(zNe)&&(l=new ZEe(l.query,u.value?FNe:null));return l},provide:l=>$V.from(l,s=>s.panel)});class ZEe{constructor(s,u){this.query=s,this.panel=u}}const rxn=Fr.mark({class:"cm-searchMatch"}),sxn=Fr.mark({class:"cm-searchMatch cm-searchMatch-selected"}),oxn=Uh.fromClass(class{constructor(l){this.view=l,this.decorations=this.highlight(l.state.field(B9))}update(l){let s=l.state.field(B9);(s!=l.startState.field(B9)||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 H9;for(let g=0,m=u.visibleRanges,p=m.length;g<p;g++){let{from:O,to:j}=m[g];for(;g<p-1&&j>m[g+1].from-500;)j=m[++g].to;l.highlight(u.state,O,j,(C,N)=>{let _=u.state.selection.ranges.some(P=>P.from==C&&P.to==N);h.add(C,N,_?sxn:rxn)})}return h.finish()}},{decorations:l=>l.decorations});function hX(l){return s=>{let u=s.state.field(B9,!1);return u&&u.query.spec.valid?l(s,u):n9t(s)}}const cde=hX((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(mR);return l.dispatch({selection:g,effects:[qNe(l,h),m.scrollToMatch(g.main,l)],userEvent:"select.search"}),t9t(l),!0}),lde=hX((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(mR);return l.dispatch({selection:m,effects:[qNe(l,g),p.scrollToMatch(m.main,l)],userEvent:"select.search"}),t9t(l),!0}),cxn=hX((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)}),lxn=({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 O=new fR(l.doc,l.sliceDoc(h,g));!O.next().done;){if(m.length>1e3)return!1;O.value.from==h&&(p=m.length),m.push(jn.range(O.value.from,O.value.to))}return s(l.update({selection:jn.create(m,p),userEvent:"select.search.matches"})),!0},a4t=hX((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,O=[],j,C,N=[];p.from==h&&p.to==g&&(C=u.toText(s.getReplacement(p)),O.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(O);return p&&(j=jn.single(p.from,p.to).map(_),N.push(qNe(l,p)),N.push(u.facet(mR).scrollToMatch(j.main,l))),l.dispatch({changes:_,selection:j,effects:N,userEvent:"input.replace"}),!0}),uxn=hX((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 FNe(l){return l.state.facet(mR).createPanel(l)}function yAe(l,s){var u,h,g,m,p;let O=l.selection.main,j=O.empty||O.to>O.from+100?"":l.sliceDoc(O.from,O.to);if(s&&!j)return s;let C=l.facet(mR);return new YSt({search:((u=s==null?void 0:s.literal)!==null&&u!==void 0?u:C.literal)?j:j.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 e9t(l){let s=vjt(l,FNe);return s&&s.dom.querySelector("[main-field]")}function t9t(l){let s=e9t(l);s&&s==l.root.activeElement&&s.select()}const n9t=l=>{let s=l.state.field(B9,!1);if(s&&s.panel){let u=e9t(l);if(u&&u!=l.root.activeElement){let h=yAe(l.state,s.query.spec);h.valid&&l.dispatch({effects:UV.of(h)}),u.focus(),u.select()}}else l.dispatch({effects:[zNe.of(!0),s?UV.of(yAe(l.state,s.query.spec)):Ds.appendConfig.of(dxn)]});return!0},i9t=l=>{let s=l.state.field(B9,!1);if(!s||!s.panel)return!1;let u=vjt(l,FNe);return u&&u.dom.contains(l.root.activeElement)&&l.focus(),l.dispatch({effects:zNe.of(!1)}),!0},axn=[{key:"Mod-f",run:n9t,scope:"editor search-panel"},{key:"F3",run:cde,shift:lde,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:cde,shift:lde,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:i9t,scope:"editor search-panel"},{key:"Mod-Shift-l",run:lxn},{key:"Mod-Alt-g",run:zvn},{key:"Mod-d",run:Kvn,preventDefault:!0}];class fxn{constructor(s){this.view=s;let u=this.query=s.state.field(B9).query.spec;this.commit=this.commit.bind(this),this.searchField=zl("input",{value:u.search,placeholder:tb(s,"Find"),"aria-label":tb(s,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=zl("input",{value:u.replace,placeholder:tb(s,"Replace"),"aria-label":tb(s,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=zl("input",{type:"checkbox",name:"case",form:"",checked:u.caseSensitive,onchange:this.commit}),this.reField=zl("input",{type:"checkbox",name:"re",form:"",checked:u.regexp,onchange:this.commit}),this.wordField=zl("input",{type:"checkbox",name:"word",form:"",checked:u.wholeWord,onchange:this.commit});function h(g,m,p){return zl("button",{class:"cm-button",name:g,onclick:m,type:"button"},p)}this.dom=zl("div",{onkeydown:g=>this.keydown(g),class:"cm-search"},[this.searchField,h("next",()=>cde(s),[tb(s,"next")]),h("prev",()=>lde(s),[tb(s,"previous")]),h("select",()=>cxn(s),[tb(s,"all")]),zl("label",null,[this.caseField,tb(s,"match case")]),zl("label",null,[this.reField,tb(s,"regexp")]),zl("label",null,[this.wordField,tb(s,"by word")]),...s.state.readOnly?[]:[zl("br"),this.replaceField,h("replace",()=>a4t(s),[tb(s,"replace")]),h("replaceAll",()=>uxn(s),[tb(s,"replace all")])],zl("button",{name:"close",onclick:()=>i9t(s),"aria-label":tb(s,"close"),type:"button"},["×"])])}commit(){let s=new YSt({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:UV.of(s)}))}keydown(s){apn(this.view,s,"search-panel")?s.preventDefault():s.keyCode==13&&s.target==this.searchField?(s.preventDefault(),(s.shiftKey?lde:cde)(this.view)):s.keyCode==13&&s.target==this.replaceField&&(s.preventDefault(),a4t(this.view))}update(s){for(let u of s.transactions)for(let h of u.effects)h.is(UV)&&!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(mR).top}}function tb(l,s){return l.state.phrase(s)}const Qfe=30,Ufe=/[\s\.,:;?!]/;function qNe(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-Qfe),p=Math.min(g,u+Qfe),O=l.state.sliceDoc(m,p);if(m!=h.from){for(let j=0;j<Qfe;j++)if(!Ufe.test(O[j+1])&&Ufe.test(O[j])){O=O.slice(j);break}}if(p!=g){for(let j=O.length-1;j>O.length-Qfe;j--)if(!Ufe.test(O[j-1])&&Ufe.test(O[j])){O=O.slice(0,j);break}}return Bi.announce.of(`${l.state.phrase("current match")}. ${O} ${l.state.phrase("on line")} ${h.number}.`)}const hxn=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"}}),dxn=[B9,V9.low(oxn),hxn];class f4t{constructor(s,u,h){this.from=s,this.to=u,this.diagnostic=h}}class jM{constructor(s,u,h){this.diagnostics=s,this.panel=u,this.selected=h}static init(s,u,h){let g=h.facet(JV).markerFilter;g&&(s=g(s,h));let m=s.slice().sort((I,q)=>I.from-q.from||I.to-q.to),p=new H9,O=[],j=0,C=h.doc.iter(),N=0,_=h.doc.length;for(let I=0;;){let q=I==m.length?null:m[I];if(!q&&!O.length)break;let z,X;if(O.length)z=j,X=O.reduce((V,ne)=>Math.min(V,ne.to),q&&q.from>z?q.from:1e8);else{if(z=q.from,z>_)break;X=q.to,O.push(q),I++}for(;I<m.length;){let V=m[I];if(V.from==z&&(V.to>V.from||V.to==z))O.push(V),I++,X=Math.min(V.to,X);else{X=Math.min(V.from,X);break}}X=Math.min(X,_);let Q=!1;if(O.some(V=>V.from==z&&(V.to==X||X==_))&&(Q=z==X,!Q&&X-z<10)){let V=z-(N+C.value.length);V>0&&(C.next(V),N=z);for(let ne=z;;){if(ne>=X){Q=!0;break}if(!C.lineBreak&&N+C.value.length>ne)break;ne=N+C.value.length,N+=C.value.length,C.next()}}let te=a9t(O);if(Q)p.add(z,z,Fr.widget({widget:new bxn(te),diagnostics:O.slice()}));else{let V=O.reduce((ne,ce)=>ce.markClass?ne+" "+ce.markClass:ne,"");p.add(z,X,Fr.mark({class:"cm-lintRange cm-lintRange-"+te+V,diagnostics:O.slice(),inclusiveEnd:O.some(ne=>ne.to>X)}))}if(j=X,j==_)break;for(let V=0;V<O.length;V++)O[V].to<=j&&O.splice(V--,1)}let P=p.finish();return new jM(P,u,hR(P))}}function hR(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 f4t(g,m,s||p.diagnostics[0]);else{if(p.diagnostics.indexOf(h.diagnostic)<0)return!1;h=new f4t(h.from,m,h.diagnostic)}}),h}function r9t(l,s){let u=s.pos,h=s.end||u,g=l.state.facet(JV).hideOn(l,u,h);if(g!=null)return g;let m=l.startState.doc.lineAt(s.pos);return!!(l.effects.some(p=>p.is(Gde))||l.changes.touchesRange(m.from,Math.max(m.to,h)))}function gxn(l,s){return l.field(Px,!1)?s:s.concat(Ds.appendConfig.of(Sxn))}function eMe(l,s){return{effects:gxn(l,[Gde.of(s)])}}const Gde=Ds.define(),s9t=Ds.define(),o9t=Ds.define(),Px=Td.define({create(){return new jM(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=hR(u,l.selected.diagnostic,m)||hR(u,null,m)}!u.size&&g&&s.state.facet(JV).autoPanel&&(g=null),l=new jM(u,g,h)}for(let u of s.effects)if(u.is(Gde)){let h=s.state.facet(JV).autoPanel?u.value.length?ude.open:null:l.panel;l=jM.init(u.value,h,s.state)}else u.is(s9t)?l=new jM(l.diagnostics,u.value?ude.open:null,l.selected):u.is(o9t)&&(l=new jM(l.diagnostics,l.panel,u.value));return l},provide:l=>[$V.from(l,s=>s.panel),Bi.decorations.from(l,s=>s.diagnostics)]}),pxn=Fr.mark({class:"cm-lintRange cm-lintRange-active"});function mxn(l,s,u){let{diagnostics:h}=l.state.field(Px),g,m=-1,p=-1;h.between(s-(u<0?1:0),s+(u>0?1:0),(j,C,{spec:N})=>{if(s>=j&&s<=C&&(j==C||(s>j||u>0)&&(s<C||u<0)))return g=N.diagnostics,m=j,p=C,!1});let O=l.state.facet(JV).tooltipFilter;return g&&O&&(g=O(g,l.state)),g?{pos:m,end:p,above:l.state.doc.lineAt(m).to<p,create(){return{dom:c9t(l,g)}}}:null}function c9t(l,s){return zl("ul",{class:"cm-tooltip-lint"},s.map(u=>u9t(l,u,!1)))}const h4t=l=>{let s=l.state.field(Px,!1);return!s||!s.panel?!1:(l.dispatch({effects:s9t.of(!1)}),!0)},JV=Ui.define({combine(l){return{sources:l.map(s=>s.source).filter(s=>s!=null),...f5(l.map(s=>s.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:d4t,tooltipFilter:d4t,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 d4t(l,s){return l?s?(u,h)=>s(l(u,h),h):l:s}function l9t(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 u9t(l,s,u){var h;let g=u?l9t(s.actions):[];return zl("li",{class:"cm-diagnostic cm-diagnostic-"+s.severity},zl("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 O=!1,j=I=>{if(I.preventDefault(),O)return;O=!0;let q=hR(l.state.field(Px).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),zl("u",C.slice(N,N+1)),C.slice(N+1)],P=m.markClass?" "+m.markClass:"";return zl("button",{type:"button",class:"cm-diagnosticAction"+P,onclick:j,onmousedown:j,"aria-label":` Action: ${C}${N<0?"":` (access key "${g[p]})"`}.`},_)}),s.source&&zl("div",{class:"cm-diagnosticSource"},s.source))}class bxn extends CO{constructor(s){super(),this.sev=s}eq(s){return s.sev==this.sev}toDOM(){return zl("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class g4t{constructor(s,u){this.diagnostic=u,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=u9t(s,u,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class ude{constructor(s){this.view=s,this.items=[];let u=g=>{if(!(g.ctrlKey||g.altKey||g.metaKey)){if(g.keyCode==27)h4t(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=l9t(m.actions);for(let O=0;O<p.length;O++)if(p[O].toUpperCase().charCodeAt(0)==g.keyCode){let j=hR(this.view.state.field(Px).diagnostics,m);j&&m.actions[O].apply(s,j.from,j.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=zl("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:u,onclick:h}),this.dom=zl("div",{class:"cm-panel-lint"},this.list,zl("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>h4t(this.view)},"×")),this.update()}get selectedIndex(){let s=this.view.state.field(Px).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(Px),h=0,g=!1,m=null,p=new Set;for(s.between(0,this.view.state.doc.length,(O,j,{spec:C})=>{for(let N of C.diagnostics){if(p.has(N))continue;p.add(N);let _=-1,P;for(let I=h;I<this.items.length;I++)if(this.items[I].diagnostic==N){_=I;break}_<0?(P=new g4t(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 g4t(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:O,panel:j})=>{let C=j.height/this.list.offsetHeight;O.top<j.top?this.list.scrollTop-=(j.top-O.top)/C:O.bottom>j.bottom&&(this.list.scrollTop+=(O.bottom-j.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(Px),h=hR(u.diagnostics,this.items[s].diagnostic);h&&this.view.dispatch({selection:{anchor:h.from,head:h.to},scrollIntoView:!0,effects:o9t.of(h)})}static open(s){return new ude(s)}}function whe(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 Jfe(l){return whe(`<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 wxn=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:Jfe("#d11")},".cm-lintRange-warning":{backgroundImage:Jfe("orange")},".cm-lintRange-info":{backgroundImage:Jfe("#999")},".cm-lintRange-hint":{backgroundImage:Jfe("#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 vxn(l){return l=="error"?4:l=="warning"?3:l=="info"?2:1}function a9t(l){let s="hint",u=1;for(let h of l){let g=vxn(h.severity);g>u&&(u=g,s=h.severity)}return s}class f9t extends u5{constructor(s){super(),this.diagnostics=s,this.severity=a9t(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(Qde).tooltipFilter;return g&&(h=g(h,s.state)),h.length&&(u.onmouseover=()=>yxn(s,u,h)),u}}function xxn(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(h9t)&&l.dispatch({effects:HNe.of(null)})}};window.addEventListener("mousemove",u)}function yxn(l,s,u){function h(){let p=l.elementAtHeight(s.getBoundingClientRect().top+5-l.documentTop);l.coordsAtPos(p.from)&&l.dispatch({effects:HNe.of({pos:p.from,above:!1,clip:!1,create(){return{dom:c9t(l,u),getCoords:()=>s.getBoundingClientRect()}}})}),s.onmouseout=s.onmousemove=null,xxn(l,s)}let{hoverTime:g}=l.state.facet(Qde),m=setTimeout(h,g);s.onmouseout=()=>{clearTimeout(m),s.onmouseout=s.onmousemove=null},s.onmousemove=()=>{clearTimeout(m),m=setTimeout(h,g)}}function kxn(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 f9t(u[g]).range(+g));return xo.of(h,!0)}const Oxn=Ojt({class:"cm-gutter-lint",markers:l=>l.state.field(kAe),widgetMarker:(l,s,u)=>{let h=[];return l.state.field(kAe).between(u.from,u.to,(g,m,p)=>{g>u.from&&g<u.to&&h.push(...p.diagnostics)}),h.length?new f9t(h):null}}),kAe=Td.define({create(){return xo.empty},update(l,s){l=l.map(s.changes);let u=s.state.facet(Qde).markerFilter;for(let h of s.effects)if(h.is(Gde)){let g=h.value;u&&(g=u(g||[],s.state)),l=kxn(s.state.doc,g.slice(0))}return l}}),HNe=Ds.define(),h9t=Td.define({create(){return null},update(l,s){return l&&s.docChanged&&(l=r9t(s,l)?null:{...l,pos:s.changes.mapPos(l.pos)}),s.effects.reduce((u,h)=>h.is(HNe)?h.value:u,l)},provide:l=>_de.from(l)}),jxn=Bi.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:whe('<path fill="#aaf" stroke="#77e" stroke-width="6" stroke-linejoin="round" d="M5 5L35 5L35 35L5 35Z"/>')},".cm-lint-marker-warning":{content:whe('<path fill="#fe8" stroke="#fd7" stroke-width="6" stroke-linejoin="round" d="M20 6L37 35L3 35Z"/>')},".cm-lint-marker-error":{content:whe('<circle cx="20" cy="20" r="15" fill="#f87" stroke="#f43" stroke-width="6"/>')}}),Sxn=[Px,Bi.decorations.compute([Px],l=>{let{selected:s,panel:u}=l.field(Px);return!s||!u||s.from==s.to?Fr.none:Fr.set([pxn.range(s.from,s.to)])}),Ppn(mxn,{hideOn:r9t}),wxn],Qde=Ui.define({combine(l){return f5(l,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function Txn(l={}){return[Qde.of(l),kAe,Oxn,jxn,h9t]}const na={background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"},R9=na;function d9t(){const{mlflowStatus:l,mlflowBackend:s}=p1n();return y.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"?y.jsxs(y.Fragment,{children:[y.jsx(r2,{size:11,className:"animate-spin",style:{color:"var(--text-muted)"}}),y.jsx("span",{style:{color:"var(--text-muted)"},children:"Connecting to MLflow..."})]}):l==="connected"?y.jsxs(y.Fragment,{children:[y.jsx(HM,{size:11,style:{color:"#22c55e"}}),y.jsxs("span",{style:{color:"var(--text-secondary)"},children:["MLflow (",s,")"]})]}):y.jsxs(y.Fragment,{children:[y.jsx(Sp,{size:11,style:{color:"#ef4444"}}),y.jsx("span",{style:{color:"#ef4444"},children:"MLflow not available"})]})})}function GNe({currentPath:l,onSelect:s,extensions:u}){const[h,g]=re.useState(()=>{if(!l)return".";const te=l.lastIndexOf("/");return te>0?l.substring(0,te):"."}),[m,p]=re.useState([]),[O,j]=re.useState(!0),[C,N]=re.useState(null),[_,P]=re.useState(l),I=dc(te=>te.getFileListCache),q=dc(te=>te.setFileListCache);re.useEffect(()=>{let te=!1;const V=`${h}|${u||""}`,ne=I(V);if(ne){p(ne),j(!1);return}return N(null),n1n(h,u).then(ce=>{if(te)return;const se=ce.items||[];p(se),q(V,se),j(!1)}).catch(ce=>{te||(N(ce instanceof Error?ce.message:"Failed to load files"),p([]),j(!1))}),()=>{te=!0}},[h,u,I,q]);const z=()=>{if(h===".")return;const te=h.split("/");te.pop(),j(!0),g(te.length>0?te.join("/"):".")},X=te=>{P(te),s(te)},Q=te=>te>1024*1024?`${(te/(1024*1024)).toFixed(1)} MB`:`${(te/1024).toFixed(1)} KB`;return y.jsxs("div",{children:[_&&y.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:[y.jsx(HM,{size:14,style:{color:"#22c55e"},className:"shrink-0"}),y.jsx("span",{className:"text-xs font-mono truncate",style:{color:"#4ade80"},children:_})]}),y.jsxs("div",{className:"rounded-lg overflow-hidden",style:{border:"1px solid var(--border)"},children:[y.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:[y.jsx("button",{onClick:z,disabled:h===".",className:"p-0.5 rounded disabled:opacity-30 disabled:cursor-not-allowed transition-colors",style:{color:"var(--text-secondary)"},children:y.jsx(UAe,{size:14})}),y.jsx("span",{className:"text-xs font-mono truncate",style:{color:"var(--text-muted)"},children:h==="."?"/":h})]}),y.jsx("div",{className:"max-h-40 overflow-y-auto",style:{background:"var(--bg-input)"},children:O?y.jsx("div",{className:"px-3 py-2 text-xs",style:{color:"var(--text-muted)"},children:"Loading..."}):C?y.jsx("div",{className:"px-3 py-2 text-xs",style:{color:"#f87171"},children:C}):m.length===0?y.jsx("div",{className:"px-3 py-2 text-xs",style:{color:"var(--text-muted)"},children:"No matching files"}):m.map(te=>{const V=te.type==="file"&&te.path===_;return y.jsxs("button",{onClick:()=>{te.type==="directory"?(j(!0),g(te.path)):X(te.path)},className:"w-full px-3 py-2 flex items-center gap-2 text-left transition-colors",style:{borderBottom:"1px solid var(--border)",background:V?"var(--accent-soft)":"transparent"},onMouseEnter:ne=>{V||(ne.currentTarget.style.background="var(--bg-hover)")},onMouseLeave:ne=>{V||(ne.currentTarget.style.background="transparent")},children:[te.type==="directory"?y.jsx(nhn,{size:14,style:{color:"#f59e0b"},className:"shrink-0"}):V?y.jsx(HM,{size:14,style:{color:"var(--accent)"},className:"shrink-0"}):y.jsx(zOt,{size:14,style:{color:"var(--text-muted)"},className:"shrink-0"}),y.jsx("span",{className:"text-xs truncate",style:{color:V?"var(--accent)":"var(--text-secondary)",fontWeight:V?500:400},children:te.name}),te.size!==void 0&&y.jsx("span",{className:"text-[11px] ml-auto shrink-0",style:{color:"var(--text-muted)"},children:Q(te.size)})]},te.path)})})]})]})}function Cxn({schema:l}){const[s,u]=re.useState(!1);return!l||!l.columns?null:y.jsxs("div",{style:{borderTop:"1px solid var(--border)",background:"var(--bg-elevated)"},children:[y.jsxs("div",{className:"px-4 py-2 flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(_he,{size:14,style:{color:"var(--text-muted)"}}),y.jsx("span",{className:"text-xs font-semibold",style:{color:"var(--text-primary)"},children:"Schema"}),y.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"]})]}),y.jsx("button",{onClick:()=>u(!s),className:"text-[11px] font-medium",style:{color:"var(--accent)"},children:s?"Hide preview":"Show preview"})]}),y.jsxs("div",{className:"px-4 pb-3",children:[y.jsx(nNe,{columns:l.columns}),s&&l.preview.length>0&&y.jsx("div",{className:"mt-2 rounded-lg overflow-x-auto",style:{border:"1px solid var(--border)",background:"var(--bg-input)"},children:y.jsxs("table",{className:"w-full text-[11px]",children:[y.jsx("thead",{children:y.jsx("tr",{style:{borderBottom:"1px solid var(--border)",background:"var(--bg-elevated)"},children:l.columns.map(h=>y.jsx("th",{className:"text-left px-2 py-1 font-semibold whitespace-nowrap",style:{color:"var(--text-muted)"},children:h.name},h.name))})}),y.jsx("tbody",{children:l.preview.map((h,g)=>y.jsx("tr",{style:{borderBottom:"1px solid var(--border)"},children:l.columns.map(m=>y.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 Exn=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}),Mxn=$de.define([{tag:Gn.keyword,color:"#c084fc"},{tag:Gn.controlKeyword,color:"#c084fc"},{tag:Gn.definitionKeyword,color:"#c084fc"},{tag:Gn.operatorKeyword,color:"#c084fc"},{tag:Gn.modifier,color:"#c084fc"},{tag:Gn.self,color:"#f472b6"},{tag:Gn.bool,color:"#fb923c"},{tag:Gn.null,color:"#fb923c"},{tag:Gn.number,color:"#fb923c"},{tag:Gn.string,color:"#86efac"},{tag:Gn.special(Gn.string),color:"#86efac"},{tag:Gn.regexp,color:"#fbbf24"},{tag:Gn.comment,color:"var(--text-muted)",fontStyle:"italic"},{tag:Gn.function(Gn.definition(Gn.variableName)),color:"var(--text-accent)"},{tag:Gn.function(Gn.variableName),color:"#93c5fd"},{tag:Gn.className,color:"#fbbf24"},{tag:Gn.definition(Gn.className),color:"#fbbf24"},{tag:Gn.propertyName,color:"#67e8f9"},{tag:Gn.operator,color:"#94a3b8"},{tag:Gn.punctuation,color:"#94a3b8"},{tag:Gn.bracket,color:"#cbd5e1"},{tag:Gn.meta,color:"#a78bfa"},{tag:Gn.variableName,color:"var(--text-primary)"},{tag:Gn.typeName,color:"#fbbf24"}]),Axn=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 p4t(l){return s=>{if(l.length===0)return null;const u=Jh(s.state).resolveInner(s.pos,-1);if(!(u.name==="String"||u.name==="FormatString"))return null;const m=s.state.sliceDoc(u.from,s.pos).match(/^[fFrRbBuU]{0,2}("""|'''|"|')/);if(!m)return null;const p=m[0].length,O=u.from+p,C=s.state.sliceDoc(O,s.pos).toLowerCase(),N=l.filter(_=>_.toLowerCase().startsWith(C)).map(_=>({label:_,type:"variable"}));return N.length===0?null:{from:O,to:s.pos,options:N,filter:!1}}}function XM({defaultValue:l,onChange:s,placeholder:u,errorLine:h,availableColumns:g,onEditorView:m}){const p=re.useRef(null),O=re.useRef(null),j=re.useRef(s),C=re.useRef(void 0),N=re.useRef(new oR),_=re.useRef(new oR),P=re.useRef(!1);return re.useEffect(()=>{j.current=s},[s]),re.useEffect(()=>{const I=O.current;if(!I||P.current)return;const q=I.state.doc.toString();l!==q&&I.dispatch({changes:{from:0,to:q.length,insert:l}})},[l]),re.useEffect(()=>{if(!p.current)return;const I=Bi.updateListener.of(X=>{if(X.docChanged){const Q=X.state.doc.toString();C.current&&clearTimeout(C.current),C.current=setTimeout(()=>j.current(Q),150),X.view&&X.view.dispatch(eMe(X.state,[]))}}),q=Fc.create({doc:l,extensions:[P2n(),mpn(),Cpn(),Ubn(),wwn(),l2n(),_.current.of(g!=null&&g.length?qfe({override:[p4t(g)]}):qfe()),xpn(),Xpn(),Hvn(),lX.of("    "),Jpn(),own(),Txn(),S2n(),uwn(Mxn),Exn,Axn,N.current.of(u?l5t(u):[]),Nde.of([...h2n,...axn,...G2n,...nwn,...hSt,$vn,...Rvn]),Bi.domEventHandlers({focus:()=>{P.current=!0},blur:()=>{P.current=!1}}),I,Bi.lineWrapping]}),z=new Bi({state:q,parent:p.current});return O.current=z,m==null||m(z),()=>{C.current&&clearTimeout(C.current),m==null||m(null),z.destroy()}},[]),re.useEffect(()=>{O.current&&O.current.dispatch({effects:_.current.reconfigure(g!=null&&g.length?qfe({override:[p4t(g)]}):qfe())})},[g]),re.useEffect(()=>{const I=O.current;if(I)if(h!=null&&h>=1){const q=I.state.doc,z=Math.min(h,q.lines),X=q.line(z);I.dispatch(eMe(I.state,[{from:X.from,to:X.to,severity:"error",message:`Error on line ${h}`}]))}else I.dispatch(eMe(I.state,[]))},[h]),re.useEffect(()=>{O.current&&O.current.dispatch({effects:N.current.reconfigure(u?l5t(u):[])})},[u]),y.jsx("div",{ref:p,"data-testid":"code-editor-wrapper",className:"flex-1 min-h-[120px]"})}function KM({inputSources:l,onDeleteInput:s}){return l.length===0?null:y.jsx("div",{className:"rounded-lg px-3 py-1.5 shrink-0",style:{background:"var(--bg-input)",border:"1px solid var(--border)"},children:y.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[y.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=>y.jsxs("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded",style:{background:"var(--accent-soft)"},children:[y.jsx("code",{className:"text-[11px] font-semibold",style:{color:"var(--accent)"},children:u.varName}),s&&y.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:y.jsx(Ix,{size:10})})]},u.varName))]})})}function VM({value:l,onChange:s,options:u,accentColor:h,ariaLabel:g,ariaLabelledBy:m}){const p=re.useRef([]),O=(j,C)=>{var _;let N=null;j.key==="ArrowRight"||j.key==="ArrowDown"?(j.preventDefault(),N=(C+1)%u.length):j.key==="ArrowLeft"||j.key==="ArrowUp"?(j.preventDefault(),N=(C-1+u.length)%u.length):j.key==="Home"?(j.preventDefault(),N=0):j.key==="End"&&(j.preventDefault(),N=u.length-1),N!==null&&(s(u[N].key),(_=p.current[N])==null||_.focus())};return y.jsx("div",{className:"flex gap-1.5",role:"radiogroup","aria-label":g,"aria-labelledby":m,children:u.map((j,C)=>{const N=l===j.key;return y.jsxs("button",{ref:_=>{p.current[C]=_},role:"radio","aria-checked":N,tabIndex:N?0:-1,onClick:()=>s(j.key),onKeyDown:_=>O(_,C),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:N?Ys(h,.1):"var(--bg-input)",border:N?`1px solid ${h}`:"1px solid var(--border)",color:N?h:"var(--text-secondary)"},children:[j.icon,j.label]},j.key)})})}function Nxn(l){return l<1024?`${l} B`:l<1024*1024?`${(l/1024).toFixed(1)} KB`:`${(l/(1024*1024)).toFixed(1)} MB`}function _xn(l){return l==null||Number.isNaN(l)?"":new Date(l*1e3).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function g9t({resourceKey:l,getStatus:s,startFetch:u,getProgress:h,deleteCache:g,cancelFetch:m,timestampField:p,labels:O,onCacheReady:j}){const[C,N]=re.useState(null),[_,P]=re.useState(!1),[I,q]=re.useState(null),[z,X]=re.useState(""),Q=re.useRef(j);Q.current=j,re.useEffect(()=>{l&&s(l).then(se=>{var me;N(se),se.cached&&((me=Q.current)==null||me.call(Q,se))}).catch(se=>{console.warn("cache status fetch failed",se),N(null)})},[l]),re.useEffect(()=>{if(!_||!l)return;const se=setInterval(()=>{h(l).then(me=>{me.active?q({rows:me.rows||0,elapsed:me.elapsed||0,phase:me.phase||""}):P(!1)}).catch(me=>{console.warn("progress poll failed",me)})},1e3);return()=>{clearInterval(se),q(null)}},[_,l]);const te=()=>{l&&(P(!0),X(""),u(l).then(se=>{N(se),P(!1),j==null||j(se)}).catch(se=>{const me=se instanceof OO&&se.detail||se.message;X(me==="Cache build cancelled"?"":me),P(!1)}))},V=()=>{!l||!m||m(l).catch(se=>{console.warn("cancel request failed",se)})},ne=()=>{l&&g(l).then(se=>N(se)).catch(se=>X(se instanceof OO&&se.detail||se.message))},ce=C?C[p]:0;return y.jsxs("div",{children:[y.jsx("button",{onClick:_&&m?V:te,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?y.jsxs(y.Fragment,{children:[y.jsx(Ffn,{size:14})," Cancel ",I?`(${I.phase?`${I.phase}… `:""}${I.rows.toLocaleString()} rows · ${I.elapsed}s)`:""]}):y.jsxs(y.Fragment,{children:[y.jsx(r2,{size:14,className:"animate-spin"})," ",I?`${I.phase?`${I.phase}… `:""}${I.rows.toLocaleString()} rows · ${I.elapsed}s`:O.pendingLabel]}):C!=null&&C.cached?y.jsxs(y.Fragment,{children:[y.jsx(Nhe,{size:14})," ",O.refreshLabel]}):y.jsxs(y.Fragment,{children:[y.jsx(Nhe,{size:14})," ",O.fetchLabel]})}),(C==null?void 0:C.cached)&&y.jsxs("div",{className:"mt-1.5 flex items-center gap-2 text-[10px] px-1",style:{color:"var(--text-muted)"},children:[y.jsxs("span",{children:[C.row_count.toLocaleString()," rows"]}),y.jsx("span",{children:"·"}),y.jsxs("span",{children:[C.column_count," cols"]}),y.jsx("span",{children:"·"}),y.jsx("span",{children:Nxn(C.size_bytes)}),ce>0&&y.jsxs(y.Fragment,{children:[y.jsx("span",{children:"·"}),y.jsx("span",{children:_xn(ce)})]}),y.jsx("span",{children:"·"}),y.jsxs("button",{onClick:ne,className:"inline-flex items-center gap-0.5 hover:opacity-70 transition-opacity",style:{color:"#ef4444"},title:"Delete cached data",children:[y.jsx(F9,{size:10})," clear"]})]}),!(C!=null&&C.cached)&&l&&!_&&y.jsx("div",{className:"mt-1.5 text-[10px] px-1",style:{color:"#f59e0b"},children:O.notCachedHint}),z&&y.jsx("div",{className:"mt-1.5 text-[10px] px-2 py-1 rounded",style:{background:"rgba(239,68,68,.1)",color:"#ef4444"},children:z})]})}function Dxn({httpPath:l,onSelect:s}){const[u,h]=re.useState([]),[g,m]=re.useState(!1),[p,O]=re.useState(null),[j,C]=re.useState(!1),N=re.useRef(!1),_=()=>{if(N.current){C(!0);return}m(!0),O(null),Ldn().then(I=>{h(I.warehouses||[]),N.current=!0,C(!0),m(!1)}).catch(I=>{O(I instanceof OO&&I.detail||I.message),m(!1)})},P=I=>I==="RUNNING"?"#22c55e":I==="STOPPED"||I==="DELETED"?"#ef4444":"#f59e0b";return y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"SQL Warehouse"}),y.jsxs("div",{className:"mt-1 flex gap-1.5",children:[y.jsx("input",{type:"text",placeholder:"/sql/1.0/warehouses/abc123",value:l,onChange:I=>s(I.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:I=>{I.currentTarget.style.borderColor="rgba(59,130,246,.3)",I.currentTarget.style.boxShadow="0 0 0 2px var(--accent-soft)"},onBlur:I=>{I.currentTarget.style.borderColor="var(--border)",I.currentTarget.style.boxShadow="none"}}),y.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?y.jsx(r2,{size:12,className:"animate-spin"}):y.jsx(Sd,{size:12}),y.jsx("span",{children:g?"":"Browse"})]})]}),p&&y.jsx("div",{className:"mt-1.5 text-[10px] px-2 py-1 rounded",style:{background:"rgba(239,68,68,.1)",color:"#ef4444"},children:p}),j&&u.length>0&&y.jsx("div",{className:"mt-1.5 rounded-lg overflow-hidden",style:{border:"1px solid var(--border)",background:"var(--bg-input)"},children:u.map(I=>y.jsxs("button",{onClick:()=>{s(I.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===I.http_path?"var(--accent-soft)":"transparent",borderBottom:"1px solid var(--border)",color:"var(--text-primary)"},children:[y.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:P(I.state)},title:I.state}),y.jsx("span",{className:"font-medium truncate",children:I.name}),I.size&&y.jsx("span",{className:"text-[10px] ml-auto flex-shrink-0",style:{color:"var(--text-muted)"},children:I.size}),l===I.http_path&&y.jsx(HM,{size:12,style:{color:"var(--accent)"},className:"flex-shrink-0"})]},I.id))}),j&&u.length===0&&!g&&!p&&y.jsx("div",{className:"mt-1.5 text-[10px]",style:{color:"var(--text-muted)"},children:"No SQL Warehouses found in this workspace"})]})}function Lxn({table:l,onSelect:s}){const u=l?l.split("."):[],[h,g]=re.useState(u[0]||""),[m,p]=re.useState(u[1]||""),[O,j]=re.useState(u[2]||"");re.useEffect(()=>{const le=l?l.split("."):[];g(le[0]||""),p(le[1]||""),j(le[2]||"")},[l]);const[C,N]=re.useState([]),[_,P]=re.useState([]),[I,q]=re.useState([]),[z,X]=re.useState(!1),[Q,te]=re.useState(!1),[V,ne]=re.useState(!1),[ce,se]=re.useState(null),me=le=>le instanceof OO&&le.detail||le.message,ye=()=>{X(!0),se(null),Pdn().then(le=>{N(le.catalogs||[]),X(!1)}).catch(le=>{se(me(le)),X(!1)})},qe=le=>{te(!0),se(null),Idn(le).then(W=>{P(W.schemas||[]),te(!1)}).catch(W=>{se(me(W)),te(!1)})},Be=(le,W)=>{ne(!0),se(null),Rdn(le,W).then(pe=>{q(pe.tables||[]),ne(!1)}).catch(pe=>{se(me(pe)),ne(!1)})},ke={background:"var(--bg-input)",border:"1px solid var(--border)",color:"var(--text-primary)"};return y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Table"}),y.jsxs("div",{className:"mt-1 space-y-1.5",children:[y.jsxs("select",{value:h,onFocus:ye,onChange:le=>{const W=le.target.value;g(W),p(""),j(""),P([]),q([]),s(""),W&&qe(W)},className:"w-full px-2.5 py-1.5 text-xs rounded-lg focus:outline-none focus:ring-2",style:ke,children:[y.jsx("option",{value:"",children:z?"Loading...":"Select catalog..."}),h&&C.every(le=>le.name!==h)&&y.jsx("option",{value:h,children:h}),C.map(le=>y.jsxs("option",{value:le.name,children:[le.name,le.comment?` — ${le.comment}`:""]},le.name))]}),y.jsxs("select",{value:m,disabled:!h,onFocus:()=>{h&&qe(h)},onChange:le=>{const W=le.target.value;p(W),j(""),q([]),s(""),W&&Be(h,W)},className:"w-full px-2.5 py-1.5 text-xs rounded-lg focus:outline-none focus:ring-2 disabled:opacity-40",style:ke,children:[y.jsx("option",{value:"",children:Q?"Loading...":h?"Select schema...":"Select catalog first"}),m&&_.every(le=>le.name!==m)&&y.jsx("option",{value:m,children:m}),_.map(le=>y.jsxs("option",{value:le.name,children:[le.name,le.comment?` — ${le.comment}`:""]},le.name))]}),y.jsxs("select",{value:O,disabled:!m,onFocus:()=>{h&&m&&Be(h,m)},onChange:le=>{const W=le.target.value;j(W),s(W?`${h}.${m}.${W}`:"")},className:"w-full px-2.5 py-1.5 text-xs rounded-lg focus:outline-none focus:ring-2 disabled:opacity-40",style:ke,children:[y.jsx("option",{value:"",children:V?"Loading...":m?"Select table...":"Select schema first"}),O&&I.every(le=>le.name!==O)&&y.jsx("option",{value:O,children:O}),I.map(le=>y.jsxs("option",{value:le.name,children:[le.name,le.table_type?` (${le.table_type})`:"",le.comment?` — ${le.comment}`:""]},le.name))]})]}),l&&y.jsx("div",{className:"mt-1.5 text-[10px] font-mono px-1",style:{color:"var(--text-muted)"},children:l}),ce&&y.jsx("div",{className:"mt-1.5 text-[10px] px-2 py-1 rounded",style:{background:"rgba(239,68,68,.1)",color:"#ef4444"},children:ce})]})}function Pxn({table:l,httpPath:s,query:u,onFetched:h}){return y.jsx(g9t,{resourceKey:l,getStatus:g=>$dn(g),startFetch:g=>zdn({table:g,http_path:s||void 0,query:u||void 0}).then(m=>({cached:!0,...m})),getProgress:g=>Bdn(g),deleteCache:g=>Fdn(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 Ixn({config:l,onUpdate:s,onRefreshPreview:u,accentColor:h,errorLine:g}){const m=An(l,"sourceType","flat_file"),p=An(l,"path",void 0),O=m==="flat_file"&&!!p,[j,C]=re.useState(!1),N=An(l,"query","")||"SELECT *",[_,P]=re.useState(N);return re.useEffect(()=>{P(N)},[N]),y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"px-4 py-3 space-y-3",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Source Type"}),y.jsx("div",{className:"mt-1",children:y.jsx(VM,{value:m,onChange:I=>s("sourceType",I),options:[{key:"flat_file",label:"Flat File",icon:y.jsx(zOt,{size:12})},{key:"databricks",label:"Databricks",icon:y.jsx(VAe,{size:12})}],accentColor:h})})]}),m==="flat_file"&&y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] mb-1.5 block",style:{color:"var(--text-muted)"},children:"File"}),O&&y.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:[y.jsx(HM,{size:14,style:{color:"#22c55e"},className:"shrink-0"}),y.jsx("span",{className:"text-xs font-mono truncate flex-1",style:{color:"#4ade80"},children:p}),y.jsx("button",{"data-testid":"file-change-btn",onClick:()=>C(!j),className:"shrink-0 text-[11px] font-semibold px-2 py-0.5 rounded transition-colors",style:{color:"#4ade80"},children:j?"close":"change"})]}),(!O||j)&&y.jsx("div",{className:"mt-2",children:y.jsx(GNe,{currentPath:void 0,onSelect:I=>{s("path",I),C(!1),setTimeout(()=>u==null?void 0:u(),50)}})})]}),m==="databricks"&&y.jsxs("div",{className:"space-y-3",children:[y.jsx(Dxn,{httpPath:An(l,"http_path",""),onSelect:I=>s("http_path",I||void 0)}),y.jsx(Lxn,{table:An(l,"table",""),onSelect:I=>s("table",I||void 0)}),y.jsxs("div",{children:[y.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:["SQL Query",y.jsx("span",{className:"ml-1.5 normal-case tracking-normal font-normal",style:{color:"var(--text-muted)"},children:"(optional)"})]}),y.jsx("textarea",{placeholder:`SELECT *
FROM catalog.schema.table
WHERE status = 'active'`,value:_,onChange:I=>{P(I.target.value),s("query",I.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:I=>{I.currentTarget.style.borderColor="rgba(59,130,246,.3)",I.currentTarget.style.boxShadow="0 0 0 2px var(--accent-soft)"},onBlur:I=>{I.currentTarget.style.borderColor="var(--border)",I.currentTarget.style.boxShadow="none"}}),y.jsx("div",{className:"mt-1 text-[10px]",style:{color:"var(--text-muted)"},children:"Combined with table above as: query FROM table"})]}),y.jsx(Pxn,{table:An(l,"table",""),httpPath:An(l,"http_path",""),query:An(l,"query",""),onFetched:()=>u==null?void 0:u()})]})]}),y.jsxs("div",{className:"px-3 py-2 flex flex-col gap-2",style:{borderTop:"1px solid var(--border)"},children:[y.jsxs("div",{className:"flex items-center justify-between shrink-0",children:[y.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:["Polars Code",y.jsx("span",{className:"ml-1.5 normal-case tracking-normal font-normal",children:"(optional)"})]}),y.jsxs("span",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:["use ",y.jsx("code",{className:"px-0.5 rounded",style:{background:"var(--bg-hover)"},children:"df"})," for loaded data"]})]}),y.jsx(XM,{defaultValue:An(l,"code",""),onChange:I=>s("code",I),errorLine:g,placeholder:""}),y.jsx("div",{className:"text-[11px] font-mono",style:{color:"var(--text-muted)",opacity:.6},children:"return df"})]})]})}const Rxn=`# Clean up dot-notation columns:
#
# df = clean_columns(quotes)
#
# Then add derived columns with Polars:
# df = df.with_columns(
#     years_between(to_date("date_of_birth"), to_date("cover_start_date")).alias("age"),
# )`;function $xn({config:l,onUpdate:s,inputSources:u,onDeleteInput:h,errorLine:g,upstreamColumns:m,hasApiInputUpstream:p}){const O=An(l,"code",""),j=u.length>0,C=re.useMemo(()=>(m??[]).map(_=>_.name),[m]),N=p?Rxn:"";return y.jsxs("div",{className:"flex-1 flex flex-col min-h-0 px-3 py-2 gap-2",children:[y.jsx(KM,{inputSources:u,onDeleteInput:h}),y.jsxs("div",{className:"flex items-center justify-between shrink-0",children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Polars Code"}),y.jsx("span",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:j?"use input names":"assign to df"})]}),y.jsx(XM,{defaultValue:O,onChange:_=>s("code",_),errorLine:g,placeholder:N,availableColumns:C}),y.jsx("div",{className:"text-[11px] font-mono shrink-0",style:{color:"var(--text-muted)",opacity:.6},children:"return df"})]})}function p9t({config:l,onUpdate:s,mlflow:u}){const{models:h,modelVersions:g,loadingModels:m,errorModels:p,errorVersions:O,refreshModels:j,refreshVersions:C}=u,N=An(l,"registered_model","");return y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Model Name"}),y.jsxs("select",{className:"mt-1 w-full text-xs px-2.5 py-1.5 rounded-lg focus:outline-none focus:ring-2",style:R9,value:N,onFocus:j,onChange:_=>s({registered_model:_.target.value,version:"latest"}),children:[y.jsx("option",{value:"",children:m?"Loading...":"Select a model..."}),N&&!h.some(_=>_.name===N)&&y.jsx("option",{value:N,children:N}),h.map(_=>y.jsx("option",{value:_.name,children:_.name},_.name))]}),p&&y.jsx("span",{className:"text-[10px] mt-0.5",style:{color:"#ef4444"},children:p})]}),N&&y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Version"}),y.jsxs("select",{className:"mt-1 w-full text-xs px-2.5 py-1.5 rounded-lg focus:outline-none focus:ring-2",style:R9,value:An(l,"version","latest"),onFocus:()=>C(N),onChange:_=>s("version",_.target.value),children:[y.jsx("option",{value:"latest",children:"latest"}),g.map(_=>y.jsxs("option",{value:_.version,children:["v",_.version," — ",_.status,_.description?` (${_.description})`:""]},_.version))]}),O&&y.jsx("span",{className:"text-[10px] mt-0.5",style:{color:"#ef4444"},children:O})]})]})}function m9t({config:l,onUpdate:s,mlflow:u,renderRunLabel:h,onRunSelected:g,showArtifactPath:m=!1}){const{experiments:p,runs:O,loadingExperiments:j,loadingRuns:C,errorExperiments:N,errorRuns:_,browseExpId:P,setBrowseExpId:I,setRuns:q,resetRunsGuard:z,refreshExperiments:X,refreshRuns:Q}=u,V=h??(ne=>{const ce=ne.run_name||ne.run_id.slice(0,8),se=Object.entries(ne.metrics).slice(0,2).map(([me,ye])=>` ${me}=${typeof ye=="number"?ye.toFixed(4):ye}`).join("");return`${ce}${se}`});return y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Experiment"}),y.jsxs("select",{className:"mt-1 w-full text-xs px-2.5 py-1.5 rounded-lg focus:outline-none focus:ring-2",style:R9,value:P,onFocus:X,onChange:ne=>{const ce=ne.target.value,se=p.find(me=>me.experiment_id===ce);I(ce),s({experiment_id:ce,experiment_name:(se==null?void 0:se.name)||ce}),q([]),z(),ce&&Q(ce)},children:[y.jsx("option",{value:"",children:j?"Loading...":"Select an experiment..."}),P&&!p.some(ne=>ne.experiment_id===P)&&y.jsx("option",{value:P,children:An(l,"experiment_name","")||P}),p.map(ne=>y.jsx("option",{value:ne.experiment_id,children:ne.name},ne.experiment_id))]}),N&&y.jsx("span",{className:"text-[10px] mt-0.5",style:{color:"#ef4444"},children:N})]}),P&&y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Run"}),y.jsxs("select",{className:"mt-1 w-full text-xs px-2.5 py-1.5 rounded-lg focus:outline-none focus:ring-2",style:R9,value:An(l,"run_id",""),onFocus:()=>Q(P),onChange:ne=>{const ce=ne.target.value,se=O.find(ye=>ye.run_id===ce),me=se&&g?g(se):{};s({run_id:ce,run_name:(se==null?void 0:se.run_name)||"",...me})},children:[y.jsx("option",{value:"",children:C?"Loading...":"Select a run..."}),An(l,"run_id","")&&!O.some(ne=>ne.run_id===l.run_id)&&y.jsx("option",{value:An(l,"run_id",""),children:An(l,"run_name","")||An(l,"run_id","")}),O.map(ne=>y.jsx("option",{value:ne.run_id,children:V(ne)},ne.run_id))]}),_&&y.jsx("span",{className:"text-[10px] mt-0.5",style:{color:"#ef4444"},children:_})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Run ID"}),y.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:R9,value:An(l,"run_id",""),onChange:ne=>s("run_id",ne.target.value),placeholder:"e.g. a1b2c3d4e5f6..."})]}),m&&y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Artifact Path"}),y.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:R9,value:An(l,"artifact_path",""),onChange:ne=>s("artifact_path",ne.target.value),placeholder:"e.g. model.cbm"})]})]})}function b9t(l){const s=l==null?void 0:l.runTag,u=(l==null?void 0:l.initialExpId)??"",[h,g]=re.useState([]),[m,p]=re.useState([]),[O,j]=re.useState([]),[C,N]=re.useState([]),[_,P]=re.useState(!1),[I,q]=re.useState(!1),[z,X]=re.useState(!1),[Q,te]=re.useState(!1),[V,ne]=re.useState(""),[ce,se]=re.useState(""),[me,ye]=re.useState(""),[qe,Be]=re.useState(""),[ke,le]=re.useState(u),W=re.useRef(!1),pe=re.useRef(!1),je=re.useRef(""),ue=re.useRef("");re.useEffect(()=>{W.current=!1,pe.current=!1,je.current="",ue.current=""},[]);const ve=Ie=>Ie instanceof OO&&Ie.detail||Ie.message,xe=re.useCallback(()=>{W.current||(W.current=!0,P(!0),ne(""),Jdn().then(Ie=>{g(Array.isArray(Ie)?Ie:[]),P(!1)}).catch(Ie=>{g([]),P(!1),ne(ve(Ie)||"Failed to load experiments"),W.current=!1}))},[]),Ee=re.useCallback(Ie=>{Ie&&je.current!==Ie&&(je.current=Ie,q(!0),se(""),Wdn(Ie,s).then(Ye=>{p(Array.isArray(Ye)?Ye:[]),q(!1)}).catch(Ye=>{p([]),q(!1),se(ve(Ye)||"Failed to load runs"),je.current=""}))},[s]),tt=re.useCallback(()=>{pe.current||(pe.current=!0,X(!0),ye(""),Vdn().then(Ie=>{j(Array.isArray(Ie)?Ie:[]),X(!1)}).catch(Ie=>{j([]),X(!1),ye(ve(Ie)||"Failed to load models"),pe.current=!1}))},[]),Te=re.useCallback(Ie=>{Ie&&ue.current!==Ie&&(ue.current=Ie,te(!0),Be(""),Xdn(Ie).then(Ye=>{N(Array.isArray(Ye)?Ye:[]),te(!1)}).catch(Ye=>{N([]),te(!1),Be(ve(Ye)||"Failed to load versions"),ue.current=""}))},[]),et=re.useCallback(()=>{je.current=""},[]);return{experiments:h,runs:m,models:O,modelVersions:C,loadingExperiments:_,loadingRuns:I,loadingModels:z,loadingVersions:Q,errorExperiments:V,errorRuns:ce,errorModels:me,errorVersions:qe,browseExpId:ke,setBrowseExpId:le,setRuns:p,refreshExperiments:xe,refreshRuns:Ee,refreshModels:tt,refreshVersions:Te,resetRunsGuard:et}}function Bxn({config:l,onUpdate:s,inputSources:u,onDeleteInput:h,errorLine:g,accentColor:m}){const p=An(l,"sourceType","registered"),O=An(l,"task","regression"),j=An(l,"output_column","prediction"),C=An(l,"code",""),N=b9t({initialExpId:An(l,"experiment_id","")}),[_,P]=re.useState(!!C);return y.jsxs("div",{className:"flex-1 flex flex-col min-h-0 px-3 py-2 gap-3",children:[y.jsx(KM,{inputSources:u,onDeleteInput:h}),y.jsx(d9t,{}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Model Source"}),y.jsx("div",{className:"mt-1",children:y.jsx(VM,{value:p,onChange:I=>s("sourceType",I),options:[{key:"registered",label:"Registered Model"},{key:"run",label:"Experiment Run"}],accentColor:m})})]}),p==="registered"&&y.jsx(p9t,{config:l,onUpdate:s,mlflow:N}),p==="run"&&y.jsx(m9t,{config:l,onUpdate:s,mlflow:N,showArtifactPath:!0,onRunSelected:I=>({artifact_path:I.artifacts[0]||""})}),y.jsxs("div",{className:"flex gap-2",children:[y.jsxs("div",{className:"flex-1",children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Task"}),y.jsxs("select",{className:"mt-1 w-full text-xs px-2.5 py-1.5 rounded-lg focus:outline-none focus:ring-2",style:R9,value:O,onChange:I=>s("task",I.target.value),children:[y.jsx("option",{value:"regression",children:"Regression"}),y.jsx("option",{value:"classification",children:"Classification"})]})]}),y.jsxs("div",{className:"flex-1",children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Output Column"}),y.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:R9,value:j,onChange:I=>s("output_column",I.target.value),placeholder:"prediction"})]})]}),O==="classification"&&y.jsxs("p",{className:"text-[10px]",style:{color:"var(--text-muted)"},children:["Classification models also generate a ",y.jsxs("code",{className:"px-0.5 rounded",style:{background:"var(--bg-hover)"},children:[j,"_proba"]})," column."]}),y.jsx("div",{children:y.jsxs("button",{onClick:()=>P(!_),className:"flex items-center gap-1.5 text-[11px] font-medium transition-colors",style:{color:"var(--text-muted)"},children:[y.jsx(Sd,{size:11,style:{transform:_?"rotate(0deg)":"rotate(-90deg)",transition:"transform 0.15s"}}),"Post-processing Code (optional)"]})}),_&&y.jsxs(y.Fragment,{children:[y.jsx(XM,{defaultValue:C,onChange:I=>s("code",I),errorLine:g,placeholder:""}),y.jsx("div",{className:"text-[11px] font-mono",style:{color:"var(--text-muted)",opacity:.6},children:"return df"})]})]})}function zxn(l){const s=l.factors;return Array.isArray(s)&&s.length>0?s:[{banding:"continuous",column:"",outputColumn:"",rules:[],default:null}]}function Fxn(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 qxn(l,s){const u=s[l];return u?Fxn(u)?"breakpoints":"categorical":null}function Ude(l){let s=null,u=null,h=!1,g=!1;const m=(l.op1??"").trim(),p=l.val1!=null&&l.val1!==""?Number(l.val1):NaN;m&&!isNaN(p)&&(m===">"||m===">="?(s=p,h=m===">="):m==="<"||m==="<="?(u=p,g=m==="<="):(m==="="||m==="==")&&(s=p,u=p,h=!0,g=!0));const O=(l.op2??"").trim(),j=l.val2!=null&&l.val2!==""?Number(l.val2):NaN;return O&&!isNaN(j)&&(O===">"||O===">="?(s=j,h=O===">="):O==="<"||O==="<="?(u=j,g=O==="<="):(O==="="||O==="==")&&(s=j,u=j,h=!0,g=!0)),s===null&&u===null?null:{lower:s,upper:u,lowerInclusive:h,upperInclusive:g}}function Hxn(l,s){return!(l.upper!==null&&s.lower!==null&&(l.upper<s.lower||l.upper===s.lower&&!(l.upperInclusive&&s.lowerInclusive))||s.upper!==null&&l.lower!==null&&(s.upper<l.lower||s.upper===l.lower&&!(s.upperInclusive&&l.lowerInclusive)))}function Gxn(l){const s=l.map(h=>Ude(h)),u=[];for(let h=0;h<s.length;h++){const g=s[h];if(g)for(let m=h+1;m<s.length;m++){const p=s[m];if(p&&Hxn(g,p)){const O=m4t(g),j=m4t(p);u.push({ruleA:h,ruleB:m,desc:`Rule ${h+1} ${O} overlaps with Rule ${m+1} ${j}`})}}}return u}function m4t(l){const s=l.lower!==null?`${l.lowerInclusive?"[":"("}${l.lower}`:"(-∞",u=l.upper!==null?`${l.upper}${l.upperInclusive?"]":")"}`:"∞)";return`${s}, ${u}`}function Qxn(l){const s=l.map((h,g)=>({interval:Ude(h),index:g})).filter(h=>h.interval!==null);if(s.length<2)return[];s.sort((h,g)=>{const m=h.interval.lower??-1/0,p=g.interval.lower??-1/0;return m-p});const u=[];for(let h=0;h<s.length-1;h++){const g=s[h].interval,m=s[h+1].interval;g.upper!==null&&m.lower!==null&&(g.upper<m.lower?u.push(`Gap between ${g.upper} and ${m.lower}`):g.upper===m.lower&&!g.upperInclusive&&!m.lowerInclusive&&u.push(`Gap at ${g.upper} (not covered by either rule)`))}return u}function Uxn(l){const s=Ude(l);if(!s)return null;if(s.lower!==null&&s.upper!==null){if(s.lower>s.upper)return`Contradictory conditions: lower bound ${s.lower} > upper bound ${s.upper}`;if(s.lower===s.upper&&!(s.lowerInclusive&&s.upperInclusive))return`Contradictory conditions: bounds equal at ${s.lower} but not both inclusive`}return null}function Jxn(l){const s=new Map;l.forEach((h,g)=>{const m=h.value??"";if(!m)return;const p=s.get(m);p?p.push(g):s.set(m,[g])});const u=[];for(const[h,g]of s)g.length>1&&u.push({indices:g,value:h});return u}function b4t(l){return l?l.endsWith("_band")?l:`${l}_band`:"_band"}function w4t(l,s){if(!isFinite(l))return!1;const u=Ude(s);return!(!u||u.lower!==null&&(u.lowerInclusive?l<u.lower:l<=u.lower)||u.upper!==null&&(u.upperInclusive?l>u.upper:l>=u.upper))}function Wxn(l,s){if(!l.length)return[];const u=[];let h=null;for(const p of l){const O=(p.boundary??"").trim();if(!O)h=p.label??"";else{const j=Number(O);!isNaN(j)&&isFinite(j)&&u.push({boundary:j,label:p.label??""})}}u.sort((p,O)=>p.boundary-O.boundary);const g=[];let m=null;for(const p of u){const O=p.boundary,j={op1:"",val1:"",op2:"",val2:"",assignment:p.label};m===null?s?(j.op1="<=",j.val1=String(O)):(j.op1="<",j.val1=String(O)):s?(j.op1=">",j.val1=String(m),j.op2="<=",j.val2=String(O)):(j.op1=">=",j.val1=String(m),j.op2="<",j.val2=String(O)),g.push(j),m=O}return h!==null&&m!==null&&(s?g.push({op1:">",val1:String(m),op2:"",val2:"",assignment:h}):g.push({op1:">=",val1:String(m),op2:"",val2:"",assignment:h})),g}const v4t=["<","<=",">",">=","="];let Vxn=0;function Xxn(){return`rule_${++Vxn}_${Date.now().toString(36)}`}function Kxn(l){let s=!1;const u=l.map(h=>h._id?h:(s=!0,{...h,_id:Xxn()}));return s?u:l}function x4t(l,s){return l._id||`fallback_${s}`}function Yxn(l,s){const u=l.split(`
`).map(g=>g.trim()).filter(g=>g.length>0),h=[];for(let g=0;g<u.length;g++){const m=u[g].split("	");s==="categorical"?m.length>=2&&h.push({value:m[0],assignment:m[1]}):m.length===2?h.push({op1:g===0?">=":">",val1:m[0],op2:"",val2:"",assignment:m[1]}):m.length===3?h.push({op1:">",val1:m[0],op2:"<=",val2:m[1],assignment:m[2]}):m.length>=5&&h.push({op1:m[0],val1:m[1],op2:m[2],val2:m[3],assignment:m[4]})}return h}const y4t="p-0.5 rounded transition-colors text-[var(--text-muted)] hover:text-[#ef4444] focus-visible:text-[#ef4444]";function Zxn({factor:l,onUpdateFactor:s,accentColor:u="#22d3ee",matchCounts:h,onAddRule:g}){const m=re.useMemo(()=>l.rules||[],[l.rules]),p=re.useRef(!1),O=re.useRef(m);re.useEffect(()=>{O.current!==m&&(p.current=!1,O.current=m)},[m]);const j=Kxn(m);re.useEffect(()=>{j!==m&&!p.current&&(p.current=!0,s({rules:j}))});const C=l.banding||"continuous",N=te=>s({rules:te}),_=(te,V,ne)=>{const ce=[...j];ce[te]={...ce[te],[V]:ne},N(ce)},P=te=>N(j.filter((V,ne)=>ne!==te)),I=re.useCallback(te=>{const V=te.clipboardData.getData("text/plain");if(!V.includes("	"))return;te.preventDefault();const ne=Yxn(V,C);ne.length>0&&N([...j,...ne])},[j,C]),q=re.useCallback((te,V)=>{te.key==="Enter"&&V===j.length-1&&g&&g()},[j.length,g]),z=!!h,X=z?7:6,Q=z?4:3;return y.jsx("div",{className:"rounded-lg overflow-hidden",style:{border:"1px solid var(--border)",background:"var(--bg-input)"},children:y.jsx("div",{className:"max-h-[300px] overflow-y-auto","data-testid":"banding-scroll-container",onPaste:I,children:C==="continuous"?y.jsxs("table",{className:"w-full text-[11px]",children:[y.jsx("thead",{style:{position:"sticky",top:0,zIndex:1},children:y.jsxs("tr",{style:{borderBottom:"1px solid var(--border)",background:"var(--bg-elevated)"},children:[y.jsx("th",{className:"text-left px-2 py-1.5 font-semibold",style:{color:"var(--text-muted)",width:52},children:"From"}),y.jsx("th",{className:"text-left px-2 py-1.5 font-semibold",style:{color:"var(--text-muted)",width:60},children:"Value"}),y.jsxs("th",{className:"text-left px-2 py-1.5 font-semibold",style:{color:"var(--text-muted)",width:52},children:["To ",y.jsx("span",{style:{color:"var(--text-muted)",opacity:.55,fontWeight:"normal"},children:"(opt.)"})]}),y.jsx("th",{className:"text-left px-2 py-1.5 font-semibold",style:{color:"var(--text-muted)",width:60},children:"Value"}),y.jsx("th",{className:"text-left px-2 py-1.5 font-semibold",style:{color:"var(--text-muted)"},children:"Label"}),z&&y.jsx("th",{className:"text-right px-2 py-1.5 font-semibold",style:{color:"var(--text-muted)",width:50},children:"Matches"}),y.jsx("th",{style:{width:28}})]})}),y.jsx("tbody",{children:j.length===0?y.jsx("tr",{children:y.jsx("td",{colSpan:X,className:"px-2 py-3 text-center",style:{color:"var(--text-muted)"},children:"No rules yet"})}):j.map((te,V)=>y.jsxs("tr",{style:{borderBottom:"1px solid var(--border)"},children:[y.jsx("td",{className:"px-1 py-1.5",children:y.jsxs("select",{value:te.op1||"",onChange:ne=>_(V,"op1",ne.target.value),"aria-label":`Rule ${V+1} lower operator`,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:[y.jsx("option",{value:"",children:"—"}),v4t.map(ne=>y.jsx("option",{value:ne,children:ne},ne))]})}),y.jsx("td",{className:"px-1 py-1.5",children:y.jsx("input",{type:"text",value:te.val1??"",onChange:ne=>_(V,"val1",ne.target.value),"aria-label":`Rule ${V+1} lower 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:""})}),y.jsx("td",{className:"px-1 py-1.5",children:y.jsxs("select",{value:te.op2||"",onChange:ne=>_(V,"op2",ne.target.value),"aria-label":`Rule ${V+1} upper operator`,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:[y.jsx("option",{value:"",children:"—"}),v4t.map(ne=>y.jsx("option",{value:ne,children:ne},ne))]})}),y.jsx("td",{className:"px-1 py-1.5",children:y.jsx("input",{type:"text",value:te.val2??"",onChange:ne=>_(V,"val2",ne.target.value),"aria-label":`Rule ${V+1} upper 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:""})}),y.jsx("td",{className:"px-1 py-1.5",children:y.jsx("input",{type:"text",value:te.assignment??"",onChange:ne=>_(V,"assignment",ne.target.value),"aria-label":`Rule ${V+1} label`,onKeyDown:ne=>q(ne,V),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:u},placeholder:""})}),z&&y.jsx("td",{className:"px-1 py-1.5 text-right text-[10px]",children:y.jsx("span",{style:{color:h[V]===0?"#ef4444b3":"var(--text-muted)"},children:h[V]??""})}),y.jsx("td",{className:"px-1 py-1.5 text-center",children:y.jsx("button",{onClick:()=>P(V),"aria-label":`Delete rule ${V+1}`,className:y4t,children:y.jsx(CMe,{size:11})})})]},x4t(te,V)))})]}):y.jsxs("table",{className:"w-full text-[11px]",children:[y.jsx("thead",{style:{position:"sticky",top:0,zIndex:1},children:y.jsxs("tr",{style:{borderBottom:"1px solid var(--border)",background:"var(--bg-elevated)"},children:[y.jsx("th",{className:"text-left px-2 py-1.5 font-semibold",style:{color:"var(--text-muted)"},children:"Value"}),y.jsx("th",{className:"text-left px-2 py-1.5 font-semibold",style:{color:"var(--text-muted)"},children:"Maps To"}),z&&y.jsx("th",{className:"text-right px-2 py-1.5 font-semibold",style:{color:"var(--text-muted)",width:50},children:"Matches"}),y.jsx("th",{style:{width:28}})]})}),y.jsx("tbody",{children:j.length===0?y.jsx("tr",{children:y.jsx("td",{colSpan:Q,className:"px-2 py-3 text-center",style:{color:"var(--text-muted)"},children:"No rules yet"})}):j.map((te,V)=>y.jsxs("tr",{style:{borderBottom:"1px solid var(--border)"},children:[y.jsx("td",{className:"px-1 py-1.5",children:y.jsx("input",{type:"text",value:te.value??"",onChange:ne=>_(V,"value",ne.target.value),"aria-label":`Rule ${V+1} match 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:""})}),y.jsx("td",{className:"px-1 py-1.5",children:y.jsx("input",{type:"text",value:te.assignment??"",onChange:ne=>_(V,"assignment",ne.target.value),"aria-label":`Rule ${V+1} group name`,onKeyDown:ne=>q(ne,V),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:u},placeholder:""})}),z&&y.jsx("td",{className:"px-1 py-1.5 text-right text-[10px]",children:y.jsx("span",{style:{color:h[V]===0?"#ef4444b3":"var(--text-muted)"},children:h[V]??""})}),y.jsx("td",{className:"px-1 py-1.5 text-center",children:y.jsx("button",{onClick:()=>P(V),"aria-label":`Delete rule ${V+1}`,className:y4t,children:y.jsx(CMe,{size:11})})})]},x4t(te,V)))})]})})})}function eyn({breakpoints:l,onUpdate:s,rightClosed:u=!0,accentColor:h,matchCounts:g}){const m=g!=null,p=(C,N,_)=>{const P=l.map((I,q)=>q===C?{...I,[N]:_}:I);s(P)},O=()=>{s([...l,{boundary:"",label:""}])},j=C=>{s(l.filter((N,_)=>_!==C))};return y.jsxs("div",{className:"space-y-2",children:[y.jsx("div",{className:"rounded-lg overflow-hidden",style:{border:"1px solid var(--border)",background:"var(--bg-input)"},children:y.jsx("div",{style:{maxHeight:300,overflowY:"auto"},children:y.jsxs("table",{className:"w-full text-[11px]",children:[y.jsx("thead",{children:y.jsxs("tr",{style:{borderBottom:"1px solid var(--border)",background:"var(--bg-elevated)",position:"sticky",top:0,zIndex:1},children:[y.jsxs("th",{className:"text-left px-2 py-1.5 font-semibold",style:{color:"var(--text-muted)",width:70},children:["Up to ",y.jsx("span",{style:{fontWeight:"normal",opacity:.6},children:u?"(incl.)":"(excl.)"})]}),y.jsx("th",{className:"text-left px-2 py-1.5 font-semibold",style:{color:"var(--text-muted)"},children:"Band name"}),m&&y.jsx("th",{className:"text-right px-2 py-1.5 font-semibold",style:{color:"var(--text-muted)",width:55},children:"Matches"}),y.jsx("th",{style:{width:28}})]})}),y.jsx("tbody",{children:l.length===0?y.jsx("tr",{children:y.jsx("td",{colSpan:m?4:3,className:"px-3 py-4 text-center",style:{color:"var(--text-muted)"},children:y.jsxs("div",{className:"text-[11px] leading-relaxed",children:["Define boundaries to split values into bands.",y.jsx("br",{}),y.jsx("span",{style:{opacity:.7},children:"Example: for age, add boundaries at 25, 35, 45, 65"})]})})}):l.map((C,N)=>y.jsxs("tr",{style:{borderBottom:"1px solid var(--border)"},children:[y.jsx("td",{className:"px-1 py-1",children:y.jsx("input",{type:"number","aria-label":`Breakpoint ${N+1} boundary`,value:C.boundary,onChange:_=>p(N,"boundary",_.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:""})}),y.jsx("td",{className:"px-1 py-1",children:y.jsx("input",{type:"text","aria-label":`Breakpoint ${N+1} label`,value:C.label,onChange:_=>p(N,"label",_.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:h},placeholder:""})}),m&&y.jsx("td",{className:"px-2 py-1 text-right",children:y.jsx("span",{className:"text-[11px] font-mono",style:{color:"var(--text-secondary)"},children:g[N]??"—"})}),y.jsx("td",{className:"px-1 py-1 text-center",children:y.jsx("button",{"aria-label":"Delete breakpoint",onClick:()=>j(N),className:"p-0.5 rounded transition-colors hover:text-[#ef4444] focus-visible:text-[#ef4444]",style:{color:"var(--text-muted)"},children:y.jsx(CMe,{size:11})})})]},N))})]})})}),y.jsxs("button",{"aria-label":"Add breakpoint",onClick:O,className:"flex items-center gap-1 px-2 py-1 rounded-md text-[11px] font-medium transition-colors hover:brightness-90 focus-visible:brightness-90",style:{background:Ys(h,.1),color:h,border:`1px solid ${Ys(h,.3)}`},children:[y.jsx(l5,{size:11})," Add"]})]})}const YW=40,k4t=12;function tyn({values:l,boundaries:s,height:u=50,accentColor:h}){if(l.length===0)return null;let g=l[0],m=l[0];for(let _=1;_<l.length;_++)l[_]<g&&(g=l[_]),l[_]>m&&(m=l[_]);const p=m-g;if(p===0){const _=u-k4t;return y.jsxs("svg",{role:"img","aria-label":"Distribution histogram",width:"100%",height:u,style:{display:"block"},children:[y.jsx("rect",{x:"45%",y:0,width:"10%",height:_,fill:"var(--text-muted)",opacity:.3}),y.jsx("text",{x:"0",y:u,fontSize:9,fill:"var(--text-muted)",children:tMe(g)}),s.map((P,I)=>y.jsx("line",{x1:"50%",y1:0,x2:"50%",y2:_,stroke:h,strokeWidth:1.5,strokeDasharray:"3,2"},I))]})}const O=new Array(YW).fill(0);for(const _ of l){let P=Math.floor((_-g)/p*YW);P>=YW&&(P=YW-1),O[P]++}const j=Math.max(...O),C=u-k4t,N=100/YW;return y.jsxs("svg",{role:"img","aria-label":"Distribution histogram",width:"100%",height:u,style:{display:"block"},viewBox:`0 0 100 ${u}`,preserveAspectRatio:"none",children:[O.map((_,P)=>{if(_===0)return null;const I=_/j*C;return y.jsx("rect",{x:P*N,y:C-I,width:N,height:I,fill:"var(--text-muted)",opacity:.3},P)}),s.map((_,P)=>{const I=(_-g)/p*100;return I<0||I>100?null:y.jsx("line",{x1:I,y1:0,x2:I,y2:C,stroke:h,strokeWidth:.5,strokeDasharray:"1,0.5"},P)}),y.jsx("text",{x:0,y:u-1,fontSize:2.5,fill:"var(--text-muted)",textAnchor:"start",children:tMe(g)}),y.jsx("text",{x:100,y:u-1,fontSize:2.5,fill:"var(--text-muted)",textAnchor:"end",children:tMe(m)})]})}function tMe(l){return Number.isInteger(l)?l.toString():l.toFixed(1)}function nyn({onGenerate:l,onClose:s,accentColor:u,dataMin:h,dataMax:g}){const[m,p]=re.useState(h??""),[O,j]=re.useState(g??""),C=h!=null&&g!=null&&g>h?Math.ceil((g-h)/10):"",[N,_]=re.useState(C),[P,I]=re.useState(null),q=()=>{I(null);const X=typeof m=="number"?m:parseFloat(String(m)),Q=typeof O=="number"?O:parseFloat(String(O)),te=typeof N=="number"?N:parseFloat(String(N));if(isNaN(X)||isNaN(Q)||isNaN(te)){I("All fields must be valid numbers");return}if(te<=0){I("Step must be greater than 0");return}if(Q<=X){I("End must be greater than start");return}const V=[];for(let se=+(X+te).toFixed(10);se<=Q&&(V.push(se),!(V.length>1e4));se=+(se+te).toFixed(10));(V.length===0||V[V.length-1]<Q)&&V.push(Q);const ne=Number.isInteger(X)&&Number.isInteger(te)&&V.every(Number.isInteger),ce=[];for(let se=0;se<V.length;se++){const me=V[se];if(se===0)ce.push({boundary:String(me),label:`${X}–${me}`});else{const ye=V[se-1];ne?ce.push({boundary:String(me),label:`${ye+1}–${me}`}):ce.push({boundary:String(me),label:`>${ye}–${me}`})}}l(ce)},z={background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-primary)"};return y.jsxs("div",{role:"dialog","aria-label":"Generate evenly-spaced bands",className:"rounded-lg p-3 space-y-2.5",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)",boxShadow:"0 4px 12px rgba(0,0,0,0.15)"},children:[y.jsx("div",{className:"text-xs font-semibold",style:{color:"var(--text-secondary)"},children:"Generate even bands"}),y.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[y.jsxs("div",{children:[y.jsx("label",{htmlFor:"gen-start",className:"text-[11px] font-medium block mb-0.5",style:{color:"var(--text-muted)"},children:"Start"}),y.jsx("input",{id:"gen-start",type:"number",value:m,onChange:X=>p(X.target.value===""?"":parseFloat(X.target.value)),className:"w-full px-1.5 py-1 rounded text-[11px] font-mono focus:outline-none",style:z,placeholder:"0"})]}),y.jsxs("div",{children:[y.jsx("label",{htmlFor:"gen-end",className:"text-[11px] font-medium block mb-0.5",style:{color:"var(--text-muted)"},children:"End"}),y.jsx("input",{id:"gen-end",type:"number",value:O,onChange:X=>j(X.target.value===""?"":parseFloat(X.target.value)),className:"w-full px-1.5 py-1 rounded text-[11px] font-mono focus:outline-none",style:z,placeholder:"100"})]}),y.jsxs("div",{children:[y.jsx("label",{htmlFor:"gen-step",className:"text-[11px] font-medium block mb-0.5",style:{color:"var(--text-muted)"},children:"Step"}),y.jsx("input",{id:"gen-step",type:"number",value:N,onChange:X=>_(X.target.value===""?"":parseFloat(X.target.value)),className:"w-full px-1.5 py-1 rounded text-[11px] font-mono focus:outline-none",style:z,placeholder:"10"})]})]}),P&&y.jsx("div",{className:"text-[11px] font-medium",style:{color:"#ef4444"},children:P}),y.jsxs("div",{className:"flex items-center gap-2 justify-end",children:[y.jsx("button",{onClick:s,className:"px-2.5 py-1 rounded-md text-[11px] font-medium transition-colors",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-secondary)"},children:"Cancel"}),y.jsx("button",{onClick:q,className:"px-2.5 py-1 rounded-md text-[11px] font-medium transition-colors",style:{background:Ys(u,.15),border:`1px solid ${Ys(u,.4)}`,color:u},children:"Generate"})]})]})}function iyn({availableValues:l,existingValues:s,onAddValue:u,accentColor:h}){const[g,m]=re.useState("");if(l.length===0)return y.jsx("div",{className:"py-2 text-center text-[11px]",style:{color:"var(--text-muted)"},children:"Connect data to see values"});const p=l.length>10,O=new Set(s),j=g?l.filter(C=>C.value.toLowerCase().includes(g.toLowerCase())):l;return y.jsxs("div",{className:"space-y-1.5",children:[y.jsx("div",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:"Available values"}),p&&y.jsx("input",{type:"text","aria-label":"Filter available values",placeholder:"Filter values...",value:g,onChange:C=>m(C.target.value),className:"w-full px-2 py-1 rounded text-[11px] font-mono focus:outline-none",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-primary)"}}),y.jsx("div",{className:"flex flex-wrap gap-1",style:{maxHeight:120,overflowY:"auto"},children:j.map(C=>{const N=O.has(C.value);return y.jsxs("button",{disabled:N,onClick:()=>{N||u(C.value)},className:"px-2 py-0.5 rounded-full text-[11px] font-mono transition-colors",style:{background:N?Ys(h,.08):Ys(h,.12),border:`1px solid ${N?Ys(h,.2):Ys(h,.35)}`,color:h,opacity:N?.5:1,cursor:N?"default":"pointer"},children:[C.value," (",C.count,")"]},C.value)})})]})}const ryn={op1:">",val1:"",op2:"",val2:"",assignment:""},syn={value:"",assignment:""};function oyn({config:l,onUpdate:s,inputSources:u,onDeleteInput:h,upstreamColumns:g=[],accentColor:m,previewRows:p}){const O=zxn(l),[j,C]=re.useState(0),N=Math.max(0,Math.min(j,O.length-1)),_=O[N],[P,I]=re.useState(!1),q=Object.fromEntries(g.map(Ie=>[Ie.name,Ie.dtype])),z=Ie=>{s("factors",Ie)},X=(Ie,Ye)=>{const Je=O.map((_t,nn)=>nn===Ie?{..._t,...Ye}:_t);z(Je)},Q=(Ie,Ye)=>{const Je={column:Ye},_t=qxn(Ye,q);_t&&_t!==O[Ie].banding&&(Je.banding=_t,Je.rules=[]);const nn=O[Ie],an=nn.column?b4t(nn.column):"";(!nn.outputColumn||nn.outputColumn===an)&&(Je.outputColumn=Ye?b4t(Ye):""),X(Ie,Je)},te=Ie=>{const Ye=O[N],Je={...Ye._prevRules||{},[Ye.banding]:Ye.rules},_t=Je[Ie]||[];X(N,{banding:Ie,rules:_t,_prevRules:Je})},V=()=>{const Ie=[...O,{banding:"continuous",column:"",outputColumn:"",rules:[],default:null}];z(Ie),C(Ie.length-1)},ne=Ie=>{const Ye=O[Ie],Je={banding:Ye.banding,column:"",outputColumn:"",rules:Ye.rules.map(nn=>({...nn})),default:Ye.default},_t=[...O,Je];z(_t),C(_t.length-1)},ce=Ie=>{if(O.length<=1)return;const Ye=O.filter((Je,_t)=>_t!==Ie);z(Ye),N>=Ye.length&&C(Ye.length-1)},se=(Ie,Ye)=>Ie.outputColumn?Ie.outputColumn:Ie.column?Ie.column:`Column ${Ye+1}`,me=Ie=>!!(Ie.column&&Ie.outputColumn&&(Ie.rules||[]).length>0),ye=O.length>1||_.column!==""||(_.rules||[]).length>0,qe=O.length===1&&!O[0].column&&!O[0].outputColumn,Be=O.length>1||!qe,ke=(()=>{if(!(p!=null&&p.length)||!_.column)return;const Ie=_.column,Ye=_.rules||[];if(Ye.length)return _.banding==="categorical"?Ye.map(Je=>{const _t=Je;return p.filter(nn=>String(nn[Ie]??"")===_t.value).length}):_.banding==="breakpoints"?Wxn(Ye,_.rightClosed??!0).map(nn=>p.filter(an=>{const Jn=Number(an[Ie]);return isNaN(Jn)?!1:w4t(Jn,nn)}).length):Ye.map(Je=>{const _t=Je;return p.filter(nn=>{const an=Number(nn[Ie]);return isNaN(an)?!1:w4t(an,_t)}).length})})(),le=(p==null?void 0:p.length)??0,W=ke?ke.reduce((Ie,Ye)=>Ie+Ye,0):0,pe=le-W,je=(()=>{const Ie=_.rules||[];if(!Ie.length)return[];const Ye=[];if(_.banding==="categorical"){const Je=Jxn(Ie);for(const _t of Je)Ye.push(`Duplicate value "${_t.value}" in rules ${_t.indices.map(nn=>nn+1).join(", ")}`)}else if(_.banding==="continuous"){const Je=Ie;for(let an=0;an<Je.length;an++){const Jn=Uxn(Je[an]);Jn&&Ye.push(`Rule ${an+1}: ${Jn}`)}const _t=Gxn(Je);for(const an of _t)Ye.push(an.desc);const nn=Qxn(Je);for(const an of nn)Ye.push(an)}return Ye})(),ue=(()=>{if(_.banding!=="continuous"&&_.banding!=="breakpoints"||!_.column||!(p!=null&&p.length))return null;const Ie=[];for(const Je of p){const _t=Number(Je[_.column]);isNaN(_t)||Ie.push(_t)}if(Ie.length===0)return null;const Ye=[];for(const Je of _.rules||[])if(_.banding==="breakpoints"){const nn=Number(Je.boundary);isNaN(nn)||Ye.push(nn)}return{values:Ie,boundaries:Ye}})(),ve=(()=>{if(_.banding!=="categorical"||!_.column||!(p!=null&&p.length))return null;const Ie=new Map;for(const Ye of p){const Je=String(Ye[_.column]??"");Je&&Ie.set(Je,(Ie.get(Je)||0)+1)}return Array.from(Ie.entries()).map(([Ye,Je])=>({value:Ye,count:Je})).sort((Ye,Je)=>Je.count-Ye.count)})(),xe=(()=>{if(!_.column||!(p!=null&&p.length))return{dataMin:void 0,dataMax:void 0};let Ie=1/0,Ye=-1/0;for(const Je of p){const _t=Number(Je[_.column]);isNaN(_t)||(_t<Ie&&(Ie=_t),_t>Ye&&(Ye=_t))}return Ie<=Ye?{dataMin:Ie,dataMax:Ye}:{dataMin:void 0,dataMax:void 0}})(),Ee=()=>{if(_.banding==="breakpoints")return;const Ie=_.banding==="continuous"?{...ryn}:{...syn};X(N,{rules:[..._.rules||[],Ie]})},tt=Ie=>{const Ye={value:Ie,assignment:Ie};X(N,{rules:[..._.rules||[],Ye]})},Te=Ie=>{X(N,{rules:Ie}),I(!1)},et=_.banding==="breakpoints"&&(_.rules||[]).length===0;return y.jsxs("div",{className:"px-4 py-3 space-y-3 overflow-y-auto",children:[y.jsx(KM,{inputSources:u,onDeleteInput:h}),Be&&y.jsxs("div",{children:[y.jsxs("div",{className:"flex items-center gap-1 overflow-x-auto flex-nowrap whitespace-nowrap",role:"tablist","aria-label":"Banding columns",children:[O.map((Ie,Ye)=>y.jsxs("div",{role:"tab",id:`banding-tab-${Ye}`,"aria-selected":Ye===N,tabIndex:Ye===N?0:-1,onClick:()=>C(Ye),onKeyDown:Je=>{(Je.key==="Enter"||Je.key===" ")&&(Je.preventDefault(),C(Ye))},className:"relative flex items-center gap-1 px-2.5 py-1.5 rounded-t-lg text-[11px] font-medium transition-colors cursor-pointer shrink-0",style:{background:Ye===N?"var(--bg-input)":"transparent",border:Ye===N?"1px solid var(--border)":"1px solid transparent",borderBottom:Ye===N?"1px solid var(--bg-input)":"1px solid var(--border)",color:Ye===N?m:"var(--text-muted)"},children:[y.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full shrink-0",style:{background:me(Ie)?"#22c55e":"#f59e0b"}}),y.jsx("span",{className:"font-mono truncate max-w-[100px]",children:se(Ie,Ye)}),(Ie.rules||[]).length>0&&y.jsx("button",{type:"button","aria-label":"Duplicate column",onClick:Je=>{Je.stopPropagation(),ne(Ye)},className:"ml-0.5 p-0.5 rounded transition-colors cursor-pointer hover:bg-[rgba(0,0,0,0.1)] focus-visible:bg-[rgba(0,0,0,0.1)]",style:{color:"var(--text-muted)"},children:y.jsx(WAe,{size:9})}),O.length>1&&y.jsx("button",{type:"button","aria-label":"Remove column",onClick:Je=>{Je.stopPropagation(),ce(Ye)},className:"ml-0.5 p-0.5 rounded transition-colors cursor-pointer hover:text-[#ef4444] focus-visible:text-[#ef4444]",style:{color:"var(--text-muted)"},children:y.jsx(Ix,{size:9})})]},Ye)),y.jsx("button",{onClick:V,"aria-label":"Add column",className:"flex items-center gap-0.5 px-2 py-1.5 rounded-lg text-[11px] font-medium transition-colors shrink-0 hover:bg-[rgba(0,0,0,0.05)]",style:{color:m},children:y.jsx(l5,{size:11})})]}),y.jsx("div",{style:{borderTop:"1px solid var(--border)",marginTop:-1}})]}),ye&&y.jsxs("div",{role:"tabpanel",id:"banding-tabpanel","aria-labelledby":`banding-tab-${N}`,children:[y.jsx("div",{className:"flex items-center gap-1.5",children:y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Type"})}),y.jsx("div",{className:"mt-1",children:y.jsx(VM,{value:_.banding,onChange:te,options:[{key:"breakpoints",label:"Breakpoints"},{key:"categorical",label:"Categorical"}],accentColor:m})})]}),!ye&&Be&&y.jsx("div",{role:"tabpanel",id:"banding-tabpanel","aria-labelledby":`banding-tab-${N}`}),y.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[y.jsxs("div",{children:[y.jsx("label",{htmlFor:`banding-input-col-${N}`,className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1",style:{color:"var(--text-muted)"},children:"Input Column"}),g.length>0?y.jsxs("select",{id:`banding-input-col-${N}`,value:_.column,onChange:Ie=>Q(N,Ie.target.value),className:"w-full px-2 py-1.5 text-xs font-mono rounded-lg focus:outline-none focus:ring-2",style:na,children:[y.jsx("option",{value:"",children:"Select column..."}),g.map(Ie=>y.jsxs("option",{value:Ie.name,children:[Ie.name," (",Ie.dtype,")"]},Ie.name))]},`col-${N}`):y.jsx("input",{id:`banding-input-col-${N}`,type:"text",value:_.column||"",onChange:Ie=>X(N,{column:Ie.target.value}),className:"w-full px-2 py-1.5 text-xs font-mono rounded-lg focus:outline-none focus:ring-2",style:na},`col-${N}`)]}),y.jsxs("div",{children:[y.jsx("label",{htmlFor:`banding-output-col-${N}`,className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1",style:{color:"var(--text-muted)"},children:"Output Column"}),y.jsx("input",{id:`banding-output-col-${N}`,type:"text",placeholder:"",value:_.outputColumn||"",onChange:Ie=>X(N,{outputColumn:Ie.target.value}),className:"w-full px-2 py-1.5 text-xs font-mono rounded-lg focus:outline-none focus:ring-2",style:na},`out-${N}`)]})]}),ue&&y.jsx(tyn,{values:ue.values,boundaries:ue.boundaries,accentColor:m}),ve&&y.jsx(iyn,{availableValues:ve,existingValues:(_.rules||[]).map(Ie=>Ie.value).filter(Boolean),onAddValue:tt,accentColor:m}),_.banding==="breakpoints"?y.jsxs("div",{className:"space-y-2",children:[et?y.jsxs("div",{className:"rounded-lg px-4 py-5 text-center space-y-3",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)"},children:[y.jsx("div",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:"No breakpoints yet."}),y.jsxs("div",{className:"flex items-center justify-center gap-3",children:[y.jsx("button",{onClick:()=>I(!0),className:"px-3 py-1.5 rounded-md text-[11px] font-medium transition-colors",style:{background:Ys(m,.15),border:`1px solid ${Ys(m,.4)}`,color:m},children:"Generate even bands"}),y.jsx("span",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"or"}),y.jsx("button",{onClick:()=>X(N,{rules:[{boundary:"",label:""}]}),className:"px-3 py-1.5 rounded-md text-[11px] font-medium transition-colors",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-secondary)"},children:"Add manually"})]})]}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[y.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:["Breakpoints (",(_.rules||[]).filter(Ie=>{var Ye;return((Ye=Ie.boundary)==null?void 0:Ye.trim())!==""}).length,")"]}),y.jsx("button",{onClick:()=>I(!0),className:"flex items-center gap-1 px-2 py-1 rounded-md text-[11px] font-medium transition-colors",style:{background:Ys(m,.1),color:m,border:`1px solid ${Ys(m,.3)}`},children:"Generate"})]}),y.jsx(eyn,{breakpoints:_.rules||[],onUpdate:Ie=>X(N,{rules:Ie}),rightClosed:_.rightClosed??!0,accentColor:m,matchCounts:ke})]}),P&&y.jsx("div",{className:"relative",children:y.jsx(nyn,{onGenerate:Te,onClose:()=>I(!1),accentColor:m,dataMin:xe.dataMin,dataMax:xe.dataMax})})]}):y.jsxs("div",{children:[y.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[y.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:["Rules (",(_.rules||[]).length,")"]}),y.jsxs("button",{onClick:Ee,className:"flex items-center gap-1 px-2 py-1 rounded-md text-[11px] font-medium transition-colors",style:{background:Ys(m,.1),color:m,border:`1px solid ${Ys(m,.3)}`},children:[y.jsx(l5,{size:11})," Add"]})]}),y.jsx(Zxn,{factor:_,onUpdateFactor:Ie=>X(N,Ie),accentColor:m,matchCounts:ke,onAddRule:Ee},N)]}),je.length>0&&y.jsx("div",{className:"space-y-1",children:je.map((Ie,Ye)=>y.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded text-[11px]",style:{background:"rgba(245, 158, 11, 0.1)",border:"1px solid rgba(245, 158, 11, 0.3)",color:"#f59e0b"},children:[y.jsx(Sp,{size:12}),y.jsx("span",{children:Ie})]},Ye))}),y.jsxs("div",{children:[y.jsxs("div",{className:"flex items-center justify-between mb-1",children:[y.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:["Default ",y.jsx("span",{className:"ml-1.5 normal-case tracking-normal font-normal",children:"(unmatched rows)"})]}),ke&&le>0&&y.jsxs("span",{className:"text-[10px] font-medium",style:{color:pe===0?"#22c55e":"#f59e0b"},children:[pe," of ",le," rows"]})]}),y.jsx("input",{type:"text",value:_.default??"",onChange:Ie=>X(N,{default:Ie.target.value!==""?Ie.target.value:null}),className:"w-full px-2 py-1.5 text-xs font-mono rounded-lg focus:outline-none focus:ring-2",style:na},`def-${N}`)]}),O.length>1&&y.jsx("div",{"data-testid":"banding-summary",className:"rounded-lg px-3 py-2 space-y-1",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)"},children:O.map((Ie,Ye)=>{const Je=me(Ie);return y.jsxs("div",{"data-testid":`summary-row-${Ye}`,className:"text-[10px] leading-relaxed cursor-pointer rounded px-1 -mx-1 hover:bg-[rgba(0,0,0,0.05)]",style:{color:"var(--text-muted)",opacity:Je?1:.5},onClick:()=>C(Ye),children:[!Je&&y.jsx(Sp,{size:10,className:"inline-block mr-1 align-text-bottom",style:{color:"#f59e0b"}}),y.jsx("span",{className:"font-mono font-medium",style:{color:Je?"var(--text-secondary)":"var(--text-muted)"},children:Ie.column||"(no column)"}),Ie.outputColumn&&y.jsxs(y.Fragment,{children:[" → ",y.jsx("span",{className:"font-mono font-medium",style:{color:m},children:Ie.outputColumn})]}),(Ie.rules||[]).length>0&&y.jsxs(y.Fragment,{children:[" · ",Ie.rules.length," rule",Ie.rules.length!==1?"s":""]})," · ",Ie.banding]},Ye)})})]})}function cyn(l){const s=l.tables;return Array.isArray(s)&&s.length>0?s:[{name:"Table 1",factors:[],outputColumn:"",defaultValue:"1.0",entries:[]}]}function w9t(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 v9t(l){if(isNaN(l))return"var(--text-secondary)";const s=l-1;return s>.005?"#dc2626":s<-.005?"#2563eb":"#10b981"}function ade(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=s.reduce((m,p)=>Math.min(m,p),1/0),h=s.reduce((m,p)=>Math.max(m,p),-1/0),g=s.reduce((m,p)=>m+p,0)/s.length;return{min:u,max:h,avg:g,count:s.length}}function O4t(l,s,u,h){if(l.length===0)return[];const g=l.map(N=>s[N]||[]);if(g.some(N=>N.length===0))return u;const m=new Map;for(const N of u){const _=l.map(I=>String(N[I]??"")).join(""),P=N.value;if(P!=null&&P!==""){const I=typeof P=="number"?P:parseFloat(String(P));Number.isNaN(I)||m.set(_,I)}}const p=h!=null&&String(h).trim()?parseFloat(String(h)):1,O=Number.isNaN(p)?1:p,j=[];function C(N,_){if(N===l.length){const P=l.map(I=>_[I]).join("");j.push({..._,value:m.get(P)??O});return}for(const P of g[N])C(N+1,{..._,[l[N]]:P})}return C(0,{}),j}function x9t(l){const s=typeof l=="number"?l:typeof l=="string"&&l.trim()?parseFloat(l):1;return Number.isNaN(s)?1:s}function y9t({val:l,onCommit:s,...u}){const[h,g]=re.useState(String(l));return re.useEffect(()=>g(String(l)),[l]),y.jsx("input",{type:"number",step:"0.01",value:h,onChange:m=>g(m.target.value),onBlur:()=>s(h),...u})}function k9t({stats:l}){return l?y.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:[y.jsxs("span",{children:["n=",l.count]}),y.jsxs("span",{style:{color:"#2563eb"},children:["min ",l.min.toFixed(3)]}),y.jsxs("span",{style:{color:"var(--text-secondary)"},children:["avg ",l.avg.toFixed(3)]}),y.jsxs("span",{style:{color:"#dc2626"},children:["max ",l.max.toFixed(3)]})]}):null}function lyn({table:l,bandingLevels:s,onUpdateEntries:u}){const h=l.factors[0],g=l.defaultValue,m=re.useMemo(()=>l.entries||[],[l.entries]),p=re.useMemo(()=>ade(m),[m]);if(!h)return null;const O=s[h]||[],j=new Map;for(const P of m){const I=String(P[h]??"");I&&j.set(I,typeof P.value=="number"?P.value:parseFloat(String(P.value??"1")))}const C=p?Math.max(Math.abs(p.max),Math.abs(p.min),1):1,N=x9t(g),_=(P,I)=>{const q=parseFloat(I),z=I===""||Number.isNaN(q)?N:q,X=m.map(Q=>String(Q[h])===P?{...Q,value:z}:Q);X.some(Q=>String(Q[h])===P)||X.push({[h]:P,value:Number.isNaN(z)?0:z}),u(X)};return y.jsxs("div",{className:"rounded-lg overflow-hidden",style:{border:"1px solid var(--border)"},children:[y.jsxs("table",{className:"w-full text-[11px]",style:{borderCollapse:"separate",borderSpacing:0},children:[y.jsx("thead",{children:y.jsxs("tr",{style:{background:"var(--bg-elevated)"},children:[y.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}),y.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"}),y.jsx("th",{className:"px-2 py-2 text-[10px]",style:{color:"var(--text-muted)",borderBottom:"2px solid var(--border)",width:"40%"}})]})}),y.jsx("tbody",{children:O.length===0?y.jsx("tr",{children:y.jsx("td",{colSpan:3,className:"px-2 py-4 text-center",style:{color:"var(--text-muted)"},children:"No banding levels found"})}):O.map((P,I)=>{const q=j.get(P)??N,z=Math.min(Math.abs(q)/C*100,100);return y.jsxs("tr",{style:{borderBottom:"1px solid var(--border)",background:I%2===0?"var(--bg-input)":"var(--bg-surface)"},children:[y.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:P}),y.jsx("td",{className:"px-0.5 py-0.5",style:{borderBottom:"1px solid var(--border)"},children:y.jsx(y9t,{val:q,onCommit:X=>_(P,X),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:w9t(q),border:"1px solid var(--border)",color:v9t(q),fontWeight:600}})}),y.jsx("td",{className:"px-2 py-1.5",style:{borderBottom:"1px solid var(--border)"},children:y.jsx("div",{className:"relative h-3 rounded-full overflow-hidden",style:{background:"var(--bg-elevated)"},children:y.jsx("div",{className:"absolute inset-y-0 left-0 rounded-full transition-all",style:{width:`${z}%`,background:q>=1?"rgba(239, 68, 68, 0.35)":"rgba(59, 130, 246, 0.35)"}})})})]},P)})})]}),y.jsx(k9t,{stats:p})]})}function j4t({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],O=g[1],j=re.useMemo(()=>l.entries||[],[l.entries]),C=re.useMemo(()=>ade(j),[j]),N=x9t(l.defaultValue);if(!p||!O)return null;const _=s[p]||[],P=s[O]||[],I=new Map;for(const z of j){if(!Object.entries(m).every(([te,V])=>String(z[te])===V))continue;const Q=`${z[p]}${z[O]}`;I.set(Q,typeof z.value=="number"?z.value:parseFloat(String(z.value??"1")))}const q=(z,X,Q)=>{const te=parseFloat(Q),V=Q===""||Number.isNaN(te)?N:te,ne=me=>String(me[p])===z&&String(me[O])===X&&Object.entries(m).every(([ye,qe])=>String(me[ye])===qe);let ce=!1;const se=j.map(me=>ne(me)?(ce=!0,{...me,value:V}):me);ce||se.push({...m,[p]:z,[O]:X,value:V}),u(se)};return _.length===0||P.length===0?y.jsx("div",{className:"px-2 py-3 text-center text-[11px]",style:{color:"var(--text-muted)"},children:"No banding levels found for selected factors"}):y.jsxs("div",{className:"rounded-lg overflow-hidden",style:{border:"1px solid var(--border)"},children:[y.jsx("div",{className:"overflow-x-auto",children:y.jsxs("table",{className:"w-full text-[11px]",style:{borderCollapse:"separate",borderSpacing:0},children:[y.jsx("thead",{children:y.jsxs("tr",{style:{background:"var(--bg-elevated)"},children:[y.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:[y.jsx("span",{style:{color:"var(--text-secondary)"},children:p}),y.jsx("span",{style:{color:"var(--text-muted)",margin:"0 4px"},children:"↓"}),y.jsx("span",{style:{color:"var(--text-secondary)"},children:O}),y.jsx("span",{style:{color:"var(--text-muted)",margin:"0 2px"},children:"→"})]}),P.map(z=>y.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:z},z))]})}),y.jsx("tbody",{children:_.map((z,X)=>y.jsxs("tr",{style:{background:X%2===0?"var(--bg-input)":"var(--bg-surface)"},children:[y.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:X%2===0?"var(--bg-input)":"var(--bg-surface)"},children:z}),P.map(Q=>{const te=I.get(`${z}${Q}`)??N;return y.jsx("td",{className:"px-0.5 py-0.5",style:{borderBottom:"1px solid var(--border)"},children:y.jsx(y9t,{val:te,onCommit:V=>q(z,Q,V),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:w9t(te),border:"1px solid var(--border)",color:v9t(te),fontWeight:600,minWidth:56}})},Q)})]},z))})]})}),y.jsx(k9t,{stats:C})]})}function uyn({config:l,onUpdate:s,inputSources:u,onDeleteInput:h,allNodes:g,accentColor:m}){const[p,O]=re.useState(0),[j,C]=re.useState(0),N=cyn(l),_=Z1n(g),P=An(l,"operation","multiply"),I=An(l,"combinedColumn",""),q=Object.keys(_),z=Math.min(p,N.length-1),X=N[z]||{name:"Table 1",factors:[],outputColumn:"",defaultValue:"1.0",entries:[]},Q=pe=>s("tables",pe),te=(pe,je)=>{const ue=N.map((ve,xe)=>xe===pe?{...ve,...je}:ve);Q(ue)},V=(pe,je)=>{const ue=N[pe],ve=O4t(je,_,ue.entries,ue.defaultValue);te(pe,{factors:je,entries:ve})},ne=(pe,je)=>{const ue=N[pe];ue.factors.length>=3||ue.factors.includes(je)||V(pe,[...ue.factors,je])},ce=(pe,je)=>{const ve=N[pe].factors.filter((xe,Ee)=>Ee!==je);V(pe,ve)},se=(pe,je)=>{te(pe,{entries:je})},me=()=>{Q([...N,{name:`Table ${N.length+1}`,factors:[],outputColumn:"",defaultValue:"1.0",entries:[]}]),O(N.length)},ye=pe=>{if(N.length<=1)return;const je=N.filter((ue,ve)=>ve!==pe);Q(je),O(Math.min(p,je.length-1))},qe=()=>{const pe=N[z],je=O4t(pe.factors,_,pe.entries,pe.defaultValue);te(z,{entries:je})},Be=X.factors.length,ke=Be===3?X.factors[2]:null,le=ke?_[ke]||[]:[],W=Math.min(j,Math.max(0,le.length-1));return y.jsxs("div",{className:"px-4 py-3 space-y-3 overflow-y-auto",children:[y.jsx(KM,{inputSources:u,onDeleteInput:h}),y.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-2 rounded-lg text-xs font-medium",style:{background:Ys(m,.1),border:`1px solid ${Ys(m,.3)}`,color:m},children:[y.jsx(_he,{size:13}),y.jsxs("span",{children:["Rating Tables · ",N.length," table",N.length!==1?"s":""]})]}),N.length>=2&&y.jsxs("div",{className:"space-y-2 p-2.5 rounded-lg",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] shrink-0",style:{color:"var(--text-muted)"},children:"Combine"}),y.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:na,children:[y.jsx("option",{value:"multiply",children:"× Multiply (relativities)"}),y.jsx("option",{value:"add",children:"+ Add (loadings)"}),y.jsx("option",{value:"min",children:"↓ Min"}),y.jsx("option",{value:"max",children:"↑ Max"})]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1",style:{color:"var(--text-muted)"},children:"Combined Output Column"}),y.jsx("input",{type:"text",defaultValue:I,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:na,placeholder:"combined_factor"})]}),N.some(pe=>pe.outputColumn)&&(()=>{const pe=N.filter(ve=>ve.outputColumn).map(ve=>ve.outputColumn),je=I||"?";let ue="";return P==="multiply"?ue=pe.join(" × "):P==="add"?ue=pe.join(" + "):P==="min"?ue=`min(${pe.join(", ")})`:P==="max"&&(ue=`max(${pe.join(", ")})`),y.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:[y.jsx("span",{style:{color:m,fontWeight:600},children:je}),y.jsx("span",{style:{color:"var(--text-muted)"},children:"="}),y.jsx("span",{children:ue}),!I&&y.jsx("span",{style:{color:"var(--text-muted)",fontStyle:"italic"},children:" — name the output above"})]})})()]}),y.jsxs("div",{className:"flex items-center gap-1 overflow-x-auto pb-1",children:[N.map((pe,je)=>{const ue=ade(pe.entries||[]);return y.jsxs("button",{onClick:()=>{O(je),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:je===z?Ys(m,.12):"var(--bg-surface)",border:je===z?`1px solid ${Ys(m,.4)}`:"1px solid var(--border)",color:je===z?m:"var(--text-secondary)"},children:[pe.name||`Table ${je+1}`,ue&&y.jsx("span",{className:"text-[9px] font-mono px-1 py-0.5 rounded",style:{background:je===z?Ys(m,.15):"var(--bg-elevated)",color:"var(--text-muted)"},children:ue.count}),N.length>1&&y.jsx("button",{type:"button","aria-label":"Remove table",onClick:ve=>{ve.stopPropagation(),ye(je)},className:"ml-0.5 opacity-0 group-hover:opacity-100 transition-opacity cursor-pointer",style:{color:"var(--text-muted)"},children:y.jsx(Ix,{size:10})})]},je)}),y.jsx("button",{onClick:me,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:y.jsx(l5,{size:12})})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1",style:{color:"var(--text-muted)"},children:"Table Name"}),y.jsx("input",{type:"text",defaultValue:X.name,onBlur:pe=>te(z,{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:na,placeholder:"Age Factor"},`name-${z}`)]}),y.jsxs("div",{children:[y.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1",style:{color:"var(--text-muted)"},children:["Factors (",Be,"/3)"]}),y.jsxs("div",{className:"space-y-1.5",children:[X.factors.map((pe,je)=>y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsx("span",{className:"text-[10px] font-bold w-4 text-center",style:{color:"var(--text-muted)"},children:je+1}),y.jsxs("select",{value:pe,onChange:ue=>{const ve=[...X.factors];ve[je]=ue.target.value,V(z,ve)},className:"flex-1 px-2 py-1.5 text-xs font-mono rounded-lg focus:outline-none",style:na,children:[y.jsx("option",{value:"",children:"Select column..."}),q.map(ue=>y.jsxs("option",{value:ue,children:[ue," (",(_[ue]||[]).length," levels)"]},ue))]},`fsel-${z}-${je}`),y.jsx("button",{onClick:()=>ce(z,je),className:"p-1 rounded transition-colors",style:{color:"var(--text-muted)"},onMouseEnter:ue=>{ue.currentTarget.style.color="#ef4444"},onMouseLeave:ue=>{ue.currentTarget.style.color="var(--text-muted)"},children:y.jsx(Ix,{size:11})})]},je)),Be<3&&y.jsxs("select",{value:"",onChange:pe=>{pe.target.value&&ne(z,pe.target.value)},className:"w-full px-2 py-1.5 text-xs rounded-lg focus:outline-none",style:{...na,color:"var(--text-muted)"},children:[y.jsx("option",{value:"",children:"+ Add factor..."}),q.filter(pe=>!X.factors.includes(pe)).map(pe=>y.jsxs("option",{value:pe,children:[pe," (",(_[pe]||[]).length," levels)"]},pe))]})]})]}),y.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1",style:{color:"var(--text-muted)"},children:"Output Column"}),y.jsx("input",{type:"text",defaultValue:X.outputColumn,onBlur:pe=>te(z,{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:na,placeholder:"age_factor"},`out-${z}`)]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1",style:{color:"var(--text-muted)"},children:"Default"}),y.jsx("input",{type:"number",step:"0.01",defaultValue:X.defaultValue??"1.0",onBlur:pe=>te(z,{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:na,placeholder:"1.0"},`def-${z}`)]})]}),Be>0&&y.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"}),Be===0&&y.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"}),Be===1&&y.jsx(lyn,{table:X,bandingLevels:_,onUpdateEntries:pe=>se(z,pe)}),Be===2&&y.jsx(j4t,{table:X,bandingLevels:_,onUpdateEntries:pe=>se(z,pe)}),Be===3&&y.jsxs("div",{className:"space-y-2",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:ke}),y.jsx("select",{value:W,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:na,children:le.map((pe,je)=>y.jsx("option",{value:je,children:pe},pe))})]}),le.length>0&&y.jsx(j4t,{table:X,bandingLevels:_,onUpdateEntries:pe=>se(z,pe),factorOverrides:{factors:[X.factors[0],X.factors[1]],sliceKey:{[X.factors[2]]:le[W]}}})]}),X.entries.length>0&&(()=>{const pe=ade(X.entries);return y.jsxs("div",{className:"flex items-center justify-between text-[10px] font-mono px-1",style:{color:"var(--text-muted)"},children:[y.jsx("span",{children:X.outputColumn?y.jsx("span",{style:{color:"var(--text-secondary)"},children:X.outputColumn}):"untitled"}),y.jsxs("span",{children:[X.entries.length," entries",pe?` · range ${pe.min.toFixed(2)}–${pe.max.toFixed(2)}`:""]})]})})()]})}function yO({children:l,color:s="var(--text-muted)",className:u="",htmlFor:h,as:g="label"}){return y.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 ayn({config:l,onUpdate:s,nodeId:u,allNodes:h,edges:g}){var N;const m=An(l,"fields",[]),p=g.find(_=>_.target===u),O=p?h.find(_=>_.id===p.source):null,j=((N=O==null?void 0:O.data)==null?void 0:N._columns)||[],C=_=>{const P=m.includes(_)?m.filter(I=>I!==_):[...m,_];s("fields",P)};return y.jsxs("div",{className:"px-4 py-3 space-y-3",children:[y.jsxs("div",{children:[y.jsx(yO,{className:"block mb-2",children:"Response Fields"}),j.length===0?y.jsx("div",{className:"text-xs py-3",style:{color:"var(--text-muted)"},children:"Preview or run the upstream node to see columns"}):y.jsx(nNe,{columns:j,checkbox:{isChecked:_=>m.includes(_),onToggle:C,accentClass:"accent-rose-500"},nameColor:_=>m.includes(_)?"var(--text-primary)":"var(--text-muted)"})]}),m.length>0&&y.jsxs("div",{className:"rounded-lg px-3 py-2",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)"},children:[y.jsx(yO,{className:"mb-1.5",as:"div",children:"JSON Preview"}),y.jsx("pre",{className:"text-[11px] font-mono leading-relaxed",style:{color:"var(--text-secondary)"},children:`{
${m.map(_=>`  "${_}": ...`).join(`,
`)}
}`})]})]})}function fyn({config:l,onUpdate:s,inputSources:u,onDeleteInput:h,errorLine:g,accentColor:m}){const p=An(l,"fileType","pickle"),O=An(l,"modelClass","classifier"),j=An(l,"code","");return y.jsxs("div",{className:"flex-1 flex flex-col min-h-0 px-3 py-2 gap-2",children:[y.jsx(KM,{inputSources:u,onDeleteInput:h}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"File Type"}),y.jsx("div",{className:"mt-1",children:y.jsx(VM,{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"&&y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Model Type"}),y.jsx("div",{className:"mt-1",children:y.jsx(VM,{value:O,onChange:C=>s("modelClass",C),options:[{key:"classifier",label:"Classifier"},{key:"regressor",label:"Regressor"}],accentColor:m})})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] mb-1.5 block",style:{color:"var(--text-muted)"},children:"File Path"}),y.jsx(GNe,{currentPath:An(l,"path","")||void 0,onSelect:C=>s("path",C),extensions:".pkl,.pickle,.json,.joblib,.cbm,.onnx,.pmml"})]}),y.jsxs("div",{className:"flex items-center justify-between shrink-0",children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Code"}),y.jsxs("span",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:[y.jsx("code",{className:"px-0.5 rounded",style:{background:"var(--bg-hover)"},children:"obj"})," = loaded file, assign to ",y.jsx("code",{className:"px-0.5 rounded",style:{background:"var(--bg-hover)"},children:"df"})]})]}),y.jsx(XM,{defaultValue:j,onChange:C=>s("code",C),errorLine:g,placeholder:""}),y.jsx("div",{className:"text-[11px] font-mono",style:{color:"var(--text-muted)",opacity:.6},children:"return df"})]})}function hyn(l){const[s,u]=re.useState(null),[h,g]=re.useState(!!l),[m,p]=re.useState(null),O=re.useRef(null),j=re.useCallback((C,N)=>{g(!0),p(null),jdn(C,{signal:N}).then(_=>{N!=null&&N.aborted||(u(_),g(!1))}).catch(_=>{N!=null&&N.aborted||_ instanceof DOMException&&_.name==="AbortError"||(u(null),p(_ instanceof Error?_.message:String(_)),g(!1))})},[]);return re.useEffect(()=>{if(!l)return;const C=new AbortController;return O.current=C,j(l,C.signal),()=>{C.abort()}},[l,j]),{schema:s,setSchema:u,loading:h,error:m,fetchForPath:j}}function dyn({dataPath:l}){return y.jsx(g9t,{resourceKey:l,getStatus:s=>Qdn(s),startFetch:s=>qdn({path:s}).then(u=>({cached:!0,...u})),getProgress:s=>Gdn(s),deleteCache:s=>Udn(s),cancelFetch:s=>Hdn(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 gyn({config:l,onUpdate:s,accentColor:u}){const h=An(l,"path",void 0),{schema:g,loading:m,fetchForPath:p}=hyn(h),O=h&&(h.endsWith(".json")||h.endsWith(".jsonl")),[j,C]=re.useState(!1);return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"px-4 py-3 space-y-3",children:[y.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-2 rounded-lg text-xs font-medium",style:{background:Ys(u,.1),border:`1px solid ${Ys(u,.3)}`,color:u},children:[y.jsx(KAe,{size:14}),y.jsx("span",{children:"This node receives live API requests at deploy time"})]}),y.jsxs("div",{children:[y.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] mb-1.5 block",style:{color:"var(--text-muted)"},children:["Preview Data",y.jsx("span",{className:"ml-1.5 normal-case tracking-normal font-normal",children:".json or .jsonl"})]}),h&&y.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:[y.jsx(HM,{size:14,style:{color:"#22c55e"},className:"shrink-0"}),y.jsx("span",{className:"text-xs font-mono truncate flex-1",style:{color:"#4ade80"},children:h}),y.jsx("button",{"data-testid":"file-change-btn",onClick:()=>C(!j),className:"shrink-0 text-[11px] font-semibold px-2 py-0.5 rounded transition-colors",style:{color:"#4ade80"},children:j?"close":"change"})]}),(!h||j)&&y.jsx("div",{className:"mt-2",children:y.jsx(GNe,{currentPath:void 0,onSelect:N=>{s("path",N),p(N),C(!1)},extensions:".json,.jsonl"})})]}),O&&y.jsx(dyn,{dataPath:h})]}),m&&y.jsx("div",{className:"px-4 py-3",style:{borderTop:"1px solid var(--border)"},children:y.jsx("span",{className:"text-xs",style:{color:"var(--text-muted)"},children:"Loading schema..."})}),y.jsx(Cxn,{schema:g})]})}function pyn({config:l,onUpdate:s,inputSources:u,accentColor:h}){const g=dc(j=>j.sources),m=dc(j=>j.activeSource),p=An(l,"input_scenario_map",{}),O=(j,C)=>{s("input_scenario_map",{...p,[j]:C})};return y.jsxs("div",{className:"px-4 py-3 space-y-3",children:[y.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-2 rounded-lg text-xs font-medium",style:{background:Ys(h,.1),border:`1px solid ${Ys(h,.3)}`,color:h},children:[y.jsx(QOt,{size:14}),y.jsx("span",{children:"Routes inputs based on the active source"})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] mb-1 block",style:{color:"var(--text-muted)"},children:"Active Source"}),y.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}),y.jsx("div",{className:"mt-1 text-[10px]",style:{color:"var(--text-muted)"},children:"Change the active source in the toolbar dropdown"})]}),y.jsxs("div",{children:[y.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,")"]}),y.jsx("div",{className:"space-y-1.5",children:u.map(j=>{const C=p[j.varName]||"",N=C===m;return y.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded-md text-xs",style:{background:N?Ys(h,.1):"var(--bg-surface)",border:N?`1px solid ${Ys(h,.3)}`:"1px solid var(--border)"},children:[y.jsx("span",{className:"w-1.5 h-1.5 rounded-full shrink-0",style:{background:N?h:"var(--text-muted)"}}),y.jsx("span",{className:"font-mono truncate min-w-0 flex-1",style:{color:"var(--text-primary)"},children:j.sourceLabel}),y.jsxs("select",{value:C,onChange:_=>O(j.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:[y.jsx("option",{value:"",children:"—"}),g.map(_=>y.jsx("option",{value:_,children:_},_))]}),N&&y.jsx("span",{className:"text-[10px] font-medium shrink-0",style:{color:h},children:"active"})]},j.varName)})})]})]})}function myn({config:l,onUpdate:s,nodeId:u,allNodes:h,edges:g,submodels:m,preamble:p,accentColor:O}){const j=An(l,"format","parquet"),[C,N]=re.useState(!1),[_,P]=re.useState(null),I=An(l,"path",""),[q,z]=re.useState(I);re.useEffect(()=>{z(I)},[I]);const X=!!l.path,Q=()=>{if(!X||C)return;N(!0),P(null);const te=MV(h,g,m,p);xdn(te,u,dc.getState().activeSource).then(V=>{P({status:V.status||"ok",message:V.message||"Written successfully"}),N(!1)}).catch(V=>{P({status:"error",message:V.message}),N(!1)})};return y.jsxs("div",{className:"px-4 py-3 space-y-3",children:[y.jsxs("div",{children:[y.jsx(yO,{children:"Format"}),y.jsx("div",{className:"mt-1",children:y.jsx(VM,{value:j,onChange:te=>s("format",te),options:[{key:"parquet",label:"PARQUET"},{key:"csv",label:"CSV"}],accentColor:O})})]}),y.jsxs("div",{children:[y.jsx(yO,{className:"mb-1.5 block",children:"Output Path"}),y.jsx("input",{type:"text",placeholder:"",value:q,onChange:te=>{z(te.target.value),s("path",te.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:te=>{te.currentTarget.style.borderColor=Ys(O,.3),te.currentTarget.style.boxShadow=`0 0 0 2px ${Ys(O,.1)}`},onBlur:te=>{te.currentTarget.style.borderColor="var(--border)",te.currentTarget.style.boxShadow="none"}})]}),y.jsxs("button",{onClick:Q,disabled:!X||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:O,color:"#000"},onMouseEnter:te=>{X&&!C&&(te.currentTarget.style.opacity="0.85")},onMouseLeave:te=>{te.currentTarget.style.opacity="1"},children:[y.jsx(Nhe,{size:14}),C?"Writing...":"Write"]}),_&&y.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 byn({config:l,onUpdate:s,inputSources:u,onDeleteInput:h,upstreamColumns:g,errorLine:m}){const p=An(l,"quote_id",""),O=An(l,"column_name",""),j=An(l,"min_value",""),C=An(l,"max_value",""),N=An(l,"steps",""),_=An(l,"step_column","");return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"px-4 py-3 space-y-4",children:[y.jsx(KM,{inputSources:u,onDeleteInput:h}),y.jsxs("div",{children:[y.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1.5",style:{color:"var(--text-muted)"},children:["Row Key",y.jsx("span",{className:"ml-1.5 normal-case tracking-normal font-normal",children:"unique column per input row"})]}),g.length>0?y.jsxs("select",{className:"w-full px-2.5 py-1.5 rounded-md text-[12px] font-mono appearance-none cursor-pointer",style:na,value:p,onChange:P=>s("quote_id",P.target.value),children:[y.jsx("option",{value:"",children:"-- select column --"}),g.map(P=>y.jsx("option",{value:P.name,children:P.name},P.name))]}):y.jsx("input",{type:"text",className:"w-full px-2.5 py-1.5 rounded-md text-[12px] font-mono",style:na,value:p,onChange:P=>s("quote_id",P.target.value)})]}),y.jsxs("div",{children:[y.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1.5",style:{color:"var(--text-muted)"},children:["Index Column",y.jsx("span",{className:"ml-1.5 normal-case tracking-normal font-normal",children:"0-based step index column"})]}),y.jsx("input",{type:"text",className:"w-full px-2.5 py-1.5 rounded-md text-[12px] font-mono",style:na,value:_,onChange:P=>s("step_column",P.target.value)})]}),!O&&y.jsxs("div",{children:[y.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1.5",style:{color:"var(--text-muted)"},children:["Steps",y.jsx("span",{className:"ml-1.5 normal-case tracking-normal font-normal",children:"rows generated per input row"})]}),y.jsx("input",{type:"number",min:1,className:"w-full px-2.5 py-1.5 rounded-md text-[12px] font-mono",style:na,value:N,onChange:P=>s("steps",Math.max(1,parseInt(P.target.value)||1))})]}),y.jsxs("div",{children:[y.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1.5",style:{color:"var(--text-muted)"},children:["Value Column",y.jsx("span",{className:"ml-1.5 normal-case tracking-normal font-normal",children:"(optional)"})]}),y.jsx("input",{type:"text",className:"w-full px-2.5 py-1.5 rounded-md text-[12px] font-mono",style:na,value:O,onChange:P=>s("column_name",P.target.value)})]}),O&&y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1.5",style:{color:"var(--text-muted)"},children:"Value Range"}),j!==""&&C!==""&&Number(j)>=Number(C)&&y.jsx("div",{className:"mb-1.5 px-2 py-1 rounded text-[10px]",style:{background:"rgba(245,158,11,.1)",color:"#f59e0b",border:"1px solid rgba(245,158,11,.2)"},children:"Warning: min value should be less than max value"}),y.jsxs("div",{className:"grid grid-cols-4 gap-2",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[10px] block mb-0.5",style:{color:"var(--text-muted)"},children:"Min"}),y.jsx("input",{type:"number",step:"any",className:"w-full px-2 py-1.5 rounded-md text-[12px] font-mono",style:na,value:j,onChange:P=>s("min_value",parseFloat(P.target.value)||0)})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[10px] block mb-0.5",style:{color:"var(--text-muted)"},children:"Max"}),y.jsx("input",{type:"number",step:"any",className:"w-full px-2 py-1.5 rounded-md text-[12px] font-mono",style:na,value:C,onChange:P=>s("max_value",parseFloat(P.target.value)||0)})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[10px] block mb-0.5",style:{color:"var(--text-muted)"},children:"Steps"}),y.jsx("input",{type:"number",min:1,className:"w-full px-2 py-1.5 rounded-md text-[12px] font-mono",style:na,value:N,onChange:P=>s("steps",Math.max(1,parseInt(P.target.value)||1))})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[10px] block mb-0.5",style:{color:"var(--text-muted)"},children:"Step Size"}),y.jsx("div",{className:"w-full px-2 py-1.5 rounded-md text-[12px] font-mono",style:{...na,opacity:.7},"data-testid":"step-size",children:N&&Number(N)>1&&j!==""&&C!==""?+((Number(C)-Number(j))/Math.max(Number(N)-1,1)).toFixed(4):"—"})]})]})]})]}),y.jsxs("div",{className:"px-3 py-2 flex flex-col gap-2",style:{borderTop:"1px solid var(--border)"},children:[y.jsxs("div",{className:"flex items-center justify-between shrink-0",children:[y.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:["Polars Code",y.jsx("span",{className:"ml-1.5 normal-case tracking-normal font-normal",children:"(optional)"})]}),y.jsxs("span",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:["use ",y.jsx("code",{className:"px-0.5 rounded",style:{background:"var(--bg-hover)"},children:"df"})," for expanded data"]})]}),y.jsx(XM,{defaultValue:An(l,"code",""),onChange:P=>s("code",P),errorLine:m,placeholder:""})]})]})}function wyn({config:l,onUpdate:s,inputSources:u,onDeleteInput:h,accentColor:g}){const m=An(l,"sourceType","file"),p=An(l,"artifact_path",""),O=An(l,"version_column","__optimiser_version__"),[j,C]=re.useState(null),[N,_]=re.useState(""),P=b9t({runTag:"optimiser",initialExpId:An(l,"experiment_id","")});return re.useEffect(()=>{if(m!=="file"||!p){m==="file"&&(C(null),_(""));return}i1n(p).then(I=>{C(I),_("")}).catch(I=>{console.warn("Artifact load failed:",I),_("Could not load artifact file"),C(null)})},[p,m]),y.jsxs("div",{className:"flex-1 flex flex-col min-h-0 px-3 py-2 gap-3",children:[y.jsx(KM,{inputSources:u,onDeleteInput:h}),m!=="file"&&y.jsx(d9t,{}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Artifact Source"}),y.jsx("div",{className:"mt-1",children:y.jsx(VM,{value:m,onChange:I=>s("sourceType",I),options:[{key:"file",label:"File Path"},{key:"registered",label:"Registered"},{key:"run",label:"Experiment Run"}],accentColor:g})})]}),m==="file"&&y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1",style:{color:"var(--text-muted)"},children:"Artifact Path"}),y.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:na,value:p,onChange:I=>s("artifact_path",I.target.value),placeholder:"artifacts/optimiser_v1.json"}),y.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"&&y.jsx(p9t,{config:l,onUpdate:s,mlflow:P}),m==="run"&&y.jsx(m9t,{config:l,onUpdate:s,mlflow:P,renderRunLabel:I=>{const q=I.metrics.converged!==void 0?I.metrics.cd_iterations!==void 0?"ratebook":"online":"";return`${I.run_name||I.run_id.slice(0,8)}${q?` [${q}]`:""}${I.metrics.total_objective!==void 0?` obj=${I.metrics.total_objective.toFixed(2)}`:""}`}}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em] block mb-1",style:{color:"var(--text-muted)"},children:"Version Column"}),y.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:na,value:O,onChange:I=>s("version_column",I.target.value),placeholder:"__optimiser_version__"}),y.jsx("p",{className:"text-[10px] mt-1",style:{color:"var(--text-muted)"},children:"Column added to output for monitoring / version tracking"})]}),m==="file"&&N&&y.jsx("div",{className:"rounded-lg px-3 py-2",style:{background:"var(--bg-elevated)",border:`1px solid ${g}`},children:y.jsx("div",{className:"text-[11px]",style:{color:g},children:N})}),m==="file"&&j&&y.jsx(vyn,{meta:j,accentColor:g})]})}function vyn({meta:l,accentColor:s}){return y.jsxs("div",{className:"rounded-lg px-3 py-2.5 space-y-2",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)"},children:[y.jsx("div",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Loaded Artifact"}),y.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1 text-[11px] font-mono",children:[y.jsx("span",{style:{color:"var(--text-muted)"},children:"Mode"}),y.jsx("span",{style:{color:"var(--text-primary)",fontWeight:600},children:l.mode}),y.jsx("span",{style:{color:"var(--text-muted)"},children:"Version"}),y.jsx("span",{style:{color:"var(--text-primary)"},children:l.version||"—"}),y.jsx("span",{style:{color:"var(--text-muted)"},children:"Created"}),y.jsx("span",{style:{color:"var(--text-primary)"},children:l.created_at?new Date(l.created_at).toLocaleDateString():"—"}),y.jsx("span",{style:{color:"var(--text-muted)"},children:"Objective"}),y.jsx("span",{style:{color:"var(--text-primary)"},children:l.objective||"—"})]}),l.mode==="online"&&l.lambdas&&Object.keys(l.lambdas).length>0&&y.jsxs("div",{children:[y.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])=>y.jsxs("div",{className:"flex justify-between text-[11px] font-mono px-1",children:[y.jsx("span",{style:{color:"var(--text-secondary)"},children:u}),y.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&&y.jsxs("div",{children:[y.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])=>y.jsxs("div",{className:"flex justify-between text-[11px] font-mono px-1",children:[y.jsx("span",{style:{color:"var(--text-secondary)"},children:u}),y.jsxs("span",{style:{color:"var(--text-muted)"},children:[Array.isArray(h)?h.length:0," levels"]})]},u))]})]})}function xyn({config:l,onUpdate:s}){const u=An(l,"values",[]),h=(p,O,j)=>{const C=u.map((N,_)=>_===p?{...N,[O]:j}:N);s("values",C)},g=()=>{s("values",[...u,{name:`constant_${u.length+1}`,value:"0"}])},m=p=>{s("values",u.filter((O,j)=>j!==p))};return y.jsxs("div",{className:"px-4 py-3 space-y-3",children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Values"}),y.jsx("div",{className:"space-y-1.5",children:u.map((p,O)=>y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsx("input",{type:"text",value:p.name,onChange:j=>h(O,"name",j.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)"}}),y.jsx("input",{type:"text",value:p.value,onChange:j=>h(O,"value",j.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)"}}),y.jsx("button",{onClick:()=>m(O),className:"p-1 rounded transition-colors shrink-0",style:{color:"var(--text-muted)"},onMouseEnter:j=>j.currentTarget.style.color="#ef4444",onMouseLeave:j=>j.currentTarget.style.color="var(--text-muted)",title:"Remove",children:y.jsx(F9,{size:12})})]},O))}),y.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:[y.jsx(l5,{size:12}),"Add value"]})]})}function yyn({config:l,accentColor:s}){const u=An(l,"file",""),h=An(l,"childNodeIds",[]),g=An(l,"inputPorts",[]),m=An(l,"outputPorts",[]);return y.jsxs("div",{className:"px-4 py-3 space-y-3",children:[y.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-2 rounded-lg",style:{background:Ys(s,.08),border:`1px solid ${Ys(s,.2)}`},children:[y.jsx(nX,{size:14,style:{color:s}}),y.jsx("span",{className:"text-xs font-medium",style:{color:s},children:"Submodel"}),y.jsxs("span",{className:"ml-auto text-[11px] font-mono",style:{color:"var(--text-muted)"},children:[h.length," nodes"]})]}),u&&y.jsxs("div",{children:[y.jsx(yO,{children:"File"}),y.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&&y.jsxs("div",{children:[y.jsx(yO,{children:"Inputs"}),y.jsx("div",{className:"mt-1 flex flex-wrap gap-1.5",children:g.map(p=>y.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&&y.jsxs("div",{children:[y.jsx(yO,{children:"Outputs"}),y.jsx("div",{className:"mt-1 flex flex-wrap gap-1.5",children:m.map(p=>y.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-[11px] font-mono",style:{background:Ys(s,.1),color:s},children:p},p))})]}),y.jsx("div",{className:"text-[11px] pt-1",style:{color:"var(--text-muted)"},children:"Double-click to view internal nodes"})]})}function kyn({config:l,onUpdate:s,availableColumns:u,columns:h}){const[g,m]=re.useState(""),p=An(l,"selected_columns",[]),O=u.length>0?u:h,j=re.useMemo(()=>new Set(O.map(Q=>Q.name)),[O]),C=re.useMemo(()=>p.length===0?[]:p.filter(Q=>!j.has(Q)).map(Q=>({name:Q,dtype:"unknown"})),[p,j]),N=re.useMemo(()=>{const Q=g.toLowerCase(),te=g?O.filter(ne=>ne.name.toLowerCase().includes(Q)):O,V=g?C.filter(ne=>ne.name.toLowerCase().includes(Q)):C;return[...te,...V]},[O,C,g]),_=p.length===0,P=Q=>_||p.includes(Q),I=Q=>{if(_){const te=O.map(V=>V.name).filter(V=>V!==Q);s("selected_columns",te)}else if(p.includes(Q)){const te=p.filter(V=>V!==Q);s("selected_columns",te.length>0?te:[])}else{const te=[...p,Q];te.length>=O.length?s("selected_columns",[]):s("selected_columns",te)}},q=()=>s("selected_columns",[]),z=()=>{O.length>0&&s("selected_columns",[O[0].name])},X=_?O.length:p.length;return O.length===0?y.jsx("div",{className:"px-4 py-6 text-center",children:y.jsx("p",{className:"text-xs",style:{color:"var(--text-muted)"},children:"Preview or run this node to see its output columns"})}):y.jsxs("div",{className:"px-4 py-3 flex flex-col gap-2",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx(yO,{as:"span",children:"Output Columns"}),y.jsxs("span",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:[X," / ",O.length]})]}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsxs("div",{className:"flex-1 relative",children:[y.jsx(dR,{size:12,className:"absolute left-2 top-1/2 -translate-y-1/2",style:{color:"var(--text-muted)"}}),y.jsx("input",{type:"text",value:g,onChange:Q=>m(Q.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)"}})]}),y.jsx("button",{onClick:q,className:"text-[10px] font-medium px-1.5 py-0.5 rounded",style:{color:_?"var(--text-muted)":"var(--accent)"},disabled:_,children:"All"}),y.jsx("button",{onClick:z,className:"text-[10px] font-medium px-1.5 py-0.5 rounded",style:{color:"var(--accent)"},children:"None"})]}),y.jsx(nNe,{columns:N,className:"max-h-[400px] overflow-y-auto",checkbox:{isChecked:Q=>P(Q),onToggle:I},interactiveRows:!0,nameColor:Q=>j.has(Q)?P(Q)?"var(--text-primary)":"var(--text-muted)":"#f59e0b",nameSuffix:Q=>j.has(Q)?null:"(not found)"}),!_&&y.jsxs("p",{className:"text-[10px] leading-relaxed",style:{color:"var(--text-muted)"},children:["Deselected columns will be dropped via ",y.jsx("code",{className:"font-mono",children:".select()"})," on this node's output."]})]})}function QNe(l){return l.split(".").map(s=>/^\d+$/.test(s)?"*":s).join(".")}function UNe(l){const s=l.indexOf(".");return s>0?l.slice(0,s):l}function Oyn(l,s){const u=l.split(".");return s>=u.length?u[u.length-1]:u.slice(s).join(".")}function jyn(l){const s=new Map;for(const h of l){const g=QNe(h.name);s.has(g)||s.set(g,{cols:[],dtype:h.dtype}),s.get(g).cols.push(h.name)}const u=new Map;for(const[h,{cols:g,dtype:m}]of s){const p=UNe(h);u.has(p)||u.set(p,[]);const O=h.startsWith(p+".")?h.slice(p.length+1):h;u.get(p).push({pattern:h,concreteColumns:g,dtype:m,shortPattern:O})}return Array.from(u.entries()).map(([h,g])=>({prefix:h,rows:g,allConcreteNames:g.flatMap(m=>m.concreteColumns)}))}function Syn({pattern:l,columnRenames:s,concreteColumns:u,onStripSegment:h,color:g}){const m=l.split(".");if(m.length<=1)return y.jsx("span",{style:{color:g},children:l});const p=new Set,O=u[0],j=s[O];if(j){const C=UNe(O),N=j.startsWith(C+".")?j.slice(C.length+1):j,_=QNe(N).split(".");if(_.length<m.length){let P=0;for(let I=0;I<m.length;I++)P<_.length&&m[I]===_[P]?P++:p.add(I)}}return y.jsx("span",{children:m.map((C,N)=>{const _=p.has(N),I=!(N===m.length-1)&&!_&&C!=="*";return y.jsxs("span",{children:[_?y.jsxs("span",{style:{position:"relative",color:"var(--text-muted)",cursor:"pointer"},title:"Click to restore this segment",onClick:q=>{q.stopPropagation(),h(N)},children:[C,y.jsx("span",{style:{position:"absolute",left:0,right:0,top:"50%",height:"1px",background:"#ef4444",pointerEvents:"none"}})]}):I?y.jsx("span",{style:{color:g,cursor:"pointer",borderBottom:"1px dashed var(--border)"},title:`Click to strip "${C}" from the column name`,onClick:q=>{q.stopPropagation(),h(N)},children:C}):y.jsx("span",{style:{color:g},children:C}),N<m.length-1&&y.jsx("span",{style:{color:"var(--text-muted)"},children:"."})]},N)})})}function Tyn({config:l,onUpdate:s,availableColumns:u,columns:h}){const[g,m]=re.useState(""),[p,O]=re.useState(new Set),j=An(l,"selected_columns",[]),C=An(l,"column_renames",{}),N=u.length>0?u:h,_=re.useMemo(()=>N.map(Be=>Be.name),[N]),P=j.length===0,I=re.useCallback(Be=>{const ke={...C};for(const le of Be.rows)for(const W of le.concreteColumns){const pe=Oyn(W,1);pe!==W&&(ke[W]=pe)}s("column_renames",ke)},[C,s]),q=re.useCallback(Be=>{const ke={...C},le=new Set(Be.allConcreteNames);for(const W of Object.keys(ke))le.has(W)&&delete ke[W];s("column_renames",Object.keys(ke).length>0?ke:{})},[C,s]),z=re.useCallback(Be=>Be.allConcreteNames.some(ke=>ke in C),[C]),X=re.useCallback((Be,ke)=>{const le={...C};for(const W of Be.concreteColumns){const je=Be.concreteColumns[0],ue=UNe(je),xe=(le[W]?le[W]:W.startsWith(ue+".")?W.slice(ue.length+1):W).split("."),tt=Be.shortPattern.split(".")[ke];if(!tt||tt==="*")return;const Te=xe.indexOf(tt);if(Te>=0&&Te<xe.length-1){const et=[...xe.slice(0,Te),...xe.slice(Te+1)].join("."),Ye=W in le&&!le[W].startsWith(ue+".")?et:ue+"."+et;Ye!==W?le[W]=Ye:delete le[W]}else{const et=W.startsWith(ue+".")?W.slice(ue.length+1):W;W in le&&!le[W].startsWith(ue+".")?le[W]=et:delete le[W]}}s("column_renames",Object.keys(le).length>0?le:{})},[C,s]),Q=re.useMemo(()=>{if(!g)return N;const Be=g.toLowerCase();return N.filter(ke=>{const le=QNe(ke.name);return ke.name.toLowerCase().includes(Be)||le.toLowerCase().includes(Be)})},[N,g]),te=re.useMemo(()=>jyn(Q),[Q]),V=Be=>P||j.includes(Be),ne=Be=>{const ke=new Set(Be.concreteColumns),le=Be.concreteColumns.every(W=>V(W));if(P){if(le){const W=_.filter(pe=>!ke.has(pe));s("selected_columns",W.length>0?W:[_[0]])}return}if(le){const W=j.filter(pe=>!ke.has(pe));s("selected_columns",W.length>0?W:[_[0]])}else{const W=new Set(j);for(const je of Be.concreteColumns)W.add(je);const pe=Array.from(W);s("selected_columns",pe.length>=_.length?[]:pe)}},ce=Be=>{const ke=new Set(Be.allConcreteNames),le=Be.allConcreteNames.every(W=>V(W));if(P){if(le){const W=_.filter(pe=>!ke.has(pe));s("selected_columns",W.length>0?W:[_[0]])}return}if(le){const W=j.filter(pe=>!ke.has(pe));s("selected_columns",W.length>0?W:[_[0]])}else{const W=new Set(j);for(const je of Be.allConcreteNames)W.add(je);const pe=Array.from(W);s("selected_columns",pe.length>=_.length?[]:pe)}},se=Be=>{O(ke=>{const le=new Set(ke);return le.has(Be)?le.delete(Be):le.add(Be),le})},me=()=>s("selected_columns",[]),ye=()=>{_.length>0&&s("selected_columns",[_[0]])},qe=P?_.length:j.length;return N.length===0?y.jsx("div",{className:"px-4 py-6 text-center",children:y.jsx("p",{className:"text-xs",style:{color:"var(--text-muted)"},children:"Preview or run this node to see its output columns"})}):y.jsxs("div",{className:"px-4 py-3 flex flex-col gap-2",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx(yO,{as:"span",children:"Output Columns"}),y.jsxs("span",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:[qe," / ",_.length]})]}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsxs("div",{className:"flex-1 relative",children:[y.jsx(dR,{size:12,className:"absolute left-2 top-1/2 -translate-y-1/2",style:{color:"var(--text-muted)"}}),y.jsx("input",{type:"text",value:g,onChange:Be=>m(Be.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)"}})]}),y.jsx("button",{onClick:me,className:"text-[10px] font-medium px-1.5 py-0.5 rounded",style:{color:P?"var(--text-muted)":"var(--accent)"},disabled:P,children:"All"}),y.jsx("button",{onClick:ye,className:"text-[10px] font-medium px-1.5 py-0.5 rounded",style:{color:"var(--accent)"},children:"None"})]}),y.jsx("div",{className:"rounded-lg overflow-hidden max-h-[400px] overflow-y-auto",style:{border:"1px solid var(--border)",background:"var(--bg-input)"},children:te.map(Be=>{const ke=p.has(Be.prefix),le=Be.allConcreteNames.filter(ue=>V(ue)).length,W=le===Be.allConcreteNames.length,pe=le>0&&!W,je=z(Be);return y.jsxs("div",{children:[y.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 select-none transition-colors",style:{background:"var(--bg-elevated)",borderBottom:"1px solid var(--border)"},onMouseEnter:ue=>{ue.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:ue=>{ue.currentTarget.style.background="var(--bg-elevated)"},children:[y.jsx("input",{type:"checkbox",checked:W,ref:ue=>{ue&&(ue.indeterminate=pe)},onChange:()=>ce(Be),className:"accent-blue-500 rounded","aria-label":`Select all ${Be.prefix} columns`}),y.jsx("span",{className:"cursor-pointer",onClick:()=>se(Be.prefix),title:ke?"Expand group":"Collapse group",children:ke?y.jsx(i2,{size:12,style:{color:"var(--text-muted)"}}):y.jsx(Sd,{size:12,style:{color:"var(--text-muted)"}})}),Be.rows.some(ue=>ue.concreteColumns.some(ve=>ve.includes(".")))?y.jsxs("span",{className:"text-xs font-semibold cursor-pointer",style:{position:"relative",color:je?"var(--text-muted)":"var(--text-primary)",borderBottom:je?"none":"1px dashed var(--border)"},onClick:()=>{je?q(Be):I(Be)},title:je?`Restore "${Be.prefix}" prefix`:`Strip "${Be.prefix}" prefix from column names`,children:[Be.prefix,je&&y.jsx("span",{style:{position:"absolute",left:0,right:0,top:"50%",height:"1px",background:"#ef4444",pointerEvents:"none"}})]}):y.jsx("span",{className:"text-xs font-semibold",style:{color:"var(--text-primary)"},children:Be.prefix}),y.jsxs("span",{className:"text-[10px] ml-auto",style:{color:"var(--text-muted)"},children:[le,"/",Be.allConcreteNames.length]})]}),!ke&&Be.rows.map(ue=>{const ve=ue.concreteColumns.every(Te=>V(Te)),xe=ue.concreteColumns.some(Te=>V(Te))&&!ve,Ee=ue.concreteColumns.length,tt=ve?"var(--text-primary)":xe?"var(--text-secondary)":"var(--text-muted)";return y.jsxs("div",{className:"flex items-center cursor-pointer transition-colors",style:{borderBottom:"1px solid var(--border)"},onClick:()=>ne(ue),onMouseEnter:Te=>{Te.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:Te=>{Te.currentTarget.style.background="transparent"},children:[y.jsx("div",{className:"px-2.5 py-1 pl-7 shrink-0",children:y.jsx("input",{type:"checkbox",checked:ve,ref:Te=>{Te&&(Te.indeterminate=xe)},onChange:()=>ne(ue),onClick:Te=>Te.stopPropagation(),className:"accent-blue-500 rounded","aria-label":`Select ${ue.shortPattern}`})}),y.jsx("div",{className:"px-1.5 py-1 font-mono text-xs flex-1 min-w-0 truncate",children:y.jsx(Syn,{pattern:ue.shortPattern,columnRenames:C,concreteColumns:ue.concreteColumns,onStripSegment:Te=>X(ue,Te),color:tt})}),Ee>1&&y.jsx("div",{className:"px-1 shrink-0",children:y.jsxs("span",{className:"text-[10px] px-1 py-0.5 rounded",style:{background:"var(--bg-elevated)",color:"var(--text-muted)"},children:["×",Ee]})}),y.jsx("div",{className:"px-2.5 py-1 shrink-0",children:y.jsx("span",{className:`text-[11px] font-medium ${tNe(ue.dtype)}`,children:ue.dtype})})]},ue.pattern)})]},Be.prefix)})}),!P&&y.jsxs("p",{className:"text-[10px] leading-relaxed",style:{color:"var(--text-muted)"},children:["Deselected columns will be dropped via ",y.jsx("code",{className:"font-mono",children:".select()"})," on this node's output."]})]})}const Tc=Sde()(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})}})),JNe=320,Cyn=180,Eyn=40;function O9t(){const s=Tc.getState().paletteOpen?Cyn:Eyn;return window.innerWidth-s}function Myn(){return Math.max(JNe,Math.floor(O9t()/2))}function Ayn(){return Math.max(JNe,Math.floor(O9t()*.75))}function dX({children:l,style:s}){const u=Tc(_=>_.nodePanelWidth),h=Tc(_=>_.setNodePanelWidth),g=u>0?u:Myn(),m=re.useRef(!1),p=re.useRef(0),O=re.useRef(g),j=re.useRef(g),C=re.useRef(null);re.useEffect(()=>{const _=I=>{if(!m.current)return;const q=Ayn(),z=p.current-I.clientX,X=Math.min(q,Math.max(JNe,O.current+z));j.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(j.current))};return window.addEventListener("mousemove",_),window.addEventListener("mouseup",P),()=>{window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",P)}},[h]);const N=re.useCallback(_=>{m.current=!0,p.current=_.clientX,O.current=g,j.current=g,document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[g]);return y.jsxs("div",{ref:C,className:"h-full shrink-0 flex flex-row animate-slide-in",style:{width:g,background:"var(--bg-panel)",...s},children:[y.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)")}}),y.jsx("div",{className:"flex-1 min-w-0 h-full flex flex-col overflow-hidden",children:l})]})}const Nyn=new Set([gi.OUTPUT,gi.SUBMODEL,gi.MODELLING]);function _yn({node:l,config:s,edges:u,allNodes:h,nodeMap:g,handleConfigUpdate:m}){return y.jsxs("div",{className:"px-4 py-3 flex flex-col gap-3",children:[y.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:[y.jsx(XAe,{size:13,style:{color:"var(--accent)"},className:"shrink-0"}),y.jsxs("div",{className:"min-w-0",children:[y.jsx("div",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--accent)"},children:"Instance of"}),y.jsx("div",{className:"text-[13px] font-semibold truncate",style:{color:"var(--text-primary)"},children:(()=>{const p=h.find(O=>O.id===s.instanceOf);return p?p.data.label:String(s.instanceOf)})()})]})]}),y.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,O=u.filter(Q=>Q.target===p).map(Q=>{const te=g[Q.source];return te?MMe(te.data.label):Q.source}),j=u.filter(Q=>Q.target===l.id).map(Q=>{const te=g[Q.source];return{varName:te?MMe(te.data.label):Q.source,label:te?te.data.label:Q.source}});if(O.length===0&&j.length===0)return null;const C=s.inputMapping||{},N={},_=new Set;for(const Q of O){const te=j.find(V=>V.varName===Q&&!_.has(V.varName));te&&(N[Q]=te.varName,_.add(te.varName))}for(const Q of O){if(N[Q])continue;const te=j.find(V=>!_.has(V.varName)&&V.varName.includes(Q));te&&(N[Q]=te.varName,_.add(te.varName))}const P=j.filter(Q=>!_.has(Q.varName));O.filter(Q=>!N[Q]).forEach((Q,te)=>{te<P.length&&(N[Q]=P[te].varName)});const q={},z=new Set(j.map(Q=>Q.varName));for(const Q of O)C[Q]&&z.has(C[Q])?q[Q]=C[Q]:q[Q]=N[Q]||"";const X=(Q,te)=>{const V={...q,[Q]:te};m("inputMapping",V)};return y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx("div",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Input Mapping"}),y.jsx("p",{className:"text-[10px] leading-relaxed",style:{color:"var(--text-muted)"},children:"Map each original input to a connected upstream node."}),y.jsx("div",{className:"flex flex-col gap-1.5",children:O.map(Q=>y.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:[y.jsx("span",{className:"text-[11px] font-mono shrink-0 min-w-[90px] truncate",style:{color:"var(--text-secondary)"},title:Q,children:Q}),y.jsx("span",{className:"text-[10px] shrink-0",style:{color:"var(--text-muted)"},children:"→"}),y.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[Q]||"",onChange:te=>X(Q,te.target.value),children:[y.jsx("option",{value:"",children:"— unmapped —"}),j.map(te=>y.jsx("option",{value:te.varName,children:te.label},te.varName))]})]},Q))})]})})(),(()=>{const p=l.data._schemaWarnings||[];return p.length===0?null:y.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:[y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsx(Sp,{size:11,style:{color:"#f59e0b"},className:"shrink-0"}),y.jsxs("span",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"#f59e0b"},children:["Missing columns (",p.length,")"]})]}),y.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:"}),y.jsx("div",{className:"flex flex-wrap gap-1 mt-0.5",children:p.map(O=>y.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] font-mono",style:{background:"rgba(245,158,11,.12)",color:"#fbbf24"},children:O.column},O.column))})]})})()]})}function ZW(l,s,u){const h=[],g=new Set;return s.filter(m=>m.target===l).forEach(m=>{var j;const p=u[m.source],O=(j=p==null?void 0:p.data)==null?void 0:j._columns;O&&O.forEach(C=>{g.has(C.name)||(g.add(C.name),h.push(C))})}),h}function Dyn(l,s,u){return s.filter(h=>h.target===l).some(h=>{var g,m;return((m=(g=u[h.source])==null?void 0:g.data)==null?void 0:m.nodeType)===gi.API_INPUT})}function Lyn({node:l,edges:s,allNodes:u,submodels:h,preamble:g,onClose:m,onUpdateNode:p,onDeleteEdge:O,onRefreshPreview:j,dimmed:C,errorLine:N,previewRows:_}){var le,W,pe;const P=re.useMemo(()=>(l==null?void 0:l.data.config)||{},[l==null?void 0:l.data.config]),[I,q]=re.useState("config"),z=re.useRef(P),X=re.useRef(l);re.useEffect(()=>{z.current=P},[P]),re.useEffect(()=>{X.current=l},[l]);const Q=re.useCallback((je,ue)=>{const ve=X.current;if(!ve||!p)return;const xe=z.current,Ee=typeof je=="string"?{...xe,[je]:ue}:{...xe,...je};p(ve.id,{...ve.data,config:Ee})},[p]),te=re.useMemo(()=>({...P,_nodeId:(l==null?void 0:l.id)??""}),[P,l==null?void 0:l.id]),V=re.useMemo(()=>Object.fromEntries(u.map(je=>[je.id,je])),[u]),ne=re.useMemo(()=>l?s.filter(je=>je.target===l.id).map(je=>{var ue,ve;return{varName:MMe(((ue=V[je.source])==null?void 0:ue.data.label)||je.source),sourceLabel:((ve=V[je.source])==null?void 0:ve.data.label)||je.source,edgeId:je.id}}):[],[s,l,V]);if(!l)return null;const ce=!!P.instanceOf,se=l.data.nodeType,me=!ce&&!Nyn.has(se),ye=((le=s2[se])==null?void 0:le.color)??"var(--accent)",qe=()=>{var je,ue;if(ce)return y.jsx(_yn,{node:l,config:P,edges:s,allNodes:u,nodeMap:V,handleConfigUpdate:Q});switch(se){case gi.API_INPUT:return y.jsx(gyn,{config:P,onUpdate:Q,accentColor:ye});case gi.LIVE_SWITCH:return y.jsx(pyn,{config:P,onUpdate:Q,inputSources:ne,accentColor:ye});case gi.DATA_SOURCE:return y.jsx(Ixn,{config:P,onUpdate:Q,onRefreshPreview:j,accentColor:ye,errorLine:N});case gi.DATA_SINK:return y.jsx(myn,{config:P,onUpdate:Q,nodeId:l.id,allNodes:u,edges:s,submodels:h,preamble:g,accentColor:ye});case gi.EXTERNAL_FILE:return y.jsx(fyn,{config:P,onUpdate:Q,inputSources:ne,onDeleteInput:O,errorLine:N,accentColor:ye});case gi.OUTPUT:return y.jsx(ayn,{config:P,onUpdate:Q,nodeId:l.id,allNodes:u,edges:s});case gi.BANDING:return y.jsx(oyn,{config:P,onUpdate:Q,inputSources:ne,onDeleteInput:O,upstreamColumns:ZW(l.id,s,V),accentColor:ye,previewRows:_});case gi.SCENARIO_EXPANDER:return y.jsx(byn,{config:P,onUpdate:Q,inputSources:ne,onDeleteInput:O,upstreamColumns:ZW(l.id,s,V),errorLine:N});case gi.RATING_STEP:return y.jsx(uyn,{config:P,onUpdate:Q,inputSources:ne,onDeleteInput:O,allNodes:u,accentColor:ye});case gi.MODEL_SCORE:return y.jsx(Bxn,{config:P,onUpdate:Q,inputSources:ne,onDeleteInput:O,errorLine:N,accentColor:ye});case gi.MODELLING:{const ve=ZW(l.id,s,V),xe=ve.length>0?ve:((je=l.data)==null?void 0:je._columns)||[];return y.jsx(X1n,{config:te,onUpdate:Q,allNodes:u,edges:s,submodels:h,preamble:g,upstreamColumns:xe})}case gi.OPTIMISER:{const ve=ZW(l.id,s,V),xe=ve.length>0?ve:((ue=l.data)==null?void 0:ue._columns)||[];return y.jsx(ngn,{config:te,onUpdate:Q,allNodes:u,edges:s,submodels:h,upstreamColumns:xe,accentColor:ye})}case gi.OPTIMISER_APPLY:return y.jsx(wyn,{config:P,onUpdate:Q,inputSources:ne,onDeleteInput:O,accentColor:ye});case gi.CONSTANT:return y.jsx(xyn,{config:P,onUpdate:Q});case gi.POLARS:return y.jsx($xn,{config:P,onUpdate:Q,inputSources:ne,onDeleteInput:O,errorLine:N,upstreamColumns:ZW(l.id,s,V),hasApiInputUpstream:Dyn(l.id,s,V)});case gi.SUBMODEL:return y.jsx(yyn,{config:P,accentColor:ye});default:return Object.keys(P).length>0?y.jsxs("div",{className:"px-4 py-3",children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Config"}),Object.entries(P).map(([ve,xe])=>y.jsxs("div",{className:"mt-1.5 flex items-center gap-2",children:[y.jsxs("span",{className:"text-xs font-mono",style:{color:"var(--text-muted)"},children:[ve,":"]}),y.jsx("span",{className:"text-xs font-mono truncate",style:{color:"var(--text-primary)"},children:String(xe)})]},ve))]}):null}},Be=((W=l.data)==null?void 0:W._availableColumns)||[],ke=((pe=l.data)==null?void 0:pe._columns)||[];return y.jsxs(dX,{style:{opacity:C?.6:1,transition:"opacity 150ms"},children:[y.jsxs("div",{className:"px-3 py-2.5 flex items-center gap-2 shrink-0",style:{borderBottom:"1px solid var(--border)"},children:[y.jsx("input",{type:"text",value:l.data.label,onChange:je=>{p&&p(l.id,{...l.data,label:je.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:je=>{je.currentTarget.style.borderColor="var(--accent)",je.currentTarget.style.boxShadow="0 0 0 2px var(--accent-soft)"},onBlur:je=>{je.currentTarget.style.borderColor="transparent",je.currentTarget.style.boxShadow="none"}}),j&&y.jsxs("button",{onClick:j,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:je=>{je.currentTarget.style.opacity="0.85"},onMouseLeave:je=>{je.currentTarget.style.opacity="1"},title:"Refresh preview",children:[y.jsx(YAe,{size:11}),"Refresh"]}),y.jsx("button",{onClick:m,className:"p-1 rounded shrink-0 transition-colors",style:{background:"#dc2626",color:"#fff"},onMouseEnter:je=>je.currentTarget.style.background="#b91c1c",onMouseLeave:je=>je.currentTarget.style.background="#dc2626",title:"Close",children:y.jsx(Ix,{size:14,strokeWidth:2.5})})]}),me&&y.jsx("div",{className:"flex shrink-0",style:{borderBottom:"1px solid var(--border)"},children:["config","columns"].map(je=>y.jsx("button",{onClick:()=>q(je),className:"flex-1 px-3 py-1.5 text-[11px] font-semibold uppercase tracking-[0.08em] transition-colors",style:{color:I===je?"var(--accent)":"var(--text-muted)",borderBottom:I===je?"2px solid var(--accent)":"2px solid transparent",background:I===je?"var(--accent-soft)":"transparent"},onMouseEnter:ue=>{I!==je&&(ue.currentTarget.style.background="var(--bg-hover)")},onMouseLeave:ue=>{I!==je&&(ue.currentTarget.style.background="transparent")},children:je},je))}),!ce&&(()=>{const je=l.data._schemaWarnings||[];return je.length===0?null:y.jsx("div",{className:"px-4 py-2 shrink-0",style:{borderBottom:"1px solid var(--border)"},children:y.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:[y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsx(Sp,{size:11,style:{color:"#f59e0b"},className:"shrink-0"}),y.jsxs("span",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"#f59e0b"},children:["Stale columns (",je.length,")"]})]}),y.jsx("p",{className:"text-[10px] leading-relaxed",style:{color:"var(--text-muted)"},children:"These columns are referenced in config but not found in the upstream schema:"}),y.jsx("div",{className:"flex flex-wrap gap-1 mt-0.5",children:je.map(ue=>y.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] font-mono",style:{background:"rgba(245,158,11,.12)",color:"#fbbf24"},children:ue.column},ue.column))})]})})})(),y.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:I==="columns"&&me?se===gi.API_INPUT?y.jsx(Tyn,{config:P,onUpdate:Q,availableColumns:Be,columns:ke}):y.jsx(kyn,{config:P,onUpdate:Q,availableColumns:Be,columns:ke}):qe()})]})}function Jde(l){const{initialHeight:s,minHeight:u,maxHeight:h}=l,[g,m]=re.useState(s),p=re.useRef(null),O=re.useRef(!1),j=re.useRef(g);re.useEffect(()=>{j.current=g},[g]);const C=re.useRef(null);re.useEffect(()=>()=>{var _;(_=C.current)==null||_.call(C)},[]);const N=re.useCallback(_=>{_.preventDefault(),O.current=!0;const P=_.clientY,I=j.current,q=X=>{if(!O.current)return;const Q=Math.max(u,Math.min(h,I+(P-X.clientY)));p.current&&(p.current.style.height=`${Q}px`)},z=X=>{O.current=!1;const Q=Math.max(u,Math.min(h,I+(P-X.clientY)));m(Q),document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",z),C.current=null};document.addEventListener("mousemove",q),document.addEventListener("mouseup",z),C.current=()=>{O.current=!1,document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",z)}},[u,h]);return{height:g,containerRef:p,onDragStart:N}}const eV=28,Pyn=50,S4t=10;function Iyn({data:l,onCellClick:s,tracedCell:u}){const[h,g]=re.useState(!1),[m,p]=re.useState(""),{height:O,containerRef:j,onDragStart:C}=Jde({initialHeight:256,minHeight:120,maxHeight:600}),N=l==null?void 0:l.nodeId;re.useEffect(()=>{p("")},[N]);const _=re.useMemo(()=>{if(!l||!m.trim())return(l==null?void 0:l.columns)??[];const V=m.toLowerCase();return l.columns.filter(ne=>ne.name.toLowerCase().includes(V))},[l,m]),P=re.useRef(null),[I,q]=re.useState(0),[z,X]=re.useState(0),Q=re.useRef(0),te=re.useCallback(()=>{cancelAnimationFrame(Q.current),Q.current=requestAnimationFrame(()=>{P.current&&q(P.current.scrollTop)})},[]);return re.useEffect(()=>{const V=P.current;if(!V)return;const ne=new ResizeObserver(([ce])=>{X(ce.contentRect.height)});return ne.observe(V),()=>ne.disconnect()},[l]),re.useEffect(()=>{const V=Q;return()=>cancelAnimationFrame(V.current)},[]),l?h?y.jsx("div",{className:"h-8 flex items-center px-4 shrink-0",style:{borderTop:"1px solid var(--border)",background:"var(--bg-panel)"},children:y.jsxs("button",{onClick:()=>g(!1),className:"flex items-center gap-2 text-xs",style:{color:"var(--text-secondary)"},children:[y.jsx(jde,{size:14}),y.jsx(_he,{size:14}),y.jsx("span",{className:"font-medium",children:l.nodeLabel}),l.status==="ok"&&y.jsxs("span",{style:{color:"var(--text-muted)"},children:[l.row_count.toLocaleString()," rows · ",l.column_count," cols"]})]})}):y.jsxs("div",{ref:j,style:{height:O,borderTop:"1px solid var(--border)",background:"var(--bg-panel)"},className:"flex flex-col shrink-0 relative",children:[y.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:V=>V.currentTarget.style.background="var(--accent)",onMouseLeave:V=>V.currentTarget.style.background="var(--chrome-border)"}),y.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:[y.jsx(_he,{size:14,style:{color:"var(--text-muted)"}}),y.jsx("span",{className:"text-xs font-bold",style:{color:"var(--text-primary)"},children:l.nodeLabel}),l.status==="ok"&&y.jsxs(y.Fragment,{children:[y.jsx(JAe,{size:13,className:"ml-1",style:{color:"#22c55e"}}),y.jsxs("span",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:[l.row_count.toLocaleString()," rows · ",l.column_count," cols"]})]}),l.status==="error"&&y.jsxs(y.Fragment,{children:[y.jsx(TMe,{size:13,className:"ml-1",style:{color:"#ef4444"}}),y.jsx("span",{className:"text-[11px] truncate",style:{color:"#ef4444"},children:l.error})]}),l.status==="loading"&&y.jsx("span",{className:"text-[11px] animate-pulse",style:{color:"var(--text-muted)"},children:"Running..."}),y.jsxs("div",{className:"ml-auto flex items-center gap-1.5",children:[y.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:[y.jsx(dR,{size:11,style:{color:"var(--text-muted)"}}),y.jsx("input",{type:"text",value:m,onChange:V=>p(V.target.value),placeholder:"Search columns...",className:"w-28 text-[11px] font-mono bg-transparent focus:outline-none",style:{color:"var(--text-primary)"}}),m&&y.jsx("button",{onClick:()=>p(""),className:"shrink-0",style:{color:"var(--text-muted)"},children:y.jsx(Ix,{size:10})})]}),y.jsx("button",{onClick:()=>g(!0),className:"p-1 rounded transition-colors",style:{color:"var(--text-muted)"},onMouseEnter:V=>V.currentTarget.style.background="var(--bg-hover)",onMouseLeave:V=>V.currentTarget.style.background="transparent",children:y.jsx(Sd,{size:14})})]})]}),l.status==="loading"?y.jsx("div",{className:"flex-1 flex items-center justify-center",children:y.jsx("div",{className:"text-xs animate-pulse",style:{color:"var(--text-muted)"},children:"Executing pipeline..."})}):l.status==="error"?y.jsx("div",{className:"flex-1 flex items-center justify-center p-4",children:y.jsxs("div",{className:"text-center",children:[y.jsx(TMe,{size:24,className:"mx-auto mb-2",style:{color:"#ef4444",opacity:.5}}),y.jsx("div",{className:"text-xs max-w-md",style:{color:"#ef4444"},children:l.error})]})}):y.jsxs("div",{ref:P,className:"flex-1 overflow-auto",onScroll:te,children:[(()=>{const V=l.preview.length,ne=V>Pyn&&z>0;let ce=0,se=V;ne&&(ce=Math.max(0,Math.floor(I/eV)-S4t),se=Math.min(V,Math.ceil((I+z)/eV)+S4t));const me=ce*eV,ye=(V-se)*eV;return y.jsxs("table",{className:"w-full text-xs",children:[y.jsx("thead",{className:"sticky top-0 z-10",style:{background:"var(--bg-elevated)"},children:y.jsxs("tr",{children:[y.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=>y.jsxs("th",{className:"px-3 py-1.5 text-left whitespace-nowrap",style:{borderBottom:"1px solid var(--border)"},children:[y.jsx("div",{className:"font-semibold",style:{color:"var(--text-primary)"},children:qe.name}),y.jsx("div",{className:`text-[11px] font-normal ${tNe(qe.dtype)}`,children:qe.dtype})]},qe.name))]})}),y.jsxs("tbody",{children:[me>0&&y.jsx("tr",{style:{height:me}}),l.preview.slice(ce,se).map((qe,Be)=>{const ke=ce+Be;return y.jsxs("tr",{style:{height:eV,background:ke%2===0?"transparent":"rgba(255,255,255,.02)"},children:[y.jsx("td",{className:"px-3 py-1 font-mono",style:{color:"var(--text-muted)",borderRight:"1px solid var(--border)"},children:ke+1}),_.map(le=>{const W=(u==null?void 0:u.rowIndex)===ke&&(u==null?void 0:u.column)===le.name;return y.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:W?"var(--accent-soft)":void 0,boxShadow:W?"inset 0 0 0 1.5px var(--accent)":void 0,borderRadius:W?"3px":void 0},onClick:()=>s==null?void 0:s(ke,le.name,qe),children:y.jsx("span",{style:qe[le.name]===null?{color:"var(--text-muted)",fontStyle:"italic"}:void 0,children:ZAe(qe[le.name])})},le.name)})]},ke)}),ye>0&&y.jsx("tr",{style:{height:ye}})]})]})})(),l.row_count>l.preview.length&&y.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 jAe(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 j9t=380,vhe=220,_I=50,Ryn=16,xhe=16,S9t=28,nMe=j9t-_I-Ryn,Wfe=vhe-xhe-S9t;function T9t(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 $yn({data:l,nodeId:s}){const{result:u,jobId:h,constraints:g}=l,[m,p]=re.useState(!1),{height:O,containerRef:j,onDragStart:C}=Jde({initialHeight:320,minHeight:160,maxHeight:600}),[N,_]=re.useState(()=>l.frontier&&l.frontier.points.length>0?"frontier":"summary"),P=re.useMemo(()=>Object.keys(g),[g]),[I,q]=re.useState(0),z=hc(ve=>ve.selectFrontierPoint),X=hc(ve=>ve.updateFrontierAfterSelect),Q=dc(ve=>ve.mlflow.status==="connected"),[te,V]=re.useState(!1),[ne,ce]=re.useState(!1),[se,me]=re.useState(null),ye=l.frontier,qe=l.selectedPointIndex;re.useEffect(()=>{me(null)},[qe]);const Be=re.useCallback(async ve=>{if(ve===qe){z(s,null);return}z(s,ve);try{const xe=await pEe({job_id:h,point_index:ve});X(s,ve,xe)}catch(xe){console.warn("frontier point select failed",xe),z(s,qe)}},[qe,s,h,z,X]),ke=re.useCallback(ve=>{if(!ye)return;const xe=(qe??0)+ve;xe<0||xe>=ye.points.length||Be(xe)},[ye,qe,Be]),le=re.useCallback(async()=>{V(!0),me(null);try{qe!=null&&ye&&await pEe({job_id:h,point_index:qe});const ve=`output/optimiser_${l.nodeLabel.toLowerCase().replace(/ /g,"_")}.json`,xe=await _dn({job_id:h,output_path:ve});me(xe.message??`Saved to ${xe.path??ve}`)}catch(ve){me(`Save failed: ${ve}`)}finally{V(!1)}},[qe,ye,h,l.nodeLabel]),W=re.useCallback(async()=>{ce(!0),me(null);try{qe!=null&&ye&&await pEe({job_id:h,point_index:qe});const ve=await Ddn({job_id:h}),xe=ve.experiment_name?` to ${ve.experiment_name}`:"";me(ve.run_url?`Logged${xe}: ${ve.run_url}`:`Logged${xe} (run ${ve.run_id??"ok"})`)}catch(ve){me(`MLflow log failed: ${ve}`)}finally{ce(!1)}},[qe,ye,h]);if(m)return y.jsx("div",{className:"h-8 flex items-center px-4 shrink-0",style:{borderTop:"1px solid var(--border)",background:"var(--bg-panel)"},children:y.jsxs("button",{onClick:()=>p(!1),"aria-label":"Expand panel",className:"flex items-center gap-2 text-xs",style:{color:"var(--text-secondary)"},children:[y.jsx(jde,{size:14}),y.jsx(IM,{size:14}),y.jsx("span",{className:"font-medium",children:l.nodeLabel}),y.jsxs("span",{style:{color:"var(--text-muted)"},children:[u.converged?"Converged":"Not converged"," — ","Objective: ",vO(u.total_objective)]})]})});const je=ye&&ye.points.length>0?["frontier","summary"]:["summary"];u.history&&u.history.length>0&&je.push("convergence"),je.push("export");const ue={frontier:"Frontier",summary:"Summary",convergence:"Convergence",export:"Export"};return y.jsxs("div",{ref:j,style:{height:O,borderTop:"1px solid var(--border)",background:"var(--bg-panel)"},className:"flex flex-col shrink-0 relative",children:[y.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:ve=>{ve.currentTarget.style.background="var(--accent)"},onMouseLeave:ve=>{ve.currentTarget.style.background="var(--chrome-border)"}}),y.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:[y.jsx(IM,{size:14,style:{color:"#f59e0b"}}),y.jsx("span",{className:"text-xs font-bold",style:{color:"var(--text-primary)"},children:l.nodeLabel}),y.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&&y.jsxs(y.Fragment,{children:[" · ",u.n_quotes.toLocaleString()," quotes"]})]}),y.jsx("div",{className:"flex gap-1 ml-3",children:je.map(ve=>y.jsx("button",{onClick:()=>_(ve),className:"px-2 py-0.5 rounded text-[10px] font-medium",style:{background:N===ve?"var(--accent-soft)":"var(--chrome-hover)",color:N===ve?"var(--accent)":"var(--text-muted)"},children:ue[ve]},ve))}),y.jsx("div",{className:"ml-auto flex items-center gap-1",children:y.jsx("button",{onClick:()=>p(!0),"aria-label":"Collapse panel",className:"p-1 rounded transition-colors",style:{color:"var(--text-muted)"},onMouseEnter:ve=>{ve.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:ve=>{ve.currentTarget.style.background="transparent"},children:y.jsx(Sd,{size:14})})})]}),y.jsxs("div",{className:"flex-1 overflow-auto px-4 py-3",children:[N==="frontier"&&y.jsx(Byn,{frontier:ye,result:u,constraints:g,constraintNames:P,selectedIdx:qe,xConstraintIdx:I,onXConstraintChange:q,onPointClick:Be,onStepPoint:ke,onSave:le,onLogMlflow:W,saving:te,logging:ne,mlflowAvailable:Q,actionMsg:se}),N==="summary"&&y.jsx(qyn,{result:u,constraints:g}),N==="convergence"&&u.history&&u.history.length>0&&y.jsx(Gyn,{result:u}),N==="export"&&y.jsx(Hyn,{result:u,onSave:le,onLogMlflow:W,saving:te,logging:ne,mlflowAvailable:Q,actionMsg:se})]})]})}function Byn({frontier:l,result:s,constraints:u,constraintNames:h,selectedIdx:g,xConstraintIdx:m,onXConstraintChange:p,onPointClick:O,onStepPoint:j,onSave:C,onLogMlflow:N,saving:_,logging:P,mlflowAvailable:I,actionMsg:q}){if(!l||l.points.length===0)return y.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 z=l.points,X=h[m]??h[0],Q=X?`total_${X}`:null,te="total_objective",V=Q?z.map(ye=>ye[Q]).filter(ye=>typeof ye=="number"&&Number.isFinite(ye)):[],ne=z.map(ye=>ye[te]).filter(ye=>typeof ye=="number"&&Number.isFinite(ye)),ce=Q&&V.length>=2&&ne.length>=2,se=X?s.constraints[X]:null,me=s.total_objective;return y.jsxs("div",{className:"flex gap-4 h-full",children:[y.jsxs("div",{className:"flex-[55] min-w-0",children:[h.length>1&&y.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[y.jsx("label",{className:"text-[10px] font-medium",style:{color:"var(--text-muted)"},children:"X axis:"}),y.jsx("select",{value:m,onChange:ye=>p(Number(ye.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((ye,qe)=>y.jsx("option",{value:qe,children:ye},ye))})]}),ce?y.jsx(zyn,{points:z,xKey:Q,yKey:te,xLabel:X??"constraint",selectedIdx:g,currentX:se,currentY:me,onPointClick:O}):y.jsx("div",{className:"text-xs py-4",style:{color:"var(--text-muted)"},children:"Insufficient data to plot frontier chart."}),y.jsxs("div",{className:"text-[10px] mt-1",style:{color:"var(--text-muted)"},children:[z.length," frontier points. Click a point for details."]})]}),g!=null&&z[g]&&y.jsx("div",{className:"flex-[45] min-w-[200px] max-w-[320px]",children:y.jsx(Fyn,{points:z,selectedIdx:g,result:s,constraints:u,constraintNames:h,onStepPoint:j,onSave:C,onLogMlflow:N,saving:_,logging:P,mlflowAvailable:I,actionMsg:q})})]})}function zyn({points:l,xKey:s,yKey:u,xLabel:h,selectedIdx:g,currentX:m,currentY:p,onPointClick:O}){const{xScale:j,yScale:C,xTicks:N,yTickVals:_}=re.useMemo(()=>{const P=l.map(se=>se[s]).filter(se=>typeof se=="number"&&Number.isFinite(se)),I=l.map(se=>se[u]).filter(se=>typeof se=="number"&&Number.isFinite(se));m!=null&&Number.isFinite(m)&&P.push(m),Number.isFinite(p)&&I.push(p);let q=Math.min(...P),z=Math.max(...P),X=Math.min(...I),Q=Math.max(...I);const te=(z-q)*.05||.01,V=(Q-X)*.05||.01;q-=te,z+=te,X-=V,Q+=V;const ne=z-q||1,ce=Q-X||1;return{xScale:se=>_I+(se-q)/ne*nMe,yScale:se=>xhe+Wfe-(se-X)/ce*Wfe,xTicks:jAe(q+te,z-te,4),yTickVals:jAe(X+V,Q-V,4)}},[l,s,u,m,p]);return y.jsxs("svg",{width:j9t,height:vhe,style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[_.map(P=>y.jsxs("g",{children:[y.jsx("line",{x1:_I,y1:C(P),x2:_I+nMe,y2:C(P),stroke:"var(--border)",strokeWidth:.5}),y.jsx("text",{x:_I-4,y:C(P)+3,textAnchor:"end",fontSize:9,fill:"var(--text-muted)",children:OAe(P)})]},`y-${P}`)),N.map(P=>y.jsx("text",{x:j(P),y:vhe-S9t+14,textAnchor:"middle",fontSize:9,fill:"var(--text-muted)",children:OAe(P)},`x-${P}`)),y.jsx("text",{x:_I+nMe/2,y:vhe-3,textAnchor:"middle",fontSize:9,fill:"var(--text-muted)",children:h}),y.jsx("text",{x:6,y:xhe+Wfe/2,textAnchor:"middle",fontSize:9,fill:"var(--text-muted)",transform:`rotate(-90,6,${xhe+Wfe/2})`,children:"objective"}),l.map((P,I)=>{const q=P[s],z=P[u];if(typeof q!="number"||typeof z!="number")return null;const X=g===I;return y.jsx("circle",{cx:j(q),cy:C(z),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:()=>O(I),tabIndex:0,role:"button","aria-label":`Select frontier point ${I+1}`,onKeyDown:Q=>{(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),O(I))}},I)}),m!=null&&Number.isFinite(m)&&Number.isFinite(p)&&y.jsxs("g",{children:[y.jsx("circle",{cx:j(m),cy:C(p),r:6,fill:"none",stroke:"#f59e0b",strokeWidth:2}),y.jsx("circle",{cx:j(m),cy:C(p),r:2.5,fill:"#f59e0b"})]})]})}function Fyn({points:l,selectedIdx:s,result:u,constraints:h,constraintNames:g,onStepPoint:m,onSave:p,onLogMlflow:O,saving:j,logging:C,mlflowAvailable:N,actionMsg:_}){const P=l[s];if(!P)return null;const I=Number(P.total_objective??0),q=u.baseline_objective,z=q!==0?(I/q-1)*100:null;return y.jsxs("div",{className:"rounded-lg p-3 space-y-3",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)"},children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("span",{className:"text-[11px] font-bold",style:{color:"var(--text-primary)"},children:["Point ",s+1," of ",l.length]}),y.jsxs("div",{className:"flex items-center gap-0.5",children:[y.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:y.jsx(UAe,{size:14})}),y.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:y.jsx(i2,{size:14})})]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-[10px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Objective"}),y.jsxs("div",{className:"mt-0.5 flex items-baseline justify-between text-xs font-mono gap-2",children:[y.jsx("span",{style:{color:"var(--text-primary)"},children:vO(I)}),z!=null&&y.jsxs("span",{style:{color:"#f59e0b"},children:[z>=0?"+":"",z.toFixed(2),"% vs baseline"]})]})]}),g.length>0&&y.jsxs("div",{children:[y.jsx("label",{className:"text-[10px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Constraints"}),y.jsx("div",{className:"mt-0.5 space-y-0.5",children:g.map(X=>{const Q=`total_${X}`,te=Number(P[Q]??0),V=u.baseline_constraints[X],ne=V?te/V:0,ce=h[X]||{},se=Object.keys(ce)[0],me=ce[se]??0,ye=T9t(se,ne,te,me);return y.jsxs("div",{className:"flex items-center justify-between text-xs font-mono gap-2",children:[y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full shrink-0",style:{background:ye?"#22c55e":"#ef4444"}}),y.jsx("span",{style:{color:"var(--text-secondary)"},children:X})]}),y.jsxs("span",{children:[y.jsx("span",{style:{color:"var(--text-primary)"},children:vO(te)}),V!=null&&V!==0&&y.jsxs("span",{style:{color:"var(--text-muted)"},children:[" (",(ne*100).toFixed(1),"%)"]})]})]},X)})})]}),(()=>{const X=Object.keys(P).filter(Q=>Q.startsWith("lambda_"));return X.length===0?null:y.jsxs("div",{children:[y.jsx("label",{className:"text-[10px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Lambdas"}),y.jsx("div",{className:"mt-0.5 space-y-0.5",children:X.map(Q=>{const te=Q.replace(/^lambda_/,""),V=P[Q];return y.jsxs("div",{className:"flex justify-between text-xs font-mono gap-2",children:[y.jsx("span",{style:{color:"var(--text-secondary)"},children:te}),y.jsx("span",{style:{color:"var(--text-primary)"},children:typeof V=="number"?V.toFixed(6):String(V)})]},Q)})})]})})(),y.jsxs("div",{className:"flex gap-2 pt-1",style:{borderTop:"1px solid var(--border)"},children:[y.jsxs("button",{onClick:p,disabled:j||C,className:"flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[11px] font-medium transition-colors",style:{background:j||C?"var(--chrome-hover)":"rgba(245,158,11,.12)",color:j||C?"var(--text-muted)":"#f59e0b",border:"1px solid rgba(245,158,11,.25)"},children:[j?y.jsx(r2,{size:12,className:"animate-spin"}):y.jsx(GOt,{size:12}),"Save Result"]}),N&&y.jsxs("button",{onClick:O,disabled:j||C,className:"flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[11px] font-medium transition-colors",style:{background:j||C?"var(--chrome-hover)":"rgba(168,85,247,.12)",color:j||C?"var(--text-muted)":"#a855f7",border:"1px solid rgba(168,85,247,.25)"},children:[C?y.jsx(r2,{size:12,className:"animate-spin"}):y.jsx(UOt,{size:12}),"Log to MLflow"]})]}),_&&y.jsx("div",{className:"text-[10px] font-mono px-1",style:{color:"var(--text-muted)",wordBreak:"break-all"},children:_})]})}function qyn({result:l,constraints:s}){return y.jsxs("div",{className:"flex gap-6 flex-wrap",children:[y.jsxs("div",{className:"space-y-3 min-w-[200px]",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Objective"}),y.jsxs("div",{className:"mt-1 space-y-0.5",children:[y.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[y.jsx("span",{style:{color:"var(--text-secondary)"},children:"Optimised"}),y.jsx("span",{style:{color:"var(--text-primary)"},children:vO(l.total_objective)})]}),y.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[y.jsx("span",{style:{color:"var(--text-secondary)"},children:"Baseline"}),y.jsx("span",{style:{color:"var(--text-muted)"},children:vO(l.baseline_objective)})]}),l.baseline_objective!==0&&y.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[y.jsx("span",{style:{color:"var(--text-secondary)"},children:"Uplift"}),y.jsxs("span",{style:{color:"#f59e0b"},children:[((l.total_objective/l.baseline_objective-1)*100).toFixed(2),"%"]})]})]})]}),Object.keys(l.constraints).length>0&&y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Constraints"}),y.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]||{},O=Object.keys(p)[0],j=p[O]??0,C=T9t(O,m,h,j);return y.jsxs("div",{className:"flex items-center justify-between text-xs font-mono gap-4",children:[y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full shrink-0",style:{background:C?"#22c55e":"#ef4444"}}),y.jsx("span",{style:{color:"var(--text-secondary)"},children:u})]}),y.jsxs("span",{children:[y.jsx("span",{style:{color:"var(--text-primary)"},children:vO(h)}),g!==void 0&&y.jsxs("span",{style:{color:"var(--text-muted)"},children:[" (",(m*100).toFixed(1),"%)"]})]})]},u)})})]}),l.mode!=="ratebook"&&Object.keys(l.lambdas).length>0&&y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Lambdas"}),y.jsx("div",{className:"mt-1 space-y-0.5",children:Object.entries(l.lambdas).map(([u,h])=>y.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[y.jsx("span",{style:{color:"var(--text-secondary)"},children:u}),y.jsx("span",{style:{color:"var(--text-primary)"},children:h.toFixed(6)})]},u))})]}),l.mode==="ratebook"&&l.clamp_rate!=null&&y.jsxs("div",{className:"flex justify-between text-xs font-mono",children:[y.jsx("span",{style:{color:"var(--text-muted)"},children:"Clamp rate"}),y.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,O=2,j=2,C=m-O*2,N=p-j*2,_=C/u.length,P=h[0],I=h[h.length-1],q=I>P?O+(1-P)/(I-P)*C:null;return y.jsxs("div",{className:"min-w-[200px]",children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Scenario Value Distribution"}),y.jsxs("svg",{width:m,height:p,className:"mt-1",style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[u.map((z,X)=>{const Q=g>0?z/g*N:0;return y.jsx("rect",{x:O+X*_+.5,y:j+N-Q,width:Math.max(_-1,1),height:Q,fill:"#f59e0b",opacity:.7},X)}),q!=null&&q>=O&&q<=O+C&&y.jsx("line",{x1:q,y1:j,x2:q,y2:j+N,stroke:"#ef4444",strokeWidth:1,strokeDasharray:"3,2"})]}),y.jsxs("div",{className:"flex gap-3 mt-0.5 text-[10px]",style:{color:"var(--text-muted)"},children:[y.jsx("span",{children:P.toFixed(2)}),y.jsx("span",{className:"flex-1"}),q!=null&&y.jsxs("span",{children:[y.jsx("span",{style:{color:"#ef4444"},children:"|"})," 1.0"]}),y.jsx("span",{className:"flex-1"}),y.jsx("span",{children:I.toFixed(2)})]}),l.scenario_value_stats&&y.jsxs("div",{className:"mt-2 grid grid-cols-2 gap-x-6 gap-y-0.5 text-xs font-mono",children:[y.jsxs("div",{className:"flex justify-between",children:[y.jsx("span",{style:{color:"var(--text-muted)"},children:"Mean"}),y.jsx("span",{style:{color:"var(--text-primary)"},children:l.scenario_value_stats.mean.toFixed(4)})]}),y.jsxs("div",{className:"flex justify-between",children:[y.jsx("span",{style:{color:"var(--text-muted)"},children:"Std"}),y.jsx("span",{style:{color:"var(--text-primary)"},children:l.scenario_value_stats.std.toFixed(4)})]}),y.jsxs("div",{className:"flex justify-between",children:[y.jsx("span",{style:{color:"var(--text-muted)"},children:"P5-P95"}),y.jsxs("span",{style:{color:"var(--text-primary)"},children:[l.scenario_value_stats.p5.toFixed(3),"-",l.scenario_value_stats.p95.toFixed(3)]})]}),y.jsxs("div",{className:"flex justify-between",children:[y.jsx("span",{style:{color:"var(--text-muted)"},children:"Min-Max"}),y.jsxs("span",{style:{color:"var(--text-primary)"},children:[l.scenario_value_stats.min.toFixed(3),"-",l.scenario_value_stats.max.toFixed(3)]})]}),y.jsxs("div",{className:"flex justify-between",children:[y.jsx("span",{style:{color:"#22c55e"},children:"Increase"}),y.jsxs("span",{style:{color:"#22c55e"},children:[(l.scenario_value_stats.pct_increase*100).toFixed(1),"%"]})]}),y.jsxs("div",{className:"flex justify-between",children:[y.jsx("span",{style:{color:"#ef4444"},children:"Decrease"}),y.jsxs("span",{style:{color:"#ef4444"},children:[(l.scenario_value_stats.pct_decrease*100).toFixed(1),"%"]})]})]})]})})(),l.mode==="ratebook"&&l.factor_tables&&y.jsxs("div",{className:"min-w-[180px]",children:[y.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])=>y.jsxs("div",{className:"mt-1.5",children:[y.jsx("div",{className:"text-[11px] font-medium mb-1",style:{color:"var(--text-secondary)"},children:u}),y.jsx("div",{className:"space-y-0.5",children:h.map((g,m)=>{const p=g.__factor_group__??g[Object.keys(g)[0]]??`Level ${m}`,O=g.optimal_scenario_value;return y.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[y.jsx("span",{style:{color:"var(--text-secondary)"},children:p}),y.jsx("span",{style:{color:"var(--text-primary)"},children:typeof O=="number"?O.toFixed(2):"?"})]},m)})})]},u))]})]})}function Hyn({result:l,onSave:s,onLogMlflow:u,saving:h,logging:g,mlflowAvailable:m,actionMsg:p}){return y.jsxs("div",{className:"space-y-4 max-w-md",children:[y.jsxs("div",{className:"space-y-1",children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Save to file"}),y.jsx("p",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"Save the optimisation result as a JSON artifact. This can be loaded by an Apply Optimisation node."}),y.jsxs("button",{onClick:s,disabled:h||g,className:"flex items-center gap-1.5 px-3 py-1.5 rounded text-xs font-medium transition-colors mt-1.5",style:{background:h||g?"var(--chrome-hover)":"rgba(245,158,11,.12)",color:h||g?"var(--text-muted)":"#f59e0b"},children:[h?y.jsx(r2,{size:12,className:"animate-spin"}):y.jsx(GOt,{size:12}),"Save result"]})]}),m&&y.jsxs("div",{className:"space-y-1",children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Log to MLflow"}),y.jsx("p",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"Log the optimisation result, convergence history, and metadata to MLflow for tracking and comparison."}),y.jsxs("button",{onClick:u,disabled:h||g,className:"flex items-center gap-1.5 px-3 py-1.5 rounded text-xs font-medium transition-colors mt-1.5",style:{background:h||g?"var(--chrome-hover)":"rgba(168,85,247,.12)",color:h||g?"var(--text-muted)":"#a855f7"},children:[g?y.jsx(r2,{size:12,className:"animate-spin"}):y.jsx(UOt,{size:12}),"Log to MLflow"]})]}),p&&y.jsx("div",{className:"text-xs px-2 py-1.5 rounded",style:{background:"var(--bg-input)",color:"var(--text-secondary)"},children:p}),y.jsx("div",{className:"pt-2",style:{borderTop:"1px solid var(--border)"},children:y.jsxs("div",{className:"grid grid-cols-2 gap-x-6 gap-y-0.5 text-xs font-mono",children:[y.jsxs("div",{className:"flex justify-between",children:[y.jsx("span",{style:{color:"var(--text-muted)"},children:"Objective"}),y.jsx("span",{style:{color:"var(--text-primary)"},children:vO(l.total_objective)})]}),y.jsxs("div",{className:"flex justify-between",children:[y.jsx("span",{style:{color:"var(--text-muted)"},children:"Baseline"}),y.jsx("span",{style:{color:"var(--text-primary)"},children:vO(l.baseline_objective)})]}),y.jsxs("div",{className:"flex justify-between",children:[y.jsx("span",{style:{color:"var(--text-muted)"},children:"Status"}),y.jsx("span",{style:{color:l.converged?"#22c55e":"#f59e0b"},children:l.converged?"Converged":"Not converged"})]}),l.n_quotes!=null&&y.jsxs("div",{className:"flex justify-between",children:[y.jsx("span",{style:{color:"var(--text-muted)"},children:"Quotes"}),y.jsx("span",{style:{color:"var(--text-primary)"},children:l.n_quotes.toLocaleString()})]})]})})]})}function Gyn({result:l}){const s=l.history??[];if(!s.length)return null;const u=400,h=140,g=6,m=6,p=u-g*2,O=h-m*2,j=s.map(ce=>ce.total_objective),C=s.map(ce=>ce.max_lambda_change),N=Math.min(...j),_=Math.max(...j),P=Math.min(...C),I=Math.max(...C),q=_-N||1,z=I-P||1,X=ce=>g+ce/Math.max(s.length-1,1)*p,Q=ce=>m+O-(ce-N)/q*O,te=ce=>m+O-(ce-P)/z*O,V=s.map((ce,se)=>`${se===0?"M":"L"}${X(se).toFixed(1)},${Q(ce.total_objective).toFixed(1)}`).join(" "),ne=s.map((ce,se)=>`${se===0?"M":"L"}${X(se).toFixed(1)},${te(ce.max_lambda_change).toFixed(1)}`).join(" ");return y.jsxs("div",{className:"flex gap-6 flex-wrap",children:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Convergence"}),y.jsxs("svg",{width:u,height:h,className:"mt-1",style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[y.jsx("path",{d:V,fill:"none",stroke:"#f59e0b",strokeWidth:1.5}),y.jsx("path",{d:ne,fill:"none",stroke:"#3b82f6",strokeWidth:1.5})]}),y.jsxs("div",{className:"flex gap-3 mt-0.5 text-[10px]",style:{color:"var(--text-muted)"},children:[y.jsxs("span",{children:[y.jsx("span",{style:{color:"#f59e0b"},children:"--"})," Objective"]}),y.jsxs("span",{children:[y.jsx("span",{style:{color:"#3b82f6"},children:"--"})," Lambda change"]})]})]}),y.jsxs("div",{className:"min-w-[280px]",children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Iterations"}),y.jsxs("div",{className:"mt-1 max-h-48 overflow-y-auto",children:[y.jsxs("div",{className:"flex text-[10px] font-bold py-0.5 sticky top-0",style:{color:"var(--text-muted)",background:"var(--bg-panel)"},children:[y.jsx("span",{className:"w-8 text-center",children:"#"}),y.jsx("span",{className:"flex-1 text-right",children:"Objective"}),y.jsx("span",{className:"flex-1 text-right",children:"Max dLambda"}),y.jsx("span",{className:"w-10 text-center",children:"OK"})]}),s.map(ce=>y.jsxs("div",{className:"flex text-[10px] font-mono py-0.5",style:{color:"var(--text-secondary)"},children:[y.jsx("span",{className:"w-8 text-center",children:ce.iteration}),y.jsx("span",{className:"flex-1 text-right",children:vO(ce.total_objective)}),y.jsx("span",{className:"flex-1 text-right",children:ce.max_lambda_change.toExponential(2)}),y.jsx("span",{className:"w-10 text-center",children:ce.all_constraints_satisfied?"Y":"N"})]},ce.iteration))]})]})]})}const _9=["#f59e0b","#3b82f6","#22c55e","#ef4444","#a855f7","#06b6d4","#f97316","#ec4899"],zI=44,Qyn=12,T4t=14,Uyn=22;function Jyn(l,s,u,h,g=0){const m=u-zI-Qyn,p=h-T4t-Uyn;let O=1/0,j=-1/0;for(const te of s)for(const V of l){const ne=V.values[te]??0;ne<O&&(O=ne),ne>j&&(j=ne)}Number.isFinite(O)||(O=0),Number.isFinite(j)||(j=1);const C=j-O||1,N=jAe(O,j),_=C*g,P=O-_,I=C+_*2||1,q=l.map(te=>te.scenarioIndex),z=Math.min(...q),Q=Math.max(...q)-z||1;return{xScale:te=>zI+(te-z)/Q*m,yScale:te=>T4t+p-(te-P)/I*p,ticks:N,chartW:m,w:u,h}}function Wyn({ctx:l}){return y.jsxs(y.Fragment,{children:[l.ticks.map(s=>y.jsxs("g",{children:[y.jsx("line",{x1:zI,y1:l.yScale(s),x2:zI+l.chartW,y2:l.yScale(s),stroke:"var(--border)",strokeWidth:.5}),y.jsx("text",{x:zI-4,y:l.yScale(s)+3,textAnchor:"end",fontSize:9,fill:"var(--text-muted)",children:OAe(s)})]},s)),y.jsx("text",{x:zI+l.chartW/2,y:l.h-3,textAnchor:"middle",fontSize:9,fill:"var(--text-muted)",children:"scenario index"})]})}function Vyn({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 y.jsxs("g",{children:[y.jsx("path",{d:g,fill:"none",stroke:u,strokeWidth:1.5}),l.map((m,p)=>y.jsx("circle",{cx:h.xScale(m.scenarioIndex),cy:h.yScale(m.values[s]??0),r:2.5,fill:u},p))]})}const C4t=520,E4t=220,Xyn=re.memo(function({currentRows:s,visibleSeries:u,allSeries:h}){const g=re.useMemo(()=>Jyn(s,u,C4t,E4t,.05),[s,u]);return y.jsxs("svg",{width:C4t,height:E4t,style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[y.jsx(Wyn,{ctx:g}),u.map(m=>y.jsx(Vyn,{rows:s,column:m,color:_9[h.indexOf(m)%_9.length],ctx:g},m))]})});function Kyn(l,s,u){return s.map(h=>{const g=[];let m=0;for(const P of l.values()){const I=P.find(q=>q.scenarioIndex===h);I&&(g.push(I.values[u]??0),m=I.scenarioValue)}g.sort((P,I)=>P-I);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 j=g.reduce((P,I)=>P+I,0)/p,C=g.reduce((P,I)=>P+(I-j)**2,0)/p,N=Math.sqrt(C),_=P=>{const I=P/100*(p-1),q=Math.floor(I),z=Math.ceil(I);return q===z?g[q]:g[q]+(g[z]-g[q])*(I-q)};return{scenarioIndex:h,scenarioValue:m,count:p,mean:j,std:N,min:g[0],p25:_(25),median:_(50),p75:_(75),max:g[p-1]}})}function C9(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 Yyn=["Count","Mean","Std","Min","P25","Median","P75","Max"];function Zyn({column:l,color:s,isObjective:u,stats:h}){return y.jsxs("div",{className:"mb-4",children:[y.jsxs("div",{className:"flex items-center gap-1.5 mb-1.5",children:[y.jsx("span",{className:"inline-block w-2 h-2 rounded-full",style:{background:s}}),y.jsxs("span",{className:"text-[11px] font-mono font-medium",style:{color:"var(--text-secondary)"},children:[l,u&&y.jsx("span",{className:"ml-1 text-[9px] font-sans",style:{color:"var(--text-muted)"},children:"objective"})]})]}),y.jsx("div",{className:"overflow-x-auto",children:y.jsxs("table",{className:"w-full text-[11px]",children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.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"}),y.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"}),Yyn.map(g=>y.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))]})}),y.jsx("tbody",{children:h.map((g,m)=>y.jsxs("tr",{style:{background:m%2===0?"transparent":"rgba(255,255,255,.02)"},children:[y.jsx("td",{className:"px-2 py-0.5 font-mono",style:{color:"var(--text-primary)"},children:g.scenarioIndex}),y.jsx("td",{className:"px-2 py-0.5 font-mono",style:{color:"var(--text-muted)"},children:C9(g.scenarioValue)}),y.jsx("td",{className:"px-2 py-0.5 font-mono text-right",style:{color:"var(--text-secondary)"},children:g.count}),y.jsx("td",{className:"px-2 py-0.5 font-mono text-right",style:{color:"var(--text-primary)"},children:C9(g.mean)}),y.jsx("td",{className:"px-2 py-0.5 font-mono text-right",style:{color:"var(--text-secondary)"},children:C9(g.std)}),y.jsx("td",{className:"px-2 py-0.5 font-mono text-right",style:{color:"var(--text-secondary)"},children:C9(g.min)}),y.jsx("td",{className:"px-2 py-0.5 font-mono text-right",style:{color:"var(--text-secondary)"},children:C9(g.p25)}),y.jsx("td",{className:"px-2 py-0.5 font-mono text-right",style:{color:"var(--text-primary)"},children:C9(g.median)}),y.jsx("td",{className:"px-2 py-0.5 font-mono text-right",style:{color:"var(--text-secondary)"},children:C9(g.p75)}),y.jsx("td",{className:"px-2 py-0.5 font-mono text-right",style:{color:"var(--text-secondary)"},children:C9(g.max)})]},g.scenarioIndex))})]})})]})}function iMe({children:l}){return y.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 e3n({data:l,config:s}){const[u,h]=re.useState(!1),[g,m]=re.useState("chart"),{height:p,containerRef:O,onDragStart:j}=Jde({initialHeight:320,minHeight:160,maxHeight:600}),C=s.objective||"",N=re.useMemo(()=>s.constraints??{},[s.constraints]),_=re.useMemo(()=>Object.keys(N),[N]),P=s.quote_id||"quote_id",I=s.scenario_index||"scenario_index",q=s.scenario_value||"scenario_value",z=re.useMemo(()=>{const Ee=[];C&&Ee.push(C);for(const tt of _)tt!==C&&Ee.push(tt);return Ee},[C,_]),X=z.join("\0"),[Q,te]=re.useState(()=>new Set(z));re.useEffect(()=>{te(new Set(z))},[X]);const V=re.useCallback(Ee=>{te(tt=>{const Te=new Set(tt);return Te.has(Ee)?Te.delete(Ee):Te.add(Ee),Te})},[]),{quoteIds:ne,quoteData:ce}=re.useMemo(()=>{const Ee=new Map;for(const Te of l.preview){const et=String(Te[P]??""),Ie=Number(Te[I]??0),Ye=Number(Te[q]??0),Je={};for(const _t of z)Je[_t]=Number(Te[_t]??0);Ee.has(et)||Ee.set(et,[]),Ee.get(et).push({scenarioIndex:Ie,scenarioValue:Ye,values:Je})}for(const Te of Ee.values())Te.sort((et,Ie)=>et.scenarioIndex-Ie.scenarioIndex);return{quoteIds:[...Ee.keys()],quoteData:Ee}},[l.preview,P,I,q,z]),[se,me]=re.useState(0),[ye,qe]=re.useState("");re.useEffect(()=>{me(0),qe("")},[ne.length]);const Be=Math.min(se,Math.max(0,ne.length-1)),ke=ne[Be]??"",le=ce.get(ke)??[],W=re.useCallback(()=>me(Ee=>Math.max(0,Ee-1)),[]),pe=re.useCallback(()=>me(Ee=>Math.min(ne.length-1,Ee+1)),[ne.length]),je=re.useCallback(()=>{const Ee=ne.indexOf(ye.trim());Ee>=0&&(me(Ee),qe(""))},[ne,ye]),ue=re.useMemo(()=>z.filter(Ee=>Q.has(Ee)),[z,Q]),ve=re.useMemo(()=>{if(g!=="statistics")return[];const Ee=new Set;for(const tt of ce.values())for(const Te of tt)Ee.add(Te.scenarioIndex);return[...Ee].sort((tt,Te)=>tt-Te)},[ce,g]),xe=re.useMemo(()=>{if(g!=="statistics")return new Map;const Ee=new Map;for(const tt of z)Ee.set(tt,Kyn(ce,ve,tt));return Ee},[z,ce,ve,g]);return C?ne.length===0||le.length===0?y.jsxs(iMe,{children:[y.jsx(IM,{size:14,style:{color:"#f59e0b"},className:"mr-2"}),y.jsxs("span",{className:"text-xs",style:{color:"var(--text-muted)"},children:["No scenario data in preview. Ensure upstream nodes produce"," ",y.jsx("span",{className:"font-mono",children:P})," and"," ",y.jsx("span",{className:"font-mono",children:I})," columns."]})]}):u?y.jsx(iMe,{children:y.jsxs("button",{onClick:()=>h(!1),className:"flex items-center gap-2 text-xs",style:{color:"var(--text-secondary)"},children:[y.jsx(jde,{size:14}),y.jsx(IM,{size:14}),y.jsx("span",{className:"font-medium",children:l.nodeLabel}),y.jsxs("span",{style:{color:"var(--text-muted)"},children:[ne.length," quotes · ",le.length," scenarios"]})]})}):y.jsxs("div",{ref:O,style:{height:p,borderTop:"1px solid var(--border)",background:"var(--bg-panel)"},className:"flex flex-col shrink-0 relative",children:[y.jsx("div",{onMouseDown:j,className:"absolute top-0 left-0 right-0 h-1 cursor-ns-resize z-10 transition-colors",style:{background:"var(--chrome-border)"},onMouseEnter:Ee=>{Ee.currentTarget.style.background="var(--accent)"},onMouseLeave:Ee=>{Ee.currentTarget.style.background="var(--chrome-border)"}}),y.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:[y.jsx(IM,{size:14,style:{color:"#f59e0b"}}),y.jsx("span",{className:"text-xs font-bold",style:{color:"var(--text-primary)"},children:l.nodeLabel}),y.jsxs("span",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:[ne.length," quotes · ",le.length," scenarios"]}),g==="chart"&&y.jsxs("div",{className:"flex items-center gap-1 ml-3",children:[y.jsx("button",{onClick:W,disabled:Be===0,className:"p-0.5 rounded transition-colors",style:{color:Be===0?"var(--text-muted)":"var(--text-secondary)",opacity:Be===0?.4:1},children:y.jsx(UAe,{size:14})}),y.jsx("span",{className:"text-[11px] font-mono min-w-[80px] text-center",style:{color:"var(--text-primary)"},title:ke,children:ke.length>12?ke.slice(0,10)+"…":ke}),y.jsx("button",{onClick:pe,disabled:Be>=ne.length-1,className:"p-0.5 rounded transition-colors",style:{color:Be>=ne.length-1?"var(--text-muted)":"var(--text-secondary)",opacity:Be>=ne.length-1?.4:1},children:y.jsx(i2,{size:14})}),y.jsxs("span",{className:"text-[10px]",style:{color:"var(--text-muted)"},children:[Be+1,"/",ne.length]})]}),g==="chart"&&y.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:[y.jsx(dR,{size:11,style:{color:"var(--text-muted)"}}),y.jsx("input",{type:"text",value:ye,onChange:Ee=>qe(Ee.target.value),onKeyDown:Ee=>{Ee.key==="Enter"&&je()},placeholder:"Find quote...",className:"w-24 text-[11px] font-mono bg-transparent focus:outline-none",style:{color:"var(--text-primary)"}})]}),y.jsx("div",{className:"flex gap-1 ml-3",children:["chart","statistics"].map(Ee=>y.jsx("button",{onClick:()=>m(Ee),className:"px-2 py-0.5 rounded text-[10px] font-medium",style:{background:g===Ee?"var(--accent-soft)":"var(--chrome-hover)",color:g===Ee?"var(--accent)":"var(--text-muted)"},children:Ee==="chart"?"Chart":"Statistics"},Ee))}),y.jsx("div",{className:"ml-auto flex items-center gap-1",children:y.jsx("button",{onClick:()=>h(!0),className:"p-1 rounded transition-colors",style:{color:"var(--text-muted)"},onMouseEnter:Ee=>{Ee.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:Ee=>{Ee.currentTarget.style.background="transparent"},children:y.jsx(Sd,{size:14})})})]}),y.jsx("div",{className:"flex-1 overflow-auto px-4 py-3",children:g==="chart"?y.jsxs("div",{className:"flex gap-6",children:[y.jsxs("div",{className:"shrink-0 space-y-1 min-w-[140px]",children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Series"}),z.map((Ee,tt)=>y.jsxs("label",{className:"flex items-center gap-1.5 text-xs cursor-pointer select-none",style:{color:"var(--text-secondary)"},children:[y.jsx("input",{type:"checkbox",checked:Q.has(Ee),onChange:()=>V(Ee),style:{accentColor:_9[tt%_9.length]}}),y.jsx("span",{className:"inline-block w-2 h-2 rounded-full shrink-0",style:{background:_9[tt%_9.length],opacity:Q.has(Ee)?1:.3}}),y.jsxs("span",{className:"font-mono truncate max-w-[120px]",title:Ee,children:[Ee,Ee===C&&y.jsx("span",{className:"ml-1 text-[9px] font-sans",style:{color:"var(--text-muted)"},children:"obj"})]})]},Ee)),y.jsxs("div",{className:"mt-3 pt-2",style:{borderTop:"1px solid var(--border)"},children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Quote"}),y.jsxs("div",{className:"mt-1 text-[11px] font-mono",style:{color:"var(--text-secondary)"},children:[y.jsxs("div",{className:"flex justify-between gap-2",children:[y.jsx("span",{style:{color:"var(--text-muted)"},children:"ID"}),y.jsx("span",{title:ke,children:ke.length>14?ke.slice(0,12)+"…":ke})]}),y.jsxs("div",{className:"flex justify-between gap-2",children:[y.jsx("span",{style:{color:"var(--text-muted)"},children:"Scenarios"}),y.jsx("span",{children:le.length})]})]})]})]}),y.jsx("div",{className:"flex-1 min-w-0",children:ue.length===0?y.jsx("div",{className:"text-xs py-4 text-center",style:{color:"var(--text-muted)"},children:"Select at least one series to plot."}):y.jsx(Xyn,{currentRows:le,visibleSeries:ue,allSeries:z})})]}):y.jsx("div",{children:z.map((Ee,tt)=>{const Te=xe.get(Ee);return Te?y.jsx(Zyn,{column:Ee,color:_9[tt%_9.length],isObjective:Ee===C,stats:Te},Ee):null})})})]}):y.jsx(iMe,{children:y.jsx("span",{className:"text-xs",style:{color:"var(--text-muted)"},children:"Configure an objective column to see the quote chart."})})}function t3n({trainJobId:l,mlflowBackend:s,config:u,onMlflowResult:h}){const[g,m]=re.useState(!1),[p,O]=re.useState(null),j=re.useCallback(async()=>{m(!0),O(null),h==null||h(null);try{const C=await Mdn({job_id:l,experiment_name:An(u,"mlflow_experiment","")||null,model_name:An(u,"model_name","")||null});O(C),h==null||h(C)}catch(C){const N={status:"error",error:String(C)};O(N),h==null||h(N)}finally{m(!1)}},[l,u,h]);return y.jsxs("div",{className:"space-y-1.5",children:[y.jsxs("button",{onClick:j,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?y.jsx(r2,{size:14,className:"animate-spin"}):y.jsx(FOt,{size:14}),g?"Logging...":`Log to MLflow (${s.backend})`]}),p&&p.status==="ok"&&y.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:[y.jsxs("div",{style:{color:"#3b82f6"},children:["Logged to ",p.experiment_name]}),p.run_url&&y.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&&y.jsxs("div",{style:{color:"var(--text-muted)"},children:["Run ID: ",p.run_id]})]}),p&&p.status==="error"&&y.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 n3n({result:l,jobId:s,mlflowBackend:u,config:h}){var C,N;const g=_=>typeof _=="number"&&Number.isFinite(_)?_.toFixed(4):"N/A",m=((C=l.features)==null?void 0:C.length)??l.feature_importance.length,p=((N=l.cat_features)==null?void 0:N.length)??0,O=l.diagnostics_set??"validation",j=O==="holdout"?"Holdout":O==="train"?"Train":"Validation";return y.jsxs("div",{className:"flex gap-6 flex-wrap",children:[l.warning&&y.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:[y.jsx("span",{className:"shrink-0 mt-0.5",style:{color:"#f59e0b"},children:"⚠"}),y.jsx("span",{style:{color:"#fbbf24"},children:l.warning})]}),y.jsxs("div",{className:"min-w-[200px]",children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Model Info"}),y.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(m)],["Cat features",String(p)],...l.best_iteration!=null?[["Best iteration",String(l.best_iteration)]]:[],["Diagnostics on",j]].map(([_,P])=>y.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[y.jsx("span",{style:{color:"var(--text-secondary)"},children:_}),y.jsx("span",{className:"text-right truncate",style:{color:"var(--text-primary)",maxWidth:200},children:P})]},_))})]}),Object.keys(l.metrics).length>0&&y.jsxs("div",{className:"min-w-[180px]",children:[y.jsxs("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:["Metrics (",j,")"]}),y.jsx("div",{className:"mt-1 space-y-0.5",children:Object.entries(l.metrics).map(([_,P])=>y.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[y.jsx("span",{style:{color:"var(--text-secondary)"},children:_}),y.jsx("span",{style:{color:"var(--text-primary)"},children:g(P)})]},_))})]}),l.holdout_metrics&&Object.keys(l.holdout_metrics).length>0&&O!=="holdout"&&y.jsxs("div",{className:"min-w-[180px]",children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Metrics (Holdout)"}),y.jsx("div",{className:"mt-1 space-y-0.5",children:Object.entries(l.holdout_metrics).map(([_,P])=>y.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[y.jsx("span",{style:{color:"var(--text-secondary)"},children:_}),y.jsx("span",{style:{color:"var(--text-primary)"},children:g(P)})]},_))})]}),l.cv_results&&y.jsxs("div",{className:"min-w-[200px]",children:[y.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)"]}),y.jsx("div",{className:"mt-1 space-y-0.5",children:Object.entries(l.cv_results.mean_metrics).map(([_,P])=>{var I;return y.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[y.jsx("span",{style:{color:"var(--text-secondary)"},children:_}),y.jsxs("span",{style:{color:"var(--text-primary)"},children:[g(P),((I=l.cv_results)==null?void 0:I.std_metrics[_])!=null&&y.jsxs("span",{style:{color:"var(--text-muted)"},children:[" ","± ",g(l.cv_results.std_metrics[_])]})]})]},_)})})]}),l.glm_fit_statistics&&Object.keys(l.glm_fit_statistics).length>0&&y.jsxs("div",{className:"min-w-[180px]",children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Fit Statistics"}),y.jsx("div",{className:"mt-1 space-y-0.5",children:Object.entries(l.glm_fit_statistics).map(([_,P])=>y.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[y.jsx("span",{style:{color:"var(--text-secondary)"},children:_}),y.jsx("span",{style:{color:"var(--text-primary)"},children:g(P)})]},_))})]}),l.glm_regularization_path&&(l.glm_regularization_path.selected_alpha!=null||l.glm_regularization_path.n_nonzero!=null)&&y.jsxs("div",{className:"min-w-[160px]",children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Regularization"}),y.jsxs("div",{className:"mt-1 space-y-0.5",children:[l.glm_regularization_path.selected_alpha!=null&&y.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[y.jsx("span",{style:{color:"var(--text-secondary)"},children:"Alpha"}),y.jsx("span",{style:{color:"var(--text-primary)"},children:typeof l.glm_regularization_path.selected_alpha=="number"&&Number.isFinite(l.glm_regularization_path.selected_alpha)?l.glm_regularization_path.selected_alpha.toFixed(6):"N/A"})]}),l.glm_regularization_path.n_nonzero!=null&&y.jsxs("div",{className:"flex justify-between text-xs font-mono gap-4",children:[y.jsx("span",{style:{color:"var(--text-secondary)"},children:"Non-zero"}),y.jsx("span",{style:{color:"var(--text-primary)"},children:l.glm_regularization_path.n_nonzero})]})]})]}),(u==null?void 0:u.installed)&&s&&y.jsx("div",{className:"min-w-[200px]",children:y.jsx(t3n,{trainJobId:s,mlflowBackend:u,config:h})})]})}const M4t="rgba(255,255,255,.06)",Vfe="var(--text-muted)",Xfe=10,A4t="#a855f7",N4t="#22c55e",_4t="#f59e0b";function i3n({result:l,width:s=700,height:u=280}){const h=l.loss_history;if(!h||h.length<2)return y.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(je=>je!=="iteration"),m=g.find(je=>je.startsWith("train_")),p=g.find(je=>je.startsWith("eval_"));if(!m)return y.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 O=60,j=16,C=16,N=36,_=s-O-j,P=u-C-N,I=[];for(const je of h)je[m]!=null&&I.push(je[m]),p&&je[p]!=null&&I.push(je[p]);const q=I.reduce((je,ue)=>Math.min(je,ue),1/0),z=I.reduce((je,ue)=>Math.max(je,ue),-1/0),Q=(z-q||1)*.05,te=q-Q,ne=z+Q-te,ce=je=>O+je/(h.length-1)*_,se=je=>C+P-(je-te)/ne*P,me=je=>h.map((ve,xe)=>ve[je]!=null?`${xe===0?"M":"L"}${ce(xe).toFixed(1)},${se(ve[je]).toFixed(1)}`:null).filter(Boolean).join(" "),ye=5,qe=Math.min(5,h.length-1),Be=Array.from({length:ye+1},(je,ue)=>te+ue/ye*ne),ke=Array.from({length:qe+1},(je,ue)=>Math.round(ue/qe*(h.length-1))),le=l.best_iteration,W=le!=null?ce(Math.min(le,h.length-1)):null,pe=m.replace("train_","");return y.jsxs("div",{children:[y.jsxs("svg",{width:s,height:u,style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[Be.map((je,ue)=>{const ve=se(je);return y.jsxs("g",{children:[y.jsx("line",{x1:O,y1:ve,x2:O+_,y2:ve,stroke:M4t,strokeWidth:1}),y.jsx("text",{x:O-6,y:ve+3,textAnchor:"end",fontSize:Xfe,fill:Vfe,children:je.toPrecision(3)})]},`gy-${ue}`)}),ke.map((je,ue)=>{var Ee;const ve=ce(je),xe=((Ee=h[je])==null?void 0:Ee.iteration)??je;return y.jsxs("g",{children:[y.jsx("line",{x1:ve,y1:C,x2:ve,y2:C+P,stroke:M4t,strokeWidth:1}),y.jsx("text",{x:ve,y:C+P+16,textAnchor:"middle",fontSize:Xfe,fill:Vfe,children:xe})]},`gx-${ue}`)}),y.jsx("text",{x:O+_/2,y:u-4,textAnchor:"middle",fontSize:Xfe,fill:Vfe,children:"Iteration"}),y.jsx("text",{x:12,y:C+P/2,textAnchor:"middle",fontSize:Xfe,fill:Vfe,transform:`rotate(-90,12,${C+P/2})`,children:pe}),W!=null&&y.jsx("line",{x1:W,y1:C,x2:W,y2:C+P,stroke:_4t,strokeWidth:1,strokeDasharray:"5,3"}),y.jsx("path",{d:me(m),fill:"none",stroke:A4t,strokeWidth:1.5}),p&&y.jsx("path",{d:me(p),fill:"none",stroke:N4t,strokeWidth:1.5})]}),y.jsxs("div",{className:"flex gap-4 mt-1.5 text-[11px]",style:{color:"var(--text-muted)"},children:[y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.jsx("span",{className:"inline-block w-3 h-0.5 rounded",style:{background:A4t}}),"Train"]}),p&&y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.jsx("span",{className:"inline-block w-3 h-0.5 rounded",style:{background:N4t}}),"Eval"]}),W!=null&&y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.jsx("span",{className:"inline-block w-3 h-0.5 rounded",style:{background:_4t,borderTop:"1px dashed"}}),"Best iteration (",le,")"]})]})]})}const SAe="rgba(255,255,255,.06)",mO="var(--text-muted)",$9=10,fde="#22c55e",MM="#a855f7";function r3n({result:l,width:s=700,height:u=260}){const[h,g]=re.useState("lift"),m=l.double_lift&&l.double_lift.length>0,p=l.lorenz_curve&&l.lorenz_curve.length>0;return!m&&!p?y.jsx("div",{className:"flex items-center justify-center h-full text-xs",style:{color:"var(--text-muted)"},children:"No lift data available"}):y.jsxs("div",{className:"space-y-2",children:[m&&p&&y.jsxs("div",{className:"flex gap-1",children:[y.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"}),y.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&&y.jsx(s3n,{data:l.double_lift,width:s,height:u}),h==="lorenz"&&p&&y.jsx(o3n,{curve:l.lorenz_curve,perfectCurve:l.lorenz_curve_perfect,width:s,height:u})]})}function s3n({data:l,width:s,height:u}){const O=s-60-16,j=u-16-40,C=l.flatMap(ce=>[ce.actual,ce.predicted]),N=C.reduce((ce,se)=>Math.max(ce,se),-1/0)*1.1,_=Math.min(0,C.reduce((ce,se)=>Math.min(ce,se),1/0)*1.1),P=N-_||1,I=l.length,q=O/I,z=q*.35,X=q*.05,Q=ce=>16+j-(ce-_)/P*j,te=Q(0),V=4,ne=Array.from({length:V+1},(ce,se)=>_+se/V*P);return y.jsxs("div",{children:[y.jsxs("svg",{width:s,height:u,style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[ne.map((ce,se)=>{const me=Q(ce);return y.jsxs("g",{children:[y.jsx("line",{x1:60,y1:me,x2:60+O,y2:me,stroke:SAe,strokeWidth:1}),y.jsx("text",{x:54,y:me+3,textAnchor:"end",fontSize:$9,fill:mO,children:ce.toPrecision(3)})]},`gy-${se}`)}),_<0&&y.jsx("line",{x1:60,y1:te,x2:60+O,y2:te,stroke:"rgba(255,255,255,.15)",strokeWidth:1}),l.map((ce,se)=>{const ye=60+se*q+q/2,qe=Math.abs(ce.actual-0)/P*j,Be=ce.actual>=0?Q(ce.actual):te,ke=Math.abs(ce.predicted-0)/P*j,le=ce.predicted>=0?Q(ce.predicted):te;return y.jsxs("g",{children:[y.jsx("rect",{x:ye-z-X/2,y:Be,width:z,height:qe,fill:fde,opacity:.7,rx:1}),y.jsx("rect",{x:ye+X/2,y:le,width:z,height:ke,fill:MM,opacity:.7,rx:1}),y.jsx("text",{x:ye,y:16+j+14,textAnchor:"middle",fontSize:$9,fill:mO,children:ce.decile}),y.jsxs("text",{x:ye,y:16+j+26,textAnchor:"middle",fontSize:8,fill:mO,opacity:.6,children:["n=",ce.count]})]},ce.decile)}),y.jsx("text",{x:60+O/2,y:u-2,textAnchor:"middle",fontSize:$9,fill:mO,children:"Decile"}),y.jsx("text",{x:12,y:16+j/2,textAnchor:"middle",fontSize:$9,fill:mO,transform:`rotate(-90,12,${16+j/2})`,children:"Average value"})]}),y.jsxs("div",{className:"flex gap-4 mt-1.5 text-[11px]",style:{color:"var(--text-muted)"},children:[y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.jsx("span",{className:"inline-block w-3 h-2 rounded-sm",style:{background:fde,opacity:.7}}),"Actual"]}),y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.jsx("span",{className:"inline-block w-3 h-2 rounded-sm",style:{background:MM,opacity:.7}}),"Predicted"]})]}),y.jsxs("div",{className:"mt-3",children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Lift Table"}),y.jsxs("div",{className:"mt-1 text-[11px] font-mono",style:{color:"var(--text-secondary)"},children:[y.jsxs("div",{className:"grid grid-cols-4 gap-1 pb-0.5 mb-0.5",style:{borderBottom:"1px solid var(--border)"},children:[y.jsx("span",{style:{color:"var(--text-muted)"},children:"Decile"}),y.jsx("span",{style:{color:"var(--text-muted)"},children:"Actual"}),y.jsx("span",{style:{color:"var(--text-muted)"},children:"Predicted"}),y.jsx("span",{style:{color:"var(--text-muted)"},children:"Count"})]}),l.map(ce=>y.jsxs("div",{className:"grid grid-cols-4 gap-1",children:[y.jsx("span",{children:ce.decile}),y.jsx("span",{style:{color:"var(--text-primary)"},children:ce.actual.toFixed(4)}),y.jsx("span",{style:{color:MM},children:ce.predicted.toFixed(4)}),y.jsx("span",{children:ce.count.toLocaleString()})]},ce.decile))]})]})]})}function o3n({curve:l,perfectCurve:s,width:u,height:h}){const j=u-55-16,C=h-16-36,N=Q=>55+Q*j,_=Q=>16+C-Q*C,P=c3n(l,s),I=l.map((Q,te)=>`${te===0?"M":"L"}${N(Q.cum_weight_frac).toFixed(1)},${_(Q.cum_actual_frac).toFixed(1)}`).join(" "),q=s?s.map((Q,te)=>`${te===0?"M":"L"}${N(Q.cum_weight_frac).toFixed(1)},${_(Q.cum_actual_frac).toFixed(1)}`).join(" "):null,z=[`M${N(0).toFixed(1)},${_(0).toFixed(1)}`,...l.map(Q=>`L${N(Q.cum_weight_frac).toFixed(1)},${_(Q.cum_actual_frac).toFixed(1)}`),`L${N(1).toFixed(1)},${_(1).toFixed(1)}`,"Z"].join(" "),X=[0,.25,.5,.75,1];return y.jsxs("div",{children:[y.jsxs("svg",{width:u,height:h,style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[X.map(Q=>y.jsxs("g",{children:[y.jsx("line",{x1:55,y1:_(Q),x2:55+j,y2:_(Q),stroke:SAe,strokeWidth:1}),y.jsx("line",{x1:N(Q),y1:16,x2:N(Q),y2:16+C,stroke:SAe,strokeWidth:1}),y.jsx("text",{x:49,y:_(Q)+3,textAnchor:"end",fontSize:$9,fill:mO,children:Q.toFixed(2)}),y.jsx("text",{x:N(Q),y:16+C+14,textAnchor:"middle",fontSize:$9,fill:mO,children:Q.toFixed(2)})]},`grid-${Q}`)),y.jsx("path",{d:z,fill:MM,opacity:.08}),y.jsx("line",{x1:N(0),y1:_(0),x2:N(1),y2:_(1),stroke:"rgba(255,255,255,.25)",strokeWidth:1,strokeDasharray:"4,3"}),q&&y.jsx("path",{d:q,fill:"none",stroke:fde,strokeWidth:1.5,opacity:.6}),y.jsx("path",{d:I,fill:"none",stroke:MM,strokeWidth:1.5}),y.jsxs("text",{x:63,y:32,fontSize:11,fontWeight:"bold",fill:MM,children:["Gini = ",P.toFixed(4)]}),y.jsx("text",{x:55+j/2,y:h-4,textAnchor:"middle",fontSize:$9,fill:mO,children:"Cumulative weight fraction"}),y.jsx("text",{x:10,y:16+C/2,textAnchor:"middle",fontSize:$9,fill:mO,transform:`rotate(-90,10,${16+C/2})`,children:"Cumulative actual fraction"})]}),y.jsxs("div",{className:"flex gap-4 mt-1.5 text-[11px]",style:{color:"var(--text-muted)"},children:[y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.jsx("span",{className:"inline-block w-3 h-0.5 rounded",style:{background:MM}}),"Model"]}),q&&y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.jsx("span",{className:"inline-block w-3 h-0.5 rounded",style:{background:fde,opacity:.6}}),"Perfect model"]}),y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.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 c3n(l,s){if(l.length<2)return 0;const u=g=>{let m=0;for(let p=1;p<g.length;p++){const O=g[p].cum_weight_frac-g[p-1].cum_weight_frac,j=(g[p].cum_actual_frac+g[p-1].cum_actual_frac)/2;m+=O*j}return m},h=2*u(l)-1;if(s&&s.length>=2){const g=2*u(s)-1;return g!==0?h/g:0}return h}const TAe="rgba(255,255,255,.06)",AM="var(--text-muted)",NM=10,l3n="#a855f7",u3n="#ef4444",a3n="#a855f7",f3n="rgba(255,255,255,.25)";function h3n({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?y.jsx("div",{className:"flex items-center justify-center h-full text-xs",style:{color:"var(--text-muted)"},children:"No residuals data available"}):y.jsxs("div",{className:"flex gap-4 flex-wrap",children:[h&&y.jsx(d3n,{data:l.residuals_histogram,stats:l.residuals_stats,width:s,height:u}),g&&y.jsx(g3n,{data:l.actual_vs_predicted,width:s,height:u})]})}function d3n({data:l,stats:s,width:u,height:h}){const j=u-50-12,C=h-12-36,N=l.map(ne=>ne.weighted_count).reduce((ne,ce)=>Math.max(ne,ce),-1/0),_=l.map(ne=>ne.bin_center).reduce((ne,ce)=>Math.min(ne,ce),1/0),P=l.map(ne=>ne.bin_center).reduce((ne,ce)=>Math.max(ne,ce),-1/0),I=P-_||1,q=j/l.length*.85,z=ne=>50+(ne-_)/I*j,X=ne=>12+C-ne/(N||1)*C,Q=_<=0&&P>=0?z(0):null,te=4,V=Array.from({length:te+1},(ne,ce)=>ce/te*N);return y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Residuals Distribution"}),y.jsxs("svg",{width:u,height:h,className:"mt-1",style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[V.map((ne,ce)=>{const se=X(ne);return y.jsxs("g",{children:[y.jsx("line",{x1:50,y1:se,x2:50+j,y2:se,stroke:TAe,strokeWidth:1}),y.jsx("text",{x:44,y:se+3,textAnchor:"end",fontSize:NM,fill:AM,children:ne>=1e3?`${(ne/1e3).toFixed(0)}K`:ne.toFixed(0)})]},`gy-${ce}`)}),l.map((ne,ce)=>{const se=z(ne.bin_center),me=ne.weighted_count/(N||1)*C;return y.jsx("rect",{x:se-q/2,y:12+C-me,width:q,height:me,fill:l3n,opacity:.6,rx:1},ce)}),Q!=null&&y.jsx("line",{x1:Q,y1:12,x2:Q,y2:12+C,stroke:u3n,strokeWidth:1,strokeDasharray:"4,3"}),y.jsx("text",{x:50+j/2,y:h-4,textAnchor:"middle",fontSize:NM,fill:AM,children:"Residual"}),y.jsx("text",{x:10,y:12+C/2,textAnchor:"middle",fontSize:NM,fill:AM,transform:`rotate(-90,10,${12+C/2})`,children:"Weighted count"})]}),s&&y.jsxs("div",{className:"flex gap-3 mt-1.5 text-[10px] font-mono",style:{color:"var(--text-muted)"},children:[y.jsxs("span",{children:["Mean: ",y.jsx("span",{style:{color:"var(--text-primary)"},children:s.mean.toFixed(4)})]}),y.jsxs("span",{children:["Std: ",y.jsx("span",{style:{color:"var(--text-primary)"},children:s.std.toFixed(4)})]}),y.jsxs("span",{children:["Skew: ",y.jsx("span",{style:{color:"var(--text-primary)"},children:s.skew.toFixed(4)})]})]})]})}function g3n({data:l,width:s,height:u}){const O=s-50-12,j=u-12-36,C=re.useMemo(()=>{if(l.length<=2e3)return l;const se=l.length/2e3,me=[];for(let ye=0;ye<2e3;ye++)me.push(l[Math.floor(ye*se)]);return me},[l]),N=C.flatMap(se=>[se.actual,se.predicted]),_=N.reduce((se,me)=>Math.min(se,me),1/0),P=N.reduce((se,me)=>Math.max(se,me),-1/0),q=(P-_||1)*.05,z=_-q,X=P+q,Q=X-z,te=se=>50+(se-z)/Q*O,V=se=>12+j-(se-z)/Q*j,ne=4,ce=Array.from({length:ne+1},(se,me)=>z+me/ne*Q);return y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-bold uppercase tracking-[0.08em]",style:{color:"var(--text-muted)"},children:"Actual vs Predicted"}),y.jsxs("svg",{width:s,height:u,className:"mt-1",style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[ce.map((se,me)=>{const ye=te(se),qe=V(se);return y.jsxs("g",{children:[y.jsx("line",{x1:50,y1:qe,x2:50+O,y2:qe,stroke:TAe,strokeWidth:1}),y.jsx("line",{x1:ye,y1:12,x2:ye,y2:12+j,stroke:TAe,strokeWidth:1}),y.jsx("text",{x:44,y:qe+3,textAnchor:"end",fontSize:NM,fill:AM,children:se.toPrecision(3)}),y.jsx("text",{x:ye,y:12+j+14,textAnchor:"middle",fontSize:NM,fill:AM,children:se.toPrecision(3)})]},`grid-${me}`)}),y.jsx("line",{x1:te(z),y1:V(z),x2:te(X),y2:V(X),stroke:f3n,strokeWidth:1,strokeDasharray:"4,3"}),C.map((se,me)=>y.jsx("circle",{cx:te(se.actual),cy:V(se.predicted),r:2,fill:a3n,opacity:.4},me)),y.jsx("text",{x:50+O/2,y:u-4,textAnchor:"middle",fontSize:NM,fill:AM,children:"Actual"}),y.jsx("text",{x:10,y:12+j/2,textAnchor:"middle",fontSize:NM,fill:AM,transform:`rotate(-90,10,${12+j/2})`,children:"Predicted"})]}),y.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 p3n="#a855f7";function m3n({result:l}){const[s,u]=re.useState("prediction"),h=re.useMemo(()=>{var p,O;return[{key:"prediction",label:"Prediction"},...(p=l.feature_importance_loss)!=null&&p.length?[{key:"loss",label:"Loss"}]:[],...(O=l.shap_summary)!=null&&O.length?[{key:"shap",label:"SHAP"}]:[]]},[l.feature_importance_loss,l.shap_summary]),g=re.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 y.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=g.map(p=>Math.abs(p.importance)).reduce((p,O)=>Math.max(p,O),-1/0);return y.jsxs("div",{className:"space-y-2",children:[h.length>1&&y.jsx("div",{className:"flex gap-1",children:h.map(p=>y.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))}),y.jsx("div",{className:"overflow-y-auto",style:{maxHeight:400},children:y.jsx("div",{className:"space-y-0.5",children:g.map((p,O)=>y.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono group",children:[y.jsx("span",{className:"w-5 text-right shrink-0 text-[10px]",style:{color:"var(--text-muted)"},children:O+1}),y.jsx("span",{className:"truncate shrink-0",style:{color:"var(--text-secondary)",width:140},title:p.feature,children:p.feature}),y.jsx("div",{className:"flex-1 h-2 rounded-full overflow-hidden",style:{background:"var(--chrome-hover)"},children:y.jsx("div",{className:"h-full rounded-full",style:{width:m>0?`${Math.abs(p.importance)/m*100}%`:"0%",background:p3n,opacity:.7}})}),y.jsx("span",{className:"w-14 text-right shrink-0",style:{color:"var(--text-muted)"},children:p.importance.toFixed(1)})]},`${p.feature}-${O}`))})}),y.jsxs("div",{className:"text-[10px]",style:{color:"var(--text-muted)"},children:[g.length," feature",g.length!==1?"s":""]})]})}function C9t({features:l,selected:s,onSelect:u,width:h=180}){const[g,m]=re.useState(""),p=re.useMemo(()=>{if(!g)return l;const j=g.toLowerCase();return l.filter(C=>C.feature.toLowerCase().includes(j))},[l,g]),O=l.length>0?l.map(j=>Math.abs(j.importance)).reduce((j,C)=>Math.max(j,C),-1/0):1;return y.jsxs("div",{className:"flex flex-col shrink-0",style:{width:h,borderRight:"1px solid var(--border)"},children:[y.jsx("div",{className:"px-2 py-1.5 shrink-0",style:{borderBottom:"1px solid var(--border)"},children:y.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:[y.jsx(dR,{size:11,style:{color:"var(--text-muted)"}}),y.jsx("input",{type:"text",value:g,onChange:j=>m(j.target.value),placeholder:"Search features...",className:"bg-transparent border-none outline-none text-[11px] w-full",style:{color:"var(--text-primary)"}})]})}),y.jsxs("div",{className:"flex-1 overflow-y-auto",children:[p.length===0&&y.jsx("div",{className:"px-2 py-3 text-[11px] text-center",style:{color:"var(--text-muted)"},children:"No features found"}),p.map(j=>{const C=j.feature===s,N=O>0?Math.abs(j.importance)/O*100:0;return y.jsx("button",{onClick:()=>u(j.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:y.jsxs("div",{className:"flex-1 min-w-0",children:[y.jsx("div",{className:"text-[11px] truncate",style:{color:C?"var(--accent)":"var(--text-secondary)"},children:j.feature}),y.jsx("div",{className:"w-full h-1 rounded-full overflow-hidden mt-0.5",style:{background:"var(--chrome-hover)"},children:y.jsx("div",{className:"h-full rounded-full",style:{width:`${N}%`,background:C?"var(--accent)":"#a855f7",opacity:.6}})})]})},j.feature)})]})]})}const b3n="rgba(255,255,255,.06)",tV="var(--text-muted)",nV=10,rMe="#22c55e",sMe="#a855f7",D4t="rgba(255,255,255,.12)";function w3n({result:l}){const s=l.ave_per_feature,u=re.useMemo(()=>{if(!s||s.length===0)return[];const j=new Map;for(const C of l.feature_importance)j.set(C.feature,C.importance);return s.map(C=>({feature:C.feature,importance:j.get(C.feature)??0}))},[s,l.feature_importance]),h=re.useMemo(()=>u.map(j=>j.feature).join(","),[u]),[g,m]=re.useState(u.length>0?u[0].feature:null);re.useEffect(()=>{if(u.length>0){const j=h.split(",");(!g||!j.includes(g))&&m(j[0])}},[h,g]);const p=re.useCallback(j=>{m(j)},[]),O=re.useMemo(()=>!g||!s?null:s.find(j=>j.feature===g)??null,[g,s]);return!s||s.length===0?y.jsx("div",{className:"flex items-center justify-center h-full text-xs",style:{color:"var(--text-muted)"},children:"No AvE data available"}):y.jsxs("div",{className:"flex h-full",style:{minHeight:200},children:[y.jsx(C9t,{features:u,selected:g,onSelect:p}),y.jsx("div",{className:"flex-1 px-3 py-1 overflow-auto",children:O?y.jsx(v3n,{data:O}):y.jsx("div",{className:"flex items-center justify-center h-full text-xs",style:{color:"var(--text-muted)"},children:"Select a feature"})})]})}function v3n({data:l}){const s=l.bins;if(s.length===0)return y.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,O=50,j=u-g-m,C=h-p-O,N=s.flatMap(le=>[le.avg_actual,le.avg_predicted]),_=N.reduce((le,W)=>Math.min(le,W),1/0),P=N.reduce((le,W)=>Math.max(le,W),-1/0),I=(P-_)*.1||.001,q=_-I,X=P+I-q,Q=s.map(le=>le.exposure).reduce((le,W)=>Math.max(le,W),-1/0),te=j/s.length,V=te*.6,ne=le=>g+le*te+te/2,ce=le=>p+C-(le-q)/X*C,se=le=>p+C-le/(Q||1)*C,me=4,ye=Array.from({length:me+1},(le,W)=>q+W/me*X),qe=s.map((le,W)=>`${W===0?"M":"L"}${ne(W).toFixed(1)},${ce(le.avg_actual).toFixed(1)}`).join(" "),Be=s.map((le,W)=>`${W===0?"M":"L"}${ne(W).toFixed(1)},${ce(le.avg_predicted).toFixed(1)}`).join(" "),ke=(le,W)=>le.length>W?le.slice(0,W-1)+"…":le;return y.jsxs("div",{children:[y.jsxs("div",{className:"text-xs font-medium mb-1",style:{color:"var(--text-primary)"},children:[l.feature,y.jsxs("span",{className:"ml-2 text-[10px]",style:{color:"var(--text-muted)"},children:["(",l.type,")"]})]}),y.jsxs("svg",{width:u,height:h,style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[ye.map((le,W)=>{const pe=ce(le);return y.jsxs("g",{children:[y.jsx("line",{x1:g,y1:pe,x2:g+j,y2:pe,stroke:b3n,strokeWidth:1}),y.jsx("text",{x:g-6,y:pe+3,textAnchor:"end",fontSize:nV,fill:tV,children:le.toPrecision(3)})]},`gy-${W}`)}),[0,.5,1].map((le,W)=>{const pe=le*Q,je=se(pe);return y.jsx("text",{x:u-m+6,y:je+3,textAnchor:"start",fontSize:nV,fill:tV,opacity:.5,children:pe>=1e3?`${(pe/1e3).toFixed(0)}K`:pe.toFixed(0)},`exp-${W}`)}),s.map((le,W)=>{const pe=ne(W),je=le.exposure/(Q||1)*C;return y.jsx("rect",{x:pe-V/2,y:p+C-je,width:V,height:je,fill:D4t,rx:1},`exp-${W}`)}),y.jsx("path",{d:qe,fill:"none",stroke:rMe,strokeWidth:1.5}),s.map((le,W)=>y.jsx("circle",{cx:ne(W),cy:ce(le.avg_actual),r:2.5,fill:rMe},`a-${W}`)),y.jsx("path",{d:Be,fill:"none",stroke:sMe,strokeWidth:1.5}),s.map((le,W)=>y.jsx("circle",{cx:ne(W),cy:ce(le.avg_predicted),r:2.5,fill:sMe},`p-${W}`)),s.map((le,W)=>{const pe=ne(W),je=ke(le.label,10),ue=s.length>6;return y.jsx("text",{x:pe,y:p+C+(ue?12:14),textAnchor:ue?"end":"middle",fontSize:s.length>12?8:nV,fill:tV,transform:ue?`rotate(-45,${pe},${p+C+12})`:void 0,children:je},`xl-${W}`)}),y.jsx("text",{x:10,y:p+C/2,textAnchor:"middle",fontSize:nV,fill:tV,transform:`rotate(-90,10,${p+C/2})`,children:"Avg value"}),y.jsx("text",{x:u-8,y:p+C/2,textAnchor:"middle",fontSize:nV,fill:tV,opacity:.5,transform:`rotate(90,${u-8},${p+C/2})`,children:"Exposure"})]}),y.jsxs("div",{className:"flex gap-4 mt-1.5 text-[11px]",style:{color:"var(--text-muted)"},children:[y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.jsx("span",{className:"inline-block w-3 h-0.5 rounded",style:{background:rMe}}),"Actual"]}),y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.jsx("span",{className:"inline-block w-3 h-0.5 rounded",style:{background:sMe}}),"Predicted"]}),y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.jsx("span",{className:"inline-block w-3 h-2 rounded-sm",style:{background:D4t}}),"Exposure"]})]})]})}const CAe="rgba(255,255,255,.06)",_M="var(--text-muted)",DM=10,L4t="#a855f7",x3n="#a855f7";function y3n({result:l}){const s=l.pdp_data,u=re.useMemo(()=>{if(!s||s.length===0)return[];const j=new Map;for(const C of l.feature_importance)j.set(C.feature,C.importance);return s.map(C=>({feature:C.feature,importance:j.get(C.feature)??0}))},[s,l.feature_importance]),h=re.useMemo(()=>u.map(j=>j.feature).join(","),[u]),[g,m]=re.useState(u.length>0?u[0].feature:null);re.useEffect(()=>{if(u.length>0){const j=h.split(",");(!g||!j.includes(g))&&m(j[0])}},[h,g]);const p=re.useCallback(j=>{m(j)},[]),O=re.useMemo(()=>!g||!s?null:s.find(j=>j.feature===g)??null,[g,s]);return!s||s.length===0?y.jsx("div",{className:"flex items-center justify-center h-full text-xs",style:{color:"var(--text-muted)"},children:"No PDP data available"}):y.jsxs("div",{className:"flex h-full",style:{minHeight:200},children:[y.jsx(C9t,{features:u,selected:g,onSelect:p}),y.jsx("div",{className:"flex-1 px-3 py-1 overflow-auto",children:O?y.jsx(k3n,{data:O}):y.jsx("div",{className:"flex items-center justify-center h-full text-xs",style:{color:"var(--text-muted)"},children:"Select a feature"})})]})}function k3n({data:l}){const s=l.grid;if(s.length===0)return y.jsxs("div",{className:"text-xs",style:{color:"var(--text-muted)"},children:["No PDP data for ",l.feature]});const u=l.type==="numeric";return y.jsxs("div",{children:[y.jsxs("div",{className:"text-xs font-medium mb-1",style:{color:"var(--text-primary)"},children:[l.feature,y.jsxs("span",{className:"ml-2 text-[10px]",style:{color:"var(--text-muted)"},children:["(",l.type,")"]})]}),u?y.jsx(O3n,{grid:s}):y.jsx(j3n,{grid:s})]})}function O3n({grid:l}){const C=l.map(ke=>Number(ke.value)),N=l.map(ke=>ke.avg_prediction),_=C.reduce((ke,le)=>Math.min(ke,le),1/0),I=C.reduce((ke,le)=>Math.max(ke,le),-1/0)-_||1,q=N.reduce((ke,le)=>Math.min(ke,le),1/0),z=N.reduce((ke,le)=>Math.max(ke,le),-1/0),X=(z-q)*.1||.001,Q=q-X,V=z+X-Q,ne=ke=>55+(ke-_)/I*449,ce=ke=>184-(ke-Q)/V*168,se=4,me=Math.min(5,l.length-1),ye=Array.from({length:se+1},(ke,le)=>Q+le/se*V),qe=Array.from({length:me+1},(ke,le)=>Math.round(le/me*(l.length-1))),Be=l.map((ke,le)=>`${le===0?"M":"L"}${ne(Number(ke.value)).toFixed(1)},${ce(ke.avg_prediction).toFixed(1)}`).join(" ");return y.jsx(y.Fragment,{children:y.jsxs("svg",{width:520,height:220,style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[ye.map((ke,le)=>{const W=ce(ke);return y.jsxs("g",{children:[y.jsx("line",{x1:55,y1:W,x2:504,y2:W,stroke:CAe,strokeWidth:1}),y.jsx("text",{x:49,y:W+3,textAnchor:"end",fontSize:DM,fill:_M,children:ke.toPrecision(3)})]},`gy-${le}`)}),qe.map((ke,le)=>{const W=Number(l[ke].value),pe=ne(W);return y.jsxs("g",{children:[y.jsx("line",{x1:pe,y1:16,x2:pe,y2:184,stroke:CAe,strokeWidth:1}),y.jsx("text",{x:pe,y:198,textAnchor:"middle",fontSize:DM,fill:_M,children:W.toPrecision(3)})]},`gx-${le}`)}),y.jsx("path",{d:Be,fill:"none",stroke:L4t,strokeWidth:1.5}),l.map((ke,le)=>y.jsx("circle",{cx:ne(Number(ke.value)),cy:ce(ke.avg_prediction),r:2.5,fill:L4t},le)),y.jsx("text",{x:55+449/2,y:216,textAnchor:"middle",fontSize:DM,fill:_M,children:"Feature value"}),y.jsx("text",{x:10,y:16+168/2,textAnchor:"middle",fontSize:DM,fill:_M,transform:`rotate(-90,10,${16+168/2})`,children:"Avg prediction"})]})})}function j3n({grid:l}){const C=l.map(ce=>ce.avg_prediction),N=Math.min(0,C.reduce((ce,se)=>Math.min(ce,se),1/0)),P=C.reduce((ce,se)=>Math.max(ce,se),-1/0)*1.1-N||1,I=449/l.length,q=I*.6,z=ce=>55+ce*I+I/2,X=ce=>170-(ce-N)/P*154,Q=X(0),te=4,V=Array.from({length:te+1},(ce,se)=>N+se/te*P),ne=(ce,se)=>ce.length>se?ce.slice(0,se-1)+"…":ce;return y.jsx(y.Fragment,{children:y.jsxs("svg",{width:520,height:220,style:{background:"var(--bg-input)",borderRadius:6,border:"1px solid var(--border)"},children:[V.map((ce,se)=>{const me=X(ce);return y.jsxs("g",{children:[y.jsx("line",{x1:55,y1:me,x2:504,y2:me,stroke:CAe,strokeWidth:1}),y.jsx("text",{x:49,y:me+3,textAnchor:"end",fontSize:DM,fill:_M,children:ce.toPrecision(3)})]},`gy-${se}`)}),l.map((ce,se)=>{const me=z(se),ye=Math.abs(ce.avg_prediction-0)/P*154,qe=ce.avg_prediction>=0?X(ce.avg_prediction):Q,Be=ne(String(ce.value),10),ke=l.length>5;return y.jsxs("g",{children:[y.jsx("rect",{x:me-q/2,y:qe,width:q,height:ye,fill:x3n,opacity:.7,rx:1}),y.jsx("text",{x:me,y:170+(ke?12:14),textAnchor:ke?"end":"middle",fontSize:l.length>10?8:DM,fill:_M,transform:ke?`rotate(-45,${me},182)`:void 0,children:Be})]},se)}),N<0&&y.jsx("line",{x1:55,y1:Q,x2:504,y2:Q,stroke:"rgba(255,255,255,.15)",strokeWidth:1}),y.jsx("text",{x:10,y:16+154/2,textAnchor:"middle",fontSize:DM,fill:_M,transform:`rotate(-90,10,${16+154/2})`,children:"Avg prediction"})]})})}const S3n={"***":"var(--signif-high)","**":"var(--signif-med)","*":"var(--signif-low)",".":"var(--signif-marginal)","":"var(--text-muted)"};function T3n(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 C3n({result:l}){const s=l.glm_coefficients,[u,h]=re.useState("p_value"),[g,m]=re.useState("asc"),p=re.useMemo(()=>!s||s.length===0?[]:[...s].sort((N,_)=>{const P=N[u],I=_[u];if(typeof P=="string"&&typeof I=="string")return g==="asc"?P.localeCompare(I):I.localeCompare(P);const q=Number(P),z=Number(I);return g==="asc"?q-z:z-q}),[s,u,g]);if(!s||s.length===0)return y.jsx("div",{className:"flex items-center justify-center h-full text-xs",style:{color:"var(--text-muted)"},children:"No coefficient data available"});const O=N=>{u===N?m(_=>_==="asc"?"desc":"asc"):(h(N),m("asc"))},j=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 y.jsxs("div",{className:"space-y-2",children:[y.jsx("div",{className:"overflow-auto",style:{maxHeight:480},children:y.jsxs("table",{className:"w-full text-xs font-mono",style:{borderCollapse:"collapse"},children:[y.jsx("thead",{children:y.jsxs("tr",{style:{borderBottom:"1px solid var(--border)"},children:[C.map(N=>y.jsxs("th",{onClick:()=>O(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,j(N.key)]},N.key)),y.jsx("th",{className:"px-2 py-1.5 text-center font-semibold",style:{color:"var(--text-muted)"},children:"Sig."})]})}),y.jsx("tbody",{children:p.map((N,_)=>y.jsxs("tr",{style:{borderBottom:"1px solid var(--border)",background:_%2===0?"transparent":"rgba(255,255,255,.02)"},children:[y.jsx("td",{className:"px-2 py-1 text-left truncate",style:{color:"var(--text-primary)",maxWidth:200},title:N.feature,children:N.feature}),y.jsx("td",{className:"px-2 py-1 text-right",style:{color:"var(--text-primary)"},children:ohe(N.coefficient,6)}),y.jsx("td",{className:"px-2 py-1 text-right",style:{color:"var(--text-secondary)"},children:ohe(N.std_error,6)}),y.jsx("td",{className:"px-2 py-1 text-right",style:{color:"var(--text-secondary)"},children:ohe(N.z_value,3)}),y.jsx("td",{className:"px-2 py-1 text-right",style:{color:T3n(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"}),y.jsx("td",{className:"px-2 py-1 text-center font-bold",style:{color:S3n[N.significance]||"var(--text-muted)"},children:N.significance||""})]},N.feature))})]})}),y.jsxs("div",{className:"flex gap-3 text-[10px]",style:{color:"var(--text-muted)"},children:[y.jsx("span",{children:"Signif. codes:"}),y.jsx("span",{style:{color:"var(--signif-high)"},children:"*** < 0.001"}),y.jsx("span",{style:{color:"var(--signif-med)"},children:"** < 0.01"}),y.jsx("span",{style:{color:"var(--signif-low)"},children:"* < 0.05"}),y.jsx("span",{style:{color:"var(--signif-marginal)"},children:". < 0.1"}),y.jsxs("span",{children:[s.length," term",s.length!==1?"s":""]})]})]})}const oMe="var(--chart-above)",cMe="var(--chart-below)";function E3n({result:l}){const s=l.glm_relativities,[u,h]=re.useState("deviation"),g=re.useMemo(()=>!s||s.length===0?[]:[...s].sort((O,j)=>{switch(u){case"name":return O.feature.localeCompare(j.feature);case"relativity":return j.relativity-O.relativity;case"deviation":return Math.abs(j.relativity-1)-Math.abs(O.relativity-1)}}),[s,u]);if(!s||s.length===0)return y.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(O=>Math.abs(O.relativity-1)).reduce((O,j)=>Math.max(O,j),-1/0),.1),p=s.some(O=>O.ci_lower!=null&&O.ci_upper!=null);return y.jsxs("div",{className:"space-y-2",children:[y.jsx("div",{className:"flex gap-1",children:[{key:"deviation",label:"By deviation"},{key:"relativity",label:"By value"},{key:"name",label:"A–Z"}].map(O=>y.jsx("button",{onClick:()=>h(O.key),className:"px-2 py-0.5 rounded text-[10px] font-medium",style:{background:u===O.key?"var(--accent-soft)":"var(--chrome-hover)",color:u===O.key?"var(--accent)":"var(--text-muted)"},children:O.label},O.key))}),y.jsx("div",{className:"overflow-y-auto",style:{maxHeight:480},children:y.jsx("div",{className:"space-y-0.5",children:g.map((O,j)=>{const C=typeof O.relativity=="number"?O.relativity-1:0,N=Math.abs(C)/m*50,_=C>=0;return y.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono group",children:[y.jsx("span",{className:"truncate shrink-0 text-right",style:{color:"var(--text-secondary)",width:140},title:O.feature,children:O.feature}),y.jsxs("div",{className:"flex-1 h-4 relative",style:{background:"var(--chrome-hover)",borderRadius:3},children:[y.jsx("div",{className:"absolute top-0 bottom-0 w-px",style:{left:"50%",background:"rgba(255,255,255,.15)"}}),y.jsx("div",{className:"absolute top-0.5 bottom-0.5 rounded-sm",style:{left:_?"50%":`${50-N}%`,width:`${N}%`,background:_?oMe:cMe,opacity:.7}}),p&&O.ci_lower!=null&&O.ci_upper!=null&&Number.isFinite(O.ci_lower)&&Number.isFinite(O.ci_upper)&&y.jsx(y.Fragment,{children:y.jsx("div",{className:"absolute top-1/2 h-px",style:{left:`${50+(O.ci_lower-1)/m*50}%`,width:`${(O.ci_upper-O.ci_lower)/m*50}%`,background:"rgba(255,255,255,.3)",transform:"translateY(-50%)"}})})]}),y.jsx("span",{className:"w-14 text-right shrink-0",style:{color:_?oMe:cMe},children:ohe(O.relativity,3)})]},`${O.feature}-${j}`)})})}),y.jsxs("div",{className:"flex gap-4 text-[10px]",style:{color:"var(--text-muted)"},children:[y.jsx("span",{children:"Baseline = 1.0 (center line)"}),y.jsx("span",{style:{color:oMe},children:"■ Above baseline"}),y.jsx("span",{style:{color:cMe},children:"■ Below baseline"}),p&&y.jsx("span",{children:"— CI whiskers"}),y.jsxs("span",{children:[s.length," term",s.length!==1?"s":""]})]})]})}const M3n=["summary","coefficients","relativities","loss","lift","residuals","features","ave","pdp"],A3n={summary:"Summary",coefficients:"Coefficients",relativities:"Relativities",loss:"Loss",lift:"Lift",residuals:"Residuals",features:"Features",ave:"AvE",pdp:"PDP"};function N3n({data:l,nodeId:s}){const{result:u}=l,[h,g]=re.useState(!1),{height:m,containerRef:p,onDragStart:O}=Jde({initialHeight:360,minHeight:180,maxHeight:700}),[j,C]=re.useState("summary");re.useEffect(()=>C("summary"),[u]);const N=hc(z=>{var X;return((X=z.trainJobs[s])==null?void 0:X.progress)??null}),_=dc(z=>z.mlflow),P=_.status==="connected"?{installed:!0,backend:_.backend,host:_.host}:null,I=M3n.filter(z=>{switch(z){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(([z,X])=>`${z}: ${typeof X=="number"&&Number.isFinite(X)?X.toFixed(4):String(X)}`).join(" | ");return h?y.jsx("div",{className:"h-8 flex items-center px-4 shrink-0",style:{borderTop:"1px solid var(--border)",background:"var(--bg-panel)"},children:y.jsxs("button",{onClick:()=>g(!1),className:"flex items-center gap-2 text-xs",style:{color:"var(--text-secondary)"},children:[y.jsx(jde,{size:14}),y.jsx(p3t,{size:14}),y.jsx("span",{className:"font-medium",children:l.nodeLabel}),y.jsx("span",{style:{color:"var(--text-muted)"},children:u.status==="error"?"Error":q})]})}):y.jsxs("div",{ref:p,style:{height:m,borderTop:"1px solid var(--border)",background:"var(--bg-panel)"},className:"flex flex-col shrink-0 relative",children:[y.jsx("div",{onMouseDown:O,className:"absolute top-0 left-0 right-0 h-1 cursor-ns-resize z-10 transition-colors",style:{background:"var(--chrome-border)"},onMouseEnter:z=>{z.currentTarget.style.background="var(--accent)"},onMouseLeave:z=>{z.currentTarget.style.background="var(--chrome-border)"}}),N&&y.jsx("div",{className:"h-1 w-full shrink-0",style:{background:"rgba(168,85,247,.15)"},children:y.jsx("div",{className:"h-full transition-all duration-300",style:{width:`${Math.max(N.progress*100,2)}%`,background:"#a855f7"}})}),y.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:[y.jsx(p3t,{size:14,style:{color:"#a855f7"}}),y.jsx("span",{className:"text-xs font-bold",style:{color:"var(--text-primary)"},children:l.nodeLabel}),y.jsx("div",{className:"flex gap-1 ml-3",children:I.map(z=>y.jsx("button",{onClick:()=>C(z),className:"px-2 py-0.5 rounded text-[10px] font-medium",style:{background:j===z?"var(--accent-soft)":"var(--chrome-hover)",color:j===z?"var(--accent)":"var(--text-muted)"},children:A3n[z]},z))}),y.jsx("div",{className:"ml-auto flex items-center gap-1",children:y.jsx("button",{onClick:()=>g(!0),className:"p-1 rounded transition-colors",style:{color:"var(--text-muted)"},onMouseEnter:z=>{z.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:z=>{z.currentTarget.style.background="transparent"},children:y.jsx(Sd,{size:14})})})]}),y.jsxs("div",{className:"flex-1 overflow-auto px-4 py-3",children:[j==="summary"&&y.jsx(n3n,{result:u,jobId:l.jobId,mlflowBackend:P,config:{}}),j==="coefficients"&&y.jsx(C3n,{result:u}),j==="relativities"&&y.jsx(E3n,{result:u}),j==="loss"&&y.jsx(i3n,{result:u}),j==="lift"&&y.jsx(r3n,{result:u}),j==="residuals"&&y.jsx(h3n,{result:u}),j==="features"&&y.jsx(m3n,{result:u}),j==="ave"&&y.jsx(w3n,{result:u}),j==="pdp"&&y.jsx(y3n,{result:u})]})]})}function _3n(l,s=60){if(!l)return"";let u=l.replace(/ \* /g," × ").replace(/ \/ /g," ÷ ");return u.length>s&&(u=u.slice(0,s)+"…"),u}function lMe(l){if(l==null)return"null";if(typeof l!="number")return String(l);if(Number.isNaN(l))return"NaN";if(!Number.isFinite(l))return String(l);if(Number.isInteger(l))return l.toLocaleString("en-US");const s=Math.abs(l);return s<10&&s>0?l.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:4}):l.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}function E9t(l,s){return l==null?"null":typeof l=="number"?Number.isNaN(l)?"NaN":Number.isFinite(l)?Number.isInteger(l)?l.toLocaleString("en-US"):s!==void 0?l.toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:s}):String(l):String(l):typeof l=="string"?`"${l}"`:typeof l=="object"?JSON.stringify(l):String(l)}function M9(l){return E9t(l)}function D3n(l){return E9t(l,2)}function Kfe(l,s=60){const u=l.replace(/\*/g,"×").replace(/\//g,"÷");return u.length>s?{text:u.slice(0,s)+"…",truncated:!0}:{text:u,truncated:!1}}function L3n(l,s){const u=s.split(/\s*\*\s*/);if(u.length<3)return null;const h=u.map(O=>O.trim());if(!h.every(O=>O in l&&typeof l[O]=="number"))return null;const m=[];let p=l[h[0]];m.push({name:h[0],factor:p,runningValue:p,prevValue:0,direction:"neutral"});for(let O=1;O<h.length;O++){const j=l[h[O]],C=p;p=p*j;const N=j>1?"positive":j<1?"negative":"neutral";m.push({name:h[O],factor:j,runningValue:p,prevValue:C,direction:N})}return m}function P4t(l){const s=[],u=/when\s+(.+?)\s+then\s+(.+?)(?=\s+when\s|\s+otherwise\s|$)/gi;let h,g=0;for(;(h=u.exec(l))!==null;)s.push({condition:h[1].trim(),result:h[2].trim(),isOtherwise:!1}),g=u.lastIndex;const m=l.slice(g).match(/otherwise\s+(.+)/i);return m&&s.push({result:m[1].trim(),isOtherwise:!0}),s.length===0&&s.push({result:l,isOtherwise:!1}),s}const X3={fontVariantNumeric:"tabular-nums"};function P3n({steps:l,resultValue:s}){const u=Math.max(...l.map(N=>Math.abs(N.runningValue)),1),h=D3n(s),g=M9(s),m=s==null,[p,O]=re.useState(!1),j=re.useRef(!1),C=re.useRef(0);return re.useEffect(()=>(j.current||(j.current=!0,C.current=requestAnimationFrame(()=>{O(!0)})),()=>{C.current&&cancelAnimationFrame(C.current)}),[]),y.jsxs("div",{className:"waterfall-display",children:[l.map((N,_)=>{const P=Math.max(Math.abs(N.runningValue)/u*100,2),I=_===l.length-1;return y.jsxs("div",{className:`waterfall-bar ${N.direction==="positive"?"positive increase":N.direction==="negative"?"negative decrease":"neutral"}`,"data-testid":"waterfall-bar","data-direction":N.direction,style:{display:"flex",alignItems:"center",marginBottom:4},children:[y.jsx("span",{className:"waterfall-label",style:{minWidth:120,fontSize:12},children:N.name}),y.jsx("span",{className:"waterfall-factor",style:{minWidth:50,fontSize:12,...X3},children:_===0?String(N.factor):`×${N.factor}`}),y.jsx("div",{style:{height:16,width:p?`${P}%`:"0%",backgroundColor:N.direction==="positive"?"var(--color-positive, #4caf50)":N.direction==="negative"?"var(--color-negative, #f44336)":"var(--color-neutral, #9e9e9e)",borderRadius:2,minWidth:p?2:0,transition:"width 400ms cubic-bezier(0.22, 1, 0.36, 1)",transitionDelay:`${_*60}ms`}}),!I&&y.jsx("span",{style:{marginLeft:4,fontSize:12,...X3},children:typeof N.runningValue=="number"?N.runningValue.toFixed(1):String(N.runningValue)})]},_)}),y.jsx("div",{className:"waterfall-total total final","data-testid":"waterfall-total",style:{fontWeight:"bold",marginTop:4},children:y.jsx("span",{className:m?"result-value muted null-value":"result-value accent","data-accent":!m||void 0,"data-muted":m||void 0,style:{...X3,...m?{opacity:.5}:{}},title:g!==h?g:void 0,children:h})})]})}const I3n=l=>{const{column:s,expression:u,calculation:h,nodeName:g}=l,[m,p]=re.useState(!1),O=re.useRef(null);re.useEffect(()=>()=>{O.current&&clearTimeout(O.current)},[]);const j=re.useCallback(async()=>{const ye=[];if(ye.push(`Column: ${s}`),u!=null&&u.expression_text&&ye.push(`Formula: ${u.expression_text}`),h&&(h.substituted_text&&ye.push(`Substituted: ${h.substituted_text}`),ye.push(`Result: ${M9(h.result_value)}`),Object.keys(h.input_values).length>0)){ye.push("Inputs:");for(const[Be,ke]of Object.entries(h.input_values))ye.push(`  ${Be} = ${M9(ke)}`)}const qe=ye.join(`
`);try{await navigator.clipboard.writeText(qe)}catch{const Be=document.createElement("textarea");Be.value=qe,Be.style.position="fixed",Be.style.opacity="0",document.body.appendChild(Be),Be.select(),document.execCommand("copy"),document.body.removeChild(Be)}O.current&&clearTimeout(O.current),p(!0),O.current=setTimeout(()=>p(!1),2e3)},[s,u,h]),C=!u&&!h,N=(u==null?void 0:u.expression_type)==="opaque",_=(u==null?void 0:u.expression_type)==="conditional",P=u!=null&&u.expression_text.length>0,{waterfall:I}=l;let q=null;I&&I.length>=3?q=I.map((ye,qe)=>{const Be=qe>0?I[qe-1].cumulative:0;return{name:ye.label,factor:ye.value,runningValue:ye.cumulative,prevValue:Be,direction:ye.delta>0?"positive":ye.delta<0?"negative":"neutral"}}):(u==null?void 0:u.expression_type)==="arithmetic"&&h&&P&&(q=L3n(h.input_values,u.expression_text));const X=s.length>60,Q=h==null?void 0:h.result_value,te=h?lMe(Q):"",V=h?M9(Q):"",ne=h?Q==null:!1,ce=()=>y.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline"},children:[y.jsx("span",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:X?s:void 0,children:s}),h&&y.jsx("span",{className:ne?"result-value muted null-value":"result-value accent","data-accent":!ne||void 0,"data-muted":ne||void 0,style:{fontSize:20,fontWeight:700,fontFamily:"monospace",flexShrink:0,marginLeft:8,...X3,borderRadius:6,padding:"2px 10px",...ne?{fontStyle:"italic",opacity:.5,color:"var(--text-muted)"}:{color:"var(--accent)",background:"rgba(96,165,250,.08)",border:"1px solid rgba(96,165,250,.12)"}},title:V!==te?V:void 0,children:te})]}),se=(ye,qe)=>{if(!h)return null;const Be=[];if(h.expression_chain&&h.expression_chain.length>1)for(const le of h.expression_chain){if(le.target_column===s)continue;const W=le.expression_text?Kfe(le.expression_text).text:null,pe=le.substituted_text?le.substituted_text.replace(/\*/g,"×").replace(/\//g,"÷"):null;Be.push({column:le.target_column,formulaText:W,substitutedText:pe,value:le.result_value??h.input_values[le.target_column],source:null,subSources:null})}if(h.input_sources)for(const[le,W]of Object.entries(h.input_sources)){if(Be.some(ue=>ue.column===le))continue;const pe=W.expression_text?Kfe(W.expression_text).text:null,je=W.substituted_text?W.substituted_text.replace(/\*/g,"×").replace(/\//g,"÷"):null;Be.push({column:le,formulaText:pe,substitutedText:je,value:W.result_value??h.input_values[le],source:W.node_name,subSources:W.input_sources??null})}Be.sort((le,W)=>{const pe=le.formulaText?1:0,je=W.formulaText?1:0;return pe-je});const ke=Be.length>0;return y.jsxs("div",{style:{background:"rgba(0,0,0,.12)",borderRadius:6,padding:"10px 12px",marginTop:8,border:"1px solid rgba(255,255,255,.03)",fontFamily:"monospace",fontSize:12},children:[Be.map(le=>{const W=le.value,pe=lMe(W);return y.jsxs("div",{style:{position:"relative",paddingLeft:24,marginBottom:6},children:[y.jsx("div",{style:{position:"absolute",left:6,top:0,bottom:-6,width:1,background:"rgba(96,165,250,.15)"}}),y.jsx("div",{style:{position:"absolute",left:6,top:9,width:14,height:1,background:"rgba(96,165,250,.15)"}}),y.jsx("div",{style:{position:"absolute",left:4,top:7,width:5,height:5,borderRadius:"50%",background:"rgba(96,165,250,.25)",border:"1px solid rgba(96,165,250,.4)"}}),le.formulaText?y.jsxs(y.Fragment,{children:[y.jsxs("div",{style:{color:"var(--text-primary)"},children:[y.jsx("span",{style:{fontWeight:600},children:le.column}),y.jsxs("span",{style:{color:"var(--text-secondary)"},children:[" = ",le.formulaText]}),le.source&&y.jsxs("span",{style:{fontSize:11,color:"var(--text-secondary)"},children:[" (",le.source,")"]})]}),y.jsxs("div",{style:{color:"var(--text-secondary)",...X3},children:[y.jsx("span",{style:{color:"var(--text-primary)",fontWeight:600},title:M9(W),children:pe}),le.substitutedText?y.jsxs("span",{children:[" = ",le.substitutedText]}):null]})]}):y.jsxs("div",{style:{color:"var(--text-primary)"},children:[y.jsx("span",{style:{fontWeight:600},children:le.column}),y.jsx("span",{children:" = "}),y.jsx("span",{style:{...X3},title:M9(W),children:pe}),le.source&&y.jsxs("span",{style:{fontSize:11,color:"var(--text-secondary)"},children:[" (",le.source,")"]})]}),le.subSources&&Object.keys(le.subSources).length>0&&y.jsx("div",{style:{marginTop:4},children:Object.entries(le.subSources).map(([je,ue])=>{const ve=ue.result_value,xe=lMe(ve),Ee=ue.expression_text?Kfe(ue.expression_text).text:null,tt=ue.substituted_text?ue.substituted_text.replace(/\*/g,"×").replace(/\//g,"÷"):null;return y.jsxs("div",{style:{position:"relative",paddingLeft:24,marginBottom:4},children:[y.jsx("div",{style:{position:"absolute",left:6,top:9,width:14,height:1,background:"rgba(96,165,250,.15)"}}),y.jsx("div",{style:{position:"absolute",left:4,top:7,width:5,height:5,borderRadius:"50%",background:"rgba(96,165,250,.25)",border:"1px solid rgba(96,165,250,.4)"}}),Ee?y.jsxs(y.Fragment,{children:[y.jsxs("div",{style:{color:"var(--text-primary)"},children:[y.jsx("span",{style:{fontWeight:600},children:je}),y.jsxs("span",{style:{color:"var(--text-secondary)"},children:[" = ",Ee]}),ue.node_name&&y.jsxs("span",{style:{fontSize:11,color:"var(--text-secondary)"},children:[" (",ue.node_name,")"]})]}),y.jsxs("div",{style:{color:"var(--text-secondary)",...X3},children:[y.jsx("span",{style:{color:"var(--text-primary)",fontWeight:600},title:M9(ve),children:xe}),tt?y.jsxs("span",{children:[" = ",tt]}):null]})]}):y.jsxs("div",{style:{color:"var(--text-primary)"},children:[y.jsx("span",{style:{fontWeight:600},children:je}),y.jsx("span",{children:" = "}),y.jsx("span",{style:{...X3},title:M9(ve),children:xe}),ue.node_name&&y.jsxs("span",{style:{fontSize:11,color:"var(--text-secondary)"},children:[" (",ue.node_name,")"]})]})]},je)})})]},le.column)}),y.jsxs("div",{style:{position:"relative",paddingLeft:24,...ke?{borderTop:"1px solid rgba(255,255,255,.06)",marginTop:6,paddingTop:8}:{}},children:[y.jsx("div",{style:{position:"absolute",left:3,top:ke?15:7,width:7,height:7,borderRadius:"50%",background:"rgba(96,165,250,.4)",border:"1px solid rgba(96,165,250,.6)"}}),ye&&y.jsx("div",{style:{color:"var(--text-primary)",fontWeight:600},children:ye}),qe.length>0&&y.jsx("div",{style:{color:"var(--text-secondary)",...X3},children:qe}),y.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:8,marginTop:2},children:[y.jsxs("span",{style:{color:"var(--text-primary)",fontWeight:600},children:["= ",s]}),y.jsx("span",{style:{fontSize:14,fontWeight:700,...X3,borderRadius:4,padding:"1px 8px",...ne?{fontStyle:"italic",opacity:.5,color:"var(--text-secondary)"}:{color:"var(--accent)",background:"rgba(96,165,250,.08)"}},title:V!==te?V:void 0,children:te})]})]})]})},me=()=>{if(C)return y.jsx("div",{style:{fontSize:11,fontStyle:"italic",color:"var(--text-secondary)",marginTop:2},children:"source data"});if(N)return y.jsx("div",{style:{fontSize:11,fontStyle:"italic",color:"var(--text-secondary)",marginTop:2},children:y.jsx("em",{style:{fontStyle:"italic"},children:"computed"})});if(_&&u&&h){let ke=function(ue){const ve=W[ue];return ve!=null&&ve.result?ve.result.includes(pe):!1};const le=P4t(u.expression_text),W=P4t(h.substituted_text),pe=typeof h.result_value=="string"?h.result_value:String(h.result_value),je=le.some((ue,ve)=>!ue.isOtherwise&&ke(ve));return y.jsxs("div",{className:"conditional-display",style:{marginTop:4},children:[le.map((ue,ve)=>{const xe=ue.isOtherwise?!je:ke(ve);return y.jsx("div",{className:xe?"branch taken matched-branch":"branch dimmed inactive","data-matched":xe?"true":"false",style:xe?void 0:{opacity:.5},children:ue.isOtherwise?y.jsxs("span",{children:[y.jsx("strong",{children:"otherwise"})," ",ue.result]}):y.jsxs("span",{children:[y.jsx("strong",{children:"when"})," ",ue.condition," ",y.jsx("strong",{children:"then"})," ",ue.result]})},ve)}),le.map(xe=>xe.result??"").join(" ").includes(pe)?y.jsx("span",{className:ne?"result-value muted null-value":"result-value accent","data-accent":!ne||void 0,"data-muted":ne||void 0,"aria-hidden":"true",style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0,0,0,0)"}}):null]})}if(q&&h)return y.jsx("div",{style:{marginTop:4},children:y.jsx(P3n,{steps:q,resultValue:h.result_value})});const qe=((h==null?void 0:h.substituted_text)??"").replace(/\*/g,"×").replace(/\//g,"÷"),Be=P&&!N?Kfe(u.expression_text).text:null;return y.jsxs("div",{style:{marginTop:4},children:[u&&!P&&y.jsx("div",{style:{fontStyle:"italic",fontSize:11,color:"var(--text-secondary)"},children:"computed"}),se(Be,qe)]})};return y.jsxs("div",{className:"calculation-hero",style:{background:"var(--bg-elevated, rgba(255,255,255,0.03))",borderRadius:6,padding:12,margin:0,overflow:"hidden"},children:[g&&y.jsx("div",{style:{fontSize:12,color:"var(--text-secondary)",marginBottom:4},children:g}),ce(),me(),y.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:8},children:y.jsx("button",{"aria-label":m?"Copied":"Copy",onClick:j,style:{background:"none",border:"1px solid var(--border, #ccc)",borderRadius:4,cursor:"pointer",padding:"2px 8px",fontSize:12},children:m?"✓ Copied":"Copy"})})]})},R3n=DI.memo(I3n);function $3n(l,s){if(!s||l.length===0)return null;let u=null;for(const m of l){const p=m.schema_diff;(p.columns_added.includes(s)||p.columns_modified.includes(s))&&(u=m)}const h=m=>(m==null?void 0:m.expression)!=null&&m.expression.expression_type!=="opaque";if(h(u))return u;const g=l[l.length-1];return g!==u&&g.schema_diff.columns_passed.includes(s)&&(h(g)||g.calculation!=null&&!u)?g:u}function I4t(l,s){if(l.node_type==="dataSource"||l.node_type==="apiInput"||l.node_type==="source")return!1;const u=l.schema_diff;return u.columns_passed.includes(s)&&!u.columns_added.includes(s)&&!u.columns_modified.includes(s)?!0:![...u.columns_added,...u.columns_modified,...u.columns_removed,...u.columns_passed].includes(s)}function B3n(l,s){if(l.length===0)return[];const u=l.every(p=>I4t(p,s)),h=[];let g=[];function m(){g.length>0&&(h.push({collapsed:g}),g=[])}for(let p=0;p<l.length;p++){const O=l[p],j=p===0,C=p===l.length-1;u&&(j||C)||!I4t(O,s)?(m(),h.push(O)):g.push(O)}return m(),h}function Yfe(l){return l==null?"null":typeof l=="number"?Number.isNaN(l)?"NaN":l===1/0?"Infinity":l===-1/0?"-Infinity":String(l):typeof l=="string"?l:JSON.stringify(l)}function uMe(l){return l.replace(/\|/g,"\\|")}function z3n(l,s){const u=[];if(l.column?u.push(`# Trace: ${l.column} = ${Yfe(l.output_value)}`):u.push("# Trace"),u.push(""),l.row_id_column&&l.row_id_value!=null?u.push(`**Row**: ${l.row_id_column} = ${Yfe(l.row_id_value)}`):u.push(`**Row**: Row ${l.row_index}`),u.push(""),u.push(`**Execution**: ${l.execution_ms} ms | ${l.steps.length} steps`),u.push(""),s!=null&&s.expression&&(u.push("## Formula"),u.push(""),u.push(`\`${s.expression.expression_text}\``),u.push(""),s.calculation&&(u.push(`Substituted: \`${s.calculation.substituted_text}\``),u.push(""),s.calculation.input_values&&Object.keys(s.calculation.input_values).length>0))){u.push("**Inputs**:");for(const[g,m]of Object.entries(s.calculation.input_values))u.push(`- ${g} = ${Yfe(m)}`);u.push("")}const h=l.steps.filter(g=>g.column_relevant);return h.length>0&&(u.push("## Data Flow"),u.push(""),u.push("| # | Node | Type | Details |"),u.push("|---|------|------|---------|"),h.forEach((g,m)=>{let p="";const O=g.schema_diff,j=[];if(O.columns_added.length>0&&j.push(`+${O.columns_added.join(",")}`),O.columns_modified.length>0&&j.push(`~${O.columns_modified.join(",")}`),O.columns_removed.length>0&&j.push(`-${O.columns_removed.join(",")}`),g.expression&&j.push(g.expression.expression_text),g.node_detail)for(const[C,N]of Object.entries(g.node_detail))j.push(`${C}: ${Yfe(N)}`);p=j.map(uMe).join("; "),u.push(`| ${m+1} | ${uMe(g.node_name)} | ${uMe(g.node_type)} | ${p} |`)}),u.push("")),u.join(`
`)}const xV=l=>ZAe(l,2);function F3n({detail:l}){const s=l.detail_type,u={color:"var(--text-muted)",fontSize:"10px"},h={color:"var(--text-secondary)",fontSize:"11px",fontFamily:"var(--font-mono, monospace)"};if(s==="rate_table_lookup"||s==="rating_step"){const g=l.lookup_keys,m=l.matched_row,p=l.default_used;return y.jsxs("div",{className:"my-2 space-y-1 text-[11px]",style:{color:"var(--text-secondary)"},children:[y.jsx("div",{style:u,children:"Rate Table Lookup"}),g&&y.jsx("div",{className:"flex flex-wrap gap-1",children:Object.entries(g).map(([O,j])=>y.jsxs("span",{className:"px-1 py-0.5 rounded font-mono",style:{background:"rgba(255,255,255,.06)"},children:[O,": ",String(j)]},O))}),m!=null&&y.jsxs("div",{style:h,children:["Matched row: ",String(m)]}),p&&y.jsx("span",{className:"inline-block px-1.5 py-0.5 rounded text-[10px] font-bold",style:{background:"rgba(251,191,36,.15)",color:"#fbbf24"},children:"default used"})]})}if(s==="banding")return y.jsxs("div",{className:"my-2 space-y-1 text-[11px]",style:{color:"var(--text-secondary)"},children:[y.jsx("div",{style:u,children:"Banding"}),y.jsxs("div",{style:h,children:["Input: ",String(l.input_value)]}),y.jsxs("div",{style:h,children:["Matched band: ",String(l.matched_band)]}),l.lower_bound!=null&&l.upper_bound!=null&&y.jsxs("div",{style:h,children:["Range: [",String(l.lower_bound),", ",String(l.upper_bound),"]"]})]});if(s==="model_score"){const g=l.features_used,m=l.shap_values;return y.jsxs("div",{className:"my-2 space-y-1 text-[11px]",style:{color:"var(--text-secondary)"},children:[y.jsxs("div",{style:u,children:["Model: ",String(l.model_type)]}),y.jsxs("div",{style:h,children:["Prediction: ",String(l.prediction)]}),g&&g.length>0&&y.jsx("div",{className:"flex flex-wrap gap-1",children:g.map(p=>y.jsx("span",{className:"px-1 py-0.5 rounded font-mono text-[10px]",style:{background:"rgba(255,255,255,.06)"},children:p},p))}),m&&m.length>0&&y.jsxs("div",{className:"mt-1 space-y-0.5",children:[y.jsx("div",{style:u,children:"SHAP values"}),m.map(p=>y.jsxs("div",{className:"flex gap-2 font-mono text-[10px]",children:[y.jsx("span",{children:p.feature}),y.jsxs("span",{style:{color:p.value>=0?"#4ade80":"#f87171"},children:[p.value>=0?"+":"",p.value]})]},p.feature))]})]})}return s==="scenario_expander"?y.jsxs("div",{className:"my-2 space-y-1 text-[11px]",style:{color:"var(--text-secondary)"},children:[y.jsx("div",{style:u,children:"Scenario Expander"}),y.jsxs("div",{style:h,children:["Step: ",String(l.step)]}),y.jsxs("div",{style:h,children:["Multiplier: ",String(l.multiplier)]})]}):s==="live_switch"?y.jsxs("div",{className:"my-2 space-y-1 text-[11px]",style:{color:"var(--text-secondary)"},children:[y.jsx("div",{style:u,children:"Branch Selection"}),y.jsxs("div",{style:h,children:["Selected: ",String(l.selected_branch)]})]}):y.jsx("div",{className:"my-2 text-[10px] font-mono",style:{color:"var(--text-muted)",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:y.jsx("pre",{children:JSON.stringify(l,null,2)})})}function R4t({step:l,index:s,tracedColumn:u,isTargetStep:h}){const[g,m]=re.useState(!1),p=Lhe[l.node_type]||"#06b6d4",O=WOt[l.node_type]||"NODE",j=l.column_relevant,{columns_added:C,columns_modified:N,columns_removed:_}=l.schema_diff,P=[];if(u&&l.output_values[u]!==void 0){const z=C.includes(u)?"added":N.includes(u)?"modified":"value";P.push({col:u,val:l.output_values[u],tag:z})}else{for(const z of C.slice(0,2))P.push({col:z,val:l.output_values[z],tag:"added"});for(const z of N.slice(0,2))P.push({col:z,val:l.output_values[z],tag:"modified"})}const I={added:{bg:"rgba(34,197,94,.12)",color:"var(--color-added, #4ade80)",label:"+"},modified:{bg:"rgba(251,191,36,.12)",color:"var(--color-modified, #fbbf24)",label:"~"},value:{bg:"rgba(255,255,255,.06)",color:"var(--text-secondary)",label:"="}},q=Object.keys(l.output_values);return y.jsxs("div",{className:"rounded-lg overflow-hidden transition-opacity",style:{border:j?`1px solid ${p}40`:"1px solid var(--border)",background:"var(--bg-elevated)",opacity:j?1:.55},children:[y.jsxs("button",{onClick:()=>m(!g),className:"w-full flex items-center gap-2 px-3 py-2 text-left transition-colors",style:{background:"transparent"},onMouseEnter:z=>z.currentTarget.style.background="var(--bg-hover)",onMouseLeave:z=>z.currentTarget.style.background="transparent",children:[g?y.jsx(Sd,{size:12,style:{color:"var(--text-muted)"}}):y.jsx(i2,{size:12,style:{color:"var(--text-muted)"}}),y.jsx("span",{className:"text-[11px] font-mono font-bold shrink-0",style:{color:"var(--text-muted)",minWidth:"1.2em"},children:s+1}),y.jsx("span",{className:"text-[13px] font-semibold truncate",style:{color:"var(--text-primary)"},children:l.node_name}),y.jsx("span",{className:"text-[9px] font-bold uppercase tracking-wider shrink-0 px-1.5 py-0.5 rounded",style:{color:p,background:`${p}15`},children:O}),(()=>{const z=(()=>{if(u){const X=l.schema_diff;return X.columns_added.includes(u)?"creates":X.columns_modified.includes(u)?"modifies":X.columns_passed.includes(u)?"passes":null}return l.row_lineage_type||null})();return z?y.jsx("span",{className:"text-[9px] font-medium shrink-0 px-1 py-0.5 rounded",style:{color:"var(--text-muted)",background:"rgba(255,255,255,.06)"},children:z}):null})(),y.jsxs("span",{className:"ml-auto text-[10px] font-mono shrink-0",style:{color:"var(--text-muted)"},children:[l.execution_ms.toFixed(1),"ms"]})]}),P.length>0&&!g&&y.jsxs("div",{className:"px-3 pb-2 flex flex-wrap gap-1.5",style:{paddingLeft:"2.8rem"},children:[P.map(({col:z,val:X,tag:Q})=>{const te=I[Q];return y.jsxs("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[11px] font-mono",style:{background:te.bg,color:te.color},children:[y.jsx("span",{className:"font-bold",children:te.label}),z,": ",xV(X)]},z)}),l.calculation&&!h&&y.jsx("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-[11px] font-mono",style:{background:"rgba(255,255,255,.06)",color:"var(--text-secondary)"},children:l.calculation.substituted_text})]}),g&&y.jsxs("div",{className:"px-3 pb-3",style:{borderTop:"1px solid var(--border)"},children:[l.expression&&l.expression.expression_type!=="opaque"&&y.jsx("div",{className:"my-2 px-2 py-1.5 rounded text-[11px] font-mono",style:{background:"rgba(255,255,255,.04)",color:"var(--text-secondary)",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:_3n(l.expression.expression_text,200)}),l.expression&&l.expression.expression_type==="opaque"&&y.jsx("div",{className:"my-2 text-[11px]",style:{color:"var(--text-muted)",fontStyle:"italic"},children:"computed"}),l.calculation&&y.jsx("div",{className:"my-2 px-2 py-1.5 rounded text-[12px] font-mono font-semibold",style:{background:"var(--accent-soft)",color:"var(--accent)"},children:l.calculation.substituted_text}),l.node_detail&&y.jsx(F3n,{detail:l.node_detail}),y.jsxs("div",{className:"flex flex-wrap gap-2 py-2 text-[10px]",children:[C.length>0&&y.jsxs("span",{style:{color:"var(--color-added, #4ade80)"},children:["+",C.length," added"]}),N.length>0&&y.jsxs("span",{style:{color:"var(--color-modified, #fbbf24)"},children:["~",N.length," modified"]}),_.length>0&&y.jsxs("span",{style:{color:"var(--color-removed, #f87171)"},children:["-",_.length," removed"]}),y.jsxs("span",{style:{color:"var(--text-muted)"},children:[l.schema_diff.columns_passed.length," passed through"]})]}),!l.expression&&!l.calculation&&y.jsx("div",{className:"space-y-0.5",children:q.map(z=>{const X=C.includes(z),Q=N.includes(z),te=_.includes(z),V=l.input_values[z],ne=l.output_values[z],ce=z===u;let se="var(--text-secondary)",me="";return X?(se="var(--color-added, #4ade80)",me="+"):Q?(se="var(--color-modified, #fbbf24)",me="~"):te&&(se="var(--color-removed, #f87171)",me="-"),y.jsxs("div",{className:"flex items-center gap-2 px-2 py-0.5 rounded text-[11px] font-mono",style:{background:ce?"var(--accent-soft)":"transparent",borderLeft:ce?"2px solid var(--accent)":"2px solid transparent"},children:[y.jsx("span",{className:"font-bold w-3",style:{color:se},children:me}),y.jsx("span",{className:"truncate",style:{color:se,minWidth:"6em",maxWidth:"10em"},children:z}),Q&&V!==void 0&&y.jsxs(y.Fragment,{children:[y.jsx("span",{style:{color:"var(--text-muted)"},children:xV(V)}),y.jsx("span",{style:{color:"var(--text-muted)"},children:"→"})]}),y.jsx("span",{style:{color:X||Q?se:"var(--text-secondary)"},children:xV(ne)})]},z)})})]})]})}function q3n({trace:l,onClose:s}){const[u,h]=re.useState("calculation"),[g,m]=re.useState("sources"),[p,O]=re.useState(!1),[j,C]=re.useState(!1),N=re.useRef(void 0);re.useEffect(()=>()=>clearTimeout(N.current),[]);const _=re.useMemo(()=>$3n(l.steps,l.column),[l.steps,l.column]),P=re.useMemo(()=>{if(!l.column)return new Set;const X=B3n(l.steps,l.column),Q=new Set;for(const te of X)if("collapsed"in te)for(const V of te.collapsed)Q.add(V.node_id);return Q},[l.steps,l.column]),I=async()=>{const X=z3n(l,_);try{await navigator.clipboard.writeText(X)}catch{const Q=document.createElement("textarea");Q.value=X,document.body.appendChild(Q),Q.select(),document.execCommand("copy"),document.body.removeChild(Q)}O(!0),clearTimeout(N.current),N.current=setTimeout(()=>O(!1),2e3)},q=[],z=[];for(const X of l.steps)g==="all"||j||!P.has(X.node_id)?q.push(X):z.push(X);return y.jsxs(dX,{children:[y.jsxs("div",{className:"px-4 py-3 flex items-center gap-2 shrink-0",style:{borderBottom:"1px solid var(--border)"},children:[y.jsx(Lhn,{size:14,style:{color:"var(--accent)"}}),y.jsxs("div",{className:"flex-1 min-w-0",children:[y.jsxs("div",{className:"text-xs font-bold",style:{color:"var(--text-primary)"},children:["Trace",l.column?`: ${l.column}`:""]}),y.jsxs("div",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:[l.row_id_column&&l.row_id_value!=null?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"font-mono",children:l.row_id_column})," = ",y.jsx("span",{className:"font-mono font-medium",style:{color:"var(--text-secondary)"},children:xV(l.row_id_value)})]}):y.jsxs(y.Fragment,{children:["Row ",l.row_index]})," ","· ",l.nodes_in_trace," of ",l.total_nodes_in_pipeline," nodes"]})]}),y.jsx("button",{onClick:I,className:"p-1 rounded transition-colors",style:{color:p?"var(--color-added, #4ade80)":"var(--text-muted)"},title:"Copy trace as markdown",onMouseEnter:X=>X.currentTarget.style.background="var(--bg-hover)",onMouseLeave:X=>X.currentTarget.style.background="transparent",children:p?y.jsx(HM,{size:14}):y.jsx(WAe,{size:14})}),y.jsx("button",{onClick:s,className:"p-1 rounded transition-colors",style:{color:"var(--text-muted)"},onMouseEnter:X=>X.currentTarget.style.background="var(--bg-hover)",onMouseLeave:X=>X.currentTarget.style.background="transparent",children:y.jsx(Ix,{size:14})})]}),y.jsx("div",{className:"shrink-0 px-3 py-1.5",style:{borderBottom:"1px solid var(--border)"},children:y.jsx("div",{style:{display:"flex",background:"rgba(0,0,0,.2)",borderRadius:6,padding:2,gap:2,border:"1px solid rgba(255,255,255,.05)"},children:["calculation","nodes"].map(X=>{const Q=u===X;return y.jsx("button",{onClick:()=>h(X),style:{flex:1,padding:"6px 0",fontSize:11,fontWeight:600,borderRadius:4,border:"none",cursor:"pointer",transition:"all 150ms ease",background:Q?"rgba(59,130,246,.12)":"transparent",color:Q?"#60a5fa":"rgba(255,255,255,.35)",boxShadow:Q?"0 1px 3px rgba(0,0,0,.2)":"none"},children:X.charAt(0).toUpperCase()+X.slice(1)},X)})})}),u==="calculation"?y.jsx("div",{className:"flex-1 overflow-y-auto",style:{background:"linear-gradient(180deg, rgba(59,130,246,.04) 0%, rgba(59,130,246,.01) 100%)"},children:_&&l.column?y.jsx(R3n,{column:l.column,expression:_.expression??null,calculation:_.calculation??null,executionMs:l.execution_ms,stepCount:l.steps.length,nodeName:_.node_name,waterfall:l.waterfall}):y.jsx("div",{className:"px-4 py-4",children:y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:"Result"}),y.jsx("span",{className:"px-2 py-0.5 rounded text-[13px] font-mono font-bold",style:{background:"var(--accent-soft)",color:"var(--accent)"},children:xV(l.output_value)})]})})}):y.jsxs("div",{className:"flex-1 overflow-hidden flex flex-col",children:[y.jsx("div",{className:"px-3 py-1.5 shrink-0",style:{borderBottom:"1px solid var(--border)"},children:y.jsx("div",{style:{display:"flex",background:"rgba(0,0,0,.2)",borderRadius:6,padding:2,gap:2,border:"1px solid rgba(255,255,255,.05)"},children:["formula","sources","all"].map(X=>{const Q=g===X;return y.jsx("button",{onClick:()=>{m(X),C(!1)},style:{flex:1,padding:"6px 0",fontSize:11,fontWeight:600,borderRadius:4,border:"none",cursor:"pointer",transition:"all 150ms ease",background:Q?"rgba(59,130,246,.12)":"transparent",color:Q?"#60a5fa":"rgba(255,255,255,.35)",boxShadow:Q?"0 1px 3px rgba(0,0,0,.2)":"none"},children:X.charAt(0).toUpperCase()+X.slice(1)},X)})})}),y.jsx("div",{className:"flex-1 overflow-y-auto p-3 space-y-2",children:g==="formula"?_&&y.jsx(R4t,{step:_,index:l.steps.indexOf(_),tracedColumn:l.column,isTargetStep:!0}):y.jsxs(y.Fragment,{children:[q.map(X=>y.jsx(R4t,{step:X,index:l.steps.indexOf(X),tracedColumn:l.column,isTargetStep:(_==null?void 0:_.node_id)===X.node_id},X.node_id)),z.length>0&&!j&&y.jsxs("button",{onClick:()=>C(!0),className:"w-full py-1.5 rounded text-[11px] transition-colors",style:{color:"var(--text-muted)",background:"rgba(255,255,255,.03)",border:"1px dashed var(--border)",fontStyle:"italic"},onMouseEnter:X=>X.currentTarget.style.background="var(--bg-hover)",onMouseLeave:X=>X.currentTarget.style.background="rgba(255,255,255,.03)",children:[z.length," pass-through node",z.length>1?"s":""," hidden"]})]})})]})]})}const H3n={success:JAe,error:TMe,info:fhn,warning:Sp},G3n={success:"#22c55e",error:"#ef4444",info:"#6366f1",warning:"#f59e0b"};function Q3n({toast:l,onDismiss:s}){const u=H3n[l.type],h=G3n[l.type];return re.useEffect(()=>{const g=setTimeout(()=>s(l.id),3e3);return()=>clearTimeout(g)},[l.id,s]),y.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:[y.jsx(u,{size:14,style:{color:h},className:"shrink-0"}),y.jsx("span",{className:"flex-1",style:{color:"var(--text-primary)"},children:l.text}),y.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:y.jsx(Ix,{size:12})})]})}function U3n(){const l=Rx(u=>u.toasts),s=Rx(u=>u.dismissToast);return l.length===0?null:y.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 items-end","aria-live":"polite",children:l.map(u=>y.jsx(Q3n,{toast:u,onDismiss:s},u.id))})}class iV extends re.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:y.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:[y.jsx("p",{style:{margin:"0 0 8px",fontWeight:600,color:"var(--text-primary, #ccc)"},children:"Something went wrong"}),y.jsx("p",{style:{margin:"0 0 12px",fontFamily:"monospace",fontSize:"11px"},children:(s=this.state.error)==null?void 0:s.message}),y.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 J3n({x:l,y:s,nodeLabel:u,onClose:h,onDelete:g,onDuplicate:m,onRename:p,onCreateInstance:O,onDissolveSubmodel:j,isSubmodel:C,isSingleton:N,nodeId:_}){const P=re.useRef(null),[I,q]=re.useState(0),z=re.useRef([]),X=re.useMemo(()=>{const Q=[{label:"Rename",icon:Vhn,action:()=>p(_)}];if(N||Q.push({label:"Duplicate",icon:WAe,action:()=>m(_)}),O&&!C&&Q.push({label:"Create Instance",icon:XAe,action:()=>O(_)}),C&&j){const te=_.startsWith("submodel__")?_.slice(10):_;Q.push({label:"Dissolve Submodel",icon:Zhn,action:()=>j(te),danger:!0})}return Q.push({label:"Delete",icon:F9,action:()=>g(_),danger:!0}),Q},[_,C,N,p,m,g,O,j]);return re.useEffect(()=>{const Q=te=>{P.current&&!P.current.contains(te.target)&&h()};return document.addEventListener("mousedown",Q),()=>document.removeEventListener("mousedown",Q)},[h]),re.useEffect(()=>{var Q;(Q=z.current[0])==null||Q.focus()},[]),re.useEffect(()=>{const Q=te=>{if(te.key==="Escape"){h();return}if(te.key==="ArrowDown"){te.preventDefault(),q(V=>{var ce;const ne=(V+1)%X.length;return(ce=z.current[ne])==null||ce.focus(),ne});return}te.key==="ArrowUp"&&(te.preventDefault(),q(V=>{var ce;const ne=(V-1+X.length)%X.length;return(ce=z.current[ne])==null||ce.focus(),ne}))};return document.addEventListener("keydown",Q),()=>document.removeEventListener("keydown",Q)},[h,X.length]),y.jsxs("div",{ref:P,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:[y.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}),X.map((Q,te)=>{const V=Q.icon;return y.jsxs("button",{ref:ne=>{z.current[te]=ne},role:"menuitem",tabIndex:te===I?0:-1,onClick:()=>{Q.action(),h()},className:"w-full flex items-center gap-2.5 px-3 py-1.5 text-[12px] transition-colors",style:{color:Q.danger?"#ef4444":"var(--text-secondary)"},onMouseEnter:ne=>{ne.currentTarget.style.background=Q.danger?"rgba(239,68,68,.1)":"var(--chrome-hover)",Q.danger||(ne.currentTarget.style.color="var(--text-primary)")},onMouseLeave:ne=>{ne.currentTarget.style.background="transparent",ne.currentTarget.style.color=Q.danger?"#ef4444":"var(--text-secondary)"},children:[y.jsx(V,{size:13,"aria-hidden":"true"}),Q.label]},Q.label)})]})}const W3n='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';function WNe({ariaLabel:l,onClose:s,extraCloseKeys:u,width:h="w-[360px]",children:g}){const m=re.useRef(null),p=re.useRef(null);return re.useEffect(()=>{var j;p.current=document.activeElement,(j=m.current)==null||j.focus();const O=C=>{if(C.key==="Escape"||u&&u.includes(C.key)){C.preventDefault(),s();return}if(C.key==="Tab"&&m.current){const N=m.current.querySelectorAll(W3n);if(N.length===0)return;const _=N[0],P=N[N.length-1];C.shiftKey?document.activeElement===_&&(C.preventDefault(),P.focus()):document.activeElement===P&&(C.preventDefault(),_.focus())}};return document.addEventListener("keydown",O),()=>{document.removeEventListener("keydown",O),p.current instanceof HTMLElement&&p.current.focus()}},[s,u]),y.jsx("div",{ref:m,className:"fixed inset-0 z-50 flex items-center justify-center",role:"dialog","aria-modal":"true","aria-label":l,tabIndex:-1,style:{background:"rgba(0,0,0,.5)"},onClick:O=>{O.target===O.currentTarget&&s()},children:y.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 z9(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 sb(l="var(--bg-hover)",s="transparent"){return{onMouseEnter:u=>{u.currentTarget.style.background=l},onMouseLeave:u=>{u.currentTarget.style.background=s}}}const V3n=typeof navigator<"u"&&/Mac/.test(navigator.userAgent),E9=V3n?"⌘":"Ctrl",X3n=[{keys:`${E9}+Z`,label:"Undo"},{keys:`${E9}+Shift+Z`,label:"Redo"},{keys:`${E9}+C`,label:"Copy selected nodes"},{keys:`${E9}+V`,label:"Paste nodes"},{keys:`${E9}+A`,label:"Select all nodes"},{keys:`${E9}+S`,label:"Save pipeline"},{keys:`${E9}+K`,label:"Search nodes"},{keys:`${E9}+1`,label:"Fit view"},{keys:"Delete / Backspace",label:"Delete selected"},{keys:"?",label:"Show this help"}];function K3n({onClose:l}){return y.jsxs(WNe,{ariaLabel:"Keyboard shortcuts",onClose:l,extraCloseKeys:["?"],children:[y.jsxs("div",{className:"px-4 py-3 flex items-center justify-between",style:{borderBottom:"1px solid var(--border)"},children:[y.jsx("h2",{className:"text-sm font-semibold",style:{color:"var(--text-primary)"},children:"Keyboard Shortcuts"}),y.jsx("button",{onClick:l,"aria-label":"Close keyboard shortcuts",className:"p-1 rounded transition-colors",style:{color:"var(--text-muted)"},...sb("var(--bg-hover)"),children:"✕"})]}),y.jsx("div",{className:"px-4 py-3 space-y-1.5",children:X3n.map(s=>y.jsxs("div",{className:"flex items-center justify-between py-1",children:[y.jsx("span",{className:"text-[12px]",style:{color:"var(--text-secondary)"},children:s.label}),y.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 Y3n({viewStack:l,onNavigate:s}){return l.length<=1?null:y.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)=>y.jsxs("span",{className:"flex items-center gap-1",children:[h>0&&y.jsx(i2,{size:12,style:{color:"var(--text-muted)"}}),y.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 Wde(l,s,u){re.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 $4t({icon:l,title:s,items:u,formatValue:h,valueWidth:g="w-12"}){const[m,p]=re.useState(!1),O=re.useRef(null),j=re.useCallback(()=>p(!1),[]);Wde(O,j,m);const C=re.useMemo(()=>{var q;if(!u.length)return null;const _=[...u].sort((z,X)=>X.value-z.value),P=((q=_[0])==null?void 0:q.value)||1,I=_.reduce((z,X)=>z+X.value,0);return{sorted:_,maxValue:P,total:I}},[u]),N=C!==null;return y.jsxs("div",{ref:O,className:"relative flex items-center gap-1",children:[y.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:[y.jsx(l,{size:12}),y.jsx("span",{className:"text-[11px] font-mono",children:h((C==null?void 0:C.total)??0)})]}),m&&C&&y.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:y.jsxs("div",{className:"px-3 py-2 overflow-y-auto",style:{maxHeight:240},children:[y.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[y.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-wider",style:{color:"var(--text-muted)"},children:s}),y.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,I=P>.7?"#ef4444":P>.3?"#eab308":"#22c55e";return y.jsxs("div",{className:"flex items-center gap-2 py-0.5",children:[y.jsx("span",{className:"text-[11px] truncate shrink-0",style:{width:100,color:"var(--text-secondary)"},title:_.label,children:_.label}),y.jsx("div",{className:"flex-1 h-3 rounded-sm overflow-hidden",style:{background:"rgba(255,255,255,.05)"},children:y.jsx("div",{className:"h-full rounded-sm transition-all",style:{width:`${Math.max(2,P*100)}%`,background:I,opacity:.8}})}),y.jsx("span",{className:`text-[10px] font-mono shrink-0 ${g} text-right`,style:{color:"var(--text-muted)"},children:h(_.value)})]},_.node_id)})]})})]})}const B4t=sb("var(--chrome-hover)"),Z3n=z9("#60a5fa","","var(--accent)",""),e5n=z9("#4ade80","","#22c55e","");function t5n(l){return l<1e3?`${l.toFixed(1)}ms`:`${(l/1e3).toFixed(2)}s`}function n5n(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 i5n={connected:{color:"#22c55e",title:"Live sync connected"},reconnecting:{color:"#f59e0b",title:"Reconnecting to server…"},disconnected:{color:"#ef4444",title:"Server unreachable — restart haute serve"}};function r5n({nodeCount:l,dirty:s,canUndo:u,canRedo:h,onUndo:g,onRedo:m,onZoomIn:p,onZoomOut:O,onOpenUtility:j,onOpenImports:C,onOpenGit:N,onCentre:_,onAutoLayout:P,onSave:I,wsStatus:q,timings:z,memory:X}){const Q=dc(Ee=>Ee.rowLimit),te=dc(Ee=>Ee.setRowLimit),V=dc(Ee=>Ee.sources),ne=dc(Ee=>Ee.activeSource),ce=dc(Ee=>Ee.setActiveSource),se=dc(Ee=>Ee.addSource),me=dc(Ee=>Ee.removeSource),[ye,qe]=re.useState(!1),[Be,ke]=re.useState(""),[le,W]=re.useState(!1),pe=re.useRef(null),je=re.useCallback(()=>W(!1),[]);Wde(pe,je,le);const ue=i5n[q],ve=re.useMemo(()=>(z??[]).map(Ee=>({node_id:Ee.node_id,label:Ee.label,value:Ee.timing_ms})),[z]),xe=re.useMemo(()=>(X??[]).map(Ee=>({node_id:Ee.node_id,label:Ee.label,value:Ee.memory_bytes})),[X]);return y.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:[y.jsxs("div",{className:"flex items-center gap-2.5",children:[y.jsx("h1",{className:"text-sm font-bold tracking-tight",style:{color:"var(--text-primary)"},children:"Haute"}),y.jsx("span",{className:"text-[11px] font-mono",style:{color:"var(--text-muted)"},children:"v0.1.0"}),s&&y.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-400 animate-pulse-dot",title:"Unsaved changes"}),y.jsx("span",{className:`w-2 h-2 rounded-full shrink-0${q==="reconnecting"?" animate-pulse-dot":""}`,style:{background:ue.color},title:ue.title})]}),y.jsxs("div",{ref:pe,className:"relative flex items-center gap-1 ml-12",children:[y.jsx("label",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:"Source"}),ye?y.jsx("form",{className:"flex items-center gap-0.5",onSubmit:Ee=>{if(Ee.preventDefault(),Be.trim()){const tt=se(Be);tt&&ce(tt)}qe(!1),ke("")},children:y.jsx("input",{autoFocus:!0,value:Be,onChange:Ee=>ke(Ee.target.value),onBlur:()=>requestAnimationFrame(()=>{qe(!1),ke("")}),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)"}})}):y.jsxs("button",{onClick:()=>W(Ee=>!Ee),className:"flex items-center gap-1.5 px-2 py-1 text-[12px] font-mono rounded-md transition-colors",style:{background:le?"var(--accent-soft)":"var(--chrome-hover)",border:`1px solid ${le?"var(--accent)":"var(--chrome-border)"}`,color:"var(--text-primary)"},title:"Data source",children:[ne==="live"&&y.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-green-400 shrink-0"}),y.jsx("span",{children:ne}),y.jsx(Sd,{size:11,style:{color:"var(--text-muted)",transition:"transform 150ms",transform:le?"rotate(180deg)":void 0}})]}),le&&y.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:[y.jsx("div",{className:"py-1",children:V.map(Ee=>y.jsxs("button",{onClick:()=>{ce(Ee),W(!1)},className:"w-full flex items-center gap-2 px-3 py-1.5 text-[12px] font-mono text-left transition-colors",style:{color:Ee===ne?"var(--accent)":"var(--text-secondary)",background:Ee===ne?"var(--accent-soft)":"transparent"},onMouseEnter:tt=>{Ee!==ne&&B4t.onMouseEnter(tt)},onMouseLeave:tt=>{Ee!==ne&&B4t.onMouseLeave(tt)},children:[Ee==="live"?y.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-green-400 shrink-0"}):y.jsx("span",{className:"w-1.5 shrink-0"}),Ee]},Ee))}),y.jsxs("div",{className:"py-1",style:{borderTop:"1px solid var(--border)"},children:[y.jsxs("button",{onClick:()=>{qe(!0),W(!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)"},...z9("var(--chrome-hover)","var(--text-secondary)","transparent","var(--text-muted)"),children:[y.jsx(l5,{size:12}),"Add source"]}),ne!=="live"&&y.jsxs("button",{onClick:()=>{me(ne),W(!1)},className:"w-full flex items-center gap-2 px-3 py-1.5 text-[12px] text-left transition-colors",style:{color:"#ef4444"},...sb("rgba(239,68,68,.1)"),children:[y.jsx(F9,{size:12}),'Remove "',ne,'"']})]})]})]}),y.jsxs("div",{className:"flex items-center gap-1 ml-3",title:"Row limit for preview (0 = no limit)",children:[y.jsx("label",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:"Rows"}),y.jsx("input",{type:"number",min:0,step:100,value:Q,onChange:Ee=>te(Math.max(0,parseInt(Ee.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)"}})]}),y.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:y.jsx(Khn,{size:14,"aria-hidden":"true"})}),y.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:y.jsx(Thn,{size:14,"aria-hidden":"true"})}),y.jsx("div",{className:"ml-3",children:y.jsx($4t,{icon:Hhn,title:"Pipeline Timing",items:ve,formatValue:t5n})}),y.jsx($4t,{icon:chn,title:"Pipeline Memory",items:xe,formatValue:n5n,valueWidth:"w-14"}),y.jsxs("div",{className:"ml-auto flex items-center gap-1.5",children:[y.jsxs("button",{onClick:j,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:[y.jsx(BOt,{size:13}),"Utility"]}),y.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:[y.jsx(nX,{size:13}),"Imports"]}),y.jsx("button",{onClick:O,"aria-label":"Zoom out",className:"p-1.5 rounded-md hover-chrome",title:"Zoom out",children:y.jsx(sdn,{size:14,"aria-hidden":"true"})}),y.jsx("button",{onClick:p,"aria-label":"Zoom in",className:"p-1.5 rounded-md hover-chrome",title:"Zoom in",children:y.jsx(idn,{size:14,"aria-hidden":"true"})}),y.jsx("div",{className:"w-px h-4 mx-0.5",style:{background:"var(--chrome-border)"}}),y.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"}),y.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"}),y.jsx("button",{onClick:I,className:"px-3 py-1 text-[12px] font-semibold text-white rounded-md transition-colors",style:{background:"var(--accent)"},...Z3n,title:"Ctrl+S",children:"Save"}),y.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"},...e5n,title:"Git — branch management and version control",children:[y.jsx(HOt,{size:13}),"Git"]})]})]})}function s5n({nodeCount:l,onClose:s,onSubmit:u}){return y.jsxs(WNe,{ariaLabel:"Create submodel",onClose:s,width:"w-[400px]",children:[y.jsxs("div",{className:"px-4 py-3",style:{borderBottom:"1px solid var(--border)"},children:[y.jsx("h2",{className:"text-sm font-semibold",style:{color:"var(--text-primary)"},children:"Create Submodel"}),y.jsxs("p",{className:"text-[11px] mt-0.5",style:{color:"var(--text-muted)"},children:["Group ",l," selected nodes into a submodel"]})]}),y.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:[y.jsxs("div",{children:[y.jsx("label",{className:"text-[11px] font-medium block mb-1",style:{color:"var(--text-muted)"},children:"Submodel name"}),y.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)"}})]}),y.jsxs("div",{className:"flex justify-end gap-2",children:[y.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"}),y.jsx("button",{type:"submit",className:"px-4 py-1.5 text-[12px] font-semibold text-white rounded-md transition-colors",style:{background:"#64748b"},...sb("#94a3b8","#64748b"),children:"Create"})]})]})]})}function o5n({defaultValue:l,onConfirm:s,onCancel:u}){const h=re.useRef(null);return re.useEffect(()=>{const g=h.current;g&&(g.focus(),g.select())},[]),y.jsxs(WNe,{ariaLabel:"Rename node",onClose:u,children:[y.jsx("div",{className:"px-4 py-3",style:{borderBottom:"1px solid var(--border)"},children:y.jsx("h2",{className:"text-sm font-semibold",style:{color:"var(--text-primary)"},children:"Rename Node"})}),y.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:[y.jsxs("div",{children:[y.jsx("label",{htmlFor:"rename-input",className:"text-[11px] font-medium block mb-1",style:{color:"var(--text-muted)"},children:"Node name"}),y.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)"}})]}),y.jsxs("div",{className:"flex justify-end gap-2",children:[y.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"}),y.jsx("button",{type:"submit",className:"px-4 py-1.5 text-[12px] font-semibold text-white rounded-md transition-colors",style:{background:"#64748b"},...sb("#94a3b8","#64748b"),children:"Rename"})]})]})]})}function VNe({title:l,onClose:s,icon:u,subtitle:h,actions:g}){return y.jsxs("div",{className:"px-3 py-2.5 flex items-center gap-2 shrink-0",style:{borderBottom:"1px solid var(--border)"},children:[u,y.jsxs("div",{className:"flex-1 min-w-0",children:[typeof l=="string"?y.jsx("span",{className:"text-[13px] font-semibold block",style:{color:"var(--text-primary)"},children:l}):l,h]}),g,y.jsx("button",{onClick:s,className:"p-1 rounded shrink-0 transition-colors",style:{color:"var(--text-muted)"},...sb("var(--bg-hover)"),title:"Close",children:y.jsx(Ix,{size:14})})]})}const z4t=sb("var(--bg-hover)");function F4t(l){if(!(l instanceof OO)||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 c5n({onClose:l,onImportAdded:s}){const[u,h]=re.useState([]),[g,m]=re.useState(null),[p,O]=re.useState(""),[j,C]=re.useState(null),[N,_]=re.useState(null),[P,I]=re.useState(!1),q=re.useRef(null);Wde(q,()=>I(!1),P);const[z,X]=re.useState(!1),[Q,te]=re.useState(""),V=re.useRef(void 0),ne=re.useRef(g),ce=re.useRef(!0);re.useEffect(()=>{ne.current=g},[g]),re.useEffect(()=>(ce.current=!0,()=>{ce.current=!1}),[]);const se=re.useCallback((ke,le)=>{clearTimeout(V.current),V.current=setTimeout(async()=>{if(ne.current===ke)try{if(await e1n(ke,le),!ce.current||ne.current!==ke)return;C(null),_(null)}catch(W){if(!ce.current||ne.current!==ke)return;const pe=F4t(W);pe?(C(pe.error_line),_(pe.error)):(console.warn("Failed to save utility file",ke,W),_("Failed to save"))}},500)},[]);re.useEffect(()=>()=>clearTimeout(V.current),[]);const me=re.useCallback(async()=>{try{const ke=await Kdn();h(ke.files)}catch(ke){console.warn("Failed to list utility files",ke),h([])}},[]);re.useEffect(()=>{me()},[me]);const ye=re.useCallback(async ke=>{clearTimeout(V.current);try{const le=await Ydn(ke);O(le.content),m(ke),C(null),_(null)}catch(le){console.warn("Failed to load utility file",ke,le),_(`Failed to load ${ke}`)}},[]);re.useEffect(()=>{u.length>0&&g===null&&ye(u[0].module)},[u,g,ye]);const qe=re.useCallback(async()=>{const ke=Q.trim().replace(/\.py$/,"");if(ke){X(!1),te("");try{const le=await Zdn({name:ke});le.import_line&&s(le.import_line),await me(),ye(le.module)}catch(le){const W=F4t(le);_(W?W.error:le instanceof Error?le.message:"Failed to create")}}},[Q,me,ye,s]),Be=re.useCallback(async()=>{if(g&&confirm(`Delete ${g}?`)){clearTimeout(V.current);try{await t1n(g),m(null),O(""),await me()}catch(ke){console.warn("Failed to delete utility file",g,ke),_("Failed to delete")}}},[g,me]);return y.jsxs(dX,{children:[y.jsx(VNe,{title:"Utility Scripts",onClose:l,icon:y.jsx(BOt,{size:14,style:{color:"var(--accent)"}})}),y.jsx("div",{className:"px-3 py-2 flex items-center gap-2 shrink-0",style:{borderBottom:"1px solid var(--border)"},children:z?y.jsxs("form",{className:"flex items-center gap-1 flex-1",onSubmit:ke=>{ke.preventDefault(),qe()},children:[y.jsx("input",{autoFocus:!0,value:Q,onChange:ke=>te(ke.target.value),onBlur:()=>{X(!1),te("")},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)"}}),y.jsx("span",{className:"text-[11px] font-mono",style:{color:"var(--text-muted)"},children:".py"})]}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"relative flex-1",ref:q,children:[y.jsxs("button",{onClick:()=>I(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:[y.jsx("span",{className:"flex-1 text-left truncate",children:g??"No files"}),y.jsx(Sd,{size:11,style:{color:"var(--text-muted)",transition:"transform 150ms",transform:P?"rotate(180deg)":void 0}})]}),P&&u.length>0&&y.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:y.jsx("div",{className:"py-1",children:u.map(ke=>y.jsx("button",{onClick:()=>{I(!1),ke.module!==g&&ye(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&&z4t.onMouseEnter(le)},onMouseLeave:le=>{ke.module!==g&&z4t.onMouseLeave(le)},children:ke.module},ke.module))})})]}),y.jsx("button",{onClick:()=>X(!0),className:"p-1.5 rounded-md transition-colors",style:{color:"var(--text-muted)"},...z9("var(--bg-hover)","var(--accent)","transparent","var(--text-muted)"),title:"New utility file",children:y.jsx(l5,{size:14})}),g&&y.jsx("button",{onClick:Be,className:"p-1.5 rounded-md transition-colors",style:{color:"var(--text-muted)"},...z9("rgba(239,68,68,.1)","#ef4444","transparent","var(--text-muted)"),title:`Delete ${g}`,children:y.jsx(F9,{size:14})})]})}),y.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:g?y.jsxs("div",{className:"h-full flex flex-col",children:[y.jsx("div",{className:"flex-1 min-h-0",children:y.jsx(XM,{defaultValue:p,onChange:ke=>{O(ke),C(null),_(null),g&&se(g,ke)},errorLine:j,placeholder:"# Write reusable helper functions here\\n\\nimport polars as pl\\n\\ndef my_helper(df):\\n    return df"})}),N&&y.jsx("div",{className:"px-3 py-2 text-[11px] shrink-0",style:{color:"#ef4444",borderTop:"1px solid var(--border)"},children:N})]}):y.jsx("div",{className:"flex items-center justify-center h-full text-[12px]",style:{color:"var(--text-muted)"},children:u.length===0?y.jsxs("div",{className:"text-center",children:[y.jsx("p",{children:"No utility files yet."}),y.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)"},...sb("rgba(59,130,246,.2)","var(--accent-soft)"),children:"Create one"})]}):"Select a file"})})]})}function l5n({preamble:l,onPreambleChange:s,onClose:u}){return y.jsxs(dX,{children:[y.jsx(VNe,{title:"Pipeline Imports",onClose:u,icon:y.jsx(nX,{size:14,style:{color:"var(--accent)"}}),subtitle:y.jsx("span",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Import statements for utility modules and third-party libraries."})}),y.jsx("div",{className:"px-3 py-2 shrink-0",style:{borderBottom:"1px solid var(--border)"},children:y.jsxs("p",{className:"text-[11px] font-mono",style:{color:"var(--text-muted)"},children:[y.jsx("span",{style:{color:"rgba(96,165,250,.5)"},children:"import polars as pl"})," and ",y.jsx("span",{style:{color:"rgba(96,165,250,.5)"},children:"import haute"})," are always included"]})}),y.jsx("div",{className:"flex-1 min-h-0",children:y.jsx(XM,{defaultValue:l,onChange:s,placeholder:`from utility.features import *
import numpy as np
from catboost import CatBoostRegressor`})})]})}function u5n({onClose:l}){const[s,u]=re.useState(null),[h,g]=re.useState([]),[m,p]=re.useState([]),[O,j]=re.useState("main"),[C,N]=re.useState(null),[_,P]=re.useState(!1),[I,q]=re.useState(!1),[z,X]=re.useState(""),[Q,te]=re.useState(!1),V=re.useRef(null);Wde(V,()=>te(!1),Q);const[ne,ce]=re.useState(null),se=re.useCallback(async()=>{try{const[Je,_t]=await Promise.all([r1n(),s1n()]);u(Je),g(_t.branches)}catch(Je){N(Je instanceof Error?Je.message:"Failed to load git status")}},[]);re.useEffect(()=>{se()},[se]);const me=re.useCallback(async()=>{try{const Je=await a1n(30);p(Je.entries)}catch(Je){console.warn("Failed to load git history",Je),p([])}},[]);re.useEffect(()=>{O==="history"&&me()},[O,me]);const ye=re.useCallback(async()=>{const Je=z.trim();if(Je){P(!0),N(null);try{await o1n(Je),q(!1),X(""),await se()}catch(_t){N(_t instanceof Error?_t.message:"Failed to create branch")}finally{P(!1)}}},[z,se]),qe=re.useCallback(async Je=>{P(!0),N(null),te(!1);try{await c1n(Je),await se()}catch(_t){N(_t instanceof Error?_t.message:"Failed to switch branch")}finally{P(!1)}},[se]),Be=re.useCallback(async()=>{P(!0),N(null);try{await l1n(),await se(),O==="history"&&await me()}catch(Je){N(Je instanceof Error?Je.message:"Failed to save")}finally{P(!1)}},[se,me,O]),ke=re.useCallback(async()=>{P(!0),N(null);try{const Je=await u1n();Je.compare_url&&window.open(Je.compare_url,"_blank"),await se()}catch(Je){N(Je instanceof Error?Je.message:"Failed to submit")}finally{P(!1)}},[se]),le=re.useCallback(async()=>{P(!0),N(null);try{const Je=await h1n();Je.conflict&&N(Je.conflict_message??"Merge conflict detected"),await se()}catch(Je){N(Je instanceof Error?Je.message:"Failed to pull")}finally{P(!1)}},[se]),W=re.useCallback(async Je=>{P(!0),N(null),ce(null);try{await f1n(Je),await se(),await me()}catch(_t){N(_t instanceof Error?_t.message:"Failed to revert")}finally{P(!1)}},[se,me]),pe=re.useCallback(async Je=>{P(!0),N(null),ce(null);try{await d1n(Je),await se()}catch(_t){N(_t instanceof Error?_t.message:"Failed to archive")}finally{P(!1)}},[se]),je=re.useCallback(async Je=>{P(!0),N(null),ce(null);try{await g1n(Je),await se()}catch(_t){N(_t instanceof Error?_t.message:"Failed to delete")}finally{P(!1)}},[se]),ue=(s==null?void 0:s.is_main)??!0,ve=(s==null?void 0:s.is_read_only)??!0,xe=(s==null?void 0:s.branch)??"main",Ee=(s==null?void 0:s.changed_files)??[],tt=h.filter(Je=>Je.is_yours&&!Je.is_archived),Te=h.filter(Je=>!Je.is_yours&&!Je.is_archived&&!["main","master","develop"].includes(Je.name)),et=h.filter(Je=>Je.is_archived),Ie=h.filter(Je=>["main","master","develop"].includes(Je.name));function Ye(Je){const _t=Date.now()-new Date(Je).getTime(),nn=Math.floor(_t/6e4);if(nn<1)return"just now";if(nn<60)return`${nn}m ago`;const an=Math.floor(nn/60);return an<24?`${an}h ago`:`${Math.floor(an/24)}d ago`}return y.jsxs(dX,{children:[y.jsx(VNe,{title:"Git",onClose:l,icon:y.jsx(HOt,{size:14,style:{color:"#22c55e"}})}),C&&y.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:[y.jsx(Sp,{size:12,className:"shrink-0 mt-0.5"}),y.jsx("span",{className:"flex-1",children:C}),y.jsx("button",{onClick:()=>N(null),className:"opacity-60 hover:opacity-100 shrink-0",children:"✕"})]}),ne&&y.jsxs("div",{className:"px-3 py-3 shrink-0",style:{background:"rgba(239,68,68,.06)",borderBottom:"1px solid var(--border)"},children:[y.jsx("p",{className:"text-[12px] mb-2",style:{color:"var(--text-primary)"},children:ne.type==="delete"?`Permanently delete "${ne.label}"? This cannot be undone.`:ne.type==="archive"?`Archive "${ne.label}"? You can restore it later.`:"Revert to this version? A backup will be created."}),y.jsxs("div",{className:"flex gap-2",children:[y.jsx("button",{onClick:()=>{ne.type==="delete"?je(ne.target):ne.type==="archive"?pe(ne.target):W(ne.target)},className:"px-3 py-1 text-[12px] font-medium rounded-md",style:{background:ne.type==="delete"?"#ef4444":"var(--accent)",color:"#fff"},children:ne.type==="delete"?"Delete":ne.type==="archive"?"Archive":"Revert"}),y.jsx("button",{onClick:()=>ce(null),className:"px-3 py-1 text-[12px] font-medium rounded-md",style:{color:"var(--text-secondary)",background:"var(--bg-input)"},children:"Cancel"})]})]}),y.jsxs("div",{className:"flex-1 min-h-0 overflow-y-auto",children:[y.jsxs("div",{className:"px-3 py-3",style:{borderBottom:"1px solid var(--border)"},children:[y.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[y.jsx("span",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:"Branch"}),ue&&y.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"}),!ue&&ve&&y.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"})]}),y.jsxs("div",{className:"relative",ref:V,children:[y.jsxs("button",{onClick:()=>te(Je=>!Je),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:Q?"var(--accent-soft)":"var(--bg-input)",border:`1px solid ${Q?"var(--accent)":"var(--border)"}`,color:"var(--text-primary)"},children:[y.jsx(qOt,{size:12,style:{color:"var(--accent)"}}),y.jsx("span",{className:"flex-1 text-left truncate",children:xe}),y.jsx(Sd,{size:11,style:{color:"var(--text-muted)",transition:"transform 150ms",transform:Q?"rotate(180deg)":void 0}})]}),Q&&y.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:[Ie.length>0&&y.jsx("div",{className:"py-1",children:Ie.map(Je=>y.jsx(Zfe,{branch:Je,currentBranch:xe,onSwitch:qe},Je.name))}),tt.length>0&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"px-3 pt-2 pb-1",style:{borderTop:"1px solid var(--border)"},children:y.jsx("span",{className:"text-[10px] font-medium uppercase tracking-wider",style:{color:"var(--text-muted)"},children:"Your branches"})}),y.jsx("div",{className:"py-1",children:tt.map(Je=>y.jsx(Zfe,{branch:Je,currentBranch:xe,onSwitch:qe},Je.name))})]}),Te.length>0&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"px-3 pt-2 pb-1",style:{borderTop:"1px solid var(--border)"},children:y.jsx("span",{className:"text-[10px] font-medium uppercase tracking-wider",style:{color:"var(--text-muted)"},children:"Other branches"})}),y.jsx("div",{className:"py-1",children:Te.map(Je=>y.jsx(Zfe,{branch:Je,currentBranch:xe,onSwitch:qe},Je.name))})]}),et.length>0&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"px-3 pt-2 pb-1",style:{borderTop:"1px solid var(--border)"},children:y.jsx("span",{className:"text-[10px] font-medium uppercase tracking-wider",style:{color:"var(--text-muted)"},children:"Archived"})}),y.jsx("div",{className:"py-1",children:et.map(Je=>y.jsx(Zfe,{branch:Je,currentBranch:xe,onSwitch:qe},Je.name))})]})]})]})]}),ue&&y.jsx("div",{className:"px-3 py-3",style:{borderBottom:"1px solid var(--border)"},children:I?y.jsxs("form",{onSubmit:Je=>{Je.preventDefault(),ye()},className:"flex flex-col gap-2",children:[y.jsx("label",{className:"text-[11px] font-medium",style:{color:"var(--text-muted)"},children:"What are you working on?"}),y.jsx("input",{autoFocus:!0,value:z,onChange:Je=>X(Je.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:_}),y.jsxs("div",{className:"flex gap-2",children:[y.jsx("button",{type:"submit",disabled:!z.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"}),y.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"})]})]}):y.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)"},...sb("rgba(59,130,246,.2)","var(--accent-soft)"),children:[y.jsx(l5,{size:13}),"Start editing (create branch)"]})}),!ue&&!ve&&y.jsxs(y.Fragment,{children:[Ee.length>0&&y.jsxs("div",{className:"px-3 py-2.5",style:{borderBottom:"1px solid var(--border)"},children:[y.jsx("span",{className:"text-[11px] font-medium block mb-1.5",style:{color:"var(--text-muted)"},children:"Unsaved changes"}),y.jsxs("div",{className:"flex flex-col gap-0.5",children:[Ee.slice(0,8).map(Je=>y.jsx("span",{className:"text-[11px] font-mono truncate",style:{color:"var(--text-secondary)"},children:Je},Je)),Ee.length>8&&y.jsxs("span",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:["+",Ee.length-8," more"]})]})]}),y.jsxs("div",{className:"px-3 py-3 flex flex-col gap-2",style:{borderBottom:"1px solid var(--border)"},children:[Ee.length>0&&y.jsx("button",{onClick:Be,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)"},...sb("var(--bg-hover)","var(--bg-input)"),children:"Save progress"}),y.jsxs("button",{onClick:ke,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)"},...sb("#60a5fa","var(--accent)"),children:[y.jsx(Vfn,{size:12}),"Submit for review"]})]}),(s==null?void 0:s.main_ahead)&&y.jsxs("div",{className:"px-3 py-2.5",style:{borderBottom:"1px solid var(--border)"},children:[y.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[y.jsx(Sp,{size:12,style:{color:"#fbbf24"}}),y.jsxs("span",{className:"text-[11px]",style:{color:"#fbbf24"},children:["Main updated (",s.main_ahead_by," commit",s.main_ahead_by!==1?"s":""," ahead)"]})]}),y.jsxs("button",{onClick:le,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)"},...sb("var(--bg-hover)","var(--bg-input)"),children:[y.jsx(jfn,{size:12}),"Pull latest"]})]}),y.jsx("div",{className:"px-3 py-2.5",style:{borderBottom:"1px solid var(--border)"},children:y.jsxs("button",{onClick:()=>j(O==="history"?"main":"history"),className:"flex items-center gap-2 text-[12px] font-medium transition-colors",style:{color:O==="history"?"var(--accent)":"var(--text-secondary)"},onMouseEnter:Je=>Je.currentTarget.style.color="var(--accent)",onMouseLeave:Je=>Je.currentTarget.style.color=O==="history"?"var(--accent)":"var(--text-secondary)",children:[y.jsx(Hfn,{size:12}),O==="history"?"Hide version history":"Version history"]})}),O==="history"&&y.jsx("div",{className:"px-3 py-2",children:m.length===0?y.jsx("span",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"No commits yet on this branch."}):y.jsx("div",{className:"flex flex-col gap-1",children:m.map(Je=>y.jsxs("div",{className:"flex items-start gap-2 py-1.5 group",children:[y.jsxs("div",{className:"flex-1 min-w-0",children:[y.jsx("span",{className:"text-[11px] block truncate",style:{color:"var(--text-primary)"},children:Je.message}),y.jsxs("span",{className:"text-[10px] font-mono",style:{color:"var(--text-muted)"},children:[Je.short_sha," · ",Ye(Je.timestamp)]})]}),y.jsx("button",{onClick:()=>ce({type:"revert",target:Je.sha,label:Je.message}),className:"p-1 rounded opacity-0 group-hover:opacity-100 transition-opacity shrink-0",style:{color:"var(--text-muted)"},...z9("var(--bg-hover)","var(--accent)","transparent","var(--text-muted)"),title:"Revert to this version",children:y.jsx(Mhn,{size:12})})]},Je.sha))})}),y.jsxs("div",{className:"px-3 py-2.5 flex gap-2",style:{borderTop:"1px solid var(--border)"},children:[y.jsxs("button",{onClick:()=>ce({type:"archive",target:xe,label:xe.split("/").pop()??xe}),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)"},...z9("var(--bg-hover)","var(--text-secondary)","transparent","var(--text-muted)"),children:[y.jsx(kfn,{size:11}),"Archive"]}),y.jsxs("button",{onClick:()=>ce({type:"delete",target:xe,label:xe.split("/").pop()??xe}),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)"},...z9("rgba(239,68,68,.1)","#ef4444","transparent","var(--text-muted)"),children:[y.jsx(F9,{size:11}),"Delete"]})]})]}),!ue&&ve&&y.jsxs("div",{className:"px-3 py-4 text-center",children:[y.jsx("p",{className:"text-[12px] mb-1",style:{color:"var(--text-secondary)"},children:"Viewing someone else's branch."}),y.jsx("p",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:"Switch to your own branch to make changes."})]})]})]})}const q4t=sb("var(--bg-hover)");function Zfe({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 y.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||q4t.onMouseEnter(p)},onMouseLeave:p=>{h||q4t.onMouseLeave(p)},children:[y.jsx(qOt,{size:11,style:{color:h?"var(--accent)":"var(--text-muted)",flexShrink:0}}),y.jsx("span",{className:"flex-1 truncate",children:m}),l.commit_count>0&&y.jsx("span",{className:"text-[10px] shrink-0",style:{color:"var(--text-muted)"},children:l.commit_count})]})}function Mp(l){return l.data}function a5n({onClose:l,onSelectNode:s}){const[u,h]=re.useState(""),[g,m]=re.useState(0),p=re.useRef(null),O=re.useRef(null),{setCenter:j}=tX(),C=Fan(),N=re.useMemo(()=>{const I=C;if(!u.trim())return I.map(z=>{const X=Mp(z),Q=s2[X.nodeType];return{id:z.id,label:X.label,nodeType:X.nodeType,meta:Q,x:z.position.x,y:z.position.y}});const q=u.toLowerCase();return I.map(z=>{const X=Mp(z),Q=s2[X.nodeType],te=X.label||"",V=(Q==null?void 0:Q.name)||"",ne=(Q==null?void 0:Q.label)||"";return te.toLowerCase().includes(q)||V.toLowerCase().includes(q)||ne.toLowerCase().includes(q)?{id:z.id,label:te,nodeType:X.nodeType,meta:Q,x:z.position.x,y:z.position.y}:null}).filter(Boolean)},[u,C]);re.useEffect(()=>{m(0)},[N.length]),re.useEffect(()=>{requestAnimationFrame(()=>{var I;return(I=p.current)==null?void 0:I.focus()})},[]),re.useEffect(()=>{if(!O.current)return;const I=O.current.children[g];I==null||I.scrollIntoView({block:"nearest"})},[g]);const _=re.useCallback(I=>{const q=N[I];q&&(j(q.x+100,q.y+25,{zoom:.8,duration:300}),s(q.id),l())},[N,j,s,l]),P=re.useCallback(I=>{I.key==="ArrowDown"?(I.preventDefault(),m(q=>Math.min(q+1,N.length-1))):I.key==="ArrowUp"?(I.preventDefault(),m(q=>Math.max(q-1,0))):I.key==="Enter"?(I.preventDefault(),_(g)):I.key==="Escape"&&(I.preventDefault(),l())},[N.length,g,_,l]);return y.jsxs("div",{className:"fixed inset-0 z-[100] flex justify-center pt-[3vh]",onClick:I=>{I.target===I.currentTarget&&l()},children:[y.jsx("div",{className:"absolute inset-0 bg-black/40"}),y.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:[y.jsxs("div",{className:"flex items-center gap-2 px-4 py-3",style:{borderBottom:"1px solid var(--border)"},children:[y.jsx(dR,{size:16,style:{color:"var(--text-muted)"},className:"shrink-0"}),y.jsx("input",{ref:p,type:"text",value:u,onChange:I=>h(I.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)"}}),y.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"})]}),y.jsx("div",{ref:O,role:"listbox","aria-label":"Node results",className:"max-h-[85vh] overflow-y-auto py-1",children:N.length===0?y.jsx("div",{className:"px-4 py-6 text-center text-[13px]",style:{color:"var(--text-muted)"},children:"No matching nodes"}):N.map((I,q)=>{var Q,te,V,ne;const z=(Q=I.meta)==null?void 0:Q.icon,X=((te=I.meta)==null?void 0:te.color)||"var(--text-secondary)";return y.jsxs("button",{role:"option","aria-selected":q===g,"aria-label":`${((V=I.meta)==null?void 0:V.name)||"Node"}: ${I.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:[z&&y.jsx(z,{size:14,style:{color:X},className:"shrink-0"}),y.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.08em] shrink-0 min-w-[60px]",style:{color:X},children:((ne=I.meta)==null?void 0:ne.label)||"NODE"}),y.jsx("span",{className:"text-[13px] truncate",style:{color:"var(--text-primary)"},children:I.label})]},I.id)})}),y.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:[y.jsxs("span",{children:[y.jsx("kbd",{className:"font-mono",children:"↑↓"})," navigate"]}),y.jsxs("span",{children:[y.jsx("kbd",{className:"font-mono",children:"↵"})," jump to node"]}),y.jsxs("span",{children:[y.jsx("kbd",{className:"font-mono",children:"esc"})," close"]})]})]})]})}function f5n(l=[],s=[]){const[u,h,g]=qan(l),[m,p,O]=Han(s),j=re.useRef([]),C=re.useRef([]),N=re.useRef(u),_=re.useRef(m);re.useEffect(()=>{N.current=u,_.current=m},[u,m]);const[P,I]=re.useState(!1),[q,z]=re.useState(!1),X=re.useCallback(()=>{j.current=[...j.current.slice(-99),{nodes:N.current.map(ye=>({...ye,data:{...ye.data}})),edges:_.current.map(ye=>({...ye}))}],C.current=[],I(!0),z(!1)},[]),Q=re.useRef(!1),te=re.useCallback(ye=>{const qe=ye.some(le=>le.type==="add"||le.type==="remove"||le.type==="replace"),Be=ye.some(le=>le.type==="position"&&le.dragging===!0),ke=ye.some(le=>le.type==="position"&&le.dragging===!1);qe&&X(),Be&&!Q.current&&(Q.current=!0,X()),ke&&(Q.current=!1),g(ye)},[g,X]),V=re.useCallback(ye=>{ye.some(Be=>Be.type==="add"||Be.type==="remove"||Be.type==="replace")&&X(),O(ye)},[O,X]),ne=re.useCallback(ye=>{X(),h(ye)},[h,X]),ce=re.useCallback(ye=>{X(),p(ye)},[p,X]),se=re.useCallback(()=>{const ye=j.current.pop();ye&&(C.current.push({nodes:N.current,edges:_.current}),h(ye.nodes),p(ye.edges),I(j.current.length>0),z(!0))},[h,p]),me=re.useCallback(()=>{const ye=C.current.pop();ye&&(j.current.push({nodes:N.current,edges:_.current}),h(ye.nodes),p(ye.edges),I(!0),z(C.current.length>0))},[h,p]);return{nodes:u,edges:m,setNodes:ne,setEdges:ce,setNodesRaw:h,setEdgesRaw:p,onNodesChange:te,onEdgesChange:V,undo:se,redo:me,canUndo:P,canRedo:q,pushSnapshot:X}}function ehe(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 aMe={exports:{}},H4t;function h5n(){return H4t||(H4t=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 ehe=="function"&&ehe;if(!N&&_)return _(C,!0);if(O)return O(C,!0);var P=new Error("Cannot find module '"+C+"'");throw P.code="MODULE_NOT_FOUND",P}var I=g[C]={exports:{}};h[C][0].call(I.exports,function(q){var z=h[C][1][q];return p(z||q)},I,I.exports,u,h,g,m)}return g[C].exports}for(var O=typeof ehe=="function"&&ehe,j=0;j<m.length;j++)p(m[j]);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(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},m(P)}function p(P,I){if(!(P instanceof I))throw new TypeError("Cannot call a class as a function")}function O(P,I){for(var q=0;q<I.length;q++){var z=I[q];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(P,C(z.key),z)}}function j(P,I,q){return I&&O(P.prototype,I),Object.defineProperty(P,"prototype",{writable:!1}),P}function C(P){var I=N(P,"string");return m(I)=="symbol"?I:I+""}function N(P,I){if(m(P)!="object"||!P)return P;var q=P[Symbol.toPrimitive];if(q!==void 0){var z=q.call(P,I);if(m(z)!="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(P)}g.default=(function(){function P(){var I=this,q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},z=q.defaultLayoutOptions,X=z===void 0?{}:z,Q=q.algorithms,te=Q===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking","vertiflex"]:Q,V=q.workerFactory,ne=q.workerUrl;if(p(this,P),this.defaultLayoutOptions=X,this.initialized=!1,typeof ne>"u"&&typeof V>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var ce=V;typeof ne<"u"&&typeof V>"u"&&(ce=function(ye){return new Worker(ye)});var se=ce(ne);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:te}).then(function(me){return I.initialized=!0}).catch(console.err)}return j(P,[{key:"layout",value:function(q){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=z.layoutOptions,Q=X===void 0?this.defaultLayoutOptions:X,te=z.logging,V=te===void 0?!1:te,ne=z.measureExecutionTime,ce=ne===void 0?!1:ne;return q?this.worker.postMessage({cmd:"layout",graph:q,layoutOptions:Q,options:{logging:V,measureExecutionTime:ce}}):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(I){var q=this;if(p(this,P),I===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=I,this.worker.onmessage=function(z){setTimeout(function(){q.receive(q,z)},0)}}return j(P,[{key:"postMessage",value:function(q){var z=this.id||0;this.id=z+1,q.id=z;var X=this;return new Promise(function(Q,te){X.resolvers[z]=function(V,ne){V?(X.convertGwtStyleError(V),te(V)):Q(ne)},X.worker.postMessage(q)})}},{key:"receive",value:function(q,z){var X=z.data,Q=q.resolvers[X.id];Q&&(delete q.resolvers[X.id],X.error?Q(X.error):Q(null,X.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(q){if(q){var z=q.__java$exception;z&&(z.cause&&z.cause.backingJsObject&&(q.cause=z.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 O;function j(){}function C(){}function N(){}function _(){}function P(){}function I(){}function q(){}function z(){}function X(){}function Q(){}function te(){}function V(){}function ne(){}function ce(){}function se(){}function me(){}function ye(){}function qe(){}function Be(){}function ke(){}function le(){}function W(){}function pe(){}function je(){}function ue(){}function ve(){}function xe(){}function Ee(){}function tt(){}function Te(){}function et(){}function Ie(){}function Ye(){}function Je(){}function _t(){}function nn(){}function an(){}function Jn(){}function rr(){}function ei(){}function Ei(){}function xi(){}function Kr(){}function mo(){}function hs(){}function Fo(){}function Bn(){}function zs(){}function Ji(){}function ds(){}function qo(){}function yo(){}function sa(){}function _p(){}function Wh(){}function d0(){}function Dp(){}function EO(){}function c2(){}function qc(){}function cb(){}function lb(){}function qf(){}function lg(){}function cf(){}function h5(){}function MO(){}function AO(){}function g0(){}function l2(){}function u2(){}function ug(){}function a2(){}function ub(){}function NO(){}function d5(){}function f2(){}function ab(){}function _O(){}function fb(){}function qx(){}function g5(){}function hb(){}function Hx(){}function p5(){}function Gx(){}function ag(){}function _u(){}function lf(){}function p0(){}function In(){}function tc(){}function tu(){}function Ia(){}function db(){}function DO(){}function Lp(){}function h2(){}function d2(){}function g2(){}function oa(){}function K9(){}function Y9(){}function gb(){}function p2(){}function YM(){}function LO(){}function Z9(){}function e8(){}function Qx(){}function m5(){}function m0(){}function Cd(){}function t8(){}function ZM(){}function m2(){}function n8(){}function Ux(){}function eA(){}function Ed(){}function Jx(){}function i8(){}function PO(){}function pb(){}function bR(){}function wR(){}function b5(){}function gX(){}function vR(){}function xR(){}function tA(){}function pX(){}function mX(){}function r8(){}function mb(){}function nA(){}function iA(){}function w5(){}function v5(){}function yR(){}function rA(){}function kR(){}function IO(){}function bb(){}function sA(){}function RO(){}function b2(){}function oA(){}function s8(){}function OR(){}function o8(){}function c8(){}function jR(){}function Md(){}function Wx(){}function l8(){}function $O(){}function bX(){}function cA(){}function lA(){}function BO(){}function u8(){}function SR(){}function wX(){}function vX(){}function xX(){}function uA(){}function yX(){}function kX(){}function OX(){}function jX(){}function SX(){}function TR(){}function TX(){}function CX(){}function EX(){}function MX(){}function aA(){}function AX(){}function NX(){}function _X(){}function CR(){}function DX(){}function LX(){}function PX(){}function IX(){}function RX(){}function $X(){}function BX(){}function zX(){}function FX(){}function fA(){}function zO(){}function qX(){}function ER(){}function MR(){}function AR(){}function NR(){}function _R(){}function x5(){}function HX(){}function GX(){}function QX(){}function DR(){}function LR(){}function FO(){}function qO(){}function UX(){}function a8(){}function PR(){}function hA(){}function dA(){}function gA(){}function IR(){}function RR(){}function $R(){}function JX(){}function WX(){}function VX(){}function XX(){}function KX(){}function f1(){}function HO(){}function BR(){}function zR(){}function FR(){}function qR(){}function pA(){}function YX(){}function y5(){}function mA(){}function GO(){}function bA(){}function HR(){}function Vx(){}function k5(){}function wA(){}function GR(){}function Xx(){}function QR(){}function UR(){}function JR(){}function ZX(){}function eK(){}function tK(){}function WR(){}function VR(){}function vA(){}function b0(){}function f8(){}function fg(){}function O5(){}function xA(){}function h8(){}function d8(){}function yA(){}function Kx(){}function XR(){}function g8(){}function j5(){}function nK(){}function h1(){}function kA(){}function wb(){}function KR(){}function p8(){}function Yx(){}function OA(){}function YR(){}function jA(){}function ZR(){}function hg(){}function S5(){}function T5(){}function m8(){}function QO(){}function dg(){}function gg(){}function w2(){}function Pp(){}function Ip(){}function vb(){}function e$(){}function SA(){}function TA(){}function t$(){}function uf(){}function Tl(){}function ko(){}function v2(){}function pg(){}function CA(){}function x2(){}function n$(){}function i$(){}function C5(){}function Zx(){}function E5(){}function y2(){}function EA(){}function ey(){}function Rp(){}function k2(){}function xb(){}function MA(){}function AA(){}function M5(){}function UO(){}function O2(){}function Hf(){}function JO(){}function NA(){}function iK(){}function rK(){}function WO(){}function ca(){}function _A(){}function VO(){}function XO(){}function DA(){}function A5(){}function N5(){}function sK(){}function r$(){}function oK(){}function s$(){}function ty(){}function LA(){}function b8(){}function o$(){}function _5(){}function PA(){}function w8(){}function v8(){}function IA(){}function c$(){}function ny(){}function iy(){}function l$(){}function u$(){}function D5(){}function KO(){}function x8(){}function YO(){}function y8(){}function a$(){}function ry(){}function f$(){}function j2(){}function RA(){}function $A(){}function S2(){}function T2(){}function ZO(){}function BA(){}function zA(){}function e6(){}function t6(){}function h$(){}function d$(){}function L5(){}function k8(){}function g$(){}function FA(){}function qA(){}function d1(){}function mg(){}function C2(){}function HA(){}function p$(){}function E2(){}function g1(){}function Du(){}function O8(){}function yb(){}function Ts(){}function Hc(){}function la(){}function j8(){}function P5(){}function sy(){}function S8(){}function n6(){}function I5(){}function cK(){}function gu(){}function GA(){}function QA(){}function m$(){}function b$(){}function lK(){}function UA(){}function JA(){}function WA(){}function Vh(){}function Lu(){}function T8(){}function i6(){}function C8(){}function VA(){}function kb(){}function E8(){}function XA(){}function w$(){}function v$(){}function x$(){}function y$(){}function k$(){}function O$(){}function j$(){}function KA(){}function S$(){}function uK(){}function T$(){}function C$(){}function E$(){}function YA(){}function M$(){}function A$(){}function N$(){}function _$(){}function D$(){}function aK(){}function L$(){}function R5(){}function P$(){}function M8(){}function A8(){}function I$(){}function ZA(){}function fK(){}function R$(){}function $$(){}function B$(){}function z$(){}function F$(){}function eN(){}function q$(){}function H$(){}function tN(){}function G$(){}function Q$(){}function nN(){}function r6(){}function U$(){}function N8(){}function iN(){}function J$(){}function W$(){}function hK(){}function dK(){}function V$(){}function s6(){}function rN(){}function _8(){}function X$(){}function K$(){}function o6(){}function Y$(){}function sN(){}function gK(){}function oN(){}function D8(){}function Z$(){}function eB(){}function oy(){}function tB(){}function nB(){}function iB(){}function L8(){}function rB(){}function cN(){}function sB(){}function p1(){}function pK(){}function $p(){}function Pu(){}function Gf(){}function oB(){}function cB(){}function lB(){}function uB(){}function c6(){}function aB(){}function P8(){}function fB(){}function mK(){}function I8(){}function lN(){}function hB(){}function dB(){}function gB(){}function uN(){}function aN(){}function fN(){}function pB(){}function hN(){}function rt(){}function dN(){}function mB(){}function gN(){}function bB(){}function Ob(){}function pN(){}function bK(){}function wB(){}function jb(){}function mN(){}function vB(){}function $5(){}function l6(){}function Cl(){}function bN(){}function wK(){}function xB(){}function u6(){}function M2(){}function R8(){}function a6(){}function A2(){}function Bp(){}function wN(){}function vN(){}function yB(){}function B5(){}function xN(){}function $8(){}function kB(){}function bg(){}function ua(){}function yN(){}function OB(){}function af(){}function B8(){}function jB(){}function kN(){}function ql(){}function gh(){}function zp(){}function SB(){}function TB(){}function CB(){}function vK(){}function ON(){}function Ad(){}function w0(){}function EB(){}function Nd(){}function MB(){}function Sb(){}function cy(){}function Tb(){}function jN(){}function SN(){}function Qf(){}function z8(){}function z5(){}function f6(){}function h6(){}function F5(){}function AB(){}function NB(){}function d6(){}function _B(){}function F8(){}function DB(){}function xK(){}function yK(){}function cc(){}function nl(){}function ro(){}function bo(){}function Cc(){}function m1(){}function N2(){}function q5(){}function TN(){}function Cb(){}function pu(){}function _2(){}function ly(){}function CN(){}function b1(){}function H5(){}function g6(){}function _d(){}function EN(){}function q8(){}function LB(){}function H8(){}function G8(){}function D2(){}function Ra(){}function L2(){}function G5(){}function Eb(){}function MN(){}function AN(){}function PB(){}function p6(){}function NN(){}function w1(){}function IB(){}function Dd(){}function RB(){}function $B(){}function kK(){}function P2(){}function Q8(){}function _N(){}function Q5(){}function BB(){}function zB(){}function FB(){}function qB(){}function U8(){}function DN(){}function OK(){}function jK(){}function SK(){}function HB(){}function GB(){}function U5(){}function J8(){}function QB(){}function UB(){}function JB(){}function WB(){}function VB(){}function XB(){}function W8(){}function KB(){}function YB(){}function Ec(){}function LN(){}function TK(){}function ZB(){}function CK(){}function EK(){}function MK(){}function V8(){}function J5(){}function PN(){}function X8(){}function IN(){}function I2(){}function Fp(){}function m6(){}function AK(){}function ez(){}function tz(){}function nz(){}function iz(){}function NK(){}function RN(){}function rz(){}function sz(){}function oz(){}function $N(){}function BN(){}function zN(){pT()}function _K(){Pve()}function b6(){O_()}function DK(){Tf()}function cz(){Q2e()}function so(){tL()}function FN(){X_()}function K8(){k_()}function qN(){WRe()}function lz(){J4()}function HN(){EJe()}function w6(){Sj()}function Y8(){H0()}function LK(){Ube()}function uz(){ZVe()}function PK(){eXe()}function IK(){lF()}function az(){zye()}function fz(){bQe()}function Gc(){uWe()}function GN(){Qbe()}function Uf(){pQe()}function RK(){gQe()}function hz(){mQe()}function $K(){vQe()}function QN(){We()}function UN(){tXe()}function Z8(){sUe()}function dz(){nXe()}function gz(){xQe()}function JN(){Q4()}function WN(){CXe()}function BK(){Kxe()}function pz(){G0()}function zK(){wQe()}function mz(){oet()}function FK(){Rrt()}function qK(){hxe()}function R2(){Wo()}function bz(){Eh()}function wz(){lye()}function VN(){dYe()}function HK(){D1()}function GK(){oL()}function vz(){Lie()}function XN(){Gne()}function KN(){a2e()}function QK(){ik()}function wg(){mH()}function YN(){$G()}function ZN(){Pn()}function xz(){KH()}function yz(){y2e()}function W5(){sQ()}function v1(){qte()}function aa(){XFe()}function eT(){fye()}function qp(e){Ft(e)}function UK(e){this.a=e}function tT(e){this.a=e}function V5(e){this.a=e}function kz(e){this.a=e}function JK(e){this.a=e}function Oz(e){this.a=e}function jz(e){this.a=e}function WK(e){this.a=e}function e_(e){this.a=e}function VK(e){this.a=e}function XK(e){this.a=e}function Sz(e){this.a=e}function X5(e){this.a=e}function v6(e){this.c=e}function Tz(e){this.a=e}function t_(e){this.a=e}function K5(e){this.a=e}function x6(e){this.a=e}function Cz(e){this.a=e}function Y5(e){this.a=e}function n_(e){this.a=e}function i_(e){this.a=e}function Z5(e){this.a=e}function Ez(e){this.a=e}function nT(e){this.a=e}function KK(e){this.a=e}function Mz(e){this.a=e}function YK(e){this.a=e}function r_(e){this.a=e}function ZK(e){this.a=e}function iT(e){this.a=e}function rT(e){this.a=e}function sT(e){this.a=e}function eY(e){this.a=e}function y6(e){this.a=e}function tY(e){this.a=e}function Az(e){this.a=e}function Nz(e){this.a=e}function _z(e){this.a=e}function s_(e){this.a=e}function oT(e){this.a=e}function k6(e){this.a=e}function e4(e){this.a=e}function O6(e){this.b=e}function vg(){this.a=[]}function nY(e,t){e.a=t}function Dz(e,t){e.a=t}function Lz(e,t){e.b=t}function o_(e,t){e.c=t}function Pz(e,t){e.c=t}function iY(e,t){e.d=t}function Iz(e,t){e.d=t}function mu(e,t){e.k=t}function Mb(e,t){e.j=t}function uy(e,t){e.c=t}function t4(e,t){e.c=t}function n4(e,t){e.a=t}function ay(e,t){e.a=t}function Vde(e,t){e.f=t}function rY(e,t){e.a=t}function cT(e,t){e.b=t}function c_(e,t){e.d=t}function j6(e,t){e.i=t}function S6(e,t){e.o=t}function sY(e,t){e.r=t}function Xde(e,t){e.a=t}function l_(e,t){e.b=t}function lT(e,t){e.e=t}function oY(e,t){e.f=t}function fy(e,t){e.g=t}function cY(e,t){e.e=t}function Rz(e,t){e.f=t}function u_(e,t){e.f=t}function i4(e,t){e.b=t}function a_(e,t){e.b=t}function r4(e,t){e.a=t}function w(e,t){e.n=t}function x(e,t){e.a=t}function S(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 de(e,t){e.a=t}function De(e,t){e.d=t}function mt(e,t){e.d=t}function qt(e,t){e.e=t}function mn(e,t){e.e=t}function On(e,t){e.g=t}function en(e,t){e.f=t}function cn(e,t){e.j=t}function Zi(e,t){e.a=t}function qr(e,t){e.a=t}function il(e,t){e.b=t}function Nt(e){e.b=e.a}function kt(e){e.c=e.d.d}function Bt(e){this.a=e}function hn(e){this.a=e}function xr(e){this.a=e}function Ho(e){this.a=e}function lr(e){this.a=e}function gs(e){this.a=e}function Fs(e){this.a=e}function Go(e){this.a=e}function Ab(e){this.a=e}function Hp(e){this.a=e}function lY(e){this.a=e}function x1(e){this.a=e}function $2(e){this.a=e}function KNe(e){this.a=e}function YNe(e){this.a=e}function Kde(e){this.a=e}function ZNe(e){this.a=e}function Vn(e){this.a=e}function uT(e){this.d=e}function uY(e){this.b=e}function T6(e){this.b=e}function hy(e){this.b=e}function aY(e){this.c=e}function J(e){this.c=e}function e_e(e){this.c=e}function t_e(e){this.a=e}function Yde(e){this.a=e}function Zde(e){this.a=e}function e1e(e){this.a=e}function t1e(e){this.a=e}function n1e(e){this.a=e}function i1e(e){this.a=e}function C6(e){this.a=e}function n_e(e){this.a=e}function i_e(e){this.a=e}function E6(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 M6(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 m_e(e){this.a=e}function $z(e){this.a=e}function b_e(e){this.a=e}function w_e(e){this.a=e}function r1e(e){this.a=e}function v_e(e){this.a=e}function x_e(e){this.a=e}function y_e(e){this.a=e}function s1e(e){this.a=e}function o1e(e){this.a=e}function c1e(e){this.a=e}function aT(e){this.a=e}function Bz(e){this.e=e}function A6(e){this.a=e}function k_e(e){this.a=e}function s4(e){this.a=e}function l1e(e){this.a=e}function O_e(e){this.a=e}function j_e(e){this.a=e}function S_e(e){this.a=e}function T_e(e){this.a=e}function C_e(e){this.a=e}function E_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 u1e(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 G_e(e){this.a=e}function Q_e(e){this.a=e}function U_e(e){this.a=e}function J_e(e){this.a=e}function W_e(e){this.a=e}function V_e(e){this.a=e}function X_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.a=e}function nDe(e){this.a=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 mDe(e){this.a=e}function bDe(e){this.a=e}function wDe(e){this.a=e}function vDe(e){this.a=e}function xDe(e){this.a=e}function yDe(e){this.a=e}function kDe(e){this.c=e}function ODe(e){this.b=e}function jDe(e){this.a=e}function SDe(e){this.a=e}function TDe(e){this.a=e}function CDe(e){this.a=e}function EDe(e){this.a=e}function MDe(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 GDe(e){this.a=e}function QDe(e){this.a=e}function UDe(e){this.a=e}function JDe(e){this.a=e}function WDe(e){this.a=e}function VDe(e){this.a=e}function XDe(e){this.a=e}function y1(e){this.a=e}function dy(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 nLe(e){this.a=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 a1e(e){this.a=e}function pLe(e){this.a=e}function mLe(e){this.a=e}function bLe(e){this.a=e}function wLe(e){this.a=e}function vLe(e){this.a=e}function xLe(e){this.a=e}function yLe(e){this.a=e}function kLe(e){this.a=e}function zz(e){this.a=e}function OLe(e){this.f=e}function jLe(e){this.a=e}function SLe(e){this.a=e}function TLe(e){this.a=e}function CLe(e){this.a=e}function ELe(e){this.a=e}function MLe(e){this.a=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 $Le(e){this.a=e}function BLe(e){this.a=e}function zLe(e){this.a=e}function FLe(e){this.a=e}function qLe(e){this.a=e}function HLe(e){this.a=e}function GLe(e){this.a=e}function QLe(e){this.a=e}function ULe(e){this.a=e}function JLe(e){this.a=e}function WLe(e){this.a=e}function VLe(e){this.a=e}function XLe(e){this.a=e}function fY(e){this.a=e}function f1e(e){this.a=e}function mi(e){this.b=e}function KLe(e){this.a=e}function YLe(e){this.a=e}function ZLe(e){this.a=e}function ePe(e){this.a=e}function tPe(e){this.a=e}function nPe(e){this.a=e}function iPe(e){this.a=e}function rPe(e){this.a=e}function f_(e){this.a=e}function sPe(e){this.a=e}function oPe(e){this.b=e}function h1e(e){this.c=e}function Fz(e){this.e=e}function cPe(e){this.a=e}function qz(e){this.a=e}function Hz(e){this.a=e}function hY(e){this.a=e}function lPe(e){this.d=e}function uPe(e){this.a=e}function d1e(e){this.a=e}function g1e(e){this.a=e}function Nb(e){this.e=e}function A9t(){this.a=0}function Qe(){EZ(this)}function xn(){lc(this)}function dY(){VHe(this)}function aPe(){}function _b(){this.c=wCe}function fPe(e,t){e.b+=t}function N9t(e,t){t.Wb(e)}function _9t(e){return e.a}function D9t(e){return e.a}function L9t(e){return e.a}function P9t(e){return e.a}function I9t(e){return e.a}function K(e){return e.e}function R9t(){return null}function $9t(){return null}function B9t(e){throw K(e)}function o4(e){this.a=$n(e)}function hPe(){this.a=this}function Gp(){Lze.call(this)}function z9t(e){e.b.Mf(e.e)}function dPe(e){e.b=new AY}function fT(e,t){e.b=t-e.b}function hT(e,t){e.a=t-e.a}function gPe(e,t){t.gd(e.a)}function F9t(e,t){$r(t,e)}function Rt(e,t){e.push(t)}function pPe(e,t){e.sort(t)}function q9t(e,t,n){e.Wd(n,t)}function h_(e,t){e.e=t,t.b=e}function H9t(){J1e(),Pnn()}function mPe(e){cj(),sce.je(e)}function p1e(){Lze.call(this)}function m1e(){Gp.call(this)}function gY(){Gp.call(this)}function bPe(){Gp.call(this)}function d_(){Gp.call(this)}function El(){Gp.call(this)}function c4(){Gp.call(this)}function zn(){Gp.call(this)}function fa(){Gp.call(this)}function wPe(){Gp.call(this)}function Eo(){Gp.call(this)}function vPe(){Gp.call(this)}function Gz(){this.Bb|=256}function xPe(){this.b=new ABe}function b1e(){b1e=W,new xn}function yPe(){m1e.call(this)}function B2(e,t){e.length=t}function Qz(e,t){Ue(e.a,t)}function G9t(e,t){Rve(e.c,t)}function Q9t(e,t){Cr(e.b,t)}function U9t(e,t){OG(e.a,t)}function J9t(e,t){mne(e.a,t)}function N6(e,t){yi(e.e,t)}function l4(e){qG(e.c,e.b)}function W9t(e,t){e.kc().Nb(t)}function w1e(e){this.a=bzt(e)}function Tr(){this.a=new xn}function kPe(){this.a=new xn}function Uz(){this.a=new Qe}function pY(){this.a=new Qe}function v1e(){this.a=new Qe}function $a(){this.a=new cb}function Qp(){this.a=new TJe}function mY(){this.a=new FRe}function x1e(){this.a=new cQe}function y1e(){this.a=new OFe}function k1e(){this.a=new qx}function OPe(){this.a=new RQe}function jPe(){this.a=new Qe}function SPe(){this.a=new Qe}function TPe(){this.a=new Qe}function O1e(){this.a=new Qe}function CPe(){this.d=new Qe}function EPe(){this.a=new Tr}function MPe(){this.a=new xn}function APe(){this.b=new xn}function NPe(){this.b=new Qe}function j1e(){this.e=new Qe}function _Pe(){this.d=new Qe}function DPe(){this.a=new Y8}function LPe(){RGe.call(this)}function PPe(){RGe.call(this)}function IPe(){M1e.call(this)}function RPe(){M1e.call(this)}function $Pe(){M1e.call(this)}function BPe(){Qe.call(this)}function zPe(){O1e.call(this)}function Jz(){Uz.call(this)}function FPe(){rq.call(this)}function dT(){aPe.call(this)}function bY(){dT.call(this)}function u4(){aPe.call(this)}function S1e(){u4.call(this)}function nu(){_i.call(this)}function qPe(){A1e.call(this)}function gT(){M2.call(this)}function T1e(){M2.call(this)}function HPe(){iIe.call(this)}function GPe(){iIe.call(this)}function QPe(){xn.call(this)}function UPe(){xn.call(this)}function JPe(){xn.call(this)}function wY(){VVe.call(this)}function WPe(){Tr.call(this)}function VPe(){Gz.call(this)}function vY(){d0e.call(this)}function C1e(){xn.call(this)}function xY(){d0e.call(this)}function yY(){xn.call(this)}function XPe(){xn.call(this)}function E1e(){B8.call(this)}function KPe(){E1e.call(this)}function YPe(){B8.call(this)}function ZPe(){oz.call(this)}function M1e(){this.a=new Tr}function eIe(){this.a=new xn}function A1e(){this.a=new xn}function a4(){this.a=new _i}function tIe(){this.a=new Qe}function nIe(){this.j=new Qe}function iIe(){this.a=new ua}function N1e(){this.a=new z$}function rIe(){this.a=new eRe}function pT(){pT=W,Koe=new C}function kY(){kY=W,Yoe=new oIe}function OY(){OY=W,Zoe=new sIe}function sIe(){Z5.call(this,"")}function oIe(){Z5.call(this,"")}function cIe(e){yVe.call(this,e)}function lIe(e){yVe.call(this,e)}function _1e(e){Oz.call(this,e)}function D1e(e){_Re.call(this,e)}function V9t(e){_Re.call(this,e)}function X9t(e){D1e.call(this,e)}function K9t(e){D1e.call(this,e)}function Y9t(e){D1e.call(this,e)}function uIe(e){ote.call(this,e)}function aIe(e){ote.call(this,e)}function fIe(e){gze.call(this,e)}function hIe(e){Z1e.call(this,e)}function mT(e){rF.call(this,e)}function L1e(e){rF.call(this,e)}function dIe(e){rF.call(this,e)}function Mo(e){uHe.call(this,e)}function gIe(e){Mo.call(this,e)}function f4(){e4.call(this,{})}function jY(e){H6(),this.a=e}function pIe(e){e.b=null,e.c=0}function Z9t(e,t){e.e=t,Pit(e,t)}function e8t(e,t){e.a=t,AUt(e)}function SY(e,t,n){e.a[t.g]=n}function t8t(e,t,n){XHt(n,e,t)}function n8t(e,t){GCt(t.i,e.n)}function mIe(e,t){cBt(e).Ad(t)}function i8t(e,t){return e*e/t}function bIe(e,t){return e.g-t.g}function r8t(e,t){e.a.ec().Kc(t)}function s8t(e){return new k6(e)}function o8t(e){return new iv(e)}function wIe(){wIe=W,Dke=new j}function P1e(){P1e=W,Lke=new ce}function Wz(){Wz=W,QC=new ye}function Vz(){Vz=W,tce=new dze}function vIe(){vIe=W,Kft=new Be}function Xz(e){awe(),this.a=e}function xIe(e){VFe(),this.a=e}function xg(e){uee(),this.f=e}function TY(e){uee(),this.f=e}function Kz(e){Mo.call(this,e)}function Qc(e){Mo.call(this,e)}function yIe(e){Mo.call(this,e)}function CY(e){uHe.call(this,e)}function _6(e){Mo.call(this,e)}function Ht(e){Mo.call(this,e)}function oo(e){Mo.call(this,e)}function kIe(e){Mo.call(this,e)}function h4(e){Mo.call(this,e)}function yg(e){Mo.call(this,e)}function Qo(e){Ft(e),this.a=e}function bT(e){Qpe(e,e.length)}function I1e(e){return pm(e),e}function z2(e){return!!e&&e.b}function c8t(e){return!!e&&e.k}function l8t(e){return!!e&&e.j}function wT(e){return e.b==e.c}function it(e){return Ft(e),e}function ge(e){return Ft(e),e}function g_(e){return Ft(e),e}function R1e(e){return Ft(e),e}function u8t(e){return Ft(e),e}function Xh(e){Mo.call(this,e)}function d4(e){Mo.call(this,e)}function Kh(e){Mo.call(this,e)}function Un(e){Mo.call(this,e)}function EY(e){Mo.call(this,e)}function MY(e){y0e.call(this,e,0)}function AY(){Nme.call(this,12,3)}function NY(){this.a=qn($n(Yc))}function OIe(){throw K(new zn)}function $1e(){throw K(new zn)}function jIe(){throw K(new zn)}function a8t(){throw K(new zn)}function f8t(){throw K(new zn)}function h8t(){throw K(new zn)}function Yz(){Yz=W,cj()}function kg(){gs.call(this,"")}function vT(){gs.call(this,"")}function v0(){gs.call(this,"")}function g4(){gs.call(this,"")}function B1e(e){Qc.call(this,e)}function z1e(e){Qc.call(this,e)}function Yh(e){Ht.call(this,e)}function D6(e){T6.call(this,e)}function SIe(e){D6.call(this,e)}function _Y(e){ZF.call(this,e)}function d8t(e,t,n){e.c.Cf(t,n)}function g8t(e,t,n){t.Ad(e.a[n])}function p8t(e,t,n){t.Ne(e.a[n])}function m8t(e,t){return e.a-t.a}function b8t(e,t){return e.a-t.a}function w8t(e,t){return e.a-t.a}function Zz(e,t){return yte(e,t)}function Z(e,t){return hQe(e,t)}function v8t(e,t){return t in e.a}function TIe(e){return e.a?e.b:0}function x8t(e){return e.a?e.b:0}function CIe(e,t){return e.f=t,e}function y8t(e,t){return e.b=t,e}function EIe(e,t){return e.c=t,e}function k8t(e,t){return e.g=t,e}function F1e(e,t){return e.a=t,e}function q1e(e,t){return e.f=t,e}function O8t(e,t){return e.k=t,e}function H1e(e,t){return e.e=t,e}function j8t(e,t){return e.e=t,e}function G1e(e,t){return e.a=t,e}function S8t(e,t){return e.f=t,e}function T8t(e,t){e.b=new Es(t)}function MIe(e,t){e._d(t),t.$d(e)}function C8t(e,t){Ru(),t.n.a+=e}function E8t(e,t){H0(),_o(t,e)}function Q1e(e){pGe.call(this,e)}function AIe(e){pGe.call(this,e)}function NIe(){Zge.call(this,"")}function _Ie(){this.b=0,this.a=0}function DIe(){DIe=W,aht=OGt()}function Db(e,t){return e.b=t,e}function p_(e,t){return e.a=t,e}function Lb(e,t){return e.c=t,e}function Pb(e,t){return e.d=t,e}function Ib(e,t){return e.e=t,e}function DY(e,t){return e.f=t,e}function xT(e,t){return e.a=t,e}function L6(e,t){return e.b=t,e}function P6(e,t){return e.c=t,e}function ct(e,t){return e.c=t,e}function yt(e,t){return e.b=t,e}function lt(e,t){return e.d=t,e}function ut(e,t){return e.e=t,e}function M8t(e,t){return e.f=t,e}function at(e,t){return e.g=t,e}function ft(e,t){return e.a=t,e}function ht(e,t){return e.i=t,e}function dt(e,t){return e.j=t,e}function A8t(e,t){return e.g-t.g}function N8t(e,t){return e.b-t.b}function _8t(e,t){return e.s-t.s}function D8t(e,t){return e?0:t-1}function LIe(e,t){return e?0:t-1}function L8t(e,t){return e?t-1:0}function P8t(e,t){return t.pg(e)}function PIe(e,t){return e.k=t,e}function I8t(e,t){return e.j=t,e}function us(){this.a=0,this.b=0}function eF(e){JZ.call(this,e)}function x0(e){tw.call(this,e)}function IIe(e){Ree.call(this,e)}function RIe(e){Ree.call(this,e)}function $Ie(e,t){e.b=0,dv(e,t)}function R8t(e,t){e.c=t,e.b=!0}function $8t(e,t,n){UAt(e.a,t,n)}function BIe(e,t){return e.c._b(t)}function Jf(e){return e.e&&e.e()}function LY(e){return e?e.d:null}function zIe(e,t){return oYe(e.b,t)}function B8t(e){return e?e.g:null}function z8t(e){return e?e.i:null}function FIe(e,t){return uTt(e.a,t)}function U1e(e,t){for(;e.zd(t););}function qIe(){throw K(new zn)}function y0(){y0=W,Rvt=LHt()}function HIe(){HIe=W,Xr=GGt()}function J1e(){J1e=W,bp=k7()}function I6(){I6=W,bCe=PHt()}function GIe(){GIe=W,yxt=IHt()}function W1e(){W1e=W,oc=CUt()}function Up(e){return j1(e),e.o}function gy(e,t){return e.a+=t,e}function PY(e,t){return e.a+=t,e}function Og(e,t){return e.a+=t,e}function Rb(e,t){return e.a+=t,e}function V1e(e){wot(),Wnn(this,e)}function tF(e){this.a=new p4(e)}function jg(e){this.a=new pee(e)}function QIe(){throw K(new zn)}function UIe(){throw K(new zn)}function JIe(){throw K(new zn)}function WIe(){throw K(new zn)}function VIe(){throw K(new zn)}function XIe(){this.b=new Wj(b9e)}function KIe(){this.a=new Wj(Y9e)}function nF(e){this.a=0,this.b=e}function YIe(){this.a=new Wj(k8e)}function ZIe(){this.b=new Wj(eae)}function eRe(){this.b=new Wj(eae)}function tRe(){this.a=new Wj(kTe)}function nRe(e,t){return lXt(e,t)}function F8t(e,t){return HZt(t,e)}function X1e(e,t){return e.d[t.p]}function m_(e){return e.b!=e.d.c}function iRe(e){return e.l|e.m<<22}function R6(e){return M0(e),e.a}function rRe(e){e.c?Kit(e):Yit(e)}function py(e,t){for(;e.Pe(t););}function K1e(e,t,n){e.splice(t,n)}function sRe(){throw K(new zn)}function oRe(){throw K(new zn)}function cRe(){throw K(new zn)}function lRe(){throw K(new zn)}function uRe(){throw K(new zn)}function aRe(){throw K(new zn)}function fRe(){throw K(new zn)}function hRe(){throw K(new zn)}function dRe(){throw K(new zn)}function gRe(){throw K(new zn)}function q8t(){throw K(new Eo)}function H8t(){throw K(new Eo)}function b_(e){this.a=new pRe(e)}function pRe(e){PRt(this,e,UQt())}function w_(e){return!e||UHe(e)}function v_(e){return Gh[e]!=-1}function G8t(){kU!=0&&(kU=0),OU=-1}function mRe(){Xoe==null&&(Xoe=[])}function x_(e,t){Ey.call(this,e,t)}function $6(e,t){x_.call(this,e,t)}function bRe(e,t){this.a=e,this.b=t}function wRe(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 yRe(e,t){this.a=e,this.b=t}function kRe(e,t){this.a=e,this.b=t}function ORe(e,t){this.a=e,this.b=t}function B6(e,t){this.e=e,this.d=t}function Y1e(e,t){this.b=e,this.c=t}function jRe(e,t){this.b=e,this.a=t}function SRe(e,t){this.b=e,this.a=t}function TRe(e,t){this.b=e,this.a=t}function CRe(e,t){this.b=e,this.a=t}function ERe(e,t){this.a=e,this.b=t}function MRe(e,t){this.a=e,this.b=t}function IY(e,t){this.a=e,this.b=t}function ARe(e,t){this.a=e,this.f=t}function $b(e,t){this.g=e,this.i=t}function Tn(e,t){this.f=e,this.g=t}function NRe(e,t){this.b=e,this.c=t}function _Re(e){u0e(e.dc()),this.c=e}function Q8t(e,t){this.a=e,this.b=t}function DRe(e,t){this.a=e,this.b=t}function LRe(e){this.a=c($n(e),16)}function Z1e(e){this.a=c($n(e),16)}function PRe(e){this.a=c($n(e),93)}function iF(e){this.b=c($n(e),93)}function rF(e){this.b=c($n(e),51)}function sF(){this.q=new p.Date}function RY(e,t){this.a=e,this.b=t}function IRe(e,t){return Ac(e.b,t)}function yT(e,t){return e.b.Gc(t)}function ege(e,t){return e.b.Hc(t)}function tge(e,t){return e.b.Oc(t)}function RRe(e,t){return e.b.Gc(t)}function $Re(e,t){return e.c.uc(t)}function BRe(e,t){return ki(e.c,t)}function Ba(e,t){return e.a._b(t)}function zRe(e,t){return e>t&&t<pC}function kT(e){return e.f.c+e.i.c}function U8t(e){return DHe(),e?Xft:Vft}function p4(e){xKe.call(this,e,0)}function FRe(){pee.call(this,null)}function m4(e){this.c=e,oVe(this)}function _i(){tze(this),ku(this)}function Sg(){Sg=W,tht=new pe}function z6(){z6=W,BS=new xe}function F2(){F2=W,fce=new NBe}function oF(){oF=W,hht=new _Be}function F6(){F6=W,cOe=new Ei}function Jp(){Jp=W,Ck=new Fo}function nge(){mte.call(this,null)}function hr(e,t){M0(e),e.a.Nb(t)}function J8t(e,t){return e.a.Vc(t)}function W8t(e,t){return e.a.Wc(t)}function $Y(e,t){return e.a.Yc(t)}function BY(e,t){return e.a.Zc(t)}function V8t(e,t){return e.Fc(t),e}function X8t(e,t){Sie(Pe(e.a),t)}function K8t(e,t){Sie(Pe(e.a),t)}function ff(e,t){return e.a.e=t,e}function hf(e,t){return e.a.a=t,e}function df(e,t){return e.a.d=t,e}function qRe(e,t){return e.a.d=t,e}function Y8t(e,t){return e.a.f=t,e}function HRe(e,t){return e.a.g=t,e}function GRe(e,t){return e.a.j=t,e}function gf(e,t){return e.a.g=t,e}function y_(e,t){return e.a.f=t,e}function Z8t(e){return e.b=!1,e}function QRe(){QRe=W,Gdt=new d2}function ige(){ige=W,Qdt=new tHe}function URe(){URe=W,kht=new Wh}function rge(){rge=W,Hdt=new _u}function k_(){k_=W,o1t=new iA}function sge(){sge=W,_Oe=new tu}function JRe(){JRe=W,e1t=new LO}function OT(){OT=W,n1t=new Z9}function WRe(){WRe=W,a1t=new TX}function O_(){O_=W,s1t=new us}function cF(){cF=W,Rpt=new wB}function jT(){jT=W,w1t=new Yx}function lF(){lF=W,p3=new CA}function uF(){uF=W,tae=new XRe}function aF(){aF=W,nae=new Uze}function ST(){ST=W,UP=new KHe}function fF(){fF=W,bae=new Vqe}function hF(){hF=W,wae=new Wqe}function dF(){dF=W,vae=new yHe}function VRe(){YVe(),this.c=new AY}function XRe(){Tn.call(this,wlt,0)}function eTt(e,t,n,i){oqt(e,i,t,n)}function tTt(e,t,n,i){wVt(i,e,t,n)}function nTt(e,t,n,i){Xtn(i,e,t,n)}function iTt(e,t,n){lo(e.d,t.f,n)}function Bb(e,t){wm(e.c.b,t.c,t)}function TT(e,t){wm(e.c.c,t.b,t)}function CT(e,t){return e.a=t.g,e}function rTt(e){return e.e.a+e.f.a}function sTt(e){return e.e.b+e.f.b}function oTt(e){return(e.c+e.a)/2}function cTt(e){return e.b?e.b:e.a}function KRe(e,t){return hHt(e.a,t)}function oge(){oge=W,mCe=new XPe}function ET(){ET=W,nfe=new fze}function Tg(){Tg=W,yI=new hze}function k0(){k0=W,Pvt=new u6}function YRe(){YRe=W,Hvt=new af}function ZRe(){ZRe=W,nxt=new UPe}function e$e(){e$e=W,ixt=new JPe}function O0(){O0=W,rf=new C1e}function gF(){gF=W,LW=new xn}function cge(){cge=W,CCe=new Qe}function j0(){j0=W,yp=new BN}function zY(){zY=W,bxt=new w1}function qs(){qs=W,vxt=new IB}function lge(e){Nee(),qQt.call(this,e)}function uge(e){Nee(),lge.call(this,e)}function age(e){see(),gze.call(this,e)}function lTt(e,t){lQe.call(this,e,t)}function pF(e,t){this.d=e,this.e=t}function FY(e,t){return Lc(e,t)>0}function qY(e,t){return Lc(e,t)<0}function t$e(e,t){return cee(e.a,t)}function uTt(e,t){return e.a.a.cc(t)}function HY(e){return e.b<e.d.gc()}function MT(e,t){return e.a.get(t)}function aTt(e,t){return t.split(e)}function n$e(e,t){return Ac(e.e,t)}function mF(e){return c(e,45).jd()}function fge(e){return Ft(e),!1}function hge(e){this.a=c($n(e),231)}function bF(e){Ct.call(this,e,21)}function wF(e,t){Tn.call(this,e,t)}function GY(e,t){Tn.call(this,e,t)}function i$e(e,t){this.b=e,this.a=t}function r$e(e,t){this.a=e,this.b=t}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 dge(e,t){Yqe(e,e.length,t)}function j_(e,t){AHe(e,e.length,t)}function fTt(e,t,n){t.Ne(e.a.We(n))}function hTt(e,t,n){t.Bd(e.a.Xe(n))}function dTt(e,t,n){t.Ad(e.a.Kb(n))}function gTt(e,t,n){e.Mb(n)&&t.Ad(n)}function AT(e,t,n){e.splice(t,0,n)}function QY(e,t){Tn.call(this,e,t)}function UY(e,t){Tn.call(this,e,t)}function JY(e,t){Tn.call(this,e,t)}function vF(e,t){Tn.call(this,e,t)}function gge(e,t){Tn.call(this,e,t)}function WY(e,t){Tn.call(this,e,t)}function S_(e,t){Tn.call(this,e,t)}function b4(e,t){this.a=e,this.b=t}function pge(e,t){this.b=e,this.a=t}function mge(e,t){this.b=e,this.a=t}function u$e(e,t){this.b=e,this.a=t}function bge(e,t){this.b=e,this.a=t}function q6(e,t){this.c=e,this.d=t}function a$e(e,t){this.e=e,this.d=t}function f$e(e,t){this.a=e,this.b=t}function w4(e,t){Tn.call(this,e,t)}function xF(e,t){Tn.call(this,e,t)}function Mr(e,t){Tn.call(this,e,t)}function yF(e,t){Tn.call(this,e,t)}function wge(e,t){Tn.call(this,e,t)}function kF(e,t){Tn.call(this,e,t)}function h$e(e,t){this.a=e,this.b=t}function d$e(e,t){this.a=e,this.b=t}function g$e(e,t){this.a=e,this.b=t}function p$e(e,t){this.a=e,this.b=t}function m$e(e,t){this.a=e,this.b=t}function b$e(e,t){this.a=e,this.b=t}function w$e(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.b=e,this.a=t}function y$e(e,t){this.b=e,this.a=t}function k$e(e,t){this.b=t,this.c=e}function OF(e,t){Tn.call(this,e,t)}function T_(e,t){Tn.call(this,e,t)}function VY(e,t){Tn.call(this,e,t)}function NT(e,t){Tn.call(this,e,t)}function vge(e,t){Tn.call(this,e,t)}function jF(e,t){Tn.call(this,e,t)}function XY(e,t){Tn.call(this,e,t)}function my(e,t){Tn.call(this,e,t)}function xge(e,t){Tn.call(this,e,t)}function KY(e,t){Tn.call(this,e,t)}function _T(e,t){Tn.call(this,e,t)}function yge(e,t){Tn.call(this,e,t)}function DT(e,t){Tn.call(this,e,t)}function LT(e,t){Tn.call(this,e,t)}function q2(e,t){Tn.call(this,e,t)}function YY(e,t){Tn.call(this,e,t)}function ZY(e,t){Tn.call(this,e,t)}function eZ(e,t){Tn.call(this,e,t)}function kge(e,t){Tn.call(this,e,t)}function C_(e,t){Tn.call(this,e,t)}function Oge(e,t){Tn.call(this,e,t)}function by(e,t){Tn.call(this,e,t)}function tZ(e,t){Tn.call(this,e,t)}function SF(e,t){Tn.call(this,e,t)}function E_(e,t){Tn.call(this,e,t)}function H2(e,t){Tn.call(this,e,t)}function TF(e,t){Tn.call(this,e,t)}function jge(e,t){Tn.call(this,e,t)}function nZ(e,t){Tn.call(this,e,t)}function iZ(e,t){Tn.call(this,e,t)}function rZ(e,t){Tn.call(this,e,t)}function sZ(e,t){Tn.call(this,e,t)}function oZ(e,t){Tn.call(this,e,t)}function cZ(e,t){Tn.call(this,e,t)}function O$e(e,t){this.b=e,this.a=t}function pTt(e,t){return Al(e.e,t)}function mTt(e,t){return Al(e.c,t)}function bTt(e,t){return Al(t.b,e)}function wTt(e,t){return V6(),t!=e}function M_(e){return pn(e.a),e.b}function lZ(e){return PJt(e,e.c),e}function j$e(){return DIe(),new aht}function S$e(){uq(),this.a=new Q0e}function T$e(e,t){this.a=e,this.b=t}function C$e(e,t){this.a=e,this.b=t}function E$e(e,t){this.a=e,this.b=t}function M$e(e,t){this.b=e,this.a=t}function A$e(e,t){this.a=e,this.b=t}function Sge(e,t){Tn.call(this,e,t)}function Tge(e,t){Tn.call(this,e,t)}function CF(e,t){Tn.call(this,e,t)}function Cge(e,t){Tn.call(this,e,t)}function Ege(e,t){Tn.call(this,e,t)}function Mge(e,t){Tn.call(this,e,t)}function N$e(e,t){this.a=e,this.b=t}function _$e(e,t){this.a=e,this.b=t}function D$e(e,t){this.a=e,this.b=t}function L$e(e,t){this.b=e,this.d=t}function P$e(e,t){this.b=e,this.a=t}function EF(e,t){Tn.call(this,e,t)}function zb(e,t){Tn.call(this,e,t)}function uZ(e,t){Tn.call(this,e,t)}function MF(e,t){Tn.call(this,e,t)}function Age(e,t){Tn.call(this,e,t)}function I$e(e,t){this.b=e,this.a=t}function R$e(e,t){this.b=e,this.a=t}function $$e(e,t){this.b=e,this.a=t}function B$e(e,t){this.b=e,this.a=t}function Nge(e,t){Tn.call(this,e,t)}function A_(e,t){Tn.call(this,e,t)}function _ge(e,t){Tn.call(this,e,t)}function aZ(e,t){Tn.call(this,e,t)}function AF(e,t){Tn.call(this,e,t)}function fZ(e,t){Tn.call(this,e,t)}function hZ(e,t){Tn.call(this,e,t)}function NF(e,t){Tn.call(this,e,t)}function dZ(e,t){Tn.call(this,e,t)}function Dge(e,t){Tn.call(this,e,t)}function gZ(e,t){Tn.call(this,e,t)}function pZ(e,t){Tn.call(this,e,t)}function N_(e,t){Tn.call(this,e,t)}function mZ(e,t){Tn.call(this,e,t)}function Lge(e,t){Tn.call(this,e,t)}function __(e,t){Tn.call(this,e,t)}function Pge(e,t){Tn.call(this,e,t)}function Ige(e,t){Tn.call(this,e,t)}function _F(e,t){Tn.call(this,e,t)}function Rge(e,t){Tn.call(this,e,t)}function z$e(e,t){this.a=e,this.b=t}function F$e(e,t){this.a=e,this.b=t}function $ge(e,t){this.a=e,this.b=t}function D_(e,t){Tn.call(this,e,t)}function v4(e,t){Tn.call(this,e,t)}function He(e,t){this.a=e,this.b=t}function PT(e,t){Tn.call(this,e,t)}function IT(e,t){Tn.call(this,e,t)}function L_(e,t){Tn.call(this,e,t)}function DF(e,t){Tn.call(this,e,t)}function bZ(e,t){Tn.call(this,e,t)}function LF(e,t){Tn.call(this,e,t)}function RT(e,t){Tn.call(this,e,t)}function wZ(e,t){Tn.call(this,e,t)}function PF(e,t){Tn.call(this,e,t)}function wy(e,t){Tn.call(this,e,t)}function P_(e,t){Tn.call(this,e,t)}function $T(e,t){Tn.call(this,e,t)}function BT(e,t){Tn.call(this,e,t)}function I_(e,t){Tn.call(this,e,t)}function vZ(e,t){Tn.call(this,e,t)}function IF(e,t){Tn.call(this,e,t)}function vy(e,t){Tn.call(this,e,t)}function xZ(e,t){Tn.call(this,e,t)}function yZ(e,t){Tn.call(this,e,t)}function RF(e,t){Tn.call(this,e,t)}function q$e(e,t){this.a=e,this.b=t}function H$e(e,t){this.a=e,this.b=t}function G$e(e,t){this.a=e,this.b=t}function Q$e(e,t){this.a=e,this.b=t}function U$e(e,t){this.a=e,this.b=t}function J$e(e,t){this.a=e,this.b=t}function $F(e,t){Tn.call(this,e,t)}function Ls(e,t){this.a=e,this.b=t}function W$e(){YG(),this.a=new Tr}function V$e(){Uee(),this.b=new Tr}function X$e(){Eme(),Dpe.call(this)}function K$e(){Mme(),IGe.call(this)}function Y$e(){Mme(),IGe.call(this)}function Z$e(e,t){$It(e.a,c(t,12))}function vTt(e,t,n){Eet(t,xie(e,n))}function xTt(e,t,n){Eet(t,xie(e,n))}function Bge(e,t){return Al(e.g,t)}function yTt(e,t){return-e.b.$e(t)}function eBe(e,t){this.a=e,this.b=t}function tBe(e,t){this.a=e,this.b=t}function nBe(e,t){this.a=e,this.b=t}function iBe(e,t){this.a=e,this.b=t}function rBe(e,t){this.a=e,this.b=t}function sBe(e,t){this.a=e,this.b=t}function oBe(e,t){this.a=e,this.b=t}function cBe(e,t){this.a=e,this.b=t}function lBe(e,t){this.a=e,this.b=t}function uBe(e,t){this.a=e,this.b=t}function aBe(e,t){this.b=e,this.a=t}function fBe(e,t){this.b=e,this.a=t}function hBe(e,t){this.b=e,this.a=t}function dBe(e,t){this.b=e,this.a=t}function gBe(e,t){this.f=e,this.c=t}function zge(e,t){this.i=e,this.g=t}function BF(e,t){this.a=e,this.b=t}function pBe(e,t){this.a=e,this.b=t}function mBe(e,t){this.a=e,this.b=t}function bBe(e,t){this.a=e,this.b=t}function Fge(e,t){this.d=e,this.e=t}function wBe(e,t){this.d=e,this.b=t}function vBe(e,t){this.a=e,this.b=t}function xBe(e,t){this.e=e,this.a=t}function R_(e,t){this.b=e,this.c=t}function x4(e,t){Tn.call(this,e,t)}function kTt(e,t){e&&ci(wI,e,t)}function qge(e,t){e.i=null,RH(e,t)}function yBe(e,t){return Sne(e.a,t)}function zF(e){return VD(e.c,e.b)}function Ao(e){return e?e.kd():null}function Se(e){return e??null}function G2(e){return typeof e===hk}function Q2(e){return typeof e===qye}function Yr(e){return typeof e===fre}function zT(e,t){return Lc(e,t)==0}function FF(e,t){return Lc(e,t)>=0}function FT(e,t){return Lc(e,t)!=0}function S0(e,t){return e.Pd().Xb(t)}function qF(e,t){return l$t(e.Jc(),t)}function OTt(e){return""+(Ft(e),e)}function Hge(e,t){return e.a+=""+t,e}function qT(e,t){return e.a+=""+t,e}function Zs(e,t){return e.a+=""+t,e}function HT(e,t){return e.a+=""+t,e}function Mc(e,t){return e.a+=""+t,e}function ti(e,t){return e.a+=""+t,e}function HF(e){return YT(e==null),e}function Gge(e){return pt(e,0),null}function kBe(e){return cu(e),e.d.gc()}function jTt(e){p.clearTimeout(e)}function OBe(e,t){e.q.setTime(cm(t))}function STt(e,t){XIt(new ln(e),t)}function jBe(e,t){Fpe.call(this,e,t)}function SBe(e,t){Fpe.call(this,e,t)}function GF(e,t){Fpe.call(this,e,t)}function Cs(e,t){sr(e,t,e.c.b,e.c)}function xy(e,t){sr(e,t,e.a,e.a.a)}function TTt(e,t){return e.j[t.p]==2}function TBe(e,t){return e.a=t.g+1,e}function Wf(e){return e.a=0,e.b=0,e}function CBe(){CBe=W,tdt=En(Lne())}function EBe(){EBe=W,u1t=En(Tit())}function MBe(){MBe=W,tbt=En(_Xe())}function ABe(){this.b=new p4(mv(12))}function NBe(){this.b=0,this.a=!1}function _Be(){this.b=0,this.a=!1}function GT(e){this.a=e,zN.call(this)}function DBe(e){this.a=e,zN.call(this)}function xt(e,t){Gi.call(this,e,t)}function kZ(e,t){K2.call(this,e,t)}function yy(e,t){zge.call(this,e,t)}function LBe(e,t){q_.call(this,e,t)}function OZ(e,t){yj.call(this,e,t)}function ui(e,t){gF(),ci(LW,e,t)}function jZ(e,t){return qa(e.a,0,t)}function PBe(e,t){return Se(e)===Se(t)}function CTt(e,t){return Ci(e.a,t.a)}function Qge(e,t){return pc(e.a,t.a)}function ETt(e,t){return CHe(e.a,t.a)}function y4(e){return ys((Ft(e),e))}function MTt(e){return ys((Ft(e),e))}function IBe(e){return rl(e.l,e.m,e.h)}function ATt(e){return $n(e),new GT(e)}function Zh(e,t){return e.indexOf(t)}function Oo(e){return typeof e===qye}function QF(e){return e<10?"0"+e:""+e}function NTt(e){return e==Lw||e==Hv}function _Tt(e){return e==Lw||e==qv}function RBe(e,t){return pc(e.g,t.g)}function Uge(e){return Do(e.b.b,e,0)}function $Be(e){lc(this),T7(this,e)}function BBe(e){this.a=j$e(),this.b=e}function zBe(e){this.a=j$e(),this.b=e}function FBe(e,t){return Ue(e.a,t),t}function Jge(e,t){hj(e,0,e.length,t)}function DTt(e,t){return pc(e.g,t.g)}function LTt(e,t){return Ci(t.f,e.f)}function PTt(e,t){return Ru(),t.a+=e}function ITt(e,t){return Ru(),t.a+=e}function RTt(e,t){return Ru(),t.c+=e}function Wge(e,t){return Hu(e.a,t),e}function $Tt(e,t){return Ue(e.c,t),e}function UF(e){return Hu(new yr,e)}function k1(e){return e==go||e==vo}function ky(e){return e==Aa||e==Bh}function qBe(e){return e==M3||e==E3}function Oy(e){return e!=Fh&&e!=gp}function bu(e){return e.sh()&&e.th()}function HBe(e){return Aee(c(e,127))}function k4(){bf.call(this,0,0,0,0)}function GBe(){yq.call(this,0,0,0,0)}function Ld(){Yde.call(this,new _0)}function SZ(e){gBe.call(this,e,!0)}function Es(e){this.a=e.a,this.b=e.b}function TZ(e,t){Cj(e,t),mj(e,e.D)}function CZ(e,t,n){MH(e,t),EH(e,n)}function Fb(e,t,n){am(e,t),um(e,n)}function ha(e,t,n){Dc(e,t),Dl(e,n)}function $_(e,t,n){nw(e,t),iw(e,n)}function B_(e,t,n){rw(e,t),sw(e,n)}function QBe(e,t,n){M0e.call(this,e,t,n)}function UBe(){wF.call(this,"Head",1)}function JBe(){wF.call(this,"Tail",3)}function T0(e){ld(),f$t.call(this,e)}function jy(e){return e!=null?zi(e):0}function WBe(e,t){return new yj(t,e)}function BTt(e,t){return new yj(t,e)}function zTt(e,t){return hv(t,wh(e))}function FTt(e,t){return hv(t,wh(e))}function qTt(e,t){return e[e.length]=t}function HTt(e,t){return e[e.length]=t}function Vge(e){return oAt(e.b.Jc(),e.a)}function GTt(e,t){return LH(Tee(e.f),t)}function QTt(e,t){return LH(Tee(e.n),t)}function UTt(e,t){return LH(Tee(e.p),t)}function Qr(e,t){Gi.call(this,e.b,t)}function Wp(e){yq.call(this,e,e,e,e)}function EZ(e){e.c=Ce(Br,It,1,0,5,1)}function VBe(e,t,n){br(e.c[t.g],t.g,n)}function JTt(e,t,n){c(e.c,72).Ei(t,n)}function WTt(e,t,n){ha(n,n.i+e,n.j+t)}function VTt(e,t){Dn(wc(e.a),TQe(t))}function XTt(e,t){Dn(ou(e.a),CQe(t))}function KTt(e,t){Dh||(e.b=t)}function MZ(e,t,n){return br(e,t,n),n}function XBe(e){Vc(e.Qf(),new m_e(e))}function KBe(){KBe=W,due=new $7(Fae)}function Xge(){Xge=W,b1e(),Pke=new xn}function Fn(){Fn=W,new YBe,new Qe}function YBe(){new xn,new xn,new xn}function YTt(){throw K(new yg(Pft))}function ZTt(){throw K(new yg(Pft))}function e7t(){throw K(new yg(Ift))}function t7t(){throw K(new yg(Ift))}function QT(e){vi(),Nb.call(this,e)}function ZBe(e){this.a=e,dpe.call(this,e)}function AZ(e){this.a=e,iF.call(this,e)}function NZ(e){this.a=e,iF.call(this,e)}function n7t(e){return e==null?0:zi(e)}function No(e){return e.a<e.c.c.length}function Kge(e){return e.a<e.c.a.length}function Yge(e,t){return Lc(e,t)>0?e:t}function pc(e,t){return e<t?-1:e>t?1:0}function eze(e,t){return e.a?e.b:t.Ue()}function rl(e,t,n){return{l:e,m:t,h:n}}function i7t(e,t){e.a!=null&&Z$e(t,e.a)}function r7t(e,t){$n(t),Ay(e).Ic(new te)}function Rr(e,t){oee(e.c,e.c.length,t)}function tze(e){e.a=new Je,e.c=new Je}function JF(e){this.b=e,this.a=new Qe}function nze(e){this.b=new _O,this.a=e}function Zge(e){G0e.call(this),this.a=e}function ize(e){xme.call(this),this.b=e}function rze(){wF.call(this,"Range",2)}function sze(){nve(),this.a=new Wj(NOe)}function ph(){ph=W,p.Math.log(2)}function da(){da=W,o1=(YRe(),Hvt)}function WF(e){e.j=Ce(Wke,Ge,325,0,0,1)}function oze(e){e.a=new xn,e.e=new xn}function e0e(e){return new He(e.c,e.d)}function s7t(e){return new He(e.c,e.d)}function Ms(e){return new He(e.a,e.b)}function o7t(e,t){return ci(e.a,t.a,t)}function c7t(e,t,n){return ci(e.g,n,t)}function l7t(e,t,n){return ci(e.k,n,t)}function Sy(e,t,n){return k2e(t,n,e.c)}function cze(e,t){return dtn(e.a,t,null)}function t0e(e,t){return be(Jt(e.i,t))}function n0e(e,t){return be(Jt(e.j,t))}function lze(e,t){Mn(e),e.Fc(c(t,16))}function u7t(e,t,n){e.c._c(t,c(n,138))}function a7t(e,t,n){e.c.Si(t,c(n,138))}function f7t(e,t,n){return ftn(e,t,n),n}function h7t(e,t){return Bu(),t.n.b+=e}function UT(e,t){return yen(e.c,e.b,t)}function _Z(e,t){return q$t(e.Jc(),t)!=-1}function he(e,t){return e!=null&&$ne(e,t)}function d7t(e,t){return new Nze(e.Jc(),t)}function VF(e){return e.Ob()?e.Pb():null}function uze(e){return od(e,0,e.length)}function g7t(e){ks(e,null),rs(e,null)}function aze(e){Wee(e,null),Vee(e,null)}function fze(){q_.call(this,null,null)}function hze(){tq.call(this,null,null)}function dze(){Tn.call(this,"INSTANCE",0)}function Ty(){this.a=Ce(Br,It,1,8,5,1)}function i0e(e){this.a=e,xn.call(this)}function gze(e){this.a=(Mt(),new D6(e))}function p7t(e){this.b=(Mt(),new aY(e))}function H6(){H6=W,rOe=new jY(null)}function r0e(){r0e=W,r0e(),dht=new an}function Ue(e,t){return Rt(e.c,t),!0}function pze(e,t){e.c&&(Ope(t),WGe(t))}function m7t(e,t){e.q.setHours(t),cC(e,t)}function s0e(e,t){return e.a.Ac(t)!=null}function DZ(e,t){return e.a.Ac(t)!=null}function mh(e,t){return e.a[t.c.p][t.p]}function b7t(e,t){return e.c[t.c.p][t.p]}function w7t(e,t){return e.e[t.c.p][t.p]}function LZ(e,t,n){return e.a[t.g][n.g]}function v7t(e,t){return e.j[t.p]=UWt(t)}function O4(e,t){return e.a*t.a+e.b*t.b}function x7t(e,t){return e.a<UZ(t)?-1:1}function y7t(e,t){return obe(e.b,t.Og())}function k7t(e,t){return obe(e.f,t.Og())}function O7t(e,t){return ge(be(t.a))<=e}function j7t(e,t){return ge(be(t.a))>=e}function S7t(e,t,n){return n?t!=0:t!=e-1}function mze(e,t,n){e.a=t^1502,e.b=n^qre}function T7t(e,t,n){return e.a=t,e.b=n,e}function O1(e,t){return e.a*=t,e.b*=t,e}function JT(e,t,n){return br(e.g,t,n),n}function C7t(e,t,n,i){br(e.a[t.g],n.g,i)}function Nr(e,t,n){eD.call(this,e,t,n)}function XF(e,t,n){Nr.call(this,e,t,n)}function Ml(e,t,n){Nr.call(this,e,t,n)}function bze(e,t,n){XF.call(this,e,t,n)}function o0e(e,t,n){eD.call(this,e,t,n)}function Cy(e,t,n){eD.call(this,e,t,n)}function wze(e,t,n){c0e.call(this,e,t,n)}function vze(e,t,n){o0e.call(this,e,t,n)}function c0e(e,t,n){hq.call(this,e,t,n)}function xze(e,t,n){hq.call(this,e,t,n)}function C0(e){this.c=e,this.a=this.c.a}function ln(e){this.i=e,this.f=this.i.j}function Ey(e,t){this.a=e,iF.call(this,t)}function yze(e,t){this.a=e,MY.call(this,t)}function kze(e,t){this.a=e,MY.call(this,t)}function Oze(e,t){this.a=e,MY.call(this,t)}function l0e(e){this.a=e,v6.call(this,e.d)}function jze(e){e.b.Qb(),--e.d.f.d,Sq(e.d)}function Sze(e){e.a=c(Kt(e.b.a,4),131)}function Tze(e){e.a=c(Kt(e.b.a,4),131)}function E7t(e){oD(e,lat),WG(e,lnn(e))}function Cze(e){Z5.call(this,c($n(e),34))}function Eze(e){Z5.call(this,c($n(e),34))}function u0e(e){if(!e)throw K(new d_)}function a0e(e){if(!e)throw K(new El)}function f0e(e,t){return jzt(e,new v0,t).a}function Mze(e,t){return new Ptt(e.a,e.b,t)}function Xt(e,t){return $n(t),new Aze(e,t)}function Aze(e,t){this.a=t,rF.call(this,e)}function Nze(e,t){this.a=t,rF.call(this,e)}function h0e(e,t){this.a=t,MY.call(this,e)}function _ze(e,t){this.a=t,ote.call(this,e)}function Dze(e,t){this.a=e,ote.call(this,t)}function Lze(){WF(this),zq(this),this.he()}function d0e(){this.Bb|=256,this.Bb|=512}function zt(){zt=W,ep=!1,RS=!0}function Pze(){Pze=W,zY(),wxt=new eT}function M7t(e){return m_(e.a)?EQe(e):null}function A7t(e){return e.l+e.m*mk+e.h*jm}function N7t(e){return e==null?null:e.name}function WT(e){return e==null?wl:So(e)}function KF(e,t){return e.lastIndexOf(t)}function g0e(e,t,n){return e.indexOf(t,n)}function Al(e,t){return!!t&&e.b[t.g]==t}function j4(e){return e.a!=null?e.a:null}function wu(e){return pn(e.a!=null),e.a}function z_(e,t,n){return Ute(e,t,t,n),e}function Ize(e,t){return Ue(t.a,e.a),e.a}function Rze(e,t){return Ue(t.b,e.a),e.a}function YF(e,t){return++e.b,Ue(e.a,t)}function p0e(e,t){return++e.b,gl(e.a,t)}function qb(e,t){return Ue(t.a,e.a),e.a}function ZF(e){T6.call(this,e),this.a=e}function m0e(e){hy.call(this,e),this.a=e}function b0e(e){D6.call(this,e),this.a=e}function w0e(e){mY.call(this),Os(this,e)}function za(e){gs.call(this,(Ft(e),e))}function Iu(e){gs.call(this,(Ft(e),e))}function PZ(e){Yde.call(this,new mbe(e))}function v0e(e,t){N2e.call(this,e,t,null)}function _7t(e,t){return Ci(e.n.a,t.n.a)}function D7t(e,t){return Ci(e.c.d,t.c.d)}function L7t(e,t){return Ci(e.c.c,t.c.c)}function hl(e,t){return c(Ti(e.b,t),16)}function P7t(e,t){return e.n.b=(Ft(t),t)}function I7t(e,t){return e.n.b=(Ft(t),t)}function R7t(e,t){return Ci(e.e.b,t.e.b)}function $7t(e,t){return Ci(e.e.a,t.e.a)}function B7t(e,t,n){return MUe(e,t,n,e.b)}function x0e(e,t,n){return MUe(e,t,n,e.c)}function z7t(e){return Ru(),!!e&&!e.dc()}function $ze(){jT(),this.b=new Y_e(this)}function Bze(e){this.a=e,uY.call(this,e)}function F_(e){this.c=e,T4.call(this,e)}function S4(e){this.c=e,ln.call(this,e)}function T4(e){this.d=e,ln.call(this,e)}function eq(e,t){uee(),this.f=t,this.d=e}function q_(e,t){ET(),this.a=e,this.b=t}function tq(e,t){Tg(),this.b=e,this.c=t}function y0e(e,t){lbe(t,e),this.c=e,this.b=t}function Cg(e){var t;t=e.a,e.a=e.b,e.b=t}function VT(e){return No(e.a)||No(e.b)}function Hb(e){return e.$H||(e.$H=++Nin)}function IZ(e,t){return new HFe(e,e.gc(),t)}function F7t(e,t){return dee(e.c).Kd().Xb(t)}function G6(e,t,n){var i;i=e.dd(t),i.Rb(n)}function k0e(e,t,n){c(OD(e,t),24).Ec(n)}function q7t(e,t,n){mne(e.a,n),OG(e.a,t)}function zze(e,t,n,i){Bpe.call(this,e,t,n,i)}function Q6(e,t,n){return g0e(e,ml(t),n)}function H7t(e){return Vz(),Cn((dQe(),Gft),e)}function G7t(e){return new uv(3,e)}function Pd(e){return qu(e,Lv),new Wc(e)}function U6(e){return pn(e.b!=0),e.a.a.c}function pf(e){return pn(e.b!=0),e.c.b.c}function Q7t(e,t){return Ute(e,t,t+1,""),e}function Fze(e){if(!e)throw K(new fa)}function qze(e){e.d=new Qze(e),e.e=new xn}function O0e(e){if(!e)throw K(new d_)}function U7t(e){if(!e)throw K(new gY)}function pn(e){if(!e)throw K(new Eo)}function U2(e){if(!e)throw K(new El)}function Hze(e){return e.b=c(pme(e.a),45)}function Oi(e,t){return!!e.q&&Ac(e.q,t)}function J7t(e,t){return e>0?t*t/e:t*t*100}function W7t(e,t){return e>0?t/(e*e):t*100}function J2(e,t){return c(yh(e.a,t),34)}function V7t(e){return e.f!=null?e.f:""+e.g}function RZ(e){return e.f!=null?e.f:""+e.g}function Gze(e){return cj(),parseInt(e)||-1}function X7t(e){return D1(),e.e.a+e.f.a/2}function K7t(e,t,n){return D1(),n.e.a-e*t}function Y7t(e,t,n){return cF(),n.Lg(e,t)}function Z7t(e,t,n){return D1(),n.e.b-e*t}function eCt(e){return D1(),e.e.b+e.f.b/2}function tCt(e,t){return H0(),St(e,t.e,t)}function H_(e){he(e,162)&&c(e,162).mi()}function Qze(e){gpe.call(this,e,null,null)}function Uze(){Tn.call(this,"GROW_TREE",0)}function Jze(e){this.c=e,this.a=1,this.b=1}function $Z(e){F2(),this.b=e,this.a=!0}function Wze(e){oF(),this.b=e,this.a=!0}function Vze(e){ure(),dPe(this),this.Df(e)}function Xze(e){_i.call(this),O7(this,e)}function Kze(e){this.c=e,Dc(e,0),Dl(e,0)}function nq(e){return e.a=-e.a,e.b=-e.b,e}function j0e(e,t){return e.a=t.a,e.b=t.b,e}function W2(e,t,n){return e.a+=t,e.b+=n,e}function Yze(e,t,n){return e.a-=t,e.b-=n,e}function nCt(e,t,n){mH(),e.nf(t)&&n.Ad(e)}function iCt(e,t,n){I7(wc(e.a),t,TQe(n))}function rCt(e,t,n){return Ue(t,CYe(e,n))}function sCt(e,t){return c(Jt(e.e,t),19)}function oCt(e,t){return c(Jt(e.e,t),19)}function cCt(e,t){return e.c.Ec(c(t,138))}function Zze(e,t){ET(),q_.call(this,e,t)}function S0e(e,t){Tg(),tq.call(this,e,t)}function eFe(e,t){Tg(),tq.call(this,e,t)}function tFe(e,t){Tg(),S0e.call(this,e,t)}function BZ(e,t){da(),Oq.call(this,e,t)}function nFe(e,t){da(),BZ.call(this,e,t)}function T0e(e,t){da(),BZ.call(this,e,t)}function iFe(e,t){da(),T0e.call(this,e,t)}function C0e(e,t){da(),Oq.call(this,e,t)}function rFe(e,t){da(),Oq.call(this,e,t)}function sFe(e,t){da(),C0e.call(this,e,t)}function vu(e,t,n){_l.call(this,e,t,n,2)}function lCt(e,t,n){I7(ou(e.a),t,CQe(n))}function zZ(e,t){return B0(e.e,c(t,52))}function uCt(e,t,n){return t.xl(e.e,e.c,n)}function aCt(e,t,n){return t.yl(e.e,e.c,n)}function E0e(e,t,n){return uQ(jD(e,t),n)}function oFe(e,t){return Ft(e),e+UZ(t)}function fCt(e){return e==null?null:So(e)}function hCt(e){return e==null?null:So(e)}function dCt(e){return e==null?null:Ztn(e)}function gCt(e){return e==null?null:YQt(e)}function j1(e){e.o==null&&vWt(e)}function nt(e){return YT(e==null||G2(e)),e}function be(e){return YT(e==null||Q2(e)),e}function qn(e){return YT(e==null||Yr(e)),e}function cFe(){this.a=new Zb,this.b=new Zb}function pCt(e,t){this.d=e,kt(this),this.b=t}function G_(e,t){this.c=e,B6.call(this,e,t)}function XT(e,t){this.a=e,G_.call(this,e,t)}function M0e(e,t,n){gH.call(this,e,t,n,null)}function lFe(e,t,n){gH.call(this,e,t,n,null)}function A0e(){VVe.call(this),this.Bb|=Ps}function N0e(e,t){mte.call(this,e),this.a=t}function _0e(e,t){mte.call(this,e),this.a=t}function uFe(e,t){Dh||Ue(e.a,t)}function mCt(e,t){return Une(e,t),new rGe(e,t)}function bCt(e,t,n){return e.Le(t,n)<=0?n:t}function wCt(e,t,n){return e.Le(t,n)<=0?t:n}function aFe(e){return Ft(e),e?1231:1237}function FZ(e){return c(Xe(e.a,e.b),296)}function fFe(e){return Bu(),qBe(c(e,205))}function vCt(e,t){return c(yh(e.b,t),144)}function xCt(e,t){return c(yh(e.c,t),236)}function hFe(e){return new He(e.c,e.d+e.a)}function yCt(e,t){return J4(),new krt(t,e)}function kCt(e,t){return O_(),xj(t.d.i,e)}function OCt(e,t){t.a?BJt(e,t):DZ(e.a,t.b)}function D0e(e,t){return c(Jt(e.b,t),280)}function Gi(e,t){mi.call(this,e),this.a=t}function L0e(e,t,n){return n=Uu(e,t,3,n),n}function P0e(e,t,n){return n=Uu(e,t,6,n),n}function I0e(e,t,n){return n=Uu(e,t,9,n),n}function ed(e,t){return oD(t,c3e),e.f=t,e}function R0e(e,t){return(t&pi)%e.d.length}function dFe(e,t,n){++e.j,e.oj(t,e.Xi(t,n))}function Q_(e,t,n){++e.j,e.rj(),pte(e,t,n)}function gFe(e,t,n){var i;i=e.dd(t),i.Rb(n)}function pFe(e,t){this.c=e,tw.call(this,t)}function mFe(e,t){this.a=e,oPe.call(this,t)}function U_(e,t){this.a=e,oPe.call(this,t)}function $0e(e){this.q=new p.Date(cm(e))}function bFe(e){this.a=(qu(e,Lv),new Wc(e))}function wFe(e){this.a=(qu(e,Lv),new Wc(e))}function qZ(e){this.a=(Mt(),new lY($n(e)))}function iq(){iq=W,NU=new Gi(Gct,0)}function My(){My=W,_3=new mi("root")}function J6(){J6=W,xI=new HPe,new GPe}function V2(){V2=W,fOe=bt((Cu(),Wm))}function jCt(e){return Qn(Zp(e,32))^Qn(e)}function HZ(e){return String.fromCharCode(e)}function SCt(e){return e==null?null:e.message}function TCt(e,t,n){return e.apply(t,n)}function vFe(e,t,n){return yye(e.c,e.b,t,n)}function B0e(e,t,n){return L4(e,c(t,23),n)}function Vp(e,t){return zt(),e==t?0:e?1:-1}function z0e(e,t){var n;return n=t,!!e.De(n)}function F0e(e,t){var n;return n=e.e,e.e=t,n}function CCt(e,t){var n;n=e[Fre],n.call(e,t)}function ECt(e,t){var n;n=e[Fre],n.call(e,t)}function X2(e,t){e.a._c(e.b,t),++e.b,e.c=-1}function xFe(e){lc(e.e),e.d.b=e.d,e.d.a=e.d}function J_(e){e.b?J_(e.b):e.f.c.yc(e.e,e.d)}function W_(e){return!e.a&&(e.a=new ke),e.a}function yFe(e,t,n){return e.a+=od(t,0,n),e}function MCt(e,t,n){Jp(),nY(e,t.Te(e.a,n))}function q0e(e,t,n,i){yq.call(this,e,t,n,i)}function H0e(e,t){h1e.call(this,e),this.a=t}function GZ(e,t){h1e.call(this,e),this.a=t}function kFe(){rq.call(this),this.a=new us}function G0e(){this.n=new us,this.o=new us}function OFe(){this.b=new us,this.c=new Qe}function jFe(){this.a=new Qe,this.b=new Qe}function SFe(){this.a=new qx,this.b=new xPe}function Q0e(){this.b=new _0,this.a=new _0}function TFe(){this.b=new Tr,this.a=new Tr}function CFe(){this.b=new xn,this.a=new xn}function EFe(){this.a=new Qe,this.d=new Qe}function MFe(){this.a=new IK,this.b=new i$}function AFe(){this.b=new XIe,this.a=new HA}function rq(){this.n=new u4,this.i=new k4}function ji(e,t){return e.a+=t.a,e.b+=t.b,e}function Hr(e,t){return e.a-=t.a,e.b-=t.b,e}function ACt(e){return B2(e.j.c,0),e.a=-1,e}function U0e(e,t,n){return n=Uu(e,t,11,n),n}function NFe(e,t,n){n!=null&&PH(t,Vne(e,n))}function _Fe(e,t,n){n!=null&&IH(t,Vne(e,n))}function C4(e,t,n,i){Le.call(this,e,t,n,i)}function K2(e,t){Qc.call(this,IC+e+Am+t)}function J0e(e,t,n,i){Le.call(this,e,t,n,i)}function DFe(e,t,n,i){J0e.call(this,e,t,n,i)}function LFe(e,t,n,i){Nq.call(this,e,t,n,i)}function QZ(e,t,n,i){Nq.call(this,e,t,n,i)}function PFe(e,t,n,i){QZ.call(this,e,t,n,i)}function W0e(e,t,n,i){Nq.call(this,e,t,n,i)}function Et(e,t,n,i){W0e.call(this,e,t,n,i)}function V0e(e,t,n,i){QZ.call(this,e,t,n,i)}function IFe(e,t,n,i){V0e.call(this,e,t,n,i)}function RFe(e,t,n,i){Hpe.call(this,e,t,n,i)}function X0e(e,t){return e.hk().ti().oi(e,t)}function K0e(e,t){return e.hk().ti().qi(e,t)}function NCt(e,t){return e.n.a=(Ft(t),t+10)}function _Ct(e,t){return e.n.a=(Ft(t),t+10)}function DCt(e,t){return e.e=c(e.d.Kb(t),163)}function LCt(e,t){return t==e||qj(JG(t),e)}function mf(e,t){return Zz(new Array(t),e)}function $Fe(e,t){return Ft(e),Se(e)===Se(t)}function jt(e,t){return Ft(e),Se(e)===Se(t)}function BFe(e,t){return ci(e.a,t,"")==null}function Y0e(e,t,n){return e.lastIndexOf(t,n)}function PCt(e,t){return e.b.zd(new s$e(e,t))}function ICt(e,t){return e.b.zd(new o$e(e,t))}function zFe(e,t){return e.b.zd(new c$e(e,t))}function RCt(e){return e<100?null:new x0(e)}function $Ct(e,t){return _e(t,(We(),EP),e)}function BCt(e,t,n){return Ci(e[t.a],e[n.a])}function zCt(e,t){return pc(e.a.d.p,t.a.d.p)}function FCt(e,t){return pc(t.a.d.p,e.a.d.p)}function qCt(e,t){return O_(),!xj(t.d.i,e)}function HCt(e,t){Dh||t&&(e.d=t)}function GCt(e,t){k1(e.f)?fWt(e,t):tQt(e,t)}function FFe(e,t){cAt.call(this,e,e.length,t)}function qFe(e){this.c=e,GF.call(this,ML,0)}function Z0e(e,t){this.c=e,yee.call(this,e,t)}function HFe(e,t,n){this.a=e,y0e.call(this,t,n)}function GFe(e,t,n){this.c=t,this.b=n,this.a=e}function V_(e){V6(),this.d=e,this.a=new Ty}function QCt(e,t){var n;return n=t.ni(e.a),n}function UCt(e,t){return Ci(e.c-e.s,t.c-t.s)}function JCt(e,t){return Ci(e.c.e.a,t.c.e.a)}function WCt(e,t){return Ci(e.b.e.a,t.b.e.a)}function QFe(e,t){return he(t,16)&&nrt(e.c,t)}function VCt(e,t,n){return c(e.c,72).Uk(t,n)}function sq(e,t,n){return c(e.c,72).Vk(t,n)}function XCt(e,t,n){return uCt(e,c(t,345),n)}function epe(e,t,n){return aCt(e,c(t,345),n)}function KCt(e,t,n){return $et(e,c(t,345),n)}function UFe(e,t,n){return dQt(e,c(t,345),n)}function KT(e,t){return t==null?null:wv(e.b,t)}function E4(e){return e==Jm||e==r1||e==Sc}function JFe(e){return e.c?Do(e.c.a,e,0):-1}function UZ(e){return Q2(e)?(Ft(e),e):e.se()}function oq(e){return!isNaN(e)&&!isFinite(e)}function JZ(e){tze(this),ku(this),Os(this,e)}function Hl(e){EZ(this),kpe(this.c,0,e.Nc())}function WFe(e){iu(e.a),gbe(e.c,e.b),e.b=null}function WZ(){WZ=W,iOe=new _t,fht=new nn}function VFe(){VFe=W,Wvt=Ce(Br,It,1,0,5,1)}function XFe(){XFe=W,hxt=Ce(Br,It,1,0,5,1)}function tpe(){tpe=W,dxt=Ce(Br,It,1,0,5,1)}function YCt(e){return dj(),Cn((wWe(),ght),e)}function ZCt(e){return ya(),Cn((_Je(),xht),e)}function eEt(e){return Yf(),Cn((DJe(),Eht),e)}function tEt(e){return Ql(),Cn((LJe(),Aht),e)}function nEt(e){return pl(),Cn((PJe(),_ht),e)}function iEt(e){return gQ(),Cn((CBe(),tdt),e)}function npe(e,t){if(!e)throw K(new Ht(t))}function W6(e){if(!e)throw K(new oo(Hye))}function VZ(e,t){if(e!=t)throw K(new fa)}function ga(e,t,n){this.a=e,this.b=t,this.c=n}function KFe(e,t,n){this.a=e,this.b=t,this.c=n}function YFe(e,t,n){this.a=e,this.b=t,this.c=n}function ipe(e,t,n){this.b=e,this.c=t,this.a=n}function ZFe(e,t,n){this.d=e,this.b=n,this.a=t}function rEt(e,t,n){return Jp(),e.a.Wd(t,n),t}function XZ(e){var t;return t=new AO,t.e=e,t}function rpe(e){var t;return t=new CPe,t.b=e,t}function cq(e,t,n){this.e=t,this.b=e,this.d=n}function lq(e,t,n){this.b=e,this.a=t,this.c=n}function eqe(e){this.a=e,Sg(),nc(Date.now())}function tqe(e,t,n){this.a=e,this.b=t,this.c=n}function KZ(e){yq.call(this,e.d,e.c,e.a,e.b)}function spe(e){yq.call(this,e.d,e.c,e.a,e.b)}function sEt(e){return Wt(),Cn((EXe(),i1t),e)}function oEt(e){return cw(),Cn((vWe(),idt),e)}function cEt(e){return Oj(),Cn((xWe(),Jdt),e)}function lEt(e){return OH(),Cn((qUe(),hdt),e)}function uEt(e){return v7(),Cn((IJe(),$dt),e)}function aEt(e){return ts(),Cn((iVe(),qdt),e)}function fEt(e){return Z4(),Cn((yWe(),Zdt),e)}function hEt(e){return wj(),Cn((HUe(),l1t),e)}function dEt(e){return os(),Cn((EBe(),u1t),e)}function gEt(e){return VH(),Cn((kWe(),h1t),e)}function pEt(e){return Of(),Cn((OWe(),O1t),e)}function mEt(e){return Ov(),Cn((pVe(),S1t),e)}function bEt(e){return pH(),Cn((QUe(),D1t),e)}function wEt(e){return rk(),Cn((LVe(),_1t),e)}function vEt(e){return ow(),Cn((eWe(),A1t),e)}function xEt(e){return eQ(),Cn((MXe(),N1t),e)}function yEt(e){return B7(),Cn((CWe(),L1t),e)}function kEt(e){return NH(),Cn((zJe(),P1t),e)}function OEt(e){return hL(),Cn((GXe(),I1t),e)}function jEt(e){return ED(),Cn((GUe(),R1t),e)}function SEt(e){return gm(),Cn((FJe(),B1t),e)}function TEt(e){return BG(),Cn((DVe(),z1t),e)}function CEt(e){return yD(),Cn((UUe(),F1t),e)}function EEt(e){return sL(),Cn((NVe(),q1t),e)}function MEt(e){return Gj(),Cn((_Ve(),H1t),e)}function AEt(e){return Qs(),Cn((rKe(),G1t),e)}function NEt(e){return kj(),Cn((BJe(),Q1t),e)}function _Et(e){return I0(),Cn((RJe(),U1t),e)}function DEt(e){return _1(),Cn(($Je(),W1t),e)}function LEt(e){return tH(),Cn((JUe(),V1t),e)}function PEt(e){return Su(),Cn((bVe(),K1t),e)}function IEt(e){return rH(),Cn((WUe(),Y1t),e)}function REt(e){return kv(),Cn((SWe(),Fpt),e)}function $Et(e){return _7(),Cn((WJe(),zpt),e)}function BEt(e){return q7(),Cn((wVe(),qpt),e)}function zEt(e){return U0(),Cn((iKe(),Hpt),e)}function FEt(e){return gL(),Cn((QXe(),Bpt),e)}function qEt(e){return $1(),Cn((TWe(),Gpt),e)}function HEt(e){return TD(),Cn((VUe(),Qpt),e)}function GEt(e){return Gs(),Cn((qJe(),Jpt),e)}function QEt(e){return UH(),Cn((HJe(),Wpt),e)}function UEt(e){return N7(),Cn((GJe(),Vpt),e)}function JEt(e){return Ej(),Cn((QJe(),Xpt),e)}function WEt(e){return AH(),Cn((UJe(),Kpt),e)}function VEt(e){return JH(),Cn((JJe(),Ypt),e)}function XEt(e){return mm(),Cn((jWe(),bmt),e)}function KEt(e){return b7(),Cn((XUe(),kmt),e)}function YEt(e){return td(),Cn((KUe(),Mmt),e)}function ZEt(e){return bh(),Cn((YUe(),Nmt),e)}function eMt(e){return Xf(),Cn((ZUe(),Umt),e)}function tMt(e,t){return Ft(e),e+(Ft(t),t)}function nMt(e){return Yb(),Cn((eJe(),Zmt),e)}function iMt(e){return ek(),Cn((NWe(),ebt),e)}function rMt(e){return sC(),Cn((MBe(),tbt),e)}function sMt(e){return M7(),Cn((tWe(),nbt),e)}function oMt(e){return A7(),Cn((EWe(),Sbt),e)}function cMt(e){return Yq(),Cn((tJe(),Tbt),e)}function lMt(e){return BH(),Cn((nJe(),Nbt),e)}function uMt(e){return LG(),Cn((mVe(),Dbt),e)}function aMt(e){return bH(),Cn((iJe(),Lbt),e)}function fMt(e){return qD(),Cn((nWe(),Pbt),e)}function hMt(e){return SG(),Cn((MWe(),twt),e)}function dMt(e){return GH(),Cn((VJe(),nwt),e)}function gMt(e){return hG(),Cn((XJe(),iwt),e)}function pMt(e){return IG(),Cn((AWe(),swt),e)}function mMt(e){return cG(),Cn((iWe(),lwt),e)}function V6(){V6=W,p9e=(Ve(),Zt),QJ=sn}function Ru(){Ru=W,v1t=new f8,x1t=new fg}function X_(){X_=W,RU=new bX,$U=new cA}function uq(){uq=W,g1t=new IX,d1t=new RX}function bMt(e){return!e.e&&(e.e=new Qe),e.e}function wMt(e){return tC(),Cn((vVe(),Lwt),e)}function vMt(e){return uF(),Cn((mUe(),Iwt),e)}function xMt(e){return UD(),Cn((KJe(),Pwt),e)}function yMt(e){return aF(),Cn((bUe(),$wt),e)}function kMt(e){return mD(),Cn((sJe(),Bwt),e)}function OMt(e){return cL(),Cn((xVe(),zwt),e)}function jMt(e){return lH(),Cn((rJe(),Awt),e)}function SMt(e){return wH(),Cn((YJe(),Nwt),e)}function TMt(e){return tG(),Cn((ZJe(),_wt),e)}function CMt(e){return ST(),Cn((wUe(),n2t),e)}function EMt(e){return RD(),Cn((oJe(),i2t),e)}function MMt(e){return iH(),Cn((cJe(),r2t),e)}function AMt(e){return MG(),Cn((_We(),o2t),e)}function NMt(e){return fF(),Cn((vUe(),p2t),e)}function _Mt(e){return hF(),Cn((xUe(),b2t),e)}function DMt(e){return dF(),Cn((yUe(),v2t),e)}function LMt(e){return MD(),Cn((lJe(),y2t),e)}function PMt(e){return jh(),Cn((gVe(),C2t),e)}function IMt(e){return Q0(),Cn((AXe(),M2t),e)}function RMt(e){return Hd(),Cn((RVe(),A2t),e)}function $Mt(e){return xm(),Cn((IVe(),I2t),e)}function BMt(e){return _r(),Cn((nVe(),lvt),e)}function zMt(e){return Mj(),Cn((DWe(),uvt),e)}function FMt(e){return kh(),Cn((sWe(),avt),e)}function qMt(e){return R1(),Cn((LWe(),fvt),e)}function HMt(e){return RG(),Cn((PVe(),hvt),e)}function GMt(e){return I1(),Cn((rWe(),gvt),e)}function QMt(e){return Gu(),Cn((PWe(),mvt),e)}function UMt(e){return Cv(),Cn((HXe(),bvt),e)}function JMt(e){return qy(),Cn((dVe(),wvt),e)}function WMt(e){return es(),Cn(($Ve(),vvt),e)}function VMt(e){return Ul(),Cn((BVe(),xvt),e)}function XMt(e){return y7(),Cn((cWe(),Tvt),e)}function KMt(e){return Ve(),Cn((tVe(),yvt),e)}function YMt(e){return Cu(),Cn((RWe(),Cvt),e)}function ZMt(e){return uu(),Cn((qXe(),Evt),e)}function eAt(e){return X4(),Cn((oWe(),Mvt),e)}function tAt(e){return sH(),Cn((IWe(),Avt),e)}function nAt(e){return lG(),Cn(($We(),Nvt),e)}function iAt(e){return XH(),Cn((BWe(),Lvt),e)}function YZ(e,t){this.c=e,this.a=t,this.b=t-e}function xu(e,t,n){this.c=e,this.a=t,this.b=n}function nqe(e,t,n){this.a=e,this.c=t,this.b=n}function iqe(e,t,n){this.a=e,this.c=t,this.b=n}function rqe(e,t,n){this.a=e,this.b=t,this.c=n}function ope(e,t,n){this.a=e,this.b=t,this.c=n}function cpe(e,t,n){this.a=e,this.b=t,this.c=n}function ZZ(e,t,n){this.a=e,this.b=t,this.c=n}function sqe(e,t,n){this.a=e,this.b=t,this.c=n}function lpe(e,t,n){this.a=e,this.b=t,this.c=n}function oqe(e,t,n){this.a=e,this.b=t,this.c=n}function cqe(e,t,n){this.b=e,this.a=t,this.c=n}function Eg(e,t,n){this.e=e,this.a=t,this.c=n}function lqe(e,t,n){da(),Ome.call(this,e,t,n)}function eee(e,t,n){da(),rme.call(this,e,t,n)}function upe(e,t,n){da(),rme.call(this,e,t,n)}function ape(e,t,n){da(),rme.call(this,e,t,n)}function uqe(e,t,n){da(),eee.call(this,e,t,n)}function fpe(e,t,n){da(),eee.call(this,e,t,n)}function aqe(e,t,n){da(),fpe.call(this,e,t,n)}function fqe(e,t,n){da(),upe.call(this,e,t,n)}function hqe(e,t,n){da(),ape.call(this,e,t,n)}function rAt(e){return ak(),Cn((NXe(),Jvt),e)}function K_(e,t){return $n(e),$n(t),new wRe(e,t)}function M4(e,t){return $n(e),$n(t),new xqe(e,t)}function sAt(e,t){return $n(e),$n(t),new yqe(e,t)}function oAt(e,t){return $n(e),$n(t),new CRe(e,t)}function hpe(e,t){Q8t.call(this,e,sG(new Qo(t)))}function dqe(e,t){this.c=e,this.b=t,this.a=!1}function dpe(e){this.d=e,kt(this),this.b=KAt(e.d)}function gpe(e,t,n){this.c=e,pF.call(this,t,n)}function cAt(e,t,n){hHe.call(this,t,n),this.a=e}function gqe(){this.a=";,;",this.b="",this.c=""}function pqe(e,t,n){this.b=e,jBe.call(this,t,n)}function lAt(e,t){t&&(e.b=t,e.a=(M0(t),t.a))}function tee(e){return pn(e.b!=0),wa(e,e.a.a)}function uAt(e){return pn(e.b!=0),wa(e,e.c.b)}function aAt(e){return!e.c&&(e.c=new Qf),e.c}function mqe(e){var t;return t=new mY,zte(t,e),t}function Y_(e){var t;return t=new _i,zte(t,e),t}function X6(e){var t;return t=new Qe,Cte(t,e),t}function fAt(e){var t;return t=new Tr,Cte(t,e),t}function c(e,t){return YT(e==null||$ne(e,t)),e}function aq(e,t){return t&&Iq(e,t.d)?t:null}function Z_(e,t){if(!e)throw K(new Ht(t))}function ppe(e,t){if(!e)throw K(new yIe(t))}function A4(e,t){if(!e)throw K(new oo(t))}function hAt(e,t){return lF(),pc(e.d.p,t.d.p)}function dAt(e,t){return D1(),Ci(e.e.b,t.e.b)}function gAt(e,t){return D1(),Ci(e.e.a,t.e.a)}function pAt(e,t){return pc(Aqe(e.d),Aqe(t.d))}function mAt(e,t){return t==(Ve(),Zt)?e.c:e.d}function bAt(e){return new He(e.c+e.b,e.d+e.a)}function mpe(e){var t,n;n=e.d,t=e.a,e.d=t,e.a=n}function bpe(e){var t,n;t=e.b,n=e.c,e.b=n,e.c=t}function Id(e,t,n,i,r){e.b=t,e.c=n,e.d=i,e.a=r}function wpe(e,t,n,i,r){e.d=t,e.c=n,e.a=i,e.b=r}function bqe(e,t,n,i,r){e.c=t,e.d=n,e.b=i,e.a=r}function fq(e,t){return mRt(e),e.a*=t,e.b*=t,e}function vpe(e,t){return t<0?e.g=-1:e.g=t,e}function eD(e,t,n){Fge.call(this,e,t),this.c=n}function xpe(e,t,n){q6.call(this,e,t),this.b=n}function ype(e){tpe(),B8.call(this),this._h(e)}function hq(e,t,n){Fge.call(this,e,t),this.c=n}function wqe(e,t,n){this.a=e,yy.call(this,t,n)}function vqe(e,t,n){this.a=e,yy.call(this,t,n)}function nee(e){this.b=e,this.a=Kp(this.b.a).Md()}function xqe(e,t){this.b=e,this.a=t,zN.call(this)}function yqe(e,t){this.a=e,this.b=t,zN.call(this)}function kqe(e){y0e.call(this,e.length,0),this.a=e}function kpe(e,t,n){cxe(n,0,e,t,n.length,!1)}function K6(e,t,n){var i;i=new iv(n),xf(e,t,i)}function wAt(e,t){var n;return n=e.c,Vbe(e,t),n}function vAt(e,t){return(aYe(e)<<4|aYe(t))&Dr}function Oqe(e){return e!=null&&!One(e,cM,lM)}function tD(e){return e==0||isNaN(e)?e:e<0?-1:1}function Ope(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function ni(e,t){return sr(e,t,e.c.b,e.c),!0}function dq(e){var t;return t=e.slice(),yte(t,e)}function gq(e){var t;return t=e.n,e.a.b+t.d+t.a}function jqe(e){var t;return t=e.n,e.e.b+t.d+t.a}function jpe(e){var t;return t=e.n,e.e.a+t.b+t.c}function Sqe(e){return vi(),new Rd(0,e)}function Tqe(){Tqe=W,rfe=(Mt(),new lY(Foe))}function pq(){pq=W,new L2e((OY(),Zoe),(kY(),Yoe))}function Cqe(){aj(),NNt.call(this,(O0(),rf))}function Eqe(e,t){hHe.call(this,t,1040),this.a=e}function Gb(e,t){return U7(e,new q6(t.a,t.b))}function xAt(e){return!vs(e)&&e.c.i.c==e.d.i.c}function yAt(e,t){return e.c<t.c?-1:e.c==t.c?0:1}function Mqe(e){return e.b.c.length-e.e.c.length}function Aqe(e){return e.e.c.length-e.g.c.length}function iee(e){return e.e.c.length+e.g.c.length}function Nqe(e){return Q4(),Ce(VJ,WQ,41,e,0,1)}function _qe(){_qe=W,Hke=Ce(Pr,Ge,15,256,0,1)}function Dqe(){this.b=ge(be(Ke((Tf(),jce))))}function kAt(e){return Bu(),(Ve(),al).Gc(e.j)}function OAt(e,t,n){return D1(),n.e.a+n.f.a+e*t}function jAt(e,t,n){return D1(),n.e.b+n.f.b+e*t}function SAt(e,t,n){return ci(e.b,c(n.b,17),t)}function TAt(e,t,n){return ci(e.b,c(n.b,17),t)}function CAt(e,t){return Ue(e,new He(t.a,t.b))}function EAt(e,t){Xbe(e,t==null?null:(Ft(t),t))}function MAt(e,t){Ybe(e,t==null?null:(Ft(t),t))}function AAt(e,t){Ybe(e,t==null?null:(Ft(t),t))}function Spe(e,t,n,i){T2e.call(this,e,t,n,i,0,0)}function mq(e,t){R_.call(this,e,t),this.a=this}function Lqe(e){tpe(),ype.call(this,e),this.a=-1}function Pqe(){yZ.call(this,"COUNT_CHILDREN",0)}function Tpe(e){this.c=e,this.b=this.c.d.vc().Jc()}function Iqe(e){return e.e.Pd().gc()*e.c.Pd().gc()}function ree(e,t,n){return new GFe(PNt(e).Ze(),n,t)}function Kn(e,t,n){return e.a=-1,k0e(e,t.g,n),e}function Cpe(e,t,n){var i;return i=e[t],e[t]=n,i}function er(e,t){var n;return n=Cee(e,t),n.i=2,n}function bq(e,t){var n;return++e.j,n=e.Aj(t),n}function NAt(e){return e.a?e.a:Iee(e)}function YT(e){if(!e)throw K(new _6(null))}function Epe(e){if(e.c.e!=e.a)throw K(new fa)}function Mpe(e){if(e.e.c!=e.b)throw K(new fa)}function wq(e){for($n(e);e.Ob();)e.Pb(),e.Qb()}function _At(e){e.a.jd(),c(e.a.kd(),18).gc(),$1e()}function vq(){vq=W,nce=new Kee((Mt(),Mt(),Is))}function see(){see=W,_ke=new age((Mt(),Mt(),CU))}function Rqe(){Rqe=W,zke=Ce(Sk,Ge,224,256,0,1)}function $qe(){$qe=W,qke=Ce(UC,Ge,183,128,0,1)}function Bqe(){Bqe=W,Gke=Ce(_w,Ge,192,256,0,1)}function zqe(){zqe=W,Jke=Ce(Dw,Ge,193,256,0,1)}function Ape(){Id(this,!1,!1,!1,!1)}function Npe(e){Yde.call(this,new _0),Os(this,e)}function Y2(e){this.a=new p4(e.gc()),Os(this,e)}function Fqe(e){this.c=e,this.a=new m4(this.c.a)}function Tt(e,t){Jp(),mte.call(this,e),this.a=t}function Xe(e,t){return pt(t,e.c.length),e.c[t]}function qqe(e,t){return pt(t,e.a.length),e.a[t]}function Hqe(e,t){return e.a+=od(t,0,t.length),e}function DAt(e,t){return e.a==null&&art(e),e.a[t]}function LAt(e,t,n){return pc(t.d[e.g],n.d[e.g])}function PAt(e,t,n){return pc(e.d[t.p],e.d[n.p])}function IAt(e,t,n){return pc(e.d[t.p],e.d[n.p])}function RAt(e,t,n){return pc(e.d[t.p],e.d[n.p])}function $At(e,t,n){return pc(e.d[t.p],e.d[n.p])}function BAt(e,t){return Ft(e),_D(e,(Ft(t),t))}function zAt(e,t){return Ft(t),_D(t,(Ft(e),e))}function Gqe(e){return e.q?e.q:(Mt(),Mt(),Yd)}function Qqe(e){return e.c-c(Xe(e.a,e.b),296).b}function Uqe(e,t){return e?0:p.Math.max(0,t-1)}function xq(e,t,n){return p.Math.min(n/e,1/t)}function Z2(e,t,n,i,r,o){return Met(e,t,n,i,r,0,o)}function yq(e,t,n,i){wpe(this,e,t,n,i)}function FAt(e,t){var n;for(n=0;n<t;++n)e[n]=-1}function Jqe(e){var t;return t=Aet(e),t?Jqe(t):e}function yu(e){return e.c?e.c.f:e.e.b}function Nl(e){return e.c?e.c.g:e.e.a}function kq(e){tw.call(this,e.gc()),dr(this,e)}function Wqe(){Tn.call(this,"SIMPLE_X_PLACING",0)}function Vqe(){Tn.call(this,"SIMPLE_Y_PLACING",0)}function Xqe(e){this.a=e,this.c=new xn,Q$t(this)}function Kqe(e){this.b=new _i,this.a=e,this.c=-1}function Rd(e,t){vi(),Nb.call(this,e),this.a=t}function Oq(e,t){da(),Fz.call(this,t),this.a=e}function ZT(e,t,n){this.a=e,Nr.call(this,t,n,2)}function Xp(e,t,n){cv(t,e.c.length),AT(e.c,t,n)}function qAt(e,t){return!e&&(e=[]),e[e.length]=t,e}function oee(e,t,n){DKe(0,t,e.length),hj(e,0,t,n)}function Yqe(e,t,n){var i;for(i=0;i<t;++i)e[i]=n}function Li(e,t){var n;return n=bt(e),Twe(n,t),n}function cee(e,t){return he(t,23)&&Al(e,c(t,23))}function Zqe(e,t){return he(t,23)&&fRt(e,c(t,23))}function co(e,t){return FKe(e,t,_Pt(e,e.b.Ae(t)))}function HAt(e,t){return e.a.get(t)!==void 0}function lee(e,t){return e==null?t==null:jt(e,t)}function GAt(e,t){return e==null?t==null:gG(e,t)}function jq(e,t){return vi(),new Wpe(e,t)}function Qn(e){return Oo(e)?e|0:iRe(e)}function uee(){uee=W,Ivt=new Qr((Pn(),fu),0)}function eHe(){eHe=W,qft=new kqe(Ce(Br,It,1,0,5,1))}function tHe(){this.b=new K9,this.c=new BGe(this)}function _pe(){this.d=new c2,this.e=new $Ge(this)}function aee(e,t){this.b=new _i,this.a=e,this.c=t}function Dpe(){Eme(),this.g=new _i,this.f=new _i}function QAt(e,t){fee(e,Hr(new He(t.a,t.b),e.c))}function fee(e,t){ji(e.c,t),e.b.c+=t.a,e.b.d+=t.b}function Sq(e){e.b?Sq(e.b):e.d.dc()&&e.f.c.Ac(e.e)}function Lpe(e){return Array.isArray(e)&&e.Rm===le}function hee(e){return lu(e,26)*mC+lu(e,27)*bC}function UAt(e,t,n){return Cr(e,new b4(t.a,n.a))}function JAt(e,t,n){return-pc(e.f[t.p],e.f[n.p])}function Tq(e,t,n){var i;e&&(i=e.i,i.c=t,i.b=n)}function Cq(e,t,n){var i;e&&(i=e.i,i.d=t,i.a=n)}function Uc(e,t,n){return e.a=-1,k0e(e,t.g+1,n),e}function Ppe(e,t,n){return n=Uu(e,c(t,52),7,n),n}function Ipe(e,t,n){return n=Uu(e,c(t,52),3,n),n}function WAt(e,t,n){Wnt(n,e,1),Ue(t,new p$e(n,e))}function VAt(e,t,n){Q7(n,e,1),Ue(t,new y$e(n,e))}function nHe(e,t,n){this.a=e,XF.call(this,t,n,22)}function iHe(e,t,n){this.a=e,XF.call(this,t,n,14)}function rHe(e,t,n,i){da(),VQe.call(this,e,t,n,i)}function sHe(e,t,n,i){da(),VQe.call(this,e,t,n,i)}function XAt(e,t){(t.Bb&sc)!=0&&!e.a.o&&(e.a.o=t)}function oHe(e){return e!=null&&wee(e)&&e.Rm!==le}function Rpe(e){return!Array.isArray(e)&&e.Rm===le}function KAt(e){return he(e,16)?c(e,16).cd():e.Jc()}function $pe(e){return e.Oc(Ce(Br,It,1,e.gc(),5,1))}function e7(e,t){return wFt(jD(e,t))?t.wi():null}function Kp(e){return e.c?e.c:e.c=e.Qd()}function dee(e){return e.d?e.d:e.d=e.Rd()}function N4(e){var t;return t=e.i,t||(e.i=e.bc())}function cHe(e){var t;return t=e.f,t||(e.f=e.Cc())}function lHe(e){return vi(),new Hee(10,e,0)}function Yp(e){j0(),this.a=0,this.b=e-1,this.c=1}function uHe(e){WF(this),this.g=e,zq(this),this.he()}function aHe(){Bu(),this.k=new xn,this.d=new Tr}function Bpe(e,t,n,i){this.a=e,gH.call(this,e,t,n,i)}function Gt(e){this.a=(eHe(),qft),this.d=c($n(e),51)}function Eq(e){if(e.e.j!=e.d)throw K(new fa)}function t7(e){return Oo(e)?""+e:trt(e)}function $d(e,t){return P0(dtt(Oo(e)?Ha(e):e,t))}function Qb(e,t){return P0(mxe(Oo(e)?Ha(e):e,t))}function Zp(e,t){return P0(lUt(Oo(e)?Ha(e):e,t))}function YAt(e,t){return Vp((Ft(e),e),(Ft(t),t))}function gee(e,t){return Ci((Ft(e),e),(Ft(t),t))}function fHe(e,t){return $n(t),e.a.Hd(t)&&!e.b.Hd(t)}function ZAt(e,t){return rl(e.l&t.l,e.m&t.m,e.h&t.h)}function eNt(e,t){return rl(e.l|t.l,e.m|t.m,e.h|t.h)}function tNt(e,t){return rl(e.l^t.l,e.m^t.m,e.h^t.h)}function ev(e,t){return QD(e,(Ft(t),new n_e(t)))}function _4(e,t){return QD(e,(Ft(t),new i_e(t)))}function nNt(e,t,n){e.a.Mb(n)&&(e.b=!0,t.Ad(n))}function zpe(e){e.d||(e.d=e.b.Jc(),e.c=e.b.gc())}function Y6(e,t){if(e<0||e>=t)throw K(new yPe)}function lc(e){e.f=new BBe(e),e.i=new zBe(e),++e.g}function Mq(e){this.b=new Wc(11),this.a=(Xb(),e)}function pee(e){this.b=null,this.a=(Xb(),e||tOe)}function Fpe(e,t){this.e=e,this.d=(t&64)!=0?t|ad:t}function hHe(e,t){this.c=0,this.d=e,this.b=t|64|ad}function dHe(e){this.a=SZe(e.a),this.b=new Hl(e.b)}function Mg(e,t,n,i){var r;r=e.i,r.i=t,r.a=n,r.b=i}function qpe(e){var t;for(t=e;t.f;)t=t.f;return t}function iNt(e){return e.e?abe(e.e):null}function rNt(e,t){return J4(),Ci(t.a.o.a,e.a.o.a)}function gHe(e,t,n){return Vj(),Qte(e,t)&&Qte(e,n)}function n7(e){return Ul(),!e.Gc(Z1)&&!e.Gc(pp)}function pHe(e,t,n){return Xot(e,c(t,12),c(n,12))}function mHe(e){return Ll(),c(e,12).g.c.length!=0}function bHe(e){return Ll(),c(e,12).e.c.length!=0}function Aq(e){return new He(e.c+e.b/2,e.d+e.a/2)}function mee(e,t){return t.Sh()?B0(e.b,c(t,52)):t}function sNt(e,t,n){t.of(n,ge(be(Jt(e.b,n)))*e.a)}function oNt(e,t){t.Tg("General 'Rotator",1),Btn(e)}function Ur(e,t,n,i,r){wte.call(this,e,t,n,i,r,-1)}function i7(e,t,n,i,r){wD.call(this,e,t,n,i,r,-1)}function Le(e,t,n,i){Nr.call(this,e,t,n),this.b=i}function Nq(e,t,n,i){eD.call(this,e,t,n),this.b=i}function wHe(e){gBe.call(this,e,!1),this.a=!1}function vHe(){yZ.call(this,"LOOKAHEAD_LAYOUT",1)}function xHe(){yZ.call(this,"LAYOUT_NEXT_LEVEL",3)}function yHe(){Tn.call(this,"ABSOLUTE_XPLACING",0)}function kHe(e){this.b=e,T4.call(this,e),Sze(this)}function OHe(e){this.b=e,F_.call(this,e),Tze(this)}function jHe(e,t){this.b=e,v6.call(this,e.b),this.a=t}function tv(e,t,n){this.a=e,C4.call(this,t,n,5,6)}function Hpe(e,t,n,i){this.b=e,Nr.call(this,t,n,i)}function em(e,t,n){ld(),this.e=e,this.d=t,this.a=n}function ps(e,t){for(Ft(t);e.Ob();)t.Ad(e.Pb())}function _q(e,t){return vi(),new ime(e,t,0)}function bee(e,t){return vi(),new ime(6,e,t)}function cNt(e,t){return jt(e.substr(0,t.length),t)}function Ac(e,t){return Yr(t)?zee(e,t):!!co(e.f,t)}function lNt(e){return rl(~e.l&au,~e.m&au,~e.h&H1)}function wee(e){return typeof e===SL||typeof e===hre}function Bd(e){return new Gt(new h0e(e.a.length,e.a))}function vee(e){return new Tt(null,mNt(e,e.length))}function SHe(e){if(!e)throw K(new Eo);return e.d}function D4(e){var t;return t=E7(e),pn(t!=null),t}function uNt(e){var t;return t=izt(e),pn(t!=null),t}function Z6(e,t){var n;return n=e.a.gc(),lbe(t,n),n-t}function Cr(e,t){var n;return n=e.a.yc(t,e),n==null}function nD(e,t){return e.a.yc(t,(zt(),ep))==null}function aNt(e,t){return e>0?p.Math.log(e/t):-100}function Gpe(e,t){return t?Os(e,t):!1}function L4(e,t,n){return kf(e.a,t),Cpe(e.b,t.g,n)}function fNt(e,t,n){Y6(n,e.a.c.length),Ou(e.a,n,t)}function Oe(e,t,n,i){DKe(t,n,e.length),hNt(e,t,n,i)}function hNt(e,t,n,i){var r;for(r=t;r<n;++r)e[r]=i}function Qpe(e,t){var n;for(n=0;n<t;++n)e[n]=!1}function Upe(e,t){if(e==null)throw K(new h4(t))}function iD(e,t){lze(e,he(t,164)?t:c(t,2015).Pl())}function dNt(e,t,n){Gtn(e.a,e.b,e.d,e.c,c(t,171),n)}function $u(e,t,n){return wBt(e,t.g,n),kf(e.c,t),e}function gNt(e){return Zy(e,(_r(),go)),e.d=!0,e}function xee(e){return!e.j&&cn(e,PKt(e.g,e.b)),e.j}function pNt(e,t,n){var i;return i=fv(e,t),nte(e,t,n),i}function Jpe(e,t,n){this.c=e,this.a=t,Mt(),this.b=n}function yee(e,t){this.d=e,ln.call(this,e),this.e=t}function Wpe(e,t){Nb.call(this,1),this.a=e,this.b=t}function r7(e){U2(e.b!=-1),Ng(e.c,e.a=e.b),e.b=-1}function THe(e){e.a=null,e.e=null,lc(e.b),e.d=0,++e.c}function s7(e){return e.e==0?e:new em(-e.e,e.d,e.a)}function mNt(e,t){return cRt(t,e.length),new Eqe(e,t)}function CHe(e,t){return Lc(e,t)<0?-1:Lc(e,t)>0?1:0}function bNt(e,t){return Ci(e.c.c+e.c.b,t.c.c+t.c.b)}function Dq(e,t){sr(e.d,t,e.b.b,e.b),++e.a,e.c=null}function EHe(e,t){return e.c?EHe(e.c,t):Ue(e.b,t),e}function Ub(e,t){hr(Jc(e.Mc(),new S5),new uDe(t))}function ej(e,t,n,i,r){uie(e,c(Ti(t.k,n),16),n,i,r)}function MHe(e,t,n,i,r){for(;t<n;)i[r++]=bs(e,t++)}function AHe(e,t,n){var i;for(i=0;i<t;++i)br(e,i,n)}function Lq(e){e.s=NaN,e.c=NaN,Rnt(e,e.e),Rnt(e,e.j)}function kee(e){return p.Math.abs(e.d.e-e.e.e)-e.a}function wNt(e,t){return Ci(e.e.a+e.f.a,t.e.a+t.f.a)}function vNt(e,t){return Ci(e.e.b+e.f.b,t.e.b+t.f.b)}function Oee(e,t){this.d=rzt(e),this.c=t,this.a=.5*t}function nv(e){this.d=(Ft(e),e),this.a=0,this.c=ML}function NHe(e){xme.call(this),this.a=e,Ue(e.a,this)}function Vpe(e){e?kve(e,(Sg(),tht)):tDt((Sg(),e))}function xNt(e,t){P4(e,new iv(t.f!=null?t.f:""+t.g))}function yNt(e,t){P4(e,new iv(t.f!=null?t.f:""+t.g))}function dr(e,t){return e.Qi()&&(t=uQe(e,t)),e.Di(t)}function jee(e,t){return t=e.Wk(null,t),Jet(e,null,t)}function _He(e,t,n){return vi(),new _Qe(e,t,n)}function kNt(e,t,n){return c(e.c.fd(t,c(n,138)),45)}function ONt(){return Vz(),ee(Z(Hft,1),Re,541,0,[tce])}function jNt(e){return e==or?cP:e==Gr?"-INF":""+e}function SNt(e){return e==or?cP:e==Gr?"-INF":""+e}function bn(e){return(e.i==null&&ud(e),e.i).length}function E0(){E0=W,Ut=wJt(),At(),kx&&AHt()}function DHe(){DHe=W,Vft=new oT(!1),Xft=new oT(!0)}function o7(e){var t;return t=e.g,t||(e.g=new Oz(e))}function Pq(e){var t;return t=e.k,t||(e.k=new jz(e))}function Xpe(e){var t;return t=e.k,t||(e.k=new jz(e))}function TNt(e){var t;return t=e.i,t||(e.i=new VK(e))}function See(e){var t;return t=e.j,t||(e.j=new y6(e))}function LHe(e){var t;return t=e.f,t||(e.f=new l0e(e))}function Tee(e){var t;return t=e.d,t||(e.d=new nT(e))}function Kpe(e){return he(e,613)?e:new YGe(e)}function PHe(e,t){return hD(t,e.c.b.c.gc()),new bRe(e,t)}function Ype(e,t){var n;return n=e.a.gc(),hD(t,n),n-1-t}function M(e,t,n){var i;return i=Cee(e,t),HVe(n,i),i}function Cee(e,t){var n;return n=new kwe,n.j=e,n.d=t,n}function tj(e,t){return e.a+=String.fromCharCode(t),e}function tm(e,t){return e.a+=String.fromCharCode(t),e}function $n(e){if(e==null)throw K(new c4);return e}function iv(e){if(e==null)throw K(new c4);this.a=e}function IHe(e){b1e(),this.b=new Qe,this.a=e,qen(this,e)}function Zpe(e){this.b=e,this.a=c(Fa(this.b.a.e),229)}function eme(e){this.d=e,this.c=e.a.d.a,this.b=e.a.e.g}function RHe(e){this.b=new Qe,this.a=new Qe,this.c=e}function mc(e){this.c=new us,this.a=new Qe,this.b=e}function $He(){_0.call(this),this.a=!0,this.b=!0}function tme(e,t){return tn(t,e.length+1),e.substr(t)}function br(e,t,n){return U7t(n==null||vYt(e,n)),e[t]=n}function Eee(e,t,n){var i;return i=$te(e,t,n),Jxe(e,i)}function BHe(e,t){var n;n=console[e],n.call(console,t)}function Jt(e,t){return Yr(t)?Nc(e,t):Ao(co(e.f,t))}function zHe(e,t){return c(Kp(e.a).Kd().Xb(t),45).jd()}function CNt(e,t){return c($(t,(We(),Zv)),15).a<e}function ENt(e,t){return J4(),c(eo(e,t.d),16).Ec(t)}function MNt(e,t,n,i){return n==0||(n-i)/n<e.e||t>=e.g}function c7(e){return p.Math.sqrt(e.a*e.a+e.b*e.b)}function FHe(e){return he(e,104)&&(c(e,20).Bb&sc)!=0}function Jb(e){return!e.d&&(e.d=new Nr(Ks,e,1)),e.d}function ANt(e){return!e.a&&(e.a=new Nr(mp,e,4)),e.a}function qHe(e){this.c=e,this.a=new _i,this.b=new _i}function NNt(e){this.a=(Ft(Yn),Yn),this.b=e,new C1e}function HHe(e,t,n){this.a=e,Fme.call(this,8,t,null,n)}function nme(e,t,n){this.a=e,h1e.call(this,t),this.b=n}function ime(e,t,n){Nb.call(this,e),this.a=t,this.b=n}function rme(e,t,n){Fz.call(this,t),this.a=e,this.b=n}function _Nt(e,t,n){c(t.b,68),Vc(t.a,new ope(e,n,t))}function Mee(e,t){for(Ft(t);e.c<e.d;)e.Qe(t,e.c++)}function DNt(e,t){++e.j,lie(e,e.i,t),vJt(e,c(t,345))}function GHe(e,t){var n;++e.j,n=e.Cj(),e.pj(e.Xi(n,t))}function P4(e,t){var n;n=e.a.length,fv(e,n),nte(e,n,t)}function Wb(e,t){return Y6(t,e.a.c.length),Xe(e.a,t)}function Iq(e,t){return tie(e.c,e.f,t,e.b,e.a,e.e,e.d)}function S1(e,t){return Se(e)===Se(t)||e!=null&&ki(e,t)}function QHe(e){return Fa(e),he(e,475)?c(e,475):So(e)}function UHe(e){return e?e.dc():!e.Jc().Ob()}function LNt(e){return jx?zee(jx,e):!1}function PNt(e){return 0>=e?new nge:IRt(e-1)}function Fa(e){if(e==null)throw K(new c4);return e}function Ft(e){if(e==null)throw K(new c4);return e}function Jr(e){return!e.a&&e.c?e.c.b:e.a}function JHe(e){var t,n;return t=e.c.i.c,n=e.d.i.c,t==n}function INt(e,t){return pc(t.j.c.length,e.j.c.length)}function WHe(e){fme(e.a),e.b=Ce(Br,It,1,e.b.length,5,1)}function l7(e){e.c?e.c.Ye():(e.d=!0,CVt(e))}function M0(e){e.c?M0(e.c):(z0(e),e.d=!0)}function iu(e){U2(e.c!=-1),e.d.ed(e.c),e.b=e.c,e.c=-1}function VHe(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function XHe(e){this.c=e,this.b=this.c.a,this.a=this.c.e}function yr(){nIe.call(this),B2(this.j.c,0),this.a=-1}function KHe(){Tn.call(this,"DELAUNAY_TRIANGULATION",0)}function sme(e){for(;e.a.b!=0;)Otn(e,c(VGe(e.a),9))}function RNt(e,t){Dn((!e.a&&(e.a=new U_(e,e)),e.a),t)}function ome(e,t){e.c<0||e.b.b<e.c?Cs(e.b,t):e.a.vf(t)}function $Nt(e,t){var n;n=e.Fh(t),n>=0?e.hi(n):Yve(e,t)}function YHe(e,t){this.b=e,yee.call(this,e,t),Sze(this)}function ZHe(e,t){this.b=e,Z0e.call(this,e,t),Tze(this)}function eGe(){Mve.call(this,Wa,(I6(),bCe)),PZt(this)}function cme(e){return!e.b&&(e.b=new qz(new yY)),e.b}function BNt(e){if(e.p!=3)throw K(new El);return e.e}function zNt(e){if(e.p!=4)throw K(new El);return e.e}function FNt(e){if(e.p!=4)throw K(new El);return e.j}function qNt(e){if(e.p!=3)throw K(new El);return e.j}function HNt(e){if(e.p!=6)throw K(new El);return e.f}function GNt(e){if(e.p!=6)throw K(new El);return e.k}function Vb(e){return e.c==-2&&B(e,mQt(e.g,e.b)),e.c}function nj(e,t){var n;return n=Cee("",e),n.n=t,n.i=1,n}function zd(e,t){for(;t-- >0;)e=e<<1|(e<0?1:0);return e}function QNt(e,t){fee(c(t.b,68),e),Vc(t.a,new r1e(e))}function tGe(e,t){return pq(),new L2e(new Eze(e),new Cze(t))}function UNt(e,t,n){return V4(),n.Kg(e,c(t.jd(),149))}function JNt(e){return qu(e,mre),jH(As(As(5,e),e/10|0))}function lme(e){return Mt(),e?e.Me():(Xb(),Xb(),nOe)}function ci(e,t,n){return Yr(t)?lo(e,t,n):bl(e.f,t,n)}function WNt(e){return String.fromCharCode.apply(null,e)}function nGe(e){return!e.d&&(e.d=new T6(e.c.Bc())),e.d}function ij(e){return!e.a&&(e.a=new SIe(e.c.vc())),e.a}function iGe(e){return!e.b&&(e.b=new D6(e.c.ec())),e.b}function rGe(e,t){p7t.call(this,RRt($n(e),$n(t))),this.a=t}function ume(e,t,n,i){$b.call(this,e,t),this.d=n,this.a=i}function Rq(e,t,n,i){$b.call(this,e,n),this.a=t,this.f=i}function u7(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function sGe(){Mve.call(this,_m,(GIe(),yxt)),Ten(this)}function oGe(){Mo.call(this,"There is no more element.")}function bs(e,t){return tn(t,e.length),e.charCodeAt(t)}function cGe(e,t){e.u.Gc((Ul(),Z1))&&dJt(e,t),nIt(e,t)}function bc(e,t){return Se(e)===Se(t)||e!=null&&ki(e,t)}function eo(e,t){return cee(e.a,t)?e.b[c(t,23).g]:null}function lGe(e,t){var n;return n=new mc(e),Rt(t.c,n),n}function a7(e){return e.j.c.length=0,fme(e.c),ACt(e.a),e}function VNt(e){return!e.b&&(e.b=new Et(yn,e,4,7)),e.b}function rj(e){return!e.c&&(e.c=new Et(yn,e,5,8)),e.c}function ame(e){return!e.c&&(e.c=new Le(hu,e,9,9)),e.c}function Aee(e){return!e.n&&(e.n=new Le(Bo,e,1,7)),e.n}function fi(e,t,n,i){return TXe(e,t,n,!1),nG(e,i),e}function uGe(e,t){vne(e,ge(L1(t,"x")),ge(L1(t,"y")))}function aGe(e,t){vne(e,ge(L1(t,"x")),ge(L1(t,"y")))}function XNt(){return fF(),ee(Z(g2t,1),Re,557,0,[bae])}function KNt(){return hF(),ee(Z(m2t,1),Re,558,0,[wae])}function YNt(){return dF(),ee(Z(w2t,1),Re,559,0,[vae])}function ZNt(){return aF(),ee(Z(Rwt,1),Re,550,0,[nae])}function e_t(){return uF(),ee(Z(X8e,1),Re,480,0,[tae])}function t_t(){return ST(),ee(Z(bTe,1),Re,531,0,[UP])}function Nee(){Nee=W,Uft=new uge(ee(Z(Dm,1),pQ,45,0,[]))}function n_t(e,t){return new LGe(c($n(e),50),c($n(t),50))}function i_t(e){return e!=null&&yT(PW,e.toLowerCase())}function sj(e){return e.e==LS&&mn(e,kFt(e.g,e.b)),e.e}function rD(e){return e.f==LS&&en(e,wHt(e.g,e.b)),e.f}function Ay(e){var t;return t=e.b,!t&&(e.b=t=new WK(e)),t}function fme(e){var t;for(t=e.Jc();t.Ob();)t.Pb(),t.Qb()}function r_t(e,t,n){var i;i=c(e.d.Kb(n),163),i&&i.Nb(t)}function s_t(e,t){return Ci(e.d.c+e.d.b/2,t.d.c+t.d.b/2)}function o_t(e,t){return Ci(e.g.c+e.g.b/2,t.g.c+t.g.b/2)}function c_t(e,t){return sge(),Ci((Ft(e),e),(Ft(t),t))}function Jc(e,t){return z0(e),new Tt(e,new ube(t,e.a))}function bi(e,t){return z0(e),new Tt(e,new kbe(t,e.a))}function rv(e,t){return z0(e),new N0e(e,new yJe(t,e.a))}function $q(e,t){return z0(e),new _0e(e,new kJe(t,e.a))}function hme(e,t){this.b=e,this.c=t,this.a=new m4(this.b)}function _ee(e,t,n,i){this.a=e,this.e=t,this.d=n,this.c=i}function Dee(e,t,n){this.a=Vye,this.d=e,this.b=t,this.c=n}function Bq(e,t,n,i){this.a=e,this.c=t,this.b=n,this.d=i}function dme(e,t,n,i){this.c=e,this.b=t,this.a=n,this.d=i}function fGe(e,t,n,i){this.c=e,this.b=t,this.d=n,this.a=i}function hGe(e,t,n,i){this.a=e,this.d=t,this.c=n,this.b=i}function bf(e,t,n,i){this.c=e,this.d=t,this.b=n,this.a=i}function I4(e,t,n,i){Tn.call(this,e,t),this.a=n,this.b=i}function dGe(e,t,n,i){bKe.call(this,e,n,i,!1),this.f=t}function gGe(e,t){this.d=(Ft(e),e),this.a=16449,this.c=t}function pGe(e){this.a=new Qe,this.e=Ce(Hn,Ge,54,e,0,2)}function l_t(e){e.Tg("No crossing minimization",1),e.Ug()}function T1(e){var t,n;return n=(t=new _b,t),pj(n,e),n}function Lee(e){var t,n;return n=(t=new _b,t),_ve(n,e),n}function Pee(e,t,n){var i,r;return i=Iye(e),r=t.qi(n,i),r}function Iee(e){var t;return t=BRt(e),t||null}function mGe(e){return!e.b&&(e.b=new Le($i,e,12,3)),e.b}function oj(e){if(cu(e.d),e.d.d!=e.c)throw K(new fa)}function bGe(e,t,n,i){this.a=e,this.c=t,this.d=n,this.b=i}function wGe(e,t,n,i){this.a=e,this.b=t,this.d=n,this.c=i}function vGe(e,t,n,i){this.a=e,this.b=t,this.c=n,this.d=i}function xGe(e,t,n,i){this.a=e,this.b=t,this.c=n,this.d=i}function nm(e,t,n,i){this.e=e,this.a=t,this.c=n,this.d=i}function yGe(e,t,n,i){da(),OJe.call(this,t,n,i),this.a=e}function kGe(e,t,n,i){da(),OJe.call(this,t,n,i),this.a=e}function OGe(e,t){this.a=e,pCt.call(this,e,c(e.d,16).dd(t))}function Ree(e){this.f=e,this.c=this.f.e,e.f>0&&yet(this)}function zq(e){return e.n&&(e.e!==act&&e.he(),e.j=null),e}function jGe(e){return YT(e==null||wee(e)&&e.Rm!==le),e}function u_t(e,t,n){return Ue(e.a,(Une(t,n),new $b(t,n))),e}function a_t(e,t,n){MZt(e.a,n),P$t(n),KJt(e.b,n),XZt(t,n)}function f_t(e,t){return Ci(Nl(e)*yu(e),Nl(t)*yu(t))}function h_t(e,t){return Ci(Nl(e)*yu(e),Nl(t)*yu(t))}function d_t(e){Ru();var t;t=c(e.g,9),t.n.a=e.d.c+t.d.b}function ku(e){e.a.a=e.c,e.c.b=e.a,e.a.b=e.c.a=null,e.b=0}function gme(e,t){return e.b=t.b,e.c=t.c,e.d=t.d,e.a=t.a,e}function pme(e){return pn(e.b<e.d.gc()),e.d.Xb(e.c=e.b++)}function g_t(e){return e.length>0?vf(e):new Qe}function p_t(e,t){return c($(e,($e(),Pk)),16).Ec(t),t}function m_t(e,t){return St(e,c($(t,(We(),Zv)),15),t)}function b_t(e){return gw(e)&&it(nt(Ae(e,(We(),$m))))}function R4(e){var t;return t=e.f,t||(e.f=new B6(e,e.c))}function w_t(e,t,n){return jT(),Mzt(c(Jt(e.e,t),520),n)}function v_t(e,t,n){e.i=0,e.e=0,t!=n&&wKe(e,t,n)}function x_t(e,t,n){e.i=0,e.e=0,t!=n&&vKe(e,t,n)}function SGe(e,t,n,i){this.b=e,this.c=i,GF.call(this,t,n)}function TGe(e,t){this.g=e,this.d=ee(Z(e1,1),Qg,9,0,[t])}function CGe(e,t){e.d&&!e.d.a&&(fPe(e.d,t),CGe(e.d,t))}function EGe(e,t){e.e&&!e.e.a&&(fPe(e.e,t),EGe(e.e,t))}function MGe(e,t){return Fy(e.j,t.s,t.c)+Fy(t.e,e.s,e.c)}function y_t(e){return c(e.jd(),149).Og()+":"+So(e.kd())}function k_t(e,t){return-Ci(Nl(e)*yu(e),Nl(t)*yu(t))}function O_t(e,t){return ju(e),ju(t),bIe(c(e,23),c(t,23))}function im(e,t,n){var i,r;i=UZ(n),r=new k6(i),xf(e,t,r)}function j_t(e){Yz(),p.setTimeout(function(){throw e},0)}function AGe(e){this.b=new Qe,Or(this.b,this.b),this.a=e}function NGe(e){this.b=new sK,this.a=e,p.Math.random()}function mme(e,t){new _i,this.a=new nu,this.b=e,this.c=t}function _Ge(e,t,n,i){Fge.call(this,t,n),this.b=e,this.a=i}function $ee(e,t,n,i,r,o){wD.call(this,e,t,n,i,r,o?-2:-1)}function DGe(){pie(this,new W5),this.wb=(E0(),Ut),I6()}function bme(){bme=W,Oht=new d0,Sht=new _pe,jht=new Dp}function Mt(){Mt=W,Is=new ve,Yd=new Ee,CU=new ue}function Xb(){Xb=W,tOe=new Te,ace=new Te,nOe=new et}function Mi(e){return!e.q&&(e.q=new Le(nf,e,11,10)),e.q}function Pe(e){return!e.s&&(e.s=new Le(jl,e,21,17)),e.s}function Fq(e){return!e.a&&(e.a=new Le(Nn,e,10,11)),e.a}function qq(e,t){if(e==null)throw K(new h4(t));return e}function LGe(e,t){X9t.call(this,new pee(e)),this.a=e,this.b=t}function wme(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function vme(e){return e&&e.hashCode?e.hashCode():Hb(e)}function S_t(e){return new yze(e,e.e.Pd().gc()*e.c.Pd().gc())}function T_t(e){return new kze(e,e.e.Pd().gc()*e.c.Pd().gc())}function Bee(e){return he(e,18)?new Y2(c(e,18)):fAt(e.Jc())}function Hq(e){return Mt(),he(e,59)?new _Y(e):new ZF(e)}function C_t(e){return $n(e),IZe(new Gt(Xt(e.a.Jc(),new z)))}function zee(e,t){return t==null?!!co(e.f,null):HAt(e.i,t)}function E_t(e,t){var n;return n=s0e(e.a,t),n&&(t.d=null),n}function PGe(e,t,n){return e.f?e.f.cf(t,n):!1}function sD(e,t,n,i){br(e.c[t.g],n.g,i),br(e.c[n.g],t.g,i)}function Fee(e,t,n,i){br(e.c[t.g],t.g,n),br(e.b[t.g],t.g,i)}function M_t(e,t,n){return ge(be(n.a))<=e&&ge(be(n.b))>=t}function IGe(){this.d=new _i,this.b=new xn,this.c=new Qe}function RGe(){this.b=new Tr,this.d=new _i,this.e=new Jz}function xme(){this.c=new us,this.d=new us,this.e=new us}function Kb(){this.a=new nu,this.b=(qu(3,Lv),new Wc(3))}function $Ge(e){this.c=e,this.b=new jg(c($n(new EO),50))}function BGe(e){this.c=e,this.b=new jg(c($n(new oa),50))}function zGe(e){this.b=e,this.a=new jg(c($n(new ab),50))}function Ag(e,t){this.e=e,this.a=Br,this.b=wrt(t),this.c=t}function Gq(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}function FGe(e,t,n,i,r,o){this.a=e,Dte.call(this,t,n,i,r,o)}function qGe(e,t,n,i,r,o){this.a=e,Dte.call(this,t,n,i,r,o)}function A0(e,t,n,i,r,o,a){return new ste(e.e,t,n,i,r,o,a)}function A_t(e,t,n){return n>=0&&jt(e.substr(n,t.length),t)}function HGe(e,t){return he(t,149)&&jt(e.b,c(t,149).Og())}function N_t(e,t){return e.a?t.Dh().Jc():c(t.Dh(),72).Gi()}function GGe(e,t){var n;return n=e.b.Oc(t),RUe(n,e.b.gc()),n}function oD(e,t){if(e==null)throw K(new h4(t));return e}function wo(e){return e.u||(ru(e),e.u=new mFe(e,e)),e.u}function cj(){cj=W;var e,t;t=!uFt(),e=new me,sce=t?new se:e}function dl(e){var t;return t=c(Kt(e,16),29),t||e.fi()}function Qq(e,t){var n;return n=Up(e.Pm),t==null?n:n+": "+t}function qa(e,t,n){return as(t,n,e.length),e.substr(t,n-t)}function QGe(e,t){rq.call(this),Dbe(this),this.a=e,this.c=t}function UGe(){yZ.call(this,"FIXED_INTEGER_RATIO_BOXES",2)}function __t(){return tH(),ee(Z(tje,1),Re,425,0,[ble,eje])}function D_t(){return rH(),ee(Z(pje,1),Re,428,0,[Cle,Tle])}function L_t(){return TD(),ee(Z(n9e,1),Re,426,0,[sue,oue])}function P_t(){return pH(),ee(Z(M6e,1),Re,427,0,[E6e,Xce])}function I_t(){return ED(),ee(Z($6e,1),Re,424,0,[lJ,R6e])}function R_t(){return yD(),ee(Z(F6e,1),Re,479,0,[z6e,aJ])}function $_t(){return bh(),ee(Z(Amt,1),Re,512,0,[Hm,Ph])}function B_t(){return td(),ee(Z(Emt,1),Re,513,0,[Gw,Yg])}function z_t(){return Xf(),ee(Z(Qmt,1),Re,519,0,[cx,lp])}function F_t(){return b7(),ee(Z(ymt,1),Re,522,0,[EE,CE])}function q_t(){return Yb(),ee(Z(Ymt,1),Re,457,0,[up,A3])}function H_t(){return Yq(),ee(Z(K9e,1),Re,430,0,[Eue,X9e])}function G_t(){return BH(),ee(Z(Y9e,1),Re,490,0,[eW,D3])}function Q_t(){return bH(),ee(Z(e8e,1),Re,431,0,[Z9e,Lue])}function U_t(){return mD(),ee(Z(K8e,1),Re,433,0,[iae,fW])}function J_t(){return lH(),ee(Z(H8e,1),Re,481,0,[Kue,q8e])}function W_t(){return RD(),ee(Z(vTe,1),Re,432,0,[dW,wTe])}function V_t(){return MD(),ee(Z(x2t,1),Re,498,0,[yae,xae])}function X_t(){return iH(),ee(Z(yTe,1),Re,389,0,[uae,xTe])}function K_t(){return OH(),ee(Z(pOe,1),Re,429,0,[kce,_U])}function Y_t(){return wj(),ee(Z(c1t,1),Re,506,0,[pP,Pce])}function Uq(e,t,n,i){return n>=0?e.Rh(t,n,i):e.zh(null,n,i)}function cD(e){return e.b.b==0?e.a.uf():tee(e.b)}function Z_t(e){if(e.p!=5)throw K(new El);return Qn(e.f)}function eDt(e){if(e.p!=5)throw K(new El);return Qn(e.k)}function yme(e){return Se(e.a)===Se((qte(),tfe))&&xen(e),e.a}function tDt(e){e&&Qq(e,e.ge())}function JGe(e,t){Xde(this,new He(e.a,e.b)),l_(this,Y_(t))}function Yb(){Yb=W,up=new Mge(bk,0),A3=new Mge(wk,1)}function td(){td=W,Gw=new Sge(wk,0),Yg=new Sge(bk,1)}function nDt(e,t){e.c=t,e.c>0&&e.b>0&&(e.g=xq(e.c,e.b,e.a))}function iDt(e,t){e.b=t,e.c>0&&e.b>0&&(e.g=xq(e.c,e.b,e.a))}function WGe(e){var t;t=e.c.d.b,e.b=t,e.a=e.c.d,t.a=e.c.d.b=e}function VGe(e){return e.b==0?null:(pn(e.b!=0),wa(e,e.a.a))}function Nc(e,t){return t==null?Ao(co(e.f,null)):MT(e.i,t)}function XGe(e,t,n,i,r){return new bie(e,(dj(),gce),t,n,i,r)}function Jq(e,t){return BUe(t),jRt(e,Ce(Hn,li,30,t,15,1),t)}function Wq(e,t){return qq(e,"set1"),qq(t,"set2"),new DRe(e,t)}function rDt(e,t){var n=rce[e.charCodeAt(0)];return n??e}function KGe(e,t){var n,i;return n=t,i=new Jn,rot(e,n,i),i.d}function qee(e,t,n,i){var r;r=new kFe,t.a[n.g]=r,L4(e.b,i,r)}function sDt(e,t){var n;return n=xRt(e.f,t),ji(nq(n),e.f.d)}function f7(e){var t;_Rt(e.a),XBe(e.a),t=new $z(e.a),g2e(t)}function oDt(e,t){crt(e,!0),Vc(e.e.Pf(),new ipe(e,!0,t))}function YGe(e){this.a=c($n(e),279),this.b=(Mt(),new b0e(e))}function ZGe(e,t,n){this.i=new Qe,this.b=e,this.g=t,this.a=n}function Vq(e,t,n){this.c=new Qe,this.e=e,this.f=t,this.b=n}function kme(e,t,n){this.a=new Qe,this.e=e,this.f=t,this.c=n}function Hee(e,t,n){vi(),Nb.call(this,e),this.b=t,this.a=n}function Ome(e,t,n){da(),Fz.call(this,t),this.a=e,this.b=n}function eQe(e){rq.call(this),Dbe(this),this.a=e,this.c=!0}function Zb(){K9t.call(this,new p4(mv(12))),u0e(!0),this.a=2}function bh(){bh=W,Hm=new Tge(Wre,0),Ph=new Tge("UP",1)}function sv(e){return e.Db>>16!=3?null:c(e.Cb,19)}function wh(e){return e.Db>>16!=9?null:c(e.Cb,19)}function tQe(e){return e.Db>>16!=6?null:c(e.Cb,74)}function cDt(e){if(e.ye())return null;var t=e.n;return yU[t]}function lDt(e){function t(){}return t.prototype=e||{},new t}function nQe(e){var t;return t=new tF(mv(e.length)),Twe(t,e),t}function lD(e,t){var n;n=e.q.getHours(),e.q.setDate(t),cC(e,n)}function jme(e,t,n){var i;i=e.Fh(t),i>=0?e.$h(i,n):Cxe(e,t,n)}function Ny(e,t,n){Xq(),e&&ci(Yae,e,t),e&&ci(wI,e,n)}function uDt(e,t){return D1(),c($(t,(Wo(),yd)),15).a==e}function aDt(e,t){return uq(),zt(),c(t.b,15).a<e}function fDt(e,t){return uq(),zt(),c(t.a,15).a<e}function hDt(e,t){return WXe(e,t)?(JVe(e),!0):!1}function C1(e,t){if(t==null)throw K(new c4);return fFt(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($n(t),n=e.a;n;n=n.c)t.Wd(n.g,n.i)}function sQe(e,t){var n;return n=e.Fh(t),n>=0?e.Th(n):Oie(e,t)}function Gee(e,t,n){var i;i=gKe(e,t,n),e.b=new qH(i.c.length)}function oQe(e){this.a=e,this.b=Ce(wmt,Ge,2022,e.e.length,0,2)}function cQe(){this.a=new Ld,this.e=new Tr,this.g=0,this.i=0}function lQe(e,t){WF(this),this.f=t,this.g=e,zq(this),this.he()}function Qee(e,t){return p.Math.abs(e)<p.Math.abs(t)?e:t}function ys(e){return Math.max(Math.min(e,pi),-2147483648)|0}function dDt(e){return!e.a&&(e.a=new Le(Nn,e,10,11)),e.a.i>0}function Sme(e){var t;return t=e.d,t=e._i(e.f),Dn(e,t),t.Ob()}function uQe(e,t){var n;return n=new Npe(t),Ket(n,e),new Hl(n)}function gDt(e){if(e.p!=0)throw K(new El);return FT(e.f,0)}function pDt(e){if(e.p!=0)throw K(new El);return FT(e.k,0)}function aQe(e){return e.Db>>16!=7?null:c(e.Cb,244)}function lj(e){return e.Db>>16!=6?null:c(e.Cb,244)}function Tme(e){return e.Db>>16!=7?null:c(e.Cb,176)}function Ki(e){return e.Db>>16!=11?null:c(e.Cb,19)}function ov(e){return e.Db>>16!=17?null:c(e.Cb,29)}function fQe(e){return e.Db>>16!=3?null:c(e.Cb,159)}function Cme(e){var t;return z0(e),t=new Tr,bi(e,new u_e(t))}function hQe(e,t){var n=e.a=e.a||[];return n[t]||(n[t]=e.te(t))}function mDt(e,t){var n;n=e.q.getHours(),e.q.setMonth(t),cC(e,n)}function ks(e,t){e.c&&gl(e.c.g,e),e.c=t,e.c&&Ue(e.c.g,e)}function rs(e,t){e.d&&gl(e.d.e,e),e.d=t,e.d&&Ue(e.d.e,e)}function zr(e,t){e.c&&gl(e.c.a,e),e.c=t,e.c&&Ue(e.c.a,e)}function _o(e,t){e.i&&gl(e.i.j,e),e.i=t,e.i&&Ue(e.i.j,e)}function lo(e,t,n){return t==null?bl(e.f,null,n):lw(e.i,t,n)}function h7(e,t,n,i,r,o){return new N1(e.e,t,e.Jj(),n,i,r,o)}function bDt(e){return lne(),zt(),c(e.a,84).d.e!=0}function dQe(){dQe=W,Gft=En((Vz(),ee(Z(Hft,1),Re,541,0,[tce])))}function gQe(){gQe=W,Zpt=Uc(new yr,(ts(),Vs),(os(),Ak))}function pQe(){pQe=W,emt=Uc(new yr,(ts(),Vs),(os(),Ak))}function mQe(){mQe=W,tmt=Uc(new yr,(ts(),Vs),(os(),Ak))}function Eme(){Eme=W,nmt=Uc(new yr,(ts(),Vs),(os(),Ak))}function bQe(){bQe=W,rmt=Uc(new yr,(ts(),Vs),(os(),Ak))}function Mme(){Mme=W,smt=Uc(new yr,(ts(),Vs),(os(),Ak))}function wQe(){wQe=W,Omt=Kn(new yr,(ts(),Vs),(os(),eE))}function Bu(){Bu=W,Tmt=Kn(new yr,(ts(),Vs),(os(),eE))}function vQe(){vQe=W,Cmt=Kn(new yr,(ts(),Vs),(os(),eE))}function Uee(){Uee=W,_mt=Kn(new yr,(ts(),Vs),(os(),eE))}function xQe(){xQe=W,Cbt=Uc(new yr,(ek(),AE),(sC(),v9e))}function Xq(){Xq=W,Yae=new xn,wI=new xn,kTt(uht,new $8)}function yQe(e,t,n){this.a=t,this.c=e,this.b=($n(n),new Hl(n))}function kQe(e,t,n){this.a=t,this.c=e,this.b=($n(n),new Hl(n))}function OQe(e,t){this.a=e,this.c=Ms(this.a),this.b=new Gq(t)}function rm(e,t,n,i){this.c=e,this.d=i,Wee(this,t),Vee(this,n)}function $4(e){this.c=new _i,this.b=e.b,this.d=e.c,this.a=e.a}function Jee(e){this.a=p.Math.cos(e),this.b=p.Math.sin(e)}function Wee(e,t){e.a&&gl(e.a.k,e),e.a=t,e.a&&Ue(e.a.k,e)}function Vee(e,t){e.b&&gl(e.b.f,e),e.b=t,e.b&&Ue(e.b.f,e)}function jQe(e,t){_Nt(e,e.b,e.c),c(e.b.b,68),t&&c(t.b,68).b}function wDt(e,t){r2e(e,t),he(e.Cb,89)&&Tv(ru(c(e.Cb,89)),2)}function Xee(e,t){he(e.Cb,89)&&Tv(ru(c(e.Cb,89)),4),Xc(e,t)}function Kq(e,t){he(e.Cb,187)&&(c(e.Cb,187).tb=null),Xc(e,t)}function SQe(e,t){var n;return n=c(wv(R4(e.a),t),18),n?n.gc():0}function vDt(e,t){var n,i;n=t.c,i=n!=null,i&&P4(e,new iv(t.c))}function TQe(e){var t,n;return n=(I6(),t=new _b,t),pj(n,e),n}function CQe(e){var t,n;return n=(I6(),t=new _b,t),pj(n,e),n}function EQe(e){for(var t;;)if(t=e.Pb(),!e.Ob())return t}function _c(e,t){return qs(),Tte(t)?new mq(t,e):new R_(t,e)}function xDt(e,t){return Ci(c(e.c,65).c.e.b,c(t.c,65).c.e.b)}function yDt(e,t){return Ci(c(e.c,65).c.e.a,c(t.c,65).c.e.a)}function MQe(e,t,n){return new bie(e,(dj(),pce),t,n,null,!1)}function AQe(e,t,n){return new bie(e,(dj(),dce),null,!1,t,n)}function uD(e){return ld(),Lc(e,0)>=0?F0(e):s7(F0(Dg(e)))}function kDt(){return ya(),ee(Z(xl,1),Re,132,0,[lOe,vl,uOe])}function ODt(){return Yf(),ee(Z(Fv,1),Re,240,0,[Ko,el,Yo])}function jDt(){return Ql(),ee(Z(Mht,1),Re,464,0,[wd,tp,Ef])}function SDt(){return pl(),ee(Z(Nht,1),Re,465,0,[rh,np,Mf])}function TDt(e,t){mze(e,Qn(Zr(Qb(t,24),vQ)),Qn(Zr(t,vQ)))}function cv(e,t){if(e<0||e>t)throw K(new Qc(r3e+e+s3e+t))}function pt(e,t){if(e<0||e>=t)throw K(new Qc(r3e+e+s3e+t))}function tn(e,t){if(e<0||e>=t)throw K(new B1e(r3e+e+s3e+t))}function Ct(e,t){this.b=(Ft(e),e),this.a=(t&Pv)==0?t|64|ad:t}function nd(e,t,n){cYe(t,n,e.gc()),this.c=e,this.a=t,this.b=n-t}function NQe(e,t,n){var i;cYe(t,n,e.c.length),i=n-t,K1e(e.c,t,i)}function CDt(e,t,n){var i;i=new Es(n.d),ji(i,e),vne(t,i.a,i.b)}function Ame(e){var t;return z0(e),t=(Xb(),Xb(),ace),SH(e,t)}function _y(e){return jT(),he(e.g,9)?c(e.g,9):null}function vh(e){return Lo(ee(Z(Vr,1),Ge,8,0,[e.i.n,e.n,e.a]))}function EDt(){return v7(),ee(Z(AOe,1),Re,385,0,[Tce,Sce,Cce])}function MDt(){return I0(),ee(Z(mle,1),Re,330,0,[yP,Z6e,Wv])}function ADt(){return _1(),ee(Z(J1t,1),Re,316,0,[kP,x3,Nk])}function NDt(){return kj(),ee(Z(ple,1),Re,303,0,[dle,gle,xP])}function _Dt(){return NH(),ee(Z(L6e,1),Re,351,0,[D6e,cJ,Kce])}function DDt(){return gm(),ee(Z($1t,1),Re,452,0,[sle,JS,w3])}function LDt(){return Gs(),ee(Z(Upt,1),Re,455,0,[jE,Vl,tl])}function PDt(){return UH(),ee(Z(s9e,1),Re,382,0,[i9e,cue,r9e])}function IDt(){return N7(),ee(Z(o9e,1),Re,349,0,[uue,lue,PP])}function RDt(){return Ej(),ee(Z(l9e,1),Re,350,0,[aue,c9e,SE])}function $Dt(){return _7(),ee(Z(USe,1),Re,353,0,[Yle,QSe,BJ])}function BDt(){return AH(),ee(Z(f9e,1),Re,352,0,[a9e,fue,u9e])}function zDt(){return JH(),ee(Z(h9e,1),Re,383,0,[hue,s9,ox])}function FDt(){return M7(),ee(Z(M9e,1),Re,386,0,[E9e,pue,$P])}function qDt(){return qD(),ee(Z(i8e,1),Re,387,0,[tW,t8e,n8e])}function HDt(){return cG(),ee(Z(S8e,1),Re,388,0,[j8e,Jue,O8e])}function GDt(){return ow(),ee(Z(Fce,1),Re,369,0,[Iw,ip,Pw])}function QDt(){return tG(),ee(Z(V8e,1),Re,435,0,[J8e,W8e,Zue])}function UDt(){return wH(),ee(Z(U8e,1),Re,434,0,[Yue,Q8e,G8e])}function JDt(){return UD(),ee(Z(eae,1),Re,440,0,[lW,uW,aW])}function WDt(){return hG(),ee(Z(k8e,1),Re,441,0,[PE,rW,zue])}function VDt(){return GH(),ee(Z(y8e,1),Re,304,0,[Bue,x8e,v8e])}function XDt(){return y7(),ee(Z(F7e,1),Re,301,0,[oI,Hae,z7e])}function KDt(){return kh(),ee(Z(O7e,1),Re,281,0,[m9,mx,b9])}function YDt(){return X4(),ee(Z(G7e,1),Re,283,0,[H7e,wx,MW])}function ZDt(){return I1(),ee(Z(P7e,1),Re,348,0,[OW,t0,YE])}function zu(e){vi(),Nb.call(this,e),this.c=!1,this.a=!1}function _Qe(e,t,n){Nb.call(this,25),this.b=e,this.a=t,this.c=n}function Nme(e,t){V9t.call(this,new p4(mv(e))),qu(t,rct),this.a=t}function eLt(e,t){var n;return n=(Ft(e),e).g,O0e(!!n),Ft(t),n(t)}function DQe(e,t){var n,i;return i=Z6(e,t),n=e.a.dd(i),new NRe(e,n)}function tLt(e,t,n){var i;return i=aC(e,t,!1),i.b<=t&&i.a<=n}function LQe(e,t,n){var i;i=new RA,i.b=t,i.a=n,++t.b,Ue(e.d,i)}function Yq(){Yq=W,Eue=new Age("DFS",0),X9e=new Age("BFS",1)}function nLt(e){if(e.p!=2)throw K(new El);return Qn(e.f)&Dr}function iLt(e){if(e.p!=2)throw K(new El);return Qn(e.k)&Dr}function rLt(e){return e.Db>>16!=6?null:c(Tie(e),244)}function U(e){return pn(e.a<e.c.c.length),e.b=e.a++,e.c.c[e.b]}function sLt(e){return e.a==(aj(),BW)&&de(e,QXt(e.g,e.b)),e.a}function B4(e){return e.d==(aj(),BW)&&mt(e,HYt(e.g,e.b)),e.d}function Kee(e){vq(),this.a=(Mt(),he(e,59)?new _Y(e):new ZF(e))}function sm(e){return $n(e),he(e,18)?new Hl(c(e,18)):X6(e.Jc())}function _me(e,t){return Zqe(e.a,t)?Cpe(e.b,c(t,23).g,null):null}function Zr(e,t){return P0(ZAt(Oo(e)?Ha(e):e,Oo(t)?Ha(t):t))}function id(e,t){return P0(eNt(Oo(e)?Ha(e):e,Oo(t)?Ha(t):t))}function Yee(e,t){return P0(tNt(Oo(e)?Ha(e):e,Oo(t)?Ha(t):t))}function oLt(e){return As($d(nc(lu(e,32)),32),nc(lu(e,32)))}function cLt(e){var t;return t=c(dq(e.b),10),new ga(e.a,t,e.c)}function lLt(e,t){var n;n=ge(be(e.a.mf((Pn(),vW)))),Eot(e,t,n)}function uLt(e,t){return x7(),e.c==t.c?Ci(t.d,e.d):Ci(e.c,t.c)}function aLt(e,t){return x7(),e.c==t.c?Ci(e.d,t.d):Ci(e.c,t.c)}function fLt(e,t){return x7(),e.c==t.c?Ci(e.d,t.d):Ci(t.c,e.c)}function hLt(e,t){return x7(),e.c==t.c?Ci(t.d,e.d):Ci(t.c,e.c)}function dLt(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 Zee(e,t,n){var i;i=e.d[t.p],e.d[t.p]=e.d[n.p],e.d[n.p]=i}function PQe(e,t){var n,i;return n=kte(t),i=n,c(Jt(e.c,i),15).a}function gLt(e,t){var n,i;return n=UZe(e),i=UZe(t),n<i?-1:n>i?1:0}function pLt(e,t){var n;n=c(Jt(e.g,t),60),Vc(t.d,new w$e(e,n))}function IQe(e,t){var n;for(n=e+"";n.length<t;)n="0"+n;return n}function om(e){return e.c==null||e.c.length==0?"n_"+e.g:"n_"+e.c}function Dme(e){return e.b==null||e.b.length==0?"n_"+e.a:"n_"+e.b}function aD(e){return c(Oh(e,Ce(e1,Qg,9,e.c.length,0,1)),201)}function Lme(e,t){return e&&e.equals?e.equals(t):Se(e)===Se(t)}function Pme(e,t){return t==0?!!e.o&&e.o.f!=0:Ine(e,t)}function mLt(e){return!!e.u&&wc(e.u.a).i!=0&&!(e.n&&qne(e.n))}function bLt(e,t,n){var i;e.n&&t&&n&&(i=new Cl,Ue(e.e,i))}function ete(e,t){if(Cr(e.a,t),t.d)throw K(new Mo(Ect));t.d=e}function Ime(e,t){this.a=new Qe,this.d=new Qe,this.f=e,this.c=t}function RQe(){this.c=new sze,this.a=new CJe,this.b=new APe,JRe()}function $Qe(){V4(),this.b=new xn,this.a=new xn,this.c=new Qe}function BQe(e,t,n){this.d=e,this.j=t,this.e=n,this.o=-1,this.p=3}function zQe(e,t,n){this.d=e,this.k=t,this.f=n,this.o=-1,this.p=5}function FQe(e,t,n,i,r,o){Ibe.call(this,e,t,n,i,r),o&&(this.o=-2)}function qQe(e,t,n,i,r,o){Rbe.call(this,e,t,n,i,r),o&&(this.o=-2)}function HQe(e,t,n,i,r,o){tbe.call(this,e,t,n,i,r),o&&(this.o=-2)}function GQe(e,t,n,i,r,o){zbe.call(this,e,t,n,i,r),o&&(this.o=-2)}function QQe(e,t,n,i,r,o){nbe.call(this,e,t,n,i,r),o&&(this.o=-2)}function UQe(e,t,n,i,r,o){$be.call(this,e,t,n,i,r),o&&(this.o=-2)}function JQe(e,t,n,i,r,o){Bbe.call(this,e,t,n,i,r),o&&(this.o=-2)}function WQe(e,t,n,i,r,o){ibe.call(this,e,t,n,i,r),o&&(this.o=-2)}function VQe(e,t,n,i){Fz.call(this,n),this.b=e,this.c=t,this.d=i}function XQe(e,t){this.f=e,this.a=(aj(),$W),this.c=$W,this.b=t}function KQe(e,t){this.g=e,this.d=(aj(),BW),this.a=BW,this.b=t}function Rme(e,t){!e.c&&(e.c=new gr(e,0)),lQ(e.c,(Ai(),aM),t)}function wLt(e,t){return yWt(e,t,he(t,104)&&(c(t,20).Bb&Ps)!=0)}function vLt(e,t){return CHe(nc(e.q.getTime()),nc(t.q.getTime()))}function YQe(e){return ree(e.e.Pd().gc()*e.c.Pd().gc(),16,new Sz(e))}function xLt(e){return!!e.a&&ou(e.a.a).i!=0&&!(e.b&&Hne(e.b))}function d7(e){for(;e.d>0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function ZQe(e){return e.a?e.e.length==0?e.a.a:e.a.a+(""+e.e):e.c}function eUe(e){return pn(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function tUe(e,t){var n;return n=1-t,e.a[n]=$H(e.a[n],n),$H(e,t)}function nUe(e,t){var n,i;return i=Zr(e,Us),n=$d(t,32),id(n,i)}function yLt(e,t,n){var i;return i=c(e.Zb().xc(t),18),!!i&&i.Gc(n)}function iUe(e,t,n){var i;return i=c(e.Zb().xc(t),18),!!i&&i.Kc(n)}function rUe(e,t,n){var i;i=($n(e),new Hl(e)),sHt(new yQe(i,t,n))}function fD(e,t,n){var i;i=($n(e),new Hl(e)),oHt(new kQe(i,t,n))}function sUe(){sUe=W,g9e=tGe(ze(1),ze(4)),d9e=tGe(ze(1),ze(2))}function oUe(e){Fte.call(this,e,(dj(),hce),null,!1,null,!1)}function cUe(e,t){em.call(this,1,2,ee(Z(Hn,1),li,30,15,[e,t]))}function ss(e,t){this.a=e,uT.call(this,e),cv(t,e.gc()),this.b=t}function lUe(e,t){var n;e.e=new N1e,n=Ev(t),Rr(n,e.c),Vit(e,n,0)}function kLt(e,t,n){e.a=t,e.c=n,e.b.a.$b(),ku(e.d),B2(e.e.a.c,0)}function tr(e,t,n,i){var r;r=new Pu,r.a=t,r.b=n,r.c=i,ni(e.a,r)}function Fe(e,t,n,i){var r;r=new Pu,r.a=t,r.b=n,r.c=i,ni(e.b,r)}function uUe(e,t,n,i){return e.a+=""+qa(t==null?wl:So(t),n,i),e}function Uo(e,t,n,i,r,o){return TXe(e,t,n,o),Xwe(e,i),Kwe(e,r),e}function $me(){var e,t,n;return t=(n=(e=new _b,e),n),Ue(CCe,t),t}function hD(e,t){if(e<0||e>=t)throw K(new Qc(UUt(e,t)));return e}function aUe(e,t,n){if(e<0||t<e||t>n)throw K(new Qc(dUt(e,t,n)))}function OLt(e){if(!("stack"in e))try{throw e}catch{}return e}function jLt(e){return Ay(e).dc()?!1:(r7t(e,new V),!0)}function cm(e){var t;return Oo(e)?(t=e,t==-0?0:t):qIt(e)}function fUe(e,t){return he(t,45)?Wne(e.a,c(t,45)):!1}function hUe(e,t){return he(t,45)?Wne(e.a,c(t,45)):!1}function dUe(e,t){return he(t,45)?Wne(e.a,c(t,45)):!1}function SLt(e,t){return Q4(),c($(t,(Wo(),N3)),15).a>=e.gc()}function TLt(e){return Bu(),!vs(e)&&!(!vs(e)&&e.c.i.c==e.d.i.c)}function rd(e){return c(Oh(e,Ce(zS,xS,17,e.c.length,0,1)),324)}function Zq(e){return new Wc((qu(e,mre),jH(As(As(5,e),e/10|0))))}function CLt(e,t){return new ZZ(t,Yze(Ms(t.e),e,e),(zt(),!0))}function ELt(e){return ree(e.e.Pd().gc()*e.c.Pd().gc(),273,new XK(e))}function gUe(e){return c(Oh(e,Ce(r1t,nlt,12,e.c.length,0,1)),2021)}function pUe(e){this.a=Ce(Br,It,1,jwe(p.Math.max(8,e))<<1,5,1)}function Bme(e){var t;return M0(e),t=new Ie,py(e.a,new o_e(t)),t}function eH(e){var t;return M0(e),t=new Ye,py(e.a,new c_e(t)),t}function MLt(e,t){return e.a<=e.b?(t.Bd(e.a++),!0):!1}function ALt(e,t,n){e.d&&gl(e.d.e,e),e.d=t,e.d&&Xp(e.d.e,n,e)}function zme(e,t,n){this.d=new xDe(this),this.e=e,this.i=t,this.f=n}function tH(){tH=W,ble=new kge(fS,0),eje=new kge("TOP_LEFT",1)}function mUe(){mUe=W,Iwt=En((uF(),ee(Z(X8e,1),Re,480,0,[tae])))}function bUe(){bUe=W,$wt=En((aF(),ee(Z(Rwt,1),Re,550,0,[nae])))}function wUe(){wUe=W,n2t=En((ST(),ee(Z(bTe,1),Re,531,0,[UP])))}function vUe(){vUe=W,p2t=En((fF(),ee(Z(g2t,1),Re,557,0,[bae])))}function xUe(){xUe=W,b2t=En((hF(),ee(Z(m2t,1),Re,558,0,[wae])))}function yUe(){yUe=W,v2t=En((dF(),ee(Z(w2t,1),Re,559,0,[vae])))}function NLt(e){jYe((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a),new tN)}function g7(e,t){Rnn(t,e),bpe(e.d),bpe(c($(e,(We(),_J)),216))}function tte(e,t){$nn(t,e),mpe(e.d),mpe(c($(e,(We(),_J)),216))}function ew(e,t){var n,i;return n=C1(e,t),i=null,n&&(i=n.ne()),i}function p7(e,t){var n,i;return n=C1(e,t),i=null,n&&(i=n.qe()),i}function uj(e,t){var n,i;return n=fv(e,t),i=null,n&&(i=n.qe()),i}function E1(e,t){var n,i;return n=C1(e,t),i=null,n&&(i=Bve(n)),i}function _Lt(e,t,n){var i;return i=Rj(n),nQ(e.n,i,t),nQ(e.o,t,n),t}function DLt(e,t,n){var i;i=MFt();try{return TCt(e,t,n)}finally{DPt(i)}}function kUe(e,t,n,i){return he(n,59)?new zze(e,t,n,i):new Bpe(e,t,n,i)}function Fme(e,t,n,i){this.d=e,this.n=t,this.g=n,this.o=i,this.p=-1}function OUe(e,t,n,i){this.e=null,this.c=e,this.d=t,this.a=n,this.b=i}function jUe(e){var t;t=e.Dh(),this.a=he(t,72)?c(t,72).Gi():t.Jc()}function LLt(e){return new Ct(wRt(c(e.a.kd(),18).gc(),e.a.jd()),16)}function lv(e){return he(e,18)?c(e,18).dc():!e.Jc().Ob()}function SUe(e){if(e.e.g!=e.b)throw K(new fa);return!!e.c&&e.d>0}function _n(e){return pn(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function qme(e,t){Ft(t),br(e.a,e.c,t),e.c=e.c+1&e.a.length-1,ZZe(e)}function N0(e,t){Ft(t),e.b=e.b-1&e.a.length-1,br(e.a,e.b,t),ZZe(e)}function Hme(e,t){var n;return n=c(yh(e.b,t),66),!n&&(n=new _i),n}function PLt(e,t){var n;n=t.a,ks(n,t.c.d),rs(n,t.d.d),gv(n.a,e.n)}function TUe(e,t){return c(wu(ev(c(Ti(e.k,t),16).Mc(),p3)),114)}function CUe(e,t){return c(wu(_4(c(Ti(e.k,t),16).Mc(),p3)),114)}function ILt(){return Oj(),ee(Z(Udt,1),Re,413,0,[Lw,Hv,qv,d3])}function RLt(){return cw(),ee(Z(ndt,1),Re,414,0,[fP,aP,xce,yce])}function $Lt(){return dj(),ee(Z(EU,1),Re,310,0,[hce,dce,gce,pce])}function BLt(){return Z4(),ee(Z(LOe,1),Re,384,0,[YC,DOe,_ce,Dce])}function zLt(){return VH(),ee(Z(f1t,1),Re,368,0,[Bce,tJ,nJ,mP])}function FLt(){return Of(),ee(Z(k1t,1),Re,418,0,[Uv,qS,HS,zce])}function qLt(){return mm(),ee(Z(mmt,1),Re,409,0,[IP,TE,GJ,HJ])}function HLt(){return kv(),ee(Z(eue,1),Re,205,0,[zJ,Zle,M3,E3])}function GLt(){return $1(),ee(Z(t9e,1),Re,270,0,[cp,e9e,iue,rue])}function QLt(){return B7(),ee(Z(_6e,1),Re,302,0,[nE,A6e,wP,N6e])}function ULt(){return A7(),ee(Z(V9e,1),Re,354,0,[Cue,ZJ,Tue,Sue])}function JLt(){return SG(),ee(Z(w8e,1),Re,355,0,[$ue,m8e,b8e,p8e])}function WLt(){return IG(),ee(Z(rwt,1),Re,406,0,[Gue,Fue,Hue,que])}function VLt(){return ek(),ee(Z(b9e,1),Re,402,0,[WJ,ME,AE,NE])}function XLt(){return MG(),ee(Z(kTe,1),Re,396,0,[fae,hae,dae,gae])}function KLt(){return Mj(),ee(Z(k7e,1),Re,280,0,[eI,kW,x7e,y7e])}function YLt(){return R1(),ee(Z(Fae,1),Re,225,0,[zae,tI,w9,Kk])}function ZLt(){return Gu(),ee(Z(pvt,1),Re,293,0,[iI,n1,hp,nI])}function ePt(){return Cu(),ee(Z(iM,1),Re,381,0,[lI,Wm,cI,bx])}function tPt(){return sH(),ee(Z(fI,1),Re,290,0,[Q7e,J7e,Qae,U7e])}function nPt(){return lG(),ee(Z(K7e,1),Re,327,0,[Uae,W7e,X7e,V7e])}function iPt(){return XH(),ee(Z(Dvt,1),Re,412,0,[Jae,Z7e,Y7e,eCe])}function rPt(e){var t;return e.j==(Ve(),wn)&&(t=Int(e),Al(t,sn))}function EUe(e,t){var n;for(n=e.j.c.length;n<t;n++)Ue(e.j,e.Mg())}function MUe(e,t,n,i){var r;return r=i[t.g][n.g],ge(be($(e.a,r)))}function sPt(e,t,n){var i;return i=Rj(n),nQ(e.f,i,t),ci(e.g,t,n),t}function oPt(e,t,n){var i;return i=Rj(n),nQ(e.p,i,t),ci(e.q,t,n),t}function AUe(e){var t,n;return t=(y0(),n=new R8,n),e&&WG(t,e),t}function Gme(e){var t;return t=e.$i(e.i),e.i>0&&yc(e.g,0,t,0,e.i),t}function z4(e){return jT(),he(e.g,157)?c(e.g,157):null}function cPt(e){return Xq(),Ac(Yae,e)?c(Jt(Yae,e),343).Pg():null}function pa(e,t,n){return t<0?Oie(e,n):c(n,69).uk().zk(e,e.ei(),t)}function lPt(e,t){return O4(new He(t.e.a+t.f.a/2,t.e.b+t.f.b/2),e)}function NUe(e,t){return Se(t)===Se(e)?"(this Map)":t==null?wl:So(t)}function _Ue(e,t){gF();var n;return n=c(Jt(LW,e),58),!n||n.dk(t)}function uPt(e){if(e.p!=1)throw K(new El);return Qn(e.f)<<24>>24}function aPt(e){if(e.p!=1)throw K(new El);return Qn(e.k)<<24>>24}function fPt(e){if(e.p!=7)throw K(new El);return Qn(e.k)<<16>>16}function hPt(e){if(e.p!=7)throw K(new El);return Qn(e.f)<<16>>16}function Dy(e,t){return t.e==0||e.e==0?JC:(Xj(),Mie(e,t))}function dPt(e,t,n){if(n){var i=n.me();e.a[t]=i(n)}else delete e.a[t]}function DUe(e,t){var n;return n=new g4,e.Ed(n),n.a+="..",t.Fd(n),n.a}function Vf(e){var t;for(t=0;e.Ob();)e.Pb(),t=As(t,1);return jH(t)}function gPt(e,t,n){var i;i=c(Jt(e.g,n),60),Ue(e.a.c,new Ls(t,i))}function pPt(e,t,n,i,r){var o;o=IWt(r,n,i),Ue(t,$Ut(r,o)),NQt(e,r,t)}function LUe(e,t,n){e.i=0,e.e=0,t!=n&&(vKe(e,t,n),wKe(e,t,n))}function mPt(e){e.a=null,e.e=null,B2(e.b.c,0),B2(e.f.c,0),e.c=null}function bPt(e,t){return c(t==null?Ao(co(e.f,null)):MT(e.i,t),291)}function wPt(e,t,n){return gee(be(Ao(co(e.f,t))),be(Ao(co(e.f,n))))}function nH(e,t,n){return rQ(e,t,n,he(t,104)&&(c(t,20).Bb&Ps)!=0)}function vPt(e,t,n){return Zj(e,t,n,he(t,104)&&(c(t,20).Bb&Ps)!=0)}function xPt(e,t,n){return CWt(e,t,n,he(t,104)&&(c(t,20).Bb&Ps)!=0)}function Qme(e,t){return e==(Wt(),ar)&&t==ar?4:e==ar||t==ar?8:32}function PUe(e,t){xme.call(this),this.a=e,this.b=t,Ue(this.a.b,this)}function uv(e,t){vi(),Nb.call(this,e),this.a=t,this.c=-1,this.b=-1}function Ume(e,t,n,i,r){this.i=e,this.a=t,this.e=n,this.j=i,this.f=r}function M1(e,t){ld(),em.call(this,e,1,ee(Z(Hn,1),li,30,15,[t]))}function Fd(e,t){qs();var n;return n=c(e,69).tk(),GQt(n,t),n.vl(t)}function IUe(e,t){var n;for(n=t;n;)W2(e,n.i,n.j),n=Ki(n);return e}function RUe(e,t){var n;for(n=0;n<t;++n)br(e,n,new Kde(c(e[n],45)))}function Jme(e,t){var n;n=e.q.getHours(),e.q.setFullYear(t+W0),cC(e,n)}function $Ue(e,t){Sj();var n;return n=e.j.g-t.j.g,n!=0?n:0}function m7(e){return pn(e.a<e.c.a.length),e.b=e.a,oVe(e),e.c.b[e.b]}function wc(e){return e.n||(ru(e),e.n=new nHe(e,Ks,e),wo(e)),e.n}function BUe(e){if(e<0)throw K(new kIe("Negative array size: "+e))}function nte(e,t,n){if(n){var i=n.me();n=i(n)}else n=void 0;e.a[t]=n}function yPt(e,t){var n;return n=t!=null?Nc(e,t):Ao(co(e.f,t)),HF(n)}function kPt(e,t){var n;return n=t!=null?Nc(e,t):Ao(co(e.f,t)),HF(n)}function ite(e){return e.c&&e.d?Dme(e.c)+"->"+Dme(e.d):"e_"+Hb(e)}function zUe(e){he(e,209)&&!it(nt(e.mf((Pn(),wW))))&&BYt(c(e,19))}function Wme(e){e.b!=e.c&&(e.a=Ce(Br,It,1,8,5,1),e.b=0,e.c=0)}function lm(e,t,n){this.e=e,this.a=Br,this.b=wrt(t),this.c=t,this.d=n}function av(e,t,n,i){BQe.call(this,1,n,i),this.c=e,this.b=t}function rte(e,t,n,i){zQe.call(this,1,n,i),this.c=e,this.b=t}function ste(e,t,n,i,r,o,a){Dte.call(this,t,i,r,o,a),this.c=e,this.a=n}function ote(e){this.e=e,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function FUe(e){this.c=e,this.a=c(Qa(e),160),this.b=this.a.hk().ti()}function OPt(e,t){return Sg(),Dn(Pe(e.a),t)}function jPt(e,t){return Sg(),Dn(Pe(e.a),t)}function iH(){iH=W,uae=new Ige("STRAIGHT",0),xTe=new Ige("BEND",1)}function b7(){b7=W,EE=new Cge("UPPER",0),CE=new Cge("LOWER",1)}function rH(){rH=W,Cle=new Oge(th,0),Tle=new Oge("ALTERNATING",1)}function sH(){sH=W,Q7e=new Pqe,J7e=new vHe,Qae=new UGe,U7e=new xHe}function oH(e){var t;return e?new Npe(e):(t=new Ld,zte(t,e),t)}function SPt(e,t){var n;for(n=e.d-1;n>=0&&e.a[n]===t[n];n--);return n<0}function TPt(e,t){var n;return BUe(t),n=e.slice(0,t),n.length=t,yte(n,e)}function Gl(e,t){var n;return t.b.Kb(qWe(e,t.c.Ve(),(n=new f_e(t),n)))}function cH(e){Ove(),mze(this,Qn(Zr(Qb(e,24),vQ)),Qn(Zr(e,vQ)))}function qUe(){qUe=W,hdt=En((OH(),ee(Z(pOe,1),Re,429,0,[kce,_U])))}function HUe(){HUe=W,l1t=En((wj(),ee(Z(c1t,1),Re,506,0,[pP,Pce])))}function GUe(){GUe=W,R1t=En((ED(),ee(Z($6e,1),Re,424,0,[lJ,R6e])))}function QUe(){QUe=W,D1t=En((pH(),ee(Z(M6e,1),Re,427,0,[E6e,Xce])))}function UUe(){UUe=W,F1t=En((yD(),ee(Z(F6e,1),Re,479,0,[z6e,aJ])))}function JUe(){JUe=W,V1t=En((tH(),ee(Z(tje,1),Re,425,0,[ble,eje])))}function WUe(){WUe=W,Y1t=En((rH(),ee(Z(pje,1),Re,428,0,[Cle,Tle])))}function VUe(){VUe=W,Qpt=En((TD(),ee(Z(n9e,1),Re,426,0,[sue,oue])))}function XUe(){XUe=W,kmt=En((b7(),ee(Z(ymt,1),Re,522,0,[EE,CE])))}function KUe(){KUe=W,Mmt=En((td(),ee(Z(Emt,1),Re,513,0,[Gw,Yg])))}function YUe(){YUe=W,Nmt=En((bh(),ee(Z(Amt,1),Re,512,0,[Hm,Ph])))}function ZUe(){ZUe=W,Umt=En((Xf(),ee(Z(Qmt,1),Re,519,0,[cx,lp])))}function eJe(){eJe=W,Zmt=En((Yb(),ee(Z(Ymt,1),Re,457,0,[up,A3])))}function tJe(){tJe=W,Tbt=En((Yq(),ee(Z(K9e,1),Re,430,0,[Eue,X9e])))}function nJe(){nJe=W,Nbt=En((BH(),ee(Z(Y9e,1),Re,490,0,[eW,D3])))}function iJe(){iJe=W,Lbt=En((bH(),ee(Z(e8e,1),Re,431,0,[Z9e,Lue])))}function lH(){lH=W,Kue=new Dge(y3e,0),q8e=new Dge("TARGET_WIDTH",1)}function rJe(){rJe=W,Awt=En((lH(),ee(Z(H8e,1),Re,481,0,[Kue,q8e])))}function sJe(){sJe=W,Bwt=En((mD(),ee(Z(K8e,1),Re,433,0,[iae,fW])))}function oJe(){oJe=W,i2t=En((RD(),ee(Z(vTe,1),Re,432,0,[dW,wTe])))}function cJe(){cJe=W,r2t=En((iH(),ee(Z(yTe,1),Re,389,0,[uae,xTe])))}function lJe(){lJe=W,y2t=En((MD(),ee(Z(x2t,1),Re,498,0,[yae,xae])))}function CPt(){return _r(),ee(Z(XE,1),Re,87,0,[zh,vo,go,Bh,Aa])}function EPt(){return Ve(),ee(Z(Rs,1),ac,64,0,[$o,Yt,sn,wn,Zt])}function MPt(e){return(e.k==(Wt(),ar)||e.k==Ar)&&Oi(e,($e(),oE))}function APt(e,t,n){return c(t==null?bl(e.f,null,n):lw(e.i,t,n),291)}function Vme(e,t,n){e.a.c.length=0,Sen(e,t,n),e.a.c.length==0||XKt(e,t)}function sr(e,t,n,i){var r;r=new Je,r.c=t,r.b=n,r.a=i,i.b=n.a=r,++e.b}function Xme(e,t){var n,i;for(n=t,i=0;n>0;)i+=e.a[n],n-=n&-n;return i}function uJe(e,t){var n;for(n=t;n;)W2(e,-n.i,-n.j),n=Ki(n);return e}function NPt(e,t){var n,i;i=!1;do n=oKe(e,t),i=i|n;while(n);return i}function ws(e,t){var n,i;for(Ft(t),i=e.Jc();i.Ob();)n=i.Pb(),t.Ad(n)}function aJe(e,t){var n,i;return n=t.jd(),i=e.De(n),!!i&&bc(i.e,t.kd())}function fJe(e,t){var n;return n=t.jd(),new $b(n,e.e.pc(n,c(t.kd(),18)))}function _Pt(e,t){var n;return n=e.a.get(t),n??Ce(Br,It,1,0,5,1)}function Ou(e,t,n){var i;return i=(pt(t,e.c.length),e.c[t]),e.c[t]=n,i}function hJe(e,t){this.c=0,this.b=t,SBe.call(this,e,17493),this.a=this.c}function Kme(e){this.d=e,this.b=this.d.a.entries(),this.a=this.b.next()}function _0(){xn.call(this),qze(this),this.d.b=this.d,this.d.a=this.d}function cte(e){uH(),!Dh&&(this.c=e,this.e=!0,this.a=new Qe)}function dJe(e){Qot(),dPe(this),this.a=new _i,_we(this,e),ni(this.a,e)}function gJe(){EZ(this),this.b=new He(or,or),this.a=new He(Gr,Gr)}function Yme(e){lTt.call(this,e==null?wl:So(e),he(e,81)?c(e,81):null)}function DPt(e){e&&VIt((P1e(),Lke)),--kU,e&&OU!=-1&&(jTt(OU),OU=-1)}function dD(e){e.i=0,j_(e.b,null),j_(e.c,null),e.a=null,e.e=null,++e.g}function uH(){uH=W,Dh=!0,mht=!1,bht=!1,vht=!1,wht=!1}function vs(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function Zme(e,t){return he(t,144)?jt(e.c,c(t,144).c):!1}function lte(e,t){var n;return n=c(yh(e.d,t),21),n||c(yh(e.e,t),21)}function Ly(e,t){return(z0(e),R6(new Tt(e,new kbe(t,e.a)))).zd(Ck)}function LPt(){return ts(),ee(Z(NOe,1),Re,364,0,[Af,Zd,Oc,jc,Vs])}function PPt(){return LG(),ee(Z(_bt,1),Re,365,0,[_ue,Mue,Due,Aue,Nue])}function IPt(){return Ov(),ee(Z(j1t,1),Re,372,0,[bP,sJ,oJ,rJ,iJ])}function RPt(){return tC(),ee(Z(Dwt,1),Re,370,0,[L3,Gk,FE,zE,QP])}function $Pt(){return cL(),ee(Z(tTe,1),Re,331,0,[Y8e,rae,eTe,sae,Z8e])}function BPt(){return q7(),ee(Z(WSe,1),Re,329,0,[JSe,tue,nue,yE,kE])}function zPt(){return Su(),ee(Z(gje,1),Re,166,0,[TP,uE,W1,aE,Rm])}function FPt(){return jh(),ee(Z(Ih,1),Re,161,0,[Dt,pr,ch,e0,X1])}function qPt(){return qy(),ee(Z(eM,1),Re,260,0,[dp,rI,I7e,ZE,R7e])}function HPt(e){return Yz(),function(){return DLt(e,this,arguments)}}function ru(e){return e.t||(e.t=new nPe(e),I7(new xIe(e),0,e.t)),e.t}function pJe(e){var t;return e.c||(t=e.r,he(t,89)&&(e.c=c(t,29))),e.c}function GPt(e){return e.e=3,e.d=e.Yb(),e.e!=2?(e.e=0,!0):!1}function ute(e){var t,n,i;return t=e&au,n=e>>22&au,i=e<0?H1:0,rl(t,n,i)}function mJe(e){var t;return t=e.length,jt(Qt.substr(Qt.length-t,t),e)}function on(e){if(gn(e))return e.c=e.a,e.a.Pb();throw K(new Eo)}function F4(e,t){return t==0||e.e==0?e:t>0?HYe(e,t):Iit(e,-t)}function ebe(e,t){return t==0||e.e==0?e:t>0?Iit(e,t):HYe(e,-t)}function bJe(e){this.b=e,ln.call(this,e),this.a=c(Kt(this.b.a,4),131)}function wJe(e){this.b=e,S4.call(this,e),this.a=c(Kt(this.b.a,4),131)}function wf(e,t,n,i,r){jJe.call(this,t,i,r),this.c=e,this.b=n}function tbe(e,t,n,i,r){BQe.call(this,t,i,r),this.c=e,this.a=n}function nbe(e,t,n,i,r){zQe.call(this,t,i,r),this.c=e,this.a=n}function ibe(e,t,n,i,r){jJe.call(this,t,i,r),this.c=e,this.a=n}function QPt(e,t,n){return Ci(O4($j(e),Ms(t.b)),O4($j(e),Ms(n.b)))}function UPt(e,t,n){return Ci(O4($j(e),Ms(t.e)),O4($j(e),Ms(n.e)))}function JPt(e,t){return p.Math.min(D0(t.a,e.d.d.c),D0(t.b,e.d.d.c))}function ate(e,t,n){var i;return i=e.Fh(t),i>=0?e.Ih(i,n,!0):pw(e,t,n)}function WPt(e,t){var n,i;n=c(_Bt(e.c,t),18),n&&(i=n.gc(),n.$b(),e.d-=i)}function vJe(e){var t,n;return t=e.c.i,n=e.d.i,t.k==(Wt(),Ar)&&n.k==Ar}function w7(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 gD(e,t){e.Zi(e.i+1),JT(e,e.i,e.Xi(e.i,t)),e.Ki(e.i++,t),e.Li()}function xJe(e,t,n){var i;i=new i0e(e.a),T7(i,e.a.a),bl(i.f,t,n),e.a.a=i}function rbe(e,t,n,i){var r;for(r=0;r<AU;r++)Tq(e.a[r][t.g],n,i[t.g])}function sbe(e,t,n,i){var r;for(r=0;r<wce;r++)Cq(e.a[t.g][r],n,i[t.g])}function Ti(e,t){var n;return n=c(e.c.xc(t),18),!n&&(n=e.ic(t)),e.pc(t,n)}function VPt(e){var t;return t=($n(e),e?new Hl(e):X6(e.Jc())),V7(t),sG(t)}function fte(e){var t;return t=new Kb,ic(t,e),_e(t,(We(),ho),null),t}function vf(e){var t,n;return $n(e),t=JNt(e.length),n=new Wc(t),Twe(n,e),n}function hte(e,t,n,i){var r;return r=Ce(Hn,li,30,t,15,1),XGt(r,e,t,n,i),r}function Ng(e,t){var n;return n=(pt(t,e.c.length),e.c[t]),K1e(e.c,t,1),n}function obe(e,t){var n,i;return n=(Ft(e),e),i=(Ft(t),t),n==i?0:n<i?-1:1}function cbe(e){var t;return t=e.e+e.f,isNaN(t)&&oq(e.d)?e.d:t}function A1(e,t){return e.a?ti(e.a,e.b):e.a=new Iu(e.d),HT(e.a,t),e}function lbe(e,t){if(e<0||e>t)throw K(new Qc(Wve(e,t,"index")));return e}function XPt(e,t){var n;n=e.q.getHours()+(t/60|0),e.q.setMinutes(t),cC(e,n)}function q4(e,t){return Yr(t)?t==null?fxe(e.f,null):BXe(e.i,t):fxe(e.f,t)}function yJe(e,t){jBe.call(this,t.xd(),t.wd()&-6),Ft(e),this.a=e,this.b=t}function kJe(e,t){SBe.call(this,t.xd(),t.wd()&-6),Ft(e),this.a=e,this.b=t}function ube(e,t){GF.call(this,t.xd(),t.wd()&-6),Ft(e),this.a=e,this.b=t}function OJe(e,t,n){Fz.call(this,n),this.b=e,this.c=t,this.d=(Cne(),ife)}function jJe(e,t,n){this.d=e,this.k=t?1:0,this.f=n?1:0,this.o=-1,this.p=0}function SJe(e,t,n){this.a=e,this.c=t,this.d=n,Ue(t.e,this),Ue(n.b,this)}function xh(e){this.c=e,this.a=new J(this.c.a),this.b=new J(this.c.b)}function aH(){this.e=new Qe,this.c=new Qe,this.d=new Qe,this.b=new Qe}function TJe(){this.g=new v1e,this.b=new v1e,this.a=new Qe,this.k=new Qe}function CJe(){this.a=new O1e,this.b=new zPe,this.d=new p2,this.e=new gb}function fH(e,t,n){this.a=e,this.b=t,this.c=n,Ue(e.t,this),Ue(t.i,this)}function pD(){this.b=new _i,this.a=new _i,this.b=new _i,this.a=new _i}function aj(){aj=W;var e,t;$W=(I6(),t=new Gz,t),BW=(e=new wY,e)}function hH(){hH=W,HE=new mi("org.eclipse.elk.labels.labelManager")}function EJe(){EJe=W,O6e=new Gi("separateLayerConnections",(VH(),Bce))}function mD(){mD=W,iae=new Lge("FIXED",0),fW=new Lge("CENTER_NODE",1)}function Xf(){Xf=W,cx=new Ege("REGULAR",0),lp=new Ege("CRITICAL",1)}function KPt(e,t){var n;return n=Fen(e,t),e.b=new qH(n.c.length),sen(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 ZPt(e){var t,n;return t=e.jd(),n=c(e.kd(),18),K_(n.Lc(),new JK(t))}function dte(e){var t;return t=e.b,t.b==0?null:c(vc(t,0),65).b}function abe(e){if(e.a){if(e.e)return abe(e.e)}else return e;return null}function eIt(e,t){return e.p<t.p?1:e.p>t.p?-1:0}function dH(e,t){return Ft(t),e.c<e.d?(e.Qe(t,e.c++),!0):!1}function MJe(e,t){return Ac(e.a,t)?(q4(e.a,t),!0):!1}function H4(e,t,n){return hD(t,e.e.Pd().gc()),hD(n,e.c.Pd().gc()),e.a[t][n]}function AJe(e){var t;return e.a||(t=e.r,he(t,160)&&(e.a=c(t,160))),e.a}function NJe(e){var t;for(M0(e),t=0;e.a.zd(new Bn);)t=As(t,1);return t}function tIt(e){var t;return z0(e),t=new pqe(e,e.a.e,e.a.d|4),new N0e(e,t)}function nIt(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 fbe(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 hbe(e,t,n){var i,r;for(i=0,r=0;r<t.length;r++)i+=e.sg(t[r],i,n)}function gH(e,t,n,i){this.f=e,this.e=t,this.d=n,this.b=i,this.c=i?i.d:null}function iIt(e,t){t.Tg("Label management",1),HF($(e,(hH(),HE))),t.Ug()}function _Je(){_Je=W,xht=En((ya(),ee(Z(xl,1),Re,132,0,[lOe,vl,uOe])))}function DJe(){DJe=W,Eht=En((Yf(),ee(Z(Fv,1),Re,240,0,[Ko,el,Yo])))}function LJe(){LJe=W,Aht=En((Ql(),ee(Z(Mht,1),Re,464,0,[wd,tp,Ef])))}function PJe(){PJe=W,_ht=En((pl(),ee(Z(Nht,1),Re,465,0,[rh,np,Mf])))}function IJe(){IJe=W,$dt=En((v7(),ee(Z(AOe,1),Re,385,0,[Tce,Sce,Cce])))}function RJe(){RJe=W,U1t=En((I0(),ee(Z(mle,1),Re,330,0,[yP,Z6e,Wv])))}function $Je(){$Je=W,W1t=En((_1(),ee(Z(J1t,1),Re,316,0,[kP,x3,Nk])))}function BJe(){BJe=W,Q1t=En((kj(),ee(Z(ple,1),Re,303,0,[dle,gle,xP])))}function zJe(){zJe=W,P1t=En((NH(),ee(Z(L6e,1),Re,351,0,[D6e,cJ,Kce])))}function FJe(){FJe=W,B1t=En((gm(),ee(Z($1t,1),Re,452,0,[sle,JS,w3])))}function qJe(){qJe=W,Jpt=En((Gs(),ee(Z(Upt,1),Re,455,0,[jE,Vl,tl])))}function HJe(){HJe=W,Wpt=En((UH(),ee(Z(s9e,1),Re,382,0,[i9e,cue,r9e])))}function GJe(){GJe=W,Vpt=En((N7(),ee(Z(o9e,1),Re,349,0,[uue,lue,PP])))}function QJe(){QJe=W,Xpt=En((Ej(),ee(Z(l9e,1),Re,350,0,[aue,c9e,SE])))}function UJe(){UJe=W,Kpt=En((AH(),ee(Z(f9e,1),Re,352,0,[a9e,fue,u9e])))}function JJe(){JJe=W,Ypt=En((JH(),ee(Z(h9e,1),Re,383,0,[hue,s9,ox])))}function WJe(){WJe=W,zpt=En((_7(),ee(Z(USe,1),Re,353,0,[Yle,QSe,BJ])))}function VJe(){VJe=W,nwt=En((GH(),ee(Z(y8e,1),Re,304,0,[Bue,x8e,v8e])))}function XJe(){XJe=W,iwt=En((hG(),ee(Z(k8e,1),Re,441,0,[PE,rW,zue])))}function KJe(){KJe=W,Pwt=En((UD(),ee(Z(eae,1),Re,440,0,[lW,uW,aW])))}function YJe(){YJe=W,Nwt=En((wH(),ee(Z(U8e,1),Re,434,0,[Yue,Q8e,G8e])))}function ZJe(){ZJe=W,_wt=En((tG(),ee(Z(V8e,1),Re,435,0,[J8e,W8e,Zue])))}function eWe(){eWe=W,A1t=En((ow(),ee(Z(Fce,1),Re,369,0,[Iw,ip,Pw])))}function tWe(){tWe=W,nbt=En((M7(),ee(Z(M9e,1),Re,386,0,[E9e,pue,$P])))}function nWe(){nWe=W,Pbt=En((qD(),ee(Z(i8e,1),Re,387,0,[tW,t8e,n8e])))}function iWe(){iWe=W,lwt=En((cG(),ee(Z(S8e,1),Re,388,0,[j8e,Jue,O8e])))}function rWe(){rWe=W,gvt=En((I1(),ee(Z(P7e,1),Re,348,0,[OW,t0,YE])))}function sWe(){sWe=W,avt=En((kh(),ee(Z(O7e,1),Re,281,0,[m9,mx,b9])))}function oWe(){oWe=W,Mvt=En((X4(),ee(Z(G7e,1),Re,283,0,[H7e,wx,MW])))}function cWe(){cWe=W,Tvt=En((y7(),ee(Z(F7e,1),Re,301,0,[oI,Hae,z7e])))}function pH(){pH=W,E6e=new vge("QUADRATIC",0),Xce=new vge("SCANLINE",1)}function bD(e){return!e.g&&(e.g=new bg),!e.g.c&&(e.g.c=new tPe(e)),e.g.c}function rIt(e){return!e.g&&(e.g=new bg),!e.g.b&&(e.g.b=new YLe(e)),e.g.b}function sIt(e){return!e.g&&(e.g=new bg),!e.g.d&&(e.g.d=new ZLe(e)),e.g.d}function oIt(e){return!e.g&&(e.g=new bg),!e.g.a&&(e.g.a=new ePe(e)),e.g.a}function dbe(e,t){var n,i;return n=t,i=Hq(X6(new Ote(e,n))),wq(new Ote(e,n)),i}function cIt(e,t,n,i){return n&&(i=n.Oh(t,Yi(n.Ah(),e.c.sk()),null,i)),i}function lIt(e,t,n,i){return n&&(i=n.Qh(t,Yi(n.Ah(),e.c.sk()),null,i)),i}function gte(e,t,n,i){var r;return r=Ce(Hn,li,30,t+1,15,1),NYt(r,e,t,n,i),r}function Ce(e,t,n,i,r,o){var a;return a=GZe(r,i),r!=10&&ee(Z(e,o),t,n,r,a),a}function uIt(e,t,n){var i,r;for(r=new yj(t,e),i=0;i<n;++i)yG(r);return r}function pte(e,t,n){var i,r;if(n!=null)for(i=0;i<t;++i)r=n[i],e.Oi(i,r)}function gbe(e,t){var n;return n=new Jn,n.c=!0,n.d=t.kd(),rot(e,t.jd(),n)}function aIt(e,t){var n;n=e.q.getHours()+(t/3600|0),e.q.setSeconds(t),cC(e,n)}function ma(e,t){return!e.o&&(e.o=new _l((uc(),s1),n0,e,0)),Sne(e.o,t)}function pbe(e,t,n){c(e.b,68),c(e.b,68),c(e.b,68),Vc(e.a,new YFe(n,t,e))}function fIt(e,t,n,i){nst(e,t,n,Zj(e,t,i,he(t,104)&&(c(t,20).Bb&Ps)!=0))}function as(e,t,n){if(e<0||t>n||t<e)throw K(new B1e(xQ+e+i3e+t+e3e+n))}function lWe(e,t,n){this.d=new Jz,this.c=new xn,this.a=e,this.e=t,this.c=n}function mte(e){e?(this.c=e,this.b=null):(this.c=null,this.b=new Qe)}function bte(e,t){pF.call(this,e,t),this.a=Ce(Ein,pQ,443,2,0,1),this.b=!0}function mbe(e){xKe.call(this,e,0),qze(this),this.d.b=this.d,this.d.a=this.d}function bbe(e){this.e=e,this.b=this.e.a.entries(),this.a=Ce(Br,It,1,0,5,1)}function uWe(){uWe=W,imt=Uc(Kn(new yr,(ts(),Af),(os(),Ice)),Vs,Ak)}function hIt(){return BG(),ee(Z(B6e,1),Re,286,0,[cle,ole,ule,lle,ale,uJ])}function dIt(){return sL(),ee(Z(U6e,1),Re,284,0,[fJ,H6e,Q6e,q6e,G6e,fle])}function gIt(){return Gj(),ee(Z(Y6e,1),Re,285,0,[iE,W6e,K6e,X6e,V6e,J6e])}function pIt(){return rk(),ee(Z(US,1),Re,233,0,[QS,tE,GS,Jv,b3,m3])}function mIt(){return RG(),ee(Z(M7e,1),Re,328,0,[qae,T7e,E7e,j7e,C7e,S7e])}function bIt(){return xm(),ee(Z(Eae,1),Re,300,0,[Cae,JE,UE,Tae,GE,QE])}function wIt(){return Hd(),ee(Z(NTe,1),Re,259,0,[jae,WP,VP,mW,gW,pW])}function vIt(){return es(),ee(Z($7e,1),Re,103,0,[gp,Fh,v9,Jm,r1,Sc])}function xIt(){return Ul(),ee(Z(jW,1),Re,282,0,[pp,Z1,sI,nM,tM,Yk])}function wbe(e){var t;return!e.a&&e.b!=-1&&(t=e.c.Ah(),e.a=Lt(t,e.b)),e.a}function Dn(e,t){return e.Qi()&&e.Gc(t)?!1:(e.Fi(t),!0)}function Kf(e,t){return oD(t,"Horizontal alignment cannot be null"),e.b=t,e}function aWe(e,t,n){vi();var i;return i=J0(e,t),n&&i&&LNt(e)&&(i=null),i}function vbe(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 xbe(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 D0(e,t){var n,i;return n=e.a-t.a,i=e.b-t.b,p.Math.sqrt(n*n+i*i)}function ybe(e,t){var n,i;for(i=t.Jc();i.Ob();)n=c(i.Pb(),37),Mrt(e,n,0,0)}function _g(e,t,n){var i,r;for(r=e.Jc();r.Ob();)i=c(r.Pb(),37),Kj(i,t,n)}function yIt(e){var t,n;for(n=Ln(e.a,0);n.b!=n.d.c;)t=c(_n(n),65),txe(t)}function fWe(e,t){return n$e(e.e,t)||wm(e.e,t,new gZe(t)),c(yh(e.e,t),114)}function su(e,t,n,i){return Ft(e),Ft(t),Ft(n),Ft(i),new Jpe(e,t,new ei)}function _l(e,t,n,i){this.$j(),this.a=t,this.b=e,this.c=new Hpe(this,t,n,i)}function wte(e,t,n,i,r,o){Fme.call(this,t,i,r,o),this.c=e,this.b=n}function wD(e,t,n,i,r,o){Fme.call(this,t,i,r,o),this.c=e,this.a=n}function vD(e,t){var n,i,r;return r=e.r,i=e.d,n=aC(e,t,!0),n.b!=r||n.a!=i}function xD(e,t,n){var i,r;return r=(i=Uj(e.b,t),i),r?uQ(jD(e,r),n):null}function kIt(e,t,n){var i,r,o;i=C1(e,n),r=null,i&&(r=Bve(i)),o=r,aZe(t,n,o)}function OIt(e,t,n){var i,r,o;i=C1(e,n),r=null,i&&(r=Bve(i)),o=r,aZe(t,n,o)}function jIt(e,t){var n;return n=Jt(e.k,t),Nxe(e,t),Rie(e,t),yxe(e,t,n),null}function fj(e,t){var n;return n=e.Fh(t),n>=0?e.Ih(n,!0,!0):pw(e,t,!0)}function SIt(e,t){return Ci(ge(be($(e,($e(),Bw)))),ge(be($(t,Bw))))}function kbe(e,t){GF.call(this,t.xd(),t.wd()&-16449),Ft(e),this.a=e,this.c=t}function Obe(e,t,n,i,r){oze(this),this.b=e,this.d=t,this.f=n,this.g=i,this.c=r}function Wc(e){EZ(this),Z_(e>=0,"Initial capacity must not be negative")}function G4(e){var t;return $n(e),he(e,206)?(t=c(e,206),t):new Mz(e)}function TIt(e){for(;!e.a;)if(!zFe(e.c,new l_e(e)))return!1;return!0}function CIt(e){var t;if(!e.a)throw K(new oGe);return t=e.a,e.a=Ki(e.a),t}function EIt(e){if(e.b<=0)throw K(new Eo);return--e.b,e.a-=e.c.c,ze(e.a)}function jbe(e,t){if(e.g==null||t>=e.i)throw K(new kZ(t,e.i));return e.g[t]}function hWe(e,t,n){if(Tj(e,n),n!=null&&!e.dk(n))throw K(new gY);return n}function MIt(e,t,n){var i;return i=gKe(e,t,n),e.b=new qH(i.c.length),Bxe(e,i)}function dWe(e){var t;if(e.ll())for(t=e.i-1;t>=0;--t)ae(e,t);return Gme(e)}function AIt(e){mH(),c(e.mf((Pn(),dx)),185).Ec((Ul(),sI)),e.of(Rae,null)}function mH(){mH=W,j2t=new cN,T2t=new sB,S2t=G$t((Pn(),Rae),j2t,fp,T2t)}function gWe(){gWe=W,sQ(),PCe=or,Ixt=Gr,ICe=new Fs(or),Rxt=new Fs(Gr)}function bH(){bH=W,Z9e=new _ge("LEAF_NUMBER",0),Lue=new _ge("NODE_SIZE",1)}function vte(e){e.a=Ce(Hn,li,30,e.b+1,15,1),e.c=Ce(Hn,li,30,e.b,15,1),e.d=0}function NIt(e,t){e.a.Le(t.d,e.b)>0&&(Ue(e.c,new xpe(t.c,t.d,e.d)),e.b=t.d)}function hj(e,t,n,i){var r;i=(Xb(),i||tOe),r=e.slice(t,n),Vve(r,e,t,n,-t,i)}function ba(e,t,n,i,r){return t<0?pw(e,n,i):c(n,69).uk().wk(e,e.ei(),t,i,r)}function pWe(e,t){var n,i;return i=t/e.c.Pd().gc()|0,n=t%e.c.Pd().gc(),H4(e,i,n)}function Sbe(e){var t,n;if(!e.b)return null;for(n=e.b;t=n.a[0];)n=t;return n}function mWe(e){var t,n;if(!e.b)return null;for(n=e.b;t=n.a[1];)n=t;return n}function _It(e){return he(e,183)?""+c(e,183).a:e==null?null:So(e)}function DIt(e){return he(e,183)?""+c(e,183).a:e==null?null:So(e)}function bWe(e,t){if(t.a)throw K(new Mo(Ect));Cr(e.a,t),t.a=e,!e.j&&(e.j=t)}function Ql(){Ql=W,wd=new UY(bk,0),tp=new UY(fS,1),Ef=new UY(wk,2)}function dj(){dj=W,hce=new wF("All",0),dce=new UBe,gce=new rze,pce=new JBe}function wWe(){wWe=W,ght=En((dj(),ee(Z(EU,1),Re,310,0,[hce,dce,gce,pce])))}function vWe(){vWe=W,idt=En((cw(),ee(Z(ndt,1),Re,414,0,[fP,aP,xce,yce])))}function xWe(){xWe=W,Jdt=En((Oj(),ee(Z(Udt,1),Re,413,0,[Lw,Hv,qv,d3])))}function yWe(){yWe=W,Zdt=En((Z4(),ee(Z(LOe,1),Re,384,0,[YC,DOe,_ce,Dce])))}function kWe(){kWe=W,h1t=En((VH(),ee(Z(f1t,1),Re,368,0,[Bce,tJ,nJ,mP])))}function OWe(){OWe=W,O1t=En((Of(),ee(Z(k1t,1),Re,418,0,[Uv,qS,HS,zce])))}function jWe(){jWe=W,bmt=En((mm(),ee(Z(mmt,1),Re,409,0,[IP,TE,GJ,HJ])))}function SWe(){SWe=W,Fpt=En((kv(),ee(Z(eue,1),Re,205,0,[zJ,Zle,M3,E3])))}function TWe(){TWe=W,Gpt=En(($1(),ee(Z(t9e,1),Re,270,0,[cp,e9e,iue,rue])))}function CWe(){CWe=W,L1t=En((B7(),ee(Z(_6e,1),Re,302,0,[nE,A6e,wP,N6e])))}function EWe(){EWe=W,Sbt=En((A7(),ee(Z(V9e,1),Re,354,0,[Cue,ZJ,Tue,Sue])))}function MWe(){MWe=W,twt=En((SG(),ee(Z(w8e,1),Re,355,0,[$ue,m8e,b8e,p8e])))}function AWe(){AWe=W,swt=En((IG(),ee(Z(rwt,1),Re,406,0,[Gue,Fue,Hue,que])))}function NWe(){NWe=W,ebt=En((ek(),ee(Z(b9e,1),Re,402,0,[WJ,ME,AE,NE])))}function _We(){_We=W,o2t=En((MG(),ee(Z(kTe,1),Re,396,0,[fae,hae,dae,gae])))}function DWe(){DWe=W,uvt=En((Mj(),ee(Z(k7e,1),Re,280,0,[eI,kW,x7e,y7e])))}function LWe(){LWe=W,fvt=En((R1(),ee(Z(Fae,1),Re,225,0,[zae,tI,w9,Kk])))}function PWe(){PWe=W,mvt=En((Gu(),ee(Z(pvt,1),Re,293,0,[iI,n1,hp,nI])))}function IWe(){IWe=W,Avt=En((sH(),ee(Z(fI,1),Re,290,0,[Q7e,J7e,Qae,U7e])))}function RWe(){RWe=W,Cvt=En((Cu(),ee(Z(iM,1),Re,381,0,[lI,Wm,cI,bx])))}function $We(){$We=W,Nvt=En((lG(),ee(Z(K7e,1),Re,327,0,[Uae,W7e,X7e,V7e])))}function BWe(){BWe=W,Lvt=En((XH(),ee(Z(Dvt,1),Re,412,0,[Jae,Z7e,Y7e,eCe])))}function yD(){yD=W,z6e=new yge(th,0),aJ=new yge("IMPROVE_STRAIGHTNESS",1)}function wH(){wH=W,Yue=new gZ(Jlt,0),Q8e=new gZ(G5e,1),G8e=new gZ(th,2)}function Tbe(e){var t;if(!Ite(e))throw K(new Eo);return e.e=1,t=e.d,e.d=null,t}function Dg(e){var t;return Oo(e)&&(t=0-e,!isNaN(t))?t:P0(jj(e))}function Do(e,t,n){for(;n<e.c.length;++n)if(bc(t,e.c[n]))return n;return-1}function gl(e,t){var n;return n=Do(e,t,0),n==-1?!1:(Ng(e,n),!0)}function zWe(e,t){var n;return n=c(q4(e.e,t),395),n?(Ope(n),n.e):null}function LIt(e,t,n,i,r){return Ft(e),Ft(t),Ft(n),Ft(i),Ft(r),new Jpe(e,t,i)}function FWe(e){U2(!!e.c),VZ(e.f.g,e.d),e.c.Qb(),e.c=null,e.b=gwe(e),e.d=e.f.g}function kD(e){var t;for(t=e.p+1;t<e.c.a.c.length;++t)--c(Xe(e.c.a,t),9).p}function xte(e){var t;t=e.hj(),t!=null&&e.d!=-1&&c(t,95).uh(e),e.i&&e.i.mj()}function PIt(e){var t;return M0(e),t=Ce(is,io,30,0,15,1),py(e.a,new s_e(t)),t}function qWe(e,t,n){var i;return M0(e),i=new hs,i.a=t,e.a.Nb(new l$e(i,n)),i.a}function yte(e,t){return CD(t)!=10&&ee(ju(t),t.Qm,t.__elementTypeId$,CD(t),e),e}function kte(e){var t,n;return n=c(Xe(e.j,0),12),t=c($(n,($e(),Si)),12),t}function Ote(e,t){var n;this.f=e,this.b=t,n=c(Jt(e.b,t),263),this.c=n?n.b:null}function HWe(){Ru(),this.b=new xn,this.f=new xn,this.g=new xn,this.e=new xn}function vH(e){WF(this),this.g=e?Qq(e,e.ge()):null,this.f=e,zq(this),this.he()}function N1(e,t,n,i,r,o,a){Dte.call(this,t,i,r,o,a),this.c=e,this.b=n}function OD(e,t){if(t<0)throw K(new Qc(hut+t));return EUe(e,t+1),Xe(e.j,t)}function xH(e,t){return bc(t,Xe(e.f,0))||bc(t,Xe(e.f,1))||bc(t,Xe(e.f,2))}function IIt(e,t){return new ZZ(t,W2(Ms(t.e),t.f.a+e,t.f.b+e),(zt(),!1))}function RIt(e,t){return V6(),Ue(e,new Ls(t,ze(t.e.c.length+t.g.c.length)))}function $It(e,t){return V6(),Ue(e,new Ls(t,ze(t.e.c.length+t.g.c.length)))}function Cbe(e,t){jT();var n,i;return n=z4(e),i=z4(t),!!n&&!!i&&!vZe(n.k,i.k)}function jD(e,t){var n,i;return n=c(t,687),i=n.ui(),!i&&n.xi(i=new xBe(e,t)),i}function uo(e,t){var n,i;return n=c(t,689),i=n.Yk(),!i&&n.al(i=new KQe(e,t)),i}function SD(e){Rqe();var t,n;return t=e+128,n=zke[t],!n&&(n=zke[t]=new lr(e)),n}function ou(e){return e.b||(e.b=new iHe(e,Ks,e),!e.a&&(e.a=new U_(e,e))),e.b}function GWe(e){return VZ(e.d.a.e.g,e.b),pn(e.c!=e.d.a.d),e.a=e.c,e.c=e.c.a,e.a}function yH(e){var t,n;return n=e.length,t=Ce(Da,fd,30,n,15,1),MHe(e,0,n,t,0),t}function QWe(e,t){for(;t[0]<e.length&&Zh(` 	\r
`,ml(bs(e,t[0])))>=0;)++t[0]}function UWe(e,t){hOe=new fb,rdt=t,VC=e,c(VC.b,68),pbe(VC,hOe,null),Pst(VC)}function v7(){v7=W,Tce=new WY("XY",0),Sce=new WY("X",1),Cce=new WY("Y",2)}function pl(){pl=W,rh=new JY("TOP",0),np=new JY(fS,1),Mf=new JY(l3e,2)}function _1(){_1=W,kP=new eZ(th,0),x3=new eZ("TOP",1),Nk=new eZ(l3e,2)}function TD(){TD=W,sue=new jge("INPUT_ORDER",0),oue=new jge("PORT_DEGREE",1)}function gj(){gj=W,Ike=rl(au,au,524287),Yft=rl(0,0,_L),Rke=ute(1),ute(2),$ke=ute(0)}function Ebe(e){var t;return t=U4(Kt(e,32)),t==null&&(sl(e),t=U4(Kt(e,32))),t}function Mbe(e){var t;return e.Lh()||(t=bn(e.Ah())-e.gi(),e.Xh().Kk(t)),e.wh()}function JWe(e){(this.q?this.q:(Mt(),Mt(),Yd)).zc(e.q?e.q:(Mt(),Mt(),Yd))}function WWe(e,t){Dc(e,t==null||oq((Ft(t),t))||isNaN((Ft(t),t))?0:(Ft(t),t))}function VWe(e,t){Dl(e,t==null||oq((Ft(t),t))||isNaN((Ft(t),t))?0:(Ft(t),t))}function XWe(e,t){am(e,t==null||oq((Ft(t),t))||isNaN((Ft(t),t))?0:(Ft(t),t))}function KWe(e,t){um(e,t==null||oq((Ft(t),t))||isNaN((Ft(t),t))?0:(Ft(t),t))}function BIt(e,t){E4(c(c(e.f,19).mf((Pn(),d9)),103))&&jYe(ame(c(e.f,19)),t)}function jte(e,t){var n;return n=Yi(e.d,t),n>=0?xG(e,n,!0,!0):pw(e,t,!0)}function kH(e,t){var n;return n=e.bd(t),n>=0?(e.ed(n),!0):!1}function Ste(e,t,n){var i;return i=e.g[t],JT(e,t,e.Xi(t,n)),e.Pi(t,n,i),e.Li(),i}function Tte(e){var t;return e.d!=e.r&&(t=Qa(e),e.e=!!t&&t.jk()==Yat,e.d=t),e.e}function Cte(e,t){var n;for($n(e),$n(t),n=!1;t.Ob();)n=n|e.Ec(t.Pb());return n}function jo(e,t){var n,i;return z0(e),i=new ube(t,e.a),n=new qFe(i),new Tt(e,n)}function yh(e,t){var n;return n=c(Jt(e.e,t),395),n?(pze(e,n),n.e):null}function zIt(e,t){var n,i,r;r=t.c.i,n=c(Jt(e.f,r),60),i=n.d.c-n.e.c,cwe(t.a,i,0)}function qd(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 Abe(e,t){var n;for(++e.d,++e.c[t],n=t+1;n<e.a.length;)++e.a[n],n+=n&-n}function Ete(e){var t;return t=e.b.c.length==0?null:Xe(e.b,0),t!=null&&Rte(e,0),t}function FIt(e){switch(e.g){case 0:return pi;case 1:return cs;default:return 0}}function qIt(e){return tve(e,(gj(),$ke))<0?-A7t(jj(e)):e.l+e.m*mk+e.h*jm}function YWe(e){var t,n;return t=e/60|0,n=e%60,n==0?""+t:""+t+":"+(""+n)}function fv(e,t){var n=e.a[t],i=(Yte(),oce)[typeof n];return i?i(n):Gwe(typeof n)}function HIt(e,t){return he(t,104)&&(c(t,20).Bb&Ps)!=0?new OZ(t,e):new yj(t,e)}function GIt(e,t){return he(t,104)&&(c(t,20).Bb&Ps)!=0?new OZ(t,e):new yj(t,e)}function QIt(e,t,n){return O4(new He(n.e.a+n.f.a/2,n.e.b+n.f.b/2),e)==(Ft(t),t)}function Nbe(e){if(!e.c)throw K(new Eo);return e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function ZWe(e){if(!e.e)throw K(new Eo);return e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function eVe(e,t,n,i){if(!e)throw K(new Ht(rC(t,ee(Z(Br,1),It,1,5,[n,i]))))}function tVe(){tVe=W,yvt=En((Ve(),ee(Z(Rs,1),ac,64,0,[$o,Yt,sn,wn,Zt])))}function nVe(){nVe=W,lvt=En((_r(),ee(Z(XE,1),Re,87,0,[zh,vo,go,Bh,Aa])))}function iVe(){iVe=W,qdt=En((ts(),ee(Z(NOe,1),Re,364,0,[Af,Zd,Oc,jc,Vs])))}function x7(){x7=W,Xdt=new Ia,Kdt=new tc,Wdt=new db,Vdt=new DO,Ydt=new h2}function OH(){OH=W,kce=new gge("EADES",0),_U=new gge("FRUCHTERMAN_REINGOLD",1)}function rVe(e){this.g=e,this.f=new Qe,this.a=p.Math.min(this.g.c.c,this.g.d.c)}function sVe(e,t,n,i){vi(),Nb.call(this,26),this.c=e,this.a=t,this.d=n,this.b=i}function UIt(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 oVe(e){var t;for(++e.a,t=e.c.a.length;e.a<t;++e.a)if(e.c.b[e.a])return}function JIt(e,t){var n;return n=uw(e.e.c,t.e.c),n==0?Ci(e.e.d,t.e.d):n}function cVe(e){var t;return t=c($(e,($e(),Rw)),318),t?t.a==e:!1}function lVe(e){var t;return t=c($(e,($e(),Rw)),318),t?t.i==e:!1}function uVe(e,t){return t==(WZ(),WZ(),fht)?e.toLocaleLowerCase():e.toLowerCase()}function CD(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function WIt(e){var t,n;if(e.a){n=null;do t=e.a,e.a=null,n=Ett(t,n);while(e.a);e.a=n}}function VIt(e){var t,n;if(e.b){n=null;do t=e.b,e.b=null,n=Ett(t,n);while(e.b);e.b=n}}function XIt(e,t){var n;for(n=0;e.e!=e.i.gc();)dNt(t,fn(e),ze(n)),n!=pi&&++n}function Mte(e,t){var n;return n=c(Jt(e.a,t),151),n||(n=new hb,ci(e.a,t,n)),n}function KIt(e,t,n){var i;return i=e.a.e[c(t.a,9).p]-e.a.e[c(n.a,9).p],ys(tD(i))}function Lt(e,t){var n;return n=(e.i==null&&ud(e),e.i),t>=0&&t<n.length?n[t]:null}function _be(e){return((e.i&2)!=0?"interface ":(e.i&1)!=0?"":"class ")+(j1(e),e.o)}function jH(e){return Lc(e,pi)>0?pi:Lc(e,cs)<0?cs:Qn(e)}function xf(e,t,n){var i;if(t==null)throw K(new c4);return i=C1(e,t),dPt(e,t,n),i}function aVe(e,t){return Ft(t),zpe(e),e.d.Ob()?(t.Ad(e.d.Pb()),!0):!1}function fVe(e){this.b=new Qe,this.a=new Qe,this.c=new Qe,this.d=new Qe,this.e=e}function hVe(e,t,n){rq.call(this),Dbe(this),this.a=e,this.c=n,this.b=t.d,this.f=t.e}function YIt(){return Wt(),ee(Z(Lce,1),Re,252,0,[ar,Er,Ar,$c,fc,Lh,gP,ZC])}function dVe(){dVe=W,wvt=En((qy(),ee(Z(eM,1),Re,260,0,[dp,rI,I7e,ZE,R7e])))}function gVe(){gVe=W,C2t=En((jh(),ee(Z(Ih,1),Re,161,0,[Dt,pr,ch,e0,X1])))}function pVe(){pVe=W,S1t=En((Ov(),ee(Z(j1t,1),Re,372,0,[bP,sJ,oJ,rJ,iJ])))}function mVe(){mVe=W,Dbt=En((LG(),ee(Z(_bt,1),Re,365,0,[_ue,Mue,Due,Aue,Nue])))}function bVe(){bVe=W,K1t=En((Su(),ee(Z(gje,1),Re,166,0,[TP,uE,W1,aE,Rm])))}function wVe(){wVe=W,qpt=En((q7(),ee(Z(WSe,1),Re,329,0,[JSe,tue,nue,yE,kE])))}function vVe(){vVe=W,Lwt=En((tC(),ee(Z(Dwt,1),Re,370,0,[L3,Gk,FE,zE,QP])))}function xVe(){xVe=W,zwt=En((cL(),ee(Z(tTe,1),Re,331,0,[Y8e,rae,eTe,sae,Z8e])))}function ZIt(){return eQ(),ee(Z(C6e,1),Re,277,0,[Hce,Uce,qce,Vce,Qce,Gce,Wce,Jce])}function eRt(){return Q0(),ee(Z(E2t,1),Re,287,0,[ETe,Ir,Ss,Uk,ls,Vi,Qk,Rh])}function tRt(){return ak(),ee(Z(bI,1),Re,235,0,[Kae,DW,mI,pI,Xae,_W,NW,Vae])}function nRt(e,t){return Q4(),-pc(c($(e,(Wo(),N3)),15).a,c($(t,N3),15).a)}function iRt(e,t,n,i){var r;e.j=-1,lxe(e,zve(e,t,n),(qs(),r=c(t,69).tk(),r.vl(i)))}function rRt(e,t,n){var i,r;for(r=new J(n);r.a<r.c.c.length;)i=U(r),wve(e,t,i)}function ao(e){var t,n;n=(t=new vY,t),Dn((!e.q&&(e.q=new Le(nf,e,11,10)),e.q),n)}function sRt(e,t){var n;return n=t>0?t-1:t,PIe(I8t(zVe(vpe(new a4,n),e.n),e.j),e.k)}function SH(e,t){var n;return z0(e),n=new SGe(e,e.a.xd(),e.a.wd()|4,t),new Tt(e,n)}function oRt(e,t){var n,i;return n=c(wv(e.d,t),18),n?(i=t,e.e.pc(i,n)):null}function yVe(e){this.d=e,this.c=e.c.vc().Jc(),this.b=null,this.a=null,this.e=(Vz(),tce)}function tw(e){if(e<0)throw K(new Ht("Illegal Capacity: "+e));this.g=this.$i(e)}function cRt(e,t){if(0>e||e>t)throw K(new z1e("fromIndex: 0, toIndex: "+e+e3e+t))}function kVe(e,t){return!!S7(e,t,Qn(js(Wd,zd(Qn(js(t==null?0:zi(t),Vd)),15))))}function lRt(e,t){E4(c($(c(e.e,9),(We(),fr)),103))&&(Mt(),Rr(c(e.e,9).j,t))}function uRt(e){var t;return t=ge(be($(e,(We(),Xg)))),t<0&&(t=0,_e(e,Xg,t)),t}function TH(e,t){var n,i;for(i=e.Jc();i.Ob();)n=c(i.Pb(),70),_e(n,($e(),Ik),t)}function aRt(e,t,n){var i;i=p.Math.max(0,e.b/2-.5),Q7(n,i,1),Ue(t,new d$e(n,i))}function OVe(e,t,n,i,r,o){var a;a=fte(i),ks(a,r),rs(a,o),St(e.a,i,new lq(a,t,n.f))}function jVe(e,t){ri(e,(Qd(),Uue),t.f),ri(e,cwt,t.e),ri(e,Que,t.d),ri(e,owt,t.c)}function Ate(e){var t;U2(!!e.c),t=e.c.a,wa(e.d,e.c),e.b==e.c?e.b=t:--e.a,e.c=null}function SVe(e){return e.a>=-.01&&e.a<=Ah&&(e.a=0),e.b>=-.01&&e.b<=Ah&&(e.b=0),e}function Py(e){Vj();var t,n;for(n=J5e,t=0;t<e.length;t++)e[t]>n&&(n=e[t]);return n}function TVe(e,t){var n;if(n=pL(e.Ah(),t),!n)throw K(new Ht(Y0+t+voe));return n}function hv(e,t){var n;for(n=e;Ki(n);)if(n=Ki(n),n==t)return!0;return!1}function fRt(e,t){return t&&e.b[t.g]==t?(br(e.b,t.g,null),--e.c,!0):!1}function wa(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 Vc(e,t){var n,i,r,o;for(Ft(t),i=e.c,r=0,o=i.length;r<o;++r)n=i[r],t.Ad(n)}function hRt(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 dRt(e){var t,n;for(t=e.a.d.j,n=e.c.d.j;t!=n;)kf(e.b,t),t=iG(t);kf(e.b,t)}function gRt(e){var t;for(t=0;t<e.c.length;t++)(pt(t,e.c.length),c(e.c[t],12)).p=t}function pRt(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 Nte(e,t){var n,i,r,o;for(i=e.d,r=0,o=i.length;r<o;++r)n=i[r],mh(e.g,n).a=t}function CVe(e,t,n){var i,r;i=t;do r=ge(e.p[i.p])+n,e.p[i.p]=r,i=e.a[i.p];while(i!=t)}function mRt(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 CH(e){this.b=($n(e),new Hl(e)),this.a=new Qe,this.d=new Qe,this.e=new us}function Dbe(e){e.b=(Ql(),tp),e.f=(pl(),np),e.d=(qu(2,Lv),new Wc(2)),e.e=new us}function EVe(){EVe=W,AU=(Yf(),ee(Z(Fv,1),Re,240,0,[Ko,el,Yo])).length,wce=AU}function Yf(){Yf=W,Ko=new QY("BEGIN",0),el=new QY(fS,1),Yo=new QY("END",2)}function kh(){kh=W,m9=new bZ(fS,0),mx=new bZ("HEAD",1),b9=new bZ("TAIL",2)}function ED(){ED=W,lJ=new xge("READING_DIRECTION",0),R6e=new xge("ROTATION",1)}function MD(){MD=W,yae=new Rge("DIRECT_ROUTING",0),xae=new Rge("BEND_ROUTING",1)}function Q4(){Q4=W,Ebt=cd(cd(cd(CT(new yr,(ek(),ME)),(sC(),gue)),y9e),S9e)}function D1(){D1=W,Abt=cd(cd(cd(CT(new yr,(ek(),NE)),(sC(),O9e)),w9e),k9e)}function Iy(e,t){return z8t(j7(e,t,Qn(js(Wd,zd(Qn(js(t==null?0:zi(t),Vd)),15)))))}function Lbe(e,t){return ph(),yf(Hg),p.Math.abs(e-t)<=Hg||e==t||isNaN(e)&&isNaN(t)}function Pbe(e,t){return ph(),yf(Hg),p.Math.abs(e-t)<=Hg||e==t||isNaN(e)&&isNaN(t)}function Fu(e){var t;return e.w?e.w:(t=rLt(e),t&&!t.Sh()&&(e.w=t),t)}function bRt(e){var t;return e==null?null:(t=c(e,198),aQt(t,t.length))}function ae(e,t){if(e.g==null||t>=e.i)throw K(new kZ(t,e.i));return e.Ui(t,e.g[t])}function wRt(e,t){Mt();var n,i;for(i=new Qe,n=0;n<e;++n)Rt(i.c,t);return new _Y(i)}function MVe(e){return z0(e),A4(!0,"n may not be negative"),new Tt(e,new KVe(e.a))}function vRt(e,t){return H0(),pc(e.b.c.length-e.e.c.length,t.b.c.length-t.e.c.length)}function pj(e,t){var n,i;i=e.a,n=KBt(e,t,null),i!=t&&!e.e&&(n=nS(e,t,n)),n&&n.mj()}function xRt(e,t){var n;return n=Hr(Ms(c(Jt(e.g,t),8)),e0e(c(Jt(e.f,t),463).b)),n}function AVe(e,t,n){var i=function(){return e.apply(i,arguments)};return t.apply(i,n),i}function U4(e){var t;return YT(e==null||Array.isArray(e)&&(t=CD(e),!(t>=14&&t<=16))),e}function NVe(){NVe=W,q1t=En((sL(),ee(Z(U6e,1),Re,284,0,[fJ,H6e,Q6e,q6e,G6e,fle])))}function _Ve(){_Ve=W,H1t=En((Gj(),ee(Z(Y6e,1),Re,285,0,[iE,W6e,K6e,X6e,V6e,J6e])))}function DVe(){DVe=W,z1t=En((BG(),ee(Z(B6e,1),Re,286,0,[cle,ole,ule,lle,ale,uJ])))}function LVe(){LVe=W,_1t=En((rk(),ee(Z(US,1),Re,233,0,[QS,tE,GS,Jv,b3,m3])))}function PVe(){PVe=W,hvt=En((RG(),ee(Z(M7e,1),Re,328,0,[qae,T7e,E7e,j7e,C7e,S7e])))}function IVe(){IVe=W,I2t=En((xm(),ee(Z(Eae,1),Re,300,0,[Cae,JE,UE,Tae,GE,QE])))}function RVe(){RVe=W,A2t=En((Hd(),ee(Z(NTe,1),Re,259,0,[jae,WP,VP,mW,gW,pW])))}function $Ve(){$Ve=W,vvt=En((es(),ee(Z($7e,1),Re,103,0,[gp,Fh,v9,Jm,r1,Sc])))}function BVe(){BVe=W,xvt=En((Ul(),ee(Z(jW,1),Re,282,0,[pp,Z1,sI,nM,tM,Yk])))}function yRt(){return Cv(),ee(Z(Xs,1),Re,96,0,[Df,Y1,Lf,If,i1,Za,Ku,Pf,Ya])}function y7(){y7=W,oI=new vZ(V4e,0),Hae=new vZ("PARENT",1),z7e=new vZ("ROOT",2)}function zVe(e,t){return e.n=t,e.n?(e.f=new Qe,e.e=new Qe):(e.f=null,e.e=null),e}function um(e,t){var n;n=e.f,e.f=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new av(e,3,n,e.f))}function EH(e,t){var n;n=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new av(e,1,n,e.b))}function nw(e,t){var n;n=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new av(e,3,n,e.b))}function iw(e,t){var n;n=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new av(e,4,n,e.c))}function am(e,t){var n;n=e.g,e.g=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new av(e,4,n,e.g))}function Dc(e,t){var n;n=e.i,e.i=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new av(e,5,n,e.i))}function Dl(e,t){var n;n=e.j,e.j=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new av(e,6,n,e.j))}function rw(e,t){var n;n=e.j,e.j=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new av(e,1,n,e.j))}function sw(e,t){var n;n=e.k,e.k=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new av(e,2,n,e.k))}function MH(e,t){var n;n=e.a,e.a=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new av(e,0,n,e.a))}function Lg(e,t){var n;n=e.s,e.s=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new rte(e,4,n,e.s))}function dv(e,t){var n;n=e.t,e.t=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new rte(e,5,n,e.t))}function _te(e,t){var n;n=e.d,e.d=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new rte(e,2,n,e.d))}function mj(e,t){var n;n=e.F,e.F=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,5,n,t))}function AD(e,t){var n;return n=c(Jt((gF(),LW),e),58),n?n.ek(t):Ce(Br,It,1,t,5,1)}function L1(e,t){var n,i;return n=t in e.a,n&&(i=C1(e,t).pe(),i)?i.a:null}function kRt(e,t){var n,i,r;return n=(i=(y0(),r=new wN,r),t&&Dxe(i,t),i),Kbe(n,e),n}function FVe(e,t,n){var i;return i=Rj(n),ci(e.c,i,t),ci(e.d,t,n),ci(e.e,t,sv(t)),t}function vn(e,t,n,i,r,o){var a;return a=Cee(e,t),HVe(n,a),a.i=r?8:0,a.f=i,a.e=r,a.g=o,a}function Ibe(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 Rbe(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 $be(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 Bbe(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 zbe(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 qVe(e,t){var n,i,r,o;for(i=t,r=0,o=i.length;r<o;++r)n=i[r],bWe(e.a,n);return e}function va(e){var t,n,i,r;for(n=e,i=0,r=n.length;i<r;++i)t=n[i],$n(t);return new DBe(e)}function Fbe(e){var t;return t=Hr(Ms(e.d.d),e.c.d),Fj(t,e.c.e.a,e.c.e.b),ji(t,e.c.d)}function qbe(e){var t;return t=Hr(Ms(e.c.d),e.d.d),Fj(t,e.d.e.a,e.d.e.b),ji(t,e.d.d)}function ORt(e){var t=/function(?:\s+([\w$]+))?\s*\(/,n=t.exec(e);return n&&n[1]||bre}function HVe(e,t){if(e){t.n=e;var n=cDt(t);if(!n){yU[e]=[t];return}n.Pm=t}}function jRt(e,t,n){var i,r;return r=e.length,i=p.Math.min(n,r),cxe(e,0,t,0,i,!0),t}function GVe(e,t,n){if(Tj(e,n),!e.il()&&n!=null&&!e.dk(n))throw K(new gY);return n}function Cn(e,t){var n;return Ft(t),n=e[":"+t],Z_(!!n,"Enum constant undefined: "+t),n}function SRt(e,t){var n,i;return n=e.c,i=t.e[e.p],i>0?c(Xe(n.a,i-1),9):null}function yf(e){if(!(e>=0))throw K(new Ht("tolerance ("+e+") must be >= 0"));return e}function k7(){return kae||(kae=new brt,$y(kae,ee(Z(h3,1),It,139,0,[new ZN]))),kae}function AH(){AH=W,a9e=new oZ("NO",0),fue=new oZ(y3e,1),u9e=new oZ("LOOK_BACK",2)}function NH(){NH=W,D6e=new XY("ARD",0),cJ=new XY("MSD",1),Kce=new XY("MANUAL",2)}function Gs(){Gs=W,jE=new nZ(xC,0),Vl=new nZ("INPUT",1),tl=new nZ("OUTPUT",2)}function TRt(){return hL(),ee(Z(I6e,1),Re,268,0,[ele,P6e,nle,ile,tle,rle,vP,Zce,Yce])}function CRt(){return gL(),ee(Z(GSe,1),Re,269,0,[Kle,FSe,qSe,Vle,zSe,HSe,$J,Wle,Xle])}function ERt(){return uu(),ee(Z(q7e,1),Re,267,0,[x9,aI,SW,rM,TW,EW,CW,Gae,uI])}function to(e,t,n){return bm(e,t),Xc(e,n),Lg(e,0),dv(e,1),Bg(e,!0),$g(e,!0),e}function QVe(e,t){var n;return he(t,45)?e.c.Kc(t):(n=Sne(e,t),dG(e,t),n)}function O7(e,t){var n,i,r,o;for(i=t,r=0,o=i.length;r<o;++r)n=i[r],sr(e,n,e.c.b,e.c)}function MRt(){mRe();for(var e=Xoe,t=0;t<arguments.length;t++)e.push(arguments[t])}function ARt(e){var t,n,i,r;for(n=e.a,i=0,r=n.length;i<r;++i)t=n[i],AHe(t,t.length,null)}function _H(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 ND(e,t){var n;if(n=e.gc(),t<0||t>n)throw K(new K2(t,n));return new Z0e(e,t)}function UVe(e,t){var n,i;for(n=0,i=e.gc();n<i;++n)if(bc(t,e.Xb(n)))return n;return-1}function Hbe(e){var t,n;if(e==0)return 32;for(n=0,t=1;(t&e)==0;t<<=1)++n;return n}function qu(e,t){if(e<0)throw K(new Ht(t+" cannot be negative but was: "+e));return e}function NRt(e,t){t.Tg("Hierarchical port constraint processing",1),XFt(e),ein(e),t.Ug()}function DH(e,t){e.b=p.Math.max(e.b,t.d),e.e+=t.r+(e.a.c.length==0?0:e.c),Ue(e.a,t)}function JVe(e){U2(e.c>=0),gFt(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function _Rt(e){var t,n;for(n=new J(XZe(e));n.a<n.c.c.length;)t=c(U(n),692),t.Zf()}function DRt(e,t){var n,i,r;r=t.c.i,n=c(Jt(e.f,r),60),i=n.d.c-n.e.c,Vc(t.b,new cDe(i))}function LH(e,t){return B8t(S7(e.a,t,Qn(js(Wd,zd(Qn(js(t==null?0:zi(t),Vd)),15)))))}function WVe(e,t,n,i){this.$j(),this.a=t,this.b=e,this.c=null,this.c=new RFe(this,t,n,i)}function Dte(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 VVe(){d0e.call(this),this.n=-1,this.g=null,this.i=null,this.j=null,this.Bb|=Ua}function XVe(e){rge(),this.g=new xn,this.f=new xn,this.b=new xn,this.c=new Zb,this.i=e}function Gbe(){this.f=new us,this.d=new S1e,this.c=new us,this.a=new Qe,this.b=new Qe}function KVe(e){GF.call(this,e.yd(64)?Yge(0,Ga(e.xd(),1)):ML,e.wd()),this.b=1,this.a=e}function LRt(e,t){return Q4(),c($(t,(Wo(),N3)),15).a<e.gc()&&c($(t,N3),15).a>=0}function Qbe(){Qbe=W,omt=Kn(Kn(Kn(new yr,(ts(),Af),(os(),g3)),Zd,Qv),Oc,Gv)}function YVe(){YVe=W,cmt=Kn(Kn(Kn(new yr,(ts(),Af),(os(),g3)),Zd,Qv),Oc,Gv)}function Ube(){Ube=W,lmt=Kn(Kn(Kn(new yr,(ts(),Af),(os(),g3)),Zd,Qv),Oc,Gv)}function ZVe(){ZVe=W,umt=Kn(Kn(Kn(new yr,(ts(),Af),(os(),g3)),Zd,Qv),Oc,Gv)}function eXe(){eXe=W,amt=Kn(Kn(Kn(new yr,(ts(),Af),(os(),g3)),Zd,Qv),Oc,Gv)}function tXe(){tXe=W,fmt=Kn(Kn(Kn(new yr,(ts(),Af),(os(),g3)),Zd,Qv),Oc,Gv)}function nXe(){nXe=W,gmt=Uc(Kn(Kn(new yr,(ts(),Oc),(os(),JU)),jc,qU),Vs,UU)}function iXe(){iXe=W,Zft=ee(Z(Hn,1),li,30,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function Jbe(e,t){var n;n=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,0,n,e.b))}function Wbe(e,t){var n;n=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,1,n,e.c))}function Lte(e,t){var n;n=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,4,n,e.c))}function Vbe(e,t){var n;n=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,1,n,e.c))}function Xbe(e,t){var n;n=e.d,e.d=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,1,n,e.d))}function bj(e,t){var n;n=e.k,e.k=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,2,n,e.k))}function Pte(e,t){var n;n=e.D,e.D=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,2,n,e.D))}function PH(e,t){var n;n=e.f,e.f=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,8,n,e.f))}function IH(e,t){var n;n=e.i,e.i=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,7,n,e.i))}function Kbe(e,t){var n;n=e.a,e.a=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,8,n,e.a))}function Ybe(e,t){var n;n=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,0,n,e.b))}function PRt(e,t,n){var i;e.b=t,e.a=n,i=(e.a&512)==512?new ZPe:new oz,e.c=yXt(i,e.b,e.a)}function rXe(e,t){return z1(e.e,t)?(qs(),Tte(t)?new mq(t,e):new R_(t,e)):new vBe(t,e)}function IRt(e){var t,n;return 0>e?new nge:(t=e+1,n=new hJe(t,e),new _0e(null,n))}function RRt(e,t){Mt();var n;return n=new p4(1),Yr(e)?lo(n,e,t):bl(n.f,e,t),new aY(n)}function $Rt(e,t){var n;n=new fb,c(t.b,68),c(t.b,68),c(t.b,68),Vc(t.a,new cpe(e,n,t))}function sXe(e,t){var n;return he(t,8)?(n=c(t,8),e.a==n.a&&e.b==n.b):!1}function BRt(e){var t;return t=$(e,($e(),Si)),he(t,176)?EYe(c(t,176)):null}function oXe(e){var t;return e=p.Math.max(e,2),t=jwe(e),e>t?(t<<=1,t>0?t:pC):t}function Ite(e){switch(a0e(e.e!=3),e.e){case 2:return!1;case 0:return!0}return GPt(e)}function Zbe(e){var t;return e.b==null?(Tg(),Tg(),yI):(t=e.sl()?e.rl():e.ql(),t)}function cXe(e,t){var n,i;for(i=t.vc().Jc();i.Ob();)n=c(i.Pb(),45),iL(e,n.jd(),n.kd())}function ewe(e,t){var n;n=e.d,e.d=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,11,n,e.d))}function RH(e,t){var n;n=e.j,e.j=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,13,n,e.j))}function twe(e,t){var n;n=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,21,n,e.b))}function nwe(e,t){e.r>0&&e.c<e.r&&(e.c+=t,e.i&&e.i.d>0&&e.g!=0&&nwe(e.i,t/e.r*e.i.d))}function Ry(e){var t;return VZ(e.f.g,e.d),pn(e.b),e.c=e.a,t=c(e.a.Pb(),45),e.b=gwe(e),t}function lXe(e,t){var n;return n=t==null?-1:Do(e.b,t,0),n<0?!1:(Rte(e,n),!0)}function kf(e,t){var n;return Ft(t),n=t.g,e.b[n]?!1:(br(e.b,n,t),++e.c,!0)}function $H(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 Rte(e,t){var n;n=Ng(e.b,e.b.c.length-1),t<e.b.c.length&&(Ou(e.b,t,n),Wtt(e,t))}function zRt(e,t){(uH(),Dh?null:t.c).length==0&&uFe(t,new xi),lo(e.a,Dh?null:t.c,t)}function uXe(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)br(t,i,e.a[r])}function FRt(e,t){typeof window===SL&&typeof window.$gwt===SL&&(window.$gwt[e]=t)}function qRt(e,t){hr(bi(new Tt(null,new Ct(new hn(e.b),1)),new q$e(e,t)),new G$e(e,t))}function L0(){L0=W,Mk=new mi(g3e),PU=new mi(Vct),KC=new mi(Xct),hP=new mi(Kct)}function wj(){wj=W,pP=new wge("TO_INTERNAL_LTR",0),Pce=new wge("TO_INPUT_DIRECTION",1)}function BH(){BH=W,eW=new Nge("P1_NODE_PLACEMENT",0),D3=new Nge("P2_EDGE_ROUTING",1)}function ow(){ow=W,Iw=new VY("START",0),ip=new VY("MIDDLE",1),Pw=new VY("END",2)}function aXe(e,t,n){zme.call(this,e,t,n),this.a=new xn,this.b=new xn,this.d=new EDe(this)}function fXe(e){_pe.call(this),this.b=ge(be($(e,(We(),Nf)))),this.a=c($(e,V1),225)}function HRt(e,t){var n,i;return n=c($(e,(We(),nx)),8),i=c($(t,nx),8),Ci(n.b,i.b)}function GRt(e,t){var n,i;i=new Qe,n=t;do Rt(i.c,n),n=c(Jt(e.k,n),17);while(n);return i}function $te(e,t,n){var i;return i=new Qe,Ixe(e,t,i,n,!0,!0),e.b=new qH(i.c.length),i}function hXe(e,t){var n;return n=c(Jt(e.c,t),459),n||(n=new _Pe,n.c=t,ci(e.c,n.c,n)),n}function Bte(e,t){var n=e.a,i=0;for(var r in n)n.hasOwnProperty(r)&&(t[i++]=r);return t}function iwe(e){var t,n;for(n=new ln(e);n.e!=n.i.gc();)t=c(fn(n),19),Dc(t,0),Dl(t,0)}function dXe(e){var t,n;for(n=e.c.a.ec().Jc();n.Ob();)t=c(n.Pb(),221),ay(t,new dHe(t.f))}function rwe(e){var t,n;for(n=e.c.a.ec().Jc();n.Ob();)t=c(n.Pb(),221),Vde(t,new ott(t.e))}function fm(e,t){var n,i;for(n=e.Nc(),hj(n,0,n.length,t),i=0;i<n.length;i++)e.fd(i,n[i])}function Xc(e,t){var n;n=e.zb,e.zb=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,1,n,e.zb))}function ur(e,t){var n,i;n=(i=new wY,i),n.n=t,Dn((!e.s&&(e.s=new Le(jl,e,21,17)),e.s),n)}function qi(e,t){var n,i;i=(n=new A0e,n),i.n=t,Dn((!e.s&&(e.s=new Le(jl,e,21,17)),e.s),i)}function zte(e,t){var n;return he(t,18)?(n=c(t,18),e.Fc(n)):Cte(e,c($n(t),22).Jc())}function zH(e,t){var n;n=e.xb,e.xb=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,3,n,e.xb))}function FH(e,t){var n;n=e.yb,e.yb=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,2,n,e.yb))}function QRt(e,t){t.Tg(hlt,1),hr(jo(new Tt(null,new Ct(e.b,16)),new PO),new pb),t.Ug()}function zi(e){return Yr(e)?Pg(e):Q2(e)?y4(e):G2(e)?aFe(e):Rpe(e)?e.Hb():Lpe(e)?Hb(e):vme(e)}function Os(e,t){var n,i,r;for(Ft(t),n=!1,r=t.Jc();r.Ob();)i=r.Pb(),n=n|e.Ec(i);return n}function gXe(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 pXe(e){var t;return e==0?"UTC":(e<0?(e=-e,t="UTC+"):t="UTC-",t+YWe(e))}function swe(e){return e.a<54?e.f<0?-1:e.f>0?1:0:(!e.c&&(e.c=uD(nc(e.f))),e.c).e}function mXe(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,k,T,A){return qtt(e,t,n,i,r,o,a,d,b,v,k,T,A),wne(e,!1),e}function Fte(e,t,n,i,r,o){var a;this.c=e,a=new Qe,F2e(e,a,t,e.b,n,i,r,o),this.a=new ss(a,0)}function bXe(){this.c=new nF(0),this.b=new nF(U5e),this.d=new nF(Rlt),this.a=new nF($lt)}function wXe(e){this.e=e,this.d=new tF(mv(N4(this.e).gc())),this.c=this.e.a,this.b=this.e.c}function qH(e){this.b=e,this.a=Ce(Hn,li,30,e+1,15,1),this.c=Ce(Hn,li,30,e,15,1),this.d=0}function URt(){return U0(),ee(Z(ZSe,1),Re,246,0,[FJ,DP,LP,XSe,KSe,VSe,YSe,qJ,r9,OE])}function JRt(){return Qs(),ee(Z(hle,1),Re,262,0,[hJ,Ma,rE,dJ,XS,v3,sE,WS,VS,gJ])}function vXe(e,t){return ge(be(wu(QD(Jc(new Tt(null,new Ct(e.c.b,16)),new pDe(e)),t))))}function owe(e,t){return ge(be(wu(QD(Jc(new Tt(null,new Ct(e.c.b,16)),new gDe(e)),t))))}function xXe(e,t){return ph(),yf(Ah),p.Math.abs(0-t)<=Ah||t==0||isNaN(0)&&isNaN(t)?0:e/t}function WRt(e,t){return Oj(),e==Lw&&t==Hv||e==Hv&&t==Lw||e==d3&&t==qv||e==qv&&t==d3}function VRt(e,t){return Oj(),e==Lw&&t==qv||e==Lw&&t==d3||e==Hv&&t==d3||e==Hv&&t==qv}function XRt(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 cwe(e,t,n){var i,r;for(r=Ln(e,0);r.b!=r.d.c;)i=c(_n(r),8),i.a+=t,i.b+=n;return e}function j7(e,t,n){var i;for(i=e.b[n&e.f];i;i=i.b)if(n==i.a&&S1(t,i.g))return i;return null}function S7(e,t,n){var i;for(i=e.c[n&e.f];i;i=i.d)if(n==i.f&&S1(t,i.i))return i;return null}function KRt(e,t){var n,i;return n=c(Ae(e,(G0(),nW)),15),i=c(Ae(t,nW),15),pc(n.a,i.a)}function YRt(e,t){var n;t.Tg("General Compactor",1),n=Wzt(c(Ae(e,(G0(),Iue)),387)),n.Bg(e)}function ZRt(e,t,n){n.Tg("DFS Treeifying phase",1),sFt(e,t),HVt(e,t),e.a=null,e.b=null,n.Ug()}function e$t(e,t,n,i){var r;r=new f4,im(r,"x",_G(e,t,i.a)),im(r,"y",DG(e,t,i.b)),P4(n,r)}function t$t(e,t,n,i){var r;r=new f4,im(r,"x",_G(e,t,i.a)),im(r,"y",DG(e,t,i.b)),P4(n,r)}function qte(){qte=W,uM=new WPe,tfe=ee(Z(jl,1),u3,182,0,[]),gxt=ee(Z(nf,1),bke,62,0,[])}function J4(){J4=W,$ce=new Gi("edgelabelcenterednessanalysis.includelabel",(zt(),ep))}function Ll(){Ll=W,zOe=new m5,$Oe=new m0,BOe=new Cd,ROe=new t8,FOe=new ZM,qOe=new m2}function n$t(e,t){t.Tg(hlt,1),g2e(Z8t(new $z((OT(),new _ee(e,!1,!1,new e8))))),t.Ug()}function Hte(e){var t;return t=Bme(e),zT(t.a,0)?(F2(),F2(),fce):(F2(),new $Z(t.b))}function Gte(e){var t;return t=Bme(e),zT(t.a,0)?(F2(),F2(),fce):(F2(),new $Z(t.c))}function i$t(e){var t;return t=eH(e),zT(t.a,0)?(oF(),oF(),hht):(oF(),new Wze(t.b))}function r$t(e){return e.b.c.i.k==(Wt(),Ar)?c($(e.b.c.i,($e(),Si)),12):e.b.c}function yXe(e){return e.b.d.i.k==(Wt(),Ar)?c($(e.b.d.i,($e(),Si)),12):e.b.d}function kXe(e){switch(e.g){case 2:return Ve(),Zt;case 4:return Ve(),sn;default:return e}}function OXe(e){switch(e.g){case 1:return Ve(),wn;case 3:return Ve(),Yt;default:return e}}function s$t(e,t){var n;return n=Sve(e),nxe(new He(n.c,n.d),new He(n.b,n.a),e.Kf(),t,e.$f())}function o$t(e){var t,n,i;for(i=0,n=new J(e.b);n.a<n.c.c.length;)t=c(U(n),26),t.p=i,++i}function T7(e,t){var n,i;for(Ft(t),i=t.vc().Jc();i.Ob();)n=c(i.Pb(),45),e.yc(n.jd(),n.kd())}function c$t(e,t,n){var i;for(i=n.Jc();i.Ob();)if(!nH(e,t,i.Pb()))return!1;return!0}function l$t(e,t){var n;for($n(t);e.Ob();)if(n=e.Pb(),!dwe(c(n,9)))return!1;return!0}function u$t(e,t,n,i,r){var o;return n&&(o=Yi(t.Ah(),e.c),r=n.Oh(t,-1-(o==-1?i:o),null,r)),r}function a$t(e,t,n,i,r){var o;return n&&(o=Yi(t.Ah(),e.c),r=n.Qh(t,-1-(o==-1?i:o),null,r)),r}function jXe(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 f$t(e){if(Ft(e),e.length==0)throw K(new Yh("Zero length BigInteger"));$Kt(this,e)}function lwe(e){this.i=e.gc(),this.i>0&&(this.g=this.$i(this.i+(this.i/8|0)+1),e.Oc(this.g))}function SXe(e,t,n){this.g=e,this.d=t,this.e=n,this.a=new Qe,tJt(this),Mt(),Rr(this.a,null)}function xa(e,t,n,i,r,o,a){Tn.call(this,e,t),this.d=n,this.e=i,this.c=r,this.b=o,this.a=vf(a)}function uwe(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),Ue(e.a,t)}function Qte(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 gv(e,t){var n,i;for(i=Ln(e,0);i.b!=i.d.c;)n=c(_n(i),8),n.a+=t.a,n.b+=t.b;return e}function h$t(e,t){return t<e.b.gc()?c(e.b.Xb(t),9):t==e.b.gc()?e.a:c(Xe(e.e,t-e.b.gc()-1),9)}function _D(e,t){return zt(),Yr(e)?obe(e,qn(t)):Q2(e)?gee(e,be(t)):G2(e)?YAt(e,nt(t)):e.Dd(t)}function HH(e,t){var n;he(t,93)?(c(e.c,78).Ek(),n=c(t,93),cXe(e,n)):c(e.c,78).Wb(t)}function TXe(e,t,n,i){he(e.Cb,187)&&(c(e.Cb,187).tb=null),Xc(e,n),t&&bJt(e,t),i&&e.el(!0)}function DD(e,t){var n,i;for(Ft(t),i=e.vc().Jc();i.Ob();)n=c(i.Pb(),45),t.Wd(n.jd(),n.kd())}function d$t(e){var t,n,i;return e.j==(Ve(),Yt)&&(t=Int(e),n=Al(t,sn),i=Al(t,Zt),i||i&&n)}function awe(){awe=W,pmt=cd(TBe(Kn(Kn(new yr,(ts(),Oc),(os(),JU)),jc,qU),Vs),UU)}function CXe(){CXe=W,vmt=cd(TBe(Kn(Kn(new yr,(ts(),Oc),(os(),JU)),jc,qU),Vs),UU)}function EXe(){EXe=W,i1t=En((Wt(),ee(Z(Lce,1),Re,252,0,[ar,Er,Ar,$c,fc,Lh,gP,ZC])))}function MXe(){MXe=W,N1t=En((eQ(),ee(Z(C6e,1),Re,277,0,[Hce,Uce,qce,Vce,Qce,Gce,Wce,Jce])))}function AXe(){AXe=W,M2t=En((Q0(),ee(Z(E2t,1),Re,287,0,[ETe,Ir,Ss,Uk,ls,Vi,Qk,Rh])))}function NXe(){NXe=W,Jvt=En((ak(),ee(Z(bI,1),Re,235,0,[Kae,DW,mI,pI,Xae,_W,NW,Vae])))}function _Xe(){return sC(),ee(Z(Hin,1),Re,265,0,[gue,y9e,S9e,T9e,j9e,x9e,C9e,w9e,O9e,k9e,v9e])}function GH(){GH=W,Bue=new fZ(th,0),x8e=new fZ("POLAR_COORDINATE",1),v8e=new fZ("ID",2)}function vj(){vj=W,XC=new Gi("debugSVG",(zt(),!1)),dOe=new Gi("overlapsExisted",!0)}function g$t(){var e;return mce||(mce=new kPe,e=new cte(""),KTt(e,(F6(),cOe)),zRt(mce,e)),mce}function DXe(e){return V2(),e.A.Gc((Cu(),bx))&&!e.B.Gc((uu(),aI))?DYe(e):null}function LXe(e,t){var n;return n=Xxe(k7(),e),n?(ri(t,(Pn(),gx),n),!0):!1}function Hu(e,t){var n;for(n=0;n<t.j.c.length;n++)c(OD(e,n),24).Fc(c(OD(t,n),18));return e}function p$t(e,t){var n,i;for(i=new J(t.b);i.a<i.c.c.length;)n=c(U(i),26),e.a[n.p]=CQt(n)}function pv(e){this.f=e,this.e=new Kme(this.f.i),this.a=this.e,this.b=gwe(this),this.d=this.f.g}function gr(e,t){hq.call(this,pxt,e,t),this.b=this,this.a=ol(e.Ah(),Lt(this.e.Ah(),this.c))}function PXe(){this.a=c(Ke((Tf(),DU)),15).a,this.c=ge(be(Ke(LU))),this.b=ge(be(Ke(Oce)))}function IXe(e,t){e.a=As(e.a,1),e.c=p.Math.min(e.c,t),e.b=p.Math.max(e.b,t),e.d=As(e.d,t)}function Ute(e,t,n,i){var r;r=e.a.length,n>r?n=r:tn(t,n+1),e.a=qa(e.a,0,t)+(""+i)+tme(e.a,n)}function hm(e,t,n){var i,r;return r=c(KT(e.d,t),15),i=c(KT(e.b,n),15),!r||!i?null:H4(e,r.a,i.a)}function m$t(e,t,n){return Ci(O4($j(e),new He(t.e.a,t.e.b)),O4($j(e),new He(n.e.a,n.e.b)))}function b$t(e,t,n){return e==(mm(),GJ)?new v8:lu(t,1)!=0?new Q1e(n.length):new AIe(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 xj(e,t){var n,i;for(n=e,i=Jr(n).e;i;){if(n=i,n==t)return!0;i=Jr(n).e}return!1}function P0(e){var t;return t=e.h,t==0?e.l+e.m*mk:t==H1?e.l+e.m*mk-jm:e}function w$t(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 mv(e){return e<3?(qu(e,lct),e+1):e<pC?ys(p.Math.ceil(e/.75)):pi}function nc(e){return DL<e&&e<jm?e<0?p.Math.ceil(e):p.Math.floor(e):P0(TVt(e))}function RXe(e){switch(e.a.g){case 1:return new W$e;case 3:return new YZe;default:return new FK}}function Kt(e,t){var n;return(e.Db&t)!=0?(n=Kne(e,t),n==-1?e.Eb:U4(e.Eb)[n]):null}function v$t(e){var t;if(e.a==e.b.a)throw K(new Eo);return t=e.a,e.c=t,e.a=c(Fa(e.a.e),229),t}function $Xe(e){var t;e.d==null?(++e.e,e.f=0,KKe(null)):(++e.e,t=e.d,e.d=null,e.f=0,KKe(t))}function x$t(e,t){var n,i;for(i=new J(t);i.a<i.c.c.length;)n=c(U(i),70),Ue(e.d,n),EQt(e,n)}function y$t(e,t){var n,i;for(i=new ln(e);i.e!=i.i.gc();)n=c(fn(i),19),ha(n,n.i+t.b,n.j+t.d)}function Jo(e,t){var n,i;return n=(i=new v1,i),n.G=t,!e.rb&&(e.rb=new tv(e,ah,e)),Dn(e.rb,n),n}function hi(e,t){var n,i;return n=(i=new Gz,i),n.G=t,!e.rb&&(e.rb=new tv(e,ah,e)),Dn(e.rb,n),n}function LD(e){var t,n,i;for(i=0,n=new m4(e.a);n.a<n.c.a.length;)t=m7(n),e.b.Gc(t)&&++i;return i}function k$t(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 PD(e){var t;return e<128?($qe(),t=qke[e],!t&&(t=qke[e]=new Ho(e)),t):new Ho(e)}function QH(e){var t;if(e.g>1||e.Ob())return++e.a,e.g=0,t=e.i,e.Ob(),t;throw K(new Eo)}function O$t(e){KBe();var t;return t$e(due,e)||(t=new S2,t.a=e,B0e(due,e,t)),c(eo(due,e),642)}function Ha(e){var t,n,i,r;return r=e,i=0,r<0&&(r+=jm,i=H1),n=ys(r/mk),t=ys(r-n*mk),rl(t,n,i)}function BXe(e,t){var n;return n=e.a.get(t),n===void 0?++e.d:(ECt(e.a,t),--e.c,++e.b.g),n}function ic(e,t){var n;return t&&(n=t.lf(),n.dc()||(e.q?T7(e.q,n):e.q=new $Be(n))),e}function j$t(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 fwe(e,t){switch(t){case 1:return!!e.n&&e.n.i!=0;case 2:return e.k!=null}return Pme(e,t)}function S$t(e){return e.b.c.length!=0&&c(Xe(e.b,0),70).a?c(Xe(e.b,0),70).a:Iee(e)}function T$t(e,t){var n;try{t.be()}catch(i){if(i=kr(i),he(i,81))n=i,Rt(e.c,n);else throw K(i)}}function C$t(e,t){var n;t.Tg("Edge and layer constraint edge reversal",1),n=ZXt(e),Ptn(n),t.Ug()}function E$t(e,t){var n,i;return n=e.j,i=t.j,n!=i?n.g-i.g:e.p==t.p?0:n==(Ve(),Yt)?e.p-t.p:t.p-e.p}function yj(e,t){this.b=e,this.e=t,this.d=t.j,this.f=(qs(),c(e,69).vk()),this.k=ol(t.e.Ah(),e)}function dm(e,t,n){this.b=(Ft(e),e),this.d=(Ft(t),t),this.e=(Ft(n),n),this.c=this.d+(""+this.e)}function hwe(e,t,n,i,r){bKe.call(this,e,n,i,r),this.f=Ce(e1,Qg,9,t.a.c.length,0,1),Oh(t.a,this.f)}function C7(e,t,n,i,r){br(e.c[t.g],n.g,i),br(e.c[n.g],t.g,i),br(e.b[t.g],n.g,r),br(e.b[n.g],t.g,r)}function zXe(e,t){e.c&&(Crt(e,t,!0),hr(new Tt(null,new Ct(t,16)),new yDe(e))),Crt(e,t,!1)}function ID(e){this.n=new Qe,this.e=new _i,this.j=new _i,this.k=new Qe,this.f=new Qe,this.p=e}function FXe(e){e.r=new Tr,e.w=new Tr,e.t=new Qe,e.i=new Qe,e.d=new Tr,e.a=new k4,e.c=new xn}function cw(){cw=W,fP=new vF("UP",0),aP=new vF(Wre,1),xce=new vF(bk,2),yce=new vF(wk,3)}function UH(){UH=W,i9e=new iZ("EQUALLY",0),cue=new iZ("NORTH",1),r9e=new iZ("NORTH_SOUTH",2)}function kj(){kj=W,dle=new YY("ONE_SIDED",0),gle=new YY("TWO_SIDED",1),xP=new YY("OFF",2)}function qXe(){qXe=W,Evt=En((uu(),ee(Z(q7e,1),Re,267,0,[x9,aI,SW,rM,TW,EW,CW,Gae,uI])))}function HXe(){HXe=W,bvt=En((Cv(),ee(Z(Xs,1),Re,96,0,[Df,Y1,Lf,If,i1,Za,Ku,Pf,Ya])))}function GXe(){GXe=W,I1t=En((hL(),ee(Z(I6e,1),Re,268,0,[ele,P6e,nle,ile,tle,rle,vP,Zce,Yce])))}function QXe(){QXe=W,Bpt=En((gL(),ee(Z(GSe,1),Re,269,0,[Kle,FSe,qSe,Vle,zSe,HSe,$J,Wle,Xle])))}function Of(){Of=W,Uv=new OF(fS,0),qS=new OF(bk,1),HS=new OF(wk,2),zce=new OF("TOP",3)}function JH(){JH=W,hue=new cZ("OFF",0),s9=new cZ("SINGLE_EDGE",1),ox=new cZ("MULTI_EDGE",2)}function RD(){RD=W,dW=new Pge("MINIMUM_SPANNING_TREE",0),wTe=new Pge("MAXIMUM_SPANNING_TREE",1)}function M$t(e,t,n){var i,r;r=c($(e,(We(),ho)),79),r&&(i=new nu,une(i,0,r),gv(i,n),Os(t,i))}function dwe(e){var t;return t=c($(e,($e(),Zo)),64),e.k==(Wt(),Ar)&&(t==(Ve(),Zt)||t==sn)}function A$t(e){var t;if(e){if(t=e,t.dc())throw K(new Eo);return t.Xb(t.gc()-1)}return EQe(e.Jc())}function Jte(e,t,n,i){return n==1?(!e.n&&(e.n=new Le(Bo,e,1,7)),Ns(e.n,t,i)):Dve(e,t,n,i)}function $D(e,t){var n,i;return i=(n=new z8,n),Xc(i,t),Dn((!e.A&&(e.A=new Ml(fl,e,7)),e.A),i),i}function N$t(e,t,n){var i,r,o,a;return o=null,a=t,r=ew(a,Coe),i=new eBe(e,n),o=(Oet(i.a,i.b,r),r),o}function WH(e,t,n){var i,r,o,a;a=Jr(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 _$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),rl(n&au,i&au,r&H1)}function UXe(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),rl(n&au,i&au,r&H1)}function BD(e,t){var n,i;for(Ft(t),i=t.Jc();i.Ob();)if(n=i.Pb(),!e.Gc(n))return!1;return!0}function Wte(e){var t;return(!e.a||(e.Bb&1)==0&&e.a.Sh())&&(t=Qa(e),he(t,160)&&(e.a=c(t,160))),e.a}function kr(e){var t;return he(e,81)?e:(t=e&&e.__java$exception,t||(t=new $Ke(e),mPe(t)),t)}function Vte(e){if(he(e,196))return c(e,127);if(e)return null;throw K(new h4(cat))}function JXe(e){switch(e.g){case 0:return new dK;case 1:return new V$;case 2:default:return null}}function gwe(e){return e.a.Ob()?!0:e.a!=e.e?!1:(e.a=new bbe(e.f.f),e.a.Ob())}function WXe(e,t){if(t==null)return!1;for(;e.a!=e.b;)if(ki(t,eG(e)))return!0;return!1}function VXe(e,t){return!e||!t||e==t?!1:VYe(e.d.c,t.d.c+t.d.b)&&VYe(t.d.c,e.d.c+e.d.b)}function D$t(){return uH(),Dh?new cte(null):Dnt(g$t(),"com.google.common.base.Strings")}function Or(e,t){var n,i;return n=t.Nc(),i=n.length,i==0?!1:(kpe(e.c,e.c.length,n),!0)}function L$t(e,t){var n,i;return n=e.c,i=t.e[e.p],i<n.a.c.length-1?c(Xe(n.a,i+1),9):null}function P$t(e){var t,n;for(hZt(e),n=new J(e.d);n.a<n.c.c.length;)t=c(U(n),108),t.i&&iUt(t)}function XXe(e,t){var n,i;for(i=new J(e.b);i.a<i.c.c.length;)n=c(U(i),70),_e(n,($e(),Ik),t)}function I$t(e,t,n){var i,r;for(r=new J(e.b);r.a<r.c.c.length;)i=c(U(r),19),ha(i,i.i+t,i.j+n)}function Xte(e){var t,n,i;for(t=new _i,i=Ln(e.d,0);i.b!=i.d.c;)n=c(_n(i),65),ni(t,n.c);return t}function pwe(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 KXe(e){var t,n;return n=(t=new z8,t),Xc(n,"T"),Dn((!e.d&&(e.d=new Ml(fl,e,11)),e.d),n),n}function YXe(e,t){var n;return n=Pd(t.a.gc()),hr(SH(new Tt(null,new Ct(t,1)),e.i),new F$e(e,n)),n}function ZXe(e,t,n,i){var r;return hD(t,e.e.Pd().gc()),hD(n,e.c.Pd().gc()),r=e.a[t][n],br(e.a[t],n,i),r}function R$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),Vc(i.a,new ope(e,t,i))}function $$t(e,t){e.d==(_r(),go)||e.d==Aa?c(t.a,60).c.Ec(c(t.b,60)):c(t.b,60).c.Ec(c(t.a,60))}function mwe(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 B$t(e,t,n,i,r){return Vj(),p.Math.min(tot(e,t,n,i,r),tot(n,i,e,t,nq(new He(r.a,r.b))))}function eKe(e,t){if(!e)throw K(new Ht(rC("value already present: %s",ee(Z(Br,1),It,1,5,[t]))))}function tKe(e,t,n){var i;lc(e.a),Vc(n.i,new gLe(e)),i=new JF(c(Jt(e.a,t.b),68)),tZe(e,i,t),n.f=i}function z$t(e){var t;qg(e,!0),t=Gg,Oi(e,(We(),t9))&&(t+=c($(e,t9),15).a),_e(e,t9,ze(t))}function Kte(e){var t,n,i,r;for(r=new Qe,i=e.Jc();i.Ob();)n=c(i.Pb(),19),t=Ev(n),Or(r,t);return r}function bwe(e){var t,n;return n=(y0(),t=new a6,t),e&&Dn((!e.a&&(e.a=new Le(Qi,e,6,6)),e.a),n),n}function W4(e,t){var n,i;if(i=0,e<64&&e<=t)for(t=t<64?t:63,n=e;n<=t;n++)i=id(i,$d(1,n));return i}function nKe(e){switch(e.g){case 1:return hp;case 2:return n1;case 3:return nI;default:return iI}}function F$t(e){switch(c($(e,(We(),Ro)),166).g){case 2:case 4:return!0;default:return!1}}function wwe(e,t){switch(t){case 0:!e.o&&(e.o=new _l((uc(),s1),n0,e,0)),e.o.c.$b();return}wie(e,t)}function q$t(e,t){var n,i;for(qq(t,"predicate"),i=0;e.Ob();i++)if(n=e.Pb(),t.Lb(n))return i;return-1}function vwe(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 H$t(e){var t;return t=new qe,t.a=e,t.b=V$t(e),t.c=Ce(st,Ge,2,2,6,1),t.c[0]=pXe(e),t.c[1]=pXe(e),t}function ee(e,t,n,i,r){return r.Pm=e,r.Qm=t,r.Rm=le,r.__elementTypeId$=n,r.__elementTypeCategory$=i,r}function G$t(e,t,n,i){return new uge(ee(Z(Dm,1),pQ,45,0,[(Une(e,t),new $b(e,t)),(Une(n,i),new $b(n,i))]))}function VH(){VH=W,Bce=new kF(th,0),tJ=new kF(plt,1),nJ=new kF(mlt,2),mP=new kF("BOTH",3)}function Oj(){Oj=W,Lw=new xF("Q1",0),Hv=new xF("Q4",1),qv=new xF("Q2",2),d3=new xF("Q3",3)}function I0(){I0=W,yP=new ZY("ONLY_WITHIN_GROUP",0),Z6e=new ZY(Zre,1),Wv=new ZY("ENFORCED",2)}function gm(){gm=W,sle=new KY(th,0),JS=new KY("INCOMING_ONLY",1),w3=new KY("OUTGOING_ONLY",2)}function V4(){V4=W,O2t=new X$,k2t=new sN}function Yte(){Yte=W,oce={boolean:U8t,number:s8t,string:o8t,object:Qtt,function:Qtt,undefined:$9t}}function iKe(){iKe=W,Hpt=En((U0(),ee(Z(ZSe,1),Re,246,0,[FJ,DP,LP,XSe,KSe,VSe,YSe,qJ,r9,OE])))}function rKe(){rKe=W,G1t=En((Qs(),ee(Z(hle,1),Re,262,0,[hJ,Ma,rE,dJ,XS,v3,sE,WS,VS,gJ])))}function Q$t(e){var t,n,i,r;for(n=e.a,i=0,r=n.length;i<r;++i)t=n[i],mKe(e,t,(Ve(),wn)),mKe(e,t,Yt)}function sKe(e){var t,n,i;return n=e.n,i=e.o,t=e.d,new bf(n.a-t.b,n.b-t.d,i.a+(t.b+t.c),i.b+(t.d+t.a))}function U$t(e,t){return!e||!t||e==t?!1:uw(e.b.c,t.b.c+t.b.b)<0&&uw(t.b.c,e.b.c+e.b.b)<0}function Zte(e,t,n){return e>=128?!1:e<64?FT(Zr($d(1,e),n),0):FT(Zr($d(1,e-64),t),0)}function xwe(e,t,n){var i;if(i=e.gc(),t>i)throw K(new K2(t,i));return e.Qi()&&(n=uQe(e,n)),e.Ci(t,n)}function J$t(e,t){var n,i;return n=c(c(Jt(e.g,t.a),49).a,68),i=c(c(Jt(e.g,t.b),49).a,68),rst(n,i)}function jj(e){var t,n,i;return t=~e.l+1&au,n=~e.m+(t==0?1:0)&au,i=~e.h+(t==0&&n==0?1:0)&H1,rl(t,n,i)}function W$t(e){Vj();var t,n,i;for(n=Ce(Vr,Ge,8,2,0,1),i=0,t=0;t<2;t++)i+=.5,n[t]=Eqt(i,e);return n}function oKe(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|oFt(e,t,o,r);return n}function cKe(e){var t,n;return n=new aH,ic(n,e),_e(n,(L0(),Mk),e),t=new xn,KYt(e,n,t),Mtn(e,n,t),n}function _e(e,t,n){return n==null?(!e.q&&(e.q=new xn),q4(e.q,t)):(!e.q&&(e.q=new xn),ci(e.q,t,n)),e}function zD(e,t,n){return n==null?(!e.q&&(e.q=new xn),q4(e.q,t)):(!e.q&&(e.q=new xn),ci(e.q,t,n)),e}function lKe(e,t){return O4($j(c($(t,(Wo(),Qw)),87)),new He(e.c.e.a-e.b.e.a,e.c.e.b-e.b.e.b))<=0}function uKe(e,t){this.b=e,yy.call(this,(c(ae(Pe((E0(),Ut).o),10),20),t.i),t.g),this.a=(qte(),tfe)}function ywe(e,t,n){this.q=new p.Date,this.q.setFullYear(e+W0,t,n),this.q.setHours(0,0,0,0),cC(this,0)}function kwe(){this.o=null,this.k=null,this.j=null,this.d=null,this.b=null,this.n=null,this.a=null}function aKe(e,t){for(;e.g==null&&!e.c?Sme(e):e.g==null||e.i!=0&&c(e.g[e.i-1],51).Ob();)t.Bi(GG(e))}function FD(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 Owe(e,t){switch(t){case 7:return!!e.e&&e.e.i!=0;case 8:return!!e.d&&e.d.i!=0}return b2e(e,t)}function fKe(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 E7(e){var t;return t=e.a[e.b],t==null?null:(br(e.a,e.b,null),e.b=e.b+1&e.a.length-1,t)}function hKe(e,t,n){var i,r;return i=new bte(t,n),r=new Jn,e.b=zit(e,e.b,i,r),r.b||++e.c,e.b.b=!1,r.d}function dKe(e){var t,n;return n=aL(e.h),n==32?(t=aL(e.m),t==32?aL(e.l)+32:t+20-10):n-12}function jwe(e){var t;if(e<0)return cs;if(e==0)return 0;for(t=pC;(t&e)==0;t>>=1);return t}function V$t(e){var t;return e==0?"Etc/GMT":(e<0?(e=-e,t="Etc/GMT-"):t="Etc/GMT+",t+YWe(e))}function Swe(e){var t;return(!e.c||(e.Bb&1)==0&&(e.c.Db&64)!=0)&&(t=Qa(e),he(t,89)&&(e.c=c(t,29))),e.c}function R0(e){var t,n;for(n=new J(e.a.b);n.a<n.c.c.length;)t=c(U(n),84),t.g.c=-t.g.c-t.g.b;XG(e)}function $0(e){var t,n;for(n=new J(e.a.b);n.a<n.c.c.length;)t=c(U(n),60),t.d.c=-t.d.c-t.d.b;_xe(e)}function X$t(e){var t,n,i;return t=c(e.e&&e.e(),10),i=(n=t.slice(),c(yte(n,t),10)),new ga(t,i,t.length)}function ene(e){var t,n,i;t=~e.l+1&au,n=~e.m+(t==0?1:0)&au,i=~e.h+(t==0&&n==0?1:0)&H1,e.l=t,e.m=n,e.h=i}function Lo(e){var t,n,i,r,o;for(t=new us,i=e,r=0,o=i.length;r<o;++r)n=i[r],t.a+=n.a,t.b+=n.b;return t}function Twe(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 tne(e,t,n){var i,r,o,a;return o=null,a=t,r=ew(a,"labels"),i=new oBe(e,n),o=(Jnt(i.a,i.b,r),r),o}function gKe(e,t,n){var i;return i=new Qe,Ixe(e,t,i,(Ve(),sn),!0,!1),Ixe(e,n,i,Zt,!1,!1),i}function K$t(e,t,n,i){var r;return r=kxe(e,t,n,i),!r&&(r=ZBt(e,n,i),r&&!Yy(e,t,r))?null:r}function Y$t(e,t,n,i){var r;return r=Oxe(e,t,n,i),!r&&(r=pne(e,n,i),r&&!Yy(e,t,r))?null:r}function pKe(e,t){var n;for(n=0;n<e.a.a.length;n++)if(!c(qqe(e.a,n),181).Lb(t))return!1;return!0}function Z$t(e,t,n){if($n(t),n.Ob())for(Hge(t,QHe(n.Pb()));n.Ob();)Hge(t,e.a),Hge(t,QHe(n.Pb()));return t}function Cwe(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 mKe(e,t,n){var i,r,o,a;for(a=L7(t,n),o=0,r=a.Jc();r.Ob();)i=c(r.Pb(),12),ci(e.c,i,ze(o++))}function pm(e){var t,n;for(n=new J(e.a.b);n.a<n.c.c.length;)t=c(U(n),84),t.f.$b();e8t(e.b,e),Eit(e)}function P1(e){var t;return M0(e),t=new hs,e.a.zd(t)?(H6(),new jY(Ft(t.a))):(H6(),H6(),rOe)}function Ewe(e){var t;return e.b<=0?!1:(t=Zh("MLydhHmsSDkK",ml(bs(e.c,0))),t>1||t>=0&&e.b<3)}function eBt(e,t,n){return!R6(bi(new Tt(null,new Ct(e.c,16)),new E6(new H$e(t,n)))).zd((Jp(),Ck))}function nne(e,t,n){this.g=e,this.e=new us,this.f=new us,this.d=new _i,this.b=new _i,this.a=t,this.c=n}function ine(e,t,n,i){this.b=new Qe,this.n=new Qe,this.i=i,this.j=n,this.s=e,this.t=t,this.r=0,this.d=0}function bKe(e,t,n,i){this.b=new xn,this.g=new xn,this.d=(_7(),BJ),this.c=e,this.e=t,this.d=n,this.a=i}function wKe(e,t,n){e.g=vie(e,t,(Ve(),sn),e.b),e.d=vie(e,n,sn,e.b),!(e.g.c==0||e.d.c==0)&&ctt(e)}function vKe(e,t,n){e.g=vie(e,t,(Ve(),Zt),e.j),e.d=vie(e,n,Zt,e.j),!(e.g.c==0||e.d.c==0)&&ctt(e)}function tBt(e,t,n,i,r){var o;return o=mxe(e,t),n&&ene(o),r&&(e=Lqt(e,t),i?Z0=jj(e):Z0=rl(e.l,e.m,e.h)),o}function nBt(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 K(new m1e)}function xKe(e,t){Z_(e>=0,"Negative initial capacity"),Z_(t>=0,"Non-positive load factor"),lc(this)}function Sj(){Sj=W,S6e=new x5,T6e=new HX,b1t=new GX,m1t=new QX,p1t=new DR,j6e=(Ft(p1t),new tt)}function M7(){M7=W,E9e=new uZ(th,0),pue=new uZ("MIDDLE_TO_MIDDLE",1),$P=new uZ("AVOID_OVERLAP",2)}function Mwe(e,t,n){switch(t){case 0:!e.o&&(e.o=new _l((uc(),s1),n0,e,0)),HH(e.o,n);return}yie(e,t,n)}function iBt(e,t){switch(t.g){case 0:he(e.b,638)||(e.b=new PXe);break;case 1:he(e.b,639)||(e.b=new Dqe)}}function yKe(e){switch(e.g){case 0:return new Z$;default:throw K(new Ht(YQ+(e.f!=null?e.f:""+e.g)))}}function kKe(e){switch(e.g){case 0:return new oN;default:throw K(new Ht(YQ+(e.f!=null?e.f:""+e.g)))}}function OKe(e){switch(e.g){case 0:return new oy;default:throw K(new Ht(Qse+(e.f!=null?e.f:""+e.g)))}}function jKe(e){switch(e.g){case 0:return new tB;default:throw K(new Ht(Qse+(e.f!=null?e.f:""+e.g)))}}function SKe(e){switch(e.g){case 0:return new K$;default:throw K(new Ht(Qse+(e.f!=null?e.f:""+e.g)))}}function Tj(e,t){if(!e.Ji()&&t==null)throw K(new Ht("The 'no null' constraint is violated"));return t}function Awe(e){var t,n,i;for(t=new nu,i=Ln(e,0);i.b!=i.d.c;)n=c(_n(i),8),G6(t,0,new Es(n));return t}function Pg(e){var t,n;for(t=0,n=0;n<e.length;n++)t=(t<<5)-t+(tn(n,e.length),e.charCodeAt(n))|0;return t}function rBt(e){var t,n;t=c($(e,($e(),Wl)),9),t&&(n=t.c,gl(n.a,t),n.a.c.length==0&&gl(Jr(t).b,n))}function sBt(e,t){var n,i;return n=c(Ae(e,(Eh(),HP)),15).a,i=c(Ae(t,HP),15).a,n==i||n<i?-1:n>i?1:0}function TKe(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 $y(e,t){var n,i,r,o,a;for(i=t,r=0,o=i.length;r<o;++r)n=i[r],a=new qHe(e),n.tf(a),uZt(a);lc(e.f)}function CKe(e,t,n){var i,r;this.g=e,this.c=t,this.a=this,this.d=this,r=oXe(n),i=Ce(Qft,AL,229,r,0,1),this.b=i}function oBt(){vi();var e;return cfe||(e=G7t(J0("M",!0)),e=jq(J0("M",!1),e),cfe=e,cfe)}function Nwe(e){switch(e.g){case 1:return Rlt;default:case 2:return 0;case 3:return $lt;case 4:return U5e}}function _we(e,t){return Oit(e,t)?(St(e.b,c($(t,($e(),J1)),24),t),ni(e.a,t),!0):!1}function cBt(e){return Ue(e.c,(V4(),O2t)),Pbe(e.a,ge(be(Ke((Tne(),RJ)))))?new jb:new xLe(e)}function lBt(e){for(;!e.d||!e.d.Ob();)if(e.b&&!wT(e.b))e.d=c(D4(e.b),51);else return null;return e.d}function uBt(e,t){return Oi(e,($e(),Ri))&&Oi(t,Ri)?c($(e,Ri),15).a-c($(t,Ri),15).a:0}function aBt(e,t){return Oi(e,($e(),Ri))&&Oi(t,Ri)?c($(t,Ri),15).a-c($(e,Ri),15).a:0}function rne(e,t){var n;return t===e?!0:he(t,231)?(n=c(t,231),ki(e.Zb(),n.Zb())):!1}function sne(e){switch(e.i){case 2:return!0;case 1:return!1;case-1:++e.c;default:return e.Yl()}}function EKe(e){return Dh?Ce(pht,jct,574,0,0,1):c(Oh(e.a,Ce(pht,jct,574,e.a.c.length,0,1)),848)}function Dwe(e,t){var n;t*2+1>=e.b.c.length||(Dwe(e,2*t+1),n=2*t+2,n<e.b.c.length&&Dwe(e,n),Wtt(e,t))}function fBt(e,t){var n,i;for(i=Ln(e,0);i.b!=i.d.c;)n=c(_n(i),221),n.e.length>0&&(t.Ad(n),n.i&&zFt(n))}function Lwe(e,t,n){var i;for(i=n-1;i>=0&&e[i]===t[i];i--);return i<0?0:qY(Zr(e[i],Us),Zr(t[i],Us))?-1:1}function hBt(e,t){var n;return!e||e==t||!Oi(t,($e(),$w))?!1:(n=c($(t,($e(),$w)),9),n!=e)}function By(e,t,n){var i,r;return r=(i=new vY,i),to(r,t,n),Dn((!e.q&&(e.q=new Le(nf,e,11,10)),e.q),r),r}function one(e,t){var n,i;return i=c(Kt(e.a,4),131),n=Ce(Zae,Ioe,420,t,0,1),i!=null&&yc(i,0,n,0,i.length),n}function cne(e){var t,n,i,r;for(r=aTt(Gvt,e),n=r.length,i=Ce(st,Ge,2,n,6,1),t=0;t<n;++t)i[t]=r[t];return i}function MKe(e,t){var n;return n=new Die((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 dBt(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 AKe(e,t,n){var i,r,o,a;for(Ft(n),a=!1,o=e.dd(t),r=n.Jc();r.Ob();)i=r.Pb(),o.Rb(i),a=!0;return a}function gBt(e,t){var n;return e===t?!0:he(t,93)?(n=c(t,93),Ive(Kp(e),n.vc())):!1}function NKe(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 _Ke(e,t,n){return e.d[t.p][n.p]||(lqt(e,t,n),e.d[t.p][n.p]=!0,e.d[n.p][t.p]=!0),e.a[t.p][n.p]}function Cj(e,t){e.D==null&&e.B!=null&&(e.D=e.B,e.B=null),Pte(e,t==null?null:(Ft(t),t)),e.C&&e.fl(null)}function XH(){XH=W,Jae=new $F("ELK",0),Z7e=new $F("JSON",1),Y7e=new $F("DOT",2),eCe=new $F("SVG",3)}function A7(){A7=W,Cue=new MF(Zre,0),ZJ=new MF(Hlt,1),Tue=new MF("FAN",2),Sue=new MF("CONSTRAINT",3)}function qD(){qD=W,tW=new aZ(th,0),t8e=new aZ("RADIAL_COMPACTION",1),n8e=new aZ("WEDGE_COMPACTION",2)}function N7(){N7=W,uue=new rZ("STACKED",0),lue=new rZ("REVERSE_STACKED",1),PP=new rZ("SEQUENCED",2)}function ya(){ya=W,lOe=new GY("CONCURRENT",0),vl=new GY("IDENTITY_FINISH",1),uOe=new GY("UNORDERED",2)}function I1(){I1=W,OW=new wZ(V4e,0),t0=new wZ("INCLUDE_CHILDREN",1),YE=new wZ("SEPARATE_CHILDREN",2)}function KH(){KH=W,L7e=new Wp(15),dvt=new Qr((Pn(),$h),L7e),KE=Wk,A7e=$2t,N7e=Um,D7e=$3,_7e=hx}function lne(){lne=W,Mce=nQe(ee(Z(XE,1),Re,87,0,[(_r(),go),vo])),Ace=nQe(ee(Z(XE,1),Re,87,0,[Aa,Bh]))}function pBt(e){var t,n,i;for(t=0,i=Ce(Vr,Ge,8,e.b,0,1),n=Ln(e,0);n.b!=n.d.c;)i[t++]=c(_n(n),8);return i}function une(e,t,n){var i,r,o;for(i=new _i,o=Ln(n,0);o.b!=o.d.c;)r=c(_n(o),8),ni(i,new Es(r));AKe(e,t,i)}function mBt(e,t){var n;n=Ke((Tne(),RJ))!=null&&t.Rg()!=null?ge(be(t.Rg()))/ge(be(Ke(RJ))):1,ci(e.b,t,n)}function bBt(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 Pwe(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 Iwe(e){var t;if(t=e.a.c.length,t>0)return Y6(t-1,e.a.c.length),Ng(e.a,t-1);throw K(new wPe)}function wBt(e,t,n){if(t<0)throw K(new Qc(hut+t));t<e.j.c.length?Ou(e.j,t,n):(EUe(e,t),Ue(e.j,n))}function DKe(e,t,n){if(e>t)throw K(new Ht(xQ+e+Sct+t));if(e<0||t>n)throw K(new z1e(xQ+e+i3e+t+e3e+n))}function LKe(e){if(!e.a||(e.a.i&8)==0)throw K(new oo("Enumeration class expected for layout option "+e.f))}function PKe(e){lQe.call(this,"The given string does not match the expected format for individual spacings.",e)}function IKe(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e.Zl()}}function Ig(e){switch(e.c){case 0:return see(),_ke;case 1:return new o4(Ztt(new m4(e)));default:return new fIe(e)}}function RKe(e){switch(e.gc()){case 0:return see(),_ke;case 1:return new o4(e.Jc().Pb());default:return new age(e)}}function Rwe(e){var t;return t=(!e.a&&(e.a=new Le(eg,e,9,5)),e.a),t.i!=0?cTt(c(ae(t,0),691)):null}function vBt(e,t){var n;return n=As(e,t),qY(Yee(e,t),0)|FF(Yee(e,n),0)?n:As(ML,Yee(Zp(n,63),1))}function $we(e,t,n){var i,r;return cv(t,e.c.length),i=n.Nc(),r=i.length,r==0?!1:(kpe(e.c,t,i),!0)}function xBt(e,t){var n,i;for(n=e.a.length-1;t!=e.b;)i=t-1&n,br(e.a,t,e.a[i]),t=i;br(e.a,e.b,null),e.b=e.b+1&n}function yBt(e,t){var n,i;for(n=e.a.length-1,e.c=e.c-1&n;t!=e.c;)i=t+1&n,br(e.a,t,e.a[i]),t=i;br(e.a,e.c,null)}function bv(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),yc(t,0,e.g,0,e.i))}function zy(e){return(e.c!=e.b.b||e.i!=e.g.b)&&(B2(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 ju(e){return Yr(e)?st:Q2(e)?Sr:G2(e)?cr:Rpe(e)||Lpe(e)?e.Pm:e.Pm||Array.isArray(e)&&Z(Jft,1)||Jft}function kBt(e){return e?(e.i&1)!=0?e==Sl?cr:e==Hn?Pr:e==Sx?$S:e==is?Sr:e==Kw?_w:e==G3?Dw:e==Bl?Sk:UC:e:null}function $Ke(e){wIe(),WF(this),zq(this),this.e=e,Pit(this,e),this.g=e==null?wl:So(e),this.a="",this.b=e,this.a=""}function BKe(){Y9t.call(this,new mbe(mv(16))),qu(2,rct),this.b=2,this.a=new ume(null,null,0,null),h_(this.a,this.a)}function mm(){mm=W,IP=new CF("BARYCENTER",0),TE=new CF(dlt,1),GJ=new CF(glt,2),HJ=new CF("MEDIAN",3)}function _7(){_7=W,Yle=new tZ("DUMMY_NODE_OVER",0),QSe=new tZ("DUMMY_NODE_UNDER",1),BJ=new tZ("EQUAL",2)}function Ej(){Ej=W,aue=new sZ("CONSERVATIVE",0),c9e=new sZ("CONSERVATIVE_SOFT",1),SE=new sZ("SLOPPY",2)}function zKe(e){var t,n,i;for(i=0,n=new Gt(Xt(e.a.Jc(),new z));gn(n);)t=c(on(n),17),t.c.i==t.d.i||++i;return i}function YH(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 En(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 FKe(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 OBt(e){var t,n;if(e==null)return null;for(t=0,n=e.length;t<n;t++)if(!Oqe(e[t]))return e[t];return null}function ane(e,t){return!e||t&&!e.j||he(e,129)&&c(e,129).a.b==0?0:e.ff()}function ZH(e,t){return!e||t&&!e.k||he(e,129)&&c(e,129).a.a==0?0:e.gf()}function qKe(e,t){var n;for(n=0;n<t.length;n++)if(e==(tn(n,t.length),t.charCodeAt(n)))return!0;return!1}function jBt(e,t){return t<e.length&&(tn(t,e.length),e.charCodeAt(t)!=63)&&(tn(t,e.length),e.charCodeAt(t)!=35)}function HKe(e,t){var n,i,r;for(r=t-e.f,i=new J(e.d);i.a<i.c.c.length;)n=c(U(i),320),qYe(n,n.e,n.f+r);e.f=t}function SBt(e){var t,n;for(n=new J(e.r);n.a<n.c.c.length;)if(t=c(U(n),9),e.n[t.p]<=0)return t;return null}function TBt(e){var t;return t=new rVe(e),fD(e.a,Ydt,new Qo(ee(Z(dP,1),It,378,0,[t]))),t.d&&Ue(t.f,t.d),t.f}function CBt(e){var t;for($n(e),npe(!0,"numberToAdvance must be nonnegative"),t=0;t<0&&gn(e);t++)on(e);return t}function Bwe(e,t){var n,i,r;return i=!1,n=t.q.d,t.d<e.b&&(r=Axe(t.q,e.b),t.q.d>r&&(Net(t.q,r),i=n!=t.q.d)),i}function GKe(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 QKe(e,t){var n,i,r;n=e,r=0;do{if(n==t)return r;if(i=n.e,!i)throw K(new d_);n=Jr(i),++r}while(!0)}function bm(e,t){var n,i,r;i=e.Wk(t,null),r=null,t&&(r=(I6(),n=new _b,n),pj(r,e.r)),i=Th(e,r,i),i&&i.mj()}function EBt(e,t){var n,i;for(i=lu(e.d,1)!=0,n=!0;n;)n=!1,n=t.c.kg(t.e,i),n=n|mL(e,t,i,!1),i=!i;rwe(e)}function zwe(e,t){var n,i;return i=pG(e),i||(n=(ere(),Znt(t)),i=new lPe(n),Dn(i.Cl(),e)),i}function HD(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 MBt(e){var t;if(!(e.c.c<0?e.a>=e.c.b:e.a<=e.c.b))throw K(new Eo);return t=e.a,e.a+=e.c.c,++e.b,ze(t)}function ABt(e){var t,n;if(e==null)return!1;for(t=0,n=e.length;t<n;t++)if(!Oqe(e[t]))return!1;return!0}function UKe(e,t){var n;for(n=0;n<t.length;n++)if(e==(tn(n,t.length),t.charCodeAt(n)))return!0;return!1}function JKe(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 eG(e){var t;return pn(e.a!=e.b),t=e.d.a[e.a],Fze(e.b==e.d.c&&t!=null),e.c=e.a,e.a=e.a+1&e.d.a.length-1,t}function WKe(e,t,n,i){var r,o;e.a=t,o=i?0:1,e.f=(r=new Ott(e.c,e.a,n,o),new ort(n,e.a,r,e.e,e.b,e.c==(mm(),TE)))}function NBt(e,t,n){var i,r;for(r=t.a.a.ec().Jc();r.Ob();)if(i=c(r.Pb(),60),PGe(e,i,n))return!0;return!1}function wv(e,t){$n(e);try{return e.xc(t)}catch(n){if(n=kr(n),he(n,214)||he(n,174))return null;throw K(n)}}function _Bt(e,t){$n(e);try{return e.Ac(t)}catch(n){if(n=kr(n),he(n,214)||he(n,174))return null;throw K(n)}}function fne(e,t,n){return p.Math.abs(t-e)<UQ||p.Math.abs(n-e)<UQ?!0:t-e>UQ?e-n>UQ:n-e>UQ}function Lc(e,t){var n;return Oo(e)&&Oo(t)&&(n=e-t,!isNaN(n))?n:tve(Oo(e)?Ha(e):e,Oo(t)?Ha(t):t)}function DBt(e,t,n){var i;i=new Ont(e,t),St(e.r,t.$f(),i),n&&!n7(e.u)&&(i.c=new eQe(e.d),Vc(t.Pf(),new b_e(i)))}function hne(e){var t;return t=new Zge(e.a),ic(t,e),_e(t,($e(),Si),e),t.o.a=e.g,t.o.b=e.f,t.n.a=e.i,t.n.b=e.j,t}function LBt(e){var t;return t=UF(gmt),c($(e,($e(),Bc)),24).Gc((Qs(),XS))&&Kn(t,(ts(),Oc),(os(),XU)),t}function PBt(e){var t,n,i,r;for(r=new Tr,i=new J(e);i.a<i.c.c.length;)n=c(U(i),19),t=NXt(n),Os(r,t);return r}function Fwe(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 IBt(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 B0(e,t){var n,i,r,o;return o=(r=e?pG(e):null,Gtt((i=t,r&&r.El(),i))),o==t&&(n=pG(e),n&&n.El()),o}function qwe(e,t,n){var i,r;return r=e.a,e.a=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new Ur(e,1,1,r,t),n?n.lj(i):n=i),n}function VKe(e,t,n){var i,r;return r=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new Ur(e,1,3,r,t),n?n.lj(i):n=i),n}function XKe(e,t,n){var i,r;return r=e.f,e.f=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new Ur(e,1,0,r,t),n?n.lj(i):n=i),n}function RBt(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 $Bt(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?br(r,o++,e[t++]):br(r,o++,e[b++])}function KKe(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 BBt(e,t,n,i,r){t==0||i==0||(t==1?r[i]=P2e(r,n,i,e[0]):i==1?r[t]=P2e(r,e,t,n[0]):RJt(e,n,r,t,i))}function dne(e){return(Ve(),kl).Gc(e.j)?ge(be($(e,($e(),KS)))):Lo(ee(Z(Vr,1),Ge,8,0,[e.i.n,e.n,e.a])).b}function YKe(e,t){var n;return n=new Sh(e),mu(n,(Wt(),Er)),_e(n,($e(),Si),t),_e(n,(We(),fr),(es(),Sc)),n}function ZKe(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 zBt(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),HKe(o,o.f+i*r),JHt(o,t,i),++r}function FBt(e){var t,n,i;for(i=new J(e.b);i.a<i.c.c.length;)n=c(U(i),221),t=n.c.ig()?n.f:n.a,t&&QZt(t,n.j)}function qBt(e){var t,n,i;for(i=0,n=new J(e.a);n.a<n.c.c.length;)t=c(U(n),175),i=p.Math.max(i,t.g);return i}function Hwe(){this.a=new s6,this.f=new cLe(this),this.b=new lLe(this),this.i=new uLe(this),this.e=new aLe(this)}function Mj(){Mj=W,eI=new DF(V4e,0),kW=new DF("CONTAINER",1),x7e=new DF("PARENT",2),y7e=new DF("ROOT",3)}function X4(){X4=W,H7e=new xZ("PARALLEL_NODE",0),wx=new xZ("HIERARCHICAL_NODE",1),MW=new xZ("ROOT_NODE",2)}function tG(){tG=W,J8e=new pZ("EQUAL_BETWEEN_STRUCTURES",0),W8e=new pZ("TO_ASPECT_RATIO",1),Zue=new pZ(th,2)}function Gwe(e){throw Yte(),K(new gIe("Unexpected typeof result '"+e+"'; please report this bug to the GWT team"))}function eYe(e){switch(e.g){case 0:return new J$;case 1:return new hK;case 2:return new W$;default:return null}}function Qwe(e,t){switch(t){case 1:!e.n&&(e.n=new Le(Bo,e,1,7)),Mn(e.n);return;case 2:bj(e,null);return}wwe(e,t)}function tYe(e,t){var n;e.a.c.length>0&&(n=c(Xe(e.a,e.a.c.length-1),572),_we(n,t))||Ue(e.a,new dJe(t))}function nYe(e,t){var n;e.c.length!=0&&(n=c(Oh(e,Ce(e1,Qg,9,e.c.length,0,1)),201),Jge(n,new Md),gnt(n,t))}function iYe(e,t){var n;e.c.length!=0&&(n=c(Oh(e,Ce(e1,Qg,9,e.c.length,0,1)),201),Jge(n,new Wx),gnt(n,t))}function ze(e){var t,n;return e>-129&&e<128?(_qe(),t=e+128,n=Hke[t],!n&&(n=Hke[t]=new Go(e)),n):new Go(e)}function Aj(e){var t,n;return e>-129&&e<128?(zqe(),t=e+128,n=Jke[t],!n&&(n=Jke[t]=new Bt(e)),n):new Bt(e)}function rYe(e){var t;return t=new v0,t.a+="VerticalSegment ",Mc(t,e.e),t.a+=" ",ti(t,f0e(new NY,new J(e.k))),t.a}function HBt(e){Ru();var t,n;t=e.d.c-e.e.c,n=c(e.g,157),Vc(n.b,new eDe(t)),Vc(n.c,new tDe(t)),ws(n.i,new nDe(t))}function GBt(e){var t;return t=c(yh(e.c.c,""),236),t||(t=new $4(P6(L6(new $p,""),"Other")),wm(e.c.c,"",t)),t}function D7(e){var t;return(e.Db&64)!=0?jf(e):(t=new za(jf(e)),t.a+=" (name: ",Zs(t,e.zb),t.a+=")",t.a)}function Uwe(e,t,n){var i,r;return r=e.sb,e.sb=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new Ur(e,1,4,r,t),n?n.lj(i):n=i),n}function gne(e,t){var n,i,r;for(n=0,r=Po(e,t).Jc();r.Ob();)i=c(r.Pb(),12),n+=$(i,($e(),Wl))!=null?1:0;return n}function Fy(e,t,n){var i,r,o;for(i=0,o=Ln(e,0);o.b!=o.d.c&&(r=ge(be(_n(o))),!(r>n));)r>=t&&++i;return i}function QBt(e,t,n){var i,r;return i=new N1(e.e,3,13,null,(r=t.c,r||(At(),Hh)),zg(e,t),!1),n?n.lj(i):n=i,n}function UBt(e,t,n){var i,r;return i=new N1(e.e,4,13,(r=t.c,r||(At(),Hh)),null,zg(e,t),!1),n?n.lj(i):n=i,n}function Jwe(e,t,n){var i,r;return r=e.r,e.r=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new Ur(e,1,8,r,e.r),n?n.lj(i):n=i),n}function Rg(e,t){var n,i;return n=c(t,688),i=n.cl(),!i&&n.dl(i=he(t,89)?new wBe(e,c(t,29)):new XQe(e,c(t,160))),i}function GD(e,t,n){var i;e.Zi(e.i+1),i=e.Xi(t,n),t!=e.i&&yc(e.g,t,e.g,t+1,e.i-t),br(e.g,t,i),++e.i,e.Ki(t,n),e.Li()}function JBt(e,t){var n;e.c=t,e.a=Hzt(t),e.a<54&&(e.f=(n=t.d>1?nUe(t.a[0],t.a[1]):nUe(t.a[0],0),cm(t.e>0?n:Dg(n))))}function WBt(e,t){var n;return t.a&&(n=t.a.a.length,e.a?ti(e.a,e.b):e.a=new Iu(e.d),uUe(e.a,t.a,t.d.length,n)),e}function VBt(e,t){var n,i,r,o;if(t.cj(e.a),o=c(Kt(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 hs,e.a.zd(n)?(H6(),new jY(Ft(qWe(e,n.a,t)))):(M0(e),H6(),H6(),rOe)}function sYe(e){var t;return Lc(e,0)<0&&(e=P0(lNt(Oo(e)?Ha(e):e))),t=Qn(Zp(e,32)),64-(t!=0?aL(t):aL(Qn(e))+32)}function ki(e,t){return Yr(e)?jt(e,t):Q2(e)?$Fe(e,t):G2(e)?(Ft(e),Se(e)===Se(t)):Rpe(e)?e.Fb(t):Lpe(e)?PBe(e,t):Lme(e,t)}function oYe(e,t){$n(e);try{return e._b(t)}catch(n){if(n=kr(n),he(n,214)||he(n,174))return!1;throw K(n)}}function Wwe(e,t){$n(e);try{return e.Gc(t)}catch(n){if(n=kr(n),he(n,214)||he(n,174))return!1;throw K(n)}}function XBt(e,t){$n(e);try{return e.Kc(t)}catch(n){if(n=kr(n),he(n,214)||he(n,174))return!1;throw K(n)}}function Vwe(e,t,n,i){switch(t){case 1:return!e.n&&(e.n=new Le(Bo,e,1,7)),e.n;case 2:return e.k}return G2e(e,t,n,i)}function L7(e,t){switch(t.g){case 2:case 1:return Po(e,t);case 3:case 4:return Tu(Po(e,t))}return Mt(),Mt(),Is}function ka(e,t,n){if(t<0)Yve(e,n);else{if(!n.pk())throw K(new Ht(Y0+n.ve()+DC));c(n,69).uk().Ck(e,e.ei(),t)}}function cYe(e,t,n){if(e<0||t>n)throw K(new Qc(xQ+e+i3e+t+", size: "+n));if(e>t)throw K(new Ht(xQ+e+Sct+t))}function $g(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 wf(e,1,2,n,t))}function Xwe(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 wf(e,1,8,n,t))}function Kwe(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 wf(e,1,9,n,t))}function Bg(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 wf(e,1,3,n,t))}function nG(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 wf(e,1,8,n,t))}function KBt(e,t,n){var i,r;return r=e.a,e.a=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new Ur(e,1,5,r,e.a),n?pve(n,i):n=i),n}function lYe(e){var t;return(e.Db&64)!=0?jf(e):(t=new za(jf(e)),t.a+=" (source: ",Zs(t,e.d),t.a+=")",t.a)}function P7(e,t){var n;return e.b==-1&&e.a&&(n=e.a.nk(),e.b=n?e.c.Eh(e.a.Jj(),n):Yi(e.c.Ah(),e.a)),e.c.vh(e.b,t)}function uYe(e,t){var n,i;for(i=new ln(e);i.e!=i.i.gc();)if(n=c(fn(i),29),Se(t)===Se(n))return!0;return!1}function YBt(e){gQ();var t,n,i,r;for(n=Lne(),i=0,r=n.length;i<r;++i)if(t=n[i],Do(t.a,e,0)!=-1)return t;return vce}function aYe(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function fYe(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 Ywe(e){var t,n;return t=e.k,t==(Wt(),Ar)?(n=c($(e,($e(),Zo)),64),n==(Ve(),Yt)||n==wn):!1}function hYe(e,t){var n,i;for(i=new ln(e);i.e!=i.i.gc();)if(n=c(fn(i),146),Se(t)===Se(n))return!0;return!1}function ZBt(e,t,n){var i,r,o;return o=(r=Uj(e.b,t),r),o&&(i=c(uQ(jD(e,o),""),29),i)?kxe(e,i,t,n):null}function pne(e,t,n){var i,r,o;return o=(r=Uj(e.b,t),r),o&&(i=c(uQ(jD(e,o),""),29),i)?Oxe(e,i,t,n):null}function I7(e,t,n){var i;if(i=e.gc(),t>i)throw K(new K2(t,i));if(e.Qi()&&e.Gc(n))throw K(new Ht(tP));e.Ei(t,n)}function ezt(e,t){t.Tg("Sort end labels",1),hr(bi(jo(new Tt(null,new Ct(e.b,16)),new w5),new v5),new yR),t.Ug()}function _r(){_r=W,zh=new L_(xC,0),vo=new L_(wk,1),go=new L_(bk,2),Bh=new L_(Wre,3),Aa=new L_("UP",4)}function UD(){UD=W,lW=new mZ("P1_STRUCTURE",0),uW=new mZ("P2_PROCESSING_ORDER",1),aW=new mZ("P3_EXECUTION",2)}function dYe(){dYe=W,Mbt=cd(cd(CT(cd(cd(CT(Kn(new yr,(ek(),ME),(sC(),gue)),AE),j9e),T9e),NE),x9e),C9e)}function tzt(e){var t,n,i;for(t=new Qe,i=new J(e.b);i.a<i.c.c.length;)n=c(U(i),598),Or(t,c(n.Af(),18));return t}function nzt(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 izt(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,br(e.a,e.c,null),t)}function gYe(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 Zwe(e,t){switch(e.b.g){case 0:case 1:return t;case 2:case 3:return new bf(t.d,0,t.a,t.b);default:return null}}function pYe(e){switch(e.g){case 2:return vo;case 1:return go;case 4:return Bh;case 3:return Aa;default:return zh}}function e2e(e){switch(e.g){case 1:return Zt;case 2:return Yt;case 3:return sn;case 4:return wn;default:return $o}}function JD(e){switch(e.g){case 1:return wn;case 2:return Zt;case 3:return Yt;case 4:return sn;default:return $o}}function iG(e){switch(e.g){case 1:return sn;case 2:return wn;case 3:return Zt;case 4:return Yt;default:return $o}}function rzt(e){switch(e){case 0:return new $Pe;case 1:return new IPe;case 2:return new RPe;default:throw K(new d_)}}function szt(e){switch(c($(e,($e(),Pm)),316).g){case 1:_e(e,Pm,(_1(),Nk));break;case 2:_e(e,Pm,(_1(),x3))}}function WD(e,t){this.e=t,this.a=sYe(e),this.a<54?this.f=cm(e):this.c=(ld(),Lc(e,0)>=0?F0(e):s7(F0(Dg(e))))}function mYe(e,t,n,i,r,o){this.e=new Qe,this.f=(Gs(),jE),Ue(this.e,e),this.d=t,this.a=n,this.b=i,this.f=r,this.c=o}function ozt(e){var t;if(!e.a)throw K(new oo("Cannot offset an unassigned cut."));t=e.c-e.b,e.b+=t,CGe(e,t),EGe(e,t)}function bYe(e){var t;return t=Bme(e),zT(t.a,0)?(F2(),F2(),fce):(F2(),new $Z(FY(t.a,0)?cbe(t)/cm(t.a):0))}function czt(e,t){var n;if(n=pL(e,t),he(n,336))return c(n,38);throw K(new Ht(Y0+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 R7(e,t,n){var i,r;return e.Nj()?(r=e.Oj(),i=jie(e,t,n),e.Hj(e.Gj(7,ze(n),i,t,r)),i):jie(e,t,n)}function mne(e,t){var n,i,r;e.d==null?(++e.e,--e.f):(r=t.jd(),n=t.yi(),i=(n&pi)%e.d.length,YPt(e,i,oit(e,i,n,r)))}function Nj(e,t){var n;n=(e.Bb&Ua)!=0,t?e.Bb|=Ua:e.Bb&=-1025,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new wf(e,1,10,n,t))}function _j(e,t){var n;n=(e.Bb&Pv)!=0,t?e.Bb|=Pv:e.Bb&=-4097,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new wf(e,1,12,n,t))}function Dj(e,t){var n;n=(e.Bb&Rl)!=0,t?e.Bb|=Rl:e.Bb&=-8193,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new wf(e,1,15,n,t))}function Lj(e,t){var n;n=(e.Bb&F1)!=0,t?e.Bb|=F1:e.Bb&=-2049,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new wf(e,1,11,n,t))}function lzt(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 rG(e){var t,n;return n=c($(e,(We(),Xu)),87),n==(_r(),zh)?(t=ge(be($(e,yJ))),t>=1?vo:Bh):n}function uzt(e){var t,n;for(n=eit(Fu(e)).Jc();n.Ob();)if(t=qn(n.Pb()),oC(e,t))return yPt((ZRe(),nxt),t);return null}function azt(e,t,n){var i,r;for(r=e.a.ec().Jc();r.Ob();)if(i=c(r.Pb(),9),BD(n,c(Xe(t,i.p),18)))return i;return null}function fzt(e,t,n){var i,r;for(r=he(t,104)&&(c(t,20).Bb&Ps)!=0?new OZ(t,e):new yj(t,e),i=0;i<n;++i)yG(r);return r}function hzt(e,t){var n,i,r,o,a;for(a=ol(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 dzt(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?_D(i,r):i!=null?-1:r!=null?1:0}function wYe(e,t,n){var i,r;if(e.c)Eve(e.c,t,n);else for(r=new J(e.b);r.a<r.c.c.length;)i=c(U(r),168),wYe(i,t,n)}function bne(e,t){var n,i;for(i=new J(t);i.a<i.c.c.length;)n=c(U(i),49),gl(e.b.b,n.b),E_t(c(n.a,197),c(n.b,84))}function t2e(e,t){var n,i,r;for(Ft(t),n=!1,i=new J(e);i.a<i.c.c.length;)r=U(i),t.Gc(r)&&(r7(i),n=!0);return n}function gzt(e){var t,n;for(n=tm(new v0,91),t=!0;e.Ob();)t||(n.a+=Yc),t=!1,Mc(n,e.Pb());return(n.a+="]",n).a}function n2e(e){var t;return t=Ce(Da,fd,30,2,15,1),e-=Ps,t[0]=(e>>10)+LL&Dr,t[1]=(e&1023)+56320&Dr,od(t,0,t.length)}function i2e(e,t){var n;n=(e.Bb&Ps)!=0,t?e.Bb|=Ps:e.Bb&=-65537,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new wf(e,1,20,n,t))}function r2e(e,t){var n;n=(e.Bb&sc)!=0,t?e.Bb|=sc:e.Bb&=-32769,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new wf(e,1,18,n,t))}function wne(e,t){var n;n=(e.Bb&sc)!=0,t?e.Bb|=sc:e.Bb&=-32769,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new wf(e,1,18,n,t))}function Pj(e,t){var n;n=(e.Bb&ad)!=0,t?e.Bb|=ad:e.Bb&=-16385,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new wf(e,1,16,n,t))}function s2e(e,t,n){var i;return i=0,t&&(ky(e.a)?i+=t.f.a/2:i+=t.f.b/2),n&&(ky(e.a)?i+=n.f.a/2:i+=n.f.b/2),i}function lw(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 vne(e,t,n){var i,r;return i=(y0(),r=new A2,r),MH(i,t),EH(i,n),e&&Dn((!e.a&&(e.a=new Nr(ea,e,5)),e.a),i),i}function pzt(e,t,n){var i;i=n,!i&&(i=vpe(new a4,0)),i.Tg(Zct,2),CZe(e.b,t,i.dh(1)),men(e,t,i.dh(1)),mnn(t,i.dh(1)),i.Ug()}function Po(e,t){var n;return e.i||Kve(e),n=c(eo(e.g,t),49),n?new nd(e.j,c(n.a,15).a,c(n.b,15).a):(Mt(),Mt(),Is)}function As(e,t){var n;return Oo(e)&&Oo(t)&&(n=e+t,DL<n&&n<jm)?n:P0(_$t(Oo(e)?Ha(e):e,Oo(t)?Ha(t):t))}function js(e,t){var n;return Oo(e)&&Oo(t)&&(n=e*t,DL<n&&n<jm)?n:P0(ien(Oo(e)?Ha(e):e,Oo(t)?Ha(t):t))}function Ga(e,t){var n;return Oo(e)&&Oo(t)&&(n=e-t,DL<n&&n<jm)?n:P0(UXe(Oo(e)?Ha(e):e,Oo(t)?Ha(t):t))}function sG(e){var t;switch(e.gc()){case 0:return vq(),nce;case 1:return new qZ($n(e.Xb(0)));default:return t=e,new Kee(t)}}function mzt(e){switch(c($(e,(We(),V1)),225).g){case 1:return new pg;case 3:return new C5;default:return new v2}}function bzt(e){var t;return t=jv(e),t>34028234663852886e22?or:t<-34028234663852886e22?Gr:t}function sd(e){var t,n,i;for(t=new Qe,i=new J(e.j);i.a<i.c.c.length;)n=c(U(i),12),Ue(t,n.b);return $n(t),new GT(t)}function vr(e){var t,n,i;for(t=new Qe,i=new J(e.j);i.a<i.c.c.length;)n=c(U(i),12),Ue(t,n.e);return $n(t),new GT(t)}function Fi(e){var t,n,i;for(t=new Qe,i=new J(e.j);i.a<i.c.c.length;)n=c(U(i),12),Ue(t,n.g);return $n(t),new GT(t)}function xne(e){var t;return(e.Db&64)!=0?jf(e):(t=new za(jf(e)),t.a+=" (identifier: ",Zs(t,e.k),t.a+=")",t.a)}function z0(e){if(e.c)z0(e.c);else if(e.d)throw K(new oo("Stream already terminated, can't be modified or used"))}function vYe(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 wzt(e,t){return jt(t.b&&t.c?om(t.b)+"->"+om(t.c):"e_"+zi(t),e.b&&e.c?om(e.b)+"->"+om(e.c):"e_"+zi(e))}function vzt(e,t){return jt(t.b&&t.c?om(t.b)+"->"+om(t.c):"e_"+zi(t),e.b&&e.c?om(e.b)+"->"+om(e.c):"e_"+zi(e))}function xzt(e){return lne(),zt(),!!(OYe(c(e.a,84).j,c(e.b,87))||c(e.a,84).d.e!=0&&OYe(c(e.a,84).j,c(e.b,87)))}function yne(){Ove();var e,t,n;n=Cin+++Date.now(),e=ys(p.Math.floor(n*IL))&vQ,t=ys(n-e*Zye),this.a=e^1502,this.b=t^qre}function xYe(e,t,n,i,r){oze(this),this.b=e,this.d=Ce(e1,Qg,9,t.a.c.length,0,1),this.f=n,Oh(t.a,this.d),this.g=i,this.c=r}function o2e(e,t){e.n.c.length==0&&Ue(e.n,new Vq(e.s,e.t,e.i)),Ue(e.b,t),z2e(c(Xe(e.n,e.n.c.length-1),211),t),ust(e,t)}function yzt(e,t,n){var i;n.Tg("Straight Line Edge Routing",1),n.bh(t,i4e),i=c(Ae(t,(My(),_3)),19),Ost(e,i),n.bh(t,VQ)}function bt(e){var t,n,i,r;return n=(t=c(Jf((i=e.Pm,r=i.f,r==Sn?i:r)),10),new ga(t,c(mf(t,t.length),10),0)),kf(n,e),n}function kzt(e){var t,n;for(n=VJt(Fu(ov(e))).Jc();n.Ob();)if(t=qn(n.Pb()),oC(e,t))return kPt((e$e(),ixt),t);return null}function kne(e,t){var n,i,r;for(r=0,i=c(t.Kb(e),22).Jc();i.Ob();)n=c(i.Pb(),17),it(nt($(n,($e(),Vg))))||++r;return r}function yYe(e){var t,n,i,r;for(t=new wFe(e.Pd().gc()),r=0,i=G4(e.Pd().Jc());i.Ob();)n=i.Pb(),u_t(t,n,ze(r++));return ZQt(t.a)}function Ozt(e){var t,n,i;for(n=0,i=e.length;n<i;n++)if(e[n]==null)throw K(new h4("at index "+n));return t=e,new Qo(t)}function jzt(e,t,n){var i;try{Z$t(e,t,n)}catch(r){throw r=kr(r),he(r,602)?(i=r,K(new Yme(i))):K(r)}return t}function kYe(e,t){var n,i;for(n=Ln(e,0);n.b!=n.d.c;){if(i=g_(be(_n(n))),i==t)return;if(i>t){eUe(n);break}}Dq(n,t)}function Szt(e,t){var n,i,r;i=_y(t),r=ge(be(xv(i,(We(),Nf)))),n=p.Math.max(0,r/2-.5),Q7(t,n,1),Ue(e,new x$e(t,n))}function gt(e,t){var n,i,r,o,a;if(n=t.f,wm(e.c.d,n,t),t.g!=null)for(r=t.g,o=0,a=r.length;o<a;++o)i=r[o],wm(e.c.e,i,t)}function Tzt(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],br(e,o,e[o-1]),br(e,o-1,a)}function Oa(e,t,n,i){if(t<0)Cxe(e,n,i);else{if(!n.pk())throw K(new Ht(Y0+n.ve()+DC));c(n,69).uk().Ak(e,e.ei(),t,i)}}function Czt(e,t){var n;if(n=pL(e.Ah(),t),he(n,104))return c(n,20);throw K(new Ht(Y0+t+"' is not a valid reference"))}function So(e){var t;return Array.isArray(e)&&e.Rm===le?Up(ju(e))+"@"+(t=zi(e)>>>0,t.toString(16)):e.toString()}function Ezt(e,t){return e.h==_L&&e.m==0&&e.l==0?(t&&(Z0=rl(0,0,0)),IBe((gj(),Rke))):(t&&(Z0=rl(e.l,e.m,e.h)),rl(0,0,0))}function Mzt(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 OYe(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 c2e(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 Vwe(e,t,n,i)}function oG(e,t){if(t==e.d)return e.e;if(t==e.e)return e.d;throw K(new Ht("Node "+t+" not part of edge "+e))}function Azt(e){return e.e==null?e:(!e.c&&(e.c=new Die((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,null)),e.c)}function Nzt(e){return e.k!=(Wt(),ar)?!1:Ly(new Tt(null,new nv(new Gt(Xt(Fi(e).a.Jc(),new z)))),new OA)}function cu(e){var t;if(e.b){if(cu(e.b),e.b.d!=e.c)throw K(new fa)}else e.d.dc()&&(t=c(e.f.c.xc(e.e),18),t&&(e.d=t))}function _zt(e){V2();var t,n,i,r;for(t=e.o.b,i=c(c(Ti(e.r,(Ve(),wn)),24),85).Jc();i.Ob();)n=c(i.Pb(),116),r=n.e,r.b+=t}function Dzt(e,t){var n,i,r;for(i=fKt(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 l2e(e,t,n,i,r){var o,a,d;for(a=r;t.b!=t.c;)o=c(D4(t),9),d=c(Po(o,i).Xb(0),12),e.d[d.p]=a++,Rt(n.c,d);return a}function $7(e){var t;this.a=(t=c(e.e&&e.e(),10),new ga(t,c(mf(t,t.length),10),0)),this.b=Ce(Br,It,1,this.a.a.length,5,1)}function u2e(e){Tne(),this.c=vf(ee(Z(Uin,1),It,837,0,[Rpt])),this.b=new xn,this.a=e,ci(this.b,RJ,1),Vc($pt,new vLe(this))}function Su(){Su=W,TP=new C_(th,0),uE=new C_("FIRST",1),W1=new C_(plt,2),aE=new C_("LAST",3),Rm=new C_(mlt,4)}function B7(){B7=W,nE=new jF("LAYER_SWEEP",0),A6e=new jF("MEDIAN_LAYER_SWEEP",1),wP=new jF(rse,2),N6e=new jF(th,3)}function cG(){cG=W,j8e=new dZ("ASPECT_RATIO_DRIVEN",0),Jue=new dZ("MAX_SCALE_DRIVEN",1),O8e=new dZ("AREA_DRIVEN",2)}function lG(){lG=W,Uae=new RF(G5e,0),W7e=new RF("GROUP_DEC",1),X7e=new RF("GROUP_MIXED",2),V7e=new RF("GROUP_INC",3)}function R1(){R1=W,zae=new LF(xC,0),tI=new LF("POLYLINE",1),w9=new LF("ORTHOGONAL",2),Kk=new LF("SPLINES",3)}function a2e(){a2e=W,a2t=new mi(I4e),OTe=(iH(),uae),u2t=new xt(R4e,OTe),l2t=new xt($4e,50),c2t=new xt(B4e,(zt(),!0))}function Lzt(e){var t,n,i,r,o;return o=jve(e),n=w_(e.c),i=!n,i&&(r=new vg,xf(o,"knownLayouters",r),t=new VLe(r),ws(e.c,t)),o}function f2e(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 h2e(e){var t,n,i;for(i=new kg,i.a+="[",t=0,n=e.gc();t<n;)Zs(i,WT(e.Ti(t))),++t<n&&(i.a+=Yc);return i.a+="]",i.a}function One(e,t,n){var i,r;for(i=0,r=e.length;i<r;i++)if(Zte((tn(i,e.length),e.charCodeAt(i)),t,n))return!0;return!1}function Pzt(e){var t;return e==null?!0:(t=e.length,t>0&&(tn(t-1,e.length),e.charCodeAt(t-1)==58)&&!One(e,cM,lM))}function d2e(e,t){var n;return Se(e)===Se(t)?!0:he(t,92)?(n=c(t,92),e.e==n.e&&e.d==n.d&&SPt(e,n.a)):!1}function K4(e){switch(Ve(),e.g){case 4:return Yt;case 1:return sn;case 3:return wn;case 2:return Zt;default:return $o}}function Izt(e){var t,n;if(e.b)return e.b;for(n=Dh?null:e.d;n;){if(t=Dh?null:n.b,t)return t;n=Dh?null:n.d}return F6(),cOe}function uw(e,t){return ph(),yf(Hg),p.Math.abs(e-t)<=Hg||e==t||isNaN(e)&&isNaN(t)?0:e<t?-1:e>t?1:Vp(isNaN(e),isNaN(t))}function jYe(e,t){J6();var n,i,r,o;for(i=dWe(e),r=t,hj(i,0,i.length,r),n=0;n<i.length;n++)o=bHt(e,i[n],n),n!=o&&R7(e,n,o)}function g2e(e){var t,n,i;for(i=ge(be(e.a.mf((Pn(),vW)))),n=new J(e.a.Qf());n.a<n.c.c.length;)t=c(U(n),692),Eot(e,t,i)}function Rzt(e){var t,n,i,r;for(t=(e.j==null&&(e.j=(cj(),r=sce.ke(e),nGt(r))),e.j),n=0,i=t.length;n<i;++n);}function jne(e,t){var n,i;for(i=new J(t);i.a<i.c.c.length;)n=c(U(i),49),Ue(e.b.b,c(n.b,84)),ete(c(n.a,197),c(n.b,84))}function $zt(e,t,n){var i,r;for(r=e.a.b,i=r.c.length;i<n;i++)Xp(r,0,new mc(e.a));zr(t,c(Xe(r,r.c.length-n),26)),e.b[t.p]=n}function Bzt(e,t,n){var i;n.Tg(uut,1),(!t.a&&(t.a=new Le(Nn,t,10,11)),t.a).i!=0&&(i=c(Ae(t,(Gd(),qE)),19),Ort(e,i)),n.Ug()}function zzt(e,t,n,i,r){Bu(),Sf(ff(df(hf(gf(new $a,0),r.d.e-e),t),r.d)),Sf(ff(df(hf(gf(new $a,0),n-r.a.e),r.a),i))}function SYe(e,t){var n,i,r,o;t&&(r=L1(t,"x"),n=new FLe(e),rw(n.a,(Ft(r),r)),o=L1(t,"y"),i=new qLe(e),sw(i.a,(Ft(o),o)))}function TYe(e,t){var n,i,r,o;t&&(r=L1(t,"x"),n=new GLe(e),nw(n.a,(Ft(r),r)),o=L1(t,"y"),i=new QLe(e),iw(i.a,(Ft(o),o)))}function CYe(e,t){var n;return e.d?Ac(e.b,t)?c(Jt(e.b,t),43):(n=t.bg(),ci(e.b,t,n),n):t.bg()}function p2e(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 Fzt(e,t){var n,i,r,o;for(r=new Wc(t.gc()),i=t.Jc();i.Ob();)n=i.Pb(),o=Fie(e,c(n,57)),o&&Rt(r.c,o);return r}function vv(e,t,n){var i,r;for(r=e.Jc();r.Ob();)if(i=r.Pb(),Se(t)===Se(i)||t!=null&&ki(t,i))return n&&r.Qb(),!0;return!1}function qzt(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 Hzt(e){var t,n,i;return e.e==0?0:(t=e.d<<5,n=e.a[e.d-1],e.e<0&&(i=jXe(e),i==e.d-1&&(--n,n=n|0)),t-=aL(n),t)}function Gzt(e){var t,n,i;return e<TU.length?TU[e]:(n=e>>5,t=e&31,i=Ce(Hn,li,30,n+1,15,1),i[n]=1<<t,new em(1,n+1,i))}function EYe(e){var t,n,i;return n=e.ih(),n?(t=e.Bh(),he(t,176)&&(i=EYe(c(t,176)),i!=null)?i+"."+n:n):null}function m2e(e){var t;return!e.c&&(e.c=new a2),Rr(e.d,new NO),PXt(e),t=TXt(e),hr(new Tt(null,new Ct(e.d,16)),new w_e(e)),t}function Qzt(e,t){t.Tg("End label post-processing",1),hr(bi(jo(new Tt(null,new Ct(e.b,16)),new xR),new tA),new pX),t.Ug()}function Tu(e){var t,n;return he(e,312)?(n=VPt(c(e,312)),t=n,t):he(e,437)?c(e,437).a:he(e,59)?new hIe(e):new Z1e(e)}function Uzt(e){var t=e.e;function n(i){return!i||i.length==0?"":"	"+i.join(`
	`)}return t&&(t.stack||n(e[wre]))}function b2e(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 fwe(e,t)}function w2e(e,t){switch(t){case 3:um(e,0);return;case 4:am(e,0);return;case 5:Dc(e,0);return;case 6:Dl(e,0);return}Qwe(e,t)}function Jzt(e){switch(e.g){case 0:return new R$;case 1:return new $$;default:throw K(new Ht(Zse+(e.f!=null?e.f:""+e.g)))}}function MYe(e){switch(e.g){case 0:return new fK;case 1:return new B$;default:throw K(new Ht(tse+(e.f!=null?e.f:""+e.g)))}}function Wzt(e){switch(e.g){case 1:return new L$;case 2:return new cFe;default:throw K(new Ht(Zse+(e.f!=null?e.f:""+e.g)))}}function AYe(e){switch(e.g){case 0:return new A1e;case 1:return new qPe;default:throw K(new Ht(YQ+(e.f!=null?e.f:""+e.g)))}}function aw(e,t){switch(t.g){case 1:return M4(e.j,(Ll(),$Oe));case 2:return M4(e.j,(Ll(),zOe));default:return Mt(),Mt(),Is}}function NYe(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 Dn(e,t)}else return!1}function v2e(e){var t,n,i,r;for(t=new vg,r=new hy(e.b.Jc());r.b.Ob();)i=c(r.b.Pb(),697),n=sUt(i),pNt(t,t.a.length,n);return t.a}function uG(e){var t;return(e.Db&64)!=0?D7(e):(t=new za(D7(e)),t.a+=" (instanceClassName: ",Zs(t,e.D),t.a+=")",t.a)}function x2e(e,t){var n;return e.i>0&&(t.length<e.i&&(n=AD(ju(t).c,e.i),t=n),yc(e.g,0,t,0,e.i)),t.length>e.i&&br(t,e.i,null),t}function Vzt(e,t,n){var i,r;return i=ge(e.p[t.i.p])+ge(e.d[t.i.p])+t.n.b+t.a.b,r=ge(e.p[n.i.p])+ge(e.d[n.i.p])+n.n.b+n.a.b,r-i}function Yi(e,t){var n,i,r;if(n=(e.i==null&&ud(e),e.i),i=t.Jj(),i!=-1){for(r=n.length;i<r;++i)if(n[i]==t)return i}return-1}function Sne(e,t){var n,i,r;return e.f>0?(e.Zj(),i=t==null?0:zi(t),r=(i&pi)%e.d.length,n=oit(e,r,i,t),n!=-1):!1}function aG(e){var t,n,i,r;for(r=0,n=0,i=e.length;n<i;n++)t=(tn(n,e.length),e.charCodeAt(n)),t<64&&(r=id(r,$d(1,t)));return r}function Xzt(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],tst(e,t,o)){nk(e,i);break}}function VD(e,t){var n,i,r,o;for(o=ol(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 _Ye(e,t){var n,i;if(i=new C6(e.a.$c(t,!0)),i.a.gc()<=1)throw K(new c4);return n=i.a.ec().Jc(),n.Pb(),c(n.Pb(),41)}function Kzt(e,t,n){var i,r;for(i=Zr(n,Us),r=0;Lc(i,0)!=0&&r<t;r++)i=As(i,Zr(e[r],Us)),e[r]=Qn(i),i=Qb(i,32);return Qn(i)}function fG(e,t){Xge();var n,i;return n=W_((Wz(),Wz(),QC)),i=null,t==n&&(i=c(Nc(Pke,e),622)),i||(i=new IHe(e),t==n&&lo(Pke,e,i)),i}function DYe(e){V2();var t;return t=new Es(c(e.e.mf((Pn(),$3)),8)),e.B.Gc((uu(),x9))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t}function Yzt(e){mH(),c(e.mf((Pn(),fp)),185).Gc((uu(),CW))&&(c(e.mf(dx),185).Ec((Ul(),Yk)),c(e.mf(fp),185).Kc(CW))}function LYe(e){var t,n;t=e.d==(rk(),GS),n=gve(e),t&&!n||!t&&n?_e(e.a,(We(),vd),(Hd(),VP)):_e(e.a,(We(),vd),(Hd(),WP))}function Zzt(e){var t,n,i,r;for(i=NUt(e),Rr(i,o1t),r=e.d,r.c.length=0,n=new J(i);n.a<n.c.c.length;)t=c(U(n),458),Or(r,t.b)}function Tne(){Tne=W,cF(),RJ=(We(),qm),$pt=vf(ee(Z(Oae,1),H5e,149,0,[NP,Nf,C3,Fm,rx,Hle,n9,i9,Gle,vE,ix,op,sx]))}function eFt(e,t){var n;return n=c(Gl(e,su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[(ya(),vl)]))),16),n.Oc(Nqe(n.gc()))}function Zf(e,t){var n,i,r;return e.f>0&&(e.Zj(),i=t==null?0:zi(t),r=(i&pi)%e.d.length,n=sxe(e,r,i,t),n)?n.kd():null}function PYe(e,t){var n,i,r;return he(t,45)?(n=c(t,45),i=n.jd(),r=wv(e.Pc(),i),S1(r,n.kd())&&(r!=null||e.Pc()._b(i))):!1}function Kc(e,t,n){var i,r,o;return e.Nj()?(i=e.i,o=e.Oj(),GD(e,i,t),r=e.Gj(3,null,t,i,o),n?n.lj(r):n=r):GD(e,e.i,t),n}function tFt(e,t,n){var i,r;return i=new N1(e.e,4,10,(r=t.c,he(r,89)?c(r,29):(At(),sf)),null,zg(e,t),!1),n?n.lj(i):n=i,n}function nFt(e,t,n){var i,r;return i=new N1(e.e,3,10,null,(r=t.c,he(r,89)?c(r,29):(At(),sf)),zg(e,t),!1),n?n.lj(i):n=i,n}function IYe(e){kv();var t;return(e.q?e.q:(Mt(),Mt(),Yd))._b((We(),qw))?t=c($(e,qw),205):t=c($(Jr(e),wE),205),t}function F0(e){ld();var t,n;return n=Qn(e),t=Qn(Zp(e,32)),t!=0?new cUe(n,t):n>10||n<0?new M1(1,n):rht[n]}function RYe(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 $Ye(e,t,n){EVe(),FPe.call(this),this.a=Z2(Cht,[Ge,o3e],[599,219],0,[AU,wce],2),this.c=new k4,this.g=e,this.f=t,this.d=n}function BYe(e){this.e=Ce(Hn,li,30,e.length,15,1),this.c=Ce(Sl,eh,30,e.length,16,1),this.b=Ce(Sl,eh,30,e.length,16,1),this.f=0}function iFt(e){var t,n;for(e.j=Ce(is,io,30,e.p.c.length,15,1),n=new J(e.p);n.a<n.c.c.length;)t=c(U(n),9),e.j[t.p]=t.o.b/e.i}function zYe(e,t){var n,i;e.a=As(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 rFt(e,t){t.Tg("Min Size Postprocessing",1),ri(e,(Qd(),lx),p.Math.max(ge(be(Ae(e,lx))),ge(be(Ae(e,RE))))),t.Ug()}function FYe(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),he(n,99)?K(new fa):K(n)}}function Cne(){Cne=W,ife=new w0,vCe=new EB,xCe=new Nd,yCe=new MB,kCe=new Sb,OCe=new cy,jCe=new Tb,SCe=new jN,TCe=new SN}function y2e(){y2e=W,B7e=new Wp(15),Ovt=new Qr((Pn(),$h),B7e),Svt=new Qr(lh,15),jvt=new Qr($ae,ze(0)),kvt=new Qr(h9,dS)}function hG(){hG=W,PE=new hZ("P1_WIDTH_APPROXIMATION",0),rW=new hZ("P2_PACKING",1),zue=new hZ("P3_WHITESPACE_ELIMINATION",2)}function XD(e,t){var n,i;for(i=t.length,n=0;n<i;n+=2)Pc(e,(tn(n,t.length),t.charCodeAt(n)),(tn(n+1,t.length),t.charCodeAt(n+1)))}function qYe(e,t,n){var i,r,o,a;for(o=t-e.e,a=n-e.f,r=new J(e.a);r.a<r.c.c.length;)i=c(U(r),175),YD(i,i.s+o,i.t+a);e.e=t,e.f=n}function sFt(e,t){var n,i,r,o;for(o=t.b.b,e.a=new _i,e.b=Ce(Hn,li,30,o,15,1),n=0,r=Ln(t.b,0);r.b!=r.d.c;)i=c(_n(r),41),i.g=n++}function xv(e,t){var n,i;return i=null,Oi(e,(We(),PJ))&&(n=c($(e,PJ),105),n.nf(t)&&(i=n.mf(t))),i==null&&(i=$(Jr(e),t)),i}function z7(e,t){var n;Dtn(t),n=c($(e,(We(),CJ)),286),n&&_e(e,CJ,rHt(n)),Cg(e.c),Cg(e.f),fbe(e.d),fbe(c($(e,_J),216))}function Ene(e,t){var n;return Oo(e)&&Oo(t)&&(n=e%t,DL<n&&n<jm)?n:P0((Sye(Oo(e)?Ha(e):e,Oo(t)?Ha(t):t,!0),Z0))}function k2e(e,t,n){var i,r,o,a,d;return a=e.k,d=t.k,i=n[a.g][d.g],r=be(xv(e,i)),o=be(xv(t,i)),p.Math.max((Ft(r),r),(Ft(o),o))}function O2e(e,t,n){var i,r;i=c(Nc(O9,t),122),r=c(Nc(gM,t),122),n?(lo(O9,e,i),lo(gM,e,r)):(lo(gM,e,i),lo(O9,e,r))}function HYe(e,t){var n,i,r,o;return n=t>>5,t&=31,r=e.d+n+(t==0?0:1),i=Ce(Hn,li,30,r,15,1),rQt(i,e.a,n,t),o=new em(e.e,r,i),d7(o),o}function Ij(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 KD(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 GYe(e,t,n){var i,r,o,a;for(r=c(Jt(e.b,n),172),i=0,a=new J(t.j);a.a<a.c.c.length;)o=c(U(a),114),r[o.d.p]&&++i;return i}function oFt(e,t,n,i){var r,o,a;return r=!1,etn(e.f,n,i)&&(NFt(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 cFt(e,t){var n,i,r;for(i=new Gt(Xt(Fi(e).a.Jc(),new z));gn(i);)if(n=c(on(i),17),r=n.d.i,r.c==t)return!1;return!0}function lFt(e){var t;t=e.a;do t=c(on(new Gt(Xt(Fi(t).a.Jc(),new z))),17).d.i,t.k==(Wt(),Er)&&Ue(e.e,t);while(t.k==(Wt(),Er))}function Mne(e){var t;e.c!=0&&(t=c(Xe(e.a,e.b),296),t.b==1?(++e.b,e.b<e.a.c.length&&Nt(c(Xe(e.a,e.b),296))):--t.b,--e.c)}function QYe(e){var t,n,i,r,o;if(e==null)return null;for(o=new Qe,n=cne(e),i=0,r=n.length;i<r;++i)t=n[i],Ue(o,Ic(t,!0));return o}function UYe(e){var t,n,i,r,o;if(e==null)return null;for(o=new Qe,n=cne(e),i=0,r=n.length;i<r;++i)t=n[i],Ue(o,Ic(t,!0));return o}function JYe(e){var t,n,i,r,o;if(e==null)return null;for(o=new Qe,n=cne(e),i=0,r=n.length;i<r;++i)t=n[i],Ue(o,Ic(t,!0));return o}function WYe(e){var t,n;return t=c(Kt(e.a,4),131),t!=null?(n=Ce(Zae,Ioe,420,t.length,0,1),yc(t,0,n,0,t.length),n):Wvt}function Ane(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 od(e,t,n){var i,r,o,a;for(o=t+n,as(t,o,e.length),a="",r=t;r<o;)i=p.Math.min(r+1e4,o),a+=WNt(e.slice(r,i)),r=i;return a}function uFt(){return Error.stackTraceLimit>0?(p.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function Cu(){Cu=W,lI=new IF("PORTS",0),Wm=new IF("PORT_LABELS",1),cI=new IF("NODE_LABELS",2),bx=new IF("MINIMUM_SIZE",3)}function $1(){$1=W,cp=new TF(th,0),e9e=new TF("NODES_AND_EDGES",1),iue=new TF("PREFER_EDGES",2),rue=new TF("PREFER_NODES",3)}function aFt(e,t){return ph(),ph(),yf(Hg),(p.Math.abs(e-t)<=Hg||e==t||isNaN(e)&&isNaN(t)?0:e<t?-1:e>t?1:Vp(isNaN(e),isNaN(t)))>0}function j2e(e,t){return ph(),ph(),yf(Hg),(p.Math.abs(e-t)<=Hg||e==t||isNaN(e)&&isNaN(t)?0:e<t?-1:e>t?1:Vp(isNaN(e),isNaN(t)))<0}function VYe(e,t){return ph(),ph(),yf(Hg),(p.Math.abs(e-t)<=Hg||e==t||isNaN(e)&&isNaN(t)?0:e<t?-1:e>t?1:Vp(isNaN(e),isNaN(t)))<=0}function S2e(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 T2e(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=xq(this.c,this.b,this.a))}function fFt(e,t){var n=e.a,i;t=String(t),n.hasOwnProperty(t)&&(i=n[t]);var r=(Yte(),oce)[typeof i],o=r?r(i):Gwe(typeof i);return o}function Rj(e){var t,n,i;if(i=null,t=md in e.a,n=!t,n)throw K(new Kh("Every element must have an id."));return i=ok(C1(e,md)),i}function fw(e){var t,n;for(n=Ctt(e),t=null;e.c==2;)wi(e),t||(t=(vi(),vi(),new QT(2)),km(t,n),n=t),n.Hm(Ctt(e));return n}function dG(e,t){var n,i,r;return e.Zj(),i=t==null?0:zi(t),r=(i&pi)%e.d.length,n=sxe(e,r,i,t),n?(QVe(e,n),n.kd()):null}function XYe(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*Lwe(e.a,t.a,e.d)}function KYe(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 hFt(e,t){if(t.c==e)return t.d;if(t.d==e)return t.c;throw K(new Ht("Input edge is not connected to the input port."))}function cd(e,t){if(e.a<0)throw K(new oo("Did not call before(...) or after(...) before calling add(...)."));return k0e(e,e.a,t),e}function YYe(e,t){var n,i,r;if(e.c)um(e.c,t);else for(n=t-yu(e),r=new J(e.a);r.a<r.c.c.length;)i=c(U(r),168),YYe(i,yu(i)+n)}function ZYe(e,t){var n,i,r;if(e.c)am(e.c,t);else for(n=t-Nl(e),r=new J(e.d);r.a<r.c.c.length;)i=c(U(r),168),ZYe(i,Nl(i)+n)}function C2e(e){return Xq(),he(e,167)?c(Jt(wI,uht),297).Qg(e):Ac(wI,ju(e))?c(Jt(wI,ju(e)),297).Qg(e):null}function sl(e){var t,n;return(e.Db&32)==0&&(n=(t=c(Kt(e,16),29),bn(t||e.fi())-bn(e.fi())),n!=0&&Y4(e,32,Ce(Br,It,1,n,5,1))),e}function Y4(e,t,n){var i;(e.Db&t)!=0?n==null?IJt(e,t):(i=Kne(e,t),i==-1?e.Eb=n:br(U4(e.Eb),i,n)):n!=null&&sXt(e,t,n)}function dFt(e,t,n,i){var r,o;t.c.length!=0&&(r=ZWt(n,i),o=rJt(t),hr(SH(new Tt(null,new Ct(o,1)),new d$),new hGe(e,n,r,i)))}function gFt(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,Fze(n<r),n>=o?(yBt(e,t),-1):(xBt(e,t),1)}function pFt(e,t){var n,i;for(n=(tn(t,e.length),e.charCodeAt(t)),i=t+1;i<e.length&&(tn(i,e.length),e.charCodeAt(i)==n);)++i;return i-t}function E2e(e){var t,n;switch(n=e.Nc(),n.length){case 0:return vq(),nce;case 1:return t=n[0],new qZ($n(t));default:return new Kee(Ozt(n))}}function M2e(e){switch(typeof e){case fre:return Pg(e);case qye:return y4(e);case hk:return aFe(e);default:return e==null?0:Hb(e)}}function mFt(e){if(gG(CS,e))return zt(),RS;if(gG(goe,e))return zt(),ep;throw K(new Ht("Expecting true or false"))}function bFt(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 eZe(e,t){var n;return Se(t)===Se(e)?!0:!he(t,24)||(n=c(t,24),n.gc()!=e.gc())?!1:e.Hc(n)}function gG(e,t){return Ft(e),t==null?!1:jt(e,t)?!0:e.length==t.length&&jt(e.toLowerCase(),t.toLowerCase())}function yv(e){var t,n;return Lc(e,-129)>0&&Lc(e,128)<0?(Bqe(),t=Qn(e)+128,n=Gke[t],!n&&(n=Gke[t]=new Ab(e)),n):new Ab(e)}function Z4(){Z4=W,YC=new yF(th,0),DOe=new yF("INSIDE_PORT_SIDE_GROUPS",1),_ce=new yF("GROUP_MODEL_ORDER",2),Dce=new yF(Zre,3)}function pG(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 wFt(e){var t;return e.b||R8t(e,(t=QCt(e.e,e.a),!t||!jt(goe,Zf((!t.b&&(t.b=new vu((At(),$s),ec,t)),t.b),"qualified")))),e.c}function vFt(e){var t,n;for(n=new J(e.a.b);n.a<n.c.c.length;)if(t=c(U(n),70),it(nt($(t,(We(),T3)))))return!0;return!1}function xFt(e,t){Uee();var n,i;for(i=new Gt(Xt(sd(e).a.Jc(),new z));gn(i);)if(n=c(on(i),17),n.d.i==t||n.c.i==t)return n;return null}function tZe(e,t,n){var i,r,o;for(o=new J(n.a);o.a<o.c.c.length;)r=c(U(o),227),i=new JF(c(Jt(e.a,r.b),68)),Ue(t.a,i),tZe(e,i,r)}function nZe(e,t,n){var i,r,o;i=t.c.p,o=t.p,e.b[i][o]=new TGe(e,t),n&&(e.a[i][o]=new kDe(t),r=c($(t,($e(),$w)),9),r&&St(e.d,r,t))}function yFt(e,t,n){var i;e.a=n,e.a.Tg(aut,1),(!t.a&&(t.a=new Le(Nn,t,10,11)),t.a).i!=0&&(i=c(Ae(t,(Gd(),qE)),19),Ynt(e,i)),e.a.Ug()}function iZe(e,t){var n,i;return n=t.ni(e.a),n&&(i=qn(Zf((!n.b&&(n.b=new vu((At(),$s),ec,n)),n.b),di)),i!=null)?i:t.ve()}function kFt(e,t){var n,i;return n=t.ni(e.a),n&&(i=qn(Zf((!n.b&&(n.b=new vu((At(),$s),ec,n)),n.b),di)),i!=null)?i:t.ve()}function OFt(e,t){(!t&&console.groupCollapsed!=null?console.groupCollapsed:console.group??console.log).call(console,e)}function jFt(e,t,n,i){i==e,c(n.b,68),c(n.b,68),c(i.b,68),c(i.b,68).c.b,pbe(i,t,e)}function A2e(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 SFt(e,t,n){var i,r,o;return i=c(ae(ou(e.a),t),88),o=(r=i.c,r||(At(),Hh)),(o.Sh()?B0(e.b,c(o,52)):o)==n?iQ(i):pj(i,n),o}function N2e(e,t,n){this.c=e,this.f=new Qe,this.e=new us,this.j=new Ape,this.n=new Ape,this.b=t,this.g=new bf(t.c,t.d,t.b,t.a),this.a=n}function Nne(e){var t,n,i,r;for(this.a=new Ld,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),ete(this,t)}function rZe(e){ld(),e.length==0?(this.e=0,this.d=1,this.a=ee(Z(Hn,1),li,30,15,[0])):(this.e=1,this.d=e.length,this.a=e,d7(this))}function F7(e,t,n){FPe.call(this),this.a=Ce(Cht,o3e,219,(Yf(),ee(Z(Fv,1),Re,240,0,[Ko,el,Yo])).length,0,1),this.b=e,this.d=t,this.c=n}function TFt(e){var t,n,i,r,o,a;for(a=c($(e,($e(),Si)),12),_e(a,KS,e.i.n.b),t=rd(e.e),i=t,r=0,o=i.length;r<o;++r)n=i[r],rs(n,a)}function CFt(e){var t,n,i,r,o,a;for(n=c($(e,($e(),Si)),12),_e(n,KS,e.i.n.b),t=rd(e.g),r=t,o=0,a=r.length;o<a;++o)i=r[o],ks(i,n)}function EFt(e,t){var n,i,r,o;for(i=0,r=t.gc();i<r;++i)n=t.Rl(i),he(n,104)&&(c(n,20).Bb&sc)!=0&&(o=t.Sl(i),o!=null&&Fie(e,c(o,57)))}function MFt(){var e;return kU!=0&&(e=Date.now(),e-Wft>2e3&&(Wft=e,OU=p.setTimeout(G8t,10))),kU++==0?(WIt((P1e(),Lke)),!0):!1}function AFt(e,t,n){var i;(mht?(Izt(e),!0):bht||vht?(F6(),!0):wht&&(F6(),!1))&&(i=new eqe(t),i.b=n,IQt(e,i))}function _ne(e,t){var n;n=!e.A.Gc((Cu(),Wm))||e.q==(es(),Sc),e.u.Gc((Ul(),Z1))?n?ann(e,t):mot(e,t):e.u.Gc(pp)&&(n?_tn(e,t):Not(e,t))}function sZe(e){var t;Se(Ae(e,(Pn(),P3)))===Se((I1(),OW))&&(Ki(e)?(t=c(Ae(Ki(e),P3),348),ri(e,P3,t)):ri(e,P3,YE))}function NFt(e,t,n){var i,r;die(e.e,t,n,(Ve(),Zt)),die(e.i,t,n,sn),e.a&&(r=c($(t,($e(),Si)),12),i=c($(n,Si),12),Zee(e.g,r,i))}function oZe(e,t,n){return new bf(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 _Ft(e,t){var n,i;return n=pc(e.a.c.p,t.a.c.p),n!=0?n:(i=pc(e.a.d.i.p,t.a.d.i.p),i!=0?i:pc(t.a.d.p,e.a.d.p))}function DFt(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 cZe(e){var t;this.d=new Qe,this.j=new us,this.g=new us,t=e.g.b,this.f=c($(Jr(t),(We(),Xu)),87),this.e=ge(be(wG(t,rx)))}function lZe(e){this.d=new Qe,this.e=new _0,this.c=Ce(Hn,li,30,(Ve(),ee(Z(Rs,1),ac,64,0,[$o,Yt,sn,wn,Zt])).length,15,1),this.b=e}function _2e(e,t,n){var i;switch(i=n[e.g][t],e.g){case 1:case 3:return new He(0,i);case 2:case 4:return new He(i,0);default:return null}}function LFt(e,t){var n;if(n=Iy(e.o,t),n==null)throw K(new Kh("Node did not exist in input."));return Nxe(e,t),Rie(e,t),yxe(e,t,n),null}function uZe(e,t,n){var i,r;r=c(cD(t.f),207);try{r.kf(e,n),ome(t.f,r)}catch(o){throw o=kr(o),he(o,102)?(i=o,K(i)):K(o)}}function aZe(e,t,n){var i,r,o,a,d,b;return i=null,d=Eye(k7(),t),o=null,d&&(r=null,b=Tye(d,n),a=null,b!=null&&(a=e.of(d,b)),r=a,o=r),i=o,i}function Dne(e,t,n,i){var r;if(r=e.length,t>=r)return r;for(t=t>0?t:0;t<r&&!Zte((tn(t,e.length),e.charCodeAt(t)),n,i);t++);return t}function Oh(e,t){var n,i;for(i=e.c.length,t.length<i&&(t=Zz(new Array(i),t)),n=0;n<i;++n)br(t,n,e.c[n]);return t.length>i&&br(t,i,null),t}function fZe(e,t){var n,i;for(i=e.a.length,t.length<i&&(t=Zz(new Array(i),t)),n=0;n<i;++n)br(t,n,e.a[n]);return t.length>i&&br(t,i,null),t}function PFt(e){var t;if(e==null)return null;if(t=SWt(Ic(e,!0)),t==null)throw K(new EY("Invalid hexBinary value: '"+e+"'"));return t}function mG(e,t,n){var i;t.a.length>0&&(Ue(e.b,new dqe(t.a,n)),i=t.a.length,0<i?t.a=qa(t.a,0,0):0>i&&(t.a+=uze(Ce(Da,fd,30,-i,15,1))))}function hZe(e,t,n){var i,r,o;if(!n[t.d])for(n[t.d]=!0,r=new J(zy(t));r.a<r.c.c.length;)i=c(U(r),220),o=oG(i,t),hZe(e,o,n)}function dZe(e,t){var n,i,r,o;for(n=0,r=new J(t.a);r.a<r.c.c.length;)i=c(U(r),9),o=i.o.a+i.d.c+i.d.b+e.j,n=p.Math.max(n,o);return n}function wm(e,t,n){var i,r,o;return r=c(Jt(e.e,t),395),r?(o=F0e(r,n),pze(e,r),o):(i=new gpe(e,t,n),ci(e.e,t,i),WGe(i),null)}function IFt(e,t){var n;if(n=Jt(e.q,t),n==null)throw K(new Kh("Port did not exist in input."));return Nxe(e,t),Rie(e,t),yxe(e,t,n),null}function Lne(){return gQ(),ee(Z(edt,1),Re,169,0,[Yht,Kht,Zht,Hht,qht,Ght,Jht,Uht,Qht,Xht,Vht,Wht,zht,Bht,Fht,Rht,Iht,$ht,Lht,Dht,Pht,vce])}function $j(e){switch(e.g){case 4:return new He(0,-1);case 1:return new He(1,0);case 2:return new He(-1,0);default:return new He(0,1)}}function Pne(e){switch(e.g){case 1:return _r(),Aa;case 4:return _r(),go;case 2:return _r(),vo;case 3:return _r(),Bh}return _r(),zh}function RFt(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 jh(){jh=W,Dt=new D_("PARENTS",0),pr=new D_("NODES",1),ch=new D_("EDGES",2),e0=new D_("PORTS",3),X1=new D_("LABELS",4)}function $Ft(e,t,n,i){var r,o,a;return r=new N1(e.e,1,13,(a=t.c,a||(At(),Hh)),(o=n.c,o||(At(),Hh)),zg(e,t),!1),i?i.lj(r):i=r,i}function BFt(e,t,n){var i;switch(i=n.q.getFullYear()-W0+W0,i<0&&(i=-i),t){case 1:e.a+=i;break;case 2:qd(e,i%100,2);break;default:qd(e,i,t)}}function Ln(e,t){var n,i;if(cv(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 ZFe(e,t,i)}function gZe(e){this.b=new Qe,this.e=new Qe,this.d=e,this.a=!R6(bi(new Tt(null,new nv(new xh(e.b))),new E6(new YR))).zd((Jp(),Ck))}function zFt(e){var t;e.g&&(e.c.ig()?e.f:e.a)&&(t=e.c.ig()?e.f:e.a,Rxe(t.a,e.o,!0),Rxe(t.a,e.o,!1),_e(e.o,(We(),fr),(es(),Jm)))}function pZe(e,t){var n,i,r;r=t.d.i,i=r.k,!(i==(Wt(),ar)||i==Lh)&&(n=new Gt(Xt(Fi(r).a.Jc(),new z)),gn(n)&&ci(e.k,t,c(on(n),17)))}function FFt(e,t){return D1(),Ci((e.a.b==0?new He(e.c.e.a,e.c.e.b):c(U6(e.a),8)).b,(t.a.b==0?new He(t.c.e.a,t.c.e.b):c(U6(t.a),8)).b)}function qFt(e,t){return D1(),Ci((e.a.b==0?new He(e.c.e.a,e.c.e.b):c(U6(e.a),8)).a,(t.a.b==0?new He(t.c.e.a,t.c.e.b):c(U6(t.a),8)).a)}function HFt(e,t){return D1(),Ci((e.a.b==0?new He(e.b.e.a,e.b.e.b):c(pf(e.a),8)).a,(t.a.b==0?new He(t.b.e.a,t.b.e.b):c(pf(t.a),8)).a)}function GFt(e,t){return D1(),Ci((e.a.b==0?new He(e.b.e.a,e.b.e.b):c(pf(e.a),8)).b,(t.a.b==0?new He(t.b.e.a,t.b.e.b):c(pf(t.a),8)).b)}function qy(){qy=W,dp=new P_("DISTRIBUTED",0),rI=new P_("JUSTIFIED",1),I7e=new P_("BEGIN",2),ZE=new P_(fS,3),R7e=new P_("END",4)}function Ine(e,t){var n,i,r;return i=Lt(e.Ah(),t),n=t-e.gi(),n<0?(r=e.Fh(i),r>=0?e.Th(r):Oie(e,i)):n<0?Oie(e,i):c(i,69).uk().zk(e,e.ei(),n)}function mZe(e){var t,n,i;for(i=(!e.o&&(e.o=new _l((uc(),s1),n0,e,0)),e.o),n=i.c.Jc();n.e!=n.i.gc();)t=c(n.Wj(),45),t.kd();return bD(i)}function Ke(e){var t;if(he(e.a,4)){if(t=C2e(e.a),t==null)throw K(new oo(gut+e.b+"'. "+dut+(j1(vI),vI.k)+q4e));return t}else return e.a}function QFt(e){var t;if(e==null)return null;if(t=wnn(Ic(e,!0)),t==null)throw K(new EY("Invalid base64Binary value: '"+e+"'"));return t}function fn(e){var t;try{return t=e.i.Xb(e.e),e.Vj(),e.g=e.e++,t}catch(n){throw n=kr(n),he(n,99)?(e.Vj(),K(new Eo)):K(n)}}function Rne(e){var t;try{return t=e.c.Ti(e.e),e.Vj(),e.g=e.e++,t}catch(n){throw n=kr(n),he(n,99)?(e.Vj(),K(new Eo)):K(n)}}function bG(e){var t,n,i,r;for(r=0,n=0,i=e.length;n<i;n++)t=(tn(n,e.length),e.charCodeAt(n)),t>=64&&t<128&&(r=id(r,$d(1,t-64)));return r}function wG(e,t){var n,i;return i=null,Oi(e,(Pn(),Vk))&&(n=c($(e,Vk),105),n.nf(t)&&(i=n.mf(t))),i==null&&Jr(e)&&(i=$(Jr(e),t)),i}function UFt(e,t){var n;return n=c($(e,(We(),ho)),79),_Z(t,e1t)?n?ku(n):(n=new nu,_e(e,ho,n)):n&&_e(e,ho,null),n}function JFt(e,t){var n,i,r;for(r=new Wc(t.gc()),i=t.Jc();i.Ob();)n=c(i.Pb(),295),n.c==n.f?Qj(e,n,n.c):fUt(e,n)||Rt(r.c,n);return r}function bZe(e,t){var n,i,r;for(n=e.o,r=c(c(Ti(e.r,t),24),85).Jc();r.Ob();)i=c(r.Pb(),116),i.e.a=Xqt(i,n.a),i.e.b=n.b*ge(be(i.b.mf(NU)))}function WFt(e,t){var n,i,r,o;return r=e.k,n=ge(be($(e,($e(),Bw)))),o=t.k,i=ge(be($(t,Bw))),o!=(Wt(),Ar)?-1:r!=Ar?1:n==i?0:n<i?-1:1}function VFt(e,t){var n,i;return n=c(c(Jt(e.g,t.a),49).a,68),i=c(c(Jt(e.g,t.b),49).a,68),D0(t.a,t.b)-D0(t.a,e0e(n.b))-D0(t.b,e0e(i.b))}function Bj(e,t){var n,i;if(++e.j,t!=null&&(n=(i=e.a.Cb,he(i,101)?c(i,101).qh():null),SJt(t,n))){Y4(e.a,4,n);return}Y4(e.a,4,c(t,131))}function vG(e){switch(sge(),this.c=new Qe,this.d=e,e.g){case 0:case 2:this.a=lme(_Oe),this.b=or;break;case 3:case 1:this.a=_Oe,this.b=Gr}}function XFt(e){var t;E4(c($(e,(We(),fr)),103))&&(t=e.b,bnt((pt(0,t.c.length),c(t.c[0],26))),bnt(c(Xe(t,t.c.length-1),26)))}function KFt(e,t){t.Tg("Self-Loop post-processing",1),hr(bi(bi(jo(new Tt(null,new Ct(e.b,16)),new gA),new IR),new RR),new $R),t.Ug()}function wZe(e,t,n){var i,r;if(e.c)Dc(e.c,e.c.i+t),Dl(e.c,e.c.j+n);else for(r=new J(e.b);r.a<r.c.c.length;)i=c(U(r),168),wZe(i,t,n)}function YFt(e){var t,n,i;for(i=e.c.a,e.p=($n(i),new Hl(i)),n=new J(i);n.a<n.c.c.length;)t=c(U(n),9),t.p=LUt(t).a;Mt(),Rr(e.p,new r$)}function ZFt(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(!jt(e.j[n],t.j[n]))return!1;return!0}function vZe(e,t){Mt();var n,i,r,o;for(n=e,o=t,he(e,24)&&!he(t,24)&&(n=t,o=e),r=n.Jc();r.Ob();)if(i=r.Pb(),o.Gc(i))return!1;return!0}function eqt(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 xZe(e){var t;return t=new v0,t.a+="n",e.k!=(Wt(),ar)&&ti(ti((t.a+="(",t),RZ(e.k).toLowerCase()),")"),ti((t.a+="_",t),eL(e)),t.a}function q7(){q7=W,JSe=new E_(G5e,0),tue=new E_(rse,1),nue=new E_("LINEAR_SEGMENTS",2),yE=new E_("BRANDES_KOEPF",3),kE=new E_(_lt,4)}function ek(){ek=W,WJ=new EF("P1_TREEIFICATION",0),ME=new EF("P2_NODE_ORDERING",1),AE=new EF("P3_NODE_PLACEMENT",2),NE=new EF(zlt,3)}function tk(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 D2e(e,t){switch(t){case 7:!e.e&&(e.e=new Et($i,e,7,4)),Mn(e.e);return;case 8:!e.d&&(e.d=new Et($i,e,8,5)),Mn(e.d);return}w2e(e,t)}function ri(e,t,n){return n==null?(!e.o&&(e.o=new _l((uc(),s1),n0,e,0)),dG(e.o,t)):(!e.o&&(e.o=new _l((uc(),s1),n0,e,0)),iL(e.o,t,n)),e}function vc(e,t){var n;n=e.dd(t);try{return n.Pb()}catch(i){throw i=kr(i),he(i,113)?K(new Qc("Can't get element "+t)):K(i)}}function yZe(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 tqt(e){var t;t=e.a;do t=c(on(new Gt(Xt(vr(t).a.Jc(),new z))),17).c.i,t.k==(Wt(),Er)&&e.b.Ec(t);while(t.k==(Wt(),Er));e.b=Tu(e.b)}function kZe(e,t){var n,i,r;for(r=e,i=new Gt(Xt(vr(t).a.Jc(),new z));gn(i);)n=c(on(i),17),n.c.i.c&&(r=p.Math.max(r,n.c.i.c.p));return r}function nqt(e,t){var n,i,r;for(r=0,i=c(c(Ti(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 iqt(e,t){var n,i,r;for(r=0,i=c(c(Ti(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 OZe(e){var t,n,i,r;if(i=0,r=Ev(e),r.c.length==0)return 1;for(n=new J(r);n.a<n.c.c.length;)t=c(U(n),19),i+=OZe(t);return i}function jZe(e){var t,n;for(this.b=new Qe,this.c=e,this.a=!1,n=new J(e.a);n.a<n.c.c.length;)t=c(U(n),9),this.a=this.a|t.k==(Wt(),ar)}function rqt(e,t,n){var i,r,o,a;return i=e.bd(t),i!=-1&&(e.Nj()?(o=e.Oj(),a=bq(e,i),r=e.Gj(4,a,null,i,o),n?n.lj(r):n=r):bq(e,i)),n}function Ns(e,t,n){var i,r,o,a;return i=e.bd(t),i!=-1&&(e.Nj()?(o=e.Oj(),a=nk(e,i),r=e.Gj(4,a,null,i,o),n?n.lj(r):n=r):nk(e,i)),n}function sqt(e,t,n,i){var r,o,a;n.Uh(t)&&(qs(),Tte(t)?(r=c(n.Jh(t),164),EFt(e,r)):(o=(a=t,a?c(i,52).di(a):null),o&&N9t(n.Jh(t),o)))}function xG(e,t,n,i){var r,o,a;return o=Lt(e.Ah(),t),r=t-e.gi(),r<0?(a=e.Fh(o),a>=0?e.Ih(a,n,!0):pw(e,o,n)):c(o,69).uk().wk(e,e.ei(),r,n,i)}function oqt(e,t,n,i){var r,o;o=t.nf((Pn(),R3))?c(t.mf(R3),24):e.j,r=YBt(o),r!=(gQ(),vce)&&(n&&!S2e(r)||Rve(TWt(e,r,i),t))}function $ne(e,t){return Yr(e)?!!Fft[t]:e.Qm?!!e.Qm[t]:Q2(e)?!!zft[t]:G2(e)?!!Bft[t]:!1}function cqt(e){switch(e.g){case 1:return cw(),fP;case 3:return cw(),aP;case 2:return cw(),yce;case 4:return cw(),xce;default:return null}}function lqt(e,t,n){if(e.e)switch(e.b){case 1:v_t(e.c,t,n);break;case 0:x_t(e.c,t,n)}else LUe(e.c,t,n);e.a[t.p][n.p]=e.c.i,e.a[n.p][t.p]=e.c.e}function SZe(e){var t,n;if(e==null)return null;for(n=Ce(e1,Ge,201,e.length,0,2),t=0;t<n.length;t++)n[t]=c(TPt(e[t],e[t].length),201);return n}function TZe(e){var t;t=c($(e,(Wo(),H9e)),100),_e(e,(Ii(),o9),new He(0,0)),Drt(new pD,e,t.b-ge(be($(e,vue))),t.d-ge(be($(e,xue))))}function yG(e){var t;if(sne(e))return Eq(e),e.sl()&&(t=Y7(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 K(new Eo)}function CZe(e,t,n){n.Tg("Compound graph preprocessor",1),e.a=new Zb,hot(e,t,null),GZt(e,t),dVt(e),_e(t,($e(),sje),e.a),e.a=null,lc(e.b),n.Ug()}function EZe(e,t,n){var i,r,o;for(r=new Gt(Xt((t?vr(e):Fi(e)).a.Jc(),new z));gn(r);)i=c(on(r),17),o=t?i.c.i:i.d.i,o.k==(Wt(),fc)&&zr(o,n)}function uqt(e,t){var n,i,r;for(t.Tg("Untreeify",1),n=c($(e,(Ii(),L9e)),16),r=n.Jc();r.Ob();)i=c(r.Pb(),65),ni(i.b.d,i),ni(i.c.b,i);t.Ug()}function MZe(e,t,n){var i,r,o;return i=t.i.j.c.length,Oi(t,($e(),Ri))&&Oi(n,Ri)?(r=mw(t,n,e.b,i),o=mw(n,t,e.b,i),r<o?-1:r>o?1:0):0}function kv(){kv=W,zJ=new SF(th,0),Zle=new SF("PORT_POSITION",1),M3=new SF("NODE_SIZE_WHERE_SPACE_PERMITS",2),E3=new SF("NODE_SIZE",3)}function Hd(){Hd=W,jae=new PT("AUTOMATIC",0),WP=new PT(bk,1),VP=new PT(wk,2),mW=new PT("TOP",3),gW=new PT(l3e,4),pW=new PT(fS,5)}function Hy(e,t,n){var i,r;if(r=e.gc(),t>=r)throw K(new K2(t,r));if(e.Qi()&&(i=e.bd(n),i>=0&&i!=t))throw K(new Ht(tP));return e.Vi(t,n)}function zg(e,t){var n,i,r;if(r=cet(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)),Se(n)===Se(t))return i}return-1}function L2e(e,t){if(this.a=c($n(e),257),this.b=c($n(t),257),e.Cd(t)>0||e==(kY(),Yoe)||t==(OY(),Zoe))throw K(new Ht("Invalid range: "+DUe(e,t)))}function P2e(e,t,n,i){Xj();var r,o;for(r=0,o=0;o<n;o++)r=As(js(Zr(t[o],Us),Zr(i,Us)),Zr(Qn(r),Us)),e[o]=Qn(r),r=Zp(r,32);return Qn(r)}function I2e(e,t,n){var i,r;for(r=0,i=0;i<wce;i++)r=p.Math.max(r,ane(e.a[t.g][i],n));return t==(Yf(),el)&&e.b&&(r=p.Math.max(r,e.b.b)),r}function kG(e,t){var n,i;if(O0e(t>0),(t&-t)==t)return ys(t*lu(e,31)*4656612873077393e-25);do n=lu(e,31),i=n%t;while(n-i+(t-1)<0);return ys(i)}function aqt(e,t){var n,i,r;for(n=qb(new Qp,e),r=new J(t);r.a<r.c.c.length;)i=c(U(r),126),Sf(ff(df(gf(hf(new $a,0),0),n),i));return n}function YD(e,t,n){var i,r;for(I$t(e,t-e.s,n-e.t),r=new J(e.n);r.a<r.c.c.length;)i=c(U(r),211),cY(i,i.e+t-e.s),Rz(i,i.f+n-e.t);e.s=t,e.t=n}function fqt(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 ZD(e,t,n,i){var r,o;for(r=t;r<e.c.length;r++)if(o=(pt(r,e.c.length),c(e.c[r],12)),n.Mb(o))Rt(i.c,o);else return r;return e.c.length}function hqt(e){var t,n,i;for(i=c(Ti(e.a,(Ov(),sJ)),16).Jc();i.Ob();)n=c(i.Pb(),108),t=U2e(n),ej(e,n,t[0],(ow(),Pw),0),ej(e,n,t[1],Iw,1)}function dqt(e){var t,n,i;for(i=c(Ti(e.a,(Ov(),oJ)),16).Jc();i.Ob();)n=c(i.Pb(),108),t=U2e(n),ej(e,n,t[0],(ow(),Pw),0),ej(e,n,t[1],Iw,1)}function Bne(e){switch(e.g){case 0:return null;case 1:return new bXe;case 2:return new N1e;default:throw K(new Ht(Zse+(e.f!=null?e.f:""+e.g)))}}function AZe(e){var t;return t=ge(be(Ae(e,(Pn(),px))))*p.Math.sqrt((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a).i),new He(t,t/ge(be(Ae(e,g9))))}function zne(e){var t;return e.f&&e.f.Sh()&&(t=c(e.f,52),e.f=c(B0(e,t),83),e.f!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,9,8,t,e.f))),e.f}function Fne(e){var t;return e.i&&e.i.Sh()&&(t=c(e.i,52),e.i=c(B0(e,t),83),e.i!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,9,7,t,e.i))),e.i}function Hs(e){var t;return e.b&&(e.b.Db&64)!=0&&(t=e.b,e.b=c(B0(e,t),20),e.b!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,9,21,t,e.b))),e.b}function OG(e,t){var n,i,r;e.d==null?(++e.e,++e.f):(i=t.yi(),OVt(e,e.f+1),r=(i&pi)%e.d.length,n=e.d[r],!n&&(n=e.d[r]=e.bk()),n.Ec(t),++e.f)}function R2e(e,t,n){var i;return t.rk()?!1:t.Gk()!=-2?(i=t.gk(),i==null?n==null:ki(i,n)):t.ok()==e.e.Ah()&&n==null}function jG(){var e;qu(16,lct),e=oXe(16),this.b=Ce(ece,AL,309,e,0,1),this.c=Ce(ece,AL,309,e,0,1),this.a=null,this.e=null,this.i=0,this.f=e-1,this.g=0}function Sh(e){G0e.call(this),this.k=(Wt(),ar),this.j=(qu(6,Lv),new Wc(6)),this.b=(qu(2,Lv),new Wc(2)),this.d=new bY,this.f=new S1e,this.a=e}function gqt(e){var t,n,i,r,o;for(n=0,r=new J(e.a);r.a<r.c.c.length;)i=c(U(r),126),i.d=n++;return t=vQt(e),o=null,t.c.length>1&&(o=aqt(e,t)),o}function pqt(e){var t,n,i;for(t=0,i=new J(e.c.a);i.a<i.c.c.length;)n=c(U(i),9),t+=Vf(new Gt(Xt(Fi(n).a.Jc(),new z)));return t/e.c.a.c.length}function qne(e){var t,n;for(n=new ln(e);n.e!=n.i.gc();)if(t=c(fn(n),88),t.e||(!t.d&&(t.d=new Nr(Ks,t,1)),t.d).i!=0)return!0;return!1}function Hne(e){var t,n;for(n=new ln(e);n.e!=n.i.gc();)if(t=c(fn(n),88),t.e||(!t.d&&(t.d=new Nr(Ks,t,1)),t.d).i!=0)return!0;return!1}function NZe(e,t,n,i){var r,o,a;for(r=c(Ti(i?e.a:e.b,t),24),a=r.Jc();a.Ob();)if(o=c(a.Pb(),19),ZG(e,n,o))return!0;return!1}function mqt(e,t){for(var n,i;e.Ob();)if(!t.Ob()||(n=e.Pb(),i=t.Pb(),!(Se(n)===Se(i)||n!=null&&ki(n,i))))return!1;return!t.Ob()}function bqt(e){var t,n;e.c.length<=1||(t=Jit(e,(Ve(),wn)),Att(e,c(t.a,15).a,c(t.b,15).a),n=Jit(e,Zt),Att(e,c(n.a,15).a,c(n.b,15).a))}function wqt(e,t,n){var i,r;for(r=e.a.b,i=r.c.length;i<n;i++)Xp(r,r.c.length,new mc(e.a));zr(t,(pt(n-1,r.c.length),c(r.c[n-1],26))),e.b[t.p]=n}function _Ze(e,t){var n,i,r;for(e.b[t.g]=1,i=Ln(t.d,0);i.b!=i.d.c;)n=c(_n(i),65),r=n.c,e.b[r.g]==1?ni(e.a,n):e.b[r.g]==2?e.b[r.g]=1:_Ze(e,r)}function Gne(){Gne=W,mTe=(Lie(),hTe),pTe=new Wp(8),new Qr((Pn(),$h),pTe),new Qr(lh,8),t2t=aTe,dTe=Jwt,gTe=Wwt,e2t=new Qr(KP,(zt(),!1))}function vqt(e,t,n){var i;n.Tg("Shrinking tree compaction",1),it(nt($(t,(vj(),XC))))?($Rt(e,t.f),UWe(t.f,(i=t.c,i))):UWe(t.f,t.c),n.Ug()}function $2e(e,t,n,i){switch(t){case 7:return!e.e&&(e.e=new Et($i,e,7,4)),e.e;case 8:return!e.d&&(e.d=new Et($i,e,8,5)),e.d}return c2e(e,t,n,i)}function Qne(e){var t;return e.a&&e.a.Sh()&&(t=c(e.a,52),e.a=c(B0(e,t),146),e.a!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,9,5,t,e.a))),e.a}function vm(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 Une(e,t){if(e==null)throw K(new h4("null key in entry: null="+t));if(t==null)throw K(new h4("null value in entry: "+e+"=null"))}function DZe(e,t){var n;return n=ee(Z(is,1),io,30,15,[ane(e.a[0],t),ane(e.a[1],t),ane(e.a[2],t)]),e.d&&(n[0]=p.Math.max(n[0],n[2]),n[2]=n[0]),n}function LZe(e,t){var n;return n=ee(Z(is,1),io,30,15,[ZH(e.a[0],t),ZH(e.a[1],t),ZH(e.a[2],t)]),e.d&&(n[0]=p.Math.max(n[0],n[2]),n[2]=n[0]),n}function B2e(e,t,n){E4(c($(t,(We(),fr)),103))||(Vme(e,t,Fg(t,n)),Vme(e,t,Fg(t,(Ve(),wn))),Vme(e,t,Fg(t,Yt)),Mt(),Rr(t.j,new vDe(e)))}function PZe(e){var t,n;for(e.c||jen(e),n=new nu,t=new J(e.a),U(t);t.a<t.c.c.length;)ni(n,c(U(t),415).a);return pn(n.b!=0),wa(n,n.c.b),n}function xqt(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 J(e.n);a.a<a.c.c.length;)o=c(U(a),211),bWt(o,d,i,r),++r}function yqt(e){var t,n,i;for(e.b.a.$b(),e.a=Ce(MU,It,60,e.c.c.a.b.c.length,0,1),t=0,i=new J(e.c.c.a.b);i.a<i.c.c.length;)n=c(U(i),60),n.f=t++}function kqt(e){var t,n,i;for(e.b.a.$b(),e.a=Ce(Ece,It,84,e.c.a.a.b.c.length,0,1),t=0,i=new J(e.c.a.a.b);i.a<i.c.c.length;)n=c(U(i),84),n.i=t++}function Oqt(e){var t,n,i,r,o;for(i=new J(e.b);i.a<i.c.c.length;)for(n=c(U(i),26),t=0,o=new J(n.a);o.a<o.c.c.length;)r=c(U(o),9),r.p=t++}function jqt(e,t,n){var i,r,o,a;for(a=0,i=n/e.a.c.length,o=new J(e.a);o.a<o.c.c.length;)r=c(U(o),175),YD(r,r.s,r.t+a*i),xqt(r,e.d-r.r+t,i),++a}function IZe(e){var t;if(t=CBt(e),!gn(e))throw K(new Qc("position (0) must be less than the number of elements that remained ("+t+")"));return on(e)}function Sqt(e,t){var n;return e.a||(n=Ce(is,io,30,0,15,1),py(e.b.a,new r_e(n)),pPe(n,AVe(je.prototype.Ke,je,[])),e.a=new FFe(n,e.d)),dH(e.a,t)}function RZe(e){switch(e.g){case 1:return Ve(),Zt;case 4:return Ve(),Yt;case 3:return Ve(),sn;case 2:return Ve(),wn;default:return Ve(),$o}}function Tqt(e,t,n){t.k==(Wt(),ar)&&n.k==Er&&(e.d=gne(t,(Ve(),wn)),e.b=gne(t,Yt)),n.k==ar&&t.k==Er&&(e.d=gne(n,(Ve(),Yt)),e.b=gne(n,wn))}function Jne(e,t){var n,i,r;for(r=Po(e,t),i=r.Jc();i.Ob();)if(n=c(i.Pb(),12),$(n,($e(),Wl))!=null||VT(new xh(n.b)))return!0;return!1}function Cqt(e,t,n){n.Tg("Linear segments node placement",1),e.b=c($(t,($e(),O3)),317),tin(e,t),TZt(e,t),JZt(e,t),Nnn(e),e.a=null,e.b=null,n.Ug()}function z2e(e,t){return Dc(t,e.e+e.d+(e.c.c.length==0?0:e.b)),Dl(t,e.f),e.a=p.Math.max(e.a,t.f),e.d+=t.g+(e.c.c.length==0?0:e.b),Ue(e.c,t),!0}function Eqt(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=FQt(r,i)*Fwe(1-e,r-i)*Fwe(e,i),a+=o.a*n,d+=o.b*n;return new He(a,d)}function $Ze(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(),JT(e,i,e.Xi(i,r)),e.Ki(i,r),e.Li();return n!=0}function Mqt(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):dFe(e,e.Cj(),t),n}function Aqt(e,t,n){var i,r,o;return i=c(ae(wc(e.a),t),88),o=(r=i.c,he(r,89)?c(r,29):(At(),sf)),((o.Db&64)!=0?B0(e.b,o):o)==n?iQ(i):pj(i,n),o}function Nqt(e){var t;return e==null?null:new T0((t=Ic(e,!0),t.length>0&&(tn(0,t.length),t.charCodeAt(0)==43)?(tn(1,t.length+1),t.substr(1)):t))}function _qt(e){var t;return e==null?null:new T0((t=Ic(e,!0),t.length>0&&(tn(0,t.length),t.charCodeAt(0)==43)?(tn(1,t.length+1),t.substr(1)):t))}function F2e(e,t,n,i,r,o,a,d){var b,v;i&&(b=i.a[0],b&&F2e(e,t,n,b,r,o,a,d),tie(e,n,i.d,r,o,a,d)&&t.Ec(i),v=i.a[1],v&&F2e(e,t,n,v,r,o,a,d))}function H7(e,t){var n,i,r,o;for(o=e.gc(),t.length<o&&(t=Zz(new Array(o),t)),r=t,i=e.Jc(),n=0;n<o;++n)br(r,n,i.Pb());return t.length>o&&br(t,o,null),t}function Dqt(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(ki(t,e.Xb(n)))return n;return-1}function Wne(e,t){var n,i,r;return n=t.jd(),r=t.kd(),i=e.xc(n),!(!(Se(r)===Se(i)||r!=null&&ki(r,i))||i==null&&!e._b(n))}function Lqt(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),rl(n,i,r)}function Pqt(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 Iqt(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 SG(){SG=W,$ue=new AF(th,0),m8e=new AF(vlt,1),b8e=new AF("EDGE_LENGTH_BY_POSITION",2),p8e=new AF("CROSSING_MINIMIZATION_BY_POSITION",3)}function Vne(e,t){var n,i;if(n=c(Iy(e.n,t),19),n)return n;if(i=c(Iy(e.p,t),127),i)return i;throw K(new Kh("Referenced shape does not exist: "+t))}function BZe(e,t){if(e.g==-1)throw K(new El);e.Vj();try{e.d.fd(e.g,t),e.f=e.d.j}catch(n){throw n=kr(n),he(n,99)?K(new fa):K(n)}}function q2e(e,t){var n,i;if(he(t,257)){i=c(t,257);try{return n=e.Cd(i),n==0}catch(r){if(r=kr(r),he(r,214))return!1;throw K(r)}}return!1}function Rqt(e,t){if(e.c==t)return e.d;if(e.d==t)return e.c;throw K(new Ht("Node 'one' must be either source or target of edge 'edge'."))}function $qt(e,t){if(e.c.i==t)return e.d.i;if(e.d.i==t)return e.c.i;throw K(new Ht("Node "+t+" is neither source nor target of edge "+e))}function Bqt(e,t,n){n.Tg("Self-Loop ordering",1),hr(Jc(bi(bi(jo(new Tt(null,new Ct(t.b,16)),new qO),new UX),new a8),new PR),new Q_e(e)),n.Ug()}function Xne(e,t,n,i,r,o){var a,d,b,v,k;for(a=qHt(t,n,o),d=n==(Ve(),Yt)||n==Zt?-1:1,v=e[n.g],k=0;k<v.length;k++)b=v[k],b>0&&(b+=r),v[k]=a,a+=d*(b+i)}function zqt(e){var t;for(t=0;t<e.a.c.length;t++)if(Oi(c(Xe(e.a,t),9),(We(),$le))&&it(nt($(c(Xe(e.a,t),9),$le))))return!0;return!1}function zZe(e){var t,n,i;for(i=e.f,e.n=Ce(is,io,30,i,15,1),e.d=Ce(is,io,30,i,15,1),t=0;t<i;t++)n=c(Xe(e.c.b,t),26),e.n[t]=dZe(e,n),e.d[t]=vit(e,n)}function FZe(e,t,n,i){var r;this.c=e,this.d=t,r=new _i,sr(r,n,r.c.b,r.c),this.a=r,this.b=c($(i,(Wo(),Qw)),87),this.e=ge(be($(i,U9e))),Jot(this)}function Fqt(e,t,n){var i,r;return e.a?r=Ci(n.j,t.j):r=Ci(t.j,n.j),r==0?(i=pc(c(Ae(t,(Gd(),JP)),15).a,c(Ae(n,JP),15).a),i):r}function Kne(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 qZe(e,t){var n,i,r,o,a;for(a=ol(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 B5),Dn(o,i));o&&_ot(e,o)}function HZe(e){var t,n,i;if(!e)return null;if(e.dc())return"";for(i=new kg,n=e.Jc();n.Ob();)t=n.Pb(),Zs(i,qn(t)),i.a+=" ";return jZ(i,i.a.length-1)}function GZe(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 hw(e){var t,n,i;for(n=new J(e.a.b);n.a<n.c.c.length;)t=c(U(n),60),t.c.$b();k1(e.d)?i=e.a.c:i=e.a.d,Vc(i,new p_e(e)),e.c.bf(e),Bit(e)}function QZe(e){var t,n,i,r;for(n=new J(e.e.c);n.a<n.c.c.length;){for(t=c(U(n),292),r=new J(t.b);r.a<r.c.c.length;)i=c(U(r),448),vye(i);Snt(t)}}function UZe(e){var t,n,i;for(i=pi,n=new J(e.a);n.a<n.c.c.length;)t=c(U(n),9),Oi(t,($e(),Ri))&&(i=p.Math.min(i,c($(t,Ri),15).a));return i}function TG(e){var t,n,i,r,o;for(i=0,o=0,r=0,n=new J(e.a);n.a<n.c.c.length;)t=c(U(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 JZe(e,t){var n;return n=ee(Z(is,1),io,30,15,[I2e(e,(Yf(),Ko),t),I2e(e,el,t),I2e(e,Yo,t)]),e.f&&(n[0]=p.Math.max(n[0],n[2]),n[2]=n[0]),n}function WZe(e){var t;Oi(e,(We(),Fw))&&(t=c($(e,Fw),24),t.Gc((Cv(),Df))?(t.Kc(Df),t.Ec(Lf)):t.Gc(Lf)&&(t.Kc(Lf),t.Ec(Df)))}function VZe(e){var t;Oi(e,(We(),Fw))&&(t=c($(e,Fw),24),t.Gc((Cv(),If))?(t.Kc(If),t.Ec(Za)):t.Gc(Za)&&(t.Kc(Za),t.Ec(If)))}function Yne(e,t,n,i){var r,o,a,d;return e.a==null&&zQt(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 qqt(e){var t;for(t=0;t<e.a.c.length;t++)if(Oi(c(Xe(e.a,t),9),(We(),Ble))&&!it(nt($(c(Xe(e.a,t),9),Ble))))return!1;return!0}function Hqt(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(Xe(o.a,r),9),!(a.k==(Wt(),Lh)||EHt(a)))return!1;return!0}function Gqt(e){var t,n;if(!e.b)for(e.b=Zq(c(e.f,19).jh().i),n=new ln(c(e.f,19).jh());n.e!=n.i.gc();)t=c(fn(n),158),Ue(e.b,new TY(t));return e.b}function Qqt(e){var t,n;if(!e.e)for(e.e=Zq(ame(c(e.f,19)).i),n=new ln(ame(c(e.f,19)));n.e!=n.i.gc();)t=c(fn(n),127),Ue(e.e,new OLe(t));return e.e}function XZe(e){var t,n;if(!e.a)for(e.a=Zq(Fq(c(e.f,19)).i),n=new ln(Fq(c(e.f,19)));n.e!=n.i.gc();)t=c(fn(n),19),Ue(e.a,new eq(e,t));return e.a}function dw(e){var t;if(!e.C&&(e.D!=null||e.B!=null))if(t=jtn(e),t)e.fl(t);else try{e.fl(null)}catch(n){if(n=kr(n),!he(n,63))throw K(n)}return e.C}function Uqt(e){switch(e.q.g){case 5:jet(e,(Ve(),Yt)),jet(e,wn);break;case 4:Hst(e,(Ve(),Yt)),Hst(e,wn);break;default:Itt(e,(Ve(),Yt)),Itt(e,wn)}}function Jqt(e){switch(e.q.g){case 5:Tet(e,(Ve(),sn)),Tet(e,Zt);break;case 4:Gst(e,(Ve(),sn)),Gst(e,Zt);break;default:Rtt(e,(Ve(),sn)),Rtt(e,Zt)}}function Gy(e,t){var n,i,r;for(r=new us,i=e.Jc();i.Ob();)n=c(i.Pb(),37),Kj(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 CG(e,t){var n,i,r;for(r=new us,i=e.Jc();i.Ob();)n=c(i.Pb(),37),Kj(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 KZe(e,t){var n,i;if(t.length==0)return 0;for(n=Eee(e.a,t[0],(Ve(),Zt)),n+=Eee(e.a,t[t.length-1],sn),i=0;i<t.length;i++)n+=MQt(e,i,t);return n}function YZe(){iC(),this.c=new Qe,this.i=new Qe,this.e=new Ld,this.f=new Ld,this.g=new Ld,this.j=new Qe,this.a=new Qe,this.b=new xn,this.k=new xn}function Zne(e,t){var n,i;return e.Db>>16==6?e.Cb.Qh(e,5,uh,t):(i=Hs(c(Lt((n=c(Kt(e,16),29),n||e.fi()),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function Wqt(e){cj();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 Vqt(e){var t;return t=(iXe(),Zft),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 ZZe(e){var t,n,i;e.b==e.c&&(i=e.a.length,n=jwe(p.Math.max(8,i))<<1,e.b!=0?(t=mf(e.a,n),uXe(e,t,i),e.a=t,e.b=0):B2(e.a,n),e.c=i)}function Xqt(e,t){var n;return n=e.b,n.nf((Pn(),fu))?n.$f()==(Ve(),Zt)?-n.Kf().a-ge(be(n.mf(fu))):t+ge(be(n.mf(fu))):n.$f()==(Ve(),Zt)?-n.Kf().a:t}function eL(e){var t;return e.b.c.length!=0&&c(Xe(e.b,0),70).a?c(Xe(e.b,0),70).a:(t=Iee(e),t??""+(e.c?Do(e.c.a,e,0):-1))}function EG(e){var t;return e.f.c.length!=0&&c(Xe(e.f,0),70).a?c(Xe(e.f,0),70).a:(t=Iee(e),t??""+(e.i?Do(e.i.j,e,0):-1))}function Kqt(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 Ls(ze(n),i);return null}function H2e(e){var t,n,i,r,o;for(o=0,r=Gr,i=0,n=new J(e.a);n.a<n.c.c.length;)t=c(U(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=Zq(c(e.f,127).jh().i),n=new ln(c(e.f,127).jh());n.e!=n.i.gc();)t=c(fn(n),158),Ue(e.b,new TY(t));return e.b}function Zqt(e,t){var n,i,r;if(t.dc())return J6(),J6(),xI;for(n=new pFe(e,t.gc()),r=new ln(e);r.e!=r.i.gc();)i=fn(r),t.Gc(i)&&Dn(n,i);return n}function G2e(e,t,n,i){return t==0?i?(!e.o&&(e.o=new _l((uc(),s1),n0,e,0)),e.o):(!e.o&&(e.o=new _l((uc(),s1),n0,e,0)),bD(e.o)):xG(e,t,n,i)}function eie(e){var t,n;if(e.rb)for(t=0,n=e.rb.i;t<n;++t)H_(ae(e.rb,t));if(e.vb)for(t=0,n=e.vb.i;t<n;++t)H_(ae(e.vb,t));e7((Pl(),ms),e),e.Bb|=1}function Hi(e,t,n,i,r,o,a,d,b,v,k,T,A,L){return qtt(e,t,i,null,r,o,a,d,b,v,A,!0,L),r2e(e,k),he(e.Cb,89)&&Tv(ru(c(e.Cb,89)),2),n&&twe(e,n),i2e(e,T),e}function eHt(e){var t,n;if(e==null)return null;n=0;try{n=Qu(e,cs,pi)&Dr}catch(i){if(i=kr(i),he(i,133))t=yH(e),n=t[0];else throw K(i)}return PD(n)}function tHt(e){var t,n;if(e==null)return null;n=0;try{n=Qu(e,cs,pi)&Dr}catch(i){if(i=kr(i),he(i,133))t=yH(e),n=t[0];else throw K(i)}return PD(n)}function nHt(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&au,e.m=i&au,e.h=r&H1,!0)}function tie(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 iHt(e,t){Sj();var n;if(n=e.j.g-t.j.g,n!=0)return 0;switch(e.j.g){case 2:return kne(t,T6e)-kne(e,T6e);case 4:return kne(e,S6e)-kne(t,S6e)}return 0}function rHt(e){switch(e.g){case 0:return ole;case 1:return cle;case 2:return lle;case 3:return ule;case 4:return uJ;case 5:return ale;default:return null}}function fo(e,t,n){var i,r;return i=(r=new xY,bm(r,t),Xc(r,n),Dn((!e.c&&(e.c=new Le(Jw,e,12,10)),e.c),r),r),Lg(i,0),dv(i,1),Bg(i,!0),$g(i,!0),i}function nk(e,t){var n,i;if(t>=e.i)throw K(new kZ(t,e.i));return++e.j,n=e.g[t],i=e.i-t-1,i>0&&yc(e.g,t+1,e.g,t,i),br(e.g,--e.i,null),e.Oi(t,n),e.Li(),n}function eet(e,t){var n,i;return e.Db>>16==17?e.Cb.Qh(e,21,tf,t):(i=Hs(c(Lt((n=c(Kt(e,16),29),n||e.fi()),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function sHt(e){var t,n,i,r;for(Mt(),Rr(e.c,e.a),r=new J(e.c);r.a<r.c.c.length;)for(i=U(r),n=new J(e.b);n.a<n.c.c.length;)t=c(U(n),690),t._e(i)}function oHt(e){var t,n,i,r;for(Mt(),Rr(e.c,e.a),r=new J(e.c);r.a<r.c.c.length;)for(i=U(r),n=new J(e.b);n.a<n.c.c.length;)t=c(U(n),378),t._e(i)}function cHt(e){var t,n,i,r,o;for(r=pi,o=null,i=new J(e.d);i.a<i.c.c.length;)n=c(U(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 Q2e(){Q2e=W,Ndt=new xt(p3e,(zt(),!1)),Edt=new xt(m3e,100),OOe=(v7(),Tce),Mdt=new xt(b3e,OOe),Adt=new xt(w3e,dd),_dt=new xt(v3e,ze(pi))}function tet(e,t){var n,i,r;for(i=new Gt(Xt(sd(e).a.Jc(),new z));gn(i);)return n=c(on(i),17),r=c(t.Kb(n),9),new tT($n(r.n.b+r.o.b/2));return pT(),pT(),Koe}function net(e,t,n){var i,r,o,a,d,b,v,k;for(v=0,r=e.a[t],o=0,a=r.length;o<a;++o)for(i=r[o],k=L7(i,n),b=k.Jc();b.Ob();)d=c(b.Pb(),12),ci(e.f,d,ze(v++))}function iet(e,t,n){var i,r,o,a;if(n)for(r=n.a.length,i=new Yp(r),a=(i.b-i.a)*i.c<0?(j0(),yp):new C0(i);a.Ob();)o=c(a.Pb(),15),St(e,t,ok(fv(n,o.a)))}function ret(e,t,n){var i,r,o,a;if(n)for(r=n.a.length,i=new Yp(r),a=(i.b-i.a)*i.c<0?(j0(),yp):new C0(i);a.Ob();)o=c(a.Pb(),15),St(e,t,ok(fv(n,o.a)))}function U2e(e){H0();var t;return t=c(H7(N4(e.k),Ce(Rs,ac,64,2,0,1)),128),hj(t,0,t.length,null),t[0]==(Ve(),Yt)&&t[1]==Zt&&(br(t,0,Zt),br(t,1,Yt)),t}function set(e,t,n){var i,r,o;return r=BVt(e,t,n),o=Bxe(e,r),vte(e.b),Zee(e,t,n),Mt(),Rr(r,new MDe(e)),i=Bxe(e,r),vte(e.b),Zee(e,n,t),new Ls(ze(o),ze(i))}function oet(){oet=W,jmt=Kn(new yr,(ts(),Vs),(os(),eE)),UJ=new Gi("linearSegments.inputPrio",ze(0)),JJ=new Gi("linearSegments.outputPrio",ze(0))}function lHt(e){var t,n,i,r;for(n=0,t=0,r=new ln(e);r.e!=r.i.gc();)i=c(fn(r),19),n=p.Math.max(i.g+i.i,n),t=p.Math.max(i.f+i.j,t);return new He(n,t)}function uHt(e,t){var n,i,r,o;for(o=0,i=new J(e);i.a<i.c.c.length;)n=c(U(i),19),o+=p.Math.pow(n.g*n.f-t,2);return r=p.Math.sqrt(o/(e.c.length-1)),r}function Gu(){Gu=W,iI=new PF("UNKNOWN",0),n1=new PF("ABOVE",1),hp=new PF("BELOW",2),nI=new PF("INLINE",3),new Gi("org.eclipse.elk.labelSide",iI)}function aHt(e,t){if(he(t,273))return oCt(e,c(t,74));if(he(t,278))return c(t,278);throw K(new Ht(_S+Ch(new Qo(ee(Z(Br,1),It,1,5,[t])))))}function cet(e,t){var n;if(e.Wi()&&t!=null){for(n=0;n<e.i;++n)if(ki(t,e.g[n]))return n}else for(n=0;n<e.i;++n)if(Se(e.g[n])===Se(t))return n;return-1}function fHt(e,t,n){var i,r;return t.c==(Gs(),tl)&&n.c==Vl?-1:t.c==Vl&&n.c==tl?1:(i=QKe(t.a,e.a),r=QKe(n.a,e.a),t.c==tl?r-i:i-r)}function q0(e,t,n){if(n&&(t<0||t>n.a.c.length))throw K(new Ht("index must be >= 0 and <= layer node count"));e.c&&gl(e.c.a,e),e.c=n,n&&Xp(n.a,t,e)}function uet(e,t){this.c=new xn,this.a=e,this.b=t,this.d=c($(e,($e(),O3)),317),Se($(e,(We(),ySe)))===Se((yD(),aJ))?this.e=new PPe:this.e=new LPe}function nie(e,t){var n,i;n=e.dd(t);try{return i=n.Pb(),n.Qb(),i}catch(r){throw r=kr(r),he(r,113)?K(new Qc("Can't remove element "+t)):K(r)}}function hHt(e,t){var n,i,r;if(i=new sF,r=new ywe(i.q.getFullYear()-W0,i.q.getMonth(),i.q.getDate()),n=aZt(e,t,r),n==0||n<t.length)throw K(new Ht(t));return r}function J2e(e,t){var n,i,r;for(Ft(t),O0e(t!=e),r=e.b.c.length,i=t.Jc();i.Ob();)n=i.Pb(),Ue(e.b,Ft(n));return r!=e.b.c.length?(Dwe(e,0),!0):!1}function tL(){tL=W,COe=(Pn(),WE),new Qr(bW,(zt(),!0)),Ldt=Um,Pdt=$3,Idt=fp,Ddt=R3,MOe=VE,Rdt=dx,TOe=(Q2e(),Ndt),jOe=Mdt,SOe=Adt,EOe=_dt,IU=Edt}function dHt(e,t){if(t==e.c)return e.d;if(t==e.d)return e.c;throw K(new Ht("'port' must be either the source port or target port of the edge."))}function gHt(e,t){var n,i;for(e.b=0,e.d=new Jz,i=new J(t.a);i.a<i.c.c.length;)n=c(U(i),9),c($(n,($e(),lE)),15).a==-1&&(lot(e,n),e.d.a.c.length=0)}function aet(e,t){var n,i,r,o,a;for(i=0,r=0,n=0,a=new J(e);a.a<a.c.c.length;)o=c(U(a),189),i=p.Math.max(i,o.e),r+=o.b+(n>0?t:0),++n;return new He(i,r)}function pHt(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 W2e(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,W2e(e,a,n,d)}function fet(e){var t;return t=new xn,Oi(e,($e(),jle))?c($(e,jle),93):(hr(bi(new Tt(null,new Ct(e.j,16)),new bA),new W_e(t)),_e(e,jle,t),t)}function mHt(e,t,n){var i;n.Tg("AbsolutPlacer",1),(!t.a&&(t.a=new Le(Nn,t,10,11)),t.a).i!=0&&(i=c(Ae(t,(Gd(),qE)),19),Dc(i,i.i-snt(e,i)),rtt(e,i)),n.Ug()}function G7(e,t){var n,i;return i=null,e.nf((Pn(),Vk))&&(n=c(e.mf(Vk),105),n.nf(t)&&(i=n.mf(t))),i==null&&e.Rf()&&(i=e.Rf().mf(t)),i==null&&(i=Ke(t)),i}function V2e(e,t){var n,i;return e.Db>>16==6?e.Cb.Qh(e,6,$i,t):(i=Hs(c(Lt((n=c(Kt(e,16),29),n||(uc(),AW)),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function X2e(e,t){var n,i;return e.Db>>16==7?e.Cb.Qh(e,1,hI,t):(i=Hs(c(Lt((n=c(Kt(e,16),29),n||(uc(),nCe)),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function K2e(e,t){var n,i;return e.Db>>16==9?e.Cb.Qh(e,9,Nn,t):(i=Hs(c(Lt((n=c(Kt(e,16),29),n||(uc(),rCe)),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function het(e,t){var n,i;return e.Db>>16==5?e.Cb.Qh(e,9,IW,t):(i=Hs(c(Lt((n=c(Kt(e,16),29),n||(At(),r0)),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function det(e,t){var n,i;return e.Db>>16==7?e.Cb.Qh(e,6,uh,t):(i=Hs(c(Lt((n=c(Kt(e,16),29),n||(At(),o0)),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function Y2e(e,t){var n,i;return e.Db>>16==3?e.Cb.Qh(e,0,gI,t):(i=Hs(c(Lt((n=c(Kt(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,12,Nn,t):(i=Hs(c(Lt((n=c(Kt(e,16),29),n||(uc(),tCe)),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function bHt(e,t,n){var i,r,o;for(n<0&&(n=0),o=e.i,r=n;r<o;r++)if(i=ae(e,r),t==null){if(i==null)return r}else if(Se(t)===Se(i)||ki(t,i))return r;return-1}function wHt(e,t){var n,i;return n=t.ni(e.a),n?(i=qn(Zf((!n.b&&(n.b=new vu((At(),$s),ec,n)),n.b),bU)),jt(sP,i)?e7(e,Fu(t.ok())):i):null}function zj(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 zj(e,i);if(i==e)return!0}}return!1}function vHt(e){switch(iq(),e.q.g){case 5:rnt(e,(Ve(),Yt)),rnt(e,wn);break;case 4:fit(e,(Ve(),Yt)),fit(e,wn);break;default:xot(e,(Ve(),Yt)),xot(e,wn)}}function xHt(e){switch(iq(),e.q.g){case 5:jnt(e,(Ve(),sn)),jnt(e,Zt);break;case 4:bZe(e,(Ve(),sn)),bZe(e,Zt);break;default:yot(e,(Ve(),sn)),yot(e,Zt)}}function yHt(e){var t,n;t=c($(e,(Tf(),ydt)),15),t?(n=t.a,n==0?_e(e,(L0(),PU),new yne):_e(e,(L0(),PU),new cH(n))):_e(e,(L0(),PU),new cH(1))}function kHt(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 OHt(e,t){switch(e.g){case 0:return t==(Su(),W1)?tJ:nJ;case 1:return t==(Su(),W1)?tJ:mP;case 2:return t==(Su(),W1)?mP:nJ;default:return mP}}function nL(e,t){var n,i,r;for(gl(e.a,t),e.e-=t.r+(e.a.c.length==0?0:e.c),r=Use,i=new J(e.a);i.a<i.c.c.length;)n=c(U(i),175),r=p.Math.max(r,n.d);e.b=r}function jHt(e,t,n){var i,r,o;if(o=c(Jt(e.r,t),301),r=null,o)switch(o.g){case 2:i=be(Jt(e.i,t)),r=(Ft(n),n+(Ft(i),i));break;default:r=n}else r=n;return r}function SHt(e,t,n){var i,r,o;if(o=c(Jt(e.r,t),301),r=null,o)switch(o.g){case 2:i=be(Jt(e.j,t)),r=(Ft(n),n+(Ft(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(B0(e,t),146),e.r!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,9,8,t,e.r))),e.r}function iie(e,t,n){var i;return i=ee(Z(is,1),io,30,15,[Tve(e,(Yf(),Ko),t,n),Tve(e,el,t,n),Tve(e,Yo,t,n)]),e.f&&(i[0]=p.Math.max(i[0],i[2]),i[2]=i[0]),i}function THt(e,t){var n,i,r;if(r=JFt(e,t),r.c.length!=0)for(Rr(r,new AX),n=r.c.length,i=0;i<n;i++)Qj(e,(pt(i,r.c.length),c(r.c[i],295)),LXt(e,r,i))}function Q7(e,t,n){var i,r;i=t*n,he(e.g,157)?(r=z4(e),r.f.d?r.f.a||(e.d.a+=i+Ah):(e.d.d-=i+Ah,e.d.a+=i+Ah)):he(e.g,9)&&(e.d.d-=i,e.d.a+=2*i)}function CHt(e){var t,n,i,r;for(r=c(Ti(e.a,(Ov(),iJ)),16).Jc();r.Ob();)for(i=c(r.Pb(),108),n=N4(i.k).Jc();n.Ob();)t=c(n.Pb(),64),ej(e,i,t,(ow(),ip),1)}function EHt(e){var t,n;if(e.k==(Wt(),Er)){for(n=new Gt(Xt(sd(e).a.Jc(),new z));gn(n);)if(t=c(on(n),17),!vs(t)&&e.c==cve(t,e).c)return!0}return!1}function MHt(e){var t,n;if(e.k==(Wt(),Er)){for(n=new Gt(Xt(sd(e).a.Jc(),new z));gn(n);)if(t=c(on(n),17),!vs(t)&&t.c.i.c==t.d.i.c)return!0}return!1}function eve(e,t){var n,i;return e.Db>>16==11?e.Cb.Qh(e,10,Nn,t):(i=Hs(c(Lt((n=c(Kt(e,16),29),n||(uc(),iCe)),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function get(e,t){var n,i;return e.Db>>16==10?e.Cb.Qh(e,11,tf,t):(i=Hs(c(Lt((n=c(Kt(e,16),29),n||(At(),s0)),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function pet(e,t){var n,i;return e.Db>>16==10?e.Cb.Qh(e,12,nf,t):(i=Hs(c(Lt((n=c(Kt(e,16),29),n||(At(),Ox)),e.Db>>16),20)),e.Cb.Qh(e,i.n,i.f,t))}function met(e,t){var n,i,r,o,a;if(t)for(r=t.a.length,n=new Yp(r),a=(n.b-n.a)*n.c<0?(j0(),yp):new C0(n);a.Ob();)o=c(a.Pb(),15),i=uj(t,o.a),i&&sit(e,i)}function AHt(){cge();var e,t;for(sin((E0(),Ut)),Vnn(Ut),eie(Ut),wCe=(At(),Hh),t=new J(CCe);t.a<t.c.c.length;)e=c(U(t),251),nS(e,Hh,null);return!0}function tve(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 bet(e,t,n){var i,r,o,a,d;for(r=e[n.g],d=new J(t.d);d.a<d.c.c.length;)a=c(U(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 NHt(e,t){var n,i,r,o,a;for(i=0,r=0,n=0,a=new J(t.d);a.a<a.c.c.length;)o=c(U(a),320),TG(o),i=p.Math.max(i,o.b),r+=o.d+(n>0?e.b:0),++n;t.b=i,t.e=r}function wet(e){var t,n,i;if(i=e.b,zRe(e.i,i.length)){for(n=i.length*2,e.b=Ce(ece,AL,309,n,0,1),e.c=Ce(ece,AL,309,n,0,1),e.f=n-1,e.i=0,t=e.a;t;t=t.c)uL(e,t,t);++e.g}}function U7(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),Rt(e.c,t),!0}function _Ht(e,t,n){var i;i=t.c.i,i.k==(Wt(),Er)?(_e(e,($e(),sh),c($(i,sh),12)),_e(e,Ka,c($(i,Ka),12))):(_e(e,($e(),sh),t.c),_e(e,Ka,n.d))}function DHt(e,t,n){return n.Tg(Blt,1),a7(e.b),$u(e.b,(ek(),WJ),WJ),$u(e.b,ME,ME),$u(e.b,AE,AE),$u(e.b,NE,NE),e.a=dC(e.b,t),xGt(e,t,n.dh(1)),n.Ug(),t}function Fj(e,t,n){Vj();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),O1(e,p.Math.min(d,b)),e}function LHt(){sQ();var e,t;try{if(t=c(fve((O0(),rf),NS),2092),t)return t}catch(n){if(n=kr(n),he(n,102))e=n,Vpe((Fn(),e));else throw K(n)}return new Bp}function PHt(){sQ();var e,t;try{if(t=c(fve((O0(),rf),Wa),2019),t)return t}catch(n){if(n=kr(n),he(n,102))e=n,Vpe((Fn(),e));else throw K(n)}return new z5}function IHt(){gWe();var e,t;try{if(t=c(fve((O0(),rf),_m),2101),t)return t}catch(n){if(n=kr(n),he(n,102))e=n,Vpe((Fn(),e));else throw K(n)}return new Dd}function RHt(e,t,n){var i,r;return r=e.e,e.e=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new Ur(e,1,4,r,t),n?n.lj(i):n=i),r!=t&&(t?n=nS(e,UG(e,t),n):n=nS(e,e.a,n)),n}function vet(){sF.call(this),this.e=-1,this.a=!1,this.p=cs,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=cs}function $Ht(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 BHt(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 zHt(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 nve(){nve=W,Bdt=Uc(Kn(Kn(Kn(new yr,(ts(),jc),(os(),f6e)),jc,h6e),Vs,d6e),Vs,e6e),Fdt=Kn(Kn(new yr,jc,JOe),jc,t6e),zdt=Uc(new yr,Vs,i6e)}function FHt(e){var t,n,i,r,o;for(t=c($(e,($e(),oE)),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?Kit(n):Yit(n);_e(e,oE,null)}function qHt(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 xet(e,t){var n,i;for(i=new J(t);i.a<i.c.c.length;)n=c(U(i),9),e.c[n.c.p][n.p].a=hee(e.i),e.c[n.c.p][n.p].d=ge(e.c[n.c.p][n.p].a),e.c[n.c.p][n.p].b=1}function HHt(e,t){var n,i,r,o;for(o=0,i=new J(e);i.a<i.c.c.length;)n=c(U(i),168),o+=p.Math.pow(Nl(n)*yu(n)-t,2);return r=p.Math.sqrt(o/(e.c.length-1)),r}function GHt(e,t,n){var i,r;for(n.Tg("Interactive node placement",1),e.a=c($(t,($e(),O3)),317),r=new J(t.b);r.a<r.c.c.length;)i=c(U(r),26),xXt(e,i);n.Ug()}function QHt(e){var t,n,i,r,o;if(i=0,r=s3,e.b)for(t=0;t<360;t++)n=t*.017453292519943295,nye(e,e.d,0,0,Em,n),o=e.b.Cg(e.d),o<r&&(i=n,r=o);nye(e,e.d,0,0,Em,i)}function UHt(e,t){var n,i,r,o;for(o=new xn,t.e=null,t.f=null,i=new J(t.i);i.a<i.c.c.length;)n=c(U(i),68),r=c(Jt(e.g,n.a),49),n.a=Aq(n.b),ci(o,n.a,r);e.g=o}function JHt(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 J(e.d);b.a<b.c.c.length;)d=c(U(b),320),i=e.b-d.b+n,qYe(d,d.e+a*o,d.f),jqt(d,o,i),++a}function yet(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 WHt(e,t){var n,i,r;for(r=t.c.length,n=QUt(e,r==0?"":(pt(0,t.c.length),qn(t.c[0]))),i=1;i<r&&n;++i)n=c(n,52).Wh((pt(i,t.c.length),qn(t.c[i])));return n}function ket(e,t,n,i){var r,o,a;return o=hKt(e,t,n,i),a=Jxe(e,o),die(e,t,n,i),vte(e.b),Mt(),Rr(o,new ADe(e)),r=Jxe(e,o),die(e,n,t,i),vte(e.b),new Ls(ze(a),ze(r))}function VHt(e,t){var n;t.Tg("Delaunay triangulation",1),n=new Qe,Vc(e.i,new hLe(n)),it(nt($(e,(vj(),XC)))),e.e?Os(e.e,Rot(n)):e.e=Rot(n),t.Ug()}function MG(){MG=W,fae=new _F("P1_NODE_Y_PLACEMENT",0),hae=new _F("P2_NODE_RELATIVE_PLACEMENT",1),dae=new _F("P3_NODE_ABSOLUTE_PLACEMENT",2),gae=new _F(zlt,3)}function XHt(e,t,n){var i,r;for(B_(e,e.j+t,e.k+n),r=new ln((!e.a&&(e.a=new Nr(ea,e,5)),e.a));r.e!=r.i.gc();)i=c(fn(r),373),CZ(i,i.a+t,i.b+n);$_(e,e.b+t,e.c+n)}function ive(e,t,n,i){switch(n){case 7:return!e.e&&(e.e=new Et($i,e,7,4)),Kc(e.e,t,i);case 8:return!e.d&&(e.d=new Et($i,e,8,5)),Kc(e.d,t,i)}return aie(e,t,n,i)}function rve(e,t,n,i){switch(n){case 7:return!e.e&&(e.e=new Et($i,e,7,4)),Ns(e.e,t,i);case 8:return!e.d&&(e.d=new Et($i,e,8,5)),Ns(e.d,t,i)}return Jte(e,t,n,i)}function Oet(e,t,n){var i,r,o,a,d;if(n)for(o=n.a.length,i=new Yp(o),d=(i.b-i.a)*i.c<0?(j0(),yp):new C0(i);d.Ob();)a=c(d.Pb(),15),r=uj(n,a.a),r&&int(e,r,t)}function iL(e,t,n){var i,r,o,a,d;return e.Zj(),o=t==null?0:zi(t),e.f>0&&(a=(o&pi)%e.d.length,r=sxe(e,a,o,t),r)?(d=r.ld(n),d):(i=e.ak(o,t,n),e.c.Ec(i),null)}function sve(e,t){var n,i,r,o;switch(Rg(e,t).Il()){case 3:case 2:{for(n=Ky(t),r=0,o=n.i;r<o;++r)if(i=c(ae(n,r),38),Vb(uo(e,i))==5)return i;break}}return null}function KHt(e){var t,n,i,r,o;if(zRe(e.f,e.b.length))for(i=Ce(Qft,AL,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 jet(e,t){var n,i,r,o;for(o=0,r=c(c(Ti(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 Tet(e,t){var n,i,r,o;for(n=0,o=c(c(Ti(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 J(e.p);n.a<n.c.c.length;)t=c(U(n),9),t.k==(Wt(),ar)&&(i=t.o.b,e.i=p.Math.min(e.i,i),e.g=p.Math.max(e.g,i))}function Cet(e,t,n){var i,r,o;for(o=new J(t);o.a<o.c.c.length;)i=c(U(o),9),e.c[i.c.p][i.p].e=!1;for(r=new J(t);r.a<r.c.c.length;)i=c(U(r),9),Nye(e,i,n)}function ZHt(e){var t,n;return n=c($(e,($e(),Bc)),24),t=UF(zmt),n.Gc((Qs(),v3))&&Hu(t,Hmt),n.Gc(sE)&&Hu(t,Gmt),n.Gc(WS)&&Hu(t,Fmt),n.Gc(VS)&&Hu(t,qmt),t}function ove(e){if(e<0)throw K(new Ht("The input must be positive"));return e<MTe.length?cm(MTe[e]):p.Math.sqrt(Em*e)*(IBt(e,e)/Fwe(2.718281828459045,e))}function qj(e,t){var n;if(e.Wi()&&t!=null){for(n=0;n<e.i;++n)if(ki(t,e.g[n]))return!0}else for(n=0;n<e.i;++n)if(Se(e.g[n])===Se(t))return!0;return!1}function eGt(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(ki(t,c(e.a.Pb(),45).kd()))return!0;return!1}function tGt(e,t){var n,i,r;return t===e?!0:he(t,675)?(r=c(t,2025),eZe((i=e.g,i||(e.g=new e_(e))),(n=r.g,n||(r.g=new e_(r))))):!1}function nGt(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(jt(e[i].d,t)||jt(e[i].d,n)){e.length>=i+1&&e.splice(0,i+1);break}return e}function rL(e,t){var n;return Oo(e)&&Oo(t)&&(n=e/t,DL<n&&n<jm)?n<0?p.Math.ceil(n):p.Math.floor(n):P0(Sye(Oo(e)?Ha(e):e,Oo(t)?Ha(t):t,!1))}function cve(e,t){if(t==e.c.i)return e.d.i;if(t==e.d.i)return e.c.i;throw K(new Ht("'node' must either be the source node or target node of the edge."))}function iGt(e){var t,n,i,r;if(r=c($(e,($e(),rje)),37),r){for(i=new us,t=Jr(e.c.i);t!=r;)n=t.e,t=Jr(n),W2(ji(ji(i,n.n),t.c),t.d.b,t.d.d);return i}return s1t}function rGt(e){var t;t=c($(e,($e(),zw)),339),hr(jo(new Tt(null,new Ct(t.d,16)),new JX),new U_e(e)),hr(bi(new Tt(null,new Ct(t.d,16)),new WX),new J_e(e))}function rie(e,t){var n,i,r,o;for(r=t?Fi(e):vr(e),i=new Gt(Xt(r.a.Jc(),new z));gn(i);)if(n=c(on(i),17),o=cve(n,e),o.k==(Wt(),Er)&&o.c!=e.c)return o;return null}function sie(e,t,n){var i,r;i=Fy(t.j,n.s,n.c)+Fy(n.e,t.s,t.c),r=Fy(n.j,t.s,t.c)+Fy(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 Eet(e,t){var n,i;if(i=!1,Yr(t)&&(i=!0,P4(e,new iv(qn(t)))),i||he(t,245)&&(i=!0,P4(e,(n=UZ(c(t,245)),new k6(n)))),!i)throw K(new CY(oke))}function sGt(e,t,n,i){var r,o,a;return r=new N1(e.e,1,10,(a=t.c,he(a,89)?c(a,29):(At(),sf)),(o=n.c,he(o,89)?c(o,29):(At(),sf)),zg(e,t),!1),i?i.lj(r):i=r,i}function lve(e){var t,n;switch(c($(Jr(e),(We(),dSe)),425).g){case 0:return t=e.n,n=e.o,new He(t.a+n.a/2,t.b+n.b/2);case 1:return new Es(e.n);default:return null}}function sL(){sL=W,fJ=new DT(th,0),H6e=new DT("LEFTUP",1),Q6e=new DT("RIGHTUP",2),q6e=new DT("LEFTDOWN",3),G6e=new DT("RIGHTDOWN",4),fle=new DT("BALANCED",5)}function oGt(e,t,n){var i,r,o;if(i=Ci(e.a[t.p],e.a[n.p]),i==0){if(r=c($(t,($e(),Pk)),16),o=c($(n,Pk),16),r.Gc(n))return-1;if(o.Gc(t))return 1}return i}function cGt(e){switch(e.g){case 1:return new P$;case 2:return new M8;case 3:return new R5;case 0:return null;default:throw K(new Ht(Zse+(e.f!=null?e.f:""+e.g)))}}function uve(e,t,n){switch(t){case 1:!e.n&&(e.n=new Le(Bo,e,1,7)),Mn(e.n),!e.n&&(e.n=new Le(Bo,e,1,7)),dr(e.n,c(n,18));return;case 2:bj(e,qn(n));return}Mwe(e,t,n)}function ave(e,t,n){switch(t){case 3:um(e,ge(be(n)));return;case 4:am(e,ge(be(n)));return;case 5:Dc(e,ge(be(n)));return;case 6:Dl(e,ge(be(n)));return}uve(e,t,n)}function AG(e,t,n){var i,r,o;o=(i=new xY,i),r=Th(o,t,null),r&&r.mj(),Xc(o,n),Dn((!e.c&&(e.c=new Le(Jw,e,12,10)),e.c),o),Lg(o,0),dv(o,1),Bg(o,!0),$g(o,!0)}function fve(e,t){var n,i,r;return n=MT(e.i,t),he(n,244)?(r=c(n,244),r.wi()==null,r.ti()):he(n,496)?(i=c(n,2016),r=i.b,r):null}function lGt(e,t,n,i){var r,o;return $n(t),$n(n),o=c(KT(e.d,t),15),eVe(!!o,"Row %s not in %s",t,e.e),r=c(KT(e.b,n),15),eVe(!!r,"Column %s not in %s",n,e.c),ZXe(e,o.a,r.a,i)}function uGt(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{l7(i)}catch(d){if(d=kr(d),he(d,102))t=d,n?Wet(n,t):n=t;else throw K(d)}}n&&B9t(n)}function Met(e,t,n,i,r,o,a){var d,b,v,k,T;if(k=r[o],v=o==a-1,d=v?i:0,T=GZe(d,k),i!=10&&ee(Z(e,a-o),t[o],n[o],d,T),!v)for(++o,b=0;b<k;++b)T[b]=Met(e,t,n,i,r,o,a);return T}function aGt(e){var t,n,i,r,o;for(i=new pv(new Hp(e.b).a);i.b;)n=Ry(i),t=c(n.jd(),9),o=c(c(n.kd(),49).a,9),r=c(c(n.kd(),49).b,8),ji(Wf(t.n),ji(Ms(o.n),r))}function fGt(e,t){var n,i,r,o;for(o=new J(t.a);o.a<o.c.c.length;)for(r=c(U(o),9),bT(e.d),i=new Gt(Xt(Fi(r).a.Jc(),new z));gn(i);)n=c(on(i),17),Pnt(e,r,n.d.i)}function J7(e){if(e.g==-1)throw K(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),he(t,99)?K(new fa):K(t)}}function hGt(e){var t,n,i,r;for(r=-1,i=0,n=new J(e);n.a<n.c.c.length;){if(t=c(U(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 dGt(e){var t,n,i,r;for(r=0,t=0,i=new J(e.c);i.a<i.c.c.length;)n=c(U(i),19),Dc(n,e.e+r),Dl(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 Qy(e){var t,n,i;for(n=new J(e.a.b);n.a<n.c.c.length;)t=c(U(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;_xe(e)}function Uy(e){var t,n,i;for(n=new J(e.a.b);n.a<n.c.c.length;)t=c(U(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;XG(e)}function gGt(e){var t,n,i,r,o;for(o=N4(e.k),n=(Ve(),ee(Z(Rs,1),ac,64,0,[$o,Yt,sn,wn,Zt])),i=0,r=n.length;i<r;++i)if(t=n[i],t!=$o&&!o.Gc(t))return t;return null}function oie(e,t){var n,i;return i=c(j4(P1(bi(new Tt(null,new Ct(t.j,16)),new Zx))),12),i&&(n=c(Xe(i.e,0),17),n)?c($(n,($e(),Ri)),15).a:FIt(e.d)}function Aet(e){var t,n;return n=QG(e),lv(n)?null:(t=($n(n),c(IZe(new Gt(Xt(n.a.Jc(),new z))),74)),no(c(ae((!t.b&&(t.b=new Et(yn,t,4,7)),t.b),0),83)))}function NG(e){var t;return e.o||(t=e.sk(),t?e.o=new nme(e,e,null):e.$k()?e.o=new H0e(e,null):Vb(uo((Pl(),ms),e))==1?e.o=new FUe(e):e.o=new GZ(e,null)),e.o}function pGt(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(Fzt(e,o))):r.Wb(Fie(e,c(b,57)))))}function mGt(e,t,n,i){mRe();var r=Xoe;function o(){for(var a=0;a<r.length;a++)r[a]()}if(e)try{Wxt(o)()}catch(a){e(t,a)}else Wxt(o)()}function bGt(e,t){var n,i,r,o;for(r=(o=new hn(e.b).a.vc().Jc(),new xr(o));r.a.Ob();)if(i=(n=c(r.a.Pb(),45),c(n.jd(),34)),Qge(t,c(i,15))<0)return!1;return!0}function wGt(e,t){var n,i,r,o;for(r=(o=new hn(e.b).a.vc().Jc(),new xr(o));r.a.Ob();)if(i=(n=c(r.a.Pb(),45),c(n.jd(),34)),Qge(t,c(i,15))>0)return!1;return!0}function vGt(e){switch(c($(e.b,(We(),oSe)),382).g){case 1:hr(Jc(jo(new Tt(null,new Ct(e.d,16)),new Ip),new vb),new e$);break;case 2:eKt(e);break;case 0:GUt(e)}}function xGt(e,t,n){var i,r,o;for(i=n,!i&&(i=new a4),i.Tg("Layout",e.a.c.length),o=new J(e.a);o.a<o.c.c.length;){if(r=c(U(o),43),i.Zg())return;r.If(t,i.dh(1))}i.Ug()}function yGt(e,t){var n,i;for(gl(e.b,t),i=new J(e.n);i.a<i.c.c.length;)if(n=c(U(i),211),Do(n.c,t,0)!=-1){gl(n.c,t),dGt(n),n.c.c.length==0&&gl(e.n,n);break}jst(e)}function Net(e,t){var n,i,r,o,a;for(a=e.f,r=0,o=0,i=new J(e.a);i.a<i.c.c.length;)n=c(U(i),175),YD(n,e.e,a),vD(n,t),o=p.Math.max(o,n.r),a+=n.d+e.c,r=a;e.d=o,e.b=r}function xm(){xm=W,Cae=new IT("V_TOP",0),JE=new IT("V_CENTER",1),UE=new IT("V_BOTTOM",2),Tae=new IT("H_LEFT",3),GE=new IT("H_CENTER",4),QE=new IT("H_RIGHT",5)}function hve(e){var t;return(e.Db&64)!=0?uG(e):(t=new za(uG(e)),t.a+=" (abstract: ",Og(t,(e.Bb&256)!=0),t.a+=", interface: ",Og(t,(e.Bb&512)!=0),t.a+=")",t.a)}function kGt(e){var t;e.c==null&&(t=Se(e.b)===Se(Dke)?null:e.b,e.d=t==null?wl:oHe(t)?N7t(jGe(t)):Yr(t)?Jye:Up(ju(t)),e.a=e.a+": "+(oHe(t)?SCt(jGe(t)):t+""),e.c="("+e.d+") "+e.a)}function OGt(){function e(){try{return new Map().entries().next().done}catch{return!1}}return typeof Map===hre&&Map.prototype.entries&&e()?Map:Ytn()}function jGt(e,t){var n,i,r,o;for(o=new ss(e.e,0),n=0;o.b<o.d.gc();){if(i=ge((pn(o.b<o.d.gc()),be(o.d.Xb(o.c=o.b++)))),r=i-t,r>Vse)return n;r>-1e-6&&++n}return n}function _G(e,t,n){if(he(t,273))return KWt(e,c(t,74),n);if(he(t,278))return jHt(e,c(t,278),n);throw K(new Ht(_S+Ch(new Qo(ee(Z(Br,1),It,1,5,[t,n])))))}function DG(e,t,n){if(he(t,273))return YWt(e,c(t,74),n);if(he(t,278))return SHt(e,c(t,278),n);throw K(new Ht(_S+Ch(new Qo(ee(Z(Br,1),It,1,5,[t,n])))))}function dve(e,t){var n;t!=e.b?(n=null,e.b&&(n=Uq(e.b,e,-4,n)),t&&(n=tk(t,e,-4,n)),n=VKe(e,t,n),n&&n.mj()):(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,3,t,t))}function _et(e,t){var n;t!=e.f?(n=null,e.f&&(n=Uq(e.f,e,-1,n)),t&&(n=tk(t,e,-1,n)),n=XKe(e,t,n),n&&n.mj()):(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,0,t,t))}function SGt(e,t,n,i){var r,o,a,d;return bu(e.e)&&(r=t.Jk(),d=t.kd(),o=n.kd(),a=A0(e,1,r,d,o,r.Hk()?Zj(e,r,o,he(r,104)&&(c(r,20).Bb&Ps)!=0):-1,!0),i?i.lj(a):i=a),i}function Det(e){var t,n,i;if(e==null)return null;if(n=c(e,16),n.dc())return"";for(i=new kg,t=n.Jc();t.Ob();)Zs(i,(Ai(),qn(t.Pb()))),i.a+=" ";return jZ(i,i.a.length-1)}function Let(e){var t,n,i;if(e==null)return null;if(n=c(e,16),n.dc())return"";for(i=new kg,t=n.Jc();t.Ob();)Zs(i,(Ai(),qn(t.Pb()))),i.a+=" ";return jZ(i,i.a.length-1)}function TGt(e,t){var n,i,r,o,a;for(o=new J(t.a);o.a<o.c.c.length;)for(r=c(U(o),9),i=new Gt(Xt(vr(r).a.Jc(),new z));gn(i);)n=c(on(i),17),a=n.c.i.p,e.n[a]=e.n[a]-1}function CGt(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?gee(i.a,r.a):i.a!=null?-1:r.a!=null?1:0}function Pet(e,t){var n,i,r,o,a,d;if(t)for(o=t.a.length,n=new Yp(o),d=(n.b-n.a)*n.c<0?(j0(),yp):new C0(n);d.Ob();)a=c(d.Pb(),15),r=uj(t,a.a),i=new DLe(e),aGe(i.a,r)}function Iet(e,t){var n,i,r,o,a,d;if(t)for(o=t.a.length,n=new Yp(o),d=(n.b-n.a)*n.c<0?(j0(),yp):new C0(n);d.Ob();)a=c(d.Pb(),15),r=uj(t,a.a),i=new jLe(e),uGe(i.a,r)}function EGt(e){var t;if(e!=null&&e.length>0&&bs(e,e.length-1)==33)try{return t=Znt(qa(e,0,e.length-1)),t.e==null}catch(n){if(n=kr(n),!he(n,33))throw K(n)}return!1}function MGt(e,t,n){var i,r,o;switch(i=Jr(t),r=rG(i),o=new xc,_o(o,t),n.g){case 1:$r(o,JD(K4(r)));break;case 2:$r(o,K4(r))}return _e(o,(We(),ex),be($(e,ex))),o}function gve(e){var t,n;return t=c(on(new Gt(Xt(vr(e.a).a.Jc(),new z))),17),n=c(on(new Gt(Xt(Fi(e.a).a.Jc(),new z))),17),it(nt($(t,($e(),Vg))))||it(nt($(n,Vg)))}function Ov(){Ov=W,bP=new T_("ONE_SIDE",0),sJ=new T_("TWO_SIDES_CORNER",1),oJ=new T_("TWO_SIDES_OPPOSING",2),rJ=new T_("THREE_SIDES",3),iJ=new T_("FOUR_SIDES",4)}function Ret(e,t){var n,i,r,o;for(o=new Qe,r=0,i=t.Jc();i.Ob();){for(n=ze(c(i.Pb(),15).a+r);n.a<e.f&&!DAt(e,n.a);)n=ze(n.a+1),++r;if(n.a>=e.f)break;Rt(o.c,n)}return o}function AGt(e){var t,n;for(n=new J(e.e.b);n.a<n.c.c.length;)t=c(U(n),26),wtn(e,t);hr(bi(jo(jo(new Tt(null,new Ct(e.e.b,16)),new iy),new YO),new y8),new GDe(e))}function pve(e,t){return t?e.kj(t)?!1:e.i?e.i.lj(t):he(t,152)?(e.i=c(t,152),!0):(e.i=new kB,e.i.lj(t)):!1}function $et(e,t,n){var i,r,o;return i=t.Jk(),o=t.kd(),r=i.Hk()?A0(e,3,i,null,o,Zj(e,i,o,he(i,104)&&(c(i,20).Bb&Ps)!=0),!0):A0(e,1,i,i.gk(),o,-1,!0),n?n.lj(r):n=r,n}function NGt(e){if(e=Ic(e,!0),jt(CS,e)||jt("1",e))return zt(),RS;if(jt(goe,e)||jt("0",e))return zt(),ep;throw K(new EY("Invalid boolean value: '"+e+"'"))}function mve(e,t,n){var i,r,o;for(r=e.vc().Jc();r.Ob();)if(i=c(r.Pb(),45),o=i.jd(),Se(t)===Se(o)||t!=null&&ki(t,o))return n&&(i=new pF(i.jd(),i.kd()),r.Qb()),i;return null}function _Gt(e){V2();var t,n,i;e.B.Gc((uu(),SW))&&(i=e.f.i,t=new Gq(e.a.c),n=new u4,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 Bet(e,t,n,i){var r,o,a;for(a=p.Math.min(n,fst(c(e.b,68),t,n,i)),o=new J(e.a);o.a<o.c.c.length;)r=c(U(o),227),r!=t&&(a=p.Math.min(a,Bet(r,t,a,i)));return a}function bve(e){var t,n,i,r;for(r=Ce(e1,Ge,201,e.b.c.length,0,2),i=new ss(e.b,0);i.b<i.d.gc();)t=(pn(i.b<i.d.gc()),c(i.d.Xb(i.c=i.b++),26)),n=i.b-1,r[n]=aD(t.a);return r}function wve(e,t,n){var i,r,o;i=c(yh(e.a,n),34),i!=null&&(o=c(yh(e.b,i),66),vv(o,n,!0)),r=c(yh(e.b,t),66),r||(r=new _i,wm(e.b,t,r)),sr(r,n,r.c.b,r.c),wm(e.a,n,t)}function cie(e,t,n,i,r){var o,a,d,b;for(a=j8t(G1e(rpe(cqt(n)),i),pHt(e,n,r)),b=Fg(e,n).Jc();b.Ob();)d=c(b.Pb(),12),t[d.p]&&(o=t[d.p].i,Ue(a.d,new aee(o,Zwe(a,o))));m2e(a)}function vve(e,t){this.f=new xn,this.b=new xn,this.j=new xn,this.a=e,this.c=t,this.c>0&&net(this,this.c-1,(Ve(),sn)),this.c<this.a.length-1&&net(this,this.c+1,(Ve(),Zt))}function DGt(e,t){var n,i,r,o,a;for(o=new J(t.d);o.a<o.c.c.length;)for(r=c(U(o),108),a=c(Jt(e.c,r),117).o,i=new m4(r.b);i.a<i.c.a.length;)n=c(m7(i),64),xbe(r,n,a)}function xve(e){e.length>0&&e[0].length>0&&(this.c=it(nt($(Jr(e[0][0]),($e(),cje))))),this.a=Ce(hmt,Ge,2096,e.length,0,2),this.b=Ce(dmt,Ge,2097,e.length,0,2),this.d=new BKe}function LGt(e){return e.c.length==0?!1:(pt(0,e.c.length),c(e.c[0],17)).c.i.k==(Wt(),Er)?!0:Ly(Jc(new Tt(null,new Ct(e,16)),new LA),new oK)}function zet(e,t){var n,i,r,o,a,d,b;for(d=Ev(t),o=t.f,b=t.g,a=p.Math.sqrt(o*o+b*b),r=0,i=new J(d);i.a<i.c.c.length;)n=c(U(i),19),r+=zet(e,n);return p.Math.max(r,a)}function es(){es=W,gp=new $T(xC,0),Fh=new $T("FREE",1),v9=new $T("FIXED_SIDE",2),Jm=new $T("FIXED_ORDER",3),r1=new $T("FIXED_RATIO",4),Sc=new $T("FIXED_POS",5)}function PGt(e,t){var n,i,r;if(n=t.ni(e.a),n){for(r=qn(Zf((!n.b&&(n.b=new vu((At(),$s),ec,n)),n.b),Va)),i=1;i<(Pl(),NCe).length;++i)if(jt(NCe[i],r))return i}return 0}function IGt(e){var t,n,i,r,o;if(e==null)return wl;for(o=new dm(Yc,"[","]"),n=e,i=0,r=n.length;i<r;++i)t=n[i],A1(o,""+t);return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}function RGt(e){var t,n,i,r,o;if(e==null)return wl;for(o=new dm(Yc,"[","]"),n=e,i=0,r=n.length;i<r;++i)t=n[i],A1(o,""+t);return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}function Fet(e){var t,n,i;for(i=new dm(Yc,"{","}"),n=e.vc().Jc();n.Ob();)t=c(n.Pb(),45),A1(i,NUe(e,t.jd())+"="+NUe(e,t.kd()));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function $Gt(e){for(var t,n,i,r;!wT(e.o);)n=c(D4(e.o),49),i=c(n.a,126),t=c(n.b,220),r=oG(t,i),t.e==i?(YF(r.g,t),i.e=r.e+t.a):(YF(r.b,t),i.e=r.e-t.a),Ue(e.e.a,i)}function yve(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 qet(e,t){var n,i,r,o,a;for(n=pit(e,!1,t),r=new J(n);r.a<r.c.c.length;)i=c(U(r),135),i.d==0?(Wee(i,null),Vee(i,null)):(o=i.a,a=i.b,Wee(i,a),Vee(i,o))}function BGt(e){var t,n;return t=new yr,Hu(t,Jmt),n=c($(e,($e(),Bc)),24),n.Gc((Qs(),sE))&&Hu(t,Kmt),n.Gc(WS)&&Hu(t,Wmt),n.Gc(v3)&&Hu(t,Xmt),n.Gc(VS)&&Hu(t,Vmt),t}function ik(){ik=W,new Qr((Pn(),lh),20),TTe=new Wp(5),new Qr($h,TTe),f2t=WE,d2t=d9,new Qr(bW,(zt(),!1)),STe=VE,h2t=K1,f9=(a2e(),a2t),mae=u2t,jTe=l2t,pae=c2t}function kve(e,t,n){var i,r,o,a,d;for(Rzt(e),r=(e.k==null&&(e.k=Ce(ice,Ge,81,0,0,1)),e.k),o=0,a=r.length;o<a;++o)i=r[o],kve(i);d=e.f,d&&kve(d)}function zGt(e){var t,n,i,r;for(ben(e),n=new Gt(Xt(sd(e).a.Jc(),new z));gn(n);)t=c(on(n),17),i=t.c.i==e,r=i?t.d:t.c,i?rs(t,null):ks(t,null),_e(t,($e(),fje),r),FJt(e,r.i)}function FGt(e,t,n){var i,r,o,a;for(a=Do(e.e,t,0),o=new j1e,o.b=n,i=new ss(e.e,a);i.b<i.d.gc();)r=(pn(i.b<i.d.gc()),c(i.d.Xb(i.c=i.b++),9)),r.p=n,Ue(o.e,r),iu(i);return o}function qGt(e){var t,n,i;for(n=new ln((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a));n.e!=n.i.gc();)if(t=c(fn(n),19),i=QG(t),!gn(new Gt(Xt(i.a.Jc(),new z))))return t;return null}function HGt(e){var t,n,i;for(n=new ln((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a));n.e!=n.i.gc();)if(t=c(fn(n),19),i=QG(t),!gn(new Gt(Xt(i.a.Jc(),new z))))return t;return null}function LG(){LG=W,_ue=new A_("OVERLAP_REMOVAL",0),Mue=new A_(Jlt,1),Due=new A_("ROTATION",2),Aue=new A_("GRAPH_SIZE_CALCULATION",3),Nue=new A_("OUTGOING_EDGE_ANGLES",4)}function Het(e){switch(e.g){case 0:return new Y$;case 1:return new o6;default:throw K(new Ht("No implementation is available for the edge router "+(e.f!=null?e.f:""+e.g)))}}function GGt(){var e;return Qvt?c(Uj((O0(),rf),NS),2094):(e=c(he(Nc((O0(),rf),NS),563)?Nc(rf,NS):new Bnt,563),Qvt=!0,itn(e),win(e),eie(e),lo(rf,NS,e),e)}function lie(e,t,n){var i,r;if(e.j==0)return n;if(r=c(GVe(e,t,n),76),i=n.Jk(),!i.pk()||!e.a.$l(i))throw K(new Mo("Invalid entry feature '"+i.ok().zb+"."+i.ve()+"'"));return r}function QGt(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],Se(t)===Se(n)||t!=null&&ki(t,n))return!0;return!1}function UGt(e){var t,n,i;return Lc(e,0)>=0?(n=rL(e,bQ),i=Ene(e,bQ)):(t=Zp(e,1),n=rL(t,5e8),i=Ene(t,5e8),i=As($d(i,1),Zr(e,1))),id($d(i,32),Zr(n,Us))}function JGt(e,t,n,i){var r,o,a,d,b;for(r=null,o=0,d=new J(t);d.a<d.c.c.length;)a=c(U(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 WGt(e,t,n,i){var r,o,a,d,b;for(o=null,r=0,d=new J(t);d.a<d.c.c.length;)a=c(U(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 VGt(e){var t,n,i;for(t=!1,i=e.b.c.length,n=0;n<i;n++)Ewe(c(Xe(e.b,n),439))?!t&&n+1<i&&Ewe(c(Xe(e.b,n+1),439))&&(t=!0,c(Xe(e.b,n),439).a=!0):t=!1}function XGt(e,t,n,i,r){var o,a;for(o=0,a=0;a<r;a++)o=As(o,Ga(Zr(t[a],Us),Zr(i[a],Us))),e[a]=Qn(o),o=Qb(o,32);for(;a<n;a++)o=As(o,Zr(t[a],Us)),e[a]=Qn(o),o=Qb(o,32)}function KGt(e,t){Xj();var n,i;for(i=(ld(),SU),n=e;t>1;t>>=1)(t&1)!=0&&(i=Dy(i,n)),n.d==1?n=Dy(n,n):n=new rZe(Brt(n.a,n.d,Ce(Hn,li,30,n.d<<1,15,1)));return i=Dy(i,n),i}function Ove(){Ove=W;var e,t,n,i;for(sOe=Ce(is,io,30,25,15,1),oOe=Ce(is,io,30,33,15,1),i=152587890625e-16,t=32;t>=0;t--)oOe[t]=i,i*=.5;for(n=1,e=24;e>=0;e--)sOe[e]=n,n*=.5}function YGt(e){var t,n;if(it(nt(Ae(e,(We(),Yv))))){for(n=new Gt(Xt(B1(e).a.Jc(),new z));gn(n);)if(t=c(on(n),74),gw(t)&&it(nt(Ae(t,$m))))return!0}return!1}function Get(e){var t,n,i,r;for(t=new _i,n=new _i,r=Ln(e,0);r.b!=r.d.c;)i=c(_n(r),12),i.e.c.length==0?sr(n,i,n.c.b,n.c):sr(t,i,t.c.b,t.c);return Tu(t).Fc(n),t}function Qet(e,t){var n,i,r;Cr(e.f,t)&&(t.b=e,i=t.c,Do(e.j,i,0)!=-1||Ue(e.j,i),r=t.d,Do(e.j,r,0)!=-1||Ue(e.j,r),n=t.a.b,n.c.length!=0&&(!e.i&&(e.i=new cZe(e)),x$t(e.i,n)))}function ZGt(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:iG(i)==o?0:e2e(i)==o?1:(t=e.b,Al(t.b,iG(i))?0:1)}function PG(e,t){var n,i,r,o,a,d;r=e,a=p7(r,"layoutOptions"),!a&&(a=p7(r,Yut)),a&&(d=a,i=null,d&&(i=(o=Bte(d,Ce(st,Ge,2,0,6,1)),new RY(d,o))),i&&(n=new hBe(d,t),ws(i,n)))}function no(e){if(he(e,209))return c(e,19);if(he(e,196))return wh(c(e,127));throw K(e?new yg("Only support nodes and ports."):new h4(cat))}function eQt(e,t,n,i){return(t>=0&&jt(e.substr(t,3),"GMT")||t>=0&&jt(e.substr(t,3),"UTC"))&&(n[0]=t+3),oye(e,n,i)}function tQt(e,t){var n,i,r,o,a;for(o=e.g.a,a=e.g.b,i=new J(e.d);i.a<i.c.c.length;)n=c(U(i),70),r=n.n,r.a=o,e.i==(Ve(),Yt)?r.b=a+e.j.b-n.o.b:r.b=a,ji(r,t),o+=n.o.a+e.e}function Uet(e,t,n){if(e.b)throw K(new oo("The task is already done."));return e.p!=null?!1:(e.p=t,e.r=n,e.k&&(e.o=(Sg(),js(nc(Date.now()),Gg))),!0)}function jve(e){var t,n,i,r,o,a,d;return d=new f4,n=e.Og(),r=n!=null,r&&K6(d,md,e.Og()),i=e.ve(),o=i!=null,o&&K6(d,di,e.ve()),t=e.Ng(),a=t!=null,a&&K6(d,"description",e.Ng()),d}function Jet(e,t,n){var i,r,o;return o=e.q,e.q=t,(e.Db&4)!=0&&(e.Db&1)==0&&(r=new Ur(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 nQt(e,t,n){var i,r,o,a,d;for(n=(d=t,tk(d,e.e,-1-e.c,n)),a=cme(e.a),o=(i=new pv(new Hp(a.a).a),new Hz(i));o.a.b;)r=c(Ry(o.a).jd(),88),n=nS(r,UG(r,e.a),n);return n}function iQt(e,t,n){var i,r,o,a,d;for(n=(d=t,Uq(d,e.e,-1-e.c,n)),a=cme(e.a),o=(i=new pv(new Hp(a.a).a),new Hz(i));o.a.b;)r=c(Ry(o.a).jd(),88),n=nS(r,UG(r,e.a),n);return n}function rQt(e,t,n,i){var r,o,a;if(i==0)yc(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 sQt(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 oQt(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 uie(e,t,n,i,r){var o,a;o=c(Gl(bi(t.Mc(),new m8),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[(ya(),vl)]))),16),V7(o),a=c(hm(e.b,n,i),16),r==0?a.ad(0,o):a.Fc(o)}function cQt(e,t,n){n.Tg("Grow Tree",1),e.b=t.f,it(nt($(t,(vj(),XC))))?(e.c=new fb,jQe(e,null)):e.c=new fb,e.a=!1,Cit(e,t.f),_e(t,dOe,(zt(),!!e.a)),n.Ug()}function ym(e){var t;this.d=new xn,this.c=e.c,this.e=e.d,this.b=e.b,this.f=new Kqe(e.e),this.a=e.a,e.f?this.g=e.f:this.g=(t=c(Jf(bI),10),new ga(t,c(mf(t,t.length),10),0))}function Sve(e){var t,n,i,r;for(t=null,r=new J(e.Pf());r.a<r.c.c.length;)i=c(U(r),190),n=new bf(i.Jf().a,i.Jf().b,i.Kf().a,i.Kf().b),t?W7(t,n):t=n;return!t&&(t=new k4),t}function aie(e,t,n,i){var r,o;return n==1?(!e.n&&(e.n=new Le(Bo,e,1,7)),Kc(e.n,t,i)):(o=c(Lt((r=c(Kt(e,16),29),r||e.fi()),n),69),o.uk().xk(e,sl(e),n-bn(e.fi()),t,i))}function fie(e,t,n){var i,r,o,a,d;for(i=n.gc(),e.Zi(e.i+i),d=e.i-t,d>0&&yc(e.g,t,e.g,t+i,d),a=n.Jc(),e.i+=i,r=0;r<i;++r)o=a.Pb(),JT(e,t,e.Xi(t,o)),e.Ki(t,o),e.Li(),++t;return i!=0}function Th(e,t,n){var i;return t!=e.q?(e.q&&(n=Uq(e.q,e,-10,n)),t&&(n=tk(t,e,-10,n)),n=Jet(e,t,n)):(e.Db&4)!=0&&(e.Db&1)==0&&(i=new Ur(e,1,9,t,t),n?n.lj(i):n=i),n}function hie(e,t,n,i){return npe((n&ad)==0,"flatMap does not support SUBSIZED characteristic"),npe((n&4)==0,"flatMap does not support SORTED characteristic"),$n(e),$n(t),new OUe(e,t,n,i)}function Wet(e,t){Upe(t,"Cannot suppress a null exception."),Z_(t!=e,"Exception can not suppress itself."),!e.i&&(e.k==null?e.k=ee(Z(ice,1),Ge,81,0,[t]):e.k[e.k.length]=t)}function lQt(e,t){var n;if(n=RBe(e.b.$f(),t.b.$f()),n!=0)return n;switch(e.b.$f().g){case 1:case 2:return pc(e.b.Lf(),t.b.Lf());case 3:case 4:return pc(t.b.Lf(),e.b.Lf())}return 0}function uQt(e){var t,n,i;for(i=e.e.c.length,e.a=Z2(Hn,[Ge,li],[54,30],15,[i,i],2),n=new J(e.c);n.a<n.c.c.length;)t=c(U(n),292),e.a[t.c.a][t.d.a]+=c($(t,(Tf(),Ek)),15).a}function aQt(e,t){var n,i,r,o,a;if(e==null)return null;for(a=Ce(Da,fd,30,2*t,15,1),i=0,r=0;i<t;++i)n=e[i]>>4&15,o=e[i]&15,a[r++]=sCe[n],a[r++]=sCe[o];return od(a,0,a.length)}function ml(e){var t,n;return e>=Ps?(t=LL+(e-Ps>>10&1023)&Dr,n=56320+(e-Ps&1023)&Dr,String.fromCharCode(t)+(""+String.fromCharCode(n))):String.fromCharCode(e&Dr)}function fQt(e,t){V2();var n,i,r,o;return r=c(c(Ti(e.r,t),24),85),r.gc()>=2?(i=c(r.Jc().Pb(),116),n=e.u.Gc((Ul(),nM)),o=e.u.Gc(Yk),!i.a&&!n&&(r.gc()==2||o)):!1}function Vet(e,t,n,i,r){var o,a,d;for(o=Hit(e,t,n,i,r),d=!1;!o;)HG(e,r,!0),d=!0,o=Hit(e,t,n,i,r);d&&HG(e,r,!1),a=Kte(r),a.c.length!=0&&(e.d&&e.d.Fg(a),Vet(e,r,n,i,a))}function IG(){IG=W,Gue=new NF("NODE_SIZE_REORDERER",0),Fue=new NF("INTERACTIVE_NODE_REORDERER",1),Hue=new NF("MIN_SIZE_PRE_PROCESSOR",2),que=new NF("MIN_SIZE_POST_PROCESSOR",3)}function RG(){RG=W,qae=new RT(th,0),T7e=new RT("DIRECTED",1),E7e=new RT("UNDIRECTED",2),j7e=new RT("ASSOCIATION",3),C7e=new RT("GENERALIZATION",4),S7e=new RT("DEPENDENCY",5)}function hQt(e,t){var n;if(!wh(e))throw K(new oo($ut));switch(n=wh(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 dQt(e,t,n){var i,r,o;return i=t.Jk(),o=t.kd(),r=i.Hk()?A0(e,4,i,o,null,Zj(e,i,o,he(i,104)&&(c(i,20).Bb&Ps)!=0),!0):A0(e,i.rk()?2:1,i,o,i.gk(),-1,!0),n?n.lj(r):n=r,n}function Hj(e,t){var n,i;for(Ft(t),i=e.b.c.length,Ue(e.b,t);i>0;){if(n=i,i=(i-1)/2|0,e.a.Le(Xe(e.b,i),t)<=0)return Ou(e.b,n,t),!0;Ou(e.b,n,Xe(e.b,i))}return Ou(e.b,i,t),!0}function Tve(e,t,n,i){var r,o;if(r=0,n)r=ZH(e.a[n.g][t.g],i);else for(o=0;o<AU;o++)r=p.Math.max(r,ZH(e.a[o][t.g],i));return t==(Yf(),el)&&e.b&&(r=p.Math.max(r,e.b.a)),r}function gQt(e,t){var n,i,r,o,a,d;return r=e.i,o=t.i,!r||!o||r.i!=o.i||r.i==(Ve(),sn)||r.i==(Ve(),Zt)?!1:(a=r.g.a,n=a+r.j.a,d=o.g.a,i=d+o.j.a,a<=i&&n>=d)}function Xet(e){switch(e.g){case 0:return new U$;case 1:return new iN;default:throw K(new Ht("No implementation is available for the width approximator "+(e.f!=null?e.f:""+e.g)))}}function Cve(e,t,n,i){var r;if(r=!1,Yr(i)&&(r=!0,K6(t,n,qn(i))),r||G2(i)&&(r=!0,Cve(e,t,n,i)),r||he(i,245)&&(r=!0,im(t,n,c(i,245))),!r)throw K(new CY(oke))}function pQt(e,t){var n,i,r;if(n=t.ni(e.a),n&&(r=Zf((!n.b&&(n.b=new vu((At(),$s),ec,n)),n.b),Ja),r!=null)){for(i=1;i<(Pl(),MCe).length;++i)if(jt(MCe[i],r))return i}return 0}function mQt(e,t){var n,i,r;if(n=t.ni(e.a),n&&(r=Zf((!n.b&&(n.b=new vu((At(),$s),ec,n)),n.b),Ja),r!=null)){for(i=1;i<(Pl(),ACe).length;++i)if(jt(ACe[i],r))return i}return 0}function Ket(e,t){var n,i,r,o;if(Ft(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 Yet(e){var t,n;switch(n=Ms(Lo(ee(Z(Vr,1),Ge,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=(J4(),c(on(new Gt(Xt(vr(e).a.Jc(),new z))),17).c.i);t.k==(Wt(),Er);)_e(t,($e(),SP),(zt(),!0)),t=c(on(new Gt(Xt(vr(t).a.Jc(),new z))),17).c.i}function die(e,t,n,i){var r,o,a,d;for(d=L7(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=L7(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 Eve(e,t,n){var i,r;for(r=new ln((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a));r.e!=r.i.gc();)i=c(fn(r),19),ha(i,i.i+t,i.j+n);ws((!e.b&&(e.b=new Le($i,e,12,3)),e.b),new Q$e(t,n))}function wQt(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 vQt(e){var t,n,i,r;for(t=new Qe,n=Ce(Sl,eh,30,e.a.c.length,16,1),Qpe(n,n.length),r=new J(e.a);r.a<r.c.c.length;)i=c(U(r),126),n[i.d]||(Rt(t.c,i),hZe(e,i,n));return t}function Zet(e,t){var n,i,r,o,a;for(r=t==1?Ace:Mce,i=r.a.ec().Jc();i.Ob();)for(n=c(i.Pb(),87),a=c(Ti(e.f.c,n),24).Jc();a.Ob();)o=c(a.Pb(),49),gl(e.b.b,o.b),gl(e.b.a,c(o.b,84).d)}function xQt(e,t){var n;t.Tg("Hierarchical port position processing",1),n=e.b,n.c.length>0&&Lrt((pt(0,n.c.length),c(n.c[0],26)),e),n.c.length>1&&Lrt(c(Xe(n,n.c.length-1),26),e),t.Ug()}function yQt(e){Ul();var t,n;return t=Li(Z1,ee(Z(jW,1),Re,282,0,[pp])),!(LD(Wq(t,e))>1||(n=Li(nM,ee(Z(jW,1),Re,282,0,[tM,Yk])),LD(Wq(n,e))>1))}function Mve(e,t){var n;n=Nc((O0(),rf),e),he(n,496)?lo(rf,e,new mBe(this,t)):lo(rf,e,this),pie(this,t),t==(I6(),bCe)?(this.wb=c(this,2017),c(t,2019)):this.wb=(E0(),Ut)}function kQt(e){var t,n,i;if(e==null)return null;for(t=null,n=0;n<oM.length;++n)try{return KRe(oM[n],e)}catch(r){if(r=kr(r),he(r,33))i=r,t=i;else throw K(r)}throw K(new vH(t))}function ett(){ett=W,cht=ee(Z(st,1),Ge,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),lht=ee(Z(st,1),Ge,2,6,["Jan","Feb","Mar","Apr",gk,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])}function $(e,t){var n,i;return i=(!e.q&&(e.q=new xn),Jt(e.q,t)),i??(n=t.Rg(),he(n,4)&&(n==null?(!e.q&&(e.q=new xn),q4(e.q,t)):(!e.q&&(e.q=new xn),ci(e.q,t,n))),n)}function ts(){ts=W,Af=new S_("P1_CYCLE_BREAKING",0),Zd=new S_("P2_LAYERING",1),Oc=new S_("P3_NODE_ORDERING",2),jc=new S_("P4_NODE_PLACEMENT",3),Vs=new S_("P5_EDGE_ROUTING",4)}function OQt(e,t){x7();var n;if(e.c==t.c){if(e.b==t.b||WRt(e.b,t.b)){if(n=NTt(e.b)?1:-1,e.a&&!t.a)return n;if(!e.a&&t.a)return-n}return pc(e.b.g,t.b.g)}else return Ci(e.c,t.c)}function jQt(e,t,n,i){var r,o,a,d,b;return a=set(e.a,t,n),d=c(a.a,15).a,o=c(a.b,15).a,i&&(b=c($(t,($e(),Wl)),9),r=c($(n,Wl),9),b&&r&&(LUe(e.b,b,r),d+=e.b.i,o+=e.b.e)),d>o}function ttt(e,t){var n,i,r;if(Nve(e,t))return!0;for(i=new J(t);i.a<i.c.c.length;)if(n=c(U(i),19),r=Aet(n),ZG(e,n,r)||GKe(e,n)-e.g<=e.a)return!0;return!1}function oL(){oL=W,hW=(Lie(),hTe),lae=Zwt,cae=Ywt,sTe=Vwt,oae=Kwt,rTe=new Wp(8),qwt=new Qr((Pn(),$h),rTe),Hwt=new Qr(lh,8),Gwt=aTe,nTe=Qwt,iTe=Uwt,Fwt=new Qr(KP,(zt(),!1))}function $G(){$G=W,ITe=new Wp(15),L2t=new Qr((Pn(),$h),ITe),P2t=new Qr(lh,15),RTe=new Qr(ZP,ze(0)),DTe=q2t,_2t=Um,D2t=fp,_Te=new Qr(h9,put),LTe=WE,PTe=$3,Sae=B2t,N2t=XP}function SQt(e,t){if(he(t,209))return LFt(e,c(t,19));if(he(t,196))return IFt(e,c(t,127));if(t)return null;throw K(new Ht(_S+Ch(new Qo(ee(Z(Br,1),It,1,5,[t])))))}function TQt(e,t){if(he(t,363))return jIt(e,c(t,158));if(he(t,273))return DZt(e,c(t,74));if(t)return null;throw K(new Ht(_S+Ch(new Qo(ee(Z(Br,1),It,1,5,[t])))))}function gie(e){if((!e.b&&(e.b=new Et(yn,e,4,7)),e.b).i!=1||(!e.c&&(e.c=new Et(yn,e,5,8)),e.c).i!=1)throw K(new Ht(uat));return no(c(ae((!e.b&&(e.b=new Et(yn,e,4,7)),e.b),0),83))}function ntt(e){if((!e.b&&(e.b=new Et(yn,e,4,7)),e.b).i!=1||(!e.c&&(e.c=new Et(yn,e,5,8)),e.c).i!=1)throw K(new Ht(uat));return no(c(ae((!e.c&&(e.c=new Et(yn,e,5,8)),e.c),0),83))}function Ave(e,t,n){var i,r,o;if(++e.j,r=e.Cj(),t>=r||t<0)throw K(new Qc(Aoe+t+Am+r));if(n>=r||n<0)throw K(new Qc(Noe+n+Am+r));return t!=n?i=(o=e.Aj(n),e.oj(t,o),o):i=e.vj(n),i}function itt(e){var t,n,i;if(i=e,e)for(t=0,n=e.Bh();n;n=n.Bh()){if(++t>$re)return itt(n);if(i=n,n==e)throw K(new oo("There is a cycle in the containment hierarchy of "+e))}return i}function Ch(e){var t,n,i;for(i=new dm(Yc,"[","]"),n=e.Jc();n.Ob();)t=n.Pb(),A1(i,Se(t)===Se(e)?"(this Collection)":t==null?wl:So(t));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function Nve(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|ZG(e,c(t.Xb(n),19),c(t.Xb(n+1),19)):i=i|ZG(e,c(t.Xb(n),19),c(t.Xb(0),19));return i}function rtt(e,t){var n,i,r;if(r=(!t.e&&(t.e=new Et($i,t,7,4)),t.e).i,r>0)for(i=0;i<r;i++)n=c(ae(rj(c(ae((!t.e&&(t.e=new Et($i,t,7,4)),t.e),i),74)),0),19),Dc(n,n.i+t.i),rtt(e,n)}function stt(e,t){var n;t!=e.a?(n=null,e.a&&(n=c(e.a,52).Qh(e,4,uh,n)),t&&(n=c(t,52).Oh(e,4,uh,n)),n=qwe(e,t,n),n&&n.mj()):(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,1,t,t))}function _ve(e,t){var n;t!=e.e?(e.e&&MJe(cme(e.e),e),t&&(!t.b&&(t.b=new qz(new yY)),BFe(t.b,e)),n=RHt(e,t,null),n&&n.mj()):(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,4,t,t))}function CQt(e){var t,n,i,r;if(ky(c($(e.b,(We(),Xu)),87)))return 0;for(t=0,i=new J(e.a);i.a<i.c.c.length;)n=c(U(i),9),n.k==(Wt(),ar)&&(r=n.o.a,t=p.Math.max(t,r));return t}function EQt(e,t){var n;n=t.o,k1(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 H0(){H0=W,C1t=ee(Z(Rs,1),ac,64,0,[(Ve(),Yt),sn,wn]),T1t=ee(Z(Rs,1),ac,64,0,[sn,wn,Zt]),E1t=ee(Z(Rs,1),ac,64,0,[wn,Zt,Yt]),M1t=ee(Z(Rs,1),ac,64,0,[Zt,Yt,sn])}function ott(e){var t,n,i,r,o,a,d,b,v;for(this.a=SZe(e),this.b=new Qe,n=e,i=0,r=n.length;i<r;++i)for(t=n[i],o=new Qe,Ue(this.b,o),d=t,b=0,v=d.length;b<v;++b)a=d[b],Ue(o,new Hl(a.j))}function MQt(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=pin(e.d,i,r),o+=Eee(e.a,i,(Ve(),sn)),o+=Eee(e.a,r,Zt)):o=MIt(e.a,i,r)),e.c[t]&&(o+=KPt(e.a,i)),o}function AQt(e,t,n,i,r){var o,a,d,b;for(b=null,d=new J(i);d.a<d.c.c.length;)if(a=c(U(d),447),a!=n&&Do(a.e,r,0)!=-1){b=a;break}o=fte(r),ks(o,n.b),rs(o,b.b),St(e.a,r,new lq(o,t,n.f))}function ctt(e){for(;e.g.c!=0&&e.d.c!=0;)FZ(e.g).c>FZ(e.d).c?(e.i+=e.g.c,Mne(e.d)):FZ(e.d).c>FZ(e.g).c?(e.e+=e.d.c,Mne(e.g)):(e.i+=Qqe(e.g),e.e+=Qqe(e.d),Mne(e.g),Mne(e.d))}function NQt(e,t,n){var i,r,o,a;for(o=t.q,a=t.r,new rm((Xf(),lp),t,o,1),new rm(lp,o,a,1),r=new J(n);r.a<r.c.c.length;)i=c(U(r),117),i!=o&&i!=t&&i!=a&&(kye(e.a,i,t),kye(e.a,i,a))}function ltt(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=Xse*e.b+.9*t,e.f=Xse*e.b+.9*n):(e.b=.5*(t+i),e.g=Xse*e.b+.9*i,e.f=Xse*e.b+.9*t)}function _Qt(e){var t,n,i,r;if(e.b!=0){for(t=new _i,r=Ln(e,0);r.b!=r.d.c;)i=c(_n(r),41),Os(t,Xte(i)),n=i.e,n.a=c($(i,(Ii(),zP)),15).a,n.b=c($(i,FP),15).a;return t}return new _i}function DQt(e){switch(c($(e,(We(),Ro)),166).g){case 1:_e(e,Ro,(Su(),aE));break;case 2:_e(e,Ro,(Su(),Rm));break;case 3:_e(e,Ro,(Su(),uE));break;case 4:_e(e,Ro,(Su(),W1))}}function LQt(e,t,n){var i;n.Tg("Self-Loop routing",1),i=mzt(t),HF($(t,(hH(),HE))),hr(Jc(bi(bi(jo(new Tt(null,new Ct(t.b,16)),new HO),new BR),new zR),new FR),new h$e(e,i)),n.Ug()}function Gj(){Gj=W,iE=new LT(th,0),W6e=new LT(bk,1),K6e=new LT(wk,2),X6e=new LT("LEFT_RIGHT_CONSTRAINT_LOCKING",3),V6e=new LT("LEFT_RIGHT_CONNECTION_LOCKING",4),J6e=new LT(vlt,5)}function utt(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 PQt(e,t,n,i,r){var o,a;for(a=!1,o=c(Xe(n.b,0),19);qYt(e,t,o,i,r)&&(a=!0,yGt(n,o),n.b.c.length!=0);)o=c(Xe(n.b,0),19);return n.b.c.length==0&&nL(n.j,n),a&&TG(t.q),a}function Dve(e,t,n,i){var r,o;return n==0?(!e.o&&(e.o=new _l((uc(),s1),n0,e,0)),sq(e.o,t,i)):(o=c(Lt((r=c(Kt(e,16),29),r||e.fi()),n),69),o.uk().yk(e,sl(e),n-bn(e.fi()),t,i))}function pie(e,t){var n;t!=e.sb?(n=null,e.sb&&(n=c(e.sb,52).Qh(e,1,sM,n)),t&&(n=c(t,52).Oh(e,1,sM,n)),n=Uwe(e,t,n),n&&n.mj()):(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,4,t,t))}function att(e,t){var n,i,r,o;if(t)r=L1(t,"x"),n=new ALe(e),nw(n.a,(Ft(r),r)),o=L1(t,"y"),i=new NLe(e),iw(i.a,(Ft(o),o));else throw K(new Kh("All edge sections need an end point."))}function ftt(e,t){var n,i,r,o;if(t)r=L1(t,"x"),n=new CLe(e),rw(n.a,(Ft(r),r)),o=L1(t,"y"),i=new ELe(e),sw(i.a,(Ft(o),o));else throw K(new Kh("All edge sections need a start point."))}function IQt(e,t){var n,i,r,o,a,d,b;for(i=EKe(e),o=0,d=i.length;o<d;++o)gtt(t);for(b=!Dh&&e.e?Dh?null:e.d:null;b;){for(n=EKe(b),r=0,a=n.length;r<a;++r)gtt(t);b=!Dh&&b.e?Dh?null:b.d:null}}function htt(e,t){var n,i;i=c($(t,(We(),fr)),103),_e(t,($e(),hje),i),n=t.e,n&&(hr(new Tt(null,new Ct(n.a,16)),new s1e(e)),hr(jo(new Tt(null,new Ct(n.b,16)),new Gx),new o1e(e)))}function RQt(e){var t,n,i,r;if(t=!1,Oi(e,($e(),oE)))for(n=c($(e,oE),93),r=new J(e.j);r.a<r.c.c.length;)i=c(U(r),12),RWt(i)&&(t||(ZUt(Jr(e)),t=!0),Zzt(c(n.xc(i),319)))}function $Qt(e){var t,n,i,r,o,a,d,b,v;return v=jve(e),n=e.e,o=n!=null,o&&K6(v,iU,e.e),d=e.k,a=!!d,a&&K6(v,"type",RZ(e.k)),i=w_(e.j),r=!i,r&&(b=new vg,xf(v,Eoe,b),t=new XLe(b),ws(e.j,t)),v}function BQt(e){var t,n,i,r;for(r=tm((qu(e.gc(),"size"),new g4),123),i=!0,n=Kp(e).Jc();n.Ob();)t=c(n.Pb(),45),i||(r.a+=Yc),i=!1,Mc(tm(Mc(r,t.jd()),61),t.kd());return(r.a+="}",r).a}function dtt(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),rl(n&au,i&au,r&H1)}function jv(e){if(Bke==null&&(Bke=new RegExp("^\\s*[+-]?(NaN|Infinity|((\\d+\\.?\\d*)|(\\.\\d+))([eE][+-]?\\d+)?[dDfF]?)\\s*$")),!Bke.test(e))throw K(new Yh(yw+e+'"'));return parseFloat(e)}function gtt(e){var t,n,i;t=jt(typeof console,Qre)?null:new Kr,t&&(F6(),n=(i=900,i>=Gg?"error":i>=900?"warn":i>=800?"info":"log"),BHe(n,e.a),e.b&&Lxe(t,n,e.b,"Exception: ",!0))}function ptt(e,t){var n,i,r,o,a;for(r=t==1?Ace:Mce,i=r.a.ec().Jc();i.Ob();)for(n=c(i.Pb(),87),a=c(Ti(e.f.c,n),24).Jc();a.Ob();)o=c(a.Pb(),49),Ue(e.b.b,c(o.b,84)),Ue(e.b.a,c(o.b,84).d)}function mtt(e,t,n,i){var r,o,a,d,b;switch(b=e.b,o=t.d,a=o.j,d=_2e(a,b.d[a.g],n),r=ji(Ms(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}sr(i,d,i.c.b,i.c)}function zQt(e,t){var n,i,r,o;for(o=t.b.j,e.a=Ce(Hn,li,30,o.c.length,15,1),r=0,i=0;i<o.c.length;i++)n=(pt(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 BG(){BG=W,cle=new _T("ALWAYS_UP",0),ole=new _T("ALWAYS_DOWN",1),ule=new _T("DIRECTION_UP",2),lle=new _T("DIRECTION_DOWN",3),ale=new _T("SMART_UP",4),uJ=new _T("SMART_DOWN",5)}function btt(e){switch(e.g){case 0:return new $K;case 1:return new zK;case 2:return new mz;case 3:return new V$e;case 4:return new aHe;default:throw K(new Ht(Qse+(e.f!=null?e.f:""+e.g)))}}function FQt(e,t){if(e<0||t<0)throw K(new Ht("k and n must be positive"));if(t>e)throw K(new Ht("k must be smaller than n"));return t==0||t==e?1:e==0?0:ove(e)/(ove(t)*ove(e-t))}function Lve(e,t){var n,i,r,o;for(n=new SZ(e);n.g==null&&!n.c?Sme(n):n.g==null||n.i!=0&&c(n.g[n.i-1],51).Ob();)if(o=c(GG(n),57),he(o,176))for(i=c(o,176),r=0;r<t.length;r++)t[r].Jg(i)}function mie(e){var t;return(e.Db&64)!=0?xne(e):(t=new za(xne(e)),t.a+=" (height: ",gy(t,e.f),t.a+=", width: ",gy(t,e.g),t.a+=", x: ",gy(t,e.i),t.a+=", y: ",gy(t,e.j),t.a+=")",t.a)}function qQt(e){var t,n,i,r,o,a,d;for(t=new _0,i=e,r=0,o=i.length;r<o;++r)if(n=i[r],a=$n(n.jd()),d=wm(t,a,$n(n.kd())),d!=null)throw K(new Ht("duplicate key: "+a));this.b=(Mt(),new aY(t))}function HQt(e){var t,n,i,r,o;if(e==null)return wl;for(o=new dm(Yc,"[","]"),n=e,i=0,r=n.length;i<r;++i)t=n[i],A1(o,String.fromCharCode(t));return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}function Pve(){Pve=W,gOe=(OH(),_U),odt=new xt(kQ,gOe),ze(1),sdt=new xt(h3e,ze(300)),ze(0),udt=new xt(d3e,ze(0)),adt=new xt(Xre,dd),cdt=new xt(Kre,5),fdt=_U,ldt=kce}function GQt(e,t){var n;if(t!=null&&!e.c.Fk().dk(t))throw n=he(t,57)?c(t,57).Ah().zb:Up(ju(t)),K(new _6(Y0+e.c.ve()+"'s type '"+e.c.Fk().ve()+"' does not permit a value of type '"+n+"'"))}function QQt(e,t,n){var i,r;for(r=new ss(e.b,0);r.b<r.d.gc();)i=(pn(r.b<r.d.gc()),c(r.d.Xb(r.c=r.b++),70)),Se($(i,($e(),aje)))===Se(t)&&(qve(i.n,Jr(e.c.i),n),iu(r),Ue(t.b,i))}function wtt(e){var t,n;return n=p.Math.sqrt((e.k==null&&(e.k=owe(e,new Hf)),ge(e.k)/(e.b*(e.g==null&&(e.g=vXe(e,new O2)),ge(e.g))))),t=Qn(nc(p.Math.round(n))),t=p.Math.min(t,e.f),t}function UQt(){var e,t,n;for(t=0,e=0;e<1;e++){if(n=axe((tn(e,1),"X".charCodeAt(e))),n==0)throw K(new Un((tn(e,2),"Unknown Option: "+"X".substr(e))));t|=n}return t}function JQt(e){var t,n,i,r,o,a;for(t=new Ty,n=new Ty,N0(t,e),N0(n,e);n.b!=n.c;)for(r=c(D4(n),37),a=new J(r.a);a.a<a.c.c.length;)o=c(U(a),9),o.e&&(i=o.e,N0(t,i),N0(n,i));return t}function xc(){Ll(),G0e.call(this),this.j=(Ve(),$o),this.a=new us,new bY,this.f=(qu(2,Lv),new Wc(2)),this.e=(qu(4,Lv),new Wc(4)),this.g=(qu(4,Lv),new Wc(4)),this.b=new f$e(this.e,this.g)}function WQt(e,t){var n,i;return!(it(nt($(t,($e(),Vg))))||(i=t.c.i,e==(Su(),uE)&&i.k==(Wt(),fc))||(n=c($(i,(We(),Ro)),166),n==W1))}function VQt(e,t){var n,i;return!(it(nt($(t,($e(),Vg))))||(i=t.d.i,e==(Su(),aE)&&i.k==(Wt(),fc))||(n=c($(i,(We(),Ro)),166),n==Rm))}function XQt(e,t){var n,i,r,o,a,d,b;for(a=e.d,b=e.o,d=new bf(-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&&W7(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 KQt(e,t){if(t.a)switch(c($(t.b,($e(),hje)),103).g){case 0:case 1:vGt(t);case 2:hr(new Tt(null,new Ct(t.d,16)),new hA),qJt(e.a,t)}else hr(new Tt(null,new Ct(t.d,16)),new hA)}function cL(){cL=W,Y8e=new __("CENTER_DISTANCE",0),rae=new __("CIRCLE_UNDERLAP",1),eTe=new __("RECTANGLE_UNDERLAP",2),sae=new __("INVERTED_OVERLAP",3),Z8e=new __("MINIMUM_ROOT_DISTANCE",4)}function YQt(e){Fxe();var t,n,i,r,o;if(e==null)return null;for(i=e.length,r=i*2,t=Ce(Da,fd,30,r,15,1),n=0;n<i;n++)o=e[n],o<0&&(o+=256),t[n*2]=FW[o>>4],t[n*2+1]=FW[o&15];return od(t,0,t.length)}function ZQt(e){var t,n,i;switch(i=e.c.length,i){case 0:return Nee(),Uft;case 1:return t=c(Ztt(new J(e)),45),mCt(t.jd(),t.kd());default:return n=c(Oh(e,Ce(Dm,pQ,45,e.c.length,0,1)),178),new lge(n)}}function Fg(e,t){switch(t.g){case 1:return M4(e.j,(Ll(),BOe));case 2:return M4(e.j,(Ll(),ROe));case 3:return M4(e.j,(Ll(),FOe));case 4:return M4(e.j,(Ll(),qOe));default:return Mt(),Mt(),Is}}function eUt(e,t){var n,i,r;n=mAt(t,e.e),i=c(Jt(e.g.f,n),15).a,r=e.a.c.length-1,e.a.c.length!=0&&c(Xe(e.a,r),296).c==i?(++c(Xe(e.a,r),296).a,++c(Xe(e.a,r),296).b):Ue(e.a,new Jze(i))}function G0(){G0=W,Zbt=(Pn(),Wk),ewt=lh,Vbt=Um,Xbt=$3,Kbt=fp,Wbt=R3,u8e=VE,Ybt=dx,Pue=(Kxe(),Rbt),Iue=$bt,f8e=qbt,Rue=Qbt,h8e=Hbt,d8e=Gbt,a8e=Bbt,nW=zbt,iW=Fbt,qP=Ubt,g8e=Jbt,l8e=Ibt}function vtt(e,t){var n,i,r,o,a;if(e.e<=t||tLt(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=aC(e,r,!1),n.b<=r&&n.a<=t?(a=r,o=r):i=r,r=(o-i)/2+i;return a}function tUt(e,t,n){var i;i=Qit(e,t,!0),Uet(n,"Recursive Graph Layout",i),Lve(t,ee(Z(CTe,1),It,528,0,[new wg])),ma(t,(Pn(),gx))||Lve(t,ee(Z(CTe,1),It,528,0,[new pK])),Fye(e,t,null,n),xtt(n)}function xtt(e){var t;if(e.p==null)throw K(new oo("The task has not begun yet."));e.b||(e.k&&(t=(Sg(),js(nc(Date.now()),Gg)),e.q=cm(Ga(t,e.o))*1e-9),e.c<e.r&&nwe(e,e.r-e.c),e.b=!0)}function nUt(e){var t,n,i;for(i=new nu,ni(i,new He(e.j,e.k)),n=new ln((!e.a&&(e.a=new Nr(ea,e,5)),e.a));n.e!=n.i.gc();)t=c(fn(n),373),ni(i,new He(t.a,t.b));return ni(i,new He(e.b,e.c)),i}function ytt(e,t,n,i,r){var o,a,d,b,v,k;if(r)for(b=r.a.length,o=new Yp(b),k=(o.b-o.a)*o.c<0?(j0(),yp):new C0(o);k.Ob();)v=c(k.Pb(),15),d=uj(r,v.a),a=new xGe(e,t,n,i),Frt(a.a,a.b,a.c,a.d,d)}function Ive(e,t){var n;if(Se(e)===Se(t))return!0;if(he(t,24)){n=c(t,24);try{return e.gc()==n.gc()&&e.Hc(n)}catch(i){if(i=kr(i),he(i,174)||he(i,214))return!1;throw K(i)}}return!1}function bie(e,t,n,i,r,o){switch(this.c=e,t.g){case 2:if(e.a.Le(r,n)<0)throw K(new Ht(t3e+r+Oct+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 Rve(e,t){var n;Ue(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 iUt(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 rUt(e,t,n){var i,r,o;for(r=new Gt(Xt(sd(n).a.Jc(),new z));gn(r);)i=c(on(r),17),!vs(i)&&!(!vs(i)&&i.c.i.c==i.d.i.c)&&(o=git(e,i,n,new BPe),o.c.length>1&&Rt(t.c,o))}function ktt(e,t,n,i,r){if(i<t||r<n)throw K(new Ht("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 sUt(e){if(he(e,144))return AVt(c(e,144));if(he(e,236))return Lzt(c(e,236));if(he(e,21))return $Qt(c(e,21));throw K(new Ht(_S+Ch(new Qo(ee(Z(Br,1),It,1,5,[e])))))}function oUt(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)yc(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 $ve(e,t,n,i){var r,o,a;if(t.k==(Wt(),Er)){for(o=new Gt(Xt(vr(t).a.Jc(),new z));gn(o);)if(r=c(on(o),17),a=r.c.i.k,a==Er&&e.c.a[r.c.i.c.p]==i&&e.c.a[t.c.p]==n)return!0}return!1}function cUt(e,t,n){var i;n.Tg("YPlacer",1),e.a=ge(be(Ae(t,(ik(),jTe)))),e.b=ge(be(Ae(t,(Pn(),lh)))),(!t.a&&(t.a=new Le(Nn,t,10,11)),t.a).i!=0&&(i=c(Ae(t,(Gd(),qE)),19),jit(e,i,0)),n.Ug()}function lUt(e,t){var n,i,r,o;return t&=63,n=e.h&H1,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),rl(i&au,r&au,o&H1)}function Ott(e,t,n,i){var r;this.b=i,this.e=e==(mm(),TE),r=t[n],this.d=Z2(Sl,[Ge,eh],[172,30],16,[r.length,r.length],2),this.a=Z2(Hn,[Ge,li],[54,30],15,[r.length,r.length],2),this.c=new vve(t,n)}function uUt(e){var t,n,i;for(e.k=new Nme((Ve(),ee(Z(Rs,1),ac,64,0,[$o,Yt,sn,wn,Zt])).length,e.j.c.length),i=new J(e.j);i.a<i.c.c.length;)n=c(U(i),114),t=n.d.j,St(e.k,t,n);e.e=bVt(N4(e.k))}function jtt(e,t){var n,i,r;Cr(e.d,t),n=new C2,ci(e.c,t,n),n.f=dne(t.c),n.a=dne(t.d),n.d=(iC(),r=t.c.i.k,r==(Wt(),ar)||r==Lh),n.e=(i=t.d.i.k,i==ar||i==Lh),n.b=t.c.j==(Ve(),Zt),n.c=t.d.j==sn}function aUt(e){var t,n,i,r,o;for(o=pi,r=pi,i=new J(zy(e));i.a<i.c.c.length;)n=c(U(i),220),t=n.e.e-n.d.e,n.e==e&&t<r?r=t:t<o&&(o=t);return r==pi&&(r=-1),o==pi&&(o=-1),new Ls(ze(r),ze(o))}function fUt(e,t){var n,i,r,o;for(n=t.a.o.a,o=new nd(Jr(t.a).b,t.c,t.f+1),r=new uT(o);r.b<r.d.gc();)if(i=(pn(r.b<r.d.gc()),c(r.d.Xb(r.c=r.b++),26)),i.c.a>=n)return Qj(e,t,i.p),!0;return!1}function Jy(e,t,n,i){var r,o,a,d,b,v;for(a=n.length,o=0,r=-1,v=uVe((tn(t,e.length+1),e.substr(t)),(WZ(),iOe)),d=0;d<a;++d)b=n[d].length,b>o&&cNt(v,uVe(n[d],iOe))&&(r=d,o=b);return r>=0&&(i[0]=t+o),r}function hUt(e,t,n){var i,r,o,a,d,b,v,k;o=e.d.p,d=o.e,b=o.r,e.g=new V_(b),a=e.d.o.c.p,i=a>0?d[a-1]:Ce(e1,Qg,9,0,0,1),r=d[a],v=a<d.length-1?d[a+1]:Ce(e1,Qg,9,0,0,1),k=t==n-1,k?Gee(e.g,r,v):Gee(e.g,i,r)}function Stt(e){var t;return(e.Db&64)!=0?mie(e):(t=new Iu(K4e),!e.a||ti(ti((t.a+=' "',t),e.a),'"'),ti(Rb(ti(Rb(ti(Rb(ti(Rb((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function Ttt(e,t,n){var i,r,o,a,d;for(d=ol(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 Mv(e,a),qs(),c(t,69).vk()?o:o.kd();++i}throw K(new Qc(IC+n+Am+i))}function Ctt(e){var t,n,i;if(t=e.c,t==2||t==7||t==1)return vi(),vi(),pM;for(i=Rye(e),n=null;(t=e.c)!=2&&t!=7&&t!=1;)n||(n=(vi(),vi(),new QT(1)),km(n,i),i=n),km(n,Rye(e));return i}function dUt(e,t,n){return e<0||e>n?Wve(e,n,"start index"):t<0||t>n?Wve(t,n,"end index"):rC("end index (%s) must not be less than start index (%s)",ee(Z(Br,1),It,1,5,[ze(t),ze(e)]))}function Ett(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=qAt(t,o)):o[0].Sm()}catch(a){if(a=kr(a),he(a,81))n=a,Yz(),j_t(he(n,477)?c(n,477).ie():n);else throw K(a)}}return t}function Qj(e,t,n){var i,r,o;for(n!=t.c+t.b.gc()&&OZt(t.a,h$t(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,($e(),cE)),16).Jc();r.Ob();)i=c(r.Pb(),70),_e(i,$ce,(zt(),!0))}function gUt(e,t){var n,i,r;r=RVt(t),_e(t,($e(),yle),r),r&&(i=pi,co(e.f,r)&&(i=c(Ao(co(e.f,r)),15).a),n=c(Xe(t.g,0),17),it(nt($(n,Vg)))||ci(e,r,ze(p.Math.min(c($(n,Ri),15).a,i))))}function pUt(e){var t,n,i,r;for(n=pi,r=!0,t=0;t<e.a.c.length;t++)Oi(c(Xe(e.a,t),9),(We(),AJ))&&(r=!1,i=c($(c(Xe(e.a,t),9),AJ),15).a,n=n<i?n:i);return r&&(n=c(Ke((We(),AJ)),15).a),n}function Mtt(e,t,n){var i,r,o,a,d;for(t.p=-1,d=aw(t,(Gs(),tl)).Jc();d.Ob();)for(a=c(d.Pb(),12),r=new J(a.g);r.a<r.c.c.length;)i=c(U(r),17),o=i.d.i,t!=o&&(o.p<0?n.Ec(i):o.p>0&&Mtt(e,o,n));t.p=0}function mUt(e){var t,n,i,r;for(t=tm(ti(new Iu("Predicates."),"and"),40),n=!0,r=new uT(e);r.b<r.d.gc();)i=(pn(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 Att(e,t,n){var i,r,o;if(!(n<=t+2))for(r=(n-t)/2|0,i=0;i<r;++i)o=(pt(t+i,e.c.length),c(e.c[t+i],12)),Ou(e,t+i,(pt(n-i-1,e.c.length),c(e.c[n-i-1],12))),pt(n-i-1,e.c.length),e.c[n-i-1]=o}function Ntt(e,t){var n,i,r;if(t.c.length!=0){for(n=ttt(e,t),r=!1;!n;)HG(e,t,!0),r=!0,n=ttt(e,t);r&&HG(e,t,!1),i=Kte(t),e.b&&e.b.Fg(i),e.a=GKe(e,(pt(0,t.c.length),c(t.c[0],19))),Ntt(e,i)}}function wie(e,t){var n,i,r;if(i=Lt(e.Ah(),t),n=t-e.gi(),n<0)if(i)if(i.pk())r=e.Fh(i),r>=0?e.hi(r):Yve(e,i);else throw K(new Ht(Y0+i.ve()+DC));else throw K(new Ht(Vut+t+Xut));else ka(e,n,i)}function Bve(e){var t,n;if(n=null,t=!1,he(e,213)&&(t=!0,n=c(e,213).a),t||he(e,266)&&(t=!0,n=""+c(e,266).a),t||he(e,482)&&(t=!0,n=""+c(e,482).a),!t)throw K(new CY(oke));return n}function zve(e,t,n){var i,r,o,a,d,b;for(b=ol(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 K(new Qc(IC+n+Am+i))}function bUt(e,t){var n,i,r,o;if(e.f.c.length==0)return null;for(o=new k4,i=new J(e.f);i.a<i.c.c.length;)n=c(U(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 wUt(e){var t,n,i,r;for(i=e.a.d.j,r=e.a.d.j,n=new J(e.i.d);n.a<n.c.c.length;)t=c(U(n),70),_e(t,(We(),T3),null);i==(Ve(),Yt)||r==Yt?Mg(e,wn,(Of(),Uv),null):Mg(e,Yt,(Of(),Uv),null)}function Fve(e){var t,n,i,r;for(e.e=0,r=Ln(e.f,0);r.b!=r.d.c;)i=c(_n(r),9),i.p>=e.d.b.c.length&&(t=new mc(e.d),t.p=i.p-1,Ue(e.d.b,t),n=new mc(e.d),n.p=i.p,Ue(e.d.b,n)),zr(i,c(Xe(e.d.b,i.p),26))}function vUt(e){var t,n,i,r;for(n=new _i,Os(n,e.o),i=new Jz;n.b!=0;)t=c(n.b==0?null:(pn(n.b!=0),wa(n,n.a.a)),504),r=Cot(e,t,!0),r&&Ue(i.a,t);for(;i.a.c.length!=0;)t=c(Iwe(i),504),Cot(e,t,!1)}function ot(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(Jf(Ih),10),new ga(t,c(mf(t,t.length),10),0)),this.g=e.f}function Q0(){Q0=W,ETe=new v4(xC,0),Ir=new v4("BOOLEAN",1),Ss=new v4("INT",2),Uk=new v4("STRING",3),ls=new v4("DOUBLE",4),Vi=new v4("ENUM",5),Qk=new v4("ENUMSET",6),Rh=new v4("OBJECT",7)}function W7(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),bqe(e,i,o,r-i,a-o)}function _tt(e,t){var n,i;if(e.f){for(;t.Ob();)if(n=c(t.Pb(),76),i=n.Jk(),he(i,104)&&(c(i,20).Bb&sc)!=0&&(!e.e||i.nk()!=y9||i.Jj()!=0)&&n.kd()!=null)return t.Ub(),!0;return!1}else return t.Ob()}function Dtt(e,t){var n,i;if(e.f){for(;t.Sb();)if(n=c(t.Ub(),76),i=n.Jk(),he(i,104)&&(c(i,20).Bb&sc)!=0&&(!e.e||i.nk()!=y9||i.Jj()!=0)&&n.kd()!=null)return t.Pb(),!0;return!1}else return t.Sb()}function Pl(){Pl=W,ACe=ee(Z(st,1),Ge,2,6,[xke,rP,pU,dft,mU,Boe,iU]),MCe=ee(Z(st,1),Ge,2,6,[xke,"empty",rP,iP,"elementOnly"]),NCe=ee(Z(st,1),Ge,2,6,[xke,"preserve","replace",ih]),ms=new Cqe}function qve(e,t,n){var i,r,o;if(t!=n){i=t;do ji(e,i.c),r=i.e,r&&(o=i.d,W2(e,o.b,o.d),ji(e,r.n),i=Jr(r));while(r);i=n;do Hr(e,i.c),r=i.e,r&&(o=i.d,Yze(e,o.b,o.d),Hr(e,r.n),i=Jr(r));while(r)}}function vie(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 SXe(e,o,n));return r=c(Ao(co(i.f,t)),674),r.b=0,r.c=r.f,r.c==0||Nt(c(Xe(r.a,r.b),296)),r}function Ltt(e){var t;this.j=new Qe,this.f=new Tr,this.b=(t=c(Jf(Rs),10),new ga(t,c(mf(t,t.length),10),0)),this.d=Ce(Hn,li,30,(Ve(),ee(Z(Rs,1),ac,64,0,[$o,Yt,sn,wn,Zt])).length,15,1),this.g=e}function rk(){rk=W,QS=new NT("MEDIAN_LAYER",0),tE=new NT("TAIL_LAYER",1),GS=new NT("HEAD_LAYER",2),Jv=new NT("SPACE_EFFICIENT_LAYER",3),b3=new NT("WIDEST_LAYER",4),m3=new NT("CENTER_LAYER",5)}function Hve(e,t,n){var i,r,o;if(!e.b[t.g]){for(e.b[t.g]=!0,i=n,!i&&(i=new pD),ni(i.b,t),o=e.a[t.g].Jc();o.Ob();)r=c(o.Pb(),65),r.b!=t&&Hve(e,r.b,i),r.c!=t&&Hve(e,r.c,i),ni(i.a,r);return i}return null}function xUt(e){switch(e.g){case 0:case 1:case 2:return Ve(),Yt;case 3:case 4:case 5:return Ve(),wn;case 6:case 7:case 8:return Ve(),Zt;case 9:case 10:case 11:return Ve(),sn;default:return Ve(),$o}}function yUt(e,t){var n;return e.c.length==0?!1:(n=IYe((pt(0,e.c.length),c(e.c[0],17)).c.i),Bu(),n==(kv(),M3)||n==E3?!0:Ly(Jc(new Tt(null,new Ct(e,16)),new b8),new RDe(t)))}function xie(e,t){if(he(t,209))return QTt(e,c(t,19));if(he(t,196))return UTt(e,c(t,127));if(he(t,446))return GTt(e,c(t,171));throw K(new Ht(_S+Ch(new Qo(ee(Z(Br,1),It,1,5,[t])))))}function Ptt(e,t,n){var i,r;if(this.f=e,i=c(Jt(e.b,t),263),r=i?i.a:0,lbe(n,r),n>=(r/2|0))for(this.e=i?i.c:null,this.d=r;n++<r;)ZWe(this);else for(this.c=i?i.b:null;n-- >0;)Nbe(this);this.b=t,this.a=null}function kUt(e,t){var n,i;t.a?WVt(e,t):(n=c(BY(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),DZ(e.b,t.b))}function Itt(e,t){var n,i;if(n=c(eo(e.b,t),129),c(c(Ti(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((Cu(),Wm))&&grt(e,t),i=iqt(e,t),Nie(e,t)==(qy(),dp)&&(i+=2*e.w),n.a.a=i}function Rtt(e,t){var n,i;if(n=c(eo(e.b,t),129),c(c(Ti(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((Cu(),Wm))&&prt(e,t),i=nqt(e,t),Nie(e,t)==(qy(),dp)&&(i+=2*e.w),n.a.b=i}function OUt(e,t){var n,i,r,o;for(o=new Qe,i=new J(t);i.a<i.c.c.length;)n=c(U(i),68),Ue(o,new mge(n,!0)),Ue(o,new mge(n,!1));r=new zGe(e),r.a.a.$b(),rUe(o,e.b,new Qo(ee(Z(yht,1),It,690,0,[r])))}function jUt(e,t){var n,i,r;t.Tg("End label pre-processing",1),n=ge(be($(e,(We(),C3)))),i=ge(be($(e,rx))),r=ky(c($(e,Xu),87)),hr(jo(new Tt(null,new Ct(e.b,16)),new r8),new tqe(n,i,r)),t.Ug()}function Gve(e,t){var n,i,r;if(!e.d[t.p]){for(e.d[t.p]=!0,e.a[t.p]=!0,i=new Gt(Xt(Fi(t).a.Jc(),new z));gn(i);)n=c(on(i),17),!vs(n)&&(r=n.d.i,e.a[r.p]?Ue(e.b,n):Gve(e,r));e.a[t.p]=!1}}function sk(e,t,n){var i;switch(i=0,c($(t,(We(),Ro)),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 Oi(t,($e(),Ri))&&(i+=c($(t,Ri),15).a),i}function $tt(e,t,n){var i,r,o;for(n.yc(t,e),Ue(e.n,t),o=e.p.yg(t),t.j==e.p.zg()?kYe(e.e,o):kYe(e.j,o),Lq(e),r=Bd(va(ee(Z(Ea,1),It,22,0,[new A6(t),new s4(t)])));gn(r);)i=c(on(r),12),n._b(i)||$tt(e,i,n)}function SUt(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=Ln(t.b,0);!r&&i.b!=i.d.c;)o=c(_n(i),41),it(nt($(o,(Ii(),ap))))&&(r=o);r&&Wit(e,new y1(r),n),n.Ug()}function Qve(e){var t,n,i;return n=c(Ae(e,(Pn(),Um)),24),n.Gc((Cu(),bx))?(i=c(Ae(e,fp),24),t=new Es(c(Ae(e,$3),8)),i.Gc((uu(),x9))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t):new us}function Uve(e){var t,n,i;if(!e.b){for(i=new CB,n=new S4(uC(e));n.e!=n.i.gc();)t=c(Rne(n),20),(t.Bb&sc)!=0&&Dn(i,t);bv(i),e.b=new yy((c(ae(Pe((E0(),Ut).o),8),20),i.i),i.g),ru(e).b&=-9}return e.b}function Sv(e){var t,n,i;for(n=e.length,i=0;i<n&&(tn(i,e.length),e.charCodeAt(i)<=32);)++i;for(t=n;t>i&&(tn(t-1,e.length),e.charCodeAt(t-1)<=32);)--t;return i>0||t<n?(as(i,t,e.length),e.substr(i,t-i)):e}function TUt(e,t){var n,i,r,o,a,d,b,v;b=c(H7(N4(t.k),Ce(Rs,ac,64,2,0,1)),128),v=t.g,n=CUe(t,b[0]),r=TUe(t,b[1]),i=Yne(e,v,n,r),o=CUe(t,b[1]),d=TUe(t,b[0]),a=Yne(e,v,o,d),i<=a?(t.a=n,t.c=r):(t.a=o,t.c=d)}function Btt(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=Qxe(a,(Gs(),tl),n).Jc();v.Ob();)b=c(v.Pb(),12),o=c(Ao(co(r.f,b)),117),o||(o=new ID(e.d),Rt(i.c,o),$tt(o,b,r))}function V7(e){var t;Mt();var n,i,r,o,a,d;if(he(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 zG(e,t){var n,i,r,o,a,d;for(d=0,o=new Ty,N0(o,t);o.b!=o.c;)for(a=c(D4(o),221),d+=KZe(a.d,a.e),r=new J(a.b);r.a<r.c.c.length;)i=c(U(r),37),n=c(Xe(e.b,i.p),221),n.s||(d+=zG(e,n));return d}function ztt(e,t,n){var i,r;FXe(this),t==(Yb(),up)?Cr(this.r,e.c):Cr(this.w,e.c),n==up?Cr(this.r,e.d):Cr(this.w,e.d),jtt(this,e),i=dne(e.c),r=dne(e.d),ltt(this,i,r,r),this.o=(iC(),p.Math.abs(i-r)<.2)}function Ftt(e,t,n){var i,r,o,a,d,b;if(d=c(Kt(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 HHe(e,n,t),i.bj(b)),he(i,683)?c(i,683).dj(e.a):i.aj()==e.a&&i.cj(null)}function CUt(){var e;return $xt?c(Uj((O0(),rf),_m),2023):(Ktn(),e=c(he(Nc((O0(),rf),_m),589)?Nc(rf,_m):new sGe,589),$xt=!0,Inn(e),min(e),ci((oge(),mCe),e,new RB),eie(e),lo(rf,_m,e),e)}function EUt(e,t,n,i){var r;return r=Jy(e,n,ee(Z(st,1),Ge,2,6,[Are,Nre,_re,Dre,Lre,Pre,Ire]),t),r<0&&(r=Jy(e,n,ee(Z(st,1),Ge,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),t)),r<0?!1:(i.d=r,!0)}function MUt(e,t,n,i){var r;return r=Jy(e,n,ee(Z(st,1),Ge,2,6,[Are,Nre,_re,Dre,Lre,Pre,Ire]),t),r<0&&(r=Jy(e,n,ee(Z(st,1),Ge,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??Ce(Br,It,1,0,5,1)),r.length==0)e.a.set(a,r);else if(o=FKe(e,t,r),o)return o.ld(n);return br(r,r.length,new pF(t,n)),++e.c,++e.b.g,null}function AUt(e){var t,n,i;for(MWt(e),i=new Qe,n=new J(e.a.a.b);n.a<n.c.c.length;)t=c(U(n),84),Ue(i,new bge(t,!0)),Ue(i,new bge(t,!1));kqt(e.c),fD(i,e.b,new Qo(ee(Z(dP,1),It,378,0,[e.c]))),GJt(e)}function lL(e,t){var n,i,r;for(r=new Qe,i=new J(e.c.a.b);i.a<i.c.c.length;)n=c(U(i),60),t.Lb(n)&&(Ue(r,new pge(n,!0)),Ue(r,new pge(n,!1)));yqt(e.e),rUe(r,e.d,new Qo(ee(Z(yht,1),It,690,0,[e.e])))}function NUt(e){var t,n,i,r;for(n=new xn,r=new J(e.d);r.a<r.c.c.length;)i=c(U(r),190),t=c(i.mf(($e(),Lk)),17),co(n.f,t)||ci(n,t,new AGe(t)),Ue(c(Ao(co(n.f,t)),458).b,i);return new Hl(new x1(n))}function _Ut(e,t){var n,i,r,o,a;for(i=new pUe(e.j.c.length),n=null,o=new J(e.j);o.a<o.c.c.length;)r=c(U(o),12),r.j!=n&&(i.b==i.c||uit(i,n,t),Wme(i),n=r.j),a=qnt(r),a&&qme(i,a);i.b==i.c||uit(i,n,t)}function DUt(e,t){var n,i,r;for(i=new ss(e.b,0);i.b<i.d.gc();)n=(pn(i.b<i.d.gc()),c(i.d.Xb(i.c=i.b++),70)),r=c($(n,(We(),xd)),281),r==(kh(),mx)&&(iu(i),Ue(t.b,n),Oi(n,($e(),Lk))||_e(n,Lk,e))}function LUt(e){var t,n,i,r,o;for(t=Vf(new Gt(Xt(Fi(e).a.Jc(),new z))),r=new Gt(Xt(vr(e).a.Jc(),new z));gn(r);)i=c(on(r),17),n=i.c.i,o=Vf(new Gt(Xt(Fi(n).a.Jc(),new z))),t=p.Math.max(t,o);return ze(t)}function Jve(e,t,n){var i,r,o;i=c(Ae(e,(Pn(),XP)),24),r=0,o=0,t.a>n.a&&(i.Gc((xm(),GE))?r=(t.a-n.a)/2:i.Gc(QE)&&(r=t.a-n.a)),t.b>n.b&&(i.Gc((xm(),JE))?o=(t.b-n.b)/2:i.Gc(UE)&&(o=t.b-n.b)),Eve(e,r,o)}function qtt(e,t,n,i,r,o,a,d,b,v,k,T,A){he(e.Cb,89)&&Tv(ru(c(e.Cb,89)),4),Xc(e,n),e.f=a,_j(e,d),Lj(e,b),Nj(e,v),Dj(e,k),Bg(e,T),Pj(e,A),$g(e,!0),Lg(e,r),e.Xk(o),bm(e,t),i!=null&&(e.i=null,RH(e,i))}function Wve(e,t,n){if(e<0)return rC(Zot,ee(Z(Br,1),It,1,5,[n,ze(e)]));if(t<0)throw K(new Ht(ect+t));return rC("%s (%s) must not be greater than size (%s)",ee(Z(Br,1),It,1,5,[n,ze(e),ze(t)]))}function Vve(e,t,n,i,r,o){var a,d,b,v;if(a=i-n,a<7){Tzt(t,n,i,o);return}if(b=n+r,d=i+r,v=b+(d-b>>1),Vve(t,e,b,v,-r,o),Vve(t,e,v,d,-r,o),o.Le(e[v-1],e[v])<=0){for(;n<i;)br(t,n++,e[b++]);return}$Bt(e,b,v,d,t,n,i,o)}function PUt(e,t){var n,i,r,o,a,d,b;for(b=t.d,r=t.b.j,d=new J(b);d.a<d.c.c.length;)for(a=c(U(d),108),o=Ce(Sl,eh,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 IUt(e,t){if(Qbe(),Oi(e,($e(),Ri))&&Oi(t,Ri))return pc(c($(e,Ri),15).a,c($(t,Ri),15).a);throw K(new d4("The BF model order layer assigner requires all real nodes to have a model order."))}function RUt(e,t){if(Ube(),Oi(e,($e(),Ri))&&Oi(t,Ri))return pc(c($(e,Ri),15).a,c($(t,Ri),15).a);throw K(new d4("The DF model order layer assigner requires all real nodes to have a model order."))}function $Ut(e,t){for(e.r=new ID(e.p),sY(e.r,e),Os(e.r.j,e.j),ku(e.j),ni(e.j,t),ni(e.r.e,t),Lq(e),Lq(e.r);e.f.c.length!=0;)aze(c(Xe(e.f,0),135));for(;e.k.c.length!=0;)aze(c(Xe(e.k,0),135));return e.r}function yie(e,t,n){var i,r,o;if(r=Lt(e.Ah(),t),i=t-e.gi(),i<0)if(r)if(r.pk())o=e.Fh(r),o>=0?e.$h(o,n):Cxe(e,r,n);else throw K(new Ht(Y0+r.ve()+DC));else throw K(new Ht(Vut+t+Xut));else Oa(e,i,r,n)}function Htt(e){var t,n;if(e.f){for(;e.n>0;){if(t=c(e.k.Xb(e.n-1),76),n=t.Jk(),he(n,104)&&(c(n,20).Bb&sc)!=0&&(!e.e||n.nk()!=y9||n.Jj()!=0)&&t.kd()!=null)return!0;--e.n}return!1}else return e.n>0}function Gtt(e){var t,n,i,r;if(n=c(e,52).Yh(),n)try{if(i=null,t=Uj((O0(),rf),$rt(Azt(n))),t&&(r=t.Zh(),r&&(i=r.Dl(u8t(n.e)))),i&&i!=e)return Gtt(i)}catch(o){if(o=kr(o),!he(o,63))throw K(o)}return e}function BUt(e,t,n){var i,r,o;n.Tg("Remove overlaps",1),n.bh(t,i4e),i=c(Ae(t,(My(),_3)),19),e.f=i,e.a=Bne(c(Ae(t,(G0(),qP)),304)),r=be(Ae(t,(Pn(),lh))),fy(e,(Ft(r),r)),o=Ev(i),uot(e,t,o,n),n.bh(t,VQ)}function zUt(e){var t,n,i;if(it(nt(Ae(e,(Pn(),YP))))){for(i=new Qe,n=new Gt(Xt(B1(e).a.Jc(),new z));gn(n);)t=c(on(n),74),gw(t)&&it(nt(Ae(t,Aae)))&&Rt(i.c,t);return i}else return Mt(),Mt(),Is}function Qtt(e){if(!e)return vIe(),Kft;var t=e.valueOf?e.valueOf():e;if(t!==e){var n=oce[typeof t];return n?n(t):Gwe(typeof t)}else return e instanceof Array||e instanceof p.Array?new s_(e):new e4(e)}function Utt(e,t,n){var i,r,o;switch(o=e.o,i=c(eo(e.p,n),256),r=i.i,r.b=K7(i),r.a=X7(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}Gie(i),Qie(i)}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=K7(i),r.a=X7(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}Gie(i),Qie(i)}function FUt(e,t){var n,i,r;return he(t.g,9)&&c(t.g,9).k==(Wt(),Ar)?or:(r=z4(t),r?p.Math.max(0,e.b/2-.5):(n=_y(t),n?(i=ge(be(xv(n,(We(),qm)))),p.Math.max(0,i/2-.5)):or))}function qUt(e,t){var n,i,r;return he(t.g,9)&&c(t.g,9).k==(Wt(),Ar)?or:(r=z4(t),r?p.Math.max(0,e.b/2-.5):(n=_y(t),n?(i=ge(be(xv(n,(We(),qm)))),p.Math.max(0,i/2-.5)):or))}function HUt(e,t){var n,i,r,o,a;if(!t.dc()){if(r=c(t.Xb(0),134),t.gc()==1){Dit(e,r,r,1,0,t);return}for(n=1;n<t.gc();)(r.j||!r.o)&&(o=Kqt(t,n),o&&(i=c(o.a,15).a,a=c(o.b,134),Dit(e,r,a,n,i,t),n=i+1,r=a))}}function GUt(e){var t,n,i,r,o,a;for(a=new Hl(e.d),Rr(a,new TA),t=(eQ(),ee(Z(C6e,1),Re,277,0,[Hce,Uce,qce,Vce,Qce,Gce,Wce,Jce])),n=0,o=new J(a);o.a<o.c.c.length;)r=c(U(o),108),i=t[n%t.length],AJt(r,i),++n}function Xve(e,t){var n,i,r,o,a,d,b,v,k,T;return k=null,T=e,a=L1(T,"x"),n=new PLe(t),WWe(n.a,a),d=L1(T,"y"),i=new ILe(t),VWe(i.a,d),b=L1(T,joe),r=new RLe(t),XWe(r.a,b),v=L1(T,Ooe),o=new $Le(t),k=(KWe(o.a,v),v),k}function Tv(e,t){frt(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 QUt(e,t){var n,i,r;if(r=0,t.length>0)try{r=Qu(t,cs,pi)}catch(o){throw o=kr(o),he(o,133)?(i=o,K(new vH(i))):K(o)}return n=(!e.a&&(e.a=new hY(e)),e.a),r<n.i&&r>=0?c(ae(n,r),57):null}function UUt(e,t){if(e<0)return rC(Zot,ee(Z(Br,1),It,1,5,["index",ze(e)]));if(t<0)throw K(new Ht(ect+t));return rC("%s (%s) must be less than size (%s)",ee(Z(Br,1),It,1,5,["index",ze(e),ze(t)]))}function JUt(e){var t,n,i,r,o;if(e==null)return wl;for(o=new dm(Yc,"[","]"),n=e,i=0,r=n.length;i<r;++i)t=n[i],o.a?ti(o.a,o.b):o.a=new Iu(o.d),HT(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 wl;for(o=new dm(Yc,"[","]"),n=e,i=0,r=n.length;i<r;++i)t=n[i],o.a?ti(o.a,o.b):o.a=new Iu(o.d),HT(o.a,""+t);return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}function VUt(e){var t,n,i,r,o;if(e==null)return wl;for(o=new dm(Yc,"[","]"),n=e,i=0,r=n.length;i<r;++i)t=n[i],o.a?ti(o.a,o.b):o.a=new Iu(o.d),HT(o.a,""+t);return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}function XUt(e){var t,n,i,r,o;if(e==null)return wl;for(o=new dm(Yc,"[","]"),n=e,i=0,r=n.length;i<r;++i)t=n[i],o.a?ti(o.a,o.b):o.a=new Iu(o.d),HT(o.a,""+t);return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}function Wtt(e,t){var n,i,r,o,a,d;for(n=e.b.c.length,r=Xe(e.b,t);t*2+1<n&&(i=(o=2*t+1,a=o+1,d=o,a<n&&e.a.Le(Xe(e.b,a),Xe(e.b,o))<0&&(d=a),d),!(e.a.Le(r,Xe(e.b,i))<0));)Ou(e.b,t,Xe(e.b,i)),t=i;Ou(e.b,t,r)}function kie(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 KUt(e,t){var n;if(n=c($(t,(We(),pE)),302),n!=e)throw K(new d4("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 Le(jl,t,21,17)),t.s),o=null,r=0,a=i.i;r<a;++r)switch(n=c(ae(i,r),182),Vb(uo(e,n))){case 2:case 3:!o&&(o=new Qe),Rt(o.c,n)}return o||(Mt(),Mt(),Is)}function Vtt(e,t,n){var i,r,o,a,d,b;for(b=or,o=new J(yit(e.b));o.a<o.c.c.length;)for(r=c(U(o),180),d=new J(yit(t.b));d.a<d.c.c.length;)a=c(U(d),180),i=B$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 K(new c4);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 ZUt(e){var t,n,i,r,o,a,d;for(i=0,n=new J(e.b);n.a<n.c.c.length;)for(t=c(U(n),26),o=new J(t.a);o.a<o.c.c.length;)for(r=c(U(o),9),r.p=i++,d=new J(r.j);d.a<d.c.c.length;)a=c(U(d),12),a.p=i++}function eJt(e,t){Ru();var n,i,r,o,a,d;for(n=null,a=t.Jc();a.Ob();)o=c(a.Pb(),134),!o.o&&(i=s7t(o.a),r=bAt(o.a),d=new lC(i,r,null,c(o.d.a.ec().Jc().Pb(),17)),Ue(d.c,o.a),Rt(e.c,d),n&&Ue(n.d,d),n=d)}function tJt(e){var t,n,i,r,o,a;for(a=L7(e.d,e.e),o=a.Jc();o.Ob();)for(r=c(o.Pb(),12),i=e.e==(Ve(),Zt)?r.e:r.g,n=new J(i);n.a<n.c.c.length;)t=c(U(n),17),!vs(t)&&t.c.i.c!=t.d.i.c&&(eUt(e,t),++e.f,++e.c)}function Xtt(e,t){var n,i;if(t.dc())return Mt(),Mt(),Is;for(i=new Qe,Ue(i,ze(cs)),n=1;n<e.f;++n)e.a==null&&art(e),e.a[n]&&Ue(i,ze(n));return i.c.length==1?(Mt(),Mt(),Is):(Ue(i,ze(pi)),tZt(t,i))}function nJt(e,t){var n,i,r,o,a,d,b;a=t.c.i.k!=(Wt(),ar),b=a?t.d:t.c,n=dHt(t,b).i,r=c(Jt(e.k,b),126),i=e.i[n.p].a,JFe(b.i)<(n.c?Do(n.c.a,n,0):-1)?(o=r,d=i):(o=i,d=r),Sf(ff(df(gf(hf(new $a,0),4),o),d))}function Ktt(e,t,n){var i,r,o,a,d,b;if(n)for(r=n.a.length,i=new Yp(r),d=(i.b-i.a)*i.c<0?(j0(),yp):new C0(i);d.Ob();)a=c(d.Pb(),15),b=Vne(e,ok(fv(n,a.a))),b&&(o=(!t.b&&(t.b=new Et(yn,t,4,7)),t.b),Dn(o,b))}function Ytt(e,t,n){var i,r,o,a,d,b;if(n)for(r=n.a.length,i=new Yp(r),d=(i.b-i.a)*i.c<0?(j0(),yp):new C0(i);d.Ob();)a=c(d.Pb(),15),b=Vne(e,ok(fv(n,a.a))),b&&(o=(!t.c&&(t.c=new Et(yn,t,5,8)),t.c),Dn(o,b))}function uL(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 Ztt(e){var t,n,i;if(t=e.Pb(),!e.Ob())return t;for(i=Mc(ti(new v0,"expected one element but was: <"),t),n=0;n<4&&e.Ob();n++)Mc((i.a+=Yc,i),e.Pb());throw e.Ob()&&(i.a+=", ..."),i.a+=">",K(new Ht(i.a))}function iJt(e){var t,n;return n=-e.a,t=ee(Z(Da,1),fd,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,od(t,0,t.length)}function Kve(e){var t,n,i,r;for(e.g=new $7(c($n(Rs),299)),i=0,n=(Ve(),Yt),t=0;t<e.j.c.length;t++)r=c(Xe(e.j,t),12),r.j!=n&&(i!=t&&L4(e.g,n,new Ls(ze(i),ze(t))),n=r.j,i=t);L4(e.g,n,new Ls(ze(i),ze(t)))}function Yve(e,t){var n,i,r;if(r=Yy((Pl(),ms),e.Ah(),t),r)qs(),c(r,69).vk()||(r=B4(uo(ms,r))),i=(n=e.Fh(r),c(n>=0?e.Ih(n,!0,!0):pw(e,r,!0),164)),c(i,222).Xl(t);else throw K(new Ht(Y0+t.ve()+DC))}function Zve(e){var t,n;return e>-0x800000000000&&e<0x800000000000?e==0?0:(t=e<0,t&&(e=-e),n=ys(p.Math.floor(p.Math.log(e)/.6931471805599453)),(!t||e!=p.Math.pow(2,n))&&++n,n):sYe(nc(e))}function rJt(e){var t,n,i,r,o,a,d;for(o=new Ld,n=new J(e);n.a<n.c.c.length;)t=c(U(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 sJt(e,t,n){n.Tg("Eades radial",1),n.bh(t,VQ),e.d=c(Ae(t,(My(),_3)),19),e.c=ge(be(Ae(t,(G0(),iW)))),e.e=Bne(c(Ae(t,qP),304)),e.a=Jzt(c(Ae(t,g8e),431)),e.b=cGt(c(Ae(t,a8e),355)),QHt(e),n.bh(t,VQ)}function oJt(e,t){if(t.Tg("Target Width Setter",1),ma(e,(Eh(),Xue)))ri(e,(Qd(),lx),be(Ae(e,Xue)));else throw K(new Xh("A target width has to be set if the TargetWidthWidthApproximator should be used."));t.Ug()}function ent(e,t){var n,i,r;return i=new Sh(e),ic(i,t),_e(i,($e(),wJ),t),_e(i,(We(),fr),(es(),Sc)),_e(i,vd,(Hd(),pW)),mu(i,(Wt(),Ar)),n=new xc,_o(n,i),$r(n,(Ve(),Zt)),r=new xc,_o(r,i),$r(r,sn),i}function tnt(e,t){var n,i,r,o,a;for(e.c[t.p]=!0,Ue(e.a,t),a=new J(t.j);a.a<a.c.c.length;)for(o=c(U(a),12),i=new xh(o.b);No(i.a)||No(i.b);)n=c(No(i.a)?U(i.a):U(i.b),17),r=hFt(o,n).i,e.c[r.p]||tnt(e,r)}function nnt(e){var t,n,i,r,o,a,d;for(a=0,n=new ln((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a));n.e!=n.i.gc();)t=c(fn(n),19),d=t.g,r=t.f,i=p.Math.sqrt(d*d+r*r),a=p.Math.max(i,a),o=nnt(t),a=p.Math.max(o,a);return a}function Ul(){Ul=W,pp=new BT("OUTSIDE",0),Z1=new BT("INSIDE",1),sI=new BT("NEXT_TO_PORT_IF_POSSIBLE",2),nM=new BT("ALWAYS_SAME_SIDE",3),tM=new BT("ALWAYS_OTHER_SAME_SIDE",4),Yk=new BT("SPACE_EFFICIENT",5)}function int(e,t,n){var i,r,o,a,d,b;return i=_Lt(e,(r=(y0(),o=new gT,o),n&&VG(r,n),r),t),bj(i,E1(t,md)),PG(t,i),hWt(t,i),Xve(t,i),a=t,d=ew(a,"ports"),b=new cBe(e,i),mit(b.a,b.b,d),tne(e,t,i),N$t(e,t,i),i}function cJt(e){var t,n;return n=-e.a,t=ee(Z(Da,1),fd,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,od(t,0,t.length)}function lJt(e){var t,n,i,r,o;if(e==null)return wl;for(o=new dm(Yc,"[","]"),n=e,i=0,r=n.length;i<r;++i)t=n[i],o.a?ti(o.a,o.b):o.a=new Iu(o.d),HT(o.a,""+t7(t));return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}function exe(e,t){var n,i,r;for(r=pi,i=new J(zy(t));i.a<i.c.c.length;)n=c(U(i),220),n.f&&!e.c[n.c]&&(e.c[n.c]=!0,r=p.Math.min(r,exe(e,oG(n,t))));return e.i[t.d]=e.j,e.g[t.d]=p.Math.min(r,e.j++),e.g[t.d]}function rnt(e,t){var n,i,r;for(r=c(c(Ti(e.r,t),24),85).Jc();r.Ob();)i=c(r.Pb(),116),i.e.b=(n=i.b,n.nf((Pn(),fu))?n.$f()==(Ve(),Yt)?-n.Kf().b-ge(be(n.mf(fu))):ge(be(n.mf(fu))):n.$f()==(Ve(),Yt)?-n.Kf().b:0)}function txe(e){var t,n,i,r,o;t=e.a,n=e.b,r=e.c,i=new He(n.e.a+n.f.a/2,n.e.b+n.f.b/2),o=new He(r.e.a+r.f.a/2,r.e.b+r.f.b/2),sr(t,i,t.a,t.a.a),sr(t,o,t.c.b,t.c),utt(i,c(vc(t,1),8),e.b.f),utt(o,c(vc(t,t.b-2),8),e.c.f)}function snt(e,t){var n,i,r,o;if(r=(!t.e&&(t.e=new Et($i,t,7,4)),t.e).i,r==0)return t.i;for(i=0,o=0,n=0;n<r;n++)o=snt(e,c(ae(rj(c(ae((!t.e&&(t.e=new Et($i,t,7,4)),t.e),n),74)),0),19)),i=o<i?o:i;return i+t.i}function ok(e){var t,n;if(n=!1,he(e,213))return n=!0,c(e,213).a;if(!n&&he(e,266)&&(t=c(e,266).a%1==0,t))return n=!0,ze(MTt(c(e,266).a));throw K(new Kh("Id must be a string or an integer: '"+e+"'."))}function uJt(e,t){var n,i,r,o,a,d;for(o=null,r=new wHe((!e.a&&(e.a=new hY(e)),e.a));oxe(r);)if(n=c(GG(r),57),i=(a=n.Ah(),d=(Ky(a),a.o),!d||!n.Uh(d)?null:X0e(Wte(d),n.Jh(d))),i!=null&&jt(i,t)){o=n;break}return o}function ont(e,t){var n;this.e=($n(e),E2e(e)),this.c=($n(t),E2e(t)),u0e(this.e.Pd().dc()==this.c.Pd().dc()),this.d=yYe(this.e),this.b=yYe(this.c),n=Z2(Br,[Ge,It],[5,1],5,[this.e.Pd().gc(),this.c.Pd().gc()],2),this.a=n,ARt(this)}function cnt(e,t,n){var i,r,o,a,d;if(qu(n,"occurrences"),n==0)return d=c(wv(R4(e.a),t),18),d?d.gc():0;if(a=c(wv(R4(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 aJt(e,t,n){var i,r,o,a;return qu(n,"oldCount"),qu(0,"newCount"),i=c(wv(R4(e.a),t),18),(i?i.gc():0)==n?(qu(0,"count"),r=(o=c(wv(R4(e.a),t),18),o?o.gc():0),a=-r,a>0?$1e():a<0&&cnt(e,t,-a),!0):!1}function fJt(e){var t;return t=ee(Z(Da,1),fd,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,od(t,0,t.length)}function X7(e){var t,n,i,r,o,a,d;if(d=0,e.b==0){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))}else d=TIe(Hte(rv(bi(vee(e.a),new cf),new lb)));return d>0?d+e.n.d+e.n.a:0}function K7(e){var t,n,i,r,o,a,d;if(d=0,e.b==0)d=TIe(Hte(rv(bi(vee(e.a),new qf),new lg)));else{for(a=LZe(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 hJt(e){var t,n;if(e.c.length!=2)throw K(new oo("Order only allowed for two paths."));t=(pt(0,e.c.length),c(e.c[0],17)),n=(pt(1,e.c.length),c(e.c[1],17)),t.d.i!=n.c.i&&(e.c.length=0,Rt(e.c,n),Rt(e.c,t))}function lnt(e,t,n){var i;for(Fb(n,t.g,t.f),ha(n,t.i,t.j),i=0;i<(!t.a&&(t.a=new Le(Nn,t,10,11)),t.a).i;i++)lnt(e,c(ae((!t.a&&(t.a=new Le(Nn,t,10,11)),t.a),i),19),c(ae((!n.a&&(n.a=new Le(Nn,n,10,11)),n.a),i),19))}function dJt(e,t){var n,i,r,o;for(o=c(eo(e.b,t),129),n=o.a,r=c(c(Ti(e.r,t),24),85).Jc();r.Ob();)i=c(r.Pb(),116),i.c&&(n.a=p.Math.max(n.a,jpe(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 gJt(e,t){var n,i,r;return n=c($(t,(Tf(),Ek)),15).a-c($(e,Ek),15).a,n==0?(i=Hr(Ms(c($(e,(L0(),hP)),8)),c($(e,KC),8)),r=Hr(Ms(c($(t,hP),8)),c($(t,KC),8)),Ci(i.a*i.b,r.a*r.b)):n}function pJt(e,t){var n,i,r;return n=c($(t,(Wo(),YJ)),15).a-c($(e,YJ),15).a,n==0?(i=Hr(Ms(c($(e,(Ii(),BP)),8)),c($(e,o9),8)),r=Hr(Ms(c($(t,BP),8)),c($(t,o9),8)),Ci(i.a*i.b,r.a*r.b)):n}function unt(e){var t,n;return n=new v0,n.a+="e_",t=S$t(e),t!=null&&(n.a+=""+t),e.c&&e.d&&(ti((n.a+=" ",n),EG(e.c)),ti(Mc((n.a+="[",n),e.c.i),"]"),ti((n.a+=ese,n),EG(e.d)),ti(Mc((n.a+="[",n),e.d.i),"]")),n.a}function ant(e){switch(e.g){case 0:return new gz;case 1:return new JN;case 2:return new VN;case 3:return new HK;default:throw K(new Ht("No implementation is available for the layout phase "+(e.f!=null?e.f:""+e.g)))}}function nxe(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 fnt(e,t,n){var i,r,o,a,d;if(n)for(r=n.a.length,i=new Yp(r),d=(i.b-i.a)*i.c<0?(j0(),yp):new C0(i);d.Ob();)a=c(d.Pb(),15),o=uj(n,a.a),tke in o.a||Eoe in o.a?kKt(e,o,t):Unn(e,o,t),E7t(c(Jt(e.c,Rj(o)),74))}function ixe(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&&(qs(),t.jk()==Yat)?(e.b=-1,!0):(e.b=1,!1));default:case 1:return!1}}function rxe(e,t){var n,i,r,o;if(wi(e),e.c!=0||e.a!=123)throw K(new Un(Xn((Fn(),xat))));if(o=t==112,i=e.d,n=Q6(e.i,125,i),n<0)throw K(new Un(Xn((Fn(),yat))));return r=qa(e.i,i,n),e.d=n+1,aWe(r,o,(e.e&512)==512)}function mJt(e){var t,n,i,r,o,a,d;for(d=Pd(e.c.length),r=new J(e);r.a<r.c.c.length;){for(i=c(U(r),9),a=new Tr,o=Fi(i),n=new Gt(Xt(o.a.Jc(),new z));gn(n);)t=c(on(n),17),t.c.i==t.d.i||Cr(a,t.d.i);Rt(d.c,a)}return d}function bJt(e,t){var n,i,r;if(!t)Pte(e,null),mj(e,null);else if((t.i&4)!=0)for(i="[]",n=t.c;;n=n.c){if((n.i&4)==0){r=R1e((j1(n),n.o+i)),Pte(e,r),mj(e,r);break}i+="[]"}else r=R1e((j1(t),t.o)),Pte(e,r),mj(e,r);e.fl(t)}function Y7(e,t,n,i,r){var o,a,d,b;return b=zZ(e,c(r,57)),Se(b)!==Se(r)?(d=c(e.g[n],76),o=Fd(t,b),JT(e,n,lie(e,n,o)),bu(e.e)&&(a=A0(e,9,o.Jk(),r,b,i,!1),pve(a,new N1(e.e,9,e.c,d,o,i,!1)),xte(a)),b):r}function hnt(e,t){var n,i,r;try{return r=eLt(e.a,t),r}catch(o){if(o=kr(o),he(o,33)){try{if(i=Qu(t,cs,pi),n=Jf(e.a),i>=0&&i<n.length)return n[i]}catch(a){if(a=kr(a),!he(a,133))throw K(a)}return null}else throw K(o)}}function Oie(e,t){var n,i,r;if(r=Yy((Pl(),ms),e.Ah(),t),r)return qs(),c(r,69).vk()||(r=B4(uo(ms,r))),i=(n=e.Fh(r),c(n>=0?e.Ih(n,!0,!0):pw(e,r,!0),164)),c(i,222).Ul(t);throw K(new Ht(Y0+t.ve()+voe))}function wJt(){cge();var e;return mxt?c(Uj((O0(),rf),Wa),2017):(ui(Dm,new Eb),gtn(),e=c(he(Nc((O0(),rf),Wa),552)?Nc(rf,Wa):new eGe,552),mxt=!0,din(e),vin(e),ci((oge(),mCe),e,new f6),lo(rf,Wa,e),e)}function vJt(e,t){var n,i,r,o;e.j=-1,bu(e.e)?(n=e.i,o=e.i!=0,gD(e,t),i=new N1(e.e,3,e.c,null,t,n,o),r=t.xl(e.e,e.c,null),r=$et(e,t,r),r?(r.lj(i),r.mj()):yi(e.e,i)):(gD(e,t),r=t.xl(e.e,e.c,null),r&&r.mj())}function FG(e,t){var n,i,r;if(r=0,i=t[0],i>=e.length)return-1;for(n=(tn(i,e.length),e.charCodeAt(i));n>=48&&n<=57&&(r=r*10+(n-48),++i,!(i>=e.length));)n=(tn(i,e.length),e.charCodeAt(i));return i>t[0]?t[0]=i:r=-1,r}function xJt(e,t,n){var i,r,o,a,d;a=e.c,d=e.d,o=Lo(ee(Z(Vr,1),Ge,8,0,[a.i.n,a.n,a.a])).b,r=(o+Lo(ee(Z(Vr,1),Ge,8,0,[d.i.n,d.n,d.a])).b)/2,i=null,a.j==(Ve(),sn)?i=new He(t+a.i.c.c.a+n,r):i=new He(t-n,r),G6(e.a,0,i)}function gw(e){var t,n,i,r;for(t=null,i=Bd(va(ee(Z(Ea,1),It,22,0,[(!e.b&&(e.b=new Et(yn,e,4,7)),e.b),(!e.c&&(e.c=new Et(yn,e,5,8)),e.c)])));gn(i);)if(n=c(on(i),83),r=no(n),!t)t=r;else if(t!=r)return!1;return!0}function jie(e,t,n){var i;if(++e.j,t>=e.i)throw K(new Qc(Aoe+t+Am+e.i));if(n>=e.i)throw K(new Qc(Noe+n+Am+e.i));return i=e.g[n],t!=n&&(t<n?yc(e.g,t,e.g,t+1,n-t):yc(e.g,n+1,e.g,n,t-n),br(e.g,t,i),e.Ni(t,i,n),e.Li()),i}function St(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 K(new Yme("New Collection violated the Collection spec"))}function aL(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-Pv,t=i>>16&4,n+=t,e<<=t,i=e-ad,t=i>>16&2,n+=t,e<<=t,i=e>>14,t=i&~(i>>1),n+2-t)}function yJt(e,t){var n,i,r;for(r=new Qe,i=Ln(t.a,0);i.b!=i.d.c;)n=c(_n(i),65),n.c.g==e.g&&Se($(n.b,(Wo(),yd)))!==Se($(n.c,yd))&&!Ly(new Tt(null,new Ct(r,16)),new VDe(n))&&Rt(r.c,n);return Rr(r,new E2),r}function dnt(e,t,n){var i,r,o,a;return he(t,156)&&he(n,156)?(o=c(t,156),a=c(n,156),e.a[o.a][a.a]+e.a[a.a][o.a]):he(t,254)&&he(n,254)&&(i=c(t,254),r=c(n,254),i.a==r.a)?c($(r.a,(Tf(),Ek)),15).a:0}function gnt(e,t){var n,i,r,o,a,d,b,v;for(v=ge(be($(t,(We(),vE)))),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 kJt(e,t){var n,i,r,o,a,d;return i=c(c(Jt(e.g,t.a),49).a,68),r=c(c(Jt(e.g,t.b),49).a,68),o=i.b,a=r.b,n=KZt(o,a),n>=0?n:(d=c7(Hr(new He(a.c+a.b/2,a.d+a.a/2),new He(o.c+o.b/2,o.d+o.a/2))),-(Jrt(o,a)-1)*d)}function OJt(e,t,n){var i;hr(new Tt(null,(!n.a&&(n.a=new Le(Qi,n,6,6)),new Ct(n.a,16))),new U$e(e,t)),hr(new Tt(null,(!n.n&&(n.n=new Le(Bo,n,1,7)),new Ct(n.n,16))),new J$e(e,t)),i=c(Ae(n,(Pn(),I3)),79),i&&cwe(i,e,t)}function pw(e,t,n){var i,r,o;if(o=Yy((Pl(),ms),e.Ah(),t),o)return qs(),c(o,69).vk()||(o=B4(uo(ms,o))),r=(i=e.Fh(o),c(i>=0?e.Ih(i,!0,!0):pw(e,o,!0),164)),c(r,222).Ql(t,n);throw K(new Ht(Y0+t.ve()+voe))}function sxe(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&&ki(i,a.jd()))return a}else for(d=0;d<b;++d)if(a=c(o[d],138),Se(a.jd())===Se(i))return a}return null}function jJt(e,t){var n,i,r,o,a;for(i=(!t.s&&(t.s=new Le(jl,t,21,17)),t.s),o=null,r=0,a=i.i;r<a;++r)switch(n=c(ae(i,r),182),Vb(uo(e,n))){case 4:case 5:case 6:{!o&&(o=new Qe),Rt(o.c,n);break}}return o||(Mt(),Mt(),Is)}function fL(e,t){var n;if(t<0)throw K(new Kz("Negative exponent"));if(t==0)return SU;if(t==1||d2e(e,SU)||d2e(e,JC))return e;if(!Fnt(e,0)){for(n=1;!Fnt(e,n);)++n;return Dy(Gzt(n*t),fL(ebe(e,n),t))}return KGt(e,t)}function SJt(e,t){var n,i,r;if(Se(e)===Se(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],!(Se(i)===Se(r)||i!=null&&ki(i,r)))return!1;return!0}function pnt(e){ige();var t,n,i;for(this.b=Qdt,this.c=(_r(),zh),this.f=(QRe(),Gdt),this.a=e,H1e(this,new g2),XG(this),i=new J(e.b);i.a<i.c.c.length;)n=c(U(i),84),n.d||(t=new Nne(ee(Z(Ece,1),It,84,0,[n])),Ue(e.a,t))}function mnt(e){bme();var t,n;for(this.b=Oht,this.c=Sht,this.g=(URe(),kht),this.d=(_r(),zh),this.a=e,_xe(this),n=new J(e.b);n.a<n.c.c.length;)t=c(U(n),60),!t.a&&Ize(qVe(new x1e,ee(Z(MU,1),It,60,0,[t])),e),t.e=new Gq(t.d)}function TJt(e,t,n){var i,r,o,a,d,b;if(!e||e.c.length==0)return null;for(o=new QGe(t,!n),r=new J(e);r.a<r.c.c.length;)i=c(U(r),70),Rve(o,(OT(),new Bz(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 bnt(e){var t,n,i,r,o,a,d;for(d=aD(e.a),Jge(d,new o8),n=null,r=d,o=0,a=r.length;o<a&&(i=r[o],i.k==(Wt(),Ar));++o)t=c($(i,($e(),Zo)),64),!(t!=(Ve(),Zt)&&t!=sn)&&(n&&c($(n,Pk),16).Ec(i),n=i)}function CJt(e,t,n){var i,r,o,a,d,b,v;b=(pt(t,e.c.length),c(e.c[t],341)),Ng(e,t),b.b/2>=n&&(i=t,v=(b.c+b.a)/2,a=v-n,b.c<=v-n&&(r=new YZ(b.c,a),Xp(e,i++,r)),d=v+n,d<=b.a&&(o=new YZ(d,b.a),cv(i,e.c.length),AT(e.c,i,o)))}function wnt(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,ze(d.g),ze(n)),a=(i=Ln(new y1(d).a.d,0),new dy(i));m_(a.a);)o=c(_n(a.a),65).c,sr(r,o,r.c.b,r.c);wnt(e,r,n+1)}}function oxe(e){var t;if(!e.c&&e.g==null)e.d=e._i(e.f),Dn(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()?(GG(e),oxe(e)):t.Ob()}function vnt(e){if(this.a=e,e.c.i.k==(Wt(),Ar))this.c=e.c,this.d=c($(e.c.i,($e(),Zo)),64);else if(e.d.i.k==Ar)this.c=e.d,this.d=c($(e.d.i,($e(),Zo)),64);else throw K(new Ht("Edge "+e+" is not an external edge."))}function xnt(e,t){var n,i,r;r=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,3,r,e.b)),t?t!=e&&(Xc(e,t.zb),_te(e,t.d),n=(i=t.c,i??t.zb),Lte(e,n==null||jt(n,t.zb)?null:n)):(Xc(e,null),_te(e,0),Lte(e,null))}function ynt(e){!rce&&(rce=ynn());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 rDt(n)});return'"'+t+'"'}function cxe(e,t,n,i,r,o){var a,d,b,v,k;if(r!=0)for(Se(e)===Se(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,k=e.slice(d,a),k.splice(0,0,i,o?r:0),Array.prototype.splice.apply(b,k),d=a,i+=r}function EJt(e){var t,n,i,r,o,a;for(r=e.e.c.length,i=Ce(Vu,Iv,16,r,0,1),a=new J(e.e);a.a<a.c.c.length;)o=c(U(a),156),i[o.a]=new _i;for(n=new J(e.c);n.a<n.c.c.length;)t=c(U(n),292),i[t.c.a].Ec(t),i[t.d.a].Ec(t);return i}function MJt(e,t){var n,i,r,o,a;if(n=c(Kt(e.a,4),131),a=n==null?0:n.length,t>=a)throw K(new K2(t,a));return r=n[t],a==1?i=null:(i=Ce(Zae,Ioe,420,a-1,0,1),yc(n,0,i,0,t),o=a-t-1,o>0&&yc(n,t+1,i,t,o)),Bj(e,i),Ftt(e,t,r),r}function knt(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(),he(n,104)&&(c(n,20).Bb&sc)!=0&&(!e.e||n.nk()!=y9||n.Jj()!=0)&&t.kd()!=null)return!0;++e.n}return!1}else return e.n<e.o}function ck(){ck=W,tO=c(ae(Pe((W1e(),oc).qb),6),38),eO=c(ae(Pe(oc.qb),3),38),sfe=c(ae(Pe(oc.qb),4),38),ofe=c(ae(Pe(oc.qb),5),20),NG(tO),NG(eO),NG(sfe),NG(ofe),xxt=new Qo(ee(Z(jl,1),u3,182,0,[tO,eO]))}function Ont(e,t){var n;this.d=new dT,this.b=t,this.e=new Es(t.Jf()),n=e.u.Gc((Ul(),sI)),e.u.Gc(Z1)?e.F?this.a=n&&!t._f():this.a=!0:e.u.Gc(pp)?n?this.a=!(t.Sf().Jc().Ob()||t.Uf().Jc().Ob()):this.a=!1:this.a=!1}function jnt(e,t){var n,i,r,o;for(n=e.o.a,o=c(c(Ti(e.r,t),24),85).Jc();o.Ob();)r=c(o.Pb(),116),r.e.a=(i=r.b,i.nf((Pn(),fu))?i.$f()==(Ve(),Zt)?-i.Kf().a-ge(be(i.mf(fu))):n+ge(be(i.mf(fu))):i.$f()==(Ve(),Zt)?-i.Kf().a:n)}function Snt(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=O1(Hr(new He(d.a,d.b),a),1/(i+1)),o=new He(a.a,a.b),n=new J(e.a);n.a<n.c.c.length;)t=c(U(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 Tnt(e,t){var n,i,r,o;n=c($(e,(We(),Xu)),87),o=c(Ae(t,e9),64),r=c($(e,fr),103),r!=(es(),Fh)&&r!=gp?o==(Ve(),$o)&&(o=dye(t,n),o==$o&&(o=K4(n))):(i=Dst(t),i>0?o=K4(n):o=JD(K4(n))),ri(t,e9,o)}function Cnt(e,t){var n,i;if(e.c.length!=0){if(e.c.length==2)fk((pt(0,e.c.length),c(e.c[0],9)),(Gu(),n1)),fk((pt(1,e.c.length),c(e.c[1],9)),hp);else for(i=new J(e);i.a<i.c.c.length;)n=c(U(i),9),fk(n,t);e.c.length=0}}function AJt(e,t){var n,i,r,o,a;for(a=e.j,t.a!=t.b&&Rr(a,new t$),r=a.c.length/2|0,i=0;i<r;i++)o=(pt(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=(pt(n,a.c.length),c(a.c[n],114)),o.c&&$r(o.d,t.b)}function lk(e,t,n,i){var r;switch(r=0,c($(t,(We(),Ro)),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 Oi(t,($e(),Ri))&&(r+=c($(t,Xv),15).a*i+c($(t,Ri),15).a),r}function NJt(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=gee(i.a,r.a),o<0?bL(e,t,n):o>0&&bL(e,n,t),o):i.a!=null?(bL(e,t,n),-1):r.a!=null?(bL(e,n,t),1):0}function Ent(e){Uee();var t,n,i,r,o,a,d;for(n=new _0,r=new J(e.e.b);r.a<r.c.c.length;)for(i=c(U(r),26),a=new J(i.a);a.a<a.c.c.length;)o=c(U(a),9),d=e.g[o.p],t=c(yh(n,d),16),t||(t=new Qe,wm(n,d,t)),t.Ec(o);return n}function _Jt(e,t){var n,i,r,o,a;for(r=t.b.b,e.a=Ce(Vu,Iv,16,r,0,1),e.b=Ce(Sl,eh,30,r,16,1),a=Ln(t.b,0);a.b!=a.d.c;)o=c(_n(a),41),e.a[o.g]=new _i;for(i=Ln(t.a,0);i.b!=i.d.c;)n=c(_n(i),65),e.a[n.b.g].Ec(n),e.a[n.c.g].Ec(n)}function Mnt(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)):(GHe(e,t),e.Kj()&&(r=e.Lj(t,null),r&&r.mj()))}function lxe(e,t,n){var i,r,o;e.Nj()?(o=e.Oj(),GD(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)):(GD(e,t,n),e.Kj()&&(r=e.Lj(n,null),r&&r.mj()))}function qG(e,t){var n,i,r,o,a;for(a=ol(e.e.Ah(),t),r=new B5,n=c(e.g,123),o=e.i;--o>=0;)i=n[o],a.$l(i.Jk())&&Dn(r,i);!_ot(e,r)&&bu(e.e)&&N6(e,t.Hk()?A0(e,6,t,(Mt(),Is),null,-1,!1):A0(e,t.rk()?2:1,t,null,null,-1,!1))}function DJt(e,t){var n,i,r,o,a;return e.a==(Gj(),iE)?!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 Ant(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 J(e);o.a<o.c.c.length;){for(r=c(U(o),9),_e(r,(We(),vd),(Hd(),pW)),r.o.a=i,d=Fg(r,(Ve(),sn)).Jc();d.Ob();)a=c(d.Pb(),12),a.n.a=i;i+=b}}function Nnt(e){var t;return(e.Db&64)!=0?jf(e):(t=new za(jf(e)),t.a+=" (startX: ",gy(t,e.j),t.a+=", startY: ",gy(t,e.k),t.a+=", endX: ",gy(t,e.b),t.a+=", endY: ",gy(t,e.c),t.a+=", identifier: ",Zs(t,e.d),t.a+=")",t.a)}function uxe(e){var t;return(e.Db&64)!=0?D7(e):(t=new za(D7(e)),t.a+=" (ordered: ",Og(t,(e.Bb&256)!=0),t.a+=", unique: ",Og(t,(e.Bb&512)!=0),t.a+=", lowerBound: ",PY(t,e.s),t.a+=", upperBound: ",PY(t,e.t),t.a+=")",t.a)}function _nt(e,t,n,i,r,o,a,d){var b;return he(e.Cb,89)&&Tv(ru(c(e.Cb,89)),4),Xc(e,n),e.f=i,_j(e,r),Lj(e,o),Nj(e,a),Dj(e,!1),Bg(e,!0),Pj(e,d),$g(e,!0),Lg(e,0),e.b=0,dv(e,1),b=Th(e,t,null),b&&b.mj(),wne(e,!1),e}function Dnt(e,t){var n,i,r,o;return n=c(Nc(e.a,t),515),n||(i=new cte(t),r=(uH(),Dh?null:i.c),o=qa(r,0,p.Math.max(0,KF(r,ml(46)))),HCt(i,Dnt(e,o)),(Dh?null:i.c).length==0&&uFe(i,new xi),lo(e.a,Dh?null:i.c,i),i)}function LJt(e,t){var n,i;return Oi(e,($e(),S3))?Oi(t,S3)?(n=be($(e,S3)),i=be($(t,S3)),n!=null&&i!=null?Ci((Ft(n),n),(Ft(i),i)):n!=null?-1:i!=null?1:0):-1:1}function Lnt(){this.a=new yB,this.n=new jG,this.p=new jG,this.c=new xn,this.f=new jG,this.o=new jG,this.q=new xn,this.d=new xn,this.g=new xn,this.k=new xn,this.e=new xn,this.i=new xn,this.j=new xn,this.r=new xn,this.b=new xn}function uk(e,t,n){var i,r,o,a,d,b;return d=e.nl(n),d!=n?(a=e.g[t],b=d,JT(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)&&N6(e,e.Gj(9,n,d,t,!1)),d):n}function PJt(e,t){var n,i,r,o;for(i=new J(e.a.a);i.a<i.c.c.length;)n=c(U(i),197),n.g=!0;for(o=new J(e.a.b);o.a<o.c.c.length;)r=c(U(o),84),r.k=it(nt(e.e.Kb(new Ls(r,t)))),r.d.g=r.d.g&it(nt(e.e.Kb(new Ls(r,t))));return e}function Pnt(e,t,n){var i,r,o,a,d;if(!e.d[n.p]){for(r=new Gt(Xt(Fi(n).a.Jc(),new z));gn(r);){for(i=c(on(r),17),d=i.d.i,a=new Gt(Xt(vr(d).a.Jc(),new z));gn(a);)o=c(on(a),17),o.c.i==t&&(e.a[o.p]=!0);Pnt(e,t,d)}e.d[n.p]=!0}}function IJt(e,t){var n,i,r,o,a,d,b;if(i=fYe(e.Db&254),i==1)e.Eb=null;else if(o=U4(e.Eb),i==2)r=Kne(e,t),e.Eb=o[r==0?1:0];else{for(a=Ce(Br,It,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 axe(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=Ua}return t}function RJt(e,t,n,i,r){var o,a,d,b;if(Se(e)===Se(t)&&i==r){Brt(e,i,n);return}for(d=0;d<i;d++){for(a=0,o=e[d],b=0;b<r;b++)a=As(As(js(Zr(o,Us),Zr(t[b],Us)),Zr(n[d+b],Us)),Zr(Qn(a),Us)),n[d+b]=Qn(a),a=Zp(a,32);n[d+r]=Qn(a)}}function Int(e){var t,n,i,r,o;if(n=(t=c(Jf(Rs),10),new ga(t,c(mf(t,t.length),10),0)),o=c($(e,($e(),Wl)),9),o)for(r=new J(o.j);r.a<r.c.c.length;)i=c(U(r),12),Se($(i,Si))===Se(e)&&VT(new xh(i.b))&&kf(n,i.j);return n}function $Jt(e,t){var n,i,r;for(i=new J(e.i.d);i.a<i.c.c.length;)n=c(U(i),70),_e(n,(We(),T3),null);switch(t.g){case 2:case 4:r=e.a,e.c.d.n.b<r.d.n.b&&(r=e.c),Mg(e,t,(Of(),zce),r);break;case 1:case 3:Mg(e,t,(Of(),Uv),null)}}function Rnt(e,t){t.b!=0&&(isNaN(e.s)?e.s=ge((pn(t.b!=0),be(t.a.a.c))):e.s=p.Math.min(e.s,ge((pn(t.b!=0),be(t.a.a.c)))),isNaN(e.c)?e.c=ge((pn(t.b!=0),be(t.c.b.c))):e.c=p.Math.max(e.c,ge((pn(t.b!=0),be(t.c.b.c)))))}function Z7(e){var t,n,i,r;for(t=null,i=Bd(va(ee(Z(Ea,1),It,22,0,[(!e.b&&(e.b=new Et(yn,e,4,7)),e.b),(!e.c&&(e.c=new Et(yn,e,5,8)),e.c)])));gn(i);)if(n=c(on(i),83),r=no(n),!t)t=Ki(r);else if(t!=Ki(r))return!0;return!1}function Sie(e,t){var n,i,r,o;e.Nj()?(n=e.i,o=e.Oj(),gD(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)):(gD(e,t),e.Kj()&&(r=e.Lj(t,null),r&&r.mj()))}function BJt(e,t){var n,i,r,o;if(o=nD(e.a,t.b),!o)throw K(new oo("Invalid hitboxes for scanline overlap calculation."));for(r=!1,i=e.a.a.ec().Jc();i.Ob();)if(n=c(i.Pb(),68),U$t(t.b,n))$8t(e.b.a,t.b,n),r=!0;else if(r)break}function zJt(e){var t;if(!e.a)throw K(new oo("IDataType class expected for layout option "+e.f));if(t=cPt(e.a),t==null)throw K(new oo("Couldn't create new instance of property '"+e.f+"'. "+dut+(j1(vI),vI.k)+q4e));return c(t,419)}function Tie(e){var t,n,i,r,o;return o=e.Mh(),o&&o.Sh()&&(r=B0(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 Ur(e,9,n,o,r)),r):o}function fxe(e,t){var n,i,r,o,a;for(o=e.b.Ae(t),i=(n=e.a.get(o),n??Ce(Br,It,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,CCt(e.a,o)):i.splice(a,1),--e.c,++e.b.g,r.kd();return null}function $nt(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=(pt(i,o.c.length),c(o.c[i],156)),r=i+1;r<o.c.length;++r)b=(pt(r,o.c.length),c(o.c[r],156)),n=D0(d.d,b.d),t=n-e.a[d.a][b.a],a+=e.i[d.a][b.a]*t*t;return a}function FJt(e,t){var n;if(!Oi(t,(We(),Ro))&&(n=OHt(c($(t,O6e),368),c($(e,Ro),166)),_e(t,O6e,n),!gn(new Gt(Xt(sd(t).a.Jc(),new z)))))switch(n.g){case 1:_e(t,Ro,(Su(),uE));break;case 2:_e(t,Ro,(Su(),aE))}}function qJt(e,t){var n;nKt(e),e.a=(n=new AY,hr(new Tt(null,new Ct(t.d,16)),new aDe(n)),n),mKt(e,c($(t.b,(We(),Ple)),349)),hqt(e),XJt(e),CHt(e),dqt(e),gen(e,t),hr(jo(new Tt(null,YQe(TNt(e.b).a)),new jA),new ZR),t.a=!1,e.a=null}function hxe(){hxe=W,rbt=new xt(W5e,(zt(),!1)),sbt=new xt(V5e,7),ze(0),ubt=new xt(X5e,ze(0)),cbt=new xt(K5e,ze(-1)),R9e=(A7(),Cue),abt=new xt(Y5e,R9e),P9e=(M7(),$P),obt=new xt(Z5e,P9e),I9e=(Yq(),Eue),lbt=new xt(e4e,I9e)}function Bnt(){Mve.call(this,NS,(y0(),Rvt)),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 ak(){ak=W,Kae=new x4(xlt,0),DW=new x4("INSIDE_SELF_LOOPS",1),mI=new x4("MULTI_EDGES",2),pI=new x4("EDGE_LABELS",3),Xae=new x4("PORTS",4),_W=new x4("COMPOUND",5),NW=new x4("CLUSTERS",6),Vae=new x4("DISCONNECTED",7)}function znt(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 Fnt(e,t){var n,i,r;if(t==0)return(e.a[0]&1)!=0;if(t<0)throw K(new Kz("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=jXe(e),r<i)return!1;i==r?n=-n:n=~n}return(n&t)!=0}function qnt(e){var t,n,i,r,o;if(r=new Qe,o=Hrt(e,r),t=c($(e,($e(),Wl)),9),t)for(i=new J(t.j);i.a<i.c.c.length;)n=c(U(i),12),Se($(n,Si))===Se(e)&&(o=p.Math.max(o,Hrt(n,r)));return r.c.length==0||_e(e,y3,o),o!=-1?r:null}function HJt(e,t,n,i){var r;c(n.b,68),c(n.b,68),c(i.b,68),c(i.b,68),r=Hr(Ms(c(n.b,68).c),c(i.b,68).c),fq(r,Vtt(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),Vc(i.a,new cpe(e,t,i))}function dxe(e,t){var n,i,r,o,a,d,b;if(o=t.e,o){for(n=Tie(o),i=c(e.g,686),a=0;a<e.i;++a)if(b=i[a],Qne(b)==n&&(r=(!b.d&&(b.d=new Nr(Ks,b,1)),b.d),d=c(n.Jh($ie(o,o.Cb,o.Db>>16)),16).bd(o),d<r.i))return dxe(e,c(ae(r,d),88))}return t}function E(e,t,n){var i=yU,r,o=i[e],a=o instanceof Array?o[0]:null;o&&!a?f=o:(f=(r=t&&t.prototype,!r&&(r=yU[t]),lDt(r)),f.Qm=n,!t&&(f.Rm=le),i[e]=f);for(var d=3;d<arguments.length;++d)arguments[d].prototype=f;a&&(f.Pm=a)}function gn(e){for(var t;!c($n(e.a),51).Ob();){if(e.d=lBt(e),!e.d)return!1;if(e.a=c(e.d.Pb(),51),he(e.a,35)){if(t=c(e.a,35),e.a=t.a,!e.b&&(e.b=new Ty),N0(e.b,e.d),t.b)for(;!wT(t.b);)N0(e.b,c(uNt(t.b),51));e.d=t.d}}return!0}function gxe(e,t){var n,i,r,o;for(r=1,t.j=!0,o=null,i=new J(zy(t));i.a<i.c.c.length;)n=c(U(i),220),e.c[n.c]||(e.c[n.c]=!0,o=oG(n,t),n.f?r+=gxe(e,o):!o.j&&n.a==n.e.e-n.d.e&&(n.f=!0,Cr(e.p,n),r+=gxe(e,o)));return r}function GJt(e){var t,n,i;for(n=new J(e.a.a.b);n.a<n.c.c.length;)t=c(U(n),84),i=(Ft(0),0),i>0&&(!(k1(e.a.c)&&t.n.d)&&!(ky(e.a.c)&&t.n.b)&&(t.g.d+=p.Math.max(0,i/2-.5)),!(k1(e.a.c)&&t.n.a)&&!(ky(e.a.c)&&t.n.c)&&(t.g.a-=i-1))}function Hnt(e,t,n){var i,r,o,a,d,b;o=c(Xe(t.e,0),17).c,i=o.i,r=i.k,b=c(Xe(n.g,0),17).d,a=b.i,d=a.k,r==(Wt(),Er)?_e(e,($e(),sh),c($(i,sh),12)):_e(e,($e(),sh),o),d==Er?_e(e,($e(),Ka),c($(a,Ka),12)):_e(e,($e(),Ka),b)}function Gnt(e,t){var n,i,r,o,a,d;for(o=new J(e.b);o.a<o.c.c.length;)for(r=c(U(o),26),d=new J(r.a);d.a<d.c.c.length;)for(a=c(U(d),9),a.k==(Wt(),fc)&&fk(a,t),i=new Gt(Xt(Fi(a).a.Jc(),new z));gn(i);)n=c(on(i),17),XXe(n,t)}function QJt(e,t){var n,i,r;for(t.Tg("Layer constraint preprocessing",1),n=new Qe,r=new ss(e.a,0);r.b<r.d.gc();)i=(pn(r.b<r.d.gc()),c(r.d.Xb(r.c=r.b++),9)),F$t(i)&&(zGt(i),Rt(n.c,i),iu(r));n.c.length==0||_e(e,($e(),vle),n),t.Ug()}function pxe(e){var t,n,i;this.c=e,i=c($(e,(We(),Xu)),87),t=ge(be($(e,yJ))),n=ge(be($(e,DSe))),i==(_r(),go)||i==vo||i==zh?this.b=t*n:this.b=1/(t*n),this.j=ge(be($(e,sx))),this.e=ge(be($(e,qm))),this.f=e.b.c.length}function UJt(e){var t,n;for(e.e=Ce(Hn,li,30,e.p.c.length,15,1),e.k=Ce(Hn,li,30,e.p.c.length,15,1),n=new J(e.p);n.a<n.c.c.length;)t=c(U(n),9),e.e[t.p]=Vf(new Gt(Xt(vr(t).a.Jc(),new z))),e.k[t.p]=Vf(new Gt(Xt(Fi(t).a.Jc(),new z)))}function JJt(e){var t,n,i,r,o,a;for(r=0,e.q=new Qe,t=new Tr,a=new J(e.p);a.a<a.c.c.length;){for(o=c(U(a),9),o.p=r,i=new Gt(Xt(Fi(o).a.Jc(),new z));gn(i);)n=c(on(i),17),Cr(t,n.d.i);t.a.Ac(o)!=null,Ue(e.q,new Y2(t)),t.a.$b(),++r}}function mxe(e,t){var n,i,r,o,a;return t&=63,n=e.h,i=(n&_L)!=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?H1:0,o=n>>t-22,r=e.m>>t-22|n<<44-t):(a=i?H1:0,o=i?au:0,r=n>>t-44),rl(r&au,o&au,a&H1)}function WJt(e,t){var n;switch(a7(e.a),$u(e.a,(MG(),fae),(fF(),bae)),$u(e.a,hae,(hF(),wae)),$u(e.a,dae,(dF(),vae)),c(Ae(t,(ik(),mae)),389).g){case 1:n=(MD(),xae);break;case 0:default:n=(MD(),yae)}return $u(e.a,gae,n),dC(e.a,t)}function Qnt(e,t){var n,i,r,o,a,d,b,v,k;if(e.a.f>0&&he(t,45)&&(e.a.Zj(),v=c(t,45),b=v.jd(),o=b==null?0:zi(b),a=R0e(e.a,o),n=e.a.d[a],n)){for(i=c(n.g,375),k=n.i,d=0;d<k;++d)if(r=i[d],r.yi()==o&&r.Fb(v))return Qnt(e,v),!0}return!1}function VJt(e){var t,n,i,r,o,a,d;if(t=e.ni(Wa),t&&(d=qn(Zf((!t.b&&(t.b=new vu((At(),$s),ec,t)),t.b),"settingDelegates")),d!=null)){for(n=new Qe,r=Nv(d,"\\w+"),o=0,a=r.length;o<a;++o)i=r[o],Rt(n.c,i);return n}return Mt(),Mt(),Is}function XJt(e){var t,n,i,r;for(r=c(Ti(e.a,(Ov(),rJ)),16).Jc();r.Ob();)i=c(r.Pb(),108),n=(t=N4(i.k),t.Gc((Ve(),Yt))?t.Gc(sn)?t.Gc(wn)?t.Gc(Zt)?null:C1t:M1t:E1t:T1t),ej(e,i,n[0],(ow(),Pw),0),ej(e,i,n[1],ip,1),ej(e,i,n[2],Iw,1)}function KJt(e,t){var n,i;n=AKt(t),vXt(e,t,n),qet(e.a,c($(Jr(t.b),($e(),Rk)),237)),KKt(e),DGt(e,t),i=Ce(Hn,li,30,t.b.j.c.length,15,1),rre(e,t,(Ve(),Yt),i,n),rre(e,t,sn,i,n),rre(e,t,wn,i,n),rre(e,t,Zt,i,n),e.a=null,e.c=null,e.b=null}function bxe(e,t,n){switch(t){case 7:!e.e&&(e.e=new Et($i,e,7,4)),Mn(e.e),!e.e&&(e.e=new Et($i,e,7,4)),dr(e.e,c(n,18));return;case 8:!e.d&&(e.d=new Et($i,e,8,5)),Mn(e.d),!e.d&&(e.d=new Et($i,e,8,5)),dr(e.d,c(n,18));return}ave(e,t,n)}function wxe(e,t){var n,i,r,o,a;if(Se(t)===Se(e))return!0;if(!he(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(),!(Se(n)===Se(r)||n!=null&&ki(n,r)))return!1;return!0}function YJt(e,t){var n,i,r,o;for(o=c(Gl(jo(jo(new Tt(null,new Ct(t.b,16)),new BO),new u8),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[(ya(),vl)]))),16),o.Ic(new SR),n=0,r=o.Jc();r.Ob();)i=c(r.Pb(),12),i.p==-1&&xxe(e,i,n++)}function ZJt(e,t){var n,i,r,o,a;for(t.Tg("Port side processing",1),a=new J(e.a);a.a<a.c.c.length;)r=c(U(a),9),pst(r);for(i=new J(e.b);i.a<i.c.c.length;)for(n=c(U(i),26),o=new J(n.a);o.a<o.c.c.length;)r=c(U(o),9),pst(r);t.Ug()}function eWt(e,t){var n,i,r,o,a,d;for(i=new _0,a=oH(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(yh(i,d),16),n||(n=new Qe,wm(i,d,n)),n.Ec(r)}return i}function tWt(e,t){var n,i,r,o,a;i=new _i,sr(i,t,i.c.b,i.c);do for(n=(pn(i.b!=0),c(wa(i,i.a.a),41)),e.b[n.g]=1,o=Ln(n.d,0);o.b!=o.d.c;)r=c(_n(o),65),a=r.c,e.b[a.g]==1?ni(e.a,r):e.b[a.g]==2?e.b[a.g]=1:sr(i,a,i.c.b,i.c);while(i.b!=0)}function vxe(e,t){if(he(t,209))return Ki(c(t,19));if(he(t,196))return wh(c(t,127));if(he(t,363))return Tme(c(t,158));if(he(t,273))return sCt(e,c(t,74));throw K(new Ht(_S+Ch(new Qo(ee(Z(Br,1),It,1,5,[t])))))}function nWt(e,t,n){var i;i=null,t&&(i=t.d),U7(e,new q6(t.n.a-i.b+n.a,t.n.b-i.d+n.b)),U7(e,new q6(t.n.a-i.b+n.a,t.n.b+t.o.b+i.a+n.b)),U7(e,new q6(t.n.a+t.o.a+i.c+n.a,t.n.b-i.d+n.b)),U7(e,new q6(t.n.a+t.o.a+i.c+n.a,t.n.b+t.o.b+i.a+n.b))}function xxe(e,t,n){var i,r,o;for(t.p=n,o=Bd(va(ee(Z(Ea,1),It,22,0,[new A6(t),new s4(t)])));gn(o);)i=c(on(o),12),i.p==-1&&xxe(e,i,n);if(t.i.k==(Wt(),Er))for(r=new J(t.i.j);r.a<r.c.c.length;)i=c(U(r),12),i!=t&&i.p==-1&&xxe(e,i,n)}function Unt(e){var t,n,i,r,o;if(r=c(Gl(Cme(Ame(e)),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[(ya(),vl)]))),16),i=s3,r.gc()>=2)for(n=r.Jc(),t=be(n.Pb());n.Ob();)o=t,t=be(n.Pb()),i=p.Math.min(i,(Ft(t),t-(Ft(o),o)));return i}function iWt(e,t){var n,i,r;for(r=new Qe,i=Ln(t.a,0);i.b!=i.d.c;)n=c(_n(i),65),n.b.g==e.g&&!jt(n.b.c,JQ)&&Se($(n.b,(Wo(),yd)))!==Se($(n.c,yd))&&!Ly(new Tt(null,new Ct(r,16)),new XDe(n))&&Rt(r.c,n);return Rr(r,new yb),r}function rWt(e,t){var n,i,r;if(Se(t)===Se($n(e)))return!0;if(!he(t,16)||(i=c(t,16),r=e.gc(),r!=i.gc()))return!1;if(he(i,59)){for(n=0;n<r;n++)if(!S1(e.Xb(n),i.Xb(n)))return!1;return!0}else return mqt(e.Jc(),i.Jc())}function sWt(e,t,n,i,r,o){var a,d,b,v;for(d=!R6(bi(e.Mc(),new E6(new EX))).zd((Jp(),Ck)),a=e,o==(_r(),Aa)&&(a=Tu(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 Jnt(e,t,n){var i,r,o,a,d,b,v;if(n)for(o=n.a.length,i=new Yp(o),d=(i.b-i.a)*i.c<0?(j0(),yp):new C0(i);d.Ob();)a=c(d.Pb(),15),b=uj(n,a.a),b&&(v=kRt(E1(b,Toe),t),ci(e.k,v,b),r=md in b.a,r&&bj(v,E1(b,md)),PG(b,v),Xve(b,v))}function oWt(e,t,n){var i,r,o,a,d;if(d=n,!d&&(d=vpe(new a4,0)),d.Tg(Zct,1),Yst(e.c,t),a=ptn(e.a,t),a.gc()==1)Nst(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;Nst(i,d.dh(o))}d8t(e.a,a,t),zXt(t),d.Ug()}function Wnt(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=z4(o),d.f.d?(o.d.d+=i+Ah,o.d.a-=i+Ah):d.f.a&&(o.d.a-=i+Ah))}function cWt(e,t,n,i){var r,o,a,d,b,v,k,T;r=n,k=t,o=k;do o=e.a[o.p],d=(T=e.g[o.p],ge(e.p[T.p])+ge(e.d[o.p])-o.d.d),b=SRt(o,i),b&&(a=(v=e.g[b.p],ge(e.p[v.p])+ge(e.d[b.p])+b.o.b+b.d.a),r=p.Math.min(r,d-(a+Sy(e.k,o,b))));while(k!=o);return r}function lWt(e,t,n,i){var r,o,a,d,b,v,k,T;r=n,k=t,o=k;do o=e.a[o.p],a=(T=e.g[o.p],ge(e.p[T.p])+ge(e.d[o.p])+o.o.b+o.d.a),b=L$t(o,i),b&&(d=(v=e.g[b.p],ge(e.p[v.p])+ge(e.d[b.p])-b.d.d),r=p.Math.min(r,d-(a+Sy(e.k,o,b))));while(k!=o);return r}function Vnt(e,t){var n;if(t.Tg("Equal Whitespace Eliminator",1),ma(e,(Qd(),oW)))zBt(c(Ae(e,oW),16),ge(be(Ae(e,Hk))),(n=ge(be(Ae(e,IE))),ge(be(Ae(e,(Eh(),BE)))),n));else throw K(new Xh("The graph does not contain rows."));t.Ug()}function Ae(e,t){var n,i;return i=(!e.o&&(e.o=new _l((uc(),s1),n0,e,0)),Zf(e.o,t)),i??(n=t.Rg(),he(n,4)&&(n==null?(!e.o&&(e.o=new _l((uc(),s1),n0,e,0)),dG(e.o,t)):(!e.o&&(e.o=new _l((uc(),s1),n0,e,0)),iL(e.o,t,n))),n)}function Cv(){Cv=W,Df=new wy("H_LEFT",0),Y1=new wy("H_CENTER",1),Lf=new wy("H_RIGHT",2),If=new wy("V_TOP",3),i1=new wy("V_CENTER",4),Za=new wy("V_BOTTOM",5),Ku=new wy("INSIDE",6),Pf=new wy("OUTSIDE",7),Ya=new wy("H_PRIORITY",8)}function uWt(e,t){var n,i,r,o,a,d,b;if(!t.f)throw K(new Ht("The input edge is not a tree edge."));for(o=null,r=pi,i=new J(e.d);i.a<i.c.c.length;)n=c(U(i),220),d=n.d,b=n.e,kie(e,d,t)&&!kie(e,b,t)&&(a=b.e-d.e-n.a,a<r&&(r=a,o=n));return o}function aWt(e){var t,n,i,r,o,a;if(!(e.f.e.c.length<=1)){t=0,r=$nt(e),n=or;do{for(t>0&&(r=n),a=new J(e.f.e);a.a<a.c.c.length;)o=c(U(a),156),!it(nt($(o,(tL(),TOe))))&&(i=yYt(e,o),ji(Wf(o.d),i));n=$nt(e)}while(!MNt(e,t++,r,n))}}function fWt(e,t){var n,i,r,o,a;for(o=e.g.a,a=e.g.b,i=new J(e.d);i.a<i.c.c.length;)n=c(U(i),70),r=n.n,e.a==(Of(),qS)||e.i==(Ve(),sn)?r.a=o:e.a==HS||e.i==(Ve(),Zt)?r.a=o+e.j.a-n.o.a:r.a=o+(e.j.a-n.o.a)/2,r.b=a,ji(r,t),a+=n.o.b+e.e}function Xnt(e){var t,n,i,r;for(r=0,t=c(Ae(e,(Pn(),cvt)),15).a,i=new ln((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a));i.e!=i.i.gc();)n=c(fn(i),19),!n.a&&(n.a=new Le(Nn,n,10,11)),n.a&&(!n.a&&(n.a=new Le(Nn,n,10,11)),n.a).i>0?r+=t:r+=1;return r}function hWt(e,t){var n,i,r,o,a,d,b,v,k,T;v=e,b=p7(v,"individualSpacings"),b&&(i=ma(t,(Pn(),Vk)),a=!i,a&&(r=new $5,ri(t,Vk,r)),d=c(Ae(t,Vk),380),T=b,o=null,T&&(o=(k=Bte(T,Ce(st,Ge,2,0,6,1)),new RY(T,k))),o&&(n=new dBe(T,d),ws(o,n)))}function dWt(e,t){var n,i,r,o,a,d,b,v,k,T,A;return b=null,T=e,k=null,(sat in T.a||oat in T.a||nU in T.a)&&(v=null,A=bwe(t),a=p7(T,sat),n=new LLe(A),SYe(n.a,a),d=p7(T,oat),i=new HLe(A),TYe(i.a,d),o=ew(T,nU),r=new ULe(A),v=(Iet(r.a,o),o),k=v),b=k,b}function gWt(e,t){var n,i,r;if(t===e)return!0;if(he(t,544)){if(r=c(t,841),e.a.d!=r.a.d||Ay(e).gc()!=Ay(r).gc())return!1;for(i=Ay(r).Jc();i.Ob();)if(n=c(i.Pb(),421),SQe(e,n.a.jd())!=c(n.a.kd(),18).gc())return!1;return!0}return!1}function pWt(e,t){var n,i,r,o;for(o=new J(t.a);o.a<o.c.c.length;)for(r=c(U(o),9),_e(r,($e(),xJ),(zt(),!1)),_e(r,$k,ze(-1)),_e(r,lE,ze(-1)),e.d.a.c.length=0,i=new Gt(Xt(sd(r).a.Jc(),new z));gn(i);)n=c(on(i),17),_e(n,X1t,!1)}function mWt(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==(b7(),EE)&&t.d==CE?-1:e.d==CE&&t.d==EE?1:0}function Cie(e){var t,n,i,r,o,a,d,b;for(r=or,i=Gr,n=new J(e.e.b);n.a<n.c.c.length;)for(t=c(U(n),26),a=new J(t.a);a.a<a.c.c.length;)o=c(U(a),9),b=ge(e.p[o.p]),d=b+ge(e.b[e.g[o.p].p]),r=p.Math.min(r,b),i=p.Math.max(i,d);return i-r}function Knt(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=Vzt(e.a,a,i),r>0&&r<s3?(n=cWt(e.a,i.i,r,e.c),CVe(e.a,i.i,-n),n>0):r<0&&-r<s3?(n=lWt(e.a,i.i,-r,e.c),CVe(e.a,i.i,n),n>0):!1}function bWt(e,t,n,i){var r,o,a,d,b,v,k,T;for(r=(t-e.d)/e.c.c.length,o=0,e.a+=n,e.d=t,T=new J(e.c);T.a<T.c.c.length;)k=c(U(T),19),v=k.g,b=k.f,Dc(k,k.i+o*r),Dl(k,k.j+i*n),am(k,k.g+r),um(k,e.a),++o,d=k.g,a=k.f,Jve(k,new He(d,a),new He(v,b))}function Ynt(e,t){var n,i,r,o,a,d,b,v;for(i=new Gt(Xt(B1(t).a.Jc(),new z));gn(i);)n=c(on(i),74),v=no(c(ae((!n.c&&(n.c=new Et(yn,n,5,8)),n.c),0),83)),a=nC(n),d=t.i+t.g/2,b=t.j+t.f,r=v.i+v.g/2,o=v.j,rw(a,d),sw(a,b),nw(a,r),iw(a,o),Ynt(e,v)}function wWt(e){var t,n,i,r,o,a,d;if(e==null)return null;for(d=e.length,r=(d+1)/2|0,a=Ce(Bl,l3,30,r,15,1),d%2!=0&&(a[--r]=Gxe((tn(d-1,e.length),e.charCodeAt(d-1)))),n=0,i=0;n<r;++n)t=Gxe(bs(e,i++)),o=Gxe(bs(e,i++)),a[n]=(t<<4|o)<<24>>24;return a}function vWt(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=Ane(".",[n,Ane("$",i)]),e.b=Ane(".",[n,Ane(".",i)]),e.k=i[i.length-1]}function xWt(e,t){var n,i,r,o,a;for(a=null,o=new J(e.e.a);o.a<o.c.c.length;)if(r=c(U(o),126),r.b.a.c.length==r.g.a.c.length){for(i=r.e,a=aUt(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 yxe(e,t,n){var i,r,o,a,d,b,v,k;v=c(n,150),k=vxe(e,t),o=null,i=null,k&&(i=_G(e,k,t.i)),i!=null?o=i:(d=t.i,o=d),im(v,"x",o),a=null,r=null,k&&(r=DG(e,k,t.j)),r!=null?a=r:(b=t.j,a=b),im(v,"y",a),im(v,joe,t.g),im(v,Ooe,t.f)}function Znt(e){ere();var t,n,i,r;return i=Zh(e,ml(35)),t=i==-1?e:(as(0,i,e.length),e.substr(0,i)),n=i==-1?null:(tn(i+1,e.length+1),e.substr(i+1)),r=bPt(pCe,t),r?n!=null&&(r=MKe(r,(Ft(n),n))):(r=cin(t),APt(pCe,t,r),n!=null&&(r=MKe(r,n))),r}function kxe(e,t,n,i){var r,o,a,d,b;for(r=Yxe(e,t),d=0,b=r.gc();d<b;++d)if(o=c(r.Xb(d),182),jt(i,sj(uo(e,o)))){if(a=rD(uo(e,o)),n==null){if(a==null)return o}else if(jt(n,a))return o}return null}function Oxe(e,t,n,i){var r,o,a,d,b;for(r=Bie(e,t),d=0,b=r.gc();d<b;++d)if(o=c(r.Xb(d),182),jt(i,sj(uo(e,o)))){if(a=rD(uo(e,o)),n==null){if(a==null)return o}else if(jt(n,a))return o}return null}function yWt(e,t,n){var i,r,o,a,d,b;if(a=new B5,d=ol(e.e.Ah(),t),i=c(e.g,123),qs(),c(t,69).vk())for(o=0;o<e.i;++o)r=i[o],d.$l(r.Jk())&&Dn(a,r);else for(o=0;o<e.i;++o)r=i[o],d.$l(r.Jk())&&(b=r.kd(),Dn(a,n?Y7(e,t,o,a.i,b):b));return Gme(a)}function eit(e){var t,n,i,r,o,a,d;if(e&&(t=e.ni(Wa),t&&(a=qn(Zf((!t.b&&(t.b=new vu((At(),$s),ec,t)),t.b),"conversionDelegates")),a!=null))){for(d=new Qe,i=Nv(a,"\\w+"),r=0,o=i.length;r<o;++r)n=i[r],Rt(d.c,n);return d}return Mt(),Mt(),Is}function tit(e,t){var n,i,r,o,a,d,b,v;for(a=t==1?Ace:Mce,o=a.a.ec().Jc();o.Ob();)for(r=c(o.Pb(),87),b=c(Ti(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 kWt(e,t){var n,i,r,o,a;for(n=new $7(US),r=(rk(),ee(Z(US,1),Re,233,0,[QS,tE,GS,Jv,b3,m3])),o=0,a=r.length;o<a;++o)i=r[o],B0e(n,i,new Qe);return hr(Jc(bi(jo(new Tt(null,new Ct(e.b,16)),new MX),new aA),new $_e(t)),new B_e(n)),n}function nit(e,t){var n,i,r;for(n=1;n<e.c.length;n++){for(r=(pt(n,e.c.length),c(e.c[n],9)),i=n;i>0&&jL(t,(pt(i-1,e.c.length),c(e.c[i-1],9)),r)>0;)Ou(e,i,(pt(i-1,e.c.length),c(e.c[i-1],9))),--i;pt(i,e.c.length),e.c[i]=r}t.b=new xn,t.g=new xn}function iit(e,t,n){var i,r,o;for(i=1;i<e.c.length;i++){for(o=(pt(i,e.c.length),c(e.c[i],9)),r=i;r>0&&t.Le((pt(r-1,e.c.length),c(e.c[r-1],9)),o)>0;)Ou(e,r,(pt(r-1,e.c.length),c(e.c[r-1],9))),--r;pt(r,e.c.length),e.c[r]=o}n.a=new xn,n.b=new xn}function HG(e,t,n){var i,r,o,a,d,b,v,k,T,A;for(o=t.Jc();o.Ob();)r=c(o.Pb(),19),k=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=k-a,T=A-d,i=p.Math.sqrt(v*v+T*T),v*=e.e/i,T*=e.e/i,n?(k-=v,A-=T):(k+=v,A+=T),Dc(r,k-r.g/2),Dl(r,A-r.f/2)}function Wy(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 jf(e){var t,n;return n=new Iu(Up(e.Pm)),n.a+="@",ti(n,(t=zi(e)>>>0,t.toString(16))),e.Sh()?(n.a+=" (eProxyURI: ",Mc(n,e.Yh()),e.Hh()&&(n.a+=" eClass: ",Mc(n,e.Hh())),n.a+=")"):e.Hh()&&(n.a+=" (eClass: ",Mc(n,e.Hh()),n.a+=")"),n.a}function eC(e){var t,n,i,r;if(e.e)throw K(new oo((j1(bce),Ure+bce.k+Jre)));for(e.d==(_r(),zh)&&aQ(e,go),n=new J(e.a.a);n.a<n.c.c.length;)t=c(U(n),321),t.g=t.i;for(r=new J(e.a.b);r.a<r.c.c.length;)i=c(U(r),60),i.i=Gr;return e.b.af(e),e}function OWt(e,t){var n,i,r,o,a,d,b,v,k;for(b=Pd(e.c-e.b&e.a.length-1),v=null,k=null,o=new u7(e);o.a!=o.b;)r=c(eG(o),9),n=(d=c($(r,($e(),sh)),12),d?d.i:null),i=(a=c($(r,Ka),12),a?a.i:null),(v!=n||k!=i)&&(Cnt(b,t),v=n,k=i),Rt(b.c,r);Cnt(b,t)}function rit(e){switch(e.g){case 0:return new Xz((mm(),IP));case 1:return new Xz((mm(),HJ));case 2:return new dz;case 3:return new WN;default:throw K(new Ht("No implementation is available for the crossing minimizer "+(e.f!=null?e.f:""+e.g)))}}function jWt(e,t){var n,i,r,o,a;if(t<2*e.b)throw K(new Ht("The knot vector must have at least two time the dimension elements."));for(e.f=1,r=0;r<e.b;r++)Ue(e.e,0);for(a=t+1-2*e.b,n=a,o=1;o<a;o++)Ue(e.e,o/n);if(e.d)for(i=0;i<e.b;i++)Ue(e.e,1)}function sit(e,t){var n,i,r,o,a,d,b,v,k;if(v=t,k=c(LH(Tee(e.o),v),19),!k)throw r=E1(v,md),d="Unable to find elk node for json object '"+r,b=d+"' Panic!",K(new Kh(b));o=ew(v,"edges"),n=new tBe(e,k),fnt(n.a,n.b,o),a=ew(v,Coe),i=new TLe(e),met(i.a,a)}function oit(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&&ki(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),Se(a.jd())===Se(i))return d}return-1}function Uj(e,t){var n,i,r;return n=t==null?Ao(co(e.f,null)):MT(e.i,t),he(n,244)?(r=c(n,244),r.wi()==null,r):he(n,496)?(i=c(n,2016),r=i.a,r&&(r.yb==null||(t==null?bl(e.f,null,r):lw(e.i,t,r))),r):null}function SWt(e){Fxe();var t,n,i,r,o,a,d;if(e==null||(r=e.length,r%2!=0))return null;for(t=yH(e),o=r/2|0,n=Ce(Bl,l3,30,o,15,1),i=0;i<o;i++){if(a=dM[t[i*2]],a==-1||(d=dM[t[i*2+1]],d==-1))return null;n[i]=(a<<4|d)<<24>>24}return n}function TWt(e,t,n){var i,r,o;if(r=c(eo(e.i,t),319),!r)if(r=new hVe(e.d,t,n),L4(e.i,t,r),S2e(t))C7t(e.a,t.c,t.b,r);else switch(o=xUt(t),i=c(eo(e.p,o),256),o.g){case 1:case 3:r.j=!0,SY(i,t.b,r);break;case 4:case 2:r.k=!0,SY(i,t.c,r)}return r}function CWt(e,t,n,i){var r,o,a,d,b,v;if(d=new B5,b=ol(e.e.Ah(),t),r=c(e.g,123),qs(),c(t,69).vk())for(a=0;a<e.i;++a)o=r[a],b.$l(o.Jk())&&Dn(d,o);else for(a=0;a<e.i;++a)o=r[a],b.$l(o.Jk())&&(v=o.kd(),Dn(d,i?Y7(e,t,a,d.i,v):v));return x2e(d,n)}function cit(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 J(t.j);d.a<d.c.c.length;)for(a=c(U(d),12),i=new J(a.g);i.a<i.c.c.length;)n=c(U(i),17),v=n.d.i,t!=v&&(b=cit(e,v),o=p.Math.max(o,b+1));return $zt(e,t,o),o}function lit(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 J(t.j);d.a<d.c.c.length;)for(a=c(U(d),12),i=new J(a.e);i.a<i.c.c.length;)n=c(U(i),17),v=n.c.i,t!=v&&(b=lit(e,v),o=p.Math.max(o,b+1));return wqt(e,t,o),o}function EWt(e){var t,n,i,r;for(r=e.length,t=null,i=0;i<r;i++)n=(tn(i,e.length),e.charCodeAt(i)),Zh(".*+?{[()|\\^$",ml(n))>=0?(t||(t=new vT,i>0&&Zs(t,(as(0,i,e.length),e.substr(0,i)))),t.a+="\\",tj(t,n&Dr)):t&&tj(t,n&Dr);return t?t.a:e}function MWt(e){var t,n,i;for(n=new J(e.a.a.b);n.a<n.c.c.length;)t=c(U(n),84),i=(Ft(0),0),i>0&&(!(k1(e.a.c)&&t.n.d)&&!(ky(e.a.c)&&t.n.b)&&(t.g.d-=p.Math.max(0,i/2-.5)),!(k1(e.a.c)&&t.n.a)&&!(ky(e.a.c)&&t.n.c)&&(t.g.a+=p.Math.max(0,i-1)))}function uit(e,t,n){var i,r;if((e.c-e.b&e.a.length-1)==2)t==(Ve(),Yt)||t==sn?(TH(c(E7(e),16),(Gu(),n1)),TH(c(E7(e),16),hp)):(TH(c(E7(e),16),(Gu(),hp)),TH(c(E7(e),16),n1));else for(r=new u7(e);r.a!=r.b;)i=c(eG(r),16),TH(i,n)}function AWt(e,t,n){var i,r,o,a,d,b,v,k,T;for(k=-1,T=0,d=t,b=0,v=d.length;b<v;++b){for(a=d[b],i=new dGe(e,k==-1?t[0]:t[k],n,(_7(),BJ)),r=0;r<a.length;r++)for(o=r+1;o<a.length;o++)Oi(a[r],($e(),Ri))&&Oi(a[o],Ri)&&jL(i,a[r],a[o])>0&&++T;++k}return T}function NWt(e,t,n){var i;if(n.Tg("XPlacer",1),e.b=ge(be(Ae(t,(Pn(),lh)))),e.a=it(nt(Ae(t,(ik(),pae)))),(!t.a&&(t.a=new Le(Nn,t,10,11)),t.a).i!=0)switch(i=c(Ae(t,(Gd(),qE)),19),c(Ae(t,mae),389).g){case 0:Vot(e,i);break;case 1:Wot(e,i)}n.Ug()}function _Wt(e,t){var n,i,r,o,a,d,b;for(r=X6(new f1e(e)),d=new ss(r,r.c.length),o=X6(new f1e(t)),b=new ss(o,o.c.length),a=null;d.b>0&&b.b>0&&(n=(pn(d.b>0),c(d.a.Xb(d.c=--d.b),19)),i=(pn(b.b>0),c(b.a.Xb(b.c=--b.b),19)),n==i);)a=n;return a}function DWt(e,t){var n,i,r,o;for(t.Tg("Self-Loop pre-processing",1),i=new J(e.a);i.a<i.c.c.length;)n=c(U(i),9),Nzt(n)&&(r=(o=new lZe(n),_e(n,($e(),zw),o),tYt(o),o),hr(Jc(jo(new Tt(null,new Ct(r.d,16)),new XX),new KX),new f1),KVt(r));t.Ug()}function ait(e,t,n){var i,r,o,a;PQe(e,t)>PQe(e,n)?(i=Po(n,(Ve(),sn)),e.d=i.dc()?0:iee(c(i.Xb(0),12)),a=Po(t,Zt),e.b=a.dc()?0:iee(c(a.Xb(0),12))):(r=Po(n,(Ve(),Zt)),e.d=r.dc()?0:iee(c(r.Xb(0),12)),o=Po(t,sn),e.b=o.dc()?0:iee(c(o.Xb(0),12)))}function LWt(e){var t,n,i,r,o,a,d,b;t=!0,r=null,o=null;e:for(b=new J(e.a);b.a<b.c.c.length;)for(d=c(U(b),9),i=new Gt(Xt(vr(d).a.Jc(),new z));gn(i);){if(n=c(on(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 PWt(e,t,n){var i,r,o,a,d,b,v,k;for(k=(i=c(t.e&&t.e(),10),new ga(i,c(mf(i,i.length),10),0)),b=Nv(n,"[\\[\\]\\s,]+"),o=b,a=0,d=o.length;a<d;++a)if(r=o[a],Sv(r).length!=0){if(v=hnt(e,r),v==null)return null;kf(k,c(v,23))}return k}function fit(e,t){var n,i,r,o;for(n=e.o.a,o=c(c(Ti(e.r,t),24),85).Jc();o.Ob();)r=c(o.Pb(),116),r.e.a=n*ge(be(r.b.mf(NU))),r.e.b=(i=r.b,i.nf((Pn(),fu))?i.$f()==(Ve(),Yt)?-i.Kf().b-ge(be(i.mf(fu))):ge(be(i.mf(fu))):i.$f()==(Ve(),Yt)?-i.Kf().b:0)}function IWt(e,t,n){var i,r,o,a,d,b;for(o=-1,d=-1,a=0;a<t.c.length&&(r=(pt(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=xKt(e,t,o,d),b=oTt((pt(i,t.c.length),c(t.c[i],341))),CJt(t,i,n)),b}function Rn(e,t,n){var i,r,o,a,d,b,v;for(a=(o=new kN,o),Xbe(a,(Ft(t),t)),v=(!a.b&&(a.b=new vu((At(),$s),ec,a)),a.b),b=1;b<n.length;b+=2)iL(v,n[b-1],n[b]);for(i=(!e.Ab&&(e.Ab=new Le(oi,e,0,3)),e.Ab),d=0;d<0;++d)r=ANt(c(ae(i,i.i-1),594)),i=r;Dn(i,a)}function jxe(e,t,n,i,r,o){var a,d,b;if(!r[t.a]){for(r[t.a]=!0,a=i,!a&&(a=new aH),Ue(a.e,t),b=o[t.a].Jc();b.Ob();)d=c(b.Pb(),292),!(d.d==n||d.c==n)&&(d.c!=t&&jxe(e,d.c,t,a,r,o),d.d!=t&&jxe(e,d.d,t,a,r,o),Ue(a.c,d),Or(a.d,d.b));return a}return null}function RWt(e){var t,n,i,r,o,a,d;for(t=0,r=new J(e.e);r.a<r.c.c.length;)i=c(U(r),17),n=Ly(new Tt(null,new Ct(i.b,16)),new rA),n&&++t;for(a=new J(e.g);a.a<a.c.c.length;)o=c(U(a),17),d=Ly(new Tt(null,new Ct(o.b,16)),new kR),d&&++t;return t>=2}function $Wt(e,t,n,i,r){var o,a,d,b,v,k;for(o=e.c.d.j,a=c(vc(n,0),8),k=1;k<n.b;k++)v=c(vc(n,k),8),sr(i,a,i.c.b,i.c),d=O1(ji(new Es(a),v),.5),b=O1(new Jee(Nwe(o)),r),ji(d,b),sr(i,d,i.c.b,i.c),a=v,o=t==0?iG(o):e2e(o);ni(i,(pn(n.b!=0),c(n.c.b.c,8)))}function BWt(e){Cv();var t,n,i;return n=Li(Ku,ee(Z(Xs,1),Re,96,0,[Pf])),!(LD(Wq(n,e))>1||(t=Li(Df,ee(Z(Xs,1),Re,96,0,[Y1,Lf])),LD(Wq(t,e))>1)||(i=Li(If,ee(Z(Xs,1),Re,96,0,[i1,Za])),LD(Wq(i,e))>1))}function hit(e){var t,n,i,r,o,a,d;for(t=0,i=new J(e.a);i.a<i.c.c.length;)for(n=c(U(i),9),o=new Gt(Xt(Fi(n).a.Jc(),new z));gn(o);)r=c(on(o),17),e==r.d.i.c&&r.c.j==(Ve(),Zt)&&(a=vh(r.c).b,d=vh(r.d).b,t=p.Math.max(t,p.Math.abs(d-a)));return t}function Sxe(e,t,n){var i,r,o;for(o=new J(e.t);o.a<o.c.c.length;)i=c(U(o),275),i.b.s<0&&i.c>0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&ni(t,i.b));for(r=new J(e.i);r.a<r.c.c.length;)i=c(U(r),275),i.a.s<0&&i.c>0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&ni(n,i.a))}function zWt(e){var t,n,i,r,o,a;for(a=c(Ae(e,(Pn(),$h)),100),n=0,i=0,o=new ln((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a));o.e!=o.i.gc();)r=c(fn(o),19),t=c(Ae(r,K1),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);am(e,n+a.c),um(e,i+a.a)}function GG(e){var t,n,i,r,o;if(e.g==null&&(e.d=e._i(e.f),Dn(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,Dn(e,n);else for(e.d=null;!t.Ob()&&(br(e.g,--e.i,null),e.i!=0);)i=c(e.g[e.i-1],51),t=i;return r}function FWt(e,t){var n,i,r,o,a,d;if(i=t,r=i.Jk(),z1(e.e,r)){if(r.Qi()&&nH(e,r,i.kd()))return!1}else for(d=ol(e.e.Ah(),r),n=c(e.g,123),o=0;o<e.i;++o)if(a=n[o],d.$l(a.Jk()))return ki(a,i)?!1:(c(Hy(e,o,t),76),!0);return Dn(e,t)}function Wt(){Wt=W,ar=new w4("NORMAL",0),Er=new w4("LONG_EDGE",1),Ar=new w4("EXTERNAL_PORT",2),$c=new w4("NORTH_SOUTH_PORT",3),fc=new w4("LABEL",4),Lh=new w4("BREAKING_POINT",5),gP=new w4("PLACEHOLDER",6),ZC=new w4("NONSHIFTING_PLACEHOLDER",7)}function qWt(e,t,n,i){var r,o,a,d;for(r=new Sh(e),mu(r,(Wt(),fc)),_e(r,($e(),Si),t),_e(r,cE,i),_e(r,(We(),fr),(es(),Sc)),_e(r,sh,t.c),_e(r,Ka,t.d),Aie(t,r),d=p.Math.floor(n/2),a=new J(r.j);a.a<a.c.c.length;)o=c(U(a),12),o.n.b=d;return r}function hL(){hL=W,ele=new my(y3e,0),P6e=new my(wlt,1),nle=new my(rse,2),ile=new my(Zre,3),tle=new my("GREEDY_MODEL_ORDER",4),rle=new my("SCC_CONNECTIVITY",5),vP=new my("SCC_NODE_TYPE",6),Zce=new my("DFS_NODE_ORDER",7),Yce=new my("BFS_NODE_ORDER",8)}function dit(e,t,n){var i,r,o,a,d;for(n.Tg("ELK Force",1),it(nt(Ae(t,(Tf(),wOe))))||f7((i=new M6((k0(),new xg(t))),i)),d=cKe(t),yHt(d),iBt(e,c($(d,bOe),429)),a=ast(e.a,d),o=a.Jc();o.Ob();)r=c(o.Pb(),238),MYt(e.b,r,n.dh(1/a.gc()));d=Tot(a),Pot(d),n.Ug()}function Txe(e,t,n){switch(n.g){case 1:return new He(t.a,p.Math.min(e.d.b,t.b));case 2:return new He(p.Math.max(e.c.a,t.a),t.b);case 3:return new He(t.a,p.Math.max(e.c.b,t.b));case 4:return new He(p.Math.min(t.a,e.d.a),t.b)}return new He(t.a,t.b)}function HWt(e,t){var n,i,r,o,a;if(t.Tg("Breaking Point Processor",1),Etn(e),it(nt($(e,(We(),$Se))))){for(r=new J(e.b);r.a<r.c.c.length;)for(i=c(U(r),26),n=0,a=new J(i.a);a.a<a.c.c.length;)o=c(U(a),9),o.p=n++;vZt(e),_it(e,!0),_it(e,!1)}t.Ug()}function QG(e){var t,n,i;for(t=Pd(1+(!e.c&&(e.c=new Le(hu,e,9,9)),e.c).i),Ue(t,(!e.d&&(e.d=new Et($i,e,8,5)),e.d)),i=new ln((!e.c&&(e.c=new Le(hu,e,9,9)),e.c));i.e!=i.i.gc();)n=c(fn(i),127),Ue(t,(!n.d&&(n.d=new Et($i,n,8,5)),n.d));return $n(t),new GT(t)}function B1(e){var t,n,i;for(t=Pd(1+(!e.c&&(e.c=new Le(hu,e,9,9)),e.c).i),Ue(t,(!e.e&&(e.e=new Et($i,e,7,4)),e.e)),i=new ln((!e.c&&(e.c=new Le(hu,e,9,9)),e.c));i.e!=i.i.gc();)n=c(fn(i),127),Ue(t,(!n.e&&(n.e=new Et($i,n,7,4)),n.e));return $n(t),new GT(t)}function GWt(e){var t,n,i,r;if(e==null)return null;if(i=Ic(e,!0),r=cP.length,jt(i.substr(i.length-r,r),cP)){if(n=i.length,n==4){if(t=(tn(0,i.length),i.charCodeAt(0)),t==43)return PCe;if(t==45)return Ixt}else if(n==3)return PCe}return jv(i)}function QWt(e,t,n,i){var r,o,a,d,b,v,k,T,A;for(T=i?(Ve(),Zt):(Ve(),sn),r=!1,b=t[n],v=0,k=b.length;v<k;++v)d=b[v],!E4(c($(d,(We(),fr)),103))&&(a=d.e,A=!Po(d,T).dc()&&!!a,A&&(o=bve(a),e.b=new vve(o,i?0:o.length-1)),r=r|_Xt(e,d,T,A));return r}function git(e,t,n,i){var r,o,a;if(a=cve(t,n),Rt(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 Gt(Xt(sd(a).a.Jc(),new z));gn(o);)if(r=c(on(o),17),!(!(!vs(r)&&!(!vs(r)&&r.c.i.c==r.d.i.c))||r==t))return git(e,r,a,i);return i}function UWt(e){var t,n,i,r;for(t=0,n=0,r=new J(e.j);r.a<r.c.c.length;)if(i=c(U(r),12),t=Qn(As(t,NJe(bi(new Tt(null,new Ct(i.e,16)),new KO)))),n=Qn(As(n,NJe(bi(new Tt(null,new Ct(i.g,16)),new x8)))),t>1||n>1)return 2;return t+n==1?2:0}function lu(e,t){var n,i,r,o,a,d;return o=e.a*qre+e.b*1502,d=e.b*qre+11,n=p.Math.floor(d*IL),o+=n,d-=n*Zye,o%=Zye,e.a=o,e.b=d,t<=24?p.Math.floor(e.a*sOe[t]):(r=e.a*(1<<t-24),a=p.Math.floor(e.b*oOe[t]),i=r+a,i>=2147483648&&(i-=4294967296),i)}function pit(e,t,n){var i,r,o,a,d,b,v;for(o=new Qe,v=new _i,a=new _i,lZt(e,v,a,t),Hen(e,v,a,t,n),b=new J(e);b.a<b.c.c.length;)for(d=c(U(b),117),r=new J(d.k);r.a<r.c.c.length;)i=c(U(r),135),(!t||i.c==(Xf(),lp))&&d.g>i.b.g&&Rt(o.c,i);return o}function JWt(e,t,n){var i,r,o,a,d,b;for(d=e.c,a=(n.q?n.q:(Mt(),Mt(),Yd)).vc().Jc();a.Ob();)o=c(a.Pb(),45),i=!R6(bi(new Tt(null,new Ct(d,16)),new E6(new z$e(t,o)))).zd((Jp(),Ck)),i&&(b=o.kd(),he(b,4)&&(r=C2e(b),r!=null&&(b=r)),t.of(c(o.jd(),149),b))}function WWt(e,t){var n,i,r,o;for(t.Tg("Resize child graph to fit parent.",1),i=new J(e.b);i.a<i.c.c.length;)n=c(U(i),26),Or(e.a,n.a),n.a.c.length=0;for(o=new J(e.a);o.a<o.c.c.length;)r=c(U(o),9),zr(r,null);e.b.c.length=0,gXt(e),e.e&&cYt(e.e,e),t.Ug()}function VWt(e,t){var n,i,r,o,a;for(t.Tg("Edge joining",1),n=it(nt($(e,(We(),Qle)))),r=new J(e.b);r.a<r.c.c.length;)for(i=c(U(r),26),a=new ss(i.a,0);a.b<a.d.gc();)o=(pn(a.b<a.d.gc()),c(a.d.Xb(a.c=a.b++),9)),o.k==(Wt(),Er)&&(ire(o,n),iu(a));t.Ug()}function XWt(e,t,n){var i,r;if(a7(e.b),$u(e.b,(UD(),lW),(ST(),UP)),$u(e.b,uW,t.g),$u(e.b,aW,t.a),e.a=dC(e.b,t),n.Tg("Compaction by shrinking a tree",e.a.c.length),t.i.c.length>1)for(r=new J(e.a);r.a<r.c.c.length;)i=c(U(r),43),i.If(t,n.dh(1));n.Ug()}function Cxe(e,t,n){var i,r,o;if(o=Yy((Pl(),ms),e.Ah(),t),o){if(qs(),!c(o,69).vk()&&(o=B4(uo(ms,o)),!o))throw K(new Ht(Y0+t.ve()+DC));r=(i=e.Fh(o),c(i>=0?e.Ih(i,!0,!0):pw(e,o,!0),164)),c(r,222).Vl(t,n)}else throw K(new Ht(Y0+t.ve()+DC))}function KWt(e,t,n){var i,r,o,a,d,b;if(b=D0e(e,c(Jt(e.e,t),19)),d=null,b)switch(b.g){case 3:i=t0e(e,sv(t)),d=(Ft(n),n+(Ft(i),i));break;case 2:r=t0e(e,sv(t)),a=(Ft(n),n+(Ft(r),r)),o=t0e(e,c(Jt(e.e,t),19)),d=a-(Ft(o),o);break;default:d=n}else d=n;return d}function YWt(e,t,n){var i,r,o,a,d,b;if(b=D0e(e,c(Jt(e.e,t),19)),d=null,b)switch(b.g){case 3:i=n0e(e,sv(t)),d=(Ft(n),n+(Ft(i),i));break;case 2:r=n0e(e,sv(t)),a=(Ft(n),n+(Ft(r),r)),o=n0e(e,c(Jt(e.e,t),19)),d=a-(Ft(o),o);break;default:d=n}else d=n;return d}function UG(e,t){var n,i,r,o,a;if(t){for(o=he(e.Cb,89)||he(e.Cb,104),a=!o&&he(e.Cb,336),i=new ln((!t.a&&(t.a=new ZT(t,Ks,t)),t.a));i.e!=i.i.gc();)if(n=c(fn(i),88),r=iQ(n),o?he(r,89):a?he(r,160):r)return r;return o?(At(),sf):(At(),Hh)}else return null}function ZWt(e,t){var n,i,r,o,a;for(n=new Qe,r=jo(new Tt(null,new Ct(e,16)),new L5),o=jo(new Tt(null,new Ct(e,16)),new k8),a=PIt(tIt(rv(aVt(ee(Z(Ain,1),It,840,0,[r,o])),new g$))),i=1;i<a.length;i++)a[i]-a[i-1]>=2*t&&Ue(n,new YZ(a[i-1]+t,a[i]-t));return n}function mit(e,t,n){var i,r,o,a,d,b,v,k;if(n)for(o=n.a.length,i=new Yp(o),d=(i.b-i.a)*i.c<0?(j0(),yp):new C0(i);d.Ob();)a=c(d.Pb(),15),r=uj(n,a.a),r&&(b=oPt(e,(v=(y0(),k=new T1e,k),t&&Exe(v,t),v),r),bj(b,E1(r,md)),PG(r,b),Xve(r,b),tne(e,r,b))}function JG(e){var t,n,i,r,o,a;if(!e.j){if(a=new vK,t=uM,o=t.a.yc(e,t),o==null){for(i=new ln(wo(e));i.e!=i.i.gc();)n=c(fn(i),29),r=JG(n),dr(a,r),Dn(a,n);t.a.Ac(e)!=null}bv(a),e.j=new yy((c(ae(Pe((E0(),Ut).o),11),20),a.i),a.g),ru(e).b&=-33}return e.j}function eVt(e){var t,n,i,r;if(e==null)return null;if(i=Ic(e,!0),r=cP.length,jt(i.substr(i.length-r,r),cP)){if(n=i.length,n==4){if(t=(tn(0,i.length),i.charCodeAt(0)),t==43)return ICe;if(t==45)return Rxt}else if(n==3)return ICe}return new w1e(i)}function tVt(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?Hbe(n):t==0&&i!=0&&n==0?Hbe(i)+22:t!=0&&i==0&&n==0?Hbe(t)+44:-1}function Vy(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 nVt(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(Fa(c(q4(e.b,t.a),263)),263),n.a=0,++e.c):(n=c(Fa(c(Jt(e.b,t.a),263)),263),--n.a,t.e?t.e.c=t.c:n.b=c(Fa(t.c),501),t.c?t.c.e=t.e:n.c=c(Fa(t.e),501)),--e.d}function Eie(e,t){var n,i,r,o;for(o=new ss(e,0),n=(pn(o.b<o.d.gc()),c(o.d.Xb(o.c=o.b++),148));o.b<o.d.gc();)i=(pn(o.b<o.d.gc()),c(o.d.Xb(o.c=o.b++),148)),r=new xpe(i.c,n.d,t),pn(o.b>0),o.a.Xb(o.c=--o.b),X2(o,r),pn(o.b<o.d.gc()),o.d.Xb(o.c=o.b++),r.a=!1,n=i}function bit(e){var t,n,i,r,o,a;for(r=c($(e,($e(),pJ)),12),a=new J(e.j);a.a<a.c.c.length;){for(o=c(U(a),12),i=new J(o.g);i.a<i.c.c.length;)return t=c(U(i),17),rs(t,r),o;for(n=new J(o.e);n.a<n.c.c.length;)return t=c(U(n),17),ks(t,r),o}return null}function wit(e,t,n){var i,r,o,a,d,b;for(b=c(J2(e.a,t),15).a,n?wve(e.a,ze(b+1),t):wve(e.a,ze(b-1),t),a=new Ld,r=new Gt(Xt((n?Fi(t):vr(t)).a.Jc(),new z));gn(r);)i=c(on(r),17),n?o=i.d.i:o=i.c.i,Se(J2(e.a,o))===Se(J2(e.a,t))&&(d=a.a.yc(o,a),d==null);return a}function iVt(e,t,n){var i,r;i=nc(n.q.getTime()),Lc(i,0)<0?(r=Gg-Qn(Ene(Dg(i),Gg)),r==Gg&&(r=0)):r=Qn(Ene(i,Gg)),t==1?(r=p.Math.min((r+50)/100|0,9),tm(e,48+r&Dr)):t==2?(r=p.Math.min((r+5)/10|0,99),qd(e,r,2)):(qd(e,r,3),t>3&&qd(e,0,t-3))}function rVt(e){var t,n,i,r;return Se($(e,(We(),Kv)))===Se((I1(),t0))?!e.e&&Se($(e,EP))!==Se((kj(),xP)):(i=c($(e,Dle),303),r=it(nt($(e,Lle)))||Se($(e,pE))===Se((B7(),wP)),t=c($(e,eSe),15).a,n=e.a.c.length,!r&&i!=(kj(),xP)&&(t==0||t>n))}function sVt(e,t){var n,i,r,o,a,d,b;for(r=e.Jc();r.Ob();)for(i=c(r.Pb(),9),d=new xc,_o(d,i),$r(d,(Ve(),sn)),_e(d,($e(),vJ),(zt(),!0)),a=t.Jc();a.Ob();)o=c(a.Pb(),9),b=new xc,_o(b,o),$r(b,Zt),_e(b,vJ,!0),n=new Kb,_e(n,vJ,!0),ks(n,d),rs(n,b)}function oVt(e){var t,n;for(n=0;n<e.c.length&&!(Mqe((pt(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&&!(Mqe((pt(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 vit(e,t){var n,i,r,o,a,d,b;for(r=0,a=new J(t.a);a.a<a.c.c.length;)for(o=c(U(a),9),r+=o.o.b+o.d.a+o.d.d+e.e,i=new Gt(Xt(vr(o).a.Jc(),new z));gn(i);)n=c(on(i),17),n.c.i.k==(Wt(),$c)&&(b=n.c.i,d=c($(b,($e(),Si)),9),r+=d.o.b+d.d.a+d.d.d);return r}function cVt(e,t){var n,i,r,o;t.Tg("Min Size Preprocessing",1),i=Qve(e),Ki(e)&&(n=(k0(),new xg(Ki(e))),o=new eq(Ki(e)?new xg(Ki(e)):null,e),r=_ye(n,o,!1,!0),i.a=p.Math.max(i.a,r.a),i.b=p.Math.max(i.b,r.b)),ri(e,(Qd(),RE),i.a),ri(e,sW,i.b),t.Ug()}function xit(e,t){var n,i;if(t!=e.Cb||e.Db>>16!=6&&t){if(zj(e,t))throw K(new Ht(LC+Nnt(e)));i=null,e.Cb&&(i=(n=e.Db>>16,n>=0?V2e(e,i):e.Cb.Qh(e,-1-n,null,i))),t&&(i=tk(t,e,6,i)),i=P0e(e,t,i),i&&i.mj()}else(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,6,t,t))}function WG(e,t){var n,i;if(t!=e.Cb||e.Db>>16!=3&&t){if(zj(e,t))throw K(new Ht(LC+Sst(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=tk(t,e,12,i)),i=L0e(e,t,i),i&&i.mj()}else(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,3,t,t))}function Exe(e,t){var n,i;if(t!=e.Cb||e.Db>>16!=9&&t){if(zj(e,t))throw K(new Ht(LC+vrt(e)));i=null,e.Cb&&(i=(n=e.Db>>16,n>=0?K2e(e,i):e.Cb.Qh(e,-1-n,null,i))),t&&(i=tk(t,e,9,i)),i=I0e(e,t,i),i&&i.mj()}else(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,9,t,t))}function Jj(e){var t,n,i,r,o;if(i=Qa(e),o=e.j,o==null&&i)return e.Hk()?null:i.gk();if(he(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),he(a,81))e.g=null;else throw K(a)}e.i=r}return e.g}return null}function yit(e){var t;return t=new Qe,Ue(t,new b4(new He(e.c,e.d),new He(e.c+e.b,e.d))),Ue(t,new b4(new He(e.c,e.d),new He(e.c,e.d+e.a))),Ue(t,new b4(new He(e.c+e.b,e.d+e.a),new He(e.c+e.b,e.d))),Ue(t,new b4(new He(e.c+e.b,e.d+e.a),new He(e.c,e.d+e.a))),t}function lVt(e){var t,n,i,r;for(i=e.a.d.j,r=e.c.d.j,n=new J(e.i.d);n.a<n.c.c.length;)t=c(U(n),70),_e(t,(We(),T3),null);i==(Ve(),Yt)?Mg(e,Yt,(Of(),qS),e.a):r==Yt?Mg(e,Yt,(Of(),HS),e.c):i==wn?Mg(e,wn,(Of(),HS),e.a):r==wn&&Mg(e,wn,(Of(),qS),e.c)}function uVt(e){var t,n,i;if(e==null)return wl;try{return So(e)}catch(r){if(r=kr(r),he(r,102))return t=r,i=Up(ju(e))+"@"+(n=(Sg(),M2e(e)>>>0),n.toString(16)),AFt(D$t(),(F6(),"Exception during lenientFormat for "+i),t),"<"+i+" threw "+Up(t.Pm)+">";throw K(r)}}function aVt(e){var t,n,i,r,o,a,d,b,v;for(i=!1,t=336,n=0,o=new bFe(e.length),d=e,b=0,v=d.length;b<v;++b)a=d[b],i=i|(z0(a),!1),r=(M0(a),a.a),Ue(o.a,$n(r)),t&=r.wd(),n=vBt(n,r.xd());return c(c(EHe(new Tt(null,hie(new Ct(E2e(o.a),16),new _,t,n)),new _z(e)),684),840)}function fVt(e,t,n,i){var r,o,a,d;r=GYe(e,t,n),o=GYe(e,n,t),a=c(Jt(e.c,t),117),d=c(Jt(e.c,n),117),r<o?new rm((Xf(),cx),a,d,o-r):o<r?new rm((Xf(),cx),d,a,r-o):(r!=0||!(!t.i||!n.i)&&i[t.i.c][n.i.c])&&(new rm((Xf(),cx),a,d,0),new rm(cx,d,a,0))}function hVt(e,t,n){var i,r,o,a,d;for(n.Tg("Breaking Point Removing",1),e.a=c($(t,(We(),V1)),225),o=new J(t.b);o.a<o.c.c.length;)for(r=c(U(o),26),d=new J(sm(r.a));d.a<d.c.c.length;)a=c(U(d),9),cVe(a)&&(i=c($(a,($e(),Rw)),318),!i.d&&bot(e,i));n.Ug()}function tC(){tC=W,L3=new N_("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),Gk=new N_("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),FE=new N_("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),zE=new N_("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),QP=new N_("WHOLE_DRAWING",4)}function dVt(e){var t,n,i,r;for(i=new pv(new Hp(e.b).a);i.b;)n=Ry(i),r=c(n.jd(),12),t=c(n.kd(),9),_e(t,($e(),Si),r),_e(r,Wl,t),_e(r,jP,(zt(),!0)),$r(r,c($(t,Zo),64)),$(t,Zo),_e(r.i,(We(),fr),(es(),v9)),c($(Jr(r.i),Bc),24).Ec((Qs(),XS))}function gVt(e){var t,n,i,r,o,a,d;for(o=new _i,r=new J(e.d.a);r.a<r.c.c.length;)i=c(U(r),126),i.b.a.c.length==0&&sr(o,i,o.c.b,o.c);if(o.b>1)for(t=qb((n=new Qp,++e.b,n),e.d),d=Ln(o,0);d.b!=d.d.c;)a=c(_n(d),126),Sf(ff(df(gf(hf(new $a,1),0),t),a))}function VG(e,t){var n,i;if(t!=e.Cb||e.Db>>16!=11&&t){if(zj(e,t))throw K(new Ht(LC+Vxe(e)));i=null,e.Cb&&(i=(n=e.Db>>16,n>=0?eve(e,i):e.Cb.Qh(e,-1-n,null,i))),t&&(i=tk(t,e,10,i)),i=U0e(e,t,i),i&&i.mj()}else(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,11,t,t))}function pVt(e,t,n){var i,r,o,a,d,b;if(o=0,a=0,e.c)for(b=new J(e.d.i.j);b.a<b.c.c.length;)d=c(U(b),12),o+=d.e.c.length;else o=1;if(e.d)for(b=new J(e.c.i.j);b.a<b.c.c.length;)d=c(U(b),12),a+=d.g.c.length;else a=1;return r=ys(tD(a-o)),i=(n+t)/2+(n-t)*(.4*r),i}function mVt(e,t){var n,i,r,o,a,d;for(t.Tg("Partition postprocessing",1),i=new J(e.b);i.a<i.c.c.length;)for(n=c(U(i),26),o=new J(n.a);o.a<o.c.c.length;)for(r=c(U(o),9),d=new J(r.j);d.a<d.c.c.length;)a=c(U(d),12),it(nt($(a,($e(),vJ))))&&r7(d);t.Ug()}function bVt(e){Ov();var t,n;if(e.Gc((Ve(),$o)))throw K(new Ht("Port sides must not contain UNDEFINED"));switch(e.gc()){case 1:return bP;case 2:return t=e.Gc(sn)&&e.Gc(Zt),n=e.Gc(Yt)&&e.Gc(wn),t||n?oJ:sJ;case 3:return rJ;case 4:return iJ;default:return null}}function kit(e,t,n){return Vj(),Qte(e,t)&&Qte(e,n)?!1:sre(new He(e.c,e.d),new He(e.c+e.b,e.d),t,n)||sre(new He(e.c+e.b,e.d),new He(e.c+e.b,e.d+e.a),t,n)||sre(new He(e.c+e.b,e.d+e.a),new He(e.c,e.d+e.a),t,n)||sre(new He(e.c,e.d+e.a),new He(e.c,e.d),t,n)}function Mxe(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:jt(o.substr(0,3),"!##")?t!=null&&(r=t.length,!jt(o.substr(o.length-r,r),t)||o.length!=t.length+3)&&!jt(_m,t):jt(o,Foe)&&!jt(_m,t)||jt(o,t))return!0}return!1}function wVt(e,t,n,i){var r,o,a,d,b,v;for(a=e.j.c.length,b=Ce(Din,o3e,319,a,0,1),d=0;d<a;d++)o=c(Xe(e.j,d),12),o.p=d,b[d]=TJt(qnt(o),n,i);for(GVt(e,b,n,t,i),v=new xn,r=0;r<b.length;r++)b[r]&&ci(v,c(Xe(e.j,r),12),b[r]);v.f.c+v.i.c!=0&&(_e(e,($e(),oE),v),XQt(e,b))}function vVt(e,t,n){var i,r,o;for(r=new J(e.a.b);r.a<r.c.c.length;)if(i=c(U(r),60),o=_y(i),o&&o.k==(Wt(),Ar))switch(c($(o,($e(),Zo)),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 xVt(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=Ln(t.b,0);!r&&i.b!=i.d.c;)o=c(_n(i),41),it(nt($(o,(Ii(),ap))))&&(r=o);r&&gst(e,vf(ee(Z(VJ,1),WQ,41,0,[r])),n,c($(t,(Wo(),Qw)),87)),n.Ug()}function yVt(e){var t,n,i,r,o,a;for(i=(y0(),o=new gT,o),dL(i,e),n=new ln((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a));n.e!=n.i.gc();)t=c(fn(n),19),a=(r=new gT,r),VG(a,i),Fb(a,t.g,t.f),bj(a,t.k),ha(a,t.i,t.j),Dn((!i.a&&(i.a=new Le(Nn,i,10,11)),i.a),a),dL(a,t);return i}function kVt(e,t,n){var i,r,o,a,d;return r=c(Ae(t,($G(),RTe)),15),!r&&(r=ze(0)),o=c(Ae(n,RTe),15),!o&&(o=ze(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 OVt(e,t){var n,i,r,o,a,d,b,v,k,T;if(++e.e,b=e.d==null?0:e.d.length,t>b){for(k=e.d,e.d=Ce(cCe,pke,67,2*b+4,0,1),o=0;o<b;++o)if(v=k[o],v)for(i=v.g,T=v.i,d=0;d<T;++d)r=c(i[d],138),a=R0e(e,r.yi()),n=e.d[a],!n&&(n=e.d[a]=e.bk()),n.Ec(r);return!0}else return!1}function jVt(e,t,n){var i,r,o,a,d,b;if(r=n,o=r.Jk(),z1(e.e,o)){if(o.Qi()){for(i=c(e.g,123),a=0;a<e.i;++a)if(d=i[a],ki(d,r)&&a!=t)throw K(new Ht(tP))}}else for(b=ol(e.e.Ah(),o),i=c(e.g,123),a=0;a<e.i;++a)if(d=i[a],b.$l(d.Jk()))throw K(new Ht(oP));I7(e,t,n)}function Oit(e,t){var n,i,r,o,a,d;for(n=c($(t,($e(),J1)),24),a=c(Ti((ure(),Di),n),24),d=c(Ti(si,n),24),o=a.Jc();o.Ob();)if(i=c(o.Pb(),24),!c(Ti(e.b,i),16).dc())return!1;for(r=d.Jc();r.Ob();)if(i=c(r.Pb(),24),!c(Ti(e.b,i),16).dc())return!1;return!0}function SVt(e,t,n){e.d=0,e.b=0,t.k==(Wt(),$c)&&n.k==$c&&c($(t,($e(),Si)),9)==c($(n,Si),9)&&(kte(t).j==(Ve(),Yt)?ait(e,t,n):ait(e,n,t)),t.k==$c&&n.k==Er?kte(t).j==(Ve(),Yt)?e.d=1:e.b=1:n.k==$c&&t.k==Er&&(kte(n).j==(Ve(),Yt)?e.b=1:e.d=1),Tqt(e,t,n)}function Axe(e,t){var n,i,r,o,a,d,b,v,k;if(e.a.c.length==1)return vtt(c(Xe(e.a,0),175),t);for(a=qBt(e),b=0,v=e.d,o=a,k=e.d,d=(v-o)/2+o;o+1<v;){for(b=0,i=new J(e.a);i.a<i.c.c.length;)n=c(U(i),175),b+=(r=aC(n,d,!1),r.a);b<t?(k=d,v=d):o=d,d=(v-o)/2+o}return k}function dL(e,t){var n,i,r,o,a;if(!t)return e;if(he(t,344))for(r=c(t,344),o=(!e.o&&(e.o=new _l((uc(),s1),n0,e,0)),e.o),i=r.fh().c.Jc();i.e!=i.i.gc();)n=c(i.Wj(),45),a=n.kd(),iL(o,c(n.jd(),149),a);else!e.o&&(e.o=new _l((uc(),s1),n0,e,0)),cXe(e.o,t.lf());return e}function Nxe(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F;return k=null,R=vxe(e,t),b=null,R&&(b=aHt(e,R)),F=b,n=null,r=be(Jt(e.i,F)),r!=null?n=r:n=ze(0),A=n,i=null,o=be(Jt(e.j,F)),o!=null?i=o:i=ze(0),L=i,v=t.i,a=oFe(v,A),ci(e.i,t,a),T=t.j,d=oFe(T,L),k=be(ci(e.j,t,d)),k}function TVt(e){var t,n,i,r,o;return isNaN(e)?(gj(),$ke):e<-9223372036854776e3?(gj(),Yft):e>=9223372036854776e3?(gj(),Ike):(r=!1,e<0&&(r=!0,e=-e),i=0,e>=jm&&(i=ys(e/jm),e-=i*jm),n=0,e>=mk&&(n=ys(e/mk),e-=n*mk),t=ys(e),o=rl(t,n,i),r&&ene(o),o)}function CVt(e){var t,n,i,r,o;if(o=new Qe,Vc(e.b,new h_e(o)),e.b.c.length=0,o.c.length!=0){for(t=(pt(0,o.c.length),c(o.c[0],81)),n=1,i=o.c.length;n<i;++n)r=(pt(n,o.c.length),c(o.c[n],81)),r!=t&&Wet(t,r);if(he(t,63))throw K(c(t,63));if(he(t,298))throw K(c(t,298))}}function EVt(e,t){var n,i,r,o;for(n=!t||!e.u.Gc((Ul(),Z1)),o=0,r=new J(e.e.Vf());r.a<r.c.c.length;){if(i=c(U(r),844),i.$f()==(Ve(),$o))throw K(new Ht("Label and node size calculator can only be used with ports that have port sides assigned."));i.Of(o++),DBt(e,i,n)}}function jit(e,t,n){var i,r,o;for(ma(t,(ik(),f9))&&(n=ge(be(Ae(t,f9)))),Dl(t,n),o=n+e.a+t.f+p.Math.max(c(Ae(t,(Pn(),K1)),125).a,e.b),r=0;r<(!t.e&&(t.e=new Et($i,t,7,4)),t.e).i;r++)i=c(ae(rj(c(ae((!t.e&&(t.e=new Et($i,t,7,4)),t.e),r),74)),0),19),jit(e,i,o)}function _xe(e){var t,n,i,r,o;for(n=new J(e.a.a);n.a<n.c.c.length;){for(t=c(U(n),321),t.j=null,o=t.a.a.ec().Jc();o.Ob();)i=c(o.Pb(),60),Wf(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 XG(e){var t,n,i,r,o;for(n=new J(e.a.a);n.a<n.c.c.length;){for(t=c(U(n),197),t.f=null,o=t.a.a.ec().Jc();o.Ob();)i=c(o.Pb(),84),Wf(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 MVt(e,t,n){var i,r,o,a,d;for(a=L7(e,n),d=Ce(e1,Qg,9,t.length,0,1),i=0,o=a.Jc();o.Ob();)r=c(o.Pb(),12),it(nt($(r,($e(),jP))))&&(d[i++]=c($(r,Wl),9));if(i<t.length)throw K(new oo("Expected "+t.length+" hierarchical ports, but found only "+i+"."));return d}function AVt(e){var t,n,i,r,o,a,d,b,v,k,T;return T=jve(e),t=e.a,b=t!=null,b&&K6(T,"category",e.a),r=w_(new hn(e.d)),a=!r,a&&(v=new vg,xf(T,"knownOptions",v),n=new JLe(v),ws(new hn(e.d),n)),o=w_(e.g),d=!o,d&&(k=new vg,xf(T,"supportedFeatures",k),i=new WLe(k),ws(e.g,i)),T}function NVt(e,t){var n;e.d&&(t.c!=e.e.c||VRt(e.e.b,t.b))&&(Ue(e.f,e.d),e.a=e.d.c+e.d.b,e.d=null,e.e=null),_Tt(t.b)?e.c=t:e.b=t,(t.b==(Oj(),Lw)&&!t.a||t.b==qv&&t.a||t.b==d3&&t.a||t.b==Hv&&!t.a)&&e.c&&e.b&&(n=new bf(e.a,e.c.d,t.c-e.a,e.b.d-e.c.d),e.d=n,e.e=t)}function Gd(){Gd=W,Gm=new mi("LEFT_OUTLINE"),ux=new mi("RIGHT_OUTLINE"),kd=new mi("OUTLINE_MAX_DEPTH"),a9=new mi("MIN_X"),u9=new mi("MAX_X"),s2t=new mi("MIN_Y"),aae=new mi("MAX_Y"),qE=new mi("root"),Uw=new mi("EDGE_BEND_HEIGHT"),JP=new mi("Node Model Order")}function Dxe(e,t){var n,i;if(t!=e.Cb||e.Db>>16!=7&&t){if(zj(e,t))throw K(new Ht(LC+Stt(e)));i=null,e.Cb&&(i=(n=e.Db>>16,n>=0?X2e(e,i):e.Cb.Qh(e,-1-n,null,i))),t&&(i=c(t,52).Oh(e,1,hI,i)),i=Ppe(e,t,i),i&&i.mj()}else(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,7,t,t))}function Sit(e,t){var n,i;if(t!=e.Cb||e.Db>>16!=3&&t){if(zj(e,t))throw K(new Ht(LC+lYe(e)));i=null,e.Cb&&(i=(n=e.Db>>16,n>=0?Y2e(e,i):e.Cb.Qh(e,-1-n,null,i))),t&&(i=c(t,52).Oh(e,0,gI,i)),i=Ipe(e,t,i),i&&i.mj()}else(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,3,t,t))}function Mie(e,t){Xj();var n,i,r,o,a,d,b,v,k;return t.d>e.d&&(d=e,e=t,t=d),t.d<63?bXt(e,t):(a=(e.d&-2)<<4,v=ebe(e,a),k=ebe(t,a),i=Vie(e,F4(v,a)),r=Vie(t,F4(k,a)),b=Mie(v,k),n=Mie(i,r),o=Mie(Vie(v,i),Vie(r,k)),o=nre(nre(o,b),n),o=F4(o,a),b=F4(b,a<<1),nre(nre(b,o),n))}function gL(){gL=W,Kle=new by(_lt,0),FSe=new by("LONGEST_PATH",1),qSe=new by("LONGEST_PATH_SOURCE",2),Vle=new by("COFFMAN_GRAHAM",3),zSe=new by(rse,4),HSe=new by("STRETCH_WIDTH",5),$J=new by("MIN_WIDTH",6),Wle=new by("BF_MODEL_ORDER",7),Xle=new by("DF_MODEL_ORDER",8)}function _Vt(e,t){var n,i,r,o,a,d;if(!e.tb){for(o=(!e.rb&&(e.rb=new tv(e,ah,e)),e.rb),d=new p4(o.i),r=new ln(o);r.e!=r.i.gc();)i=c(fn(r),146),a=i.ve(),n=c(a==null?bl(d.f,null,i):lw(d.i,a,i),146),n&&(a==null?bl(d.f,null,n):lw(d.i,a,n));e.tb=d}return c(Nc(e.tb,t),146)}function pL(e,t){var n,i,r,o,a;if((e.i==null&&ud(e),e.i).length,!e.p){for(a=new p4((3*e.g.i/2|0)+1),r=new S4(e.g);r.e!=r.i.gc();)i=c(Rne(r),182),o=i.ve(),n=c(o==null?bl(a.f,null,i):lw(a.i,o,i),182),n&&(o==null?bl(a.f,null,n):lw(a.i,o,n));e.p=a}return c(Nc(e.p,t),182)}function Lxe(e,t,n,i,r){var o,a,d,b,v;for(OFt(i+Qq(n,n.ge()),r),BHe(t,Uzt(n)),o=n.f,o&&Lxe(e,t,o,"Caused by: ",!1),d=(n.k==null&&(n.k=Ce(ice,Ge,81,0,0,1)),n.k),b=0,v=d.length;b<v;++b)a=d[b],Lxe(e,t,a,"Suppressed: ",!1);console.groupEnd!=null&&console.groupEnd.call(console)}function mL(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|hrt(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&&!it(nt($(t.j,($e(),rp))))&&!it(nt($(t.j,($e(),k3))))),a=a|t.q.tg(b,o,n),a=a|hrt(e,b[o],n,i);return Cr(e.c,t),a}function KG(e,t,n){var i,r,o,a,d,b,v,k,T,A;for(k=gUe(e.j),T=0,A=k.length;T<A;++T){if(v=k[T],n==(Gs(),Vl)||n==jE)for(b=rd(v.g),r=b,o=0,a=r.length;o<a;++o)i=r[o],VQt(t,i)&&qg(i,!0);if(n==tl||n==jE)for(d=rd(v.e),r=d,o=0,a=r.length;o<a;++o)i=r[o],WQt(t,i)&&qg(i,!0)}}function Tit(){return os(),ee(Z($in,1),Re,80,0,[ZOe,XOe,g3,Ice,w6e,HU,ZU,Qv,m6e,c6e,g6e,Gv,b6e,r6e,v6e,GOe,JU,Rce,FU,XU,y6e,VU,QOe,p6e,k6e,KU,HOe,x6e,qU,t6e,h6e,f6e,eJ,WOe,zU,QU,JOe,FS,u6e,s6e,d6e,eE,KOe,VOe,a6e,o6e,UU,YU,UOe,WU,l6e,GU,n6e,e6e,Ak,BU,i6e,YOe])}function DVt(e){var t,n;switch(t=null,n=null,gGt(e).g){case 1:t=(Ve(),sn),n=Zt;break;case 2:t=(Ve(),wn),n=Yt;break;case 3:t=(Ve(),Zt),n=sn;break;case 4:t=(Ve(),Yt),n=wn}n4(e,c(wu(_4(c(Ti(e.k,t),16).Mc(),p3)),114)),t4(e,c(wu(ev(c(Ti(e.k,n),16).Mc(),p3)),114))}function Wj(e){var t;if(nIe.call(this),this.i=new rB,this.g=e,this.f=c(e.e&&e.e(),10).length,this.f==0)throw K(new Ht("There must be at least one phase in the phase enumeration."));this.c=(t=c(Jf(this.g),10),new ga(t,c(mf(t,t.length),10),0)),this.a=new yr,this.b=new xn}function LVt(e){var t,n,i,r,o,a;if(r=c(Xe(e.j,0),12),r.e.c.length+r.g.c.length==0)e.n.a=0;else{for(a=0,i=Bd(va(ee(Z(Ea,1),It,22,0,[new A6(r),new s4(r)])));gn(i);)n=c(on(i),12),a+=n.i.n.a+n.n.a+n.a.a;t=c($(e,(We(),Hw)),8),o=t?t.a:0,e.n.a=a/(r.e.c.length+r.g.c.length)-o}}function Cit(e,t){var n,i,r;for(i=new J(t.a);i.a<i.c.c.length;)n=c(U(i),227),fee(c(n.b,68),Hr(Ms(c(t.b,68).c),c(t.b,68).a)),r=Jrt(c(t.b,68).b,c(n.b,68).b),r>1&&(e.a=!0),QAt(c(n.b,68),ji(Ms(c(t.b,68).c),O1(Hr(Ms(c(n.b,68).a),c(t.b,68).a),r))),jQe(e,t),Cit(e,n)}function Eit(e){var t,n,i,r,o,a,d;for(o=new J(e.a.a);o.a<o.c.c.length;)i=c(U(o),197),i.e=0,i.d.a.$b();for(r=new J(e.a.a);r.a<r.c.c.length;)for(i=c(U(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&&(Cr(i.d,a),++a.d.e)}function PVt(e,t){var n,i,r,o,a,d,b;for(t.Tg("Constraints Postprocessor",1),a=0,o=new J(e.b);o.a<o.c.c.length;){for(r=c(U(o),26),b=0,d=!1,i=new J(r.a);i.a<i.c.c.length;)n=c(U(i),9),n.k==(Wt(),ar)&&(d=!0,_e(n,(We(),mE),ze(a)),_e(n,SJ,ze(b)),++b);d&&++a}t.Ug()}function IVt(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 J(e.j);d.a<d.c.c.length;)switch(a=c(U(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 FX)}function RVt(e){var t,n;n=null,t=c(Xe(e.g,0),17);do{if(n=t.d.i,Oi(n,($e(),Ka)))return c($(n,Ka),12).i;if(n.k!=(Wt(),ar)&&gn(new Gt(Xt(Fi(n).a.Jc(),new z))))t=c(on(new Gt(Xt(Fi(n).a.Jc(),new z))),17);else if(n.k!=ar)return null}while(n&&n.k!=(Wt(),ar));return n}function $Vt(e,t){var n,i,r,o,a,d,b,v,k;for(d=t.j,a=t.g,b=c(Xe(d,d.c.length-1),114),k=(pt(0,d.c.length),c(d.c[0],114)),v=Yne(e,a,b,k),o=1;o<d.c.length;o++)n=(pt(o-1,d.c.length),c(d.c[o-1],114)),r=(pt(o,d.c.length),c(d.c[o],114)),i=Yne(e,a,n,r),i>v&&(b=n,k=r,v=i);t.a=k,t.c=b}function mw(e,t,n,i){var r,o;if(r=Se($(n,(We(),dE)))===Se((I0(),Wv)),o=c($(n,Zje),16),Oi(e,($e(),Ri)))if(r){if(o.Gc($(e,gE))&&o.Gc($(t,gE)))return i*c($(e,gE),15).a+c($(e,Ri),15).a}else return c($(e,Ri),15).a;else return-1;return c($(e,Ri),15).a}function BVt(e,t,n){var i,r,o,a,d,b,v;for(v=new jg(new _De(e)),a=ee(Z(r1t,1),nlt,12,0,[t,n]),d=0,b=a.length;d<b;++d)for(o=a[d],v.a.yc(o,(zt(),ep))==null,r=new xh(o.b);No(r.a)||No(r.b);)i=c(No(r.a)?U(r.a):U(r.b),17),i.c==i.d||nD(v,o==i.c?i.d:i.c);return $n(v),new Hl(v)}function Sf(e){if(!e.a.d||!e.a.e)throw K(new oo((j1(Tht),Tht.k+" must have a source and target "+(j1(aOe),aOe.k)+" specified.")));if(e.a.d==e.a.e)throw K(new oo("Network simplex does not support self-loops: "+e.a+" "+e.a.d+" "+e.a.e));return YF(e.a.d.g,e.a),YF(e.a.e.b,e.a),e.a}function zVt(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=Ce(Hn,li,30,d.c.length,15,1),i=0,a=new J(d);a.a<a.c.c.length;)r=c(U(a),9),r.p=i,e.b[i]=-1,++i;for(o=new J(d);o.a<o.c.c.length;)r=c(U(o),9),cit(e,r);d.c.length=0,e.a=null,e.b=null,n.Ug()}function Mit(e,t,n){var i,r,o,a,d,b;if(i=0,t.b!=0&&n.b!=0){o=Ln(t,0),a=Ln(n,0),d=ge(be(_n(o))),b=ge(be(_n(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=ge(be(_n(o))):b<=d&&a.b!=a.d.c?b=ge(be(_n(a))):r=!1}while(r)}return i}function Ait(e,t){var n,i;return a7(e.a),$u(e.a,(BH(),eW),eW),$u(e.a,D3,D3),i=new yr,Kn(i,D3,(LG(),_ue)),Se(Ae(t,(G0(),Iue)))!==Se((qD(),tW))&&Kn(i,D3,Mue),it(nt(Ae(t,f8e)))&&Kn(i,D3,Due),Kn(i,D3,Aue),it(nt(Ae(t,d8e)))&&Uc(i,D3,Nue),Wge(e.a,i),n=dC(e.a,t),n}function FVt(e,t,n,i){var r,o,a,d,b,v,k,T,A;for(b=0,k=new J(e.a);k.a<k.c.c.length;){for(v=c(U(k),9),d=0,o=new Gt(Xt(vr(v).a.Jc(),new z));gn(o);)r=c(on(o),17),T=vh(r.c).b,A=vh(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 qVt(e){var t,n;for(n=new Gt(Xt(Fi(e).a.Jc(),new z));gn(n);)if(t=c(on(n),17),t.d.i.k!=(Wt(),fc))throw K(new Xh(ise+eL(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 HVt(e,t){var n,i,r,o,a;for(a=c($(t,(Wo(),Q9e)),430),o=Ln(t.b,0);o.b!=o.d.c;)if(r=c(_n(o),41),e.b[r.g]==0){switch(a.g){case 0:_Ze(e,r);break;case 1:tWt(e,r)}e.b[r.g]=2}for(i=Ln(e.a,0);i.b!=i.d.c;)n=c(_n(i),65),vv(n.b.d,n,!0),vv(n.c.b,n,!0);_e(t,(Ii(),L9e),e.a)}function Pxe(e){var t;return t=new vT,(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&Ua)!=0&&(t.a+=","),R1e(t.a)}function GVt(e,t,n,i,r){var o,a,d,b;for(b=(o=c(Jf(Rs),10),new ga(o,c(mf(o,o.length),10),0)),d=new J(e.j);d.a<d.c.c.length;)a=c(U(d),12),t[a.p]&&(dnn(a,t[a.p],i),kf(b,a.j));r?(cie(e,t,(Ve(),sn),2*n,i),cie(e,t,Zt,2*n,i)):(cie(e,t,(Ve(),Yt),2*n,i),cie(e,t,wn,2*n,i))}function QVt(e,t){var n,i,r,o,a,d,b;for(r=new Qe,n=0;n<=e.j;n++)i=new mc(t),i.p=e.j-n,Rt(r.c,i);for(d=new J(e.p);d.a<d.c.c.length;)a=c(U(d),9),zr(a,c(Xe(r,e.j-e.g[a.p]),26));for(o=new J(r);o.a<o.c.c.length;)b=c(U(o),26),b.a.c.length==0&&r7(o);t.b.c.length=0,Or(t.b,r)}function UVt(e,t,n){var i,r,o,a,d,b;for(i=c(Ti(e.c,t),16),r=c(Ti(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 pc(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 JVt(e,t){var n,i,r,o,a,d;t.Tg(rut,1),r=c(Ae(e,(Eh(),$E)),100),o=(!e.a&&(e.a=new Le(Nn,e,10,11)),e.a),a=lHt(o),d=p.Math.max(a.a,ge(be(Ae(e,(Qd(),RE))))-(r.b+r.c)),i=p.Math.max(a.b,ge(be(Ae(e,sW)))-(r.d+r.a)),n=i-a.b,ri(e,IE,n),ri(e,Hk,d),ri(e,l9,i+n),t.Ug()}function nC(e){var t,n;if((!e.a&&(e.a=new Le(Qi,e,6,6)),e.a).i==0)return bwe(e);for(t=c(ae((!e.a&&(e.a=new Le(Qi,e,6,6)),e.a),0),171),Mn((!t.a&&(t.a=new Nr(ea,t,5)),t.a)),rw(t,0),sw(t,0),nw(t,0),iw(t,0),n=(!e.a&&(e.a=new Le(Qi,e,6,6)),e.a);n.i>1;)Mv(n,n.i-1);return t}function ol(e,t){qs();var n,i,r,o;return t?t==(Ai(),Pxt)||(t==Oxt||t==Vm||t==kxt)&&e!=LCe?new Dye(e,t):(i=c(t,689),n=i.Yk(),n||(sj(uo((Pl(),ms),t)),n=i.Yk()),o=(!n.i&&(n.i=new xn),n.i),r=c(Ao(co(o.f,e)),2020),!r&&ci(o,e,r=new Dye(e,t)),r):vxt}function WVt(e,t){var n,i;if(i=nD(e.b,t.b),!i)throw K(new oo("Invalid hitboxes for scanline constraint calculation."));(VXe(t.b,c(W8t(e.b,t.b),60))||VXe(t.b,c(J8t(e.b,t.b),60)))&&Sg(),e.a[t.b.f]=c(BY(e.b,t.b),60),n=c($Y(e.b,t.b),60),n&&(e.a[n.f]=t.b)}function VVt(e,t){var n,i,r,o,a,d,b,v,k;for(b=c($(e,($e(),Si)),12),v=Lo(ee(Z(Vr,1),Ge,8,0,[b.i.n,b.n,b.a])).a,k=e.i.n.b,n=rd(e.e),r=n,o=0,a=r.length;o<a;++o)i=r[o],rs(i,b),Cs(i.a,new He(v,k)),t&&(d=c($(i,(We(),ho)),79),d||(d=new nu,_e(i,ho,d)),ni(d,new He(v,k)))}function XVt(e,t){var n,i,r,o,a,d,b,v,k;for(r=c($(e,($e(),Si)),12),v=Lo(ee(Z(Vr,1),Ge,8,0,[r.i.n,r.n,r.a])).a,k=e.i.n.b,n=rd(e.g),a=n,d=0,b=a.length;d<b;++d)o=a[d],ks(o,r),xy(o.a,new He(v,k)),t&&(i=c($(o,(We(),ho)),79),i||(i=new nu,_e(o,ho,i)),ni(i,new He(v,k)))}function KVt(e){var t,n,i,r,o,a,d,b,v;if(i=e.b,o=i.e,a=E4(c($(i,(We(),fr)),103)),n=!!o&&c($(o,($e(),Bc)),24).Gc((Qs(),Ma)),!(a||n))for(v=(d=new x1(e.e).a.vc().Jc(),new $2(d));v.a.Ob();)b=(t=c(v.a.Pb(),45),c(t.kd(),114)),b.a&&(r=b.d,_o(r,null),b.c=!0,e.a=!0)}function YVt(e,t){var n,i,r,o;for(t.Tg("Semi-Interactive Crossing Minimization Processor",1),n=!1,r=new J(e.b);r.a<r.c.c.length;)i=c(U(r),26),o=QD(SH(bi(bi(new Tt(null,new Ct(i.a,16)),new pA),new YX),new y5),new mA),n=n|o.a!=null;n&&_e(e,($e(),cje),(zt(),!0)),t.Ug()}function ZVt(e,t){var n,i,r,o,a,d;for(e.b=new Qe,e.d=c($(t,($e(),Rk)),237),e.e=oLt(e.d),o=new _i,r=vf(ee(Z(t1t,1),elt,37,0,[t])),a=0;a<r.c.length;)i=(pt(a,r.c.length),c(r.c[a],37)),i.p=a++,n=new eot(i,e.a,e.b),Or(r,n.b),Ue(e.b,n),n.s&&(d=Ln(o,0),Dq(d,n));return e.c=new Tr,o}function eXt(e,t){var n,i,r,o,a,d;for(a=c(c(Ti(e.r,t),24),85).Jc();a.Ob();)o=c(a.Pb(),116),n=o.c?jpe(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:n7(e.u)&&(i=Sve(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 tXt(e,t){var n,i,r,o,a;a=new Qe,n=t;do o=c(Jt(e.b,n),134),o.B=n.c,o.D=n.d,Rt(a.c,o),n=c(Jt(e.k,n),17);while(n);return i=(pt(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(Xe(a,a.c.length-1),134),r.q=!0,r.C=c(r.d.a.ec().Jc().Pb(),17).d.i,a}function nXt(e){var t,n;n=c($(e,(We(),Ro)),166),t=c($(e,($e(),Pm)),316),n==(Su(),W1)?(_e(e,Ro,TP),_e(e,Pm,(_1(),x3))):n==Rm?(_e(e,Ro,TP),_e(e,Pm,(_1(),Nk))):t==(_1(),x3)?(_e(e,Ro,W1),_e(e,Pm,kP)):t==Nk&&(_e(e,Ro,Rm),_e(e,Pm,kP))}function YG(){YG=W,RP=new ZO,zmt=Kn(new yr,(ts(),Oc),(os(),FU)),Hmt=Uc(Kn(new yr,Oc,VU),Vs,WU),Gmt=cd(cd(CT(Uc(Kn(new yr,Af,ZU),Vs,YU),jc),KU),eJ),Fmt=Uc(Kn(Kn(Kn(new yr,Zd,HU),jc,QU),jc,FS),Vs,GU),qmt=Uc(Kn(Kn(new yr,jc,FS),jc,zU),Vs,BU)}function iC(){iC=W,Jmt=Kn(Uc(new yr,(ts(),Vs),(os(),n6e)),Oc,FU),Kmt=cd(cd(CT(Uc(Kn(new yr,Af,ZU),Vs,YU),jc),KU),eJ),Wmt=Uc(Kn(Kn(Kn(new yr,Zd,HU),jc,QU),jc,FS),Vs,GU),Xmt=Kn(Kn(new yr,Oc,VU),Vs,WU),Vmt=Uc(Kn(Kn(new yr,jc,FS),jc,zU),Vs,BU)}function iXt(e,t,n,i,r){var o,a;(!vs(t)&&t.c.i.c==t.d.i.c||!sXe(Lo(ee(Z(Vr,1),Ge,8,0,[r.i.n,r.n,r.a])),n))&&!vs(t)&&(t.c==r?G6(t.a,0,new Es(n)):ni(t.a,new Es(n)),i&&!Ba(e.a,n)&&(a=c($(t,(We(),ho)),79),a||(a=new nu,_e(t,ho,a)),o=new Es(n),sr(a,o,a.c.b,a.c),Cr(e.a,o)))}function Nit(e,t){var n,i,r,o;for(o=Qn(js(Wd,zd(Qn(js(t==null?0:zi(t),Vd)),15))),n=o&e.b.length-1,r=null,i=e.b[n];i;r=i,i=i.a)if(i.d==o&&S1(i.i,t))return r?r.a=i.a:e.b[n]=i.a,MIe(c(Fa(i.c),600),c(Fa(i.f),600)),h_(c(Fa(i.b),229),c(Fa(i.e),229)),--e.f,++e.e,!0;return!1}function rXt(e){var t,n;for(n=new Gt(Xt(vr(e).a.Jc(),new z));gn(n);)if(t=c(on(n),17),t.c.i.k!=(Wt(),fc))throw K(new Xh(ise+eL(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 _it(e,t){var n,i,r,o,a,d,b,v,k,T,A;r=t?new EA:new MA,o=!1;do for(o=!1,v=t?Tu(e.b):e.b,b=v.Jc();b.Ob();)for(d=c(b.Pb(),26),A=sm(d.a),t||Tu(A),T=new J(A);T.a<T.c.c.length;)k=c(U(T),9),r.Mb(k)&&(i=k,n=c($(k,($e(),Rw)),318),a=t?n.b:n.k,o=rrt(i,a,t,!1));while(o)}function sXt(e,t,n){var i,r,o,a,d,b,v;if(r=fYe(e.Db&254),r==0)e.Eb=n;else{if(r==1)d=Ce(Br,It,1,2,5,1),o=Kne(e,t),o==0?(d[0]=n,d[1]=e.Eb):(d[0]=e.Eb,d[1]=n);else for(d=Ce(Br,It,1,r+1,5,1),a=U4(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 Dit(e,t,n,i,r,o){var a,d,b,v,k,T,A,L,R,F,G,Y;for(k=i,t.j&&t.o?(L=c(Jt(e.f,t.A),60),F=L.d.c+L.d.b,--k):F=t.a.c+t.a.b,T=r,n.q&&n.o?(L=c(Jt(e.f,n.C),60),v=L.d.c,++T):v=n.a.c,G=v-F,b=p.Math.max(2,T-k),d=G/b,R=F+d,A=k;A<T;++A)a=c(o.Xb(A),134),Y=a.a.b,a.a.c=R-Y/2,R+=d}function Ixe(e,t,n,i,r,o){var a,d,b,v,k,T;for(v=n.c.length,o&&(e.c=Ce(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==(Ve(),sn)?r?Po(d,i):Tu(Po(d,i)):r?Tu(Po(d,i)):Po(d,i),o&&(e.c[d.p]=b.gc()),T=b.Jc();T.Ob();)k=c(T.Pb(),12),e.d[k.p]=v++;Or(n,b)}}function Lit(e,t,n){var i,r,o,a,d,b,v,k;for(o=ge(be(e.b.Jc().Pb())),v=ge(be(A$t(t.b))),i=O1(Ms(e.a),v-n),r=O1(Ms(t.a),n-o),k=ji(i,r),O1(k,1/(v-o)),this.a=k,this.b=new Qe,d=!0,a=e.b.Jc(),a.Pb();a.Ob();)b=ge(be(a.Pb())),d&&b-n>Vse&&(this.b.Ec(n),d=!1),this.b.Ec(b);d&&this.b.Ec(n)}function oXt(e){var t,n,i,r;if(OKt(e,e.n),e.d.c.length>0){for(bT(e.c);gxe(e,c(U(new J(e.e.a)),126))<e.e.a.c.length;){for(t=cHt(e),r=t.e.e-t.d.e-t.a,t.e.j&&(r=-r),i=new J(e.e.a);i.a<i.c.c.length;)n=c(U(i),126),n.j&&(n.e+=r);bT(e.c)}bT(e.c),exe(e,c(U(new J(e.e.a)),126)),qst(e)}}function cXt(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=Ce(Hn,li,30,d.c.length,15,1),i=0,a=new J(d);a.a<a.c.c.length;)r=c(U(a),9),r.p=i,e.b[i]=-1,++i;for(o=new J(d);o.a<o.c.c.length;)r=c(U(o),9),lit(e,r);d.c.length=0,e.a=null,e.b=null,n.Ug()}function lXt(e,t){V4();var n,i;if(n=lte(k7(),t.Og()),n){if(i=n.j,he(e,209))return dDt(c(e,19))?Al(i,(jh(),pr))||Al(i,Dt):Al(i,(jh(),pr));if(he(e,273))return Al(i,(jh(),ch));if(he(e,196))return Al(i,(jh(),e0));if(he(e,363))return Al(i,(jh(),X1))}return!0}function uXt(e,t,n){var i,r,o,a,d,b;if(r=n,o=r.Jk(),z1(e.e,o)){if(o.Qi()){for(i=c(e.g,123),a=0;a<e.i;++a)if(d=i[a],ki(d,r)&&a!=t)throw K(new Ht(tP))}}else for(b=ol(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 K(new Ht(oP));return c(Hy(e,t,n),76)}function Pit(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 Iit(e,t){var n,i,r,o,a;if(i=t>>5,t&=31,i>=e.d)return e.e<0?(ld(),iht):(ld(),JC);if(o=e.d-i,r=Ce(Hn,li,30,o+1,15,1),oUt(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 em(e.e,o,r),d7(a),a}function aXt(e,t,n,i){var r,o,a,d,b;return d=no(c(ae((!t.b&&(t.b=new Et(yn,t,4,7)),t.b),0),83)),b=no(c(ae((!t.c&&(t.c=new Et(yn,t,5,8)),t.c),0),83)),Ki(d)==Ki(b)||hv(b,d)?null:(a=sv(t),a==n?i:(o=c(Jt(e.a,a),9),o&&(r=o.e,r)?r:null))}function fXt(e,t){var n;switch(n=c($(e,(We(),CJ)),286),t.Tg("Label side selection ("+n+")",1),n.g){case 0:Gnt(e,(Gu(),n1));break;case 1:Gnt(e,(Gu(),hp));break;case 2:mst(e,(Gu(),n1));break;case 3:mst(e,(Gu(),hp));break;case 4:Git(e,(Gu(),n1));break;case 5:Git(e,(Gu(),hp))}t.Ug()}function z1(e,t){qs();var n,i,r;return t.Hk()?!0:t.Gk()==-2?t==(ck(),tO)||t==eO||t==sfe||t==ofe?!0:(r=e.Ah(),Yi(r,t)>=0?!1:(n=Yy((Pl(),ms),r,t),n?(i=n.Gk(),(i>1||i==-1)&&Vb(uo(ms,n))!=3):!0)):!1}function hXt(e,t,n,i){var r,o,a,d,b,v,k,T,A,L;if(b=e.c.d,v=e.d.d,b.j!=v.j)for(L=e.b,k=null,d=null,a=vFt(e),a&&L.i&&(k=e.b.i.i,d=L.i.j),r=b.j,T=null;r!=v.j;)T=t==0?iG(r):e2e(r),o=_2e(r,L.d[r.g],n),A=_2e(T,L.d[T.g],n),a&&k&&d&&(r==k?vYe(o,k,d):T==k&&vYe(A,k,d)),ni(i,ji(o,A)),r=T}function Rxe(e,t,n){var i,r,o,a,d,b;if(i=L8t(n,e.length),a=e[i],o=LIe(n,a.length),a[o].k==(Wt(),Ar))for(b=t.j,r=0;r<b.c.length;r++)d=(pt(r,b.c.length),c(b.c[r],12)),(n?d.j==(Ve(),sn):d.j==(Ve(),Zt))&&it(nt($(d,($e(),jP))))&&(Ou(b,r,c($(a[o],($e(),Si)),12)),o+=n?1:-1)}function dXt(e,t){var n,i,r,o,a,d,b,v;t.Tg("Greedy Width Approximator",1),n=ge(be(Ae(e,(Eh(),cW)))),b=c(Ae(e,$E),100),o=c(Ae(e,B8e),388),a=it(nt(Ae(e,$8e))),d=ge(be(Ae(e,BE))),v=(!e.a&&(e.a=new Le(Nn,e,10,11)),e.a),iwe(v),r=new oqe(n,o,a),i=yKt(r,v,d,b),ri(e,(Qd(),lx),i.c),t.Ug()}function Rit(e){if(e.g==null)switch(e.p){case 0:e.g=gDt(e)?(zt(),RS):(zt(),ep);break;case 1:e.g=SD(uPt(e));break;case 2:e.g=PD(nLt(e));break;case 3:e.g=BNt(e);break;case 4:e.g=new Fs(zNt(e));break;case 6:e.g=yv(HNt(e));break;case 5:e.g=ze(Z_t(e));break;case 7:e.g=Aj(hPt(e))}return e.g}function $xe(e){if(e.n==null)switch(e.p){case 0:e.n=pDt(e)?(zt(),RS):(zt(),ep);break;case 1:e.n=SD(aPt(e));break;case 2:e.n=PD(iLt(e));break;case 3:e.n=qNt(e);break;case 4:e.n=new Fs(FNt(e));break;case 6:e.n=yv(GNt(e));break;case 5:e.n=ze(eDt(e));break;case 7:e.n=Aj(fPt(e))}return e.n}function $it(e,t,n,i){var r,o,a,d,b;if(d=(qs(),c(t,69).vk()),z1(e.e,t)){if(t.Qi()&&rQ(e,t,i,he(t,104)&&(c(t,20).Bb&Ps)!=0))throw K(new Ht(tP))}else for(b=ol(e.e.Ah(),t),r=c(e.g,123),a=0;a<e.i;++a)if(o=r[a],b.$l(o.Jk()))throw K(new Ht(oP));I7(e,zve(e,t,n),d?c(i,76):Fd(t,i))}function Bit(e){var t,n,i,r,o,a,d;for(o=new J(e.a.a);o.a<o.c.c.length;)i=c(U(o),321),i.g=0,i.i=0,i.e.a.$b();for(r=new J(e.a.a);r.a<r.c.c.length;)for(i=c(U(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&&(Cr(i.e,a),++a.a.g,++a.a.i)}function gXt(e){var t,n,i,r,o;r=c($(e,(We(),Bm)),24),o=c($(e,LJ),24),n=new He(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),t=new Es(n),r.Gc((Cu(),bx))&&(i=c($(e,ZS),8),o.Gc((uu(),x9))&&(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)),pZt(e,n,t)}function pXt(e,t){var n,i,r;t.a?(nD(e.b,t.b),e.a[t.b.i]=c(BY(e.b,t.b),84),n=c($Y(e.b,t.b),84),n&&(e.a[n.i]=t.b)):(i=c(BY(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),DZ(e.b,t.b))}function Aie(e,t){var n,i,r,o,a,d;return o=e.d,d=ge(be($(e,(We(),Xg)))),d<0&&(d=0,_e(e,Xg,d)),t.o.b=d,a=p.Math.floor(d/2),i=new xc,$r(i,(Ve(),Zt)),_o(i,t),i.n.b=a,r=new xc,$r(r,sn),_o(r,t),r.n.b=a,rs(e,i),n=new Kb,ic(n,e),_e(n,ho,null),ks(n,r),rs(n,o),TYt(t,e,n),DUt(e,n),n}function mXt(e){var t,n;return n=c($(e,($e(),Bc)),24),t=new yr,n.Gc((Qs(),rE))&&(Hu(t,Imt),Hu(t,m9e)),(n.Gc(XS)||it(nt($(e,(We(),Rle)))))&&(Hu(t,m9e),n.Gc(v3)&&Hu(t,$mt)),n.Gc(Ma)&&Hu(t,Pmt),n.Gc(sE)&&Hu(t,Bmt),n.Gc(dJ)&&Hu(t,Rmt),n.Gc(WS)&&Hu(t,Dmt),n.Gc(VS)&&Hu(t,Lmt),t}function bXt(e,t){var n,i,r,o,a,d,b,v,k,T,A;return i=e.d,o=t.d,d=i+o,b=e.e!=t.e?-1:1,d==2?(k=js(Zr(e.a[0],Us),Zr(t.a[0],Us)),A=Qn(k),T=Qn(Zp(k,32)),T==0?new M1(b,A):new em(b,2,ee(Z(Hn,1),li,30,15,[A,T]))):(n=e.a,r=t.a,a=Ce(Hn,li,30,d,15,1),BBt(n,i,r,o,a),v=new em(b,d,a),d7(v),v)}function zit(e,t,n,i){var r,o;if(t){if(r=e.a.Le(n.d,t.d),r==0)return i.d=F0e(t,n.e),i.b=!0,t;o=r<0?0:1,t.a[o]=zit(e,t.a[o],n,i),z2(t.a[o])&&(z2(t.a[1-o])?(t.b=!0,t.a[0].b=!1,t.a[1].b=!1):z2(t.a[o].a[o])?t=$H(t,1-o):z2(t.a[o].a[1-o])&&(t=tUe(t,1-o)))}else return n;return t}function Fit(e,t,n){var i,r,o,a;r=e.i,i=e.n,rbe(e,(Yf(),Ko),r.c+i.b,n),rbe(e,Yo,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),rbe(e,el,r.c+i.b+n[0]-(n[1]-a)/2,n),t==el&&(e.c.b=o,e.c.c=r.c+i.b+(o-a)/2)}function qit(){this.c=Ce(is,io,30,(Ve(),ee(Z(Rs,1),ac,64,0,[$o,Yt,sn,wn,Zt])).length,15,1),this.b=Ce(is,io,30,ee(Z(Rs,1),ac,64,0,[$o,Yt,sn,wn,Zt]).length,15,1),this.a=Ce(is,io,30,ee(Z(Rs,1),ac,64,0,[$o,Yt,sn,wn,Zt]).length,15,1),dge(this.c,or),dge(this.b,Gr),dge(this.a,Gr)}function wXt(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 J(t.d);a.a<a.c.c.length;)if(o=c(U(a),70),it(nt($(o,(We(),T3))))){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 Pc(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=Ce(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=Ce(Hn,li,30,i+2,15,1),yc(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||Wy(e)}}function vXt(e,t,n){var i,r,o,a,d,b,v;for(v=t.d,e.a=new Wc(v.c.length),e.c=new xn,d=new J(v);d.a<d.c.c.length;)a=c(U(d),108),o=new ID(null),Ue(e.a,o),ci(e.c,a,o);for(e.b=new xn,PUt(e,t),i=0;i<v.c.length-1;i++)for(b=c(Xe(t.d,i),108),r=i+1;r<v.c.length;r++)fVt(e,b,c(Xe(t.d,r),108),n)}function xXt(e,t){var n,i,r,o,a,d,b;for(n=Gr,d=(Wt(),ar),r=new J(t.a);r.a<r.c.c.length;)i=c(U(r),9),o=i.k,o!=ar&&(a=be($(i,($e(),uje))),a==null?(n=p.Math.max(n,0),i.n.b=n+x0e(e.a,o,d)):i.n.b=(Ft(a),a)),b=x0e(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 Ev(e){var t,n,i,r,o;for(r=new Qe,t=new Y2((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a)),i=new Gt(Xt(B1(e).a.Jc(),new z));gn(i);)n=c(on(i),74),he(ae((!n.b&&(n.b=new Et(yn,n,4,7)),n.b),0),196)||(o=no(c(ae((!n.c&&(n.c=new Et(yn,n,5,8)),n.c),0),83)),t.a._b(o)||Rt(r.c,o));return r}function yXt(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=EKt(e.i)),e.j=e.i.length,wi(e),o=fw(e),e.d!=e.j)throw K(new Un(Xn((Fn(),fat))));if(e.g){for(i=0;i<e.g.a.c.length;i++)if(r=c(Wb(e.g,i),587),e.f<=r.a)throw K(new Un(Xn((Fn(),hat))));e.g.a.c.length=0}return o}function kXt(e,t){var n,i,r,o,a,d,b;for(t.Tg("Comment post-processing",1),o=new J(e.b);o.a<o.c.c.length;){for(r=c(U(o),26),i=new Qe,d=new J(r.a);d.a<d.c.c.length;)a=c(U(d),9),b=c($(a,($e(),Bk)),16),n=c($(a,_k),16),(b||n)&&(ztn(a,b,n),b&&Or(i,b),n&&Or(i,n));Or(r.a,i)}t.Ug()}function Hit(e,t,n,i,r){var o,a,d,b,v,k;if(e.d&&e.d.Fg(r),o=c(r.Xb(0),19),NZe(e,n,o,!1)||(a=c(r.Xb(r.gc()-1),19),NZe(e,i,a,!0))||Nve(e,r))return!0;for(k=r.Jc();k.Ob();)for(v=c(k.Pb(),19),b=t.Jc();b.Ob();)if(d=c(b.Pb(),19),ZG(e,v,d))return!0;return!1}function OXt(e,t,n){var i,r,o,a,d,b,v,k,T,A;A=t.c.length,T=(v=e.Fh(n),c(v>=0?e.Ih(v,!1,!0):pw(e,n,!1),61));e:for(o=T.Jc();o.Ob();){for(r=c(o.Pb(),57),k=0;k<A;++k)if(a=(pt(k,t.c.length),c(t.c[k],76)),b=a.kd(),d=a.Jk(),i=r.Kh(d,!1),b==null?i!=null:!ki(b,i))continue e;return r}return null}function jXt(e,t,n,i){var r,o,a,d;for(r=c(Fg(t,(Ve(),Zt)).Jc().Pb(),12),o=c(Fg(t,sn).Jc().Pb(),12),d=new J(e.j);d.a<d.c.c.length;){for(a=c(U(d),12);a.e.c.length!=0;)rs(c(Xe(a.e,0),17),r);for(;a.g.c.length!=0;)ks(c(Xe(a.g,0),17),o)}n||_e(t,($e(),sh),null),i||_e(t,($e(),Ka),null)}function Git(e,t){var n,i,r,o,a,d,b;for(n=new Ty,o=new J(e.b);o.a<o.c.c.length;){for(r=c(U(o),26),b=!0,i=0,d=new J(r.a);d.a<d.c.c.length;)switch(a=c(U(d),9),a.k.g){case 4:++i;case 1:qme(n,a);break;case 0:_Ut(a,t);default:n.b==n.c||Prt(n,i,b,!1,t),b=!1,i=0}n.b==n.c||Prt(n,i,b,!0,t)}}function SXt(e){var t,n,i,r,o,a,d,b,v;for(e.a=new Q0e,v=0,r=0,i=new J(e.i.b);i.a<i.c.c.length;){for(t=c(U(i),26),t.p=r,b=new J(t.a);b.a<b.c.c.length;)d=c(U(b),9),d.p=v,++v;++r}for(o=e.r==(U0(),r9),a=o?g1t:d1t,n=new J(e.i.b);n.a<n.c.c.length;)t=c(U(n),26),Rr(t.a,a),rRt(e.a,ze(t.p),t.a)}function Bxe(e,t){var n,i,r,o,a,d;for(n=0,d=new J(t);d.a<d.c.c.length;){for(a=c(U(d),12),Pwe(e.b,e.d[a.p]),r=new xh(a.b);No(r.a)||No(r.b);)i=c(No(r.a)?U(r.a):U(r.b),17),o=X1e(e,a==i.c?i.d:i.c),o>e.d[a.p]&&(n+=Xme(e.b,o),N0(e.a,ze(o)));for(;!wT(e.a);)Abe(e.b,c(D4(e.a),15).a)}return n}function Qit(e,t,n){var i,r,o,a;for(o=(!t.a&&(t.a=new Le(Nn,t,10,11)),t.a).i,r=new ln((!t.a&&(t.a=new Le(Nn,t,10,11)),t.a));r.e!=r.i.gc();)i=c(fn(r),19),(!i.a&&(i.a=new Le(Nn,i,10,11)),i.a).i==0||(o+=Qit(e,i,!1));if(n)for(a=Ki(t);a;)o+=(!a.a&&(a.a=new Le(Nn,a,10,11)),a.a).i,a=Ki(a);return o}function Mv(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=nk(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=nk(e,t),e.Kj()&&o!=null&&(i=e.Mj(o,null),i&&i.mj()),o)}function TXt(e){var t,n,i,r,o,a,d,b,v,k;for(v=e.a,t=new Tr,b=0,i=new J(e.d);i.a<i.c.c.length;){for(n=c(U(i),228),k=0,fm(n.b,new ub),a=Ln(n.b,0);a.b!=a.d.c;)o=c(_n(a),228),t.a._b(o)&&(r=n.c,d=o.c,k<d.d+d.a+v&&k+r.a+v>d.d&&(k=d.d+d.a+v));n.c.d=k,t.a.yc(n,t),b=p.Math.max(b,n.c.d+n.c.a)}return b}function CXt(e,t,n){var i,r,o,a,d,b;for(a=c($(e,($e(),vle)),16).Jc();a.Ob();){switch(o=c(a.Pb(),9),c($(o,(We(),Ro)),166).g){case 2:zr(o,t);break;case 4:zr(o,n)}for(r=new Gt(Xt(sd(o).a.Jc(),new z));gn(r);)i=c(on(r),17),!(i.c&&i.d)&&(d=!i.d,b=c($(i,fje),12),d?rs(i,b):ks(i,b))}}function Qs(){Qs=W,hJ=new q2("COMMENTS",0),Ma=new q2("EXTERNAL_PORTS",1),rE=new q2("HYPEREDGES",2),dJ=new q2("HYPERNODES",3),XS=new q2("NON_FREE_PORTS",4),v3=new q2("NORTH_SOUTH_PORTS",5),sE=new q2(xlt,6),WS=new q2("CENTER_LABELS",7),VS=new q2("END_LABELS",8),gJ=new q2("PARTITIONS",9)}function EXt(e,t,n,i,r){return i<0?(i=Jy(e,r,ee(Z(st,1),Ge,2,6,[vre,xre,yre,kre,gk,Ore,jre,Sre,Tre,Cre,Ere,Mre]),t),i<0&&(i=Jy(e,r,ee(Z(st,1),Ge,2,6,["Jan","Feb","Mar","Apr",gk,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),i<0?!1:(n.k=i,!0)):i>0?(n.k=i-1,!0):!1}function MXt(e,t,n,i,r){return i<0?(i=Jy(e,r,ee(Z(st,1),Ge,2,6,[vre,xre,yre,kre,gk,Ore,jre,Sre,Tre,Cre,Ere,Mre]),t),i<0&&(i=Jy(e,r,ee(Z(st,1),Ge,2,6,["Jan","Feb","Mar","Apr",gk,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),i<0?!1:(n.k=i,!0)):i>0?(n.k=i-1,!0):!1}function AXt(e,t,n,i,r,o){var a,d,b,v;if(d=32,i<0){if(t[0]>=e.length||(d=bs(e,t[0]),d!=43&&d!=45)||(++t[0],i=FG(e,t),i<0))return!1;d==45&&(i=-i)}return d==32&&t[0]-n==2&&r.b==2&&(b=new sF,v=b.q.getFullYear()-W0+W0-80,a=v%100,o.a=i==a,i+=(v/100|0)*100+(i<a?100:0)),o.p=i,!0}function Uit(e,t){var n,i,r,o,a;Ki(e)&&(a=c($(t,(We(),Bm)),185),Se(Ae(e,fr))===Se((es(),gp))&&ri(e,fr,Fh),i=(k0(),new xg(Ki(e))),o=new eq(Ki(e)?new xg(Ki(e)):null,e),r=_ye(i,o,!1,!0),kf(a,(Cu(),bx)),n=c($(t,ZS),8),n.a=p.Math.max(r.a,n.a),n.b=p.Math.max(r.b,n.b))}function NXt(e){var t,n,i,r,o,a;for(o=new Tr,t=new Y2((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a)),r=new Gt(Xt(B1(e).a.Jc(),new z));gn(r);)i=c(on(r),74),he(ae((!i.b&&(i.b=new Et(yn,i,4,7)),i.b),0),196)||(a=no(c(ae((!i.c&&(i.c=new Et(yn,i,5,8)),i.c),0),83)),t.a._b(a)||(n=o.a.yc(a,o),n==null));return o}function Vj(){Vj=W,MTe=ee(Z(Kw,1),bct,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 Xj(){Xj=W;var e,t;for(Tk=Ce(f3,Ge,92,32,0,1),WC=Ce(f3,Ge,92,32,0,1),e=1,t=0;t<=18;t++)Tk[t]=(ld(),Lc(e,0)>=0?F0(e):s7(F0(Dg(e)))),WC[t]=FF($d(e,t),0)?F0($d(e,t)):s7(F0(Dg($d(e,t)))),e=js(e,5);for(;t<WC.length;t++)Tk[t]=Dy(Tk[t-1],Tk[1]),WC[t]=Dy(WC[t-1],(ld(),uce))}function Jit(e,t){var n,i,r,o,a;if(e.c.length==0)return new Ls(ze(0),ze(0));for(n=(pt(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=(pt(a,e.c.length),c(e.c[a],12)).j;for(r=a;r<e.c.length-1&&n.g<i;)++r,n=(pt(a,e.c.length),c(e.c[a],12)).j;return new Ls(ze(a),ze(r))}function _Xt(e,t,n,i){var r,o,a,d,b,v,k;b=Po(t,n),(n==(Ve(),wn)||n==Zt)&&(b=Tu(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),jQt(e,v,d,i)&&(a=!0,Zee(e.a,c(b.Xb(o),12),c(b.Xb(o+1),12)),k=c(b.Xb(o+1),12),b.fd(o+1,c(b.Xb(o),12)),b.fd(o,k),r=!0);while(r);return a}function DXt(e,t,n){var i,r,o,a;for(n.Tg(Flt,1),r=c(Gl(bi(new Tt(null,new Ct(t.b,16)),new UA),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[(ya(),vl)]))),16),wnt(e,r,0),a=Ln(t.b,0);a.b!=a.d.c;)o=c(_n(a),41),i=Jt(e.a,ze(o.g))!=null?c(Jt(e.a,ze(o.g)),15).a:0,_e(o,(Wo(),yd),ze(i));n.Ug()}function ZG(e,t,n){var i,r,o,a,d,b,v,k;return d=t.i-e.g/2,b=n.i-e.g/2,v=t.j-e.g/2,k=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<k+r&&k<v||b<d+o&&d<b&&k<v+i&&v<k||d<b+a&&b<d&&v<k&&k<v+i?!0:b<d+o&&d<b&&v<k+r&&k<v}function LXt(e,t,n){var i,r,o,a,d,b,v,k,T,A;for(o=t.c.length,a=(pt(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(k=e.a[v],b=null,r=n+1;r<o;r++)i=(pt(r,t.c.length),c(t.c[r],295)),i.c<=v&&i.f>=v&&(b=i);b&&(k=p.Math.max(k,b.a.o.a)),k>A&&(T=v,A=k)}return T}function PXt(e){var t,n,i,r,o,a,d;for(o=new jg(c($n(new d5),50)),d=Gr,n=new J(e.d);n.a<n.c.c.length;){for(t=c(U(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),ni(i.b,t),ni(t.b,i);o.a.yc(t,(zt(),ep))==null}}function Wit(e,t,n){var i,r,o,a,d;if(!lv(t)){for(d=n.dh((he(t,18)?c(t,18).gc():Vf(t.Jc()))/e.a|0),d.Tg(qlt,1),a=new WA,o=null,r=t.Jc();r.Ob();)i=c(r.Pb(),41),a=va(ee(Z(Ea,1),It,22,0,[a,new y1(i)])),o&&(_e(o,(Ii(),ibt),i),_e(i,yue,o),dte(i)==dte(o)&&(_e(o,kue,i),_e(i,XJ,o))),o=i;d.Ug(),Wit(e,a,n)}}function IXt(e,t){var n,i,r;if(t==null){for(i=(!e.a&&(e.a=new Le(eg,e,9,5)),new ln(e.a));i.e!=i.i.gc();)if(n=c(fn(i),691),r=n.c,(r??n.zb)==null)return n}else for(i=(!e.a&&(e.a=new Le(eg,e,9,5)),new ln(e.a));i.e!=i.i.gc();)if(n=c(fn(i),691),jt(t,(r=n.c,r??n.zb)))return n;return null}function Nie(e,t){var n;switch(n=null,t.g){case 1:e.e.nf((Pn(),Dae))&&(n=c(e.e.mf(Dae),260));break;case 3:e.e.nf((Pn(),Lae))&&(n=c(e.e.mf(Lae),260));break;case 2:e.e.nf((Pn(),_ae))&&(n=c(e.e.mf(_ae),260));break;case 4:e.e.nf((Pn(),Pae))&&(n=c(e.e.mf(Pae),260))}return!n&&(n=c(e.e.mf((Pn(),s7e)),260)),n}function Vit(e,t,n){var i,r,o,a,d,b;for(r=n,o=0,d=new J(t);d.a<d.c.c.length;)a=c(U(d),19),ri(a,(G0(),nW),ze(r++)),b=Ev(a),i=p.Math.atan2(a.j+a.f/2,a.i+a.g/2),i+=i<0?Em:0,i<.7853981633974483||i>Ylt?Rr(b,e.b):i<=Ylt&&i>Zlt?Rr(b,e.d):i<=Zlt&&i>eut?Rr(b,e.c):i<=eut&&Rr(b,e.a),o=Vit(e,b,o);return r}function Xit(e,t,n,i){var r,o,a,d,b,v;for(r=(i.c+i.a)/2,ku(t.j),ni(t.j,r),ku(n.e),ni(n.e,r),v=new _Ie,d=new J(e.f);d.a<d.c.c.length;)o=c(U(d),135),b=o.a,sie(v,t,b),sie(v,n,b);for(a=new J(e.k);a.a<a.c.c.length;)o=c(U(a),135),b=o.b,sie(v,t,b),sie(v,n,b);return v.b+=2,v.a+=MGe(t,e.q),v.a+=MGe(e.q,n),v}function RXt(e,t,n){var i;n.Tg("Processor arrange node",1),it(nt($(t,(Wo(),B9e)))),i=c(wu(P1(bi(new Tt(null,new Ct(t.b,16)),new v$))),41),e.a=c($(t,W9e),354),e.a==(A7(),Tue)||e.a==ZJ?got(e,new Qo(ee(Z(VJ,1),WQ,41,0,[i])),n.dh(1)):e.a==Sue&&Fot(e,new Qo(ee(Z(VJ,1),WQ,41,0,[i])),n.dh(1)),n.Ug()}function Kit(e){var t,n,i,r,o,a,d;for(n=e.i,t=e.n,d=n.d,e.f==(pl(),np)?d+=(n.a-e.e.b)/2:e.f==Mf&&(d+=n.a-e.e.b),r=new J(e.d);r.a<r.c.c.length;){switch(i=c(U(r),190),a=i.Kf(),o=new us,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 Yit(e){var t,n,i,r,o,a,d;for(n=e.i,t=e.n,d=n.c,e.b==(Ql(),tp)?d+=(n.b-e.e.a)/2:e.b==Ef&&(d+=n.b-e.e.a),r=new J(e.d);r.a<r.c.c.length;){switch(i=c(U(r),190),a=i.Kf(),o=new us,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 $Xt(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R;k=n.a.c,a=n.a.c+n.a.b,o=c(Jt(n.c,t),460),L=o.f,R=o.a,b=new He(k,L),T=new He(a,R),r=k,n.p||(r+=e.c),r+=n.F+n.v*e.b,v=new He(r,L),A=new He(r,R),O7(t.a,ee(Z(Vr,1),Ge,8,0,[b,v])),d=n.d.a.gc()>1,d&&(i=new He(r,n.b),ni(t.a,i)),O7(t.a,ee(Z(Vr,1),Ge,8,0,[A,T]))}function zxe(e,t,n){var i,r;for(t<e.d.b.c.length?(e.b=c(Xe(e.d.b,t),26),e.a=c(Xe(e.d.b,t-1),26),e.c=t):(e.a=new mc(e.d),e.a.p=t-1,Ue(e.d.b,e.a),e.b=new mc(e.d),e.b.p=t,Ue(e.d.b,e.b),e.c=t),zr(n,e.b),r=new Gt(Xt(vr(n).a.Jc(),new z));gn(r);)i=c(on(r),17),!i.c.i.c&&i.c.i.k==(Wt(),fc)&&zr(i.c.i,e.a)}function BXt(e,t){var n,i,r,o;for(o=Po(t,(Ve(),wn)).Jc();o.Ob();)i=c(o.Pb(),12),n=c($(i,($e(),Wl)),9),n&&Sf(ff(df(gf(hf(new $a,0),.1),e.i[t.p].d),e.i[n.p].a));for(r=Po(t,Yt).Jc();r.Ob();)i=c(r.Pb(),12),n=c($(i,($e(),Wl)),9),n&&Sf(ff(df(gf(hf(new $a,0),.1),e.i[n.p].d),e.i[t.p].a))}function Zit(e){Bb(e,new ym(Ib(Db(Pb(Lb(new p1,eU),"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 gN))),Fe(e,eU,Ow,B7e),Fe(e,eU,kw,15),Fe(e,eU,OQ,ze(0)),Fe(e,eU,gS,dS)}function Fxe(){Fxe=W;var e,t,n,i,r,o;for(dM=Ce(Bl,l3,30,255,15,1),FW=Ce(Da,fd,30,16,15,1),t=0;t<255;t++)dM[t]=-1;for(n=57;n>=48;n--)dM[n]=n-48<<24>>24;for(i=70;i>=65;i--)dM[i]=i-65+10<<24>>24;for(r=102;r>=97;r--)dM[r]=r-97+10<<24>>24;for(o=0;o<10;o++)FW[o]=48+o&Dr;for(e=10;e<=15;e++)FW[e]=65+e-10&Dr}function ert(e,t){t.Tg("Process graph bounds",1),_e(e,(Ii(),vue),M_(Gte(rv(new Tt(null,new Ct(e.b,16)),new cK)))),_e(e,xue,M_(Gte(rv(new Tt(null,new Ct(e.b,16)),new gu)))),_e(e,_9e,M_(Hte(rv(new Tt(null,new Ct(e.b,16)),new GA)))),_e(e,D9e,M_(Hte(rv(new Tt(null,new Ct(e.b,16)),new QA)))),t.Ug()}function zXt(e){var t,n,i,r,o;r=c($(e,(We(),Bm)),24),o=c($(e,LJ),24),n=new He(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),t=new Es(n),r.Gc((Cu(),bx))&&(i=c($(e,ZS),8),o.Gc((uu(),x9))&&(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)),it(nt($(e,Fle)))||gZt(e,n,t)}function FXt(e){var t,n,i,r,o,a,d;for(t=!1,n=0,r=new J(e.d.b);r.a<r.c.c.length;)for(i=c(U(r),26),i.p=n++,a=new J(i.a);a.a<a.c.c.length;)o=c(U(a),9),!t&&!lv(sd(o))&&(t=!0);d=Li((_r(),zh),ee(Z(XE,1),Re,87,0,[go,vo])),t||(kf(d,Aa),kf(d,Bh)),e.a=new fVe(d),lc(e.f),lc(e.b),lc(e.e),lc(e.g)}function _ie(e){var t,n,i,r,o,a;if(!e.c){if(a=new ql,t=uM,o=t.a.yc(e,t),o==null){for(i=new ln(wc(e));i.e!=i.i.gc();)n=c(fn(i),88),r=iQ(n),he(r,89)&&dr(a,_ie(c(r,29))),Dn(a,n);t.a.Ac(e)!=null,t.a.gc()==0}Xzt(a),bv(a),e.c=new yy((c(ae(Pe((E0(),Ut).o),15),20),a.i),a.g),ru(e).b&=-33}return e.c}function qxe(e){var t;if(e.c!=10)throw K(new Un(Xn((Fn(),oU))));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 K(new Un(Xn((Fn(),Ca))))}return t}function trt(e){var t,n,i,r,o;if(e.l==0&&e.m==0&&e.h==0)return"0";if(e.h==_L&&e.m==0&&e.l==0)return"-9223372036854775808";if(e.h>>19!=0)return"-"+trt(jj(e));for(n=e,i="";!(n.l==0&&n.m==0&&n.h==0);){if(r=ute(bQ),n=Sye(n,r,!0),t=""+iRe(Z0),!(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 qXt(){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 HXt(e,t,n){var i,r,o,a,d,b,v,k,T;for(i=n.c,r=n.d,d=vh(t.c),b=vh(t.d),i==t.c?(d=Txe(e,d,r),b=Yet(t.d)):(d=Yet(t.c),b=Txe(e,b,r)),v=new eF(t.a),sr(v,d,v.a,v.a.a),sr(v,b,v.c.b,v.c),a=t.c==i,T=new SPe,o=0;o<v.b-1;++o)k=new Ls(c(vc(v,o),8),c(vc(v,o+1),8)),a&&o==0||!a&&o==v.b-2?T.b=k:Ue(T.a,k);return T}function GXt(e,t){var n,i,r,o;if(o=e.j.g-t.j.g,o!=0)return o;if(n=c($(e,(We(),Kg)),15),i=c($(t,Kg),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 K(new oo(x3e))}}function Hxe(e,t,n,i){var r,o,a,d,b;if(Vf((X_(),new Gt(Xt(sd(t).a.Jc(),new z))))>=e.a||!yve(t,n))return-1;if(lv(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=Hxe(e,b,n,i),d==-1||(r=p.Math.max(r,d),r>e.c-1))return-1;return r+1}function Eh(){Eh=W,cW=new Qr((Pn(),h9),1.3),Twt=new Qr(hx,(zt(),!1)),P8e=new Wp(15),$E=new Qr($h,P8e),BE=new Qr(lh,15),kwt=XP,Swt=Um,Cwt=$3,Ewt=fp,jwt=R3,Wue=VE,Mwt=dx,B8e=(lye(),vwt),$8e=wwt,Xue=ywt,z8e=xwt,L8e=pwt,Vue=gwt,D8e=dwt,R8e=bwt,N8e=WE,Owt=Nae,HP=awt,A8e=uwt,GP=fwt,I8e=mwt,_8e=hwt}function nrt(e,t){var n,i,r,o,a,d;if(Se(t)===Se(e))return!0;if(!he(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:!ki(r,o))return!1}else for(n=0;n<d;++n)if(r=e.Ti(n),o=a.Pb(),Se(r)!==Se(o))return!1;return!0}function irt(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],ki(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],Se(t)===Se(r.kd()))return!0}}return!1}function QXt(e,t){var n,i,r;return n=t.ni(e.a),n&&(r=qn(Zf((!n.b&&(n.b=new vu((At(),$s),ec,n)),n.b),"affiliation")),r!=null)?(i=KF(r,ml(35)),i==-1?pne(e,e7(e,Fu(t.ok())),r):i==0?pne(e,null,(tn(1,r.length+1),r.substr(1))):pne(e,(as(0,i,r.length),r.substr(0,i)),(tn(i+1,r.length+1),r.substr(i+1)))):null}function eQ(){eQ=W,Hce=new I4("NORTH",0,(Ve(),Yt),Yt),Uce=new I4("SOUTH",1,wn,wn),qce=new I4("EAST",2,sn,sn),Vce=new I4("WEST",3,Zt,Zt),Qce=new I4("NORTH_WEST_CORNER",4,Zt,Yt),Gce=new I4("NORTH_EAST_CORNER",5,Yt,sn),Wce=new I4("SOUTH_WEST_CORNER",6,wn,Zt),Jce=new I4("SOUTH_EAST_CORNER",7,sn,wn)}function UXt(e,t,n){var i,r,o,a;n.Tg("Orthogonally routing hierarchical port edges",1),e.a=0,i=zZt(t),Ven(t,i),Nen(e,t,i),Vtn(t),r=c($(t,(We(),fr)),103),o=t.b,aot((pt(0,o.c.length),c(o.c[0],26)),r,t),aot(c(Xe(o,o.c.length-1),26),r,t),a=t.b,vst((pt(0,a.c.length),c(a.c[0],26))),vst(c(Xe(a,a.c.length-1),26)),n.Ug()}function Gxe(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 K(new Yh("Invalid hexadecimal"))}}function rrt(e,t,n,i){var r,o,a,d,b,v;for(b=rie(e,n),v=rie(t,n),r=!1;b&&v&&(i||Hqt(b,v,n));)a=rie(b,n),d=rie(v,n),kD(t),kD(e),o=b.c,ire(b,!1),ire(v,!1),n?(q0(t,v.p,o),t.p=v.p,q0(e,b.p+1,o),e.p=b.p):(q0(e,b.p,o),e.p=b.p,q0(t,v.p+1,o),t.p=v.p),zr(b,null),zr(v,null),b=a,v=d,r=!0;return r}function srt(e){switch(e.g){case 0:return new UN;case 1:return new uz;case 3:return new VRe;case 4:return new VO;case 5:return new TFe;case 6:return new Z8;case 2:return new PK;case 7:return new GN;case 8:return new LK;default:throw K(new Ht("No implementation is available for the layerer "+(e.f!=null?e.f:""+e.g)))}}function JXt(e,t,n,i){var r,o,a,d,b;for(r=!1,o=!1,d=new J(i.j);d.a<d.c.c.length;)a=c(U(d),12),Se($(a,($e(),Si)))===Se(n)&&(a.g.c.length==0?a.e.c.length==0||(r=!0):o=!0);return b=0,r&&r^o?b=n.j==(Ve(),Yt)?-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==(Ve(),Yt)?0:t/2),b}function Die(e,t,n,i,r,o,a,d){var b,v,k;for(b=0,t!=null&&(b^=Pg(t.toLowerCase())),n!=null&&(b^=Pg(n)),i!=null&&(b^=Pg(i)),a!=null&&(b^=Pg(a)),d!=null&&(b^=Pg(d)),v=0,k=o.length;v<k;v++)b^=Pg(o[v]);e?b|=256:b&=-257,r?b|=16:b&=-17,this.f=b,this.i=t==null?null:(Ft(t),t),this.a=n,this.d=i,this.j=o,this.g=a,this.e=d}function Qxe(e,t,n){var i,r;switch(r=null,t.g){case 1:r=(Ll(),$Oe);break;case 2:r=(Ll(),zOe)}switch(i=null,n.g){case 1:i=(Ll(),BOe);break;case 2:i=(Ll(),ROe);break;case 3:i=(Ll(),FOe);break;case 4:i=(Ll(),qOe)}return r&&i?M4(e.j,new UK(new Qo(ee(Z(kin,1),It,181,0,[c($n(r),181),c($n(i),181)])))):(Mt(),Mt(),Is)}function WXt(e){var t,n,i;switch(t=c($(e,(We(),ZS)),8),_e(e,ZS,new He(t.b,t.a)),c($(e,vd),259).g){case 1:_e(e,vd,(Hd(),mW));break;case 2:_e(e,vd,(Hd(),gW));break;case 3:_e(e,vd,(Hd(),WP));break;case 4:_e(e,vd,(Hd(),VP))}(e.q?e.q:(Mt(),Mt(),Yd))._b(nx)&&(n=c($(e,nx),8),i=n.a,n.a=n.b,n.b=i)}function ort(e,t,n,i,r,o){if(this.b=n,this.d=r,e>=t.length)throw K(new Qc("Greedy SwitchDecider: Free layer not in graph."));this.c=t[e],this.e=new V_(i),$te(this.e,this.c,(Ve(),Zt)),this.i=new V_(i),$te(this.i,this.c,sn),this.f=new Xqe(this.c),this.a=!o&&r.i&&!r.s&&this.c[0].k==(Wt(),Ar),this.a&&hUt(this,e,t.length)}function crt(e,t){var n,i,r,o,a,d;o=!e.B.Gc((uu(),uI)),a=e.B.Gc(Gae),e.a=new $Ye(a,o,e.c),e.n&&gme(e.a.n,e.n),SY(e.g,(Yf(),el),e.a),t||(i=new F7(1,o,e.c),i.n.a=e.k,L4(e.p,(Ve(),Yt),i),r=new F7(1,o,e.c),r.n.d=e.k,L4(e.p,wn,r),d=new F7(0,o,e.c),d.n.c=e.k,L4(e.p,Zt,d),n=new F7(0,o,e.c),n.n.b=e.k,L4(e.p,sn,n))}function VXt(e){var t,n,i;switch(t=c($(e.d,(We(),V1)),225),t.g){case 2:n=znn(e);break;case 3:n=(i=new Qe,hr(bi(Jc(jo(jo(new Tt(null,new Ct(e.d.b,16)),new wb),new KR),new p8),new b0),new lDe(i)),i);break;default:throw K(new oo("Compaction not supported for "+t+" edges."))}len(e,n),ws(new hn(e.g),new rDe(e))}function XXt(e,t){var n,i,r,o,a,d,b;if(t.Tg("Process directions",1),n=c($(e,(Wo(),Qw)),87),n!=(_r(),Bh))for(r=Ln(e.b,0);r.b!=r.d.c;){switch(i=c(_n(r),41),d=c($(i,(Ii(),zP)),15).a,b=c($(i,FP),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}_e(i,zP,ze(d)),_e(i,FP,ze(b))}t.Ug()}function KXt(e){var t,n,i,r,o,a,d,b;for(b=new gJe,d=new J(e.a);d.a<d.c.c.length;)if(a=c(U(d),9),a.k!=(Wt(),Ar)){for(nWt(b,a,new us),o=new Gt(Xt(Fi(a).a.Jc(),new z));gn(o);)if(r=c(on(o),17),!(r.c.i.k==Ar||r.d.i.k==Ar))for(i=Ln(r.a,0);i.b!=i.d.c;)n=c(_n(i),8),t=n,U7(b,new q6(t.a,t.b))}return b}function Lie(){Lie=W,hTe=new mi(ooe),fTe=(ST(),UP),aTe=new xt(uoe,fTe),uTe=(RD(),dW),Zwt=new xt(M4e,uTe),lTe=(cL(),rae),Ywt=new xt(A4e,lTe),Vwt=new xt(coe,null),cTe=(mD(),fW),Kwt=new xt(loe,cTe),oTe=(uF(),tae),Qwt=new xt(N4e,oTe),Uwt=new xt(_4e,(zt(),!1)),Jwt=new xt(D4e,ze(64)),Wwt=new xt(L4e,!0),Xwt=iae}function lrt(e,t){var n,i,r,o,a,d,b,v,k,T;for(e.p=1,r=e.c,T=new Ld,k=aw(e,(Gs(),tl)).Jc();k.Ob();)for(v=c(k.Pb(),12),i=new J(v.g);i.a<i.c.c.length;)n=c(U(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 mc(t),d.p=a,Ue(t.b,d),zr(b,d)):(d=c(Xe(t.b,a),26),zr(b,d)),T.a.yc(b,T)));return T}function urt(e){switch(e.g){case 0:return new Dpe;case 1:return new hz;case 2:return new Gc;case 3:return new fz;case 4:return new X$e;case 5:return new Y$e;case 6:return new K$e;case 7:return new Uf;case 8:return new RK;default:throw K(new Ht("No implementation is available for the cycle breaker "+(e.f!=null?e.f:""+e.g)))}}function YXt(e,t){var n,i;if(n=c($(e,(Ii(),mue)),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(wu(_4(n.Mc(),new S8)),41);break;case 1:i=c(wu(ev(n.Mc(),new la)),41);break;case 4:i=c(wu(_4(n.Mc(),new j8)),41);break;case 3:i=c(wu(ev(n.Mc(),new P5)),41)}return i}function art(e){var t,n,i,r,o,a;if(e.a==null)if(e.a=Ce(Sl,eh,30,e.c.b.c.length,16,1),e.a[0]=!1,Oi(e.c,(We(),Jle)))for(i=c($(e.c,Jle),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 J(e.c.b),a.a<a.c.c.length&&U(a),r=1;a.a<a.c.c.length;)o=c(U(a),26),e.a[r++]=LWt(o)}function Qd(){Qd=W,IE=new mi("additionalHeight"),l9=new mi("drawingHeight"),Hk=new mi("drawingWidth"),sW=new mi("minHeight"),RE=new mi("minWidth"),oW=new mi("rows"),lx=new mi("targetWidth"),Uue=new Gi("minRowIncrease",0),cwt=new Gi("maxRowIncrease",0),Que=new Gi("minRowDecrease",0),owt=new Gi("maxRowDecrease",0)}function frt(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 ln(e.c);i.e!=i.i.gc();)o=c(fn(i),474),n=ru(o),Tv(n,t)}function hrt(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R;for(r=!1,a=t,d=0,b=a.length;d<b;++d)o=a[d],it((zt(),!!o.e))&&!c(Xe(e.b,o.e.p),221).s&&(r=r|(v=o.e,k=c(Xe(e.b,v.p),221),T=k.e,A=LIe(n,T.length),L=T[A][0],L.k==(Wt(),Ar)?T[A]=MVt(o,T[A],n?(Ve(),Zt):(Ve(),sn)):k.c.kg(T,n),R=mL(e,k,n,i),Rxe(k.e,k.o,n),R));return r}function drt(e,t){var n,i,r,o,a;for(o=(!t.a&&(t.a=new Le(Nn,t,10,11)),t.a).i,r=new ln((!t.a&&(t.a=new Le(Nn,t,10,11)),t.a));r.e!=r.i.gc();)i=c(fn(r),19),Se(Ae(i,(Pn(),P3)))!==Se((I1(),YE))&&(a=c(Ae(t,gx),144),n=c(Ae(i,gx),144),(a==n||a&&Zme(a,n))&&(!i.a&&(i.a=new Le(Nn,i,10,11)),i.a).i!=0&&(o+=drt(e,i)));return o}function ZXt(e){var t,n,i,r,o;for(o=new Wc(e.a.c.length),r=new J(e.a);r.a<r.c.c.length;){switch(i=c(U(r),9),n=c($(i,(We(),Ro)),166),t=null,n.g){case 1:case 2:t=(gm(),w3);break;case 3:case 4:t=(gm(),JS)}t?(_e(i,($e(),bJ),(gm(),w3)),t==JS?KG(i,n,(Gs(),Vl)):t==w3&&KG(i,n,(Gs(),tl))):Rt(o.c,i)}return o}function eKt(e){var t,n,i,r,o,a,d;for(i=0,d=0,a=new J(e.d);a.a<a.c.c.length;)o=c(U(a),108),r=c(Gl(bi(new Tt(null,new Ct(o.j,16)),new uf),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[(ya(),vl)]))),16),n=null,i<=d?(n=(Ve(),Yt),i+=r.gc()):d<i&&(n=(Ve(),wn),d+=r.gc()),t=n,hr(Jc(r.Mc(),new SA),new fDe(t))}function tKt(e,t){var n;return n=new hb,t&&ic(n,c(Jt(e.a,hI),105)),he(t,278)&&ic(n,c(Jt(e.a,dI),105)),he(t,363)?(ic(n,c(Jt(e.a,Bo),105)),n):(he(t,83)&&ic(n,c(Jt(e.a,yn),105)),he(t,209)?(ic(n,c(Jt(e.a,Nn),105)),n):he(t,196)?(ic(n,c(Jt(e.a,hu),105)),n):(he(t,273)&&ic(n,c(Jt(e.a,$i),105)),n))}function nKt(e){var t,n,i,r,o,a,d,b;for(e.b=new ont(new Qo((Ve(),ee(Z(Rs,1),ac,64,0,[$o,Yt,sn,wn,Zt]))),new Qo((ow(),ee(Z(Fce,1),Re,369,0,[Iw,ip,Pw])))),a=ee(Z(Rs,1),ac,64,0,[$o,Yt,sn,wn,Zt]),d=0,b=a.length;d<b;++d)for(o=a[d],n=ee(Z(Fce,1),Re,369,0,[Iw,ip,Pw]),i=0,r=n.length;i<r;++i)t=n[i],lGt(e.b,o,t,new Qe)}function grt(e,t){var n,i,r,o,a,d,b,v,k,T;if(a=c(c(Ti(e.r,t),24),85),d=e.u.Gc((Ul(),pp)),n=e.u.Gc(nM),i=e.u.Gc(tM),v=e.u.Gc(Yk),T=e.B.Gc((uu(),EW)),k=!n&&!i&&(v||a.gc()==2),eXt(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,k&&!r.a&&(r.d.c=0)}T&&(sQt(a),d&&(r.d.b=0,b.d.c=0))}function prt(e,t){var n,i,r,o,a,d,b,v,k,T;if(a=c(c(Ti(e.r,t),24),85),d=e.u.Gc((Ul(),pp)),n=e.u.Gc(nM),i=e.u.Gc(tM),b=e.u.Gc(Yk),T=e.B.Gc((uu(),EW)),v=!n&&!i&&(b||a.gc()==2),wYt(e,t),k=null,r=null,d){for(o=a.Jc(),k=c(o.Pb(),116),r=k;o.Ob();)r=c(o.Pb(),116);k.d.d=0,r.d.a=0,v&&!k.a&&(k.d.a=0)}T&&(oQt(a),d&&(k.d.d=0,r.d.a=0))}function mrt(e,t,n){var i,r,o,a,d,b,v,k;if(r=t.k,t.p>=0)return!1;if(t.p=n.b,Ue(n.e,t),r==(Wt(),Er)||r==$c){for(a=new J(t.j);a.a<a.c.c.length;)for(o=c(U(a),12),k=(i=new J(new s4(o).a.g),new l1e(i));No(k.a);)if(v=c(U(k.a),17).d,d=v.i,b=d.k,t.c!=d.c&&(b==Er||b==$c)&&mrt(e,d,n))return!0}return!0}function tQ(e){var t;return(e.Db&64)!=0?uxe(e):(t=new za(uxe(e)),t.a+=" (changeable: ",Og(t,(e.Bb&Ua)!=0),t.a+=", volatile: ",Og(t,(e.Bb&F1)!=0),t.a+=", transient: ",Og(t,(e.Bb&Pv)!=0),t.a+=", defaultValueLiteral: ",Zs(t,e.j),t.a+=", unsettable: ",Og(t,(e.Bb&Rl)!=0),t.a+=", derived: ",Og(t,(e.Bb&ad)!=0),t.a+=")",t.a)}function iKt(e,t){var n,i,r,o,a;return r=t.ni(e.a),r&&(i=(!r.b&&(r.b=new vu((At(),$s),ec,r)),r.b),n=qn(Zf(i,xs)),n!=null&&(o=n.lastIndexOf("#"),a=o==-1?E0e(e,t.hk(),n):o==0?xD(e,null,(tn(1,n.length+1),n.substr(1))):xD(e,(as(0,o,n.length),n.substr(0,o)),(tn(o+1,n.length+1),n.substr(o+1))),he(a,160)))?c(a,160):null}function rKt(e,t){var n,i,r,o,a;return i=t.ni(e.a),i&&(n=(!i.b&&(i.b=new vu((At(),$s),ec,i)),i.b),o=qn(Zf(n,zoe)),o!=null&&(r=o.lastIndexOf("#"),a=r==-1?E0e(e,t.hk(),o):r==0?xD(e,null,(tn(1,o.length+1),o.substr(1))):xD(e,(as(0,r,o.length),o.substr(0,r)),(tn(r+1,o.length+1),o.substr(r+1))),he(a,160)))?c(a,160):null}function sKt(e,t){var n,i,r,o,a,d,b,v,k,T,A;for(t.Tg("Restoring reversed edges",1),b=new J(e.b);b.a<b.c.c.length;)for(d=c(U(b),26),k=new J(d.a);k.a<k.c.c.length;)for(v=c(U(k),9),A=new J(v.j);A.a<A.c.c.length;)for(T=c(U(A),12),a=rd(T.g),i=a,r=0,o=i.length;r<o;++r)n=i[r],it(nt($(n,($e(),Vg))))&&qg(n,!1);t.Ug()}function oKt(e,t,n,i){var r,o,a,d,b;for(b=Ce(is,Ge,109,(Ve(),ee(Z(Rs,1),ac,64,0,[$o,Yt,sn,wn,Zt])).length,0,2),o=ee(Z(Rs,1),ac,64,0,[$o,Yt,sn,wn,Zt]),a=0,d=o.length;a<d;++a)r=o[a],b[r.g]=Ce(is,io,30,e.c[r.g],15,1);return bet(b,e,Yt),bet(b,e,wn),Xne(b,e,Yt,t,n,i),Xne(b,e,sn,t,n,i),Xne(b,e,wn,t,n,i),Xne(b,e,Zt,t,n,i),b}function cKt(e,t,n){if(Ac(e.a,t)){if(Ba(c(Jt(e.a,t),47),n))return 1}else ci(e.a,t,new Tr);if(Ac(e.a,n)){if(Ba(c(Jt(e.a,n),47),t))return-1}else ci(e.a,n,new Tr);if(Ac(e.b,t)){if(Ba(c(Jt(e.b,t),47),n))return-1}else ci(e.b,t,new Tr);if(Ac(e.b,n)){if(Ba(c(Jt(e.b,n),47),t))return 1}else ci(e.b,n,new Tr);return 0}function lKt(e){var t,n,i,r,o,a;e.q==(es(),r1)||e.q==Sc||(r=e.f.n.d+gq(c(eo(e.b,(Ve(),Yt)),129))+e.c,t=e.f.n.a+gq(c(eo(e.b,wn),129))+e.c,i=c(eo(e.b,sn),129),a=c(eo(e.b,Zt),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 Uxe(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 Ns(e,a,i)}return o=(qs(),c(t,69).vk()?c(n,76):Fd(t,n)),bu(e.e)?(v=!VD(e,t),i=Kc(e,o,i),b=t.Hk()?A0(e,3,t,null,n,Zj(e,t,n,he(t,104)&&(c(t,20).Bb&Ps)!=0),v):A0(e,1,t,t.gk(),n,-1,v),i?i.lj(b):i=b):i=Kc(e,o,i),i}function brt(){this.b=new _0,this.d=new _0,this.e=new _0,this.c=new _0,this.a=new xn,this.f=new xn,Ny(Vr,new Gf,new oB),Ny(ATe,new hB,new dB),Ny(POe,new gB,new uN),Ny(IOe,new aN,new fN),Ny(_vt,new pB,new hN),Ny(Oin,new cB,new lB),Ny(Tin,new uB,new c6),Ny(jin,new aB,new P8),Ny(Sin,new fB,new mK),Ny(Min,new I8,new lN)}function rC(e,t){var n,i,r,o,a;for(e=e==null?wl:(Ft(e),e),r=0;r<t.length;r++)t[r]=uVt(t[r]);for(n=new g4,a=0,i=0;i<t.length&&(o=e.indexOf("%s",a),o!=-1);)n.a+=""+qa(e==null?wl:(Ft(e),e),a,o),Mc(n,t[i++]),a=o+2;if(uUe(n,e,a,e.length),i<t.length){for(n.a+=" [",Mc(n,t[i++]);i<t.length;)n.a+=Yc,Mc(n,t[i++]);n.a+="]"}return n.a}function Jxe(e,t){var n,i,r,o,a,d,b;for(n=0,b=new J(t);b.a<b.c.c.length;){for(d=c(U(b),12),Pwe(e.b,e.d[d.p]),a=0,r=new xh(d.b);No(r.a)||No(r.b);)i=c(No(r.a)?U(r.a):U(r.b),17),JHe(i)?(o=X1e(e,d==i.c?i.d:i.c),o>e.d[d.p]&&(n+=Xme(e.b,o),N0(e.a,ze(o)))):++a;for(n+=e.b.d*a;!wT(e.a);)Abe(e.b,c(D4(e.a),15).a)}return n}function wrt(e){var t,n,i,r,o,a;return o=0,t=Qa(e),t.ik()&&(o|=4),(e.Bb&Rl)!=0&&(o|=2),he(e,104)?(n=c(e,20),r=Hs(n),(n.Bb&sc)!=0&&(o|=32),r&&(bn(ov(r)),o|=8,a=r.t,(a>1||a==-1)&&(o|=16),(r.Bb&sc)!=0&&(o|=64)),(n.Bb&Ps)!=0&&(o|=F1),o|=Ua):he(t,462)?o|=512:(i=t.ik(),i&&(i.i&1)!=0&&(o|=256)),(e.Bb&512)!=0&&(o|=128),o}function uKt(e,t){var n;return e.f==rfe?(n=Vb(uo((Pl(),ms),t)),e.e?n==4&&t!=(ck(),tO)&&t!=(ck(),eO)&&t!=(ck(),sfe)&&t!=(ck(),ofe):n==2):e.d&&(e.d.Gc(t)||e.d.Gc(B4(uo((Pl(),ms),t)))||e.d.Gc(Yy((Pl(),ms),e.b,t)))?!0:e.f&&Mxe((Pl(),e.f),rD(uo(ms,t)))?(n=Vb(uo(ms,t)),e.e?n==4:n==2):!1}function aKt(e,t){var n,i,r,o,a,d,b,v;for(o=new Qe,t.b.c.length=0,n=c(Gl(Ame(new Tt(null,new Ct(new hn(e.a.b),1))),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[(ya(),vl)]))),16),r=n.Jc();r.Ob();)if(i=c(r.Pb(),15),a=Hme(e.a,i),a.b!=0)for(d=new mc(t),Rt(o.c,d),d.p=i.a,v=Ln(a,0);v.b!=v.d.c;)b=c(_n(v),9),zr(b,d);Or(t.b,o)}function Pie(e){var t,n,i,r,o,a,d;for(d=new xn,i=new J(e.a.b);i.a<i.c.c.length;)t=c(U(i),60),ci(d,t,new Qe);for(r=new J(e.a.b);r.a<r.c.c.length;)for(t=c(U(r),60),t.i=Gr,a=t.c.Jc();a.Ob();)o=c(a.Pb(),60),c(Ao(co(d.f,o)),16).Ec(t);for(n=new J(e.a.b);n.a<n.c.c.length;)t=c(U(n),60),t.c.$b(),t.c=c(Ao(co(d.f,t)),16);Bit(e)}function Iie(e){var t,n,i,r,o,a,d;for(d=new xn,i=new J(e.a.b);i.a<i.c.c.length;)t=c(U(i),84),ci(d,t,new Qe);for(r=new J(e.a.b);r.a<r.c.c.length;)for(t=c(U(r),84),t.o=Gr,a=t.f.Jc();a.Ob();)o=c(a.Pb(),84),c(Ao(co(d.f,o)),16).Ec(t);for(n=new J(e.a.b);n.a<n.c.c.length;)t=c(U(n),84),t.f.$b(),t.f=c(Ao(co(d.f,t)),16);Eit(e)}function fKt(e,t){var n,i,r,o,a,d,b,v,k,T,A;for(b=Jr(t.a),r=ge(be($(b,(We(),op))))*2,k=ge(be($(b,sx))),v=p.Math.max(r,k),o=Ce(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 J(t.e);A.a<A.c.c.length;)T=c(U(A),9),i+=e.a[T.c.p]+v,o[n++]=i;return o}function hKt(e,t,n,i){var r,o,a,d,b,v,k,T,A;for(A=new jg(new NDe(e)),d=ee(Z(e1,1),Qg,9,0,[t,n]),b=0,v=d.length;b<v;++b)for(a=d[b],T=L7(a,i).Jc();T.Ob();)for(k=c(T.Pb(),12),o=new xh(k.b);No(o.a)||No(o.b);)r=c(No(o.a)?U(o.a):U(o.b),17),vs(r)||(A.a.yc(k,(zt(),ep))==null,JHe(r)&&nD(A,k==r.c?r.d:r.c));return $n(A),new Hl(A)}function dKt(e,t,n,i){var r,o,a,d,b,v,k,T;return a=c(Ae(n,(Pn(),Wk)),8),b=a.a,k=a.b+e,r=p.Math.atan2(k,b),r<0&&(r+=Em),r+=t,r>Em&&(r-=Em),d=c(Ae(i,Wk),8),v=d.a,T=d.b+e,o=p.Math.atan2(T,v),o<0&&(o+=Em),o+=t,o>Em&&(o-=Em),ph(),yf(1e-10),p.Math.abs(r-o)<=1e-10||r==o||isNaN(r)&&isNaN(o)?0:r<o?-1:r>o?1:Vp(isNaN(r),isNaN(o))}function Wxe(e,t,n,i){var r,o,a;t&&(o=ge(be($(t,(Ii(),Zg))))+i,a=n+ge(be($(t,KJ)))/2,_e(t,zP,ze(Qn(nc(p.Math.round(o))))),_e(t,FP,ze(Qn(nc(p.Math.round(a))))),t.d.b==0||Wxe(e,c(VF((r=Ln(new y1(t).a.d,0),new dy(r))),41),n+ge(be($(t,KJ)))+e.b,i+ge(be($(t,c9)))),$(t,kue)!=null&&Wxe(e,c($(t,kue),41),n,i))}function gKt(e,t){var n,i,r,o;if(o=c(Ae(e,(Pn(),B3)),64).g-c(Ae(t,B3),64).g,o!=0)return o;if(n=c(Ae(e,Iae),15),i=c(Ae(t,Iae),15),n&&i&&(r=n.a-i.a,r!=0))return r;switch(c(Ae(e,B3),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 K(new oo(x3e))}}function Vxe(e){var t,n,i;return(e.Db&64)!=0?mie(e):(t=new Iu(Y4e),n=e.k,n?ti(ti((t.a+=' "',t),n),'"'):(!e.n&&(e.n=new Le(Bo,e,1,7)),e.n.i>0&&(i=(!e.n&&(e.n=new Le(Bo,e,1,7)),c(ae(e.n,0),158)).a,!i||ti(ti((t.a+=' "',t),i),'"'))),ti(Rb(ti(Rb(ti(Rb(ti(Rb((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function vrt(e){var t,n,i;return(e.Db&64)!=0?mie(e):(t=new Iu(Z4e),n=e.k,n?ti(ti((t.a+=' "',t),n),'"'):(!e.n&&(e.n=new Le(Bo,e,1,7)),e.n.i>0&&(i=(!e.n&&(e.n=new Le(Bo,e,1,7)),c(ae(e.n,0),158)).a,!i||ti(ti((t.a+=' "',t),i),'"'))),ti(Rb(ti(Rb(ti(Rb(ti(Rb((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function pKt(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R;for(L=-1,R=0,k=t,T=0,A=k.length;T<A;++T){for(v=k[T],a=v,d=0,b=a.length;d<b;++d)for(o=a[d],n=new Obe(e,L==-1?t[0]:t[L],c($(Jr(o),(We(),t1)),270),fet(o),it(nt($(Jr(o),Nle)))),i=0;i<o.j.c.length;i++)for(r=i+1;r<o.j.c.length;r++)pHe(n,c(Xe(o.j,i),12),c(Xe(o.j,r),12))>0&&++R;++L}return R}function mKt(e,t){var n,i,r,o,a;for(t==(N7(),lue)&&V7(c(Ti(e.a,(Ov(),bP)),16)),r=c(Ti(e.a,(Ov(),bP)),16).Jc();r.Ob();)switch(i=c(r.Pb(),108),n=c(Xe(i.j,0),114).d.j,o=new Hl(i.j),Rr(o,new T5),t.g){case 2:uie(e,o,n,(ow(),ip),1);break;case 1:case 0:a=oVt(o),uie(e,new nd(o,0,a),n,(ow(),ip),0),uie(e,new nd(o,a,o.c.length),n,ip,1)}}function bKt(e){var t,n,i,r,o,a,d;for(r=c($(e,($e(),$w)),9),i=e.j,n=(pt(0,i.c.length),c(i.c[0],12)),a=new J(r.j);a.a<a.c.c.length;)if(o=c(U(a),12),Se(o)===Se($(n,Si))){o.j==(Ve(),Yt)&&e.p>r.p?($r(o,wn),o.d&&(d=o.o.b,t=o.a.b,o.a.b=d-t)):o.j==wn&&r.p>e.p&&($r(o,Yt),o.d&&(d=o.o.b,t=o.a.b,o.a.b=-(d-t)));break}return r}function Xxe(e,t){var n,i,r,o,a,d,b;if(t==null||t.length==0)return null;if(r=c(Nc(e.a,t),144),!r){for(i=(d=new x1(e.b).a.vc().Jc(),new $2(d));i.a.Ob();)if(n=(o=c(i.a.Pb(),45),c(o.kd(),144)),a=n.c,b=t.length,jt(a.substr(a.length-b,b),t)&&(t.length==a.length||bs(a,a.length-t.length-1)==46)){if(r)return null;r=n}r&&lo(e.a,t,r)}return r}function Kj(e,t,n){var i,r,o,a,d,b,v,k,T,A;for(o=new He(t,n),k=new J(e.a);k.a<k.c.c.length;)for(v=c(U(k),9),ji(v.n,o),A=new J(v.j);A.a<A.c.c.length;)for(T=c(U(A),12),r=new J(T.g);r.a<r.c.c.length;)for(i=c(U(r),17),gv(i.a,o),a=c($(i,(We(),ho)),79),a&&gv(a,o),b=new J(i.b);b.a<b.c.c.length;)d=c(U(b),70),ji(d.n,o)}function wKt(e,t,n){var i,r,o,a,d,b,v,k,T,A;for(o=new He(t,n),k=new J(e.a);k.a<k.c.c.length;)for(v=c(U(k),9),ji(v.n,o),A=new J(v.j);A.a<A.c.c.length;)for(T=c(U(A),12),r=new J(T.g);r.a<r.c.c.length;)for(i=c(U(r),17),gv(i.a,o),a=c($(i,(We(),ho)),79),a&&gv(a,o),b=new J(i.b);b.a<b.c.c.length;)d=c(U(b),70),ji(d.n,o)}function xrt(e){if((!e.b&&(e.b=new Et(yn,e,4,7)),e.b).i==0)throw K(new d4("Edges must have a source."));if((!e.c&&(e.c=new Et(yn,e,5,8)),e.c).i==0)throw K(new d4("Edges must have a target."));if(!e.b&&(e.b=new Et(yn,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new Et(yn,e,5,8)),e.c.i<=1)))throw K(new d4("Hyperedges are not supported."))}function vKt(e,t){var n,i;t.Tg("Partition preprocessing",1),i=c(Gl(bi(new Tt(null,new Ct(e.a,16)),new MR),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[(ya(),vl)]))),16),n=c(Gl(bi(jo(bi(new Tt(null,new Ct(e.a,16)),new AR),new NR),new H_e(i)),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[vl]))),16),hr(n.Mc(),new _R),t.Ug()}function yrt(e){var t,n,i;Oi(e,(We(),Fw))&&(i=c($(e,Fw),24),!i.dc()&&(n=(t=c(Jf(Xs),10),new ga(t,c(mf(t,t.length),10),0)),i.Gc((Cv(),Ku))?kf(n,Ku):kf(n,Pf),i.Gc(Ya)||kf(n,Ya),i.Gc(Df)?kf(n,If):i.Gc(Y1)?kf(n,i1):i.Gc(Lf)&&kf(n,Za),i.Gc(If)?kf(n,Df):i.Gc(i1)?kf(n,Y1):i.Gc(Za)&&kf(n,Lf),_e(e,Fw,n)))}function krt(e,t){var n,i;for(this.b=new Qe,this.e=new Qe,this.a=e,this.d=t,tqt(this),lFt(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(Xe(this.e,this.e.c.length-1),9).c.p,i=c($(e,($e(),cE)),16).Jc();i.Ob();)if(n=c(i.Pb(),70),Oi(n,(We(),TJ))){this.d=c($(n,TJ),233);break}}function Eu(e,t,n){var i,r,o,a,d,b,v,k;for(i=c(Jt(e.b,t),47),o=c(Jt(e.b,n),47),r=c(Jt(e.g,t),47),a=c(Jt(e.g,n),47),i.a.yc(n,i),a.a.yc(t,a),k=o.a.ec().Jc();k.Ob();)v=c(k.Pb(),9),i.a.yc(v,i),Cr(c(Jt(e.g,v),47),t),Os(c(Jt(e.g,v),47),r);for(b=r.a.ec().Jc();b.Ob();)d=c(b.Pb(),9),a.a.yc(d,a),Cr(c(Jt(e.b,d),47),n),Os(c(Jt(e.b,d),47),o)}function bL(e,t,n){var i,r,o,a,d,b,v,k;for(i=c(Jt(e.a,t),47),o=c(Jt(e.a,n),47),r=c(Jt(e.b,t),47),a=c(Jt(e.b,n),47),i.a.yc(n,i),a.a.yc(t,a),k=o.a.ec().Jc();k.Ob();)v=c(k.Pb(),9),i.a.yc(v,i),Cr(c(Jt(e.b,v),47),t),Os(c(Jt(e.b,v),47),r);for(b=r.a.ec().Jc();b.Ob();)d=c(b.Pb(),9),a.a.yc(d,a),Cr(c(Jt(e.a,d),47),n),Os(c(Jt(e.a,d),47),o)}function ld(){ld=W;var e;for(SU=new M1(1,1),uce=new M1(1,10),JC=new M1(0,0),iht=new M1(-1,1),rht=ee(Z(f3,1),Ge,92,0,[JC,SU,new M1(1,2),new M1(1,3),new M1(1,4),new M1(1,5),new M1(1,6),new M1(1,7),new M1(1,8),new M1(1,9),uce]),TU=Ce(f3,Ge,92,32,0,1),e=0;e<TU.length;e++)TU[e]=FF($d(1,e),0)?F0($d(1,e)):s7(F0(Dg($d(1,e))))}function Ort(e,t){var n,i,r,o,a,d,b,v,k;for(r=new Gt(Xt(B1(t).a.Jc(),new z));gn(r);)i=c(on(r),74),k=no(c(ae((!i.c&&(i.c=new Et(yn,i,5,8)),i.c),0),83)),d=nC(i),b=t.i+t.g/2,v=t.j+t.f,o=k.i+k.g/2,a=k.j,rw(d,b),sw(d,v),nw(d,o),iw(d,a),n=ge(be(Ae(k,(Gd(),Uw)))),p.Math.abs(n-(a-ge(be(Ae(Ki(k),(Pn(),lh))))/2))>Hg&&vne(d,o,n),Ort(e,k)}function jrt(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 xKt(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R;if(o=n,n<i)for(A=(L=new ID(e.p),R=new ID(e.p),Os(L.e,e.e),L.q=e.q,L.r=R,Lq(L),Os(R.j,e.j),R.r=L,Lq(R),new Ls(L,R)),T=c(A.a,117),k=c(A.b,117),r=(pt(o,t.c.length),c(t.c[o],341)),a=Xit(e,T,k,r),v=n+1;v<=i;v++)d=(pt(v,t.c.length),c(t.c[v],341)),b=Xit(e,T,k,d),eqt(d,b,r,a)&&(r=d,a=b,o=v);return o}function yKt(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R;for(a=c(ae(t,0),19),Dc(a,0),Dl(a,0),A=new Qe,Rt(A.c,a),d=a,o=new Spe(e.a,a.g,a.f,(tC(),QP)),L=1;L<t.i;L++)R=c(ae(t,L),19),b=Jie(e,L3,R,d,o,A,n),v=Jie(e,Gk,R,d,o,A,n),k=Jie(e,FE,R,d,o,A,n),T=Jie(e,zE,R,d,o,A,n),r=ZZt(e,b,v,k,T,R,d,i),Dc(R,r.d),Dl(R,r.e),u_(r,QP),o=r,d=R,Rt(A.c,R);return o}function kKt(e,t,n){var i,r,o,a,d,b,v,k,T,A;if(k=null,A=t,T=FVe(e,AUe(n),A),bj(T,E1(A,md)),a=ew(A,tke),i=new nBe(e,T),Ktt(i.a,i.b,a),d=ew(A,Eoe),r=new iBe(e,T),Ytt(r.a,r.b,d),(!T.b&&(T.b=new Et(yn,T,4,7)),T.b).i==0||(!T.c&&(T.c=new Et(yn,T,5,8)),T.c).i==0)throw o=E1(A,md),b=nat+o,v=b+DS,K(new Kh(v));return PG(A,T),_nn(e,A,T),k=tne(e,A,T),k}function OKt(e,t){var n,i,r,o,a,d,b;for(r=Ce(Hn,li,30,e.e.a.c.length,15,1),a=new J(e.e.a);a.a<a.c.c.length;)o=c(U(a),126),r[o.d]+=o.b.a.c.length;for(d=Y_(t);d.b!=0;)for(o=c(d.b==0?null:(pn(d.b!=0),wa(d,d.a.a)),126),i=G4(new J(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&&sr(d,b,d.c.b,d.c)}function Srt(e){var t,n,i,r,o,a,d,b,v,k,T;for(n=cs,r=pi,d=new J(e.e.a);d.a<d.c.c.length;)o=c(U(d),126),r=p.Math.min(r,o.e),n=p.Math.max(n,o.e);for(t=Ce(Hn,li,30,n-r+1,15,1),a=new J(e.e.a);a.a<a.c.c.length;)o=c(U(a),126),o.e-=r,++t[o.e];if(i=0,e.k!=null)for(v=e.k,k=0,T=v.length;k<T&&(b=v[k],t[i++]+=b,t.length!=i);++k);return t}function jKt(e,t){var n,i,r,o,a,d;if(t.Tg("Edge routing",1),r=c($(e,(Wo(),Oue)),386),r==(M7(),pue))yIt(e);else if(r==$P)for(c(wu(P1(bi(new Tt(null,new Ct(e.b,16)),new O8))),41),o=ge(be($(e,U9e))),a=ge(be($(e,F9e))),d=c($(e,Qw),87),Lnn(e,d,o),hin(e,d,o,a),gin(e,d,o,a),i=Ln(e.a,0);i.b!=i.d.c;)n=c(_n(i),65),n.a.b<2&&txe(n);t.Ug()}function Trt(e){switch(e.d){case 9:case 8:return!0;case 3:case 5:case 4:case 6:return!1;case 7:return c($xe(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 zT(e.k,e.f);case 3:case 4:return e.j==e.e;default:return e.n==null?e.g==null:ki(e.n,e.g)}}default:return!1}}function SKt(e){var t,n,i,r;for(r=e.b,t=!1,i=new J(e.i.d);i.a<i.c.c.length;)if(n=c(U(i),70),it(nt($(n,(We(),T3))))){t=!0;break}Al(r,(Ve(),Yt))?Al(r,wn)?Al(r,Zt)?Al(r,sn)||Mg(e,t?Zt:Yt,t?(Of(),Uv):(Of(),HS),t?null:e.c):Mg(e,t?sn:Yt,t?(Of(),Uv):(Of(),qS),t?null:e.a):Mg(e,Yt,(Of(),Uv),null):Mg(e,wn,(Of(),Uv),null)}function Crt(e,t,n){var i,r,o,a,d,b,v,k,T;for(o=new Wc(t.c.length),v=new J(t);v.a<v.c.c.length;)a=c(U(v),9),Ue(o,e.b[a.c.p][a.p]);for(aen(e,o,n),T=null;T=ltn(o);)GYt(e,c(T.a,242),c(T.b,242),o);for(t.c.length=0,r=new J(o);r.a<r.c.c.length;)for(i=c(U(r),242),d=i.d,b=0,k=d.length;b<k;++b)a=d[b],Rt(t.c,a),e.a[a.c.p][a.p].a=mh(i.g,i.d[0]).a}function TKt(e,t){var n,i,r;switch(t.Tg("Breaking Point Insertion",1),i=new pxe(e),c($(e,(We(),Ule)),351).g){case 2:r=new JO;break;case 0:r=new Rp;break;default:r=new NA}if(n=r.mg(e,i),it(nt($(e,RSe)))&&(n=wen(e,n)),!r.ng()&&Oi(e,IJ))switch(c($(e,IJ),352).g){case 2:n=Xtt(i,n);break;case 1:n=Ret(i,n)}if(n.dc()){t.Ug();return}Bnn(e,n),t.Ug()}function Ert(e){Bb(e,new ym(Ib(Db(Pb(Lb(new p1,MS),"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 mB))),Fe(e,MS,Ow,L7e),Fe(e,MS,GQ,Ke(KE)),Fe(e,MS,Q4e,Ke(A7e)),Fe(e,MS,i3,Ke(N7e)),Fe(e,MS,yk,Ke(D7e)),Fe(e,MS,bS,Ke(_7e))}function nQ(e,t,n){var i,r,o,a,d;if(i=Qn(js(Wd,zd(Qn(js(t==null?0:zi(t),Vd)),15))),d=Qn(js(Wd,zd(Qn(js(n==null?0:zi(n),Vd)),15))),o=j7(e,t,i),o&&d==o.f&&S1(n,o.i))return n;if(a=S7(e,n,d),a)throw K(new Ht("value already present: "+n));return r=new Rq(t,i,n,d),o?(Vy(e,o),uL(e,r,o),o.e=null,o.c=null,o.i):(uL(e,r,null),wet(e),null)}function CKt(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R;k=n.a.c,a=n.a.c+n.a.b,o=c(Jt(n.c,t),460),L=o.f,R=o.a,o.b?b=new He(a,L):b=new He(k,L),o.c?T=new He(k,R):T=new He(a,R),r=k,n.p||(r+=e.c),r+=n.F+n.v*e.b,v=new He(r,L),A=new He(r,R),O7(t.a,ee(Z(Vr,1),Ge,8,0,[b,v])),d=n.d.a.gc()>1,d&&(i=new He(r,n.b),ni(t.a,i)),O7(t.a,ee(Z(Vr,1),Ge,8,0,[A,T]))}function U0(){U0=W,FJ=new H2(th,0),DP=new H2("NIKOLOV",1),LP=new H2("NIKOLOV_PIXEL",2),XSe=new H2("NIKOLOV_IMPROVED",3),KSe=new H2("NIKOLOV_IMPROVED_PIXEL",4),VSe=new H2("DUMMYNODE_PERCENTAGE",5),YSe=new H2("NODECOUNT_PERCENTAGE",6),qJ=new H2("NO_BOUNDARY",7),r9=new H2("MODEL_ORDER_LEFT_TO_RIGHT",8),OE=new H2("MODEL_ORDER_RIGHT_TO_LEFT",9)}function Rie(e,t){var n,i,r,o,a,d,b,v,k,T,A,L;return k=null,A=vxe(e,t),i=null,d=c(Ae(t,(Pn(),Q2t)),301),d?i=d:i=(y7(),oI),L=i,L==(y7(),oI)&&(r=null,v=c(Jt(e.r,A),301),v?r=v:r=Hae,L=r),ci(e.r,t,L),o=null,b=c(Ae(t,G2t),280),b?o=b:o=(Mj(),eI),T=o,T==(Mj(),eI)&&(a=null,n=c(Jt(e.b,A),280),n?a=n:a=kW,T=a),k=c(ci(e.b,t,T),280),k}function EKt(e){var t,n,i,r,o;for(i=e.length,t=new vT,o=0;o<i;)if(n=bs(e,o++),!(n==9||n==10||n==12||n==13||n==32)){if(n==35){for(;o<i&&(n=bs(e,o++),!(n==13||n==10)););continue}n==92&&o<i?(r=(tn(o,e.length),e.charCodeAt(o)))==35||r==9||r==10||r==12||r==13||r==32?(tj(t,r&Dr),++o):(t.a+="\\",tj(t,r&Dr),++o):tj(t,n&Dr)}return t.a}function Kxe(){Kxe=W,Ibt=new xt(o4e,(zt(),!1)),zbt=new xt(c4e,ze(0)),Fbt=new xt(l4e,0),qbt=new xt(XQ,!1),r8e=(qD(),tW),$bt=new xt(eoe,r8e),ze(0),Rbt=new xt(toe,ze(1)),o8e=(GH(),Bue),Ubt=new xt(u4e,o8e),c8e=(bH(),Lue),Jbt=new xt(a4e,c8e),s8e=(SG(),$ue),Bbt=new xt(f4e,s8e),Qbt=new xt(noe,0),Hbt=new xt(ioe,!1),Gbt=new xt(h4e,!1)}function MKt(e,t){var n,i,r;for(i=new J(t);i.a<i.c.c.length;)if(n=c(U(i),19),St(e.a,n,n),St(e.b,n,n),r=Ev(n),r.c.length!=0)for(e.d&&e.d.Fg(r),St(e.a,n,(pt(0,r.c.length),c(r.c[0],19))),St(e.b,n,c(Xe(r,r.c.length-1),19));Kte(r).c.length!=0;)r=Kte(r),e.d&&e.d.Fg(r),St(e.a,n,(pt(0,r.c.length),c(r.c[0],19))),St(e.b,n,c(Xe(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=Lt(t.Ah(),-1-n),he(i,104))return c(i,20);for(a=c(t.Jh(i),164),d=0,b=a.gc();d<b;++d)if(Se(a.Sl(d))===Se(e)&&(r=a.Rl(d),he(r,104)&&(o=c(r,20),(o.Bb&sc)!=0)))return o;throw K(new oo("The containment feature could not be located"))}else return Hs(c(Lt(e.Ah(),n),20));else return null}function AKt(e){var t,n,i,r,o,a,d,b,v,k;for(n=0,d=new J(e.d);d.a<d.c.c.length;)a=c(U(d),108),a.i&&(a.i.c=n++);for(t=Z2(Sl,[Ge,eh],[172,30],16,[n,n],2),k=e.d,r=0;r<k.c.length;r++)if(b=(pt(r,k.c.length),c(k.c[r],108)),b.i)for(o=r+1;o<k.c.length;o++)v=(pt(o,k.c.length),c(k.c[o],108)),v.i&&(i=gQt(b,v),t[b.i.c][v.i.c]=i,t[v.i.c][b.i.c]=i);return t}function sC(){sC=W,gue=new zb("ROOT_PROC",0),y9e=new zb("FAN_PROC",1),S9e=new zb("LEVEL_PROC",2),T9e=new zb("NEIGHBORS_PROC",3),j9e=new zb("LEVEL_HEIGHT",4),x9e=new zb("DIRECTION_PROC",5),C9e=new zb("NODE_POSITION_PROC",6),w9e=new zb("COMPACTION_PROC",7),O9e=new zb("LEVEL_COORDS",8),k9e=new zb("GRAPH_BOUNDS_PROC",9),v9e=new zb("DETREEIFYING_PROC",10)}function Yxe(e,t){var n,i,r,o,a,d,b,v,k,T;for(T=wo(t),v=null,r=!1,d=0,k=wc(T.a).i;d<k;++d)a=c(kL(T,d,(o=c(ae(wc(T.a),d),88),b=o.c,he(b,89)?c(b,29):(At(),sf))),29),n=Yxe(e,a),n.dc()||(v?(r||(r=!0,v=new kq(v)),v.Fc(n)):v=n);return i=YUt(e,t),i.dc()?v||(Mt(),Mt(),Is):v?(r||(v=new kq(v)),v.Fc(i),v):i}function Bie(e,t){var n,i,r,o,a,d,b,v,k,T;for(T=wo(t),v=null,i=!1,d=0,k=wc(T.a).i;d<k;++d)o=c(kL(T,d,(r=c(ae(wc(T.a),d),88),b=r.c,he(b,89)?c(b,29):(At(),sf))),29),n=Bie(e,o),n.dc()||(v?(i||(i=!0,v=new kq(v)),v.Fc(n)):v=n);return a=jJt(e,t),a.dc()?v||(Mt(),Mt(),Is):v?(i||(v=new kq(v)),v.Fc(a),v):a}function NKt(e,t){var n,i,r,o,a;for(e.c==null||e.c.length<t.c.length?e.c=Ce(Sl,eh,30,t.c.length,16,1):bT(e.c),e.a=new Qe,i=0,a=new J(t);a.a<a.c.c.length;)r=c(U(a),9),r.p=i++;for(n=new _i,o=new J(t);o.a<o.c.c.length;)r=c(U(o),9),e.c[r.p]||(tnt(e,r),n.b==0||(pn(n.b!=0),c(n.a.a.c,16)).gc()<e.a.c.length?xy(n,e.a):Cs(n,e.a),e.a=new Qe);return n}function _Kt(e,t,n,i){var r,o,a;$(i.d.i,($e(),Ri))==null?ci(t,ze(pi-(t.f.c+t.i.c)),new Y2(new Qo(ee(Z(zS,1),xS,17,0,[i])))):(a=0,o=i.d.i,n?(r=c($(e.c,sp),15).a,a=r*c($(o,(We(),Xv)),15).a+c($(o,Ri),15).a):a=c($(i.d.i,Ri),15).a,Ac(t,ze(a))?Cr(c(Jt(t,ze(a)),47),i):ci(t,ze(a),new Y2(new Qo(ee(Z(zS,1),xS,17,0,[i])))))}function wL(e,t,n){var i,r,o,a,d,b;if(he(t,76))return Ns(e,t,n);for(d=null,o=null,i=c(e.g,123),a=0;a<e.i;++a)if(r=i[a],ki(t,r.kd())&&(o=r.Jk(),he(o,104)&&(c(o,20).Bb&sc)!=0)){d=r;break}return d&&(bu(e.e)&&(b=o.Hk()?A0(e,4,o,t,null,Zj(e,o,t,he(o,104)&&(c(o,20).Bb&Ps)!=0),!0):A0(e,o.rk()?2:1,o,t,o.gk(),-1,!0),n?n.lj(b):n=b),n=wL(e,d,n)),n}function DKt(e,t,n){var i,r,o,a;if(a=ol(e.e.Ah(),t),i=c(e.g,123),qs(),c(t,69).vk()){for(o=0;o<e.i;++o)if(r=i[o],a.$l(r.Jk())&&ki(r,n))return Mv(e,o),!0}else if(n!=null){for(o=0;o<e.i;++o)if(r=i[o],a.$l(r.Jk())&&ki(n,r.kd()))return Mv(e,o),!0}else for(o=0;o<e.i;++o)if(r=i[o],a.$l(r.Jk())&&r.kd()==null)return Mv(e,o),!0;return!1}function Mrt(e,t,n,i){var r,o,a,d,b,v,k,T,A,L;for(a=W2(t.c,n,i),T=new J(t.a);T.a<T.c.c.length;){for(k=c(U(T),9),ji(k.n,a),L=new J(k.j);L.a<L.c.c.length;)for(A=c(U(L),12),o=new J(A.g);o.a<o.c.c.length;)for(r=c(U(o),17),gv(r.a,a),d=c($(r,(We(),ho)),79),d&&gv(d,a),v=new J(r.b);v.a<v.c.c.length;)b=c(U(v),70),ji(b.n,a);Ue(e.a,k),k.a=e}}function LKt(e,t){var n,i,r,o,a;if(t.Tg("Node and Port Label Placement and Node Sizing",1),XBe((OT(),new _ee(e,!0,!0,new SX))),c($(e,($e(),Bc)),24).Gc((Qs(),Ma)))for(o=c($(e,(We(),tx)),24),r=o.Gc((Ul(),sI)),a=it(nt($(e,CSe))),i=new J(e.b);i.a<i.c.c.length;)n=c(U(i),26),hr(bi(new Tt(null,new Ct(n.a,16)),new TR),new cqe(o,r,a));t.Ug()}function Art(e){Bb(e,new ym(Ib(Db(Pb(Lb(new p1,SS),"ELK SPOrE Overlap Removal"),'A node overlap removal algorithm proposed by Nachmanson et al. in "Node overlap removal by growing a tree".'),new _8))),Fe(e,SS,ooe,Ke(mTe)),Fe(e,SS,Ow,pTe),Fe(e,SS,kw,8),Fe(e,SS,uoe,Ke(t2t)),Fe(e,SS,D4e,Ke(dTe)),Fe(e,SS,L4e,Ke(gTe)),Fe(e,SS,YL,(zt(),!1))}function PKt(e,t){var n,i,r,o,a,d,b;if(n=t.ni(e.a),n&&(b=qn(Zf((!n.b&&(n.b=new vu((At(),$s),ec,n)),n.b),yke)),b!=null)){for(i=new Qe,o=Nv(b,"\\w"),a=0,d=o.length;a<d;++a)r=o[a],jt(r,"##other")?Ue(i,"!##"+e7(e,Fu(t.ok()))):jt(r,"##local")?i.c.push(null):jt(r,sP)?Ue(i,e7(e,Fu(t.ok()))):Rt(i.c,r);return i}return Mt(),Mt(),Is}function Xy(e,t,n,i){this.e=e,this.k=c($(e,($e(),O3)),317),this.g=Ce(e1,Qg,9,t,0,1),this.b=Ce(Sr,Ge,347,t,7,1),this.a=Ce(e1,Qg,9,t,0,1),this.d=Ce(Sr,Ge,347,t,7,1),this.j=Ce(e1,Qg,9,t,0,1),this.i=Ce(Sr,Ge,347,t,7,1),this.p=Ce(Sr,Ge,347,t,7,1),this.n=Ce(cr,Ge,476,t,8,1),j_(this.n,(zt(),!1)),this.f=Ce(cr,Ge,476,t,8,1),j_(this.f,!0),this.o=n,this.c=i}function vL(e){var t,n,i,r,o,a,d,b;if(e.d)throw K(new oo((j1(Nce),Ure+Nce.k+Jre)));for(e.c==(_r(),zh)&&Zy(e,go),n=new J(e.a.a);n.a<n.c.c.length;)t=c(U(n),197),t.e=0;for(a=new J(e.a.b);a.a<a.c.c.length;)for(o=c(U(a),84),o.o=Gr,r=o.f.Jc();r.Ob();)i=c(r.Pb(),84),++i.d.e;for(Rtn(e),b=new J(e.a.b);b.a<b.c.c.length;)d=c(U(b),84),d.k=!0;return e}function IKt(e,t){var n,i,r,o,a,d,b,v;for(d=new Ltt(e),n=new _i,sr(n,t,n.c.b,n.c);n.b!=0;){for(i=c(n.b==0?null:(pn(n.b!=0),wa(n,n.a.a)),114),i.d.p=1,a=new J(i.e);a.a<a.c.c.length;)r=c(U(a),342),Qet(d,r),v=r.d,v.d.p==0&&sr(n,v,n.c.b,n.c);for(o=new J(i.b);o.a<o.c.c.length;)r=c(U(o),342),Qet(d,r),b=r.c,b.d.p==0&&sr(n,b,n.c.b,n.c)}return d}function Zxe(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 xn,n=Se($(e.c,(We(),zk)))===Se((I0(),Wv)),ws(Fi(t),new nqe(e,o,n)),a=new w0e(new hn(o)),r=a.a.ec().Jc();r.Ob();)i=c(r.Pb(),15).a,d=c(c(Jt(o,ze(i)),47).a.ec().Jc().Pb(),17),!vs(d)&&(b=d.d.i,e.a[b.p]?Or(e.b,c(Jt(o,ze(i)),18)):Zxe(e,b));e.a[t.p]=!1}}function Nrt(e){var t,n,i,r,o;if(i=ge(be(Ae(e,(Pn(),V2t)))),i!=1)for(Fb(e,i*e.g,i*e.f),n=ATt(sAt((!e.c&&(e.c=new Le(hu,e,9,9)),e.c),new mN)),o=Bd(va(ee(Z(Ea,1),It,22,0,[(!e.n&&(e.n=new Le(Bo,e,1,7)),e.n),(!e.c&&(e.c=new Le(hu,e,9,9)),e.c),n])));gn(o);)r=c(on(o),278),r.ph(i*r.mh(),i*r.nh()),r.oh(i*r.lh(),i*r.kh()),t=c(r.mf(c7e),8),t&&(t.a*=i,t.b*=i)}function eye(e,t,n){var i,r,o,a,d;if(a=(qs(),c(t,69).vk()),z1(e.e,t)){if(t.Qi()&&rQ(e,t,n,he(t,104)&&(c(t,20).Bb&Ps)!=0))return!1}else for(d=ol(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?ki(r,n):n==null?r.kd()==null:ki(n,r.kd()))?!1:(c(Hy(e,o,a?c(n,76):Fd(t,n)),76),!0);return Dn(e,a?c(n,76):Fd(t,n))}function RKt(e,t,n,i,r){var o,a,d,b,v,k,T,A;for(a=new J(e.b);a.a<a.c.c.length;)for(o=c(U(a),26),A=aD(o.a),v=A,k=0,T=v.length;k<T;++k)switch(b=v[k],c($(b,(We(),Ro)),166).g){case 1:rXt(b),zr(b,t),EZe(b,!0,i);break;case 3:qVt(b),zr(b,n),EZe(b,!1,r)}for(d=new ss(e.b,0);d.b<d.d.gc();)(pn(d.b<d.d.gc()),c(d.d.Xb(d.c=d.b++),26)).a.c.length==0&&iu(d)}function $Kt(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G;for(L=t.length,b=L,tn(0,t.length),t.charCodeAt(0)==45?(T=-1,A=1,--L):(T=1,A=0),o=(Wie(),oht)[10],r=L/o|0,G=L%o,G!=0&&++r,d=Ce(Hn,li,30,r,15,1),n=sht[8],a=0,R=A+(G==0?o:G),F=A;F<b;F=R,R=F+o)i=Qu((as(F,R,t.length),t.substr(F,R-F)),cs,pi),v=(Xj(),P2e(d,d,a,n)),v+=Kzt(d,a,i),d[a++]=v;k=a,e.e=T,e.d=k,e.a=d,d7(e)}function BKt(e){var t,n,i,r,o,a,d,b,v,k,T,A;for(d=e.i,r=it(nt($(d,(We(),Yv)))),k=0,i=0,v=new J(e.g);v.a<v.c.c.length;)b=c(U(v),17),a=vs(b),o=a&&r&&it(nt($(b,$m))),A=b.d.i,a&&o?++i:a&&!o?++k:Jr(A).e==d?++i:++k;for(n=new J(e.e);n.a<n.c.c.length;)t=c(U(n),17),a=vs(t),o=a&&r&&it(nt($(t,$m))),T=t.c.i,a&&o?++k:a&&!o?++i:Jr(T).e==d?++k:++i;return k-i}function _rt(e,t){var n,i,r,o,a,d;if(!t.dc())if(c(t.Xb(0),295).d==(rk(),Jv))THt(e,t);else for(i=t.Jc();i.Ob();){switch(n=c(i.Pb(),295),n.d.g){case 5:Qj(e,n,Dzt(e,n));break;case 0:Qj(e,n,(a=n.f-n.c+1,d=(a-1)/2|0,n.c+d));break;case 4:Qj(e,n,UIt(e,n));break;case 2:LYe(n),Qj(e,n,(o=gve(n),o?n.c:n.f));break;case 1:LYe(n),Qj(e,n,(r=gve(n),r?n.f:n.c))}bQt(n.a)}}function tye(e,t,n,i){var r,o,a;return a=new ARe(t,n),e.a?i?(r=c(Fa(c(Jt(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(Fa(e.e),501).b=a,a.d=e.e,e.e=a,r=c(Jt(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 wme(a)),++e.c)):(e.a=e.e=a,ci(e.b,t,new wme(a)),++e.c),++e.d,a}function zie(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 J(e.e.a);o.a<o.c.c.length;)r=c(U(o),126),r.e=0;for(a=e.e.a.c.length>=40,a&&CYt(e),FZt(e),oXt(e),n=gYe(e),i=0;n&&i<e.f;)GKt(e,n,uWt(e,n)),n=gYe(e),++i;a&&$Gt(e),e.a?xWt(e,Srt(e)):Srt(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 zKt(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 He(a+(d-a)/2,t.b),ni(c(t.d.a.ec().Jc().Pb(),17).a,b);continue}if(r=c(Jt(t.c,n),460),r.b||r.c){CKt(e,n,t);continue}o=e.d==(Ej(),SE)&&(r.d||r.e)&&DJt(e,t)&&t.d.a.gc()<=1,o?ktn(n,t):$Xt(e,n,t)}t.k&&ws(t.d,new oA)}}function nye(e,t,n,i,r,o){var a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe;for(A=o,d=(i+r)/2+A,G=n*p.Math.cos(d),Y=n*p.Math.sin(d),oe=G-t.g/2,fe=Y-t.f/2,Dc(t,oe),Dl(t,fe),T=e.a.Dg(t),F=2*p.Math.acos(n/n+e.c),F<r-i?(L=F/T,a=(i+r-F)/2):(L=(r-i)/T,a=i),R=Ev(t),e.e&&(e.e.Eg(e.d),e.e.Fg(R)),v=new J(R);v.a<v.c.c.length;)b=c(U(v),19),k=e.a.Dg(b),nye(e,b,n+e.c,a,a+L*k,o),a+=L*k}function FKt(e,t,n){var i;switch(i=n.q.getMonth(),t){case 5:ti(e,ee(Z(st,1),Ge,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[i]);break;case 4:ti(e,ee(Z(st,1),Ge,2,6,[vre,xre,yre,kre,gk,Ore,jre,Sre,Tre,Cre,Ere,Mre])[i]);break;case 3:ti(e,ee(Z(st,1),Ge,2,6,["Jan","Feb","Mar","Apr",gk,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[i]);break;default:qd(e,i+1,t)}}function qKt(e,t,n,i){var r,o,a,d,b,v,k,T,A;for(b=new He(n,i),Hr(b,c($(t,(L0(),KC)),8)),A=new J(t.e);A.a<A.c.c.length;)T=c(U(A),156),ji(T.d,b),Ue(e.e,T);for(d=new J(t.c);d.a<d.c.c.length;){for(a=c(U(d),292),o=new J(a.a);o.a<o.c.c.length;)r=c(U(o),254),ji(r.d,b);Ue(e.c,a)}for(k=new J(t.d);k.a<k.c.c.length;)v=c(U(k),448),ji(v.d,b),Ue(e.d,v)}function iye(e,t){var n,i,r,o,a,d,b,v;for(b=new J(t.j);b.a<b.c.c.length;)for(d=c(U(b),12),r=new xh(d.b);No(r.a)||No(r.b);)i=c(No(r.a)?U(r.a):U(r.b),17),n=i.c==d?i.d:i.c,o=n.i,t!=o&&(v=c($(i,(We(),t9)),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&&ni(e.g,o)):(e.d[a]-=v+1,e.d[a]<=0&&e.a[a]>0&&ni(e.f,o))))}function Drt(e,t,n,i){var r,o,a,d,b,v,k;for(b=new He(n,i),Hr(b,c($(t,(Ii(),o9)),8)),k=Ln(t.b,0);k.b!=k.d.c;)v=c(_n(k),41),ji(v.e,b),ni(e.b,v);for(d=c(Gl(Cme(new Tt(null,new Ct(t.a,16))),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[(ya(),vl)]))),16).Jc();d.Ob();){for(a=c(d.Pb(),65),o=Ln(a.a,0);o.b!=o.d.c;)r=c(_n(o),8),r.a+=b.a,r.b+=b.b;ni(e.a,a)}}function rye(e,t){var n,i,r,o;if(0<(he(e,18)?c(e,18).gc():Vf(e.Jc()))){if(r=t,1<r){for(--r,o=new g1,i=e.Jc();i.Ob();)n=c(i.Pb(),41),o=va(ee(Z(Ea,1),It,22,0,[o,new y1(n)]));return rye(o,r)}if(r<0){for(o=new Du,i=e.Jc();i.Ob();)n=c(i.Pb(),41),o=va(ee(Z(Ea,1),It,22,0,[o,new y1(n)]));if(0<(he(o,18)?c(o,18).gc():Vf(o.Jc())))return rye(o,r)}}return c(VF(e.Jc()),41)}function HKt(e,t,n){var i,r,o,a;for(n.Tg("Processor order nodes",2),e.b=ge(be($(t,(Wo(),jue)))),e.a=c($(t,Qw),87),e.a==(_r(),zh)&&(e.a=Bh,_e(t,Qw,e.a)),r=new _i,a=Ln(t.b,0);a.b!=a.d.c;)o=c(_n(a),41),it(nt($(o,(Ii(),ap))))&&sr(r,o,r.c.b,r.c);i=(pn(r.b!=0),c(r.a.a.c,41)),Ast(e,i),n.eh(1),Wxe(e,i,0-ge(be($(i,(Ii(),KJ))))/2,0),n.eh(1),n.Ug()}function uu(){uu=W,x9=new vy("DEFAULT_MINIMUM_SIZE",0),aI=new vy("MINIMUM_SIZE_ACCOUNTS_FOR_PADDING",1),SW=new vy("COMPUTE_PADDING",2),rM=new vy("OUTSIDE_NODE_LABELS_OVERHANG",3),TW=new vy("PORTS_OVERHANG",4),EW=new vy("UNIFORM_PORT_SPACING",5),CW=new vy("SPACE_EFFICIENT_PORT_LABELS",6),Gae=new vy("FORCE_TABULAR_NODE_LABELS",7),uI=new vy("ASYMMETRICAL",8)}function Fie(e,t){var n,i,r,o,a,d,b,v;if(t){if(n=(o=t.Ah(),o?Fu(o).ti().pi(o):null),n){for(wm(e,t,n),r=t.Ah(),b=0,v=(r.i==null&&ud(r),r.i).length;b<v;++b)d=(i=(r.i==null&&ud(r),r.i),b>=0&&b<i.length?i[b]:null),d.pk()&&!d.qk()&&(he(d,336)?sqt(e,c(d,38),t,n):(a=c(d,20),(a.Bb&sc)!=0&&pGt(e,a,t,n)));t.Sh()&&c(n,52).bi(c(t,52).Yh())}return n}else return null}function GKt(e,t,n){var i,r,o;if(!t.f)throw K(new Ht("Given leave edge is no tree edge."));if(n.f)throw K(new Ht("Given enter edge is a tree edge already."));for(t.f=!1,s0e(e.p,t),n.f=!0,Cr(e.p,n),i=n.e.e-n.d.e-n.a,kie(e,n.e,t)||(i=-i),o=new J(e.e.a);o.a<o.c.c.length;)r=c(U(o),126),kie(e,r,t)||(r.e+=i);e.j=1,bT(e.c),exe(e,c(U(new J(e.e.a)),126)),qst(e)}function Lrt(e,t){var n,i,r,o,a,d;if(d=c($(t,(We(),fr)),103),d==(es(),r1)||d==Sc)for(r=new He(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a).b,a=new J(e.a);a.a<a.c.c.length;)o=c(U(a),9),o.k==(Wt(),Ar)&&(n=c($(o,($e(),Zo)),64),!(n!=(Ve(),sn)&&n!=Zt)&&(i=ge(be($(o,Bw))),d==r1&&(i*=r),o.n.b=i-c($(o,Hw),8).b,WH(o,!1,!0)))}function Prt(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==(Wt(),fc)?fk(c(e.a[e.b],9),(Gu(),n1)):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==(Wt(),fc)?fk(c(e.a[e.c-1&e.a.length-1],9),(Gu(),hp)):(e.c-e.b&e.a.length-1)==2?(fk(c(E7(e),9),(Gu(),n1)),fk(c(E7(e),9),hp)):OWt(e,r),Wme(e)}function QKt(e){var t,n,i,r,o,a,d,b;for(b=new xn,t=new pY,a=e.Jc();a.Ob();)r=c(a.Pb(),9),d=qb(y_(new Qp,r),t),bl(b.f,r,d);for(o=e.Jc();o.Ob();)for(r=c(o.Pb(),9),i=new Gt(Xt(Fi(r).a.Jc(),new z));gn(i);)n=c(on(i),17),!vs(n)&&Sf(ff(df(hf(gf(new $a,p.Math.max(1,c($(n,(We(),MSe)),15).a)),1),c(Jt(b,n.c.i),126)),c(Jt(b,n.d.i),126)));return t}function Irt(e,t,n,i){var r,o,a,d,b,v,k,T,A,L;if(pRt(e,t,n),o=t[n],L=i?(Ve(),Zt):(Ve(),sn),S7t(t.length,n,i)){for(r=t[i?n-1:n+1],hbe(e,r,i?(Gs(),tl):(Gs(),Vl)),b=o,k=0,A=b.length;k<A;++k)a=b[k],B2e(e,a,L);for(hbe(e,o,i?(Gs(),Vl):(Gs(),tl)),d=r,v=0,T=d.length;v<T;++v)a=d[v],a.e||B2e(e,a,JD(L))}else for(d=o,v=0,T=d.length;v<T;++v)a=d[v],B2e(e,a,L);return!1}function UKt(e,t,n,i,r){var o,a,d,b,v,k,T;for(Mt(),Rr(e,new bK),d=new ss(e,0),T=new Qe,o=0;d.b<d.d.gc();)a=(pn(d.b<d.d.gc()),c(d.d.Xb(d.c=d.b++),168)),T.c.length!=0&&Nl(a)*yu(a)>o*2?(k=new CH(T),v=Nl(a)/yu(a),b=cre(k,t,new u4,n,i,r,v),ji(Wf(k.e),b),T.c.length=0,o=0,Rt(T.c,k),Rt(T.c,a),o=Nl(k)*yu(k)+Nl(a)*yu(a)):(Rt(T.c,a),o+=Nl(a)*yu(a));return T}function JKt(e,t){var n,i,r,o,a,d,b;for(t.Tg("Port order processing",1),b=c($(e,(We(),ESe)),426),i=new J(e.b);i.a<i.c.c.length;)for(n=c(U(i),26),o=new J(n.a);o.a<o.c.c.length;)r=c(U(o),9),a=c($(r,fr),103),d=r.j,a==(es(),Jm)||a==r1||a==Sc?(Mt(),Rr(d,j6e)):a!=Fh&&a!=gp&&(Mt(),Rr(d,b1t),bqt(d),b==(TD(),oue)&&Rr(d,m1t)),r.i=!0,Kve(r);t.Ug()}function WKt(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R;if(bu(e.e)){if(t!=n&&(r=c(e.g,123),L=r[n],a=L.Jk(),z1(e.e,a))){for(R=ol(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],k=R.$l(o.Jk()),v==t&&(b=v==T&&!k?i-1:i),k&&++i);return A=c(R7(e,t,n),76),d!=b&&N6(e,new wD(e.e,7,a,ze(d),L.kd(),b)),A}}else return c(jie(e,t,n),76);return c(R7(e,t,n),76)}function sye(e,t){var n,i,r,o,a,d,b,v,k,T;for(T=0,o=new Ty,N0(o,t);o.b!=o.c;)for(b=c(D4(o),221),v=0,k=c($(t.j,(We(),t1)),270),c($(t.j,dE),330),a=ge(be($(t.j,CP))),d=ge(be($(t.j,Mle))),k!=($1(),cp)&&(v+=a*AWt(t.j,b.e,k),v+=d*pKt(t.j,b.e)),T+=KZe(b.d,b.e)+v,r=new J(b.b);r.a<r.c.c.length;)i=c(U(r),37),n=c(Xe(e.b,i.p),221),n.s||(T+=zG(e,n));return T}function Rrt(){Rrt=W,Imt=Kn(new yr,(ts(),jc),(os(),u6e)),m9e=Kn(new yr,Oc,FU),$mt=Uc(Kn(new yr,Oc,VU),Vs,WU),Pmt=Uc(Kn(Kn(new yr,Oc,r6e),jc,s6e),Vs,o6e),Bmt=cd(cd(CT(Uc(Kn(new yr,Af,ZU),Vs,YU),jc),KU),eJ),Rmt=Uc(new yr,Vs,a6e),Dmt=Uc(Kn(Kn(Kn(new yr,Zd,HU),jc,QU),jc,FS),Vs,GU),Lmt=Uc(Kn(Kn(new yr,jc,FS),jc,zU),Vs,BU)}function VKt(e,t,n,i,r,o){var a,d,b,v,k,T,A;for(v=dKe(t)-dKe(e),a=dtt(t,v),b=rl(0,0,0);v>=0&&(d=nHt(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)));)k=a.m,T=a.h,A=a.l,a.h=T>>>1,a.m=k>>>1|(T&1)<<21,a.l=A>>>1|(k&1)<<21,--v;return n&&ene(b),o&&(i?(Z0=jj(e),r&&(Z0=UXe(Z0,(gj(),Rke)))):Z0=rl(e.l,e.m,e.h)),b}function XKt(e,t){var n,i,r,o,a,d,b,v,k,T;for(v=e.e[t.c.p][t.p]+1,b=t.c.a.c.length+1,d=new J(e.a);d.a<d.c.c.length;){for(a=c(U(d),12),T=0,o=0,r=Bd(va(ee(Z(Ea,1),It,22,0,[new A6(a),new s4(a)])));gn(r);)i=c(on(r),12),i.i.c==t.c&&(T+=w7t(e,i.i)+1,++o);n=T/o,k=a.j,k==(Ve(),sn)?n<v?e.f[a.p]=e.c-n:e.f[a.p]=e.b+(b-n):k==Zt&&(n<v?e.f[a.p]=e.b+n:e.f[a.p]=e.c-(b-n))}}function Qu(e,t,n){var i,r,o,a,d;if(e==null)throw K(new Yh(wl));for(o=e.length,a=o>0&&(tn(0,e.length),e.charCodeAt(0)==45||(tn(0,e.length),e.charCodeAt(0)==43))?1:0,i=a;i<o;i++)if(KYe((tn(i,e.length),e.charCodeAt(i)))==-1)throw K(new Yh(yw+e+'"'));if(d=parseInt(e,10),r=d<t,isNaN(d))throw K(new Yh(yw+e+'"'));if(r||d>n)throw K(new Yh(yw+e+'"'));return d}function KKt(e){var t,n,i,r,o,a,d;for(a=new _i,o=new J(e.a);o.a<o.c.c.length;)r=c(U(o),117),c_(r,r.f.c.length),j6(r,r.k.c.length),r.i==0&&(r.o=0,sr(a,r,a.c.b,a.c));for(;a.b!=0;)for(r=c(a.b==0?null:(pn(a.b!=0),wa(a,a.a.a)),117),i=r.o+1,n=new J(r.f);n.a<n.c.c.length;)t=c(U(n),135),d=t.a,S6(d,p.Math.max(d.o,i)),j6(d,d.i-1),d.i==0&&sr(a,d,a.c.b,a.c)}function YKt(e){var t,n,i,r,o,a,d,b;for(a=new J(e);a.a<a.c.c.length;){for(o=c(U(a),74),i=no(c(ae((!o.b&&(o.b=new Et(yn,o,4,7)),o.b),0),83)),d=i.i,b=i.j,r=c(ae((!o.a&&(o.a=new Le(Qi,o,6,6)),o.a),0),171),B_(r,r.j+d,r.k+b),$_(r,r.b+d,r.c+b),n=new ln((!r.a&&(r.a=new Nr(ea,r,5)),r.a));n.e!=n.i.gc();)t=c(fn(n),373),CZ(t,t.a+d,t.b+b);cwe(c(Ae(o,(Pn(),I3)),79),d,b)}}function Yj(e){var t;switch(e){case 100:return e3(GC,!0);case 68:return e3(GC,!1);case 119:return e3(Goe,!0);case 87:return e3(Goe,!1);case 115:return e3(Qoe,!0);case 83:return e3(Qoe,!1);case 99:return e3(Uoe,!0);case 67:return e3(Uoe,!1);case 105:return e3(Joe,!0);case 73:return e3(Joe,!1);default:throw K(new Mo((t=e,Aft+t.toString(16))))}}function ZKt(e){var t,n,i,r,o;switch(r=c(Xe(e.a,0),9),t=new Sh(e),Ue(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,($e(),Zo)),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 xc,_o(i,t),n=new Kb,o=c(Xe(r.j,0),12),ks(n,o),rs(n,i),ji(Wf(i.n),o.n),ji(Wf(i.a),o.a),t}function ja(e,t,n,i){var r,o,a,d,b,v,k,T,A,L;for(r=t,d=n,i<0&&(r=n,d=t),o=c(Jt(e.a,r),47),b=c(Jt(e.a,d),47),a=c(Jt(e.e,r),47),v=c(Jt(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),Cr(c(Jt(e.e,A),47),r),Os(c(Jt(e.e,A),47),a);for(T=a.a.ec().Jc();T.Ob();)k=c(T.Pb(),12),v.a.yc(k,v),Cr(c(Jt(e.a,k),47),d),Os(c(Jt(e.a,k),47),b)}function eYt(e,t,n){var i,r,o,a,d;for(o=0,r=new ln((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a));r.e!=r.i.gc();)i=c(fn(r),19),a="",(!i.n&&(i.n=new Le(Bo,i,1,7)),i.n).i==0||(a=c(ae((!i.n&&(i.n=new Le(Bo,i,1,7)),i.n),0),158).a),d=new nne(o++,t,a),ic(d,i),_e(d,(Ii(),DE),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),ni(t.b,d),bl(n.f,i,d)}function oye(e,t,n){var i,r,o,a;if(t[0]>=e.length)return n.o=0,!0;switch(bs(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=FG(e,t),a==0&&t[0]==o)return!1;if(t[0]<e.length&&bs(e,t[0])==58){if(i=a*60,++t[0],o=t[0],a=FG(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 tYt(e){var t,n,i,r,o,a,d,b,v;for(a=new Qe,i=new Gt(Xt(Fi(e.b).a.Jc(),new z));gn(i);)n=c(on(i),17),vs(n)&&Ue(a,new SJe(n,fWe(e,n.c),fWe(e,n.d)));for(v=(o=new x1(e.e).a.vc().Jc(),new $2(o));v.a.Ob();)d=(t=c(v.a.Pb(),45),c(t.kd(),114)),d.d.p=0;for(b=(r=new x1(e.e).a.vc().Jc(),new $2(r));b.a.Ob();)d=(t=c(b.a.Pb(),45),c(t.kd(),114)),d.d.p==0&&Ue(e.d,IKt(e,d))}function nYt(e,t){var n,i,r,o,a,d,b,v,k;for(a=new J(t.b);a.a<a.c.c.length;)for(o=c(U(a),26),v=new J(o.a);v.a<v.c.c.length;){for(b=c(U(v),9),k=new Qe,d=0,i=new Gt(Xt(vr(b).a.Jc(),new z));gn(i);)n=c(on(i),17),!(vs(n)||!vs(n)&&n.c.i.c==n.d.i.c)&&(r=c($(n,(We(),qk)),15).a,r>d&&(d=r,k.c.length=0),r==d&&Ue(k,new Ls(n.c.i,n)));Mt(),Rr(k,e.c),Xp(e.b,b.p,k)}}function iYt(e,t){var n,i,r,o,a,d,b,v,k;for(a=new J(t.b);a.a<a.c.c.length;)for(o=c(U(a),26),v=new J(o.a);v.a<v.c.c.length;){for(b=c(U(v),9),k=new Qe,d=0,i=new Gt(Xt(Fi(b).a.Jc(),new z));gn(i);)n=c(on(i),17),!(vs(n)||!vs(n)&&n.c.i.c==n.d.i.c)&&(r=c($(n,(We(),qk)),15).a,r>d&&(d=r,k.c.length=0),r==d&&Ue(k,new Ls(n.d.i,n)));Mt(),Rr(k,e.c),Xp(e.f,b.p,k)}}function rYt(e){var t,n,i,r,o,a,d;for(o=wh(e),r=new ln((!e.e&&(e.e=new Et($i,e,7,4)),e.e));r.e!=r.i.gc();)if(i=c(fn(r),74),d=no(c(ae((!i.c&&(i.c=new Et(yn,i,5,8)),i.c),0),83)),!hv(d,o))return!0;for(n=new ln((!e.d&&(e.d=new Et($i,e,8,5)),e.d));n.e!=n.i.gc();)if(t=c(fn(n),74),a=no(c(ae((!t.b&&(t.b=new Et(yn,t,4,7)),t.b),0),83)),!hv(a,o))return!0;return!1}function sYt(e){var t,n,i,r,o;i=c($(e,($e(),Si)),19),o=c(Ae(i,(We(),Bm)),185).Gc((Cu(),Wm)),e.e||(r=c($(e,Bc),24),t=new He(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),r.Gc((Qs(),Ma))?(ri(i,fr,(es(),Sc)),ww(i,t.a,t.b,!1,!0)):it(nt(Ae(i,Fle)))||ww(i,t.a,t.b,!0,!0)),o?ri(i,Bm,bt(Wm)):ri(i,Bm,(n=c(Jf(iM),10),new ga(n,c(mf(n,n.length),10),0)))}function oYt(e,t){var n,i,r,o,a,d,b,v;if(v=nt($(t,(Wo(),xbt))),v==null||(Ft(v),v)){for(_Jt(e,t),r=new Qe,b=Ln(t.b,0);b.b!=b.d.c;)a=c(_n(b),41),n=Hve(e,a,null),n&&(ic(n,t),Rt(r.c,n));if(e.a=null,e.b=null,r.c.length>1)for(i=new J(r);i.a<i.c.c.length;)for(n=c(U(i),121),o=0,d=Ln(n.b,0);d.b!=d.d.c;)a=c(_n(d),41),a.g=o++;return r}return vf(ee(Z(qin,1),Qct,121,0,[t]))}function cYt(e,t){var n,i,r,o,a,d;for(r=new J(t.a);r.a<r.c.c.length;)i=c(U(r),9),o=$(i,($e(),Si)),he(o,12)&&(a=c(o,12),d=ist(t,i,a.o.a,a.o.b),a.n.a=d.a,a.n.b=d.b,$r(a,c($(i,Zo),64)));n=new He(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),c($(t,($e(),Bc)),24).Gc((Qs(),Ma))?(_e(e,(We(),fr),(es(),Sc)),c($(Jr(e),Bc),24).Ec(XS),Jst(e,n,!1)):Jst(e,n,!0)}function lYt(e){var t,n,i,r,o,a,d,b;for(b=new nu,t=Ln(e,0),d=null,n=c(_n(t),8),r=c(_n(t),8);t.b!=t.d.c;)d=n,n=r,r=c(_n(t),8),o=SVe(Hr(new He(d.a,d.b),n)),a=SVe(Hr(new He(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=tD(o.a)*i,o.b=tD(o.b)*i,a.a=tD(a.a)*i,a.b=tD(a.b)*i,ni(b,ji(o,n)),ni(b,ji(a,n));return b}function uYt(e,t,n){var i,r,o,a,d,b;if(n.Tg("Minimize Crossings "+e.a,1),i=t.b.c.length==0||!R6(bi(new Tt(null,new Ct(t.b,16)),new E6(new DA))).zd((Jp(),Ck)),b=t.b.c.length==1&&c(Xe(t.b,0),26).a.c.length==1,o=Se($(t,(We(),Kv)))===Se((I1(),t0)),i||b&&!o){n.Ug();return}r=ZVt(e,t),a=(d=c(vc(r,0),221),d.c.ig()?d.c.cg()?new TDe(e):new CDe(e):new SDe(e)),fBt(r,a),FBt(e),n.Ug()}function Uu(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&Ps)==0?(i=Ns(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 Ur(e,1,d,a,null),i?i.lj(o):i=o),n>=0&&(o=new Ur(e,1,n,d==n?a:null,t),i?i.lj(o):i=o)),i}function $rt(e){var t,n,i;if(e.b==null){if(i=new kg,e.i!=null&&(Zs(i,e.i),i.a+=":"),(e.f&256)!=0){for((e.f&256)!=0&&e.a!=null&&(i_t(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 aYt(e,t,n,i,r){var o,a,d,b;o=new Sh(e),mu(o,(Wt(),$c)),_e(o,(We(),fr),(es(),Sc)),_e(o,($e(),Si),t.c.i),a=new xc,_e(a,Si,t.c),$r(a,r),_o(a,o),_e(t.c,Wl,o),d=new Sh(e),mu(d,$c),_e(d,fr,Sc),_e(d,Si,t.d.i),b=new xc,_e(b,Si,t.d),$r(b,r),_o(b,d),_e(t.d,Wl,d),ks(t,a),rs(t,b),cv(0,n.c.length),AT(n.c,0,o),Rt(i.c,d),_e(o,mJ,ze(1)),_e(d,mJ,ze(1))}function fYt(e,t,n,i){var r,o,a,d,b;if(b=Qn(js(Wd,zd(Qn(js(t==null?0:zi(t),Vd)),15))),r=Qn(js(Wd,zd(Qn(js(n==null?0:zi(n),Vd)),15))),d=S7(e,t,b),a=j7(e,n,r),d&&r==d.a&&S1(n,d.g))return n;if(a)throw K(new Ht("key already present: "+n));return d&&Vy(e,d),a&&Vy(e,a),o=new Rq(n,r,t,b),uL(e,o,a),a&&(a.e=null,a.c=null),d&&(d.e=null,d.c=null),wet(e),d?d.g:null}function Brt(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=As(As(js(Zr(e[o],Us),Zr(e[d],Us)),Zr(n[o+d],Us)),Zr(Qn(i),Us)),n[o+d]=Qn(i),i=Zp(i,32);n[o+t]=Qn(i)}for(XRt(n,n,t<<1),i=0,r=0,a=0;r<t;++r,a++)i=As(As(js(Zr(e[r],Us),Zr(e[r],Us)),Zr(n[a],Us)),Zr(Qn(i),Us)),n[a]=Qn(i),i=Zp(i,32),++a,i=As(i,Zr(n[a],Us)),n[a]=Qn(i),i=Zp(i,32);return n}function zrt(e,t,n){var i,r,o,a,d,b,v,k;if(!lv(t)){for(b=ge(be(xv(n.c,(We(),vE)))),v=c(xv(n.c,_P),125),!v&&(v=new dT),i=n.a,r=null,d=t.Jc();d.Ob();)a=c(d.Pb(),12),k=0,r?(k=b,k+=r.o.b):k=v.d,o=qb(y_(new Qp,a),e.f),ci(e.k,a,o),Sf(ff(df(hf(gf(new $a,0),ys(p.Math.ceil(k))),i),o)),r=a,i=o;Sf(ff(df(hf(gf(new $a,0),ys(p.Math.ceil(v.a+r.o.b))),i),n.d))}}function hYt(e,t,n,i,r,o,a,d){var b,v,k,T,A,L;return L=!1,A=o-n.s,k=n.t-t.f+(v=aC(n,A,!1),v.a),i.g+d>A?!1:(T=(b=aC(i,A,!1),b.a),k+d+T<=t.b&&(vD(n,o-n.s),n.c=!0,vD(i,o-n.s),YD(i,n.s,n.t+n.d+d),i.k=!0,uwe(n.q,i),L=!0,r&&(DH(t,i),i.j=t,e.c.length>a&&(nL((pt(a,e.c.length),c(e.c[a],189)),i),(pt(a,e.c.length),c(e.c[a],189)).a.c.length==0&&Ng(e,a)))),L)}function dYt(e,t){var n,i,r,o,a,d;if(t.Tg("Partition midprocessing",1),r=new Zb,hr(bi(new Tt(null,new Ct(e.a,16)),new zO),new q_e(r)),r.d!=0){for(d=c(Gl(Ame((o=r.i,new Tt(null,(o||(r.i=new Ey(r,r.c))).Lc()))),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[(ya(),vl)]))),16),i=d.Jc(),n=c(i.Pb(),15);i.Ob();)a=c(i.Pb(),15),sVt(c(Ti(r,n),24),c(Ti(r,a),24)),n=a;t.Ug()}}function oC(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],jt(t,n.d))return n}}else if(t==null){for(i=new ln(e.Ab);i.e!=i.i.gc();)if(n=c(fn(i),594),n.d==null)return n}else for(i=new ln(e.Ab);i.e!=i.i.gc();)if(n=c(fn(i),594),jt(t,n.d))return n}return null}function Frt(e,t,n,i,r){var o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we;L=sPt(e,bwe(t),r),ewe(L,E1(r,md)),O=null,R=r,F=p7(R,tat),G=new SLe(L),ftt(G.a,F),Y=p7(R,"endPoint"),oe=new MLe(L),att(oe.a,Y),fe=ew(R,nU),we=new _Le(L),Pet(we.a,fe),T=E1(r,ike),o=new rBe(e,L),NFe(o.a,o.b,T),A=E1(r,nke),a=new sBe(e,L),_Fe(a.a,a.b,A),v=ew(r,ske),d=new aBe(n,L),iet(d.b,d.a,v),k=ew(r,rke),b=new fBe(i,L),ret(b.b,b.a,k)}function qrt(e,t,n){var i,r,o,a,d,b,v,k;if(t.p==0){for(t.p=1,a=n,a||(r=new Qe,o=(i=c(Jf(Rs),10),new ga(i,c(mf(i,i.length),10),0)),a=new Ls(r,o)),c(a.a,16).Ec(t),t.k==(Wt(),Ar)&&c(a.b,24).Ec(c($(t,($e(),Zo)),64)),b=new J(t.j);b.a<b.c.c.length;)for(d=c(U(b),12),k=Bd(va(ee(Z(Ea,1),It,22,0,[new A6(d),new s4(d)])));gn(k);)v=c(on(k),12),qrt(e,v.i,a);return a}return null}function cye(e,t,n){var i,r,o,a,d;switch(d=null,t.g){case 1:for(r=new J(e.j);r.a<r.c.c.length;)if(i=c(U(r),12),it(nt($(i,($e(),xle)))))return i;d=new xc,_e(d,($e(),xle),(zt(),!0));break;case 2:for(a=new J(e.j);a.a<a.c.c.length;)if(o=c(U(a),12),it(nt($(o,($e(),kle)))))return o;d=new xc,_e(d,($e(),kle),(zt(),!0))}return d&&(_o(d,e),$r(d,n),fqt(d.n,e.o,n)),d}function Hrt(e,t){var n,i,r,o,a,d;for(d=-1,a=new _i,i=new xh(e.b);No(i.a)||No(i.b);){for(n=c(No(i.a)?U(i.a):U(i.b),17),d=p.Math.max(d,ge(be($(n,(We(),Xg))))),n.c==e?hr(bi(new Tt(null,new Ct(n.b,16)),new mb),new N_e(a)):hr(bi(new Tt(null,new Ct(n.b,16)),new nA),new __e(a)),o=Ln(a,0);o.b!=o.d.c;)r=c(_n(o),70),Oi(r,($e(),Lk))||_e(r,Lk,n);Or(t,a),ku(a)}return d}function bw(e,t,n,i,r){var o,a,d,b,v;d=r?i.b:i.a,!Ba(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-ge(be(U6(n.e))))<dd&&p.Math.abs(d-ge(be(U6(n.j))))<dd),b=b|(p.Math.abs(d-ge(be(pf(n.e))))<dd&&p.Math.abs(d-ge(be(pf(n.j))))<dd)),(v||b)&&(a=c($(t,(We(),ho)),79),a||(a=new nu,_e(t,ho,a)),o=new Es(i),sr(a,o,a.c.b,a.c),Cr(e.a,o)))}function gYt(e,t,n){var i,r,o,a,d,b,v,k,T;for(n.Tg("Processor set coordinates",1),e.a=t.b.b==0?1:t.b.b,v=null,i=Ln(t.b,0);!v&&i.b!=i.d.c;)T=c(_n(i),41),it(nt($(T,(Ii(),ap))))&&(v=T,b=T.e,b.a=c($(T,zP),15).a,b.b=c($(T,FP),15).a);d=Xte(v),k=1;do d=_Qt((r=d,n.dh(k),r)),k=d.b/e.a|0;while(d.b!=0);for(a=Ln(t.b,0);a.b!=a.d.c;)o=c(_n(a),41),Hr(o.e,new He(o.f.a/2,o.f.b/2));n.Ug()}function pYt(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F;for(n=!1,k=ge(be($(t,(We(),qm)))),R=Hg*k,r=new J(t.b);r.a<r.c.c.length;)for(i=c(U(r),26),v=new J(i.a),o=c(U(v),9),T=qpe(e.a[o.p]);v.a<v.c.c.length;)d=c(U(v),9),A=qpe(e.a[d.p]),T!=A&&(L=Sy(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+R&&(F=T.g+A.g,A.a=(A.g*A.a+T.g*T.a)/F,A.g=F,T.f=A,n=!0)),o=d,T=A;return n}function mYt(e,t,n){var i,r,o,a,d,b,v,k;for(n.Tg(Flt,1),lc(e.b),lc(e.a),d=null,o=Ln(t.b,0);!d&&o.b!=o.d.c;)v=c(_n(o),41),it(nt($(v,(Ii(),ap))))&&(d=v);for(b=new _i,sr(b,d,b.c.b,b.c),kot(e,b),k=Ln(t.b,0);k.b!=k.d.c;)v=c(_n(k),41),a=qn($(v,(Ii(),_E))),r=Nc(e.b,a)!=null?c(Nc(e.b,a),15).a:0,_e(v,wue,ze(r)),i=1+(Nc(e.a,a)!=null?c(Nc(e.a,a),15).a:0),_e(v,N9e,ze(i));n.Ug()}function Grt(e){Bb(e,new ym(Ib(Db(Pb(Lb(new p1,Mw),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new dN))),Fe(e,Mw,Ow,ITe),Fe(e,Mw,kw,15),Fe(e,Mw,zL,ze(0)),Fe(e,Mw,H4e,Ke(DTe)),Fe(e,Mw,i3,Ke(_2t)),Fe(e,Mw,xk,Ke(D2t)),Fe(e,Mw,gS,put),Fe(e,Mw,pS,Ke(LTe)),Fe(e,Mw,yk,Ke(PTe)),Fe(e,Mw,G4e,Ke(Sae)),Fe(e,Mw,HQ,Ke(N2t))}function Qrt(e,t){var n,i,r,o,a,d,b,v,k;if(r=e.i,a=r.o.a,o=r.o.b,a<=0&&o<=0)return Ve(),$o;switch(v=e.n.a,k=e.n.b,d=e.o.a,n=e.o.b,t.g){case 2:case 1:if(v<0)return Ve(),Zt;if(v+d>a)return Ve(),sn;break;case 4:case 3:if(k<0)return Ve(),Yt;if(k+n>o)return Ve(),wn}return b=(v+d/2)/a,i=(k+n/2)/o,b+i<=1&&b-i<=0?(Ve(),Zt):b+i>=1&&b-i>=0?(Ve(),sn):i<.5?(Ve(),Yt):(Ve(),wn)}function Urt(e,t,n,i,r,o,a){var d,b,v,k,T,A;for(A=new k4,v=t.Jc();v.Ob();)for(d=c(v.Pb(),845),T=new J(d.Pf());T.a<T.c.c.length;)k=c(U(T),190),Se(k.mf((Pn(),Mae)))===Se((kh(),b9))&&(jrt(A,k,!1,i,r,o,a),W7(e,A));for(b=n.Jc();b.Ob();)for(d=c(b.Pb(),845),T=new J(d.Pf());T.a<T.c.c.length;)k=c(U(T),190),Se(k.mf((Pn(),Mae)))===Se((kh(),mx))&&(jrt(A,k,!0,i,r,o,a),W7(e,A))}function bYt(e,t,n){var i,r,o,a,d,b,v;for(a=new ln((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a));a.e!=a.i.gc();)for(o=c(fn(a),19),r=new Gt(Xt(B1(o).a.Jc(),new z));gn(r);)i=c(on(r),74),!Z7(i)&&!Z7(i)&&!gw(i)&&(b=c(Ao(co(n.f,o)),41),v=c(Jt(n,no(c(ae((!i.c&&(i.c=new Et(yn,i,5,8)),i.c),0),83))),41),b&&v&&(d=new mme(b,v),_e(d,(Ii(),DE),i),ic(d,i),ni(b.d,d),ni(v.b,d),ni(t.a,d)))}function wYt(e,t){var n,i,r,o,a,d,b,v;for(b=c(c(Ti(e.r,t),24),85).Jc();b.Ob();)d=c(b.Pb(),116),r=d.c?jqe(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(Xe(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:n7(e.u)&&(o=Sve(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 Tf(){Tf=W,Ek=new Qr((Pn(),ZP),ze(1)),LU=new Qr(lh,80),Odt=new Qr(h7e,5),ddt=new Qr(h9,dS),ydt=new Qr($ae,ze(1)),kdt=new Qr(Bae,(zt(),!0)),vOe=new Wp(50),vdt=new Qr($h,vOe),mOe=WE,xOe=d9,gdt=new Qr(bW,!1),wOe=VE,bdt=hx,wdt=fp,mdt=Um,pdt=R3,xdt=dx,bOe=(Pve(),odt),jce=adt,DU=sdt,Oce=cdt,yOe=udt,Tdt=p9,Cdt=xW,Sdt=px,jdt=g9,kOe=(X4(),wx),new Qr(Xk,kOe)}function vYt(e,t){var n;switch(CD(e)){case 6:return Yr(t);case 7:return Q2(t);case 8:return G2(t);case 3:return Array.isArray(t)&&(n=CD(t),!(n>=14&&n<=16));case 11:return t!=null&&typeof t===hre;case 12:return t!=null&&(typeof t===SL||typeof t==hre);case 0:return $ne(t,e.__elementTypeId$);case 2:return wee(t)&&t.Rm!==le;case 1:return wee(t)&&t.Rm!==le||$ne(t,e.__elementTypeId$);default:return!0}}function xYt(e){var t,n,i,r;i=e.o,V2(),e.A.dc()||ki(e.A,fOe)?r=i.a:(e.D?r=p.Math.max(i.a,K7(e.f)):r=K7(e.f),e.A.Gc((Cu(),cI))&&!e.B.Gc((uu(),rM))&&(r=p.Math.max(r,K7(c(eo(e.p,(Ve(),Yt)),256))),r=p.Math.max(r,K7(c(eo(e.p,wn),256)))),t=DXe(e),t&&(r=p.Math.max(r,t.a))),it(nt(e.e.Rf().mf((Pn(),hx))))?i.a=p.Math.max(i.a,r):i.a=r,n=e.f.i,n.c=0,n.b=r,Gie(e.f)}function Jrt(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 yYt(e,t){var n,i,r,o,a,d,b;for(o=0,d=0,b=0,r=new J(e.f.e);r.a<r.c.c.length;)i=c(U(r),156),t!=i&&(a=e.i[t.a][i.a],o+=a,n=D0(t.d,i.d),n>0&&e.d!=(v7(),Cce)&&(d+=a*(i.d.a+e.a[t.a][i.a]*(t.d.a-i.d.a)/n)),n>0&&e.d!=(v7(),Sce)&&(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 He(d/o,t.d.b);case 2:return new He(t.d.a,b/o);default:return new He(d/o,b/o)}}function Wrt(e){var t,n,i,r,o,a;for(n=(!e.a&&(e.a=new Nr(ea,e,5)),e.a).i+2,a=new Wc(n),Ue(a,new He(e.j,e.k)),hr(new Tt(null,(!e.a&&(e.a=new Nr(ea,e,5)),new Ct(e.a,16))),new yLe(a)),Ue(a,new He(e.b,e.c)),t=1;t<a.c.length-1;)i=(pt(t-1,a.c.length),c(a.c[t-1],8)),r=(pt(t,a.c.length),c(a.c[t],8)),o=(pt(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?Ng(a,t):++t;return a}function Vrt(e,t){Sj();var n,i,r,o,a;if(a=c($(e.i,(We(),fr)),103),o=e.j.g-t.j.g,o!=0||!(a==(es(),Jm)||a==r1||a==Sc))return 0;if(a==(es(),Jm)&&(n=c($(e,Kg),15),i=c($(t,Kg),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 K(new oo(x3e))}}function Xrt(e,t){var n,i,r,o,a,d,b;for(n=Rze(GRe(qRe(HRe(new y1e,t),new Gq(t.e)),x1t),e.a),t.j.c.length==0||bWe(c(Xe(t.j,0),60).a,n),b=new dY,ci(e.e,n,b),a=new Tr,d=new Tr,o=new J(t.k);o.a<o.c.c.length;)r=c(U(o),17),Cr(a,r.c),Cr(d,r.d);i=a.a.gc()-d.a.gc(),i<0?(FD(b,!0,(_r(),go)),FD(b,!1,vo)):i>0&&(FD(b,!1,(_r(),go)),FD(b,!0,vo)),Vc(t.g,new v$e(e,n)),ci(e.g,t,n)}function lye(){lye=W,mwt=new xt(p4e,(zt(),!1)),ze(-1),uwt=new xt(m4e,ze(-1)),ze(-1),awt=new xt(b4e,ze(-1)),fwt=new xt(w4e,!1),hwt=new xt(v4e,!1),M8e=(lH(),Kue),xwt=new xt(x4e,M8e),ywt=new xt(y4e,-1),E8e=(cG(),Jue),vwt=new xt(k4e,E8e),wwt=new xt(O4e,!0),T8e=(wH(),Yue),pwt=new xt(j4e,T8e),gwt=new xt(S4e,!1),ze(1),dwt=new xt(T4e,ze(1)),C8e=(tG(),Zue),bwt=new xt(C4e,C8e)}function Krt(){Krt=W;var e;for(Qke=ee(Z(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]),cce=Ce(Hn,li,30,37,15,1),eht=ee(Z(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]),Uke=Ce(Kw,bct,30,37,14,1),e=2;e<=36;e++)cce[e]=ys(p.Math.pow(e,Qke[e])),Uke[e]=rL(ML,cce[e])}function kYt(e){var t;if((!e.a&&(e.a=new Le(Qi,e,6,6)),e.a).i!=1)throw K(new Ht(But+(!e.a&&(e.a=new Le(Qi,e,6,6)),e.a).i));return t=new nu,Vte(c(ae((!e.b&&(e.b=new Et(yn,e,4,7)),e.b),0),83))&&Os(t,zot(e,Vte(c(ae((!e.b&&(e.b=new Et(yn,e,4,7)),e.b),0),83)),!1)),Vte(c(ae((!e.c&&(e.c=new Et(yn,e,5,8)),e.c),0),83))&&Os(t,zot(e,Vte(c(ae((!e.c&&(e.c=new Et(yn,e,5,8)),e.c),0),83)),!0)),t}function Yrt(e,t){var n,i,r,o,a;for(t.d?r=e.a.c==(td(),Gw)?vr(t.b):Fi(t.b):r=e.a.c==(td(),Yg)?vr(t.b):Fi(t.b),o=!1,i=new Gt(Xt(r.a.Jc(),new z));gn(i);)if(n=c(on(i),17),a=it(e.a.f[e.a.g[t.b.p].p]),!(!a&&!vs(n)&&n.c.i.c==n.d.i.c)&&!(it(e.a.n[e.a.g[t.b.p].p])||it(e.a.n[e.a.g[t.b.p].p]))&&(o=!0,Ba(e.b,e.a.g[$qt(n,t.b).p])))return t.c=!0,t.a=n,t;return t.c=o,t.a=null,t}function uye(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(),p2e(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 x0(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(p2e(e,t,n),e.Kj()){for(d=i<100?null:new x0(i),o=t+i,r=t;r<o;++r)d=e.Lj(e.vj(r),d);d&&d.mj()}return!0}function Zrt(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?ki(d,n):Se(d)===Se(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?ki(d,n):Se(d)===Se(n))&&(r=null,d&&(r=e.Mj(d,null)),r=e.Lj(n,r),r&&r.mj()),d)}function aye(e,t){var n,i,r,o,a,d,b,v,k;if(e.e=t,e.f=c($(t,(L0(),PU)),237),uQt(t),e.d=p.Math.max(t.e.c.length*16+t.c.c.length,256),!it(nt($(t,(Tf(),mOe)))))for(k=e.e.e.c.length,b=new J(t.e);b.a<b.c.c.length;)d=c(U(b),156),v=d.d,v.a=hee(e.f)*k,v.b=hee(e.f)*k;for(n=t.b,o=new J(t.c);o.a<o.c.c.length;)if(r=c(U(o),292),i=c($(r,yOe),15).a,i>0){for(a=0;a<i;a++)Ue(n,new NHe(r));Snt(r)}}function OYt(e,t){var n,i,r,o,a,d,b,v,k,T;for(t.Tg("Hypernodes processing",1),r=new J(e.b);r.a<r.c.c.length;)for(i=c(U(r),26),d=new J(i.a);d.a<d.c.c.length;)if(a=c(U(d),9),it(nt($(a,(We(),EJ))))&&a.j.c.length<=2){for(T=0,k=0,n=0,o=0,v=new J(a.j);v.a<v.c.c.length;)switch(b=c(U(v),12),b.j.g){case 1:++T;break;case 2:++k;break;case 3:++n;break;case 4:++o}T==0&&n==0&&Dnn(e,a,o<=k)}t.Ug()}function est(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R;if(A=new iv(e.Yg()),xf(t,di,A),n&&!e.Wg().a.dc())for(k=new vg,xf(t,"logs",k),d=0,R=new hy(e.Wg().b.Jc());R.b.Ob();)L=qn(R.b.Pb()),T=new iv(L),fv(k,d),nte(k,d,T),++d;if(i&&(v=new k6(e.Vg()),xf(t,"executionTime",v)),!e.Xg().a.dc())for(a=new vg,xf(t,Coe,a),d=0,o=new hy(e.Xg().b.Jc());o.b.Ob();)r=c(o.b.Pb(),861),b=new f4,fv(a,d),nte(a,d,b),est(r,b,n,i),++d}function fye(){fye=W,zY(),Jxt=new $N,ee(Z(Zk,2),Ge,377,0,[ee(Z(Zk,1),xU,596,0,[new b_(xft)])]),ee(Z(Zk,2),Ge,377,0,[ee(Z(Zk,1),xU,596,0,[new b_(Ske)])]),ee(Z(Zk,2),Ge,377,0,[ee(Z(Zk,1),xU,596,0,[new b_(yft)]),ee(Z(Zk,1),xU,596,0,[new b_(Ske)])]),new T0("-1"),ee(Z(Zk,2),Ge,377,0,[ee(Z(Zk,1),xU,596,0,[new b_("\\c+")])]),new T0("0"),new T0("0"),new T0("1"),new T0("0"),new T0(Cft)}function jYt(e,t,n){var i,r,o,a,d,b,v,k,T;for(n.Tg("Hyperedge merging",1),YJt(e,t),b=new ss(t.b,0);b.b<b.d.gc();)if(d=(pn(b.b<b.d.gc()),c(b.d.Xb(b.c=b.b++),26)),k=d.a,k.c.length!=0)for(i=null,r=null,o=null,a=null,v=0;v<k.c.length;v++)i=(pt(v,k.c.length),c(k.c[v],9)),r=i.k,r==(Wt(),Er)&&a==Er&&(T=kZt(i,o),T.a&&(jXt(i,o,T.b,T.c),pt(v,k.c.length),K1e(k.c,v,1),--v,i=o,r=a)),o=i,a=r;n.Ug()}function SYt(e,t,n,i,r){var o,a,d,b,v,k,T;for(a=new J(t);a.a<a.c.c.length;){if(o=c(U(a),17),b=o.c,n.a._b(b))v=(Yb(),up);else if(i.a._b(b))v=(Yb(),A3);else throw K(new Ht("Source port must be in one of the port sets."));if(k=o.d,n.a._b(k))T=(Yb(),up);else if(i.a._b(k))T=(Yb(),A3);else throw K(new Ht("Target port must be in one of the port sets."));d=new ztt(o,v,T),ci(e.b,o,d),Rt(r.c,d)}}function iQ(e){var t,n;return e.c&&e.c.Sh()&&(n=c(e.c,52),e.c=c(B0(e,n),146),e.c!=n&&((e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,9,2,n,e.c)),he(e.Cb,408)?e.Db>>16==-15&&e.Cb.Vh()&&xte(new wte(e.Cb,9,13,n,e.c,zg(ou(c(e.Cb,62)),e))):he(e.Cb,89)&&e.Db>>16==-23&&e.Cb.Vh()&&(t=e.c,he(t,89)||(t=(At(),sf)),he(n,89)||(n=(At(),sf)),xte(new wte(e.Cb,9,10,n,t,zg(wc(c(e.Cb,29)),e)))))),e.c}function tst(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R;if(t==n)return!0;if(t=dxe(e,t),n=dxe(e,n),i=Qne(t),i){if(k=Qne(n),k!=i)return k?(b=i.kk(),R=k.kk(),b==R&&b!=null):!1;if(a=(!t.d&&(t.d=new Nr(Ks,t,1)),t.d),o=a.i,A=(!n.d&&(n.d=new Nr(Ks,n,1)),n.d),o==A.i){for(v=0;v<o;++v)if(r=c(ae(a,v),88),T=c(ae(A,v),88),!tst(e,r,T))return!1}return!0}else return d=t.e,L=n.e,d==L}function nst(e,t,n,i){var r,o,a,d,b,v,k,T;if(z1(e.e,t)){for(T=ol(e.e.Ah(),t),o=c(e.g,123),k=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,k=a.kd()),++r);if(b==-1)throw K(new Qc(Aoe+n+Am+r));if(d==-1)throw K(new Qc(Noe+i+Am+r));return R7(e,b,d),bu(e.e)&&N6(e,A0(e,7,t,ze(i),k,n,!0)),k}else throw K(new Ht("The feature must be many-valued to support move"))}function ist(e,t,n,i){var r,o,a,d,b;switch(b=new Es(t.n),b.a+=t.o.a/2,b.b+=t.o.b/2,d=ge(be($(t,(We(),ex)))),o=e.f,a=e.d,r=e.c,c($(t,($e(),Zo)),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 TYt(e,t,n){var i,r;i=t.c.i,r=n.d.i,i.k==(Wt(),Er)?(_e(e,($e(),sh),c($(i,sh),12)),_e(e,Ka,c($(i,Ka),12)),_e(e,Vv,nt($(i,Vv)))):i.k==fc?(_e(e,($e(),sh),c($(i,sh),12)),_e(e,Ka,c($(i,Ka),12)),_e(e,Vv,(zt(),!0))):r.k==fc?(_e(e,($e(),sh),c($(r,sh),12)),_e(e,Ka,c($(r,Ka),12)),_e(e,Vv,(zt(),!0))):(_e(e,($e(),sh),t.c),_e(e,Ka,n.d))}function CYt(e){var t,n,i,r,o,a,d;for(e.o=new Ty,i=new _i,a=new J(e.e.a);a.a<a.c.c.length;)o=c(U(a),126),zy(o).c.length==1&&sr(i,o,i.c.b,i.c);for(;i.b!=0;)o=c(i.b==0?null:(pn(i.b!=0),wa(i,i.a.a)),126),zy(o).c.length!=0&&(t=c(Xe(zy(o),0),220),n=o.g.a.c.length>0,d=oG(t,o),p0e(n?d.b:d.g,t),zy(d).c.length==1&&sr(i,d,i.c.b,i.c),r=new Ls(o,t),N0(e.o,r),gl(e.e.a,o))}function rst(e,t){var n,i,r,o,a,d,b;return i=p.Math.abs(Aq(e.b).a-Aq(t.b).a),d=p.Math.abs(Aq(e.b).b-Aq(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 EYt(e){var t,n,i,r;for(ore(e,e.e,e.f,(Yb(),up),!0,e.c,e.i),ore(e,e.e,e.f,up,!1,e.c,e.i),ore(e,e.e,e.f,A3,!0,e.c,e.i),ore(e,e.e,e.f,A3,!1,e.c,e.i),SYt(e,e.c,e.e,e.f,e.i),i=new ss(e.i,0);i.b<i.d.gc();)for(t=(pn(i.b<i.d.gc()),c(i.d.Xb(i.c=i.b++),134)),r=new ss(e.i,i.b);r.b<r.d.gc();)n=(pn(r.b<r.d.gc()),c(r.d.Xb(r.c=r.b++),134)),ven(t,n);Hnn(e.i,c($(e.d,($e(),Rk)),237)),otn(e.i)}function qie(e,t){var n,i;if(t!=null){if(i=dw(e),i)if((i.i&1)!=0){if(i==Sl)return G2(t);if(i==Hn)return he(t,15);if(i==Sx)return he(t,165);if(i==Bl)return he(t,224);if(i==Da)return he(t,183);if(i==is)return Q2(t);if(i==G3)return he(t,193);if(i==Kw)return he(t,192)}else return gF(),n=c(Jt(LW,i),58),!n||n.dk(t);else if(he(t,57))return e.bl(c(t,57))}return!1}function hye(){hye=W;var e,t,n,i,r,o,a,d,b;for(Gh=Ce(Bl,l3,30,255,15,1),c0=Ce(Da,fd,30,64,15,1),t=0;t<255;t++)Gh[t]=-1;for(n=90;n>=65;n--)Gh[n]=n-65<<24>>24;for(i=122;i>=97;i--)Gh[i]=i-97+26<<24>>24;for(r=57;r>=48;r--)Gh[r]=r-48+52<<24>>24;for(Gh[43]=62,Gh[47]=63,o=0;o<=25;o++)c0[o]=65+o&Dr;for(a=26,b=0;a<=51;++a,b++)c0[a]=97+b&Dr;for(e=52,d=0;e<=61;++e,d++)c0[e]=48+d&Dr;c0[62]=43,c0[63]=47}function sst(e,t){var n,i,r,o,a,d;return r=swe(e),d=swe(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)*wct)+1)-(t.d>0?t.d:p.Math.floor((t.a-1)*wct)+1),n>i+1?r:n<i-1?-r:(o=(!e.c&&(e.c=uD(nc(e.f))),e.c),a=(!t.c&&(t.c=uD(nc(t.f))),t.c),i<0?o=Dy(o,wst(-i)):i>0&&(a=Dy(a,wst(i))),XYe(o,a))):r<d?-1:1}function ost(e){var t,n,i,r,o,a;return i=new Gbe,ic(i,e),Se($(i,(We(),Xu)))===Se((_r(),zh))&&_e(i,Xu,rG(i)),$(i,(hH(),HE))==null&&(a=c(itt(e),176),_e(i,HE,HF(a.mf(HE)))),_e(i,($e(),Si),e),_e(i,Bc,(t=c(Jf(hle),10),new ga(t,c(mf(t,t.length),10),0))),r=Ntn((Ki(e)&&(k0(),new xg(Ki(e))),k0(),new eq(Ki(e)?new xg(Ki(e)):null,e)),vo),o=c($(i,OSe),100),n=i.d,iQe(n,o),iQe(n,r),i}function MYt(e,t,n){var i,r,o,a,d,b,v,k;for(n.Tg(Wct,1),e.qf(t),o=0;e.sf(o)&&!n.Zg();){for(e.rf(),k=Bd(va(ee(Z(Ea,1),It,22,0,[t.e,t.d,t.b])));gn(k);)for(b=c(on(k),314),d=Bd(va(ee(Z(Ea,1),It,22,0,[t.e,t.d,t.b])));gn(d);)a=c(on(d),314),a!=b&&(r=e.pf(a,b),r&&ji(b.c,r));for(v=Bd(va(ee(Z(Ea,1),It,22,0,[t.e,t.d,t.b])));gn(v);)b=c(on(v),314),i=b.c,ktt(i,-e.d,-e.d,e.d,e.d),ji(b.d,i),i.a=0,i.b=0;++o}n.Ug()}function AYt(e,t){var n,i,r,o,a,d,b,v,k,T,A,L;if(e.dc())return new us;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)*ge(be($(c(e.Jc().Pb(),37),(We(),yJ))))),A=0,L=0,b=0,n=t,d=e.Jc();d.Ob();)a=c(d.Pb(),37),k=a.f,A+k.a>v&&(A=0,L+=b+t,b=0),Kj(a,A,L),n=p.Math.max(n,A+k.a),b=p.Math.max(b,k.b),A+=k.a+t;return new He(n+t,L+b+t)}function dye(e,t){var n,i,r,o,a,d,b;if(!wh(e))throw K(new oo($ut));if(i=wh(e),o=i.g,r=i.f,o<=0&&r<=0)return Ve(),$o;switch(d=e.i,b=e.j,t.g){case 2:case 1:if(d<0)return Ve(),Zt;if(d+e.g>o)return Ve(),sn;break;case 4:case 3:if(b<0)return Ve(),Yt;if(b+e.f>r)return Ve(),wn}return a=(d+e.g/2)/o,n=(b+e.f/2)/r,a+n<=1&&a-n<=0?(Ve(),Zt):a+n>=1&&a-n>=0?(Ve(),sn):n<.5?(Ve(),Yt):(Ve(),wn)}function NYt(e,t,n,i,r){var o,a;if(o=As(Zr(t[0],Us),Zr(i[0],Us)),e[0]=Qn(o),o=Qb(o,32),n>=r){for(a=1;a<r;a++)o=As(o,As(Zr(t[a],Us),Zr(i[a],Us))),e[a]=Qn(o),o=Qb(o,32);for(;a<n;a++)o=As(o,Zr(t[a],Us)),e[a]=Qn(o),o=Qb(o,32)}else{for(a=1;a<n;a++)o=As(o,As(Zr(t[a],Us),Zr(i[a],Us))),e[a]=Qn(o),o=Qb(o,32);for(;a<r;a++)o=As(o,Zr(i[a],Us)),e[a]=Qn(o),o=Qb(o,32)}Lc(o,0)!=0&&(e[a]=Qn(o))}function _Yt(e,t){var n,i,r,o,a,d,b,v,k;for(t.Tg("Layer constraint edge reversal",1),a=new J(e.b);a.a<a.c.c.length;){for(o=c(U(a),26),k=-1,n=new Qe,v=aD(o.a),r=0;r<v.length;r++)i=c($(v[r],($e(),Pm)),316),k==-1?i!=(_1(),x3)&&(k=r):i==(_1(),x3)&&(zr(v[r],null),q0(v[r],k++,o)),i==(_1(),Nk)&&Rt(n.c,v[r]);for(b=new J(n);b.a<b.c.c.length;)d=c(U(b),9),zr(d,null),zr(d,o)}t.Ug()}function Av(e){vi();var t,n,i,r,o,a;if(e.e!=4&&e.e!=5)throw K(new Ht("Token#complementRanges(): must be RANGE: "+e.e));for(o=e,Wy(o),fC(o),i=o.b.length+2,o.b[0]==0&&(i-=2),n=o.b[o.b.length-1],n==PS&&(i-=2),r=new zu(4),r.b=Ce(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!=PS&&(r.b[a++]=n+1,r.b[a]=PS),r.a=!0,r}function DYt(e,t){var n,i,r,o,a,d,b,v,k;for(t.Tg("Hierarchical port dummy size processing",1),b=new Qe,k=new Qe,i=ge(be($(e,(We(),ix)))),n=i*2,o=new J(e.b);o.a<o.c.c.length;){for(r=c(U(o),26),b.c.length=0,k.c.length=0,d=new J(r.a);d.a<d.c.c.length;)a=c(U(d),9),a.k==(Wt(),Ar)&&(v=c($(a,($e(),Zo)),64),v==(Ve(),Yt)?Rt(b.c,a):v==wn&&Rt(k.c,a));Ant(b,!0,n),Ant(k,!1,n)}t.Ug()}function cst(e,t){var n,i,r,o,a,d,b,v,k,T,A,L;if(e.c.length==1)return 0;for(A=ge(be(t.a)),L=ge(be(t.b)),k=0,b=new J(e);b.a<b.c.c.length;)d=c(U(b),19),k+=d.g;for(n=(k-A+L)/2,o=0;n<o&&0<e.c.length;)o+=(pt(0,e.c.length),c(e.c[0],19)).lh();for(i=o-n,T=n-(o-(pt(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+=(pt(r,e.c.length),c(e.c[r],19)).lh();return t.b=L+a,v}function Hie(e,t,n){var i,r,o,a,d,b,v,k;if(i=n.gc(),i==0)return!1;if(e.Nj())if(v=e.Oj(),fie(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 x0(i),o=t+i,r=t;r<o;++r)k=e.g[r],d=e.Lj(k,d),d=e.Sj(k,d);d?(d.lj(a),d.mj()):e.Hj(a)}else e.Hj(a);else if(fie(e,t,n),e.Kj()){for(d=i<100?null:new x0(i),o=t+i,r=t;r<o;++r)b=e.g[r],d=e.Lj(b,d);d&&d.mj()}return!0}function gye(e,t,n,i){var r,o,a,d,b;for(a=new J(e.k);a.a<a.c.c.length;)r=c(U(a),135),(!i||r.c==(Xf(),lp))&&(b=r.b,b.g<0&&r.d>0&&(c_(b,b.d-r.d),r.c==(Xf(),lp)&&rY(b,b.a-r.d),b.d<=0&&b.i>0&&sr(t,b,t.c.b,t.c)));for(o=new J(e.f);o.a<o.c.c.length;)r=c(U(o),135),(!i||r.c==(Xf(),lp))&&(d=r.a,d.g<0&&r.d>0&&(j6(d,d.i-r.d),r.c==(Xf(),lp)&&cT(d,d.b-r.d),d.i<=0&&d.d>0&&sr(n,d,n.c.b,n.c)))}function LYt(e,t,n,i,r){var o,a,d,b,v,k,T,A,L;for(Mt(),Rr(e,new Ob),a=Y_(e),L=new Qe,A=new Qe,d=null,b=0;a.b!=0;)o=c(a.b==0?null:(pn(a.b!=0),wa(a,a.a.a)),168),!d||Nl(d)*yu(d)/2<Nl(o)*yu(o)?(d=o,Rt(L.c,o)):(b+=Nl(o)*yu(o),Rt(A.c,o),A.c.length>1&&(b>Nl(d)*yu(d)/2||a.b==0)&&(T=new CH(A),k=Nl(d)/yu(d),v=cre(T,t,new u4,n,i,r,k),ji(Wf(T.e),v),d=T,Rt(L.c,T),b=0,A.c.length=0));return Or(L,A),L}function yc(e,t,n,i,r){Sg();var o,a,d,b,v,k,T;if(Upe(e,"src"),Upe(n,"dest"),T=ju(e),b=ju(n),ppe((T.i&4)!=0,"srcType is not an array"),ppe((b.i&4)!=0,"destType is not an array"),k=T.c,a=b.c,ppe((k.i&1)!=0?k==a:(a.i&1)==0,"Array types don't match"),nBt(e,t,n,i,r),(k.i&1)==0&&T!=b)if(v=U4(e),o=U4(n),Se(e)===Se(n)&&t<i)for(t+=r,d=i+r;d-- >i;)br(o,d,v[--t]);else for(d=i+r;i<d;)br(o,i++,v[t++]);else cxe(e,t,n,i,r,!0)}function lst(e,t){var n,i,r,o,a,d,b,v,k;switch(t.Tg("Box layout",2),r=g_(be(Ae(e,($G(),P2t)))),o=c(Ae(e,L2t),100),n=it(nt(Ae(e,DTe))),i=it(nt(Ae(e,LTe))),c(Ae(e,Sae),327).g){case 0:a=(k=new Hl((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a)),Mt(),Rr(k,new wLe(i)),k),d=Qve(e),b=be(Ae(e,_Te)),(b==null||(Ft(b),b<=0))&&(b=1.3),v=Tnn(a,r,o,d.a,d.b,n,(Ft(b),b)),ww(e,v.a,v.b,!1,!0);break;default:fen(e,r,o,n)}t.Ug()}function PYt(e,t,n,i,r){var o,a,d,b,v,k,T,A,L,R;for(A=jGt(e,n),b=0;b<t;b++){for(X2(r,n),L=new Qe,R=(pn(i.b<i.d.gc()),c(i.d.Xb(i.c=i.b++),415)),k=A+b;k<e.b;k++)d=R,R=(pn(i.b<i.d.gc()),c(i.d.Xb(i.c=i.b++),415)),Ue(L,new Lit(d,R,n));for(T=A+b;T<e.b;T++)pn(i.b>0),i.a.Xb(i.c=--i.b),T>A+b&&iu(i);for(a=new J(L);a.a<a.c.c.length;)o=c(U(a),415),X2(i,o);if(b<t-1)for(v=A+b;v<e.b;v++)pn(i.b>0),i.a.Xb(i.c=--i.b)}}function IYt(){vi();var e,t,n,i,r,o;if(lfe)return lfe;for(e=new zu(4),_v(e,J0(Woe,!0)),gC(e,J0("M",!0)),gC(e,J0("C",!0)),o=new zu(4),i=0;i<11;i++)Pc(o,i,i);return t=new zu(4),_v(t,J0("M",!0)),Pc(t,4448,4607),Pc(t,65438,65439),r=new QT(2),km(r,e),km(r,pM),n=new QT(2),n.Hm(jq(o,J0("L",!0))),n.Hm(t),n=new uv(3,n),n=new Wpe(r,n),lfe=n,lfe}function Nv(e,t){var n,i,r,o,a,d,b,v;for(n=new RegExp(t,"g"),b=Ce(st,Ge,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]=(as(0,a,v.length),v.substr(0,a)),v=qa(v,a+d[0].length,v.length),n.lastIndex=0,o==v&&(b[i]=(as(0,1,v.length),v.substr(0,1)),v=(tn(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 Wo(){Wo=W,G9e=new Wp(20),H9e=new Qr((Pn(),$h),G9e),jue=new Qr(lh,20),U9e=new Qr(d7e,3),fbt=new Qr(h9,dS),YJ=new Qr(ZP,ze(1)),xbt=new Qr(Bae,(zt(),!0)),B9e=KP,z9e=(_r(),zh),Qw=new Qr(Qm,z9e),hbt=WE,dbt=Nae,pbt=Um,mbt=hx,bbt=$3,wbt=fp,gbt=R3,q9e=VE,vbt=dx,W9e=(hxe(),abt),Q9e=lbt,Obt=p9,jbt=xW,kbt=px,ybt=g9,J9e=(X4(),wx),new Qr(Xk,J9e),N3=cbt,Oue=obt,yd=ubt,$9e=rbt,F9e=sbt}function RYt(e){var t,n,i,r,o,a,d,b,v,k,T,A;if(d=Ki(e),T=Xnt(e),t=c(Ae(e,(Pn(),svt)),15).a,d){for(k=cs,i=new ln((!d.a&&(d.a=new Le(Nn,d,10,11)),d.a));i.e!=i.i.gc();)n=c(fn(i),19),b=Xnt(n),b>k&&(k=b);for(v=p.Math.pow(4,t),k>v&&(v=k),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 $Yt(e){var t,n,i,r,o,a,d,b,v,k,T;for(T=new $A,T.d=0,a=new J(e.b);a.a<a.c.c.length;)o=c(U(a),26),T.d+=o.a.c.length;for(i=0,r=0,T.a=Ce(Hn,li,30,e.b.c.length,15,1),v=0,k=0,T.e=Ce(Hn,li,30,T.d,15,1),n=new J(e.b);n.a<n.c.c.length;)for(t=c(U(n),26),t.p=i++,T.a[t.p]=r++,k=0,b=new J(t.a);b.a<b.c.c.length;)d=c(U(b),9),d.p=v++,T.e[d.p]=k++;return T.c=new QDe(T),T.b=Pd(T.d),nYt(T,e),T.f=Pd(T.d),iYt(T,e),T}function BYt(e){var t,n;if(t=qn(Ae(e,(Pn(),Jk))),!LXe(t,e)&&!ma(e,gx)&&((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a).i!=0||it(nt(Ae(e,YP)))))if(t==null||Sv(t).length==0){if(!LXe(Qt,e))throw n=ti(ti(new Iu("Unable to load default layout algorithm "),Qt)," for unconfigured node "),fQ(e,n),K(new Xh(n.a))}else throw n=ti(ti(new Iu("Layout algorithm '"),t),"' not found for "),fQ(e,n),K(new Xh(n.a))}function Gie(e){var t,n,i,r,o,a,d,b,v,k,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,k=a.length;b<k;++b)r=a[b],Tq(r,L,A);else i=LZe(e,!1),Tq(e.a[0],n.c+t.b,i[0]),Tq(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),Tq(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],he(r,338)&&c(r,338).hf()}function zYt(e){var t,n,i,r,o,a,d,b,v,k;for(k=Ce(Hn,li,30,e.b.c.length+1,15,1),v=new Tr,i=0,o=new J(e.b);o.a<o.c.c.length;){for(r=c(U(o),26),k[i++]=v.a.gc(),b=new J(r.a);b.a<b.c.c.length;)for(a=c(U(b),9),n=new Gt(Xt(Fi(a).a.Jc(),new z));gn(n);)t=c(on(n),17),v.a.yc(t,v);for(d=new J(r.a);d.a<d.c.c.length;)for(a=c(U(d),9),n=new Gt(Xt(vr(a).a.Jc(),new z));gn(n);)t=c(on(n),17),v.a.Ac(t)!=null}return k}function ust(e,t){var n,i,r,o;for(o=c(Xe(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 J(e.n);i.a<i.c.c.length;)n=c(U(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),H2e(e.j)}function ast(e,t){var n,i,r,o,a,d,b,v,k,T;if(k=nt($(t,(Tf(),kdt))),k==null||(Ft(k),k)){for(T=Ce(Sl,eh,30,t.e.c.length,16,1),a=EJt(t),r=new _i,v=new J(t.e);v.a<v.c.c.length;)d=c(U(v),156),n=jxe(e,d,null,null,T,a),n&&(ic(n,t),sr(r,n,r.c.b,r.c));if(r.b>1)for(i=Ln(r,0);i.b!=i.d.c;)for(n=c(_n(i),238),o=0,b=new J(n.e);b.a<b.c.c.length;)d=c(U(b),156),d.a=o++;return r}return vf(ee(Z(Pin,1),Qct,238,0,[t]))}function ud(e){var t,n,i,r,o,a,d;if(!e.g){if(d=new gh,t=uM,a=t.a.yc(e,t),a==null){for(i=new ln(wo(e));i.e!=i.i.gc();)n=c(fn(i),29),dr(d,ud(n));t.a.Ac(e)!=null,t.a.gc()==0}for(r=d.i,o=(!e.s&&(e.s=new Le(jl,e,21,17)),new ln(e.s));o.e!=o.i.gc();++r)w(c(fn(o),454),r);dr(d,(!e.s&&(e.s=new Le(jl,e,21,17)),e.s)),bv(d),e.g=new uKe(e,d),e.i=c(d.g,258),e.i==null&&(e.i=tfe),e.p=null,ru(e).b&=-5}return e.g}function FYt(e,t){var n,i,r,o,a,d,b,v,k;if(n=t.ni(e.a),n&&(b=qn(Zf((!n.b&&(n.b=new vu((At(),$s),ec,n)),n.b),"memberTypes")),b!=null)){for(v=new Qe,o=Nv(b,"\\w"),a=0,d=o.length;a<d;++a)r=o[a],i=r.lastIndexOf("#"),k=i==-1?E0e(e,t.hk(),r):i==0?xD(e,null,(tn(1,r.length+1),r.substr(1))):xD(e,(as(0,i,r.length),r.substr(0,i)),(tn(i+1,r.length+1),r.substr(i+1))),he(k,160)&&Ue(v,c(k,160));return v}return Mt(),Mt(),Is}function Qie(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R;if(i=e.i,n=e.n,e.b==0)t=DZe(e,!1),Cq(e.a[0],i.d+n.d,t[0]),Cq(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),Cq(e.a[1],i.d+n.d+t[0]-(t[1]-T)/2,t[1]);else for(R=i.d+n.d,L=i.a-n.d-n.a,a=e.a,b=0,k=a.length;b<k;++b)r=a[b],Cq(r,R,L);for(o=e.a,d=0,v=o.length;d<v;++d)r=o[d],he(r,338)&&c(r,338).jf()}function qYt(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(Xe(t.n,t.n.c.length-1),211),a.e+a.d+n.g+r<=i&&(o=c(Xe(t.n,t.n.c.length-1),211),o.f-e.f+n.f<=e.b||e.a.c.length==1))return o2e(t,n),!0;if(t.s+n.g<=i&&t.t+t.d+n.f+r<=e.f+e.b)return Ue(t.b,n),d=c(Xe(t.n,t.n.c.length-1),211),Ue(t.n,new Vq(t.s,d.f+d.a+t.i,t.i)),z2e(c(Xe(t.n,t.n.c.length-1),211),n),ust(t,n),!0}return!1}function rQ(e,t,n,i){var r,o,a,d,b;if(b=ol(e.e.Ah(),t),r=c(e.g,123),qs(),c(t,69).vk()){for(a=0;a<e.i;++a)if(o=r[a],b.$l(o.Jk())&&ki(o,n))return!0}else if(n!=null){for(d=0;d<e.i;++d)if(o=r[d],b.$l(o.Jk())&&ki(n,o.kd()))return!0;if(i){for(a=0;a<e.i;++a)if(o=r[a],b.$l(o.Jk())&&Se(n)===Se(zZ(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 HYt(e,t){var n,i,r,o,a,d;if(n=t.ni(e.a),n&&(d=qn(Zf((!n.b&&(n.b=new vu((At(),$s),ec,n)),n.b),iU)),d!=null))switch(r=KF(d,ml(35)),i=t.ok(),r==-1?(a=e7(e,Fu(i)),o=d):r==0?(a=null,o=(tn(1,d.length+1),d.substr(1))):(a=(as(0,r,d.length),d.substr(0,r)),o=(tn(r+1,d.length+1),d.substr(r+1))),Vb(uo(e,t))){case 2:case 3:return K$t(e,i,a,o);case 0:case 4:case 5:case 6:return Y$t(e,i,a,o)}return null}function fst(e,t,n,i){var r,o,a,d;for(d=n,a=new J(t.a);a.a<a.c.c.length;){if(o=c(U(a),227),r=c(o.b,68),uw(e.b.c,r.b.c+r.b.b)<=0&&uw(r.b.c,e.b.c+e.b.b)<=0&&uw(e.b.d,r.b.d+r.b.a)<=0&&uw(r.b.d,e.b.d+e.b.a)<=0){if(uw(r.b.c,e.b.c+e.b.b)==0&&i.a<0||uw(r.b.c+r.b.b,e.b.c)==0&&i.a>0||uw(r.b.d,e.b.d+e.b.a)==0&&i.b<0||uw(r.b.d+r.b.a,e.b.d)==0&&i.b>0){d=0;break}}else d=p.Math.min(d,Vtt(e,r,i));d=p.Math.min(d,fst(e,o,d,i))}return d}function pye(e,t){var n,i,r,o,a,d,b;if(e.b<2)throw K(new Ht("The vector chain must contain at least a source and a target point."));for(r=(pn(e.b!=0),c(e.a.a.c,8)),B_(t,r.a,r.b),b=new T4((!t.a&&(t.a=new Nr(ea,t,5)),t.a)),a=Ln(e,1);a.a<e.b-1;)d=c(_n(a),8),b.e!=b.i.gc()?n=c(fn(b),373):(n=(y0(),i=new A2,i),FYe(b,n)),CZ(n,d.a,d.b);for(;b.e!=b.i.gc();)fn(b),J7(b);o=(pn(e.b!=0),c(e.c.b.c,8)),$_(t,o.a,o.b)}function hst(e,t,n,i){var r,o,a,d,b,v;if(v=ol(e.e.Ah(),t),a=c(e.g,123),z1(e.e,t)){if(t.Qi()&&(o=Zj(e,t,i,he(t,104)&&(c(t,20).Bb&Ps)!=0),o>=0&&o!=n))throw K(new Ht(tP));for(r=0,b=0;b<e.i;++b)if(d=a[b],v.$l(d.Jk())){if(r==n)return c(Hy(e,b,(qs(),c(t,69).vk()?c(i,76):Fd(t,i))),76);++r}throw K(new Qc(IC+n+Am+r))}else{for(b=0;b<e.i;++b)if(d=a[b],v.$l(d.Jk()))return qs(),c(t,69).vk()?d:d.kd();return null}}function dst(e,t){var n,i,r,o,a,d,b,v,k;for(n=0,r=new J((pt(0,e.c.length),c(e.c[0],108)).g.b.j);r.a<r.c.c.length;)i=c(U(r),12),i.p=n++;for(t==(Ve(),Yt)?Rr(e,new Tl):Rr(e,new ko),d=0,k=e.c.length-1;d<k;)a=(pt(d,e.c.length),c(e.c[d],108)),v=(pt(k,e.c.length),c(e.c[k],108)),o=t==Yt?a.c:a.a,b=t==Yt?v.a:v.c,Mg(a,t,(Of(),HS),o),Mg(v,t,qS,b),++d,--k;d==k&&Mg((pt(d,e.c.length),c(e.c[d],108)),t,(Of(),Uv),null)}function GYt(e,t,n,i){var r,o,a,d,b,v;for(a=new Qst(e,t,n),b=new ss(i,0),r=!1;b.b<b.d.gc();)d=(pn(b.b<b.d.gc()),c(b.d.Xb(b.c=b.b++),242)),d==t||d==n?iu(b):!r&&ge(mh(d.g,d.d[0]).a)>ge(mh(a.g,a.d[0]).a)?(pn(b.b>0),b.a.Xb(b.c=--b.b),X2(b,a),r=!0):d.e&&d.e.gc()>0&&(o=(!d.e&&(d.e=new Qe),d.e).Kc(t),v=(!d.e&&(d.e=new Qe),d.e).Kc(n),(o||v)&&((!d.e&&(d.e=new Qe),d.e).Ec(a),++a.c));r||Rt(i.c,a)}function QYt(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y;return T=e.a.i+e.a.g/2,A=e.a.i+e.a.g/2,R=t.i+t.g/2,G=t.j+t.f/2,d=new He(R,G),v=c(Ae(t,(Pn(),Wk)),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,F=n.i+n.g/2,Y=n.j+n.f/2,b=new He(F,Y),k=c(Ae(n,Wk),8),k.a=k.a+T,k.b=k.b+A,a=(b.b-k.b)/(b.a-k.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:!(k.a<L&&b.a<L||L<k.a&&L<b.a)}function UYt(e,t,n){var i,r,o,a;for(n.Tg(Llt,1),e.a=t,e.c=new Qe,o=p.Math.max(t.a.c.length,c($(t,($e(),sp)),15).a);a=new lWe(e.c,e.d,e.b),pWt(a,t),gHt(a,t),e.d.b!=0;){for(e.rg(o,o*c($(t,OP),15).a),r=new J(e.c);r.a<r.c.c.length;)i=c(U(r),17),qg(i,!1),_e(i.c.i,(We(),mE),ze(c($(i.c.i,mE),15).a+1)),_e(t,Dk,(zt(),!0));ku(e.d),lc(e.b),e.c.c.length=0}n.Ug(),n.ah("Execution Time: "+n.Vg())}function gst(e,t,n,i){var r,o,a,d,b,v;if(!lv(t)){if(v=n.dh((he(t,18)?c(t,18).gc():Vf(t.Jc()))/e.a|0),v.Tg(qlt,1),b=new lK,d=0,i==(_r(),go)||i==vo)for(a=t.Jc();a.Ob();)r=c(a.Pb(),41),b=va(ee(Z(Ea,1),It,22,0,[b,new y1(r)])),d<r.f.a&&(d=r.f.a);else for(a=t.Jc();a.Ob();)r=c(a.Pb(),41),b=va(ee(Z(Ea,1),It,22,0,[b,new y1(r)])),d<r.f.b&&(d=r.f.b);for(o=t.Jc();o.Ob();)r=c(o.Pb(),41),_e(r,(Ii(),KJ),d);v.Ug(),gst(e,b,n,i)}}function mye(e,t,n){var i,r,o,a,d,b,v,k;this.a=e,this.b=t,this.c=n,this.e=vf(ee(Z(_in,1),It,180,0,[new b4(e,t),new b4(t,n),new b4(n,e)])),this.f=vf(ee(Z(Vr,1),Ge,8,0,[e,t,n])),this.d=(i=Hr(Ms(this.b),this.a),r=Hr(Ms(this.c),this.a),o=Hr(Ms(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,k=(i.a*d-r.a*a)/b,new He(v,k))}function qg(e,t){var n,i,r,o,a,d;for(o=e.c,a=e.d,ks(e,null),rs(e,null),t&&it(nt($(a,($e(),xle))))?ks(e,cye(a.i,(Gs(),tl),(Ve(),sn))):ks(e,a),t&&it(nt($(o,($e(),kle))))?rs(e,cye(o.i,(Gs(),Vl),(Ve(),Zt))):rs(e,o),i=new J(e.b);i.a<i.c.c.length;)n=c(U(i),70),r=c($(n,(We(),xd)),281),r==(kh(),b9)?_e(n,xd,mx):r==mx&&_e(n,xd,b9);d=it(nt($(e,($e(),Vg)))),_e(e,Vg,(zt(),!d)),e.a=Awe(e.a)}function JYt(e,t){var n,i,r,o,a;return n=$j(c($(t,(Wo(),Qw)),87)),e.b.b==0?null:(a=c(Gl(Jc(new Tt(null,new Ct(e.b,16)),new Ts),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[(ya(),vl)]))),16),o=c(Gl(bi(new Tt(null,new Ct(t.b,16)),new JDe(a)),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[vl]))),16),r=be(wu(ev(Jc(o.Mc(),new WDe(n)),(Xb(),Xb(),ace)))),i=c(wu(P1(bi(o.Mc(),new D$e(n,r)))),41),i)}function WYt(e,t){var n,i,r,o,a,d;if(Mt(),Rr(t,new a1e(!1)),n=new Qe,i=new Qe,e.a)rtn(t,n,i);else{for(Ue(n,c(Xe(t,t.c.length-1),19)),a=0,d=0,o=1;o<t.c.length;o++)a<=d?(Ue(n,c(Xe(t,t.c.length-1-o),19)),a+=c(Xe(t,t.c.length-1-o),19).lh()):(Ue(i,c(Xe(t,t.c.length-1-o),19)),d+=c(Xe(t,t.c.length-1-o),19).lh());V7(n)}for(Rr(i,new a1e(!0)),Or(n,i),r=0;r<t.c.length;r++)Ou(t,r,(pt(r,n.c.length),c(n.c[r],19)))}function VYt(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G;n=qb(new Qp,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),k=ys(p.Math.max(0,d-T)),a=ys(p.Math.max(0,T-d)),R=(F=p.Math.max(1,c($(t,(We(),qk)),15).a),G=Qme(t.c.i.k,t.d.i.k),F*G),r=Sf(ff(df(hf(gf(new $a,R),a),n),c(Jt(e.k,t.c),126))),o=Sf(ff(df(hf(gf(new $a,R),k),n),c(Jt(e.k,t.d),126))),i=new T$e(r,o),e.c[t.p]=i}function XYt(e,t){var n,i,r,o,a,d,b,v,k,T;for(n=new xu(e.c,-100,new xu(0,e.a,e.b)),i=new xu(t.c,-100,new xu(0,t.a,t.b)),a=n.c-i.c,b=n,v=i,k=b.c,T=v.c;b&&v.b;)v.b.a>b.a?(r=v.b.c,o=v.b.a-v.a,d=k-T-(b.a-v.a)*r/o,a=p.Math.max(a,d),b=b.b,b&&(k+=b.c)):(v=v.b,T+=v.c);for(b=n,v=i,k=b.c,T=v.c;v&&b.b;)b.b.a>v.a?(r=b.b.c,o=b.b.a-b.a,d=k-T+(v.a-b.a)*r/o,a=p.Math.max(a,d),v=v.b,v&&(T+=v.c)):(b=b.b,k+=b.c);return a}function KYt(e,t,n){var i,r,o,a,d,b;for(i=0,o=new ln((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a));o.e!=o.i.gc();)r=c(fn(o),19),a="",(!r.n&&(r.n=new Le(Bo,r,1,7)),r.n).i==0||(a=c(ae((!r.n&&(r.n=new Le(Bo,r,1,7)),r.n),0),158).a),d=new ize(a),ic(d,r),_e(d,(L0(),Mk),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),Ue(t.e,d),bl(n.f,r,d),b=c(Ae(r,(Tf(),xOe)),103),b==(es(),gp)&&(b=Fh)}function pst(e){var t,n,i;if(Oy(c($(e,(We(),fr)),103)))for(n=new J(e.j);n.a<n.c.c.length;)t=c(U(n),12),t.j==(Ve(),$o)&&(i=c($(t,($e(),Wl)),9),i?$r(t,c($(i,Zo),64)):t.e.c.length-t.g.c.length<0?$r(t,sn):$r(t,Zt));else{for(n=new J(e.j);n.a<n.c.c.length;)t=c(U(n),12),i=c($(t,($e(),Wl)),9),i?$r(t,c($(i,Zo),64)):t.e.c.length-t.g.c.length<0?$r(t,(Ve(),sn)):$r(t,(Ve(),Zt));_e(e,fr,(es(),v9))}}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=(pt(0,b.c.length),c(b.c[0],26)),a=c(Xe(b,b.c.length-1),26),n=new mc(e),o=new mc(e),RKt(e,i,a,n,o),n.a.c.length==0||(cv(0,b.c.length),AT(b.c,0,n)),o.a.c.length==0||Rt(b.c,o)),Oi(e,($e(),vle))&&(r=new mc(e),d=new mc(e),CXt(e,r,d),r.a.c.length==0||(cv(0,b.c.length),AT(b.c,0,r)),d.a.c.length==0||Rt(b.c,d)),t.Ug()}function xL(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"+qa(n,n.length-2,n.length)):e>=Ps?(n=(t=e>>>0,"0"+t.toString(16)),i="\\v"+qa(n,n.length-6,n.length)):i=""+String.fromCharCode(e&Dr)}return i}function mst(e,t){var n,i,r,o,a,d,b,v,k;for(o=new J(e.b);o.a<o.c.c.length;)for(r=c(U(o),26),d=new J(r.a);d.a<d.c.c.length;)for(a=c(U(d),9),a.k==(Wt(),fc)&&(b=(v=c(on(new Gt(Xt(vr(a).a.Jc(),new z))),17),k=c(on(new Gt(Xt(Fi(a).a.Jc(),new z))),17),!it(nt($(v,($e(),Vg))))||!it(nt($(k,Vg)))?t:nKe(t)),fk(a,b)),i=new Gt(Xt(Fi(a).a.Jc(),new z));gn(i);)n=c(on(i),17),b=it(nt($(n,($e(),Vg))))?nKe(t):t,XXe(n,b)}function bye(e){var t,n,i,r,o,a;for(this.e=new Qe,this.a=new Qe,n=e.b-1;n<3;n++)G6(e,0,c(vc(e,0),8));if(e.b<4)throw K(new Ht("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,jWt(this,e.b+this.b-1),a=new Qe,o=new J(this.e),t=0;t<this.b-1;t++)Ue(a,be(U(o)));for(r=Ln(e,0);r.b!=r.d.c;)i=c(_n(r),8),Ue(a,be(U(o))),Ue(this.a,new JGe(i,a)),pt(0,a.c.length),a.c.splice(0,1)}function bst(e,t,n){var i,r,o,a;return e.Nj()?(r=null,o=e.Oj(),i=e.Gj(1,a=Ste(e,t,n),n,t,o),e.Kj()&&!(e.Wi()&&a!=null?ki(a,n):Se(a)===Se(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=Ste(e,t,n),e.Kj()&&!(e.Wi()&&a!=null?ki(a,n):Se(a)===Se(n))&&(r=null,a!=null&&(r=e.Mj(a,null)),r=e.Lj(n,r),r&&r.mj()),a)}function ZYt(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 pxe(e),a=(r.i==null&&(r.i=owe(r,new UO)),ge(r.i)*r.f),n=a/(r.i==null&&(r.i=owe(r,new UO)),ge(r.i)),r.b>n){t.Ug();return}switch(c($(e,(We(),Ule)),351).g){case 2:o=new JO;break;case 0:o=new Rp;break;default:o=new NA}if(i=o.mg(e,r),!o.ng())switch(c($(e,IJ),352).g){case 2:i=Xtt(r,i);break;case 1:i=Ret(r,i)}WZt(e,r,i),t.Ug()}function cC(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 eZt(e,t){var n,i,r,o;if(TDt(e.d,e.e),e.c.a.$b(),ge(be($(t.j,(We(),CP))))!=0||ge(be($(t.j,CP)))!=0)for(n=s3,Se($(t.j,t1))!==Se(($1(),cp))&&_e(t.j,($e(),rp),(zt(),!0)),o=c($(t.j,xE),15).a,r=0;r<o&&(i=dZt(e,t),!(i<n&&(n=i,dXe(e),n==0)));r++);else for(n=pi,Se($(t.j,t1))!==Se(($1(),cp))&&_e(t.j,($e(),rp),(zt(),!0)),o=c($(t.j,xE),15).a,r=0;r<o&&(i=kst(e,t),!(i<n&&(n=i,dXe(e),n==0)));r++);}function tZt(e,t){var n,i,r,o,a,d,b,v;for(a=new Qe,d=0,n=0,b=0;d<t.c.length-1&&n<e.gc();){for(i=c(e.Xb(n),15).a+b;(pt(d+1,t.c.length),c(t.c[d+1],15)).a<i;)++d;for(v=0,o=i-(pt(d,t.c.length),c(t.c[d],15)).a,r=(pt(d+1,t.c.length),c(t.c[d+1],15)).a-i,o>r&&++v,Ue(a,(pt(d+v,t.c.length),c(t.c[d+v],15))),b+=(pt(d+v,t.c.length),c(t.c[d+v],15)).a-i,++n;n<e.gc()&&c(e.Xb(n),15).a+b<=(pt(d+v,t.c.length),c(t.c[d+v],15)).a;)++n;d+=1+v}return a}function nZt(e,t){var n,i,r,o,a;for(a=new Gt(Xt(vr(t).a.Jc(),new z));gn(a);)if(o=c(on(a),17),e.f.b==0?(r=o.c.i.k==(Wt(),ar)&&!!o.c.i.c&&o.c.i.c.p==e.c,gn(new Gt(Xt(vr(o.c.i).a.Jc(),new z)))?(n=c(on(new Gt(Xt(vr(o.c.i).a.Jc(),new z))),17).c.i.c,i=o.c.i.k==fc&&!!n&&n.p==e.c):i=!1):(r=o.c.i.k==(Wt(),ar)&&o.c.i.p==e.c,i=o.c.i.k==fc&&c(on(new Gt(Xt(vr(o.c.i).a.Jc(),new z))),17).c.i.p==e.c),r||i)return!0;return!1}function iZt(e,t,n,i,r){var o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe;for(A=new Qe,Y=oH(i),G=t*e.a,T=0,R=0,o=new Tr,a=new Tr,d=new Qe,oe=0,fe=0,L=0,F=0,v=0,k=0;Y.a.gc()!=0;)b=azt(Y,r,a),b&&(Y.a.Ac(b)!=null,Rt(d.c,b),o.a.yc(b,o),R=e.f[b.p],oe+=e.e[b.p]-R*e.b,T=e.c[b.p],fe+=T*e.b,k+=R*e.b,F+=e.e[b.p]),(!b||Y.a.gc()==0||oe>=G&&e.e[b.p]>R*e.b||fe>=n*G)&&(Rt(A.c,d),d=new Qe,Os(a,o),o.a.$b(),v-=k,L=p.Math.max(L,v*e.b+F),v+=fe,oe=fe,fe=0,k=0,F=0);return new Ls(L,A)}function Uie(e){var t,n,i,r,o,a,d;if(!e.d){if(d=new TB,t=uM,o=t.a.yc(e,t),o==null){for(i=new ln(wo(e));i.e!=i.i.gc();)n=c(fn(i),29),dr(d,Uie(n));t.a.Ac(e)!=null,t.a.gc()==0}for(a=d.i,r=(!e.q&&(e.q=new Le(nf,e,11,10)),new ln(e.q));r.e!=r.i.gc();++a)c(fn(r),408);dr(d,(!e.q&&(e.q=new Le(nf,e,11,10)),e.q)),bv(d),e.d=new yy((c(ae(Pe((E0(),Ut).o),9),20),d.i),d.g),e.e=c(d.g,685),e.e==null&&(e.e=gxt),ru(e).b&=-17}return e.d}function Zj(e,t,n,i){var r,o,a,d,b,v;if(v=ol(e.e.Ah(),t),b=0,r=c(e.g,123),qs(),c(t,69).vk()){for(a=0;a<e.i;++a)if(o=r[a],v.$l(o.Jk())){if(ki(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(ki(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(Se(n)===Se(zZ(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 rZt(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R,F;if(n.Uh(t)&&(k=(L=t,L?c(i,52).di(L):null),k))if(F=n.Kh(t,e.a),R=t.t,R>1||R==-1)if(T=c(F,72),A=c(k,72),T.dc())A.$b();else for(a=!!Hs(t),o=0,d=e.a?T.Jc():T.Gi();d.Ob();)v=c(d.Pb(),57),r=c(yh(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 F==null?k.Wb(null):(r=yh(e,F),r==null?e.b&&!Hs(t)&&k.Wb(F):k.Wb(r))}function sZt(e,t){var n,i,r,o,a,d,b,v;for(n=new $O,r=new Gt(Xt(vr(t).a.Jc(),new z));gn(r);)if(i=c(on(r),17),!vs(i)&&(d=i.c.i,yve(d,$U))){if(v=Hxe(e,d,$U,RU),v==-1)continue;n.b=p.Math.max(n.b,v),!n.a&&(n.a=new Qe),Ue(n.a,d)}for(a=new Gt(Xt(Fi(t).a.Jc(),new z));gn(a);)if(o=c(on(a),17),!vs(o)&&(b=o.d.i,yve(b,RU))){if(v=Hxe(e,b,RU,$U),v==-1)continue;n.d=p.Math.max(n.d,v),!n.c&&(n.c=new Qe),Ue(n.c,b)}return n}function oZt(e,t,n,i){var r,o,a,d,b,v,k;if(n.d.i!=t.i){for(r=new Sh(e),mu(r,(Wt(),Er)),_e(r,($e(),Si),n),_e(r,(We(),fr),(es(),Sc)),Rt(i.c,r),a=new xc,_o(a,r),$r(a,(Ve(),Zt)),d=new xc,_o(d,r),$r(d,sn),k=n.d,rs(n,a),o=new Kb,ic(o,n),_e(o,ho,null),ks(o,d),rs(o,k),v=new ss(n.b,0);v.b<v.d.gc();)b=(pn(v.b<v.d.gc()),c(v.d.Xb(v.c=v.b++),70)),Se($(b,xd))===Se((kh(),mx))&&(_e(b,Lk,n),iu(v),Ue(o.b,b));Hnt(r,a,d)}}function cZt(e,t,n,i){var r,o,a,d,b,v,k;if(n.c.i!=t.i)for(r=new Sh(e),mu(r,(Wt(),Er)),_e(r,($e(),Si),n),_e(r,(We(),fr),(es(),Sc)),Rt(i.c,r),a=new xc,_o(a,r),$r(a,(Ve(),Zt)),d=new xc,_o(d,r),$r(d,sn),rs(n,a),o=new Kb,ic(o,n),_e(o,ho,null),ks(o,d),rs(o,t),Hnt(r,a,d),v=new ss(n.b,0);v.b<v.d.gc();)b=(pn(v.b<v.d.gc()),c(v.d.Xb(v.c=v.b++),70)),k=c($(b,xd),281),k==(kh(),mx)&&(Oi(b,Lk)||_e(b,Lk,n),iu(v),Ue(o.b,b))}function wst(e){Xj();var t,n,i,r;if(t=ys(e),e<WC.length)return WC[t];if(e<=50)return fL((ld(),uce),t);if(e<=Gg)return F4(fL(Tk[1],t),t);if(e>1e6)throw K(new Kz("power of ten too big"));if(e<=pi)return F4(fL(Tk[1],t),t);for(i=fL(Tk[1],pi),r=i,n=nc(e-pi),t=ys(e%pi);Lc(n,pi)>0;)r=Dy(r,i),n=Ga(n,pi);for(r=Dy(r,fL(Tk[1],t)),r=F4(r,pi),n=nc(e-pi);Lc(n,pi)>0;)r=F4(r,pi),n=Ga(n,pi);return r=F4(r,t),r}function vst(e){var t,n,i,r,o,a,d,b,v,k;for(b=new J(e.a);b.a<b.c.c.length;)if(d=c(U(b),9),d.k==(Wt(),Ar)&&(r=c($(d,($e(),Zo)),64),r==(Ve(),sn)||r==Zt))for(i=new Gt(Xt(sd(d).a.Jc(),new z));gn(i);)n=c(on(i),17),t=n.a,t.b!=0&&(v=n.c,v.i==d&&(o=(pn(t.b!=0),c(t.a.a.c,8)),o.b=Lo(ee(Z(Vr,1),Ge,8,0,[v.i.n,v.n,v.a])).b),k=n.d,k.i==d&&(a=(pn(t.b!=0),c(t.c.b.c,8)),a.b=Lo(ee(Z(Vr,1),Ge,8,0,[k.i.n,k.n,k.a])).b))}function lC(e,t,n,i){var r,o,a;if(this.j=new Qe,this.k=new Qe,this.b=new Qe,this.c=new Qe,this.e=new k4,this.i=new nu,this.f=new dY,this.d=new Qe,this.g=new Qe,Ue(this.b,e),Ue(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,(We(),ho)),79),r)for(a=Ln(r,0);a.b!=a.d.c;)o=c(_n(a),8),Lbe(o.a,e.a)&&ni(this.i,o);n&&Ue(this.j,n),Ue(this.k,i)}function lZt(e,t,n,i){var r,o,a,d,b,v,k;for(d=-1,k=new J(e);k.a<k.c.c.length;)v=c(U(k),117),v.g=d--,r=Qn(eH($q(bi(new Tt(null,new Ct(v.f,16)),new BA),new zA)).d),o=Qn(eH($q(bi(new Tt(null,new Ct(v.k,16)),new e6),new t6)).d),a=r,b=o,i||(a=Qn(eH($q(new Tt(null,new Ct(v.f,16)),new h$)).d),b=Qn(eH($q(new Tt(null,new Ct(v.k,16)),new T2)).d)),v.d=a,v.a=r,v.i=b,v.b=o,b==0?sr(n,v,n.c.b,n.c):a==0&&sr(t,v,t.c.b,t.c)}function fk(e,t){var n,i,r,o,a,d;if(e.k==(Wt(),fc)&&(n=e.k==fc&&!R6(bi(c($(e,($e(),cE)),16).Mc(),new E6(new Qx))).zd((Jp(),Ck))?(Gu(),nI):t,_e(e,($e(),Ik),n),n!=(Gu(),hp)))for(i=c($(e,Si),17),d=ge(be($(i,(We(),Xg)))),a=0,n==n1?a=e.o.b-p.Math.ceil(d/2):n==nI&&(a=p.Math.ceil(e.o.b-ge(be($(Jr(e),C3)))-d)/2,e.o.b-=ge(be($(Jr(e),C3))),e.o.b-=d),o=new J(e.j);o.a<o.c.c.length;)r=c(U(o),12),r.n.b=a}function xst(e,t,n){var i,r,o,a,d,b,v,k,T;for(r=!0,a=new J(e.b);a.a<a.c.c.length;){for(o=c(U(a),26),v=Gr,k=null,b=new J(o.a);b.a<b.c.c.length;)if(d=c(U(b),9),T=ge(t.p[d.p])+ge(t.d[d.p])-d.d.d,i=ge(t.p[d.p])+ge(t.d[d.p])+d.o.b+d.d.a,T>v&&i>v)k=d,v=ge(t.p[d.p])+ge(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 "+k);break}if(!r)break}return n.$g()&&n.ah(t+" is feasible: "+r),r}function yst(e,t){var n,i;i=c(Ae(t,(Pn(),K1)),125),n=new xu(0,t.j+t.f+i.a+e.b/2,new xu(t.g/2,t.j+t.f+i.a+e.b/2,null)),ri(t,(Gd(),Gm),new xu(-i.b-e.b/2+t.g/2,t.j-i.d-e.b/2,new xu(-t.g/2,t.j-i.d,n))),n=new xu(0,t.j+t.f+i.a,new xu(-t.g/2,t.j+t.f+i.a+e.b/2,null)),ri(t,ux,new xu(t.g/2+i.c+e.b/2,t.j-i.d,new xu(t.g/2,t.j-i.d-e.b/2,n))),ri(t,a9,t.i-i.b),ri(t,u9,t.i+i.c+t.g),ri(t,s2t,t.j-i.d),ri(t,aae,t.j+i.a+t.f),ri(t,kd,c(Ae(t,Gm),107).b.b.a)}function wye(e,t,n,i){var r,o,a,d,b,v,k,T,A;if(o=new Sh(e),mu(o,(Wt(),$c)),_e(o,(We(),fr),(es(),Sc)),r=0,t){for(a=new xc,_e(a,($e(),Si),t),_e(o,Si,t.i),$r(a,(Ve(),Zt)),_o(a,o),A=rd(t.e),v=A,k=0,T=v.length;k<T;++k)b=v[k],rs(b,a);_e(t,Wl,o),++r}if(n){for(d=new xc,_e(o,($e(),Si),n.i),_e(d,Si,n),$r(d,(Ve(),sn)),_o(d,o),A=rd(n.g),v=A,k=0,T=v.length;k<T;++k)b=v[k],ks(b,d);_e(n,Wl,o),++r}return _e(o,($e(),mJ),ze(r)),Rt(i.c,o),o}function uZt(e){var t,n,i,r,o,a,d,b,v,k,T,A,L;for(n=(v=new x1(e.c.b).a.vc().Jc(),new $2(v));n.a.Ob();)t=(d=c(n.a.Pb(),45),c(d.kd(),144)),r=t.a,r==null&&(r=""),i=xCt(e.c,r),!i&&r.length==0&&(i=GBt(e)),i&&!vv(i.c,t,!1)&&ni(i.c,t);for(a=Ln(e.a,0);a.b!=a.d.c;)o=c(_n(a),478),k=lte(e.c,o.a),L=lte(e.c,o.b),k&&L&&ni(k.c,new Ls(L,o.c));for(ku(e.a),A=Ln(e.b,0);A.b!=A.d.c;)T=c(_n(A),478),t=vCt(e.c,T.a),b=lte(e.c,T.b),t&&b&&iTt(t,b,T.c);ku(e.b)}function aZt(e,t,n){var i,r,o,a,d,b,v,k,T;for(a=new vet,v=ee(Z(Hn,1),li,30,15,[0]),r=-1,o=0,i=0,b=0;b<e.b.c.length;++b)if(k=c(Xe(e.b,b),439),k.b>0){if(r<0&&k.a&&(r=b,o=v[0],i=0),r>=0){if(d=k.b,b==r&&(d-=i++,d==0))return 0;if(!Sot(t,v,k,d,a)){b=r-1,v[0]=o;continue}}else if(r=-1,!Sot(t,v,k,0,a))return 0}else{if(r=-1,bs(k.c,0)==32){if(T=v[0],QWe(t,v),v[0]>T)continue}else if(A_t(t,k.c,v[0])){v[0]+=k.c.length;continue}return 0}return enn(a,n)?v[0]:0}function fZt(e,t,n){var i,r,o,a,d,b,v,k,T,A;for(k=new Mq(new v_e(n)),d=Ce(Sl,eh,30,e.f.e.c.length,16,1),Qpe(d,d.length),n[t.a]=0,v=new J(e.f.e);v.a<v.c.c.length;)b=c(U(v),156),b.a!=t.a&&(n[b.a]=pi),A4(Hj(k,b),uS);for(;k.b.c.length!=0;)for(T=c(Ete(k),156),d[T.a]=!0,o=Mze(new IY(e.b,T),0);o.c;)r=c(Nbe(o),292),A=Rqt(r,T),!d[A.a]&&(Oi(r,(tL(),IU))?a=ge(be($(r,IU))):a=e.c,i=n[T.a]+a,i<n[A.a]&&(n[A.a]=i,lXe(k,A),A4(Hj(k,A),uS)))}function vye(e){var t,n,i,r,o,a,d,b;n=it(nt($(e,(Tf(),gdt)))),o=e.a.c.d,d=e.a.d.d,n?(a=O1(Hr(new He(d.a,d.b),o),.5),b=O1(Ms(e.e),.5),t=Hr(ji(new He(o.a,o.b),a),b),j0e(e.d,t)):(r=ge(be($(e.a,Odt))),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 uC(e){var t,n,i,r,o,a,d,b;if(!e.f){if(b=new zp,d=new zp,t=uM,a=t.a.yc(e,t),a==null){for(o=new ln(wo(e));o.e!=o.i.gc();)r=c(fn(o),29),dr(b,uC(r));t.a.Ac(e)!=null,t.a.gc()==0}for(i=(!e.s&&(e.s=new Le(jl,e,21,17)),new ln(e.s));i.e!=i.i.gc();)n=c(fn(i),182),he(n,104)&&Dn(d,c(n,20));bv(d),e.r=new vqe(e,(c(ae(Pe((E0(),Ut).o),6),20),d.i),d.g),dr(b,e.r),bv(b),e.f=new yy((c(ae(Pe(Ut.o),5),20),b.i),b.g),ru(e).b&=-3}return e.f}function sQ(){sQ=W,sCe=ee(Z(Da,1),fd,30,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),Gvt=new RegExp(`[ 	
\r\f]+`);try{oM=ee(Z(Kin,1),It,2093,0,[new f_((Xge(),fG("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",W_((Wz(),Wz(),QC))))),new f_(fG("yyyy-MM-dd'T'HH:mm:ss'.'SSS",W_(QC))),new f_(fG("yyyy-MM-dd'T'HH:mm:ss",W_(QC))),new f_(fG("yyyy-MM-dd'T'HH:mm",W_(QC))),new f_(fG("yyyy-MM-dd",W_(QC)))])}catch(e){if(e=kr(e),!he(e,81))throw K(e)}}function hZt(e){var t,n,i,r,o,a,d;for(n=null,d=null,i=c($(e.b,(We(),Ple)),349),i==(N7(),PP)&&(n=new Qe,d=new Qe),a=new J(e.d);a.a<a.c.c.length;)if(o=c(U(a),108),r=o.i,!!r)switch(o.e.g){case 0:t=c(m7(new m4(o.b)),64),i==PP&&t==(Ve(),Yt)?Rt(n.c,o):i==PP&&t==(Ve(),wn)?Rt(d.c,o):$Jt(o,t);break;case 1:lVt(o);break;case 2:case 3:SKt(o);break;case 4:wUt(o)}n&&(n.c.length==0||dst(n,(Ve(),Yt)),d.c.length==0||dst(d,(Ve(),wn)))}function dZt(e,t){var n,i,r,o;if(r=lu(e.d,1)!=0,i=sye(e,t),i==0&&it(nt($(t.j,($e(),rp)))))return 0;!it(nt($(t.j,($e(),rp))))&&!it(nt($(t.j,k3)))||Se($(t.j,(We(),t1)))===Se(($1(),cp))?t.c.kg(t.e,r):r=it(nt($(t.j,rp))),mL(e,t,r,!0),it(nt($(t.j,k3)))&&_e(t.j,k3,(zt(),!1)),it(nt($(t.j,rp)))&&(_e(t.j,rp,(zt(),!1)),_e(t.j,k3,!0)),n=sye(e,t);do{if(rwe(e),n==0)return 0;r=!r,o=n,mL(e,t,r,!1),n=sye(e,t)}while(o>n);return o}function kst(e,t){var n,i,r,o;if(r=lu(e.d,1)!=0,i=zG(e,t),i==0&&it(nt($(t.j,($e(),rp)))))return 0;!it(nt($(t.j,($e(),rp))))&&!it(nt($(t.j,k3)))||Se($(t.j,(We(),t1)))===Se(($1(),cp))?t.c.kg(t.e,r):r=it(nt($(t.j,rp))),mL(e,t,r,!0),it(nt($(t.j,k3)))&&_e(t.j,k3,(zt(),!1)),it(nt($(t.j,rp)))&&(_e(t.j,rp,(zt(),!1)),_e(t.j,k3,!0)),n=zG(e,t);do{if(rwe(e),n==0)return 0;r=!r,o=n,mL(e,t,r,!1),n=zG(e,t)}while(o>n);return o}function gZt(e,t,n){var i,r,o,a,d;if(i=c($(e,(We(),_le)),24),n.a>t.a&&(i.Gc((xm(),GE))?e.c.a+=(n.a-t.a)/2:i.Gc(QE)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(i.Gc((xm(),JE))?e.c.b+=(n.b-t.b)/2:i.Gc(UE)&&(e.c.b+=n.b-t.b)),c($(e,($e(),Bc)),24).Gc((Qs(),Ma))&&(n.a>t.a||n.b>t.b))for(d=new J(e.a);d.a<d.c.c.length;)a=c(U(d),9),a.k==(Wt(),Ar)&&(r=c($(a,Zo),64),r==(Ve(),sn)?a.n.a+=n.a-t.a:r==wn&&(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 pZt(e,t,n){var i,r,o,a,d;if(i=c($(e,(We(),_le)),24),n.a>t.a&&(i.Gc((xm(),GE))?e.c.a+=(n.a-t.a)/2:i.Gc(QE)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(i.Gc((xm(),JE))?e.c.b+=(n.b-t.b)/2:i.Gc(UE)&&(e.c.b+=n.b-t.b)),c($(e,($e(),Bc)),24).Gc((Qs(),Ma))&&(n.a>t.a||n.b>t.b))for(a=new J(e.a);a.a<a.c.c.length;)o=c(U(a),9),o.k==(Wt(),Ar)&&(r=c($(o,Zo),64),r==(Ve(),sn)?o.n.a+=n.a-t.a:r==wn&&(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 mZt(e){var t,n,i,r,o,a,d,b,v,k,T,A;for(t=Ent(e),k=(d=new hn(t).a.vc().Jc(),new xr(d));k.a.Ob();){for(v=(r=c(k.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=xFt(n,o),b=0,e.c==(td(),Yg)?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=ge(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]=ge(e.d[n.p])+T,n=e.a[n.p];while(n!=v);e.b[v.p]=T+A}}function xye(e,t,n,i){var r,o,a,d,b,v,k,T,A;return b=Hr(new He(n.a,n.b),e),v=b.a*t.b-b.b*t.a,k=t.a*i.b-t.b*i.a,T=(b.a*i.b-b.b*i.a)/k,A=v/k,k==0?v==0?(r=ji(new He(n.a,n.b),O1(new He(i.a,i.b),.5)),o=D0(e,r),a=D0(ji(new He(e.a,e.b),t),r),d=p.Math.sqrt(i.a*i.a+i.b*i.b)*.5,o<a&&o<=d?new He(e.a,e.b):a<=d?ji(new He(e.a,e.b),t):null):null:T>=0&&T<=1&&A>=0&&A<=1?ji(new He(e.a,e.b),O1(new He(t.a,t.b),T)):null}function aC(e,t,n){var i,r,o,a,d,b,v,k,T,A;for(o=0,a=e.t,r=0,i=0,b=0,A=0,T=0,n&&(e.n.c.length=0,Ue(e.n,new Vq(e.s,e.t,e.i))),d=0,k=new J(e.b);k.a<k.c.c.length;)v=c(U(k),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,Ue(e.n,new Vq(e.s,a,e.i))),d=0),A+=v.g+(d>0?e.i:0),b=p.Math.max(b,v.f),n&&z2e(c(Xe(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,H2e(e.j)),new bf(e.s,e.t,r,i)}function oQ(e){var t,n,i;return n=Se(Ae(e,(We(),Fk)))===Se((hL(),ile))||Se(Ae(e,Fk))===Se(Yce)||Se(Ae(e,Fk))===Se(Zce)||Se(Ae(e,Fk))===Se(tle)||Se(Ae(e,Fk))===Se(rle)||Se(Ae(e,Fk))===Se(vP),i=Se(Ae(e,MJ))===Se((gL(),Wle))||Se(Ae(e,MJ))===Se(Xle)||Se(Ae(e,MP))===Se((U0(),r9))||Se(Ae(e,MP))===Se((U0(),OE)),t=Se(Ae(e,t1))!==Se(($1(),cp))||it(nt(Ae(e,YS)))||Se(Ae(e,hE))!==Se((Z4(),YC))||ge(be(Ae(e,CP)))!=0||ge(be(Ae(e,Mle)))!=0,n||i||t}function Ky(e){var t,n,i,r,o,a,d,b;if(!e.a){if(e.o=null,b=new iPe(e),t=new SB,n=uM,d=n.a.yc(e,n),d==null){for(a=new ln(wo(e));a.e!=a.i.gc();)o=c(fn(a),29),dr(b,Ky(o));n.a.Ac(e)!=null,n.a.gc()==0}for(r=(!e.s&&(e.s=new Le(jl,e,21,17)),new ln(e.s));r.e!=r.i.gc();)i=c(fn(r),182),he(i,336)&&Dn(t,c(i,38));bv(t),e.k=new wqe(e,(c(ae(Pe((E0(),Ut).o),7),20),t.i),t.g),dr(b,e.k),bv(b),e.a=new yy((c(ae(Pe(Ut.o),4),20),b.i),b.g),ru(e).b&=-2}return e.a}function bZt(e){var t,n,i,r,o,a,d,b,v,k,T,A;if(d=e.d,T=c($(e,($e(),Bk)),16),t=c($(e,_k),16),!(!T&&!t)){if(o=ge(be(xv(e,(We(),qle)))),a=ge(be(xv(e,ASe))),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&&(k=(b-e.o.a)/2,d.b=p.Math.max(d.b,k),d.c=p.Math.max(d.c,k))}}function yye(e,t,n,i){var r,o,a,d,b,v,k;if(k=ol(e.e.Ah(),t),r=0,o=c(e.g,123),b=null,qs(),c(t,69).vk()){for(d=0;d<e.i;++d)if(a=o[d],k.$l(a.Jk())){if(ki(a,n)){b=a;break}++r}}else if(n!=null){for(d=0;d<e.i;++d)if(a=o[d],k.$l(a.Jk())){if(ki(n,a.kd())){b=a;break}++r}}else for(d=0;d<e.i;++d)if(a=o[d],k.$l(a.Jk())){if(a.kd()==null){b=a;break}++r}return b&&(bu(e.e)&&(v=t.Hk()?new ste(e.e,4,t,n,null,r,!0):A0(e,t.rk()?2:1,t,n,t.gk(),-1,!0),i?i.lj(v):i=v),i=wL(e,b,i)),i}function Jie(e,t,n,i,r,o,a){var d,b,v,k,T,A,L,R,F;switch(R=0,F=0,b=r.c,d=r.b,k=n.f,L=n.g,t.g){case 0:R=i.i+i.g+a,e.c?F=WGt(R,o,i,a):F=i.j,A=p.Math.max(b,R+L),v=p.Math.max(d,F+k);break;case 1:F=i.j+i.f+a,e.c?R=JGt(F,o,i,a):R=i.i,A=p.Math.max(b,R+L),v=p.Math.max(d,F+k);break;case 2:R=b+a,F=0,A=b+a+L,v=p.Math.max(d,k);break;case 3:R=0,F=d+a,A=p.Math.max(b,L),v=d+a+k;break;default:throw K(new Ht("IllegalPlacementOption."))}return T=new T2e(e.a,A,v,t,R,F),T}function wZt(e){var t,n,i,r,o,a,d,b;for(o=new $Qe,$Tt(o,(V4(),k2t)),i=(r=Bte(e,Ce(st,Ge,2,0,6,1)),new uT(new Qo(new RY(e,r).b)));i.b<i.d.gc();)n=(pn(i.b<i.d.gc()),qn(i.d.Xb(i.c=i.b++))),a=Eye(bp,n),a&&(t=C1(e,n),t.re()?d=t.re().a:t.oe()?d=""+t.oe().a:t.pe()?d=""+t.pe().a:d=t.Ib(),b=Tye(a,d),b!=null&&((Al(a.j,(jh(),pr))||Al(a.j,Dt))&&zD(Mte(o,Nn),a,b),Al(a.j,ch)&&zD(Mte(o,$i),a,b),Al(a.j,e0)&&zD(Mte(o,hu),a,b),Al(a.j,X1)&&zD(Mte(o,Bo),a,b)));return o}function yL(e,t,n){var i,r,o,a,d,b,v,k;if(r=c(e.g,123),z1(e.e,t))return qs(),c(t,69).vk()?new mq(t,e):new R_(t,e);for(v=ol(e.e.Ah(),t),i=0,d=0;d<e.i;++d){if(o=r[d],a=o.Jk(),v.$l(a)){if(qs(),c(t,69).vk())return o;if(a==(ck(),tO)||a==eO){for(b=new Iu(So(o.kd()));++d<e.i;)o=r[d],a=o.Jk(),(a==tO||a==eO)&&ti(b,So(o.kd()));return K0e(c(t.Fk(),160),b.a)}else return k=o.kd(),k!=null&&n&&he(t,104)&&(c(t,20).Bb&Ps)!=0&&(k=Y7(e,t,d,i,k)),k}++i}return t.gk()}function vZt(e){var t,n,i,r,o,a,d,b;for(r=new J(e.b);r.a<r.c.c.length;)for(i=c(U(r),26),a=new J(sm(i.a));a.a<a.c.c.length;)if(o=c(U(a),9),lVe(o)&&(n=c($(o,($e(),Rw)),318),!n.g&&n.d))for(t=n,b=n.d;b;)rrt(b.i,b.k,!1,!0),kD(t.a),kD(b.i),kD(b.k),kD(b.b),rs(b.c,t.c.d),rs(t.c,null),zr(t.a,null),zr(b.i,null),zr(b.k,null),zr(b.b,null),d=new Ume(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,_e(t.i,Rw,d),_e(b.a,Rw,d),b=b.d,t=d}function cQ(e,t,n,i){var r,o,a,d,b,v;if(b=ol(e.e.Ah(),t),o=c(e.g,123),z1(e.e,t)){for(r=0,d=0;d<e.i;++d)if(a=o[d],b.$l(a.Jk())){if(r==n)return qs(),c(t,69).vk()?a:(v=a.kd(),v!=null&&i&&he(t,104)&&(c(t,20).Bb&Ps)!=0&&(v=Y7(e,t,d,r,v)),v);++r}throw K(new Qc(IC+n+Am+r))}else{for(r=0,d=0;d<e.i;++d){if(a=o[d],b.$l(a.Jk()))return qs(),c(t,69).vk()?a:(v=a.kd(),v!=null&&i&&he(t,104)&&(c(t,20).Bb&Ps)!=0&&(v=Y7(e,t,d,r,v)),v);++r}return t.gk()}}function Wie(){Wie=W,sht=ee(Z(Hn,1),li,30,15,[cs,1162261467,pC,1220703125,362797056,1977326743,pC,387420489,bQ,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128e7,1801088541,113379904,148035889,191102976,244140625,308915776,387420489,481890304,594823321,729e6,887503681,pC,1291467969,1544804416,1838265625,60466176]),oht=ee(Z(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 Vie(e,t){var n,i,r,o,a,d,b,v,k,T;if(a=e.e,b=t.e,b==0)return e;if(a==0)return t.e==0?t:new em(-t.e,t.d,t.a);if(o=e.d,d=t.d,o+d==2)return n=Zr(e.a[0],Us),i=Zr(t.a[0],Us),a<0&&(n=Dg(n)),b<0&&(i=Dg(i)),ld(),FF(Ga(n,i),0)?F0(Ga(n,i)):s7(F0(Dg(Ga(n,i))));if(r=o!=d?o>d?1:-1:Lwe(e.a,t.a,o),r==-1)T=-b,k=a==b?hte(t.a,d,e.a,o):gte(t.a,d,e.a,o);else if(T=a,a==b){if(r==0)return ld(),JC;k=hte(e.a,o,t.a,d)}else k=gte(e.a,o,t.a,d);return v=new em(T,k.length,k),d7(v),v}function xZt(e,t){var n,i,r,o;if(o=ost(t),!t.c&&(t.c=new Le(hu,t,9,9)),hr(new Tt(null,(!t.c&&(t.c=new Le(hu,t,9,9)),new Ct(t.c,16))),new O_e(o)),r=c($(o,($e(),Bc)),24),btn(t,r),r.Gc((Qs(),Ma)))for(i=new ln((!t.c&&(t.c=new Le(hu,t,9,9)),t.c));i.e!=i.i.gc();)n=c(fn(i),127),qtn(e,t,o,n);return c(Ae(t,(We(),Bm)),185).gc()!=0&&Uit(t,o),it(nt($(o,SSe)))&&r.Ec(gJ),Oi(o,AP)&&mIe(new u2e(ge(be($(o,AP)))),o),Se(Ae(t,Kv))===Se((I1(),t0))?ain(e,t,o):Wtn(e,t,o),o}function Ic(e,t){var n,i,r,o,a,d,b;if(e==null)return null;if(o=e.length,o==0)return"";for(b=Ce(Da,fd,30,o,15,1),as(0,o,e.length),as(0,o,b.length),MHe(e,0,o,b,0),n=null,d=t,r=0,a=0;r<o;r++)i=b[r],Yot(),i<=32&&(ie[i]&2)!=0?d?(!n&&(n=new za(e)),Q7t(n,r-a++)):(d=t,i!=32&&(!n&&(n=new za(e)),Ute(n,r-a,r-a+1," "))):d=!1;return d?n?(o=n.a.length,o>0?qa(n.a,0,o-1):""):(as(0,o-1,e.length),e.substr(0,o-1)):n?n.a:e}function yZt(e,t,n){var i,r,o;if(Oi(t,(We(),Ro))&&(Se($(t,Ro))===Se((Su(),W1))||Se($(t,Ro))===Se(Rm))||Oi(n,Ro)&&(Se($(n,Ro))===Se((Su(),W1))||Se($(n,Ro))===Se(Rm)))return 0;if(i=Jr(t),r=cKt(e,t,n),r!=0)return r;if(Oi(t,($e(),Ri))&&Oi(n,Ri)){if(o=pc(mw(t,n,i,c($(i,sp),15).a),mw(n,t,i,c($(i,sp),15).a)),Se($(i,dE))===Se((I0(),yP))&&Se($(t,gE))!==Se($(n,gE))&&(o=0),o<0)return bL(e,t,n),o;if(o>0)return bL(e,n,t),o}return NJt(e,t,n)}function Ost(e,t){var n,i,r,o,a,d,b,v,k,T,A;for(i=new Gt(Xt(B1(t).a.Jc(),new z));gn(i);)n=c(on(i),74),he(ae((!n.b&&(n.b=new Et(yn,n,4,7)),n.b),0),196)||(b=no(c(ae((!n.c&&(n.c=new Et(yn,n,5,8)),n.c),0),83)),Z7(n)||(a=t.i+t.g/2,d=t.j+t.f/2,k=b.i+b.g/2,T=b.j+b.f/2,A=new us,A.a=k-a,A.b=T-d,o=new He(A.a,A.b),Fj(o,t.g,t.f),A.a-=o.a,A.b-=o.b,a=k-A.a,d=T-A.b,v=new He(A.a,A.b),Fj(v,b.g,b.f),A.a-=v.a,A.b-=v.b,k=a+A.a,T=d+A.b,r=nC(n),rw(r,a),sw(r,d),nw(r,k),iw(r,T),Ost(e,b)))}function _v(e,t){var n,i,r,o,a;if(a=c(t,140),Wy(e),Wy(a),a.b!=null){if(e.c=!0,e.b==null){e.b=Ce(Hn,li,30,a.b.length,15,1),yc(a.b,0,e.b,0,a.b.length);return}for(o=Ce(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 kZt(e,t){var n,i,r,o,a,d,b,v,k,T;return n=it(nt($(e,($e(),Vv)))),d=it(nt($(t,Vv))),i=c($(e,sh),12),b=c($(t,sh),12),r=c($(e,Ka),12),v=c($(t,Ka),12),k=!!i&&i==b,T=!!r&&r==v,!n&&!d?new lpe(c(U(new J(e.j)),12).p==c(U(new J(t.j)),12).p,k,T):(o=(!it(nt($(e,Vv)))||it(nt($(e,SP))))&&(!it(nt($(t,Vv)))||it(nt($(t,SP)))),a=(!it(nt($(e,Vv)))||!it(nt($(e,SP))))&&(!it(nt($(t,Vv)))||!it(nt($(t,SP)))),new lpe(k&&o||T&&a,k,T))}function jst(e){var t,n,i,r,o,a,d,b;for(i=0,n=0,b=new _i,t=0,d=new J(e.n);d.a<d.c.c.length;)a=c(U(d),211),a.c.c.length==0?sr(b,a,b.c.b,b.c):(i=p.Math.max(i,a.d),n+=a.a+(t>0?e.i:0)),++t;for(t2e(e.n,b),e.d=n,e.r=i,e.g=0,e.f=0,e.e=0,e.o=or,e.p=or,o=new J(e.b);o.a<o.c.c.length;)r=c(U(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),H2e(e.j)}function Sst(e){var t,n,i,r;return(e.Db&64)!=0?xne(e):(t=new Iu(X4e),i=e.k,i?ti(ti((t.a+=' "',t),i),'"'):(!e.n&&(e.n=new Le(Bo,e,1,7)),e.n.i>0&&(r=(!e.n&&(e.n=new Le(Bo,e,1,7)),c(ae(e.n,0),158)).a,!r||ti(ti((t.a+=' "',t),r),'"'))),n=(!e.b&&(e.b=new Et(yn,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new Et(yn,e,5,8)),e.c.i<=1))),n?t.a+=" [":t.a+=" ",ti(t,f0e(new NY,new ln(e.b))),n&&(t.a+="]"),t.a+=ese,n&&(t.a+="["),ti(t,f0e(new NY,new ln(e.c))),n&&(t.a+="]"),t.a)}function OZt(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt;for(Ne=e.c,Me=t.c,n=Do(Ne.a,e,0),i=Do(Me.a,t,0),fe=c(aw(e,(Gs(),Vl)).Jc().Pb(),12),vt=c(aw(e,tl).Jc().Pb(),12),we=c(aw(t,Vl).Jc().Pb(),12),Pt=c(aw(t,tl).Jc().Pb(),12),Y=rd(fe.e),Ze=rd(vt.g),oe=rd(we.e),wt=rd(Pt.g),q0(e,i,Me),a=oe,k=0,R=a.length;k<R;++k)r=a[k],rs(r,fe);for(d=wt,T=0,F=d.length;T<F;++T)r=d[T],ks(r,vt);for(q0(t,n,Ne),b=Y,A=0,G=b.length;A<G;++A)r=b[A],rs(r,we);for(o=Ze,v=0,L=o.length;v<L;++v)r=o[v],ks(r,Pt)}function jZt(e){var t,n,i,r,o,a,d;for(a=c(Ae(e,(My(),_3)),19),i=new ln((!a.e&&(a.e=new Et($i,a,7,4)),a.e));i.e!=i.i.gc();)n=c(fn(i),74),d=new He(c(ae((!n.a&&(n.a=new Le(Qi,n,6,6)),n.a),0),171).j,c(ae((!n.a&&(n.a=new Le(Qi,n,6,6)),n.a),0),171).k),o=new He(c(ae((!n.a&&(n.a=new Le(Qi,n,6,6)),n.a),0),171).b,c(ae((!n.a&&(n.a=new Le(Qi,n,6,6)),n.a),0),171).c),r=new He(o.a-d.a,o.b-d.b),t=p.Math.atan2(r.b,r.a),c(ae((!n.c&&(n.c=new Et(yn,n,5,8)),n.c),0),83).of((G0(),Rue),t)}function SZt(e,t){var n,i,r,o,a,d,b,v,k;for(t.Tg("Interactive Node Reorderer",1),k=(!e.a&&(e.a=new Le(Nn,e,10,11)),e.a),d=new Qe,r=new ln(k);r.e!=r.i.gc();)n=c(fn(r),19),ma(n,(Eh(),HP))&&Rt(d.c,n);for(o=new J(d);o.a<o.c.c.length;)n=c(U(o),19),kH(k,n);for(Mt(),Rr(d,new eN),a=new J(d);a.a<a.c.c.length;)n=c(U(a),19),v=c(Ae(n,(Eh(),HP)),15).a,v=p.Math.min(v,k.i),I7(k,v,n);for(b=0,i=new ln(k);i.e!=i.i.gc();)n=c(fn(i),19),ri(n,(Eh(),A8e),ze(b)),++b;t.Ug()}function TZt(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F;for(d=Ce(Hn,li,30,t.b.c.length,15,1),v=Ce(Lce,Re,252,t.b.c.length,0,1),b=Ce(e1,Qg,9,t.b.c.length,0,1),T=e.a,A=0,L=T.length;A<L;++A){for(k=T[A],F=0,a=new J(k.e);a.a<a.c.c.length;)r=c(U(a),9),i=Uge(r.c),++d[i],R=ge(be($(t,(We(),Nf)))),d[i]>0&&b[i]&&(R=Sy(e.b,b[i],r)),F=p.Math.max(F,r.c.c.b+R);for(o=new J(k.e);o.a<o.c.c.length;)r=c(U(o),9),r.n.b=F+r.d.d,n=r.c,n.c.b=F+r.d.d+r.o.b+r.d.a,v[Do(n.b.b,n,0)]=r.k,b[Do(n.b.b,n,0)]=r}}function kye(e,t,n){var i,r,o,a,d,b,v,k;return p.Math.abs(t.s-t.c)<dd||p.Math.abs(n.s-n.c)<dd?0:(i=Mit(e,t.j,n.e),r=Mit(e,n.j,t.e),o=i==-1||r==-1,a=0,o?(i==-1&&(new rm((Xf(),lp),n,t,1),++a),r==-1&&(new rm((Xf(),lp),t,n,1),++a)):(d=Fy(t.j,n.s,n.c),d+=Fy(n.e,t.s,t.c),b=Fy(n.j,t.s,t.c),b+=Fy(t.e,n.s,n.c),v=i+16*d,k=r+16*b,v<k?new rm((Xf(),cx),t,n,k-v):v>k?new rm((Xf(),cx),n,t,v-k):v>0&&k>0&&(new rm((Xf(),cx),t,n,0),new rm(cx,n,t,0))),a)}function CZt(e,t,n){var i,r,o;for(e.a=new Qe,o=Ln(t.b,0);o.b!=o.d.c;){for(r=c(_n(o),41);c($(r,(Wo(),yd)),15).a>e.a.c.length-1;)Ue(e.a,new Ls(s3,J5e));i=c($(r,yd),15).a,n==(_r(),go)||n==vo?(r.e.a<ge(be(c(Xe(e.a,i),49).a))&&r4(c(Xe(e.a,i),49),r.e.a),r.e.a+r.f.a>ge(be(c(Xe(e.a,i),49).b))&&a_(c(Xe(e.a,i),49),r.e.a+r.f.a)):(r.e.b<ge(be(c(Xe(e.a,i),49).a))&&r4(c(Xe(e.a,i),49),r.e.b),r.e.b+r.f.b>ge(be(c(Xe(e.a,i),49).b))&&a_(c(Xe(e.a,i),49),r.e.b+r.f.b))}}function Tst(e,t,n,i){var r,o,a,d,b,v,k;if(o=rG(i),d=it(nt($(i,(We(),vSe)))),(d||it(nt($(e,EJ))))&&!Oy(c($(e,fr),103)))r=K4(o),b=cye(e,n,n==(Gs(),tl)?r:JD(r));else switch(b=new xc,_o(b,e),t?(k=b.n,k.a=t.a-e.n.a,k.b=t.b-e.n.b,ktt(k,0,0,e.o.a,e.o.b),$r(b,Qrt(b,o))):(r=K4(o),$r(b,n==(Gs(),tl)?r:JD(r))),a=c($(i,($e(),Bc)),24),v=b.j,o.g){case 2:case 1:(v==(Ve(),Yt)||v==wn)&&a.Ec((Qs(),v3));break;case 4:case 3:(v==(Ve(),sn)||v==Zt)&&a.Ec((Qs(),v3))}return b}function Cst(e,t){var n,i,r,o,a,d;for(a=new pv(new Hp(e.f.b).a);a.b;){if(o=Ry(a),r=c(o.jd(),598),t==1){if(r.yf()!=(_r(),Aa)&&r.yf()!=Bh)continue}else if(r.yf()!=(_r(),go)&&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 EZt(e,t){var n,i,r,o,a,d,b,v,k,T;for(t.Tg("Simple node placement",1),T=c($(e,($e(),O3)),317),d=0,o=new J(e.b);o.a<o.c.c.length;){for(i=c(U(o),26),a=i.c,a.b=0,n=null,v=new J(i.a);v.a<v.c.c.length;)b=c(U(v),9),n&&(a.b+=k2e(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 J(e.b);r.a<r.c.c.length;)for(i=c(U(r),26),a=i.c,k=(d-a.b)/2,n=null,v=new J(i.a);v.a<v.c.c.length;)b=c(U(v),9),n&&(k+=k2e(b,n,T.c)),k+=b.d.d,b.n.b=k,k+=b.o.b+b.d.a,n=b;t.Ug()}function Est(e){Bb(e,new ym(Ib(Db(Pb(Lb(new p1,Tw),"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 rN))),Fe(e,Tw,ooe,Ke(hW)),Fe(e,Tw,M4e,Ke(lae)),Fe(e,Tw,A4e,Ke(cae)),Fe(e,Tw,coe,Ke(sTe)),Fe(e,Tw,loe,Ke(oae)),Fe(e,Tw,Ow,rTe),Fe(e,Tw,kw,8),Fe(e,Tw,uoe,Ke(Gwt)),Fe(e,Tw,N4e,Ke(nTe)),Fe(e,Tw,_4e,Ke(iTe)),Fe(e,Tw,YL,(zt(),!1))}function MZt(e,t){var n,i,r,o;for(gRt(t.b.j),hr(Jc(new Tt(null,new Ct(t.d,16)),new x2),new n$),o=new J(t.d);o.a<o.c.c.length;){switch(r=c(U(o),108),r.e.g){case 0:n=c(Xe(r.j,0),114).d.j,n4(r,c(wu(_4(c(Ti(r.k,n),16).Mc(),p3)),114)),t4(r,c(wu(ev(c(Ti(r.k,n),16).Mc(),p3)),114));break;case 1:i=U2e(r),n4(r,c(wu(_4(c(Ti(r.k,i[0]),16).Mc(),p3)),114)),t4(r,c(wu(ev(c(Ti(r.k,i[1]),16).Mc(),p3)),114));break;case 2:TUt(e,r);break;case 3:DVt(r);break;case 4:$Vt(e,r)}dRt(r)}e.a=null}function Xie(e,t,n){var i,r,o,a,d,b,v,k;return i=e.a.o==(bh(),Ph)?or:Gr,d=Yrt(e,new L$e(t,n)),!d.a&&d.c?(ni(e.d,d),i):d.a?(r=d.a.c,b=d.a.d,n?(v=e.a.c==(td(),Gw)?b:r,o=e.a.c==Gw?r:b,a=e.a.g[o.i.p],k=ge(e.a.p[a.p])+ge(e.a.d[o.i.p])+o.n.b+o.a.b-ge(e.a.d[v.i.p])-v.n.b-v.a.b):(v=e.a.c==(td(),Yg)?b:r,o=e.a.c==Yg?r:b,k=ge(e.a.p[e.a.g[o.i.p].p])+ge(e.a.d[o.i.p])+o.n.b+o.a.b-ge(e.a.d[v.i.p])-v.n.b-v.a.b),e.a.n[e.a.g[r.i.p].p]=(zt(),!0),e.a.n[e.a.g[b.i.p].p]=!0,k):i}function AZt(e,t,n,i){var r,o,a,d,b,v,k,T;if(i.gc()==0)return!1;if(b=(qs(),c(t,69).vk()),a=b?i:new tw(i.gc()),z1(e.e,t)){if(t.Qi())for(k=i.Jc();k.Ob();)v=k.Pb(),rQ(e,t,v,he(t,104)&&(c(t,20).Bb&Ps)!=0)||(o=Fd(t,v),a.Ec(o));else if(!b)for(k=i.Jc();k.Ob();)v=k.Pb(),o=Fd(t,v),a.Ec(o)}else{for(T=ol(e.e.Ah(),t),r=c(e.g,123),d=0;d<e.i;++d)if(o=r[d],T.$l(o.Jk()))throw K(new Ht(oP));if(i.gc()>1)throw K(new Ht(oP));b||(o=Fd(t,i.Jc().Pb()),a.Ec(o))}return xwe(e,zve(e,t,n),a)}function lQ(e,t,n){var i,r,o,a,d,b,v,k;if(z1(e.e,t))b=(qs(),c(t,69).vk()?new mq(t,e):new R_(t,e)),qG(b.c,b.b),UT(b,c(n,18));else{for(k=ol(e.e.Ah(),t),i=c(e.g,123),a=0;a<e.i;++a)if(r=i[a],o=r.Jk(),k.$l(o)){if(o==(ck(),tO)||o==eO){for(v=R2e(e,t,n),d=a,v?Mv(e,a):++a;a<e.i;)r=i[a],o=r.Jk(),o==tO||o==eO?Mv(e,a):++a;v||c(Hy(e,d,Fd(t,n)),76)}else R2e(e,t,n)?Mv(e,a):c(Hy(e,a,(qs(),c(t,69).vk()?c(n,76):Fd(t,n))),76);return}R2e(e,t,n)||Dn(e,(qs(),c(t,69).vk()?c(n,76):Fd(t,n)))}}function Mst(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F;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(F=t[T][A].j,L=0;L<F.c.length;L++){for(v=e.Jc();v.Ob();)o=c(v.Pb(),223),o.hg(T,A,L,t);for(R=(pt(L,F.c.length),c(F.c[L],12)),n=0,r=new xh(R.b);No(r.a)||No(r.b);)for(i=c(No(r.a)?U(r.a):U(r.b),17),k=e.Jc();k.Ob();)o=c(k.Pb(),223),o.eg(T,A,L,n++,i,t)}}}for(a=e.Jc();a.Ob();)o=c(a.Pb(),223),o.dg()}function NZt(e,t,n){var i,r,o,a,d,b,v,k,T,A,L;for(n.Tg(Dlt,1),T=t.a,k=T.c.length,e.c=new Qe,e.d=Ce(Sl,eh,30,k,16,1),e.a=Ce(Sl,eh,30,k,16,1),e.b=new Qe,a=0,v=new J(T);v.a<v.c.c.length;)b=c(U(v),9),b.p=a,lv(vr(b))&&Ue(e.c,b),++a;for(L=new J(e.c);L.a<L.c.c.length;)A=c(U(L),9),Gve(e,A);for(o=0;o<k;o++)e.d[o]||(d=(pt(o,T.c.length),c(T.c[o],9)),Gve(e,d));for(r=new J(e.b);r.a<r.c.c.length;)i=c(U(r),17),qg(i,!0),_e(t,($e(),Dk),(zt(),!0));e.c=null,e.d=null,e.a=null,e.b=null,n.Ug()}function _Zt(e,t,n){var i,r,o,a,d,b,v,k,T,A,L;for(n.Tg(Dlt,1),e.c=t,T=t.a,k=T.c.length,e.d=new Qe,e.e=Ce(Sl,eh,30,k,16,1),e.a=Ce(Sl,eh,30,k,16,1),e.b=new Qe,a=0,v=new J(T);v.a<v.c.c.length;)b=c(U(v),9),b.p=a,lv(vr(b))&&Ue(e.d,b),++a;for(L=new J(e.d);L.a<L.c.c.length;)A=c(U(L),9),Zxe(e,A);for(o=0;o<k;o++)e.e[o]||(d=(pt(o,T.c.length),c(T.c[o],9)),Zxe(e,d));for(r=new J(e.b);r.a<r.c.c.length;)i=c(U(r),17),qg(i,!0),_e(t,($e(),Dk),(zt(),!0));e.d=null,e.e=null,e.a=null,e.b=null,n.Ug()}function DZt(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F;if(R=c(Jt(e.d,t),150),!R)throw K(new Kh("Edge did not exist in input."));return Rie(e,t),T=Rj(R),a=w_((!t.a&&(t.a=new Le(Qi,t,6,6)),t.a)),b=!a,b&&(F=new vg,i=new wGe(e,T,F,t),STt((!t.a&&(t.a=new Le(Qi,t,6,6)),t.a),i),xf(R,Moe,null),xf(R,Moe,F)),o=ma(t,(Pn(),I3)),o&&(A=c(Ae(t,I3),79),d=!A||UHe(A),v=!d,v&&(L=new vg,r=new rqe(e,t,L),ws(A,r),xf(R,"junctionPoints",L))),n=D0e(e,c(Jt(e.e,t),19)),k=n==(Mj(),kW),k&&K6(R,"container",sv(t).k),null}function LZt(e,t){var n,i,r,o,a,d,b;for(e.b=ge(be($(t,(We(),ix)))),e.c=ge(be($(t,op))),e.d=c($(t,Ile),350),e.a=c($(t,OJ),285),Oqt(t),d=c(Gl(bi(bi(jo(jo(new Tt(null,new Ct(t.b,16)),new bb),new sA),new RO),new b2),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[(ya(),vl)]))),16),r=d.Jc();r.Ob();)n=c(r.Pb(),17),a=c($(n,($e(),Im)),16),a.Ic(new D_e(e)),_e(n,Im,null);for(i=d.Jc();i.Ob();)n=c(i.Pb(),17),b=c($(n,($e(),dje)),17),o=c($(n,j3),16),Knn(e,o,b),_e(n,j3,null)}function Kie(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=Zh(a,ml(91)),o!=-1?(b=(tn(o,a.length+1),a.substr(o)),t.a+=""+qa(a==null?wl:(Ft(a),a),0,o)):t.a+=""+a)),e.d&&e.d.i!=0){for(r=!0,t.a+="<",i=new ln(e.d);i.e!=i.i.gc();)n=c(fn(i),88),r?r=!1:t.a+=Yc,Kie(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 ",Kie(e.b,t)):e.f&&(t.a+=" extends ",Kie(e.f,t)))}function PZt(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 IZt(e){var t,n,i,r;if(i=are((!e.c&&(e.c=uD(nc(e.f))),e.c),0),e.e==0||e.a==0&&e.f!=-1&&e.e<0)return i;if(t=swe(e)<0?1:0,n=e.e,r=(i.length+1+p.Math.abs(ys(e.e)),new g4),t==1&&(r.a+="-"),e.e>0)if(n-=i.length-t,n>=0){for(r.a+="0.";n>Lm.length;n-=Lm.length)Hqe(r,Lm);yFe(r,Lm,ys(n)),ti(r,(tn(t,i.length+1),i.substr(t)))}else n=t-n,ti(r,qa(i,t,ys(n))),r.a+=".",ti(r,tme(i,ys(n)));else{for(ti(r,(tn(t,i.length+1),i.substr(t)));n<-Lm.length;n+=Lm.length)Hqe(r,Lm);yFe(r,Lm,ys(-n))}return r.a}function Yie(e){var t,n,i,r,o,a,d,b,v;return!(e.k!=(Wt(),ar)||e.j.c.length<=1||(o=c($(e,(We(),fr)),103),o==(es(),Sc))||(r=(kv(),(e.q?e.q:(Mt(),Mt(),Yd))._b(qw)?i=c($(e,qw),205):i=c($(Jr(e),wE),205),i),r==zJ)||!(r==M3||r==E3)&&(a=ge(be(xv(e,vE))),t=c($(e,_P),125),!t&&(t=new q0e(a,a,a,a)),v=Po(e,(Ve(),Zt)),b=t.d+t.a+(v.gc()-1)*a,b>e.o.b||(n=Po(e,sn),d=t.d+t.a+(n.gc()-1)*a,d>e.o.b)))}function RZt(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G;t.Tg("Orthogonal edge routing",1),v=ge(be($(e,(We(),sx)))),n=ge(be($(e,ix))),i=ge(be($(e,op))),A=new Oee(0,n),G=0,a=new ss(e.b,0),d=null,k=null,b=null,T=null;do k=a.b<a.d.gc()?(pn(a.b<a.d.gc()),c(a.d.Xb(a.c=a.b++),26)):null,T=k?k.a:null,d&&(jye(d,G),G+=d.c.a),F=d?G+i:G,R=Mye(A,e,b,T,F),r=!d||qF(b,(YG(),RP)),o=!k||qF(T,(YG(),RP)),R>0?(L=(R-1)*n,d&&(L+=i),k&&(L+=i),L<v&&!r&&!o&&(L=v),G+=L):!r&&!o&&(G+=v),d=k,b=T;while(k);e.f.a=G,t.Ug()}function uQ(e,t){var n,i,r,o,a,d,b,v,k,T;if(k=null,e.d&&(k=c(Nc(e.d,t),146)),!k){if(o=e.a.si(),T=o.i,!e.d||kT(e.d)!=T){for(b=new xn,e.d&&T7(b,e.d),v=b.f.c+b.i.c,d=v;d<T;++d)i=c(ae(o,d),146),r=Rg(e.e,i).ve(),n=c(r==null?bl(b.f,null,i):lw(b.i,r,i),146),n&&n!=i&&(r==null?bl(b.f,null,n):lw(b.i,r,n));if(b.f.c+b.i.c!=T)for(a=0;a<v;++a)i=c(ae(o,a),146),r=Rg(e.e,i).ve(),n=c(r==null?bl(b.f,null,i):lw(b.i,r,i),146),n&&n!=i&&(r==null?bl(b.f,null,n):lw(b.i,r,n));e.d=b}k=c(Nc(e.d,t),146)}return k}function Zie(e,t,n,i,r,o,a){var d,b,v,k,T,A,L;return T=it(nt($(t,(We(),xSe)))),A=null,o==(Gs(),Vl)&&i.c.i==n?A=i.c:o==tl&&i.d.i==n&&(A=i.d),v=a,!v||!T||A?(k=(Ve(),$o),A?k=A.j:Oy(c($(n,fr),103))&&(k=o==Vl?Zt:sn),b=$Zt(e,t,n,o,k,i),d=fte((Jr(n),i)),o==Vl?(ks(d,c(Xe(b.j,0),12)),rs(d,r)):(ks(d,r),rs(d,c(Xe(b.j,0),12))),v=new mYe(i,d,b,c($(b,($e(),Si)),12),o,!A)):(Ue(v.e,i),L=p.Math.max(ge(be($(v.d,Xg))),ge(be($(i,Xg)))),_e(v.d,Xg,L)),St(e.a,i,new lq(v.d,t,o)),v}function ere(){ere=W;var e;pCe=new QPe,Zvt=Ce(st,Ge,2,0,6,1),Kvt=id(W4(33,58),W4(1,26)),Yvt=id(W4(97,122),W4(65,90)),aCe=W4(48,57),Vvt=id(Kvt,0),Xvt=id(Yvt,aCe),fCe=id(id(0,W4(1,6)),W4(33,38)),hCe=id(id(aCe,W4(65,70)),W4(97,102)),ext=id(Vvt,bG("-_.!~*'()")),txt=id(Xvt,aG("-_.!~*'()")),bG(Bat),aG(Bat),id(ext,bG(";:@&=+$,")),id(txt,aG(";:@&=+$,")),dCe=bG(":/?#"),gCe=aG(":/?#"),cM=bG("/?#"),lM=aG("/?#"),e=new Tr,e.a.yc("jar",e),e.a.yc("zip",e),e.a.yc("archive",e),PW=(Mt(),new D6(e))}function $Zt(e,t,n,i,r,o){var a,d,b,v,k,T;return a=null,v=i==(Gs(),Vl)?o.c:o.d,b=rG(t),v.i==n?(a=c(Jt(e.b,v),9),a||(a=OL(v,c($(n,(We(),fr)),103),r,BKt(v),null,v.n,v.o,b,t),_e(a,($e(),Si),v),ci(e.b,v,a))):(a=OL((k=new hb,T=ge(be($(t,(We(),Nf))))/2,zD(k,ex,T),k),c($(n,fr),103),r,i==Vl?-1:1,null,new us,new He(0,0),b,t),d=MGt(a,n,i),_e(a,($e(),Si),d),ci(e.b,d,a)),c($(t,($e(),Bc)),24).Ec((Qs(),Ma)),Oy(c($(t,(We(),fr)),103))?_e(t,fr,(es(),v9)):_e(t,fr,(es(),Fh)),a}function eS(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R;d=0,R=0,b=Jq(e.g,e.g.length),o=e.e,a=e.j,i=e.b,r=e.c;do{for(L=0,k=new J(e.q);k.a<k.c.c.length;)v=c(U(k),9),A=Kst(e,v),n=!0,(e.r==(U0(),DP)||e.r==LP)&&(n=it(nt(A.b))),c(A.a,15).a<0&&n?(++L,b=Jq(e.g,e.g.length),e.e=e.e+c(A.a,15).a,R+=o-e.e,o=e.e+c(A.a,15).a,a=e.j,i=sm(e.b),r=sm(e.c)):(e.g=Jq(b,b.length),e.e=o,e.b=($n(i),i?new Hl(i):X6(new J(i))),e.c=($n(r),r?new Hl(r):X6(new J(r))),e.j=a);++d,T=L!=0&&it(nt(t.Kb(new Ls(ze(R),ze(d)))))}while(T)}function BZt(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt;return a=e.f,A=t.f,d=a==(tC(),Gk)||a==zE,L=A==Gk||A==zE,b=a==L3||a==FE,R=A==L3||A==FE,v=a==L3||a==Gk,F=A==L3||A==Gk,d&&L?e.f==zE?e:t:b&&R?e.f==FE?e:t:v&&F?(a==L3?(T=e,k=t):(T=t,k=e),o=(G=n.j+n.f,Y=T.e+i.f,oe=p.Math.max(G,Y),fe=oe-p.Math.min(n.j,T.e),we=T.d+i.g-n.i,we*fe),r=(Ne=n.i+n.g,Me=k.d+i.g,Ze=p.Math.max(Ne,Me),wt=Ze-p.Math.min(n.i,k.d),vt=k.e+i.f-n.j,wt*vt),o<=r?e.f==L3?e:t:e.f==Gk?e:t):e}function Ast(e,t){var n,i,r,o,a,d,b,v,k,T;if(_e(t,(Ii(),c9),0),b=c($(t,XJ),41),t.d.b==0)b?(k=ge(be($(b,Zg)))+e.b+s2e(e,b,t),_e(t,Zg,k)):_e(t,Zg,0);else{for(i=(o=Ln(new y1(t).a.d,0),new dy(o));m_(i.a);)n=c(_n(i.a),65).c,Ast(e,n);d=c(VF((a=Ln(new y1(t).a.d,0),new dy(a))),41),T=c(M7t((r=Ln(new y1(t).a.d,0),new dy(r))),41),v=(ge(be($(T,Zg)))+ge(be($(d,Zg))))/2,b?(k=ge(be($(b,Zg)))+e.b+s2e(e,b,t),_e(t,Zg,k),_e(t,c9,ge(be($(t,Zg)))-v),ttn(e,t)):_e(t,Zg,v)}}function zZt(e){var t,n,i,r,o,a,d,b,v,k,T,A,L;if(v=new Qe,!Oi(e,($e(),wle)))return v;for(i=c($(e,wle),16).Jc();i.Ob();)t=c(i.Pb(),9),cen(t,e),Rt(v.c,t);for(o=new J(e.b);o.a<o.c.c.length;)for(r=c(U(o),26),d=new J(r.a);d.a<d.c.c.length;)a=c(U(d),9),a.k==(Wt(),Ar)&&(b=c($(a,wJ),9),b&&(k=new xc,_o(k,a),T=c($(a,Zo),64),$r(k,T),A=c(Xe(b.j,0),12),L=new Kb,ks(L,k),rs(L,A)));for(n=new J(v);n.a<n.c.c.length;)t=c(U(n),9),zr(t,c(Xe(e.b,e.b.c.length-1),26));return v}function FZt(e){var t,n,i,r,o,a,d,b,v,k,T;for(k=e.e.a.c.length,a=new J(e.e.a);a.a<a.c.c.length;)o=c(U(a),126),o.j=!1;for(e.i=Ce(Hn,li,30,k,15,1),e.g=Ce(Hn,li,30,k,15,1),e.n=new Qe,r=0,T=new Qe,b=new J(e.e.a);b.a<b.c.c.length;)d=c(U(b),126),d.d=r++,d.b.a.c.length==0&&Ue(e.n,d),Or(T,d.g);for(t=0,i=new J(T);i.a<i.c.c.length;)n=c(U(i),220),n.c=t++,n.f=!1;v=T.c.length,e.b==null||e.b.length<v?(e.b=Ce(is,io,30,v,15,1),e.c=Ce(Sl,eh,30,v,16,1)):bT(e.c),e.d=T,e.p=new PZ(mv(e.d.c.length)),e.j=1}function qZt(e,t){var n,i,r,o,a,d,b,v,k;if(!(t.e.c.length<=1)){for(e.f=t,e.d=c($(e.f,(tL(),jOe)),385),e.g=c($(e.f,EOe),15).a,e.e=ge(be($(e.f,SOe))),e.c=ge(be($(e.f,IU))),THe(e.b),r=new J(e.f.c);r.a<r.c.c.length;)i=c(U(r),292),tye(e.b,i.c,i,null),tye(e.b,i.d,i,null);for(d=e.f.e.c.length,e.a=Z2(is,[Ge,io],[109,30],15,[d,d],2),v=new J(e.f.e);v.a<v.c.c.length;)b=c(U(v),156),fZt(e,b,e.a[b.a]);for(e.i=Z2(is,[Ge,io],[109,30],15,[d,d],2),o=0;o<d;++o)for(a=0;a<d;++a)n=e.a[o][a],k=1/(n*n),e.i[o][a]=k}}function Nst(e,t){var n,i,r,o,a,d,b,v,k,T,A,L;if(d=t._g(),d||t.Tg(Wct,1),n=c($(e,($e(),Ole)),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();)k=c(A.Pb(),43),i=(L<10?"0":"")+L++,t.ah("   Slot "+i+": "+Up(ju(k)));for(T=n.Jc();T.Ob();){if(k=c(T.Pb(),43),t.Zg())return;k.If(e,t.dh(a))}for(o=new J(e.b);o.a<o.c.c.length;)r=c(U(o),26),Or(e.a,r.a),r.a.c.length=0;for(v=new J(e.a);v.a<v.c.c.length;)b=c(U(v),9),zr(b,null);e.b.c.length=0,d||t.Ug()}function HZt(e,t){var n,i,r,o,a,d,b,v,k;if(Oi(e.d.i,(We(),Zv)))return d=c($(e.c.i,Zv),15),v=c($(e.d.i,Zv),15),pc(d.a,v.a)>0;for(d=c($(e.c.i,Zv),15).a,o=c(Gl(bi(t.Mc(),new G_e(d)),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[(ya(),vl)]))),16),a=new _i,k=new Tr,ni(a,e.c.i),Cr(k,e.c.i);a.b!=0;){if(n=c(a.b==0?null:(pn(a.b!=0),wa(a,a.a.a)),9),o.Gc(n))return!0;for(r=new Gt(Xt(Fi(n).a.Jc(),new z));gn(r);)i=c(on(r),17),b=i.d.i,k.a._b(b)||(k.a.yc(b,k),sr(a,b,a.c.b,a.c))}return!1}function _st(e,t,n){var i,r,o,a,d,b,v,k,T;for(T=new Qe,k=new Ime(0,n),o=0,DH(k,new ine(0,0,k,n)),r=0,v=new ln(e);v.e!=v.i.gc();)b=c(fn(v),19),i=c(Xe(k.a,k.a.c.length-1),175),d=r+b.g+(c(Xe(k.a,0),175).b.c.length==0?0:n),(d>t||it(nt(Ae(b,(Eh(),GP)))))&&(r=0,o+=k.b+n,Rt(T.c,k),k=new Ime(o,n),i=new ine(0,k.f,k,n),DH(k,i),r=0),i.b.c.length==0||!it(nt(Ae(Ki(b),(Eh(),Vue))))&&(b.f>=i.o&&b.f<=i.f||i.a*.5<=b.f&&i.a*1.5>=b.f)?o2e(i,b):(a=new ine(i.s+i.r+n,k.f,k,n),DH(k,a),o2e(a,b)),r=b.i+b.g;return Rt(T.c,k),T}function fC(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 K(new Mo("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=Ce(Hn,li,30,t,15,1),yc(e.b,0,i,0,t),e.b=i),e.a=!0}}function GZt(e,t){var n,i,r,o,a,d,b;for(a=N4(e.a).Jc();a.Ob();){if(o=c(a.Pb(),17),o.b.c.length>0)for(i=new Hl(c(Ti(e.a,o),24)),Mt(),Rr(i,new c1e(t)),r=new ss(o.b,0);r.b<r.d.gc();){switch(n=(pn(r.b<r.d.gc()),c(r.d.Xb(r.c=r.b++),70)),d=-1,c($(n,(We(),xd)),281).g){case 1:d=i.c.length-1;break;case 0:d=hGt(i);break;case 2:d=0}d!=-1&&(b=(pt(d,i.c.length),c(i.c[d],253)),Ue(b.b.b,n),c($(Jr(b.b.c.i),($e(),Bc)),24).Ec((Qs(),VS)),c($(Jr(b.b.c.i),Bc),24).Ec(WS),iu(r),_e(n,aje,o))}ks(o,null),rs(o,null)}}function QZt(e,t){var n,i,r,o,a,d,b,v,k,T,A;for(k=new Qe,A=new Tr,a=t.b,r=0;r<a.c.length;r++){for(v=(pt(r,a.c.length),c(a.c[r],26)).a,k.c.length=0,o=0;o<v.c.length;o++)d=e.a[r][o],d.p=o,d.k==(Wt(),$c)&&Rt(k.c,d),Ou(c(Xe(t.b,r),26).a,o,d),d.j.c.length=0,Or(d.j,c(c(Xe(e.b,r),16).Xb(o),18)),E4(c($(d,(We(),fr)),103))||_e(d,fr,(es(),Jm));for(i=new J(k);i.a<i.c.c.length;)n=c(U(i),9),T=bKt(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,(Sj(),j6e)),d.i=!0,Kve(d)}function UZt(e,t){var n,i,r,o,a,d,b,v,k,T,A,L;if(t.Tg("Edge splitting",1),e.b.c.length<=2){t.Ug();return}for(o=new ss(e.b,0),a=(pn(o.b<o.d.gc()),c(o.d.Xb(o.c=o.b++),26));o.b<o.d.gc();)for(r=a,a=(pn(o.b<o.d.gc()),c(o.d.Xb(o.c=o.b++),26)),b=new J(r.a);b.a<b.c.c.length;)for(d=c(U(b),9),k=new J(d.j);k.a<k.c.c.length;)for(v=c(U(k),12),i=new J(v.g);i.a<i.c.c.length;)n=c(U(i),17),A=n.d,T=A.i.c,T!=r&&T!=a&&Aie(n,(L=new Sh(e),mu(L,(Wt(),Er)),_e(L,($e(),Si),n),_e(L,(We(),fr),(es(),Sc)),zr(L,a),L));t.Ug()}function Dst(e){var t,n,i,r,o,a,d,b,v,k,T,A;for(t=wh(e),o=it(nt(Ae(t,(We(),Yv)))),k=0,r=0,v=new ln((!e.e&&(e.e=new Et($i,e,7,4)),e.e));v.e!=v.i.gc();)b=c(fn(v),74),d=gw(b),a=d&&o&&it(nt(Ae(b,$m))),A=no(c(ae((!b.c&&(b.c=new Et(yn,b,5,8)),b.c),0),83)),d&&a?++r:d&&!a?++k:Ki(A)==t||A==t?++r:++k;for(i=new ln((!e.d&&(e.d=new Et($i,e,8,5)),e.d));i.e!=i.i.gc();)n=c(fn(i),74),d=gw(n),a=d&&o&&it(nt(Ae(n,$m))),T=no(c(ae((!n.b&&(n.b=new Et(yn,n,4,7)),n.b),0),83)),d&&a?++k:d&&!a?++r:Ki(T)==t||T==t?++k:++r;return k-r}function Lst(e){var t,n,i,r,o;return e.g!=null?e.g:e.a<32?(e.g=fnn(nc(e.f),ys(e.e)),e.g):(r=are((!e.c&&(e.c=uD(nc(e.f))),e.c),0),e.e==0?r:(t=(!e.c&&(e.c=uD(nc(e.f))),e.c).e<0?2:1,n=r.length,i=-e.e+n-t,o=new v0,o.a+=""+r,e.e>0&&i>=-6?i>=0?z_(o,n-ys(e.e),"."):(Ute(o,t-1,t-1,"0."),z_(o,t+1,od(Lm,0,-ys(i)-1))):(n-t>=1&&(z_(o,t,"."),++n),z_(o,n,"E"),i>0&&z_(o,++n,"+"),z_(o,++n,""+t7(nc(i)))),e.g=o.a,e.g))}function JZt(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze;i=ge(be($(t,(We(),kSe)))),Ne=c($(t,xE),15).a,A=4,r=3,Me=20/Ne,L=!1,b=0,a=pi;do{for(o=b!=1,T=b!=0,Ze=0,G=e.a,oe=0,we=G.length;oe<we;++oe)R=G[oe],R.f=null,Itn(e,R,o,T,i),Ze+=p.Math.abs(R.a);do d=pYt(e,t);while(d);for(F=e.a,Y=0,fe=F.length;Y<fe;++Y)if(R=F[Y],n=qpe(R).a,n!=0)for(k=new J(R.e);k.a<k.c.c.length;)v=c(U(k),9),v.n.b+=n;b==0||b==1?(--A,A<=0&&(Ze<a||-A>Ne)?(b=2,a=pi):b==0?(b=1,a=Ze):(b=0,a=Ze)):(L=Ze>=a||a-Ze<Me,a=Ze,L&&--r)}while(!(L&&r<=0))}function tre(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R;for(R=new xn,o=e.a.ec().Jc();o.Ob();)i=c(o.Pb(),180),ci(R,i,n.$e(i));for(a=($n(e),e?new Hl(e):X6(e.a.ec().Jc())),Rr(a,new g_e(R)),d=oH(a),b=new JF(t),L=new xn,bl(L.f,t,b);d.a.gc()!=0;){for(v=null,k=null,T=null,r=d.a.ec().Jc();r.Ob();)if(i=c(r.Pb(),180),ge(be(Ao(co(R.f,i))))<=or){if(Ac(L,i.a)&&!Ac(L,i.b)){k=i.b,T=i.a,v=i;break}if(Ac(L,i.b)&&!Ac(L,i.a)){k=i.a,T=i.b,v=i;break}}if(!v)break;A=new JF(k),Ue(c(Ao(co(L.f,T)),227).a,A),bl(L.f,k,A),d.a.Ac(v)!=null}return b}function km(e,t){var n,i,r,o,a,d;if(t){if(!e.a&&(e.a=new Uz),e.e==2){Qz(e.a,t);return}if(t.e==1){for(r=0;r<t.Nm();r++)km(e,t.Jm(r));return}if(d=e.a.a.c.length,d==0){Qz(e.a,t);return}if(a=c(Wb(e.a,d-1),122),!((a.e==0||a.e==10)&&(t.e==0||t.e==10))){Qz(e.a,t);return}o=t.e==0?2:t.Km().length,a.e==0?(n=new vT,i=a.Im(),i>=Ps?Zs(n,n2e(i)):tj(n,i&Dr),a=new Hee(10,null,0),fNt(e.a,a,d-1)):(n=(a.Km().length+o,new vT),Zs(n,a.Km())),t.e==0?(i=t.Im(),i>=Ps?Zs(n,n2e(i)):tj(n,i&Dr)):Zs(n,t.Km()),c(a,521).b=n.a}}function WZt(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G;if(!n.dc()){for(d=0,A=0,i=n.Jc(),R=c(i.Pb(),15).a;d<t.f;){if(d==R&&(A=0,i.Ob()?R=c(i.Pb(),15).a:R=t.f+1),d!=A){for(G=c(Xe(e.b,d),26),L=c(Xe(e.b,A),26),F=sm(G.a),T=new J(F);T.a<T.c.c.length;)if(k=c(U(T),9),q0(k,L.a.c.length,L),A==0)for(a=sm(vr(k)),o=new J(a);o.a<o.c.c.length;)r=c(U(o),17),qg(r,!0),_e(e,($e(),Dk),(zt(),!0)),Fst(e,r,1)}++A,++d}for(b=new ss(e.b,0);b.b<b.d.gc();)v=(pn(b.b<b.d.gc()),c(b.d.Xb(b.c=b.b++),26)),v.a.c.length==0&&iu(b)}}function VZt(e,t,n){var i,r,o;if(r=c($(t,(We(),OJ)),285),r!=(Gj(),iE)){switch(n.Tg("Horizontal Compaction",1),e.a=t,o=new HWe,i=new mnt((o.d=t,o.c=c($(o.d,V1),225),FXt(o),Zen(o),VXt(o),o.a)),k8t(i,e.b),c($(t,Xje),427).g){case 1:EIe(i,new fXe(e.a));break;default:EIe(i,(bme(),jht))}switch(r.g){case 1:eC(i);break;case 2:eC(aQ(i,(_r(),vo)));break;case 3:eC(CIe(aQ(eC(i),(_r(),vo)),new vA));break;case 4:eC(CIe(aQ(eC(i),(_r(),vo)),new Z_e(o)));break;case 5:eC(y8t(i,w1t))}aQ(i,(_r(),go)),i.e=!0,Jtn(o),n.Ug()}}function XZt(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe;for(a=t.b,k=a.o,b=a.d,i=ge(be(wG(a,(We(),Nf)))),r=ge(be(wG(a,C3))),v=ge(be(wG(a,Gle))),d=new bY,wpe(d,b.d,b.c,b.a,b.b),A=oKt(t,i,r,v),Y=new J(t.d);Y.a<Y.c.c.length;){for(G=c(U(Y),108),R=G.f.a.ec().Jc();R.Ob();)L=c(R.Pb(),342),o=L.a,T=ZGt(L),n=(oe=new nu,mtt(L,L.c,A,oe),hXt(L,T,A,oe),mtt(L,L.d,A,oe),oe),n=e.lg(L,T,n),ku(o.a),Os(o.a,n),hr(new Tt(null,new Ct(n,16)),new O$e(k,d));F=G.i,F&&(wXt(G,F,A,r),fe=new Es(F.g),A2e(k,d,fe),ji(fe,F.j),A2e(k,d,fe))}wpe(b,d.d,d.c,d.a,d.b)}function KZt(e,t){Vj();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),ph(),yf(pd),(p.Math.abs(i)<=pd||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:Vp(isNaN(i),isNaN(0)))>=0^(yf(pd),(p.Math.abs(d)<=pd||d==0||isNaN(d)&&isNaN(0)?0:d<0?-1:d>0?1:Vp(isNaN(d),isNaN(0)))>=0)?p.Math.max(d,i):(yf(pd),(p.Math.abs(i)<=pd||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:Vp(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,V2(),e.A.dc()||ki(e.A,fOe)?t=r.b:(e.D?t=p.Math.max(r.b,X7(e.f)):t=X7(e.f),e.A.Gc((Cu(),cI))&&!e.B.Gc((uu(),rM))&&(t=p.Math.max(t,X7(c(eo(e.p,(Ve(),sn)),256))),t=p.Math.max(t,X7(c(eo(e.p,Zt),256)))),n=DXe(e),n&&(t=p.Math.max(t,n.b)),e.A.Gc(lI)&&(e.q==(es(),r1)||e.q==Sc)&&(t=p.Math.max(t,gq(c(eo(e.b,(Ve(),sn)),129))),t=p.Math.max(t,gq(c(eo(e.b,Zt),129))))),it(nt(e.e.Rf().mf((Pn(),hx))))?r.b=p.Math.max(r.b,t):r.b=t,i=e.f.i,i.d=0,i.a=t,Qie(e.f)}function ZZt(e,t,n,i,r,o,a,d){var b,v,k,T;switch(b=vf(ee(Z(Qin,1),It,241,0,[t,n,i,r])),T=null,e.b.g){case 1:T=vf(ee(Z(F8e,1),It,527,0,[new N8,new nN,new r6]));break;case 0:T=vf(ee(Z(F8e,1),It,527,0,[new r6,new nN,new N8]));break;case 2:T=vf(ee(Z(F8e,1),It,527,0,[new nN,new N8,new r6]))}for(k=new J(T);k.a<k.c.c.length;)v=c(U(k),527),b.c.length>1&&(b=v.Gg(b,e.a,d));return b.c.length==1?c(Xe(b,b.c.length-1),241):b.c.length==2?BZt((pt(0,b.c.length),c(b.c[0],241)),(pt(1,b.c.length),c(b.c[1],241)),a,o):null}function een(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R;r=new e4(e),o=new Lnt,i=(dD(o.n),dD(o.p),lc(o.c),dD(o.f),dD(o.o),lc(o.q),lc(o.d),lc(o.g),lc(o.k),lc(o.e),lc(o.i),lc(o.j),lc(o.r),lc(o.b),A=int(o,r,null),sit(o,r),A),t&&(b=new e4(t),a=wZt(b),Lve(i,ee(Z(CTe,1),It,528,0,[a]))),T=!1,k=!1,n&&(b=new e4(n),sU in b.a&&(T=C1(b,sU).oe().a),aat in b.a&&(k=C1(b,aat).oe().a)),v=PIe(zVe(new a4,T),k),tUt(new nB,i,v),sU in r.a&&xf(r,sU,null),(T||k)&&(d=new f4,est(v,d,T,k),xf(r,sU,d)),L=new BLe(o),aKe(new SZ(i),L),R=new zLe(o),aKe(new SZ(i),R)}function ten(e,t,n){var i,r,o,a,d,b,v;for(n.Tg("Find roots",1),e.a.c.length=0,r=Ln(t.b,0);r.b!=r.d.c;)i=c(_n(r),41),i.b.b==0&&(_e(i,(Ii(),ap),(zt(),!0)),Ue(e.a,i));switch(e.a.c.length){case 0:o=new nne(0,t,"DUMMY_ROOT"),_e(o,(Ii(),ap),(zt(),!0)),_e(o,bue,!0),ni(t.b,o);break;case 1:break;default:for(a=new nne(0,t,JQ),b=new J(e.a);b.a<b.c.c.length;)d=c(U(b),41),v=new mme(a,d),_e(v,(Ii(),bue),(zt(),!0)),ni(a.a.a,v),ni(a.d,v),ni(d.b,v),_e(d,ap,!1);_e(a,(Ii(),ap),(zt(),!0)),_e(a,bue,!0),ni(t.b,a)}n.Ug()}function Pst(e){var t,n,i,r,o,a;for(Vc(e.a,new f2),n=new J(e.a);n.a<n.c.c.length;)t=c(U(n),227),i=Hr(Ms(c(e.b,68).c),c(t.b,68).c),rdt?(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&&fq(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&&fq(i,p.Math.max(a.d-(o.d+o.a),o.d-(a.d+a.a))))):fq(i,rst(c(e.b,68),c(t.b,68))),r=p.Math.sqrt(i.a*i.a+i.b*i.b),r=Bet(VC,t,r,i),fq(i,r),fee(c(t.b,68),i),Vc(t.a,new r1e(i)),c(VC.b,68),pbe(VC,hOe,t)}function nen(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R;for(e.f=new pY,v=0,r=0,a=new J(e.e.b);a.a<a.c.c.length;)for(o=c(U(a),26),b=new J(o.a);b.a<b.c.c.length;){for(d=c(U(b),9),d.p=v++,i=new Gt(Xt(Fi(d).a.Jc(),new z));gn(i);)n=c(on(i),17),n.p=r++;for(t=Yie(d),A=new J(d.j);A.a<A.c.c.length;)T=c(U(A),12),t&&(R=T.a.b,R!=p.Math.floor(R)&&(k=R-cm(nc(p.Math.round(R))),T.a.b-=k)),L=T.n.b+T.a.b,L!=p.Math.floor(L)&&(k=L-cm(nc(p.Math.round(L))),T.n.b-=k)}e.g=v,e.b=r,e.i=Ce(Fin,It,410,v,0,1),e.c=Ce(zin,It,651,r,0,1),e.d.a.$b()}function Mn(e){var t,n,i,r,o,a,d,b,v;if(e.Nj())if(b=e.Oj(),e.i>0){if(t=new zge(e.i,e.g),n=e.i,o=n<100?null:new x0(n),e.Rj())for(i=0;i<e.i;++i)a=e.g[i],o=e.Tj(a,o);if(w7(e),r=n==1?e.Gj(4,ae(t,0),null,0,b):e.Gj(6,t,null,-1,b),e.Kj()){for(i=new S4(t);i.e!=i.i.gc();)o=e.Mj(Rne(i),o);o?(o.lj(r),o.mj()):e.Hj(r)}else o?(o.lj(r),o.mj()):e.Hj(r)}else w7(e),e.Hj(e.Gj(6,(Mt(),Is),null,-1,b));else if(e.Kj())if(e.i>0){for(d=e.g,v=e.i,w7(e),o=v<100?null:new x0(v),i=0;i<v;++i)a=d[i],o=e.Mj(a,o);o&&o.mj()}else w7(e);else w7(e)}function Oye(e,t,n){var i,r,o,a,d,b,v,k,T,A;for(FXe(this),n==(Yb(),up)?Cr(this.r,e):Cr(this.w,e),k=or,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==up?Cr(this.r,b):Cr(this.w,b),A=(Ve(),kl).Gc(b.j)?ge(be($(b,($e(),KS)))):Lo(ee(Z(Vr,1),Ge,8,0,[b.i.n,b.n,b.a])).b,k=p.Math.min(k,A),v=p.Math.max(v,A);for(T=(Ve(),kl).Gc(e.j)?ge(be($(e,($e(),KS)))):Lo(ee(Z(Vr,1),Ge,8,0,[e.i.n,e.n,e.a])).b,ltt(this,T,k,v),o=t.a.ec().Jc();o.Ob();)r=c(o.Pb(),49),jtt(this,c(r.b,17));this.o=!1}function ien(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn;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,k=t.m>>17|(t.h&255)<<5,T=(t.h&1048320)>>8,wt=n*d,vt=i*d,Pt=r*d,$t=o*d,dn=a*d,b!=0&&(vt+=n*b,Pt+=i*b,$t+=r*b,dn+=o*b),v!=0&&(Pt+=n*v,$t+=i*v,dn+=r*v),k!=0&&($t+=n*k,dn+=i*k),T!=0&&(dn+=n*T),L=wt&au,R=(vt&511)<<13,A=L+R,G=wt>>22,Y=vt>>9,oe=(Pt&262143)<<4,fe=($t&31)<<17,F=G+Y+oe+fe,Ne=Pt>>18,Me=$t>>5,Ze=(dn&4095)<<8,we=Ne+Me+Ze,F+=A>>22,A&=au,we+=F>>22,F&=au,we&=H1,rl(A,F,we)}function Ist(e){var t,n,i,r,o,a,d;if(d=c(Xe(e.j,0),12),d.g.c.length!=0&&d.e.c.length!=0)throw K(new oo("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(d.g.c.length!=0){for(o=or,n=new J(d.g);n.a<n.c.c.length;)t=c(U(n),17),a=t.d.i,i=c($(a,(We(),NJ)),125),o=p.Math.min(o,a.n.a-i.b);return new tT($n(o))}if(d.e.c.length!=0){for(r=Gr,n=new J(d.e);n.a<n.c.c.length;)t=c(U(n),17),a=t.c.i,i=c($(a,(We(),NJ)),125),r=p.Math.max(r,a.n.a+a.o.a+i.c);return new tT($n(r))}return pT(),pT(),Koe}function Rst(e){Bb(e,new ym(DY(p_(Ib(Db(Pb(Lb(new p1,Cw),"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 eB),t4e),Li((ak(),mI),ee(Z(bI,1),Re,235,0,[pI]))))),Fe(e,Cw,kw,20),Fe(e,Cw,Ow,TTe),Fe(e,Cw,pS,Ke(f2t)),Fe(e,Cw,jQ,Ke(d2t)),Fe(e,Cw,FL,(zt(),!1)),Fe(e,Cw,mS,Ke(STe)),Fe(e,Cw,Gse,Ke(h2t)),Fe(e,Cw,I4e,Ke(f9)),Fe(e,Cw,R4e,Ke(mae)),Fe(e,Cw,$4e,Ke(jTe)),Fe(e,Cw,B4e,Ke(pae))}function ren(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G;for(n.Tg("Interactive cycle breaking",1),T=new Qe,L=new J(t.a);L.a<L.c.c.length;)for(A=c(U(L),9),A.p=1,R=lve(A).a,k=aw(A,(Gs(),tl)).Jc();k.Ob();)for(v=c(k.Pb(),12),o=new J(v.g);o.a<o.c.c.length;)i=c(U(o),17),F=i.d.i,F!=A&&(G=lve(F).a,G<R&&Rt(T.c,i));for(a=new J(T);a.a<a.c.c.length;)i=c(U(a),17),qg(i,!0);for(T.c.length=0,b=new J(t.a);b.a<b.c.c.length;)d=c(U(b),9),d.p>0&&Mtt(e,d,T);for(r=new J(T);r.a<r.c.c.length;)i=c(U(r),17),qg(i,!0);T.c.length=0,n.Ug()}function $st(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)),Se(n)===Se(t))return!0}return b}else if(e.kl()&&!e.jl()){if(a=c(t,57).Jh(Hs(c(e.Jk(),20))),Se(a)===Se(e.e))return!0;if(a==null||!c(a,57).Sh())return!1}}else return!1;if(d=qj(e,t),e.ll()&&!d){for(o=0;o<e.i;++o)if(r=e.nl(c(e.g[o],57)),Se(r)===Se(t))return!0}return d}else return qj(e,t)}function sen(e,t){var n,i,r,o,a,d,b,v,k;for(n=0,k=new Qe,d=new J(t);d.a<d.c.c.length;){switch(a=c(U(d),12),Pwe(e.b,e.d[a.p]),k.c.length=0,a.i.k.g){case 0:i=c($(a,($e(),Wl)),9),Vc(i.j,new DDe(k));break;case 1:i7t(P1(bi(new Tt(null,new Ct(a.i.j,16)),new LDe(a))),new PDe(k));break;case 3:r=c($(a,($e(),Si)),12),Ue(k,new Ls(r,ze(a.e.c.length+a.g.c.length)))}for(v=new J(k);v.a<v.c.c.length;)b=c(U(v),49),o=X1e(e,c(b.a,12)),o>e.d[a.p]&&(n+=Xme(e.b,o)*c(b.b,15).a,N0(e.a,ze(o)));for(;!wT(e.a);)Abe(e.b,c(D4(e.a),15).a)}return n}function oen(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G;for(t.Tg(Llt,1),L=new Qe,k=p.Math.max(e.a.c.length,c($(e,($e(),sp)),15).a),n=k*c($(e,OP),15).a,d=Se($(e,(We(),zk)))===Se((I0(),Wv)),F=new J(e.a);F.a<F.c.c.length;)for(R=c(U(F),9),i=new WO,b=d?lk(i,R,n,k):sk(i,R,k),A=aw(R,(Gs(),tl)).Jc();A.Ob();)for(T=c(A.Pb(),12),a=new J(T.g);a.a<a.c.c.length;)r=c(U(a),17),G=r.d.i,v=d?lk(i,G,n,k):sk(i,G,k),v<b&&Rt(L.c,r);for(o=new J(L);o.a<o.c.c.length;)r=c(U(o),17),qg(r,!0),_e(e,Dk,(zt(),!0));L.c.length=0,t.Ug()}function cen(e,t){var n,i,r,o,a,d,b,v,k,T;if(k=c($(e,($e(),Zo)),64),i=c(Xe(e.j,0),12),k==(Ve(),Yt)?$r(i,wn):k==wn&&$r(i,Yt),c($(t,(We(),Bm)),185).Gc((Cu(),Wm))){if(b=ge(be($(e,n9))),v=ge(be($(e,i9))),a=ge(be($(e,rx))),d=c($(t,tx),24),d.Gc((Ul(),Z1)))for(n=v,T=e.o.a/2-i.n.a,o=new J(i.f);o.a<o.c.c.length;)r=c(U(o),70),r.n.b=n,r.n.a=T-r.o.a/2,n+=r.o.b+a;else if(d.Gc(pp))for(o=new J(i.f);o.a<o.c.c.length;)r=c(U(o),70),r.n.a=b+e.o.a-i.n.a;lLt(new $z((OT(),new _ee(t,!1,!1,new e8))),new cq(null,e,!1))}}function len(e,t){var n,i,r,o,a,d,b,v,k;if(t.c.length!=0){for(Mt(),oee(t.c,t.c.length,null),r=new J(t),i=c(U(r),157);r.a<r.c.c.length;)n=c(U(r),157),Lbe(i.e.c,n.e.c)&&!(j2e(hFe(i.e).b,n.e.d)||j2e(hFe(n.e).b,i.e.d))?i=(Or(i.k,n.k),Or(i.b,n.b),Or(i.c,n.c),Os(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),k=v-a,bqe(i.e,o,a,b,k),dLt(i.f,n.f),!i.a&&(i.a=n.a),Or(i.g,n.g),Ue(i.g,n),i):(Xrt(e,i),i=n);Xrt(e,i)}}function uen(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne;for(b=new Qe,o=new J(t.a);o.a<o.c.c.length;)for(r=c(U(o),9),d=new J(r.j);d.a<d.c.c.length;){for(a=c(U(d),12),k=null,fe=rd(a.g),we=0,Ne=fe.length;we<Ne;++we)oe=fe[we],xj(oe.d.i,n)||(Y=Zie(e,t,n,oe,oe.c,(Gs(),tl),k),Y!=k&&Rt(b.c,Y),Y.c&&(k=Y));for(v=null,R=rd(a.e),F=0,G=R.length;F<G;++F)L=R[F],xj(L.c.i,n)||(Y=Zie(e,t,n,L,L.d,(Gs(),Vl),v),Y!=v&&Rt(b.c,Y),Y.c&&(v=Y))}for(A=new J(b);A.a<A.c.c.length;)T=c(U(A),447),Do(t.a,T.a,0)!=-1||Ue(t.a,T.a),T.c&&Rt(i.c,T)}function aen(e,t,n){var i,r,o,a,d,b,v,k,T,A,L;for(d=new J(t);d.a<d.c.c.length;)o=c(U(d),242),o.e=null,o.c=0;for(b=null,a=new J(t);a.a<a.c.c.length;)if(o=c(U(a),242),T=o.d[0],!(n&&T.k!=(Wt(),ar))){for(L=c($(T,($e(),Pk)),16).Jc();L.Ob();)A=c(L.Pb(),9),(!n||A.k==(Wt(),ar))&&((!o.e&&(o.e=new Qe),o.e).Ec(e.b[A.c.p][A.p]),++e.b[A.c.p][A.p].c);if(!n&&T.k==(Wt(),ar)){if(b)for(k=c(Ti(e.d,b),24).Jc();k.Ob();)for(v=c(k.Pb(),9),r=c(Ti(e.d,T),24).Jc();r.Ob();)i=c(r.Pb(),9),bMt(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 fen(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R,F,G;for(T=new Es(c(Ae(e,($G(),PTe)),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(Ae(e,_Te)),(r==null||(Ft(r),r<=0))&&(r=1.3),d=new Qe,R=new ln((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a));R.e!=R.i.gc();)L=c(fn(R),19),a=new Kze(L),Rt(d.c,a);switch(A=c(Ae(e,Sae),327),A.g){case 3:G=UKt(d,t,T.a,T.b,(v=i,Ft(r),v));break;case 1:G=LYt(d,t,T.a,T.b,(k=i,Ft(r),k));break;default:G=den(d,t,T.a,T.b,(b=i,Ft(r),b))}o=new CH(G),F=cre(o,t,n,T.a,T.b,i,(Ft(r),r)),ww(e,F.a,F.b,!1,!0)}function hen(e,t,n,i){var r,o,a,d,b,v;if(d=e.j,d==(Ve(),$o)&&t!=(es(),Fh)&&t!=(es(),gp)&&(d=Qrt(e,n),$r(e,d),!(e.q?e.q:(Mt(),Mt(),Yd))._b((We(),ex))&&d!=$o&&(e.n.a!=0||e.n.b!=0)&&_e(e,ex,kHt(e,d))),t==(es(),r1)){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)}_e(e,($e(),Bw),v)}if(b=e.o,a=e.a,i)a.a=i.a,a.b=i.b,e.d=!0;else if(t!=Fh&&t!=gp&&d!=$o)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 hC(e){var t,n,i,r,o,a,d,b,v,k;if(e.Nj())if(k=e.Cj(),b=e.Oj(),k>0)if(t=new lwe(e.nj()),n=k,o=n<100?null:new x0(n),Q_(e,n,t.g),r=n==1?e.Gj(4,ae(t,0),null,0,b):e.Gj(6,t,null,-1,b),e.Kj()){for(i=new ln(t);i.e!=i.i.gc();)o=e.Mj(fn(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(),Is),null,-1,b));else if(e.Kj())if(k=e.Cj(),k>0){for(d=e.Dj(),v=k,Q_(e,k,d),o=v<100?null:new x0(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 den(e,t,n,i,r){var o,a,d,b,v,k,T,A,L,R,F,G;for(d=Ce(is,io,30,e.c.length,15,1),A=new Mq(new pN),J2e(A,e),v=0,F=new Qe;A.b.c.length!=0;)if(a=c(A.b.c.length==0?null:Xe(A.b,0),168),v>1&&Nl(a)*yu(a)/2>d[0]){for(o=0;o<F.c.length-1&&Nl(a)*yu(a)/2>d[o];)++o;R=new nd(F,0,o+1),T=new CH(R),k=Nl(a)/yu(a),b=cre(T,t,new u4,n,i,r,k),ji(Wf(T.e),b),A4(Hj(A,T),uS),L=new nd(F,o+1,F.c.length),J2e(A,L),F.c.length=0,v=0,Yqe(d,d.length,0)}else G=A.b.c.length==0?null:Xe(A.b,0),G!=null&&Rte(A,0),v>0&&(d[v]=d[v-1]),d[v]+=Nl(a)*yu(a),++v,Rt(F.c,a);return F}function gen(e,t){var n,i,r,o;n=t.b,o=new Hl(n.j),r=0,i=n.j,i.c.length=0,Ub(c(hm(e.b,(Ve(),Yt),(ow(),Iw)),16),n),r=ZD(o,r,new QO,i),Ub(c(hm(e.b,Yt,ip),16),n),r=ZD(o,r,new dg,i),Ub(c(hm(e.b,Yt,Pw),16),n),Ub(c(hm(e.b,sn,Iw),16),n),Ub(c(hm(e.b,sn,ip),16),n),r=ZD(o,r,new gg,i),Ub(c(hm(e.b,sn,Pw),16),n),Ub(c(hm(e.b,wn,Iw),16),n),r=ZD(o,r,new w2,i),Ub(c(hm(e.b,wn,ip),16),n),r=ZD(o,r,new Pp,i),Ub(c(hm(e.b,wn,Pw),16),n),Ub(c(hm(e.b,Zt,Iw),16),n),r=ZD(o,r,new hg,i),Ub(c(hm(e.b,Zt,ip),16),n),Ub(c(hm(e.b,Zt,Pw),16),n)}function pen(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F;for(t.Tg("Layer size calculation",1),k=or,v=Gr,r=!1,d=new J(e.b);d.a<d.c.c.length;)if(a=c(U(d),26),b=a.c,b.a=0,b.b=0,a.a.c.length!=0){for(r=!0,A=new J(a.a);A.a<A.c.c.length;)T=c(U(A),9),R=T.o,L=T.d,b.a=p.Math.max(b.a,R.a+L.b+L.c);i=c(Xe(a.a,0),9),F=i.n.b-i.d.d,i.k==(Wt(),Ar)&&(F-=c($(e,(We(),_P)),125).d),o=c(Xe(a.a,a.a.c.length-1),9),n=o.n.b+o.o.b+o.d.a,o.k==Ar&&(n+=c($(e,(We(),_P)),125).a),b.b=n-F,k=p.Math.min(k,F),v=p.Math.max(v,n)}r||(k=0,v=0),e.f.b=v-k,e.c.b-=k,t.Ug()}function Bst(e,t,n){var i,r,o,a,d,b,v,k,T,A;for(a=t.d,d=n.d;a.a-d.a==0&&a.b-d.b==0;)b=!1,he(t,254)&&he(n,254)&&!b?(v=c(t,254).a,k=Hr(new Es(qbe(v)),Fbe(v)),i=2,r=new He(k.a/p.Math.sqrt(k.a*k.a+k.b*k.b)*i,-k.b/p.Math.sqrt(k.a*k.a+k.b*k.b)*i),ji(a,r),T=c(n,254).a,A=Hr(new Es(qbe(T)),Fbe(T)),i=k==A?-2:2,o=new He(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),ji(a,o),b=!0):(a.a+=lu(e,26)*mC+lu(e,27)*bC-.5,a.b+=lu(e,26)*mC+lu(e,27)*bC-.5,d.a+=lu(e,26)*mC+lu(e,27)*bC-.5,d.b+=lu(e,26)*mC+lu(e,27)*bC-.5)}function men(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G;for(v=JQt(t),F=c($(t,(We(),pE)),302),ws(v,new x_e(F)),G=c($(t,EP),303),ws(v,new y_e(G)),R=0,k=new Qe,o=new u7(v);o.a!=o.b;)r=c(eG(o),37),Yst(e.c,r),A=c($(r,($e(),Ole)),16),R+=A.gc(),i=A.Jc(),Ue(k,new Ls(r,i));for(n.Tg("Recursive hierarchical layout",R),L=c(c(Xe(k,k.c.length-1),49).b,51);L.Ob();)for(b=new J(k);b.a<b.c.c.length;)for(d=c(U(b),49),A=c(d.b,51),a=c(d.a,37);A.Ob();)if(T=c(A.Pb(),43),he(T,456)){if(a.e)break;T.If(a,n.dh(1));break}else T.If(a,n.dh(1));n.Ug()}function jye(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y;for(o=0,a=0,v=new J(e.a);v.a<v.c.c.length;)d=c(U(v),9),o=p.Math.max(o,d.d.b),a=p.Math.max(a,d.d.c);for(b=new J(e.a);b.a<b.c.c.length;){switch(d=c(U(b),9),n=c($(d,(We(),vd)),259),n.g){case 1:R=0;break;case 2:R=1;break;case 5:R=.5;break;default:for(i=0,T=0,L=new J(d.j);L.a<L.c.c.length;)A=c(U(L),12),A.e.c.length==0||++i,A.g.c.length==0||++T;i+T==0?R=.5:R=T/(i+T)}G=e.c,k=d.o.a,Y=(G.a-k)*R,R>.5?Y-=a*2*(R-.5):R<.5&&(Y+=o*2*(.5-R)),r=d.d.b,Y<r&&(Y=r),F=d.d.c,Y>G.a-F-k&&(Y=G.a-F-k),d.n.a=t+Y}}function ben(e){var t,n,i,r,o;if(i=c($(e,(We(),Ro)),166),i==(Su(),W1)){for(n=new Gt(Xt(vr(e).a.Jc(),new z));gn(n);)if(t=c(on(n),17),!vJe(t))throw K(new Xh(ise+eL(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==Rm){for(o=new Gt(Xt(Fi(e).a.Jc(),new z));gn(o);)if(r=c(on(o),17),!vJe(r))throw K(new Xh(ise+eL(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 dC(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R;if(e.e&&e.c.c<e.f)throw K(new oo("Expected "+e.f+" phases to be configured; only found "+e.c.c));for(k=c(Jf(e.g),10),L=Pd(e.f),o=k,d=0,v=o.length;d<v;++d)i=o[d],T=c(OD(e,i.g),173),T?Ue(L,c(CYe(e,T),86)):L.c.push(null);for(R=new yr,hr(bi(Jc(bi(new Tt(null,new Ct(L,16)),new iB),new pLe(t)),new L8),new mLe(R)),Hu(R,e.a),n=new Qe,r=k,a=0,b=r.length;a<b;++a)i=r[a],Or(n,YXe(e,Bee(c(OD(R,i.g),22)))),A=c(Xe(L,i.g),86),A&&Rt(n.c,A);return Or(n,YXe(e,Bee(c(OD(R,k[k.length-1].g+1),22)))),n}function wen(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we;for(A=new Qe,r=new Qe,F=null,d=t.Jc();d.Ob();)a=c(d.Pb(),15),o=new ODe(a.a),Rt(r.c,o),F&&(o.d=F,F.e=o),F=o;for(fe=zYt(e),k=0;k<r.c.length;++k){for(L=null,G=abe((pt(0,r.c.length),c(r.c[0],657))),n=null,i=or,T=1;T<e.b.c.length;++T)Y=G?p.Math.abs(G.b-T):p.Math.abs(T-L.b)+1,R=L?p.Math.abs(T-L.b):Y+1,R<Y?(v=L,b=R):(v=G,b=Y),oe=(we=ge(be($(e,(We(),ISe)))),fe[T]+p.Math.pow(b,we)),oe<i&&(i=oe,n=v,n.c=T),G&&T==G.b&&(L=G,G=iNt(G));n&&(Ue(A,ze(n.c)),n.a=!0,ozt(n))}return Mt(),oee(A.c,A.c.length,null),A}function Sye(e,t,n){var i,r,o,a,d,b;if(t.l==0&&t.m==0&&t.h==0)throw K(new Kz("divide by zero"));if(e.l==0&&e.m==0&&e.h==0)return n&&(Z0=rl(0,0,0)),rl(0,0,0);if(t.h==_L&&t.m==0&&t.l==0)return Ezt(e,n);if(b=!1,t.h>>19!=0&&(t=jj(t),b=!b),a=tVt(t),o=!1,r=!1,i=!1,e.h==_L&&e.m==0&&e.l==0)if(r=!0,o=!0,a==-1)e=IBe((gj(),Ike)),i=!0,b=!b;else return d=mxe(e,a),b&&ene(d),n&&(Z0=rl(0,0,0)),d;else e.h>>19!=0&&(o=!0,e=jj(e),i=!0,b=!b);return a!=-1?tBt(e,a,b,o,n):tve(e,t)<0?(n&&(o?Z0=jj(e):Z0=rl(e.l,e.m,e.h)),rl(0,0,0)):VKt(i?e:rl(e.l,e.m,e.h),t,b,o,r,n)}function nre(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R;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],Us),i=Zr(t.a[0],Us),a==b?(k=As(n,i),R=Qn(k),L=Qn(Zp(k,32)),L==0?new M1(a,R):new em(a,2,ee(Z(Hn,1),li,30,15,[R,L]))):(ld(),FF(a<0?Ga(i,n):Ga(n,i),0)?F0(a<0?Ga(i,n):Ga(n,i)):s7(F0(Dg(a<0?Ga(i,n):Ga(n,i)))));if(a==b)A=a,T=o>=d?gte(e.a,o,t.a,d):gte(t.a,d,e.a,o);else{if(r=o!=d?o>d?1:-1:Lwe(e.a,t.a,o),r==0)return ld(),JC;r==1?(A=a,T=hte(e.a,o,t.a,d)):(A=b,T=hte(t.a,d,e.a,o))}return v=new em(A,T.length,T),d7(v),v}function ven(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),fne(Lo(ee(Z(Vr,1),Ge,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),fne(Lo(ee(Z(Vr,1),Ge,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),fne(Lo(ee(Z(Vr,1),Ge,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),fne(Lo(ee(Z(Vr,1),Ge,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&--i;n<i?new fH(e,t,i-n):i<n?new fH(t,e,n-i):(new fH(t,e,0),new fH(e,t,0))}}function xen(e){var t,n,i,r,o,a,d,b,v,k;for(t=new gh,n=new gh,v=jt(iP,(r=oC(e.b,Yn),r?qn(Zf((!r.b&&(r.b=new vu((At(),$s),ec,r)),r.b),Ja)):null)),b=0;b<e.i;++b)d=c(e.g[b],182),he(d,104)?(a=c(d,20),(a.Bb&sc)!=0?((a.Bb&ad)==0||!v&&(o=oC(a,Yn),(o?qn(Zf((!o.b&&(o.b=new vu((At(),$s),ec,o)),o.b),iU)):null)==null))&&Dn(t,a):(k=Hs(a),k&&(k.Bb&sc)!=0||((a.Bb&ad)==0||!v&&(i=oC(a,Yn),(i?qn(Zf((!i.b&&(i.b=new vu((At(),$s),ec,i)),i.b),iU)):null)==null))&&Dn(n,a))):(qs(),c(d,69).vk()&&(d.qk()||(Dn(t,d),Dn(n,d))));bv(t),bv(n),e.a=c(t.g,258),c(n.g,258)}function Yy(e,t,n){var i,r,o,a,d,b,v,k,T;if(Yi(t,n)>=0)return n;switch(Vb(uo(e,n))){case 2:{if(jt("",Rg(e,n.ok()).ve())){if(b=rD(uo(e,n)),d=sj(uo(e,n)),k=kxe(e,t,b,d),k)return k;for(r=Yxe(e,t),a=0,T=r.gc();a<T;++a)if(k=c(r.Xb(a),182),Mxe(xee(uo(e,k)),b))return k}return null}case 4:{if(jt("",Rg(e,n.ok()).ve())){for(i=n;i;i=sLt(uo(e,i)))if(v=rD(uo(e,i)),d=sj(uo(e,i)),k=Oxe(e,t,v,d),k)return k;if(b=rD(uo(e,n)),jt(_m,b))return sve(e,t);for(o=Bie(e,t),a=0,T=o.gc();a<T;++a)if(k=c(o.Xb(a),182),Mxe(xee(uo(e,k)),b))return k}return null}default:return null}}function yen(e,t,n){var i,r,o,a,d,b,v,k;if(n.gc()==0)return!1;if(d=(qs(),c(t,69).vk()),o=d?n:new tw(n.gc()),z1(e.e,t)){if(t.Qi())for(v=n.Jc();v.Ob();)b=v.Pb(),rQ(e,t,b,he(t,104)&&(c(t,20).Bb&Ps)!=0)||(r=Fd(t,b),o.Gc(r)||o.Ec(r));else if(!d)for(v=n.Jc();v.Ob();)b=v.Pb(),r=Fd(t,b),o.Ec(r)}else{if(n.gc()>1)throw K(new Ht(oP));for(k=ol(e.e.Ah(),t),i=c(e.g,123),a=0;a<e.i;++a)if(r=i[a],k.$l(r.Jk())){if(n.Gc(d?r:r.kd()))return!1;for(v=n.Jc();v.Ob();)b=v.Pb(),c(Hy(e,a,d?c(b,76):Fd(t,b)),76);return!0}d||(r=Fd(t,n.Jc().Pb()),o.Ec(r))}return dr(e,o)}function ken(e,t){var n,i,r,o,a,d,b,v,k;for(k=new _i,d=(v=new x1(e.c).a.vc().Jc(),new $2(v));d.a.Ob();)o=(r=c(d.a.Pb(),45),c(r.kd(),459)),o.b==0&&sr(k,o,k.c.b,k.c);for(;k.b!=0;)for(o=c(k.b==0?null:(pn(k.b!=0),wa(k,k.a.a)),459),o.a==null&&(o.a=0),i=new J(o.d);i.a<i.c.c.length;)n=c(U(i),659),n.b.a==null?n.b.a=ge(o.a)+n.a:t.o==(bh(),Hm)?n.b.a=p.Math.min(ge(n.b.a),ge(o.a)+n.a):n.b.a=p.Math.max(ge(n.b.a),ge(o.a)+n.a),--n.b.b,n.b.b==0&&ni(k,n.b);for(a=(b=new x1(e.c).a.vc().Jc(),new $2(b));a.a.Ob();)o=(r=c(a.a.Pb(),45),c(r.kd(),459)),t.i[o.c.p]=o.a}function Oen(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R;for(k=n+t.c.c.a,L=new J(t.j);L.a<L.c.c.length;){if(A=c(U(L),12),r=Lo(ee(Z(Vr,1),Ge,8,0,[A.i.n,A.n,A.a])),t.k==(Wt(),$c)&&(d=c($(A,($e(),Si)),12),r.a=Lo(ee(Z(Vr,1),Ge,8,0,[d.i.n,d.n,d.a])).a,t.n.a=r.a),a=new He(0,r.b),A.j==(Ve(),sn))a.a=k;else if(A.j==Zt)a.a=n;else continue;if(R=p.Math.abs(r.a-a.a),!(R<=i&&!MHt(t)))for(o=A.g.c.length+A.e.c.length>1,v=new xh(A.b);No(v.a)||No(v.b);)b=c(No(v.a)?U(v.a):U(v.b),17),T=b.c==A?b.d:b.c,p.Math.abs(Lo(ee(Z(Vr,1),Ge,8,0,[T.i.n,T.n,T.a])).b-a.b)>1&&iXt(e,b,a,o,A)}}function jen(e){var t,n,i,r,o,a;if(r=new ss(e.e,0),i=new ss(e.a,0),e.d)for(n=0;n<e.b;n++)pn(r.b<r.d.gc()),r.d.Xb(r.c=r.b++);else for(n=0;n<e.b-1;n++)pn(r.b<r.d.gc()),r.d.Xb(r.c=r.b++),iu(r);for(t=ge((pn(r.b<r.d.gc()),be(r.d.Xb(r.c=r.b++))));e.f-t>Vse;){for(o=t,a=0;p.Math.abs(t-o)<Vse;)++a,t=ge((pn(r.b<r.d.gc()),be(r.d.Xb(r.c=r.b++)))),pn(i.b<i.d.gc()),i.d.Xb(i.c=i.b++);a<e.b&&(pn(r.b>0),r.a.Xb(r.c=--r.b),PYt(e,e.b-a,o,i,r),pn(r.b<r.d.gc()),r.d.Xb(r.c=r.b++)),pn(i.b>0),i.a.Xb(i.c=--i.b)}if(!e.d)for(n=0;n<e.b-1;n++)pn(r.b<r.d.gc()),r.d.Xb(r.c=r.b++),iu(r);e.d=!0,e.c=!0}function Ai(){Ai=W,LCe=(W1e(),oc).b,Oxt=c(ae(Pe(oc.b),0),38),Vm=c(ae(Pe(oc.b),1),38),kxt=c(ae(Pe(oc.b),2),38),F3=oc.bb,c(ae(Pe(oc.bb),0),38),c(ae(Pe(oc.bb),1),38),q3=oc.fb,aM=c(ae(Pe(oc.fb),0),38),c(ae(Pe(oc.fb),1),38),c(ae(Pe(oc.fb),2),20),Xw=oc.qb,Pxt=c(ae(Pe(oc.qb),0),38),c(ae(Pe(oc.qb),1),20),c(ae(Pe(oc.qb),2),20),jI=c(ae(Pe(oc.qb),3),38),SI=c(ae(Pe(oc.qb),4),38),hM=c(ae(Pe(oc.qb),6),38),fM=c(ae(Pe(oc.qb),5),20),jxt=oc.j,Sxt=oc.k,Txt=oc.q,Cxt=oc.w,Ext=oc.B,Mxt=oc.A,Axt=oc.C,Nxt=oc.D,_xt=oc._,Dxt=oc.cb,Lxt=oc.hb}function Sen(e,t,n){var i,r,o,a,d,b,v,k,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(k=c(T.Pb(),12),d=k.j==(Ve(),Yt)||k.j==wn,L=0,d){if(A=c($(k,($e(),Wl)),9),!A)continue;L+=JXt(e,i,k,A)}else{for(v=new J(k.g);v.a<v.c.c.length;)if(b=c(U(v),17),r=b.d,r.i.c==t.c){Ue(e.a,k);continue e}else L+=e.g[r.p];for(a=new J(k.e);a.a<a.c.c.length;)if(o=c(U(a),17),r=o.c,r.i.c==t.c){Ue(e.a,k);continue e}else L-=e.g[r.p]}k.e.c.length+k.g.c.length>0?(e.f[k.p]=L/(k.e.c.length+k.g.c.length),e.c=p.Math.min(e.c,e.f[k.p]),e.b=p.Math.max(e.b,e.f[k.p])):d&&(e.f[k.p]=L)}}function Ten(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 Cen(e,t,n){var i,r,o,a;for(n.Tg("Graph transformation ("+e.a+")",1),a=sm(t.a),o=new J(t.b);o.a<o.c.c.length;)r=c(U(o),26),Or(a,r.a);if(i=c($(t,(We(),nSe)),424),i==(ED(),lJ))switch(c($(t,Xu),87).g){case 2:g7(t,a);break;case 3:z7(t,a);break;case 4:e.a==(wj(),pP)?(z7(t,a),tte(t,a)):(tte(t,a),z7(t,a))}else if(e.a==(wj(),pP))switch(c($(t,Xu),87).g){case 2:g7(t,a),tte(t,a);break;case 3:z7(t,a),g7(t,a);break;case 4:g7(t,a),z7(t,a)}else switch(c($(t,Xu),87).g){case 2:g7(t,a),tte(t,a);break;case 3:g7(t,a),z7(t,a);break;case 4:z7(t,a),g7(t,a)}n.Ug()}function Een(e){var t,n,i,r,o,a,d,b;for(o=new J(e.a.b);o.a<o.c.c.length;)r=c(U(o),84),r.b.c=r.g.c,r.b.d=r.g.d;for(b=new He(or,or),t=new He(Gr,Gr),i=new J(e.a.b);i.a<i.c.c.length;)n=c(U(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=Pq(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=nq(new He(b.a,b.b)),e.e=Hr(new He(t.a,t.b),b),e.a.a.c.length=0,e.a.b.c.length=0}function zst(e,t,n){var i,r,o,a,d,b;for(ma(t,(ik(),f9))?b=ge(be(Ae(t,f9))):b=n,r=b+t.f+p.Math.max(c(Ae(t,(Pn(),K1)),125).a,e.b),d=new ln((!t.e&&(t.e=new Et($i,t,7,4)),t.e));d.e!=d.i.gc();)if(o=c(fn(d),74),i=c(ae((!o.c&&(o.c=new Et(yn,o,5,8)),o.c),0),19),ma(i,f9)&&r>ge(be(Ae(i,f9)))+c(Ae(i,K1),125).d)throw K(new Xh("Invalid vertical constraints. Node "+i.k+" has a vertical constraint that is too low for its ancestors."));for(a=new ln((!t.e&&(t.e=new Et($i,t,7,4)),t.e));a.e!=a.i.gc();)o=c(fn(a),74),i=c(ae((!o.c&&(o.c=new Et(yn,o,5,8)),o.c),0),19),zst(e,i,r)}function Men(e){x7();var t,n,i,r,o,a,d;for(d=new jPe,n=new J(e);n.a<n.c.c.length;)t=c(U(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 vG((Oj(),Lw)),fD(e,Kdt,new Qo(ee(Z(dP,1),It,378,0,[i]))),a=new vG(Hv),fD(e,Xdt,new Qo(ee(Z(dP,1),It,378,0,[a]))),r=new vG(qv),fD(e,Vdt,new Qo(ee(Z(dP,1),It,378,0,[r]))),o=new vG(d3),fD(e,Wdt,new Qo(ee(Z(dP,1),It,378,0,[o]))),Eie(i.c,Lw),Eie(r.c,qv),Eie(o.c,d3),Eie(a.c,Hv),d.a.c.length=0,Or(d.a,i.c),Or(d.a,Tu(r.c)),Or(d.a,o.c),Or(d.a,Tu(a.c)),d}function Aen(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R;for(t.Tg(rut,1),L=ge(be(Ae(e,(Qd(),lx)))),a=ge(be(Ae(e,(Eh(),BE)))),d=c(Ae(e,$E),100),iwe((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a)),k=_st((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a),L,a),!e.a&&(e.a=new Le(Nn,e,10,11)),v=new J(k);v.a<v.c.c.length;)for(b=c(U(v),189),r=new J(b.a);r.a<r.c.c.length;)i=c(U(r),175),A=new kme(i.s,i.t,ge(be(Ae(e,BE)))),uwe(A,i),Ue(b.d,A);T=aet(k,a),R=p.Math.max(T.a,ge(be(Ae(e,RE)))-(d.b+d.c)),o=p.Math.max(T.b,ge(be(Ae(e,sW)))-(d.d+d.a)),n=o-T.b,ri(e,IE,n),ri(e,Hk,R),ri(e,l9,o+n),ri(e,oW,k),t.Ug()}function Nen(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F;for(v=new Ld,k=new Ld,R=new Ld,F=new Ld,b=ge(be($(t,(We(),qm)))),o=ge(be($(t,Nf))),d=new J(n);d.a<d.c.c.length;)if(a=c(U(d),9),T=c($(a,($e(),Zo)),64),T==(Ve(),Yt))for(k.a.yc(a,k),r=new Gt(Xt(vr(a).a.Jc(),new z));gn(r);)i=c(on(r),17),Cr(v,i.c.i);else if(T==wn)for(F.a.yc(a,F),r=new Gt(Xt(vr(a).a.Jc(),new z));gn(r);)i=c(on(r),17),Cr(R,i.c.i);v.a.gc()!=0&&(A=new Oee(2,o),L=Mye(A,t,v,k,-b-t.c.b),L>0&&(e.a=b+(L-1)*o,t.c.b+=e.a,t.f.b+=e.a)),R.a.gc()!=0&&(A=new Oee(1,o),L=Mye(A,t,R,F,t.f.b+b-t.c.b),L>0&&(t.f.b+=b+(L-1)*o))}function Fst(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we;for(k=ge(be($(e,(We(),Fm)))),i=ge(be($(e,_Se))),A=new $5,_e(A,Fm,k+i),v=t,Y=v.d,F=v.c.i,oe=v.d.i,G=Uge(F.c),fe=Uge(oe.c),r=new Qe,T=G;T<=fe;T++)d=new Sh(e),mu(d,(Wt(),Er)),_e(d,($e(),Si),v),_e(d,fr,(es(),Sc)),_e(d,PJ,A),L=c(Xe(e.b,T),26),T==G?q0(d,L.a.c.length-n,L):zr(d,L),we=ge(be($(v,Xg))),we<0&&(we=0,_e(v,Xg,we)),d.o.b=we,R=p.Math.floor(we/2),a=new xc,$r(a,(Ve(),Zt)),_o(a,d),a.n.b=R,b=new xc,$r(b,sn),_o(b,d),b.n.b=R,rs(v,a),o=new Kb,ic(o,v),_e(o,ho,null),ks(o,b),rs(o,Y),_Ht(d,v,o),Rt(r.c,o),v=o;return r}function _en(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe;if(F=t.b.c.length,!(F<3)){for(L=Ce(Hn,li,30,F,15,1),T=0,k=new J(t.b);k.a<k.c.c.length;)v=c(U(k),26),L[T++]=v.a.c.length;for(A=new ss(t.b,2),i=1;i<F-1;i++)for(n=(pn(A.b<A.d.gc()),c(A.d.Xb(A.c=A.b++),26)),R=new J(n.a),o=0,d=0,b=0;b<L[i+1];b++)if(fe=c(U(R),9),b==L[i+1]-1||$ve(e,fe,i+1,i)){for(a=L[i]-1,$ve(e,fe,i+1,i)&&(a=e.c.e[c(c(c(Xe(e.c.b,fe.p),16).Xb(0),49).a,9).p]);d<=b;){if(oe=c(Xe(n.a,d),9),!$ve(e,oe,i+1,i))for(Y=c(Xe(e.c.b,oe.p),16).Jc();Y.Ob();)G=c(Y.Pb(),49),r=e.c.e[c(G.a,9).p],(r<o||r>a)&&Cr(e.b,c(G.b,17));++d}o=a}}}function ire(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe;for(b=c(Fg(e,(Ve(),Zt)).Jc().Pb(),12).e,L=c(Fg(e,sn).Jc().Pb(),12).g,d=b.c.length,fe=vh(c(Xe(e.j,0),12));d-- >0;){for(F=(pt(0,b.c.length),c(b.c[0],17)),r=(pt(0,L.c.length),c(L.c[0],17)),oe=r.d.e,o=Do(oe,r,0),ALt(F,r.d,o),ks(r,null),rs(r,null),R=F.a,t&&ni(R,new Es(fe)),i=Ln(r.a,0);i.b!=i.d.c;)n=c(_n(i),8),ni(R,new Es(n));for(Y=F.b,A=new J(r.b);A.a<A.c.c.length;)T=c(U(A),70),Rt(Y.c,T);if(G=c($(F,(We(),ho)),79),a=c($(r,ho),79),a)for(G||(G=new nu,_e(F,ho,G)),k=Ln(a,0);k.b!=k.d.c;)v=c(_n(k),8),ni(G,new Es(v))}}function Den(e,t){var n,i,r,o,a,d,b,v;for(t.Tg("Sort By Input Model "+$(e,(We(),t1)),1),o=0,r=new J(e.b);r.a<r.c.c.length;){for(i=c(U(r),26),i.p=o,v=o==0?0:o-1,b=c(Xe(e.b,v),26),n=new hwe(e,b,c($(e,t1),270),c($(e,Ale),353),(c($(e,dE),330),!0)),nit(i.a,n),d=new J(i.a);d.a<d.c.c.length;)a=c(U(d),9),Se($(a,fr))!==Se((es(),Jm))&&Se($(a,fr))!==Se(Sc)&&(Mt(),Rr(a.j,new xYe(e,b,c($(e,t1),270),fet(a),it(nt($(e,Nle))))),t.ah("Node "+a+" ports: "+a.j));n=new hwe(e,b,c($(e,t1),270),c($(e,Ale),353),(c($(e,dE),330),!1)),nit(i.a,n),t.ah("Layer "+o+": "+i),++o}t.Ug()}function Tye(e,t){var n;if(t==null||jt(t,wl)||t.length==0&&e.k!=(Q0(),Qk))return null;switch(e.k.g){case 1:return gG(t,CS)?(zt(),RS):gG(t,goe)?(zt(),ep):null;case 2:try{return ze(Qu(t,cs,pi))}catch(i){if(i=kr(i),he(i,133))return null;throw K(i)}case 4:try{return jv(t)}catch(i){if(i=kr(i),he(i,133))return null;throw K(i)}case 3:return t;case 5:return LKe(e),hnt(e,t);case 6:return LKe(e),PWt(e,e.a,t);case 7:try{return n=zJt(e),n.ag(t),n}catch(i){if(i=kr(i),he(i,33))return null;throw K(i)}default:throw K(new oo("Invalid type set for this layout option."))}}function Cye(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&&it(nt(t))!=FT(e.k,0);case 1:return t!=null&&c(t,224).a!=Qn(e.k)<<24>>24;case 2:return t!=null&&c(t,183).a!=(Qn(e.k)&Dr);case 6:return t!=null&&FT(c(t,192).a,e.k);case 5:return t!=null&&c(t,15).a!=Qn(e.k);case 7:return t!=null&&c(t,193).a!=Qn(e.k)<<16>>16;case 3:return t!=null&&ge(be(t))!=e.j;case 4:return t!=null&&c(t,165).a!=e.j;default:return t==null?e.n!=null:!ki(t,e.n)}}function kL(e,t,n){var i,r,o,a;return e.ml()&&e.ll()&&(a=mee(e,c(n,57)),Se(a)!==Se(n))?(e.vj(t),e.Bj(t,hWe(e,t,a)),e.$k()&&(o=(r=c(n,52),e.kl()?e.il()?r.Qh(e.b,Hs(c(Lt(dl(e.b),e.Jj()),20)).n,c(Lt(dl(e.b),e.Jj()).Fk(),29).ik(),null):r.Qh(e.b,Yi(r.Ah(),Hs(c(Lt(dl(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,Hs(c(Lt(dl(e.b),e.Jj()),20)).n,c(Lt(dl(e.b),e.Jj()).Fk(),29).ik(),o):i.Oh(e.b,Yi(i.Ah(),Hs(c(Lt(dl(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 qst(e){var t,n,i,r,o,a,d,b,v,k;for(i=new Qe,a=new J(e.e.a);a.a<a.c.c.length;){for(r=c(U(a),126),k=0,r.k.c.length=0,n=new J(zy(r));n.a<n.c.c.length;)t=c(U(n),220),t.f&&(Ue(r.k,t),++k);k==1&&Rt(i.c,r)}for(o=new J(i);o.a<o.c.c.length;)for(r=c(U(o),126);r.k.c.length==1;){for(v=c(U(new J(r.k)),220),e.b[v.c]=v.g,d=v.d,b=v.e,n=new J(zy(r));n.a<n.c.c.length;)t=c(U(n),220),ki(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);gl(d.k,v),gl(b.k,v),d==r?r=v.e:r=v.d}}function Hst(e,t){var n,i,r,o,a,d,b,v,k,T,A,L;if(n=c(eo(e.b,t),129),b=c(c(Ti(e.r,t),24),85),b.dc()){n.n.b=0,n.n.c=0;return}for(v=e.u.Gc((Ul(),Z1)),a=0,d=b.Jc(),k=null,T=0,A=0;d.Ob();)i=c(d.Pb(),116),r=ge(be(i.b.mf((iq(),NU)))),o=i.b.Kf().a,e.A.Gc((Cu(),Wm))&&grt(e,t),k?(L=A+k.d.c+e.w+i.d.b,a=p.Math.max(a,(ph(),yf(Ah),p.Math.abs(T-r)<=Ah||T==r||isNaN(T)&&isNaN(r)?0:L/(r-T)))):e.C&&e.C.b>0&&(a=p.Math.max(a,xXe(e.C.b+i.d.b,r))),k=i,T=r,A=o;e.C&&e.C.c>0&&(L=A+e.C.c,v&&(L+=k.d.c),a=p.Math.max(a,(ph(),yf(Ah),p.Math.abs(T-1)<=Ah||T==1||isNaN(T)&&isNaN(1)?0:L/(1-T)))),n.n.b=0,n.a.a=a}function Gst(e,t){var n,i,r,o,a,d,b,v,k,T,A,L;if(n=c(eo(e.b,t),129),b=c(c(Ti(e.r,t),24),85),b.dc()){n.n.d=0,n.n.a=0;return}for(v=e.u.Gc((Ul(),Z1)),a=0,e.A.Gc((Cu(),Wm))&&prt(e,t),d=b.Jc(),k=null,A=0,T=0;d.Ob();)i=c(d.Pb(),116),o=ge(be(i.b.mf((iq(),NU)))),r=i.b.Kf().b,k?(L=T+k.d.a+e.w+i.d.d,a=p.Math.max(a,(ph(),yf(Ah),p.Math.abs(A-o)<=Ah||A==o||isNaN(A)&&isNaN(o)?0:L/(o-A)))):e.C&&e.C.d>0&&(a=p.Math.max(a,xXe(e.C.d+i.d.d,o))),k=i,A=o,T=r;e.C&&e.C.a>0&&(L=T+e.C.a,v&&(L+=k.d.a),a=p.Math.max(a,(ph(),yf(Ah),p.Math.abs(A-1)<=Ah||A==1||isNaN(A)&&isNaN(1)?0:L/(1-A)))),n.n.d=0,n.a.b=a}function Qst(e,t,n){var i,r,o,a,d,b;for(this.g=e,d=t.d.length,b=n.d.length,this.d=Ce(e1,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=Y_(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=Y_(n.e),this.e.Kc(t));this.f=t.f+n.f,this.a=t.a+n.a,this.a>0?Nte(this,this.f/this.a):mh(t.g,t.d[0]).a!=null&&mh(n.g,n.d[0]).a!=null?Nte(this,(ge(mh(t.g,t.d[0]).a)+ge(mh(n.g,n.d[0]).a))/2):mh(t.g,t.d[0]).a!=null?Nte(this,mh(t.g,t.d[0]).a):mh(n.g,n.d[0]).a!=null&&Nte(this,mh(n.g,n.d[0]).a)}function Len(e,t,n,i,r,o,a,d){var b,v,k,T,A,L,R,F,G,Y;if(R=!1,v=Axe(n.q,t.f+t.b-n.q.f),L=i.f>t.b&&d,Y=r-(n.q.e+v-a),T=(b=aC(i,Y,!1),b.a),L&&T>i.f)return!1;if(L){for(A=0,G=new J(t.d);G.a<G.c.c.length;)F=c(U(G),320),A+=Axe(F,i.f)+a;Y=r-A}return Y<i.g||(k=o==e.c.length-1&&Y>=(pt(o,e.c.length),c(e.c[o],189)).e,!L&&T>t.b&&!k)?!1:((k||L||T<=t.b)&&(k&&T>t.b?(n.d=T,vD(n,vtt(n,T))):(Net(n.q,v),n.c=!0),vD(i,r-(n.s+n.r)),YD(i,n.q.e+n.q.d,t.f),DH(t,i),e.c.length>o&&(nL((pt(o,e.c.length),c(e.c[o],189)),i),(pt(o,e.c.length),c(e.c[o],189)).a.c.length==0&&Ng(e,o)),R=!0),R)}function Pen(e){var t,n,i;for($y(bp,ee(Z(h3,1),It,139,0,[new ZN])),n=new s_(e),i=0;i<n.a.length;++i)t=fv(n,i).re().a,jt(t,"layered")?$y(bp,ee(Z(h3,1),It,139,0,[new az])):jt(t,"force")?$y(bp,ee(Z(h3,1),It,139,0,[new _K])):jt(t,"stress")?$y(bp,ee(Z(h3,1),It,139,0,[new cz])):jt(t,"mrtree")?$y(bp,ee(Z(h3,1),It,139,0,[new qK])):jt(t,"radial")?$y(bp,ee(Z(h3,1),It,139,0,[new BK])):jt(t,"sporeOverlap")||jt(t,"sporeCompaction")?$y(bp,ee(Z(h3,1),It,139,0,[new vz])):jt(t,"rectpacking")?$y(bp,ee(Z(h3,1),It,139,0,[new wz])):jt(t,"vertiflex")&&$y(bp,ee(Z(h3,1),It,139,0,[new KN]))}function Ien(e,t){var n,i,r,o,a,d,b,v,k,T;for(e.a=new RHe(X$t(XE)),i=new J(t.a);i.a<i.c.c.length;){for(n=c(U(i),847),d=new Nne(ee(Z(Ece,1),It,84,0,[])),Ue(e.a.a,d),v=new J(n.d);v.a<v.c.c.length;)b=c(U(v),120),k=new v0e(e,b),Aye(k,c($(n.c,($e(),J1)),24)),Ac(e.g,n)||(ci(e.g,n,new He(b.c,b.d)),ci(e.f,n,k)),Ue(e.a.b,k),ete(d,k);for(a=new J(n.b);a.a<a.c.c.length;)o=c(U(a),598),k=new v0e(e,o.Bf()),ci(e.b,o,new Ls(d,k)),Aye(k,c($(n.c,($e(),J1)),24)),o.zf()&&(T=new N2e(e,o.zf(),1),Aye(T,c($(n.c,J1),24)),r=new Nne(ee(Z(Ece,1),It,84,0,[])),ete(r,T),St(e.c,o.yf(),new Ls(d,T)))}return e.a}function Ren(e,t,n){var i,r,o,a,d,b,v,k,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=Ce(Sl,eh,30,T.c.length,16,1),e.b=new Qe,d=0,k=new J(T);k.a<k.c.c.length;)v=c(U(k),9),v.p=d,lv(vr(v))&&Cr(e.e,v),lv(Fi(v))&&Cr(e.d,v),++d;for(L=e.e.a.ec().Jc();L.Ob();)A=c(L.Pb(),9),ni(e.a,A),sme(e);for(sme(e),i=!0;i;){for(i=!1,a=0;a<T.c.length;a++)if(!e.f[a]){b=(pt(a,T.c.length),c(T.c[a],9)),ni(e.a,b),i=!0;break}sme(e)}for(o=new J(e.b);o.a<o.c.c.length;)r=c(U(o),17),qg(r,!0),_e(t,($e(),Dk),(zt(),!0));e.e=null,e.f=null,e.a=null,e.b=null,n.Ug()}function $en(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G;if(a=n.Jk(),he(a,104)&&(c(a,20).Bb&Ps)!=0&&(A=c(n.kd(),52),F=B0(e.e,A),F!=A)){if(k=Fd(a,F),JT(e,t,lie(e,t,k)),T=null,bu(e.e)&&(i=Yy((Pl(),ms),e.e.Ah(),a),i!=Lt(e.e.Ah(),e.c))){for(G=ol(e.e.Ah(),a),d=0,o=c(e.g,123),b=0;b<t;++b)r=o[b],G.$l(r.Jk())&&++d;T=new ste(e.e,9,i,A,F,d,!1),T.lj(new N1(e.e,9,e.c,n,k,t,!1))}return R=c(a,20),L=Hs(R),L?(T=A.Qh(e.e,Yi(A.Ah(),L),null,T),T=c(F,52).Oh(e.e,Yi(F.Ah(),L),null,T)):(R.Bb&sc)!=0&&(v=-1-Yi(e.e.Ah(),R),T=A.Qh(e.e,v,null,null),!c(F,52).Mh()&&(T=c(F,52).Oh(e.e,v,null,T))),T&&T.mj(),k}return n}function Ust(e){var t;this.a=e,t=(Wt(),ee(Z(Lce,1),Re,252,0,[ar,Er,Ar,$c,fc,Lh,gP,ZC])).length,this.b=Z2(Oae,[Ge,H5e],[597,149],0,[t,t],2),this.c=Z2(Oae,[Ge,H5e],[597,149],0,[t,t],2),Fee(this,ar,(We(),qm),sx),C7(this,ar,Er,Fm,op),sD(this,ar,$c,Fm),sD(this,ar,Ar,Fm),C7(this,ar,fc,qm,sx),Fee(this,Er,Nf,ix),sD(this,Er,$c,Nf),sD(this,Er,Ar,Nf),C7(this,Er,fc,Fm,op),VBe(this,$c,Nf),sD(this,$c,Ar,Nf),sD(this,$c,fc,Hle),VBe(this,Ar,vE),C7(this,Ar,fc,i9,n9),Fee(this,fc,Nf,Nf),Fee(this,Lh,Nf,ix),C7(this,Lh,ar,Fm,op),C7(this,Lh,fc,Fm,op),C7(this,Lh,Er,Fm,op)}function Ben(e,t,n,i,r,o){var a;if(!(t==null||!One(t,dCe,gCe)))throw K(new Ht("invalid scheme: "+t));if(!e&&!(n!=null&&Zh(n,ml(35))==-1&&n.length>0&&(tn(0,n.length),n.charCodeAt(0)!=47)))throw K(new Ht("invalid opaquePart: "+n));if(e&&!(t!=null&&yT(PW,t.toLowerCase()))&&!(n==null||!One(n,cM,lM)))throw K(new Ht(zat+n));if(e&&t!=null&&yT(PW,t.toLowerCase())&&!EGt(n))throw K(new Ht(zat+n));if(!Pzt(i))throw K(new Ht("invalid device: "+i));if(!ABt(r))throw a=r==null?"invalid segments: null":"invalid segment: "+OBt(r),K(new Ht(a));if(!(o==null||Zh(o,ml(35))==-1))throw K(new Ht("invalid query: "+o))}function Jst(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y;if(A=new Es(e.o),Y=t.a/A.a,d=t.b/A.b,F=t.a-A.a,o=t.b-A.b,n)for(r=Se($(e,(We(),fr)))===Se((es(),Sc)),R=new J(e.j);R.a<R.c.c.length;)switch(L=c(U(R),12),L.j.g){case 1:r||(L.n.a*=Y);break;case 2:L.n.a+=F,r||(L.n.b*=d);break;case 3:r||(L.n.a*=Y),L.n.b+=o;break;case 4:r||(L.n.b*=d)}for(v=new J(e.b);v.a<v.c.c.length;)b=c(U(v),70),k=b.n.a+b.o.a/2,T=b.n.b+b.o.b/2,G=k/A.a,a=T/A.b,G+a>=1&&(G-a>0&&T>=0?(b.n.a+=F,b.n.b+=o*a):G-a<0&&k>=0&&(b.n.a+=F*G,b.n.b+=o));e.o.a=t.a,e.o.b=t.b,_e(e,(We(),Bm),(Cu(),i=c(Jf(iM),10),new ga(i,c(mf(i,i.length),10),0)))}function zen(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y;if(n.Tg("Network simplex layering",1),e.b=t,Y=c($(t,(We(),xE)),15).a*4,G=e.b.a,G.c.length<1){n.Ug();return}for(o=NKt(e,G),F=null,r=Ln(o,0);r.b!=r.d.c;){for(i=c(_n(r),16),d=Y*ys(p.Math.sqrt(i.gc())),a=QKt(i),zie(F1e(O8t(q1e(XZ(a),d),F),!0),n.dh(1)),A=e.b.b,R=new J(a.a);R.a<R.c.c.length;){for(L=c(U(R),126);A.c.length<=L.e;)Xp(A,A.c.length,new mc(e.b));k=c(L.f,9),zr(k,c(Xe(A,L.e),26))}if(o.b>1)for(F=Ce(Hn,li,30,e.b.b.c.length,15,1),T=0,v=new J(e.b.b);v.a<v.c.c.length;)b=c(U(v),26),F[T++]=b.a.c.length}G.c.length=0,e.a=null,e.b=null,e.c=null,n.Ug()}function Fen(e,t){var n,i,r,o,a,d,b,v,k,T;for(k=new Qe,T=new Ty,o=null,r=0,i=0;i<t.length;++i)switch(n=t[i],hBt(o,n)&&(r=l2e(e,T,k,QJ,r)),Oi(n,($e(),$w))&&(o=c($(n,$w),9)),n.k.g){case 0:for(b=Vge(M4(Po(n,(Ve(),Yt)),new IA));Ite(b);)a=c(Tbe(b),12),e.d[a.p]=r++,Rt(k.c,a);for(r=l2e(e,T,k,QJ,r),v=Vge(M4(Po(n,wn),new IA));Ite(v);)a=c(Tbe(v),12),e.d[a.p]=r++,Rt(k.c,a);break;case 3:Po(n,p9e).dc()||(a=c(Po(n,p9e).Xb(0),12),e.d[a.p]=r++,Rt(k.c,a)),Po(n,QJ).dc()||N0(T,n);break;case 1:for(d=Po(n,(Ve(),Zt)).Jc();d.Ob();)a=c(d.Pb(),12),e.d[a.p]=r++,Rt(k.c,a);Po(n,sn).Ic(new M$e(T,n))}return l2e(e,T,k,QJ,r),k}function Eye(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R;if(t==null||t.length==0)return null;if(o=c(Nc(e.f,t),21),!o){for(r=(L=new x1(e.d).a.vc().Jc(),new $2(L));r.a.Ob();)if(n=(a=c(r.a.Pb(),45),c(a.kd(),21)),d=n.f,R=t.length,jt(d.substr(d.length-R,R),t)&&(t.length==d.length||bs(d,d.length-t.length-1)==46)){if(o)return null;o=n}if(!o){for(i=(A=new x1(e.d).a.vc().Jc(),new $2(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,k=b.length;v<k;++v)if(d=b[v],R=t.length,jt(d.substr(d.length-R,R),t)&&(t.length==d.length||bs(d,d.length-t.length-1)==46)){if(o)return null;o=n}}}o&&lo(e.f,t,o)}return o}function qen(e,t){var n,i,r,o,a;for(n=new g4,a=!1,o=0;o<t.length;o++){if(i=(tn(o,t.length),t.charCodeAt(o)),i==32){for(mG(e,n,0),n.a+=" ",mG(e,n,0);o+1<t.length&&(tn(o+1,t.length),t.charCodeAt(o+1)==32);)++o;continue}if(a){i==39?o+1<t.length&&(tn(o+1,t.length),t.charCodeAt(o+1)==39)?(n.a+=String.fromCharCode(i),++o):a=!1:n.a+=String.fromCharCode(i);continue}if(Zh("GyMLdkHmsSEcDahKzZv",ml(i))>0){mG(e,n,0),n.a+=String.fromCharCode(i),r=pFt(t,o),mG(e,n,r),o+=r-1;continue}i==39?o+1<t.length&&(tn(o+1,t.length),t.charCodeAt(o+1)==39)?(n.a+="'",++o):a=!0:n.a+=String.fromCharCode(i)}mG(e,n,0),VGt(e)}function Hen(e,t,n,i,r){var o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe;for(fe=mqe(e),b=new Qe,o=e.c.length,v=o-1,k=o+1;fe.a.gc()!=0;){for(;n.b!=0;)Y=(pn(n.b!=0),c(wa(n,n.a.a),117)),fe.a.Ac(Y)!=null,Y.g=v--,gye(Y,t,n,i);for(;t.b!=0;)oe=(pn(t.b!=0),c(wa(t,t.a.a),117)),fe.a.Ac(oe)!=null,oe.g=k++,gye(oe,t,n,i);for(d=cs,F=fe.a.ec().Jc();F.Ob();){if(R=c(F.Pb(),117),!i&&R.b>0&&R.a<=0){b.c.length=0,Rt(b.c,R);break}L=R.i-R.d,L>=d&&(L>d&&(b.c.length=0,d=L),Rt(b.c,R))}b.c.length!=0&&(a=c(Xe(b,kG(r,b.c.length)),117),fe.a.Ac(a)!=null,a.g=k++,gye(a,t,n,i),b.c.length=0)}for(G=e.c.length+1,A=new J(e);A.a<A.c.c.length;)T=c(U(A),117),T.g<o&&(T.g=T.g+G)}function Gen(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y;for(v=Use,b=s3,Y=new Qe,R=new J(t);R.a<R.c.c.length;){for(L=c(U(R),9),r=new Qe,d=new Gt(Xt(vr(L).a.Jc(),new z));gn(d);)o=c(on(d),17),G=o.d.i,F=o.c.i,G.c.p==n&&Rt(r.c,G),F.c.p==n&&Rt(r.c,F);for(a=new Gt(Xt(Fi(L).a.Jc(),new z));gn(a);)o=c(on(a),17),G=o.d.i,F=o.c.i,G.c.p==n&&Rt(r.c,G),F.c.p==n&&Rt(r.c,F);r.c.length==0?Rt(Y.c,L):(Mt(),Rr(r,e.b),A=ge(be($(c(Xe(r,r.c.length/2|0),9),($e(),S3)))),_e(L,S3,A),v=p.Math.min(v,A),b=p.Math.max(b,A))}for(i=(b+v)/2,T=new J(Y);T.a<T.c.c.length;)k=c(U(T),9),_e(k,($e(),S3),i)}function Qen(e,t){var n,i,r,o,a,d,b,v,k,T,A;for(r=new J(e.a.b);r.a<r.c.c.length;)for(n=c(U(r),26),b=new J(n.a);b.a<b.c.c.length;)d=c(U(b),9),t.j[d.p]=d,t.i[d.p]=t.o==(bh(),Ph)?Gr:or;for(lc(e.c),a=e.a.b,t.c==(td(),Yg)&&(a=Tu(a)),kLt(e.e,t,e.b),j_(t.p,null),o=a.Jc();o.Ob();)for(n=c(o.Pb(),26),v=n.a,t.o==(bh(),Ph)&&(v=Tu(v)),A=v.Jc();A.Ob();)T=c(A.Pb(),9),t.g[T.p]==T&&Dot(e,T,t);for(ken(e,t),i=a.Jc();i.Ob();)for(n=c(i.Pb(),26),A=new J(n.a);A.a<A.c.c.length;)T=c(U(A),9),t.p[T.p]=t.p[t.g[T.p].p],T==t.g[T.p]&&(k=ge(t.i[t.j[T.p].p]),(t.o==(bh(),Ph)&&k>Gr||t.o==Hm&&k<or)&&(t.p[T.p]=ge(t.p[T.p])+k));e.e.wg()}function Uen(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G;if(it(nt($(n,(We(),Yv)))))for(d=new J(n.j);d.a<d.c.c.length;)for(a=c(U(d),12),A=rd(a.g),v=A,k=0,T=v.length;k<T;++k)b=v[k],o=b.d.i==n,r=o&&it(nt($(b,$m))),r&&(R=b.c,L=c(Jt(e.b,R),9),L||(L=OL(R,(es(),Fh),R.j,-1,null,null,R.o,c($(t,Xu),87),t),_e(L,($e(),Si),R),ci(e.b,R,L),Ue(t.a,L)),G=b.d,F=c(Jt(e.b,G),9),F||(F=OL(G,(es(),Fh),G.j,1,null,null,G.o,c($(t,Xu),87),t),_e(F,($e(),Si),G),ci(e.b,G,F),Ue(t.a,F)),i=fte(b),ks(i,c(Xe(L.j,0),12)),rs(i,c(Xe(F.j,0),12)),St(e.a,b,new lq(i,t,(Gs(),tl))),c($(t,($e(),Bc)),24).Ec((Qs(),Ma)))}function Jen(e,t,n,i,r){var o,a,d,b,v,k,T,A,L,R,F,G;for(o=new Qe,v=new J(i);v.a<v.c.c.length;)if(d=c(U(v),447),a=null,d.f==(Gs(),tl))for(R=new J(d.e);R.a<R.c.c.length;)L=c(U(R),17),G=L.d.i,Jr(G)==t?OVe(e,t,d,L,d.b,L.d):!n||xj(G,n)?AQt(e,t,d,i,L):(A=Zie(e,t,n,L,d.b,tl,a),A!=a&&Rt(o.c,A),A.c&&(a=A));else for(T=new J(d.e);T.a<T.c.c.length;)if(k=c(U(T),17),F=k.c.i,Jr(F)==t)OVe(e,t,d,k,k.c,d.b);else{if(!n||xj(F,n))continue;A=Zie(e,t,n,k,d.b,Vl,a),A!=a&&Rt(o.c,A),A.c&&(a=A)}for(b=new J(o);b.a<b.c.c.length;)d=c(U(b),447),Do(t.a,d.a,0)!=-1||Ue(t.a,d.a),d.c&&Rt(r.c,d)}function Wen(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we;for(r=c($(e,(Ii(),DE)),19),v=pi,k=pi,d=cs,b=cs,fe=Ln(e.b,0);fe.b!=fe.d.c;)Y=c(_n(fe),41),L=Y.e,R=Y.f,v=p.Math.min(v,L.a-R.a/2),k=p.Math.min(k,L.b-R.b/2),d=p.Math.max(d,L.a+R.a/2),b=p.Math.max(b,L.b+R.b/2);for(A=c(Ae(r,(Wo(),H9e)),100),oe=Ln(e.b,0);oe.b!=oe.d.c;)Y=c(_n(oe),41),T=$(Y,DE),he(T,209)&&(o=c(T,19),ha(o,Y.e.a,Y.e.b),dL(o,Y));for(G=Ln(e.a,0);G.b!=G.d.c;)F=c(_n(G),65),i=c($(F,DE),74),i&&(t=F.a,n=nC(i),pye(t,n));we=d-v+(A.b+A.c),a=b-k+(A.d+A.a),it(nt(Ae(r,(Pn(),hx))))||ww(r,we,a,!1,!1),ri(r,fx,we-(A.b+A.c)),ri(r,ax,a-(A.d+A.a))}function Wst(e){var t,n,i,r,o,a,d;for(t=0,o=new J(e.b.a);o.a<o.c.c.length;)i=c(U(o),197),i.b=0,i.c=0;for(ptt(e,0),jne(e,e.g),XG(e.c),I1e(e.c),n=(_r(),go),vL(lZ(Zy(vL(lZ(Zy(vL(Zy(e.c,n)),pYe(n)))),n))),Zy(e.c,go),bne(e,e.g),Zet(e,0),Cst(e,0),tit(e,1),ptt(e,1),jne(e,e.d),XG(e.c),a=new J(e.b.a);a.a<a.c.c.length;)i=c(U(a),197),t+=p.Math.abs(i.c);for(d=new J(e.b.a);d.a<d.c.c.length;)i=c(U(d),197),i.b=0,i.c=0;for(n=Aa,vL(lZ(Zy(vL(lZ(Zy(vL(I1e(Zy(e.c,n))),pYe(n)))),n))),Zy(e.c,go),bne(e,e.d),Zet(e,1),Cst(e,1),tit(e,0),I1e(e.c),r=new J(e.b.a);r.a<r.c.c.length;)i=c(U(r),197),t+=p.Math.abs(i.c);return t}function Ven(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F;for(n=c($(e,(We(),fr)),103),a=e.f,o=e.d,d=a.a+o.b+o.c,b=0-o.d-e.c.b,k=a.b+o.d+o.a-e.c.b,v=new Qe,T=new Qe,r=new J(t);r.a<r.c.c.length;){switch(i=c(U(r),9),n.g){case 1:case 2:case 3:LVt(i);break;case 4:A=c($(i,Hw),8),L=A?A.a:0,i.n.a=d*ge(be($(i,($e(),Bw))))-L,WH(i,!0,!1);break;case 5:R=c($(i,Hw),8),F=R?R.a:0,i.n.a=ge(be($(i,($e(),Bw))))-F,WH(i,!0,!1),a.a=p.Math.max(a.a,i.n.a+i.o.a/2)}switch(c($(i,($e(),Zo)),64).g){case 1:i.n.b=b,Rt(v.c,i);break;case 3:i.n.b=k,Rt(T.c,i)}}switch(n.g){case 1:case 2:nYe(v,e),nYe(T,e);break;case 3:iYe(v,e),iYe(T,e)}}function Xen(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R;for(n.Tg("Label dummy switching",1),i=c($(t,(We(),TJ)),233),o$t(t),r=kWt(t,i),e.a=Ce(is,io,30,t.b.c.length,15,1),d=(rk(),ee(Z(US,1),Re,233,0,[QS,tE,GS,Jv,b3,m3])),k=0,L=d.length;k<L;++k)if(o=d[k],(o==b3||o==m3||o==Jv)&&!c(Al(r.a,o)?r.b[o.g]:null,16).dc()){p$t(e,t);break}for(b=ee(Z(US,1),Re,233,0,[QS,tE,GS,Jv,b3,m3]),T=0,R=b.length;T<R;++T)o=b[T],o==b3||o==m3||o==Jv||_rt(e,c(Al(r.a,o)?r.b[o.g]:null,16));for(a=ee(Z(US,1),Re,233,0,[QS,tE,GS,Jv,b3,m3]),v=0,A=a.length;v<A;++v)o=a[v],(o==b3||o==m3||o==Jv)&&_rt(e,c(Al(r.a,o)?r.b[o.g]:null,16));e.a=null,n.Ug()}function Vst(e,t){var n,i,r,o,a,d,b,v,k;if(v=t,!(v.b==null||e.b==null)){for(Wy(e),fC(e),Wy(v),fC(v),n=Ce(Hn,li,30,e.b.length+v.b.length,15,1),k=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[k++]=r,n[k++]=o,i+=2):d<=r?(n[k++]=r,n[k++]=b,e.b[i]=b+1,a+=2):o<=b?(n[k++]=d,n[k++]=o,i+=2):(n[k++]=d,n[k++]=b,e.b[i]=b+1);else if(b<r)a+=2;else throw K(new Mo("Token#intersectRanges(): Internal Error: ["+e.b[i]+","+e.b[i+1]+"] & ["+v.b[a]+","+v.b[a+1]+"]"));for(;i<e.b.length;)n[k++]=e.b[i++],n[k++]=e.b[i++];e.b=Ce(Hn,li,30,k,15,1),yc(n,0,e.b,0,k)}}function Ken(e){var t,n,i,r,o,a,d;for(t=new Qe,e.g=new Qe,e.d=new Qe,a=new pv(new Hp(e.f.b).a);a.b;)o=Ry(a),Ue(t,c(c(o.kd(),49).b,84)),k1(c(o.jd(),598).yf())?Ue(e.d,c(o.kd(),49)):Ue(e.g,c(o.kd(),49));for(jne(e,e.d),jne(e,e.g),e.c=new pnt(e.b),S8t(e.c,(rge(),Hdt)),bne(e,e.d),bne(e,e.g),Or(t,e.c.a.b),e.e=new He(or,or),e.a=new He(Gr,Gr),i=new J(t);i.a<i.c.c.length;)n=c(U(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);H1e(e.c,new p0),d=0;do r=Wst(e),++d;while((d<2||r>Hg)&&d<10);H1e(e.c,new In),Wst(e),gNt(e.c),Een(e.f)}function Yen(e,t){var n,i,r,o,a,d,b,v,k,T,A;switch(e.k.g){case 1:if(i=c($(e,($e(),Si)),17),n=c($(i,lje),79),n?it(nt($(i,Vg)))&&(n=Awe(n)):n=new nu,v=c($(e,sh),12),v){if(k=Lo(ee(Z(Vr,1),Ge,8,0,[v.i.n,v.n,v.a])),t<=k.a)return k.b;sr(n,k,n.a,n.a.a)}if(T=c($(e,Ka),12),T){if(A=Lo(ee(Z(Vr,1),Ge,8,0,[T.i.n,T.n,T.a])),A.a<=t)return A.b;sr(n,A,n.c.b,n.c)}if(n.b>=2){for(b=Ln(n,0),a=c(_n(b),8),d=c(_n(b),8);d.a<t&&b.b!=b.d.c;)a=d,d=c(_n(b),8);return a.b+(t-a.a)/(d.a-a.a)*(d.b-a.b)}break;case 3:switch(o=c($(c(Xe(e.j,0),12),($e(),Si)),12),r=o.i,o.j.g){case 1:return r.n.b;case 3:return r.n.b+r.o.b}}return lve(e).b}function Zen(e){var t,n,i,r,o,a,d,b,v,k,T;for(a=new J(e.d.b);a.a<a.c.c.length;)for(o=c(U(a),26),b=new J(o.a);b.a<b.c.c.length;){if(d=c(U(b),9),it(nt($(d,(We(),fE))))&&!lv(sd(d))){i=c(C_t(sd(d)),17),k=i.c.i,k==d&&(k=i.d.i),T=new Ls(k,Hr(Ms(d.n),k.n)),ci(e.b,d,T);continue}r=new bf(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=Rze(GRe(qRe(HRe(new y1e,d),r),v1t),e.a),Ize(Y8t(qVe(new x1e,ee(Z(MU,1),It,60,0,[t])),t),e.a),v=new dY,ci(e.e,t,v),n=Vf(new Gt(Xt(vr(d).a.Jc(),new z)))-Vf(new Gt(Xt(Fi(d).a.Jc(),new z))),n<0?FD(v,!0,(_r(),go)):n>0&&FD(v,!0,(_r(),vo)),d.k==(Wt(),Ar)&&VHe(v),ci(e.f,d,t)}}function Xst(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe;for(v=or,k=or,d=Gr,b=Gr,A=new J(t.i);A.a<A.c.c.length;)T=c(U(A),68),r=c(c(Jt(e.g,T.a),49).b,19),ha(r,T.b.c,T.b.d),v=p.Math.min(v,r.i),k=p.Math.min(k,r.j),d=p.Math.max(d,r.i+r.g),b=p.Math.max(b,r.j+r.f);for(L=c(Ae(e.c,(oL(),qwt)),100),ww(e.c,d-v+(L.b+L.c),b-k+(L.d+L.a),!0,!0),Eve(e.c,-v+L.b,-k+L.d),i=new ln(mGe(e.c));i.e!=i.i.gc();)n=c(fn(i),74),a=nC(n),R=gie(n),G=ntt(n),F=new He(R.i+R.g/2,R.j+R.f/2),o=new He(G.i+G.g/2,G.j+G.f/2),Y=Hr(new He(o.a,o.b),F),Fj(Y,R.g,R.f),ji(F,Y),oe=Hr(new He(F.a,F.b),o),Fj(oe,G.g,G.f),ji(o,oe),B_(a,F.a,F.b),$_(a,o.a,o.b)}function Kst(e,t){var n,i,r,o,a,d,b,v,k,T;for(b=!0,r=0,v=e.g[t.p],k=t.o.b+e.o,n=e.d[t.p][2],Ou(e.b,v,ze(c(Xe(e.b,v),15).a-1+n)),Ou(e.c,v,ge(be(Xe(e.c,v)))-k+n*e.f),++v,v>=e.j?(++e.j,Ue(e.b,ze(1)),Ue(e.c,k)):(i=e.d[t.p][1],Ou(e.b,v,ze(c(Xe(e.b,v),15).a+1-i)),Ou(e.c,v,ge(be(Xe(e.c,v)))+k-i*e.f)),(e.r==(U0(),DP)&&(c(Xe(e.b,v),15).a>e.k||c(Xe(e.b,v-1),15).a>e.k)||e.r==LP&&(ge(be(Xe(e.c,v)))>e.n||ge(be(Xe(e.c,v-1)))>e.n))&&(b=!1),a=new Gt(Xt(vr(t).a.Jc(),new z));gn(a);)o=c(on(a),17),d=o.c.i,e.g[d.p]==v&&(T=Kst(e,d),r=r+c(T.a,15).a,b=b&&it(nt(T.b)));return e.g[t.p]=v,r=r+e.d[t.p][0],new Ls(ze(r),(zt(),!!b))}function etn(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me;return A=e.c[t],L=e.c[n],R=c($(A,($e(),Pk)),16),!!R&&R.gc()!=0&&R.Gc(L)||(F=A.k!=(Wt(),Er)&&L.k!=Er,G=c($(A,$w),9),Y=c($(L,$w),9),oe=G!=Y,fe=!!G&&G!=A||!!Y&&Y!=L,we=Jne(A,(Ve(),Yt)),Ne=Jne(L,wn),fe=fe|(Jne(A,wn)||Jne(L,Yt)),Me=fe&&oe||we||Ne,F&&Me)||A.k==(Wt(),$c)&&L.k==ar||L.k==(Wt(),$c)&&A.k==ar?!1:(k=e.c[t],o=e.c[n],r=ket(e.e,k,o,(Ve(),Zt)),b=ket(e.i,k,o,sn),SVt(e.f,k,o),v=_Ke(e.b,k,o)+c(r.a,15).a+c(b.a,15).a+e.f.d,d=_Ke(e.b,o,k)+c(r.b,15).a+c(b.b,15).a+e.f.b,e.a&&(T=c($(k,Si),12),a=c($(o,Si),12),i=set(e.g,T,a),v+=c(i.a,15).a,d+=c(i.b,15).a),v>d)}function Yst(e,t){var n,i,r,o,a;n=ge(be($(t,(We(),Nf)))),n<2&&_e(t,Nf,2),i=c($(t,Xu),87),i==(_r(),zh)&&_e(t,Xu,rG(t)),r=c($(t,Npt),15),r.a==0?_e(t,($e(),Rk),new yne):_e(t,($e(),Rk),new cH(r.a)),o=nt($(t,bE)),o==null&&_e(t,bE,(zt(),Se($(t,V1))===Se((R1(),w9)))),hr(new Tt(null,new Ct(t.a,16)),new s1e(e)),hr(jo(new Tt(null,new Ct(t.b,16)),new Gx),new o1e(e)),a=new Ust(t),_e(t,($e(),O3),a),a7(e.a),$u(e.a,(ts(),Af),c($(t,Fk),173)),$u(e.a,Zd,c($(t,MJ),173)),$u(e.a,Oc,c($(t,pE),173)),$u(e.a,jc,c($(t,DJ),173)),$u(e.a,Vs,O$t(c($(t,V1),225))),Wge(e.a,Xnn(t)),_e(t,Ole,dC(e.a,t))}function Mye(e,t,n,i,r){var o,a,d,b,v,k,T,A,L,R,F,G,Y;for(T=new xn,a=new Qe,Btt(e,n,e.d.zg(),a,T),Btt(e,i,e.d.Ag(),a,T),e.b=.2*(F=Unt(jo(new Tt(null,new Ct(a,16)),new FA)),G=Unt(jo(new Tt(null,new Ct(a,16)),new qA)),p.Math.min(F,G)),o=0,d=0;d<a.c.length-1;d++)for(b=(pt(d,a.c.length),c(a.c[d],117)),R=d+1;R<a.c.length;R++)o+=kye(e,b,(pt(R,a.c.length),c(a.c[R],117)));for(A=c($(t,($e(),Rk)),237),o>=2&&(Y=pit(a,!0,A),!e.e&&(e.e=new UDe(e)),dFt(e.e,Y,a,e.b)),qet(a,A),ctn(a),L=-1,k=new J(a);k.a<k.c.c.length;)v=c(U(k),117),!(p.Math.abs(v.s-v.c)<dd)&&(L=p.Math.max(L,v.o),e.d.xg(v,r,e.c));return e.d.a.a.$b(),L+1}function ttn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we;for(T=c(VF((a=Ln(new y1(t).a.d,0),new dy(a))),41),R=T?c($(T,(Ii(),yue)),41):null,r=1;T&&R;){for(b=0,we=0,n=T,i=R,d=0;d<r;d++)n=dte(n),i=dte(i),we+=ge(be($(n,(Ii(),c9)))),b+=ge(be($(i,c9)));if(fe=ge(be($(R,(Ii(),Zg)))),oe=ge(be($(T,Zg))),A=s2e(e,T,R),L=fe+b+e.b+A-oe-we,0<L){for(v=t,k=0;v&&v!=i;)++k,v=c($(v,XJ),41);if(v)for(Y=L/k,v=t;v!=i;)G=ge(be($(v,Zg)))+L,_e(v,Zg,G),F=ge(be($(v,c9)))+L,_e(v,c9,F),L-=Y,v=c($(v,XJ),41);else return}++r,T.d.b==0?T=rye(new y1(t),r):T=c(VF((o=Ln(new y1(T).a.d,0),new dy(o))),41),R=T?c($(T,yue),41):null}}function ntn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R;for(t.Tg("Label dummy removal",1),i=ge(be($(e,(We(),C3)))),r=ge(be($(e,rx))),v=c($(e,Xu),87),b=new J(e.b);b.a<b.c.c.length;)for(d=c(U(b),26),T=new ss(d.a,0);T.b<T.d.gc();)k=(pn(T.b<T.d.gc()),c(T.d.Xb(T.c=T.b++),9)),k.k==(Wt(),fc)&&(A=c($(k,($e(),Si)),17),R=ge(be($(A,Xg))),a=Se($(k,Ik))===Se((Gu(),hp)),n=new Es(k.n),a&&(n.b+=R+i),o=new He(k.o.a,k.o.b+(k.k==fc&&!R6(bi(c($(k,cE),16).Mc(),new E6(new Qx))).zd((Jp(),Ck))?0:-R-i)),L=c($(k,cE),16),v==(_r(),Aa)||v==Bh?sWt(L,n,r,o,a,v):RBt(L,n,r,o),Or(A.b,L),ire(k,Se($(e,V1))===Se((R1(),tI))),iu(T));t.Ug()}function itn(e){e.q||(e.q=!0,e.p=Jo(e,0),e.a=Jo(e,1),qi(e.a,0),e.f=Jo(e,2),qi(e.f,1),ur(e.f,2),e.n=Jo(e,3),ur(e.n,3),ur(e.n,4),ur(e.n,5),ur(e.n,6),e.g=Jo(e,4),qi(e.g,7),ur(e.g,8),e.c=Jo(e,5),qi(e.c,7),qi(e.c,8),e.i=Jo(e,6),qi(e.i,9),qi(e.i,10),qi(e.i,11),qi(e.i,12),ur(e.i,13),e.j=Jo(e,7),qi(e.j,9),e.d=Jo(e,8),qi(e.d,3),qi(e.d,4),qi(e.d,5),qi(e.d,6),ur(e.d,7),ur(e.d,8),ur(e.d,9),ur(e.d,10),e.b=Jo(e,9),ur(e.b,0),ur(e.b,1),e.e=Jo(e,10),ur(e.e,1),ur(e.e,2),ur(e.e,3),ur(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),ur(e.e,11),e.k=Jo(e,11),ur(e.k,0),ur(e.k,1),e.o=hi(e,12),e.s=hi(e,13))}function rtn(e,t,n){var i,r,o,a,d,b,v,k;if(e.c.length!=0)for(e.c.length==1&&Ue(t,(pt(0,e.c.length),c(e.c[0],19))),e.c.length==2&&(a=(pt(0,e.c.length),c(e.c[0],19)),v=(pt(1,e.c.length),c(e.c[1],19)),c(Ae(a,(Gd(),JP)),15).a>c(Ae(v,JP),15).a?(Rt(t.c,v),Rt(n.c,a)):(Rt(t.c,a),Rt(n.c,v))),r=new Qe,k=new wK,k.a=0,k.b=0,i=(pt(0,e.c.length),c(e.c[0],19)),Rt(r.c,i),d=1;d<e.c.length;d++)b=(pt(d,e.c.length),c(e.c[d],19)),Ci(i.j,b.j)==0||(o=cst(r,k),Or(t,new nd(r,0,o+1)),Or(n,new nd(r,o+1,r.c.length)),r=new Qe),Rt(r.c,b),i=b,d==e.c.length-1&&(o=cst(r,k),Or(t,new nd(r,0,o+1)),Or(n,new nd(r,o+1,r.c.length)))}function Aye(e,t){t.dc()&&Id(e.j,!0,!0,!0,!0),ki(t,(Ve(),Rf))&&Id(e.j,!0,!0,!0,!1),ki(t,Na)&&Id(e.j,!1,!0,!0,!0),ki(t,Yu)&&Id(e.j,!0,!0,!1,!0),ki(t,ef)&&Id(e.j,!0,!1,!0,!0),ki(t,Xl)&&Id(e.j,!1,!0,!0,!1),ki(t,_a)&&Id(e.j,!1,!0,!1,!0),ki(t,Zu)&&Id(e.j,!0,!1,!1,!0),ki(t,$f)&&Id(e.j,!0,!1,!0,!1),ki(t,kl)&&Id(e.j,!0,!0,!0,!0),ki(t,al)&&Id(e.j,!0,!0,!0,!0),ki(t,kl)&&Id(e.j,!0,!0,!0,!0),ki(t,yl)&&Id(e.j,!0,!0,!0,!0),ki(t,Ol)&&Id(e.j,!0,!0,!0,!0),ki(t,Kl)&&Id(e.j,!0,!0,!0,!0),ki(t,zc)&&Id(e.j,!0,!0,!0,!0)}function Zst(e,t,n){var i,r,o,a,d,b,v,k,T;if(e.a!=t.hk())throw K(new Ht(AS+t.ve()+Aw));if(i=Rg((Pl(),ms),t).Hl(),i)return i.hk().ti().oi(i,n);if(a=Rg(ms,t).Jl(),a){if(n==null)return null;if(d=c(n,16),d.dc())return"";for(T=new kg,o=d.Jc();o.Ob();)r=o.Pb(),Zs(T,a.hk().ti().oi(a,r)),T.a+=" ";return jZ(T,T.a.length-1)}if(k=Rg(ms,t).Kl(),!k.dc()){for(v=k.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),!he(A,102))throw K(A)}throw K(new Ht("Invalid value: '"+n+"' for datatype :"+t.ve()))}return c(t,839).mk(),n==null?null:he(n,183)?""+c(n,183).a:ju(n)==jU?cze(oM[0],c(n,208)):So(n)}function eot(e,t,n){var i,r,o,a;this.j=e,this.e=bve(e),this.o=this.j.e,this.i=!!this.o,this.p=this.i?c(Xe(n,Jr(this.o).p),221):null,r=c($(e,($e(),Bc)),24),this.g=r.Gc((Qs(),Ma)),this.b=new Qe,this.d=new BYe(this.e),a=c($(this.j,Rk),237),this.q=b$t(t,a,this.e),this.k=new oQe(this),o=vf(ee(Z(y1t,1),It,223,0,[this,this.d,this.k,this.q])),t==(mm(),IP)&&!it(nt($(e,(We(),YS))))?(i=new xve(this.e),Rt(o.c,i),this.c=new zme(i,a,c(this.q,411))):t==IP&&it(nt($(e,(We(),YS))))?(i=new xve(this.e),Rt(o.c,i),this.c=new aXe(i,a,c(this.q,411))):t==HJ?this.c=new NGe(a):this.c=new k$e(t,this),Ue(o,this.c),Mst(o,this.e),this.s=Ann(this.k)}function stn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y;for(t.Tg("Interactive crossing minimization",1),a=0,o=new J(e.b);o.a<o.c.c.length;)i=c(U(o),26),i.p=a++;for(A=bve(e),G=new Q1e(A.length),Mst(new Qo(ee(Z(y1t,1),It,223,0,[G])),A),F=0,a=0,r=new J(e.b);r.a<r.c.c.length;){for(i=c(U(r),26),n=0,T=0,k=new J(i.a);k.a<k.c.c.length;)for(b=c(U(k),9),b.n.a>0&&(n+=b.n.a+b.o.a/2,++T),R=new J(b.j);R.a<R.c.c.length;)L=c(U(R),12),L.p=F++;for(T>0&&(n/=T),Y=Ce(is,io,30,i.a.c.length,15,1),d=0,v=new J(i.a);v.a<v.c.c.length;)b=c(U(v),9),b.p=d++,Y[b.p]=Yen(b,n),b.k==(Wt(),Er)&&_e(b,($e(),uje),Y[b.p]);Mt(),Rr(i.a,new jDe(Y)),Irt(G,A,a,!0),++a}t.Ug()}function otn(e){var t,n,i,r,o,a,d,b,v,k;for(v=new _i,d=new _i,o=new J(e);o.a<o.c.c.length;)i=c(U(o),134),i.v=0,i.n=i.i.c.length,i.u=i.t.c.length,i.n==0&&sr(v,i,v.c.b,v.c),i.u==0&&i.r.a.gc()==0&&sr(d,i,d.c.b,d.c);for(a=-1;v.b!=0;)for(i=c(nie(v,0),134),n=new J(i.t);n.a<n.c.c.length;)t=c(U(n),275),k=t.b,k.v=p.Math.max(k.v,i.v+1),a=p.Math.max(a,k.v),--k.n,k.n==0&&sr(v,k,v.c.b,v.c);if(a>-1){for(r=Ln(d,0);r.b!=r.d.c;)i=c(_n(r),134),i.v=a;for(;d.b!=0;)for(i=c(nie(d,0),134),n=new J(i.i);n.a<n.c.c.length;)t=c(U(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&&sr(d,b,d.c.b,d.c))}}function ctn(e){var t,n,i,r,o,a,d,b,v,k;for(v=new Qe,d=new Qe,a=new J(e);a.a<a.c.c.length;)r=c(U(a),117),c_(r,r.f.c.length),j6(r,r.k.c.length),r.d==0&&Rt(v.c,r),r.i==0&&r.e.b==0&&Rt(d.c,r);for(i=-1;v.c.length!=0;)for(r=c(Ng(v,0),117),n=new J(r.k);n.a<n.c.c.length;)t=c(U(n),135),k=t.b,S6(k,p.Math.max(k.o,r.o+1)),i=p.Math.max(i,k.o),c_(k,k.d-1),k.d==0&&Rt(v.c,k);if(i>-1){for(o=new J(d);o.a<o.c.c.length;)r=c(U(o),117),r.o=i;for(;d.c.length!=0;)for(r=c(Ng(d,0),117),n=new J(r.f);n.a<n.c.c.length;)t=c(U(n),135),b=t.a,!(b.e.b>0)&&(S6(b,p.Math.min(b.o,r.o-1)),j6(b,b.i-1),b.i==0&&Rt(d.c,b))}}function tot(e,t,n,i,r){var o,a,d,b;return b=or,a=!1,d=xye(e,Hr(new He(t.a,t.b),e),ji(new He(n.a,n.b),r),Hr(new He(i.a,i.b),n)),o=!!d&&!(p.Math.abs(d.a-e.a)<=Ew&&p.Math.abs(d.b-e.b)<=Ew||p.Math.abs(d.a-t.a)<=Ew&&p.Math.abs(d.b-t.b)<=Ew),d=xye(e,Hr(new He(t.a,t.b),e),n,r),d&&((p.Math.abs(d.a-e.a)<=Ew&&p.Math.abs(d.b-e.b)<=Ew)==(p.Math.abs(d.a-t.a)<=Ew&&p.Math.abs(d.b-t.b)<=Ew)||o?b=p.Math.min(b,c7(Hr(d,n))):a=!0),d=xye(e,Hr(new He(t.a,t.b),e),i,r),d&&(a||(p.Math.abs(d.a-e.a)<=Ew&&p.Math.abs(d.b-e.b)<=Ew)==(p.Math.abs(d.a-t.a)<=Ew&&p.Math.abs(d.b-t.b)<=Ew)||o)&&(b=p.Math.min(b,c7(Hr(d,i)))),b}function not(e){Bb(e,new ym(p_(Ib(Db(Pb(Lb(new p1,V0),Yct),"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 p5),cl))),Fe(e,V0,pS,Ke(COe)),Fe(e,V0,FL,(zt(),!0)),Fe(e,V0,i3,Ke(Ldt)),Fe(e,V0,yk,Ke(Pdt)),Fe(e,V0,xk,Ke(Idt)),Fe(e,V0,wS,Ke(Ddt)),Fe(e,V0,mS,Ke(MOe)),Fe(e,V0,vS,Ke(Rdt)),Fe(e,V0,p3e,Ke(TOe)),Fe(e,V0,b3e,Ke(jOe)),Fe(e,V0,w3e,Ke(SOe)),Fe(e,V0,v3e,Ke(EOe)),Fe(e,V0,m3e,Ke(IU))}function ltn(e){var t,n,i,r,o,a,d,b;for(t=null,i=new J(e);i.a<i.c.c.length;)n=c(U(i),242),ge(mh(n.g,n.d[0]).a),n.b=null,n.e&&n.e.gc()>0&&n.c==0&&(!t&&(t=new Qe),Rt(t.c,n));if(t)for(;t.c.length!=0;){if(n=c(Ng(t,0),242),n.b&&n.b.c.length>0){for(o=(!n.b&&(n.b=new Qe),new J(n.b));o.a<o.c.c.length;)if(r=c(U(o),242),g_(mh(r.g,r.d[0]).a)==g_(mh(n.g,n.d[0]).a)){if(Do(e,r,0)>Do(e,n,0))return new Ls(r,n)}else if(ge(mh(r.g,r.d[0]).a)>ge(mh(n.g,n.d[0]).a))return new Ls(r,n)}for(d=(!n.e&&(n.e=new Qe),n.e).Jc();d.Ob();)a=c(d.Pb(),242),b=(!a.b&&(a.b=new Qe),a.b),cv(0,b.c.length),AT(b.c,0,n),a.c==b.c.length&&Rt(t.c,a)}return null}function gC(e,t){var n,i,r,o,a,d,b,v,k;if(t.e==5){Vst(e,t);return}if(v=t,!(v.b==null||e.b==null)){for(Wy(e),fC(e),Wy(v),fC(v),n=Ce(Hn,li,30,e.b.length+v.b.length,15,1),k=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[k++]=e.b[i++],n[k++]=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[k++]=r,n[k++]=d-1,i+=2):(n[k++]=r,n[k++]=d-1,e.b[i]=b+1,a+=2);else if(b<r)a+=2;else throw K(new Mo("Token#subtractRanges(): Internal Error: ["+e.b[i]+","+e.b[i+1]+"] - ["+v.b[a]+","+v.b[a+1]+"]"));for(;i<e.b.length;)n[k++]=e.b[i++],n[k++]=e.b[i++];e.b=Ce(Hn,li,30,k,15,1),yc(n,0,e.b,0,k)}}function utn(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y;for(i=new J(e.e.b);i.a<i.c.c.length;)for(n=c(U(i),26),o=new J(n.a);o.a<o.c.c.length;)if(r=c(U(o),9),L=e.i[r.p],v=L.a.e,b=L.d.e,r.n.b=v,Y=b-v-r.o.b,t=Yie(r),A=(kv(),(r.q?r.q:(Mt(),Mt(),Yd))._b((We(),qw))?T=c($(r,qw),205):T=c($(Jr(r),wE),205),T),t&&(A==M3||A==E3)&&(r.o.b+=Y),t&&(A==Zle||A==M3||A==E3)){for(F=new J(r.j);F.a<F.c.c.length;)R=c(U(F),12),(Ve(),al).Gc(R.j)&&(k=c(Jt(e.k,R),126),R.n.b=k.e-v);for(d=new J(r.b);d.a<d.c.c.length;)a=c(U(d),70),G=c($(r,Fw),24),G.Gc((Cv(),Za))?a.n.b+=Y:G.Gc(i1)&&(a.n.b+=Y/2);(A==M3||A==E3)&&Po(r,(Ve(),wn)).Ic(new zDe(Y))}}function atn(e){var t,n,i,r,o,a,d;if(!e.A.dc()){if(e.A.Gc((Cu(),lI))&&(c(eo(e.b,(Ve(),Yt)),129).k=!0,c(eo(e.b,wn),129).k=!0,t=e.q!=(es(),r1)&&e.q!=Sc,Mb(c(eo(e.b,sn),129),t),Mb(c(eo(e.b,Zt),129),t),Mb(e.g,t),e.A.Gc(Wm)&&(c(eo(e.b,Yt),129).j=!0,c(eo(e.b,wn),129).j=!0,c(eo(e.b,sn),129).k=!0,c(eo(e.b,Zt),129).k=!0,e.g.k=!0)),e.A.Gc(cI))for(e.a.j=!0,e.a.k=!0,e.g.j=!0,e.g.k=!0,d=e.B.Gc((uu(),rM)),r=Lne(),o=0,a=r.length;o<a;++o)i=r[o],n=c(eo(e.i,i),319),n&&(S2e(i)?(n.j=!0,n.k=!0):(n.j=!d,n.k=!d));e.A.Gc(bx)&&e.B.Gc((uu(),aI))&&(e.g.j=!0,e.g.j=!0,e.a.j||(e.a.j=!0,e.a.k=!0,e.a.e=!0))}}function ftn(e,t,n){var i,r,o,a,d,b,v,k,T,A;for(v=new Qe,b=new J(t.a);b.a<b.c.c.length;)for(a=c(U(b),9),A=Po(a,(Ve(),sn)).Jc();A.Ob();)for(T=c(A.Pb(),12),r=new J(T.g);r.a<r.c.c.length;)i=c(U(r),17),!(!vs(i)&&i.c.i.c==i.d.i.c||vs(i)||i.d.i.c!=n)&&Rt(v.c,i);for(d=Tu(n.a).Jc();d.Ob();)for(a=c(d.Pb(),9),A=Po(a,(Ve(),Zt)).Jc();A.Ob();)for(T=c(A.Pb(),12),r=new J(T.e);r.a<r.c.c.length;)if(i=c(U(r),17),!(!vs(i)&&i.c.i.c==i.d.i.c||vs(i)||i.c.i.c!=t)&&v.c.length!=0){for(k=new ss(v,v.c.length),o=(pn(k.b>0),c(k.a.Xb(k.c=--k.b),17));o!=i&&k.b>0;)e.a[o.p]=!0,e.a[i.p]=!0,o=(pn(k.b>0),c(k.a.Xb(k.c=--k.b),17));k.b>0&&iu(k)}}function iot(e,t,n){var i,r,o,a,d,b,v,k,T,A;if(n)for(i=-1,k=new ss(t,0);k.b<k.d.gc();){if(d=(pn(k.b<k.d.gc()),c(k.d.Xb(k.c=k.b++),9)),T=e.c[d.c.p][d.p].a,T==null){for(a=i+1,o=new ss(t,k.b);o.b<o.d.gc();)if(A=b7t(e,(pn(o.b<o.d.gc()),c(o.d.Xb(o.c=o.b++),9))).a,A!=null){a=(Ft(A),A);break}T=(i+a)/2,e.c[d.c.p][d.p].a=T,e.c[d.c.p][d.p].d=(Ft(T),T),e.c[d.c.p][d.p].b=1}i=(Ft(T),T)}else{for(r=0,v=new J(t);v.a<v.c.c.length;)d=c(U(v),9),e.c[d.c.p][d.p].a!=null&&(r=p.Math.max(r,ge(e.c[d.c.p][d.p].a)));for(r+=2,b=new J(t);b.a<b.c.c.length;)d=c(U(b),9),e.c[d.c.p][d.p].a==null&&(T=lu(e.i,24)*IL*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 htn(e){var t,n,i,r,o,a,d,b,v,k,T,A;for(r=new J(e.a.a.b);r.a<r.c.c.length;)for(i=c(U(r),60),b=i.c.Jc();b.Ob();)d=c(b.Pb(),60),i.a!=d.a&&(k1(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),Cbe(i,d)?(a=qb(new Qp,e.d),v=ys(p.Math.ceil(d.b.a-i.b.a)),t=v-(d.b.a-i.b.a),k=z4(i).a,n=i,k||(k=z4(d).a,t=-t,n=d),k&&(n.b.a-=t,k.n.a-=t),Sf(ff(df(gf(hf(new $a,p.Math.max(0,v)),1),a),e.c[i.a.d])),Sf(ff(df(gf(hf(new $a,p.Math.max(0,-v)),1),a),e.c[d.a.d]))):(A=1,(he(i.g,157)&&he(d.g,9)||he(d.g,157)&&he(i.g,9))&&(A=2),Sf(ff(df(gf(hf(new $a,ys(o)),A),e.c[i.a.d]),e.c[d.a.d]))))}function rot(e,t,n){var i,r,o,a,d,b,v,k,T,A,L;if(!e.b)return!1;for(a=null,A=null,b=new bte(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||bc(T.e,n.d))&&(a=T),!(T&&T.b)&&!z2(T.a[r])&&(z2(T.a[1-r])?A=A.a[v]=$H(T,r):z2(T.a[1-r])||(L=A.a[1-v],L&&(!z2(L.a[1-v])&&!z2(L.a[v])?(A.b=!1,L.b=!0,T.b=!0):(o=d.a[1]==A?1:0,z2(L.a[v])?d.a[o]=tUe(A,v):z2(L.a[1-v])&&(d.a[o]=$H(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&&(k=new bte(T.d,T.e),wQt(e,b,a,k),A==a&&(A=k)),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 dtn(e,t,n){var i,r,o,a,d,b,v,k,T;for(!n&&(n=H$t(t.q.getTimezoneOffset())),r=(t.q.getTimezoneOffset()-n.a)*6e4,d=new $0e(As(nc(t.q.getTime()),r)),b=d,d.q.getTimezoneOffset()!=t.q.getTimezoneOffset()&&(r>0?r-=864e5:r+=864e5,b=new $0e(As(nc(t.q.getTime()),r))),k=new g4,v=e.a.length,o=0;o<v;)if(i=bs(e.a,o),i>=97&&i<=122||i>=65&&i<=90){for(a=o+1;a<v&&bs(e.a,a)==i;++a);fin(k,i,a-o,d,b,n),o=a}else if(i==39){if(++o,o<v&&bs(e.a,o)==39){k.a+="'",++o;continue}for(T=!1;!T;){for(a=o;a<v&&bs(e.a,a)!=39;)++a;if(a>=v)throw K(new Ht("Missing trailing '"));a+1<v&&bs(e.a,a+1)==39?++a:T=!0,ti(k,qa(e.a,o,a)),o=a+1}}else k.a+=String.fromCharCode(i),++o;return k.a}function gtn(){ui(xx,new cc),ui(oi,new _2),ui(tf,new G8),ui(ah,new MN),ui(efe,new AN),ui(IW,new PB),ui(eg,new p6),ui(sM,new NN),ui(gI,new h6),ui(Wae,new F5),ui(mp,new AB),ui(nf,new NB),ui(uh,new d6),ui(Jw,new _B),ui(yx,new F8),ui(jl,new DB),ui(vx,new xK),ui(ec,new yK),ui(Ks,new nl),ui(fl,new ro),ui(cr,new bo),ui(Z(Bl,1),new Cc),ui(Sk,new m1),ui(UC,new N2),ui(jU,new q5),ui(QCe,new TN),ui(Sr,new Cb),ui(oCe,new pu),ui(uCe,new ly),ui(_Ce,new CN),ui(RW,new b1),ui($S,new H5),ui(Pr,new g6),ui(Ake,new _d),ui(_w,new EN),ui(Nke,new q8),ui(ECe,new LB),ui(UCe,new H8),ui(Dw,new D2),ui(st,new Ra),ui(lCe,new L2),ui(JCe,new G5)}function sot(e,t){var n,i,r,o,a,d,b,v,k;if(e==null)return wl;if(b=t.a.yc(e,t),b!=null)return"[...]";for(n=new dm(Yc,"[","]"),r=e,o=0,a=r.length;o<a;++o)i=r[o],i!=null&&(ju(i).i&4)!=0?Array.isArray(i)&&(k=CD(i),!(k>=14&&k<=16))?t.a._b(i)?(n.a?ti(n.a,n.b):n.a=new Iu(n.d),HT(n.a,"[...]")):(d=U4(i),v=new Y2(t),A1(n,sot(d,v))):he(i,172)?A1(n,XUt(c(i,172))):he(i,198)?A1(n,IGt(c(i,198))):he(i,203)?A1(n,HQt(c(i,203))):he(i,2090)?A1(n,RGt(c(i,2090))):he(i,54)?A1(n,VUt(c(i,54))):he(i,591)?A1(n,lJt(c(i,591))):he(i,838)?A1(n,WUt(c(i,838))):he(i,109)&&A1(n,JUt(c(i,109))):A1(n,i==null?wl:So(i));return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function tS(e,t){var n,i,r,o;o=e.F,t==null?(e.F=null,Cj(e,null)):(e.F=(Ft(t),t),i=Zh(t,ml(60)),i!=-1?(r=(as(0,i,t.length),t.substr(0,i)),Zh(t,ml(46))==-1&&!jt(r,hk)&&!jt(r,RC)&&!jt(r,lU)&&!jt(r,$C)&&!jt(r,BC)&&!jt(r,zC)&&!jt(r,FC)&&!jt(r,qC)&&(r=Zat),n=KF(t,ml(62)),n!=-1&&(r+=""+(tn(n+1,t.length+1),t.substr(n+1))),Cj(e,r)):(r=t,Zh(t,ml(46))==-1&&(i=Zh(t,ml(91)),i!=-1&&(r=(as(0,i,t.length),t.substr(0,i))),!jt(r,hk)&&!jt(r,RC)&&!jt(r,lU)&&!jt(r,$C)&&!jt(r,BC)&&!jt(r,zC)&&!jt(r,FC)&&!jt(r,qC)?(r=Zat,i!=-1&&(r+=""+(tn(i,t.length+1),t.substr(i)))):r=t),Cj(e,r),r==t&&(e.F=e.D))),(e.Db&4)!=0&&(e.Db&1)==0&&yi(e,new Ur(e,1,5,o,t))}function ptn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R;if(e.c=e.e,R=nt($(t,(We(),_pt))),L=R==null||(Ft(R),R),o=c($(t,($e(),Bc)),24).Gc((Qs(),Ma)),r=c($(t,fr),103),n=!(r==(es(),Jm)||r==r1||r==Sc),L&&(n||!o)){for(T=new J(t.a);T.a<T.c.c.length;)v=c(U(T),9),v.p=0;for(A=new Qe,k=new J(t.a);k.a<k.c.c.length;)if(v=c(U(k),9),i=qrt(e,v,null),i){for(b=new Gbe,ic(b,t),_e(b,J1,c(i.b,24)),gme(b.d,t.d),_e(b,ZS,null),d=c(i.a,16).Jc();d.Ob();)a=c(d.Pb(),9),Ue(b.a,a),a.a=b;A.Ec(b)}o&&(Se($(t,hE))===Se((Z4(),_ce))?e.c=e.b:Se($(t,hE))===Se(Dce)?e.c=e.d:e.c=e.a)}else A=new Qo(ee(Z(t1t,1),elt,37,0,[t]));return Se($(t,hE))!==Se((Z4(),YC))&&(Mt(),A.gd(new Y9)),A}function oot(e,t){var n,i,r,o,a,d,b,v,k,T;if(b=t.length-1,d=(tn(b,t.length),t.charCodeAt(b)),d==93){if(a=Zh(t,ml(91)),a>=0)return r=Czt(e,(as(1,a,t.length),t.substr(1,a-1))),k=(as(a+1,b,t.length),t.substr(a+1,b-(a+1))),Fnn(e,k,r)}else{if(n=-1,Fke==null&&(Fke=new RegExp("\\d")),Fke.test(String.fromCharCode(d))&&(n=Y0e(t,ml(46),b-1),n>=0)){i=c(ate(e,TVe(e,(as(1,n,t.length),t.substr(1,n-1))),!1),61),v=0;try{v=Qu((tn(n+1,t.length+1),t.substr(n+1)),cs,pi)}catch(A){throw A=kr(A),he(A,133)?(o=A,K(new vH(o))):K(A)}if(v<i.gc())return T=i.Xb(v),he(T,76)&&(T=c(T,76).kd()),c(T,57)}if(n<0)return c(ate(e,TVe(e,(tn(1,t.length+1),t.substr(1))),!1),57)}return null}function mtn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F;for(t.Tg("Label dummy insertions",1),T=new Qe,a=ge(be($(e,(We(),C3)))),v=ge(be($(e,rx))),k=c($(e,Xu),87),L=new J(e.a);L.a<L.c.c.length;)for(A=c(U(L),9),o=new Gt(Xt(Fi(A).a.Jc(),new z));gn(o);)if(r=c(on(o),17),r.c.i!=r.d.i&&_Z(r.b,a1t)){for(F=uRt(r),R=Pd(r.b.c.length),n=qWt(e,r,F,R),Rt(T.c,n),i=n.o,d=new ss(r.b,0);d.b<d.d.gc();)b=(pn(d.b<d.d.gc()),c(d.d.Xb(d.c=d.b++),70)),Se($(b,xd))===Se((kh(),m9))&&(k==(_r(),Aa)||k==Bh?(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),Rt(R.c,b),iu(d));k==(_r(),Aa)||k==Bh?(i.a-=v,i.b+=a+F):i.b+=a-v+F}Or(e.a,T),t.Ug()}function nS(e,t,n){var i,r,o,a,d,b,v;if(v=e.c,!t&&(t=wCe),e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&(b=new Ur(e,1,2,v,e.c),n?n.lj(b):n=b),v!=t){if(he(e.Cb,294))e.Db>>16==-10?n=c(e.Cb,294).Wk(t,n):e.Db>>16==-15&&(!t&&(t=(At(),Hh)),!v&&(v=(At(),Hh)),e.Cb.Vh()&&(b=new N1(e.Cb,1,13,v,t,zg(ou(c(e.Cb,62)),e),!1),n?n.lj(b):n=b));else if(he(e.Cb,89))e.Db>>16==-23&&(he(t,89)||(t=(At(),sf)),he(v,89)||(v=(At(),sf)),e.Cb.Vh()&&(b=new N1(e.Cb,1,10,v,t,zg(wc(c(e.Cb,29)),e),!1),n?n.lj(b):n=b));else if(he(e.Cb,449))for(d=c(e.Cb,842),a=(!d.b&&(d.b=new qz(new yY)),d.b),o=(i=new pv(new Hp(a.a).a),new Hz(i));o.a.b;)r=c(Ry(o.a).jd(),88),n=nS(r,UG(r,d),n)}return n}function btn(e,t){var n,i,r,o,a,d,b,v,k,T,A;for(a=it(nt(Ae(e,(We(),Yv)))),A=c(Ae(e,tx),24),b=!1,v=!1,T=new ln((!e.c&&(e.c=new Le(hu,e,9,9)),e.c));T.e!=T.i.gc()&&(!b||!v);){for(o=c(fn(T),127),d=0,r=Bd(va(ee(Z(Ea,1),It,22,0,[(!o.d&&(o.d=new Et($i,o,8,5)),o.d),(!o.e&&(o.e=new Et($i,o,7,4)),o.e)])));gn(r)&&(i=c(on(r),74),k=a&&gw(i)&&it(nt(Ae(i,$m))),n=$st((!i.b&&(i.b=new Et(yn,i,4,7)),i.b),o)?e==Ki(no(c(ae((!i.c&&(i.c=new Et(yn,i,5,8)),i.c),0),83))):e==Ki(no(c(ae((!i.b&&(i.b=new Et(yn,i,4,7)),i.b),0),83))),!((k||n)&&(++d,d>1))););(d>0||A.Gc((Ul(),Z1))&&(!o.n&&(o.n=new Le(Bo,o,1,7)),o.n).i>0)&&(b=!0),d>1&&(v=!0)}b&&t.Ec((Qs(),Ma)),v&&t.Ec((Qs(),rE))}function cot(e){var t,n,i,r,o,a,d,b,v,k,T,A;if(A=c(Ae(e,(Pn(),Um)),24),A.dc())return null;if(d=0,a=0,A.Gc((Cu(),lI))){for(k=c(Ae(e,d9),103),i=2,n=2,r=2,o=2,t=Ki(e)?c(Ae(Ki(e),Qm),87):c(Ae(e,Qm),87),v=new ln((!e.c&&(e.c=new Le(hu,e,9,9)),e.c));v.e!=v.i.gc();)if(b=c(fn(v),127),T=c(Ae(b,B3),64),T==(Ve(),$o)&&(T=dye(b,t),ri(b,B3,T)),k==(es(),Sc))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 ww(e,d,a,!0,!0)}function wtn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F;for(r=null,i=new J(t.a);i.a<i.c.c.length;)n=c(U(i),9),Yie(n)?o=(d=qb(y_(new Qp,n),e.f),b=qb(y_(new Qp,n),e.f),v=new dme(n,!0,d,b),k=n.o.b,T=(kv(),(n.q?n.q:(Mt(),Mt(),Yd))._b((We(),qw))?A=c($(n,qw),205):A=c($(Jr(n),wE),205),A),L=1e4,T==E3&&(L=1),R=Sf(ff(df(hf(gf(new $a,L),ys(p.Math.ceil(k))),d),b)),T==M3&&Cr(e.d,R),zrt(e,Tu(Po(n,(Ve(),Zt))),v),zrt(e,Po(n,sn),v),v):o=(F=qb(y_(new Qp,n),e.f),hr(bi(new Tt(null,new Ct(n.j,16)),new o$),new C$e(e,F)),new dme(n,!1,F,F)),e.i[n.p]=o,r&&(a=r.c.d.a+Sy(e.n,r.c,n)+n.d.d,r.b||(a+=r.c.o.b),Sf(ff(df(gf(hf(new $a,ys(p.Math.ceil(a))),0),r.d),o.a))),r=o}function rre(e,t,n,i,r){var o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we;for(oe=c(Gl(SH(bi(new Tt(null,new Ct(t.d,16)),new hDe(n)),new dDe(n)),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[(ya(),vl)]))),16),T=pi,k=cs,b=new J(t.b.j);b.a<b.c.c.length;)d=c(U(b),12),d.j==n&&(T=p.Math.min(T,d.p),k=p.Math.max(k,d.p));if(T==pi)for(a=0;a<oe.gc();a++)xbe(c(oe.Xb(a),108),n,a);else for(fe=Ce(Hn,li,30,r.length,15,1),FAt(fe,fe.length),Y=oe.Jc();Y.Ob();){for(G=c(Y.Pb(),108),o=c(Jt(e.b,G),172),v=0,F=T;F<=k;F++)o[F]&&(v=p.Math.max(v,i[F]));if(G.i){for(L=G.i.c,we=new Tr,A=0;A<r.length;A++)r[L][A]&&Cr(we,ze(fe[A]));for(;Ba(we,ze(v));)++v}for(xbe(G,n,v),R=T;R<=k;R++)o[R]&&(i[R]=v+1);G.i&&(fe[G.i.c]=v)}}function lot(e,t){var n,i,r,o,a,d,b,v;for(_e(t,($e(),lE),ze(e.b)),_e(t,$k,ze(e.b)),++e.b,FBe(e.d,t),_e(t,xJ,(zt(),!0)),i=new Gt(Xt(sd(t).a.Jc(),new z));gn(i);)n=c(on(i),17),!(n.c.i!=t&&Do(e.a,n,0)==-1)&&(n.c.i==t&&Do(e.a,n,0)!=-1||(v=null,n.d.i==t?v=n.c.i:v=n.d.i,c($(v,lE),15).a==-1?(lot(e,v),_e(t,$k,ze(p.Math.min(c($(t,$k),15).a,c($(v,$k),15).a)))):it(nt($(v,xJ)))&&_e(t,$k,ze(p.Math.min(c($(t,$k),15).a,c($(v,lE),15).a)))));if(Se($(t,$k))===Se($(t,lE))){b=new Tr,o=null;do o=c(Iwe(e.d),9),_e(o,xJ,!1),b.a.yc(o,b);while(t!=o);if(b.a.gc()>1)for(r=e.e.b,ni(e.e,b),d=b.a.ec().Jc();d.Ob();)a=c(d.Pb(),9),ci(e.c,a,ze(r))}}function vtn(e,t,n,i){var r,o,a,d,b,v,k,T,A,L;for(o=new vnt(t),T=HXt(e,t,o),L=p.Math.max(ge(be($(t,(We(),Xg)))),1),k=new J(T.a);k.a<k.c.c.length;)v=c(U(k),49),b=oZe(c(v.a,8),c(v.b,8),L),O=!0,O=O&Gb(n,new He(b.c,b.d)),O=O&Gb(n,W2(new He(b.c,b.d),b.b,0)),O=O&Gb(n,W2(new He(b.c,b.d),0,b.a)),O&Gb(n,W2(new He(b.c,b.d),b.b,b.a));switch(A=o.d,d=oZe(c(T.b.a,8),c(T.b.b,8),L),A==(Ve(),Zt)||A==sn?(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 xtn(e,t,n){var i,r,o,a,d,b,v,k,T,A,L;if(o=c($(e,($e(),Si)),74),!!o){for(i=e.a,r=new Es(n),ji(r,iGt(e)),xj(e.d.i,e.c.i)?(A=e.c,T=Lo(ee(Z(Vr,1),Ge,8,0,[A.n,A.a])),Hr(T,n)):T=vh(e.c),sr(i,T,i.a,i.a.a),L=vh(e.d),$(e,Sle)!=null&&ji(L,c($(e,Sle),8)),sr(i,L,i.c.b,i.c),gv(i,r),a=nC(o),PH(a,c(ae((!o.b&&(o.b=new Et(yn,o,4,7)),o.b),0),83)),IH(a,c(ae((!o.c&&(o.c=new Et(yn,o,5,8)),o.c),0),83)),pye(i,a),k=new J(e.b);k.a<k.c.c.length;)v=c(U(k),70),d=c($(v,Si),158),am(d,v.o.a),um(d,v.o.b),ha(d,v.n.a+r.a,v.n.b+r.b),ri(d,(J4(),$ce),nt($(v,$ce)));b=c($(e,(We(),ho)),79),b?(gv(b,r),ri(o,ho,b)):ri(o,ho,null),t==(R1(),Kk)?ri(o,V1,Kk):ri(o,V1,null)}}function ytn(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe;for(L=t.c.length,A=0,T=new J(e.b);T.a<T.c.c.length;)if(k=c(U(T),26),Y=k.a,Y.c.length!=0){for(G=new J(Y),v=0,oe=null,r=c(U(G),9),o=null;r;){if(o=c(Xe(t,r.p),264),o.c>=0){for(b=null,d=new ss(k.a,v+1);d.b<d.d.gc()&&(a=(pn(d.b<d.d.gc()),c(d.d.Xb(d.c=d.b++),9)),b=c(Xe(t,a.p),264),!(b.d==o.d&&b.c<o.c));)b=null;b&&(oe&&(Ou(i,r.p,ze(c(Xe(i,r.p),15).a-1)),c(Xe(n,oe.p),16).Kc(o)),o=FGt(o,r,L++),Rt(t.c,o),Ue(n,new Qe),oe?(c(Xe(n,oe.p),16).Ec(o),Ue(i,ze(1))):Ue(i,ze(0)))}R=null,G.a<G.c.c.length&&(R=c(U(G),9),F=c(Xe(t,R.p),264),c(Xe(n,r.p),16).Ec(F),Ou(i,R.p,ze(c(Xe(i,R.p),15).a+1))),o.d=A,o.c=v++,oe=r,r=R}++A}}function ktn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt;d=c(Jt(t.c,e),460),oe=t.a.c,b=t.a.c+t.a.b,vt=d.f,Pt=d.a,a=vt<Pt,F=new He(oe,vt),fe=new He(b,Pt),r=(oe+b)/2,G=new He(r,vt),we=new He(r,Pt),o=pVt(e,vt,Pt),Me=vh(t.B),Ze=new He(r,o),wt=vh(t.D),n=W$t(ee(Z(Vr,1),Ge,8,0,[Me,Ze,wt])),L=!1,Y=t.B.i,Y&&Y.c&&d.d&&(v=a&&Y.p<Y.c.a.c.length-1||!a&&Y.p>0,v?v&&(A=Y.p,a?++A:--A,T=c(Xe(Y.c.a,A),9),i=sKe(T),L=!(kit(i,Me,n[0])||gHe(i,Me,n[0]))):L=!0),R=!1,Ne=t.D.i,Ne&&Ne.c&&d.e&&(k=a&&Ne.p>0||!a&&Ne.p<Ne.c.a.c.length-1,k?(A=Ne.p,a?--A:++A,T=c(Xe(Ne.c.a,A),9),i=sKe(T),R=!(kit(i,n[0],wt)||gHe(i,n[0],wt))):R=!0),L&&R&&ni(e.a,Ze),L||O7(e.a,ee(Z(Vr,1),Ge,8,0,[F,G])),R||O7(e.a,ee(Z(Vr,1),Ge,8,0,[we,fe]))}function uot(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt;if(n.c.length!=0){for(R=new Qe,L=new J(n);L.a<L.c.c.length;)A=c(U(L),19),Ue(R,new He(A.i,A.j));for(i.bh(t,"Before removing overlaps");Nve(e,n);)HG(e,n,!1);if(i.bh(t,"After removing overlaps"),d=0,b=0,r=null,n.c.length!=0&&(r=(pt(0,n.c.length),c(n.c[0],19)),d=r.i-(pt(0,R.c.length),c(R.c[0],8)).a,b=r.j-(pt(0,R.c.length),c(R.c[0],8)).b),a=p.Math.sqrt(d*d+b*b),T=PBt(n),o=1,T.a.gc()!=0){for(k=T.a.ec().Jc();k.Ob();)v=c(k.Pb(),19),F=e.f,G=F.i+F.g/2,Y=F.j+F.f/2,oe=v.i+v.g/2,fe=v.j+v.f/2,we=oe-G,Ne=fe-Y,Me=p.Math.sqrt(we*we+Ne*Ne),Ze=we/Me,wt=Ne/Me,Dc(v,v.i+Ze*a),Dl(v,v.j+wt*a);i.bh(t,"Child movement "+o),++o}e.a&&e.a.Fg(new Hl(T)),uot(e,t,new Hl(T),i)}}function Otn(e,t){var n,i,r,o,a,d,b,v,k,T,A;if(!e.f[t.p]){for(e.f[t.p]=!0,b=new xn,r=Se($(e.c,(We(),zk)))===Se((I0(),Wv)),i=new Gt(Xt(Fi(t).a.Jc(),new z));gn(i);)n=c(on(i),17),Oi(n.d.i,($e(),Ri))?(A=0,T=n.d.i,r?(d=c($(e.c,sp),15).a,A=d*c($(T,Xv),15).a+c($(T,Ri),15).a):A=c($(n.d.i,Ri),15).a,Ac(b,ze(A))?Cr(c(Jt(b,ze(A)),47),n):ci(b,ze(A),new Y2(new Qo(ee(Z(zS,1),xS,17,0,[n]))))):ci(b,ze(pi-(b.f.c+b.i.c)),new Y2(new Qo(ee(Z(zS,1),xS,17,0,[n]))));for(v=new w0e(new hn(b)),a=v.a.ec().Jc();a.Ob();)o=c(a.Pb(),15).a,k=c(c(Jt(b,ze(o)),47).a.ec().Jc().Pb(),17),!vs(k)&&(T=k.d.i,e.f[T.p]&&!Ba(e.e,t)&&!Ba(e.d,T)?Or(e.b,c(Jt(b,ze(o)),18)):ni(e.a,T))}}function jtn(e){var t,n,i,r;if(n=e.D!=null?e.D:e.B,t=Zh(n,ml(91)),t!=-1){i=(as(0,t,n.length),n.substr(0,t)),r=new kg;do r.a+="[";while((t=Q6(n,91,++t))!=-1);jt(i,hk)?r.a+="Z":jt(i,RC)?r.a+="B":jt(i,lU)?r.a+="C":jt(i,$C)?r.a+="D":jt(i,BC)?r.a+="F":jt(i,zC)?r.a+="I":jt(i,FC)?r.a+="J":jt(i,qC)?r.a+="S":(r.a+="L",r.a+=""+i,r.a+=";");try{return null}catch(o){if(o=kr(o),!he(o,63))throw K(o)}}else if(Zh(n,ml(46))==-1){if(jt(n,hk))return Sl;if(jt(n,RC))return Bl;if(jt(n,lU))return Da;if(jt(n,$C))return is;if(jt(n,BC))return Sx;if(jt(n,zC))return Hn;if(jt(n,FC))return Kw;if(jt(n,qC))return G3}return null}function Stn(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me;for(T=new eme(new Zde(e));T.c!=T.d.a.d;)for(k=GWe(T),d=c(k.d,57),t=c(k.e,57),a=d.Ah(),F=0,we=(a.i==null&&ud(a),a.i).length;F<we;++F)if(v=(o=(a.i==null&&ud(a),a.i),F>=0&&F<o.length?o[F]:null),v.pk()&&!v.qk()){if(he(v,104))b=c(v,20),(b.Bb&sc)==0&&(Me=Hs(b),!(Me&&(Me.Bb&sc)!=0))&&rZt(e,b,d,t);else if(qs(),c(v,69).vk()&&(n=(Ne=v,c(Ne?c(t,52).di(Ne):null,164)),n))for(L=c(d.Jh(v),164),i=n.gc(),G=0,R=L.gc();G<R;++G)if(A=L.Rl(G),he(A,104)){if(fe=L.Sl(G),r=yh(e,fe),r==null&&fe!=null){if(oe=c(A,20),!e.b||(oe.Bb&sc)!=0||Hs(oe))continue;r=fe}if(!n.Ml(A,r)){for(Y=0;Y<i;++Y)if(n.Rl(Y)==A&&Se(n.Sl(Y))===Se(r)){n.Ri(n.gc()-1,Y),--i;break}}}else n.Ml(L.Rl(G),L.Sl(G))}}function Ttn(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=or,e.g=Gr,e.d=ge(be($(t,(We(),Nf)))),YFt(e),JJt(e),UJt(e),YHt(e),iFt(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=pqt(e),i=new mc(e.c),Ue(e.c.b,i),e.r=sm(e.p),e.n=Jq(e.k,e.k.length);e.r.c.length!=0;)e.o=SBt(e),!e.o||fKe(e)&&e.b.a.gc()!=0?(TGt(e,i),i=new mc(e.c),Ue(e.c.b,i),Os(e.a,e.b),e.b.a.$b(),e.t=e.u,e.u=0):fKe(e)?(e.c.b.c.length=0,i=new mc(e.c),Ue(e.c.b,i),e.t=0,e.u=0,e.b.a.$b(),e.a.a.$b(),++e.f,e.r=sm(e.p),e.n=Jq(e.k,e.k.length)):(zr(e.o,i),gl(e.r,e.o),Cr(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,V7(t.b),n.Ug()}function sre(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe;return b=e,k=Hr(new He(t.a,t.b),e),v=n,T=Hr(new He(i.a,i.b),n),A=b.a,G=b.b,R=v.a,oe=v.b,L=k.a,Y=k.b,F=T.a,fe=T.b,r=F*Y-L*fe,ph(),yf(pd),p.Math.abs(0-r)<=pd||r==0||isNaN(0)&&isNaN(r)?!1:(a=1/r*((A-R)*Y-(G-oe)*L),d=1/r*-(-(A-R)*fe+(G-oe)*F),o=(yf(pd),(p.Math.abs(0-a)<=pd||a==0||isNaN(0)&&isNaN(a)?0:0<a?-1:0>a?1:Vp(isNaN(0),isNaN(a)))<0&&(yf(pd),(p.Math.abs(a-1)<=pd||a==1||isNaN(a)&&isNaN(1)?0:a<1?-1:a>1?1:Vp(isNaN(a),isNaN(1)))<0)&&(yf(pd),(p.Math.abs(0-d)<=pd||d==0||isNaN(0)&&isNaN(d)?0:0<d?-1:0>d?1:Vp(isNaN(0),isNaN(d)))<0)&&(yf(pd),(p.Math.abs(d-1)<=pd||d==1||isNaN(d)&&isNaN(1)?0:d<1?-1:d>1?1:Vp(isNaN(d),isNaN(1)))<0)),o)}function Ctn(e){var t,n,i,r,o,a,d,b,v,k,T;for(e.j=Ce(Hn,li,30,e.g,15,1),e.o=new Qe,hr(jo(new Tt(null,new Ct(e.e.b,16)),new l$),new FDe(e)),e.a=Ce(Sl,eh,30,e.b,16,1),QD(new Tt(null,new Ct(e.e.b,16)),new HDe(e)),i=(T=new Qe,hr(bi(jo(new Tt(null,new Ct(e.e.b,16)),new D5),new qDe(e)),new E$e(e,T)),T),b=new J(i);b.a<b.c.c.length;)if(d=c(U(b),504),!(d.c.length<=1)){if(d.c.length==2){hJt(d),Yie((pt(0,d.c.length),c(d.c[0],17)).d.i)||Ue(e.o,d);continue}if(!(LGt(d)||yUt(d,new u$)))for(v=new J(d),r=null;v.a<v.c.c.length;)t=c(U(v),17),n=e.c[t.p],!r||v.a>=v.c.c.length?k=Qme((Wt(),ar),Er):k=Qme((Wt(),Er),Er),k*=2,o=n.a.g,n.a.g=p.Math.max(o,o+(k-o)),a=n.b.g,n.b.g=p.Math.max(a,a+(k-a)),r=t}}function aQ(e,t){var n;if(e.e)throw K(new oo((j1(bce),Ure+bce.k+Jre)));if(!pTt(e.a,t))throw K(new Mo(Act+t+Nct));if(t==e.d)return e;switch(n=e.d,e.d=t,n.g){case 0:switch(t.g){case 2:hw(e);break;case 1:$0(e),hw(e);break;case 4:Qy(e),hw(e);break;case 3:Qy(e),$0(e),hw(e)}break;case 2:switch(t.g){case 1:$0(e),Pie(e);break;case 4:Qy(e),hw(e);break;case 3:Qy(e),$0(e),hw(e)}break;case 1:switch(t.g){case 2:$0(e),Pie(e);break;case 4:$0(e),Qy(e),hw(e);break;case 3:$0(e),Qy(e),$0(e),hw(e)}break;case 4:switch(t.g){case 2:Qy(e),hw(e);break;case 1:Qy(e),$0(e),hw(e);break;case 3:$0(e),Pie(e)}break;case 3:switch(t.g){case 2:$0(e),Qy(e),hw(e);break;case 1:$0(e),Qy(e),$0(e),hw(e);break;case 4:$0(e),Pie(e)}}return e}function Zy(e,t){var n;if(e.d)throw K(new oo((j1(Nce),Ure+Nce.k+Jre)));if(!mTt(e.a,t))throw K(new Mo(Act+t+Nct));if(t==e.c)return e;switch(n=e.c,e.c=t,n.g){case 0:switch(t.g){case 2:pm(e);break;case 1:R0(e),pm(e);break;case 4:Uy(e),pm(e);break;case 3:Uy(e),R0(e),pm(e)}break;case 2:switch(t.g){case 1:R0(e),Iie(e);break;case 4:Uy(e),pm(e);break;case 3:Uy(e),R0(e),pm(e)}break;case 1:switch(t.g){case 2:R0(e),Iie(e);break;case 4:R0(e),Uy(e),pm(e);break;case 3:R0(e),Uy(e),R0(e),pm(e)}break;case 4:switch(t.g){case 2:Uy(e),pm(e);break;case 1:Uy(e),R0(e),pm(e);break;case 3:R0(e),Iie(e)}break;case 3:switch(t.g){case 2:R0(e),Uy(e),pm(e);break;case 1:R0(e),Uy(e),R0(e),pm(e);break;case 4:R0(e),Iie(e)}}return e}function Etn(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe;for(T=e.b,k=new ss(T,0),X2(k,new mc(e)),oe=!1,a=1;k.b<k.d.gc();){for(v=(pn(k.b<k.d.gc()),c(k.d.Xb(k.c=k.b++),26)),F=(pt(a,T.c.length),c(T.c[a],26)),G=sm(v.a),Y=G.c.length,R=new J(G);R.a<R.c.c.length;)A=c(U(R),9),zr(A,F);if(oe){for(L=Tu(G).Jc();L.Ob();)for(A=c(L.Pb(),9),o=new J(sm(vr(A)));o.a<o.c.c.length;)r=c(U(o),17),qg(r,!0),_e(e,($e(),Dk),(zt(),!0)),i=Fst(e,r,Y),n=c($(A,Rw),318),fe=c(Xe(i,i.c.length-1),17),n.k=fe.c.i,n.n=fe,n.b=r.d.i,n.c=r;oe=!1}else G.c.length!=0&&(t=(pt(0,G.c.length),c(G.c[0],9)),t.k==(Wt(),Lh)&&(oe=!0,a=-1));++a}for(d=new ss(e.b,0);d.b<d.d.gc();)b=(pn(d.b<d.d.gc()),c(d.d.Xb(d.c=d.b++),26)),b.a.c.length==0&&iu(d)}function fQ(e,t){var n,i,r,o,a,d,b,v;if(he(e.Bh(),176)?(fQ(c(e.Bh(),176),t),t.a+=" > "):t.a+="Root ",n=e.Ah().zb,jt(n.substr(0,3),"Elk")?ti(t,(tn(3,n.length+1),n.substr(3))):t.a+=""+n,r=e.ih(),r){ti((t.a+=" ",t),r);return}if(he(e,363)&&(v=c(e,158).a,v)){ti((t.a+=" ",t),v);return}for(a=new ln(e.jh());a.e!=a.i.gc();)if(o=c(fn(a),158),v=o.a,v){ti((t.a+=" ",t),v);return}if(he(e,273)&&(i=c(e,74),!i.b&&(i.b=new Et(yn,i,4,7)),i.b.i!=0&&(!i.c&&(i.c=new Et(yn,i,5,8)),i.c.i!=0))){for(t.a+=" (",d=new T4((!i.b&&(i.b=new Et(yn,i,4,7)),i.b));d.e!=d.i.gc();)d.e>0&&(t.a+=Yc),fQ(c(fn(d),176),t);for(t.a+=ese,b=new T4((!i.c&&(i.c=new Et(yn,i,5,8)),i.c));b.e!=b.i.gc();)b.e>0&&(t.a+=Yc),fQ(c(fn(b),176),t);t.a+=")"}}function Mtn(e,t,n){var i,r,o,a,d,b,v,k;for(b=new ln((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a));b.e!=b.i.gc();)for(d=c(fn(b),19),r=new Gt(Xt(B1(d).a.Jc(),new z));gn(r);){if(i=c(on(r),74),!i.b&&(i.b=new Et(yn,i,4,7)),!(i.b.i<=1&&(!i.c&&(i.c=new Et(yn,i,5,8)),i.c.i<=1)))throw K(new d4("Graph must not contain hyperedges."));if(!Z7(i)&&d!=no(c(ae((!i.c&&(i.c=new Et(yn,i,5,8)),i.c),0),83)))for(v=new jFe,ic(v,i),_e(v,(L0(),Mk),i),Pz(v,c(Ao(co(n.f,d)),156)),iY(v,c(Jt(n,no(c(ae((!i.c&&(i.c=new Et(yn,i,5,8)),i.c),0),83))),156)),Ue(t.c,v),a=new ln((!i.n&&(i.n=new Le(Bo,i,1,7)),i.n));a.e!=a.i.gc();)o=c(fn(a),158),k=new PUe(v,o.a),ic(k,o),_e(k,Mk,o),k.e.a=p.Math.max(o.g,1),k.e.b=p.Math.max(o.f,1),vye(k),Ue(t.d,k)}}function Atn(e,t,n){var i,r,o,a,d,b,v,k,T,A;switch(n.Tg("Node promotion heuristic",1),e.i=t,e.r=c($(t,(We(),MP)),246),e.r!=(U0(),r9)&&e.r!=OE?nnn(e):SXt(e),k=c($(e.i,bSe),15).a,o=new $X,e.r.g){case 2:case 1:eS(e,o);break;case 3:for(e.r=qJ,eS(e,o),b=0,d=new J(e.b);d.a<d.c.c.length;)a=c(U(d),15),b=p.Math.max(b,a.a);b>e.k&&(e.r=DP,eS(e,o));break;case 4:for(e.r=qJ,eS(e,o),v=0,r=new J(e.c);r.a<r.c.c.length;)i=be(U(r)),v=p.Math.max(v,(Ft(i),i));v>e.n&&(e.r=LP,eS(e,o));break;case 6:A=ys(p.Math.ceil(e.g.length*k/100)),eS(e,new z_e(A));break;case 5:T=ys(p.Math.ceil(e.e*k/100)),eS(e,new F_e(T));break;case 8:Got(e,!0);break;case 9:Got(e,!1);break;default:eS(e,o)}e.r!=r9&&e.r!=OE?QVt(e,t):aKt(e,t),n.Ug()}function Ntn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe;for(T=new Lye(e),oDt(T,!(t==(_r(),Aa)||t==Bh)),k=T.a,A=new u4,r=(Yf(),ee(Z(Fv,1),Re,240,0,[Ko,el,Yo])),a=0,b=r.length;a<b;++a)n=r[a],v=LZ(k,Ko,n),v&&(A.d=p.Math.max(A.d,v.ff()));for(i=ee(Z(Fv,1),Re,240,0,[Ko,el,Yo]),o=0,d=i.length;o<d;++o)n=i[o],v=LZ(k,Yo,n),v&&(A.a=p.Math.max(A.a,v.ff()));for(F=ee(Z(Fv,1),Re,240,0,[Ko,el,Yo]),Y=0,fe=F.length;Y<fe;++Y)L=F[Y],v=LZ(k,L,Ko),v&&(A.b=p.Math.max(A.b,v.gf()));for(R=ee(Z(Fv,1),Re,240,0,[Ko,el,Yo]),G=0,oe=R.length;G<oe;++G)L=R[G],v=LZ(k,L,Yo),v&&(A.c=p.Math.max(A.c,v.gf()));return A.d>0&&(A.d+=k.n.d,A.d+=k.d),A.a>0&&(A.a+=k.n.a,A.a+=k.d),A.b>0&&(A.b+=k.n.b,A.b+=k.d),A.c>0&&(A.c+=k.n.c,A.c+=k.d),A}function aot(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R;for(A=n.d,T=n.c,o=new He(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),a=o.b,v=new J(e.a);v.a<v.c.c.length;)if(d=c(U(v),9),d.k==(Wt(),Ar)){switch(i=c($(d,($e(),Zo)),64),r=c($(d,oje),8),k=d.n,i.g){case 2:k.a=n.f.a+A.c-T.a;break;case 4:k.a=-T.a-A.b}switch(R=0,i.g){case 2:case 4:t==(es(),r1)?(L=ge(be($(d,Bw))),k.b=o.b*L-c($(d,(We(),Hw)),8).b,R=k.b+r.b,WH(d,!1,!0)):t==Sc&&(k.b=ge(be($(d,Bw)))-c($(d,(We(),Hw)),8).b,R=k.b+r.b,WH(d,!1,!0))}a=p.Math.max(a,R)}for(n.f.b+=a-o.b,b=new J(e.a);b.a<b.c.c.length;)if(d=c(U(b),9),d.k==(Wt(),Ar))switch(i=c($(d,($e(),Zo)),64),k=d.n,i.g){case 1:k.b=-T.b-A.d;break;case 3:k.b=n.f.b+A.a-T.b}}function fot(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F;if(v=XYt(c(Ae(t,(Gd(),ux)),107),c(Ae(n,Gm),107)),Dc(n,t.i+v),ge(be(Ae(e,kd)))<ge(be(Ae(n,kd)))){for(A=c(Ae(e,Gm),107),k=A.c+e.i;A.b;)A=A.b,k+=A.c;for(o=new xu(c(Ae(n,Gm),107).c,-100,c(Ae(n,Gm),107).b),F=o.c+n.i;o.b.a<=A.a;)o=o.b,F+=o.c;d=o.b.c,b=o.b.a-o.a,a=(A.a-o.a)*d/b,R=-k+F+a,L=new xu(o.b.c-a,o.b.a,o.b.b),i4(A,new xu(R,A.a,L)),ri(e,kd,be(Ae(n,kd)))}if(ge(be(Ae(n,kd)))<ge(be(Ae(t,kd)))){for(T=c(Ae(n,ux),107),F=T.c+n.i;T.b;)T=T.b,F+=T.c;for(r=new xu(c(Ae(t,ux),107).c,-100,c(Ae(t,ux),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,R=i-F+a,L=new xu(r.b.c-a,r.b.a,r.b.b),i4(T,new xu(R,T.a,L)),ri(n,kd,be(Ae(t,kd)))}}function _tn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y;if(k=c(c(Ti(e.r,t),24),85),k.gc()<=2||t==(Ve(),sn)||t==(Ve(),Zt)){Not(e,t);return}for(F=e.u.Gc((Ul(),Yk)),n=t==(Ve(),Yt)?(cw(),fP):(cw(),aP),Y=t==Yt?(pl(),Mf):(pl(),rh),i=G1e(rpe(n),e.s),G=t==Yt?or:Gr,v=k.Jc();v.Ob();)d=c(v.Pb(),116),!(!d.c||d.c.d.c.length<=0)&&(R=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),F?(A.c=L.a-(r=T.n,T.e.a+r.b+r.c)-e.s,F=!1):A.c=L.a+R.a+e.s,oD(Y,c3e),T.f=Y,Kf(T,(Ql(),Ef)),Ue(i.d,new aee(A,Zwe(i,A))),G=t==Yt?p.Math.min(G,L.b):p.Math.max(G,L.b+d.b.Kf().b));for(G+=t==Yt?-e.t:e.t,m2e((i.e=G,i)),b=k.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 hot(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe;for(r=new Qe,F=new J(t.a);F.a<F.c.c.length;)if(R=c(U(F),9),L=R.e,L&&(i=hot(e,L,R),Or(r,i),Uen(e,L,R),c($(L,($e(),Bc)),24).Gc((Qs(),Ma))))for(oe=c($(R,(We(),fr)),103),A=c($(R,tx),185).Gc((Ul(),Z1)),Y=new J(R.j);Y.a<Y.c.c.length;)for(G=c(U(Y),12),o=c(Jt(e.b,G),9),o||(o=OL(G,oe,G.j,-(G.e.c.length-G.g.c.length),null,new us,G.o,c($(L,Xu),87),L),_e(o,Si,G),ci(e.b,G,o),Ue(L.a,o)),a=c(Xe(o.j,0),12),k=new J(G.f);k.a<k.c.c.length;)v=c(U(k),70),d=new NIe,d.o.a=v.o.a,d.o.b=v.o.b,Ue(a.f,d),A||(fe=G.j,T=0,n7(c($(R,tx),24))&&(T=nxe(v.n,v.o,G.o,0,fe)),oe==(es(),Fh)||(Ve(),al).Gc(fe)?d.o.a=T:d.o.b=T);return b=new Qe,Jen(e,t,n,r,b),n&&uen(e,t,n,b),b}function Nye(e,t,n){var i,r,o,a,d,b,v,k,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,k=new J(t.j);k.a<k.c.c.length;)for(v=c(U(k),12),T=n?new A6(v):new s4(v),b=T.Jc();b.Ob();)d=c(b.Pb(),12),a=d.i,a.c==t.c?a!=t&&(Nye(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,($e(),nje)),16),o)for(r=o.Jc();r.Ob();)i=c(r.Pb(),9),t.c==i.c&&(Nye(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+=lu(e.i,24)*IL*.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 Dtn(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F,G;for(R=new J(e);R.a<R.c.c.length;){for(L=c(U(R),9),Cg(L.n),Cg(L.o),fbe(L.f),yrt(L),WXt(L),G=new J(L.j);G.a<G.c.c.length;){for(F=c(U(G),12),Cg(F.n),Cg(F.a),Cg(F.o),$r(F,RZe(F.j)),o=c($(F,(We(),Kg)),15),o&&_e(F,Kg,ze(-o.a)),r=new J(F.g);r.a<r.c.c.length;){for(i=c(U(r),17),n=Ln(i.a,0);n.b!=n.d.c;)t=c(_n(n),8),Cg(t);if(b=c($(i,ho),79),b)for(d=Ln(b,0);d.b!=d.d.c;)a=c(_n(d),8),Cg(a);for(T=new J(i.b);T.a<T.c.c.length;)v=c(U(T),70),Cg(v.n),Cg(v.o)}for(A=new J(F.f);A.a<A.c.c.length;)v=c(U(A),70),Cg(v.n),Cg(v.o)}for(L.k==(Wt(),Ar)&&(_e(L,($e(),Zo),RZe(c($(L,Zo),64))),nXt(L)),k=new J(L.b);k.a<k.c.c.length;)v=c(U(k),70),yrt(v),Cg(v.o),Cg(v.n)}}function Ltn(e){V2();var t,n,i,r,o,a,d;for(i=e.f.n,a=Xpe(e.r).a.nc();a.Ob();){if(o=c(a.Pb(),116),r=0,o.b.nf((Pn(),fu))&&(r=ge(be(o.b.mf(fu))),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(n7(e.u))switch(t=s$t(o.b,r),d=!c(e.e.mf(fp),185).Gc((uu(),uI)),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 dot(e,t){var n,i,r,o,a,d,b,v,k;return v="",t.length==0?e.le(Vye,bre,-1,-1):(k=Sv(t),jt(k.substr(0,3),"at ")&&(k=(tn(3,k.length+1),k.substr(3))),k=k.replace(/\[.*?\]/g,""),a=k.indexOf("("),a==-1?(a=k.indexOf("@"),a==-1?(v=k,k=""):(v=Sv((tn(a+1,k.length+1),k.substr(a+1))),k=Sv((as(0,a,k.length),k.substr(0,a))))):(n=k.indexOf(")",a),v=(as(a+1,n,k.length),k.substr(a+1,n-(a+1))),k=Sv((as(0,a,k.length),k.substr(0,a)))),a=Zh(k,ml(46)),a!=-1&&(k=(tn(a+1,k.length+1),k.substr(a+1))),(k.length==0||jt(k,"Anonymous function"))&&(k=bre),d=KF(v,ml(58)),r=Y0e(v,ml(58),d-1),b=-1,i=-1,o=Vye,d!=-1&&r!=-1&&(o=(as(0,r,v.length),v.substr(0,r)),b=Gze((as(r+1,d,v.length),v.substr(r+1,d-(r+1)))),i=Gze((tn(d+1,v.length+1),v.substr(d+1)))),e.le(o,k,b,i))}function Ptn(e){var t,n,i,r,o,a,d,b,v,k,T;for(v=new J(e);v.a<v.c.c.length;){switch(b=c(U(v),9),a=c($(b,(We(),Ro)),166),o=null,a.g){case 1:case 2:o=(gm(),w3);break;case 3:case 4:o=(gm(),JS)}if(o)_e(b,($e(),bJ),(gm(),w3)),o==JS?KG(b,a,(Gs(),Vl)):o==w3&&KG(b,a,(Gs(),tl));else if(Oy(c($(b,fr),103))&&b.j.c.length!=0){for(t=!0,T=new J(b.j);T.a<T.c.c.length;){if(k=c(U(T),12),!(k.j==(Ve(),sn)&&k.e.c.length-k.g.c.length>0||k.j==Zt&&k.e.c.length-k.g.c.length<0)){t=!1;break}for(r=new J(k.g);r.a<r.c.c.length;)if(n=c(U(r),17),d=c($(n.d.i,Ro),166),d==(Su(),aE)||d==Rm){t=!1;break}for(i=new J(k.e);i.a<i.c.c.length;)if(n=c(U(i),17),d=c($(n.c.i,Ro),166),d==(Su(),uE)||d==W1){t=!1;break}}t&&KG(b,a,(Gs(),jE))}}}function Itn(e,t,n,i,r){var o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me;for(Me=0,L=0,T=new J(t.e);T.a<T.c.c.length;){for(k=c(U(T),9),A=0,d=0,b=n?c($(k,UJ),15).a:cs,Y=i?c($(k,JJ),15).a:cs,v=p.Math.max(b,Y),fe=new J(k.j);fe.a<fe.c.c.length;){if(oe=c(U(fe),12),we=k.n.b+oe.n.b+oe.a.b,i)for(a=new J(oe.g);a.a<a.c.c.length;)o=c(U(a),17),F=o.d,R=F.i,t!=e.a[R.p]&&(G=p.Math.max(c($(R,UJ),15).a,c($(R,JJ),15).a),Ne=c($(o,(We(),qk)),15).a,Ne>=v&&Ne>=G&&(A+=R.n.b+F.n.b+F.a.b-we,++d));if(n)for(a=new J(oe.e);a.a<a.c.c.length;)o=c(U(a),17),F=o.c,R=F.i,t!=e.a[R.p]&&(G=p.Math.max(c($(R,UJ),15).a,c($(R,JJ),15).a),Ne=c($(o,(We(),qk)),15).a,Ne>=v&&Ne>=G&&(A+=R.n.b+F.n.b+F.a.b-we,++d))}d>0&&(Me+=A/d,++L)}L>0?(t.a=r*Me/L,t.g=L):(t.a=0,t.g=0)}function _ye(e,t,n,i){var r,o,a,d,b;return d=new Lye(t),EVt(d,i),r=!0,e&&e.nf((Pn(),Qm))&&(o=c(e.mf((Pn(),Qm)),87),r=o==(_r(),zh)||o==go||o==vo),crt(d,!1),Vc(d.e.Pf(),new ipe(d,!1,r)),qee(d,d.f,(Yf(),Ko),(Ve(),Yt)),qee(d,d.f,Yo,wn),qee(d,d.g,Ko,Zt),qee(d,d.g,Yo,sn),yZe(d,Yt),yZe(d,wn),cGe(d,sn),cGe(d,Zt),V2(),a=d.A.Gc((Cu(),bx))&&d.B.Gc((uu(),aI))?DYe(d):null,a&&T8t(d.a,a),Ltn(d),Uqt(d),Jqt(d),atn(d),xYt(d),vHt(d),_ne(d,Yt),_ne(d,wn),lKt(d),YZt(d),n&&(_zt(d),xHt(d),_ne(d,sn),_ne(d,Zt),b=d.B.Gc((uu(),rM)),Utt(d,b,Yt),Utt(d,b,wn),Jtt(d,b,sn),Jtt(d,b,Zt),hr(new Tt(null,new Ct(new x1(d.i),0)),new g0),hr(bi(new Tt(null,Xpe(d.r).a.oc()),new l2),new u2),_Gt(d),d.e.Nf(d.o),hr(new Tt(null,Xpe(d.r).a.oc()),new ug)),d.o}function Rtn(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F;for(v=or,i=new J(e.a.b);i.a<i.c.c.length;)t=c(U(i),84),v=p.Math.min(v,t.d.f.g.c+t.e.a);for(L=new _i,a=new J(e.a.a);a.a<a.c.c.length;)o=c(U(a),197),o.i=v,o.e==0&&sr(L,o,L.c.b,L.c);for(;L.b!=0;){for(o=c(L.b==0?null:(pn(L.b!=0),wa(L,L.a.a)),197),r=o.f.g.c,A=o.a.a.ec().Jc();A.Ob();)k=c(A.Pb(),84),F=o.i+k.e.a,k.d.g||k.g.c<F?k.o=F:k.o=k.g.c;for(r-=o.f.o,o.b+=r,e.c==(_r(),vo)||e.c==Bh?o.c+=r:o.c-=r,T=o.a.a.ec().Jc();T.Ob();)for(k=c(T.Pb(),84),b=k.f.Jc();b.Ob();)d=c(b.Pb(),84),k1(e.c)?R=e.f.wf(k,d):R=e.f.xf(k,d),d.d.i=p.Math.max(d.d.i,k.o+k.g.b+R-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&&ni(L,d.d)}for(n=new J(e.a.b);n.a<n.c.c.length;)t=c(U(n),84),t.g.c=t.o}function got(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me;for(n.Tg(Qlt,1),A=(Ii(),wue),e.a==(A7(),ZJ)&&(A=N9e),k=0,Mt(),t.gd(new fY(A)),o=t.gc(),d=t.dd(t.gc()),v=!0;v&&d.Sb();)oe=c(d.Ub(),41),c($(oe,A),15).a==0?--o:v=!1;if(Me=t.hd(0,o),a=new JZ(Me),Me=t.hd(o,t.gc()),b=new JZ(Me),a.b==0)for(F=Ln(b,0);F.b!=F.d.c;)R=c(_n(F),41),_e(R,LE,ze(k++));else for(T=a.b,Ne=Ln(a,0);Ne.b!=Ne.d.c;){for(we=c(_n(Ne),41),_e(we,LE,ze(k++)),i=Xte(we),got(e,i,n.dh(1/T|0)),fm(i,lme(new fY(LE))),L=new _i,fe=Ln(i,0);fe.b!=fe.d.c;)for(oe=c(_n(fe),41),Y=Ln(we.d,0);Y.b!=Y.d.c;)G=c(_n(Y),65),G.c==oe&&sr(L,G,L.c.b,L.c);for(ku(we.d),Os(we.d,L),d=Ln(b,b.b),r=we.d.b,v=!0;0<r&&v&&d.Sb();)oe=c(d.Ub(),41),c($(oe,A),15).a==0?(_e(oe,LE,ze(k++)),--r,d.Qb()):v=!1}n.Ug()}function pot(e,t,n){var i,r,o,a,d,b,v,k,T,A;for(k=new Sh(n),ic(k,t),_e(k,($e(),Si),t),k.o.a=t.g,k.o.b=t.f,k.n.a=t.i,k.n.b=t.j,Ue(n.a,k),ci(e.a,t,k),((!t.a&&(t.a=new Le(Nn,t,10,11)),t.a).i!=0||it(nt(Ae(t,(We(),Yv)))))&&_e(k,ije,(zt(),!0)),v=c($(n,Bc),24),T=c($(k,(We(),fr)),103),T==(es(),gp)?_e(k,fr,Fh):T!=Fh&&v.Ec((Qs(),XS)),A=0,i=c($(n,Xu),87),b=new ln((!t.c&&(t.c=new Le(hu,t,9,9)),t.c));b.e!=b.i.gc();)d=c(fn(b),127),r=Ki(t),oQ(r)&&!it(nt(Ae(t,jJ)))&&ri(d,Ri,ze(A++)),it(nt(Ae(d,zm)))||Htn(e,d,k,v,i,T);for(a=new ln((!t.n&&(t.n=new Le(Bo,t,1,7)),t.n));a.e!=a.i.gc();)o=c(fn(a),158),!it(nt(Ae(o,zm)))&&o.a&&Ue(k.b,hne(o));return it(nt($(k,fE)))&&v.Ec((Qs(),hJ)),it(nt($(k,EJ)))&&(v.Ec((Qs(),dJ)),v.Ec(rE),_e(k,fr,Fh)),k}function $tn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe;for(t.Tg("Inverted port preprocessing",1),k=e.b,v=new ss(k,0),n=null,fe=new Qe;v.b<v.d.gc();){for(oe=n,n=(pn(v.b<v.d.gc()),c(v.d.Xb(v.c=v.b++),26)),L=new J(fe);L.a<L.c.c.length;)T=c(U(L),9),zr(T,oe);for(fe.c.length=0,R=new J(n.a);R.a<R.c.c.length;)if(T=c(U(R),9),T.k==(Wt(),ar)&&Oy(c($(T,(We(),fr)),103))){for(Y=Qxe(T,(Gs(),Vl),(Ve(),sn)).Jc();Y.Ob();)for(F=c(Y.Pb(),12),b=F.e,d=c(Oh(b,Ce(zS,xS,17,b.c.length,0,1)),324),r=d,o=0,a=r.length;o<a;++o)i=r[o],cZt(e,F,i,fe);for(G=Qxe(T,tl,Zt).Jc();G.Ob();)for(F=c(G.Pb(),12),b=F.g,d=c(Oh(b,Ce(zS,xS,17,b.c.length,0,1)),324),r=d,o=0,a=r.length;o<a;++o)i=r[o],oZt(e,F,i,fe)}}for(A=new J(fe);A.a<A.c.c.length;)T=c(U(A),9),zr(T,n);t.Ug()}function Btn(e){var t,n,i,r,o,a,d,b,v,k,T,A,L;for(T=ge(be(Ae(e,(G0(),Rue)))),it(nt(Ae(e,h8e)))&&(k=c(Ae(e,(My(),_3)),19),o=c(ae(rj(c(ae((!k.e&&(k.e=new Et($i,k,7,4)),k.e),(!k.e&&(k.e=new Et($i,k,7,4)),k.e).i-1),74)),0),19),i=c(ae(rj(c(ae((!k.e&&(k.e=new Et($i,k,7,4)),k.e),0),74)),0),19),a=new He(o.i+o.g/2,o.j+o.f/2),r=new He(i.i+i.g/2,i.j+i.f/2),n=T,n<=0&&(n+=Em),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+=Em),t=p.Math.atan2(a.b,a.a),t<=0&&(t+=Em),T=U5e-(t-n+A/2)),b=new ln((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a));b.e!=b.i.gc();)d=c(fn(b),19),v=new He(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,ha(d,v.a-d.g/2,v.b-d.f/2)}function ztn(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y;if(F=e.n,G=e.o,A=e.d,T=ge(be(xv(e,(We(),qle)))),t){for(k=T*(t.gc()-1),L=0,b=t.Jc();b.Ob();)a=c(b.Pb(),9),k+=a.o.a,L=p.Math.max(L,a.o.b);for(Y=F.a-(k-G.a)/2,o=F.b-A.d+L,i=G.a/(t.gc()+1),r=i,d=t.Jc();d.Ob();)a=c(d.Pb(),9),a.n.a=Y,a.n.b=o-a.o.b,Y+=a.o.a+T,v=bit(a),v.n.a=a.o.a/2-v.a.a,v.n.b=a.o.b,R=c($(a,($e(),pJ)),12),R.e.c.length+R.g.c.length==1&&(R.n.a=r-R.a.a,R.n.b=0,_o(R,e)),r+=i}if(n){for(k=T*(n.gc()-1),L=0,b=n.Jc();b.Ob();)a=c(b.Pb(),9),k+=a.o.a,L=p.Math.max(L,a.o.b);for(Y=F.a-(k-G.a)/2,o=F.b+G.b+A.a-L,i=G.a/(n.gc()+1),r=i,d=n.Jc();d.Ob();)a=c(d.Pb(),9),a.n.a=Y,a.n.b=o,Y+=a.o.a+T,v=bit(a),v.n.a=a.o.a/2-v.a.a,v.n.b=0,R=c($(a,($e(),pJ)),12),R.e.c.length+R.g.c.length==1&&(R.n.a=r-R.a.a,R.n.b=G.b,_o(R,e)),r+=i}}function ore(e,t,n,i,r,o,a){var d,b,v,k,T,A,L,R,F,G,Y,oe,fe;for(A=null,i==(Yb(),up)?A=t:i==A3&&(A=n),F=A.a.ec().Jc();F.Ob();){for(R=c(F.Pb(),12),G=Lo(ee(Z(Vr,1),Ge,8,0,[R.i.n,R.n,R.a])).b,fe=new Tr,d=new Tr,v=new xh(R.b);No(v.a)||No(v.b);)if(b=c(No(v.a)?U(v.a):U(v.b),17),it(nt($(b,($e(),Vg))))==r&&Do(o,b,0)!=-1){if(b.d==R?Y=b.c:Y=b.d,oe=Lo(ee(Z(Vr,1),Ge,8,0,[Y.i.n,Y.n,Y.a])).b,p.Math.abs(oe-G)<.2)continue;oe<G?t.a._b(Y)?Cr(fe,new Ls(up,b)):Cr(fe,new Ls(A3,b)):t.a._b(Y)?Cr(d,new Ls(up,b)):Cr(d,new Ls(A3,b))}if(fe.a.gc()>1)for(L=new Oye(R,fe,i),ws(fe,new N$e(e,L)),Rt(a.c,L),T=fe.a.ec().Jc();T.Ob();)k=c(T.Pb(),49),gl(o,k.b);if(d.a.gc()>1)for(L=new Oye(R,d,i),ws(d,new _$e(e,L)),Rt(a.c,L),T=d.a.ec().Jc();T.Ob();)k=c(T.Pb(),49),gl(o,k.b)}}function Ftn(e,t){var n,i,r,o,a,d;if(c($(t,($e(),Bc)),24).Gc((Qs(),Ma))){for(d=new J(t.a);d.a<d.c.c.length;)o=c(U(d),9),o.k==(Wt(),ar)&&(r=c($(o,(We(),NJ)),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 J(t.a);a.a<a.c.c.length;)if(o=c(U(a),9),o.k!=(Wt(),ar))switch(o.k.g){case 2:if(i=c($(o,(We(),Ro)),166),i==(Su(),W1)){o.n.a=e.c-10,tet(o,new yX).Jb(new L_e(o));break}if(i==Rm){o.n.a=e.a+10,tet(o,new kX).Jb(new P_e(o));break}if(n=c($(o,Pm),316),n==(_1(),x3)){Ist(o).Jb(new I_e(o)),o.n.b=e.d-10;break}if(n==Nk){Ist(o).Jb(new R_e(o)),o.n.b=e.b+10;break}break;default:throw K(new Ht("The node type "+o.k+" is not supported by the "+Rin))}}}function qtn(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R,F,G;for(b=new He(i.i+i.g/2,i.j+i.f/2),L=Dst(i),R=c(Ae(t,(We(),fr)),103),G=c(Ae(i,e9),64),yBe(mZe(i),ex)||(i.i==0&&i.j==0?F=0:F=hQt(i,G),ri(i,ex,F)),v=new He(t.g,t.f),r=OL(i,R,G,L,v,b,new He(i.g,i.f),c($(n,Xu),87),n),_e(r,($e(),Si),i),o=c(Xe(r.j,0),12),uy(o,rYt(i)),_e(r,tx,(Ul(),bt(pp))),T=c(Ae(t,tx),185).Gc(Z1),d=new ln((!i.n&&(i.n=new Le(Bo,i,1,7)),i.n));d.e!=d.i.gc();)if(a=c(fn(d),158),!it(nt(Ae(a,zm)))&&a.a&&(A=hne(a),Ue(o.f,A),!T))switch(k=0,n7(c(Ae(t,tx),24))&&(k=nxe(new He(a.i,a.j),new He(a.g,a.f),new He(i.g,i.f),0,G)),G.g){case 2:case 4:A.o.a=k;break;case 1:case 3:A.o.b=k}_e(r,n9,be(Ae(Ki(t),n9))),_e(r,i9,be(Ae(Ki(t),i9))),_e(r,rx,be(Ae(Ki(t),rx))),Ue(n.a,r),ci(e.a,i,r)}function Htn(e,t,n,i,r,o){var a,d,b,v,k,T;for(v=new xc,ic(v,t),$r(v,c(Ae(t,(We(),e9)),64)),_e(v,($e(),Si),t),_o(v,n),T=v.o,T.a=t.g,T.b=t.f,k=v.n,k.a=t.i,k.b=t.j,ci(e.a,t,v),a=Ly(Jc(jo(new Tt(null,(!t.e&&(t.e=new Et($i,t,7,4)),new Ct(t.e,16))),new eA),new n8),new S_e(t)),a||(a=Ly(Jc(jo(new Tt(null,(!t.d&&(t.d=new Et($i,t,8,5)),new Ct(t.d,16))),new Ed),new Ux),new T_e(t))),a||(a=Ly(new Tt(null,(!t.e&&(t.e=new Et($i,t,7,4)),new Ct(t.e,16))),new Jx)),_e(v,jP,(zt(),!!a)),hen(v,o,r,c(Ae(t,Hw),8)),b=new ln((!t.n&&(t.n=new Le(Bo,t,1,7)),t.n));b.e!=b.i.gc();)d=c(fn(b),158),!it(nt(Ae(d,zm)))&&d.a&&Ue(v.f,hne(d));switch(r.g){case 2:case 1:(v.j==(Ve(),Yt)||v.j==wn)&&i.Ec((Qs(),v3));break;case 4:case 3:(v.j==(Ve(),sn)||v.j==Zt)&&i.Ec((Qs(),v3))}return v}function Gtn(e,t,n,i,r,o){var a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn,ii;$t=Jt(e.g,r),$t==null&&($t=new f4,R=c($t,150),fe=t+"_s",we=fe+o,L=new iv(we),xf(R,md,L)),Pt=c($t,150),P4(n,Pt),ii=new f4,im(ii,"x",_G(e,i,r.j)),im(ii,"y",DG(e,i,r.k)),xf(Pt,tat,ii),wt=new f4,im(wt,"x",_G(e,i,r.b)),im(wt,"y",DG(e,i,r.c)),xf(Pt,"endPoint",wt),A=w_((!r.a&&(r.a=new Nr(ea,r,5)),r.a)),F=!A,F&&(Ze=new vg,a=new iqe(e,i,Ze),ws((!r.a&&(r.a=new Nr(ea,r,5)),r.a),a),xf(Pt,nU,Ze)),v=zne(r),Ne=!!v,Ne&&Cve(e.a,Pt,ike,xie(e,zne(r))),oe=Fne(r),Me=!!oe,Me&&Cve(e.a,Pt,nke,xie(e,Fne(r))),k=(!r.e&&(r.e=new Et(Qi,r,10,9)),r.e).i==0,G=!k,G&&(vt=new vg,d=new lBe(e,vt),ws((!r.e&&(r.e=new Et(Qi,r,10,9)),r.e),d),xf(Pt,ske,vt)),T=(!r.g&&(r.g=new Et(Qi,r,9,10)),r.g).i==0,Y=!T,Y&&(dn=new vg,b=new uBe(e,dn),ws((!r.g&&(r.g=new Et(Qi,r,9,10)),r.g),b),xf(Pt,rke,dn))}function Qtn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y;for(t.Tg("Comment pre-processing",1),n=0,b=new J(e.a);b.a<b.c.c.length;)if(d=c(U(b),9),it(nt($(d,(We(),fE))))){for(++n,r=0,i=null,v=null,R=new J(d.j);R.a<R.c.c.length;)A=c(U(R),12),r+=A.e.c.length+A.g.c.length,A.e.c.length==1&&(i=c(Xe(A.e,0),17),v=i.c),A.g.c.length==1&&(i=c(Xe(A.g,0),17),v=i.d);if(r==1&&v.e.c.length+v.g.c.length==1&&!it(nt($(v.i,fE))))Onn(d,i,v,v.i),r7(b);else{for(Y=new Qe,L=new J(d.j);L.a<L.c.c.length;){for(A=c(U(L),12),T=new J(A.g);T.a<T.c.c.length;)k=c(U(T),17),k.d.g.c.length==0||Rt(Y.c,k);for(a=new J(A.e);a.a<a.c.c.length;)o=c(U(a),17),o.c.e.c.length==0||Rt(Y.c,o)}for(G=new J(Y);G.a<G.c.c.length;)F=c(U(G),17),qg(F,!0)}}t.$g()&&t.ah("Found "+n+" comment boxes"),t.Ug()}function Utn(e,t,n,i,r){var o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt;for(fe=0,R=0,L=0,A=1,oe=new ln((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a));oe.e!=oe.i.gc();)G=c(fn(oe),19),A+=Vf(new Gt(Xt(B1(G).a.Jc(),new z))),wt=G.g,R=p.Math.max(R,wt),T=G.f,L=p.Math.max(L,T),fe+=wt*T;for(F=(!e.a&&(e.a=new Le(Nn,e,10,11)),e.a).i,a=fe+2*i*i*A*F,o=p.Math.sqrt(a),b=p.Math.max(o*n,R),d=p.Math.max(o/n,L),Y=new ln((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a));Y.e!=Y.i.gc();)G=c(fn(Y),19),vt=r.b+(lu(t,26)*mC+lu(t,27)*bC)*(b-G.g),Pt=r.b+(lu(t,26)*mC+lu(t,27)*bC)*(d-G.f),Dc(G,vt),Dl(G,Pt);for(Ze=b+(r.b+r.c),Me=d+(r.d+r.a),Ne=new ln((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a));Ne.e!=Ne.i.gc();)for(we=c(fn(Ne),19),k=new Gt(Xt(B1(we).a.Jc(),new z));gn(k);)v=c(on(k),74),Z7(v)||Ynn(v,t,Ze,Me);Ze+=r.b+r.c,Me+=r.d+r.a,ww(e,Ze,Me,!1,!0)}function Jtn(e){var t,n,i,r;for(hr(bi(new Tt(null,new Ct(e.a.b,16)),new O5),new xA),aGt(e),hr(bi(new Tt(null,new Ct(e.a.b,16)),new h8),new d8),e.c==(R1(),Kk)&&(hr(bi(jo(new Tt(null,new Ct(new hn(e.f),1)),new yA),new Kx),new iDe(e)),hr(bi(Jc(jo(jo(new Tt(null,new Ct(e.d.b,16)),new XR),new g8),new j5),new nK),new sDe(e))),hr(bi(jo(new Tt(null,new Ct(new hn(e.f),1)),new h1),new kA),new oDe(e)),r=new He(or,or),t=new He(Gr,Gr),i=new J(e.a.b);i.a<i.c.c.length;)n=c(U(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);ji(Wf(e.d.c),nq(new He(r.a,r.b))),ji(Wf(e.d.f),Hr(new He(t.a,t.b),r)),vVt(e,r,t),lc(e.f),lc(e.b),lc(e.g),lc(e.e),e.a.a.c.length=0,e.a.b.c.length=0,e.a=null,e.d=null}function Dye(e,t){Tqe();var n,i,r,o,a,d,b;if(this.a=new i0e(this),this.b=e,this.c=t,this.f=xee(uo((Pl(),ms),t)),this.f.dc())if((d=sve(ms,e))==t)for(this.e=!0,this.d=new Qe,this.f=new OB,this.f.Ec(_m),c(uQ(jD(ms,Fu(e)),""),29)==e&&this.f.Ec(e7(ms,Fu(e))),r=Bie(ms,e).Jc();r.Ob();)switch(i=c(r.Pb(),182),Vb(uo(ms,i))){case 4:{this.d.Ec(i);break}case 5:{this.f.Fc(xee(uo(ms,i)));break}}else if(qs(),c(t,69).vk())for(this.e=!0,this.f=null,this.d=new Qe,a=0,b=(e.i==null&&ud(e),e.i).length;a<b;++a)for(i=(n=(e.i==null&&ud(e),e.i),a>=0&&a<n.length?n[a]:null),o=B4(uo(ms,i));o;o=B4(uo(ms,o)))o==t&&this.d.Ec(i);else Vb(uo(ms,t))==1&&d?(this.f=null,this.d=(ck(),xxt)):(this.f=null,this.e=!0,this.d=(Mt(),new lY(t)));else this.e=Vb(uo(ms,t))==5,this.f.Fb(rfe)&&(this.f=rfe)}function mot(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R;for(n=0,i=Pqt(e,t),A=e.s,L=e.t,v=c(c(Ti(e.r,t),24),85).Jc();v.Ob();)if(b=c(v.Pb(),116),!(!b.c||b.c.d.c.length<=0)){switch(R=b.b.Kf(),d=b.b.nf((Pn(),fu))?ge(be(b.b.mf(fu))):0,k=b.c,T=k.i,T.b=(a=k.n,k.e.a+a.b+a.c),T.a=(o=k.n,k.e.b+o.d+o.a),t.g){case 1:T.c=b.a?(R.a-T.b)/2:R.a+A,T.d=R.b+d+i,Kf(k,(Ql(),tp)),ed(k,(pl(),rh));break;case 3:T.c=b.a?(R.a-T.b)/2:R.a+A,T.d=-d-i-T.a,Kf(k,(Ql(),tp)),ed(k,(pl(),Mf));break;case 2:T.c=-d-i-T.b,b.a?(r=e.v?T.a:c(Xe(k.d,0),190).Kf().b,T.d=(R.b-r)/2):T.d=R.b+L,Kf(k,(Ql(),Ef)),ed(k,(pl(),np));break;case 4:T.c=R.a+d+i,b.a?(r=e.v?T.a:c(Xe(k.d,0),190).Kf().b,T.d=(R.b-r)/2):T.d=R.b+L,Kf(k,(Ql(),wd)),ed(k,(pl(),np))}(t==(Ve(),Yt)||t==wn)&&(n=p.Math.max(n,T.a))}n>0&&(c(eo(e.b,t),129).a.b=n)}function Wtn(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y;for(L=0,i=new Tr,o=new ln((!t.a&&(t.a=new Le(Nn,t,10,11)),t.a));o.e!=o.i.gc();)r=c(fn(o),19),it(nt(Ae(r,(We(),zm))))||(T=Ki(r),oQ(T)&&!it(nt(Ae(r,jJ)))&&(ri(r,($e(),Ri),ze(L)),++L,ma(r,Xv)&&Cr(i,c(Ae(r,Xv),15))),pot(e,r,n));for(_e(n,($e(),sp),ze(L)),_e(n,OP,ze(i.a.gc())),L=0,k=new ln((!t.b&&(t.b=new Le($i,t,12,3)),t.b));k.e!=k.i.gc();)b=c(fn(k),74),oQ(t)&&(ri(b,Ri,ze(L)),++L),G=gie(b),Y=ntt(b),A=it(nt(Ae(G,(We(),Yv)))),F=!it(nt(Ae(b,zm))),R=A&&gw(b)&&it(nt(Ae(b,$m))),a=Ki(G)==t&&Ki(G)==Ki(Y),d=(Ki(G)==t&&Y==t)^(Ki(Y)==t&&G==t),F&&!R&&(d||a)&&Bye(e,b,t,n);if(Ki(t))for(v=new ln(mGe(Ki(t)));v.e!=v.i.gc();)b=c(fn(v),74),G=gie(b),G==t&&gw(b)&&(R=it(nt(Ae(G,(We(),Yv))))&&it(nt(Ae(b,$m))),R&&Bye(e,b,t,n))}function Vtn(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t;for(Me=new Qe,R=new J(e.b);R.a<R.c.c.length;)for(L=c(U(R),26),Y=new J(L.a);Y.a<Y.c.c.length;)if(F=c(U(Y),9),F.k==(Wt(),Ar)&&Oi(F,($e(),wJ))){for(oe=null,we=null,fe=null,vt=new J(F.j);vt.a<vt.c.c.length;)switch(wt=c(U(vt),12),wt.j.g){case 4:oe=wt;break;case 2:we=wt;break;default:fe=wt}for(Ne=c(Xe(fe.g,0),17),k=new eF(Ne.a),v=new Es(fe.n),ji(v,F.n),T=Ln(k,0),Dq(T,v),Ze=Awe(Ne.a),A=new Es(fe.n),ji(A,F.n),sr(Ze,A,Ze.c.b,Ze.c),Pt=c($(F,wJ),9),$t=c(Xe(Pt.j,0),12),b=c(Oh(oe.e,Ce(zS,xS,17,0,0,1)),324),i=b,o=0,d=i.length;o<d;++o)t=i[o],rs(t,$t),une(t.a,t.a.b,k);for(b=rd(we.g),n=b,r=0,a=n.length;r<a;++r)t=n[r],ks(t,$t),une(t.a,0,Ze);ks(Ne,null),rs(Ne,null),Rt(Me.c,F)}for(G=new J(Me);G.a<G.c.c.length;)F=c(U(G),9),zr(F,null)}function Xtn(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R,F;if(A=ge(be($(e,(We(),n9)))),L=ge(be($(e,i9))),T=ge(be($(e,rx))),d=e.o,o=c(Xe(e.j,0),12),a=o.n,F=bUt(o,T),!!F){if(t.Gc((Ul(),Z1)))switch(c($(e,($e(),Zo)),64).g){case 1:F.c=(d.a-F.b)/2-a.a,F.d=L;break;case 3:F.c=(d.a-F.b)/2-a.a,F.d=-L-F.a;break;case 2:n&&o.e.c.length==0&&o.g.c.length==0?(k=i?F.a:c(Xe(o.f,0),70).o.b,F.d=(d.b-k)/2-a.b):F.d=d.b+L-a.b,F.c=-A-F.b;break;case 4:n&&o.e.c.length==0&&o.g.c.length==0?(k=i?F.a:c(Xe(o.f,0),70).o.b,F.d=(d.b-k)/2-a.b):F.d=d.b+L-a.b,F.c=A}else if(t.Gc(pp))switch(c($(e,($e(),Zo)),64).g){case 1:case 3:F.c=a.a+A;break;case 2:case 4:n&&!o.c?(k=i?F.a:c(Xe(o.f,0),70).o.b,F.d=(d.b-k)/2-a.b):F.d=a.b+L}for(r=F.d,v=new J(o.f);v.a<v.c.c.length;)b=c(U(v),70),R=b.n,R.a=F.c,R.b=r,r+=b.o.b+T}}function Lye(e){var t;if(this.r=n_t(new h5,new MO),this.b=new $7(c($n(Rs),299)),this.p=new $7(c($n(Rs),299)),this.i=new $7(c($n(edt),299)),this.e=e,this.o=new Es(e.Kf()),this.D=it(nt(e.mf((Pn(),p9)))),this.F=e.Wf()||it(nt(e.mf(YP))),this.A=c(e.mf(Um),24),this.B=c(e.mf(fp),24),this.q=c(e.mf(d9),103),this.u=c(e.mf(dx),24),!yQt(this.u))throw K(new Xh("Invalid port label placement: "+this.u));if(this.v=it(nt(e.mf(a7e))),this.j=c(e.mf(R3),24),!BWt(this.j))throw K(new Xh("Invalid node label placement: "+this.j));this.n=c(G7(e,KTe),100),this.k=ge(be(G7(e,vW))),this.d=ge(be(G7(e,g7e))),this.w=ge(be(G7(e,v7e))),this.s=ge(be(G7(e,p7e))),this.t=ge(be(G7(e,m7e))),this.C=c(G7(e,b7e),125),this.c=2*this.d,t=!this.B.Gc((uu(),uI)),this.f=new F7(0,t,0),this.g=new F7(1,t,0),SY(this.f,(Yf(),el),this.g)}function Ktn(){ui(kI,new DN),ui(zW,new WB),ui(OI,new EK),ui(DCe,new ez),ui(st,new NK),ui(Z(Bl,1),new RN),ui(cr,new rz),ui(Sk,new sz),ui(st,new $B),ui(st,new kK),ui(st,new P2),ui(Sr,new Q8),ui(st,new _N),ui(Vu,new Q5),ui(Vu,new BB),ui(st,new zB),ui($S,new FB),ui(st,new U8),ui(st,new OK),ui(st,new jK),ui(st,new SK),ui(st,new HB),ui(Z(Bl,1),new GB),ui(st,new U5),ui(st,new J8),ui(Vu,new QB),ui(Vu,new UB),ui(st,new JB),ui(Pr,new VB),ui(st,new XB),ui(_w,new W8),ui(st,new KB),ui(st,new YB),ui(st,new Ec),ui(st,new LN),ui(Vu,new TK),ui(Vu,new ZB),ui(st,new CK),ui(st,new MK),ui(st,new V8),ui(st,new J5),ui(st,new PN),ui(st,new X8),ui(Dw,new IN),ui(st,new I2),ui(st,new Fp),ui(st,new m6),ui(Dw,new AK),ui(_w,new tz),ui(st,new nz),ui(Pr,new iz)}function bot(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R;switch(k=new nu,e.a.g){case 3:A=c($(t.e,($e(),Im)),16),L=c($(t.j,Im),16),R=c($(t.f,Im),16),n=c($(t.e,j3),16),i=c($(t.j,j3),16),r=c($(t.f,j3),16),a=new Qe,Or(a,A),L.Ic(new M5),Or(a,Tu(L)),Or(a,R),o=new Qe,Or(o,n),Or(o,Tu(i)),Or(o,r),_e(t.f,Im,a),_e(t.f,j3,o),_e(t.f,dje,t.f),_e(t.e,Im,null),_e(t.e,j3,null),_e(t.j,Im,null),_e(t.j,j3,null);break;case 1:Os(k,t.e.a),ni(k,t.i.n),Os(k,Tu(t.j.a)),ni(k,t.a.n),Os(k,t.f.a);break;default:Os(k,t.e.a),Os(k,Tu(t.j.a)),Os(k,t.f.a)}ku(t.f.a),Os(t.f.a,k),ks(t.f,t.e.c),d=c($(t.e,(We(),ho)),79),v=c($(t.j,ho),79),b=c($(t.f,ho),79),(d||v||b)&&(T=new nu,Gpe(T,b),Gpe(T,v),Gpe(T,d),_e(t.f,ho,T)),ks(t.j,null),rs(t.j,null),ks(t.e,null),rs(t.e,null),zr(t.a,null),zr(t.i,null),t.g&&bot(e,t.g)}function wot(){wot=W;var e,t,n;for(new WD(1,0),new WD(10,0),new WD(0,0),nht=Ce(lce,Ge,249,11,0,1),Lm=Ce(Da,fd,30,100,15,1),Vke=ee(Z(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]),Xke=Ce(Hn,li,30,Vke.length,15,1),Kke=ee(Z(is,1),io,30,15,[1,10,100,Gg,1e4,$re,1e6,1e7,1e8,bQ,1e10,1e11,1e12,1e13,1e14,1e15,1e16]),Yke=Ce(Hn,li,30,Kke.length,15,1),Zke=Ce(lce,Ge,249,11,0,1),e=0;e<Zke.length;e++)nht[e]=new WD(e,0),Zke[e]=new WD(0,e),Lm[e]=48;for(;e<Lm.length;e++)Lm[e]=48;for(n=0;n<Xke.length;n++)Xke[n]=Zve(Vke[n]);for(t=0;t<Yke.length;t++)Yke[t]=Zve(Kke[t]);Xj()}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[Fre]=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}}}},qXt()||(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[Fre]=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=W,DE=new mi(g3e),new Gi("DEPTH",ze(0)),wue=new Gi("FAN",ze(0)),N9e=new Gi(Hlt,ze(0)),ap=new Gi("ROOT",(zt(),!1)),yue=new Gi("LEFTNEIGHBOR",null),ibt=new Gi("RIGHTNEIGHBOR",null),XJ=new Gi("LEFTSIBLING",null),kue=new Gi("RIGHTSIBLING",null),bue=new Gi("DUMMY",!1),new Gi("LEVEL",ze(0)),L9e=new Gi("REMOVABLE_EDGES",new _i),zP=new Gi("XCOOR",ze(0)),FP=new Gi("YCOOR",ze(0)),KJ=new Gi("LEVELHEIGHT",0),oh=new Gi("LEVELMIN",0),_f=new Gi("LEVELMAX",0),vue=new Gi("GRAPH_XMIN",0),xue=new Gi("GRAPH_YMIN",0),_9e=new Gi("GRAPH_XMAX",0),D9e=new Gi("GRAPH_YMAX",0),A9e=new Gi("COMPACT_LEVEL_ASCENSION",!1),mue=new Gi("COMPACT_CONSTRAINTS",new Qe),_E=new Gi("ID",""),LE=new Gi("POSITION",ze(0)),Zg=new Gi("PRELIM",0),c9=new Gi("MODIFIER",0),o9=new mi(Xct),BP=new mi(Kct)}function Ztn(e){hye();var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F,G;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=Ce(Da,fd,30,A*4,15,1),v=0,k=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++],k=(n&15)<<24>>24,v=(t&3)<<24>>24,R=(t&-128)==0?t>>2<<24>>24:(t>>2^192)<<24>>24,F=(n&-128)==0?n>>4<<24>>24:(n>>4^240)<<24>>24,G=(i&-128)==0?i>>6<<24>>24:(i>>6^252)<<24>>24,o[a++]=c0[R],o[a++]=c0[F|v<<4],o[a++]=c0[k<<2|G],o[a++]=c0[i&63];return d==8?(t=e[r],v=(t&3)<<24>>24,R=(t&-128)==0?t>>2<<24>>24:(t>>2^192)<<24>>24,o[a++]=c0[R],o[a++]=c0[v<<4],o[a++]=61,o[a++]=61):d==16&&(t=e[r],n=e[r+1],k=(n&15)<<24>>24,v=(t&3)<<24>>24,R=(t&-128)==0?t>>2<<24>>24:(t>>2^192)<<24>>24,F=(n&-128)==0?n>>4<<24>>24:(n>>4^240)<<24>>24,o[a++]=c0[R],o[a++]=c0[F|v<<4],o[a++]=c0[k<<2],o[a++]=61),od(o,0,o.length)}function enn(e,t){var n,i,r,o,a,d,b;if(e.e==0&&e.p>0&&(e.p=-(e.p-1)),e.p>cs&&Jme(t,e.p-W0),a=t.q.getDate(),lD(t,1),e.k>=0&&mDt(t,e.k),e.c>=0?lD(t,e.c):e.k>=0?(b=new ywe(t.q.getFullYear()-W0,t.q.getMonth(),35),i=35-b.q.getDate(),lD(t,p.Math.min(i,a))):lD(t,a),e.f<0&&(e.f=t.q.getHours()),e.b>0&&e.f<12&&(e.f+=12),m7t(t,e.f==24&&e.g?0:e.f),e.j>=0&&XPt(t,e.j),e.n>=0&&aIt(t,e.n),e.i>=0&&OBe(t,As(js(rL(nc(t.q.getTime()),Gg),Gg),e.i)),e.a&&(r=new sF,Jme(r,r.q.getFullYear()-W0-80),qY(nc(t.q.getTime()),nc(r.q.getTime()))&&Jme(t,r.q.getFullYear()-W0+100)),e.d>=0){if(e.c==-1)n=(7+e.d-t.q.getDay())%7,n>3&&(n-=7),d=t.q.getMonth(),lD(t,t.q.getDate()+n),t.q.getMonth()!=d&&lD(t,t.q.getDate()+(n>0?-7:7));else if(t.q.getDay()!=e.d)return!1}return e.o>cs&&(o=t.q.getTimezoneOffset(),OBe(t,As(nc(t.q.getTime()),(e.o-o)*60*Gg))),!0}function vot(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we;if(r=$(t,($e(),Si)),!!he(r,209)){for(R=c(r,19),F=t.e,A=new Es(t.c),o=t.d,A.a+=o.b,A.b+=o.d,we=c(Ae(R,(We(),LJ)),185),Al(we,(uu(),SW))&&(L=c(Ae(R,OSe),100),Dz(L,o.a),Iz(L,o.d),Lz(L,o.b),o_(L,o.c)),n=new Qe,k=new J(t.a);k.a<k.c.c.length;)for(b=c(U(k),9),he($(b,Si),209)?rnn(b,A):he($(b,Si),196)&&!F&&(i=c($(b,Si),127),oe=ist(t,b,i.g,i.f),ha(i,oe.a,oe.b)),Y=new J(b.j);Y.a<Y.c.c.length;)G=c(U(Y),12),hr(bi(new Tt(null,new Ct(G.g,16)),new C_e(b)),new E_e(n));if(F)for(Y=new J(F.j);Y.a<Y.c.c.length;)G=c(U(Y),12),hr(bi(new Tt(null,new Ct(G.g,16)),new M_e(F)),new A_e(n));for(fe=c(Ae(R,V1),225),d=new J(n);d.a<d.c.c.length;)a=c(U(d),17),xtn(a,fe,A);for(sYt(t),v=new J(t.a);v.a<v.c.c.length;)b=c(U(v),9),T=b.e,T&&vot(e,T)}}function xot(e,t){var n,i,r,o,a,d,b,v,k,T,A,L;if(!c(c(Ti(e.r,t),24),85).dc()){if(a=c(eo(e.b,t),129),b=a.i,d=a.n,k=Nie(e,t),i=b.b-d.b-d.c,r=a.a.a,o=b.c+d.b,L=e.w,(k==(qy(),dp)||k==rI)&&c(c(Ti(e.r,t),24),85).gc()==1&&(r=k==dp?r-2*e.w:r,k=ZE),i<r&&!e.B.Gc((uu(),TW)))k==dp?(L+=(i-r)/(c(c(Ti(e.r,t),24),85).gc()+1),o+=L):L+=(i-r)/(c(c(Ti(e.r,t),24),85).gc()-1);else switch(i<r&&(r=k==dp?r-2*e.w:r,k=ZE),k.g){case 3:o+=(i-r)/2;break;case 4:o+=i-r;break;case 0:n=(i-r)/(c(c(Ti(e.r,t),24),85).gc()+1),L+=p.Math.max(0,n),o+=L;break;case 1:n=(i-r)/(c(c(Ti(e.r,t),24),85).gc()-1),L+=p.Math.max(0,n)}for(A=c(c(Ti(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((Pn(),fu))?v.$f()==(Ve(),Yt)?-v.Kf().b-ge(be(v.mf(fu))):ge(be(v.mf(fu))):v.$f()==(Ve(),Yt)?-v.Kf().b:0),o+=T.d.b+T.b.Kf().a+T.d.c+L}}function yot(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R;if(!c(c(Ti(e.r,t),24),85).dc()){if(a=c(eo(e.b,t),129),b=a.i,d=a.n,T=Nie(e,t),i=b.a-d.d-d.a,r=a.a.b,o=b.d+d.d,R=e.w,v=e.o.a,(T==(qy(),dp)||T==rI)&&c(c(Ti(e.r,t),24),85).gc()==1&&(r=T==dp?r-2*e.w:r,T=ZE),i<r&&!e.B.Gc((uu(),TW)))T==dp?(R+=(i-r)/(c(c(Ti(e.r,t),24),85).gc()+1),o+=R):R+=(i-r)/(c(c(Ti(e.r,t),24),85).gc()-1);else switch(i<r&&(r=T==dp?r-2*e.w:r,T=ZE),T.g){case 3:o+=(i-r)/2;break;case 4:o+=i-r;break;case 0:n=(i-r)/(c(c(Ti(e.r,t),24),85).gc()+1),R+=p.Math.max(0,n),o+=R;break;case 1:n=(i-r)/(c(c(Ti(e.r,t),24),85).gc()-1),R+=p.Math.max(0,n)}for(L=c(c(Ti(e.r,t),24),85).Jc();L.Ob();)A=c(L.Pb(),116),A.e.a=(k=A.b,k.nf((Pn(),fu))?k.$f()==(Ve(),Zt)?-k.Kf().a-ge(be(k.mf(fu))):v+ge(be(k.mf(fu))):k.$f()==(Ve(),Zt)?-k.Kf().a:v),A.e.b=o+A.d.d,o+=A.d.d+A.b.Kf().b+A.d.a+R}}function tnn(e,t){var n,i,r,o,a;for(t.Tg("Processor determine the coords for each level",1),i=new Qe,a=Ln(e.b,0);a.b!=a.d.c;){for(r=c(_n(a),41);c($(r,(Wo(),yd)),15).a>i.c.length-1;)Ue(i,new Ls(s3,J5e));n=c($(r,yd),15).a,k1(c($(e,Qw),87))?(r.e.a<ge(be((pt(n,i.c.length),c(i.c[n],49)).a))&&r4((pt(n,i.c.length),c(i.c[n],49)),r.e.a),r.e.a+r.f.a>ge(be((pt(n,i.c.length),c(i.c[n],49)).b))&&a_((pt(n,i.c.length),c(i.c[n],49)),r.e.a+r.f.a)):(r.e.b<ge(be((pt(n,i.c.length),c(i.c[n],49)).a))&&r4((pt(n,i.c.length),c(i.c[n],49)),r.e.b),r.e.b+r.f.b>ge(be((pt(n,i.c.length),c(i.c[n],49)).b))&&a_((pt(n,i.c.length),c(i.c[n],49)),r.e.b+r.f.b))}for(o=Ln(e.b,0);o.b!=o.d.c;)r=c(_n(o),41),n=c($(r,(Wo(),yd)),15).a,_e(r,(Ii(),oh),be((pt(n,i.c.length),c(i.c[n],49)).a)),_e(r,_f,be((pt(n,i.c.length),c(i.c[n],49)).b));t.Ug()}function nnn(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F;for(e.o=ge(be($(e.i,(We(),qm)))),e.f=ge(be($(e.i,op))),e.j=e.i.b.c.length,d=e.j-1,A=0,e.k=0,e.n=0,e.b=vf(Ce(Pr,Ge,15,e.j,0,1)),e.c=vf(Ce(Sr,Ge,347,e.j,7,1)),a=new J(e.i.b);a.a<a.c.c.length;){for(r=c(U(a),26),r.p=d,T=new J(r.a);T.a<T.c.c.length;)k=c(U(T),9),k.p=A,++A;--d}for(e.g=Ce(Hn,li,30,A,15,1),e.d=Z2(Hn,[Ge,li],[54,30],15,[A,3],2),e.p=new Qe,e.q=new Qe,t=0,e.e=0,o=new J(e.i.b);o.a<o.c.c.length;){for(r=c(U(o),26),d=r.p,i=0,F=0,b=r.a.c.length,v=0,T=new J(r.a);T.a<T.c.c.length;)k=c(U(T),9),A=k.p,e.g[A]=k.c.p,v+=k.o.b+e.o,n=Vf(new Gt(Xt(vr(k).a.Jc(),new z))),R=Vf(new Gt(Xt(Fi(k).a.Jc(),new z))),e.d[A][0]=R-n,e.d[A][1]=n,e.d[A][2]=R,i+=n,F+=R,n>0&&Ue(e.q,k),Ue(e.p,k);t-=i,L=b+t,v+=t*e.f,Ou(e.b,d,ze(L)),Ou(e.c,d,v),e.k=p.Math.max(e.k,L),e.n=p.Math.max(e.n,v),e.e+=t,t+=F}}function kot(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe;if(t.b!=0){for(L=new _i,d=null,R=null,i=ys(p.Math.floor(p.Math.log(t.b)*p.Math.LOG10E)+1),b=0,fe=Ln(t,0);fe.b!=fe.d.c;)for(Y=c(_n(fe),41),Se(R)!==Se($(Y,(Ii(),_E)))&&(R=qn($(Y,_E)),b=0),R!=null?d=R+IQe(b++,i):d=IQe(b++,i),_e(Y,_E,d),G=(r=Ln(new y1(Y).a.d,0),new dy(r));m_(G.a);)F=c(_n(G.a),65).c,sr(L,F,L.c.b,L.c),_e(F,_E,d);for(A=new xn,a=0;a<d.length-i;a++)for(oe=Ln(t,0);oe.b!=oe.d.c;)Y=c(_n(oe),41),v=qa(qn($(Y,(Ii(),_E))),0,a+1),n=(v==null?Ao(co(A.f,null)):MT(A.i,v))!=null?c(v==null?Ao(co(A.f,null)):MT(A.i,v),15).a+1:1,lo(A,v,ze(n));for(T=new pv(new Hp(A).a);T.b;)k=Ry(T),o=ze(Jt(e.a,k.jd())!=null?c(Jt(e.a,k.jd()),15).a:0),lo(e.a,qn(k.jd()),ze(c(k.kd(),15).a+o.a)),o=c(Jt(e.b,k.jd()),15),(!o||o.a<c(k.kd(),15).a)&&lo(e.b,qn(k.jd()),c(k.kd(),15));kot(e,L)}}function inn(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y;for(n.Tg("Breadth first model order layering",1),e.a=t,G=new Qe,F=new J(e.a.a);F.a<F.c.c.length;)L=c(U(F),9),L.k==(Wt(),ar)&&Rt(G.c,L);for(Mt(),Rr(G,new ca),b=!0,r=new mc(e.a),i=null,Ue(e.a.b,r),R=new J(G);R.a<R.c.c.length;)if(L=c(U(R),9),b)zr(L,r),b=!1;else{for(d=new Gt(Xt(vr(L).a.Jc(),new z));gn(d);)o=c(on(d),17),(o.c.i.k==(Wt(),ar)&&o.c.i.c==r||o.c.i.k==fc&&c(on(new Gt(Xt(vr(o.c.i).a.Jc(),new z))),17).c.i.c==r)&&(i=new mc(e.a),Ue(e.a.b,i),r=new mc(e.a),Ue(e.a.b,r));for(a=new Gt(Xt(vr(L).a.Jc(),new z));gn(a);)o=c(on(a),17),o.c.i.k==(Wt(),fc)&&!o.c.i.c&&zr(o.c.i,i);zr(L,r)}for(e.a.a.c.length=0,Y=new Qe,T=new J(e.a.b);T.a<T.c.c.length;)v=c(U(T),26),v.a.c.length==0&&Rt(Y.c,v);for(t2e(e.a.b,Y),A=0,k=new J(e.a.b);k.a<k.c.c.length;)v=c(U(k),26),v.p=A,++A;n.Ug()}function Ve(){Ve=W;var e;$o=new I_(xC,0),Yt=new I_("NORTH",1),sn=new I_("EAST",2),wn=new I_("SOUTH",3),Zt=new I_("WEST",4),qh=(Mt(),new D6((e=c(Jf(Rs),10),new ga(e,c(mf(e,e.length),10),0)))),Rf=Ig(Li(Yt,ee(Z(Rs,1),ac,64,0,[]))),Na=Ig(Li(sn,ee(Z(Rs,1),ac,64,0,[]))),Yu=Ig(Li(wn,ee(Z(Rs,1),ac,64,0,[]))),ef=Ig(Li(Zt,ee(Z(Rs,1),ac,64,0,[]))),kl=Ig(Li(Yt,ee(Z(Rs,1),ac,64,0,[wn]))),al=Ig(Li(sn,ee(Z(Rs,1),ac,64,0,[Zt]))),$f=Ig(Li(Yt,ee(Z(Rs,1),ac,64,0,[Zt]))),Xl=Ig(Li(Yt,ee(Z(Rs,1),ac,64,0,[sn]))),Zu=Ig(Li(wn,ee(Z(Rs,1),ac,64,0,[Zt]))),_a=Ig(Li(sn,ee(Z(Rs,1),ac,64,0,[wn]))),Kl=Ig(Li(Yt,ee(Z(Rs,1),ac,64,0,[sn,Zt]))),yl=Ig(Li(sn,ee(Z(Rs,1),ac,64,0,[wn,Zt]))),Ol=Ig(Li(Yt,ee(Z(Rs,1),ac,64,0,[wn,Zt]))),$l=Ig(Li(Yt,ee(Z(Rs,1),ac,64,0,[sn,wn]))),zc=Ig(Li(Yt,ee(Z(Rs,1),ac,64,0,[sn,wn,Zt])))}function rnn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F;for(i=c($(e,($e(),Si)),19),R=c($(e,(We(),SJ)),15).a,o=c($(e,mE),15).a,ri(i,SJ,ze(R)),ri(i,mE,ze(o)),Dc(i,e.n.a+t.a),Dl(i,e.n.b+t.b),(c(Ae(i,Bm),185).gc()!=0||e.e||Se($(Jr(e),DJ))===Se((q7(),kE))&&qBe((kv(),(e.q?e.q:(Mt(),Mt(),Yd))._b(qw)?A=c($(e,qw),205):A=c($(Jr(e),wE),205),A)))&&(am(i,e.o.a),um(i,e.o.b)),T=new J(e.j);T.a<T.c.c.length;)v=c(U(T),12),F=$(v,Si),he(F,196)&&(r=c(F,127),ha(r,v.n.a,v.n.b),ri(r,e9,v.j));for(L=c($(e,Fw),185).gc()!=0,b=new J(e.b);b.a<b.c.c.length;)a=c(U(b),70),(L||c($(a,Fw),185).gc()!=0)&&(n=c($(a,Si),158),Fb(n,a.o.a,a.o.b),ha(n,a.n.a,a.n.b));if(!n7(c($(e,tx),24)))for(k=new J(e.j);k.a<k.c.c.length;)for(v=c(U(k),12),d=new J(v.f);d.a<d.c.c.length;)a=c(U(d),70),n=c($(a,Si),158),am(n,a.o.a),um(n,a.o.b),ha(n,a.n.a,a.n.b)}function snn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt;for(t.Tg("Calculate Graph Size",1),t.bh(e,i4e),T=s3,A=s3,v=Use,k=Use,F=new ln((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a));F.e!=F.i.gc();)L=c(fn(F),19),oe=L.i,fe=L.j,vt=L.g,d=L.f,b=c(Ae(L,(Pn(),K1)),125),T=p.Math.min(T,oe-b.b),A=p.Math.min(A,fe-b.d),v=p.Math.max(v,oe+vt+b.c),k=p.Math.max(k,fe+d+b.a);for(Y=c(Ae(e,(Pn(),$h)),100),G=new He(T-Y.b,A-Y.d),wt=v-T+(Y.b+Y.c),a=k-A+(Y.d+Y.a),it(nt(Ae(e,(G0(),l8e))))&&(we=c(Ae(e,(My(),_3)),19),Ne=c(Ae(we,K1),125),Me=we.i+we.g/2+(Ne.b+Ne.c)/2-G.a,Ze=we.j+we.f/2+(Ne.d+Ne.a)/2-G.b,r=wt-Me,o=a-Ze,r<wt/2?(n=r-Me,wt+=n,G.a-=n):(n=Me-r,wt+=n),o<a/2?(i=o-Ze,a+=i,G.b-=i):(i=Ze-o,a+=i)),R=new ln((!e.a&&(e.a=new Le(Nn,e,10,11)),e.a));R.e!=R.i.gc();)L=c(fn(R),19),Dc(L,L.i-G.a),Dl(L,L.j-G.b);it(nt(Ae(e,hx)))||(am(e,wt),um(e,a)),ri(e,fx,wt-(Y.b+Y.c)),ri(e,ax,a-(Y.d+Y.a)),t.bh(e,VQ)}function onn(e,t,n){var i,r,o,a,d,b,v,k,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 J(t.a);a.a<a.c.c.length;)for(o=c(U(a),9),T=Fg(o,(Ve(),sn)).Jc();T.Ob();)for(k=c(T.Pb(),12),Cr(e.e,k),r=new J(k.g);r.a<r.c.c.length;)i=c(U(r),17),!vs(i)&&(Ue(e.c,i),pZe(e,i),d=i.c.i.k,(d==(Wt(),ar)||d==$c||d==Ar||d==Lh)&&Ue(e.j,i),L=i.d,A=L.i.c,A==n?Cr(e.f,L):A==t?Cr(e.e,L):gl(e.c,i));if(n)for(a=new J(n.a);a.a<a.c.c.length;){for(o=c(U(a),9),v=new J(o.j);v.a<v.c.c.length;)for(b=c(U(v),12),r=new J(b.g);r.a<r.c.c.length;)i=c(U(r),17),vs(i)&&Cr(e.g,i);for(T=Fg(o,(Ve(),Zt)).Jc();T.Ob();)for(k=c(T.Pb(),12),Cr(e.f,k),r=new J(k.g);r.a<r.c.c.length;)i=c(U(r),17),!vs(i)&&(Ue(e.c,i),pZe(e,i),d=i.c.i.k,(d==(Wt(),ar)||d==$c||d==Ar||d==Lh)&&Ue(e.j,i),L=i.d,A=L.i.c,A==n?Cr(e.f,L):A==t?Cr(e.e,L):gl(e.c,i))}}function cnn(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we;for(n.Tg("Polyline edge routing",1),G=ge(be($(t,(We(),sSe)))),L=ge(be($(t,sx))),r=ge(be($(t,ix))),i=p.Math.min(1,r/L),fe=0,b=0,t.b.c.length!=0&&(we=hit(c(Xe(t.b,0),26)),fe=.4*i*we),d=new ss(t.b,0);d.b<d.d.gc();){for(a=(pn(d.b<d.d.gc()),c(d.d.Xb(d.c=d.b++),26)),o=qF(a,RP),o&&fe>0&&(fe-=L),jye(a,fe),k=0,A=new J(a.a);A.a<A.c.c.length;){for(T=c(U(A),9),v=0,F=new Gt(Xt(Fi(T).a.Jc(),new z));gn(F);)R=c(on(F),17),Y=vh(R.c).b,oe=vh(R.d).b,a==R.d.i.c&&!vs(R)&&(xJt(R,fe,.4*i*p.Math.abs(Y-oe)),R.c.j==(Ve(),Zt)&&(Y=0,oe=0)),v=p.Math.max(v,p.Math.abs(oe-Y));switch(T.k.g){case 0:case 4:case 1:case 3:case 5:Oen(e,T,fe,G)}k=p.Math.max(k,v)}d.b<d.d.gc()&&(we=hit((pn(d.b<d.d.gc()),c(d.d.Xb(d.c=d.b++),26))),k=p.Math.max(k,we),pn(d.b>0),d.a.Xb(d.c=--d.b)),b=.4*i*k,!o&&d.b<d.d.gc()&&(b+=L),fe+=a.c.a+b}e.a.a.$b(),t.f.a=fe,n.Ug()}function lnn(e){var t,n,i,r,o;switch(oD(e,lat),(!e.b&&(e.b=new Et(yn,e,4,7)),e.b).i+(!e.c&&(e.c=new Et(yn,e,5,8)),e.c).i){case 0:throw K(new Ht("The edge must have at least one source or target."));case 1:return(!e.b&&(e.b=new Et(yn,e,4,7)),e.b).i==0?Ki(no(c(ae((!e.c&&(e.c=new Et(yn,e,5,8)),e.c),0),83))):Ki(no(c(ae((!e.b&&(e.b=new Et(yn,e,4,7)),e.b),0),83)))}if((!e.b&&(e.b=new Et(yn,e,4,7)),e.b).i==1&&(!e.c&&(e.c=new Et(yn,e,5,8)),e.c).i==1){if(r=no(c(ae((!e.b&&(e.b=new Et(yn,e,4,7)),e.b),0),83)),o=no(c(ae((!e.c&&(e.c=new Et(yn,e,5,8)),e.c),0),83)),Ki(r)==Ki(o))return Ki(r);if(r==Ki(o))return r;if(o==Ki(r))return o}for(i=Bd(va(ee(Z(Ea,1),It,22,0,[(!e.b&&(e.b=new Et(yn,e,4,7)),e.b),(!e.c&&(e.c=new Et(yn,e,5,8)),e.c)]))),t=no(c(on(i),83));gn(i);)if(n=no(c(on(i),83)),n!=t&&!hv(n,t)){if(Ki(n)==Ki(t))t=Ki(n);else if(t=_Wt(t,n),!t)return null}return t}function Pye(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe;if(A=t.length,A>0&&(b=(tn(0,t.length),t.charCodeAt(0)),b!=64)){if(b==37&&(T=t.lastIndexOf("%"),v=!1,T!=0&&(T==A-1||(v=(tn(T+1,t.length),t.charCodeAt(T+1)==46))))){if(a=(as(1,T,t.length),t.substr(1,T-1)),fe=jt("%",a)?null:Iye(a),i=0,v)try{i=Qu((tn(T+2,t.length+1),t.substr(T+2)),cs,pi)}catch(we){throw we=kr(we),he(we,133)?(d=we,K(new vH(d))):K(we)}for(G=Zbe(e.Dh());G.Ob();)if(R=QH(G),he(R,508)&&(r=c(R,594),oe=r.d,(fe==null?oe==null:jt(fe,oe))&&i--==0))return r;return null}if(k=t.lastIndexOf("."),L=k==-1?t:(as(0,k,t.length),t.substr(0,k)),n=0,k!=-1)try{n=Qu((tn(k+1,t.length+1),t.substr(k+1)),cs,pi)}catch(we){if(we=kr(we),he(we,133))L=t;else throw K(we)}for(L=jt("%",L)?null:Iye(L),F=Zbe(e.Dh());F.Ob();)if(R=QH(F),he(R,199)&&(o=c(R,199),Y=o.ve(),(L==null?Y==null:jt(L,Y))&&n--==0))return o;return null}return oot(e,t)}function unn(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe;for(k=new xn,b=new Zb,i=new J(e.a.a.b);i.a<i.c.c.length;)if(t=c(U(i),60),v=_y(t),v)bl(k.f,v,t);else if(oe=z4(t),oe)for(o=new J(oe.k);o.a<o.c.c.length;)r=c(U(o),17),St(b,r,t);for(n=new J(e.a.a.b);n.a<n.c.c.length;)if(t=c(U(n),60),v=_y(t),v){for(d=new Gt(Xt(Fi(v).a.Jc(),new z));gn(d);)if(a=c(on(d),17),!vs(a)&&(R=a.c,Y=a.d,!((Ve(),kl).Gc(a.c.j)&&kl.Gc(a.d.j)))){if(F=c(Jt(k,a.d.i),60),Sf(ff(df(gf(hf(new $a,0),100),e.c[t.a.d]),e.c[F.a.d])),R.j==Zt&&mHe((Ll(),R))){for(A=c(Ti(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],G=e.c[t.a.d],L==G)continue;Sf(ff(df(gf(hf(new $a,1),100),L),G))}}if(Y.j==sn&&bHe((Ll(),Y))){for(A=c(Ti(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],G=e.c[T.a.d],L==G)continue;Sf(ff(df(gf(hf(new $a,1),100),L),G))}}}}}function ann(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me;if(A=c(c(Ti(e.r,t),24),85),t==(Ve(),sn)||t==Zt){mot(e,t);return}for(o=t==Yt?(cw(),aP):(cw(),fP),we=t==Yt?(pl(),rh):(pl(),Mf),n=c(eo(e.b,t),129),i=n.i,r=i.c+Py(ee(Z(is,1),io,30,15,[n.n.b,e.C.b,e.k])),Y=i.c+i.b-Py(ee(Z(is,1),io,30,15,[n.n.c,e.C.c,e.k])),a=G1e(rpe(o),e.t),oe=t==Yt?Gr:or,T=A.Jc();T.Ob();)v=c(T.Pb(),116),!(!v.c||v.c.d.c.length<=0)&&(G=v.b.Kf(),F=v.e,L=v.c,R=L.i,R.b=(b=L.n,L.e.a+b.b+b.c),R.a=(d=L.n,L.e.b+d.d+d.a),oD(we,c3e),L.f=we,Kf(L,(Ql(),Ef)),R.c=F.a-(R.b-G.a)/2,Ne=p.Math.min(r,F.a),Me=p.Math.max(Y,F.a+G.a),R.c<Ne?R.c=Ne:R.c+R.b>Me&&(R.c=Me-R.b),Ue(a.d,new aee(R,Zwe(a,R))),oe=t==Yt?p.Math.max(oe,F.b+v.b.Kf().b):p.Math.min(oe,F.b));for(oe+=t==Yt?e.t:-e.t,fe=m2e((a.e=oe,a)),fe>0&&(c(eo(e.b,t),129).a.b=fe),k=A.Jc();k.Ob();)v=c(k.Pb(),116),!(!v.c||v.c.d.c.length<=0)&&(R=v.c.i,R.c-=v.e.a,R.d-=v.e.b)}function fnn(e,t){Wie();var n,i,r,o,a,d,b,v,k,T,A,L,R,F;if(b=Lc(e,0)<0,b&&(e=Dg(e)),Lc(e,0)==0)switch(t){case 0:return"0";case 1:return lS;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 v0,t<0?L.a+="0E+":L.a+="0E",L.a+=t==cs?"2147483648":""+-t,L.a}k=18,T=Ce(Da,fd,30,k+1,15,1),n=k,F=e;do v=F,F=rL(F,10),T[--n]=Qn(As(48,Ga(v,js(F,10))))&Dr;while(Lc(F,0)!=0);if(r=Ga(Ga(Ga(k,n),t),1),t==0)return b&&(T[--n]=45),od(T,n,k-n);if(t>0&&Lc(r,-6)>=0){if(Lc(r,0)>=0){for(o=n+Qn(r),d=k-1;d>=o;d--)T[d+1]=T[d];return T[++o]=46,b&&(T[--n]=45),od(T,n,k-n+1)}for(a=2;qY(a,As(Dg(r),1));a++)T[--n]=48;return T[--n]=46,T[--n]=48,b&&(T[--n]=45),od(T,n,k-n)}return R=n+1,i=k,A=new g4,b&&(A.a+="-"),i-R>=1?(tm(A,T[n]),A.a+=".",A.a+=od(T,n+1,k-n-1)):A.a+=od(T,n,k-n),A.a+="E",Lc(r,0)>0&&(A.a+="+"),A.a+=""+t7(r),A.a}function Oot(e){Bb(e,new ym(p_(Ib(Db(Pb(Lb(new p1,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 ZA),Sa))),Fe(e,Sa,GQ,Ke(Zbt)),Fe(e,Sa,kw,Ke(ewt)),Fe(e,Sa,i3,Ke(Vbt)),Fe(e,Sa,yk,Ke(Xbt)),Fe(e,Sa,xk,Ke(Kbt)),Fe(e,Sa,wS,Ke(Wbt)),Fe(e,Sa,mS,Ke(u8e)),Fe(e,Sa,vS,Ke(Ybt)),Fe(e,Sa,toe,Ke(Pue)),Fe(e,Sa,eoe,Ke(Iue)),Fe(e,Sa,XQ,Ke(f8e)),Fe(e,Sa,noe,Ke(Rue)),Fe(e,Sa,ioe,Ke(h8e)),Fe(e,Sa,h4e,Ke(d8e)),Fe(e,Sa,f4e,Ke(a8e)),Fe(e,Sa,c4e,Ke(nW)),Fe(e,Sa,l4e,Ke(iW)),Fe(e,Sa,u4e,Ke(qP)),Fe(e,Sa,a4e,Ke(g8e)),Fe(e,Sa,o4e,Ke(l8e))}function ww(e,t,n,i,r){var o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me;if(G=new He(e.g,e.f),F=Qve(e),F.a=p.Math.max(F.a,t),F.b=p.Math.max(F.b,n),Me=F.a/G.a,k=F.b/G.b,we=F.a-G.a,b=F.b-G.b,i)for(a=Ki(e)?c(Ae(Ki(e),(Pn(),Qm)),87):c(Ae(e,(Pn(),Qm)),87),d=Se(Ae(e,(Pn(),d9)))===Se((es(),Sc)),oe=new ln((!e.c&&(e.c=new Le(hu,e,9,9)),e.c));oe.e!=oe.i.gc();)switch(Y=c(fn(oe),127),fe=c(Ae(Y,B3),64),fe==(Ve(),$o)&&(fe=dye(Y,a),ri(Y,B3,fe)),fe.g){case 1:d||Dc(Y,Y.i*Me);break;case 2:Dc(Y,Y.i+we),d||Dl(Y,Y.j*k);break;case 3:d||Dc(Y,Y.i*Me),Dl(Y,Y.j+b);break;case 4:d||Dl(Y,Y.j*k)}if(Fb(e,F.a,F.b),r)for(A=new ln((!e.n&&(e.n=new Le(Bo,e,1,7)),e.n));A.e!=A.i.gc();)T=c(fn(A),158),L=T.i+T.g/2,R=T.j+T.f/2,Ne=L/G.a,v=R/G.b,Ne+v>=1&&(Ne-v>0&&R>=0?(Dc(T,T.i+we),Dl(T,T.j+b*v)):Ne-v<0&&L>=0&&(Dc(T,T.i+we*Ne),Dl(T,T.j+b)));return ri(e,(Pn(),Um),(Cu(),o=c(Jf(iM),10),new ga(o,c(mf(o,o.length),10),0))),new He(Me,k)}function hQ(e){var t,n,i,r,o,a,d,b,v,k,T;if(e==null)throw K(new Yh(wl));if(v=e,o=e.length,b=!1,o>0&&(t=(tn(0,e.length),e.charCodeAt(0)),(t==45||t==43)&&(e=(tn(1,e.length+1),e.substr(1)),--o,b=t==45)),o==0)throw K(new Yh(yw+v+'"'));for(;e.length>0&&(tn(0,e.length),e.charCodeAt(0)==48);)e=(tn(1,e.length+1),e.substr(1)),--o;if(o>(Krt(),eht)[10])throw K(new Yh(yw+v+'"'));for(r=0;r<o;r++)if(KYe((tn(r,e.length),e.charCodeAt(r)))==-1)throw K(new Yh(yw+v+'"'));for(T=0,a=Qke[10],k=cce[10],d=Dg(Uke[10]),n=!0,i=o%a,i>0&&(T=-parseInt((as(0,i,e.length),e.substr(0,i)),10),e=(tn(i,e.length+1),e.substr(i)),o-=i,n=!1);o>=a;){if(i=parseInt((as(0,a,e.length),e.substr(0,a)),10),e=(tn(a,e.length+1),e.substr(a)),o-=a,n)n=!1;else{if(Lc(T,d)<0)throw K(new Yh(yw+v+'"'));T=js(T,k)}T=Ga(T,i)}if(Lc(T,0)>0)throw K(new Yh(yw+v+'"'));if(!b&&(T=Dg(T),Lc(T,0)<0))throw K(new Yh(yw+v+'"'));return T}function Iye(e){ere();var t,n,i,r,o,a,d,b;if(e==null)return null;if(r=Zh(e,ml(37)),r<0)return e;for(b=new Iu((as(0,r,e.length),e.substr(0,r))),t=Ce(Bl,l3,30,4,15,1),d=0,i=0,a=e.length;r<a;r++)if(tn(r,e.length),e.charCodeAt(r)==37&&e.length>r+2&&Zte((tn(r+1,e.length),e.charCodeAt(r+1)),fCe,hCe)&&Zte((tn(r+2,e.length),e.charCodeAt(r+2)),fCe,hCe))if(n=vAt((tn(r+1,e.length),e.charCodeAt(r+1)),(tn(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:{tm(b,((t[0]&31)<<6|t[1]&63)&Dr);break}case 3:{tm(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)tm(b,t[o]&Dr);d=0,b.a+=String.fromCharCode(n)}else{for(o=0;o<d;++o)tm(b,t[o]&Dr);d=0,tm(b,(tn(r,e.length),e.charCodeAt(r)))}return b.a}function jot(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R;if(L=Ki(no(c(ae((!e.b&&(e.b=new Et(yn,e,4,7)),e.b),0),83))),R=Ki(no(c(ae((!e.c&&(e.c=new Et(yn,e,5,8)),e.c),0),83))),T=L==R,d=new us,t=c(Ae(e,(KH(),A7e)),79),t&&t.b>=2){if((!e.a&&(e.a=new Le(Qi,e,6,6)),e.a).i==0)n=(y0(),r=new a6,r),Dn((!e.a&&(e.a=new Le(Qi,e,6,6)),e.a),n);else if((!e.a&&(e.a=new Le(Qi,e,6,6)),e.a).i>1)for(A=new T4((!e.a&&(e.a=new Le(Qi,e,6,6)),e.a));A.e!=A.i.gc();)J7(A);pye(t,c(ae((!e.a&&(e.a=new Le(Qi,e,6,6)),e.a),0),171))}if(T)for(i=new ln((!e.a&&(e.a=new Le(Qi,e,6,6)),e.a));i.e!=i.i.gc();)for(n=c(fn(i),171),v=new ln((!n.a&&(n.a=new Nr(ea,n,5)),n.a));v.e!=v.i.gc();)b=c(fn(v),373),d.a=p.Math.max(d.a,b.a),d.b=p.Math.max(d.b,b.b);for(a=new ln((!e.n&&(e.n=new Le(Bo,e,1,7)),e.n));a.e!=a.i.gc();)o=c(fn(a),158),k=c(Ae(o,KE),8),k&&ha(o,k.a,k.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 Sot(e,t,n,i,r){var o,a,d;if(QWe(e,t),a=t[0],o=bs(n.c,0),d=-1,Ewe(n))if(i>0){if(a+i>e.length)return!1;d=FG((as(0,a+i,e.length),e.substr(0,a+i)),t)}else d=FG(e,t);switch(o){case 71:return d=Jy(e,a,ee(Z(st,1),Ge,2,6,[fct,hct]),t),r.e=d,!0;case 77:return EXt(e,t,r,d,a);case 76:return MXt(e,t,r,d,a);case 69:return EUt(e,t,a,r);case 99:return MUt(e,t,a,r);case 97:return d=Jy(e,a,ee(Z(st,1),Ge,2,6,["AM","PM"]),t),r.b=d,!0;case 121:return AXt(e,t,a,d,n,r);case 100:return d<=0?!1:(r.c=d,!0);case 83:return d<0?!1:qzt(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&&(tn(a,e.length),e.charCodeAt(a)==90))return++t[0],r.o=0,!0;case 122:case 118:return eQt(e,a,t,r);default:return!1}}function hnn(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt;for(fe=t.c.length,r=new Xy(e.a,n,null,null),wt=Ce(is,io,30,fe,15,1),F=Ce(is,io,30,fe,15,1),R=Ce(is,io,30,fe,15,1),G=0,d=0;d<fe;d++)F[d]=pi,R[d]=cs;for(b=0;b<fe;b++)for(i=(pt(b,t.c.length),c(t.c[b],188)),wt[b]=Cie(i),wt[G]>wt[b]&&(G=b),T=new J(e.a.b);T.a<T.c.c.length;)for(k=c(U(T),26),oe=new J(k.a);oe.a<oe.c.c.length;)Y=c(U(oe),9),Me=ge(i.p[Y.p])+ge(i.d[Y.p]),F[b]=p.Math.min(F[b],Me),R[b]=p.Math.max(R[b],Me+Y.o.b);for(Ze=Ce(is,io,30,fe,15,1),v=0;v<fe;v++)(pt(v,t.c.length),c(t.c[v],188)).o==(bh(),Hm)?Ze[v]=F[G]-F[v]:Ze[v]=R[G]-R[v];for(o=Ce(is,io,30,fe,15,1),L=new J(e.a.b);L.a<L.c.c.length;)for(A=c(U(L),26),Ne=new J(A.a);Ne.a<Ne.c.c.length;){for(we=c(U(Ne),9),a=0;a<fe;a++)o[a]=ge((pt(a,t.c.length),c(t.c[a],188)).p[we.p])+ge((pt(a,t.c.length),c(t.c[a],188)).d[we.p])+Ze[a];pPe(o,AVe(je.prototype.Ke,je,[])),r.p[we.p]=(o[1]+o[2])/2,r.d[we.p]=0}return r}function dnn(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=Lo(ee(Z(Vr,1),Ge,8,0,[d,e.a])),e.j.g){case 1:ed(t,(pl(),Mf)),i.d=-r.d-n-i.a,c(c(Xe(t.d,0),190).mf(($e(),Ik)),293)==(Gu(),n1)?(Kf(t,(Ql(),Ef)),i.c=a.a-ge(be($(e,y3)))-n-i.b):(Kf(t,(Ql(),wd)),i.c=a.a+ge(be($(e,y3)))+n);break;case 2:Kf(t,(Ql(),wd)),i.c=o.a+r.c+n,c(c(Xe(t.d,0),190).mf(($e(),Ik)),293)==(Gu(),n1)?(ed(t,(pl(),Mf)),i.d=a.b-ge(be($(e,y3)))-n-i.a):(ed(t,(pl(),rh)),i.d=a.b+ge(be($(e,y3)))+n);break;case 3:ed(t,(pl(),rh)),i.d=o.b+r.a+n,c(c(Xe(t.d,0),190).mf(($e(),Ik)),293)==(Gu(),n1)?(Kf(t,(Ql(),Ef)),i.c=a.a-ge(be($(e,y3)))-n-i.b):(Kf(t,(Ql(),wd)),i.c=a.a+ge(be($(e,y3)))+n);break;case 4:Kf(t,(Ql(),Ef)),i.c=-r.b-n-i.b,c(c(Xe(t.d,0),190).mf(($e(),Ik)),293)==(Gu(),n1)?(ed(t,(pl(),Mf)),i.d=a.b-ge(be($(e,y3)))-n-i.a):(ed(t,(pl(),rh)),i.d=a.b+ge(be($(e,y3)))+n)}}function gnn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe;for(t.Tg("Interactive node layering",1),n=new Qe,A=new J(e.a);A.a<A.c.c.length;){for(k=c(U(A),9),b=k.n.a,d=b+k.o.a,d=p.Math.max(b+1,d),oe=new ss(n,0),i=null;oe.b<oe.d.gc();)if(G=(pn(oe.b<oe.d.gc()),c(oe.d.Xb(oe.c=oe.b++),571)),G.c>=d){pn(oe.b>0),oe.a.Xb(oe.c=--oe.b);break}else G.a>b&&(i?(Or(i.b,G.b),i.a=p.Math.max(i.a,G.a),iu(oe)):(Ue(G.b,k),G.c=p.Math.min(G.c,b),G.a=p.Math.max(G.a,d),i=G));i||(i=new NPe,i.c=b,i.a=d,X2(oe,i),Ue(i.b,k))}for(a=e.b,v=0,Y=new J(n);Y.a<Y.c.c.length;)for(G=c(U(Y),571),r=new mc(e),r.p=v++,Rt(a.c,r),L=new J(G.b);L.a<L.c.c.length;)k=c(U(L),9),zr(k,r),k.p=0;for(T=new J(e.a);T.a<T.c.c.length;)if(k=c(U(T),9),k.p==0)for(F=lrt(k,e);F.a.gc()!=0;)R=c(F.a.ec().Jc().Pb(),9),F.a.Ac(R)!=null,Os(F,lrt(R,e));for(o=new ss(a,0);o.b<o.d.gc();)(pn(o.b<o.d.gc()),c(o.d.Xb(o.c=o.b++),26)).a.c.length==0&&iu(o);e.a.c.length=0,t.Ug()}function pnn(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F;for(n.Tg(Xlt,1),!t.a&&(t.a=new Le(Nn,t,10,11)),i=ge(be(Ae(t,(Eh(),cW)))),k=ge(be(Ae(t,BE))),A=c(Ae(t,$E),100),L=new $ge(i,k),o=qot(L,t,A),jVe(t,L),d=c(Ae(t,D8e),15).a;d>1;){if(r=yVt(t),T=o.g,R=c(Ae(t,$E),100),F=ge(be(Ae(t,cW))),(!t.a&&(t.a=new Le(Nn,t,10,11)),t.a).i>1&&ge(be(Ae(t,(Qd(),Uue))))!=or&&(o.c+(R.b+R.c))/(o.b+(R.d+R.a))<F?ri(r,(Qd(),lx),ge(be(Ae(t,lx)))+ge(be(Ae(t,Uue)))):(!t.a&&(t.a=new Le(Nn,t,10,11)),t.a).i>1&&ge(be(Ae(t,(Qd(),Que))))!=or&&(o.c+(R.b+R.c))/(o.b+(R.d+R.a))>F&&ri(r,(Qd(),lx),p.Math.max(ge(be(Ae(t,RE))),ge(be(Ae(r,lx)))-ge(be(Ae(t,Que))))),L=new $ge(i,k),b=qot(L,r,A),v=b.g,v>=T&&v==v){for(a=0;a<(!r.a&&(r.a=new Le(Nn,r,10,11)),r.a).i;a++)lnt(e,c(ae((!r.a&&(r.a=new Le(Nn,r,10,11)),r.a),a),19),c(ae((!t.a&&(t.a=new Le(Nn,t,10,11)),t.a),a),19));jVe(t,L),nDt(o,b.c),iDt(o,b.b)}--d}ri(t,(Qd(),l9),o.b),ri(t,Hk,o.c),n.Ug()}function mnn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt;for(t.Tg("Compound graph postprocessor",1),n=it(nt($(e,(We(),Qle)))),d=c($(e,($e(),sje)),231),k=new Tr,Y=d.ec().Jc();Y.Ob();){for(G=c(Y.Pb(),17),a=new Hl(d.cc(G)),Mt(),Rr(a,new c1e(e)),Ne=r$t((pt(0,a.c.length),c(a.c[0],253))),Ze=yXe(c(Xe(a,a.c.length-1),253)),fe=Ne.i,xj(Ze.i,fe)?oe=fe.e:oe=Jr(fe),T=UFt(G,a),ku(G.a),A=null,o=new J(a);o.a<o.c.c.length;)r=c(U(o),253),F=new us,qve(F,r.a,oe),L=r.b,i=new nu,une(i,0,L.a),gv(i,F),we=new Es(vh(L.c)),Me=new Es(vh(L.d)),ji(we,F),ji(Me,F),A&&(i.b==0?R=Me:R=(pn(i.b!=0),c(i.a.a.c,8)),wt=p.Math.abs(A.a-R.a)>dd,vt=p.Math.abs(A.b-R.b)>dd,(!n&&wt&&vt||n&&(wt||vt))&&ni(G.a,we)),Os(G.a,i),i.b==0?A=we:A=(pn(i.b!=0),c(i.c.b.c,8)),M$t(L,T,F),yXe(r)==Ze&&(Jr(Ze.i)!=r.a&&(F=new us,qve(F,Jr(Ze.i),oe)),_e(G,Sle,F)),QQt(L,G,oe),k.a.yc(L,k);ks(G,Ne),rs(G,Ze)}for(v=k.a.ec().Jc();v.Ob();)b=c(v.Pb(),17),ks(b,null),rs(b,null);t.Ug()}function bnn(e,t){var n,i,r,o,a,d,b,v,k,T,A;for(r=c($(e,(Wo(),Qw)),87),k=r==(_r(),go)||r==vo?Bh:vo,n=c(Gl(bi(new Tt(null,new Ct(e.b,16)),new sy),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[(ya(),vl)]))),16),b=c(Gl(Jc(n.Mc(),new eLe(t)),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[vl]))),16),b.Fc(c(Gl(Jc(n.Mc(),new tLe(t)),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[vl]))),18)),b.gd(new nLe(k)),A=new jg(new iLe(r)),i=new xn,d=b.Jc();d.Ob();)a=c(d.Pb(),243),v=c(a.a,41),it(nt(a.c))?(A.a.yc(v,(zt(),ep))==null,new C6(A.a.Xc(v,!1)).a.gc()>0&&ci(i,v,c(new C6(A.a.Xc(v,!1)).a.Tc(),41)),new C6(A.a.$c(v,!0)).a.gc()>1&&ci(i,_Ye(A,v),v)):(new C6(A.a.Xc(v,!1)).a.gc()>0&&(o=c(new C6(A.a.Xc(v,!1)).a.Tc(),41),Se(o)===Se(Ao(co(i.f,v)))&&c($(v,(Ii(),mue)),16).Ec(o)),new C6(A.a.$c(v,!0)).a.gc()>1&&(T=_Ye(A,v),Se(Ao(co(i.f,T)))===Se(v)&&c($(T,(Ii(),mue)),16).Ec(v)),A.a.Ac(v)!=null)}function Tot(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we;if(e.gc()==1)return c(e.Xb(0),238);if(e.gc()<=0)return new aH;for(r=e.Jc();r.Ob();){for(n=c(r.Pb(),238),R=0,k=pi,T=pi,b=cs,v=cs,L=new J(n.e);L.a<L.c.c.length;)A=c(U(L),156),R+=c($(A,(Tf(),Ek)),15).a,k=p.Math.min(k,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);_e(n,(Tf(),Ek),ze(R)),_e(n,(L0(),KC),new He(k,T)),_e(n,hP,new He(b,v))}for(Mt(),e.gd(new g5),F=new aH,ic(F,c(e.Xb(0),105)),d=0,oe=0,o=e.Jc();o.Ob();)n=c(o.Pb(),238),G=Hr(Ms(c($(n,(L0(),hP)),8)),c($(n,KC),8)),d=p.Math.max(d,G.a),oe+=G.a*G.b;for(d=p.Math.max(d,p.Math.sqrt(oe)*ge(be($(F,(Tf(),ddt))))),Y=ge(be($(F,LU))),fe=0,we=0,a=0,t=Y,i=e.Jc();i.Ob();)n=c(i.Pb(),238),G=Hr(Ms(c($(n,(L0(),hP)),8)),c($(n,KC),8)),fe+G.a>d&&(fe=0,we+=a+Y,a=0),qKt(F,n,fe,we),t=p.Math.max(t,fe+G.a),a=p.Math.max(a,G.b),fe+=G.a+Y;return F}function wnn(e){hye();var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F,G;if(e==null||(o=yH(e),R=nzt(o),R%4!=0))return null;if(F=R/4|0,F==0)return Ce(Bl,l3,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,k=0,T=Ce(Bl,l3,30,F*3,15,1);L<F-1;L++){if(!v_(a=o[k++])||!v_(d=o[k++])||!v_(b=o[k++])||!v_(v=o[k++]))return null;t=Gh[a],n=Gh[d],i=Gh[b],r=Gh[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!v_(a=o[k++])||!v_(d=o[k++])?null:(t=Gh[a],n=Gh[d],b=o[k++],v=o[k++],Gh[b]==-1||Gh[v]==-1?b==61&&v==61?(n&15)!=0?null:(G=Ce(Bl,l3,30,L*3+1,15,1),yc(T,0,G,0,L*3),G[A]=(t<<2|n>>4)<<24>>24,G):b!=61&&v==61?(i=Gh[b],(i&3)!=0?null:(G=Ce(Bl,l3,30,L*3+2,15,1),yc(T,0,G,0,L*3),G[A++]=(t<<2|n>>4)<<24>>24,G[A]=((n&15)<<4|i>>2&15)<<24>>24,G)):null:(i=Gh[b],r=Gh[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 vnn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne;for(t.Tg(blt,1),R=c($(e,(We(),V1)),225),r=new J(e.b);r.a<r.c.c.length;)for(i=c(U(r),26),v=aD(i.a),a=v,d=0,b=a.length;d<b;++d)if(o=a[d],o.k==(Wt(),$c)){if(R==(R1(),Kk))for(T=new J(o.j);T.a<T.c.c.length;)k=c(U(T),12),k.e.c.length==0||TFt(k),k.g.c.length==0||CFt(k);else if(he($(o,($e(),Si)),17))G=c($(o,Si),17),Y=c(Fg(o,(Ve(),Zt)).Jc().Pb(),12),oe=c(Fg(o,sn).Jc().Pb(),12),fe=c($(Y,Si),12),we=c($(oe,Si),12),ks(G,we),rs(G,fe),Ne=new Es(oe.i.n),Ne.a=Lo(ee(Z(Vr,1),Ge,8,0,[we.i.n,we.n,we.a])).a,ni(G.a,Ne),Ne=new Es(Y.i.n),Ne.a=Lo(ee(Z(Vr,1),Ge,8,0,[fe.i.n,fe.n,fe.a])).a,ni(G.a,Ne);else{if(o.j.c.length>=2){for(F=!0,A=new J(o.j),n=c(U(A),12),L=null;A.a<A.c.c.length;)if(L=n,n=c(U(A),12),!ki($(L,Si),$(n,Si))){F=!1;break}}else F=!1;for(T=new J(o.j);T.a<T.c.c.length;)k=c(U(T),12),k.e.c.length==0||VVt(k,F),k.g.c.length==0||XVt(k,F)}zr(o,null)}t.Ug()}function xnn(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne;for(d=new J(e.a.b);d.a<d.c.c.length;)for(o=c(U(d),26),fe=new J(o.a);fe.a<fe.c.c.length;)oe=c(U(fe),9),t.g[oe.p]=oe,t.a[oe.p]=oe,t.d[oe.p]=0;for(b=e.a.b,t.c==(td(),Yg)&&(b=Tu(b)),a=b.Jc();a.Ob();)for(o=c(a.Pb(),26),L=-1,A=o.a,t.o==(bh(),Ph)&&(L=pi,A=Tu(A)),Ne=A.Jc();Ne.Ob();)if(we=c(Ne.Pb(),9),T=null,t.c==Yg?T=c(Xe(e.b.f,we.p),16):T=c(Xe(e.b.b,we.p),16),T.gc()>0)if(i=T.gc(),v=ys(p.Math.floor((i+1)/2))-1,r=ys(p.Math.ceil((i+1)/2))-1,t.o==Ph)for(k=r;k>=v;k--)t.a[we.p]==we&&(F=c(T.Xb(k),49),R=c(F.a,9),!Ba(n,F.b)&&L>e.b.e[R.p]&&(t.a[R.p]=we,t.g[we.p]=t.g[R.p],t.a[we.p]=t.g[we.p],t.f[t.g[we.p].p]=(zt(),!!(it(t.f[t.g[we.p].p])&we.k==(Wt(),Er))),L=e.b.e[R.p]));else for(k=v;k<=r;k++)t.a[we.p]==we&&(Y=c(T.Xb(k),49),G=c(Y.a,9),!Ba(n,Y.b)&&L<e.b.e[G.p]&&(t.a[G.p]=we,t.g[we.p]=t.g[G.p],t.a[we.p]=t.g[we.p],t.f[t.g[we.p].p]=(zt(),!!(it(t.f[t.g[we.p].p])&we.k==(Wt(),Er))),L=e.b.e[G.p]))}function Cot(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt;return fe=e.c[(pt(0,t.c.length),c(t.c[0],17)).p],Ze=e.c[(pt(1,t.c.length),c(t.c[1],17)).p],fe.a.e.e-fe.a.a-(fe.b.e.e-fe.b.a)==0&&Ze.a.e.e-Ze.a.a-(Ze.b.e.e-Ze.b.a)==0||(Y=fe.b.e.f,!he(Y,9))?!1:(G=c(Y,9),Ne=e.i[G.p],Me=G.c?Do(G.c.a,G,0):-1,o=or,Me>0&&(r=c(Xe(G.c.a,Me-1),9),a=e.i[r.p],wt=p.Math.ceil(Sy(e.n,r,G)),o=Ne.a.e-G.d.d-(a.a.e+r.o.b+r.d.a)-wt),v=or,Me<G.c.a.c.length-1&&(b=c(Xe(G.c.a,Me+1),9),k=e.i[b.p],wt=p.Math.ceil(Sy(e.n,b,G)),v=k.a.e-b.d.d-(Ne.a.e+G.o.b+G.d.a)-wt),n&&(ph(),yf(pd),p.Math.abs(o-v)<=pd||o==v||isNaN(o)&&isNaN(v))?!0:(i=kee(fe.a),d=-kee(fe.b),T=-kee(Ze.a),oe=kee(Ze.b),F=fe.a.e.e-fe.a.a-(fe.b.e.e-fe.b.a)>0&&Ze.a.e.e-Ze.a.a-(Ze.b.e.e-Ze.b.a)<0,R=fe.a.e.e-fe.a.a-(fe.b.e.e-fe.b.a)<0&&Ze.a.e.e-Ze.a.a-(Ze.b.e.e-Ze.b.a)>0,L=fe.a.e.e+fe.b.a<Ze.b.e.e+Ze.a.a,A=fe.a.e.e+fe.b.a>Ze.b.e.e+Ze.a.a,we=0,!F&&!R&&(A?o+T>0?we=T:v-i>0&&(we=i):L&&(o+d>0?we=d:v-oe>0&&(we=oe))),Ne.a.e+=we,Ne.b&&(Ne.d.e+=we),!1))}function Eot(e,t,n){var i,r,o,a,d,b,v,k,T,A;if(i=new bf(t.Jf().a,t.Jf().b,t.Kf().a,t.Kf().b),r=new k4,e.c)for(a=new J(t.Pf());a.a<a.c.c.length;)o=c(U(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,W7(i,r);for(v=new J(t.Vf());v.a<v.c.c.length;){if(b=c(U(v),844),k=b.Jf().a+t.Jf().a,T=b.Jf().b+t.Jf().b,e.e&&(r.c=k,r.d=T,r.b=b.Kf().a,r.a=b.Kf().b,W7(i,r)),e.d)for(a=new J(b.Pf());a.a<a.c.c.length;)o=c(U(a),190),r.c=o.Jf().a+k,r.d=o.Jf().b+T,r.b=o.Kf().a,r.a=o.Kf().b,W7(i,r);if(e.b){if(A=new He(-n,-n),c(t.mf((Pn(),dx)),185).Gc((Ul(),pp)))for(a=new J(b.Pf());a.a<a.c.c.length;)o=c(U(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),Urt(i,b.Uf(),b.Sf(),t,b,A,n)}}e.b&&Urt(i,t.Uf(),t.Sf(),t,null,null,n),d=new KZ(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 ynn(){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 Mot(e){Bb(e,new ym(DY(p_(Ib(Db(Pb(Lb(new p1,cl),"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 Hx),cl),Li((ak(),mI),ee(Z(bI,1),Re,235,0,[pI]))))),Fe(e,cl,zL,ze(1)),Fe(e,cl,kw,80),Fe(e,cl,Yre,5),Fe(e,cl,gS,dS),Fe(e,cl,OQ,ze(1)),Fe(e,cl,kC,(zt(),!0)),Fe(e,cl,Ow,vOe),Fe(e,cl,pS,Ke(mOe)),Fe(e,cl,jQ,Ke(xOe)),Fe(e,cl,FL,!1),Fe(e,cl,mS,Ke(wOe)),Fe(e,cl,bS,Ke(bdt)),Fe(e,cl,xk,Ke(wdt)),Fe(e,cl,i3,Ke(mdt)),Fe(e,cl,wS,Ke(pdt)),Fe(e,cl,vS,Ke(xdt)),Fe(e,cl,kQ,Ke(bOe)),Fe(e,cl,Xre,Ke(jce)),Fe(e,cl,h3e,Ke(DU)),Fe(e,cl,Kre,Ke(Oce)),Fe(e,cl,d3e,Ke(yOe)),Fe(e,cl,qL,Ke(Tdt)),Fe(e,cl,HL,Ke(Cdt)),Fe(e,cl,GL,Ke(Sdt)),Fe(e,cl,QL,Ke(jdt)),Fe(e,cl,jw,kOe)}function knn(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R,F,G,Y;for(L=c(Xe((pt(0,t.c.length),c(t.c[0],26)).a,i),9),n>0&&zr(L,(pt(n,t.c.length),c(t.c[n],26))),o=0,A=!0,Y=Tu(sm(vr(L))),b=Y.Jc();b.Ob();){for(d=c(b.Pb(),17),A=!1,T=d,v=0;v<n;v++)r=YKe(e,T),i+o>(pt(v,t.c.length),c(t.c[v],26)).a.c.length?zr(r,(pt(v,t.c.length),c(t.c[v],26))):q0(r,i+o,(pt(v,t.c.length),c(t.c[v],26))),T=Aie(T,r);n>0&&(o+=1)}if(A){for(v=0;v<n;v++)r=new Sh(e),mu(r,(Wt(),gP)),i+o>(pt(v,t.c.length),c(t.c[v],26)).a.c.length?zr(r,(pt(v,t.c.length),c(t.c[v],26))):q0(r,i+o,(pt(v,t.c.length),c(t.c[v],26)));n>0&&(o+=1)}for(a=!1,F=new Gt(Xt(Fi(L).a.Jc(),new z));gn(F);){for(R=c(on(F),17),T=R,k=n+1;k<t.c.length;k++)r=YKe(e,T),zr(r,(pt(k,t.c.length),c(t.c[k],26))),T=Aie(T,r);for(v=0;v<=n;v++)a&&(G=new Sh(e),mu(G,(Wt(),ZC)),i+1>(pt(v,t.c.length),c(t.c[v],26)).a.c.length?zr(G,(pt(v,t.c.length),c(t.c[v],26))):q0(G,i+1,(pt(v,t.c.length),c(t.c[v],26))));a&&(o+=1),a=!0}return o>0?o-1:0}function J0(e,t){vi();var n,i,r,o,a,d,b,v,k,T,A,L,R;if(kT(O9)==0){for(T=Ce(Yin,Ge,122,Bxt.length,0,1),a=0;a<T.length;a++)T[a]=new zu(4);for(i=new vT,o=0;o<RCe.length;o++){if(k=new zu(4),o<84?(d=o*2,L=(tn(d,Voe.length),Voe.charCodeAt(d)),A=(tn(d+1,Voe.length),Voe.charCodeAt(d+1)),Pc(k,L,A)):(d=(o-84)*2,Pc(k,$Ce[d],$Ce[d+1])),b=RCe[o],jt(b,"Specials")&&Pc(k,65520,65533),jt(b,Dft)&&(Pc(k,983040,1048573),Pc(k,1048576,1114109)),lo(O9,b,k),lo(gM,b,Av(k)),v=i.a.length,0<v?i.a=qa(i.a,0,0):0>v&&(i.a+=uze(Ce(Da,fd,30,-v,15,1))),i.a+="Is",Zh(b,ml(32))>=0)for(r=0;r<b.length;r++)tn(r,b.length),b.charCodeAt(r)!=32&&tj(i,(tn(r,b.length),b.charCodeAt(r)));else i.a+=""+b;O2e(i.a,b,!0)}O2e(Woe,"Cn",!1),O2e(Eke,"Cn",!0),n=new zu(4),Pc(n,0,PS),lo(O9,"ALL",n),lo(gM,"ALL",Av(n)),!jx&&(jx=new xn),lo(jx,Woe,Woe),!jx&&(jx=new xn),lo(jx,Eke,Eke),!jx&&(jx=new xn),lo(jx,"ALL","ALL")}return R=c(Nc(t?O9:gM,e),140),R}function Aot(e){Bb(e,new ym(DY(p_(Ib(Db(Pb(Lb(new p1,ul),"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 T8),t4e),bt((ak(),Vae))))),Fe(e,ul,Ow,G9e),Fe(e,ul,kw,20),Fe(e,ul,zse,3),Fe(e,ul,gS,dS),Fe(e,ul,zL,ze(1)),Fe(e,ul,kC,(zt(),!0)),Fe(e,ul,YL,Ke(B9e)),Fe(e,ul,Fse,z9e),Fe(e,ul,pS,Ke(hbt)),Fe(e,ul,QQ,Ke(dbt)),Fe(e,ul,i3,Ke(pbt)),Fe(e,ul,bS,Ke(mbt)),Fe(e,ul,yk,Ke(bbt)),Fe(e,ul,xk,Ke(wbt)),Fe(e,ul,wS,Ke(gbt)),Fe(e,ul,mS,Ke(q9e)),Fe(e,ul,vS,Ke(vbt)),Fe(e,ul,Y5e,Ke(W9e)),Fe(e,ul,e4e,Ke(Q9e)),Fe(e,ul,qL,Ke(Obt)),Fe(e,ul,HL,Ke(jbt)),Fe(e,ul,GL,Ke(kbt)),Fe(e,ul,QL,Ke(ybt)),Fe(e,ul,jw,J9e),Fe(e,ul,K5e,Ke(N3)),Fe(e,ul,Z5e,Ke(Oue)),Fe(e,ul,X5e,Ke(yd)),Fe(e,ul,W5e,Ke($9e)),Fe(e,ul,V5e,Ke(F9e))}function Not(e,t){var n,i,r,o,a,d,b,v,k,T,A;for(v=c(c(Ti(e.r,t),24),85),a=fQt(e,t),n=e.u.Gc((Ul(),tM)),b=v.Jc();b.Ob();)if(d=c(b.Pb(),116),!(!d.c||d.c.d.c.length<=0)){switch(A=d.b.Kf(),k=d.c,T=k.i,T.b=(o=k.n,k.e.a+o.b+o.c),T.a=(r=k.n,k.e.b+r.d+r.a),t.g){case 1:d.a?(T.c=(A.a-T.b)/2,Kf(k,(Ql(),tp))):a||n?(T.c=-T.b-e.s,Kf(k,(Ql(),Ef))):(T.c=A.a+e.s,Kf(k,(Ql(),wd))),T.d=-T.a-e.t,ed(k,(pl(),Mf));break;case 3:d.a?(T.c=(A.a-T.b)/2,Kf(k,(Ql(),tp))):a||n?(T.c=-T.b-e.s,Kf(k,(Ql(),Ef))):(T.c=A.a+e.s,Kf(k,(Ql(),wd))),T.d=A.b+e.t,ed(k,(pl(),rh));break;case 2:d.a?(i=e.v?T.a:c(Xe(k.d,0),190).Kf().b,T.d=(A.b-i)/2,ed(k,(pl(),np))):a||n?(T.d=-T.a-e.t,ed(k,(pl(),Mf))):(T.d=A.b+e.t,ed(k,(pl(),rh))),T.c=A.a+e.s,Kf(k,(Ql(),wd));break;case 4:d.a?(i=e.v?T.a:c(Xe(k.d,0),190).Kf().b,T.d=(A.b-i)/2,ed(k,(pl(),np))):a||n?(T.d=-T.a-e.t,ed(k,(pl(),Mf))):(T.d=A.b+e.t,ed(k,(pl(),rh))),T.c=-T.b-e.s,Kf(k,(Ql(),Ef))}a=!1}}function Onn(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe;if(A=!1,T=!1,Oy(c($(i,(We(),fr)),103))){a=!1,d=!1;e:for(R=new J(i.j);R.a<R.c.c.length;)for(L=c(U(R),12),G=Bd(va(ee(Z(Ea,1),It,22,0,[new A6(L),new s4(L)])));gn(G);)if(F=c(on(G),12),!it(nt($(F.i,fE)))){if(L.j==(Ve(),Yt)){a=!0;break e}if(L.j==wn){d=!0;break e}}A=d&&!a,T=a&&!d}if(!A&&!T&&i.b.c.length!=0){for(k=0,v=new J(i.b);v.a<v.c.c.length;)b=c(U(v),70),k+=b.n.b+b.o.b/2;k/=i.b.c.length,oe=k>=i.o.b/2}else oe=!T;oe?(Y=c($(i,($e(),Bk)),16),Y?A?o=Y:(r=c($(i,_k),16),r?Y.gc()<=r.gc()?o=Y:o=r:(o=new Qe,_e(i,_k,o))):(o=new Qe,_e(i,Bk,o))):(r=c($(i,($e(),_k)),16),r?T?o=r:(Y=c($(i,Bk),16),Y?r.gc()<=Y.gc()?o=r:o=Y:(o=new Qe,_e(i,Bk,o))):(o=new Qe,_e(i,_k,o))),o.Ec(e),_e(e,($e(),pJ),n),t.d==n?(rs(t,null),n.e.c.length+n.g.c.length==0&&_o(n,null),rBt(n)):(ks(t,null),n.e.c.length+n.g.c.length==0&&_o(n,null)),ku(t.a)}function jnn(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn,ii,nr;for(n.Tg("MinWidth layering",1),L=t.b,Ze=t.a,nr=c($(t,(We(),pSe)),15).a,d=c($(t,mSe),15).a,e.b=ge(be($(t,Nf))),e.d=or,we=new J(Ze);we.a<we.c.c.length;)oe=c(U(we),9),oe.k==(Wt(),ar)&&(Pt=oe.o.b,e.d=p.Math.min(e.d,Pt));for(e.d=p.Math.max(1,e.d),wt=Ze.c.length,e.c=Ce(Hn,li,30,wt,15,1),e.f=Ce(Hn,li,30,wt,15,1),e.e=Ce(is,io,30,wt,15,1),v=0,e.a=0,Ne=new J(Ze);Ne.a<Ne.c.c.length;)oe=c(U(Ne),9),oe.p=v++,e.c[oe.p]=zKe(vr(oe)),e.f[oe.p]=zKe(Fi(oe)),e.e[oe.p]=oe.o.b/e.d,e.a+=e.e[oe.p];for(e.b/=e.d,e.a/=wt,Me=mJt(Ze),Rr(Ze,lme(new wDe(e))),F=or,R=pi,a=null,ii=nr,dn=nr,o=d,r=d,nr<0&&(ii=c(g9e.a.Gd(),15).a,dn=c(g9e.b.Gd(),15).a),d<0&&(o=c(d9e.a.Gd(),15).a,r=c(d9e.b.Gd(),15).a),$t=ii;$t<=dn;$t++)for(i=o;i<=r;i++)vt=iZt(e,$t,i,Ze,Me),Y=ge(be(vt.a)),A=c(vt.b,16),G=A.gc(),(Y<F||Y==F&&G<R)&&(F=Y,R=G,a=A);for(T=a.Jc();T.Ob();){for(k=c(T.Pb(),16),b=new mc(t),fe=k.Jc();fe.Ob();)oe=c(fe.Pb(),9),zr(oe,b);Rt(L.c,b)}V7(L),Ze.c.length=0,n.Ug()}function Snn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze;for(t.Tg(blt,1),F=new Qe,Me=new Qe,v=new J(e.b);v.a<v.c.c.length;)for(b=c(U(v),26),Y=-1,R=aD(b.a),T=R,A=0,L=T.length;A<L;++A)if(k=T[A],++Y,!!(k.k==(Wt(),ar)&&Oy(c($(k,(We(),fr)),103)))){for(!E4(c($(k,(We(),fr)),103))&&Se($(Jr(k),t1))===Se(($1(),cp))&&IVt(k),_e(k,($e(),$w),k),F.c.length=0,Me.c.length=0,n=new Qe,we=new _i,zte(we,Fg(k,(Ve(),Yt))),Se($(Jr(k),t1))!==Se(($1(),cp))&&(we=Get(we)),Lot(e,we,F,Me,n),d=Y,Ze=k,o=new J(F);o.a<o.c.c.length;)i=c(U(o),9),q0(i,d,b),++Y,_e(i,$w,k),a=c(Xe(i.j,0),12),G=c($(a,Si),12),it(nt($(G,Ele)))||c($(i,Pk),16).Ec(Ze);for(ku(we),fe=Fg(k,wn).Jc();fe.Ob();)oe=c(fe.Pb(),12),sr(we,oe,we.a,we.a.a);for(Se($(Jr(k),t1))!==Se(cp)&&(we=Get(we)),Lot(e,we,Me,null,n),Ne=k,r=new J(Me);r.a<r.c.c.length;)i=c(U(r),9),q0(i,++Y,b),_e(i,$w,k),a=c(Xe(i.j,0),12),G=c($(a,Si),12),it(nt($(G,Ele)))||c($(Ne,Pk),16).Ec(i);n.c.length==0||_e(k,nje,n)}t.Ug()}function Tnn(e,t,n,i,r,o,a){var d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn,ii,nr;for(L=0,Pt=0,b=new J(e);b.a<b.c.c.length;)d=c(U(b),19),cot(d),L=p.Math.max(L,d.g),Pt+=d.g*d.f;for(R=Pt/e.c.length,vt=uHt(e,R),Pt+=e.c.length*vt,Pt+=p.Math.sqrt(Pt)*(n.a+n.d),Pt+=p.Math.sqrt(Pt)*n.c,L=p.Math.max(L,p.Math.sqrt(Pt*a))+n.b,ii=n.b,nr=n.d,A=0,k=n.b+n.c,wt=new _i,ni(wt,ze(0)),Me=new _i,v=new ss(e,0);v.b<v.d.gc();)d=(pn(v.b<v.d.gc()),c(v.d.Xb(v.c=v.b++),19)),dn=d.g,T=d.f,ii+dn>L&&(o&&(Cs(Me,A),Cs(wt,ze(v.b-1))),ii=n.b,nr+=A+t,A=0,k=p.Math.max(k,n.b+n.c+dn)),Dc(d,ii),Dl(d,nr),k=p.Math.max(k,ii+dn+n.c),A=p.Math.max(A,T),ii+=dn+t;if(k=p.Math.max(k,i),$t=nr+A+n.a,$t<r&&(A+=r-$t,$t=r),o)for(ii=n.b,v=new ss(e,0),Cs(wt,ze(e.c.length)),Ze=Ln(wt,0),Y=c(_n(Ze),15).a,Cs(Me,A),Ne=Ln(Me,0),we=0;v.b<v.d.gc();)v.b==Y&&(ii=n.b,we=ge(be(_n(Ne))),Y=c(_n(Ze),15).a),d=(pn(v.b<v.d.gc()),c(v.d.Xb(v.c=v.b++),19)),oe=d.f,um(d,we),F=we,v.b==Y&&(G=k-ii-n.c,fe=d.g,am(d,G),Jve(d,new He(G,F),new He(fe,oe))),ii+=d.g+t;return new He(k,$t)}function Cnn(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn;if(n.Tg("Spline edge routing",1),t.b.c.length==0){t.f.a=0,n.Ug();return}oe=ge(be($(t,(We(),sx)))),d=ge(be($(t,op))),a=ge(be($(t,ix))),Y=c($(t,Ile),350),wt=Y==(Ej(),SE),Ze=ge(be($(t,cSe))),e.d=t,e.j.c.length=0,e.a.c.length=0,lc(e.k),b=c(Xe(t.b,0),26),k=qF(b.a,(YG(),RP)),R=c(Xe(t.b,t.b.c.length-1),26),T=qF(R.a,RP),F=new J(t.b),G=null,dn=0;do{for(fe=F.a<F.c.c.length?c(U(F),26):null,onn(e,G,fe),EYt(e),vt=x8t(i$t($q(bi(new Tt(null,new Ct(e.i,16)),new d1),new mg))),$t=0,we=dn,A=!G||k&&G==b,L=!fe||T&&fe==R,vt>0?(v=0,G&&(v+=d),v+=(vt-1)*a,fe&&(v+=d),wt&&fe&&(v=p.Math.max(v,FVt(fe,a,oe,Ze))),v<oe&&!A&&!L&&($t=(oe-v)/2,v=oe),we+=v):!A&&!L&&(we+=oe),fe&&jye(fe,we),Me=new J(e.i);Me.a<Me.c.c.length;)Ne=c(U(Me),134),Ne.a.c=dn,Ne.a.b=we-dn,Ne.F=$t,Ne.p=!G;Or(e.a,e.i),dn=we,fe&&(dn+=fe.c.a),G=fe,A=L}while(fe);for(r=new J(e.j);r.a<r.c.c.length;)i=c(U(r),17),o=GRt(e,i),_e(i,($e(),j3),o),Pt=tXt(e,i),_e(i,Im,Pt);t.f.a=dn,e.d=null,n.Ug()}function Enn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt;for(e.b=t,e.a=c($(t,(We(),uSe)),15).a,e.c=c($(t,fSe),15).a,e.c==0&&(e.c=pi),G=new ss(t.b,0);G.b<G.d.gc();){for(F=(pn(G.b<G.d.gc()),c(G.d.Xb(G.c=G.b++),26)),d=new Qe,k=-1,we=-1,fe=new J(F.a);fe.a<fe.c.c.length;)oe=c(U(fe),9),Vf((X_(),new Gt(Xt(sd(oe).a.Jc(),new z))))>=e.a&&(i=sZt(e,oe),k=p.Math.max(k,i.b),we=p.Math.max(we,i.d),Ue(d,new Ls(oe,i)));for(wt=new Qe,v=0;v<k;++v)Xp(wt,0,(pn(G.b>0),G.a.Xb(G.c=--G.b),vt=new mc(e.b),X2(G,vt),pn(G.b<G.d.gc()),G.d.Xb(G.c=G.b++),vt));for(a=new J(d);a.a<a.c.c.length;)if(r=c(U(a),49),L=c(r.b,573).a,!!L)for(A=new J(L);A.a<A.c.c.length;)T=c(U(A),9),W2e(e,T,RU,wt);for(n=new Qe,b=0;b<we;++b)Ue(n,(Pt=new mc(e.b),X2(G,Pt),Pt));for(o=new J(d);o.a<o.c.c.length;)if(r=c(U(o),49),Ze=c(r.b,573).c,!!Ze)for(Me=new J(Ze);Me.a<Me.c.c.length;)Ne=c(U(Me),9),W2e(e,Ne,$U,n)}for(Y=new ss(t.b,0);Y.b<Y.d.gc();)R=(pn(Y.b<Y.d.gc()),c(Y.d.Xb(Y.c=Y.b++),26)),R.a.c.length==0&&iu(Y)}function _ot(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we;if(F=e.i!=0,fe=!1,Y=null,bu(e.e)){if(k=t.gc(),k>0){for(A=k<100?null:new x0(k),v=new lwe(t),R=v.g,Y=Ce(Hn,li,30,k,15,1),i=0,we=new tw(k),r=0;r<e.i;++r){d=e.g[r],L=d;e:for(oe=0;oe<2;++oe){for(b=k;--b>=0;)if(L!=null?ki(L,R[b]):Se(L)===Se(R[b])){Y.length<=i&&(G=Y,Y=Ce(Hn,li,30,2*Y.length,15,1),yc(G,0,Y,0,i)),Y[i++]=r,Dn(we,R[b]);break e}if(L=L,Se(L)===Se(d))break}}if(v=we,R=we.g,k=i,i>Y.length&&(G=Y,Y=Ce(Hn,li,30,i,15,1),yc(G,0,Y,0,i)),i>0){for(fe=!0,o=0;o<i;++o)L=R[o],A=UFe(e,c(L,76),A);for(a=i;--a>=0;)nk(e,Y[a]);if(i!=k){for(r=k;--r>=i;)nk(v,r);G=Y,Y=Ce(Hn,li,30,i,15,1),yc(G,0,Y,0,i)}t=v}}}else for(t=Zqt(e,t),r=e.i;--r>=0;)t.Gc(e.g[r])&&(nk(e,r),fe=!0);if(fe){if(Y!=null){for(n=t.gc(),T=n==1?h7(e,4,t.Jc().Pb(),null,Y[0],F):h7(e,6,t,Y,Y[0],F),A=n<100?null:new x0(n),r=t.Jc();r.Ob();)L=r.Pb(),A=epe(e,c(L,76),A);A?(A.lj(T),A.mj()):yi(e.e,T)}else{for(A=RCt(t.gc()),r=t.Jc();r.Ob();)L=r.Pb(),A=epe(e,c(L,76),A);A&&A.mj()}return!0}else return!1}function Mnn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe;for(n=new jZe(t),n.a||ZKt(t),v=KXt(t),b=new Zb,G=new qit,F=new J(t.a);F.a<F.c.c.length;)for(R=c(U(F),9),r=new Gt(Xt(Fi(R).a.Jc(),new z));gn(r);)i=c(on(r),17),(i.c.i.k==(Wt(),Ar)||i.d.i.k==Ar)&&(k=vtn(e,i,v,G),St(b,Pne(k.d),k.a));for(a=new Qe,fe=c($(n.c,($e(),J1)),24).Jc();fe.Ob();){switch(oe=c(fe.Pb(),64),L=G.c[oe.g],A=G.b[oe.g],d=G.a[oe.g],o=null,Y=null,oe.g){case 4:o=new bf(e.d.a,L,v.b.a-e.d.a,A-L),Y=new bf(e.d.a,L,d,A-L),Gb(v,new He(o.c+o.b,o.d)),Gb(v,new He(o.c+o.b,o.d+o.a));break;case 2:o=new bf(v.a.a,L,e.c.a-v.a.a,A-L),Y=new bf(e.c.a-d,L,d,A-L),Gb(v,new He(o.c,o.d)),Gb(v,new He(o.c,o.d+o.a));break;case 1:o=new bf(L,e.d.b,A-L,v.b.b-e.d.b),Y=new bf(L,e.d.b,A-L,d),Gb(v,new He(o.c,o.d+o.a)),Gb(v,new He(o.c+o.b,o.d+o.a));break;case 3:o=new bf(L,v.a.b,A-L,e.c.b-v.a.b),Y=new bf(L,e.c.b-d,A-L,d),Gb(v,new He(o.c,o.d)),Gb(v,new He(o.c+o.b,o.d))}o&&(T=new EPe,T.d=oe,T.b=o,T.c=Y,T.a=Bee(c(Ti(b,Pne(oe)),24)),Rt(a.c,T))}return Or(n.b,a),n.d=TBt(Men(v)),n}function Dot(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F;if(n.p[t.p]==null){d=!0,n.p[t.p]=0,a=t,F=n.o==(bh(),Hm)?Gr:or;do r=e.b.e[a.p],o=a.c.a.c.length,n.o==Hm&&r>0||n.o==Ph&&r<o-1?(b=null,v=null,n.o==Ph?b=c(Xe(a.c.a,r+1),9):b=c(Xe(a.c.a,r-1),9),v=n.g[b.p],Dot(e,v,n),F=e.e.vg(F,t,a),n.j[t.p]==t&&(n.j[t.p]=n.j[v.p]),n.j[t.p]==n.j[v.p]?(R=Sy(e.d,a,b),n.o==Ph?(i=ge(n.p[t.p]),T=ge(n.p[v.p])+ge(n.d[b.p])-b.d.d-R-a.d.a-a.o.b-ge(n.d[a.p]),d?(d=!1,n.p[t.p]=p.Math.min(T,F)):n.p[t.p]=p.Math.min(i,p.Math.min(T,F))):(i=ge(n.p[t.p]),T=ge(n.p[v.p])+ge(n.d[b.p])+b.o.b+b.d.a+R+a.d.d-ge(n.d[a.p]),d?(d=!1,n.p[t.p]=p.Math.max(T,F)):n.p[t.p]=p.Math.max(i,p.Math.max(T,F)))):(R=ge(be($(e.a,(We(),qm)))),L=hXe(e,n.j[t.p]),k=hXe(e,n.j[v.p]),n.o==Ph?(A=ge(n.p[t.p])+ge(n.d[a.p])+a.o.b+a.d.a+R-(ge(n.p[v.p])+ge(n.d[b.p])-b.d.d),LQe(L,k,A)):(A=ge(n.p[t.p])+ge(n.d[a.p])-a.d.d-ge(n.p[v.p])-ge(n.d[b.p])-b.o.b-b.d.a-R,LQe(L,k,A)))):F=e.e.vg(F,t,a),a=n.a[a.p];while(a!=t);Q9t(e.e,t)}}function Ann(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt;if(n=ge(be($(e.a.j,(We(),tSe)))),n<-1||!e.a.i||E4(c($(e.a.o,fr),103))||Po(e.a.o,(Ve(),sn)).gc()<2&&Po(e.a.o,Zt).gc()<2)return!0;if(e.a.c.ig())return!1;for(Ne=0,we=0,fe=new Qe,b=e.a.e,v=0,k=b.length;v<k;++v){for(d=b[v],A=d,L=0,F=A.length;L<F;++L){if(T=A[L],T.k==(Wt(),$c)){Rt(fe.c,T);continue}for(i=e.b[T.c.p][T.p],T.k==Ar?(i.b=1,c($(T,($e(),Si)),12).j==(Ve(),sn)&&(we+=i.a)):(vt=Po(T,(Ve(),Zt)),vt.dc()||!_Z(vt,new N5)?i.c=1:(r=Po(T,sn),(r.dc()||!_Z(r,new A5))&&(Ne+=i.a))),a=new Gt(Xt(Fi(T).a.Jc(),new z));gn(a);)o=c(on(a),17),Ne+=i.c,we+=i.b,wt=o.d.i,vbe(e,i,wt);for(Y=va(ee(Z(Ea,1),It,22,0,[Po(T,(Ve(),Yt)),Po(T,wn)])),Ze=new Gt(new h0e(Y.a.length,Y.a));gn(Ze);)Me=c(on(Ze),12),oe=c($(Me,($e(),Wl)),9),oe&&(Ne+=i.c,we+=i.b,vbe(e,i,oe))}for(R=new J(fe);R.a<R.c.c.length;)for(T=c(U(R),9),i=e.b[T.c.p][T.p],a=new Gt(Xt(Fi(T).a.Jc(),new z));gn(a);)o=c(on(a),17),Ne+=i.c,we+=i.b,wt=o.d.i,vbe(e,i,wt);fe.c.length=0}return t=Ne+we,G=t==0?or:(Ne-we)/t,G>=n}function Nnn(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt;for(fe=e.a,we=0,Ne=fe.length;we<Ne;++we){for(oe=fe[we],v=pi,k=pi,R=new J(oe.e);R.a<R.c.c.length;)A=c(U(R),9),a=A.c?Do(A.c.a,A,0):-1,a>0?(T=c(Xe(A.c.a,a-1),9),wt=Sy(e.b,A,T),G=A.n.b-A.d.d-(T.n.b+T.o.b+T.d.a+wt)):G=A.n.b-A.d.d,v=p.Math.min(G,v),a<A.c.a.c.length-1?(T=c(Xe(A.c.a,a+1),9),wt=Sy(e.b,A,T),Y=T.n.b-T.d.d-(A.n.b+A.o.b+A.d.a+wt)):Y=2*A.n.b,k=p.Math.min(Y,k);for(b=pi,o=!1,r=c(Xe(oe.e,0),9),Pt=new J(r.j);Pt.a<Pt.c.c.length;)for(vt=c(U(Pt),12),F=r.n.b+vt.n.b+vt.a.b,i=new J(vt.e);i.a<i.c.c.length;)n=c(U(i),17),Me=n.c,t=Me.i.n.b+Me.n.b+Me.a.b-F,p.Math.abs(t)<p.Math.abs(b)&&p.Math.abs(t)<(t<0?v:k)&&(b=t,o=!0);for(d=c(Xe(oe.e,oe.e.c.length-1),9),Ze=new J(d.j);Ze.a<Ze.c.c.length;)for(Me=c(U(Ze),12),F=d.n.b+Me.n.b+Me.a.b,i=new J(Me.g);i.a<i.c.c.length;)n=c(U(i),17),vt=n.d,t=vt.i.n.b+vt.n.b+vt.a.b-F,p.Math.abs(t)<p.Math.abs(b)&&p.Math.abs(t)<(t<0?v:k)&&(b=t,o=!0);if(o&&b!=0)for(L=new J(oe.e);L.a<L.c.c.length;)A=c(U(L),9),A.n.b+=b}}function _nn(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn;for(fe=t,oe=new Zb,we=new Zb,k=ew(fe,Moe),i=new vGe(e,n,oe,we),ytt(i.a,i.b,i.c,i.d,k),b=(Ze=oe.i,Ze||(oe.i=new Ey(oe,oe.c))),vt=b.Jc();vt.Ob();)for(wt=c(vt.Pb(),171),r=c(Ti(oe,wt),24),F=r.Jc();F.Ob();)if(R=F.Pb(),Ne=c(Iy(e.f,R),171),Ne)d=(!wt.e&&(wt.e=new Et(Qi,wt,10,9)),wt.e),Dn(d,Ne);else throw a=E1(fe,md),A=iat+R+rat+a,L=A+DS,K(new Kh(L));for(v=(Me=we.i,Me||(we.i=new Ey(we,we.c))),$t=v.Jc();$t.Ob();)for(Pt=c($t.Pb(),171),o=c(Ti(we,Pt),24),Y=o.Jc();Y.Ob();)if(G=Y.Pb(),Ne=c(Iy(e.f,G),171),Ne)T=(!Pt.g&&(Pt.g=new Et(Qi,Pt,9,10)),Pt.g),Dn(T,Ne);else throw a=E1(fe,md),A=iat+G+rat+a,L=A+DS,K(new Kh(L));!n.b&&(n.b=new Et(yn,n,4,7)),n.b.i!=0&&(!n.c&&(n.c=new Et(yn,n,5,8)),n.c.i!=0)&&(!n.b&&(n.b=new Et(yn,n,4,7)),n.b.i<=1&&(!n.c&&(n.c=new Et(yn,n,5,8)),n.c.i<=1))&&(!n.a&&(n.a=new Le(Qi,n,6,6)),n.a).i==1&&(dn=c(ae((!n.a&&(n.a=new Le(Qi,n,6,6)),n.a),0),171),!zne(dn)&&!Fne(dn)&&(PH(dn,c(ae((!n.b&&(n.b=new Et(yn,n,4,7)),n.b),0),83)),IH(dn,c(ae((!n.c&&(n.c=new Et(yn,n,5,8)),n.c),0),83))))}function Dnn(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y;if(i=new Qe,r=pi,o=pi,a=pi,n)for(r=e.f.a,F=new J(t.j);F.a<F.c.c.length;)for(R=c(U(F),12),b=new J(R.g);b.a<b.c.c.length;)d=c(U(b),17),d.a.b!=0&&(k=c(U6(d.a),8),k.a<r&&(o=r-k.a,a=pi,i.c.length=0,r=k.a),k.a<=r&&(Rt(i.c,d),d.a.b>1&&(a=p.Math.min(a,p.Math.abs(c(vc(d.a,1),8).b-k.b)))));else for(F=new J(t.j);F.a<F.c.c.length;)for(R=c(U(F),12),b=new J(R.e);b.a<b.c.c.length;)d=c(U(b),17),d.a.b!=0&&(A=c(pf(d.a),8),A.a>r&&(o=A.a-r,a=pi,i.c.length=0,r=A.a),A.a>=r&&(Rt(i.c,d),d.a.b>1&&(a=p.Math.min(a,p.Math.abs(c(vc(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 xc,_o(L,t),$r(L,(Ve(),Yt)),L.n.a=t.o.a/2,Y=new xc,_o(Y,t),$r(Y,wn),Y.n.a=t.o.a/2,Y.n.b=t.o.b,b=new J(i);b.a<b.c.c.length;)d=c(U(b),17),n?(v=c(tee(d.a),8),G=d.a.b==0?vh(d.d):c(U6(d.a),8),G.b>=v.b?ks(d,Y):ks(d,L)):(v=c(uAt(d.a),8),G=d.a.b==0?vh(d.c):c(pf(d.a),8),G.b>=v.b?rs(d,Y):rs(d,L)),T=c($(d,(We(),ho)),79),T&&vv(T,v,!0);t.n.a=r-t.o.a/2}}function Lnn(e,t,n){var i,r,o,a,d,b,v,k,T,A;for(d=Ln(e.b,0);d.b!=d.d.c;)if(a=c(_n(d),41),!jt(a.c,JQ))for(v=iWt(a,e),t==(_r(),go)||t==vo?Rr(v,new S$):Rr(v,new uK),b=v.c.length,i=0;i<b;i++)k=(pt(i,v.c.length),c(v.c[i],65)).c,jt(k.c,"n11"),!(it(nt($(a,(Ii(),A9e))))&&!lKe((pt(i,v.c.length),c(v.c[i],65)),e))&&(r=b==1?.5:(i+1)/(b+1),t==go?(o=ge(be($(a,oh))),A=a.e.b+a.f.b*r,xy((pt(i,v.c.length),c(v.c[i],65)).a,new He(p.Math.min(o,a.e.a-n),A)),xy((pt(i,v.c.length),c(v.c[i],65)).a,new He(a.e.a,A))):t==vo?(o=ge(be($(a,_f)))+n,A=a.e.b+a.f.b*r,xy((pt(i,v.c.length),c(v.c[i],65)).a,new He(o,A)),xy((pt(i,v.c.length),c(v.c[i],65)).a,new He(a.e.a+a.f.a,A))):t==Aa?(o=ge(be($(a,oh))),T=a.e.a+a.f.a*r,xy((pt(i,v.c.length),c(v.c[i],65)).a,new He(T,p.Math.min(a.e.b-n,o))),xy((pt(i,v.c.length),c(v.c[i],65)).a,new He(T,a.e.b))):(o=ge(be($(a,_f)))+n,T=a.e.a+a.f.a*r,xy((pt(i,v.c.length),c(v.c[i],65)).a,new He(T,o)),xy((pt(i,v.c.length),c(v.c[i],65)).a,new He(T,a.e.b+a.f.b))))}function OL(e,t,n,i,r,o,a,d,b){var v,k,T,A,L,R,F;switch(L=n,k=new Sh(b),mu(k,(Wt(),Ar)),_e(k,($e(),oje),a),_e(k,(We(),fr),(es(),Sc)),F=ge(be(e.mf(ex))),_e(k,ex,F),T=new xc,_o(T,k),t!=Fh&&t!=gp||(i>=0?L=K4(d):L=JD(K4(d)),e.of(e9,L)),v=new us,A=!1,e.nf(Hw)?(j0e(v,c(e.mf(Hw),8)),A=!0):T7t(v,a.a/2,a.b/2),L.g){case 4:_e(k,Ro,(Su(),W1)),_e(k,bJ,(gm(),w3)),k.o.b=a.b,F<0&&(k.o.a=-F),$r(T,(Ve(),sn)),A||(v.a=a.a),v.a-=a.a;break;case 2:_e(k,Ro,(Su(),Rm)),_e(k,bJ,(gm(),JS)),k.o.b=a.b,F<0&&(k.o.a=-F),$r(T,(Ve(),Zt)),A||(v.a=0);break;case 1:_e(k,Pm,(_1(),x3)),k.o.a=a.a,F<0&&(k.o.b=-F),$r(T,(Ve(),wn)),A||(v.b=a.b),v.b-=a.b;break;case 3:_e(k,Pm,(_1(),Nk)),k.o.a=a.a,F<0&&(k.o.b=-F),$r(T,(Ve(),Yt)),A||(v.b=0)}if(j0e(T.n,v),_e(k,Hw,v),t==Jm||t==r1||t==Sc){if(R=0,t==Jm&&e.nf(Kg))switch(L.g){case 1:case 2:R=c(e.mf(Kg),15).a;break;case 3:case 4:R=-c(e.mf(Kg),15).a}else switch(L.g){case 4:case 2:R=o.b,t==r1&&(R/=r.b);break;case 1:case 3:R=o.a,t==r1&&(R/=r.a)}_e(k,Bw,R)}return _e(k,Zo,L),k}function Pnn(){J1e();function e(i){var r=this;this.dispatch=function(o){var a=o.data;switch(a.cmd){case"algorithms":var d=v2e((Mt(),new T6(new x1(bp.b))));i.postMessage({id:a.id,data:d});break;case"categories":var b=v2e((Mt(),new T6(new x1(bp.c))));i.postMessage({id:a.id,data:b});break;case"options":var v=v2e((Mt(),new T6(new x1(bp.d))));i.postMessage({id:a.id,data:v});break;case"register":Pen(a.algorithms),i.postMessage({id:a.id});break;case"layout":een(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===Qre&&typeof self!==Qre){var n=new e(self);self.onmessage=n.saveDispatch}else typeof h!==Qre&&h.exports&&(Object.defineProperty(g,"__esModule",{value:!0}),h.exports={default:t,Worker:t})}function cre(e,t,n,i,r,o,a){var d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn,ii,nr;for(F=0,Pt=0,v=new J(e.b);v.a<v.c.c.length;)b=c(U(v),168),b.c&&cot(b.c),F=p.Math.max(F,Nl(b)),Pt+=Nl(b)*yu(b);for(G=Pt/e.b.c.length,vt=HHt(e.b,G),Pt+=e.b.c.length*vt,F=p.Math.max(F,p.Math.sqrt(Pt*a))+n.b,ii=n.b,nr=n.d,L=0,T=n.b+n.c,wt=new _i,ni(wt,ze(0)),Me=new _i,k=new ss(e.b,0),R=null,d=new Qe;k.b<k.d.gc();)b=(pn(k.b<k.d.gc()),c(k.d.Xb(k.c=k.b++),168)),dn=Nl(b),A=yu(b),ii+dn>F&&(o&&(Cs(Me,L),Cs(wt,ze(k.b-1)),Ue(e.d,R),d.c.length=0),ii=n.b,nr+=L+t,L=0,T=p.Math.max(T,n.b+n.c+dn)),Rt(d.c,b),wZe(b,ii,nr),T=p.Math.max(T,ii+dn+n.c),L=p.Math.max(L,A),ii+=dn+t,R=b;if(Or(e.a,d),Ue(e.d,c(Xe(d,d.c.length-1),168)),T=p.Math.max(T,i),$t=nr+L+n.a,$t<r&&(L+=r-$t,$t=r),o)for(ii=n.b,k=new ss(e.b,0),Cs(wt,ze(e.b.c.length)),Ze=Ln(wt,0),oe=c(_n(Ze),15).a,Cs(Me,L),Ne=Ln(Me,0),we=0;k.b<k.d.gc();)k.b==oe&&(ii=n.b,we=ge(be(_n(Ne))),oe=c(_n(Ze),15).a),b=(pn(k.b<k.d.gc()),c(k.d.Xb(k.c=k.b++),168)),YYe(b,we),k.b==oe&&(Y=T-ii-n.c,fe=Nl(b),ZYe(b,Y),wYe(b,(Y-fe)/2,0)),ii+=Nl(b)+t;return new He(T,$t)}function Inn(e){e.N||(e.N=!0,e.b=Jo(e,0),ur(e.b,0),ur(e.b,1),ur(e.b,2),e.bb=Jo(e,1),ur(e.bb,0),ur(e.bb,1),e.fb=Jo(e,2),ur(e.fb,3),ur(e.fb,4),qi(e.fb,5),e.qb=Jo(e,3),ur(e.qb,0),qi(e.qb,1),qi(e.qb,2),ur(e.qb,3),ur(e.qb,4),qi(e.qb,5),ur(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 Rnn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we;if(oe=0,t.f.a==0)for(G=new J(e);G.a<G.c.c.length;)R=c(U(G),9),oe=p.Math.max(oe,R.n.a+R.o.a+R.d.c);else oe=t.f.a-t.c.a;for(oe-=t.c.a,F=new J(e);F.a<F.c.c.length;){switch(R=c(U(F),9),hT(R.n,oe-R.o.a),bpe(R.f),WZe(R),(R.q?R.q:(Mt(),Mt(),Yd))._b((We(),nx))&&hT(c($(R,nx),8),oe-R.o.a),c($(R,vd),259).g){case 1:_e(R,vd,(Hd(),VP));break;case 2:_e(R,vd,(Hd(),WP))}for(Y=R.o,we=new J(R.j);we.a<we.c.c.length;){for(fe=c(U(we),12),hT(fe.n,Y.a-fe.o.a),hT(fe.a,fe.o.a),$r(fe,kXe(fe.j)),a=c($(fe,Kg),15),a&&_e(fe,Kg,ze(-a.a)),o=new J(fe.g);o.a<o.c.c.length;){for(r=c(U(o),17),i=Ln(r.a,0);i.b!=i.d.c;)n=c(_n(i),8),n.a=oe-n.a;if(v=c($(r,ho),79),v)for(b=Ln(v,0);b.b!=b.d.c;)d=c(_n(b),8),d.a=oe-d.a;for(A=new J(r.b);A.a<A.c.c.length;)k=c(U(A),70),hT(k.n,oe-k.o.a)}for(L=new J(fe.f);L.a<L.c.c.length;)k=c(U(L),70),hT(k.n,fe.o.a-k.o.a)}for(R.k==(Wt(),Ar)&&(_e(R,($e(),Zo),kXe(c($(R,Zo),64))),DQt(R)),T=new J(R.b);T.a<T.c.c.length;)k=c(U(T),70),WZe(k),hT(k.n,Y.a-k.o.a)}}function $nn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we;if(oe=0,t.f.b==0)for(G=new J(e);G.a<G.c.c.length;)R=c(U(G),9),oe=p.Math.max(oe,R.n.b+R.o.b+R.d.a);else oe=t.f.b-t.c.b;for(oe-=t.c.b,F=new J(e);F.a<F.c.c.length;){switch(R=c(U(F),9),fT(R.n,oe-R.o.b),mpe(R.f),VZe(R),(R.q?R.q:(Mt(),Mt(),Yd))._b((We(),nx))&&fT(c($(R,nx),8),oe-R.o.b),c($(R,vd),259).g){case 3:_e(R,vd,(Hd(),gW));break;case 4:_e(R,vd,(Hd(),mW))}for(Y=R.o,we=new J(R.j);we.a<we.c.c.length;){for(fe=c(U(we),12),fT(fe.n,Y.b-fe.o.b),fT(fe.a,fe.o.b),$r(fe,OXe(fe.j)),a=c($(fe,Kg),15),a&&_e(fe,Kg,ze(-a.a)),o=new J(fe.g);o.a<o.c.c.length;){for(r=c(U(o),17),i=Ln(r.a,0);i.b!=i.d.c;)n=c(_n(i),8),n.b=oe-n.b;if(v=c($(r,ho),79),v)for(b=Ln(v,0);b.b!=b.d.c;)d=c(_n(b),8),d.b=oe-d.b;for(A=new J(r.b);A.a<A.c.c.length;)k=c(U(A),70),fT(k.n,oe-k.o.b)}for(L=new J(fe.f);L.a<L.c.c.length;)k=c(U(L),70),fT(k.n,fe.o.b-k.o.b)}for(R.k==(Wt(),Ar)&&(_e(R,($e(),Zo),OXe(c($(R,Zo),64))),szt(R)),T=new J(R.b);T.a<T.c.c.length;)k=c(U(T),70),VZe(k),fT(k.n,Y.b-k.o.b)}}function Bnn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn,ii;for(oe=new ss(e.b,0),k=t.Jc(),R=0,v=c(k.Pb(),15).a,Ne=0,n=new Tr,Ze=new Ld;oe.b<oe.d.gc();){for(Y=(pn(oe.b<oe.d.gc()),c(oe.d.Xb(oe.c=oe.b++),26)),we=new J(Y.a);we.a<we.c.c.length;){for(fe=c(U(we),9),L=new Gt(Xt(Fi(fe).a.Jc(),new z));gn(L);)T=c(on(L),17),Ze.a.yc(T,Ze);for(A=new Gt(Xt(vr(fe).a.Jc(),new z));gn(A);)T=c(on(A),17),Ze.a.Ac(T)!=null}if(R+1==v){for(r=new mc(e),X2(oe,r),o=new mc(e),X2(oe,o),vt=Ze.a.ec().Jc();vt.Ob();)wt=c(vt.Pb(),17),n.a._b(wt)||(++Ne,n.a.yc(wt,n)),a=new Sh(e),_e(a,(We(),fr),(es(),v9)),zr(a,r),mu(a,(Wt(),Lh)),F=new xc,_o(F,a),$r(F,(Ve(),Zt)),Pt=new xc,_o(Pt,a),$r(Pt,sn),i=new Sh(e),_e(i,fr,v9),zr(i,o),mu(i,Lh),G=new xc,_o(G,i),$r(G,Zt),$t=new xc,_o($t,i),$r($t,sn),Me=new Kb,ks(Me,wt.c),rs(Me,F),_e(Me,($e(),Ri),c($(wt,Ri),15)),ii=new Kb,ks(ii,Pt),rs(ii,G),_e(ii,Ri,c($(wt,Ri),15)),ks(wt,$t),d=new Ume(a,i,Me,ii,wt),_e(a,Rw,d),_e(i,Rw,d),dn=Me.c.i,dn.k==Lh&&(b=c($(dn,Rw),318),b.d=d,d.g=b);if(k.Ob())v=c(k.Pb(),15).a;else break}++R}return ze(Ne)}function znn(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F,G;for(F=new Qe,A=new J(e.d.b);A.a<A.c.c.length;)for(T=c(U(A),26),R=new J(T.a);R.a<R.c.c.length;){for(L=c(U(R),9),r=c(Jt(e.f,L),60),b=new Gt(Xt(Fi(L).a.Jc(),new z));gn(b);)if(a=c(on(b),17),i=Ln(a.a,0),v=!0,k=null,i.b!=i.d.c){for(t=c(_n(i),8),n=null,a.c.j==(Ve(),Yt)&&(G=new lC(t,new He(t.a,r.d.d),r,a),G.f.a=!0,G.a=a.c,Rt(F.c,G)),a.c.j==wn&&(G=new lC(t,new He(t.a,r.d.d+r.d.a),r,a),G.f.d=!0,G.a=a.c,Rt(F.c,G));i.b!=i.d.c;)n=c(_n(i),8),Lbe(t.b,n.b)||(k=new lC(t,n,null,a),Rt(F.c,k),v&&(v=!1,n.b<r.d.d?k.f.a=!0:n.b>r.d.d+r.d.a?k.f.d=!0:(k.f.d=!0,k.f.a=!0))),i.b!=i.d.c&&(t=n);k&&(o=c(Jt(e.f,a.d.i),60),t.b<o.d.d?k.f.a=!0:t.b>o.d.d+o.d.a?k.f.d=!0:(k.f.d=!0,k.f.a=!0))}for(d=new Gt(Xt(vr(L).a.Jc(),new z));gn(d);)a=c(on(d),17),a.a.b!=0&&(t=c(pf(a.a),8),a.d.j==(Ve(),Yt)&&(G=new lC(t,new He(t.a,r.d.d),r,a),G.f.a=!0,G.a=a.d,Rt(F.c,G)),a.d.j==wn&&(G=new lC(t,new He(t.a,r.d.d+r.d.a),r,a),G.f.d=!0,G.a=a.d,Rt(F.c,G)))}return F}function Fnn(e,t,n){var i,r,o,a,d,b,v,k,T,A;for(b=new Qe,T=t.length,a=Swe(n),v=0;v<T;++v){switch(k=g0e(t,ml(61),v),i=czt(a,(as(v,k,t.length),t.substr(v,k-v))),r=Wte(i),o=r.hk().ti(),bs(t,++k)){case 39:{d=Q6(t,39,++k),Ue(b,new BF(i,Pee((as(k,d,t.length),t.substr(k,d-k)),o,r))),v=d+1;break}case 34:{d=Q6(t,34,++k),Ue(b,new BF(i,Pee((as(k,d,t.length),t.substr(k,d-k)),o,r))),v=d+1;break}case 91:{A=new Qe,Ue(b,new BF(i,A));e:for(;;){switch(bs(t,++k)){case 39:{d=Q6(t,39,++k),Ue(A,Pee((as(k,d,t.length),t.substr(k,d-k)),o,r)),k=d+1;break}case 34:{d=Q6(t,34,++k),Ue(A,Pee((as(k,d,t.length),t.substr(k,d-k)),o,r)),k=d+1;break}case 110:{if(++k,t.indexOf("ull",k)==k)A.c.push(null);else throw K(new Mo(Wut));k+=3;break}}if(k<T)switch(tn(k,t.length),t.charCodeAt(k)){case 44:break;case 93:break e;default:throw K(new Mo("Expecting , or ]"))}else break}v=k+1;break}case 110:{if(++k,t.indexOf("ull",k)==k)Ue(b,new BF(i,null));else throw K(new Mo(Wut));v=k+3;break}}if(v<T){if(tn(v,t.length),t.charCodeAt(v)!=44)throw K(new Mo("Expecting ,"))}else break}return OXt(e,b,n)}function qnn(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(),BCe);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<Ps?o=(vi(),vi(),new Rd(0,n)):o=lHe(n2e(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=rxe(e,e.a),!o)throw K(new Un(Xn((Fn(),Loe))));break;default:o=Sqe(e.a)}wi(e);break;case 0:if(e.a==93||e.a==123||e.a==125)throw K(new Un(Xn((Fn(),uke))));o=Sqe(e.a),i=e.a,wi(e),(i&64512)==LL&&e.c==0&&(e.a&64512)==56320&&(r=Ce(Da,fd,30,2,15,1),r[0]=i&Dr,r[1]=e.a&Dr,o=bee(lHe(od(r,0,r.length)),0),wi(e));break;default:throw K(new Un(Xn((Fn(),uke))))}return o}function Hnn(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t;for(vt=new _i,Me=new _i,G=-1,b=new J(e);b.a<b.c.c.length;){for(a=c(U(b),134),a.s=G--,k=0,fe=0,o=new J(a.t);o.a<o.c.c.length;)i=c(U(o),275),fe+=i.c;for(r=new J(a.i);r.a<r.c.c.length;)i=c(U(r),275),k+=i.c;a.n=k,a.u=fe,fe==0?sr(Me,a,Me.c.b,Me.c):k==0&&sr(vt,a,vt.c.b,vt.c)}for($t=oH(e),T=e.c.length,F=T+1,Y=T-1,L=new Qe;$t.a.gc()!=0;){for(;Me.b!=0;)Ne=(pn(Me.b!=0),c(wa(Me,Me.a.a),134)),$t.a.Ac(Ne)!=null,Ne.s=Y--,Sxe(Ne,vt,Me);for(;vt.b!=0;)Ze=(pn(vt.b!=0),c(wa(vt,vt.a.a),134)),$t.a.Ac(Ze)!=null,Ze.s=F++,Sxe(Ze,vt,Me);for(R=cs,v=$t.a.ec().Jc();v.Ob();)a=c(v.Pb(),134),oe=a.u-a.n,oe>=R&&(oe>R&&(L.c.length=0,R=oe),Rt(L.c,a));L.c.length!=0&&(A=c(Xe(L,kG(t,L.c.length)),134),$t.a.Ac(A)!=null,A.s=F++,Sxe(A,vt,Me),L.c.length=0)}for(we=e.c.length+1,d=new J(e);d.a<d.c.c.length;)a=c(U(d),134),a.s<T&&(a.s+=we);for(wt=new J(e);wt.a<wt.c.c.length;)for(Ze=c(U(wt),134),n=new ss(Ze.t,0);n.b<n.d.gc();)i=(pn(n.b<n.d.gc()),c(n.d.Xb(n.c=n.b++),275)),Pt=i.b,Ze.s>Pt.s&&(iu(n),gl(Pt.i,i),i.c>0&&(i.a=Pt,Ue(Pt.t,i),i.b=Ze,Ue(Ze.i,i)))}function Lot(e,t,n,i,r){var o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t;for(F=new Wc(t.b),we=new Wc(t.b),A=new Wc(t.b),wt=new Wc(t.b),G=new Wc(t.b),Ze=Ln(t,0);Ze.b!=Ze.d.c;)for(Ne=c(_n(Ze),12),d=new J(Ne.g);d.a<d.c.c.length;)if(o=c(U(d),17),o.c.i==o.d.i){if(Ne.j==o.d.j){Rt(wt.c,o);continue}else if(Ne.j==(Ve(),Yt)&&o.d.j==wn){Rt(G.c,o);continue}}for(b=new J(G);b.a<b.c.c.length;)o=c(U(b),17),aYt(e,o,n,i,(Ve(),sn));for(a=new J(wt);a.a<a.c.c.length;)o=c(U(a),17),vt=new Sh(e),mu(vt,(Wt(),$c)),_e(vt,(We(),fr),(es(),Sc)),_e(vt,($e(),Si),o),Pt=new xc,_e(Pt,Si,o.d),$r(Pt,(Ve(),Zt)),_o(Pt,vt),$t=new xc,_e($t,Si,o.c),$r($t,sn),_o($t,vt),_e(o.c,Wl,vt),_e(o.d,Wl,vt),ks(o,null),rs(o,null),Rt(n.c,vt),_e(vt,mJ,ze(2));for(Me=Ln(t,0);Me.b!=Me.d.c;)Ne=c(_n(Me),12),v=Ne.e.c.length>0,Y=Ne.g.c.length>0,v&&Y?Rt(A.c,Ne):v?Rt(F.c,Ne):Y&&Rt(we.c,Ne);for(R=new J(F);R.a<R.c.c.length;)L=c(U(R),12),Ue(r,wye(e,L,null,n));for(fe=new J(we);fe.a<fe.c.c.length;)oe=c(U(fe),12),Ue(r,wye(e,null,oe,n));for(T=new J(A);T.a<T.c.c.length;)k=c(U(T),12),Ue(r,wye(e,k,k,n))}function lre(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe;for(A=or,L=or,k=0,T=0,b=new Qe,d=new ln((!e.b&&(e.b=new Le($i,e,12,3)),e.b));d.e!=d.i.gc();)o=c(fn(d),74),b=va(ee(Z(Ea,1),It,22,0,[b,(!o.n&&(o.n=new Le(Bo,o,1,7)),o.n)]));for(fe=Bd(va(ee(Z(Ea,1),It,22,0,[(!e.n&&(e.n=new Le(Bo,e,1,7)),e.n),(!e.a&&(e.a=new Le(Nn,e,10,11)),e.a),b])));gn(fe);)oe=c(on(fe),278),v=c(oe.mf((Pn(),K1)),125),A>oe.mh()-v.b&&(A=oe.mh()-v.b),L>oe.nh()-v.d&&(L=oe.nh()-v.d),k<oe.mh()+oe.lh()+v.c&&(k=oe.mh()+oe.lh()+v.c),T<oe.nh()+oe.kh()+v.a&&(T=oe.nh()+oe.kh()+v.a);for(a=new ln((!e.b&&(e.b=new Le($i,e,12,3)),e.b));a.e!=a.i.gc();)for(o=c(fn(a),74),Y=new ln((!o.a&&(o.a=new Le(Qi,o,6,6)),o.a));Y.e!=Y.i.gc();)for(G=c(fn(Y),171),R=G.j,i=G.b,F=G.k,r=G.c,A=p.Math.min(A,R),A=p.Math.min(A,i),k=p.Math.max(k,R),k=p.Math.max(k,i),L=p.Math.min(L,F),L=p.Math.min(L,r),T=p.Math.max(T,F),T=p.Math.max(T,r),n=new ln((!G.a&&(G.a=new Nr(ea,G,5)),G.a));n.e!=n.i.gc();)t=c(fn(n),373),A=p.Math.min(A,t.a),k=p.Math.max(k,t.a),L=p.Math.min(L,t.b),T=p.Math.max(T,t.b);ri(e,(Pn(),fx),k-A),ri(e,ax,T-L)}function Pot(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn,ii,nr;for(L=c($(e,(L0(),Mk)),19),fe=pi,we=pi,Y=cs,oe=cs,Me=new J(e.e);Me.a<Me.c.c.length;)Ne=c(U(Me),156),$t=Ne.d,dn=Ne.e,fe=p.Math.min(fe,$t.a-dn.a/2),we=p.Math.min(we,$t.b-dn.b/2),Y=p.Math.max(Y,$t.a+dn.a/2),oe=p.Math.max(oe,$t.b+dn.b/2);for(n=new J(e.b);n.a<n.c.c.length;)t=c(U(n),254),$t=t.d,dn=t.e,fe=p.Math.min(fe,$t.a-dn.a/2),we=p.Math.min(we,$t.b-dn.b/2),Y=p.Math.max(Y,$t.a+dn.a/2),oe=p.Math.max(oe,$t.b+dn.b/2);for(Pt=c(Ae(L,(Tf(),vdt)),100),vt=new He(Pt.b-fe,Pt.d-we),v=new J(e.e);v.a<v.c.c.length;)b=c(U(v),156),wt=$(b,Mk),he(wt,209)&&(F=c(wt,19),Ze=ji(new Es(b.d),vt),ha(F,Ze.a-F.g/2,Ze.b-F.f/2));for(o=new J(e.c);o.a<o.c.c.length;)r=c(U(o),292),T=c($(r,Mk),74),A=nC(T),ii=new Es(Fbe(r)),ji(ii,vt),B_(A,ii.a,ii.b),Vc(r.a,new u$e(vt,A)),i=new Es(qbe(r)),ji(i,vt),$_(A,i.a,i.b);for(d=new J(e.d);d.a<d.c.c.length;)a=c(U(d),448),R=c($(a,Mk),158),G=ji(new Es(a.d),vt),ha(R,G.a,G.b);nr=Y-fe+(Pt.b+Pt.c),k=oe-we+(Pt.d+Pt.a),it(nt(Ae(L,(Pn(),hx))))||ww(L,nr,k,!1,!0),ri(L,fx,nr-(Pt.b+Pt.c)),ri(L,ax,k-(Pt.d+Pt.a))}function Gnn(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe;for(n.Tg("Depth first model order layering",1),e.d=t,G=new Qe,F=new J(e.d.a);F.a<F.c.c.length;)L=c(U(F),9),L.k==(Wt(),ar)&&Rt(G.c,L);for(Mt(),Rr(G,new _A),a=!0,e.b=new mc(e.d),e.a=null,Ue(e.d.b,e.b),e.b.p=0,e.c=0,e.f=new _i,R=new J(G);R.a<R.c.c.length;)if(L=c(U(R),9),a)zr(L,e.b),a=!1;else if(nZt(e,L))if(A=e.c,A=kZe(A,L),i=A+2,k=A-e.c,e.f.b==0)zxe(e,i,L);else if(k>0){for(fe=Ln(e.f,0);fe.b!=fe.d.c;)oe=c(_n(fe),9),oe.p+=A-e.e;Fve(e),ku(e.f),zxe(e,i,L)}else{for(ni(e.f,L),L.p=i,e.e=p.Math.max(e.e,i),o=new Gt(Xt(vr(L).a.Jc(),new z));gn(o);)r=c(on(o),17),!r.c.i.c&&r.c.i.k==(Wt(),fc)&&(ni(e.f,r.c.i),r.c.i.p=i-1);e.c=i}else Fve(e),ku(e.f),i=0,gn(new Gt(Xt(vr(L).a.Jc(),new z)))?(A=0,A=kZe(A,L),i=A+2,zxe(e,i,L)):(ni(e.f,L),L.p=0,e.e=p.Math.max(e.e,0),e.b=c(Xe(e.d.b,0),26),e.c=0);for(e.f.b==0||Fve(e),e.d.a.c.length=0,Y=new Qe,v=new J(e.d.b);v.a<v.c.c.length;)d=c(U(v),26),d.a.c.length==0&&Rt(Y.c,d);for(t2e(e.d.b,Y),T=0,b=new J(e.d.b);b.a<b.c.c.length;)d=c(U(b),26),d.p=T,++T;n.Ug()}function Qnn(e,t,n){var i,r,o,a,d,b,v,k,T;if(n.Tg("Network simplex node placement",1),e.e=t,e.n=c($(t,($e(),O3)),317),nen(e),AGt(e),hr(jo(new Tt(null,new Ct(e.e.b,16)),new _5),new BDe(e)),hr(bi(jo(bi(jo(new Tt(null,new Ct(e.e.b,16)),new a$),new ry),new f$),new j2),new $De(e)),it(nt($(e.e,(We(),bE))))&&(a=n.dh(1),a.Tg("Straight Edges Pre-Processing",1),Ctn(e),a.Ug()),gqt(e.f),o=c($(t,xE),15).a*e.f.a.c.length,zie(F1e(q1e(XZ(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(wu(_4(Jc(new Tt(null,new Ct(e.f.a,16)),new PA),new s$)),15).a,b=c(wu(ev(Jc(new Tt(null,new Ct(e.f.a,16)),new w8),new ty)),15).a,v=b-d,k=qb(new Qp,e.f),T=qb(new Qp,e.f),Sf(ff(df(hf(gf(new $a,2e4),v),k),T)),hr(bi(bi(vee(e.i),new c$),new ny),new fGe(d,k,v,T)),r=e.d.a.ec().Jc();r.Ob();)i=c(r.Pb(),220),i.g=1;zie(F1e(q1e(XZ(e.f),o),!1),a.dh(1)),a.Ug()}it(nt($(t,bE)))&&(a=n.dh(1),a.Tg("Straight Edges Post-Processing",1),vUt(e),a.Ug()),utn(e),e.e=null,e.f=null,e.i=null,e.c=null,lc(e.k),e.j=null,e.a=null,e.o=null,e.d.a.$b(),n.Ug()}function Iot(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt;return T=AYt(hl(e,(Ve(),qh)),t),R=Gy(hl(e,Rf),t),we=Gy(hl(e,Yu),t),wt=CG(hl(e,ef),t),A=CG(hl(e,Na),t),oe=Gy(hl(e,$f),t),F=Gy(hl(e,Xl),t),Me=Gy(hl(e,Zu),t),Ne=Gy(hl(e,_a),t),vt=CG(hl(e,al),t),Y=Gy(hl(e,kl),t),fe=Gy(hl(e,Kl),t),Ze=Gy(hl(e,yl),t),Pt=CG(hl(e,Ol),t),L=CG(hl(e,$l),t),G=Gy(hl(e,zc),t),n=Py(ee(Z(is,1),io,30,15,[oe.a,wt.a,Me.a,Pt.a])),i=Py(ee(Z(is,1),io,30,15,[R.a,T.a,we.a,G.a])),r=Y.a,o=Py(ee(Z(is,1),io,30,15,[F.a,A.a,Ne.a,L.a])),v=Py(ee(Z(is,1),io,30,15,[oe.b,R.b,F.b,fe.b])),b=Py(ee(Z(is,1),io,30,15,[wt.b,T.b,A.b,G.b])),k=vt.b,d=Py(ee(Z(is,1),io,30,15,[Me.b,we.b,Ne.b,Ze.b])),_g(hl(e,qh),n+r,v+k),_g(hl(e,zc),n+r,v+k),_g(hl(e,Rf),n+r,0),_g(hl(e,Yu),n+r,v+k+b),_g(hl(e,ef),0,v+k),_g(hl(e,Na),n+r+i,v+k),_g(hl(e,Xl),n+r+i,0),_g(hl(e,Zu),0,v+k+b),_g(hl(e,_a),n+r+i,v+k+b),_g(hl(e,al),0,v),_g(hl(e,kl),n,0),_g(hl(e,yl),0,v+k+b),_g(hl(e,$l),n+r+i,0),a=new us,a.a=Py(ee(Z(is,1),io,30,15,[n+i+r+o,vt.a,fe.a,Ze.a])),a.b=Py(ee(Z(is,1),io,30,15,[v+b+k+d,Y.b,Pt.b,L.b])),a}function Unn(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn,ii,nr,Yl,po;if(Pt=null,dn=t,$t=FVe(e,AUe(n),dn),bj($t,E1(dn,md)),ii=c(Iy(e.n,ok(C1(dn,koe))),19),A=C1(dn,"sourcePort"),i=null,A&&(i=ok(A)),nr=c(Iy(e.p,i),127),!ii)throw d=Rj(dn),R="An edge must have a source node (edge id: '"+d,F=R+DS,K(new Kh(F));if(nr&&!bc(wh(nr),ii))throw b=E1(dn,md),G="The source port of an edge must be a port of the edge's source node (edge id: '"+b,Y=G+DS,K(new Kh(Y));if(wt=(!$t.b&&($t.b=new Et(yn,$t,4,7)),$t.b),o=null,nr?o=nr:o=ii,Dn(wt,o),Yl=c(Iy(e.n,ok(C1(dn,cke))),19),L=C1(dn,"targetPort"),r=null,L&&(r=ok(L)),po=c(Iy(e.p,r),127),!Yl)throw T=Rj(dn),oe="An edge must have a target node (edge id: '"+T,fe=oe+DS,K(new Kh(fe));if(po&&!bc(wh(po),Yl))throw v=E1(dn,md),we="The target port of an edge must be a port of the edge's target node (edge id: '"+v,Ne=we+DS,K(new Kh(Ne));if(vt=(!$t.c&&($t.c=new Et(yn,$t,5,8)),$t.c),a=null,po?a=po:a=Yl,Dn(vt,a),(!$t.b&&($t.b=new Et(yn,$t,4,7)),$t.b).i==0||(!$t.c&&($t.c=new Et(yn,$t,5,8)),$t.c).i==0)throw k=E1(dn,md),Me=nat+k,Ze=Me+DS,K(new Kh(Ze));return PG(dn,$t),dWt(dn,$t),Pt=tne(e,dn,$t),Pt}function Rot(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt;for(oe=new He(or,or),t=new He(Gr,Gr),wt=new J(e);wt.a<wt.c.c.length;)Ze=c(U(wt),8),oe.a=p.Math.min(oe.a,Ze.a),oe.b=p.Math.min(oe.b,Ze.b),t.a=p.Math.max(t.a,Ze.a),t.b=p.Math.max(t.b,Ze.b);for(A=new He(t.a-oe.a,t.b-oe.b),v=new He(oe.a-50,oe.b-A.a-50),k=new He(oe.a-50,t.b+A.a+50),T=new He(t.a+A.b/2+50,oe.b+A.b/2),L=new mye(v,k,T),Me=new Tr,o=new Qe,n=new Qe,Me.a.yc(L,Me),Pt=new J(e);Pt.a<Pt.c.c.length;){for(vt=c(U(Pt),8),o.c.length=0,Ne=Me.a.ec().Jc();Ne.Ob();)fe=c(Ne.Pb(),322),i=fe.d,D0(i,fe.a),uw(D0(fe.d,vt),D0(fe.d,fe.a))<0&&Rt(o.c,fe);for(n.c.length=0,we=new J(o);we.a<we.c.c.length;)for(fe=c(U(we),322),G=new J(fe.e);G.a<G.c.c.length;){for(R=c(U(G),180),a=!0,b=new J(o);b.a<b.c.c.length;)d=c(U(b),322),d!=fe&&(bc(R,Xe(d.e,0))||bc(R,Xe(d.e,1))||bc(R,Xe(d.e,2)))&&(a=!1);a&&Rt(n.c,R)}for(Ket(Me,o),ws(Me,new sa),F=new J(n);F.a<F.c.c.length;)R=c(U(F),180),Cr(Me,new mye(vt,R.a,R.b))}for(Y=new Tr,ws(Me,new d_e(Y)),r=Y.a.ec().Jc();r.Ob();)R=c(r.Pb(),180),(xH(L,R.a)||xH(L,R.b))&&r.Qb();return ws(Y,new _p),Y}function uc(){uc=W,HIe(),qvt=Xr.a,c(ae(Pe(Xr.a),0),20),zvt=Xr.f,c(ae(Pe(Xr.f),0),20),c(ae(Pe(Xr.f),1),38),Fvt=Xr.n,c(ae(Pe(Xr.n),0),38),c(ae(Pe(Xr.n),1),38),c(ae(Pe(Xr.n),2),38),c(ae(Pe(Xr.n),3),38),nCe=Xr.g,c(ae(Pe(Xr.g),0),20),c(ae(Pe(Xr.g),1),38),Bvt=Xr.c,c(ae(Pe(Xr.c),0),20),c(ae(Pe(Xr.c),1),20),iCe=Xr.i,c(ae(Pe(Xr.i),0),20),c(ae(Pe(Xr.i),1),20),c(ae(Pe(Xr.i),2),20),c(ae(Pe(Xr.i),3),20),c(ae(Pe(Xr.i),4),38),rCe=Xr.j,c(ae(Pe(Xr.j),0),20),tCe=Xr.d,c(ae(Pe(Xr.d),0),20),c(ae(Pe(Xr.d),1),20),c(ae(Pe(Xr.d),2),20),c(ae(Pe(Xr.d),3),20),c(ae(Pe(Xr.d),4),38),c(ae(Pe(Xr.d),5),38),c(ae(Pe(Xr.d),6),38),c(ae(Pe(Xr.d),7),38),$vt=Xr.b,c(ae(Pe(Xr.b),0),38),c(ae(Pe(Xr.b),1),38),AW=Xr.e,c(ae(Pe(Xr.e),0),38),c(ae(Pe(Xr.e),1),38),c(ae(Pe(Xr.e),2),38),c(ae(Pe(Xr.e),3),38),c(ae(Pe(Xr.e),4),20),c(ae(Pe(Xr.e),5),20),c(ae(Pe(Xr.e),6),20),c(ae(Pe(Xr.e),7),20),c(ae(Pe(Xr.e),8),20),c(ae(Pe(Xr.e),9),20),c(ae(Pe(Xr.e),10),38),s1=Xr.k,c(ae(Pe(Xr.k),0),38),c(ae(Pe(Xr.k),1),38)}function Rye(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(),pM;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=qnn(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=bs(e.i,r++))>=48&&t<=57){for(i=t-48;r<e.j&&(t=bs(e.i,r++))>=48&&t<=57;)if(i=i*10+t-48,i<0)throw K(new Un(Xn((Fn(),dke))))}else throw K(new Un(Xn((Fn(),Nat))));if(n=i,t==44){if(r>=e.j)throw K(new Un(Xn((Fn(),Dat))));if((t=bs(e.i,r++))>=48&&t<=57){for(n=t-48;r<e.j&&(t=bs(e.i,r++))>=48&&t<=57;)if(n=n*10+t-48,n<0)throw K(new Un(Xn((Fn(),dke))));if(i>n)throw K(new Un(Xn((Fn(),Lat))))}else n=-1}if(t!=125)throw K(new Un(Xn((Fn(),_at))));e._l(r)?(o=(vi(),vi(),new uv(9,o)),e.d=r+1):(o=(vi(),vi(),new uv(3,o)),e.d=r),o.Mm(i),o.Lm(n),wi(e)}}return o}function Jnn(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne;for(r=1,L=new Qe,i=0;i<e.b.c.length;i++){if(t=pUt(c(Xe(e.b,i),26)),fe=qqt(c(Xe(e.b,i),26)),k=zqt(c(Xe(e.b,i),26)),k){for(v=0,n=0,F=new J(c(Xe(e.b,i),26).a);F.a<F.c.c.length;)R=c(U(F),9),v=p.Math.max(v,R.o.a),n+=R.o.b;if(n/=c(Xe(e.b,i),26).a.c.length,v+=p.Math.max(2*ge(be($(e,(We(),op)))),p.Math.max(c(Xe(e.b,i),26).a.c.length*ge(be($(e,ix))),ge(be($(e,sx))))),n+=p.Math.max(ge(be($(e,qm))),ge(be($(e,Fm)))),v/n>=c(Xe(e.b,i),26).a.c.length/4)continue}if(c(Xe(e.b,i),26).a.c.length>t){for(we=new Qe,Ue(we,c(Xe(e.b,i),26)),a=0;a<t-1;a++)T=new mc(e),Ue(L,new Ls(T,ze(i+a+r))),Rt(we.c,T);for(r+=t-1,oe=(pt(0,we.c.length),c(we.c[0],26)).a.c.length,o=0,G=0,Ne=0;o<oe;++o,++G,Ne++)R=c(Xe((pt(0,we.c.length),c(we.c[0],26)).a,G),9),R.k!=(Wt(),ZC)?G+=knn(e,we,Ne%t,G):(o-=1,Ne-=1),fe&&R.k==Er&&(Ne=-1)}}for(A=new J(L);A.a<A.c.c.length;)T=c(U(A),49),Xp(e.b,c(T.b,15).a,c(T.a,26));for(b=new J(e.b);b.a<b.c.c.length;)for(d=c(U(b),26),Y=new ss(d.a,0);Y.b<Y.d.gc();)R=(pn(Y.b<Y.d.gc()),c(Y.d.Xb(Y.c=Y.b++),9)),(R.k==(Wt(),gP)||R.k==ZC)&&iu(Y)}function vw(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G;if(n==null)return null;if(e.a!=t.hk())throw K(new Ht(AS+t.ve()+Aw));if(he(t,462)){if(G=IXt(c(t,682),n),!G)throw K(new Ht(xoe+n+"' is not a valid enumerator of '"+t.ve()+"'"));return G}switch(Rg((Pl(),ms),t).Ll()){case 2:{n=Ic(n,!1);break}case 3:{n=Ic(n,!0);break}}if(i=Rg(ms,t).Hl(),i)return i.hk().ti().qi(i,n);if(A=Rg(ms,t).Jl(),A){for(G=new Qe,v=cne(n),k=0,T=v.length;k<T;++k)b=v[k],Ue(G,A.hk().ti().qi(A,b));return G}if(F=Rg(ms,t).Kl(),!F.dc()){for(R=F.Jc();R.Ob();){L=c(R.Pb(),160);try{if(G=L.hk().ti().qi(L,n),G!=null)return G}catch(Y){if(Y=kr(Y),!he(Y,63))throw K(Y)}}throw K(new Ht(xoe+n+"' does not match any member types of the union datatype '"+t.ve()+"'"))}if(c(t,839).mk(),r=kBt(t.ik()),!r)return null;if(r==UC){a=0;try{a=Qu(n,cs,pi)&Dr}catch(Y){if(Y=kr(Y),he(Y,133))o=yH(n),a=o[0];else throw K(Y)}return PD(a)}if(r==jU){for(d=0;d<oM.length;++d)try{return KRe(oM[d],n)}catch(Y){if(Y=kr(Y),!he(Y,33))throw K(Y)}throw K(new Ht(xoe+n+"' is not a date formatted string of the form yyyy-MM-dd'T'HH:mm:ss'.'SSSZ or a valid subset thereof"))}throw K(new Ht(xoe+n+"' is invalid. "))}function ure(){ure=W,Di=new Zb,St(Di,(Ve(),qh),zc),St(Di,ef,zc),St(Di,ef,Ol),St(Di,Na,$l),St(Di,Na,zc),St(Di,Rf,zc),St(Di,Rf,Kl),St(Di,Yu,yl),St(Di,Yu,zc),St(Di,kl,al),St(Di,kl,zc),St(Di,kl,Kl),St(Di,kl,yl),St(Di,al,kl),St(Di,al,Ol),St(Di,al,$l),St(Di,al,zc),St(Di,$f,$f),St(Di,$f,Kl),St(Di,$f,Ol),St(Di,Xl,Xl),St(Di,Xl,Kl),St(Di,Xl,$l),St(Di,Zu,Zu),St(Di,Zu,yl),St(Di,Zu,Ol),St(Di,_a,_a),St(Di,_a,yl),St(Di,_a,$l),St(Di,Kl,Rf),St(Di,Kl,kl),St(Di,Kl,$f),St(Di,Kl,Xl),St(Di,Kl,zc),St(Di,Kl,Kl),St(Di,Kl,Ol),St(Di,Kl,$l),St(Di,yl,Yu),St(Di,yl,kl),St(Di,yl,Zu),St(Di,yl,_a),St(Di,yl,yl),St(Di,yl,Ol),St(Di,yl,$l),St(Di,yl,zc),St(Di,Ol,ef),St(Di,Ol,al),St(Di,Ol,$f),St(Di,Ol,Zu),St(Di,Ol,Kl),St(Di,Ol,yl),St(Di,Ol,Ol),St(Di,Ol,zc),St(Di,$l,Na),St(Di,$l,al),St(Di,$l,Xl),St(Di,$l,_a),St(Di,$l,Kl),St(Di,$l,yl),St(Di,$l,$l),St(Di,$l,zc),St(Di,zc,qh),St(Di,zc,ef),St(Di,zc,Na),St(Di,zc,Rf),St(Di,zc,Yu),St(Di,zc,kl),St(Di,zc,al),St(Di,zc,Kl),St(Di,zc,yl),St(Di,zc,Ol),St(Di,zc,$l),St(Di,zc,zc)}function $ye(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt;for(e.d=new He(or,or),e.c=new He(Gr,Gr),A=t.Jc();A.Ob();)for(k=c(A.Pb(),37),fe=new J(k.a);fe.a<fe.c.c.length;)oe=c(U(fe),9),e.d.a=p.Math.min(e.d.a,oe.n.a-oe.d.b),e.d.b=p.Math.min(e.d.b,oe.n.b-oe.d.d),e.c.a=p.Math.max(e.c.a,oe.n.a+oe.o.a+oe.d.c),e.c.b=p.Math.max(e.c.b,oe.n.b+oe.o.b+oe.d.a);for(d=new TPe,T=t.Jc();T.Ob();)k=c(T.Pb(),37),i=Mnn(e,k),Ue(d.a,i),i.a=i.a|!c($(i.c,($e(),J1)),24).dc();for(e.b=(lne(),wt=new lf,wt.f=new XVe(n),wt.b=Ien(wt.f,d),wt),Ken((R=e.b,new a4,R)),e.e=new us,e.a=e.b.f.e,a=new J(d.a);a.a<a.c.c.length;)for(r=c(U(a),847),we=sDt(e.b,r),wKt(r.c,we.a,we.b),G=new J(r.c.a);G.a<G.c.c.length;)F=c(U(G),9),F.k==(Wt(),Ar)&&(Y=Txe(e,F.n,c($(F,($e(),Zo)),64)),ji(Wf(F.n),Y));for(o=new J(d.a);o.a<o.c.c.length;)for(r=c(U(o),847),v=new J(tzt(r));v.a<v.c.c.length;)for(b=c(U(v),17),Ze=new eF(b.a),G6(Ze,0,vh(b.c)),ni(Ze,vh(b.d)),L=null,Me=Ln(Ze,0);Me.b!=Me.d.c;){if(Ne=c(_n(Me),8),!L){L=Ne;continue}Pbe(L.a,Ne.a)?(e.e.a=p.Math.min(e.e.a,L.a),e.a.a=p.Math.max(e.a.a,L.a)):Pbe(L.b,Ne.b)&&(e.e.b=p.Math.min(e.e.b,L.b),e.a.b=p.Math.max(e.a.b,L.b)),L=Ne}nq(e.e),ji(e.a,e.e)}function Wnn(e,t){var n,i,r,o,a,d,b,v;if(n=0,a=0,o=t.length,d=null,v=new g4,a<o&&(tn(a,t.length),t.charCodeAt(a)==43)&&(++a,++n,a<o&&(tn(a,t.length),t.charCodeAt(a)==43||(tn(a,t.length),t.charCodeAt(a)==45))))throw K(new Yh(yw+t+'"'));for(;a<o&&(tn(a,t.length),t.charCodeAt(a)!=46)&&(tn(a,t.length),t.charCodeAt(a)!=101)&&(tn(a,t.length),t.charCodeAt(a)!=69);)++a;if(v.a+=""+qa(t==null?wl:(Ft(t),t),n,a),a<o&&(tn(a,t.length),t.charCodeAt(a)==46)){for(++a,n=a;a<o&&(tn(a,t.length),t.charCodeAt(a)!=101)&&(tn(a,t.length),t.charCodeAt(a)!=69);)++a;e.e=a-n,v.a+=""+qa(t==null?wl:(Ft(t),t),n,a)}else e.e=0;if(a<o&&(tn(a,t.length),t.charCodeAt(a)==101||(tn(a,t.length),t.charCodeAt(a)==69))&&(++a,n=a,a<o&&(tn(a,t.length),t.charCodeAt(a)==43)&&(++a,a<o&&(tn(a,t.length),t.charCodeAt(a)!=45)&&++n),d=(as(n,o,t.length),t.substr(n,o-n)),e.e=e.e-Qu(d,cs,pi),e.e!=ys(e.e)))throw K(new Yh("Scale out of range."));if(b=v.a,b.length<16){if(e.f=(eOe==null&&(eOe=new RegExp("^[+-]?\\d*$","i")),eOe.test(b)?parseInt(b,10):NaN),isNaN(e.f))throw K(new Yh(yw+t+'"'));e.a=Zve(e.f)}else JBt(e,new T0(b));for(e.d=v.a.length,r=0;r<v.a.length&&(i=bs(v.a,r),!(i!=45&&i!=48));++r)--e.d;e.d==0&&(e.d=1)}function Vnn(e){Rn(e.b,Wa,ee(Z(st,1),Ge,2,6,[Nw,"ConsistentTransient"])),Rn(e.a,Wa,ee(Z(st,1),Ge,2,6,[Nw,"WellFormedSourceURI"])),Rn(e.o,Wa,ee(Z(st,1),Ge,2,6,[Nw,"InterfaceIsAbstract AtMostOneID UniqueFeatureNames UniqueOperationSignatures NoCircularSuperTypes WellFormedMapEntryClass ConsistentSuperTypes DisjointFeatureAndOperationSignatures"])),Rn(e.p,Wa,ee(Z(st,1),Ge,2,6,[Nw,"WellFormedInstanceTypeName UniqueTypeParameterNames"])),Rn(e.v,Wa,ee(Z(st,1),Ge,2,6,[Nw,"UniqueEnumeratorNames UniqueEnumeratorLiterals"])),Rn(e.R,Wa,ee(Z(st,1),Ge,2,6,[Nw,"WellFormedName"])),Rn(e.T,Wa,ee(Z(st,1),Ge,2,6,[Nw,"UniqueParameterNames UniqueTypeParameterNames NoRepeatingVoid"])),Rn(e.U,Wa,ee(Z(st,1),Ge,2,6,[Nw,"WellFormedNsURI WellFormedNsPrefix UniqueSubpackageNames UniqueClassifierNames UniqueNsURIs"])),Rn(e.W,Wa,ee(Z(st,1),Ge,2,6,[Nw,"ConsistentOpposite SingleContainer ConsistentKeys ConsistentUnique ConsistentContainer"])),Rn(e.bb,Wa,ee(Z(st,1),Ge,2,6,[Nw,"ValidDefaultValueLiteral"])),Rn(e.eb,Wa,ee(Z(st,1),Ge,2,6,[Nw,"ValidLowerBound ValidUpperBound ConsistentBounds ValidType"])),Rn(e.H,Wa,ee(Z(st,1),Ge,2,6,[Nw,"ConsistentType ConsistentBounds ConsistentArguments"]))}function Xnn(e){var t,n,i,r,o;switch(n=c($(e,($e(),Bc)),24),t=UF(Bdt),r=c($(e,(We(),Kv)),348),r==(I1(),t0)&&Hu(t,zdt),it(nt($(e,Rle)))?Kn(t,(ts(),Af),(os(),Rce)):Kn(t,(ts(),Oc),(os(),Rce)),$(e,(hH(),HE))!=null&&Hu(t,Fdt),(it(nt($(e,hSe)))||it(nt($(e,lSe))))&&Uc(t,(ts(),Vs),(os(),KOe)),c($(e,Xu),87).g){case 2:case 3:case 4:Uc(Kn(t,(ts(),Af),(os(),ZOe)),Vs,YOe)}switch(n.Gc((Qs(),hJ))&&Uc(Kn(Kn(t,(ts(),Af),(os(),XOe)),jc,WOe),Vs,VOe),Se($(e,MP))!==Se((U0(),FJ))&&Kn(t,(ts(),Oc),(os(),g6e)),n.Gc(gJ)&&(Kn(t,(ts(),Af),(os(),w6e)),Kn(t,Zd,m6e),Kn(t,Oc,b6e)),Se($(e,OJ))!==Se((Gj(),iE))&&Se($(e,V1))!==Se((R1(),tI))&&Uc(t,(ts(),Vs),(os(),l6e)),it(nt($(e,aSe)))&&Kn(t,(ts(),Oc),(os(),c6e)),it(nt($(e,Lle)))&&Kn(t,(ts(),Oc),(os(),v6e)),rVt(e)&&(Se($(e,Kv))===Se(t0)?i=c($(e,EP),303):i=c($(e,Dle),303),o=i==(kj(),dle)?(os(),p6e):(os(),k6e),Kn(t,(ts(),jc),o)),c($(e,wSe),428).g==1&&Kn(t,(ts(),jc),(os(),HOe)),c($(e,BSe),383).g){case 1:Kn(t,(ts(),jc),(os(),x6e));break;case 2:Uc(Kn(Kn(t,(ts(),Oc),(os(),GOe)),jc,QOe),Vs,UOe)}return Se($(e,t1))!==Se(($1(),cp))&&Kn(t,(ts(),Oc),(os(),y6e)),t}function Knn(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt;if(!t.dc()){if(r=new nu,d=n||c(t.Xb(0),17),R=d.c,iC(),A=R.i.k,!(A==(Wt(),ar)||A==$c||A==Ar||A==Lh))throw K(new Ht("The target node of the edge must be a normal node or a northSouthPort."));for(Cs(r,Lo(ee(Z(Vr,1),Ge,8,0,[R.i.n,R.n,R.a]))),(Ve(),kl).Gc(R.j)&&(G=ge(be($(R,($e(),KS)))),T=new He(Lo(ee(Z(Vr,1),Ge,8,0,[R.i.n,R.n,R.a])).a,G),sr(r,T,r.c.b,r.c)),k=null,i=!1,b=t.Jc();b.Ob();)a=c(b.Pb(),17),o=a.a,o.b!=0&&(i?(v=O1(ji(k,(pn(o.b!=0),c(o.a.a.c,8))),.5),sr(r,v,r.c.b,r.c),i=!1):i=!0,k=Ms((pn(o.b!=0),c(o.c.b.c,8))),Os(r,o),ku(o));F=d.d,kl.Gc(F.j)&&(G=ge(be($(F,($e(),KS)))),T=new He(Lo(ee(Z(Vr,1),Ge,8,0,[F.i.n,F.n,F.a])).a,G),sr(r,T,r.c.b,r.c)),Cs(r,Lo(ee(Z(Vr,1),Ge,8,0,[F.i.n,F.n,F.a]))),e.d==(Ej(),aue)&&(Y=(pn(r.b!=0),c(r.a.a.c,8)),oe=c(vc(r,1),8),fe=new Jee(Nwe(R.j)),fe.a*=5,fe.b*=5,we=Hr(new He(oe.a,oe.b),Y),Ne=new He(Qee(fe.a,we.a),Qee(fe.b,we.b)),ji(Ne,Y),Me=Ln(r,1),Dq(Me,Ne),Ze=(pn(r.b!=0),c(r.c.b.c,8)),wt=c(vc(r,r.b-2),8),fe=new Jee(Nwe(F.j)),fe.a*=5,fe.b*=5,we=Hr(new He(wt.a,wt.b),Ze),vt=new He(Qee(fe.a,we.a),Qee(fe.b,we.b)),ji(vt,Ze),G6(r,r.b-1,vt)),L=new bye(r),Os(d.a,PZe(L))}}function Ynn(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn,ii,nr,Yl,po,ta,Q3,l0,Bf,tg;if(fe=c(ae((!e.b&&(e.b=new Et(yn,e,4,7)),e.b),0),83),Ne=fe.mh(),Me=fe.nh(),we=fe.lh()/2,F=fe.kh()/2,he(fe,196)&&(oe=c(fe,127),Ne+=wh(oe).i,Ne+=wh(oe).i),Ne+=we,Me+=F,$t=c(ae((!e.b&&(e.b=new Et(yn,e,4,7)),e.b),0),83),ii=$t.mh(),nr=$t.nh(),dn=$t.lh()/2,Ze=$t.kh()/2,he($t,196)&&(Pt=c($t,127),ii+=wh(Pt).i,ii+=wh(Pt).i),ii+=dn,nr+=Ze,(!e.a&&(e.a=new Le(Qi,e,6,6)),e.a).i==0)d=(y0(),v=new a6,v),Dn((!e.a&&(e.a=new Le(Qi,e,6,6)),e.a),d);else if((!e.a&&(e.a=new Le(Qi,e,6,6)),e.a).i>1)for(R=new T4((!e.a&&(e.a=new Le(Qi,e,6,6)),e.a));R.e!=R.i.gc();)J7(R);for(a=c(ae((!e.a&&(e.a=new Le(Qi,e,6,6)),e.a),0),171),G=ii,ii>Ne+we?G=Ne+we:ii<Ne-we&&(G=Ne-we),Y=nr,nr>Me+F?Y=Me+F:nr<Me-F&&(Y=Me-F),G>Ne-we&&G<Ne+we&&Y>Me-F&&Y<Me+F&&(G=Ne+we),rw(a,G),sw(a,Y),wt=Ne,Ne>ii+dn?wt=ii+dn:Ne<ii-dn&&(wt=ii-dn),vt=Me,Me>nr+Ze?vt=nr+Ze:Me<nr-Ze&&(vt=nr-Ze),wt>ii-dn&&wt<ii+dn&&vt>nr-Ze&&vt<nr+Ze&&(vt=nr+Ze),nw(a,wt),iw(a,vt),Mn((!a.a&&(a.a=new Nr(ea,a,5)),a.a)),o=kG(t,5),fe==$t&&++o,ta=wt-G,Bf=vt-Y,Yl=p.Math.sqrt(ta*ta+Bf*Bf),T=Yl*.20000000298023224,Q3=ta/(o+1),tg=Bf/(o+1),po=G,l0=Y,k=0;k<o;k++)po+=Q3,l0+=tg,A=po+lu(t,24)*IL*T-T/2,A<0?A=1:A>n&&(A=n-1),L=l0+lu(t,24)*IL*T-T/2,L<0?L=1:L>i&&(L=i-1),r=(y0(),b=new A2,b),MH(r,A),EH(r,L),Dn((!a.a&&(a.a=new Nr(ea,a,5)),a.a),r)}function are(e,t){Wie();var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze;if(fe=e.e,k=e.d,r=e.a,fe==0)switch(t){case 0:return"0";case 1:return lS;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 Y=new v0,Y.a+="0E",Y.a+=-t,Y.a}if(F=k*10+1+7,G=Ce(Da,fd,30,F+1,15,1),n=F,k==1)if(o=r[0],o<0){Ze=Zr(o,Us);do T=Ze,Ze=rL(Ze,10),G[--n]=48+Qn(Ga(T,js(Ze,10)))&Dr;while(Lc(Ze,0)!=0)}else{Ze=o;do T=Ze,Ze=Ze/10|0,G[--n]=48+(T-Ze*10)&Dr;while(Ze!=0)}else{we=Ce(Hn,li,30,k,15,1),Me=k,yc(r,0,we,0,Me);e:for(;;){for(oe=0,d=Me-1;d>=0;d--)Ne=As($d(oe,32),Zr(we[d],Us)),L=UGt(Ne),we[d]=Qn(L),oe=Qn(Qb(L,32));R=Qn(oe),A=n;do G[--n]=48+R%10&Dr;while((R=R/10|0)!=0&&n!=0);for(i=9-A+n,a=0;a<i&&n>0;a++)G[--n]=48;for(b=Me-1;we[b]==0;b--)if(b==0)break e;Me=b+1}for(;G[n]==48;)++n}return v=fe<0,v&&(G[--n]=45),od(G,n,F-n)}function $ot(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me;switch(e.c=t,e.g=new xn,n=(k0(),new xg(e.c)),i=new $z(n),g2e(i),fe=qn(Ae(e.c,(oL(),sTe))),b=c(Ae(e.c,cae),331),Ne=c(Ae(e.c,lae),432),a=c(Ae(e.c,nTe),480),we=c(Ae(e.c,oae),433),e.j=ge(be(Ae(e.c,Hwt))),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 K(new Ht(YQ+(b.f!=null?b.f:""+b.g)))}if(e.d=new ZGe(d,Ne,a),_e(e.d,(vj(),XC),nt(Ae(e.c,Fwt))),e.d.c=it(nt(Ae(e.c,iTe))),Fq(e.c).i==0)return e.d;for(T=new ln(Fq(e.c));T.e!=T.i.gc();){for(k=c(fn(T),19),L=k.g/2,A=k.f/2,Me=new He(k.i+L,k.j+A);Ac(e.g,Me);)W2(Me,(p.Math.random()-.5)*dd,(p.Math.random()-.5)*dd);F=c(Ae(k,(Pn(),K1)),125),G=new OQe(Me,new bf(Me.a-L-e.j/2-F.b,Me.b-A-e.j/2-F.d,k.g+e.j+(F.b+F.c),k.f+e.j+(F.d+F.a))),Ue(e.d.i,G),ci(e.g,Me,new Ls(G,k))}switch(we.g){case 0:if(fe==null)e.d.d=c(Xe(e.d.i,0),68);else for(oe=new J(e.d.i);oe.a<oe.c.c.length;)G=c(U(oe),68),R=c(c(Jt(e.g,G.a),49).b,19).ih(),R!=null&&jt(R,fe)&&(e.d.d=G);break;case 1:for(r=new He(e.c.g,e.c.f),r.a*=.5,r.b*=.5,W2(r,e.c.i,e.c.j),o=or,Y=new J(e.d.i);Y.a<Y.c.c.length;)G=c(U(Y),68),v=D0(G.a,r),v<o&&(o=v,e.d.d=G);break;default:throw K(new Ht(YQ+(we.f!=null?we.f:""+we.g)))}return e.d}function Bot(e){Bb(e,new ym(Ib(Db(Pb(Lb(new p1,Jl),"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 Q$))),Fe(e,Jl,gS,1.3),Fe(e,Jl,bS,(zt(),!1)),Fe(e,Jl,Ow,P8e),Fe(e,Jl,kw,15),Fe(e,Jl,HQ,Ke(kwt)),Fe(e,Jl,i3,Ke(Swt)),Fe(e,Jl,yk,Ke(Cwt)),Fe(e,Jl,xk,Ke(Ewt)),Fe(e,Jl,wS,Ke(jwt)),Fe(e,Jl,mS,Ke(Wue)),Fe(e,Jl,vS,Ke(Mwt)),Fe(e,Jl,k4e,Ke(B8e)),Fe(e,Jl,O4e,Ke($8e)),Fe(e,Jl,y4e,Ke(Xue)),Fe(e,Jl,x4e,Ke(z8e)),Fe(e,Jl,j4e,Ke(L8e)),Fe(e,Jl,S4e,Ke(Vue)),Fe(e,Jl,T4e,Ke(D8e)),Fe(e,Jl,C4e,Ke(R8e)),Fe(e,Jl,pS,Ke(N8e)),Fe(e,Jl,QQ,Ke(Owt)),Fe(e,Jl,b4e,Ke(HP)),Fe(e,Jl,m4e,Ke(A8e)),Fe(e,Jl,w4e,Ke(GP)),Fe(e,Jl,p4e,Ke(I8e)),Fe(e,Jl,v4e,Ke(_8e))}function Znn(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn,ii,nr,Yl,po,ta;for(n.Tg("Greedy cycle removal",1),e.b=t,fe=t.a,ta=fe.c.length,e.a=Ce(Hn,li,30,ta,15,1),e.d=Ce(Hn,li,30,ta,15,1),e.c=Ce(Hn,li,30,ta,15,1),v=0,Y=new J(fe);Y.a<Y.c.c.length;){for(F=c(U(Y),9),F.p=v,vt=new J(F.j);vt.a<vt.c.c.length;){for(Me=c(U(vt),12),d=new J(Me.e);d.a<d.c.c.length;)i=c(U(d),17),i.c.i!=F&&(dn=c($(i,(We(),t9)),15).a,e.a[v]+=dn>0?dn+1:1);for(a=new J(Me.g);a.a<a.c.c.length;)i=c(U(a),17),i.d.i!=F&&(dn=c($(i,(We(),t9)),15).a,e.d[v]+=dn>0?dn+1:1)}e.d[v]==0?ni(e.f,F):e.a[v]==0&&ni(e.g,F),++v}for(R=-1,L=1,T=new Qe,e.e=c($(t,($e(),Rk)),237);ta>0;){for(;e.f.b!=0;)nr=c(tee(e.f),9),e.c[nr.p]=R--,iye(e,nr),--ta;for(;e.g.b!=0;)Yl=c(tee(e.g),9),e.c[Yl.p]=L++,iye(e,Yl),--ta;if(ta>0){for(A=cs,oe=new J(fe);oe.a<oe.c.c.length;)F=c(U(oe),9),e.c[F.p]==0&&(we=e.d[F.p]-e.a[F.p],we>=A&&(we>A&&(T.c.length=0,A=we),Rt(T.c,F)));k=e.qg(T),e.c[k.p]=L++,iye(e,k),--ta}}for(ii=fe.c.length+1,v=0;v<fe.c.length;v++)e.c[v]<0&&(e.c[v]+=ii);for(G=new J(fe);G.a<G.c.c.length;)for(F=c(U(G),9),$t=gUe(F.j),Ze=$t,wt=0,Pt=Ze.length;wt<Pt;++wt)for(Me=Ze[wt],Ne=rd(Me.g),r=Ne,o=0,b=r.length;o<b;++o)i=r[o],po=i.d.i.p,e.c[F.p]>e.c[po]&&(qg(i,!0),_e(t,Dk,(zt(),!0)));e.a=null,e.d=null,e.c=null,ku(e.g),ku(e.f),n.Ug()}function zot(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me;for(Ne=c(ae((!e.a&&(e.a=new Le(Qi,e,6,6)),e.a),0),171),k=new nu,we=new xn,Me=Wrt(Ne),bl(we.f,Ne,Me),A=new xn,i=new _i,R=Bd(va(ee(Z(Ea,1),It,22,0,[(!t.d&&(t.d=new Et($i,t,8,5)),t.d),(!t.e&&(t.e=new Et($i,t,7,4)),t.e)])));gn(R);){if(L=c(on(R),74),(!e.a&&(e.a=new Le(Qi,e,6,6)),e.a).i!=1)throw K(new Ht(But+(!e.a&&(e.a=new Le(Qi,e,6,6)),e.a).i));L!=e&&(G=c(ae((!L.a&&(L.a=new Le(Qi,L,6,6)),L.a),0),171),sr(i,G,i.c.b,i.c),F=c(Ao(co(we.f,G)),13),F||(F=Wrt(G),bl(we.f,G,F)),T=n?Hr(new Es(c(Xe(Me,Me.c.length-1),8)),c(Xe(F,F.c.length-1),8)):Hr(new Es((pt(0,Me.c.length),c(Me.c[0],8))),(pt(0,F.c.length),c(F.c[0],8))),bl(A.f,G,T))}if(i.b!=0)for(Y=c(Xe(Me,n?Me.c.length-1:0),8),v=1;v<Me.c.length;v++){for(oe=c(Xe(Me,n?Me.c.length-1-v:v),8),r=Ln(i,0);r.b!=r.d.c;)G=c(_n(r),171),F=c(Ao(co(we.f,G)),13),F.c.length<=v?Ate(r):(fe=ji(new Es(c(Xe(F,n?F.c.length-1-v:v),8)),c(Ao(co(A.f,G)),8)),(oe.a!=fe.a||oe.b!=fe.b)&&(o=oe.a-Y.a,d=oe.b-Y.b,a=fe.a-Y.a,b=fe.b-Y.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))&&sr(k,oe,k.c.b,k.c):v>1&&sr(k,Y,k.c.b,k.c),Ate(r)));Y=oe}return k}function Fot(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt;for(n.Tg(Qlt,1),Pt=c(Gl(bi(new Tt(null,new Ct(t,16)),new x$),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[(ya(),vl)]))),16),k=c(Gl(bi(new Tt(null,new Ct(t,16)),new sLe(t)),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[vl]))),16),R=c(Gl(bi(new Tt(null,new Ct(t,16)),new rLe(t)),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[vl]))),16),F=Ce(VJ,WQ,41,t.gc(),0,1),a=0;a<k.gc();a++)r=c(k.Xb(a),41),vt=c($(r,(Wo(),N3)),15).a,vt>=0&&vt<k.gc()&&!F[vt]&&(F[vt]=r,k.ed(a),--a);for(d=0;d<k.gc();d++)for(r=c(k.Xb(d),41),vt=c($(r,(Wo(),N3)),15).a,A=0;;A++){if(L=vt+A,L<F.length&&L>=0&&!F[L]){F[L]=r,k.ed(d),--d;break}if(L=vt-A,L<F.length&&L>=0&&!F[L]){F[L]=r,k.ed(d),--d;break}}for(R.gd(new y$),b=F.length-1;b>=0;b--)!F[b]&&!R.dc()&&(F[b]=c(R.Xb(0),41),R.ed(0));for(v=0;v<F.length;v++)!F[v]&&!Pt.dc()&&(F[v]=c(Pt.Xb(0),41),Pt.ed(0));for(o=0;o<F.length;o++)_e(F[o],(Ii(),LE),ze(o));for(T=c(eFt(bi(new Tt(null,new Ct(t,16)),new k$)),526),Me=T,Ze=0,wt=Me.length;Ze<wt;++Ze){for(Ne=Me[Ze],i=Xte(Ne),Fot(e,i,n.dh(1/T.length|0)),Mt(),fm(i,new fY((Ii(),LE))),G=new _i,we=Ln(i,0);we.b!=we.d.c;)for(fe=c(_n(we),41),oe=Ln(Ne.d,0);oe.b!=oe.d.c;)Y=c(_n(oe),65),Y.c==fe&&sr(G,Y,G.c.b,G.c);ku(Ne.d),Os(Ne.d,G)}n.Ug()}function qot(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we;for(fe=ge(be(Ae(t,(Qd(),lx)))),L=ge(be(Ae(t,RE))),A=ge(be(Ae(t,sW))),iwe((!t.a&&(t.a=new Le(Nn,t,10,11)),t.a)),Y=_st((!t.a&&(t.a=new Le(Nn,t,10,11)),t.a),fe,e.b),G=0;G<Y.c.length;G++)if(b=(pt(G,Y.c.length),c(Y.c[G],189)),G!=0&&(R=(pt(G-1,Y.c.length),c(Y.c[G-1],189)),HKe(b,R.f+R.b+e.b)),F=nin(G,Y,fe,e.b,it(nt(Ae(t,(Eh(),Vue))))),it(nt(F.b))){for(o=new J(b.a);o.a<o.c.c.length;)r=c(U(o),175),r.c=!1,r.k=!1,jst(r);b.d=new Qe,b.e=fe,--G}else if(NHt(e,b),G+1<Y.c.length&&(e.e=p.Math.max(b.e+e.b+c(Xe((pt(G+1,Y.c.length),c(Y.c[G+1],189)).a,0),175).r-fe,e.c),e.f=p.Math.min(b.e+e.b+c(Xe((pt(G+1,Y.c.length),c(Y.c[G+1],189)).a,0),175).r-fe,e.d),b.d.c.length!=0&&(e.c=p.Math.max(e.c,c(Xe(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(Xe(b.d,b.d.c.length-1),320).d+(b.d.c.length<=1?0:e.b)))),Y.c.length==1)for(T=c(Xe(b.d,b.d.c.length-1),320),k=c(Xe(T.a,T.a.c.length-1),175),d=new J(k.n);d.a<d.c.c.length;)a=c(U(d),211),e.c=p.Math.max(e.c,k.r-a.d),e.d=p.Math.min(e.d,k.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 oe=aet(Y,e.b),we=p.Math.max(oe.a,L-(n.b+n.c)),v=p.Math.max(oe.b,A-(n.d+n.a)),i=v-oe.b,ri(t,IE,i),ri(t,oW,Y),new Spe(e.a,we,oe.b+i,(tC(),QP))}function ein(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn;if(Ze=c($(e,(We(),fr)),103),Ze!=(es(),Fh)&&Ze!=gp){for(R=e.b,L=R.c.length,k=new Wc((qu(L+2,mre),jH(As(As(5,L+2),(L+2)/10|0)))),F=new Wc((qu(L+2,mre),jH(As(As(5,L+2),(L+2)/10|0)))),Ue(k,new xn),Ue(k,new xn),Ue(F,new Qe),Ue(F,new Qe),Me=new Qe,t=0;t<L;t++)for(n=(pt(t,R.c.length),c(R.c[t],26)),wt=(pt(t,k.c.length),c(k.c[t],93)),G=new xn,Rt(k.c,G),Pt=(pt(t,F.c.length),c(F.c[t],16)),oe=new Qe,Rt(F.c,oe),r=new J(n.a);r.a<r.c.c.length;){if(i=c(U(r),9),Ywe(i)){Rt(Me.c,i);continue}for(v=new Gt(Xt(vr(i).a.Jc(),new z));gn(v);)d=c(on(v),17),$t=d.c.i,Ywe($t)&&(vt=c(wt.xc($($t,($e(),Si))),9),vt||(vt=ent(e,$t),wt.yc($($t,Si),vt),Pt.Ec(vt)),ks(d,c(Xe(vt.j,1),12)));for(b=new Gt(Xt(Fi(i).a.Jc(),new z));gn(b);)d=c(on(b),17),dn=d.d.i,Ywe(dn)&&(Y=c(Jt(G,$(dn,($e(),Si))),9),Y||(Y=ent(e,dn),ci(G,$(dn,Si),Y),Rt(oe.c,Y)),rs(d,c(Xe(Y.j,0),12)))}for(T=0;T<F.c.length;T++)if(fe=(pt(T,F.c.length),c(F.c[T],16)),!fe.dc())for(A=null,T==0?(A=new mc(e),cv(0,R.c.length),AT(R.c,0,A)):T==k.c.length-1?(A=new mc(e),Rt(R.c,A)):A=(pt(T-1,R.c.length),c(R.c[T-1],26)),a=fe.Jc();a.Ob();)o=c(a.Pb(),9),zr(o,A);for(Ne=new J(Me);Ne.a<Ne.c.c.length;)we=c(U(Ne),9),zr(we,null);_e(e,($e(),wle),Me)}}function tin(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn,ii,nr,Yl,po;for(nr=new Qe,R=new J(t.b);R.a<R.c.c.length;)for(A=c(U(R),26),Ne=new J(A.a);Ne.a<Ne.c.c.length;){for(we=c(U(Ne),9),we.p=-1,T=cs,wt=cs,Pt=new J(we.j);Pt.a<Pt.c.c.length;){for(vt=c(U(Pt),12),r=new J(vt.e);r.a<r.c.c.length;)n=c(U(r),17),$t=c($(n,(We(),qk)),15).a,T=p.Math.max(T,$t);for(i=new J(vt.g);i.a<i.c.c.length;)n=c(U(i),17),$t=c($(n,(We(),qk)),15).a,wt=p.Math.max(wt,$t)}_e(we,UJ,ze(T)),_e(we,JJ,ze(wt))}for(Y=0,L=new J(t.b);L.a<L.c.c.length;)for(A=c(U(L),26),Ne=new J(A.a);Ne.a<Ne.c.c.length;)we=c(U(Ne),9),we.p<0&&(ii=new j1e,ii.b=Y++,mrt(e,we,ii),Rt(nr.c,ii));for(Ze=Pd(nr.c.length),k=Pd(nr.c.length),a=0;a<nr.c.length;a++)Ue(Ze,new Qe),Ue(k,ze(0));for(ytn(t,nr,Ze,k),Yl=c(Oh(nr,Ce(Smt,Ilt,264,nr.c.length,0,1)),846),Me=c(Oh(Ze,Ce(Vu,Iv,16,Ze.c.length,0,1)),200),v=Ce(Hn,li,30,k.c.length,15,1),d=0;d<v.length;d++)v[d]=(pt(d,k.c.length),c(k.c[d],15)).a;for(oe=0,fe=new Qe,b=0;b<Yl.length;b++)v[b]==0&&Rt(fe.c,Yl[b]);for(G=Ce(Hn,li,30,Yl.length,15,1);fe.c.length!=0;)for(ii=c(Ng(fe,0),264),G[ii.b]=oe++;!Me[ii.b].dc();)po=c(Me[ii.b].ed(0),264),--v[po.b],v[po.b]==0&&Rt(fe.c,po);for(e.a=Ce(Smt,Ilt,264,Yl.length,0,1),o=0;o<Yl.length;o++)for(F=Yl[o],dn=G[o],e.a[dn]=F,F.b=dn,Ne=new J(F.e);Ne.a<Ne.c.c.length;)we=c(U(Ne),9),we.p=dn;return e.a}function nin(e,t,n,i,r){var o,a,d,b,v,k,T,A,L,R,F,G,Y;for(F=!1,b=!1,A=e+1,R=(pt(e,t.c.length),c(t.c[e],189)),d=R.a,v=null,a=0;a<R.a.c.length;a++)if(o=(pt(a,d.c.length),c(d.c[a],175)),!o.c){if(o.b.c.length==0){Sg(),nL(R,o),--a,F=!0;continue}if(o.k||(v&&TG(v),v=new kme(v?v.e+v.d+i:0,R.f,i),YD(o,v.e+v.d,R.f),Ue(R.d,v),uwe(v,o),o.k=!0),k=null,k=(Y=null,a<R.a.c.length-1?Y=c(Xe(R.a,a+1),175):A<t.c.length&&(pt(A,t.c.length),c(t.c[A],189)).a.c.length!=0&&(Y=c(Xe((pt(A,t.c.length),c(t.c[A],189)).a,0),175)),Y),G=!1,k&&(G=!ki(k.j,R)),k){if(k.b.c.length!=0&&!it(nt(c(Xe(k.b,0),19).mf((Eh(),GP)))))vD(o,n-o.s),TG(o.q),F=F|PQt(R,o,k,n,i);else{nL(R,k);break}if(k.b.c.length==0)for(t.c.length>A&&nL((pt(A,t.c.length),c(t.c[A],189)),k),k=null;t.c.length>A&&(pt(A,t.c.length),c(t.c[A],189)).a.c.length==0;)gl(t,(pt(A,t.c.length),t.c[A]));if(!k){--a;continue}if(!it(nt(c(Xe(k.b,0),19).mf((Eh(),GP))))&&hYt(t,R,o,k,G,n,A,i)){F=!0;continue}if(G){if(L=R.b,T=k.f,!it(nt(c(Xe(k.b,0),19).mf(GP)))&&Len(t,R,o,k,n,A,i,r)){if(F=!0,L<T){b=!0,k.j=R;break}continue}else if(Bwe(R,o)){o.c=!0,F=!0;continue}}else if(Bwe(R,o)){o.c=!0,F=!0;continue}if(F)continue}if(Bwe(R,o)){o.c=!0,F=!0,k&&(k.k=!1);continue}else TG(o.q)}return new Ls((zt(),!!F),!!b)}function wi(e){var t,n,i;if(e.d>=e.j){e.a=-1,e.c=1;return}if(t=bs(e.i,e.d++),e.a=t,e.b==1){switch(t){case 92:if(i=10,e.d>=e.j)throw K(new Un(Xn((Fn(),oU))));e.a=bs(e.i,e.d++);break;case 45:(e.e&512)==512&&e.d<e.j&&bs(e.i,e.d)==91?(++e.d,i=24):i=0;break;case 91:if((e.e&512)!=512&&e.d<e.j&&bs(e.i,e.d)==58){++e.d,i=20;break}default:(t&64512)==LL&&e.d<e.j&&(n=bs(e.i,e.d),(n&64512)==56320&&(e.a=Ps+(t-LL<<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||bs(e.i,e.d)!=63)break;if(++e.d>=e.j)throw K(new Un(Xn((Fn(),Doe))));switch(t=bs(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 K(new Un(Xn((Fn(),Doe))));if(t=bs(e.i,e.d++),t==61)i=16;else if(t==33)i=17;else throw K(new Un(Xn((Fn(),dat))));break;case 35:for(;e.d<e.j&&(t=bs(e.i,e.d++),t!=41););if(t!=41)throw K(new Un(Xn((Fn(),gat))));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 K(new Un(Xn((Fn(),Doe))))}break;case 92:if(i=10,e.d>=e.j)throw K(new Un(Xn((Fn(),oU))));e.a=bs(e.i,e.d++);break;default:i=0}e.c=i}function iin(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G;if(n.Tg("Process compaction",1),!!it(nt($(t,(Wo(),$9e))))){for(r=c($(t,Qw),87),L=ge(be($(t,jue))),CZt(e,t,r),bnn(t,L/2/2),R=t.b,fm(R,new KDe(r)),v=Ln(R,0);v.b!=v.d.c;)if(b=c(_n(v),41),!it(nt($(b,(Ii(),ap))))){if(i=YXt(b,r),F=JYt(b,t),T=0,A=0,i)switch(G=i.e,r.g){case 2:T=G.a-L-b.f.a,F.e.a-L-b.f.a<T&&(T=F.e.a-L-b.f.a),A=T+b.f.a;break;case 1:T=G.a+i.f.a+L,F.e.a+L>T&&(T=F.e.a+F.f.a+L),A=T+b.f.a;break;case 4:T=G.b-L-b.f.b,F.e.b-L-b.f.b<T&&(T=F.e.b-L-b.f.b),A=T+b.f.b;break;case 3:T=G.b+i.f.b+L,F.e.b+L>T&&(T=F.e.b+F.f.b+L),A=T+b.f.b}else if(F)switch(r.g){case 2:T=F.e.a-L-b.f.a,A=T+b.f.a;break;case 1:T=F.e.a+F.f.a+L,A=T+b.f.a;break;case 4:T=F.e.b-L-b.f.b,A=T+b.f.b;break;case 3:T=F.e.b+F.f.b+L,A=T+b.f.b}Se($(t,Oue))===Se((M7(),$P))?(o=T,a=A,d=P1(bi(new Tt(null,new Ct(e.a,16)),new P$e(o,a))),d.a!=null?r==(_r(),go)||r==vo?b.e.a=T:b.e.b=T:(r==(_r(),go)||r==Aa?d=P1(bi(MVe(new Tt(null,new Ct(e.a,16))),new YDe(o))):d=P1(bi(MVe(new Tt(null,new Ct(e.a,16))),new ZDe(o))),d.a!=null&&(r==go||r==vo?b.e.a=ge(be((pn(d.a!=null),c(d.a,49)).a)):b.e.b=ge(be((pn(d.a!=null),c(d.a,49)).a)))),d.a!=null&&(k=Do(e.a,(pn(d.a!=null),d.a),0),k>0&&k!=c($(b,yd),15).a&&(_e(b,A9e,(zt(),!0)),_e(b,yd,ze(k))))):r==(_r(),go)||r==vo?b.e.a=T:b.e.b=T}n.Ug()}}function rin(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne;if(n.Tg("Coffman-Graham Layering",1),t.a.c.length==0){n.Ug();return}for(Ne=c($(t,(We(),gSe)),15).a,b=0,a=0,A=new J(t.a);A.a<A.c.c.length;)for(T=c(U(A),9),T.p=b++,o=new Gt(Xt(Fi(T).a.Jc(),new z));gn(o);)r=c(on(o),17),r.p=a++;for(e.d=Ce(Sl,eh,30,b,16,1),e.a=Ce(Sl,eh,30,a,16,1),e.b=Ce(Hn,li,30,b,15,1),e.e=Ce(Hn,li,30,b,15,1),e.f=Ce(Hn,li,30,b,15,1),_H(e.c),fGt(e,t),R=new Mq(new mDe(e)),we=new J(t.a);we.a<we.c.c.length;){for(oe=c(U(we),9),o=new Gt(Xt(vr(oe).a.Jc(),new z));gn(o);)r=c(on(o),17),e.a[r.p]||++e.b[oe.p];e.b[oe.p]==0&&A4(Hj(R,oe),uS)}for(d=0;R.b.c.length!=0;)for(oe=c(Ete(R),9),e.f[oe.p]=d++,o=new Gt(Xt(Fi(oe).a.Jc(),new z));gn(o);)r=c(on(o),17),!e.a[r.p]&&(G=r.d.i,--e.b[G.p],St(e.c,G,ze(e.f[oe.p])),e.b[G.p]==0&&A4(Hj(R,G),uS));for(L=new Mq(new bDe(e)),fe=new J(t.a);fe.a<fe.c.c.length;){for(oe=c(U(fe),9),o=new Gt(Xt(Fi(oe).a.Jc(),new z));gn(o);)r=c(on(o),17),e.a[r.p]||++e.e[oe.p];e.e[oe.p]==0&&A4(Hj(L,oe),uS)}for(k=new Qe,i=lGe(t,k);L.b.c.length!=0;)for(Y=c(Ete(L),9),(i.a.c.length>=Ne||!cFt(Y,i))&&(i=lGe(t,k)),zr(Y,i),o=new Gt(Xt(vr(Y).a.Jc(),new z));gn(o);)r=c(on(o),17),!e.a[r.p]&&(F=r.c.i,--e.e[F.p],e.e[F.p]==0&&A4(Hj(L,F),uS));for(v=k.c.length-1;v>=0;--v)Ue(t.b,(pt(v,k.c.length),c(k.c[v],26)));t.a.c.length=0,n.Ug()}function Hot(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 zu(4)),Pc(t,0,PS),d=new zu(4)):d=(vi(),vi(),new zu(4)),r=!0;(v=e.c)!=1;){if(v==0&&e.a==93&&!r){t&&(gC(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:_v(d,Yj(n)),i=!0;break;case 105:case 73:case 99:case 67:n=(_v(d,Yj(n)),-1),n<0&&(i=!0);break;case 112:case 80:if(b=rxe(e,n),!b)throw K(new Un(Xn((Fn(),Loe))));_v(d,b),i=!0;break;default:n=qxe(e)}else if(v==24&&!r){if(t&&(gC(t,d),d=t),o=Hot(e),gC(d,o),e.c!=0||e.a!=93)throw K(new Un(Xn((Fn(),Oat))));break}if(wi(e),!i){if(v==0){if(n==91)throw K(new Un(Xn((Fn(),fke))));if(n==93)throw K(new Un(Xn((Fn(),hke))));if(n==45&&!r&&e.a!=93)throw K(new Un(Xn((Fn(),Poe))))}if(e.c!=0||e.a!=45||n==45&&r)Pc(d,n,n);else{if(wi(e),(v=e.c)==1)throw K(new Un(Xn((Fn(),cU))));if(v==0&&e.a==93)Pc(d,n,n),Pc(d,45,45);else{if(v==0&&e.a==93||v==24)throw K(new Un(Xn((Fn(),Poe))));if(a=e.a,v==0){if(a==91)throw K(new Un(Xn((Fn(),fke))));if(a==93)throw K(new Un(Xn((Fn(),hke))));if(a==45)throw K(new Un(Xn((Fn(),Poe))))}else v==10&&(a=qxe(e));if(wi(e),n>a)throw K(new Un(Xn((Fn(),Tat))));Pc(d,n,a)}}}r=!1}if(e.c==1)throw K(new Un(Xn((Fn(),cU))));return Wy(d),fC(d),e.b=0,wi(e),d}function Got(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we;we=!1;do for(we=!1,o=t?new hn(e.a.b).a.gc()-2:1;t?o>=0:o<new hn(e.a.b).a.gc();o+=t?-1:1)for(r=Hme(e.a,ze(o)),L=0;L<r.b;L++)if(T=c(vc(r,L),9),!!Oi(T,($e(),Ri))&&!(bGt(e.a,ze(o))&&e.r==(U0(),r9)||wGt(e.a,ze(o))&&e.r==(U0(),OE))){for(fe=!0,Y=0;Y<r.b;Y++)G=c(vc(r,Y),9),Oi(G,Ri)&&(t&&c($(T,Ri),15).a<c($(G,Ri),15).a||!t&&c($(T,Ri),15).a>c($(G,Ri),15).a)&&(fe=!1);if(fe){for(b=t?o+1:o-1,d=Hme(e.a,ze(b)),a=!1,oe=!0,i=!1,k=Ln(d,0);k.b!=k.d.c;)v=c(_n(k),9),Oi(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),oe=!1):!a&&oe&&v.k==(Wt(),fc)&&(i=!0,t?A=c(on(new Gt(Xt(vr(v).a.Jc(),new z))),17).c.i:A=c(on(new Gt(Xt(Fi(v).a.Jc(),new z))),17).d.i,A==T&&(t?n=c(on(new Gt(Xt(Fi(v).a.Jc(),new z))),17).d.i:n=c(on(new Gt(Xt(vr(v).a.Jc(),new z))),17).c.i,(t?c(J2(e.a,n),15).a-c(J2(e.a,A),15).a:c(J2(e.a,A),15).a-c(J2(e.a,n),15).a)<=2&&(oe=!1)));if(i&&oe&&(t?n=c(on(new Gt(Xt(Fi(T).a.Jc(),new z))),17).d.i:n=c(on(new Gt(Xt(vr(T).a.Jc(),new z))),17).c.i,(t?c(J2(e.a,n),15).a-c(J2(e.a,T),15).a:c(J2(e.a,T),15).a-c(J2(e.a,n),15).a)<=2&&n.k==(Wt(),ar)&&(oe=!1)),a||oe){for(F=wit(e,T,t);F.a.gc()!=0;)R=c(F.a.ec().Jc().Pb(),9),F.a.Ac(R)!=null,Os(F,wit(e,R,t));--L,we=!0}}}while(we)}function sin(e){Rn(e.c,Yn,ee(Z(st,1),Ge,2,6,[xs,"http://www.w3.org/2001/XMLSchema#decimal"])),Rn(e.d,Yn,ee(Z(st,1),Ge,2,6,[xs,"http://www.w3.org/2001/XMLSchema#integer"])),Rn(e.e,Yn,ee(Z(st,1),Ge,2,6,[xs,"http://www.w3.org/2001/XMLSchema#boolean"])),Rn(e.f,Yn,ee(Z(st,1),Ge,2,6,[xs,"EBoolean",di,"EBoolean:Object"])),Rn(e.i,Yn,ee(Z(st,1),Ge,2,6,[xs,"http://www.w3.org/2001/XMLSchema#byte"])),Rn(e.g,Yn,ee(Z(st,1),Ge,2,6,[xs,"http://www.w3.org/2001/XMLSchema#hexBinary"])),Rn(e.j,Yn,ee(Z(st,1),Ge,2,6,[xs,"EByte",di,"EByte:Object"])),Rn(e.n,Yn,ee(Z(st,1),Ge,2,6,[xs,"EChar",di,"EChar:Object"])),Rn(e.t,Yn,ee(Z(st,1),Ge,2,6,[xs,"http://www.w3.org/2001/XMLSchema#double"])),Rn(e.u,Yn,ee(Z(st,1),Ge,2,6,[xs,"EDouble",di,"EDouble:Object"])),Rn(e.F,Yn,ee(Z(st,1),Ge,2,6,[xs,"http://www.w3.org/2001/XMLSchema#float"])),Rn(e.G,Yn,ee(Z(st,1),Ge,2,6,[xs,"EFloat",di,"EFloat:Object"])),Rn(e.I,Yn,ee(Z(st,1),Ge,2,6,[xs,"http://www.w3.org/2001/XMLSchema#int"])),Rn(e.J,Yn,ee(Z(st,1),Ge,2,6,[xs,"EInt",di,"EInt:Object"])),Rn(e.N,Yn,ee(Z(st,1),Ge,2,6,[xs,"http://www.w3.org/2001/XMLSchema#long"])),Rn(e.O,Yn,ee(Z(st,1),Ge,2,6,[xs,"ELong",di,"ELong:Object"])),Rn(e.Z,Yn,ee(Z(st,1),Ge,2,6,[xs,"http://www.w3.org/2001/XMLSchema#short"])),Rn(e.$,Yn,ee(Z(st,1),Ge,2,6,[xs,"EShort",di,"EShort:Object"])),Rn(e._,Yn,ee(Z(st,1),Ge,2,6,[xs,"http://www.w3.org/2001/XMLSchema#string"]))}function We(){We=W,qle=(Pn(),X2t),ASe=K2t,NP=Y2t,Nf=Z2t,C3=h7e,Fm=d7e,rx=g7e,n9=p7e,i9=m7e,Hle=vW,qm=lh,Gle=evt,vE=v7e,PJ=Vk,AP=(zye(),F0t),ix=q0t,op=H0t,sx=G0t,Apt=new Qr(ZP,ze(0)),t9=$0t,MSe=B0t,qk=z0t,BSe=hpt,_Se=J0t,DSe=X0t,Ule=ipt,LSe=Z0t,PSe=tpt,IJ=mpt,Jle=dpt,RSe=lpt,ISe=opt,$Se=apt,wSe=x0t,$le=m0t,AJ=p0t,Ble=w0t,qw=_0t,wE=D0t,Ile=Ggt,cSe=Ugt,Ppt=p9,Ipt=xW,Lpt=px,Dpt=g9,NSe=(X4(),wx),new Qr(Xk,NSe),jSe=new Wp(12),OSe=new Qr($h,jSe),rSe=(R1(),w9),V1=new Qr(HTe,rSe),ex=new Qr(fu,0),Npt=new Qr($ae,ze(1)),yJ=new Qr(h9,dS),zm=wW,fr=d9,e9=B3,Opt=KP,vd=R2t,Kv=P3,_pt=new Qr(Bae,(zt(),!0)),Yv=YP,$m=Aae,Bm=Um,LJ=fp,Fle=hx,iSe=(_r(),zh),Xu=new Qr(Qm,iSe),Fw=R3,_J=KTe,tx=dx,Mpt=Rae,CSe=a7e,TSe=(qy(),rI),new Qr(s7e,TSe),Tpt=Dae,Cpt=Lae,Ept=Pae,Spt=_ae,Qle=U0t,MJ=g0t,MP=d0t,xE=Q0t,Ro=o0t,Fk=Igt,pE=Pgt,YS=xgt,eSe=ygt,Dle=Sgt,EP=kgt,Lle=Dgt,vSe=y0t,xSe=k0t,dSe=e0t,DJ=I0t,zle=S0t,Rle=Vgt,kSe=A0t,oSe=qgt,Ple=Hgt,_le=XP,ySe=O0t,OJ=ngt,Xje=tgt,kJ=egt,aSe=Ygt,uSe=Kgt,fSe=Zgt,ZS=$3,ho=I3,Xg=F2t,xd=Mae,T3=bW,tSe=Cgt,Kg=Iae,fE=z2t,EJ=H2t,Hw=c7e,SSe=U2t,Zv=J2t,pSe=l0t,mSe=a0t,nx=Wk,Ele=Z1t,bSe=h0t,CJ=Bgt,TJ=$gt,NJ=K1,gSe=i0t,bE=C0t,_P=b7e,nSe=Rgt,ESe=R0t,sSe=zgt,xpt=Mgt,ypt=Agt,jpt=s0t,kpt=Ngt,hSe=Nae,mE=c0t,SJ=_gt,t1=vgt,Ale=mgt,CP=rgt,Mle=sgt,jJ=bgt,hE=igt,Nle=wgt,Xv=pgt,gE=ggt,vpt=dgt,zk=ogt,dE=hgt,Zje=fgt,Kje=cgt,Yje=ugt,lSe=Xgt}function oin(e,t,n,i,r,o,a){var d,b,v,k,T,A,L,R;return A=c(i.a,15).a,L=c(i.b,15).a,T=e.b,R=e.c,d=0,k=0,t==(_r(),go)||t==vo?(k=M_(bYe(rv(Jc(new Tt(null,new Ct(n.b,16)),new M$),new VA))),T.e.b+T.f.b/2>k?(v=++L,d=ge(be(wu(ev(Jc(new Tt(null,new Ct(n.b,16)),new $$e(r,v)),new kb))))):(b=++A,d=ge(be(wu(_4(Jc(new Tt(null,new Ct(n.b,16)),new B$e(r,b)),new E8)))))):(k=M_(bYe(rv(Jc(new Tt(null,new Ct(n.b,16)),new KA),new i6))),T.e.a+T.f.a/2>k?(v=++L,d=ge(be(wu(ev(Jc(new Tt(null,new Ct(n.b,16)),new R$e(r,v)),new XA))))):(b=++A,d=ge(be(wu(_4(Jc(new Tt(null,new Ct(n.b,16)),new I$e(r,b)),new O$)))))),t==go?(Cs(e.a,new He(ge(be($(T,(Ii(),oh))))-r,d)),Cs(e.a,new He(R.e.a+R.f.a+r+o,d)),Cs(e.a,new He(R.e.a+R.f.a+r+o,R.e.b+R.f.b/2)),Cs(e.a,new He(R.e.a+R.f.a,R.e.b+R.f.b/2))):t==vo?(Cs(e.a,new He(ge(be($(T,(Ii(),_f))))+r,T.e.b+T.f.b/2)),Cs(e.a,new He(T.e.a+T.f.a+r,d)),Cs(e.a,new He(R.e.a-r-o,d)),Cs(e.a,new He(R.e.a-r-o,R.e.b+R.f.b/2)),Cs(e.a,new He(R.e.a,R.e.b+R.f.b/2))):t==Aa?(Cs(e.a,new He(d,ge(be($(T,(Ii(),oh))))-r)),Cs(e.a,new He(d,R.e.b+R.f.b+r+o)),Cs(e.a,new He(R.e.a+R.f.a/2,R.e.b+R.f.b+r+o)),Cs(e.a,new He(R.e.a+R.f.a/2,R.e.b+R.f.b+r))):(e.a.b==0||(c(pf(e.a),8).b=ge(be($(T,(Ii(),_f))))+r*c(a.b,15).a),Cs(e.a,new He(d,ge(be($(T,(Ii(),_f))))+r*c(a.b,15).a)),Cs(e.a,new He(d,R.e.b-r*c(a.a,15).a-o))),new Ls(ze(A),ze(L))}function cin(e){var t,n,i,r,o,a,d,b,v,k,T,A,L;if(a=!0,T=null,i=null,r=null,t=!1,L=Zvt,v=null,o=null,d=0,b=Dne(e,d,dCe,gCe),b<e.length&&(tn(b,e.length),e.charCodeAt(b)==58)&&(T=(as(d,b,e.length),e.substr(d,b-d)),d=b+1),n=T!=null&&yT(PW,T.toLowerCase()),n){if(b=e.lastIndexOf("!/"),b==-1)throw K(new Ht("no archive separator"));a=!0,i=qa(e,d,++b),d=b}else d>=0&&jt(e.substr(d,2),"//")?(d+=2,b=Dne(e,d,cM,lM),i=(as(d,b,e.length),e.substr(d,b-d)),d=b):T!=null&&(d==e.length||(tn(d,e.length),e.charCodeAt(d)!=47))&&(a=!1,b=g0e(e,ml(35),d),b==-1&&(b=e.length),i=(as(d,b,e.length),e.substr(d,b-d)),d=b);if(!n&&d<e.length&&(tn(d,e.length),e.charCodeAt(d)==47)&&(b=Dne(e,d+1,cM,lM),k=(as(d+1,b,e.length),e.substr(d+1,b-(d+1))),k.length>0&&bs(k,k.length-1)==58&&(r=k,d=b)),d<e.length&&(tn(d,e.length),e.charCodeAt(d)==47)&&(++d,t=!0),d<e.length&&(tn(d,e.length),e.charCodeAt(d)!=63)&&(tn(d,e.length),e.charCodeAt(d)!=35)){for(A=new Qe;d<e.length&&(tn(d,e.length),e.charCodeAt(d)!=63)&&(tn(d,e.length),e.charCodeAt(d)!=35);)b=Dne(e,d,cM,lM),Ue(A,(as(d,b,e.length),e.substr(d,b-d))),d=b,d<e.length&&(tn(d,e.length),e.charCodeAt(d)==47)&&(jBt(e,++d)||A.c.push(""));L=Ce(st,Ge,2,A.c.length,6,1),Oh(A,L)}return d<e.length&&(tn(d,e.length),e.charCodeAt(d)==63)&&(b=Q6(e,35,++d),b==-1&&(b=e.length),v=(as(d,b,e.length),e.substr(d,b-d)),d=b),d<e.length&&(o=tme(e,++d)),Ben(a,T,i,r,L,v),new Die(a,T,i,r,t,L,v,o)}function jL(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we;if(Ac(e.b,t)){if(Ba(c(Jt(e.b,t),47),n))return 1}else ci(e.b,t,new Tr);if(Ac(e.b,n)){if(Ba(c(Jt(e.b,n),47),t))return-1}else ci(e.b,n,new Tr);if(Ac(e.g,t)){if(Ba(c(Jt(e.g,t),47),n))return-1}else ci(e.g,t,new Tr);if(Ac(e.g,n)){if(Ba(c(Jt(e.b,n),47),t))return 1}else ci(e.g,n,new Tr);if(e.e==($1(),iue)||!Oi(t,($e(),Ri))||!Oi(n,($e(),Ri))){for(A=null,k=new J(t.j);k.a<k.c.c.length;)if(b=c(U(k),12),b.e.c.length!=0&&c(Xe(b.e,0),17).c.i.c.p==t.c.p-1){A=c(Xe(b.e,0),17).c;break}for(R=null,v=new J(n.j);v.a<v.c.c.length;)if(b=c(U(v),12),b.e.c.length!=0&&c(Xe(b.e,0),17).c.i.c.p==n.c.p-1){R=c(Xe(b.e,0),17).c;break}if(A&&R){if(T=A.i,L=R.i,T&&T==L){for(G=new J(T.j);G.a<G.c.c.length;){if(F=c(U(G),12),F==A)return Eu(e,n,t),-1;if(F==R)return Eu(e,t,n),1}return r=oie(e,t),a=oie(e,n),r>a?(Eu(e,t,n),1):(Eu(e,n,t),-1)}for(oe=e.f,fe=0,we=oe.length;fe<we;++fe){if(Y=oe[fe],Y==T)return Eu(e,n,t),-1;if(Y==L)return Eu(e,t,n),1}}if(A&&!R||!A&&R){if(i=Uot(e,t,n),i!=0)return i>0?Eu(e,t,n):Eu(e,n,t),i;if(!Oi(t,($e(),Ri))||!Oi(n,Ri))return o=oie(e,t),d=oie(e,n),o>d?(Eu(e,t,n),1):(Eu(e,n,t),-1)}if(!A&&!R&&(i=Uot(e,t,n),i!=0))return i>0?Eu(e,t,n):Eu(e,n,t),i}return Oi(t,($e(),Ri))&&Oi(n,Ri)?(o=mw(t,n,e.c,c($(e.c,sp),15).a),d=mw(n,t,e.c,c($(e.c,sp),15).a),o>d?(Eu(e,t,n),1):(Eu(e,n,t),-1)):(Eu(e,n,t),-1)}function Qot(){Qot=W,ure(),si=new Zb,St(si,(Ve(),Rf),qh),St(si,ef,qh),St(si,Xl,qh),St(si,$f,qh),St(si,Ol,qh),St(si,Kl,qh),St(si,$f,Rf),St(si,qh,Na),St(si,Rf,Na),St(si,ef,Na),St(si,Xl,Na),St(si,kl,Na),St(si,$f,Na),St(si,Ol,Na),St(si,Kl,Na),St(si,al,Na),St(si,qh,Yu),St(si,Rf,Yu),St(si,Na,Yu),St(si,ef,Yu),St(si,Xl,Yu),St(si,kl,Yu),St(si,$f,Yu),St(si,al,Yu),St(si,Zu,Yu),St(si,Ol,Yu),St(si,$l,Yu),St(si,Kl,Yu),St(si,Rf,ef),St(si,Xl,ef),St(si,$f,ef),St(si,Kl,ef),St(si,Rf,Xl),St(si,ef,Xl),St(si,$f,Xl),St(si,Xl,Xl),St(si,Ol,Xl),St(si,qh,_a),St(si,Rf,_a),St(si,Na,_a),St(si,Yu,_a),St(si,ef,_a),St(si,Xl,_a),St(si,kl,_a),St(si,$f,_a),St(si,Zu,_a),St(si,al,_a),St(si,Kl,_a),St(si,Ol,_a),St(si,zc,_a),St(si,qh,Zu),St(si,Rf,Zu),St(si,Na,Zu),St(si,ef,Zu),St(si,Xl,Zu),St(si,kl,Zu),St(si,$f,Zu),St(si,al,Zu),St(si,Kl,Zu),St(si,$l,Zu),St(si,zc,Zu),St(si,Rf,al),St(si,ef,al),St(si,Xl,al),St(si,$f,al),St(si,Zu,al),St(si,Kl,al),St(si,Ol,al),St(si,qh,yl),St(si,Rf,yl),St(si,Na,yl),St(si,ef,yl),St(si,Xl,yl),St(si,kl,yl),St(si,$f,yl),St(si,al,yl),St(si,Kl,yl),St(si,Rf,Ol),St(si,Na,Ol),St(si,Yu,Ol),St(si,Xl,Ol),St(si,qh,$l),St(si,Rf,$l),St(si,Yu,$l),St(si,ef,$l),St(si,Xl,$l),St(si,kl,$l),St(si,$f,$l),St(si,$f,zc),St(si,Xl,zc),St(si,al,qh),St(si,al,ef),St(si,al,Na),St(si,kl,qh),St(si,kl,Rf),St(si,kl,Yu)}function lin(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me;switch(n.Tg("Brandes & Koepf node placement",1),e.a=t,e.c=$Yt(t),i=c($(t,(We(),zle)),284),L=it(nt($(t,bE))),e.d=i==(sL(),fJ)&&!L||i==fle,_en(e,t),Ne=null,Me=null,Y=null,oe=null,G=(qu(4,Lv),new Wc(4)),c($(t,zle),284).g){case 3:Y=new Xy(t,e.c.d,(bh(),Hm),(td(),Yg)),Rt(G.c,Y);break;case 1:oe=new Xy(t,e.c.d,(bh(),Ph),(td(),Yg)),Rt(G.c,oe);break;case 4:Ne=new Xy(t,e.c.d,(bh(),Hm),(td(),Gw)),Rt(G.c,Ne);break;case 2:Me=new Xy(t,e.c.d,(bh(),Ph),(td(),Gw)),Rt(G.c,Me);break;default:Y=new Xy(t,e.c.d,(bh(),Hm),(td(),Yg)),oe=new Xy(t,e.c.d,Ph,Yg),Ne=new Xy(t,e.c.d,Hm,Gw),Me=new Xy(t,e.c.d,Ph,Gw),Rt(G.c,Ne),Rt(G.c,Me),Rt(G.c,Y),Rt(G.c,oe)}for(r=new A$e(t,e.c),d=new J(G);d.a<d.c.c.length;)o=c(U(d),188),xnn(r,o,e.b),mZt(o);for(A=new uet(t,e.c),b=new J(G);b.a<b.c.c.length;)o=c(U(b),188),Qen(A,o);if(n.$g())for(v=new J(G);v.a<v.c.c.length;)o=c(U(v),188),n.ah(o+" size is "+Cie(o));if(T=null,e.d&&(k=hnn(e,G,e.c.d),xst(t,k,n)&&(T=k)),!T)for(v=new J(G);v.a<v.c.c.length;)o=c(U(v),188),xst(t,o,n)&&(!T||Cie(T)>Cie(o))&&(T=o);for(!T&&(T=(pt(0,G.c.length),c(G.c[0],188))),F=new J(t.b);F.a<F.c.c.length;)for(R=c(U(F),26),we=new J(R.a);we.a<we.c.c.length;)fe=c(U(we),9),fe.n.b=ge(T.p[fe.p])+ge(T.d[fe.p]);for(n.$g()&&(n.ah("Chosen node placement: "+T),n.ah("Blocks: "+Ent(T)),n.ah("Classes: "+eWt(T,n)),n.ah("Marked edges: "+e.b)),a=new J(G);a.a<a.c.c.length;)o=c(U(a),188),o.g=null,o.b=null,o.a=null,o.d=null,o.j=null,o.i=null,o.p=null;mPt(e.c),e.b.a.$b(),n.Ug()}function Uot(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt;if(t.k==(Wt(),Er)&&n.k==ar)return o=c(Xe(c(j4(P1(bi(new Tt(null,new Ct(t.j,16)),new E5))),12).e,0),17).c,r=o.i,d=c(Xe(c(j4(P1(bi(new Tt(null,new Ct(t.j,16)),new y2))),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):jL(e,r,n);if(t.k==ar&&n.k==Er)return o=c(Xe(c(j4(P1(bi(new Tt(null,new Ct(n.j,16)),new E5))),12).e,0),17).c,r=o.i,d=c(Xe(c(j4(P1(bi(new Tt(null,new Ct(n.j,16)),new y2))),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):jL(e,t,r);if(t.k==Er&&n.k==Er){if(A=c(Xe(c(j4(P1(bi(new Tt(null,new Ct(t.j,16)),new E5))),12).e,0),17).c,L=c(Xe(c(j4(P1(bi(new Tt(null,new Ct(t.j,16)),new y2))),12).g,0),17).d,R=A.i,F=L.i,b=t.c.p,k=!1,T=!1,we=c(Xe(c(j4(P1(bi(new Tt(null,new Ct(n.j,16)),new E5))),12).e,0),17).c,Ne=c(Xe(c(j4(P1(bi(new Tt(null,new Ct(n.j,16)),new y2))),12).g,0),17).d,Me=we.i,Ze=Ne.i,G=n.c.p,oe=!1,fe=!1,v=t,Y=n,R.c.p==b?(k=!0,v=R):F.c.p==b&&(T=!0,v=F),Me.c.p==G?(oe=!0,Y=Me):Ze.c.p==G&&(fe=!0,Y=Ze),v==Y)if(e.a){if(k&&oe)return Pt=Xot(new Obe(e.c,e.f,e.e,null,fe),A,we),Pt>0?(Eu(e,n,t),1):(Eu(e,t,n),-1);if(k&&fe)return Eu(e,n,t),1;if(T&&oe)return Eu(e,t,n),-1;if(T&&fe)return 0}else for(vt=new J(v.j);vt.a<vt.c.c.length;){if(wt=c(U(vt),12),A==wt)return Eu(e,n,t),-1;if(we==wt)return Eu(e,t,n),1}return jL(e,v,Y)}else return 0}function uin(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn;if(e.c.length==1)return TZe((pt(0,e.c.length),c(e.c[0],121))),pt(0,e.c.length),c(e.c[0],121);if(e.c.length<=0)return new pD;for(b=new J(e);b.a<b.c.c.length;){for(a=c(U(b),121),oe=0,R=pi,F=pi,A=cs,L=cs,Y=Ln(a.b,0);Y.b!=Y.d.c;)G=c(_n(Y),41),oe+=c($(G,(Wo(),YJ)),15).a,R=p.Math.min(R,G.e.a),F=p.Math.min(F,G.e.b),A=p.Math.max(A,G.e.a+G.f.a),L=p.Math.max(L,G.e.b+G.f.b);_e(a,(Wo(),YJ),ze(oe)),_e(a,(Ii(),o9),new He(R,F)),_e(a,BP,new He(A,L))}for(Mt(),Rr(e,new p$),Ne=new pD,ic(Ne,(pt(0,e.c.length),c(e.c[0],105))),T=0,Pt=0,v=new J(e);v.a<v.c.c.length;)a=c(U(v),121),Me=Hr(Ms(c($(a,(Ii(),BP)),8)),c($(a,o9),8)),T=p.Math.max(T,Me.a),Pt+=Me.a*Me.b;for(T=p.Math.max(T,p.Math.sqrt(Pt)*ge(be($(Ne,(Wo(),fbt))))),Ze=ge(be($(Ne,jue))),$t=0,dn=0,k=0,t=Ze,d=new J(e);d.a<d.c.c.length;)a=c(U(d),121),Me=Hr(Ms(c($(a,(Ii(),BP)),8)),c($(a,o9),8)),$t+Me.a>T&&($t=0,dn+=k+Ze,k=0),Drt(Ne,a,$t,dn),t=p.Math.max(t,$t+Me.a),k=p.Math.max(k,Me.b),$t+=Me.a+Ze;for(we=new xn,n=new xn,vt=new J(e);vt.a<vt.c.c.length;)for(wt=c(U(vt),121),i=it(nt($(wt,(Pn(),KP)))),fe=wt.q?wt.q:Yd,o=fe.vc().Jc();o.Ob();)r=c(o.Pb(),45),Ac(we,r.jd())?Se(c(r.jd(),149).Rg())!==Se(r.kd())&&(i&&Ac(n,r.jd())?(Sg(),""+c(r.jd(),149).Og()):(ci(we,c(r.jd(),149),r.kd()),_e(Ne,c(r.jd(),149),r.kd()),i&&ci(n,c(r.jd(),149),r.kd()))):(ci(we,c(r.jd(),149),r.kd()),_e(Ne,c(r.jd(),149),r.kd()));return ert(Ne,new bN),TZe(Ne),Ne}function dQ(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 _Ge(e.b,e.a,t,e.c);case 1:return new XF(e.a,t,Yi(t.Ah(),e.c));case 43:return new bze(e.a,t,Yi(t.Ah(),e.c));case 3:return new Nr(e.a,t,Yi(t.Ah(),e.c));case 45:return new Ml(e.a,t,Yi(t.Ah(),e.c));case 41:return new _l(c(Qa(e.c),29),e.a,t,Yi(t.Ah(),e.c));case 50:return new WVe(c(Qa(e.c),29),e.a,t,Yi(t.Ah(),e.c));case 5:return new J0e(e.a,t,Yi(t.Ah(),e.c),e.d.n);case 47:return new DFe(e.a,t,Yi(t.Ah(),e.c),e.d.n);case 7:return new Le(e.a,t,Yi(t.Ah(),e.c),e.d.n);case 49:return new C4(e.a,t,Yi(t.Ah(),e.c),e.d.n);case 9:return new wze(e.a,t,Yi(t.Ah(),e.c));case 11:return new xze(e.a,t,Yi(t.Ah(),e.c));case 13:return new c0e(e.a,t,Yi(t.Ah(),e.c));case 15:return new hq(e.a,t,Yi(t.Ah(),e.c));case 17:return new vze(e.a,t,Yi(t.Ah(),e.c));case 19:return new Cy(e.a,t,Yi(t.Ah(),e.c));case 21:return new o0e(e.a,t,Yi(t.Ah(),e.c));case 23:return new eD(e.a,t,Yi(t.Ah(),e.c));case 25:return new IFe(e.a,t,Yi(t.Ah(),e.c),e.d.n);case 27:return new Et(e.a,t,Yi(t.Ah(),e.c),e.d.n);case 29:return new PFe(e.a,t,Yi(t.Ah(),e.c),e.d.n);case 31:return new LFe(e.a,t,Yi(t.Ah(),e.c),e.d.n);case 33:return new V0e(e.a,t,Yi(t.Ah(),e.c),e.d.n);case 35:return new W0e(e.a,t,Yi(t.Ah(),e.c),e.d.n);case 37:return new QZ(e.a,t,Yi(t.Ah(),e.c),e.d.n);case 39:return new Nq(e.a,t,Yi(t.Ah(),e.c),e.d.n);case 40:return new gr(t,Yi(t.Ah(),e.c));default:throw K(new Mo("Unknown feature style: "+e.e))}}function ain(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn,ii;for(d=new _i,Ze=c($(n,(We(),Xu)),87),G=0,i=new Tr,Os(d,(!t.a&&(t.a=new Le(Nn,t,10,11)),t.a));d.b!=0;)T=c(d.b==0?null:(pn(d.b!=0),wa(d,d.a.a)),19),k=Ki(T),oQ(k)&&!it(nt(Ae(T,jJ)))&&(ri(T,($e(),Ri),ze(G++)),ma(T,Xv)&&Cr(i,c(Ae(T,Xv),15))),oe=!it(nt(Ae(T,zm))),oe&&(L=(!T.a&&(T.a=new Le(Nn,T,10,11)),T.a).i!=0,F=YGt(T),R=Se(Ae(T,Kv))===Se((I1(),t0)),ii=!ma(T,(Pn(),Jk))||mJe(qn(Ae(T,Jk))),Ne=null,ii&&R&&(L||F)&&(Ne=ost(T),_e(Ne,Xu,Ze),Oi(Ne,AP)&&mIe(new u2e(ge(be($(Ne,AP)))),Ne),c(Ae(T,Bm),185).gc()!=0&&(A=Ne,hr(new Tt(null,(!T.c&&(T.c=new Le(hu,T,9,9)),new Ct(T.c,16))),new j_e(A)),Uit(T,Ne))),wt=n,vt=c(Jt(e.a,Ki(T)),9),vt&&(wt=vt.e),we=pot(e,T,wt),Ne&&(we.e=Ne,Ne.e=we,Os(d,(!T.a&&(T.a=new Le(Nn,T,10,11)),T.a))));for(_e(n,($e(),sp),ze(G)),_e(n,OP,ze(i.a.gc())),G=0,sr(d,t,d.c.b,d.c);d.b!=0;){for(a=c(d.b==0?null:(pn(d.b!=0),wa(d,d.a.a)),19),v=new ln((!a.b&&(a.b=new Le($i,a,12,3)),a.b));v.e!=v.i.gc();)b=c(fn(v),74),xrt(b),oQ(t)&&ri(b,Ri,ze(G++)),$t=no(c(ae((!b.b&&(b.b=new Et(yn,b,4,7)),b.b),0),83)),dn=no(c(ae((!b.c&&(b.c=new Et(yn,b,5,8)),b.c),0),83)),!(it(nt(Ae(b,zm)))||it(nt(Ae($t,zm)))||it(nt(Ae(dn,zm))))&&(Y=gw(b)&&it(nt(Ae($t,Yv)))&&it(nt(Ae(b,$m))),Me=a,Y||hv(dn,$t)?Me=$t:hv($t,dn)&&(Me=dn),wt=n,vt=c(Jt(e.a,Me),9),vt&&(wt=vt.e),fe=Bye(e,b,Me,wt),_e(fe,rje,aXt(e,b,t,n)));if(R=Se(Ae(a,Kv))===Se((I1(),t0)),R)for(o=new ln((!a.a&&(a.a=new Le(Nn,a,10,11)),a.a));o.e!=o.i.gc();)r=c(fn(o),19),ii=!ma(r,(Pn(),Jk))||mJe(qn(Ae(r,Jk))),Pt=Se(Ae(r,Kv))===Se(t0),ii&&Pt&&sr(d,r,d.c.b,d.c)}}function Jot(e){var t,n,i,r,o,a,d,b;for(o=0,r=e.a.b,b=Ln(e.a,0);b.b!=b.d.c;){if(d=c(_n(b),243),a=(o+1)/(r+1),!e.c&&!e.d)return;e.c&&!e.d?(e.g=!0,e.b==(_r(),go)?(i=e.c.e.b+e.c.f.b+e.e*(o+1),t=new He(ge(be($(e.c,(Ii(),_f))))+e.e,i),n=new He(ge(be($(e.c,oh)))-e.e,i)):e.b==vo?(i=e.c.e.b+e.c.f.b+e.e*(o+1),t=new He(ge(be($(e.c,(Ii(),oh))))-e.e,i),n=new He(ge(be($(e.c,_f)))+e.e,i)):e.b==Aa?(i=e.c.e.a+e.c.f.a+e.e*(o+1),t=new He(i,ge(be($(e.c,(Ii(),_f))))+e.e),n=new He(i,ge(be($(e.c,oh)))-e.e)):(i=e.c.e.a+e.c.f.a+e.e*(o+1),t=new He(i,ge(be($(e.c,(Ii(),oh))))-e.e),n=new He(i,ge(be($(e.c,_f)))+e.e))):e.c&&e.d?e.b==(_r(),go)?(i=e.d.e.b*a+(e.c.e.b+e.c.f.b)*(1-a),t=new He(ge(be($(e.c,(Ii(),_f))))+e.e,i),n=new He(ge(be($(e.c,oh)))-e.e,i)):e.b==vo?(i=e.d.e.b*a+(e.c.e.b+e.c.f.b)*(1-a),t=new He(ge(be($(e.c,(Ii(),oh))))-e.e,i),n=new He(ge(be($(e.c,_f)))+e.e,i)):e.b==Aa?(i=e.d.e.a*a+(e.c.e.a+e.c.f.a)*(1-a),t=new He(i,ge(be($(e.c,(Ii(),_f))))+e.e),n=new He(i,ge(be($(e.c,oh)))-e.e)):(i=e.d.e.a*a+(e.c.e.a+e.c.f.a)*(1-a),t=new He(i,ge(be($(e.c,(Ii(),oh))))-e.e),n=new He(i,ge(be($(e.c,_f)))+e.e)):(e.f=!0,e.b==(_r(),go)?(i=e.d.e.b-e.e*(o+1),t=new He(ge(be($(e.d,(Ii(),_f))))+e.e,i),n=new He(ge(be($(e.d,oh)))-e.e,i)):e.b==vo?(i=e.d.e.b-e.e*(o+1),t=new He(ge(be($(e.d,(Ii(),oh))))-e.e,i),n=new He(ge(be($(e.d,_f)))+e.e,i)):e.b==Aa?(i=e.d.e.a-e.e*(o+1),t=new He(i,ge(be($(e.d,(Ii(),_f))))+e.e),n=new He(i,ge(be($(e.d,oh)))-e.e)):(i=e.d.e.a-e.e*(o+1),t=new He(i,ge(be($(e.d,(Ii(),oh))))-e.e),n=new He(i,ge(be($(e.d,_f)))+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 fin(e,t,n,i,r,o){var a,d,b,v,k,T,A,L,R,F,G,Y;switch(t){case 71:d=i.q.getFullYear()-W0>=-1900?1:0,n>=4?ti(e,ee(Z(st,1),Ge,2,6,[fct,hct])[d]):ti(e,ee(Z(st,1),Ge,2,6,["BC","AD"])[d]);break;case 121:BFt(e,n,i);break;case 77:FKt(e,n,i);break;case 107:b=r.q.getHours(),b==0?qd(e,24,n):qd(e,b,n);break;case 83:iVt(e,n,r);break;case 69:k=i.q.getDay(),n==5?ti(e,ee(Z(st,1),Ge,2,6,["S","M","T","W","T","F","S"])[k]):n==4?ti(e,ee(Z(st,1),Ge,2,6,[Are,Nre,_re,Dre,Lre,Pre,Ire])[k]):ti(e,ee(Z(st,1),Ge,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[k]);break;case 97:r.q.getHours()>=12&&r.q.getHours()<24?ti(e,ee(Z(st,1),Ge,2,6,["AM","PM"])[1]):ti(e,ee(Z(st,1),Ge,2,6,["AM","PM"])[0]);break;case 104:T=r.q.getHours()%12,T==0?qd(e,12,n):qd(e,T,n);break;case 75:A=r.q.getHours()%12,qd(e,A,n);break;case 72:L=r.q.getHours(),qd(e,L,n);break;case 99:R=i.q.getDay(),n==5?ti(e,ee(Z(st,1),Ge,2,6,["S","M","T","W","T","F","S"])[R]):n==4?ti(e,ee(Z(st,1),Ge,2,6,[Are,Nre,_re,Dre,Lre,Pre,Ire])[R]):n==3?ti(e,ee(Z(st,1),Ge,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[R]):qd(e,R,1);break;case 76:F=i.q.getMonth(),n==5?ti(e,ee(Z(st,1),Ge,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[F]):n==4?ti(e,ee(Z(st,1),Ge,2,6,[vre,xre,yre,kre,gk,Ore,jre,Sre,Tre,Cre,Ere,Mre])[F]):n==3?ti(e,ee(Z(st,1),Ge,2,6,["Jan","Feb","Mar","Apr",gk,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[F]):qd(e,F+1,n);break;case 81:G=i.q.getMonth()/3|0,n<4?ti(e,ee(Z(st,1),Ge,2,6,["Q1","Q2","Q3","Q4"])[G]):ti(e,ee(Z(st,1),Ge,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[G]);break;case 100:Y=i.q.getDate(),qd(e,Y,n);break;case 109:v=r.q.getMinutes(),qd(e,v,n);break;case 115:a=r.q.getSeconds(),qd(e,a,n);break;case 122:n<4?ti(e,o.c[0]):ti(e,o.c[1]);break;case 118:ti(e,o.b);break;case 90:n<3?ti(e,iJt(o)):n==3?ti(e,cJt(o)):ti(e,fJt(o.a));break;default:return!1}return!0}function Bye(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn,ii;if(xrt(t),b=c(ae((!t.b&&(t.b=new Et(yn,t,4,7)),t.b),0),83),k=c(ae((!t.c&&(t.c=new Et(yn,t,5,8)),t.c),0),83),d=no(b),v=no(k),a=(!t.a&&(t.a=new Le(Qi,t,6,6)),t.a).i==0?null:c(ae((!t.a&&(t.a=new Le(Qi,t,6,6)),t.a),0),171),Ze=c(Jt(e.a,d),9),$t=c(Jt(e.a,v),9),wt=null,dn=null,he(b,196)&&(Me=c(Jt(e.a,b),248),he(Me,12)?wt=c(Me,12):he(Me,9)&&(Ze=c(Me,9),wt=c(Xe(Ze.j,0),12))),he(k,196)&&(Pt=c(Jt(e.a,k),248),he(Pt,12)?dn=c(Pt,12):he(Pt,9)&&($t=c(Pt,9),dn=c(Xe($t.j,0),12))),!Ze||!$t)throw K(new d4("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(F=new Kb,ic(F,t),_e(F,($e(),Si),t),_e(F,(We(),ho),null),L=c($(i,Bc),24),Ze==$t&&L.Ec((Qs(),sE)),wt||(Ne=(Gs(),tl),vt=null,a&&Oy(c($(Ze,fr),103))&&(vt=new He(a.j,a.k),IUe(vt,sv(t)),uJe(vt,n),hv(v,d)&&(Ne=Vl,ji(vt,Ze.n))),wt=Tst(Ze,vt,Ne,i)),dn||(Ne=(Gs(),Vl),ii=null,a&&Oy(c($($t,fr),103))&&(ii=new He(a.b,a.c),IUe(ii,sv(t)),uJe(ii,n)),dn=Tst($t,ii,Ne,Jr($t))),ks(F,wt),rs(F,dn),(wt.e.c.length>1||wt.g.c.length>1||dn.e.c.length>1||dn.g.c.length>1)&&L.Ec((Qs(),rE)),A=new ln((!t.n&&(t.n=new Le(Bo,t,1,7)),t.n));A.e!=A.i.gc();)if(T=c(fn(A),158),!it(nt(Ae(T,zm)))&&T.a)switch(G=hne(T),Ue(F.b,G),c($(G,xd),281).g){case 1:case 2:L.Ec((Qs(),VS));break;case 0:L.Ec((Qs(),WS)),_e(G,xd,(kh(),m9))}if(o=c($(i,pE),302),Y=c($(i,DJ),329),r=o==(B7(),wP)||Y==(q7(),tue),a&&(!a.a&&(a.a=new Nr(ea,a,5)),a.a).i!=0&&r){for(oe=nUt(a),R=new nu,we=Ln(oe,0);we.b!=we.d.c;)fe=c(_n(we),8),ni(R,new Es(fe));_e(F,lje,R)}return F}function hin(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn,ii,nr;for(vt=0,Pt=0,Ze=new xn,Ne=c(wu(ev(Jc(new Tt(null,new Ct(e.b,16)),new j$),new C8)),15).a+1,wt=Ce(Hn,li,30,Ne,15,1),G=Ce(Hn,li,30,Ne,15,1),F=0;F<Ne;F++)wt[F]=0,G[F]=0;for(b=c(Gl(Cme(new Tt(null,new Ct(e.a,16))),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[(ya(),vl)]))),16),k=b.Jc();k.Ob();)if(v=c(k.Pb(),65),dn=c($(v.b,(Wo(),yd)),15).a,nr=c($(v.c,yd),15).a,we=nr-dn,we>1)for(d=dn+1;d<nr;d++){if(T=d,Me=c(Gl(bi(new Tt(null,new Ct(e.b,16)),new oLe(T)),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[vl]))),16),R=0,t==(_r(),go)||t==vo){for(Me.gd(new E$),R=0;R<Me.gc()&&(Y=(d-dn)/(nr-dn),!(c(Me.Xb(R),41).e.b>v.b.e.b*(1-Y)+v.c.e.b*Y));R++);if(Me.gc()>0&&(ii=v.a.b==0?Ms(v.b.e):c(pf(v.a),8),fe=ji(Ms(c(Me.Xb(Me.gc()-1),41).e),c(Me.Xb(Me.gc()-1),41).f),A=ji(Ms(c(Me.Xb(0),41).e),c(Me.Xb(0),41).f),R>=Me.gc()-1&&ii.b>fe.b&&v.c.e.b>fe.b||R<=0&&ii.b<A.a&&v.c.e.b<A.b))continue}else{for(Me.gd(new YA),R=0;R<Me.gc()&&(Y=(d-dn)/(nr-dn),!(c(Me.Xb(R),41).e.a>v.b.e.a*(1-Y)+v.c.e.a*Y));R++);if(Me.gc()>0&&(ii=v.a.b==0?Ms(v.b.e):c(pf(v.a),8),fe=ji(Ms(c(Me.Xb(Me.gc()-1),41).e),c(Me.Xb(Me.gc()-1),41).f),A=ji(Ms(c(Me.Xb(0),41).e),c(Me.Xb(0),41).f),R>=Me.gc()-1&&ii.a>fe.a&&v.c.e.a>fe.a||R<=0&&ii.a<A.a&&v.c.e.a<A.a))continue}r=new us,o=new us,ni(v.a,r),ni(v.a,o),a=new ZZ(r,o,v),oe=id($d(d,32),Zr(R,Us)),Ac(Ze,yv(oe))?(L=c(Jt(Ze,yv(oe)),669),ni(L.a,a),k1(L.b)?fm(L.a,new A$):fm(L.a,new N$),Jot(L)):(L=new FZe(R==0?null:c(Me.Xb(R-1),41),R==Me.gc()?null:c(Me.Xb(R),41),a,e),ci(Ze,yv(oe),L)),t==go||t==vo?(L.f&&L.d.e.b<=ge(be($(e,(Ii(),xue))))&&++vt,L.g&&L.c.e.b+L.c.f.b>=ge(be($(e,(Ii(),D9e))))&&++Pt):(L.f&&L.d.e.a<=ge(be($(e,(Ii(),vue))))&&++vt,L.g&&L.c.e.a+L.c.f.a>=ge(be($(e,(Ii(),_9e))))&&++Pt)}else we==0?txe(v):we<0&&(++wt[dn],++G[nr],$t=oin(v,t,e,new Ls(ze(vt),ze(Pt)),n,i,new Ls(ze(G[nr]),ze(wt[dn]))),vt=c($t.a,15).a,Pt=c($t.b,15).a)}function din(e){e.gb||(e.gb=!0,e.b=Jo(e,0),ur(e.b,18),qi(e.b,19),e.a=Jo(e,1),ur(e.a,1),qi(e.a,2),qi(e.a,3),qi(e.a,4),qi(e.a,5),e.o=Jo(e,2),ur(e.o,8),ur(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),ao(e.o),ao(e.o),ao(e.o),ao(e.o),ao(e.o),ao(e.o),ao(e.o),ao(e.o),ao(e.o),ao(e.o),e.p=Jo(e,3),ur(e.p,2),ur(e.p,3),ur(e.p,4),ur(e.p,5),qi(e.p,6),qi(e.p,7),ao(e.p),ao(e.p),e.q=Jo(e,4),ur(e.q,8),e.v=Jo(e,5),qi(e.v,9),ao(e.v),ao(e.v),ao(e.v),e.w=Jo(e,6),ur(e.w,2),ur(e.w,3),ur(e.w,4),qi(e.w,5),e.B=Jo(e,7),qi(e.B,1),ao(e.B),ao(e.B),ao(e.B),e.Q=Jo(e,8),qi(e.Q,0),ao(e.Q),e.R=Jo(e,9),ur(e.R,1),e.S=Jo(e,10),ao(e.S),ao(e.S),ao(e.S),ao(e.S),ao(e.S),ao(e.S),ao(e.S),ao(e.S),ao(e.S),ao(e.S),ao(e.S),ao(e.S),ao(e.S),ao(e.S),ao(e.S),e.T=Jo(e,11),qi(e.T,10),qi(e.T,11),qi(e.T,12),qi(e.T,13),qi(e.T,14),ao(e.T),ao(e.T),e.U=Jo(e,12),ur(e.U,2),ur(e.U,3),qi(e.U,4),qi(e.U,5),qi(e.U,6),qi(e.U,7),ao(e.U),e.V=Jo(e,13),qi(e.V,10),e.W=Jo(e,14),ur(e.W,18),ur(e.W,19),ur(e.W,20),qi(e.W,21),qi(e.W,22),qi(e.W,23),e.bb=Jo(e,15),ur(e.bb,10),ur(e.bb,11),ur(e.bb,12),ur(e.bb,13),ur(e.bb,14),ur(e.bb,15),ur(e.bb,16),qi(e.bb,17),ao(e.bb),ao(e.bb),e.eb=Jo(e,16),ur(e.eb,2),ur(e.eb,3),ur(e.eb,4),ur(e.eb,5),ur(e.eb,6),ur(e.eb,7),qi(e.eb,8),qi(e.eb,9),e.ab=Jo(e,17),ur(e.ab,0),ur(e.ab,1),e.H=Jo(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),ao(e.H),e.db=Jo(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 Wot(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe;if(yst(e,t),(!t.e&&(t.e=new Et($i,t,7,4)),t.e).i!=0){for(d=new Qe,L=0;L<(!t.e&&(t.e=new Et($i,t,7,4)),t.e).i;L++)r=c(ae(rj(c(ae((!t.e&&(t.e=new Et($i,t,7,4)),t.e),L),74)),0),19),Wot(e,r),Rt(d.c,r);for(b=d.c.length,R=0;R<d.c.length-1;R++)fot((pt(0,d.c.length),c(d.c[0],19)),(pt(R,d.c.length),c(d.c[R],19)),(pt(R+1,d.c.length),c(d.c[R+1],19)));for(G=((pt(0,d.c.length),c(d.c[0],19)).mh()+(pt(0,d.c.length),c(d.c[0],19)).lh()/2+c(Xe(d,d.c.length-1),19).mh()+c(Xe(d,d.c.length-1),19).lh()/2-t.g)/2-t.i,a=new J(d);a.a<a.c.c.length;)r=c(U(a),19),Dc(r,r.i-G),ri(r,(Gd(),Uw),c(Ae(r,Gm),107).a);for(A=0;A<b-1&&(pt(A,d.c.length),c(d.c[A],19)).mh()+(pt(A,d.c.length),c(d.c[A],19)).lh()+c((pt(A,d.c.length),c(d.c[A],19)).mf((Pn(),K1)),125).c-t.g/2<=0;)++A;for(v=ge(be((pt(A,d.c.length),c(d.c[A],19)).mf((Gd(),Uw)))),i=0;i<b;i++)v<ge(be((pt(i,d.c.length),c(d.c[i],19)).mf(Uw)))?(pt(i,d.c.length),c(d.c[i],19)).of(Uw,v):v=ge(be((pt(i,d.c.length),c(d.c[i],19)).mf(Uw)));for(A=b-1;A>0&&(pt(A,d.c.length),c(d.c[A],19)).mh()-c((pt(A,d.c.length),c(d.c[A],19)).mf((Pn(),K1)),125).b-t.g/2>=0;)--A;if(A<b)for(n=A;n>=0;n--)v<ge(be((pt(n,d.c.length),c(d.c[n],19)).mf(Uw)))?(pt(n,d.c.length),c(d.c[n],19)).of(Uw,v):v=ge(be((pt(n,d.c.length),c(d.c[n],19)).mf(Uw)));for(F=c((pt(0,d.c.length),c(d.c[0],19)).mf(Gm),107),k=c(Ae(t,Gm),107),oe=(pt(0,d.c.length),c(d.c[0],19)).mh()+F.c-k.c,Y=new xu(0,F.a,F.b),i4(k.b.b.b,new xu(oe,ge(be((pt(0,d.c.length),c(d.c[0],19)).mf(Uw))),Y)),T=c(Ae(t,ux),107),fe=c((pt(b-1,d.c.length),c(d.c[b-1],19)).mf(ux),107),oe=(pt(b-1,d.c.length),c(d.c[b-1],19)).mh()+fe.c-T.c,Y=new xu(0,fe.a,fe.b),i4(T.b.b.b,new xu(oe,ge(be((pt(b-1,d.c.length),c(d.c[b-1],19)).mf(Uw))),Y)),o=new J(d);o.a<o.c.c.length;)r=c(U(o),19),ri(t,kd,p.Math.max(ge(be(Ae(t,kd))),ge(be(Ae(r,kd))))),ri(t,a9,p.Math.min(ge(be(Ae(t,a9))),r.i+ge(be(Ae(r,a9))))),ri(t,u9,p.Math.max(ge(be(Ae(t,u9))),r.i+ge(be(Ae(r,u9)))));ri(t,aae,be(Ae(t,kd)))}}function Vot(e,t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt;if(yst(e,t),(!t.e&&(t.e=new Et($i,t,7,4)),t.e).i!=0){for(a=new Qe,k=0;k<(!t.e&&(t.e=new Et($i,t,7,4)),t.e).i;k++)i=c(ae(rj(c(ae((!t.e&&(t.e=new Et($i,t,7,4)),t.e),k),74)),0),19),Vot(e,i),Rt(a.c,i);for(WYt(e,a),T=0;T<a.c.length-1;T++)fot((pt(0,a.c.length),c(a.c[0],19)),(pt(T,a.c.length),c(a.c[T],19)),(pt(T+1,a.c.length),c(a.c[T+1],19)));for(Ne=0,G=0,Y=0;Ne<a.c.length&&(pt(Ne,a.c.length),c(a.c[Ne],19)).nh()>=G;)(pt(Ne,a.c.length),c(a.c[Ne],19)).nh()>G&&(Y=Ne,G=(pt(Ne,a.c.length),c(a.c[Ne],19)).nh()),Ne+=1;if(oe=0,Ne>0&&(oe=((pt(Y,a.c.length),c(a.c[Y],19)).mh()+(pt(Ne-1,a.c.length),c(a.c[Ne-1],19)).mh()+(pt(Ne-1,a.c.length),c(a.c[Ne-1],19)).lh())/2-t.i-t.g/2),!it(nt(Ae(t,(ik(),pae))))){if(n=((pt(0,a.c.length),c(a.c[0],19)).mh()+c(Xe(a,a.c.length-1),19).mh()+c(Xe(a,a.c.length-1),19).lh()-t.g)/2-t.i,n<oe){for(v=0;v<Y;v++)for(A=v+1;A<Y+1;A++)for(wt=c((pt(v,a.c.length),c(a.c[v],19)).mf((Gd(),ux)),107),vt=(pt(v,a.c.length),c(a.c[v],19)).mh()+wt.c,Me=(pt(A,a.c.length),c(a.c[A],19)).mh()+(pt(A,a.c.length),c(a.c[A],19)).lh()/2;wt&&wt.a<G;)fe=Me-t.g/2+(Me-vt)*(t.j+t.f-G)/(G-wt.a),n=p.Math.max(n,fe),wt=wt.b,wt&&(vt+=wt.c);oe=n}if(n>oe){for(v=Ne;v<a.c.length;v++)for(A=Ne-1;A<v;A++)for(R=c((pt(v,a.c.length),c(a.c[v],19)).mf((Gd(),Gm)),107),F=(pt(v,a.c.length),c(a.c[v],19)).mh()+R.c,Me=(pt(A,a.c.length),c(a.c[A],19)).mh()+(pt(A,a.c.length),c(a.c[A],19)).lh()/2;R&&R.a<G;)fe=Me-t.g/2+(Me-F)*(t.j+t.f-G)/(G-R.a),n=p.Math.min(n,fe),R=R.b,R&&(F+=R.c);oe=n}}for(o=new J(a);o.a<o.c.c.length;)i=c(U(o),19),Dc(i,i.i-oe);for(d=c(Ae(t,(Gd(),Gm)),107),L=c((pt(0,a.c.length),c(a.c[0],19)).mf(Gm),107),we=(pt(0,a.c.length),c(a.c[0],19)).mh()+L.c-d.c,i4(d.b.b.b,new xu(we,L.a,L.b)),b=c(Ae(t,ux),107),Ze=c(c(Xe(a,a.c.length-1),19).mf(ux),107),we=c(Xe(a,a.c.length-1),19).mh()+Ze.c-b.c,i4(b.b.b.b,new xu(we,Ze.a,Ze.b)),r=new J(a);r.a<r.c.c.length;)i=c(U(r),19),ri(t,kd,p.Math.max(ge(be(Ae(t,kd))),ge(be(Ae(i,kd))))),ri(t,a9,p.Math.min(ge(be(Ae(t,a9))),i.i+ge(be(Ae(i,a9))))),ri(t,u9,p.Math.max(ge(be(Ae(t,u9))),i.i+ge(be(Ae(i,u9)))));ri(t,aae,be(Ae(t,kd)))}}function gin(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R;for(T=Ln(e.b,0);T.b!=T.d.c;)if(k=c(_n(T),41),!jt(k.c,JQ))for(o=c(Gl(new Tt(null,new Ct(yJt(k,e),16)),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[(ya(),vl)]))),16),t==(_r(),go)||t==vo?o.gd(new T$):o.gd(new C$),R=o.gc(),r=0;r<R;r++)a=R==1?.5:(1+r)/(R+1),t==go?(v=ge(be($(k,(Ii(),_f)))),k.e.a+k.f.a+i<v?Cs(c(o.Xb(r),65).a,new He(v+n,k.e.b+k.f.b*a)):c(o.Xb(r),65).a.b>0&&(d=c(pf(c(o.Xb(r),65).a),8).a,A=k.e.a+k.f.a/2,b=c(pf(c(o.Xb(r),65).a),8).b,L=k.e.b+k.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 He(k.e.a+k.f.a+i/5.3,k.e.b+k.f.b*a-i/2)):Cs(c(o.Xb(r),65).a,new He(k.e.a+k.f.a+i/5.3,k.e.b+k.f.b*a+i/2)))),Cs(c(o.Xb(r),65).a,new He(k.e.a+k.f.a,k.e.b+k.f.b*a))):t==vo?(v=ge(be($(k,(Ii(),oh)))),k.e.a-i>v?Cs(c(o.Xb(r),65).a,new He(v-n,k.e.b+k.f.b*a)):c(o.Xb(r),65).a.b>0&&(d=c(pf(c(o.Xb(r),65).a),8).a,A=k.e.a+k.f.a/2,b=c(pf(c(o.Xb(r),65).a),8).b,L=k.e.b+k.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 He(k.e.a-i/5.3,k.e.b+k.f.b*a-i/2)):Cs(c(o.Xb(r),65).a,new He(k.e.a-i/5.3,k.e.b+k.f.b*a+i/2)))),Cs(c(o.Xb(r),65).a,new He(k.e.a,k.e.b+k.f.b*a))):t==Aa?(v=ge(be($(k,(Ii(),_f)))),k.e.b+k.f.b+i<v?Cs(c(o.Xb(r),65).a,new He(k.e.a+k.f.a*a,v+n)):c(o.Xb(r),65).a.b>0&&(d=c(pf(c(o.Xb(r),65).a),8).a,A=k.e.a+k.f.a/2,b=c(pf(c(o.Xb(r),65).a),8).b,L=k.e.b+k.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 He(k.e.a+k.f.a*a-i/2,k.e.b+i/5.3+k.f.b)):Cs(c(o.Xb(r),65).a,new He(k.e.a+k.f.a*a+i/2,k.e.b+i/5.3+k.f.b)))),Cs(c(o.Xb(r),65).a,new He(k.e.a+k.f.a*a,k.e.b+k.f.b))):(v=ge(be($(k,(Ii(),oh)))),lKe(c(o.Xb(r),65),e)?Cs(c(o.Xb(r),65).a,new He(k.e.a+k.f.a*a,c(pf(c(o.Xb(r),65).a),8).b)):k.e.b-i>v?Cs(c(o.Xb(r),65).a,new He(k.e.a+k.f.a*a,v-n)):c(o.Xb(r),65).a.b>0&&(d=c(pf(c(o.Xb(r),65).a),8).a,A=k.e.a+k.f.a/2,b=c(pf(c(o.Xb(r),65).a),8).b,L=k.e.b+k.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 He(k.e.a+k.f.a*a-i/2,k.e.b-i/5.3)):Cs(c(o.Xb(r),65).a,new He(k.e.a+k.f.a*a+i/2,k.e.b-i/5.3)))),Cs(c(o.Xb(r),65).a,new He(k.e.a+k.f.a*a,k.e.b)))}function Xot(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me;if(a=t,A=n,Ac(e.a,a)){if(Ba(c(Jt(e.a,a),47),A))return 1}else ci(e.a,a,new Tr);if(Ac(e.a,A)){if(Ba(c(Jt(e.a,A),47),a))return-1}else ci(e.a,A,new Tr);if(Ac(e.e,a)){if(Ba(c(Jt(e.e,a),47),A))return-1}else ci(e.e,a,new Tr);if(Ac(e.e,A)){if(Ba(c(Jt(e.a,A),47),a))return 1}else ci(e.e,A,new Tr);if(a.j!=A.j)return Ne=DTt(a.j,A.j),Ne>0?ja(e,a,A,1):ja(e,A,a,1),Ne;if(Me=1,a.e.c.length!=0&&A.e.c.length!=0){if((a.j==(Ve(),Zt)&&A.j==Zt||a.j==Yt&&A.j==Yt||a.j==wn&&A.j==wn)&&(Me=-Me),k=c(Xe(a.e,0),17).c,G=c(Xe(A.e,0),17).c,b=k.i,R=G.i,b==R)for(fe=new J(b.j);fe.a<fe.c.c.length;){if(oe=c(U(fe),12),k==oe)return ja(e,A,a,Me),-Me;if(G==oe)return ja(e,a,A,Me),Me}if(k.i.k==(Wt(),Er)&&G.i.k==Er&&b.c.p==R.c.p&&b.c.p==a.i.c.p&&(we=b.c,r=ZKe(we,b,R),r!=0))return a.j==sn&&A.j==sn&&(Me=-Me),r>0?(ja(e,a,A,Me),Me):(ja(e,A,a,Me),-Me);if(i=ZKe(c(Gl(vee(e.d),su(new ds,new Ji,new yo,ee(Z(xl,1),Re,132,0,[(ya(),vl)]))),22),b,R),i!=0)return i>0?(ja(e,a,A,Me),Me):(ja(e,A,a,Me),-Me);if(e.c&&(Ne=MZe(e,a,A),Ne!=0))return Ne>0?(ja(e,a,A,Me),Me):(ja(e,A,a,Me),-Me)}return a.g.c.length!=0&&A.g.c.length!=0?((a.j==(Ve(),Zt)&&A.j==Zt||a.j==wn&&A.j==wn)&&(Me=-Me),T=c($(a,($e(),yle)),9),Y=c($(A,yle),9),e.f==($1(),rue)&&T&&Y&&Oi(T,Ri)&&Oi(Y,Ri)?(d=mw(T,Y,e.b,c($(e.b,sp),15).a),L=mw(Y,T,e.b,c($(e.b,sp),15).a),d>L?(ja(e,a,A,Me),Me):(ja(e,A,a,Me),-Me)):e.c&&(Ne=MZe(e,a,A),Ne!=0)?Ne>0?(ja(e,a,A,Me),Me):(ja(e,A,a,Me),-Me):(v=0,F=0,Oi(c(Xe(a.g,0),17),Ri)&&(v=mw(c(Xe(a.g,0),248),c(Xe(A.g,0),248),e.b,a.g.c.length+a.e.c.length)),Oi(c(Xe(A.g,0),17),Ri)&&(F=mw(c(Xe(A.g,0),248),c(Xe(a.g,0),248),e.b,A.g.c.length+A.e.c.length)),T&&T==Y||e.g&&(e.g._b(T)&&(v=c(e.g.xc(T),15).a),e.g._b(Y)&&(F=c(e.g.xc(Y),15).a)),v>F?(ja(e,a,A,Me),Me):(ja(e,A,a,Me),-Me))):a.e.c.length!=0&&A.g.c.length!=0?(ja(e,a,A,Me),1):a.g.c.length!=0&&A.e.c.length!=0?(ja(e,A,a,Me),-1):Oi(a,($e(),Ri))&&Oi(A,Ri)?(o=a.i.j.c.length,d=mw(a,A,e.b,o),L=mw(A,a,e.b,o),(a.j==(Ve(),Zt)&&A.j==Zt||a.j==wn&&A.j==wn)&&(Me=-Me),d>L?(ja(e,a,A,Me),Me):(ja(e,A,a,Me),-Me)):(ja(e,A,a,Me),-Me)}function $e(){$e=W;var e,t;Si=new mi(g3e),rje=new mi("coordinateOrigin"),Ole=new mi("processors"),ije=new Gi("compoundNode",(zt(),!1)),jP=new Gi("insideConnections",!1),lje=new mi("originalBendpoints"),uje=new mi("originalDummyNodePosition"),aje=new mi("originalLabelEdge"),cE=new mi("representedLabels"),oE=new mi("endLabels"),Lk=new mi("endLabel.origin"),Ik=new Gi("labelSide",(Gu(),iI)),y3=new Gi("maxEdgeThickness",0),Vg=new Gi("reversed",!1),Rk=new mi(Vct),sh=new Gi("longEdgeSource",null),Ka=new Gi("longEdgeTarget",null),Vv=new Gi("longEdgeHasLabelDummies",!1),SP=new Gi("longEdgeBeforeLabelDummy",!1),bJ=new Gi("edgeConstraint",(gm(),sle)),$w=new mi("inLayerLayoutUnit"),Pm=new Gi("inLayerConstraint",(_1(),kP)),Pk=new Gi("inLayerSuccessorConstraint",new Qe),cje=new Gi("inLayerSuccessorConstraintBetweenNonDummies",!1),Wl=new mi("portDummy"),mJ=new Gi("crossingHint",ze(0)),Bc=new Gi("graphProperties",(t=c(Jf(hle),10),new ga(t,c(mf(t,t.length),10),0))),Zo=new Gi("externalPortSide",(Ve(),$o)),oje=new Gi("externalPortSize",new us),wle=new mi("externalPortReplacedDummies"),wJ=new mi("externalPortReplacedDummy"),J1=new Gi("externalPortConnections",(e=c(Jf(Rs),10),new ga(e,c(mf(e,e.length),10),0))),Bw=new Gi(Gct,0),nje=new mi("barycenterAssociates"),Bk=new mi("TopSideComments"),_k=new mi("BottomSideComments"),pJ=new mi("CommentConnectionPort"),xle=new Gi("inputCollect",!1),kle=new Gi("outputCollect",!1),Dk=new Gi("cyclic",!1),sje=new mi("crossHierarchyMap"),Sle=new mi("targetOffset"),new Gi("splineLabelSize",new us),O3=new mi("spacings"),vJ=new Gi("partitionConstraint",!1),Rw=new mi("breakingPoint.info"),dje=new mi("splines.survivingEdge"),Im=new mi("splines.route.start"),j3=new mi("splines.edgeChain"),hje=new mi("originalPortConstraints"),zw=new mi("selfLoopHolder"),KS=new mi("splines.nsPortY"),Ri=new mi("modelOrder"),sp=new mi("modelOrder.maximum"),OP=new mi("modelOrderGroups.cb.number"),yle=new mi("longEdgeTargetNode"),rp=new Gi(ylt,!1),k3=new Gi(ylt,!1),vle=new mi("layerConstraints.hiddenNodes"),fje=new mi("layerConstraints.opposidePort"),jle=new mi("targetNode.modelOrder"),$k=new Gi("tarjan.lowlink",ze(pi)),lE=new Gi("tarjan.id",ze(-1)),xJ=new Gi("tarjan.onstack",!1),X1t=new Gi("partOfCycle",!1),S3=new mi("medianHeuristic.weight")}function Pn(){Pn=W;var e,t;Jk=new mi(mut),gx=new mi(but),$Te=(Hd(),jae),R2t=new xt(j5e,$Te),h9=new xt(gS,null),$2t=new mi(Q4e),zTe=(xm(),Li(Cae,ee(Z(Eae,1),Re,300,0,[Tae]))),XP=new xt(HQ,zTe),KP=new xt(YL,(zt(),!1)),FTe=(_r(),zh),Qm=new xt(Fse,FTe),GTe=(R1(),zae),HTe=new xt(KL,GTe),q2t=new xt(H4e,!1),UTe=(I1(),OW),P3=new xt(qQ,UTe),i7e=new Wp(12),$h=new xt(Ow,i7e),WE=new xt(pS,!1),Nae=new xt(QQ,!1),VE=new xt(mS,!1),l7e=(es(),gp),d9=new xt(jQ,l7e),Wk=new mi(GQ),ZP=new mi(zL),$ae=new mi(OQ),Bae=new mi(kC),VTe=new nu,I3=new xt(P5e,VTe),z2t=new xt(B5e,!1),H2t=new xt(z5e,!1),new xt(wut,0),XTe=new dT,K1=new xt(Gse,XTe),wW=new xt(k5e,!1),V2t=new xt(vut,1),fx=new mi(xut),ax=new mi(yut),p9=new xt(qL,!1),new xt(kut,!0),ze(0),new xt(Out,ze(100)),new xt(jut,!1),ze(0),new xt(Sut,ze(4e3)),ze(0),new xt(Tut,ze(400)),new xt(Cut,!1),new xt(Eut,!1),new xt(Mut,!0),new xt(Aut,!1),BTe=(lG(),Uae),B2t=new xt(G4e,BTe),WTe=(y7(),oI),Q2t=new xt(Nut,WTe),JTe=(Mj(),eI),G2t=new xt(_ut,JTe),X2t=new xt(a5e,10),K2t=new xt(f5e,10),Y2t=new xt(h5e,20),Z2t=new xt(d5e,10),h7e=new xt(Yre,2),d7e=new xt(zse,10),g7e=new xt(g5e,0),vW=new xt(b5e,5),p7e=new xt(p5e,1),m7e=new xt(m5e,1),lh=new xt(kw,20),evt=new xt(w5e,10),v7e=new xt(v5e,10),Vk=new mi(x5e),w7e=new GBe,b7e=new xt(q5e,w7e),J2t=new mi(Hse),r7e=!1,U2t=new xt(qse,r7e),YTe=new Wp(5),KTe=new xt(C5e,YTe),ZTe=(Cv(),t=c(Jf(Xs),10),new ga(t,c(mf(t,t.length),10),0)),R3=new xt(wS,ZTe),o7e=(qy(),dp),s7e=new xt(A5e,o7e),Dae=new mi(N5e),Lae=new mi(_5e),Pae=new mi(D5e),_ae=new mi(L5e),e7e=(e=c(Jf(iM),10),new ga(e,c(mf(e,e.length),10),0)),Um=new xt(i3,e7e),n7e=bt((uu(),x9)),fp=new xt(xk,n7e),t7e=new He(0,0),$3=new xt(yk,t7e),hx=new xt(bS,!1),qTe=(kh(),m9),Mae=new xt(R5e,qTe),bW=new xt(FL,!1),ze(1),new xt(Dut,null),c7e=new mi(F5e),Iae=new mi($5e),f7e=(Ve(),$o),B3=new xt(O5e,f7e),fu=new mi(y5e),u7e=(Ul(),bt(pp)),dx=new xt(vS,u7e),Rae=new xt(E5e,!1),a7e=new xt(M5e,!0),ze(1),svt=new xt(poe,ze(3)),ze(1),cvt=new xt(U4e,ze(4)),xW=new xt(HL,1),yW=new xt(moe,null),px=new xt(GL,150),g9=new xt(QL,1.414),Xk=new xt(jw,null),tvt=new xt(J4e,1),YP=new xt(S5e,!1),Aae=new xt(T5e,!1),F2t=new xt(I5e,1),QTe=(RG(),qae),new xt(Lut,QTe),W2t=!0,ovt=(sH(),Qae),ivt=(X4(),wx),rvt=wx,nvt=wx}function os(){os=W,ZOe=new Mr("DIRECTION_PREPROCESSOR",0),XOe=new Mr("COMMENT_PREPROCESSOR",1),g3=new Mr("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),Ice=new Mr("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),w6e=new Mr("PARTITION_PREPROCESSOR",4),HU=new Mr("LABEL_DUMMY_INSERTER",5),ZU=new Mr("SELF_LOOP_PREPROCESSOR",6),Qv=new Mr("LAYER_CONSTRAINT_PREPROCESSOR",7),m6e=new Mr("PARTITION_MIDPROCESSOR",8),c6e=new Mr("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),g6e=new Mr("NODE_PROMOTION",10),Gv=new Mr("LAYER_CONSTRAINT_POSTPROCESSOR",11),b6e=new Mr("PARTITION_POSTPROCESSOR",12),r6e=new Mr("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),v6e=new Mr("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),GOe=new Mr("BREAKING_POINT_INSERTER",15),JU=new Mr("LONG_EDGE_SPLITTER",16),Rce=new Mr("PORT_SIDE_PROCESSOR",17),FU=new Mr("INVERTED_PORT_PROCESSOR",18),XU=new Mr("PORT_LIST_SORTER",19),y6e=new Mr("SORT_BY_INPUT_ORDER_OF_MODEL",20),VU=new Mr("NORTH_SOUTH_PORT_PREPROCESSOR",21),QOe=new Mr("BREAKING_POINT_PROCESSOR",22),p6e=new Mr(dlt,23),k6e=new Mr(glt,24),KU=new Mr("SELF_LOOP_PORT_RESTORER",25),HOe=new Mr("ALTERNATING_LAYER_UNZIPPER",26),x6e=new Mr("SINGLE_EDGE_GRAPH_WRAPPER",27),qU=new Mr("IN_LAYER_CONSTRAINT_PROCESSOR",28),t6e=new Mr("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",29),h6e=new Mr("LABEL_AND_NODE_SIZE_PROCESSOR",30),f6e=new Mr("INNERMOST_NODE_MARGIN_CALCULATOR",31),eJ=new Mr("SELF_LOOP_ROUTER",32),WOe=new Mr("COMMENT_NODE_MARGIN_CALCULATOR",33),zU=new Mr("END_LABEL_PREPROCESSOR",34),QU=new Mr("LABEL_DUMMY_SWITCHER",35),JOe=new Mr("CENTER_LABEL_MANAGEMENT_PROCESSOR",36),FS=new Mr("LABEL_SIDE_SELECTOR",37),u6e=new Mr("HYPEREDGE_DUMMY_MERGER",38),s6e=new Mr("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",39),d6e=new Mr("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",40),eE=new Mr("HIERARCHICAL_PORT_POSITION_PROCESSOR",41),KOe=new Mr("CONSTRAINTS_POSTPROCESSOR",42),VOe=new Mr("COMMENT_POSTPROCESSOR",43),a6e=new Mr("HYPERNODE_PROCESSOR",44),o6e=new Mr("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",45),UU=new Mr("LONG_EDGE_JOINER",46),YU=new Mr("SELF_LOOP_POSTPROCESSOR",47),UOe=new Mr("BREAKING_POINT_REMOVER",48),WU=new Mr("NORTH_SOUTH_PORT_POSTPROCESSOR",49),l6e=new Mr("HORIZONTAL_COMPACTOR",50),GU=new Mr("LABEL_DUMMY_REMOVER",51),n6e=new Mr("FINAL_SPLINE_BENDPOINTS_CALCULATOR",52),e6e=new Mr("END_LABEL_SORTER",53),Ak=new Mr("REVERSED_EDGE_RESTORER",54),BU=new Mr("END_LABEL_POSTPROCESSOR",55),i6e=new Mr("HIERARCHICAL_NODE_RESIZER",56),YOe=new Mr("DIRECTION_POSTPROCESSOR",57)}function pin(e,t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn,ii,nr,Yl,po,ta,Q3,l0,Bf,tg,La,iO,mM,ng,fh,u0,Xm,Km,rO,Ym,Zm,ig,Tx,WCe,Yw,bM,ufe,sO,wM,Cx,vM,afe,Xxt;for(WCe=0,ii=t,po=0,l0=ii.length;po<l0;++po)for($t=ii[po],u0=new J($t.j);u0.a<u0.c.c.length;){for(fh=c(U(u0),12),Km=0,d=new J(fh.g);d.a<d.c.c.length;)a=c(U(d),17),$t.c!=a.d.i.c&&++Km;Km>0&&(e.a[fh.p]=WCe++)}for(wM=0,nr=n,ta=0,Bf=nr.length;ta<Bf;++ta){for($t=nr[ta],tg=0,u0=new J($t.j);u0.a<u0.c.c.length&&(fh=c(U(u0),12),fh.j==(Ve(),Yt));)for(d=new J(fh.e);d.a<d.c.c.length;)if(a=c(U(d),17),$t.c!=a.c.i.c){++tg;break}for(iO=0,rO=new ss($t.j,$t.j.c.length);rO.b>0;){for(fh=(pn(rO.b>0),c(rO.a.Xb(rO.c=--rO.b),12)),Km=0,d=new J(fh.e);d.a<d.c.c.length;)a=c(U(d),17),$t.c!=a.c.i.c&&++Km;Km>0&&(fh.j==(Ve(),Yt)?(e.a[fh.p]=wM,++wM):(e.a[fh.p]=wM+tg+iO,++iO))}wM+=iO}for(Xm=new xn,R=new Ld,dn=t,Yl=0,Q3=dn.length;Yl<Q3;++Yl)for($t=dn[Yl],ufe=new J($t.j);ufe.a<ufe.c.c.length;)for(bM=c(U(ufe),12),d=new J(bM.g);d.a<d.c.c.length;)if(a=c(U(d),17),vM=a.d,$t.c!=vM.i.c)if(Yw=c(Ao(co(Xm.f,bM)),470),Cx=c(Ao(co(Xm.f,vM)),470),!Yw&&!Cx)L=new EFe,R.a.yc(L,R),Ue(L.a,a),Ue(L.d,bM),bl(Xm.f,bM,L),Ue(L.d,vM),bl(Xm.f,vM,L);else if(!Yw)Ue(Cx.a,a),Ue(Cx.d,bM),bl(Xm.f,bM,Cx);else if(!Cx)Ue(Yw.a,a),Ue(Yw.d,vM),bl(Xm.f,vM,Yw);else if(Yw==Cx)Ue(Yw.a,a);else{for(Ue(Yw.a,a),ng=new J(Cx.d);ng.a<ng.c.c.length;)mM=c(U(ng),12),bl(Xm.f,mM,Yw);Or(Yw.a,Cx.a),Or(Yw.d,Cx.d),R.a.Ac(Cx)!=null}for(F=c(H7(R,Ce(Bin,{3:1,4:1,5:1,2024:1},470,R.a.gc(),0,1)),2024),Pt=t[0].c,Tx=n[0].c,k=F,T=0,A=k.length;T<A;++T)for(v=k[T],v.e=WCe,v.f=wM,u0=new J(v.d);u0.a<u0.c.c.length;)fh=c(U(u0),12),Ym=e.a[fh.p],fh.i.c==Pt?(Ym<v.e&&(v.e=Ym),Ym>v.b&&(v.b=Ym)):fh.i.c==Tx&&(Ym<v.f&&(v.f=Ym),Ym>v.c&&(v.c=Ym));for(hj(F,0,F.length,null),sO=Ce(Hn,li,30,F.length,15,1),i=Ce(Hn,li,30,wM+1,15,1),Y=0;Y<F.length;Y++)sO[Y]=F[Y].f,i[sO[Y]]=1;for(o=0,oe=0;oe<i.length;oe++)i[oe]==1?i[oe]=o:--o;for(Zm=0,fe=0;fe<sO.length;fe++)sO[fe]+=i[sO[fe]],Zm=p.Math.max(Zm,sO[fe]+1);for(b=1;b<Zm;)b*=2;for(Xxt=2*b-1,b-=1,afe=Ce(Hn,li,30,Xxt,15,1),r=0,wt=0;wt<sO.length;wt++)for(Ze=sO[wt]+b,++afe[Ze];Ze>0;)Ze%2>0&&(r+=afe[Ze+1]),Ze=(Ze-1)/2|0,++afe[Ze];for(vt=Ce(xmt,It,371,F.length*2,0,1),we=0;we<F.length;we++)vt[2*we]=new Bq(F[we],F[we].e,F[we].b,(b7(),EE)),vt[2*we+1]=new Bq(F[we],F[we].b,F[we].e,CE);for(hj(vt,0,vt.length,null),La=0,Ne=0;Ne<vt.length;Ne++)switch(vt[Ne].d.g){case 0:++La;break;case 1:--La,r+=La}for(ig=Ce(xmt,It,371,F.length*2,0,1),Me=0;Me<F.length;Me++)ig[2*Me]=new Bq(F[Me],F[Me].f,F[Me].c,(b7(),EE)),ig[2*Me+1]=new Bq(F[Me],F[Me].c,F[Me].f,CE);for(hj(ig,0,ig.length,null),La=0,G=0;G<ig.length;G++)switch(ig[G].d.g){case 0:++La;break;case 1:--La,r+=La}return r}function vi(){vi=W,pM=new Nb(7),zCe=new Rd(8,94),new Rd(8,64),FCe=new Rd(8,36),Fxt=new Rd(8,65),qxt=new Rd(8,122),Hxt=new Rd(8,90),Qxt=new Rd(8,98),zxt=new Rd(8,66),Gxt=new Rd(8,60),Uxt=new Rd(8,62),BCe=new Nb(11),qW=new zu(4),Pc(qW,48,57),j9=new zu(4),Pc(j9,48,57),Pc(j9,65,90),Pc(j9,95,95),Pc(j9,97,122),nO=new zu(4),Pc(nO,9,9),Pc(nO,10,10),Pc(nO,12,12),Pc(nO,13,13),Pc(nO,32,32),qCe=Av(qW),GCe=Av(j9),HCe=Av(nO),O9=new xn,gM=new xn,Bxt=ee(Z(st,1),Ge,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"]),RCe=ee(Z(st,1),Ge,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",Dft,"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"]),$Ce=ee(Z(Hn,1),li,30,15,[66304,66351,66352,66383,66560,66639,118784,119039,119040,119295,119808,120831,131072,173782,194560,195103,917504,917631])}function gQ(){gQ=W,Yht=new xa("OUT_T_L",0,(Ql(),wd),(pl(),Mf),(Yf(),Ko),Ko,ee(Z(Xa,1),It,24,0,[Li((Cv(),Pf),ee(Z(Xs,1),Re,96,0,[If,Df]))])),Kht=new xa("OUT_T_C",1,tp,Mf,Ko,el,ee(Z(Xa,1),It,24,0,[Li(Pf,ee(Z(Xs,1),Re,96,0,[If,Y1])),Li(Pf,ee(Z(Xs,1),Re,96,0,[If,Y1,Ya]))])),Zht=new xa("OUT_T_R",2,Ef,Mf,Ko,Yo,ee(Z(Xa,1),It,24,0,[Li(Pf,ee(Z(Xs,1),Re,96,0,[If,Lf]))])),Hht=new xa("OUT_B_L",3,wd,rh,Yo,Ko,ee(Z(Xa,1),It,24,0,[Li(Pf,ee(Z(Xs,1),Re,96,0,[Za,Df]))])),qht=new xa("OUT_B_C",4,tp,rh,Yo,el,ee(Z(Xa,1),It,24,0,[Li(Pf,ee(Z(Xs,1),Re,96,0,[Za,Y1])),Li(Pf,ee(Z(Xs,1),Re,96,0,[Za,Y1,Ya]))])),Ght=new xa("OUT_B_R",5,Ef,rh,Yo,Yo,ee(Z(Xa,1),It,24,0,[Li(Pf,ee(Z(Xs,1),Re,96,0,[Za,Lf]))])),Jht=new xa("OUT_L_T",6,Ef,rh,Ko,Ko,ee(Z(Xa,1),It,24,0,[Li(Pf,ee(Z(Xs,1),Re,96,0,[Df,If,Ya]))])),Uht=new xa("OUT_L_C",7,Ef,np,el,Ko,ee(Z(Xa,1),It,24,0,[Li(Pf,ee(Z(Xs,1),Re,96,0,[Df,i1])),Li(Pf,ee(Z(Xs,1),Re,96,0,[Df,i1,Ya]))])),Qht=new xa("OUT_L_B",8,Ef,Mf,Yo,Ko,ee(Z(Xa,1),It,24,0,[Li(Pf,ee(Z(Xs,1),Re,96,0,[Df,Za,Ya]))])),Xht=new xa("OUT_R_T",9,wd,rh,Ko,Yo,ee(Z(Xa,1),It,24,0,[Li(Pf,ee(Z(Xs,1),Re,96,0,[Lf,If,Ya]))])),Vht=new xa("OUT_R_C",10,wd,np,el,Yo,ee(Z(Xa,1),It,24,0,[Li(Pf,ee(Z(Xs,1),Re,96,0,[Lf,i1])),Li(Pf,ee(Z(Xs,1),Re,96,0,[Lf,i1,Ya]))])),Wht=new xa("OUT_R_B",11,wd,Mf,Yo,Yo,ee(Z(Xa,1),It,24,0,[Li(Pf,ee(Z(Xs,1),Re,96,0,[Lf,Za,Ya]))])),zht=new xa("IN_T_L",12,wd,rh,Ko,Ko,ee(Z(Xa,1),It,24,0,[Li(Ku,ee(Z(Xs,1),Re,96,0,[If,Df])),Li(Ku,ee(Z(Xs,1),Re,96,0,[If,Df,Ya]))])),Bht=new xa("IN_T_C",13,tp,rh,Ko,el,ee(Z(Xa,1),It,24,0,[Li(Ku,ee(Z(Xs,1),Re,96,0,[If,Y1])),Li(Ku,ee(Z(Xs,1),Re,96,0,[If,Y1,Ya]))])),Fht=new xa("IN_T_R",14,Ef,rh,Ko,Yo,ee(Z(Xa,1),It,24,0,[Li(Ku,ee(Z(Xs,1),Re,96,0,[If,Lf])),Li(Ku,ee(Z(Xs,1),Re,96,0,[If,Lf,Ya]))])),Rht=new xa("IN_C_L",15,wd,np,el,Ko,ee(Z(Xa,1),It,24,0,[Li(Ku,ee(Z(Xs,1),Re,96,0,[i1,Df])),Li(Ku,ee(Z(Xs,1),Re,96,0,[i1,Df,Ya]))])),Iht=new xa("IN_C_C",16,tp,np,el,el,ee(Z(Xa,1),It,24,0,[Li(Ku,ee(Z(Xs,1),Re,96,0,[i1,Y1])),Li(Ku,ee(Z(Xs,1),Re,96,0,[i1,Y1,Ya]))])),$ht=new xa("IN_C_R",17,Ef,np,el,Yo,ee(Z(Xa,1),It,24,0,[Li(Ku,ee(Z(Xs,1),Re,96,0,[i1,Lf])),Li(Ku,ee(Z(Xs,1),Re,96,0,[i1,Lf,Ya]))])),Lht=new xa("IN_B_L",18,wd,Mf,Yo,Ko,ee(Z(Xa,1),It,24,0,[Li(Ku,ee(Z(Xs,1),Re,96,0,[Za,Df])),Li(Ku,ee(Z(Xs,1),Re,96,0,[Za,Df,Ya]))])),Dht=new xa("IN_B_C",19,tp,Mf,Yo,el,ee(Z(Xa,1),It,24,0,[Li(Ku,ee(Z(Xs,1),Re,96,0,[Za,Y1])),Li(Ku,ee(Z(Xs,1),Re,96,0,[Za,Y1,Ya]))])),Pht=new xa("IN_B_R",20,Ef,Mf,Yo,Yo,ee(Z(Xa,1),It,24,0,[Li(Ku,ee(Z(Xs,1),Re,96,0,[Za,Lf])),Li(Ku,ee(Z(Xs,1),Re,96,0,[Za,Lf,Ya]))])),vce=new xa(xC,21,null,null,null,null,ee(Z(Xa,1),It,24,0,[]))}function zye(){zye=W,Eje=(ED(),lJ),Rgt=new xt(k3e,Eje),Vgt=new xt(O3e,(zt(),!1)),Lje=(tH(),ble),e0t=new xt(MQ,Lje),y0t=new xt(j3e,!1),k0t=new xt(S3e,!0),Z1t=new xt(T3e,!1),Qje=(TD(),sue),R0t=new xt(C3e,Qje),ze(1),Q0t=new xt(E3e,ze(7)),U0t=new xt(M3e,!1),Xgt=new xt(A3e,!1),Cje=(hL(),ele),Igt=new xt(WL,Cje),Rje=(gL(),Kle),g0t=new xt(VL,Rje),Pje=(Su(),TP),o0t=new xt(N3e,Pje),ze(-1),s0t=new xt(_3e,null),ze(-1),c0t=new xt(D3e,ze(-1)),ze(-1),l0t=new xt(sse,ze(4)),ze(-1),a0t=new xt(ose,ze(2)),Ije=(U0(),FJ),d0t=new xt(cse,Ije),ze(0),h0t=new xt(lse,ze(0)),i0t=new xt(use,ze(pi)),Tje=(B7(),nE),Pgt=new xt(TC,Tje),xgt=new xt(L3e,!1),Cgt=new xt(ase,.1),Dgt=new xt(fse,!1),Mgt=new xt(P3e,null),Agt=new xt(I3e,null),ze(-1),Ngt=new xt(R3e,null),ze(-1),_gt=new xt($3e,ze(-1)),ze(0),ygt=new xt(B3e,ze(40)),Sje=(kj(),gle),Sgt=new xt(hse,Sje),jje=xP,kgt=new xt(AQ,jje),Gje=(q7(),yE),I0t=new xt(r3,Gje),C0t=new mi(NQ),Fje=(yD(),aJ),O0t=new xt(dse,Fje),qje=(sL(),fJ),S0t=new xt(gse,qje),A0t=new xt(pse,.3),_0t=new mi(mse),Hje=(kv(),zJ),D0t=new xt(bse,Hje),Nje=(UH(),cue),qgt=new xt(z3e,Nje),_je=(N7(),uue),Hgt=new xt(F3e,_je),Dje=(Ej(),SE),Ggt=new xt(_Q,Dje),Ugt=new xt(DQ,.2),zgt=new xt(wse,2),F0t=new xt(q3e,null),H0t=new xt(H3e,10),q0t=new xt(G3e,10),G0t=new xt(Q3e,20),ze(0),$0t=new xt(U3e,ze(0)),ze(0),B0t=new xt(J3e,ze(0)),ze(0),z0t=new xt(W3e,ze(0)),egt=new xt(vse,!1),bje=(Gj(),iE),ngt=new xt(V3e,bje),mje=(pH(),Xce),tgt=new xt(X3e,mje),Ygt=new xt(LQ,!1),ze(0),Kgt=new xt(xse,ze(16)),ze(0),Zgt=new xt(yse,ze(5)),Wje=(JH(),hue),hpt=new xt(G1,Wje),J0t=new xt(PQ,10),X0t=new xt(IQ,1),Jje=(NH(),cJ),ipt=new xt(CC,Jje),Z0t=new mi(kse),Uje=ze(1),ze(0),tpt=new xt(Ose,Uje),Vje=(AH(),fue),mpt=new xt(RQ,Vje),dpt=new mi($Q),lpt=new xt(BQ,!0),opt=new xt(zQ,2),apt=new xt(jse,!0),zje=(rH(),Cle),x0t=new xt(Sse,zje),m0t=new xt(Tse,!1),$je=ze(2),ze(1),p0t=new xt(Cse,$je),Bje=!0,w0t=new xt(Ese,Bje),Aje=(BG(),uJ),Bgt=new xt(K3e,Aje),Mje=(rk(),QS),$gt=new xt(Y3e,Mje),Oje=($1(),cp),vgt=new xt(FQ,Oje),wgt=new xt(Z3e,!1),bgt=new xt(XL,!1),wje=(Z4(),YC),igt=new xt(Mse,wje),kje=(_7(),Yle),mgt=new xt(e5e,kje),rgt=new xt(Ase,0),sgt=new xt(Nse,0),pgt=new xt(_se,ze(0)),ggt=new xt(Dse,ze(0)),dgt=new xt(Lse,ze(0)),vje=(I0(),yP),ogt=new xt(t5e,vje),cgt=new mi(Pse),ugt=new mi(Ise),yje=yP,hgt=new xt(n5e,yje),xje=Hq(g_t(ee(Z(Pr,1),Ge,15,0,[ze(1),ze(2),ze(6),ze(7),ze(10),ze(11)]))),fgt=new xt(i5e,xje),n0t=nle,t0t=wP,u0t=$J,f0t=$J,r0t=Vle,Egt=(I1(),t0),Lgt=nE,Tgt=nE,Ogt=nE,jgt=t0,E0t=kE,M0t=yE,j0t=yE,T0t=yE,N0t=nue,P0t=kE,L0t=kE,Qgt=(R1(),Kk),Jgt=Kk,Wgt=SE,Fgt=tI,W0t=s9,V0t=ox,K0t=s9,Y0t=ox,rpt=s9,spt=ox,ept=Kce,npt=cJ,bpt=s9,wpt=ox,gpt=s9,ppt=ox,upt=ox,cpt=ox,fpt=ox,b0t=ze(2),v0t=Tle,lgt=vP,agt=vP}function At(){At=W,kx=(E0(),Ut).b,c(ae(Pe(Ut.b),0),38),c(ae(Pe(Ut.b),1),20),i0=Ut.a,c(ae(Pe(Ut.a),0),38),c(ae(Pe(Ut.a),1),20),c(ae(Pe(Ut.a),2),20),c(ae(Pe(Ut.a),3),20),c(ae(Pe(Ut.a),4),20),wp=Ut.o,c(ae(Pe(Ut.o),0),38),c(ae(Pe(Ut.o),1),38),sxt=c(ae(Pe(Ut.o),2),20),c(ae(Pe(Ut.o),3),20),c(ae(Pe(Ut.o),4),20),c(ae(Pe(Ut.o),5),20),c(ae(Pe(Ut.o),6),20),c(ae(Pe(Ut.o),7),20),c(ae(Pe(Ut.o),8),20),c(ae(Pe(Ut.o),9),20),c(ae(Pe(Ut.o),10),20),c(ae(Pe(Ut.o),11),20),c(ae(Pe(Ut.o),12),20),c(ae(Pe(Ut.o),13),20),c(ae(Pe(Ut.o),14),20),c(ae(Pe(Ut.o),15),20),c(ae(Mi(Ut.o),0),62),c(ae(Mi(Ut.o),1),62),c(ae(Mi(Ut.o),2),62),c(ae(Mi(Ut.o),3),62),c(ae(Mi(Ut.o),4),62),c(ae(Mi(Ut.o),5),62),c(ae(Mi(Ut.o),6),62),c(ae(Mi(Ut.o),7),62),c(ae(Mi(Ut.o),8),62),c(ae(Mi(Ut.o),9),62),rxt=Ut.p,c(ae(Pe(Ut.p),0),38),c(ae(Pe(Ut.p),1),38),c(ae(Pe(Ut.p),2),38),c(ae(Pe(Ut.p),3),38),c(ae(Pe(Ut.p),4),20),c(ae(Pe(Ut.p),5),20),c(ae(Mi(Ut.p),0),62),c(ae(Mi(Ut.p),1),62),oxt=Ut.q,c(ae(Pe(Ut.q),0),38),vp=Ut.v,c(ae(Pe(Ut.v),0),20),c(ae(Mi(Ut.v),0),62),c(ae(Mi(Ut.v),1),62),c(ae(Mi(Ut.v),2),62),r0=Ut.w,c(ae(Pe(Ut.w),0),38),c(ae(Pe(Ut.w),1),38),c(ae(Pe(Ut.w),2),38),c(ae(Pe(Ut.w),3),20),xp=Ut.B,c(ae(Pe(Ut.B),0),20),c(ae(Mi(Ut.B),0),62),c(ae(Mi(Ut.B),1),62),c(ae(Mi(Ut.B),2),62),cxt=Ut.Q,c(ae(Pe(Ut.Q),0),20),c(ae(Mi(Ut.Q),0),62),lxt=Ut.R,c(ae(Pe(Ut.R),0),38),sf=Ut.S,c(ae(Mi(Ut.S),0),62),c(ae(Mi(Ut.S),1),62),c(ae(Mi(Ut.S),2),62),c(ae(Mi(Ut.S),3),62),c(ae(Mi(Ut.S),4),62),c(ae(Mi(Ut.S),5),62),c(ae(Mi(Ut.S),6),62),c(ae(Mi(Ut.S),7),62),c(ae(Mi(Ut.S),8),62),c(ae(Mi(Ut.S),9),62),c(ae(Mi(Ut.S),10),62),c(ae(Mi(Ut.S),11),62),c(ae(Mi(Ut.S),12),62),c(ae(Mi(Ut.S),13),62),c(ae(Mi(Ut.S),14),62),s0=Ut.T,c(ae(Pe(Ut.T),0),20),c(ae(Pe(Ut.T),2),20),uxt=c(ae(Pe(Ut.T),3),20),c(ae(Pe(Ut.T),4),20),c(ae(Mi(Ut.T),0),62),c(ae(Mi(Ut.T),1),62),c(ae(Pe(Ut.T),1),20),o0=Ut.U,c(ae(Pe(Ut.U),0),38),c(ae(Pe(Ut.U),1),38),c(ae(Pe(Ut.U),2),20),c(ae(Pe(Ut.U),3),20),c(ae(Pe(Ut.U),4),20),c(ae(Pe(Ut.U),5),20),c(ae(Mi(Ut.U),0),62),Ox=Ut.V,c(ae(Pe(Ut.V),0),20),z3=Ut.W,c(ae(Pe(Ut.W),0),38),c(ae(Pe(Ut.W),1),38),c(ae(Pe(Ut.W),2),38),c(ae(Pe(Ut.W),3),20),c(ae(Pe(Ut.W),4),20),c(ae(Pe(Ut.W),5),20),axt=Ut.bb,c(ae(Pe(Ut.bb),0),38),c(ae(Pe(Ut.bb),1),38),c(ae(Pe(Ut.bb),2),38),c(ae(Pe(Ut.bb),3),38),c(ae(Pe(Ut.bb),4),38),c(ae(Pe(Ut.bb),5),38),c(ae(Pe(Ut.bb),6),38),c(ae(Pe(Ut.bb),7),20),c(ae(Mi(Ut.bb),0),62),c(ae(Mi(Ut.bb),1),62),fxt=Ut.eb,c(ae(Pe(Ut.eb),0),38),c(ae(Pe(Ut.eb),1),38),c(ae(Pe(Ut.eb),2),38),c(ae(Pe(Ut.eb),3),38),c(ae(Pe(Ut.eb),4),38),c(ae(Pe(Ut.eb),5),38),c(ae(Pe(Ut.eb),6),20),c(ae(Pe(Ut.eb),7),20),$s=Ut.ab,c(ae(Pe(Ut.ab),0),38),c(ae(Pe(Ut.ab),1),38),Ww=Ut.H,c(ae(Pe(Ut.H),0),20),c(ae(Pe(Ut.H),1),20),c(ae(Pe(Ut.H),2),20),c(ae(Pe(Ut.H),3),20),c(ae(Pe(Ut.H),4),20),c(ae(Pe(Ut.H),5),20),c(ae(Mi(Ut.H),0),62),Vw=Ut.db,c(ae(Pe(Ut.db),0),20),Hh=Ut.M}function min(e){var t;e.O||(e.O=!0,Xc(e,"type"),zH(e,"ecore.xml.type"),FH(e,_m),t=c(Uj((O0(),rf),_m),2023),Dn(wo(e.fb),e.b),Uo(e.b,kI,"AnyType",!1,!1,!0),wr(c(ae(Pe(e.b),0),38),e.wb.D,iP,null,0,-1,kI,!1,!1,!0,!1,!1,!1),wr(c(ae(Pe(e.b),1),38),e.wb.D,"any",null,0,-1,kI,!0,!0,!0,!1,!1,!0),wr(c(ae(Pe(e.b),2),38),e.wb.D,"anyAttribute",null,0,-1,kI,!1,!1,!0,!1,!1,!1),Uo(e.bb,zW,gft,!1,!1,!0),wr(c(ae(Pe(e.bb),0),38),e.gb,"data",null,0,1,zW,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.bb),1),38),e.gb,cke,null,1,1,zW,!1,!1,!0,!1,!0,!1),Uo(e.fb,OI,pft,!1,!1,!0),wr(c(ae(Pe(e.fb),0),38),t.gb,"rawValue",null,0,1,OI,!0,!0,!0,!1,!0,!0),wr(c(ae(Pe(e.fb),1),38),t.a,PC,null,0,1,OI,!0,!0,!0,!1,!0,!0),Hi(c(ae(Pe(e.fb),2),20),e.wb.q,null,"instanceType",1,1,OI,!1,!1,!0,!1,!1,!1,!1),Uo(e.qb,DCe,mft,!1,!1,!0),wr(c(ae(Pe(e.qb),0),38),e.wb.D,iP,null,0,-1,null,!1,!1,!0,!1,!1,!1),Hi(c(ae(Pe(e.qb),1),20),e.wb.ab,null,"xMLNSPrefixMap",0,-1,null,!0,!1,!0,!0,!1,!1,!1),Hi(c(ae(Pe(e.qb),2),20),e.wb.ab,null,"xSISchemaLocation",0,-1,null,!0,!1,!0,!0,!1,!1,!1),wr(c(ae(Pe(e.qb),3),38),e.gb,"cDATA",null,0,-2,null,!0,!0,!0,!1,!1,!0),wr(c(ae(Pe(e.qb),4),38),e.gb,"comment",null,0,-2,null,!0,!0,!0,!1,!1,!0),Hi(c(ae(Pe(e.qb),5),20),e.bb,null,Mft,0,-2,null,!0,!0,!0,!0,!1,!1,!0),wr(c(ae(Pe(e.qb),6),38),e.gb,Toe,null,0,-2,null,!0,!0,!0,!1,!1,!0),fi(e.a,Br,"AnySimpleType",!0),fi(e.c,st,"AnyURI",!0),fi(e.d,Z(Bl,1),"Base64Binary",!0),fi(e.e,Sl,"Boolean",!0),fi(e.f,cr,"BooleanObject",!0),fi(e.g,Bl,"Byte",!0),fi(e.i,Sk,"ByteObject",!0),fi(e.j,st,"Date",!0),fi(e.k,st,"DateTime",!0),fi(e.n,lce,"Decimal",!0),fi(e.o,is,"Double",!0),fi(e.p,Sr,"DoubleObject",!0),fi(e.q,st,"Duration",!0),fi(e.s,Vu,"ENTITIES",!0),fi(e.r,Vu,"ENTITIESBase",!0),fi(e.t,st,Oke,!0),fi(e.u,Sx,"Float",!0),fi(e.v,$S,"FloatObject",!0),fi(e.w,st,"GDay",!0),fi(e.B,st,"GMonth",!0),fi(e.A,st,"GMonthDay",!0),fi(e.C,st,"GYear",!0),fi(e.D,st,"GYearMonth",!0),fi(e.F,Z(Bl,1),"HexBinary",!0),fi(e.G,st,"ID",!0),fi(e.H,st,"IDREF",!0),fi(e.J,Vu,"IDREFS",!0),fi(e.I,Vu,"IDREFSBase",!0),fi(e.K,Hn,"Int",!0),fi(e.M,f3,"Integer",!0),fi(e.L,Pr,"IntObject",!0),fi(e.P,st,"Language",!0),fi(e.Q,Kw,"Long",!0),fi(e.R,_w,"LongObject",!0),fi(e.S,st,"Name",!0),fi(e.T,st,vU,!0),fi(e.U,f3,"NegativeInteger",!0),fi(e.V,st,Tke,!0),fi(e.X,Vu,"NMTOKENS",!0),fi(e.W,Vu,"NMTOKENSBase",!0),fi(e.Y,f3,"NonNegativeInteger",!0),fi(e.Z,f3,"NonPositiveInteger",!0),fi(e.$,st,"NormalizedString",!0),fi(e._,st,"NOTATION",!0),fi(e.ab,st,"PositiveInteger",!0),fi(e.cb,st,"QName",!0),fi(e.db,G3,"Short",!0),fi(e.eb,Dw,"ShortObject",!0),fi(e.gb,st,Jye,!0),fi(e.hb,st,"Time",!0),fi(e.ib,st,"Token",!0),fi(e.jb,G3,"UnsignedByte",!0),fi(e.kb,Dw,"UnsignedByteObject",!0),fi(e.lb,Kw,"UnsignedInt",!0),fi(e.mb,_w,"UnsignedIntObject",!0),fi(e.nb,f3,"UnsignedLong",!0),fi(e.ob,Hn,"UnsignedShort",!0),fi(e.pb,Pr,"UnsignedShortObject",!0),zwe(e,_m),bin(e))}function Fye(e,t,n,i){var r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt,$t,dn,ii,nr,Yl,po,ta,Q3,l0,Bf,tg,La,iO,mM,ng,fh,u0,Xm,Km,rO,Ym,Zm,ig,Tx;if(i.Zg()||it(nt(Ae(t,(Pn(),wW)))))return Mt(),Mt(),Is;if(Ze=(!t.a&&(t.a=new Le(Nn,t,10,11)),t.a).i!=0,vt=zUt(t),wt=!vt.dc(),Ze||wt){if(r=c(Ae(t,gx),144),!r)throw K(new Xh("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if(Ym=Bge(r,(ak(),DW)),sZe(t),!Ze&&wt&&!Ym)return Mt(),Mt(),Is;if(fe=new Qe,Se(Ae(t,P3))===Se((I1(),t0))&&(Bge(r,_W)||Bge(r,NW))){if(it(nt(Ae(t,p9))))throw K(new Xh("Topdown layout cannot be used together with hierarchy handling."));for(Q3=drt(e,t),l0=new _i,Os(l0,(!t.a&&(t.a=new Le(Nn,t,10,11)),t.a));l0.b!=0;)po=c(l0.b==0?null:(pn(l0.b!=0),wa(l0,l0.a.a)),19),sZe(po),rO=Se(Ae(po,P3))===Se(YE),rO||ma(po,Jk)&&!Zme(r,Ae(po,gx))?(G=Fye(e,po,n,i),Or(fe,G),ri(po,P3,YE),Nrt(po)):Os(l0,(!po.a&&(po.a=new Le(Nn,po,10,11)),po.a))}else{if(Q3=(!t.a&&(t.a=new Le(Nn,t,10,11)),t.a).i,it(nt(Ae(t,p9)))){if(Zm=i.dh(1),Zm.Tg(fut,1),Ae(t,Xk)==null)throw K(new Xh(t.k+" has not been assigned a top-down node type."));if(c(Ae(t,Xk),283)==(X4(),wx)||c(Ae(t,Xk),283)==MW)for(oe=new ln((!t.a&&(t.a=new Le(Nn,t,10,11)),t.a));oe.e!=oe.i.gc();)Y=c(fn(oe),19),Yl=c(Ae(Y,gx),144),tg=c(Ae(Y,$h),100),(!Y.a&&(Y.a=new Le(Nn,Y,10,11)),Y.a).i>0&&cD(Yl.f),Ae(Y,yW)!=null&&(!Y.a&&(Y.a=new Le(Nn,Y,10,11)),!!Y.a)&&(!Y.a&&(Y.a=new Le(Nn,Y,10,11)),Y.a).i>0?(d=c(Ae(Y,yW),525),Km=d.Sg(Y),Fb(Y,p.Math.max(Y.g,Km.a+tg.b+tg.c),p.Math.max(Y.f,Km.b+tg.d+tg.a))):(!Y.a&&(Y.a=new Le(Nn,Y,10,11)),Y.a).i!=0&&(Km=new He(ge(be(Ae(Y,px))),ge(be(Ae(Y,px)))/ge(be(Ae(Y,g9)))),Fb(Y,p.Math.max(Y.g,Km.a+tg.b+tg.c),p.Math.max(Y.f,Km.b+tg.d+tg.a)));if(Bf=c(Ae(t,$h),100),L=t.g-(Bf.b+Bf.c),A=t.f-(Bf.d+Bf.a),Zm.ah("Available Child Area: ("+L+"|"+A+")"),ri(t,h9,L/A),uZe(t,r,i.dh(Q3)),c(Ae(t,Xk),283)==MW&&(lre(t),Fb(t,Bf.b+ge(be(Ae(t,fx)))+Bf.c,Bf.d+ge(be(Ae(t,ax)))+Bf.a)),Zm.ah("Executed layout algorithm: "+qn(Ae(t,Jk))+" on node "+t.k),c(Ae(t,Xk),283)==wx){if(L<0||A<0)throw K(new Xh("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(ma(t,fx)||ma(t,ax)||lre(t),F=ge(be(Ae(t,fx))),R=ge(be(Ae(t,ax))),Zm.ah("Desired Child Area: ("+F+"|"+R+")"),iO=L/F,mM=A/R,La=p.Math.min(iO,p.Math.min(mM,ge(be(Ae(t,tvt))))),ri(t,xW,La),Zm.ah(t.k+" -- Local Scale Factor (X|Y): ("+iO+"|"+mM+")"),we=c(Ae(t,XP),24),o=0,a=0,La<iO&&(we.Gc((xm(),GE))?o=(L/2-F*La/2)/La:we.Gc(QE)&&(o=(L-F*La)/La)),La<mM&&(we.Gc((xm(),JE))?a=(A/2-R*La/2)/La:we.Gc(UE)&&(a=(A-R*La)/La)),ig=o+(Bf.b/La-Bf.b),Tx=a+(Bf.d/La-Bf.d),Zm.ah("Shift: ("+ig+"|"+Tx+")"),ta=new ln((!t.a&&(t.a=new Le(Nn,t,10,11)),t.a));ta.e!=ta.i.gc();)po=c(fn(ta),19),Dc(po,po.i+ig),Dl(po,po.j+Tx);for(Me=new ln((!t.b&&(t.b=new Le($i,t,12,3)),t.b));Me.e!=Me.i.gc();){for(Ne=c(fn(Me),74),fh=new ln((!Ne.a&&(Ne.a=new Le(Qi,Ne,6,6)),Ne.a));fh.e!=fh.i.gc();)for(ng=c(fn(fh),171),B_(ng,ng.j+ig,ng.k+Tx),$_(ng,ng.b+ig,ng.c+Tx),v=new ln((!ng.a&&(ng.a=new Nr(ea,ng,5)),ng.a));v.e!=v.i.gc();)b=c(fn(v),373),CZ(b,b.a+ig,b.b+Tx);for(nr=new ln((!Ne.n&&(Ne.n=new Le(Bo,Ne,1,7)),Ne.n));nr.e!=nr.i.gc();)ii=c(fn(nr),158),ha(ii,ii.i+ig,ii.j+Tx);for(dn=c(Ae(Ne,I3),79),$t=Ln(dn,0);$t.b!=$t.d.c;)Pt=c(_n($t),8),Pt.a+=ig,Pt.b+=Tx;ri(Ne,I3,dn)}}Zm.Ug()}for(T=new ln((!t.a&&(t.a=new Le(Nn,t,10,11)),t.a));T.e!=T.i.gc();)k=c(fn(T),19),G=Fye(e,k,n,i),Or(fe,G),Nrt(k)}if(i.Zg())return Mt(),Mt(),Is;for(Xm=new J(fe);Xm.a<Xm.c.c.length;)u0=c(U(Xm),74),ri(u0,wW,(zt(),!0));return it(nt(Ae(t,p9)))||uZe(t,r,i.dh(Q3)),YKt(fe),wt&&Ym?vt:(Mt(),Mt(),Is)}else return Mt(),Mt(),Is}function e3(e,t){var n,i;return H3||(H3=new xn,k9=new xn,i=(vi(),vi(),new zu(4)),XD(i,`	
\r\r  `),lo(H3,Qoe,i),lo(k9,Qoe,Av(i)),i=new zu(4),XD(i,Nft),lo(H3,GC,i),lo(k9,GC,Av(i)),i=new zu(4),XD(i,Nft),lo(H3,GC,i),lo(k9,GC,Av(i)),i=new zu(4),XD(i,_ft),_v(i,c(Nc(H3,GC),122)),lo(H3,Goe,i),lo(k9,Goe,Av(i)),i=new zu(4),XD(i,"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),lo(H3,Uoe,i),lo(k9,Uoe,Av(i)),i=new zu(4),XD(i,_ft),Pc(i,95,95),Pc(i,58,58),lo(H3,Joe,i),lo(k9,Joe,Av(i))),n=c(Nc(t?H3:k9,e),140),n}function Kot(e){Bb(e,new ym(DY(p_(Ib(Db(Pb(Lb(new p1,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 rK),Qt),Li((ak(),Kae),ee(Z(bI,1),Re,235,0,[DW,mI,pI,Xae,_W,NW]))))),Fe(e,Qt,a5e,Ke(qle)),Fe(e,Qt,f5e,Ke(ASe)),Fe(e,Qt,h5e,Ke(NP)),Fe(e,Qt,d5e,Ke(Nf)),Fe(e,Qt,Yre,Ke(C3)),Fe(e,Qt,zse,Ke(Fm)),Fe(e,Qt,g5e,Ke(rx)),Fe(e,Qt,p5e,Ke(n9)),Fe(e,Qt,m5e,Ke(i9)),Fe(e,Qt,b5e,Ke(Hle)),Fe(e,Qt,kw,Ke(qm)),Fe(e,Qt,w5e,Ke(Gle)),Fe(e,Qt,v5e,Ke(vE)),Fe(e,Qt,x5e,Ke(PJ)),Fe(e,Qt,q3e,Ke(AP)),Fe(e,Qt,G3e,Ke(ix)),Fe(e,Qt,H3e,Ke(op)),Fe(e,Qt,Q3e,Ke(sx)),Fe(e,Qt,zL,ze(0)),Fe(e,Qt,U3e,Ke(t9)),Fe(e,Qt,J3e,Ke(MSe)),Fe(e,Qt,W3e,Ke(qk)),Fe(e,Qt,G1,Ke(BSe)),Fe(e,Qt,PQ,Ke(_Se)),Fe(e,Qt,IQ,Ke(DSe)),Fe(e,Qt,CC,Ke(Ule)),Fe(e,Qt,kse,Ke(LSe)),Fe(e,Qt,Ose,Ke(PSe)),Fe(e,Qt,RQ,Ke(IJ)),Fe(e,Qt,$Q,Ke(Jle)),Fe(e,Qt,BQ,Ke(RSe)),Fe(e,Qt,zQ,Ke(ISe)),Fe(e,Qt,jse,Ke($Se)),Fe(e,Qt,Sse,Ke(wSe)),Fe(e,Qt,Tse,Ke($le)),Fe(e,Qt,Cse,Ke(AJ)),Fe(e,Qt,Ese,Ke(Ble)),Fe(e,Qt,mse,Ke(qw)),Fe(e,Qt,bse,Ke(wE)),Fe(e,Qt,_Q,Ke(Ile)),Fe(e,Qt,DQ,Ke(cSe)),Fe(e,Qt,qL,Ke(Ppt)),Fe(e,Qt,HL,Ke(Ipt)),Fe(e,Qt,GL,Ke(Lpt)),Fe(e,Qt,QL,Ke(Dpt)),Fe(e,Qt,jw,NSe),Fe(e,Qt,Ow,jSe),Fe(e,Qt,KL,rSe),Fe(e,Qt,y5e,0),Fe(e,Qt,OQ,ze(1)),Fe(e,Qt,gS,dS),Fe(e,Qt,k5e,Ke(zm)),Fe(e,Qt,jQ,Ke(fr)),Fe(e,Qt,O5e,Ke(e9)),Fe(e,Qt,YL,Ke(Opt)),Fe(e,Qt,j5e,Ke(vd)),Fe(e,Qt,qQ,Ke(Kv)),Fe(e,Qt,kC,(zt(),!0)),Fe(e,Qt,S5e,Ke(Yv)),Fe(e,Qt,T5e,Ke($m)),Fe(e,Qt,i3,Ke(Bm)),Fe(e,Qt,xk,Ke(LJ)),Fe(e,Qt,bS,Ke(Fle)),Fe(e,Qt,Fse,iSe),Fe(e,Qt,wS,Ke(Fw)),Fe(e,Qt,C5e,Ke(_J)),Fe(e,Qt,vS,Ke(tx)),Fe(e,Qt,E5e,Ke(Mpt)),Fe(e,Qt,M5e,Ke(CSe)),Fe(e,Qt,A5e,TSe),Fe(e,Qt,N5e,Ke(Tpt)),Fe(e,Qt,_5e,Ke(Cpt)),Fe(e,Qt,D5e,Ke(Ept)),Fe(e,Qt,L5e,Ke(Spt)),Fe(e,Qt,M3e,Ke(Qle)),Fe(e,Qt,VL,Ke(MJ)),Fe(e,Qt,cse,Ke(MP)),Fe(e,Qt,E3e,Ke(xE)),Fe(e,Qt,N3e,Ke(Ro)),Fe(e,Qt,WL,Ke(Fk)),Fe(e,Qt,TC,Ke(pE)),Fe(e,Qt,L3e,Ke(YS)),Fe(e,Qt,B3e,Ke(eSe)),Fe(e,Qt,hse,Ke(Dle)),Fe(e,Qt,AQ,Ke(EP)),Fe(e,Qt,fse,Ke(Lle)),Fe(e,Qt,j3e,Ke(vSe)),Fe(e,Qt,S3e,Ke(xSe)),Fe(e,Qt,MQ,Ke(dSe)),Fe(e,Qt,r3,Ke(DJ)),Fe(e,Qt,gse,Ke(zle)),Fe(e,Qt,O3e,Ke(Rle)),Fe(e,Qt,pse,Ke(kSe)),Fe(e,Qt,z3e,Ke(oSe)),Fe(e,Qt,F3e,Ke(Ple)),Fe(e,Qt,HQ,Ke(_le)),Fe(e,Qt,dse,Ke(ySe)),Fe(e,Qt,V3e,Ke(OJ)),Fe(e,Qt,X3e,Ke(Xje)),Fe(e,Qt,vse,Ke(kJ)),Fe(e,Qt,LQ,Ke(aSe)),Fe(e,Qt,xse,Ke(uSe)),Fe(e,Qt,yse,Ke(fSe)),Fe(e,Qt,yk,Ke(ZS)),Fe(e,Qt,P5e,Ke(ho)),Fe(e,Qt,I5e,Ke(Xg)),Fe(e,Qt,R5e,Ke(xd)),Fe(e,Qt,FL,Ke(T3)),Fe(e,Qt,ase,Ke(tSe)),Fe(e,Qt,$5e,Ke(Kg)),Fe(e,Qt,B5e,Ke(fE)),Fe(e,Qt,z5e,Ke(EJ)),Fe(e,Qt,F5e,Ke(Hw)),Fe(e,Qt,qse,Ke(SSe)),Fe(e,Qt,Hse,Ke(Zv)),Fe(e,Qt,sse,Ke(pSe)),Fe(e,Qt,ose,Ke(mSe)),Fe(e,Qt,GQ,Ke(nx)),Fe(e,Qt,T3e,Ke(Ele)),Fe(e,Qt,lse,Ke(bSe)),Fe(e,Qt,K3e,Ke(CJ)),Fe(e,Qt,Y3e,Ke(TJ)),Fe(e,Qt,Gse,Ke(NJ)),Fe(e,Qt,use,Ke(gSe)),Fe(e,Qt,NQ,Ke(bE)),Fe(e,Qt,q5e,Ke(_P)),Fe(e,Qt,k3e,Ke(nSe)),Fe(e,Qt,C3e,Ke(ESe)),Fe(e,Qt,wse,Ke(sSe)),Fe(e,Qt,P3e,Ke(xpt)),Fe(e,Qt,I3e,Ke(ypt)),Fe(e,Qt,_3e,Ke(jpt)),Fe(e,Qt,R3e,Ke(kpt)),Fe(e,Qt,QQ,Ke(hSe)),Fe(e,Qt,D3e,Ke(mE)),Fe(e,Qt,$3e,Ke(SJ)),Fe(e,Qt,FQ,Ke(t1)),Fe(e,Qt,e5e,Ke(Ale)),Fe(e,Qt,Ase,Ke(CP)),Fe(e,Qt,Nse,Ke(Mle)),Fe(e,Qt,XL,Ke(jJ)),Fe(e,Qt,Mse,Ke(hE)),Fe(e,Qt,Z3e,Ke(Nle)),Fe(e,Qt,_se,Ke(Xv)),Fe(e,Qt,Dse,Ke(gE)),Fe(e,Qt,Lse,Ke(vpt)),Fe(e,Qt,t5e,Ke(zk)),Fe(e,Qt,n5e,Ke(dE)),Fe(e,Qt,i5e,Ke(Zje)),Fe(e,Qt,Pse,Ke(Kje)),Fe(e,Qt,Ise,Ke(Yje)),Fe(e,Qt,A3e,Ke(lSe))}function bin(e){Rn(e.a,Yn,ee(Z(st,1),Ge,2,6,[di,"anySimpleType"])),Rn(e.b,Yn,ee(Z(st,1),Ge,2,6,[di,"anyType",Ja,iP])),Rn(c(ae(Pe(e.b),0),38),Yn,ee(Z(st,1),Ge,2,6,[Ja,Boe,di,":mixed"])),Rn(c(ae(Pe(e.b),1),38),Yn,ee(Z(st,1),Ge,2,6,[Ja,Boe,yke,Foe,di,":1",bft,"lax"])),Rn(c(ae(Pe(e.b),2),38),Yn,ee(Z(st,1),Ge,2,6,[Ja,dft,yke,Foe,di,":2",bft,"lax"])),Rn(e.c,Yn,ee(Z(st,1),Ge,2,6,[di,"anyURI",Va,ih])),Rn(e.d,Yn,ee(Z(st,1),Ge,2,6,[di,"base64Binary",Va,ih])),Rn(e.e,Yn,ee(Z(st,1),Ge,2,6,[di,hk,Va,ih])),Rn(e.f,Yn,ee(Z(st,1),Ge,2,6,[di,"boolean:Object",xs,hk])),Rn(e.g,Yn,ee(Z(st,1),Ge,2,6,[di,RC])),Rn(e.i,Yn,ee(Z(st,1),Ge,2,6,[di,"byte:Object",xs,RC])),Rn(e.j,Yn,ee(Z(st,1),Ge,2,6,[di,"date",Va,ih])),Rn(e.k,Yn,ee(Z(st,1),Ge,2,6,[di,"dateTime",Va,ih])),Rn(e.n,Yn,ee(Z(st,1),Ge,2,6,[di,"decimal",Va,ih])),Rn(e.o,Yn,ee(Z(st,1),Ge,2,6,[di,$C,Va,ih])),Rn(e.p,Yn,ee(Z(st,1),Ge,2,6,[di,"double:Object",xs,$C])),Rn(e.q,Yn,ee(Z(st,1),Ge,2,6,[di,"duration",Va,ih])),Rn(e.s,Yn,ee(Z(st,1),Ge,2,6,[di,"ENTITIES",xs,wft,kke,"1"])),Rn(e.r,Yn,ee(Z(st,1),Ge,2,6,[di,wft,zoe,Oke])),Rn(e.t,Yn,ee(Z(st,1),Ge,2,6,[di,Oke,xs,vU])),Rn(e.u,Yn,ee(Z(st,1),Ge,2,6,[di,BC,Va,ih])),Rn(e.v,Yn,ee(Z(st,1),Ge,2,6,[di,"float:Object",xs,BC])),Rn(e.w,Yn,ee(Z(st,1),Ge,2,6,[di,"gDay",Va,ih])),Rn(e.B,Yn,ee(Z(st,1),Ge,2,6,[di,"gMonth",Va,ih])),Rn(e.A,Yn,ee(Z(st,1),Ge,2,6,[di,"gMonthDay",Va,ih])),Rn(e.C,Yn,ee(Z(st,1),Ge,2,6,[di,"gYear",Va,ih])),Rn(e.D,Yn,ee(Z(st,1),Ge,2,6,[di,"gYearMonth",Va,ih])),Rn(e.F,Yn,ee(Z(st,1),Ge,2,6,[di,"hexBinary",Va,ih])),Rn(e.G,Yn,ee(Z(st,1),Ge,2,6,[di,"ID",xs,vU])),Rn(e.H,Yn,ee(Z(st,1),Ge,2,6,[di,"IDREF",xs,vU])),Rn(e.J,Yn,ee(Z(st,1),Ge,2,6,[di,"IDREFS",xs,vft,kke,"1"])),Rn(e.I,Yn,ee(Z(st,1),Ge,2,6,[di,vft,zoe,"IDREF"])),Rn(e.K,Yn,ee(Z(st,1),Ge,2,6,[di,zC])),Rn(e.M,Yn,ee(Z(st,1),Ge,2,6,[di,jke])),Rn(e.L,Yn,ee(Z(st,1),Ge,2,6,[di,"int:Object",xs,zC])),Rn(e.P,Yn,ee(Z(st,1),Ge,2,6,[di,"language",xs,qoe,Hoe,xft])),Rn(e.Q,Yn,ee(Z(st,1),Ge,2,6,[di,FC])),Rn(e.R,Yn,ee(Z(st,1),Ge,2,6,[di,"long:Object",xs,FC])),Rn(e.S,Yn,ee(Z(st,1),Ge,2,6,[di,"Name",xs,qoe,Hoe,Ske])),Rn(e.T,Yn,ee(Z(st,1),Ge,2,6,[di,vU,xs,"Name",Hoe,yft])),Rn(e.U,Yn,ee(Z(st,1),Ge,2,6,[di,"negativeInteger",xs,kft,lP,"-1"])),Rn(e.V,Yn,ee(Z(st,1),Ge,2,6,[di,Tke,xs,qoe,Hoe,"\\c+"])),Rn(e.X,Yn,ee(Z(st,1),Ge,2,6,[di,"NMTOKENS",xs,Oft,kke,"1"])),Rn(e.W,Yn,ee(Z(st,1),Ge,2,6,[di,Oft,zoe,Tke])),Rn(e.Y,Yn,ee(Z(st,1),Ge,2,6,[di,Cke,xs,jke,uP,"0"])),Rn(e.Z,Yn,ee(Z(st,1),Ge,2,6,[di,kft,xs,jke,lP,"0"])),Rn(e.$,Yn,ee(Z(st,1),Ge,2,6,[di,jft,xs,fre,Va,"replace"])),Rn(e._,Yn,ee(Z(st,1),Ge,2,6,[di,"NOTATION",Va,ih])),Rn(e.ab,Yn,ee(Z(st,1),Ge,2,6,[di,"positiveInteger",xs,Cke,uP,"1"])),Rn(e.bb,Yn,ee(Z(st,1),Ge,2,6,[di,"processingInstruction_._type",Ja,"empty"])),Rn(c(ae(Pe(e.bb),0),38),Yn,ee(Z(st,1),Ge,2,6,[Ja,pU,di,"data"])),Rn(c(ae(Pe(e.bb),1),38),Yn,ee(Z(st,1),Ge,2,6,[Ja,pU,di,cke])),Rn(e.cb,Yn,ee(Z(st,1),Ge,2,6,[di,"QName",Va,ih])),Rn(e.db,Yn,ee(Z(st,1),Ge,2,6,[di,qC])),Rn(e.eb,Yn,ee(Z(st,1),Ge,2,6,[di,"short:Object",xs,qC])),Rn(e.fb,Yn,ee(Z(st,1),Ge,2,6,[di,"simpleAnyType",Ja,rP])),Rn(c(ae(Pe(e.fb),0),38),Yn,ee(Z(st,1),Ge,2,6,[di,":3",Ja,rP])),Rn(c(ae(Pe(e.fb),1),38),Yn,ee(Z(st,1),Ge,2,6,[di,":4",Ja,rP])),Rn(c(ae(Pe(e.fb),2),20),Yn,ee(Z(st,1),Ge,2,6,[di,":5",Ja,rP])),Rn(e.gb,Yn,ee(Z(st,1),Ge,2,6,[di,fre,Va,"preserve"])),Rn(e.hb,Yn,ee(Z(st,1),Ge,2,6,[di,"time",Va,ih])),Rn(e.ib,Yn,ee(Z(st,1),Ge,2,6,[di,qoe,xs,jft,Va,ih])),Rn(e.jb,Yn,ee(Z(st,1),Ge,2,6,[di,Sft,lP,"255",uP,"0"])),Rn(e.kb,Yn,ee(Z(st,1),Ge,2,6,[di,"unsignedByte:Object",xs,Sft])),Rn(e.lb,Yn,ee(Z(st,1),Ge,2,6,[di,Tft,lP,"4294967295",uP,"0"])),Rn(e.mb,Yn,ee(Z(st,1),Ge,2,6,[di,"unsignedInt:Object",xs,Tft])),Rn(e.nb,Yn,ee(Z(st,1),Ge,2,6,[di,"unsignedLong",xs,Cke,lP,Cft,uP,"0"])),Rn(e.ob,Yn,ee(Z(st,1),Ge,2,6,[di,Eft,lP,"65535",uP,"0"])),Rn(e.pb,Yn,ee(Z(st,1),Ge,2,6,[di,"unsignedShort:Object",xs,Eft])),Rn(e.qb,Yn,ee(Z(st,1),Ge,2,6,[di,"",Ja,iP])),Rn(c(ae(Pe(e.qb),0),38),Yn,ee(Z(st,1),Ge,2,6,[Ja,Boe,di,":mixed"])),Rn(c(ae(Pe(e.qb),1),20),Yn,ee(Z(st,1),Ge,2,6,[Ja,pU,di,"xmlns:prefix"])),Rn(c(ae(Pe(e.qb),2),20),Yn,ee(Z(st,1),Ge,2,6,[Ja,pU,di,"xsi:schemaLocation"])),Rn(c(ae(Pe(e.qb),3),38),Yn,ee(Z(st,1),Ge,2,6,[Ja,mU,di,"cDATA",bU,sP])),Rn(c(ae(Pe(e.qb),4),38),Yn,ee(Z(st,1),Ge,2,6,[Ja,mU,di,"comment",bU,sP])),Rn(c(ae(Pe(e.qb),5),20),Yn,ee(Z(st,1),Ge,2,6,[Ja,mU,di,Mft,bU,sP])),Rn(c(ae(Pe(e.qb),6),38),Yn,ee(Z(st,1),Ge,2,6,[Ja,mU,di,Toe,bU,sP]))}function Xn(e){return jt("_UI_EMFDiagnostic_marker",e)?"EMF Problem":jt("_UI_CircularContainment_diagnostic",e)?"An object may not circularly contain itself":jt(fat,e)?"Wrong character.":jt(hat,e)?"Invalid reference number.":jt(oU,e)?"A character is required after \\.":jt(Doe,e)?"'?' is not expected.  '(?:' or '(?=' or '(?!' or '(?<' or '(?#' or '(?>'?":jt(dat,e)?"'(?<' or '(?<!' is expected.":jt(gat,e)?"A comment is not terminated.":jt(Nm,e)?"')' is expected.":jt(lke,e)?"Unexpected end of the pattern in a modifier group.":jt(pat,e)?"':' is expected.":jt(mat,e)?"Unexpected end of the pattern in a conditional group.":jt(bat,e)?"A back reference or an anchor or a lookahead or a look-behind is expected in a conditional pattern.":jt(wat,e)?"There are more than three choices in a conditional group.":jt(vat,e)?"A character in U+0040-U+005f must follow \\c.":jt(xat,e)?"A '{' is required before a character category.":jt(yat,e)?"A property name is not closed by '}'.":jt(uke,e)?"Unexpected meta character.":jt(Loe,e)?"Unknown property.":jt(ake,e)?"A POSIX character class must be closed by ':]'.":jt(cU,e)?"Unexpected end of the pattern in a character class.":jt(kat,e)?"Unknown name for a POSIX character class.":jt("parser.cc.4",e)?"'-' is invalid here.":jt(Oat,e)?"']' is expected.":jt(fke,e)?"'[' is invalid in a character class.  Write '\\['.":jt(hke,e)?"']' is invalid in a character class.  Write '\\]'.":jt(Poe,e)?"'-' is an invalid character range. Write '\\-'.":jt(jat,e)?"'[' is expected.":jt(Sat,e)?"')' or '-[' or '+[' or '&[' is expected.":jt(Tat,e)?"The range end code point is less than the start code point.":jt(Jg,e)?"Invalid Unicode hex notation.":jt(Cat,e)?"Overflow in a hex notation.":jt(Eat,e)?"'\\x{' must be closed by '}'.":jt(Mat,e)?"Invalid Unicode code point.":jt(Aat,e)?"An anchor must not be here.":jt(Ca,e)?"This expression is not supported in the current option setting.":jt(Nat,e)?"Invalid quantifier. A digit is expected.":jt(_at,e)?"Invalid quantifier. Invalid quantity or a '}' is missing.":jt(Dat,e)?"Invalid quantifier. A digit or '}' is expected.":jt(Lat,e)?"Invalid quantifier. A min quantity must be <= a max quantity.":jt(dke,e)?"Invalid quantifier. A quantity value overflow.":jt("_UI_PackageRegistry_extensionpoint",e)?"Ecore Package Registry for Generated Packages":jt("_UI_DynamicPackageRegistry_extensionpoint",e)?"Ecore Package Registry for Dynamic Packages":jt("_UI_FactoryRegistry_extensionpoint",e)?"Ecore Factory Override Registry":jt("_UI_URIExtensionParserRegistry_extensionpoint",e)?"URI Extension Parser Registry":jt("_UI_URIProtocolParserRegistry_extensionpoint",e)?"URI Protocol Parser Registry":jt("_UI_URIContentParserRegistry_extensionpoint",e)?"URI Content Parser Registry":jt("_UI_ContentHandlerRegistry_extensionpoint",e)?"Content Handler Registry":jt("_UI_URIMappingRegistry_extensionpoint",e)?"URI Converter Mapping Registry":jt("_UI_PackageRegistryImplementation_extensionpoint",e)?"Ecore Package Registry Implementation":jt("_UI_ValidationDelegateRegistry_extensionpoint",e)?"Validation Delegate Registry":jt("_UI_SettingDelegateRegistry_extensionpoint",e)?"Feature Setting Delegate Factory Registry":jt("_UI_InvocationDelegateRegistry_extensionpoint",e)?"Operation Invocation Delegate Factory Registry":jt("_UI_EClassInterfaceNotAbstract_diagnostic",e)?"A class that is an interface must also be abstract":jt("_UI_EClassNoCircularSuperTypes_diagnostic",e)?"A class may not be a super type of itself":jt("_UI_EClassNotWellFormedMapEntryNoInstanceClassName_diagnostic",e)?"A class that inherits from a map entry class must have instance class name 'java.util.Map$Entry'":jt("_UI_EReferenceOppositeOfOppositeInconsistent_diagnostic",e)?"The opposite of the opposite may not be a reference different from this one":jt("_UI_EReferenceOppositeNotFeatureOfType_diagnostic",e)?"The opposite must be a feature of the reference's type":jt("_UI_EReferenceTransientOppositeNotTransient_diagnostic",e)?"The opposite of a transient reference must be transient if it is proxy resolving":jt("_UI_EReferenceOppositeBothContainment_diagnostic",e)?"The opposite of a containment reference must not be a containment reference":jt("_UI_EReferenceConsistentUnique_diagnostic",e)?"A containment or bidirectional reference must be unique if its upper bound is different from 1":jt("_UI_ETypedElementNoType_diagnostic",e)?"The typed element must have a type":jt("_UI_EAttributeNoDataType_diagnostic",e)?"The generic attribute type must not refer to a class":jt("_UI_EReferenceNoClass_diagnostic",e)?"The generic reference type must not refer to a data type":jt("_UI_EGenericTypeNoTypeParameterAndClassifier_diagnostic",e)?"A generic type can't refer to both a type parameter and a classifier":jt("_UI_EGenericTypeNoClass_diagnostic",e)?"A generic super type must refer to a class":jt("_UI_EGenericTypeNoTypeParameterOrClassifier_diagnostic",e)?"A generic type in this context must refer to a classifier or a type parameter":jt("_UI_EGenericTypeBoundsOnlyForTypeArgument_diagnostic",e)?"A generic type may have bounds only when used as a type argument":jt("_UI_EGenericTypeNoUpperAndLowerBound_diagnostic",e)?"A generic type must not have both a lower and an upper bound":jt("_UI_EGenericTypeNoTypeParameterOrClassifierAndBound_diagnostic",e)?"A generic type with bounds must not also refer to a type parameter or classifier":jt("_UI_EGenericTypeNoArguments_diagnostic",e)?"A generic type may have arguments only if it refers to a classifier":jt("_UI_EGenericTypeOutOfScopeTypeParameter_diagnostic",e)?"A generic type may only refer to a type parameter that is in scope":e}function win(e){var t,n,i,r,o,a,d,b,v,k,T,A,L,R,F;e.r||(e.r=!0,Xc(e,"graph"),zH(e,"graph"),FH(e,NS),$D(e.o,"T"),Dn(wo(e.a),e.p),Dn(wo(e.f),e.a),Dn(wo(e.n),e.f),Dn(wo(e.g),e.n),Dn(wo(e.c),e.n),Dn(wo(e.i),e.c),Dn(wo(e.j),e.c),Dn(wo(e.d),e.f),Dn(wo(e.e),e.a),Uo(e.p,Lin,Jct,!0,!0,!1),R=By(e.p,e.p,"setProperty"),F=KXe(R),v=T1(e.o),k=(n=(i=new _b,i),n),Dn((!v.d&&(v.d=new Nr(Ks,v,1)),v.d),k),T=Lee(F),dve(k,T),AG(R,v,eke),v=Lee(F),AG(R,v,PC),R=By(e.p,null,"getProperty"),F=KXe(R),v=T1(e.o),k=Lee(F),Dn((!v.d&&(v.d=new Nr(Ks,v,1)),v.d),k),AG(R,v,eke),v=Lee(F),L=Th(R,v,null),L&&L.mj(),R=By(e.p,e.wb.e,"hasProperty"),v=T1(e.o),k=(r=(o=new _b,o),r),Dn((!v.d&&(v.d=new Nr(Ks,v,1)),v.d),k),AG(R,v,eke),R=By(e.p,e.p,"copyProperties"),fo(R,e.p,koe),R=By(e.p,null,"getAllProperties"),v=T1(e.wb.P),k=T1(e.o),Dn((!v.d&&(v.d=new Nr(Ks,v,1)),v.d),k),T=(a=(d=new _b,d),a),Dn((!k.d&&(k.d=new Nr(Ks,k,1)),k.d),T),k=T1(e.wb.M),Dn((!v.d&&(v.d=new Nr(Ks,v,1)),v.d),k),A=Th(R,v,null),A&&A.mj(),Uo(e.a,y9,zut,!0,!1,!0),Hi(c(ae(Pe(e.a),0),20),e.k,null,Yut,0,-1,y9,!1,!1,!0,!0,!1,!1,!1),Uo(e.f,hI,qut,!0,!1,!0),Hi(c(ae(Pe(e.f),0),20),e.g,c(ae(Pe(e.g),0),20),"labels",0,-1,hI,!1,!1,!0,!0,!1,!1,!1),wr(c(ae(Pe(e.f),1),38),e.wb._,Zut,null,0,1,hI,!1,!1,!0,!1,!0,!1),Uo(e.n,dI,"ElkShape",!0,!1,!0),wr(c(ae(Pe(e.n),0),38),e.wb.t,Ooe,lS,1,1,dI,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.n),1),38),e.wb.t,joe,lS,1,1,dI,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.n),2),38),e.wb.t,"x",lS,1,1,dI,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.n),3),38),e.wb.t,"y",lS,1,1,dI,!1,!1,!0,!1,!0,!1),R=By(e.n,null,"setDimensions"),fo(R,e.wb.t,joe),fo(R,e.wb.t,Ooe),R=By(e.n,null,"setLocation"),fo(R,e.wb.t,"x"),fo(R,e.wb.t,"y"),Uo(e.g,Bo,K4e,!1,!1,!0),Hi(c(ae(Pe(e.g),0),20),e.f,c(ae(Pe(e.f),0),20),Soe,0,1,Bo,!1,!1,!0,!1,!1,!1,!1),wr(c(ae(Pe(e.g),1),38),e.wb._,Toe,"",0,1,Bo,!1,!1,!0,!1,!0,!1),Uo(e.c,yn,Hut,!0,!1,!0),Hi(c(ae(Pe(e.c),0),20),e.d,c(ae(Pe(e.d),1),20),"outgoingEdges",0,-1,yn,!1,!1,!0,!1,!0,!1,!1),Hi(c(ae(Pe(e.c),1),20),e.d,c(ae(Pe(e.d),2),20),"incomingEdges",0,-1,yn,!1,!1,!0,!1,!0,!1,!1),Uo(e.i,Nn,Y4e,!1,!1,!0),Hi(c(ae(Pe(e.i),0),20),e.j,c(ae(Pe(e.j),0),20),"ports",0,-1,Nn,!1,!1,!0,!0,!1,!1,!1),Hi(c(ae(Pe(e.i),1),20),e.i,c(ae(Pe(e.i),2),20),Coe,0,-1,Nn,!1,!1,!0,!0,!1,!1,!1),Hi(c(ae(Pe(e.i),2),20),e.i,c(ae(Pe(e.i),1),20),Soe,0,1,Nn,!1,!1,!0,!1,!1,!1,!1),Hi(c(ae(Pe(e.i),3),20),e.d,c(ae(Pe(e.d),0),20),"containedEdges",0,-1,Nn,!1,!1,!0,!0,!1,!1,!1),wr(c(ae(Pe(e.i),4),38),e.wb.e,eat,null,0,1,Nn,!0,!0,!1,!1,!0,!0),Uo(e.j,hu,Z4e,!1,!1,!0),Hi(c(ae(Pe(e.j),0),20),e.i,c(ae(Pe(e.i),0),20),Soe,0,1,hu,!1,!1,!0,!1,!1,!1,!1),Uo(e.d,$i,X4e,!1,!1,!0),Hi(c(ae(Pe(e.d),0),20),e.i,c(ae(Pe(e.i),3),20),"containingNode",0,1,$i,!1,!1,!0,!1,!1,!1,!1),Hi(c(ae(Pe(e.d),1),20),e.c,c(ae(Pe(e.c),0),20),tke,0,-1,$i,!1,!1,!0,!1,!0,!1,!1),Hi(c(ae(Pe(e.d),2),20),e.c,c(ae(Pe(e.c),1),20),Eoe,0,-1,$i,!1,!1,!0,!1,!0,!1,!1),Hi(c(ae(Pe(e.d),3),20),e.e,c(ae(Pe(e.e),5),20),Moe,0,-1,$i,!1,!1,!0,!0,!1,!1,!1),wr(c(ae(Pe(e.d),4),38),e.wb.e,"hyperedge",null,0,1,$i,!0,!0,!1,!1,!0,!0),wr(c(ae(Pe(e.d),5),38),e.wb.e,eat,null,0,1,$i,!0,!0,!1,!1,!0,!0),wr(c(ae(Pe(e.d),6),38),e.wb.e,"selfloop",null,0,1,$i,!0,!0,!1,!1,!0,!0),wr(c(ae(Pe(e.d),7),38),e.wb.e,"connected",null,0,1,$i,!0,!0,!1,!1,!0,!0),Uo(e.b,ea,Fut,!1,!1,!0),wr(c(ae(Pe(e.b),0),38),e.wb.t,"x",lS,1,1,ea,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.b),1),38),e.wb.t,"y",lS,1,1,ea,!1,!1,!0,!1,!0,!1),R=By(e.b,null,"set"),fo(R,e.wb.t,"x"),fo(R,e.wb.t,"y"),Uo(e.e,Qi,Gut,!1,!1,!0),wr(c(ae(Pe(e.e),0),38),e.wb.t,"startX",null,0,1,Qi,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.e),1),38),e.wb.t,"startY",null,0,1,Qi,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.e),2),38),e.wb.t,"endX",null,0,1,Qi,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.e),3),38),e.wb.t,"endY",null,0,1,Qi,!1,!1,!0,!1,!0,!1),Hi(c(ae(Pe(e.e),4),20),e.b,null,nU,0,-1,Qi,!1,!1,!0,!0,!1,!1,!1),Hi(c(ae(Pe(e.e),5),20),e.d,c(ae(Pe(e.d),3),20),Soe,0,1,Qi,!1,!1,!0,!1,!1,!1,!1),Hi(c(ae(Pe(e.e),6),20),e.c,null,nke,0,1,Qi,!1,!1,!0,!1,!0,!1,!1),Hi(c(ae(Pe(e.e),7),20),e.c,null,ike,0,1,Qi,!1,!1,!0,!1,!0,!1,!1),Hi(c(ae(Pe(e.e),8),20),e.e,c(ae(Pe(e.e),9),20),rke,0,-1,Qi,!1,!1,!0,!1,!0,!1,!1),Hi(c(ae(Pe(e.e),9),20),e.e,c(ae(Pe(e.e),8),20),ske,0,-1,Qi,!1,!1,!0,!1,!0,!1,!1),wr(c(ae(Pe(e.e),10),38),e.wb._,Zut,null,0,1,Qi,!1,!1,!0,!1,!0,!1),R=By(e.e,null,"setStartLocation"),fo(R,e.wb.t,"x"),fo(R,e.wb.t,"y"),R=By(e.e,null,"setEndLocation"),fo(R,e.wb.t,"x"),fo(R,e.wb.t,"y"),Uo(e.k,Dm,"ElkPropertyToValueMapEntry",!1,!1,!1),v=T1(e.o),k=(b=(t=new _b,t),b),Dn((!v.d&&(v.d=new Nr(Ks,v,1)),v.d),k),_nt(c(ae(Pe(e.k),0),38),v,"key",Dm,!1,!1,!0,!1),wr(c(ae(Pe(e.k),1),38),e.s,PC,null,0,1,Dm,!1,!1,!0,!1,!0,!1),fi(e.o,Oae,"IProperty",!0),fi(e.s,Br,"PropertyValue",!0),zwe(e,NS))}function Yot(){Yot=W,ie=Ce(Bl,l3,30,Ps,15,1),ie[9]=35,ie[10]=19,ie[13]=19,ie[32]=51,ie[33]=49,ie[34]=33,Oe(ie,35,38,49),ie[38]=1,Oe(ie,39,45,49),Oe(ie,45,47,-71),ie[47]=49,Oe(ie,48,58,-71),ie[58]=61,ie[59]=49,ie[60]=1,ie[61]=49,ie[62]=33,Oe(ie,63,65,49),Oe(ie,65,91,-3),Oe(ie,91,93,33),ie[93]=1,ie[94]=33,ie[95]=-3,ie[96]=33,Oe(ie,97,123,-3),Oe(ie,123,183,33),ie[183]=-87,Oe(ie,184,192,33),Oe(ie,192,215,-19),ie[215]=33,Oe(ie,216,247,-19),ie[247]=33,Oe(ie,248,306,-19),Oe(ie,306,308,33),Oe(ie,308,319,-19),Oe(ie,319,321,33),Oe(ie,321,329,-19),ie[329]=33,Oe(ie,330,383,-19),ie[383]=33,Oe(ie,384,452,-19),Oe(ie,452,461,33),Oe(ie,461,497,-19),Oe(ie,497,500,33),Oe(ie,500,502,-19),Oe(ie,502,506,33),Oe(ie,506,536,-19),Oe(ie,536,592,33),Oe(ie,592,681,-19),Oe(ie,681,699,33),Oe(ie,699,706,-19),Oe(ie,706,720,33),Oe(ie,720,722,-87),Oe(ie,722,768,33),Oe(ie,768,838,-87),Oe(ie,838,864,33),Oe(ie,864,866,-87),Oe(ie,866,902,33),ie[902]=-19,ie[903]=-87,Oe(ie,904,907,-19),ie[907]=33,ie[908]=-19,ie[909]=33,Oe(ie,910,930,-19),ie[930]=33,Oe(ie,931,975,-19),ie[975]=33,Oe(ie,976,983,-19),Oe(ie,983,986,33),ie[986]=-19,ie[987]=33,ie[988]=-19,ie[989]=33,ie[990]=-19,ie[991]=33,ie[992]=-19,ie[993]=33,Oe(ie,994,1012,-19),Oe(ie,1012,1025,33),Oe(ie,1025,1037,-19),ie[1037]=33,Oe(ie,1038,1104,-19),ie[1104]=33,Oe(ie,1105,1117,-19),ie[1117]=33,Oe(ie,1118,1154,-19),ie[1154]=33,Oe(ie,1155,1159,-87),Oe(ie,1159,1168,33),Oe(ie,1168,1221,-19),Oe(ie,1221,1223,33),Oe(ie,1223,1225,-19),Oe(ie,1225,1227,33),Oe(ie,1227,1229,-19),Oe(ie,1229,1232,33),Oe(ie,1232,1260,-19),Oe(ie,1260,1262,33),Oe(ie,1262,1270,-19),Oe(ie,1270,1272,33),Oe(ie,1272,1274,-19),Oe(ie,1274,1329,33),Oe(ie,1329,1367,-19),Oe(ie,1367,1369,33),ie[1369]=-19,Oe(ie,1370,1377,33),Oe(ie,1377,1415,-19),Oe(ie,1415,1425,33),Oe(ie,1425,1442,-87),ie[1442]=33,Oe(ie,1443,1466,-87),ie[1466]=33,Oe(ie,1467,1470,-87),ie[1470]=33,ie[1471]=-87,ie[1472]=33,Oe(ie,1473,1475,-87),ie[1475]=33,ie[1476]=-87,Oe(ie,1477,1488,33),Oe(ie,1488,1515,-19),Oe(ie,1515,1520,33),Oe(ie,1520,1523,-19),Oe(ie,1523,1569,33),Oe(ie,1569,1595,-19),Oe(ie,1595,1600,33),ie[1600]=-87,Oe(ie,1601,1611,-19),Oe(ie,1611,1619,-87),Oe(ie,1619,1632,33),Oe(ie,1632,1642,-87),Oe(ie,1642,1648,33),ie[1648]=-87,Oe(ie,1649,1720,-19),Oe(ie,1720,1722,33),Oe(ie,1722,1727,-19),ie[1727]=33,Oe(ie,1728,1743,-19),ie[1743]=33,Oe(ie,1744,1748,-19),ie[1748]=33,ie[1749]=-19,Oe(ie,1750,1765,-87),Oe(ie,1765,1767,-19),Oe(ie,1767,1769,-87),ie[1769]=33,Oe(ie,1770,1774,-87),Oe(ie,1774,1776,33),Oe(ie,1776,1786,-87),Oe(ie,1786,2305,33),Oe(ie,2305,2308,-87),ie[2308]=33,Oe(ie,2309,2362,-19),Oe(ie,2362,2364,33),ie[2364]=-87,ie[2365]=-19,Oe(ie,2366,2382,-87),Oe(ie,2382,2385,33),Oe(ie,2385,2389,-87),Oe(ie,2389,2392,33),Oe(ie,2392,2402,-19),Oe(ie,2402,2404,-87),Oe(ie,2404,2406,33),Oe(ie,2406,2416,-87),Oe(ie,2416,2433,33),Oe(ie,2433,2436,-87),ie[2436]=33,Oe(ie,2437,2445,-19),Oe(ie,2445,2447,33),Oe(ie,2447,2449,-19),Oe(ie,2449,2451,33),Oe(ie,2451,2473,-19),ie[2473]=33,Oe(ie,2474,2481,-19),ie[2481]=33,ie[2482]=-19,Oe(ie,2483,2486,33),Oe(ie,2486,2490,-19),Oe(ie,2490,2492,33),ie[2492]=-87,ie[2493]=33,Oe(ie,2494,2501,-87),Oe(ie,2501,2503,33),Oe(ie,2503,2505,-87),Oe(ie,2505,2507,33),Oe(ie,2507,2510,-87),Oe(ie,2510,2519,33),ie[2519]=-87,Oe(ie,2520,2524,33),Oe(ie,2524,2526,-19),ie[2526]=33,Oe(ie,2527,2530,-19),Oe(ie,2530,2532,-87),Oe(ie,2532,2534,33),Oe(ie,2534,2544,-87),Oe(ie,2544,2546,-19),Oe(ie,2546,2562,33),ie[2562]=-87,Oe(ie,2563,2565,33),Oe(ie,2565,2571,-19),Oe(ie,2571,2575,33),Oe(ie,2575,2577,-19),Oe(ie,2577,2579,33),Oe(ie,2579,2601,-19),ie[2601]=33,Oe(ie,2602,2609,-19),ie[2609]=33,Oe(ie,2610,2612,-19),ie[2612]=33,Oe(ie,2613,2615,-19),ie[2615]=33,Oe(ie,2616,2618,-19),Oe(ie,2618,2620,33),ie[2620]=-87,ie[2621]=33,Oe(ie,2622,2627,-87),Oe(ie,2627,2631,33),Oe(ie,2631,2633,-87),Oe(ie,2633,2635,33),Oe(ie,2635,2638,-87),Oe(ie,2638,2649,33),Oe(ie,2649,2653,-19),ie[2653]=33,ie[2654]=-19,Oe(ie,2655,2662,33),Oe(ie,2662,2674,-87),Oe(ie,2674,2677,-19),Oe(ie,2677,2689,33),Oe(ie,2689,2692,-87),ie[2692]=33,Oe(ie,2693,2700,-19),ie[2700]=33,ie[2701]=-19,ie[2702]=33,Oe(ie,2703,2706,-19),ie[2706]=33,Oe(ie,2707,2729,-19),ie[2729]=33,Oe(ie,2730,2737,-19),ie[2737]=33,Oe(ie,2738,2740,-19),ie[2740]=33,Oe(ie,2741,2746,-19),Oe(ie,2746,2748,33),ie[2748]=-87,ie[2749]=-19,Oe(ie,2750,2758,-87),ie[2758]=33,Oe(ie,2759,2762,-87),ie[2762]=33,Oe(ie,2763,2766,-87),Oe(ie,2766,2784,33),ie[2784]=-19,Oe(ie,2785,2790,33),Oe(ie,2790,2800,-87),Oe(ie,2800,2817,33),Oe(ie,2817,2820,-87),ie[2820]=33,Oe(ie,2821,2829,-19),Oe(ie,2829,2831,33),Oe(ie,2831,2833,-19),Oe(ie,2833,2835,33),Oe(ie,2835,2857,-19),ie[2857]=33,Oe(ie,2858,2865,-19),ie[2865]=33,Oe(ie,2866,2868,-19),Oe(ie,2868,2870,33),Oe(ie,2870,2874,-19),Oe(ie,2874,2876,33),ie[2876]=-87,ie[2877]=-19,Oe(ie,2878,2884,-87),Oe(ie,2884,2887,33),Oe(ie,2887,2889,-87),Oe(ie,2889,2891,33),Oe(ie,2891,2894,-87),Oe(ie,2894,2902,33),Oe(ie,2902,2904,-87),Oe(ie,2904,2908,33),Oe(ie,2908,2910,-19),ie[2910]=33,Oe(ie,2911,2914,-19),Oe(ie,2914,2918,33),Oe(ie,2918,2928,-87),Oe(ie,2928,2946,33),Oe(ie,2946,2948,-87),ie[2948]=33,Oe(ie,2949,2955,-19),Oe(ie,2955,2958,33),Oe(ie,2958,2961,-19),ie[2961]=33,Oe(ie,2962,2966,-19),Oe(ie,2966,2969,33),Oe(ie,2969,2971,-19),ie[2971]=33,ie[2972]=-19,ie[2973]=33,Oe(ie,2974,2976,-19),Oe(ie,2976,2979,33),Oe(ie,2979,2981,-19),Oe(ie,2981,2984,33),Oe(ie,2984,2987,-19),Oe(ie,2987,2990,33),Oe(ie,2990,2998,-19),ie[2998]=33,Oe(ie,2999,3002,-19),Oe(ie,3002,3006,33),Oe(ie,3006,3011,-87),Oe(ie,3011,3014,33),Oe(ie,3014,3017,-87),ie[3017]=33,Oe(ie,3018,3022,-87),Oe(ie,3022,3031,33),ie[3031]=-87,Oe(ie,3032,3047,33),Oe(ie,3047,3056,-87),Oe(ie,3056,3073,33),Oe(ie,3073,3076,-87),ie[3076]=33,Oe(ie,3077,3085,-19),ie[3085]=33,Oe(ie,3086,3089,-19),ie[3089]=33,Oe(ie,3090,3113,-19),ie[3113]=33,Oe(ie,3114,3124,-19),ie[3124]=33,Oe(ie,3125,3130,-19),Oe(ie,3130,3134,33),Oe(ie,3134,3141,-87),ie[3141]=33,Oe(ie,3142,3145,-87),ie[3145]=33,Oe(ie,3146,3150,-87),Oe(ie,3150,3157,33),Oe(ie,3157,3159,-87),Oe(ie,3159,3168,33),Oe(ie,3168,3170,-19),Oe(ie,3170,3174,33),Oe(ie,3174,3184,-87),Oe(ie,3184,3202,33),Oe(ie,3202,3204,-87),ie[3204]=33,Oe(ie,3205,3213,-19),ie[3213]=33,Oe(ie,3214,3217,-19),ie[3217]=33,Oe(ie,3218,3241,-19),ie[3241]=33,Oe(ie,3242,3252,-19),ie[3252]=33,Oe(ie,3253,3258,-19),Oe(ie,3258,3262,33),Oe(ie,3262,3269,-87),ie[3269]=33,Oe(ie,3270,3273,-87),ie[3273]=33,Oe(ie,3274,3278,-87),Oe(ie,3278,3285,33),Oe(ie,3285,3287,-87),Oe(ie,3287,3294,33),ie[3294]=-19,ie[3295]=33,Oe(ie,3296,3298,-19),Oe(ie,3298,3302,33),Oe(ie,3302,3312,-87),Oe(ie,3312,3330,33),Oe(ie,3330,3332,-87),ie[3332]=33,Oe(ie,3333,3341,-19),ie[3341]=33,Oe(ie,3342,3345,-19),ie[3345]=33,Oe(ie,3346,3369,-19),ie[3369]=33,Oe(ie,3370,3386,-19),Oe(ie,3386,3390,33),Oe(ie,3390,3396,-87),Oe(ie,3396,3398,33),Oe(ie,3398,3401,-87),ie[3401]=33,Oe(ie,3402,3406,-87),Oe(ie,3406,3415,33),ie[3415]=-87,Oe(ie,3416,3424,33),Oe(ie,3424,3426,-19),Oe(ie,3426,3430,33),Oe(ie,3430,3440,-87),Oe(ie,3440,3585,33),Oe(ie,3585,3631,-19),ie[3631]=33,ie[3632]=-19,ie[3633]=-87,Oe(ie,3634,3636,-19),Oe(ie,3636,3643,-87),Oe(ie,3643,3648,33),Oe(ie,3648,3654,-19),Oe(ie,3654,3663,-87),ie[3663]=33,Oe(ie,3664,3674,-87),Oe(ie,3674,3713,33),Oe(ie,3713,3715,-19),ie[3715]=33,ie[3716]=-19,Oe(ie,3717,3719,33),Oe(ie,3719,3721,-19),ie[3721]=33,ie[3722]=-19,Oe(ie,3723,3725,33),ie[3725]=-19,Oe(ie,3726,3732,33),Oe(ie,3732,3736,-19),ie[3736]=33,Oe(ie,3737,3744,-19),ie[3744]=33,Oe(ie,3745,3748,-19),ie[3748]=33,ie[3749]=-19,ie[3750]=33,ie[3751]=-19,Oe(ie,3752,3754,33),Oe(ie,3754,3756,-19),ie[3756]=33,Oe(ie,3757,3759,-19),ie[3759]=33,ie[3760]=-19,ie[3761]=-87,Oe(ie,3762,3764,-19),Oe(ie,3764,3770,-87),ie[3770]=33,Oe(ie,3771,3773,-87),ie[3773]=-19,Oe(ie,3774,3776,33),Oe(ie,3776,3781,-19),ie[3781]=33,ie[3782]=-87,ie[3783]=33,Oe(ie,3784,3790,-87),Oe(ie,3790,3792,33),Oe(ie,3792,3802,-87),Oe(ie,3802,3864,33),Oe(ie,3864,3866,-87),Oe(ie,3866,3872,33),Oe(ie,3872,3882,-87),Oe(ie,3882,3893,33),ie[3893]=-87,ie[3894]=33,ie[3895]=-87,ie[3896]=33,ie[3897]=-87,Oe(ie,3898,3902,33),Oe(ie,3902,3904,-87),Oe(ie,3904,3912,-19),ie[3912]=33,Oe(ie,3913,3946,-19),Oe(ie,3946,3953,33),Oe(ie,3953,3973,-87),ie[3973]=33,Oe(ie,3974,3980,-87),Oe(ie,3980,3984,33),Oe(ie,3984,3990,-87),ie[3990]=33,ie[3991]=-87,ie[3992]=33,Oe(ie,3993,4014,-87),Oe(ie,4014,4017,33),Oe(ie,4017,4024,-87),ie[4024]=33,ie[4025]=-87,Oe(ie,4026,4256,33),Oe(ie,4256,4294,-19),Oe(ie,4294,4304,33),Oe(ie,4304,4343,-19),Oe(ie,4343,4352,33),ie[4352]=-19,ie[4353]=33,Oe(ie,4354,4356,-19),ie[4356]=33,Oe(ie,4357,4360,-19),ie[4360]=33,ie[4361]=-19,ie[4362]=33,Oe(ie,4363,4365,-19),ie[4365]=33,Oe(ie,4366,4371,-19),Oe(ie,4371,4412,33),ie[4412]=-19,ie[4413]=33,ie[4414]=-19,ie[4415]=33,ie[4416]=-19,Oe(ie,4417,4428,33),ie[4428]=-19,ie[4429]=33,ie[4430]=-19,ie[4431]=33,ie[4432]=-19,Oe(ie,4433,4436,33),Oe(ie,4436,4438,-19),Oe(ie,4438,4441,33),ie[4441]=-19,Oe(ie,4442,4447,33),Oe(ie,4447,4450,-19),ie[4450]=33,ie[4451]=-19,ie[4452]=33,ie[4453]=-19,ie[4454]=33,ie[4455]=-19,ie[4456]=33,ie[4457]=-19,Oe(ie,4458,4461,33),Oe(ie,4461,4463,-19),Oe(ie,4463,4466,33),Oe(ie,4466,4468,-19),ie[4468]=33,ie[4469]=-19,Oe(ie,4470,4510,33),ie[4510]=-19,Oe(ie,4511,4520,33),ie[4520]=-19,Oe(ie,4521,4523,33),ie[4523]=-19,Oe(ie,4524,4526,33),Oe(ie,4526,4528,-19),Oe(ie,4528,4535,33),Oe(ie,4535,4537,-19),ie[4537]=33,ie[4538]=-19,ie[4539]=33,Oe(ie,4540,4547,-19),Oe(ie,4547,4587,33),ie[4587]=-19,Oe(ie,4588,4592,33),ie[4592]=-19,Oe(ie,4593,4601,33),ie[4601]=-19,Oe(ie,4602,7680,33),Oe(ie,7680,7836,-19),Oe(ie,7836,7840,33),Oe(ie,7840,7930,-19),Oe(ie,7930,7936,33),Oe(ie,7936,7958,-19),Oe(ie,7958,7960,33),Oe(ie,7960,7966,-19),Oe(ie,7966,7968,33),Oe(ie,7968,8006,-19),Oe(ie,8006,8008,33),Oe(ie,8008,8014,-19),Oe(ie,8014,8016,33),Oe(ie,8016,8024,-19),ie[8024]=33,ie[8025]=-19,ie[8026]=33,ie[8027]=-19,ie[8028]=33,ie[8029]=-19,ie[8030]=33,Oe(ie,8031,8062,-19),Oe(ie,8062,8064,33),Oe(ie,8064,8117,-19),ie[8117]=33,Oe(ie,8118,8125,-19),ie[8125]=33,ie[8126]=-19,Oe(ie,8127,8130,33),Oe(ie,8130,8133,-19),ie[8133]=33,Oe(ie,8134,8141,-19),Oe(ie,8141,8144,33),Oe(ie,8144,8148,-19),Oe(ie,8148,8150,33),Oe(ie,8150,8156,-19),Oe(ie,8156,8160,33),Oe(ie,8160,8173,-19),Oe(ie,8173,8178,33),Oe(ie,8178,8181,-19),ie[8181]=33,Oe(ie,8182,8189,-19),Oe(ie,8189,8400,33),Oe(ie,8400,8413,-87),Oe(ie,8413,8417,33),ie[8417]=-87,Oe(ie,8418,8486,33),ie[8486]=-19,Oe(ie,8487,8490,33),Oe(ie,8490,8492,-19),Oe(ie,8492,8494,33),ie[8494]=-19,Oe(ie,8495,8576,33),Oe(ie,8576,8579,-19),Oe(ie,8579,12293,33),ie[12293]=-87,ie[12294]=33,ie[12295]=-19,Oe(ie,12296,12321,33),Oe(ie,12321,12330,-19),Oe(ie,12330,12336,-87),ie[12336]=33,Oe(ie,12337,12342,-87),Oe(ie,12342,12353,33),Oe(ie,12353,12437,-19),Oe(ie,12437,12441,33),Oe(ie,12441,12443,-87),Oe(ie,12443,12445,33),Oe(ie,12445,12447,-87),Oe(ie,12447,12449,33),Oe(ie,12449,12539,-19),ie[12539]=33,Oe(ie,12540,12543,-87),Oe(ie,12543,12549,33),Oe(ie,12549,12589,-19),Oe(ie,12589,19968,33),Oe(ie,19968,40870,-19),Oe(ie,40870,44032,33),Oe(ie,44032,55204,-19),Oe(ie,55204,LL,33),Oe(ie,57344,65534,33)}function vin(e){var t,n,i,r,o,a,d;e.hb||(e.hb=!0,Xc(e,"ecore"),zH(e,"ecore"),FH(e,Wa),$D(e.fb,"E"),$D(e.L,"T"),$D(e.P,"K"),$D(e.P,"V"),$D(e.cb,"E"),Dn(wo(e.b),e.bb),Dn(wo(e.a),e.Q),Dn(wo(e.o),e.p),Dn(wo(e.p),e.R),Dn(wo(e.q),e.p),Dn(wo(e.v),e.q),Dn(wo(e.w),e.R),Dn(wo(e.B),e.Q),Dn(wo(e.R),e.Q),Dn(wo(e.T),e.eb),Dn(wo(e.U),e.R),Dn(wo(e.V),e.eb),Dn(wo(e.W),e.bb),Dn(wo(e.bb),e.eb),Dn(wo(e.eb),e.R),Dn(wo(e.db),e.R),Uo(e.b,xx,Gat,!1,!1,!0),wr(c(ae(Pe(e.b),0),38),e.e,"iD",null,0,1,xx,!1,!1,!0,!1,!0,!1),Hi(c(ae(Pe(e.b),1),20),e.q,null,"eAttributeType",1,1,xx,!0,!0,!1,!1,!0,!1,!0),Uo(e.a,oi,Fat,!1,!1,!0),wr(c(ae(Pe(e.a),0),38),e._,koe,null,0,1,oi,!1,!1,!0,!1,!0,!1),Hi(c(ae(Pe(e.a),1),20),e.ab,null,"details",0,-1,oi,!1,!1,!0,!0,!1,!1,!1),Hi(c(ae(Pe(e.a),2),20),e.Q,c(ae(Pe(e.Q),0),20),"eModelElement",0,1,oi,!0,!1,!0,!1,!1,!1,!1),Hi(c(ae(Pe(e.a),3),20),e.S,null,"contents",0,-1,oi,!1,!1,!0,!0,!1,!1,!1),Hi(c(ae(Pe(e.a),4),20),e.S,null,"references",0,-1,oi,!1,!1,!0,!1,!0,!1,!1),Uo(e.o,tf,"EClass",!1,!1,!0),wr(c(ae(Pe(e.o),0),38),e.e,"abstract",null,0,1,tf,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.o),1),38),e.e,"interface",null,0,1,tf,!1,!1,!0,!1,!0,!1),Hi(c(ae(Pe(e.o),2),20),e.o,null,"eSuperTypes",0,-1,tf,!1,!1,!0,!1,!0,!0,!1),Hi(c(ae(Pe(e.o),3),20),e.T,c(ae(Pe(e.T),0),20),"eOperations",0,-1,tf,!1,!1,!0,!0,!1,!1,!1),Hi(c(ae(Pe(e.o),4),20),e.b,null,"eAllAttributes",0,-1,tf,!0,!0,!1,!1,!0,!1,!0),Hi(c(ae(Pe(e.o),5),20),e.W,null,"eAllReferences",0,-1,tf,!0,!0,!1,!1,!0,!1,!0),Hi(c(ae(Pe(e.o),6),20),e.W,null,"eReferences",0,-1,tf,!0,!0,!1,!1,!0,!1,!0),Hi(c(ae(Pe(e.o),7),20),e.b,null,"eAttributes",0,-1,tf,!0,!0,!1,!1,!0,!1,!0),Hi(c(ae(Pe(e.o),8),20),e.W,null,"eAllContainments",0,-1,tf,!0,!0,!1,!1,!0,!1,!0),Hi(c(ae(Pe(e.o),9),20),e.T,null,"eAllOperations",0,-1,tf,!0,!0,!1,!1,!0,!1,!0),Hi(c(ae(Pe(e.o),10),20),e.bb,null,"eAllStructuralFeatures",0,-1,tf,!0,!0,!1,!1,!0,!1,!0),Hi(c(ae(Pe(e.o),11),20),e.o,null,"eAllSuperTypes",0,-1,tf,!0,!0,!1,!1,!0,!1,!0),Hi(c(ae(Pe(e.o),12),20),e.b,null,"eIDAttribute",0,1,tf,!0,!0,!1,!1,!1,!1,!0),Hi(c(ae(Pe(e.o),13),20),e.bb,c(ae(Pe(e.bb),7),20),"eStructuralFeatures",0,-1,tf,!1,!1,!0,!0,!1,!1,!1),Hi(c(ae(Pe(e.o),14),20),e.H,null,"eGenericSuperTypes",0,-1,tf,!1,!1,!0,!0,!1,!0,!1),Hi(c(ae(Pe(e.o),15),20),e.H,null,"eAllGenericSuperTypes",0,-1,tf,!0,!0,!1,!1,!0,!1,!0),d=to(c(ae(Mi(e.o),0),62),e.e,"isSuperTypeOf"),fo(d,e.o,"someClass"),to(c(ae(Mi(e.o),1),62),e.I,"getFeatureCount"),d=to(c(ae(Mi(e.o),2),62),e.bb,nft),fo(d,e.I,"featureID"),d=to(c(ae(Mi(e.o),3),62),e.I,ift),fo(d,e.bb,HC),d=to(c(ae(Mi(e.o),4),62),e.bb,nft),fo(d,e._,"featureName"),to(c(ae(Mi(e.o),5),62),e.I,"getOperationCount"),d=to(c(ae(Mi(e.o),6),62),e.T,"getEOperation"),fo(d,e.I,"operationID"),d=to(c(ae(Mi(e.o),7),62),e.I,rft),fo(d,e.T,vke),d=to(c(ae(Mi(e.o),8),62),e.T,"getOverride"),fo(d,e.T,vke),d=to(c(ae(Mi(e.o),9),62),e.H,"getFeatureType"),fo(d,e.bb,HC),Uo(e.p,ah,Qat,!0,!1,!0),wr(c(ae(Pe(e.p),0),38),e._,"instanceClassName",null,0,1,ah,!1,!0,!0,!0,!0,!1),t=T1(e.L),n=$me(),Dn((!t.d&&(t.d=new Nr(Ks,t,1)),t.d),n),_nt(c(ae(Pe(e.p),1),38),t,"instanceClass",ah,!0,!0,!1,!0),wr(c(ae(Pe(e.p),2),38),e.M,sft,null,0,1,ah,!0,!0,!1,!1,!0,!0),wr(c(ae(Pe(e.p),3),38),e._,"instanceTypeName",null,0,1,ah,!1,!0,!0,!0,!0,!1),Hi(c(ae(Pe(e.p),4),20),e.U,c(ae(Pe(e.U),3),20),"ePackage",0,1,ah,!0,!1,!1,!1,!0,!1,!1),Hi(c(ae(Pe(e.p),5),20),e.db,null,oft,0,-1,ah,!1,!1,!0,!0,!0,!1,!1),d=to(c(ae(Mi(e.p),0),62),e.e,cft),fo(d,e.M,SL),to(c(ae(Mi(e.p),1),62),e.I,"getClassifierID"),Uo(e.q,efe,"EDataType",!1,!1,!0),wr(c(ae(Pe(e.q),0),38),e.e,"serializable",CS,0,1,efe,!1,!1,!0,!1,!0,!1),Uo(e.v,IW,"EEnum",!1,!1,!0),Hi(c(ae(Pe(e.v),0),20),e.w,c(ae(Pe(e.w),3),20),"eLiterals",0,-1,IW,!1,!1,!0,!0,!1,!1,!1),d=to(c(ae(Mi(e.v),0),62),e.w,lft),fo(d,e._,di),d=to(c(ae(Mi(e.v),1),62),e.w,lft),fo(d,e.I,PC),d=to(c(ae(Mi(e.v),2),62),e.w,"getEEnumLiteralByLiteral"),fo(d,e._,"literal"),Uo(e.w,eg,Uat,!1,!1,!0),wr(c(ae(Pe(e.w),0),38),e.I,PC,null,0,1,eg,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.w),1),38),e.A,"instance",null,0,1,eg,!0,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.w),2),38),e._,"literal",null,0,1,eg,!1,!1,!0,!1,!0,!1),Hi(c(ae(Pe(e.w),3),20),e.v,c(ae(Pe(e.v),0),20),"eEnum",0,1,eg,!0,!1,!1,!1,!1,!1,!1),Uo(e.B,sM,"EFactory",!1,!1,!0),Hi(c(ae(Pe(e.B),0),20),e.U,c(ae(Pe(e.U),2),20),"ePackage",1,1,sM,!0,!1,!0,!1,!1,!1,!1),d=to(c(ae(Mi(e.B),0),62),e.S,"create"),fo(d,e.o,"eClass"),d=to(c(ae(Mi(e.B),1),62),e.M,"createFromString"),fo(d,e.q,"eDataType"),fo(d,e._,"literalValue"),d=to(c(ae(Mi(e.B),2),62),e._,"convertToString"),fo(d,e.q,"eDataType"),fo(d,e.M,"instanceValue"),Uo(e.Q,gI,Qut,!0,!1,!0),Hi(c(ae(Pe(e.Q),0),20),e.a,c(ae(Pe(e.a),2),20),"eAnnotations",0,-1,gI,!1,!1,!0,!0,!1,!1,!1),d=to(c(ae(Mi(e.Q),0),62),e.a,"getEAnnotation"),fo(d,e._,koe),Uo(e.R,Wae,Uut,!0,!1,!0),wr(c(ae(Pe(e.R),0),38),e._,di,null,0,1,Wae,!1,!1,!0,!1,!0,!1),Uo(e.S,mp,"EObject",!1,!1,!0),to(c(ae(Mi(e.S),0),62),e.o,"eClass"),to(c(ae(Mi(e.S),1),62),e.e,"eIsProxy"),to(c(ae(Mi(e.S),2),62),e.X,"eResource"),to(c(ae(Mi(e.S),3),62),e.S,"eContainer"),to(c(ae(Mi(e.S),4),62),e.bb,"eContainingFeature"),to(c(ae(Mi(e.S),5),62),e.W,"eContainmentFeature"),d=to(c(ae(Mi(e.S),6),62),null,"eContents"),t=T1(e.fb),n=T1(e.S),Dn((!t.d&&(t.d=new Nr(Ks,t,1)),t.d),n),r=Th(d,t,null),r&&r.mj(),d=to(c(ae(Mi(e.S),7),62),null,"eAllContents"),t=T1(e.cb),n=T1(e.S),Dn((!t.d&&(t.d=new Nr(Ks,t,1)),t.d),n),o=Th(d,t,null),o&&o.mj(),d=to(c(ae(Mi(e.S),8),62),null,"eCrossReferences"),t=T1(e.fb),n=T1(e.S),Dn((!t.d&&(t.d=new Nr(Ks,t,1)),t.d),n),a=Th(d,t,null),a&&a.mj(),d=to(c(ae(Mi(e.S),9),62),e.M,"eGet"),fo(d,e.bb,HC),d=to(c(ae(Mi(e.S),10),62),e.M,"eGet"),fo(d,e.bb,HC),fo(d,e.e,"resolve"),d=to(c(ae(Mi(e.S),11),62),null,"eSet"),fo(d,e.bb,HC),fo(d,e.M,"newValue"),d=to(c(ae(Mi(e.S),12),62),e.e,"eIsSet"),fo(d,e.bb,HC),d=to(c(ae(Mi(e.S),13),62),null,"eUnset"),fo(d,e.bb,HC),d=to(c(ae(Mi(e.S),14),62),e.M,"eInvoke"),fo(d,e.T,vke),t=T1(e.fb),n=$me(),Dn((!t.d&&(t.d=new Nr(Ks,t,1)),t.d),n),AG(d,t,"arguments"),RNt(d,e.K),Uo(e.T,nf,Wat,!1,!1,!0),Hi(c(ae(Pe(e.T),0),20),e.o,c(ae(Pe(e.o),3),20),uft,0,1,nf,!0,!1,!1,!1,!1,!1,!1),Hi(c(ae(Pe(e.T),1),20),e.db,null,oft,0,-1,nf,!1,!1,!0,!0,!0,!1,!1),Hi(c(ae(Pe(e.T),2),20),e.V,c(ae(Pe(e.V),0),20),"eParameters",0,-1,nf,!1,!1,!0,!0,!1,!1,!1),Hi(c(ae(Pe(e.T),3),20),e.p,null,"eExceptions",0,-1,nf,!1,!1,!0,!1,!0,!0,!1),Hi(c(ae(Pe(e.T),4),20),e.H,null,"eGenericExceptions",0,-1,nf,!1,!1,!0,!0,!1,!0,!1),to(c(ae(Mi(e.T),0),62),e.I,rft),d=to(c(ae(Mi(e.T),1),62),e.e,"isOverrideOf"),fo(d,e.T,"someOperation"),Uo(e.U,uh,"EPackage",!1,!1,!0),wr(c(ae(Pe(e.U),0),38),e._,"nsURI",null,0,1,uh,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.U),1),38),e._,"nsPrefix",null,0,1,uh,!1,!1,!0,!1,!0,!1),Hi(c(ae(Pe(e.U),2),20),e.B,c(ae(Pe(e.B),0),20),"eFactoryInstance",1,1,uh,!0,!1,!0,!1,!1,!1,!1),Hi(c(ae(Pe(e.U),3),20),e.p,c(ae(Pe(e.p),4),20),"eClassifiers",0,-1,uh,!1,!1,!0,!0,!0,!1,!1),Hi(c(ae(Pe(e.U),4),20),e.U,c(ae(Pe(e.U),5),20),"eSubpackages",0,-1,uh,!1,!1,!0,!0,!0,!1,!1),Hi(c(ae(Pe(e.U),5),20),e.U,c(ae(Pe(e.U),4),20),"eSuperPackage",0,1,uh,!0,!1,!1,!1,!0,!1,!1),d=to(c(ae(Mi(e.U),0),62),e.p,"getEClassifier"),fo(d,e._,di),Uo(e.V,Jw,Vat,!1,!1,!0),Hi(c(ae(Pe(e.V),0),20),e.T,c(ae(Pe(e.T),2),20),"eOperation",0,1,Jw,!0,!1,!1,!1,!1,!1,!1),Uo(e.W,yx,Xat,!1,!1,!0),wr(c(ae(Pe(e.W),0),38),e.e,"containment",null,0,1,yx,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.W),1),38),e.e,"container",null,0,1,yx,!0,!0,!1,!1,!0,!0),wr(c(ae(Pe(e.W),2),38),e.e,"resolveProxies",CS,0,1,yx,!1,!1,!0,!1,!0,!1),Hi(c(ae(Pe(e.W),3),20),e.W,null,"eOpposite",0,1,yx,!1,!1,!0,!1,!0,!1,!1),Hi(c(ae(Pe(e.W),4),20),e.o,null,"eReferenceType",1,1,yx,!0,!0,!1,!1,!0,!1,!0),Hi(c(ae(Pe(e.W),5),20),e.b,null,"eKeys",0,-1,yx,!1,!1,!0,!1,!0,!1,!1),Uo(e.bb,jl,Hat,!0,!1,!0),wr(c(ae(Pe(e.bb),0),38),e.e,"changeable",CS,0,1,jl,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.bb),1),38),e.e,"volatile",null,0,1,jl,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.bb),2),38),e.e,"transient",null,0,1,jl,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.bb),3),38),e._,"defaultValueLiteral",null,0,1,jl,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.bb),4),38),e.M,sft,null,0,1,jl,!0,!0,!1,!1,!0,!0),wr(c(ae(Pe(e.bb),5),38),e.e,"unsettable",null,0,1,jl,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.bb),6),38),e.e,"derived",null,0,1,jl,!1,!1,!0,!1,!0,!1),Hi(c(ae(Pe(e.bb),7),20),e.o,c(ae(Pe(e.o),13),20),uft,0,1,jl,!0,!1,!1,!1,!1,!1,!1),to(c(ae(Mi(e.bb),0),62),e.I,ift),d=to(c(ae(Mi(e.bb),1),62),null,"getContainerClass"),t=T1(e.L),n=$me(),Dn((!t.d&&(t.d=new Nr(Ks,t,1)),t.d),n),i=Th(d,t,null),i&&i.mj(),Uo(e.eb,vx,qat,!0,!1,!0),wr(c(ae(Pe(e.eb),0),38),e.e,"ordered",CS,0,1,vx,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.eb),1),38),e.e,"unique",CS,0,1,vx,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.eb),2),38),e.I,"lowerBound",null,0,1,vx,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.eb),3),38),e.I,"upperBound","1",0,1,vx,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.eb),4),38),e.e,"many",null,0,1,vx,!0,!0,!1,!1,!0,!0),wr(c(ae(Pe(e.eb),5),38),e.e,"required",null,0,1,vx,!0,!0,!1,!1,!0,!0),Hi(c(ae(Pe(e.eb),6),20),e.p,null,"eType",0,1,vx,!1,!0,!0,!1,!0,!0,!1),Hi(c(ae(Pe(e.eb),7),20),e.H,null,"eGenericType",0,1,vx,!1,!0,!0,!0,!1,!0,!1),Uo(e.ab,Dm,"EStringToStringMapEntry",!1,!1,!1),wr(c(ae(Pe(e.ab),0),38),e._,"key",null,0,1,Dm,!1,!1,!0,!1,!0,!1),wr(c(ae(Pe(e.ab),1),38),e._,PC,null,0,1,Dm,!1,!1,!0,!1,!0,!1),Uo(e.H,Ks,Jat,!1,!1,!0),Hi(c(ae(Pe(e.H),0),20),e.H,null,"eUpperBound",0,1,Ks,!1,!1,!0,!0,!1,!1,!1),Hi(c(ae(Pe(e.H),1),20),e.H,null,"eTypeArguments",0,-1,Ks,!1,!1,!0,!0,!1,!1,!1),Hi(c(ae(Pe(e.H),2),20),e.p,null,"eRawType",1,1,Ks,!0,!1,!1,!1,!0,!1,!0),Hi(c(ae(Pe(e.H),3),20),e.H,null,"eLowerBound",0,1,Ks,!1,!1,!0,!0,!1,!1,!1),Hi(c(ae(Pe(e.H),4),20),e.db,null,"eTypeParameter",0,1,Ks,!1,!1,!0,!1,!1,!1,!1),Hi(c(ae(Pe(e.H),5),20),e.p,null,"eClassifier",0,1,Ks,!1,!1,!0,!1,!0,!1,!1),d=to(c(ae(Mi(e.H),0),62),e.e,cft),fo(d,e.M,SL),Uo(e.db,fl,Kat,!1,!1,!0),Hi(c(ae(Pe(e.db),0),20),e.H,null,"eBounds",0,-1,fl,!1,!1,!0,!0,!1,!1,!1),fi(e.c,lce,"EBigDecimal",!0),fi(e.d,f3,"EBigInteger",!0),fi(e.e,Sl,"EBoolean",!0),fi(e.f,cr,"EBooleanObject",!0),fi(e.i,Bl,"EByte",!0),fi(e.g,Z(Bl,1),"EByteArray",!0),fi(e.j,Sk,"EByteObject",!0),fi(e.k,Da,"EChar",!0),fi(e.n,UC,"ECharacterObject",!0),fi(e.r,jU,"EDate",!0),fi(e.s,QCe,"EDiagnosticChain",!1),fi(e.t,is,"EDouble",!0),fi(e.u,Sr,"EDoubleObject",!0),fi(e.fb,oCe,"EEList",!1),fi(e.A,uCe,"EEnumerator",!1),fi(e.C,_Ce,"EFeatureMap",!1),fi(e.D,RW,"EFeatureMapEntry",!1),fi(e.F,Sx,"EFloat",!0),fi(e.G,$S,"EFloatObject",!0),fi(e.I,Hn,"EInt",!0),fi(e.J,Pr,"EIntegerObject",!0),fi(e.L,Ake,"EJavaClass",!0),fi(e.M,Br,"EJavaObject",!0),fi(e.N,Kw,"ELong",!0),fi(e.O,_w,"ELongObject",!0),fi(e.P,Nke,"EMap",!1),fi(e.X,ECe,"EResource",!1),fi(e.Y,UCe,"EResourceSet",!1),fi(e.Z,G3,"EShort",!0),fi(e.$,Dw,"EShortObject",!0),fi(e._,st,"EString",!0),fi(e.cb,lCe,"ETreeIterator",!1),fi(e.K,JCe,"EInvocationTargetException",!1),zwe(e,Wa))}var SL="object",hk="boolean",qye="number",fre="string",hre="function",pi=2147483647,Vo="java.lang",TL={3:1},CL="com.google.common.base",Yc=", ",Zot="%s (%s) must not be negative",It={3:1,4:1,5:1},ect="negative size: ",Hye="no calls to next() since the last call to remove()",tct="Optional.of(",wl="null",iS={206:1,51:1},Ot="com.google.common.collect",rS={206:1,51:1,130:1},Om={231:1,3:1},ns={51:1},kn="java.util",xw={93:1},Dv={22:1,32:1,18:1},Mh=2042,Il={22:1,32:1,18:1,24:1},F1=2048,Gye={93:1,141:1,136:1},nct={22:1,32:1,18:1,24:1,85:1},Qye={22:1,32:1,18:1,279:1,24:1,85:1},Ud={51:1,130:1},dre={359:1,45:1},ict="AbstractMapEntry",rct="expectedValuesPerKey",Ge={3:1,6:1,4:1,5:1},ad=16384,Ju={163:1},un={42:1},EL={204:1},ML={l:4194303,m:4194303,h:524287},gre={257:1,3:1,34:1},sct="range unbounded on this side",Jd={22:1},oct={22:1,18:1},Uye={3:1,22:1,32:1,18:1},sS={312:1,3:1,22:1,32:1,18:1,16:1,59:1},pQ={3:1,4:1,5:1,178:1},oS={3:1,93:1},pre={22:1,18:1,24:1},dk={3:1,22:1,32:1,18:1,24:1},cct={22:1,18:1,24:1,85:1},Wd=461845907,Vd=-862048943,AL={3:1,6:1,4:1,5:1,178:1},lct="expectedSize",pC=1073741824,Lv="initialArraySize",Re={3:1,6:1,4:1,10:1,5:1},cS={22:1,32:1,56:1,18:1,16:1},mre="arraySize",Ua=1024,uct={22:1,32:1,56:1,18:1,16:1,59:1},Wn={48:1},mQ={376:1},Hg=1e-4,cs=-2147483648,act="__noinit__",q1={3:1,102:1,63:1,81:1},NL="com.google.gwt.core.client.impl",Jye="String",Wye="com.google.gwt.core.client",bre="anonymous",wre="fnStack",Vye="Unknown",fd={203:1,3:1,4:1},Gg=1e3,Dr=65535,vre="January",xre="February",yre="March",kre="April",gk="May",Ore="June",jre="July",Sre="August",Tre="September",Cre="October",Ere="November",Mre="December",W0=1900,li={54:1,3:1,4:1},fct="Before Christ",hct="Anno Domini",Are="Sunday",Nre="Monday",_re="Tuesday",Dre="Wednesday",Lre="Thursday",Pre="Friday",Ire="Saturday",Xye="com.google.gwt.i18n.shared",dct="DateTimeFormat",Rre="com.google.gwt.i18n.client",gct="DefaultDateTimeFormatInfo",pct={3:1,4:1,34:1,208:1},pk="com.google.gwt.json.client",au=4194303,H1=1048575,_L=524288,mk=4194304,jm=17592186044416,bQ=1e9,DL=-17592186044416,Kye="java.io",wQ={3:1,102:1,99:1,63:1,81:1},mct={3:1,298:1,81:1},yw='For input string: "',or=1/0,Gr=-1/0,Pv=4096,bct={3:1,4:1,591:1},Qt="org.eclipse.elk.layered",Ps=65536,LL=55296,io={109:1,3:1,4:1},$re=1e5,wct=.3010299956639812,Us=4294967295,lS="0.0",Bre={45:1},uS="Unable to add element to queue",vct={3:1,4:1,22:1,32:1,56:1,13:1,18:1,16:1,59:1},xct={3:1,22:1,32:1,56:1,18:1,16:1,59:1},yct={22:1,18:1,16:1},zre={3:1,50:1},PL={191:1},t3={3:1,4:1,93:1},Yye={3:1,4:1,22:1,32:1,18:1,47:1,24:1},Fre="delete",mC=14901161193847656e-24,bC=11102230246251565e-32,qre=15525485,IL=5960464477539063e-23,Zye=16777216,vQ=16777215,e3e=", length: ",kct={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1},t3e="subMap: ",Oct=" less than ",Hre={3:1,34:1,23:1,310:1},Gre="java.util.function",wC="java.util.logging",jct={3:1,4:1,5:1,848:1},Qre="undefined",Js="java.util.stream",n3e={524:1,684:1},xQ="fromIndex: ",Sct=" > toIndex: ",i3e=", toIndex: ",r3e="Index: ",s3e=", Size: ",aS="org.eclipse.elk.alg.common",Zn={50:1},Tct="org.eclipse.elk.alg.common.compaction",Cct="Scanline/EventHandler",Xd="org.eclipse.elk.alg.common.compaction.oned",Ect="CNode belongs to another CGroup.",Mct="ISpacingsHandler/1",Ure="The ",Jre=" instance has been finished already.",Act="The direction ",Nct=" is not supported by the CGraph instance.",_ct="OneDimensionalCompactor",Dct="OneDimensionalCompactor/lambda$0$Type",Lct="Quadruplet",Pct="ScanlineConstraintCalculator",Ict="ScanlineConstraintCalculator/ConstraintsScanlineHandler",Rct="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",$ct="ScanlineConstraintCalculator/Timestamp",Bct="ScanlineConstraintCalculator/lambda$0$Type",hd={181:1,48:1},vC="org.eclipse.elk.alg.common.networksimplex",eh={172:1,3:1,4:1},zct="org.eclipse.elk.alg.common.nodespacing",Sm="org.eclipse.elk.alg.common.nodespacing.cellsystem",fS="CENTER",Fct={219:1,338:1},o3e={3:1,4:1,5:1,599:1},bk="LEFT",wk="RIGHT",c3e="Vertical alignment cannot be null",l3e="BOTTOM",yQ="org.eclipse.elk.alg.common.nodespacing.internal",xC="UNDEFINED",Ah=.01,RL="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",qct="LabelPlacer/lambda$0$Type",Hct="LabelPlacer/lambda$1$Type",Gct="portRatioOrPosition",hS="org.eclipse.elk.alg.common.overlaps",Wre="DOWN",vk="org.eclipse.elk.alg.common.spore",Iv={3:1,4:1,5:1,200:1},Qct={3:1,6:1,4:1,5:1,91:1,111:1},Vre="org.eclipse.elk.alg.force",u3e="ComponentsProcessor",Uct="ComponentsProcessor/1",a3e="ElkGraphImporter/lambda$0$Type",Tm={207:1},n3="org.eclipse.elk.core",$L="org.eclipse.elk.graph.properties",Jct="IPropertyHolder",BL="org.eclipse.elk.alg.force.graph",Wct="Component Layout",f3e="org.eclipse.elk.alg.force.model",Io="org.eclipse.elk.core.data",kQ="org.eclipse.elk.force.model",h3e="org.eclipse.elk.force.iterations",d3e="org.eclipse.elk.force.repulsivePower",Xre="org.eclipse.elk.force.temperature",dd=.001,Kre="org.eclipse.elk.force.repulsion",Cf={139:1},yC="org.eclipse.elk.alg.force.options",dS=1.600000023841858,cl="org.eclipse.elk.force",zL="org.eclipse.elk.priority",kw="org.eclipse.elk.spacing.nodeNode",Yre="org.eclipse.elk.spacing.edgeLabel",gS="org.eclipse.elk.aspectRatio",OQ="org.eclipse.elk.randomSeed",kC="org.eclipse.elk.separateConnectedComponents",Ow="org.eclipse.elk.padding",pS="org.eclipse.elk.interactive",jQ="org.eclipse.elk.portConstraints",FL="org.eclipse.elk.edgeLabels.inline",mS="org.eclipse.elk.omitNodeMicroLayout",bS="org.eclipse.elk.nodeSize.fixedGraphSize",xk="org.eclipse.elk.nodeSize.options",i3="org.eclipse.elk.nodeSize.constraints",wS="org.eclipse.elk.nodeLabels.placement",vS="org.eclipse.elk.portLabels.placement",qL="org.eclipse.elk.topdownLayout",HL="org.eclipse.elk.topdown.scaleFactor",GL="org.eclipse.elk.topdown.hierarchicalNodeWidth",QL="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",jw="org.eclipse.elk.topdown.nodeType",g3e="origin",Vct="random",Xct="boundingBox.upLeft",Kct="boundingBox.lowRight",p3e="org.eclipse.elk.stress.fixed",m3e="org.eclipse.elk.stress.desiredEdgeLength",b3e="org.eclipse.elk.stress.dimension",w3e="org.eclipse.elk.stress.epsilon",v3e="org.eclipse.elk.stress.iterationLimit",V0="org.eclipse.elk.stress",Yct="ELK Stress",yk="org.eclipse.elk.nodeSize.minimum",SQ="org.eclipse.elk.alg.force.stress",Zct="Layered layout",kk="org.eclipse.elk.alg.layered",UL="org.eclipse.elk.alg.layered.compaction.components",OC="org.eclipse.elk.alg.layered.compaction.oned",TQ="org.eclipse.elk.alg.layered.compaction.oned.algs",Cm="org.eclipse.elk.alg.layered.compaction.recthull",Nh="org.eclipse.elk.alg.layered.components",th="NONE",Zre="MODEL_ORDER",ac={3:1,6:1,4:1,10:1,5:1,128:1},elt={3:1,6:1,4:1,5:1,137:1,91:1,111:1},CQ="org.eclipse.elk.alg.layered.compound",Pi={43:1},kc="org.eclipse.elk.alg.layered.graph",ese=" -> ",tlt="Not supported by LGraph",x3e="Port side is undefined",xS={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},nlt={3:1,6:1,4:1,5:1,137:1,2021:1,212:1,91:1,111:1},ilt=`([{"' 	\r
`,rlt=`)]}"' 	\r
`,slt="The given string contains parts that cannot be parsed as numbers.",JL="org.eclipse.elk.core.math",olt={3:1,4:1,125:1,216:1,419:1},clt={3:1,4:1,100:1,216:1,419:1},Ug="org.eclipse.elk.alg.layered.graph.transform",llt="ElkGraphImporter",ult="ElkGraphImporter/lambda$1$Type",alt="ElkGraphImporter/lambda$2$Type",flt="ElkGraphImporter/lambda$4$Type",rn="org.eclipse.elk.alg.layered.intermediate",hlt="Node margin calculation",dlt="ONE_SIDED_GREEDY_SWITCH",glt="TWO_SIDED_GREEDY_SWITCH",tse="No implementation is available for the layout processor ",nse="IntermediateProcessorStrategy",ise="Node '",plt="FIRST_SEPARATE",mlt="LAST_SEPARATE",blt="Odd port side processing",jr="org.eclipse.elk.alg.layered.intermediate.compaction",jC="org.eclipse.elk.alg.layered.intermediate.greedyswitch",Kd="org.eclipse.elk.alg.layered.p3order.counting",SC={223:1},Ok="org.eclipse.elk.alg.layered.intermediate.loops",Wu="org.eclipse.elk.alg.layered.intermediate.loops.ordering",X0="org.eclipse.elk.alg.layered.intermediate.loops.routing",EQ="org.eclipse.elk.alg.layered.intermediate.preserveorder",gd="org.eclipse.elk.alg.layered.intermediate.wrapping",Xo="org.eclipse.elk.alg.layered.options",rse="INTERACTIVE",y3e="GREEDY",wlt="DEPTH_FIRST",vlt="EDGE_LENGTH",xlt="SELF_LOOPS",ylt="firstTryWithInitialOrder",k3e="org.eclipse.elk.layered.directionCongruency",O3e="org.eclipse.elk.layered.feedbackEdges",MQ="org.eclipse.elk.layered.interactiveReferencePoint",j3e="org.eclipse.elk.layered.mergeEdges",S3e="org.eclipse.elk.layered.mergeHierarchyEdges",T3e="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",C3e="org.eclipse.elk.layered.portSortingStrategy",E3e="org.eclipse.elk.layered.thoroughness",M3e="org.eclipse.elk.layered.unnecessaryBendpoints",A3e="org.eclipse.elk.layered.generatePositionAndLayerIds",WL="org.eclipse.elk.layered.cycleBreaking.strategy",VL="org.eclipse.elk.layered.layering.strategy",N3e="org.eclipse.elk.layered.layering.layerConstraint",_3e="org.eclipse.elk.layered.layering.layerChoiceConstraint",D3e="org.eclipse.elk.layered.layering.layerId",sse="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",ose="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",cse="org.eclipse.elk.layered.layering.nodePromotion.strategy",lse="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",use="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",TC="org.eclipse.elk.layered.crossingMinimization.strategy",L3e="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",ase="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",fse="org.eclipse.elk.layered.crossingMinimization.semiInteractive",P3e="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",I3e="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",R3e="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",$3e="org.eclipse.elk.layered.crossingMinimization.positionId",B3e="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",hse="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",AQ="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",r3="org.eclipse.elk.layered.nodePlacement.strategy",NQ="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",dse="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",gse="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",pse="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",mse="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",bse="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",z3e="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",F3e="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",_Q="org.eclipse.elk.layered.edgeRouting.splines.mode",DQ="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",wse="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",q3e="org.eclipse.elk.layered.spacing.baseValue",H3e="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",G3e="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",Q3e="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",U3e="org.eclipse.elk.layered.priority.direction",J3e="org.eclipse.elk.layered.priority.shortness",W3e="org.eclipse.elk.layered.priority.straightness",vse="org.eclipse.elk.layered.compaction.connectedComponents",V3e="org.eclipse.elk.layered.compaction.postCompaction.strategy",X3e="org.eclipse.elk.layered.compaction.postCompaction.constraints",LQ="org.eclipse.elk.layered.highDegreeNodes.treatment",xse="org.eclipse.elk.layered.highDegreeNodes.threshold",yse="org.eclipse.elk.layered.highDegreeNodes.treeHeight",G1="org.eclipse.elk.layered.wrapping.strategy",PQ="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",IQ="org.eclipse.elk.layered.wrapping.correctionFactor",CC="org.eclipse.elk.layered.wrapping.cutting.strategy",kse="org.eclipse.elk.layered.wrapping.cutting.cuts",Ose="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",RQ="org.eclipse.elk.layered.wrapping.validify.strategy",$Q="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",BQ="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",zQ="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",jse="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",Sse="org.eclipse.elk.layered.layerUnzipping.strategy",Tse="org.eclipse.elk.layered.layerUnzipping.minimizeEdgeLength",Cse="org.eclipse.elk.layered.layerUnzipping.layerSplit",Ese="org.eclipse.elk.layered.layerUnzipping.resetOnLongEdges",K3e="org.eclipse.elk.layered.edgeLabels.sideSelection",Y3e="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",FQ="org.eclipse.elk.layered.considerModelOrder.strategy",Z3e="org.eclipse.elk.layered.considerModelOrder.portModelOrder",XL="org.eclipse.elk.layered.considerModelOrder.noModelOrder",Mse="org.eclipse.elk.layered.considerModelOrder.components",e5e="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",Ase="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",Nse="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",_se="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cycleBreakingId",Dse="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.crossingMinimizationId",Lse="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.componentGroupId",t5e="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbGroupOrderStrategy",Pse="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredSourceId",Ise="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredTargetId",n5e="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmGroupOrderStrategy",i5e="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmEnforcedGroupOrders",Rse="layering",klt="layering.minWidth",Olt="layering.nodePromotion",yS="crossingMinimization",qQ="org.eclipse.elk.hierarchyHandling",jlt="crossingMinimization.greedySwitch",Slt="nodePlacement",Tlt="nodePlacement.bk",Clt="edgeRouting",KL="org.eclipse.elk.edgeRouting",_h="spacing",r5e="priority",s5e="compaction",Elt="compaction.postCompaction",Mlt="Specifies whether and how post-process compaction is applied.",o5e="highDegreeNodes",c5e="wrapping",Alt="wrapping.cutting",Nlt="wrapping.validify",l5e="wrapping.multiEdge",$se="layerUnzipping",Bse="edgeLabels",EC="considerModelOrder",kS="considerModelOrder.groupModelOrder",u5e="Group ID of the Node Type",a5e="org.eclipse.elk.spacing.commentComment",f5e="org.eclipse.elk.spacing.commentNode",h5e="org.eclipse.elk.spacing.componentComponent",d5e="org.eclipse.elk.spacing.edgeEdge",zse="org.eclipse.elk.spacing.edgeNode",g5e="org.eclipse.elk.spacing.labelLabel",p5e="org.eclipse.elk.spacing.labelPortHorizontal",m5e="org.eclipse.elk.spacing.labelPortVertical",b5e="org.eclipse.elk.spacing.labelNode",w5e="org.eclipse.elk.spacing.nodeSelfLoop",v5e="org.eclipse.elk.spacing.portPort",x5e="org.eclipse.elk.spacing.individual",y5e="org.eclipse.elk.port.borderOffset",k5e="org.eclipse.elk.noLayout",O5e="org.eclipse.elk.port.side",YL="org.eclipse.elk.debugMode",j5e="org.eclipse.elk.alignment",S5e="org.eclipse.elk.insideSelfLoops.activate",T5e="org.eclipse.elk.insideSelfLoops.yo",Fse="org.eclipse.elk.direction",C5e="org.eclipse.elk.nodeLabels.padding",E5e="org.eclipse.elk.portLabels.nextToPortIfPossible",M5e="org.eclipse.elk.portLabels.treatAsGroup",A5e="org.eclipse.elk.portAlignment.default",N5e="org.eclipse.elk.portAlignment.north",_5e="org.eclipse.elk.portAlignment.south",D5e="org.eclipse.elk.portAlignment.west",L5e="org.eclipse.elk.portAlignment.east",HQ="org.eclipse.elk.contentAlignment",P5e="org.eclipse.elk.junctionPoints",I5e="org.eclipse.elk.edge.thickness",R5e="org.eclipse.elk.edgeLabels.placement",$5e="org.eclipse.elk.port.index",B5e="org.eclipse.elk.commentBox",z5e="org.eclipse.elk.hypernode",F5e="org.eclipse.elk.port.anchor",qse="org.eclipse.elk.partitioning.activate",Hse="org.eclipse.elk.partitioning.partition",GQ="org.eclipse.elk.position",Gse="org.eclipse.elk.margins",q5e="org.eclipse.elk.spacing.portsSurrounding",QQ="org.eclipse.elk.interactiveLayout",rc="org.eclipse.elk.core.util",H5e={3:1,4:1,5:1,597:1},_lt="NETWORK_SIMPLEX",G5e="SIMPLE",Qse="No implementation is available for the node placer ",Wr={86:1,43:1},Sw="org.eclipse.elk.alg.layered.p1cycles",Dlt="Depth-first cycle removal",Llt="Model order cycle breaking",Q1="org.eclipse.elk.alg.layered.p2layers",Q5e={411:1,223:1},Plt={838:1,3:1,4:1},ll="org.eclipse.elk.alg.layered.p3order",s3=17976931348623157e292,Use=5e-324,Ws="org.eclipse.elk.alg.layered.p4nodes",Ilt={3:1,4:1,5:1,846:1},pd=1e-5,K0="org.eclipse.elk.alg.layered.p4nodes.bk",Jse="org.eclipse.elk.alg.layered.p5edges",nh="org.eclipse.elk.alg.layered.p5edges.orthogonal",Wse="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",Vse=1e-6,Rv="org.eclipse.elk.alg.layered.p5edges.splines",Xse=.09999999999999998,UQ=1e-8,Rlt=4.71238898038469,$lt=1.5707963267948966,U5e=3.141592653589793,U1="org.eclipse.elk.alg.mrtree",Blt="Tree layout",zlt="P4_EDGE_ROUTING",Kse=.10000000149011612,JQ="SUPER_ROOT",MC="org.eclipse.elk.alg.mrtree.graph",J5e=-17976931348623157e292,Rc="org.eclipse.elk.alg.mrtree.intermediate",Flt="Processor compute fanout",WQ={3:1,6:1,4:1,5:1,526:1,91:1,111:1},qlt="Set neighbors in level",ZL="org.eclipse.elk.alg.mrtree.options",Hlt="DESCENDANTS",W5e="org.eclipse.elk.mrtree.compaction",V5e="org.eclipse.elk.mrtree.edgeEndTextureLength",X5e="org.eclipse.elk.mrtree.treeLevel",K5e="org.eclipse.elk.mrtree.positionConstraint",Y5e="org.eclipse.elk.mrtree.weighting",Z5e="org.eclipse.elk.mrtree.edgeRoutingMode",e4e="org.eclipse.elk.mrtree.searchOrder",Glt="Position Constraint",ul="org.eclipse.elk.mrtree",t4e="org.eclipse.elk.tree",Qlt="Processor arrange level",OS="org.eclipse.elk.alg.mrtree.p2order",Mu="org.eclipse.elk.alg.mrtree.p4route",n4e="org.eclipse.elk.alg.radial",Ult="The given graph is not a tree!",Em=6.283185307179586,i4e="Before",VQ="After",r4e="org.eclipse.elk.alg.radial.intermediate",Jlt="COMPACTION",Yse="org.eclipse.elk.alg.radial.intermediate.compaction",Wlt={3:1,4:1,5:1,91:1},s4e="org.eclipse.elk.alg.radial.intermediate.optimization",Zse="No implementation is available for the layout option ",AC="org.eclipse.elk.alg.radial.options",Vlt="CompactionStrategy",o4e="org.eclipse.elk.radial.centerOnRoot",c4e="org.eclipse.elk.radial.orderId",l4e="org.eclipse.elk.radial.radius",XQ="org.eclipse.elk.radial.rotate",eoe="org.eclipse.elk.radial.compactor",toe="org.eclipse.elk.radial.compactionStepSize",u4e="org.eclipse.elk.radial.sorter",a4e="org.eclipse.elk.radial.wedgeCriteria",f4e="org.eclipse.elk.radial.optimizationCriteria",noe="org.eclipse.elk.radial.rotation.targetAngle",ioe="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",h4e="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",Xlt="Compaction",d4e="rotation",Sa="org.eclipse.elk.radial",Klt="org.eclipse.elk.alg.radial.p1position.wedge",g4e="org.eclipse.elk.alg.radial.sorting",Ylt=5.497787143782138,Zlt=3.9269908169872414,eut=2.356194490192345,tut="org.eclipse.elk.alg.rectpacking",NC="org.eclipse.elk.alg.rectpacking.intermediate",roe="org.eclipse.elk.alg.rectpacking.options",p4e="org.eclipse.elk.rectpacking.trybox",m4e="org.eclipse.elk.rectpacking.currentPosition",b4e="org.eclipse.elk.rectpacking.desiredPosition",w4e="org.eclipse.elk.rectpacking.inNewRow",v4e="org.eclipse.elk.rectpacking.orderBySize",x4e="org.eclipse.elk.rectpacking.widthApproximation.strategy",y4e="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",k4e="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",O4e="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",j4e="org.eclipse.elk.rectpacking.packing.strategy",S4e="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",T4e="org.eclipse.elk.rectpacking.packing.compaction.iterations",C4e="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",soe="widthApproximation",nut="Compaction Strategy",iut="packing.compaction",Jl="org.eclipse.elk.rectpacking",jS="org.eclipse.elk.alg.rectpacking.p1widthapproximation",KQ="org.eclipse.elk.alg.rectpacking.p2packing",rut="No Compaction",E4e="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",eP="org.eclipse.elk.alg.rectpacking.util",YQ="No implementation available for ",$v="org.eclipse.elk.alg.spore",Bv="org.eclipse.elk.alg.spore.options",Tw="org.eclipse.elk.sporeCompaction",ooe="org.eclipse.elk.underlyingLayoutAlgorithm",M4e="org.eclipse.elk.processingOrder.treeConstruction",A4e="org.eclipse.elk.processingOrder.spanningTreeCostFunction",coe="org.eclipse.elk.processingOrder.preferredRoot",loe="org.eclipse.elk.processingOrder.rootSelection",uoe="org.eclipse.elk.structure.structureExtractionStrategy",N4e="org.eclipse.elk.compaction.compactionStrategy",_4e="org.eclipse.elk.compaction.orthogonal",D4e="org.eclipse.elk.overlapRemoval.maxIterations",L4e="org.eclipse.elk.overlapRemoval.runScanline",aoe="processingOrder",sut="overlapRemoval",SS="org.eclipse.elk.sporeOverlap",out="org.eclipse.elk.alg.spore.p1structure",foe="org.eclipse.elk.alg.spore.p2processingorder",hoe="org.eclipse.elk.alg.spore.p3execution",P4e="org.eclipse.elk.alg.vertiflex",I4e="org.eclipse.elk.vertiflex.verticalConstraint",R4e="org.eclipse.elk.vertiflex.layoutStrategy",$4e="org.eclipse.elk.vertiflex.layerDistance",B4e="org.eclipse.elk.vertiflex.considerNodeModelOrder",z4e="org.eclipse.elk.alg.vertiflex.options",Cw="org.eclipse.elk.vertiflex",cut="org.eclipse.elk.alg.vertiflex.p1yplacement",doe="org.eclipse.elk.alg.vertiflex.p2relative",lut="org.eclipse.elk.alg.vertiflex.p3absolute",uut="BendEdgeRouter",F4e="org.eclipse.elk.alg.vertiflex.p4edgerouting",aut="StraightEdgeRouter",fut="Topdown Layout",hut="Invalid index: ",TS="org.eclipse.elk.core.alg",o3={343:1},zv={297:1},dut="Make sure its type is registered with the ",q4e=" utility class.",CS="true",goe="false",gut="Couldn't clone property '",Ew=.05,Zc="org.eclipse.elk.core.options",put=1.2999999523162842,Mw="org.eclipse.elk.box",H4e="org.eclipse.elk.expandNodes",G4e="org.eclipse.elk.box.packingMode",mut="org.eclipse.elk.algorithm",but="org.eclipse.elk.resolvedAlgorithm",Q4e="org.eclipse.elk.bendPoints",xin="org.eclipse.elk.labelManager",wut="org.eclipse.elk.softwrappingFuzziness",vut="org.eclipse.elk.scaleFactor",xut="org.eclipse.elk.childAreaWidth",yut="org.eclipse.elk.childAreaHeight",kut="org.eclipse.elk.animate",Out="org.eclipse.elk.animTimeFactor",jut="org.eclipse.elk.layoutAncestors",Sut="org.eclipse.elk.maxAnimTime",Tut="org.eclipse.elk.minAnimTime",Cut="org.eclipse.elk.progressBar",Eut="org.eclipse.elk.validateGraph",Mut="org.eclipse.elk.validateOptions",Aut="org.eclipse.elk.zoomToFit",Nut="org.eclipse.elk.json.shapeCoords",_ut="org.eclipse.elk.json.edgeCoords",yin="org.eclipse.elk.font.name",Dut="org.eclipse.elk.font.size",poe="org.eclipse.elk.topdown.sizeCategories",U4e="org.eclipse.elk.topdown.sizeCategoriesHierarchicalNodeWeight",moe="org.eclipse.elk.topdown.sizeApproximator",J4e="org.eclipse.elk.topdown.scaleCap",Lut="org.eclipse.elk.edge.type",Put="partitioning",Iut="nodeLabels",ZQ="portAlignment",boe="nodeSize",woe="port",W4e="portLabels",ES="topdown",Rut="insideSelfLoops",V4e="INHERIT",MS="org.eclipse.elk.fixed",eU="org.eclipse.elk.random",tU={3:1,34:1,23:1,525:1,290:1},$ut="port must have a parent node to calculate the port side",But="The edge needs to have exactly one edge section. Found: ",_C="org.eclipse.elk.core.util.adapters",Ta="org.eclipse.emf.ecore",c3="org.eclipse.elk.graph",zut="EMapPropertyHolder",Fut="ElkBendPoint",qut="ElkGraphElement",Hut="ElkConnectableShape",X4e="ElkEdge",Gut="ElkEdgeSection",Qut="EModelElement",Uut="ENamedElement",K4e="ElkLabel",Y4e="ElkNode",Z4e="ElkPort",Jut={95:1,94:1},jk="org.eclipse.emf.common.notify.impl",Y0="The feature '",DC="' is not a valid changeable feature",Wut="Expecting null",voe="' is not a valid feature",Vut="The feature ID",Xut=" is not a valid feature ID",sc=32768,Kut={110:1,95:1,94:1,57:1,52:1,101:1},Vt="org.eclipse.emf.ecore.impl",Mm="org.eclipse.elk.graph.impl",LC="Recursive containment not allowed for ",AS="The datatype '",Aw="' is not a valid classifier",xoe="The value '",l3={198:1,3:1,4:1},yoe="The class '",NS="http://www.eclipse.org/elk/ElkGraph",eke="property",PC="value",koe="source",Yut="properties",Zut="identifier",Ooe="height",joe="width",Soe="parent",Toe="text",Coe="children",eat="hierarchical",tke="sources",Eoe="targets",Moe="sections",nU="bendPoints",nke="outgoingShape",ike="incomingShape",rke="outgoingSections",ske="incomingSections",_s="org.eclipse.emf.common.util",oke="Severe implementation error in the Json to ElkGraph importer.",md="id",fs="org.eclipse.elk.graph.json",_S="Unhandled parameter types: ",tat="startPoint",nat="An edge must have at least one source and one target (edge id: '",DS="').",iat="Referenced edge section does not exist: ",rat=" (edge id: '",cke="target",sat="sourcePoint",oat="targetPoint",iU="group",di="name",cat="connectableShape cannot be null",lat="edge cannot be null",uat="Passed edge is not 'simple'.",rU="org.eclipse.elk.graph.util",tP="The 'no duplicates' constraint is violated",Aoe="targetIndex=",Am=", size=",Noe="sourceIndex=",bd={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1},_oe={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},sU="logging",aat="measureExecutionTime",fat="parser.parse.1",hat="parser.parse.2",oU="parser.next.1",Doe="parser.next.2",dat="parser.next.3",gat="parser.next.4",Nm="parser.factor.1",lke="parser.factor.2",pat="parser.factor.3",mat="parser.factor.4",bat="parser.factor.5",wat="parser.factor.6",vat="parser.atom.1",xat="parser.atom.2",yat="parser.atom.3",uke="parser.atom.4",Loe="parser.atom.5",ake="parser.cc.1",cU="parser.cc.2",kat="parser.cc.3",Oat="parser.cc.5",fke="parser.cc.6",hke="parser.cc.7",Poe="parser.cc.8",jat="parser.ope.1",Sat="parser.ope.2",Tat="parser.ope.3",Jg="parser.descape.1",Cat="parser.descape.2",Eat="parser.descape.3",Mat="parser.descape.4",Aat="parser.descape.5",Ca="parser.process.1",Nat="parser.quantifier.1",_at="parser.quantifier.2",Dat="parser.quantifier.3",Lat="parser.quantifier.4",dke="parser.quantifier.5",Pat="org.eclipse.emf.common.notify",gke={420:1,683:1},Iat={3:1,4:1,22:1,32:1,56:1,18:1,16:1,71:1,61:1},nP={374:1,152:1},IC="index=",Ioe={3:1,4:1,5:1,131:1},Rat={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,61:1},pke={3:1,6:1,4:1,5:1,200:1},$at={3:1,4:1,5:1,178:1,375:1},Bat=";/?:@&=+$,",zat="invalid authority: ",Fat="EAnnotation",qat="ETypedElement",Hat="EStructuralFeature",Gat="EAttribute",Qat="EClassifier",Uat="EEnumLiteral",Jat="EGenericType",Wat="EOperation",Vat="EParameter",Xat="EReference",Kat="ETypeParameter",Wi="org.eclipse.emf.ecore.util",Roe={78:1},mke={3:1,22:1,18:1,16:1,61:1,593:1,78:1,72:1,98:1},Yat="org.eclipse.emf.ecore.util.FeatureMap$Entry",Rl=8192,RC="byte",lU="char",$C="double",BC="float",zC="int",FC="long",qC="short",Zat="java.lang.Object",u3={3:1,4:1,5:1,258:1},bke={3:1,4:1,5:1,685:1},eft={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,72:1},To={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},iP="mixed",Yn="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",Ja="kind",tft={3:1,4:1,5:1,686:1},wke={3:1,4:1,22:1,32:1,56:1,18:1,16:1,71:1,61:1,78:1,72:1,98:1},uU={22:1,32:1,56:1,18:1,16:1,61:1,72:1},aU={51:1,130:1,289:1},fU={76:1,345:1},hU="The value of type '",dU="' must be of type '",a3=1318,Wa="http://www.eclipse.org/emf/2002/Ecore",gU=-32768,Nw="constraints",xs="baseType",nft="getEStructuralFeature",ift="getFeatureID",HC="feature",rft="getOperationID",vke="operation",sft="defaultValue",oft="eTypeParameters",cft="isInstance",lft="getEEnumLiteral",uft="eContainingClass",ai={58:1},aft={3:1,4:1,5:1,123:1},fft="org.eclipse.emf.ecore.resource",hft={95:1,94:1,595:1,2013:1},$oe="org.eclipse.emf.ecore.resource.impl",xke="unspecified",rP="simple",pU="attribute",dft="attributeWildcard",mU="element",Boe="elementWildcard",ih="collapse",zoe="itemType",bU="namespace",sP="##targetNamespace",Va="whiteSpace",yke="wildcards",_m="http://www.eclipse.org/emf/2003/XMLType",Foe="##any",LS="uninitialized",oP="The multiplicity constraint is violated",wU="org.eclipse.emf.ecore.xml.type",gft="ProcessingInstruction",pft="SimpleAnyType",mft="XMLTypeDocumentRoot",Lr="org.eclipse.emf.ecore.xml.type.impl",cP="INF",bft="processing",wft="ENTITIES_._base",kke="minLength",Oke="ENTITY",vU="NCName",vft="IDREFS_._base",jke="integer",qoe="token",Hoe="pattern",xft="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",Ske="\\i\\c*",yft="[\\i-[:]][\\c-[:]]*",kft="nonPositiveInteger",lP="maxInclusive",Tke="NMTOKEN",Oft="NMTOKENS_._base",Cke="nonNegativeInteger",uP="minInclusive",jft="normalizedString",Sft="unsignedByte",Tft="unsignedInt",Cft="18446744073709551615",Eft="unsignedShort",Mft="processingInstruction",Wg="org.eclipse.emf.ecore.xml.type.internal",PS=1114111,Aft="Internal Error: shorthands: \\u",GC="xml:isDigit",Goe="xml:isWord",Qoe="xml:isSpace",Uoe="xml:isNameChar",Joe="xml:isInitialNameChar",Nft="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",_ft="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",Dft="Private Use",Woe="ASSIGNED",Voe="\0ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁯⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿　〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ﬀﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",Eke="UNASSIGNED",IS={3:1,122:1},Lft="org.eclipse.emf.ecore.xml.type.util",xU={3:1,4:1,5:1,377:1},Mke="org.eclipse.xtext.xbase.lib",Pft="Cannot add elements to a Range",Ift="Cannot set elements in a Range",Rft="Cannot remove elements from a Range",$ft="user.agent",f,yU,Xoe;p.goog=p.goog||{},p.goog.global=p.goog.global||p,yU={},E(1,null,{},j),f.Fb=function(t){return PBe(this,t)},f.Gb=function(){return this.Pm},f.Hb=function(){return Hb(this)},f.Ib=function(){var t;return Up(ju(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 Bft,zft,Fft;E(299,1,{299:1,2103:1},kwe),f.te=function(t){var n;return n=new kwe,n.i=4,t>1?n.c=hQe(this,t-1):n.c=this,n},f.ue=function(){return j1(this),this.b},f.ve=function(){return Up(this)},f.we=function(){return j1(this),this.k},f.xe=function(){return(this.i&4)!=0},f.ye=function(){return(this.i&1)!=0},f.Ib=function(){return _be(this)},f.i=0;var Br=M(Vo,"Object",1),Ake=M(Vo,"Class",299);E(2075,1,TL),M(CL,"Optional",2075),E(1172,2075,TL,C),f.Fb=function(t){return t===this},f.Hb=function(){return 2040732332},f.Ib=function(){return"Optional.absent()"},f.Jb=function(t){return $n(t),pT(),Koe};var Koe;M(CL,"Absent",1172),E(634,1,{},NY),M(CL,"Joiner",634);var kin=er(CL,"Predicate");E(584,1,{181:1,584:1,3:1,48:1},UK),f.Mb=function(t){return pKe(this,t)},f.Lb=function(t){return pKe(this,t)},f.Fb=function(t){var n;return he(t,584)?(n=c(t,584),wxe(this.a,n.a)):!1},f.Hb=function(){return Cwe(this.a)+306654252},f.Ib=function(){return mUt(this.a)},M(CL,"Predicates/AndPredicate",584),E(416,2075,{416:1,3:1},tT),f.Fb=function(t){var n;return he(t,416)?(n=c(t,416),ki(this.a,n.a)):!1},f.Hb=function(){return 1502476572+zi(this.a)},f.Ib=function(){return tct+this.a+")"},f.Jb=function(t){return new tT(qq(t.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},M(CL,"Present",416),E(206,1,iS),f.Nb=function(t){ps(this,t)},f.Qb=function(){OIe()},M(Ot,"UnmodifiableIterator",206),E(2055,206,rS),f.Qb=function(){OIe()},f.Rb=function(t){throw K(new zn)},f.Wb=function(t){throw K(new zn)},M(Ot,"UnmodifiableListIterator",2055),E(394,2055,rS),f.Ob=function(){return this.b<this.c},f.Sb=function(){return this.b>0},f.Pb=function(){if(this.b>=this.c)throw K(new Eo);return this.Xb(this.b++)},f.Tb=function(){return this.b},f.Ub=function(){if(this.b<=0)throw K(new Eo);return this.Xb(--this.b)},f.Vb=function(){return this.b-1},f.b=0,f.c=0,M(Ot,"AbstractIndexedListIterator",394),E(709,206,iS),f.Ob=function(){return Ite(this)},f.Pb=function(){return Tbe(this)},f.e=1,M(Ot,"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 rne(this,t)},f.Hb=function(){return zi(this.Zb())},f.dc=function(){return this.gc()==0},f.ec=function(){return N4(this)},f.Ib=function(){return So(this.Zb())},M(Ot,"AbstractMultimap",2063),E(737,2063,Om),f.$b=function(){_H(this)},f._b=function(t){return BIe(this,t)},f.ac=function(){return new B6(this,this.c)},f.ic=function(t){return this.hc()},f.bc=function(){return new Ey(this,this.c)},f.jc=function(){return this.mc(this.hc())},f.kc=function(){return new lIe(this)},f.lc=function(){return hie(this.c.vc().Lc(),new P,64,this.d)},f.cc=function(t){return Ti(this,t)},f.fc=function(t){return HD(this,t)},f.gc=function(){return this.d},f.mc=function(t){return Mt(),new T6(t)},f.nc=function(){return new cIe(this)},f.oc=function(){return hie(this.c.Bc().Lc(),new N,64,this.d)},f.pc=function(t,n){return new gH(this,t,n,null)},f.d=0,M(Ot,"AbstractMapBasedMultimap",737),E(1678,737,Om),f.hc=function(){return new Wc(this.a)},f.jc=function(){return Mt(),Mt(),Is},f.cc=function(t){return c(Ti(this,t),16)},f.fc=function(t){return c(HD(this,t),16)},f.Zb=function(){return R4(this)},f.Fb=function(t){return rne(this,t)},f.qc=function(t){return c(Ti(this,t),16)},f.rc=function(t){return c(HD(this,t),16)},f.mc=function(t){return Hq(c(t,16))},f.pc=function(t,n){return kUe(this,t,c(n,16),null)},M(Ot,"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(Fa(this.a),18).dc()&&this.c.Qb(),--this.d.d},M(Ot,"AbstractMapBasedMultimap/Itr",743),E(1110,743,ns,cIe),f.sc=function(t,n){return n},M(Ot,"AbstractMapBasedMultimap/1",1110),E(1111,1,{},N),f.Kb=function(t){return c(t,18).Lc()},M(Ot,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1111),E(1112,743,ns,lIe),f.sc=function(t,n){return new $b(t,n)},M(Ot,"AbstractMapBasedMultimap/2",1112);var Nke=er(kn,"Map");E(2044,1,xw),f.wc=function(t){DD(this,t)},f.$b=function(){this.vc().$b()},f.tc=function(t){return Wne(this,t)},f._b=function(t){return!!mve(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(),Se(t)===Se(r)||t!=null&&ki(t,r))return!0;return!1},f.Fb=function(t){var n,i,r;if(t===this)return!0;if(!he(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 Ao(mve(this,t,!1))},f.Hb=function(){return vwe(this.vc())},f.dc=function(){return this.gc()==0},f.ec=function(){return new hn(this)},f.yc=function(t,n){throw K(new yg("Put not supported on this map"))},f.zc=function(t){T7(this,t)},f.Ac=function(t){return Ao(mve(this,t,!0))},f.gc=function(){return this.vc().gc()},f.Ib=function(){return Fet(this)},f.Bc=function(){return new x1(this)},M(kn,"AbstractMap",2044),E(2064,2044,xw),f.bc=function(){return new iF(this)},f.vc=function(){return cHe(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 PRe(this))},M(Ot,"Maps/ViewCachingAbstractMap",2064),E(398,2064,xw,B6),f.xc=function(t){return oRt(this,t)},f.Ac=function(t){return bBt(this,t)},f.$b=function(){this.d==this.e.c?this.e.$b():wq(new Tpe(this))},f._b=function(t){return oYe(this.d,t)},f.Dc=function(){return new V5(this)},f.Cc=function(){return this.Dc()},f.Fb=function(t){return this===t||ki(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 So(this.d)},M(Ot,"AbstractMapBasedMultimap/AsMap",398);var Ea=er(Vo,"Iterable");E(32,1,Dv),f.Ic=function(t){ws(this,t)},f.Lc=function(){return new Ct(this,0)},f.Mc=function(){return new Tt(null,this.Lc())},f.Ec=function(t){throw K(new yg("Add not supported on this collection"))},f.Fc=function(t){return Os(this,t)},f.$b=function(){fme(this)},f.Gc=function(t){return vv(this,t,!1)},f.Hc=function(t){return BD(this,t)},f.dc=function(){return this.gc()==0},f.Kc=function(t){return vv(this,t,!0)},f.Nc=function(){return $pe(this)},f.Oc=function(t){return H7(this,t)},f.Ib=function(){return Ch(this)},M(kn,"AbstractCollection",32);var Xa=er(kn,"Set");E(Mh,32,Il),f.Lc=function(){return new Ct(this,1)},f.Fb=function(t){return eZe(this,t)},f.Hb=function(){return vwe(this)},M(kn,"AbstractSet",Mh),E(2047,Mh,Il),M(Ot,"Sets/ImprovedAbstractSet",2047),E(F1,2047,Il),f.$b=function(){this.Pc().$b()},f.Gc=function(t){return PYe(this,t)},f.dc=function(){return this.Pc().dc()},f.Kc=function(t){var n;return this.Gc(t)&&he(t,45)?(n=c(t,45),this.Pc().ec().Kc(n.jd())):!1},f.gc=function(){return this.Pc().gc()},M(Ot,"Maps/EntrySet",F1),E(1108,F1,Il,V5),f.Gc=function(t){return Wwe(this.a.d.vc(),t)},f.Jc=function(){return new Tpe(this.a)},f.Pc=function(){return this.a},f.Kc=function(t){var n;return Wwe(this.a.d.vc(),t)?(n=c(Fa(c(t,45)),45),WPt(this.a.e,n.jd()),!0):!1},f.Lc=function(){return K_(this.a.d.vc().Lc(),new kz(this.a))},M(Ot,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1108),E(1109,1,{},kz),f.Kb=function(t){return fJe(this.a,c(t,45))},M(Ot,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1109),E(741,1,ns,Tpe),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),fJe(this.c,t)},f.Ob=function(){return this.b.Ob()},f.Qb=function(){W6(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},M(Ot,"AbstractMapBasedMultimap/AsMap/AsMapIterator",741),E(534,2047,Il,iF),f.$b=function(){this.b.$b()},f.Gc=function(t){return this.b._b(t)},f.Ic=function(t){$n(t),this.b.wc(new r_(t))},f.dc=function(){return this.b.dc()},f.Jc=function(){return new mT(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(Ot,"Maps/KeySet",534),E(333,534,Il,Ey),f.$b=function(){var t;wq((t=this.b.vc().Jc(),new Y1e(this,t)))},f.Hc=function(t){return this.b.ec().Hc(t)},f.Fb=function(t){return this===t||ki(this.b.ec(),t)},f.Hb=function(){return zi(this.b.ec())},f.Jc=function(){var t;return t=this.b.vc().Jc(),new Y1e(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(Ot,"AbstractMapBasedMultimap/KeySet",333),E(742,1,ns,Y1e),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;W6(!!this.a),t=c(this.a.kd(),18),this.c.Qb(),this.b.a.d-=t.gc(),t.$b(),this.a=null},M(Ot,"AbstractMapBasedMultimap/KeySet/1",742),E(492,398,{93:1,136:1},G_),f.bc=function(){return this.Qc()},f.ec=function(){return this.Sc()},f.Qc=function(){return new x_(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(Ot,"AbstractMapBasedMultimap/SortedAsMap",492),E(442,492,Gye,XT),f.bc=function(){return new $6(this.a,c(c(this.d,136),141))},f.Qc=function(){return new $6(this.a,c(c(this.d,136),141))},f.ec=function(){var t;return t=this.b,c(t||(this.b=new $6(this.a,c(c(this.d,136),141))),279)},f.Sc=function(){var t;return t=this.b,c(t||(this.b=new $6(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 XT(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 XT(this.a,c(c(this.d,136),141).$c(t,n))},M(Ot,"AbstractMapBasedMultimap/NavigableAsMap",442),E(491,333,nct,x_),f.Lc=function(){return this.b.ec().Lc()},M(Ot,"AbstractMapBasedMultimap/SortedKeySet",491),E(397,491,Qye,$6),M(Ot,"AbstractMapBasedMultimap/NavigableKeySet",397),E(543,32,Dv,gH),f.Ec=function(t){var n,i;return cu(this),i=this.d.dc(),n=this.d.Ec(t),n&&(++this.f.d,i&&J_(this)),n},f.Fc=function(t){var n,i,r;return t.dc()?!1:(r=(cu(this),this.d.gc()),n=this.d.Fc(t),n&&(i=this.d.gc(),this.f.d+=i-r,r==0&&J_(this)),n)},f.$b=function(){var t;t=(cu(this),this.d.gc()),t!=0&&(this.d.$b(),this.f.d-=t,Sq(this))},f.Gc=function(t){return cu(this),this.d.Gc(t)},f.Hc=function(t){return cu(this),this.d.Hc(t)},f.Fb=function(t){return t===this?!0:(cu(this),ki(this.d,t))},f.Hb=function(){return cu(this),zi(this.d)},f.Jc=function(){return cu(this),new dpe(this)},f.Kc=function(t){var n;return cu(this),n=this.d.Kc(t),n&&(--this.f.d,Sq(this)),n},f.gc=function(){return kBe(this)},f.Lc=function(){return cu(this),this.d.Lc()},f.Ib=function(){return cu(this),So(this.d)},M(Ot,"AbstractMapBasedMultimap/WrappedCollection",543);var Vu=er(kn,"List");E(739,543,{22:1,32:1,18:1,16:1},Bpe),f.gd=function(t){fm(this,t)},f.Lc=function(){return cu(this),this.d.Lc()},f._c=function(t,n){var i;cu(this),i=this.d.dc(),c(this.d,16)._c(t,n),++this.a.d,i&&J_(this)},f.ad=function(t,n){var i,r,o;return n.dc()?!1:(o=(cu(this),this.d.gc()),i=c(this.d,16).ad(t,n),i&&(r=this.d.gc(),this.a.d+=r-o,o==0&&J_(this)),i)},f.Xb=function(t){return cu(this),c(this.d,16).Xb(t)},f.bd=function(t){return cu(this),c(this.d,16).bd(t)},f.cd=function(){return cu(this),new ZBe(this)},f.dd=function(t){return cu(this),new OGe(this,t)},f.ed=function(t){var n;return cu(this),n=c(this.d,16).ed(t),--this.a.d,Sq(this),n},f.fd=function(t,n){return cu(this),c(this.d,16).fd(t,n)},f.hd=function(t,n){return cu(this),kUe(this.a,this.e,c(this.d,16).hd(t,n),this.b?this.b:this)},M(Ot,"AbstractMapBasedMultimap/WrappedList",739),E(1107,739,{22:1,32:1,18:1,16:1,59:1},zze),M(Ot,"AbstractMapBasedMultimap/RandomAccessWrappedList",1107),E(626,1,ns,dpe),f.Nb=function(t){ps(this,t)},f.Ob=function(){return oj(this),this.b.Ob()},f.Pb=function(){return oj(this),this.b.Pb()},f.Qb=function(){jze(this)},M(Ot,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",626),E(740,626,Ud,ZBe,OGe),f.Qb=function(){jze(this)},f.Rb=function(t){var n;n=kBe(this.a)==0,(oj(this),c(this.b,130)).Rb(t),++this.a.a.d,n&&J_(this.a)},f.Sb=function(){return(oj(this),c(this.b,130)).Sb()},f.Tb=function(){return(oj(this),c(this.b,130)).Tb()},f.Ub=function(){return(oj(this),c(this.b,130)).Ub()},f.Vb=function(){return(oj(this),c(this.b,130)).Vb()},f.Wb=function(t){(oj(this),c(this.b,130)).Wb(t)},M(Ot,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",740),E(738,543,nct,M0e),f.Lc=function(){return cu(this),this.d.Lc()},M(Ot,"AbstractMapBasedMultimap/WrappedSortedSet",738),E(1106,738,Qye,QBe),M(Ot,"AbstractMapBasedMultimap/WrappedNavigableSet",1106),E(1105,543,Il,lFe),f.Lc=function(){return cu(this),this.d.Lc()},M(Ot,"AbstractMapBasedMultimap/WrappedSet",1105),E(1114,1,{},P),f.Kb=function(t){return ZPt(c(t,45))},M(Ot,"AbstractMapBasedMultimap/lambda$1$Type",1114),E(1113,1,{},JK),f.Kb=function(t){return new $b(this.a,t)},M(Ot,"AbstractMapBasedMultimap/lambda$2$Type",1113);var Dm=er(kn,"Map/Entry");E(359,1,dre),f.Fb=function(t){var n;return he(t,45)?(n=c(t,45),S1(this.jd(),n.jd())&&S1(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 K(new zn)},f.Ib=function(){return this.jd()+"="+this.kd()},M(Ot,ict,359),E(2065,32,Dv),f.$b=function(){this.md().$b()},f.Gc=function(t){var n;return he(t,45)?(n=c(t,45),yLt(this.md(),n.jd(),n.kd())):!1},f.Kc=function(t){var n;return he(t,45)?(n=c(t,45),iUe(this.md(),n.jd(),n.kd())):!1},f.gc=function(){return this.md().d},M(Ot,"Multimaps/Entries",2065),E(744,2065,Dv,Oz),f.Jc=function(){return this.a.kc()},f.md=function(){return this.a},f.Lc=function(){return this.a.lc()},M(Ot,"AbstractMultimap/Entries",744),E(745,744,Il,_1e),f.Lc=function(){return this.a.lc()},f.Fb=function(t){return Ive(this,t)},f.Hb=function(){return gXe(this)},M(Ot,"AbstractMultimap/EntrySet",745),E(746,32,Dv,jz),f.$b=function(){this.a.$b()},f.Gc=function(t){return dBt(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(Ot,"AbstractMultimap/Values",746),E(2066,32,{841:1,22:1,32:1,18:1}),f.Ic=function(t){$n(t),Ay(this).Ic(new Az(t))},f.Lc=function(){var t;return t=Ay(this).Lc(),hie(t,new ne,64|t.wd()&1296,this.a.d)},f.Ec=function(t){return $1e(),!0},f.Fc=function(t){return $n(this),$n(t),he(t,544)?jLt(c(t,841)):!t.dc()&&Cte(this,t.Jc())},f.Gc=function(t){var n;return n=c(wv(R4(this.a),t),18),(n?n.gc():0)>0},f.Fb=function(t){return gWt(this,t)},f.Hb=function(){return zi(Ay(this))},f.dc=function(){return Ay(this).dc()},f.Kc=function(t){return cnt(this,t,1)>0},f.Ib=function(){return So(Ay(this))},M(Ot,"AbstractMultiset",2066),E(2068,2047,Il),f.$b=function(){_H(this.a.a)},f.Gc=function(t){var n,i;return he(t,493)?(i=c(t,421),c(i.a.kd(),18).gc()<=0?!1:(n=SQe(this.a,i.a.jd()),n==c(i.a.kd(),18).gc())):!1},f.Kc=function(t){var n,i,r,o;return he(t,493)&&(i=c(t,421),n=i.a.jd(),r=c(i.a.kd(),18).gc(),r!=0)?(o=this.a,aJt(o,n,r)):!1},M(Ot,"Multisets/EntrySet",2068),E(1120,2068,Il,WK),f.Jc=function(){return new dIe(cHe(R4(this.a.a)).Jc())},f.gc=function(){return R4(this.a.a).gc()},M(Ot,"AbstractMultiset/EntrySet",1120),E(625,737,Om),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(),CU},f.Fb=function(t){return rne(this,t)},f.pd=function(t){return c(Ti(this,t),24)},f.qd=function(t){return c(HD(this,t),24)},f.mc=function(t){return Mt(),new D6(c(t,24))},f.pc=function(t,n){return new lFe(this,t,c(n,24))},M(Ot,"AbstractSetMultimap",625),E(1706,625,Om),f.hc=function(){return new jg(this.b)},f.nd=function(){return new jg(this.b)},f.jc=function(){return Kpe(new jg(this.b))},f.od=function(){return Kpe(new jg(this.b))},f.cc=function(t){return c(c(Ti(this,t),24),85)},f.pd=function(t){return c(c(Ti(this,t),24),85)},f.fc=function(t){return c(c(HD(this,t),24),85)},f.qd=function(t){return c(c(HD(this,t),24),85)},f.mc=function(t){return he(t,279)?Kpe(c(t,279)):(Mt(),new b0e(c(t,85)))},f.Zb=function(){var t;return t=this.f,t||(this.f=he(this.c,141)?new XT(this,c(this.c,141)):he(this.c,136)?new G_(this,c(this.c,136)):new B6(this,this.c))},f.pc=function(t,n){return he(n,279)?new QBe(this,t,c(n,279)):new M0e(this,t,c(n,85))},M(Ot,"AbstractSortedSetMultimap",1706),E(1707,1706,Om),f.Zb=function(){var t;return t=this.f,c(c(t||(this.f=he(this.c,141)?new XT(this,c(this.c,141)):he(this.c,136)?new G_(this,c(this.c,136)):new B6(this,this.c)),136),141)},f.ec=function(){var t;return t=this.i,c(c(t||(this.i=he(this.c,141)?new $6(this,c(this.c,141)):he(this.c,136)?new x_(this,c(this.c,136)):new Ey(this,this.c)),85),279)},f.bc=function(){return he(this.c,141)?new $6(this,c(this.c,141)):he(this.c,136)?new x_(this,c(this.c,136)):new Ey(this,this.c)},M(Ot,"AbstractSortedKeySortedSetMultimap",1707),E(2088,1,{2025:1}),f.Fb=function(t){return tGt(this,t)},f.Hb=function(){var t;return vwe((t=this.g,t||(this.g=new e_(this))))},f.Ib=function(){var t;return Fet((t=this.f,t||(this.f=new l0e(this))))},M(Ot,"AbstractTable",2088),E(676,Mh,Il,e_),f.$b=function(){jIe()},f.Gc=function(t){var n,i;return he(t,471)?(n=c(t,694),i=c(wv(LHe(this.a),S0(n.c.e,n.b)),93),!!i&&Wwe(i.vc(),new $b(S0(n.c.c,n.a),H4(n.c,n.b,n.a)))):!1},f.Jc=function(){return S_t(this.a)},f.Kc=function(t){var n,i;return he(t,471)?(n=c(t,694),i=c(wv(LHe(this.a),S0(n.c.e,n.b)),93),!!i&&XBt(i.vc(),new $b(S0(n.c.c,n.a),H4(n.c,n.b,n.a)))):!1},f.gc=function(){return Iqe(this.a)},f.Lc=function(){return ELt(this.a)},M(Ot,"AbstractTable/CellSet",676),E(2004,32,Dv,VK),f.$b=function(){jIe()},f.Gc=function(t){return QGt(this.a,t)},f.Jc=function(){return T_t(this.a)},f.gc=function(){return Iqe(this.a)},f.Lc=function(){return YQe(this.a)},M(Ot,"AbstractTable/Values",2004),E(1679,1678,Om),M(Ot,"ArrayListMultimapGwtSerializationDependencies",1679),E(510,1679,Om,AY,Nme),f.hc=function(){return new Wc(this.a)},f.a=0,M(Ot,"ArrayListMultimap",510),E(675,2088,{675:1,2025:1,3:1},ont),M(Ot,"ArrayTable",675),E(2e3,394,rS,yze),f.Xb=function(t){return new mwe(this.a,t)},M(Ot,"ArrayTable/1",2e3),E(2001,1,{},XK),f.rd=function(t){return new mwe(this.a,t)},M(Ot,"ArrayTable/1methodref$getCell$Type",2001),E(2089,1,{694:1}),f.Fb=function(t){var n;return t===this?!0:he(t,471)?(n=c(t,694),S1(S0(this.c.e,this.b),S0(n.c.e,n.b))&&S1(S0(this.c.c,this.a),S0(n.c.c,n.a))&&S1(H4(this.c,this.b,this.a),H4(n.c,n.b,n.a))):!1},f.Hb=function(){return YH(ee(Z(Br,1),It,1,5,[S0(this.c.e,this.b),S0(this.c.c,this.a),H4(this.c,this.b,this.a)]))},f.Ib=function(){return"("+S0(this.c.e,this.b)+","+S0(this.c.c,this.a)+")="+H4(this.c,this.b,this.a)},M(Ot,"Tables/AbstractCell",2089),E(471,2089,{471:1,694:1},mwe),f.a=0,f.b=0,f.d=0,M(Ot,"ArrayTable/2",471),E(2003,1,{},Sz),f.rd=function(t){return pWe(this.a,t)},M(Ot,"ArrayTable/2methodref$getValue$Type",2003),E(2002,394,rS,kze),f.Xb=function(t){return pWe(this.a,t)},M(Ot,"ArrayTable/3",2002),E(2056,2044,xw),f.$b=function(){wq(this.kc())},f.vc=function(){return new rT(this)},f.lc=function(){return new gGe(this.kc(),this.gc())},M(Ot,"Maps/IteratorBasedAbstractMap",2056),E(834,2056,xw),f.$b=function(){throw K(new zn)},f._b=function(t){return zIe(this.c,t)},f.kc=function(){return new Oze(this,this.c.b.c.gc())},f.lc=function(){return ree(this.c.b.c.gc(),16,new X5(this))},f.xc=function(t){var n;return n=c(KT(this.c,t),15),n?this.td(n.a):null},f.dc=function(){return this.c.b.c.dc()},f.ec=function(){return dee(this.c)},f.yc=function(t,n){var i;if(i=c(KT(this.c,t),15),!i)throw K(new Ht(this.sd()+" "+t+" not in "+dee(this.c)));return this.ud(i.a,n)},f.Ac=function(t){throw K(new zn)},f.gc=function(){return this.c.b.c.gc()},M(Ot,"ArrayTable/ArrayMap",834),E(1999,1,{},X5),f.rd=function(t){return PHe(this.a,t)},M(Ot,"ArrayTable/ArrayMap/0methodref$getEntry$Type",1999),E(1997,359,dre,bRe),f.jd=function(){return F7t(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(Ot,"ArrayTable/ArrayMap/1",1997),E(1998,394,rS,Oze),f.Xb=function(t){return PHe(this.a,t)},M(Ot,"ArrayTable/ArrayMap/2",1998),E(1996,834,xw,jHe),f.sd=function(){return"Column"},f.td=function(t){return H4(this.b,this.a,t)},f.ud=function(t,n){return ZXe(this.b,this.a,t,n)},f.a=0,M(Ot,"ArrayTable/Row",1996),E(835,834,xw,l0e),f.td=function(t){return new jHe(this.a,t)},f.yc=function(t,n){return c(n,93),a8t()},f.ud=function(t,n){return c(n,93),f8t()},f.sd=function(){return"Row"},M(Ot,"ArrayTable/RowMap",835),E(1138,1,Ju,wRe),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 xRe(t,this.b))},f.zd=function(t){return this.a.zd(new vRe(t,this.b))},M(Ot,"CollectSpliterators/1",1138),E(1139,1,un,vRe),f.Ad=function(t){this.a.Ad(this.b.Kb(t))},M(Ot,"CollectSpliterators/1/lambda$0$Type",1139),E(1140,1,un,xRe),f.Ad=function(t){this.a.Ad(this.b.Kb(t))},M(Ot,"CollectSpliterators/1/lambda$1$Type",1140),E(1135,1,Ju,GFe),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 kRe(t,this.c))},f.zd=function(t){return this.a.Pe(new yRe(t,this.c))},f.b=0,M(Ot,"CollectSpliterators/1WithCharacteristics",1135),E(1136,1,EL,yRe),f.Bd=function(t){this.a.Ad(this.b.rd(t))},M(Ot,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1136),E(1137,1,EL,kRe),f.Bd=function(t){this.a.Ad(this.b.rd(t))},M(Ot,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1137),E(1131,1,Ju),f.yd=function(t){return(this.a&t)!=0},f.wd=function(){return this.a},f.xd=function(){return this.e&&(this.b=Yge(this.b,this.e.xd())),Yge(this.b,0)},f.Nb=function(t){this.e&&(this.e.Nb(t),this.e=null),this.c.Nb(new ORe(this,t)),this.b=0},f.zd=function(t){for(;;){if(this.e&&this.e.zd(t))return FT(this.b,ML)&&(this.b=Ga(this.b,1)),!0;if(this.e=null,!this.c.zd(new i_(this)))return!1}},f.a=0,f.b=0,M(Ot,"CollectSpliterators/FlatMapSpliterator",1131),E(1133,1,un,i_),f.Ad=function(t){DCt(this.a,t)},M(Ot,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1133),E(1134,1,un,ORe),f.Ad=function(t){r_t(this.a,this.b,t)},M(Ot,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1134),E(1132,1131,Ju,OUe),M(Ot,"CollectSpliterators/FlatMapSpliteratorOfObject",1132),E(257,1,gre),f.Dd=function(t){return this.Cd(c(t,257))},f.Cd=function(t){var n;return t==(OY(),Zoe)?1:t==(kY(),Yoe)?-1:(n=(pq(),_D(this.a,t.a)),n!=0?n:(zt(),he(this,517)==he(t,517)?0:he(this,517)?1:-1))},f.Gd=function(){return this.a},f.Fb=function(t){return q2e(this,t)},M(Ot,"Cut",257),E(1810,257,gre,oIe),f.Cd=function(t){return t==this?0:1},f.Ed=function(t){throw K(new p1e)},f.Fd=function(t){t.a+="+∞)"},f.Gd=function(){throw K(new oo(sct))},f.Hb=function(){return Sg(),M2e(this)},f.Hd=function(t){return!1},f.Ib=function(){return"+∞"};var Yoe;M(Ot,"Cut/AboveAll",1810),E(517,257,{257:1,517:1,3:1,34:1},Cze),f.Ed=function(t){Mc((t.a+="(",t),this.a)},f.Fd=function(t){tm(Mc(t,this.a),93)},f.Hb=function(){return~zi(this.a)},f.Hd=function(t){return pq(),_D(this.a,t)<0},f.Ib=function(){return"/"+this.a+"\\"},M(Ot,"Cut/AboveValue",517),E(1809,257,gre,sIe),f.Cd=function(t){return t==this?0:-1},f.Ed=function(t){t.a+="(-∞"},f.Fd=function(t){throw K(new p1e)},f.Gd=function(){throw K(new oo(sct))},f.Hb=function(){return Sg(),M2e(this)},f.Hd=function(t){return!0},f.Ib=function(){return"-∞"};var Zoe;M(Ot,"Cut/BelowAll",1809),E(1811,257,gre,Eze),f.Ed=function(t){Mc((t.a+="[",t),this.a)},f.Fd=function(t){tm(Mc(t,this.a),41)},f.Hb=function(){return zi(this.a)},f.Hd=function(t){return pq(),_D(this.a,t)<=0},f.Ib=function(){return"\\"+this.a+"/"},M(Ot,"Cut/BelowValue",1811),E(539,1,Jd),f.Ic=function(t){ws(this,t)},f.Ib=function(){return gzt(c(qq(this,"use Optional.orNull() instead of Optional.or(null)"),22).Jc())},M(Ot,"FluentIterable",539),E(438,539,Jd,GT),f.Jc=function(){return new Gt(Xt(this.a.Jc(),new z))},M(Ot,"FluentIterable/2",438),E(36,1,{},z),f.Kb=function(t){return c(t,22).Jc()},f.Fb=function(t){return this===t},M(Ot,"FluentIterable/2/0methodref$iterator$Type",36),E(1051,539,Jd,DBe),f.Jc=function(){return Bd(this)},M(Ot,"FluentIterable/3",1051),E(721,394,rS,h0e),f.Xb=function(t){return this.a[t].Jc()},M(Ot,"FluentIterable/3/1",721),E(2049,1,{}),f.Ib=function(){return So(this.Id().b)},M(Ot,"ForwardingObject",2049),E(2050,2049,oct),f.Id=function(){return this.Jd()},f.Ic=function(t){ws(this,t)},f.Lc=function(){return new Ct(this,0)},f.Mc=function(){return new Tt(null,this.Lc())},f.Ec=function(t){return this.Jd(),QIe()},f.Fc=function(t){return this.Jd(),UIe()},f.$b=function(){this.Jd(),JIe()},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(),WIe()},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(Ot,"ForwardingCollection",2050),E(2057,32,Uye),f.Jc=function(){return this.Md()},f.Ec=function(t){throw K(new zn)},f.Fc=function(t){throw K(new zn)},f.Kd=function(){var t;return t=this.c,t||(this.c=this.Ld())},f.$b=function(){throw K(new zn)},f.Gc=function(t){return t!=null&&vv(this,t,!1)},f.Ld=function(){switch(this.gc()){case 0:return vq(),nce;case 1:return new qZ($n(this.Md().Pb()));default:return new hpe(this,this.Nc())}},f.Kc=function(t){throw K(new zn)},M(Ot,"ImmutableCollection",2057),E(1271,2057,Uye,Ez),f.Jc=function(){return G4(new hy(this.a.b.Jc()))},f.Gc=function(t){return t!=null&&yT(this.a,t)},f.Hc=function(t){return ege(this.a,t)},f.dc=function(){return this.a.b.dc()},f.Md=function(){return G4(new hy(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 tge(this.a,t)},f.Ib=function(){return So(this.a.b)},M(Ot,"ForwardingImmutableCollection",1271),E(312,2057,sS),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){fm(this,t)},f.Lc=function(){return new Ct(this,16)},f.hd=function(t,n){return this.Od(t,n)},f._c=function(t,n){throw K(new zn)},f.ad=function(t,n){throw K(new zn)},f.Kd=function(){return this},f.Fb=function(t){return rWt(this,t)},f.Hb=function(){return k$t(this)},f.bd=function(t){return t==null?-1:Dqt(this,t)},f.Md=function(){return this.Nd(0)},f.Nd=function(t){return IZ(this,t)},f.ed=function(t){throw K(new zn)},f.fd=function(t,n){throw K(new zn)},f.Od=function(t,n){var i;return sG((i=new LRe(this),new nd(i,t,n)))},M(Ot,"ImmutableList",312),E(2084,312,sS),f.Jc=function(){return G4(this.Pd().Jc())},f.hd=function(t,n){return sG(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 ki(this.Pd(),t)},f.Xb=function(t){return S0(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 G4(this.Pd().Jc())},f.gc=function(){return this.Pd().gc()},f.Od=function(t,n){return sG(this.Pd().hd(t,n))},f.Nc=function(){return this.Pd().Oc(Ce(Br,It,1,this.Pd().gc(),5,1))},f.Oc=function(t){return this.Pd().Oc(t)},f.Ib=function(){return So(this.Pd())},M(Ot,"ForwardingImmutableList",2084),E(724,1,oS),f.vc=function(){return Kp(this)},f.wc=function(t){DD(this,t)},f.ec=function(){return dee(this)},f.Bc=function(){return this.Td()},f.$b=function(){throw K(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 K5(this)},f.Sd=function(){return new x6(this)},f.Fb=function(t){return gBt(this,t)},f.Hb=function(){return Kp(this).Hb()},f.dc=function(){return this.gc()==0},f.yc=function(t,n){return h8t()},f.Ac=function(t){throw K(new zn)},f.Ib=function(){return BQt(this)},f.Td=function(){return this.e?this.e:this.e=this.Sd()},f.c=null,f.d=null,f.e=null,M(Ot,"ImmutableMap",724),E(725,724,oS),f._b=function(t){return zIe(this,t)},f.uc=function(t){return $Re(this.b,t)},f.Qd=function(){return RKe(new n_(this))},f.Rd=function(){return RKe(iGe(this.b))},f.Sd=function(){return new Ez(nGe(this.b))},f.Fb=function(t){return BRe(this.b,t)},f.xc=function(t){return KT(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 So(this.b.c)},M(Ot,"ForwardingImmutableMap",725),E(2051,2050,pre),f.Id=function(){return this.Ud()},f.Jd=function(){return this.Ud()},f.Lc=function(){return new Ct(this,1)},f.Fb=function(t){return t===this||this.Ud().Fb(t)},f.Hb=function(){return this.Ud().Hb()},M(Ot,"ForwardingSet",2051),E(1066,2051,pre,n_),f.Id=function(){return ij(this.a.b)},f.Jd=function(){return ij(this.a.b)},f.Gc=function(t){if(he(t,45)&&c(t,45).jd()==null)return!1;try{return RRe(ij(this.a.b),t)}catch(n){if(n=kr(n),he(n,214))return!1;throw K(n)}},f.Ud=function(){return ij(this.a.b)},f.Oc=function(t){var n,i;return n=GGe(ij(this.a.b),t),ij(this.a.b).b.gc()<n.length&&(i=n,br(i,ij(this.a.b).b.gc(),null)),n},M(Ot,"ForwardingImmutableMap/1",1066),E(2058,2057,dk),f.Jc=function(){return this.Md()},f.Lc=function(){return new Ct(this,1)},f.Fb=function(t){return Ive(this,t)},f.Hb=function(){return gXe(this)},M(Ot,"ImmutableSet",2058),E(716,2058,dk),f.Jc=function(){return G4(new hy(this.a.b.Jc()))},f.Gc=function(t){return t!=null&&yT(this.a,t)},f.Hc=function(t){return ege(this.a,t)},f.Hb=function(){return zi(this.a.b)},f.dc=function(){return this.a.b.dc()},f.Md=function(){return G4(new hy(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 tge(this.a,t)},f.Ib=function(){return So(this.a.b)},M(Ot,"ForwardingImmutableSet",716),E(2052,2051,cct),f.Id=function(){return this.b},f.Jd=function(){return this.b},f.Ud=function(){return this.b},f.Lc=function(){return new bF(this)},M(Ot,"ForwardingSortedSet",2052),E(535,2056,oS,jG),f.zc=function(t){T7(this,t)},f.Bc=function(){var t;return t=this.d,new AZ(t||(this.d=new nT(this)))},f.$b=function(){dD(this)},f._b=function(t){return!!j7(this,t,Qn(js(Wd,zd(Qn(js(t==null?0:zi(t),Vd)),15))))},f.uc=function(t){return kVe(this,t)},f.kc=function(){return new _ze(this,this)},f.wc=function(t){rQe(this,t)},f.xc=function(t){return Iy(this,t)},f.ec=function(){return new NZ(this)},f.yc=function(t,n){return nQ(this,t,n)},f.Ac=function(t){var n;return n=j7(this,t,Qn(js(Wd,zd(Qn(js(t==null?0:zi(t),Vd)),15)))),n?(Vy(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 AZ(t||(this.d=new nT(this)))},f.f=0,f.g=0,f.i=0,M(Ot,"HashBiMap",535),E(536,1,ns),f.Nb=function(t){ps(this,t)},f.Ob=function(){return SUe(this)},f.Pb=function(){var t;if(!SUe(this))throw K(new Eo);return t=c(Fa(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 K(new fa);if(!this.f)throw K(new oo(Hye));Vy(this.e,this.f),this.b=this.e.g,this.f=null},f.b=0,f.d=0,f.f=null,M(Ot,"HashBiMap/Itr",536),E(1016,536,ns,_ze),f.Vd=function(t){return new jRe(this,t)},M(Ot,"HashBiMap/1",1016),E(1017,359,dre,jRe),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=Qn(js(Wd,zd(Qn(js(t==null?0:zi(t),Vd)),15))),r==this.a.f&&(Se(t)===Se(i)||t!=null&&ki(t,i))?t:(eKe(!S7(this.b.a,t,r),t),Vy(this.b.a,this.a),n=new Rq(this.a.g,this.a.a,t,r),uL(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(Ot,"HashBiMap/1/MapEntry",1017),E(247,359,{359:1,247:1,3:1,45:1},$b),f.jd=function(){return this.g},f.kd=function(){return this.i},f.ld=function(t){throw K(new zn)},M(Ot,"ImmutableEntry",247),E(309,247,{359:1,309:1,247:1,3:1,45:1},Rq),f.a=0,f.f=0;var ece=M(Ot,"HashBiMap/BiEntry",309);E(616,2056,oS,nT),f.zc=function(t){T7(this,t)},f.Bc=function(){return new NZ(this.a)},f.$b=function(){dD(this.a)},f._b=function(t){return kVe(this.a,t)},f.kc=function(){return new Dze(this,this.a)},f.wc=function(t){$n(t),rQe(this.a,new KK(t))},f.xc=function(t){return LH(this,t)},f.ec=function(){return new AZ(this)},f.yc=function(t,n){return fYt(this.a,t,n)},f.Ac=function(t){var n;return n=S7(this.a,t,Qn(js(Wd,zd(Qn(js(t==null?0:zi(t),Vd)),15)))),n?(Vy(this.a,n),n.e=null,n.c=null,n.g):null},f.gc=function(){return this.a.i},f.vd=function(){return new NZ(this.a)},M(Ot,"HashBiMap/Inverse",616),E(1013,536,ns,Dze),f.Vd=function(t){return new SRe(this,t)},M(Ot,"HashBiMap/Inverse/1",1013),E(1014,359,dre,SRe),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=Qn(js(Wd,zd(Qn(js(t==null?0:zi(t),Vd)),15))),n==this.a.a&&(Se(t)===Se(r)||t!=null&&ki(t,r))?t:(eKe(!j7(this.b.a.a,t,n),t),Vy(this.b.a.a,this.a),i=new Rq(t,n,this.a.i,this.a.f),this.a=i,uL(this.b.a.a,i,null),this.b.b=this.b.a.a.g,r)},M(Ot,"HashBiMap/Inverse/1/InverseEntry",1014),E(617,534,Il,AZ),f.Jc=function(){return new uIe(this.a.a)},f.Kc=function(t){var n;return n=S7(this.a.a,t,Qn(js(Wd,zd(Qn(js(t==null?0:zi(t),Vd)),15)))),n?(Vy(this.a.a,n),!0):!1},M(Ot,"HashBiMap/Inverse/InverseKeySet",617),E(1012,536,ns,uIe),f.Vd=function(t){return t.i},M(Ot,"HashBiMap/Inverse/InverseKeySet/1",1012),E(1015,1,{},KK),f.Wd=function(t,n){q9t(this.a,t,n)},M(Ot,"HashBiMap/Inverse/lambda$0$Type",1015),E(615,534,Il,NZ),f.Jc=function(){return new aIe(this.a)},f.Kc=function(t){var n;return n=j7(this.a,t,Qn(js(Wd,zd(Qn(js(t==null?0:zi(t),Vd)),15)))),n?(Vy(this.a,n),n.e=null,n.c=null,!0):!1},M(Ot,"HashBiMap/KeySet",615),E(1011,536,ns,aIe),f.Vd=function(t){return t.g},M(Ot,"HashBiMap/KeySet/1",1011),E(1104,625,Om),M(Ot,"HashMultimapGwtSerializationDependencies",1104),E(274,1104,Om,Zb),f.hc=function(){return new tF(mv(this.a))},f.nd=function(){return new tF(mv(this.a))},f.a=2,M(Ot,"HashMultimap",274),E(2076,312,sS),f.Gc=function(t){return this.Xd().Gc(t)},f.dc=function(){return this.Xd().dc()},f.gc=function(){return this.Xd().gc()},M(Ot,"ImmutableAsList",2076),E(2009,725,oS),f.Td=function(){return new o4(this.a)},f.Bc=function(){return new o4(this.a)},f.vd=function(){return new o4(this.a)},M(Ot,"ImmutableBiMap",2009),E(2054,1,{}),M(Ot,"ImmutableCollection/Builder",2054),E(1027,716,dk,fIe),M(Ot,"ImmutableEnumSet",1027),E(971,394,rS,HFe),f.Xb=function(t){return this.a.Xb(t)},M(Ot,"ImmutableList/1",971),E(970,2054,{},bFe),M(Ot,"ImmutableList/Builder",970),E(620,206,iS,t_),f.Ob=function(){return this.a.Ob()},f.Pb=function(){return c(this.a.Pb(),45).jd()},M(Ot,"ImmutableMap/1",620),E(1046,1,{},I),f.Kb=function(t){return c(t,45).jd()},M(Ot,"ImmutableMap/2methodref$getKey$Type",1046),E(1045,1,{},wFe),M(Ot,"ImmutableMap/Builder",1045),E(2077,2058,dk),f.Kd=function(){var t;return t=this.b,t||(this.b=new Y5(this))},f.Ld=function(){return new hpe(this,H7(this,Ce(Br,It,1,this.gc(),5,1)))},M(Ot,"ImmutableSet/CachingAsList",2077),E(2078,2077,dk),f.Jc=function(){var t;return t=Kp(this.a).Md(),new t_(t)},f.Ld=function(){return new Y5(this)},f.Ic=function(t){var n,i;for($n(t),i=this.gc(),n=0;n<i;n++)t.Ad(c(Kp(this.a).Kd().Xb(n),45).jd())},f.Md=function(){var t;return t=this.b,IZ(t||(this.b=new Y5(this)),0)},f.Lc=function(){return ree(this.gc(),1296,new Cz(this))},M(Ot,"IndexedImmutableSet",2078),E(1207,2078,dk,K5),f.Jc=function(){var t;return t=Kp(this.a).Md(),new t_(t)},f.Gc=function(t){return this.a._b(t)},f.Ic=function(t){$n(t),DD(this.a,new Tz(t))},f.Md=function(){var t;return t=Kp(this.a).Md(),new t_(t)},f.gc=function(){return this.a.gc()},f.Lc=function(){return K_(Kp(this.a).Lc(),new I)},M(Ot,"ImmutableMapKeySet",1207),E(1208,1,{},Tz),f.Wd=function(t,n){this.a.Ad(t)},M(Ot,"ImmutableMapKeySet/lambda$0$Type",1208),E(1204,2057,Uye,x6),f.Jc=function(){return new nee(this)},f.Kd=function(){var t;return t=Kp(this.a).Kd(),new MRe(this,t)},f.Gc=function(t){return t!=null&&eGt(new nee(this),t)},f.Md=function(){return new nee(this)},f.gc=function(){return this.a.gc()},f.Lc=function(){return K_(Kp(this.a).Lc(),new q)},M(Ot,"ImmutableMapValues",1204),E(1205,1,{},q),f.Kb=function(t){return c(t,45).kd()},M(Ot,"ImmutableMapValues/0methodref$getValue$Type",1205),E(635,206,iS,nee),f.Ob=function(){return this.a.Ob()},f.Pb=function(){return c(this.a.Pb(),45).kd()},M(Ot,"ImmutableMapValues/1",635),E(1206,2076,sS,MRe),f.Xd=function(){return this.a},f.Xb=function(t){return c(this.b.Xb(t),45).kd()},M(Ot,"ImmutableMapValues/2",1206),E(1209,1,{},Cz),f.rd=function(t){return zHe(this.a,t)},M(Ot,"IndexedImmutableSet/0methodref$get$Type",1209),E(636,2076,sS,Y5),f.Xd=function(){return this.a},f.Xb=function(t){return zHe(this.a,t)},f.gc=function(){return this.a.a.gc()},M(Ot,"IndexedImmutableSet/1",636),E(1047,539,Jd,xqe),f.Ic=function(t){$n(t),this.b.Ic(new TRe(this.a,t))},f.Jc=function(){return Vge(this)},M(Ot,"Iterables/4",1047),E(1048,1,un,TRe),f.Ad=function(t){gTt(this.b,this.a,t)},M(Ot,"Iterables/4/lambda$0$Type",1048),E(1049,539,Jd,yqe),f.Ic=function(t){$n(t),ws(this.a,new ERe(t,this.b))},f.Jc=function(){return Xt(new ln(this.a),this.b)},M(Ot,"Iterables/5",1049),E(1050,1,un,ERe),f.Ad=function(t){this.a.Ad(HBe(t))},M(Ot,"Iterables/5/lambda$0$Type",1050),E(1068,206,iS,Mz),f.Ob=function(){return this.a.Ob()},f.Pb=function(){return this.a.Pb()},M(Ot,"Iterators/1",1068),E(1069,709,iS,CRe),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(Ot,"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(Ot,"TransformedIterator",486),E(1070,486,ns,Aze),f.Yd=function(t){return this.a.Kb(t)},M(Ot,"Iterators/6",1070),E(1067,394,rS,kqe),f.Xb=function(t){return this.a[t]};var qft;M(Ot,"Iterators/ArrayItr",1067),E(35,1,{35:1,51:1},Gt),f.Nb=function(t){ps(this,t)},f.Ob=function(){return gn(this)},f.Pb=function(){return on(this)},f.Qb=function(){if(!this.c)throw K(new oo(Hye));this.c.Qb(),this.c=null},M(Ot,"Iterators/ConcatenatedIterator",35),E(23,1,{3:1,34:1,23:1}),f.Dd=function(t){return bIe(this,c(t,23))},f.Fb=function(t){return this===t},f.Hb=function(){return Hb(this)},f.Ib=function(){return RZ(this)},f.g=0;var Sn=M(Vo,"Enum",23);E(541,23,{541:1,3:1,34:1,23:1,51:1},dze),f.Nb=function(t){ps(this,t)},f.Ob=function(){return!1},f.Pb=function(){throw K(new Eo)},f.Qb=function(){W6(!1)};var tce,Hft=vn(Ot,"Iterators/EmptyModifiableIterator",541,Sn,ONt,H7t),Gft;E(727,206,iS,O6),f.Ob=function(){return!this.a},f.Pb=function(){if(this.a)throw K(new Eo);return this.a=!0,this.b},f.a=!1,M(Ot,"Iterators/SingletonIterator",727),E(1894,625,Om),M(Ot,"LinkedHashMultimapGwtSerializationDependencies",1894),E(1895,1894,Om,BKe),f.hc=function(){return new PZ(mv(this.b))},f.$b=function(){_H(this),h_(this.a,this.a)},f.nd=function(){return new PZ(mv(this.b))},f.ic=function(t){return new CKe(this,t,this.b)},f.kc=function(){return new Zpe(this)},f.lc=function(){var t;return new Ct((t=this.g,c(t||(this.g=new _1e(this)),24)),17)},f.ec=function(){var t;return t=this.i,t||(this.i=new Ey(this,this.c))},f.nc=function(){return new L1e(new Zpe(this))},f.oc=function(){var t;return K_(new Ct((t=this.g,c(t||(this.g=new _1e(this)),24)),17),new X)},f.b=2,M(Ot,"LinkedHashMultimap",1895),E(1898,1,{},X),f.Kb=function(t){return c(t,45).kd()},M(Ot,"LinkedHashMultimap/0methodref$getValue$Type",1898),E(826,1,ns,Zpe),f.Nb=function(t){ps(this,t)},f.Pb=function(){return v$t(this)},f.Ob=function(){return this.a!=this.b.a},f.Qb=function(){W6(!!this.c),iUe(this.b,this.c.g,this.c.i),this.c=null},M(Ot,"LinkedHashMultimap/1",826),E(229,247,{359:1,247:1,229:1,600:1,3:1,45:1},ume),f.Zd=function(){return c(Fa(this.f),600)},f.$d=function(t){this.c=t},f._d=function(t){this.f=t},f.d=0;var Qft=M(Ot,"LinkedHashMultimap/ValueEntry",229);E(1896,2047,{600:1,22:1,32:1,18:1,24:1},CKe),f.Ec=function(t){var n,i,r,o,a;for(a=Qn(js(Wd,zd(Qn(js(t==null?0:zi(t),Vd)),15))),n=a&this.b.length-1,o=this.b[n],i=o;i;i=i.a)if(i.d==a&&S1(i.i,t))return!1;return r=new ume(this.c,t,a,o),MIe(this.d,r),r.f=this,this.d=r,h_(c(Fa(this.g.a.b),229),r),h_(r,this.g.a),this.b[n]=r,++this.f,++this.e,KHt(this),!0},f.$b=function(){var t,n;for(j_(this.b,null),this.f=0,t=this.a;t!=this;t=t.Zd())n=c(t,229),h_(c(Fa(n.b),229),c(Fa(n.e),229));this.a=this,this.d=this,++this.e},f.Gc=function(t){var n,i;for(i=Qn(js(Wd,zd(Qn(js(t==null?0:zi(t),Vd)),15))),n=this.b[i&this.b.length-1];n;n=n.a)if(n.d==i&&S1(n.i,t))return!0;return!1},f.Ic=function(t){var n;for($n(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 XHe(this)},f.Kc=function(t){return Nit(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(Ot,"LinkedHashMultimap/ValueSet",1896),E(1897,1,ns,XHe),f.Nb=function(t){ps(this,t)},f.Ob=function(){return Epe(this),this.b!=this.c},f.Pb=function(){var t,n;if(Epe(this),this.b==this.c)throw K(new Eo);return t=c(this.b,229),n=t.i,this.d=t,this.b=c(Fa(t.f),600),n},f.Qb=function(){Epe(this),W6(!!this.d),Nit(this.c,this.d.i),this.a=this.c.e,this.d=null},f.a=0,M(Ot,"LinkedHashMultimap/ValueSet/1",1897),E(774,2063,Om,ABe),f.Zb=function(){var t;return t=this.f,t||(this.f=new hge(this))},f.Fb=function(t){return rne(this,t)},f.cc=function(t){return new IY(this,t)},f.fc=function(t){return dbe(this,t)},f.$b=function(){THe(this)},f._b=function(t){return IRe(this,t)},f.ac=function(){return new hge(this)},f.bc=function(){return new iT(this)},f.qc=function(t){return new IY(this,t)},f.dc=function(){return!this.a},f.rc=function(t){return dbe(this,t)},f.gc=function(){return this.d},f.c=0,f.d=0,M(Ot,"LinkedListMultimap",774),E(56,32,cS),f.gd=function(t){fm(this,t)},f.Lc=function(){return new Ct(this,16)},f._c=function(t,n){throw K(new yg("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(Ft(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 wxe(this,t)},f.Hb=function(){return Cwe(this)},f.bd=function(t){return UVe(this,t)},f.Jc=function(){return new uT(this)},f.cd=function(){return this.dd(0)},f.dd=function(t){return new ss(this,t)},f.ed=function(t){throw K(new yg("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 K(new yg("Set not supported on this list"))},f.hd=function(t,n){return new nd(this,t,n)},f.j=0,M(kn,"AbstractList",56),E(2041,56,cS),f._c=function(t,n){G6(this,t,n)},f.ad=function(t,n){return AKe(this,t,n)},f.Xb=function(t){return vc(this,t)},f.Jc=function(){return this.dd(0)},f.ed=function(t){return nie(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),he(o,113)?K(new Qc("Can't set element "+t)):K(o)}},M(kn,"AbstractSequentialList",2041),E(643,2041,cS,IY),f.dd=function(t){return Mze(this,t)},f.gc=function(){var t;return t=c(Jt(this.a.b,this.b),263),t?t.a:0},M(Ot,"LinkedListMultimap/1",643),E(1292,2047,Il,iT),f.Gc=function(t){return IRe(this.a,t)},f.Jc=function(){return new wXe(this.a)},f.Kc=function(t){return!dbe(this.a,t).a.dc()},f.gc=function(){return kT(this.a.b)},M(Ot,"LinkedListMultimap/1KeySetImpl",1292),E(1291,1,ns,wXe),f.Nb=function(t){ps(this,t)},f.Ob=function(){return Mpe(this),!!this.c},f.Pb=function(){if(Mpe(this),!this.c)throw K(new Eo);this.a=this.c,Cr(this.d,this.a.a);do this.c=this.c.b;while(this.c&&!Cr(this.d,this.c.a));return this.a.a},f.Qb=function(){Mpe(this),W6(!!this.a),wq(new Ote(this.e,this.a.a)),this.a=null,this.b=this.e.c},f.b=0,M(Ot,"LinkedListMultimap/DistinctKeyIterator",1291),E(263,1,{263:1},wme),f.a=0,M(Ot,"LinkedListMultimap/KeyList",263),E(501,359,{359:1,501:1,45:1},ARe),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(Ot,"LinkedListMultimap/Node",501),E(562,1,Ud,Ote,Ptt),f.Nb=function(t){ps(this,t)},f.Rb=function(t){this.e=tye(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 Nbe(this)},f.Tb=function(){return this.d},f.Ub=function(){return ZWe(this)},f.Vb=function(){return this.d-1},f.Qb=function(){W6(!!this.a),this.a!=this.c?(this.e=this.a.e,--this.d):this.c=this.a.c,nVt(this.f,this.a),this.a=null},f.Wb=function(t){a0e(!!this.a),this.a.f=t},f.d=0,M(Ot,"LinkedListMultimap/ValueForKeyIterator",562),E(1023,56,cS),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(Ot,"Lists/AbstractListWrapper",1023),E(Ua,1023,uct),M(Ot,"Lists/RandomAccessListWrapper",Ua),E(1026,Ua,uct,LRe),f.dd=function(t){return this.a.dd(t)},M(Ot,"Lists/1",1026),E(437,56,{437:1,22:1,32:1,56:1,18:1,16:1},Z1e),f._c=function(t,n){this.a._c(Z6(this,t),n)},f.$b=function(){this.a.$b()},f.Xb=function(t){return this.a.Xb(Ype(this,t))},f.Jc=function(){return DQe(this,0)},f.dd=function(t){return DQe(this,t)},f.ed=function(t){return this.a.ed(Ype(this,t))},f.ae=function(t,n){(aUe(t,n,this.a.gc()),Tu(this.a.hd(Z6(this,n),Z6(this,t)))).$b()},f.fd=function(t,n){return this.a.fd(Ype(this,t),n)},f.gc=function(){return this.a.gc()},f.hd=function(t,n){return aUe(t,n,this.a.gc()),Tu(this.a.hd(Z6(this,n),Z6(this,t)))},M(Ot,"Lists/ReverseList",437),E(1022,437,{437:1,22:1,32:1,56:1,18:1,16:1,59:1},hIe),M(Ot,"Lists/RandomAccessReverseList",1022),E(1025,1,Ud,NRe),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 K(new Eo);return this.a=!0,this.c.Ub()},f.Tb=function(){return Z6(this.b,this.c.Tb())},f.Ub=function(){if(!this.c.Ob())throw K(new Eo);return this.a=!0,this.c.Pb()},f.Vb=function(){return Z6(this.b,this.c.Tb())-1},f.Qb=function(){W6(this.a),this.c.Qb(),this.a=!1},f.Wb=function(t){a0e(this.a),this.c.Wb(t)},f.a=!1,M(Ot,"Lists/ReverseList/1",1025),E(436,486,ns,mT),f.Yd=function(t){return mF(t)},M(Ot,"Maps/1",436),E(708,486,ns,L1e),f.Yd=function(t){return c(t,45).kd()},M(Ot,"Maps/2",708),E(967,486,ns,Nze),f.Yd=function(t){return new $b(t,FIe(this.a,t))},M(Ot,"Maps/3",967),E(964,F1,Il,rT),f.Ic=function(t){W9t(this.a,t)},f.Jc=function(){return this.a.kc()},f.Pc=function(){return this.a},f.Lc=function(){return this.a.lc()},M(Ot,"Maps/IteratorBasedAbstractMap/1",964),E(965,1,{},r_),f.Wd=function(t,n){this.a.Ad(t)},M(Ot,"Maps/KeySet/lambda$0$Type",965),E(963,32,Dv,PRe),f.$b=function(){this.a.$b()},f.Gc=function(t){return this.a.uc(t)},f.Ic=function(t){$n(t),this.a.wc(new ZK(t))},f.dc=function(){return this.a.dc()},f.Jc=function(){return new L1e(this.a.vc().Jc())},f.Kc=function(t){var n,i;try{return vv(this,t,!0)}catch(r){if(r=kr(r),he(r,46)){for(i=this.a.vc().Jc();i.Ob();)if(n=c(i.Pb(),45),S1(t,n.kd()))return this.a.Ac(n.jd()),!0;return!1}else throw K(r)}},f.gc=function(){return this.a.gc()},M(Ot,"Maps/Values",963),E(966,1,{},ZK),f.Wd=function(t,n){this.a.Ad(n)},M(Ot,"Maps/Values/lambda$0$Type",966),E(747,2064,xw,hge),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 eY(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(Ot,"Multimaps/AsMap",747),E(1115,F1,Il,eY),f.Jc=function(){return d7t(this.a.a.ec(),new YK(this))},f.Pc=function(){return this.a},f.Kc=function(t){var n;return PYe(this,t)?(n=c(Fa(c(t,45)),45),r8t(this.a,n.jd()),!0):!1},M(Ot,"Multimaps/AsMap/EntrySet",1115),E(1119,1,{},YK),f.Kb=function(t){return FIe(this,t)},f.Fb=function(t){return this===t},M(Ot,"Multimaps/AsMap/EntrySet/lambda$0$Type",1119),E(544,2066,{544:1,841:1,22:1,32:1,18:1},y6),f.$b=function(){_H(this.a)},f.Gc=function(t){return BIe(this.a,t)},f.Ic=function(t){$n(t),ws(o7(this.a),new sT(t))},f.Jc=function(){return new mT(o7(this.a).a.kc())},f.gc=function(){return this.a.d},f.Lc=function(){return K_(o7(this.a).Lc(),new Q)},M(Ot,"Multimaps/Keys",544),E(1117,1,{},Q),f.Kb=function(t){return c(t,45).jd()},M(Ot,"Multimaps/Keys/0methodref$getKey$Type",1117),E(1116,486,ns,dIe),f.Yd=function(t){return new tY(c(t,45))},M(Ot,"Multimaps/Keys/1",1116),E(2067,1,{421:1}),f.Fb=function(t){var n;return he(t,493)?(n=c(t,421),c(this.a.kd(),18).gc()==c(n.a.kd(),18).gc()&&S1(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=WT(this.a.jd()),t=c(this.a.kd(),18).gc(),t==1?n:n+" x "+t},M(Ot,"Multisets/AbstractEntry",2067),E(493,2067,{493:1,421:1},tY),M(Ot,"Multimaps/Keys/1/1",493),E(1118,1,un,sT),f.Ad=function(t){this.a.Ad(c(t,45).jd())},M(Ot,"Multimaps/Keys/lambda$1$Type",1118),E(1121,1,un,te),f.Ad=function(t){_At(c(t,421))},M(Ot,"Multiset/lambda$0$Type",1121),E(748,1,un,Az),f.Ad=function(t){hRt(this.a,c(t,421))},M(Ot,"Multiset/lambda$1$Type",748),E(1122,1,{},V),M(Ot,"Multisets/0methodref$add$Type",1122),E(749,1,{},ne),f.Kb=function(t){return LLt(c(t,421))},M(Ot,"Multisets/lambda$1$Type",749),E(2085,1,TL),M(Ot,"RangeGwtSerializationDependencies",2085),E(511,2085,{181:1,511:1,3:1,48:1},L2e),f.Lb=function(t){return fHe(this,c(t,34))},f.Mb=function(t){return fHe(this,c(t,34))},f.Fb=function(t){var n;return he(t,511)?(n=c(t,511),q2e(this.a,n.a)&&q2e(this.b,n.b)):!1},f.Hb=function(){return this.a.Hb()*31+this.b.Hb()},f.Ib=function(){return DUe(this.a,this.b)},M(Ot,"Range",511),E(649,2076,sS,hpe),f.dd=function(t){return IZ(this.b,t)},f.Xd=function(){return this.a},f.Xb=function(t){return S0(this.b,t)},f.Nd=function(t){return IZ(this.b,t)},M(Ot,"RegularImmutableAsList",649),E(652,2084,sS,Kee),f.Pd=function(){return this.a};var nce;M(Ot,"RegularImmutableList",652),E(540,725,oS,lge,uge);var Uft;M(Ot,"RegularImmutableMap",540),E(726,716,dk,age);var _ke;M(Ot,"RegularImmutableSet",726),E(2053,Mh,Il),f.Jc=function(){return new hme(this.a,this.b)},f.Ec=function(t){throw K(new zn)},f.Fc=function(t){throw K(new zn)},f.$b=function(){throw K(new zn)},f.Kc=function(t){throw K(new zn)},M(Ot,"Sets/SetView",2053),E(968,2053,Il,DRe),f.Jc=function(){return new hme(this.a,this.b)},f.Gc=function(t){return cee(this.a,t)&&this.b.Gc(t)},f.Hc=function(t){return BD(this.a,t)&&this.b.Hc(t)},f.dc=function(){return vZe(this.b,this.a)},f.gc=function(){return LD(this)},f.Mc=function(){return bi(new Tt(null,new Ct(this.a,1)),new Nz(this.b))},M(Ot,"Sets/2",968),E(969,1,Wn,Nz),f.Mb=function(t){return this.a.Gc(t)},M(Ot,"Sets/2/0methodref$contains$Type",969),E(710,709,iS,hme),f.Yb=function(){for(var t;Kge(this.a);)if(t=m7(this.a),this.c.Gc(t))return t;return this.e=2,null},M(Ot,"Sets/2/1",710),E(613,2052,{613:1,3:1,22:1,18:1,279:1,24:1,85:1},YGe),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(Ot,"Sets/UnmodifiableNavigableSet",613),E(2010,2009,oS,rGe),f.Td=function(){return new o4(this.a)},f.Bc=function(){return new o4(this.a)},f.vd=function(){return new o4(this.a)},M(Ot,"SingletonImmutableBiMap",2010),E(653,2084,sS,qZ),f.Pd=function(){return this.a},M(Ot,"SingletonImmutableList",653),E(360,2058,dk,o4),f.Jc=function(){return new O6(this.a)},f.Gc=function(t){return ki(this.a,t)},f.Md=function(){return new O6(this.a)},f.gc=function(){return 1},M(Ot,"SingletonImmutableSet",360),E(1129,1,{},_),f.Kb=function(t){return c(t,163)},M(Ot,"Streams/lambda$0$Type",1129),E(1130,1,mQ,_z),f.be=function(){uGt(this.a)},M(Ot,"Streams/lambda$1$Type",1130),E(1708,1707,Om,LGe),f.Zb=function(){var t;return t=this.f,c(c(t||(this.f=he(this.c,141)?new XT(this,c(this.c,141)):he(this.c,136)?new G_(this,c(this.c,136)):new B6(this,this.c)),136),141)},f.hc=function(){return new jg(this.b)},f.nd=function(){return new jg(this.b)},f.ec=function(){var t;return t=this.i,c(c(t||(this.i=he(this.c,141)?new $6(this,c(this.c,141)):he(this.c,136)?new x_(this,c(this.c,136)):new Ey(this,this.c)),85),279)},f.ac=function(){return he(this.c,141)?new XT(this,c(this.c,141)):he(this.c,136)?new G_(this,c(this.c,136)):new B6(this,this.c)},f.ic=function(t){return t==null&&this.a.Le(t,t),new jg(this.b)},M(Ot,"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=Ce(ice,Ge,81,0,0,1)),this.k),n=Ce(Br,It,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(){Z9t(this,OLt(this.ce(Qq(this,this.g)))),mPe(this)},f.Ib=function(){return Qq(this,this.ge())},f.e=act,f.i=!1,f.n=!0;var ice=M(Vo,"Throwable",81);E(102,81,{3:1,102:1,81:1}),M(Vo,"Exception",102),E(63,102,q1,Gp,Mo),M(Vo,"RuntimeException",63),E(603,63,q1),M(Vo,"JsException",603),E(865,603,q1),M(NL,"JavaScriptExceptionBase",865),E(477,865,{477:1,3:1,102:1,63:1,81:1},$Ke),f.ge=function(){return kGt(this),this.c},f.ie=function(){return Se(this.b)===Se(Dke)?null:this.b};var Dke;M(Wye,"JavaScriptException",477);var Jft=M(Wye,"JavaScriptObject$",0),rce;E(2026,1,{}),M(Wye,"Scheduler",2026);var kU=0,Wft=0,OU=-1;E(892,2026,{},ce);var Lke;M(NL,"SchedulerImpl",892);var sce;E(2037,1,{}),M(NL,"StackTraceCreator/Collector",2037),E(866,2037,{},se),f.je=function(t){var n={},i=[];t[wre]=i;for(var r=arguments.callee.caller;r;){var o=(cj(),r.name||(r.name=ORt(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=(cj(),t&&t[wre]?t[wre]:[]),i=r.length,o=Ce(Wke,Ge,325,i,0,1),n=0;n<i;n++)o[n]=new Dee(r[n],null,-1);return o},M(NL,"StackTraceCreator/CollectorLegacy",866),E(2038,2037,{}),f.je=function(t){},f.le=function(t,n,i,r){return new Dee(n,t+"@"+r,i<0?-1:i)},f.ke=function(t){var n,i,r,o,a,d;if(o=Wqt(t),a=Ce(Wke,Ge,325,0,0,1),n=0,r=o.length,r==0)return a;for(d=dot(this,o[0]),jt(d.d,bre)||(a[n++]=d),i=1;i<r;i++)a[n++]=dot(this,o[i]);return a},M(NL,"StackTraceCreator/CollectorModern",2038),E(867,2038,{},me),f.le=function(t,n,i,r){return new Dee(n,t,-1)},M(NL,"StackTraceCreator/CollectorModernNoSourceMap",867),E(1055,1,{}),M(Xye,dct,1055),E(622,1055,{622:1},IHe);var Pke;M(Rre,dct,622),E(2080,1,{}),M(Xye,gct,2080),E(2081,2080,{}),M(Rre,gct,2081),E(1101,1,{},ye);var QC;M(Rre,"LocaleInfo",1101),E(2006,1,{},qe),f.a=0,M(Rre,"TimeZone",2006),E(1268,2081,{},ke),M("com.google.gwt.i18n.client.impl.cldr","DateTimeFormatInfoImpl",1268),E(439,1,{439:1},dqe),f.a=!1,f.b=0,M(Xye,"DateTimeFormat/PatternPart",439),E(208,1,pct,sF,ywe,$0e),f.Dd=function(t){return vLt(this,c(t,208))},f.Fb=function(t){return he(t,208)&&zT(nc(this.q.getTime()),nc(c(t,208).q.getTime()))},f.Hb=function(){var t;return t=nc(this.q.getTime()),Qn(Yee(t,Zp(t,32)))},f.Ib=function(){var t,n,i;return i=-this.q.getTimezoneOffset(),t=(i>=0?"+":"")+(i/60|0),n=QF(p.Math.abs(i)%60),(ett(),cht)[this.q.getDay()]+" "+lht[this.q.getMonth()]+" "+QF(this.q.getDate())+" "+QF(this.q.getHours())+":"+QF(this.q.getMinutes())+":"+QF(this.q.getSeconds())+" GMT"+t+n+" "+this.q.getFullYear()};var jU=M(kn,"Date",208);E(1994,208,pct,vet),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(pk,"JSONValue",2043),E(142,2043,{142:1},vg,s_),f.Fb=function(t){return he(t,142)?Lme(this.a,c(t,142).a):!1},f.me=function(){return _9t},f.Hb=function(){return vme(this.a)},f.ne=function(){return this},f.Ib=function(){var t,n,i;for(i=new Iu("["),n=0,t=this.a.length;n<t;n++)n>0&&(i.a+=","),Mc(i,fv(this,n));return i.a+="]",i.a},M(pk,"JSONArray",142),E(482,2043,{482:1},oT),f.me=function(){return D9t},f.oe=function(){return this},f.Ib=function(){return zt(),""+this.a},f.a=!1;var Vft,Xft;M(pk,"JSONBoolean",482),E(990,63,q1,gIe),M(pk,"JSONException",990),E(1028,2043,{},Be),f.me=function(){return R9t},f.Ib=function(){return wl};var Kft;M(pk,"JSONNull",1028),E(266,2043,{266:1},k6),f.Fb=function(t){return he(t,266)?this.a==c(t,266).a:!1},f.me=function(){return L9t},f.Hb=function(){return y4(this.a)},f.pe=function(){return this},f.Ib=function(){return this.a+""},f.a=0,M(pk,"JSONNumber",266),E(150,2043,{150:1},f4,e4),f.Fb=function(t){return he(t,150)?Lme(this.a,c(t,150).a):!1},f.me=function(){return P9t},f.Hb=function(){return vme(this.a)},f.qe=function(){return this},f.Ib=function(){var t,n,i,r,o,a,d;for(d=new Iu("{"),t=!0,a=Bte(this,Ce(st,Ge,2,0,6,1)),i=a,r=0,o=i.length;r<o;++r)n=i[r],t?t=!1:d.a+=Yc,ti(d,ynt(n)),d.a+=":",Mc(d,C1(this,n));return d.a+="}",d.a},M(pk,"JSONObject",150),E(601,Mh,Il,RY),f.Gc=function(t){return Yr(t)&&v8t(this.a,qn(t))},f.Jc=function(){return new uT(new Qo(this.b))},f.gc=function(){return this.b.length},M(pk,"JSONObject/1",601);var oce;E(213,2043,{213:1},iv),f.Fb=function(t){return he(t,213)?jt(this.a,c(t,213).a):!1},f.me=function(){return I9t},f.Hb=function(){return Pg(this.a)},f.re=function(){return this},f.Ib=function(){return ynt(this.a)},M(pk,"JSONString",213);var Z0,Ike,Yft,Rke,$ke;E(2039,1,{524:1}),M(Kye,"OutputStream",2039),E(2040,2039,{524:1}),M(Kye,"FilterOutputStream",2040),E(868,2040,{524:1},pe),M(Kye,"PrintStream",868),E(423,1,{475:1}),f.Ib=function(){return this.a},M(Vo,"AbstractStringBuilder",423),E(530,63,q1,Kz),M(Vo,"ArithmeticException",530),E(99,63,wQ,m1e,Qc),M(Vo,"IndexOutOfBoundsException",99),E(650,99,wQ,yPe,z1e),M(Vo,"ArrayIndexOutOfBoundsException",650),E(529,63,q1,gY,yIe),M(Vo,"ArrayStoreException",529),E(298,81,mct,CY),M(Vo,"Error",298),E(202,298,mct,p1e,Yme),M(Vo,"AssertionError",202),Bft={3:1,476:1,34:1};var ep,RS,cr=M(Vo,"Boolean",476);E(245,1,{3:1,245:1});var Bke;M(Vo,"Number",245),E(224,245,{3:1,224:1,34:1,245:1},lr),f.Dd=function(t){return m8t(this,c(t,224))},f.se=function(){return this.a},f.Fb=function(t){return he(t,224)&&c(t,224).a==this.a},f.Hb=function(){return this.a},f.Ib=function(){return""+this.a},f.a=0;var Sk=M(Vo,"Byte",224),zke;E(183,1,{3:1,183:1,34:1},Ho),f.Dd=function(t){return b8t(this,c(t,183))},f.Fb=function(t){return he(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 Fke,UC=M(Vo,"Character",183),qke;E(214,63,{3:1,214:1,102:1,63:1,81:1},bPe,_6),M(Vo,"ClassCastException",214),zft={3:1,34:1,347:1,245:1};var Sr=M(Vo,"Double",347);E(165,245,{3:1,34:1,165:1,245:1},Fs,w1e),f.Dd=function(t){return CTt(this,c(t,165))},f.se=function(){return this.a},f.Fb=function(t){return he(t,165)&&$Fe(this.a,c(t,165).a)},f.Hb=function(){return ys(this.a)},f.Ib=function(){return""+this.a},f.a=0;var $S=M(Vo,"Float",165);E(33,63,{3:1,102:1,33:1,63:1,81:1},d_,Ht,PKe),M(Vo,"IllegalArgumentException",33),E(73,63,q1,El,oo),M(Vo,"IllegalStateException",73),E(15,245,{3:1,34:1,15:1,245:1},Go),f.Dd=function(t){return Qge(this,c(t,15))},f.se=function(){return this.a},f.Fb=function(t){return he(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),Hke,Zft;E(192,245,{3:1,34:1,192:1,245:1},Ab),f.Dd=function(t){return ETt(this,c(t,192))},f.se=function(){return cm(this.a)},f.Fb=function(t){return he(t,192)&&zT(c(t,192).a,this.a)},f.Hb=function(){return jCt(this.a)},f.Ib=function(){return""+t7(this.a)},f.a=0;var _w=M(Vo,"Long",192),Gke;E(2119,1,{}),E(1891,63,q1,kIe),M(Vo,"NegativeArraySizeException",1891),E(174,603,{3:1,102:1,174:1,63:1,81:1},c4,h4),f.ce=function(t){return new TypeError(t)},M(Vo,"NullPointerException",174);var Qke,cce,eht,Uke;E(133,33,{3:1,102:1,33:1,133:1,63:1,81:1},Yh),M(Vo,"NumberFormatException",133),E(193,245,{3:1,34:1,245:1,193:1},Bt),f.Dd=function(t){return w8t(this,c(t,193))},f.se=function(){return this.a},f.Fb=function(t){return he(t,193)&&c(t,193).a==this.a},f.Hb=function(){return this.a},f.Ib=function(){return""+this.a},f.a=0;var Dw=M(Vo,"Short",193),Jke;E(325,1,{3:1,325:1},Dee),f.Fb=function(t){var n;return he(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 YH(ee(Z(Br,1),It,1,5,[ze(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 Wke=M(Vo,"StackTraceElement",325);Fft={3:1,475:1,34:1,2:1};var st=M(Vo,Jye,2);E(112,423,{475:1},kg,vT,za),M(Vo,"StringBuffer",112),E(106,423,{475:1},v0,g4,Iu),M(Vo,"StringBuilder",106),E(698,99,wQ,B1e),M(Vo,"StringIndexOutOfBoundsException",698),E(2124,1,{});var tht;E(46,63,{3:1,102:1,63:1,81:1,46:1},zn,yg),M(Vo,"UnsupportedOperationException",46),E(249,245,{3:1,34:1,245:1,249:1},WD,V1e),f.Dd=function(t){return sst(this,c(t,249))},f.se=function(){return jv(Lst(this))},f.Fb=function(t){var n;return this===t?!0:he(t,249)?(n=c(t,249),this.e==n.e&&sst(this,n)==0):!1},f.Hb=function(){var t;return this.b!=0?this.b:this.a<54?(t=nc(this.f),this.b=Qn(Zr(t,-1)),this.b=33*this.b+Qn(Zr(Qb(t,32),-1)),this.b=17*this.b+ys(this.e),this.b):(this.b=17*JKe(this.c)+ys(this.e),this.b)},f.Ib=function(){return Lst(this)},f.a=0,f.b=0,f.d=0,f.e=0,f.f=0;var nht,Lm,Vke,Xke,Kke,Yke,Zke,eOe,lce=M("java.math","BigDecimal",249);E(92,245,{3:1,34:1,245:1,92:1},M1,cUe,em,rZe,T0),f.Dd=function(t){return XYe(this,c(t,92))},f.se=function(){return jv(are(this,0))},f.Fb=function(t){return d2e(this,t)},f.Hb=function(){return JKe(this)},f.Ib=function(){return are(this,0)},f.b=-2,f.c=0,f.d=0,f.e=0;var iht,SU,rht,uce,TU,JC,f3=M("java.math","BigInteger",92),sht,oht,Tk,WC;E(487,2044,xw),f.$b=function(){lc(this)},f._b=function(t){return Ac(this,t)},f.uc=function(t){return NKe(this,t,this.i)||NKe(this,t,this.f)},f.vc=function(){return new Hp(this)},f.xc=function(t){return Jt(this,t)},f.yc=function(t,n){return ci(this,t,n)},f.Ac=function(t){return q4(this,t)},f.gc=function(){return kT(this)},f.g=0,M(kn,"AbstractHashMap",487),E(307,Mh,Il,Hp),f.$b=function(){this.a.$b()},f.Gc=function(t){return fUe(this,t)},f.Jc=function(){return new pv(this.a)},f.Kc=function(t){var n;return fUe(this,t)?(n=c(t,45).jd(),this.a.Ac(n),!0):!1},f.gc=function(){return this.a.gc()},M(kn,"AbstractHashMap/EntrySet",307),E(308,1,ns,pv),f.Nb=function(t){ps(this,t)},f.Pb=function(){return Ry(this)},f.Ob=function(){return this.b},f.Qb=function(){FWe(this)},f.b=!1,f.d=0,M(kn,"AbstractHashMap/EntrySetIterator",308),E(422,1,ns,uT),f.Nb=function(t){ps(this,t)},f.Ob=function(){return HY(this)},f.Pb=function(){return pme(this)},f.Qb=function(){iu(this)},f.b=0,f.c=-1,M(kn,"AbstractList/IteratorImpl",422),E(97,422,Ud,ss),f.Qb=function(){iu(this)},f.Rb=function(t){X2(this,t)},f.Sb=function(){return this.b>0},f.Tb=function(){return this.b},f.Ub=function(){return pn(this.b>0),this.a.Xb(this.c=--this.b)},f.Vb=function(){return this.b-1},f.Wb=function(t){U2(this.c!=-1),this.a.fd(this.c,t)},M(kn,"AbstractList/ListIteratorImpl",97),E(217,56,cS,nd),f._c=function(t,n){cv(t,this.b),this.c._c(this.a+t,n),++this.b},f.Xb=function(t){return pt(t,this.b),this.c.Xb(this.a+t)},f.ed=function(t){var n;return pt(t,this.b),n=this.c.ed(this.a+t),--this.b,n},f.fd=function(t,n){return pt(t,this.b),this.c.fd(this.a+t,n)},f.gc=function(){return this.b},f.a=0,f.b=0,M(kn,"AbstractList/SubList",217),E(234,Mh,Il,hn),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 xr(t)},f.Kc=function(t){return this.a._b(t)?(this.a.Ac(t),!0):!1},f.gc=function(){return this.a.gc()},M(kn,"AbstractMap/1",234),E(533,1,ns,xr),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(kn,"AbstractMap/1/1",533),E(232,32,Dv,x1),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 $2(t)},f.gc=function(){return this.a.gc()},M(kn,"AbstractMap/2",232),E(305,1,ns,$2),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(kn,"AbstractMap/2/1",305),E(483,1,{483:1,45:1}),f.Fb=function(t){var n;return he(t,45)?(n=c(t,45),bc(this.d,n.jd())&&bc(this.e,n.kd())):!1},f.jd=function(){return this.d},f.kd=function(){return this.e},f.Hb=function(){return jy(this.d)^jy(this.e)},f.ld=function(t){return F0e(this,t)},f.Ib=function(){return this.d+"="+this.e},M(kn,"AbstractMap/AbstractEntry",483),E(392,483,{483:1,392:1,45:1},pF),M(kn,"AbstractMap/SimpleEntry",392),E(2061,1,Bre),f.Fb=function(t){var n;return he(t,45)?(n=c(t,45),bc(this.jd(),n.jd())&&bc(this.kd(),n.kd())):!1},f.Hb=function(){return jy(this.jd())^jy(this.kd())},f.Ib=function(){return this.jd()+"="+this.kd()},M(kn,ict,2061),E(2069,2044,Gye),f.Vc=function(t){return LY(this.Ce(t))},f.tc=function(t){return aJe(this,t)},f._b=function(t){return z0e(this,t)},f.vc=function(){return new uY(this)},f.Rc=function(){return SHe(this.Ee())},f.Wc=function(t){return LY(this.Fe(t))},f.xc=function(t){var n;return n=t,Ao(this.De(n))},f.Yc=function(t){return LY(this.Ge(t))},f.ec=function(){return new KNe(this)},f.Tc=function(){return SHe(this.He())},f.Zc=function(t){return LY(this.Ie(t))},M(kn,"AbstractNavigableMap",2069),E(627,Mh,Il,uY),f.Gc=function(t){return he(t,45)&&aJe(this.b,c(t,45))},f.Jc=function(){return this.b.Be()},f.Kc=function(t){var n;return he(t,45)?(n=c(t,45),this.b.Je(n)):!1},f.gc=function(){return this.b.gc()},M(kn,"AbstractNavigableMap/EntrySet",627),E(1127,Mh,Qye,KNe),f.Lc=function(){return new bF(this)},f.$b=function(){this.a.$b()},f.Gc=function(t){return z0e(this.a,t)},f.Jc=function(){var t;return t=this.a.vc().b.Be(),new YNe(t)},f.Kc=function(t){return z0e(this.a,t)?(this.a.Ac(t),!0):!1},f.gc=function(){return this.a.gc()},M(kn,"AbstractNavigableMap/NavigableKeySet",1127),E(1128,1,ns,YNe),f.Nb=function(t){ps(this,t)},f.Ob=function(){return HY(this.a.a)},f.Pb=function(){var t;return t=Hze(this.a),t.jd()},f.Qb=function(){WFe(this.a)},M(kn,"AbstractNavigableMap/NavigableKeySet/1",1128),E(2082,32,Dv),f.Ec=function(t){return A4(Hj(this,t),uS),!0},f.Fc=function(t){return Ft(t),Z_(t!=this,"Can't add a queue to itself"),Os(this,t)},f.$b=function(){for(;Ete(this)!=null;);},M(kn,"AbstractQueue",2082),E(315,32,{4:1,22:1,32:1,18:1},Ty,pUe),f.Ec=function(t){return qme(this,t),!0},f.$b=function(){Wme(this)},f.Gc=function(t){return WXe(new u7(this),t)},f.dc=function(){return wT(this)},f.Jc=function(){return new u7(this)},f.Kc=function(t){return hDt(new u7(this),t)},f.gc=function(){return this.c-this.b&this.a.length-1},f.Lc=function(){return new Ct(this,272)},f.Oc=function(t){var n;return n=this.c-this.b&this.a.length-1,t.length<n&&(t=Zz(new Array(n),t)),uXe(this,t,n),t.length>n&&br(t,n,null),t},f.b=0,f.c=0,M(kn,"ArrayDeque",315),E(451,1,ns,u7),f.Nb=function(t){ps(this,t)},f.Ob=function(){return this.a!=this.b},f.Pb=function(){return eG(this)},f.Qb=function(){JVe(this)},f.a=0,f.b=0,f.c=-1,M(kn,"ArrayDeque/IteratorImpl",451),E(13,56,vct,Qe,Wc,Hl),f._c=function(t,n){Xp(this,t,n)},f.Ec=function(t){return Ue(this,t)},f.ad=function(t,n){return $we(this,t,n)},f.Fc=function(t){return Or(this,t)},f.$b=function(){B2(this.c,0)},f.Gc=function(t){return Do(this,t,0)!=-1},f.Ic=function(t){Vc(this,t)},f.Xb=function(t){return Xe(this,t)},f.bd=function(t){return Do(this,t,0)},f.dc=function(){return this.c.length==0},f.Jc=function(){return new J(this)},f.ed=function(t){return Ng(this,t)},f.Kc=function(t){return gl(this,t)},f.ae=function(t,n){NQe(this,t,n)},f.fd=function(t,n){return Ou(this,t,n)},f.gc=function(){return this.c.length},f.gd=function(t){Rr(this,t)},f.Nc=function(){return dq(this.c)},f.Oc=function(t){return Oh(this,t)};var Oin=M(kn,"ArrayList",13);E(7,1,ns,J),f.Nb=function(t){ps(this,t)},f.Ob=function(){return No(this)},f.Pb=function(){return U(this)},f.Qb=function(){r7(this)},f.a=0,f.b=-1,M(kn,"ArrayList/1",7),E(2091,p.Function,{},je),f.Ke=function(t,n){return Ci(t,n)},E(124,56,xct,Qo),f.Gc=function(t){return UVe(this,t)!=-1},f.Ic=function(t){var n,i,r,o;for(Ft(t),i=this.a,r=0,o=i.length;r<o;++r)n=i[r],t.Ad(n)},f.Xb=function(t){return qqe(this,t)},f.fd=function(t,n){var i;return i=(pt(t,this.a.length),this.a[t]),br(this.a,t,n),i},f.gc=function(){return this.a.length},f.gd=function(t){oee(this.a,this.a.length,t)},f.Nc=function(){return fZe(this,Ce(Br,It,1,this.a.length,5,1))},f.Oc=function(t){return fZe(this,t)},M(kn,"Arrays/ArrayList",124);var Is,Yd,CU;E(945,56,xct,ve),f.Gc=function(t){return!1},f.Xb=function(t){return Gge(t)},f.Jc=function(){return Mt(),z6(),BS},f.cd=function(){return Mt(),z6(),BS},f.gc=function(){return 0},M(kn,"Collections/EmptyList",945),E(946,1,Ud,xe),f.Nb=function(t){ps(this,t)},f.Rb=function(t){throw K(new zn)},f.Ob=function(){return!1},f.Sb=function(){return!1},f.Pb=function(){throw K(new Eo)},f.Tb=function(){return 0},f.Ub=function(){throw K(new Eo)},f.Vb=function(){return-1},f.Qb=function(){throw K(new El)},f.Wb=function(t){throw K(new El)};var BS;M(kn,"Collections/EmptyListIterator",946),E(948,2044,oS,Ee),f._b=function(t){return!1},f.uc=function(t){return!1},f.vc=function(){return Mt(),CU},f.xc=function(t){return null},f.ec=function(){return Mt(),CU},f.gc=function(){return 0},f.Bc=function(){return Mt(),Is},M(kn,"Collections/EmptyMap",948),E(947,Mh,dk,ue),f.Gc=function(t){return!1},f.Jc=function(){return Mt(),z6(),BS},f.gc=function(){return 0},M(kn,"Collections/EmptySet",947),E(604,56,{3:1,22:1,32:1,56:1,18:1,16:1},lY),f.Gc=function(t){return bc(this.a,t)},f.Xb=function(t){return pt(t,1),this.a},f.gc=function(){return 1},M(kn,"Collections/SingletonList",604),E(379,1,oct,T6),f.Ic=function(t){ws(this,t)},f.Lc=function(){return new Ct(this,0)},f.Mc=function(){return new Tt(null,this.Lc())},f.Ec=function(t){return QIe()},f.Fc=function(t){return UIe()},f.$b=function(){JIe()},f.Gc=function(t){return yT(this,t)},f.Hc=function(t){return ege(this,t)},f.dc=function(){return this.b.dc()},f.Jc=function(){return new hy(this.b.Jc())},f.Kc=function(t){return WIe()},f.gc=function(){return this.b.gc()},f.Nc=function(){return this.b.Nc()},f.Oc=function(t){return tge(this,t)},f.Ib=function(){return So(this.b)},M(kn,"Collections/UnmodifiableCollection",379),E(326,1,ns,hy),f.Nb=function(t){ps(this,t)},f.Ob=function(){return this.b.Ob()},f.Pb=function(){return this.b.Pb()},f.Qb=function(){VIe()},M(kn,"Collections/UnmodifiableCollectionIterator",326),E(532,379,yct,ZF),f.Lc=function(){return new Ct(this,16)},f._c=function(t,n){throw K(new zn)},f.ad=function(t,n){throw K(new zn)},f.Fb=function(t){return ki(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 m0e(this.a.dd(0))},f.dd=function(t){return new m0e(this.a.dd(t))},f.ed=function(t){throw K(new zn)},f.fd=function(t,n){throw K(new zn)},f.gd=function(t){throw K(new zn)},f.hd=function(t,n){return new ZF(this.a.hd(t,n))},M(kn,"Collections/UnmodifiableList",532),E(701,326,Ud,m0e),f.Qb=function(){VIe()},f.Rb=function(t){throw K(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 K(new zn)},M(kn,"Collections/UnmodifiableListIterator",701),E(605,1,xw,aY),f.wc=function(t){DD(this,t)},f.$b=function(){throw K(new zn)},f._b=function(t){return this.c._b(t)},f.uc=function(t){return $Re(this,t)},f.vc=function(){return ij(this)},f.Fb=function(t){return BRe(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 iGe(this)},f.yc=function(t,n){throw K(new zn)},f.Ac=function(t){throw K(new zn)},f.gc=function(){return this.c.gc()},f.Ib=function(){return So(this.c)},f.Bc=function(){return nGe(this)},M(kn,"Collections/UnmodifiableMap",605),E(391,379,pre,D6),f.Lc=function(){return new Ct(this,1)},f.Fb=function(t){return ki(this.b,t)},f.Hb=function(){return zi(this.b)},M(kn,"Collections/UnmodifiableSet",391),E(949,391,pre,SIe),f.Gc=function(t){return RRe(this,t)},f.Hc=function(t){return this.b.Hc(t)},f.Jc=function(){var t;return t=this.b.Jc(),new ZNe(t)},f.Nc=function(){var t;return t=this.b.Nc(),RUe(t,t.length),t},f.Oc=function(t){return GGe(this,t)},M(kn,"Collections/UnmodifiableMap/UnmodifiableEntrySet",949),E(950,1,ns,ZNe),f.Nb=function(t){ps(this,t)},f.Pb=function(){return new Kde(c(this.a.Pb(),45))},f.Ob=function(){return this.a.Ob()},f.Qb=function(){throw K(new zn)},M(kn,"Collections/UnmodifiableMap/UnmodifiableEntrySet/1",950),E(699,1,Bre,Kde),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 K(new zn)},f.Ib=function(){return So(this.a)},M(kn,"Collections/UnmodifiableMap/UnmodifiableEntrySet/UnmodifiableEntry",699),E(606,532,{22:1,18:1,16:1,59:1},_Y),M(kn,"Collections/UnmodifiableRandomAccessList",606),E(700,391,cct,b0e),f.Lc=function(){return new bF(this)},f.Fb=function(t){return ki(this.a,t)},f.Hb=function(){return zi(this.a)},M(kn,"Collections/UnmodifiableSortedSet",700),E(850,1,zre,tt),f.Le=function(t,n){var i;return i=$Ue(c(t,12),c(n,12)),i!=0?i:Vrt(c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(kn,"Comparator/lambda$0$Type",850);var tOe,ace,nOe;E(763,1,zre,Te),f.Le=function(t,n){return BAt(c(t,34),c(n,34))},f.Fb=function(t){return this===t},f.Me=function(){return Xb(),nOe},M(kn,"Comparators/NaturalOrderComparator",763),E(1203,1,zre,et),f.Le=function(t,n){return zAt(c(t,34),c(n,34))},f.Fb=function(t){return this===t},f.Me=function(){return Xb(),ace},M(kn,"Comparators/ReverseNaturalOrderComparator",1203),E(55,1,zre,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(kn,"Comparators/ReversedComparator",55),E(179,63,q1,fa),M(kn,"ConcurrentModificationException",179);var cht,lht;E(1364,1,PL,Ie),f.Ne=function(t){zYe(this,t)},f.Ib=function(){return"DoubleSummaryStatistics[count = "+t7(this.a)+", avg = "+(FY(this.a,0)?cbe(this)/cm(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+cbe(this)+"]"},f.a=0,f.b=Gr,f.c=or,f.d=0,f.e=0,f.f=0,M(kn,"DoubleSummaryStatistics",1364),E(1864,63,q1,wPe),M(kn,"EmptyStackException",1864),E(453,2044,xw,$7),f.yc=function(t,n){return B0e(this,t,n)},f.$b=function(){WHe(this)},f._b=function(t){return t$e(this,t)},f.uc=function(t){var n,i;for(i=new m4(this.a);i.a<i.c.a.length;)if(n=m7(i),bc(t,this.b[n.g]))return!0;return!1},f.vc=function(){return new t_e(this)},f.xc=function(t){return eo(this,t)},f.Ac=function(t){return _me(this,t)},f.gc=function(){return this.a.c},M(kn,"EnumMap",453),E(1304,Mh,Il,t_e),f.$b=function(){WHe(this.a)},f.Gc=function(t){return hUe(this,t)},f.Jc=function(){return new Fqe(this.a)},f.Kc=function(t){var n;return hUe(this,t)?(n=c(t,45).jd(),_me(this.a,n),!0):!1},f.gc=function(){return this.a.a.c},M(kn,"EnumMap/EntrySet",1304),E(1305,1,ns,Fqe),f.Nb=function(t){ps(this,t)},f.Pb=function(){return this.b=m7(this.a),new i$e(this.c,this.b)},f.Ob=function(){return Kge(this.a)},f.Qb=function(){U2(!!this.b),_me(this.c,this.b),this.b=null},M(kn,"EnumMap/EntrySetIterator",1305),E(1306,2061,Bre,i$e),f.jd=function(){return this.a},f.kd=function(){return this.b.b[this.a.g]},f.ld=function(t){return Cpe(this.b.b,this.a.g,t)},M(kn,"EnumMap/MapEntry",1306),E(185,Mh,{22:1,32:1,18:1,185:1,24:1});var uht=M(kn,"EnumSet",185);E(167,185,{22:1,32:1,18:1,185:1,167:1,24:1},ga),f.Ec=function(t){return kf(this,c(t,23))},f.Gc=function(t){return cee(this,t)},f.Jc=function(){return new m4(this)},f.Kc=function(t){return Zqe(this,t)},f.gc=function(){return this.c},f.c=0,M(kn,"EnumSet/EnumSetImpl",167),E(357,1,ns,m4),f.Nb=function(t){ps(this,t)},f.Pb=function(){return m7(this)},f.Ob=function(){return Kge(this)},f.Qb=function(){U2(this.b!=-1),br(this.c.b,this.b,null),--this.c.c,this.b=-1},f.a=-1,f.b=-1,M(kn,"EnumSet/EnumSetImpl/IteratorImpl",357),E(44,487,t3,xn,p4,$Be),f.ze=function(t,n){return Se(t)===Se(n)||t!=null&&ki(t,n)},f.Ae=function(t){var n;return t==null?0:(n=zi(t),n|0)},M(kn,"HashMap",44),E(47,Mh,Yye,Tr,tF,Y2),f.Ec=function(t){return Cr(this,t)},f.$b=function(){this.a.$b()},f.Gc=function(t){return Ba(this,t)},f.dc=function(){return this.a.gc()==0},f.Jc=function(){return this.a.ec().Jc()},f.Kc=function(t){return s0e(this,t)},f.gc=function(){return this.a.gc()};var jin=M(kn,"HashSet",47);E(1884,1,EL,Ye),f.Bd=function(t){IXe(this,t)},f.Ib=function(){return"IntSummaryStatistics[count = "+t7(this.a)+", avg = "+(FY(this.a,0)?cm(this.d)/cm(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+t7(this.d)+"]"},f.a=0,f.b=cs,f.c=pi,f.d=0,M(kn,"IntSummaryStatistics",1884),E(1054,1,Jd,BBe),f.Ic=function(t){ws(this,t)},f.Jc=function(){return new bbe(this)},f.c=0,M(kn,"InternalHashCodeMap",1054),E(723,1,ns,bbe),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(){fxe(this.e,this.d.jd()),this.c!=0&&--this.c},f.c=0,f.d=null,M(kn,"InternalHashCodeMap/1",723);var aht;E(1052,1,Jd,zBe),f.Ic=function(t){ws(this,t)},f.Jc=function(){return new Kme(this)},f.c=0,f.d=0,M(kn,"InternalStringMap",1052),E(722,1,ns,Kme),f.Nb=function(t){ps(this,t)},f.Pb=function(){return this.c=this.a,this.a=this.b.next(),new KFe(this.d,this.c,this.d.d)},f.Ob=function(){return!this.a.done},f.Qb=function(){BXe(this.d,this.c.value[0])},M(kn,"InternalStringMap/1",722),E(1053,2061,Bre,KFe),f.jd=function(){return this.b.value[0]},f.kd=function(){return this.a.d!=this.c?MT(this.a,this.b.value[0]):this.b.value[1]},f.ld=function(t){return lw(this.a,this.b.value[0],t)},f.c=0,M(kn,"InternalStringMap/2",1053),E(226,44,t3,_0,mbe),f.$b=function(){xFe(this)},f._b=function(t){return n$e(this,t)},f.uc=function(t){var n;for(n=this.d.a;n!=this.d;){if(bc(n.e,t))return!0;n=n.a}return!1},f.vc=function(){return new Zde(this)},f.xc=function(t){return yh(this,t)},f.yc=function(t,n){return wm(this,t,n)},f.Ac=function(t){return zWe(this,t)},f.gc=function(){return kT(this.e)},f.c=!1,M(kn,"LinkedHashMap",226),E(395,392,{483:1,392:1,395:1,45:1},Qze,gpe),M(kn,"LinkedHashMap/ChainEntry",395),E(711,Mh,Il,Zde),f.$b=function(){xFe(this.a)},f.Gc=function(t){return dUe(this,t)},f.Jc=function(){return new eme(this)},f.Kc=function(t){var n;return dUe(this,t)?(n=c(t,45).jd(),zWe(this.a,n),!0):!1},f.gc=function(){return kT(this.a.e)},M(kn,"LinkedHashMap/EntrySet",711),E(712,1,ns,eme),f.Nb=function(t){ps(this,t)},f.Pb=function(){return GWe(this)},f.Ob=function(){return this.c!=this.d.a.d},f.Qb=function(){U2(!!this.a),VZ(this.d.a.e.g,this.b),Ope(this.a),q4(this.d.a.e,this.a.d),this.b=this.d.a.e.g,this.a=null},f.b=0,M(kn,"LinkedHashMap/EntrySet/EntryIterator",712),E(184,47,Yye,Ld,PZ,Npe);var Sin=M(kn,"LinkedHashSet",184);E(66,2041,{3:1,4:1,22:1,32:1,56:1,18:1,66:1,16:1},_i,JZ),f.Ec=function(t){return ni(this,t)},f.$b=function(){ku(this)},f.dd=function(t){return Ln(this,t)},f.gc=function(){return this.b},f.b=0;var Tin=M(kn,"LinkedList",66);E(972,1,Ud,ZFe),f.Nb=function(t){ps(this,t)},f.Rb=function(t){Dq(this,t)},f.Ob=function(){return m_(this)},f.Sb=function(){return this.b.b!=this.d.a},f.Pb=function(){return _n(this)},f.Tb=function(){return this.a},f.Ub=function(){return eUe(this)},f.Vb=function(){return this.a-1},f.Qb=function(){Ate(this)},f.Wb=function(t){U2(!!this.c),this.c.c=t},f.a=0,f.c=null,M(kn,"LinkedList/ListIteratorImpl",972),E(614,1,{},Je),M(kn,"LinkedList/Node",614),E(2036,1,{});var iOe,fht;M(kn,"Locale",2036),E(863,2036,{},_t),f.Ib=function(){return""},M(kn,"Locale/1",863),E(864,2036,{},nn),f.Ib=function(){return"unknown"},M(kn,"Locale/4",864),E(113,63,{3:1,102:1,63:1,81:1,113:1},Eo,oGe),M(kn,"NoSuchElementException",113),E(461,1,{461:1},jY),f.Fb=function(t){var n;return t===this?!0:he(t,461)?(n=c(t,461),bc(this.a,n.a)):!1},f.Hb=function(){return jy(this.a)},f.Ib=function(){return this.a!=null?tct+WT(this.a)+")":"Optional.empty()"};var rOe;M(kn,"Optional",461),E(405,1,{405:1},NBe,$Z),f.Fb=function(t){var n;return t===this?!0:he(t,405)?(n=c(t,405),this.a==n.a&&Ci(this.b,n.b)==0):!1},f.Hb=function(){return this.a?ys(this.b):0},f.Ib=function(){return this.a?"OptionalDouble.of("+(""+this.b)+")":"OptionalDouble.empty()"},f.a=!1,f.b=0;var fce;M(kn,"OptionalDouble",405),E(514,1,{514:1},_Be,Wze),f.Fb=function(t){var n;return t===this?!0:he(t,514)?(n=c(t,514),this.a==n.a&&pc(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 hht;M(kn,"OptionalInt",514),E(500,2082,Dv,Mq),f.Fc=function(t){return J2e(this,t)},f.$b=function(){B2(this.b.c,0)},f.Gc=function(t){return(t==null?-1:Do(this.b,t,0))!=-1},f.Jc=function(){return new e_e(this)},f.Kc=function(t){return lXe(this,t)},f.gc=function(){return this.b.c.length},f.Lc=function(){return new Ct(this,256)},f.Nc=function(){return dq(this.b.c)},f.Oc=function(t){return Oh(this.b,t)},M(kn,"PriorityQueue",500),E(1272,1,ns,e_e),f.Nb=function(t){ps(this,t)},f.Ob=function(){return this.a<this.c.b.c.length},f.Pb=function(){return pn(this.a<this.c.b.c.length),this.b=this.a++,Xe(this.c.b,this.b)},f.Qb=function(){U2(this.b!=-1),Rte(this.c,this.a=this.b),this.b=-1},f.a=0,f.b=-1,M(kn,"PriorityQueue/1",1272),E(237,1,{237:1},yne,cH),f.a=0,f.b=0;var sOe,oOe,Cin=0;M(kn,"Random",237),E(27,1,Ju,Ct,nv,gGe),f.yd=function(t){return(this.a&t)!=0},f.wd=function(){return this.a},f.xd=function(){return zpe(this),this.c},f.Nb=function(t){zpe(this),this.d.Nb(t)},f.zd=function(t){return aVe(this,t)},f.a=0,f.c=0,M(kn,"Spliterators/IteratorSpliterator",27),E(484,27,Ju,bF),M(kn,"SortedSet/1",484),E(607,1,PL,e1e),f.Ne=function(t){this.a.Ad(t)},M(kn,"Spliterator/OfDouble/0methodref$accept$Type",607),E(608,1,PL,t1e),f.Ne=function(t){this.a.Ad(t)},M(kn,"Spliterator/OfDouble/1methodref$accept$Type",608),E(609,1,EL,n1e),f.Bd=function(t){this.a.Ad(ze(t))},M(kn,"Spliterator/OfInt/2methodref$accept$Type",609),E(610,1,EL,i1e),f.Bd=function(t){this.a.Ad(ze(t))},M(kn,"Spliterator/OfInt/3methodref$accept$Type",610),E(623,1,Ju),f.Nb=function(t){U1e(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(kn,"Spliterators/BaseSpliterator",623),E(731,623,Ju),f.Oe=function(t){py(this,t)},f.Nb=function(t){he(t,191)?py(this,c(t,191)):py(this,new t1e(t))},f.zd=function(t){return he(t,191)?this.Pe(c(t,191)):this.Pe(new e1e(t))},M(kn,"Spliterators/AbstractDoubleSpliterator",731),E(730,623,Ju),f.Oe=function(t){py(this,t)},f.Nb=function(t){he(t,204)?py(this,c(t,204)):py(this,new i1e(t))},f.zd=function(t){return he(t,204)?this.Pe(c(t,204)):this.Pe(new n1e(t))},M(kn,"Spliterators/AbstractIntSpliterator",730),E(489,623,Ju),M(kn,"Spliterators/AbstractSpliterator",489),E(702,1,Ju),f.Nb=function(t){U1e(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(kn,"Spliterators/BaseArraySpliterator",702),E(952,702,Ju,Eqe),f.Qe=function(t,n){g8t(this,c(t,42),n)},f.Nb=function(t){Mee(this,t)},f.zd=function(t){return dH(this,t)},M(kn,"Spliterators/ArraySpliterator",952),E(703,702,Ju,FFe),f.Qe=function(t,n){p8t(this,c(t,191),n)},f.Oe=function(t){Mee(this,t)},f.Nb=function(t){he(t,191)?Mee(this,c(t,191)):Mee(this,new t1e(t))},f.Pe=function(t){return dH(this,t)},f.zd=function(t){return he(t,191)?dH(this,c(t,191)):dH(this,new e1e(t))},M(kn,"Spliterators/DoubleArraySpliterator",703),E(2045,1,Ju),f.Nb=function(t){U1e(this,t)},f.yd=function(t){return(16448&t)!=0},f.wd=function(){return 16448},f.xd=function(){return 0};var dht;M(kn,"Spliterators/EmptySpliterator",2045),E(951,2045,Ju,an),f.Oe=function(t){qp(t)},f.Nb=function(t){he(t,204)?qp(c(t,204)):qp(new i1e(t))},f.Pe=function(t){return fge(t)},f.zd=function(t){return he(t,204)?fge(c(t,204)):fge(new n1e(t))},M(kn,"Spliterators/EmptySpliterator/OfInt",951),E(581,56,kct,Uz),f._c=function(t,n){Y6(t,this.a.c.length+1),Xp(this.a,t,n)},f.Ec=function(t){return Ue(this.a,t)},f.ad=function(t,n){return Y6(t,this.a.c.length+1),$we(this.a,t,n)},f.Fc=function(t){return Or(this.a,t)},f.$b=function(){B2(this.a.c,0)},f.Gc=function(t){return Do(this.a,t,0)!=-1},f.Hc=function(t){return BD(this.a,t)},f.Ic=function(t){Vc(this.a,t)},f.Xb=function(t){return Y6(t,this.a.c.length),Xe(this.a,t)},f.bd=function(t){return Do(this.a,t,0)},f.dc=function(){return this.a.c.length==0},f.Jc=function(){return new J(this.a)},f.ed=function(t){return Y6(t,this.a.c.length),Ng(this.a,t)},f.ae=function(t,n){NQe(this.a,t,n)},f.fd=function(t,n){return Y6(t,this.a.c.length),Ou(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 nd(this.a,t,n)},f.Nc=function(){return dq(this.a.c)},f.Oc=function(t){return Oh(this.a,t)},f.Ib=function(){return Ch(this.a)},M(kn,"Vector",581),E(582,581,kct,Jz),M(kn,"Stack",582),E(215,1,{215:1},dm),f.Ib=function(){return ZQe(this)},M(kn,"StringJoiner",215),E(545,2069,{3:1,93:1,141:1,136:1},FRe,pee),f.$b=function(){pIe(this)},f.Be=function(){return new oUe(this)},f.vc=function(){return new Bze(this)},f.Ce=function(t){return Ij(this,t,!0)},f.De=function(t){return TKe(this,t)},f.Ee=function(){return Sbe(this)},f.Fe=function(t){return KD(this,t,!0)},f.Ge=function(t){return Ij(this,t,!1)},f.He=function(){return mWe(this)},f.Ie=function(t){return KD(this,t,!1)},f.Xc=function(t,n){return AQe(this,t,n)},f.yc=function(t,n){return hKe(this,t,n)},f.Ac=function(t){return KGe(this,t)},f.Je=function(t){return gbe(this,t)},f.gc=function(){return this.c},f.$c=function(t,n){return MQe(this,t,n)},f.c=0,M(kn,"TreeMap",545),E(546,1,ns,oUe,Fte),f.Nb=function(t){ps(this,t)},f.Pb=function(){return Hze(this)},f.Ob=function(){return HY(this.a)},f.Qb=function(){WFe(this)},M(kn,"TreeMap/EntryIterator",546),E(1123,627,Il,Bze),f.$b=function(){pIe(this.a)},M(kn,"TreeMap/EntrySet",1123),E(443,392,{483:1,392:1,45:1,443:1},bte),f.b=!1;var Ein=M(kn,"TreeMap/Node",443);E(628,1,{},Jn),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(kn,"TreeMap/State",628),E(629,2069,Gye,bie),f.Be=function(){return new Fte(this.c,this.f,this.b,this.a,this.e,this.d)},f.vc=function(){return new uY(this)},f.Ce=function(t){return aq(this,Ij(this.c,t,!0))},f.De=function(t){return aq(this,TKe(this.c,t))},f.Ee=function(){var t;return this.f.Re()?this.a?t=Ij(this.c,this.b,!0):t=Ij(this.c,this.b,!1):t=Sbe(this.c),t&&Iq(this,t.d)?t:null},f.Fe=function(t){return aq(this,KD(this.c,t,!0))},f.Ge=function(t){return aq(this,Ij(this.c,t,!1))},f.He=function(){var t;return this.f.Se()?this.d?t=KD(this.c,this.e,!0):t=KD(this.c,this.e,!1):t=mWe(this.c),t&&Iq(this,t.d)?t:null},f.Ie=function(t){return aq(this,KD(this.c,t,!1))},f.Xc=function(t,n){if(this.f.Se()&&this.c.a.Le(t,this.e)>0)throw K(new Ht(t3e+t+" greater than "+this.e));return this.f.Re()?XGe(this.c,this.b,this.a,t,n):AQe(this.c,t,n)},f.yc=function(t,n){if(!tie(this.c,this.f,t,this.b,this.a,this.e,this.d))throw K(new Ht(t+" outside the range "+this.b+" to "+this.e));return hKe(this.c,t,n)},f.Ac=function(t){var n;return n=t,tie(this.c,this.f,n,this.b,this.a,this.e,this.d)?KGe(this.c,n):null},f.Je=function(t){return Iq(this,t.jd())&&gbe(this.c,t)},f.gc=function(){var t,n,i;if(this.f.Re()?this.a?n=Ij(this.c,this.b,!0):n=Ij(this.c,this.b,!1):n=Sbe(this.c),!(n&&Iq(this,n.d)&&n))return 0;for(t=0,i=new Fte(this.c,this.f,this.b,this.a,this.e,this.d);HY(i.a);i.b=c(pme(i.a),45))++t;return t},f.$c=function(t,n){if(this.f.Re()&&this.c.a.Le(t,this.b)<0)throw K(new Ht(t3e+t+Oct+this.b));return this.f.Se()?XGe(this.c,t,n,this.e,this.d):MQe(this.c,t,n)},f.a=!1,f.d=!1,M(kn,"TreeMap/SubMap",629),E(310,23,Hre,wF),f.Re=function(){return!1},f.Se=function(){return!1};var hce,dce,gce,pce,EU=vn(kn,"TreeMap/SubMapType",310,Sn,$Lt,YCt);E(1124,310,Hre,UBe),f.Se=function(){return!0},vn(kn,"TreeMap/SubMapType/1",1124,EU,null,null),E(1125,310,Hre,rze),f.Re=function(){return!0},f.Se=function(){return!0},vn(kn,"TreeMap/SubMapType/2",1125,EU,null,null),E(1126,310,Hre,JBe),f.Re=function(){return!0},vn(kn,"TreeMap/SubMapType/3",1126,EU,null,null);var ght;E(143,Mh,{3:1,22:1,32:1,18:1,279:1,24:1,85:1,143:1},mY,w0e,jg,C6),f.Lc=function(){return new bF(this)},f.Ec=function(t){return nD(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 DZ(this,t)},f.gc=function(){return this.a.gc()};var Min=M(kn,"TreeSet",143);E(1063,1,{},n_e),f.Te=function(t,n){return bCt(this.a,t,n)},M(Gre,"BinaryOperator/lambda$0$Type",1063),E(1064,1,{},i_e),f.Te=function(t,n){return wCt(this.a,t,n)},M(Gre,"BinaryOperator/lambda$1$Type",1064),E(944,1,{},ei),f.Kb=function(t){return t},M(Gre,"Function/lambda$0$Type",944),E(390,1,Wn,E6),f.Mb=function(t){return!this.a.Mb(t)},M(Gre,"Predicate/lambda$2$Type",390),E(574,1,{574:1});var pht=M(wC,"Handler",574);E(2086,1,TL),f.ve=function(){return"DUMMY"},f.Ib=function(){return this.ve()};var cOe;M(wC,"Level",2086),E(1689,2086,TL,Ei),f.ve=function(){return"INFO"},M(wC,"Level/LevelInfo",1689),E(1841,1,{},kPe);var mce;M(wC,"LogManager",1841),E(1883,1,TL,eqe),f.b=null,M(wC,"LogRecord",1883),E(515,1,{515:1},cte),f.e=!1;var mht=!1,bht=!1,Dh=!1,wht=!1,vht=!1;M(wC,"Logger",515),E(827,574,{574:1},xi),M(wC,"SimpleConsoleLogHandler",827),E(132,23,{3:1,34:1,23:1,132:1},GY);var lOe,vl,uOe,xl=vn(Js,"Collector/Characteristics",132,Sn,kDt,ZCt),xht;E(753,1,{},Jpe),M(Js,"CollectorImpl",753),E(1061,1,{},rr),f.Te=function(t,n){return WBt(c(t,215),c(n,215))},M(Js,"Collectors/10methodref$merge$Type",1061),E(1062,1,{},zs),f.Kb=function(t){return ZQe(c(t,215))},M(Js,"Collectors/11methodref$toString$Type",1062),E(153,1,{},Ji),f.Wd=function(t,n){c(t,18).Ec(n)},M(Js,"Collectors/20methodref$add$Type",153),E(155,1,{},ds),f.Ve=function(){return new Qe},M(Js,"Collectors/21methodref$ctor$Type",155),E(1060,1,{},qo),f.Wd=function(t,n){A1(c(t,215),c(n,475))},M(Js,"Collectors/9methodref$add$Type",1060),E(1059,1,{},gqe),f.Ve=function(){return new dm(this.a,this.b,this.c)},M(Js,"Collectors/lambda$15$Type",1059),E(154,1,{},yo),f.Te=function(t,n){return V8t(c(t,18),c(n,18))},M(Js,"Collectors/lambda$45$Type",154),E(542,1,{}),f.Ye=function(){l7(this)},f.d=!1,M(Js,"TerminatableStream",542),E(775,542,n3e,N0e),f.Ye=function(){l7(this)},M(Js,"DoubleStreamImpl",775),E(1309,731,Ju,pqe),f.Pe=function(t){return Sqt(this,c(t,191))},f.a=null,M(Js,"DoubleStreamImpl/2",1309),E(1310,1,PL,r_e),f.Ne=function(t){HTt(this.a,t)},M(Js,"DoubleStreamImpl/2/lambda$0$Type",1310),E(1307,1,PL,s_e),f.Ne=function(t){qTt(this.a,t)},M(Js,"DoubleStreamImpl/lambda$0$Type",1307),E(1308,1,PL,o_e),f.Ne=function(t){zYe(this.a,t)},M(Js,"DoubleStreamImpl/lambda$2$Type",1308),E(1363,730,Ju,hJe),f.Pe=function(t){return MLt(this,c(t,204))},f.a=0,f.b=0,f.c=0,M(Js,"IntStream/5",1363),E(800,542,n3e,_0e),f.Ye=function(){l7(this)},f.Ze=function(){return M0(this),this.a},M(Js,"IntStreamImpl",800),E(801,542,n3e,nge),f.Ye=function(){l7(this)},f.Ze=function(){return M0(this),r0e(),dht},M(Js,"IntStreamImpl/Empty",801),E(1668,1,EL,c_e),f.Bd=function(t){IXe(this.a,t)},M(Js,"IntStreamImpl/lambda$4$Type",1668);var Ain=er(Js,"Stream");E(28,542,{524:1,684:1,840:1},Tt),f.Ye=function(){l7(this)};var Ck;M(Js,"StreamImpl",28),E(1083,489,Ju,qFe),f.zd=function(t){for(;TIt(this);){if(this.a.zd(t))return!0;l7(this.b),this.b=null,this.a=null}return!1},M(Js,"StreamImpl/1",1083),E(1084,1,un,l_e),f.Ad=function(t){lAt(this.a,c(t,840))},M(Js,"StreamImpl/1/lambda$0$Type",1084),E(1085,1,Wn,u_e),f.Mb=function(t){return Cr(this.a,t)},M(Js,"StreamImpl/1methodref$add$Type",1085),E(1086,489,Ju,SGe),f.zd=function(t){var n;return this.a||(n=new Qe,this.b.a.Nb(new a_e(n)),Mt(),Rr(n,this.c),this.a=new Ct(n,16)),aVe(this.a,t)},f.a=null,M(Js,"StreamImpl/5",1086),E(1087,1,un,a_e),f.Ad=function(t){Ue(this.a,t)},M(Js,"StreamImpl/5/2methodref$add$Type",1087),E(732,489,Ju,kbe),f.zd=function(t){for(this.b=!1;!this.b&&this.c.zd(new r$e(this,t)););return this.b},f.b=!1,M(Js,"StreamImpl/FilterSpliterator",732),E(1077,1,un,r$e),f.Ad=function(t){nNt(this.a,this.b,t)},M(Js,"StreamImpl/FilterSpliterator/lambda$0$Type",1077),E(1072,731,Ju,yJe),f.Pe=function(t){return PCt(this,c(t,191))},M(Js,"StreamImpl/MapToDoubleSpliterator",1072),E(1076,1,un,s$e),f.Ad=function(t){fTt(this.a,this.b,t)},M(Js,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1076),E(1071,730,Ju,kJe),f.Pe=function(t){return ICt(this,c(t,204))},M(Js,"StreamImpl/MapToIntSpliterator",1071),E(1075,1,un,o$e),f.Ad=function(t){hTt(this.a,this.b,t)},M(Js,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1075),E(729,489,Ju,ube),f.zd=function(t){return zFe(this,t)},M(Js,"StreamImpl/MapToObjSpliterator",729),E(1074,1,un,c$e),f.Ad=function(t){dTt(this.a,this.b,t)},M(Js,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1074),E(1073,489,Ju,KVe),f.zd=function(t){for(;FY(this.b,0);){if(!this.a.zd(new mo))return!1;this.b=Ga(this.b,1)}return this.a.zd(t)},f.b=0,M(Js,"StreamImpl/SkipSpliterator",1073),E(1078,1,un,mo),f.Ad=function(t){},M(Js,"StreamImpl/SkipSpliterator/lambda$0$Type",1078),E(624,1,un,hs),f.Ad=function(t){nY(this,t)},M(Js,"StreamImpl/ValueConsumer",624),E(1079,1,un,Fo),f.Ad=function(t){Jp()},M(Js,"StreamImpl/lambda$0$Type",1079),E(1080,1,un,Bn),f.Ad=function(t){Jp()},M(Js,"StreamImpl/lambda$1$Type",1080),E(1081,1,{},f_e),f.Te=function(t,n){return rEt(this.a,t,n)},M(Js,"StreamImpl/lambda$4$Type",1081),E(1082,1,un,l$e),f.Ad=function(t){MCt(this.b,this.a,t)},M(Js,"StreamImpl/lambda$5$Type",1082),E(1088,1,un,h_e),f.Ad=function(t){T$t(this.a,c(t,376))},M(Js,"TerminatableStream/lambda$0$Type",1088),E(2121,1,{}),E(1993,1,{},Kr),M("javaemul.internal","ConsoleLogger",1993);var Nin=0;E(2113,1,{}),E(1817,1,un,sa),f.Ad=function(t){c(t,322)},M(aS,"BowyerWatsonTriangulation/lambda$0$Type",1817),E(1818,1,un,d_e),f.Ad=function(t){Os(this.a,c(t,322).e)},M(aS,"BowyerWatsonTriangulation/lambda$1$Type",1818),E(1819,1,un,_p),f.Ad=function(t){c(t,180)},M(aS,"BowyerWatsonTriangulation/lambda$2$Type",1819),E(1814,1,Zn,g_e),f.Le=function(t,n){return wPt(this.a,c(t,180),c(n,180))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(aS,"NaiveMinST/lambda$0$Type",1814),E(401,1,{},M6),M(aS,"NodeMicroLayout",401),E(180,1,{180:1},b4),f.Fb=function(t){var n;return he(t,180)?(n=c(t,180),bc(this.a,n.a)&&bc(this.b,n.b)||bc(this.a,n.b)&&bc(this.b,n.a)):!1},f.Hb=function(){return jy(this.a)+jy(this.b)};var _in=M(aS,"TEdge",180);E(322,1,{322:1},mye),f.Fb=function(t){var n;return he(t,322)?(n=c(t,322),xH(this,n.a)&&xH(this,n.b)&&xH(this,n.c)):!1},f.Hb=function(){return jy(this.a)+jy(this.b)+jy(this.c)},M(aS,"TTriangle",322),E(227,1,{227:1},JF),M(aS,"Tree",227),E(1195,1,{},yQe),M(Tct,"Scanline",1195);var yht=er(Tct,Cct);E(1745,1,{},fVe),M(Xd,"CGraph",1745),E(321,1,{321:1},cQe),f.b=0,f.c=0,f.d=0,f.g=0,f.i=0,f.k=Gr,M(Xd,"CGroup",321),E(821,1,{},x1e),M(Xd,"CGroup/CGroupBuilder",821),E(60,1,{60:1},OFe),f.Ib=function(){var t;return this.j?qn(this.j.Kb(this)):(j1(MU),MU.o+"@"+(t=Hb(this)>>>0,t.toString(16)))},f.f=0,f.i=Gr;var MU=M(Xd,"CNode",60);E(820,1,{},y1e),M(Xd,"CNode/CNodeBuilder",820);var kht;E(1568,1,{},Wh),f.df=function(t,n){return 0},f.ef=function(t,n){return 0},M(Xd,Mct,1568),E(1847,1,{},d0),f.af=function(t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G;for(k=or,r=new J(t.a.b);r.a<r.c.c.length;)n=c(U(r),60),k=p.Math.min(k,n.a.j.d.c+n.b.a);for(R=new _i,d=new J(t.a.a);d.a<d.c.c.length;)a=c(U(d),321),a.k=k,a.g==0&&sr(R,a,R.c.b,R.c);for(;R.b!=0;){for(a=c(R.b==0?null:(pn(R.b!=0),wa(R,R.a.a)),321),o=a.j.d.c,L=a.a.a.ec().Jc();L.Ob();)T=c(L.Pb(),60),G=a.k+T.b.a,!NBt(t,a,t.d)||T.d.c<G?T.i=G:T.i=T.d.c;for(o-=a.j.i,a.b+=o,t.d==(_r(),vo)||t.d==Bh?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),k1(t.d)?F=t.g.df(T,b):F=t.g.ef(T,b),b.a.k=p.Math.max(b.a.k,T.i+T.d.b+F-b.b.a),PGe(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&&ni(R,b.a)}for(i=new J(t.a.b);i.a<i.c.c.length;)n=c(U(i),60),n.d.c=n.i},M(Xd,"LongestPathCompaction",1847),E(1743,1,{},mnt),f.e=!1;var Oht,jht,Sht,bce=M(Xd,_ct,1743);E(1744,1,un,p_e),f.Ad=function(t){$$t(this.a,c(t,49))},M(Xd,Dct,1744),E(1848,1,{},Dp),f.bf=function(t){var n,i,r,o,a,d,b;for(i=new J(t.a.b);i.a<i.c.c.length;)n=c(U(i),60),n.c.$b();for(o=new J(t.a.b);o.a<o.c.c.length;)for(r=c(U(o),60),d=new J(t.a.b);d.a<d.c.c.length;)a=c(U(d),60),r!=a&&(r.a&&r.a==a.a||(k1(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)&&aFt(a.d.d+a.d.a+b,r.d.d)&&j2e(a.d.d,r.d.d+r.d.a+b)&&r.c.Ec(a)))},M(Xd,"QuadraticConstraintCalculation",1848),E(520,1,{520:1},dY),f.a=!1,f.b=!1,f.c=!1,f.d=!1,M(Xd,Lct,520),E(811,1,{},_pe),f.bf=function(t){this.c=t,lL(this,new qc)},M(Xd,Pct,811),E(1771,1,{690:1},$Ge),f._e=function(t){kUt(this,c(t,466))},M(Xd,Ict,1771),E(1772,1,Zn,EO),f.Le=function(t,n){return s_t(c(t,60),c(n,60))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Xd,Rct,1772),E(466,1,{466:1},pge),f.a=!1,M(Xd,$ct,466),E(1773,1,Zn,c2),f.Le=function(t,n){return $Ht(c(t,466),c(n,466))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Xd,Bct,1773),E(1774,1,hd,qc),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(Xd,"ScanlineConstraintCalculator/lambda$1$Type",1774),E(220,1,{220:1},cb),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 Tht=M(vC,"NEdge",220);E(186,1,{},$a),M(vC,"NEdge/NEdgeBuilder",186),E(658,1,{},pY),M(vC,"NGraph",658),E(126,1,{126:1},TJe),f.c=-1,f.d=0,f.e=0,f.i=-1,f.j=!1;var aOe=M(vC,"NNode",126);E(802,1,yct,v1e),f.Ic=function(t){ws(this,t)},f.gd=function(t){fm(this,t)},f.Lc=function(){return new Ct(this,16)},f.Mc=function(){return new Tt(null,new Ct(this,16))},f._c=function(t,n){++this.b,Xp(this.a,t,n)},f.Ec=function(t){return YF(this,t)},f.ad=function(t,n){return++this.b,$we(this.a,t,n)},f.Fc=function(t){return++this.b,Or(this.a,t)},f.$b=function(){++this.b,B2(this.a.c,0)},f.Gc=function(t){return Do(this.a,t,0)!=-1},f.Hc=function(t){return BD(this.a,t)},f.Xb=function(t){return Xe(this.a,t)},f.bd=function(t){return Do(this.a,t,0)},f.dc=function(){return this.a.c.length==0},f.Jc=function(){return G4(new J(this.a))},f.cd=function(){throw K(new zn)},f.dd=function(t){throw K(new zn)},f.ed=function(t){return++this.b,Ng(this.a,t)},f.Kc=function(t){return p0e(this,t)},f.fd=function(t,n){return++this.b,Ou(this.a,t,n)},f.gc=function(){return this.a.c.length},f.hd=function(t,n){return new nd(this.a,t,n)},f.Nc=function(){return dq(this.a.c)},f.Oc=function(t){return Oh(this.a,t)},f.b=0,M(vC,"NNode/ChangeAwareArrayList",802),E(276,1,{},Qp),M(vC,"NNode/NNodeBuilder",276),E(1677,1,{},AO),f.a=!1,f.f=pi,f.j=0,M(vC,"NetworkSimplex",1677),E(1290,1,un,m_e),f.Ad=function(t){_ye(this.a,c(t,692),!0,!1)},M(zct,"NodeLabelAndSizeCalculator/lambda$0$Type",1290),E(561,1,{},$z),f.b=!0,f.c=!0,f.d=!0,f.e=!0,M(zct,"NodeMarginCalculator",561),E(219,1,{219:1}),f.j=!1,f.k=!1;var Cht=M(Sm,"Cell",219);E(129,219,{129:1,219:1},kFe),f.ff=function(){return gq(this)},f.gf=function(){var t;return t=this.n,this.a.a+t.b+t.c},M(Sm,"AtomicCell",129),E(240,23,{3:1,34:1,23:1,240:1},QY);var Ko,el,Yo,Fv=vn(Sm,"ContainerArea",240,Sn,ODt,eEt),Eht;E(338,219,Fct),M(Sm,"ContainerCell",338),E(1516,338,Fct,$Ye),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=f2e(this,JZe(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=f2e(this,iie(this,null,!0));else for(n=(Yf(),ee(Z(Fv,1),Re,240,0,[Ko,el,Yo])),i=0,r=n.length;i<r;++i)t=n[i],o=p.Math.max(o,f2e(this,iie(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=iie(this,null,!1),i=(Yf(),ee(Z(Fv,1),Re,240,0,[Ko,el,Yo])),r=0,o=i.length;r<o;++r)n=i[r],Fit(this,n,t);else for(i=(Yf(),ee(Z(Fv,1),Re,240,0,[Ko,el,Yo])),r=0,o=i.length;r<o;++r)n=i[r],t=iie(this,n,!1),Fit(this,n,t)},f.jf=function(){var t,n,i,r;n=this.i,t=this.n,r=JZe(this,!1),sbe(this,(Yf(),Ko),n.d+t.d,r),sbe(this,Yo,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),sbe(this,el,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 wce=0,AU=0;M(Sm,"GridContainerCell",1516),E(464,23,{3:1,34:1,23:1,464:1},UY);var tp,wd,Ef,Mht=vn(Sm,"HorizontalLabelAlignment",464,Sn,jDt,tEt),Aht;E(319,219,{219:1,319:1},eQe,hVe,QGe),f.ff=function(){return jqe(this)},f.gf=function(){return jpe(this)},f.a=0,f.c=!1;var Din=M(Sm,"LabelCell",319);E(256,338,{219:1,338:1,256:1},F7),f.ff=function(){return X7(this)},f.gf=function(){return K7(this)},f.hf=function(){Gie(this)},f.jf=function(){Qie(this)},f.b=0,f.c=0,f.d=!1,M(Sm,"StripContainerCell",256),E(1672,1,Wn,qf),f.Mb=function(t){return c8t(c(t,219))},M(Sm,"StripContainerCell/lambda$0$Type",1672),E(1673,1,{},lg),f.We=function(t){return c(t,219).gf()},M(Sm,"StripContainerCell/lambda$1$Type",1673),E(1674,1,Wn,cf),f.Mb=function(t){return l8t(c(t,219))},M(Sm,"StripContainerCell/lambda$2$Type",1674),E(1675,1,{},lb),f.We=function(t){return c(t,219).ff()},M(Sm,"StripContainerCell/lambda$3$Type",1675),E(465,23,{3:1,34:1,23:1,465:1},JY);var Mf,np,rh,Nht=vn(Sm,"VerticalLabelAlignment",465,Sn,SDt,nEt),_ht;E(794,1,{},Lye),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(yQ,"NodeContext",794),E(1514,1,Zn,h5),f.Le=function(t,n){return RBe(c(t,64),c(n,64))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(yQ,"NodeContext/0methodref$comparePortSides$Type",1514),E(1515,1,Zn,MO),f.Le=function(t,n){return lQt(c(t,116),c(n,116))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(yQ,"NodeContext/1methodref$comparePortContexts$Type",1515),E(169,23,{3:1,34:1,23:1,169:1},xa);var Dht,Lht,Pht,Iht,Rht,$ht,Bht,zht,Fht,qht,Hht,Ght,Qht,Uht,Jht,Wht,Vht,Xht,Kht,Yht,Zht,vce,edt=vn(yQ,"NodeLabelLocation",169,Sn,Lne,iEt),tdt;E(116,1,{116:1},Ont),f.a=!1,M(yQ,"PortContext",116),E(1519,1,un,g0),f.Ad=function(t){rRe(c(t,319))},M(RL,qct,1519),E(1520,1,Wn,l2),f.Mb=function(t){return!!c(t,116).c},M(RL,Hct,1520),E(1521,1,un,u2),f.Ad=function(t){rRe(c(t,116).c)},M(RL,"LabelPlacer/lambda$2$Type",1521);var fOe;E(1518,1,un,ug),f.Ad=function(t){V2(),z9t(c(t,116))},M(RL,"NodeLabelAndSizeUtilities/lambda$0$Type",1518),E(795,1,un,ipe),f.Ad=function(t){eTt(this.b,this.c,this.a,c(t,190))},f.a=!1,f.c=!1,M(RL,"NodeLabelCellCreator/lambda$0$Type",795),E(1517,1,un,b_e),f.Ad=function(t){G9t(this.a,c(t,190))},M(RL,"PortContextCreator/lambda$0$Type",1517);var NU;E(1889,1,{},a2),M(hS,"GreedyRectangleStripOverlapRemover",1889),E(1890,1,Zn,ub),f.Le=function(t,n){return D7t(c(t,228),c(n,228))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(hS,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1890),E(1843,1,{},CPe),f.a=5,f.e=0,M(hS,"RectangleStripOverlapRemover",1843),E(1844,1,Zn,NO),f.Le=function(t,n){return L7t(c(t,228),c(n,228))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(hS,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1844),E(1846,1,Zn,d5),f.Le=function(t,n){return bNt(c(t,228),c(n,228))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(hS,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1846),E(414,23,{3:1,34:1,23:1,414:1},vF);var aP,xce,yce,fP,ndt=vn(hS,"RectangleStripOverlapRemover/OverlapRemovalDirection",414,Sn,RLt,oEt),idt;E(228,1,{228:1},aee),M(hS,"RectangleStripOverlapRemover/RectangleNode",228),E(1845,1,un,w_e),f.Ad=function(t){Iqt(this.a,c(t,228))},M(hS,"RectangleStripOverlapRemover/lambda$1$Type",1845);var rdt=!1,VC,hOe;E(1815,1,un,f2),f.Ad=function(t){Pst(c(t,227))},M(vk,"DepthFirstCompaction/0methodref$compactTree$Type",1815),E(817,1,un,r1e),f.Ad=function(t){QNt(this.a,c(t,227))},M(vk,"DepthFirstCompaction/lambda$1$Type",817),E(1816,1,un,YFe),f.Ad=function(t){jFt(this.a,this.b,this.c,c(t,227))},M(vk,"DepthFirstCompaction/lambda$2$Type",1816);var XC,dOe;E(68,1,{68:1},OQe),M(vk,"Node",68),E(1191,1,{},nze),M(vk,"ScanlineOverlapCheck",1191),E(1192,1,{690:1},zGe),f._e=function(t){OCt(this,c(t,445))},M(vk,"ScanlineOverlapCheck/OverlapsScanlineHandler",1192),E(1193,1,Zn,ab),f.Le=function(t,n){return lzt(c(t,68),c(n,68))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(vk,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1193),E(445,1,{445:1},mge),f.a=!1,M(vk,"ScanlineOverlapCheck/Timestamp",445),E(1194,1,Zn,_O),f.Le=function(t,n){return BHt(c(t,445),c(n,445))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(vk,"ScanlineOverlapCheck/lambda$0$Type",1194),E(549,1,{},fb),M("org.eclipse.elk.alg.common.utils","SVGImage",549),E(755,1,{},qx),M(Vre,u3e,755),E(1176,1,Zn,g5),f.Le=function(t,n){return gJt(c(t,238),c(n,238))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Vre,Uct,1176),E(1177,1,un,u$e),f.Ad=function(t){CDt(this.b,this.a,c(t,254))},M(Vre,a3e,1177),E(207,1,Tm),M(n3,"AbstractLayoutProvider",207),E(733,207,Tm,k1e),f.kf=function(t,n){dit(this,t,n)},M(Vre,"ForceLayoutProvider",733);var Lin=er($L,Jct);E(151,1,{3:1,105:1,151:1},hb),f.of=function(t,n){return zD(this,t,n)},f.lf=function(){return Gqe(this)},f.mf=function(t){return $(this,t)},f.nf=function(t){return Oi(this,t)},M($L,"MapPropertyHolder",151),E(314,151,{3:1,314:1,105:1,151:1}),M(BL,"FParticle",314),E(254,314,{3:1,254:1,314:1,105:1,151:1},NHe),f.Ib=function(){var t;return this.a?(t=Do(this.a.a,this,0),t>=0?"b"+t+"["+ite(this.a)+"]":"b["+ite(this.a)+"]"):"b_"+Hb(this)},M(BL,"FBendpoint",254),E(292,151,{3:1,292:1,105:1,151:1},jFe),f.Ib=function(){return ite(this)},M(BL,"FEdge",292),E(238,151,{3:1,238:1,105:1,151:1},aH);var Pin=M(BL,"FGraph",238);E(448,314,{3:1,448:1,314:1,105:1,151:1},PUe),f.Ib=function(){return this.b==null||this.b.length==0?"l["+ite(this.a)+"]":"l_"+this.b},M(BL,"FLabel",448),E(156,314,{3:1,156:1,314:1,105:1,151:1},ize),f.Ib=function(){return Dme(this)},f.a=0,M(BL,"FNode",156),E(2079,1,{}),f.qf=function(t){aye(this,t)},f.rf=function(){QZe(this)},f.d=0,M(f3e,"AbstractForceModel",2079),E(638,2079,{638:1},PXe),f.pf=function(t,n){var i,r,o,a,d;return Bst(this.f,t,n),o=Hr(Ms(n.d),t.d),d=p.Math.sqrt(o.a*o.a+o.b*o.b),r=p.Math.max(0,d-c7(t.e)/2-c7(n.e)/2),i=dnt(this.e,t,n),i>0?a=-aNt(r,this.c)*i:a=W7t(r,this.b)*c($(t,(Tf(),Ek)),15).a,O1(o,a/d),o},f.qf=function(t){aye(this,t),this.a=c($(t,(Tf(),DU)),15).a,this.c=ge(be($(t,LU))),this.b=ge(be($(t,Oce)))},f.sf=function(t){return t<this.a},f.a=0,f.b=0,f.c=0,M(f3e,"EadesModel",638),E(639,2079,{639:1},Dqe),f.pf=function(t,n){var i,r,o,a,d;return Bst(this.f,t,n),o=Hr(Ms(n.d),t.d),d=p.Math.sqrt(o.a*o.a+o.b*o.b),r=p.Math.max(0,d-c7(t.e)/2-c7(n.e)/2),a=J7t(r,this.a)*c($(t,(Tf(),Ek)),15).a,i=dnt(this.e,t,n),i>0&&(a-=i8t(r,this.a)*i),O1(o,a*this.b/d),o},f.qf=function(t){var n,i,r,o,a,d,b;for(aye(this,t),this.b=ge(be($(t,(Tf(),jce)))),this.c=this.b/c($(t,DU),15).a,r=t.e.c.length,a=0,o=0,b=new J(t.e);b.a<b.c.c.length;)d=c(U(b),156),a+=d.e.a,o+=d.e.b;n=a*o,i=ge(be($(t,LU)))*Ah,this.a=p.Math.sqrt(n/(2*r))*i},f.rf=function(){QZe(this),this.b-=this.c},f.sf=function(t){return this.b>0},f.a=0,f.b=0,f.c=0,M(f3e,"FruchtermanReingoldModel",639);var h3=er(Io,"ILayoutMetaDataProvider");E(852,1,Cf,_K),f.tf=function(t){gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,kQ),""),"Force Model"),"Determines the model for force calculation."),gOe),(Q0(),Vi)),pOe),bt((jh(),Dt))))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,h3e),""),"Iterations"),"The number of iterations on the force model."),ze(300)),Ss),Pr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,d3e),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),ze(0)),Ss),Pr),bt(ch)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Xre),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),dd),ls),Sr),bt(Dt)))),tr(t,Xre,kQ,fdt),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Kre),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),ls),Sr),bt(Dt)))),tr(t,Kre,kQ,ldt),Mot((new DK,t))};var sdt,odt,gOe,cdt,ldt,udt,adt,fdt;M(yC,"ForceMetaDataProvider",852),E(429,23,{3:1,34:1,23:1,429:1},gge);var kce,_U,pOe=vn(yC,"ForceModelStrategy",429,Sn,K_t,lEt),hdt;E(993,1,Cf,DK),f.tf=function(t){Mot(t)};var ddt,gdt,mOe,DU,bOe,pdt,mdt,bdt,wdt,wOe,vdt,vOe,xOe,xdt,Ek,ydt,Oce,yOe,kdt,Odt,LU,jce,jdt,Sdt,Tdt,kOe,Cdt;M(yC,"ForceOptions",993),E(994,1,{},Hx),f.uf=function(){var t;return t=new k1e,t},f.vf=function(t){},M(yC,"ForceOptions/ForceFactory",994);var hP,KC,Mk,PU;E(853,1,Cf,cz),f.tf=function(t){gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,p3e),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(zt(),!1)),(Q0(),Ir)),cr),bt((jh(),pr))))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,m3e),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),ls),Sr),Li(Dt,ee(Z(Ih,1),Re,161,0,[ch]))))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,b3e),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),OOe),Vi),AOe),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,w3e),""),"Stress Epsilon"),"Termination criterion for the iterative process."),dd),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,v3e),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),ze(pi)),Ss),Pr),bt(Dt)))),not((new so,t))};var Edt,Mdt,OOe,Adt,Ndt,_dt;M(yC,"StressMetaDataProvider",853),E(997,1,Cf,so),f.tf=function(t){not(t)};var IU,jOe,SOe,TOe,COe,EOe,Ddt,Ldt,Pdt,Idt,MOe,Rdt;M(yC,"StressOptions",997),E(998,1,{},p5),f.uf=function(){var t;return t=new SFe,t},f.vf=function(t){},M(yC,"StressOptions/StressFactory",998),E(1091,207,Tm,SFe),f.kf=function(t,n){var i,r,o,a,d;for(n.Tg(Yct,1),it(nt(Ae(t,(tL(),COe))))?it(nt(Ae(t,MOe)))||f7((i=new M6((k0(),new xg(t))),i)):dit(new k1e,t,n.dh(1)),o=cKe(t),r=ast(this.a,o),d=r.Jc();d.Ob();)a=c(d.Pb(),238),!(a.e.c.length<=1)&&(qZt(this.b,a),aWt(this.b),Vc(a.d,new ag));o=Tot(r),Pot(o),n.Ug()},M(SQ,"StressLayoutProvider",1091),E(1092,1,un,ag),f.Ad=function(t){vye(c(t,448))},M(SQ,"StressLayoutProvider/lambda$0$Type",1092),E(995,1,{},xPe),f.c=0,f.e=0,f.g=0,M(SQ,"StressMajorization",995),E(385,23,{3:1,34:1,23:1,385:1},WY);var Sce,Tce,Cce,AOe=vn(SQ,"StressMajorization/Dimension",385,Sn,EDt,uEt),$dt;E(996,1,Zn,v_e),f.Le=function(t,n){return BCt(this.a,c(t,156),c(n,156))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(SQ,"StressMajorization/lambda$0$Type",996),E(1173,1,{},RQe),M(kk,"ElkLayered",1173),E(1174,1,un,x_e),f.Ad=function(t){KUt(this.a,c(t,37))},M(kk,"ElkLayered/lambda$0$Type",1174),E(1175,1,un,y_e),f.Ad=function(t){$Ct(this.a,c(t,37))},M(kk,"ElkLayered/lambda$1$Type",1175),E(1258,1,{},sze);var Bdt,zdt,Fdt;M(kk,"GraphConfigurator",1258),E(764,1,un,s1e),f.Ad=function(t){htt(this.a,c(t,9))},M(kk,"GraphConfigurator/lambda$0$Type",764),E(765,1,{},Gx),f.Kb=function(t){return nve(),new Tt(null,new Ct(c(t,26).a,16))},M(kk,"GraphConfigurator/lambda$1$Type",765),E(766,1,un,o1e),f.Ad=function(t){htt(this.a,c(t,9))},M(kk,"GraphConfigurator/lambda$2$Type",766),E(1090,207,Tm,OPe),f.kf=function(t,n){var i;i=xZt(new MPe,t),Se(Ae(t,(We(),Kv)))===Se((I1(),t0))?pzt(this.a,i,n):oWt(this.a,i,n),n.Zg()||vot(new b6,i)},M(kk,"LayeredLayoutProvider",1090),E(364,23,{3:1,34:1,23:1,364:1},S_);var Af,Zd,Oc,jc,Vs,NOe=vn(kk,"LayeredPhases",364,Sn,LPt,aEt),qdt;E(1700,1,{},XVe),f.i=0;var Hdt;M(UL,"ComponentsToCGraphTransformer",1700);var Gdt;E(1701,1,{},_u),f.wf=function(t,n){return p.Math.min(t.a!=null?ge(t.a):t.c.i,n.a!=null?ge(n.a):n.c.i)},f.xf=function(t,n){return p.Math.min(t.a!=null?ge(t.a):t.c.i,n.a!=null?ge(n.a):n.c.i)},M(UL,"ComponentsToCGraphTransformer/1",1701),E(84,1,{84:1}),f.i=0,f.k=!0,f.o=Gr;var Ece=M(OC,"CNode",84);E(463,84,{463:1,84:1},v0e,N2e),f.Ib=function(){return""},M(UL,"ComponentsToCGraphTransformer/CRectNode",463),E(1669,1,{},lf);var Mce,Ace;M(UL,"OneDimensionalComponentsCompaction",1669),E(1670,1,{},p0),f.Kb=function(t){return bDt(c(t,49))},f.Fb=function(t){return this===t},M(UL,"OneDimensionalComponentsCompaction/lambda$0$Type",1670),E(1671,1,{},In),f.Kb=function(t){return xzt(c(t,49))},f.Fb=function(t){return this===t},M(UL,"OneDimensionalComponentsCompaction/lambda$1$Type",1671),E(1703,1,{},RHe),M(OC,"CGraph",1703),E(197,1,{197:1},Nne),f.b=0,f.c=0,f.e=0,f.g=!0,f.i=Gr,M(OC,"CGroup",197),E(1702,1,{},d2),f.wf=function(t,n){return p.Math.max(t.a!=null?ge(t.a):t.c.i,n.a!=null?ge(n.a):n.c.i)},f.xf=function(t,n){return p.Math.max(t.a!=null?ge(t.a):t.c.i,n.a!=null?ge(n.a):n.c.i)},M(OC,Mct,1702),E(1704,1,{},pnt),f.d=!1;var Qdt,Nce=M(OC,_ct,1704);E(1705,1,{},g2),f.Kb=function(t){return ige(),zt(),c(c(t,49).a,84).d.e!=0},f.Fb=function(t){return this===t},M(OC,Dct,1705),E(825,1,{},Ape),f.a=!1,f.b=!1,f.c=!1,f.d=!1,M(OC,Lct,825),E(1885,1,{},tHe),M(TQ,Pct,1885);var dP=er(Cm,Cct);E(1886,1,{378:1},BGe),f._e=function(t){pXt(this,c(t,468))},M(TQ,Ict,1886),E(1887,1,Zn,oa),f.Le=function(t,n){return o_t(c(t,84),c(n,84))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(TQ,Rct,1887),E(468,1,{468:1},bge),f.a=!1,M(TQ,$ct,468),E(1888,1,Zn,K9),f.Le=function(t,n){return zHt(c(t,468),c(n,468))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(TQ,Bct,1888),E(148,1,{148:1},q6,xpe),f.Fb=function(t){var n;return t==null||Iin!=ju(t)?!1:(n=c(t,148),bc(this.c,n.c)&&bc(this.d,n.d))},f.Hb=function(){return YH(ee(Z(Br,1),It,1,5,[this.c,this.d]))},f.Ib=function(){return"("+this.c+Yc+this.d+(this.a?"cx":"")+this.b+")"},f.a=!0,f.c=0,f.d=0;var Iin=M(Cm,"Point",148);E(413,23,{3:1,34:1,23:1,413:1},xF);var Lw,qv,d3,Hv,Udt=vn(Cm,"Point/Quadrant",413,Sn,ILt,cEt),Jdt;E(1691,1,{},jPe),f.b=null,f.c=null,f.d=null,f.e=null,f.f=null;var Wdt,Vdt,Xdt,Kdt,Ydt;M(Cm,"RectilinearConvexHull",1691),E(576,1,{378:1},vG),f._e=function(t){NIt(this,c(t,148))},f.b=0;var _Oe;M(Cm,"RectilinearConvexHull/MaximalElementsEventHandler",576),E(1693,1,Zn,tu),f.Le=function(t,n){return c_t(be(t),be(n))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Cm,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1693),E(1692,1,{378:1},rVe),f._e=function(t){NVt(this,c(t,148))},f.a=0,f.b=null,f.c=null,f.d=null,f.e=null,M(Cm,"RectilinearConvexHull/RectangleEventHandler",1692),E(1694,1,Zn,Ia),f.Le=function(t,n){return uLt(c(t,148),c(n,148))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Cm,"RectilinearConvexHull/lambda$0$Type",1694),E(1695,1,Zn,tc),f.Le=function(t,n){return aLt(c(t,148),c(n,148))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Cm,"RectilinearConvexHull/lambda$1$Type",1695),E(1696,1,Zn,db),f.Le=function(t,n){return hLt(c(t,148),c(n,148))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Cm,"RectilinearConvexHull/lambda$2$Type",1696),E(1697,1,Zn,DO),f.Le=function(t,n){return fLt(c(t,148),c(n,148))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Cm,"RectilinearConvexHull/lambda$3$Type",1697),E(1698,1,Zn,h2),f.Le=function(t,n){return OQt(c(t,148),c(n,148))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Cm,"RectilinearConvexHull/lambda$4$Type",1698),E(1699,1,{},kQe),M(Cm,"Scanline",1699),E(2083,1,{}),M(Nh,"AbstractGraphPlacer",2083),E(337,1,{337:1},Vze),f.Df=function(t){return this.Ef(t)?(St(this.b,c($(t,($e(),J1)),24),t),!0):!1},f.Ef=function(t){var n,i,r,o;for(n=c($(t,($e(),J1)),24),o=c(Ti(Di,n),24),r=o.Jc();r.Ob();)if(i=c(r.Pb(),24),!c(Ti(this.b,i),16).dc())return!1;return!0};var Di;M(Nh,"ComponentGroup",337),E(773,2083,{},O1e),f.Ff=function(t){var n,i;for(i=new J(this.a);i.a<i.c.c.length;)if(n=c(U(i),337),n.Df(t))return;Ue(this.a,new Vze(t))},f.Cf=function(t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F;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),ic(n,d),o=t.Jc();o.Ob();)r=c(o.Pb(),37),this.Ff(r);for(F=new us,a=ge(be($(d,(We(),NP)))),k=new J(this.a);k.a<k.c.c.length;)b=c(U(k),337),T=Iot(b,a),_g(Pq(b.b),F.a,F.b),F.a+=T.a,F.b+=T.b;if(n.f.a=F.a-a,n.f.b=F.b-a,it(nt($(d,kJ)))&&Se($(d,V1))===Se((R1(),w9))){for(R=t.Jc();R.Ob();)A=c(R.Pb(),37),Kj(A,A.c.a,A.c.b);for(i=new Lp,$ye(i,t,a),L=t.Jc();L.Ob();)A=c(L.Pb(),37),ji(Wf(A.c),i.e);ji(Wf(n.f),i.a)}for(v=new J(this.a);v.a<v.c.c.length;)b=c(U(v),337),ybe(n,Pq(b.b))},M(Nh,"ComponentGroupGraphPlacer",773),E(1288,773,{},zPe),f.Ff=function(t){tYe(this,t)},f.Cf=function(t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we;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),ic(n,d),o=t.Jc();o.Ob();)r=c(o.Pb(),37),tYe(this,r);for(we=new us,fe=new us,G=new us,F=new us,a=ge(be($(d,(We(),NP)))),k=new J(this.a);k.a<k.c.c.length;){if(b=c(U(k),337),k1(c($(n,(Pn(),Qm)),87))){for(G.a=we.a,oe=new mT(o7(See(b.b).a).a.kc());oe.b.Ob();)if(Y=c(mF(oe.b.Pb()),24),Y.Gc((Ve(),Yt))){G.a=fe.a;break}}else if(ky(c($(n,Qm),87))){for(G.b=we.b,oe=new mT(o7(See(b.b).a).a.kc());oe.b.Ob();)if(Y=c(mF(oe.b.Pb()),24),Y.Gc((Ve(),Zt))){G.b=fe.b;break}}if(T=Iot(c(b,572),a),_g(Pq(b.b),G.a,G.b),k1(c($(n,Qm),87))){for(fe.a=G.a+T.a,F.a=p.Math.max(F.a,fe.a),oe=new mT(o7(See(b.b).a).a.kc());oe.b.Ob();)if(Y=c(mF(oe.b.Pb()),24),Y.Gc((Ve(),wn))){we.a=G.a+T.a;break}fe.b=G.b+T.b,G.b=fe.b,F.b=p.Math.max(F.b,G.b)}else if(ky(c($(n,Qm),87))){for(fe.b=G.b+T.b,F.b=p.Math.max(F.b,fe.b),oe=new mT(o7(See(b.b).a).a.kc());oe.b.Ob();)if(Y=c(mF(oe.b.Pb()),24),Y.Gc((Ve(),sn))){we.b=G.b+T.b;break}fe.a=G.a+T.a,G.a=fe.a,F.a=p.Math.max(F.a,G.a)}}if(n.f.a=F.a-a,n.f.b=F.b-a,it(nt($(d,kJ)))&&Se($(d,V1))===Se((R1(),w9))){for(R=t.Jc();R.Ob();)A=c(R.Pb(),37),Kj(A,A.c.a,A.c.b);for(i=new Lp,$ye(i,t,a),L=t.Jc();L.Ob();)A=c(L.Pb(),37),ji(Wf(A.c),i.e);ji(Wf(n.f),i.a)}for(v=new J(this.a);v.a<v.c.c.length;)b=c(U(v),337),ybe(n,Pq(b.b))},M(Nh,"ComponentGroupModelOrderGraphPlacer",1288),E(384,23,{3:1,34:1,23:1,384:1},yF);var _ce,DOe,Dce,YC,LOe=vn(Nh,"ComponentOrderingStrategy",384,Sn,BLt,fEt),Zdt;E(655,1,{},Lp),M(Nh,"ComponentsCompactor",655),E(1511,13,vct,gJe),f.Ec=function(t){return U7(this,c(t,148))},M(Nh,"ComponentsCompactor/Hullpoints",1511),E(1508,1,{847:1},jZe),f.a=!1,M(Nh,"ComponentsCompactor/InternalComponent",1508),E(1507,1,Jd,TPe),f.Ic=function(t){ws(this,t)},f.Jc=function(){return new J(this.a)},M(Nh,"ComponentsCompactor/InternalConnectedComponents",1507),E(1510,1,{598:1},vnt),f.zf=function(){return null},f.Af=function(){return this.a},f.yf=function(){return Pne(this.d)},f.Bf=function(){return this.b},M(Nh,"ComponentsCompactor/InternalExternalExtension",1510),E(1509,1,{598:1},EPe),f.Af=function(){return this.a},f.yf=function(){return Pne(this.d)},f.zf=function(){return this.c},f.Bf=function(){return this.b},M(Nh,"ComponentsCompactor/InternalUnionExternalExtension",1509),E(1513,1,{},qit),M(Nh,"ComponentsCompactor/OuterSegments",1513),E(1512,1,{},SPe),M(Nh,"ComponentsCompactor/Segments",1512),E(1259,1,{},CJe),M(Nh,u3e,1259),E(1260,1,Zn,Y9),f.Le=function(t,n){return gLt(c(t,37),c(n,37))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Nh,"ComponentsProcessor/lambda$0$Type",1260),E(572,337,{337:1,572:1},dJe),f.Df=function(t){return _we(this,t)},f.Ef=function(t){return Oit(this,t)};var si;M(Nh,"ModelOrderComponentGroup",572),E(1286,2083,{},gb),f.Cf=function(t,n){var i,r,o,a,d,b,v,k,T,A,L;if(t.gc()==1){A=c(t.Xb(0),37),A!=n&&(n.a.c.length=0,Mrt(n,A,0,0),ic(n,A),gme(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,ic(n,o),k=0,L=0,d=t.Jc();d.Ob();)a=c(d.Pb(),37),T=a.f,k=p.Math.max(k,T.a),L+=T.a*T.b;if(k=p.Math.max(k,p.Math.sqrt(L)*ge(be($(n,(We(),yJ))))),r=ge(be($(n,NP))),this.Gf(t,n,k,r),it(nt($(o,kJ)))){for(i=new Lp,$ye(i,t,r),v=t.Jc();v.Ob();)b=c(v.Pb(),37),ji(Wf(b.c),i.e);ji(Wf(n.f),i.a)}ybe(n,t)},f.Gf=function(t,n,i,r){var o,a,d,b,v,k,T,A;for(T=0,A=0,b=0,o=r,d=t.Jc();d.Ob();)a=c(d.Pb(),37),k=a.f,T+k.a>i&&(T=0,A+=b+r,b=0),v=a.c,Kj(a,T+v.a,A+v.b),Wf(v),o=p.Math.max(o,T+k.a),b=p.Math.max(b,k.b),T+=k.a+r;n.f.a=o,n.f.b=A+b},f.Hf=function(t,n){var i,r,o,a,d;if(Se($(n,(We(),hE)))===Se((Z4(),YC))){for(r=t.Jc();r.Ob();){for(i=c(r.Pb(),37),d=0,a=new J(i.a);a.a<a.c.c.length;)o=c(U(a),9),d+=c($(o,Apt),15).a;i.p=d}Mt(),t.gd(new YM)}},M(Nh,"SimpleRowGraphPlacer",1286),E(1289,1286,{},p2),f.Gf=function(t,n,i,r){var o,a,d,b,v,k,T,A,L,R;for(L=0,R=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,($e(),J1)),24).Gc((Ve(),Yt))||v&&c($(v,($e(),J1)),24).Gc((Ve(),sn))||c($(a,($e(),J1)),24).Gc((Ve(),Zt)))&&(L=A,R+=b+r,b=0),k=a.c,c($(a,($e(),J1)),24).Gc((Ve(),Yt))&&(L=o+r),Kj(a,L+k.a,R+k.b),o=p.Math.max(o,L+T.a),c($(a,J1),24).Gc(wn)&&(A=p.Math.max(A,L+T.a+r)),Wf(k),b=p.Math.max(b,T.b),L+=T.a+r,v=a;n.f.a=o,n.f.b=R+b},f.Hf=function(t,n){},M(Nh,"ModelOrderRowGraphPlacer",1289),E(1287,1,Zn,YM),f.Le=function(t,n){return j$t(c(t,37),c(n,37))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Nh,"SimpleRowGraphPlacer/1",1287);var e1t;E(1257,1,hd,LO),f.Lb=function(t){var n;return n=c($(c(t,253).b,(We(),ho)),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,(We(),ho)),79),!!n&&n.b!=0},M(CQ,"CompoundGraphPostprocessor/1",1257),E(1256,1,Pi,APe),f.If=function(t,n){CZe(this,c(t,37),n)},M(CQ,"CompoundGraphPreprocessor",1256),E(447,1,{447:1},mYe),f.c=!1,M(CQ,"CompoundGraphPreprocessor/ExternalPort",447),E(253,1,{253:1},lq),f.Ib=function(){return RZ(this.c)+":"+unt(this.b)},M(CQ,"CrossHierarchyEdge",253),E(771,1,Zn,c1e),f.Le=function(t,n){return fHt(this,c(t,253),c(n,253))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(CQ,"CrossHierarchyEdgeComparator",771),E(248,151,{3:1,248:1,105:1,151:1}),f.p=0,M(kc,"LGraphElement",248),E(17,248,{3:1,17:1,248:1,105:1,151:1},Kb),f.Ib=function(){return unt(this)};var zS=M(kc,"LEdge",17);E(37,248,{3:1,22:1,37:1,248:1,105:1,151:1},Gbe),f.Ic=function(t){ws(this,t)},f.Jc=function(){return new J(this.b)},f.Ib=function(){return this.b.c.length==0?"G-unlayered"+Ch(this.a):this.a.c.length==0?"G-layered"+Ch(this.b):"G[layerless"+Ch(this.a)+", layers"+Ch(this.b)+"]"};var t1t=M(kc,"LGraph",37),n1t;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 Oi(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(kc,"LGraphAdapters/AbstractLShapeAdapter",662),E(467,1,{845:1},aT),f.Pf=function(){var t,n;if(!this.b)for(this.b=Pd(this.a.b.c.length),n=new J(this.a.b);n.a<n.c.c.length;)t=c(U(n),70),Ue(this.b,new Bz(t));return this.b},f.b=null,M(kc,"LGraphAdapters/LEdgeAdapter",467),E(661,1,{},_ee),f.Qf=function(){var t,n,i,r,o,a;if(!this.b){for(this.b=new Qe,r=new J(this.a.b);r.a<r.c.c.length;)for(i=c(U(r),26),a=new J(i.a);a.a<a.c.c.length;)if(o=c(U(a),9),this.c.Mb(o)&&(Ue(this.b,new cq(this,o,this.e)),this.d)){if(Oi(o,($e(),Bk)))for(n=c($(o,Bk),16).Jc();n.Ob();)t=c(n.Pb(),9),Ue(this.b,new cq(this,t,!1));if(Oi(o,_k))for(n=c($(o,_k),16).Jc();n.Ob();)t=c(n.Pb(),9),Ue(this.b,new cq(this,t,!1))}}return this.b},f.Jf=function(){throw K(new yg(tlt))},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 Oi(this.a,t)},f.Mf=function(t){throw K(new yg(tlt))},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(kc,"LGraphAdapters/LGraphAdapter",661),E(578,662,{190:1},Bz),M(kc,"LGraphAdapters/LLabelAdapter",578),E(577,662,{692:1},cq),f.Rf=function(){return this.b},f.Sf=function(){return Mt(),Mt(),Is},f.Pf=function(){var t,n;if(!this.a)for(this.a=Pd(c(this.e,9).b.c.length),n=new J(c(this.e,9).b);n.a<n.c.c.length;)t=c(U(n),70),Ue(this.a,new Bz(t));return this.a},f.Tf=function(){var t;return t=c(this.e,9).d,new q0e(t.d,t.c,t.a,t.b)},f.Uf=function(){return Mt(),Mt(),Is},f.Vf=function(){var t,n;if(!this.c)for(this.c=Pd(c(this.e,9).j.c.length),n=new J(c(this.e,9).j);n.a<n.c.c.length;)t=c(U(n),12),Ue(this.c,new a$e(t,this.d));return this.c},f.Wf=function(){return it(nt($(c(this.e,9),($e(),ije))))},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(){lRt(this,(OT(),n1t))},f.a=null,f.b=null,f.c=null,f.d=!1,M(kc,"LGraphAdapters/LNodeAdapter",577),E(1775,662,{844:1},a$e),f.Sf=function(){var t,n,i,r,o,a,d,b;if(this.d&&c(this.e,12).i.k==(Wt(),$c))return Mt(),Mt(),Is;if(!this.a){for(this.a=new Qe,i=new J(c(this.e,12).e);i.a<i.c.c.length;)t=c(U(i),17),Ue(this.a,new aT(t));if(this.d&&(r=c($(c(this.e,12),($e(),Wl)),9),r))for(n=new Gt(Xt(vr(r).a.Jc(),new z));gn(n);)t=c(on(n),17),Ue(this.a,new aT(t));if(Oi(c(this.e,12).i,($e(),zw))&&(d=c($(c(this.e,12).i,zw),339),b=c(yh(d.e,this.e),114),b))for(a=new J(b.b);a.a<a.c.c.length;)o=c(U(a),342),Ue(this.a,new aT(o.a))}return this.a},f.Pf=function(){var t,n;if(!this.b)for(this.b=Pd(c(this.e,12).f.c.length),n=new J(c(this.e,12).f);n.a<n.c.c.length;)t=c(U(n),70),Ue(this.b,new Bz(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==(Wt(),$c))return Mt(),Mt(),Is;if(!this.c){for(this.c=new Qe,i=new J(c(this.e,12).g);i.a<i.c.c.length;)t=c(U(i),17),Ue(this.c,new aT(t));if(this.d&&(r=c($(c(this.e,12),($e(),Wl)),9),r))for(n=new Gt(Xt(Fi(r).a.Jc(),new z));gn(n);)t=c(on(n),17),Ue(this.c,new aT(t));if(Oi(c(this.e,12).i,($e(),zw))&&(d=c($(c(this.e,12).i,zw),339),b=c(yh(d.e,this.e),114),b))for(a=new J(b.e);a.a<a.c.c.length;)o=c(U(a),342),Ue(this.c,new aT(o.a))}return this.c},f.$f=function(){return c(this.e,12).j},f._f=function(){return it(nt($(c(this.e,12),($e(),jP))))},f.a=null,f.b=null,f.c=null,f.d=!1,M(kc,"LGraphAdapters/LPortAdapter",1775),E(1776,1,Zn,Z9),f.Le=function(t,n){return GXt(c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(kc,"LGraphAdapters/PortComparator",1776),E(812,1,Wn,e8),f.Mb=function(t){return c(t,9),OT(),!0},M(kc,"LGraphAdapters/lambda$0$Type",812),E(400,248,{3:1,248:1,400:1,105:1,151:1}),M(kc,"LShape",400),E(70,400,{3:1,248:1,70:1,400:1,105:1,151:1},NIe,Zge),f.Ib=function(){var t;return t=NAt(this),t==null?"label":"l_"+t},M(kc,"LLabel",70),E(216,1,{3:1,4:1,216:1,419:1}),f.Fb=function(t){var n;return he(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=y4(this.b)<<16,t|=y4(this.a)&Dr,n=y4(this.c)<<16,n|=y4(this.d)&Dr,t^n},f.ag=function(t){var n,i,r,o,a,d,b,v,k,T,A;for(a=0;a<t.length&&qKe((tn(a,t.length),t.charCodeAt(a)),ilt);)++a;for(n=t.length;n>0&&qKe((tn(n-1,t.length),t.charCodeAt(n-1)),rlt);)--n;if(a<n){T=Nv((as(a,n,t.length),t.substr(a,n-a)),",|;");try{for(b=T,v=0,k=b.length;v<k;++v){if(d=b[v],o=Nv(d,"="),o.length!=2)throw K(new Ht("Expecting a list of key-value pairs."));r=Sv(o[0]),A=jv(Sv(o[1])),jt(r,"top")?this.d=A:jt(r,"left")?this.b=A:jt(r,"bottom")?this.a=A:jt(r,"right")&&(this.c=A)}}catch(L){throw L=kr(L),he(L,133)?(i=L,K(new Ht(slt+i))):K(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(JL,"Spacing",216),E(125,216,olt,dT,GBe,q0e,KZ);var POe=M(JL,"ElkMargin",125);E(656,125,olt,bY),M(kc,"LMargin",656),E(9,400,{3:1,248:1,9:1,400:1,105:1,151:1},Sh),f.Ib=function(){return xZe(this)},f.i=!1;var e1=M(kc,"LNode",9);E(252,23,{3:1,34:1,23:1,252:1},w4);var Lh,Ar,fc,Er,ZC,ar,$c,gP,Lce=vn(kc,"LNode/NodeType",252,Sn,YIt,sEt),i1t;E(769,1,Wn,Qx),f.Mb=function(t){return it(nt($(c(t,70),(We(),T3))))},M(kc,"LNode/lambda$0$Type",769),E(100,216,clt,u4,Wp,spe);var IOe=M(JL,"ElkPadding",100);E(772,100,clt,S1e),M(kc,"LPadding",772),E(12,400,{3:1,248:1,12:1,400:1,105:1,151:1},xc),f.Ib=function(){var t,n,i;return t=new v0,ti((t.a+="p_",t),EG(this)),this.i&&ti(Mc((t.a+="[",t),this.i),"]"),this.e.c.length==1&&this.g.c.length==0&&c(Xe(this.e,0),17).c!=this&&(n=c(Xe(this.e,0),17).c,ti((t.a+=" << ",t),EG(n)),ti(Mc((t.a+="[",t),n.i),"]")),this.e.c.length==0&&this.g.c.length==1&&c(Xe(this.g,0),17).d!=this&&(i=c(Xe(this.g,0),17).d,ti((t.a+=" >> ",t),EG(i)),ti(Mc((t.a+="[",t),i.i),"]")),t.a},f.c=!0,f.d=!1;var ROe,$Oe,BOe,zOe,FOe,qOe,r1t=M(kc,"LPort",12);E(404,1,Jd,A6),f.Ic=function(t){ws(this,t)},f.Jc=function(){var t;return t=new J(this.a.e),new k_e(t)},M(kc,"LPort/1",404),E(1285,1,ns,k_e),f.Nb=function(t){ps(this,t)},f.Pb=function(){return c(U(this.a),17).c},f.Ob=function(){return No(this.a)},f.Qb=function(){r7(this.a)},M(kc,"LPort/1/1",1285),E(366,1,Jd,s4),f.Ic=function(t){ws(this,t)},f.Jc=function(){var t;return t=new J(this.a.g),new l1e(t)},M(kc,"LPort/2",366),E(770,1,ns,l1e),f.Nb=function(t){ps(this,t)},f.Pb=function(){return c(U(this.a),17).d},f.Ob=function(){return No(this.a)},f.Qb=function(){r7(this.a)},M(kc,"LPort/2/1",770),E(1278,1,Jd,f$e),f.Ic=function(t){ws(this,t)},f.Jc=function(){return new xh(this)},M(kc,"LPort/CombineIter",1278),E(210,1,ns,xh),f.Nb=function(t){ps(this,t)},f.Qb=function(){qIe()},f.Ob=function(){return VT(this)},f.Pb=function(){return No(this.a)?U(this.a):U(this.b)},M(kc,"LPort/CombineIter/1",210),E(1279,1,hd,m5),f.Lb=function(t){return mHe(t)},f.Fb=function(t){return this===t},f.Mb=function(t){return Ll(),c(t,12).g.c.length!=0},M(kc,"LPort/lambda$0$Type",1279),E(1280,1,hd,m0),f.Lb=function(t){return bHe(t)},f.Fb=function(t){return this===t},f.Mb=function(t){return Ll(),c(t,12).e.c.length!=0},M(kc,"LPort/lambda$1$Type",1280),E(1281,1,hd,Cd),f.Lb=function(t){return Ll(),c(t,12).j==(Ve(),Yt)},f.Fb=function(t){return this===t},f.Mb=function(t){return Ll(),c(t,12).j==(Ve(),Yt)},M(kc,"LPort/lambda$2$Type",1281),E(1282,1,hd,t8),f.Lb=function(t){return Ll(),c(t,12).j==(Ve(),sn)},f.Fb=function(t){return this===t},f.Mb=function(t){return Ll(),c(t,12).j==(Ve(),sn)},M(kc,"LPort/lambda$3$Type",1282),E(1283,1,hd,ZM),f.Lb=function(t){return Ll(),c(t,12).j==(Ve(),wn)},f.Fb=function(t){return this===t},f.Mb=function(t){return Ll(),c(t,12).j==(Ve(),wn)},M(kc,"LPort/lambda$4$Type",1283),E(1284,1,hd,m2),f.Lb=function(t){return Ll(),c(t,12).j==(Ve(),Zt)},f.Fb=function(t){return this===t},f.Mb=function(t){return Ll(),c(t,12).j==(Ve(),Zt)},M(kc,"LPort/lambda$5$Type",1284),E(26,248,{3:1,22:1,248:1,26:1,105:1,151:1},mc),f.Ic=function(t){ws(this,t)},f.Jc=function(){return new J(this.a)},f.Ib=function(){return"L_"+Do(this.b.b,this,0)+Ch(this.a)},M(kc,"Layer",26),E(1676,1,{},lWe),f.b=0,M(kc,"Tarjan",1676),E(1294,1,{},MPe),M(Ug,llt,1294),E(1298,1,{},n8),f.Kb=function(t){return no(c(t,83))},M(Ug,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1298),E(1301,1,{},Ux),f.Kb=function(t){return no(c(t,83))},M(Ug,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1301),E(1295,1,un,O_e),f.Ad=function(t){Tnt(this.a,c(t,127))},M(Ug,a3e,1295),E(1296,1,un,j_e),f.Ad=function(t){Tnt(this.a,c(t,127))},M(Ug,ult,1296),E(1297,1,{},eA),f.Kb=function(t){return new Tt(null,new Ct(rj(c(t,74)),16))},M(Ug,alt,1297),E(1299,1,Wn,S_e),f.Mb=function(t){return zTt(this.a,c(t,19))},M(Ug,flt,1299),E(1300,1,{},Ed),f.Kb=function(t){return new Tt(null,new Ct(VNt(c(t,74)),16))},M(Ug,"ElkGraphImporter/lambda$5$Type",1300),E(1302,1,Wn,T_e),f.Mb=function(t){return FTt(this.a,c(t,19))},M(Ug,"ElkGraphImporter/lambda$7$Type",1302),E(1303,1,Wn,Jx),f.Mb=function(t){return b_t(c(t,74))},M(Ug,"ElkGraphImporter/lambda$8$Type",1303),E(1273,1,{},b6);var s1t;M(Ug,"ElkGraphLayoutTransferrer",1273),E(1274,1,Wn,C_e),f.Mb=function(t){return qCt(this.a,c(t,17))},M(Ug,"ElkGraphLayoutTransferrer/lambda$0$Type",1274),E(1275,1,un,E_e),f.Ad=function(t){O_(),Ue(this.a,c(t,17))},M(Ug,"ElkGraphLayoutTransferrer/lambda$1$Type",1275),E(1276,1,Wn,M_e),f.Mb=function(t){return kCt(this.a,c(t,17))},M(Ug,"ElkGraphLayoutTransferrer/lambda$2$Type",1276),E(1277,1,un,A_e),f.Ad=function(t){O_(),Ue(this.a,c(t,17))},M(Ug,"ElkGraphLayoutTransferrer/lambda$3$Type",1277),E(813,1,{},Q0e),M(rn,"BiLinkedHashMultiMap",813),E(1528,1,Pi,i8),f.If=function(t,n){QRt(c(t,37),n)},M(rn,"CommentNodeMarginCalculator",1528),E(1529,1,{},PO),f.Kb=function(t){return new Tt(null,new Ct(c(t,26).a,16))},M(rn,"CommentNodeMarginCalculator/lambda$0$Type",1529),E(1530,1,un,pb),f.Ad=function(t){bZt(c(t,9))},M(rn,"CommentNodeMarginCalculator/lambda$1$Type",1530),E(1531,1,Pi,bR),f.If=function(t,n){kXt(c(t,37),n)},M(rn,"CommentPostprocessor",1531),E(1532,1,Pi,wR),f.If=function(t,n){Qtn(c(t,37),n)},M(rn,"CommentPreprocessor",1532),E(1533,1,Pi,b5),f.If=function(t,n){PVt(c(t,37),n)},M(rn,"ConstraintsPostprocessor",1533),E(1534,1,Pi,gX),f.If=function(t,n){C$t(c(t,37),n)},M(rn,"EdgeAndLayerConstraintEdgeReverser",1534),E(1535,1,Pi,vR),f.If=function(t,n){Qzt(c(t,37),n)},M(rn,"EndLabelPostprocessor",1535),E(1536,1,{},xR),f.Kb=function(t){return new Tt(null,new Ct(c(t,26).a,16))},M(rn,"EndLabelPostprocessor/lambda$0$Type",1536),E(1537,1,Wn,tA),f.Mb=function(t){return MPt(c(t,9))},M(rn,"EndLabelPostprocessor/lambda$1$Type",1537),E(1538,1,un,pX),f.Ad=function(t){FHt(c(t,9))},M(rn,"EndLabelPostprocessor/lambda$2$Type",1538),E(1539,1,Pi,mX),f.If=function(t,n){jUt(c(t,37),n)},M(rn,"EndLabelPreprocessor",1539),E(1540,1,{},r8),f.Kb=function(t){return new Tt(null,new Ct(c(t,26).a,16))},M(rn,"EndLabelPreprocessor/lambda$0$Type",1540),E(1541,1,un,tqe),f.Ad=function(t){tTt(this.a,this.b,this.c,c(t,9))},f.a=0,f.b=0,f.c=!1,M(rn,"EndLabelPreprocessor/lambda$1$Type",1541),E(1542,1,Wn,mb),f.Mb=function(t){return Se($(c(t,70),(We(),xd)))===Se((kh(),b9))},M(rn,"EndLabelPreprocessor/lambda$2$Type",1542),E(1543,1,un,N_e),f.Ad=function(t){ni(this.a,c(t,70))},M(rn,"EndLabelPreprocessor/lambda$3$Type",1543),E(1544,1,Wn,nA),f.Mb=function(t){return Se($(c(t,70),(We(),xd)))===Se((kh(),mx))},M(rn,"EndLabelPreprocessor/lambda$4$Type",1544),E(1545,1,un,__e),f.Ad=function(t){ni(this.a,c(t,70))},M(rn,"EndLabelPreprocessor/lambda$5$Type",1545),E(1593,1,Pi,K8),f.If=function(t,n){ezt(c(t,37),n)};var o1t;M(rn,"EndLabelSorter",1593),E(1594,1,Zn,iA),f.Le=function(t,n){return _Ft(c(t,458),c(n,458))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(rn,"EndLabelSorter/1",1594),E(458,1,{458:1},AGe),M(rn,"EndLabelSorter/LabelGroup",458),E(1595,1,{},w5),f.Kb=function(t){return k_(),new Tt(null,new Ct(c(t,26).a,16))},M(rn,"EndLabelSorter/lambda$0$Type",1595),E(1596,1,Wn,v5),f.Mb=function(t){return k_(),c(t,9).k==(Wt(),ar)},M(rn,"EndLabelSorter/lambda$1$Type",1596),E(1597,1,un,yR),f.Ad=function(t){RQt(c(t,9))},M(rn,"EndLabelSorter/lambda$2$Type",1597),E(1598,1,Wn,rA),f.Mb=function(t){return k_(),Se($(c(t,70),(We(),xd)))===Se((kh(),mx))},M(rn,"EndLabelSorter/lambda$3$Type",1598),E(1599,1,Wn,kR),f.Mb=function(t){return k_(),Se($(c(t,70),(We(),xd)))===Se((kh(),b9))},M(rn,"EndLabelSorter/lambda$4$Type",1599),E(1546,1,Pi,IO),f.If=function(t,n){LZt(this,c(t,37))},f.b=0,f.c=0,M(rn,"FinalSplineBendpointsCalculator",1546),E(1547,1,{},bb),f.Kb=function(t){return new Tt(null,new Ct(c(t,26).a,16))},M(rn,"FinalSplineBendpointsCalculator/lambda$0$Type",1547),E(1548,1,{},sA),f.Kb=function(t){return new Tt(null,new nv(new Gt(Xt(Fi(c(t,9)).a.Jc(),new z))))},M(rn,"FinalSplineBendpointsCalculator/lambda$1$Type",1548),E(1549,1,Wn,RO),f.Mb=function(t){return!vs(c(t,17))},M(rn,"FinalSplineBendpointsCalculator/lambda$2$Type",1549),E(1550,1,Wn,b2),f.Mb=function(t){return Oi(c(t,17),($e(),Im))},M(rn,"FinalSplineBendpointsCalculator/lambda$3$Type",1550),E(1551,1,un,D_e),f.Ad=function(t){zKt(this.a,c(t,134))},M(rn,"FinalSplineBendpointsCalculator/lambda$4$Type",1551),E(1552,1,un,oA),f.Ad=function(t){V7(c(t,17).a)},M(rn,"FinalSplineBendpointsCalculator/lambda$5$Type",1552),E(797,1,Pi,u1e),f.If=function(t,n){Cen(this,c(t,37),n)},M(rn,"GraphTransformer",797),E(506,23,{3:1,34:1,23:1,506:1},wge);var Pce,pP,c1t=vn(rn,"GraphTransformer/Mode",506,Sn,Y_t,hEt),l1t;E(1553,1,Pi,s8),f.If=function(t,n){WWt(c(t,37),n)},M(rn,"HierarchicalNodeResizingProcessor",1553),E(1554,1,Pi,OR),f.If=function(t,n){NRt(c(t,37),n)},M(rn,"HierarchicalPortConstraintProcessor",1554),E(1555,1,Zn,o8),f.Le=function(t,n){return WFt(c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(rn,"HierarchicalPortConstraintProcessor/NodeComparator",1555),E(1556,1,Pi,c8),f.If=function(t,n){DYt(c(t,37),n)},M(rn,"HierarchicalPortDummySizeProcessor",1556),E(1557,1,Pi,jR),f.If=function(t,n){UXt(this,c(t,37),n)},f.a=0,M(rn,"HierarchicalPortOrthogonalEdgeRouter",1557),E(1558,1,Zn,Md),f.Le=function(t,n){return _7t(c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(rn,"HierarchicalPortOrthogonalEdgeRouter/1",1558),E(1559,1,Zn,Wx),f.Le=function(t,n){return SIt(c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(rn,"HierarchicalPortOrthogonalEdgeRouter/2",1559),E(1560,1,Pi,l8),f.If=function(t,n){xQt(c(t,37),n)},M(rn,"HierarchicalPortPositionProcessor",1560),E(1561,1,Pi,FN),f.If=function(t,n){Enn(this,c(t,37))},f.a=0,f.c=0;var RU,$U;M(rn,"HighDegreeNodeLayeringProcessor",1561),E(573,1,{573:1},$O),f.b=-1,f.d=-1,M(rn,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",573),E(1562,1,{},bX),f.Kb=function(t){return X_(),vr(c(t,9))},f.Fb=function(t){return this===t},M(rn,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1562),E(1563,1,{},cA),f.Kb=function(t){return X_(),Fi(c(t,9))},f.Fb=function(t){return this===t},M(rn,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1563),E(1569,1,Pi,lA),f.If=function(t,n){jYt(this,c(t,37),n)},M(rn,"HyperedgeDummyMerger",1569),E(798,1,{},lpe),f.a=!1,f.b=!1,f.c=!1,M(rn,"HyperedgeDummyMerger/MergeState",798),E(1570,1,{},BO),f.Kb=function(t){return new Tt(null,new Ct(c(t,26).a,16))},M(rn,"HyperedgeDummyMerger/lambda$0$Type",1570),E(1571,1,{},u8),f.Kb=function(t){return new Tt(null,new Ct(c(t,9).j,16))},M(rn,"HyperedgeDummyMerger/lambda$1$Type",1571),E(1572,1,un,SR),f.Ad=function(t){c(t,12).p=-1},M(rn,"HyperedgeDummyMerger/lambda$2$Type",1572),E(1573,1,Pi,wX),f.If=function(t,n){OYt(c(t,37),n)},M(rn,"HypernodesProcessor",1573),E(1574,1,Pi,vX),f.If=function(t,n){_Yt(c(t,37),n)},M(rn,"InLayerConstraintProcessor",1574),E(1575,1,Pi,xX),f.If=function(t,n){n$t(c(t,37),n)},M(rn,"InnermostNodeMarginCalculator",1575),E(1576,1,Pi,uA),f.If=function(t,n){Ftn(this,c(t,37))},f.a=Gr,f.b=Gr,f.c=or,f.d=or;var Rin=M(rn,"InteractiveExternalPortPositioner",1576);E(1577,1,{},yX),f.Kb=function(t){return c(t,17).d.i},f.Fb=function(t){return this===t},M(rn,"InteractiveExternalPortPositioner/lambda$0$Type",1577),E(1578,1,{},L_e),f.Kb=function(t){return P7t(this.a,be(t))},f.Fb=function(t){return this===t},M(rn,"InteractiveExternalPortPositioner/lambda$1$Type",1578),E(1579,1,{},kX),f.Kb=function(t){return c(t,17).c.i},f.Fb=function(t){return this===t},M(rn,"InteractiveExternalPortPositioner/lambda$2$Type",1579),E(1580,1,{},P_e),f.Kb=function(t){return I7t(this.a,be(t))},f.Fb=function(t){return this===t},M(rn,"InteractiveExternalPortPositioner/lambda$3$Type",1580),E(1581,1,{},I_e),f.Kb=function(t){return NCt(this.a,be(t))},f.Fb=function(t){return this===t},M(rn,"InteractiveExternalPortPositioner/lambda$4$Type",1581),E(1582,1,{},R_e),f.Kb=function(t){return _Ct(this.a,be(t))},f.Fb=function(t){return this===t},M(rn,"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 k2;case 22:return new xb;case 48:return new AA;case 29:case 36:return new NX;case 33:return new i8;case 43:return new bR;case 1:return new wR;case 42:return new b5;case 57:return new u1e((wj(),pP));case 0:return new u1e((wj(),Pce));case 2:return new gX;case 55:return new vR;case 34:return new mX;case 52:return new IO;case 56:return new s8;case 13:return new OR;case 39:return new c8;case 45:return new jR;case 41:return new l8;case 9:return new FN;case 50:return new $ze;case 38:return new lA;case 44:return new wX;case 28:return new vX;case 31:return new xX;case 3:return new uA;case 18:return new OX;case 30:return new jX;case 5:return new qN;case 51:return new CX;case 35:return new lz;case 37:return new _X;case 53:return new K8;case 11:return new CR;case 7:return new HN;case 40:return new DX;case 46:return new LX;case 16:return new PX;case 10:return new S$e;case 49:return new BX;case 21:return new zX;case 23:return new Xz((mm(),TE));case 8:return new fA;case 12:return new qX;case 4:return new ER;case 19:return new w6;case 17:return new LR;case 54:return new FO;case 6:return new VX;case 25:return new DPe;case 26:return new ey;case 47:return new dA;case 32:return new MFe;case 14:return new qR;case 27:return new iK;case 20:return new GO;case 24:return new Xz((mm(),GJ));default:throw K(new Ht(tse+(this.f!=null?this.f:""+this.g)))}};var HOe,GOe,QOe,UOe,JOe,WOe,VOe,XOe,KOe,YOe,ZOe,g3,BU,zU,e6e,t6e,n6e,i6e,r6e,s6e,o6e,eE,c6e,l6e,u6e,a6e,f6e,Ice,FU,qU,h6e,HU,GU,QU,FS,Gv,Qv,d6e,UU,JU,g6e,WU,VU,p6e,m6e,b6e,w6e,XU,Rce,Ak,KU,YU,ZU,eJ,v6e,x6e,y6e,k6e,$in=vn(rn,nse,80,Sn,Tit,dEt),u1t;E(1583,1,Pi,OX),f.If=function(t,n){$tn(c(t,37),n)},M(rn,"InvertedPortProcessor",1583),E(1584,1,Pi,jX),f.If=function(t,n){LKt(c(t,37),n)},M(rn,"LabelAndNodeSizeProcessor",1584),E(1585,1,Wn,SX),f.Mb=function(t){return c(t,9).k==(Wt(),ar)},M(rn,"LabelAndNodeSizeProcessor/lambda$0$Type",1585),E(1586,1,Wn,TR),f.Mb=function(t){return c(t,9).k==(Wt(),Ar)},M(rn,"LabelAndNodeSizeProcessor/lambda$1$Type",1586),E(1587,1,un,cqe),f.Ad=function(t){nTt(this.b,this.a,this.c,c(t,9))},f.a=!1,f.c=!1,M(rn,"LabelAndNodeSizeProcessor/lambda$2$Type",1587),E(1588,1,Pi,qN),f.If=function(t,n){mtn(c(t,37),n)};var a1t;M(rn,"LabelDummyInserter",1588),E(1589,1,hd,TX),f.Lb=function(t){return Se($(c(t,70),(We(),xd)))===Se((kh(),m9))},f.Fb=function(t){return this===t},f.Mb=function(t){return Se($(c(t,70),(We(),xd)))===Se((kh(),m9))},M(rn,"LabelDummyInserter/1",1589),E(1590,1,Pi,CX),f.If=function(t,n){ntn(c(t,37),n)},M(rn,"LabelDummyRemover",1590),E(1591,1,Wn,EX),f.Mb=function(t){return it(nt($(c(t,70),(We(),T3))))},M(rn,"LabelDummyRemover/lambda$0$Type",1591),E(1344,1,Pi,lz),f.If=function(t,n){Xen(this,c(t,37),n)},f.a=null;var $ce;M(rn,"LabelDummySwitcher",1344),E(295,1,{295:1},krt),f.c=0,f.d=null,f.f=0,M(rn,"LabelDummySwitcher/LabelDummyInfo",295),E(1345,1,{},MX),f.Kb=function(t){return J4(),new Tt(null,new Ct(c(t,26).a,16))},M(rn,"LabelDummySwitcher/lambda$0$Type",1345),E(1346,1,Wn,aA),f.Mb=function(t){return J4(),c(t,9).k==(Wt(),fc)},M(rn,"LabelDummySwitcher/lambda$1$Type",1346),E(1347,1,{},$_e),f.Kb=function(t){return yCt(this.a,c(t,9))},M(rn,"LabelDummySwitcher/lambda$2$Type",1347),E(1348,1,un,B_e),f.Ad=function(t){ENt(this.a,c(t,295))},M(rn,"LabelDummySwitcher/lambda$3$Type",1348),E(1349,1,Zn,AX),f.Le=function(t,n){return rNt(c(t,295),c(n,295))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(rn,"LabelDummySwitcher/lambda$4$Type",1349),E(796,1,Pi,NX),f.If=function(t,n){iIt(c(t,37),n)},M(rn,"LabelManagementProcessor",796),E(1592,1,Pi,_X),f.If=function(t,n){fXt(c(t,37),n)},M(rn,"LabelSideSelector",1592),E(1600,1,Pi,CR),f.If=function(t,n){YYt(c(t,37),n)},M(rn,"LayerConstraintPostprocessor",1600),E(1601,1,Pi,HN),f.If=function(t,n){QJt(c(t,37),n)};var O6e;M(rn,"LayerConstraintPreprocessor",1601),E(368,23,{3:1,34:1,23:1,368:1},kF);var mP,tJ,nJ,Bce,f1t=vn(rn,"LayerConstraintPreprocessor/HiddenNodeConnections",368,Sn,zLt,gEt),h1t;E(1602,1,Pi,DX),f.If=function(t,n){pen(c(t,37),n)},M(rn,"LayerSizeAndGraphHeightCalculator",1602),E(1603,1,Pi,LX),f.If=function(t,n){VWt(c(t,37),n)},M(rn,"LongEdgeJoiner",1603),E(1604,1,Pi,PX),f.If=function(t,n){UZt(c(t,37),n)},M(rn,"LongEdgeSplitter",1604),E(1605,1,Pi,S$e),f.If=function(t,n){Atn(this,c(t,37),n)},f.e=0,f.f=0,f.j=0,f.k=0,f.n=0,f.o=0;var d1t,g1t;M(rn,"NodePromotion",1605),E(1606,1,Zn,IX),f.Le=function(t,n){return aBt(c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(rn,"NodePromotion/1",1606),E(1607,1,Zn,RX),f.Le=function(t,n){return uBt(c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(rn,"NodePromotion/2",1607),E(1608,1,{},$X),f.Kb=function(t){return c(t,49),uq(),zt(),!0},f.Fb=function(t){return this===t},M(rn,"NodePromotion/lambda$0$Type",1608),E(1609,1,{},z_e),f.Kb=function(t){return aDt(this.a,c(t,49))},f.Fb=function(t){return this===t},f.a=0,M(rn,"NodePromotion/lambda$1$Type",1609),E(1610,1,{},F_e),f.Kb=function(t){return fDt(this.a,c(t,49))},f.Fb=function(t){return this===t},f.a=0,M(rn,"NodePromotion/lambda$2$Type",1610),E(1611,1,Pi,BX),f.If=function(t,n){vnn(c(t,37),n)},M(rn,"NorthSouthPortPostprocessor",1611),E(1612,1,Pi,zX),f.If=function(t,n){Snn(c(t,37),n)},M(rn,"NorthSouthPortPreprocessor",1612),E(1613,1,Zn,FX),f.Le=function(t,n){return E$t(c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(rn,"NorthSouthPortPreprocessor/lambda$0$Type",1613),E(1614,1,Pi,fA),f.If=function(t,n){dYt(c(t,37),n)},M(rn,"PartitionMidprocessor",1614),E(1615,1,Wn,zO),f.Mb=function(t){return Oi(c(t,9),(We(),Zv))},M(rn,"PartitionMidprocessor/lambda$0$Type",1615),E(1616,1,un,q_e),f.Ad=function(t){m_t(this.a,c(t,9))},M(rn,"PartitionMidprocessor/lambda$1$Type",1616),E(1617,1,Pi,qX),f.If=function(t,n){mVt(c(t,37),n)},M(rn,"PartitionPostprocessor",1617),E(1618,1,Pi,ER),f.If=function(t,n){vKt(c(t,37),n)},M(rn,"PartitionPreprocessor",1618),E(1619,1,Wn,MR),f.Mb=function(t){return Oi(c(t,9),(We(),Zv))},M(rn,"PartitionPreprocessor/lambda$0$Type",1619),E(1620,1,Wn,AR),f.Mb=function(t){return Oi(c(t,9),(We(),Zv))},M(rn,"PartitionPreprocessor/lambda$1$Type",1620),E(1621,1,{},NR),f.Kb=function(t){return new Tt(null,new nv(new Gt(Xt(Fi(c(t,9)).a.Jc(),new z))))},M(rn,"PartitionPreprocessor/lambda$2$Type",1621),E(1622,1,Wn,H_e),f.Mb=function(t){return F8t(this.a,c(t,17))},M(rn,"PartitionPreprocessor/lambda$3$Type",1622),E(1623,1,un,_R),f.Ad=function(t){z$t(c(t,17))},M(rn,"PartitionPreprocessor/lambda$4$Type",1623),E(1624,1,Wn,G_e),f.Mb=function(t){return CNt(this.a,c(t,9))},f.a=0,M(rn,"PartitionPreprocessor/lambda$5$Type",1624),E(1625,1,Pi,w6),f.If=function(t,n){JKt(c(t,37),n)};var j6e,p1t,m1t,b1t,S6e,T6e;M(rn,"PortListSorter",1625),E(1626,1,{},x5),f.Kb=function(t){return Sj(),c(t,12).e},M(rn,"PortListSorter/lambda$0$Type",1626),E(1627,1,{},HX),f.Kb=function(t){return Sj(),c(t,12).g},M(rn,"PortListSorter/lambda$1$Type",1627),E(1628,1,Zn,GX),f.Le=function(t,n){return $Ue(c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(rn,"PortListSorter/lambda$2$Type",1628),E(1629,1,Zn,QX),f.Le=function(t,n){return iHt(c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(rn,"PortListSorter/lambda$3$Type",1629),E(1630,1,Zn,DR),f.Le=function(t,n){return Vrt(c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(rn,"PortListSorter/lambda$4$Type",1630),E(1631,1,Pi,LR),f.If=function(t,n){ZJt(c(t,37),n)},M(rn,"PortSideProcessor",1631),E(1632,1,Pi,FO),f.If=function(t,n){sKt(c(t,37),n)},M(rn,"ReversedEdgeRestorer",1632),E(1637,1,Pi,DPe),f.If=function(t,n){Bqt(this,c(t,37),n)},M(rn,"SelfLoopPortRestorer",1637),E(1638,1,{},qO),f.Kb=function(t){return new Tt(null,new Ct(c(t,26).a,16))},M(rn,"SelfLoopPortRestorer/lambda$0$Type",1638),E(1639,1,Wn,UX),f.Mb=function(t){return c(t,9).k==(Wt(),ar)},M(rn,"SelfLoopPortRestorer/lambda$1$Type",1639),E(1640,1,Wn,a8),f.Mb=function(t){return Oi(c(t,9),($e(),zw))},M(rn,"SelfLoopPortRestorer/lambda$2$Type",1640),E(1641,1,{},PR),f.Kb=function(t){return c($(c(t,9),($e(),zw)),339)},M(rn,"SelfLoopPortRestorer/lambda$3$Type",1641),E(1642,1,un,Q_e),f.Ad=function(t){KQt(this.a,c(t,339))},M(rn,"SelfLoopPortRestorer/lambda$4$Type",1642),E(799,1,un,hA),f.Ad=function(t){uUt(c(t,108))},M(rn,"SelfLoopPortRestorer/lambda$5$Type",799),E(1644,1,Pi,dA),f.If=function(t,n){KFt(c(t,37),n)},M(rn,"SelfLoopPostProcessor",1644),E(1645,1,{},gA),f.Kb=function(t){return new Tt(null,new Ct(c(t,26).a,16))},M(rn,"SelfLoopPostProcessor/lambda$0$Type",1645),E(1646,1,Wn,IR),f.Mb=function(t){return c(t,9).k==(Wt(),ar)},M(rn,"SelfLoopPostProcessor/lambda$1$Type",1646),E(1647,1,Wn,RR),f.Mb=function(t){return Oi(c(t,9),($e(),zw))},M(rn,"SelfLoopPostProcessor/lambda$2$Type",1647),E(1648,1,un,$R),f.Ad=function(t){rGt(c(t,9))},M(rn,"SelfLoopPostProcessor/lambda$3$Type",1648),E(1649,1,{},JX),f.Kb=function(t){return new Tt(null,new Ct(c(t,108).f,1))},M(rn,"SelfLoopPostProcessor/lambda$4$Type",1649),E(1650,1,un,U_e),f.Ad=function(t){PLt(this.a,c(t,342))},M(rn,"SelfLoopPostProcessor/lambda$5$Type",1650),E(1651,1,Wn,WX),f.Mb=function(t){return!!c(t,108).i},M(rn,"SelfLoopPostProcessor/lambda$6$Type",1651),E(1652,1,un,J_e),f.Ad=function(t){n8t(this.a,c(t,108))},M(rn,"SelfLoopPostProcessor/lambda$7$Type",1652),E(1633,1,Pi,VX),f.If=function(t,n){DWt(c(t,37),n)},M(rn,"SelfLoopPreProcessor",1633),E(1634,1,{},XX),f.Kb=function(t){return new Tt(null,new Ct(c(t,108).f,1))},M(rn,"SelfLoopPreProcessor/lambda$0$Type",1634),E(1635,1,{},KX),f.Kb=function(t){return c(t,342).a},M(rn,"SelfLoopPreProcessor/lambda$1$Type",1635),E(1636,1,un,f1),f.Ad=function(t){g7t(c(t,17))},M(rn,"SelfLoopPreProcessor/lambda$2$Type",1636),E(1653,1,Pi,MFe),f.If=function(t,n){LQt(this,c(t,37),n)},M(rn,"SelfLoopRouter",1653),E(1654,1,{},HO),f.Kb=function(t){return new Tt(null,new Ct(c(t,26).a,16))},M(rn,"SelfLoopRouter/lambda$0$Type",1654),E(1655,1,Wn,BR),f.Mb=function(t){return c(t,9).k==(Wt(),ar)},M(rn,"SelfLoopRouter/lambda$1$Type",1655),E(1656,1,Wn,zR),f.Mb=function(t){return Oi(c(t,9),($e(),zw))},M(rn,"SelfLoopRouter/lambda$2$Type",1656),E(1657,1,{},FR),f.Kb=function(t){return c($(c(t,9),($e(),zw)),339)},M(rn,"SelfLoopRouter/lambda$3$Type",1657),E(1658,1,un,h$e),f.Ad=function(t){a_t(this.a,this.b,c(t,339))},M(rn,"SelfLoopRouter/lambda$4$Type",1658),E(1659,1,Pi,qR),f.If=function(t,n){YVt(c(t,37),n)},M(rn,"SemiInteractiveCrossMinProcessor",1659),E(1660,1,Wn,pA),f.Mb=function(t){return c(t,9).k==(Wt(),ar)},M(rn,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1660),E(1661,1,Wn,YX),f.Mb=function(t){return Gqe(c(t,9))._b((We(),nx))},M(rn,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1661),E(1662,1,Zn,y5),f.Le=function(t,n){return HRt(c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(rn,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1662),E(1663,1,{},mA),f.Te=function(t,n){return p_t(c(t,9),c(n,9))},M(rn,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1663),E(1665,1,Pi,GO),f.If=function(t,n){Den(c(t,37),n)},M(rn,"SortByInputModelProcessor",1665),E(1666,1,Wn,bA),f.Mb=function(t){return c(t,12).g.c.length!=0},M(rn,"SortByInputModelProcessor/lambda$0$Type",1666),E(1667,1,un,W_e),f.Ad=function(t){gUt(this.a,c(t,12))},M(rn,"SortByInputModelProcessor/lambda$1$Type",1667),E(1746,811,{},fXe),f.bf=function(t){var n,i,r,o;switch(this.c=t,this.a.g){case 2:n=new Qe,hr(bi(new Tt(null,new Ct(this.c.a.b,16)),new VR),new b$e(this,n)),lL(this,new Vx),Vc(n,new k5),n.c.length=0,hr(bi(new Tt(null,new Ct(this.c.a.b,16)),new wA),new X_e(n)),lL(this,new GR),Vc(n,new Xx),n.c.length=0,i=eze(Gte(rv(new Tt(null,new Ct(this.c.a.b,16)),new K_e(this))),new QR),hr(new Tt(null,new Ct(this.c.a.a,16)),new g$e(i,n)),lL(this,new JR),Vc(n,new ZX),n.c.length=0;break;case 3:r=new Qe,lL(this,new HR),o=eze(Gte(rv(new Tt(null,new Ct(this.c.a.b,16)),new V_e(this))),new UR),hr(bi(new Tt(null,new Ct(this.c.a.b,16)),new eK),new m$e(o,r)),lL(this,new tK),Vc(r,new WR),r.c.length=0;break;default:throw K(new vPe)}},f.b=0,M(jr,"EdgeAwareScanlineConstraintCalculation",1746),E(1747,1,hd,HR),f.Lb=function(t){return he(c(t,60).g,157)},f.Fb=function(t){return this===t},f.Mb=function(t){return he(c(t,60).g,157)},M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1747),E(1748,1,{},V_e),f.We=function(t){return FUt(this.a,c(t,60))},M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1748),E(1756,1,mQ,d$e),f.be=function(){Q7(this.a,this.b,-1)},f.b=0,M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1756),E(1758,1,hd,Vx),f.Lb=function(t){return he(c(t,60).g,157)},f.Fb=function(t){return this===t},f.Mb=function(t){return he(c(t,60).g,157)},M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1758),E(1759,1,un,k5),f.Ad=function(t){c(t,376).be()},M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1759),E(1760,1,Wn,wA),f.Mb=function(t){return he(c(t,60).g,9)},M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1760),E(1762,1,un,X_e),f.Ad=function(t){Szt(this.a,c(t,60))},M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1762),E(1761,1,mQ,x$e),f.be=function(){Q7(this.b,this.a,-1)},f.a=0,M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1761),E(1763,1,hd,GR),f.Lb=function(t){return he(c(t,60).g,9)},f.Fb=function(t){return this===t},f.Mb=function(t){return he(c(t,60).g,9)},M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1763),E(1764,1,un,Xx),f.Ad=function(t){c(t,376).be()},M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1764),E(1765,1,{},K_e),f.We=function(t){return qUt(this.a,c(t,60))},M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1765),E(1766,1,{},QR),f.Ue=function(){return 0},M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1766),E(1749,1,{},UR),f.Ue=function(){return 0},M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1749),E(1768,1,un,g$e),f.Ad=function(t){WAt(this.a,this.b,c(t,321))},f.a=0,M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1768),E(1767,1,mQ,p$e),f.be=function(){Wnt(this.a,this.b,-1)},f.b=0,M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1767),E(1769,1,hd,JR),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(jr,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1769),E(1770,1,un,ZX),f.Ad=function(t){c(t,376).be()},M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1770),E(1750,1,Wn,eK),f.Mb=function(t){return he(c(t,60).g,9)},M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1750),E(1752,1,un,m$e),f.Ad=function(t){VAt(this.a,this.b,c(t,60))},f.a=0,M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1752),E(1751,1,mQ,y$e),f.be=function(){Q7(this.b,this.a,-1)},f.a=0,M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1751),E(1753,1,hd,tK),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(jr,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1753),E(1754,1,un,WR),f.Ad=function(t){c(t,376).be()},M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1754),E(1755,1,Wn,VR),f.Mb=function(t){return he(c(t,60).g,157)},M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1755),E(1757,1,un,b$e),f.Ad=function(t){aRt(this.a,this.b,c(t,60))},M(jr,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1757),E(1564,1,Pi,$ze),f.If=function(t,n){VZt(this,c(t,37),n)};var w1t;M(jr,"HorizontalGraphCompactor",1564),E(1565,1,{},Y_e),f.df=function(t,n){var i,r,o;return Cbe(t,n)||(i=_y(t),r=_y(n),i&&i.k==(Wt(),Ar)||r&&r.k==(Wt(),Ar))?0:(o=c($(this.a.a,($e(),O3)),317),B7t(o,i?i.k:(Wt(),Er),r?r.k:(Wt(),Er)))},f.ef=function(t,n){var i,r,o;return Cbe(t,n)?1:(i=_y(t),r=_y(n),o=c($(this.a.a,($e(),O3)),317),x0e(o,i?i.k:(Wt(),Er),r?r.k:(Wt(),Er)))},M(jr,"HorizontalGraphCompactor/1",1565),E(1566,1,{},vA),f.cf=function(t,n){return jT(),t.a.i==0},M(jr,"HorizontalGraphCompactor/lambda$0$Type",1566),E(1567,1,{},Z_e),f.cf=function(t,n){return w_t(this.a,t,n)},M(jr,"HorizontalGraphCompactor/lambda$1$Type",1567),E(1713,1,{},HWe);var v1t,x1t;M(jr,"LGraphToCGraphTransformer",1713),E(1721,1,Wn,b0),f.Mb=function(t){return t!=null},M(jr,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1721),E(1714,1,{},f8),f.Kb=function(t){return Ru(),So($(c(c(t,60).g,9),($e(),Si)))},M(jr,"LGraphToCGraphTransformer/lambda$0$Type",1714),E(1715,1,{},fg),f.Kb=function(t){return Ru(),rYe(c(c(t,60).g,157))},M(jr,"LGraphToCGraphTransformer/lambda$1$Type",1715),E(1724,1,Wn,O5),f.Mb=function(t){return Ru(),he(c(t,60).g,9)},M(jr,"LGraphToCGraphTransformer/lambda$10$Type",1724),E(1725,1,un,xA),f.Ad=function(t){d_t(c(t,60))},M(jr,"LGraphToCGraphTransformer/lambda$11$Type",1725),E(1726,1,Wn,h8),f.Mb=function(t){return Ru(),he(c(t,60).g,157)},M(jr,"LGraphToCGraphTransformer/lambda$12$Type",1726),E(1730,1,un,d8),f.Ad=function(t){HBt(c(t,60))},M(jr,"LGraphToCGraphTransformer/lambda$13$Type",1730),E(1727,1,un,eDe),f.Ad=function(t){PTt(this.a,c(t,8))},f.a=0,M(jr,"LGraphToCGraphTransformer/lambda$14$Type",1727),E(1728,1,un,tDe),f.Ad=function(t){RTt(this.a,c(t,120))},f.a=0,M(jr,"LGraphToCGraphTransformer/lambda$15$Type",1728),E(1729,1,un,nDe),f.Ad=function(t){ITt(this.a,c(t,8))},f.a=0,M(jr,"LGraphToCGraphTransformer/lambda$16$Type",1729),E(1731,1,{},yA),f.Kb=function(t){return Ru(),new Tt(null,new nv(new Gt(Xt(Fi(c(t,9)).a.Jc(),new z))))},M(jr,"LGraphToCGraphTransformer/lambda$17$Type",1731),E(1732,1,Wn,Kx),f.Mb=function(t){return Ru(),vs(c(t,17))},M(jr,"LGraphToCGraphTransformer/lambda$18$Type",1732),E(1733,1,un,iDe),f.Ad=function(t){zIt(this.a,c(t,17))},M(jr,"LGraphToCGraphTransformer/lambda$19$Type",1733),E(1717,1,un,rDe),f.Ad=function(t){pLt(this.a,c(t,157))},M(jr,"LGraphToCGraphTransformer/lambda$2$Type",1717),E(1734,1,{},XR),f.Kb=function(t){return Ru(),new Tt(null,new Ct(c(t,26).a,16))},M(jr,"LGraphToCGraphTransformer/lambda$20$Type",1734),E(1735,1,{},g8),f.Kb=function(t){return Ru(),new Tt(null,new nv(new Gt(Xt(Fi(c(t,9)).a.Jc(),new z))))},M(jr,"LGraphToCGraphTransformer/lambda$21$Type",1735),E(1736,1,{},j5),f.Kb=function(t){return Ru(),c($(c(t,17),($e(),Im)),16)},M(jr,"LGraphToCGraphTransformer/lambda$22$Type",1736),E(1737,1,Wn,nK),f.Mb=function(t){return z7t(c(t,16))},M(jr,"LGraphToCGraphTransformer/lambda$23$Type",1737),E(1738,1,un,sDe),f.Ad=function(t){HUt(this.a,c(t,16))},M(jr,"LGraphToCGraphTransformer/lambda$24$Type",1738),E(1739,1,{},h1),f.Kb=function(t){return Ru(),new Tt(null,new nv(new Gt(Xt(Fi(c(t,9)).a.Jc(),new z))))},M(jr,"LGraphToCGraphTransformer/lambda$25$Type",1739),E(1740,1,Wn,kA),f.Mb=function(t){return Ru(),vs(c(t,17))},M(jr,"LGraphToCGraphTransformer/lambda$26$Type",1740),E(1742,1,un,oDe),f.Ad=function(t){DRt(this.a,c(t,17))},M(jr,"LGraphToCGraphTransformer/lambda$27$Type",1742),E(1741,1,un,cDe),f.Ad=function(t){C8t(this.a,c(t,70))},f.a=0,M(jr,"LGraphToCGraphTransformer/lambda$28$Type",1741),E(1716,1,un,w$e),f.Ad=function(t){gPt(this.a,this.b,c(t,157))},M(jr,"LGraphToCGraphTransformer/lambda$3$Type",1716),E(1718,1,{},wb),f.Kb=function(t){return Ru(),new Tt(null,new Ct(c(t,26).a,16))},M(jr,"LGraphToCGraphTransformer/lambda$4$Type",1718),E(1719,1,{},KR),f.Kb=function(t){return Ru(),new Tt(null,new nv(new Gt(Xt(Fi(c(t,9)).a.Jc(),new z))))},M(jr,"LGraphToCGraphTransformer/lambda$5$Type",1719),E(1720,1,{},p8),f.Kb=function(t){return Ru(),c($(c(t,17),($e(),Im)),16)},M(jr,"LGraphToCGraphTransformer/lambda$6$Type",1720),E(1722,1,un,lDe),f.Ad=function(t){eJt(this.a,c(t,16))},M(jr,"LGraphToCGraphTransformer/lambda$8$Type",1722),E(1723,1,un,v$e),f.Ad=function(t){c7t(this.a,this.b,c(t,157))},M(jr,"LGraphToCGraphTransformer/lambda$9$Type",1723),E(1712,1,{},Yx),f.af=function(t){var n,i,r,o,a;for(this.a=t,this.d=new pY,this.c=Ce(aOe,It,126,this.a.a.a.c.length,0,1),this.b=0,i=new J(this.a.a.a);i.a<i.c.c.length;)n=c(U(i),321),n.d=this.b,a=qb(y_(new Qp,n),this.d),this.c[this.b]=a,++this.b;for(htn(this),unn(this),gVt(this),zie(XZ(this.d),new a4),o=new J(this.a.a.b);o.a<o.c.c.length;)r=c(U(o),60),r.d.c=this.c[r.a.d].e+r.b.a},f.b=0,M(jr,"NetworkSimplexCompaction",1712),E(157,1,{34:1,157:1},lC),f.Dd=function(t){return JIt(this,c(t,157))},f.Ib=function(){return rYe(this)},M(jr,"VerticalSegment",157),E(833,1,{},vve),f.c=0,f.e=0,f.i=0,M(jC,"BetweenLayerEdgeTwoNodeCrossingsCounter",833),E(674,1,{674:1},SXe),f.Ib=function(){return"AdjacencyList [node="+this.d+", adjacencies= "+this.a+"]"},f.b=0,f.c=0,f.f=0,M(jC,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList",674),E(296,1,{34:1,296:1},Jze),f.Dd=function(t){return yAt(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(jC,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList/Adjacency",296),E(2005,1,{},Ott),f.b=0,f.e=!1,M(jC,"CrossingMatrixFiller",2005);var y1t=er(Kd,"IInitializable");E(1863,1,SC,k$e),f.eg=function(t,n,i,r,o,a){},f.gg=function(t,n,i){},f.cg=function(){return this.c!=(mm(),TE)},f.dg=function(){this.e=Ce(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 WKe(this,t,n,i),NPt(this,n)},f.kg=function(t,n){var i;return i=D8t(n,t.length),WKe(this,t,i,n),oKe(this,i)},f.d=0,M(jC,"GreedySwitchHeuristic",1863),E(2008,1,{},Xqe),f.b=0,f.d=0,M(jC,"NorthSouthEdgeNeighbouringNodeCrossingsCounter",2008),E(1995,1,{},ort),f.a=!1,M(jC,"SwitchDecider",1995),E(108,1,{108:1},Ltt),f.a=null,f.c=null,f.i=null,M(Ok,"SelfHyperLoop",108),E(1992,1,{},cZe),f.c=0,f.e=0,M(Ok,"SelfHyperLoopLabels",1992),E(418,23,{3:1,34:1,23:1,418:1},OF);var Uv,qS,HS,zce,k1t=vn(Ok,"SelfHyperLoopLabels/Alignment",418,Sn,FLt,pEt),O1t;E(342,1,{342:1},SJe),M(Ok,"SelfLoopEdge",342),E(339,1,{339:1},lZe),f.a=!1,M(Ok,"SelfLoopHolder",339),E(1777,1,Wn,OA),f.Mb=function(t){return vs(c(t,17))},M(Ok,"SelfLoopHolder/lambda$0$Type",1777),E(114,1,{114:1},gZe),f.a=!1,f.c=!1,M(Ok,"SelfLoopPort",114),E(1849,1,Wn,YR),f.Mb=function(t){return vs(c(t,17))},M(Ok,"SelfLoopPort/lambda$0$Type",1849),E(372,23,{3:1,34:1,23:1,372:1},T_);var iJ,bP,rJ,sJ,oJ,j1t=vn(Ok,"SelfLoopType",372,Sn,IPt,mEt),S1t;E(1785,1,{},Y8);var T1t,C1t,E1t,M1t;M(Wu,"PortRestorer",1785),E(369,23,{3:1,34:1,23:1,369:1},VY);var Pw,ip,Iw,Fce=vn(Wu,"PortRestorer/PortSideArea",369,Sn,GDt,vEt),A1t;E(1786,1,{},jA),f.Kb=function(t){return H0(),c(t,16).Mc()},M(Wu,"PortRestorer/lambda$0$Type",1786),E(1787,1,un,ZR),f.Ad=function(t){H0(),c(t,114).c=!1},M(Wu,"PortRestorer/lambda$1$Type",1787),E(1796,1,Wn,hg),f.Mb=function(t){return H0(),c(t,12).j==(Ve(),Zt)},M(Wu,"PortRestorer/lambda$10$Type",1796),E(1797,1,{},S5),f.Kb=function(t){return H0(),c(t,114).d},M(Wu,"PortRestorer/lambda$11$Type",1797),E(1798,1,un,uDe),f.Ad=function(t){E8t(this.a,c(t,12))},M(Wu,"PortRestorer/lambda$12$Type",1798),E(1788,1,un,aDe),f.Ad=function(t){tCt(this.a,c(t,108))},M(Wu,"PortRestorer/lambda$2$Type",1788),E(1789,1,Zn,T5),f.Le=function(t,n){return vRt(c(t,114),c(n,114))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Wu,"PortRestorer/lambda$3$Type",1789),E(1790,1,Wn,m8),f.Mb=function(t){return H0(),c(t,114).c},M(Wu,"PortRestorer/lambda$4$Type",1790),E(1791,1,Wn,QO),f.Mb=function(t){return d$t(c(t,12))},M(Wu,"PortRestorer/lambda$5$Type",1791),E(1792,1,Wn,dg),f.Mb=function(t){return H0(),c(t,12).j==(Ve(),Yt)},M(Wu,"PortRestorer/lambda$6$Type",1792),E(1793,1,Wn,gg),f.Mb=function(t){return H0(),c(t,12).j==(Ve(),sn)},M(Wu,"PortRestorer/lambda$7$Type",1793),E(1794,1,Wn,w2),f.Mb=function(t){return rPt(c(t,12))},M(Wu,"PortRestorer/lambda$8$Type",1794),E(1795,1,Wn,Pp),f.Mb=function(t){return H0(),c(t,12).j==(Ve(),wn)},M(Wu,"PortRestorer/lambda$9$Type",1795),E(277,23,{3:1,34:1,23:1,277:1},I4);var qce,Hce,Gce,Qce,Uce,Jce,Wce,Vce,C6e=vn(Wu,"PortSideAssigner/Target",277,Sn,ZIt,xEt),N1t;E(1778,1,{},Ip),f.Kb=function(t){return bi(new Tt(null,new Ct(c(t,108).j,16)),new uf)},M(Wu,"PortSideAssigner/lambda$1$Type",1778),E(1779,1,{},vb),f.Kb=function(t){return c(t,114).d},M(Wu,"PortSideAssigner/lambda$2$Type",1779),E(1780,1,un,e$),f.Ad=function(t){$r(c(t,12),(Ve(),Yt))},M(Wu,"PortSideAssigner/lambda$3$Type",1780),E(1781,1,{},SA),f.Kb=function(t){return c(t,114).d},M(Wu,"PortSideAssigner/lambda$4$Type",1781),E(1782,1,un,fDe),f.Ad=function(t){F9t(this.a,c(t,12))},M(Wu,"PortSideAssigner/lambda$5$Type",1782),E(1783,1,Zn,TA),f.Le=function(t,n){return INt(c(t,108),c(n,108))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Wu,"PortSideAssigner/lambda$6$Type",1783),E(1784,1,Zn,t$),f.Le=function(t,n){return pAt(c(t,114),c(n,114))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Wu,"PortSideAssigner/lambda$7$Type",1784),E(814,1,Wn,uf),f.Mb=function(t){return c(t,114).c},M(Wu,"PortSideAssigner/lambda$8$Type",814),E(2087,1,{}),M(X0,"AbstractSelfLoopRouter",2087),E(1803,1,Zn,Tl),f.Le=function(t,n){return zCt(c(t,108),c(n,108))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(X0,qct,1803),E(1804,1,Zn,ko),f.Le=function(t,n){return FCt(c(t,108),c(n,108))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(X0,Hct,1804),E(1850,2087,{},v2),f.lg=function(t,n,i){return i},M(X0,"OrthogonalSelfLoopRouter",1850),E(1852,1,un,O$e),f.Ad=function(t){A2e(this.b,this.a,c(t,8))},M(X0,"OrthogonalSelfLoopRouter/lambda$0$Type",1852),E(1851,1850,{},pg),f.lg=function(t,n,i){var r,o;return r=t.c.d,G6(i,0,ji(Ms(r.n),r.a)),o=t.d.d,ni(i,ji(Ms(o.n),o.a)),lYt(i)},M(X0,"PolylineSelfLoopRouter",1851),E(1799,1,{},IK),f.a=null;var p3;M(X0,"RoutingDirector",1799),E(1800,1,Zn,CA),f.Le=function(t,n){return hAt(c(t,114),c(n,114))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(X0,"RoutingDirector/lambda$0$Type",1800),E(1801,1,{},x2),f.Kb=function(t){return lF(),c(t,108).j},M(X0,"RoutingDirector/lambda$1$Type",1801),E(1802,1,un,n$),f.Ad=function(t){lF(),c(t,16).gd(p3)},M(X0,"RoutingDirector/lambda$2$Type",1802),E(1805,1,{},i$),M(X0,"RoutingSlotAssigner",1805),E(1806,1,Wn,hDe),f.Mb=function(t){return bTt(this.a,c(t,108))},M(X0,"RoutingSlotAssigner/lambda$0$Type",1806),E(1807,1,Zn,dDe),f.Le=function(t,n){return LAt(this.a,c(t,108),c(n,108))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(X0,"RoutingSlotAssigner/lambda$1$Type",1807),E(1853,1850,{},C5),f.lg=function(t,n,i){var r,o,a,d;return r=ge(be(wG(t.b.g.b,(We(),C3)))),d=new Xze(ee(Z(Vr,1),Ge,8,0,[(a=t.c.d,ji(new Es(a.n),a.a))])),$Wt(t,n,i,d,r),ni(d,(o=t.d.d,ji(new Es(o.n),o.a))),PZe(new bye(d))},M(X0,"SplineSelfLoopRouter",1853),E(516,1,Zn,hwe,dGe),f.Le=function(t,n){return jL(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(EQ,"ModelOrderNodeComparator",516),E(1808,1,Wn,Zx),f.Mb=function(t){return c(t,12).e.c.length!=0},M(EQ,"ModelOrderNodeComparator/lambda$0$Type",1808),E(579,1,Wn,E5),f.Mb=function(t){return c(t,12).e.c.length!=0},M(EQ,"ModelOrderNodeComparator/lambda$1$Type",579),E(580,1,Wn,y2),f.Mb=function(t){return c(t,12).g.c.length!=0},M(EQ,"ModelOrderNodeComparator/lambda$2$Type",580),E(663,1,Zn,xYe,Obe),f.Le=function(t,n){return pHe(this,t,n)},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},f.c=!1,M(EQ,"ModelOrderPortComparator",663),E(1643,1,Pi,ey),f.If=function(t,n){Jnn(c(t,37))},M("org.eclipse.elk.alg.layered.intermediate.unzipping","AlternatingLayerUnzipper",1643),E(809,1,{},Rp),f.mg=function(t,n){var i,r,o,a;for(o=wtt(n),i=new Qe,a=n.f/o,r=1;r<o;++r)Ue(i,ze(Qn(nc(p.Math.round(r*a)))));return i},f.ng=function(){return!1},M(gd,"ARDCutIndexHeuristic",809),E(1522,1,Pi,k2),f.If=function(t,n){TKt(c(t,37),n)},M(gd,"BreakingPointInserter",1522),E(318,1,{318:1},Ume),f.Ib=function(){var t;return t=new v0,t.a+="BPInfo[",t.a+=`
	start=`,Mc(t,this.i),t.a+=`
	end=`,Mc(t,this.a),t.a+=`
	nodeStartEdge=`,Mc(t,this.e),t.a+=`
	startEndEdge=`,Mc(t,this.j),t.a+=`
	originalEdge=`,Mc(t,this.f),t.a+=`
	startInLayerDummy=`,Mc(t,this.k),t.a+=`
	startInLayerEdge=`,Mc(t,this.n),t.a+=`
	endInLayerDummy=`,Mc(t,this.b),t.a+=`
	endInLayerEdge=`,Mc(t,this.c),t.a},M(gd,"BreakingPointInserter/BPInfo",318),E(657,1,{657:1},ODe),f.a=!1,f.b=0,f.c=0,M(gd,"BreakingPointInserter/Cut",657),E(1523,1,Pi,xb),f.If=function(t,n){HWt(c(t,37),n)},M(gd,"BreakingPointProcessor",1523),E(1524,1,Wn,EA),f.Mb=function(t){return cVe(c(t,9))},M(gd,"BreakingPointProcessor/0methodref$isEnd$Type",1524),E(1525,1,Wn,MA),f.Mb=function(t){return lVe(c(t,9))},M(gd,"BreakingPointProcessor/1methodref$isStart$Type",1525),E(1526,1,Pi,AA),f.If=function(t,n){hVt(this,c(t,37),n)},M(gd,"BreakingPointRemover",1526),E(1527,1,un,M5),f.Ad=function(t){c(t,134).k=!0},M(gd,"BreakingPointRemover/lambda$0$Type",1527),E(805,1,{},pxe),f.b=0,f.e=0,f.f=0,f.j=0,M(gd,"GraphStats",805),E(806,1,{},UO),f.Te=function(t,n){return p.Math.max(ge(be(t)),ge(be(n)))},M(gd,"GraphStats/0methodref$max$Type",806),E(807,1,{},O2),f.Te=function(t,n){return p.Math.max(ge(be(t)),ge(be(n)))},M(gd,"GraphStats/2methodref$max$Type",807),E(1709,1,{},Hf),f.Te=function(t,n){return tMt(be(t),be(n))},M(gd,"GraphStats/lambda$1$Type",1709),E(1710,1,{},gDe),f.Kb=function(t){return dZe(this.a,c(t,26))},M(gd,"GraphStats/lambda$2$Type",1710),E(1711,1,{},pDe),f.Kb=function(t){return vit(this.a,c(t,26))},M(gd,"GraphStats/lambda$6$Type",1711),E(808,1,{},JO),f.mg=function(t,n){var i;return i=c($(t,(We(),LSe)),16),i||(Mt(),Mt(),Is)},f.ng=function(){return!1},M(gd,"ICutIndexCalculator/ManualCutIndexCalculator",808),E(810,1,{},NA),f.mg=function(t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne;for(Ne=(n.n==null&&zZe(n),n.n),v=(n.d==null&&zZe(n),n.d),we=Ce(is,io,30,Ne.length,15,1),we[0]=Ne[0],oe=Ne[0],k=1;k<Ne.length;k++)we[k]=we[k-1]+Ne[k],oe+=Ne[k];for(o=wtt(n)-1,d=c($(t,(We(),PSe)),15).a,r=Gr,i=new Qe,L=p.Math.max(0,o-d);L<=p.Math.min(n.f-1,o+d);L++){if(G=oe/(L+1),Y=0,T=1,a=new Qe,fe=Gr,A=0,b=0,F=v[0],L==0)fe=oe,b=(n.g==null&&(n.g=vXe(n,new O2)),ge(n.g));else{for(;T<n.f;)we[T-1]-Y>=G&&(Ue(a,ze(T)),fe=p.Math.max(fe,we[T-1]-A),b+=F,Y+=we[T-1]-Y,A=we[T-1],F=v[T]),F=p.Math.max(F,v[T]),++T;b+=F}R=p.Math.min(1/fe,1/n.b/b),R>r&&(r=R,i=a)}return i},f.ng=function(){return!1},M(gd,"MSDCutIndexHeuristic",810),E(1664,1,Pi,iK),f.If=function(t,n){ZYt(c(t,37),n)},M(gd,"SingleEdgeGraphWrapper",1664),E(233,23,{3:1,34:1,23:1,233:1},NT);var m3,GS,QS,Jv,tE,b3,US=vn(Xo,"CenterEdgeLabelPlacementStrategy",233,Sn,pIt,wEt),_1t;E(427,23,{3:1,34:1,23:1,427:1},vge);var E6e,Xce,M6e=vn(Xo,"ConstraintCalculationStrategy",427,Sn,P_t,bEt),D1t;E(302,23,{3:1,34:1,23:1,302:1,173:1,177:1},jF),f.bg=function(){return rit(this)},f.og=function(){return rit(this)};var wP,nE,A6e,N6e,_6e=vn(Xo,"CrossingMinimizationStrategy",302,Sn,QLt,yEt),L1t;E(351,23,{3:1,34:1,23:1,351:1},XY);var D6e,Kce,cJ,L6e=vn(Xo,"CuttingStrategy",351,Sn,_Dt,kEt),P1t;E(268,23,{3:1,34:1,23:1,268:1,173:1,177:1},my),f.bg=function(){return urt(this)},f.og=function(){return urt(this)};var Yce,P6e,Zce,ele,tle,nle,ile,rle,vP,I6e=vn(Xo,"CycleBreakingStrategy",268,Sn,TRt,OEt),I1t;E(424,23,{3:1,34:1,23:1,424:1},xge);var lJ,R6e,$6e=vn(Xo,"DirectionCongruency",424,Sn,I_t,jEt),R1t;E(452,23,{3:1,34:1,23:1,452:1},KY);var JS,sle,w3,$1t=vn(Xo,"EdgeConstraint",452,Sn,DDt,SEt),B1t;E(286,23,{3:1,34:1,23:1,286:1},_T);var ole,cle,lle,ule,uJ,ale,B6e=vn(Xo,"EdgeLabelSideSelection",286,Sn,hIt,TEt),z1t;E(479,23,{3:1,34:1,23:1,479:1},yge);var aJ,z6e,F6e=vn(Xo,"EdgeStraighteningStrategy",479,Sn,R_t,CEt),F1t;E(284,23,{3:1,34:1,23:1,284:1},DT);var fle,q6e,H6e,fJ,G6e,Q6e,U6e=vn(Xo,"FixedAlignment",284,Sn,dIt,EEt),q1t;E(285,23,{3:1,34:1,23:1,285:1},LT);var J6e,W6e,V6e,X6e,iE,K6e,Y6e=vn(Xo,"GraphCompactionStrategy",285,Sn,gIt,MEt),H1t;E(262,23,{3:1,34:1,23:1,262:1},q2);var WS,hJ,VS,Ma,rE,dJ,XS,v3,gJ,sE,hle=vn(Xo,"GraphProperties",262,Sn,JRt,AEt),G1t;E(303,23,{3:1,34:1,23:1,303:1},YY);var xP,dle,gle,ple=vn(Xo,"GreedySwitchType",303,Sn,NDt,NEt),Q1t;E(330,23,{3:1,34:1,23:1,330:1},ZY);var Wv,Z6e,yP,mle=vn(Xo,"GroupOrderStrategy",330,Sn,MDt,_Et),U1t;E(316,23,{3:1,34:1,23:1,316:1},eZ);var Nk,kP,x3,J1t=vn(Xo,"InLayerConstraint",316,Sn,ADt,DEt),W1t;E(425,23,{3:1,34:1,23:1,425:1},kge);var ble,eje,tje=vn(Xo,"InteractiveReferencePoint",425,Sn,__t,LEt),V1t,nje,_k,Rw,OP,pJ,ije,rje,mJ,sje,Dk,bJ,oE,Lk,J1,wle,wJ,Zo,oje,rp,Bc,vle,xle,jP,Pm,$w,Pk,cje,X1t,Ik,SP,Vv,sh,Ka,yle,y3,sp,Ri,Si,lje,uje,aje,fje,hje,kle,vJ,Wl,Bw,Ole,Rk,cE,Vg,k3,zw,O3,j3,KS,Im,dje,jle,Sle,lE,$k,xJ,Bk,S3;E(166,23,{3:1,34:1,23:1,166:1},C_);var uE,W1,aE,Rm,TP,gje=vn(Xo,"LayerConstraint",166,Sn,zPt,PEt),K1t;E(428,23,{3:1,34:1,23:1,428:1},Oge);var Tle,Cle,pje=vn(Xo,"LayerUnzippingStrategy",428,Sn,D_t,IEt),Y1t;E(851,1,Cf,az),f.tf=function(t){gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,k3e),""),"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."),Eje),(Q0(),Vi)),$6e),bt((jh(),Dt))))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,O3e),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(zt(),!1)),Ir),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,MQ),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),Lje),Vi),tje),bt(Dt)))),tr(t,MQ,WL,n0t),tr(t,MQ,TC,t0t),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,j3e),""),"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),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,S3e),""),"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),cr),bt(Dt)))),gt(t,new ot(M8t(ht(ft(dt(yt(ct(at(lt(ut(new rt,T3e),""),"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),cr),bt(e0)),ee(Z(st,1),Ge,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,C3e),""),"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."),Qje),Vi),n9e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,E3e),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),ze(7)),Ss),Pr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,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),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,A3e),""),"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),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,WL),"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)."),Cje),Vi),I6e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,VL),Rse),"Node Layering Strategy"),"Strategy for node layering."),Rje),Vi),GSe),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,N3e),Rse),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),Pje),Vi),gje),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,_3e),Rse),"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),Ss),Pr),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,D3e),Rse),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),ze(-1)),Ss),Pr),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,sse),klt),"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."),ze(4)),Ss),Pr),bt(Dt)))),tr(t,sse,VL,u0t),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,ose),klt),"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."),ze(2)),Ss),Pr),bt(Dt)))),tr(t,ose,VL,f0t),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,cse),Olt),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),Ije),Vi),ZSe),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,lse),Olt),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),ze(0)),Ss),Pr),bt(Dt)))),tr(t,lse,cse,null),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,use),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),ze(pi)),Ss),Pr),bt(Dt)))),tr(t,use,VL,r0t),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,TC),yS),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),Tje),Vi),_6e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,L3e),yS),"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),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,ase),yS),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),ls),Sr),bt(Dt)))),tr(t,ase,qQ,Egt),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,fse),yS),"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),cr),bt(Dt)))),tr(t,fse,TC,Lgt),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,P3e),yS),"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),Uk),st),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,I3e),yS),"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),Uk),st),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,R3e),yS),"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),Ss),Pr),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,$3e),yS),"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."),ze(-1)),Ss),Pr),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,B3e),jlt),"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."),ze(40)),Ss),Pr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,hse),jlt),"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."),Sje),Vi),ple),bt(Dt)))),tr(t,hse,TC,Tgt),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,AQ),"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."),jje),Vi),ple),bt(Dt)))),tr(t,AQ,TC,Ogt),tr(t,AQ,qQ,jgt),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,r3),Slt),"Node Placement Strategy"),"Strategy for node placement."),Gje),Vi),WSe),bt(Dt)))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,NQ),Slt),"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),cr),bt(Dt)))),tr(t,NQ,r3,E0t),tr(t,NQ,r3,M0t),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,dse),Tlt),"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."),Fje),Vi),F6e),bt(Dt)))),tr(t,dse,r3,j0t),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,gse),Tlt),"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."),qje),Vi),U6e),bt(Dt)))),tr(t,gse,r3,T0t),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,pse),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),ls),Sr),bt(Dt)))),tr(t,pse,r3,N0t),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,mse),"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),eue),bt(pr)))),tr(t,mse,r3,P0t),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,bse),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),Hje),Vi),eue),bt(Dt)))),tr(t,bse,r3,L0t),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,z3e),Clt),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),Nje),Vi),s9e),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,F3e),Clt),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),_je),Vi),o9e),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,_Q),"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."),Dje),Vi),l9e),bt(Dt)))),tr(t,_Q,KL,Qgt),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,DQ),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),ls),Sr),bt(Dt)))),tr(t,DQ,KL,Jgt),tr(t,DQ,_Q,Wgt),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,wse),"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),ls),Sr),bt(Dt)))),tr(t,wse,KL,Fgt),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,q3e),_h),"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."),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,H3e),_h),"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),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,G3e),_h),"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),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Q3e),_h),"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),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,U3e),r5e),"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."),ze(0)),Ss),Pr),bt(ch)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,J3e),r5e),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),ze(0)),Ss),Pr),bt(ch)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,W3e),r5e),"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."),ze(0)),Ss),Pr),bt(ch)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,vse),s5e),"Connected Components Compaction"),"Tries to further compact components (disconnected sub-graphs)."),!1),Ir),cr),bt(Dt)))),tr(t,vse,kC,!0),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,V3e),Elt),"Post Compaction Strategy"),Mlt),bje),Vi),Y6e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,X3e),Elt),"Post Compaction Constraint Calculation"),Mlt),mje),Vi),M6e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,LQ),o5e),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),Ir),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,xse),o5e),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),ze(16)),Ss),Pr),bt(Dt)))),tr(t,xse,LQ,!0),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,yse),o5e),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),ze(5)),Ss),Pr),bt(Dt)))),tr(t,yse,LQ,!0),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,G1),c5e),"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'."),Wje),Vi),h9e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,PQ),c5e),"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),ls),Sr),bt(Dt)))),tr(t,PQ,G1,W0t),tr(t,PQ,G1,V0t),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,IQ),c5e),"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),ls),Sr),bt(Dt)))),tr(t,IQ,G1,K0t),tr(t,IQ,G1,Y0t),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,CC),Alt),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),Jje),Vi),L6e),bt(Dt)))),tr(t,CC,G1,rpt),tr(t,CC,G1,spt),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,kse),Alt),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),Rh),Vu),bt(Dt)))),tr(t,kse,CC,ept),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Ose),"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."),Uje),Ss),Pr),bt(Dt)))),tr(t,Ose,CC,npt),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,RQ),Nlt),"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."),Vje),Vi),f9e),bt(Dt)))),tr(t,RQ,G1,bpt),tr(t,RQ,G1,wpt),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,$Q),Nlt),"Valid Indices for Wrapping"),null),Rh),Vu),bt(Dt)))),tr(t,$Q,G1,gpt),tr(t,$Q,G1,ppt),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,BQ),l5e),"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),cr),bt(Dt)))),tr(t,BQ,G1,upt),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,zQ),l5e),"Distance Penalty When Improving Cuts"),null),2),ls),Sr),bt(Dt)))),tr(t,zQ,G1,cpt),tr(t,zQ,BQ,!0),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,jse),l5e),"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),cr),bt(Dt)))),tr(t,jse,G1,fpt),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Sse),$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'."),zje),Vi),pje),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Tse),$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),cr),bt(pr)))),tr(t,Tse,Cse,b0t),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Cse),$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."),$je),Ss),Pr),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Ese),$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."),Bje),Ir),cr),bt(pr)))),tr(t,Ese,Sse,v0t),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,K3e),Bse),"Edge Label Side Selection"),"Method to decide on edge label sides."),Aje),Vi),B6e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Y3e),Bse),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),Mje),Vi),US),Li(Dt,ee(Z(Ih,1),Re,161,0,[X1]))))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,FQ),EC),"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."),Oje),Vi),t9e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Z3e),EC),"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),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,XL),EC),"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),cr),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Mse),EC),"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."),wje),Vi),LOe),bt(Dt)))),tr(t,Mse,kC,null),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,e5e),EC),"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."),kje),Vi),USe),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Ase),EC),"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),ls),Sr),bt(Dt)))),tr(t,Ase,FQ,null),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Nse),EC),"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),ls),Sr),bt(Dt)))),tr(t,Nse,FQ,null),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,_se),kS),u5e),"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."),ze(0)),Ss),Pr),bt(pr)))),tr(t,_se,XL,!1),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Dse),kS),u5e),"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."),ze(0)),Ss),Pr),Li(pr,ee(Z(Ih,1),Re,161,0,[ch,e0]))))),tr(t,Dse,XL,!1),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Lse),kS),u5e),"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."),ze(0)),Ss),Pr),Li(pr,ee(Z(Ih,1),Re,161,0,[ch,e0]))))),tr(t,Lse,XL,!1),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,t5e),kS),"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."),vje),Vi),mle),bt(Dt)))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,Pse),kS),"Cycle Breaking Preferred Source Id"),"The model order group id for which should be preferred as a source if possible."),Ss),Pr),bt(Dt)))),tr(t,Pse,WL,lgt),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,Ise),kS),"Cycle Breaking Preferred Target Id"),"The model order group id for which should be preferred as a target if possible."),Ss),Pr),bt(Dt)))),tr(t,Ise,WL,agt),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,n5e),kS),"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."),yje),Vi),mle),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,i5e),kS),"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."),xje),Rh),Vu),bt(Dt)))),Kot((new QN,t))};var Z1t,egt,tgt,mje,ngt,bje,igt,wje,rgt,sgt,ogt,vje,cgt,lgt,ugt,agt,fgt,xje,hgt,yje,dgt,ggt,pgt,mgt,kje,bgt,wgt,vgt,Oje,xgt,ygt,kgt,jje,Ogt,jgt,Sgt,Sje,Tgt,Cgt,Egt,Mgt,Agt,Ngt,_gt,Dgt,Lgt,Pgt,Tje,Igt,Cje,Rgt,Eje,$gt,Mje,Bgt,Aje,zgt,Fgt,qgt,Nje,Hgt,_je,Ggt,Dje,Qgt,Ugt,Jgt,Wgt,Vgt,Xgt,Kgt,Ygt,Zgt,e0t,Lje,t0t,n0t,i0t,r0t,s0t,o0t,Pje,c0t,l0t,u0t,a0t,f0t,h0t,d0t,Ije,g0t,Rje,p0t,$je,m0t,b0t,w0t,Bje,v0t,x0t,zje,y0t,k0t,O0t,Fje,j0t,S0t,qje,T0t,C0t,E0t,M0t,A0t,N0t,_0t,D0t,Hje,L0t,P0t,I0t,Gje,R0t,Qje,$0t,B0t,z0t,F0t,q0t,H0t,G0t,Q0t,U0t,J0t,W0t,V0t,X0t,K0t,Y0t,Z0t,ept,tpt,Uje,npt,ipt,Jje,rpt,spt,opt,cpt,lpt,upt,apt,fpt,hpt,Wje,dpt,gpt,ppt,mpt,Vje,bpt,wpt;M(Xo,"LayeredMetaDataProvider",851),E(991,1,Cf,QN),f.tf=function(t){Kot(t)};var vd,Ele,yJ,fE,kJ,Xje,OJ,hE,CP,Mle,zk,Kje,Yje,Zje,dE,vpt,gE,Xv,Ale,jJ,Nle,t1,_le,YS,eSe,EP,Dle,tSe,xpt,ypt,kpt,SJ,Lle,pE,Fk,Opt,Xu,nSe,iSe,TJ,T3,xd,CJ,V1,rSe,sSe,oSe,Ple,Ile,cSe,Xg,Rle,lSe,Kv,uSe,aSe,fSe,EJ,Yv,$m,hSe,dSe,ho,gSe,jpt,Ro,mE,pSe,mSe,bSe,MP,MJ,AJ,$le,Ble,wSe,NJ,vSe,xSe,_J,Fw,ySe,zle,bE,kSe,qw,wE,DJ,Bm,Fle,ZS,LJ,zm,OSe,jSe,SSe,Zv,TSe,Spt,Tpt,Cpt,Ept,Hw,ex,fr,Kg,Mpt,tx,CSe,e9,ESe,nx,Apt,t9,MSe,qk,Npt,_pt,AP,qle,ASe,NP,Nf,ix,C3,Fm,op,PJ,rx,Hle,n9,i9,qm,sx,Gle,_P,vE,xE,Dpt,Lpt,Ppt,NSe,Ipt,Qle,_Se,DSe,LSe,PSe,Ule,ISe,RSe,$Se,BSe,Jle,IJ;M(Xo,"LayeredOptions",991),E(992,1,{},rK),f.uf=function(){var t;return t=new OPe,t},f.vf=function(t){},M(Xo,"LayeredOptions/LayeredFactory",992),E(1357,1,{}),f.a=0;var Rpt;M(rc,"ElkSpacings/AbstractSpacingsBuilder",1357),E(785,1357,{},u2e);var RJ,$pt;M(Xo,"LayeredSpacings/LayeredSpacingsBuilder",785),E(269,23,{3:1,34:1,23:1,269:1,173:1,177:1},by),f.bg=function(){return srt(this)},f.og=function(){return srt(this)};var Wle,Vle,Xle,zSe,FSe,qSe,$J,Kle,HSe,GSe=vn(Xo,"LayeringStrategy",269,Sn,CRt,FEt),Bpt;E(353,23,{3:1,34:1,23:1,353:1},tZ);var Yle,QSe,BJ,USe=vn(Xo,"LongEdgeOrderingStrategy",353,Sn,$Dt,$Et),zpt;E(205,23,{3:1,34:1,23:1,205:1},SF);var E3,M3,zJ,Zle,eue=vn(Xo,"NodeFlexibility",205,Sn,HLt,REt),Fpt;E(329,23,{3:1,34:1,23:1,329:1,173:1,177:1},E_),f.bg=function(){return btt(this)},f.og=function(){return btt(this)};var yE,tue,nue,kE,JSe,WSe=vn(Xo,"NodePlacementStrategy",329,Sn,BPt,BEt),qpt;E(246,23,{3:1,34:1,23:1,246:1},H2);var VSe,r9,OE,DP,XSe,KSe,LP,YSe,FJ,qJ,ZSe=vn(Xo,"NodePromotionStrategy",246,Sn,URt,zEt),Hpt;E(270,23,{3:1,34:1,23:1,270:1},TF);var e9e,cp,iue,rue,t9e=vn(Xo,"OrderingStrategy",270,Sn,GLt,qEt),Gpt;E(426,23,{3:1,34:1,23:1,426:1},jge);var sue,oue,n9e=vn(Xo,"PortSortingStrategy",426,Sn,L_t,HEt),Qpt;E(455,23,{3:1,34:1,23:1,455:1},nZ);var Vl,tl,jE,Upt=vn(Xo,"PortType",455,Sn,LDt,GEt),Jpt;E(382,23,{3:1,34:1,23:1,382:1},iZ);var i9e,cue,r9e,s9e=vn(Xo,"SelfLoopDistributionStrategy",382,Sn,PDt,QEt),Wpt;E(349,23,{3:1,34:1,23:1,349:1},rZ);var lue,PP,uue,o9e=vn(Xo,"SelfLoopOrderingStrategy",349,Sn,IDt,UEt),Vpt;E(317,1,{317:1},Ust),M(Xo,"Spacings",317),E(350,23,{3:1,34:1,23:1,350:1},sZ);var aue,c9e,SE,l9e=vn(Xo,"SplineRoutingMode",350,Sn,RDt,JEt),Xpt;E(352,23,{3:1,34:1,23:1,352:1},oZ);var fue,u9e,a9e,f9e=vn(Xo,"ValidifyStrategy",352,Sn,BDt,WEt),Kpt;E(383,23,{3:1,34:1,23:1,383:1},cZ);var ox,hue,s9,h9e=vn(Xo,"WrappingStrategy",383,Sn,zDt,VEt),Ypt;E(1373,1,Wr,RK),f.pg=function(t){return c(t,37),Zpt},f.If=function(t,n){Ren(this,c(t,37),n)};var Zpt;M(Sw,"BFSNodeOrderCycleBreaker",1373),E(1371,1,Wr,Uf),f.pg=function(t){return c(t,37),emt},f.If=function(t,n){_Zt(this,c(t,37),n)};var emt;M(Sw,"DFSNodeOrderCycleBreaker",1371),E(1372,1,un,nqe),f.Ad=function(t){_Kt(this.a,this.c,this.b,c(t,17))},f.b=!1,M(Sw,"DFSNodeOrderCycleBreaker/lambda$0$Type",1372),E(1365,1,Wr,hz),f.pg=function(t){return c(t,37),tmt},f.If=function(t,n){NZt(this,c(t,37),n)};var tmt;M(Sw,"DepthFirstCycleBreaker",1365),E(786,1,Wr,Dpe),f.pg=function(t){return c(t,37),nmt},f.If=function(t,n){Znn(this,c(t,37),n)},f.qg=function(t){return c(Xe(t,kG(this.e,t.c.length)),9)};var nmt;M(Sw,"GreedyCycleBreaker",786),E(1368,786,Wr,X$e),f.qg=function(t){var n,i,r,o,a,d,b,v,k;for(k=null,r=pi,v=p.Math.max(this.b.a.c.length,c($(this.b,($e(),sp)),15).a),n=v*c($(this.b,OP),15).a,o=new WO,i=Se($(this.b,(We(),zk)))===Se((I0(),Wv)),b=new J(t);b.a<b.c.c.length;)d=c(U(b),9),Oi(d,Ri)&&(a=i?lk(o,d,n,v):sk(o,d,v),r>a&&(r=a,k=d));return k||c(Xe(t,kG(this.e,t.c.length)),9)},M(Sw,"GreedyModelOrderCycleBreaker",1368),E(509,1,{},WO),f.a=0,f.b=0,M(Sw,"GroupModelOrderCalculator",509),E(1366,1,Wr,Gc),f.pg=function(t){return c(t,37),imt},f.If=function(t,n){ren(this,c(t,37),n)};var imt;M(Sw,"InteractiveCycleBreaker",1366),E(1367,1,Wr,fz),f.pg=function(t){return c(t,37),rmt},f.If=function(t,n){oen(c(t,37),n)};var rmt;M(Sw,"ModelOrderCycleBreaker",1367),E(787,1,Wr),f.pg=function(t){return c(t,37),smt},f.If=function(t,n){UYt(this,c(t,37),n)},f.rg=function(t,n){var i,r,o,a,d,b,v,k,T,A;for(d=0;d<this.d.b;d++){for(b=null,i=new WO,v=cs,A=c(vc(this.d,d),24).Jc();A.Ob();)T=c(A.Pb(),9),a=Se($(this.a,(We(),zk)))===Se((I0(),Wv)),b?(k=a?lk(i,T,n,t):sk(i,T,t),v<k&&(b=T,v=k)):(b=T,v=a?lk(i,T,n,t):sk(i,T,t));for(o=new Gt(Xt(Fi(b).a.Jc(),new z));gn(o);)r=c(on(o),17),c(vc(this.d,d),24).Gc(r.d.i)&&Ue(this.c,r)}};var smt;M(Sw,"SCCModelOrderCycleBreaker",787),E(1370,787,Wr,K$e),f.rg=function(t,n){var i,r,o,a,d,b,v,k,T,A,L,R;for(d=0;d<this.d.b;d++)if(!(c(vc(this.d,d),24).gc()<=1)){for(v=null,b=null,A=pi,T=cs,a=Se($(this.a,(We(),zk)))===Se((I0(),Wv)),i=new WO,R=c(vc(this.d,d),24).Jc();R.Ob();)L=c(R.Pb(),9),!v||!b?(v=L,A=a?lk(i,L,n,t):sk(i,L,t),b=L,T=A):(k=a?lk(i,L,n,t):sk(i,L,t),A>k&&(v=L,A=k),T<k&&(b=L,T=k));if(Se($(v,Xv))===Se($(this.a,Kje)))for(o=new Gt(Xt(vr(v).a.Jc(),new z));gn(o);)r=c(on(o),17),c(vc(this.d,d),24).Gc(r.c.i)&&Ue(this.c,r);else if(Se($(b,Xv))===Se($(this.a,Yje)))for(o=new Gt(Xt(Fi(b).a.Jc(),new z));gn(o);)r=c(on(o),17),c(vc(this.d,d),24).Gc(r.c.i)&&Ue(this.c,r);else if(Vf(new Gt(Xt(vr(v).a.Jc(),new z)))>Vf(new Gt(Xt(Fi(b).a.Jc(),new z))))for(o=new Gt(Xt(vr(v).a.Jc(),new z));gn(o);)r=c(on(o),17),c(vc(this.d,d),24).Gc(r.c.i)&&Ue(this.c,r);else for(o=new Gt(Xt(Fi(b).a.Jc(),new z));gn(o);)r=c(on(o),17),c(vc(this.d,d),24).Gc(r.d.i)&&Ue(this.c,r)}},M(Sw,"SCCNodeTypeCycleBreaker",1370),E(1369,787,Wr,Y$e),f.rg=function(t,n){var i,r,o,a,d,b,v,k,T,A,L,R;for(d=0;d<this.d.b;d++)if(!(c(vc(this.d,d),24).gc()<=1)){for(v=null,b=null,A=pi,T=cs,a=Se($(this.a,(We(),zk)))===Se((I0(),Wv)),i=new WO,R=c(vc(this.d,d),24).Jc();R.Ob();)L=c(R.Pb(),9),!v||!b?(v=L,A=a?lk(i,L,n,t):sk(i,L,t),b=L,T=A):(k=a?lk(i,L,n,t):sk(i,L,t),A>k&&(v=L,A=k),T<k&&(b=L,T=k));if(Vf(new Gt(Xt(vr(v).a.Jc(),new z)))>Vf(new Gt(Xt(Fi(b).a.Jc(),new z))))for(o=new Gt(Xt(vr(v).a.Jc(),new z));gn(o);)r=c(on(o),17),c(vc(this.d,d),24).Gc(r.c.i)&&Ue(this.c,r);else for(o=new Gt(Xt(Fi(b).a.Jc(),new z));gn(o);)r=c(on(o),17),c(vc(this.d,d),24).Gc(r.d.i)&&Ue(this.c,r)}},M(Sw,"SCConnectivity",1369),E(1385,1,Wr,GN),f.pg=function(t){return c(t,37),omt},f.If=function(t,n){inn(this,c(t,37),n)};var omt;M(Q1,"BreadthFirstModelOrderLayerer",1385),E(1386,1,Zn,ca),f.Le=function(t,n){return IUt(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,Wr,VRe),f.pg=function(t){return c(t,37),cmt},f.If=function(t,n){rin(this,c(t,37),n)};var cmt;M(Q1,"CoffmanGrahamLayerer",1376),E(1377,1,Zn,mDe),f.Le=function(t,n){return UVt(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,Zn,bDe),f.Le=function(t,n){return JAt(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,Wr,LK),f.pg=function(t){return c(t,37),lmt},f.If=function(t,n){Gnn(this,c(t,37),n)},f.c=0,f.e=0;var lmt;M(Q1,"DepthFirstModelOrderLayerer",1387),E(1388,1,Zn,_A),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,"DepthFirstModelOrderLayerer/lambda$0$Type",1388),E(1379,1,Wr,VO),f.pg=function(t){return c(t,37),Kn(Kn(Kn(new yr,(ts(),Af),(os(),Ice)),Zd,Qv),Oc,Gv)},f.If=function(t,n){gnn(c(t,37),n)},M(Q1,"InteractiveLayerer",1379),E(571,1,{571:1},NPe),f.a=0,f.c=0,M(Q1,"InteractiveLayerer/LayerSpan",571),E(1375,1,Wr,uz),f.pg=function(t){return c(t,37),umt},f.If=function(t,n){zVt(this,c(t,37),n)};var umt;M(Q1,"LongestPathLayerer",1375),E(1384,1,Wr,PK),f.pg=function(t){return c(t,37),amt},f.If=function(t,n){cXt(this,c(t,37),n)};var amt;M(Q1,"LongestPathSourceLayerer",1384),E(1382,1,Wr,Z8),f.pg=function(t){return c(t,37),Kn(Kn(Kn(new yr,(ts(),Af),(os(),g3)),Zd,Qv),Oc,Gv)},f.If=function(t,n){jnn(this,c(t,37),n)},f.a=0,f.b=0,f.d=0;var d9e,g9e;M(Q1,"MinWidthLayerer",1382),E(1383,1,Zn,wDe),f.Le=function(t,n){return w$t(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,Wr,UN),f.pg=function(t){return c(t,37),fmt},f.If=function(t,n){zen(this,c(t,37),n)};var fmt;M(Q1,"NetworkSimplexLayerer",1374),E(1380,1,Wr,TFe),f.pg=function(t){return c(t,37),Kn(Kn(Kn(new yr,(ts(),Af),(os(),g3)),Zd,Qv),Oc,Gv)},f.If=function(t,n){Ttn(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,Zn,r$),f.Le=function(t,n){return eIt(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,Q5e),f.eg=function(t,n,i,r,o,a){},f.tg=function(t,n,i){return Irt(this,t,n,i)},f.dg=function(){this.g=Ce(Sx,Plt,30,this.d,15,1),this.f=Ce(Sx,Plt,30,this.d,15,1)},f.fg=function(t,n){this.e[t]=Ce(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(Xe(r[t][n].j,i),12).p=this.d++},f.b=0,f.c=0,f.d=0,M(ll,"AbstractBarycenterPortDistributor",411),E(1680,1,Zn,vDe),f.Le=function(t,n){return DFt(this.a,c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(ll,"AbstractBarycenterPortDistributor/lambda$0$Type",1680),E(823,1,SC,zme),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?xet(this,t):(Cet(this,t,r),iot(this,t,n)),t.c.length>1&&(it(nt($(Jr((pt(0,t.c.length),c(t.c[0],9))),(We(),YS))))?iit(t,this.d,c(this,667)):(Mt(),Rr(t,this.d)),zXe(this.e,t))},f.jg=function(t,n,i,r){var o,a,d,b,v,k,T;for(n!=Uqe(i,t.length)&&(a=t[n-(i?1:-1)],hbe(this.f,a,i?(Gs(),tl):(Gs(),Vl))),o=t[n][0],T=!r||o.k==(Wt(),Ar),k=vf(t[n]),this.ug(k,T,!1,i),d=0,v=new J(k);v.a<v.c.c.length;)b=c(U(v),9),t[n][d++]=b;return!1},f.kg=function(t,n){var i,r,o,a,d;for(d=Uqe(n,t.length),a=vf(t[d]),this.ug(a,!1,!0,n),i=0,o=new J(a);o.a<o.c.c.length;)r=c(U(o),9),t[d][i++]=r;return!1},M(ll,"BarycenterHeuristic",823),E(665,1,{665:1},kDe),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 hmt=M(ll,"BarycenterHeuristic/BarycenterState",665);E(1859,1,Zn,xDe),f.Le=function(t,n){return CGt(this.a,c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(ll,"BarycenterHeuristic/lambda$0$Type",1859),E(822,1,SC,xve),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]=Ce(hmt,{3:1,4:1,5:1,2096:1},665,n[t].length,0,1),this.b[t]=Ce(dmt,{3:1,4:1,5:1,2097:1},242,n[t].length,0,1)},f.gg=function(t,n,i){nZe(this,i[t][n],!0)},f.c=!1,M(ll,"ForsterConstraintResolver",822),E(242,1,{242:1},TGe,Qst),f.Ib=function(){var t,n;for(n=new v0,n.a+="[",t=0;t<this.d.length;t++)ti(n,xZe(this.d[t])),mh(this.g,this.d[0]).a!=null&&ti(ti((n.a+="<",n),OTt(mh(this.g,this.d[0]).a)),">"),t<this.d.length-1&&(n.a+=Yc);return(n.a+="]",n).a},f.a=0,f.c=0,f.f=0;var dmt=M(ll,"ForsterConstraintResolver/ConstraintGroup",242);E(1854,1,un,yDe),f.Ad=function(t){nZe(this.a,c(t,9),!1)},M(ll,"ForsterConstraintResolver/lambda$0$Type",1854),E(221,1,{221:1,223:1},eot),f.eg=function(t,n,i,r,o,a){},f.fg=function(t,n){},f.dg=function(){this.r=Ce(Hn,li,30,this.n,15,1)},f.gg=function(t,n,i){var r,o;o=i[t][n],r=o.e,r&&Ue(this.b,r)},f.hg=function(t,n,i,r){++this.n},f.Ib=function(){return sot(this.e,new Tr)},f.g=!1,f.i=!1,f.n=0,f.s=!1,M(ll,"GraphInfoHolder",221),E(1892,1,SC,v8),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?Gee(this.a,t[n-1],t[n]):!i&&n<t.length-1?Gee(this.a,t[n],t[n+1]):$te(this.a,t[n],i?(Ve(),Zt):(Ve(),sn)),QWt(this,t,n,i)},f.dg=function(){this.d=Ce(Hn,li,30,this.c,15,1),this.a=new V_(this.d)},f.gg=function(t,n,i){var r;r=i[t][n],this.c+=r.j.c.length},f.c=0,M(ll,"GreedyPortDistributor",1892),E(1393,1,Wr,dz),f.pg=function(t){return LBt(c(t,37))},f.If=function(t,n){stn(c(t,37),n)};var gmt;M(ll,"InteractiveCrossingMinimizer",1393),E(1394,1,Zn,jDe),f.Le=function(t,n){return oGt(this,c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(ll,"InteractiveCrossingMinimizer/1",1394),E(456,1,{456:1,86:1,43:1},Xz),f.pg=function(t){var n;return c(t,37),n=UF(pmt),Kn(n,(ts(),Oc),(os(),XU)),n},f.If=function(t,n){uYt(this,c(t,37),n)},f.e=0;var pmt;M(ll,"LayerSweepCrossingMinimizer",456),E(1390,1,un,SDe),f.Ad=function(t){eZt(this.a,c(t,221))},M(ll,"LayerSweepCrossingMinimizer/0methodref$compareDifferentRandomizedLayouts$Type",1390),E(1391,1,un,TDe),f.Ad=function(t){EBt(this.a,c(t,221))},M(ll,"LayerSweepCrossingMinimizer/1methodref$minimizeCrossingsNoCounter$Type",1391),E(1392,1,un,CDe),f.Ad=function(t){kst(this.a,c(t,221))},M(ll,"LayerSweepCrossingMinimizer/2methodref$minimizeCrossingsWithCounter$Type",1392),E(409,23,{3:1,34:1,23:1,409:1},CF);var IP,HJ,TE,GJ,mmt=vn(ll,"LayerSweepCrossingMinimizer/CrossMinType",409,Sn,qLt,XEt),bmt;E(1389,1,Wn,DA),f.Mb=function(t){return awe(),c(t,26).a.c.length==0},M(ll,"LayerSweepCrossingMinimizer/lambda$0$Type",1389),E(1856,1,SC,oQe),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]=Ce(wmt,{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,br(this.b[t],n,new XO)},M(ll,"LayerSweepTypeDecider",1856),E(666,1,{666:1},XO),f.Ib=function(){return"NodeInfo [connectedEdges="+this.a+", hierarchicalInfluence="+this.b+", randomInfluence="+this.c+"]"},f.a=0,f.b=0,f.c=0;var wmt=M(ll,"LayerSweepTypeDecider/NodeInfo",666);E(1857,1,hd,A5),f.Lb=function(t){return VT(new xh(c(t,12).b))},f.Fb=function(t){return this===t},f.Mb=function(t){return VT(new xh(c(t,12).b))},M(ll,"LayerSweepTypeDecider/lambda$0$Type",1857),E(1858,1,hd,N5),f.Lb=function(t){return VT(new xh(c(t,12).b))},f.Fb=function(t){return this===t},f.Mb=function(t){return VT(new xh(c(t,12).b))},M(ll,"LayerSweepTypeDecider/lambda$1$Type",1858),E(1893,411,Q5e,AIe),f.sg=function(t,n,i){var r,o,a,d,b,v,k,T,A;switch(k=this.g,i.g){case 1:{for(r=0,o=0,v=new J(t.j);v.a<v.c.c.length;)d=c(U(v),12),d.e.c.length!=0&&(++r,d.j==(Ve(),Yt)&&++o);for(a=n+o,A=n+r,b=aw(t,(Gs(),Vl)).Jc();b.Ob();)d=c(b.Pb(),12),d.j==(Ve(),Yt)?(k[d.p]=a,--a):(k[d.p]=A,--A);return r}case 2:{for(T=0,b=aw(t,(Gs(),tl)).Jc();b.Ob();)d=c(b.Pb(),12),++T,k[d.p]=n+T;return T}default:throw K(new d_)}},M(ll,"LayerTotalPortDistributor",1893),E(1861,1,SC,NGe),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=vf(t[n]),Gen(this,o,i?n-1:n+1),Mt(),Rr(o,this.b),a=0,b=new J(o);b.a<b.c.c.length;)d=c(U(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=vf(t[i]),b=new J(r);b.a<b.c.c.length;)a=c(U(b),9),_e(a,($e(),S3),hee(this.a));for(Mt(),Rr(r,this.b),o=0,d=new J(r);d.a<d.c.c.length;)a=c(U(d),9),t[i][o++]=a,_e(a,($e(),S3),o);return!1},M(ll,"MedianHeuristic",1861),E(1862,1,Zn,sK),f.Le=function(t,n){return LJt(c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(ll,"MedianHeuristic/lambda$0$Type",1862),E(667,823,{667:1,223:1},aXe),f.ug=function(t,n,i,r){i?xet(this,t):(Cet(this,t,r),iot(this,t,n)),t.c.length>1&&(it(nt($(Jr((pt(0,t.c.length),c(t.c[0],9))),(We(),YS))))?iit(t,this.d,this):(Mt(),Rr(t,this.d)),it(nt($(Jr((pt(0,t.c.length),c(t.c[0],9))),YS)))||zXe(this.e,t))},M(ll,"ModelOrderBarycenterHeuristic",667),E(1860,1,Zn,EDe),f.Le=function(t,n){return yZt(this.a,c(t,9),c(n,9))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(ll,"ModelOrderBarycenterHeuristic/lambda$0$Type",1860),E(1395,1,Wr,WN),f.pg=function(t){var n;return c(t,37),n=UF(vmt),Kn(n,(ts(),Oc),(os(),XU)),n},f.If=function(t,n){l_t((c(t,37),n))};var vmt;M(ll,"NoCrossingMinimizer",1395),E(803,411,Q5e,Q1e),f.sg=function(t,n,i){var r,o,a,d,b,v,k,T,A,L,R;switch(A=this.g,i.g){case 1:{for(o=0,a=0,T=new J(t.j);T.a<T.c.c.length;)v=c(U(T),12),v.e.c.length!=0&&(++o,v.j==(Ve(),Yt)&&++a);for(r=1/(o+1),d=n+a*r,R=n+1-r,k=aw(t,(Gs(),Vl)).Jc();k.Ob();)v=c(k.Pb(),12),v.j==(Ve(),Yt)?(A[v.p]=d,d-=r):(A[v.p]=R,R-=r);break}case 2:{for(b=0,T=new J(t.j);T.a<T.c.c.length;)v=c(U(T),12),v.g.c.length==0||++b;for(r=1/(b+1),L=n+r,k=aw(t,(Gs(),tl)).Jc();k.Ob();)v=c(k.Pb(),12),A[v.p]=L,L+=r;break}default:throw K(new Ht("Port type is undefined"))}return 1},M(ll,"NodeRelativePortDistributor",803),E(815,1,{},dHe,ott),M(ll,"SweepCopy",815),E(1855,1,SC,BYe),f.fg=function(t,n){},f.dg=function(){var t;t=Ce(Hn,li,30,this.f,15,1),this.d=new IDe(t),this.a=new V_(t)},f.eg=function(t,n,i,r,o,a){var d;d=c(Xe(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==(Wt(),$c)},f.hg=function(t,n,i,r){var o;o=c(Xe(r[t][n].j,i),12),o.p=this.f++,o.g.c.length+o.e.c.length>1&&(o.j==(Ve(),sn)?this.b[t]=!0:o.j==Zt&&t>0&&(this.b[t-1]=!0))},f.f=0,M(Kd,"AllCrossingsCounter",1855),E(590,1,{},qH),f.b=0,f.d=0,M(Kd,"BinaryIndexedTree",590),E(523,1,{},V_);var p9e,QJ;M(Kd,"CrossingsCounter",523),E(1929,1,Zn,MDe),f.Le=function(t,n){return PAt(this.a,c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Kd,"CrossingsCounter/lambda$0$Type",1929),E(1930,1,Zn,ADe),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(Kd,"CrossingsCounter/lambda$1$Type",1930),E(1931,1,Zn,NDe),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(Kd,"CrossingsCounter/lambda$2$Type",1931),E(1932,1,Zn,_De),f.Le=function(t,n){return $At(this.a,c(t,12),c(n,12))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Kd,"CrossingsCounter/lambda$3$Type",1932),E(1933,1,un,DDe),f.Ad=function(t){RIt(this.a,c(t,12))},M(Kd,"CrossingsCounter/lambda$4$Type",1933),E(1934,1,Wn,LDe),f.Mb=function(t){return wTt(this.a,c(t,12))},M(Kd,"CrossingsCounter/lambda$5$Type",1934),E(1935,1,un,PDe),f.Ad=function(t){Z$e(this,t)},M(Kd,"CrossingsCounter/lambda$6$Type",1935),E(1936,1,un,M$e),f.Ad=function(t){var n;V6(),N0(this.b,(n=this.a,c(t,12),n))},M(Kd,"CrossingsCounter/lambda$7$Type",1936),E(831,1,hd,IA),f.Lb=function(t){return V6(),Oi(c(t,12),($e(),Wl))},f.Fb=function(t){return this===t},f.Mb=function(t){return V6(),Oi(c(t,12),($e(),Wl))},M(Kd,"CrossingsCounter/lambda$8$Type",831),E(1928,1,{},IDe),M(Kd,"HyperedgeCrossingsCounter",1928),E(470,1,{34:1,470:1},EFe),f.Dd=function(t){return bFt(this,c(t,470))},f.b=0,f.c=0,f.e=0,f.f=0;var Bin=M(Kd,"HyperedgeCrossingsCounter/Hyperedge",470);E(371,1,{34:1,371:1},Bq),f.Dd=function(t){return mWt(this,c(t,371))},f.b=0,f.c=0;var xmt=M(Kd,"HyperedgeCrossingsCounter/HyperedgeCorner",371);E(522,23,{3:1,34:1,23:1,522:1},Cge);var CE,EE,ymt=vn(Kd,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",522,Sn,F_t,KEt),kmt;E(1397,1,Wr,zK),f.pg=function(t){return c($(c(t,37),($e(),Bc)),24).Gc((Qs(),Ma))?Omt:null},f.If=function(t,n){GHt(this,c(t,37),n)};var Omt;M(Ws,"InteractiveNodePlacer",1397),E(1398,1,Wr,mz),f.pg=function(t){return c($(c(t,37),($e(),Bc)),24).Gc((Qs(),Ma))?jmt:null},f.If=function(t,n){Cqt(this,c(t,37),n)};var jmt,UJ,JJ;M(Ws,"LinearSegmentsNodePlacer",1398),E(264,1,{34:1,264:1},j1e),f.Dd=function(t){return N8t(this,c(t,264))},f.Fb=function(t){var n;return he(t,264)?(n=c(t,264),this.b==n.b):!1},f.Hb=function(){return this.b},f.Ib=function(){return"ls"+Ch(this.e)},f.a=0,f.b=0,f.c=-1,f.d=-1,f.g=0;var Smt=M(Ws,"LinearSegmentsNodePlacer/LinearSegment",264);E(1400,1,Wr,aHe),f.pg=function(t){return c($(c(t,37),($e(),Bc)),24).Gc((Qs(),Ma))?Tmt:null},f.If=function(t,n){Qnn(this,c(t,37),n)},f.b=0,f.g=0;var Tmt;M(Ws,"NetworkSimplexPlacer",1400),E(1419,1,Zn,s$),f.Le=function(t,n){return pc(c(t,15).a,c(n,15).a)},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Ws,"NetworkSimplexPlacer/0methodref$compare$Type",1419),E(1421,1,Zn,ty),f.Le=function(t,n){return pc(c(t,15).a,c(n,15).a)},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Ws,"NetworkSimplexPlacer/1methodref$compare$Type",1421),E(651,1,{651:1},T$e);var zin=M(Ws,"NetworkSimplexPlacer/EdgeRep",651);E(410,1,{410:1},dme),f.b=!1;var Fin=M(Ws,"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},BPe),M(Ws,"NetworkSimplexPlacer/Path",504),E(1401,1,{},LA),f.Kb=function(t){return c(t,17).d.i.k},M(Ws,"NetworkSimplexPlacer/Path/lambda$0$Type",1401),E(1402,1,Wn,oK),f.Mb=function(t){return c(t,252)==(Wt(),Er)},M(Ws,"NetworkSimplexPlacer/Path/lambda$1$Type",1402),E(1403,1,{},b8),f.Kb=function(t){return c(t,17).d.i},M(Ws,"NetworkSimplexPlacer/Path/lambda$2$Type",1403),E(1404,1,Wn,RDe),f.Mb=function(t){return fFe(IYe(c(t,9)))},M(Ws,"NetworkSimplexPlacer/Path/lambda$3$Type",1404),E(1405,1,Wn,o$),f.Mb=function(t){return kAt(c(t,12))},M(Ws,"NetworkSimplexPlacer/lambda$0$Type",1405),E(1406,1,un,C$e),f.Ad=function(t){l7t(this.a,this.b,c(t,12))},M(Ws,"NetworkSimplexPlacer/lambda$1$Type",1406),E(1415,1,un,$De),f.Ad=function(t){nJt(this.a,c(t,17))},M(Ws,"NetworkSimplexPlacer/lambda$10$Type",1415),E(1416,1,{},_5),f.Kb=function(t){return Bu(),new Tt(null,new Ct(c(t,26).a,16))},M(Ws,"NetworkSimplexPlacer/lambda$11$Type",1416),E(1417,1,un,BDe),f.Ad=function(t){BXt(this.a,c(t,9))},M(Ws,"NetworkSimplexPlacer/lambda$12$Type",1417),E(1418,1,{},PA),f.Kb=function(t){return Bu(),ze(c(t,126).e)},M(Ws,"NetworkSimplexPlacer/lambda$13$Type",1418),E(1420,1,{},w8),f.Kb=function(t){return Bu(),ze(c(t,126).e)},M(Ws,"NetworkSimplexPlacer/lambda$15$Type",1420),E(1422,1,Wn,c$),f.Mb=function(t){return Bu(),c(t,410).c.k==(Wt(),ar)},M(Ws,"NetworkSimplexPlacer/lambda$17$Type",1422),E(1423,1,Wn,ny),f.Mb=function(t){return Bu(),c(t,410).c.j.c.length>1},M(Ws,"NetworkSimplexPlacer/lambda$18$Type",1423),E(1424,1,un,fGe),f.Ad=function(t){zzt(this.c,this.b,this.d,this.a,c(t,410))},f.c=0,f.d=0,M(Ws,"NetworkSimplexPlacer/lambda$19$Type",1424),E(1407,1,{},iy),f.Kb=function(t){return Bu(),new Tt(null,new Ct(c(t,26).a,16))},M(Ws,"NetworkSimplexPlacer/lambda$2$Type",1407),E(1425,1,un,zDe),f.Ad=function(t){h7t(this.a,c(t,12))},f.a=0,M(Ws,"NetworkSimplexPlacer/lambda$20$Type",1425),E(1426,1,{},l$),f.Kb=function(t){return Bu(),new Tt(null,new Ct(c(t,26).a,16))},M(Ws,"NetworkSimplexPlacer/lambda$21$Type",1426),E(1427,1,un,FDe),f.Ad=function(t){v7t(this.a,c(t,9))},M(Ws,"NetworkSimplexPlacer/lambda$22$Type",1427),E(1428,1,Wn,u$),f.Mb=function(t){return fFe(t)},M(Ws,"NetworkSimplexPlacer/lambda$23$Type",1428),E(1429,1,{},D5),f.Kb=function(t){return Bu(),new Tt(null,new Ct(c(t,26).a,16))},M(Ws,"NetworkSimplexPlacer/lambda$24$Type",1429),E(1430,1,Wn,qDe),f.Mb=function(t){return TTt(this.a,c(t,9))},M(Ws,"NetworkSimplexPlacer/lambda$25$Type",1430),E(1431,1,un,E$e),f.Ad=function(t){rUt(this.a,this.b,c(t,9))},M(Ws,"NetworkSimplexPlacer/lambda$26$Type",1431),E(1432,1,Wn,KO),f.Mb=function(t){return Bu(),!vs(c(t,17))},M(Ws,"NetworkSimplexPlacer/lambda$27$Type",1432),E(1433,1,Wn,x8),f.Mb=function(t){return Bu(),!vs(c(t,17))},M(Ws,"NetworkSimplexPlacer/lambda$28$Type",1433),E(1434,1,{},HDe),f.Te=function(t,n){return f7t(this.a,c(t,26),c(n,26))},M(Ws,"NetworkSimplexPlacer/lambda$29$Type",1434),E(1408,1,{},YO),f.Kb=function(t){return Bu(),new Tt(null,new nv(new Gt(Xt(Fi(c(t,9)).a.Jc(),new z))))},M(Ws,"NetworkSimplexPlacer/lambda$3$Type",1408),E(1409,1,Wn,y8),f.Mb=function(t){return Bu(),TLt(c(t,17))},M(Ws,"NetworkSimplexPlacer/lambda$4$Type",1409),E(1410,1,un,GDe),f.Ad=function(t){VYt(this.a,c(t,17))},M(Ws,"NetworkSimplexPlacer/lambda$5$Type",1410),E(1411,1,{},a$),f.Kb=function(t){return Bu(),new Tt(null,new Ct(c(t,26).a,16))},M(Ws,"NetworkSimplexPlacer/lambda$6$Type",1411),E(1412,1,Wn,ry),f.Mb=function(t){return Bu(),c(t,9).k==(Wt(),ar)},M(Ws,"NetworkSimplexPlacer/lambda$7$Type",1412),E(1413,1,{},f$),f.Kb=function(t){return Bu(),new Tt(null,new nv(new Gt(Xt(sd(c(t,9)).a.Jc(),new z))))},M(Ws,"NetworkSimplexPlacer/lambda$8$Type",1413),E(1414,1,Wn,j2),f.Mb=function(t){return Bu(),xAt(c(t,17))},M(Ws,"NetworkSimplexPlacer/lambda$9$Type",1414),E(1396,1,Wr,$K),f.pg=function(t){return c($(c(t,37),($e(),Bc)),24).Gc((Qs(),Ma))?Cmt:null},f.If=function(t,n){EZt(c(t,37),n)};var Cmt;M(Ws,"SimpleNodePlacer",1396),E(188,1,{188:1},Xy),f.Ib=function(){var t;return t="",this.c==(td(),Gw)?t+=wk:this.c==Yg&&(t+=bk),this.o==(bh(),Hm)?t+=Wre:this.o==Ph?t+="UP":t+="BALANCED",t},M(K0,"BKAlignedLayout",188),E(513,23,{3:1,34:1,23:1,513:1},Sge);var Yg,Gw,Emt=vn(K0,"BKAlignedLayout/HDirection",513,Sn,B_t,YEt),Mmt;E(512,23,{3:1,34:1,23:1,512:1},Tge);var Hm,Ph,Amt=vn(K0,"BKAlignedLayout/VDirection",512,Sn,$_t,ZEt),Nmt;E(1681,1,{},A$e),M(K0,"BKAligner",1681),E(1684,1,{},uet),M(K0,"BKCompactor",1684),E(659,1,{659:1},RA),f.a=0,M(K0,"BKCompactor/ClassEdge",659),E(459,1,{459:1},_Pe),f.a=null,f.b=0,M(K0,"BKCompactor/ClassNode",459),E(1399,1,Wr,V$e),f.pg=function(t){return c($(c(t,37),($e(),Bc)),24).Gc((Qs(),Ma))?_mt:null},f.If=function(t,n){lin(this,c(t,37),n)},f.d=!1;var _mt;M(K0,"BKNodePlacer",1399),E(1682,1,{},$A),f.d=0,M(K0,"NeighborhoodInformation",1682),E(1683,1,Zn,QDe),f.Le=function(t,n){return KIt(this,c(t,49),c(n,49))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(K0,"NeighborhoodInformation/NeighborComparator",1683),E(816,1,{}),M(K0,"ThresholdStrategy",816),E(1812,816,{},LPe),f.vg=function(t,n,i){return this.a.o==(bh(),Ph)?or:Gr},f.wg=function(){},M(K0,"ThresholdStrategy/NullThresholdStrategy",1812),E(583,1,{583:1},L$e),f.c=!1,f.d=!1,M(K0,"ThresholdStrategy/Postprocessable",583),E(1813,816,{},PPe),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==(td(),Gw)?(o&&(a=Xie(this,n,!0)),!isNaN(a)&&!isFinite(a)&&r&&(a=Xie(this,i,!1))):(o&&(a=Xie(this,n,!0)),!isNaN(a)&&!isFinite(a)&&r&&(a=Xie(this,i,!1))),a):t},f.wg=function(){for(var t,n,i,r,o;this.d.b!=0;)o=c(VGe(this.d),583),r=Yrt(this,o),r.a&&(t=r.a,i=it(this.a.f[this.a.g[o.b.p].p]),!(!i&&!vs(t)&&t.c.i.c==t.d.i.c)&&(n=Knt(this,o),n||FBe(this.e,o)));for(;this.e.a.c.length!=0;)Knt(this,c(Iwe(this.e),583))},M(K0,"ThresholdStrategy/SimpleThresholdStrategy",1813),E(642,1,{642:1,173:1,177:1},S2),f.bg=function(){return RXe(this)},f.og=function(){return RXe(this)};var due;M(Jse,"EdgeRouterFactory",642),E(1462,1,Wr,FK),f.pg=function(t){return mXt(c(t,37))},f.If=function(t,n){RZt(c(t,37),n)};var Dmt,Lmt,Pmt,Imt,Rmt,m9e,$mt,Bmt;M(Jse,"OrthogonalEdgeRouter",1462),E(1455,1,Wr,W$e),f.pg=function(t){return ZHt(c(t,37))},f.If=function(t,n){cnn(this,c(t,37),n)};var zmt,Fmt,qmt,Hmt,RP,Gmt;M(Jse,"PolylineEdgeRouter",1455),E(1456,1,hd,ZO),f.Lb=function(t){return dwe(c(t,9))},f.Fb=function(t){return this===t},f.Mb=function(t){return dwe(c(t,9))},M(Jse,"PolylineEdgeRouter/1",1456),E(1868,1,Wn,BA),f.Mb=function(t){return c(t,135).c==(Xf(),lp)},M(nh,"HyperEdgeCycleDetector/lambda$0$Type",1868),E(1869,1,{},zA),f.Xe=function(t){return c(t,135).d},M(nh,"HyperEdgeCycleDetector/lambda$1$Type",1869),E(1870,1,Wn,e6),f.Mb=function(t){return c(t,135).c==(Xf(),lp)},M(nh,"HyperEdgeCycleDetector/lambda$2$Type",1870),E(1871,1,{},t6),f.Xe=function(t){return c(t,135).d},M(nh,"HyperEdgeCycleDetector/lambda$3$Type",1871),E(1872,1,{},h$),f.Xe=function(t){return c(t,135).d},M(nh,"HyperEdgeCycleDetector/lambda$4$Type",1872),E(1873,1,{},T2),f.Xe=function(t){return c(t,135).d},M(nh,"HyperEdgeCycleDetector/lambda$5$Type",1873),E(117,1,{34:1,117:1},ID),f.Dd=function(t){return A8t(this,c(t,117))},f.Fb=function(t){var n;return he(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 Iu("{"),r=new J(this.n);r.a<r.c.c.length;)i=c(U(r),12),n=eL(i.i),n==null&&(n="n"+JFe(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(nh,"HyperEdgeSegment",117),E(135,1,{135:1},rm),f.Ib=function(){return this.a+"->"+this.b+" ("+V7t(this.c)+")"},f.d=0,M(nh,"HyperEdgeSegmentDependency",135),E(519,23,{3:1,34:1,23:1,519:1},Ege);var lp,cx,Qmt=vn(nh,"HyperEdgeSegmentDependency/DependencyType",519,Sn,z_t,eMt),Umt;E(1874,1,{},UDe),M(nh,"HyperEdgeSegmentSplitter",1874),E(1875,1,{},_Ie),f.a=0,f.b=0,M(nh,"HyperEdgeSegmentSplitter/AreaRating",1875),E(341,1,{341:1},YZ),f.a=0,f.b=0,f.c=0,M(nh,"HyperEdgeSegmentSplitter/FreeArea",341),E(1876,1,Zn,d$),f.Le=function(t,n){return UCt(c(t,117),c(n,117))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(nh,"HyperEdgeSegmentSplitter/lambda$0$Type",1876),E(1877,1,un,hGe),f.Ad=function(t){pPt(this.a,this.d,this.c,this.b,c(t,117))},f.b=0,M(nh,"HyperEdgeSegmentSplitter/lambda$1$Type",1877),E(1878,1,{},L5),f.Kb=function(t){return new Tt(null,new Ct(c(t,117).e,16))},M(nh,"HyperEdgeSegmentSplitter/lambda$2$Type",1878),E(1879,1,{},k8),f.Kb=function(t){return new Tt(null,new Ct(c(t,117).j,16))},M(nh,"HyperEdgeSegmentSplitter/lambda$3$Type",1879),E(1880,1,{},g$),f.We=function(t){return ge(be(t))},M(nh,"HyperEdgeSegmentSplitter/lambda$4$Type",1880),E(660,1,{},Oee),f.a=0,f.b=0,f.c=0,M(nh,"OrthogonalRoutingGenerator",660),E(1685,1,{},FA),f.Kb=function(t){return new Tt(null,new Ct(c(t,117).e,16))},M(nh,"OrthogonalRoutingGenerator/lambda$0$Type",1685),E(1686,1,{},qA),f.Kb=function(t){return new Tt(null,new Ct(c(t,117).j,16))},M(nh,"OrthogonalRoutingGenerator/lambda$1$Type",1686),E(668,1,{}),M(Wse,"BaseRoutingDirectionStrategy",668),E(1866,668,{},IPe),f.xg=function(t,n,i){var r,o,a,d,b,v,k,T,A,L,R,F,G;if(!(t.r&&!t.q))for(T=n+t.o*i,k=new J(t.n);k.a<k.c.c.length;)for(v=c(U(k),12),A=Lo(ee(Z(Vr,1),Ge,8,0,[v.i.n,v.n,v.a])).a,b=new J(v.g);b.a<b.c.c.length;)d=c(U(b),17),vs(d)||(F=d.d,G=Lo(ee(Z(Vr,1),Ge,8,0,[F.i.n,F.n,F.a])).a,p.Math.abs(A-G)>dd&&(a=T,o=t,r=new He(A,a),ni(d.a,r),bw(this,d,o,r,!1),L=t.r,L&&(R=ge(be(vc(L.e,0))),r=new He(R,a),ni(d.a,r),bw(this,d,o,r,!1),a=n+L.o*i,o=L,r=new He(R,a),ni(d.a,r),bw(this,d,o,r,!1)),r=new He(G,a),ni(d.a,r),bw(this,d,o,r,!1)))},f.yg=function(t){return t.i.n.a+t.n.a+t.a.a},f.zg=function(){return Ve(),wn},f.Ag=function(){return Ve(),Yt},M(Wse,"NorthToSouthRoutingStrategy",1866),E(1867,668,{},RPe),f.xg=function(t,n,i){var r,o,a,d,b,v,k,T,A,L,R,F,G;if(!(t.r&&!t.q))for(T=n-t.o*i,k=new J(t.n);k.a<k.c.c.length;)for(v=c(U(k),12),A=Lo(ee(Z(Vr,1),Ge,8,0,[v.i.n,v.n,v.a])).a,b=new J(v.g);b.a<b.c.c.length;)d=c(U(b),17),vs(d)||(F=d.d,G=Lo(ee(Z(Vr,1),Ge,8,0,[F.i.n,F.n,F.a])).a,p.Math.abs(A-G)>dd&&(a=T,o=t,r=new He(A,a),ni(d.a,r),bw(this,d,o,r,!1),L=t.r,L&&(R=ge(be(vc(L.e,0))),r=new He(R,a),ni(d.a,r),bw(this,d,o,r,!1),a=n-L.o*i,o=L,r=new He(R,a),ni(d.a,r),bw(this,d,o,r,!1)),r=new He(G,a),ni(d.a,r),bw(this,d,o,r,!1)))},f.yg=function(t){return t.i.n.a+t.n.a+t.a.a},f.zg=function(){return Ve(),Yt},f.Ag=function(){return Ve(),wn},M(Wse,"SouthToNorthRoutingStrategy",1867),E(1865,668,{},$Pe),f.xg=function(t,n,i){var r,o,a,d,b,v,k,T,A,L,R,F,G;if(!(t.r&&!t.q))for(T=n+t.o*i,k=new J(t.n);k.a<k.c.c.length;)for(v=c(U(k),12),A=Lo(ee(Z(Vr,1),Ge,8,0,[v.i.n,v.n,v.a])).b,b=new J(v.g);b.a<b.c.c.length;)d=c(U(b),17),vs(d)||(F=d.d,G=Lo(ee(Z(Vr,1),Ge,8,0,[F.i.n,F.n,F.a])).b,p.Math.abs(A-G)>dd&&(a=T,o=t,r=new He(a,A),ni(d.a,r),bw(this,d,o,r,!0),L=t.r,L&&(R=ge(be(vc(L.e,0))),r=new He(a,R),ni(d.a,r),bw(this,d,o,r,!0),a=n+L.o*i,o=L,r=new He(a,R),ni(d.a,r),bw(this,d,o,r,!0)),r=new He(a,G),ni(d.a,r),bw(this,d,o,r,!0)))},f.yg=function(t){return t.i.n.b+t.n.b+t.a.b},f.zg=function(){return Ve(),sn},f.Ag=function(){return Ve(),Zt},M(Wse,"WestToEastRoutingStrategy",1865),E(819,1,{},bye),f.Ib=function(){return Ch(this.a)},f.b=0,f.c=!1,f.d=!1,f.f=0,M(Rv,"NubSpline",819),E(415,1,{415:1},Lit,JGe),M(Rv,"NubSpline/PolarCP",415),E(1457,1,Wr,YZe),f.pg=function(t){return BGt(c(t,37))},f.If=function(t,n){Cnn(this,c(t,37),n)};var Jmt,Wmt,Vmt,Xmt,Kmt;M(Rv,"SplineEdgeRouter",1457),E(275,1,{275:1},fH),f.Ib=function(){return this.a+" ->("+this.c+") "+this.b},f.c=0,M(Rv,"SplineEdgeRouter/Dependency",275),E(457,23,{3:1,34:1,23:1,457:1},Mge);var up,A3,Ymt=vn(Rv,"SplineEdgeRouter/SideToProcess",457,Sn,q_t,nMt),Zmt;E(1458,1,Wn,d1),f.Mb=function(t){return iC(),!c(t,134).o},M(Rv,"SplineEdgeRouter/lambda$0$Type",1458),E(1459,1,{},mg),f.Xe=function(t){return iC(),c(t,134).v+1},M(Rv,"SplineEdgeRouter/lambda$1$Type",1459),E(1460,1,un,N$e),f.Ad=function(t){SAt(this.a,this.b,c(t,49))},M(Rv,"SplineEdgeRouter/lambda$2$Type",1460),E(1461,1,un,_$e),f.Ad=function(t){TAt(this.a,this.b,c(t,49))},M(Rv,"SplineEdgeRouter/lambda$3$Type",1461),E(134,1,{34:1,134:1},ztt,Oye),f.Dd=function(t){return _8t(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(Rv,"SplineSegment",134),E(460,1,{460:1},C2),f.a=0,f.b=!1,f.c=!1,f.d=!1,f.e=!1,f.f=0,M(Rv,"SplineSegment/EdgeInformation",460),E(1179,1,{},HA),M(U1,u3e,1179),E(1180,1,Zn,p$),f.Le=function(t,n){return pJt(c(t,121),c(n,121))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(U1,Uct,1180),E(1178,1,{},XIe),M(U1,"MrTree",1178),E(402,23,{3:1,34:1,23:1,402:1,173:1,177:1},EF),f.bg=function(){return ant(this)},f.og=function(){return ant(this)};var WJ,ME,AE,NE,b9e=vn(U1,"TreeLayoutPhases",402,Sn,VLt,iMt),ebt;E(1093,207,Tm,AFe),f.kf=function(t,n){var i,r,o,a,d,b,v,k;for(it(nt(Ae(t,(Wo(),q9e))))||f7((i=new M6((k0(),new xg(t))),i)),d=n.dh(Kse),d.Tg("build tGraph",1),b=(v=new pD,ic(v,t),_e(v,(Ii(),DE),t),k=new xn,eYt(t,v,k),bYt(t,v,k),v),d.Ug(),d=n.dh(Kse),d.Tg("Split graph",1),a=oYt(this.a,b),d.Ug(),o=new J(a);o.a<o.c.c.length;)r=c(U(o),121),DHt(this.b,r,n.dh(.5999999940395355/a.c.length));d=n.dh(Kse),d.Tg("Pack components",1),b=uin(a),d.Ug(),d=n.dh(Kse),d.Tg("Apply layout results",1),Wen(b),d.Ug()},M(U1,"TreeLayoutProvider",1093),E(1829,1,Jd,g1),f.Ic=function(t){ws(this,t)},f.Jc=function(){return Mt(),z6(),BS},M(U1,"TreeUtil/1",1829),E(1830,1,Jd,Du),f.Ic=function(t){ws(this,t)},f.Jc=function(){return Mt(),z6(),BS},M(U1,"TreeUtil/2",1830),E(1820,1,Wn,O8),f.Mb=function(t){return it(nt($(c(t,41),(Ii(),ap))))},M(U1,"TreeUtil/lambda$0$Type",1820),E(1826,1,Wn,JDe),f.Mb=function(t){return this.a.Gc(c(t,41))},M(U1,"TreeUtil/lambda$10$Type",1826),E(1827,1,{},WDe),f.Kb=function(t){return lPt(this.a,c(t,41))},M(U1,"TreeUtil/lambda$11$Type",1827),E(1828,1,Wn,D$e),f.Mb=function(t){return QIt(this.a,this.b,c(t,41))},M(U1,"TreeUtil/lambda$12$Type",1828),E(1821,1,Wn,VDe),f.Mb=function(t){return wzt(this.a,c(t,65))},M(U1,"TreeUtil/lambda$3$Type",1821),E(1822,1,Zn,E2),f.Le=function(t,n){return WCt(c(t,65),c(n,65))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(U1,"TreeUtil/lambda$4$Type",1822),E(1823,1,Wn,XDe),f.Mb=function(t){return vzt(this.a,c(t,65))},M(U1,"TreeUtil/lambda$7$Type",1823),E(1824,1,Zn,yb),f.Le=function(t,n){return JCt(c(t,65),c(n,65))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(U1,"TreeUtil/lambda$8$Type",1824),E(1825,1,{},Ts),f.Kb=function(t){return c(t,65).b},M(U1,"TreeUtil/lambda$9$Type",1825),E(497,151,{3:1,497:1,105:1,151:1}),f.g=0,M(MC,"TGraphElement",497),E(65,497,{3:1,65:1,497:1,105:1,151:1},mme),f.Ib=function(){return this.b&&this.c?om(this.b)+"->"+om(this.c):"e_"+zi(this)},M(MC,"TEdge",65),E(121,151,{3:1,121:1,105:1,151:1},pD),f.Ib=function(){var t,n,i,r,o;for(o=null,r=Ln(this.b,0);r.b!=r.d.c;)i=c(_n(r),41),o+=(i.c==null||i.c.length==0?"n_"+i.g:"n_"+i.c)+`
`;for(n=Ln(this.a,0);n.b!=n.d.c;)t=c(_n(n),65),o+=(t.b&&t.c?om(t.b)+"->"+om(t.c):"e_"+zi(t))+`
`;return o};var qin=M(MC,"TGraph",121);E(640,497,{3:1,497:1,640:1,105:1,151:1}),M(MC,"TShape",640),E(41,640,{3:1,497:1,41:1,640:1,105:1,151:1},nne),f.Ib=function(){return om(this)};var VJ=M(MC,"TNode",41);E(239,1,Jd,y1),f.Ic=function(t){ws(this,t)},f.Jc=function(){var t;return t=Ln(this.a.d,0),new dy(t)},M(MC,"TNode/2",239),E(335,1,ns,dy),f.Nb=function(t){ps(this,t)},f.Pb=function(){return c(_n(this.a),65).c},f.Ob=function(){return m_(this.a)},f.Qb=function(){Ate(this.a)},M(MC,"TNode/2/1",335),E(1910,1,Pi,Hc),f.If=function(t,n){iin(this,c(t,121),n)},M(Rc,"CompactionProcessor",1910),E(1911,1,Zn,KDe),f.Le=function(t,n){return m$t(this.a,c(t,41),c(n,41))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Rc,"CompactionProcessor/lambda$0$Type",1911),E(1912,1,Wn,P$e),f.Mb=function(t){return M_t(this.b,this.a,c(t,49))},f.a=0,f.b=0,M(Rc,"CompactionProcessor/lambda$1$Type",1912),E(1921,1,Zn,la),f.Le=function(t,n){return wNt(c(t,41),c(n,41))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Rc,"CompactionProcessor/lambda$10$Type",1921),E(1922,1,Zn,j8),f.Le=function(t,n){return R7t(c(t,41),c(n,41))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Rc,"CompactionProcessor/lambda$11$Type",1922),E(1923,1,Zn,P5),f.Le=function(t,n){return vNt(c(t,41),c(n,41))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Rc,"CompactionProcessor/lambda$12$Type",1923),E(1913,1,Wn,YDe),f.Mb=function(t){return O7t(this.a,c(t,49))},f.a=0,M(Rc,"CompactionProcessor/lambda$2$Type",1913),E(1914,1,Wn,ZDe),f.Mb=function(t){return j7t(this.a,c(t,49))},f.a=0,M(Rc,"CompactionProcessor/lambda$3$Type",1914),E(1915,1,Wn,sy),f.Mb=function(t){return c(t,41).c.indexOf(JQ)==-1},M(Rc,"CompactionProcessor/lambda$4$Type",1915),E(1916,1,{},eLe),f.Kb=function(t){return CLt(this.a,c(t,41))},f.a=0,M(Rc,"CompactionProcessor/lambda$5$Type",1916),E(1917,1,{},tLe),f.Kb=function(t){return IIt(this.a,c(t,41))},f.a=0,M(Rc,"CompactionProcessor/lambda$6$Type",1917),E(1918,1,Zn,nLe),f.Le=function(t,n){return QPt(this.a,c(t,243),c(n,243))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Rc,"CompactionProcessor/lambda$7$Type",1918),E(1919,1,Zn,iLe),f.Le=function(t,n){return UPt(this.a,c(t,41),c(n,41))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Rc,"CompactionProcessor/lambda$8$Type",1919),E(1920,1,Zn,S8),f.Le=function(t,n){return $7t(c(t,41),c(n,41))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Rc,"CompactionProcessor/lambda$9$Type",1920),E(1908,1,Pi,n6),f.If=function(t,n){XXt(c(t,121),n)},M(Rc,"DirectionProcessor",1908),E(W0,1,Pi,CFe),f.If=function(t,n){mYt(this,c(t,121),n)},M(Rc,"FanProcessor",W0),E(1263,1,Pi,I5),f.If=function(t,n){ert(c(t,121),n)},M(Rc,"GraphBoundsProcessor",1263),E(1264,1,{},cK),f.We=function(t){return c(t,41).e.a},M(Rc,"GraphBoundsProcessor/lambda$0$Type",1264),E(1265,1,{},gu),f.We=function(t){return c(t,41).e.b},M(Rc,"GraphBoundsProcessor/lambda$1$Type",1265),E(1266,1,{},GA),f.We=function(t){return rTt(c(t,41))},M(Rc,"GraphBoundsProcessor/lambda$2$Type",1266),E(1267,1,{},QA),f.We=function(t){return sTt(c(t,41))},M(Rc,"GraphBoundsProcessor/lambda$3$Type",1267),E(265,23,{3:1,34:1,23:1,265:1,177:1},zb),f.bg=function(){switch(this.g){case 0:return new tIe;case 1:return new CFe;case 2:return new eIe;case 3:return new JA;case 4:return new b$;case 8:return new m$;case 5:return new n6;case 6:return new Vh;case 7:return new Hc;case 9:return new I5;case 10:return new Lu;default:throw K(new Ht(tse+(this.f!=null?this.f:""+this.g)))}};var w9e,v9e,x9e,y9e,k9e,O9e,j9e,S9e,T9e,C9e,gue,Hin=vn(Rc,nse,265,Sn,_Xe,rMt),tbt;E(1907,1,Pi,m$),f.If=function(t,n){tnn(c(t,121),n)},M(Rc,"LevelCoordinatesProcessor",1907),E(1905,1,Pi,b$),f.If=function(t,n){xVt(this,c(t,121),n)},f.a=0,M(Rc,"LevelHeightProcessor",1905),E(1906,1,Jd,lK),f.Ic=function(t){ws(this,t)},f.Jc=function(){return Mt(),z6(),BS},M(Rc,"LevelHeightProcessor/1",1906),E(1901,1,Pi,eIe),f.If=function(t,n){DXt(this,c(t,121),n)},M(Rc,"LevelProcessor",1901),E(1902,1,Wn,UA),f.Mb=function(t){return it(nt($(c(t,41),(Ii(),ap))))},M(Rc,"LevelProcessor/lambda$0$Type",1902),E(1903,1,Pi,JA),f.If=function(t,n){SUt(this,c(t,121),n)},f.a=0,M(Rc,"NeighborsProcessor",1903),E(1904,1,Jd,WA),f.Ic=function(t){ws(this,t)},f.Jc=function(){return Mt(),z6(),BS},M(Rc,"NeighborsProcessor/1",1904),E(1909,1,Pi,Vh),f.If=function(t,n){gYt(this,c(t,121),n)},f.a=0,M(Rc,"NodePositionProcessor",1909),E(1899,1,Pi,tIe),f.If=function(t,n){ten(this,c(t,121),n)},M(Rc,"RootProcessor",1899),E(1924,1,Pi,Lu),f.If=function(t,n){uqt(c(t,121),n)},M(Rc,"Untreeifyer",1924),E(386,23,{3:1,34:1,23:1,386:1},uZ);var $P,pue,E9e,M9e=vn(ZL,"EdgeRoutingMode",386,Sn,FDt,sMt),nbt,BP,o9,mue,A9e,N9e,bue,wue,_9e,vue,D9e,xue,_E,yue,XJ,KJ,_f,oh,c9,DE,LE,Zg,L9e,ibt,kue,ap,zP,FP;E(854,1,Cf,qK),f.tf=function(t){gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,W5e),""),Glt),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(zt(),!1)),(Q0(),Ir)),cr),bt((jh(),Dt))))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,V5e),""),"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),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,X5e),""),"Tree Level"),"The index for the tree level the node is in"),ze(0)),Ss),Pr),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,K5e),""),Glt),"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"),ze(-1)),Ss),Pr),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Y5e),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),R9e),Vi),V9e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Z5e),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),P9e),Vi),M9e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,e4e),""),"Search Order"),"Which search order to use when computing a spanning tree."),I9e),Vi),K9e),bt(Dt)))),Aot((new R2,t))};var rbt,sbt,obt,P9e,cbt,lbt,I9e,ubt,abt,R9e;M(ZL,"MrTreeMetaDataProvider",854),E(999,1,Cf,R2),f.tf=function(t){Aot(t)};var fbt,$9e,B9e,Qw,z9e,F9e,Oue,hbt,dbt,gbt,pbt,mbt,bbt,wbt,q9e,H9e,G9e,vbt,N3,YJ,Q9e,xbt,U9e,jue,ybt,kbt,Obt,J9e,jbt,yd,W9e;M(ZL,"MrTreeOptions",999),E(Gg,1,{},T8),f.uf=function(){var t;return t=new AFe,t},f.vf=function(t){},M(ZL,"MrTreeOptions/MrtreeFactory",Gg),E(354,23,{3:1,34:1,23:1,354:1},MF);var Sue,ZJ,Tue,Cue,V9e=vn(ZL,"OrderWeighting",354,Sn,ULt,oMt),Sbt;E(430,23,{3:1,34:1,23:1,430:1},Age);var X9e,Eue,K9e=vn(ZL,"TreeifyingOrder",430,Sn,H_t,cMt),Tbt;E(1463,1,Wr,gz),f.pg=function(t){return c(t,121),Cbt},f.If=function(t,n){ZRt(this,c(t,121),n)};var Cbt;M("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1463),E(1464,1,Wr,JN),f.pg=function(t){return c(t,121),Ebt},f.If=function(t,n){RXt(this,c(t,121),n)};var Ebt;M(OS,"NodeOrderer",1464),E(1471,1,{},w$),f.rd=function(t){return Nqe(t)},M(OS,"NodeOrderer/0methodref$lambda$6$Type",1471),E(1465,1,Wn,v$),f.Mb=function(t){return Q4(),it(nt($(c(t,41),(Ii(),ap))))},M(OS,"NodeOrderer/lambda$0$Type",1465),E(1466,1,Wn,x$),f.Mb=function(t){return Q4(),c($(c(t,41),(Wo(),N3)),15).a<0},M(OS,"NodeOrderer/lambda$1$Type",1466),E(1467,1,Wn,sLe),f.Mb=function(t){return LRt(this.a,c(t,41))},M(OS,"NodeOrderer/lambda$2$Type",1467),E(1468,1,Wn,rLe),f.Mb=function(t){return SLt(this.a,c(t,41))},M(OS,"NodeOrderer/lambda$3$Type",1468),E(1469,1,Zn,y$),f.Le=function(t,n){return nRt(c(t,41),c(n,41))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(OS,"NodeOrderer/lambda$4$Type",1469),E(1470,1,Wn,k$),f.Mb=function(t){return Q4(),c($(c(t,41),(Ii(),wue)),15).a!=0},M(OS,"NodeOrderer/lambda$5$Type",1470),E(1472,1,Wr,VN),f.pg=function(t){return c(t,121),Mbt},f.If=function(t,n){HKt(this,c(t,121),n)},f.b=0;var Mbt;M("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1472),E(1473,1,Wr,HK),f.pg=function(t){return c(t,121),Abt},f.If=function(t,n){jKt(c(t,121),n)};var Abt,Gin=M(Mu,"EdgeRouter",1473);E(1475,1,Zn,C8),f.Le=function(t,n){return pc(c(t,15).a,c(n,15).a)},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Mu,"EdgeRouter/0methodref$compare$Type",1475),E(1480,1,{},VA),f.We=function(t){return ge(be(t))},M(Mu,"EdgeRouter/1methodref$doubleValue$Type",1480),E(1482,1,Zn,kb),f.Le=function(t,n){return Ci(ge(be(t)),ge(be(n)))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Mu,"EdgeRouter/2methodref$compare$Type",1482),E(1484,1,Zn,E8),f.Le=function(t,n){return Ci(ge(be(t)),ge(be(n)))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Mu,"EdgeRouter/3methodref$compare$Type",1484),E(1486,1,{},i6),f.We=function(t){return ge(be(t))},M(Mu,"EdgeRouter/4methodref$doubleValue$Type",1486),E(1488,1,Zn,XA),f.Le=function(t,n){return Ci(ge(be(t)),ge(be(n)))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Mu,"EdgeRouter/5methodref$compare$Type",1488),E(1490,1,Zn,O$),f.Le=function(t,n){return Ci(ge(be(t)),ge(be(n)))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Mu,"EdgeRouter/6methodref$compare$Type",1490),E(1474,1,{},j$),f.Kb=function(t){return D1(),c($(c(t,41),(Wo(),yd)),15)},M(Mu,"EdgeRouter/lambda$0$Type",1474),E(1485,1,{},KA),f.Kb=function(t){return X7t(c(t,41))},M(Mu,"EdgeRouter/lambda$11$Type",1485),E(1487,1,{},R$e),f.Kb=function(t){return OAt(this.b,this.a,c(t,41))},f.a=0,f.b=0,M(Mu,"EdgeRouter/lambda$13$Type",1487),E(1489,1,{},I$e),f.Kb=function(t){return K7t(this.b,this.a,c(t,41))},f.a=0,f.b=0,M(Mu,"EdgeRouter/lambda$15$Type",1489),E(1491,1,Zn,S$),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(Mu,"EdgeRouter/lambda$17$Type",1491),E(1492,1,Zn,uK),f.Le=function(t,n){return qFt(c(t,65),c(n,65))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Mu,"EdgeRouter/lambda$18$Type",1492),E(1493,1,Zn,T$),f.Le=function(t,n){return GFt(c(t,65),c(n,65))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Mu,"EdgeRouter/lambda$19$Type",1493),E(1476,1,Wn,oLe),f.Mb=function(t){return uDt(this.a,c(t,41))},f.a=0,M(Mu,"EdgeRouter/lambda$2$Type",1476),E(1494,1,Zn,C$),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(Mu,"EdgeRouter/lambda$20$Type",1494),E(1477,1,Zn,E$),f.Le=function(t,n){return dAt(c(t,41),c(n,41))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Mu,"EdgeRouter/lambda$3$Type",1477),E(1478,1,Zn,YA),f.Le=function(t,n){return gAt(c(t,41),c(n,41))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Mu,"EdgeRouter/lambda$4$Type",1478),E(1479,1,{},M$),f.Kb=function(t){return eCt(c(t,41))},M(Mu,"EdgeRouter/lambda$5$Type",1479),E(1481,1,{},$$e),f.Kb=function(t){return jAt(this.b,this.a,c(t,41))},f.a=0,f.b=0,M(Mu,"EdgeRouter/lambda$7$Type",1481),E(1483,1,{},B$e),f.Kb=function(t){return Z7t(this.b,this.a,c(t,41))},f.a=0,f.b=0,M(Mu,"EdgeRouter/lambda$9$Type",1483),E(669,1,{669:1},FZe),f.e=0,f.f=!1,f.g=!1,M(Mu,"MultiLevelEdgeNodeNodeGap",669),E(1881,1,Zn,A$),f.Le=function(t,n){return xDt(c(t,243),c(n,243))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Mu,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1881),E(1882,1,Zn,N$),f.Le=function(t,n){return yDt(c(t,243),c(n,243))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(Mu,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1882);var _3;E(490,23,{3:1,34:1,23:1,490:1,173:1,177:1},Nge),f.bg=function(){return MYe(this)},f.og=function(){return MYe(this)};var eW,D3,Y9e=vn(n4e,"RadialLayoutPhases",490,Sn,G_t,lMt),Nbt;E(1094,207,Tm,KIe),f.kf=function(t,n){var i,r,o,a,d,b;if(i=Ait(this,t),n.Tg("Radial layout",i.c.length),it(nt(Ae(t,(G0(),u8e))))||f7((r=new M6((k0(),new xg(t))),r)),b=qGt(t),ri(t,(My(),_3),b),!b)throw K(new Ht(Ult));for(o=ge(be(Ae(t,iW))),o==0&&(o=nnt(t)),ri(t,iW,o),d=new J(Ait(this,t));d.a<d.c.c.length;)a=c(U(d),43),a.If(t,n.dh(1));n.Ug()},M(n4e,"RadialLayoutProvider",1094),E(548,1,Zn,nF),f.Le=function(t,n){return dKt(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(n4e,"RadialUtil/lambda$0$Type",548),E(1361,1,Pi,_$),f.If=function(t,n){snn(c(t,19),n)},M(r4e,"CalculateGraphSize",1361),E(1362,1,Pi,D$),f.If=function(t,n){jZt(c(t,19))},M(r4e,"EdgeAngleCalculator",1362),E(365,23,{3:1,34:1,23:1,365:1,177:1},A_),f.bg=function(){switch(this.g){case 0:return new A8;case 1:return new aK;case 2:return new I$;case 3:return new _$;case 4:return new D$;default:throw K(new Ht(tse+(this.f!=null?this.f:""+this.g)))}};var Mue,Aue,Nue,_ue,Due,_bt=vn(r4e,nse,365,Sn,PPt,uMt),Dbt;E(648,1,{}),f.e=1,f.g=0,M(Yse,"AbstractRadiusExtensionCompaction",648),E(1832,648,{},cFe),f.Bg=function(t){var n,i,r,o,a,d,b,v,k;for(this.c=c(Ae(t,(My(),_3)),19),oY(this,this.c),this.d=Bne(c(Ae(t,(G0(),qP)),304)),v=c(Ae(t,Pue),15),v&&lT(this,v.a),b=be(Ae(t,(Pn(),lh))),fy(this,(Ft(b),b)),k=Ev(this.c),this.d&&this.d.Fg(k),MKt(this,k),d=new Qo(ee(Z(Nn,1),Wlt,19,0,[this.c])),i=0;i<2;i++)for(n=0;n<k.c.length;n++)o=new Qo(ee(Z(Nn,1),Wlt,19,0,[(pt(n,k.c.length),c(k.c[n],19))])),a=n<k.c.length-1?(pt(n+1,k.c.length),c(k.c[n+1],19)):(pt(0,k.c.length),c(k.c[0],19)),r=n==0?c(Xe(k,k.c.length-1),19):(pt(n-1,k.c.length),c(k.c[n-1],19)),Vet(this,(pt(n,k.c.length),c(k.c[n],19),d),r,a,o)},M(Yse,"AnnulusWedgeCompaction",1832),E(1359,1,Pi,aK),f.If=function(t,n){YRt(c(t,19),n)},M(Yse,"GeneralCompactor",1359),E(1831,648,{},L$),f.Bg=function(t){var n,i,r,o;i=c(Ae(t,(My(),_3)),19),this.f=i,this.b=Bne(c(Ae(t,(G0(),qP)),304)),o=c(Ae(t,Pue),15),o&&lT(this,o.a),r=be(Ae(t,(Pn(),lh))),fy(this,(Ft(r),r)),n=Ev(i),this.b&&this.b.Fg(n),Ntt(this,n)},f.a=0,M(Yse,"RadialCompaction",1831),E(1840,1,{},R5),f.Cg=function(t){var n,i,r,o,a,d;for(this.a=t,n=0,d=Ev(t),r=0,a=new J(d);a.a<a.c.c.length;)for(o=c(U(a),19),++r,i=r;i<d.c.length;i++)QYt(this,o,(pt(i,d.c.length),c(d.c[i],19)))&&(n+=1);return n},M(s4e,"CrossingMinimizationPosition",1840),E(1838,1,{},P$),f.Cg=function(t){var n,i,r,o,a,d,b,v,k,T,A,L,R;for(r=0,i=new Gt(Xt(B1(t).a.Jc(),new z));gn(i);)n=c(on(i),74),b=no(c(ae((!n.c&&(n.c=new Et(yn,n,5,8)),n.c),0),83)),k=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 us,A.a=k-o,A.b=T-a,d=new He(A.a,A.b),Fj(d,t.g,t.f),A.a-=d.a,A.b-=d.b,o=k-A.a,a=T-A.b,v=new He(A.a,A.b),Fj(v,b.g,b.f),A.a-=v.a,A.b-=v.b,k=o+A.a,T=a+A.b,L=k-o,R=T-a,r+=p.Math.sqrt(L*L+R*R);return r},M(s4e,"EdgeLengthOptimization",1838),E(1839,1,{},M8),f.Cg=function(t){var n,i,r,o,a,d,b,v,k,T,A;for(r=0,i=new Gt(Xt(B1(t).a.Jc(),new z));gn(i);)n=c(on(i),74),b=no(c(ae((!n.c&&(n.c=new Et(yn,n,5,8)),n.c),0),83)),v=b.i+b.g/2,k=b.j+b.f/2,o=c(Ae(b,(Pn(),Wk)),8),a=t.i+o.a+t.g/2,d=t.j+o.b+t.f,T=v-a,A=k-d,r+=p.Math.sqrt(T*T+A*A);return r},M(s4e,"EdgeLengthPositionOptimization",1839),E(1358,648,Pi,A8),f.If=function(t,n){BUt(this,c(t,19),n)},M("org.eclipse.elk.alg.radial.intermediate.overlaps","RadiusExtensionOverlapRemoval",1358),E(1360,1,Pi,I$),f.If=function(t,n){oNt(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},_ge);var Z9e,Lue,e8e=vn(AC,"AnnulusWedgeCriteria",431,Sn,Q_t,aMt),Lbt;E(387,23,{3:1,34:1,23:1,387:1},aZ);var tW,t8e,n8e,i8e=vn(AC,Vlt,387,Sn,qDt,fMt),Pbt;E(855,1,Cf,BK),f.tf=function(t){gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,o4e),""),"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."),(zt(),!1)),(Q0(),Ir)),cr),bt((jh(),Dt))))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,c4e),""),"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."),ze(0)),Ss),Pr),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,l4e),""),"Radius"),"The radius option can be used to set the initial radius for the radial layouter."),0),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,XQ),""),"Rotate"),"The rotate option determines whether a rotation of the layout should be performed."),!1),Ir),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,eoe),""),Xlt),"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."),r8e),Vi),i8e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,toe),""),"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."),ze(1)),Ss),Pr),bt(Dt)))),tr(t,toe,eoe,null),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,u4e),""),"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."),o8e),Vi),y8e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,a4e),""),"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."),c8e),Vi),e8e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,f4e),""),"Translation Optimization"),"Find the optimal translation of the nodes of the first radii according to this criteria. For example edge crossings can be minimized."),s8e),Vi),w8e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,noe),d4e),"Target Angle"),"The angle in radians that the layout should be rotated to after layout."),0),ls),Sr),bt(Dt)))),tr(t,noe,XQ,null),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,ioe),d4e),"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),cr),bt(Dt)))),tr(t,ioe,XQ,null),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,h4e),d4e),"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),cr),bt(Dt)))),Oot((new pz,t))};var Ibt,Rbt,$bt,r8e,Bbt,s8e,zbt,Fbt,qbt,Hbt,Gbt,Qbt,Ubt,o8e,Jbt,c8e;M(AC,"RadialMetaDataProvider",855),E(1001,1,Cf,pz),f.tf=function(t){Oot(t)};var l8e,Pue,Iue,Wbt,Vbt,Xbt,Kbt,u8e,a8e,nW,Ybt,Zbt,iW,f8e,h8e,d8e,Rue,qP,ewt,g8e;M(AC,"RadialOptions",1001),E(1002,1,{},ZA),f.uf=function(){var t;return t=new KIe,t},f.vf=function(t){},M(AC,"RadialOptions/RadialFactory",1002),E(355,23,{3:1,34:1,23:1,355:1},AF);var p8e,m8e,b8e,$ue,w8e=vn(AC,"RadialTranslationStrategy",355,Sn,JLt,hMt),twt;E(304,23,{3:1,34:1,23:1,304:1},fZ);var v8e,Bue,x8e,y8e=vn(AC,"SortingStrategy",304,Sn,VDt,dMt),nwt;E(1448,1,Wr,fK),f.pg=function(t){return c(t,19),null},f.If=function(t,n){sJt(this,c(t,19),n)},f.c=0,M("org.eclipse.elk.alg.radial.p1position","EadesRadial",1448),E(1836,1,{},R$),f.Dg=function(t){return OZe(t)},M(Klt,"AnnulusWedgeByLeafs",1836),E(1837,1,{},$$),f.Dg=function(t){return zet(this,t)},M(Klt,"AnnulusWedgeByNodeSpace",1837),E(1449,1,Wr,B$),f.pg=function(t){return c(t,19),null},f.If=function(t,n){yzt(this,c(t,19),n)},M("org.eclipse.elk.alg.radial.p2routing","StraightLineEdgeRouter",1449),E(818,1,{},N1e),f.Eg=function(t){},f.Fg=function(t){gPe(this,t)},M(g4e,"IDSorter",818),E(1835,1,Zn,z$),f.Le=function(t,n){return KRt(c(t,19),c(n,19))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(g4e,"IDSorter/lambda$0$Type",1835),E(1834,1,{},bXe),f.Eg=function(t){lUe(this,t)},f.Fg=function(t){var n;t.dc()||(this.e||(n=Jqe(c(t.Xb(0),19)),lUe(this,n)),gPe(this.e,t))},M(g4e,"PolarCoordinateSorter",1834),E(441,23,{3:1,34:1,23:1,441:1},hZ);var PE,rW,zue,k8e=vn(tut,"RectPackingLayoutPhases",441,Sn,WDt,gMt),iwt;E(1098,207,Tm,YIe),f.kf=function(t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt;if(n.Tg("Rectangle Packing",1),A=c(Ae(t,(Eh(),$E)),100),v=it(nt(Ae(t,Twt))),T=ge(be(Ae(t,BE))),vt=it(nt(Ae(t,I8e))),we=(!t.a&&(t.a=new Le(Nn,t,10,11)),t.a),it(nt(Ae(t,Wue)))||f7((o=new M6((k0(),new xg(t))),o)),wt=!1,vt&&we.i>=3)for(Me=c(ae(we,0),19),Ze=c(ae(we,1),19),a=0;a+2<we.i;)if(Ne=Me,Me=Ze,Ze=c(ae(we,a+2),19),Ne.f>=Me.f+Ze.f+T||Ze.f>=Ne.f+Me.f+T){wt=!0;break}else++a;else wt=!0;if(!wt){for(L=we.i,b=new ln(we);b.e!=b.i.gc();)d=c(fn(b),19),ri(d,(Pn(),ZP),ze(L)),--L;lst(t,new a4),n.Ug();return}for(i=(a7(this.a),$u(this.a,(hG(),PE),c(Ae(t,z8e),173)),$u(this.a,rW,c(Ae(t,L8e),173)),$u(this.a,zue,c(Ae(t,R8e),173)),Wge(this.a,(Pt=new yr,Kn(Pt,PE,(IG(),Hue)),Kn(Pt,rW,que),it(nt(Ae(t,_8e)))&&Kn(Pt,PE,Gue),it(nt(Ae(t,N8e)))&&Kn(Pt,PE,Fue),Pt)),dC(this.a,t)),k=1/i.c.length,F=new J(i);F.a<F.c.c.length;){if(R=c(U(F),43),n.Zg())return;R.If(t,n.dh(k))}for(Y=0,G=0,fe=new ln(we);fe.e!=fe.i.gc();)oe=c(fn(fe),19),Y=p.Math.max(Y,oe.i+oe.g),G=p.Math.max(G,oe.j+oe.f);Jve(t,new He(ge(be(Ae(t,(Qd(),Hk)))),ge(be(Ae(t,l9)))),new He(Y,G)),y$t(we,A),v||ww(t,ge(be(Ae(t,Hk)))+(A.b+A.c),ge(be(Ae(t,l9)))+(A.d+A.a),!1,!0),it(nt(Ae(t,Wue)))||f7((r=new M6((k0(),new xg(t))),r)),n.Ug()},M(tut,"RectPackingLayoutProvider",1098),E(1496,1,Pi,F$),f.If=function(t,n){SZt(c(t,19),n)},M(NC,"InteractiveNodeReorderer",1496),E(1497,1,Zn,eN),f.Le=function(t,n){return sBt(c(t,19),c(n,19))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(NC,"InteractiveNodeReorderer/lambda$0$Type",1497),E(406,23,{3:1,34:1,23:1,406:1,177:1},NF),f.bg=function(){switch(this.g){case 0:return new G$;case 1:return new F$;case 2:return new H$;case 3:return new q$}return null};var Fue,que,Hue,Gue,rwt=vn(NC,nse,406,Sn,WLt,pMt),swt;E(1499,1,Pi,q$),f.If=function(t,n){rFt(c(t,19),n)},M(NC,"MinSizePostProcessor",1499),E(1498,1,Pi,H$),f.If=function(t,n){cVt(c(t,19),n)},M(NC,"MinSizePreProcessor",1498),E(1688,1,Zn,tN),f.Le=function(t,n){return LTt(c(t,19),c(n,19))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(NC,"NodeSizeComparator",1688),E(1495,1,Pi,G$),f.If=function(t,n){NLt(c(t,19))},M(NC,"NodeSizeReorderer",1495);var IE,l9,Hk,owt,cwt,sW,Que,Uue,RE,oW,lx;E(388,23,{3:1,34:1,23:1,388:1},dZ);var O8e,j8e,Jue,S8e=vn(roe,"OptimizationGoal",388,Sn,HDt,mMt),lwt;E(857,1,Cf,wz),f.tf=function(t){gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,p4e),""),"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."),(zt(),!1)),(Q0(),Ir)),cr),bt((jh(),Dt))))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,m4e),""),"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."),ze(-1)),Ss),Pr),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,b4e),""),"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."),ze(-1)),Ss),Pr),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,w4e),""),"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),cr),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,v4e),""),"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),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,x4e),soe),"Width Approximation Strategy"),"Strategy for finding an initial width of the drawing."),M8e),Vi),H8e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,y4e),soe),"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),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,k4e),soe),"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."),E8e),Vi),S8e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,O4e),soe),"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),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,j4e),"packing"),nut),"Strategy for finding an initial placement on nodes."),T8e),Vi),U8e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,S4e),iut),"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),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,T4e),iut),"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."),ze(1)),Ss),Pr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,C4e),"whiteSpaceElimination"),"White Space Approximation Strategy"),"Strategy for expanding nodes such that whitespace in the parent is eliminated."),C8e),Vi),V8e),bt(Dt)))),Bot((new bz,t))};var uwt,awt,fwt,hwt,dwt,gwt,pwt,T8e,mwt,bwt,C8e,wwt,vwt,E8e,xwt,M8e,ywt;M(roe,"RectPackingMetaDataProvider",857),E(1007,1,Cf,bz),f.tf=function(t){Bot(t)};var cW,kwt,A8e,HP,N8e,Owt,GP,jwt,Swt,Twt,Cwt,Ewt,Wue,_8e,D8e,Vue,L8e,$E,P8e,Mwt,BE,I8e,R8e,$8e,B8e,z8e,Xue;M(roe,"RectPackingOptions",1007),E(1008,1,{},Q$),f.uf=function(){var t;return t=new YIe,t},f.vf=function(t){},M(roe,"RectPackingOptions/RectpackingFactory",1008),E(1687,1,{},oqe),f.a=0,f.c=!1,M(jS,"AreaApproximation",1687);var F8e=er(jS,"BestCandidateFilter");E(671,1,{527:1},nN),f.Gg=function(t,n,i){var r,o,a,d,b,v;for(v=new Qe,a=or,b=new J(t);b.a<b.c.c.length;)d=c(U(b),241),a=p.Math.min(a,(d.c+(i.b+i.c))*(d.b+(i.d+i.a)));for(o=new J(t);o.a<o.c.c.length;)r=c(U(o),241),(r.c+(i.b+i.c))*(r.b+(i.d+i.a))==a&&Rt(v.c,r);return v},M(jS,"AreaFilter",671),E(672,1,{527:1},r6),f.Gg=function(t,n,i){var r,o,a,d,b,v;for(b=new Qe,v=or,d=new J(t);d.a<d.c.c.length;)a=c(U(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 J(t);o.a<o.c.c.length;)r=c(U(o),241),p.Math.abs((r.c+(i.b+i.c))/(r.b+(i.d+i.a))-n)==v&&Rt(b.c,r);return b},M(jS,"AspectRatioFilter",672),E(1441,1,Wr,U$),f.pg=function(t){return c(t,19),null},f.If=function(t,n){dXt(c(t,19),n)},M(jS,"GreedyWidthApproximator",1441),E(670,1,{527:1},N8),f.Gg=function(t,n,i){var r,o,a,d,b,v;for(v=new Qe,a=Gr,b=new J(t);b.a<b.c.c.length;)d=c(U(b),241),a=p.Math.max(a,xq(d.c+(i.b+i.c),d.b+(i.d+i.a),d.a));for(o=new J(t);o.a<o.c.c.length;)r=c(U(o),241),xq(r.c+(i.b+i.c),r.b+(i.d+i.a),r.a)==a&&Rt(v.c,r);return v},M(jS,"ScaleMeasureFilter",670),E(1442,1,Wr,iN),f.pg=function(t){return c(t,19),null},f.If=function(t,n){oJt(c(t,19),n)},M(jS,"TargetWidthWidthApproximator",1442),E(481,23,{3:1,34:1,23:1,481:1,173:1,177:1},Dge),f.bg=function(){return Xet(this)},f.og=function(){return Xet(this)};var Kue,q8e,H8e=vn(jS,"WidthApproximationStrategy",481,Sn,J_t,jMt),Awt;E(1443,1,Wr,J$),f.pg=function(t){return c(t,19),null},f.If=function(t,n){pnn(this,c(t,19),n)},M(KQ,"Compactor",1443),E(1445,1,Wr,W$),f.pg=function(t){return c(t,19),null},f.If=function(t,n){JVt(c(t,19),n)},M(KQ,"NoPlacement",1445),E(434,23,{3:1,34:1,23:1,434:1,173:1,177:1},gZ),f.bg=function(){return eYe(this)},f.og=function(){return eYe(this)};var Yue,G8e,Q8e,U8e=vn(KQ,"PackingStrategy",434,Sn,UDt,SMt),Nwt;E(804,1,{},$ge),f.a=0,f.b=0,f.c=0,f.d=or,f.e=0,f.f=or,M(KQ,"RowFillingAndCompaction",804),E(1444,1,Wr,hK),f.pg=function(t){return c(t,19),null},f.If=function(t,n){Aen(c(t,19),n)},M(KQ,"SimplePlacement",1444),E(1446,1,Wr,dK),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){Vnt(t,n)},M(E4e,"EqualWhitespaceEliminator",1446),E(1447,1446,Wr,V$),f.Hg=function(t,n){var i,r,o,a,d;n.Tg("To Aspect Ratio Whitesapce Eliminator",1),d=ge(be(Ae(t,(Qd(),Hk)))),a=ge(be(Ae(t,l9))),o=ge(be(Ae(t,(Eh(),cW)))),i=ge(be(Ae(t,IE))),r=d/a,r<o?(d=a*o,ri(t,Hk,d)):(i+=d/o-a,ri(t,IE,i),ri(t,l9,a+i)),Vnt(t,n),n.Ug()},M(E4e,"ToAspectratioNodeExpander",1447),E(435,23,{3:1,34:1,23:1,435:1,173:1,177:1},pZ),f.bg=function(){return JXe(this)},f.og=function(){return JXe(this)};var J8e,Zue,W8e,V8e=vn(E4e,"WhiteSpaceEliminationStrategy",435,Sn,QDt,TMt),_wt;E(175,1,{175:1},ine),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=or,f.p=or,f.r=0,f.s=0,f.t=0,M(eP,"Block",175),E(211,1,{211:1},Vq),f.a=0,f.b=0,f.d=0,f.e=0,f.f=0,M(eP,"BlockRow",211),E(320,1,{320:1},kme),f.b=0,f.c=0,f.d=0,f.e=0,f.f=0,M(eP,"BlockStack",320),E(241,1,{241:1},Spe,T2e),f.a=0,f.b=0,f.c=0,f.d=0,f.e=0,f.g=0;var Qin=M(eP,"DrawingData",241);E(370,23,{3:1,34:1,23:1,370:1},N_);var Gk,L3,zE,FE,QP,Dwt=vn(eP,"DrawingDataDescriptor",370,Sn,RPt,wMt),Lwt;E(189,1,{189:1},Ime),f.b=0,f.c=0,f.e=0,f.f=0,M(eP,"RectRow",189),E(757,1,{},Hwe),f.j=0,M($v,llt,757),E(1186,1,{},s6),f.$e=function(t){return D0(t.a,t.b)},M($v,a3e,1186),E(1187,1,{},cLe),f.$e=function(t){return JPt(this.a,t)},M($v,ult,1187),E(1188,1,{},lLe),f.$e=function(t){return VFt(this.a,t)},M($v,alt,1188),E(1189,1,{},uLe),f.$e=function(t){return J$t(this.a,t)},M($v,"ElkGraphImporter/lambda$3$Type",1189),E(1190,1,{},aLe),f.$e=function(t){return kJt(this.a,t)},M($v,flt,1190),E(1095,207,Tm,ZIe),f.kf=function(t,n){var i,r,o,a,d,b,v,k,T,A,L,R;for(ma(t,(oL(),hW))&&(R=qn(Ae(t,(Gne(),mTe))),a=Xxe(k7(),R),a&&(d=c(cD(a.f),207),d.kf(t,n.dh(1)))),ri(t,oae,(mD(),fW)),ri(t,cae,(cL(),sae)),ri(t,lae,(RD(),dW)),b=c(Ae(t,(Gne(),dTe)),15).a,n.Tg("Overlap removal",1),it(nt(Ae(t,e2t))),v=new Tr,k=new fLe(v),r=new Hwe,i=$ot(r,t),T=!0,o=0;o<b&&T;){if(it(nt(Ae(t,gTe)))){if(v.a.$b(),OUt(new nze(k),i.i),v.a.gc()==0)break;i.e=v}for(a7(this.b),$u(this.b,(UD(),lW),(ST(),UP)),$u(this.b,uW,i.g),$u(this.b,aW,(aF(),nae)),this.a=dC(this.b,i),L=new J(this.a);L.a<L.c.c.length;)A=c(U(L),43),A.If(i,n.dh(1));UHt(r,i),T=it(nt($(i,(vj(),dOe)))),++o}Xst(r,i),n.Ug()},M($v,"OverlapRemovalLayoutProvider",1095),E(1096,1,{},fLe),M($v,"OverlapRemovalLayoutProvider/lambda$0$Type",1096),E(440,23,{3:1,34:1,23:1,440:1},mZ);var lW,uW,aW,eae=vn($v,"SPOrEPhases",440,Sn,JDt,xMt),Pwt;E(1196,1,{},eRe),M($v,"ShrinkTree",1196),E(1097,207,Tm,rIe),f.kf=function(t,n){var i,r,o,a,d;ma(t,(oL(),hW))&&(d=qn(Ae(t,hW)),o=Xxe(k7(),d),o&&(a=c(cD(o.f),207),a.kf(t,n.dh(1)))),r=new Hwe,i=$ot(r,t),XWt(this.a,i,n.dh(1)),Xst(r,i)},M($v,"ShrinkTreeLayoutProvider",1097),E(311,151,{3:1,311:1,105:1,151:1},ZGe),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},XRe),f.bg=function(){return yKe(this)},f.og=function(){return yKe(this)};var tae,X8e=vn(Bv,Vlt,480,Sn,e_t,vMt),Iwt;E(550,23,{3:1,34:1,23:1,550:1,173:1,177:1},Uze),f.bg=function(){return new D8},f.og=function(){return new D8};var nae,Rwt=vn(Bv,"OverlapRemovalStrategy",550,Sn,ZNt,yMt),$wt;E(433,23,{3:1,34:1,23:1,433:1},Lge);var fW,iae,K8e=vn(Bv,"RootSelection",433,Sn,U_t,kMt),Bwt;E(331,23,{3:1,34:1,23:1,331:1},__);var Y8e,rae,sae,Z8e,eTe,tTe=vn(Bv,"SpanningTreeCostFunction",331,Sn,$Pt,OMt),zwt;E(1005,1,Cf,GK),f.tf=function(t){Est(t)};var nTe,iTe,Fwt,qwt,rTe,sTe,oae,cae,lae,Hwt,Gwt,hW;M(Bv,"SporeCompactionOptions",1005),E(1006,1,{},rN),f.uf=function(){var t;return t=new rIe,t},f.vf=function(t){},M(Bv,"SporeCompactionOptions/SporeCompactionFactory",1006),E(856,1,Cf,vz),f.tf=function(t){gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,ooe),""),"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."),(Q0(),Uk)),st),bt((jh(),Dt))))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,uoe),"structure"),"Structure Extraction Strategy"),"This option defines what kind of triangulation or other partitioning of the plane is applied to the vertices."),fTe),Vi),bTe),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,M4e),aoe),"Tree Construction Strategy"),"Whether a minimum spanning tree or a maximum spanning tree should be constructed."),uTe),Vi),vTe),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,A4e),aoe),"Cost Function for Spanning Tree"),"The cost function is used in the creation of the spanning tree."),lTe),Vi),tTe),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,coe),aoe),"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),Uk),st),bt(Dt)))),tr(t,coe,loe,Xwt),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,loe),aoe),"Root selection for spanning tree"),"This sets the method used to select a root node for the construction of a spanning tree"),cTe),Vi),K8e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,N4e),s5e),nut),"This option defines how the compaction is applied."),oTe),Vi),X8e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,_4e),s5e),"Orthogonal Compaction"),"Restricts the translation of nodes to orthogonal directions in the compaction phase."),(zt(),!1)),Ir),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,D4e),sut),"Upper limit for iterations of overlap removal"),null),ze(64)),Ss),Pr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,L4e),sut),"Whether to run a supplementary scanline overlap check."),null),!0),Ir),cr),bt(Dt)))),Art((new XN,t)),Est((new GK,t))};var Qwt,oTe,Uwt,Jwt,Wwt,Vwt,Xwt,Kwt,cTe,Ywt,lTe,Zwt,uTe,aTe,fTe,hTe;M(Bv,"SporeMetaDataProvider",856),E(1003,1,Cf,XN),f.tf=function(t){Art(t)};var e2t,dTe,gTe,pTe,t2t,mTe;M(Bv,"SporeOverlapRemovalOptions",1003),E(1004,1,{},_8),f.uf=function(){var t;return t=new ZIe,t},f.vf=function(t){},M(Bv,"SporeOverlapRemovalOptions/SporeOverlapFactory",1004),E(531,23,{3:1,34:1,23:1,531:1,173:1,177:1},KHe),f.bg=function(){return kKe(this)},f.og=function(){return kKe(this)};var UP,bTe=vn(Bv,"StructureExtractionStrategy",531,Sn,t_t,CMt),n2t;E(432,23,{3:1,34:1,23:1,432:1,173:1,177:1},Pge),f.bg=function(){return AYe(this)},f.og=function(){return AYe(this)};var wTe,dW,vTe=vn(Bv,"TreeConstructionStrategy",432,Sn,W_t,EMt),i2t;E(1435,1,Wr,oN),f.pg=function(t){return c(t,311),new yr},f.If=function(t,n){VHt(c(t,311),n)},M(out,"DelaunayTriangulationPhase",1435),E(1436,1,un,hLe),f.Ad=function(t){Ue(this.a,c(t,68).a)},M(out,"DelaunayTriangulationPhase/lambda$0$Type",1436),E(788,1,Wr,A1e),f.pg=function(t){return c(t,311),new yr},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(Xe(t.i,0),68).a,it(nt($(t,(vj(),XC))))?o=tre(t.e,r,(i=t.b,i)):o=tre(t.e,r,t.b),tKe(this,o,t),n.Ug()},M(foe,"MinSTPhase",788),E(1438,788,Wr,qPe),f.Ig=function(t,n){var i,r,o,a;n.Tg("Maximum spanning tree construction",1),i=new dLe(t),t.d?o=t.d.c:o=c(Xe(t.i,0),68).c,it(nt($(t,(vj(),XC))))?a=tre(t.e,o,(r=i,r)):a=tre(t.e,o,i),tKe(this,a,t),n.Ug()},M(foe,"MaxSTPhase",1438),E(1439,1,{},dLe),f.$e=function(t){return yTt(this.a,t)},M(foe,"MaxSTPhase/lambda$0$Type",1439),E(1437,1,un,gLe),f.Ad=function(t){o7t(this.a,c(t,68))},M(foe,"MinSTPhase/lambda$0$Type",1437),E(790,1,Wr,D8),f.pg=function(t){return c(t,311),new yr},f.If=function(t,n){cQt(this,c(t,311),n)},f.a=!1,M(hoe,"GrowTreePhase",790),E(791,1,un,ope),f.Ad=function(t){R$t(this.a,this.b,this.c,c(t,227))},M(hoe,"GrowTreePhase/lambda$0$Type",791),E(1440,1,Wr,Z$),f.pg=function(t){return c(t,311),new yr},f.If=function(t,n){vqt(this,c(t,311),n)},M(hoe,"ShrinkTreeCompactionPhase",1440),E(789,1,un,cpe),f.Ad=function(t){HJt(this.a,this.b,this.c,c(t,227))},M(hoe,"ShrinkTreeCompactionPhase/lambda$0$Type",789),E(389,23,{3:1,34:1,23:1,389:1},Ige);var xTe,uae,yTe=vn(P4e,"EdgeRoutingStrategy",389,Sn,X_t,MMt),r2t,Uw,Gm,u9,aae,a9,s2t,JP,kd,ux,qE;E(396,23,{3:1,34:1,23:1,396:1},_F);var fae,hae,dae,gae,kTe=vn(P4e,"VertiFlexLayoutPhases",396,Sn,XLt,AMt),o2t;E(1099,207,Tm,tRe),f.kf=function(t,n){var i,r,o,a,d,b,v,k,T,A,L;if(i=WJt(this,t),n.Tg(Blt,i.c.length),this.b=ge(be(Ae(t,(Pn(),lh)))),it(nt(Ae(t,(ik(),STe))))||f7((r=new M6((k0(),new xg(t))),r)),L=HGt(t),ri(t,(Gd(),qE),L),!L)throw K(new Xh(Ult));for(a=new ln((!t.a&&(t.a=new Le(Nn,t,10,11)),t.a));a.e!=a.i.gc();){if(o=c(fn(a),19),k=(!o.d&&(o.d=new Et($i,o,8,5)),o.d).i,k>1)throw K(new Xh("The given graph is not an acyclic tree!"));Dc(o,0),Dl(o,0)}for(zst(this,L,0),d=0,v=new ln((!t.a&&(t.a=new Le(Nn,t,10,11)),t.a));v.e!=v.i.gc();)b=c(fn(v),19),ri(b,JP,ze(d)),d+=1;for(A=new J(i);A.a<A.c.c.length;)T=c(U(A),43),T.If(t,n.dh(1));zWt(t),n.Ug()},f.b=0,M(P4e,"VertiFlexLayoutProvider",1099),E(858,1,Cf,KN),f.tf=function(t){gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,I4e),""),"Fixed vertical position"),"The Y position that the node should be fixed at."),(Q0(),ls)),Sr),bt((jh(),pr))))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,R4e),""),"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."),OTe),Vi),yTe),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,$4e),""),"Layer distance"),"The distance to use between nodes of different layers if no vertical constraints are set."),50),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,B4e),""),"Consider node model order"),"Consider node model as a secondary criterion when using straight line routing."),(zt(),!0)),Ir),cr),bt(Dt)))),Rst((new QK,t))};var c2t,l2t,u2t,OTe,a2t;M(z4e,"VertiFlexMetaDataProvider",858),E(1009,1,Cf,QK),f.tf=function(t){Rst(t)};var pae,f2t,jTe,mae,h2t,STe,TTe,d2t,f9;M(z4e,"VertiFlexOptions",1009),E(1010,1,{},eB),f.uf=function(){var t;return t=new tRe,t},f.vf=function(t){},M(z4e,"VertiFlexOptions/VertiflexFactory",1010),E(1450,1,Wr,oy),f.pg=function(t){return c(t,19),null},f.If=function(t,n){cUt(this,c(t,19),n)},f.a=0,f.b=0,M(cut,"NodeYPlacer",1450),E(557,23,{3:1,34:1,23:1,557:1,173:1,177:1},Vqe),f.bg=function(){return OKe(this)},f.og=function(){return OKe(this)};var bae,g2t=vn(cut,"NodeYPlacerStrategy",557,Sn,XNt,NMt),p2t;E(824,1,Zn,a1e),f.Le=function(t,n){return Fqt(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(doe,"NodeComparator",824),E(107,1,{107:1},xu),f.Ib=function(){return"X:"+this.c+",  Y:"+this.a},f.a=0,f.c=0,M(doe,"OutlineNode",107),E(1451,1,Wr,tB),f.pg=function(t){return c(t,19),null},f.If=function(t,n){NWt(this,c(t,19),n)},f.a=!1,f.b=0,M(doe,"RelativeXPlacer",1451),E(558,23,{3:1,34:1,23:1,558:1,173:1,177:1},Wqe),f.bg=function(){return jKe(this)},f.og=function(){return jKe(this)};var wae,m2t=vn(doe,"RelativeXPlacerStrategy",558,Sn,KNt,_Mt),b2t;E(1452,1,Wr,K$),f.pg=function(t){return c(t,19),null},f.If=function(t,n){mHt(this,c(t,19),n)},M(lut,"AbsoluteXPlacer",1452),E(559,23,{3:1,34:1,23:1,559:1,173:1,177:1},yHe),f.bg=function(){return SKe(this)},f.og=function(){return SKe(this)};var vae,w2t=vn(lut,"AbsoluteXPlacerStrategy",559,Sn,YNt,DMt),v2t;E(1454,1,Wr,o6),f.pg=function(t){return c(t,19),null},f.If=function(t,n){Bzt(this,c(t,19),n)},M(F4e,uut,1454),E(498,23,{3:1,34:1,23:1,498:1,173:1,177:1},Rge),f.bg=function(){return Het(this)},f.og=function(){return Het(this)};var xae,yae,x2t=vn(F4e,"EdgerouterStrategy",498,Sn,V_t,LMt),y2t;E(1453,1,Wr,Y$),f.pg=function(t){return c(t,19),null},f.If=function(t,n){yFt(this,c(t,19),n)},M(F4e,aut,1453);var CTe=er(rc,"IGraphElementVisitor");E(862,1,{528:1},$Qe),f.Jg=function(t){var n;n=tKt(this,t),ic(n,c(Jt(this.b,t),105)),JWt(this,t,n)};var k2t,O2t;M(n3,"LayoutConfigurator",862);var Uin=er(n3,"LayoutConfigurator/IPropertyHolderOptionFilter");E(935,1,{837:1},X$),f.Lg=function(t,n){return V4(),!t.nf(n)},M(n3,"LayoutConfigurator/lambda$0$Type",935),E(936,1,{2011:1},sN),f.Kg=function(t,n){return V4(),!t.nf(n)},M(n3,"LayoutConfigurator/lambda$1$Type",936),E(937,1,{2011:1},gK),f.Kg=function(t,n){return nRe(t,n)},M(n3,"LayoutConfigurator/lambda$2$Type",937),E(938,1,Wn,z$e),f.Mb=function(t){return UNt(this.a,this.b,c(t,2011))},M(n3,"LayoutConfigurator/lambda$3$Type",938),E(860,1,{},nB),M(n3,"RecursiveGraphLayoutEngine",860),E(194,63,q1,vPe,Xh),M(n3,"UnsupportedConfigurationException",194),E(367,63,q1,d4),M(n3,"UnsupportedGraphException",367),E(756,1,{}),M(rc,"AbstractRandomListAccessor",756),E(403,756,{},Wj),f.Mg=function(){return null},f.d=!0,f.e=!0,f.f=0,M(TS,"AlgorithmAssembler",403),E(1181,1,Wn,iB),f.Mb=function(t){return!!c(t,86)},M(TS,"AlgorithmAssembler/lambda$0$Type",1181),E(1182,1,{},pLe),f.Kb=function(t){return P8t(this.a,c(t,86))},M(TS,"AlgorithmAssembler/lambda$1$Type",1182),E(1183,1,Wn,L8),f.Mb=function(t){return!!c(t,75)},M(TS,"AlgorithmAssembler/lambda$2$Type",1183),E(1184,1,un,mLe),f.Ad=function(t){Hu(this.a,c(t,75))},M(TS,"AlgorithmAssembler/lambda$3$Type",1184),E(1185,1,un,F$e),f.Ad=function(t){rCt(this.a,this.b,c(t,177))},M(TS,"AlgorithmAssembler/lambda$4$Type",1185),E(1311,1,Zn,rB),f.Le=function(t,n){return O_t(c(t,177),c(n,177))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(TS,"EnumBasedFactoryComparator",1311),E(75,756,{75:1},yr),f.Mg=function(){return new Tr},f.a=0,M(TS,"LayoutProcessorConfiguration",75),E(1018,1,{528:1},wg),f.Jg=function(t){DD(S2t,new bLe(t))};var j2t,S2t,T2t;M(Io,"DeprecatedLayoutOptionReplacer",1018),E(1019,1,un,cN),f.Ad=function(t){AIt(c(t,176))},M(Io,"DeprecatedLayoutOptionReplacer/lambda$0$Type",1019),E(1020,1,un,sB),f.Ad=function(t){Yzt(c(t,176))},M(Io,"DeprecatedLayoutOptionReplacer/lambda$1$Type",1020),E(1021,1,{},bLe),f.Wd=function(t,n){nCt(this.a,c(t,149),c(n,42))},M(Io,"DeprecatedLayoutOptionReplacer/lambda$2$Type",1021),E(144,1,{697:1,144:1},ym),f.Fb=function(t){return Zme(this,t)},f.Ng=function(){return this.b},f.Og=function(){return this.c},f.ve=function(){return this.e},f.Hb=function(){return Pg(this.c)},f.Ib=function(){return"Layout Algorithm: "+this.c};var Jin=M(Io,"LayoutAlgorithmData",144);E(271,1,{},p1),M(Io,"LayoutAlgorithmData/Builder",271),E(714,1,{528:1},pK),f.Jg=function(t){zUe(t)},M(Io,"LayoutAlgorithmResolver",714),E(236,1,{697:1,236:1},$4),f.Fb=function(t){return he(t,236)?jt(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 Pg(this.b)},f.Ib=function(){return"Layout Type: "+this.b},M(Io,"LayoutCategoryData",236),E(358,1,{},$p),M(Io,"LayoutCategoryData/Builder",358),E(869,1,{},brt);var kae;M(Io,"LayoutMetaDataService",869),E(870,1,{},qHe),M(Io,"LayoutMetaDataService/Registry",870),E(478,1,{478:1},Pu),M(Io,"LayoutMetaDataService/Registry/Triple",478),E(871,1,o3,Gf),f.Pg=function(){return new us},M(Io,"LayoutMetaDataService/lambda$0$Type",871),E(872,1,zv,oB),f.Qg=function(t){return Ms(c(t,8))},M(Io,"LayoutMetaDataService/lambda$1$Type",872),E(881,1,o3,cB),f.Pg=function(){return new Qe},M(Io,"LayoutMetaDataService/lambda$10$Type",881),E(882,1,zv,lB),f.Qg=function(t){return new Hl(c(t,13))},M(Io,"LayoutMetaDataService/lambda$11$Type",882),E(883,1,o3,uB),f.Pg=function(){return new _i},M(Io,"LayoutMetaDataService/lambda$12$Type",883),E(884,1,zv,c6),f.Qg=function(t){return Y_(c(t,66))},M(Io,"LayoutMetaDataService/lambda$13$Type",884),E(885,1,o3,aB),f.Pg=function(){return new Tr},M(Io,"LayoutMetaDataService/lambda$14$Type",885),E(886,1,zv,P8),f.Qg=function(t){return Bee(c(t,47))},M(Io,"LayoutMetaDataService/lambda$15$Type",886),E(887,1,o3,fB),f.Pg=function(){return new Ld},M(Io,"LayoutMetaDataService/lambda$16$Type",887),E(888,1,zv,mK),f.Qg=function(t){return oH(c(t,47))},M(Io,"LayoutMetaDataService/lambda$17$Type",888),E(889,1,o3,I8),f.Pg=function(){return new mY},M(Io,"LayoutMetaDataService/lambda$18$Type",889),E(890,1,zv,lN),f.Qg=function(t){return mqe(c(t,143))},M(Io,"LayoutMetaDataService/lambda$19$Type",890),E(873,1,o3,hB),f.Pg=function(){return new nu},M(Io,"LayoutMetaDataService/lambda$2$Type",873),E(874,1,zv,dB),f.Qg=function(t){return new eF(c(t,79))},M(Io,"LayoutMetaDataService/lambda$3$Type",874),E(875,1,o3,gB),f.Pg=function(){return new dT},M(Io,"LayoutMetaDataService/lambda$4$Type",875),E(876,1,zv,uN),f.Qg=function(t){return new KZ(c(t,125))},M(Io,"LayoutMetaDataService/lambda$5$Type",876),E(877,1,o3,aN),f.Pg=function(){return new u4},M(Io,"LayoutMetaDataService/lambda$6$Type",877),E(878,1,zv,fN),f.Qg=function(t){return new spe(c(t,100))},M(Io,"LayoutMetaDataService/lambda$7$Type",878),E(879,1,o3,pB),f.Pg=function(){return new $5},M(Io,"LayoutMetaDataService/lambda$8$Type",879),E(880,1,zv,hN),f.Qg=function(t){return new JWe(c(t,380))},M(Io,"LayoutMetaDataService/lambda$9$Type",880);var Oae=er($L,"IProperty");E(21,1,{34:1,697:1,21:1,149:1},ot),f.Dd=function(t){return k7t(this,c(t,149))},f.Fb=function(t){return he(t,21)?jt(this.f,c(t,21).f):he(t,149)&&jt(this.f,c(t,149).Og())},f.Rg=function(){var t;if(he(this.b,4)){if(t=C2e(this.b),t==null)throw K(new oo(gut+this.f+"'. Make sure it's type is registered with the "+(j1(vI),vI.k)+q4e));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 Pg(this.f)},f.Ib=function(){return"Layout Option: "+this.f},M(Io,"LayoutOptionData",21),E(25,1,{},rt),M(Io,"LayoutOptionData/Builder",25),E(161,23,{3:1,34:1,23:1,161:1},D_);var ch,X1,pr,Dt,e0,Ih=vn(Io,"LayoutOptionData/Target",161,Sn,FPt,PMt),C2t;E(287,23,{3:1,34:1,23:1,287:1},v4);var Ir,ls,Vi,Qk,Ss,Rh,Uk,ETe,E2t=vn(Io,"LayoutOptionData/Type",287,Sn,eRt,IMt),M2t,HE,MTe;E(120,1,{120:1},k4,bf,Gq),f.Fb=function(t){var n;return t==null||!he(t,120)?!1:(n=c(t,120),bc(this.c,n.c)&&bc(this.d,n.d)&&bc(this.b,n.b)&&bc(this.a,n.a))},f.Hb=function(){return YH(ee(Z(Br,1),It,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(JL,"ElkRectangle",120),E(8,1,{3:1,4:1,8:1,419:1},us,Jee,He,Es),f.Fb=function(t){return sXe(this,t)},f.Hb=function(){return y4(this.a)+Vqt(y4(this.b))},f.ag=function(t){var n,i,r,o;for(r=0;r<t.length&&UKe((tn(r,t.length),t.charCodeAt(r)),ilt);)++r;for(n=t.length;n>0&&UKe((tn(n-1,t.length),t.charCodeAt(n-1)),rlt);)--n;if(r>=n)throw K(new Ht("The given string does not contain any numbers."));if(o=Nv((as(r,n,t.length),t.substr(r,n-r)),`,|;|\r|
`),o.length!=2)throw K(new Ht("Exactly two numbers are expected, "+o.length+" were found."));try{this.a=jv(Sv(o[0])),this.b=jv(Sv(o[1]))}catch(a){throw a=kr(a),he(a,133)?(i=a,K(new Ht(slt+i))):K(a)}},f.Ib=function(){return"("+this.a+","+this.b+")"},f.a=0,f.b=0;var Vr=M(JL,"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},nu,eF,Xze),f.Nc=function(){return pBt(this)},f.ag=function(t){var n,i,r,o,a,d;r=Nv(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| |	|
`),ku(this);try{for(i=0,a=0,o=0,d=0;i<r.length;)r[i]!=null&&Sv(r[i]).length>0&&(a%2==0?o=jv(r[i]):d=jv(r[i]),a>0&&a%2!=0&&ni(this,new He(o,d)),++a),++i}catch(b){throw b=kr(b),he(b,133)?(n=b,K(new Ht("The given string does not match the expected format for vectors."+n))):K(b)}},f.Ib=function(){var t,n,i;for(t=new Iu("("),n=Ln(this,0);n.b!=n.d.c;)i=c(_n(n),8),ti(t,i.a+","+i.b),n.b!=n.d.c&&(t.a+="; ");return(t.a+=")",t).a};var ATe=M(JL,"KVectorChain",79);E(259,23,{3:1,34:1,23:1,259:1},PT);var jae,gW,pW,WP,VP,mW,NTe=vn(Zc,"Alignment",259,Sn,wIt,RMt),A2t;E(984,1,Cf,YN),f.tf=function(t){Grt(t)};var _Te,Sae,N2t,DTe,LTe,_2t,PTe,D2t,L2t,ITe,RTe,P2t;M(Zc,"BoxLayouterOptions",984),E(985,1,{},dN),f.uf=function(){var t;return t=new bB,t},f.vf=function(t){},M(Zc,"BoxLayouterOptions/BoxFactory",985),E(300,23,{3:1,34:1,23:1,300:1},IT);var GE,Tae,QE,UE,JE,Cae,Eae=vn(Zc,"ContentAlignment",300,Sn,bIt,$Mt),I2t;E(696,1,Cf,ZN),f.tf=function(t){gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,mut),""),"Layout Algorithm"),"Select a specific layout algorithm."),(Q0(),Uk)),st),bt((jh(),Dt))))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,but),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),Rh),Jin),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,j5e),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),$Te),Vi),NTe),bt(pr)))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,gS),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,Q4e),""),"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."),Rh),ATe),bt(ch)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,HQ),""),"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."),zTe),Qk),Eae),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,YL),""),"Debug Mode"),"Whether additional debug information shall be generated."),(zt(),!1)),Ir),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Fse),""),"Direction"),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),FTe),Vi),XE),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,KL),""),"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."),GTe),Vi),Fae),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,H4e),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),Ir),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,qQ),""),"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`."),UTe),Vi),P7e),Li(Dt,ee(Z(Ih,1),Re,161,0,[pr]))))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Ow),""),"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."),i7e),Rh),IOe),Li(Dt,ee(Z(Ih,1),Re,161,0,[pr]))))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,pS),""),"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),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,QQ),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),Ir),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,mS),""),"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),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,jQ),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),l7e),Vi),$7e),bt(pr)))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,GQ),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),Rh),Vr),Li(pr,ee(Z(Ih,1),Re,161,0,[e0,X1]))))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,zL),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),Ss),Pr),Li(pr,ee(Z(Ih,1),Re,161,0,[ch]))))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,OQ),""),"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)."),Ss),Pr),bt(Dt)))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,kC),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),Ir),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,P5e),""),"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."),VTe),Rh),ATe),bt(ch)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,B5e),""),"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),cr),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,z5e),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),Ir),cr),bt(pr)))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,xin),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),Rh),Zin),Li(Dt,ee(Z(Ih,1),Re,161,0,[X1]))))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,wut),""),"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),ls),Sr),bt(X1)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Gse),""),"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."),XTe),Rh),POe),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,k5e),""),"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),cr),Li(pr,ee(Z(Ih,1),Re,161,0,[ch,e0,X1]))))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,vut),""),"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),ls),Sr),bt(pr)))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,xut),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,yut),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,qL),""),fut),"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),cr),bt(Dt)))),tr(t,qL,jw,null),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,kut),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),Ir),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Out),""),"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'."),ze(100)),Ss),Pr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,jut),""),"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),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Sut),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),ze(4e3)),Ss),Pr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Tut),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),ze(400)),Ss),Pr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Cut),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),Ir),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Eut),""),"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),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Mut),""),"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),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Aut),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),Ir),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,G4e),"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."),BTe),Vi),K7e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Nut),"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."),WTe),Vi),F7e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,_ut),"json"),"Edge Coords"),"For layouts transferred into JSON graphs, specify the coordinate system to be used for edge route points and edge labels."),JTe),Vi),k7e),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,a5e),_h),"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),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,f5e),_h),"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),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,h5e),_h),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,d5e),_h),"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),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Yre),_h),"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),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,zse),_h),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,g5e),_h),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,b5e),_h),"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),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,p5e),_h),"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),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,m5e),_h),"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),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,kw),_h),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,w5e),_h),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),ls),Sr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,v5e),_h),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),ls),Sr),Li(Dt,ee(Z(Ih,1),Re,161,0,[pr]))))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,x5e),_h),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),Rh),_vt),Li(pr,ee(Z(Ih,1),Re,161,0,[ch,e0,X1]))))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,q5e),_h),"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."),w7e),Rh),POe),bt(Dt)))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,Hse),Put),"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)."),Ss),Pr),Li(Dt,ee(Z(Ih,1),Re,161,0,[pr]))))),tr(t,Hse,qse,W2t),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,qse),Put),"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."),r7e),Ir),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,C5e),Iut),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),YTe),Rh),IOe),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,wS),Iut),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),ZTe),Qk),Xs),Li(pr,ee(Z(Ih,1),Re,161,0,[X1]))))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,A5e),ZQ),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),o7e),Vi),eM),bt(pr)))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,N5e),ZQ),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),Vi),eM),bt(pr)))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,_5e),ZQ),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),Vi),eM),bt(pr)))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,D5e),ZQ),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),Vi),eM),bt(pr)))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,L5e),ZQ),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),Vi),eM),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,i3),boe),"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."),e7e),Qk),iM),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,xk),boe),"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."),n7e),Qk),q7e),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,yk),boe),"Node Size Minimum"),"The minimal size to which a node can be reduced."),t7e),Rh),Vr),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,bS),boe),"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),cr),bt(Dt)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,R5e),Bse),"Edge Label Placement"),"Gives a hint on where to put edge labels."),qTe),Vi),O7e),bt(X1)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,FL),Bse),"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),cr),bt(X1)))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,yin),"font"),"Font Name"),"Font name used for a label."),Uk),st),bt(X1)))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,Dut),"font"),"Font Size"),"Font size used for a label."),Ss),Pr),bt(X1)))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,F5e),woe),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),Rh),Vr),bt(e0)))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,$5e),woe),"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."),Ss),Pr),bt(e0)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,O5e),woe),"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."),f7e),Vi),Rs),bt(e0)))),gt(t,new ot(ht(ft(dt(ct(at(lt(ut(new rt,y5e),woe),"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."),ls),Sr),bt(e0)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,vS),W4e),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),u7e),Qk),jW),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,E5e),W4e),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),Ir),cr),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,M5e),W4e),"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),cr),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,poe),ES),"Number of size categories"),"Defines the number of categories to use for the FIXED_INTEGER_RATIO_BOXES size approximator."),ze(3)),Ss),Pr),bt(Dt)))),tr(t,poe,moe,ovt),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,U4e),ES),"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."),ze(4)),Ss),Pr),bt(Dt)))),tr(t,U4e,poe,null),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,HL),ES),"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),ls),Sr),bt(Dt)))),tr(t,HL,jw,ivt),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,moe),ES),"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),Rh),Win),bt(pr)))),tr(t,moe,jw,rvt),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,GL),ES),"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),ls),Sr),Li(Dt,ee(Z(Ih,1),Re,161,0,[pr]))))),tr(t,GL,jw,null),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,QL),ES),"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),ls),Sr),Li(Dt,ee(Z(Ih,1),Re,161,0,[pr]))))),tr(t,QL,jw,null),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,jw),ES),"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),G7e),bt(pr)))),tr(t,jw,bS,null),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,J4e),ES),"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),ls),Sr),bt(Dt)))),tr(t,J4e,jw,nvt),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,S5e),Rut),"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),cr),bt(pr)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,T5e),Rut),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),Ir),cr),bt(ch)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,I5e),"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),ls),Sr),bt(ch)))),gt(t,new ot(ht(ft(dt(yt(ct(at(lt(ut(new rt,Lut),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),QTe),Vi),M7e),bt(ch)))),TT(t,new $4(xT(P6(L6(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.'))),TT(t,new $4(xT(P6(L6(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.`))),TT(t,new $4(xT(P6(L6(new $p,cl),"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."))),TT(t,new $4(xT(P6(L6(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."))),TT(t,new $4(xT(P6(L6(new $p,t4e),"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."))),TT(t,new $4(xT(P6(L6(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."))),TT(t,new $4(xT(P6(L6(new $p,Sa),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),Ert((new xz,t)),Grt((new YN,t)),Zit((new yz,t))};var Jk,R2t,$Te,h9,$2t,B2t,BTe,ax,fx,z2t,XP,zTe,KP,Qm,FTe,bW,Mae,qTe,HTe,GTe,F2t,QTe,q2t,P3,UTe,H2t,YP,Aae,WE,Nae,G2t,JTe,Q2t,WTe,I3,VTe,K1,XTe,KTe,YTe,R3,ZTe,Um,e7e,hx,$3,t7e,fp,n7e,wW,VE,$h,i7e,U2t,r7e,J2t,W2t,s7e,o7e,_ae,Dae,Lae,Pae,c7e,fu,d9,l7e,Iae,Rae,dx,u7e,a7e,B3,f7e,Wk,ZP,$ae,gx,V2t,Bae,X2t,K2t,Y2t,Z2t,h7e,d7e,Vk,g7e,vW,p7e,m7e,lh,evt,b7e,w7e,v7e,g9,px,p9,Xk,tvt,nvt,xW,ivt,yW,rvt,svt,ovt,cvt;M(Zc,"CoreOptions",696),E(87,23,{3:1,34:1,23:1,87:1},L_);var Bh,go,vo,zh,Aa,XE=vn(Zc,"Direction",87,Sn,CPt,BMt),lvt;E(280,23,{3:1,34:1,23:1,280:1},DF);var kW,eI,x7e,y7e,k7e=vn(Zc,"EdgeCoords",280,Sn,KLt,zMt),uvt;E(281,23,{3:1,34:1,23:1,281:1},bZ);var m9,mx,b9,O7e=vn(Zc,"EdgeLabelPlacement",281,Sn,KDt,FMt),avt;E(225,23,{3:1,34:1,23:1,225:1},LF);var w9,tI,Kk,zae,Fae=vn(Zc,"EdgeRouting",225,Sn,YLt,qMt),fvt;E(328,23,{3:1,34:1,23:1,328:1},RT);var j7e,S7e,T7e,C7e,qae,E7e,M7e=vn(Zc,"EdgeType",328,Sn,mIt,HMt),hvt;E(982,1,Cf,xz),f.tf=function(t){Ert(t)};var A7e,N7e,_7e,D7e,dvt,L7e,KE;M(Zc,"FixedLayouterOptions",982),E(983,1,{},mB),f.uf=function(){var t;return t=new vB,t},f.vf=function(t){},M(Zc,"FixedLayouterOptions/FixedFactory",983),E(348,23,{3:1,34:1,23:1,348:1},wZ);var t0,OW,YE,P7e=vn(Zc,"HierarchyHandling",348,Sn,ZDt,GMt),gvt,Win=er(Zc,"ITopdownSizeApproximator");E(293,23,{3:1,34:1,23:1,293:1},PF);var n1,hp,nI,iI,pvt=vn(Zc,"LabelSide",293,Sn,ZLt,QMt),mvt;E(96,23,{3:1,34:1,23:1,96:1},wy);var Y1,Df,Ya,Lf,Ku,Pf,Za,i1,If,Xs=vn(Zc,"NodeLabelPlacement",96,Sn,yRt,UMt),bvt;E(260,23,{3:1,34:1,23:1,260:1},P_);var I7e,ZE,dp,R7e,rI,eM=vn(Zc,"PortAlignment",260,Sn,qPt,JMt),wvt;E(103,23,{3:1,34:1,23:1,103:1},$T);var Jm,Sc,r1,v9,Fh,gp,$7e=vn(Zc,"PortConstraints",103,Sn,vIt,WMt),vvt;E(282,23,{3:1,34:1,23:1,282:1},BT);var tM,nM,Z1,sI,pp,Yk,jW=vn(Zc,"PortLabelPlacement",282,Sn,xIt,VMt),xvt;E(64,23,{3:1,34:1,23:1,64:1},I_);var sn,Yt,Na,_a,yl,al,qh,Rf,Xl,$l,zc,Kl,kl,Ol,$f,Yu,Zu,ef,wn,$o,Zt,Rs=vn(Zc,"PortSide",64,Sn,EPt,KMt),yvt;E(986,1,Cf,yz),f.tf=function(t){Zit(t)};var kvt,Ovt,B7e,jvt,Svt;M(Zc,"RandomLayouterOptions",986),E(987,1,{},gN),f.uf=function(){var t;return t=new xB,t},f.vf=function(t){},M(Zc,"RandomLayouterOptions/RandomFactory",987),E(301,23,{3:1,34:1,23:1,301:1},vZ);var oI,Hae,z7e,F7e=vn(Zc,"ShapeCoords",301,Sn,XDt,XMt),Tvt;E(381,23,{3:1,34:1,23:1,381:1},IF);var bx,cI,lI,Wm,iM=vn(Zc,"SizeConstraint",381,Sn,ePt,YMt),Cvt;E(267,23,{3:1,34:1,23:1,267:1},vy);var uI,SW,x9,Gae,aI,rM,TW,CW,EW,q7e=vn(Zc,"SizeOptions",267,Sn,ERt,ZMt),Evt;E(283,23,{3:1,34:1,23:1,283:1},xZ);var wx,H7e,MW,G7e=vn(Zc,"TopdownNodeTypes",283,Sn,YDt,eAt),Mvt;E(290,23,tU);var Q7e,Qae,U7e,J7e,fI=vn(Zc,"TopdownSizeApproximator",290,Sn,tPt,tAt);E(978,290,tU,Pqe),f.Sg=function(t){return AZe(t)},vn(Zc,"TopdownSizeApproximator/1",978,fI,null,null),E(979,290,tU,vHe),f.Sg=function(t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt,Pt;for(n=c(Ae(t,(Pn(),gx)),144),Ze=(y0(),R=new gT,R),dL(Ze,t),wt=new xn,a=new ln((!t.a&&(t.a=new Le(Nn,t,10,11)),t.a));a.e!=a.i.gc();)r=c(fn(a),19),fe=(L=new gT,L),VG(fe,Ze),dL(fe,r),Pt=AZe(r),Fb(fe,p.Math.max(r.g,Pt.a),p.Math.max(r.f,Pt.b)),bl(wt.f,r,fe);for(o=new ln((!t.a&&(t.a=new Le(Nn,t,10,11)),t.a));o.e!=o.i.gc();)for(r=c(fn(o),19),T=new ln((!r.e&&(r.e=new Et($i,r,7,4)),r.e));T.e!=T.i.gc();)k=c(fn(T),74),Ne=c(Ao(co(wt.f,r)),19),Me=c(Jt(wt,ae((!k.c&&(k.c=new Et(yn,k,5,8)),k.c),0)),19),we=(A=new R8,A),Dn((!we.b&&(we.b=new Et(yn,we,4,7)),we.b),Ne),Dn((!we.c&&(we.c=new Et(yn,we,5,8)),we.c),Me),WG(we,Ki(Ne)),dL(we,k);G=c(cD(n.f),207);try{G.kf(Ze,new bN),ome(n.f,G)}catch($t){throw $t=kr($t),he($t,102)?(F=$t,K(F)):K($t)}return ma(Ze,fx)||ma(Ze,ax)||lre(Ze),v=ge(be(Ae(Ze,fx))),b=ge(be(Ae(Ze,ax))),d=v/b,i=ge(be(Ae(Ze,px)))*p.Math.sqrt((!Ze.a&&(Ze.a=new Le(Nn,Ze,10,11)),Ze.a).i),vt=c(Ae(Ze,$h),100),oe=vt.b+vt.c+1,Y=vt.d+vt.a+1,new He(p.Math.max(oe,i),p.Math.max(Y,i/d))},vn(Zc,"TopdownSizeApproximator/2",979,fI,null,null),E(980,290,tU,UGe),f.Sg=function(t){var n,i,r,o,a,d;return i=ge(be(Ae(t,(Pn(),px)))),n=i/ge(be(Ae(t,g9))),r=RYt(t),a=c(Ae(t,$h),100),o=ge(be(Ke(lh))),Ki(t)&&(o=ge(be(Ae(Ki(t),lh)))),d=O1(new He(i,n),r),ji(d,new He(-(a.b+a.c)-o,-(a.d+a.a)-o))},vn(Zc,"TopdownSizeApproximator/3",980,fI,null,null),E(981,290,tU,xHe),f.Sg=function(t){var n,i,r,o,a,d,b,v,k,T;for(d=new ln((!t.a&&(t.a=new Le(Nn,t,10,11)),t.a));d.e!=d.i.gc();)a=c(fn(d),19),Ae(a,(Pn(),yW))!=null&&(!a.a&&(a.a=new Le(Nn,a,10,11)),!!a.a)&&(!a.a&&(a.a=new Le(Nn,a,10,11)),a.a).i>0?(i=c(Ae(a,yW),525),T=i.Sg(a),k=c(Ae(a,$h),100),Fb(a,p.Math.max(a.g,T.a+k.b+k.c),p.Math.max(a.f,T.b+k.d+k.a))):(!a.a&&(a.a=new Le(Nn,a,10,11)),a.a).i!=0&&Fb(a,ge(be(Ae(a,px))),ge(be(Ae(a,px)))/ge(be(Ae(a,g9))));n=c(Ae(t,(Pn(),gx)),144),v=c(cD(n.f),207);try{v.kf(t,new bN),ome(n.f,v)}catch(A){throw A=kr(A),he(A,102)?(b=A,K(b)):K(A)}return ri(t,Jk,MS),zUe(t),lre(t),o=ge(be(Ae(t,fx))),r=ge(be(Ae(t,ax))),new He(o,r)},vn(Zc,"TopdownSizeApproximator/4",981,fI,null,null);var Avt;E(346,1,{861:1},a4),f.Tg=function(t,n){return Uet(this,t,n)},f.Ug=function(){xtt(this)},f.Vg=function(){return this.q},f.Wg=function(){return this.f?Hq(this.f):null},f.Xg=function(){return Hq(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,Ue(this.f,n))},f.bh=function(t,n){var i,r;this.n&&t&&bLt(this,(i=new $He,r=Fie(i,t),Stn(i),r),(XH(),Jae))},f.dh=function(t){var n;return this.b?null:(n=sRt(this,this.g),ni(this.a,n),n.i=this,this.d=t,n)},f.eh=function(t){t>0&&!this.b&&nwe(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(rc,"BasicProgressMonitor",346),E(713,207,Tm,bB),f.kf=function(t,n){lst(t,n)},M(rc,"BoxLayoutProvider",713),E(974,1,Zn,wLe),f.Le=function(t,n){return kVt(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(rc,"BoxLayoutProvider/1",974),E(168,1,{168:1},CH,Kze),f.Ib=function(){return this.c?Vxe(this.c):Ch(this.b)},M(rc,"BoxLayoutProvider/Group",168),E(327,23,{3:1,34:1,23:1,327:1},RF);var W7e,V7e,X7e,Uae,K7e=vn(rc,"BoxLayoutProvider/PackingMode",327,Sn,nPt,nAt),Nvt;E(975,1,Zn,Ob),f.Le=function(t,n){return k_t(c(t,168),c(n,168))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(rc,"BoxLayoutProvider/lambda$0$Type",975),E(976,1,Zn,pN),f.Le=function(t,n){return f_t(c(t,168),c(n,168))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(rc,"BoxLayoutProvider/lambda$1$Type",976),E(977,1,Zn,bK),f.Le=function(t,n){return h_t(c(t,168),c(n,168))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(rc,"BoxLayoutProvider/lambda$2$Type",977),E(1350,1,{837:1},wB),f.Lg=function(t,n){return cF(),!he(n,176)||nRe((V4(),c(t,176)),n)},M(rc,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1350),E(1351,1,un,vLe),f.Ad=function(t){mBt(this.a,c(t,149))},M(rc,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1351),E(1352,1,un,jb),f.Ad=function(t){c(t,105),cF()},M(rc,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1352),E(1356,1,un,xLe),f.Ad=function(t){qRt(this.a,c(t,105))},M(rc,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1356),E(1354,1,Wn,q$e),f.Mb=function(t){return eBt(this.a,this.b,c(t,149))},M(rc,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1354),E(1353,1,Wn,H$e),f.Mb=function(t){return Y7t(this.a,this.b,c(t,837))},M(rc,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1353),E(1355,1,un,G$e),f.Ad=function(t){sNt(this.a,this.b,c(t,149))},M(rc,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1355),E(939,1,{},mN),f.Kb=function(t){return HBe(t)},f.Fb=function(t){return this===t},M(rc,"ElkUtil/lambda$0$Type",939),E(940,1,un,Q$e),f.Ad=function(t){OJt(this.a,this.b,c(t,74))},f.a=0,f.b=0,M(rc,"ElkUtil/lambda$1$Type",940),E(941,1,un,U$e),f.Ad=function(t){t8t(this.a,this.b,c(t,171))},f.a=0,f.b=0,M(rc,"ElkUtil/lambda$2$Type",941),E(942,1,un,J$e),f.Ad=function(t){WTt(this.a,this.b,c(t,158))},f.a=0,f.b=0,M(rc,"ElkUtil/lambda$3$Type",942),E(943,1,un,yLe),f.Ad=function(t){CAt(this.a,c(t,373))},M(rc,"ElkUtil/lambda$4$Type",943),E(332,1,{34:1,332:1},A9t),f.Dd=function(t){return x7t(this,c(t,245))},f.Fb=function(t){var n;return he(t,332)?(n=c(t,332),this.a==n.a):!1},f.Hb=function(){return ys(this.a)},f.Ib=function(){return this.a+" (exclusive)"},f.a=0,M(rc,"ExclusiveBounds/ExclusiveLowerBound",332),E(1100,207,Tm,vB),f.kf=function(t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe,fe,we,Ne,Me,Ze,wt,vt;for(n.Tg("Fixed Layout",1),a=c(Ae(t,(Pn(),HTe)),225),A=0,L=0,fe=new ln((!t.a&&(t.a=new Le(Nn,t,10,11)),t.a));fe.e!=fe.i.gc();){for(Y=c(fn(fe),19),vt=c(Ae(Y,(KH(),KE)),8),vt&&(ha(Y,vt.a,vt.b),c(Ae(Y,N7e),185).Gc((Cu(),bx))&&(R=c(Ae(Y,D7e),8),R.a>0&&R.b>0&&ww(Y,R.a,R.b,!0,!0))),A=p.Math.max(A,Y.i+Y.g),L=p.Math.max(L,Y.j+Y.f),k=new ln((!Y.n&&(Y.n=new Le(Bo,Y,1,7)),Y.n));k.e!=k.i.gc();)b=c(fn(k),158),vt=c(Ae(b,KE),8),vt&&ha(b,vt.a,vt.b),A=p.Math.max(A,Y.i+b.i+b.g),L=p.Math.max(L,Y.j+b.j+b.f);for(Me=new ln((!Y.c&&(Y.c=new Le(hu,Y,9,9)),Y.c));Me.e!=Me.i.gc();)for(Ne=c(fn(Me),127),vt=c(Ae(Ne,KE),8),vt&&ha(Ne,vt.a,vt.b),Ze=Y.i+Ne.i,wt=Y.j+Ne.j,A=p.Math.max(A,Ze+Ne.g),L=p.Math.max(L,wt+Ne.f),v=new ln((!Ne.n&&(Ne.n=new Le(Bo,Ne,1,7)),Ne.n));v.e!=v.i.gc();)b=c(fn(v),158),vt=c(Ae(b,KE),8),vt&&ha(b,vt.a,vt.b),A=p.Math.max(A,Ze+b.i+b.g),L=p.Math.max(L,wt+b.j+b.f);for(o=new Gt(Xt(B1(Y).a.Jc(),new z));gn(o);)i=c(on(o),74),T=jot(i),A=p.Math.max(A,T.a),L=p.Math.max(L,T.b);for(r=new Gt(Xt(QG(Y).a.Jc(),new z));gn(r);)i=c(on(r),74),Ki(gie(i))!=t&&(T=jot(i),A=p.Math.max(A,T.a),L=p.Math.max(L,T.b))}if(a==(R1(),w9))for(oe=new ln((!t.a&&(t.a=new Le(Nn,t,10,11)),t.a));oe.e!=oe.i.gc();)for(Y=c(fn(oe),19),r=new Gt(Xt(B1(Y).a.Jc(),new z));gn(r);)i=c(on(r),74),d=kYt(i),d.b==0?ri(i,I3,null):ri(i,I3,d);it(nt(Ae(t,(KH(),_7e))))||(we=c(Ae(t,dvt),100),G=A+we.b+we.c,F=L+we.d+we.a,ww(t,G,F,!0,!0)),n.Ug()},M(rc,"FixedLayoutProvider",1100),E(380,151,{3:1,419:1,380:1,105:1,151:1},$5,JWe),f.ag=function(t){var n,i,r,o,a,d,b,v,k;if(t)try{for(v=Nv(t,";,;"),a=v,d=0,b=a.length;d<b;++d){if(o=a[d],i=Nv(o,"\\:"),r=Eye(k7(),i[0]),!r)throw K(new Ht("Invalid option id: "+i[0]));if(k=Tye(r,i[1]),k==null)throw K(new Ht("Invalid option value: "+i[1]));k==null?(!this.q&&(this.q=new xn),q4(this.q,r)):(!this.q&&(this.q=new xn),ci(this.q,r,k))}}catch(T){throw T=kr(T),he(T,102)?(n=T,K(new PKe(n))):K(T)}},f.Ib=function(){var t;return t=qn(Gl(Jc((this.q?this.q:(Mt(),Mt(),Yd)).vc().Mc(),new l6),LIt(new gqe,new qo,new rr,new zs,ee(Z(xl,1),Re,132,0,[])))),t};var _vt=M(rc,"IndividualSpacings",380);E(973,1,{},l6),f.Kb=function(t){return y_t(c(t,45))},M(rc,"IndividualSpacings/lambda$0$Type",973),E(715,1,{},Kqe),f.c=0,M(rc,"InstancePool",715),E(1833,1,{},Cl),M(rc,"LoggedGraph",1833),E(412,23,{3:1,34:1,23:1,412:1},$F);var Y7e,Jae,Z7e,eCe,Dvt=vn(rc,"LoggedGraph/Type",412,Sn,iPt,iAt),Lvt;E(621,1,{861:1},bN),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(rc,"NullElkProgressMonitor",621),E(49,1,{22:1,49:1},wK,Ls),f.Ic=function(t){ws(this,t)},f.Fb=function(t){var n,i,r;return he(t,49)?(i=c(t,49),n=this.a==null?i.a==null:ki(this.a,i.a),r=this.b==null?i.b==null:ki(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 kLe(this)},f.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+So(this.b)+")":this.b==null?"pair("+So(this.a)+",null)":"pair("+So(this.a)+","+So(this.b)+")"},M(rc,"Pair",49),E(988,1,ns,kLe),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 K(new Eo)},f.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),K(new El)},f.b=!1,f.c=!1,M(rc,"Pair/1",988),E(1089,207,Tm,xB),f.kf=function(t,n){var i,r,o,a,d;if(n.Tg("Random Layout",1),(!t.a&&(t.a=new Le(Nn,t,10,11)),t.a).i==0){n.Ug();return}a=c(Ae(t,(y2e(),jvt)),15),a&&a.a!=0?o=new cH(a.a):o=new yne,i=g_(be(Ae(t,kvt))),d=g_(be(Ae(t,Svt))),r=c(Ae(t,Ovt),100),Utn(t,o,i,d,r),n.Ug()},M(rc,"RandomLayoutProvider",1089),E(243,1,{243:1},ZZ),f.Fb=function(t){return bc(this.a,c(t,243).a)&&bc(this.b,c(t,243).b)&&bc(this.c,c(t,243).c)},f.Hb=function(){return YH(ee(Z(Br,1),It,1,5,[this.a,this.b,this.c]))},f.Ib=function(){return"("+this.a+Yc+this.b+Yc+this.c+")"},M(rc,"Triple",243);var Pvt;E(554,1,{}),f.Jf=function(){return new He(this.f.i,this.f.j)},f.mf=function(t){return HGe(t,(Pn(),fu))?Ae(this.f,Ivt):Ae(this.f,t)},f.Kf=function(){return new He(this.f.g,this.f.f)},f.Lf=function(){return this.g},f.nf=function(t){return ma(this.f,t)},f.Mf=function(t){Dc(this.f,t.a),Dl(this.f,t.b)},f.Nf=function(t){am(this.f,t.a),um(this.f,t.b)},f.Of=function(t){this.g=t},f.g=0;var Ivt;M(_C,"ElkGraphAdapters/AbstractElkGraphElementAdapter",554),E(556,1,{845:1},zz),f.Pf=function(){var t,n;if(!this.b)for(this.b=Zq(Aee(this.a).i),n=new ln(Aee(this.a));n.e!=n.i.gc();)t=c(fn(n),158),Ue(this.b,new TY(t));return this.b},f.b=null,M(_C,"ElkGraphAdapters/ElkEdgeAdapter",556),E(250,554,{},xg),f.Qf=function(){return XZe(this)},f.a=null,M(_C,"ElkGraphAdapters/ElkGraphAdapter",250),E(637,554,{190:1},TY),M(_C,"ElkGraphAdapters/ElkLabelAdapter",637),E(555,554,{692:1},eq),f.Pf=function(){return Gqt(this)},f.Tf=function(){var t;return t=c(Ae(this.f,(Pn(),K1)),125),!t&&(t=new dT),t},f.Vf=function(){return Qqt(this)},f.Xf=function(t){var n;n=new KZ(t),ri(this.f,(Pn(),K1),n)},f.Yf=function(t){ri(this.f,(Pn(),$h),new spe(t))},f.Rf=function(){return this.d},f.Sf=function(){var t,n;if(!this.a)for(this.a=new Qe,n=new Gt(Xt(QG(c(this.f,19)).a.Jc(),new z));gn(n);)t=c(on(n),74),Ue(this.a,new zz(t));return this.a},f.Uf=function(){var t,n;if(!this.c)for(this.c=new Qe,n=new Gt(Xt(B1(c(this.f,19)).a.Jc(),new z));gn(n);)t=c(on(n),74),Ue(this.c,new zz(t));return this.c},f.Wf=function(){return Fq(c(this.f,19)).i!=0||it(nt(c(this.f,19).mf((Pn(),YP))))},f.Zf=function(){BIt(this,(k0(),Pvt))},f.a=null,f.b=null,f.c=null,f.d=null,f.e=null,M(_C,"ElkGraphAdapters/ElkNodeAdapter",555),E(1261,554,{844:1},OLe),f.Pf=function(){return Yqt(this)},f.Sf=function(){var t,n;if(!this.a)for(this.a=Pd(c(this.f,127).gh().i),n=new ln(c(this.f,127).gh());n.e!=n.i.gc();)t=c(fn(n),74),Ue(this.a,new zz(t));return this.a},f.Uf=function(){var t,n;if(!this.c)for(this.c=Pd(c(this.f,127).hh().i),n=new ln(c(this.f,127).hh());n.e!=n.i.gc();)t=c(fn(n),74),Ue(this.c,new zz(t));return this.c},f.$f=function(){return c(c(this.f,127).mf((Pn(),B3)),64)},f._f=function(){var t,n,i,r,o,a,d,b;for(r=wh(c(this.f,127)),i=new ln(c(this.f,127).hh());i.e!=i.i.gc();)for(t=c(fn(i),74),b=new ln((!t.c&&(t.c=new Et(yn,t,5,8)),t.c));b.e!=b.i.gc();){if(d=c(fn(b),83),hv(no(d),r))return!0;if(no(d)==r&&it(nt(Ae(t,(Pn(),Aae)))))return!0}for(n=new ln(c(this.f,127).gh());n.e!=n.i.gc();)for(t=c(fn(n),74),a=new ln((!t.b&&(t.b=new Et(yn,t,4,7)),t.b));a.e!=a.i.gc();)if(o=c(fn(a),83),hv(no(o),r))return!0;return!1},f.a=null,f.b=null,f.c=null,M(_C,"ElkGraphAdapters/ElkPortAdapter",1261),E(1262,1,Zn,u6),f.Le=function(t,n){return gKt(c(t,127),c(n,127))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M(_C,"ElkGraphAdapters/PortComparator",1262);var mp=er(Ta,"EObject"),y9=er(c3,zut),ea=er(c3,Fut),hI=er(c3,qut),dI=er(c3,"ElkShape"),yn=er(c3,Hut),$i=er(c3,X4e),Qi=er(c3,Gut),gI=er(Ta,Qut),sM=er(Ta,"EFactory"),Rvt,Wae=er(Ta,Uut),uh=er(Ta,"EPackage"),Xr,$vt,Bvt,tCe,AW,zvt,nCe,iCe,rCe,s1,Fvt,qvt,Bo=er(c3,K4e),Nn=er(c3,Y4e),hu=er(c3,Z4e);E(94,1,Jut),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(jk,"BasicNotifierImpl",94),E(101,94,Kut),f.Vh=function(){return bu(this)},f.vh=function(t,n){return t},f.wh=function(){throw K(new zn)},f.xh=function(t){var n;return n=Hs(c(Lt(this.Ah(),this.Ch()),20)),this.Mh().Qh(this,n.n,n.f,t)},f.yh=function(t,n){throw K(new zn)},f.zh=function(t,n,i){return Uu(this,t,n,i)},f.Ah=function(){var t;return this.wh()&&(t=this.wh().Lk(),t)?t:this.fi()},f.Bh=function(){return Tie(this)},f.Ch=function(){throw K(new zn)},f.Dh=function(){var t,n;return n=this.Xh().Mk(),!n&&this.wh().Rk(n=(ET(),t=yme(ud(this.Ah())),t==null?nfe:new q_(this,t))),n},f.Eh=function(t,n){return t},f.Fh=function(t){var n;return n=t.nk(),n?t.Jj():Yi(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 xG(this,t,n,i)},f.Jh=function(t){return fj(this,t)},f.Kh=function(t,n){return ate(this,t,n)},f.Lh=function(){var t;return t=this.wh(),!!t&&t.Pk()},f.Mh=function(){throw K(new zn)},f.Nh=function(){return pG(this)},f.Oh=function(t,n,i,r){return tk(this,t,n,r)},f.Ph=function(t,n,i){var r;return r=c(Lt(this.Ah(),n),69),r.uk().xk(this,this.ei(),n-this.gi(),t,i)},f.Qh=function(t,n,i,r){return Uq(this,t,n,r)},f.Rh=function(t,n,i){var r;return r=c(Lt(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 Ine(this,t)},f.Uh=function(t){return sQe(this,t)},f.Wh=function(t){return oot(this,t)},f.Xh=function(){throw K(new zn)},f.Yh=function(){return this.wh()?this.wh().Nk():null},f.Zh=function(){return pG(this)},f.$h=function(t,n){yie(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=Ns(a.Cl(),this,n),a.Gl(this)),r=this.Mh(),r&&(($ie(this,this.Mh(),this.Ch()).Bb&Ps)!=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=Yi(i,t),n=this.gi(),a>=n)return c(t,69).uk().Bk(this,this.ei(),a-n);if(a<=-1)if(d=Yy((Pl(),ms),i,t),d){if(qs(),c(d,69).vk()||(d=B4(uo(ms,d))),o=(r=this.Fh(d),c(r>=0?this.Ih(r,!0,!0):pw(this,d,!0),164)),v=d.Gk(),v>1||v==-1)return c(c(o,222).Ql(t,!1),78)}else throw K(new Ht(Y0+t.ve()+voe));else if(t.Hk())return r=this.Fh(t),c(r>=0?this.Ih(r,!1,!0):pw(this,t,!1),78);return b=new pBe(this,t),b},f.ei=function(){return Mbe(this)},f.fi=function(){return(E0(),Ut).S},f.gi=function(){return bn(this.fi())},f.hi=function(t){wie(this,t)},f.Ib=function(){return jf(this)},M(Vt,"BasicEObjectImpl",101);var Hvt;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=Ebe(this),n[t]},f.ji=function(t,n){var i;i=Ebe(this),br(i,t,n)},f.ki=function(t){var n;n=Ebe(this),br(n,t,null)},f.qh=function(){return c(Kt(this,4),131)},f.rh=function(){throw K(new zn)},f.sh=function(){return(this.Db&4)!=0},f.wh=function(){throw K(new zn)},f.li=function(t){Y4(this,2,t)},f.yh=function(t,n){this.Db=n<<16|this.Db&255,this.li(t)},f.Ah=function(){return dl(this)},f.Ch=function(){return this.Db>>16},f.Dh=function(){var t,n;return ET(),n=yme(ud((t=c(Kt(this,16),29),t||this.fi()))),n==null?nfe:new q_(this,n)},f.th=function(){return(this.Db&1)==0},f.Gh=function(){return c(Kt(this,128),2013)},f.Hh=function(){return c(Kt(this,16),29)},f.Lh=function(){return(this.Db&32)!=0},f.Mh=function(){return c(Kt(this,2),52)},f.Sh=function(){return(this.Db&64)!=0},f.Xh=function(){throw K(new zn)},f.Yh=function(){return c(Kt(this,64),291)},f._h=function(t){Y4(this,16,t)},f.ai=function(t){Y4(this,128,t)},f.bi=function(t){Y4(this,64,t)},f.ei=function(){return sl(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 G2e(this,t,n,i)},f.Rh=function(t,n,i){return Dve(this,t,n,i)},f.Th=function(t){return Pme(this,t)},f.$h=function(t,n){Mwe(this,t,n)},f.fi=function(){return uc(),qvt},f.hi=function(t){wwe(this,t)},f.lf=function(){return mZe(this)},f.fh=function(){return!this.o&&(this.o=new _l((uc(),s1),n0,this,0)),this.o},f.mf=function(t){return Ae(this,t)},f.nf=function(t){return ma(this,t)},f.of=function(t,n){return ri(this,t,n)},M(Mm,"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},A2),f.Ih=function(t,n,i){switch(t){case 0:return this.a;case 1:return this.b}return xG(this,t,n,i)},f.Th=function(t){switch(t){case 0:return this.a!=0;case 1:return this.b!=0}return Ine(this,t)},f.$h=function(t,n){switch(t){case 0:MH(this,ge(be(n)));return;case 1:EH(this,ge(be(n)));return}yie(this,t,n)},f.fi=function(){return uc(),$vt},f.hi=function(t){switch(t){case 0:MH(this,0);return;case 1:EH(this,0);return}wie(this,t)},f.Ib=function(){var t;return(this.Db&64)!=0?jf(this):(t=new za(jf(this)),t.a+=" (x: ",gy(t,this.a),t.a+=", y: ",gy(t,this.b),t.a+=")",t.a)},f.a=0,f.b=0,M(Mm,"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 Vwe(this,t,n,i)},f.Ph=function(t,n,i){return aie(this,t,n,i)},f.Rh=function(t,n,i){return Jte(this,t,n,i)},f.Th=function(t){return fwe(this,t)},f.$h=function(t,n){uve(this,t,n)},f.fi=function(){return uc(),zvt},f.hi=function(t){Qwe(this,t)},f.ih=function(){return this.k},f.jh=function(){return Aee(this)},f.Ib=function(){return xne(this)},f.k=null,M(Mm,"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 c2e(this,t,n,i)},f.Th=function(t){return b2e(this,t)},f.$h=function(t,n){ave(this,t,n)},f.fi=function(){return uc(),Fvt},f.hi=function(t){w2e(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){Fb(this,t,n)},f.ph=function(t,n){ha(this,t,n)},f.Ib=function(){return mie(this)},f.f=0,f.g=0,f.i=0,f.j=0,M(Mm,"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 $2e(this,t,n,i)},f.Ph=function(t,n,i){return ive(this,t,n,i)},f.Rh=function(t,n,i){return rve(this,t,n,i)},f.Th=function(t){return Owe(this,t)},f.$h=function(t,n){bxe(this,t,n)},f.fi=function(){return uc(),Bvt},f.hi=function(t){D2e(this,t)},f.gh=function(){return!this.d&&(this.d=new Et($i,this,8,5)),this.d},f.hh=function(){return!this.e&&(this.e=new Et($i,this,7,4)),this.e},M(Mm,"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},R8),f.xh=function(t){return Z2e(this,t)},f.Ih=function(t,n,i){switch(t){case 3:return sv(this);case 4:return!this.b&&(this.b=new Et(yn,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Et(yn,this,5,8)),this.c;case 6:return!this.a&&(this.a=new Le(Qi,this,6,6)),this.a;case 7:return zt(),!this.b&&(this.b=new Et(yn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Et(yn,this,5,8)),this.c.i<=1));case 8:return zt(),!!Z7(this);case 9:return zt(),!!gw(this);case 10:return zt(),!this.b&&(this.b=new Et(yn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Et(yn,this,5,8)),this.c.i!=0)}return Vwe(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?Z2e(this,i):this.Cb.Qh(this,-1-r,null,i))),L0e(this,c(t,19),i);case 4:return!this.b&&(this.b=new Et(yn,this,4,7)),Kc(this.b,t,i);case 5:return!this.c&&(this.c=new Et(yn,this,5,8)),Kc(this.c,t,i);case 6:return!this.a&&(this.a=new Le(Qi,this,6,6)),Kc(this.a,t,i)}return aie(this,t,n,i)},f.Rh=function(t,n,i){switch(n){case 3:return L0e(this,null,i);case 4:return!this.b&&(this.b=new Et(yn,this,4,7)),Ns(this.b,t,i);case 5:return!this.c&&(this.c=new Et(yn,this,5,8)),Ns(this.c,t,i);case 6:return!this.a&&(this.a=new Le(Qi,this,6,6)),Ns(this.a,t,i)}return Jte(this,t,n,i)},f.Th=function(t){switch(t){case 3:return!!sv(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Et(yn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Et(yn,this,5,8)),this.c.i<=1));case 8:return Z7(this);case 9:return gw(this);case 10:return!this.b&&(this.b=new Et(yn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Et(yn,this,5,8)),this.c.i!=0)}return fwe(this,t)},f.$h=function(t,n){switch(t){case 3:WG(this,c(n,19));return;case 4:!this.b&&(this.b=new Et(yn,this,4,7)),Mn(this.b),!this.b&&(this.b=new Et(yn,this,4,7)),dr(this.b,c(n,18));return;case 5:!this.c&&(this.c=new Et(yn,this,5,8)),Mn(this.c),!this.c&&(this.c=new Et(yn,this,5,8)),dr(this.c,c(n,18));return;case 6:!this.a&&(this.a=new Le(Qi,this,6,6)),Mn(this.a),!this.a&&(this.a=new Le(Qi,this,6,6)),dr(this.a,c(n,18));return}uve(this,t,n)},f.fi=function(){return uc(),tCe},f.hi=function(t){switch(t){case 3:WG(this,null);return;case 4:!this.b&&(this.b=new Et(yn,this,4,7)),Mn(this.b);return;case 5:!this.c&&(this.c=new Et(yn,this,5,8)),Mn(this.c);return;case 6:!this.a&&(this.a=new Le(Qi,this,6,6)),Mn(this.a);return}Qwe(this,t)},f.Ib=function(){return Sst(this)},M(Mm,"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},a6),f.xh=function(t){return V2e(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(ea,this,5)),this.a;case 6:return tQe(this);case 7:return n?Fne(this):this.i;case 8:return n?zne(this):this.f;case 9:return!this.g&&(this.g=new Et(Qi,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Et(Qi,this,10,9)),this.e;case 11:return this.d}return G2e(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?V2e(this,i):this.Cb.Qh(this,-1-o,null,i))),P0e(this,c(t,74),i);case 9:return!this.g&&(this.g=new Et(Qi,this,9,10)),Kc(this.g,t,i);case 10:return!this.e&&(this.e=new Et(Qi,this,10,9)),Kc(this.e,t,i)}return a=c(Lt((r=c(Kt(this,16),29),r||(uc(),AW)),n),69),a.uk().xk(this,sl(this),n-bn((uc(),AW)),t,i)},f.Rh=function(t,n,i){switch(n){case 5:return!this.a&&(this.a=new Nr(ea,this,5)),Ns(this.a,t,i);case 6:return P0e(this,null,i);case 9:return!this.g&&(this.g=new Et(Qi,this,9,10)),Ns(this.g,t,i);case 10:return!this.e&&(this.e=new Et(Qi,this,10,9)),Ns(this.e,t,i)}return Dve(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!!tQe(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 Pme(this,t)},f.$h=function(t,n){switch(t){case 1:rw(this,ge(be(n)));return;case 2:sw(this,ge(be(n)));return;case 3:nw(this,ge(be(n)));return;case 4:iw(this,ge(be(n)));return;case 5:!this.a&&(this.a=new Nr(ea,this,5)),Mn(this.a),!this.a&&(this.a=new Nr(ea,this,5)),dr(this.a,c(n,18));return;case 6:xit(this,c(n,74));return;case 7:IH(this,c(n,83));return;case 8:PH(this,c(n,83));return;case 9:!this.g&&(this.g=new Et(Qi,this,9,10)),Mn(this.g),!this.g&&(this.g=new Et(Qi,this,9,10)),dr(this.g,c(n,18));return;case 10:!this.e&&(this.e=new Et(Qi,this,10,9)),Mn(this.e),!this.e&&(this.e=new Et(Qi,this,10,9)),dr(this.e,c(n,18));return;case 11:ewe(this,qn(n));return}Mwe(this,t,n)},f.fi=function(){return uc(),AW},f.hi=function(t){switch(t){case 1:rw(this,0);return;case 2:sw(this,0);return;case 3:nw(this,0);return;case 4:iw(this,0);return;case 5:!this.a&&(this.a=new Nr(ea,this,5)),Mn(this.a);return;case 6:xit(this,null);return;case 7:IH(this,null);return;case 8:PH(this,null);return;case 9:!this.g&&(this.g=new Et(Qi,this,9,10)),Mn(this.g);return;case 10:!this.e&&(this.e=new Et(Qi,this,10,9)),Mn(this.e);return;case 11:ewe(this,null);return}wwe(this,t)},f.Ib=function(){return Nnt(this)},f.b=0,f.c=0,f.d=null,f.j=0,f.k=0,M(Mm,"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 Le(oi,this,0,3)),this.Ab):ba(this,t-bn(this.fi()),Lt((r=c(Kt(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 Le(oi,this,0,3)),Kc(this.Ab,t,i)):(o=c(Lt((r=c(Kt(this,16),29),r||this.fi()),n),69),o.uk().xk(this,sl(this),n-bn(this.fi()),t,i))},f.Rh=function(t,n,i){var r,o;return n==0?(!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Ns(this.Ab,t,i)):(o=c(Lt((r=c(Kt(this,16),29),r||this.fi()),n),69),o.uk().yk(this,sl(this),n-bn(this.fi()),t,i))},f.Th=function(t){var n;return t==0?!!this.Ab&&this.Ab.i!=0:pa(this,t-bn(this.fi()),Lt((n=c(Kt(this,16),29),n||this.fi()),t))},f.Wh=function(t){return Pye(this,t)},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab),!this.Ab&&(this.Ab=new Le(oi,this,0,3)),dr(this.Ab,c(n,18));return}Oa(this,t-bn(this.fi()),Lt((i=c(Kt(this,16),29),i||this.fi()),t),n)},f.ai=function(t){Y4(this,128,t)},f.fi=function(){return At(),cxt},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab);return}ka(this,t-bn(this.fi()),Lt((n=c(Kt(this,16),29),n||this.fi()),t))},f.mi=function(){this.Bb|=1},f.ni=function(t){return oC(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},W5),f.oi=function(t,n){return Zst(this,t,n)},f.pi=function(t){var n,i,r,o,a;if(this.a!=Fu(t)||(t.Bb&256)!=0)throw K(new Ht(yoe+t.zb+Aw));for(r=wo(t);wc(r.a).i!=0;){if(i=c(kL(r,0,(n=c(ae(wc(r.a),0),88),a=n.c,he(a,89)?c(a,29):(At(),sf))),29),dw(i))return o=Fu(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 Lqe(t):new ype(t)},f.qi=function(t,n){return vw(this,t,n)},f.Ih=function(t,n,i){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),this.Ab;case 1:return this.a}return ba(this,t-bn((At(),xp)),Lt((r=c(Kt(this,16),29),r||xp),t),n,i)},f.Ph=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Kc(this.Ab,t,i);case 1:return this.a&&(i=c(this.a,52).Qh(this,4,uh,i)),qwe(this,c(t,244),i)}return o=c(Lt((r=c(Kt(this,16),29),r||(At(),xp)),n),69),o.uk().xk(this,sl(this),n-bn((At(),xp)),t,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Ns(this.Ab,t,i);case 1:return qwe(this,null,i)}return o=c(Lt((r=c(Kt(this,16),29),r||(At(),xp)),n),69),o.uk().yk(this,sl(this),n-bn((At(),xp)),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 pa(this,t-bn((At(),xp)),Lt((n=c(Kt(this,16),29),n||xp),t))},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab),!this.Ab&&(this.Ab=new Le(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:stt(this,c(n,244));return}Oa(this,t-bn((At(),xp)),Lt((i=c(Kt(this,16),29),i||xp),t),n)},f.fi=function(){return At(),xp},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab);return;case 1:stt(this,null);return}ka(this,t-bn((At(),xp)),Lt((n=c(Kt(this,16),29),n||xp),t))};var oM,sCe,Gvt;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},Bp),f.oi=function(t,n){switch(t.fk()){case 12:return c(n,149).Og();case 13:return So(n);default:throw K(new Ht(AS+t.ve()+Aw))}},f.pi=function(t){var n,i,r,o,a,d,b,v;switch(t.G==-1&&(t.G=(n=Fu(t),n?zg(n.si(),t):-1)),t.G){case 4:return a=new wN,a;case 6:return d=new gT,d;case 7:return b=new T1e,b;case 8:return r=new R8,r;case 9:return i=new A2,i;case 10:return o=new a6,o;case 11:return v=new vN,v;default:throw K(new Ht(yoe+t.zb+Aw))}},f.qi=function(t,n){switch(t.fk()){case 13:case 12:return null;default:throw K(new Ht(AS+t.ve()+Aw))}},M(Mm,"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(Kt(this,16),29),yme(ud(t||this.fi()))),n==null?(ET(),ET(),nfe):new Zze(this,n)},f.Ih=function(t,n,i){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),this.Ab;case 1:return this.ve()}return ba(this,t-bn(this.fi()),Lt((r=c(Kt(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 pa(this,t-bn(this.fi()),Lt((n=c(Kt(this,16),29),n||this.fi()),t))},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab),!this.Ab&&(this.Ab=new Le(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:this.ri(qn(n));return}Oa(this,t-bn(this.fi()),Lt((i=c(Kt(this,16),29),i||this.fi()),t),n)},f.fi=function(){return At(),lxt},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab);return;case 1:this.ri(null);return}ka(this,t-bn(this.fi()),Lt((n=c(Kt(this,16),29),n||this.fi()),t))},f.ve=function(){return this.zb},f.ri=function(t){Xc(this,t)},f.Ib=function(){return D7(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},DGe),f.xh=function(t){return det(this,t)},f.Ih=function(t,n,i){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(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 tv(this,ah,this)),this.rb;case 6:return!this.vb&&(this.vb=new C4(uh,this,6,7)),this.vb;case 7:return n?this.Db>>16==7?c(this.Cb,244):null:aQe(this)}return ba(this,t-bn((At(),o0)),Lt((r=c(Kt(this,16),29),r||o0),t),n,i)},f.Ph=function(t,n,i){var r,o,a;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Kc(this.Ab,t,i);case 4:return this.sb&&(i=c(this.sb,52).Qh(this,1,sM,i)),Uwe(this,c(t,472),i);case 5:return!this.rb&&(this.rb=new tv(this,ah,this)),Kc(this.rb,t,i);case 6:return!this.vb&&(this.vb=new C4(uh,this,6,7)),Kc(this.vb,t,i);case 7:return this.Cb&&(i=(o=this.Db>>16,o>=0?det(this,i):this.Cb.Qh(this,-1-o,null,i))),Uu(this,t,7,i)}return a=c(Lt((r=c(Kt(this,16),29),r||(At(),o0)),n),69),a.uk().xk(this,sl(this),n-bn((At(),o0)),t,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Ns(this.Ab,t,i);case 4:return Uwe(this,null,i);case 5:return!this.rb&&(this.rb=new tv(this,ah,this)),Ns(this.rb,t,i);case 6:return!this.vb&&(this.vb=new C4(uh,this,6,7)),Ns(this.vb,t,i);case 7:return Uu(this,null,7,i)}return o=c(Lt((r=c(Kt(this,16),29),r||(At(),o0)),n),69),o.uk().yk(this,sl(this),n-bn((At(),o0)),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!!aQe(this)}return pa(this,t-bn((At(),o0)),Lt((n=c(Kt(this,16),29),n||o0),t))},f.Wh=function(t){var n;return n=_Vt(this,t),n||Pye(this,t)},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab),!this.Ab&&(this.Ab=new Le(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Xc(this,qn(n));return;case 2:FH(this,qn(n));return;case 3:zH(this,qn(n));return;case 4:pie(this,c(n,472));return;case 5:!this.rb&&(this.rb=new tv(this,ah,this)),Mn(this.rb),!this.rb&&(this.rb=new tv(this,ah,this)),dr(this.rb,c(n,18));return;case 6:!this.vb&&(this.vb=new C4(uh,this,6,7)),Mn(this.vb),!this.vb&&(this.vb=new C4(uh,this,6,7)),dr(this.vb,c(n,18));return}Oa(this,t-bn((At(),o0)),Lt((i=c(Kt(this,16),29),i||o0),t),n)},f.bi=function(t){var n,i;if(t&&this.rb)for(i=new ln(this.rb);i.e!=i.i.gc();)n=fn(i),he(n,361)&&(c(n,361).w=null);Y4(this,64,t)},f.fi=function(){return At(),o0},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab);return;case 1:Xc(this,null);return;case 2:FH(this,null);return;case 3:zH(this,null);return;case 4:pie(this,null);return;case 5:!this.rb&&(this.rb=new tv(this,ah,this)),Mn(this.rb);return;case 6:!this.vb&&(this.vb=new C4(uh,this,6,7)),Mn(this.vb);return}ka(this,t-bn((At(),o0)),Lt((n=c(Kt(this,16),29),n||o0),t))},f.mi=function(){eie(this)},f.si=function(){return!this.rb&&(this.rb=new tv(this,ah,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?D7(this):(t=new za(D7(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},Bnt),f.q=!1,f.r=!1;var Qvt=!1;M(Mm,"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},wN),f.xh=function(t){return X2e(this,t)},f.Ih=function(t,n,i){switch(t){case 7:return Tme(this);case 8:return this.a}return c2e(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?X2e(this,i):this.Cb.Qh(this,-1-r,null,i))),Ppe(this,c(t,176),i)}return aie(this,t,n,i)},f.Rh=function(t,n,i){return n==7?Ppe(this,null,i):Jte(this,t,n,i)},f.Th=function(t){switch(t){case 7:return!!Tme(this);case 8:return!jt("",this.a)}return b2e(this,t)},f.$h=function(t,n){switch(t){case 7:Dxe(this,c(n,176));return;case 8:Kbe(this,qn(n));return}ave(this,t,n)},f.fi=function(){return uc(),nCe},f.hi=function(t){switch(t){case 7:Dxe(this,null);return;case 8:Kbe(this,"");return}w2e(this,t)},f.Ib=function(){return Stt(this)},f.a="",M(Mm,"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},gT),f.xh=function(t){return eve(this,t)},f.Ih=function(t,n,i){switch(t){case 9:return!this.c&&(this.c=new Le(hu,this,9,9)),this.c;case 10:return!this.a&&(this.a=new Le(Nn,this,10,11)),this.a;case 11:return Ki(this);case 12:return!this.b&&(this.b=new Le($i,this,12,3)),this.b;case 13:return zt(),!this.a&&(this.a=new Le(Nn,this,10,11)),this.a.i>0}return $2e(this,t,n,i)},f.Ph=function(t,n,i){var r;switch(n){case 9:return!this.c&&(this.c=new Le(hu,this,9,9)),Kc(this.c,t,i);case 10:return!this.a&&(this.a=new Le(Nn,this,10,11)),Kc(this.a,t,i);case 11:return this.Cb&&(i=(r=this.Db>>16,r>=0?eve(this,i):this.Cb.Qh(this,-1-r,null,i))),U0e(this,c(t,19),i);case 12:return!this.b&&(this.b=new Le($i,this,12,3)),Kc(this.b,t,i)}return ive(this,t,n,i)},f.Rh=function(t,n,i){switch(n){case 9:return!this.c&&(this.c=new Le(hu,this,9,9)),Ns(this.c,t,i);case 10:return!this.a&&(this.a=new Le(Nn,this,10,11)),Ns(this.a,t,i);case 11:return U0e(this,null,i);case 12:return!this.b&&(this.b=new Le($i,this,12,3)),Ns(this.b,t,i)}return rve(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!!Ki(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new Le(Nn,this,10,11)),this.a.i>0}return Owe(this,t)},f.$h=function(t,n){switch(t){case 9:!this.c&&(this.c=new Le(hu,this,9,9)),Mn(this.c),!this.c&&(this.c=new Le(hu,this,9,9)),dr(this.c,c(n,18));return;case 10:!this.a&&(this.a=new Le(Nn,this,10,11)),Mn(this.a),!this.a&&(this.a=new Le(Nn,this,10,11)),dr(this.a,c(n,18));return;case 11:VG(this,c(n,19));return;case 12:!this.b&&(this.b=new Le($i,this,12,3)),Mn(this.b),!this.b&&(this.b=new Le($i,this,12,3)),dr(this.b,c(n,18));return}bxe(this,t,n)},f.fi=function(){return uc(),iCe},f.hi=function(t){switch(t){case 9:!this.c&&(this.c=new Le(hu,this,9,9)),Mn(this.c);return;case 10:!this.a&&(this.a=new Le(Nn,this,10,11)),Mn(this.a);return;case 11:VG(this,null);return;case 12:!this.b&&(this.b=new Le($i,this,12,3)),Mn(this.b);return}D2e(this,t)},f.Ib=function(){return Vxe(this)},M(Mm,"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},T1e),f.xh=function(t){return K2e(this,t)},f.Ih=function(t,n,i){return t==9?wh(this):$2e(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?K2e(this,i):this.Cb.Qh(this,-1-r,null,i))),I0e(this,c(t,19),i)}return ive(this,t,n,i)},f.Rh=function(t,n,i){return n==9?I0e(this,null,i):rve(this,t,n,i)},f.Th=function(t){return t==9?!!wh(this):Owe(this,t)},f.$h=function(t,n){switch(t){case 9:Exe(this,c(n,19));return}bxe(this,t,n)},f.fi=function(){return uc(),rCe},f.hi=function(t){switch(t){case 9:Exe(this,null);return}D2e(this,t)},f.Ib=function(){return vrt(this)},M(Mm,"ElkPortImpl",196);var Uvt=er(_s,"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},vN),f.Fb=function(t){return this===t},f.jd=function(){return this.b},f.Hb=function(){return Hb(this)},f.Ai=function(t){Jbe(this,c(t,149))},f.Ih=function(t,n,i){switch(t){case 0:return this.b;case 1:return this.c}return xG(this,t,n,i)},f.Th=function(t){switch(t){case 0:return!!this.b;case 1:return this.c!=null}return Ine(this,t)},f.$h=function(t,n){switch(t){case 0:Jbe(this,c(n,149));return;case 1:Wbe(this,n);return}yie(this,t,n)},f.fi=function(){return uc(),s1},f.hi=function(t){switch(t){case 0:Jbe(this,null);return;case 1:Wbe(this,null);return}wie(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,Wbe(this,t),n},f.Ib=function(){var t;return(this.Db&64)!=0?jf(this):(t=new v0,ti(ti(ti(t,this.b?this.b.Og():wl),ese),WT(this.c)),t.a)},f.a=-1,f.c=null;var n0=M(Mm,"ElkPropertyToValueMapEntryImpl",1103);E(989,1,{},yB),M(fs,"JsonAdapter",989),E(218,63,q1,Kh),M(fs,"JsonImportException",218),E(859,1,{},Lnt),M(fs,"JsonImporter",859),E(893,1,{},eBe),f.Bi=function(t){Oet(this.a,this.b,c(t,142))},M(fs,"JsonImporter/lambda$0$Type",893),E(894,1,{},tBe),f.Bi=function(t){fnt(this.a,this.b,c(t,142))},M(fs,"JsonImporter/lambda$1$Type",894),E(902,1,{},jLe),f.Bi=function(t){uGe(this.a,c(t,150))},M(fs,"JsonImporter/lambda$10$Type",902),E(904,1,{},nBe),f.Bi=function(t){Ktt(this.a,this.b,c(t,142))},M(fs,"JsonImporter/lambda$11$Type",904),E(905,1,{},iBe),f.Bi=function(t){Ytt(this.a,this.b,c(t,142))},M(fs,"JsonImporter/lambda$12$Type",905),E(911,1,{},vGe),f.Bi=function(t){ytt(this.a,this.b,this.c,this.d,c(t,142))},M(fs,"JsonImporter/lambda$13$Type",911),E(910,1,{},xGe),f.Bi=function(t){Frt(this.a,this.b,this.c,this.d,c(t,150))},M(fs,"JsonImporter/lambda$14$Type",910),E(906,1,{},rBe),f.Bi=function(t){NFe(this.a,this.b,qn(t))},M(fs,"JsonImporter/lambda$15$Type",906),E(907,1,{},sBe),f.Bi=function(t){_Fe(this.a,this.b,qn(t))},M(fs,"JsonImporter/lambda$16$Type",907),E(908,1,{},aBe),f.Bi=function(t){iet(this.b,this.a,c(t,142))},M(fs,"JsonImporter/lambda$17$Type",908),E(909,1,{},fBe),f.Bi=function(t){ret(this.b,this.a,c(t,142))},M(fs,"JsonImporter/lambda$18$Type",909),E(914,1,{},SLe),f.Bi=function(t){ftt(this.a,c(t,150))},M(fs,"JsonImporter/lambda$19$Type",914),E(895,1,{},TLe),f.Bi=function(t){met(this.a,c(t,142))},M(fs,"JsonImporter/lambda$2$Type",895),E(912,1,{},CLe),f.Bi=function(t){rw(this.a,ge(be(t)))},M(fs,"JsonImporter/lambda$20$Type",912),E(913,1,{},ELe),f.Bi=function(t){sw(this.a,ge(be(t)))},M(fs,"JsonImporter/lambda$21$Type",913),E(917,1,{},MLe),f.Bi=function(t){att(this.a,c(t,150))},M(fs,"JsonImporter/lambda$22$Type",917),E(915,1,{},ALe),f.Bi=function(t){nw(this.a,ge(be(t)))},M(fs,"JsonImporter/lambda$23$Type",915),E(916,1,{},NLe),f.Bi=function(t){iw(this.a,ge(be(t)))},M(fs,"JsonImporter/lambda$24$Type",916),E(919,1,{},_Le),f.Bi=function(t){Pet(this.a,c(t,142))},M(fs,"JsonImporter/lambda$25$Type",919),E(918,1,{},DLe),f.Bi=function(t){aGe(this.a,c(t,150))},M(fs,"JsonImporter/lambda$26$Type",918),E(920,1,un,hBe),f.Ad=function(t){kIt(this.b,this.a,qn(t))},M(fs,"JsonImporter/lambda$27$Type",920),E(921,1,un,dBe),f.Ad=function(t){OIt(this.b,this.a,qn(t))},M(fs,"JsonImporter/lambda$28$Type",921),E(922,1,{},oBe),f.Bi=function(t){Jnt(this.a,this.b,c(t,142))},M(fs,"JsonImporter/lambda$29$Type",922),E(898,1,{},LLe),f.Bi=function(t){SYe(this.a,c(t,150))},M(fs,"JsonImporter/lambda$3$Type",898),E(923,1,{},cBe),f.Bi=function(t){mit(this.a,this.b,c(t,142))},M(fs,"JsonImporter/lambda$30$Type",923),E(924,1,{},PLe),f.Bi=function(t){WWe(this.a,be(t))},M(fs,"JsonImporter/lambda$31$Type",924),E(925,1,{},ILe),f.Bi=function(t){VWe(this.a,be(t))},M(fs,"JsonImporter/lambda$32$Type",925),E(926,1,{},RLe),f.Bi=function(t){XWe(this.a,be(t))},M(fs,"JsonImporter/lambda$33$Type",926),E(927,1,{},$Le),f.Bi=function(t){KWe(this.a,be(t))},M(fs,"JsonImporter/lambda$34$Type",927),E(928,1,{},BLe),f.Bi=function(t){SQt(this.a,c(t,57))},M(fs,"JsonImporter/lambda$35$Type",928),E(929,1,{},zLe),f.Bi=function(t){TQt(this.a,c(t,57))},M(fs,"JsonImporter/lambda$36$Type",929),E(933,1,{},wGe),M(fs,"JsonImporter/lambda$37$Type",933),E(930,1,un,iqe),f.Ad=function(t){e$t(this.a,this.c,this.b,c(t,373))},M(fs,"JsonImporter/lambda$38$Type",930),E(931,1,un,lBe),f.Ad=function(t){vTt(this.a,this.b,c(t,171))},M(fs,"JsonImporter/lambda$39$Type",931),E(896,1,{},FLe),f.Bi=function(t){rw(this.a,ge(be(t)))},M(fs,"JsonImporter/lambda$4$Type",896),E(932,1,un,uBe),f.Ad=function(t){xTt(this.a,this.b,c(t,171))},M(fs,"JsonImporter/lambda$40$Type",932),E(934,1,un,rqe),f.Ad=function(t){t$t(this.a,this.b,this.c,c(t,8))},M(fs,"JsonImporter/lambda$41$Type",934),E(897,1,{},qLe),f.Bi=function(t){sw(this.a,ge(be(t)))},M(fs,"JsonImporter/lambda$5$Type",897),E(901,1,{},HLe),f.Bi=function(t){TYe(this.a,c(t,150))},M(fs,"JsonImporter/lambda$6$Type",901),E(899,1,{},GLe),f.Bi=function(t){nw(this.a,ge(be(t)))},M(fs,"JsonImporter/lambda$7$Type",899),E(900,1,{},QLe),f.Bi=function(t){iw(this.a,ge(be(t)))},M(fs,"JsonImporter/lambda$8$Type",900),E(903,1,{},ULe),f.Bi=function(t){Iet(this.a,c(t,142))},M(fs,"JsonImporter/lambda$9$Type",903),E(953,1,un,JLe),f.Ad=function(t){P4(this.a,new iv(qn(t)))},M(fs,"JsonMetaDataConverter/lambda$0$Type",953),E(954,1,un,WLe),f.Ad=function(t){xNt(this.a,c(t,235))},M(fs,"JsonMetaDataConverter/lambda$1$Type",954),E(955,1,un,VLe),f.Ad=function(t){vDt(this.a,c(t,144))},M(fs,"JsonMetaDataConverter/lambda$2$Type",955),E(956,1,un,XLe),f.Ad=function(t){yNt(this.a,c(t,161))},M(fs,"JsonMetaDataConverter/lambda$3$Type",956),E(235,23,{3:1,34:1,23:1,235:1},x4);var NW,_W,Vae,pI,DW,mI,Xae,Kae,bI=vn($L,"GraphFeature",235,Sn,tRt,rAt),Jvt;E(11,1,{34:1,149:1},mi,Gi,xt,Qr),f.Dd=function(t){return y7t(this,c(t,149))},f.Fb=function(t){return HGe(this,t)},f.Rg=function(){return Ke(this)},f.Og=function(){return this.b},f.Hb=function(){return Pg(this.b)},f.Ib=function(){return this.b},M($L,"Property",11),E(664,1,Zn,fY),f.Le=function(t,n){return dzt(this,c(t,105),c(n,105))},f.Fb=function(t){return this===t},f.Me=function(){return new Vn(this)},M($L,"PropertyHolderComparator",664),E(705,1,ns,f1e),f.Nb=function(t){ps(this,t)},f.Pb=function(){return CIt(this)},f.Qb=function(){qIe()},f.Ob=function(){return!!this.a},M(rU,"ElkGraphUtil/AncestorIterator",705);var oCe=er(_s,"EList");E(71,56,{22:1,32:1,56:1,18:1,16:1,71:1,61:1}),f._c=function(t,n){I7(this,t,n)},f.Ec=function(t){return Dn(this,t)},f.ad=function(t,n){return xwe(this,t,n)},f.Fc=function(t){return dr(this,t)},f.Gi=function(){return new S4(this)},f.Hi=function(){return new F_(this)},f.Ii=function(t){return ND(this,t)},f.Ji=function(){return!0},f.Ki=function(t,n){},f.Li=function(){},f.Mi=function(t,n){pte(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 nrt(this,t)},f.Hb=function(){return pwe(this)},f.Qi=function(){return!1},f.Jc=function(){return new ln(this)},f.cd=function(){return new T4(this)},f.dd=function(t){var n;if(n=this.gc(),t<0||t>n)throw K(new K2(t,n));return new yee(this,t)},f.Si=function(t,n){this.Ri(t,this.bd(n))},f.Kc=function(t){return kH(this,t)},f.Ui=function(t,n){return n},f.fd=function(t,n){return Hy(this,t,n)},f.Ib=function(){return h2e(this)},f.Wi=function(){return!0},f.Xi=function(t,n){return Tj(this,n)},M(_s,"AbstractEList",71),E(67,71,bd,B5,tw,lwe),f.Ci=function(t,n){return fie(this,t,n)},f.Di=function(t){return $Ze(this,t)},f.Ei=function(t,n){GD(this,t,n)},f.Fi=function(t){gD(this,t)},f.Yi=function(t){return jbe(this,t)},f.$b=function(){w7(this)},f.Gc=function(t){return qj(this,t)},f.Xb=function(t){return ae(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&&yc(r,0,this.g,0,this.i))},f.bd=function(t){return cet(this,t)},f.dc=function(){return this.i==0},f.Ri=function(t,n){return jie(this,t,n)},f.$i=function(t){return Ce(Br,It,1,t,5,1)},f.Ti=function(t){return this.g[t]},f.ed=function(t){return nk(this,t)},f.Vi=function(t,n){return Ste(this,t,n)},f.gc=function(){return this.i},f.Nc=function(){return Gme(this)},f.Oc=function(t){return x2e(this,t)},f.i=0;var cCe=M(_s,"BasicEList",67),lCe=er(_s,"TreeIterator");E(704,67,_oe),f.Nb=function(t){ps(this,t)},f.Ob=function(){return this.g==null&&!this.c?Sme(this):this.g==null||this.i!=0&&c(this.g[this.i-1],51).Ob()},f.Pb=function(){return GG(this)},f.Qb=function(){if(!this.e)throw K(new oo("There is no valid object to remove."));this.e.Qb()},f.c=!1,M(_s,"AbstractTreeIterator",704),E(611,704,_oe,SZ),f._i=function(t){var n;return n=c(t,57).Dh().Jc(),he(n,289)&&c(n,289).ul(new xN),n},M(rU,"ElkGraphUtil/PropertiesSkippingTreeIterator",611),E(957,1,{},xN),M(rU,"ElkGraphUtil/PropertiesSkippingTreeIterator/1",957);var wI,Yae,vI=M(rU,"ElkReflect",null);E(891,1,zv,$8),f.Qg=function(t){return Xq(),cLt(c(t,185))},M(rU,"ElkReflect/lambda$0$Type",891);var bp;er(_s,"ResourceLocator"),E(1056,1,{}),M(_s,"DelegatingResourceLocator",1056),E(1057,1056,{}),M("org.eclipse.emf.common","EMFPlugin",1057);var Zae=er(Pat,"Adapter"),Vin=er(Pat,"Notification");E(1155,1,gke),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(jk,"AdapterImpl",1155),E(2072,71,Iat),f.Ci=function(t,n){return p2e(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){dFe(this,t,n)},f.Fi=function(t){GHe(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 Ave(this,t,n)},f.Ti=function(t){return this.vj(t)},f.ed=function(t){return bq(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(_s,"DelegatingEList",2072),E(2073,2072,Iat),f.Ci=function(t,n){return uye(this,t,n)},f.Di=function(t){return this.Ci(this.Cj(),t)},f.Ei=function(t,n){znt(this,t,n)},f.Fi=function(t){Mnt(this,t)},f.Ji=function(){return!this.Kj()},f.$b=function(){hC(this)},f.Gj=function(t,n,i,r,o){return new FGe(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=Ave(this,t,n),this.Hj(this.Gj(7,ze(n),i,t,r)),i):Ave(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=bq(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=bq(this,t),this.Kj()&&o&&(i=this.Mj(o,null),i&&i.mj()),o)},f.Vi=function(t,n){return Zrt(this,t,n)},M(jk,"DelegatingNotifyingListImpl",2073),E(152,1,nP),f.lj=function(t){return pve(this,t)},f.mj=function(){xte(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 Rit(this)},f.hj=function(){return null},f.ij=function(){return $xe(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,k,T,A;switch(this.d){case 1:case 2:switch(o=t.ej(),o){case 1:case 2:if(a=t.hj(),Se(a)===Se(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(),Se(a)===Se(this.hj())&&this.fj(null)==t.fj(null))return k=Cye(this),v=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,d=t.jj(),this.d=6,A=new tw(2),v<=d?(Dn(A,this.n),Dn(A,t.ij()),this.g=ee(Z(Hn,1),li,30,15,[this.o=v,d+1])):(Dn(A,t.ij()),Dn(A,this.n),this.g=ee(Z(Hn,1),li,30,15,[this.o=d,v])),this.n=A,k||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(o=t.ej(),o){case 4:{if(a=t.hj(),Se(a)===Se(this.hj())&&this.fj(null)==t.fj(null)){for(k=Cye(this),d=t.jj(),T=c(this.g,54),r=Ce(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,k||(this.o=-2-r[0]),!0}break}}break}}return!1},f.Ib=function(){var t,n,i,r;switch(r=new za(Up(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:{PY(r,this.d);break}}if(Trt(this)&&(r.a+=", touch: true"),r.a+=", position: ",PY(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=", notifier: ",qT(r,this.hj()),r.a+=", feature: ",qT(r,this.Ij()),r.a+=", oldValue: ",qT(r,$xe(this)),r.a+=", newValue: ",this.d==6&&he(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+=Yc);r.a+="]"}else qT(r,Rit(this));return r.a+=", isTouch: ",Og(r,Trt(this)),r.a+=", wasSet: ",Og(r,Cye(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(jk,"NotificationImpl",152),E(1169,152,nP,FGe),f.Ij=function(){return this.a.Ij()},f.fj=function(t){return this.a.Jj()},f.hj=function(){return this.a.hj()},M(jk,"DelegatingNotifyingListImpl/1",1169),E(255,67,bd,kB,x0),f.Ec=function(t){return NYe(this,c(t,374))},f.lj=function(t){return NYe(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 Ce(Vin,It,374,t,0,1)},M(jk,"NotificationChainImpl",255),E(1502,94,Jut),f.rh=function(){return this.e},f.th=function(){return(this.f&1)!=0},f.f=1,M(jk,"NotifierImpl",1502),E(2070,67,bd),f.Ci=function(t,n){return Hie(this,t,n)},f.Di=function(t){return this.Ci(this.i,t)},f.Ei=function(t,n){lxe(this,t,n)},f.Fi=function(t){Sie(this,t)},f.Ji=function(){return!this.Kj()},f.$b=function(){Mn(this)},f.Gj=function(t,n,i,r,o){return new qGe(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 R7(this,t,n)},f.ed=function(t){return Mv(this,t)},f.Vi=function(t,n){return bst(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(jk,"NotifyingListImpl",2070),E(1168,152,nP,qGe),f.Ij=function(){return this.a.Ij()},f.fj=function(t){return this.a.Jj()},f.hj=function(){return this.a.hj()},M(jk,"NotifyingListImpl/1",1168),E(958,67,bd,pFe),f.Gc=function(t){return this.i>10?((!this.b||this.c.j!=this.a)&&(this.b=new Y2(this),this.a=this.j),Ba(this.b,t)):qj(this,t)},f.Wi=function(){return!0},f.a=0,M(_s,"AbstractEList/1",958),E(306,99,wQ,K2),M(_s,"AbstractEList/BasicIndexOutOfBoundsException",306),E(39,1,ns,ln),f.Nb=function(t){ps(this,t)},f.Vj=function(){if(this.i.j!=this.f)throw K(new fa)},f.Wj=function(){return fn(this)},f.Ob=function(){return this.e!=this.i.gc()},f.Pb=function(){return this.Wj()},f.Qb=function(){J7(this)},f.e=0,f.f=0,f.g=-1,M(_s,"AbstractEList/EIterator",39),E(288,39,Ud,T4,yee),f.Qb=function(){J7(this)},f.Rb=function(t){FYe(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),he(n,99)?(this.Vj(),K(new Eo)):K(n)}},f.Yj=function(t){BZe(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(_s,"AbstractEList/EListIterator",288),E(356,39,ns,S4),f.Wj=function(){return Rne(this)},f.Qb=function(){throw K(new zn)},M(_s,"AbstractEList/NonResolvingEIterator",356),E(393,288,Ud,F_,Z0e),f.Rb=function(t){throw K(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),he(n,99)?(this.Vj(),K(new Eo)):K(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),he(n,99)?(this.Vj(),K(new Eo)):K(n)}},f.Qb=function(){throw K(new zn)},f.Wb=function(t){throw K(new zn)},M(_s,"AbstractEList/NonResolvingEListIterator",393),E(2059,71,Rat),f.Ci=function(t,n){var i,r,o,a,d,b,v,k,T,A,L;if(o=n.gc(),o!=0){for(k=c(Kt(this.a,4),131),T=k==null?0:k.length,L=T+o,r=one(this,L),A=T-t,A>0&&yc(k,t,r,t+o,A),v=n.Jc(),d=0;d<o;++d)b=v.Pb(),i=t+d,MZ(r,i,Tj(this,b));for(Bj(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,k;if(r=t.gc(),r!=0){for(v=(i=c(Kt(this.a,4),131),i==null?0:i.length),k=v+r,n=one(this,k),b=t.Jc(),a=v;a<k;++a)d=b.Pb(),MZ(n,a,Tj(this,d));for(Bj(this,n),o=v;o<k;++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(Kt(this.a,4),131),o=r==null?0:r.length,i=one(this,o+1),a=Tj(this,n),t!=o&&yc(r,t,i,t+1,o-t),br(i,t,a),Bj(this,i),this.Ki(t,n)},f.Fi=function(t){var n,i,r;r=(i=c(Kt(this.a,4),131),i==null?0:i.length),n=one(this,r+1),MZ(n,r,Tj(this,t)),Bj(this,n),this.Ki(r,t)},f.Gi=function(){return new wJe(this)},f.Hi=function(){return new OHe(this)},f.Ii=function(t){var n,i;if(i=(n=c(Kt(this.a,4),131),n==null?0:n.length),t<0||t>i)throw K(new K2(t,i));return new ZHe(this,t)},f.$b=function(){var t,n;++this.j,t=c(Kt(this.a,4),131),n=t==null?0:t.length,Bj(this,null),pte(this,n,t)},f.Gc=function(t){var n,i,r,o,a;if(n=c(Kt(this.a,4),131),n!=null){if(t!=null){for(r=n,o=0,a=r.length;o<a;++o)if(i=r[o],ki(t,i))return!0}else for(r=n,o=0,a=r.length;o<a;++o)if(i=r[o],Se(i)===Se(t))return!0}return!1},f.Xb=function(t){var n,i;if(n=c(Kt(this.a,4),131),i=n==null?0:n.length,t>=i)throw K(new K2(t,i));return n[t]},f.bd=function(t){var n,i,r;if(n=c(Kt(this.a,4),131),n!=null){if(t!=null){for(i=0,r=n.length;i<r;++i)if(ki(t,n[i]))return i}else for(i=0,r=n.length;i<r;++i)if(Se(n[i])===Se(t))return i}return-1},f.dc=function(){return c(Kt(this.a,4),131)==null},f.Jc=function(){return new bJe(this)},f.cd=function(){return new kHe(this)},f.dd=function(t){var n,i;if(i=(n=c(Kt(this.a,4),131),n==null?0:n.length),t<0||t>i)throw K(new K2(t,i));return new YHe(this,t)},f.Ri=function(t,n){var i,r,o;if(i=WYe(this),o=i==null?0:i.length,t>=o)throw K(new Qc(Aoe+t+Am+o));if(n>=o)throw K(new Qc(Noe+n+Am+o));return r=i[n],t!=n&&(t<n?yc(i,t,i,t+1,n-t):yc(i,n+1,i,n,t-n),br(i,t,r),Bj(this,i)),r},f.Ti=function(t){return c(Kt(this.a,4),131)[t]},f.ed=function(t){return MJt(this,t)},f.Vi=function(t,n){var i,r;return i=WYe(this),r=i[t],MZ(i,t,Tj(this,n)),Bj(this,i),r},f.gc=function(){var t;return t=c(Kt(this.a,4),131),t==null?0:t.length},f.Nc=function(){var t,n,i;return t=c(Kt(this.a,4),131),i=t==null?0:t.length,n=Ce(Zae,Ioe,420,i,0,1),i>0&&yc(t,0,n,0,i),n},f.Oc=function(t){var n,i,r;return n=c(Kt(this.a,4),131),r=n==null?0:n.length,r>0&&(t.length<r&&(i=AD(ju(t).c,r),t=i),yc(n,0,t,0,r)),t.length>r&&br(t,r,null),t};var Wvt;M(_s,"ArrayDelegatingEList",2059),E(1043,39,ns,bJe),f.Vj=function(){if(this.b.j!=this.f||Se(c(Kt(this.b.a,4),131))!==Se(this.a))throw K(new fa)},f.Qb=function(){J7(this),this.a=c(Kt(this.b.a,4),131)},M(_s,"ArrayDelegatingEList/EIterator",1043),E(719,288,Ud,kHe,YHe),f.Vj=function(){if(this.b.j!=this.f||Se(c(Kt(this.b.a,4),131))!==Se(this.a))throw K(new fa)},f.Yj=function(t){BZe(this,t),this.a=c(Kt(this.b.a,4),131)},f.Qb=function(){J7(this),this.a=c(Kt(this.b.a,4),131)},M(_s,"ArrayDelegatingEList/EListIterator",719),E(1044,356,ns,wJe),f.Vj=function(){if(this.b.j!=this.f||Se(c(Kt(this.b.a,4),131))!==Se(this.a))throw K(new fa)},M(_s,"ArrayDelegatingEList/NonResolvingEIterator",1044),E(720,393,Ud,OHe,ZHe),f.Vj=function(){if(this.b.j!=this.f||Se(c(Kt(this.b.a,4),131))!==Se(this.a))throw K(new fa)},M(_s,"ArrayDelegatingEList/NonResolvingEListIterator",720),E(612,306,wQ,kZ),M(_s,"BasicEList/BasicIndexOutOfBoundsException",612),E(706,67,bd,zge),f._c=function(t,n){throw K(new zn)},f.Ec=function(t){throw K(new zn)},f.ad=function(t,n){throw K(new zn)},f.Fc=function(t){throw K(new zn)},f.$b=function(){throw K(new zn)},f.Zi=function(t){throw K(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 K(new zn)},f.Si=function(t,n){throw K(new zn)},f.ed=function(t){throw K(new zn)},f.Kc=function(t){throw K(new zn)},f.fd=function(t,n){throw K(new zn)},M(_s,"BasicEList/UnmodifiableEList",706),E(718,1,{3:1,22:1,18:1,16:1,61:1,593:1}),f._c=function(t,n){u7t(this,t,c(n,45))},f.Ec=function(t){return cCt(this,c(t,45))},f.Ic=function(t){ws(this,t)},f.Xb=function(t){return c(ae(this.c,t),138)},f.Ri=function(t,n){return c(this.c.Ri(t,n),45)},f.Si=function(t,n){a7t(this,t,c(n,45))},f.ed=function(t){return c(this.c.ed(t),45)},f.fd=function(t,n){return kNt(this,t,c(n,45))},f.gd=function(t){fm(this,t)},f.Lc=function(){return new Ct(this,16)},f.Mc=function(){return new Tt(null,new Ct(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 BD(this.c,t)},f.Zj=function(){var t,n,i;if(this.d==null){for(this.d=Ce(cCe,pke,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),OG(this,t);this.e=i}},f.Fb=function(t){return QFe(this,t)},f.Hb=function(){return pwe(this.c)},f.bd=function(t){return this.c.bd(t)},f.$j=function(){this.c=new KLe(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 bD(this)},f.ak=function(t,n,i){return new sqe(t,n,i)},f.bk=function(){return new yN},f.Kc=function(t){return QVe(this,t)},f.gc=function(){return this.f},f.hd=function(t,n){return new nd(this.c,t,n)},f.Nc=function(){return this.c.Nc()},f.Oc=function(t){return this.c.Oc(t)},f.Ib=function(){return h2e(this.c)},f.e=0,f.f=0,M(_s,"BasicEMap",718),E(1038,67,bd,KLe),f.Ki=function(t,n){U9t(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){J9t(this,c(n,138))},f.Pi=function(t,n,i){q7t(this,c(n,138),c(i,138))},f.Mi=function(t,n){$Xe(this.a)},M(_s,"BasicEMap/1",1038),E(1039,67,bd,yN),f.$i=function(t){return Ce(Xin,$at,618,t,0,1)},M(_s,"BasicEMap/2",1039),E(1040,Mh,Il,YLe),f.$b=function(){this.a.c.$b()},f.Gc=function(t){return Sne(this.a,t)},f.Jc=function(){return this.a.f==0?(J6(),xI.a):new IIe(this.a)},f.Kc=function(t){var n;return n=this.a.f,dG(this.a,t),this.a.f!=n},f.gc=function(){return this.a.f},M(_s,"BasicEMap/3",1040),E(1041,32,Dv,ZLe),f.$b=function(){this.a.c.$b()},f.Gc=function(t){return irt(this.a,t)},f.Jc=function(){return this.a.f==0?(J6(),xI.a):new RIe(this.a)},f.gc=function(){return this.a.f},M(_s,"BasicEMap/4",1041),E(1042,Mh,Il,ePe),f.$b=function(){this.a.c.$b()},f.Gc=function(t){var n,i,r,o,a,d,b,v,k;if(this.a.f>0&&he(t,45)&&(this.a.Zj(),v=c(t,45),b=v.jd(),o=b==null?0:zi(b),a=R0e(this.a,o),n=this.a.d[a],n)){for(i=c(n.g,375),k=n.i,d=0;d<k;++d)if(r=i[d],r.yi()==o&&r.Fb(v))return!0}return!1},f.Jc=function(){return this.a.f==0?(J6(),xI.a):new Ree(this.a)},f.Kc=function(t){return Qnt(this,t)},f.gc=function(){return this.a.f},M(_s,"BasicEMap/5",1042),E(619,1,ns,Ree),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 K(new fa);if(this.b==-1)throw K(new Eo);return this.d=this.a,this.e=this.b,yet(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 K(new fa);if(this.e==-1)throw K(new El);this.f.c.Kc(ae(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(_s,"BasicEMap/BasicEMapIterator",619),E(1036,619,ns,IIe),f.ck=function(t){return t.jd()},M(_s,"BasicEMap/BasicEMapKeyIterator",1036),E(1037,619,ns,RIe),f.ck=function(t){return t.kd()},M(_s,"BasicEMap/BasicEMapValueIterator",1037),E(1035,1,xw,tPe),f.wc=function(t){DD(this,t)},f.$b=function(){this.a.c.$b()},f._b=function(t){return yBe(this,t)},f.uc=function(t){return irt(this.a,t)},f.vc=function(){return oIt(this.a)},f.Fb=function(t){return QFe(this.a,t)},f.xc=function(t){return Zf(this.a,t)},f.Hb=function(){return pwe(this.a.c)},f.dc=function(){return this.a.f==0},f.ec=function(){return rIt(this.a)},f.yc=function(t,n){return iL(this.a,t,n)},f.Ac=function(t){return dG(this.a,t)},f.gc=function(){return this.a.f},f.Ib=function(){return h2e(this.a.c)},f.Bc=function(){return sIt(this.a)},M(_s,"BasicEMap/DelegatingMap",1035),E(618,1,{45:1,138:1,618:1},sqe),f.Fb=function(t){var n;return he(t,45)?(n=c(t,45),(this.b!=null?ki(this.b,n.jd()):Se(this.b)===Se(n.jd()))&&(this.c!=null?ki(this.c,n.kd()):Se(this.c)===Se(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 K(new Gp)},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 Xin=M(_s,"BasicEMap/EntryImpl",618);E(538,1,{},bg),M(_s,"BasicEMap/View",538);var xI;E(776,1,{}),f.Fb=function(t){return wxe((Mt(),Is),t)},f.Hb=function(){return Cwe((Mt(),Is))},f.Ib=function(){return Ch((Mt(),Is))},M(_s,"ECollections/BasicEmptyUnmodifiableEList",776),E(1314,1,Ud,ua),f.Nb=function(t){ps(this,t)},f.Rb=function(t){throw K(new zn)},f.Ob=function(){return!1},f.Sb=function(){return!1},f.Pb=function(){throw K(new Eo)},f.Tb=function(){return 0},f.Ub=function(){throw K(new Eo)},f.Vb=function(){return-1},f.Qb=function(){throw K(new zn)},f.Wb=function(t){throw K(new zn)},M(_s,"ECollections/BasicEmptyUnmodifiableEList/1",1314),E(1312,776,{22:1,18:1,16:1,61:1},HPe),f._c=function(t,n){sRe()},f.Ec=function(t){return oRe()},f.ad=function(t,n){return cRe()},f.Fc=function(t){return lRe()},f.$b=function(){uRe()},f.Gc=function(t){return!1},f.Hc=function(t){return!1},f.Ic=function(t){ws(this,t)},f.Xb=function(t){return Gge((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 aRe()},f.Si=function(t,n){fRe()},f.ed=function(t){return hRe()},f.Kc=function(t){return dRe()},f.fd=function(t,n){return gRe()},f.gc=function(){return 0},f.gd=function(t){fm(this,t)},f.Lc=function(){return new Ct(this,16)},f.Mc=function(){return new Tt(null,new Ct(this,16))},f.hd=function(t,n){return Mt(),new nd(Is,t,n)},f.Nc=function(){return $pe((Mt(),Is))},f.Oc=function(t){return Mt(),H7(Is,t)},M(_s,"ECollections/EmptyUnmodifiableEList",1312),E(1313,776,{22:1,18:1,16:1,61:1,593:1},GPe),f._c=function(t,n){sRe()},f.Ec=function(t){return oRe()},f.ad=function(t,n){return cRe()},f.Fc=function(t){return lRe()},f.$b=function(){uRe()},f.Gc=function(t){return!1},f.Hc=function(t){return!1},f.Ic=function(t){ws(this,t)},f.Xb=function(t){return Gge((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 aRe()},f.Si=function(t,n){fRe()},f.ed=function(t){return hRe()},f.Kc=function(t){return dRe()},f.fd=function(t,n){return gRe()},f.gc=function(){return 0},f.gd=function(t){fm(this,t)},f.Lc=function(){return new Ct(this,16)},f.Mc=function(){return new Tt(null,new Ct(this,16))},f.hd=function(t,n){return Mt(),new nd(Is,t,n)},f.Nc=function(){return $pe((Mt(),Is))},f.Oc=function(t){return Mt(),H7(Is,t)},f._j=function(){return Mt(),Mt(),Yd},M(_s,"ECollections/EmptyUnmodifiableEMap",1313);var uCe=er(_s,"Enumerator"),LW;E(291,1,{291:1},Die),f.Fb=function(t){var n;return this===t?!0:he(t,291)?(n=c(t,291),this.f==n.f&&GAt(this.i,n.i)&&lee(this.a,(this.f&256)!=0?(n.f&256)!=0?n.a:null:(n.f&256)!=0?null:n.a)&&lee(this.d,n.d)&&lee(this.g,n.g)&&lee(this.e,n.e)&&ZFt(this,n)):!1},f.Hb=function(){return this.f},f.Ib=function(){return $rt(this)},f.f=0;var Vvt=0,Xvt=0,Kvt=0,Yvt=0,aCe=0,fCe=0,hCe=0,dCe=0,gCe=0,Zvt,cM=0,lM=0,ext=0,txt=0,PW,pCe;M(_s,"URI",291),E(1102,44,t3,QPe),f.yc=function(t,n){return c(lo(this,qn(t),c(n,291)),291)},M(_s,"URI/URICache",1102),E(495,67,bd,OB,kq),f.Qi=function(){return!0},M(_s,"UniqueEList",495),E(585,63,q1,vH),M(_s,"WrappedException",585);var oi=er(Ta,Fat),vx=er(Ta,qat),jl=er(Ta,Hat),xx=er(Ta,Gat),ah=er(Ta,Qat),tf=er(Ta,"EClass"),efe=er(Ta,"EDataType"),nxt;E(1210,44,t3,UPe),f.xc=function(t){return Yr(t)?Nc(this,t):Ao(co(this.f,t))},M(Ta,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1210);var IW=er(Ta,"EEnum"),eg=er(Ta,Uat),Ks=er(Ta,Jat),nf=er(Ta,Wat),rf,Jw=er(Ta,Vat),yx=er(Ta,Xat);E(1034,1,{},af),f.Ib=function(){return"NIL"},M(Ta,"EStructuralFeature/Internal/DynamicValueHolder/1",1034);var ixt;E(1033,44,t3,JPe),f.xc=function(t){return Yr(t)?Nc(this,t):Ao(co(this.f,t))},M(Ta,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1033);var fl=er(Ta,Kat),Zk=er(Ta,"EValidator/PatternMatcher"),mCe,bCe,Ut,i0,kx,wp,rxt,sxt,oxt,vp,r0,xp,Ww,Hh,cxt,lxt,sf,s0,uxt,o0,Ox,z3,$s,axt,fxt,Vw,RW=er(Wi,"FeatureMap/Entry");E(537,1,{76:1},BF),f.Jk=function(){return this.a},f.kd=function(){return this.b},M(Vt,"BasicEObjectImpl/1",537),E(1032,1,Roe,pBe),f.Dk=function(t){return ate(this.a,this.b,t)},f.Oj=function(){return sQe(this.a,this.b)},f.Wb=function(t){jme(this.a,this.b,t)},f.Ek=function(){$Nt(this.a,this.b)},M(Vt,"BasicEObjectImpl/4",1032),E(2060,1,{115:1}),f.Kk=function(t){this.e=t==0?hxt:Ce(Br,It,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 K(new zn)},f.Nk=function(){throw K(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 K(new zn)},f.Sk=function(t){throw K(new zn)},f.Tk=function(t){this.d=t};var hxt;M(Vt,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2060),E(195,2060,{115:1},aa),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,Kut,B8),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 aa),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(E0(),Ut).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},ype),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 Yi(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 jB),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?dxt:Ce(Br,It,1,t,5,1)),this},f.gi=function(){return 0};var dxt;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},Lqe),f.Fb=function(t){return this===t},f.Hb=function(){return Hb(this)},f._h=function(t){this.d=t,this.b=pL(t,"key"),this.c=pL(t,PC)},f.yi=function(){var t;return this.a==-1&&(t=jte(this,this.b),this.a=t==null?0:zi(t)),this.a},f.jd=function(){return jte(this,this.b)},f.kd=function(){return jte(this,this.c)},f.zi=function(t){this.a=t},f.Ai=function(t){jme(this,this.b,t)},f.ld=function(t){var n;return n=jte(this,this.c),jme(this,this.c,t),n},f.a=0,M(Vt,"DynamicEObjectImpl/BasicEMapEntry",1500),E(1501,1,{115:1},jB),f.Kk=function(t){throw K(new zn)},f.ii=function(t){throw K(new zn)},f.ji=function(t,n){throw K(new zn)},f.ki=function(t){throw K(new zn)},f.Lk=function(){throw K(new zn)},f.Mk=function(){return this.a},f.Nk=function(){return this.b},f.Ok=function(){return this.c},f.Pk=function(){throw K(new zn)},f.Qk=function(t){throw K(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},kN),f.xh=function(t){return Y2e(this,t)},f.Ih=function(t,n,i){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),this.Ab;case 1:return this.d;case 2:return i?(!this.b&&(this.b=new vu((At(),$s),ec,this)),this.b):(!this.b&&(this.b=new vu((At(),$s),ec,this)),bD(this.b));case 3:return fQe(this);case 4:return!this.a&&(this.a=new Nr(mp,this,4)),this.a;case 5:return!this.c&&(this.c=new Cy(mp,this,5)),this.c}return ba(this,t-bn((At(),i0)),Lt((r=c(Kt(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 Le(oi,this,0,3)),Kc(this.Ab,t,i);case 3:return this.Cb&&(i=(o=this.Db>>16,o>=0?Y2e(this,i):this.Cb.Qh(this,-1-o,null,i))),Ipe(this,c(t,159),i)}return a=c(Lt((r=c(Kt(this,16),29),r||(At(),i0)),n),69),a.uk().xk(this,sl(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 Le(oi,this,0,3)),Ns(this.Ab,t,i);case 2:return!this.b&&(this.b=new vu((At(),$s),ec,this)),sq(this.b,t,i);case 3:return Ipe(this,null,i);case 4:return!this.a&&(this.a=new Nr(mp,this,4)),Ns(this.a,t,i)}return o=c(Lt((r=c(Kt(this,16),29),r||(At(),i0)),n),69),o.uk().yk(this,sl(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.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!fQe(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return pa(this,t-bn((At(),i0)),Lt((n=c(Kt(this,16),29),n||i0),t))},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab),!this.Ab&&(this.Ab=new Le(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:EAt(this,qn(n));return;case 2:!this.b&&(this.b=new vu((At(),$s),ec,this)),HH(this.b,n);return;case 3:Sit(this,c(n,159));return;case 4:!this.a&&(this.a=new Nr(mp,this,4)),Mn(this.a),!this.a&&(this.a=new Nr(mp,this,4)),dr(this.a,c(n,18));return;case 5:!this.c&&(this.c=new Cy(mp,this,5)),Mn(this.c),!this.c&&(this.c=new Cy(mp,this,5)),dr(this.c,c(n,18));return}Oa(this,t-bn((At(),i0)),Lt((i=c(Kt(this,16),29),i||i0),t),n)},f.fi=function(){return At(),i0},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab);return;case 1:Xbe(this,null);return;case 2:!this.b&&(this.b=new vu((At(),$s),ec,this)),this.b.c.$b();return;case 3:Sit(this,null);return;case 4:!this.a&&(this.a=new Nr(mp,this,4)),Mn(this.a);return;case 5:!this.c&&(this.c=new Cy(mp,this,5)),Mn(this.c);return}ka(this,t-bn((At(),i0)),Lt((n=c(Kt(this,16),29),n||i0),t))},f.Ib=function(){return lYe(this)},f.d=null,M(Vt,"EAnnotationImpl",508),E(145,718,mke,_l),f.Ei=function(t,n){JTt(this,t,c(n,45))},f.Uk=function(t,n){return VCt(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 sq(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(Fu(this.b).ti().pi(this.b),138),r.zi(t),r.Ai(n),r.ld(i),r},f.bk=function(){return new d1e(this)},f.Wb=function(t){HH(this,t)},f.Ek=function(){c(this.c,78).Ek()},M(Wi,"EcoreEMap",145),E(170,145,mke,vu),f.Zj=function(){var t,n,i,r,o,a;if(this.d==null){for(a=Ce(cCe,pke,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&pi)%a.length,t=a[o],!t&&(t=a[o]=new d1e(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 Le(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return zt(),(this.Bb&256)!=0;case 3:return zt(),(this.Bb&512)!=0;case 4:return ze(this.s);case 5:return ze(this.t);case 6:return zt(),!!this.Hk();case 7:return zt(),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()),Lt((r=c(Kt(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 Le(oi,this,0,3)),Ns(this.Ab,t,i);case 9:return jee(this,i)}return o=c(Lt((r=c(Kt(this,16),29),r||this.fi()),n),69),o.uk().yk(this,sl(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&&Jb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Jb(this.q).i==0)}return pa(this,t-bn(this.fi()),Lt((n=c(Kt(this,16),29),n||this.fi()),t))},f.$h=function(t,n){var i,r;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab),!this.Ab&&(this.Ab=new Le(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:this.ri(qn(n));return;case 2:$g(this,it(nt(n)));return;case 3:Bg(this,it(nt(n)));return;case 4:Lg(this,c(n,15).a);return;case 5:this.Xk(c(n,15).a);return;case 8:bm(this,c(n,146));return;case 9:r=Th(this,c(n,88),null),r&&r.mj();return}Oa(this,t-bn(this.fi()),Lt((i=c(Kt(this,16),29),i||this.fi()),t),n)},f.fi=function(){return At(),fxt},f.hi=function(t){var n,i;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab);return;case 1:this.ri(null);return;case 2:$g(this,!0);return;case 3:Bg(this,!0);return;case 4:Lg(this,0);return;case 5:this.Xk(1);return;case 8:bm(this,null);return;case 9:i=Th(this,null,null),i&&i.mj();return}ka(this,t-bn(this.fi()),Lt((n=c(Kt(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 Jwe(this,t,n)},f.Xk=function(t){dv(this,t)},f.Ib=function(){return uxe(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 eet(this,t)},f.Ih=function(t,n,i){var r,o;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return zt(),(this.Bb&256)!=0;case 3:return zt(),(this.Bb&512)!=0;case 4:return ze(this.s);case 5:return ze(this.t);case 6:return zt(),!!this.Hk();case 7:return zt(),o=this.s,o>=1;case 8:return n?Qa(this):this.r;case 9:return this.q;case 10:return zt(),(this.Bb&Ua)!=0;case 11:return zt(),(this.Bb&F1)!=0;case 12:return zt(),(this.Bb&Pv)!=0;case 13:return this.j;case 14:return Jj(this);case 15:return zt(),(this.Bb&Rl)!=0;case 16:return zt(),(this.Bb&ad)!=0;case 17:return ov(this)}return ba(this,t-bn(this.fi()),Lt((r=c(Kt(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 Le(oi,this,0,3)),Kc(this.Ab,t,i);case 17:return this.Cb&&(i=(o=this.Db>>16,o>=0?eet(this,i):this.Cb.Qh(this,-1-o,null,i))),Uu(this,t,17,i)}return a=c(Lt((r=c(Kt(this,16),29),r||this.fi()),n),69),a.uk().xk(this,sl(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 Le(oi,this,0,3)),Ns(this.Ab,t,i);case 9:return jee(this,i);case 17:return Uu(this,null,17,i)}return o=c(Lt((r=c(Kt(this,16),29),r||this.fi()),n),69),o.uk().yk(this,sl(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&&Jb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Jb(this.q).i==0);case 10:return(this.Bb&Ua)==0;case 11:return(this.Bb&F1)!=0;case 12:return(this.Bb&Pv)!=0;case 13:return this.j!=null;case 14:return Jj(this)!=null;case 15:return(this.Bb&Rl)!=0;case 16:return(this.Bb&ad)!=0;case 17:return!!ov(this)}return pa(this,t-bn(this.fi()),Lt((n=c(Kt(this,16),29),n||this.fi()),t))},f.$h=function(t,n){var i,r;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab),!this.Ab&&(this.Ab=new Le(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Xee(this,qn(n));return;case 2:$g(this,it(nt(n)));return;case 3:Bg(this,it(nt(n)));return;case 4:Lg(this,c(n,15).a);return;case 5:this.Xk(c(n,15).a);return;case 8:bm(this,c(n,146));return;case 9:r=Th(this,c(n,88),null),r&&r.mj();return;case 10:Nj(this,it(nt(n)));return;case 11:Lj(this,it(nt(n)));return;case 12:_j(this,it(nt(n)));return;case 13:qge(this,qn(n));return;case 15:Dj(this,it(nt(n)));return;case 16:Pj(this,it(nt(n)));return}Oa(this,t-bn(this.fi()),Lt((i=c(Kt(this,16),29),i||this.fi()),t),n)},f.fi=function(){return At(),axt},f.hi=function(t){var n,i;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab);return;case 1:he(this.Cb,89)&&Tv(ru(c(this.Cb,89)),4),Xc(this,null);return;case 2:$g(this,!0);return;case 3:Bg(this,!0);return;case 4:Lg(this,0);return;case 5:this.Xk(1);return;case 8:bm(this,null);return;case 9:i=Th(this,null,null),i&&i.mj();return;case 10:Nj(this,!0);return;case 11:Lj(this,!1);return;case 12:_j(this,!1);return;case 13:this.i=null,RH(this,null);return;case 15:Dj(this,!1);return;case 16:Pj(this,!1);return}ka(this,t-bn(this.fi()),Lt((n=c(Kt(this,16),29),n||this.fi()),t))},f.mi=function(){sj(uo((Pl(),ms),this)),Qa(this),this.Bb|=1},f.nk=function(){return this.f},f.gk=function(){return Jj(this)},f.ok=function(){return ov(this)},f.sk=function(){return null},f.Yk=function(){return this.k},f.Jj=function(){return this.n},f.tk=function(){return NG(this)},f.uk=function(){var t,n,i,r,o,a,d,b,v;return this.p||(i=ov(this),(i.i==null&&ud(i),i.i).length,r=this.sk(),r&&bn(ov(r)),o=Qa(this),d=o.ik(),t=d?(d.i&1)!=0?d==Sl?cr:d==Hn?Pr:d==Sx?$S:d==is?Sr:d==Kw?_w:d==G3?Dw:d==Bl?Sk:UC:d:null,n=Jj(this),b=o.gk(),kzt(this),(this.Bb&ad)!=0&&((a=sve((Pl(),ms),i))&&a!=this||(a=B4(uo(ms,this))))?this.p=new bBe(this,a):this.Hk()?this.$k()?r?(this.Bb&Rl)!=0?t?this._k()?this.p=new nm(47,t,this,r):this.p=new nm(5,t,this,r):this._k()?this.p=new lm(46,this,r):this.p=new lm(4,this,r):t?this._k()?this.p=new nm(49,t,this,r):this.p=new nm(7,t,this,r):this._k()?this.p=new lm(48,this,r):this.p=new lm(6,this,r):(this.Bb&Rl)!=0?t?t==Dm?this.p=new Eg(50,Uvt,this):this._k()?this.p=new Eg(43,t,this):this.p=new Eg(1,t,this):this._k()?this.p=new Ag(42,this):this.p=new Ag(0,this):t?t==Dm?this.p=new Eg(41,Uvt,this):this._k()?this.p=new Eg(45,t,this):this.p=new Eg(3,t,this):this._k()?this.p=new Ag(44,this):this.p=new Ag(2,this):he(o,160)?t==RW?this.p=new Ag(40,this):(this.Bb&512)!=0?(this.Bb&Rl)!=0?t?this.p=new Eg(9,t,this):this.p=new Ag(8,this):t?this.p=new Eg(11,t,this):this.p=new Ag(10,this):(this.Bb&Rl)!=0?t?this.p=new Eg(13,t,this):this.p=new Ag(12,this):t?this.p=new Eg(15,t,this):this.p=new Ag(14,this):r?(v=r.t,v>1||v==-1?this._k()?(this.Bb&Rl)!=0?t?this.p=new nm(25,t,this,r):this.p=new lm(24,this,r):t?this.p=new nm(27,t,this,r):this.p=new lm(26,this,r):(this.Bb&Rl)!=0?t?this.p=new nm(29,t,this,r):this.p=new lm(28,this,r):t?this.p=new nm(31,t,this,r):this.p=new lm(30,this,r):this._k()?(this.Bb&Rl)!=0?t?this.p=new nm(33,t,this,r):this.p=new lm(32,this,r):t?this.p=new nm(35,t,this,r):this.p=new lm(34,this,r):(this.Bb&Rl)!=0?t?this.p=new nm(37,t,this,r):this.p=new lm(36,this,r):t?this.p=new nm(39,t,this,r):this.p=new lm(38,this,r)):this._k()?(this.Bb&Rl)!=0?t?this.p=new Eg(17,t,this):this.p=new Ag(16,this):t?this.p=new Eg(19,t,this):this.p=new Ag(18,this):(this.Bb&Rl)!=0?t?this.p=new Eg(21,t,this):this.p=new Ag(20,this):t?this.p=new Eg(23,t,this):this.p=new Ag(22,this):this.Zk()?this._k()?this.p=new lqe(c(o,29),this,r):this.p=new Ome(c(o,29),this,r):he(o,160)?t==RW?this.p=new Ag(40,this):(this.Bb&Rl)!=0?t?this.p=new sHe(n,b,this,(Cne(),d==Hn?jCe:d==Sl?vCe:d==Kw?SCe:d==Sx?OCe:d==is?kCe:d==G3?TCe:d==Bl?xCe:d==Da?yCe:ife)):this.p=new kGe(c(o,160),n,b,this):t?this.p=new rHe(n,b,this,(Cne(),d==Hn?jCe:d==Sl?vCe:d==Kw?SCe:d==Sx?OCe:d==is?kCe:d==G3?TCe:d==Bl?xCe:d==Da?yCe:ife)):this.p=new yGe(c(o,160),n,b,this):this.$k()?r?(this.Bb&Rl)!=0?this._k()?this.p=new aqe(c(o,29),this,r):this.p=new fpe(c(o,29),this,r):this._k()?this.p=new uqe(c(o,29),this,r):this.p=new eee(c(o,29),this,r):(this.Bb&Rl)!=0?this._k()?this.p=new iFe(c(o,29),this):this.p=new T0e(c(o,29),this):this._k()?this.p=new nFe(c(o,29),this):this.p=new BZ(c(o,29),this):this._k()?r?(this.Bb&Rl)!=0?this.p=new fqe(c(o,29),this,r):this.p=new upe(c(o,29),this,r):(this.Bb&Rl)!=0?this.p=new sFe(c(o,29),this):this.p=new C0e(c(o,29),this):r?(this.Bb&Rl)!=0?this.p=new hqe(c(o,29),this,r):this.p=new ape(c(o,29),this,r):(this.Bb&Rl)!=0?this.p=new rFe(c(o,29),this):this.p=new Oq(c(o,29),this)),this.p},f.pk=function(){return(this.Bb&Ua)!=0},f.Zk=function(){return!1},f.$k=function(){return!1},f.qk=function(){return(this.Bb&ad)!=0},f.vk=function(){return Tte(this)},f._k=function(){return!1},f.rk=function(){return(this.Bb&Rl)!=0},f.al=function(t){this.k=t},f.ri=function(t){Xee(this,t)},f.Ib=function(){return tQ(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},wY),f.Ih=function(t,n,i){var r,o;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return zt(),(this.Bb&256)!=0;case 3:return zt(),(this.Bb&512)!=0;case 4:return ze(this.s);case 5:return ze(this.t);case 6:return zt(),!!ixe(this);case 7:return zt(),o=this.s,o>=1;case 8:return n?Qa(this):this.r;case 9:return this.q;case 10:return zt(),(this.Bb&Ua)!=0;case 11:return zt(),(this.Bb&F1)!=0;case 12:return zt(),(this.Bb&Pv)!=0;case 13:return this.j;case 14:return Jj(this);case 15:return zt(),(this.Bb&Rl)!=0;case 16:return zt(),(this.Bb&ad)!=0;case 17:return ov(this);case 18:return zt(),(this.Bb&sc)!=0;case 19:return n?Wte(this):AJe(this)}return ba(this,t-bn((At(),kx)),Lt((r=c(Kt(this,16),29),r||kx),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 ixe(this);case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Jb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Jb(this.q).i==0);case 10:return(this.Bb&Ua)==0;case 11:return(this.Bb&F1)!=0;case 12:return(this.Bb&Pv)!=0;case 13:return this.j!=null;case 14:return Jj(this)!=null;case 15:return(this.Bb&Rl)!=0;case 16:return(this.Bb&ad)!=0;case 17:return!!ov(this);case 18:return(this.Bb&sc)!=0;case 19:return!!AJe(this)}return pa(this,t-bn((At(),kx)),Lt((n=c(Kt(this,16),29),n||kx),t))},f.$h=function(t,n){var i,r;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab),!this.Ab&&(this.Ab=new Le(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Xee(this,qn(n));return;case 2:$g(this,it(nt(n)));return;case 3:Bg(this,it(nt(n)));return;case 4:Lg(this,c(n,15).a);return;case 5:$Ie(this,c(n,15).a);return;case 8:bm(this,c(n,146));return;case 9:r=Th(this,c(n,88),null),r&&r.mj();return;case 10:Nj(this,it(nt(n)));return;case 11:Lj(this,it(nt(n)));return;case 12:_j(this,it(nt(n)));return;case 13:qge(this,qn(n));return;case 15:Dj(this,it(nt(n)));return;case 16:Pj(this,it(nt(n)));return;case 18:wne(this,it(nt(n)));return}Oa(this,t-bn((At(),kx)),Lt((i=c(Kt(this,16),29),i||kx),t),n)},f.fi=function(){return At(),kx},f.hi=function(t){var n,i;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab);return;case 1:he(this.Cb,89)&&Tv(ru(c(this.Cb,89)),4),Xc(this,null);return;case 2:$g(this,!0);return;case 3:Bg(this,!0);return;case 4:Lg(this,0);return;case 5:this.b=0,dv(this,1);return;case 8:bm(this,null);return;case 9:i=Th(this,null,null),i&&i.mj();return;case 10:Nj(this,!0);return;case 11:Lj(this,!1);return;case 12:_j(this,!1);return;case 13:this.i=null,RH(this,null);return;case 15:Dj(this,!1);return;case 16:Pj(this,!1);return;case 18:wne(this,!1);return}ka(this,t-bn((At(),kx)),Lt((n=c(Kt(this,16),29),n||kx),t))},f.mi=function(){Wte(this),sj(uo((Pl(),ms),this)),Qa(this),this.Bb|=1},f.Hk=function(){return ixe(this)},f.Wk=function(t,n){return this.b=0,this.a=null,Jwe(this,t,n)},f.Xk=function(t){$Ie(this,t)},f.Ib=function(){var t;return(this.Db&64)!=0?tQ(this):(t=new za(tQ(this)),t.a+=" (iD: ",Og(t,(this.Bb&sc)!=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 Zne(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 Le(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return dw(this);case 4:return this.gk();case 5:return this.F;case 6:return n?Fu(this):lj(this);case 7:return!this.A&&(this.A=new Ml(fl,this,7)),this.A}return ba(this,t-bn(this.fi()),Lt((r=c(Kt(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 Le(oi,this,0,3)),Kc(this.Ab,t,i);case 6:return this.Cb&&(i=(o=this.Db>>16,o>=0?Zne(this,i):this.Cb.Qh(this,-1-o,null,i))),Uu(this,t,6,i)}return a=c(Lt((r=c(Kt(this,16),29),r||this.fi()),n),69),a.uk().xk(this,sl(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 Le(oi,this,0,3)),Ns(this.Ab,t,i);case 6:return Uu(this,null,6,i);case 7:return!this.A&&(this.A=new Ml(fl,this,7)),Ns(this.A,t,i)}return o=c(Lt((r=c(Kt(this,16),29),r||this.fi()),n),69),o.uk().yk(this,sl(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!!dw(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!lj(this);case 7:return!!this.A&&this.A.i!=0}return pa(this,t-bn(this.fi()),Lt((n=c(Kt(this,16),29),n||this.fi()),t))},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab),!this.Ab&&(this.Ab=new Le(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Kq(this,qn(n));return;case 2:TZ(this,qn(n));return;case 5:tS(this,qn(n));return;case 7:!this.A&&(this.A=new Ml(fl,this,7)),Mn(this.A),!this.A&&(this.A=new Ml(fl,this,7)),dr(this.A,c(n,18));return}Oa(this,t-bn(this.fi()),Lt((i=c(Kt(this,16),29),i||this.fi()),t),n)},f.fi=function(){return At(),rxt},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab);return;case 1:he(this.Cb,187)&&(c(this.Cb,187).tb=null),Xc(this,null);return;case 2:Cj(this,null),mj(this,this.D);return;case 5:tS(this,null);return;case 7:!this.A&&(this.A=new Ml(fl,this,7)),Mn(this.A);return}ka(this,t-bn(this.fi()),Lt((n=c(Kt(this,16),29),n||this.fi()),t))},f.fk=function(){var t;return this.G==-1&&(this.G=(t=Fu(this),t?zg(t.si(),this):-1)),this.G},f.gk=function(){return null},f.hk=function(){return Fu(this)},f.cl=function(){return this.v},f.ik=function(){return dw(this)},f.jk=function(){return this.D!=null?this.D:this.B},f.kk=function(){return this.F},f.dk=function(t){return qie(this,t)},f.dl=function(t){this.v=t},f.el=function(t){mXe(this,t)},f.fl=function(t){this.C=t},f.ri=function(t){Kq(this,t)},f.Ib=function(){return uG(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},v1),f.bl=function(t){return LCt(this,t.Ah())},f.Ih=function(t,n,i){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return dw(this);case 4:return null;case 5:return this.F;case 6:return n?Fu(this):lj(this);case 7:return!this.A&&(this.A=new Ml(fl,this,7)),this.A;case 8:return zt(),(this.Bb&256)!=0;case 9:return zt(),(this.Bb&512)!=0;case 10:return wo(this);case 11:return!this.q&&(this.q=new Le(nf,this,11,10)),this.q;case 12:return Ky(this);case 13:return uC(this);case 14:return uC(this),this.r;case 15:return Ky(this),this.k;case 16:return Uve(this);case 17:return Uie(this);case 18:return ud(this);case 19:return JG(this);case 20:return Ky(this),this.o;case 21:return!this.s&&(this.s=new Le(jl,this,21,17)),this.s;case 22:return wc(this);case 23:return _ie(this)}return ba(this,t-bn((At(),wp)),Lt((r=c(Kt(this,16),29),r||wp),t),n,i)},f.Ph=function(t,n,i){var r,o,a;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Kc(this.Ab,t,i);case 6:return this.Cb&&(i=(o=this.Db>>16,o>=0?Zne(this,i):this.Cb.Qh(this,-1-o,null,i))),Uu(this,t,6,i);case 11:return!this.q&&(this.q=new Le(nf,this,11,10)),Kc(this.q,t,i);case 21:return!this.s&&(this.s=new Le(jl,this,21,17)),Kc(this.s,t,i)}return a=c(Lt((r=c(Kt(this,16),29),r||(At(),wp)),n),69),a.uk().xk(this,sl(this),n-bn((At(),wp)),t,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Ns(this.Ab,t,i);case 6:return Uu(this,null,6,i);case 7:return!this.A&&(this.A=new Ml(fl,this,7)),Ns(this.A,t,i);case 11:return!this.q&&(this.q=new Le(nf,this,11,10)),Ns(this.q,t,i);case 21:return!this.s&&(this.s=new Le(jl,this,21,17)),Ns(this.s,t,i);case 22:return Ns(wc(this),t,i)}return o=c(Lt((r=c(Kt(this,16),29),r||(At(),wp)),n),69),o.uk().yk(this,sl(this),n-bn((At(),wp)),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!!dw(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!lj(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&&wc(this.u.a).i!=0&&!(this.n&&qne(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return Ky(this).i!=0;case 13:return uC(this).i!=0;case 14:return uC(this),this.r.i!=0;case 15:return Ky(this),this.k.i!=0;case 16:return Uve(this).i!=0;case 17:return Uie(this).i!=0;case 18:return ud(this).i!=0;case 19:return JG(this).i!=0;case 20:return Ky(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&qne(this.n);case 23:return _ie(this).i!=0}return pa(this,t-bn((At(),wp)),Lt((n=c(Kt(this,16),29),n||wp),t))},f.Wh=function(t){var n;return n=this.i==null||this.q&&this.q.i!=0?null:pL(this,t),n||Pye(this,t)},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab),!this.Ab&&(this.Ab=new Le(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Kq(this,qn(n));return;case 2:TZ(this,qn(n));return;case 5:tS(this,qn(n));return;case 7:!this.A&&(this.A=new Ml(fl,this,7)),Mn(this.A),!this.A&&(this.A=new Ml(fl,this,7)),dr(this.A,c(n,18));return;case 8:Xwe(this,it(nt(n)));return;case 9:Kwe(this,it(nt(n)));return;case 10:hC(wo(this)),dr(wo(this),c(n,18));return;case 11:!this.q&&(this.q=new Le(nf,this,11,10)),Mn(this.q),!this.q&&(this.q=new Le(nf,this,11,10)),dr(this.q,c(n,18));return;case 21:!this.s&&(this.s=new Le(jl,this,21,17)),Mn(this.s),!this.s&&(this.s=new Le(jl,this,21,17)),dr(this.s,c(n,18));return;case 22:Mn(wc(this)),dr(wc(this),c(n,18));return}Oa(this,t-bn((At(),wp)),Lt((i=c(Kt(this,16),29),i||wp),t),n)},f.fi=function(){return At(),wp},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab);return;case 1:he(this.Cb,187)&&(c(this.Cb,187).tb=null),Xc(this,null);return;case 2:Cj(this,null),mj(this,this.D);return;case 5:tS(this,null);return;case 7:!this.A&&(this.A=new Ml(fl,this,7)),Mn(this.A);return;case 8:Xwe(this,!1);return;case 9:Kwe(this,!1);return;case 10:this.u&&hC(this.u);return;case 11:!this.q&&(this.q=new Le(nf,this,11,10)),Mn(this.q);return;case 21:!this.s&&(this.s=new Le(jl,this,21,17)),Mn(this.s);return;case 22:this.n&&Mn(this.n);return}ka(this,t-bn((At(),wp)),Lt((n=c(Kt(this,16),29),n||wp),t))},f.mi=function(){var t,n;if(Ky(this),uC(this),Uve(this),Uie(this),ud(this),JG(this),_ie(this),w7(aAt(ru(this))),this.s)for(t=0,n=this.s.i;t<n;++t)H_(ae(this.s,t));if(this.q)for(t=0,n=this.q.i;t<n;++t)H_(ae(this.q,t));Rg((Pl(),ms),this).ve(),this.Bb|=1},f.Ib=function(){return hve(this)},f.k=null,f.r=null;var uM,gxt,tfe;M(Vt,"EClassImpl",89),E(2071,2070,eft),f.Ci=function(t,n){return Hie(this,t,n)},f.Di=function(t){return Hie(this,this.i,t)},f.Ei=function(t,n){lxe(this,t,n)},f.Fi=function(t){Sie(this,t)},f.Uk=function(t,n){return Kc(this,t,n)},f.Yi=function(t){return jbe(this,t)},f.Vk=function(t,n){return Ns(this,t,n)},f.Vi=function(t,n){return bst(this,t,n)},f.Gi=function(){return new S4(this)},f.Hi=function(){return new F_(this)},f.Ii=function(t){return ND(this,t)},M(Wi,"NotifyingInternalEListImpl",2071),E(630,2071,To),f.Gc=function(t){return $st(this,t)},f.Gj=function(t,n,i,r,o){return h7(this,t,n,i,r,o)},f.Hj=function(t){N6(this,t)},f.Dk=function(t){return this},f.Jk=function(){return Lt(this.e.Ah(),this.Jj())},f.Ij=function(){return this.Jk()},f.Jj=function(){return Yi(this.e.Ah(),this.Jk())},f.gl=function(){return c(this.Jk().Fk(),29).ik()},f.hl=function(){return Hs(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 zg(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,Yi(i.Ah(),Hs(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,Yi(i.Ah(),Hs(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 _Ue(this.d,t)},f.Nj=function(){return bu(this.e)},f.Oj=function(){return this.i!=0},f.$i=function(t){return AD(this.d,t)},f.Ui=function(t,n){return this.ml()&&this.ll()?uk(this,t,c(n,57)):n},f.nl=function(t){return t.Sh()?B0(this.e,c(t,52)):t},f.Wb=function(t){lze(this,t)},f.Nc=function(){return dWe(this)},f.Oc=function(t){var n;if(this.ll())for(n=this.i-1;n>=0;--n)ae(this,n);return x2e(this,t)},f.Ek=function(){Mn(this)},f.Xi=function(t,n){return GVe(this,t,n)},M(Wi,"EcoreEList",630),E(494,630,To,eD),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(Wi,"EObjectEList",494),E(82,494,To,Nr),f.Kj=function(){return!0},f.kl=function(){return!1},f.$k=function(){return!0},M(Wi,"EObjectContainmentEList",82),E(547,82,To,XF),f.Li=function(){this.b=!0},f.Oj=function(){return this.b},f.Ek=function(){var t;Mn(this),bu(this.e)?(t=this.b,this.b=!1,yi(this.e,new wf(this.e,2,this.c,t,!1))):this.b=!1},f.b=!1,M(Wi,"EObjectContainmentEList/Unsettable",547),E(1142,547,To,nHe),f.Ri=function(t,n){var i,r;return i=c(R7(this,t,n),88),bu(this.e)&&N6(this,new wD(this.a,7,(At(),sxt),ze(n),(r=i.c,he(r,89)?c(r,29):sf),t)),i},f.Sj=function(t,n){return nFt(this,c(t,88),n)},f.Tj=function(t,n){return tFt(this,c(t,88),n)},f.Uj=function(t,n,i){return sGt(this,c(t,88),c(n,88),i)},f.Gj=function(t,n,i,r,o){switch(t){case 3:return h7(this,t,n,i,r,this.i>1);case 5:return h7(this,t,n,i,r,this.i-c(i,16).gc()>0);default:return new N1(this.e,t,this.c,n,i,r,!0)}},f.Rj=function(){return!0},f.Oj=function(){return qne(this)},f.Ek=function(){Mn(this)},M(Vt,"EClassImpl/1",1142),E(1156,1155,gke),f.bj=function(t){var n,i,r,o,a,d,b;if(i=t.ej(),i!=8){if(r=RFt(t),r==0)switch(i){case 1:case 9:{b=t.ij(),b!=null&&(n=ru(c(b,474)),!n.c&&(n.c=new Qf),kH(n.c,t.hj())),d=t.gj(),d!=null&&(o=c(d,474),(o.Bb&1)==0&&(n=ru(o),!n.c&&(n.c=new Qf),Dn(n.c,c(t.hj(),29))));break}case 3:{d=t.gj(),d!=null&&(o=c(d,474),(o.Bb&1)==0&&(n=ru(o),!n.c&&(n.c=new Qf),Dn(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=ru(o),!n.c&&(n.c=new Qf),Dn(n.c,c(t.hj(),29)));break}case 4:{b=t.ij(),b!=null&&(o=c(b,474),(o.Bb&1)==0&&(n=ru(o),!n.c&&(n.c=new Qf),kH(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=ru(o),!n.c&&(n.c=new Qf),kH(n.c,t.hj()));break}}this.ol(r)}},f.ol=function(t){frt(this,t)},f.b=63,M(Vt,"ESuperAdapter",1156),E(1157,1156,gke,nPe),f.ol=function(t){Tv(this,t)},M(Vt,"EClassImpl/10",1157),E(1146,706,To),f.Ci=function(t,n){return fie(this,t,n)},f.Di=function(t){return $Ze(this,t)},f.Ei=function(t,n){GD(this,t,n)},f.Fi=function(t){gD(this,t)},f.Yi=function(t){return jbe(this,t)},f.Vi=function(t,n){return Ste(this,t,n)},f.Uk=function(t,n){throw K(new zn)},f.Gi=function(){return new S4(this)},f.Hi=function(){return new F_(this)},f.Ii=function(t){return ND(this,t)},f.Vk=function(t,n){throw K(new zn)},f.Dk=function(t){return this},f.Oj=function(){return this.i!=0},f.Wb=function(t){throw K(new zn)},f.Ek=function(){throw K(new zn)},M(Wi,"EcoreEList/UnmodifiableEList",1146),E(334,1146,To,yy),f.Wi=function(){return!1},M(Wi,"EcoreEList/UnmodifiableEList/FastCompare",334),E(1149,334,To,uKe),f.bd=function(t){var n,i,r;if(he(t,182)&&(n=c(t,182),i=n.Jj(),i!=-1)){for(r=this.i;i<r;++i)if(Se(this.g[i])===Se(t))return i}return-1},M(Vt,"EClassImpl/1EAllStructuralFeaturesList",1149),E(1143,495,bd,ql),f.$i=function(t){return Ce(Ks,tft,88,t,0,1)},f.Wi=function(){return!1},M(Vt,"EClassImpl/1EGenericSuperTypeEList",1143),E(631,495,bd,gh),f.$i=function(t){return Ce(jl,u3,182,t,0,1)},f.Wi=function(){return!1},M(Vt,"EClassImpl/1EStructuralFeatureUniqueEList",631),E(750,495,bd,zp),f.$i=function(t){return Ce(yx,u3,20,t,0,1)},f.Wi=function(){return!1},M(Vt,"EClassImpl/1ReferenceList",750),E(1144,495,bd,iPe),f.Ki=function(t,n){XAt(this,c(n,38))},f.$i=function(t){return Ce(xx,u3,38,t,0,1)},f.Wi=function(){return!1},M(Vt,"EClassImpl/2",1144),E(1145,495,bd,SB),f.$i=function(t){return Ce(xx,u3,38,t,0,1)},f.Wi=function(){return!1},M(Vt,"EClassImpl/3",1145),E(1147,334,To,wqe),f.Ec=function(t){return OPt(this,c(t,38))},f.Fi=function(t){X8t(this,c(t,38))},M(Vt,"EClassImpl/4",1147),E(1148,334,To,vqe),f.Ec=function(t){return jPt(this,c(t,20))},f.Fi=function(t){K8t(this,c(t,20))},M(Vt,"EClassImpl/5",1148),E(1150,495,bd,TB),f.$i=function(t){return Ce(nf,bke,62,t,0,1)},f.Wi=function(){return!1},M(Vt,"EClassImpl/6",1150),E(1151,495,bd,CB),f.$i=function(t){return Ce(yx,u3,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 uye(this,t,n)},f.Di=function(t){return uye(this,this.Cj(),t)},f.Ei=function(t,n){znt(this,t,n)},f.Fi=function(t){Mnt(this,t)},f.Uk=function(t,n){return Mqt(this,t,n)},f.Vk=function(t,n){return rqt(this,t,n)},f.Vi=function(t,n){return Zrt(this,t,n)},f.Yi=function(t){return this.vj(t)},f.Gi=function(){return new S4(this)},f.nj=function(){return this.qj()},f.Hi=function(){return new F_(this)},f.Ii=function(t){return ND(this,t)},M(Wi,"DelegatingNotifyingInternalEListImpl",2074),E(751,2074,wke),f.Ji=function(){var t;return t=Lt(dl(this.b),this.Jj()).Fk(),he(t,160)&&!he(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(Lt(dl(this.b),this.Jj()).Fk(),29).ik())==Hs(c(Lt(dl(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=mee(this,this.vj(o)),Se(n)===Se(t))return!0}return b}else if(this.kl()&&!this.jl()){if(a=c(t,57).Jh(Hs(c(Lt(dl(this.b),this.Jj()),20))),Se(a)===Se(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=mee(this,this.vj(o)),Se(r)===Se(t))return!0}return d}else return this.sj(t)},f.Gj=function(t,n,i,r,o){return new N1(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 Lt(dl(this.b),this.Jj())},f.Jj=function(){return Yi(dl(this.b),Lt(dl(this.b),this.Jj()))},f.hj=function(){return this.b},f.il=function(){return!!Lt(dl(this.b),this.Jj()).Fk().ik()},f.Kj=function(){var t,n;return n=Lt(dl(this.b),this.Jj()),he(n,104)?(t=c(n,20),(t.Bb&sc)!=0||!!Hs(c(n,20))):!1},f.jl=function(){var t,n,i,r;return n=Lt(dl(this.b),this.Jj()),he(n,104)?(t=c(n,20),i=Hs(t),!!i&&(r=i.t,r>1||r==-1)):!1},f.kl=function(){var t,n,i;return n=Lt(dl(this.b),this.Jj()),he(n,104)?(t=c(n,20),i=Hs(t),!!i):!1},f.ll=function(){var t,n;return n=Lt(dl(this.b),this.Jj()),he(n,104)?(t=c(n,20),(t.Bb&Ps)!=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=mee(this,this.vj(i)),Se(n)===Se(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,Hs(c(Lt(dl(this.b),this.Jj()),20)).n,c(Lt(dl(this.b),this.Jj()).Fk(),29).ik(),n):i.Oh(this.b,Yi(i.Ah(),Hs(c(Lt(dl(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,Hs(c(Lt(dl(this.b),this.Jj()),20)).n,c(Lt(dl(this.b),this.Jj()).Fk(),29).ik(),n):i.Qh(this.b,Yi(i.Ah(),Hs(c(Lt(dl(this.b),this.Jj()),20))),null,n):i.Qh(this.b,-1-this.Jj(),null,n)},f.$k=function(){var t,n;return n=Lt(dl(this.b),this.Jj()),he(n,104)?(t=c(n,20),(t.Bb&sc)!=0):!1},f.ml=function(){return he(Lt(dl(this.b),this.Jj()).Fk(),89)},f.dk=function(t){return Lt(dl(this.b),this.Jj()).Fk().dk(t)},f.Nj=function(){return bu(this.b)},f.Oj=function(){return!this.yj()},f.Qi=function(){return Lt(dl(this.b),this.Jj()).Qi()},f.Ui=function(t,n){return kL(this,t,n)},f.Wb=function(t){hC(this),dr(this,c(t,16))},f.Nc=function(){var t;if(this.ll())for(t=this.Cj()-1;t>=0;--t)kL(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)kL(this,n,this.vj(n));return this.Ej(t)},f.Ek=function(){hC(this)},f.Xi=function(t,n){return hWe(this,t,n)},M(Wi,"DelegatingEcoreEList",751),E(1152,751,wke,mFe),f.oj=function(t,n){iCt(this,t,c(n,29))},f.pj=function(t){VTt(this,c(t,29))},f.vj=function(t){var n,i;return n=c(ae(wc(this.a),t),88),i=n.c,he(i,89)?c(i,29):(At(),sf)},f.Aj=function(t){var n,i;return n=c(Mv(wc(this.a),t),88),i=n.c,he(i,89)?c(i,29):(At(),sf)},f.Bj=function(t,n){return Aqt(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 rPe(this)},f.rj=function(){Mn(wc(this.a))},f.sj=function(t){return uYe(this,t)},f.tj=function(t){var n,i;for(i=t.Jc();i.Ob();)if(n=i.Pb(),!uYe(this,n))return!1;return!0},f.uj=function(t){var n,i,r;if(he(t,16)&&(r=c(t,16),r.gc()==wc(this.a).i)){for(n=r.Jc(),i=new ln(this);n.Ob();)if(Se(n.Pb())!==Se(fn(i)))return!1;return!0}return!1},f.wj=function(){var t,n,i,r,o;for(i=1,n=new ln(wc(this.a));n.e!=n.i.gc();)t=c(fn(n),88),r=(o=t.c,he(o,89)?c(o,29):(At(),sf)),i=31*i+(r?Hb(r):0);return i},f.xj=function(t){var n,i,r,o;for(r=0,i=new ln(wc(this.a));i.e!=i.i.gc();){if(n=c(fn(i),88),Se(t)===Se((o=n.c,he(o,89)?c(o,29):(At(),sf))))return r;++r}return-1},f.yj=function(){return wc(this.a).i==0},f.zj=function(){return null},f.Cj=function(){return wc(this.a).i},f.Dj=function(){var t,n,i,r,o,a;for(a=wc(this.a).i,o=Ce(Br,It,1,a,5,1),i=0,n=new ln(wc(this.a));n.e!=n.i.gc();)t=c(fn(n),88),o[i++]=(r=t.c,he(r,89)?c(r,29):(At(),sf));return o},f.Ej=function(t){var n,i,r,o,a,d,b;for(b=wc(this.a).i,t.length<b&&(o=AD(ju(t).c,b),t=o),t.length>b&&br(t,b,null),r=0,i=new ln(wc(this.a));i.e!=i.i.gc();)n=c(fn(i),88),a=(d=n.c,he(d,89)?c(d,29):(At(),sf)),br(t,r++,a);return t},f.Fj=function(){var t,n,i,r,o;for(o=new kg,o.a+="[",t=wc(this.a),n=0,r=wc(this.a).i;n<r;)Zs(o,WT((i=c(ae(t,n),88).c,he(i,89)?c(i,29):(At(),sf)))),++n<r&&(o.a+=Yc);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 he(t,89)},f.Oj=function(){return mLt(this.a)},f.Qi=function(){return!0},f.Wi=function(){return!0},M(Vt,"EClassImpl/8",1152),E(1153,2041,cS,rPe),f.dd=function(t){return ND(this.a,t)},f.gc=function(){return wc(this.a.a).i},M(Vt,"EClassImpl/8/1",1153),E(1154,495,bd,vK),f.$i=function(t){return Ce(ah,It,146,t,0,1)},f.Wi=function(){return!1},M(Vt,"EClassImpl/9",1154),E(1141,47,Yye,WPe),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},Gz),f.Ih=function(t,n,i){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return dw(this);case 4:return this.gk();case 5:return this.F;case 6:return n?Fu(this):lj(this);case 7:return!this.A&&(this.A=new Ml(fl,this,7)),this.A;case 8:return zt(),(this.Bb&256)!=0}return ba(this,t-bn(this.fi()),Lt((r=c(Kt(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!!dw(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!lj(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0}return pa(this,t-bn(this.fi()),Lt((n=c(Kt(this,16),29),n||this.fi()),t))},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab),!this.Ab&&(this.Ab=new Le(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Kq(this,qn(n));return;case 2:TZ(this,qn(n));return;case 5:tS(this,qn(n));return;case 7:!this.A&&(this.A=new Ml(fl,this,7)),Mn(this.A),!this.A&&(this.A=new Ml(fl,this,7)),dr(this.A,c(n,18));return;case 8:nG(this,it(nt(n)));return}Oa(this,t-bn(this.fi()),Lt((i=c(Kt(this,16),29),i||this.fi()),t),n)},f.fi=function(){return At(),oxt},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab);return;case 1:he(this.Cb,187)&&(c(this.Cb,187).tb=null),Xc(this,null);return;case 2:Cj(this,null),mj(this,this.D);return;case 5:tS(this,null);return;case 7:!this.A&&(this.A=new Ml(fl,this,7)),Mn(this.A);return;case 8:nG(this,!0);return}ka(this,t-bn(this.fi()),Lt((n=c(Kt(this,16),29),n||this.fi()),t))},f.mi=function(){Rg((Pl(),ms),this).ve(),this.Bb|=1},f.mk=function(){var t,n,i;if(!this.c&&(t=eit(Fu(this)),!t.dc()))for(i=t.Jc();i.Ob();)n=qn(i.Pb()),oC(this,n)&&uzt(this);return this.b},f.gk=function(){var t;if(!this.e){t=null;try{t=dw(this)}catch(n){if(n=kr(n),!he(n,102))throw K(n)}this.d=null,t&&(t.i&1)!=0&&(t==Sl?this.d=(zt(),ep):t==Hn?this.d=ze(0):t==Sx?this.d=new Fs(0):t==is?this.d=0:t==Kw?this.d=yv(0):t==G3?this.d=Aj(0):t==Bl?this.d=SD(0):this.d=PD(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){mXe(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?uG(this):(t=new za(uG(this)),t.a+=" (serializable: ",Og(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},VPe),f.Ih=function(t,n,i){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return dw(this);case 4:return Rwe(this);case 5:return this.F;case 6:return n?Fu(this):lj(this);case 7:return!this.A&&(this.A=new Ml(fl,this,7)),this.A;case 8:return zt(),(this.Bb&256)!=0;case 9:return!this.a&&(this.a=new Le(eg,this,9,5)),this.a}return ba(this,t-bn((At(),vp)),Lt((r=c(Kt(this,16),29),r||vp),t),n,i)},f.Ph=function(t,n,i){var r,o,a;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Kc(this.Ab,t,i);case 6:return this.Cb&&(i=(o=this.Db>>16,o>=0?Zne(this,i):this.Cb.Qh(this,-1-o,null,i))),Uu(this,t,6,i);case 9:return!this.a&&(this.a=new Le(eg,this,9,5)),Kc(this.a,t,i)}return a=c(Lt((r=c(Kt(this,16),29),r||(At(),vp)),n),69),a.uk().xk(this,sl(this),n-bn((At(),vp)),t,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Ns(this.Ab,t,i);case 6:return Uu(this,null,6,i);case 7:return!this.A&&(this.A=new Ml(fl,this,7)),Ns(this.A,t,i);case 9:return!this.a&&(this.a=new Le(eg,this,9,5)),Ns(this.a,t,i)}return o=c(Lt((r=c(Kt(this,16),29),r||(At(),vp)),n),69),o.uk().yk(this,sl(this),n-bn((At(),vp)),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!!dw(this);case 4:return!!Rwe(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!lj(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 pa(this,t-bn((At(),vp)),Lt((n=c(Kt(this,16),29),n||vp),t))},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab),!this.Ab&&(this.Ab=new Le(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Kq(this,qn(n));return;case 2:TZ(this,qn(n));return;case 5:tS(this,qn(n));return;case 7:!this.A&&(this.A=new Ml(fl,this,7)),Mn(this.A),!this.A&&(this.A=new Ml(fl,this,7)),dr(this.A,c(n,18));return;case 8:nG(this,it(nt(n)));return;case 9:!this.a&&(this.a=new Le(eg,this,9,5)),Mn(this.a),!this.a&&(this.a=new Le(eg,this,9,5)),dr(this.a,c(n,18));return}Oa(this,t-bn((At(),vp)),Lt((i=c(Kt(this,16),29),i||vp),t),n)},f.fi=function(){return At(),vp},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab);return;case 1:he(this.Cb,187)&&(c(this.Cb,187).tb=null),Xc(this,null);return;case 2:Cj(this,null),mj(this,this.D);return;case 5:tS(this,null);return;case 7:!this.A&&(this.A=new Ml(fl,this,7)),Mn(this.A);return;case 8:nG(this,!0);return;case 9:!this.a&&(this.a=new Le(eg,this,9,5)),Mn(this.a);return}ka(this,t-bn((At(),vp)),Lt((n=c(Kt(this,16),29),n||vp),t))},f.mi=function(){var t,n;if(this.a)for(t=0,n=this.a.i;t<n;++t)H_(ae(this.a,t));Rg((Pl(),ms),this).ve(),this.Bb|=1},f.gk=function(){return Rwe(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},hPe),f.ve=function(){return this.zb},f.xh=function(t){return het(this,t)},f.Ih=function(t,n,i){var r,o;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return ze(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(),r0)),Lt((r=c(Kt(this,16),29),r||r0),t),n,i)},f.Ph=function(t,n,i){var r,o,a;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Kc(this.Ab,t,i);case 5:return this.Cb&&(i=(o=this.Db>>16,o>=0?het(this,i):this.Cb.Qh(this,-1-o,null,i))),Uu(this,t,5,i)}return a=c(Lt((r=c(Kt(this,16),29),r||(At(),r0)),n),69),a.uk().xk(this,sl(this),n-bn((At(),r0)),t,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Ns(this.Ab,t,i);case 5:return Uu(this,null,5,i)}return o=c(Lt((r=c(Kt(this,16),29),r||(At(),r0)),n),69),o.uk().yk(this,sl(this),n-bn((At(),r0)),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 pa(this,t-bn((At(),r0)),Lt((n=c(Kt(this,16),29),n||r0),t))},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab),!this.Ab&&(this.Ab=new Le(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Xc(this,qn(n));return;case 2:_te(this,c(n,15).a);return;case 3:xnt(this,c(n,2018));return;case 4:Lte(this,qn(n));return}Oa(this,t-bn((At(),r0)),Lt((i=c(Kt(this,16),29),i||r0),t),n)},f.fi=function(){return At(),r0},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab);return;case 1:Xc(this,null);return;case 2:_te(this,0);return;case 3:xnt(this,null);return;case 4:Lte(this,null);return}ka(this,t-bn((At(),r0)),Lt((n=c(Kt(this,16),29),n||r0),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 Kin=er(Vt,"EFactoryImpl/InternalEDateTimeFormat");E(488,1,{2093:1},f_),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},_b),f.zh=function(t,n,i){var r;return i=Uu(this,t,n,i),this.e&&he(t,182)&&(r=UG(this,this.e),r!=this.c&&(i=nS(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(Ks,this,1)),this.d;case 2:return n?iQ(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return n?Qne(this):this.a}return ba(this,t-bn((At(),Ww)),Lt((r=c(Kt(this,16),29),r||Ww),t),n,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return XKe(this,null,i);case 1:return!this.d&&(this.d=new Nr(Ks,this,1)),Ns(this.d,t,i);case 3:return VKe(this,null,i)}return o=c(Lt((r=c(Kt(this,16),29),r||(At(),Ww)),n),69),o.uk().yk(this,sl(this),n-bn((At(),Ww)),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 pa(this,t-bn((At(),Ww)),Lt((n=c(Kt(this,16),29),n||Ww),t))},f.$h=function(t,n){var i;switch(t){case 0:_et(this,c(n,88));return;case 1:!this.d&&(this.d=new Nr(Ks,this,1)),Mn(this.d),!this.d&&(this.d=new Nr(Ks,this,1)),dr(this.d,c(n,18));return;case 3:dve(this,c(n,88));return;case 4:_ve(this,c(n,842));return;case 5:pj(this,c(n,146));return}Oa(this,t-bn((At(),Ww)),Lt((i=c(Kt(this,16),29),i||Ww),t),n)},f.fi=function(){return At(),Ww},f.hi=function(t){var n;switch(t){case 0:_et(this,null);return;case 1:!this.d&&(this.d=new Nr(Ks,this,1)),Mn(this.d);return;case 3:dve(this,null);return;case 4:_ve(this,null);return;case 5:pj(this,null);return}ka(this,t-bn((At(),Ww)),Lt((n=c(Kt(this,16),29),n||Ww),t))},f.Ib=function(){var t;return t=new Iu(jf(this)),t.a+=" (expression: ",Kie(this,t),t.a+=")",t.a};var wCe;M(Vt,"EGenericTypeImpl",251),E(2046,2041,uU),f.Ei=function(t,n){gFe(this,t,n)},f.Uk=function(t,n){return gFe(this,this.gc(),t),n},f.Yi=function(t){return vc(this.nj(),t)},f.Gi=function(){return this.Hi()},f.nj=function(){return new uPe(this)},f.Hi=function(){return this.Ii(0)},f.Ii=function(t){return this.nj().dd(t)},f.Vk=function(t,n){return vv(this,t,!0),n},f.Ri=function(t,n){var i,r;return r=nie(this,n),i=this.dd(t),i.Rb(r),r},f.Si=function(t,n){var i;vv(this,n,!0),i=this.dd(t),i.Rb(n)},M(Wi,"AbstractSequentialInternalEList",2046),E(485,2046,uU,q_),f.Yi=function(t){return vc(this.nj(),t)},f.Gi=function(){return this.b==null?(Tg(),Tg(),yI):this.ql()},f.nj=function(){return new LBe(this.a,this.b)},f.Hi=function(){return this.b==null?(Tg(),Tg(),yI):this.ql()},f.Ii=function(t){var n,i;if(this.b==null){if(t<0||t>1)throw K(new Qc(IC+t+", size=0"));return Tg(),Tg(),yI}for(i=this.ql(),n=0;n<t;++n)QH(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),qs(),c(t,69).vk()){for(n=c(a,164),r=0,o=n.gc();r<o;++r)if(FHe(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 Zbe(this)},f.dd=function(t){var n,i;if(this.b==null){if(t!=0)throw K(new Qc(IC+t+", size=0"));return Tg(),Tg(),yI}for(i=this.sl()?this.rl():this.ql(),n=0;n<t;++n)QH(i);return i},f.Ri=function(t,n){throw K(new zn)},f.Si=function(t,n){throw K(new zn)},f.ql=function(){return new tq(this.a,this.b)},f.rl=function(){return new S0e(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),qs(),c(t,69).vk())for(n=c(d,164),r=0,a=n.gc();r<a;++r)FHe(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 nfe;M(Wi,"EContentsEList",485),E(1158,485,uU,Zze),f.ql=function(){return new eFe(this.a,this.b)},f.rl=function(){return new tFe(this.a,this.b)},f.tl=function(){return!1},M(Vt,"ENamedElementImpl/1",1158),E(289,1,aU,tq),f.Nb=function(t){ps(this,t)},f.Rb=function(t){throw K(new zn)},f.ul=function(t){if(this.g!=0||this.e)throw K(new oo("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?!_tt(this,this.p):!knt(this))){for(;this.d<this.c.length;)if(n=this.c[this.d++],(!this.e||n.nk()!=y9||n.Jj()!=0)&&(!this.tl()||this.b.Uh(n))){if(a=this.b.Kh(n,this.sl()),this.f=(qs(),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),he(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?_tt(this,this.p):knt(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?!Dtt(this,this.p):!Htt(this))){for(;this.d>0;)if(n=this.c[--this.d],(!this.e||n.nk()!=y9||n.Jj()!=0)&&(!this.tl()||this.b.Uh(n))){if(a=this.b.Kh(n,this.sl()),this.f=(qs(),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),he(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?Dtt(this,this.p):Htt(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 QH(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 K(new Eo)},f.Vb=function(){return this.a-1},f.Qb=function(){throw K(new zn)},f.sl=function(){return!1},f.Wb=function(t){throw K(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 yI;M(Wi,"EContentsEList/FeatureIteratorImpl",289),E(707,289,aU,S0e),f.sl=function(){return!0},M(Wi,"EContentsEList/ResolvingFeatureIteratorImpl",707),E(1159,707,aU,tFe),f.tl=function(){return!1},M(Vt,"ENamedElementImpl/1/1",1159),E(1160,289,aU,eFe),f.tl=function(){return!1},M(Vt,"ENamedElementImpl/1/2",1160),E(40,152,nP,av,rte,Ur,wte,N1,wf,Ibe,FQe,Rbe,qQe,tbe,HQe,zbe,GQe,nbe,QQe,$be,UQe,i7,wD,$ee,Bbe,JQe,ibe,WQe),f.Ij=function(){return wbe(this)},f.Pj=function(){var t;return t=wbe(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=wbe(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},vY),f.xh=function(t){return get(this,t)},f.Ih=function(t,n,i){var r,o,a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return zt(),(this.Bb&256)!=0;case 3:return zt(),(this.Bb&512)!=0;case 4:return ze(this.s);case 5:return ze(this.t);case 6:return zt(),a=this.t,a>1||a==-1;case 7:return zt(),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 Ml(fl,this,11)),this.d;case 12:return!this.c&&(this.c=new Le(Jw,this,12,10)),this.c;case 13:return!this.a&&(this.a=new U_(this,this)),this.a;case 14:return ou(this)}return ba(this,t-bn((At(),s0)),Lt((r=c(Kt(this,16),29),r||s0),t),n,i)},f.Ph=function(t,n,i){var r,o,a;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Kc(this.Ab,t,i);case 10:return this.Cb&&(i=(o=this.Db>>16,o>=0?get(this,i):this.Cb.Qh(this,-1-o,null,i))),Uu(this,t,10,i);case 12:return!this.c&&(this.c=new Le(Jw,this,12,10)),Kc(this.c,t,i)}return a=c(Lt((r=c(Kt(this,16),29),r||(At(),s0)),n),69),a.uk().xk(this,sl(this),n-bn((At(),s0)),t,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Ns(this.Ab,t,i);case 9:return jee(this,i);case 10:return Uu(this,null,10,i);case 11:return!this.d&&(this.d=new Ml(fl,this,11)),Ns(this.d,t,i);case 12:return!this.c&&(this.c=new Le(Jw,this,12,10)),Ns(this.c,t,i);case 14:return Ns(ou(this),t,i)}return o=c(Lt((r=c(Kt(this,16),29),r||(At(),s0)),n),69),o.uk().yk(this,sl(this),n-bn((At(),s0)),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&&Jb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Jb(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&&ou(this.a.a).i!=0&&!(this.b&&Hne(this.b));case 14:return!!this.b&&Hne(this.b)}return pa(this,t-bn((At(),s0)),Lt((n=c(Kt(this,16),29),n||s0),t))},f.$h=function(t,n){var i,r;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab),!this.Ab&&(this.Ab=new Le(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Xc(this,qn(n));return;case 2:$g(this,it(nt(n)));return;case 3:Bg(this,it(nt(n)));return;case 4:Lg(this,c(n,15).a);return;case 5:dv(this,c(n,15).a);return;case 8:bm(this,c(n,146));return;case 9:r=Th(this,c(n,88),null),r&&r.mj();return;case 11:!this.d&&(this.d=new Ml(fl,this,11)),Mn(this.d),!this.d&&(this.d=new Ml(fl,this,11)),dr(this.d,c(n,18));return;case 12:!this.c&&(this.c=new Le(Jw,this,12,10)),Mn(this.c),!this.c&&(this.c=new Le(Jw,this,12,10)),dr(this.c,c(n,18));return;case 13:!this.a&&(this.a=new U_(this,this)),hC(this.a),!this.a&&(this.a=new U_(this,this)),dr(this.a,c(n,18));return;case 14:Mn(ou(this)),dr(ou(this),c(n,18));return}Oa(this,t-bn((At(),s0)),Lt((i=c(Kt(this,16),29),i||s0),t),n)},f.fi=function(){return At(),s0},f.hi=function(t){var n,i;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab);return;case 1:Xc(this,null);return;case 2:$g(this,!0);return;case 3:Bg(this,!0);return;case 4:Lg(this,0);return;case 5:dv(this,1);return;case 8:bm(this,null);return;case 9:i=Th(this,null,null),i&&i.mj();return;case 11:!this.d&&(this.d=new Ml(fl,this,11)),Mn(this.d);return;case 12:!this.c&&(this.c=new Le(Jw,this,12,10)),Mn(this.c);return;case 13:this.a&&hC(this.a);return;case 14:this.b&&Mn(this.b);return}ka(this,t-bn((At(),s0)),Lt((n=c(Kt(this,16),29),n||s0),t))},f.mi=function(){var t,n;if(this.c)for(t=0,n=this.c.i;t<n;++t)H_(ae(this.c,t));Qa(this),this.Bb|=1},M(Vt,"EOperationImpl",408),E(503,751,wke,U_),f.oj=function(t,n){lCt(this,t,c(n,146))},f.pj=function(t){XTt(this,c(t,146))},f.vj=function(t){var n,i;return n=c(ae(ou(this.a),t),88),i=n.c,i||(At(),Hh)},f.Aj=function(t){var n,i;return n=c(Mv(ou(this.a),t),88),i=n.c,i||(At(),Hh)},f.Bj=function(t,n){return SFt(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 sPe(this)},f.rj=function(){Mn(ou(this.a))},f.sj=function(t){return hYe(this,t)},f.tj=function(t){var n,i;for(i=t.Jc();i.Ob();)if(n=i.Pb(),!hYe(this,n))return!1;return!0},f.uj=function(t){var n,i,r;if(he(t,16)&&(r=c(t,16),r.gc()==ou(this.a).i)){for(n=r.Jc(),i=new ln(this);n.Ob();)if(Se(n.Pb())!==Se(fn(i)))return!1;return!0}return!1},f.wj=function(){var t,n,i,r,o;for(i=1,n=new ln(ou(this.a));n.e!=n.i.gc();)t=c(fn(n),88),r=(o=t.c,o||(At(),Hh)),i=31*i+(r?zi(r):0);return i},f.xj=function(t){var n,i,r,o;for(r=0,i=new ln(ou(this.a));i.e!=i.i.gc();){if(n=c(fn(i),88),Se(t)===Se((o=n.c,o||(At(),Hh))))return r;++r}return-1},f.yj=function(){return ou(this.a).i==0},f.zj=function(){return null},f.Cj=function(){return ou(this.a).i},f.Dj=function(){var t,n,i,r,o,a;for(a=ou(this.a).i,o=Ce(Br,It,1,a,5,1),i=0,n=new ln(ou(this.a));n.e!=n.i.gc();)t=c(fn(n),88),o[i++]=(r=t.c,r||(At(),Hh));return o},f.Ej=function(t){var n,i,r,o,a,d,b;for(b=ou(this.a).i,t.length<b&&(o=AD(ju(t).c,b),t=o),t.length>b&&br(t,b,null),r=0,i=new ln(ou(this.a));i.e!=i.i.gc();)n=c(fn(i),88),a=(d=n.c,d||(At(),Hh)),br(t,r++,a);return t},f.Fj=function(){var t,n,i,r,o;for(o=new kg,o.a+="[",t=ou(this.a),n=0,r=ou(this.a).i;n<r;)Zs(o,WT((i=c(ae(t,n),88).c,i||(At(),Hh)))),++n<r&&(o.a+=Yc);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 he(t,146)},f.Oj=function(){return xLt(this.a)},f.Qi=function(){return!0},f.Wi=function(){return!0},M(Vt,"EOperationImpl/1",503),E(1342,2041,cS,sPe),f.dd=function(t){return ND(this.a,t)},f.gc=function(){return ou(this.a.a).i},M(Vt,"EOperationImpl/1/1",1342),E(1343,547,To,iHe),f.Ri=function(t,n){var i,r;return i=c(R7(this,t,n),88),bu(this.e)&&N6(this,new wD(this.a,7,(At(),uxt),ze(n),(r=i.c,r||Hh),t)),i},f.Sj=function(t,n){return QBt(this,c(t,88),n)},f.Tj=function(t,n){return UBt(this,c(t,88),n)},f.Uj=function(t,n,i){return $Ft(this,c(t,88),c(n,88),i)},f.Gj=function(t,n,i,r,o){switch(t){case 3:return h7(this,t,n,i,r,this.i>1);case 5:return h7(this,t,n,i,r,this.i-c(i,16).gc()>0);default:return new N1(this.e,t,this.c,n,i,r,!0)}},f.Rj=function(){return!0},f.Oj=function(){return Hne(this)},f.Ek=function(){Mn(this)},M(Vt,"EOperationImpl/2",1343),E(496,1,{2016:1,496:1},mBe),M(Vt,"EPackageImpl/1",496),E(14,82,To,Le),f.gl=function(){return this.d},f.hl=function(){return this.b},f.kl=function(){return!0},f.b=0,M(Wi,"EObjectContainmentWithInverseEList",14),E(362,14,To,C4),f.ll=function(){return!0},f.Ui=function(t,n){return uk(this,t,c(n,57))},M(Wi,"EObjectContainmentWithInverseEList/Resolving",362),E(313,362,To,tv),f.Li=function(){this.a.tb=null},M(Vt,"EPackageImpl/2",313),E(1255,1,{},ON),M(Vt,"EPackageImpl/3",1255),E(728,44,t3,C1e),f._b=function(t){return Yr(t)?zee(this,t):!!co(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},xY),f.xh=function(t){return pet(this,t)},f.Ih=function(t,n,i){var r,o,a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return zt(),(this.Bb&256)!=0;case 3:return zt(),(this.Bb&512)!=0;case 4:return ze(this.s);case 5:return ze(this.t);case 6:return zt(),a=this.t,a>1||a==-1;case 7:return zt(),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(),Ox)),Lt((r=c(Kt(this,16),29),r||Ox),t),n,i)},f.Ph=function(t,n,i){var r,o,a;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Kc(this.Ab,t,i);case 10:return this.Cb&&(i=(o=this.Db>>16,o>=0?pet(this,i):this.Cb.Qh(this,-1-o,null,i))),Uu(this,t,10,i)}return a=c(Lt((r=c(Kt(this,16),29),r||(At(),Ox)),n),69),a.uk().xk(this,sl(this),n-bn((At(),Ox)),t,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Ns(this.Ab,t,i);case 9:return jee(this,i);case 10:return Uu(this,null,10,i)}return o=c(Lt((r=c(Kt(this,16),29),r||(At(),Ox)),n),69),o.uk().yk(this,sl(this),n-bn((At(),Ox)),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&&Jb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Jb(this.q).i==0);case 10:return!!(this.Db>>16==10&&c(this.Cb,62))}return pa(this,t-bn((At(),Ox)),Lt((n=c(Kt(this,16),29),n||Ox),t))},f.fi=function(){return At(),Ox},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},A0e),f.Ih=function(t,n,i){var r,o,a,d;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return zt(),(this.Bb&256)!=0;case 3:return zt(),(this.Bb&512)!=0;case 4:return ze(this.s);case 5:return ze(this.t);case 6:return zt(),d=this.t,d>1||d==-1;case 7:return zt(),o=this.s,o>=1;case 8:return n?Qa(this):this.r;case 9:return this.q;case 10:return zt(),(this.Bb&Ua)!=0;case 11:return zt(),(this.Bb&F1)!=0;case 12:return zt(),(this.Bb&Pv)!=0;case 13:return this.j;case 14:return Jj(this);case 15:return zt(),(this.Bb&Rl)!=0;case 16:return zt(),(this.Bb&ad)!=0;case 17:return ov(this);case 18:return zt(),(this.Bb&sc)!=0;case 19:return zt(),a=Hs(this),!!(a&&(a.Bb&sc)!=0);case 20:return zt(),(this.Bb&Ps)!=0;case 21:return n?Hs(this):this.b;case 22:return n?Swe(this):pJe(this);case 23:return!this.a&&(this.a=new Cy(xx,this,23)),this.a}return ba(this,t-bn((At(),z3)),Lt((r=c(Kt(this,16),29),r||z3),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&&Jb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Jb(this.q).i==0);case 10:return(this.Bb&Ua)==0;case 11:return(this.Bb&F1)!=0;case 12:return(this.Bb&Pv)!=0;case 13:return this.j!=null;case 14:return Jj(this)!=null;case 15:return(this.Bb&Rl)!=0;case 16:return(this.Bb&ad)!=0;case 17:return!!ov(this);case 18:return(this.Bb&sc)!=0;case 19:return r=Hs(this),!!r&&(r.Bb&sc)!=0;case 20:return(this.Bb&Ps)==0;case 21:return!!this.b;case 22:return!!pJe(this);case 23:return!!this.a&&this.a.i!=0}return pa(this,t-bn((At(),z3)),Lt((n=c(Kt(this,16),29),n||z3),t))},f.$h=function(t,n){var i,r;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab),!this.Ab&&(this.Ab=new Le(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Xee(this,qn(n));return;case 2:$g(this,it(nt(n)));return;case 3:Bg(this,it(nt(n)));return;case 4:Lg(this,c(n,15).a);return;case 5:dv(this,c(n,15).a);return;case 8:bm(this,c(n,146));return;case 9:r=Th(this,c(n,88),null),r&&r.mj();return;case 10:Nj(this,it(nt(n)));return;case 11:Lj(this,it(nt(n)));return;case 12:_j(this,it(nt(n)));return;case 13:qge(this,qn(n));return;case 15:Dj(this,it(nt(n)));return;case 16:Pj(this,it(nt(n)));return;case 18:wDt(this,it(nt(n)));return;case 20:i2e(this,it(nt(n)));return;case 21:twe(this,c(n,20));return;case 23:!this.a&&(this.a=new Cy(xx,this,23)),Mn(this.a),!this.a&&(this.a=new Cy(xx,this,23)),dr(this.a,c(n,18));return}Oa(this,t-bn((At(),z3)),Lt((i=c(Kt(this,16),29),i||z3),t),n)},f.fi=function(){return At(),z3},f.hi=function(t){var n,i;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab);return;case 1:he(this.Cb,89)&&Tv(ru(c(this.Cb,89)),4),Xc(this,null);return;case 2:$g(this,!0);return;case 3:Bg(this,!0);return;case 4:Lg(this,0);return;case 5:dv(this,1);return;case 8:bm(this,null);return;case 9:i=Th(this,null,null),i&&i.mj();return;case 10:Nj(this,!0);return;case 11:Lj(this,!1);return;case 12:_j(this,!1);return;case 13:this.i=null,RH(this,null);return;case 15:Dj(this,!1);return;case 16:Pj(this,!1);return;case 18:r2e(this,!1),he(this.Cb,89)&&Tv(ru(c(this.Cb,89)),2);return;case 20:i2e(this,!0);return;case 21:twe(this,null);return;case 23:!this.a&&(this.a=new Cy(xx,this,23)),Mn(this.a);return}ka(this,t-bn((At(),z3)),Lt((n=c(Kt(this,16),29),n||z3),t))},f.mi=function(){Swe(this),sj(uo((Pl(),ms),this)),Qa(this),this.Bb|=1},f.sk=function(){return Hs(this)},f.Zk=function(){var t;return t=Hs(this),!!t&&(t.Bb&sc)!=0},f.$k=function(){return(this.Bb&sc)!=0},f._k=function(){return(this.Bb&Ps)!=0},f.Wk=function(t,n){return this.c=null,Jwe(this,t,n)},f.Ib=function(){var t;return(this.Db&64)!=0?tQ(this):(t=new za(tQ(this)),t.a+=" (containment: ",Og(t,(this.Bb&sc)!=0),t.a+=", resolveProxies: ",Og(t,(this.Bb&Ps)!=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},Ad),f.Fb=function(t){return this===t},f.jd=function(){return this.b},f.kd=function(){return this.c},f.Hb=function(){return Hb(this)},f.Ai=function(t){MAt(this,qn(t))},f.ld=function(t){return wAt(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(),$s)),Lt((r=c(Kt(this,16),29),r||$s),t),n,i)},f.Th=function(t){var n;switch(t){case 0:return this.b!=null;case 1:return this.c!=null}return pa(this,t-bn((At(),$s)),Lt((n=c(Kt(this,16),29),n||$s),t))},f.$h=function(t,n){var i;switch(t){case 0:AAt(this,qn(n));return;case 1:Vbe(this,qn(n));return}Oa(this,t-bn((At(),$s)),Lt((i=c(Kt(this,16),29),i||$s),t),n)},f.fi=function(){return At(),$s},f.hi=function(t){var n;switch(t){case 0:Ybe(this,null);return;case 1:Vbe(this,null);return}ka(this,t-bn((At(),$s)),Lt((n=c(Kt(this,16),29),n||$s),t))},f.yi=function(){var t;return this.a==-1&&(t=this.b,this.a=t==null?0:Pg(t)),this.a},f.zi=function(t){this.a=t},f.Ib=function(){var t;return(this.Db&64)!=0?jf(this):(t=new za(jf(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 ec=M(Vt,"EStringToStringMapEntryImpl",553),pxt=er(Wi,"FeatureMap/Entry/Internal");E(569,1,fU),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:he(t,76)?(n=c(t,76),n.Jk()==this.c?(i=this.kd(),i==null?n.kd()==null:ki(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=Fu(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,fU,H0e),f.wl=function(t){return new H0e(this.c,t)},f.kd=function(){return this.a},f.xl=function(t,n,i){return u$t(this,t,this.a,n,i)},f.yl=function(t,n,i){return a$t(this,t,this.a,n,i)},M(Vt,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",784),E(1316,1,{},bBe),f.wk=function(t,n,i,r,o){var a;return a=c(fj(t,this.b),222),a.Wl(this.a).Dk(r)},f.xk=function(t,n,i,r,o){var a;return a=c(fj(t,this.b),222),a.Nl(this.a,r,o)},f.yk=function(t,n,i,r,o){var a;return a=c(fj(t,this.b),222),a.Ol(this.a,r,o)},f.zk=function(t,n,i){var r;return r=c(fj(t,this.b),222),r.Wl(this.a).Oj()},f.Ak=function(t,n,i,r){var o;o=c(fj(t,this.b),222),o.Wl(this.a).Wb(r)},f.Bk=function(t,n,i){return c(fj(t,this.b),222).Wl(this.a)},f.Ck=function(t,n,i){var r;r=c(fj(t,this.b),222),r.Wl(this.a).Ek()},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1316),E(90,1,{},Eg,nm,Ag,lm),f.wk=function(t,n,i,r,o){var a;if(a=n.ii(i),a==null&&n.ji(i,a=dQ(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=dQ(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=dQ(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=dQ(this,t)),he(o,78)?c(o,78):(r=c(n.ii(i),16),new cPe(r))},f.Ck=function(t,n,i){var r;r=c(n.ii(i),78),!r&&n.ji(i,r=dQ(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 K(new zn)},f.yk=function(t,n,i,r,o){throw K(new zn)},f.Bk=function(t,n,i){return new bGe(this,t,n,i)};var o1;M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingle",502),E(1333,1,Roe,bGe),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,{},Ome),f.wk=function(t,n,i,r,o){return $ie(t,t.Mh(),t.Ch())==this.b?this._k()&&r?Tie(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=Yi(t.Ah(),this.e),t.zh(r,d,o)},f.yk=function(t,n,i,r,o){var a;return a=Yi(t.Ah(),this.e),t.zh(null,a,o)},f.zk=function(t,n,i){var r;return r=Yi(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&&!qie(this.a,r))throw K(new _6(hU+(he(r,57)?hve(c(r,57).Ah()):_be(ju(r)))+dU+this.a+"'"));if(o=t.Mh(),d=Yi(t.Ah(),this.e),Se(r)!==Se(o)||t.Ch()!=d&&r!=null){if(zj(t,c(r,57)))throw K(new Ht(LC+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,Yi(b.Ah(),this.b),null,v)),v=t.zh(b,d,v),v&&v.mj()}else t.sh()&&t.th()&&yi(t,new Ur(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=Yi(t.Ah(),this.e),d=t.zh(null,a,d),d&&d.mj()):t.sh()&&t.th()&&yi(t,new i7(t,1,this.e,null,null))},f._k=function(){return!1},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",777),E(1317,777,{},lqe),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:Se(a)===Se(o1)?null:a},f.zk=function(t,n,i){var r;return r=n.ii(i),r!=null&&(Se(r)===Se(o1)||!ki(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:Se(a)===Se(o1)?null:a),r==null?this.c!=null?(n.ji(i,null),r=this.b):this.b!=null?n.ji(i,o1):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,o1):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:Se(o)===Se(o1)?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 K(new bPe)},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",567),E(a3,1,{},w0),f.Al=function(t,n,i,r,o){return new i7(t,n,i,r,o)},f.Bl=function(t,n,i,r,o,a){return new $ee(t,n,i,r,o,a)};var vCe,xCe,yCe,kCe,OCe,jCe,SCe,ife,TCe;M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",a3),E(1334,a3,{},EB),f.Al=function(t,n,i,r,o){return new ibe(t,n,i,it(nt(r)),it(nt(o)))},f.Bl=function(t,n,i,r,o,a){return new WQe(t,n,i,it(nt(r)),it(nt(o)),a)},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1334),E(1335,a3,{},Nd),f.Al=function(t,n,i,r,o){return new Ibe(t,n,i,c(r,224).a,c(o,224).a)},f.Bl=function(t,n,i,r,o,a){return new FQe(t,n,i,c(r,224).a,c(o,224).a,a)},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1335),E(1336,a3,{},MB),f.Al=function(t,n,i,r,o){return new Rbe(t,n,i,c(r,183).a,c(o,183).a)},f.Bl=function(t,n,i,r,o,a){return new qQe(t,n,i,c(r,183).a,c(o,183).a,a)},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1336),E(1337,a3,{},Sb),f.Al=function(t,n,i,r,o){return new tbe(t,n,i,ge(be(r)),ge(be(o)))},f.Bl=function(t,n,i,r,o,a){return new HQe(t,n,i,ge(be(r)),ge(be(o)),a)},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1337),E(1338,a3,{},cy),f.Al=function(t,n,i,r,o){return new zbe(t,n,i,c(r,165).a,c(o,165).a)},f.Bl=function(t,n,i,r,o,a){return new GQe(t,n,i,c(r,165).a,c(o,165).a,a)},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1338),E(1339,a3,{},Tb),f.Al=function(t,n,i,r,o){return new nbe(t,n,i,c(r,15).a,c(o,15).a)},f.Bl=function(t,n,i,r,o,a){return new QQe(t,n,i,c(r,15).a,c(o,15).a,a)},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1339),E(1340,a3,{},jN),f.Al=function(t,n,i,r,o){return new $be(t,n,i,c(r,192).a,c(o,192).a)},f.Bl=function(t,n,i,r,o,a){return new UQe(t,n,i,c(r,192).a,c(o,192).a,a)},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1340),E(1341,a3,{},SN),f.Al=function(t,n,i,r,o){return new Bbe(t,n,i,c(r,193).a,c(o,193).a)},f.Bl=function(t,n,i,r,o,a){return new JQe(t,n,i,c(r,193).a,c(o,193).a,a)},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1341),E(1319,567,{},yGe),f.zl=function(t){if(!this.a.dk(t))throw K(new _6(hU+ju(t)+dU+this.a+"'"))},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1319),E(1320,567,{},rHe),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):Se(a)===Se(o1)&&(a=null),r==null?this.c!=null?(n.ji(i,null),r=this.b):n.ji(i,o1):(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,o1):(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):Se(o)===Se(o1)&&(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,{},kGe),f.zl=function(t){if(!this.a.dk(t))throw K(new _6(hU+ju(t)+dU+this.a+"'"))},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1321),E(1322,778,{},sHe),f.zl=function(t){},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1322),E(407,502,{},Oq),f.wk=function(t,n,i,r,o){var a,d,b,v,k;if(k=n.ii(i),this.rk()&&Se(k)===Se(o1))return null;if(this._k()&&r&&k!=null){if(b=c(k,52),b.Sh()&&(v=B0(t,b),b!=v)){if(!qie(this.a,v))throw K(new _6(hU+ju(v)+dU+this.a+"'"));n.ji(i,k=v),this.$k()&&(a=c(v,52),d=b.Qh(t,this.b?Yi(b.Ah(),this.b):-1-Yi(t.Ah(),this.e),null,null),!a.Mh()&&(d=a.Oh(t,this.b?Yi(a.Ah(),this.b):-1-Yi(t.Ah(),this.e),null,d)),d&&d.mj()),t.sh()&&t.th()&&yi(t,new i7(t,9,this.e,b,v))}return k}else return k},f.xk=function(t,n,i,r,o){var a,d;return d=n.ii(i),Se(d)===Se(o1)&&(d=null),n.ji(i,r),this.Kj()?Se(d)!==Se(r)&&d!=null&&(a=c(d,52),o=a.Qh(t,Yi(a.Ah(),this.b),null,o)):this.$k()&&d!=null&&(o=c(d,52).Qh(t,-1-Yi(t.Ah(),this.e),null,o)),t.sh()&&t.th()&&(!o&&(o=new x0(4)),o.lj(new i7(t,1,this.e,d,r))),o},f.yk=function(t,n,i,r,o){var a;return a=n.ii(i),Se(a)===Se(o1)&&(a=null),n.ki(i),t.sh()&&t.th()&&(!o&&(o=new x0(4)),this.rk()?o.lj(new i7(t,2,this.e,a,null)):o.lj(new i7(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&&!qie(this.a,r))throw K(new _6(hU+(he(r,57)?hve(c(r,57).Ah()):_be(ju(r)))+dU+this.a+"'"));v=n.ii(i),b=v!=null,this.rk()&&Se(v)===Se(o1)&&(v=null),d=null,this.Kj()?Se(v)!==Se(r)&&(v!=null&&(o=c(v,52),d=o.Qh(t,Yi(o.Ah(),this.b),null,d)),r!=null&&(o=c(r,52),d=o.Oh(t,Yi(o.Ah(),this.b),null,d))):this.$k()&&Se(v)!==Se(r)&&(v!=null&&(d=c(v,52).Qh(t,-1-Yi(t.Ah(),this.e),null,d)),r!=null&&(d=c(r,52).Oh(t,-1-Yi(t.Ah(),this.e),null,d))),r==null&&this.rk()?n.ji(i,o1):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()&&Se(b)===Se(o1)&&(b=null),a=null,b!=null&&(this.Kj()?(r=c(b,52),a=r.Qh(t,Yi(r.Ah(),this.b),null,a)):this.$k()&&(a=c(b,52).Qh(t,-1-Yi(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,{},BZ),f.$k=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",568),E(1325,568,{},nFe),f._k=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1325),E(780,568,{},T0e),f.rk=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",780),E(1327,780,{},iFe),f._k=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1327),E(645,568,{},eee),f.Kj=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",645),E(1326,645,{},uqe),f._k=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1326),E(781,645,{},fpe),f.rk=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",781),E(1328,781,{},aqe),f._k=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1328),E(646,407,{},C0e),f._k=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",646),E(1329,646,{},sFe),f.rk=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1329),E(782,646,{},upe),f.Kj=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",782),E(1330,782,{},fqe),f.rk=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1330),E(1323,407,{},rFe),f.rk=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1323),E(779,407,{},ape),f.Kj=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",779),E(1324,779,{},hqe),f.rk=function(){return!0},M(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1324),E(783,569,fU,nme),f.wl=function(t){return new nme(this.a,this.c,t)},f.kd=function(){return this.b},f.xl=function(t,n,i){return cIt(this,t,this.b,i)},f.yl=function(t,n,i){return lIt(this,t,this.b,i)},M(Vt,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",783),E(1331,1,Roe,cPe),f.Dk=function(t){return this.a},f.Oj=function(){return he(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(){he(this.a,98)?c(this.a,98).Ek():this.a.$b()},M(Vt,"EStructuralFeatureImpl/SettingMany",1331),E(1332,569,fU,FUe),f.vl=function(t){return new GZ((Ai(),hM),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,fU,GZ),f.vl=function(t){return new GZ(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,bd,Qf),f.$i=function(t){return Ce(tf,It,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},z8),f.Ih=function(t,n,i){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new ZT(this,Ks,this)),this.a}return ba(this,t-bn((At(),Vw)),Lt((r=c(Kt(this,16),29),r||Vw),t),n,i)},f.Rh=function(t,n,i){var r,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Ns(this.Ab,t,i);case 2:return!this.a&&(this.a=new ZT(this,Ks,this)),Ns(this.a,t,i)}return o=c(Lt((r=c(Kt(this,16),29),r||(At(),Vw)),n),69),o.uk().yk(this,sl(this),n-bn((At(),Vw)),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 pa(this,t-bn((At(),Vw)),Lt((n=c(Kt(this,16),29),n||Vw),t))},f.$h=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab),!this.Ab&&(this.Ab=new Le(oi,this,0,3)),dr(this.Ab,c(n,18));return;case 1:Xc(this,qn(n));return;case 2:!this.a&&(this.a=new ZT(this,Ks,this)),Mn(this.a),!this.a&&(this.a=new ZT(this,Ks,this)),dr(this.a,c(n,18));return}Oa(this,t-bn((At(),Vw)),Lt((i=c(Kt(this,16),29),i||Vw),t),n)},f.fi=function(){return At(),Vw},f.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(oi,this,0,3)),Mn(this.Ab);return;case 1:Xc(this,null);return;case 2:!this.a&&(this.a=new ZT(this,Ks,this)),Mn(this.a);return}ka(this,t-bn((At(),Vw)),Lt((n=c(Kt(this,16),29),n||Vw),t))},M(Vt,"ETypeParameterImpl",449),E(450,82,To,ZT),f.Lj=function(t,n){return nQt(this,c(t,88),n)},f.Mj=function(t,n){return iQt(this,c(t,88),n)},M(Vt,"ETypeParameterImpl/1",450),E(644,44,t3,yY),f.ec=function(){return new qz(this)},M(Vt,"ETypeParameterImpl/2",644),E(564,Mh,Il,qz),f.Ec=function(t){return BFe(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(){lc(this.a)},f.Gc=function(t){return Ac(this.a,t)},f.Jc=function(){var t;return t=new pv(new Hp(this.a).a),new Hz(t)},f.Kc=function(t){return MJe(this,t)},f.gc=function(){return kT(this.a)},M(Vt,"ETypeParameterImpl/2/1",564),E(565,1,ns,Hz),f.Nb=function(t){ps(this,t)},f.Pb=function(){return c(Ry(this.a).jd(),88)},f.Ob=function(){return this.a.b},f.Qb=function(){FWe(this.a)},M(Vt,"ETypeParameterImpl/2/1/1",565),E(1293,44,t3,XPe),f._b=function(t){return Yr(t)?zee(this,t):!!co(this.f,t)},f.xc=function(t){var n,i;return n=Yr(t)?Nc(this,t):Ao(co(this.f,t)),he(n,843)?(i=c(n,843),n=i.Ik(),ci(this,c(t,244),n),n):n??(t==null?(zY(),bxt):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},z5),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:So(n);case 25:return bRt(n);case 27:return _It(n);case 28:return DIt(n);case 29:return n==null?null:cze(oM[0],c(n,208));case 41:return n==null?"":Up(c(n,299));case 42:return So(n);case 50:return qn(n);default:throw K(new Ht(AS+t.ve()+Aw))}},f.pi=function(t){var n,i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y;switch(t.G==-1&&(t.G=(L=Fu(t),L?zg(L.si(),t):-1)),t.G){case 0:return i=new wY,i;case 1:return n=new kN,n;case 2:return r=new v1,r;case 4:return o=new Gz,o;case 5:return a=new VPe,a;case 6:return d=new hPe,d;case 7:return b=new W5,b;case 10:return k=new B8,k;case 11:return T=new vY,T;case 12:return A=new DGe,A;case 13:return R=new xY,R;case 14:return F=new A0e,F;case 17:return G=new Ad,G;case 18:return v=new _b,v;case 19:return Y=new z8,Y;default:throw K(new Ht(yoe+t.zb+Aw))}},f.qi=function(t,n){switch(t.fk()){case 20:return n==null?null:new V1e(n);case 21:return n==null?null:new T0(n);case 23:case 22:return n==null?null:mFt(n);case 26:case 24:return n==null?null:SD(Qu(n,-128,127)<<24>>24);case 25:return wWt(n);case 27:return eHt(n);case 28:return tHt(n);case 29:return kQt(n);case 32:case 31:return n==null?null:jv(n);case 38:case 37:return n==null?null:new w1e(n);case 40:case 39:return n==null?null:ze(Qu(n,cs,pi));case 41:return null;case 42:return n==null,null;case 44:case 43:return n==null?null:yv(hQ(n));case 49:case 48:return n==null?null:Aj(Qu(n,gU,32767)<<16>>16);case 50:return n;default:throw K(new Ht(AS+t.ve()+Aw))}},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},eGe),f.gb=!1,f.hb=!1;var CCe,mxt=!1;M(Vt,"EcorePackageImpl",552),E(1211,1,{843:1},f6),f.Ik=function(){return Pze(),wxt},M(Vt,"EcorePackageImpl/1",1211),E(1220,1,ai,h6),f.dk=function(t){return he(t,159)},f.ek=function(t){return Ce(gI,It,159,t,0,1)},M(Vt,"EcorePackageImpl/10",1220),E(1221,1,ai,F5),f.dk=function(t){return he(t,199)},f.ek=function(t){return Ce(Wae,It,199,t,0,1)},M(Vt,"EcorePackageImpl/11",1221),E(1222,1,ai,AB),f.dk=function(t){return he(t,57)},f.ek=function(t){return Ce(mp,It,57,t,0,1)},M(Vt,"EcorePackageImpl/12",1222),E(1223,1,ai,NB),f.dk=function(t){return he(t,408)},f.ek=function(t){return Ce(nf,bke,62,t,0,1)},M(Vt,"EcorePackageImpl/13",1223),E(1224,1,ai,d6),f.dk=function(t){return he(t,244)},f.ek=function(t){return Ce(uh,It,244,t,0,1)},M(Vt,"EcorePackageImpl/14",1224),E(1225,1,ai,_B),f.dk=function(t){return he(t,507)},f.ek=function(t){return Ce(Jw,It,2095,t,0,1)},M(Vt,"EcorePackageImpl/15",1225),E(1226,1,ai,F8),f.dk=function(t){return he(t,104)},f.ek=function(t){return Ce(yx,u3,20,t,0,1)},M(Vt,"EcorePackageImpl/16",1226),E(1227,1,ai,DB),f.dk=function(t){return he(t,182)},f.ek=function(t){return Ce(jl,u3,182,t,0,1)},M(Vt,"EcorePackageImpl/17",1227),E(1228,1,ai,xK),f.dk=function(t){return he(t,473)},f.ek=function(t){return Ce(vx,It,473,t,0,1)},M(Vt,"EcorePackageImpl/18",1228),E(1229,1,ai,yK),f.dk=function(t){return he(t,553)},f.ek=function(t){return Ce(ec,$at,553,t,0,1)},M(Vt,"EcorePackageImpl/19",1229),E(1212,1,ai,cc),f.dk=function(t){return he(t,336)},f.ek=function(t){return Ce(xx,u3,38,t,0,1)},M(Vt,"EcorePackageImpl/2",1212),E(1230,1,ai,nl),f.dk=function(t){return he(t,251)},f.ek=function(t){return Ce(Ks,tft,88,t,0,1)},M(Vt,"EcorePackageImpl/20",1230),E(1231,1,ai,ro),f.dk=function(t){return he(t,449)},f.ek=function(t){return Ce(fl,It,842,t,0,1)},M(Vt,"EcorePackageImpl/21",1231),E(1232,1,ai,bo),f.dk=function(t){return G2(t)},f.ek=function(t){return Ce(cr,Ge,476,t,8,1)},M(Vt,"EcorePackageImpl/22",1232),E(1233,1,ai,Cc),f.dk=function(t){return he(t,198)},f.ek=function(t){return Ce(Bl,Ge,198,t,0,2)},M(Vt,"EcorePackageImpl/23",1233),E(1234,1,ai,m1),f.dk=function(t){return he(t,224)},f.ek=function(t){return Ce(Sk,Ge,224,t,0,1)},M(Vt,"EcorePackageImpl/24",1234),E(1235,1,ai,N2),f.dk=function(t){return he(t,183)},f.ek=function(t){return Ce(UC,Ge,183,t,0,1)},M(Vt,"EcorePackageImpl/25",1235),E(1236,1,ai,q5),f.dk=function(t){return he(t,208)},f.ek=function(t){return Ce(jU,Ge,208,t,0,1)},M(Vt,"EcorePackageImpl/26",1236),E(1237,1,ai,TN),f.dk=function(t){return!1},f.ek=function(t){return Ce(QCe,It,2191,t,0,1)},M(Vt,"EcorePackageImpl/27",1237),E(1238,1,ai,Cb),f.dk=function(t){return Q2(t)},f.ek=function(t){return Ce(Sr,Ge,347,t,7,1)},M(Vt,"EcorePackageImpl/28",1238),E(1239,1,ai,pu),f.dk=function(t){return he(t,61)},f.ek=function(t){return Ce(oCe,Iv,61,t,0,1)},M(Vt,"EcorePackageImpl/29",1239),E(1213,1,ai,_2),f.dk=function(t){return he(t,508)},f.ek=function(t){return Ce(oi,{3:1,4:1,5:1,2012:1},594,t,0,1)},M(Vt,"EcorePackageImpl/3",1213),E(1240,1,ai,ly),f.dk=function(t){return he(t,575)},f.ek=function(t){return Ce(uCe,It,2018,t,0,1)},M(Vt,"EcorePackageImpl/30",1240),E(1241,1,ai,CN),f.dk=function(t){return he(t,164)},f.ek=function(t){return Ce(_Ce,Iv,164,t,0,1)},M(Vt,"EcorePackageImpl/31",1241),E(1242,1,ai,b1),f.dk=function(t){return he(t,76)},f.ek=function(t){return Ce(RW,aft,76,t,0,1)},M(Vt,"EcorePackageImpl/32",1242),E(1243,1,ai,H5),f.dk=function(t){return he(t,165)},f.ek=function(t){return Ce($S,Ge,165,t,0,1)},M(Vt,"EcorePackageImpl/33",1243),E(1244,1,ai,g6),f.dk=function(t){return he(t,15)},f.ek=function(t){return Ce(Pr,Ge,15,t,0,1)},M(Vt,"EcorePackageImpl/34",1244),E(1245,1,ai,_d),f.dk=function(t){return he(t,299)},f.ek=function(t){return Ce(Ake,It,299,t,0,1)},M(Vt,"EcorePackageImpl/35",1245),E(1246,1,ai,EN),f.dk=function(t){return he(t,192)},f.ek=function(t){return Ce(_w,Ge,192,t,0,1)},M(Vt,"EcorePackageImpl/36",1246),E(1247,1,ai,q8),f.dk=function(t){return he(t,93)},f.ek=function(t){return Ce(Nke,It,93,t,0,1)},M(Vt,"EcorePackageImpl/37",1247),E(1248,1,ai,LB),f.dk=function(t){return he(t,595)},f.ek=function(t){return Ce(ECe,It,595,t,0,1)},M(Vt,"EcorePackageImpl/38",1248),E(1249,1,ai,H8),f.dk=function(t){return!1},f.ek=function(t){return Ce(UCe,It,2192,t,0,1)},M(Vt,"EcorePackageImpl/39",1249),E(1214,1,ai,G8),f.dk=function(t){return he(t,89)},f.ek=function(t){return Ce(tf,It,29,t,0,1)},M(Vt,"EcorePackageImpl/4",1214),E(1250,1,ai,D2),f.dk=function(t){return he(t,193)},f.ek=function(t){return Ce(Dw,Ge,193,t,0,1)},M(Vt,"EcorePackageImpl/40",1250),E(1251,1,ai,Ra),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Vt,"EcorePackageImpl/41",1251),E(1252,1,ai,L2),f.dk=function(t){return he(t,592)},f.ek=function(t){return Ce(lCe,It,592,t,0,1)},M(Vt,"EcorePackageImpl/42",1252),E(1253,1,ai,G5),f.dk=function(t){return!1},f.ek=function(t){return Ce(JCe,Ge,2193,t,0,1)},M(Vt,"EcorePackageImpl/43",1253),E(1254,1,ai,Eb),f.dk=function(t){return he(t,45)},f.ek=function(t){return Ce(Dm,pQ,45,t,0,1)},M(Vt,"EcorePackageImpl/44",1254),E(1215,1,ai,MN),f.dk=function(t){return he(t,146)},f.ek=function(t){return Ce(ah,It,146,t,0,1)},M(Vt,"EcorePackageImpl/5",1215),E(1216,1,ai,AN),f.dk=function(t){return he(t,160)},f.ek=function(t){return Ce(efe,It,160,t,0,1)},M(Vt,"EcorePackageImpl/6",1216),E(1217,1,ai,PB),f.dk=function(t){return he(t,462)},f.ek=function(t){return Ce(IW,It,682,t,0,1)},M(Vt,"EcorePackageImpl/7",1217),E(1218,1,ai,p6),f.dk=function(t){return he(t,575)},f.ek=function(t){return Ce(eg,It,691,t,0,1)},M(Vt,"EcorePackageImpl/8",1218),E(1219,1,ai,NN),f.dk=function(t){return he(t,472)},f.ek=function(t){return Ce(sM,It,472,t,0,1)},M(Vt,"EcorePackageImpl/9",1219),E(1030,2059,Rat,xIe),f.Ki=function(t,n){VBt(this,c(n,420))},f.Oi=function(t,n){Ftt(this,t,c(n,420))},M(Vt,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1030),E(1031,152,nP,HHe),f.hj=function(){return this.a.a},M(Vt,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1031),E(1058,1057,{},YBe),M("org.eclipse.emf.ecore.plugin","EcorePlugin",1058);var ECe=er(fft,"Resource");E(793,1502,hft),f.Fl=function(t){},f.Gl=function(t){},f.Cl=function(){return!this.a&&(this.a=new hY(this)),this.a},f.Dl=function(t){var n,i,r,o,a;if(r=t.length,r>0)if(tn(0,t.length),t.charCodeAt(0)==47){for(a=new Wc(4),o=1,n=1;n<r;++n)tn(n,t.length),t.charCodeAt(n)==47&&(Ue(a,o==n?"":(as(o,n,t.length),t.substr(o,n-o))),o=n+1);return Ue(a,(tn(o,t.length+1),t.substr(o))),WHt(this,a)}else tn(r-1,t.length),t.charCodeAt(r-1)==63&&(i=Y0e(t,ml(63),r-2),i>0&&(t=(as(0,i,t.length),t.substr(0,i))));return uJt(this,t)},f.El=function(){return this.c},f.Ib=function(){var t;return Up(this.Pm)+"@"+(t=zi(this)>>>0,t.toString(16))+" uri='"+this.d+"'"},f.b=!1,M($oe,"ResourceImpl",793),E(1503,793,hft,lPe),M($oe,"BinaryResourceImpl",1503),E(1171,704,_oe),f._i=function(t){return he(t,57)?N_t(this,c(t,57)):he(t,595)?new ln(c(t,595).Cl()):Se(t)===Se(this.f)?c(t,18).Jc():(J6(),xI.a)},f.Ob=function(){return oxe(this)},f.a=!1,M(Wi,"EcoreUtil/ContentTreeIterator",1171),E(1504,1171,_oe,wHe),f._i=function(t){return Se(t)===Se(this.f)?c(t,16).Jc():new jUe(c(t,57))},M($oe,"ResourceImpl/5",1504),E(654,2071,eft,hY),f.Gc=function(t){return this.i<=4?qj(this,t):he(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):pte(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 Ce(mp,It,57,t,0,1)},f.Wi=function(){return!1},M($oe,"ResourceImpl/ContentsEList",654),E(962,2041,cS,uPe),f.dd=function(t){return this.a.Ii(t)},f.gc=function(){return this.a.gc()},M(Wi,"AbstractSequentialInternalEList/1",962);var MCe,ACe,ms,NCe;E(632,1,{},Cqe);var $W,BW;M(Wi,"BasicExtendedMetaData",632),E(1162,1,{},wBe),f.Hl=function(){return null},f.Il=function(){return this.a==-2&&x(this,pQt(this.d,this.b)),this.a},f.Jl=function(){return null},f.Kl=function(){return Mt(),Mt(),Is},f.ve=function(){return this.c==LS&&S(this,iZe(this.d,this.b)),this.c},f.Ll=function(){return 0},f.a=-2,f.c=LS,M(Wi,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1162),E(1163,1,{},XQe),f.Hl=function(){return this.a==(aj(),$W)&&H(this,iKt(this.f,this.b)),this.a},f.Il=function(){return 0},f.Jl=function(){return this.c==(aj(),$W)&&D(this,rKt(this.f,this.b)),this.c},f.Kl=function(){return!this.d&&De(this,FYt(this.f,this.b)),this.d},f.ve=function(){return this.e==LS&&qt(this,iZe(this.f,this.b)),this.e},f.Ll=function(){return this.g==-2&&On(this,PGt(this.f,this.b)),this.g},f.e=LS,f.g=-2,M(Wi,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1163),E(1161,1,{},xBe),f.b=!1,f.c=!1,M(Wi,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1161),E(1164,1,{},KQe),f.c=-2,f.e=LS,f.f=LS,M(Wi,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1164),E(588,630,To,hq),f.Jj=function(){return this.c},f.ml=function(){return!1},f.Ui=function(t,n){return n},f.c=0,M(Wi,"EDataTypeEList",588);var _Ce=er(Wi,"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){jVt(this,t,c(n,76))},f.Ec=function(t){return FWt(this,c(t,76))},f.Fi=function(t){DNt(this,c(t,76))},f.Lj=function(t,n){return XCt(this,c(t,76),n)},f.Mj=function(t,n){return epe(this,c(t,76),n)},f.Ri=function(t,n){return WKt(this,t,n)},f.Ui=function(t,n){return $en(this,t,c(n,76))},f.fd=function(t,n){return uXt(this,t,c(n,76))},f.Sj=function(t,n){return KCt(this,c(t,76),n)},f.Tj=function(t,n){return UFe(this,c(t,76),n)},f.Uj=function(t,n,i){return SGt(this,c(t,76),c(n,76),i)},f.Xi=function(t,n){return lie(this,t,c(n,76))},f.Ml=function(t,n){return eye(this,t,n)},f.ad=function(t,n){var i,r,o,a,d,b,v,k,T;for(k=new tw(n.gc()),o=n.Jc();o.Ob();)if(r=c(o.Pb(),76),a=r.Jk(),z1(this.e,a))(!a.Qi()||!nH(this,a,r.kd())&&!qj(k,r))&&Dn(k,r);else{for(T=ol(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(Hy(this,b,r),76),d=!1;break}d&&Dn(k,r)}return xwe(this,t,k)},f.Fc=function(t){var n,i,r,o,a,d,b,v,k;for(v=new tw(t.gc()),r=t.Jc();r.Ob();)if(i=c(r.Pb(),76),o=i.Jk(),z1(this.e,o))(!o.Qi()||!nH(this,o,i.kd())&&!qj(v,i))&&Dn(v,i);else{for(k=ol(this.e.Ah(),o),n=c(this.g,123),a=!0,d=0;d<this.i;++d)if(b=n[d],k.$l(b.Jk())){c(Hy(this,d,i),76),a=!1;break}a&&Dn(v,i)}return dr(this,v)},f.Di=function(t){return this.j=-1,Hie(this,this.i,t)},f.Nl=function(t,n,i){return Uxe(this,t,n,i)},f.Vk=function(t,n){return wL(this,t,n)},f.Ol=function(t,n,i){return yye(this,t,n,i)},f.Pl=function(){return this},f.Ql=function(t,n){return yL(this,t,n)},f.Rl=function(t){return c(ae(this,t),76).Jk()},f.Sl=function(t){return c(ae(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!VD(this,t)},f.$i=function(t){return Ce(pxt,aft,345,t,0,1)},f.nl=function(t){return zZ(this,t)},f.Wb=function(t){iD(this,t)},f.Vl=function(t,n){lQ(this,t,n)},f.Wl=function(t){return rXe(this,t)},f.Xl=function(t){qZe(this,t)},M(Wi,"BasicFeatureMap",77),E(1939,1,Ud),f.Nb=function(t){ps(this,t)},f.Rb=function(t){if(this.g==-1)throw K(new El);Eq(this);try{$it(this.e,this.b,this.a,t),this.d=this.e.j,yG(this)}catch(n){throw n=kr(n),he(n,99)?K(new fa):K(n)}},f.Ob=function(){return sne(this)},f.Sb=function(){return IKe(this)},f.Pb=function(){return yG(this)},f.Tb=function(){return this.a},f.Ub=function(){var t;if(IKe(this))return Eq(this),this.g=--this.a,this.sl()&&(t=Y7(this.e,this.b,this.c,this.a,this.j),this.j=t),this.i=0,this.j;throw K(new Eo)},f.Vb=function(){return this.a-1},f.Qb=function(){if(this.g==-1)throw K(new El);Eq(this);try{Ttt(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),he(t,99)?K(new fa):K(t)}},f.sl=function(){return!1},f.Wb=function(t){if(this.g==-1)throw K(new El);Eq(this);try{hst(this.e,this.b,this.g,t),this.d=this.e.j}catch(n){throw n=kr(n),he(n,99)?K(new fa):K(n)}},f.a=0,f.c=0,f.d=0,f.f=!1,f.g=0,f.i=0,M(Wi,"FeatureMapUtil/BasicFeatureEIterator",1939),E(417,1939,Ud,yj),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(Wi,"BasicFeatureMap/FeatureEIterator",417),E(673,417,Ud,OZ),f.sl=function(){return!0},M(Wi,"BasicFeatureMap/ResolvingFeatureEIterator",673),E(960,485,uU,fze),f.nj=function(){return this},M(Wi,"EContentsEList/1",960),E(961,485,uU,LBe),f.sl=function(){return!1},M(Wi,"EContentsEList/2",961),E(959,289,aU,hze),f.ul=function(t){},f.Ob=function(){return!1},f.Sb=function(){return!1},M(Wi,"EContentsEList/FeatureIteratorImpl/1",959),E(832,588,To,c0e),f.Li=function(){this.a=!0},f.Oj=function(){return this.a},f.Ek=function(){var t;Mn(this),bu(this.e)?(t=this.a,this.a=!1,yi(this.e,new wf(this.e,2,this.c,t,!1))):this.a=!1},f.a=!1,M(Wi,"EDataTypeEList/Unsettable",832),E(1937,588,To,xze),f.Qi=function(){return!0},M(Wi,"EDataTypeUniqueEList",1937),E(1938,832,To,wze),f.Qi=function(){return!0},M(Wi,"EDataTypeUniqueEList/Unsettable",1938),E(147,82,To,Ml),f.ll=function(){return!0},f.Ui=function(t,n){return uk(this,t,c(n,57))},M(Wi,"EObjectContainmentEList/Resolving",147),E(1165,547,To,bze),f.ll=function(){return!0},f.Ui=function(t,n){return uk(this,t,c(n,57))},M(Wi,"EObjectContainmentEList/Unsettable/Resolving",1165),E(760,14,To,J0e),f.Li=function(){this.a=!0},f.Oj=function(){return this.a},f.Ek=function(){var t;Mn(this),bu(this.e)?(t=this.a,this.a=!1,yi(this.e,new wf(this.e,2,this.c,t,!1))):this.a=!1},f.a=!1,M(Wi,"EObjectContainmentWithInverseEList/Unsettable",760),E(1199,760,To,DFe),f.ll=function(){return!0},f.Ui=function(t,n){return uk(this,t,c(n,57))},M(Wi,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1199),E(752,494,To,o0e),f.Li=function(){this.a=!0},f.Oj=function(){return this.a},f.Ek=function(){var t;Mn(this),bu(this.e)?(t=this.a,this.a=!1,yi(this.e,new wf(this.e,2,this.c,t,!1))):this.a=!1},f.a=!1,M(Wi,"EObjectEList/Unsettable",752),E(340,494,To,Cy),f.ll=function(){return!0},f.Ui=function(t,n){return uk(this,t,c(n,57))},M(Wi,"EObjectResolvingEList",340),E(1842,752,To,vze),f.ll=function(){return!0},f.Ui=function(t,n){return uk(this,t,c(n,57))},M(Wi,"EObjectResolvingEList/Unsettable",1842),E(1505,1,{},w1);var bxt;M(Wi,"EObjectValidator",1505),E(551,494,To,Nq),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(Wi,"EObjectWithInverseEList",551),E(1202,551,To,LFe),f.jl=function(){return!0},M(Wi,"EObjectWithInverseEList/ManyInverse",1202),E(633,551,To,QZ),f.Li=function(){this.a=!0},f.Oj=function(){return this.a},f.Ek=function(){var t;Mn(this),bu(this.e)?(t=this.a,this.a=!1,yi(this.e,new wf(this.e,2,this.c,t,!1))):this.a=!1},f.a=!1,M(Wi,"EObjectWithInverseEList/Unsettable",633),E(1201,633,To,PFe),f.jl=function(){return!0},M(Wi,"EObjectWithInverseEList/Unsettable/ManyInverse",1201),E(761,551,To,W0e),f.ll=function(){return!0},f.Ui=function(t,n){return uk(this,t,c(n,57))},M(Wi,"EObjectWithInverseResolvingEList",761),E(31,761,To,Et),f.jl=function(){return!0},M(Wi,"EObjectWithInverseResolvingEList/ManyInverse",31),E(762,633,To,V0e),f.ll=function(){return!0},f.Ui=function(t,n){return uk(this,t,c(n,57))},M(Wi,"EObjectWithInverseResolvingEList/Unsettable",762),E(1200,762,To,IFe),f.jl=function(){return!0},M(Wi,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1200),E(1166,630,To),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&F1)!=0},f.$k=function(){return(this.b&32)!=0},f.ml=function(){return(this.b&Ua)!=0},f.dk=function(t){return this.d?_Ue(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;Mn(this),(this.b&2)!=0&&(bu(this.e)?(t=(this.b&1)!=0,this.b&=-2,N6(this,new wf(this.e,2,Yi(this.e.Ah(),this.Jk()),t,!1))):this.b&=-2)},f.Wi=function(){return(this.b&1536)==0},f.b=0,M(Wi,"EcoreEList/Generic",1166),E(1167,1166,To,_Ge),f.Jk=function(){return this.a},M(Wi,"EcoreEList/Dynamic",1167),E(759,67,bd,d1e),f.$i=function(t){return AD(this.a.a,t)},M(Wi,"EcoreEMap/1",759),E(758,82,To,Hpe),f.Ki=function(t,n){OG(this.b,c(n,138))},f.Mi=function(t,n){$Xe(this.b)},f.Ni=function(t,n,i){var r;++(r=this.b,c(n,138),r).e},f.Oi=function(t,n){mne(this.b,c(n,138))},f.Pi=function(t,n,i){mne(this.b,c(i,138)),Se(i)===Se(n)&&c(i,138).zi(n7t(c(n,138).jd())),OG(this.b,c(n,138))},M(Wi,"EcoreEMap/DelegateEObjectContainmentEList",758),E(1197,145,mke,WVe),M(Wi,"EcoreEMap/Unsettable",1197),E(1198,758,To,RFe),f.Li=function(){this.a=!0},f.Oj=function(){return this.a},f.Ek=function(){var t;Mn(this),bu(this.e)?(t=this.a,this.a=!1,yi(this.e,new wf(this.e,2,this.c,t,!1))):this.a=!1},f.a=!1,M(Wi,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1198),E(1170,226,t3,$He),f.a=!1,f.b=!1,M(Wi,"EcoreUtil/Copier",1170),E(754,1,ns,jUe),f.Nb=function(t){ps(this,t)},f.Ob=function(){return RYe(this)},f.Pb=function(){var t;return RYe(this),t=this.b,this.b=null,t},f.Qb=function(){this.a.Qb()},M(Wi,"EcoreUtil/ProperContentIterator",754),E(1506,1505,{},eT);var wxt;M(Wi,"EcoreValidator",1506);var vxt;er(Wi,"FeatureMapUtil/Validator"),E(1270,1,{2020:1},IB),f.$l=function(t){return!0},M(Wi,"FeatureMapUtil/1",1270),E(767,1,{2020:1},Dye),f.$l=function(t){var n;return this.c==t?!0:(n=nt(Jt(this.a,t)),n==null?uKt(this,t)?(xJe(this.a,t,(zt(),RS)),!0):(xJe(this.a,t,(zt(),ep)),!1):n==(zt(),RS))},f.e=!1;var rfe;M(Wi,"FeatureMapUtil/BasicValidator",767),E(768,44,t3,i0e),M(Wi,"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},R_),f._c=function(t,n){$it(this.c,this.b,t,n)},f.Ec=function(t){return eye(this.c,this.b,t)},f.ad=function(t,n){return AZt(this.c,this.b,t,n)},f.Fc=function(t){return UT(this,t)},f.Ei=function(t,n){iRt(this.c,this.b,t,n)},f.Uk=function(t,n){return Uxe(this.c,this.b,t,n)},f.Yi=function(t){return cQ(this.c,this.b,t,!1)},f.Gi=function(){return WBe(this.c,this.b)},f.Hi=function(){return BTt(this.c,this.b)},f.Ii=function(t){return uIt(this.c,this.b,t)},f.Vk=function(t,n){return vFe(this,t,n)},f.$b=function(){l4(this)},f.Gc=function(t){return nH(this.c,this.b,t)},f.Hc=function(t){return c$t(this.c,this.b,t)},f.Xb=function(t){return cQ(this.c,this.b,t,!0)},f.Dk=function(t){return this},f.bd=function(t){return vPt(this.c,this.b,t)},f.dc=function(){return zF(this)},f.Oj=function(){return!VD(this.c,this.b)},f.Jc=function(){return HIt(this.c,this.b)},f.cd=function(){return GIt(this.c,this.b)},f.dd=function(t){return fzt(this.c,this.b,t)},f.Ri=function(t,n){return nst(this.c,this.b,t,n)},f.Si=function(t,n){fIt(this.c,this.b,t,n)},f.ed=function(t){return Ttt(this.c,this.b,t)},f.Kc=function(t){return DKt(this.c,this.b,t)},f.fd=function(t,n){return hst(this.c,this.b,t,n)},f.Wb=function(t){qG(this.c,this.b),UT(this,c(t,16))},f.gc=function(){return hzt(this.c,this.b)},f.Nc=function(){return wLt(this.c,this.b)},f.Oc=function(t){return xPt(this.c,this.b,t)},f.Ib=function(){var t,n;for(n=new kg,n.a+="[",t=WBe(this.c,this.b);sne(t);)Zs(n,WT(yG(t))),sne(t)&&(n.a+=Yc);return n.a+="]",n.a},f.Ek=function(){qG(this.c,this.b)},M(Wi,"FeatureMapUtil/FeatureEList",499),E(641,40,nP,ste),f.fj=function(t){return P7(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(),Se(a)===Se(this.c)&&P7(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(),Se(a)===Se(this.c)&&P7(this,null)==t.fj(null))return this.d=5,n=new tw(2),Dn(n,this.g),Dn(n,t.gj()),this.g=n,!0;break}}break}case 5:{switch(o=t.ej(),o){case 3:{if(a=t.hj(),Se(a)===Se(this.c)&&P7(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(),Se(a)===Se(this.c)&&P7(this,null)==t.fj(null))return this.d=1,this.g=t.gj(),!0;break}case 4:{if(a=t.hj(),Se(a)===Se(this.c)&&P7(this,null)==t.fj(null))return this.d=6,b=new tw(2),Dn(b,this.n),Dn(b,t.ij()),this.n=b,d=ee(Z(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(),Se(a)===Se(this.c)&&P7(this,null)==t.fj(null))return i=c(this.n,18),i.Ec(t.ij()),d=c(this.g,54),r=Ce(Hn,li,30,d.length+1,15,1),yc(d,0,r,0,d.length),r[d.length]=t.jj(),this.g=r,!0;break}}break}}return!1},M(Wi,"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},mq),f.Ml=function(t,n){return eye(this.c,t,n)},f.Nl=function(t,n,i){return Uxe(this.c,t,n,i)},f.Ol=function(t,n,i){return yye(this.c,t,n,i)},f.Pl=function(){return this},f.Ql=function(t,n){return yL(this.c,t,n)},f.Rl=function(t){return c(cQ(this.c,this.b,t,!1),76).Jk()},f.Sl=function(t){return c(cQ(this.c,this.b,t,!1),76).kd()},f.Tl=function(){return this.a},f.Ul=function(t){return!VD(this.c,t)},f.Vl=function(t,n){lQ(this.c,t,n)},f.Wl=function(t){return rXe(this.c,t)},f.Xl=function(t){qZe(this.c,t)},M(Wi,"FeatureMapUtil/FeatureFeatureMap",560),E(1269,1,Roe,vBe),f.Dk=function(t){return cQ(this.b,this.a,-1,t)},f.Oj=function(){return!VD(this.b,this.a)},f.Wb=function(t){lQ(this.b,this.a,t)},f.Ek=function(){qG(this.b,this.a)},M(Wi,"FeatureMapUtil/FeatureValue",1269);var eO,sfe,ofe,tO,xxt,kI=er(wU,"AnyType");E(677,63,q1,EY),M(wU,"InvalidDatatypeValueException",677);var zW=er(wU,gft),OI=er(wU,pft),DCe=er(wU,mft),yxt,oc,LCe,Vm,kxt,Oxt,jxt,Sxt,Txt,Cxt,Ext,Mxt,Axt,Nxt,_xt,F3,Dxt,q3,aM,Lxt,Xw,jI,SI,Pxt,fM,hM;E(836,505,{110:1,95:1,94:1,57:1,52:1,101:1,849:1},E1e),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(_c(this.c,(Ai(),Vm)),164)):(!this.c&&(this.c=new gr(this,0)),c(c(_c(this.c,(Ai(),Vm)),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()),Lt((this.j&2)==0?this.fi():(!this.k&&(this.k=new aa),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)),wL(this.c,t,i);case 1:return(!this.c&&(this.c=new gr(this,0)),c(c(_c(this.c,(Ai(),Vm)),164),72)).Vk(t,i);case 2:return!this.b&&(this.b=new gr(this,2)),wL(this.b,t,i)}return r=c(Lt((this.j&2)==0?this.fi():(!this.k&&(this.k=new aa),this.k).Lk(),n),69),r.uk().yk(this,Mbe(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(_c(this.c,(Ai(),Vm)),164)).dc();case 2:return!!this.b&&this.b.i!=0}return pa(this,t-bn(this.fi()),Lt((this.j&2)==0?this.fi():(!this.k&&(this.k=new aa),this.k).Lk(),t))},f.$h=function(t,n){switch(t){case 0:!this.c&&(this.c=new gr(this,0)),iD(this.c,n);return;case 1:(!this.c&&(this.c=new gr(this,0)),c(c(_c(this.c,(Ai(),Vm)),164),222)).Wb(n);return;case 2:!this.b&&(this.b=new gr(this,2)),iD(this.b,n);return}Oa(this,t-bn(this.fi()),Lt((this.j&2)==0?this.fi():(!this.k&&(this.k=new aa),this.k).Lk(),t),n)},f.fi=function(){return Ai(),LCe},f.hi=function(t){switch(t){case 0:!this.c&&(this.c=new gr(this,0)),Mn(this.c);return;case 1:(!this.c&&(this.c=new gr(this,0)),c(_c(this.c,(Ai(),Vm)),164)).$b();return;case 2:!this.b&&(this.b=new gr(this,2)),Mn(this.b);return}ka(this,t-bn(this.fi()),Lt((this.j&2)==0?this.fi():(!this.k&&(this.k=new aa),this.k).Lk(),t))},f.Ib=function(){var t;return(this.j&4)!=0?jf(this):(t=new za(jf(this)),t.a+=" (mixed: ",qT(t,this.c),t.a+=", anyAttribute: ",qT(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},qB),f.Ih=function(t,n,i){switch(t){case 0:return this.a;case 1:return this.b}return ba(this,t-bn((Ai(),F3)),Lt((this.j&2)==0?F3:(!this.k&&(this.k=new aa),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 pa(this,t-bn((Ai(),F3)),Lt((this.j&2)==0?F3:(!this.k&&(this.k=new aa),this.k).Lk(),t))},f.$h=function(t,n){switch(t){case 0:Zi(this,qn(n));return;case 1:il(this,qn(n));return}Oa(this,t-bn((Ai(),F3)),Lt((this.j&2)==0?F3:(!this.k&&(this.k=new aa),this.k).Lk(),t),n)},f.fi=function(){return Ai(),F3},f.hi=function(t){switch(t){case 0:this.a=null;return;case 1:this.b=null;return}ka(this,t-bn((Ai(),F3)),Lt((this.j&2)==0?F3:(!this.k&&(this.k=new aa),this.k).Lk(),t))},f.Ib=function(){var t;return(this.j&4)!=0?jf(this):(t=new za(jf(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},KPe),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(_c(this.c,(Ai(),Vm)),164)):(!this.c&&(this.c=new gr(this,0)),c(c(_c(this.c,(Ai(),Vm)),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(yL(this.c,(Ai(),aM),!0));case 4:return K0e(this.a,(!this.c&&(this.c=new gr(this,0)),qn(yL(this.c,(Ai(),aM),!0))));case 5:return this.a}return ba(this,t-bn((Ai(),q3)),Lt((this.j&2)==0?q3:(!this.k&&(this.k=new aa),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(_c(this.c,(Ai(),Vm)),164)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new gr(this,0)),qn(yL(this.c,(Ai(),aM),!0))!=null;case 4:return K0e(this.a,(!this.c&&(this.c=new gr(this,0)),qn(yL(this.c,(Ai(),aM),!0))))!=null;case 5:return!!this.a}return pa(this,t-bn((Ai(),q3)),Lt((this.j&2)==0?q3:(!this.k&&(this.k=new aa),this.k).Lk(),t))},f.$h=function(t,n){switch(t){case 0:!this.c&&(this.c=new gr(this,0)),iD(this.c,n);return;case 1:(!this.c&&(this.c=new gr(this,0)),c(c(_c(this.c,(Ai(),Vm)),164),222)).Wb(n);return;case 2:!this.b&&(this.b=new gr(this,2)),iD(this.b,n);return;case 3:Rme(this,qn(n));return;case 4:Rme(this,X0e(this.a,n));return;case 5:qr(this,c(n,160));return}Oa(this,t-bn((Ai(),q3)),Lt((this.j&2)==0?q3:(!this.k&&(this.k=new aa),this.k).Lk(),t),n)},f.fi=function(){return Ai(),q3},f.hi=function(t){switch(t){case 0:!this.c&&(this.c=new gr(this,0)),Mn(this.c);return;case 1:(!this.c&&(this.c=new gr(this,0)),c(_c(this.c,(Ai(),Vm)),164)).$b();return;case 2:!this.b&&(this.b=new gr(this,2)),Mn(this.b);return;case 3:!this.c&&(this.c=new gr(this,0)),lQ(this.c,(Ai(),aM),null);return;case 4:Rme(this,X0e(this.a,null));return;case 5:this.a=null;return}ka(this,t-bn((Ai(),q3)),Lt((this.j&2)==0?q3:(!this.k&&(this.k=new aa),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},YPe),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 _l((At(),$s),ec,this,1)),this.b):(!this.b&&(this.b=new _l((At(),$s),ec,this,1)),bD(this.b));case 2:return i?(!this.c&&(this.c=new _l((At(),$s),ec,this,2)),this.c):(!this.c&&(this.c=new _l((At(),$s),ec,this,2)),bD(this.c));case 3:return!this.a&&(this.a=new gr(this,0)),_c(this.a,(Ai(),jI));case 4:return!this.a&&(this.a=new gr(this,0)),_c(this.a,(Ai(),SI));case 5:return!this.a&&(this.a=new gr(this,0)),_c(this.a,(Ai(),fM));case 6:return!this.a&&(this.a=new gr(this,0)),_c(this.a,(Ai(),hM))}return ba(this,t-bn((Ai(),Xw)),Lt((this.j&2)==0?Xw:(!this.k&&(this.k=new aa),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)),wL(this.a,t,i);case 1:return!this.b&&(this.b=new _l((At(),$s),ec,this,1)),sq(this.b,t,i);case 2:return!this.c&&(this.c=new _l((At(),$s),ec,this,2)),sq(this.c,t,i);case 5:return!this.a&&(this.a=new gr(this,0)),vFe(_c(this.a,(Ai(),fM)),t,i)}return r=c(Lt((this.j&2)==0?(Ai(),Xw):(!this.k&&(this.k=new aa),this.k).Lk(),n),69),r.uk().yk(this,Mbe(this),n-bn((Ai(),Xw)),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)),!zF(_c(this.a,(Ai(),jI)));case 4:return!this.a&&(this.a=new gr(this,0)),!zF(_c(this.a,(Ai(),SI)));case 5:return!this.a&&(this.a=new gr(this,0)),!zF(_c(this.a,(Ai(),fM)));case 6:return!this.a&&(this.a=new gr(this,0)),!zF(_c(this.a,(Ai(),hM)))}return pa(this,t-bn((Ai(),Xw)),Lt((this.j&2)==0?Xw:(!this.k&&(this.k=new aa),this.k).Lk(),t))},f.$h=function(t,n){switch(t){case 0:!this.a&&(this.a=new gr(this,0)),iD(this.a,n);return;case 1:!this.b&&(this.b=new _l((At(),$s),ec,this,1)),HH(this.b,n);return;case 2:!this.c&&(this.c=new _l((At(),$s),ec,this,2)),HH(this.c,n);return;case 3:!this.a&&(this.a=new gr(this,0)),l4(_c(this.a,(Ai(),jI))),!this.a&&(this.a=new gr(this,0)),UT(_c(this.a,jI),c(n,18));return;case 4:!this.a&&(this.a=new gr(this,0)),l4(_c(this.a,(Ai(),SI))),!this.a&&(this.a=new gr(this,0)),UT(_c(this.a,SI),c(n,18));return;case 5:!this.a&&(this.a=new gr(this,0)),l4(_c(this.a,(Ai(),fM))),!this.a&&(this.a=new gr(this,0)),UT(_c(this.a,fM),c(n,18));return;case 6:!this.a&&(this.a=new gr(this,0)),l4(_c(this.a,(Ai(),hM))),!this.a&&(this.a=new gr(this,0)),UT(_c(this.a,hM),c(n,18));return}Oa(this,t-bn((Ai(),Xw)),Lt((this.j&2)==0?Xw:(!this.k&&(this.k=new aa),this.k).Lk(),t),n)},f.fi=function(){return Ai(),Xw},f.hi=function(t){switch(t){case 0:!this.a&&(this.a=new gr(this,0)),Mn(this.a);return;case 1:!this.b&&(this.b=new _l((At(),$s),ec,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new _l((At(),$s),ec,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new gr(this,0)),l4(_c(this.a,(Ai(),jI)));return;case 4:!this.a&&(this.a=new gr(this,0)),l4(_c(this.a,(Ai(),SI)));return;case 5:!this.a&&(this.a=new gr(this,0)),l4(_c(this.a,(Ai(),fM)));return;case 6:!this.a&&(this.a=new gr(this,0)),l4(_c(this.a,(Ai(),hM)));return}ka(this,t-bn((Ai(),Xw)),Lt((this.j&2)==0?Xw:(!this.k&&(this.k=new aa),this.k).Lk(),t))},f.Ib=function(){var t;return(this.j&4)!=0?jf(this):(t=new za(jf(this)),t.a+=" (mixed: ",qT(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},Dd),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:So(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 dCt(c(n,198));case 12:case 47:case 49:case 11:return Zst(this,t,n);case 13:return n==null?null:IZt(c(n,249));case 15:case 14:return n==null?null:jNt(ge(be(n)));case 17:return Det((Ai(),n));case 18:return Det(n);case 21:case 20:return n==null?null:SNt(c(n,165).a);case 27:return gCt(c(n,198));case 30:return HZe((Ai(),c(n,16)));case 31:return HZe(c(n,16));case 40:return hCt((Ai(),n));case 42:return Let((Ai(),n));case 43:return Let(n);case 59:case 48:return fCt((Ai(),n));default:throw K(new Ht(AS+t.ve()+Aw))}},f.pi=function(t){var n,i,r,o,a;switch(t.G==-1&&(t.G=(i=Fu(t),i?zg(i.si(),t):-1)),t.G){case 0:return n=new E1e,n;case 1:return r=new qB,r;case 2:return o=new KPe,o;case 3:return a=new YPe,a;default:throw K(new Ht(yoe+t.zb+Aw))}},f.qi=function(t,n){var i,r,o,a,d,b,v,k,T,A,L,R,F,G,Y,oe;switch(t.fk()){case 5:case 52:case 4:return n;case 6:return QFt(n);case 8:case 7:return n==null?null:NGt(n);case 9:return n==null?null:SD(Qu((r=Ic(n,!0),r.length>0&&(tn(0,r.length),r.charCodeAt(0)==43)?(tn(1,r.length+1),r.substr(1)):r),-128,127)<<24>>24);case 10:return n==null?null:SD(Qu((o=Ic(n,!0),o.length>0&&(tn(0,o.length),o.charCodeAt(0)==43)?(tn(1,o.length+1),o.substr(1)):o),-128,127)<<24>>24);case 11:return qn(vw(this,(Ai(),jxt),n));case 12:return qn(vw(this,(Ai(),Sxt),n));case 13:return n==null?null:new V1e(Ic(n,!0));case 15:case 14:return GWt(n);case 16:return qn(vw(this,(Ai(),Txt),n));case 17:return QYe((Ai(),n));case 18:return QYe(n);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Ic(n,!0);case 21:case 20:return eVt(n);case 22:return qn(vw(this,(Ai(),Cxt),n));case 23:return qn(vw(this,(Ai(),Ext),n));case 24:return qn(vw(this,(Ai(),Mxt),n));case 25:return qn(vw(this,(Ai(),Axt),n));case 26:return qn(vw(this,(Ai(),Nxt),n));case 27:return PFt(n);case 30:return UYe((Ai(),n));case 31:return UYe(n);case 32:return n==null?null:ze(Qu((T=Ic(n,!0),T.length>0&&(tn(0,T.length),T.charCodeAt(0)==43)?(tn(1,T.length+1),T.substr(1)):T),cs,pi));case 33:return n==null?null:new T0((A=Ic(n,!0),A.length>0&&(tn(0,A.length),A.charCodeAt(0)==43)?(tn(1,A.length+1),A.substr(1)):A));case 34:return n==null?null:ze(Qu((L=Ic(n,!0),L.length>0&&(tn(0,L.length),L.charCodeAt(0)==43)?(tn(1,L.length+1),L.substr(1)):L),cs,pi));case 36:return n==null?null:yv(hQ((R=Ic(n,!0),R.length>0&&(tn(0,R.length),R.charCodeAt(0)==43)?(tn(1,R.length+1),R.substr(1)):R)));case 37:return n==null?null:yv(hQ((F=Ic(n,!0),F.length>0&&(tn(0,F.length),F.charCodeAt(0)==43)?(tn(1,F.length+1),F.substr(1)):F)));case 40:return _qt((Ai(),n));case 42:return JYe((Ai(),n));case 43:return JYe(n);case 44:return n==null?null:new T0((G=Ic(n,!0),G.length>0&&(tn(0,G.length),G.charCodeAt(0)==43)?(tn(1,G.length+1),G.substr(1)):G));case 45:return n==null?null:new T0((Y=Ic(n,!0),Y.length>0&&(tn(0,Y.length),Y.charCodeAt(0)==43)?(tn(1,Y.length+1),Y.substr(1)):Y));case 46:return Ic(n,!1);case 47:return qn(vw(this,(Ai(),_xt),n));case 59:case 48:return Nqt((Ai(),n));case 49:return qn(vw(this,(Ai(),Dxt),n));case 50:return n==null?null:Aj(Qu((oe=Ic(n,!0),oe.length>0&&(tn(0,oe.length),oe.charCodeAt(0)==43)?(tn(1,oe.length+1),oe.substr(1)):oe),gU,32767)<<16>>16);case 51:return n==null?null:Aj(Qu((a=Ic(n,!0),a.length>0&&(tn(0,a.length),a.charCodeAt(0)==43)?(tn(1,a.length+1),a.substr(1)):a),gU,32767)<<16>>16);case 53:return qn(vw(this,(Ai(),Lxt),n));case 55:return n==null?null:Aj(Qu((d=Ic(n,!0),d.length>0&&(tn(0,d.length),d.charCodeAt(0)==43)?(tn(1,d.length+1),d.substr(1)):d),gU,32767)<<16>>16);case 56:return n==null?null:Aj(Qu((b=Ic(n,!0),b.length>0&&(tn(0,b.length),b.charCodeAt(0)==43)?(tn(1,b.length+1),b.substr(1)):b),gU,32767)<<16>>16);case 57:return n==null?null:yv(hQ((v=Ic(n,!0),v.length>0&&(tn(0,v.length),v.charCodeAt(0)==43)?(tn(1,v.length+1),v.substr(1)):v)));case 58:return n==null?null:yv(hQ((k=Ic(n,!0),k.length>0&&(tn(0,k.length),k.charCodeAt(0)==43)?(tn(1,k.length+1),k.substr(1)):k)));case 60:return n==null?null:ze(Qu((i=Ic(n,!0),i.length>0&&(tn(0,i.length),i.charCodeAt(0)==43)?(tn(1,i.length+1),i.substr(1)):i),cs,pi));case 61:return n==null?null:ze(Qu(Ic(n,!0),cs,pi));default:throw K(new Ht(AS+t.ve()+Aw))}};var Ixt,PCe,Rxt,ICe;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},sGe),f.N=!1,f.O=!1;var $xt=!1;M(Lr,"XMLTypePackageImpl",589),E(1940,1,{843:1},RB),f.Ik=function(){return fye(),Jxt},M(Lr,"XMLTypePackageImpl/1",1940),E(1949,1,ai,$B),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/10",1949),E(1950,1,ai,kK),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/11",1950),E(1951,1,ai,P2),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/12",1951),E(1952,1,ai,Q8),f.dk=function(t){return Q2(t)},f.ek=function(t){return Ce(Sr,Ge,347,t,7,1)},M(Lr,"XMLTypePackageImpl/13",1952),E(1953,1,ai,_N),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/14",1953),E(1954,1,ai,Q5),f.dk=function(t){return he(t,16)},f.ek=function(t){return Ce(Vu,Iv,16,t,0,1)},M(Lr,"XMLTypePackageImpl/15",1954),E(1955,1,ai,BB),f.dk=function(t){return he(t,16)},f.ek=function(t){return Ce(Vu,Iv,16,t,0,1)},M(Lr,"XMLTypePackageImpl/16",1955),E(1956,1,ai,zB),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/17",1956),E(1957,1,ai,FB),f.dk=function(t){return he(t,165)},f.ek=function(t){return Ce($S,Ge,165,t,0,1)},M(Lr,"XMLTypePackageImpl/18",1957),E(1958,1,ai,U8),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/19",1958),E(1941,1,ai,DN),f.dk=function(t){return he(t,849)},f.ek=function(t){return Ce(kI,It,849,t,0,1)},M(Lr,"XMLTypePackageImpl/2",1941),E(1959,1,ai,OK),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/20",1959),E(1960,1,ai,jK),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/21",1960),E(1961,1,ai,SK),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/22",1961),E(1962,1,ai,HB),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/23",1962),E(1963,1,ai,GB),f.dk=function(t){return he(t,198)},f.ek=function(t){return Ce(Bl,Ge,198,t,0,2)},M(Lr,"XMLTypePackageImpl/24",1963),E(1964,1,ai,U5),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/25",1964),E(1965,1,ai,J8),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/26",1965),E(1966,1,ai,QB),f.dk=function(t){return he(t,16)},f.ek=function(t){return Ce(Vu,Iv,16,t,0,1)},M(Lr,"XMLTypePackageImpl/27",1966),E(1967,1,ai,UB),f.dk=function(t){return he(t,16)},f.ek=function(t){return Ce(Vu,Iv,16,t,0,1)},M(Lr,"XMLTypePackageImpl/28",1967),E(1968,1,ai,JB),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/29",1968),E(1942,1,ai,WB),f.dk=function(t){return he(t,678)},f.ek=function(t){return Ce(zW,It,2098,t,0,1)},M(Lr,"XMLTypePackageImpl/3",1942),E(1969,1,ai,VB),f.dk=function(t){return he(t,15)},f.ek=function(t){return Ce(Pr,Ge,15,t,0,1)},M(Lr,"XMLTypePackageImpl/30",1969),E(1970,1,ai,XB),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/31",1970),E(1971,1,ai,W8),f.dk=function(t){return he(t,192)},f.ek=function(t){return Ce(_w,Ge,192,t,0,1)},M(Lr,"XMLTypePackageImpl/32",1971),E(1972,1,ai,KB),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/33",1972),E(1973,1,ai,YB),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/34",1973),E(1974,1,ai,Ec),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/35",1974),E(1975,1,ai,LN),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/36",1975),E(1976,1,ai,TK),f.dk=function(t){return he(t,16)},f.ek=function(t){return Ce(Vu,Iv,16,t,0,1)},M(Lr,"XMLTypePackageImpl/37",1976),E(1977,1,ai,ZB),f.dk=function(t){return he(t,16)},f.ek=function(t){return Ce(Vu,Iv,16,t,0,1)},M(Lr,"XMLTypePackageImpl/38",1977),E(1978,1,ai,CK),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/39",1978),E(1943,1,ai,EK),f.dk=function(t){return he(t,679)},f.ek=function(t){return Ce(OI,It,2099,t,0,1)},M(Lr,"XMLTypePackageImpl/4",1943),E(1979,1,ai,MK),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/40",1979),E(1980,1,ai,V8),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/41",1980),E(1981,1,ai,J5),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/42",1981),E(1982,1,ai,PN),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/43",1982),E(1983,1,ai,X8),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/44",1983),E(1984,1,ai,IN),f.dk=function(t){return he(t,193)},f.ek=function(t){return Ce(Dw,Ge,193,t,0,1)},M(Lr,"XMLTypePackageImpl/45",1984),E(1985,1,ai,I2),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/46",1985),E(1986,1,ai,Fp),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/47",1986),E(1987,1,ai,m6),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/48",1987),E(1988,1,ai,AK),f.dk=function(t){return he(t,193)},f.ek=function(t){return Ce(Dw,Ge,193,t,0,1)},M(Lr,"XMLTypePackageImpl/49",1988),E(1944,1,ai,ez),f.dk=function(t){return he(t,680)},f.ek=function(t){return Ce(DCe,It,2100,t,0,1)},M(Lr,"XMLTypePackageImpl/5",1944),E(1989,1,ai,tz),f.dk=function(t){return he(t,192)},f.ek=function(t){return Ce(_w,Ge,192,t,0,1)},M(Lr,"XMLTypePackageImpl/50",1989),E(1990,1,ai,nz),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/51",1990),E(1991,1,ai,iz),f.dk=function(t){return he(t,15)},f.ek=function(t){return Ce(Pr,Ge,15,t,0,1)},M(Lr,"XMLTypePackageImpl/52",1991),E(1945,1,ai,NK),f.dk=function(t){return Yr(t)},f.ek=function(t){return Ce(st,Ge,2,t,6,1)},M(Lr,"XMLTypePackageImpl/6",1945),E(1946,1,ai,RN),f.dk=function(t){return he(t,198)},f.ek=function(t){return Ce(Bl,Ge,198,t,0,2)},M(Lr,"XMLTypePackageImpl/7",1946),E(1947,1,ai,rz),f.dk=function(t){return G2(t)},f.ek=function(t){return Ce(cr,Ge,476,t,8,1)},M(Lr,"XMLTypePackageImpl/8",1947),E(1948,1,ai,sz),f.dk=function(t){return he(t,224)},f.ek=function(t){return Ce(Sk,Ge,224,t,0,1)},M(Lr,"XMLTypePackageImpl/9",1948);var Gh,c0,dM,FW,ie;E(53,63,q1,Un),M(Wg,"RegEx/ParseException",53),E(828,1,{},oz),f._l=function(t){return t<this.j&&bs(this.i,t)==63},f.am=function(){var t,n,i,r,o;if(this.c!=10)throw K(new Un(Xn((Fn(),oU))));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 K(new Un(Xn((Fn(),Jg))));if(this.a==123){o=0,i=0;do{if(wi(this),this.c!=0)throw K(new Un(Xn((Fn(),Jg))));if((o=vm(this.a))<0)break;if(i>i*16)throw K(new Un(Xn((Fn(),Cat))));i=i*16+o}while(!0);if(this.a!=125)throw K(new Un(Xn((Fn(),Eat))));if(i>PS)throw K(new Un(Xn((Fn(),Mat))));t=i}else{if(o=0,this.c!=0||(o=vm(this.a))<0)throw K(new Un(Xn((Fn(),Jg))));if(i=o,wi(this),this.c!=0||(o=vm(this.a))<0)throw K(new Un(Xn((Fn(),Jg))));i=i*16+o,t=i}break;case 117:if(r=0,wi(this),this.c!=0||(r=vm(this.a))<0)throw K(new Un(Xn((Fn(),Jg))));if(n=r,wi(this),this.c!=0||(r=vm(this.a))<0)throw K(new Un(Xn((Fn(),Jg))));if(n=n*16+r,wi(this),this.c!=0||(r=vm(this.a))<0)throw K(new Un(Xn((Fn(),Jg))));if(n=n*16+r,wi(this),this.c!=0||(r=vm(this.a))<0)throw K(new Un(Xn((Fn(),Jg))));n=n*16+r,t=n;break;case 118:if(wi(this),this.c!=0||(r=vm(this.a))<0)throw K(new Un(Xn((Fn(),Jg))));if(n=r,wi(this),this.c!=0||(r=vm(this.a))<0)throw K(new Un(Xn((Fn(),Jg))));if(n=n*16+r,wi(this),this.c!=0||(r=vm(this.a))<0)throw K(new Un(Xn((Fn(),Jg))));if(n=n*16+r,wi(this),this.c!=0||(r=vm(this.a))<0)throw K(new Un(Xn((Fn(),Jg))));if(n=n*16+r,wi(this),this.c!=0||(r=vm(this.a))<0)throw K(new Un(Xn((Fn(),Jg))));if(n=n*16+r,wi(this),this.c!=0||(r=vm(this.a))<0)throw K(new Un(Xn((Fn(),Jg))));if(n=n*16+r,n>PS)throw K(new Un(Xn((Fn(),"parser.descappe.4"))));t=n;break;case 65:case 90:case 122:throw K(new Un(Xn((Fn(),Aat))))}return t},f.bm=function(t){var n,i;switch(t){case 100:i=(this.e&32)==32?J0("Nd",!0):(vi(),qW);break;case 68:i=(this.e&32)==32?J0("Nd",!1):(vi(),qCe);break;case 119:i=(this.e&32)==32?J0("IsWord",!0):(vi(),j9);break;case 87:i=(this.e&32)==32?J0("IsWord",!1):(vi(),GCe);break;case 115:i=(this.e&32)==32?J0("IsSpace",!0):(vi(),nO);break;case 83:i=(this.e&32)==32?J0("IsSpace",!1):(vi(),HCe);break;default:throw K(new Mo((n=t,Aft+n.toString(16))))}return i},f.cm=function(t){var n,i,r,o,a,d,b,v,k,T,A,L;for(this.b=1,wi(this),n=null,this.c==0&&this.a==94?(wi(this),t?T=(vi(),vi(),new zu(5)):(n=(vi(),vi(),new zu(4)),Pc(n,0,PS),T=new zu(4))):T=(vi(),vi(),new zu(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:_v(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=rxe(this,i),!A)throw K(new Un(Xn((Fn(),Loe))));_v(T,A),r=!0;break;default:i=this.am()}else if(L==20){if(d=Q6(this.i,58,this.d),d<0)throw K(new Un(Xn((Fn(),ake))));if(b=!0,bs(this.i,this.d)==94&&(++this.d,b=!1),a=qa(this.i,this.d,d),v=aWe(a,b,(this.e&512)==512),!v)throw K(new Un(Xn((Fn(),kat))));if(_v(T,v),r=!0,d+1>=this.j||bs(this.i,d+1)!=93)throw K(new Un(Xn((Fn(),ake))));this.d=d+2}if(wi(this),!r)if(this.c!=0||this.a!=45)Pc(T,i,i);else{if(wi(this),(L=this.c)==1)throw K(new Un(Xn((Fn(),cU))));L==0&&this.a==93?(Pc(T,i,i),Pc(T,45,45)):(k=this.a,L==10&&(k=this.am()),wi(this),Pc(T,i,k))}(this.e&Ua)==Ua&&this.c==0&&this.a==44&&wi(this)}if(this.c==1)throw K(new Un(Xn((Fn(),cU))));return n&&(gC(n,T),T=n),Wy(T),fC(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 K(new Un(Xn((Fn(),jat))));if(n=this.cm(!1),r==4)_v(i,n);else if(t==45)gC(i,n);else if(t==38)Vst(i,n);else throw K(new Mo("ASSERT"))}else throw K(new Un(Xn((Fn(),Sat))));return wi(this),i},f.em=function(){var t,n;return t=this.a-48,n=(vi(),vi(),new Hee(12,null,t)),!this.g&&(this.g=new Uz),Qz(this.g,new g1e(t)),wi(this),n},f.fm=function(){return wi(this),vi(),Fxt},f.gm=function(){return wi(this),vi(),zxt},f.hm=function(){throw K(new Un(Xn((Fn(),Ca))))},f.im=function(){throw K(new Un(Xn((Fn(),Ca))))},f.jm=function(){return wi(this),oBt()},f.km=function(){return wi(this),vi(),Hxt},f.lm=function(){return wi(this),vi(),Qxt},f.mm=function(){var t;if(this.d>=this.j||((t=bs(this.i,this.d++))&65504)!=64)throw K(new Un(Xn((Fn(),vat))));return wi(this),vi(),vi(),new Rd(0,t-64)},f.nm=function(){return wi(this),IYt()},f.om=function(){return wi(this),vi(),Uxt},f.pm=function(){var t;return t=(vi(),vi(),new Rd(0,105)),wi(this),t},f.qm=function(){return wi(this),vi(),Gxt},f.rm=function(){return wi(this),vi(),qxt},f.sm=function(t,n){return this.am()},f.tm=function(){return wi(this),vi(),zCe},f.um=function(){var t,n,i,r,o;if(this.d+1>=this.j)throw K(new Un(Xn((Fn(),mat))));if(r=-1,n=null,t=bs(this.i,this.d),49<=t&&t<=57){if(r=t-48,!this.g&&(this.g=new Uz),Qz(this.g,new g1e(r)),++this.d,bs(this.i,this.d)!=41)throw K(new Un(Xn((Fn(),Nm))));++this.d}else switch(t==63&&--this.d,wi(this),n=Rye(this),n.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw K(new Un(Xn((Fn(),Nm))));break;default:throw K(new Un(Xn((Fn(),bat))))}if(wi(this),o=fw(this),i=null,o.e==2){if(o.Nm()!=2)throw K(new Un(Xn((Fn(),wat))));i=o.Jm(1),o=o.Jm(0)}if(this.c!=7)throw K(new Un(Xn((Fn(),Nm))));return wi(this),vi(),vi(),new sVe(r,n,o,i)},f.vm=function(){return wi(this),vi(),FCe},f.wm=function(){var t;if(wi(this),t=_q(24,fw(this)),this.c!=7)throw K(new Un(Xn((Fn(),Nm))));return wi(this),t},f.xm=function(){var t;if(wi(this),t=_q(20,fw(this)),this.c!=7)throw K(new Un(Xn((Fn(),Nm))));return wi(this),t},f.ym=function(){var t;if(wi(this),t=_q(22,fw(this)),this.c!=7)throw K(new Un(Xn((Fn(),Nm))));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=bs(this.i,this.d),o=axe(n),o!=0);)t|=o,++this.d;if(this.d>=this.j)throw K(new Un(Xn((Fn(),lke))));if(n==45){for(++this.d;this.d<this.j&&(n=bs(this.i,this.d),o=axe(n),o!=0);)i|=o,++this.d;if(this.d>=this.j)throw K(new Un(Xn((Fn(),lke))))}if(n==58){if(++this.d,wi(this),r=_He(fw(this),t,i),this.c!=7)throw K(new Un(Xn((Fn(),Nm))));wi(this)}else if(n==41)++this.d,wi(this),r=_He(fw(this),t,i);else throw K(new Un(Xn((Fn(),pat))));return r},f.Am=function(){var t;if(wi(this),t=_q(21,fw(this)),this.c!=7)throw K(new Un(Xn((Fn(),Nm))));return wi(this),t},f.Bm=function(){var t;if(wi(this),t=_q(23,fw(this)),this.c!=7)throw K(new Un(Xn((Fn(),Nm))));return wi(this),t},f.Cm=function(){var t,n;if(wi(this),t=this.f++,n=bee(fw(this),t),this.c!=7)throw K(new Un(Xn((Fn(),Nm))));return wi(this),n},f.Dm=function(){var t;if(wi(this),t=bee(fw(this),0),this.c!=7)throw K(new Un(Xn((Fn(),Nm))));return wi(this),t},f.Em=function(t){return wi(this),this.c==5?(wi(this),jq(t,(vi(),vi(),new uv(9,t)))):jq(t,(vi(),vi(),new uv(3,t)))},f.Fm=function(t){var n;return wi(this),n=(vi(),vi(),new QT(2)),this.c==5?(wi(this),km(n,pM),km(n,t)):(km(n,t),km(n,pM)),n},f.Gm=function(t){return wi(this),this.c==5?(wi(this),vi(),vi(),new uv(9,t)):(vi(),vi(),new uv(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(Wg,"RegEx/RegexParser",828),E(1927,828,{},ZPe),f._l=function(t){return!1},f.am=function(){return qxe(this)},f.bm=function(t){return Yj(t)},f.cm=function(t){return Hot(this)},f.dm=function(){throw K(new Un(Xn((Fn(),Ca))))},f.em=function(){throw K(new Un(Xn((Fn(),Ca))))},f.fm=function(){throw K(new Un(Xn((Fn(),Ca))))},f.gm=function(){throw K(new Un(Xn((Fn(),Ca))))},f.hm=function(){return wi(this),Yj(67)},f.im=function(){return wi(this),Yj(73)},f.jm=function(){throw K(new Un(Xn((Fn(),Ca))))},f.km=function(){throw K(new Un(Xn((Fn(),Ca))))},f.lm=function(){throw K(new Un(Xn((Fn(),Ca))))},f.mm=function(){return wi(this),Yj(99)},f.nm=function(){throw K(new Un(Xn((Fn(),Ca))))},f.om=function(){throw K(new Un(Xn((Fn(),Ca))))},f.pm=function(){return wi(this),Yj(105)},f.qm=function(){throw K(new Un(Xn((Fn(),Ca))))},f.rm=function(){throw K(new Un(Xn((Fn(),Ca))))},f.sm=function(t,n){return _v(t,Yj(n)),-1},f.tm=function(){return wi(this),vi(),vi(),new Rd(0,94)},f.um=function(){throw K(new Un(Xn((Fn(),Ca))))},f.vm=function(){return wi(this),vi(),vi(),new Rd(0,36)},f.wm=function(){throw K(new Un(Xn((Fn(),Ca))))},f.xm=function(){throw K(new Un(Xn((Fn(),Ca))))},f.ym=function(){throw K(new Un(Xn((Fn(),Ca))))},f.zm=function(){throw K(new Un(Xn((Fn(),Ca))))},f.Am=function(){throw K(new Un(Xn((Fn(),Ca))))},f.Bm=function(){throw K(new Un(Xn((Fn(),Ca))))},f.Cm=function(){var t;if(wi(this),t=bee(fw(this),0),this.c!=7)throw K(new Un(Xn((Fn(),Nm))));return wi(this),t},f.Dm=function(){throw K(new Un(Xn((Fn(),Ca))))},f.Em=function(t){return wi(this),jq(t,(vi(),vi(),new uv(3,t)))},f.Fm=function(t){var n;return wi(this),n=(vi(),vi(),new QT(2)),km(n,t),km(n,pM),n},f.Gm=function(t){return wi(this),vi(),vi(),new uv(3,t)};var H3=null,k9=null;M(Wg,"RegEx/ParserForXMLSchema",1927),E(122,1,IS,Nb),f.Hm=function(t){throw K(new Mo("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 RCe,O9,gM,Bxt,$Ce,jx=null,qW,cfe=null,BCe,pM,lfe=null,zCe,FCe,qCe,HCe,GCe,zxt,nO,Fxt,qxt,Hxt,Gxt,j9,Qxt,Uxt,Yin=M(Wg,"RegEx/Token",122);E(140,122,{3:1,140:1,122:1},zu),f.Om=function(t){var n,i,r;if(this.e==4)if(this==BCe)i=".";else if(this==qW)i="\\d";else if(this==j9)i="\\w";else if(this==nO)i="\\s";else{for(r=new kg,r.a+="[",n=0;n<this.b.length;n+=2)(t&Ua)!=0&&n>0&&(r.a+=","),this.b[n]===this.b[n+1]?Zs(r,xL(this.b[n])):(Zs(r,xL(this.b[n])),r.a+="-",Zs(r,xL(this.b[n+1])));r.a+="]",i=r.a}else if(this==qCe)i="\\D";else if(this==GCe)i="\\W";else if(this==HCe)i="\\S";else{for(r=new kg,r.a+="[^",n=0;n<this.b.length;n+=2)(t&Ua)!=0&&n>0&&(r.a+=","),this.b[n]===this.b[n+1]?Zs(r,xL(this.b[n])):(Zs(r,xL(this.b[n])),r.a+="-",Zs(r,xL(this.b[n+1])));r.a+="]",i=r.a}return i},f.a=!1,f.c=!1,M(Wg,"RegEx/RangeToken",140),E(587,1,{587:1},g1e),f.a=0,M(Wg,"RegEx/RegexParser/ReferencePosition",587),E(586,1,{3:1,586:1},pRe),f.Fb=function(t){var n;return t==null||!he(t,586)?!1:(n=c(t,586),jt(this.b,n.b)&&this.a==n.a)},f.Hb=function(){return Pg(this.b+"/"+Pxe(this.a))},f.Ib=function(){return this.c.Om(this.a)},f.a=0,M(Wg,"RegEx/RegularExpression",586),E(230,122,IS,Rd),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="\\"+HZ(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>=Ps?(i=(n=this.a>>>0,"0"+n.toString(16)),r="\\v"+qa(i,i.length-6,i.length)):r=""+HZ(this.a&Dr)}break;case 8:this==zCe||this==FCe?r=""+HZ(this.a&Dr):r="\\"+HZ(this.a&Dr);break;default:r=null}return r},f.a=0,M(Wg,"RegEx/Token/CharToken",230),E(323,122,IS,uv),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 K(new Mo("Token#toString(): CLOSURE "+this.c+Yc+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 K(new Mo("Token#toString(): NONGREEDYCLOSURE "+this.c+Yc+this.b));return n},f.b=0,f.c=0,M(Wg,"RegEx/Token/ClosureToken",323),E(829,122,IS,Wpe),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(Wg,"RegEx/Token/ConcatToken",829),E(1925,122,IS,sVe),f.Jm=function(t){if(t==0)return this.d;if(t==1)return this.b;throw K(new Mo("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(Wg,"RegEx/Token/ConditionToken",1925),E(1926,122,IS,_Qe),f.Jm=function(t){return this.b},f.Nm=function(){return 1},f.Om=function(t){return"(?"+(this.a==0?"":Pxe(this.a))+(this.c==0?"":Pxe(this.c))+":"+this.b.Om(t)+")"},f.a=0,f.c=0,M(Wg,"RegEx/Token/ModifierToken",1926),E(830,122,IS,ime),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(Wg,"RegEx/Token/ParenToken",830),E(521,122,{3:1,122:1,521:1},Hee),f.Km=function(){return this.b},f.Om=function(t){return this.e==12?"\\"+this.a:EWt(this.b)},f.a=0,M(Wg,"RegEx/Token/StringToken",521),E(469,122,IS,QT),f.Hm=function(t){km(this,t)},f.Jm=function(t){return c(Wb(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(Wb(this.a,0),122),i=c(Wb(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 kg,r=0;r<this.a.a.c.length;r++)Zs(a,c(Wb(this.a,r),122).Om(t));o=a.a}return o}if(this.a.a.c.length==2&&c(Wb(this.a,1),122).e==7)o=c(Wb(this.a,0),122).Om(t)+"?";else if(this.a.a.c.length==2&&c(Wb(this.a,0),122).e==7)o=c(Wb(this.a,1),122).Om(t)+"??";else{for(a=new kg,Zs(a,c(Wb(this.a,0),122).Om(t)),r=1;r<this.a.a.c.length;r++)a.a+="|",Zs(a,c(Wb(this.a,r),122).Om(t));o=a.a}return o},M(Wg,"RegEx/Token/UnionToken",469),E(518,1,{596:1},b_),f.Ib=function(){return this.a.b},M(Lft,"XMLTypeUtil/PatternMatcherImpl",518),E(1690,1505,{},$N);var Jxt;M(Lft,"XMLTypeValidator",1690),E(272,1,Jd,Yp),f.Ic=function(t){ws(this,t)},f.Jc=function(){return(this.b-this.a)*this.c<0?yp:new C0(this)},f.a=0,f.b=0,f.c=0;var yp;M(Mke,"ExclusiveRange",272),E(1065,1,Ud,BN),f.Rb=function(t){c(t,15),YTt()},f.Nb=function(t){ps(this,t)},f.Pb=function(){return q8t()},f.Ub=function(){return H8t()},f.Wb=function(t){c(t,15),e7t()},f.Ob=function(){return!1},f.Sb=function(){return!1},f.Tb=function(){return-1},f.Vb=function(){return-1},f.Qb=function(){throw K(new yg(Rft))},M(Mke,"ExclusiveRange/1",1065),E(261,1,Ud,C0),f.Rb=function(t){c(t,15),ZTt()},f.Nb=function(t){ps(this,t)},f.Pb=function(){return MBt(this)},f.Ub=function(){return EIt(this)},f.Wb=function(t){c(t,15),t7t()},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 K(new yg(Rft))},f.a=0,f.b=0,M(Mke,"ExclusiveRange/RangeIterator",261);var Da=nj(lU,"C"),Hn=nj(zC,"I"),Sl=nj(hk,"Z"),Kw=nj(FC,"J"),Bl=nj(RC,"B"),is=nj($C,"D"),Sx=nj(BC,"F"),G3=nj(qC,"S"),Zin=er("org.eclipse.elk.core.labels","ILabelManager"),QCe=er(_s,"DiagnosticChain"),UCe=er(fft,"ResourceSet"),JCe=M(_s,"InvocationTargetException",null),Wxt=(Yz(),HPt),Vxt=Vxt=mGt;MRt(H9t),FRt("permProps",[[["locale","default"],[$ft,"gecko1_8"]],[["locale","default"],[$ft,"safari"]]]),Vxt(null,"elk",null)}).call(this)}).call(this,typeof Kxt<"u"?Kxt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(u,h,g){function m(Q){"@babel/helpers - typeof";return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(te){return typeof te}:function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},m(Q)}function p(Q,te,V){return Object.defineProperty(Q,"prototype",{writable:!1}),Q}function O(Q,te){if(!(Q instanceof te))throw new TypeError("Cannot call a class as a function")}function j(Q,te,V){return te=P(te),C(Q,_()?Reflect.construct(te,V||[],P(Q).constructor):te.apply(Q,V))}function C(Q,te){if(te&&(m(te)=="object"||typeof te=="function"))return te;if(te!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N(Q)}function N(Q){if(Q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q}function _(){try{var Q=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_=function(){return!!Q})()}function P(Q){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(te){return te.__proto__||Object.getPrototypeOf(te)},P(Q)}function I(Q,te){if(typeof te!="function"&&te!==null)throw new TypeError("Super expression must either be null or a function");Q.prototype=Object.create(te&&te.prototype,{constructor:{value:Q,writable:!0,configurable:!0}}),Object.defineProperty(Q,"prototype",{writable:!1}),te&&q(Q,te)}function q(Q,te){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,ne){return V.__proto__=ne,V},q(Q,te)}var z=u("./elk-api.js").default,X=(function(Q){function te(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};O(this,te);var ne=Object.assign({},V),ce=!1;try{u.resolve("web-worker"),ce=!0}catch{}if(V.workerUrl)if(ce){var se=u("web-worker");ne.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(!ne.workerFactory){var me=u("./elk-worker.min.js"),ye=me.Worker;ne.workerFactory=function(qe){return new ye(qe)}}return j(this,te,[ne])}return I(te,Q),p(te)})(z);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)})})(aMe)),aMe.exports}var d5n=h5n();const g5n=EAe(d5n),p5n=new g5n;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),O=p[Math.floor(p.length/2)];for(const j of p)h.set(j,O);g=m}return h}function m5n(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 XNe(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 p5n.layout(u),g=new Map;for(const m of h.children||[])g.set(m.id,{x:m.x??0,y:m.y??0});return m5n(g),l.map(m=>({...m,position:g.get(m.id)||m.position}))}function M9t(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 FI(l){return l.map(s=>({...s,type:"default",animated:!1}))}const b5n=50,w5n=150,v5n=1e3,x5n=3e4;function y5n({setNodesRaw:l,setEdgesRaw:s,setPreamble:u,preambleRef:h,graphRefreshingRef:g,nodeIdCounter:m,fitView:p}){const{setSyncBanner:O}=Tc(),{addToast:j}=Rx(),[C,N]=re.useState("reconnecting"),_=re.useRef(0);return re.useEffect(()=>{const I=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws/sync`;let q=null,z=null,X=!0;function Q(){X&&(q=new WebSocket(I),q.onopen=()=>{X&&(_.current=0,N("connected"))},q.onmessage=async te=>{try{const V=JSON.parse(te.data);if(V.type==="graph_update"&&V.graph){const ne=V.graph,ce=ne.nodes||[],se=FI(ne.edges||[]),me=ce.some(ye=>ye.position&&(ye.position.x!==0||ye.position.y!==0));g.current+=1;try{if(me)l(ce);else{const ye=await XNe(ce,se);l(ye)}s(se),ne.preamble!==void 0&&(u(ne.preamble||""),h.current=ne.preamble||""),m.current=M9t(ce),O(null),Tc.getState().setDirty(!1),j("info","Pipeline updated from file"),ne.warning&&j("warning",ne.warning),setTimeout(()=>p({padding:.8}),100)}finally{setTimeout(()=>{g.current-=1},w5n)}}V.type==="parse_error"&&O(V.error||"Parse error in pipeline file")}catch(V){j("error",`WebSocket sync error: ${V instanceof Error?V.message:String(V)}`)}},q.onclose=()=>{if(!X)return;if(_.current+=1,_.current>b5n){N("disconnected");return}N("reconnecting");const te=Math.min(v5n*2**(_.current-1),x5n);z=setTimeout(Q,te)},q.onerror=()=>{q==null||q.close()})}return Q(),()=>{X=!1,z&&clearTimeout(z),q==null||q.close()}},[l,s,u,h,m,p,O,j,g]),C}function uV(l,s,u={}){return{nodeId:l,nodeLabel:s,status:"ok",row_count:0,column_count:0,columns:[],preview:[],error:null,...u}}const k5n=["data_input","banding_source","instanceOf"];function O5n(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)??{},O=((g=m.data)==null?void 0:g.label)||m.id;for(const j of k5n){const C=p[j];typeof C=="string"&&C&&!s.has(C)&&u.push({nodeId:m.id,nodeLabel:O,field:j,referencedId:C})}}return u}function j5n(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 fMe(l){return String(l.data.label||l.id)}function Q4t(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 S5n(l,s,u){const h=u.status==="ok"||u.status==="error"||u.status==="loading"?u.status:"ok";return uV(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 T5n({selectedNode:l,graphRef:s,parentGraphRef:u,submodelsRef:h,setNodes:g,setNodesRaw:m,setEdgesRaw:p,setPreamble:O,preambleRef:j,pipelineNameRef:C,sourceFileRef:N,lastSavedRef:_,nodeIdCounter:P}){const I=dc(xe=>xe.rowLimit),q=dc(xe=>xe.activeSource),z=Tc(xe=>xe.setDirty),X=Rx(xe=>xe.addToast),[Q,te]=re.useState(!0),[V,ne]=re.useState(null),[ce,se]=re.useState({}),me=re.useRef(null),ye=re.useRef(null),qe=re.useRef(I);re.useEffect(()=>{qe.current=I},[I]);const Be=re.useRef(q);re.useEffect(()=>{Be.current=q},[q]);const ke=re.useRef(new Set),le=re.useRef(()=>{}),W=re.useCallback(xe=>{var Ie;const{edges:Ee,nodes:tt}=s.current,Te=Ee.filter(Ye=>Ye.source===xe).map(Ye=>Ye.target);if(Te.length===0)return;const et=lhe(s,u,h,j);for(const Ye of Te){if(ke.current.has(Ye))continue;ke.current.add(Ye);const Je=tt.find(nn=>nn.id===Ye),_t=(Ie=Je==null?void 0:Je.data)==null?void 0:Ie._columns;che(et,Ye,qe.current,Be.current).then(nn=>{if(nn.columns){const an=nn.columns;g(Jn=>Jn.map(rr=>rr.id===Ye?{...rr,data:{...rr.data,_columns:an,_availableColumns:nn.available_columns??an,_schemaWarnings:nn.schema_warnings??[]}}:rr)),Q4t(_t,an)||le.current(Ye)}}).catch(nn=>{console.warn("propagation_failed",Ye,nn),X("warning",`Preview propagation failed for "${Ye}"`)}).finally(()=>{ke.current.delete(Ye)})}},[s,u,h,j,g,X]);re.useEffect(()=>{le.current=W},[W]),re.useEffect(()=>{bdn().then(xe=>{const Ee=xe.nodes??[],tt=xe.edges??[];m(Ee),p(FI(tt)),xe.preamble!==void 0&&(O(xe.preamble||""),j.current=xe.preamble||""),xe.pipeline_name&&(C.current=xe.pipeline_name),xe.source_file&&(N.current=xe.source_file),xe.submodels&&(h.current=xe.submodels),xe.sources&&Array.isArray(xe.sources)&&dc.getState().setSources(xe.sources),xe.active_source&&dc.getState().setActiveSource(xe.active_source),P.current=M9t(Ee),_.current=JSON.stringify({nodes:Ee,edges:tt,preamble:xe.preamble||""}),xe.warning&&X("warning",xe.warning),te(!1)}).catch(xe=>{X("error",`Failed to load pipeline: ${xe.message}`),te(!1)})},[m,p,O,j,C,N,h,P,_,X]);const pe=re.useCallback(xe=>{var _t;(_t=me.current)==null||_t.abort();const Ee=new AbortController;me.current=Ee;const tt=fMe(xe),{getPreview:Te,setPreview:et,graphVersion:Ie}=hc.getState(),Ye=Te(xe.id);if(Ye){if(ne(Ye.data),Ye.graphVersion===Ie)return}else ne(uV(xe.id,tt,{status:"loading"}));const Je=lhe(s,u,h,j);che(Je,xe.id,qe.current,Be.current,{signal:Ee.signal}).then(nn=>{var Jn;const an=S5n(xe.id,tt,nn);if(ne(an),et(xe.id,an,hc.getState().graphVersion),nn.node_statuses&&se(nn.node_statuses),nn.columns){const rr=(Jn=xe.data)==null?void 0:Jn._columns,ei=nn.columns;g(Ei=>Ei.map(xi=>xi.id===xe.id?{...xi,data:{...xi.data,_columns:ei,_availableColumns:nn.available_columns??ei,_schemaWarnings:nn.schema_warnings??[]}}:xi)),Q4t(rr,ei)||W(xe.id)}}).catch(nn=>{(nn instanceof OO||nn.name!=="AbortError")&&(ne(uV(xe.id,tt,{status:"error",error:nn.message})),se({}))})},[s,u,h,j,g,W]),je=re.useCallback(xe=>{ye.current&&clearTimeout(ye.current);const Ee=hc.getState().getPreview(xe.id);ne(Ee?Ee.data:uV(xe.id,fMe(xe),{status:"loading"})),ye.current=setTimeout(()=>pe(xe),200)},[pe]),ue=re.useCallback(xe=>{const{nodes:Ee,edges:tt}=s.current,Te=new Map(Ee.map(Je=>[Je.id,Je])),Ie=tt.filter(Je=>Je.target===xe.id).map(Je=>Je.source).map(Je=>Te.get(Je)).filter(Je=>{var _t;return!!Je&&!((_t=Je.data)!=null&&_t._columns)});if(Ie.length===0){pe(xe);return}ne(uV(xe.id,fMe(xe),{status:"loading"}));const Ye=lhe(s,u,h,j);Promise.all(Ie.map(Je=>che(Ye,Je.id,qe.current,Be.current).then(_t=>{_t.columns&&g(nn=>nn.map(an=>an.id===Je.id?{...an,data:{...an.data,_columns:_t.columns,_availableColumns:_t.available_columns??_t.columns,_schemaWarnings:_t.schema_warnings??[]}}:an))}).catch(_t=>{var nn;console.warn("upstream_preview_failed",Je.id,_t),X("warning",`Upstream preview failed for "${((nn=Je.data)==null?void 0:nn.label)||Je.id}"`)}))).then(()=>{pe(xe)})},[pe,s,u,h,j,g,X]),ve=re.useCallback(()=>{const{nodes:xe,edges:Ee}=s.current,tt=O5n(xe);tt.length>0&&X("warning",j5n(tt));const{sources:Te,activeSource:et}=dc.getState();wdn({name:C.current,description:"",graph:{nodes:xe,edges:Ee,submodels:h.current},preamble:j.current,source_file:N.current,sources:Te,active_source:et}).then(Ie=>{_.current=JSON.stringify({nodes:xe,edges:Ee,preamble:j.current}),z(!1),X("success",`Saved → ${Ie.file}`)}).catch(Ie=>{console.warn("Pipeline save failed:",Ie),X("error","Failed to save pipeline")})},[s,h,j,N,C,_,z,X]);return re.useEffect(()=>{se({})},[l]),re.useEffect(()=>()=>{var xe;(xe=me.current)==null||xe.abort(),ye.current&&clearTimeout(ye.current)},[]),{loading:Q,previewData:V,setPreviewData:ne,nodeStatuses:ce,fetchPreview:je,refreshPreview:ue,handleSave:ve}}function C5n({nodes:l,edges:s,selectedNode:u,graphRef:h,parentGraphRef:g,submodelsRef:m,preambleRef:p,nodeStatuses:O,hoveredNodeId:j}){const C=Rx(le=>le.addToast),N=dc(le=>le.rowLimit),_=dc(le=>le.activeSource),P=zo(le=>le.transform[2]<.45),[I,q]=re.useState(null),[z,X]=re.useState(null),Q=re.useCallback(()=>{q(null),X(null)},[]),te=re.useCallback((le,W,pe)=>{if(!u)return;const je=lhe(h,g,m,p);X({rowIndex:le,column:W}),vdn({graph:je,row_index:le,target_node_id:u.id,column:W,row_limit:N,source:_,row_values:pe}).then(ue=>{ue.status==="ok"&&ue.trace?q(ue.trace):(C("error",ue.error||"Trace failed"),Q())}).catch(ue=>{C("error",`Trace error: ${ue.message}`),Q()})},[u,h,g,m,p,N,_,C,Q]),V=re.useMemo(()=>{const le=new Map;for(const W of l){const pe=Mp(W);if(pe.nodeType===gi.SUBMODEL){const ue=(pe.config||{}).childNodeIds||[];for(const ve of ue)le.set(ve,W.id)}}return le},[l]),ne=re.useMemo(()=>{const le=new Map,W=new Map;for(const pe of l)pe.id.startsWith("port_in__")?le.set(pe.id.replace("port_in__",""),pe.id):pe.id.startsWith("port_out__")&&W.set(pe.id.replace("port_out__",""),pe.id);return{inMap:le,outMap:W}},[l]),ce=re.useCallback(le=>V.get(le)||ne.inMap.get(le)||ne.outMap.get(le)||le,[V,ne]),se=re.useMemo(()=>{if(!I)return new Set;const le=new Set;for(const W of I.steps)le.add(ce(W.node_id));return le},[I,ce]),{traceValueMap:me,relevantNodeIds:ye}=re.useMemo(()=>{if(!I)return{traceValueMap:new Map,relevantNodeIds:new Set};const le=new Map,W=new Set;for(const pe of I.steps){if(!pe.column_relevant)continue;const je=ce(pe.node_id);if(W.add(je),I.column&&pe.output_values[I.column]!==void 0)le.set(je,pe.output_values[I.column]);else{const ue=pe.schema_diff.columns_added[0]||pe.schema_diff.columns_modified[0];ue&&le.set(je,pe.output_values[ue])}}return{traceValueMap:le,relevantNodeIds:W}},[I,ce]),qe=re.useMemo(()=>{if(!j)return null;const le=new Set([j]);for(const W of s)W.source===j&&le.add(W.target),W.target===j&&le.add(W.source);return le},[j,s]),Be=re.useMemo(()=>{const le=I!==null;return l.map(W=>{const pe=O[W.id],je=se.has(W.id),ue=le&&!je,ve=!le&&qe!==null&&!qe.has(W.id);return{...W,data:{...W.data,_status:pe,_traceActive:le&&ye.has(W.id),_traceDimmed:ue,_hoverDimmed:ve,_traceValue:me.get(W.id)},style:{...W.style||{},transition:"opacity 0.2s ease"}}})},[l,O,I,se,ye,me,qe]),ke=re.useMemo(()=>I?s.map(le=>{const W=se.has(le.source),pe=se.has(le.target);return W&&pe?{...le,style:{stroke:"var(--accent)",strokeWidth:2.5,filter:"drop-shadow(0 0 4px var(--accent))"},markerEnd:{type:gO.ArrowClosed,width:14,height:14,color:"var(--accent)"},animated:!0}:{...le,style:{stroke:"rgba(255,255,255,.05)",strokeWidth:1},markerEnd:{type:gO.ArrowClosed,width:14,height:14,color:"rgba(255,255,255,.05)"}}}):j?s.map(le=>le.source===j||le.target===j?{...le,style:{stroke:"rgba(255,255,255,.55)",strokeWidth:2},markerEnd:{type:gO.ArrowClosed,width:14,height:14,color:"rgba(255,255,255,.55)"}}:{...le,style:{stroke:"rgba(255,255,255,.06)",strokeWidth:1},markerEnd:{type:gO.ArrowClosed,width:14,height:14,color:"rgba(255,255,255,.06)"}}):P?s.map(le=>({...le,style:{stroke:"rgba(255,255,255,.38)",strokeWidth:2},markerEnd:{type:gO.ArrowClosed,width:16,height:16,color:"rgba(255,255,255,.38)"}})):s,[s,I,se,j,P]);return{traceResult:I,tracedCell:z,handleCellClick:te,clearTrace:Q,nodesWithStatus:Be,edgesWithTrace:ke}}function E5n({graphRef:l,parentGraphRef:s,submodelsRef:u,setNodesRaw:h,setEdgesRaw:g,setSelectedNode:m,setPreviewData:p,preambleRef:O,sourceFileRef:j,pipelineNameRef:C,fitView:N}){const _=Rx(ne=>ne.addToast),P=Tc(ne=>ne.setDirty),[I,q]=re.useState([{type:"pipeline",name:"main",file:""}]),z=re.useRef(I);re.useEffect(()=>{z.current=I},[I]);const X=re.useCallback(async(ne,ce)=>{try{const se={nodes:l.current.nodes,edges:l.current.edges,submodels:u.current},ye=(await ydn({name:ne,node_ids:ce,graph:se,preamble:O.current,source_file:j.current,pipeline_name:C.current})).graph;ye&&(h(ye.nodes??[]),g(FI(ye.edges??[])),u.current=ye.submodels??{},_("success",`Submodel "${ne}" created`),P(!0),setTimeout(()=>N({padding:.8}),100))}catch(se){_("error",`Create submodel failed: ${se instanceof Error?se.message:String(se)}`)}},[l,u,h,g,O,j,C,N,_,P]),Q=re.useCallback(async ne=>{const ce=ne.replace("submodel__","");try{const me=(await kdn(ce)).graph;if(me){const ye=[...l.current.nodes],qe=[...l.current.edges];s.current={nodes:ye,edges:qe,submodels:{...u.current}},q(tt=>{const Te=[...tt];return Te.length>0&&(Te[Te.length-1]={...Te[Te.length-1],_savedNodes:ye,_savedEdges:qe}),[...Te,{type:"submodel",name:ce,file:`modules/${ce}.py`}]});const Be=me.nodes??[],ke=FI(me.edges??[]),le=`submodel__${ce}`,W=new Map(ye.map(tt=>[tt.id,tt])),pe=new Set(Be.map(tt=>tt.id)),je=qe.filter(tt=>tt.target===le),ue=new Map;for(const tt of je){const Te=tt.targetHandle,et=Te?Te.replace("in__",""):"__unconnected__",Ie=ue.get(tt.source)||[];Ie.push(et),ue.set(tt.source,Ie)}for(const[tt,Te]of ue){const et=W.get(tt),Ie=et?String(Mp(et).label||tt):tt,Ye=`port_in__${tt}`;Be.push({id:Ye,type:gi.SUBMODEL_PORT,position:{x:0,y:0},data:{label:Ie,portDirection:"input",portName:Ie}});for(const Je of[...new Set(Te)])pe.has(Je)&&ke.push({id:`e_${Ye}_${Je}`,source:Ye,target:Je,type:"default",animated:!1,style:{strokeDasharray:"6 3",opacity:.5}})}const ve=qe.filter(tt=>tt.source===le&&tt.sourceHandle),xe=new Map;for(const tt of ve){const Te=tt.sourceHandle.replace("out__","");if(!pe.has(Te))continue;const et=xe.get(tt.target)||[];et.push(Te),xe.set(tt.target,et)}for(const[tt,Te]of xe){const et=W.get(tt),Ie=et?String(Mp(et).label||tt):tt,Ye=`port_out__${tt}`;Be.push({id:Ye,type:gi.SUBMODEL_PORT,position:{x:0,y:0},data:{label:Ie,portDirection:"output",portName:Ie}});for(const Je of[...new Set(Te)])ke.push({id:`e_${Je}_${Ye}`,source:Je,target:Ye,type:"default",animated:!1,style:{strokeDasharray:"6 3",opacity:.5}})}const Ee=await XNe(Be,ke);h(Ee),g(ke),m(null),p(null),setTimeout(()=>N({padding:.8}),100)}}catch(se){_("error",`Drill-down failed: ${se instanceof Error?se.message:String(se)}`)}},[l,s,u,h,g,m,p,N,_]),te=re.useCallback(ne=>{const ce=z.current;if(ne>=ce.length-1)return;const se=ce[ne];se._savedNodes&&se._savedEdges&&(h(se._savedNodes),g(FI(se._savedEdges)),m(null),p(null),setTimeout(()=>N({padding:.8}),100)),ne===0&&(s.current=null),q(ce.slice(0,ne+1))},[s,h,g,m,p,N]),V=re.useCallback(async ne=>{var ce;try{const se={nodes:l.current.nodes,edges:l.current.edges,submodels:u.current},me=await Odn({submodel_name:ne,graph:se,preamble:O.current,source_file:j.current,pipeline_name:C.current}),ye=me.graph;ye&&(h(ye.nodes??[]),g(FI(ye.edges??[])),u.current=((ce=me.graph)==null?void 0:ce.submodels)??u.current,_("success",`Submodel "${ne}" dissolved`),P(!0),setTimeout(()=>N({padding:.8}),100))}catch(se){_("error",`Dissolve failed: ${se instanceof Error?se.message:String(se)}`)}},[l,u,h,g,O,j,C,N,_,P]);return{viewStack:I,handleDrillIntoSubmodel:Q,handleBreadcrumbNavigate:te,handleCreateSubmodel:X,handleDissolveSubmodel:V}}function M5n({handleSave:l,setNodes:s,setEdges:u,undo:h,redo:g,fitView:m,graphRef:p,clipboard:O,nodeIdCounter:j,setSelectedNode:C,setPreviewData:N,clearTrace:_,closePanel:P,isInsideSubmodel:I}){const q=Rx(te=>te.addToast),{setShortcutsOpen:z,setSubmodelDialog:X,setNodeSearchOpen:Q}=Tc();re.useEffect(()=>{const te=V=>{var ye,qe;const ne=(ye=V.target)==null?void 0:ye.tagName,ce=V.target,se=ne==="INPUT"||ne==="TEXTAREA"||((qe=ce.closest)==null?void 0:qe.call(ce,".cm-editor"))!=null,me=V.ctrlKey||V.metaKey;if(me&&V.key==="s"){V.preventDefault(),l();return}if(me&&V.key==="z"&&!V.shiftKey){V.preventDefault(),h();return}if(me&&V.key==="z"&&V.shiftKey){V.preventDefault(),g();return}if(me&&V.key==="y"){V.preventDefault(),g();return}if(me&&V.key==="c"&&!se){const{nodes:Be,edges:ke}=p.current,le=Be.filter(je=>je.selected);if(le.length===0)return;const W=new Set(le.map(je=>je.id)),pe=ke.filter(je=>W.has(je.source)&&W.has(je.target));O.current={nodes:le,edges:pe},q("info",`Copied ${le.length} node${le.length>1?"s":""}`);return}if(me&&V.key==="v"&&!se){const{nodes:Be,edges:ke}=O.current;if(Be.length===0)return;V.preventDefault();const le=new Set;for(const ve of p.current.nodes){const xe=Mp(ve).nodeType;Dhe(xe)&&le.add(xe)}const W=Be.filter(ve=>{const xe=Mp(ve).nodeType;return!(Dhe(xe)&&le.has(xe))});if(W.length===0)return;const pe=new Map,je=W.map(ve=>{j.current+=1;const xe=`${ve.type}_${j.current}`;return pe.set(ve.id,xe),{...ve,id:xe,position:{x:ve.position.x+60,y:ve.position.y+60},selected:!0,data:{...ve.data,label:`${ve.data.label} copy`}}}),ue=ke.flatMap(ve=>{const xe=pe.get(ve.source),Ee=pe.get(ve.target);return!xe||!Ee?[]:[{...ve,id:`e-${xe}-${Ee}`,source:xe,target:Ee}]});s(ve=>[...ve.map(xe=>({...xe,selected:!1})),...je]),u(ve=>[...ve,...ue]),q("info",`Pasted ${je.length} node${je.length>1?"s":""}`);return}if(me&&V.key==="a"&&!se){V.preventDefault(),s(Be=>Be.map(ke=>({...ke,selected:!0})));return}if(me&&V.key==="1"){V.preventDefault(),m({padding:.8});return}if(me&&V.key==="k"){V.preventDefault(),Q(Be=>!Be);return}if(V.key==="Escape"){_(),P();return}if(V.key==="?"&&!se){V.preventDefault(),z(Be=>!Be);return}if(me&&V.key==="g"){if(V.preventDefault(),I){q("info","Submodels cannot be nested inside other submodels");return}const{nodes:Be}=p.current,ke=Be.filter(le=>le.selected).map(le=>le.id);ke.length>=2?X({nodeIds:ke}):q("info","Select at least 2 nodes to create a submodel (Ctrl+G)");return}if((V.key==="Delete"||V.key==="Backspace")&&!se){const{nodes:Be,edges:ke}=p.current,le=new Set(Be.filter(pe=>pe.selected).map(pe=>pe.id)),W=new Set(ke.filter(pe=>pe.selected).map(pe=>pe.id));if(le.size===0&&W.size===0)return;if(le.size>0){s(Be.filter(pe=>!le.has(pe.id))),u(ke.filter(pe=>!le.has(pe.source)&&!le.has(pe.target))),C(null),N(null);for(const pe of le)hc.getState().clearNode(pe)}else u(ke.filter(pe=>!W.has(pe.id)))}};return window.addEventListener("keydown",te),()=>window.removeEventListener("keydown",te)},[l,s,u,h,g,m,p,O,j,C,N,_,P,q,z,X,Q,I])}const U4t=500,A5n=5e3,N5n=1440*60*1e3,_5n=5,D5n=3e4;function L5n(l,s){const{jobs:u}=l.current,h=Object.keys(u),g=Object.keys(s.current);for(const m of h){let p=function(C){const{pollFn:N,jobIdFn:_,isComplete:P,isError:I,getResult:q,getErrorMessage:z,onProgress:X,onComplete:Q,onFail:te,labelFn:V,addToast:ne,successLabel:ce,failLabel:se}=l.current,me=l.current.jobs[m];if(!me)return;if(Date.now()-C.startedAt>=N5n){delete s.current[m],te(m,"Job timed out after 24 hours"),ne("error",`${se}: ${V(me)} — Job timed out after 24 hours`);return}const qe=C.consecutiveErrors===0?U4t:Math.min(U4t*Math.pow(2,C.consecutiveErrors),A5n);C.timeoutId=setTimeout(async()=>{let Be;try{const ke=await Promise.race([N(_(me)),new Promise((le,W)=>{Be=setTimeout(()=>W(new Error("Poll request timed out")),D5n)})]);if(clearTimeout(Be),C.consecutiveErrors=0,C.toastedWarning=!1,P(ke)||I(ke)){if(delete s.current[m],P(ke)&&q(ke))Q(m,q(ke)),ne("success",`${ce}: ${V(me)}`);else{const le=z(ke)||"Unknown error";te(m,le),ne("error",`${se}: ${V(me)} — ${le}`)}return}X(m,ke)}catch(ke){clearTimeout(Be),C.consecutiveErrors+=1,console.warn(`${se} poll failed (attempt ${C.consecutiveErrors}, will retry):`,ke),C.consecutiveErrors>=_5n&&!C.toastedWarning&&(C.toastedWarning=!0,ne("warning",`Polling is struggling for ${V(me)} — ${C.consecutiveErrors} consecutive errors`))}s.current[m]&&p(C)},qe)};if(s.current[m])continue;const j={startedAt:Date.now(),consecutiveErrors:0,toastedWarning:!1};s.current[m]=j,p(j)}for(const m of g)u[m]||(clearTimeout(s.current[m].timeoutId),delete s.current[m])}function J4t(l){const s=re.useRef({}),u=re.useRef(l);re.useEffect(()=>{u.current=l}),re.useEffect(()=>{L5n(u,s)},[l.jobs,l.pollFn,l.onProgress,l.onComplete,l.onFail,l.addToast]),re.useEffect(()=>{const h=s.current;return()=>{for(const g of Object.values(h))clearTimeout(g.timeoutId)}},[])}function P5n(){const l=Rx(I=>I.addToast),s=hc(I=>I.solveJobs),u=hc(I=>I.updateSolveProgress),h=hc(I=>I.completeSolveJob),g=hc(I=>I.failSolveJob),m=re.useCallback(I=>Ndn(I),[]),p=re.useCallback((I,q)=>{q.result&&h(I,q.result)},[h]);J4t({jobs:s,pollFn:m,onProgress:u,onComplete:p,onFail:g,labelFn:I=>I.nodeLabel,jobIdFn:I=>I.jobId,isComplete:I=>I.status==="completed",isError:I=>I.status==="error",getResult:I=>I.result?I:void 0,getErrorMessage:I=>I.message||"Unknown error",addToast:l,successLabel:"Optimisation complete",failLabel:"Optimisation failed"});const O=hc(I=>I.trainJobs),j=hc(I=>I.updateTrainProgress),C=hc(I=>I.completeTrainJob),N=hc(I=>I.failTrainJob),_=re.useCallback(I=>Tdn(I),[]),P=re.useCallback((I,q)=>{q.result&&C(I,q.result)},[C]);J4t({jobs:O,pollFn:_,onProgress:j,onComplete:P,onFail:N,labelFn:I=>I.nodeLabel,jobIdFn:I=>I.jobId,isComplete:I=>I.status==="completed",isError:I=>I.status==="error",getResult:I=>I.result?I:void 0,getErrorMessage:I=>I.message||"Unknown error",addToast:l,successLabel:"Training complete",failLabel:"Training failed"})}function I5n({graphRef:l,nodeIdCounter:s,lastSelectedNodeRef:u,setNodes:h,setEdges:g,setSelectedNode:m,setPreviewData:p,fitView:O}){const j=Rx(Q=>Q.addToast),C=hc(Q=>Q.clearNode),N=Tc(Q=>Q.setRenameDialog),_=Tc(Q=>Q.setSubmodelDialog),P=re.useCallback(Q=>{var se,me;const{nodes:te,edges:V}=l.current;h(()=>te.filter(ye=>ye.id!==Q)),g(()=>V.filter(ye=>ye.source!==Q&&ye.target!==Q)),m(ye=>(ye==null?void 0:ye.id)===Q?null:ye),p(ye=>(ye==null?void 0:ye.nodeId)===Q?null:ye),C(Q),((se=u.current)==null?void 0:se.id)===Q&&(u.current=null);const ne=Tc.getState();((me=ne.renameDialog)==null?void 0:me.nodeId)===Q&&N(null);const ce=ne.submodelDialog;ce&&ce.nodeIds.includes(Q)&&_(null)},[l,u,h,g,m,p,C,N,_]),I=re.useCallback(Q=>{const{nodes:te}=l.current,V=te.find(se=>se.id===Q);if(!V||Dhe(Mp(V).nodeType))return;s.current+=1;const ne=`${V.type}_${s.current}`,ce={...V,id:ne,position:{x:V.position.x+40,y:V.position.y+40},selected:!0,data:{...V.data,label:`${V.data.label} copy`}};h(se=>[...se.map(me=>({...me,selected:!1})),ce]),m(ce)},[l,s,h,m]),q=re.useCallback(Q=>{const{nodes:te}=l.current,V=te.find(ye=>ye.id===Q);if(!V)return;s.current+=1;const ne=Mp(V),ce=ne.nodeType||gi.POLARS,me={id:`${ce}_${s.current}`,type:V.type,position:{x:V.position.x+60,y:V.position.y+80},selected:!0,data:{label:`${ne.label} instance`,description:`Instance of ${ne.label}`,nodeType:ce,config:{instanceOf:Q}}};h(ye=>[...ye.map(qe=>({...qe,selected:!1})),me]),m(me),j("info",`Created instance of "${ne.label}"`)},[l,s,h,m,j]),z=re.useCallback(Q=>{const{nodes:te}=l.current,V=te.find(ne=>ne.id===Q);V&&N({nodeId:Q,currentLabel:String(V.data.label)})},[l,N]),X=re.useCallback(async()=>{const{nodes:Q,edges:te}=l.current;if(Q.length===0)return;const V=await XNe(Q,te);h(()=>V),setTimeout(()=>O({padding:.15}),50),j("info","Auto-layout applied")},[l,h,O,j]);return{handleDeleteNode:P,handleDuplicateNode:I,handleCreateInstance:q,handleRenameNode:z,handleAutoLayout:X}}function R5n(l,s,u){const h=s.find(p=>p.id===l);if(!h)return!1;const g=s2[Mp(h).nodeType];return g!=null&&g.maxInputs?u.filter(p=>p.target===l).length>=g.maxInputs:!1}function $5n({graphRef:l,nodeIdCounter:s,lastSelectedNodeRef:u,setNodes:h,setEdges:g,setSelectedNode:m,setContextMenu:p,fetchPreview:O,clearTrace:j,screenToFlowPosition:C,graphRefreshingRef:N}){const _=re.useCallback(te=>{if(te.source===te.target)return;const{edges:V,nodes:ne}=l.current;V.some(se=>se.source===te.source&&se.target===te.target&&se.sourceHandle===(te.sourceHandle??null)&&se.targetHandle===(te.targetHandle??null))||R5n(te.target,ne,V)||g(se=>qkt(te,se))},[l,g]),P=re.useCallback(({nodes:te})=>{if(te.length!==1){if(N.current)return;m(null),j()}},[m,j,N]),I=re.useCallback((te,V)=>{m(ne=>((ne==null?void 0:ne.id)!==V.id&&(O(V),j()),V)),u.current=V},[m,O,j,u]),q=re.useCallback(te=>{g(V=>V.filter(ne=>ne.id!==te))},[g]),z=re.useCallback((te,V)=>{te.preventDefault();const ne=Mp(V).nodeType;p({x:te.clientX,y:te.clientY,nodeId:V.id,nodeLabel:String(V.data.label),isSubmodel:ne===gi.SUBMODEL,isSingleton:Dhe(ne)})},[p]),X=re.useCallback(te=>{te.preventDefault(),te.dataTransfer.dropEffect="move"},[]),Q=re.useCallback(te=>{var ye;te.preventDefault();const V=te.dataTransfer.getData("application/reactflow-type");if(!V)return;let ne={};try{ne=JSON.parse(te.dataTransfer.getData("application/reactflow-config")||"{}")}catch{}const ce=C({x:te.clientX,y:te.clientY});s.current+=1;const me={id:`${V}_${s.current}`,type:V,position:ce,data:{label:`${((ye=s2[V])==null?void 0:ye.name)||"Node"} ${s.current}`,description:"",nodeType:V,config:ne}};h(qe=>[...qe.map(Be=>({...Be,selected:!1})),{...me,selected:!0}]),m(me)},[C,s,h,m]);return{onConnect:_,onSelectionChange:P,onNodeClick:I,handleDeleteEdge:q,onNodeContextMenu:z,onDragOver:X,onDrop:Q}}const B5n={type:"default",animated:!1,style:{stroke:"rgba(255,255,255,.25)",strokeWidth:1.5}},z5n={stroke:"var(--accent)",strokeWidth:2,strokeDasharray:"6 3"},F5n={padding:.15},q5n={hideAttribution:!0},H5n={[gi.API_INPUT]:a0,[gi.DATA_SOURCE]:a0,[gi.POLARS]:a0,[gi.MODEL_SCORE]:a0,[gi.RATING_STEP]:a0,[gi.BANDING]:a0,[gi.OUTPUT]:a0,[gi.DATA_SINK]:a0,[gi.EXTERNAL_FILE]:a0,[gi.LIVE_SWITCH]:a0,[gi.MODELLING]:a0,[gi.OPTIMISER]:a0,[gi.OPTIMISER_APPLY]:a0,[gi.SCENARIO_EXPANDER]:a0,[gi.CONSTANT]:a0,[gi.SUBMODEL]:y1n,[gi.SUBMODEL_PORT]:O1n};function G5n(){const{nodes:l,edges:s,setNodes:u,setEdges:h,setNodesRaw:g,setEdgesRaw:m,onNodesChange:p,onEdgesChange:O,undo:j,redo:C,canUndo:N,canRedo:_}=f5n(),{screenToFlowPosition:P,fitView:I,zoomIn:q,zoomOut:z}=tX(),X=dc(In=>In.fetchMlflow),Q=Tc(In=>In.paletteOpen),te=Tc(In=>In.setPaletteOpen),V=Tc(In=>In.utilityOpen),ne=Tc(In=>In.setUtilityOpen),ce=Tc(In=>In.importsOpen),se=Tc(In=>In.setImportsOpen),me=Tc(In=>In.gitOpen),ye=Tc(In=>In.setGitOpen),qe=Tc(In=>In.shortcutsOpen),Be=Tc(In=>In.setShortcutsOpen),ke=Tc(In=>In.submodelDialog),le=Tc(In=>In.setSubmodelDialog),W=Tc(In=>In.renameDialog),pe=Tc(In=>In.setRenameDialog),je=Tc(In=>In.syncBanner),ue=Tc(In=>In.setSyncBanner),ve=Tc(In=>In.dirty),xe=Tc(In=>In.setDirty),Ee=Tc(In=>In.hoveredNodeId),tt=Tc(In=>In.setHoveredNodeId),Te=Tc(In=>In.nodeSearchOpen),et=Tc(In=>In.setNodeSearchOpen);re.useEffect(()=>{X()},[X]);const[Ie,Ye]=re.useState(null),[Je,_t]=re.useState(null),[nn,an]=re.useState(""),Jn=re.useRef(null),[rr,ei]=re.useState(null);re.useEffect(()=>{Ie&&ei(Ie.id)},[Ie]);const Ei=re.useRef(()=>{}),xi=re.useCallback(()=>{Ye(null),Jn.current=null,ei(null),Ei.current(null),ne(!1),se(!1),ye(!1)},[ne,se,ye]),Kr=hc(In=>In.bumpGraphVersion),mo=hc(In=>In.getOptimiserPreview),hs=hc(In=>In.getModellingPreview),Fo=re.useRef({}),Bn=re.useRef({nodes:[],edges:[]}),zs=re.useRef({nodes:[],edges:[]}),Ji=re.useRef(null),ds=re.useRef(""),qo=re.useRef(""),yo=re.useRef("main"),sa=re.useRef(""),_p=re.useRef(0),Wh=re.useRef(0),d0=re.useRef("");re.useEffect(()=>{zs.current={nodes:l,edges:s};const In=l.map(Ia=>`${Ia.id}:${JSON.stringify(Ia.data)}`).join("|"),tc=s.map(Ia=>`${Ia.id}:${Ia.source}:${Ia.target}`).join("|"),tu=`${In}||${tc}`;tu!==d0.current&&(d0.current=tu,Kr())},[l,s,Kr]);const Dp=re.useRef(null);re.useEffect(()=>{if(ds.current&&!_p.current){const In=Dp.current;In&&(In.nodes!==l||In.edges!==s||In.preamble!==nn)&&xe(!0)}Dp.current={nodes:l,edges:s,preamble:nn}},[l,s,nn,xe]);const EO=y5n({setNodesRaw:g,setEdgesRaw:m,setPreamble:an,preambleRef:qo,graphRefreshingRef:_p,nodeIdCounter:Wh,fitView:I}),{loading:c2,previewData:qc,setPreviewData:cb,nodeStatuses:lb,fetchPreview:qf,refreshPreview:lg,handleSave:cf}=T5n({selectedNode:Ie,graphRef:zs,parentGraphRef:Ji,submodelsRef:Fo,setNodes:u,setNodesRaw:g,setEdgesRaw:m,setPreamble:an,preambleRef:qo,pipelineNameRef:yo,sourceFileRef:sa,lastSavedRef:ds,nodeIdCounter:Wh});re.useEffect(()=>{Ei.current=cb},[cb]);const{traceResult:h5,tracedCell:MO,handleCellClick:AO,clearTrace:g0,nodesWithStatus:l2,edgesWithTrace:u2}=C5n({nodes:l,edges:s,selectedNode:Ie,graphRef:zs,parentGraphRef:Ji,submodelsRef:Fo,preambleRef:qo,nodeStatuses:lb,hoveredNodeId:Ee}),{viewStack:ug,handleDrillIntoSubmodel:a2,handleBreadcrumbNavigate:ub,handleCreateSubmodel:NO,handleDissolveSubmodel:d5}=E5n({graphRef:zs,parentGraphRef:Ji,submodelsRef:Fo,setNodesRaw:g,setEdgesRaw:m,setSelectedNode:Ye,setPreviewData:In=>cb(In),preambleRef:qo,sourceFileRef:sa,pipelineNameRef:yo,fitView:I});M5n({handleSave:cf,setNodes:u,setEdges:h,undo:j,redo:C,fitView:I,graphRef:zs,clipboard:Bn,nodeIdCounter:Wh,setSelectedNode:Ye,setPreviewData:In=>cb(In),clearTrace:g0,closePanel:xi,isInsideSubmodel:ug.length>1}),P5n();const f2=re.useCallback((In,tc)=>{u(tu=>tu.map(Ia=>Ia.id===In?{...Ia,data:tc}:Ia)),Ye(tu=>tu&&tu.id===In?{...tu,data:tc}:tu)},[u]),{handleDeleteNode:ab,handleDuplicateNode:_O,handleCreateInstance:fb,handleRenameNode:qx,handleAutoLayout:g5}=I5n({graphRef:zs,nodeIdCounter:Wh,lastSelectedNodeRef:Jn,setNodes:u,setEdges:h,setSelectedNode:Ye,setPreviewData:cb,fitView:I}),{onConnect:hb,onSelectionChange:Hx,onNodeClick:p5,handleDeleteEdge:Gx,onNodeContextMenu:ag,onDragOver:_u,onDrop:lf}=$5n({graphRef:zs,nodeIdCounter:Wh,lastSelectedNodeRef:Jn,setNodes:u,setEdges:h,setSelectedNode:Ye,setContextMenu:_t,fetchPreview:qf,clearTrace:g0,screenToFlowPosition:P,graphRefreshingRef:_p});if(c2)return y.jsx("div",{className:"h-full w-full flex items-center justify-center",style:{background:"var(--bg-base)"},children:y.jsx("div",{className:"text-sm",style:{color:"var(--text-muted)"},children:"Loading pipeline..."})});const p0=Fo.current;return y.jsxs("div",{className:"h-full w-full flex flex-col",style:{background:"var(--bg-base)"},children:[y.jsx(r5n,{nodeCount:l.length,dirty:ve,canUndo:N,canRedo:_,onUndo:j,onRedo:C,onZoomIn:()=>q(),onZoomOut:()=>z(),onOpenUtility:()=>{ne(!0),Ye(null),Jn.current=null,Ei.current(null),_t(null)},onOpenImports:()=>{se(!0),Ye(null),Jn.current=null,Ei.current(null),_t(null)},onOpenGit:()=>{ye(!0),Ye(null),Jn.current=null,Ei.current(null),_t(null)},onCentre:()=>I({padding:.15}),onAutoLayout:g5,onSave:cf,wsStatus:EO,timings:qc==null?void 0:qc.timings,memory:qc==null?void 0:qc.memory}),y.jsxs("div",{className:"flex-1 flex min-h-0",children:[y.jsx("nav",{"aria-label":"Node palette",children:Q?y.jsx(iV,{name:"NodePalette",children:y.jsx(S1n,{onCollapse:()=>te(!1),nodes:l})}):y.jsx("button",{onClick:()=>te(!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:In=>In.currentTarget.style.background="var(--chrome-hover)",onMouseLeave:In=>In.currentTarget.style.background="var(--chrome)",title:"Show node palette",children:y.jsx(xhn,{size:16,style:{color:"var(--text-muted)"}})})}),y.jsxs("main",{className:"flex-1 flex flex-col min-w-0",children:[je&&y.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:[y.jsx("span",{className:"flex-1 truncate",children:je}),y.jsx("button",{onClick:()=>ue(null),className:"opacity-60 hover:opacity-100",children:"✕"})]}),y.jsx(iV,{name:"Canvas",children:y.jsxs("div",{className:"flex-1 min-h-0 relative",children:[y.jsx(Y3n,{viewStack:ug,onNavigate:ub}),y.jsx(Ban,{nodes:l2,edges:u2,onNodesChange:p,onEdgesChange:O,onConnect:hb,onSelectionChange:Hx,onNodeMouseEnter:(In,tc)=>tt(tc.id),onNodeMouseLeave:()=>tt(null),onNodeClick:(In,tc)=>{ne(!1),se(!1),ye(!1),tt(null),p5(In,tc)},onNodeContextMenu:ag,onNodeDoubleClick:(In,tc)=>{Mp(tc).nodeType===gi.SUBMODEL&&a2(tc.id)},onPaneClick:()=>{_t(null),g0(),xi()},onDrop:lf,onDragOver:_u,nodeTypes:H5n,panOnDrag:[2],selectionOnDrag:!0,selectNodesOnDrag:!0,selectionMode:eR.Partial,selectionKeyCode:null,minZoom:.1,fitView:!0,fitViewOptions:F5n,proOptions:q5n,defaultEdgeOptions:B5n,connectionLineStyle:z5n,children:y.jsx(Wan,{variant:wO.Dots,gap:24,size:1,color:"rgba(255,255,255,.06)"})})]})}),y.jsx(iV,{name:"DataPreview",children:(()=>{const In=(Ie==null?void 0:Ie.id)??rr,tc=In?hs(In):null;if(tc)return y.jsx(N3n,{data:tc,nodeId:In});const tu=In?mo(In):null;if(tu)return y.jsx($yn,{data:tu,nodeId:In});const Ia=In?l.find(db=>db.id===In):null;return Ia&&Mp(Ia).nodeType===gi.OPTIMISER&&qc&&qc.status==="ok"&&qc.preview.length>0?y.jsx(e3n,{data:qc,config:Mp(Ia).config??{}}):y.jsx(Iyn,{data:qc,onCellClick:AO,tracedCell:MO})})()})]}),y.jsx("aside",{"aria-label":"Node properties",children:y.jsx(iV,{name:"NodePanel",children:me?y.jsx(u5n,{onClose:()=>ye(!1)}):V?y.jsx(c5n,{onClose:()=>ne(!1),onImportAdded:In=>{const tc=qo.current;if(!tc.includes(In)){const tu=tc?`${tc}
${In}`:In;an(tu),qo.current=tu,xe(!0)}}}):ce?y.jsx(l5n,{preamble:nn,onPreambleChange:In=>{an(In),qo.current=In,xe(!0)},onClose:()=>se(!1)}):h5?y.jsx(q3n,{trace:h5,onClose:g0}):y.jsx(Lyn,{node:(()=>{const In=(Ie==null?void 0:Ie.id)??rr;return In?l.find(tc=>tc.id===In)??null:null})(),edges:s,allNodes:l,submodels:p0,preamble:nn,onClose:xi,onUpdateNode:f2,onDeleteEdge:Gx,onRefreshPreview:()=>{Ie&&lg(Ie)},dimmed:!Ie&&!!rr,errorLine:(qc==null?void 0:qc.nodeId)===((Ie==null?void 0:Ie.id)??rr)?(qc==null?void 0:qc.error_line)??null:null,previewRows:(qc==null?void 0:qc.status)==="ok"&&(qc==null?void 0:qc.nodeId)===((Ie==null?void 0:Ie.id)??rr)?qc.preview:void 0})})})]}),Je&&y.jsx(J3n,{x:Je.x,y:Je.y,nodeId:Je.nodeId,nodeLabel:Je.nodeLabel,onClose:()=>_t(null),onDelete:ab,onDuplicate:_O,onRename:qx,onCreateInstance:fb,isSubmodel:Je.isSubmodel,isSingleton:Je.isSingleton,onDissolveSubmodel:d5}),qe&&y.jsx(K3n,{onClose:()=>Be(!1)}),ke&&y.jsx(s5n,{nodeCount:ke.nodeIds.length,onClose:()=>le(null),onSubmit:In=>{NO(In,ke.nodeIds),le(null)}}),W&&y.jsx(o5n,{defaultValue:W.currentLabel,onCancel:()=>pe(null),onConfirm:In=>{const tc=zs.current.nodes.find(tu=>tu.id===W.nodeId);tc&&f2(W.nodeId,{...tc.data,label:In}),pe(null)}}),Te&&y.jsx(a5n,{onClose:()=>et(!1),onSelectNode:In=>{const tc=zs.current.nodes.find(tu=>tu.id===In)??null;tc&&(Ye(tc),Jn.current=tc,ne(!1),se(!1),ye(!1))}}),y.jsx(iV,{name:"Toast",children:y.jsx(U3n,{})})]})}function Q5n(){return y.jsx(DOt,{children:y.jsx(G5n,{})})}arn.createRoot(document.getElementById("root")).render(y.jsx(re.StrictMode,{children:y.jsx(Q5n,{})}));
