sqlmesh 0.181.2.dev22__py3-none-any.whl → 0.181.2.dev24__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sqlmesh/_version.py +2 -2
- {sqlmesh-0.181.2.dev22.dist-info → sqlmesh-0.181.2.dev24.dist-info}/METADATA +1 -1
- {sqlmesh-0.181.2.dev22.dist-info → sqlmesh-0.181.2.dev24.dist-info}/RECORD +50 -49
- web/client/dist/assets/Audits-7rP8WdsD.js +1 -0
- web/client/dist/assets/{Banner-OvD39mOq.js → Banner-jMPu9_jP.js} +1 -1
- web/client/dist/assets/{ChevronDownIcon-BqleRn_G.js → ChevronDownIcon-BZk6URUK.js} +1 -1
- web/client/dist/assets/{ChevronRightIcon-CXKkTIzW.js → ChevronRightIcon-Ctcbr61G.js} +1 -1
- web/client/dist/assets/{Content-COW0vEIQ.js → Content-C43kcRta.js} +2 -2
- web/client/dist/assets/Content-DITnFT31.js +1 -0
- web/client/dist/assets/Data-B5q1KzIa.js +1 -0
- web/client/dist/assets/{DataCatalog-iRjvB2C3.js → DataCatalog-BRzSrlJL.js} +2 -2
- web/client/dist/assets/{Editor-BLhCfpzx.js → Editor-7muj9lbw.js} +1 -1
- web/client/dist/assets/Editor-CAMzYH0x.js +1 -0
- web/client/dist/assets/Errors-Bbd2EOQg.js +1 -0
- web/client/dist/assets/{FileExplorer-gjDFmLLh.js → FileExplorer-DMR02idl.js} +3 -3
- web/client/dist/assets/{Footer-CfHqR8wm.js → Footer-Cnu_IoqE.js} +1 -1
- web/client/dist/assets/{Header-sstE4Gqk.js → Header-NJkxh8bb.js} +1 -1
- web/client/dist/assets/Input-CYm3h-zG.js +41 -0
- web/client/dist/assets/Lineage-HZl7aUI5.js +1 -0
- web/client/dist/assets/{ListboxShow-nvacUoI1.js → ListboxShow-CwgOYGSe.js} +1 -1
- web/client/dist/assets/ModelLineage-Bnes5PV4.js +1 -0
- web/client/dist/assets/Models-B_sukTY5.js +1 -0
- web/client/dist/assets/{Page-D0nUv5ck.js → Page-DxTzPmYT.js} +1 -1
- web/client/dist/assets/{Plan-Cj_0vc_H.js → Plan-B2b637kI.js} +1 -1
- web/client/dist/assets/{PlusCircleIcon-C2xHHnL-.js → PlusCircleIcon-FgfUjgrM.js} +1 -1
- web/client/dist/assets/{ReportErrors-D88IZz3n.js → ReportErrors-xnNgNULg.js} +1 -1
- web/client/dist/assets/Root-BMcIwqdc.js +1 -0
- web/client/dist/assets/{SearchList-Dltx9F6k.js → SearchList-9n_6_E0k.js} +1 -1
- web/client/dist/assets/{SelectEnvironment-CZAVUJhY.js → SelectEnvironment-DC6x26Ax.js} +1 -1
- web/client/dist/assets/{SourceList-Diwt0dWW.js → SourceList-Chz492Ne.js} +1 -1
- web/client/dist/assets/{SourceListItem-CjW93oYe.js → SourceListItem-DIieM0S_.js} +1 -1
- web/client/dist/assets/{SplitPane-B-vlCkrS.js → SplitPane-CmzNrZQN.js} +1 -1
- web/client/dist/assets/Tests-DbVFKqeG.js +1 -0
- web/client/dist/assets/{Welcome-DbFwSigj.js → Welcome-DxKW_LKA.js} +1 -1
- web/client/dist/assets/{context-Dvup3XDX.js → context-CzM900aY.js} +1 -1
- web/client/dist/assets/{context-CA-MXfZ6.js → context-DhymIb_N.js} +4 -4
- web/client/dist/assets/{editor-DmJY3IbC.js → editor-Bf9rhumO.js} +2 -2
- web/client/dist/assets/{file-DYgUpg8u.js → file-CcK5Oobc.js} +1 -1
- web/client/dist/assets/{help-CNdZX-7b.js → help-DtLmoC0U.js} +1 -1
- web/client/dist/assets/index-BdXOfeCo.js +1 -0
- web/client/dist/assets/{index-D-9edHVb.js → index-CLuHMKlN.js} +2 -2
- web/client/dist/assets/index-KZcJd7F1.js +58 -0
- web/client/dist/assets/{plan-Cdj5QED6.js → plan-e4fPD47J.js} +1 -1
- web/client/dist/assets/{project-BlT_dmGo.js → project-CjyecwCx.js} +1 -1
- web/client/dist/assets/{transition-nHCHMLQ-.js → transition-C8EjNcgL.js} +2 -2
- web/client/dist/index.html +1 -1
- web/client/dist/assets/Audits-BZWk3jlL.js +0 -1
- web/client/dist/assets/Content-CkK8L7V3.js +0 -1
- web/client/dist/assets/Data-CQQQmeF1.js +0 -1
- web/client/dist/assets/Editor-DKqRG32p.js +0 -1
- web/client/dist/assets/Errors-x-oFeSch.js +0 -1
- web/client/dist/assets/Input-A6Hrwz1k.js +0 -41
- web/client/dist/assets/Lineage-CzdZCXc6.js +0 -1
- web/client/dist/assets/ModelLineage-B6geDuI6.js +0 -1
- web/client/dist/assets/Models-B1vLawzn.js +0 -1
- web/client/dist/assets/Root-DCNtqbqI.js +0 -1
- web/client/dist/assets/Tests-D8lyWcVm.js +0 -1
- web/client/dist/assets/index-L7UJWCGi.js +0 -74
- {sqlmesh-0.181.2.dev22.dist-info → sqlmesh-0.181.2.dev24.dist-info}/WHEEL +0 -0
- {sqlmesh-0.181.2.dev22.dist-info → sqlmesh-0.181.2.dev24.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.181.2.dev22.dist-info → sqlmesh-0.181.2.dev24.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.181.2.dev22.dist-info → sqlmesh-0.181.2.dev24.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var iKt=Object.defineProperty;var rKt=(l,s,u)=>s in l?iKt(l,s,{enumerable:!0,configurable:!0,writable:!0,value:u}):l[s]=u;var yat=(l,s,u)=>rKt(l,typeof s!="symbol"?s+"":s,u);import{r as Ne,ao as Oat,a2 as Q0t,ap as H0t,R as In,j as Ei,c as ml,aq as Sc,ar as Kf,i as Ss,W as l2e,J as sKt,w as Yi,F as oKt,as as cKt,at as uKt,au as lKt,av as z0t,L as K0t,S as W0t,u as fKt,a as MV,E as hKt,b as Lo,aw as X0t,g as aKt,h as d$,ax as dKt,ay as gKt}from"./index-L7UJWCGi.js";import{c as WU}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{_ as bKt}from"./Input-A6Hrwz1k.js";import{s as U0t,u as V8}from"./editor-DmJY3IbC.js";import{M as pKt,E as s$}from"./file-DYgUpg8u.js";import{u as f2e}from"./project-BlT_dmGo.js";import{E as wKt}from"./help-6Q7f7fjd.js";import{S as mKt}from"./SourceList-Diwt0dWW.js";import{B as kat,D as vKt}from"./transition-nHCHMLQ-.js";function yKt({title:l,titleId:s,...u},a){return Ne.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},u),l?Ne.createElement("title",{id:s},l):null,Ne.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const OKt=Ne.forwardRef(yKt);function kKt({title:l,titleId:s,...u},a){return Ne.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},u),l?Ne.createElement("title",{id:s},l):null,Ne.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))}const SKt=Ne.forwardRef(kKt);function xKt({title:l,titleId:s,...u},a){return Ne.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},u),l?Ne.createElement("title",{id:s},l):null,Ne.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const EKt=Ne.forwardRef(xKt);function CKt({title:l,titleId:s,...u},a){return Ne.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},u),l?Ne.createElement("title",{id:s},l):null,Ne.createElement("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm4.28 10.28a.75.75 0 0 0 0-1.06l-3-3a.75.75 0 1 0-1.06 1.06l1.72 1.72H8.25a.75.75 0 0 0 0 1.5h5.69l-1.72 1.72a.75.75 0 1 0 1.06 1.06l3-3Z",clipRule:"evenodd"}))}const Sat=Ne.forwardRef(CKt);function TKt({title:l,titleId:s,...u},a){return Ne.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},u),l?Ne.createElement("title",{id:s},l):null,Ne.createElement("path",{fillRule:"evenodd",d:"m6.72 5.66 11.62 11.62A8.25 8.25 0 0 0 6.72 5.66Zm10.56 12.68L5.66 6.72a8.25 8.25 0 0 0 11.62 11.62ZM5.105 5.106c3.807-3.808 9.98-3.808 13.788 0 3.808 3.807 3.808 9.98 0 13.788-3.807 3.808-9.98 3.808-13.788 0-3.808-3.807-3.808-9.98 0-13.788Z",clipRule:"evenodd"}))}const AKt=Ne.forwardRef(TKt);var lme={exports:{}},xat;function MKt(){return xat||(xat=1,function(l,s){(function(u){l.exports=u()})(function(){return function(){function u(a,g,w){function b(C,T){if(!g[C]){if(!a[C]){var j=typeof WU=="function"&&WU;if(!T&&j)return j(C,!0);if(y)return y(C,!0);var N=new Error("Cannot find module '"+C+"'");throw N.code="MODULE_NOT_FOUND",N}var F=g[C]={exports:{}};a[C][0].call(F.exports,function(Q){var V=a[C][1][Q];return b(V||Q)},F,F.exports,u,a,g,w)}return g[C].exports}for(var y=typeof WU=="function"&&WU,x=0;x<w.length;x++)b(w[x]);return b}return u}()({1:[function(u,a,g){Object.defineProperty(g,"__esModule",{value:!0});var w=function(){function C(T,j){for(var N=0;N<j.length;N++){var F=j[N];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(T,F.key,F)}}return function(T,j,N){return j&&C(T.prototype,j),N&&C(T,N),T}}();function b(C,T){if(!(C instanceof T))throw new TypeError("Cannot call a class as a function")}var y=function(){function C(){var T=this,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=j.defaultLayoutOptions,F=N===void 0?{}:N,Q=j.algorithms,V=Q===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:Q,ee=j.workerFactory,te=j.workerUrl;if(b(this,C),this.defaultLayoutOptions=F,this.initialized=!1,typeof te>"u"&&typeof ee>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var le=ee;typeof te<"u"&&typeof ee>"u"&&(le=function(xe){return new Worker(xe)});var Se=le(te);if(typeof Se.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new x(Se),this.worker.postMessage({cmd:"register",algorithms:V}).then(function(be){return T.initialized=!0}).catch(console.err)}return w(C,[{key:"layout",value:function(j){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=N.layoutOptions,Q=F===void 0?this.defaultLayoutOptions:F,V=N.logging,ee=V===void 0?!1:V,te=N.measureExecutionTime,le=te===void 0?!1:te;return j?this.worker.postMessage({cmd:"layout",graph:j,layoutOptions:Q,options:{logging:ee,measureExecutionTime:le}}):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.terminate()}}]),C}();g.default=y;var x=function(){function C(T){var j=this;if(b(this,C),T===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=T,this.worker.onmessage=function(N){setTimeout(function(){j.receive(j,N)},0)}}return w(C,[{key:"postMessage",value:function(j){var N=this.id||0;this.id=N+1,j.id=N;var F=this;return new Promise(function(Q,V){F.resolvers[N]=function(ee,te){ee?(F.convertGwtStyleError(ee),V(ee)):Q(te)},F.worker.postMessage(j)})}},{key:"receive",value:function(j,N){var F=N.data,Q=j.resolvers[F.id];Q&&(delete j.resolvers[F.id],F.error?Q(F.error):Q(null,F.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(j){if(j){var N=j.__java$exception;N&&(N.cause&&N.cause.backingJsObject&&(j.cause=N.cause.backingJsObject,this.convertGwtStyleError(j.cause)),delete j.__java$exception)}}}]),C}()},{}],2:[function(u,a,g){(function(w){(function(){var b;typeof window<"u"?b=window:typeof w<"u"?b=w:typeof self<"u"&&(b=self);var y;function x(){}function C(){}function T(){}function j(){}function N(){}function F(){}function Q(){}function V(){}function ee(){}function te(){}function le(){}function Se(){}function be(){}function xe(){}function Me(){}function _e(){}function rt(){}function $e(){}function ut(){}function st(){}function ht(){}function pt(){}function ce(){}function Ze(){}function et(){}function vt(){}function X(){}function nt(){}function Nt(){}function Jt(){}function Yt(){}function Nn(){}function Ln(){}function Mi(){}function ar(){}function Dr(){}function Ys(){}function ps(){}function vr(){}function Lc(){}function so(){}function Fo(){}function Mo(){}function Xo(){}function gf(){}function Qs(){}function gi(){}function xc(){}function Cd(){}function A3(){}function T2(){}function A2(){}function B1(){}function Ol(){}function Eh(){}function Ch(){}function M2(){}function M3(){}function xw(){}function bf(){}function Td(){}function Ew(){}function Cw(){}function Tw(){}function J0(){}function _1(){}function j3(){}function p9(){}function P3(){}function w9(){}function EC(){}function Aw(){}function cR(){}function uR(){}function lR(){}function fR(){}function hR(){}function aR(){}function dR(){}function gR(){}function bR(){}function pR(){}function wR(){}function mR(){}function vR(){}function yR(){}function OR(){}function kR(){}function CC(){}function SR(){}function xR(){}function ER(){}function TC(){}function CR(){}function TR(){}function AR(){}function MR(){}function V5(){}function m9(){}function Y5(){}function jR(){}function PR(){}function v9(){}function DR(){}function AC(){}function IR(){}function Z5(){}function NR(){}function y9(){}function _3e(){}function q3e(){}function Q3e(){}function H3e(){}function z3e(){}function K3e(){}function W3e(){}function YV(){}function X3e(){}function U3e(){}function G3e(){}function V3e(){}function Y3e(){}function ZV(){}function Z3e(){}function J3e(){}function eye(){}function tye(){}function nye(){}function iye(){}function rye(){}function sye(){}function oye(){}function cye(){}function uye(){}function lye(){}function fye(){}function hye(){}function $R(){}function aye(){}function dye(){}function gye(){}function bye(){}function pye(){}function JV(){}function wye(){}function mye(){}function vye(){}function yye(){}function Oye(){}function kye(){}function Sye(){}function xye(){}function Eye(){}function Cye(){}function Tye(){}function Aye(){}function Mye(){}function jye(){}function Pye(){}function Dye(){}function Iye(){}function Nye(){}function $ye(){}function Rye(){}function Lye(){}function Fye(){}function Bye(){}function _ye(){}function qye(){}function Qye(){}function Hye(){}function zye(){}function Kye(){}function Wye(){}function Xye(){}function Uye(){}function Gye(){}function Vye(){}function Yye(){}function Zye(){}function Jye(){}function e4e(){}function t4e(){}function n4e(){}function i4e(){}function r4e(){}function s4e(){}function o4e(){}function c4e(){}function u4e(){}function l4e(){}function f4e(){}function h4e(){}function a4e(){}function d4e(){}function g4e(){}function b4e(){}function p4e(){}function w4e(){}function m4e(){}function v4e(){}function y4e(){}function O4e(){}function k4e(){}function S4e(){}function x4e(){}function E4e(){}function C4e(){}function T4e(){}function A4e(){}function M4e(){}function j4e(){}function P4e(){}function D4e(){}function I4e(){}function N4e(){}function $4e(){}function R4e(){}function L4e(){}function F4e(){}function B4e(){}function _4e(){}function q4e(){}function Q4e(){}function H4e(){}function z4e(){}function K4e(){}function W4e(){}function X4e(){}function U4e(){}function G4e(){}function V4e(){}function Y4e(){}function Z4e(){}function J4e(){}function e5e(){}function t5e(){}function n5e(){}function i5e(){}function r5e(){}function s5e(){}function o5e(){}function c5e(){}function u5e(){}function eY(){}function l5e(){}function f5e(){}function h5e(){}function a5e(){}function d5e(){}function g5e(){}function b5e(){}function p5e(){}function w5e(){}function m5e(){}function v5e(){}function y5e(){}function O5e(){}function k5e(){}function S5e(){}function x5e(){}function E5e(){}function C5e(){}function T5e(){}function A5e(){}function M5e(){}function j5e(){}function P5e(){}function D5e(){}function I5e(){}function N5e(){}function $5e(){}function R5e(){}function L5e(){}function F5e(){}function B5e(){}function _5e(){}function q5e(){}function Q5e(){}function H5e(){}function z5e(){}function K5e(){}function W5e(){}function X5e(){}function U5e(){}function G5e(){}function V5e(){}function Y5e(){}function Z5e(){}function J5e(){}function eOe(){}function tOe(){}function nOe(){}function iOe(){}function rOe(){}function sOe(){}function oOe(){}function cOe(){}function uOe(){}function lOe(){}function fOe(){}function hOe(){}function aOe(){}function dOe(){}function gOe(){}function bOe(){}function pOe(){}function wOe(){}function mOe(){}function vOe(){}function yOe(){}function OOe(){}function tY(){}function kOe(){}function SOe(){}function xOe(){}function EOe(){}function COe(){}function TOe(){}function AOe(){}function MOe(){}function jOe(){}function POe(){}function DOe(){}function IOe(){}function NOe(){}function $Oe(){}function ROe(){}function LOe(){}function FOe(){}function BOe(){}function _Oe(){}function qOe(){}function nY(){}function QOe(){}function HOe(){}function zOe(){}function KOe(){}function WOe(){}function XOe(){}function iY(){}function rY(){}function UOe(){}function sY(){}function oY(){}function GOe(){}function VOe(){}function YOe(){}function ZOe(){}function JOe(){}function eke(){}function tke(){}function nke(){}function ike(){}function cY(){}function rke(){}function ske(){}function oke(){}function cke(){}function uke(){}function lke(){}function fke(){}function hke(){}function ake(){}function dke(){}function gke(){}function bke(){}function pke(){}function wke(){}function mke(){}function vke(){}function yke(){}function Oke(){}function kke(){}function Ske(){}function xke(){}function Eke(){}function Cke(){}function Tke(){}function Ake(){}function Mke(){}function jke(){}function Pke(){}function Dke(){}function Ike(){}function Nke(){}function $ke(){}function Rke(){}function Lke(){}function Fke(){}function Bke(){}function _ke(){}function qke(){}function Qke(){}function Hke(){}function zke(){}function Kke(){}function Wke(){}function Xke(){}function Uke(){}function Gke(){}function Vke(){}function Yke(){}function Zke(){}function Jke(){}function e6e(){}function t6e(){}function n6e(){}function i6e(){}function r6e(){}function s6e(){}function o6e(){}function c6e(){}function u6e(){}function l6e(){}function f6e(){}function h6e(){}function a6e(){}function d6e(){}function g6e(){}function b6e(){}function p6e(){}function w6e(){}function RR(){}function LR(){}function FR(){}function m6e(){}function v6e(){}function y6e(){}function O6e(){}function k6e(){}function uY(){}function S6e(){}function x6e(){}function Bmt(){}function E6e(){}function C6e(){}function T6e(){}function A6e(){}function M6e(){}function j6e(){}function P6e(){}function q1(){}function D6e(){}function j2(){}function lY(){}function I6e(){}function N6e(){}function $6e(){}function R6e(){}function L6e(){}function F6e(){}function B6e(){}function _6e(){}function q6e(){}function Q6e(){}function H6e(){}function z6e(){}function K6e(){}function W6e(){}function X6e(){}function U6e(){}function G6e(){}function V6e(){}function Y6e(){}function Z6e(){}function J6e(){}function Le(){}function e8e(){}function t8e(){}function n8e(){}function i8e(){}function r8e(){}function s8e(){}function o8e(){}function c8e(){}function u8e(){}function l8e(){}function BR(){}function f8e(){}function h8e(){}function a8e(){}function d8e(){}function g8e(){}function fY(){}function MC(){}function jC(){}function b8e(){}function hY(){}function PC(){}function p8e(){}function w8e(){}function m8e(){}function v8e(){}function y8e(){}function O8e(){}function DC(){}function k8e(){}function S8e(){}function x8e(){}function IC(){}function E8e(){}function aY(){}function C8e(){}function _R(){}function dY(){}function T8e(){}function A8e(){}function M8e(){}function j8e(){}function _mt(){}function P8e(){}function D8e(){}function I8e(){}function N8e(){}function $8e(){}function R8e(){}function L8e(){}function F8e(){}function B8e(){}function _8e(){}function D3(){}function qR(){}function q8e(){}function Q8e(){}function H8e(){}function z8e(){}function K8e(){}function W8e(){}function X8e(){}function U8e(){}function G8e(){}function V8e(){}function Y8e(){}function Z8e(){}function J8e(){}function e9e(){}function t9e(){}function n9e(){}function i9e(){}function r9e(){}function s9e(){}function o9e(){}function c9e(){}function u9e(){}function l9e(){}function f9e(){}function h9e(){}function a9e(){}function d9e(){}function g9e(){}function b9e(){}function p9e(){}function w9e(){}function m9e(){}function v9e(){}function y9e(){}function O9e(){}function k9e(){}function S9e(){}function x9e(){}function E9e(){}function C9e(){}function T9e(){}function A9e(){}function M9e(){}function j9e(){}function P9e(){}function D9e(){}function I9e(){}function N9e(){}function $9e(){}function R9e(){}function L9e(){}function F9e(){}function B9e(){}function _9e(){}function q9e(){}function Q9e(){}function H9e(){}function z9e(){}function K9e(){}function W9e(){}function X9e(){}function U9e(){}function G9e(){}function V9e(){}function Y9e(){}function Z9e(){}function J9e(){}function eSe(){}function tSe(){}function nSe(){}function iSe(){}function rSe(){}function sSe(){}function oSe(){}function cSe(){}function uSe(){}function lSe(){}function fSe(){}function hSe(){}function aSe(){}function dSe(){}function gSe(){}function bSe(){}function pSe(){}function wSe(){}function mSe(){}function vSe(){}function ySe(){}function OSe(){}function kSe(){}function SSe(){}function xSe(){}function ESe(){}function CSe(){}function TSe(){}function ASe(){}function MSe(){}function jSe(){}function PSe(){}function DSe(){}function ISe(){}function gY(){}function NSe(){}function $Se(){}function QR(){sO()}function RSe(){N_()}function LSe(){Dk()}function FSe(){Aj()}function BSe(){doe()}function _Se(){sf()}function qSe(){xse()}function QSe(){v7()}function HSe(){F9()}function zSe(){L9()}function KSe(){fS()}function WSe(){UMe()}function XSe(){av()}function USe(){lT()}function GSe(){sBe()}function VSe(){mqe()}function YSe(){LBe()}function ZSe(){eLe()}function JSe(){Hy()}function e7e(){e1()}function t7e(){vqe()}function n7e(){XLe()}function i7e(){oue()}function r7e(){oKe()}function s7e(){tLe()}function o7e(){ke()}function c7e(){JRe()}function u7e(){yqe()}function l7e(){SQe()}function f7e(){iLe()}function h7e(){QBe()}function a7e(){GMe()}function d7e(){Uoe()}function g7e(){vp()}function b7e(){Xqe()}function p7e(){S7()}function w7e(){lQ()}function m7e(){pq()}function v7e(){Ug()}function y7e(){zie()}function O7e(){nLe()}function k7e(){gGe()}function S7e(){Koe()}function x7e(){tQ()}function E7e(){dM()}function C7e(){$j()}function bY(){Pn()}function T7e(){VM()}function A7e(){Zre()}function pY(){eP()}function Ul(){HIe()}function wY(){m_()}function M7e(){Dce()}function mY(e){yt(e)}function j7e(e){this.a=e}function NC(e){this.a=e}function P7e(e){this.a=e}function D7e(e){this.a=e}function I7e(e){this.a=e}function N7e(e){this.a=e}function $7e(e){this.a=e}function R7e(e){this.a=e}function vY(e){this.a=e}function yY(e){this.a=e}function L7e(e){this.a=e}function HR(e){this.a=e}function F7e(e){this.a=e}function zR(e){this.a=e}function B7e(e){this.a=e}function KR(e){this.a=e}function _7e(e){this.a=e}function WR(e){this.a=e}function q7e(e){this.a=e}function Q7e(e){this.a=e}function H7e(e){this.a=e}function OY(e){this.b=e}function z7e(e){this.c=e}function K7e(e){this.a=e}function W7e(e){this.a=e}function X7e(e){this.a=e}function U7e(e){this.a=e}function G7e(e){this.a=e}function V7e(e){this.a=e}function Y7e(e){this.a=e}function Z7e(e){this.a=e}function J7e(e){this.a=e}function exe(e){this.a=e}function txe(e){this.a=e}function nxe(e){this.a=e}function ixe(e){this.a=e}function kY(e){this.a=e}function SY(e){this.a=e}function $C(e){this.a=e}function O9(e){this.a=e}function Q1(){this.a=[]}function rxe(e,t){e.a=t}function qmt(e,t){e.a=t}function Qmt(e,t){e.b=t}function Hmt(e,t){e.b=t}function zmt(e,t){e.b=t}function xY(e,t){e.j=t}function Kmt(e,t){e.g=t}function Wmt(e,t){e.i=t}function Xmt(e,t){e.c=t}function Umt(e,t){e.d=t}function Gmt(e,t){e.d=t}function Vmt(e,t){e.c=t}function H1(e,t){e.k=t}function Ymt(e,t){e.c=t}function EY(e,t){e.c=t}function CY(e,t){e.a=t}function Zmt(e,t){e.a=t}function Jmt(e,t){e.f=t}function e2t(e,t){e.a=t}function t2t(e,t){e.b=t}function XR(e,t){e.d=t}function RC(e,t){e.i=t}function TY(e,t){e.o=t}function n2t(e,t){e.r=t}function i2t(e,t){e.a=t}function r2t(e,t){e.b=t}function sxe(e,t){e.e=t}function s2t(e,t){e.f=t}function AY(e,t){e.g=t}function o2t(e,t){e.e=t}function c2t(e,t){e.f=t}function u2t(e,t){e.f=t}function l2t(e,t){e.n=t}function f2t(e,t){e.a=t}function h2t(e,t){e.a=t}function a2t(e,t){e.c=t}function d2t(e,t){e.c=t}function g2t(e,t){e.d=t}function b2t(e,t){e.e=t}function p2t(e,t){e.g=t}function w2t(e,t){e.a=t}function m2t(e,t){e.c=t}function v2t(e,t){e.d=t}function y2t(e,t){e.e=t}function O2t(e,t){e.f=t}function k2t(e,t){e.j=t}function S2t(e,t){e.a=t}function x2t(e,t){e.b=t}function E2t(e,t){e.a=t}function oxe(e){e.b=e.a}function cxe(e){e.c=e.d.d}function J5(e){this.d=e}function z1(e){this.a=e}function I3(e){this.a=e}function MY(e){this.a=e}function na(e){this.a=e}function k9(e){this.a=e}function uxe(e){this.a=e}function jY(e){this.a=e}function S9(e){this.a=e}function PY(e){this.a=e}function DY(e){this.a=e}function IY(e){this.a=e}function _b(e){this.a=e}function x9(e){this.a=e}function E9(e){this.a=e}function NY(e){this.b=e}function N3(e){this.b=e}function $3(e){this.b=e}function UR(e){this.a=e}function lxe(e){this.a=e}function $Y(e){this.a=e}function GR(e){this.c=e}function $(e){this.c=e}function fxe(e){this.c=e}function RY(e){this.a=e}function LY(e){this.a=e}function FY(e){this.a=e}function BY(e){this.a=e}function Kn(e){this.a=e}function hxe(e){this.a=e}function _Y(e){this.a=e}function qY(e){this.a=e}function axe(e){this.a=e}function dxe(e){this.a=e}function eO(e){this.a=e}function gxe(e){this.a=e}function bxe(e){this.a=e}function pxe(e){this.a=e}function wxe(e){this.a=e}function mxe(e){this.a=e}function vxe(e){this.a=e}function yxe(e){this.a=e}function Oxe(e){this.a=e}function kxe(e){this.a=e}function Sxe(e){this.a=e}function xxe(e){this.a=e}function Exe(e){this.a=e}function Cxe(e){this.a=e}function Txe(e){this.a=e}function Axe(e){this.a=e}function Mxe(e){this.a=e}function jxe(e){this.a=e}function C9(e){this.a=e}function Pxe(e){this.a=e}function Dxe(e){this.a=e}function LC(e){this.a=e}function Ixe(e){this.a=e}function Nxe(e){this.a=e}function R3(e){this.a=e}function QY(e){this.a=e}function $xe(e){this.a=e}function Rxe(e){this.a=e}function Lxe(e){this.a=e}function Fxe(e){this.a=e}function Bxe(e){this.a=e}function HY(e){this.a=e}function zY(e){this.a=e}function KY(e){this.a=e}function FC(e){this.a=e}function BC(e){this.e=e}function L3(e){this.a=e}function _xe(e){this.a=e}function P2(e){this.a=e}function WY(e){this.a=e}function qxe(e){this.a=e}function Qxe(e){this.a=e}function Hxe(e){this.a=e}function zxe(e){this.a=e}function Kxe(e){this.a=e}function Wxe(e){this.a=e}function Xxe(e){this.a=e}function Uxe(e){this.a=e}function Gxe(e){this.a=e}function Vxe(e){this.a=e}function Yxe(e){this.a=e}function XY(e){this.a=e}function Zxe(e){this.a=e}function Jxe(e){this.a=e}function eEe(e){this.a=e}function tEe(e){this.a=e}function nEe(e){this.a=e}function iEe(e){this.a=e}function rEe(e){this.a=e}function sEe(e){this.a=e}function oEe(e){this.a=e}function cEe(e){this.a=e}function uEe(e){this.a=e}function lEe(e){this.a=e}function fEe(e){this.a=e}function hEe(e){this.a=e}function aEe(e){this.a=e}function dEe(e){this.a=e}function gEe(e){this.a=e}function bEe(e){this.a=e}function pEe(e){this.a=e}function wEe(e){this.a=e}function mEe(e){this.a=e}function vEe(e){this.a=e}function yEe(e){this.a=e}function OEe(e){this.a=e}function kEe(e){this.a=e}function SEe(e){this.a=e}function xEe(e){this.a=e}function EEe(e){this.a=e}function CEe(e){this.a=e}function TEe(e){this.a=e}function AEe(e){this.a=e}function MEe(e){this.a=e}function jEe(e){this.a=e}function PEe(e){this.a=e}function DEe(e){this.a=e}function IEe(e){this.a=e}function NEe(e){this.a=e}function $Ee(e){this.c=e}function REe(e){this.b=e}function LEe(e){this.a=e}function FEe(e){this.a=e}function BEe(e){this.a=e}function _Ee(e){this.a=e}function qEe(e){this.a=e}function QEe(e){this.a=e}function HEe(e){this.a=e}function zEe(e){this.a=e}function KEe(e){this.a=e}function WEe(e){this.a=e}function XEe(e){this.a=e}function UEe(e){this.a=e}function GEe(e){this.a=e}function VEe(e){this.a=e}function YEe(e){this.a=e}function ZEe(e){this.a=e}function JEe(e){this.a=e}function eCe(e){this.a=e}function tCe(e){this.a=e}function nCe(e){this.a=e}function iCe(e){this.a=e}function rCe(e){this.a=e}function sCe(e){this.a=e}function oCe(e){this.a=e}function Ad(e){this.a=e}function D2(e){this.a=e}function cCe(e){this.a=e}function uCe(e){this.a=e}function lCe(e){this.a=e}function fCe(e){this.a=e}function hCe(e){this.a=e}function aCe(e){this.a=e}function dCe(e){this.a=e}function gCe(e){this.a=e}function bCe(e){this.a=e}function pCe(e){this.a=e}function wCe(e){this.a=e}function mCe(e){this.a=e}function vCe(e){this.a=e}function yCe(e){this.a=e}function OCe(e){this.a=e}function kCe(e){this.a=e}function _C(e){this.a=e}function SCe(e){this.a=e}function xCe(e){this.a=e}function ECe(e){this.a=e}function CCe(e){this.a=e}function TCe(e){this.a=e}function ACe(e){this.a=e}function MCe(e){this.a=e}function jCe(e){this.a=e}function PCe(e){this.a=e}function DCe(e){this.a=e}function ICe(e){this.a=e}function NCe(e){this.a=e}function $Ce(e){this.a=e}function RCe(e){this.a=e}function LCe(e){this.a=e}function FCe(e){this.a=e}function BCe(e){this.a=e}function _Ce(e){this.a=e}function qCe(e){this.a=e}function QCe(e){this.a=e}function HCe(e){this.a=e}function zCe(e){this.a=e}function KCe(e){this.a=e}function WCe(e){this.a=e}function XCe(e){this.a=e}function UCe(e){this.a=e}function GCe(e){this.a=e}function VCe(e){this.a=e}function UY(e){this.a=e}function ci(e){this.b=e}function YCe(e){this.f=e}function GY(e){this.a=e}function ZCe(e){this.a=e}function JCe(e){this.a=e}function eTe(e){this.a=e}function tTe(e){this.a=e}function nTe(e){this.a=e}function iTe(e){this.a=e}function rTe(e){this.a=e}function sTe(e){this.a=e}function T9(e){this.a=e}function oTe(e){this.a=e}function cTe(e){this.b=e}function VY(e){this.c=e}function qC(e){this.e=e}function uTe(e){this.a=e}function QC(e){this.a=e}function HC(e){this.a=e}function VR(e){this.a=e}function lTe(e){this.a=e}function fTe(e){this.d=e}function YY(e){this.a=e}function ZY(e){this.a=e}function eg(e){this.e=e}function C2t(){this.a=0}function Mw(){HPe(this)}function de(){nF(this)}function Zt(){Cc(this)}function YR(){X$e(this)}function hTe(){}function tg(){this.c=Dwe}function T2t(e,t){t.Wb(e)}function aTe(e,t){e.b+=t}function dTe(e){e.b=new gL}function L(e){return e.e}function A2t(e){return e.a}function M2t(e){return e.a}function j2t(e){return e.a}function P2t(e){return e.a}function D2t(e){return e.a}function I2t(){return null}function N2t(){return null}function $2t(){FZ(),WHt()}function R2t(e){e.b.tf(e.e)}function tO(e,t){e.b=t-e.b}function nO(e,t){e.a=t-e.a}function gTe(e,t){t.ad(e.a)}function L2t(e,t){Ui(t,e)}function F2t(e,t,n){e.Od(n,t)}function A9(e,t){e.e=t,t.b=e}function JY(e){Jf(),this.a=e}function bTe(e){Jf(),this.a=e}function pTe(e){Jf(),this.a=e}function eZ(e){ip(),this.a=e}function wTe(e){gy(),MK.be(e)}function K1(){CDe.call(this)}function tZ(){CDe.call(this)}function nZ(){K1.call(this)}function ZR(){K1.call(this)}function mTe(){K1.call(this)}function M9(){K1.call(this)}function fc(){K1.call(this)}function iO(){K1.call(this)}function on(){K1.call(this)}function Au(){K1.call(this)}function vTe(){K1.call(this)}function Zs(){K1.call(this)}function yTe(){K1.call(this)}function OTe(){this.a=this}function zC(){this.Bb|=256}function kTe(){this.b=new xPe}function iZ(){iZ=X,new Zt}function rZ(){nZ.call(this)}function STe(e,t){e.length=t}function KC(e,t){ae(e.a,t)}function B2t(e,t){boe(e.c,t)}function _2t(e,t){Wi(e.b,t)}function q2t(e,t){kj(e.a,t)}function Q2t(e,t){H_(e.a,t)}function F3(e,t){_n(e.e,t)}function I2(e){Fj(e.c,e.b)}function H2t(e,t){e.kc().Nb(t)}function sZ(e){this.a=qTt(e)}function Zi(){this.a=new Zt}function xTe(){this.a=new Zt}function WC(){this.a=new de}function JR(){this.a=new de}function oZ(){this.a=new de}function Xu(){this.a=new EC}function W1(){this.a=new tBe}function cZ(){this.a=new YV}function uZ(){this.a=new _Me}function ETe(){this.a=new ALe}function lZ(){this.a=new zRe}function fZ(){this.a=new gIe}function CTe(){this.a=new de}function hZ(){this.a=new de}function TTe(){this.a=new de}function ATe(){this.a=new de}function MTe(){this.d=new de}function jTe(){this.a=new Zi}function PTe(){this.a=new Zt}function DTe(){this.b=new Zt}function ITe(){this.b=new de}function aZ(){this.e=new de}function NTe(){this.d=new de}function $Te(){this.a=new e7e}function RTe(){de.call(this)}function dZ(){WC.call(this)}function LTe(){tA.call(this)}function FTe(){hZ.call(this)}function eL(){rO.call(this)}function rO(){hTe.call(this)}function N2(){hTe.call(this)}function gZ(){N2.call(this)}function BTe(){ORe.call(this)}function _Te(){ORe.call(this)}function qTe(){OZ.call(this)}function QTe(){OZ.call(this)}function HTe(){OZ.call(this)}function zTe(){kZ.call(this)}function hc(){ai.call(this)}function bZ(){g8e.call(this)}function pZ(){g8e.call(this)}function KTe(){cAe.call(this)}function WTe(){cAe.call(this)}function XTe(){Zt.call(this)}function UTe(){Zt.call(this)}function GTe(){Zt.call(this)}function VTe(){Zi.call(this)}function tL(){bqe.call(this)}function YTe(){zC.call(this)}function nL(){WJ.call(this)}function iL(){WJ.call(this)}function wZ(){Zt.call(this)}function rL(){Zt.call(this)}function ZTe(){Zt.call(this)}function mZ(){IC.call(this)}function JTe(){IC.call(this)}function eAe(){mZ.call(this)}function tAe(){gY.call(this)}function nAe(e){__e.call(this,e)}function iAe(e){__e.call(this,e)}function vZ(e){vY.call(this,e)}function yZ(e){jMe.call(this,e)}function z2t(e){yZ.call(this,e)}function K2t(e){jMe.call(this,e)}function B3(){this.a=new ai}function OZ(){this.a=new Zi}function kZ(){this.a=new Zt}function rAe(){this.a=new de}function sAe(){this.j=new de}function SZ(){this.a=new b6e}function oAe(){this.a=new tMe}function cAe(){this.a=new x8e}function sL(){sL=X,SK=new EAe}function oL(){oL=X,kK=new xAe}function sO(){sO=X,OK=new C}function XC(){XC=X,CK=new xDe}function W2t(e){yZ.call(this,e)}function X2t(e){yZ.call(this,e)}function uAe(e){RB.call(this,e)}function lAe(e){RB.call(this,e)}function fAe(e){RIe.call(this,e)}function cL(e){dIt.call(this,e)}function ng(e){Hb.call(this,e)}function oO(e){sT.call(this,e)}function xZ(e){sT.call(this,e)}function hAe(e){sT.call(this,e)}function Is(e){VNe.call(this,e)}function aAe(e){Is.call(this,e)}function $2(){O9.call(this,{})}function UC(e){J3(),this.a=e}function cO(e){e.b=null,e.c=0}function U2t(e,t){e.e=t,dUe(e,t)}function G2t(e,t){e.a=t,JIt(e)}function uL(e,t,n){e.a[t.g]=n}function V2t(e,t,n){bPt(n,e,t)}function Y2t(e,t){k4t(t.i,e.n)}function dAe(e,t){SCt(e).td(t)}function Z2t(e,t){return e*e/t}function gAe(e,t){return e.g-t.g}function J2t(e){return new $C(e)}function evt(e){return new np(e)}function GC(e){Is.call(this,e)}function us(e){Is.call(this,e)}function bAe(e){Is.call(this,e)}function lL(e){VNe.call(this,e)}function fL(e){Qie(),this.a=e}function pAe(e){QIe(),this.a=e}function qb(e){_F(),this.f=e}function hL(e){_F(),this.f=e}function _3(e){Is.call(this,e)}function kt(e){Is.call(this,e)}function Es(e){Is.call(this,e)}function wAe(e){Is.call(this,e)}function R2(e){Is.call(this,e)}function Pe(e){return yt(e),e}function re(e){return yt(e),e}function j9(e){return yt(e),e}function EZ(e){return yt(e),e}function tvt(e){return yt(e),e}function uO(e){return e.b==e.c}function Qb(e){return!!e&&e.b}function nvt(e){return!!e&&e.k}function ivt(e){return!!e&&e.j}function Gc(e){yt(e),this.a=e}function CZ(e){return h0(e),e}function lO(e){Fte(e,e.length)}function La(e){Is.call(this,e)}function Uf(e){Is.call(this,e)}function aL(e){Is.call(this,e)}function jw(e){Is.call(this,e)}function fO(e){Is.call(this,e)}function un(e){Is.call(this,e)}function dL(e){fee.call(this,e,0)}function gL(){mne.call(this,12,3)}function TZ(){TZ=X,Ahe=new ut}function mAe(){mAe=X,The=new x}function VC(){VC=X,I6=new be}function vAe(){vAe=X,Vtt=new Me}function yAe(){throw L(new on)}function AZ(){throw L(new on)}function OAe(){throw L(new on)}function rvt(){throw L(new on)}function svt(){throw L(new on)}function ovt(){throw L(new on)}function bL(){this.a=ln(tn(qr))}function L2(e){Jf(),this.a=tn(e)}function kAe(e,t){e.Td(t),t.Sd(e)}function cvt(e,t){e.a.ec().Mc(t)}function uvt(e,t,n){e.c.lf(t,n)}function MZ(e){us.call(this,e)}function Gf(e){kt.call(this,e)}function Fa(){k9.call(this,"")}function hO(){k9.call(this,"")}function Md(){k9.call(this,"")}function Pw(){k9.call(this,"")}function jZ(e){us.call(this,e)}function q3(e){N3.call(this,e)}function pL(e){WT.call(this,e)}function SAe(e){q3.call(this,e)}function xAe(){zR.call(this,null)}function EAe(){zR.call(this,null)}function YC(){YC=X,gy()}function CAe(){CAe=X,ont=QPt()}function TAe(e){return e.a?e.b:0}function lvt(e){return e.a?e.b:0}function fvt(e,t){return e.a-t.a}function hvt(e,t){return e.a-t.a}function avt(e,t){return e.a-t.a}function ZC(e,t){return uie(e,t)}function B(e,t){return XRe(e,t)}function dvt(e,t){return t in e.a}function AAe(e,t){return e.f=t,e}function gvt(e,t){return e.b=t,e}function MAe(e,t){return e.c=t,e}function bvt(e,t){return e.g=t,e}function PZ(e,t){return e.a=t,e}function DZ(e,t){return e.f=t,e}function pvt(e,t){return e.k=t,e}function IZ(e,t){return e.a=t,e}function wvt(e,t){return e.e=t,e}function NZ(e,t){return e.e=t,e}function mvt(e,t){return e.f=t,e}function vvt(e,t){e.b=!0,e.d=t}function yvt(e,t){e.b=new ls(t)}function Ovt(e,t,n){t.td(e.a[n])}function kvt(e,t,n){t.we(e.a[n])}function Svt(e,t){return e.b-t.b}function xvt(e,t){return e.g-t.g}function Evt(e,t){return e.s-t.s}function Cvt(e,t){return e?0:t-1}function jAe(e,t){return e?0:t-1}function Tvt(e,t){return e?t-1:0}function Avt(e,t){return t.Yf(e)}function ig(e,t){return e.b=t,e}function JC(e,t){return e.a=t,e}function rg(e,t){return e.c=t,e}function sg(e,t){return e.d=t,e}function og(e,t){return e.e=t,e}function $Z(e,t){return e.f=t,e}function aO(e,t){return e.a=t,e}function Q3(e,t){return e.b=t,e}function H3(e,t){return e.c=t,e}function qe(e,t){return e.c=t,e}function lt(e,t){return e.b=t,e}function Qe(e,t){return e.d=t,e}function He(e,t){return e.e=t,e}function Mvt(e,t){return e.f=t,e}function ze(e,t){return e.g=t,e}function Ke(e,t){return e.a=t,e}function We(e,t){return e.i=t,e}function Xe(e,t){return e.j=t,e}function PAe(e,t){return e.k=t,e}function jvt(e,t){return e.j=t,e}function Pvt(e,t){e1(),$s(t,e)}function Dvt(e,t,n){Ckt(e.a,t,n)}function DAe(e){G$e.call(this,e)}function RZ(e){G$e.call(this,e)}function eT(e){SF.call(this,e)}function IAe(e){GTt.call(this,e)}function jd(e){Pg.call(this,e)}function NAe(e){hB.call(this,e)}function $Ae(e){hB.call(this,e)}function RAe(){qJ.call(this,"")}function Er(){this.a=0,this.b=0}function LAe(){this.b=0,this.a=0}function FAe(e,t){e.b=0,dp(e,t)}function Ivt(e,t){e.c=t,e.b=!0}function BAe(e,t){return e.c._b(t)}function Gl(e){return e.e&&e.e()}function wL(e){return e?e.d:null}function _Ae(e,t){return aHe(e.b,t)}function Nvt(e){return e?e.g:null}function $vt(e){return e?e.i:null}function Pd(e){return sa(e),e.o}function cg(){cg=X,rht=Jjt()}function qAe(){qAe=X,cr=hDt()}function z3(){z3=X,Pwe=tPt()}function QAe(){QAe=X,Qht=ePt()}function LZ(){LZ=X,io=VIt()}function FZ(){FZ=X,C1=Py()}function HAe(){throw L(new on)}function zAe(){throw L(new on)}function KAe(){throw L(new on)}function WAe(){throw L(new on)}function XAe(){throw L(new on)}function UAe(){throw L(new on)}function tT(e){this.a=new F2(e)}function BZ(e){HVe(),szt(this,e)}function Dd(e){this.a=new zF(e)}function Dw(e,t){for(;e.ye(t););}function _Z(e,t){for(;e.sd(t););}function Iw(e,t){return e.a+=t,e}function mL(e,t){return e.a+=t,e}function Ba(e,t){return e.a+=t,e}function ug(e,t){return e.a+=t,e}function dO(e){return Qd(e),e.a}function nT(e){return e.b!=e.d.c}function GAe(e){return e.l|e.m<<22}function qZ(e,t){return e.d[t.p]}function VAe(e,t){return BLt(e,t)}function QZ(e,t,n){e.splice(t,n)}function YAe(e){e.c?NUe(e):$Ue(e)}function iT(e){this.a=0,this.b=e}function ZAe(){this.a=new I7(zge)}function JAe(){this.b=new I7(jge)}function eMe(){this.b=new I7(UX)}function tMe(){this.b=new I7(UX)}function nMe(){throw L(new on)}function iMe(){throw L(new on)}function rMe(){throw L(new on)}function sMe(){throw L(new on)}function oMe(){throw L(new on)}function cMe(){throw L(new on)}function uMe(){throw L(new on)}function lMe(){throw L(new on)}function fMe(){throw L(new on)}function hMe(){throw L(new on)}function Rvt(){throw L(new Zs)}function Lvt(){throw L(new Zs)}function P9(e){this.a=new aMe(e)}function aMe(e){Uxt(this,e,UPt())}function D9(e){return!e||I$e(e)}function I9(e){return Hf[e]!=-1}function Fvt(){OD!=0&&(OD=0),kD=-1}function dMe(){yK==null&&(yK=[])}function Bvt(e,t){Vq(ie(e.a),t)}function _vt(e,t){Vq(ie(e.a),t)}function N9(e,t){Qw.call(this,e,t)}function K3(e,t){N9.call(this,e,t)}function HZ(e,t){this.b=e,this.c=t}function gMe(e,t){this.b=e,this.a=t}function bMe(e,t){this.a=e,this.b=t}function pMe(e,t){this.a=e,this.b=t}function wMe(e,t){this.a=e,this.b=t}function mMe(e,t){this.a=e,this.b=t}function vMe(e,t){this.a=e,this.b=t}function yMe(e,t){this.a=e,this.b=t}function OMe(e,t){this.a=e,this.b=t}function kMe(e,t){this.a=e,this.b=t}function SMe(e,t){this.b=e,this.a=t}function xMe(e,t){this.b=e,this.a=t}function EMe(e,t){this.b=e,this.a=t}function CMe(e,t){this.b=e,this.a=t}function bn(e,t){this.f=e,this.g=t}function W3(e,t){this.e=e,this.d=t}function lg(e,t){this.g=e,this.i=t}function vL(e,t){this.a=e,this.b=t}function TMe(e,t){this.a=e,this.f=t}function AMe(e,t){this.b=e,this.c=t}function qvt(e,t){this.a=e,this.b=t}function MMe(e,t){this.a=e,this.b=t}function yL(e,t){this.a=e,this.b=t}function jMe(e){JJ(e.dc()),this.c=e}function rT(e){this.b=c(tn(e),83)}function PMe(e){this.a=c(tn(e),83)}function Hb(e){this.a=c(tn(e),15)}function DMe(e){this.a=c(tn(e),15)}function sT(e){this.b=c(tn(e),47)}function oT(){this.q=new b.Date}function Th(){Th=X,Hhe=new nt}function X3(){X3=X,Q4=new Ze}function gO(e){return e.f.c+e.g.c}function $9(e,t){return e.b.Hc(t)}function IMe(e,t){return e.b.Ic(t)}function NMe(e,t){return e.b.Qc(t)}function $Me(e,t){return e.b.Hc(t)}function RMe(e,t){return e.c.uc(t)}function ia(e,t){return e.a._b(t)}function LMe(e,t){return qn(e.c,t)}function FMe(e,t){return Jc(e.b,t)}function BMe(e,t){return e>t&&t<n6}function Qvt(e,t){return e.Gc(t),e}function Hvt(e,t){return Br(e,t),e}function zvt(e){return A$e(),e?Gtt:Utt}function F2(e){xQe.call(this,e,0)}function _Me(){zF.call(this,null)}function zZ(){WB.call(this,null)}function B2(e){this.c=e,v_e(this)}function ai(){YPe(this),Vu(this)}function Ci(e,t){Qd(e),e.a.Nb(t)}function qMe(e,t){return e.Gc(t),e}function Kvt(e,t){return e.a.f=t,e}function QMe(e,t){return e.a.d=t,e}function HMe(e,t){return e.a.g=t,e}function zMe(e,t){return e.a.j=t,e}function kl(e,t){return e.a.a=t,e}function Sl(e,t){return e.a.d=t,e}function xl(e,t){return e.a.e=t,e}function El(e,t){return e.a.g=t,e}function R9(e,t){return e.a.f=t,e}function Wvt(e){return e.b=!1,e}function U3(){U3=X,tae=new EPe}function cT(){cT=X,unt=new CPe}function G3(){G3=X,cae=new Mo}function KMe(){KMe=X,urt=new bye}function uT(){uT=X,KK=new LDe}function X1(){X1=X,H4=new bf}function bO(){bO=X,frt=new pye}function WMe(){WMe=X,mnt=new J0}function KZ(){KZ=X,Yit=new Z3e}function L9(){L9=X,drt=new Er}function XMe(){XMe=X,Zit=new sye}function WZ(){WZ=X,Jit=new QNe}function XZ(){XZ=X,rde=new iye}function F9(){F9=X,grt=new Hye}function UMe(){UMe=X,mrt=new T4e}function pO(){pO=X,xrt=new uOe}function lT(){lT=X,Rm=new DOe}function GMe(){GMe=X,Wut=new Ji}function fT(){fT=X,GX=new YMe}function hT(){hT=X,VX=new YDe}function wO(){wO=X,sE=new q$e}function aT(){aT=X,gct=new c8e}function VMe(){wqe(),this.c=new gL}function YMe(){bn.call(this,BZe,0)}function fg(e,t){p0(e.c.b,t.c,t)}function mO(e,t){p0(e.c.c,t.b,t)}function Xvt(e,t,n){fs(e.d,t.f,n)}function Uvt(e,t,n,i){xMt(e,i,t,n)}function Gvt(e,t,n,i){WRt(i,e,t,n)}function Vvt(e,t,n,i){lHt(i,e,t,n)}function dT(e,t){return e.a=t.g,e}function ZMe(e,t){return Ijt(e.a,t)}function Yvt(e){return e.b?e.b:e.a}function Zvt(e){return(e.c+e.a)/2}function zb(){zb=X,nht=new d8e}function JMe(){JMe=X,fht=new w8e}function eje(){eje=X,Sht=new UTe}function tje(){tje=X,xht=new GTe}function Id(){Id=X,bl=new wZ}function UZ(){UZ=X,jwe=new ZTe}function vO(){vO=X,NU=new iDe}function _a(){_a=X,PE=new rDe}function OL(){OL=X,Fht=new D9e}function Kr(){Kr=X,_ht=new I9e}function gT(){gT=X,RN=new Zt}function GZ(){GZ=X,qwe=new de}function Nd(){Nd=X,j1=new $Se}function Jvt(e){b.clearTimeout(e)}function VZ(e){this.a=c(tn(e),224)}function bT(e){return c(e,42).cd()}function B9(e){return e.b<e.d.gc()}function nje(e,t){return LF(e.a,t)}function ije(e,t){return oo(e,t)>0}function kL(e,t){return oo(e,t)<0}function yO(e,t){return e.a.get(t)}function e3t(e,t){return t.split(e)}function rje(e,t){return Jc(e.e,t)}function YZ(e){return yt(e),!1}function pT(e){dt.call(this,e,21)}function t3t(e,t){$Re.call(this,e,t)}function wT(e,t){bn.call(this,e,t)}function SL(e,t){bn.call(this,e,t)}function ZZ(e){iB(),RIe.call(this,e)}function JZ(e,t){BNe(e,e.length,t)}function _9(e,t){g$e(e,e.length,t)}function n3t(e,t,n){t.ud(e.a.Ge(n))}function i3t(e,t,n){t.we(e.a.Fe(n))}function r3t(e,t,n){t.td(e.a.Kb(n))}function s3t(e,t,n){e.Mb(n)&&t.td(n)}function OO(e,t,n){e.splice(t,0,n)}function o3t(e,t){return dc(e.e,t)}function mT(e,t){this.d=e,this.e=t}function sje(e,t){this.b=e,this.a=t}function oje(e,t){this.b=e,this.a=t}function eJ(e,t){this.b=e,this.a=t}function cje(e,t){this.a=e,this.b=t}function uje(e,t){this.a=e,this.b=t}function lje(e,t){this.a=e,this.b=t}function fje(e,t){this.a=e,this.b=t}function _2(e,t){this.a=e,this.b=t}function tJ(e,t){this.b=e,this.a=t}function nJ(e,t){this.b=e,this.a=t}function vT(e,t){bn.call(this,e,t)}function yT(e,t){bn.call(this,e,t)}function iJ(e,t){bn.call(this,e,t)}function rJ(e,t){bn.call(this,e,t)}function Nw(e,t){bn.call(this,e,t)}function xL(e,t){bn.call(this,e,t)}function EL(e,t){bn.call(this,e,t)}function CL(e,t){bn.call(this,e,t)}function OT(e,t){bn.call(this,e,t)}function sJ(e,t){bn.call(this,e,t)}function TL(e,t){bn.call(this,e,t)}function q9(e,t){bn.call(this,e,t)}function kT(e,t){bn.call(this,e,t)}function AL(e,t){bn.call(this,e,t)}function kO(e,t){bn.call(this,e,t)}function oJ(e,t){bn.call(this,e,t)}function Ii(e,t){bn.call(this,e,t)}function ST(e,t){bn.call(this,e,t)}function hje(e,t){this.a=e,this.b=t}function aje(e,t){this.a=e,this.b=t}function dje(e,t){this.a=e,this.b=t}function gje(e,t){this.a=e,this.b=t}function bje(e,t){this.a=e,this.b=t}function pje(e,t){this.a=e,this.b=t}function wje(e,t){this.a=e,this.b=t}function mje(e,t){this.a=e,this.b=t}function vje(e,t){this.a=e,this.b=t}function cJ(e,t){this.b=e,this.a=t}function yje(e,t){this.b=e,this.a=t}function Oje(e,t){this.b=e,this.a=t}function kje(e,t){this.b=e,this.a=t}function V3(e,t){this.c=e,this.d=t}function Sje(e,t){this.e=e,this.d=t}function xje(e,t){this.a=e,this.b=t}function Eje(e,t){this.b=t,this.c=e}function xT(e,t){bn.call(this,e,t)}function Q9(e,t){bn.call(this,e,t)}function ML(e,t){bn.call(this,e,t)}function SO(e,t){bn.call(this,e,t)}function uJ(e,t){bn.call(this,e,t)}function jL(e,t){bn.call(this,e,t)}function PL(e,t){bn.call(this,e,t)}function H9(e,t){bn.call(this,e,t)}function lJ(e,t){bn.call(this,e,t)}function DL(e,t){bn.call(this,e,t)}function xO(e,t){bn.call(this,e,t)}function fJ(e,t){bn.call(this,e,t)}function EO(e,t){bn.call(this,e,t)}function CO(e,t){bn.call(this,e,t)}function Kb(e,t){bn.call(this,e,t)}function IL(e,t){bn.call(this,e,t)}function NL(e,t){bn.call(this,e,t)}function hJ(e,t){bn.call(this,e,t)}function TO(e,t){bn.call(this,e,t)}function $L(e,t){bn.call(this,e,t)}function ET(e,t){bn.call(this,e,t)}function z9(e,t){bn.call(this,e,t)}function K9(e,t){bn.call(this,e,t)}function q2(e,t){bn.call(this,e,t)}function RL(e,t){bn.call(this,e,t)}function aJ(e,t){bn.call(this,e,t)}function LL(e,t){bn.call(this,e,t)}function FL(e,t){bn.call(this,e,t)}function dJ(e,t){bn.call(this,e,t)}function BL(e,t){bn.call(this,e,t)}function _L(e,t){bn.call(this,e,t)}function qL(e,t){bn.call(this,e,t)}function QL(e,t){bn.call(this,e,t)}function gJ(e,t){bn.call(this,e,t)}function Cje(e,t){this.b=e,this.a=t}function Tje(e,t){this.a=e,this.b=t}function Aje(e,t){this.a=e,this.b=t}function Mje(e,t){this.a=e,this.b=t}function jje(e,t){this.a=e,this.b=t}function bJ(e,t){bn.call(this,e,t)}function pJ(e,t){bn.call(this,e,t)}function Pje(e,t){this.b=e,this.d=t}function wJ(e,t){bn.call(this,e,t)}function mJ(e,t){bn.call(this,e,t)}function Dje(e,t){this.a=e,this.b=t}function Ije(e,t){this.a=e,this.b=t}function CT(e,t){bn.call(this,e,t)}function AO(e,t){bn.call(this,e,t)}function vJ(e,t){bn.call(this,e,t)}function yJ(e,t){bn.call(this,e,t)}function OJ(e,t){bn.call(this,e,t)}function HL(e,t){bn.call(this,e,t)}function kJ(e,t){bn.call(this,e,t)}function zL(e,t){bn.call(this,e,t)}function TT(e,t){bn.call(this,e,t)}function KL(e,t){bn.call(this,e,t)}function WL(e,t){bn.call(this,e,t)}function W9(e,t){bn.call(this,e,t)}function XL(e,t){bn.call(this,e,t)}function SJ(e,t){bn.call(this,e,t)}function X9(e,t){bn.call(this,e,t)}function xJ(e,t){bn.call(this,e,t)}function c3t(e,t){return dc(e.c,t)}function u3t(e,t){return dc(t.b,e)}function l3t(e,t){return-e.b.Je(t)}function EJ(e,t){return dc(e.g,t)}function U9(e,t){bn.call(this,e,t)}function Q2(e,t){bn.call(this,e,t)}function Nje(e,t){this.a=e,this.b=t}function $je(e,t){this.a=e,this.b=t}function De(e,t){this.a=e,this.b=t}function MO(e,t){bn.call(this,e,t)}function jO(e,t){bn.call(this,e,t)}function G9(e,t){bn.call(this,e,t)}function UL(e,t){bn.call(this,e,t)}function AT(e,t){bn.call(this,e,t)}function PO(e,t){bn.call(this,e,t)}function GL(e,t){bn.call(this,e,t)}function MT(e,t){bn.call(this,e,t)}function $w(e,t){bn.call(this,e,t)}function V9(e,t){bn.call(this,e,t)}function DO(e,t){bn.call(this,e,t)}function IO(e,t){bn.call(this,e,t)}function Y9(e,t){bn.call(this,e,t)}function jT(e,t){bn.call(this,e,t)}function Rw(e,t){bn.call(this,e,t)}function PT(e,t){bn.call(this,e,t)}function Rje(e,t){this.a=e,this.b=t}function Lje(e,t){this.a=e,this.b=t}function Fje(e,t){this.a=e,this.b=t}function Bje(e,t){this.a=e,this.b=t}function _je(e,t){this.a=e,this.b=t}function qje(e,t){this.a=e,this.b=t}function wr(e,t){this.a=e,this.b=t}function DT(e,t){bn.call(this,e,t)}function Qje(e,t){this.a=e,this.b=t}function Hje(e,t){this.a=e,this.b=t}function zje(e,t){this.a=e,this.b=t}function Kje(e,t){this.a=e,this.b=t}function Wje(e,t){this.a=e,this.b=t}function Xje(e,t){this.a=e,this.b=t}function Uje(e,t){this.b=e,this.a=t}function Gje(e,t){this.b=e,this.a=t}function Vje(e,t){this.b=e,this.a=t}function Yje(e,t){this.b=e,this.a=t}function Zje(e,t){this.a=e,this.b=t}function Jje(e,t){this.a=e,this.b=t}function f3t(e,t){_Rt(e.a,c(t,56))}function ePe(e,t){Z7t(e.a,c(t,11))}function h3t(e,t){return ry(),t!=e}function tPe(){return CAe(),new ont}function nPe(){kB(),this.b=new Zi}function iPe(){Kj(),this.a=new Zi}function rPe(){wne(),Cte.call(this)}function H2(e,t){bn.call(this,e,t)}function sPe(e,t){this.a=e,this.b=t}function oPe(e,t){this.a=e,this.b=t}function IT(e,t){this.a=e,this.b=t}function cPe(e,t){this.a=e,this.b=t}function uPe(e,t){this.a=e,this.b=t}function lPe(e,t){this.a=e,this.b=t}function fPe(e,t){this.d=e,this.b=t}function CJ(e,t){this.d=e,this.e=t}function hPe(e,t){this.f=e,this.c=t}function Z9(e,t){this.b=e,this.c=t}function TJ(e,t){this.i=e,this.g=t}function aPe(e,t){this.e=e,this.a=t}function dPe(e,t){this.a=e,this.b=t}function AJ(e,t){e.i=null,$M(e,t)}function a3t(e,t){e&&Qn(AE,e,t)}function gPe(e,t){return eq(e.a,t)}function NT(e){return h7(e.c,e.b)}function Hs(e){return e?e.dd():null}function ne(e){return e??null}function Wb(e){return typeof e===Ev}function Xb(e){return typeof e===cue}function ur(e){return typeof e===_Q}function $d(e,t){return e.Hd().Xb(t)}function $T(e,t){return AEt(e.Kc(),t)}function hg(e,t){return oo(e,t)==0}function d3t(e,t){return oo(e,t)>=0}function NO(e,t){return oo(e,t)!=0}function g3t(e){return""+(yt(e),e)}function J9(e,t){return e.substr(t)}function bPe(e){return qc(e),e.d.gc()}function VL(e){return f$t(e,e.c),e}function RT(e){return XO(e==null),e}function $O(e,t){return e.a+=""+t,e}function is(e,t){return e.a+=""+t,e}function RO(e,t){return e.a+=""+t,e}function Js(e,t){return e.a+=""+t,e}function pn(e,t){return e.a+=""+t,e}function MJ(e,t){return e.a+=""+t,e}function pPe(e,t){ji(e,t,e.a,e.a.a)}function U1(e,t){ji(e,t,e.c.b,e.c)}function b3t(e,t,n){EKe(t,Hq(e,n))}function p3t(e,t,n){EKe(t,Hq(e,n))}function w3t(e,t){lxt(new Ft(e),t)}function wPe(e,t){e.q.setTime(Ag(t))}function mPe(e,t){$te.call(this,e,t)}function vPe(e,t){$te.call(this,e,t)}function YL(e,t){$te.call(this,e,t)}function yPe(e){Cc(this),vk(this,e)}function jJ(e){return gt(e,0),null}function Vl(e){return e.a=0,e.b=0,e}function OPe(e,t){return e.a=t.g+1,e}function m3t(e,t){return e.j[t.p]==2}function PJ(e){return e6t(c(e,79))}function kPe(){kPe=X,eit=mn(oq())}function SPe(){SPe=X,wrt=mn(sUe())}function xPe(){this.b=new F2(fp(12))}function EPe(){this.b=0,this.a=!1}function CPe(){this.b=0,this.a=!1}function LO(e){this.a=e,QR.call(this)}function TPe(e){this.a=e,QR.call(this)}function ot(e,t){Ki.call(this,e,t)}function ZL(e,t){Zb.call(this,e,t)}function Lw(e,t){TJ.call(this,e,t)}function JL(e,t){Ry.call(this,e,t)}function APe(e,t){eS.call(this,e,t)}function Cn(e,t){gT(),Qn(RN,e,t)}function eF(e,t){return uu(e.a,0,t)}function MPe(e,t){return e.a.a.a.cc(t)}function jPe(e,t){return ne(e)===ne(t)}function v3t(e,t){return qi(e.a,t.a)}function y3t(e,t){return Uo(e.a,t.a)}function O3t(e,t){return h$e(e.a,t.a)}function Vf(e,t){return e.indexOf(t)}function ag(e,t){return e==t?0:e?1:-1}function LT(e){return e<10?"0"+e:""+e}function k3t(e){return tn(e),new LO(e)}function PPe(e){return Bo(e.l,e.m,e.h)}function Y3(e){return Di((yt(e),e))}function S3t(e){return Di((yt(e),e))}function DPe(e,t){return Uo(e.g,t.g)}function Cs(e){return typeof e===cue}function x3t(e){return e==lb||e==Kp}function E3t(e){return e==lb||e==zp}function DJ(e){return Ts(e.b.b,e,0)}function IPe(e){this.a=tPe(),this.b=e}function NPe(e){this.a=tPe(),this.b=e}function C3t(e,t){return ae(e.a,t),t}function T3t(e,t){return ae(e.c,t),e}function $Pe(e,t){return gu(e.a,t),e}function A3t(e,t){return Tl(),t.a+=e}function M3t(e,t){return Tl(),t.a+=e}function j3t(e,t){return Tl(),t.c+=e}function IJ(e,t){ky(e,0,e.length,t)}function ra(){_Y.call(this,new i0)}function RPe(){pA.call(this,0,0,0,0)}function z2(){Pu.call(this,0,0,0,0)}function ls(e){this.a=e.a,this.b=e.b}function Rd(e){return e==ul||e==Bl}function Z3(e){return e==Aa||e==Ta}function LPe(e){return e==Gm||e==Um}function Fw(e){return e!=_f&&e!=k1}function Vc(e){return e.Lg()&&e.Mg()}function FPe(e){return DA(c(e,118))}function FT(e){return gu(new Ji,e)}function BPe(e,t){return new Ry(t,e)}function P3t(e,t){return new Ry(t,e)}function NJ(e,t,n){TM(e,t),AM(e,n)}function BT(e,t,n){Ng(e,t),Ig(e,n)}function pf(e,t,n){tc(e,t),nc(e,n)}function _T(e,t,n){Cy(e,t),Ay(e,n)}function qT(e,t,n){Ty(e,t),My(e,n)}function tF(e,t){Qy(e,t),jy(e,e.D)}function $J(e){hPe.call(this,e,!0)}function _Pe(e,t,n){xee.call(this,e,t,n)}function Ld(e){t1(),DEt.call(this,e)}function qPe(){wT.call(this,"Head",1)}function QPe(){wT.call(this,"Tail",3)}function nF(e){e.c=Y(It,Ce,1,0,5,1)}function HPe(e){e.a=Y(It,Ce,1,8,5,1)}function zPe(e){ec(e.xf(),new Dxe(e))}function Bw(e){return e!=null?oi(e):0}function D3t(e,t){return hp(t,vf(e))}function I3t(e,t){return hp(t,vf(e))}function N3t(e,t){return e[e.length]=t}function $3t(e,t){return e[e.length]=t}function RJ(e){return NOt(e.b.Kc(),e.a)}function R3t(e,t){return NM(tB(e.d),t)}function L3t(e,t){return NM(tB(e.g),t)}function F3t(e,t){return NM(tB(e.j),t)}function Wr(e,t){Ki.call(this,e.b,t)}function dg(e){pA.call(this,e,e,e,e)}function LJ(e){return e.b&&SQ(e),e.a}function FJ(e){return e.b&&SQ(e),e.c}function B3t(e,t){$f||(e.b=t)}function iF(e,t,n){return bi(e,t,n),n}function KPe(e,t,n){bi(e.c[t.g],t.g,n)}function _3t(e,t,n){c(e.c,69).Xh(t,n)}function q3t(e,t,n){pf(n,n.i+e,n.j+t)}function Q3t(e,t){rn(ao(e.a),sLe(t))}function H3t(e,t){rn(Bc(e.a),oLe(t))}function FO(e){Rn(),eg.call(this,e)}function z3t(e){return e==null?0:oi(e)}function WPe(){WPe=X,TX=new Mk(kU)}function cn(){cn=X,new XPe,new de}function XPe(){new Zt,new Zt,new Zt}function BJ(){BJ=X,iZ(),Mhe=new Zt}function wf(){wf=X,b.Math.log(2)}function Mu(){Mu=X,Yh=(JMe(),fht)}function K3t(){throw L(new La($tt))}function W3t(){throw L(new La($tt))}function X3t(){throw L(new La(Rtt))}function U3t(){throw L(new La(Rtt))}function UPe(e){this.a=e,ite.call(this,e)}function rF(e){this.a=e,rT.call(this,e)}function sF(e){this.a=e,rT.call(this,e)}function ir(e,t){RF(e.c,e.c.length,t)}function Ns(e){return e.a<e.c.c.length}function _J(e){return e.a<e.c.a.length}function GPe(e,t){return e.a?e.b:t.De()}function Uo(e,t){return e<t?-1:e>t?1:0}function VPe(e,t){return oo(e,t)>0?e:t}function Bo(e,t,n){return{l:e,m:t,h:n}}function G3t(e,t){e.a!=null&&ePe(t,e.a)}function YPe(e){e.a=new Nt,e.c=new Nt}function QT(e){this.b=e,this.a=new de}function ZPe(e){this.b=new IR,this.a=e}function qJ(e){Iee.call(this),this.a=e}function JPe(){wT.call(this,"Range",2)}function eDe(){$se(),this.a=new I7(ide)}function V3t(e,t){tn(t),zw(e).Jc(new te)}function Y3t(e,t){return lu(),t.n.b+=e}function Z3t(e,t,n){return Qn(e.g,n,t)}function J3t(e,t,n){return Qn(e.k,n,t)}function eyt(e,t){return Qn(e.a,t.a,t)}function _w(e,t,n){return tse(t,n,e.c)}function QJ(e){return new De(e.c,e.d)}function tyt(e){return new De(e.c,e.d)}function zs(e){return new De(e.a,e.b)}function tDe(e,t){return xQt(e.a,t,null)}function nyt(e){jr(e,null),dr(e,null)}function nDe(e){xB(e,null),EB(e,null)}function iDe(){eS.call(this,null,null)}function rDe(){VT.call(this,null,null)}function HJ(e){this.a=e,Zt.call(this)}function iyt(e){this.b=(it(),new GR(e))}function HT(e){e.j=Y(Qhe,ue,310,0,0,1)}function ryt(e,t,n){e.c.Vc(t,c(n,133))}function syt(e,t,n){e.c.ji(t,c(n,133))}function sDe(e,t){Ut(e),e.Gc(c(t,15))}function BO(e,t){return _qt(e.c,e.b,t)}function oyt(e,t){return new TDe(e.Kc(),t)}function oF(e,t){return sCt(e.Kc(),t)!=-1}function zJ(e,t){return e.a.Bc(t)!=null}function zT(e){return e.Ob()?e.Pb():null}function oDe(e){return ih(e,0,e.length)}function z(e,t){return e!=null&&fq(e,t)}function cyt(e,t){e.q.setHours(t),Uk(e,t)}function cDe(e,t){e.c&&(gte(t),IRe(t))}function uyt(e,t,n){c(e.Kb(n),164).Nb(t)}function lyt(e,t,n){return wQt(e,t,n),n}function uDe(e,t,n){e.a=t^1502,e.b=n^vH}function cF(e,t,n){return e.a[t.g][n.g]}function mf(e,t){return e.a[t.c.p][t.p]}function fyt(e,t){return e.e[t.c.p][t.p]}function hyt(e,t){return e.c[t.c.p][t.p]}function ayt(e,t){return e.j[t.p]=ORt(t)}function dyt(e,t){return Xne(e.f,t.tg())}function gyt(e,t){return Xne(e.b,t.tg())}function byt(e,t){return e.a<zee(t)?-1:1}function pyt(e,t,n){return n?t!=0:t!=e-1}function wyt(e,t,n){return e.a=t,e.b=n,e}function Yf(e,t){return e.a*=t,e.b*=t,e}function _O(e,t,n){return bi(e.g,t,n),n}function myt(e,t,n,i){bi(e.a[t.g],n.g,i)}function vyt(e,t){Gb(t,e.a.a.a,e.a.a.b)}function lDe(e){e.a=c(mt(e.b.a,4),126)}function fDe(e){e.a=c(mt(e.b.a,4),126)}function yyt(e){yS(e,cet),iQ(e,OHt(e))}function J3(){J3=X,TD=new UC(null)}function KJ(){KJ=X,KJ(),lnt=new Fo}function WJ(){this.Bb|=256,this.Bb|=512}function Ft(e){this.i=e,this.f=this.i.j}function Bi(e,t,n){dS.call(this,e,t,n)}function KT(e,t,n){Bi.call(this,e,t,n)}function ac(e,t,n){Bi.call(this,e,t,n)}function hDe(e,t,n){KT.call(this,e,t,n)}function XJ(e,t,n){dS.call(this,e,t,n)}function qw(e,t,n){dS.call(this,e,t,n)}function UJ(e,t,n){cA.call(this,e,t,n)}function aDe(e,t,n){cA.call(this,e,t,n)}function dDe(e,t,n){UJ.call(this,e,t,n)}function gDe(e,t,n){XJ.call(this,e,t,n)}function Qw(e,t){this.a=e,rT.call(this,t)}function bDe(e,t){this.a=e,dL.call(this,t)}function pDe(e,t){this.a=e,dL.call(this,t)}function wDe(e,t){this.a=e,dL.call(this,t)}function GJ(e){this.a=e,z7e.call(this,e.d)}function Fd(e){this.c=e,this.a=this.c.a}function VJ(e,t){this.a=t,dL.call(this,e)}function mDe(e,t){this.a=t,RB.call(this,e)}function vDe(e,t){this.a=e,RB.call(this,t)}function Oyt(e,t){return Ite(qF(e.c)).Xb(t)}function YJ(e,t){return RTt(e,new Md,t).a}function qt(e,t){return tn(t),new yDe(e,t)}function yDe(e,t){this.a=t,sT.call(this,e)}function ZJ(e){this.b=e,this.a=this.b.a.e}function ODe(e){e.b.Qb(),--e.d.f.d,mA(e.d)}function kDe(e){zR.call(this,c(tn(e),35))}function SDe(e){zR.call(this,c(tn(e),35))}function xDe(){bn.call(this,"INSTANCE",0)}function JJ(e){if(!e)throw L(new M9)}function eee(e){if(!e)throw L(new fc)}function tee(e){if(!e)throw L(new Zs)}function EDe(){EDe=X,OL(),Bht=new M7e}function St(){St=X,D0=!1,B4=!0}function Uu(e){k9.call(this,(yt(e),e))}function cu(e){k9.call(this,(yt(e),e))}function WT(e){N3.call(this,e),this.a=e}function nee(e){$3.call(this,e),this.a=e}function iee(e){q3.call(this,e),this.a=e}function CDe(){HT(this),RA(this),this._d()}function TDe(e,t){this.a=t,sT.call(this,e)}function ADe(e,t){return new kWe(e.a,e.b,t)}function XT(e,t){return e.lastIndexOf(t)}function ree(e,t,n){return e.indexOf(t,n)}function qO(e){return e==null?sc:Ms(e)}function kyt(e){return e==null?null:e.name}function see(e){return e.a!=null?e.a:null}function Syt(e){return nT(e.a)?fLe(e):null}function uF(e,t){return sk(e.a,t)!=null}function dc(e,t){return!!t&&e.b[t.g]==t}function gg(e){return e.$H||(e.$H=++Rzt)}function xyt(e){return e.l+e.m*Av+e.h*k0}function MDe(e,t){return ae(t.a,e.a),e.a}function jDe(e,t){return ae(t.b,e.a),e.a}function bg(e,t){return ae(t.a,e.a),e.a}function pg(e){return $t(e.a!=null),e.a}function lF(e){_Y.call(this,new tie(e))}function oee(e,t){cse.call(this,e,t,null)}function QO(e){this.a=e,NY.call(this,e)}function UT(){UT=X,DD=new Ki(cZe,0)}function GT(e,t){return++e.b,ae(e.a,t)}function cee(e,t){return++e.b,Zo(e.a,t)}function Eyt(e,t){return qi(e.n.a,t.n.a)}function Cyt(e,t){return qi(e.c.d,t.c.d)}function Tyt(e,t){return qi(e.c.c,t.c.c)}function Go(e,t){return c(zn(e.b,t),15)}function Ayt(e,t){return e.n.b=(yt(t),t)}function Myt(e,t){return e.n.b=(yt(t),t)}function HO(e){return Ns(e.a)||Ns(e.b)}function jyt(e,t,n){return iFe(e,t,n,e.b)}function uee(e,t,n){return iFe(e,t,n,e.c)}function lee(e,t,n){c(FS(e,t),21).Fc(n)}function Pyt(e,t,n){H_(e.a,n),kj(e.a,t)}function eS(e,t){vO(),this.a=e,this.b=t}function VT(e,t){_a(),this.b=e,this.c=t}function fF(e,t){_F(),this.f=t,this.d=e}function fee(e,t){Une(t,e),this.d=e,this.c=t}function qa(e){var t;t=e.a,e.a=e.b,e.b=t}function Dyt(e){return Tl(),!!e&&!e.dc()}function Iyt(e){return new op(3,e)}function hee(e,t){return new TIe(e,e.gc(),t)}function Nyt(e){return XC(),wn((ZRe(),ztt),e)}function K2(e){this.d=e,Ft.call(this,e)}function W2(e){this.c=e,Ft.call(this,e)}function tS(e){this.c=e,K2.call(this,e)}function PDe(){pO(),this.b=new gEe(this)}function Ah(e){return du(e,Dp),new jo(e)}function DDe(e){return gy(),parseInt(e)||-1}function uu(e,t,n){return e.substr(t,n-t)}function ey(e,t,n){return ree(e,rc(t),n)}function hF(e){return Kte(e.c,e.c.length)}function $yt(e){return e.f!=null?e.f:""+e.g}function aF(e){return e.f!=null?e.f:""+e.g}function dF(e){return $t(e.b!=0),e.a.a.c}function YT(e){return $t(e.b!=0),e.c.b.c}function nS(e){z(e,150)&&c(e,150).Gh()}function ZT(e){return e.b=c(lRe(e.a),42)}function aee(e){U3(),this.b=e,this.a=!0}function IDe(e){cT(),this.b=e,this.a=!0}function NDe(e){e.d=new RDe(e),e.e=new Zt}function $De(e){if(!e)throw L(new Au)}function dee(e){if(!e)throw L(new M9)}function Ub(e){if(!e)throw L(new fc)}function Ryt(e){if(!e)throw L(new ZR)}function $t(e){if(!e)throw L(new Zs)}function RDe(e){rte.call(this,e,null,null)}function LDe(){bn.call(this,"POLYOMINO",0)}function FDe(e,t,n,i){Dte.call(this,e,t,n,i)}function Lyt(e,t){return e1(),Ye(e,t.e,t)}function Fyt(e,t,n){return aT(),n.qg(e,t)}function er(e,t){return!!e.q&&Jc(e.q,t)}function Byt(e,t){return e>0?t*t/e:t*t*100}function _yt(e,t){return e>0?t/(e*e):t*100}function qyt(e,t,n){return ae(t,PHe(e,n))}function Qyt(e,t,n){dM(),e.Xe(t)&&n.td(e)}function ty(e,t,n){var i;i=e.Zc(t),i.Rb(n)}function Gb(e,t,n){return e.a+=t,e.b+=n,e}function Hyt(e,t,n){return e.a*=t,e.b*=n,e}function iS(e,t,n){return e.a-=t,e.b-=n,e}function gee(e,t){return e.a=t.a,e.b=t.b,e}function JT(e){return e.a=-e.a,e.b=-e.b,e}function BDe(e){this.c=e,this.a=1,this.b=1}function _De(e){this.c=e,tc(e,0),nc(e,0)}function qDe(e){ai.call(this),bk(this,e)}function QDe(e){FQ(),dTe(this),this.mf(e)}function HDe(e,t){vO(),eS.call(this,e,t)}function bee(e,t){_a(),VT.call(this,e,t)}function zDe(e,t){_a(),VT.call(this,e,t)}function KDe(e,t){_a(),bee.call(this,e,t)}function Yc(e,t,n){tu.call(this,e,t,n,2)}function gF(e,t){Mu(),bA.call(this,e,t)}function WDe(e,t){Mu(),gF.call(this,e,t)}function pee(e,t){Mu(),gF.call(this,e,t)}function XDe(e,t){Mu(),pee.call(this,e,t)}function wee(e,t){Mu(),bA.call(this,e,t)}function UDe(e,t){Mu(),wee.call(this,e,t)}function GDe(e,t){Mu(),bA.call(this,e,t)}function zyt(e,t){return e.c.Fc(c(t,133))}function mee(e,t,n){return iP(BS(e,t),n)}function Kyt(e,t,n){return t.Qk(e.e,e.c,n)}function Wyt(e,t,n){return t.Rk(e.e,e.c,n)}function bF(e,t){return Vd(e.e,c(t,49))}function Xyt(e,t,n){Tk(Bc(e.a),t,oLe(n))}function Uyt(e,t,n){Tk(ao(e.a),t,sLe(n))}function vee(e,t){t.$modCount=e.$modCount}function zO(){zO=X,g8=new ci("root")}function ny(){ny=X,jE=new KTe,new WTe}function VDe(){this.a=new Cg,this.b=new Cg}function yee(){bqe.call(this),this.Bb|=Qr}function YDe(){bn.call(this,"GROW_TREE",0)}function Gyt(e){return e==null?null:dHt(e)}function Vyt(e){return e==null?null:OIt(e)}function Yyt(e){return e==null?null:Ms(e)}function Zyt(e){return e==null?null:Ms(e)}function sa(e){e.o==null&&G$t(e)}function je(e){return XO(e==null||Wb(e)),e}function ve(e){return XO(e==null||Xb(e)),e}function ln(e){return XO(e==null||ur(e)),e}function Oee(e){this.q=new b.Date(Ag(e))}function rS(e,t){this.c=e,W3.call(this,e,t)}function eA(e,t){this.a=e,rS.call(this,e,t)}function Jyt(e,t){this.d=e,cxe(this),this.b=t}function kee(e,t){WB.call(this,e),this.a=t}function See(e,t){WB.call(this,e),this.a=t}function e4t(e){Vre.call(this,0,0),this.f=e}function xee(e,t,n){hM.call(this,e,t,n,null)}function ZDe(e,t,n){hM.call(this,e,t,n,null)}function t4t(e,t,n){return e.ue(t,n)<=0?n:t}function n4t(e,t,n){return e.ue(t,n)<=0?t:n}function i4t(e,t){return c(jg(e.b,t),149)}function r4t(e,t){return c(jg(e.c,t),229)}function pF(e){return c(Ae(e.a,e.b),287)}function JDe(e){return new De(e.c,e.d+e.a)}function eIe(e){return lu(),LPe(c(e,197))}function Vb(){Vb=X,Dae=Ve((iu(),W0))}function s4t(e,t){t.a?zLt(e,t):uF(e.a,t.b)}function tIe(e,t){$f||ae(e.a,t)}function o4t(e,t){return L9(),$y(t.d.i,e)}function c4t(e,t){return av(),new iGe(t,e)}function Zf(e,t){return yS(t,Tue),e.f=t,e}function Eee(e,t,n){return n=wu(e,t,3,n),n}function Cee(e,t,n){return n=wu(e,t,6,n),n}function Tee(e,t,n){return n=wu(e,t,9,n),n}function sS(e,t,n){++e.j,e.Ki(),zB(e,t,n)}function nIe(e,t,n){++e.j,e.Hi(t,e.oi(t,n))}function iIe(e,t,n){var i;i=e.Zc(t),i.Rb(n)}function rIe(e,t,n){return qce(e.c,e.b,t,n)}function Aee(e,t){return(t&Bn)%e.d.length}function Ki(e,t){ci.call(this,e),this.a=t}function Mee(e,t){VY.call(this,e),this.a=t}function wF(e,t){VY.call(this,e),this.a=t}function sIe(e,t){this.c=e,Pg.call(this,t)}function oIe(e,t){this.a=e,cTe.call(this,t)}function oS(e,t){this.a=e,cTe.call(this,t)}function cIe(e){this.a=(du(e,Dp),new jo(e))}function uIe(e){this.a=(du(e,Dp),new jo(e))}function cS(e){return!e.a&&(e.a=new le),e.a}function lIe(e){return e>8?0:e+1}function u4t(e,t){return St(),e==t?0:e?1:-1}function jee(e,t,n){return V2(e,c(t,22),n)}function l4t(e,t,n){return e.apply(t,n)}function fIe(e,t,n){return e.a+=ih(t,0,n),e}function Pee(e,t){var n;return n=e.e,e.e=t,n}function f4t(e,t){var n;n=e[mH],n.call(e,t)}function h4t(e,t){var n;n=e[mH],n.call(e,t)}function Yb(e,t){e.a.Vc(e.b,t),++e.b,e.c=-1}function hIe(e){Cc(e.e),e.d.b=e.d,e.d.a=e.d}function uS(e){e.b?uS(e.b):e.f.c.zc(e.e,e.d)}function a4t(e,t,n){X1(),rxe(e,t.Ce(e.a,n))}function d4t(e,t){return wL(XHe(e.a,t,!0))}function g4t(e,t){return wL(UHe(e.a,t,!0))}function Cl(e,t){return ZC(new Array(t),e)}function mF(e){return String.fromCharCode(e)}function b4t(e){return e==null?null:e.message}function aIe(){this.a=new de,this.b=new de}function dIe(){this.a=new YV,this.b=new kTe}function gIe(){this.b=new Er,this.c=new de}function Dee(){this.d=new Er,this.e=new Er}function Iee(){this.n=new Er,this.o=new Er}function tA(){this.n=new N2,this.i=new z2}function bIe(){this.a=new USe,this.b=new $Oe}function pIe(){this.a=new de,this.d=new de}function wIe(){this.b=new Zi,this.a=new Zi}function mIe(){this.b=new Zt,this.a=new Zt}function vIe(){this.b=new JAe,this.a=new Lke}function yIe(){tA.call(this),this.a=new Er}function KO(e){_Et.call(this,e,(bM(),$K))}function Nee(e,t,n,i){pA.call(this,e,t,n,i)}function p4t(e,t,n){n!=null&&DM(t,Oq(e,n))}function w4t(e,t,n){n!=null&&IM(t,Oq(e,n))}function $ee(e,t,n){return n=wu(e,t,11,n),n}function Wn(e,t){return e.a+=t.a,e.b+=t.b,e}function lr(e,t){return e.a-=t.a,e.b-=t.b,e}function m4t(e,t){return e.n.a=(yt(t),t+10)}function v4t(e,t){return e.n.a=(yt(t),t+10)}function y4t(e,t){return t==e||n4(Qj(t),e)}function OIe(e,t){return Qn(e.a,t,"")==null}function O4t(e,t){return L9(),!$y(t.d.i,e)}function k4t(e,t){Rd(e.f)?B$t(e,t):SDt(e,t)}function S4t(e,t){var n;return n=t.Hh(e.a),n}function Zb(e,t){us.call(this,x6+e+A0+t)}function X2(e,t,n,i){pe.call(this,e,t,n,i)}function Ree(e,t,n,i){pe.call(this,e,t,n,i)}function kIe(e,t,n,i){Ree.call(this,e,t,n,i)}function SIe(e,t,n,i){CA.call(this,e,t,n,i)}function vF(e,t,n,i){CA.call(this,e,t,n,i)}function Lee(e,t,n,i){CA.call(this,e,t,n,i)}function xIe(e,t,n,i){vF.call(this,e,t,n,i)}function Fee(e,t,n,i){vF.call(this,e,t,n,i)}function at(e,t,n,i){Lee.call(this,e,t,n,i)}function EIe(e,t,n,i){Fee.call(this,e,t,n,i)}function CIe(e,t,n,i){Rte.call(this,e,t,n,i)}function TIe(e,t,n){this.a=e,fee.call(this,t,n)}function AIe(e,t,n){this.c=t,this.b=n,this.a=e}function x4t(e,t,n){return e.d=c(t.Kb(n),164)}function Bee(e,t){return e.Aj().Nh().Kh(e,t)}function _ee(e,t){return e.Aj().Nh().Ih(e,t)}function MIe(e,t){return yt(e),ne(e)===ne(t)}function Je(e,t){return yt(e),ne(e)===ne(t)}function yF(e,t){return wL(XHe(e.a,t,!1))}function OF(e,t){return wL(UHe(e.a,t,!1))}function E4t(e,t){return e.b.sd(new uje(e,t))}function C4t(e,t){return e.b.sd(new lje(e,t))}function jIe(e,t){return e.b.sd(new fje(e,t))}function qee(e,t,n){return e.lastIndexOf(t,n)}function T4t(e,t,n){return qi(e[t.b],e[n.b])}function A4t(e,t){return oe(t,(ke(),Wx),e)}function M4t(e,t){return Uo(t.a.d.p,e.a.d.p)}function j4t(e,t){return Uo(e.a.d.p,t.a.d.p)}function P4t(e,t){return qi(e.c-e.s,t.c-t.s)}function PIe(e){return e.c?Ts(e.c.a,e,0):-1}function D4t(e){return e<100?null:new jd(e)}function U2(e){return e==K0||e==Vh||e==To}function DIe(e,t){return z(t,15)&&FUe(e.c,t)}function I4t(e,t){$f||t&&(e.d=t)}function kF(e,t){var n;return n=t,!!fre(e,n)}function Qee(e,t){this.c=e,GF.call(this,e,t)}function IIe(e){this.c=e,YL.call(this,hP,0)}function NIe(e,t){FOt.call(this,e,e.length,t)}function N4t(e,t,n){return c(e.c,69).lk(t,n)}function nA(e,t,n){return c(e.c,69).mk(t,n)}function $4t(e,t,n){return Kyt(e,c(t,332),n)}function Hee(e,t,n){return Wyt(e,c(t,332),n)}function R4t(e,t,n){return DKe(e,c(t,332),n)}function $Ie(e,t,n){return NDt(e,c(t,332),n)}function WO(e,t){return t==null?null:bp(e.b,t)}function zee(e){return Xb(e)?(yt(e),e):e.ke()}function iA(e){return!isNaN(e)&&!isFinite(e)}function RIe(e){Jf(),this.a=(it(),new q3(e))}function lS(e){ry(),this.d=e,this.a=new Mw}function ju(e,t,n){this.a=e,this.b=t,this.c=n}function LIe(e,t,n){this.a=e,this.b=t,this.c=n}function FIe(e,t,n){this.d=e,this.b=n,this.a=t}function SF(e){YPe(this),Vu(this),Br(this,e)}function gc(e){nF(this),ste(this.c,0,e.Pc())}function BIe(e){eu(e.a),RBe(e.c,e.b),e.b=null}function _Ie(e){this.a=e,Th(),ic(Date.now())}function qIe(){qIe=X,lae=new x,MD=new x}function xF(){xF=X,eae=new Jt,cnt=new Yt}function QIe(){QIe=X,bht=Y(It,Ce,1,0,5,1)}function HIe(){HIe=X,Iht=Y(It,Ce,1,0,5,1)}function Kee(){Kee=X,Nht=Y(It,Ce,1,0,5,1)}function Jf(){Jf=X,new JY((it(),it(),Gr))}function L4t(e){return bM(),wn((XBe(),fnt),e)}function F4t(e){return Af(),wn((aBe(),pnt),e)}function B4t(e){return gj(),wn((vFe(),knt),e)}function _4t(e){return yM(),wn((yFe(),Snt),e)}function q4t(e){return Uj(),wn((oQe(),xnt),e)}function Q4t(e){return ef(),wn((lBe(),Tnt),e)}function H4t(e){return Tc(),wn((fBe(),Mnt),e)}function z4t(e){return Jo(),wn((hBe(),Pnt),e)}function K4t(e){return lP(),wn((kPe(),eit),e)}function W4t(e){return Lg(),wn((GBe(),nit),e)}function X4t(e){return mv(),wn((VBe(),rit),e)}function U4t(e){return Ik(),wn((YBe(),cit),e)}function G4t(e){return uT(),wn((YLe(),uit),e)}function V4t(e){return OM(),wn((OFe(),Eit),e)}function Y4t(e){return dk(),wn((dBe(),Wit),e)}function Z4t(e){return _r(),wn((T_e(),Vit),e)}function J4t(e){return Fy(),wn((UBe(),trt),e)}function e5t(e){return Fg(),wn((gBe(),crt),e)}function Wee(e,t){if(!e)throw L(new kt(t))}function t5t(e){return jt(),wn((U_e(),hrt),e)}function Xee(e){pA.call(this,e.d,e.c,e.a,e.b)}function EF(e){pA.call(this,e.d,e.c,e.a,e.b)}function Uee(e,t,n){this.b=e,this.c=t,this.a=n}function rA(e,t,n){this.b=e,this.a=t,this.c=n}function zIe(e,t,n){this.a=e,this.b=t,this.c=n}function Gee(e,t,n){this.a=e,this.b=t,this.c=n}function KIe(e,t,n){this.a=e,this.b=t,this.c=n}function Vee(e,t,n){this.a=e,this.b=t,this.c=n}function WIe(e,t,n){this.b=e,this.a=t,this.c=n}function sA(e,t,n){this.e=t,this.b=e,this.d=n}function n5t(e,t,n){return X1(),e.a.Od(t,n),t}function CF(e){var t;return t=new Aw,t.e=e,t}function Yee(e){var t;return t=new MTe,t.b=e,t}function fS(){fS=X,QD=new f4e,HD=new h4e}function Tl(){Tl=X,Ert=new X5e,Crt=new U5e}function i5t(e){return XM(),wn((JBe(),yrt),e)}function r5t(e){return Tf(),wn((t_e(),Mrt),e)}function s5t(e){return Wj(),wn((Gqe(),Lrt),e)}function o5t(e){return yv(),wn((Y_e(),Frt),e)}function c5t(e){return aM(),wn((TFe(),Brt),e)}function u5t(e){return hv(),wn((bBe(),_rt),e)}function l5t(e){return lm(),wn((k_e(),Prt),e)}function f5t(e){return Rg(),wn((mBe(),Rrt),e)}function h5t(e){return jM(),wn((pBe(),qrt),e)}function a5t(e){return m0(),wn((y_e(),Qrt),e)}function d5t(e){return zS(),wn((SFe(),Hrt),e)}function g5t(e){return f0(),wn((wBe(),Krt),e)}function b5t(e){return Rj(),wn((tqe(),Wrt),e)}function p5t(e){return RS(),wn((xFe(),Xrt),e)}function w5t(e){return k7(),wn((J_e(),Urt),e)}function m5t(e){return r4(),wn((Z_e(),Grt),e)}function v5t(e){return Zr(),wn((OQe(),Vrt),e)}function y5t(e){return Ly(),wn((yBe(),Yrt),e)}function O5t(e){return da(),wn((vBe(),Jrt),e)}function k5t(e){return tM(),wn((AFe(),est),e)}function S5t(e){return Fu(),wn((S_e(),tst),e)}function x5t(e){return Dj(),wn((eqe(),pct),e)}function E5t(e){return Sk(),wn((OBe(),wct),e)}function C5t(e){return mp(),wn((n_e(),mct),e)}function T5t(e){return Vr(),wn((xBe(),xct),e)}function A5t(e){return dm(),wn((Uqe(),yct),e)}function M5t(e){return ba(),wn((SBe(),Oct),e)}function j5t(e){return _S(),wn((CFe(),kct),e)}function P5t(e){return HM(),wn((kBe(),Ect),e)}function D5t(e){return Nk(),wn((O_e(),vct),e)}function I5t(e){return jS(),wn((EFe(),Cct),e)}function N5t(e){return zy(),wn((CBe(),Tct),e)}function $5t(e){return qM(),wn((TBe(),Act),e)}function R5t(e){return UM(),wn((EBe(),Mct),e)}function L5t(e){return $g(),wn((ABe(),Qct),e)}function F5t(e){return hk(),wn((jFe(),Xct),e)}function B5t(e){return th(),wn((PFe(),eut),e)}function _5t(e){return yf(),wn((DFe(),nut),e)}function q5t(e){return Yl(),wn((MFe(),wut),e)}function Q5t(e){return Eg(),wn((IFe(),xut),e)}function H5t(e){return Jy(),wn((ZBe(),Eut),e)}function z5t(e){return _k(),wn((nqe(),Tut),e)}function K5t(e){return XA(),wn((RFe(),qut),e)}function W5t(e){return FM(),wn(($Fe(),Xut),e)}function X5t(e){return YA(),wn((NFe(),Qut),e)}function U5t(e){return sj(),wn((MBe(),Gut),e)}function G5t(e){return gM(),wn((LFe(),Vut),e)}function V5t(e){return r7(),wn((jBe(),Yut),e)}function Y5t(e){return xj(),wn((e_e(),alt),e)}function Z5t(e){return QM(),wn((DBe(),dlt),e)}function J5t(e){return rj(),wn((PBe(),glt),e)}function eOt(e){return f4(),wn((C_e(),Nlt),e)}function tOt(e){return f7(),wn((IBe(),$lt),e)}function nOt(e){return fT(),wn((GLe(),Rlt),e)}function iOt(e){return hT(),wn((ULe(),Flt),e)}function rOt(e){return PS(),wn((BFe(),Blt),e)}function sOt(e){return x7(),wn((x_e(),_lt),e)}function oOt(e){return wO(),wn((VLe(),nft),e)}function cOt(e){return e7(),wn((FFe(),ift),e)}function uOt(e){return nf(),wn((E_e(),lft),e)}function lOt(e){return nd(),wn((Vqe(),hft),e)}function fOt(e){return Rh(),wn((V_e(),aft),e)}function hOt(e){return Op(),wn((G_e(),mft),e)}function aOt(e){return Ur(),wn((SPe(),wrt),e)}function dOt(e){return Dy(),wn((kFe(),prt),e)}function gOt(e){return Yr(),wn((A_e(),Ift),e)}function bOt(e){return Ef(),wn(($Be(),Nft),e)}function pOt(e){return ma(),wn((s_e(),$ft),e)}function wOt(e){return Nj(),wn((rqe(),Rft),e)}function mOt(e){return pa(),wn((NBe(),Fft),e)}function vOt(e){return bu(),wn((r_e(),_ft),e)}function yOt(e){return Ep(),wn((sQe(),qft),e)}function OOt(e){return im(),wn((M_e(),Qft),e)}function kOt(e){return br(),wn((z_e(),Hft),e)}function SOt(e){return Ac(),wn((iqe(),zft),e)}function xOt(e){return iu(),wn((c_e(),Vft),e)}function EOt(e){return Hc(),wn((kQe(),Yft),e)}function COt(e){return me(),wn((j_e(),Kft),e)}function TOt(e){return uj(),wn((o_e(),Zft),e)}function AOt(e){return nu(),wn((i_e(),tht),e)}function MOt(e){return c4(),wn((Yqe(),ght),e)}function jOt(e,t){return yt(e),e+(yt(t),t)}function POt(e,t){return Th(),rn(ie(e.a),t)}function DOt(e,t){return Th(),rn(ie(e.a),t)}function TF(e,t){this.c=e,this.a=t,this.b=t-e}function XIe(e,t,n){this.a=e,this.b=t,this.c=n}function Zee(e,t,n){this.a=e,this.b=t,this.c=n}function Jee(e,t,n){this.a=e,this.b=t,this.c=n}function UIe(e,t,n){this.a=e,this.b=t,this.c=n}function GIe(e,t,n){this.a=e,this.b=t,this.c=n}function Qa(e,t,n){this.e=e,this.a=t,this.c=n}function VIe(e,t,n){Mu(),hne.call(this,e,t,n)}function AF(e,t,n){Mu(),Gte.call(this,e,t,n)}function ete(e,t,n){Mu(),Gte.call(this,e,t,n)}function tte(e,t,n){Mu(),Gte.call(this,e,t,n)}function YIe(e,t,n){Mu(),AF.call(this,e,t,n)}function nte(e,t,n){Mu(),AF.call(this,e,t,n)}function ZIe(e,t,n){Mu(),nte.call(this,e,t,n)}function JIe(e,t,n){Mu(),ete.call(this,e,t,n)}function eNe(e,t,n){Mu(),tte.call(this,e,t,n)}function hS(e,t){return tn(e),tn(t),new OMe(e,t)}function G2(e,t){return tn(e),tn(t),new dNe(e,t)}function IOt(e,t){return tn(e),tn(t),new gNe(e,t)}function NOt(e,t){return tn(e),tn(t),new SMe(e,t)}function c(e,t){return XO(e==null||fq(e,t)),e}function iy(e){var t;return t=new de,i_(t,e),t}function $Ot(e){var t;return t=new Zi,i_(t,e),t}function tNe(e){var t;return t=new uZ,w_(t,e),t}function aS(e){var t;return t=new ai,w_(t,e),t}function ROt(e){return!e.e&&(e.e=new de),e.e}function LOt(e){return!e.c&&(e.c=new D3),e.c}function ae(e,t){return e.c[e.c.length]=t,!0}function nNe(e,t){this.c=e,this.b=t,this.a=!1}function ite(e){this.d=e,cxe(this),this.b=Mkt(e.d)}function iNe(){this.a=";,;",this.b="",this.c=""}function FOt(e,t,n){r$e.call(this,t,n),this.a=e}function rNe(e,t,n){this.b=e,mPe.call(this,t,n)}function rte(e,t,n){this.c=e,mT.call(this,t,n)}function ste(e,t,n){Toe(n,0,e,t,n.length,!1)}function Mh(e,t,n,i,r){e.b=t,e.c=n,e.d=i,e.a=r}function BOt(e,t){t&&(e.b=t,e.a=(Qd(t),t.a))}function ote(e,t,n,i,r){e.d=t,e.c=n,e.a=i,e.b=r}function cte(e){var t,n;t=e.b,n=e.c,e.b=n,e.c=t}function ute(e){var t,n;n=e.d,t=e.a,e.d=t,e.a=n}function lte(e){return Xd(Kkt(Cs(e)?Yu(e):e))}function _Ot(e,t){return Uo(yNe(e.d),yNe(t.d))}function qOt(e,t){return t==(me(),xt)?e.c:e.d}function ry(){ry=X,Age=(me(),xt),UI=Tt}function sNe(){this.b=re(ve(Te((sf(),ZK))))}function oNe(e){return X1(),Y(It,Ce,1,e,5,1)}function QOt(e){return new De(e.c+e.b,e.d+e.a)}function HOt(e,t){return lT(),Uo(e.d.p,t.d.p)}function MF(e){return $t(e.b!=0),$u(e,e.a.a)}function zOt(e){return $t(e.b!=0),$u(e,e.c.b)}function fte(e,t){if(!e)throw L(new bAe(t))}function oA(e,t){if(!e)throw L(new kt(t))}function hte(e,t,n){V3.call(this,e,t),this.b=n}function dS(e,t,n){CJ.call(this,e,t),this.c=n}function cNe(e,t,n){F_e.call(this,t,n),this.d=e}function ate(e){Kee(),IC.call(this),this.th(e)}function uNe(e,t,n){this.a=e,Lw.call(this,t,n)}function lNe(e,t,n){this.a=e,Lw.call(this,t,n)}function cA(e,t,n){CJ.call(this,e,t),this.c=n}function fNe(){vy(),l6t.call(this,(Id(),bl))}function hNe(e){return e!=null&&!V_(e,D8,I8)}function KOt(e,t){return(yHe(e)<<4|yHe(t))&Ni}function WOt(e,t){return PA(),mq(e,t),new F$e(e,t)}function G1(e,t){var n;e.n&&(n=t,ae(e.f,n))}function sy(e,t,n){var i;i=new np(n),Jl(e,t,i)}function XOt(e,t){var n;return n=e.c,jie(e,t),n}function dte(e,t){return t<0?e.g=-1:e.g=t,e}function uA(e,t){return Pxt(e),e.a*=t,e.b*=t,e}function aNe(e,t,n,i,r){e.c=t,e.d=n,e.b=i,e.a=r}function En(e,t){return ji(e,t,e.c.b,e.c),!0}function gte(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function jF(e){this.b=e,this.a=mg(this.b.a).Ed()}function dNe(e,t){this.b=e,this.a=t,QR.call(this)}function gNe(e,t){this.a=e,this.b=t,QR.call(this)}function bNe(e,t){r$e.call(this,t,1040),this.a=e}function gS(e){return e==0||isNaN(e)?e:e<0?-1:1}function UOt(e){return tv(),Lh(e)==pi(Zd(e))}function GOt(e){return tv(),Zd(e)==pi(Lh(e))}function wg(e,t){return Fk(e,new V3(t.a,t.b))}function VOt(e){return!Fr(e)&&e.c.i.c==e.d.i.c}function lA(e){var t;return t=e.n,e.a.b+t.d+t.a}function pNe(e){var t;return t=e.n,e.e.b+t.d+t.a}function bte(e){var t;return t=e.n,e.e.a+t.b+t.c}function wNe(e){return Rn(),new jh(0,e)}function YOt(e){return e.a?e.a:fB(e)}function XO(e){if(!e)throw L(new _3(null))}function mNe(){mNe=X,RU=(it(),new UR(hK))}function fA(){fA=X,new ase((sL(),SK),(oL(),kK))}function vNe(){vNe=X,Lhe=Y(Rr,ue,19,256,0,1)}function PF(e,t,n,i){qre.call(this,e,t,n,i,0,0)}function ZOt(e,t,n){return Qn(e.b,c(n.b,17),t)}function JOt(e,t,n){return Qn(e.b,c(n.b,17),t)}function ekt(e,t){return ae(e,new De(t.a,t.b))}function tkt(e,t){return e.c<t.c?-1:e.c==t.c?0:1}function DF(e){return e.e.c.length+e.g.c.length}function yNe(e){return e.e.c.length-e.g.c.length}function ONe(e){return e.b.c.length-e.e.c.length}function nkt(e){return lu(),(me(),Ko).Hc(e.j)}function kNe(e){Kee(),ate.call(this,e),this.a=-1}function hA(e,t){Z9.call(this,e,t),this.a=this}function hi(e,t){var n;return n=JF(e,t),n.i=2,n}function aA(e,t){var n;return++e.j,n=e.Ti(t),n}function Fn(e,t,n){return e.a=-1,lee(e,t.g,n),e}function ikt(e,t,n){UQt(e.a,e.b,e.c,c(t,202),n)}function rkt(e,t){Die(e,t==null?null:(yt(t),t))}function skt(e,t){Mie(e,t==null?null:(yt(t),t))}function okt(e,t){Mie(e,t==null?null:(yt(t),t))}function IF(e,t,n){return new AIe(f6t(e).Ie(),n,t)}function V1(e,t,n,i,r,o){return CKe(e,t,n,i,r,0,o)}function SNe(){SNe=X,Nhe=Y(Bv,ue,217,256,0,1)}function xNe(){xNe=X,Fhe=Y(cb,ue,162,256,0,1)}function ENe(){ENe=X,qhe=Y(ub,ue,184,256,0,1)}function CNe(){CNe=X,Rhe=Y(N6,ue,172,128,0,1)}function pte(){Mh(this,!1,!1,!1,!1)}function NF(e){ip(),this.a=(it(),new UR(tn(e)))}function dA(e){for(tn(e);e.Ob();)e.Pb(),e.Qb()}function ckt(e){e.a.cd(),c(e.a.dd(),14).gc(),AZ()}function wte(e){this.c=e,this.b=this.c.d.vc().Kc()}function TNe(e){this.c=e,this.a=new B2(this.c.a)}function UO(e){this.a=new F2(e.gc()),Br(this,e)}function mte(e){_Y.call(this,new i0),Br(this,e)}function ANe(e,t){return e.a+=ih(t,0,t.length),e}function Ae(e,t){return gt(t,e.c.length),e.c[t]}function MNe(e,t){return gt(t,e.a.length),e.a[t]}function ft(e,t){X1(),WB.call(this,e),this.a=t}function ukt(e,t){return b0(Pr(b0(e.a).a,t.a))}function lkt(e,t){return yt(e),XS(e,(yt(t),t))}function fkt(e,t){return yt(t),XS(t,(yt(e),e))}function hkt(e,t){return bi(t,0,vte(t[0],b0(1)))}function vte(e,t){return ukt(c(e,162),c(t,162))}function jNe(e){return e.c-c(Ae(e.a,e.b),287).b}function PNe(e){return e.q?e.q:(it(),it(),Kh)}function DNe(e){return e.e.Hd().gc()*e.c.Hd().gc()}function akt(e,t,n){return Uo(t.d[e.g],n.d[e.g])}function dkt(e,t,n){return Uo(e.d[t.p],e.d[n.p])}function gkt(e,t,n){return Uo(e.d[t.p],e.d[n.p])}function bkt(e,t,n){return Uo(e.d[t.p],e.d[n.p])}function pkt(e,t,n){return Uo(e.d[t.p],e.d[n.p])}function yte(e,t,n){return b.Math.min(n/e,1/t)}function INe(e,t){return e?0:b.Math.max(0,t-1)}function wkt(e,t){var n;for(n=0;n<t;++n)e[n]=-1}function NNe(e){var t;return t=AKe(e),t?NNe(t):e}function mkt(e,t){return e.a==null&&HUe(e),e.a[t]}function Zc(e){return e.c?e.c.f:e.e.b}function bc(e){return e.c?e.c.g:e.e.a}function gA(e){Pg.call(this,e.gc()),vi(this,e)}function bA(e,t){Mu(),qC.call(this,t),this.a=e}function GO(e,t,n){this.a=e,Bi.call(this,t,n,2)}function pA(e,t,n,i){ote(this,e,t,n,i)}function jh(e,t){Rn(),eg.call(this,e),this.a=t}function $Ne(e){this.b=new ai,this.a=e,this.c=-1}function RNe(){this.d=new De(0,0),this.e=new Zi}function LNe(e){fee.call(this,0,0),this.a=e,this.b=0}function FNe(e){this.a=e,this.c=new Zt,lCt(this)}function Ote(e){if(e.e.c!=e.b)throw L(new Au)}function kte(e){if(e.c.e!=e.a)throw L(new Au)}function en(e){return Cs(e)?e|0:GAe(e)}function wA(e,t){return Rn(),new zte(e,t)}function $F(e,t){return e==null?t==null:Je(e,t)}function vkt(e,t){return e==null?t==null:dj(e,t)}function V2(e,t,n){return Dl(e.a,t),_te(e,t.g,n)}function RF(e,t,n){UQe(0,t,e.length),ky(e,0,t,n)}function Jb(e,t,n){sp(t,e.c.length),OO(e.c,t,n)}function BNe(e,t,n){var i;for(i=0;i<t;++i)e[i]=n}function ii(e,t){var n;return n=Ve(e),rre(n,t),n}function ykt(e,t){return!e&&(e=[]),e[e.length]=t,e}function Okt(e,t){return e.a.get(t)!==void 0}function _Ne(e,t){return Gxt(new T2,new gxe(e),t)}function kkt(e){return e==null?TD:new UC(yt(e))}function LF(e,t){return z(t,22)&&dc(e,c(t,22))}function qNe(e,t){return z(t,22)&&Ext(e,c(t,22))}function Ste(e){return Qc(e,26)*i6+Qc(e,27)*r6}function xte(e){return Array.isArray(e)&&e.im===vt}function mA(e){e.b?mA(e.b):e.d.dc()&&e.f.c.Bc(e.e)}function FF(e,t){Wn(e.c,t),e.b.c+=t.a,e.b.d+=t.b}function Skt(e,t){FF(e,lr(new De(t.a,t.b),e.c))}function BF(e,t){this.b=new ai,this.a=e,this.c=t}function QNe(){this.b=new uye,this.c=new vRe(this)}function Ete(){this.d=new P3,this.e=new mRe(this)}function Cte(){wne(),this.f=new ai,this.e=new ai}function HNe(){lu(),this.k=new Zt,this.d=new Zi}function _F(){_F=X,iht=new Wr((Pn(),Wc),0)}function zNe(){zNe=X,Qtt=new LNe(Y(It,Ce,1,0,5,1))}function xkt(e,t,n){RXe(n,e,1),ae(t,new gje(n,e))}function Ekt(e,t,n){Rk(n,e,1),ae(t,new Oje(n,e))}function Ckt(e,t,n){return Wi(e,new _2(t.a,n.a))}function Tkt(e,t,n){return-Uo(e.f[t.p],e.f[n.p])}function vA(e,t,n){var i;e&&(i=e.i,i.c=t,i.b=n)}function yA(e,t,n){var i;e&&(i=e.i,i.d=t,i.a=n)}function Ec(e,t,n){return e.a=-1,lee(e,t.g+1,n),e}function Tte(e,t,n){return n=wu(e,c(t,49),7,n),n}function Ate(e,t,n){return n=wu(e,c(t,49),3,n),n}function KNe(e,t,n){this.a=e,KT.call(this,t,n,22)}function WNe(e,t,n){this.a=e,KT.call(this,t,n,14)}function XNe(e,t,n,i){Mu(),TLe.call(this,e,t,n,i)}function UNe(e,t,n,i){Mu(),TLe.call(this,e,t,n,i)}function Akt(e,t){(t.Bb&to)!=0&&!e.a.o&&(e.a.o=t)}function GNe(e){return e!=null&&UF(e)&&e.im!==vt}function Mte(e){return!Array.isArray(e)&&e.im===vt}function Mkt(e){return z(e,15)?c(e,15).Yc():e.Kc()}function jte(e){return e.Qc(Y(It,Ce,1,e.gc(),5,1))}function VO(e,t){return HAt(BS(e,t))?t.Qh():null}function Pte(e){e?Ose(e,(Th(),Hhe)):Th()}function Bt(e){this.a=(zNe(),Qtt),this.d=c(tn(e),47)}function Dte(e,t,n,i){this.a=e,hM.call(this,e,t,n,i)}function Y1(e){Nd(),this.a=0,this.b=e-1,this.c=1}function VNe(e){HT(this),this.g=e,RA(this),this._d()}function mg(e){return e.c?e.c:e.c=e.Id()}function qF(e){return e.d?e.d:e.d=e.Jd()}function Ite(e){var t;return t=e.c,t||(e.c=e.Dd())}function YNe(e){var t;return t=e.f,t||(e.f=e.Dc())}function Y2(e){var t;return t=e.i,t||(e.i=e.bc())}function ZNe(e){return Rn(),new mB(10,e,0)}function YO(e){return Cs(e)?""+e:LUe(e)}function OA(e){if(e.e.j!=e.d)throw L(new Au)}function oa(e,t){return Xd(rWe(Cs(e)?Yu(e):e,t))}function Bd(e,t){return Xd(Hoe(Cs(e)?Yu(e):e,t))}function ep(e,t){return Xd(PIt(Cs(e)?Yu(e):e,t))}function jkt(e,t){return u4t((yt(e),e),(yt(t),t))}function QF(e,t){return qi((yt(e),e),(yt(t),t))}function JNe(e,t){return tn(t),e.a.Ad(t)&&!e.b.Ad(t)}function Pkt(e,t){return Bo(e.l&t.l,e.m&t.m,e.h&t.h)}function Dkt(e,t){return Bo(e.l|t.l,e.m|t.m,e.h|t.h)}function Ikt(e,t){return Bo(e.l^t.l,e.m^t.m,e.h^t.h)}function kA(e,t){return u7(e,(yt(t),new axe(t)))}function SA(e,t){return u7(e,(yt(t),new dxe(t)))}function e$e(e){return pc(),c(e,11).e.c.length!=0}function t$e(e){return pc(),c(e,11).g.c.length!=0}function Nkt(e,t){return av(),qi(t.a.o.a,e.a.o.a)}function n$e(e,t,n){return wHt(e,c(t,11),c(n,11))}function $kt(e){return e.e?Vne(e.e):null}function Nte(e){e.d||(e.d=e.b.Kc(),e.c=e.b.gc())}function Rkt(e,t,n){e.a.Mb(n)&&(e.b=!0,t.td(n))}function oy(e,t){if(e<0||e>=t)throw L(new rZ)}function Lkt(e,t,n){return bi(t,0,vte(t[0],n[0])),t}function Fkt(e,t,n){t.Ye(n,re(ve(Lt(e.b,n)))*e.a)}function i$e(e,t,n){return bm(),Iy(e,t)&&Iy(e,n)}function ZO(e){return Ac(),!e.Hc(ja)&&!e.Hc(S1)}function xA(e){return new De(e.c+e.b/2,e.d+e.a/2)}function HF(e,t){return t.kh()?Vd(e.b,c(t,49)):t}function $te(e,t){this.e=e,this.d=(t&64)!=0?t|sh:t}function r$e(e,t){this.c=0,this.d=e,this.b=t|64|sh}function EA(e){this.b=new jo(11),this.a=(Kw(),e)}function zF(e){this.b=null,this.a=(Kw(),e||Yhe)}function s$e(e){this.a=Aze(e.a),this.b=new gc(e.b)}function o$e(e){this.b=e,K2.call(this,e),lDe(this)}function c$e(e){this.b=e,tS.call(this,e),fDe(this)}function tp(e,t,n){this.a=e,X2.call(this,t,n,5,6)}function Rte(e,t,n,i){this.b=e,Bi.call(this,t,n,i)}function rr(e,t,n,i,r){GB.call(this,e,t,n,i,r,-1)}function JO(e,t,n,i,r){NS.call(this,e,t,n,i,r,-1)}function pe(e,t,n,i){Bi.call(this,e,t,n),this.b=i}function CA(e,t,n,i){dS.call(this,e,t,n),this.b=i}function u$e(e){hPe.call(this,e,!1),this.a=!1}function l$e(e,t){this.b=e,z7e.call(this,e.b),this.a=t}function f$e(e,t){ip(),qvt.call(this,e,ej(new Gc(t)))}function TA(e,t){return Rn(),new Vte(e,t,0)}function KF(e,t){return Rn(),new Vte(6,e,t)}function Bkt(e,t){return Je(e.substr(0,t.length),t)}function Jc(e,t){return ur(t)?dB(e,t):!!ms(e.f,t)}function yr(e,t){for(yt(t);e.Ob();)t.td(e.Pb())}function Hw(e,t,n){t1(),this.e=e,this.d=t,this.a=n}function Ha(e,t,n,i){var r;r=e.i,r.i=t,r.a=n,r.b=i}function Lte(e){var t;for(t=e;t.f;)t=t.f;return t}function Z2(e){var t;return t=kk(e),$t(t!=null),t}function _kt(e){var t;return t=ETt(e),$t(t!=null),t}function cy(e,t){var n;return n=e.a.gc(),Une(t,n),n-t}function Fte(e,t){var n;for(n=0;n<t;++n)e[n]=!1}function qkt(e,t,n,i){var r;for(r=t;r<n;++r)e[r]=i}function Z(e,t,n,i){UQe(t,n,e.length),qkt(e,t,n,i)}function Qkt(e,t,n){oy(n,e.a.c.length),Iu(e.a,n,t)}function Bte(e,t,n){this.c=e,this.a=t,it(),this.b=n}function _te(e,t,n){var i;return i=e.b[t],e.b[t]=n,i}function Wi(e,t){var n;return n=e.a.zc(t,e),n==null}function Hkt(e){if(!e)throw L(new Zs);return e.d}function qte(e,t){if(e==null)throw L(new R2(t))}function Qte(e,t){return t?Br(e,t):!1}function Ph(e,t,n){return LCt(e,t.g,n),Dl(e.c,t),e}function zkt(e){return vm(e,(Yr(),ul)),e.d=!0,e}function WF(e){return!e.j&&k2t(e,lBt(e.g,e.b)),e.j}function ek(e){Ub(e.b!=-1),Ka(e.c,e.a=e.b),e.b=-1}function Cc(e){e.f=new IPe(e),e.g=new NPe(e),_A(e)}function XF(e){return new ft(null,Gkt(e,e.length))}function _d(e){return new Bt(new VJ(e.a.length,e.a))}function Kkt(e){return Bo(~e.l&zc,~e.m&zc,~e.h&Sa)}function UF(e){return typeof e===K7||typeof e===qQ}function Wkt(e){return e==Oi?kx:e==Li?"-INF":""+e}function Xkt(e){return e==Oi?kx:e==Li?"-INF":""+e}function Ukt(e,t){return e>0?b.Math.log(e/t):-100}function h$e(e,t){return oo(e,t)<0?-1:oo(e,t)>0?1:0}function Hte(e,t,n){return nVe(e,c(t,46),c(n,167))}function a$e(e,t){return c(Ite(mg(e.a)).Xb(t),42).cd()}function Gkt(e,t){return mxt(t,e.length),new bNe(e,t)}function GF(e,t){this.d=e,Ft.call(this,e),this.e=t}function vg(e){this.d=(yt(e),e),this.a=0,this.c=hP}function zte(e,t){eg.call(this,1),this.a=e,this.b=t}function d$e(e,t){return e.c?d$e(e.c,t):ae(e.b,t),e}function Vkt(e,t,n){var i;return i=lp(e,t),IB(e,t,n),i}function Kte(e,t){var n;return n=e.slice(0,t),uie(n,e)}function g$e(e,t,n){var i;for(i=0;i<t;++i)bi(e,i,n)}function b$e(e,t,n,i,r){for(;t<n;)i[r++]=Or(e,t++)}function Ykt(e,t){return qi(e.c.c+e.c.b,t.c.c+t.c.b)}function bS(e,t){return GM(e.a,t,(St(),D0))==null}function pS(e,t){ji(e.d,t,e.b.b,e.b),++e.a,e.c=null}function wS(e,t){sDe(e,z(t,153)?t:c(t,1937).gl())}function yg(e,t){Ci(Vo(e.Oc(),new EOe),new SEe(t))}function uy(e,t,n,i,r){Dq(e,c(zn(t.k,n),15),n,i,r)}function AA(e){e.s=NaN,e.c=NaN,kXe(e,e.e),kXe(e,e.j)}function p$e(e){e.a=null,e.e=null,Cc(e.b),e.d=0,++e.c}function VF(e){return b.Math.abs(e.d.e-e.e.e)-e.a}function Zkt(e,t,n){return c(e.c._c(t,c(n,133)),42)}function Jkt(){return XC(),_(B(Htt,1),he,538,0,[CK])}function e6t(e){return tv(),pi(Lh(e))==pi(Zd(e))}function w$e(e){Dee.call(this),this.a=e,ae(e.a,this)}function YF(e,t){this.d=CTt(e),this.c=t,this.a=.5*t}function m$e(){i0.call(this),this.a=!0,this.b=!0}function Rt(e){return(e.i==null&&rh(e),e.i).length}function v$e(e){return z(e,99)&&(c(e,18).Bb&to)!=0}function t6t(e,t){++e.j,Nq(e,e.i,t),HNt(e,c(t,332))}function ZF(e,t){return t=e.nk(null,t),_Ke(e,null,t)}function vi(e,t){return e.hi()&&(t=QRe(e,t)),e.Wh(t)}function S(e,t,n){var i;return i=JF(e,t),uqe(n,i),i}function JF(e,t){var n;return n=new ere,n.j=e,n.d=t,n}function tn(e){if(e==null)throw L(new iO);return e}function eB(e){var t;return t=e.j,t||(e.j=new U7e(e))}function y$e(e){var t;return t=e.f,t||(e.f=new GJ(e))}function Wte(e){var t;return t=e.k,t||(e.k=new yY(e))}function MA(e){var t;return t=e.k,t||(e.k=new yY(e))}function tk(e){var t;return t=e.g,t||(e.g=new vY(e))}function n6t(e){var t;return t=e.i,t||(e.i=new F7e(e))}function tB(e){var t;return t=e.d,t||(e.d=new KR(e))}function O$e(e){return tn(e),z(e,475)?c(e,475):Ms(e)}function Xte(e){return z(e,607)?e:new jRe(e)}function k$e(e,t){return TS(t,e.c.b.c.gc()),new yMe(e,t)}function S$e(e,t,n){return Rn(),new mLe(e,t,n)}function bi(e,t,n){return Ryt(n==null||KBt(e,n)),e[t]=n}function Ute(e,t){var n;return n=e.a.gc(),TS(t,n),n-1-t}function ly(e,t){return e.a+=String.fromCharCode(t),e}function Z1(e,t){return e.a+=String.fromCharCode(t),e}function nB(e,t){for(yt(t);e.c<e.d;)e.ze(t,e.c++)}function Lt(e,t){return ur(t)?mo(e,t):Hs(ms(e.f,t))}function i6t(e,t){return tv(),e==Lh(t)?Zd(t):Lh(t)}function r6t(e,t){J2(e,new np(t.f!=null?t.f:""+t.g))}function s6t(e,t){J2(e,new np(t.f!=null?t.f:""+t.g))}function x$e(e){this.b=new de,this.a=new de,this.c=e}function Gu(e){this.c=new Er,this.a=new de,this.b=e}function E$e(e){Dee.call(this),this.a=new Er,this.c=e}function np(e){if(e==null)throw L(new iO);this.a=e}function C$e(e){iZ(),this.b=new de,this.a=e,nQt(this,e)}function T$e(e){this.c=e,this.a=new ai,this.b=new ai}function A$e(){A$e=X,Utt=new SY(!1),Gtt=new SY(!0)}function ip(){ip=X,Jf(),xK=new gB((it(),it(),Gr))}function iB(){iB=X,Jf(),Che=new ZZ((it(),it(),CD))}function qd(){qd=X,bt=QNt(),tt(),dw&&Gjt()}function o6t(e,t){return av(),c(rs(e,t.d),15).Fc(t)}function c6t(e,t,n,i){return n==0||(n-i)/n<e.e||t>=e.g}function rB(e,t,n){var i;return i=b_(e,t,n),vce(e,i)}function J2(e,t){var n;n=e.a.length,lp(e,n),IB(e,n,t)}function M$e(e,t){var n;n=console[e],n.call(console,t)}function j$e(e,t){var n;++e.j,n=e.Vi(),e.Ii(e.oi(n,t))}function u6t(e,t,n){c(t.b,65),ec(t.a,new Zee(e,n,t))}function Gte(e,t,n){qC.call(this,t),this.a=e,this.b=n}function Vte(e,t,n){eg.call(this,e),this.a=t,this.b=n}function Yte(e,t,n){this.a=e,VY.call(this,t),this.b=n}function P$e(e,t,n){this.a=e,Tne.call(this,8,t,null,n)}function l6t(e){this.a=(yt(vn),vn),this.b=e,new wZ}function D$e(e){this.c=e,this.b=this.c.a,this.a=this.c.e}function Zte(e){this.c=e,this.b=e.a.d.a,vee(e.a.e,this)}function eu(e){Ub(e.c!=-1),e.d.$c(e.c),e.b=e.c,e.c=-1}function nk(e){return b.Math.sqrt(e.a*e.a+e.b*e.b)}function Og(e,t){return oy(t,e.a.c.length),Ae(e.a,t)}function eh(e,t){return ne(e)===ne(t)||e!=null&&qn(e,t)}function f6t(e){return 0>=e?new zZ:Vxt(e-1)}function h6t(e){return bw?dB(bw,e):!1}function I$e(e){return e?e.dc():!e.Kc().Ob()}function Ir(e){return!e.a&&e.c?e.c.b:e.a}function a6t(e){return!e.a&&(e.a=new Bi(x1,e,4)),e.a}function kg(e){return!e.d&&(e.d=new Bi(ns,e,1)),e.d}function yt(e){if(e==null)throw L(new iO);return e}function ik(e){e.c?e.c.He():(e.d=!0,wLt(e))}function Qd(e){e.c?Qd(e.c):(g0(e),e.d=!0)}function N$e(e){nne(e.a),e.b=Y(It,Ce,1,e.b.length,5,1)}function d6t(e,t){return Uo(t.j.c.length,e.j.c.length)}function g6t(e,t){e.c<0||e.b.b<e.c?U1(e.b,t):e.a._e(t)}function b6t(e,t){var n;n=e.Yg(t),n>=0?e.Bh(n):Moe(e,t)}function $$e(e){var t,n;return t=e.c.i.c,n=e.d.i.c,t==n}function p6t(e){if(e.p!=4)throw L(new fc);return e.e}function w6t(e){if(e.p!=3)throw L(new fc);return e.e}function m6t(e){if(e.p!=6)throw L(new fc);return e.f}function v6t(e){if(e.p!=6)throw L(new fc);return e.k}function y6t(e){if(e.p!=3)throw L(new fc);return e.j}function O6t(e){if(e.p!=4)throw L(new fc);return e.j}function Jte(e){return!e.b&&(e.b=new QC(new rL)),e.b}function Sg(e){return e.c==-2&&m2t(e,BDt(e.g,e.b)),e.c}function fy(e,t){var n;return n=JF("",e),n.n=t,n.i=1,n}function k6t(e,t){FF(c(t.b,65),e),ec(t.a,new QY(e))}function S6t(e,t){rn((!e.a&&(e.a=new oS(e,e)),e.a),t)}function R$e(e,t){this.b=e,GF.call(this,e,t),lDe(this)}function L$e(e,t){this.b=e,Qee.call(this,e,t),fDe(this)}function ene(e,t,n,i){lg.call(this,e,t),this.d=n,this.a=i}function jA(e,t,n,i){lg.call(this,e,n),this.a=t,this.f=i}function F$e(e,t){iyt.call(this,Yxt(tn(e),tn(t))),this.a=t}function B$e(){coe.call(this,j0,(QAe(),Qht)),Kqt(this)}function _$e(){coe.call(this,rl,(z3(),Pwe)),eqt(this)}function q$e(){bn.call(this,"DELAUNAY_TRIANGULATION",0)}function x6t(e){return String.fromCharCode.apply(null,e)}function Qn(e,t,n){return ur(t)?fs(e,t,n):qo(e.f,t,n)}function tne(e){return it(),e?e.ve():(Kw(),Kw(),Jhe)}function E6t(e,t,n){return dv(),n.pg(e,c(t.cd(),146))}function Q$e(e,t){return fA(),new ase(new SDe(e),new kDe(t))}function C6t(e){return du(e,zQ),kM(Pr(Pr(5,e),e/10|0))}function PA(){PA=X,qtt=new cL(_(B(P0,1),aP,42,0,[]))}function H$e(e){return!e.d&&(e.d=new N3(e.c.Cc())),e.d}function hy(e){return!e.a&&(e.a=new SAe(e.c.vc())),e.a}function z$e(e){return!e.b&&(e.b=new q3(e.c.ec())),e.b}function Dh(e,t){for(;t-- >0;)e=e<<1|(e<0?1:0);return e}function wo(e,t){return ne(e)===ne(t)||e!=null&&qn(e,t)}function T6t(e,t){return St(),c(t.b,19).a<e}function A6t(e,t){return St(),c(t.a,19).a<e}function rs(e,t){return LF(e.a,t)?e.b[c(t,22).g]:null}function M6t(e,t,n,i){e.a=uu(e.a,0,t)+(""+i)+J9(e.a,n)}function K$e(e,t){e.u.Hc((Ac(),ja))&&INt(e,t),b7t(e,t)}function Or(e,t){return fn(t,e.length),e.charCodeAt(t)}function W$e(){Is.call(this,"There is no more element.")}function rk(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function X$e(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function An(e,t,n,i){return Wqe(e,t,n,!1),tj(e,i),e}function j6t(e){return e.j.c=Y(It,Ce,1,0,5,1),e.a=-1,e}function P6t(e){return!e.c&&(e.c=new at(zt,e,5,8)),e.c}function D6t(e){return!e.b&&(e.b=new at(zt,e,4,7)),e.b}function DA(e){return!e.n&&(e.n=new pe(Ps,e,1,7)),e.n}function sB(e){return!e.c&&(e.c=new pe(Xc,e,9,9)),e.c}function ay(e){return e.e==R4&&y2t(e,VAt(e.g,e.b)),e.e}function mS(e){return e.f==R4&&O2t(e,Ljt(e.g,e.b)),e.f}function zw(e){var t;return t=e.b,!t&&(e.b=t=new L7e(e)),t}function nne(e){var t;for(t=e.Kc();t.Ob();)t.Pb(),t.Qb()}function dy(e){if(qc(e.d),e.d.d!=e.c)throw L(new Au)}function ine(e,t){this.b=e,this.c=t,this.a=new B2(this.b)}function oB(e,t,n){this.a=aue,this.d=e,this.b=t,this.c=n}function U$e(e,t){this.d=(yt(e),e),this.a=16449,this.c=t}function I6t(e,t){CHe(e,re(ga(t,"x")),re(ga(t,"y")))}function N6t(e,t){CHe(e,re(ga(t,"x")),re(ga(t,"y")))}function ni(e,t){return g0(e),new ft(e,new cie(t,e.a))}function Vo(e,t){return g0(e),new ft(e,new Gne(t,e.a))}function IA(e,t){return g0(e),new kee(e,new iBe(t,e.a))}function NA(e,t){return g0(e),new See(e,new rBe(t,e.a))}function $6t(e,t){return new kRe(c(tn(e),62),c(tn(t),62))}function R6t(e,t){return XZ(),qi((yt(e),e),(yt(t),t))}function L6t(){return uT(),_(B($ae,1),he,481,0,[KK])}function F6t(){return fT(),_(B(Cbe,1),he,482,0,[GX])}function B6t(){return hT(),_(B(Llt,1),he,551,0,[VX])}function _6t(){return wO(),_(B(Xbe,1),he,530,0,[sE])}function G$e(e){this.a=new de,this.e=Y(Vt,ue,48,e,0,2)}function cB(e,t,n,i){this.a=e,this.e=t,this.d=n,this.c=i}function $A(e,t,n,i){this.a=e,this.c=t,this.b=n,this.d=i}function rne(e,t,n,i){this.c=e,this.b=t,this.a=n,this.d=i}function V$e(e,t,n,i){this.c=e,this.b=t,this.d=n,this.a=i}function Pu(e,t,n,i){this.c=e,this.d=t,this.b=n,this.a=i}function Y$e(e,t,n,i){this.a=e,this.d=t,this.c=n,this.b=i}function ev(e,t,n,i){bn.call(this,e,t),this.a=n,this.b=i}function Z$e(e,t,n,i){this.a=e,this.c=t,this.d=n,this.b=i}function q6t(e,t,n){Y_t(e.a,n),UEt(n),x$t(e.b,n),bqt(t,n)}function uB(e,t,n){var i,r;return i=tue(e),r=t.Kh(n,i),r}function J$e(e,t){var n,i;return n=e/t,i=Di(n),n>i&&++i,i}function ca(e){var t,n;return n=(t=new tg,t),Ey(n,e),n}function lB(e){var t,n;return n=(t=new tg,t),foe(n,e),n}function Q6t(e,t){var n;return n=Lt(e.f,t),qie(t,n),null}function fB(e){var t;return t=Jxt(e),t||null}function eRe(e){return!e.b&&(e.b=new pe(nr,e,12,3)),e.b}function H6t(e){return e!=null&&$9(LN,e.toLowerCase())}function z6t(e,t){return qi(bc(e)*Zc(e),bc(t)*Zc(t))}function K6t(e,t){return qi(bc(e)*Zc(e),bc(t)*Zc(t))}function W6t(e,t){return qi(e.d.c+e.d.b/2,t.d.c+t.d.b/2)}function X6t(e,t){return qi(e.g.c+e.g.b/2,t.g.c+t.g.b/2)}function tRe(e,t,n){n.a?nc(e,t.b-e.f/2):tc(e,t.a-e.g/2)}function nRe(e,t,n,i){this.a=e,this.b=t,this.c=n,this.d=i}function iRe(e,t,n,i){this.a=e,this.b=t,this.c=n,this.d=i}function J1(e,t,n,i){this.e=e,this.a=t,this.c=n,this.d=i}function rRe(e,t,n,i){this.a=e,this.c=t,this.d=n,this.b=i}function sRe(e,t,n,i){Mu(),YFe.call(this,t,n,i),this.a=e}function oRe(e,t,n,i){Mu(),YFe.call(this,t,n,i),this.a=e}function cRe(e,t){this.a=e,Jyt.call(this,e,c(e.d,15).Zc(t))}function hB(e){this.f=e,this.c=this.f.e,e.f>0&&vKe(this)}function uRe(e,t,n,i){this.b=e,this.c=i,YL.call(this,t,n)}function lRe(e){return $t(e.b<e.d.gc()),e.d.Xb(e.c=e.b++)}function Vu(e){e.a.a=e.c,e.c.b=e.a,e.a.b=e.c.a=null,e.b=0}function sne(e,t){return e.b=t.b,e.c=t.c,e.d=t.d,e.a=t.a,e}function RA(e){return e.n&&(e.e!==MYe&&e._d(),e.j=null),e}function fRe(e){return XO(e==null||UF(e)&&e.im!==vt),e}function hRe(e){this.b=new de,_i(this.b,this.b),this.a=e}function tv(){tv=X,RD=new de,GK=new Zt,UK=new de}function it(){it=X,Gr=new ce,Kh=new et,CD=new pt}function Kw(){Kw=X,Yhe=new Mi,Zhe=new Mi,Jhe=new ar}function one(){one=X,vnt=new _1,Ont=new Ete,ynt=new j3}function U6t(){fae==256&&(lae=MD,MD=new x,fae=0),++fae}function nv(e){var t;return t=e.f,t||(e.f=new W3(e,e.c))}function G6t(e){return Wg(e)&&Pe(je(Ie(e,(ke(),R0))))}function V6t(e,t){return Ye(e,c(D(t,(ke(),o5)),19),t)}function aRe(e,t){return tm(e.j,t.s,t.c)+tm(t.e,e.s,e.c)}function dRe(e,t){e.e&&!e.e.a&&(aTe(e.e,t),dRe(e.e,t))}function gRe(e,t){e.d&&!e.d.a&&(aTe(e.d,t),gRe(e.d,t))}function Y6t(e,t){return-qi(bc(e)*Zc(e),bc(t)*Zc(t))}function Z6t(e){return c(e.cd(),146).tg()+":"+Ms(e.dd())}function J6t(e){Tl();var t;t=c(e.g,10),t.n.a=e.d.c+t.d.b}function e8t(e,t,n){return pO(),KTt(c(Lt(e.e,t),522),n)}function t8t(e,t){return _c(e),_c(t),gAe(c(e,22),c(t,22))}function n8t(e,t,n){e.i=0,e.e=0,t!=n&&$Qe(e,t,n)}function i8t(e,t,n){e.i=0,e.e=0,t!=n&&RQe(e,t,n)}function e0(e,t,n){var i,r;i=zee(n),r=new $C(i),Jl(e,t,r)}function aB(e,t,n,i,r,o){NS.call(this,e,t,n,i,r,o?-2:-1)}function bRe(e,t,n,i){CJ.call(this,t,n),this.b=e,this.a=i}function cne(e,t){new ai,this.a=new hc,this.b=e,this.c=t}function r8t(e,t){return c(D(e,(fe(),Xv)),15).Fc(t),t}function LA(e,t){if(e==null)throw L(new R2(t));return e}function Xn(e){return!e.q&&(e.q=new pe(gl,e,11,10)),e.q}function ie(e){return!e.s&&(e.s=new pe(lc,e,21,17)),e.s}function FA(e){return!e.a&&(e.a=new pe(mi,e,10,11)),e.a}function BA(e){return z(e,14)?new UO(c(e,14)):$Ot(e.Kc())}function s8t(e){return new bDe(e,e.e.Hd().gc()*e.c.Hd().gc())}function o8t(e){return new pDe(e,e.e.Hd().gc()*e.c.Hd().gc())}function une(e){return e&&e.hashCode?e.hashCode():gg(e)}function dB(e,t){return t==null?!!ms(e.f,null):Okt(e.g,t)}function c8t(e){return tn(e),Lze(new Bt(qt(e.a.Kc(),new Q)))}function vS(e){return it(),z(e,54)?new pL(e):new WT(e)}function pRe(e,t,n){return e.f?e.f.Ne(t,n):!1}function u8t(e,t){return e.a=uu(e.a,0,t)+""+J9(e.a,t+1),e}function l8t(e,t){var n;return n=zJ(e.a,t),n&&(t.d=null),n}function _A(e){var t,n;n=e,t=n.$modCount|0,n.$modCount=t+1}function lne(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function wRe(e){this.b=e,this.a=new Dd(c(tn(new AC),62))}function mRe(e){this.c=e,this.b=new Dd(c(tn(new p9),62))}function vRe(e){this.c=e,this.b=new Dd(c(tn(new cye),62))}function yRe(){this.a=new hZ,this.b=new FTe,this.d=new dye}function xg(){this.a=new hc,this.b=(du(3,Dp),new jo(3))}function ORe(){this.b=new Zi,this.d=new ai,this.e=new dZ}function qA(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}function kRe(e,t){z2t.call(this,new zF(e)),this.a=e,this.b=t}function SRe(){Bq(this,new pY),this.wb=(qd(),bt),z3()}function f8t(e){Kt(e,"No crossing minimization",1),_t(e)}function h8t(e){YC(),b.setTimeout(function(){throw e},0)}function ws(e){return e.u||(Fc(e),e.u=new oIe(e,e)),e.u}function Yo(e){var t;return t=c(mt(e,16),26),t||e.zh()}function xRe(e,t){return z(t,146)&&Je(e.b,c(t,146).tg())}function a8t(e,t){return e.a?t.Wg().Kc():c(t.Wg(),69).Zh()}function d8t(e){return e.k==(jt(),zi)&&er(e,(fe(),X6))}function gB(e){this.a=(it(),z(e,54)?new pL(e):new WT(e))}function gy(){gy=X;var e,t;t=!NAt(),e=new Se,MK=t?new st:e}function bB(e,t){var n;return n=Pd(e.gm),t==null?n:n+": "+t}function ERe(e,t){var n;return n=e.b.Qc(t),pFe(n,e.b.gc()),n}function yS(e,t){if(e==null)throw L(new R2(t));return e}function ms(e,t){return VQe(e,t,G8t(e,t==null?0:e.b.se(t)))}function g8t(e,t,n){return n>=0&&Je(e.substr(n,t.length),t)}function Hd(e,t,n,i,r,o,h){return new $B(e.e,t,n,i,r,o,h)}function CRe(e,t,n,i,r,o){this.a=e,u_.call(this,t,n,i,r,o)}function TRe(e,t,n,i,r,o){this.a=e,u_.call(this,t,n,i,r,o)}function ARe(e,t){this.g=e,this.d=_(B(Wh,1),rd,10,0,[t])}function za(e,t){this.e=e,this.a=It,this.b=YUe(t),this.c=t}function MRe(e,t){tA.call(this),pie(this),this.a=e,this.c=t}function OS(e,t,n,i){bi(e.c[t.g],n.g,i),bi(e.c[n.g],t.g,i)}function pB(e,t,n,i){bi(e.c[t.g],t.g,n),bi(e.b[t.g],t.g,i)}function b8t(){return jS(),_(B(vge,1),he,376,0,[SX,Zx])}function p8t(){return RS(),_(B(h1e,1),he,479,0,[f1e,pI])}function w8t(){return zS(),_(B(u1e,1),he,419,0,[gI,c1e])}function m8t(){return aM(),_(B(e1e,1),he,422,0,[Jde,xW])}function v8t(){return tM(),_(B(x1e,1),he,420,0,[BW,S1e])}function y8t(){return _S(),_(B(bge,1),he,421,0,[yX,OX])}function O8t(){return hk(),_(B(Wct,1),he,523,0,[u8,c8])}function k8t(){return Yl(),_(B(put,1),he,520,0,[sw,w1])}function S8t(){return th(),_(B(Jct,1),he,516,0,[Ob,hd])}function x8t(){return yf(),_(B(tut,1),he,515,0,[_0,Ff])}function E8t(){return Eg(),_(B(Sut,1),he,455,0,[m1,Vm])}function C8t(){return YA(),_(B(Hge,1),he,425,0,[FX,Qge])}function T8t(){return XA(),_(B(qge,1),he,480,0,[LX,_ge])}function A8t(){return FM(),_(B(zge,1),he,495,0,[rN,d5])}function M8t(){return gM(),_(B(Wge,1),he,426,0,[Kge,QX])}function j8t(){return e7(),_(B(Gbe,1),he,429,0,[dN,Ube])}function P8t(){return PS(),_(B(Tbe,1),he,430,0,[YX,hN])}function D8t(){return gj(),_(B(aae,1),he,428,0,[FK,hae])}function I8t(){return yM(),_(B(gae,1),he,427,0,[dae,BK])}function N8t(){return OM(),_(B(Qae,1),he,424,0,[VK,LD])}function $8t(){return Dy(),_(B(brt,1),he,511,0,[$x,lW])}function QA(e,t,n,i){return n>=0?e.jh(t,n,i):e.Sg(null,n,i)}function wB(e){return e.b.b==0?e.a.$e():MF(e.b)}function R8t(e){if(e.p!=5)throw L(new fc);return en(e.f)}function L8t(e){if(e.p!=5)throw L(new fc);return en(e.k)}function fne(e){return ne(e.a)===ne((m_(),IU))&&Fqt(e),e.a}function jRe(e){this.a=c(tn(e),271),this.b=(it(),new iee(e))}function PRe(e,t){i2t(this,new De(e.a,e.b)),r2t(this,aS(t))}function Eg(){Eg=X,m1=new mJ(Mv,0),Vm=new mJ(jv,1)}function th(){th=X,Ob=new pJ(jv,0),hd=new pJ(Mv,1)}function Cg(){X2t.call(this,new F2(fp(12))),JJ(!0),this.a=2}function mB(e,t,n){Rn(),eg.call(this,e),this.b=t,this.a=n}function hne(e,t,n){Mu(),qC.call(this,t),this.a=e,this.b=n}function DRe(e){tA.call(this),pie(this),this.a=e,this.c=!0}function IRe(e){var t;t=e.c.d.b,e.b=t,e.a=e.c.d,t.a=e.c.d.b=e}function HA(e){var t;zxt(e.a),zPe(e.a),t=new LC(e.a),_re(t)}function F8t(e,t){QUe(e,!0),ec(e.e.wf(),new Uee(e,!0,t))}function zA(e,t){return aFe(t),qxt(e,Y(Vt,yn,25,t,15,1),t)}function B8t(e,t){return tv(),e==pi(Lh(t))||e==pi(Zd(t))}function mo(e,t){return t==null?Hs(ms(e.f,null)):yO(e.g,t)}function _8t(e){return e.b==0?null:($t(e.b!=0),$u(e,e.a.a))}function Di(e){return Math.max(Math.min(e,Bn),-2147483648)|0}function q8t(e,t){var n=AK[e.charCodeAt(0)];return n??e}function KA(e,t){return LA(e,"set1"),LA(t,"set2"),new MMe(e,t)}function Q8t(e,t){var n;return n=Rxt(e.f,t),Wn(JT(n),e.f.d)}function sk(e,t){var n,i;return n=t,i=new Lc,jVe(e,n,i),i.d}function vB(e,t,n,i){var r;r=new yIe,t.a[n.g]=r,V2(e.b,i,r)}function ane(e,t,n){var i;i=e.Yg(t),i>=0?e.sh(i,n):tce(e,t,n)}function Ww(e,t,n){UA(),e&&Qn(jU,e,t),e&&Qn(AE,e,n)}function NRe(e,t,n){this.i=new de,this.b=e,this.g=t,this.a=n}function WA(e,t,n){this.c=new de,this.e=e,this.f=t,this.b=n}function dne(e,t,n){this.a=new de,this.e=e,this.f=t,this.c=n}function $Re(e,t){HT(this),this.f=t,this.g=e,RA(this),this._d()}function kS(e,t){var n;n=e.q.getHours(),e.q.setDate(t),Uk(e,n)}function RRe(e,t){var n;for(tn(t),n=e.a;n;n=n.c)t.Od(n.g,n.i)}function LRe(e){var t;return t=new tT(fp(e.length)),rre(t,e),t}function H8t(e){function t(){}return t.prototype=e||{},new t}function z8t(e,t){return aQe(e,t)?(fqe(e),!0):!1}function ua(e,t){if(t==null)throw L(new iO);return qAt(e,t)}function K8t(e){if(e.qe())return null;var t=e.n;return yD[t]}function SS(e){return e.Db>>16!=3?null:c(e.Cb,33)}function vf(e){return e.Db>>16!=9?null:c(e.Cb,33)}function FRe(e){return e.Db>>16!=6?null:c(e.Cb,79)}function BRe(e){return e.Db>>16!=7?null:c(e.Cb,235)}function _Re(e){return e.Db>>16!=7?null:c(e.Cb,160)}function pi(e){return e.Db>>16!=11?null:c(e.Cb,33)}function qRe(e,t){var n;return n=e.Yg(t),n>=0?e.lh(n):Uq(e,t)}function QRe(e,t){var n;return n=new mte(t),HKe(n,e),new gc(n)}function gne(e){var t;return t=e.d,t=e.si(e.f),rn(e,t),t.Ob()}function HRe(e,t){return e.b+=t.b,e.c+=t.c,e.d+=t.d,e.a+=t.a,e}function yB(e,t){return b.Math.abs(e)<b.Math.abs(t)?e:t}function W8t(e){return!e.a&&(e.a=new pe(mi,e,10,11)),e.a.i>0}function zRe(){this.a=new ra,this.e=new Zi,this.g=0,this.i=0}function KRe(e){this.a=e,this.b=Y(Hct,ue,1944,e.e.length,0,2)}function OB(e,t,n){var i;i=DQe(e,t,n),e.b=new LM(i.c.length)}function yf(){yf=X,_0=new bJ(TH,0),Ff=new bJ("UP",1)}function XA(){XA=X,LX=new vJ(sJe,0),_ge=new vJ("FAN",1)}function UA(){UA=X,jU=new Zt,AE=new Zt,a3t(snt,new O8e)}function X8t(e){if(e.p!=0)throw L(new fc);return NO(e.f,0)}function U8t(e){if(e.p!=0)throw L(new fc);return NO(e.k,0)}function WRe(e){return e.Db>>16!=3?null:c(e.Cb,147)}function by(e){return e.Db>>16!=6?null:c(e.Cb,235)}function rp(e){return e.Db>>16!=17?null:c(e.Cb,26)}function XRe(e,t){var n=e.a=e.a||[];return n[t]||(n[t]=e.le(t))}function G8t(e,t){var n;return n=e.a.get(t),n??new Array}function V8t(e,t){var n;n=e.q.getHours(),e.q.setMonth(t),Uk(e,n)}function fs(e,t,n){return t==null?qo(e.f,null,n):Bg(e.g,t,n)}function ok(e,t,n,i,r,o){return new aa(e.e,t,e.aj(),n,i,r,o)}function xS(e,t,n){return e.a=uu(e.a,0,t)+(""+n)+J9(e.a,t),e}function Y8t(e,t,n){return ae(e.a,(PA(),mq(t,n),new lg(t,n))),e}function bne(e){return tee(e.c),e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function URe(e){return tee(e.e),e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function dr(e,t){e.d&&Zo(e.d.e,e),e.d=t,e.d&&ae(e.d.e,e)}function jr(e,t){e.c&&Zo(e.c.g,e),e.c=t,e.c&&ae(e.c.g,e)}function hs(e,t){e.c&&Zo(e.c.a,e),e.c=t,e.c&&ae(e.c.a,e)}function $s(e,t){e.i&&Zo(e.i.j,e),e.i=t,e.i&&ae(e.i.j,e)}function GRe(e,t,n){this.a=t,this.c=e,this.b=(tn(n),new gc(n))}function VRe(e,t,n){this.a=t,this.c=e,this.b=(tn(n),new gc(n))}function YRe(e,t){this.a=e,this.c=zs(this.a),this.b=new qA(t)}function Z8t(e){var t;return g0(e),t=new Zi,ni(e,new Exe(t))}function sp(e,t){if(e<0||e>t)throw L(new us(yue+e+Oue+t))}function pne(e,t){return qNe(e.a,t)?_te(e,c(t,22).g,null):null}function J8t(e){return F_(),St(),c(e.a,81).d.e!=0}function ZRe(){ZRe=X,ztt=mn((XC(),_(B(Htt,1),he,538,0,[CK])))}function JRe(){JRe=X,jct=Ec(new Ji,(_r(),Os),(Ur(),Rx))}function wne(){wne=X,Pct=Ec(new Ji,(_r(),Os),(Ur(),Rx))}function eLe(){eLe=X,Ict=Ec(new Ji,(_r(),Os),(Ur(),Rx))}function tLe(){tLe=X,Uct=Fn(new Ji,(_r(),Os),(Ur(),_6))}function lu(){lu=X,Yct=Fn(new Ji,(_r(),Os),(Ur(),_6))}function nLe(){nLe=X,Zct=Fn(new Ji,(_r(),Os),(Ur(),_6))}function kB(){kB=X,iut=Fn(new Ji,(_r(),Os),(Ur(),_6))}function iLe(){iLe=X,Hut=Ec(new Ji,(Jy(),f8),(_k(),AX))}function t0(e,t,n,i){this.c=e,this.d=i,xB(this,t),EB(this,n)}function iv(e){this.c=new ai,this.b=e.b,this.d=e.c,this.a=e.a}function SB(e){this.a=b.Math.cos(e),this.b=b.Math.sin(e)}function xB(e,t){e.a&&Zo(e.a.k,e),e.a=t,e.a&&ae(e.a.k,e)}function EB(e,t){e.b&&Zo(e.b.f,e),e.b=t,e.b&&ae(e.b.f,e)}function rLe(e,t){u6t(e,e.b,e.c),c(e.b.b,65),t&&c(t.b,65).b}function e9t(e,t){Ire(e,t),z(e.Cb,88)&&xp(Fc(c(e.Cb,88)),2)}function CB(e,t){z(e.Cb,88)&&xp(Fc(c(e.Cb,88)),4),Po(e,t)}function GA(e,t){z(e.Cb,179)&&(c(e.Cb,179).tb=null),Po(e,t)}function vo(e,t){return Kr(),n_(t)?new hA(t,e):new Z9(t,e)}function t9t(e,t){var n,i;n=t.c,i=n!=null,i&&J2(e,new np(t.c))}function sLe(e){var t,n;return n=(z3(),t=new tg,t),Ey(n,e),n}function oLe(e){var t,n;return n=(z3(),t=new tg,t),Ey(n,e),n}function cLe(e,t){var n;return n=new Gu(e),t.c[t.c.length]=n,n}function uLe(e,t){var n;return n=c(bp(nv(e.a),t),14),n?n.gc():0}function lLe(e){var t;return g0(e),t=(Kw(),Kw(),Zhe),xM(e,t)}function fLe(e){for(var t;;)if(t=e.Pb(),!e.Ob())return t}function mne(e,t){K2t.call(this,new F2(fp(e))),du(t,SYe),this.a=t}function Ih(e,t,n){wHe(t,n,e.gc()),this.c=e,this.a=t,this.b=n-t}function hLe(e,t,n){var i;wHe(t,n,e.c.length),i=n-t,QZ(e.c,t,i)}function n9t(e,t){uDe(e,en(Xi(Bd(t,24),bP)),en(Xi(t,bP)))}function gt(e,t){if(e<0||e>=t)throw L(new us(yue+e+Oue+t))}function fn(e,t){if(e<0||e>=t)throw L(new jZ(yue+e+Oue+t))}function dt(e,t){this.b=(yt(e),e),this.a=(t&Ip)==0?t|64|sh:t}function aLe(e){HPe(this),STe(this.a,nre(b.Math.max(8,e))<<1)}function Of(e){return Ls(_(B(tr,1),ue,8,0,[e.i.n,e.n,e.a]))}function i9t(){return Af(),_(B(Kc,1),he,132,0,[uae,yu,Qp])}function r9t(){return ef(),_(B(Hp,1),he,232,0,[Xs,$o,Us])}function s9t(){return Tc(),_(B(Ant,1),he,461,0,[ph,f1,Rl])}function o9t(){return Jo(),_(B(jnt,1),he,462,0,[uf,h1,Ll])}function c9t(){return Fg(),_(B(ode,1),he,423,0,[$m,sde,oW])}function u9t(){return dk(),_(B(nde,1),he,379,0,[eW,JK,tW])}function l9t(){return Sk(),_(B(sge,1),he,378,0,[gX,rge,HI])}function f9t(){return hv(),_(B(n1e,1),he,314,0,[Hv,Fx,t1e])}function h9t(){return jM(),_(B(r1e,1),he,337,0,[i1e,dI,EW])}function a9t(){return f0(),_(B(zrt,1),he,450,0,[AW,J4,Bm])}function d9t(){return Rg(),_(B(bW,1),he,361,0,[hb,d1,fb])}function g9t(){return da(),_(B(Zrt,1),he,303,0,[_x,qm,zv])}function b9t(){return Ly(),_(B(FW,1),he,292,0,[RW,LW,Bx])}function p9t(){return Vr(),_(B(Sct,1),he,452,0,[r8,jc,Ro])}function w9t(){return ba(),_(B(gge,1),he,339,0,[p1,dge,vX])}function m9t(){return HM(),_(B(mge,1),he,375,0,[pge,kX,wge])}function v9t(){return UM(),_(B(Ege,1),he,377,0,[CX,h5,rw])}function y9t(){return zy(),_(B(Oge,1),he,336,0,[xX,yge,s8])}function O9t(){return qM(),_(B(xge,1),he,338,0,[Sge,EX,kge])}function k9t(){return $g(),_(B(qct,1),he,454,0,[Jx,o8,XI])}function S9t(){return sj(),_(B(Uut,1),he,442,0,[qX,BX,_X])}function x9t(){return r7(),_(B(Gge,1),he,380,0,[sN,Xge,Uge])}function E9t(){return rj(),_(B(dbe,1),he,381,0,[abe,XX,hbe])}function C9t(){return QM(),_(B(lbe,1),he,293,0,[WX,ube,cbe])}function T9t(){return f7(),_(B(UX,1),he,437,0,[uN,lN,fN])}function A9t(){return pa(),_(B(nwe,1),he,334,0,[SN,bd,S8])}function M9t(){return Ef(),_(B(zpe,1),he,272,0,[p5,uw,w5])}function j9t(e,t){return Y$t(e,t,z(t,99)&&(c(t,18).Bb&Qr)!=0)}function P9t(e,t,n){var i;return i=Yk(e,t,!1),i.b<=t&&i.a<=n}function dLe(e,t,n){var i;i=new Tke,i.b=t,i.a=n,++t.b,ae(e.d,i)}function D9t(e,t){var n;return n=(yt(e),e).g,dee(!!n),yt(t),n(t)}function vne(e,t){var n,i;return i=cy(e,t),n=e.a.Zc(i),new AMe(e,n)}function I9t(e){return e.Db>>16!=6?null:c(Yq(e),235)}function N9t(e){if(e.p!=2)throw L(new fc);return en(e.f)&Ni}function $9t(e){if(e.p!=2)throw L(new fc);return en(e.k)&Ni}function R9t(e){return e.a==(vy(),qN)&&w2t(e,dRt(e.g,e.b)),e.a}function rv(e){return e.d==(vy(),qN)&&v2t(e,oBt(e.g,e.b)),e.d}function I(e){return $t(e.a<e.c.c.length),e.b=e.a++,e.c.c[e.b]}function L9t(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 Xi(e,t){return Xd(Pkt(Cs(e)?Yu(e):e,Cs(t)?Yu(t):t))}function kf(e,t){return Xd(Dkt(Cs(e)?Yu(e):e,Cs(t)?Yu(t):t))}function TB(e,t){return Xd(Ikt(Cs(e)?Yu(e):e,Cs(t)?Yu(t):t))}function F9t(e){return Pr(oa(ic(Qc(e,32)),32),ic(Qc(e,32)))}function Tg(e){return tn(e),z(e,14)?new gc(c(e,14)):iy(e.Kc())}function B9t(e,t){return gk(),e.c==t.c?qi(t.d,e.d):qi(e.c,t.c)}function _9t(e,t){return gk(),e.c==t.c?qi(e.d,t.d):qi(e.c,t.c)}function q9t(e,t){return gk(),e.c==t.c?qi(e.d,t.d):qi(t.c,e.c)}function Q9t(e,t){return gk(),e.c==t.c?qi(t.d,e.d):qi(t.c,e.c)}function H9t(e,t){var n;n=re(ve(e.a.We((Pn(),kN)))),tYe(e,t,n)}function z9t(e,t){var n;n=c(Lt(e.g,t),57),ec(t.d,new wje(e,n))}function K9t(e,t){var n,i;return n=Jze(e),i=Jze(t),n<i?-1:n>i?1:0}function gLe(e,t){var n,i;return n=YB(t),i=n,c(Lt(e.c,i),19).a}function bLe(e,t){var n;for(n=e+"";n.length<t;)n="0"+n;return n}function VA(e){return e.c==null||e.c.length==0?"n_"+e.g:"n_"+e.c}function yne(e){return e.c==null||e.c.length==0?"n_"+e.b:"n_"+e.c}function One(e,t){return e&&e.equals?e.equals(t):ne(e)===ne(t)}function kne(e,t){return t==0?!!e.o&&e.o.f!=0:uq(e,t)}function Al(e,t,n){var i;e.n&&t&&n&&(i=new h8e,ae(e.e,i))}function AB(e,t,n){var i;i=e.d[t.p],e.d[t.p]=e.d[n.p],e.d[n.p]=i}function pLe(e,t,n){this.d=e,this.j=t,this.e=n,this.o=-1,this.p=3}function wLe(e,t,n){this.d=e,this.k=t,this.f=n,this.o=-1,this.p=5}function mLe(e,t,n){eg.call(this,25),this.b=e,this.a=t,this.c=n}function fu(e){Rn(),eg.call(this,e),this.c=!1,this.a=!1}function vLe(e,t,n,i,r,o){vie.call(this,e,t,n,i,r),o&&(this.o=-2)}function yLe(e,t,n,i,r,o){yie.call(this,e,t,n,i,r),o&&(this.o=-2)}function OLe(e,t,n,i,r,o){zne.call(this,e,t,n,i,r),o&&(this.o=-2)}function kLe(e,t,n,i,r,o){Sie.call(this,e,t,n,i,r),o&&(this.o=-2)}function SLe(e,t,n,i,r,o){Kne.call(this,e,t,n,i,r),o&&(this.o=-2)}function xLe(e,t,n,i,r,o){Oie.call(this,e,t,n,i,r),o&&(this.o=-2)}function ELe(e,t,n,i,r,o){kie.call(this,e,t,n,i,r),o&&(this.o=-2)}function CLe(e,t,n,i,r,o){Wne.call(this,e,t,n,i,r),o&&(this.o=-2)}function TLe(e,t,n,i){qC.call(this,n),this.b=e,this.c=t,this.d=i}function Sne(e,t){this.a=new de,this.d=new de,this.f=e,this.c=t}function ALe(){this.c=new eDe,this.a=new yRe,this.b=new DTe,KMe()}function MLe(){dv(),this.b=new Zt,this.a=new Zt,this.c=new de}function jLe(e,t){this.g=e,this.d=(vy(),qN),this.a=qN,this.b=t}function PLe(e,t){this.f=e,this.a=(vy(),_N),this.c=_N,this.b=t}function xne(e,t){!e.c&&(e.c=new yi(e,0)),nP(e.c,(Gn(),$8),t)}function YA(){YA=X,FX=new yJ("DFS",0),Qge=new yJ("BFS",1)}function W9t(e,t,n){var i;return i=c(e.Zb().xc(t),14),!!i&&i.Hc(n)}function DLe(e,t,n){var i;return i=c(e.Zb().xc(t),14),!!i&&i.Mc(n)}function ILe(e,t,n,i){return e.a+=""+uu(t==null?sc:Ms(t),n,i),e}function Ks(e,t,n,i,r,o){return Wqe(e,t,n,o),Are(e,i),Mre(e,r),e}function MB(e){return $t(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function ck(e){for(;e.d>0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function NLe(e){return e.a?e.e.length==0?e.a.a:e.a.a+(""+e.e):e.c}function X9t(e){return!!e.a&&Bc(e.a.a).i!=0&&!(e.b&&bq(e.b))}function U9t(e){return!!e.u&&ao(e.u.a).i!=0&&!(e.n&&gq(e.n))}function $Le(e){return IF(e.e.Hd().gc()*e.c.Hd().gc(),16,new D7e(e))}function G9t(e,t){return h$e(ic(e.q.getTime()),ic(t.q.getTime()))}function nh(e){return c(Mf(e,Y(cW,HH,17,e.c.length,0,1)),474)}function ES(e){return c(Mf(e,Y(Wh,rd,10,e.c.length,0,1)),193)}function V9t(e){return lu(),!Fr(e)&&!(!Fr(e)&&e.c.i.c==e.d.i.c)}function RLe(e,t,n){var i;i=(tn(e),new gc(e)),Cjt(new GRe(i,t,n))}function CS(e,t,n){var i;i=(tn(e),new gc(e)),Tjt(new VRe(i,t,n))}function LLe(e,t){var n;return n=1-t,e.a[n]=RM(e.a[n],n),RM(e,t)}function FLe(e,t){var n;e.e=new SZ,n=Tp(t),ir(n,e.c),PUe(e,n,0)}function gr(e,t,n,i){var r;r=new lY,r.a=t,r.b=n,r.c=i,En(e.a,r)}function ye(e,t,n,i){var r;r=new lY,r.a=t,r.b=n,r.c=i,En(e.b,r)}function Ml(e){var t,n,i;return t=new m$e,n=pQ(t,e),$Qt(t),i=n,i}function Ene(){var e,t,n;return t=(n=(e=new tg,e),n),ae(qwe,t),t}function ZA(e){return e.j.c=Y(It,Ce,1,0,5,1),nne(e.c),j6t(e.a),e}function Xw(e){return pO(),z(e.g,10)?c(e.g,10):null}function Y9t(e){return zw(e).dc()?!1:(V3t(e,new _e),!0)}function Z9t(e){if(!("stack"in e))try{throw e}catch{}return e}function TS(e,t){if(e<0||e>=t)throw L(new us(hNt(e,t)));return e}function BLe(e,t,n){if(e<0||t<e||t>n)throw L(new us(RIt(e,t,n)))}function jB(e,t){if(Wi(e.a,t),t.d)throw L(new Is(KYe));t.d=e}function PB(e,t){if(t.$modCount!=e.$modCount)throw L(new Au)}function _Le(e,t){return z(t,42)?yq(e.a,c(t,42)):!1}function qLe(e,t){return z(t,42)?yq(e.a,c(t,42)):!1}function QLe(e,t){return z(t,42)?yq(e.a,c(t,42)):!1}function J9t(e,t){return e.a<=e.b?(t.ud(e.a++),!0):!1}function Ag(e){var t;return Cs(e)?(t=e,t==-0?0:t):uxt(e)}function JA(e){var t;return Qd(e),t=new Ys,Dw(e.a,new Sxe(t)),t}function HLe(e){var t;return Qd(e),t=new Dr,Dw(e.a,new kxe(t)),t}function mr(e,t){this.a=e,J5.call(this,e),sp(t,e.gc()),this.b=t}function Cne(e){this.e=e,this.b=this.e.a.entries(),this.a=new Array}function eSt(e){return IF(e.e.Hd().gc()*e.c.Hd().gc(),273,new P7e(e))}function eM(e){return new jo((du(e,zQ),kM(Pr(Pr(5,e),e/10|0))))}function zLe(e){return c(Mf(e,Y(art,kZe,11,e.c.length,0,1)),1943)}function tSt(e,t,n){return n.f.c.length>0?Hte(e.a,t,n):Hte(e.b,t,n)}function nSt(e,t,n){e.d&&Zo(e.d.e,e),e.d=t,e.d&&Jb(e.d.e,n,e)}function DB(e,t){GHt(t,e),ute(e.d),ute(c(D(e,(ke(),RI)),207))}function uk(e,t){UHt(t,e),cte(e.d),cte(c(D(e,(ke(),RI)),207))}function Mg(e,t){var n,i;return n=ua(e,t),i=null,n&&(i=n.fe()),i}function py(e,t){var n,i;return n=lp(e,t),i=null,n&&(i=n.ie()),i}function lk(e,t){var n,i;return n=ua(e,t),i=null,n&&(i=n.ie()),i}function la(e,t){var n,i;return n=ua(e,t),i=null,n&&(i=woe(n)),i}function iSt(e,t,n){var i;return i=Yy(n),Yj(e.g,i,t),Yj(e.i,t,n),t}function rSt(e,t,n){var i;i=DAt();try{return l4t(e,t,n)}finally{bSt(i)}}function KLe(e){var t;t=e.Wg(),this.a=z(t,69)?c(t,69).Zh():t.Kc()}function Ji(){sAe.call(this),this.j.c=Y(It,Ce,1,0,5,1),this.a=-1}function Tne(e,t,n,i){this.d=e,this.n=t,this.g=n,this.o=i,this.p=-1}function WLe(e,t,n,i){this.e=i,this.d=null,this.c=e,this.a=t,this.b=n}function Ane(e,t,n){this.d=new NEe(this),this.e=e,this.i=t,this.f=n}function tM(){tM=X,BW=new hJ(x4,0),S1e=new hJ("TOP_LEFT",1)}function XLe(){XLe=X,Tge=Q$e(we(1),we(4)),Cge=Q$e(we(1),we(2))}function ULe(){ULe=X,Flt=mn((hT(),_(B(Llt,1),he,551,0,[VX])))}function GLe(){GLe=X,Rlt=mn((fT(),_(B(Cbe,1),he,482,0,[GX])))}function VLe(){VLe=X,nft=mn((wO(),_(B(Xbe,1),he,530,0,[sE])))}function YLe(){YLe=X,uit=mn((uT(),_(B($ae,1),he,481,0,[KK])))}function sSt(){return Lg(),_(B(tit,1),he,406,0,[Cx,Ex,HK,zK])}function oSt(){return bM(),_(B(AD,1),he,297,0,[$K,rae,sae,oae])}function cSt(){return Ik(),_(B(oit,1),he,394,0,[Px,ID,ND,Dx])}function uSt(){return mv(),_(B(iit,1),he,323,0,[Ax,Tx,Mx,jx])}function lSt(){return Fy(),_(B(ert,1),he,405,0,[lb,Kp,zp,Nm])}function fSt(){return XM(),_(B(vrt,1),he,360,0,[dW,oI,cI,Lx])}function ZLe(e,t,n,i){return z(n,54)?new FDe(e,t,n,i):new Dte(e,t,n,i)}function hSt(){return Tf(),_(B(Art,1),he,411,0,[Qv,U4,G4,gW])}function aSt(e){var t;return e.j==(me(),Wt)&&(t=yXe(e),dc(t,Tt))}function dSt(e,t){var n;n=t.a,jr(n,t.c.d),dr(n,t.d.d),ap(n.a,e.n)}function JLe(e,t){return c(pg(kA(c(zn(e.k,t),15).Oc(),Rm)),113)}function eFe(e,t){return c(pg(SA(c(zn(e.k,t),15).Oc(),Rm)),113)}function gSt(e){return new dt(hEt(c(e.a.dd(),14).gc(),e.a.cd()),16)}function wy(e){return z(e,14)?c(e,14).dc():!e.Kc().Ob()}function sv(e){return pO(),z(e.g,145)?c(e.g,145):null}function tFe(e){if(e.e.g!=e.b)throw L(new Au);return!!e.c&&e.d>0}function Sn(e){return $t(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function Mne(e,t){yt(t),bi(e.a,e.c,t),e.c=e.c+1&e.a.length-1,nKe(e)}function zd(e,t){yt(t),e.b=e.b-1&e.a.length-1,bi(e.a,e.b,t),nKe(e)}function nFe(e,t){var n;for(n=e.j.c.length;n<t;n++)ae(e.j,e.rg())}function iFe(e,t,n,i){var r;return r=i[t.g][n.g],re(ve(D(e.a,r)))}function jne(e,t,n,i,r){this.i=e,this.a=t,this.e=n,this.j=i,this.f=r}function rFe(e,t,n,i,r){this.a=e,this.e=t,this.f=n,this.b=i,this.g=r}function bSt(e){e&&hxt((TZ(),Ahe)),--OD,e&&kD!=-1&&(Jvt(kD),kD=-1)}function pSt(){return mp(),_(B(pX,1),he,197,0,[zI,bX,Gm,Um])}function wSt(){return Jy(),_(B(jge,1),he,393,0,[YI,l8,tE,f8])}function mSt(){return xj(),_(B(obe,1),he,340,0,[KX,rbe,sbe,ibe])}function vSt(){return iu(),_(B(A8,1),he,374,0,[kE,W0,OE,lw])}function ySt(){return bu(),_(B(Bft,1),he,285,0,[mE,Uh,y1,wE])}function OSt(){return ma(),_(B(kU,1),he,218,0,[OU,pE,m5,s3])}function kSt(){return uj(),_(B(hwe,1),he,311,0,[EU,uwe,fwe,lwe])}function SSt(){return nu(),_(B(eht,1),he,396,0,[Eu,dwe,awe,gwe])}function xSt(e){return UA(),Jc(jU,e)?c(Lt(jU,e),331).ug():null}function Du(e,t,n){return t<0?Uq(e,n):c(n,66).Nj().Sj(e,e.yh(),t)}function ESt(e,t,n){var i;return i=Yy(n),Yj(e.d,i,t),Qn(e.e,t,n),t}function CSt(e,t,n){var i;return i=Yy(n),Yj(e.j,i,t),Qn(e.k,t,n),t}function sFe(e){var t,n;return t=(cg(),n=new fY,n),e&&iQ(t,e),t}function Pne(e){var t;return t=e.ri(e.i),e.i>0&&bo(e.g,0,t,0,e.i),t}function oFe(e,t){gT();var n;return n=c(Lt(RN,e),55),!n||n.wj(t)}function TSt(e){if(e.p!=1)throw L(new fc);return en(e.f)<<24>>24}function ASt(e){if(e.p!=1)throw L(new fc);return en(e.k)<<24>>24}function MSt(e){if(e.p!=7)throw L(new fc);return en(e.k)<<16>>16}function jSt(e){if(e.p!=7)throw L(new fc);return en(e.f)<<16>>16}function fa(e){var t;for(t=0;e.Ob();)e.Pb(),t=Pr(t,1);return kM(t)}function cFe(e,t){var n;return n=new Pw,e.xd(n),n.a+="..",t.yd(n),n.a}function PSt(e,t,n){var i;i=c(Lt(e.g,n),57),ae(e.a.c,new wr(t,i))}function DSt(e,t,n){return QF(ve(Hs(ms(e.f,t))),ve(Hs(ms(e.f,n))))}function nM(e,t,n){return Jj(e,t,n,z(t,99)&&(c(t,18).Bb&Qr)!=0)}function ISt(e,t,n){return d4(e,t,n,z(t,99)&&(c(t,18).Bb&Qr)!=0)}function NSt(e,t,n){return iRt(e,t,n,z(t,99)&&(c(t,18).Bb&Qr)!=0)}function Dne(e,t){return e==(jt(),zi)&&t==zi?4:e==zi||t==zi?8:32}function uFe(e,t){return ne(t)===ne(e)?"(this Map)":t==null?sc:Ms(t)}function $St(e,t){return c(t==null?Hs(ms(e.f,null)):yO(e.g,t),281)}function lFe(e,t,n){var i;return i=Yy(n),Qn(e.b,i,t),Qn(e.c,t,n),t}function fFe(e,t){var n;for(n=t;n;)Gb(e,n.i,n.j),n=pi(n);return e}function Ine(e,t){var n;return n=vS(iy(new ZB(e,t))),dA(new ZB(e,t)),n}function Nh(e,t){Kr();var n;return n=c(e,66).Mj(),bIt(n,t),n.Ok(t)}function RSt(e,t,n,i,r){var o;o=uRt(r,n,i),ae(t,oNt(r,o)),YDt(e,r,t)}function hFe(e,t,n){e.i=0,e.e=0,t!=n&&(RQe(e,t,n),$Qe(e,t,n))}function Nne(e,t){var n;n=e.q.getHours(),e.q.setFullYear(t+r1),Uk(e,n)}function LSt(e,t,n){if(n){var i=n.ee();e.a[t]=i(n)}else delete e.a[t]}function IB(e,t,n){if(n){var i=n.ee();n=i(n)}else n=void 0;e.a[t]=n}function aFe(e){if(e<0)throw L(new wAe("Negative array size: "+e))}function ao(e){return e.n||(Fc(e),e.n=new KNe(e,ns,e),ws(e)),e.n}function fk(e){return $t(e.a<e.c.a.length),e.b=e.a,v_e(e),e.c.b[e.b]}function $ne(e){e.b!=e.c&&(e.a=Y(It,Ce,1,8,5,1),e.b=0,e.c=0)}function dFe(e){this.b=new Zt,this.c=new Zt,this.d=new Zt,this.a=e}function op(e,t){Rn(),eg.call(this,e),this.a=t,this.c=-1,this.b=-1}function cp(e,t,n,i){pLe.call(this,1,n,i),this.c=e,this.b=t}function NB(e,t,n,i){wLe.call(this,1,n,i),this.c=e,this.b=t}function $B(e,t,n,i,r,o,h){u_.call(this,t,i,r,o,h),this.c=e,this.a=n}function n0(e,t,n){this.e=e,this.a=It,this.b=YUe(t),this.c=t,this.d=n}function RB(e){this.e=e,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function gFe(e){this.c=e,this.a=c(Zu(e),148),this.b=this.a.Aj().Nh()}function Rne(e){this.d=e,this.b=this.d.a.entries(),this.a=this.b.next()}function i0(){Zt.call(this),NDe(this),this.d.b=this.d,this.d.a=this.d}function bFe(e,t){Dee.call(this),this.a=e,this.b=t,ae(this.a.b,this)}function FSt(e,t){var n;return n=t!=null?mo(e,t):Hs(ms(e.f,t)),RT(n)}function BSt(e,t){var n;return n=t!=null?mo(e,t):Hs(ms(e.f,t)),RT(n)}function pFe(e,t){var n;for(n=0;n<t;++n)bi(e,n,new $Y(c(e[n],42)))}function _St(e,t){var n;for(n=e.d-1;n>=0&&e.a[n]===t[n];n--);return n<0}function wFe(e,t){Hy();var n;return n=e.j.g-t.j.g,n!=0?n:0}function mFe(e,t){return yt(t),e.a!=null?kkt(t.Kb(e.a)):TD}function iM(e){var t;return e?new mte(e):(t=new ra,w_(t,e),t)}function hu(e,t){var n;return t.b.Kb(f_e(e,t.c.Ee(),(n=new Txe(t),n)))}function rM(e){toe(),uDe(this,en(Xi(Bd(e,24),bP)),en(Xi(e,bP)))}function vFe(){vFe=X,knt=mn((gj(),_(B(aae,1),he,428,0,[FK,hae])))}function yFe(){yFe=X,Snt=mn((yM(),_(B(gae,1),he,427,0,[dae,BK])))}function OFe(){OFe=X,Eit=mn((OM(),_(B(Qae,1),he,424,0,[VK,LD])))}function kFe(){kFe=X,prt=mn((Dy(),_(B(brt,1),he,511,0,[$x,lW])))}function SFe(){SFe=X,Hrt=mn((zS(),_(B(u1e,1),he,419,0,[gI,c1e])))}function xFe(){xFe=X,Xrt=mn((RS(),_(B(h1e,1),he,479,0,[f1e,pI])))}function EFe(){EFe=X,Cct=mn((jS(),_(B(vge,1),he,376,0,[SX,Zx])))}function CFe(){CFe=X,kct=mn((_S(),_(B(bge,1),he,421,0,[yX,OX])))}function TFe(){TFe=X,Brt=mn((aM(),_(B(e1e,1),he,422,0,[Jde,xW])))}function AFe(){AFe=X,est=mn((tM(),_(B(x1e,1),he,420,0,[BW,S1e])))}function MFe(){MFe=X,wut=mn((Yl(),_(B(put,1),he,520,0,[sw,w1])))}function jFe(){jFe=X,Xct=mn((hk(),_(B(Wct,1),he,523,0,[u8,c8])))}function PFe(){PFe=X,eut=mn((th(),_(B(Jct,1),he,516,0,[Ob,hd])))}function DFe(){DFe=X,nut=mn((yf(),_(B(tut,1),he,515,0,[_0,Ff])))}function IFe(){IFe=X,xut=mn((Eg(),_(B(Sut,1),he,455,0,[m1,Vm])))}function NFe(){NFe=X,Qut=mn((YA(),_(B(Hge,1),he,425,0,[FX,Qge])))}function $Fe(){$Fe=X,Xut=mn((FM(),_(B(zge,1),he,495,0,[rN,d5])))}function RFe(){RFe=X,qut=mn((XA(),_(B(qge,1),he,480,0,[LX,_ge])))}function LFe(){LFe=X,Vut=mn((gM(),_(B(Wge,1),he,426,0,[Kge,QX])))}function FFe(){FFe=X,ift=mn((e7(),_(B(Gbe,1),he,429,0,[dN,Ube])))}function BFe(){BFe=X,Blt=mn((PS(),_(B(Tbe,1),he,430,0,[YX,hN])))}function hk(){hk=X,u8=new gJ("UPPER",0),c8=new gJ("LOWER",1)}function qSt(e,t){var n;n=new $2,e0(n,"x",t.a),e0(n,"y",t.b),J2(e,n)}function QSt(e,t){var n;n=new $2,e0(n,"x",t.a),e0(n,"y",t.b),J2(e,n)}function HSt(e,t){var n,i;i=!1;do n=TQe(e,t),i=i|n;while(n);return i}function Lne(e,t){var n,i;for(n=t,i=0;n>0;)i+=e.a[n],n-=n&-n;return i}function _Fe(e,t){var n;for(n=t;n;)Gb(e,-n.i,-n.j),n=pi(n);return e}function kr(e,t){var n,i;for(yt(t),i=e.Kc();i.Ob();)n=i.Pb(),t.td(n)}function qFe(e,t){var n;return n=t.cd(),new lg(n,e.e.pc(n,c(t.dd(),14)))}function ji(e,t,n,i){var r;r=new Nt,r.c=t,r.b=n,r.a=i,i.b=n.a=r,++e.b}function Iu(e,t,n){var i;return i=(gt(t,e.c.length),e.c[t]),e.c[t]=n,i}function zSt(e,t,n){return c(t==null?qo(e.f,null,n):Bg(e.g,t,n),281)}function LB(e){return e.c&&e.d?yne(e.c)+"->"+yne(e.d):"e_"+gg(e)}function my(e,t){return(g0(e),dO(new ft(e,new cie(t,e.a)))).sd(H4)}function KSt(){return _r(),_(B(ide,1),he,356,0,[wh,a1,Ho,xo,Os])}function WSt(){return me(),_(B(Hr,1),co,61,0,[qs,Ot,Tt,Wt,xt])}function XSt(e){return YC(),function(){return rSt(e,this,arguments)}}function USt(){return Date.now?Date.now():new Date().getTime()}function Fr(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function QFe(e){if(!e.c.Sb())throw L(new Zs);return e.a=!0,e.c.Ub()}function AS(e){e.i=0,_9(e.b,null),_9(e.c,null),e.a=null,e.e=null,++e.g}function Fne(e){t3t.call(this,e==null?sc:Ms(e),z(e,78)?c(e,78):null)}function HFe(e){gYe(),dTe(this),this.a=new ai,hre(this,e),En(this.a,e)}function zFe(){nF(this),this.b=new De(Oi,Oi),this.a=new De(Li,Li)}function KFe(e,t){this.c=0,this.b=t,vPe.call(this,e,17493),this.a=this.c}function FB(e){sM(),!$f&&(this.c=e,this.e=!0,this.a=new de)}function sM(){sM=X,$f=!0,ant=!1,dnt=!1,bnt=!1,gnt=!1}function Bne(e,t){return z(t,149)?Je(e.c,c(t,149).c):!1}function _ne(e,t){var n;return n=0,e&&(n+=e.f.a/2),t&&(n+=t.f.a/2),n}function BB(e,t){var n;return n=c(jg(e.d,t),23),n||c(jg(e.e,t),23)}function WFe(e){this.b=e,Ft.call(this,e),this.a=c(mt(this.b.a,4),126)}function XFe(e){this.b=e,W2.call(this,e),this.a=c(mt(this.b.a,4),126)}function Fc(e){return e.t||(e.t=new iTe(e),Tk(new pAe(e),0,e.t)),e.t}function GSt(){return Yr(),_(B(O8,1),he,103,0,[Xh,Bl,ul,Ta,Aa])}function VSt(){return im(),_(B(E8,1),he,249,0,[O1,vE,iwe,x8,rwe])}function YSt(){return nf(),_(B(gd,1),he,175,0,[Ct,or,yh,q0,dd])}function ZSt(){return x7(),_(B(Pbe,1),he,316,0,[Abe,ZX,jbe,JX,Mbe])}function JSt(){return Nk(),_(B(cge,1),he,315,0,[oge,wX,mX,n8,i8])}function e7t(){return m0(),_(B(o1e,1),he,335,0,[CW,s1e,TW,H6,Q6])}function t7t(){return f4(),_(B(Ilt,1),he,355,0,[Ym,e3,p8,b8,w8])}function n7t(){return lm(),_(B(jrt,1),he,363,0,[lI,hI,aI,fI,uI])}function i7t(){return Fu(),_(B(L1e,1),he,163,0,[Kx,U6,g1,G6,Gp])}function vy(){vy=X;var e,t;_N=(z3(),t=new zC,t),qN=(e=new tL,e)}function UFe(e){var t;return e.c||(t=e.r,z(t,88)&&(e.c=c(t,26))),e.c}function r7t(e){return e.e=3,e.d=e.Yb(),e.e!=2?(e.e=0,!0):!1}function _B(e){var t,n,i;return t=e&zc,n=e>>22&zc,i=e<0?Sa:0,Bo(t,n,i)}function s7t(e){var t,n,i,r;for(n=e,i=0,r=n.length;i<r;++i)t=n[i],ik(t)}function o7t(e,t){var n,i;n=c(nTt(e.c,t),14),n&&(i=n.gc(),n.$b(),e.d-=i)}function GFe(e,t){var n,i;return n=t.cd(),i=fre(e,n),!!i&&wo(i.e,t.dd())}function ov(e,t){return t==0||e.e==0?e:t>0?WHe(e,t):gUe(e,-t)}function qne(e,t){return t==0||e.e==0?e:t>0?gUe(e,t):WHe(e,-t)}function nn(e){if(an(e))return e.c=e.a,e.a.Pb();throw L(new Zs)}function VFe(e){var t,n;return t=e.c.i,n=e.d.i,t.k==(jt(),Ri)&&n.k==Ri}function qB(e){var t;return t=new xg,vs(t,e),oe(t,(ke(),bs),null),t}function QB(e,t,n){var i;return i=e.Yg(t),i>=0?e._g(i,n,!0):Xg(e,t,n)}function Qne(e,t,n,i){var r;for(r=0;r<qK;r++)yA(e.a[t.g][r],n,i[t.g])}function Hne(e,t,n,i){var r;for(r=0;r<PD;r++)vA(e.a[r][t.g],n,i[t.g])}function zne(e,t,n,i,r){pLe.call(this,t,i,r),this.c=e,this.a=n}function Kne(e,t,n,i,r){wLe.call(this,t,i,r),this.c=e,this.a=n}function Wne(e,t,n,i,r){ZFe.call(this,t,i,r),this.c=e,this.a=n}function jl(e,t,n,i,r){ZFe.call(this,t,i,r),this.c=e,this.b=n}function YFe(e,t,n){qC.call(this,n),this.b=e,this.c=t,this.d=(J_(),$U)}function ZFe(e,t,n){this.d=e,this.k=t?1:0,this.f=n?1:0,this.o=-1,this.p=0}function JFe(e,t,n){var i;i=new HJ(e.a),vk(i,e.a.a),qo(i.f,t,n),e.a.a=i}function MS(e,t){e.qi(e.i+1),_O(e,e.i,e.oi(e.i,t)),e.bi(e.i++,t),e.ci()}function ak(e){var t,n;++e.j,t=e.g,n=e.i,e.g=null,e.i=0,e.di(n,t),e.ci()}function Sf(e){var t,n;return tn(e),t=C6t(e.length),n=new jo(t),rre(n,e),n}function cv(e){var t;return t=(tn(e),e?new gc(e):iy(e.Kc())),zq(t),ej(t)}function Ka(e,t){var n;return n=(gt(t,e.c.length),e.c[t]),QZ(e.c,t,1),n}function zn(e,t){var n;return n=c(e.c.xc(t),14),!n&&(n=e.ic(t)),e.pc(t,n)}function Xne(e,t){var n,i;return n=(yt(e),e),i=(yt(t),t),n==i?0:n<i?-1:1}function eBe(e){var t;return t=e.e+e.f,isNaN(t)&&iA(e.d)?e.d:t}function ha(e,t){return e.a?pn(e.a,e.b):e.a=new cu(e.d),RO(e.a,t),e}function Une(e,t){if(e<0||e>t)throw L(new us(xoe(e,t,"index")));return e}function HB(e,t,n,i){var r;return r=Y(Vt,yn,25,t,15,1),mDt(r,e,t,n,i),r}function c7t(e,t){var n;n=e.q.getHours()+(t/60|0),e.q.setMinutes(t),Uk(e,n)}function u7t(e,t){return b.Math.min(Kd(t.a,e.d.d.c),Kd(t.b,e.d.d.c))}function uv(e,t){return ur(t)?t==null?qoe(e.f,null):lQe(e.g,t):qoe(e.f,t)}function xf(e){this.c=e,this.a=new $(this.c.a),this.b=new $(this.c.b)}function oM(){this.e=new de,this.c=new de,this.d=new de,this.b=new de}function tBe(){this.g=new oZ,this.b=new oZ,this.a=new de,this.k=new de}function nBe(e,t,n){this.a=e,this.c=t,this.d=n,ae(t.e,this),ae(n.b,this)}function iBe(e,t){mPe.call(this,t.rd(),t.qd()&-6),yt(e),this.a=e,this.b=t}function rBe(e,t){vPe.call(this,t.rd(),t.qd()&-6),yt(e),this.a=e,this.b=t}function Gne(e,t){YL.call(this,t.rd(),t.qd()&-6),yt(e),this.a=e,this.b=t}function cM(e,t,n){this.a=e,this.b=t,this.c=n,ae(e.t,this),ae(t.i,this)}function uM(){this.b=new ai,this.a=new ai,this.b=new ai,this.a=new ai}function lM(){lM=X,m8=new ci("org.eclipse.elk.labels.labelManager")}function sBe(){sBe=X,Ude=new Ki("separateLayerConnections",(XM(),dW))}function Yl(){Yl=X,sw=new wJ("REGULAR",0),w1=new wJ("CRITICAL",1)}function jS(){jS=X,SX=new dJ("STACKED",0),Zx=new dJ("SEQUENCED",1)}function PS(){PS=X,YX=new SJ("FIXED",0),hN=new SJ("CENTER_NODE",1)}function l7t(e,t){var n;return n=dQt(e,t),e.b=new LM(n.c.length),Eqt(e,n)}function f7t(e,t,n){var i;return++e.e,--e.f,i=c(e.d[t].$c(n),133),i.dd()}function oBe(e){var t;return e.a||(t=e.r,z(t,148)&&(e.a=c(t,148))),e.a}function Vne(e){if(e.a){if(e.e)return Vne(e.e)}else return e;return null}function h7t(e,t){return e.p<t.p?1:e.p>t.p?-1:0}function fM(e,t){return yt(t),e.c<e.d?(e.ze(t,e.c++),!0):!1}function cBe(e,t){return Jc(e.a,t)?(uv(e.a,t),!0):!1}function a7t(e){var t,n;return t=e.cd(),n=c(e.dd(),14),hS(n.Nc(),new R7e(t))}function d7t(e){var t;return t=c(Kte(e.b,e.b.length),9),new ju(e.a,t,e.c)}function g7t(e){var t;return g0(e),t=new rNe(e,e.a.e,e.a.d|4),new kee(e,t)}function uBe(e){var t;for(Qd(e),t=0;e.a.sd(new Td);)t=Pr(t,1);return t}function Yne(e,t,n){var i,r;for(i=0,r=0;r<t.length;r++)i+=e.$f(t[r],i,n)}function b7t(e,t){var n;e.C&&(n=c(rs(e.b,t),124).n,n.d=e.C.d,n.a=e.C.a)}function lv(e,t,n){return TS(t,e.e.Hd().gc()),TS(n,e.c.Hd().gc()),e.a[t][n]}function Wa(e,t){t1(),this.e=e,this.d=1,this.a=_(B(Vt,1),yn,25,15,[t])}function hM(e,t,n,i){this.f=e,this.e=t,this.d=n,this.b=i,this.c=i?i.d:null}function Zne(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 p7t(e,t,n,i){NGe(e,t,n,d4(e,t,i,z(t,99)&&(c(t,18).Bb&Qr)!=0))}function w7t(e,t){Kt(t,"Label management",1),RT(D(e,(lM(),m8))),_t(t)}function jo(e){nF(this),oA(e>=0,"Initial capacity must not be negative")}function lBe(){lBe=X,Tnt=mn((ef(),_(B(Hp,1),he,232,0,[Xs,$o,Us])))}function fBe(){fBe=X,Mnt=mn((Tc(),_(B(Ant,1),he,461,0,[ph,f1,Rl])))}function hBe(){hBe=X,Pnt=mn((Jo(),_(B(jnt,1),he,462,0,[uf,h1,Ll])))}function aBe(){aBe=X,pnt=mn((Af(),_(B(Kc,1),he,132,0,[uae,yu,Qp])))}function dBe(){dBe=X,Wit=mn((dk(),_(B(nde,1),he,379,0,[eW,JK,tW])))}function gBe(){gBe=X,crt=mn((Fg(),_(B(ode,1),he,423,0,[$m,sde,oW])))}function bBe(){bBe=X,_rt=mn((hv(),_(B(n1e,1),he,314,0,[Hv,Fx,t1e])))}function pBe(){pBe=X,qrt=mn((jM(),_(B(r1e,1),he,337,0,[i1e,dI,EW])))}function wBe(){wBe=X,Krt=mn((f0(),_(B(zrt,1),he,450,0,[AW,J4,Bm])))}function mBe(){mBe=X,Rrt=mn((Rg(),_(B(bW,1),he,361,0,[hb,d1,fb])))}function vBe(){vBe=X,Jrt=mn((da(),_(B(Zrt,1),he,303,0,[_x,qm,zv])))}function yBe(){yBe=X,Yrt=mn((Ly(),_(B(FW,1),he,292,0,[RW,LW,Bx])))}function OBe(){OBe=X,wct=mn((Sk(),_(B(sge,1),he,378,0,[gX,rge,HI])))}function kBe(){kBe=X,Ect=mn((HM(),_(B(mge,1),he,375,0,[pge,kX,wge])))}function SBe(){SBe=X,Oct=mn((ba(),_(B(gge,1),he,339,0,[p1,dge,vX])))}function xBe(){xBe=X,xct=mn((Vr(),_(B(Sct,1),he,452,0,[r8,jc,Ro])))}function EBe(){EBe=X,Mct=mn((UM(),_(B(Ege,1),he,377,0,[CX,h5,rw])))}function CBe(){CBe=X,Tct=mn((zy(),_(B(Oge,1),he,336,0,[xX,yge,s8])))}function TBe(){TBe=X,Act=mn((qM(),_(B(xge,1),he,338,0,[Sge,EX,kge])))}function ABe(){ABe=X,Qct=mn(($g(),_(B(qct,1),he,454,0,[Jx,o8,XI])))}function MBe(){MBe=X,Gut=mn((sj(),_(B(Uut,1),he,442,0,[qX,BX,_X])))}function jBe(){jBe=X,Yut=mn((r7(),_(B(Gge,1),he,380,0,[sN,Xge,Uge])))}function PBe(){PBe=X,glt=mn((rj(),_(B(dbe,1),he,381,0,[abe,XX,hbe])))}function DBe(){DBe=X,dlt=mn((QM(),_(B(lbe,1),he,293,0,[WX,ube,cbe])))}function IBe(){IBe=X,$lt=mn((f7(),_(B(UX,1),he,437,0,[uN,lN,fN])))}function NBe(){NBe=X,Fft=mn((pa(),_(B(nwe,1),he,334,0,[SN,bd,S8])))}function $Be(){$Be=X,Nft=mn((Ef(),_(B(zpe,1),he,272,0,[p5,uw,w5])))}function m7t(){return br(),_(B(swe,1),he,98,0,[k1,_f,v5,K0,Vh,To])}function r0(e,t){return!e.o&&(e.o=new tu((Io(),E1),Sb,e,0)),eq(e.o,t)}function v7t(e){return!e.g&&(e.g=new PC),!e.g.d&&(e.g.d=new eTe(e)),e.g.d}function y7t(e){return!e.g&&(e.g=new PC),!e.g.a&&(e.g.a=new tTe(e)),e.g.a}function O7t(e){return!e.g&&(e.g=new PC),!e.g.b&&(e.g.b=new JCe(e)),e.g.b}function DS(e){return!e.g&&(e.g=new PC),!e.g.c&&(e.g.c=new nTe(e)),e.g.c}function k7t(e,t,n){var i,r;for(r=new Ry(t,e),i=0;i<n;++i)yj(r);return r}function zB(e,t,n){var i,r;if(n!=null)for(i=0;i<t;++i)r=n[i],e.fi(i,r)}function KB(e,t,n,i){var r;return r=Y(Vt,yn,25,t+1,15,1),r_t(r,e,t,n,i),r}function Y(e,t,n,i,r,o){var h;return h=Xze(r,i),r!=10&&_(B(e,o),t,n,r,h),h}function S7t(e,t,n,i){return n&&(i=n.gh(t,ui(n.Tg(),e.c.Lj()),null,i)),i}function x7t(e,t,n,i){return n&&(i=n.ih(t,ui(n.Tg(),e.c.Lj()),null,i)),i}function Jne(e,t,n){c(e.b,65),c(e.b,65),c(e.b,65),ec(e.a,new zIe(n,t,e))}function eie(e,t,n){if(e<0||t>n||t<e)throw L(new jZ(pP+e+vue+t+wue+n))}function yy(e){if(!e)throw L(new Es("Unable to add element to queue"))}function WB(e){e?(this.c=e,this.b=null):(this.c=null,this.b=new de)}function XB(e,t){mT.call(this,e,t),this.a=Y(Izt,aP,436,2,0,1),this.b=!0}function tie(e){xQe.call(this,e,0),NDe(this),this.d.b=this.d,this.d.a=this.d}function UB(e){var t;return t=e.b,t.b==0?null:c(rf(t,0),188).b}function RBe(e,t){var n;return n=new Lc,n.c=!0,n.d=t.dd(),jVe(e,t.cd(),n)}function E7t(e,t){var n;n=e.q.getHours()+(t/3600|0),e.q.setSeconds(t),Uk(e,n)}function nie(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 Kd(e,t){var n,i;return n=e.a-t.a,i=e.b-t.b,b.Math.sqrt(n*n+i*i)}function aM(){aM=X,Jde=new uJ("QUADRATIC",0),xW=new uJ("SCANLINE",1)}function LBe(){LBe=X,Dct=Ec(Fn(new Ji,(_r(),wh),(Ur(),fW)),Os,Rx)}function C7t(){return Op(),_(B(lU,1),he,291,0,[uU,hE,fE,cU,uE,lE])}function T7t(){return Rh(),_(B(epe,1),he,248,0,[sU,oE,cE,pN,gN,bN])}function A7t(){return yv(),_(B(Z4,1),he,227,0,[Y4,q6,V4,Wp,Fm,Lm])}function M7t(){return r4(),_(B(k1e,1),he,275,0,[z6,m1e,O1e,y1e,v1e,w1e])}function j7t(){return k7(),_(B(p1e,1),he,274,0,[wI,d1e,b1e,a1e,g1e,NW])}function P7t(){return Dj(),_(B(ige,1),he,313,0,[dX,tge,aX,ege,nge,QI])}function D7t(){return Rj(),_(B(l1e,1),he,276,0,[jW,MW,DW,PW,IW,bI])}function I7t(){return _k(),_(B(Cut,1),he,327,0,[ZI,MX,PX,jX,DX,AX])}function N7t(){return Ac(),_(B(xN,1),he,273,0,[S1,ja,yE,T8,C8,o3])}function $7t(){return Nj(),_(B(Vpe,1),he,312,0,[SU,Xpe,Gpe,Kpe,Upe,Wpe])}function R7t(){return jt(),_(B(uW,1),he,267,0,[zi,sr,Ri,Eo,ru,Rf])}function FBe(e){Ub(!!e.c),PB(e.e,e),e.c.Qb(),e.c=null,e.b=Wie(e),vee(e.e,e)}function BBe(e){return PB(e.c.a.e,e),$t(e.b!=e.c.a.d),e.a=e.b,e.b=e.b.a,e.a}function iie(e){var t;return!e.a&&e.b!=-1&&(t=e.c.Tg(),e.a=ct(t,e.b)),e.a}function rn(e,t){return e.hi()&&e.Hc(t)?!1:(e.Yh(t),!0)}function Zl(e,t){return yS(t,"Horizontal alignment cannot be null"),e.b=t,e}function _Be(e,t,n){Rn();var i;return i=n1(e,t),n&&i&&h6t(e)&&(i=null),i}function Xa(e,t,n){var i,r;for(r=e.Kc();r.Ob();)i=c(r.Pb(),37),Wk(i,t,n)}function rie(e,t){var n,i;for(i=t.Kc();i.Ob();)n=c(i.Pb(),37),uGe(e,n,0,0)}function sie(e,t,n){var i;e.d[t.g]=n,i=e.g.c,i[t.g]=b.Math.max(i[t.g],n+1)}function IS(e,t){var n,i,r;return r=e.r,i=e.d,n=Yk(e,t,!0),n.b!=r||n.a!=i}function qBe(e,t){return rje(e.e,t)||p0(e.e,t,new mze(t)),c(jg(e.e,t),113)}function s0(e,t,n,i){return yt(e),yt(t),yt(n),yt(i),new Bte(e,t,new so)}function tu(e,t,n,i){this.rj(),this.a=t,this.b=e,this.c=new Rte(this,t,n,i)}function GB(e,t,n,i,r,o){Tne.call(this,t,i,r,o),this.c=e,this.b=n}function NS(e,t,n,i,r,o){Tne.call(this,t,i,r,o),this.c=e,this.a=n}function L7t(e,t,n){var i,r,o;i=ua(e,n),r=null,i&&(r=woe(i)),o=r,bze(t,n,o)}function F7t(e,t,n){var i,r,o;i=ua(e,n),r=null,i&&(r=woe(i)),o=r,bze(t,n,o)}function $S(e,t,n){var i,r;return r=(i=u4(e.b,t),i),r?iP(BS(e,r),n):null}function Oy(e,t){var n;return n=e.Yg(t),n>=0?e._g(n,!0,!0):Xg(e,t,!0)}function B7t(e,t){return qi(re(ve(D(e,(fe(),bb)))),re(ve(D(t,bb))))}function QBe(){QBe=X,zut=Hg(Hg(dT(new Ji,(Jy(),l8)),(_k(),ZI)),MX)}function _7t(e,t,n){var i;return i=DQe(e,t,n),e.b=new LM(i.c.length),ace(e,i)}function q7t(e){if(e.b<=0)throw L(new Zs);return--e.b,e.a-=e.c.c,we(e.a)}function Q7t(e){var t;if(!e.a)throw L(new W$e);return t=e.a,e.a=pi(e.a),t}function H7t(e){for(;!e.a;)if(!jIe(e.c,new xxe(e)))return!1;return!0}function fv(e){var t;return tn(e),z(e,198)?(t=c(e,198),t):new H7e(e)}function z7t(e){dM(),c(e.We((Pn(),cw)),174).Fc((Ac(),yE)),e.Ye(mU,null)}function dM(){dM=X,oft=new j6e,uft=new P6e,cft=ACt((Pn(),mU),oft,v1,uft)}function gM(){gM=X,Kge=new kJ("LEAF_NUMBER",0),QX=new kJ("NODE_SIZE",1)}function K7t(e,t,n){e.a=t,e.c=n,e.b.a.$b(),Vu(e.d),e.e.a.c=Y(It,Ce,1,0,5,1)}function VB(e){e.a=Y(Vt,yn,25,e.b+1,15,1),e.c=Y(Vt,yn,25,e.b,15,1),e.d=0}function W7t(e,t){e.a.ue(t.d,e.b)>0&&(ae(e.c,new hte(t.c,t.d,e.d)),e.b=t.d)}function oie(e,t){if(e.g==null||t>=e.i)throw L(new ZL(t,e.i));return e.g[t]}function HBe(e,t,n){if(qy(e,n),n!=null&&!e.wj(n))throw L(new ZR);return n}function zBe(e){var t;if(e.Ek())for(t=e.i-1;t>=0;--t)W(e,t);return Pne(e)}function X7t(e){var t,n;if(!e.b)return null;for(n=e.b;t=n.a[0];)n=t;return n}function U7t(e,t){var n,i;return aFe(t),n=(i=e.slice(0,t),uie(i,e)),n.length=t,n}function ky(e,t,n,i){var r;i=(Kw(),i||Yhe),r=e.slice(t,n),Eoe(r,e,t,n,-0,i)}function Nu(e,t,n,i,r){return t<0?Xg(e,n,i):c(n,66).Nj().Pj(e,e.yh(),t,i,r)}function G7t(e){return z(e,172)?""+c(e,172).a:e==null?null:Ms(e)}function V7t(e){return z(e,172)?""+c(e,172).a:e==null?null:Ms(e)}function KBe(e,t){if(t.a)throw L(new Is(KYe));Wi(e.a,t),t.a=e,!e.j&&(e.j=t)}function cie(e,t){YL.call(this,t.rd(),t.qd()&-16449),yt(e),this.a=e,this.c=t}function WBe(e,t){var n,i;return i=t/e.c.Hd().gc()|0,n=t%e.c.Hd().gc(),lv(e,i,n)}function Tc(){Tc=X,ph=new EL(Mv,0),f1=new EL(x4,1),Rl=new EL(jv,2)}function bM(){bM=X,$K=new wT("All",0),rae=new qPe,sae=new JPe,oae=new QPe}function XBe(){XBe=X,fnt=mn((bM(),_(B(AD,1),he,297,0,[$K,rae,sae,oae])))}function UBe(){UBe=X,trt=mn((Fy(),_(B(ert,1),he,405,0,[lb,Kp,zp,Nm])))}function GBe(){GBe=X,nit=mn((Lg(),_(B(tit,1),he,406,0,[Cx,Ex,HK,zK])))}function VBe(){VBe=X,rit=mn((mv(),_(B(iit,1),he,323,0,[Ax,Tx,Mx,jx])))}function YBe(){YBe=X,cit=mn((Ik(),_(B(oit,1),he,394,0,[Px,ID,ND,Dx])))}function ZBe(){ZBe=X,Eut=mn((Jy(),_(B(jge,1),he,393,0,[YI,l8,tE,f8])))}function JBe(){JBe=X,yrt=mn((XM(),_(B(vrt,1),he,360,0,[dW,oI,cI,Lx])))}function e_e(){e_e=X,alt=mn((xj(),_(B(obe,1),he,340,0,[KX,rbe,sbe,ibe])))}function t_e(){t_e=X,Mrt=mn((Tf(),_(B(Art,1),he,411,0,[Qv,U4,G4,gW])))}function n_e(){n_e=X,mct=mn((mp(),_(B(pX,1),he,197,0,[zI,bX,Gm,Um])))}function i_e(){i_e=X,tht=mn((nu(),_(B(eht,1),he,396,0,[Eu,dwe,awe,gwe])))}function r_e(){r_e=X,_ft=mn((bu(),_(B(Bft,1),he,285,0,[mE,Uh,y1,wE])))}function s_e(){s_e=X,$ft=mn((ma(),_(B(kU,1),he,218,0,[OU,pE,m5,s3])))}function o_e(){o_e=X,Zft=mn((uj(),_(B(hwe,1),he,311,0,[EU,uwe,fwe,lwe])))}function c_e(){c_e=X,Vft=mn((iu(),_(B(A8,1),he,374,0,[kE,W0,OE,lw])))}function u_e(){u_e=X,eP(),Gwe=Oi,iat=Li,Vwe=new S9(Oi),rat=new S9(Li)}function RS(){RS=X,f1e=new fJ(xa,0),pI=new fJ("IMPROVE_STRAIGHTNESS",1)}function Y7t(e,t){return ry(),ae(e,new wr(t,we(t.e.c.length+t.g.c.length)))}function Z7t(e,t){return ry(),ae(e,new wr(t,we(t.e.c.length+t.g.c.length)))}function uie(e,t){return qS(t)!=10&&_(_c(t),t.hm,t.__elementTypeId$,qS(t),e),e}function Zo(e,t){var n;return n=Ts(e,t,0),n==-1?!1:(Ka(e,n),!0)}function l_e(e,t){var n;return n=c(uv(e.e,t),387),n?(gte(n),n.e):null}function Sy(e){var t;return Cs(e)&&(t=0-e,!isNaN(t))?t:Xd(By(e))}function Ts(e,t,n){for(;n<e.c.length;++n)if(wo(t,e.c[n]))return n;return-1}function f_e(e,t,n){var i;return Qd(e),i=new xw,i.a=t,e.a.Nb(new oje(i,n)),i.a}function J7t(e){var t;return Qd(e),t=Y(hr,cs,25,0,15,1),Dw(e.a,new Oxe(t)),t}function YB(e){var t,n;return n=c(Ae(e.j,0),11),t=c(D(n,(fe(),Hn)),11),t}function lie(e){var t;if(!a_(e))throw L(new Zs);return e.e=1,t=e.d,e.d=null,t}function ZB(e,t){var n;this.f=e,this.b=t,n=c(Lt(e.b,t),283),this.c=n?n.b:null}function h_e(){Tl(),this.b=new Zt,this.f=new Zt,this.g=new Zt,this.e=new Zt}function a_e(e,t){this.a=Y(Wh,rd,10,e.a.c.length,0,1),Mf(e.a,this.a),this.b=t}function LS(e){var t;for(t=e.p+1;t<e.c.a.c.length;++t)--c(Ae(e.c.a,t),10).p}function JB(e){var t;t=e.Ai(),t!=null&&e.d!=-1&&c(t,92).Ng(e),e.i&&e.i.Fi()}function pM(e){HT(this),this.g=e?bB(e,e.$d()):null,this.f=e,RA(this),this._d()}function aa(e,t,n,i,r,o,h){u_.call(this,t,i,r,o,h),this.c=e,this.b=n}function up(e,t,n,i,r){return yt(e),yt(t),yt(n),yt(i),yt(r),new Bte(e,t,i)}function FS(e,t){if(t<0)throw L(new us(pJe+t));return nFe(e,t+1),Ae(e.j,t)}function d_e(e,t,n,i){if(!e)throw L(new kt(Kk(t,_(B(It,1),Ce,1,5,[n,i]))))}function wM(e,t){return wo(t,Ae(e.f,0))||wo(t,Ae(e.f,1))||wo(t,Ae(e.f,2))}function ext(e,t){U2(c(c(e.f,33).We((Pn(),y8)),98))&&eAt(sB(c(e.f,33)),t)}function BS(e,t){var n,i;return n=c(t,675),i=n.Oh(),!i&&n.Rh(i=new aPe(e,t)),i}function as(e,t){var n,i;return n=c(t,677),i=n.pk(),!i&&n.tk(i=new jLe(e,t)),i}function Bc(e){return e.b||(e.b=new WNe(e,ns,e),!e.a&&(e.a=new oS(e,e))),e.b}function dk(){dk=X,eW=new TL("XY",0),JK=new TL("X",1),tW=new TL("Y",2)}function Jo(){Jo=X,uf=new CL("TOP",0),h1=new CL(x4,1),Ll=new CL(Aue,2)}function da(){da=X,_x=new NL(xa,0),qm=new NL("TOP",1),zv=new NL(Aue,2)}function _S(){_S=X,yX=new aJ("INPUT_ORDER",0),OX=new aJ("PORT_DEGREE",1)}function xy(){xy=X,jhe=Bo(zc,zc,524287),Ytt=Bo(0,0,Y7),Phe=_B(1),_B(2),Dhe=_B(0)}function fie(e,t,n){e.a.c=Y(It,Ce,1,0,5,1),zqt(e,t,n),e.a.c.length==0||kBt(e,t)}function mM(e){var t,n;return n=e.length,t=Y(Wu,oh,25,n,15,1),b$e(e,0,n,t,0),t}function hie(e){var t;return e.dh()||(t=Rt(e.Tg())-e.Ah(),e.ph().bk(t)),e.Pg()}function aie(e){var t;return t=o0(mt(e,32)),t==null&&(_o(e),t=o0(mt(e,32))),t}function e_(e,t){var n;return n=ui(e.d,t),n>=0?vj(e,n,!0,!0):Xg(e,t,!0)}function die(e,t){pO();var n,i;return n=sv(e),i=sv(t),!!n&&!!i&&!Eze(n.k,i.k)}function txt(e,t){tc(e,t==null||iA((yt(t),t))||isNaN((yt(t),t))?0:(yt(t),t))}function nxt(e,t){nc(e,t==null||iA((yt(t),t))||isNaN((yt(t),t))?0:(yt(t),t))}function ixt(e,t){Ng(e,t==null||iA((yt(t),t))||isNaN((yt(t),t))?0:(yt(t),t))}function rxt(e,t){Ig(e,t==null||iA((yt(t),t))||isNaN((yt(t),t))?0:(yt(t),t))}function g_e(e){(this.q?this.q:(it(),it(),Kh)).Ac(e.q?e.q:(it(),it(),Kh))}function sxt(e,t){return z(t,99)&&(c(t,18).Bb&Qr)!=0?new JL(t,e):new Ry(t,e)}function oxt(e,t){return z(t,99)&&(c(t,18).Bb&Qr)!=0?new JL(t,e):new Ry(t,e)}function b_e(e,t){Iae=new Z5,sit=t,R6=e,c(R6.b,65),Jne(R6,Iae,null),uVe(R6)}function t_(e,t,n){var i;return i=e.g[t],_O(e,t,e.oi(t,n)),e.gi(t,n,i),e.ci(),i}function vM(e,t){var n;return n=e.Xc(t),n>=0?(e.$c(n),!0):!1}function n_(e){var t;return e.d!=e.r&&(t=Zu(e),e.e=!!t&&t.Cj()==Zet,e.d=t),e.e}function i_(e,t){var n;for(tn(e),tn(t),n=!1;t.Ob();)n=n|e.Fc(t.Pb());return n}function jg(e,t){var n;return n=c(Lt(e.e,t),387),n?(cDe(e,n),n.e):null}function p_e(e){var t,n;return t=e/60|0,n=e%60,n==0?""+t:""+t+":"+(""+n)}function Rs(e,t){var n,i;return g0(e),i=new Gne(t,e.a),n=new IIe(i),new ft(e,n)}function lp(e,t){var n=e.a[t],i=(k_(),jK)[typeof n];return i?i(n):wre(typeof n)}function cxt(e){switch(e.g){case 0:return Bn;case 1:return-1;default:return 0}}function uxt(e){return Nse(e,(xy(),Dhe))<0?-xyt(By(e)):e.l+e.m*Av+e.h*k0}function qS(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function r_(e){var t;return t=e.b.c.length==0?null:Ae(e.b,0),t!=null&&g_(e,0),t}function w_e(e,t){for(;t[0]<e.length&&Vf(` \r
|
|
1
|
+
var iKt=Object.defineProperty;var rKt=(l,s,u)=>s in l?iKt(l,s,{enumerable:!0,configurable:!0,writable:!0,value:u}):l[s]=u;var yat=(l,s,u)=>rKt(l,typeof s!="symbol"?s+"":s,u);import{r as Ne,am as Oat,a2 as Q0t,an as H0t,R as In,j as Ei,c as ml,ao as Sc,ap as Kf,i as Ss,W as l2e,J as sKt,w as Yi,F as oKt,aq as cKt,ar as uKt,as as lKt,at as z0t,L as K0t,S as W0t,u as fKt,a as MV,E as hKt,b as Lo,au as X0t,g as aKt,h as d$,av as dKt,aw as gKt}from"./index-KZcJd7F1.js";import{c as WU}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-BdXOfeCo.js";import{_ as bKt}from"./Input-CYm3h-zG.js";import{s as U0t,u as V8}from"./editor-Bf9rhumO.js";import{M as pKt,E as s$}from"./file-CcK5Oobc.js";import{u as f2e}from"./project-CjyecwCx.js";import{E as wKt}from"./help-6Q7f7fjd.js";import{S as mKt}from"./SourceList-Chz492Ne.js";import{B as kat,D as vKt}from"./transition-C8EjNcgL.js";function yKt({title:l,titleId:s,...u},a){return Ne.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},u),l?Ne.createElement("title",{id:s},l):null,Ne.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const OKt=Ne.forwardRef(yKt);function kKt({title:l,titleId:s,...u},a){return Ne.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},u),l?Ne.createElement("title",{id:s},l):null,Ne.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))}const SKt=Ne.forwardRef(kKt);function xKt({title:l,titleId:s,...u},a){return Ne.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},u),l?Ne.createElement("title",{id:s},l):null,Ne.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const EKt=Ne.forwardRef(xKt);function CKt({title:l,titleId:s,...u},a){return Ne.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},u),l?Ne.createElement("title",{id:s},l):null,Ne.createElement("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm4.28 10.28a.75.75 0 0 0 0-1.06l-3-3a.75.75 0 1 0-1.06 1.06l1.72 1.72H8.25a.75.75 0 0 0 0 1.5h5.69l-1.72 1.72a.75.75 0 1 0 1.06 1.06l3-3Z",clipRule:"evenodd"}))}const Sat=Ne.forwardRef(CKt);function TKt({title:l,titleId:s,...u},a){return Ne.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},u),l?Ne.createElement("title",{id:s},l):null,Ne.createElement("path",{fillRule:"evenodd",d:"m6.72 5.66 11.62 11.62A8.25 8.25 0 0 0 6.72 5.66Zm10.56 12.68L5.66 6.72a8.25 8.25 0 0 0 11.62 11.62ZM5.105 5.106c3.807-3.808 9.98-3.808 13.788 0 3.808 3.807 3.808 9.98 0 13.788-3.807 3.808-9.98 3.808-13.788 0-3.808-3.807-3.808-9.98 0-13.788Z",clipRule:"evenodd"}))}const AKt=Ne.forwardRef(TKt);var lme={exports:{}},xat;function MKt(){return xat||(xat=1,function(l,s){(function(u){l.exports=u()})(function(){return function(){function u(a,g,w){function b(C,T){if(!g[C]){if(!a[C]){var j=typeof WU=="function"&&WU;if(!T&&j)return j(C,!0);if(y)return y(C,!0);var N=new Error("Cannot find module '"+C+"'");throw N.code="MODULE_NOT_FOUND",N}var F=g[C]={exports:{}};a[C][0].call(F.exports,function(Q){var V=a[C][1][Q];return b(V||Q)},F,F.exports,u,a,g,w)}return g[C].exports}for(var y=typeof WU=="function"&&WU,x=0;x<w.length;x++)b(w[x]);return b}return u}()({1:[function(u,a,g){Object.defineProperty(g,"__esModule",{value:!0});var w=function(){function C(T,j){for(var N=0;N<j.length;N++){var F=j[N];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(T,F.key,F)}}return function(T,j,N){return j&&C(T.prototype,j),N&&C(T,N),T}}();function b(C,T){if(!(C instanceof T))throw new TypeError("Cannot call a class as a function")}var y=function(){function C(){var T=this,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=j.defaultLayoutOptions,F=N===void 0?{}:N,Q=j.algorithms,V=Q===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:Q,ee=j.workerFactory,te=j.workerUrl;if(b(this,C),this.defaultLayoutOptions=F,this.initialized=!1,typeof te>"u"&&typeof ee>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var le=ee;typeof te<"u"&&typeof ee>"u"&&(le=function(xe){return new Worker(xe)});var Se=le(te);if(typeof Se.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new x(Se),this.worker.postMessage({cmd:"register",algorithms:V}).then(function(be){return T.initialized=!0}).catch(console.err)}return w(C,[{key:"layout",value:function(j){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=N.layoutOptions,Q=F===void 0?this.defaultLayoutOptions:F,V=N.logging,ee=V===void 0?!1:V,te=N.measureExecutionTime,le=te===void 0?!1:te;return j?this.worker.postMessage({cmd:"layout",graph:j,layoutOptions:Q,options:{logging:ee,measureExecutionTime:le}}):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.terminate()}}]),C}();g.default=y;var x=function(){function C(T){var j=this;if(b(this,C),T===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=T,this.worker.onmessage=function(N){setTimeout(function(){j.receive(j,N)},0)}}return w(C,[{key:"postMessage",value:function(j){var N=this.id||0;this.id=N+1,j.id=N;var F=this;return new Promise(function(Q,V){F.resolvers[N]=function(ee,te){ee?(F.convertGwtStyleError(ee),V(ee)):Q(te)},F.worker.postMessage(j)})}},{key:"receive",value:function(j,N){var F=N.data,Q=j.resolvers[F.id];Q&&(delete j.resolvers[F.id],F.error?Q(F.error):Q(null,F.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(j){if(j){var N=j.__java$exception;N&&(N.cause&&N.cause.backingJsObject&&(j.cause=N.cause.backingJsObject,this.convertGwtStyleError(j.cause)),delete j.__java$exception)}}}]),C}()},{}],2:[function(u,a,g){(function(w){(function(){var b;typeof window<"u"?b=window:typeof w<"u"?b=w:typeof self<"u"&&(b=self);var y;function x(){}function C(){}function T(){}function j(){}function N(){}function F(){}function Q(){}function V(){}function ee(){}function te(){}function le(){}function Se(){}function be(){}function xe(){}function Me(){}function _e(){}function rt(){}function $e(){}function ut(){}function st(){}function ht(){}function pt(){}function ce(){}function Ze(){}function et(){}function vt(){}function X(){}function nt(){}function Nt(){}function Jt(){}function Yt(){}function Nn(){}function Ln(){}function Mi(){}function ar(){}function Dr(){}function Ys(){}function ps(){}function vr(){}function Lc(){}function so(){}function Fo(){}function Mo(){}function Xo(){}function gf(){}function Qs(){}function gi(){}function xc(){}function Cd(){}function A3(){}function T2(){}function A2(){}function B1(){}function Ol(){}function Eh(){}function Ch(){}function M2(){}function M3(){}function xw(){}function bf(){}function Td(){}function Ew(){}function Cw(){}function Tw(){}function J0(){}function _1(){}function j3(){}function p9(){}function P3(){}function w9(){}function EC(){}function Aw(){}function cR(){}function uR(){}function lR(){}function fR(){}function hR(){}function aR(){}function dR(){}function gR(){}function bR(){}function pR(){}function wR(){}function mR(){}function vR(){}function yR(){}function OR(){}function kR(){}function CC(){}function SR(){}function xR(){}function ER(){}function TC(){}function CR(){}function TR(){}function AR(){}function MR(){}function V5(){}function m9(){}function Y5(){}function jR(){}function PR(){}function v9(){}function DR(){}function AC(){}function IR(){}function Z5(){}function NR(){}function y9(){}function _3e(){}function q3e(){}function Q3e(){}function H3e(){}function z3e(){}function K3e(){}function W3e(){}function YV(){}function X3e(){}function U3e(){}function G3e(){}function V3e(){}function Y3e(){}function ZV(){}function Z3e(){}function J3e(){}function eye(){}function tye(){}function nye(){}function iye(){}function rye(){}function sye(){}function oye(){}function cye(){}function uye(){}function lye(){}function fye(){}function hye(){}function $R(){}function aye(){}function dye(){}function gye(){}function bye(){}function pye(){}function JV(){}function wye(){}function mye(){}function vye(){}function yye(){}function Oye(){}function kye(){}function Sye(){}function xye(){}function Eye(){}function Cye(){}function Tye(){}function Aye(){}function Mye(){}function jye(){}function Pye(){}function Dye(){}function Iye(){}function Nye(){}function $ye(){}function Rye(){}function Lye(){}function Fye(){}function Bye(){}function _ye(){}function qye(){}function Qye(){}function Hye(){}function zye(){}function Kye(){}function Wye(){}function Xye(){}function Uye(){}function Gye(){}function Vye(){}function Yye(){}function Zye(){}function Jye(){}function e4e(){}function t4e(){}function n4e(){}function i4e(){}function r4e(){}function s4e(){}function o4e(){}function c4e(){}function u4e(){}function l4e(){}function f4e(){}function h4e(){}function a4e(){}function d4e(){}function g4e(){}function b4e(){}function p4e(){}function w4e(){}function m4e(){}function v4e(){}function y4e(){}function O4e(){}function k4e(){}function S4e(){}function x4e(){}function E4e(){}function C4e(){}function T4e(){}function A4e(){}function M4e(){}function j4e(){}function P4e(){}function D4e(){}function I4e(){}function N4e(){}function $4e(){}function R4e(){}function L4e(){}function F4e(){}function B4e(){}function _4e(){}function q4e(){}function Q4e(){}function H4e(){}function z4e(){}function K4e(){}function W4e(){}function X4e(){}function U4e(){}function G4e(){}function V4e(){}function Y4e(){}function Z4e(){}function J4e(){}function e5e(){}function t5e(){}function n5e(){}function i5e(){}function r5e(){}function s5e(){}function o5e(){}function c5e(){}function u5e(){}function eY(){}function l5e(){}function f5e(){}function h5e(){}function a5e(){}function d5e(){}function g5e(){}function b5e(){}function p5e(){}function w5e(){}function m5e(){}function v5e(){}function y5e(){}function O5e(){}function k5e(){}function S5e(){}function x5e(){}function E5e(){}function C5e(){}function T5e(){}function A5e(){}function M5e(){}function j5e(){}function P5e(){}function D5e(){}function I5e(){}function N5e(){}function $5e(){}function R5e(){}function L5e(){}function F5e(){}function B5e(){}function _5e(){}function q5e(){}function Q5e(){}function H5e(){}function z5e(){}function K5e(){}function W5e(){}function X5e(){}function U5e(){}function G5e(){}function V5e(){}function Y5e(){}function Z5e(){}function J5e(){}function eOe(){}function tOe(){}function nOe(){}function iOe(){}function rOe(){}function sOe(){}function oOe(){}function cOe(){}function uOe(){}function lOe(){}function fOe(){}function hOe(){}function aOe(){}function dOe(){}function gOe(){}function bOe(){}function pOe(){}function wOe(){}function mOe(){}function vOe(){}function yOe(){}function OOe(){}function tY(){}function kOe(){}function SOe(){}function xOe(){}function EOe(){}function COe(){}function TOe(){}function AOe(){}function MOe(){}function jOe(){}function POe(){}function DOe(){}function IOe(){}function NOe(){}function $Oe(){}function ROe(){}function LOe(){}function FOe(){}function BOe(){}function _Oe(){}function qOe(){}function nY(){}function QOe(){}function HOe(){}function zOe(){}function KOe(){}function WOe(){}function XOe(){}function iY(){}function rY(){}function UOe(){}function sY(){}function oY(){}function GOe(){}function VOe(){}function YOe(){}function ZOe(){}function JOe(){}function eke(){}function tke(){}function nke(){}function ike(){}function cY(){}function rke(){}function ske(){}function oke(){}function cke(){}function uke(){}function lke(){}function fke(){}function hke(){}function ake(){}function dke(){}function gke(){}function bke(){}function pke(){}function wke(){}function mke(){}function vke(){}function yke(){}function Oke(){}function kke(){}function Ske(){}function xke(){}function Eke(){}function Cke(){}function Tke(){}function Ake(){}function Mke(){}function jke(){}function Pke(){}function Dke(){}function Ike(){}function Nke(){}function $ke(){}function Rke(){}function Lke(){}function Fke(){}function Bke(){}function _ke(){}function qke(){}function Qke(){}function Hke(){}function zke(){}function Kke(){}function Wke(){}function Xke(){}function Uke(){}function Gke(){}function Vke(){}function Yke(){}function Zke(){}function Jke(){}function e6e(){}function t6e(){}function n6e(){}function i6e(){}function r6e(){}function s6e(){}function o6e(){}function c6e(){}function u6e(){}function l6e(){}function f6e(){}function h6e(){}function a6e(){}function d6e(){}function g6e(){}function b6e(){}function p6e(){}function w6e(){}function RR(){}function LR(){}function FR(){}function m6e(){}function v6e(){}function y6e(){}function O6e(){}function k6e(){}function uY(){}function S6e(){}function x6e(){}function Bmt(){}function E6e(){}function C6e(){}function T6e(){}function A6e(){}function M6e(){}function j6e(){}function P6e(){}function q1(){}function D6e(){}function j2(){}function lY(){}function I6e(){}function N6e(){}function $6e(){}function R6e(){}function L6e(){}function F6e(){}function B6e(){}function _6e(){}function q6e(){}function Q6e(){}function H6e(){}function z6e(){}function K6e(){}function W6e(){}function X6e(){}function U6e(){}function G6e(){}function V6e(){}function Y6e(){}function Z6e(){}function J6e(){}function Le(){}function e8e(){}function t8e(){}function n8e(){}function i8e(){}function r8e(){}function s8e(){}function o8e(){}function c8e(){}function u8e(){}function l8e(){}function BR(){}function f8e(){}function h8e(){}function a8e(){}function d8e(){}function g8e(){}function fY(){}function MC(){}function jC(){}function b8e(){}function hY(){}function PC(){}function p8e(){}function w8e(){}function m8e(){}function v8e(){}function y8e(){}function O8e(){}function DC(){}function k8e(){}function S8e(){}function x8e(){}function IC(){}function E8e(){}function aY(){}function C8e(){}function _R(){}function dY(){}function T8e(){}function A8e(){}function M8e(){}function j8e(){}function _mt(){}function P8e(){}function D8e(){}function I8e(){}function N8e(){}function $8e(){}function R8e(){}function L8e(){}function F8e(){}function B8e(){}function _8e(){}function D3(){}function qR(){}function q8e(){}function Q8e(){}function H8e(){}function z8e(){}function K8e(){}function W8e(){}function X8e(){}function U8e(){}function G8e(){}function V8e(){}function Y8e(){}function Z8e(){}function J8e(){}function e9e(){}function t9e(){}function n9e(){}function i9e(){}function r9e(){}function s9e(){}function o9e(){}function c9e(){}function u9e(){}function l9e(){}function f9e(){}function h9e(){}function a9e(){}function d9e(){}function g9e(){}function b9e(){}function p9e(){}function w9e(){}function m9e(){}function v9e(){}function y9e(){}function O9e(){}function k9e(){}function S9e(){}function x9e(){}function E9e(){}function C9e(){}function T9e(){}function A9e(){}function M9e(){}function j9e(){}function P9e(){}function D9e(){}function I9e(){}function N9e(){}function $9e(){}function R9e(){}function L9e(){}function F9e(){}function B9e(){}function _9e(){}function q9e(){}function Q9e(){}function H9e(){}function z9e(){}function K9e(){}function W9e(){}function X9e(){}function U9e(){}function G9e(){}function V9e(){}function Y9e(){}function Z9e(){}function J9e(){}function eSe(){}function tSe(){}function nSe(){}function iSe(){}function rSe(){}function sSe(){}function oSe(){}function cSe(){}function uSe(){}function lSe(){}function fSe(){}function hSe(){}function aSe(){}function dSe(){}function gSe(){}function bSe(){}function pSe(){}function wSe(){}function mSe(){}function vSe(){}function ySe(){}function OSe(){}function kSe(){}function SSe(){}function xSe(){}function ESe(){}function CSe(){}function TSe(){}function ASe(){}function MSe(){}function jSe(){}function PSe(){}function DSe(){}function ISe(){}function gY(){}function NSe(){}function $Se(){}function QR(){sO()}function RSe(){N_()}function LSe(){Dk()}function FSe(){Aj()}function BSe(){doe()}function _Se(){sf()}function qSe(){xse()}function QSe(){v7()}function HSe(){F9()}function zSe(){L9()}function KSe(){fS()}function WSe(){UMe()}function XSe(){av()}function USe(){lT()}function GSe(){sBe()}function VSe(){mqe()}function YSe(){LBe()}function ZSe(){eLe()}function JSe(){Hy()}function e7e(){e1()}function t7e(){vqe()}function n7e(){XLe()}function i7e(){oue()}function r7e(){oKe()}function s7e(){tLe()}function o7e(){ke()}function c7e(){JRe()}function u7e(){yqe()}function l7e(){SQe()}function f7e(){iLe()}function h7e(){QBe()}function a7e(){GMe()}function d7e(){Uoe()}function g7e(){vp()}function b7e(){Xqe()}function p7e(){S7()}function w7e(){lQ()}function m7e(){pq()}function v7e(){Ug()}function y7e(){zie()}function O7e(){nLe()}function k7e(){gGe()}function S7e(){Koe()}function x7e(){tQ()}function E7e(){dM()}function C7e(){$j()}function bY(){Pn()}function T7e(){VM()}function A7e(){Zre()}function pY(){eP()}function Ul(){HIe()}function wY(){m_()}function M7e(){Dce()}function mY(e){yt(e)}function j7e(e){this.a=e}function NC(e){this.a=e}function P7e(e){this.a=e}function D7e(e){this.a=e}function I7e(e){this.a=e}function N7e(e){this.a=e}function $7e(e){this.a=e}function R7e(e){this.a=e}function vY(e){this.a=e}function yY(e){this.a=e}function L7e(e){this.a=e}function HR(e){this.a=e}function F7e(e){this.a=e}function zR(e){this.a=e}function B7e(e){this.a=e}function KR(e){this.a=e}function _7e(e){this.a=e}function WR(e){this.a=e}function q7e(e){this.a=e}function Q7e(e){this.a=e}function H7e(e){this.a=e}function OY(e){this.b=e}function z7e(e){this.c=e}function K7e(e){this.a=e}function W7e(e){this.a=e}function X7e(e){this.a=e}function U7e(e){this.a=e}function G7e(e){this.a=e}function V7e(e){this.a=e}function Y7e(e){this.a=e}function Z7e(e){this.a=e}function J7e(e){this.a=e}function exe(e){this.a=e}function txe(e){this.a=e}function nxe(e){this.a=e}function ixe(e){this.a=e}function kY(e){this.a=e}function SY(e){this.a=e}function $C(e){this.a=e}function O9(e){this.a=e}function Q1(){this.a=[]}function rxe(e,t){e.a=t}function qmt(e,t){e.a=t}function Qmt(e,t){e.b=t}function Hmt(e,t){e.b=t}function zmt(e,t){e.b=t}function xY(e,t){e.j=t}function Kmt(e,t){e.g=t}function Wmt(e,t){e.i=t}function Xmt(e,t){e.c=t}function Umt(e,t){e.d=t}function Gmt(e,t){e.d=t}function Vmt(e,t){e.c=t}function H1(e,t){e.k=t}function Ymt(e,t){e.c=t}function EY(e,t){e.c=t}function CY(e,t){e.a=t}function Zmt(e,t){e.a=t}function Jmt(e,t){e.f=t}function e2t(e,t){e.a=t}function t2t(e,t){e.b=t}function XR(e,t){e.d=t}function RC(e,t){e.i=t}function TY(e,t){e.o=t}function n2t(e,t){e.r=t}function i2t(e,t){e.a=t}function r2t(e,t){e.b=t}function sxe(e,t){e.e=t}function s2t(e,t){e.f=t}function AY(e,t){e.g=t}function o2t(e,t){e.e=t}function c2t(e,t){e.f=t}function u2t(e,t){e.f=t}function l2t(e,t){e.n=t}function f2t(e,t){e.a=t}function h2t(e,t){e.a=t}function a2t(e,t){e.c=t}function d2t(e,t){e.c=t}function g2t(e,t){e.d=t}function b2t(e,t){e.e=t}function p2t(e,t){e.g=t}function w2t(e,t){e.a=t}function m2t(e,t){e.c=t}function v2t(e,t){e.d=t}function y2t(e,t){e.e=t}function O2t(e,t){e.f=t}function k2t(e,t){e.j=t}function S2t(e,t){e.a=t}function x2t(e,t){e.b=t}function E2t(e,t){e.a=t}function oxe(e){e.b=e.a}function cxe(e){e.c=e.d.d}function J5(e){this.d=e}function z1(e){this.a=e}function I3(e){this.a=e}function MY(e){this.a=e}function na(e){this.a=e}function k9(e){this.a=e}function uxe(e){this.a=e}function jY(e){this.a=e}function S9(e){this.a=e}function PY(e){this.a=e}function DY(e){this.a=e}function IY(e){this.a=e}function _b(e){this.a=e}function x9(e){this.a=e}function E9(e){this.a=e}function NY(e){this.b=e}function N3(e){this.b=e}function $3(e){this.b=e}function UR(e){this.a=e}function lxe(e){this.a=e}function $Y(e){this.a=e}function GR(e){this.c=e}function $(e){this.c=e}function fxe(e){this.c=e}function RY(e){this.a=e}function LY(e){this.a=e}function FY(e){this.a=e}function BY(e){this.a=e}function Kn(e){this.a=e}function hxe(e){this.a=e}function _Y(e){this.a=e}function qY(e){this.a=e}function axe(e){this.a=e}function dxe(e){this.a=e}function eO(e){this.a=e}function gxe(e){this.a=e}function bxe(e){this.a=e}function pxe(e){this.a=e}function wxe(e){this.a=e}function mxe(e){this.a=e}function vxe(e){this.a=e}function yxe(e){this.a=e}function Oxe(e){this.a=e}function kxe(e){this.a=e}function Sxe(e){this.a=e}function xxe(e){this.a=e}function Exe(e){this.a=e}function Cxe(e){this.a=e}function Txe(e){this.a=e}function Axe(e){this.a=e}function Mxe(e){this.a=e}function jxe(e){this.a=e}function C9(e){this.a=e}function Pxe(e){this.a=e}function Dxe(e){this.a=e}function LC(e){this.a=e}function Ixe(e){this.a=e}function Nxe(e){this.a=e}function R3(e){this.a=e}function QY(e){this.a=e}function $xe(e){this.a=e}function Rxe(e){this.a=e}function Lxe(e){this.a=e}function Fxe(e){this.a=e}function Bxe(e){this.a=e}function HY(e){this.a=e}function zY(e){this.a=e}function KY(e){this.a=e}function FC(e){this.a=e}function BC(e){this.e=e}function L3(e){this.a=e}function _xe(e){this.a=e}function P2(e){this.a=e}function WY(e){this.a=e}function qxe(e){this.a=e}function Qxe(e){this.a=e}function Hxe(e){this.a=e}function zxe(e){this.a=e}function Kxe(e){this.a=e}function Wxe(e){this.a=e}function Xxe(e){this.a=e}function Uxe(e){this.a=e}function Gxe(e){this.a=e}function Vxe(e){this.a=e}function Yxe(e){this.a=e}function XY(e){this.a=e}function Zxe(e){this.a=e}function Jxe(e){this.a=e}function eEe(e){this.a=e}function tEe(e){this.a=e}function nEe(e){this.a=e}function iEe(e){this.a=e}function rEe(e){this.a=e}function sEe(e){this.a=e}function oEe(e){this.a=e}function cEe(e){this.a=e}function uEe(e){this.a=e}function lEe(e){this.a=e}function fEe(e){this.a=e}function hEe(e){this.a=e}function aEe(e){this.a=e}function dEe(e){this.a=e}function gEe(e){this.a=e}function bEe(e){this.a=e}function pEe(e){this.a=e}function wEe(e){this.a=e}function mEe(e){this.a=e}function vEe(e){this.a=e}function yEe(e){this.a=e}function OEe(e){this.a=e}function kEe(e){this.a=e}function SEe(e){this.a=e}function xEe(e){this.a=e}function EEe(e){this.a=e}function CEe(e){this.a=e}function TEe(e){this.a=e}function AEe(e){this.a=e}function MEe(e){this.a=e}function jEe(e){this.a=e}function PEe(e){this.a=e}function DEe(e){this.a=e}function IEe(e){this.a=e}function NEe(e){this.a=e}function $Ee(e){this.c=e}function REe(e){this.b=e}function LEe(e){this.a=e}function FEe(e){this.a=e}function BEe(e){this.a=e}function _Ee(e){this.a=e}function qEe(e){this.a=e}function QEe(e){this.a=e}function HEe(e){this.a=e}function zEe(e){this.a=e}function KEe(e){this.a=e}function WEe(e){this.a=e}function XEe(e){this.a=e}function UEe(e){this.a=e}function GEe(e){this.a=e}function VEe(e){this.a=e}function YEe(e){this.a=e}function ZEe(e){this.a=e}function JEe(e){this.a=e}function eCe(e){this.a=e}function tCe(e){this.a=e}function nCe(e){this.a=e}function iCe(e){this.a=e}function rCe(e){this.a=e}function sCe(e){this.a=e}function oCe(e){this.a=e}function Ad(e){this.a=e}function D2(e){this.a=e}function cCe(e){this.a=e}function uCe(e){this.a=e}function lCe(e){this.a=e}function fCe(e){this.a=e}function hCe(e){this.a=e}function aCe(e){this.a=e}function dCe(e){this.a=e}function gCe(e){this.a=e}function bCe(e){this.a=e}function pCe(e){this.a=e}function wCe(e){this.a=e}function mCe(e){this.a=e}function vCe(e){this.a=e}function yCe(e){this.a=e}function OCe(e){this.a=e}function kCe(e){this.a=e}function _C(e){this.a=e}function SCe(e){this.a=e}function xCe(e){this.a=e}function ECe(e){this.a=e}function CCe(e){this.a=e}function TCe(e){this.a=e}function ACe(e){this.a=e}function MCe(e){this.a=e}function jCe(e){this.a=e}function PCe(e){this.a=e}function DCe(e){this.a=e}function ICe(e){this.a=e}function NCe(e){this.a=e}function $Ce(e){this.a=e}function RCe(e){this.a=e}function LCe(e){this.a=e}function FCe(e){this.a=e}function BCe(e){this.a=e}function _Ce(e){this.a=e}function qCe(e){this.a=e}function QCe(e){this.a=e}function HCe(e){this.a=e}function zCe(e){this.a=e}function KCe(e){this.a=e}function WCe(e){this.a=e}function XCe(e){this.a=e}function UCe(e){this.a=e}function GCe(e){this.a=e}function VCe(e){this.a=e}function UY(e){this.a=e}function ci(e){this.b=e}function YCe(e){this.f=e}function GY(e){this.a=e}function ZCe(e){this.a=e}function JCe(e){this.a=e}function eTe(e){this.a=e}function tTe(e){this.a=e}function nTe(e){this.a=e}function iTe(e){this.a=e}function rTe(e){this.a=e}function sTe(e){this.a=e}function T9(e){this.a=e}function oTe(e){this.a=e}function cTe(e){this.b=e}function VY(e){this.c=e}function qC(e){this.e=e}function uTe(e){this.a=e}function QC(e){this.a=e}function HC(e){this.a=e}function VR(e){this.a=e}function lTe(e){this.a=e}function fTe(e){this.d=e}function YY(e){this.a=e}function ZY(e){this.a=e}function eg(e){this.e=e}function C2t(){this.a=0}function Mw(){HPe(this)}function de(){nF(this)}function Zt(){Cc(this)}function YR(){X$e(this)}function hTe(){}function tg(){this.c=Dwe}function T2t(e,t){t.Wb(e)}function aTe(e,t){e.b+=t}function dTe(e){e.b=new gL}function L(e){return e.e}function A2t(e){return e.a}function M2t(e){return e.a}function j2t(e){return e.a}function P2t(e){return e.a}function D2t(e){return e.a}function I2t(){return null}function N2t(){return null}function $2t(){FZ(),WHt()}function R2t(e){e.b.tf(e.e)}function tO(e,t){e.b=t-e.b}function nO(e,t){e.a=t-e.a}function gTe(e,t){t.ad(e.a)}function L2t(e,t){Ui(t,e)}function F2t(e,t,n){e.Od(n,t)}function A9(e,t){e.e=t,t.b=e}function JY(e){Jf(),this.a=e}function bTe(e){Jf(),this.a=e}function pTe(e){Jf(),this.a=e}function eZ(e){ip(),this.a=e}function wTe(e){gy(),MK.be(e)}function K1(){CDe.call(this)}function tZ(){CDe.call(this)}function nZ(){K1.call(this)}function ZR(){K1.call(this)}function mTe(){K1.call(this)}function M9(){K1.call(this)}function fc(){K1.call(this)}function iO(){K1.call(this)}function on(){K1.call(this)}function Au(){K1.call(this)}function vTe(){K1.call(this)}function Zs(){K1.call(this)}function yTe(){K1.call(this)}function OTe(){this.a=this}function zC(){this.Bb|=256}function kTe(){this.b=new xPe}function iZ(){iZ=X,new Zt}function rZ(){nZ.call(this)}function STe(e,t){e.length=t}function KC(e,t){ae(e.a,t)}function B2t(e,t){boe(e.c,t)}function _2t(e,t){Wi(e.b,t)}function q2t(e,t){kj(e.a,t)}function Q2t(e,t){H_(e.a,t)}function F3(e,t){_n(e.e,t)}function I2(e){Fj(e.c,e.b)}function H2t(e,t){e.kc().Nb(t)}function sZ(e){this.a=qTt(e)}function Zi(){this.a=new Zt}function xTe(){this.a=new Zt}function WC(){this.a=new de}function JR(){this.a=new de}function oZ(){this.a=new de}function Xu(){this.a=new EC}function W1(){this.a=new tBe}function cZ(){this.a=new YV}function uZ(){this.a=new _Me}function ETe(){this.a=new ALe}function lZ(){this.a=new zRe}function fZ(){this.a=new gIe}function CTe(){this.a=new de}function hZ(){this.a=new de}function TTe(){this.a=new de}function ATe(){this.a=new de}function MTe(){this.d=new de}function jTe(){this.a=new Zi}function PTe(){this.a=new Zt}function DTe(){this.b=new Zt}function ITe(){this.b=new de}function aZ(){this.e=new de}function NTe(){this.d=new de}function $Te(){this.a=new e7e}function RTe(){de.call(this)}function dZ(){WC.call(this)}function LTe(){tA.call(this)}function FTe(){hZ.call(this)}function eL(){rO.call(this)}function rO(){hTe.call(this)}function N2(){hTe.call(this)}function gZ(){N2.call(this)}function BTe(){ORe.call(this)}function _Te(){ORe.call(this)}function qTe(){OZ.call(this)}function QTe(){OZ.call(this)}function HTe(){OZ.call(this)}function zTe(){kZ.call(this)}function hc(){ai.call(this)}function bZ(){g8e.call(this)}function pZ(){g8e.call(this)}function KTe(){cAe.call(this)}function WTe(){cAe.call(this)}function XTe(){Zt.call(this)}function UTe(){Zt.call(this)}function GTe(){Zt.call(this)}function VTe(){Zi.call(this)}function tL(){bqe.call(this)}function YTe(){zC.call(this)}function nL(){WJ.call(this)}function iL(){WJ.call(this)}function wZ(){Zt.call(this)}function rL(){Zt.call(this)}function ZTe(){Zt.call(this)}function mZ(){IC.call(this)}function JTe(){IC.call(this)}function eAe(){mZ.call(this)}function tAe(){gY.call(this)}function nAe(e){__e.call(this,e)}function iAe(e){__e.call(this,e)}function vZ(e){vY.call(this,e)}function yZ(e){jMe.call(this,e)}function z2t(e){yZ.call(this,e)}function K2t(e){jMe.call(this,e)}function B3(){this.a=new ai}function OZ(){this.a=new Zi}function kZ(){this.a=new Zt}function rAe(){this.a=new de}function sAe(){this.j=new de}function SZ(){this.a=new b6e}function oAe(){this.a=new tMe}function cAe(){this.a=new x8e}function sL(){sL=X,SK=new EAe}function oL(){oL=X,kK=new xAe}function sO(){sO=X,OK=new C}function XC(){XC=X,CK=new xDe}function W2t(e){yZ.call(this,e)}function X2t(e){yZ.call(this,e)}function uAe(e){RB.call(this,e)}function lAe(e){RB.call(this,e)}function fAe(e){RIe.call(this,e)}function cL(e){dIt.call(this,e)}function ng(e){Hb.call(this,e)}function oO(e){sT.call(this,e)}function xZ(e){sT.call(this,e)}function hAe(e){sT.call(this,e)}function Is(e){VNe.call(this,e)}function aAe(e){Is.call(this,e)}function $2(){O9.call(this,{})}function UC(e){J3(),this.a=e}function cO(e){e.b=null,e.c=0}function U2t(e,t){e.e=t,dUe(e,t)}function G2t(e,t){e.a=t,JIt(e)}function uL(e,t,n){e.a[t.g]=n}function V2t(e,t,n){bPt(n,e,t)}function Y2t(e,t){k4t(t.i,e.n)}function dAe(e,t){SCt(e).td(t)}function Z2t(e,t){return e*e/t}function gAe(e,t){return e.g-t.g}function J2t(e){return new $C(e)}function evt(e){return new np(e)}function GC(e){Is.call(this,e)}function us(e){Is.call(this,e)}function bAe(e){Is.call(this,e)}function lL(e){VNe.call(this,e)}function fL(e){Qie(),this.a=e}function pAe(e){QIe(),this.a=e}function qb(e){_F(),this.f=e}function hL(e){_F(),this.f=e}function _3(e){Is.call(this,e)}function kt(e){Is.call(this,e)}function Es(e){Is.call(this,e)}function wAe(e){Is.call(this,e)}function R2(e){Is.call(this,e)}function Pe(e){return yt(e),e}function re(e){return yt(e),e}function j9(e){return yt(e),e}function EZ(e){return yt(e),e}function tvt(e){return yt(e),e}function uO(e){return e.b==e.c}function Qb(e){return!!e&&e.b}function nvt(e){return!!e&&e.k}function ivt(e){return!!e&&e.j}function Gc(e){yt(e),this.a=e}function CZ(e){return h0(e),e}function lO(e){Fte(e,e.length)}function La(e){Is.call(this,e)}function Uf(e){Is.call(this,e)}function aL(e){Is.call(this,e)}function jw(e){Is.call(this,e)}function fO(e){Is.call(this,e)}function un(e){Is.call(this,e)}function dL(e){fee.call(this,e,0)}function gL(){mne.call(this,12,3)}function TZ(){TZ=X,Ahe=new ut}function mAe(){mAe=X,The=new x}function VC(){VC=X,I6=new be}function vAe(){vAe=X,Vtt=new Me}function yAe(){throw L(new on)}function AZ(){throw L(new on)}function OAe(){throw L(new on)}function rvt(){throw L(new on)}function svt(){throw L(new on)}function ovt(){throw L(new on)}function bL(){this.a=ln(tn(qr))}function L2(e){Jf(),this.a=tn(e)}function kAe(e,t){e.Td(t),t.Sd(e)}function cvt(e,t){e.a.ec().Mc(t)}function uvt(e,t,n){e.c.lf(t,n)}function MZ(e){us.call(this,e)}function Gf(e){kt.call(this,e)}function Fa(){k9.call(this,"")}function hO(){k9.call(this,"")}function Md(){k9.call(this,"")}function Pw(){k9.call(this,"")}function jZ(e){us.call(this,e)}function q3(e){N3.call(this,e)}function pL(e){WT.call(this,e)}function SAe(e){q3.call(this,e)}function xAe(){zR.call(this,null)}function EAe(){zR.call(this,null)}function YC(){YC=X,gy()}function CAe(){CAe=X,ont=QPt()}function TAe(e){return e.a?e.b:0}function lvt(e){return e.a?e.b:0}function fvt(e,t){return e.a-t.a}function hvt(e,t){return e.a-t.a}function avt(e,t){return e.a-t.a}function ZC(e,t){return uie(e,t)}function B(e,t){return XRe(e,t)}function dvt(e,t){return t in e.a}function AAe(e,t){return e.f=t,e}function gvt(e,t){return e.b=t,e}function MAe(e,t){return e.c=t,e}function bvt(e,t){return e.g=t,e}function PZ(e,t){return e.a=t,e}function DZ(e,t){return e.f=t,e}function pvt(e,t){return e.k=t,e}function IZ(e,t){return e.a=t,e}function wvt(e,t){return e.e=t,e}function NZ(e,t){return e.e=t,e}function mvt(e,t){return e.f=t,e}function vvt(e,t){e.b=!0,e.d=t}function yvt(e,t){e.b=new ls(t)}function Ovt(e,t,n){t.td(e.a[n])}function kvt(e,t,n){t.we(e.a[n])}function Svt(e,t){return e.b-t.b}function xvt(e,t){return e.g-t.g}function Evt(e,t){return e.s-t.s}function Cvt(e,t){return e?0:t-1}function jAe(e,t){return e?0:t-1}function Tvt(e,t){return e?t-1:0}function Avt(e,t){return t.Yf(e)}function ig(e,t){return e.b=t,e}function JC(e,t){return e.a=t,e}function rg(e,t){return e.c=t,e}function sg(e,t){return e.d=t,e}function og(e,t){return e.e=t,e}function $Z(e,t){return e.f=t,e}function aO(e,t){return e.a=t,e}function Q3(e,t){return e.b=t,e}function H3(e,t){return e.c=t,e}function qe(e,t){return e.c=t,e}function lt(e,t){return e.b=t,e}function Qe(e,t){return e.d=t,e}function He(e,t){return e.e=t,e}function Mvt(e,t){return e.f=t,e}function ze(e,t){return e.g=t,e}function Ke(e,t){return e.a=t,e}function We(e,t){return e.i=t,e}function Xe(e,t){return e.j=t,e}function PAe(e,t){return e.k=t,e}function jvt(e,t){return e.j=t,e}function Pvt(e,t){e1(),$s(t,e)}function Dvt(e,t,n){Ckt(e.a,t,n)}function DAe(e){G$e.call(this,e)}function RZ(e){G$e.call(this,e)}function eT(e){SF.call(this,e)}function IAe(e){GTt.call(this,e)}function jd(e){Pg.call(this,e)}function NAe(e){hB.call(this,e)}function $Ae(e){hB.call(this,e)}function RAe(){qJ.call(this,"")}function Er(){this.a=0,this.b=0}function LAe(){this.b=0,this.a=0}function FAe(e,t){e.b=0,dp(e,t)}function Ivt(e,t){e.c=t,e.b=!0}function BAe(e,t){return e.c._b(t)}function Gl(e){return e.e&&e.e()}function wL(e){return e?e.d:null}function _Ae(e,t){return aHe(e.b,t)}function Nvt(e){return e?e.g:null}function $vt(e){return e?e.i:null}function Pd(e){return sa(e),e.o}function cg(){cg=X,rht=Jjt()}function qAe(){qAe=X,cr=hDt()}function z3(){z3=X,Pwe=tPt()}function QAe(){QAe=X,Qht=ePt()}function LZ(){LZ=X,io=VIt()}function FZ(){FZ=X,C1=Py()}function HAe(){throw L(new on)}function zAe(){throw L(new on)}function KAe(){throw L(new on)}function WAe(){throw L(new on)}function XAe(){throw L(new on)}function UAe(){throw L(new on)}function tT(e){this.a=new F2(e)}function BZ(e){HVe(),szt(this,e)}function Dd(e){this.a=new zF(e)}function Dw(e,t){for(;e.ye(t););}function _Z(e,t){for(;e.sd(t););}function Iw(e,t){return e.a+=t,e}function mL(e,t){return e.a+=t,e}function Ba(e,t){return e.a+=t,e}function ug(e,t){return e.a+=t,e}function dO(e){return Qd(e),e.a}function nT(e){return e.b!=e.d.c}function GAe(e){return e.l|e.m<<22}function qZ(e,t){return e.d[t.p]}function VAe(e,t){return BLt(e,t)}function QZ(e,t,n){e.splice(t,n)}function YAe(e){e.c?NUe(e):$Ue(e)}function iT(e){this.a=0,this.b=e}function ZAe(){this.a=new I7(zge)}function JAe(){this.b=new I7(jge)}function eMe(){this.b=new I7(UX)}function tMe(){this.b=new I7(UX)}function nMe(){throw L(new on)}function iMe(){throw L(new on)}function rMe(){throw L(new on)}function sMe(){throw L(new on)}function oMe(){throw L(new on)}function cMe(){throw L(new on)}function uMe(){throw L(new on)}function lMe(){throw L(new on)}function fMe(){throw L(new on)}function hMe(){throw L(new on)}function Rvt(){throw L(new Zs)}function Lvt(){throw L(new Zs)}function P9(e){this.a=new aMe(e)}function aMe(e){Uxt(this,e,UPt())}function D9(e){return!e||I$e(e)}function I9(e){return Hf[e]!=-1}function Fvt(){OD!=0&&(OD=0),kD=-1}function dMe(){yK==null&&(yK=[])}function Bvt(e,t){Vq(ie(e.a),t)}function _vt(e,t){Vq(ie(e.a),t)}function N9(e,t){Qw.call(this,e,t)}function K3(e,t){N9.call(this,e,t)}function HZ(e,t){this.b=e,this.c=t}function gMe(e,t){this.b=e,this.a=t}function bMe(e,t){this.a=e,this.b=t}function pMe(e,t){this.a=e,this.b=t}function wMe(e,t){this.a=e,this.b=t}function mMe(e,t){this.a=e,this.b=t}function vMe(e,t){this.a=e,this.b=t}function yMe(e,t){this.a=e,this.b=t}function OMe(e,t){this.a=e,this.b=t}function kMe(e,t){this.a=e,this.b=t}function SMe(e,t){this.b=e,this.a=t}function xMe(e,t){this.b=e,this.a=t}function EMe(e,t){this.b=e,this.a=t}function CMe(e,t){this.b=e,this.a=t}function bn(e,t){this.f=e,this.g=t}function W3(e,t){this.e=e,this.d=t}function lg(e,t){this.g=e,this.i=t}function vL(e,t){this.a=e,this.b=t}function TMe(e,t){this.a=e,this.f=t}function AMe(e,t){this.b=e,this.c=t}function qvt(e,t){this.a=e,this.b=t}function MMe(e,t){this.a=e,this.b=t}function yL(e,t){this.a=e,this.b=t}function jMe(e){JJ(e.dc()),this.c=e}function rT(e){this.b=c(tn(e),83)}function PMe(e){this.a=c(tn(e),83)}function Hb(e){this.a=c(tn(e),15)}function DMe(e){this.a=c(tn(e),15)}function sT(e){this.b=c(tn(e),47)}function oT(){this.q=new b.Date}function Th(){Th=X,Hhe=new nt}function X3(){X3=X,Q4=new Ze}function gO(e){return e.f.c+e.g.c}function $9(e,t){return e.b.Hc(t)}function IMe(e,t){return e.b.Ic(t)}function NMe(e,t){return e.b.Qc(t)}function $Me(e,t){return e.b.Hc(t)}function RMe(e,t){return e.c.uc(t)}function ia(e,t){return e.a._b(t)}function LMe(e,t){return qn(e.c,t)}function FMe(e,t){return Jc(e.b,t)}function BMe(e,t){return e>t&&t<n6}function Qvt(e,t){return e.Gc(t),e}function Hvt(e,t){return Br(e,t),e}function zvt(e){return A$e(),e?Gtt:Utt}function F2(e){xQe.call(this,e,0)}function _Me(){zF.call(this,null)}function zZ(){WB.call(this,null)}function B2(e){this.c=e,v_e(this)}function ai(){YPe(this),Vu(this)}function Ci(e,t){Qd(e),e.a.Nb(t)}function qMe(e,t){return e.Gc(t),e}function Kvt(e,t){return e.a.f=t,e}function QMe(e,t){return e.a.d=t,e}function HMe(e,t){return e.a.g=t,e}function zMe(e,t){return e.a.j=t,e}function kl(e,t){return e.a.a=t,e}function Sl(e,t){return e.a.d=t,e}function xl(e,t){return e.a.e=t,e}function El(e,t){return e.a.g=t,e}function R9(e,t){return e.a.f=t,e}function Wvt(e){return e.b=!1,e}function U3(){U3=X,tae=new EPe}function cT(){cT=X,unt=new CPe}function G3(){G3=X,cae=new Mo}function KMe(){KMe=X,urt=new bye}function uT(){uT=X,KK=new LDe}function X1(){X1=X,H4=new bf}function bO(){bO=X,frt=new pye}function WMe(){WMe=X,mnt=new J0}function KZ(){KZ=X,Yit=new Z3e}function L9(){L9=X,drt=new Er}function XMe(){XMe=X,Zit=new sye}function WZ(){WZ=X,Jit=new QNe}function XZ(){XZ=X,rde=new iye}function F9(){F9=X,grt=new Hye}function UMe(){UMe=X,mrt=new T4e}function pO(){pO=X,xrt=new uOe}function lT(){lT=X,Rm=new DOe}function GMe(){GMe=X,Wut=new Ji}function fT(){fT=X,GX=new YMe}function hT(){hT=X,VX=new YDe}function wO(){wO=X,sE=new q$e}function aT(){aT=X,gct=new c8e}function VMe(){wqe(),this.c=new gL}function YMe(){bn.call(this,BZe,0)}function fg(e,t){p0(e.c.b,t.c,t)}function mO(e,t){p0(e.c.c,t.b,t)}function Xvt(e,t,n){fs(e.d,t.f,n)}function Uvt(e,t,n,i){xMt(e,i,t,n)}function Gvt(e,t,n,i){WRt(i,e,t,n)}function Vvt(e,t,n,i){lHt(i,e,t,n)}function dT(e,t){return e.a=t.g,e}function ZMe(e,t){return Ijt(e.a,t)}function Yvt(e){return e.b?e.b:e.a}function Zvt(e){return(e.c+e.a)/2}function zb(){zb=X,nht=new d8e}function JMe(){JMe=X,fht=new w8e}function eje(){eje=X,Sht=new UTe}function tje(){tje=X,xht=new GTe}function Id(){Id=X,bl=new wZ}function UZ(){UZ=X,jwe=new ZTe}function vO(){vO=X,NU=new iDe}function _a(){_a=X,PE=new rDe}function OL(){OL=X,Fht=new D9e}function Kr(){Kr=X,_ht=new I9e}function gT(){gT=X,RN=new Zt}function GZ(){GZ=X,qwe=new de}function Nd(){Nd=X,j1=new $Se}function Jvt(e){b.clearTimeout(e)}function VZ(e){this.a=c(tn(e),224)}function bT(e){return c(e,42).cd()}function B9(e){return e.b<e.d.gc()}function nje(e,t){return LF(e.a,t)}function ije(e,t){return oo(e,t)>0}function kL(e,t){return oo(e,t)<0}function yO(e,t){return e.a.get(t)}function e3t(e,t){return t.split(e)}function rje(e,t){return Jc(e.e,t)}function YZ(e){return yt(e),!1}function pT(e){dt.call(this,e,21)}function t3t(e,t){$Re.call(this,e,t)}function wT(e,t){bn.call(this,e,t)}function SL(e,t){bn.call(this,e,t)}function ZZ(e){iB(),RIe.call(this,e)}function JZ(e,t){BNe(e,e.length,t)}function _9(e,t){g$e(e,e.length,t)}function n3t(e,t,n){t.ud(e.a.Ge(n))}function i3t(e,t,n){t.we(e.a.Fe(n))}function r3t(e,t,n){t.td(e.a.Kb(n))}function s3t(e,t,n){e.Mb(n)&&t.td(n)}function OO(e,t,n){e.splice(t,0,n)}function o3t(e,t){return dc(e.e,t)}function mT(e,t){this.d=e,this.e=t}function sje(e,t){this.b=e,this.a=t}function oje(e,t){this.b=e,this.a=t}function eJ(e,t){this.b=e,this.a=t}function cje(e,t){this.a=e,this.b=t}function uje(e,t){this.a=e,this.b=t}function lje(e,t){this.a=e,this.b=t}function fje(e,t){this.a=e,this.b=t}function _2(e,t){this.a=e,this.b=t}function tJ(e,t){this.b=e,this.a=t}function nJ(e,t){this.b=e,this.a=t}function vT(e,t){bn.call(this,e,t)}function yT(e,t){bn.call(this,e,t)}function iJ(e,t){bn.call(this,e,t)}function rJ(e,t){bn.call(this,e,t)}function Nw(e,t){bn.call(this,e,t)}function xL(e,t){bn.call(this,e,t)}function EL(e,t){bn.call(this,e,t)}function CL(e,t){bn.call(this,e,t)}function OT(e,t){bn.call(this,e,t)}function sJ(e,t){bn.call(this,e,t)}function TL(e,t){bn.call(this,e,t)}function q9(e,t){bn.call(this,e,t)}function kT(e,t){bn.call(this,e,t)}function AL(e,t){bn.call(this,e,t)}function kO(e,t){bn.call(this,e,t)}function oJ(e,t){bn.call(this,e,t)}function Ii(e,t){bn.call(this,e,t)}function ST(e,t){bn.call(this,e,t)}function hje(e,t){this.a=e,this.b=t}function aje(e,t){this.a=e,this.b=t}function dje(e,t){this.a=e,this.b=t}function gje(e,t){this.a=e,this.b=t}function bje(e,t){this.a=e,this.b=t}function pje(e,t){this.a=e,this.b=t}function wje(e,t){this.a=e,this.b=t}function mje(e,t){this.a=e,this.b=t}function vje(e,t){this.a=e,this.b=t}function cJ(e,t){this.b=e,this.a=t}function yje(e,t){this.b=e,this.a=t}function Oje(e,t){this.b=e,this.a=t}function kje(e,t){this.b=e,this.a=t}function V3(e,t){this.c=e,this.d=t}function Sje(e,t){this.e=e,this.d=t}function xje(e,t){this.a=e,this.b=t}function Eje(e,t){this.b=t,this.c=e}function xT(e,t){bn.call(this,e,t)}function Q9(e,t){bn.call(this,e,t)}function ML(e,t){bn.call(this,e,t)}function SO(e,t){bn.call(this,e,t)}function uJ(e,t){bn.call(this,e,t)}function jL(e,t){bn.call(this,e,t)}function PL(e,t){bn.call(this,e,t)}function H9(e,t){bn.call(this,e,t)}function lJ(e,t){bn.call(this,e,t)}function DL(e,t){bn.call(this,e,t)}function xO(e,t){bn.call(this,e,t)}function fJ(e,t){bn.call(this,e,t)}function EO(e,t){bn.call(this,e,t)}function CO(e,t){bn.call(this,e,t)}function Kb(e,t){bn.call(this,e,t)}function IL(e,t){bn.call(this,e,t)}function NL(e,t){bn.call(this,e,t)}function hJ(e,t){bn.call(this,e,t)}function TO(e,t){bn.call(this,e,t)}function $L(e,t){bn.call(this,e,t)}function ET(e,t){bn.call(this,e,t)}function z9(e,t){bn.call(this,e,t)}function K9(e,t){bn.call(this,e,t)}function q2(e,t){bn.call(this,e,t)}function RL(e,t){bn.call(this,e,t)}function aJ(e,t){bn.call(this,e,t)}function LL(e,t){bn.call(this,e,t)}function FL(e,t){bn.call(this,e,t)}function dJ(e,t){bn.call(this,e,t)}function BL(e,t){bn.call(this,e,t)}function _L(e,t){bn.call(this,e,t)}function qL(e,t){bn.call(this,e,t)}function QL(e,t){bn.call(this,e,t)}function gJ(e,t){bn.call(this,e,t)}function Cje(e,t){this.b=e,this.a=t}function Tje(e,t){this.a=e,this.b=t}function Aje(e,t){this.a=e,this.b=t}function Mje(e,t){this.a=e,this.b=t}function jje(e,t){this.a=e,this.b=t}function bJ(e,t){bn.call(this,e,t)}function pJ(e,t){bn.call(this,e,t)}function Pje(e,t){this.b=e,this.d=t}function wJ(e,t){bn.call(this,e,t)}function mJ(e,t){bn.call(this,e,t)}function Dje(e,t){this.a=e,this.b=t}function Ije(e,t){this.a=e,this.b=t}function CT(e,t){bn.call(this,e,t)}function AO(e,t){bn.call(this,e,t)}function vJ(e,t){bn.call(this,e,t)}function yJ(e,t){bn.call(this,e,t)}function OJ(e,t){bn.call(this,e,t)}function HL(e,t){bn.call(this,e,t)}function kJ(e,t){bn.call(this,e,t)}function zL(e,t){bn.call(this,e,t)}function TT(e,t){bn.call(this,e,t)}function KL(e,t){bn.call(this,e,t)}function WL(e,t){bn.call(this,e,t)}function W9(e,t){bn.call(this,e,t)}function XL(e,t){bn.call(this,e,t)}function SJ(e,t){bn.call(this,e,t)}function X9(e,t){bn.call(this,e,t)}function xJ(e,t){bn.call(this,e,t)}function c3t(e,t){return dc(e.c,t)}function u3t(e,t){return dc(t.b,e)}function l3t(e,t){return-e.b.Je(t)}function EJ(e,t){return dc(e.g,t)}function U9(e,t){bn.call(this,e,t)}function Q2(e,t){bn.call(this,e,t)}function Nje(e,t){this.a=e,this.b=t}function $je(e,t){this.a=e,this.b=t}function De(e,t){this.a=e,this.b=t}function MO(e,t){bn.call(this,e,t)}function jO(e,t){bn.call(this,e,t)}function G9(e,t){bn.call(this,e,t)}function UL(e,t){bn.call(this,e,t)}function AT(e,t){bn.call(this,e,t)}function PO(e,t){bn.call(this,e,t)}function GL(e,t){bn.call(this,e,t)}function MT(e,t){bn.call(this,e,t)}function $w(e,t){bn.call(this,e,t)}function V9(e,t){bn.call(this,e,t)}function DO(e,t){bn.call(this,e,t)}function IO(e,t){bn.call(this,e,t)}function Y9(e,t){bn.call(this,e,t)}function jT(e,t){bn.call(this,e,t)}function Rw(e,t){bn.call(this,e,t)}function PT(e,t){bn.call(this,e,t)}function Rje(e,t){this.a=e,this.b=t}function Lje(e,t){this.a=e,this.b=t}function Fje(e,t){this.a=e,this.b=t}function Bje(e,t){this.a=e,this.b=t}function _je(e,t){this.a=e,this.b=t}function qje(e,t){this.a=e,this.b=t}function wr(e,t){this.a=e,this.b=t}function DT(e,t){bn.call(this,e,t)}function Qje(e,t){this.a=e,this.b=t}function Hje(e,t){this.a=e,this.b=t}function zje(e,t){this.a=e,this.b=t}function Kje(e,t){this.a=e,this.b=t}function Wje(e,t){this.a=e,this.b=t}function Xje(e,t){this.a=e,this.b=t}function Uje(e,t){this.b=e,this.a=t}function Gje(e,t){this.b=e,this.a=t}function Vje(e,t){this.b=e,this.a=t}function Yje(e,t){this.b=e,this.a=t}function Zje(e,t){this.a=e,this.b=t}function Jje(e,t){this.a=e,this.b=t}function f3t(e,t){_Rt(e.a,c(t,56))}function ePe(e,t){Z7t(e.a,c(t,11))}function h3t(e,t){return ry(),t!=e}function tPe(){return CAe(),new ont}function nPe(){kB(),this.b=new Zi}function iPe(){Kj(),this.a=new Zi}function rPe(){wne(),Cte.call(this)}function H2(e,t){bn.call(this,e,t)}function sPe(e,t){this.a=e,this.b=t}function oPe(e,t){this.a=e,this.b=t}function IT(e,t){this.a=e,this.b=t}function cPe(e,t){this.a=e,this.b=t}function uPe(e,t){this.a=e,this.b=t}function lPe(e,t){this.a=e,this.b=t}function fPe(e,t){this.d=e,this.b=t}function CJ(e,t){this.d=e,this.e=t}function hPe(e,t){this.f=e,this.c=t}function Z9(e,t){this.b=e,this.c=t}function TJ(e,t){this.i=e,this.g=t}function aPe(e,t){this.e=e,this.a=t}function dPe(e,t){this.a=e,this.b=t}function AJ(e,t){e.i=null,$M(e,t)}function a3t(e,t){e&&Qn(AE,e,t)}function gPe(e,t){return eq(e.a,t)}function NT(e){return h7(e.c,e.b)}function Hs(e){return e?e.dd():null}function ne(e){return e??null}function Wb(e){return typeof e===Ev}function Xb(e){return typeof e===cue}function ur(e){return typeof e===_Q}function $d(e,t){return e.Hd().Xb(t)}function $T(e,t){return AEt(e.Kc(),t)}function hg(e,t){return oo(e,t)==0}function d3t(e,t){return oo(e,t)>=0}function NO(e,t){return oo(e,t)!=0}function g3t(e){return""+(yt(e),e)}function J9(e,t){return e.substr(t)}function bPe(e){return qc(e),e.d.gc()}function VL(e){return f$t(e,e.c),e}function RT(e){return XO(e==null),e}function $O(e,t){return e.a+=""+t,e}function is(e,t){return e.a+=""+t,e}function RO(e,t){return e.a+=""+t,e}function Js(e,t){return e.a+=""+t,e}function pn(e,t){return e.a+=""+t,e}function MJ(e,t){return e.a+=""+t,e}function pPe(e,t){ji(e,t,e.a,e.a.a)}function U1(e,t){ji(e,t,e.c.b,e.c)}function b3t(e,t,n){EKe(t,Hq(e,n))}function p3t(e,t,n){EKe(t,Hq(e,n))}function w3t(e,t){lxt(new Ft(e),t)}function wPe(e,t){e.q.setTime(Ag(t))}function mPe(e,t){$te.call(this,e,t)}function vPe(e,t){$te.call(this,e,t)}function YL(e,t){$te.call(this,e,t)}function yPe(e){Cc(this),vk(this,e)}function jJ(e){return gt(e,0),null}function Vl(e){return e.a=0,e.b=0,e}function OPe(e,t){return e.a=t.g+1,e}function m3t(e,t){return e.j[t.p]==2}function PJ(e){return e6t(c(e,79))}function kPe(){kPe=X,eit=mn(oq())}function SPe(){SPe=X,wrt=mn(sUe())}function xPe(){this.b=new F2(fp(12))}function EPe(){this.b=0,this.a=!1}function CPe(){this.b=0,this.a=!1}function LO(e){this.a=e,QR.call(this)}function TPe(e){this.a=e,QR.call(this)}function ot(e,t){Ki.call(this,e,t)}function ZL(e,t){Zb.call(this,e,t)}function Lw(e,t){TJ.call(this,e,t)}function JL(e,t){Ry.call(this,e,t)}function APe(e,t){eS.call(this,e,t)}function Cn(e,t){gT(),Qn(RN,e,t)}function eF(e,t){return uu(e.a,0,t)}function MPe(e,t){return e.a.a.a.cc(t)}function jPe(e,t){return ne(e)===ne(t)}function v3t(e,t){return qi(e.a,t.a)}function y3t(e,t){return Uo(e.a,t.a)}function O3t(e,t){return h$e(e.a,t.a)}function Vf(e,t){return e.indexOf(t)}function ag(e,t){return e==t?0:e?1:-1}function LT(e){return e<10?"0"+e:""+e}function k3t(e){return tn(e),new LO(e)}function PPe(e){return Bo(e.l,e.m,e.h)}function Y3(e){return Di((yt(e),e))}function S3t(e){return Di((yt(e),e))}function DPe(e,t){return Uo(e.g,t.g)}function Cs(e){return typeof e===cue}function x3t(e){return e==lb||e==Kp}function E3t(e){return e==lb||e==zp}function DJ(e){return Ts(e.b.b,e,0)}function IPe(e){this.a=tPe(),this.b=e}function NPe(e){this.a=tPe(),this.b=e}function C3t(e,t){return ae(e.a,t),t}function T3t(e,t){return ae(e.c,t),e}function $Pe(e,t){return gu(e.a,t),e}function A3t(e,t){return Tl(),t.a+=e}function M3t(e,t){return Tl(),t.a+=e}function j3t(e,t){return Tl(),t.c+=e}function IJ(e,t){ky(e,0,e.length,t)}function ra(){_Y.call(this,new i0)}function RPe(){pA.call(this,0,0,0,0)}function z2(){Pu.call(this,0,0,0,0)}function ls(e){this.a=e.a,this.b=e.b}function Rd(e){return e==ul||e==Bl}function Z3(e){return e==Aa||e==Ta}function LPe(e){return e==Gm||e==Um}function Fw(e){return e!=_f&&e!=k1}function Vc(e){return e.Lg()&&e.Mg()}function FPe(e){return DA(c(e,118))}function FT(e){return gu(new Ji,e)}function BPe(e,t){return new Ry(t,e)}function P3t(e,t){return new Ry(t,e)}function NJ(e,t,n){TM(e,t),AM(e,n)}function BT(e,t,n){Ng(e,t),Ig(e,n)}function pf(e,t,n){tc(e,t),nc(e,n)}function _T(e,t,n){Cy(e,t),Ay(e,n)}function qT(e,t,n){Ty(e,t),My(e,n)}function tF(e,t){Qy(e,t),jy(e,e.D)}function $J(e){hPe.call(this,e,!0)}function _Pe(e,t,n){xee.call(this,e,t,n)}function Ld(e){t1(),DEt.call(this,e)}function qPe(){wT.call(this,"Head",1)}function QPe(){wT.call(this,"Tail",3)}function nF(e){e.c=Y(It,Ce,1,0,5,1)}function HPe(e){e.a=Y(It,Ce,1,8,5,1)}function zPe(e){ec(e.xf(),new Dxe(e))}function Bw(e){return e!=null?oi(e):0}function D3t(e,t){return hp(t,vf(e))}function I3t(e,t){return hp(t,vf(e))}function N3t(e,t){return e[e.length]=t}function $3t(e,t){return e[e.length]=t}function RJ(e){return NOt(e.b.Kc(),e.a)}function R3t(e,t){return NM(tB(e.d),t)}function L3t(e,t){return NM(tB(e.g),t)}function F3t(e,t){return NM(tB(e.j),t)}function Wr(e,t){Ki.call(this,e.b,t)}function dg(e){pA.call(this,e,e,e,e)}function LJ(e){return e.b&&SQ(e),e.a}function FJ(e){return e.b&&SQ(e),e.c}function B3t(e,t){$f||(e.b=t)}function iF(e,t,n){return bi(e,t,n),n}function KPe(e,t,n){bi(e.c[t.g],t.g,n)}function _3t(e,t,n){c(e.c,69).Xh(t,n)}function q3t(e,t,n){pf(n,n.i+e,n.j+t)}function Q3t(e,t){rn(ao(e.a),sLe(t))}function H3t(e,t){rn(Bc(e.a),oLe(t))}function FO(e){Rn(),eg.call(this,e)}function z3t(e){return e==null?0:oi(e)}function WPe(){WPe=X,TX=new Mk(kU)}function cn(){cn=X,new XPe,new de}function XPe(){new Zt,new Zt,new Zt}function BJ(){BJ=X,iZ(),Mhe=new Zt}function wf(){wf=X,b.Math.log(2)}function Mu(){Mu=X,Yh=(JMe(),fht)}function K3t(){throw L(new La($tt))}function W3t(){throw L(new La($tt))}function X3t(){throw L(new La(Rtt))}function U3t(){throw L(new La(Rtt))}function UPe(e){this.a=e,ite.call(this,e)}function rF(e){this.a=e,rT.call(this,e)}function sF(e){this.a=e,rT.call(this,e)}function ir(e,t){RF(e.c,e.c.length,t)}function Ns(e){return e.a<e.c.c.length}function _J(e){return e.a<e.c.a.length}function GPe(e,t){return e.a?e.b:t.De()}function Uo(e,t){return e<t?-1:e>t?1:0}function VPe(e,t){return oo(e,t)>0?e:t}function Bo(e,t,n){return{l:e,m:t,h:n}}function G3t(e,t){e.a!=null&&ePe(t,e.a)}function YPe(e){e.a=new Nt,e.c=new Nt}function QT(e){this.b=e,this.a=new de}function ZPe(e){this.b=new IR,this.a=e}function qJ(e){Iee.call(this),this.a=e}function JPe(){wT.call(this,"Range",2)}function eDe(){$se(),this.a=new I7(ide)}function V3t(e,t){tn(t),zw(e).Jc(new te)}function Y3t(e,t){return lu(),t.n.b+=e}function Z3t(e,t,n){return Qn(e.g,n,t)}function J3t(e,t,n){return Qn(e.k,n,t)}function eyt(e,t){return Qn(e.a,t.a,t)}function _w(e,t,n){return tse(t,n,e.c)}function QJ(e){return new De(e.c,e.d)}function tyt(e){return new De(e.c,e.d)}function zs(e){return new De(e.a,e.b)}function tDe(e,t){return xQt(e.a,t,null)}function nyt(e){jr(e,null),dr(e,null)}function nDe(e){xB(e,null),EB(e,null)}function iDe(){eS.call(this,null,null)}function rDe(){VT.call(this,null,null)}function HJ(e){this.a=e,Zt.call(this)}function iyt(e){this.b=(it(),new GR(e))}function HT(e){e.j=Y(Qhe,ue,310,0,0,1)}function ryt(e,t,n){e.c.Vc(t,c(n,133))}function syt(e,t,n){e.c.ji(t,c(n,133))}function sDe(e,t){Ut(e),e.Gc(c(t,15))}function BO(e,t){return _qt(e.c,e.b,t)}function oyt(e,t){return new TDe(e.Kc(),t)}function oF(e,t){return sCt(e.Kc(),t)!=-1}function zJ(e,t){return e.a.Bc(t)!=null}function zT(e){return e.Ob()?e.Pb():null}function oDe(e){return ih(e,0,e.length)}function z(e,t){return e!=null&&fq(e,t)}function cyt(e,t){e.q.setHours(t),Uk(e,t)}function cDe(e,t){e.c&&(gte(t),IRe(t))}function uyt(e,t,n){c(e.Kb(n),164).Nb(t)}function lyt(e,t,n){return wQt(e,t,n),n}function uDe(e,t,n){e.a=t^1502,e.b=n^vH}function cF(e,t,n){return e.a[t.g][n.g]}function mf(e,t){return e.a[t.c.p][t.p]}function fyt(e,t){return e.e[t.c.p][t.p]}function hyt(e,t){return e.c[t.c.p][t.p]}function ayt(e,t){return e.j[t.p]=ORt(t)}function dyt(e,t){return Xne(e.f,t.tg())}function gyt(e,t){return Xne(e.b,t.tg())}function byt(e,t){return e.a<zee(t)?-1:1}function pyt(e,t,n){return n?t!=0:t!=e-1}function wyt(e,t,n){return e.a=t,e.b=n,e}function Yf(e,t){return e.a*=t,e.b*=t,e}function _O(e,t,n){return bi(e.g,t,n),n}function myt(e,t,n,i){bi(e.a[t.g],n.g,i)}function vyt(e,t){Gb(t,e.a.a.a,e.a.a.b)}function lDe(e){e.a=c(mt(e.b.a,4),126)}function fDe(e){e.a=c(mt(e.b.a,4),126)}function yyt(e){yS(e,cet),iQ(e,OHt(e))}function J3(){J3=X,TD=new UC(null)}function KJ(){KJ=X,KJ(),lnt=new Fo}function WJ(){this.Bb|=256,this.Bb|=512}function Ft(e){this.i=e,this.f=this.i.j}function Bi(e,t,n){dS.call(this,e,t,n)}function KT(e,t,n){Bi.call(this,e,t,n)}function ac(e,t,n){Bi.call(this,e,t,n)}function hDe(e,t,n){KT.call(this,e,t,n)}function XJ(e,t,n){dS.call(this,e,t,n)}function qw(e,t,n){dS.call(this,e,t,n)}function UJ(e,t,n){cA.call(this,e,t,n)}function aDe(e,t,n){cA.call(this,e,t,n)}function dDe(e,t,n){UJ.call(this,e,t,n)}function gDe(e,t,n){XJ.call(this,e,t,n)}function Qw(e,t){this.a=e,rT.call(this,t)}function bDe(e,t){this.a=e,dL.call(this,t)}function pDe(e,t){this.a=e,dL.call(this,t)}function wDe(e,t){this.a=e,dL.call(this,t)}function GJ(e){this.a=e,z7e.call(this,e.d)}function Fd(e){this.c=e,this.a=this.c.a}function VJ(e,t){this.a=t,dL.call(this,e)}function mDe(e,t){this.a=t,RB.call(this,e)}function vDe(e,t){this.a=e,RB.call(this,t)}function Oyt(e,t){return Ite(qF(e.c)).Xb(t)}function YJ(e,t){return RTt(e,new Md,t).a}function qt(e,t){return tn(t),new yDe(e,t)}function yDe(e,t){this.a=t,sT.call(this,e)}function ZJ(e){this.b=e,this.a=this.b.a.e}function ODe(e){e.b.Qb(),--e.d.f.d,mA(e.d)}function kDe(e){zR.call(this,c(tn(e),35))}function SDe(e){zR.call(this,c(tn(e),35))}function xDe(){bn.call(this,"INSTANCE",0)}function JJ(e){if(!e)throw L(new M9)}function eee(e){if(!e)throw L(new fc)}function tee(e){if(!e)throw L(new Zs)}function EDe(){EDe=X,OL(),Bht=new M7e}function St(){St=X,D0=!1,B4=!0}function Uu(e){k9.call(this,(yt(e),e))}function cu(e){k9.call(this,(yt(e),e))}function WT(e){N3.call(this,e),this.a=e}function nee(e){$3.call(this,e),this.a=e}function iee(e){q3.call(this,e),this.a=e}function CDe(){HT(this),RA(this),this._d()}function TDe(e,t){this.a=t,sT.call(this,e)}function ADe(e,t){return new kWe(e.a,e.b,t)}function XT(e,t){return e.lastIndexOf(t)}function ree(e,t,n){return e.indexOf(t,n)}function qO(e){return e==null?sc:Ms(e)}function kyt(e){return e==null?null:e.name}function see(e){return e.a!=null?e.a:null}function Syt(e){return nT(e.a)?fLe(e):null}function uF(e,t){return sk(e.a,t)!=null}function dc(e,t){return!!t&&e.b[t.g]==t}function gg(e){return e.$H||(e.$H=++Rzt)}function xyt(e){return e.l+e.m*Av+e.h*k0}function MDe(e,t){return ae(t.a,e.a),e.a}function jDe(e,t){return ae(t.b,e.a),e.a}function bg(e,t){return ae(t.a,e.a),e.a}function pg(e){return $t(e.a!=null),e.a}function lF(e){_Y.call(this,new tie(e))}function oee(e,t){cse.call(this,e,t,null)}function QO(e){this.a=e,NY.call(this,e)}function UT(){UT=X,DD=new Ki(cZe,0)}function GT(e,t){return++e.b,ae(e.a,t)}function cee(e,t){return++e.b,Zo(e.a,t)}function Eyt(e,t){return qi(e.n.a,t.n.a)}function Cyt(e,t){return qi(e.c.d,t.c.d)}function Tyt(e,t){return qi(e.c.c,t.c.c)}function Go(e,t){return c(zn(e.b,t),15)}function Ayt(e,t){return e.n.b=(yt(t),t)}function Myt(e,t){return e.n.b=(yt(t),t)}function HO(e){return Ns(e.a)||Ns(e.b)}function jyt(e,t,n){return iFe(e,t,n,e.b)}function uee(e,t,n){return iFe(e,t,n,e.c)}function lee(e,t,n){c(FS(e,t),21).Fc(n)}function Pyt(e,t,n){H_(e.a,n),kj(e.a,t)}function eS(e,t){vO(),this.a=e,this.b=t}function VT(e,t){_a(),this.b=e,this.c=t}function fF(e,t){_F(),this.f=t,this.d=e}function fee(e,t){Une(t,e),this.d=e,this.c=t}function qa(e){var t;t=e.a,e.a=e.b,e.b=t}function Dyt(e){return Tl(),!!e&&!e.dc()}function Iyt(e){return new op(3,e)}function hee(e,t){return new TIe(e,e.gc(),t)}function Nyt(e){return XC(),wn((ZRe(),ztt),e)}function K2(e){this.d=e,Ft.call(this,e)}function W2(e){this.c=e,Ft.call(this,e)}function tS(e){this.c=e,K2.call(this,e)}function PDe(){pO(),this.b=new gEe(this)}function Ah(e){return du(e,Dp),new jo(e)}function DDe(e){return gy(),parseInt(e)||-1}function uu(e,t,n){return e.substr(t,n-t)}function ey(e,t,n){return ree(e,rc(t),n)}function hF(e){return Kte(e.c,e.c.length)}function $yt(e){return e.f!=null?e.f:""+e.g}function aF(e){return e.f!=null?e.f:""+e.g}function dF(e){return $t(e.b!=0),e.a.a.c}function YT(e){return $t(e.b!=0),e.c.b.c}function nS(e){z(e,150)&&c(e,150).Gh()}function ZT(e){return e.b=c(lRe(e.a),42)}function aee(e){U3(),this.b=e,this.a=!0}function IDe(e){cT(),this.b=e,this.a=!0}function NDe(e){e.d=new RDe(e),e.e=new Zt}function $De(e){if(!e)throw L(new Au)}function dee(e){if(!e)throw L(new M9)}function Ub(e){if(!e)throw L(new fc)}function Ryt(e){if(!e)throw L(new ZR)}function $t(e){if(!e)throw L(new Zs)}function RDe(e){rte.call(this,e,null,null)}function LDe(){bn.call(this,"POLYOMINO",0)}function FDe(e,t,n,i){Dte.call(this,e,t,n,i)}function Lyt(e,t){return e1(),Ye(e,t.e,t)}function Fyt(e,t,n){return aT(),n.qg(e,t)}function er(e,t){return!!e.q&&Jc(e.q,t)}function Byt(e,t){return e>0?t*t/e:t*t*100}function _yt(e,t){return e>0?t/(e*e):t*100}function qyt(e,t,n){return ae(t,PHe(e,n))}function Qyt(e,t,n){dM(),e.Xe(t)&&n.td(e)}function ty(e,t,n){var i;i=e.Zc(t),i.Rb(n)}function Gb(e,t,n){return e.a+=t,e.b+=n,e}function Hyt(e,t,n){return e.a*=t,e.b*=n,e}function iS(e,t,n){return e.a-=t,e.b-=n,e}function gee(e,t){return e.a=t.a,e.b=t.b,e}function JT(e){return e.a=-e.a,e.b=-e.b,e}function BDe(e){this.c=e,this.a=1,this.b=1}function _De(e){this.c=e,tc(e,0),nc(e,0)}function qDe(e){ai.call(this),bk(this,e)}function QDe(e){FQ(),dTe(this),this.mf(e)}function HDe(e,t){vO(),eS.call(this,e,t)}function bee(e,t){_a(),VT.call(this,e,t)}function zDe(e,t){_a(),VT.call(this,e,t)}function KDe(e,t){_a(),bee.call(this,e,t)}function Yc(e,t,n){tu.call(this,e,t,n,2)}function gF(e,t){Mu(),bA.call(this,e,t)}function WDe(e,t){Mu(),gF.call(this,e,t)}function pee(e,t){Mu(),gF.call(this,e,t)}function XDe(e,t){Mu(),pee.call(this,e,t)}function wee(e,t){Mu(),bA.call(this,e,t)}function UDe(e,t){Mu(),wee.call(this,e,t)}function GDe(e,t){Mu(),bA.call(this,e,t)}function zyt(e,t){return e.c.Fc(c(t,133))}function mee(e,t,n){return iP(BS(e,t),n)}function Kyt(e,t,n){return t.Qk(e.e,e.c,n)}function Wyt(e,t,n){return t.Rk(e.e,e.c,n)}function bF(e,t){return Vd(e.e,c(t,49))}function Xyt(e,t,n){Tk(Bc(e.a),t,oLe(n))}function Uyt(e,t,n){Tk(ao(e.a),t,sLe(n))}function vee(e,t){t.$modCount=e.$modCount}function zO(){zO=X,g8=new ci("root")}function ny(){ny=X,jE=new KTe,new WTe}function VDe(){this.a=new Cg,this.b=new Cg}function yee(){bqe.call(this),this.Bb|=Qr}function YDe(){bn.call(this,"GROW_TREE",0)}function Gyt(e){return e==null?null:dHt(e)}function Vyt(e){return e==null?null:OIt(e)}function Yyt(e){return e==null?null:Ms(e)}function Zyt(e){return e==null?null:Ms(e)}function sa(e){e.o==null&&G$t(e)}function je(e){return XO(e==null||Wb(e)),e}function ve(e){return XO(e==null||Xb(e)),e}function ln(e){return XO(e==null||ur(e)),e}function Oee(e){this.q=new b.Date(Ag(e))}function rS(e,t){this.c=e,W3.call(this,e,t)}function eA(e,t){this.a=e,rS.call(this,e,t)}function Jyt(e,t){this.d=e,cxe(this),this.b=t}function kee(e,t){WB.call(this,e),this.a=t}function See(e,t){WB.call(this,e),this.a=t}function e4t(e){Vre.call(this,0,0),this.f=e}function xee(e,t,n){hM.call(this,e,t,n,null)}function ZDe(e,t,n){hM.call(this,e,t,n,null)}function t4t(e,t,n){return e.ue(t,n)<=0?n:t}function n4t(e,t,n){return e.ue(t,n)<=0?t:n}function i4t(e,t){return c(jg(e.b,t),149)}function r4t(e,t){return c(jg(e.c,t),229)}function pF(e){return c(Ae(e.a,e.b),287)}function JDe(e){return new De(e.c,e.d+e.a)}function eIe(e){return lu(),LPe(c(e,197))}function Vb(){Vb=X,Dae=Ve((iu(),W0))}function s4t(e,t){t.a?zLt(e,t):uF(e.a,t.b)}function tIe(e,t){$f||ae(e.a,t)}function o4t(e,t){return L9(),$y(t.d.i,e)}function c4t(e,t){return av(),new iGe(t,e)}function Zf(e,t){return yS(t,Tue),e.f=t,e}function Eee(e,t,n){return n=wu(e,t,3,n),n}function Cee(e,t,n){return n=wu(e,t,6,n),n}function Tee(e,t,n){return n=wu(e,t,9,n),n}function sS(e,t,n){++e.j,e.Ki(),zB(e,t,n)}function nIe(e,t,n){++e.j,e.Hi(t,e.oi(t,n))}function iIe(e,t,n){var i;i=e.Zc(t),i.Rb(n)}function rIe(e,t,n){return qce(e.c,e.b,t,n)}function Aee(e,t){return(t&Bn)%e.d.length}function Ki(e,t){ci.call(this,e),this.a=t}function Mee(e,t){VY.call(this,e),this.a=t}function wF(e,t){VY.call(this,e),this.a=t}function sIe(e,t){this.c=e,Pg.call(this,t)}function oIe(e,t){this.a=e,cTe.call(this,t)}function oS(e,t){this.a=e,cTe.call(this,t)}function cIe(e){this.a=(du(e,Dp),new jo(e))}function uIe(e){this.a=(du(e,Dp),new jo(e))}function cS(e){return!e.a&&(e.a=new le),e.a}function lIe(e){return e>8?0:e+1}function u4t(e,t){return St(),e==t?0:e?1:-1}function jee(e,t,n){return V2(e,c(t,22),n)}function l4t(e,t,n){return e.apply(t,n)}function fIe(e,t,n){return e.a+=ih(t,0,n),e}function Pee(e,t){var n;return n=e.e,e.e=t,n}function f4t(e,t){var n;n=e[mH],n.call(e,t)}function h4t(e,t){var n;n=e[mH],n.call(e,t)}function Yb(e,t){e.a.Vc(e.b,t),++e.b,e.c=-1}function hIe(e){Cc(e.e),e.d.b=e.d,e.d.a=e.d}function uS(e){e.b?uS(e.b):e.f.c.zc(e.e,e.d)}function a4t(e,t,n){X1(),rxe(e,t.Ce(e.a,n))}function d4t(e,t){return wL(XHe(e.a,t,!0))}function g4t(e,t){return wL(UHe(e.a,t,!0))}function Cl(e,t){return ZC(new Array(t),e)}function mF(e){return String.fromCharCode(e)}function b4t(e){return e==null?null:e.message}function aIe(){this.a=new de,this.b=new de}function dIe(){this.a=new YV,this.b=new kTe}function gIe(){this.b=new Er,this.c=new de}function Dee(){this.d=new Er,this.e=new Er}function Iee(){this.n=new Er,this.o=new Er}function tA(){this.n=new N2,this.i=new z2}function bIe(){this.a=new USe,this.b=new $Oe}function pIe(){this.a=new de,this.d=new de}function wIe(){this.b=new Zi,this.a=new Zi}function mIe(){this.b=new Zt,this.a=new Zt}function vIe(){this.b=new JAe,this.a=new Lke}function yIe(){tA.call(this),this.a=new Er}function KO(e){_Et.call(this,e,(bM(),$K))}function Nee(e,t,n,i){pA.call(this,e,t,n,i)}function p4t(e,t,n){n!=null&&DM(t,Oq(e,n))}function w4t(e,t,n){n!=null&&IM(t,Oq(e,n))}function $ee(e,t,n){return n=wu(e,t,11,n),n}function Wn(e,t){return e.a+=t.a,e.b+=t.b,e}function lr(e,t){return e.a-=t.a,e.b-=t.b,e}function m4t(e,t){return e.n.a=(yt(t),t+10)}function v4t(e,t){return e.n.a=(yt(t),t+10)}function y4t(e,t){return t==e||n4(Qj(t),e)}function OIe(e,t){return Qn(e.a,t,"")==null}function O4t(e,t){return L9(),!$y(t.d.i,e)}function k4t(e,t){Rd(e.f)?B$t(e,t):SDt(e,t)}function S4t(e,t){var n;return n=t.Hh(e.a),n}function Zb(e,t){us.call(this,x6+e+A0+t)}function X2(e,t,n,i){pe.call(this,e,t,n,i)}function Ree(e,t,n,i){pe.call(this,e,t,n,i)}function kIe(e,t,n,i){Ree.call(this,e,t,n,i)}function SIe(e,t,n,i){CA.call(this,e,t,n,i)}function vF(e,t,n,i){CA.call(this,e,t,n,i)}function Lee(e,t,n,i){CA.call(this,e,t,n,i)}function xIe(e,t,n,i){vF.call(this,e,t,n,i)}function Fee(e,t,n,i){vF.call(this,e,t,n,i)}function at(e,t,n,i){Lee.call(this,e,t,n,i)}function EIe(e,t,n,i){Fee.call(this,e,t,n,i)}function CIe(e,t,n,i){Rte.call(this,e,t,n,i)}function TIe(e,t,n){this.a=e,fee.call(this,t,n)}function AIe(e,t,n){this.c=t,this.b=n,this.a=e}function x4t(e,t,n){return e.d=c(t.Kb(n),164)}function Bee(e,t){return e.Aj().Nh().Kh(e,t)}function _ee(e,t){return e.Aj().Nh().Ih(e,t)}function MIe(e,t){return yt(e),ne(e)===ne(t)}function Je(e,t){return yt(e),ne(e)===ne(t)}function yF(e,t){return wL(XHe(e.a,t,!1))}function OF(e,t){return wL(UHe(e.a,t,!1))}function E4t(e,t){return e.b.sd(new uje(e,t))}function C4t(e,t){return e.b.sd(new lje(e,t))}function jIe(e,t){return e.b.sd(new fje(e,t))}function qee(e,t,n){return e.lastIndexOf(t,n)}function T4t(e,t,n){return qi(e[t.b],e[n.b])}function A4t(e,t){return oe(t,(ke(),Wx),e)}function M4t(e,t){return Uo(t.a.d.p,e.a.d.p)}function j4t(e,t){return Uo(e.a.d.p,t.a.d.p)}function P4t(e,t){return qi(e.c-e.s,t.c-t.s)}function PIe(e){return e.c?Ts(e.c.a,e,0):-1}function D4t(e){return e<100?null:new jd(e)}function U2(e){return e==K0||e==Vh||e==To}function DIe(e,t){return z(t,15)&&FUe(e.c,t)}function I4t(e,t){$f||t&&(e.d=t)}function kF(e,t){var n;return n=t,!!fre(e,n)}function Qee(e,t){this.c=e,GF.call(this,e,t)}function IIe(e){this.c=e,YL.call(this,hP,0)}function NIe(e,t){FOt.call(this,e,e.length,t)}function N4t(e,t,n){return c(e.c,69).lk(t,n)}function nA(e,t,n){return c(e.c,69).mk(t,n)}function $4t(e,t,n){return Kyt(e,c(t,332),n)}function Hee(e,t,n){return Wyt(e,c(t,332),n)}function R4t(e,t,n){return DKe(e,c(t,332),n)}function $Ie(e,t,n){return NDt(e,c(t,332),n)}function WO(e,t){return t==null?null:bp(e.b,t)}function zee(e){return Xb(e)?(yt(e),e):e.ke()}function iA(e){return!isNaN(e)&&!isFinite(e)}function RIe(e){Jf(),this.a=(it(),new q3(e))}function lS(e){ry(),this.d=e,this.a=new Mw}function ju(e,t,n){this.a=e,this.b=t,this.c=n}function LIe(e,t,n){this.a=e,this.b=t,this.c=n}function FIe(e,t,n){this.d=e,this.b=n,this.a=t}function SF(e){YPe(this),Vu(this),Br(this,e)}function gc(e){nF(this),ste(this.c,0,e.Pc())}function BIe(e){eu(e.a),RBe(e.c,e.b),e.b=null}function _Ie(e){this.a=e,Th(),ic(Date.now())}function qIe(){qIe=X,lae=new x,MD=new x}function xF(){xF=X,eae=new Jt,cnt=new Yt}function QIe(){QIe=X,bht=Y(It,Ce,1,0,5,1)}function HIe(){HIe=X,Iht=Y(It,Ce,1,0,5,1)}function Kee(){Kee=X,Nht=Y(It,Ce,1,0,5,1)}function Jf(){Jf=X,new JY((it(),it(),Gr))}function L4t(e){return bM(),wn((XBe(),fnt),e)}function F4t(e){return Af(),wn((aBe(),pnt),e)}function B4t(e){return gj(),wn((vFe(),knt),e)}function _4t(e){return yM(),wn((yFe(),Snt),e)}function q4t(e){return Uj(),wn((oQe(),xnt),e)}function Q4t(e){return ef(),wn((lBe(),Tnt),e)}function H4t(e){return Tc(),wn((fBe(),Mnt),e)}function z4t(e){return Jo(),wn((hBe(),Pnt),e)}function K4t(e){return lP(),wn((kPe(),eit),e)}function W4t(e){return Lg(),wn((GBe(),nit),e)}function X4t(e){return mv(),wn((VBe(),rit),e)}function U4t(e){return Ik(),wn((YBe(),cit),e)}function G4t(e){return uT(),wn((YLe(),uit),e)}function V4t(e){return OM(),wn((OFe(),Eit),e)}function Y4t(e){return dk(),wn((dBe(),Wit),e)}function Z4t(e){return _r(),wn((T_e(),Vit),e)}function J4t(e){return Fy(),wn((UBe(),trt),e)}function e5t(e){return Fg(),wn((gBe(),crt),e)}function Wee(e,t){if(!e)throw L(new kt(t))}function t5t(e){return jt(),wn((U_e(),hrt),e)}function Xee(e){pA.call(this,e.d,e.c,e.a,e.b)}function EF(e){pA.call(this,e.d,e.c,e.a,e.b)}function Uee(e,t,n){this.b=e,this.c=t,this.a=n}function rA(e,t,n){this.b=e,this.a=t,this.c=n}function zIe(e,t,n){this.a=e,this.b=t,this.c=n}function Gee(e,t,n){this.a=e,this.b=t,this.c=n}function KIe(e,t,n){this.a=e,this.b=t,this.c=n}function Vee(e,t,n){this.a=e,this.b=t,this.c=n}function WIe(e,t,n){this.b=e,this.a=t,this.c=n}function sA(e,t,n){this.e=t,this.b=e,this.d=n}function n5t(e,t,n){return X1(),e.a.Od(t,n),t}function CF(e){var t;return t=new Aw,t.e=e,t}function Yee(e){var t;return t=new MTe,t.b=e,t}function fS(){fS=X,QD=new f4e,HD=new h4e}function Tl(){Tl=X,Ert=new X5e,Crt=new U5e}function i5t(e){return XM(),wn((JBe(),yrt),e)}function r5t(e){return Tf(),wn((t_e(),Mrt),e)}function s5t(e){return Wj(),wn((Gqe(),Lrt),e)}function o5t(e){return yv(),wn((Y_e(),Frt),e)}function c5t(e){return aM(),wn((TFe(),Brt),e)}function u5t(e){return hv(),wn((bBe(),_rt),e)}function l5t(e){return lm(),wn((k_e(),Prt),e)}function f5t(e){return Rg(),wn((mBe(),Rrt),e)}function h5t(e){return jM(),wn((pBe(),qrt),e)}function a5t(e){return m0(),wn((y_e(),Qrt),e)}function d5t(e){return zS(),wn((SFe(),Hrt),e)}function g5t(e){return f0(),wn((wBe(),Krt),e)}function b5t(e){return Rj(),wn((tqe(),Wrt),e)}function p5t(e){return RS(),wn((xFe(),Xrt),e)}function w5t(e){return k7(),wn((J_e(),Urt),e)}function m5t(e){return r4(),wn((Z_e(),Grt),e)}function v5t(e){return Zr(),wn((OQe(),Vrt),e)}function y5t(e){return Ly(),wn((yBe(),Yrt),e)}function O5t(e){return da(),wn((vBe(),Jrt),e)}function k5t(e){return tM(),wn((AFe(),est),e)}function S5t(e){return Fu(),wn((S_e(),tst),e)}function x5t(e){return Dj(),wn((eqe(),pct),e)}function E5t(e){return Sk(),wn((OBe(),wct),e)}function C5t(e){return mp(),wn((n_e(),mct),e)}function T5t(e){return Vr(),wn((xBe(),xct),e)}function A5t(e){return dm(),wn((Uqe(),yct),e)}function M5t(e){return ba(),wn((SBe(),Oct),e)}function j5t(e){return _S(),wn((CFe(),kct),e)}function P5t(e){return HM(),wn((kBe(),Ect),e)}function D5t(e){return Nk(),wn((O_e(),vct),e)}function I5t(e){return jS(),wn((EFe(),Cct),e)}function N5t(e){return zy(),wn((CBe(),Tct),e)}function $5t(e){return qM(),wn((TBe(),Act),e)}function R5t(e){return UM(),wn((EBe(),Mct),e)}function L5t(e){return $g(),wn((ABe(),Qct),e)}function F5t(e){return hk(),wn((jFe(),Xct),e)}function B5t(e){return th(),wn((PFe(),eut),e)}function _5t(e){return yf(),wn((DFe(),nut),e)}function q5t(e){return Yl(),wn((MFe(),wut),e)}function Q5t(e){return Eg(),wn((IFe(),xut),e)}function H5t(e){return Jy(),wn((ZBe(),Eut),e)}function z5t(e){return _k(),wn((nqe(),Tut),e)}function K5t(e){return XA(),wn((RFe(),qut),e)}function W5t(e){return FM(),wn(($Fe(),Xut),e)}function X5t(e){return YA(),wn((NFe(),Qut),e)}function U5t(e){return sj(),wn((MBe(),Gut),e)}function G5t(e){return gM(),wn((LFe(),Vut),e)}function V5t(e){return r7(),wn((jBe(),Yut),e)}function Y5t(e){return xj(),wn((e_e(),alt),e)}function Z5t(e){return QM(),wn((DBe(),dlt),e)}function J5t(e){return rj(),wn((PBe(),glt),e)}function eOt(e){return f4(),wn((C_e(),Nlt),e)}function tOt(e){return f7(),wn((IBe(),$lt),e)}function nOt(e){return fT(),wn((GLe(),Rlt),e)}function iOt(e){return hT(),wn((ULe(),Flt),e)}function rOt(e){return PS(),wn((BFe(),Blt),e)}function sOt(e){return x7(),wn((x_e(),_lt),e)}function oOt(e){return wO(),wn((VLe(),nft),e)}function cOt(e){return e7(),wn((FFe(),ift),e)}function uOt(e){return nf(),wn((E_e(),lft),e)}function lOt(e){return nd(),wn((Vqe(),hft),e)}function fOt(e){return Rh(),wn((V_e(),aft),e)}function hOt(e){return Op(),wn((G_e(),mft),e)}function aOt(e){return Ur(),wn((SPe(),wrt),e)}function dOt(e){return Dy(),wn((kFe(),prt),e)}function gOt(e){return Yr(),wn((A_e(),Ift),e)}function bOt(e){return Ef(),wn(($Be(),Nft),e)}function pOt(e){return ma(),wn((s_e(),$ft),e)}function wOt(e){return Nj(),wn((rqe(),Rft),e)}function mOt(e){return pa(),wn((NBe(),Fft),e)}function vOt(e){return bu(),wn((r_e(),_ft),e)}function yOt(e){return Ep(),wn((sQe(),qft),e)}function OOt(e){return im(),wn((M_e(),Qft),e)}function kOt(e){return br(),wn((z_e(),Hft),e)}function SOt(e){return Ac(),wn((iqe(),zft),e)}function xOt(e){return iu(),wn((c_e(),Vft),e)}function EOt(e){return Hc(),wn((kQe(),Yft),e)}function COt(e){return me(),wn((j_e(),Kft),e)}function TOt(e){return uj(),wn((o_e(),Zft),e)}function AOt(e){return nu(),wn((i_e(),tht),e)}function MOt(e){return c4(),wn((Yqe(),ght),e)}function jOt(e,t){return yt(e),e+(yt(t),t)}function POt(e,t){return Th(),rn(ie(e.a),t)}function DOt(e,t){return Th(),rn(ie(e.a),t)}function TF(e,t){this.c=e,this.a=t,this.b=t-e}function XIe(e,t,n){this.a=e,this.b=t,this.c=n}function Zee(e,t,n){this.a=e,this.b=t,this.c=n}function Jee(e,t,n){this.a=e,this.b=t,this.c=n}function UIe(e,t,n){this.a=e,this.b=t,this.c=n}function GIe(e,t,n){this.a=e,this.b=t,this.c=n}function Qa(e,t,n){this.e=e,this.a=t,this.c=n}function VIe(e,t,n){Mu(),hne.call(this,e,t,n)}function AF(e,t,n){Mu(),Gte.call(this,e,t,n)}function ete(e,t,n){Mu(),Gte.call(this,e,t,n)}function tte(e,t,n){Mu(),Gte.call(this,e,t,n)}function YIe(e,t,n){Mu(),AF.call(this,e,t,n)}function nte(e,t,n){Mu(),AF.call(this,e,t,n)}function ZIe(e,t,n){Mu(),nte.call(this,e,t,n)}function JIe(e,t,n){Mu(),ete.call(this,e,t,n)}function eNe(e,t,n){Mu(),tte.call(this,e,t,n)}function hS(e,t){return tn(e),tn(t),new OMe(e,t)}function G2(e,t){return tn(e),tn(t),new dNe(e,t)}function IOt(e,t){return tn(e),tn(t),new gNe(e,t)}function NOt(e,t){return tn(e),tn(t),new SMe(e,t)}function c(e,t){return XO(e==null||fq(e,t)),e}function iy(e){var t;return t=new de,i_(t,e),t}function $Ot(e){var t;return t=new Zi,i_(t,e),t}function tNe(e){var t;return t=new uZ,w_(t,e),t}function aS(e){var t;return t=new ai,w_(t,e),t}function ROt(e){return!e.e&&(e.e=new de),e.e}function LOt(e){return!e.c&&(e.c=new D3),e.c}function ae(e,t){return e.c[e.c.length]=t,!0}function nNe(e,t){this.c=e,this.b=t,this.a=!1}function ite(e){this.d=e,cxe(this),this.b=Mkt(e.d)}function iNe(){this.a=";,;",this.b="",this.c=""}function FOt(e,t,n){r$e.call(this,t,n),this.a=e}function rNe(e,t,n){this.b=e,mPe.call(this,t,n)}function rte(e,t,n){this.c=e,mT.call(this,t,n)}function ste(e,t,n){Toe(n,0,e,t,n.length,!1)}function Mh(e,t,n,i,r){e.b=t,e.c=n,e.d=i,e.a=r}function BOt(e,t){t&&(e.b=t,e.a=(Qd(t),t.a))}function ote(e,t,n,i,r){e.d=t,e.c=n,e.a=i,e.b=r}function cte(e){var t,n;t=e.b,n=e.c,e.b=n,e.c=t}function ute(e){var t,n;n=e.d,t=e.a,e.d=t,e.a=n}function lte(e){return Xd(Kkt(Cs(e)?Yu(e):e))}function _Ot(e,t){return Uo(yNe(e.d),yNe(t.d))}function qOt(e,t){return t==(me(),xt)?e.c:e.d}function ry(){ry=X,Age=(me(),xt),UI=Tt}function sNe(){this.b=re(ve(Te((sf(),ZK))))}function oNe(e){return X1(),Y(It,Ce,1,e,5,1)}function QOt(e){return new De(e.c+e.b,e.d+e.a)}function HOt(e,t){return lT(),Uo(e.d.p,t.d.p)}function MF(e){return $t(e.b!=0),$u(e,e.a.a)}function zOt(e){return $t(e.b!=0),$u(e,e.c.b)}function fte(e,t){if(!e)throw L(new bAe(t))}function oA(e,t){if(!e)throw L(new kt(t))}function hte(e,t,n){V3.call(this,e,t),this.b=n}function dS(e,t,n){CJ.call(this,e,t),this.c=n}function cNe(e,t,n){F_e.call(this,t,n),this.d=e}function ate(e){Kee(),IC.call(this),this.th(e)}function uNe(e,t,n){this.a=e,Lw.call(this,t,n)}function lNe(e,t,n){this.a=e,Lw.call(this,t,n)}function cA(e,t,n){CJ.call(this,e,t),this.c=n}function fNe(){vy(),l6t.call(this,(Id(),bl))}function hNe(e){return e!=null&&!V_(e,D8,I8)}function KOt(e,t){return(yHe(e)<<4|yHe(t))&Ni}function WOt(e,t){return PA(),mq(e,t),new F$e(e,t)}function G1(e,t){var n;e.n&&(n=t,ae(e.f,n))}function sy(e,t,n){var i;i=new np(n),Jl(e,t,i)}function XOt(e,t){var n;return n=e.c,jie(e,t),n}function dte(e,t){return t<0?e.g=-1:e.g=t,e}function uA(e,t){return Pxt(e),e.a*=t,e.b*=t,e}function aNe(e,t,n,i,r){e.c=t,e.d=n,e.b=i,e.a=r}function En(e,t){return ji(e,t,e.c.b,e.c),!0}function gte(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function jF(e){this.b=e,this.a=mg(this.b.a).Ed()}function dNe(e,t){this.b=e,this.a=t,QR.call(this)}function gNe(e,t){this.a=e,this.b=t,QR.call(this)}function bNe(e,t){r$e.call(this,t,1040),this.a=e}function gS(e){return e==0||isNaN(e)?e:e<0?-1:1}function UOt(e){return tv(),Lh(e)==pi(Zd(e))}function GOt(e){return tv(),Zd(e)==pi(Lh(e))}function wg(e,t){return Fk(e,new V3(t.a,t.b))}function VOt(e){return!Fr(e)&&e.c.i.c==e.d.i.c}function lA(e){var t;return t=e.n,e.a.b+t.d+t.a}function pNe(e){var t;return t=e.n,e.e.b+t.d+t.a}function bte(e){var t;return t=e.n,e.e.a+t.b+t.c}function wNe(e){return Rn(),new jh(0,e)}function YOt(e){return e.a?e.a:fB(e)}function XO(e){if(!e)throw L(new _3(null))}function mNe(){mNe=X,RU=(it(),new UR(hK))}function fA(){fA=X,new ase((sL(),SK),(oL(),kK))}function vNe(){vNe=X,Lhe=Y(Rr,ue,19,256,0,1)}function PF(e,t,n,i){qre.call(this,e,t,n,i,0,0)}function ZOt(e,t,n){return Qn(e.b,c(n.b,17),t)}function JOt(e,t,n){return Qn(e.b,c(n.b,17),t)}function ekt(e,t){return ae(e,new De(t.a,t.b))}function tkt(e,t){return e.c<t.c?-1:e.c==t.c?0:1}function DF(e){return e.e.c.length+e.g.c.length}function yNe(e){return e.e.c.length-e.g.c.length}function ONe(e){return e.b.c.length-e.e.c.length}function nkt(e){return lu(),(me(),Ko).Hc(e.j)}function kNe(e){Kee(),ate.call(this,e),this.a=-1}function hA(e,t){Z9.call(this,e,t),this.a=this}function hi(e,t){var n;return n=JF(e,t),n.i=2,n}function aA(e,t){var n;return++e.j,n=e.Ti(t),n}function Fn(e,t,n){return e.a=-1,lee(e,t.g,n),e}function ikt(e,t,n){UQt(e.a,e.b,e.c,c(t,202),n)}function rkt(e,t){Die(e,t==null?null:(yt(t),t))}function skt(e,t){Mie(e,t==null?null:(yt(t),t))}function okt(e,t){Mie(e,t==null?null:(yt(t),t))}function IF(e,t,n){return new AIe(f6t(e).Ie(),n,t)}function V1(e,t,n,i,r,o){return CKe(e,t,n,i,r,0,o)}function SNe(){SNe=X,Nhe=Y(Bv,ue,217,256,0,1)}function xNe(){xNe=X,Fhe=Y(cb,ue,162,256,0,1)}function ENe(){ENe=X,qhe=Y(ub,ue,184,256,0,1)}function CNe(){CNe=X,Rhe=Y(N6,ue,172,128,0,1)}function pte(){Mh(this,!1,!1,!1,!1)}function NF(e){ip(),this.a=(it(),new UR(tn(e)))}function dA(e){for(tn(e);e.Ob();)e.Pb(),e.Qb()}function ckt(e){e.a.cd(),c(e.a.dd(),14).gc(),AZ()}function wte(e){this.c=e,this.b=this.c.d.vc().Kc()}function TNe(e){this.c=e,this.a=new B2(this.c.a)}function UO(e){this.a=new F2(e.gc()),Br(this,e)}function mte(e){_Y.call(this,new i0),Br(this,e)}function ANe(e,t){return e.a+=ih(t,0,t.length),e}function Ae(e,t){return gt(t,e.c.length),e.c[t]}function MNe(e,t){return gt(t,e.a.length),e.a[t]}function ft(e,t){X1(),WB.call(this,e),this.a=t}function ukt(e,t){return b0(Pr(b0(e.a).a,t.a))}function lkt(e,t){return yt(e),XS(e,(yt(t),t))}function fkt(e,t){return yt(t),XS(t,(yt(e),e))}function hkt(e,t){return bi(t,0,vte(t[0],b0(1)))}function vte(e,t){return ukt(c(e,162),c(t,162))}function jNe(e){return e.c-c(Ae(e.a,e.b),287).b}function PNe(e){return e.q?e.q:(it(),it(),Kh)}function DNe(e){return e.e.Hd().gc()*e.c.Hd().gc()}function akt(e,t,n){return Uo(t.d[e.g],n.d[e.g])}function dkt(e,t,n){return Uo(e.d[t.p],e.d[n.p])}function gkt(e,t,n){return Uo(e.d[t.p],e.d[n.p])}function bkt(e,t,n){return Uo(e.d[t.p],e.d[n.p])}function pkt(e,t,n){return Uo(e.d[t.p],e.d[n.p])}function yte(e,t,n){return b.Math.min(n/e,1/t)}function INe(e,t){return e?0:b.Math.max(0,t-1)}function wkt(e,t){var n;for(n=0;n<t;++n)e[n]=-1}function NNe(e){var t;return t=AKe(e),t?NNe(t):e}function mkt(e,t){return e.a==null&&HUe(e),e.a[t]}function Zc(e){return e.c?e.c.f:e.e.b}function bc(e){return e.c?e.c.g:e.e.a}function gA(e){Pg.call(this,e.gc()),vi(this,e)}function bA(e,t){Mu(),qC.call(this,t),this.a=e}function GO(e,t,n){this.a=e,Bi.call(this,t,n,2)}function pA(e,t,n,i){ote(this,e,t,n,i)}function jh(e,t){Rn(),eg.call(this,e),this.a=t}function $Ne(e){this.b=new ai,this.a=e,this.c=-1}function RNe(){this.d=new De(0,0),this.e=new Zi}function LNe(e){fee.call(this,0,0),this.a=e,this.b=0}function FNe(e){this.a=e,this.c=new Zt,lCt(this)}function Ote(e){if(e.e.c!=e.b)throw L(new Au)}function kte(e){if(e.c.e!=e.a)throw L(new Au)}function en(e){return Cs(e)?e|0:GAe(e)}function wA(e,t){return Rn(),new zte(e,t)}function $F(e,t){return e==null?t==null:Je(e,t)}function vkt(e,t){return e==null?t==null:dj(e,t)}function V2(e,t,n){return Dl(e.a,t),_te(e,t.g,n)}function RF(e,t,n){UQe(0,t,e.length),ky(e,0,t,n)}function Jb(e,t,n){sp(t,e.c.length),OO(e.c,t,n)}function BNe(e,t,n){var i;for(i=0;i<t;++i)e[i]=n}function ii(e,t){var n;return n=Ve(e),rre(n,t),n}function ykt(e,t){return!e&&(e=[]),e[e.length]=t,e}function Okt(e,t){return e.a.get(t)!==void 0}function _Ne(e,t){return Gxt(new T2,new gxe(e),t)}function kkt(e){return e==null?TD:new UC(yt(e))}function LF(e,t){return z(t,22)&&dc(e,c(t,22))}function qNe(e,t){return z(t,22)&&Ext(e,c(t,22))}function Ste(e){return Qc(e,26)*i6+Qc(e,27)*r6}function xte(e){return Array.isArray(e)&&e.im===vt}function mA(e){e.b?mA(e.b):e.d.dc()&&e.f.c.Bc(e.e)}function FF(e,t){Wn(e.c,t),e.b.c+=t.a,e.b.d+=t.b}function Skt(e,t){FF(e,lr(new De(t.a,t.b),e.c))}function BF(e,t){this.b=new ai,this.a=e,this.c=t}function QNe(){this.b=new uye,this.c=new vRe(this)}function Ete(){this.d=new P3,this.e=new mRe(this)}function Cte(){wne(),this.f=new ai,this.e=new ai}function HNe(){lu(),this.k=new Zt,this.d=new Zi}function _F(){_F=X,iht=new Wr((Pn(),Wc),0)}function zNe(){zNe=X,Qtt=new LNe(Y(It,Ce,1,0,5,1))}function xkt(e,t,n){RXe(n,e,1),ae(t,new gje(n,e))}function Ekt(e,t,n){Rk(n,e,1),ae(t,new Oje(n,e))}function Ckt(e,t,n){return Wi(e,new _2(t.a,n.a))}function Tkt(e,t,n){return-Uo(e.f[t.p],e.f[n.p])}function vA(e,t,n){var i;e&&(i=e.i,i.c=t,i.b=n)}function yA(e,t,n){var i;e&&(i=e.i,i.d=t,i.a=n)}function Ec(e,t,n){return e.a=-1,lee(e,t.g+1,n),e}function Tte(e,t,n){return n=wu(e,c(t,49),7,n),n}function Ate(e,t,n){return n=wu(e,c(t,49),3,n),n}function KNe(e,t,n){this.a=e,KT.call(this,t,n,22)}function WNe(e,t,n){this.a=e,KT.call(this,t,n,14)}function XNe(e,t,n,i){Mu(),TLe.call(this,e,t,n,i)}function UNe(e,t,n,i){Mu(),TLe.call(this,e,t,n,i)}function Akt(e,t){(t.Bb&to)!=0&&!e.a.o&&(e.a.o=t)}function GNe(e){return e!=null&&UF(e)&&e.im!==vt}function Mte(e){return!Array.isArray(e)&&e.im===vt}function Mkt(e){return z(e,15)?c(e,15).Yc():e.Kc()}function jte(e){return e.Qc(Y(It,Ce,1,e.gc(),5,1))}function VO(e,t){return HAt(BS(e,t))?t.Qh():null}function Pte(e){e?Ose(e,(Th(),Hhe)):Th()}function Bt(e){this.a=(zNe(),Qtt),this.d=c(tn(e),47)}function Dte(e,t,n,i){this.a=e,hM.call(this,e,t,n,i)}function Y1(e){Nd(),this.a=0,this.b=e-1,this.c=1}function VNe(e){HT(this),this.g=e,RA(this),this._d()}function mg(e){return e.c?e.c:e.c=e.Id()}function qF(e){return e.d?e.d:e.d=e.Jd()}function Ite(e){var t;return t=e.c,t||(e.c=e.Dd())}function YNe(e){var t;return t=e.f,t||(e.f=e.Dc())}function Y2(e){var t;return t=e.i,t||(e.i=e.bc())}function ZNe(e){return Rn(),new mB(10,e,0)}function YO(e){return Cs(e)?""+e:LUe(e)}function OA(e){if(e.e.j!=e.d)throw L(new Au)}function oa(e,t){return Xd(rWe(Cs(e)?Yu(e):e,t))}function Bd(e,t){return Xd(Hoe(Cs(e)?Yu(e):e,t))}function ep(e,t){return Xd(PIt(Cs(e)?Yu(e):e,t))}function jkt(e,t){return u4t((yt(e),e),(yt(t),t))}function QF(e,t){return qi((yt(e),e),(yt(t),t))}function JNe(e,t){return tn(t),e.a.Ad(t)&&!e.b.Ad(t)}function Pkt(e,t){return Bo(e.l&t.l,e.m&t.m,e.h&t.h)}function Dkt(e,t){return Bo(e.l|t.l,e.m|t.m,e.h|t.h)}function Ikt(e,t){return Bo(e.l^t.l,e.m^t.m,e.h^t.h)}function kA(e,t){return u7(e,(yt(t),new axe(t)))}function SA(e,t){return u7(e,(yt(t),new dxe(t)))}function e$e(e){return pc(),c(e,11).e.c.length!=0}function t$e(e){return pc(),c(e,11).g.c.length!=0}function Nkt(e,t){return av(),qi(t.a.o.a,e.a.o.a)}function n$e(e,t,n){return wHt(e,c(t,11),c(n,11))}function $kt(e){return e.e?Vne(e.e):null}function Nte(e){e.d||(e.d=e.b.Kc(),e.c=e.b.gc())}function Rkt(e,t,n){e.a.Mb(n)&&(e.b=!0,t.td(n))}function oy(e,t){if(e<0||e>=t)throw L(new rZ)}function Lkt(e,t,n){return bi(t,0,vte(t[0],n[0])),t}function Fkt(e,t,n){t.Ye(n,re(ve(Lt(e.b,n)))*e.a)}function i$e(e,t,n){return bm(),Iy(e,t)&&Iy(e,n)}function ZO(e){return Ac(),!e.Hc(ja)&&!e.Hc(S1)}function xA(e){return new De(e.c+e.b/2,e.d+e.a/2)}function HF(e,t){return t.kh()?Vd(e.b,c(t,49)):t}function $te(e,t){this.e=e,this.d=(t&64)!=0?t|sh:t}function r$e(e,t){this.c=0,this.d=e,this.b=t|64|sh}function EA(e){this.b=new jo(11),this.a=(Kw(),e)}function zF(e){this.b=null,this.a=(Kw(),e||Yhe)}function s$e(e){this.a=Aze(e.a),this.b=new gc(e.b)}function o$e(e){this.b=e,K2.call(this,e),lDe(this)}function c$e(e){this.b=e,tS.call(this,e),fDe(this)}function tp(e,t,n){this.a=e,X2.call(this,t,n,5,6)}function Rte(e,t,n,i){this.b=e,Bi.call(this,t,n,i)}function rr(e,t,n,i,r){GB.call(this,e,t,n,i,r,-1)}function JO(e,t,n,i,r){NS.call(this,e,t,n,i,r,-1)}function pe(e,t,n,i){Bi.call(this,e,t,n),this.b=i}function CA(e,t,n,i){dS.call(this,e,t,n),this.b=i}function u$e(e){hPe.call(this,e,!1),this.a=!1}function l$e(e,t){this.b=e,z7e.call(this,e.b),this.a=t}function f$e(e,t){ip(),qvt.call(this,e,ej(new Gc(t)))}function TA(e,t){return Rn(),new Vte(e,t,0)}function KF(e,t){return Rn(),new Vte(6,e,t)}function Bkt(e,t){return Je(e.substr(0,t.length),t)}function Jc(e,t){return ur(t)?dB(e,t):!!ms(e.f,t)}function yr(e,t){for(yt(t);e.Ob();)t.td(e.Pb())}function Hw(e,t,n){t1(),this.e=e,this.d=t,this.a=n}function Ha(e,t,n,i){var r;r=e.i,r.i=t,r.a=n,r.b=i}function Lte(e){var t;for(t=e;t.f;)t=t.f;return t}function Z2(e){var t;return t=kk(e),$t(t!=null),t}function _kt(e){var t;return t=ETt(e),$t(t!=null),t}function cy(e,t){var n;return n=e.a.gc(),Une(t,n),n-t}function Fte(e,t){var n;for(n=0;n<t;++n)e[n]=!1}function qkt(e,t,n,i){var r;for(r=t;r<n;++r)e[r]=i}function Z(e,t,n,i){UQe(t,n,e.length),qkt(e,t,n,i)}function Qkt(e,t,n){oy(n,e.a.c.length),Iu(e.a,n,t)}function Bte(e,t,n){this.c=e,this.a=t,it(),this.b=n}function _te(e,t,n){var i;return i=e.b[t],e.b[t]=n,i}function Wi(e,t){var n;return n=e.a.zc(t,e),n==null}function Hkt(e){if(!e)throw L(new Zs);return e.d}function qte(e,t){if(e==null)throw L(new R2(t))}function Qte(e,t){return t?Br(e,t):!1}function Ph(e,t,n){return LCt(e,t.g,n),Dl(e.c,t),e}function zkt(e){return vm(e,(Yr(),ul)),e.d=!0,e}function WF(e){return!e.j&&k2t(e,lBt(e.g,e.b)),e.j}function ek(e){Ub(e.b!=-1),Ka(e.c,e.a=e.b),e.b=-1}function Cc(e){e.f=new IPe(e),e.g=new NPe(e),_A(e)}function XF(e){return new ft(null,Gkt(e,e.length))}function _d(e){return new Bt(new VJ(e.a.length,e.a))}function Kkt(e){return Bo(~e.l&zc,~e.m&zc,~e.h&Sa)}function UF(e){return typeof e===K7||typeof e===qQ}function Wkt(e){return e==Oi?kx:e==Li?"-INF":""+e}function Xkt(e){return e==Oi?kx:e==Li?"-INF":""+e}function Ukt(e,t){return e>0?b.Math.log(e/t):-100}function h$e(e,t){return oo(e,t)<0?-1:oo(e,t)>0?1:0}function Hte(e,t,n){return nVe(e,c(t,46),c(n,167))}function a$e(e,t){return c(Ite(mg(e.a)).Xb(t),42).cd()}function Gkt(e,t){return mxt(t,e.length),new bNe(e,t)}function GF(e,t){this.d=e,Ft.call(this,e),this.e=t}function vg(e){this.d=(yt(e),e),this.a=0,this.c=hP}function zte(e,t){eg.call(this,1),this.a=e,this.b=t}function d$e(e,t){return e.c?d$e(e.c,t):ae(e.b,t),e}function Vkt(e,t,n){var i;return i=lp(e,t),IB(e,t,n),i}function Kte(e,t){var n;return n=e.slice(0,t),uie(n,e)}function g$e(e,t,n){var i;for(i=0;i<t;++i)bi(e,i,n)}function b$e(e,t,n,i,r){for(;t<n;)i[r++]=Or(e,t++)}function Ykt(e,t){return qi(e.c.c+e.c.b,t.c.c+t.c.b)}function bS(e,t){return GM(e.a,t,(St(),D0))==null}function pS(e,t){ji(e.d,t,e.b.b,e.b),++e.a,e.c=null}function wS(e,t){sDe(e,z(t,153)?t:c(t,1937).gl())}function yg(e,t){Ci(Vo(e.Oc(),new EOe),new SEe(t))}function uy(e,t,n,i,r){Dq(e,c(zn(t.k,n),15),n,i,r)}function AA(e){e.s=NaN,e.c=NaN,kXe(e,e.e),kXe(e,e.j)}function p$e(e){e.a=null,e.e=null,Cc(e.b),e.d=0,++e.c}function VF(e){return b.Math.abs(e.d.e-e.e.e)-e.a}function Zkt(e,t,n){return c(e.c._c(t,c(n,133)),42)}function Jkt(){return XC(),_(B(Htt,1),he,538,0,[CK])}function e6t(e){return tv(),pi(Lh(e))==pi(Zd(e))}function w$e(e){Dee.call(this),this.a=e,ae(e.a,this)}function YF(e,t){this.d=CTt(e),this.c=t,this.a=.5*t}function m$e(){i0.call(this),this.a=!0,this.b=!0}function Rt(e){return(e.i==null&&rh(e),e.i).length}function v$e(e){return z(e,99)&&(c(e,18).Bb&to)!=0}function t6t(e,t){++e.j,Nq(e,e.i,t),HNt(e,c(t,332))}function ZF(e,t){return t=e.nk(null,t),_Ke(e,null,t)}function vi(e,t){return e.hi()&&(t=QRe(e,t)),e.Wh(t)}function S(e,t,n){var i;return i=JF(e,t),uqe(n,i),i}function JF(e,t){var n;return n=new ere,n.j=e,n.d=t,n}function tn(e){if(e==null)throw L(new iO);return e}function eB(e){var t;return t=e.j,t||(e.j=new U7e(e))}function y$e(e){var t;return t=e.f,t||(e.f=new GJ(e))}function Wte(e){var t;return t=e.k,t||(e.k=new yY(e))}function MA(e){var t;return t=e.k,t||(e.k=new yY(e))}function tk(e){var t;return t=e.g,t||(e.g=new vY(e))}function n6t(e){var t;return t=e.i,t||(e.i=new F7e(e))}function tB(e){var t;return t=e.d,t||(e.d=new KR(e))}function O$e(e){return tn(e),z(e,475)?c(e,475):Ms(e)}function Xte(e){return z(e,607)?e:new jRe(e)}function k$e(e,t){return TS(t,e.c.b.c.gc()),new yMe(e,t)}function S$e(e,t,n){return Rn(),new mLe(e,t,n)}function bi(e,t,n){return Ryt(n==null||KBt(e,n)),e[t]=n}function Ute(e,t){var n;return n=e.a.gc(),TS(t,n),n-1-t}function ly(e,t){return e.a+=String.fromCharCode(t),e}function Z1(e,t){return e.a+=String.fromCharCode(t),e}function nB(e,t){for(yt(t);e.c<e.d;)e.ze(t,e.c++)}function Lt(e,t){return ur(t)?mo(e,t):Hs(ms(e.f,t))}function i6t(e,t){return tv(),e==Lh(t)?Zd(t):Lh(t)}function r6t(e,t){J2(e,new np(t.f!=null?t.f:""+t.g))}function s6t(e,t){J2(e,new np(t.f!=null?t.f:""+t.g))}function x$e(e){this.b=new de,this.a=new de,this.c=e}function Gu(e){this.c=new Er,this.a=new de,this.b=e}function E$e(e){Dee.call(this),this.a=new Er,this.c=e}function np(e){if(e==null)throw L(new iO);this.a=e}function C$e(e){iZ(),this.b=new de,this.a=e,nQt(this,e)}function T$e(e){this.c=e,this.a=new ai,this.b=new ai}function A$e(){A$e=X,Utt=new SY(!1),Gtt=new SY(!0)}function ip(){ip=X,Jf(),xK=new gB((it(),it(),Gr))}function iB(){iB=X,Jf(),Che=new ZZ((it(),it(),CD))}function qd(){qd=X,bt=QNt(),tt(),dw&&Gjt()}function o6t(e,t){return av(),c(rs(e,t.d),15).Fc(t)}function c6t(e,t,n,i){return n==0||(n-i)/n<e.e||t>=e.g}function rB(e,t,n){var i;return i=b_(e,t,n),vce(e,i)}function J2(e,t){var n;n=e.a.length,lp(e,n),IB(e,n,t)}function M$e(e,t){var n;n=console[e],n.call(console,t)}function j$e(e,t){var n;++e.j,n=e.Vi(),e.Ii(e.oi(n,t))}function u6t(e,t,n){c(t.b,65),ec(t.a,new Zee(e,n,t))}function Gte(e,t,n){qC.call(this,t),this.a=e,this.b=n}function Vte(e,t,n){eg.call(this,e),this.a=t,this.b=n}function Yte(e,t,n){this.a=e,VY.call(this,t),this.b=n}function P$e(e,t,n){this.a=e,Tne.call(this,8,t,null,n)}function l6t(e){this.a=(yt(vn),vn),this.b=e,new wZ}function D$e(e){this.c=e,this.b=this.c.a,this.a=this.c.e}function Zte(e){this.c=e,this.b=e.a.d.a,vee(e.a.e,this)}function eu(e){Ub(e.c!=-1),e.d.$c(e.c),e.b=e.c,e.c=-1}function nk(e){return b.Math.sqrt(e.a*e.a+e.b*e.b)}function Og(e,t){return oy(t,e.a.c.length),Ae(e.a,t)}function eh(e,t){return ne(e)===ne(t)||e!=null&&qn(e,t)}function f6t(e){return 0>=e?new zZ:Vxt(e-1)}function h6t(e){return bw?dB(bw,e):!1}function I$e(e){return e?e.dc():!e.Kc().Ob()}function Ir(e){return!e.a&&e.c?e.c.b:e.a}function a6t(e){return!e.a&&(e.a=new Bi(x1,e,4)),e.a}function kg(e){return!e.d&&(e.d=new Bi(ns,e,1)),e.d}function yt(e){if(e==null)throw L(new iO);return e}function ik(e){e.c?e.c.He():(e.d=!0,wLt(e))}function Qd(e){e.c?Qd(e.c):(g0(e),e.d=!0)}function N$e(e){nne(e.a),e.b=Y(It,Ce,1,e.b.length,5,1)}function d6t(e,t){return Uo(t.j.c.length,e.j.c.length)}function g6t(e,t){e.c<0||e.b.b<e.c?U1(e.b,t):e.a._e(t)}function b6t(e,t){var n;n=e.Yg(t),n>=0?e.Bh(n):Moe(e,t)}function $$e(e){var t,n;return t=e.c.i.c,n=e.d.i.c,t==n}function p6t(e){if(e.p!=4)throw L(new fc);return e.e}function w6t(e){if(e.p!=3)throw L(new fc);return e.e}function m6t(e){if(e.p!=6)throw L(new fc);return e.f}function v6t(e){if(e.p!=6)throw L(new fc);return e.k}function y6t(e){if(e.p!=3)throw L(new fc);return e.j}function O6t(e){if(e.p!=4)throw L(new fc);return e.j}function Jte(e){return!e.b&&(e.b=new QC(new rL)),e.b}function Sg(e){return e.c==-2&&m2t(e,BDt(e.g,e.b)),e.c}function fy(e,t){var n;return n=JF("",e),n.n=t,n.i=1,n}function k6t(e,t){FF(c(t.b,65),e),ec(t.a,new QY(e))}function S6t(e,t){rn((!e.a&&(e.a=new oS(e,e)),e.a),t)}function R$e(e,t){this.b=e,GF.call(this,e,t),lDe(this)}function L$e(e,t){this.b=e,Qee.call(this,e,t),fDe(this)}function ene(e,t,n,i){lg.call(this,e,t),this.d=n,this.a=i}function jA(e,t,n,i){lg.call(this,e,n),this.a=t,this.f=i}function F$e(e,t){iyt.call(this,Yxt(tn(e),tn(t))),this.a=t}function B$e(){coe.call(this,j0,(QAe(),Qht)),Kqt(this)}function _$e(){coe.call(this,rl,(z3(),Pwe)),eqt(this)}function q$e(){bn.call(this,"DELAUNAY_TRIANGULATION",0)}function x6t(e){return String.fromCharCode.apply(null,e)}function Qn(e,t,n){return ur(t)?fs(e,t,n):qo(e.f,t,n)}function tne(e){return it(),e?e.ve():(Kw(),Kw(),Jhe)}function E6t(e,t,n){return dv(),n.pg(e,c(t.cd(),146))}function Q$e(e,t){return fA(),new ase(new SDe(e),new kDe(t))}function C6t(e){return du(e,zQ),kM(Pr(Pr(5,e),e/10|0))}function PA(){PA=X,qtt=new cL(_(B(P0,1),aP,42,0,[]))}function H$e(e){return!e.d&&(e.d=new N3(e.c.Cc())),e.d}function hy(e){return!e.a&&(e.a=new SAe(e.c.vc())),e.a}function z$e(e){return!e.b&&(e.b=new q3(e.c.ec())),e.b}function Dh(e,t){for(;t-- >0;)e=e<<1|(e<0?1:0);return e}function wo(e,t){return ne(e)===ne(t)||e!=null&&qn(e,t)}function T6t(e,t){return St(),c(t.b,19).a<e}function A6t(e,t){return St(),c(t.a,19).a<e}function rs(e,t){return LF(e.a,t)?e.b[c(t,22).g]:null}function M6t(e,t,n,i){e.a=uu(e.a,0,t)+(""+i)+J9(e.a,n)}function K$e(e,t){e.u.Hc((Ac(),ja))&&INt(e,t),b7t(e,t)}function Or(e,t){return fn(t,e.length),e.charCodeAt(t)}function W$e(){Is.call(this,"There is no more element.")}function rk(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function X$e(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function An(e,t,n,i){return Wqe(e,t,n,!1),tj(e,i),e}function j6t(e){return e.j.c=Y(It,Ce,1,0,5,1),e.a=-1,e}function P6t(e){return!e.c&&(e.c=new at(zt,e,5,8)),e.c}function D6t(e){return!e.b&&(e.b=new at(zt,e,4,7)),e.b}function DA(e){return!e.n&&(e.n=new pe(Ps,e,1,7)),e.n}function sB(e){return!e.c&&(e.c=new pe(Xc,e,9,9)),e.c}function ay(e){return e.e==R4&&y2t(e,VAt(e.g,e.b)),e.e}function mS(e){return e.f==R4&&O2t(e,Ljt(e.g,e.b)),e.f}function zw(e){var t;return t=e.b,!t&&(e.b=t=new L7e(e)),t}function nne(e){var t;for(t=e.Kc();t.Ob();)t.Pb(),t.Qb()}function dy(e){if(qc(e.d),e.d.d!=e.c)throw L(new Au)}function ine(e,t){this.b=e,this.c=t,this.a=new B2(this.b)}function oB(e,t,n){this.a=aue,this.d=e,this.b=t,this.c=n}function U$e(e,t){this.d=(yt(e),e),this.a=16449,this.c=t}function I6t(e,t){CHe(e,re(ga(t,"x")),re(ga(t,"y")))}function N6t(e,t){CHe(e,re(ga(t,"x")),re(ga(t,"y")))}function ni(e,t){return g0(e),new ft(e,new cie(t,e.a))}function Vo(e,t){return g0(e),new ft(e,new Gne(t,e.a))}function IA(e,t){return g0(e),new kee(e,new iBe(t,e.a))}function NA(e,t){return g0(e),new See(e,new rBe(t,e.a))}function $6t(e,t){return new kRe(c(tn(e),62),c(tn(t),62))}function R6t(e,t){return XZ(),qi((yt(e),e),(yt(t),t))}function L6t(){return uT(),_(B($ae,1),he,481,0,[KK])}function F6t(){return fT(),_(B(Cbe,1),he,482,0,[GX])}function B6t(){return hT(),_(B(Llt,1),he,551,0,[VX])}function _6t(){return wO(),_(B(Xbe,1),he,530,0,[sE])}function G$e(e){this.a=new de,this.e=Y(Vt,ue,48,e,0,2)}function cB(e,t,n,i){this.a=e,this.e=t,this.d=n,this.c=i}function $A(e,t,n,i){this.a=e,this.c=t,this.b=n,this.d=i}function rne(e,t,n,i){this.c=e,this.b=t,this.a=n,this.d=i}function V$e(e,t,n,i){this.c=e,this.b=t,this.d=n,this.a=i}function Pu(e,t,n,i){this.c=e,this.d=t,this.b=n,this.a=i}function Y$e(e,t,n,i){this.a=e,this.d=t,this.c=n,this.b=i}function ev(e,t,n,i){bn.call(this,e,t),this.a=n,this.b=i}function Z$e(e,t,n,i){this.a=e,this.c=t,this.d=n,this.b=i}function q6t(e,t,n){Y_t(e.a,n),UEt(n),x$t(e.b,n),bqt(t,n)}function uB(e,t,n){var i,r;return i=tue(e),r=t.Kh(n,i),r}function J$e(e,t){var n,i;return n=e/t,i=Di(n),n>i&&++i,i}function ca(e){var t,n;return n=(t=new tg,t),Ey(n,e),n}function lB(e){var t,n;return n=(t=new tg,t),foe(n,e),n}function Q6t(e,t){var n;return n=Lt(e.f,t),qie(t,n),null}function fB(e){var t;return t=Jxt(e),t||null}function eRe(e){return!e.b&&(e.b=new pe(nr,e,12,3)),e.b}function H6t(e){return e!=null&&$9(LN,e.toLowerCase())}function z6t(e,t){return qi(bc(e)*Zc(e),bc(t)*Zc(t))}function K6t(e,t){return qi(bc(e)*Zc(e),bc(t)*Zc(t))}function W6t(e,t){return qi(e.d.c+e.d.b/2,t.d.c+t.d.b/2)}function X6t(e,t){return qi(e.g.c+e.g.b/2,t.g.c+t.g.b/2)}function tRe(e,t,n){n.a?nc(e,t.b-e.f/2):tc(e,t.a-e.g/2)}function nRe(e,t,n,i){this.a=e,this.b=t,this.c=n,this.d=i}function iRe(e,t,n,i){this.a=e,this.b=t,this.c=n,this.d=i}function J1(e,t,n,i){this.e=e,this.a=t,this.c=n,this.d=i}function rRe(e,t,n,i){this.a=e,this.c=t,this.d=n,this.b=i}function sRe(e,t,n,i){Mu(),YFe.call(this,t,n,i),this.a=e}function oRe(e,t,n,i){Mu(),YFe.call(this,t,n,i),this.a=e}function cRe(e,t){this.a=e,Jyt.call(this,e,c(e.d,15).Zc(t))}function hB(e){this.f=e,this.c=this.f.e,e.f>0&&vKe(this)}function uRe(e,t,n,i){this.b=e,this.c=i,YL.call(this,t,n)}function lRe(e){return $t(e.b<e.d.gc()),e.d.Xb(e.c=e.b++)}function Vu(e){e.a.a=e.c,e.c.b=e.a,e.a.b=e.c.a=null,e.b=0}function sne(e,t){return e.b=t.b,e.c=t.c,e.d=t.d,e.a=t.a,e}function RA(e){return e.n&&(e.e!==MYe&&e._d(),e.j=null),e}function fRe(e){return XO(e==null||UF(e)&&e.im!==vt),e}function hRe(e){this.b=new de,_i(this.b,this.b),this.a=e}function tv(){tv=X,RD=new de,GK=new Zt,UK=new de}function it(){it=X,Gr=new ce,Kh=new et,CD=new pt}function Kw(){Kw=X,Yhe=new Mi,Zhe=new Mi,Jhe=new ar}function one(){one=X,vnt=new _1,Ont=new Ete,ynt=new j3}function U6t(){fae==256&&(lae=MD,MD=new x,fae=0),++fae}function nv(e){var t;return t=e.f,t||(e.f=new W3(e,e.c))}function G6t(e){return Wg(e)&&Pe(je(Ie(e,(ke(),R0))))}function V6t(e,t){return Ye(e,c(D(t,(ke(),o5)),19),t)}function aRe(e,t){return tm(e.j,t.s,t.c)+tm(t.e,e.s,e.c)}function dRe(e,t){e.e&&!e.e.a&&(aTe(e.e,t),dRe(e.e,t))}function gRe(e,t){e.d&&!e.d.a&&(aTe(e.d,t),gRe(e.d,t))}function Y6t(e,t){return-qi(bc(e)*Zc(e),bc(t)*Zc(t))}function Z6t(e){return c(e.cd(),146).tg()+":"+Ms(e.dd())}function J6t(e){Tl();var t;t=c(e.g,10),t.n.a=e.d.c+t.d.b}function e8t(e,t,n){return pO(),KTt(c(Lt(e.e,t),522),n)}function t8t(e,t){return _c(e),_c(t),gAe(c(e,22),c(t,22))}function n8t(e,t,n){e.i=0,e.e=0,t!=n&&$Qe(e,t,n)}function i8t(e,t,n){e.i=0,e.e=0,t!=n&&RQe(e,t,n)}function e0(e,t,n){var i,r;i=zee(n),r=new $C(i),Jl(e,t,r)}function aB(e,t,n,i,r,o){NS.call(this,e,t,n,i,r,o?-2:-1)}function bRe(e,t,n,i){CJ.call(this,t,n),this.b=e,this.a=i}function cne(e,t){new ai,this.a=new hc,this.b=e,this.c=t}function r8t(e,t){return c(D(e,(fe(),Xv)),15).Fc(t),t}function LA(e,t){if(e==null)throw L(new R2(t));return e}function Xn(e){return!e.q&&(e.q=new pe(gl,e,11,10)),e.q}function ie(e){return!e.s&&(e.s=new pe(lc,e,21,17)),e.s}function FA(e){return!e.a&&(e.a=new pe(mi,e,10,11)),e.a}function BA(e){return z(e,14)?new UO(c(e,14)):$Ot(e.Kc())}function s8t(e){return new bDe(e,e.e.Hd().gc()*e.c.Hd().gc())}function o8t(e){return new pDe(e,e.e.Hd().gc()*e.c.Hd().gc())}function une(e){return e&&e.hashCode?e.hashCode():gg(e)}function dB(e,t){return t==null?!!ms(e.f,null):Okt(e.g,t)}function c8t(e){return tn(e),Lze(new Bt(qt(e.a.Kc(),new Q)))}function vS(e){return it(),z(e,54)?new pL(e):new WT(e)}function pRe(e,t,n){return e.f?e.f.Ne(t,n):!1}function u8t(e,t){return e.a=uu(e.a,0,t)+""+J9(e.a,t+1),e}function l8t(e,t){var n;return n=zJ(e.a,t),n&&(t.d=null),n}function _A(e){var t,n;n=e,t=n.$modCount|0,n.$modCount=t+1}function lne(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function wRe(e){this.b=e,this.a=new Dd(c(tn(new AC),62))}function mRe(e){this.c=e,this.b=new Dd(c(tn(new p9),62))}function vRe(e){this.c=e,this.b=new Dd(c(tn(new cye),62))}function yRe(){this.a=new hZ,this.b=new FTe,this.d=new dye}function xg(){this.a=new hc,this.b=(du(3,Dp),new jo(3))}function ORe(){this.b=new Zi,this.d=new ai,this.e=new dZ}function qA(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}function kRe(e,t){z2t.call(this,new zF(e)),this.a=e,this.b=t}function SRe(){Bq(this,new pY),this.wb=(qd(),bt),z3()}function f8t(e){Kt(e,"No crossing minimization",1),_t(e)}function h8t(e){YC(),b.setTimeout(function(){throw e},0)}function ws(e){return e.u||(Fc(e),e.u=new oIe(e,e)),e.u}function Yo(e){var t;return t=c(mt(e,16),26),t||e.zh()}function xRe(e,t){return z(t,146)&&Je(e.b,c(t,146).tg())}function a8t(e,t){return e.a?t.Wg().Kc():c(t.Wg(),69).Zh()}function d8t(e){return e.k==(jt(),zi)&&er(e,(fe(),X6))}function gB(e){this.a=(it(),z(e,54)?new pL(e):new WT(e))}function gy(){gy=X;var e,t;t=!NAt(),e=new Se,MK=t?new st:e}function bB(e,t){var n;return n=Pd(e.gm),t==null?n:n+": "+t}function ERe(e,t){var n;return n=e.b.Qc(t),pFe(n,e.b.gc()),n}function yS(e,t){if(e==null)throw L(new R2(t));return e}function ms(e,t){return VQe(e,t,G8t(e,t==null?0:e.b.se(t)))}function g8t(e,t,n){return n>=0&&Je(e.substr(n,t.length),t)}function Hd(e,t,n,i,r,o,h){return new $B(e.e,t,n,i,r,o,h)}function CRe(e,t,n,i,r,o){this.a=e,u_.call(this,t,n,i,r,o)}function TRe(e,t,n,i,r,o){this.a=e,u_.call(this,t,n,i,r,o)}function ARe(e,t){this.g=e,this.d=_(B(Wh,1),rd,10,0,[t])}function za(e,t){this.e=e,this.a=It,this.b=YUe(t),this.c=t}function MRe(e,t){tA.call(this),pie(this),this.a=e,this.c=t}function OS(e,t,n,i){bi(e.c[t.g],n.g,i),bi(e.c[n.g],t.g,i)}function pB(e,t,n,i){bi(e.c[t.g],t.g,n),bi(e.b[t.g],t.g,i)}function b8t(){return jS(),_(B(vge,1),he,376,0,[SX,Zx])}function p8t(){return RS(),_(B(h1e,1),he,479,0,[f1e,pI])}function w8t(){return zS(),_(B(u1e,1),he,419,0,[gI,c1e])}function m8t(){return aM(),_(B(e1e,1),he,422,0,[Jde,xW])}function v8t(){return tM(),_(B(x1e,1),he,420,0,[BW,S1e])}function y8t(){return _S(),_(B(bge,1),he,421,0,[yX,OX])}function O8t(){return hk(),_(B(Wct,1),he,523,0,[u8,c8])}function k8t(){return Yl(),_(B(put,1),he,520,0,[sw,w1])}function S8t(){return th(),_(B(Jct,1),he,516,0,[Ob,hd])}function x8t(){return yf(),_(B(tut,1),he,515,0,[_0,Ff])}function E8t(){return Eg(),_(B(Sut,1),he,455,0,[m1,Vm])}function C8t(){return YA(),_(B(Hge,1),he,425,0,[FX,Qge])}function T8t(){return XA(),_(B(qge,1),he,480,0,[LX,_ge])}function A8t(){return FM(),_(B(zge,1),he,495,0,[rN,d5])}function M8t(){return gM(),_(B(Wge,1),he,426,0,[Kge,QX])}function j8t(){return e7(),_(B(Gbe,1),he,429,0,[dN,Ube])}function P8t(){return PS(),_(B(Tbe,1),he,430,0,[YX,hN])}function D8t(){return gj(),_(B(aae,1),he,428,0,[FK,hae])}function I8t(){return yM(),_(B(gae,1),he,427,0,[dae,BK])}function N8t(){return OM(),_(B(Qae,1),he,424,0,[VK,LD])}function $8t(){return Dy(),_(B(brt,1),he,511,0,[$x,lW])}function QA(e,t,n,i){return n>=0?e.jh(t,n,i):e.Sg(null,n,i)}function wB(e){return e.b.b==0?e.a.$e():MF(e.b)}function R8t(e){if(e.p!=5)throw L(new fc);return en(e.f)}function L8t(e){if(e.p!=5)throw L(new fc);return en(e.k)}function fne(e){return ne(e.a)===ne((m_(),IU))&&Fqt(e),e.a}function jRe(e){this.a=c(tn(e),271),this.b=(it(),new iee(e))}function PRe(e,t){i2t(this,new De(e.a,e.b)),r2t(this,aS(t))}function Eg(){Eg=X,m1=new mJ(Mv,0),Vm=new mJ(jv,1)}function th(){th=X,Ob=new pJ(jv,0),hd=new pJ(Mv,1)}function Cg(){X2t.call(this,new F2(fp(12))),JJ(!0),this.a=2}function mB(e,t,n){Rn(),eg.call(this,e),this.b=t,this.a=n}function hne(e,t,n){Mu(),qC.call(this,t),this.a=e,this.b=n}function DRe(e){tA.call(this),pie(this),this.a=e,this.c=!0}function IRe(e){var t;t=e.c.d.b,e.b=t,e.a=e.c.d,t.a=e.c.d.b=e}function HA(e){var t;zxt(e.a),zPe(e.a),t=new LC(e.a),_re(t)}function F8t(e,t){QUe(e,!0),ec(e.e.wf(),new Uee(e,!0,t))}function zA(e,t){return aFe(t),qxt(e,Y(Vt,yn,25,t,15,1),t)}function B8t(e,t){return tv(),e==pi(Lh(t))||e==pi(Zd(t))}function mo(e,t){return t==null?Hs(ms(e.f,null)):yO(e.g,t)}function _8t(e){return e.b==0?null:($t(e.b!=0),$u(e,e.a.a))}function Di(e){return Math.max(Math.min(e,Bn),-2147483648)|0}function q8t(e,t){var n=AK[e.charCodeAt(0)];return n??e}function KA(e,t){return LA(e,"set1"),LA(t,"set2"),new MMe(e,t)}function Q8t(e,t){var n;return n=Rxt(e.f,t),Wn(JT(n),e.f.d)}function sk(e,t){var n,i;return n=t,i=new Lc,jVe(e,n,i),i.d}function vB(e,t,n,i){var r;r=new yIe,t.a[n.g]=r,V2(e.b,i,r)}function ane(e,t,n){var i;i=e.Yg(t),i>=0?e.sh(i,n):tce(e,t,n)}function Ww(e,t,n){UA(),e&&Qn(jU,e,t),e&&Qn(AE,e,n)}function NRe(e,t,n){this.i=new de,this.b=e,this.g=t,this.a=n}function WA(e,t,n){this.c=new de,this.e=e,this.f=t,this.b=n}function dne(e,t,n){this.a=new de,this.e=e,this.f=t,this.c=n}function $Re(e,t){HT(this),this.f=t,this.g=e,RA(this),this._d()}function kS(e,t){var n;n=e.q.getHours(),e.q.setDate(t),Uk(e,n)}function RRe(e,t){var n;for(tn(t),n=e.a;n;n=n.c)t.Od(n.g,n.i)}function LRe(e){var t;return t=new tT(fp(e.length)),rre(t,e),t}function H8t(e){function t(){}return t.prototype=e||{},new t}function z8t(e,t){return aQe(e,t)?(fqe(e),!0):!1}function ua(e,t){if(t==null)throw L(new iO);return qAt(e,t)}function K8t(e){if(e.qe())return null;var t=e.n;return yD[t]}function SS(e){return e.Db>>16!=3?null:c(e.Cb,33)}function vf(e){return e.Db>>16!=9?null:c(e.Cb,33)}function FRe(e){return e.Db>>16!=6?null:c(e.Cb,79)}function BRe(e){return e.Db>>16!=7?null:c(e.Cb,235)}function _Re(e){return e.Db>>16!=7?null:c(e.Cb,160)}function pi(e){return e.Db>>16!=11?null:c(e.Cb,33)}function qRe(e,t){var n;return n=e.Yg(t),n>=0?e.lh(n):Uq(e,t)}function QRe(e,t){var n;return n=new mte(t),HKe(n,e),new gc(n)}function gne(e){var t;return t=e.d,t=e.si(e.f),rn(e,t),t.Ob()}function HRe(e,t){return e.b+=t.b,e.c+=t.c,e.d+=t.d,e.a+=t.a,e}function yB(e,t){return b.Math.abs(e)<b.Math.abs(t)?e:t}function W8t(e){return!e.a&&(e.a=new pe(mi,e,10,11)),e.a.i>0}function zRe(){this.a=new ra,this.e=new Zi,this.g=0,this.i=0}function KRe(e){this.a=e,this.b=Y(Hct,ue,1944,e.e.length,0,2)}function OB(e,t,n){var i;i=DQe(e,t,n),e.b=new LM(i.c.length)}function yf(){yf=X,_0=new bJ(TH,0),Ff=new bJ("UP",1)}function XA(){XA=X,LX=new vJ(sJe,0),_ge=new vJ("FAN",1)}function UA(){UA=X,jU=new Zt,AE=new Zt,a3t(snt,new O8e)}function X8t(e){if(e.p!=0)throw L(new fc);return NO(e.f,0)}function U8t(e){if(e.p!=0)throw L(new fc);return NO(e.k,0)}function WRe(e){return e.Db>>16!=3?null:c(e.Cb,147)}function by(e){return e.Db>>16!=6?null:c(e.Cb,235)}function rp(e){return e.Db>>16!=17?null:c(e.Cb,26)}function XRe(e,t){var n=e.a=e.a||[];return n[t]||(n[t]=e.le(t))}function G8t(e,t){var n;return n=e.a.get(t),n??new Array}function V8t(e,t){var n;n=e.q.getHours(),e.q.setMonth(t),Uk(e,n)}function fs(e,t,n){return t==null?qo(e.f,null,n):Bg(e.g,t,n)}function ok(e,t,n,i,r,o){return new aa(e.e,t,e.aj(),n,i,r,o)}function xS(e,t,n){return e.a=uu(e.a,0,t)+(""+n)+J9(e.a,t),e}function Y8t(e,t,n){return ae(e.a,(PA(),mq(t,n),new lg(t,n))),e}function bne(e){return tee(e.c),e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function URe(e){return tee(e.e),e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function dr(e,t){e.d&&Zo(e.d.e,e),e.d=t,e.d&&ae(e.d.e,e)}function jr(e,t){e.c&&Zo(e.c.g,e),e.c=t,e.c&&ae(e.c.g,e)}function hs(e,t){e.c&&Zo(e.c.a,e),e.c=t,e.c&&ae(e.c.a,e)}function $s(e,t){e.i&&Zo(e.i.j,e),e.i=t,e.i&&ae(e.i.j,e)}function GRe(e,t,n){this.a=t,this.c=e,this.b=(tn(n),new gc(n))}function VRe(e,t,n){this.a=t,this.c=e,this.b=(tn(n),new gc(n))}function YRe(e,t){this.a=e,this.c=zs(this.a),this.b=new qA(t)}function Z8t(e){var t;return g0(e),t=new Zi,ni(e,new Exe(t))}function sp(e,t){if(e<0||e>t)throw L(new us(yue+e+Oue+t))}function pne(e,t){return qNe(e.a,t)?_te(e,c(t,22).g,null):null}function J8t(e){return F_(),St(),c(e.a,81).d.e!=0}function ZRe(){ZRe=X,ztt=mn((XC(),_(B(Htt,1),he,538,0,[CK])))}function JRe(){JRe=X,jct=Ec(new Ji,(_r(),Os),(Ur(),Rx))}function wne(){wne=X,Pct=Ec(new Ji,(_r(),Os),(Ur(),Rx))}function eLe(){eLe=X,Ict=Ec(new Ji,(_r(),Os),(Ur(),Rx))}function tLe(){tLe=X,Uct=Fn(new Ji,(_r(),Os),(Ur(),_6))}function lu(){lu=X,Yct=Fn(new Ji,(_r(),Os),(Ur(),_6))}function nLe(){nLe=X,Zct=Fn(new Ji,(_r(),Os),(Ur(),_6))}function kB(){kB=X,iut=Fn(new Ji,(_r(),Os),(Ur(),_6))}function iLe(){iLe=X,Hut=Ec(new Ji,(Jy(),f8),(_k(),AX))}function t0(e,t,n,i){this.c=e,this.d=i,xB(this,t),EB(this,n)}function iv(e){this.c=new ai,this.b=e.b,this.d=e.c,this.a=e.a}function SB(e){this.a=b.Math.cos(e),this.b=b.Math.sin(e)}function xB(e,t){e.a&&Zo(e.a.k,e),e.a=t,e.a&&ae(e.a.k,e)}function EB(e,t){e.b&&Zo(e.b.f,e),e.b=t,e.b&&ae(e.b.f,e)}function rLe(e,t){u6t(e,e.b,e.c),c(e.b.b,65),t&&c(t.b,65).b}function e9t(e,t){Ire(e,t),z(e.Cb,88)&&xp(Fc(c(e.Cb,88)),2)}function CB(e,t){z(e.Cb,88)&&xp(Fc(c(e.Cb,88)),4),Po(e,t)}function GA(e,t){z(e.Cb,179)&&(c(e.Cb,179).tb=null),Po(e,t)}function vo(e,t){return Kr(),n_(t)?new hA(t,e):new Z9(t,e)}function t9t(e,t){var n,i;n=t.c,i=n!=null,i&&J2(e,new np(t.c))}function sLe(e){var t,n;return n=(z3(),t=new tg,t),Ey(n,e),n}function oLe(e){var t,n;return n=(z3(),t=new tg,t),Ey(n,e),n}function cLe(e,t){var n;return n=new Gu(e),t.c[t.c.length]=n,n}function uLe(e,t){var n;return n=c(bp(nv(e.a),t),14),n?n.gc():0}function lLe(e){var t;return g0(e),t=(Kw(),Kw(),Zhe),xM(e,t)}function fLe(e){for(var t;;)if(t=e.Pb(),!e.Ob())return t}function mne(e,t){K2t.call(this,new F2(fp(e))),du(t,SYe),this.a=t}function Ih(e,t,n){wHe(t,n,e.gc()),this.c=e,this.a=t,this.b=n-t}function hLe(e,t,n){var i;wHe(t,n,e.c.length),i=n-t,QZ(e.c,t,i)}function n9t(e,t){uDe(e,en(Xi(Bd(t,24),bP)),en(Xi(t,bP)))}function gt(e,t){if(e<0||e>=t)throw L(new us(yue+e+Oue+t))}function fn(e,t){if(e<0||e>=t)throw L(new jZ(yue+e+Oue+t))}function dt(e,t){this.b=(yt(e),e),this.a=(t&Ip)==0?t|64|sh:t}function aLe(e){HPe(this),STe(this.a,nre(b.Math.max(8,e))<<1)}function Of(e){return Ls(_(B(tr,1),ue,8,0,[e.i.n,e.n,e.a]))}function i9t(){return Af(),_(B(Kc,1),he,132,0,[uae,yu,Qp])}function r9t(){return ef(),_(B(Hp,1),he,232,0,[Xs,$o,Us])}function s9t(){return Tc(),_(B(Ant,1),he,461,0,[ph,f1,Rl])}function o9t(){return Jo(),_(B(jnt,1),he,462,0,[uf,h1,Ll])}function c9t(){return Fg(),_(B(ode,1),he,423,0,[$m,sde,oW])}function u9t(){return dk(),_(B(nde,1),he,379,0,[eW,JK,tW])}function l9t(){return Sk(),_(B(sge,1),he,378,0,[gX,rge,HI])}function f9t(){return hv(),_(B(n1e,1),he,314,0,[Hv,Fx,t1e])}function h9t(){return jM(),_(B(r1e,1),he,337,0,[i1e,dI,EW])}function a9t(){return f0(),_(B(zrt,1),he,450,0,[AW,J4,Bm])}function d9t(){return Rg(),_(B(bW,1),he,361,0,[hb,d1,fb])}function g9t(){return da(),_(B(Zrt,1),he,303,0,[_x,qm,zv])}function b9t(){return Ly(),_(B(FW,1),he,292,0,[RW,LW,Bx])}function p9t(){return Vr(),_(B(Sct,1),he,452,0,[r8,jc,Ro])}function w9t(){return ba(),_(B(gge,1),he,339,0,[p1,dge,vX])}function m9t(){return HM(),_(B(mge,1),he,375,0,[pge,kX,wge])}function v9t(){return UM(),_(B(Ege,1),he,377,0,[CX,h5,rw])}function y9t(){return zy(),_(B(Oge,1),he,336,0,[xX,yge,s8])}function O9t(){return qM(),_(B(xge,1),he,338,0,[Sge,EX,kge])}function k9t(){return $g(),_(B(qct,1),he,454,0,[Jx,o8,XI])}function S9t(){return sj(),_(B(Uut,1),he,442,0,[qX,BX,_X])}function x9t(){return r7(),_(B(Gge,1),he,380,0,[sN,Xge,Uge])}function E9t(){return rj(),_(B(dbe,1),he,381,0,[abe,XX,hbe])}function C9t(){return QM(),_(B(lbe,1),he,293,0,[WX,ube,cbe])}function T9t(){return f7(),_(B(UX,1),he,437,0,[uN,lN,fN])}function A9t(){return pa(),_(B(nwe,1),he,334,0,[SN,bd,S8])}function M9t(){return Ef(),_(B(zpe,1),he,272,0,[p5,uw,w5])}function j9t(e,t){return Y$t(e,t,z(t,99)&&(c(t,18).Bb&Qr)!=0)}function P9t(e,t,n){var i;return i=Yk(e,t,!1),i.b<=t&&i.a<=n}function dLe(e,t,n){var i;i=new Tke,i.b=t,i.a=n,++t.b,ae(e.d,i)}function D9t(e,t){var n;return n=(yt(e),e).g,dee(!!n),yt(t),n(t)}function vne(e,t){var n,i;return i=cy(e,t),n=e.a.Zc(i),new AMe(e,n)}function I9t(e){return e.Db>>16!=6?null:c(Yq(e),235)}function N9t(e){if(e.p!=2)throw L(new fc);return en(e.f)&Ni}function $9t(e){if(e.p!=2)throw L(new fc);return en(e.k)&Ni}function R9t(e){return e.a==(vy(),qN)&&w2t(e,dRt(e.g,e.b)),e.a}function rv(e){return e.d==(vy(),qN)&&v2t(e,oBt(e.g,e.b)),e.d}function I(e){return $t(e.a<e.c.c.length),e.b=e.a++,e.c.c[e.b]}function L9t(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 Xi(e,t){return Xd(Pkt(Cs(e)?Yu(e):e,Cs(t)?Yu(t):t))}function kf(e,t){return Xd(Dkt(Cs(e)?Yu(e):e,Cs(t)?Yu(t):t))}function TB(e,t){return Xd(Ikt(Cs(e)?Yu(e):e,Cs(t)?Yu(t):t))}function F9t(e){return Pr(oa(ic(Qc(e,32)),32),ic(Qc(e,32)))}function Tg(e){return tn(e),z(e,14)?new gc(c(e,14)):iy(e.Kc())}function B9t(e,t){return gk(),e.c==t.c?qi(t.d,e.d):qi(e.c,t.c)}function _9t(e,t){return gk(),e.c==t.c?qi(e.d,t.d):qi(e.c,t.c)}function q9t(e,t){return gk(),e.c==t.c?qi(e.d,t.d):qi(t.c,e.c)}function Q9t(e,t){return gk(),e.c==t.c?qi(t.d,e.d):qi(t.c,e.c)}function H9t(e,t){var n;n=re(ve(e.a.We((Pn(),kN)))),tYe(e,t,n)}function z9t(e,t){var n;n=c(Lt(e.g,t),57),ec(t.d,new wje(e,n))}function K9t(e,t){var n,i;return n=Jze(e),i=Jze(t),n<i?-1:n>i?1:0}function gLe(e,t){var n,i;return n=YB(t),i=n,c(Lt(e.c,i),19).a}function bLe(e,t){var n;for(n=e+"";n.length<t;)n="0"+n;return n}function VA(e){return e.c==null||e.c.length==0?"n_"+e.g:"n_"+e.c}function yne(e){return e.c==null||e.c.length==0?"n_"+e.b:"n_"+e.c}function One(e,t){return e&&e.equals?e.equals(t):ne(e)===ne(t)}function kne(e,t){return t==0?!!e.o&&e.o.f!=0:uq(e,t)}function Al(e,t,n){var i;e.n&&t&&n&&(i=new h8e,ae(e.e,i))}function AB(e,t,n){var i;i=e.d[t.p],e.d[t.p]=e.d[n.p],e.d[n.p]=i}function pLe(e,t,n){this.d=e,this.j=t,this.e=n,this.o=-1,this.p=3}function wLe(e,t,n){this.d=e,this.k=t,this.f=n,this.o=-1,this.p=5}function mLe(e,t,n){eg.call(this,25),this.b=e,this.a=t,this.c=n}function fu(e){Rn(),eg.call(this,e),this.c=!1,this.a=!1}function vLe(e,t,n,i,r,o){vie.call(this,e,t,n,i,r),o&&(this.o=-2)}function yLe(e,t,n,i,r,o){yie.call(this,e,t,n,i,r),o&&(this.o=-2)}function OLe(e,t,n,i,r,o){zne.call(this,e,t,n,i,r),o&&(this.o=-2)}function kLe(e,t,n,i,r,o){Sie.call(this,e,t,n,i,r),o&&(this.o=-2)}function SLe(e,t,n,i,r,o){Kne.call(this,e,t,n,i,r),o&&(this.o=-2)}function xLe(e,t,n,i,r,o){Oie.call(this,e,t,n,i,r),o&&(this.o=-2)}function ELe(e,t,n,i,r,o){kie.call(this,e,t,n,i,r),o&&(this.o=-2)}function CLe(e,t,n,i,r,o){Wne.call(this,e,t,n,i,r),o&&(this.o=-2)}function TLe(e,t,n,i){qC.call(this,n),this.b=e,this.c=t,this.d=i}function Sne(e,t){this.a=new de,this.d=new de,this.f=e,this.c=t}function ALe(){this.c=new eDe,this.a=new yRe,this.b=new DTe,KMe()}function MLe(){dv(),this.b=new Zt,this.a=new Zt,this.c=new de}function jLe(e,t){this.g=e,this.d=(vy(),qN),this.a=qN,this.b=t}function PLe(e,t){this.f=e,this.a=(vy(),_N),this.c=_N,this.b=t}function xne(e,t){!e.c&&(e.c=new yi(e,0)),nP(e.c,(Gn(),$8),t)}function YA(){YA=X,FX=new yJ("DFS",0),Qge=new yJ("BFS",1)}function W9t(e,t,n){var i;return i=c(e.Zb().xc(t),14),!!i&&i.Hc(n)}function DLe(e,t,n){var i;return i=c(e.Zb().xc(t),14),!!i&&i.Mc(n)}function ILe(e,t,n,i){return e.a+=""+uu(t==null?sc:Ms(t),n,i),e}function Ks(e,t,n,i,r,o){return Wqe(e,t,n,o),Are(e,i),Mre(e,r),e}function MB(e){return $t(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function ck(e){for(;e.d>0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function NLe(e){return e.a?e.e.length==0?e.a.a:e.a.a+(""+e.e):e.c}function X9t(e){return!!e.a&&Bc(e.a.a).i!=0&&!(e.b&&bq(e.b))}function U9t(e){return!!e.u&&ao(e.u.a).i!=0&&!(e.n&&gq(e.n))}function $Le(e){return IF(e.e.Hd().gc()*e.c.Hd().gc(),16,new D7e(e))}function G9t(e,t){return h$e(ic(e.q.getTime()),ic(t.q.getTime()))}function nh(e){return c(Mf(e,Y(cW,HH,17,e.c.length,0,1)),474)}function ES(e){return c(Mf(e,Y(Wh,rd,10,e.c.length,0,1)),193)}function V9t(e){return lu(),!Fr(e)&&!(!Fr(e)&&e.c.i.c==e.d.i.c)}function RLe(e,t,n){var i;i=(tn(e),new gc(e)),Cjt(new GRe(i,t,n))}function CS(e,t,n){var i;i=(tn(e),new gc(e)),Tjt(new VRe(i,t,n))}function LLe(e,t){var n;return n=1-t,e.a[n]=RM(e.a[n],n),RM(e,t)}function FLe(e,t){var n;e.e=new SZ,n=Tp(t),ir(n,e.c),PUe(e,n,0)}function gr(e,t,n,i){var r;r=new lY,r.a=t,r.b=n,r.c=i,En(e.a,r)}function ye(e,t,n,i){var r;r=new lY,r.a=t,r.b=n,r.c=i,En(e.b,r)}function Ml(e){var t,n,i;return t=new m$e,n=pQ(t,e),$Qt(t),i=n,i}function Ene(){var e,t,n;return t=(n=(e=new tg,e),n),ae(qwe,t),t}function ZA(e){return e.j.c=Y(It,Ce,1,0,5,1),nne(e.c),j6t(e.a),e}function Xw(e){return pO(),z(e.g,10)?c(e.g,10):null}function Y9t(e){return zw(e).dc()?!1:(V3t(e,new _e),!0)}function Z9t(e){if(!("stack"in e))try{throw e}catch{}return e}function TS(e,t){if(e<0||e>=t)throw L(new us(hNt(e,t)));return e}function BLe(e,t,n){if(e<0||t<e||t>n)throw L(new us(RIt(e,t,n)))}function jB(e,t){if(Wi(e.a,t),t.d)throw L(new Is(KYe));t.d=e}function PB(e,t){if(t.$modCount!=e.$modCount)throw L(new Au)}function _Le(e,t){return z(t,42)?yq(e.a,c(t,42)):!1}function qLe(e,t){return z(t,42)?yq(e.a,c(t,42)):!1}function QLe(e,t){return z(t,42)?yq(e.a,c(t,42)):!1}function J9t(e,t){return e.a<=e.b?(t.ud(e.a++),!0):!1}function Ag(e){var t;return Cs(e)?(t=e,t==-0?0:t):uxt(e)}function JA(e){var t;return Qd(e),t=new Ys,Dw(e.a,new Sxe(t)),t}function HLe(e){var t;return Qd(e),t=new Dr,Dw(e.a,new kxe(t)),t}function mr(e,t){this.a=e,J5.call(this,e),sp(t,e.gc()),this.b=t}function Cne(e){this.e=e,this.b=this.e.a.entries(),this.a=new Array}function eSt(e){return IF(e.e.Hd().gc()*e.c.Hd().gc(),273,new P7e(e))}function eM(e){return new jo((du(e,zQ),kM(Pr(Pr(5,e),e/10|0))))}function zLe(e){return c(Mf(e,Y(art,kZe,11,e.c.length,0,1)),1943)}function tSt(e,t,n){return n.f.c.length>0?Hte(e.a,t,n):Hte(e.b,t,n)}function nSt(e,t,n){e.d&&Zo(e.d.e,e),e.d=t,e.d&&Jb(e.d.e,n,e)}function DB(e,t){GHt(t,e),ute(e.d),ute(c(D(e,(ke(),RI)),207))}function uk(e,t){UHt(t,e),cte(e.d),cte(c(D(e,(ke(),RI)),207))}function Mg(e,t){var n,i;return n=ua(e,t),i=null,n&&(i=n.fe()),i}function py(e,t){var n,i;return n=lp(e,t),i=null,n&&(i=n.ie()),i}function lk(e,t){var n,i;return n=ua(e,t),i=null,n&&(i=n.ie()),i}function la(e,t){var n,i;return n=ua(e,t),i=null,n&&(i=woe(n)),i}function iSt(e,t,n){var i;return i=Yy(n),Yj(e.g,i,t),Yj(e.i,t,n),t}function rSt(e,t,n){var i;i=DAt();try{return l4t(e,t,n)}finally{bSt(i)}}function KLe(e){var t;t=e.Wg(),this.a=z(t,69)?c(t,69).Zh():t.Kc()}function Ji(){sAe.call(this),this.j.c=Y(It,Ce,1,0,5,1),this.a=-1}function Tne(e,t,n,i){this.d=e,this.n=t,this.g=n,this.o=i,this.p=-1}function WLe(e,t,n,i){this.e=i,this.d=null,this.c=e,this.a=t,this.b=n}function Ane(e,t,n){this.d=new NEe(this),this.e=e,this.i=t,this.f=n}function tM(){tM=X,BW=new hJ(x4,0),S1e=new hJ("TOP_LEFT",1)}function XLe(){XLe=X,Tge=Q$e(we(1),we(4)),Cge=Q$e(we(1),we(2))}function ULe(){ULe=X,Flt=mn((hT(),_(B(Llt,1),he,551,0,[VX])))}function GLe(){GLe=X,Rlt=mn((fT(),_(B(Cbe,1),he,482,0,[GX])))}function VLe(){VLe=X,nft=mn((wO(),_(B(Xbe,1),he,530,0,[sE])))}function YLe(){YLe=X,uit=mn((uT(),_(B($ae,1),he,481,0,[KK])))}function sSt(){return Lg(),_(B(tit,1),he,406,0,[Cx,Ex,HK,zK])}function oSt(){return bM(),_(B(AD,1),he,297,0,[$K,rae,sae,oae])}function cSt(){return Ik(),_(B(oit,1),he,394,0,[Px,ID,ND,Dx])}function uSt(){return mv(),_(B(iit,1),he,323,0,[Ax,Tx,Mx,jx])}function lSt(){return Fy(),_(B(ert,1),he,405,0,[lb,Kp,zp,Nm])}function fSt(){return XM(),_(B(vrt,1),he,360,0,[dW,oI,cI,Lx])}function ZLe(e,t,n,i){return z(n,54)?new FDe(e,t,n,i):new Dte(e,t,n,i)}function hSt(){return Tf(),_(B(Art,1),he,411,0,[Qv,U4,G4,gW])}function aSt(e){var t;return e.j==(me(),Wt)&&(t=yXe(e),dc(t,Tt))}function dSt(e,t){var n;n=t.a,jr(n,t.c.d),dr(n,t.d.d),ap(n.a,e.n)}function JLe(e,t){return c(pg(kA(c(zn(e.k,t),15).Oc(),Rm)),113)}function eFe(e,t){return c(pg(SA(c(zn(e.k,t),15).Oc(),Rm)),113)}function gSt(e){return new dt(hEt(c(e.a.dd(),14).gc(),e.a.cd()),16)}function wy(e){return z(e,14)?c(e,14).dc():!e.Kc().Ob()}function sv(e){return pO(),z(e.g,145)?c(e.g,145):null}function tFe(e){if(e.e.g!=e.b)throw L(new Au);return!!e.c&&e.d>0}function Sn(e){return $t(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function Mne(e,t){yt(t),bi(e.a,e.c,t),e.c=e.c+1&e.a.length-1,nKe(e)}function zd(e,t){yt(t),e.b=e.b-1&e.a.length-1,bi(e.a,e.b,t),nKe(e)}function nFe(e,t){var n;for(n=e.j.c.length;n<t;n++)ae(e.j,e.rg())}function iFe(e,t,n,i){var r;return r=i[t.g][n.g],re(ve(D(e.a,r)))}function jne(e,t,n,i,r){this.i=e,this.a=t,this.e=n,this.j=i,this.f=r}function rFe(e,t,n,i,r){this.a=e,this.e=t,this.f=n,this.b=i,this.g=r}function bSt(e){e&&hxt((TZ(),Ahe)),--OD,e&&kD!=-1&&(Jvt(kD),kD=-1)}function pSt(){return mp(),_(B(pX,1),he,197,0,[zI,bX,Gm,Um])}function wSt(){return Jy(),_(B(jge,1),he,393,0,[YI,l8,tE,f8])}function mSt(){return xj(),_(B(obe,1),he,340,0,[KX,rbe,sbe,ibe])}function vSt(){return iu(),_(B(A8,1),he,374,0,[kE,W0,OE,lw])}function ySt(){return bu(),_(B(Bft,1),he,285,0,[mE,Uh,y1,wE])}function OSt(){return ma(),_(B(kU,1),he,218,0,[OU,pE,m5,s3])}function kSt(){return uj(),_(B(hwe,1),he,311,0,[EU,uwe,fwe,lwe])}function SSt(){return nu(),_(B(eht,1),he,396,0,[Eu,dwe,awe,gwe])}function xSt(e){return UA(),Jc(jU,e)?c(Lt(jU,e),331).ug():null}function Du(e,t,n){return t<0?Uq(e,n):c(n,66).Nj().Sj(e,e.yh(),t)}function ESt(e,t,n){var i;return i=Yy(n),Yj(e.d,i,t),Qn(e.e,t,n),t}function CSt(e,t,n){var i;return i=Yy(n),Yj(e.j,i,t),Qn(e.k,t,n),t}function sFe(e){var t,n;return t=(cg(),n=new fY,n),e&&iQ(t,e),t}function Pne(e){var t;return t=e.ri(e.i),e.i>0&&bo(e.g,0,t,0,e.i),t}function oFe(e,t){gT();var n;return n=c(Lt(RN,e),55),!n||n.wj(t)}function TSt(e){if(e.p!=1)throw L(new fc);return en(e.f)<<24>>24}function ASt(e){if(e.p!=1)throw L(new fc);return en(e.k)<<24>>24}function MSt(e){if(e.p!=7)throw L(new fc);return en(e.k)<<16>>16}function jSt(e){if(e.p!=7)throw L(new fc);return en(e.f)<<16>>16}function fa(e){var t;for(t=0;e.Ob();)e.Pb(),t=Pr(t,1);return kM(t)}function cFe(e,t){var n;return n=new Pw,e.xd(n),n.a+="..",t.yd(n),n.a}function PSt(e,t,n){var i;i=c(Lt(e.g,n),57),ae(e.a.c,new wr(t,i))}function DSt(e,t,n){return QF(ve(Hs(ms(e.f,t))),ve(Hs(ms(e.f,n))))}function nM(e,t,n){return Jj(e,t,n,z(t,99)&&(c(t,18).Bb&Qr)!=0)}function ISt(e,t,n){return d4(e,t,n,z(t,99)&&(c(t,18).Bb&Qr)!=0)}function NSt(e,t,n){return iRt(e,t,n,z(t,99)&&(c(t,18).Bb&Qr)!=0)}function Dne(e,t){return e==(jt(),zi)&&t==zi?4:e==zi||t==zi?8:32}function uFe(e,t){return ne(t)===ne(e)?"(this Map)":t==null?sc:Ms(t)}function $St(e,t){return c(t==null?Hs(ms(e.f,null)):yO(e.g,t),281)}function lFe(e,t,n){var i;return i=Yy(n),Qn(e.b,i,t),Qn(e.c,t,n),t}function fFe(e,t){var n;for(n=t;n;)Gb(e,n.i,n.j),n=pi(n);return e}function Ine(e,t){var n;return n=vS(iy(new ZB(e,t))),dA(new ZB(e,t)),n}function Nh(e,t){Kr();var n;return n=c(e,66).Mj(),bIt(n,t),n.Ok(t)}function RSt(e,t,n,i,r){var o;o=uRt(r,n,i),ae(t,oNt(r,o)),YDt(e,r,t)}function hFe(e,t,n){e.i=0,e.e=0,t!=n&&(RQe(e,t,n),$Qe(e,t,n))}function Nne(e,t){var n;n=e.q.getHours(),e.q.setFullYear(t+r1),Uk(e,n)}function LSt(e,t,n){if(n){var i=n.ee();e.a[t]=i(n)}else delete e.a[t]}function IB(e,t,n){if(n){var i=n.ee();n=i(n)}else n=void 0;e.a[t]=n}function aFe(e){if(e<0)throw L(new wAe("Negative array size: "+e))}function ao(e){return e.n||(Fc(e),e.n=new KNe(e,ns,e),ws(e)),e.n}function fk(e){return $t(e.a<e.c.a.length),e.b=e.a,v_e(e),e.c.b[e.b]}function $ne(e){e.b!=e.c&&(e.a=Y(It,Ce,1,8,5,1),e.b=0,e.c=0)}function dFe(e){this.b=new Zt,this.c=new Zt,this.d=new Zt,this.a=e}function op(e,t){Rn(),eg.call(this,e),this.a=t,this.c=-1,this.b=-1}function cp(e,t,n,i){pLe.call(this,1,n,i),this.c=e,this.b=t}function NB(e,t,n,i){wLe.call(this,1,n,i),this.c=e,this.b=t}function $B(e,t,n,i,r,o,h){u_.call(this,t,i,r,o,h),this.c=e,this.a=n}function n0(e,t,n){this.e=e,this.a=It,this.b=YUe(t),this.c=t,this.d=n}function RB(e){this.e=e,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function gFe(e){this.c=e,this.a=c(Zu(e),148),this.b=this.a.Aj().Nh()}function Rne(e){this.d=e,this.b=this.d.a.entries(),this.a=this.b.next()}function i0(){Zt.call(this),NDe(this),this.d.b=this.d,this.d.a=this.d}function bFe(e,t){Dee.call(this),this.a=e,this.b=t,ae(this.a.b,this)}function FSt(e,t){var n;return n=t!=null?mo(e,t):Hs(ms(e.f,t)),RT(n)}function BSt(e,t){var n;return n=t!=null?mo(e,t):Hs(ms(e.f,t)),RT(n)}function pFe(e,t){var n;for(n=0;n<t;++n)bi(e,n,new $Y(c(e[n],42)))}function _St(e,t){var n;for(n=e.d-1;n>=0&&e.a[n]===t[n];n--);return n<0}function wFe(e,t){Hy();var n;return n=e.j.g-t.j.g,n!=0?n:0}function mFe(e,t){return yt(t),e.a!=null?kkt(t.Kb(e.a)):TD}function iM(e){var t;return e?new mte(e):(t=new ra,w_(t,e),t)}function hu(e,t){var n;return t.b.Kb(f_e(e,t.c.Ee(),(n=new Txe(t),n)))}function rM(e){toe(),uDe(this,en(Xi(Bd(e,24),bP)),en(Xi(e,bP)))}function vFe(){vFe=X,knt=mn((gj(),_(B(aae,1),he,428,0,[FK,hae])))}function yFe(){yFe=X,Snt=mn((yM(),_(B(gae,1),he,427,0,[dae,BK])))}function OFe(){OFe=X,Eit=mn((OM(),_(B(Qae,1),he,424,0,[VK,LD])))}function kFe(){kFe=X,prt=mn((Dy(),_(B(brt,1),he,511,0,[$x,lW])))}function SFe(){SFe=X,Hrt=mn((zS(),_(B(u1e,1),he,419,0,[gI,c1e])))}function xFe(){xFe=X,Xrt=mn((RS(),_(B(h1e,1),he,479,0,[f1e,pI])))}function EFe(){EFe=X,Cct=mn((jS(),_(B(vge,1),he,376,0,[SX,Zx])))}function CFe(){CFe=X,kct=mn((_S(),_(B(bge,1),he,421,0,[yX,OX])))}function TFe(){TFe=X,Brt=mn((aM(),_(B(e1e,1),he,422,0,[Jde,xW])))}function AFe(){AFe=X,est=mn((tM(),_(B(x1e,1),he,420,0,[BW,S1e])))}function MFe(){MFe=X,wut=mn((Yl(),_(B(put,1),he,520,0,[sw,w1])))}function jFe(){jFe=X,Xct=mn((hk(),_(B(Wct,1),he,523,0,[u8,c8])))}function PFe(){PFe=X,eut=mn((th(),_(B(Jct,1),he,516,0,[Ob,hd])))}function DFe(){DFe=X,nut=mn((yf(),_(B(tut,1),he,515,0,[_0,Ff])))}function IFe(){IFe=X,xut=mn((Eg(),_(B(Sut,1),he,455,0,[m1,Vm])))}function NFe(){NFe=X,Qut=mn((YA(),_(B(Hge,1),he,425,0,[FX,Qge])))}function $Fe(){$Fe=X,Xut=mn((FM(),_(B(zge,1),he,495,0,[rN,d5])))}function RFe(){RFe=X,qut=mn((XA(),_(B(qge,1),he,480,0,[LX,_ge])))}function LFe(){LFe=X,Vut=mn((gM(),_(B(Wge,1),he,426,0,[Kge,QX])))}function FFe(){FFe=X,ift=mn((e7(),_(B(Gbe,1),he,429,0,[dN,Ube])))}function BFe(){BFe=X,Blt=mn((PS(),_(B(Tbe,1),he,430,0,[YX,hN])))}function hk(){hk=X,u8=new gJ("UPPER",0),c8=new gJ("LOWER",1)}function qSt(e,t){var n;n=new $2,e0(n,"x",t.a),e0(n,"y",t.b),J2(e,n)}function QSt(e,t){var n;n=new $2,e0(n,"x",t.a),e0(n,"y",t.b),J2(e,n)}function HSt(e,t){var n,i;i=!1;do n=TQe(e,t),i=i|n;while(n);return i}function Lne(e,t){var n,i;for(n=t,i=0;n>0;)i+=e.a[n],n-=n&-n;return i}function _Fe(e,t){var n;for(n=t;n;)Gb(e,-n.i,-n.j),n=pi(n);return e}function kr(e,t){var n,i;for(yt(t),i=e.Kc();i.Ob();)n=i.Pb(),t.td(n)}function qFe(e,t){var n;return n=t.cd(),new lg(n,e.e.pc(n,c(t.dd(),14)))}function ji(e,t,n,i){var r;r=new Nt,r.c=t,r.b=n,r.a=i,i.b=n.a=r,++e.b}function Iu(e,t,n){var i;return i=(gt(t,e.c.length),e.c[t]),e.c[t]=n,i}function zSt(e,t,n){return c(t==null?qo(e.f,null,n):Bg(e.g,t,n),281)}function LB(e){return e.c&&e.d?yne(e.c)+"->"+yne(e.d):"e_"+gg(e)}function my(e,t){return(g0(e),dO(new ft(e,new cie(t,e.a)))).sd(H4)}function KSt(){return _r(),_(B(ide,1),he,356,0,[wh,a1,Ho,xo,Os])}function WSt(){return me(),_(B(Hr,1),co,61,0,[qs,Ot,Tt,Wt,xt])}function XSt(e){return YC(),function(){return rSt(e,this,arguments)}}function USt(){return Date.now?Date.now():new Date().getTime()}function Fr(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function QFe(e){if(!e.c.Sb())throw L(new Zs);return e.a=!0,e.c.Ub()}function AS(e){e.i=0,_9(e.b,null),_9(e.c,null),e.a=null,e.e=null,++e.g}function Fne(e){t3t.call(this,e==null?sc:Ms(e),z(e,78)?c(e,78):null)}function HFe(e){gYe(),dTe(this),this.a=new ai,hre(this,e),En(this.a,e)}function zFe(){nF(this),this.b=new De(Oi,Oi),this.a=new De(Li,Li)}function KFe(e,t){this.c=0,this.b=t,vPe.call(this,e,17493),this.a=this.c}function FB(e){sM(),!$f&&(this.c=e,this.e=!0,this.a=new de)}function sM(){sM=X,$f=!0,ant=!1,dnt=!1,bnt=!1,gnt=!1}function Bne(e,t){return z(t,149)?Je(e.c,c(t,149).c):!1}function _ne(e,t){var n;return n=0,e&&(n+=e.f.a/2),t&&(n+=t.f.a/2),n}function BB(e,t){var n;return n=c(jg(e.d,t),23),n||c(jg(e.e,t),23)}function WFe(e){this.b=e,Ft.call(this,e),this.a=c(mt(this.b.a,4),126)}function XFe(e){this.b=e,W2.call(this,e),this.a=c(mt(this.b.a,4),126)}function Fc(e){return e.t||(e.t=new iTe(e),Tk(new pAe(e),0,e.t)),e.t}function GSt(){return Yr(),_(B(O8,1),he,103,0,[Xh,Bl,ul,Ta,Aa])}function VSt(){return im(),_(B(E8,1),he,249,0,[O1,vE,iwe,x8,rwe])}function YSt(){return nf(),_(B(gd,1),he,175,0,[Ct,or,yh,q0,dd])}function ZSt(){return x7(),_(B(Pbe,1),he,316,0,[Abe,ZX,jbe,JX,Mbe])}function JSt(){return Nk(),_(B(cge,1),he,315,0,[oge,wX,mX,n8,i8])}function e7t(){return m0(),_(B(o1e,1),he,335,0,[CW,s1e,TW,H6,Q6])}function t7t(){return f4(),_(B(Ilt,1),he,355,0,[Ym,e3,p8,b8,w8])}function n7t(){return lm(),_(B(jrt,1),he,363,0,[lI,hI,aI,fI,uI])}function i7t(){return Fu(),_(B(L1e,1),he,163,0,[Kx,U6,g1,G6,Gp])}function vy(){vy=X;var e,t;_N=(z3(),t=new zC,t),qN=(e=new tL,e)}function UFe(e){var t;return e.c||(t=e.r,z(t,88)&&(e.c=c(t,26))),e.c}function r7t(e){return e.e=3,e.d=e.Yb(),e.e!=2?(e.e=0,!0):!1}function _B(e){var t,n,i;return t=e&zc,n=e>>22&zc,i=e<0?Sa:0,Bo(t,n,i)}function s7t(e){var t,n,i,r;for(n=e,i=0,r=n.length;i<r;++i)t=n[i],ik(t)}function o7t(e,t){var n,i;n=c(nTt(e.c,t),14),n&&(i=n.gc(),n.$b(),e.d-=i)}function GFe(e,t){var n,i;return n=t.cd(),i=fre(e,n),!!i&&wo(i.e,t.dd())}function ov(e,t){return t==0||e.e==0?e:t>0?WHe(e,t):gUe(e,-t)}function qne(e,t){return t==0||e.e==0?e:t>0?gUe(e,t):WHe(e,-t)}function nn(e){if(an(e))return e.c=e.a,e.a.Pb();throw L(new Zs)}function VFe(e){var t,n;return t=e.c.i,n=e.d.i,t.k==(jt(),Ri)&&n.k==Ri}function qB(e){var t;return t=new xg,vs(t,e),oe(t,(ke(),bs),null),t}function QB(e,t,n){var i;return i=e.Yg(t),i>=0?e._g(i,n,!0):Xg(e,t,n)}function Qne(e,t,n,i){var r;for(r=0;r<qK;r++)yA(e.a[t.g][r],n,i[t.g])}function Hne(e,t,n,i){var r;for(r=0;r<PD;r++)vA(e.a[r][t.g],n,i[t.g])}function zne(e,t,n,i,r){pLe.call(this,t,i,r),this.c=e,this.a=n}function Kne(e,t,n,i,r){wLe.call(this,t,i,r),this.c=e,this.a=n}function Wne(e,t,n,i,r){ZFe.call(this,t,i,r),this.c=e,this.a=n}function jl(e,t,n,i,r){ZFe.call(this,t,i,r),this.c=e,this.b=n}function YFe(e,t,n){qC.call(this,n),this.b=e,this.c=t,this.d=(J_(),$U)}function ZFe(e,t,n){this.d=e,this.k=t?1:0,this.f=n?1:0,this.o=-1,this.p=0}function JFe(e,t,n){var i;i=new HJ(e.a),vk(i,e.a.a),qo(i.f,t,n),e.a.a=i}function MS(e,t){e.qi(e.i+1),_O(e,e.i,e.oi(e.i,t)),e.bi(e.i++,t),e.ci()}function ak(e){var t,n;++e.j,t=e.g,n=e.i,e.g=null,e.i=0,e.di(n,t),e.ci()}function Sf(e){var t,n;return tn(e),t=C6t(e.length),n=new jo(t),rre(n,e),n}function cv(e){var t;return t=(tn(e),e?new gc(e):iy(e.Kc())),zq(t),ej(t)}function Ka(e,t){var n;return n=(gt(t,e.c.length),e.c[t]),QZ(e.c,t,1),n}function zn(e,t){var n;return n=c(e.c.xc(t),14),!n&&(n=e.ic(t)),e.pc(t,n)}function Xne(e,t){var n,i;return n=(yt(e),e),i=(yt(t),t),n==i?0:n<i?-1:1}function eBe(e){var t;return t=e.e+e.f,isNaN(t)&&iA(e.d)?e.d:t}function ha(e,t){return e.a?pn(e.a,e.b):e.a=new cu(e.d),RO(e.a,t),e}function Une(e,t){if(e<0||e>t)throw L(new us(xoe(e,t,"index")));return e}function HB(e,t,n,i){var r;return r=Y(Vt,yn,25,t,15,1),mDt(r,e,t,n,i),r}function c7t(e,t){var n;n=e.q.getHours()+(t/60|0),e.q.setMinutes(t),Uk(e,n)}function u7t(e,t){return b.Math.min(Kd(t.a,e.d.d.c),Kd(t.b,e.d.d.c))}function uv(e,t){return ur(t)?t==null?qoe(e.f,null):lQe(e.g,t):qoe(e.f,t)}function xf(e){this.c=e,this.a=new $(this.c.a),this.b=new $(this.c.b)}function oM(){this.e=new de,this.c=new de,this.d=new de,this.b=new de}function tBe(){this.g=new oZ,this.b=new oZ,this.a=new de,this.k=new de}function nBe(e,t,n){this.a=e,this.c=t,this.d=n,ae(t.e,this),ae(n.b,this)}function iBe(e,t){mPe.call(this,t.rd(),t.qd()&-6),yt(e),this.a=e,this.b=t}function rBe(e,t){vPe.call(this,t.rd(),t.qd()&-6),yt(e),this.a=e,this.b=t}function Gne(e,t){YL.call(this,t.rd(),t.qd()&-6),yt(e),this.a=e,this.b=t}function cM(e,t,n){this.a=e,this.b=t,this.c=n,ae(e.t,this),ae(t.i,this)}function uM(){this.b=new ai,this.a=new ai,this.b=new ai,this.a=new ai}function lM(){lM=X,m8=new ci("org.eclipse.elk.labels.labelManager")}function sBe(){sBe=X,Ude=new Ki("separateLayerConnections",(XM(),dW))}function Yl(){Yl=X,sw=new wJ("REGULAR",0),w1=new wJ("CRITICAL",1)}function jS(){jS=X,SX=new dJ("STACKED",0),Zx=new dJ("SEQUENCED",1)}function PS(){PS=X,YX=new SJ("FIXED",0),hN=new SJ("CENTER_NODE",1)}function l7t(e,t){var n;return n=dQt(e,t),e.b=new LM(n.c.length),Eqt(e,n)}function f7t(e,t,n){var i;return++e.e,--e.f,i=c(e.d[t].$c(n),133),i.dd()}function oBe(e){var t;return e.a||(t=e.r,z(t,148)&&(e.a=c(t,148))),e.a}function Vne(e){if(e.a){if(e.e)return Vne(e.e)}else return e;return null}function h7t(e,t){return e.p<t.p?1:e.p>t.p?-1:0}function fM(e,t){return yt(t),e.c<e.d?(e.ze(t,e.c++),!0):!1}function cBe(e,t){return Jc(e.a,t)?(uv(e.a,t),!0):!1}function a7t(e){var t,n;return t=e.cd(),n=c(e.dd(),14),hS(n.Nc(),new R7e(t))}function d7t(e){var t;return t=c(Kte(e.b,e.b.length),9),new ju(e.a,t,e.c)}function g7t(e){var t;return g0(e),t=new rNe(e,e.a.e,e.a.d|4),new kee(e,t)}function uBe(e){var t;for(Qd(e),t=0;e.a.sd(new Td);)t=Pr(t,1);return t}function Yne(e,t,n){var i,r;for(i=0,r=0;r<t.length;r++)i+=e.$f(t[r],i,n)}function b7t(e,t){var n;e.C&&(n=c(rs(e.b,t),124).n,n.d=e.C.d,n.a=e.C.a)}function lv(e,t,n){return TS(t,e.e.Hd().gc()),TS(n,e.c.Hd().gc()),e.a[t][n]}function Wa(e,t){t1(),this.e=e,this.d=1,this.a=_(B(Vt,1),yn,25,15,[t])}function hM(e,t,n,i){this.f=e,this.e=t,this.d=n,this.b=i,this.c=i?i.d:null}function Zne(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 p7t(e,t,n,i){NGe(e,t,n,d4(e,t,i,z(t,99)&&(c(t,18).Bb&Qr)!=0))}function w7t(e,t){Kt(t,"Label management",1),RT(D(e,(lM(),m8))),_t(t)}function jo(e){nF(this),oA(e>=0,"Initial capacity must not be negative")}function lBe(){lBe=X,Tnt=mn((ef(),_(B(Hp,1),he,232,0,[Xs,$o,Us])))}function fBe(){fBe=X,Mnt=mn((Tc(),_(B(Ant,1),he,461,0,[ph,f1,Rl])))}function hBe(){hBe=X,Pnt=mn((Jo(),_(B(jnt,1),he,462,0,[uf,h1,Ll])))}function aBe(){aBe=X,pnt=mn((Af(),_(B(Kc,1),he,132,0,[uae,yu,Qp])))}function dBe(){dBe=X,Wit=mn((dk(),_(B(nde,1),he,379,0,[eW,JK,tW])))}function gBe(){gBe=X,crt=mn((Fg(),_(B(ode,1),he,423,0,[$m,sde,oW])))}function bBe(){bBe=X,_rt=mn((hv(),_(B(n1e,1),he,314,0,[Hv,Fx,t1e])))}function pBe(){pBe=X,qrt=mn((jM(),_(B(r1e,1),he,337,0,[i1e,dI,EW])))}function wBe(){wBe=X,Krt=mn((f0(),_(B(zrt,1),he,450,0,[AW,J4,Bm])))}function mBe(){mBe=X,Rrt=mn((Rg(),_(B(bW,1),he,361,0,[hb,d1,fb])))}function vBe(){vBe=X,Jrt=mn((da(),_(B(Zrt,1),he,303,0,[_x,qm,zv])))}function yBe(){yBe=X,Yrt=mn((Ly(),_(B(FW,1),he,292,0,[RW,LW,Bx])))}function OBe(){OBe=X,wct=mn((Sk(),_(B(sge,1),he,378,0,[gX,rge,HI])))}function kBe(){kBe=X,Ect=mn((HM(),_(B(mge,1),he,375,0,[pge,kX,wge])))}function SBe(){SBe=X,Oct=mn((ba(),_(B(gge,1),he,339,0,[p1,dge,vX])))}function xBe(){xBe=X,xct=mn((Vr(),_(B(Sct,1),he,452,0,[r8,jc,Ro])))}function EBe(){EBe=X,Mct=mn((UM(),_(B(Ege,1),he,377,0,[CX,h5,rw])))}function CBe(){CBe=X,Tct=mn((zy(),_(B(Oge,1),he,336,0,[xX,yge,s8])))}function TBe(){TBe=X,Act=mn((qM(),_(B(xge,1),he,338,0,[Sge,EX,kge])))}function ABe(){ABe=X,Qct=mn(($g(),_(B(qct,1),he,454,0,[Jx,o8,XI])))}function MBe(){MBe=X,Gut=mn((sj(),_(B(Uut,1),he,442,0,[qX,BX,_X])))}function jBe(){jBe=X,Yut=mn((r7(),_(B(Gge,1),he,380,0,[sN,Xge,Uge])))}function PBe(){PBe=X,glt=mn((rj(),_(B(dbe,1),he,381,0,[abe,XX,hbe])))}function DBe(){DBe=X,dlt=mn((QM(),_(B(lbe,1),he,293,0,[WX,ube,cbe])))}function IBe(){IBe=X,$lt=mn((f7(),_(B(UX,1),he,437,0,[uN,lN,fN])))}function NBe(){NBe=X,Fft=mn((pa(),_(B(nwe,1),he,334,0,[SN,bd,S8])))}function $Be(){$Be=X,Nft=mn((Ef(),_(B(zpe,1),he,272,0,[p5,uw,w5])))}function m7t(){return br(),_(B(swe,1),he,98,0,[k1,_f,v5,K0,Vh,To])}function r0(e,t){return!e.o&&(e.o=new tu((Io(),E1),Sb,e,0)),eq(e.o,t)}function v7t(e){return!e.g&&(e.g=new PC),!e.g.d&&(e.g.d=new eTe(e)),e.g.d}function y7t(e){return!e.g&&(e.g=new PC),!e.g.a&&(e.g.a=new tTe(e)),e.g.a}function O7t(e){return!e.g&&(e.g=new PC),!e.g.b&&(e.g.b=new JCe(e)),e.g.b}function DS(e){return!e.g&&(e.g=new PC),!e.g.c&&(e.g.c=new nTe(e)),e.g.c}function k7t(e,t,n){var i,r;for(r=new Ry(t,e),i=0;i<n;++i)yj(r);return r}function zB(e,t,n){var i,r;if(n!=null)for(i=0;i<t;++i)r=n[i],e.fi(i,r)}function KB(e,t,n,i){var r;return r=Y(Vt,yn,25,t+1,15,1),r_t(r,e,t,n,i),r}function Y(e,t,n,i,r,o){var h;return h=Xze(r,i),r!=10&&_(B(e,o),t,n,r,h),h}function S7t(e,t,n,i){return n&&(i=n.gh(t,ui(n.Tg(),e.c.Lj()),null,i)),i}function x7t(e,t,n,i){return n&&(i=n.ih(t,ui(n.Tg(),e.c.Lj()),null,i)),i}function Jne(e,t,n){c(e.b,65),c(e.b,65),c(e.b,65),ec(e.a,new zIe(n,t,e))}function eie(e,t,n){if(e<0||t>n||t<e)throw L(new jZ(pP+e+vue+t+wue+n))}function yy(e){if(!e)throw L(new Es("Unable to add element to queue"))}function WB(e){e?(this.c=e,this.b=null):(this.c=null,this.b=new de)}function XB(e,t){mT.call(this,e,t),this.a=Y(Izt,aP,436,2,0,1),this.b=!0}function tie(e){xQe.call(this,e,0),NDe(this),this.d.b=this.d,this.d.a=this.d}function UB(e){var t;return t=e.b,t.b==0?null:c(rf(t,0),188).b}function RBe(e,t){var n;return n=new Lc,n.c=!0,n.d=t.dd(),jVe(e,t.cd(),n)}function E7t(e,t){var n;n=e.q.getHours()+(t/3600|0),e.q.setSeconds(t),Uk(e,n)}function nie(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 Kd(e,t){var n,i;return n=e.a-t.a,i=e.b-t.b,b.Math.sqrt(n*n+i*i)}function aM(){aM=X,Jde=new uJ("QUADRATIC",0),xW=new uJ("SCANLINE",1)}function LBe(){LBe=X,Dct=Ec(Fn(new Ji,(_r(),wh),(Ur(),fW)),Os,Rx)}function C7t(){return Op(),_(B(lU,1),he,291,0,[uU,hE,fE,cU,uE,lE])}function T7t(){return Rh(),_(B(epe,1),he,248,0,[sU,oE,cE,pN,gN,bN])}function A7t(){return yv(),_(B(Z4,1),he,227,0,[Y4,q6,V4,Wp,Fm,Lm])}function M7t(){return r4(),_(B(k1e,1),he,275,0,[z6,m1e,O1e,y1e,v1e,w1e])}function j7t(){return k7(),_(B(p1e,1),he,274,0,[wI,d1e,b1e,a1e,g1e,NW])}function P7t(){return Dj(),_(B(ige,1),he,313,0,[dX,tge,aX,ege,nge,QI])}function D7t(){return Rj(),_(B(l1e,1),he,276,0,[jW,MW,DW,PW,IW,bI])}function I7t(){return _k(),_(B(Cut,1),he,327,0,[ZI,MX,PX,jX,DX,AX])}function N7t(){return Ac(),_(B(xN,1),he,273,0,[S1,ja,yE,T8,C8,o3])}function $7t(){return Nj(),_(B(Vpe,1),he,312,0,[SU,Xpe,Gpe,Kpe,Upe,Wpe])}function R7t(){return jt(),_(B(uW,1),he,267,0,[zi,sr,Ri,Eo,ru,Rf])}function FBe(e){Ub(!!e.c),PB(e.e,e),e.c.Qb(),e.c=null,e.b=Wie(e),vee(e.e,e)}function BBe(e){return PB(e.c.a.e,e),$t(e.b!=e.c.a.d),e.a=e.b,e.b=e.b.a,e.a}function iie(e){var t;return!e.a&&e.b!=-1&&(t=e.c.Tg(),e.a=ct(t,e.b)),e.a}function rn(e,t){return e.hi()&&e.Hc(t)?!1:(e.Yh(t),!0)}function Zl(e,t){return yS(t,"Horizontal alignment cannot be null"),e.b=t,e}function _Be(e,t,n){Rn();var i;return i=n1(e,t),n&&i&&h6t(e)&&(i=null),i}function Xa(e,t,n){var i,r;for(r=e.Kc();r.Ob();)i=c(r.Pb(),37),Wk(i,t,n)}function rie(e,t){var n,i;for(i=t.Kc();i.Ob();)n=c(i.Pb(),37),uGe(e,n,0,0)}function sie(e,t,n){var i;e.d[t.g]=n,i=e.g.c,i[t.g]=b.Math.max(i[t.g],n+1)}function IS(e,t){var n,i,r;return r=e.r,i=e.d,n=Yk(e,t,!0),n.b!=r||n.a!=i}function qBe(e,t){return rje(e.e,t)||p0(e.e,t,new mze(t)),c(jg(e.e,t),113)}function s0(e,t,n,i){return yt(e),yt(t),yt(n),yt(i),new Bte(e,t,new so)}function tu(e,t,n,i){this.rj(),this.a=t,this.b=e,this.c=new Rte(this,t,n,i)}function GB(e,t,n,i,r,o){Tne.call(this,t,i,r,o),this.c=e,this.b=n}function NS(e,t,n,i,r,o){Tne.call(this,t,i,r,o),this.c=e,this.a=n}function L7t(e,t,n){var i,r,o;i=ua(e,n),r=null,i&&(r=woe(i)),o=r,bze(t,n,o)}function F7t(e,t,n){var i,r,o;i=ua(e,n),r=null,i&&(r=woe(i)),o=r,bze(t,n,o)}function $S(e,t,n){var i,r;return r=(i=u4(e.b,t),i),r?iP(BS(e,r),n):null}function Oy(e,t){var n;return n=e.Yg(t),n>=0?e._g(n,!0,!0):Xg(e,t,!0)}function B7t(e,t){return qi(re(ve(D(e,(fe(),bb)))),re(ve(D(t,bb))))}function QBe(){QBe=X,zut=Hg(Hg(dT(new Ji,(Jy(),l8)),(_k(),ZI)),MX)}function _7t(e,t,n){var i;return i=DQe(e,t,n),e.b=new LM(i.c.length),ace(e,i)}function q7t(e){if(e.b<=0)throw L(new Zs);return--e.b,e.a-=e.c.c,we(e.a)}function Q7t(e){var t;if(!e.a)throw L(new W$e);return t=e.a,e.a=pi(e.a),t}function H7t(e){for(;!e.a;)if(!jIe(e.c,new xxe(e)))return!1;return!0}function fv(e){var t;return tn(e),z(e,198)?(t=c(e,198),t):new H7e(e)}function z7t(e){dM(),c(e.We((Pn(),cw)),174).Fc((Ac(),yE)),e.Ye(mU,null)}function dM(){dM=X,oft=new j6e,uft=new P6e,cft=ACt((Pn(),mU),oft,v1,uft)}function gM(){gM=X,Kge=new kJ("LEAF_NUMBER",0),QX=new kJ("NODE_SIZE",1)}function K7t(e,t,n){e.a=t,e.c=n,e.b.a.$b(),Vu(e.d),e.e.a.c=Y(It,Ce,1,0,5,1)}function VB(e){e.a=Y(Vt,yn,25,e.b+1,15,1),e.c=Y(Vt,yn,25,e.b,15,1),e.d=0}function W7t(e,t){e.a.ue(t.d,e.b)>0&&(ae(e.c,new hte(t.c,t.d,e.d)),e.b=t.d)}function oie(e,t){if(e.g==null||t>=e.i)throw L(new ZL(t,e.i));return e.g[t]}function HBe(e,t,n){if(qy(e,n),n!=null&&!e.wj(n))throw L(new ZR);return n}function zBe(e){var t;if(e.Ek())for(t=e.i-1;t>=0;--t)W(e,t);return Pne(e)}function X7t(e){var t,n;if(!e.b)return null;for(n=e.b;t=n.a[0];)n=t;return n}function U7t(e,t){var n,i;return aFe(t),n=(i=e.slice(0,t),uie(i,e)),n.length=t,n}function ky(e,t,n,i){var r;i=(Kw(),i||Yhe),r=e.slice(t,n),Eoe(r,e,t,n,-0,i)}function Nu(e,t,n,i,r){return t<0?Xg(e,n,i):c(n,66).Nj().Pj(e,e.yh(),t,i,r)}function G7t(e){return z(e,172)?""+c(e,172).a:e==null?null:Ms(e)}function V7t(e){return z(e,172)?""+c(e,172).a:e==null?null:Ms(e)}function KBe(e,t){if(t.a)throw L(new Is(KYe));Wi(e.a,t),t.a=e,!e.j&&(e.j=t)}function cie(e,t){YL.call(this,t.rd(),t.qd()&-16449),yt(e),this.a=e,this.c=t}function WBe(e,t){var n,i;return i=t/e.c.Hd().gc()|0,n=t%e.c.Hd().gc(),lv(e,i,n)}function Tc(){Tc=X,ph=new EL(Mv,0),f1=new EL(x4,1),Rl=new EL(jv,2)}function bM(){bM=X,$K=new wT("All",0),rae=new qPe,sae=new JPe,oae=new QPe}function XBe(){XBe=X,fnt=mn((bM(),_(B(AD,1),he,297,0,[$K,rae,sae,oae])))}function UBe(){UBe=X,trt=mn((Fy(),_(B(ert,1),he,405,0,[lb,Kp,zp,Nm])))}function GBe(){GBe=X,nit=mn((Lg(),_(B(tit,1),he,406,0,[Cx,Ex,HK,zK])))}function VBe(){VBe=X,rit=mn((mv(),_(B(iit,1),he,323,0,[Ax,Tx,Mx,jx])))}function YBe(){YBe=X,cit=mn((Ik(),_(B(oit,1),he,394,0,[Px,ID,ND,Dx])))}function ZBe(){ZBe=X,Eut=mn((Jy(),_(B(jge,1),he,393,0,[YI,l8,tE,f8])))}function JBe(){JBe=X,yrt=mn((XM(),_(B(vrt,1),he,360,0,[dW,oI,cI,Lx])))}function e_e(){e_e=X,alt=mn((xj(),_(B(obe,1),he,340,0,[KX,rbe,sbe,ibe])))}function t_e(){t_e=X,Mrt=mn((Tf(),_(B(Art,1),he,411,0,[Qv,U4,G4,gW])))}function n_e(){n_e=X,mct=mn((mp(),_(B(pX,1),he,197,0,[zI,bX,Gm,Um])))}function i_e(){i_e=X,tht=mn((nu(),_(B(eht,1),he,396,0,[Eu,dwe,awe,gwe])))}function r_e(){r_e=X,_ft=mn((bu(),_(B(Bft,1),he,285,0,[mE,Uh,y1,wE])))}function s_e(){s_e=X,$ft=mn((ma(),_(B(kU,1),he,218,0,[OU,pE,m5,s3])))}function o_e(){o_e=X,Zft=mn((uj(),_(B(hwe,1),he,311,0,[EU,uwe,fwe,lwe])))}function c_e(){c_e=X,Vft=mn((iu(),_(B(A8,1),he,374,0,[kE,W0,OE,lw])))}function u_e(){u_e=X,eP(),Gwe=Oi,iat=Li,Vwe=new S9(Oi),rat=new S9(Li)}function RS(){RS=X,f1e=new fJ(xa,0),pI=new fJ("IMPROVE_STRAIGHTNESS",1)}function Y7t(e,t){return ry(),ae(e,new wr(t,we(t.e.c.length+t.g.c.length)))}function Z7t(e,t){return ry(),ae(e,new wr(t,we(t.e.c.length+t.g.c.length)))}function uie(e,t){return qS(t)!=10&&_(_c(t),t.hm,t.__elementTypeId$,qS(t),e),e}function Zo(e,t){var n;return n=Ts(e,t,0),n==-1?!1:(Ka(e,n),!0)}function l_e(e,t){var n;return n=c(uv(e.e,t),387),n?(gte(n),n.e):null}function Sy(e){var t;return Cs(e)&&(t=0-e,!isNaN(t))?t:Xd(By(e))}function Ts(e,t,n){for(;n<e.c.length;++n)if(wo(t,e.c[n]))return n;return-1}function f_e(e,t,n){var i;return Qd(e),i=new xw,i.a=t,e.a.Nb(new oje(i,n)),i.a}function J7t(e){var t;return Qd(e),t=Y(hr,cs,25,0,15,1),Dw(e.a,new Oxe(t)),t}function YB(e){var t,n;return n=c(Ae(e.j,0),11),t=c(D(n,(fe(),Hn)),11),t}function lie(e){var t;if(!a_(e))throw L(new Zs);return e.e=1,t=e.d,e.d=null,t}function ZB(e,t){var n;this.f=e,this.b=t,n=c(Lt(e.b,t),283),this.c=n?n.b:null}function h_e(){Tl(),this.b=new Zt,this.f=new Zt,this.g=new Zt,this.e=new Zt}function a_e(e,t){this.a=Y(Wh,rd,10,e.a.c.length,0,1),Mf(e.a,this.a),this.b=t}function LS(e){var t;for(t=e.p+1;t<e.c.a.c.length;++t)--c(Ae(e.c.a,t),10).p}function JB(e){var t;t=e.Ai(),t!=null&&e.d!=-1&&c(t,92).Ng(e),e.i&&e.i.Fi()}function pM(e){HT(this),this.g=e?bB(e,e.$d()):null,this.f=e,RA(this),this._d()}function aa(e,t,n,i,r,o,h){u_.call(this,t,i,r,o,h),this.c=e,this.b=n}function up(e,t,n,i,r){return yt(e),yt(t),yt(n),yt(i),yt(r),new Bte(e,t,i)}function FS(e,t){if(t<0)throw L(new us(pJe+t));return nFe(e,t+1),Ae(e.j,t)}function d_e(e,t,n,i){if(!e)throw L(new kt(Kk(t,_(B(It,1),Ce,1,5,[n,i]))))}function wM(e,t){return wo(t,Ae(e.f,0))||wo(t,Ae(e.f,1))||wo(t,Ae(e.f,2))}function ext(e,t){U2(c(c(e.f,33).We((Pn(),y8)),98))&&eAt(sB(c(e.f,33)),t)}function BS(e,t){var n,i;return n=c(t,675),i=n.Oh(),!i&&n.Rh(i=new aPe(e,t)),i}function as(e,t){var n,i;return n=c(t,677),i=n.pk(),!i&&n.tk(i=new jLe(e,t)),i}function Bc(e){return e.b||(e.b=new WNe(e,ns,e),!e.a&&(e.a=new oS(e,e))),e.b}function dk(){dk=X,eW=new TL("XY",0),JK=new TL("X",1),tW=new TL("Y",2)}function Jo(){Jo=X,uf=new CL("TOP",0),h1=new CL(x4,1),Ll=new CL(Aue,2)}function da(){da=X,_x=new NL(xa,0),qm=new NL("TOP",1),zv=new NL(Aue,2)}function _S(){_S=X,yX=new aJ("INPUT_ORDER",0),OX=new aJ("PORT_DEGREE",1)}function xy(){xy=X,jhe=Bo(zc,zc,524287),Ytt=Bo(0,0,Y7),Phe=_B(1),_B(2),Dhe=_B(0)}function fie(e,t,n){e.a.c=Y(It,Ce,1,0,5,1),zqt(e,t,n),e.a.c.length==0||kBt(e,t)}function mM(e){var t,n;return n=e.length,t=Y(Wu,oh,25,n,15,1),b$e(e,0,n,t,0),t}function hie(e){var t;return e.dh()||(t=Rt(e.Tg())-e.Ah(),e.ph().bk(t)),e.Pg()}function aie(e){var t;return t=o0(mt(e,32)),t==null&&(_o(e),t=o0(mt(e,32))),t}function e_(e,t){var n;return n=ui(e.d,t),n>=0?vj(e,n,!0,!0):Xg(e,t,!0)}function die(e,t){pO();var n,i;return n=sv(e),i=sv(t),!!n&&!!i&&!Eze(n.k,i.k)}function txt(e,t){tc(e,t==null||iA((yt(t),t))||isNaN((yt(t),t))?0:(yt(t),t))}function nxt(e,t){nc(e,t==null||iA((yt(t),t))||isNaN((yt(t),t))?0:(yt(t),t))}function ixt(e,t){Ng(e,t==null||iA((yt(t),t))||isNaN((yt(t),t))?0:(yt(t),t))}function rxt(e,t){Ig(e,t==null||iA((yt(t),t))||isNaN((yt(t),t))?0:(yt(t),t))}function g_e(e){(this.q?this.q:(it(),it(),Kh)).Ac(e.q?e.q:(it(),it(),Kh))}function sxt(e,t){return z(t,99)&&(c(t,18).Bb&Qr)!=0?new JL(t,e):new Ry(t,e)}function oxt(e,t){return z(t,99)&&(c(t,18).Bb&Qr)!=0?new JL(t,e):new Ry(t,e)}function b_e(e,t){Iae=new Z5,sit=t,R6=e,c(R6.b,65),Jne(R6,Iae,null),uVe(R6)}function t_(e,t,n){var i;return i=e.g[t],_O(e,t,e.oi(t,n)),e.gi(t,n,i),e.ci(),i}function vM(e,t){var n;return n=e.Xc(t),n>=0?(e.$c(n),!0):!1}function n_(e){var t;return e.d!=e.r&&(t=Zu(e),e.e=!!t&&t.Cj()==Zet,e.d=t),e.e}function i_(e,t){var n;for(tn(e),tn(t),n=!1;t.Ob();)n=n|e.Fc(t.Pb());return n}function jg(e,t){var n;return n=c(Lt(e.e,t),387),n?(cDe(e,n),n.e):null}function p_e(e){var t,n;return t=e/60|0,n=e%60,n==0?""+t:""+t+":"+(""+n)}function Rs(e,t){var n,i;return g0(e),i=new Gne(t,e.a),n=new IIe(i),new ft(e,n)}function lp(e,t){var n=e.a[t],i=(k_(),jK)[typeof n];return i?i(n):wre(typeof n)}function cxt(e){switch(e.g){case 0:return Bn;case 1:return-1;default:return 0}}function uxt(e){return Nse(e,(xy(),Dhe))<0?-xyt(By(e)):e.l+e.m*Av+e.h*k0}function qS(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function r_(e){var t;return t=e.b.c.length==0?null:Ae(e.b,0),t!=null&&g_(e,0),t}function w_e(e,t){for(;t[0]<e.length&&Vf(` \r
|
|
2
2
|
`,rc(Or(e,t[0])))>=0;)++t[0]}function QS(e,t){this.e=t,this.a=fQe(e),this.a<54?this.f=Ag(e):this.c=g7(e)}function m_e(e,t,n,i){Rn(),eg.call(this,26),this.c=e,this.a=t,this.d=n,this.b=i}function $h(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 lxt(e,t){var n;for(n=0;e.e!=e.i.gc();)ikt(t,Qt(e),we(n)),n!=Bn&&++n}function gie(e,t){var n;for(++e.d,++e.c[t],n=t+1;n<e.a.length;)++e.a[n],n+=n&-n}function fxt(e,t){var n,i,r;r=t.c.i,n=c(Lt(e.f,r),57),i=n.d.c-n.e.c,Fie(t.a,i,0)}function HS(e){var t,n;return t=e+128,n=(SNe(),Nhe)[t],!n&&(n=Nhe[t]=new uxe(e)),n}function wn(e,t){var n;return yt(t),n=e[":"+t],bxt(!!n,_(B(It,1),Ce,1,5,[t])),n}function hxt(e){var t,n;if(e.b){n=null;do t=e.b,e.b=null,n=bWe(t,n);while(e.b);e.b=n}}function axt(e){var t,n;if(e.a){n=null;do t=e.a,e.a=null,n=bWe(t,n);while(e.a);e.a=n}}function v_e(e){var t;for(++e.a,t=e.c.a.length;e.a<t;++e.a)if(e.c.b[e.a])return}function dxt(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 gxt(e,t){var n;return n=_g(e.e.c,t.e.c),n==0?qi(e.e.d,t.e.d):n}function Uw(e,t){return t.e==0||e.e==0?q4:(o4(),sQ(e,t))}function bxt(e,t){if(!e)throw L(new kt(mLt("Enum constant undefined: %s",t)))}function gk(){gk=X,rrt=new rye,srt=new nye,nrt=new lye,irt=new fye,ort=new hye}function yM(){yM=X,dae=new rJ("BY_SIZE",0),BK=new rJ("BY_SIZE_AND_SHAPE",1)}function OM(){OM=X,VK=new sJ("EADES",0),LD=new sJ("FRUCHTERMAN_REINGOLD",1)}function zS(){zS=X,gI=new lJ("READING_DIRECTION",0),c1e=new lJ("ROTATION",1)}function y_e(){y_e=X,Qrt=mn((m0(),_(B(o1e,1),he,335,0,[CW,s1e,TW,H6,Q6])))}function O_e(){O_e=X,vct=mn((Nk(),_(B(cge,1),he,315,0,[oge,wX,mX,n8,i8])))}function k_e(){k_e=X,Prt=mn((lm(),_(B(jrt,1),he,363,0,[lI,hI,aI,fI,uI])))}function S_e(){S_e=X,tst=mn((Fu(),_(B(L1e,1),he,163,0,[Kx,U6,g1,G6,Gp])))}function x_e(){x_e=X,_lt=mn((x7(),_(B(Pbe,1),he,316,0,[Abe,ZX,jbe,JX,Mbe])))}function E_e(){E_e=X,lft=mn((nf(),_(B(gd,1),he,175,0,[Ct,or,yh,q0,dd])))}function C_e(){C_e=X,Nlt=mn((f4(),_(B(Ilt,1),he,355,0,[Ym,e3,p8,b8,w8])))}function T_e(){T_e=X,Vit=mn((_r(),_(B(ide,1),he,356,0,[wh,a1,Ho,xo,Os])))}function A_e(){A_e=X,Ift=mn((Yr(),_(B(O8,1),he,103,0,[Xh,Bl,ul,Ta,Aa])))}function M_e(){M_e=X,Qft=mn((im(),_(B(E8,1),he,249,0,[O1,vE,iwe,x8,rwe])))}function j_e(){j_e=X,Kft=mn((me(),_(B(Hr,1),co,61,0,[qs,Ot,Tt,Wt,xt])))}function s_(e,t){var n;return n=c(Lt(e.a,t),134),n||(n=new v9,Qn(e.a,t,n)),n}function P_e(e){var t;return t=c(D(e,(fe(),ab)),305),t?t.a==e:!1}function D_e(e){var t;return t=c(D(e,(fe(),ab)),305),t?t.i==e:!1}function I_e(e,t){return yt(t),Nte(e),e.d.Ob()?(t.td(e.d.Pb()),!0):!1}function kM(e){return oo(e,Bn)>0?Bn:oo(e,Tr)<0?Tr:en(e)}function fp(e){return e<3?(du(e,TYe),e+1):e<n6?Di(e/.75+1):Bn}function ct(e,t){var n;return n=(e.i==null&&rh(e),e.i),t>=0&&t<n.length?n[t]:null}function Jl(e,t,n){var i;if(t==null)throw L(new iO);return i=ua(e,t),LSt(e,t,n),i}function N_e(e){return e.a>=-.01&&e.a<=Df&&(e.a=0),e.b>=-.01&&e.b<=Df&&(e.b=0),e}function $_e(e,t){return t==(xF(),xF(),cnt)?e.toLocaleLowerCase():e.toLowerCase()}function bie(e){return((e.i&2)!=0?"interface ":(e.i&1)!=0?"":"class ")+(sa(e),e.o)}function ds(e){var t,n;n=(t=new nL,t),rn((!e.q&&(e.q=new pe(gl,e,11,10)),e.q),n)}function pxt(e,t){var n;return n=t>0?t-1:t,PAe(jvt(oqe(dte(new B3,n),e.n),e.j),e.k)}function wxt(e,t,n,i){var r;e.j=-1,Foe(e,moe(e,t,n),(Kr(),r=c(t,66).Mj(),r.Ok(i)))}function R_e(e){this.g=e,this.f=new de,this.a=b.Math.min(this.g.c.c,this.g.d.c)}function L_e(e){this.b=new de,this.a=new de,this.c=new de,this.d=new de,this.e=e}function F_e(e,t){this.a=new Zt,this.e=new Zt,this.b=(Sk(),HI),this.c=e,this.b=t}function B_e(e,t,n){tA.call(this),pie(this),this.a=e,this.c=n,this.b=t.d,this.f=t.e}function __e(e){this.d=e,this.c=e.c.vc().Kc(),this.b=null,this.a=null,this.e=(XC(),CK)}function Pg(e){if(e<0)throw L(new kt("Illegal Capacity: "+e));this.g=this.ri(e)}function mxt(e,t){if(0>e||e>t)throw L(new MZ("fromIndex: 0, toIndex: "+e+wue+t))}function vxt(e){var t;if(e.a==e.b.a)throw L(new Zs);return t=e.a,e.c=t,e.a=e.a.e,t}function SM(e){var t;Ub(!!e.c),t=e.c.a,$u(e.d,e.c),e.b==e.c?e.b=t:--e.a,e.c=null}function xM(e,t){var n;return g0(e),n=new uRe(e,e.a.rd(),e.a.qd()|4,t),new ft(e,n)}function yxt(e,t){var n,i;return n=c(bp(e.d,t),14),n?(i=t,e.e.pc(i,n)):null}function EM(e,t){var n,i;for(i=e.Kc();i.Ob();)n=c(i.Pb(),70),oe(n,(fe(),Uv),t)}function Oxt(e){var t;return t=re(ve(D(e,(ke(),ld)))),t<0&&(t=0,oe(e,ld,t)),t}function kxt(e,t,n){var i;i=b.Math.max(0,e.b/2-.5),Rk(n,i,1),ae(t,new aje(n,i))}function Sxt(e,t,n){var i;return i=e.a.e[c(t.a,10).p]-e.a.e[c(n.a,10).p],Di(gS(i))}function q_e(e,t,n,i,r,o){var h;h=qB(i),jr(h,r),dr(h,o),Ye(e.a,i,new rA(h,t,n.f))}function Q_e(e,t){var n;if(n=N7(e.Tg(),t),!n)throw L(new kt(u1+t+Hz));return n}function hp(e,t){var n;for(n=e;pi(n);)if(n=pi(n),n==t)return!0;return!1}function xxt(e,t){var n,i,r;for(i=t.a.cd(),n=c(t.a.dd(),14).gc(),r=0;r<n;r++)e.td(i)}function ec(e,t){var n,i,r,o;for(yt(t),i=e.c,r=0,o=i.length;r<o;++r)n=i[r],t.td(n)}function $u(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 Ext(e,t){return t&&e.b[t.g]==t?(bi(e.b,t.g,null),--e.c,!0):!1}function H_e(e,t){return!!mk(e,t,en(Cr(_h,Dh(en(Cr(t==null?0:oi(t),qh)),15))))}function Cxt(e,t){U2(c(D(c(e.e,10),(ke(),Si)),98))&&(it(),ir(c(e.e,10).j,t))}function pie(e){e.b=(Tc(),f1),e.f=(Jo(),h1),e.d=(du(2,Dp),new jo(2)),e.e=new Er}function ef(){ef=X,Xs=new xL("BEGIN",0),$o=new xL(x4,1),Us=new xL("END",2)}function Ef(){Ef=X,p5=new UL(x4,0),uw=new UL("HEAD",1),w5=new UL("TAIL",2)}function Txt(){return c4(),_(B($N,1),he,237,0,[MU,IN,NN,DN,AU,PN,jN,TU])}function Axt(){return nd(),_(B(fft,1),he,277,0,[Ybe,Mr,no,g5,ks,xi,t3,Bf])}function Mxt(){return Wj(),_(B(Zde,1),he,270,0,[wW,yW,pW,SW,vW,mW,kW,OW])}function jxt(){return dm(),_(B(age,1),he,260,0,[KI,Vx,Yx,lge,fge,uge,hge,WI])}function z_e(){z_e=X,Hft=mn((br(),_(B(swe,1),he,98,0,[k1,_f,v5,K0,Vh,To])))}function K_e(){K_e=X,PD=(ef(),_(B(Hp,1),he,232,0,[Xs,$o,Us])).length,qK=PD}function CM(e){this.b=(tn(e),new gc(e)),this.a=new de,this.d=new de,this.e=new Er}function Pxt(e){var t;return t=b.Math.sqrt(e.a*e.a+e.b*e.b),t>0&&(e.a/=t,e.b/=t),e}function au(e){var t;return e.w?e.w:(t=I9t(e),t&&!t.kh()&&(e.w=t),t)}function Dxt(e){var t;return e==null?null:(t=c(e,190),IDt(t,t.length))}function W(e,t){if(e.g==null||t>=e.i)throw L(new ZL(t,e.i));return e.li(t,e.g[t])}function Ixt(e){var t,n;for(t=e.a.d.j,n=e.c.d.j;t!=n;)Dl(e.b,t),t=nj(t);Dl(e.b,t)}function Nxt(e){var t;for(t=0;t<e.c.length;t++)(gt(t,e.c.length),c(e.c[t],11)).p=t}function $xt(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 o_(e,t){var n,i,r,o;for(i=e.d,r=0,o=i.length;r<o;++r)n=i[r],mf(e.g,n).a=t}function ap(e,t){var n,i;for(i=xn(e,0);i.b!=i.d.c;)n=c(Sn(i),8),Wn(n,t);return e}function Rxt(e,t){var n;return n=lr(zs(c(Lt(e.g,t),8)),QJ(c(Lt(e.f,t),460).b)),n}function Dg(e){var t;return PB(e.e,e),$t(e.b),e.c=e.a,t=c(e.a.Pb(),42),e.b=Wie(e),t}function o0(e){var t;return XO(e==null||Array.isArray(e)&&(t=qS(e),!(t>=14&&t<=16))),e}function W_e(e,t,n){var i=function(){return e.apply(i,arguments)};return t.apply(i,n),i}function X_e(e,t,n){var i,r;i=t;do r=re(e.p[i.p])+n,e.p[i.p]=r,i=e.a[i.p];while(i!=t)}function Ey(e,t){var n,i;i=e.a,n=gTt(e,t,null),i!=t&&!e.e&&(n=p4(e,t,n)),n&&n.Fi()}function wie(e,t){return wf(),Pl(i1),b.Math.abs(e-t)<=i1||e==t||isNaN(e)&&isNaN(t)}function mie(e,t){return wf(),Pl(i1),b.Math.abs(e-t)<=i1||e==t||isNaN(e)&&isNaN(t)}function Lxt(e,t){return e1(),Uo(e.b.c.length-e.e.c.length,t.b.c.length-t.e.c.length)}function Gw(e,t){return $vt(wk(e,t,en(Cr(_h,Dh(en(Cr(t==null?0:oi(t),qh)),15)))))}function U_e(){U_e=X,hrt=mn((jt(),_(B(uW,1),he,267,0,[zi,sr,Ri,Eo,ru,Rf])))}function G_e(){G_e=X,mft=mn((Op(),_(B(lU,1),he,291,0,[uU,hE,fE,cU,uE,lE])))}function V_e(){V_e=X,aft=mn((Rh(),_(B(epe,1),he,248,0,[sU,oE,cE,pN,gN,bN])))}function Y_e(){Y_e=X,Frt=mn((yv(),_(B(Z4,1),he,227,0,[Y4,q6,V4,Wp,Fm,Lm])))}function Z_e(){Z_e=X,Grt=mn((r4(),_(B(k1e,1),he,275,0,[z6,m1e,O1e,y1e,v1e,w1e])))}function J_e(){J_e=X,Urt=mn((k7(),_(B(p1e,1),he,274,0,[wI,d1e,b1e,a1e,g1e,NW])))}function eqe(){eqe=X,pct=mn((Dj(),_(B(ige,1),he,313,0,[dX,tge,aX,ege,nge,QI])))}function tqe(){tqe=X,Wrt=mn((Rj(),_(B(l1e,1),he,276,0,[jW,MW,DW,PW,IW,bI])))}function nqe(){nqe=X,Tut=mn((_k(),_(B(Cut,1),he,327,0,[ZI,MX,PX,jX,DX,AX])))}function iqe(){iqe=X,zft=mn((Ac(),_(B(xN,1),he,273,0,[S1,ja,yE,T8,C8,o3])))}function rqe(){rqe=X,Rft=mn((Nj(),_(B(Vpe,1),he,312,0,[SU,Xpe,Gpe,Kpe,Upe,Wpe])))}function Fxt(){return Ep(),_(B(ts,1),he,93,0,[_l,Ma,ql,Hl,Gh,fl,ku,Ql,ll])}function TM(e,t){var n;n=e.a,e.a=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new cp(e,0,n,e.a))}function AM(e,t){var n;n=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new cp(e,1,n,e.b))}function Cy(e,t){var n;n=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new cp(e,3,n,e.b))}function Ig(e,t){var n;n=e.f,e.f=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new cp(e,3,n,e.f))}function Ng(e,t){var n;n=e.g,e.g=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new cp(e,4,n,e.g))}function tc(e,t){var n;n=e.i,e.i=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new cp(e,5,n,e.i))}function nc(e,t){var n;n=e.j,e.j=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new cp(e,6,n,e.j))}function Ty(e,t){var n;n=e.j,e.j=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new cp(e,1,n,e.j))}function Ay(e,t){var n;n=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new cp(e,4,n,e.c))}function My(e,t){var n;n=e.k,e.k=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new cp(e,2,n,e.k))}function c_(e,t){var n;n=e.d,e.d=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new NB(e,2,n,e.d))}function Ua(e,t){var n;n=e.s,e.s=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new NB(e,4,n,e.s))}function dp(e,t){var n;n=e.t,e.t=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new NB(e,5,n,e.t))}function jy(e,t){var n;n=e.F,e.F=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,1,5,n,t))}function KS(e,t){var n;return n=c(Lt((gT(),RN),e),55),n?n.xj(t):Y(It,Ce,1,t,5,1)}function ga(e,t){var n,i;return n=t in e.a,n&&(i=ua(e,t).he(),i)?i.a:null}function Bxt(e,t){var n,i,r;return n=(i=(cg(),r=new hY,r),t&&oce(i,t),i),Tie(n,e),n}function sqe(e,t,n){if(qy(e,n),!e.Bk()&&n!=null&&!e.wj(n))throw L(new ZR);return n}function oqe(e,t){return e.n=t,e.n?(e.f=new de,e.e=new de):(e.f=null,e.e=null),e}function hn(e,t,n,i,r,o){var h;return h=JF(e,t),uqe(n,h),h.i=r?8:0,h.f=i,h.e=r,h.g=o,h}function vie(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 yie(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 Oie(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 kie(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 Sie(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 cqe(e,t){var n,i,r,o;for(i=t,r=0,o=i.length;r<o;++r)n=i[r],KBe(e.a,n);return e}function Cf(e){var t,n,i,r;for(n=e,i=0,r=n.length;i<r;++i)t=n[i],tn(t);return new TPe(e)}function _xt(e){var t=/function(?:\s+([\w$]+))?\s*\(/,n=t.exec(e);return n&&n[1]||KQ}function uqe(e,t){if(e){t.n=e;var n=K8t(t);if(!n){yD[e]=[t];return}n.gm=t}}function qxt(e,t,n){var i,r;return r=e.length,i=b.Math.min(n,r),Toe(e,0,t,0,i,!0),t}function lqe(e,t,n){var i,r;for(r=t.Kc();r.Ob();)i=c(r.Pb(),79),Wi(e,c(n.Kb(i),33))}function Qxt(){dMe();for(var e=yK,t=0;t<arguments.length;t++)e.push(arguments[t])}function bk(e,t){var n,i,r,o;for(i=t,r=0,o=i.length;r<o;++r)n=i[r],ji(e,n,e.c.b,e.c)}function MM(e,t){e.b=b.Math.max(e.b,t.d),e.e+=t.r+(e.a.c.length==0?0:e.c),ae(e.a,t)}function fqe(e){Ub(e.c>=0),BAt(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function xie(e){return e.a<54?e.f<0?-1:e.f>0?1:0:(!e.c&&(e.c=s7(e.f)),e.c).e}function Pl(e){if(!(e>=0))throw L(new kt("tolerance ("+e+") must be >= 0"));return e}function Py(){return iU||(iU=new VUe,em(iU,_(B(Im,1),Ce,130,0,[new bY]))),iU}function Vr(){Vr=X,r8=new LL(c6,0),jc=new LL("INPUT",1),Ro=new LL("OUTPUT",2)}function jM(){jM=X,i1e=new PL("ARD",0),dI=new PL("MSD",1),EW=new PL("MANUAL",2)}function $g(){$g=X,Jx=new QL("BARYCENTER",0),o8=new QL(NZe,1),XI=new QL($Ze,2)}function WS(e,t){var n;if(n=e.gc(),t<0||t>n)throw L(new Zb(t,n));return new Qee(e,t)}function hqe(e,t){var n;return z(t,42)?e.c.Mc(t):(n=eq(e,t),hj(e,t),n)}function ss(e,t,n){return d0(e,t),Po(e,n),Ua(e,0),dp(e,1),Za(e,!0),Ya(e,!0),e}function du(e,t){if(e<0)throw L(new kt(t+" cannot be negative but was: "+e));return e}function aqe(e,t){var n,i;for(n=0,i=e.gc();n<i;++n)if(wo(t,e.Xb(n)))return n;return-1}function PM(e){var t,n;for(n=e.c.Cc().Kc();n.Ob();)t=c(n.Pb(),14),t.$b();e.c.$b(),e.d=0}function Hxt(e){var t,n,i,r;for(n=e.a,i=0,r=n.length;i<r;++i)t=n[i],g$e(t,t.length,null)}function Eie(e){var t,n;if(e==0)return 32;for(n=0,t=1;(t&e)==0;t<<=1)++n;return n}function zxt(e){var t,n;for(n=new $(Zze(e));n.a<n.c.c.length;)t=c(I(n),680),t.Gf()}function dqe(e){KZ(),this.g=new Zt,this.f=new Zt,this.b=new Zt,this.c=new Cg,this.i=e}function Cie(){this.f=new Er,this.d=new gZ,this.c=new Er,this.a=new de,this.b=new de}function gqe(e,t,n,i){this.rj(),this.a=t,this.b=e,this.c=null,this.c=new CIe(this,t,n,i)}function u_(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 bqe(){WJ.call(this),this.n=-1,this.g=null,this.i=null,this.j=null,this.Bb|=$l}function Kxt(){return Hc(),_(B(cwe,1),he,259,0,[y5,xE,EN,M8,CN,AN,TN,xU,SE])}function Wxt(){return Uj(),_(B(jae,1),he,250,0,[Mae,Eae,Cae,xae,_K,Aae,Tae,Sae,kae])}function pqe(){pqe=X,Ztt=_(B(Vt,1),yn,25,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function wqe(){wqe=X,Nct=Fn(Fn(Fn(new Ji,(_r(),wh),(Ur(),B6)),a1,X4),Ho,W4)}function mqe(){mqe=X,$ct=Fn(Fn(Fn(new Ji,(_r(),wh),(Ur(),B6)),a1,X4),Ho,W4)}function vqe(){vqe=X,Rct=Fn(Fn(Fn(new Ji,(_r(),wh),(Ur(),B6)),a1,X4),Ho,W4)}function yqe(){yqe=X,Bct=Ec(Fn(Fn(new Ji,(_r(),Ho),(Ur(),ZD)),xo,XD),Os,YD)}function hv(){hv=X,Hv=new jL("LAYER_SWEEP",0),Fx=new jL(WH,1),t1e=new jL(xa,2)}function Xxt(e,t){var n,i;return n=e.c,i=t.e[e.p],i>0?c(Ae(n.a,i-1),10):null}function pk(e,t){var n;n=e.k,e.k=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,1,2,n,e.k))}function DM(e,t){var n;n=e.f,e.f=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,1,8,n,e.f))}function IM(e,t){var n;n=e.i,e.i=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,1,7,n,e.i))}function Tie(e,t){var n;n=e.a,e.a=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,1,8,n,e.a))}function Aie(e,t){var n;n=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,1,0,n,e.b))}function Mie(e,t){var n;n=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,1,0,n,e.b))}function jie(e,t){var n;n=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,1,1,n,e.c))}function Pie(e,t){var n;n=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,1,1,n,e.c))}function l_(e,t){var n;n=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,1,4,n,e.c))}function Die(e,t){var n;n=e.d,e.d=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,1,1,n,e.d))}function f_(e,t){var n;n=e.D,e.D=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,1,2,n,e.D))}function h_(e,t){e.r>0&&e.c<e.r&&(e.c+=t,e.i&&e.i.d>0&&e.g!=0&&h_(e.i,t/e.r*e.i.d))}function Uxt(e,t,n){var i;e.b=t,e.a=n,i=(e.a&512)==512?new tAe:new gY,e.c=fFt(i,e.b,e.a)}function Oqe(e,t){return Oa(e.e,t)?(Kr(),n_(t)?new hA(t,e):new Z9(t,e)):new dPe(t,e)}function NM(e,t){return Nvt(mk(e.a,t,en(Cr(_h,Dh(en(Cr(t==null?0:oi(t),qh)),15)))))}function Gxt(e,t,n){return up(e,new mxe(t),new M2,new vxe(n),_(B(Kc,1),he,132,0,[]))}function Vxt(e){var t,n;return 0>e?new zZ:(t=e+1,n=new KFe(t,e),new See(null,n))}function Yxt(e,t){it();var n;return n=new F2(1),ur(e)?fs(n,e,t):qo(n.f,e,t),new GR(n)}function Zxt(e,t){var n,i;return n=e.o+e.p,i=t.o+t.p,n<i?-1:n==i?0:1}function Jxt(e){var t;return t=D(e,(fe(),Hn)),z(t,160)?NHe(c(t,160)):null}function kqe(e){var t;return e=b.Math.max(e,2),t=nre(e),e>t?(t<<=1,t>0?t:n6):t}function a_(e){switch(eee(e.e!=3),e.e){case 2:return!1;case 0:return!0}return r7t(e)}function Sqe(e,t){var n;return z(t,8)?(n=c(t,8),e.a==n.a&&e.b==n.b):!1}function d_(e,t,n){var i,r,o;return o=t>>5,r=t&31,i=Xi(ep(e.n[n][o],en(oa(r,1))),3),i}function eEt(e,t){var n,i;for(i=t.vc().Kc();i.Ob();)n=c(i.Pb(),42),Mj(e,n.cd(),n.dd())}function tEt(e,t){var n;n=new Z5,c(t.b,65),c(t.b,65),c(t.b,65),ec(t.a,new Jee(e,n,t))}function Iie(e,t){var n;n=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,1,21,n,e.b))}function Nie(e,t){var n;n=e.d,e.d=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,1,11,n,e.d))}function $M(e,t){var n;n=e.j,e.j=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,1,13,n,e.j))}function xqe(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)bi(t,i,e.a[r])}function Dl(e,t){var n;return yt(t),n=t.g,e.b[n]?!1:(bi(e.b,n,t),++e.c,!0)}function Eqe(e,t){var n;return n=t==null?-1:Ts(e.b,t,0),n<0?!1:(g_(e,n),!0)}function g_(e,t){var n;n=Ka(e.b,e.b.c.length-1),t<e.b.c.length&&(Iu(e.b,t,n),BWe(e,t))}function nEt(e,t){(sM(),$f?null:t.c).length==0&&tIe(t,new Xo),fs(e.a,$f?null:t.c,t)}function iEt(e,t){Kt(t,"Hierarchical port constraint processing",1),hMt(e),azt(e),_t(t)}function rEt(e,t){var n,i;for(i=t.Kc();i.Ob();)n=c(i.Pb(),266),e.b=!0,Wi(e.e,n),n.b=e}function RM(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 sEt(e,t){var n,i;return n=c(D(e,(ke(),nw)),8),i=c(D(t,nw),8),qi(n.b,i.b)}function Cqe(e){Ete.call(this),this.b=re(ve(D(e,(ke(),Fl)))),this.a=c(D(e,Ca),218)}function Tqe(e,t,n){Ane.call(this,e,t,n),this.a=new Zt,this.b=new Zt,this.d=new QEe(this)}function Aqe(e){this.e=e,this.d=new tT(fp(Y2(this.e).gc())),this.c=this.e.a,this.b=this.e.c}function LM(e){this.b=e,this.a=Y(Vt,yn,25,e+1,15,1),this.c=Y(Vt,yn,25,e,15,1),this.d=0}function b_(e,t,n){var i;return i=new de,lce(e,t,i,n,!0,!0),e.b=new LM(i.c.length),i}function Mqe(e,t){var n;return n=c(Lt(e.c,t),458),n||(n=new NTe,n.c=t,Qn(e.c,n.c,n)),n}function p_(e,t){var n=e.a,i=0;for(var r in n)n.hasOwnProperty(r)&&(t[i++]=r);return t}function $ie(e){var t;return e.b==null?(_a(),_a(),PE):(t=e.Lk()?e.Kk():e.Jk(),t)}function jqe(e){var t,n;for(n=new Ft(e);n.e!=n.i.gc();)t=c(Qt(n),33),tc(t,0),nc(t,0)}function Wd(){Wd=X,qv=new ci(Que),_D=new ci(bZe),F6=new ci(pZe),Ix=new ci(wZe)}function Dy(){Dy=X,$x=new oJ("TO_INTERNAL_LTR",0),lW=new oJ("TO_INPUT_DIRECTION",1)}function FM(){FM=X,rN=new OJ("P1_NODE_PLACEMENT",0),d5=new OJ("P2_EDGE_ROUTING",1)}function Rg(){Rg=X,hb=new ML("START",0),d1=new ML("MIDDLE",1),fb=new ML("END",2)}function av(){av=X,aW=new Ki("edgelabelcenterednessanalysis.includelabel",(St(),D0))}function oEt(e,t){Ci(ni(new ft(null,new dt(new I3(e.b),1)),new Rje(e,t)),new Fje(e,t))}function Pqe(){this.c=new iT(0),this.b=new iT(iJe),this.d=new iT(nJe),this.a=new iT(LH)}function Rie(e){var t,n;for(n=e.c.a.ec().Kc();n.Ob();)t=c(n.Pb(),214),Jmt(t,new JKe(t.e))}function Dqe(e){var t,n;for(n=e.c.a.ec().Kc();n.Ob();)t=c(n.Pb(),214),Zmt(t,new s$e(t.f))}function Po(e,t){var n;n=e.zb,e.zb=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,1,1,n,e.zb))}function BM(e,t){var n;n=e.xb,e.xb=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,1,3,n,e.xb))}function _M(e,t){var n;n=e.yb,e.yb=t,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,1,2,n,e.yb))}function wi(e,t){var n,i;n=(i=new tL,i),n.n=t,rn((!e.s&&(e.s=new pe(lc,e,21,17)),e.s),n)}function ei(e,t){var n,i;i=(n=new yee,n),i.n=t,rn((!e.s&&(e.s=new pe(lc,e,21,17)),e.s),i)}function Vw(e,t){var n,i;for(n=e.Pc(),ky(n,0,n.length,t),i=0;i<n.length;i++)e._c(i,n[i])}function Br(e,t){var n,i,r;for(yt(t),n=!1,r=t.Kc();r.Ob();)i=r.Pb(),n=n|e.Fc(i);return n}function Iqe(e){var t,n,i;for(t=0,i=e.Kc();i.Ob();)n=i.Pb(),t+=n!=null?oi(n):0,t=~~t;return t}function Nqe(e){var t;return e==0?"UTC":(e<0?(e=-e,t="UTC+"):t="UTC-",t+p_e(e))}function w_(e,t){var n;return z(t,14)?(n=c(t,14),e.Gc(n)):i_(e,c(tn(t),20).Kc())}function $qe(e,t,n){F_e.call(this,t,n),this.d=Y(Wh,rd,10,e.a.c.length,0,1),Mf(e.a,this.d)}function cEt(e){e.a=null,e.e=null,e.b.c=Y(It,Ce,1,0,5,1),e.f.c=Y(It,Ce,1,0,5,1),e.c=null}function Rqe(e,t){t?e.B==null&&(e.B=e.D,e.D=null):e.B!=null&&(e.D=e.B,e.B=null)}function Lqe(e,t){return re(ve(pg(u7(Vo(new ft(null,new dt(e.c.b,16)),new MEe(e)),t))))}function Lie(e,t){return re(ve(pg(u7(Vo(new ft(null,new dt(e.c.b,16)),new AEe(e)),t))))}function uEt(e,t){Kt(t,IZe,1),Ci(Rs(new ft(null,new dt(e.b,16)),new Mye),new jye),_t(t)}function lEt(e,t){var n,i;return n=c(Ie(e,(vp(),oN)),19),i=c(Ie(t,oN),19),Uo(n.a,i.a)}function Fie(e,t,n){var i,r;for(r=xn(e,0);r.b!=r.d.c;)i=c(Sn(r),8),i.a+=t,i.b+=n;return e}function wk(e,t,n){var i;for(i=e.b[n&e.f];i;i=i.b)if(n==i.a&&eh(t,i.g))return i;return null}function mk(e,t,n){var i;for(i=e.c[n&e.f];i;i=i.d)if(n==i.f&&eh(t,i.i))return i;return null}function fEt(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 hEt(e,t){it();var n,i;for(i=new de,n=0;n<e;++n)i.c[i.c.length]=t;return new pL(i)}function Fqe(e){var t;return t=HLe(e),hg(t.a,0)?(U3(),U3(),tae):(U3(),new aee(t.b))}function Bqe(e){var t;return t=HLe(e),hg(t.a,0)?(U3(),U3(),tae):(U3(),new aee(t.c))}function aEt(e){var t;return t=JA(e),hg(t.a,0)?(cT(),cT(),unt):(cT(),new IDe(t.b))}function dEt(e){return e.b.c.i.k==(jt(),Ri)?c(D(e.b.c.i,(fe(),Hn)),11):e.b.c}function _qe(e){return e.b.d.i.k==(jt(),Ri)?c(D(e.b.d.i,(fe(),Hn)),11):e.b.d}function Ti(e,t,n,i,r,o,h,d,p,m,v,O,E){return DWe(e,t,n,i,r,o,h,d,p,m,v,O,E),K_(e,!1),e}function Ru(e,t,n,i,r,o,h){bn.call(this,e,t),this.d=n,this.e=i,this.c=r,this.b=o,this.a=Sf(h)}function gEt(e,t){typeof window===K7&&typeof window.$gwt===K7&&(window.$gwt[e]=t)}function bEt(e,t){return Fy(),e==lb&&t==Kp||e==Kp&&t==lb||e==Nm&&t==zp||e==zp&&t==Nm}function pEt(e,t){return Fy(),e==lb&&t==zp||e==lb&&t==Nm||e==Kp&&t==Nm||e==Kp&&t==zp}function qqe(e,t){return wf(),Pl(Df),b.Math.abs(0-t)<=Df||t==0||isNaN(0)&&isNaN(t)?0:e/t}function wEt(){return Zr(),_(B($W,1),he,256,0,[mI,Hu,K6,vI,n5,_m,W6,e5,t5,yI])}function m_(){m_=X,N8=new VTe,IU=_(B(lc,1),jm,170,0,[]),$ht=_(B(gl,1),hhe,59,0,[])}function qM(){qM=X,Sge=new _L("NO",0),EX=new _L("GREEDY",1),kge=new _L("LOOK_BACK",2)}function pc(){pc=X,ade=new mye,fde=new wye,hde=new vye,lde=new yye,dde=new Oye,gde=new kye}function mEt(e){var t,n,i;for(i=0,n=new $(e.b);n.a<n.c.c.length;)t=c(I(n),29),t.p=i,++i}function vEt(e,t){var n;return n=ioe(e),Doe(new De(n.c,n.d),new De(n.b,n.a),e.rf(),t,e.Hf())}function yo(e,t){var n;return e.b?null:(n=pxt(e,e.g),En(e.a,n),n.i=e,e.d=t,n)}function yEt(e,t,n){Kt(n,"DFS Treeifying phase",1),MAt(e,t),ELt(e,t),e.a=null,e.b=null,_t(n)}function Qqe(e,t,n){this.g=e,this.d=t,this.e=n,this.a=new de,mNt(this),it(),ir(this.a,null)}function Bie(e){this.i=e.gc(),this.i>0&&(this.g=this.ri(this.i+(this.i/8|0)+1),e.Qc(this.g))}function yi(e,t){cA.call(this,Rht,e,t),this.b=this,this.a=Qo(e.Tg(),ct(this.e.Tg(),this.c))}function vk(e,t){var n,i;for(yt(t),i=t.vc().Kc();i.Ob();)n=c(i.Pb(),42),e.zc(n.cd(),n.dd())}function OEt(e,t,n){var i;for(i=n.Kc();i.Ob();)if(!nM(e,t,i.Pb()))return!1;return!0}function kEt(e,t,n,i,r){var o;return n&&(o=ui(t.Tg(),e.c),r=n.gh(t,-1-(o==-1?i:o),null,r)),r}function SEt(e,t,n,i,r){var o;return n&&(o=ui(t.Tg(),e.c),r=n.ih(t,-1-(o==-1?i:o),null,r)),r}function Hqe(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 zqe(e){switch(e.g){case 2:return me(),xt;case 4:return me(),Tt;default:return e}}function Kqe(e){switch(e.g){case 1:return me(),Wt;case 3:return me(),Ot;default:return e}}function xEt(e){var t,n,i;return e.j==(me(),Ot)&&(t=yXe(e),n=dc(t,Tt),i=dc(t,xt),i||i&&n)}function EEt(e){var t,n;return t=c(e.e&&e.e(),9),n=c(Kte(t,t.length),9),new ju(t,n,t.length)}function CEt(e,t){Kt(t,IZe,1),_re(Wvt(new LC((bO(),new cB(e,!1,!1,new JV))))),_t(t)}function XS(e,t){return St(),ur(e)?Xne(e,ln(t)):Xb(e)?QF(e,ve(t)):Wb(e)?jkt(e,je(t)):e.wd(t)}function _ie(e,t){t.q=e,e.d=b.Math.max(e.d,t.r),e.b+=t.d+(e.a.c.length==0?0:e.c),ae(e.a,t)}function Iy(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 Wqe(e,t,n,i){z(e.Cb,179)&&(c(e.Cb,179).tb=null),Po(e,n),t&&_Nt(e,t),i&&e.xk(!0)}function qie(e,t){var n;n=c(t,183),e0(n,"x",e.i),e0(n,"y",e.j),e0(n,Uz,e.g),e0(n,Xz,e.f)}function Qie(){Qie=X,_ct=Hg(OPe(Fn(Fn(new Ji,(_r(),Ho),(Ur(),ZD)),xo,XD),Os),YD)}function Xqe(){Xqe=X,zct=Hg(OPe(Fn(Fn(new Ji,(_r(),Ho),(Ur(),ZD)),xo,XD),Os),YD)}function QM(){QM=X,WX=new KL(xa,0),ube=new KL("POLAR_COORDINATE",1),cbe=new KL("ID",2)}function HM(){HM=X,pge=new FL("EQUALLY",0),kX=new FL(mP,1),wge=new FL("NORTH_SOUTH",2)}function Uqe(){Uqe=X,yct=mn((dm(),_(B(age,1),he,260,0,[KI,Vx,Yx,lge,fge,uge,hge,WI])))}function Gqe(){Gqe=X,Lrt=mn((Wj(),_(B(Zde,1),he,270,0,[wW,yW,pW,SW,vW,mW,kW,OW])))}function Vqe(){Vqe=X,hft=mn((nd(),_(B(fft,1),he,277,0,[Ybe,Mr,no,g5,ks,xi,t3,Bf])))}function Yqe(){Yqe=X,ght=mn((c4(),_(B($N,1),he,237,0,[MU,IN,NN,DN,AU,PN,jN,TU])))}function Ny(){Ny=X,L6=new Ki("debugSVG",(St(),!1)),Nae=new Ki("overlapsExisted",!0)}function Zqe(e,t){return up(new bxe(e),new pxe(t),new wxe(t),new A2,_(B(Kc,1),he,132,0,[]))}function TEt(){var e;return RK||(RK=new xTe,e=new FB(""),B3t(e,(G3(),cae)),nEt(RK,e)),RK}function AEt(e,t){var n;for(tn(t);e.Ob();)if(n=e.Pb(),!Kie(c(n,10)))return!1;return!0}function Jqe(e,t){var n;return n=aQ(Py(),e),n?(os(t,(Pn(),b5),n),!0):!1}function gu(e,t){var n;for(n=0;n<t.j.c.length;n++)c(FS(e,n),21).Gc(c(FS(t,n),14));return e}function MEt(e,t){var n,i;for(i=new $(t.b);i.a<i.c.c.length;)n=c(I(i),29),e.a[n.p]=JDt(n)}function yk(e,t){var n,i;for(yt(t),i=e.vc().Kc();i.Ob();)n=c(i.Pb(),42),t.Od(n.cd(),n.dd())}function zM(e,t){var n;z(t,83)?(c(e.c,76).Xj(),n=c(t,83),eEt(e,n)):c(e.c,76).Wb(t)}function c0(e){return z(e,152)?cv(c(e,152)):z(e,131)?c(e,131).a:z(e,54)?new ng(e):new Hb(e)}function jEt(e,t){return t<e.b.gc()?c(e.b.Xb(t),10):t==e.b.gc()?e.a:c(Ae(e.e,t-e.b.gc()-1),10)}function eQe(e,t){e.a=Pr(e.a,1),e.c=b.Math.min(e.c,t),e.b=b.Math.max(e.b,t),e.d=Pr(e.d,t)}function PEt(e,t){var n;Kt(t,"Edge and layer constraint edge reversal",1),n=NFt(e),VQt(n),_t(t)}function tQe(e){var t;e.d==null?(++e.e,e.f=0,fHe(null)):(++e.e,t=e.d,e.d=null,e.f=0,fHe(t))}function Xd(e){var t;return t=e.h,t==0?e.l+e.m*Av:t==Sa?e.l+e.m*Av-k0:e}function nQe(e){return Vb(),e.A.Hc((iu(),lw))&&!e.B.Hc((Hc(),xE))?FHe(e):null}function DEt(e){if(yt(e),e.length==0)throw L(new Gf("Zero length BigInteger"));KFt(this,e)}function Yw(e){if(!e)throw L(new Es("no calls to next() since the last call to remove()"))}function ic(e){return Z7<e&&e<k0?e<0?b.Math.ceil(e):b.Math.floor(e):Xd(ZRt(e))}function IEt(e,t){var n,i,r;for(n=e.c.Ee(),r=t.Kc();r.Ob();)i=r.Pb(),e.a.Od(n,i);return e.b.Kb(n)}function _n(e,t){var n,i,r;if(n=e.Jg(),n!=null&&e.Mg())for(i=0,r=n.length;i<r;++i)n[i].ui(t)}function $y(e,t){var n,i;for(n=e,i=Ir(n).e;i;){if(n=i,n==t)return!0;i=Ir(n).e}return!1}function NEt(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 u0(e,t,n){var i,r;return r=c(WO(e.d,t),19),i=c(WO(e.b,n),19),!r||!i?null:lv(e,r.a,i.a)}function $Et(e,t){var n,i;for(i=new Ft(e);i.e!=i.i.gc();)n=c(Qt(i),33),pf(n,n.i+t.b,n.j+t.d)}function REt(e,t){var n,i;for(i=new $(t);i.a<i.c.c.length;)n=c(I(i),70),ae(e.d,n),WDt(e,n)}function LEt(e,t){var n,i;i=new de,n=t;do i.c[i.c.length]=n,n=c(Lt(e.k,n),17);while(n);return i}function mt(e,t){var n;return(e.Db&t)!=0?(n=Sq(e,t),n==-1?e.Eb:o0(e.Eb)[n]):null}function Ws(e,t){var n,i;return n=(i=new wY,i),n.G=t,!e.rb&&(e.rb=new tp(e,hf,e)),rn(e.rb,n),n}function Mn(e,t){var n,i;return n=(i=new zC,i),n.G=t,!e.rb&&(e.rb=new tp(e,hf,e)),rn(e.rb,n),n}function Hie(e,t){switch(t){case 1:return!!e.n&&e.n.i!=0;case 2:return e.k!=null}return kne(e,t)}function iQe(e){switch(e.a.g){case 1:return new iPe;case 3:return new tKe;default:return new k7e}}function KM(e){var t;if(e.g>1||e.Ob())return++e.a,e.g=0,t=e.i,e.Ob(),t;throw L(new Zs)}function FEt(e){WPe();var t;return nje(TX,e)||(t=new Mke,t.a=e,jee(TX,e,t)),c(rs(TX,e),635)}function Yu(e){var t,n,i,r;return r=e,i=0,r<0&&(r+=k0,i=Sa),n=Di(r/Av),t=Di(r-n*Av),Bo(t,n,i)}function US(e){var t,n,i;for(i=0,n=new B2(e.a);n.a<n.c.a.length;)t=fk(n),e.b.Hc(t)&&++i;return i}function BEt(e){var t,n,i;for(t=1,i=e.Kc();i.Ob();)n=i.Pb(),t=31*t+(n==null?0:oi(n)),t=~~t;return t}function _Et(e,t){var n;this.c=e,n=new de,vse(e,n,t,e.b,null,!1,null),this.a=new mr(n,0)}function Ry(e,t){this.b=e,this.e=t,this.d=t.j,this.f=(Kr(),c(e,66).Oj()),this.k=Qo(t.e.Tg(),e)}function l0(e,t,n){this.b=(yt(e),e),this.d=(yt(t),t),this.e=(yt(n),n),this.c=this.d+(""+this.e)}function rQe(){this.a=c(Te((sf(),FD)),19).a,this.c=re(ve(Te(BD))),this.b=re(ve(Te(YK)))}function sQe(){sQe=X,qft=mn((Ep(),_(B(ts,1),he,93,0,[_l,Ma,ql,Hl,Gh,fl,ku,Ql,ll])))}function oQe(){oQe=X,xnt=mn((Uj(),_(B(jae,1),he,250,0,[Mae,Eae,Cae,xae,_K,Aae,Tae,Sae,kae])))}function Lg(){Lg=X,Cx=new OT("UP",0),Ex=new OT(TH,1),HK=new OT(Mv,2),zK=new OT(jv,3)}function zie(){zie=X,Nge=(XA(),LX),Put=new ot(gfe,Nge),Ige=(YA(),FX),jut=new ot(bfe,Ige)}function Ly(){Ly=X,RW=new IL("ONE_SIDED",0),LW=new IL("TWO_SIDED",1),Bx=new IL("OFF",2)}function cQe(e){e.r=new Zi,e.w=new Zi,e.t=new de,e.i=new de,e.d=new Zi,e.a=new z2,e.c=new Zt}function GS(e){this.n=new de,this.e=new ai,this.j=new ai,this.k=new de,this.f=new de,this.p=e}function uQe(e,t){e.c&&(hGe(e,t,!0),Ci(new ft(null,new dt(t,16)),new LEe(e))),hGe(e,t,!1)}function qEt(e,t,n){return e==($g(),XI)?new VOe:Qc(t,1)!=0?new RZ(n.length):new DAe(n.length)}function vs(e,t){var n;return t&&(n=t.Ve(),n.dc()||(e.q?vk(e.q,n):e.q=new yPe(n))),e}function lQe(e,t){var n;return n=e.a.get(t),n===void 0?++e.d:(h4t(e.a,t),--e.c,_A(e.b)),n}function QEt(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,qi(i,r)):n}function HEt(e,t){var n,i;return n=e.f.c.length,i=t.f.c.length,n<i?-1:n==i?0:1}function zEt(e){return e.b.c.length!=0&&c(Ae(e.b,0),70).a?c(Ae(e.b,0),70).a:fB(e)}function KEt(e){var t;if(e){if(t=e,t.dc())throw L(new Zs);return t.Xb(t.gc()-1)}return fLe(e.Kc())}function fQe(e){var t;return oo(e,0)<0&&(e=lte(e)),t=en(Bd(e,32)),64-(t!=0?j7(t):j7(en(e))+32)}function Kie(e){var t;return t=c(D(e,(fe(),Gs)),61),e.k==(jt(),Ri)&&(t==(me(),xt)||t==Tt)}function WEt(e,t,n){var i,r;r=c(D(e,(ke(),bs)),74),r&&(i=new hc,$_(i,0,r),ap(i,n),Br(t,i))}function WM(e,t,n){var i,r,o,h;h=Ir(e),i=h.d,r=h.c,o=e.n,t&&(o.a=o.a-i.b-r.a),n&&(o.b=o.b-i.d-r.b)}function XEt(e,t){var n,i;return n=e.j,i=t.j,n!=i?n.g-i.g:e.p==t.p?0:n==(me(),Ot)?e.p-t.p:t.p-e.p}function UEt(e){var t,n;for(vHt(e),n=new $(e.d);n.a<n.c.c.length;)t=c(I(n),101),t.i&&AIt(t)}function Ok(e,t,n,i,r){bi(e.c[t.g],n.g,i),bi(e.c[n.g],t.g,i),bi(e.b[t.g],n.g,r),bi(e.b[n.g],t.g,r)}function GEt(e,t,n,i){c(n.b,65),c(n.b,65),c(i.b,65),c(i.b,65),c(i.b,65),ec(i.a,new Zee(e,t,i))}function VEt(e,t){e.d==(Yr(),ul)||e.d==Aa?c(t.a,57).c.Fc(c(t.b,57)):c(t.b,57).c.Fc(c(t.a,57))}function v_(e,t,n,i){return n==1?(!e.n&&(e.n=new pe(Ps,e,1,7)),Nr(e.n,t,i)):hoe(e,t,n,i)}function VS(e,t){var n,i;return i=(n=new qR,n),Po(i,t),rn((!e.A&&(e.A=new ac(Wo,e,7)),e.A),i),i}function YEt(e,t,n){var i,r,o,h;return o=null,h=t,r=Mg(h,Yz),i=new Qje(e,n),o=(pPt(i.a,i.b,r),r),o}function y_(e){var t;return(!e.a||(e.Bb&1)==0&&e.a.kh())&&(t=Zu(e),z(t,148)&&(e.a=c(t,148))),e.a}function YS(e,t){var n,i;for(yt(t),i=t.Kc();i.Ob();)if(n=i.Pb(),!e.Hc(n))return!1;return!0}function ZEt(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),Bo(n&zc,i&zc,r&Sa)}function hQe(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),Bo(n&zc,i&zc,r&Sa)}function ZS(e){var t;return e<128?(t=(CNe(),Rhe)[e],!t&&(t=Rhe[e]=new jY(e)),t):new jY(e)}function fi(e){var t;return z(e,78)?e:(t=e&&e.__java$exception,t||(t=new eHe(e),wTe(t)),t)}function JS(e){if(z(e,186))return c(e,118);if(e)return null;throw L(new R2(oet))}function aQe(e,t){if(t==null)return!1;for(;e.a!=e.b;)if(qn(t,JM(e)))return!0;return!1}function Wie(e){return e.a.Ob()?!0:e.a!=e.d?!1:(e.a=new Cne(e.e.f),e.a.Ob())}function _i(e,t){var n,i;return n=t.Pc(),i=n.length,i==0?!1:(ste(e.c,e.c.length,n),!0)}function JEt(e,t,n){var i,r;for(r=t.vc().Kc();r.Ob();)i=c(r.Pb(),42),e.yc(i.cd(),i.dd(),n);return e}function dQe(e,t){var n,i;for(i=new $(e.b);i.a<i.c.c.length;)n=c(I(i),70),oe(n,(fe(),Uv),t)}function eCt(e,t,n){var i,r;for(r=new $(e.b);r.a<r.c.c.length;)i=c(I(r),33),pf(i,i.i+t,i.j+n)}function gQe(e,t){if(!e)throw L(new kt(Kk("value already present: %s",_(B(It,1),Ce,1,5,[t]))))}function bQe(e,t){return!e||!t||e==t?!1:YHe(e.d.c,t.d.c+t.d.b)&&YHe(t.d.c,e.d.c+e.d.b)}function tCt(){return sM(),$f?new FB(null):mXe(TEt(),"com.google.common.base.Strings")}function pQe(e,t){var n;return n=Ah(t.a.gc()),Ci(xM(new ft(null,new dt(t,1)),e.i),new $je(e,n)),n}function wQe(e){var t,n;return n=(t=new qR,t),Po(n,"T"),rn((!e.d&&(e.d=new ac(Wo,e,11)),e.d),n),n}function Xie(e){var t,n,i,r;for(t=1,n=0,r=e.gc();n<r;++n)i=e.ki(n),t=31*t+(i==null?0:oi(i));return t}function mQe(e,t,n,i){var r;return TS(t,e.e.Hd().gc()),TS(n,e.c.Hd().gc()),r=e.a[t][n],bi(e.a[t],n,i),r}function _(e,t,n,i,r){return r.gm=e,r.hm=t,r.im=vt,r.__elementTypeId$=n,r.__elementTypeCategory$=i,r}function nCt(e,t,n,i,r){return bm(),b.Math.min(AVe(e,t,n,i,r),AVe(n,i,e,t,JT(new De(r.a,r.b))))}function XM(){XM=X,dW=new ST(xa,0),oI=new ST(RZe,1),cI=new ST(LZe,2),Lx=new ST("BOTH",3)}function Tf(){Tf=X,Qv=new xT(x4,0),U4=new xT(Mv,1),G4=new xT(jv,2),gW=new xT("TOP",3)}function Fy(){Fy=X,lb=new kT("Q1",0),Kp=new kT("Q4",1),zp=new kT("Q2",2),Nm=new kT("Q3",3)}function UM(){UM=X,CX=new qL("OFF",0),h5=new qL("SINGLE_EDGE",1),rw=new qL("MULTI_EDGE",2)}function e7(){e7=X,dN=new xJ("MINIMUM_SPANNING_TREE",0),Ube=new xJ("MAXIMUM_SPANNING_TREE",1)}function dv(){dv=X,sft=new E6e,rft=new x6e}function Uie(e){var t,n,i;for(t=new ai,i=xn(e.d,0);i.b!=i.d.c;)n=c(Sn(i),188),En(t,n.c);return t}function O_(e){var t,n,i,r;for(r=new de,i=e.Kc();i.Ob();)n=c(i.Pb(),33),t=Tp(n),_i(r,t);return r}function iCt(e){var t;Vg(e,!0),t=id,er(e,(ke(),u5))&&(t+=c(D(e,u5),19).a),oe(e,u5,we(t))}function vQe(e,t,n){var i;Cc(e.a),ec(n.i,new gCe(e)),i=new QT(c(Lt(e.a,t.b),65)),oze(e,i,t),n.f=i}function rCt(e,t){var n,i;return n=e.c,i=t.e[e.p],i<n.a.c.length-1?c(Ae(n.a,i+1),10):null}function sCt(e,t){var n,i;for(LA(t,"predicate"),i=0;e.Ob();i++)if(n=e.Pb(),t.Lb(n))return i;return-1}function gv(e,t){var n,i;if(i=0,e<64&&e<=t)for(t=t<64?t:63,n=e;n<=t;n++)i=kf(i,oa(1,n));return i}function Gie(e){it();var t,n,i;for(i=0,n=e.Kc();n.Ob();)t=n.Pb(),i=i+(t!=null?oi(t):0),i=i|0;return i}function Vie(e){var t,n;return n=(cg(),t=new jC,t),e&&rn((!e.a&&(e.a=new pe(di,e,6,6)),e.a),n),n}function oCt(e){var t;return t=new xe,t.a=e,t.b=dCt(e),t.c=Y(Ee,ue,2,2,6,1),t.c[0]=Nqe(e),t.c[1]=Nqe(e),t}function Yie(e,t){switch(t){case 0:!e.o&&(e.o=new tu((Io(),E1),Sb,e,0)),e.o.c.$b();return}qq(e,t)}function t7(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 yQe(e){switch(e.g){case 1:return y1;case 2:return Uh;case 3:return wE;default:return mE}}function cCt(e){switch(c(D(e,(ke(),zo)),163).g){case 2:case 4:return!0;default:return!1}}function OQe(){OQe=X,Vrt=mn((Zr(),_(B($W,1),he,256,0,[mI,Hu,K6,vI,n5,_m,W6,e5,t5,yI])))}function kQe(){kQe=X,Yft=mn((Hc(),_(B(cwe,1),he,259,0,[y5,xE,EN,M8,CN,AN,TN,xU,SE])))}function SQe(){SQe=X,Kut=Fn(Hg(Hg(dT(Fn(new Ji,(Jy(),l8),(_k(),ZI)),tE),jX),PX),f8,DX)}function f0(){f0=X,AW=new DL(xa,0),J4=new DL("INCOMING_ONLY",1),Bm=new DL("OUTGOING_ONLY",2)}function k_(){k_=X,jK={boolean:zvt,number:J2t,string:evt,object:RWe,function:RWe,undefined:I2t}}function xQe(e,t){oA(e>=0,"Negative initial capacity"),oA(t>=0,"Non-positive load factor"),Cc(this)}function S_(e,t,n){return e>=128?!1:e<64?NO(Xi(oa(1,e),n),0):NO(Xi(oa(1,e-64),t),0)}function uCt(e,t){return!e||!t||e==t?!1:_g(e.b.c,t.b.c+t.b.b)<0&&_g(t.b.c,e.b.c+e.b.b)<0}function EQe(e){var t,n,i;return n=e.n,i=e.o,t=e.d,new Pu(n.a-t.b,n.b-t.d,i.a+(t.b+t.c),i.b+(t.d+t.a))}function lCt(e){var t,n,i,r;for(n=e.a,i=0,r=n.length;i<r;++i)t=n[i],PQe(e,t,(me(),Wt)),PQe(e,t,Ot)}function fCt(e){var t,n,i,r;for(t=(e.j==null&&(e.j=(gy(),r=MK.ce(e),kPt(r))),e.j),n=0,i=t.length;n<i;++n);}function By(e){var t,n,i;return t=~e.l+1&zc,n=~e.m+(t==0?1:0)&zc,i=~e.h+(t==0&&n==0?1:0)&Sa,Bo(t,n,i)}function hCt(e,t){var n,i;return n=c(c(Lt(e.g,t.a),46).a,65),i=c(c(Lt(e.g,t.b),46).a,65),LGe(n,i)}function Zie(e,t,n){var i;if(i=e.gc(),t>i)throw L(new Zb(t,i));return e.hi()&&(n=QRe(e,n)),e.Vh(t,n)}function n7(e,t,n){return n==null?(!e.q&&(e.q=new Zt),uv(e.q,t)):(!e.q&&(e.q=new Zt),Qn(e.q,t,n)),e}function oe(e,t,n){return n==null?(!e.q&&(e.q=new Zt),uv(e.q,t)):(!e.q&&(e.q=new Zt),Qn(e.q,t,n)),e}function CQe(e){var t,n;return n=new oM,vs(n,e),oe(n,(Wd(),qv),e),t=new Zt,d_t(e,n,t),BQt(e,n,t),n}function aCt(e){bm();var t,n,i;for(n=Y(tr,ue,8,2,0,1),i=0,t=0;t<2;t++)i+=.5,n[t]=XMt(i,e);return n}function TQe(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|jAt(e,t,o,r);return n}function _y(e,t,n,i,r){var o,h;for(h=n;h<=r;h++)for(o=t;o<=i;o++)sm(e,o,h)||Vj(e,o,h,!0,!1)}function AQe(e,t){this.b=e,Lw.call(this,(c(W(ie((qd(),bt).o),10),18),t.i),t.g),this.a=(m_(),IU)}function Jie(e,t){this.c=e,this.d=t,this.b=this.d/this.c.c.Hd().gc()|0,this.a=this.d%this.c.c.Hd().gc()}function ere(){this.o=null,this.k=null,this.j=null,this.d=null,this.b=null,this.n=null,this.a=null}function tre(e,t,n){this.q=new b.Date,this.q.setFullYear(e+r1,t,n),this.q.setHours(0,0,0,0),Uk(this,0)}function ba(){ba=X,p1=new RL(xa,0),dge=new RL("NODES_AND_EDGES",1),vX=new RL("PREFER_EDGES",2)}function dCt(e){var t;return e==0?"Etc/GMT":(e<0?(e=-e,t="Etc/GMT-"):t="Etc/GMT+",t+p_e(e))}function nre(e){var t;if(e<0)return Tr;if(e==0)return 0;for(t=n6;(t&e)==0;t>>=1);return t}function MQe(e){var t,n;return n=j7(e.h),n==32?(t=j7(e.m),t==32?j7(e.l)+32:t+20-10):n-12}function kk(e){var t;return t=e.a[e.b],t==null?null:(bi(e.a,e.b,null),e.b=e.b+1&e.a.length-1,t)}function jQe(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 GM(e,t,n){var i,r;return i=new XB(t,n),r=new Lc,e.b=OUe(e,e.b,i,r),r.b||++e.c,e.b.b=!1,r.d}function PQe(e,t,n){var i,r,o,h;for(h=Ek(t,n),o=0,r=h.Kc();r.Ob();)i=c(r.Pb(),11),Qn(e.c,i,we(o++))}function Ud(e){var t,n;for(n=new $(e.a.b);n.a<n.c.c.length;)t=c(I(n),81),t.g.c=-t.g.c-t.g.b;Hj(e)}function Gd(e){var t,n;for(n=new $(e.a.b);n.a<n.c.c.length;)t=c(I(n),57),t.d.c=-t.d.c-t.d.b;sce(e)}function ire(e){var t;return(!e.c||(e.Bb&1)==0&&(e.c.Db&64)!=0)&&(t=Zu(e),z(t,88)&&(e.c=c(t,26))),e.c}function x_(e){var t,n,i;t=~e.l+1&zc,n=~e.m+(t==0?1:0)&zc,i=~e.h+(t==0&&n==0?1:0)&Sa,e.l=t,e.m=n,e.h=i}function Ls(e){var t,n,i,r,o;for(t=new Er,i=e,r=0,o=i.length;r<o;++r)n=i[r],t.a+=n.a,t.b+=n.b;return t}function rre(e,t){it();var n,i,r,o,h;for(h=!1,i=t,r=0,o=i.length;r<o;++r)n=i[r],h=h|e.Fc(n);return h}function Zw(e){bm();var t,n;for(n=-17976931348623157e292,t=0;t<e.length;t++)e[t]>n&&(n=e[t]);return n}function DQe(e,t,n){var i;return i=new de,lce(e,t,i,(me(),Tt),!0,!1),lce(e,n,i,xt,!1,!1),i}function E_(e,t,n){var i,r,o,h;return o=null,h=t,r=Mg(h,"labels"),i=new Zje(e,n),o=(P$t(i.a,i.b,r),r),o}function gCt(e,t,n,i){var r;return r=Voe(e,t,n,i),!r&&(r=bTt(e,n,i),r&&!mm(e,t,r))?null:r}function bCt(e,t,n,i){var r;return r=Yoe(e,t,n,i),!r&&(r=Q_(e,n,i),r&&!mm(e,t,r))?null:r}function IQe(e,t){var n;for(n=0;n<e.a.a.length;n++)if(!c(MNe(e.a,n),169).Lb(t))return!1;return!0}function pCt(e,t,n){if(tn(t),n.Ob())for(MJ(t,O$e(n.Pb()));n.Ob();)MJ(t,e.a),MJ(t,O$e(n.Pb()));return t}function sre(e){it();var t,n,i;for(i=1,n=e.Kc();n.Ob();)t=n.Pb(),i=31*i+(t!=null?oi(t):0),i=i|0;return i}function wCt(e,t,n,i,r){var o;return o=Hoe(e,t),n&&x_(o),r&&(e=JMt(e,t),i?l1=By(e):l1=Bo(e.l,e.m,e.h)),o}function mCt(e,t){var n;try{t.Vd()}catch(i){if(i=fi(i),z(i,78))n=i,e.c[e.c.length]=n;else throw L(i)}}function NQe(e,t,n){var i,r;return z(t,144)&&n?(i=c(t,144),r=n,e.a[i.b][r.b]+e.a[r.b][i.b]):0}function ore(e,t){switch(t){case 7:return!!e.e&&e.e.i!=0;case 8:return!!e.d&&e.d.i!=0}return zre(e,t)}function vCt(e,t){switch(t.g){case 0:z(e.b,631)||(e.b=new rQe);break;case 1:z(e.b,632)||(e.b=new sNe)}}function yCt(e,t){for(;e.g==null&&!e.c?gne(e):e.g==null||e.i!=0&&c(e.g[e.i-1],47).Ob();)f3t(t,_j(e))}function $Qe(e,t,n){e.g=Qq(e,t,(me(),Tt),e.b),e.d=Qq(e,n,Tt,e.b),!(e.g.c==0||e.d.c==0)&&eWe(e)}function RQe(e,t,n){e.g=Qq(e,t,(me(),xt),e.j),e.d=Qq(e,n,xt,e.j),!(e.g.c==0||e.d.c==0)&&eWe(e)}function OCt(e,t,n){return!dO(ni(new ft(null,new dt(e.c,16)),new eO(new Lje(t,n)))).sd((X1(),H4))}function C_(e){var t;return Qd(e),t=new xw,e.a.sd(t)?(J3(),new UC(yt(t.a))):(J3(),J3(),TD)}function cre(e){var t;return e.b<=0?!1:(t=Vf("MLydhHmsSDkK",rc(Or(e.c,0))),t>1||t>=0&&e.b<3)}function i7(e){var t,n,i;for(t=new hc,i=xn(e,0);i.b!=i.d.c;)n=c(Sn(i),8),ty(t,0,new ls(n));return t}function h0(e){var t,n;for(n=new $(e.a.b);n.a<n.c.c.length;)t=c(I(n),81),t.f.$b();G2t(e.b,e),uUe(e)}function oi(e){return ur(e)?ed(e):Xb(e)?Y3(e):Wb(e)?(yt(e),e?1231:1237):Mte(e)?e.Hb():xte(e)?gg(e):une(e)}function _c(e){return ur(e)?Ee:Xb(e)?pr:Wb(e)?Gi:Mte(e)||xte(e)?e.gm:e.gm||Array.isArray(e)&&B(Wtt,1)||Wtt}function LQe(e){switch(e.g){case 0:return new S6e;default:throw L(new kt(GP+(e.f!=null?e.f:""+e.g)))}}function FQe(e){switch(e.g){case 0:return new k6e;default:throw L(new kt(GP+(e.f!=null?e.f:""+e.g)))}}function ure(e,t,n){switch(t){case 0:!e.o&&(e.o=new tu((Io(),E1),Sb,e,0)),zM(e.o,n);return}Wq(e,t,n)}function T_(e,t,n){this.g=e,this.e=new Er,this.f=new Er,this.d=new ai,this.b=new ai,this.a=t,this.c=n}function A_(e,t,n,i){this.b=new de,this.n=new de,this.i=i,this.j=n,this.s=e,this.t=t,this.r=0,this.d=0}function a0(e){this.e=e,this.d=new Rne(this.e.g),this.a=this.d,this.b=Wie(this),this.$modCount=e.$modCount}function kCt(e){for(;!e.d||!e.d.Ob();)if(e.b&&!uO(e.b))e.d=c(Z2(e.b),47);else return null;return e.d}function SCt(e){return ae(e.c,(dv(),sft)),mie(e.a,re(ve(Te((Z_(),qI)))))?new n8e:new yCe(e)}function lre(e){switch(e.g){case 1:return nJe;default:case 2:return 0;case 3:return LH;case 4:return iJe}}function xCt(){Rn();var e;return BU||(e=Iyt(n1("M",!0)),e=wA(n1("M",!1),e),BU=e,BU)}function fre(e,t){var n,i,r;for(r=e.b;r;){if(n=e.a.ue(t,r.d),n==0)return r;i=n<0?0:1,r=r.a[i]}return null}function ECt(e,t,n){var i,r;i=(St(),!!PJ(n)),r=c(t.xc(i),15),r||(r=new de,t.zc(i,r)),r.Fc(n)}function CCt(e,t){var n,i;return n=c(Ie(e,(tQ(),rE)),19).a,i=c(Ie(t,rE),19).a,n==i||n<i?-1:n>i?1:0}function hre(e,t){return iUe(e,t)?(Ye(e.b,c(D(t,(fe(),Xp)),21),t),En(e.a,t),!0):!1}function TCt(e){var t,n;t=c(D(e,(fe(),Mc)),10),t&&(n=t.c,Zo(n.a,t),n.a.c.length==0&&Zo(Ir(t).b,n))}function BQe(e){return $f?Y(hnt,qYe,572,0,0,1):c(Mf(e.a,Y(hnt,qYe,572,e.a.c.length,0,1)),842)}function ACt(e,t,n,i){return PA(),new cL(_(B(P0,1),aP,42,0,[(mq(e,t),new lg(e,t)),(mq(n,i),new lg(n,i))]))}function Jw(e,t,n){var i,r;return r=(i=new nL,i),ss(r,t,n),rn((!e.q&&(e.q=new pe(gl,e,11,10)),e.q),r),r}function M_(e){var t,n,i,r;for(r=e3t(hht,e),n=r.length,i=Y(Ee,ue,2,n,6,1),t=0;t<n;++t)i[t]=r[t];return i}function em(e,t){var n,i,r,o,h;for(i=t,r=0,o=i.length;r<o;++r)n=i[r],h=new T$e(e),n.Qe(h),D_t(h);Cc(e.f)}function j_(e,t){var n;return t===e?!0:z(t,224)?(n=c(t,224),qn(e.Zb(),n.Zb())):!1}function are(e,t){var n;t*2+1>=e.b.c.length||(are(e,2*t+1),n=2*t+2,n<e.b.c.length&&are(e,n),BWe(e,t))}function _Qe(e,t,n){var i,r;this.g=e,this.c=t,this.a=this,this.d=this,r=kqe(n),i=Y(Ktt,G7,330,r,0,1),this.b=i}function dre(e,t,n){var i;for(i=n-1;i>=0&&e[i]===t[i];i--);return i<0?0:kL(Xi(e[i],Jr),Xi(t[i],Jr))?-1:1}function MCt(e,t){var n,i;for(i=xn(e,0);i.b!=i.d.c;)n=c(Sn(i),214),n.e.length>0&&(t.td(n),n.i&&STt(n))}function P_(e,t){var n,i;return i=c(mt(e.a,4),126),n=Y(PU,oK,415,t,0,1),i!=null&&bo(i,0,n,0,i.length),n}function qQe(e,t){var n;return n=new uQ((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 jCt(e,t){var n,i;for(i=e.Zb().Cc().Kc();i.Ob();)if(n=c(i.Pb(),14),n.Hc(t))return!0;return!1}function D_(e,t,n,i,r){var o,h;for(h=n;h<=r;h++)for(o=t;o<=i;o++)if(sm(e,o,h))return!0;return!1}function QQe(e,t,n){var i,r,o,h;for(yt(n),h=!1,o=e.Zc(t),r=n.Kc();r.Ob();)i=r.Pb(),o.Rb(i),h=!0;return h}function PCt(e,t){var n;return e===t?!0:z(t,83)?(n=c(t,83),goe(mg(e),n.vc())):!1}function HQe(e,t,n){var i,r;for(r=n.Kc();r.Ob();)if(i=c(r.Pb(),42),e.re(t,i.dd()))return!0;return!1}function zQe(e,t,n){return e.d[t.p][n.p]||(TMt(e,t,n),e.d[t.p][n.p]=!0,e.d[n.p][t.p]=!0),e.a[t.p][n.p]}function qy(e,t){if(!e.ai()&&t==null)throw L(new kt("The 'no null' constraint is violated"));return t}function Qy(e,t){e.D==null&&e.B!=null&&(e.D=e.B,e.B=null),f_(e,t==null?null:(yt(t),t)),e.C&&e.yk(null)}function DCt(e,t){var n;return!e||e==t||!er(t,(fe(),gb))?!1:(n=c(D(t,(fe(),gb)),10),n!=e)}function I_(e){switch(e.i){case 2:return!0;case 1:return!1;case-1:++e.c;default:return e.pl()}}function KQe(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e.ql()}}function WQe(e){$Re.call(this,"The given string does not match the expected format for individual spacings.",e)}function nu(){nu=X,Eu=new DT("ELK",0),dwe=new DT("JSON",1),awe=new DT("DOT",2),gwe=new DT("SVG",3)}function r7(){r7=X,sN=new zL(xa,0),Xge=new zL("RADIAL_COMPACTION",1),Uge=new zL("WEDGE_COMPACTION",2)}function Af(){Af=X,uae=new SL("CONCURRENT",0),yu=new SL("IDENTITY_FINISH",1),Qp=new SL("UNORDERED",2)}function N_(){N_=X,Lae=(uT(),KK),Rae=new ot(Due,Lae),lit=new ci(Iue),fit=new ci(Nue),hit=new ci($ue)}function Hy(){Hy=X,Vde=new Z4e,Yde=new J4e,Srt=new e5e,krt=new t5e,Ort=new n5e,Gde=(yt(Ort),new Ln)}function zy(){zy=X,xX=new BL("CONSERVATIVE",0),yge=new BL("CONSERVATIVE_SOFT",1),s8=new BL("SLOPPY",2)}function VM(){VM=X,twe=new dg(15),Lft=new Wr((Pn(),H0),twe),k8=i3,Ype=yft,Zpe=Q0,ewe=t2,Jpe=vN}function $_(e,t,n){var i,r,o;for(i=new ai,o=xn(n,0);o.b!=o.d.c;)r=c(Sn(o),8),En(i,new ls(r));QQe(e,t,i)}function ICt(e){var t,n,i;for(t=0,i=Y(tr,ue,8,e.b,0,1),n=xn(e,0);n.b!=n.d.c;)i[t++]=c(Sn(n),8);return i}function gre(e){var t;return t=(!e.a&&(e.a=new pe(Pa,e,9,5)),e.a),t.i!=0?Yvt(c(W(t,0),678)):null}function NCt(e,t){var n;return n=Pr(e,t),kL(TB(e,t),0)|d3t(TB(e,n),0)?n:Pr(hP,TB(ep(n,63),1))}function $Ct(e,t){var n;n=Te((Z_(),qI))!=null&&t.wg()!=null?re(ve(t.wg()))/re(ve(Te(qI))):1,Qn(e.b,t,n)}function RCt(e,t){var n,i;return n=c(e.d.Bc(t),14),n?(i=e.e.hc(),i.Gc(n),e.e.d-=n.gc(),n.$b(),i):null}function bre(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 XQe(e){var t;if(t=e.a.c.length,t>0)return oy(t-1,e.a.c.length),Ka(e.a,t-1);throw L(new vTe)}function LCt(e,t,n){if(t<0)throw L(new us(pJe+t));t<e.j.c.length?Iu(e.j,t,n):(nFe(e,t),ae(e.j,n))}function UQe(e,t,n){if(e>t)throw L(new kt(pP+e+QYe+t));if(e<0||t>n)throw L(new MZ(pP+e+vue+t+wue+n))}function GQe(e){if(!e.a||(e.a.i&8)==0)throw L(new Es("Enumeration class expected for layout option "+e.f))}function gp(e){var t;++e.j,e.i==0?e.g=null:e.i<e.g.length&&(t=e.g,e.g=e.ri(e.i),bo(t,0,e.g,0,e.i))}function FCt(e,t){var n,i;for(n=e.a.length-1,e.c=e.c-1&n;t!=e.c;)i=t+1&n,bi(e.a,t,e.a[i]),t=i;bi(e.a,e.c,null)}function BCt(e,t){var n,i;for(n=e.a.length-1;t!=e.b;)i=t-1&n,bi(e.a,t,e.a[i]),t=i;bi(e.a,e.b,null),e.b=e.b+1&n}function pre(e,t,n){var i,r;return sp(t,e.c.length),i=n.Pc(),r=i.length,r==0?!1:(ste(e.c,t,i),!0)}function _Ct(e){var t,n;if(e==null)return null;for(t=0,n=e.length;t<n;t++)if(!hNe(e[t]))return e[t];return null}function VQe(e,t,n){var i,r,o,h;for(r=n,o=0,h=r.length;o<h;++o)if(i=r[o],e.b.re(t,i.cd()))return i;return null}function YM(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?oi(t):0),o=o|0;return o}function mn(e){var t,n,i,r,o;for(t={},i=e,r=0,o=i.length;r<o;++r)n=i[r],t[":"+(n.f!=null?n.f:""+n.g)]=n;return t}function qCt(e){var t;for(tn(e),Wee(!0,"numberToAdvance must be nonnegative"),t=0;t<0&&an(e);t++)nn(e);return t}function YQe(e){var t,n,i;for(i=0,n=new Bt(qt(e.a.Kc(),new Q));an(n);)t=c(nn(n),17),t.c.i==t.d.i||++i;return i}function ZQe(e,t){var n,i,r;n=e,r=0;do{if(n==t)return r;if(i=n.e,!i)throw L(new M9);n=Ir(i),++r}while(!0)}function JQe(e,t){var n,i,r;for(r=t-e.f,i=new $(e.d);i.a<i.c.c.length;)n=c(I(i),443),KHe(n,n.e,n.f+r);e.f=t}function R_(e,t,n){return b.Math.abs(t-e)<KP||b.Math.abs(n-e)<KP?!0:t-e>KP?e-n>KP:n-e>KP}function L_(e,t){return!e||t&&!e.j||z(e,124)&&c(e,124).a.b==0?0:e.Re()}function ZM(e,t){return!e||t&&!e.k||z(e,124)&&c(e,124).a.a==0?0:e.Se()}function s7(e){return t1(),e<0?e!=-1?new fse(-1,-e):IK:e<=10?Vhe[Di(e)]:new fse(1,e)}function wre(e){throw k_(),L(new aAe("Unexpected typeof result '"+e+"'; please report this bug to the GWT team"))}function eHe(e){mAe(),HT(this),RA(this),this.e=e,dUe(this,e),this.g=e==null?sc:Ms(e),this.a="",this.b=e,this.a=""}function mre(){this.a=new v6e,this.f=new cCe(this),this.b=new uCe(this),this.i=new lCe(this),this.e=new fCe(this)}function tHe(){W2t.call(this,new tie(fp(16))),du(2,SYe),this.b=2,this.a=new ene(null,null,0,null),A9(this.a,this.a)}function Sk(){Sk=X,gX=new $L("DUMMY_NODE_OVER",0),rge=new $L("DUMMY_NODE_UNDER",1),HI=new $L("EQUAL",2)}function F_(){F_=X,iW=LRe(_(B(O8,1),he,103,0,[(Yr(),ul),Bl])),rW=LRe(_(B(O8,1),he,103,0,[Aa,Ta]))}function B_(e){return(me(),cc).Hc(e.j)?re(ve(D(e,(fe(),r5)))):Ls(_(B(tr,1),ue,8,0,[e.i.n,e.n,e.a])).b}function QCt(e){var t,n,i,r;for(i=e.b.a,n=i.a.ec().Kc();n.Ob();)t=c(n.Pb(),561),r=new XXe(t,e.e,e.f),ae(e.g,r)}function d0(e,t){var n,i,r;i=e.nk(t,null),r=null,t&&(r=(z3(),n=new tg,n),Ey(r,e.r)),i=jf(e,r,i),i&&i.Fi()}function HCt(e,t){var n,i;for(i=Qc(e.d,1)!=0,n=!0;n;)n=!1,n=t.c.Tf(t.e,i),n=n|$7(e,t,i,!1),i=!i;Rie(e)}function vre(e,t){var n,i,r;return i=!1,n=t.q.d,t.d<e.b&&(r=rUe(t.q,e.b),t.q.d>r&&(TKe(t.q,r),i=n!=t.q.d)),i}function nHe(e,t){var n,i,r,o,h,d,p,m;return p=t.i,m=t.j,i=e.f,r=i.i,o=i.j,h=p-r,d=m-o,n=b.Math.sqrt(h*h+d*d),n}function yre(e,t){var n,i;return i=aj(e),i||(n=(PQ(),AWe(t)),i=new fTe(n),rn(i.Vk(),e)),i}function o7(e,t){var n,i;return n=c(e.c.Bc(t),14),n?(i=e.hc(),i.Gc(n),e.d-=n.gc(),n.$b(),e.mc(i)):e.jc()}function iHe(e,t){var n;for(n=0;n<t.length;n++)if(e==(fn(n,t.length),t.charCodeAt(n)))return!0;return!1}function rHe(e,t){var n;for(n=0;n<t.length;n++)if(e==(fn(n,t.length),t.charCodeAt(n)))return!0;return!1}function zCt(e){var t,n;if(e==null)return!1;for(t=0,n=e.length;t<n;t++)if(!hNe(e[t]))return!1;return!0}function sHe(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 JM(e){var t;return $t(e.a!=e.b),t=e.d.a[e.a],$De(e.b==e.d.c&&t!=null),e.c=e.a,e.a=e.a+1&e.d.a.length-1,t}function KCt(e){var t;if(!(e.c.c<0?e.a>=e.c.b:e.a<=e.c.b))throw L(new Zs);return t=e.a,e.a+=e.c.c,++e.b,we(t)}function WCt(e){var t;return t=new R_e(e),CS(e.a,ort,new Gc(_(B(Nx,1),Ce,369,0,[t]))),t.d&&ae(t.f,t.d),t.f}function __(e){var t;return t=new qJ(e.a),vs(t,e),oe(t,(fe(),Hn),e),t.o.a=e.g,t.o.b=e.f,t.n.a=e.i,t.n.b=e.j,t}function XCt(e,t,n,i){var r,o;for(o=e.Kc();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 UCt(e,t,n){var i,r;for(r=t.a.a.ec().Kc();r.Ob();)if(i=c(r.Pb(),57),pRe(e,i,n))return!0;return!1}function GCt(e){var t,n;for(n=new $(e.r);n.a<n.c.c.length;)if(t=c(I(n),10),e.n[t.p]<=0)return t;return null}function oHe(e){var t,n,i,r;for(r=new Zi,i=new $(e);i.a<i.c.c.length;)n=c(I(i),33),t=rFt(n),Br(r,t);return r}function VCt(e){var t;return t=FT(Bct),c(D(e,(fe(),Co)),21).Hc((Zr(),n5))&&Fn(t,(_r(),Ho),(Ur(),tI)),t}function YCt(e,t,n){var i;i=new hXe(e,t),Ye(e.r,t.Hf(),i),n&&!ZO(e.u)&&(i.c=new DRe(e.d),ec(t.wf(),new Ixe(i)))}function oo(e,t){var n;return Cs(e)&&Cs(t)&&(n=e-t,!isNaN(n))?n:Nse(Cs(e)?Yu(e):e,Cs(t)?Yu(t):t)}function ZCt(e,t){return t<e.length&&(fn(t,e.length),e.charCodeAt(t)!=63)&&(fn(t,e.length),e.charCodeAt(t)!=35)}function cHe(e,t,n,i){var r,o;e.a=t,o=i?0:1,e.f=(r=new fWe(e.c,e.a,n,o),new qUe(n,e.a,r,e.e,e.b,e.c==($g(),o8)))}function Ore(e,t,n){var i,r;return r=e.a,e.a=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new rr(e,1,1,r,t),n?n.Ei(i):n=i),n}function uHe(e,t,n){var i,r;return r=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new rr(e,1,3,r,t),n?n.Ei(i):n=i),n}function lHe(e,t,n){var i,r;return r=e.f,e.f=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new rr(e,1,0,r,t),n?n.Ei(i):n=i),n}function Vd(e,t){var n,i,r,o;return o=(r=e?aj(e):null,NWe((i=t,r&&r.Xk(),i))),o==t&&(n=aj(e),n&&n.Xk()),o}function kre(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 JCt(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 fHe(e){var t,n;if(e!=null)for(n=0;n<e.length;++n)t=e[n],t&&(c(t.g,367),t.i)}function eTt(e){var t,n,i;for(i=0,n=new $(e.a);n.a<n.c.c.length;)t=c(I(n),187),i=b.Math.max(i,t.g);return i}function tTt(e){var t,n,i;for(i=new $(e.b);i.a<i.c.c.length;)n=c(I(i),214),t=n.c.Rf()?n.f:n.a,t&&yqt(t,n.j)}function pa(){pa=X,SN=new GL("INHERIT",0),bd=new GL("INCLUDE_CHILDREN",1),S8=new GL("SEPARATE_CHILDREN",2)}function Sre(e,t){switch(t){case 1:!e.n&&(e.n=new pe(Ps,e,1,7)),Ut(e.n);return;case 2:pk(e,null);return}Yie(e,t)}function ej(e){var t;switch(e.gc()){case 0:return xK;case 1:return new NF(tn(e.Xb(0)));default:return t=e,new gB(t)}}function hHe(e){switch(Jf(),e.gc()){case 0:return iB(),Che;case 1:return new L2(e.Kc().Pb());default:return new ZZ(e)}}function Ga(e){switch(Jf(),e.c){case 0:return iB(),Che;case 1:return new L2(HWe(new B2(e)));default:return new fAe(e)}}function bp(e,t){tn(e);try{return e.xc(t)}catch(n){if(n=fi(n),z(n,205)||z(n,173))return null;throw L(n)}}function nTt(e,t){tn(e);try{return e.Bc(t)}catch(n){if(n=fi(n),z(n,205)||z(n,173))return null;throw L(n)}}function xre(e,t){tn(e);try{return e.Hc(t)}catch(n){if(n=fi(n),z(n,205)||z(n,173))return!1;throw L(n)}}function iTt(e,t){tn(e);try{return e.Mc(t)}catch(n){if(n=fi(n),z(n,205)||z(n,173))return!1;throw L(n)}}function aHe(e,t){tn(e);try{return e._b(t)}catch(n){if(n=fi(n),z(n,205)||z(n,173))return!1;throw L(n)}}function dHe(e,t){var n;e.a.c.length>0&&(n=c(Ae(e.a,e.a.c.length-1),570),hre(n,t))||ae(e.a,new HFe(t))}function rTt(e){Tl();var t,n;t=e.d.c-e.e.c,n=c(e.g,145),ec(n.b,new pEe(t)),ec(n.c,new wEe(t)),kr(n.i,new mEe(t))}function gHe(e){var t;return t=new Md,t.a+="VerticalSegment ",Js(t,e.e),t.a+=" ",pn(t,YJ(new bL,new $(e.k))),t.a}function sTt(e){var t;return t=c(jg(e.c.c,""),229),t||(t=new iv(H3(Q3(new j2,""),"Other")),p0(e.c.c,"",t)),t}function xk(e){var t;return(e.Db&64)!=0?Il(e):(t=new Uu(Il(e)),t.a+=" (name: ",is(t,e.zb),t.a+=")",t.a)}function Ere(e,t,n){var i,r;return r=e.sb,e.sb=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new rr(e,1,4,r,t),n?n.Ei(i):n=i),n}function q_(e,t){var n,i,r;for(n=0,r=Fs(e,t).Kc();r.Ob();)i=c(r.Pb(),11),n+=D(i,(fe(),Mc))!=null?1:0;return n}function tm(e,t,n){var i,r,o;for(i=0,o=xn(e,0);o.b!=o.d.c&&(r=re(ve(Sn(o))),!(r>n));)r>=t&&++i;return i}function oTt(e,t,n){var i,r;return i=new aa(e.e,3,13,null,(r=t.c,r||(tt(),Qf)),Ja(e,t),!1),n?n.Ei(i):n=i,n}function cTt(e,t,n){var i,r;return i=new aa(e.e,4,13,(r=t.c,r||(tt(),Qf)),null,Ja(e,t),!1),n?n.Ei(i):n=i,n}function Cre(e,t,n){var i,r;return r=e.r,e.r=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new rr(e,1,8,r,e.r),n?n.Ei(i):n=i),n}function Va(e,t){var n,i;return n=c(t,676),i=n.vk(),!i&&n.wk(i=z(t,88)?new fPe(e,c(t,26)):new PLe(e,c(t,148))),i}function c7(e,t,n){var i;e.qi(e.i+1),i=e.oi(t,n),t!=e.i&&bo(e.g,t,e.g,t+1,e.i-t),bi(e.g,t,i),++e.i,e.bi(t,n),e.ci()}function uTt(e,t){var n;return t.a&&(n=t.a.a.length,e.a?pn(e.a,e.b):e.a=new cu(e.d),ILe(e.a,t.a,t.d.length,n)),e}function lTt(e,t){var n,i,r,o;if(t.vi(e.a),o=c(mt(e.a,8),1936),o!=null)for(n=o,i=0,r=n.length;i<r;++i)null.jm()}function u7(e,t){var n;return n=new xw,e.a.sd(n)?(J3(),new UC(yt(f_e(e,n.a,t)))):(Qd(e),J3(),J3(),TD)}function Ek(e,t){switch(t.g){case 2:case 1:return Fs(e,t);case 3:case 4:return c0(Fs(e,t))}return it(),it(),Gr}function qn(e,t){return ur(e)?Je(e,t):Xb(e)?MIe(e,t):Wb(e)?(yt(e),ne(e)===ne(t)):Mte(e)?e.Fb(t):xte(e)?jPe(e,t):One(e,t)}function fTt(e){return e?(e.i&1)!=0?e==Uc?Gi:e==Vt?Rr:e==pw?_4:e==hr?pr:e==P1?cb:e==c2?ub:e==kc?Bv:N6:e:null}function hTt(e,t,n,i,r){t==0||i==0||(t==1?r[i]=dse(r,n,i,e[0]):i==1?r[t]=dse(r,e,t,n[0]):d$t(e,n,r,t,i))}function bHe(e,t){var n;e.c.length!=0&&(n=c(Mf(e,Y(Wh,rd,10,e.c.length,0,1)),193),IJ(n,new o4e),nXe(n,t))}function pHe(e,t){var n;e.c.length!=0&&(n=c(Mf(e,Y(Wh,rd,10,e.c.length,0,1)),193),IJ(n,new c4e),nXe(n,t))}function Tre(e,t,n,i){switch(t){case 1:return!e.n&&(e.n=new pe(Ps,e,1,7)),e.n;case 2:return e.k}return Sse(e,t,n,i)}function Yr(){Yr=X,Xh=new G9(c6,0),Bl=new G9(jv,1),ul=new G9(Mv,2),Ta=new G9(TH,3),Aa=new G9("UP",4)}function Fg(){Fg=X,$m=new AL(xa,0),sde=new AL("INSIDE_PORT_SIDE_GROUPS",1),oW=new AL("FORCE_MODEL_ORDER",2)}function wHe(e,t,n){if(e<0||t>n)throw L(new us(pP+e+vue+t+", size: "+n));if(e>t)throw L(new kt(pP+e+QYe+t))}function Lu(e,t,n){if(t<0)Moe(e,n);else{if(!n.Ij())throw L(new kt(u1+n.ne()+O6));c(n,66).Nj().Vj(e,e.yh(),t)}}function aTt(e,t,n,i,r,o,h,d){var p;for(p=n;o<h;)p>=i||t<n&&d.ue(e[t],e[p])<=0?bi(r,o++,e[t++]):bi(r,o++,e[p++])}function mHe(e,t,n,i,r,o){this.e=new de,this.f=(Vr(),r8),ae(this.e,e),this.d=t,this.a=n,this.b=i,this.f=r,this.c=o}function vHe(e,t){var n,i;for(i=new Ft(e);i.e!=i.i.gc();)if(n=c(Qt(i),26),ne(t)===ne(n))return!0;return!1}function dTt(e){lP();var t,n,i,r;for(n=oq(),i=0,r=n.length;i<r;++i)if(t=n[i],Ts(t.a,e,0)!=-1)return t;return QK}function yHe(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function OHe(e){var t;return(e.Db&64)!=0?Il(e):(t=new Uu(Il(e)),t.a+=" (source: ",is(t,e.d),t.a+=")",t.a)}function gTt(e,t,n){var i,r;return r=e.a,e.a=t,(e.Db&4)!=0&&(e.Db&1)==0&&(i=new rr(e,1,5,r,e.a),n?Gse(n,i):n=i),n}function Ya(e,t){var n;n=(e.Bb&256)!=0,t?e.Bb|=256:e.Bb&=-257,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new jl(e,1,2,n,t))}function Are(e,t){var n;n=(e.Bb&256)!=0,t?e.Bb|=256:e.Bb&=-257,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new jl(e,1,8,n,t))}function tj(e,t){var n;n=(e.Bb&256)!=0,t?e.Bb|=256:e.Bb&=-257,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new jl(e,1,8,n,t))}function Za(e,t){var n;n=(e.Bb&512)!=0,t?e.Bb|=512:e.Bb&=-513,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new jl(e,1,3,n,t))}function Mre(e,t){var n;n=(e.Bb&512)!=0,t?e.Bb|=512:e.Bb&=-513,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new jl(e,1,9,n,t))}function Ck(e,t){var n;return e.b==-1&&e.a&&(n=e.a.Gj(),e.b=n?e.c.Xg(e.a.aj(),n):ui(e.c.Tg(),e.a)),e.c.Og(e.b,t)}function we(e){var t,n;return e>-129&&e<128?(t=e+128,n=(vNe(),Lhe)[t],!n&&(n=Lhe[t]=new PY(e)),n):new PY(e)}function Ky(e){var t,n;return e>-129&&e<128?(t=e+128,n=(ENe(),qhe)[t],!n&&(n=qhe[t]=new IY(e)),n):new IY(e)}function jre(e){var t,n;return t=e.k,t==(jt(),Ri)?(n=c(D(e,(fe(),Gs)),61),n==(me(),Ot)||n==Wt):!1}function bTt(e,t,n){var i,r,o;return o=(r=u4(e.b,t),r),o&&(i=c(iP(BS(e,o),""),26),i)?Voe(e,i,t,n):null}function Q_(e,t,n){var i,r,o;return o=(r=u4(e.b,t),r),o&&(i=c(iP(BS(e,o),""),26),i)?Yoe(e,i,t,n):null}function kHe(e,t){var n,i;for(i=new Ft(e);i.e!=i.i.gc();)if(n=c(Qt(i),138),ne(t)===ne(n))return!0;return!1}function Tk(e,t,n){var i;if(i=e.gc(),t>i)throw L(new Zb(t,i));if(e.hi()&&e.Hc(n))throw L(new kt(px));e.Xh(t,n)}function pTt(e,t){var n;if(n=Gw(e.i,t),n==null)throw L(new Uf("Node did not exist in input."));return qie(t,n),null}function wTt(e,t){var n;if(n=N7(e,t),z(n,322))return c(n,34);throw L(new kt(u1+t+"' is not a valid attribute"))}function mTt(e,t,n){var i,r;for(r=z(t,99)&&(c(t,18).Bb&Qr)!=0?new JL(t,e):new Ry(t,e),i=0;i<n;++i)yj(r);return r}function vTt(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 yTt(e){var t,n,i;for(t=new de,i=new $(e.b);i.a<i.c.c.length;)n=c(I(i),594),_i(t,c(n.jf(),14));return t}function OTt(e){var t,n,i;for(t=c(D(e,(eo(),Pge)),15),i=t.Kc();i.Ob();)n=c(i.Pb(),188),En(n.b.d,n),En(n.c.b,n)}function kTt(e){switch(c(D(e,(fe(),N0)),303).g){case 1:oe(e,N0,(da(),zv));break;case 2:oe(e,N0,(da(),qm))}}function STt(e){var t;e.g&&(t=e.c.Rf()?e.f:e.a,fce(t.a,e.o,!0),fce(t.a,e.o,!1),oe(e.o,(ke(),Si),(br(),K0)))}function xTt(e){var t;if(!e.a)throw L(new Es("Cannot offset an unassigned cut."));t=e.c-e.b,e.b+=t,gRe(e,t),dRe(e,t)}function ETt(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,bi(e.a,e.c,null),t)}function SHe(e){var t,n;for(n=e.p.a.ec().Kc();n.Ob();)if(t=c(n.Pb(),213),t.f&&e.b[t.c]<-1e-10)return t;return null}function Pre(e,t){switch(e.b.g){case 0:case 1:return t;case 2:case 3:return new Pu(t.d,0,t.a,t.b);default:return null}}function xHe(e){switch(e.g){case 2:return Bl;case 1:return ul;case 4:return Ta;case 3:return Aa;default:return Xh}}function Dre(e){switch(e.g){case 1:return xt;case 2:return Ot;case 3:return Tt;case 4:return Wt;default:return qs}}function l7(e){switch(e.g){case 1:return Wt;case 2:return xt;case 3:return Ot;case 4:return Tt;default:return qs}}function nj(e){switch(e.g){case 1:return Tt;case 2:return Wt;case 3:return xt;case 4:return Ot;default:return qs}}function CTt(e){switch(e){case 0:return new HTe;case 1:return new qTe;case 2:return new QTe;default:throw L(new M9)}}function qi(e,t){return e<t?-1:e>t?1:e==t?e==0?qi(1/e,1/t):0:isNaN(e)?isNaN(t)?0:1:-1}function TTt(e,t){Kt(t,"Sort end labels",1),Ci(ni(Rs(new ft(null,new dt(e.b,16)),new zye),new Kye),new Wye),_t(t)}function Ak(e,t,n){var i,r;return e.ej()?(r=e.fj(),i=Gq(e,t,n),e.$i(e.Zi(7,we(n),i,t,r)),i):Gq(e,t,n)}function H_(e,t){var n,i,r;e.d==null?(++e.e,--e.f):(r=t.cd(),n=t.Sh(),i=(n&Bn)%e.d.length,f7t(e,i,_Xe(e,i,n,r)))}function Wy(e,t){var n;n=(e.Bb&$l)!=0,t?e.Bb|=$l:e.Bb&=-1025,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new jl(e,1,10,n,t))}function Xy(e,t){var n;n=(e.Bb&Ip)!=0,t?e.Bb|=Ip:e.Bb&=-4097,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new jl(e,1,12,n,t))}function Uy(e,t){var n;n=(e.Bb&yc)!=0,t?e.Bb|=yc:e.Bb&=-8193,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new jl(e,1,15,n,t))}function Gy(e,t){var n;n=(e.Bb&qp)!=0,t?e.Bb|=qp:e.Bb&=-2049,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new jl(e,1,11,n,t))}function ATt(e,t){var n;return n=qi(e.b.c,t.b.c),n!=0||(n=qi(e.a.a,t.a.a),n!=0)?n:qi(e.a.b,t.a.b)}function MTt(e,t){var n;if(n=Lt(e.k,t),n==null)throw L(new Uf("Port did not exist in input."));return qie(t,n),null}function jTt(e){var t,n;for(n=KXe(au(e)).Kc();n.Ob();)if(t=ln(n.Pb()),Xk(e,t))return FSt((eje(),Sht),t);return null}function PTt(e,t){var n,i,r,o,h;for(h=Qo(e.e.Tg(),t),o=0,n=c(e.g,119),r=0;r<e.i;++r)i=n[r],h.rl(i.ak())&&++o;return o}function DTt(e,t,n){var i,r;return i=c(t.We(e.a),35),r=c(n.We(e.a),35),i!=null&&r!=null?XS(i,r):i!=null?-1:r!=null?1:0}function EHe(e,t,n){var i,r;if(e.c)ooe(e.c,t,n);else for(r=new $(e.b);r.a<r.c.c.length;)i=c(I(r),157),EHe(i,t,n)}function z_(e,t){var n,i;for(i=new $(t);i.a<i.c.c.length;)n=c(I(i),46),Zo(e.b.b,n.b),l8t(c(n.a,189),c(n.b,81))}function ITt(e){var t,n;for(n=Z1(new Md,91),t=!0;e.Ob();)t||(n.a+=qr),t=!1,Js(n,e.Pb());return(n.a+="]",n).a}function Vy(e,t){var n;n=(e.Bb&sh)!=0,t?e.Bb|=sh:e.Bb&=-16385,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new jl(e,1,16,n,t))}function K_(e,t){var n;n=(e.Bb&to)!=0,t?e.Bb|=to:e.Bb&=-32769,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new jl(e,1,18,n,t))}function Ire(e,t){var n;n=(e.Bb&to)!=0,t?e.Bb|=to:e.Bb&=-32769,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new jl(e,1,18,n,t))}function Nre(e,t){var n;n=(e.Bb&Qr)!=0,t?e.Bb|=Qr:e.Bb&=-65537,(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new jl(e,1,20,n,t))}function $re(e){var t;return t=Y(Wu,oh,25,2,15,1),e-=Qr,t[0]=(e>>10)+J7&Ni,t[1]=(e&1023)+56320&Ni,ih(t,0,t.length)}function ij(e){var t,n;return n=c(D(e,(ke(),Ou)),103),n==(Yr(),Xh)?(t=re(ve(D(e,CI))),t>=1?Bl:Ta):n}function NTt(e){switch(c(D(e,(ke(),Ca)),218).g){case 1:return new POe;case 3:return new ROe;default:return new jOe}}function g0(e){if(e.c)g0(e.c);else if(e.d)throw L(new Es("Stream already terminated, can't be modified or used"))}function W_(e){var t;return(e.Db&64)!=0?Il(e):(t=new Uu(Il(e)),t.a+=" (identifier: ",is(t,e.k),t.a+=")",t.a)}function CHe(e,t,n){var i,r;return i=(cg(),r=new MC,r),TM(i,t),AM(i,n),e&&rn((!e.a&&(e.a=new Bi(al,e,5)),e.a),i),i}function X_(e,t,n,i){var r,o;return yt(i),yt(n),r=e.xc(t),o=r==null?n:qMe(c(r,15),c(n,14)),o==null?e.Bc(t):e.zc(t,o),o}function Ve(e){var t,n,i,r;return n=(t=c(Gl((i=e.gm,r=i.f,r==gn?i:r)),9),new ju(t,c(Cl(t,t.length),9),0)),Dl(n,e),n}function $Tt(e,t,n){var i,r;for(r=e.a.ec().Kc();r.Ob();)if(i=c(r.Pb(),10),YS(n,c(Ae(t,i.p),14)))return i;return null}function RTt(e,t,n){var i;try{pCt(e,t,n)}catch(r){throw r=fi(r),z(r,597)?(i=r,L(new Fne(i))):L(r)}return t}function Yd(e,t){var n;return Cs(e)&&Cs(t)&&(n=e-t,Z7<n&&n<k0)?n:Xd(hQe(Cs(e)?Yu(e):e,Cs(t)?Yu(t):t))}function Pr(e,t){var n;return Cs(e)&&Cs(t)&&(n=e+t,Z7<n&&n<k0)?n:Xd(ZEt(Cs(e)?Yu(e):e,Cs(t)?Yu(t):t))}function Cr(e,t){var n;return Cs(e)&&Cs(t)&&(n=e*t,Z7<n&&n<k0)?n:Xd(vqt(Cs(e)?Yu(e):e,Cs(t)?Yu(t):t))}function Fs(e,t){var n;return e.i||Aoe(e),n=c(rs(e.g,t),46),n?new Ih(e.j,c(n.a,19).a,c(n.b,19).a):(it(),it(),Gr)}function Bg(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,_A(e.b)):++e.d,i}function LTt(e,t,n){e.n=V1(P1,[ue,dH],[364,25],14,[n,Di(b.Math.ceil(t/32))],2),e.o=t,e.p=n,e.j=t-1>>1,e.k=n-1>>1}function U_(){toe();var e,t,n;n=Dzt+++Date.now(),e=Di(b.Math.floor(n*tx))&bP,t=Di(n-e*pue),this.a=e^1502,this.b=t^vH}function wa(e){var t,n,i;for(t=new de,i=new $(e.j);i.a<i.c.c.length;)n=c(I(i),11),ae(t,n.b);return tn(t),new LO(t)}function As(e){var t,n,i;for(t=new de,i=new $(e.j);i.a<i.c.c.length;)n=c(I(i),11),ae(t,n.e);return tn(t),new LO(t)}function Qi(e){var t,n,i;for(t=new de,i=new $(e.j);i.a<i.c.c.length;)n=c(I(i),11),ae(t,n.g);return tn(t),new LO(t)}function FTt(e){var t,n;for(n=$$t(au(rp(e))).Kc();n.Ob();)if(t=ln(n.Pb()),Xk(e,t))return BSt((tje(),xht),t);return null}function BTt(e){var t,n,i;for(n=0,i=e.length;n<i;n++)if(e[n]==null)throw L(new R2("at index "+n));return t=e,new Gc(t)}function _Tt(e,t){var n;if(n=N7(e.Tg(),t),z(n,99))return c(n,18);throw L(new kt(u1+t+"' is not a valid reference"))}function qTt(e){var t;return t=Sp(e),t>34028234663852886e22?Oi:t<-34028234663852886e22?Li:t}function THe(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 AHe(e){var t,n,i,r;for(t=new uIe(e.Hd().gc()),r=0,i=fv(e.Hd().Kc());i.Ob();)n=i.Pb(),Y8t(t,n,we(r++));return kIt(t.a)}function QTt(e,t){var n,i,r;for(r=new Zt,i=t.vc().Kc();i.Ob();)n=c(i.Pb(),42),Qn(r,n.cd(),IEt(e,c(n.dd(),15)));return r}function Rre(e,t){e.n.c.length==0&&ae(e.n,new WA(e.s,e.t,e.i)),ae(e.b,t),mse(c(Ae(e.n,e.n.c.length-1),211),t),FGe(e,t)}function nm(e){return(e.c!=e.b.b||e.i!=e.g.b)&&(e.a.c=Y(It,Ce,1,0,5,1),_i(e.a,e.b),_i(e.a,e.g),e.c=e.b.b,e.i=e.g.b),e.a}function G_(e,t){var n,i,r;for(r=0,i=c(t.Kb(e),20).Kc();i.Ob();)n=c(i.Pb(),17),Pe(je(D(n,(fe(),Lf))))||++r;return r}function HTt(e,t){var n,i,r;i=Xw(t),r=re(ve(wp(i,(ke(),Fl)))),n=b.Math.max(0,r/2-.5),Rk(t,n,1),ae(e,new yje(t,n))}function Fu(){Fu=X,Kx=new K9(xa,0),U6=new K9("FIRST",1),g1=new K9(RZe,2),G6=new K9("LAST",3),Gp=new K9(LZe,4)}function ma(){ma=X,OU=new AT(c6,0),pE=new AT("POLYLINE",1),m5=new AT("ORTHOGONAL",2),s3=new AT("SPLINES",3)}function rj(){rj=X,abe=new WL("ASPECT_RATIO_DRIVEN",0),XX=new WL("MAX_SCALE_DRIVEN",1),hbe=new WL("AREA_DRIVEN",2)}function f7(){f7=X,uN=new XL("P1_STRUCTURE",0),lN=new XL("P2_PROCESSING_ORDER",1),fN=new XL("P3_EXECUTION",2)}function sj(){sj=X,qX=new HL("OVERLAP_REMOVAL",0),BX=new HL("COMPACTION",1),_X=new HL("GRAPH_SIZE_CALCULATION",2)}function _g(e,t){return wf(),Pl(i1),b.Math.abs(e-t)<=i1||e==t||isNaN(e)&&isNaN(t)?0:e<t?-1:e>t?1:ag(isNaN(e),isNaN(t))}function MHe(e,t){var n,i;for(n=xn(e,0);n.b!=n.d.c;){if(i=j9(ve(Sn(n))),i==t)return;if(i>t){MB(n);break}}pS(n,t)}function Ue(e,t){var n,i,r,o,h;if(n=t.f,p0(e.c.d,n,t),t.g!=null)for(r=t.g,o=0,h=r.length;o<h;++o)i=r[o],p0(e.c.e,i,t)}function zTt(e,t,n,i){var r,o,h;for(r=t+1;r<n;++r)for(o=r;o>t&&i.ue(e[o-1],e[o])>0;--o)h=e[o],bi(e,o,e[o-1]),bi(e,o-1,h)}function Bu(e,t,n,i){if(t<0)tce(e,n,i);else{if(!n.Ij())throw L(new kt(u1+n.ne()+O6));c(n,66).Nj().Tj(e,e.yh(),t,i)}}function oj(e,t){if(t==e.d)return e.e;if(t==e.e)return e.d;throw L(new kt("Node "+t+" not part of edge "+e))}function KTt(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 jHe(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 Lre(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 Tre(e,t,n,i)}function WTt(e){return e.k!=(jt(),zi)?!1:my(new ft(null,new vg(new Bt(qt(Qi(e).a.Kc(),new Q)))),new mOe)}function XTt(e){return e.e==null?e:(!e.c&&(e.c=new uQ((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,null)),e.c)}function UTt(e,t){return e.h==Y7&&e.m==0&&e.l==0?(t&&(l1=Bo(0,0,0)),PPe((xy(),Phe))):(t&&(l1=Bo(e.l,e.m,e.h)),Bo(0,0,0))}function Ms(e){var t;return Array.isArray(e)&&e.im===vt?Pd(_c(e))+"@"+(t=oi(e)>>>0,t.toString(16)):e.toString()}function Mk(e){var t;this.a=(t=c(e.e&&e.e(),9),new ju(t,c(Cl(t,t.length),9),0)),this.b=Y(It,Ce,1,this.a.a.length,5,1)}function GTt(e){var t,n,i;for(this.a=new ra,i=new $(e);i.a<i.c.c.length;)n=c(I(i),14),t=new RNe,rEt(t,n),Wi(this.a,t)}function VTt(e){Vb();var t,n,i,r;for(t=e.o.b,i=c(c(zn(e.r,(me(),Wt)),21),84).Kc();i.Ob();)n=c(i.Pb(),111),r=n.e,r.b+=t}function qc(e){var t;if(e.b){if(qc(e.b),e.b.d!=e.c)throw L(new Au)}else e.d.dc()&&(t=c(e.f.c.xc(e.e),14),t&&(e.d=t))}function YTt(e){var t;return e==null?!0:(t=e.length,t>0&&(fn(t-1,e.length),e.charCodeAt(t-1)==58)&&!V_(e,D8,I8))}function V_(e,t,n){var i,r;for(i=0,r=e.length;i<r;i++)if(S_((fn(i,e.length),e.charCodeAt(i)),t,n))return!0;return!1}function ZTt(e,t){var n,i;for(i=e.e.a.ec().Kc();i.Ob();)if(n=c(i.Pb(),266),nIt(t,n.d)||lNt(t,n.d))return!0;return!1}function JTt(e,t){var n,i,r;for(i=FFt(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 eAt(e,t){ny();var n,i,r,o;for(i=zBe(e),r=t,ky(i,0,i.length,r),n=0;n<i.length;n++)o=Rjt(e,i[n],n),n!=o&&Ak(e,n,o)}function Fre(e,t){var n,i,r,o,h,d;for(i=0,n=0,o=t,h=0,d=o.length;h<d;++h)r=o[h],r>0&&(i+=r,++n);return n>1&&(i+=e.d*(n-1)),i}function Bre(e){var t,n,i;for(i=new Fa,i.a+="[",t=0,n=e.gc();t<n;)is(i,qO(e.ki(t))),++t<n&&(i.a+=qr);return i.a+="]",i.a}function tAt(e){var t,n,i,r,o;return o=noe(e),n=D9(e.c),i=!n,i&&(r=new Q1,Jl(o,"knownLayouters",r),t=new GCe(r),kr(e.c,t)),o}function nAt(e,t){var n,i,r;for(yt(t),n=!1,i=new $(e);i.a<i.c.c.length;)r=I(i),pp(t,r,!1)&&(ek(i),n=!0);return n}function _re(e){var t,n,i;for(i=re(ve(e.a.We((Pn(),kN)))),n=new $(e.a.xf());n.a<n.c.c.length;)t=c(I(n),680),tYe(e,t,i)}function Y_(e,t){var n,i;for(i=new $(t);i.a<i.c.c.length;)n=c(I(i),46),ae(e.b.b,c(n.b,81)),jB(c(n.a,189),c(n.b,81))}function iAt(e,t,n){var i,r;for(r=e.a.b,i=r.c.length;i<n;i++)Jb(r,0,new Gu(e.a));hs(t,c(Ae(r,r.c.length-n),29)),e.b[t.p]=n}function rAt(e,t,n){var i;i=n,!i&&(i=dte(new B3,0)),Kt(i,vZe,2),Pze(e.b,t,yo(i,1)),Bqt(e,t,yo(i,1)),PHt(t,yo(i,1)),_t(i)}function sAt(e,t,n,i,r){lu(),Nl(xl(Sl(kl(El(new Xu,0),r.d.e-e),t),r.d)),Nl(xl(Sl(kl(El(new Xu,0),n-r.a.e),r.a),i))}function qre(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&&yte(this.c,this.b,this.a)}function Qre(e){Z_(),this.c=Sf(_(B(Vzt,1),Ce,831,0,[gct])),this.b=new Zt,this.a=e,Qn(this.b,qI,1),ec(bct,new vCe(this))}function PHe(e,t){var n;return e.d?Jc(e.b,t)?c(Lt(e.b,t),51):(n=t.Kf(),Qn(e.b,t,n),n):t.Kf()}function Hre(e,t){var n;return ne(e)===ne(t)?!0:z(t,91)?(n=c(t,91),e.e==n.e&&e.d==n.d&&_St(e,n.a)):!1}function bv(e){switch(me(),e.g){case 4:return Ot;case 1:return Tt;case 3:return Wt;case 2:return xt;default:return qs}}function zre(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 Hie(e,t)}function oAt(e){switch(e.g){case 0:return new a6e;case 1:return new d6e;default:throw L(new kt(Az+(e.f!=null?e.f:""+e.g)))}}function DHe(e){switch(e.g){case 0:return new h6e;case 1:return new g6e;default:throw L(new kt(zH+(e.f!=null?e.f:""+e.g)))}}function IHe(e){switch(e.g){case 0:return new kZ;case 1:return new zTe;default:throw L(new kt(GP+(e.f!=null?e.f:""+e.g)))}}function cAt(e){switch(e.g){case 1:return new s6e;case 2:return new VDe;default:throw L(new kt(Az+(e.f!=null?e.f:""+e.g)))}}function uAt(e){var t,n;if(e.b)return e.b;for(n=$f?null:e.d;n;){if(t=$f?null:n.b,t)return t;n=$f?null:n.d}return G3(),cae}function lAt(e){var t,n,i;return e.e==0?0:(t=e.d<<5,n=e.a[e.d-1],e.e<0&&(i=Hqe(e),i==e.d-1&&(--n,n=n|0)),t-=j7(n),t)}function fAt(e){var t,n,i;return e<ED.length?ED[e]:(n=e>>5,t=e&31,i=Y(Vt,yn,25,n+1,15,1),i[n]=1<<t,new Hw(1,n+1,i))}function NHe(e){var t,n,i;return n=e.zg(),n?(t=e.Ug(),z(t,160)&&(i=NHe(c(t,160)),i!=null)?i+"."+n:n):null}function pp(e,t,n){var i,r;for(r=e.Kc();r.Ob();)if(i=r.Pb(),ne(t)===ne(i)||t!=null&&qn(t,i))return n&&r.Qb(),!0;return!1}function Kre(e,t,n){var i,r;if(++e.j,n.dc())return!1;for(r=n.Kc();r.Ob();)i=r.Pb(),e.Hi(t,e.oi(t,i)),++t;return!0}function hAt(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 aAt(e){return F_(),St(),!!(jHe(c(e.a,81).j,c(e.b,103))||c(e.a,81).d.e!=0&&jHe(c(e.a,81).j,c(e.b,103)))}function dAt(e){dM(),c(e.We((Pn(),v1)),174).Hc((Hc(),TN))&&(c(e.We(cw),174).Fc((Ac(),o3)),c(e.We(v1),174).Mc(TN))}function $He(e,t){var n,i;if(t){for(n=0;n<e.i;++n)if(i=c(e.g[n],366),i.Di(t))return!1;return rn(e,t)}else return!1}function Wre(e){var t,n,i,r;for(t=new Q1,r=new $3(e.b.Kc());r.b.Ob();)i=c(r.b.Pb(),686),n=MIt(i),Vkt(t,t.a.length,n);return t.a}function Xre(e){var t;return!e.c&&(e.c=new mR),ir(e.d,new yR),bBt(e),t=iFt(e),Ci(new ft(null,new dt(e.d,16)),new Nxe(e)),t}function cj(e){var t;return(e.Db&64)!=0?xk(e):(t=new Uu(xk(e)),t.a+=" (instanceClassName: ",is(t,e.D),t.a+=")",t.a)}function gAt(e,t){var n,i,r,o;t&&(r=ga(t,"x"),n=new zCe(e),Cy(n.a,(yt(r),r)),o=ga(t,"y"),i=new KCe(e),Ay(i.a,(yt(o),o)))}function bAt(e,t){var n,i,r,o;t&&(r=ga(t,"x"),n=new _Ce(e),Ty(n.a,(yt(r),r)),o=ga(t,"y"),i=new QCe(e),My(i.a,(yt(o),o)))}function ui(e,t){var n,i,r;if(n=(e.i==null&&rh(e),e.i),i=t.aj(),i!=-1){for(r=n.length;i<r;++i)if(n[i]==t)return i}return-1}function pAt(e){var t,n,i,r,o;for(n=c(e.g,674),i=e.i-1;i>=0;--i)for(t=n[i],r=0;r<i;++r)if(o=n[r],IGe(e,t,o)){vv(e,i);break}}function wAt(e){var t=e.e;function n(i){return!i||i.length==0?"":" "+i.join(`
|
|
3
3
|
`)}return t&&(t.stack||n(e[WQ]))}function Ure(e){ip();var t;switch(t=e.Pc(),t.length){case 0:return xK;case 1:return new NF(tn(t[0]));default:return new gB(BTt(t))}}function qg(e,t){switch(t.g){case 1:return G2(e.j,(pc(),fde));case 2:return G2(e.j,(pc(),ade));default:return it(),it(),Gr}}function Gre(e,t){switch(t){case 3:Ig(e,0);return;case 4:Ng(e,0);return;case 5:tc(e,0);return;case 6:nc(e,0);return}Sre(e,t)}function Z_(){Z_=X,aT(),qI=(ke(),yb),bct=Sf(_(B(rU,1),afe,146,0,[Ux,Fl,Jv,vb,iw,cX,l5,f5,uX,e8,Wm,B0,Xm]))}function RHe(e){var t,n;t=e.d==(yv(),V4),n=Use(e),t&&!n||!t&&n?oe(e.a,(ke(),mh),(Rh(),cE)):oe(e.a,(ke(),mh),(Rh(),oE))}function mAt(e,t){var n;return n=c(hu(e,s0(new vr,new ps,new Ol,_(B(Kc,1),he,132,0,[(Af(),yu)]))),15),n.Qc(oNe(n.gc()))}function uj(){uj=X,EU=new PT("SIMPLE",0),uwe=new PT("GROUP_DEC",1),fwe=new PT("GROUP_MIXED",2),lwe=new PT("GROUP_INC",3)}function J_(){J_=X,$U=new D8e,Iwe=new I8e,Nwe=new N8e,$we=new $8e,Rwe=new R8e,Lwe=new L8e,Fwe=new F8e,Bwe=new B8e,_we=new _8e}function LHe(e,t,n){K_e(),LTe.call(this),this.a=V1(Cnt,[ue,Cue],[595,212],0,[PD,qK],2),this.c=new z2,this.g=e,this.f=t,this.d=n}function Vre(e,t){this.n=V1(P1,[ue,dH],[364,25],14,[t,Di(b.Math.ceil(e/32))],2),this.o=e,this.p=t,this.j=e-1>>1,this.k=t-1>>1}function vAt(e,t){Kt(t,"End label post-processing",1),Ci(ni(Rs(new ft(null,new dt(e.b,16)),new Rye),new Lye),new Fye),_t(t)}function yAt(e,t,n){var i,r;return i=re(e.p[t.i.p])+re(e.d[t.i.p])+t.n.b+t.a.b,r=re(e.p[n.i.p])+re(e.d[n.i.p])+n.n.b+n.a.b,r-i}function OAt(e,t,n){var i,r;for(i=Xi(n,Jr),r=0;oo(i,0)!=0&&r<t;r++)i=Pr(i,Xi(e[r],Jr)),e[r]=en(i),i=Bd(i,32);return en(i)}function lj(e){var t,n,i,r;for(r=0,n=0,i=e.length;n<i;n++)t=(fn(n,e.length),e.charCodeAt(n)),t<64&&(r=kf(r,oa(1,t)));return r}function kAt(e){var t;return e==null?null:new Ld((t=ko(e,!0),t.length>0&&(fn(0,t.length),t.charCodeAt(0)==43)?t.substr(1):t))}function SAt(e){var t;return e==null?null:new Ld((t=ko(e,!0),t.length>0&&(fn(0,t.length),t.charCodeAt(0)==43)?t.substr(1):t))}function Yre(e,t){var n;return e.i>0&&(t.length<e.i&&(n=KS(_c(t).c,e.i),t=n),bo(e.g,0,t,0,e.i)),t.length>e.i&&bi(t,e.i,null),t}function Do(e,t,n){var i,r,o;return e.ej()?(i=e.i,o=e.fj(),c7(e,i,t),r=e.Zi(3,null,t,i,o),n?n.Ei(r):n=r):c7(e,e.i,t),n}function xAt(e,t,n){var i,r;return i=new aa(e.e,4,10,(r=t.c,z(r,88)?c(r,26):(tt(),pl)),null,Ja(e,t),!1),n?n.Ei(i):n=i,n}function EAt(e,t,n){var i,r;return i=new aa(e.e,3,10,null,(r=t.c,z(r,88)?c(r,26):(tt(),pl)),Ja(e,t),!1),n?n.Ei(i):n=i,n}function FHe(e){Vb();var t;return t=new ls(c(e.e.We((Pn(),t2)),8)),e.B.Hc((Hc(),y5))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t}function BHe(e){mp();var t;return(e.q?e.q:(it(),it(),Kh))._b((ke(),wb))?t=c(D(e,wb),197):t=c(D(Ir(e),J6),197),t}function wp(e,t){var n,i;return i=null,er(e,(ke(),BI))&&(n=c(D(e,BI),94),n.Xe(t)&&(i=n.We(t))),i==null&&(i=D(Ir(e),t)),i}function _He(e,t){var n,i,r;return z(t,42)?(n=c(t,42),i=n.cd(),r=bp(e.Rc(),i),eh(r,n.dd())&&(r!=null||e.Rc()._b(i))):!1}function eq(e,t){var n,i,r;return e.f>0?(e.qj(),i=t==null?0:oi(t),r=(i&Bn)%e.d.length,n=_Xe(e,r,i,t),n!=-1):!1}function tf(e,t){var n,i,r;return e.f>0&&(e.qj(),i=t==null?0:oi(t),r=(i&Bn)%e.d.length,n=$oe(e,r,i,t),n)?n.dd():null}function h7(e,t){var n,i,r,o;for(o=Qo(e.e.Tg(),t),n=c(e.g,119),r=0;r<e.i;++r)if(i=n[r],o.rl(i.ak()))return!1;return!0}function qHe(e){if(e.b==null){for(;e.a.Ob();)if(e.b=e.a.Pb(),!c(e.b,49).Zg())return!0;return e.b=null,!1}else return!0}function QHe(e,t){e.mj();try{e.d.Vc(e.e++,t),e.f=e.d.j,e.g=-1}catch(n){throw n=fi(n),z(n,73)?L(new Au):L(n)}}function fj(e,t){BJ();var n,i;return n=cS((VC(),VC(),I6)),i=null,t==n&&(i=c(mo(Mhe,e),615)),i||(i=new C$e(e),t==n&&fs(Mhe,e,i)),i}function HHe(e,t){var n,i;e.a=Pr(e.a,1),e.c=b.Math.min(e.c,t),e.b=b.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 CAt(e,t){var n;e.c=t,e.a=lAt(t),e.a<54&&(e.f=(n=t.d>1?kf(oa(t.a[1],32),Xi(t.a[0],Jr)):Xi(t.a[0],Jr),Ag(Cr(t.e,n))))}function a7(e,t){var n;return Cs(e)&&Cs(t)&&(n=e%t,Z7<n&&n<k0)?n:Xd((Kce(Cs(e)?Yu(e):e,Cs(t)?Yu(t):t,!0),l1))}function jk(e,t){var n;WQt(t),n=c(D(e,(ke(),DI)),276),n&&oe(e,DI,Ejt(n)),qa(e.c),qa(e.f),Zne(e.d),Zne(c(D(e,RI),207))}function zHe(e){this.e=Y(Vt,yn,25,e.length,15,1),this.c=Y(Uc,Hh,25,e.length,16,1),this.b=Y(Uc,Hh,25,e.length,16,1),this.f=0}function TAt(e){var t,n;for(e.j=Y(hr,cs,25,e.p.c.length,15,1),n=new $(e.p);n.a<n.c.c.length;)t=c(I(n),10),e.j[t.p]=t.o.b/e.i}function tq(e){var t;e.c!=0&&(t=c(Ae(e.a,e.b),287),t.b==1?(++e.b,e.b<e.a.c.length&&oxe(c(Ae(e.a,e.b),287))):--t.b,--e.c)}function AAt(e){var t;t=e.a;do t=c(nn(new Bt(qt(Qi(t).a.Kc(),new Q))),17).d.i,t.k==(jt(),sr)&&ae(e.e,t);while(t.k==(jt(),sr))}function Zre(){Zre=X,owe=new dg(15),Xft=new Wr((Pn(),H0),owe),Gft=new Wr(z0,15),Uft=new Wr(vU,we(0)),Wft=new Wr(n3,T4)}function iu(){iu=X,kE=new jT("PORTS",0),W0=new jT("PORT_LABELS",1),OE=new jT("NODE_LABELS",2),lw=new jT("MINIMUM_SIZE",3)}function d7(e,t){var n,i;for(i=t.length,n=0;n<i;n+=2)Oo(e,(fn(n,t.length),t.charCodeAt(n)),(fn(n+1,t.length),t.charCodeAt(n+1)))}function KHe(e,t,n){var i,r,o,h;for(o=t-e.e,h=n-e.f,r=new $(e.a);r.a<r.c.c.length;)i=c(I(r),187),b7(i,i.s+o,i.t+h);e.e=t,e.f=n}function MAt(e,t){var n,i,r,o;for(o=t.b.b,e.a=new ai,e.b=Y(Vt,yn,25,o,15,1),n=0,r=xn(t.b,0);r.b!=r.d.c;)i=c(Sn(r),86),i.g=n++}function WHe(e,t){var n,i,r,o;return n=t>>5,t&=31,r=e.d+n+(t==0?0:1),i=Y(Vt,yn,25,r,15,1),CDt(i,e.a,n,t),o=new Hw(e.e,r,i),ck(o),o}function Jre(e,t,n){var i,r;i=c(mo(S5,t),117),r=c(mo(B8,t),117),n?(fs(S5,e,i),fs(B8,e,r)):(fs(B8,e,i),fs(S5,e,r))}function XHe(e,t,n){var i,r,o;for(r=null,o=e.b;o;){if(i=e.a.ue(t,o.d),n&&i==0)return o;i>=0?o=o.a[1]:(r=o,o=o.a[0])}return r}function UHe(e,t,n){var i,r,o;for(r=null,o=e.b;o;){if(i=e.a.ue(t,o.d),n&&i==0)return o;i<=0?o=o.a[0]:(r=o,o=o.a[1])}return r}function jAt(e,t,n,i){var r,o,h;return r=!1,hQt(e.f,n,i)&&(tMt(e.f,e.a[t][n],e.a[t][i]),o=e.a[t],h=o[i],o[i]=o[n],o[n]=h,r=!0),r}function ese(e,t,n,i,r){var o,h,d;for(h=r;t.b!=t.c;)o=c(Z2(t),10),d=c(Fs(o,i).Xb(0),11),e.d[d.p]=h++,n.c[n.c.length]=d;return h}function tse(e,t,n){var i,r,o,h,d;return h=e.k,d=t.k,i=n[h.g][d.g],r=ve(wp(e,i)),o=ve(wp(t,i)),b.Math.max((yt(r),r),(yt(o),o))}function PAt(e,t,n){var i,r,o,h;for(i=n/e.c.length,r=0,h=new $(e);h.a<h.c.c.length;)o=c(I(h),200),JQe(o,o.f+i*r),fPt(o,t,i),++r}function GHe(e,t,n){var i,r,o,h;for(r=c(Lt(e.b,n),177),i=0,h=new $(t.j);h.a<h.c.c.length;)o=c(I(h),113),r[o.d.p]&&++i;return i}function VHe(e){var t,n;return t=c(mt(e.a,4),126),t!=null?(n=Y(PU,oK,415,t.length,0,1),bo(t,0,n,0,t.length),n):bht}function DAt(){var e;return OD!=0&&(e=USt(),e-Xtt>2e3&&(Xtt=e,kD=b.setTimeout(Fvt,10))),OD++==0?(axt((TZ(),Ahe)),!0):!1}function IAt(e,t){var n,i,r;for(i=new Bt(qt(Qi(e).a.Kc(),new Q));an(i);)if(n=c(nn(i),17),r=n.d.i,r.c==t)return!1;return!0}function nse(e,t){var n,i;if(z(t,245)){i=c(t,245);try{return n=e.vd(i),n==0}catch(r){if(r=fi(r),!z(r,205))throw L(r)}}return!1}function NAt(){return Error.stackTraceLimit>0?(b.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function $At(e,t){return wf(),wf(),Pl(i1),(b.Math.abs(e-t)<=i1||e==t||isNaN(e)&&isNaN(t)?0:e<t?-1:e>t?1:ag(isNaN(e),isNaN(t)))>0}function ise(e,t){return wf(),wf(),Pl(i1),(b.Math.abs(e-t)<=i1||e==t||isNaN(e)&&isNaN(t)?0:e<t?-1:e>t?1:ag(isNaN(e),isNaN(t)))<0}function YHe(e,t){return wf(),wf(),Pl(i1),(b.Math.abs(e-t)<=i1||e==t||isNaN(e)&&isNaN(t)?0:e<t?-1:e>t?1:ag(isNaN(e),isNaN(t)))<=0}function nq(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 ih(e,t,n){var i,r,o,h;for(o=t+n,eie(t,o,e.length),h="",r=t;r<o;)i=b.Math.min(r+1e4,o),h+=x6t(e.slice(r,i)),r=i;return h}function ZHe(e){var t,n,i,r,o;if(e==null)return null;for(o=new de,n=M_(e),i=0,r=n.length;i<r;++i)t=n[i],ae(o,ko(t,!0));return o}function JHe(e){var t,n,i,r,o;if(e==null)return null;for(o=new de,n=M_(e),i=0,r=n.length;i<r;++i)t=n[i],ae(o,ko(t,!0));return o}function eze(e){var t,n,i,r,o;if(e==null)return null;for(o=new de,n=M_(e),i=0,r=n.length;i<r;++i)t=n[i],ae(o,ko(t,!0));return o}function tze(e,t){var n,i,r;if(e.c)Ng(e.c,t);else for(n=t-bc(e),r=new $(e.d);r.a<r.c.c.length;)i=c(I(r),157),tze(i,bc(i)+n)}function nze(e,t){var n,i,r;if(e.c)Ig(e.c,t);else for(n=t-Zc(e),r=new $(e.a);r.a<r.c.c.length;)i=c(I(r),157),nze(i,Zc(i)+n)}function RAt(e,t){var n,i,r,o;for(r=new jo(t.gc()),i=t.Kc();i.Ob();)n=i.Pb(),o=pQ(e,c(n,56)),o&&(r.c[r.c.length]=o);return r}function hj(e,t){var n,i,r;return e.qj(),i=t==null?0:oi(t),r=(i&Bn)%e.d.length,n=$oe(e,r,i,t),n?(hqe(e,n),n.dd()):null}function Qg(e){var t,n;for(n=gWe(e),t=null;e.c==2;)$n(e),t||(t=(Rn(),Rn(),new FO(2)),y0(t,n),n=t),n.$l(gWe(e));return n}function Yy(e){var t,n,i;if(i=null,t=gh in e.a,n=!t,n)throw L(new Uf("Every element must have an id."));return i=Ov(ua(e,gh)),i}function aj(e){var t,n,i;if(i=e.Zg(),!i)for(t=0,n=e.eh();n;n=n.eh()){if(++t>gH)return n.fh();if(i=n.Zg(),i||n==e)break}return i}function rse(e){return UA(),z(e,156)?c(Lt(AE,snt),288).vg(e):Jc(AE,_c(e))?c(Lt(AE,_c(e)),288).vg(e):null}function LAt(e){if(dj(D4,e))return St(),B4;if(dj(_z,e))return St(),D0;throw L(new kt("Expecting true or false"))}function FAt(e,t){if(t.c==e)return t.d;if(t.d==e)return t.c;throw L(new kt("Input edge is not connected to the input port."))}function ize(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*dre(e.a,t.a,e.d)}function rze(e){return e>=48&&e<48+b.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function sze(e,t){var n;return ne(t)===ne(e)?!0:!z(t,21)||(n=c(t,21),n.gc()!=e.gc())?!1:e.Ic(n)}function BAt(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,$De(n<r),n>=o?(FCt(e,t),-1):(BCt(e,t),1)}function _At(e,t){var n,i;for(n=(fn(t,e.length),e.charCodeAt(t)),i=t+1;i<e.length&&(fn(i,e.length),e.charCodeAt(i)==n);)++i;return i-t}function sse(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 qAt(e,t){var n=e.a,i;t=String(t),n.hasOwnProperty(t)&&(i=n[t]);var r=(k_(),jK)[typeof i],o=r?r(i):wre(typeof i);return o}function Hg(e,t){if(e.a<0)throw L(new Es("Did not call before(...) or after(...) before calling add(...)."));return lee(e,e.a,t),e}function QAt(e,t,n,i){var r,o;t.c.length!=0&&(r=CRt(n,i),o=ENt(t),Ci(xM(new ft(null,new dt(o,1)),new zke),new Y$e(e,n,r,i)))}function pv(e,t,n){var i;(e.Db&t)!=0?n==null?h$t(e,t):(i=Sq(e,t),i==-1?e.Eb=n:bi(o0(e.Eb),i,n)):n!=null&&RLt(e,t,n)}function _o(e){var t,n;return(e.Db&32)==0&&(n=(t=c(mt(e,16),26),Rt(t||e.zh())-Rt(e.zh())),n!=0&&pv(e,32,Y(It,Ce,1,n,5,1))),e}function HAt(e){var t;return e.b||Ivt(e,(t=S4t(e.e,e.a),!t||!Je(_z,tf((!t.b&&(t.b=new Yc((tt(),zr),Vs,t)),t.b),"qualified")))),e.c}function zAt(e,t,n){var i,r,o;return i=c(W(Bc(e.a),t),87),o=(r=i.c,r||(tt(),Qf)),(o.kh()?Vd(e.b,c(o,49)):o)==n?Zj(i):Ey(i,n),o}function KAt(e,t){(!t&&console.groupCollapsed!=null?console.groupCollapsed:console.group??console.log).call(console,e)}function WAt(e,t,n,i){i==e,c(n.b,65),c(n.b,65),c(i.b,65),c(i.b,65).c.b,Jne(i,t,e)}function XAt(e){var t,n;for(t=new $(e.g);t.a<t.c.c.length;)c(I(t),562);n=new fUe(e.g,re(e.a),e.c),eHt(n),e.g=n.b,e.d=n.a}function ose(e,t,n){t.b=b.Math.max(t.b,-n.a),t.c=b.Math.max(t.c,n.a-e.a),t.d=b.Math.max(t.d,-n.b),t.a=b.Math.max(t.a,n.b-e.b)}function UAt(e,t){return e.e<t.e?-1:e.e>t.e?1:e.f<t.f?-1:e.f>t.f?1:oi(e)-oi(t)}function dj(e,t){return yt(e),t==null?!1:Je(e,t)?!0:e.length==t.length&&Je(e.toLowerCase(),t.toLowerCase())}function GAt(e,t){var n,i,r,o;for(i=0,r=t.gc();i<r;++i)n=t.il(i),z(n,99)&&(c(n,18).Bb&to)!=0&&(o=t.jl(i),o!=null&&pQ(e,c(o,56)))}function oze(e,t,n){var i,r,o;for(o=new $(n.a);o.a<o.c.c.length;)r=c(I(o),221),i=new QT(c(Lt(e.a,r.b),65)),ae(t.a,i),oze(e,i,r)}function b0(e){var t,n;return oo(e,-129)>0&&oo(e,128)<0?(t=en(e)+128,n=(xNe(),Fhe)[t],!n&&(n=Fhe[t]=new DY(e)),n):new DY(e)}function cze(e,t){var n,i;return n=t.Hh(e.a),n&&(i=ln(tf((!n.b&&(n.b=new Yc((tt(),zr),Vs,n)),n.b),jn)),i!=null)?i:t.ne()}function VAt(e,t){var n,i;return n=t.Hh(e.a),n&&(i=ln(tf((!n.b&&(n.b=new Yc((tt(),zr),Vs,n)),n.b),jn)),i!=null)?i:t.ne()}function YAt(e,t){kB();var n,i;for(i=new Bt(qt(wa(e).a.Kc(),new Q));an(i);)if(n=c(nn(i),17),n.d.i==t||n.c.i==t)return n;return null}function cse(e,t,n){this.c=e,this.f=new de,this.e=new Er,this.j=new pte,this.n=new pte,this.b=t,this.g=new Pu(t.c,t.d,t.b,t.a),this.a=n}function iq(e){var t,n,i,r;for(this.a=new ra,this.d=new Zi,this.e=0,n=e,i=0,r=n.length;i<r;++i)t=n[i],!this.f&&(this.f=t),jB(this,t)}function uze(e){t1(),e.length==0?(this.e=0,this.d=1,this.a=_(B(Vt,1),yn,25,15,[0])):(this.e=1,this.d=e.length,this.a=e,ck(this))}function Pk(e,t,n){LTe.call(this),this.a=Y(Cnt,Cue,212,(ef(),_(B(Hp,1),he,232,0,[Xs,$o,Us])).length,0,1),this.b=e,this.d=t,this.c=n}function lze(e){this.d=new de,this.e=new i0,this.c=Y(Vt,yn,25,(me(),_(B(Hr,1),co,61,0,[qs,Ot,Tt,Wt,xt])).length,15,1),this.b=e}function ZAt(e){var t,n,i,r,o,h;for(h=c(D(e,(fe(),Hn)),11),oe(h,r5,e.i.n.b),t=nh(e.e),i=t,r=0,o=i.length;r<o;++r)n=i[r],dr(n,h)}function JAt(e){var t,n,i,r,o,h;for(n=c(D(e,(fe(),Hn)),11),oe(n,r5,e.i.n.b),t=nh(e.g),r=t,o=0,h=r.length;o<h;++o)i=r[o],jr(i,n)}function eMt(e){var t,n;return er(e.d.i,(ke(),o5))?(t=c(D(e.c.i,o5),19),n=c(D(e.d.i,o5),19),Uo(t.a,n.a)>0):!1}function fze(e){var t;ne(Ie(e,(Pn(),Zm)))===ne((pa(),SN))&&(pi(e)?(t=c(Ie(pi(e),Zm),334),os(e,Zm,t)):os(e,Zm,S8))}function tMt(e,t,n){var i,r;Fq(e.e,t,n,(me(),xt)),Fq(e.i,t,n,Tt),e.a&&(r=c(D(t,(fe(),Hn)),11),i=c(D(n,Hn),11),AB(e.g,r,i))}function hze(e,t,n){var i,r,o;i=t.c.p,o=t.p,e.b[i][o]=new ARe(e,t),n&&(e.a[i][o]=new $Ee(t),r=c(D(t,(fe(),gb)),10),r&&Ye(e.d,r,t))}function aze(e,t){var n,i,r;if(ae(RD,e),t.Fc(e),n=c(Lt(GK,e),21),n)for(r=n.Kc();r.Ob();)i=c(r.Pb(),33),Ts(RD,i,0)!=-1||aze(i,t)}function nMt(e,t,n){var i;(ant?(uAt(e),!0):dnt||bnt?(G3(),!0):gnt&&(G3(),!1))&&(i=new _Ie(t),i.b=n,sIt(e,i))}function rq(e,t){var n;n=!e.A.Hc((iu(),W0))||e.q==(br(),To),e.u.Hc((Ac(),ja))?n?xHt(e,t):QVe(e,t):e.u.Hc(S1)&&(n?HQt(e,t):nYe(e,t))}function Zy(e,t){var n,i;if(++e.j,t!=null&&(n=(i=e.a.Cb,z(i,97)?c(i,97).Jg():null),YNt(t,n))){pv(e.a,4,n);return}pv(e.a,4,c(t,126))}function dze(e,t,n){return new Pu(b.Math.min(e.a,t.a)-n/2,b.Math.min(e.b,t.b)-n/2,b.Math.abs(e.a-t.a)+n,b.Math.abs(e.b-t.b)+n)}function iMt(e,t){var n,i;return n=Uo(e.a.c.p,t.a.c.p),n!=0?n:(i=Uo(e.a.d.i.p,t.a.d.i.p),i!=0?i:Uo(t.a.d.p,e.a.d.p))}function rMt(e,t,n){var i,r,o,h;return o=t.j,h=n.j,o!=h?o.g-h.g:(i=e.f[t.p],r=e.f[n.p],i==0&&r==0?0:i==0?-1:r==0?1:qi(i,r))}function gze(e,t,n){var i,r,o;if(!n[t.d])for(n[t.d]=!0,r=new $(nm(t));r.a<r.c.c.length;)i=c(I(r),213),o=oj(i,t),gze(e,o,n)}function use(e,t,n){var i;switch(i=n[e.g][t],e.g){case 1:case 3:return new De(0,i);case 2:case 4:return new De(i,0);default:return null}}function sMt(e,t,n){var i,r;r=c(wB(t.f),209);try{r.Ze(e,n),g6t(t.f,r)}catch(o){throw o=fi(o),z(o,102)?(i=o,L(i)):L(o)}}function bze(e,t,n){var i,r,o,h,d,p;return i=null,d=Uce(Py(),t),o=null,d&&(r=null,p=Wce(d,n),h=null,p!=null&&(h=e.Ye(d,p)),r=h,o=r),i=o,i}function oMt(e,t,n,i){var r,o,h;return r=new aa(e.e,1,13,(h=t.c,h||(tt(),Qf)),(o=n.c,o||(tt(),Qf)),Ja(e,t),!1),i?i.Ei(r):i=r,i}function sq(e,t,n,i){var r;if(r=e.length,t>=r)return r;for(t=t>0?t:0;t<r&&!S_((fn(t,e.length),e.charCodeAt(t)),n,i);t++);return t}function Mf(e,t){var n,i;for(i=e.c.length,t.length<i&&(t=ZC(new Array(i),t)),n=0;n<i;++n)bi(t,n,e.c[n]);return t.length>i&&bi(t,i,null),t}function pze(e,t){var n,i;for(i=e.a.length,t.length<i&&(t=ZC(new Array(i),t)),n=0;n<i;++n)bi(t,n,e.a[n]);return t.length>i&&bi(t,i,null),t}function p0(e,t,n){var i,r,o;return r=c(Lt(e.e,t),387),r?(o=Pee(r,n),cDe(e,r),o):(i=new rte(e,t,n),Qn(e.e,t,i),IRe(i),null)}function cMt(e){var t;if(e==null)return null;if(t=tRt(ko(e,!0)),t==null)throw L(new aL("Invalid hexBinary value: '"+e+"'"));return t}function g7(e){return t1(),oo(e,0)<0?oo(e,-1)!=0?new Wse(-1,Sy(e)):IK:oo(e,10)<=0?Vhe[en(e)]:new Wse(1,e)}function oq(){return lP(),_(B(Jnt,1),he,159,0,[Ynt,Vnt,Znt,Qnt,qnt,Hnt,Wnt,Knt,znt,Gnt,Unt,Xnt,Bnt,Fnt,_nt,Rnt,$nt,Lnt,Int,Dnt,Nnt,QK])}function wze(e){var t;this.d=new de,this.j=new Er,this.g=new Er,t=e.g.b,this.f=c(D(Ir(t),(ke(),Ou)),103),this.e=re(ve(pj(t,iw)))}function mze(e){this.b=new de,this.e=new de,this.d=e,this.a=!dO(ni(new ft(null,new vg(new xf(e.b))),new eO(new vOe))).sd((X1(),H4))}function nf(){nf=X,Ct=new U9("PARENTS",0),or=new U9("NODES",1),yh=new U9("EDGES",2),q0=new U9("PORTS",3),dd=new U9("LABELS",4)}function im(){im=X,O1=new V9("DISTRIBUTED",0),vE=new V9("JUSTIFIED",1),iwe=new V9("BEGIN",2),x8=new V9(x4,3),rwe=new V9("END",4)}function uMt(e){var t;switch(t=e.yi(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 cq(e){switch(e.g){case 1:return Yr(),Aa;case 4:return Yr(),ul;case 2:return Yr(),Bl;case 3:return Yr(),Ta}return Yr(),Xh}function lMt(e,t,n){var i;switch(i=n.q.getFullYear()-r1+r1,i<0&&(i=-i),t){case 1:e.a+=i;break;case 2:$h(e,i%100,2);break;default:$h(e,i,t)}}function xn(e,t){var n,i;if(sp(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 FIe(e,t,i)}function gj(){gj=X,FK=new iJ("NUM_OF_EXTERNAL_SIDES_THAN_NUM_OF_EXTENSIONS_LAST",0),hae=new iJ("CORNER_CASES_THAN_SINGLE_SIDE_LAST",1)}function fMt(e){var t,n,i,r;for(i=eNt(e),ir(i,grt),r=e.d,r.c=Y(It,Ce,1,0,5,1),n=new $(i);n.a<n.c.c.length;)t=c(I(n),456),_i(r,t.b)}function vze(e){var t,n,i;for(i=(!e.o&&(e.o=new tu((Io(),E1),Sb,e,0)),e.o),n=i.c.Kc();n.e!=n.i.gc();)t=c(n.nj(),42),t.dd();return DS(i)}function hMt(e){var t;U2(c(D(e,(ke(),Si)),98))&&(t=e.b,rXe((gt(0,t.c.length),c(t.c[0],29))),rXe(c(Ae(t,t.c.length-1),29)))}function yze(e,t){var n,i,r,o;for(n=0,r=new $(t.a);r.a<r.c.c.length;)i=c(I(r),10),o=i.o.a+i.d.c+i.d.b+e.j,n=b.Math.max(n,o);return n}function bj(e){var t,n,i,r;for(r=0,n=0,i=e.length;n<i;n++)t=(fn(n,e.length),e.charCodeAt(n)),t>=64&&t<128&&(r=kf(r,oa(1,t-64)));return r}function pj(e,t){var n,i;return i=null,er(e,(Pn(),r3))&&(n=c(D(e,r3),94),n.Xe(t)&&(i=n.We(t))),i==null&&Ir(e)&&(i=D(Ir(e),t)),i}function Oze(e,t){var n,i,r;r=t.d.i,i=r.k,!(i==(jt(),zi)||i==Rf)&&(n=new Bt(qt(Qi(r).a.Kc(),new Q)),an(n)&&Qn(e.k,t,c(nn(n),17)))}function uq(e,t){var n,i,r;return i=ct(e.Tg(),t),n=t-e.Ah(),n<0?(r=e.Yg(i),r>=0?e.lh(r):Uq(e,i)):n<0?Uq(e,i):c(i,66).Nj().Sj(e,e.yh(),n)}function Te(e){var t;if(z(e.a,4)){if(t=rse(e.a),t==null)throw L(new Es(mJe+e.b+"'. "+wJe+(sa(ME),ME.k)+Ffe));return t}else return e.a}function aMt(e){var t;if(e==null)return null;if(t=DHt(ko(e,!0)),t==null)throw L(new aL("Invalid base64Binary value: '"+e+"'"));return t}function Qt(e){var t;try{return t=e.i.Xb(e.e),e.mj(),e.g=e.e++,t}catch(n){throw n=fi(n),z(n,73)?(e.mj(),L(new Zs)):L(n)}}function lq(e){var t;try{return t=e.c.ki(e.e),e.mj(),e.g=e.e++,t}catch(n){throw n=fi(n),z(n,73)?(e.mj(),L(new Zs)):L(n)}}function Dk(){Dk=X,_ae=(Pn(),Rpe),XK=gpe,ait=n3,Bae=H0,pit=(Aj(),mae),bit=pae,wit=yae,git=bae,dit=(N_(),Rae),WK=lit,Fae=fit,$D=hit}function wj(e){switch(XZ(),this.c=new de,this.d=e,e.g){case 0:case 2:this.a=tne(rde),this.b=Oi;break;case 3:case 1:this.a=rde,this.b=Li}}function kze(e,t,n){var i,r;if(e.c)tc(e.c,e.c.i+t),nc(e.c,e.c.j+n);else for(r=new $(e.b);r.a<r.c.c.length;)i=c(I(r),157),kze(i,t,n)}function dMt(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(!Je(e.j[n],t.j[n]))return!1;return!0}function mj(e,t,n){var i;t.a.length>0&&(ae(e.b,new nNe(t.a,n)),i=t.a.length,0<i?t.a=t.a.substr(0,0):0>i&&(t.a+=oDe(Y(Wu,oh,25,-i,15,1))))}function Sze(e,t){var n,i,r;for(n=e.o,r=c(c(zn(e.r,t),21),84).Kc();r.Ob();)i=c(r.Pb(),111),i.e.a=bjt(i,n.a),i.e.b=n.b*re(ve(i.b.We(DD)))}function gMt(e,t){var n,i,r,o;return r=e.k,n=re(ve(D(e,(fe(),bb)))),o=t.k,i=re(ve(D(t,bb))),o!=(jt(),Ri)?-1:r!=Ri?1:n==i?0:n<i?-1:1}function bMt(e,t){var n,i;return n=c(c(Lt(e.g,t.a),46).a,65),i=c(c(Lt(e.g,t.b),46).a,65),Kd(t.a,t.b)-Kd(t.a,QJ(n.b))-Kd(t.b,QJ(i.b))}function pMt(e,t){var n;return n=c(D(e,(ke(),bs)),74),oF(t,urt)?n?Vu(n):(n=new hc,oe(e,bs,n)):n&&oe(e,bs,null),n}function xze(e){var t;return t=new Md,t.a+="n",e.k!=(jt(),zi)&&pn(pn((t.a+="(",t),aF(e.k).toLowerCase()),")"),pn((t.a+="_",t),m7(e)),t.a}function wMt(e,t){Kt(t,"Self-Loop post-processing",1),Ci(ni(ni(Rs(new ft(null,new dt(e.b,16)),new f5e),new h5e),new a5e),new d5e),_t(t)}function wv(e,t,n,i){var r;return n>=0?e.hh(t,n,i):(e.eh()&&(i=(r=e.Vg(),r>=0?e.Qg(i):e.eh().ih(e,-1-r,null,i))),e.Sg(t,n,i))}function lse(e,t){switch(t){case 7:!e.e&&(e.e=new at(nr,e,7,4)),Ut(e.e);return;case 8:!e.d&&(e.d=new at(nr,e,8,5)),Ut(e.d);return}Gre(e,t)}function rf(e,t){var n;n=e.Zc(t);try{return n.Pb()}catch(i){throw i=fi(i),z(i,109)?L(new us("Can't get element "+t)):L(i)}}function fse(e,t){this.e=e,t<bH?(this.d=1,this.a=_(B(Vt,1),yn,25,15,[t|0])):(this.d=2,this.a=_(B(Vt,1),yn,25,15,[t%bH|0,t/bH|0]))}function Eze(e,t){it();var n,i,r,o;for(n=e,o=t,z(e,21)&&!z(t,21)&&(n=t,o=e),r=n.Kc();r.Ob();)if(i=r.Pb(),o.Hc(i))return!1;return!0}function Nr(e,t,n){var i,r,o,h;return i=e.Xc(t),i!=-1&&(e.ej()?(o=e.fj(),h=vv(e,i),r=e.Zi(4,h,null,i,o),n?n.Ei(r):n=r):vv(e,i)),n}function mMt(e,t,n){var i,r,o,h;return i=e.Xc(t),i!=-1&&(e.ej()?(o=e.fj(),h=aA(e,i),r=e.Zi(4,h,null,i,o),n?n.Ei(r):n=r):aA(e,i)),n}function Cze(e,t){var n;switch(n=c(rs(e.b,t),124).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 mv(){mv=X,Ax=new yT(mP,0),Tx=new yT(AH,1),Mx=new yT(MH,2),jx=new yT(jH,3),Ax.a=!1,Tx.a=!0,Mx.a=!1,jx.a=!0}function Ik(){Ik=X,Px=new vT(mP,0),ID=new vT(AH,1),ND=new vT(MH,2),Dx=new vT(jH,3),Px.a=!1,ID.a=!0,ND.a=!1,Dx.a=!0}function vMt(e){var t;t=e.a;do t=c(nn(new Bt(qt(As(t).a.Kc(),new Q))),17).c.i,t.k==(jt(),sr)&&e.b.Fc(t);while(t.k==(jt(),sr));e.b=c0(e.b)}function yMt(e){var t,n,i;for(i=e.c.a,e.p=(tn(i),new gc(i)),n=new $(i);n.a<n.c.c.length;)t=c(I(n),10),t.p=iNt(t).a;it(),ir(e.p,new JOe)}function Tze(e){var t,n,i,r;if(i=0,r=Tp(e),r.c.length==0)return 1;for(n=new $(r);n.a<n.c.c.length;)t=c(I(n),33),i+=Tze(t);return i}function OMt(e,t){var n,i,r;for(r=0,i=c(c(zn(e.r,t),21),84).Kc();i.Ob();)n=c(i.Pb(),111),r+=n.d.b+n.b.rf().a+n.d.c,i.Ob()&&(r+=e.w);return r}function kMt(e,t){var n,i,r;for(r=0,i=c(c(zn(e.r,t),21),84).Kc();i.Ob();)n=c(i.Pb(),111),r+=n.d.d+n.b.rf().b+n.d.a,i.Ob()&&(r+=e.w);return r}function SMt(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 fq(e,t){return ur(e)?!!_tt[t]:e.hm?!!e.hm[t]:Xb(e)?!!Btt[t]:Wb(e)?!!Ftt[t]:!1}function os(e,t,n){return n==null?(!e.o&&(e.o=new tu((Io(),E1),Sb,e,0)),hj(e.o,t)):(!e.o&&(e.o=new tu((Io(),E1),Sb,e,0)),Mj(e.o,t,n)),e}function xMt(e,t,n,i){var r,o;o=t.Xe((Pn(),e2))?c(t.We(e2),21):e.j,r=dTt(o),r!=(lP(),QK)&&(n&&!sse(r)||boe(nRt(e,r,i),t))}function vj(e,t,n,i){var r,o,h;return o=ct(e.Tg(),t),r=t-e.Ah(),r<0?(h=e.Yg(o),h>=0?e._g(h,n,!0):Xg(e,o,n)):c(o,66).Nj().Pj(e,e.yh(),r,n,i)}function EMt(e,t,n,i){var r,o,h;n.mh(t)&&(Kr(),n_(t)?(r=c(n.ah(t),153),GAt(e,r)):(o=(h=t,h?c(i,49).xh(h):null),o&&T2t(n.ah(t),o)))}function CMt(e){switch(e.g){case 1:return Lg(),Cx;case 3:return Lg(),Ex;case 2:return Lg(),zK;case 4:return Lg(),HK;default:return null}}function hse(e){switch(typeof e){case _Q:return ed(e);case cue:return Di(e);case Ev:return St(),e?1231:1237;default:return e==null?0:gg(e)}}function TMt(e,t,n){if(e.e)switch(e.b){case 1:n8t(e.c,t,n);break;case 0:i8t(e.c,t,n)}else hFe(e.c,t,n);e.a[t.p][n.p]=e.c.i,e.a[n.p][t.p]=e.c.e}function Aze(e){var t,n;if(e==null)return null;for(n=Y(Wh,ue,193,e.length,0,2),t=0;t<n.length;t++)n[t]=c(U7t(e[t],e[t].length),193);return n}function yj(e){var t;if(I_(e))return OA(e),e.Lk()&&(t=qk(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 L(new Zs)}function AMt(e,t){var n,i,r,o;return o=e.o,n=e.p,o<n?o*=o:n*=n,i=o+n,o=t.o,n=t.p,o<n?o*=o:n*=n,r=o+n,i<r?-1:i==r?0:1}function Ja(e,t){var n,i,r;if(r=cKe(e,t),r>=0)return r;if(e.Fk()){for(i=0;i<e.i;++i)if(n=e.Gk(c(e.g[i],56)),ne(n)===ne(t))return i}return-1}function rm(e,t,n){var i,r;if(r=e.gc(),t>=r)throw L(new Zb(t,r));if(e.hi()&&(i=e.Xc(n),i>=0&&i!=t))throw L(new kt(px));return e.mi(t,n)}function ase(e,t){if(this.a=c(tn(e),245),this.b=c(tn(t),245),e.vd(t)>0||e==(oL(),kK)||t==(sL(),SK))throw L(new kt("Invalid range: "+cFe(e,t)))}function Mze(e){var t,n;for(this.b=new de,this.c=e,this.a=!1,n=new $(e.a);n.a<n.c.c.length;)t=c(I(n),10),this.a=this.a|t.k==(jt(),zi)}function MMt(e,t){var n,i,r;for(n=bg(new W1,e),r=new $(t);r.a<r.c.c.length;)i=c(I(r),121),Nl(xl(Sl(El(kl(new Xu,0),0),n),i));return n}function jze(e,t,n){var i,r,o;for(r=new Bt(qt((t?As(e):Qi(e)).a.Kc(),new Q));an(r);)i=c(nn(r),17),o=t?i.c.i:i.d.i,o.k==(jt(),ru)&&hs(o,n)}function mp(){mp=X,zI=new ET(xa,0),bX=new ET("PORT_POSITION",1),Gm=new ET("NODE_SIZE_WHERE_SPACE_PERMITS",2),Um=new ET("NODE_SIZE",3)}function Rh(){Rh=X,sU=new MO("AUTOMATIC",0),oE=new MO(Mv,1),cE=new MO(jv,2),pN=new MO("TOP",3),gN=new MO(Aue,4),bN=new MO(x4,5)}function dse(e,t,n,i){o4();var r,o;for(r=0,o=0;o<n;o++)r=Pr(Cr(Xi(t[o],Jr),Xi(i,Jr)),Xi(en(r),Jr)),e[o]=en(r),r=ep(r,32);return en(r)}function gse(e,t,n){var i,r;for(r=0,i=0;i<qK;i++)r=b.Math.max(r,L_(e.a[t.g][i],n));return t==(ef(),$o)&&e.b&&(r=b.Math.max(r,e.b.b)),r}function Oj(e,t){var n,i;if(dee(t>0),(t&-t)==t)return Di(t*Qc(e,31)*4656612873077393e-25);do n=Qc(e,31),i=n%t;while(n-i+(t-1)<0);return Di(i)}function ed(e){qIe();var t,n,i;return n=":"+e,i=MD[n],i!=null?Di((yt(i),i)):(i=lae[n],t=i==null?vLt(e):Di((yt(i),i)),U6t(),MD[n]=t,t)}function Pze(e,t,n){Kt(n,"Compound graph preprocessor",1),e.a=new Cg,LVe(e,t,null),oqt(e,t),QRt(e),oe(t,(fe(),A1e),e.a),e.a=null,Cc(e.b),_t(n)}function jMt(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 PMt(e){var t,n,i;for(i=c(zn(e.a,(lm(),hI)),15).Kc();i.Ob();)n=c(i.Pb(),101),t=Ese(n),uy(e,n,t[0],(Rg(),fb),0),uy(e,n,t[1],hb,1)}function DMt(e){var t,n,i;for(i=c(zn(e.a,(lm(),aI)),15).Kc();i.Ob();)n=c(i.Pb(),101),t=Ese(n),uy(e,n,t[0],(Rg(),fb),0),uy(e,n,t[1],hb,1)}function hq(e){switch(e.g){case 0:return null;case 1:return new Pqe;case 2:return new SZ;default:throw L(new kt(Az+(e.f!=null?e.f:""+e.g)))}}function b7(e,t,n){var i,r;for(eCt(e,t-e.s,n-e.t),r=new $(e.n);r.a<r.c.c.length;)i=c(I(r),211),o2t(i,i.e+t-e.s),c2t(i,i.f+n-e.t);e.s=t,e.t=n}function IMt(e){var t,n,i,r,o;for(n=0,r=new $(e.a);r.a<r.c.c.length;)i=c(I(r),121),i.d=n++;return t=fIt(e),o=null,t.c.length>1&&(o=MMt(e,t)),o}function aq(e){var t;return e.f&&e.f.kh()&&(t=c(e.f,49),e.f=c(Vd(e,t),82),e.f!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,9,8,t,e.f))),e.f}function dq(e){var t;return e.i&&e.i.kh()&&(t=c(e.i,49),e.i=c(Vd(e,t),82),e.i!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,9,7,t,e.i))),e.i}function Xr(e){var t;return e.b&&(e.b.Db&64)!=0&&(t=e.b,e.b=c(Vd(e,t),18),e.b!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,9,21,t,e.b))),e.b}function kj(e,t){var n,i,r;e.d==null?(++e.e,++e.f):(i=t.Sh(),GRt(e,e.f+1),r=(i&Bn)%e.d.length,n=e.d[r],!n&&(n=e.d[r]=e.uj()),n.Fc(t),++e.f)}function bse(e,t,n){var i;return t.Kj()?!1:t.Zj()!=-2?(i=t.zj(),i==null?n==null:qn(i,n)):t.Hj()==e.e.Tg()&&n==null}function Sj(){var e;du(16,TYe),e=kqe(16),this.b=Y(EK,G7,317,e,0,1),this.c=Y(EK,G7,317,e,0,1),this.a=null,this.e=null,this.i=0,this.f=e-1,this.g=0}function va(e){Iee.call(this),this.k=(jt(),zi),this.j=(du(6,Dp),new jo(6)),this.b=(du(2,Dp),new jo(2)),this.d=new eL,this.f=new gZ,this.a=e}function NMt(e){var t,n;e.c.length<=1||(t=MUe(e,(me(),Wt)),wWe(e,c(t.a,19).a,c(t.b,19).a),n=MUe(e,xt),wWe(e,c(n.a,19).a,c(n.b,19).a))}function Nk(){Nk=X,oge=new z9("SIMPLE",0),wX=new z9(WH,1),mX=new z9("LINEAR_SEGMENTS",2),n8=new z9("BRANDES_KOEPF",3),i8=new z9(JZe,4)}function pse(e,t,n){U2(c(D(t,(ke(),Si)),98))||(fie(e,t,td(t,n)),fie(e,t,td(t,(me(),Wt))),fie(e,t,td(t,Ot)),it(),ir(t.j,new IEe(e)))}function Dze(e,t,n,i){var r,o,h;for(r=c(zn(i?e.a:e.b,t),21),h=r.Kc();h.Ob();)if(o=c(h.Pb(),33),Xj(e,n,o))return!0;return!1}function gq(e){var t,n;for(n=new Ft(e);n.e!=n.i.gc();)if(t=c(Qt(n),87),t.e||(!t.d&&(t.d=new Bi(ns,t,1)),t.d).i!=0)return!0;return!1}function bq(e){var t,n;for(n=new Ft(e);n.e!=n.i.gc();)if(t=c(Qt(n),87),t.e||(!t.d&&(t.d=new Bi(ns,t,1)),t.d).i!=0)return!0;return!1}function $Mt(e){var t,n,i;for(t=0,i=new $(e.c.a);i.a<i.c.c.length;)n=c(I(i),10),t+=fa(new Bt(qt(Qi(n).a.Kc(),new Q)));return t/e.c.a.c.length}function Ize(e){var t,n;for(e.c||Hqt(e),n=new hc,t=new $(e.a),I(t);t.a<t.c.c.length;)En(n,c(I(t),407).a);return $t(n.b!=0),$u(n,n.c.b),n}function pq(){pq=X,Wbe=(lQ(),Qbe),Kbe=new dg(8),new Wr((Pn(),H0),Kbe),new Wr(z0,8),tft=_be,Hbe=Xlt,zbe=Ult,eft=new Wr(aE,(St(),!1))}function wse(e,t,n,i){switch(t){case 7:return!e.e&&(e.e=new at(nr,e,7,4)),e.e;case 8:return!e.d&&(e.d=new at(nr,e,8,5)),e.d}return Lre(e,t,n,i)}function wq(e){var t;return e.a&&e.a.kh()&&(t=c(e.a,49),e.a=c(Vd(e,t),138),e.a!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&_n(e,new rr(e,9,5,t,e.a))),e.a}function w0(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 mq(e,t){if(e==null)throw L(new R2("null key in entry: null="+t));if(t==null)throw L(new R2("null value in entry: "+e+"=null"))}function RMt(e,t){for(var n,i;e.Ob();)if(!t.Ob()||(n=e.Pb(),i=t.Pb(),!(ne(n)===ne(i)||n!=null&&qn(n,i))))return!1;return!t.Ob()}function Nze(e,t){var n;return n=_(B(hr,1),cs,25,15,[L_(e.a[0],t),L_(e.a[1],t),L_(e.a[2],t)]),e.d&&(n[0]=b.Math.max(n[0],n[2]),n[2]=n[0]),n}function $ze(e,t){var n;return n=_(B(hr,1),cs,25,15,[ZM(e.a[0],t),ZM(e.a[1],t),ZM(e.a[2],t)]),e.d&&(n[0]=b.Math.max(n[0],n[2]),n[2]=n[0]),n}function m0(){m0=X,CW=new H9("GREEDY",0),s1e=new H9(BZe,1),TW=new H9(WH,2),H6=new H9("MODEL_ORDER",3),Q6=new H9("GREEDY_MODEL_ORDER",4)}function Rze(e,t){var n,i,r;for(e.b[t.g]=1,i=xn(t.d,0);i.b!=i.d.c;)n=c(Sn(i),188),r=n.c,e.b[r.g]==1?En(e.a,n):e.b[r.g]==2?e.b[r.g]=1:Rze(e,r)}function LMt(e,t){var n,i,r;for(r=new jo(t.gc()),i=t.Kc();i.Ob();)n=c(i.Pb(),286),n.c==n.f?s4(e,n,n.c):$It(e,n)||(r.c[r.c.length]=n);return r}function FMt(e,t,n){var i,r,o,h,d;for(d=e.r+t,e.r+=t,e.d+=n,i=n/e.n.c.length,r=0,h=new $(e.n);h.a<h.c.c.length;)o=c(I(h),211),X$t(o,d,i,r),++r}function BMt(e){var t,n,i;for(cO(e.b.a),e.a=Y(jD,Ce,57,e.c.c.a.b.c.length,0,1),t=0,i=new $(e.c.c.a.b);i.a<i.c.c.length;)n=c(I(i),57),n.f=t++}function _Mt(e){var t,n,i;for(cO(e.b.a),e.a=Y(nW,Ce,81,e.c.a.a.b.c.length,0,1),t=0,i=new $(e.c.a.a.b);i.a<i.c.c.length;)n=c(I(i),81),n.i=t++}function qMt(e,t,n){var i;Kt(n,"Shrinking tree compaction",1),Pe(je(D(t,(Ny(),L6))))?(tEt(e,t.f),b_e(t.f,(i=t.c,i))):b_e(t.f,t.c),_t(n)}function Lze(e){var t;if(t=qCt(e),!an(e))throw L(new us("position (0) must be less than the number of elements that remained ("+t+")"));return nn(e)}function Fze(e,t,n){var i;try{return sm(e,t+e.j,n+e.k)}catch(r){throw r=fi(r),z(r,73)?(i=r,L(new us(i.g+yP+t+qr+n+")."))):L(r)}}function QMt(e,t,n){var i;try{return qze(e,t+e.j,n+e.k)}catch(r){throw r=fi(r),z(r,73)?(i=r,L(new us(i.g+yP+t+qr+n+")."))):L(r)}}function HMt(e,t,n){var i;try{return Qze(e,t+e.j,n+e.k)}catch(r){throw r=fi(r),z(r,73)?(i=r,L(new us(i.g+yP+t+qr+n+")."))):L(r)}}function Bze(e){switch(e.g){case 1:return me(),xt;case 4:return me(),Ot;case 3:return me(),Tt;case 2:return me(),Wt;default:return me(),qs}}function zMt(e,t,n){t.k==(jt(),zi)&&n.k==sr&&(e.d=q_(t,(me(),Wt)),e.b=q_(t,Ot)),n.k==zi&&t.k==sr&&(e.d=q_(n,(me(),Ot)),e.b=q_(n,Wt))}function vq(e,t){var n,i,r;for(r=Fs(e,t),i=r.Kc();i.Ob();)if(n=c(i.Pb(),11),D(n,(fe(),Mc))!=null||HO(new xf(n.b)))return!0;return!1}function mse(e,t){return tc(t,e.e+e.d+(e.c.c.length==0?0:e.b)),nc(t,e.f),e.a=b.Math.max(e.a,t.f),e.d+=t.g+(e.c.c.length==0?0:e.b),ae(e.c,t),!0}function KMt(e,t,n){var i,r,o,h;for(h=0,i=n/e.a.c.length,o=new $(e.a);o.a<o.c.c.length;)r=c(I(o),187),b7(r,r.s,r.t+h*i),FMt(r,e.d-r.r+t,i),++h}function WMt(e){var t,n,i,r,o;for(i=new $(e.b);i.a<i.c.c.length;)for(n=c(I(i),29),t=0,o=new $(n.a);o.a<o.c.c.length;)r=c(I(o),10),r.p=t++}function XMt(e,t){var n,i,r,o,h,d;for(r=t.length-1,h=0,d=0,i=0;i<=r;i++)o=t[i],n=aIt(r,i)*kre(1-e,r-i)*kre(e,i),h+=o.a*n,d+=o.b*n;return new De(h,d)}function _ze(e,t){var n,i,r,o,h;for(n=t.gc(),e.qi(e.i+n),o=t.Kc(),h=e.i,e.i+=n,i=h;i<e.i;++i)r=o.Pb(),_O(e,i,e.oi(i,r)),e.bi(i,r),e.ci();return n!=0}function UMt(e,t,n){var i,r,o;return e.ej()?(i=e.Vi(),o=e.fj(),++e.j,e.Hi(i,e.oi(i,t)),r=e.Zi(3,null,t,i,o),n?n.Ei(r):n=r):nIe(e,e.Vi(),t),n}function GMt(e,t,n){var i,r,o;return i=c(W(ao(e.a),t),87),o=(r=i.c,z(r,88)?c(r,26):(tt(),pl)),((o.Db&64)!=0?Vd(e.b,o):o)==n?Zj(i):Ey(i,n),o}function vse(e,t,n,i,r,o,h,d){var p,m;i&&(p=i.a[0],p&&vse(e,t,n,p,r,o,h),Sjt(e,n,i.d,r,o,h)&&t.Fc(i),m=i.a[1],m&&vse(e,t,n,m,r,o,h))}function VMt(e,t){var n;return e.a||(n=Y(hr,cs,25,0,15,1),Dw(e.b.a,new yxe(n)),n.sort(W_e(ht.prototype.te,ht,[])),e.a=new NIe(n,e.d)),fM(e.a,t)}function sm(e,t,n){try{return hg(d_(e,t,n),1)}catch(i){throw i=fi(i),z(i,320)?L(new us(PH+e.o+"*"+e.p+DH+t+qr+n+IH)):L(i)}}function qze(e,t,n){try{return hg(d_(e,t,n),0)}catch(i){throw i=fi(i),z(i,320)?L(new us(PH+e.o+"*"+e.p+DH+t+qr+n+IH)):L(i)}}function Qze(e,t,n){try{return hg(d_(e,t,n),2)}catch(i){throw i=fi(i),z(i,320)?L(new us(PH+e.o+"*"+e.p+DH+t+qr+n+IH)):L(i)}}function Hze(e,t){if(e.g==-1)throw L(new fc);e.mj();try{e.d._c(e.g,t),e.f=e.d.j}catch(n){throw n=fi(n),z(n,73)?L(new Au):L(n)}}function YMt(e,t,n){Kt(n,"Linear segments node placement",1),e.b=c(D(t,(fe(),zm)),304),hzt(e,t),U_t(e,t),fqt(e,t),zHt(e),e.a=null,e.b=null,_t(n)}function p7(e,t){var n,i,r,o;for(o=e.gc(),t.length<o&&(t=ZC(new Array(o),t)),r=t,i=e.Kc(),n=0;n<o;++n)bi(r,n,i.Pb());return t.length>o&&bi(t,o,null),t}function ZMt(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(qn(t,e.Xb(n)))return n;return-1}function yq(e,t){var n,i,r;return n=t.cd(),r=t.dd(),i=e.xc(n),!(!(ne(r)===ne(i)||r!=null&&qn(r,i))||i==null&&!e._b(n))}function JMt(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),Bo(n,i,r)}function ejt(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 tjt(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 yse(e,t,n,i){var r,o;this.a=t,this.c=i,r=e.a,Hmt(this,new De(-r.c,-r.d)),Wn(this.b,n),o=i/2,t.a?iS(this.b,0,o):iS(this.b,o,0),ae(e.c,this)}function xj(){xj=X,KX=new TT(xa,0),rbe=new TT(_Ze,1),sbe=new TT("EDGE_LENGTH_BY_POSITION",2),ibe=new TT("CROSSING_MINIMIZATION_BY_POSITION",3)}function Oq(e,t){var n,i;if(n=c(Gw(e.g,t),33),n)return n;if(i=c(Gw(e.j,t),118),i)return i;throw L(new Uf("Referenced shape does not exist: "+t))}function njt(e,t){if(e.c==t)return e.d;if(e.d==t)return e.c;throw L(new kt("Node 'one' must be either source or target of edge 'edge'."))}function ijt(e,t){if(e.c.i==t)return e.d.i;if(e.d.i==t)return e.c.i;throw L(new kt("Node "+t+" is neither source nor target of edge "+e))}function rjt(e,t){var n;switch(t.g){case 2:case 4:n=e.a,e.c.d.n.b<n.d.n.b&&(n=e.c),Ha(e,t,(Tf(),gW),n);break;case 1:case 3:Ha(e,t,(Tf(),Qv),null)}}function kq(e,t,n,i,r,o){var h,d,p,m,v;for(h=cPt(t,n,o),d=n==(me(),Ot)||n==xt?-1:1,m=e[n.g],v=0;v<m.length;v++)p=m[v],p>0&&(p+=r),m[v]=h,h+=d*(p+i)}function zze(e){var t,n,i;for(i=e.f,e.n=Y(hr,cs,25,i,15,1),e.d=Y(hr,cs,25,i,15,1),t=0;t<i;t++)n=c(Ae(e.c.b,t),29),e.n[t]=yze(e,n),e.d[t]=tUe(e,n)}function Sq(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 Kze(e,t){var n,i,r,o,h;for(h=Qo(e.e.Tg(),t),o=null,n=c(e.g,119),r=0;r<e.i;++r)i=n[r],h.rl(i.ak())&&(!o&&(o=new DC),rn(o,i));o&&iYe(e,o)}function Wze(e){var t,n,i;if(!e)return null;if(e.dc())return"";for(i=new Fa,n=e.Kc();n.Ob();)t=n.Pb(),is(i,ln(t)),i.a+=" ";return eF(i,i.a.length-1)}function Ose(e,t,n){var i,r,o,h,d;for(fCt(e),r=(e.k==null&&(e.k=Y(TK,ue,78,0,0,1)),e.k),o=0,h=r.length;o<h;++o)i=r[o],Ose(i);d=e.f,d&&Ose(d)}function Xze(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 zg(e){var t,n,i;for(n=new $(e.a.b);n.a<n.c.c.length;)t=c(I(n),57),t.c.$b();Rd(e.d)?i=e.a.c:i=e.a.d,ec(i,new Pxe(e)),e.c.Me(e),mUe(e)}function Uze(e){var t,n,i,r;for(n=new $(e.e.c);n.a<n.c.c.length;){for(t=c(I(n),282),r=new $(t.b);r.a<r.c.c.length;)i=c(I(r),447),Fce(i);_We(t)}}function Ej(e){var t,n,i,r,o;for(i=0,o=0,r=0,n=new $(e.a);n.a<n.c.c.length;)t=c(I(n),187),o=b.Math.max(o,t.r),i+=t.d+(r>0?e.c:0),++r;e.b=i,e.d=o}function sjt(e,t){var n,i,r,o,h;for(i=0,r=0,n=0,h=new $(t);h.a<h.c.c.length;)o=c(I(h),200),i=b.Math.max(i,o.e),r+=o.b+(n>0?e.g:0),++n;e.c=r,e.d=i}function Gze(e,t){var n;return n=_(B(hr,1),cs,25,15,[gse(e,(ef(),Xs),t),gse(e,$o,t),gse(e,Us,t)]),e.f&&(n[0]=b.Math.max(n[0],n[2]),n[2]=n[0]),n}function ojt(e,t,n){var i;try{Vj(e,t+e.j,n+e.k,!1,!0)}catch(r){throw r=fi(r),z(r,73)?(i=r,L(new us(i.g+yP+t+qr+n+")."))):L(r)}}function cjt(e,t,n){var i;try{Vj(e,t+e.j,n+e.k,!0,!1)}catch(r){throw r=fi(r),z(r,73)?(i=r,L(new us(i.g+yP+t+qr+n+")."))):L(r)}}function Vze(e){var t;er(e,(ke(),pb))&&(t=c(D(e,pb),21),t.Hc((Ep(),_l))?(t.Mc(_l),t.Fc(ql)):t.Hc(ql)&&(t.Mc(ql),t.Fc(_l)))}function Yze(e){var t;er(e,(ke(),pb))&&(t=c(D(e,pb),21),t.Hc((Ep(),Hl))?(t.Mc(Hl),t.Fc(fl)):t.Hc(fl)&&(t.Mc(fl),t.Fc(Hl)))}function ujt(e,t,n){Kt(n,"Self-Loop ordering",1),Ci(Vo(ni(ni(Rs(new ft(null,new dt(t.b,16)),new s5e),new o5e),new c5e),new u5e),new cEe(e)),_t(n)}function w7(e,t,n,i){var r,o;for(r=t;r<e.c.length;r++)if(o=(gt(r,e.c.length),c(e.c[r],11)),n.Mb(o))i.c[i.c.length]=o;else return r;return e.c.length}function xq(e,t,n,i){var r,o,h,d;return e.a==null&&hIt(e,t),h=t.b.j.c.length,o=n.d.p,d=i.d.p,r=d-1,r<0&&(r=h-1),o<=r?e.a[r]-e.a[o]:e.a[h-1]-e.a[o]+e.a[r]}function ljt(e){var t,n;if(!e.b)for(e.b=eM(c(e.f,33).Ag().i),n=new Ft(c(e.f,33).Ag());n.e!=n.i.gc();)t=c(Qt(n),137),ae(e.b,new hL(t));return e.b}function fjt(e){var t,n;if(!e.e)for(e.e=eM(sB(c(e.f,33)).i),n=new Ft(sB(c(e.f,33)));n.e!=n.i.gc();)t=c(Qt(n),118),ae(e.e,new YCe(t));return e.e}function Zze(e){var t,n;if(!e.a)for(e.a=eM(FA(c(e.f,33)).i),n=new Ft(FA(c(e.f,33)));n.e!=n.i.gc();)t=c(Qt(n),33),ae(e.a,new fF(e,t));return e.a}function Kg(e){var t;if(!e.C&&(e.D!=null||e.B!=null))if(t=PQt(e),t)e.yk(t);else try{e.yk(null)}catch(n){if(n=fi(n),!z(n,60))throw L(n)}return e.C}function hjt(e){switch(e.q.g){case 5:kKe(e,(me(),Ot)),kKe(e,Wt);break;case 4:gVe(e,(me(),Ot)),gVe(e,Wt);break;default:SWe(e,(me(),Ot)),SWe(e,Wt)}}function ajt(e){switch(e.q.g){case 5:SKe(e,(me(),Tt)),SKe(e,xt);break;case 4:bVe(e,(me(),Tt)),bVe(e,xt);break;default:xWe(e,(me(),Tt)),xWe(e,xt)}}function om(e,t){var n,i,r;for(r=new Er,i=e.Kc();i.Ob();)n=c(i.Pb(),37),Wk(n,r.a,0),r.a+=n.f.a+t,r.b=b.Math.max(r.b,n.f.b);return r.b>0&&(r.b+=t),r}function Cj(e,t){var n,i,r;for(r=new Er,i=e.Kc();i.Ob();)n=c(i.Pb(),37),Wk(n,0,r.b),r.b+=n.f.b+t,r.a=b.Math.max(r.a,n.f.a);return r.a>0&&(r.a+=t),r}function Jze(e){var t,n,i;for(i=Bn,n=new $(e.a);n.a<n.c.c.length;)t=c(I(n),10),er(t,(fe(),fo))&&(i=b.Math.min(i,c(D(t,fo),19).a));return i}function eKe(e,t){var n,i;if(t.length==0)return 0;for(n=rB(e.a,t[0],(me(),xt)),n+=rB(e.a,t[t.length-1],Tt),i=0;i<t.length;i++)n+=GDt(e,i,t);return n}function tKe(){zk(),this.c=new de,this.i=new de,this.e=new ra,this.f=new ra,this.g=new ra,this.j=new de,this.a=new de,this.b=new Zt,this.k=new Zt}function Eq(e,t){var n,i;return e.Db>>16==6?e.Cb.ih(e,5,ff,t):(i=Xr(c(ct((n=c(mt(e,16),26),n||e.zh()),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,t))}function djt(e){gy();var t=e.e;if(t&&t.stack){var n=t.stack,i=t+`
|
|
4
4
|
`;return n.substring(0,i.length)==i&&(n=n.substring(i.length)),n.split(`
|
|
@@ -39,7 +39,7 @@ Consider installing the package or pass your own 'workerFactory' to ELK's constr
|
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var Tat;function NKt(){if(Tat)return hme;Tat=1;var l=H0t(),s=IKt();function u(C,T){return C===T&&(C!==0||1/C===1/T)||C!==C&&T!==T}var a=typeof Object.is=="function"?Object.is:u,g=s.useSyncExternalStore,w=l.useRef,b=l.useEffect,y=l.useMemo,x=l.useDebugValue;return hme.useSyncExternalStoreWithSelector=function(C,T,j,N,F){var Q=w(null);if(Q.current===null){var V={hasValue:!1,value:null};Q.current=V}else V=Q.current;Q=y(function(){function te(Me){if(!le){if(le=!0,Se=Me,Me=N(Me),F!==void 0&&V.hasValue){var _e=V.value;if(F(_e,Me))return be=_e}return be=Me}if(_e=be,a(Se,Me))return _e;var rt=N(Me);return F!==void 0&&F(_e,rt)?(Se=Me,_e):(Se=Me,be=rt)}var le=!1,Se,be,xe=j===void 0?null:j;return[function(){return te(T())},xe===null?void 0:function(){return te(xe())}]},[T,j,N,F]);var ee=g(C,Q[0],Q[1]);return b(function(){V.hasValue=!0,V.value=ee},[ee]),x(ee),ee},hme}var Aat;function $Kt(){return Aat||(Aat=1,fme.exports=NKt()),fme.exports}var RKt=$Kt();const LKt=Q0t(RKt),FKt={},Mat=l=>{let s;const u=new Set,a=(T,j)=>{const N=typeof T=="function"?T(s):T;if(!Object.is(N,s)){const F=s;s=j??(typeof N!="object"||N===null)?N:Object.assign({},s,N),u.forEach(Q=>Q(s,F))}},g=()=>s,x={setState:a,getState:g,getInitialState:()=>C,subscribe:T=>(u.add(T),()=>u.delete(T)),destroy:()=>{(FKt?"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(a,g,x);return x},BKt=l=>l?Mat(l):Mat,{useDebugValue:_Kt}=In,{useSyncExternalStoreWithSelector:qKt}=LKt,QKt=l=>l;function G0t(l,s=QKt,u){const a=qKt(l.subscribe,l.getState,l.getServerState||l.getInitialState,s,u);return _Kt(a),a}const jat=(l,s)=>{const u=BKt(l),a=(g,w=s)=>G0t(u,g,w);return Object.assign(a,u),a},HKt=(l,s)=>l?jat(l,s):jat;function F1(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[a,g]of l)if(!Object.is(g,s.get(a)))return!1;return!0}if(l instanceof Set&&s instanceof Set){if(l.size!==s.size)return!1;for(const a of l)if(!s.has(a))return!1;return!0}const u=Object.keys(l);if(u.length!==Object.keys(s).length)return!1;for(const a of u)if(!Object.prototype.hasOwnProperty.call(s,a)||!Object.is(l[a],s[a]))return!1;return!0}var zKt={value:()=>{}};function jV(){for(var l=0,s=arguments.length,u={},a;l<s;++l){if(!(a=arguments[l]+"")||a in u||/[\s.]/.test(a))throw new Error("illegal type: "+a);u[a]=[]}return new MG(u)}function MG(l){this._=l}function KKt(l,s){return l.trim().split(/^|\s+/).map(function(u){var a="",g=u.indexOf(".");if(g>=0&&(a=u.slice(g+1),u=u.slice(0,g)),u&&!s.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:a}})}MG.prototype=jV.prototype={constructor:MG,on:function(l,s){var u=this._,a=KKt(l+"",u),g,w=-1,b=a.length;if(arguments.length<2){for(;++w<b;)if((g=(l=a[w]).type)&&(g=WKt(u[g],l.name)))return g;return}if(s!=null&&typeof s!="function")throw new Error("invalid callback: "+s);for(;++w<b;)if(g=(l=a[w]).type)u[g]=Pat(u[g],l.name,s);else if(s==null)for(g in u)u[g]=Pat(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 MG(l)},call:function(l,s){if((g=arguments.length-2)>0)for(var u=new Array(g),a=0,g,w;a<g;++a)u[a]=arguments[a+2];if(!this._.hasOwnProperty(l))throw new Error("unknown type: "+l);for(w=this._[l],a=0,g=w.length;a<g;++a)w[a].value.apply(s,u)},apply:function(l,s,u){if(!this._.hasOwnProperty(l))throw new Error("unknown type: "+l);for(var a=this._[l],g=0,w=a.length;g<w;++g)a[g].value.apply(s,u)}};function WKt(l,s){for(var u=0,a=l.length,g;u<a;++u)if((g=l[u]).name===s)return g.value}function Pat(l,s,u){for(var a=0,g=l.length;a<g;++a)if(l[a].name===s){l[a]=zKt,l=l.slice(0,a).concat(l.slice(a+1));break}return u!=null&&l.push({name:s,value:u}),l}var h2e="http://www.w3.org/1999/xhtml";const Dat={svg:"http://www.w3.org/2000/svg",xhtml:h2e,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function PV(l){var s=l+="",u=s.indexOf(":");return u>=0&&(s=l.slice(0,u))!=="xmlns"&&(l=l.slice(u+1)),Dat.hasOwnProperty(s)?{space:Dat[s],local:l}:l}function XKt(l){return function(){var s=this.ownerDocument,u=this.namespaceURI;return u===h2e&&s.documentElement.namespaceURI===h2e?s.createElement(l):s.createElementNS(u,l)}}function UKt(l){return function(){return this.ownerDocument.createElementNS(l.space,l.local)}}function V0t(l){var s=PV(l);return(s.local?UKt:XKt)(s)}function GKt(){}function Mve(l){return l==null?GKt:function(){return this.querySelector(l)}}function VKt(l){typeof l!="function"&&(l=Mve(l));for(var s=this._groups,u=s.length,a=new Array(u),g=0;g<u;++g)for(var w=s[g],b=w.length,y=a[g]=new Array(b),x,C,T=0;T<b;++T)(x=w[T])&&(C=l.call(x,x.__data__,T,w))&&("__data__"in x&&(C.__data__=x.__data__),y[T]=C);return new Z0(a,this._parents)}function YKt(l){return l==null?[]:Array.isArray(l)?l:Array.from(l)}function ZKt(){return[]}function Y0t(l){return l==null?ZKt:function(){return this.querySelectorAll(l)}}function JKt(l){return function(){return YKt(l.apply(this,arguments))}}function eWt(l){typeof l=="function"?l=JKt(l):l=Y0t(l);for(var s=this._groups,u=s.length,a=[],g=[],w=0;w<u;++w)for(var b=s[w],y=b.length,x,C=0;C<y;++C)(x=b[C])&&(a.push(l.call(x,x.__data__,C,b)),g.push(x));return new Z0(a,g)}function Z0t(l){return function(){return this.matches(l)}}function J0t(l){return function(s){return s.matches(l)}}var tWt=Array.prototype.find;function nWt(l){return function(){return tWt.call(this.children,l)}}function iWt(){return this.firstElementChild}function rWt(l){return this.select(l==null?iWt:nWt(typeof l=="function"?l:J0t(l)))}var sWt=Array.prototype.filter;function oWt(){return Array.from(this.children)}function cWt(l){return function(){return sWt.call(this.children,l)}}function uWt(l){return this.selectAll(l==null?oWt:cWt(typeof l=="function"?l:J0t(l)))}function lWt(l){typeof l!="function"&&(l=Z0t(l));for(var s=this._groups,u=s.length,a=new Array(u),g=0;g<u;++g)for(var w=s[g],b=w.length,y=a[g]=[],x,C=0;C<b;++C)(x=w[C])&&l.call(x,x.__data__,C,w)&&y.push(x);return new Z0(a,this._parents)}function egt(l){return new Array(l.length)}function fWt(){return new Z0(this._enter||this._groups.map(egt),this._parents)}function XG(l,s){this.ownerDocument=l.ownerDocument,this.namespaceURI=l.namespaceURI,this._next=null,this._parent=l,this.__data__=s}XG.prototype={constructor:XG,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 hWt(l){return function(){return l}}function aWt(l,s,u,a,g,w){for(var b=0,y,x=s.length,C=w.length;b<C;++b)(y=s[b])?(y.__data__=w[b],a[b]=y):u[b]=new XG(l,w[b]);for(;b<x;++b)(y=s[b])&&(g[b]=y)}function dWt(l,s,u,a,g,w,b){var y,x,C=new Map,T=s.length,j=w.length,N=new Array(T),F;for(y=0;y<T;++y)(x=s[y])&&(N[y]=F=b.call(x,x.__data__,y,s)+"",C.has(F)?g[y]=x:C.set(F,x));for(y=0;y<j;++y)F=b.call(l,w[y],y,w)+"",(x=C.get(F))?(a[y]=x,x.__data__=w[y],C.delete(F)):u[y]=new XG(l,w[y]);for(y=0;y<T;++y)(x=s[y])&&C.get(N[y])===x&&(g[y]=x)}function gWt(l){return l.__data__}function bWt(l,s){if(!arguments.length)return Array.from(this,gWt);var u=s?dWt:aWt,a=this._parents,g=this._groups;typeof l!="function"&&(l=hWt(l));for(var w=g.length,b=new Array(w),y=new Array(w),x=new Array(w),C=0;C<w;++C){var T=a[C],j=g[C],N=j.length,F=pWt(l.call(T,T&&T.__data__,C,a)),Q=F.length,V=y[C]=new Array(Q),ee=b[C]=new Array(Q),te=x[C]=new Array(N);u(T,j,V,ee,te,F,s);for(var le=0,Se=0,be,xe;le<Q;++le)if(be=V[le]){for(le>=Se&&(Se=le+1);!(xe=ee[Se])&&++Se<Q;);be._next=xe||null}}return b=new Z0(b,a),b._enter=y,b._exit=x,b}function pWt(l){return typeof l=="object"&&"length"in l?l:Array.from(l)}function wWt(){return new Z0(this._exit||this._groups.map(egt),this._parents)}function mWt(l,s,u){var a=this.enter(),g=this,w=this.exit();return typeof l=="function"?(a=l(a),a&&(a=a.selection())):a=a.append(l+""),s!=null&&(g=s(g),g&&(g=g.selection())),u==null?w.remove():u(w),a&&g?a.merge(g).order():g}function vWt(l){for(var s=l.selection?l.selection():l,u=this._groups,a=s._groups,g=u.length,w=a.length,b=Math.min(g,w),y=new Array(g),x=0;x<b;++x)for(var C=u[x],T=a[x],j=C.length,N=y[x]=new Array(j),F,Q=0;Q<j;++Q)(F=C[Q]||T[Q])&&(N[Q]=F);for(;x<g;++x)y[x]=u[x];return new Z0(y,this._parents)}function yWt(){for(var l=this._groups,s=-1,u=l.length;++s<u;)for(var a=l[s],g=a.length-1,w=a[g],b;--g>=0;)(b=a[g])&&(w&&b.compareDocumentPosition(w)^4&&w.parentNode.insertBefore(b,w),w=b);return this}function OWt(l){l||(l=kWt);function s(j,N){return j&&N?l(j.__data__,N.__data__):!j-!N}for(var u=this._groups,a=u.length,g=new Array(a),w=0;w<a;++w){for(var b=u[w],y=b.length,x=g[w]=new Array(y),C,T=0;T<y;++T)(C=b[T])&&(x[T]=C);x.sort(s)}return new Z0(g,this._parents).order()}function kWt(l,s){return l<s?-1:l>s?1:l>=s?0:NaN}function SWt(){var l=arguments[0];return arguments[0]=this,l.apply(null,arguments),this}function xWt(){return Array.from(this)}function EWt(){for(var l=this._groups,s=0,u=l.length;s<u;++s)for(var a=l[s],g=0,w=a.length;g<w;++g){var b=a[g];if(b)return b}return null}function CWt(){let l=0;for(const s of this)++l;return l}function TWt(){return!this.node()}function AWt(l){for(var s=this._groups,u=0,a=s.length;u<a;++u)for(var g=s[u],w=0,b=g.length,y;w<b;++w)(y=g[w])&&l.call(y,y.__data__,w,g);return this}function MWt(l){return function(){this.removeAttribute(l)}}function jWt(l){return function(){this.removeAttributeNS(l.space,l.local)}}function PWt(l,s){return function(){this.setAttribute(l,s)}}function DWt(l,s){return function(){this.setAttributeNS(l.space,l.local,s)}}function IWt(l,s){return function(){var u=s.apply(this,arguments);u==null?this.removeAttribute(l):this.setAttribute(l,u)}}function NWt(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 $Wt(l,s){var u=PV(l);if(arguments.length<2){var a=this.node();return u.local?a.getAttributeNS(u.space,u.local):a.getAttribute(u)}return this.each((s==null?u.local?jWt:MWt:typeof s=="function"?u.local?NWt:IWt:u.local?DWt:PWt)(u,s))}function tgt(l){return l.ownerDocument&&l.ownerDocument.defaultView||l.document&&l||l.defaultView}function RWt(l){return function(){this.style.removeProperty(l)}}function LWt(l,s,u){return function(){this.style.setProperty(l,s,u)}}function FWt(l,s,u){return function(){var a=s.apply(this,arguments);a==null?this.style.removeProperty(l):this.style.setProperty(l,a,u)}}function BWt(l,s,u){return arguments.length>1?this.each((s==null?RWt:typeof s=="function"?FWt:LWt)(l,s,u??"")):cC(this.node(),l)}function cC(l,s){return l.style.getPropertyValue(s)||tgt(l).getComputedStyle(l,null).getPropertyValue(s)}function _Wt(l){return function(){delete this[l]}}function qWt(l,s){return function(){this[l]=s}}function QWt(l,s){return function(){var u=s.apply(this,arguments);u==null?delete this[l]:this[l]=u}}function HWt(l,s){return arguments.length>1?this.each((s==null?_Wt:typeof s=="function"?QWt:qWt)(l,s)):this.node()[l]}function ngt(l){return l.trim().split(/^|\s+/)}function jve(l){return l.classList||new igt(l)}function igt(l){this._node=l,this._names=ngt(l.getAttribute("class")||"")}igt.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 rgt(l,s){for(var u=jve(l),a=-1,g=s.length;++a<g;)u.add(s[a])}function sgt(l,s){for(var u=jve(l),a=-1,g=s.length;++a<g;)u.remove(s[a])}function zWt(l){return function(){rgt(this,l)}}function KWt(l){return function(){sgt(this,l)}}function WWt(l,s){return function(){(s.apply(this,arguments)?rgt:sgt)(this,l)}}function XWt(l,s){var u=ngt(l+"");if(arguments.length<2){for(var a=jve(this.node()),g=-1,w=u.length;++g<w;)if(!a.contains(u[g]))return!1;return!0}return this.each((typeof s=="function"?WWt:s?zWt:KWt)(u,s))}function UWt(){this.textContent=""}function GWt(l){return function(){this.textContent=l}}function VWt(l){return function(){var s=l.apply(this,arguments);this.textContent=s??""}}function YWt(l){return arguments.length?this.each(l==null?UWt:(typeof l=="function"?VWt:GWt)(l)):this.node().textContent}function ZWt(){this.innerHTML=""}function JWt(l){return function(){this.innerHTML=l}}function eXt(l){return function(){var s=l.apply(this,arguments);this.innerHTML=s??""}}function tXt(l){return arguments.length?this.each(l==null?ZWt:(typeof l=="function"?eXt:JWt)(l)):this.node().innerHTML}function nXt(){this.nextSibling&&this.parentNode.appendChild(this)}function iXt(){return this.each(nXt)}function rXt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function sXt(){return this.each(rXt)}function oXt(l){var s=typeof l=="function"?l:V0t(l);return this.select(function(){return this.appendChild(s.apply(this,arguments))})}function cXt(){return null}function uXt(l,s){var u=typeof l=="function"?l:V0t(l),a=s==null?cXt:typeof s=="function"?s:Mve(s);return this.select(function(){return this.insertBefore(u.apply(this,arguments),a.apply(this,arguments)||null)})}function lXt(){var l=this.parentNode;l&&l.removeChild(this)}function fXt(){return this.each(lXt)}function hXt(){var l=this.cloneNode(!1),s=this.parentNode;return s?s.insertBefore(l,this.nextSibling):l}function aXt(){var l=this.cloneNode(!0),s=this.parentNode;return s?s.insertBefore(l,this.nextSibling):l}function dXt(l){return this.select(l?aXt:hXt)}function gXt(l){return arguments.length?this.property("__data__",l):this.node().__data__}function bXt(l){return function(s){l.call(this,s,this.__data__)}}function pXt(l){return l.trim().split(/^|\s+/).map(function(s){var u="",a=s.indexOf(".");return a>=0&&(u=s.slice(a+1),s=s.slice(0,a)),{type:s,name:u}})}function wXt(l){return function(){var s=this.__on;if(s){for(var u=0,a=-1,g=s.length,w;u<g;++u)w=s[u],(!l.type||w.type===l.type)&&w.name===l.name?this.removeEventListener(w.type,w.listener,w.options):s[++a]=w;++a?s.length=a:delete this.__on}}}function mXt(l,s,u){return function(){var a=this.__on,g,w=bXt(s);if(a){for(var b=0,y=a.length;b<y;++b)if((g=a[b]).type===l.type&&g.name===l.name){this.removeEventListener(g.type,g.listener,g.options),this.addEventListener(g.type,g.listener=w,g.options=u),g.value=s;return}}this.addEventListener(l.type,w,u),g={type:l.type,name:l.name,value:s,listener:w,options:u},a?a.push(g):this.__on=[g]}}function vXt(l,s,u){var a=pXt(l+""),g,w=a.length,b;if(arguments.length<2){var y=this.node().__on;if(y){for(var x=0,C=y.length,T;x<C;++x)for(g=0,T=y[x];g<w;++g)if((b=a[g]).type===T.type&&b.name===T.name)return T.value}return}for(y=s?mXt:wXt,g=0;g<w;++g)this.each(y(a[g],s,u));return this}function ogt(l,s,u){var a=tgt(l),g=a.CustomEvent;typeof g=="function"?g=new g(s,u):(g=a.document.createEvent("Event"),u?(g.initEvent(s,u.bubbles,u.cancelable),g.detail=u.detail):g.initEvent(s,!1,!1)),l.dispatchEvent(g)}function yXt(l,s){return function(){return ogt(this,l,s)}}function OXt(l,s){return function(){return ogt(this,l,s.apply(this,arguments))}}function kXt(l,s){return this.each((typeof s=="function"?OXt:yXt)(l,s))}function*SXt(){for(var l=this._groups,s=0,u=l.length;s<u;++s)for(var a=l[s],g=0,w=a.length,b;g<w;++g)(b=a[g])&&(yield b)}var cgt=[null];function Z0(l,s){this._groups=l,this._parents=s}function X$(){return new Z0([[document.documentElement]],cgt)}function xXt(){return this}Z0.prototype=X$.prototype={constructor:Z0,select:VKt,selectAll:eWt,selectChild:rWt,selectChildren:uWt,filter:lWt,data:bWt,enter:fWt,exit:wWt,join:mWt,merge:vWt,selection:xXt,order:yWt,sort:OWt,call:SWt,nodes:xWt,node:EWt,size:CWt,empty:TWt,each:AWt,attr:$Wt,style:BWt,property:HWt,classed:XWt,text:YWt,html:tXt,raise:iXt,lower:sXt,append:oXt,insert:uXt,remove:fXt,clone:dXt,datum:gXt,on:vXt,dispatch:kXt,[Symbol.iterator]:SXt};function mw(l){return typeof l=="string"?new Z0([[document.querySelector(l)]],[document.documentElement]):new Z0([[l]],cgt)}function EXt(l){let s;for(;s=l.sourceEvent;)l=s;return l}function a2(l,s){if(l=EXt(l),s===void 0&&(s=l.currentTarget),s){var u=s.ownerSVGElement||s;if(u.createSVGPoint){var a=u.createSVGPoint();return a.x=l.clientX,a.y=l.clientY,a=a.matrixTransform(s.getScreenCTM().inverse()),[a.x,a.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 CXt={passive:!1},y$={capture:!0,passive:!1};function gme(l){l.stopImmediatePropagation()}function YE(l){l.preventDefault(),l.stopImmediatePropagation()}function ugt(l){var s=l.document.documentElement,u=mw(l).on("dragstart.drag",YE,y$);"onselectstart"in s?u.on("selectstart.drag",YE,y$):(s.__noselect=s.style.MozUserSelect,s.style.MozUserSelect="none")}function lgt(l,s){var u=l.document.documentElement,a=mw(l).on("dragstart.drag",null);s&&(a.on("click.drag",YE,y$),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in u?a.on("selectstart.drag",null):(u.style.MozUserSelect=u.__noselect,delete u.__noselect)}const XU=l=>()=>l;function a2e(l,{sourceEvent:s,subject:u,target:a,identifier:g,active:w,x:b,y,dx:x,dy:C,dispatch:T}){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:a,enumerable:!0,configurable:!0},identifier:{value:g,enumerable:!0,configurable:!0},active:{value:w,enumerable:!0,configurable:!0},x:{value:b,enumerable:!0,configurable:!0},y:{value:y,enumerable:!0,configurable:!0},dx:{value:x,enumerable:!0,configurable:!0},dy:{value:C,enumerable:!0,configurable:!0},_:{value:T}})}a2e.prototype.on=function(){var l=this._.on.apply(this._,arguments);return l===this._?this:l};function TXt(l){return!l.ctrlKey&&!l.button}function AXt(){return this.parentNode}function MXt(l,s){return s??{x:l.x,y:l.y}}function jXt(){return navigator.maxTouchPoints||"ontouchstart"in this}function PXt(){var l=TXt,s=AXt,u=MXt,a=jXt,g={},w=jV("start","drag","end"),b=0,y,x,C,T,j=0;function N(be){be.on("mousedown.drag",F).filter(a).on("touchstart.drag",ee).on("touchmove.drag",te,CXt).on("touchend.drag touchcancel.drag",le).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function F(be,xe){if(!(T||!l.call(this,be,xe))){var Me=Se(this,s.call(this,be,xe),be,xe,"mouse");Me&&(mw(be.view).on("mousemove.drag",Q,y$).on("mouseup.drag",V,y$),ugt(be.view),gme(be),C=!1,y=be.clientX,x=be.clientY,Me("start",be))}}function Q(be){if(YE(be),!C){var xe=be.clientX-y,Me=be.clientY-x;C=xe*xe+Me*Me>j}g.mouse("drag",be)}function V(be){mw(be.view).on("mousemove.drag mouseup.drag",null),lgt(be.view,C),YE(be),g.mouse("end",be)}function ee(be,xe){if(l.call(this,be,xe)){var Me=be.changedTouches,_e=s.call(this,be,xe),rt=Me.length,$e,ut;for($e=0;$e<rt;++$e)(ut=Se(this,_e,be,xe,Me[$e].identifier,Me[$e]))&&(gme(be),ut("start",be,Me[$e]))}}function te(be){var xe=be.changedTouches,Me=xe.length,_e,rt;for(_e=0;_e<Me;++_e)(rt=g[xe[_e].identifier])&&(YE(be),rt("drag",be,xe[_e]))}function le(be){var xe=be.changedTouches,Me=xe.length,_e,rt;for(T&&clearTimeout(T),T=setTimeout(function(){T=null},500),_e=0;_e<Me;++_e)(rt=g[xe[_e].identifier])&&(gme(be),rt("end",be,xe[_e]))}function Se(be,xe,Me,_e,rt,$e){var ut=w.copy(),st=a2($e||Me,xe),ht,pt,ce;if((ce=u.call(be,new a2e("beforestart",{sourceEvent:Me,target:N,identifier:rt,active:b,x:st[0],y:st[1],dx:0,dy:0,dispatch:ut}),_e))!=null)return ht=ce.x-st[0]||0,pt=ce.y-st[1]||0,function Ze(et,vt,X){var nt=st,Nt;switch(et){case"start":g[rt]=Ze,Nt=b++;break;case"end":delete g[rt],--b;case"drag":st=a2(X||vt,xe),Nt=b;break}ut.call(et,be,new a2e(et,{sourceEvent:vt,subject:ce,target:N,identifier:rt,active:Nt,x:st[0]+ht,y:st[1]+pt,dx:st[0]-nt[0],dy:st[1]-nt[1],dispatch:ut}),_e)}}return N.filter=function(be){return arguments.length?(l=typeof be=="function"?be:XU(!!be),N):l},N.container=function(be){return arguments.length?(s=typeof be=="function"?be:XU(be),N):s},N.subject=function(be){return arguments.length?(u=typeof be=="function"?be:XU(be),N):u},N.touchable=function(be){return arguments.length?(a=typeof be=="function"?be:XU(!!be),N):a},N.on=function(){var be=w.on.apply(w,arguments);return be===w?N:be},N.clickDistance=function(be){return arguments.length?(j=(be=+be)*be,N):Math.sqrt(j)},N}function Pve(l,s,u){l.prototype=s.prototype=u,u.constructor=l}function fgt(l,s){var u=Object.create(l.prototype);for(var a in s)u[a]=s[a];return u}function U$(){}var O$=.7,UG=1/O$,ZE="\\s*([+-]?\\d+)\\s*",k$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",v2="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",DXt=/^#([0-9a-f]{3,8})$/,IXt=new RegExp(`^rgb\\(${ZE},${ZE},${ZE}\\)$`),NXt=new RegExp(`^rgb\\(${v2},${v2},${v2}\\)$`),$Xt=new RegExp(`^rgba\\(${ZE},${ZE},${ZE},${k$}\\)$`),RXt=new RegExp(`^rgba\\(${v2},${v2},${v2},${k$}\\)$`),LXt=new RegExp(`^hsl\\(${k$},${v2},${v2}\\)$`),FXt=new RegExp(`^hsla\\(${k$},${v2},${v2},${k$}\\)$`),Iat={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};Pve(U$,S$,{copy(l){return Object.assign(new this.constructor,this,l)},displayable(){return this.rgb().displayable()},hex:Nat,formatHex:Nat,formatHex8:BXt,formatHsl:_Xt,formatRgb:$at,toString:$at});function Nat(){return this.rgb().formatHex()}function BXt(){return this.rgb().formatHex8()}function _Xt(){return hgt(this).formatHsl()}function $at(){return this.rgb().formatRgb()}function S$(l){var s,u;return l=(l+"").trim().toLowerCase(),(s=DXt.exec(l))?(u=s[1].length,s=parseInt(s[1],16),u===6?Rat(s):u===3?new N1(s>>8&15|s>>4&240,s>>4&15|s&240,(s&15)<<4|s&15,1):u===8?UU(s>>24&255,s>>16&255,s>>8&255,(s&255)/255):u===4?UU(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=IXt.exec(l))?new N1(s[1],s[2],s[3],1):(s=NXt.exec(l))?new N1(s[1]*255/100,s[2]*255/100,s[3]*255/100,1):(s=$Xt.exec(l))?UU(s[1],s[2],s[3],s[4]):(s=RXt.exec(l))?UU(s[1]*255/100,s[2]*255/100,s[3]*255/100,s[4]):(s=LXt.exec(l))?Bat(s[1],s[2]/100,s[3]/100,1):(s=FXt.exec(l))?Bat(s[1],s[2]/100,s[3]/100,s[4]):Iat.hasOwnProperty(l)?Rat(Iat[l]):l==="transparent"?new N1(NaN,NaN,NaN,0):null}function Rat(l){return new N1(l>>16&255,l>>8&255,l&255,1)}function UU(l,s,u,a){return a<=0&&(l=s=u=NaN),new N1(l,s,u,a)}function qXt(l){return l instanceof U$||(l=S$(l)),l?(l=l.rgb(),new N1(l.r,l.g,l.b,l.opacity)):new N1}function d2e(l,s,u,a){return arguments.length===1?qXt(l):new N1(l,s,u,a??1)}function N1(l,s,u,a){this.r=+l,this.g=+s,this.b=+u,this.opacity=+a}Pve(N1,d2e,fgt(U$,{brighter(l){return l=l==null?UG:Math.pow(UG,l),new N1(this.r*l,this.g*l,this.b*l,this.opacity)},darker(l){return l=l==null?O$:Math.pow(O$,l),new N1(this.r*l,this.g*l,this.b*l,this.opacity)},rgb(){return this},clamp(){return new N1(r9(this.r),r9(this.g),r9(this.b),GG(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:Lat,formatHex:Lat,formatHex8:QXt,formatRgb:Fat,toString:Fat}));function Lat(){return`#${J8(this.r)}${J8(this.g)}${J8(this.b)}`}function QXt(){return`#${J8(this.r)}${J8(this.g)}${J8(this.b)}${J8((isNaN(this.opacity)?1:this.opacity)*255)}`}function Fat(){const l=GG(this.opacity);return`${l===1?"rgb(":"rgba("}${r9(this.r)}, ${r9(this.g)}, ${r9(this.b)}${l===1?")":`, ${l})`}`}function GG(l){return isNaN(l)?1:Math.max(0,Math.min(1,l))}function r9(l){return Math.max(0,Math.min(255,Math.round(l)||0))}function J8(l){return l=r9(l),(l<16?"0":"")+l.toString(16)}function Bat(l,s,u,a){return a<=0?l=s=u=NaN:u<=0||u>=1?l=s=NaN:s<=0&&(l=NaN),new vw(l,s,u,a)}function hgt(l){if(l instanceof vw)return new vw(l.h,l.s,l.l,l.opacity);if(l instanceof U$||(l=S$(l)),!l)return new vw;if(l instanceof vw)return l;l=l.rgb();var s=l.r/255,u=l.g/255,a=l.b/255,g=Math.min(s,u,a),w=Math.max(s,u,a),b=NaN,y=w-g,x=(w+g)/2;return y?(s===w?b=(u-a)/y+(u<a)*6:u===w?b=(a-s)/y+2:b=(s-u)/y+4,y/=x<.5?w+g:2-w-g,b*=60):y=x>0&&x<1?0:b,new vw(b,y,x,l.opacity)}function HXt(l,s,u,a){return arguments.length===1?hgt(l):new vw(l,s,u,a??1)}function vw(l,s,u,a){this.h=+l,this.s=+s,this.l=+u,this.opacity=+a}Pve(vw,HXt,fgt(U$,{brighter(l){return l=l==null?UG:Math.pow(UG,l),new vw(this.h,this.s,this.l*l,this.opacity)},darker(l){return l=l==null?O$:Math.pow(O$,l),new vw(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,a=u+(u<.5?u:1-u)*s,g=2*u-a;return new N1(bme(l>=240?l-240:l+120,g,a),bme(l,g,a),bme(l<120?l+240:l-120,g,a),this.opacity)},clamp(){return new vw(_at(this.h),GU(this.s),GU(this.l),GG(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=GG(this.opacity);return`${l===1?"hsl(":"hsla("}${_at(this.h)}, ${GU(this.s)*100}%, ${GU(this.l)*100}%${l===1?")":`, ${l})`}`}}));function _at(l){return l=(l||0)%360,l<0?l+360:l}function GU(l){return Math.max(0,Math.min(1,l||0))}function bme(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 agt=l=>()=>l;function zXt(l,s){return function(u){return l+u*s}}function KXt(l,s,u){return l=Math.pow(l,u),s=Math.pow(s,u)-l,u=1/u,function(a){return Math.pow(l+a*s,u)}}function WXt(l){return(l=+l)==1?dgt:function(s,u){return u-s?KXt(s,u,l):agt(isNaN(s)?u:s)}}function dgt(l,s){var u=s-l;return u?zXt(l,u):agt(isNaN(l)?s:l)}const qat=function l(s){var u=WXt(s);function a(g,w){var b=u((g=d2e(g)).r,(w=d2e(w)).r),y=u(g.g,w.g),x=u(g.b,w.b),C=dgt(g.opacity,w.opacity);return function(T){return g.r=b(T),g.g=y(T),g.b=x(T),g.opacity=C(T),g+""}}return a.gamma=l,a}(1);function M5(l,s){return l=+l,s=+s,function(u){return l*(1-u)+s*u}}var g2e=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pme=new RegExp(g2e.source,"g");function XXt(l){return function(){return l}}function UXt(l){return function(s){return l(s)+""}}function GXt(l,s){var u=g2e.lastIndex=pme.lastIndex=0,a,g,w,b=-1,y=[],x=[];for(l=l+"",s=s+"";(a=g2e.exec(l))&&(g=pme.exec(s));)(w=g.index)>u&&(w=s.slice(u,w),y[b]?y[b]+=w:y[++b]=w),(a=a[0])===(g=g[0])?y[b]?y[b]+=g:y[++b]=g:(y[++b]=null,x.push({i:b,x:M5(a,g)})),u=pme.lastIndex;return u<s.length&&(w=s.slice(u),y[b]?y[b]+=w:y[++b]=w),y.length<2?x[0]?UXt(x[0].x):XXt(s):(s=x.length,function(C){for(var T=0,j;T<s;++T)y[(j=x[T]).i]=j.x(C);return y.join("")})}var Qat=180/Math.PI,b2e={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ggt(l,s,u,a,g,w){var b,y,x;return(b=Math.sqrt(l*l+s*s))&&(l/=b,s/=b),(x=l*u+s*a)&&(u-=l*x,a-=s*x),(y=Math.sqrt(u*u+a*a))&&(u/=y,a/=y,x/=y),l*a<s*u&&(l=-l,s=-s,x=-x,b=-b),{translateX:g,translateY:w,rotate:Math.atan2(s,l)*Qat,skewX:Math.atan(x)*Qat,scaleX:b,scaleY:y}}var VU;function VXt(l){const s=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(l+"");return s.isIdentity?b2e:ggt(s.a,s.b,s.c,s.d,s.e,s.f)}function YXt(l){return l==null||(VU||(VU=document.createElementNS("http://www.w3.org/2000/svg","g")),VU.setAttribute("transform",l),!(l=VU.transform.baseVal.consolidate()))?b2e:(l=l.matrix,ggt(l.a,l.b,l.c,l.d,l.e,l.f))}function bgt(l,s,u,a){function g(C){return C.length?C.pop()+" ":""}function w(C,T,j,N,F,Q){if(C!==j||T!==N){var V=F.push("translate(",null,s,null,u);Q.push({i:V-4,x:M5(C,j)},{i:V-2,x:M5(T,N)})}else(j||N)&&F.push("translate("+j+s+N+u)}function b(C,T,j,N){C!==T?(C-T>180?T+=360:T-C>180&&(C+=360),N.push({i:j.push(g(j)+"rotate(",null,a)-2,x:M5(C,T)})):T&&j.push(g(j)+"rotate("+T+a)}function y(C,T,j,N){C!==T?N.push({i:j.push(g(j)+"skewX(",null,a)-2,x:M5(C,T)}):T&&j.push(g(j)+"skewX("+T+a)}function x(C,T,j,N,F,Q){if(C!==j||T!==N){var V=F.push(g(F)+"scale(",null,",",null,")");Q.push({i:V-4,x:M5(C,j)},{i:V-2,x:M5(T,N)})}else(j!==1||N!==1)&&F.push(g(F)+"scale("+j+","+N+")")}return function(C,T){var j=[],N=[];return C=l(C),T=l(T),w(C.translateX,C.translateY,T.translateX,T.translateY,j,N),b(C.rotate,T.rotate,j,N),y(C.skewX,T.skewX,j,N),x(C.scaleX,C.scaleY,T.scaleX,T.scaleY,j,N),C=T=null,function(F){for(var Q=-1,V=N.length,ee;++Q<V;)j[(ee=N[Q]).i]=ee.x(F);return j.join("")}}}var ZXt=bgt(VXt,"px, ","px)","deg)"),JXt=bgt(YXt,", ",")",")"),eUt=1e-12;function Hat(l){return((l=Math.exp(l))+1/l)/2}function tUt(l){return((l=Math.exp(l))-1/l)/2}function nUt(l){return((l=Math.exp(2*l))-1)/(l+1)}const iUt=function l(s,u,a){function g(w,b){var y=w[0],x=w[1],C=w[2],T=b[0],j=b[1],N=b[2],F=T-y,Q=j-x,V=F*F+Q*Q,ee,te;if(V<eUt)te=Math.log(N/C)/s,ee=function(_e){return[y+_e*F,x+_e*Q,C*Math.exp(s*_e*te)]};else{var le=Math.sqrt(V),Se=(N*N-C*C+a*V)/(2*C*u*le),be=(N*N-C*C-a*V)/(2*N*u*le),xe=Math.log(Math.sqrt(Se*Se+1)-Se),Me=Math.log(Math.sqrt(be*be+1)-be);te=(Me-xe)/s,ee=function(_e){var rt=_e*te,$e=Hat(xe),ut=C/(u*le)*($e*nUt(s*rt+xe)-tUt(xe));return[y+ut*F,x+ut*Q,C*$e/Hat(s*rt+xe)]}}return ee.duration=te*1e3*s/Math.SQRT2,ee}return g.rho=function(w){var b=Math.max(.001,+w),y=b*b,x=y*y;return l(b,y,x)},g}(Math.SQRT2,2,4);var uC=0,o$=0,WN=0,pgt=1e3,VG,c$,YG=0,c9=0,DV=0,x$=typeof performance=="object"&&performance.now?performance:Date,wgt=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(l){setTimeout(l,17)};function Dve(){return c9||(wgt(rUt),c9=x$.now()+DV)}function rUt(){c9=0}function ZG(){this._call=this._time=this._next=null}ZG.prototype=mgt.prototype={constructor:ZG,restart:function(l,s,u){if(typeof l!="function")throw new TypeError("callback is not a function");u=(u==null?Dve():+u)+(s==null?0:+s),!this._next&&c$!==this&&(c$?c$._next=this:VG=this,c$=this),this._call=l,this._time=u,p2e()},stop:function(){this._call&&(this._call=null,this._time=1/0,p2e())}};function mgt(l,s,u){var a=new ZG;return a.restart(l,s,u),a}function sUt(){Dve(),++uC;for(var l=VG,s;l;)(s=c9-l._time)>=0&&l._call.call(void 0,s),l=l._next;--uC}function zat(){c9=(YG=x$.now())+DV,uC=o$=0;try{sUt()}finally{uC=0,cUt(),c9=0}}function oUt(){var l=x$.now(),s=l-YG;s>pgt&&(DV-=s,YG=l)}function cUt(){for(var l,s=VG,u,a=1/0;s;)s._call?(a>s._time&&(a=s._time),l=s,s=s._next):(u=s._next,s._next=null,s=l?l._next=u:VG=u);c$=l,p2e(a)}function p2e(l){if(!uC){o$&&(o$=clearTimeout(o$));var s=l-c9;s>24?(l<1/0&&(o$=setTimeout(zat,l-x$.now()-DV)),WN&&(WN=clearInterval(WN))):(WN||(YG=x$.now(),WN=setInterval(oUt,pgt)),uC=1,wgt(zat))}}function Kat(l,s,u){var a=new ZG;return s=s==null?0:+s,a.restart(g=>{a.stop(),l(g+s)},s,u),a}var uUt=jV("start","end","cancel","interrupt"),lUt=[],vgt=0,Wat=1,w2e=2,jG=3,Xat=4,m2e=5,PG=6;function IV(l,s,u,a,g,w){var b=l.__transition;if(!b)l.__transition={};else if(u in b)return;fUt(l,u,{name:s,index:a,group:g,on:uUt,tween:lUt,time:w.time,delay:w.delay,duration:w.duration,ease:w.ease,timer:null,state:vgt})}function Ive(l,s){var u=kw(l,s);if(u.state>vgt)throw new Error("too late; already scheduled");return u}function k2(l,s){var u=kw(l,s);if(u.state>jG)throw new Error("too late; already running");return u}function kw(l,s){var u=l.__transition;if(!u||!(u=u[s]))throw new Error("transition not found");return u}function fUt(l,s,u){var a=l.__transition,g;a[s]=u,u.timer=mgt(w,0,u.time);function w(C){u.state=Wat,u.timer.restart(b,u.delay,u.time),u.delay<=C&&b(C-u.delay)}function b(C){var T,j,N,F;if(u.state!==Wat)return x();for(T in a)if(F=a[T],F.name===u.name){if(F.state===jG)return Kat(b);F.state===Xat?(F.state=PG,F.timer.stop(),F.on.call("interrupt",l,l.__data__,F.index,F.group),delete a[T]):+T<s&&(F.state=PG,F.timer.stop(),F.on.call("cancel",l,l.__data__,F.index,F.group),delete a[T])}if(Kat(function(){u.state===jG&&(u.state=Xat,u.timer.restart(y,u.delay,u.time),y(C))}),u.state=w2e,u.on.call("start",l,l.__data__,u.index,u.group),u.state===w2e){for(u.state=jG,g=new Array(N=u.tween.length),T=0,j=-1;T<N;++T)(F=u.tween[T].value.call(l,l.__data__,u.index,u.group))&&(g[++j]=F);g.length=j+1}}function y(C){for(var T=C<u.duration?u.ease.call(null,C/u.duration):(u.timer.restart(x),u.state=m2e,1),j=-1,N=g.length;++j<N;)g[j].call(l,T);u.state===m2e&&(u.on.call("end",l,l.__data__,u.index,u.group),x())}function x(){u.state=PG,u.timer.stop(),delete a[s];for(var C in a)return;delete l.__transition}}function DG(l,s){var u=l.__transition,a,g,w=!0,b;if(u){s=s==null?null:s+"";for(b in u){if((a=u[b]).name!==s){w=!1;continue}g=a.state>w2e&&a.state<m2e,a.state=PG,a.timer.stop(),a.on.call(g?"interrupt":"cancel",l,l.__data__,a.index,a.group),delete u[b]}w&&delete l.__transition}}function hUt(l){return this.each(function(){DG(this,l)})}function aUt(l,s){var u,a;return function(){var g=k2(this,l),w=g.tween;if(w!==u){a=u=w;for(var b=0,y=a.length;b<y;++b)if(a[b].name===s){a=a.slice(),a.splice(b,1);break}}g.tween=a}}function dUt(l,s,u){var a,g;if(typeof u!="function")throw new Error;return function(){var w=k2(this,l),b=w.tween;if(b!==a){g=(a=b).slice();for(var y={name:s,value:u},x=0,C=g.length;x<C;++x)if(g[x].name===s){g[x]=y;break}x===C&&g.push(y)}w.tween=g}}function gUt(l,s){var u=this._id;if(l+="",arguments.length<2){for(var a=kw(this.node(),u).tween,g=0,w=a.length,b;g<w;++g)if((b=a[g]).name===l)return b.value;return null}return this.each((s==null?aUt:dUt)(u,l,s))}function Nve(l,s,u){var a=l._id;return l.each(function(){var g=k2(this,a);(g.value||(g.value={}))[s]=u.apply(this,arguments)}),function(g){return kw(g,a).value[s]}}function ygt(l,s){var u;return(typeof s=="number"?M5:s instanceof S$?qat:(u=S$(s))?(s=u,qat):GXt)(l,s)}function bUt(l){return function(){this.removeAttribute(l)}}function pUt(l){return function(){this.removeAttributeNS(l.space,l.local)}}function wUt(l,s,u){var a,g=u+"",w;return function(){var b=this.getAttribute(l);return b===g?null:b===a?w:w=s(a=b,u)}}function mUt(l,s,u){var a,g=u+"",w;return function(){var b=this.getAttributeNS(l.space,l.local);return b===g?null:b===a?w:w=s(a=b,u)}}function vUt(l,s,u){var a,g,w;return function(){var b,y=u(this),x;return y==null?void this.removeAttribute(l):(b=this.getAttribute(l),x=y+"",b===x?null:b===a&&x===g?w:(g=x,w=s(a=b,y)))}}function yUt(l,s,u){var a,g,w;return function(){var b,y=u(this),x;return y==null?void this.removeAttributeNS(l.space,l.local):(b=this.getAttributeNS(l.space,l.local),x=y+"",b===x?null:b===a&&x===g?w:(g=x,w=s(a=b,y)))}}function OUt(l,s){var u=PV(l),a=u==="transform"?JXt:ygt;return this.attrTween(l,typeof s=="function"?(u.local?yUt:vUt)(u,a,Nve(this,"attr."+l,s)):s==null?(u.local?pUt:bUt)(u):(u.local?mUt:wUt)(u,a,s))}function kUt(l,s){return function(u){this.setAttribute(l,s.call(this,u))}}function SUt(l,s){return function(u){this.setAttributeNS(l.space,l.local,s.call(this,u))}}function xUt(l,s){var u,a;function g(){var w=s.apply(this,arguments);return w!==a&&(u=(a=w)&&SUt(l,w)),u}return g._value=s,g}function EUt(l,s){var u,a;function g(){var w=s.apply(this,arguments);return w!==a&&(u=(a=w)&&kUt(l,w)),u}return g._value=s,g}function CUt(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 a=PV(l);return this.tween(u,(a.local?xUt:EUt)(a,s))}function TUt(l,s){return function(){Ive(this,l).delay=+s.apply(this,arguments)}}function AUt(l,s){return s=+s,function(){Ive(this,l).delay=s}}function MUt(l){var s=this._id;return arguments.length?this.each((typeof l=="function"?TUt:AUt)(s,l)):kw(this.node(),s).delay}function jUt(l,s){return function(){k2(this,l).duration=+s.apply(this,arguments)}}function PUt(l,s){return s=+s,function(){k2(this,l).duration=s}}function DUt(l){var s=this._id;return arguments.length?this.each((typeof l=="function"?jUt:PUt)(s,l)):kw(this.node(),s).duration}function IUt(l,s){if(typeof s!="function")throw new Error;return function(){k2(this,l).ease=s}}function NUt(l){var s=this._id;return arguments.length?this.each(IUt(s,l)):kw(this.node(),s).ease}function $Ut(l,s){return function(){var u=s.apply(this,arguments);if(typeof u!="function")throw new Error;k2(this,l).ease=u}}function RUt(l){if(typeof l!="function")throw new Error;return this.each($Ut(this._id,l))}function LUt(l){typeof l!="function"&&(l=Z0t(l));for(var s=this._groups,u=s.length,a=new Array(u),g=0;g<u;++g)for(var w=s[g],b=w.length,y=a[g]=[],x,C=0;C<b;++C)(x=w[C])&&l.call(x,x.__data__,C,w)&&y.push(x);return new S3(a,this._parents,this._name,this._id)}function FUt(l){if(l._id!==this._id)throw new Error;for(var s=this._groups,u=l._groups,a=s.length,g=u.length,w=Math.min(a,g),b=new Array(a),y=0;y<w;++y)for(var x=s[y],C=u[y],T=x.length,j=b[y]=new Array(T),N,F=0;F<T;++F)(N=x[F]||C[F])&&(j[F]=N);for(;y<a;++y)b[y]=s[y];return new S3(b,this._parents,this._name,this._id)}function BUt(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 _Ut(l,s,u){var a,g,w=BUt(s)?Ive:k2;return function(){var b=w(this,l),y=b.on;y!==a&&(g=(a=y).copy()).on(s,u),b.on=g}}function qUt(l,s){var u=this._id;return arguments.length<2?kw(this.node(),u).on.on(l):this.each(_Ut(u,l,s))}function QUt(l){return function(){var s=this.parentNode;for(var u in this.__transition)if(+u!==l)return;s&&s.removeChild(this)}}function HUt(){return this.on("end.remove",QUt(this._id))}function zUt(l){var s=this._name,u=this._id;typeof l!="function"&&(l=Mve(l));for(var a=this._groups,g=a.length,w=new Array(g),b=0;b<g;++b)for(var y=a[b],x=y.length,C=w[b]=new Array(x),T,j,N=0;N<x;++N)(T=y[N])&&(j=l.call(T,T.__data__,N,y))&&("__data__"in T&&(j.__data__=T.__data__),C[N]=j,IV(C[N],s,u,N,C,kw(T,u)));return new S3(w,this._parents,s,u)}function KUt(l){var s=this._name,u=this._id;typeof l!="function"&&(l=Y0t(l));for(var a=this._groups,g=a.length,w=[],b=[],y=0;y<g;++y)for(var x=a[y],C=x.length,T,j=0;j<C;++j)if(T=x[j]){for(var N=l.call(T,T.__data__,j,x),F,Q=kw(T,u),V=0,ee=N.length;V<ee;++V)(F=N[V])&&IV(F,s,u,V,N,Q);w.push(N),b.push(T)}return new S3(w,b,s,u)}var WUt=X$.prototype.constructor;function XUt(){return new WUt(this._groups,this._parents)}function UUt(l,s){var u,a,g;return function(){var w=cC(this,l),b=(this.style.removeProperty(l),cC(this,l));return w===b?null:w===u&&b===a?g:g=s(u=w,a=b)}}function Ogt(l){return function(){this.style.removeProperty(l)}}function GUt(l,s,u){var a,g=u+"",w;return function(){var b=cC(this,l);return b===g?null:b===a?w:w=s(a=b,u)}}function VUt(l,s,u){var a,g,w;return function(){var b=cC(this,l),y=u(this),x=y+"";return y==null&&(x=y=(this.style.removeProperty(l),cC(this,l))),b===x?null:b===a&&x===g?w:(g=x,w=s(a=b,y))}}function YUt(l,s){var u,a,g,w="style."+s,b="end."+w,y;return function(){var x=k2(this,l),C=x.on,T=x.value[w]==null?y||(y=Ogt(s)):void 0;(C!==u||g!==T)&&(a=(u=C).copy()).on(b,g=T),x.on=a}}function ZUt(l,s,u){var a=(l+="")=="transform"?ZXt:ygt;return s==null?this.styleTween(l,UUt(l,a)).on("end.style."+l,Ogt(l)):typeof s=="function"?this.styleTween(l,VUt(l,a,Nve(this,"style."+l,s))).each(YUt(this._id,l)):this.styleTween(l,GUt(l,a,s),u).on("end.style."+l,null)}function JUt(l,s,u){return function(a){this.style.setProperty(l,s.call(this,a),u)}}function eGt(l,s,u){var a,g;function w(){var b=s.apply(this,arguments);return b!==g&&(a=(g=b)&&JUt(l,b,u)),a}return w._value=s,w}function tGt(l,s,u){var a="style."+(l+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(s==null)return this.tween(a,null);if(typeof s!="function")throw new Error;return this.tween(a,eGt(l,s,u??""))}function nGt(l){return function(){this.textContent=l}}function iGt(l){return function(){var s=l(this);this.textContent=s??""}}function rGt(l){return this.tween("text",typeof l=="function"?iGt(Nve(this,"text",l)):nGt(l==null?"":l+""))}function sGt(l){return function(s){this.textContent=l.call(this,s)}}function oGt(l){var s,u;function a(){var g=l.apply(this,arguments);return g!==u&&(s=(u=g)&&sGt(g)),s}return a._value=l,a}function cGt(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,oGt(l))}function uGt(){for(var l=this._name,s=this._id,u=kgt(),a=this._groups,g=a.length,w=0;w<g;++w)for(var b=a[w],y=b.length,x,C=0;C<y;++C)if(x=b[C]){var T=kw(x,s);IV(x,l,u,C,b,{time:T.time+T.delay+T.duration,delay:0,duration:T.duration,ease:T.ease})}return new S3(a,this._parents,l,u)}function lGt(){var l,s,u=this,a=u._id,g=u.size();return new Promise(function(w,b){var y={value:b},x={value:function(){--g===0&&w()}};u.each(function(){var C=k2(this,a),T=C.on;T!==l&&(s=(l=T).copy(),s._.cancel.push(y),s._.interrupt.push(y),s._.end.push(x)),C.on=s}),g===0&&w()})}var fGt=0;function S3(l,s,u,a){this._groups=l,this._parents=s,this._name=u,this._id=a}function kgt(){return++fGt}var d3=X$.prototype;S3.prototype={constructor:S3,select:zUt,selectAll:KUt,selectChild:d3.selectChild,selectChildren:d3.selectChildren,filter:LUt,merge:FUt,selection:XUt,transition:uGt,call:d3.call,nodes:d3.nodes,node:d3.node,size:d3.size,empty:d3.empty,each:d3.each,on:qUt,attr:OUt,attrTween:CUt,style:ZUt,styleTween:tGt,text:rGt,textTween:cGt,remove:HUt,tween:gUt,delay:MUt,duration:DUt,ease:NUt,easeVarying:RUt,end:lGt,[Symbol.iterator]:d3[Symbol.iterator]};function hGt(l){return((l*=2)<=1?l*l*l:(l-=2)*l*l+2)/2}var aGt={time:null,delay:0,duration:250,ease:hGt};function dGt(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 gGt(l){var s,u;l instanceof S3?(s=l._id,l=l._name):(s=kgt(),(u=aGt).time=Dve(),l=l==null?null:l+"");for(var a=this._groups,g=a.length,w=0;w<g;++w)for(var b=a[w],y=b.length,x,C=0;C<y;++C)(x=b[C])&&IV(x,l,s,C,b,u||dGt(x,s));return new S3(a,this._parents,l,s)}X$.prototype.interrupt=hUt;X$.prototype.transition=gGt;const YU=l=>()=>l;function bGt(l,{sourceEvent:s,target:u,transform:a,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:a,enumerable:!0,configurable:!0},_:{value:g}})}function O3(l,s,u){this.k=l,this.x=s,this.y=u}O3.prototype={constructor:O3,scale:function(l){return l===1?this:new O3(this.k*l,this.x,this.y)},translate:function(l,s){return l===0&s===0?this:new O3(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 F5=new O3(1,0,0);O3.prototype;function wme(l){l.stopImmediatePropagation()}function XN(l){l.preventDefault(),l.stopImmediatePropagation()}function pGt(l){return(!l.ctrlKey||l.type==="wheel")&&!l.button}function wGt(){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 Uat(){return this.__zoom||F5}function mGt(l){return-l.deltaY*(l.deltaMode===1?.05:l.deltaMode?1:.002)*(l.ctrlKey?10:1)}function vGt(){return navigator.maxTouchPoints||"ontouchstart"in this}function yGt(l,s,u){var a=l.invertX(s[0][0])-u[0][0],g=l.invertX(s[1][0])-u[1][0],w=l.invertY(s[0][1])-u[0][1],b=l.invertY(s[1][1])-u[1][1];return l.translate(g>a?(a+g)/2:Math.min(0,a)||Math.max(0,g),b>w?(w+b)/2:Math.min(0,w)||Math.max(0,b))}function OGt(){var l=pGt,s=wGt,u=yGt,a=mGt,g=vGt,w=[0,1/0],b=[[-1/0,-1/0],[1/0,1/0]],y=250,x=iUt,C=jV("start","zoom","end"),T,j,N,F=500,Q=150,V=0,ee=10;function te(ce){ce.property("__zoom",Uat).on("wheel.zoom",rt,{passive:!1}).on("mousedown.zoom",$e).on("dblclick.zoom",ut).filter(g).on("touchstart.zoom",st).on("touchmove.zoom",ht).on("touchend.zoom touchcancel.zoom",pt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}te.transform=function(ce,Ze,et,vt){var X=ce.selection?ce.selection():ce;X.property("__zoom",Uat),ce!==X?xe(ce,Ze,et,vt):X.interrupt().each(function(){Me(this,arguments).event(vt).start().zoom(null,typeof Ze=="function"?Ze.apply(this,arguments):Ze).end()})},te.scaleBy=function(ce,Ze,et,vt){te.scaleTo(ce,function(){var X=this.__zoom.k,nt=typeof Ze=="function"?Ze.apply(this,arguments):Ze;return X*nt},et,vt)},te.scaleTo=function(ce,Ze,et,vt){te.transform(ce,function(){var X=s.apply(this,arguments),nt=this.__zoom,Nt=et==null?be(X):typeof et=="function"?et.apply(this,arguments):et,Jt=nt.invert(Nt),Yt=typeof Ze=="function"?Ze.apply(this,arguments):Ze;return u(Se(le(nt,Yt),Nt,Jt),X,b)},et,vt)},te.translateBy=function(ce,Ze,et,vt){te.transform(ce,function(){return u(this.__zoom.translate(typeof Ze=="function"?Ze.apply(this,arguments):Ze,typeof et=="function"?et.apply(this,arguments):et),s.apply(this,arguments),b)},null,vt)},te.translateTo=function(ce,Ze,et,vt,X){te.transform(ce,function(){var nt=s.apply(this,arguments),Nt=this.__zoom,Jt=vt==null?be(nt):typeof vt=="function"?vt.apply(this,arguments):vt;return u(F5.translate(Jt[0],Jt[1]).scale(Nt.k).translate(typeof Ze=="function"?-Ze.apply(this,arguments):-Ze,typeof et=="function"?-et.apply(this,arguments):-et),nt,b)},vt,X)};function le(ce,Ze){return Ze=Math.max(w[0],Math.min(w[1],Ze)),Ze===ce.k?ce:new O3(Ze,ce.x,ce.y)}function Se(ce,Ze,et){var vt=Ze[0]-et[0]*ce.k,X=Ze[1]-et[1]*ce.k;return vt===ce.x&&X===ce.y?ce:new O3(ce.k,vt,X)}function be(ce){return[(+ce[0][0]+ +ce[1][0])/2,(+ce[0][1]+ +ce[1][1])/2]}function xe(ce,Ze,et,vt){ce.on("start.zoom",function(){Me(this,arguments).event(vt).start()}).on("interrupt.zoom end.zoom",function(){Me(this,arguments).event(vt).end()}).tween("zoom",function(){var X=this,nt=arguments,Nt=Me(X,nt).event(vt),Jt=s.apply(X,nt),Yt=et==null?be(Jt):typeof et=="function"?et.apply(X,nt):et,Nn=Math.max(Jt[1][0]-Jt[0][0],Jt[1][1]-Jt[0][1]),Ln=X.__zoom,Mi=typeof Ze=="function"?Ze.apply(X,nt):Ze,ar=x(Ln.invert(Yt).concat(Nn/Ln.k),Mi.invert(Yt).concat(Nn/Mi.k));return function(Dr){if(Dr===1)Dr=Mi;else{var Ys=ar(Dr),ps=Nn/Ys[2];Dr=new O3(ps,Yt[0]-Ys[0]*ps,Yt[1]-Ys[1]*ps)}Nt.zoom(null,Dr)}})}function Me(ce,Ze,et){return!et&&ce.__zooming||new _e(ce,Ze)}function _e(ce,Ze){this.that=ce,this.args=Ze,this.active=0,this.sourceEvent=null,this.extent=s.apply(ce,Ze),this.taps=0}_e.prototype={event:function(ce){return ce&&(this.sourceEvent=ce),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(ce,Ze){return this.mouse&&ce!=="mouse"&&(this.mouse[1]=Ze.invert(this.mouse[0])),this.touch0&&ce!=="touch"&&(this.touch0[1]=Ze.invert(this.touch0[0])),this.touch1&&ce!=="touch"&&(this.touch1[1]=Ze.invert(this.touch1[0])),this.that.__zoom=Ze,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(ce){var Ze=mw(this.that).datum();C.call(ce,this.that,new bGt(ce,{sourceEvent:this.sourceEvent,target:te,transform:this.that.__zoom,dispatch:C}),Ze)}};function rt(ce,...Ze){if(!l.apply(this,arguments))return;var et=Me(this,Ze).event(ce),vt=this.__zoom,X=Math.max(w[0],Math.min(w[1],vt.k*Math.pow(2,a.apply(this,arguments)))),nt=a2(ce);if(et.wheel)(et.mouse[0][0]!==nt[0]||et.mouse[0][1]!==nt[1])&&(et.mouse[1]=vt.invert(et.mouse[0]=nt)),clearTimeout(et.wheel);else{if(vt.k===X)return;et.mouse=[nt,vt.invert(nt)],DG(this),et.start()}XN(ce),et.wheel=setTimeout(Nt,Q),et.zoom("mouse",u(Se(le(vt,X),et.mouse[0],et.mouse[1]),et.extent,b));function Nt(){et.wheel=null,et.end()}}function $e(ce,...Ze){if(N||!l.apply(this,arguments))return;var et=ce.currentTarget,vt=Me(this,Ze,!0).event(ce),X=mw(ce.view).on("mousemove.zoom",Yt,!0).on("mouseup.zoom",Nn,!0),nt=a2(ce,et),Nt=ce.clientX,Jt=ce.clientY;ugt(ce.view),wme(ce),vt.mouse=[nt,this.__zoom.invert(nt)],DG(this),vt.start();function Yt(Ln){if(XN(Ln),!vt.moved){var Mi=Ln.clientX-Nt,ar=Ln.clientY-Jt;vt.moved=Mi*Mi+ar*ar>V}vt.event(Ln).zoom("mouse",u(Se(vt.that.__zoom,vt.mouse[0]=a2(Ln,et),vt.mouse[1]),vt.extent,b))}function Nn(Ln){X.on("mousemove.zoom mouseup.zoom",null),lgt(Ln.view,vt.moved),XN(Ln),vt.event(Ln).end()}}function ut(ce,...Ze){if(l.apply(this,arguments)){var et=this.__zoom,vt=a2(ce.changedTouches?ce.changedTouches[0]:ce,this),X=et.invert(vt),nt=et.k*(ce.shiftKey?.5:2),Nt=u(Se(le(et,nt),vt,X),s.apply(this,Ze),b);XN(ce),y>0?mw(this).transition().duration(y).call(xe,Nt,vt,ce):mw(this).call(te.transform,Nt,vt,ce)}}function st(ce,...Ze){if(l.apply(this,arguments)){var et=ce.touches,vt=et.length,X=Me(this,Ze,ce.changedTouches.length===vt).event(ce),nt,Nt,Jt,Yt;for(wme(ce),Nt=0;Nt<vt;++Nt)Jt=et[Nt],Yt=a2(Jt,this),Yt=[Yt,this.__zoom.invert(Yt),Jt.identifier],X.touch0?!X.touch1&&X.touch0[2]!==Yt[2]&&(X.touch1=Yt,X.taps=0):(X.touch0=Yt,nt=!0,X.taps=1+!!T);T&&(T=clearTimeout(T)),nt&&(X.taps<2&&(j=Yt[0],T=setTimeout(function(){T=null},F)),DG(this),X.start())}}function ht(ce,...Ze){if(this.__zooming){var et=Me(this,Ze).event(ce),vt=ce.changedTouches,X=vt.length,nt,Nt,Jt,Yt;for(XN(ce),nt=0;nt<X;++nt)Nt=vt[nt],Jt=a2(Nt,this),et.touch0&&et.touch0[2]===Nt.identifier?et.touch0[0]=Jt:et.touch1&&et.touch1[2]===Nt.identifier&&(et.touch1[0]=Jt);if(Nt=et.that.__zoom,et.touch1){var Nn=et.touch0[0],Ln=et.touch0[1],Mi=et.touch1[0],ar=et.touch1[1],Dr=(Dr=Mi[0]-Nn[0])*Dr+(Dr=Mi[1]-Nn[1])*Dr,Ys=(Ys=ar[0]-Ln[0])*Ys+(Ys=ar[1]-Ln[1])*Ys;Nt=le(Nt,Math.sqrt(Dr/Ys)),Jt=[(Nn[0]+Mi[0])/2,(Nn[1]+Mi[1])/2],Yt=[(Ln[0]+ar[0])/2,(Ln[1]+ar[1])/2]}else if(et.touch0)Jt=et.touch0[0],Yt=et.touch0[1];else return;et.zoom("touch",u(Se(Nt,Jt,Yt),et.extent,b))}}function pt(ce,...Ze){if(this.__zooming){var et=Me(this,Ze).event(ce),vt=ce.changedTouches,X=vt.length,nt,Nt;for(wme(ce),N&&clearTimeout(N),N=setTimeout(function(){N=null},F),nt=0;nt<X;++nt)Nt=vt[nt],et.touch0&&et.touch0[2]===Nt.identifier?delete et.touch0:et.touch1&&et.touch1[2]===Nt.identifier&&delete et.touch1;if(et.touch1&&!et.touch0&&(et.touch0=et.touch1,delete et.touch1),et.touch0)et.touch0[1]=this.__zoom.invert(et.touch0[0]);else if(et.end(),et.taps===2&&(Nt=a2(Nt,this),Math.hypot(j[0]-Nt[0],j[1]-Nt[1])<ee)){var Jt=mw(this).on("dblclick.zoom");Jt&&Jt.apply(this,arguments)}}}return te.wheelDelta=function(ce){return arguments.length?(a=typeof ce=="function"?ce:YU(+ce),te):a},te.filter=function(ce){return arguments.length?(l=typeof ce=="function"?ce:YU(!!ce),te):l},te.touchable=function(ce){return arguments.length?(g=typeof ce=="function"?ce:YU(!!ce),te):g},te.extent=function(ce){return arguments.length?(s=typeof ce=="function"?ce:YU([[+ce[0][0],+ce[0][1]],[+ce[1][0],+ce[1][1]]]),te):s},te.scaleExtent=function(ce){return arguments.length?(w[0]=+ce[0],w[1]=+ce[1],te):[w[0],w[1]]},te.translateExtent=function(ce){return arguments.length?(b[0][0]=+ce[0][0],b[1][0]=+ce[1][0],b[0][1]=+ce[0][1],b[1][1]=+ce[1][1],te):[[b[0][0],b[0][1]],[b[1][0],b[1][1]]]},te.constrain=function(ce){return arguments.length?(u=ce,te):u},te.duration=function(ce){return arguments.length?(y=+ce,te):y},te.interpolate=function(ce){return arguments.length?(x=ce,te):x},te.on=function(){var ce=C.on.apply(C,arguments);return ce===C?te:ce},te.clickDistance=function(ce){return arguments.length?(V=(ce=+ce)*ce,te):Math.sqrt(V)},te.tapDistance=function(ce){return arguments.length?(ee=+ce,te):ee},te}const NV=Ne.createContext(null),kGt=NV.Provider,x3={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,s)=>`Couldn't create edge for ${l?"target":"source"} handle id: "${l?s.targetHandle:s.sourceHandle}", edge id: ${s.id}.`,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.`},Sgt=x3.error001();function Xl(l,s){const u=Ne.useContext(NV);if(u===null)throw new Error(Sgt);return G0t(u,l,s)}const Sh=()=>{const l=Ne.useContext(NV);if(l===null)throw new Error(Sgt);return Ne.useMemo(()=>({getState:l.getState,setState:l.setState,subscribe:l.subscribe,destroy:l.destroy}),[l])},SGt=l=>l.userSelectionActive?"none":"all";function xGt({position:l,children:s,className:u,style:a,...g}){const w=Xl(SGt),b=`${l}`.split("-");return In.createElement("div",{className:Fb(["react-flow__panel",u,...b]),style:{...a,pointerEvents:w},...g},s)}function EGt({proOptions:l,position:s="bottom-right"}){return l!=null&&l.hideAttribution?null:In.createElement(xGt,{position:s,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://reactflow.dev/pro"},In.createElement("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution"},"React Flow"))}const CGt=({x:l,y:s,label:u,labelStyle:a={},labelShowBg:g=!0,labelBgStyle:w={},labelBgPadding:b=[2,4],labelBgBorderRadius:y=2,children:x,className:C,...T})=>{const j=Ne.useRef(null),[N,F]=Ne.useState({x:0,y:0,width:0,height:0}),Q=Fb(["react-flow__edge-textwrapper",C]);return Ne.useEffect(()=>{if(j.current){const V=j.current.getBBox();F({x:V.x,y:V.y,width:V.width,height:V.height})}},[u]),typeof u>"u"||!u?null:In.createElement("g",{transform:`translate(${l-N.width/2} ${s-N.height/2})`,className:Q,visibility:N.width?"visible":"hidden",...T},g&&In.createElement("rect",{width:N.width+2*b[0],x:-b[0],y:-b[1],height:N.height+2*b[1],className:"react-flow__edge-textbg",style:w,rx:y,ry:y}),In.createElement("text",{className:"react-flow__edge-text",y:N.height/2,dy:"0.3em",ref:j,style:a},u),x)};var TGt=Ne.memo(CGt);const $ve=l=>({width:l.offsetWidth,height:l.offsetHeight}),lC=(l,s=0,u=1)=>Math.min(Math.max(l,s),u),Rve=(l={x:0,y:0},s)=>({x:lC(l.x,s[0][0],s[1][0]),y:lC(l.y,s[0][1],s[1][1])}),Gat=(l,s,u)=>l<s?lC(Math.abs(l-s),1,50)/50:l>u?-lC(Math.abs(l-u),1,50)/50:0,xgt=(l,s)=>{const u=Gat(l.x,35,s.width-35)*20,a=Gat(l.y,35,s.height-35)*20;return[u,a]},Egt=l=>{var s;return((s=l.getRootNode)==null?void 0:s.call(l))||(window==null?void 0:window.document)},AGt=(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)}),Lve=({x:l,y:s,width:u,height:a})=>({x:l,y:s,x2:l+u,y2:s+a}),MGt=({x:l,y:s,x2:u,y2:a})=>({x:l,y:s,width:u-l,height:a-s}),Vat=l=>({...l.positionAbsolute||{x:0,y:0},width:l.width||0,height:l.height||0}),v2e=(l,s)=>{const u=Math.max(0,Math.min(l.x+l.width,s.x+s.width)-Math.max(l.x,s.x)),a=Math.max(0,Math.min(l.y+l.height,s.y+s.height)-Math.max(l.y,s.y));return Math.ceil(u*a)},jGt=l=>Db(l.width)&&Db(l.height)&&Db(l.x)&&Db(l.y),Db=l=>!isNaN(l)&&isFinite(l),vl=Symbol.for("internals"),Cgt=["Enter"," ","Escape"],PGt=(l,s)=>{},DGt=l=>"nativeEvent"in l;function y2e(l){var g,w;const s=DGt(l)?l.nativeEvent:l,u=((w=(g=s.composedPath)==null?void 0:g.call(s))==null?void 0:w[0])||l.target;return["INPUT","SELECT","TEXTAREA"].includes(u==null?void 0:u.nodeName)||(u==null?void 0:u.hasAttribute("contenteditable"))||!!(u!=null&&u.closest(".nokey"))}const Tgt=l=>"clientX"in l,B5=(l,s)=>{var w,b;const u=Tgt(l),a=u?l.clientX:(w=l.touches)==null?void 0:w[0].clientX,g=u?l.clientY:(b=l.touches)==null?void 0:b[0].clientY;return{x:a-((s==null?void 0:s.left)??0),y:g-((s==null?void 0:s.top)??0)}},JG=()=>{var l;return typeof navigator<"u"&&((l=navigator==null?void 0:navigator.userAgent)==null?void 0:l.indexOf("Mac"))>=0},G$=({id:l,path:s,labelX:u,labelY:a,label:g,labelStyle:w,labelShowBg:b,labelBgStyle:y,labelBgPadding:x,labelBgBorderRadius:C,style:T,markerEnd:j,markerStart:N,interactionWidth:F=20})=>In.createElement(In.Fragment,null,In.createElement("path",{id:l,style:T,d:s,fill:"none",className:"react-flow__edge-path",markerEnd:j,markerStart:N}),F&&In.createElement("path",{d:s,fill:"none",strokeOpacity:0,strokeWidth:F,className:"react-flow__edge-interaction"}),g&&Db(u)&&Db(a)?In.createElement(TGt,{x:u,y:a,label:g,labelStyle:w,labelShowBg:b,labelBgStyle:y,labelBgPadding:x,labelBgBorderRadius:C}):null);G$.displayName="BaseEdge";function UN(l,s,u){return u===void 0?u:a=>{const g=s().edges.find(w=>w.id===l);g&&u(a,{...g})}}function Agt({sourceX:l,sourceY:s,targetX:u,targetY:a}){const g=Math.abs(u-l)/2,w=u<l?u+g:u-g,b=Math.abs(a-s)/2,y=a<s?a+b:a-b;return[w,y,g,b]}function Mgt({sourceX:l,sourceY:s,targetX:u,targetY:a,sourceControlX:g,sourceControlY:w,targetControlX:b,targetControlY:y}){const x=l*.125+g*.375+b*.375+u*.125,C=s*.125+w*.375+y*.375+a*.125,T=Math.abs(x-l),j=Math.abs(C-s);return[x,C,T,j]}var u9;(function(l){l.Strict="strict",l.Loose="loose"})(u9||(u9={}));var e9;(function(l){l.Free="free",l.Vertical="vertical",l.Horizontal="horizontal"})(e9||(e9={}));var E$;(function(l){l.Partial="partial",l.Full="full"})(E$||(E$={}));var I5;(function(l){l.Bezier="default",l.Straight="straight",l.Step="step",l.SmoothStep="smoothstep",l.SimpleBezier="simplebezier"})(I5||(I5={}));var eV;(function(l){l.Arrow="arrow",l.ArrowClosed="arrowclosed"})(eV||(eV={}));var Ai;(function(l){l.Left="left",l.Top="top",l.Right="right",l.Bottom="bottom"})(Ai||(Ai={}));function Yat({pos:l,x1:s,y1:u,x2:a,y2:g}){return l===Ai.Left||l===Ai.Right?[.5*(s+a),u]:[s,.5*(u+g)]}function jgt({sourceX:l,sourceY:s,sourcePosition:u=Ai.Bottom,targetX:a,targetY:g,targetPosition:w=Ai.Top}){const[b,y]=Yat({pos:u,x1:l,y1:s,x2:a,y2:g}),[x,C]=Yat({pos:w,x1:a,y1:g,x2:l,y2:s}),[T,j,N,F]=Mgt({sourceX:l,sourceY:s,targetX:a,targetY:g,sourceControlX:b,sourceControlY:y,targetControlX:x,targetControlY:C});return[`M${l},${s} C${b},${y} ${x},${C} ${a},${g}`,T,j,N,F]}const Fve=Ne.memo(({sourceX:l,sourceY:s,targetX:u,targetY:a,sourcePosition:g=Ai.Bottom,targetPosition:w=Ai.Top,label:b,labelStyle:y,labelShowBg:x,labelBgStyle:C,labelBgPadding:T,labelBgBorderRadius:j,style:N,markerEnd:F,markerStart:Q,interactionWidth:V})=>{const[ee,te,le]=jgt({sourceX:l,sourceY:s,sourcePosition:g,targetX:u,targetY:a,targetPosition:w});return In.createElement(G$,{path:ee,labelX:te,labelY:le,label:b,labelStyle:y,labelShowBg:x,labelBgStyle:C,labelBgPadding:T,labelBgBorderRadius:j,style:N,markerEnd:F,markerStart:Q,interactionWidth:V})});Fve.displayName="SimpleBezierEdge";const Zat={[Ai.Left]:{x:-1,y:0},[Ai.Right]:{x:1,y:0},[Ai.Top]:{x:0,y:-1},[Ai.Bottom]:{x:0,y:1}},IGt=({source:l,sourcePosition:s=Ai.Bottom,target:u})=>s===Ai.Left||s===Ai.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},Jat=(l,s)=>Math.sqrt(Math.pow(s.x-l.x,2)+Math.pow(s.y-l.y,2));function NGt({source:l,sourcePosition:s=Ai.Bottom,target:u,targetPosition:a=Ai.Top,center:g,offset:w}){const b=Zat[s],y=Zat[a],x={x:l.x+b.x*w,y:l.y+b.y*w},C={x:u.x+y.x*w,y:u.y+y.y*w},T=IGt({source:x,sourcePosition:s,target:C}),j=T.x!==0?"x":"y",N=T[j];let F=[],Q,V;const ee={x:0,y:0},te={x:0,y:0},[le,Se,be,xe]=Agt({sourceX:l.x,sourceY:l.y,targetX:u.x,targetY:u.y});if(b[j]*y[j]===-1){Q=g.x??le,V=g.y??Se;const _e=[{x:Q,y:x.y},{x:Q,y:C.y}],rt=[{x:x.x,y:V},{x:C.x,y:V}];b[j]===N?F=j==="x"?_e:rt:F=j==="x"?rt:_e}else{const _e=[{x:x.x,y:C.y}],rt=[{x:C.x,y:x.y}];if(j==="x"?F=b.x===N?rt:_e:F=b.y===N?_e:rt,s===a){const pt=Math.abs(l[j]-u[j]);if(pt<=w){const ce=Math.min(w-1,w-pt);b[j]===N?ee[j]=(x[j]>l[j]?-1:1)*ce:te[j]=(C[j]>u[j]?-1:1)*ce}}if(s!==a){const pt=j==="x"?"y":"x",ce=b[j]===y[pt],Ze=x[pt]>C[pt],et=x[pt]<C[pt];(b[j]===1&&(!ce&&Ze||ce&&et)||b[j]!==1&&(!ce&&et||ce&&Ze))&&(F=j==="x"?_e:rt)}const $e={x:x.x+ee.x,y:x.y+ee.y},ut={x:C.x+te.x,y:C.y+te.y},st=Math.max(Math.abs($e.x-F[0].x),Math.abs(ut.x-F[0].x)),ht=Math.max(Math.abs($e.y-F[0].y),Math.abs(ut.y-F[0].y));st>=ht?(Q=($e.x+ut.x)/2,V=F[0].y):(Q=F[0].x,V=($e.y+ut.y)/2)}return[[l,{x:x.x+ee.x,y:x.y+ee.y},...F,{x:C.x+te.x,y:C.y+te.y},u],Q,V,be,xe]}function $Gt(l,s,u,a){const g=Math.min(Jat(l,s)/2,Jat(s,u)/2,a),{x:w,y:b}=s;if(l.x===w&&w===u.x||l.y===b&&b===u.y)return`L${w} ${b}`;if(l.y===b){const C=l.x<u.x?-1:1,T=l.y<u.y?1:-1;return`L ${w+g*C},${b}Q ${w},${b} ${w},${b+g*T}`}const y=l.x<u.x?1:-1,x=l.y<u.y?-1:1;return`L ${w},${b+g*x}Q ${w},${b} ${w+g*y},${b}`}function O2e({sourceX:l,sourceY:s,sourcePosition:u=Ai.Bottom,targetX:a,targetY:g,targetPosition:w=Ai.Top,borderRadius:b=5,centerX:y,centerY:x,offset:C=20}){const[T,j,N,F,Q]=NGt({source:{x:l,y:s},sourcePosition:u,target:{x:a,y:g},targetPosition:w,center:{x:y,y:x},offset:C});return[T.reduce((ee,te,le)=>{let Se="";return le>0&&le<T.length-1?Se=$Gt(T[le-1],te,T[le+1],b):Se=`${le===0?"M":"L"}${te.x} ${te.y}`,ee+=Se,ee},""),j,N,F,Q]}const $V=Ne.memo(({sourceX:l,sourceY:s,targetX:u,targetY:a,label:g,labelStyle:w,labelShowBg:b,labelBgStyle:y,labelBgPadding:x,labelBgBorderRadius:C,style:T,sourcePosition:j=Ai.Bottom,targetPosition:N=Ai.Top,markerEnd:F,markerStart:Q,pathOptions:V,interactionWidth:ee})=>{const[te,le,Se]=O2e({sourceX:l,sourceY:s,sourcePosition:j,targetX:u,targetY:a,targetPosition:N,borderRadius:V==null?void 0:V.borderRadius,offset:V==null?void 0:V.offset});return In.createElement(G$,{path:te,labelX:le,labelY:Se,label:g,labelStyle:w,labelShowBg:b,labelBgStyle:y,labelBgPadding:x,labelBgBorderRadius:C,style:T,markerEnd:F,markerStart:Q,interactionWidth:ee})});$V.displayName="SmoothStepEdge";const Bve=Ne.memo(l=>{var s;return In.createElement($V,{...l,pathOptions:Ne.useMemo(()=>{var u;return{borderRadius:0,offset:(u=l.pathOptions)==null?void 0:u.offset}},[(s=l.pathOptions)==null?void 0:s.offset])})});Bve.displayName="StepEdge";function RGt({sourceX:l,sourceY:s,targetX:u,targetY:a}){const[g,w,b,y]=Agt({sourceX:l,sourceY:s,targetX:u,targetY:a});return[`M ${l},${s}L ${u},${a}`,g,w,b,y]}const _ve=Ne.memo(({sourceX:l,sourceY:s,targetX:u,targetY:a,label:g,labelStyle:w,labelShowBg:b,labelBgStyle:y,labelBgPadding:x,labelBgBorderRadius:C,style:T,markerEnd:j,markerStart:N,interactionWidth:F})=>{const[Q,V,ee]=RGt({sourceX:l,sourceY:s,targetX:u,targetY:a});return In.createElement(G$,{path:Q,labelX:V,labelY:ee,label:g,labelStyle:w,labelShowBg:b,labelBgStyle:y,labelBgPadding:x,labelBgBorderRadius:C,style:T,markerEnd:j,markerStart:N,interactionWidth:F})});_ve.displayName="StraightEdge";function ZU(l,s){return l>=0?.5*l:s*25*Math.sqrt(-l)}function edt({pos:l,x1:s,y1:u,x2:a,y2:g,c:w}){switch(l){case Ai.Left:return[s-ZU(s-a,w),u];case Ai.Right:return[s+ZU(a-s,w),u];case Ai.Top:return[s,u-ZU(u-g,w)];case Ai.Bottom:return[s,u+ZU(g-u,w)]}}function Pgt({sourceX:l,sourceY:s,sourcePosition:u=Ai.Bottom,targetX:a,targetY:g,targetPosition:w=Ai.Top,curvature:b=.25}){const[y,x]=edt({pos:u,x1:l,y1:s,x2:a,y2:g,c:b}),[C,T]=edt({pos:w,x1:a,y1:g,x2:l,y2:s,c:b}),[j,N,F,Q]=Mgt({sourceX:l,sourceY:s,targetX:a,targetY:g,sourceControlX:y,sourceControlY:x,targetControlX:C,targetControlY:T});return[`M${l},${s} C${y},${x} ${C},${T} ${a},${g}`,j,N,F,Q]}const tV=Ne.memo(({sourceX:l,sourceY:s,targetX:u,targetY:a,sourcePosition:g=Ai.Bottom,targetPosition:w=Ai.Top,label:b,labelStyle:y,labelShowBg:x,labelBgStyle:C,labelBgPadding:T,labelBgBorderRadius:j,style:N,markerEnd:F,markerStart:Q,pathOptions:V,interactionWidth:ee})=>{const[te,le,Se]=Pgt({sourceX:l,sourceY:s,sourcePosition:g,targetX:u,targetY:a,targetPosition:w,curvature:V==null?void 0:V.curvature});return In.createElement(G$,{path:te,labelX:le,labelY:Se,label:b,labelStyle:y,labelShowBg:x,labelBgStyle:C,labelBgPadding:T,labelBgBorderRadius:j,style:N,markerEnd:F,markerStart:Q,interactionWidth:ee})});tV.displayName="BezierEdge";const qve=Ne.createContext(null),LGt=qve.Provider;qve.Consumer;const FGt=()=>Ne.useContext(qve),BGt=l=>"id"in l&&"source"in l&&"target"in l,_Gt=({source:l,sourceHandle:s,target:u,targetHandle:a})=>`reactflow__edge-${l}${s||""}-${u}${a||""}`,k2e=(l,s)=>typeof l>"u"?"":typeof l=="string"?l:`${s?`${s}__`:""}${Object.keys(l).sort().map(a=>`${a}=${l[a]}`).join("&")}`,qGt=(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)),QGt=(l,s)=>{if(!l.source||!l.target)return s;let u;return BGt(l)?u={...l}:u={...l,id:_Gt(l)},qGt(u,s)?s:s.concat(u)},S2e=({x:l,y:s},[u,a,g],w,[b,y])=>{const x={x:(l-u)/g,y:(s-a)/g};return w?{x:b*Math.round(x.x/b),y:y*Math.round(x.y/y)}:x},Dgt=({x:l,y:s},[u,a,g])=>({x:l*g+u,y:s*g+a}),JE=(l,s=[0,0])=>{if(!l)return{x:0,y:0,positionAbsolute:{x:0,y:0}};const u=(l.width??0)*s[0],a=(l.height??0)*s[1],g={x:l.position.x-u,y:l.position.y-a};return{...g,positionAbsolute:l.positionAbsolute?{x:l.positionAbsolute.x-u,y:l.positionAbsolute.y-a}:g}},Qve=(l,s=[0,0])=>{if(l.length===0)return{x:0,y:0,width:0,height:0};const u=l.reduce((a,g)=>{const{x:w,y:b}=JE(g,s).positionAbsolute;return AGt(a,Lve({x:w,y:b,width:g.width||0,height:g.height||0}))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return MGt(u)},Igt=(l,s,[u,a,g]=[0,0,1],w=!1,b=!1,y=[0,0])=>{const x={x:(s.x-u)/g,y:(s.y-a)/g,width:s.width/g,height:s.height/g},C=[];return l.forEach(T=>{const{width:j,height:N,selectable:F=!0,hidden:Q=!1}=T;if(b&&!F||Q)return!1;const{positionAbsolute:V}=JE(T,y),ee={x:V.x,y:V.y,width:j||0,height:N||0},te=v2e(x,ee),le=typeof j>"u"||typeof N>"u"||j===null||N===null,Se=w&&te>0,be=(j||0)*(N||0);(le||Se||te>=be||T.dragging)&&C.push(T)}),C},Ngt=(l,s)=>{const u=l.map(a=>a.id);return s.filter(a=>u.includes(a.source)||u.includes(a.target))},$gt=(l,s,u,a,g,w=.1)=>{const b=s/(l.width*(1+w)),y=u/(l.height*(1+w)),x=Math.min(b,y),C=lC(x,a,g),T=l.x+l.width/2,j=l.y+l.height/2,N=s/2-T*C,F=u/2-j*C;return{x:N,y:F,zoom:C}},U8=(l,s=0)=>l.transition().duration(s);function tdt(l,s,u,a){return(s[u]||[]).reduce((g,w)=>{var b,y;return`${l.id}-${w.id}-${u}`!==a&&g.push({id:w.id||null,type:u,nodeId:l.id,x:(((b=l.positionAbsolute)==null?void 0:b.x)??0)+w.x+w.width/2,y:(((y=l.positionAbsolute)==null?void 0:y.y)??0)+w.y+w.height/2}),g},[])}function HGt(l,s,u,a,g,w){const{x:b,y}=B5(l),C=s.elementsFromPoint(b,y).find(Q=>Q.classList.contains("react-flow__handle"));if(C){const Q=C.getAttribute("data-nodeid");if(Q){const V=Hve(void 0,C),ee=C.getAttribute("data-handleid"),te=w({nodeId:Q,id:ee,type:V});if(te){const le=g.find(Se=>Se.nodeId===Q&&Se.type===V&&Se.id===ee);return{handle:{id:ee,type:V,nodeId:Q,x:(le==null?void 0:le.x)||u.x,y:(le==null?void 0:le.y)||u.y},validHandleResult:te}}}}let T=[],j=1/0;if(g.forEach(Q=>{const V=Math.sqrt((Q.x-u.x)**2+(Q.y-u.y)**2);if(V<=a){const ee=w(Q);V<=j&&(V<j?T=[{handle:Q,validHandleResult:ee}]:V===j&&T.push({handle:Q,validHandleResult:ee}),j=V)}}),!T.length)return{handle:null,validHandleResult:Rgt()};if(T.length===1)return T[0];const N=T.some(({validHandleResult:Q})=>Q.isValid),F=T.some(({handle:Q})=>Q.type==="target");return T.find(({handle:Q,validHandleResult:V})=>F?Q.type==="target":N?V.isValid:!0)||T[0]}const zGt={source:null,target:null,sourceHandle:null,targetHandle:null},Rgt=()=>({handleDomNode:null,isValid:!1,connection:zGt,endHandle:null});function Lgt(l,s,u,a,g,w,b){const y=g==="target",x=b.querySelector(`.react-flow__handle[data-id="${l==null?void 0:l.nodeId}-${l==null?void 0:l.id}-${l==null?void 0:l.type}"]`),C={...Rgt(),handleDomNode:x};if(x){const T=Hve(void 0,x),j=x.getAttribute("data-nodeid"),N=x.getAttribute("data-handleid"),F=x.classList.contains("connectable"),Q=x.classList.contains("connectableend"),V={source:y?j:u,sourceHandle:y?N:a,target:y?u:j,targetHandle:y?a:N};C.connection=V,F&&Q&&(s===u9.Strict?y&&T==="source"||!y&&T==="target":j!==u||N!==a)&&(C.endHandle={nodeId:j,handleId:N,type:T},C.isValid=w(V))}return C}function KGt({nodes:l,nodeId:s,handleId:u,handleType:a}){return l.reduce((g,w)=>{if(w[vl]){const{handleBounds:b}=w[vl];let y=[],x=[];b&&(y=tdt(w,b,"source",`${s}-${u}-${a}`),x=tdt(w,b,"target",`${s}-${u}-${a}`)),g.push(...y,...x)}return g},[])}function Hve(l,s){return l||(s!=null&&s.classList.contains("target")?"target":s!=null&&s.classList.contains("source")?"source":null)}function mme(l){l==null||l.classList.remove("valid","connecting","react-flow__handle-valid","react-flow__handle-connecting")}function WGt(l,s){let u=null;return s?u="valid":l&&!s&&(u="invalid"),u}function Fgt({event:l,handleId:s,nodeId:u,onConnect:a,isTarget:g,getState:w,setState:b,isValidConnection:y,edgeUpdaterType:x,onReconnectEnd:C}){const T=Egt(l.target),{connectionMode:j,domNode:N,autoPanOnConnect:F,connectionRadius:Q,onConnectStart:V,panBy:ee,getNodes:te,cancelConnection:le}=w();let Se=0,be;const{x:xe,y:Me}=B5(l),_e=T==null?void 0:T.elementFromPoint(xe,Me),rt=Hve(x,_e),$e=N==null?void 0:N.getBoundingClientRect();if(!$e||!rt)return;let ut,st=B5(l,$e),ht=!1,pt=null,ce=!1,Ze=null;const et=KGt({nodes:te(),nodeId:u,handleId:s,handleType:rt}),vt=()=>{if(!F)return;const[Nt,Jt]=xgt(st,$e);ee({x:Nt,y:Jt}),Se=requestAnimationFrame(vt)};b({connectionPosition:st,connectionStatus:null,connectionNodeId:u,connectionHandleId:s,connectionHandleType:rt,connectionStartHandle:{nodeId:u,handleId:s,type:rt},connectionEndHandle:null}),V==null||V(l,{nodeId:u,handleId:s,handleType:rt});function X(Nt){const{transform:Jt}=w();st=B5(Nt,$e);const{handle:Yt,validHandleResult:Nn}=HGt(Nt,T,S2e(st,Jt,!1,[1,1]),Q,et,Ln=>Lgt(Ln,j,u,s,g?"target":"source",y,T));if(be=Yt,ht||(vt(),ht=!0),Ze=Nn.handleDomNode,pt=Nn.connection,ce=Nn.isValid,b({connectionPosition:be&&ce?Dgt({x:be.x,y:be.y},Jt):st,connectionStatus:WGt(!!be,ce),connectionEndHandle:Nn.endHandle}),!be&&!ce&&!Ze)return mme(ut);pt.source!==pt.target&&Ze&&(mme(ut),ut=Ze,Ze.classList.add("connecting","react-flow__handle-connecting"),Ze.classList.toggle("valid",ce),Ze.classList.toggle("react-flow__handle-valid",ce))}function nt(Nt){var Jt,Yt;(be||Ze)&&pt&&ce&&(a==null||a(pt)),(Yt=(Jt=w()).onConnectEnd)==null||Yt.call(Jt,Nt),x&&(C==null||C(Nt)),mme(ut),le(),cancelAnimationFrame(Se),ht=!1,ce=!1,pt=null,Ze=null,T.removeEventListener("mousemove",X),T.removeEventListener("mouseup",nt),T.removeEventListener("touchmove",X),T.removeEventListener("touchend",nt)}T.addEventListener("mousemove",X),T.addEventListener("mouseup",nt),T.addEventListener("touchmove",X),T.addEventListener("touchend",nt)}const ndt=()=>!0,XGt=l=>({connectionStartHandle:l.connectionStartHandle,connectOnClick:l.connectOnClick,noPanClassName:l.noPanClassName}),UGt=(l,s,u)=>a=>{const{connectionStartHandle:g,connectionEndHandle:w,connectionClickStartHandle:b}=a;return{connecting:(g==null?void 0:g.nodeId)===l&&(g==null?void 0:g.handleId)===s&&(g==null?void 0:g.type)===u||(w==null?void 0:w.nodeId)===l&&(w==null?void 0:w.handleId)===s&&(w==null?void 0:w.type)===u,clickConnecting:(b==null?void 0:b.nodeId)===l&&(b==null?void 0:b.handleId)===s&&(b==null?void 0:b.type)===u}},Bgt=Ne.forwardRef(({type:l="source",position:s=Ai.Top,isValidConnection:u,isConnectable:a=!0,isConnectableStart:g=!0,isConnectableEnd:w=!0,id:b,onConnect:y,children:x,className:C,onMouseDown:T,onTouchStart:j,...N},F)=>{var $e,ut;const Q=b||null,V=l==="target",ee=Sh(),te=FGt(),{connectOnClick:le,noPanClassName:Se}=Xl(XGt,F1),{connecting:be,clickConnecting:xe}=Xl(UGt(te,Q,l),F1);te||(ut=($e=ee.getState()).onError)==null||ut.call($e,"010",x3.error010());const Me=st=>{const{defaultEdgeOptions:ht,onConnect:pt,hasDefaultEdges:ce}=ee.getState(),Ze={...ht,...st};if(ce){const{edges:et,setEdges:vt}=ee.getState();vt(QGt(Ze,et))}pt==null||pt(Ze),y==null||y(Ze)},_e=st=>{if(!te)return;const ht=Tgt(st);g&&(ht&&st.button===0||!ht)&&Fgt({event:st,handleId:Q,nodeId:te,onConnect:Me,isTarget:V,getState:ee.getState,setState:ee.setState,isValidConnection:u||ee.getState().isValidConnection||ndt}),ht?T==null||T(st):j==null||j(st)},rt=st=>{const{onClickConnectStart:ht,onClickConnectEnd:pt,connectionClickStartHandle:ce,connectionMode:Ze,isValidConnection:et}=ee.getState();if(!te||!ce&&!g)return;if(!ce){ht==null||ht(st,{nodeId:te,handleId:Q,handleType:l}),ee.setState({connectionClickStartHandle:{nodeId:te,type:l,handleId:Q}});return}const vt=Egt(st.target),X=u||et||ndt,{connection:nt,isValid:Nt}=Lgt({nodeId:te,id:Q,type:l},Ze,ce.nodeId,ce.handleId||null,ce.type,X,vt);Nt&&Me(nt),pt==null||pt(st),ee.setState({connectionClickStartHandle:null})};return In.createElement("div",{"data-handleid":Q,"data-nodeid":te,"data-handlepos":s,"data-id":`${te}-${Q}-${l}`,className:Fb(["react-flow__handle",`react-flow__handle-${s}`,"nodrag",Se,C,{source:!V,target:V,connectable:a,connectablestart:g,connectableend:w,connecting:xe,connectionindicator:a&&(g&&!be||w&&be)}]),onMouseDown:_e,onTouchStart:_e,onClick:le?rt:void 0,ref:F,...N},x)});Bgt.displayName="Handle";var q5=Ne.memo(Bgt);const _gt=({data:l,isConnectable:s,targetPosition:u=Ai.Top,sourcePosition:a=Ai.Bottom})=>In.createElement(In.Fragment,null,In.createElement(q5,{type:"target",position:u,isConnectable:s}),l==null?void 0:l.label,In.createElement(q5,{type:"source",position:a,isConnectable:s}));_gt.displayName="DefaultNode";var x2e=Ne.memo(_gt);const qgt=({data:l,isConnectable:s,sourcePosition:u=Ai.Bottom})=>In.createElement(In.Fragment,null,l==null?void 0:l.label,In.createElement(q5,{type:"source",position:u,isConnectable:s}));qgt.displayName="InputNode";var Qgt=Ne.memo(qgt);const Hgt=({data:l,isConnectable:s,targetPosition:u=Ai.Top})=>In.createElement(In.Fragment,null,In.createElement(q5,{type:"target",position:u,isConnectable:s}),l==null?void 0:l.label);Hgt.displayName="OutputNode";var zgt=Ne.memo(Hgt);const zve=()=>null;zve.displayName="GroupNode";const GGt=l=>({selectedNodes:l.getNodes().filter(s=>s.selected),selectedEdges:l.edges.filter(s=>s.selected).map(s=>({...s}))}),JU=l=>l.id;function VGt(l,s){return F1(l.selectedNodes.map(JU),s.selectedNodes.map(JU))&&F1(l.selectedEdges.map(JU),s.selectedEdges.map(JU))}const Kgt=Ne.memo(({onSelectionChange:l})=>{const s=Sh(),{selectedNodes:u,selectedEdges:a}=Xl(GGt,VGt);return Ne.useEffect(()=>{const g={nodes:u,edges:a};l==null||l(g),s.getState().onSelectionChange.forEach(w=>w(g))},[u,a,l]),null});Kgt.displayName="SelectionListener";const YGt=l=>!!l.onSelectionChange;function ZGt({onSelectionChange:l}){const s=Xl(YGt);return l||s?In.createElement(Kgt,{onSelectionChange:l}):null}const JGt=l=>({setNodes:l.setNodes,setEdges:l.setEdges,setDefaultNodesAndEdges:l.setDefaultNodesAndEdges,setMinZoom:l.setMinZoom,setMaxZoom:l.setMaxZoom,setTranslateExtent:l.setTranslateExtent,setNodeExtent:l.setNodeExtent,reset:l.reset});function _E(l,s){Ne.useEffect(()=>{typeof l<"u"&&s(l)},[l])}function Ds(l,s,u){Ne.useEffect(()=>{typeof s<"u"&&u({[l]:s})},[s])}const eVt=({nodes:l,edges:s,defaultNodes:u,defaultEdges:a,onConnect:g,onConnectStart:w,onConnectEnd:b,onClickConnectStart:y,onClickConnectEnd:x,nodesDraggable:C,nodesConnectable:T,nodesFocusable:j,edgesFocusable:N,edgesUpdatable:F,elevateNodesOnSelect:Q,minZoom:V,maxZoom:ee,nodeExtent:te,onNodesChange:le,onEdgesChange:Se,elementsSelectable:be,connectionMode:xe,snapGrid:Me,snapToGrid:_e,translateExtent:rt,connectOnClick:$e,defaultEdgeOptions:ut,fitView:st,fitViewOptions:ht,onNodesDelete:pt,onEdgesDelete:ce,onNodeDrag:Ze,onNodeDragStart:et,onNodeDragStop:vt,onSelectionDrag:X,onSelectionDragStart:nt,onSelectionDragStop:Nt,noPanClassName:Jt,nodeOrigin:Yt,rfId:Nn,autoPanOnConnect:Ln,autoPanOnNodeDrag:Mi,onError:ar,connectionRadius:Dr,isValidConnection:Ys,nodeDragThreshold:ps})=>{const{setNodes:vr,setEdges:Lc,setDefaultNodesAndEdges:so,setMinZoom:Fo,setMaxZoom:Mo,setTranslateExtent:Xo,setNodeExtent:gf,reset:Qs}=Xl(JGt,F1),gi=Sh();return Ne.useEffect(()=>{const xc=a==null?void 0:a.map(Cd=>({...Cd,...ut}));return so(u,xc),()=>{Qs()}},[]),Ds("defaultEdgeOptions",ut,gi.setState),Ds("connectionMode",xe,gi.setState),Ds("onConnect",g,gi.setState),Ds("onConnectStart",w,gi.setState),Ds("onConnectEnd",b,gi.setState),Ds("onClickConnectStart",y,gi.setState),Ds("onClickConnectEnd",x,gi.setState),Ds("nodesDraggable",C,gi.setState),Ds("nodesConnectable",T,gi.setState),Ds("nodesFocusable",j,gi.setState),Ds("edgesFocusable",N,gi.setState),Ds("edgesUpdatable",F,gi.setState),Ds("elementsSelectable",be,gi.setState),Ds("elevateNodesOnSelect",Q,gi.setState),Ds("snapToGrid",_e,gi.setState),Ds("snapGrid",Me,gi.setState),Ds("onNodesChange",le,gi.setState),Ds("onEdgesChange",Se,gi.setState),Ds("connectOnClick",$e,gi.setState),Ds("fitViewOnInit",st,gi.setState),Ds("fitViewOnInitOptions",ht,gi.setState),Ds("onNodesDelete",pt,gi.setState),Ds("onEdgesDelete",ce,gi.setState),Ds("onNodeDrag",Ze,gi.setState),Ds("onNodeDragStart",et,gi.setState),Ds("onNodeDragStop",vt,gi.setState),Ds("onSelectionDrag",X,gi.setState),Ds("onSelectionDragStart",nt,gi.setState),Ds("onSelectionDragStop",Nt,gi.setState),Ds("noPanClassName",Jt,gi.setState),Ds("nodeOrigin",Yt,gi.setState),Ds("rfId",Nn,gi.setState),Ds("autoPanOnConnect",Ln,gi.setState),Ds("autoPanOnNodeDrag",Mi,gi.setState),Ds("onError",ar,gi.setState),Ds("connectionRadius",Dr,gi.setState),Ds("isValidConnection",Ys,gi.setState),Ds("nodeDragThreshold",ps,gi.setState),_E(l,vr),_E(s,Lc),_E(V,Fo),_E(ee,Mo),_E(rt,Xo),_E(te,gf),null},idt={display:"none"},tVt={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Wgt="react-flow__node-desc",Xgt="react-flow__edge-desc",nVt="react-flow__aria-live",iVt=l=>l.ariaLiveMessage;function rVt({rfId:l}){const s=Xl(iVt);return In.createElement("div",{id:`${nVt}-${l}`,"aria-live":"assertive","aria-atomic":"true",style:tVt},s)}function sVt({rfId:l,disableKeyboardA11y:s}){return In.createElement(In.Fragment,null,In.createElement("div",{id:`${Wgt}-${l}`,style:idt},"Press enter or space to select a node.",!s&&"You can then use the arrow keys to move the node around."," Press delete to remove it and escape to cancel."," "),In.createElement("div",{id:`${Xgt}-${l}`,style:idt},"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."),!s&&In.createElement(rVt,{rfId:l}))}var C$=(l=null,s={actInsideInputWithModifier:!0})=>{const[u,a]=Ne.useState(!1),g=Ne.useRef(!1),w=Ne.useRef(new Set([])),[b,y]=Ne.useMemo(()=>{if(l!==null){const C=(Array.isArray(l)?l:[l]).filter(j=>typeof j=="string").map(j=>j.split("+")),T=C.reduce((j,N)=>j.concat(...N),[]);return[C,T]}return[[],[]]},[l]);return Ne.useEffect(()=>{const x=typeof document<"u"?document:null,C=(s==null?void 0:s.target)||x;if(l!==null){const T=F=>{if(g.current=F.ctrlKey||F.metaKey||F.shiftKey,(!g.current||g.current&&!s.actInsideInputWithModifier)&&y2e(F))return!1;const V=sdt(F.code,y);w.current.add(F[V]),rdt(b,w.current,!1)&&(F.preventDefault(),a(!0))},j=F=>{if((!g.current||g.current&&!s.actInsideInputWithModifier)&&y2e(F))return!1;const V=sdt(F.code,y);rdt(b,w.current,!0)?(a(!1),w.current.clear()):w.current.delete(F[V]),F.key==="Meta"&&w.current.clear(),g.current=!1},N=()=>{w.current.clear(),a(!1)};return C==null||C.addEventListener("keydown",T),C==null||C.addEventListener("keyup",j),window.addEventListener("blur",N),()=>{C==null||C.removeEventListener("keydown",T),C==null||C.removeEventListener("keyup",j),window.removeEventListener("blur",N)}}},[l,a]),u};function rdt(l,s,u){return l.filter(a=>u||a.length===s.size).some(a=>a.every(g=>s.has(g)))}function sdt(l,s){return s.includes(l)?"code":"key"}function Ugt(l,s,u,a){var y,x;const g=l.parentNode||l.parentId;if(!g)return u;const w=s.get(g),b=JE(w,a);return Ugt(w,s,{x:(u.x??0)+b.x,y:(u.y??0)+b.y,z:(((y=w[vl])==null?void 0:y.z)??0)>(u.z??0)?((x=w[vl])==null?void 0:x.z)??0:u.z??0},a)}function Ggt(l,s,u){l.forEach(a=>{var w;const g=a.parentNode||a.parentId;if(g&&!l.has(g))throw new Error(`Parent node ${g} not found`);if(g||u!=null&&u[a.id]){const{x:b,y,z:x}=Ugt(a,l,{...a.position,z:((w=a[vl])==null?void 0:w.z)??0},s);a.positionAbsolute={x:b,y},a[vl].z=x,u!=null&&u[a.id]&&(a[vl].isParent=!0)}})}function vme(l,s,u,a){const g=new Map,w={},b=a?1e3:0;return l.forEach(y=>{var F;const x=(Db(y.zIndex)?y.zIndex:0)+(y.selected?b:0),C=s.get(y.id),T={...y,positionAbsolute:{x:y.position.x,y:y.position.y}},j=y.parentNode||y.parentId;j&&(w[j]=!0);const N=(C==null?void 0:C.type)&&(C==null?void 0:C.type)!==y.type;Object.defineProperty(T,vl,{enumerable:!1,value:{handleBounds:N||(F=C==null?void 0:C[vl])==null?void 0:F.handleBounds,z:x}}),g.set(y.id,T)}),Ggt(g,u,w),g}function Vgt(l,s={}){const{getNodes:u,width:a,height:g,minZoom:w,maxZoom:b,d3Zoom:y,d3Selection:x,fitViewOnInitDone:C,fitViewOnInit:T,nodeOrigin:j}=l(),N=s.initial&&!C&&T;if(y&&x&&(N||!s.initial)){const Q=u().filter(ee=>{var le;const te=s.includeHiddenNodes?ee.width&&ee.height:!ee.hidden;return(le=s.nodes)!=null&&le.length?te&&s.nodes.some(Se=>Se.id===ee.id):te}),V=Q.every(ee=>ee.width&&ee.height);if(Q.length>0&&V){const ee=Qve(Q,j),{x:te,y:le,zoom:Se}=$gt(ee,a,g,s.minZoom??w,s.maxZoom??b,s.padding??.1),be=F5.translate(te,le).scale(Se);return typeof s.duration=="number"&&s.duration>0?y.transform(U8(x,s.duration),be):y.transform(x,be),!0}}return!1}function oVt(l,s){return l.forEach(u=>{const a=s.get(u.id);a&&s.set(a.id,{...a,[vl]:a[vl],selected:u.selected})}),new Map(s)}function cVt(l,s){return s.map(u=>{const a=l.find(g=>g.id===u.id);return a&&(u.selected=a.selected),u})}function eG({changedNodes:l,changedEdges:s,get:u,set:a}){const{nodeInternals:g,edges:w,onNodesChange:b,onEdgesChange:y,hasDefaultNodes:x,hasDefaultEdges:C}=u();l!=null&&l.length&&(x&&a({nodeInternals:oVt(l,g)}),b==null||b(l)),s!=null&&s.length&&(C&&a({edges:cVt(s,w)}),y==null||y(s))}const qE=()=>{},uVt={zoomIn:qE,zoomOut:qE,zoomTo:qE,getZoom:()=>1,setViewport:qE,getViewport:()=>({x:0,y:0,zoom:1}),fitView:()=>!1,setCenter:qE,fitBounds:qE,project:l=>l,screenToFlowPosition:l=>l,flowToScreenPosition:l=>l,viewportInitialized:!1},lVt=l=>({d3Zoom:l.d3Zoom,d3Selection:l.d3Selection}),fVt=()=>{const l=Sh(),{d3Zoom:s,d3Selection:u}=Xl(lVt,F1);return Ne.useMemo(()=>u&&s?{zoomIn:g=>s.scaleBy(U8(u,g==null?void 0:g.duration),1.2),zoomOut:g=>s.scaleBy(U8(u,g==null?void 0:g.duration),1/1.2),zoomTo:(g,w)=>s.scaleTo(U8(u,w==null?void 0:w.duration),g),getZoom:()=>l.getState().transform[2],setViewport:(g,w)=>{const[b,y,x]=l.getState().transform,C=F5.translate(g.x??b,g.y??y).scale(g.zoom??x);s.transform(U8(u,w==null?void 0:w.duration),C)},getViewport:()=>{const[g,w,b]=l.getState().transform;return{x:g,y:w,zoom:b}},fitView:g=>Vgt(l.getState,g),setCenter:(g,w,b)=>{const{width:y,height:x,maxZoom:C}=l.getState(),T=typeof(b==null?void 0:b.zoom)<"u"?b.zoom:C,j=y/2-g*T,N=x/2-w*T,F=F5.translate(j,N).scale(T);s.transform(U8(u,b==null?void 0:b.duration),F)},fitBounds:(g,w)=>{const{width:b,height:y,minZoom:x,maxZoom:C}=l.getState(),{x:T,y:j,zoom:N}=$gt(g,b,y,x,C,(w==null?void 0:w.padding)??.1),F=F5.translate(T,j).scale(N);s.transform(U8(u,w==null?void 0:w.duration),F)},project:g=>{const{transform:w,snapToGrid:b,snapGrid:y}=l.getState();return console.warn("[DEPRECATED] `project` is deprecated. Instead use `screenToFlowPosition`. There is no need to subtract the react flow bounds anymore! https://reactflow.dev/api-reference/types/react-flow-instance#screen-to-flow-position"),S2e(g,w,b,y)},screenToFlowPosition:g=>{const{transform:w,snapToGrid:b,snapGrid:y,domNode:x}=l.getState();if(!x)return g;const{x:C,y:T}=x.getBoundingClientRect(),j={x:g.x-C,y:g.y-T};return S2e(j,w,b,y)},flowToScreenPosition:g=>{const{transform:w,domNode:b}=l.getState();if(!b)return g;const{x:y,y:x}=b.getBoundingClientRect(),C=Dgt(g,w);return{x:C.x+y,y:C.y+x}},viewportInitialized:!0}:uVt,[s,u])};function Ygt(){const l=fVt(),s=Sh(),u=Ne.useCallback(()=>s.getState().getNodes().map(V=>({...V})),[]),a=Ne.useCallback(V=>s.getState().nodeInternals.get(V),[]),g=Ne.useCallback(()=>{const{edges:V=[]}=s.getState();return V.map(ee=>({...ee}))},[]),w=Ne.useCallback(V=>{const{edges:ee=[]}=s.getState();return ee.find(te=>te.id===V)},[]),b=Ne.useCallback(V=>{const{getNodes:ee,setNodes:te,hasDefaultNodes:le,onNodesChange:Se}=s.getState(),be=ee(),xe=typeof V=="function"?V(be):V;if(le)te(xe);else if(Se){const Me=xe.length===0?be.map(_e=>({type:"remove",id:_e.id})):xe.map(_e=>({item:_e,type:"reset"}));Se(Me)}},[]),y=Ne.useCallback(V=>{const{edges:ee=[],setEdges:te,hasDefaultEdges:le,onEdgesChange:Se}=s.getState(),be=typeof V=="function"?V(ee):V;if(le)te(be);else if(Se){const xe=be.length===0?ee.map(Me=>({type:"remove",id:Me.id})):be.map(Me=>({item:Me,type:"reset"}));Se(xe)}},[]),x=Ne.useCallback(V=>{const ee=Array.isArray(V)?V:[V],{getNodes:te,setNodes:le,hasDefaultNodes:Se,onNodesChange:be}=s.getState();if(Se){const Me=[...te(),...ee];le(Me)}else if(be){const xe=ee.map(Me=>({item:Me,type:"add"}));be(xe)}},[]),C=Ne.useCallback(V=>{const ee=Array.isArray(V)?V:[V],{edges:te=[],setEdges:le,hasDefaultEdges:Se,onEdgesChange:be}=s.getState();if(Se)le([...te,...ee]);else if(be){const xe=ee.map(Me=>({item:Me,type:"add"}));be(xe)}},[]),T=Ne.useCallback(()=>{const{getNodes:V,edges:ee=[],transform:te}=s.getState(),[le,Se,be]=te;return{nodes:V().map(xe=>({...xe})),edges:ee.map(xe=>({...xe})),viewport:{x:le,y:Se,zoom:be}}},[]),j=Ne.useCallback(({nodes:V,edges:ee})=>{const{nodeInternals:te,getNodes:le,edges:Se,hasDefaultNodes:be,hasDefaultEdges:xe,onNodesDelete:Me,onEdgesDelete:_e,onNodesChange:rt,onEdgesChange:$e}=s.getState(),ut=(V||[]).map(Ze=>Ze.id),st=(ee||[]).map(Ze=>Ze.id),ht=le().reduce((Ze,et)=>{const vt=et.parentNode||et.parentId,X=!ut.includes(et.id)&&vt&&Ze.find(Nt=>Nt.id===vt);return(typeof et.deletable=="boolean"?et.deletable:!0)&&(ut.includes(et.id)||X)&&Ze.push(et),Ze},[]),pt=Se.filter(Ze=>typeof Ze.deletable=="boolean"?Ze.deletable:!0),ce=pt.filter(Ze=>st.includes(Ze.id));if(ht||ce){const Ze=Ngt(ht,pt),et=[...ce,...Ze],vt=et.reduce((X,nt)=>(X.includes(nt.id)||X.push(nt.id),X),[]);if((xe||be)&&(xe&&s.setState({edges:Se.filter(X=>!vt.includes(X.id))}),be&&(ht.forEach(X=>{te.delete(X.id)}),s.setState({nodeInternals:new Map(te)}))),vt.length>0&&(_e==null||_e(et),$e&&$e(vt.map(X=>({id:X,type:"remove"})))),ht.length>0&&(Me==null||Me(ht),rt)){const X=ht.map(nt=>({id:nt.id,type:"remove"}));rt(X)}}},[]),N=Ne.useCallback(V=>{const ee=jGt(V),te=ee?null:s.getState().nodeInternals.get(V.id);return!ee&&!te?[null,null,ee]:[ee?V:Vat(te),te,ee]},[]),F=Ne.useCallback((V,ee=!0,te)=>{const[le,Se,be]=N(V);return le?(te||s.getState().getNodes()).filter(xe=>{if(!be&&(xe.id===Se.id||!xe.positionAbsolute))return!1;const Me=Vat(xe),_e=v2e(Me,le);return ee&&_e>0||_e>=le.width*le.height}):[]},[]),Q=Ne.useCallback((V,ee,te=!0)=>{const[le]=N(V);if(!le)return!1;const Se=v2e(le,ee);return te&&Se>0||Se>=le.width*le.height},[]);return Ne.useMemo(()=>({...l,getNodes:u,getNode:a,getEdges:g,getEdge:w,setNodes:b,setEdges:y,addNodes:x,addEdges:C,toObject:T,deleteElements:j,getIntersectingNodes:F,isNodeIntersecting:Q}),[l,u,a,g,w,b,y,x,C,T,j,F,Q])}const hVt={actInsideInputWithModifier:!1};var aVt=({deleteKeyCode:l,multiSelectionKeyCode:s})=>{const u=Sh(),{deleteElements:a}=Ygt(),g=C$(l,hVt),w=C$(s);Ne.useEffect(()=>{if(g){const{edges:b,getNodes:y}=u.getState(),x=y().filter(T=>T.selected),C=b.filter(T=>T.selected);a({nodes:x,edges:C}),u.setState({nodesSelectionActive:!1})}},[g]),Ne.useEffect(()=>{u.setState({multiSelectionActive:w})},[w])};function dVt(l){const s=Sh();Ne.useEffect(()=>{let u;const a=()=>{var w,b;if(!l.current)return;const g=$ve(l.current);(g.height===0||g.width===0)&&((b=(w=s.getState()).onError)==null||b.call(w,"004",x3.error004())),s.setState({width:g.width||500,height:g.height||500})};return a(),window.addEventListener("resize",a),l.current&&(u=new ResizeObserver(()=>a()),u.observe(l.current)),()=>{window.removeEventListener("resize",a),u&&l.current&&u.unobserve(l.current)}},[])}const Kve={position:"absolute",width:"100%",height:"100%",top:0,left:0},gVt=(l,s)=>l.x!==s.x||l.y!==s.y||l.zoom!==s.k,tG=l=>({x:l.x,y:l.y,zoom:l.k}),QE=(l,s)=>l.target.closest(`.${s}`),odt=(l,s)=>s===2&&Array.isArray(l)&&l.includes(2),cdt=l=>{const s=l.ctrlKey&&JG()?10:1;return-l.deltaY*(l.deltaMode===1?.05:l.deltaMode?1:.002)*s},bVt=l=>({d3Zoom:l.d3Zoom,d3Selection:l.d3Selection,d3ZoomHandler:l.d3ZoomHandler,userSelectionActive:l.userSelectionActive}),pVt=({onMove:l,onMoveStart:s,onMoveEnd:u,onPaneContextMenu:a,zoomOnScroll:g=!0,zoomOnPinch:w=!0,panOnScroll:b=!1,panOnScrollSpeed:y=.5,panOnScrollMode:x=e9.Free,zoomOnDoubleClick:C=!0,elementsSelectable:T,panOnDrag:j=!0,defaultViewport:N,translateExtent:F,minZoom:Q,maxZoom:V,zoomActivationKeyCode:ee,preventScrolling:te=!0,children:le,noWheelClassName:Se,noPanClassName:be})=>{const xe=Ne.useRef(),Me=Sh(),_e=Ne.useRef(!1),rt=Ne.useRef(!1),$e=Ne.useRef(null),ut=Ne.useRef({x:0,y:0,zoom:0}),{d3Zoom:st,d3Selection:ht,d3ZoomHandler:pt,userSelectionActive:ce}=Xl(bVt,F1),Ze=C$(ee),et=Ne.useRef(0),vt=Ne.useRef(!1),X=Ne.useRef();return dVt($e),Ne.useEffect(()=>{if($e.current){const nt=$e.current.getBoundingClientRect(),Nt=OGt().scaleExtent([Q,V]).translateExtent(F),Jt=mw($e.current).call(Nt),Yt=F5.translate(N.x,N.y).scale(lC(N.zoom,Q,V)),Nn=[[0,0],[nt.width,nt.height]],Ln=Nt.constrain()(Yt,Nn,F);Nt.transform(Jt,Ln),Nt.wheelDelta(cdt),Me.setState({d3Zoom:Nt,d3Selection:Jt,d3ZoomHandler:Jt.on("wheel.zoom"),transform:[Ln.x,Ln.y,Ln.k],domNode:$e.current.closest(".react-flow")})}},[]),Ne.useEffect(()=>{ht&&st&&(b&&!Ze&&!ce?ht.on("wheel.zoom",nt=>{if(QE(nt,Se))return!1;nt.preventDefault(),nt.stopImmediatePropagation();const Nt=ht.property("__zoom").k||1;if(nt.ctrlKey&&w){const Ys=a2(nt),ps=cdt(nt),vr=Nt*Math.pow(2,ps);st.scaleTo(ht,vr,Ys,nt);return}const Jt=nt.deltaMode===1?20:1;let Yt=x===e9.Vertical?0:nt.deltaX*Jt,Nn=x===e9.Horizontal?0:nt.deltaY*Jt;!JG()&&nt.shiftKey&&x!==e9.Vertical&&(Yt=nt.deltaY*Jt,Nn=0),st.translateBy(ht,-(Yt/Nt)*y,-(Nn/Nt)*y,{internal:!0});const Ln=tG(ht.property("__zoom")),{onViewportChangeStart:Mi,onViewportChange:ar,onViewportChangeEnd:Dr}=Me.getState();clearTimeout(X.current),vt.current||(vt.current=!0,s==null||s(nt,Ln),Mi==null||Mi(Ln)),vt.current&&(l==null||l(nt,Ln),ar==null||ar(Ln),X.current=setTimeout(()=>{u==null||u(nt,Ln),Dr==null||Dr(Ln),vt.current=!1},150))},{passive:!1}):typeof pt<"u"&&ht.on("wheel.zoom",function(nt,Nt){if(!te&&nt.type==="wheel"&&!nt.ctrlKey||QE(nt,Se))return null;nt.preventDefault(),pt.call(this,nt,Nt)},{passive:!1}))},[ce,b,x,ht,st,pt,Ze,w,te,Se,s,l,u]),Ne.useEffect(()=>{st&&st.on("start",nt=>{var Yt,Nn;if(!nt.sourceEvent||nt.sourceEvent.internal)return null;et.current=(Yt=nt.sourceEvent)==null?void 0:Yt.button;const{onViewportChangeStart:Nt}=Me.getState(),Jt=tG(nt.transform);_e.current=!0,ut.current=Jt,((Nn=nt.sourceEvent)==null?void 0:Nn.type)==="mousedown"&&Me.setState({paneDragging:!0}),Nt==null||Nt(Jt),s==null||s(nt.sourceEvent,Jt)})},[st,s]),Ne.useEffect(()=>{st&&(ce&&!_e.current?st.on("zoom",null):ce||st.on("zoom",nt=>{var Jt;const{onViewportChange:Nt}=Me.getState();if(Me.setState({transform:[nt.transform.x,nt.transform.y,nt.transform.k]}),rt.current=!!(a&&odt(j,et.current??0)),(l||Nt)&&!((Jt=nt.sourceEvent)!=null&&Jt.internal)){const Yt=tG(nt.transform);Nt==null||Nt(Yt),l==null||l(nt.sourceEvent,Yt)}}))},[ce,st,l,j,a]),Ne.useEffect(()=>{st&&st.on("end",nt=>{if(!nt.sourceEvent||nt.sourceEvent.internal)return null;const{onViewportChangeEnd:Nt}=Me.getState();if(_e.current=!1,Me.setState({paneDragging:!1}),a&&odt(j,et.current??0)&&!rt.current&&a(nt.sourceEvent),rt.current=!1,(u||Nt)&&gVt(ut.current,nt.transform)){const Jt=tG(nt.transform);ut.current=Jt,clearTimeout(xe.current),xe.current=setTimeout(()=>{Nt==null||Nt(Jt),u==null||u(nt.sourceEvent,Jt)},b?150:0)}})},[st,b,j,u,a]),Ne.useEffect(()=>{st&&st.filter(nt=>{const Nt=Ze||g,Jt=w&&nt.ctrlKey;if((j===!0||Array.isArray(j)&&j.includes(1))&&nt.button===1&&nt.type==="mousedown"&&(QE(nt,"react-flow__node")||QE(nt,"react-flow__edge")))return!0;if(!j&&!Nt&&!b&&!C&&!w||ce||!C&&nt.type==="dblclick"||QE(nt,Se)&&nt.type==="wheel"||QE(nt,be)&&(nt.type!=="wheel"||b&&nt.type==="wheel"&&!Ze)||!w&&nt.ctrlKey&&nt.type==="wheel"||!Nt&&!b&&!Jt&&nt.type==="wheel"||!j&&(nt.type==="mousedown"||nt.type==="touchstart")||Array.isArray(j)&&!j.includes(nt.button)&&nt.type==="mousedown")return!1;const Yt=Array.isArray(j)&&j.includes(nt.button)||!nt.button||nt.button<=1;return(!nt.ctrlKey||nt.type==="wheel")&&Yt})},[ce,st,g,w,b,C,j,T,Ze]),In.createElement("div",{className:"react-flow__renderer",ref:$e,style:Kve},le)},wVt=l=>({userSelectionActive:l.userSelectionActive,userSelectionRect:l.userSelectionRect});function mVt(){const{userSelectionActive:l,userSelectionRect:s}=Xl(wVt,F1);return l&&s?In.createElement("div",{className:"react-flow__selection react-flow__container",style:{width:s.width,height:s.height,transform:`translate(${s.x}px, ${s.y}px)`}}):null}function udt(l,s){const u=s.parentNode||s.parentId,a=l.find(g=>g.id===u);if(a){const g=s.position.x+s.width-a.width,w=s.position.y+s.height-a.height;if(g>0||w>0||s.position.x<0||s.position.y<0){if(a.style={...a.style},a.style.width=a.style.width??a.width,a.style.height=a.style.height??a.height,g>0&&(a.style.width+=g),w>0&&(a.style.height+=w),s.position.x<0){const b=Math.abs(s.position.x);a.position.x=a.position.x-b,a.style.width+=b,s.position.x=0}if(s.position.y<0){const b=Math.abs(s.position.y);a.position.y=a.position.y-b,a.style.height+=b,s.position.y=0}a.width=a.style.width,a.height=a.style.height}}}function Zgt(l,s){if(l.some(a=>a.type==="reset"))return l.filter(a=>a.type==="reset").map(a=>a.item);const u=l.filter(a=>a.type==="add").map(a=>a.item);return s.reduce((a,g)=>{const w=l.filter(y=>y.id===g.id);if(w.length===0)return a.push(g),a;const b={...g};for(const y of w)if(y)switch(y.type){case"select":{b.selected=y.selected;break}case"position":{typeof y.position<"u"&&(b.position=y.position),typeof y.positionAbsolute<"u"&&(b.positionAbsolute=y.positionAbsolute),typeof y.dragging<"u"&&(b.dragging=y.dragging),b.expandParent&&udt(a,b);break}case"dimensions":{typeof y.dimensions<"u"&&(b.width=y.dimensions.width,b.height=y.dimensions.height),typeof y.updateStyle<"u"&&(b.style={...b.style||{},...y.dimensions}),typeof y.resizing=="boolean"&&(b.resizing=y.resizing),b.expandParent&&udt(a,b);break}case"remove":return a}return a.push(b),a},u)}function vVt(l,s){return Zgt(l,s)}function Lcn(l,s){return Zgt(l,s)}const j5=(l,s)=>({id:l,type:"select",selected:s});function UE(l,s){return l.reduce((u,a)=>{const g=s.includes(a.id);return!a.selected&&g?(a.selected=!0,u.push(j5(a.id,!0))):a.selected&&!g&&(a.selected=!1,u.push(j5(a.id,!1))),u},[])}const yme=(l,s)=>u=>{u.target===s.current&&(l==null||l(u))},yVt=l=>({userSelectionActive:l.userSelectionActive,elementsSelectable:l.elementsSelectable,dragging:l.paneDragging}),Jgt=Ne.memo(({isSelecting:l,selectionMode:s=E$.Full,panOnDrag:u,onSelectionStart:a,onSelectionEnd:g,onPaneClick:w,onPaneContextMenu:b,onPaneScroll:y,onPaneMouseEnter:x,onPaneMouseMove:C,onPaneMouseLeave:T,children:j})=>{const N=Ne.useRef(null),F=Sh(),Q=Ne.useRef(0),V=Ne.useRef(0),ee=Ne.useRef(),{userSelectionActive:te,elementsSelectable:le,dragging:Se}=Xl(yVt,F1),be=()=>{F.setState({userSelectionActive:!1,userSelectionRect:null}),Q.current=0,V.current=0},xe=pt=>{w==null||w(pt),F.getState().resetSelectedElements(),F.setState({nodesSelectionActive:!1})},Me=pt=>{if(Array.isArray(u)&&(u!=null&&u.includes(2))){pt.preventDefault();return}b==null||b(pt)},_e=y?pt=>y(pt):void 0,rt=pt=>{const{resetSelectedElements:ce,domNode:Ze}=F.getState();if(ee.current=Ze==null?void 0:Ze.getBoundingClientRect(),!le||!l||pt.button!==0||pt.target!==N.current||!ee.current)return;const{x:et,y:vt}=B5(pt,ee.current);ce(),F.setState({userSelectionRect:{width:0,height:0,startX:et,startY:vt,x:et,y:vt}}),a==null||a(pt)},$e=pt=>{const{userSelectionRect:ce,nodeInternals:Ze,edges:et,transform:vt,onNodesChange:X,onEdgesChange:nt,nodeOrigin:Nt,getNodes:Jt}=F.getState();if(!l||!ee.current||!ce)return;F.setState({userSelectionActive:!0,nodesSelectionActive:!1});const Yt=B5(pt,ee.current),Nn=ce.startX??0,Ln=ce.startY??0,Mi={...ce,x:Yt.x<Nn?Yt.x:Nn,y:Yt.y<Ln?Yt.y:Ln,width:Math.abs(Yt.x-Nn),height:Math.abs(Yt.y-Ln)},ar=Jt(),Dr=Igt(Ze,Mi,vt,s===E$.Partial,!0,Nt),Ys=Ngt(Dr,et).map(vr=>vr.id),ps=Dr.map(vr=>vr.id);if(Q.current!==ps.length){Q.current=ps.length;const vr=UE(ar,ps);vr.length&&(X==null||X(vr))}if(V.current!==Ys.length){V.current=Ys.length;const vr=UE(et,Ys);vr.length&&(nt==null||nt(vr))}F.setState({userSelectionRect:Mi})},ut=pt=>{if(pt.button!==0)return;const{userSelectionRect:ce}=F.getState();!te&&ce&&pt.target===N.current&&(xe==null||xe(pt)),F.setState({nodesSelectionActive:Q.current>0}),be(),g==null||g(pt)},st=pt=>{te&&(F.setState({nodesSelectionActive:Q.current>0}),g==null||g(pt)),be()},ht=le&&(l||te);return In.createElement("div",{className:Fb(["react-flow__pane",{dragging:Se,selection:l}]),onClick:ht?void 0:yme(xe,N),onContextMenu:yme(Me,N),onWheel:yme(_e,N),onMouseEnter:ht?void 0:x,onMouseDown:ht?rt:void 0,onMouseMove:ht?$e:C,onMouseUp:ht?ut:void 0,onMouseLeave:ht?st:T,ref:N,style:Kve},j,In.createElement(mVt,null))});Jgt.displayName="Pane";function ebt(l,s){const u=l.parentNode||l.parentId;if(!u)return!1;const a=s.get(u);return a?a.selected?!0:ebt(a,s):!1}function ldt(l,s,u){let a=l;do{if(a!=null&&a.matches(s))return!0;if(a===u.current)return!1;a=a.parentElement}while(a);return!1}function OVt(l,s,u,a){return Array.from(l.values()).filter(g=>(g.selected||g.id===a)&&(!g.parentNode||g.parentId||!ebt(g,l))&&(g.draggable||s&&typeof g.draggable>"u")).map(g=>{var w,b;return{id:g.id,position:g.position||{x:0,y:0},positionAbsolute:g.positionAbsolute||{x:0,y:0},distance:{x:u.x-(((w=g.positionAbsolute)==null?void 0:w.x)??0),y:u.y-(((b=g.positionAbsolute)==null?void 0:b.y)??0)},delta:{x:0,y:0},extent:g.extent,parentNode:g.parentNode||g.parentId,parentId:g.parentNode||g.parentId,width:g.width,height:g.height,expandParent:g.expandParent}})}function kVt(l,s){return!s||s==="parent"?s:[s[0],[s[1][0]-(l.width||0),s[1][1]-(l.height||0)]]}function tbt(l,s,u,a,g=[0,0],w){const b=kVt(l,l.extent||a);let y=b;const x=l.parentNode||l.parentId;if(l.extent==="parent"&&!l.expandParent)if(x&&l.width&&l.height){const j=u.get(x),{x:N,y:F}=JE(j,g).positionAbsolute;y=j&&Db(N)&&Db(F)&&Db(j.width)&&Db(j.height)?[[N+l.width*g[0],F+l.height*g[1]],[N+j.width-l.width+l.width*g[0],F+j.height-l.height+l.height*g[1]]]:y}else w==null||w("005",x3.error005()),y=b;else if(l.extent&&x&&l.extent!=="parent"){const j=u.get(x),{x:N,y:F}=JE(j,g).positionAbsolute;y=[[l.extent[0][0]+N,l.extent[0][1]+F],[l.extent[1][0]+N,l.extent[1][1]+F]]}let C={x:0,y:0};if(x){const j=u.get(x);C=JE(j,g).positionAbsolute}const T=y&&y!=="parent"?Rve(s,y):s;return{position:{x:T.x-C.x,y:T.y-C.y},positionAbsolute:T}}function Ome({nodeId:l,dragItems:s,nodeInternals:u}){const a=s.map(g=>({...u.get(g.id),position:g.position,positionAbsolute:g.positionAbsolute}));return[l?a.find(g=>g.id===l):a[0],a]}const fdt=(l,s,u,a)=>{const g=s.querySelectorAll(l);if(!g||!g.length)return null;const w=Array.from(g),b=s.getBoundingClientRect(),y={x:b.width*a[0],y:b.height*a[1]};return w.map(x=>{const C=x.getBoundingClientRect();return{id:x.getAttribute("data-handleid"),position:x.getAttribute("data-handlepos"),x:(C.left-b.left-y.x)/u,y:(C.top-b.top-y.y)/u,...$ve(x)}})};function GN(l,s,u){return u===void 0?u:a=>{const g=s().nodeInternals.get(l);g&&u(a,{...g})}}function E2e({id:l,store:s,unselect:u=!1,nodeRef:a}){const{addSelectedNodes:g,unselectNodesAndEdges:w,multiSelectionActive:b,nodeInternals:y,onError:x}=s.getState(),C=y.get(l);if(!C){x==null||x("012",x3.error012(l));return}s.setState({nodesSelectionActive:!1}),C.selected?(u||C.selected&&b)&&(w({nodes:[C],edges:[]}),requestAnimationFrame(()=>{var T;return(T=a==null?void 0:a.current)==null?void 0:T.blur()})):g([l])}function SVt(){const l=Sh();return Ne.useCallback(({sourceEvent:u})=>{const{transform:a,snapGrid:g,snapToGrid:w}=l.getState(),b=u.touches?u.touches[0].clientX:u.clientX,y=u.touches?u.touches[0].clientY:u.clientY,x={x:(b-a[0])/a[2],y:(y-a[1])/a[2]};return{xSnapped:w?g[0]*Math.round(x.x/g[0]):x.x,ySnapped:w?g[1]*Math.round(x.y/g[1]):x.y,...x}},[])}function kme(l){return(s,u,a)=>l==null?void 0:l(s,a)}function nbt({nodeRef:l,disabled:s=!1,noDragClassName:u,handleSelector:a,nodeId:g,isSelectable:w,selectNodesOnDrag:b}){const y=Sh(),[x,C]=Ne.useState(!1),T=Ne.useRef([]),j=Ne.useRef({x:null,y:null}),N=Ne.useRef(0),F=Ne.useRef(null),Q=Ne.useRef({x:0,y:0}),V=Ne.useRef(null),ee=Ne.useRef(!1),te=Ne.useRef(!1),le=Ne.useRef(!1),Se=SVt();return Ne.useEffect(()=>{if(l!=null&&l.current){const be=mw(l.current),xe=({x:rt,y:$e})=>{const{nodeInternals:ut,onNodeDrag:st,onSelectionDrag:ht,updateNodePositions:pt,nodeExtent:ce,snapGrid:Ze,snapToGrid:et,nodeOrigin:vt,onError:X}=y.getState();j.current={x:rt,y:$e};let nt=!1,Nt={x:0,y:0,x2:0,y2:0};if(T.current.length>1&&ce){const Yt=Qve(T.current,vt);Nt=Lve(Yt)}if(T.current=T.current.map(Yt=>{const Nn={x:rt-Yt.distance.x,y:$e-Yt.distance.y};et&&(Nn.x=Ze[0]*Math.round(Nn.x/Ze[0]),Nn.y=Ze[1]*Math.round(Nn.y/Ze[1]));const Ln=[[ce[0][0],ce[0][1]],[ce[1][0],ce[1][1]]];T.current.length>1&&ce&&!Yt.extent&&(Ln[0][0]=Yt.positionAbsolute.x-Nt.x+ce[0][0],Ln[1][0]=Yt.positionAbsolute.x+(Yt.width??0)-Nt.x2+ce[1][0],Ln[0][1]=Yt.positionAbsolute.y-Nt.y+ce[0][1],Ln[1][1]=Yt.positionAbsolute.y+(Yt.height??0)-Nt.y2+ce[1][1]);const Mi=tbt(Yt,Nn,ut,Ln,vt,X);return nt=nt||Yt.position.x!==Mi.position.x||Yt.position.y!==Mi.position.y,Yt.position=Mi.position,Yt.positionAbsolute=Mi.positionAbsolute,Yt}),!nt)return;pt(T.current,!0,!0),C(!0);const Jt=g?st:kme(ht);if(Jt&&V.current){const[Yt,Nn]=Ome({nodeId:g,dragItems:T.current,nodeInternals:ut});Jt(V.current,Yt,Nn)}},Me=()=>{if(!F.current)return;const[rt,$e]=xgt(Q.current,F.current);if(rt!==0||$e!==0){const{transform:ut,panBy:st}=y.getState();j.current.x=(j.current.x??0)-rt/ut[2],j.current.y=(j.current.y??0)-$e/ut[2],st({x:rt,y:$e})&&xe(j.current)}N.current=requestAnimationFrame(Me)},_e=rt=>{var vt;const{nodeInternals:$e,multiSelectionActive:ut,nodesDraggable:st,unselectNodesAndEdges:ht,onNodeDragStart:pt,onSelectionDragStart:ce}=y.getState();te.current=!0;const Ze=g?pt:kme(ce);(!b||!w)&&!ut&&g&&((vt=$e.get(g))!=null&&vt.selected||ht()),g&&w&&b&&E2e({id:g,store:y,nodeRef:l});const et=Se(rt);if(j.current=et,T.current=OVt($e,st,et,g),Ze&&T.current){const[X,nt]=Ome({nodeId:g,dragItems:T.current,nodeInternals:$e});Ze(rt.sourceEvent,X,nt)}};if(s)be.on(".drag",null);else{const rt=PXt().on("start",$e=>{const{domNode:ut,nodeDragThreshold:st}=y.getState();st===0&&_e($e),le.current=!1;const ht=Se($e);j.current=ht,F.current=(ut==null?void 0:ut.getBoundingClientRect())||null,Q.current=B5($e.sourceEvent,F.current)}).on("drag",$e=>{var pt,ce;const ut=Se($e),{autoPanOnNodeDrag:st,nodeDragThreshold:ht}=y.getState();if($e.sourceEvent.type==="touchmove"&&$e.sourceEvent.touches.length>1&&(le.current=!0),!le.current){if(!ee.current&&te.current&&st&&(ee.current=!0,Me()),!te.current){const Ze=ut.xSnapped-(((pt=j==null?void 0:j.current)==null?void 0:pt.x)??0),et=ut.ySnapped-(((ce=j==null?void 0:j.current)==null?void 0:ce.y)??0);Math.sqrt(Ze*Ze+et*et)>ht&&_e($e)}(j.current.x!==ut.xSnapped||j.current.y!==ut.ySnapped)&&T.current&&te.current&&(V.current=$e.sourceEvent,Q.current=B5($e.sourceEvent,F.current),xe(ut))}}).on("end",$e=>{if(!(!te.current||le.current)&&(C(!1),ee.current=!1,te.current=!1,cancelAnimationFrame(N.current),T.current)){const{updateNodePositions:ut,nodeInternals:st,onNodeDragStop:ht,onSelectionDragStop:pt}=y.getState(),ce=g?ht:kme(pt);if(ut(T.current,!1,!1),ce){const[Ze,et]=Ome({nodeId:g,dragItems:T.current,nodeInternals:st});ce($e.sourceEvent,Ze,et)}}}).filter($e=>{const ut=$e.target;return!$e.button&&(!u||!ldt(ut,`.${u}`,l))&&(!a||ldt(ut,a,l))});return be.call(rt),()=>{be.on(".drag",null)}}}},[l,s,u,a,w,y,g,b,Se]),x}function ibt(){const l=Sh();return Ne.useCallback(u=>{const{nodeInternals:a,nodeExtent:g,updateNodePositions:w,getNodes:b,snapToGrid:y,snapGrid:x,onError:C,nodesDraggable:T}=l.getState(),j=b().filter(le=>le.selected&&(le.draggable||T&&typeof le.draggable>"u")),N=y?x[0]:5,F=y?x[1]:5,Q=u.isShiftPressed?4:1,V=u.x*N*Q,ee=u.y*F*Q,te=j.map(le=>{if(le.positionAbsolute){const Se={x:le.positionAbsolute.x+V,y:le.positionAbsolute.y+ee};y&&(Se.x=x[0]*Math.round(Se.x/x[0]),Se.y=x[1]*Math.round(Se.y/x[1]));const{positionAbsolute:be,position:xe}=tbt(le,Se,a,g,void 0,C);le.position=xe,le.positionAbsolute=be}return le});w(te,!0,!1)},[])}const eC={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};var VN=l=>{const s=({id:u,type:a,data:g,xPos:w,yPos:b,xPosOrigin:y,yPosOrigin:x,selected:C,onClick:T,onMouseEnter:j,onMouseMove:N,onMouseLeave:F,onContextMenu:Q,onDoubleClick:V,style:ee,className:te,isDraggable:le,isSelectable:Se,isConnectable:be,isFocusable:xe,selectNodesOnDrag:Me,sourcePosition:_e,targetPosition:rt,hidden:$e,resizeObserver:ut,dragHandle:st,zIndex:ht,isParent:pt,noDragClassName:ce,noPanClassName:Ze,initialized:et,disableKeyboardA11y:vt,ariaLabel:X,rfId:nt,hasHandleBounds:Nt})=>{const Jt=Sh(),Yt=Ne.useRef(null),Nn=Ne.useRef(null),Ln=Ne.useRef(_e),Mi=Ne.useRef(rt),ar=Ne.useRef(a),Dr=Se||le||T||j||N||F,Ys=ibt(),ps=GN(u,Jt.getState,j),vr=GN(u,Jt.getState,N),Lc=GN(u,Jt.getState,F),so=GN(u,Jt.getState,Q),Fo=GN(u,Jt.getState,V),Mo=Qs=>{const{nodeDragThreshold:gi}=Jt.getState();if(Se&&(!Me||!le||gi>0)&&E2e({id:u,store:Jt,nodeRef:Yt}),T){const xc=Jt.getState().nodeInternals.get(u);xc&&T(Qs,{...xc})}},Xo=Qs=>{if(!y2e(Qs)&&!vt)if(Cgt.includes(Qs.key)&&Se){const gi=Qs.key==="Escape";E2e({id:u,store:Jt,unselect:gi,nodeRef:Yt})}else le&&C&&Object.prototype.hasOwnProperty.call(eC,Qs.key)&&(Jt.setState({ariaLiveMessage:`Moved selected node ${Qs.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~w}, y: ${~~b}`}),Ys({x:eC[Qs.key].x,y:eC[Qs.key].y,isShiftPressed:Qs.shiftKey}))};Ne.useEffect(()=>()=>{Nn.current&&(ut==null||ut.unobserve(Nn.current),Nn.current=null)},[]),Ne.useEffect(()=>{if(Yt.current&&!$e){const Qs=Yt.current;(!et||!Nt||Nn.current!==Qs)&&(Nn.current&&(ut==null||ut.unobserve(Nn.current)),ut==null||ut.observe(Qs),Nn.current=Qs)}},[$e,et,Nt]),Ne.useEffect(()=>{const Qs=ar.current!==a,gi=Ln.current!==_e,xc=Mi.current!==rt;Yt.current&&(Qs||gi||xc)&&(Qs&&(ar.current=a),gi&&(Ln.current=_e),xc&&(Mi.current=rt),Jt.getState().updateNodeDimensions([{id:u,nodeElement:Yt.current,forceUpdate:!0}]))},[u,a,_e,rt]);const gf=nbt({nodeRef:Yt,disabled:$e||!le,noDragClassName:ce,handleSelector:st,nodeId:u,isSelectable:Se,selectNodesOnDrag:Me});return $e?null:In.createElement("div",{className:Fb(["react-flow__node",`react-flow__node-${a}`,{[Ze]:le},te,{selected:C,selectable:Se,parent:pt,dragging:gf}]),ref:Yt,style:{zIndex:ht,transform:`translate(${y}px,${x}px)`,pointerEvents:Dr?"all":"none",visibility:et?"visible":"hidden",...ee},"data-id":u,"data-testid":`rf__node-${u}`,onMouseEnter:ps,onMouseMove:vr,onMouseLeave:Lc,onContextMenu:so,onClick:Mo,onDoubleClick:Fo,onKeyDown:xe?Xo:void 0,tabIndex:xe?0:void 0,role:xe?"button":void 0,"aria-describedby":vt?void 0:`${Wgt}-${nt}`,"aria-label":X},In.createElement(LGt,{value:u},In.createElement(l,{id:u,data:g,type:a,xPos:w,yPos:b,selected:C,isConnectable:be,sourcePosition:_e,targetPosition:rt,dragging:gf,dragHandle:st,zIndex:ht})))};return s.displayName="NodeWrapper",Ne.memo(s)};const xVt=l=>{const s=l.getNodes().filter(u=>u.selected);return{...Qve(s,l.nodeOrigin),transformString:`translate(${l.transform[0]}px,${l.transform[1]}px) scale(${l.transform[2]})`,userSelectionActive:l.userSelectionActive}};function EVt({onSelectionContextMenu:l,noPanClassName:s,disableKeyboardA11y:u}){const a=Sh(),{width:g,height:w,x:b,y,transformString:x,userSelectionActive:C}=Xl(xVt,F1),T=ibt(),j=Ne.useRef(null);if(Ne.useEffect(()=>{var Q;u||(Q=j.current)==null||Q.focus({preventScroll:!0})},[u]),nbt({nodeRef:j}),C||!g||!w)return null;const N=l?Q=>{const V=a.getState().getNodes().filter(ee=>ee.selected);l(Q,V)}:void 0,F=Q=>{Object.prototype.hasOwnProperty.call(eC,Q.key)&&T({x:eC[Q.key].x,y:eC[Q.key].y,isShiftPressed:Q.shiftKey})};return In.createElement("div",{className:Fb(["react-flow__nodesselection","react-flow__container",s]),style:{transform:x}},In.createElement("div",{ref:j,className:"react-flow__nodesselection-rect",onContextMenu:N,tabIndex:u?void 0:-1,onKeyDown:u?void 0:F,style:{width:g,height:w,top:y,left:b}}))}var CVt=Ne.memo(EVt);const TVt=l=>l.nodesSelectionActive,rbt=({children:l,onPaneClick:s,onPaneMouseEnter:u,onPaneMouseMove:a,onPaneMouseLeave:g,onPaneContextMenu:w,onPaneScroll:b,deleteKeyCode:y,onMove:x,onMoveStart:C,onMoveEnd:T,selectionKeyCode:j,selectionOnDrag:N,selectionMode:F,onSelectionStart:Q,onSelectionEnd:V,multiSelectionKeyCode:ee,panActivationKeyCode:te,zoomActivationKeyCode:le,elementsSelectable:Se,zoomOnScroll:be,zoomOnPinch:xe,panOnScroll:Me,panOnScrollSpeed:_e,panOnScrollMode:rt,zoomOnDoubleClick:$e,panOnDrag:ut,defaultViewport:st,translateExtent:ht,minZoom:pt,maxZoom:ce,preventScrolling:Ze,onSelectionContextMenu:et,noWheelClassName:vt,noPanClassName:X,disableKeyboardA11y:nt})=>{const Nt=Xl(TVt),Jt=C$(j),Yt=C$(te),Nn=Yt||ut,Ln=Yt||Me,Mi=Jt||N&&Nn!==!0;return aVt({deleteKeyCode:y,multiSelectionKeyCode:ee}),In.createElement(pVt,{onMove:x,onMoveStart:C,onMoveEnd:T,onPaneContextMenu:w,elementsSelectable:Se,zoomOnScroll:be,zoomOnPinch:xe,panOnScroll:Ln,panOnScrollSpeed:_e,panOnScrollMode:rt,zoomOnDoubleClick:$e,panOnDrag:!Jt&&Nn,defaultViewport:st,translateExtent:ht,minZoom:pt,maxZoom:ce,zoomActivationKeyCode:le,preventScrolling:Ze,noWheelClassName:vt,noPanClassName:X},In.createElement(Jgt,{onSelectionStart:Q,onSelectionEnd:V,onPaneClick:s,onPaneMouseEnter:u,onPaneMouseMove:a,onPaneMouseLeave:g,onPaneContextMenu:w,onPaneScroll:b,panOnDrag:Nn,isSelecting:!!Mi,selectionMode:F},l,Nt&&In.createElement(CVt,{onSelectionContextMenu:et,noPanClassName:X,disableKeyboardA11y:nt})))};rbt.displayName="FlowRenderer";var AVt=Ne.memo(rbt);function MVt(l){return Xl(Ne.useCallback(u=>l?Igt(u.nodeInternals,{x:0,y:0,width:u.width,height:u.height},u.transform,!0):u.getNodes(),[l]))}function jVt(l){const s={input:VN(l.input||Qgt),default:VN(l.default||x2e),output:VN(l.output||zgt),group:VN(l.group||zve)},u={},a=Object.keys(l).filter(g=>!["input","default","output","group"].includes(g)).reduce((g,w)=>(g[w]=VN(l[w]||x2e),g),u);return{...s,...a}}const PVt=({x:l,y:s,width:u,height:a,origin:g})=>!u||!a?{x:l,y:s}:g[0]<0||g[1]<0||g[0]>1||g[1]>1?{x:l,y:s}:{x:l-u*g[0],y:s-a*g[1]},DVt=l=>({nodesDraggable:l.nodesDraggable,nodesConnectable:l.nodesConnectable,nodesFocusable:l.nodesFocusable,elementsSelectable:l.elementsSelectable,updateNodeDimensions:l.updateNodeDimensions,onError:l.onError}),sbt=l=>{const{nodesDraggable:s,nodesConnectable:u,nodesFocusable:a,elementsSelectable:g,updateNodeDimensions:w,onError:b}=Xl(DVt,F1),y=MVt(l.onlyRenderVisibleElements),x=Ne.useRef(),C=Ne.useMemo(()=>{if(typeof ResizeObserver>"u")return null;const T=new ResizeObserver(j=>{const N=j.map(F=>({id:F.target.getAttribute("data-id"),nodeElement:F.target,forceUpdate:!0}));w(N)});return x.current=T,T},[]);return Ne.useEffect(()=>()=>{var T;(T=x==null?void 0:x.current)==null||T.disconnect()},[]),In.createElement("div",{className:"react-flow__nodes",style:Kve},y.map(T=>{var xe,Me,_e;let j=T.type||"default";l.nodeTypes[j]||(b==null||b("003",x3.error003(j)),j="default");const N=l.nodeTypes[j]||l.nodeTypes.default,F=!!(T.draggable||s&&typeof T.draggable>"u"),Q=!!(T.selectable||g&&typeof T.selectable>"u"),V=!!(T.connectable||u&&typeof T.connectable>"u"),ee=!!(T.focusable||a&&typeof T.focusable>"u"),te=l.nodeExtent?Rve(T.positionAbsolute,l.nodeExtent):T.positionAbsolute,le=(te==null?void 0:te.x)??0,Se=(te==null?void 0:te.y)??0,be=PVt({x:le,y:Se,width:T.width??0,height:T.height??0,origin:l.nodeOrigin});return In.createElement(N,{key:T.id,id:T.id,className:T.className,style:T.style,type:j,data:T.data,sourcePosition:T.sourcePosition||Ai.Bottom,targetPosition:T.targetPosition||Ai.Top,hidden:T.hidden,xPos:le,yPos:Se,xPosOrigin:be.x,yPosOrigin:be.y,selectNodesOnDrag:l.selectNodesOnDrag,onClick:l.onNodeClick,onMouseEnter:l.onNodeMouseEnter,onMouseMove:l.onNodeMouseMove,onMouseLeave:l.onNodeMouseLeave,onContextMenu:l.onNodeContextMenu,onDoubleClick:l.onNodeDoubleClick,selected:!!T.selected,isDraggable:F,isSelectable:Q,isConnectable:V,isFocusable:ee,resizeObserver:C,dragHandle:T.dragHandle,zIndex:((xe=T[vl])==null?void 0:xe.z)??0,isParent:!!((Me=T[vl])!=null&&Me.isParent),noDragClassName:l.noDragClassName,noPanClassName:l.noPanClassName,initialized:!!T.width&&!!T.height,rfId:l.rfId,disableKeyboardA11y:l.disableKeyboardA11y,ariaLabel:T.ariaLabel,hasHandleBounds:!!((_e=T[vl])!=null&&_e.handleBounds)})}))};sbt.displayName="NodeRenderer";var IVt=Ne.memo(sbt);const NVt=(l,s,u)=>u===Ai.Left?l-s:u===Ai.Right?l+s:l,$Vt=(l,s,u)=>u===Ai.Top?l-s:u===Ai.Bottom?l+s:l,hdt="react-flow__edgeupdater",adt=({position:l,centerX:s,centerY:u,radius:a=10,onMouseDown:g,onMouseEnter:w,onMouseOut:b,type:y})=>In.createElement("circle",{onMouseDown:g,onMouseEnter:w,onMouseOut:b,className:Fb([hdt,`${hdt}-${y}`]),cx:NVt(s,a,l),cy:$Vt(u,a,l),r:a,stroke:"transparent",fill:"transparent"}),RVt=()=>!0;var HE=l=>{const s=({id:u,className:a,type:g,data:w,onClick:b,onEdgeDoubleClick:y,selected:x,animated:C,label:T,labelStyle:j,labelShowBg:N,labelBgStyle:F,labelBgPadding:Q,labelBgBorderRadius:V,style:ee,source:te,target:le,sourceX:Se,sourceY:be,targetX:xe,targetY:Me,sourcePosition:_e,targetPosition:rt,elementsSelectable:$e,hidden:ut,sourceHandleId:st,targetHandleId:ht,onContextMenu:pt,onMouseEnter:ce,onMouseMove:Ze,onMouseLeave:et,reconnectRadius:vt,onReconnect:X,onReconnectStart:nt,onReconnectEnd:Nt,markerEnd:Jt,markerStart:Yt,rfId:Nn,ariaLabel:Ln,isFocusable:Mi,isReconnectable:ar,pathOptions:Dr,interactionWidth:Ys,disableKeyboardA11y:ps})=>{const vr=Ne.useRef(null),[Lc,so]=Ne.useState(!1),[Fo,Mo]=Ne.useState(!1),Xo=Sh(),gf=Ne.useMemo(()=>`url('#${k2e(Yt,Nn)}')`,[Yt,Nn]),Qs=Ne.useMemo(()=>`url('#${k2e(Jt,Nn)}')`,[Jt,Nn]);if(ut)return null;const gi=bf=>{var _1;const{edges:Td,addSelectedEdges:Ew,unselectNodesAndEdges:Cw,multiSelectionActive:Tw}=Xo.getState(),J0=Td.find(j3=>j3.id===u);J0&&($e&&(Xo.setState({nodesSelectionActive:!1}),J0.selected&&Tw?(Cw({nodes:[],edges:[J0]}),(_1=vr.current)==null||_1.blur()):Ew([u])),b&&b(bf,J0))},xc=UN(u,Xo.getState,y),Cd=UN(u,Xo.getState,pt),A3=UN(u,Xo.getState,ce),T2=UN(u,Xo.getState,Ze),A2=UN(u,Xo.getState,et),B1=(bf,Td)=>{if(bf.button!==0)return;const{edges:Ew,isValidConnection:Cw}=Xo.getState(),Tw=Td?le:te,J0=(Td?ht:st)||null,_1=Td?"target":"source",j3=Cw||RVt,p9=Td,P3=Ew.find(Aw=>Aw.id===u);Mo(!0),nt==null||nt(bf,P3,_1);const w9=Aw=>{Mo(!1),Nt==null||Nt(Aw,P3,_1)};Fgt({event:bf,handleId:J0,nodeId:Tw,onConnect:Aw=>X==null?void 0:X(P3,Aw),isTarget:p9,getState:Xo.getState,setState:Xo.setState,isValidConnection:j3,edgeUpdaterType:_1,onReconnectEnd:w9})},Ol=bf=>B1(bf,!0),Eh=bf=>B1(bf,!1),Ch=()=>so(!0),M2=()=>so(!1),M3=!$e&&!b,xw=bf=>{var Td;if(!ps&&Cgt.includes(bf.key)&&$e){const{unselectNodesAndEdges:Ew,addSelectedEdges:Cw,edges:Tw}=Xo.getState();bf.key==="Escape"?((Td=vr.current)==null||Td.blur(),Ew({edges:[Tw.find(_1=>_1.id===u)]})):Cw([u])}};return In.createElement("g",{className:Fb(["react-flow__edge",`react-flow__edge-${g}`,a,{selected:x,animated:C,inactive:M3,updating:Lc}]),onClick:gi,onDoubleClick:xc,onContextMenu:Cd,onMouseEnter:A3,onMouseMove:T2,onMouseLeave:A2,onKeyDown:Mi?xw:void 0,tabIndex:Mi?0:void 0,role:Mi?"button":"img","data-testid":`rf__edge-${u}`,"aria-label":Ln===null?void 0:Ln||`Edge from ${te} to ${le}`,"aria-describedby":Mi?`${Xgt}-${Nn}`:void 0,ref:vr},!Fo&&In.createElement(l,{id:u,source:te,target:le,selected:x,animated:C,label:T,labelStyle:j,labelShowBg:N,labelBgStyle:F,labelBgPadding:Q,labelBgBorderRadius:V,data:w,style:ee,sourceX:Se,sourceY:be,targetX:xe,targetY:Me,sourcePosition:_e,targetPosition:rt,sourceHandleId:st,targetHandleId:ht,markerStart:gf,markerEnd:Qs,pathOptions:Dr,interactionWidth:Ys}),ar&&In.createElement(In.Fragment,null,(ar==="source"||ar===!0)&&In.createElement(adt,{position:_e,centerX:Se,centerY:be,radius:vt,onMouseDown:Ol,onMouseEnter:Ch,onMouseOut:M2,type:"source"}),(ar==="target"||ar===!0)&&In.createElement(adt,{position:rt,centerX:xe,centerY:Me,radius:vt,onMouseDown:Eh,onMouseEnter:Ch,onMouseOut:M2,type:"target"})))};return s.displayName="EdgeWrapper",Ne.memo(s)};function LVt(l){const s={default:HE(l.default||tV),straight:HE(l.bezier||_ve),step:HE(l.step||Bve),smoothstep:HE(l.step||$V),simplebezier:HE(l.simplebezier||Fve)},u={},a=Object.keys(l).filter(g=>!["default","bezier"].includes(g)).reduce((g,w)=>(g[w]=HE(l[w]||tV),g),u);return{...s,...a}}function ddt(l,s,u=null){const a=((u==null?void 0:u.x)||0)+s.x,g=((u==null?void 0:u.y)||0)+s.y,w=(u==null?void 0:u.width)||s.width,b=(u==null?void 0:u.height)||s.height;switch(l){case Ai.Top:return{x:a+w/2,y:g};case Ai.Right:return{x:a+w,y:g+b/2};case Ai.Bottom:return{x:a+w/2,y:g+b};case Ai.Left:return{x:a,y:g+b/2}}}function gdt(l,s){return l?l.length===1||!s?l[0]:s&&l.find(u=>u.id===s)||null:null}const FVt=(l,s,u,a,g,w)=>{const b=ddt(u,l,s),y=ddt(w,a,g);return{sourceX:b.x,sourceY:b.y,targetX:y.x,targetY:y.y}};function BVt({sourcePos:l,targetPos:s,sourceWidth:u,sourceHeight:a,targetWidth:g,targetHeight:w,width:b,height:y,transform:x}){const C={x:Math.min(l.x,s.x),y:Math.min(l.y,s.y),x2:Math.max(l.x+u,s.x+g),y2:Math.max(l.y+a,s.y+w)};C.x===C.x2&&(C.x2+=1),C.y===C.y2&&(C.y2+=1);const T=Lve({x:(0-x[0])/x[2],y:(0-x[1])/x[2],width:b/x[2],height:y/x[2]}),j=Math.max(0,Math.min(T.x2,C.x2)-Math.max(T.x,C.x)),N=Math.max(0,Math.min(T.y2,C.y2)-Math.max(T.y,C.y));return Math.ceil(j*N)>0}function bdt(l){var a,g,w,b,y;const s=((a=l==null?void 0:l[vl])==null?void 0:a.handleBounds)||null,u=s&&(l==null?void 0:l.width)&&(l==null?void 0:l.height)&&typeof((g=l==null?void 0:l.positionAbsolute)==null?void 0:g.x)<"u"&&typeof((w=l==null?void 0:l.positionAbsolute)==null?void 0:w.y)<"u";return[{x:((b=l==null?void 0:l.positionAbsolute)==null?void 0:b.x)||0,y:((y=l==null?void 0:l.positionAbsolute)==null?void 0:y.y)||0,width:(l==null?void 0:l.width)||0,height:(l==null?void 0:l.height)||0},s,!!u]}const _Vt=[{level:0,isMaxLevel:!0,edges:[]}];function qVt(l,s,u=!1){let a=-1;const g=l.reduce((b,y)=>{var T,j;const x=Db(y.zIndex);let C=x?y.zIndex:0;if(u){const N=s.get(y.target),F=s.get(y.source),Q=y.selected||(N==null?void 0:N.selected)||(F==null?void 0:F.selected),V=Math.max(((T=F==null?void 0:F[vl])==null?void 0:T.z)||0,((j=N==null?void 0:N[vl])==null?void 0:j.z)||0,1e3);C=(x?y.zIndex:0)+(Q?V:0)}return b[C]?b[C].push(y):b[C]=[y],a=C>a?C:a,b},{}),w=Object.entries(g).map(([b,y])=>{const x=+b;return{edges:y,level:x,isMaxLevel:x===a}});return w.length===0?_Vt:w}function QVt(l,s,u){const a=Xl(Ne.useCallback(g=>l?g.edges.filter(w=>{const b=s.get(w.source),y=s.get(w.target);return(b==null?void 0:b.width)&&(b==null?void 0:b.height)&&(y==null?void 0:y.width)&&(y==null?void 0:y.height)&&BVt({sourcePos:b.positionAbsolute||{x:0,y:0},targetPos:y.positionAbsolute||{x:0,y:0},sourceWidth:b.width,sourceHeight:b.height,targetWidth:y.width,targetHeight:y.height,width:g.width,height:g.height,transform:g.transform})}):g.edges,[l,s]));return qVt(a,s,u)}const HVt=({color:l="none",strokeWidth:s=1})=>In.createElement("polyline",{style:{stroke:l,strokeWidth:s},strokeLinecap:"round",strokeLinejoin:"round",fill:"none",points:"-5,-4 0,0 -5,4"}),zVt=({color:l="none",strokeWidth:s=1})=>In.createElement("polyline",{style:{stroke:l,fill:l,strokeWidth:s},strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"}),pdt={[eV.Arrow]:HVt,[eV.ArrowClosed]:zVt};function KVt(l){const s=Sh();return Ne.useMemo(()=>{var g,w;return Object.prototype.hasOwnProperty.call(pdt,l)?pdt[l]:((w=(g=s.getState()).onError)==null||w.call(g,"009",x3.error009(l)),null)},[l])}const WVt=({id:l,type:s,color:u,width:a=12.5,height:g=12.5,markerUnits:w="strokeWidth",strokeWidth:b,orient:y="auto-start-reverse"})=>{const x=KVt(s);return x?In.createElement("marker",{className:"react-flow__arrowhead",id:l,markerWidth:`${a}`,markerHeight:`${g}`,viewBox:"-10 -10 20 20",markerUnits:w,orient:y,refX:"0",refY:"0"},In.createElement(x,{color:u,strokeWidth:b})):null},XVt=({defaultColor:l,rfId:s})=>u=>{const a=[];return u.edges.reduce((g,w)=>([w.markerStart,w.markerEnd].forEach(b=>{if(b&&typeof b=="object"){const y=k2e(b,s);a.includes(y)||(g.push({id:y,color:b.color||l,...b}),a.push(y))}}),g),[]).sort((g,w)=>g.id.localeCompare(w.id))},obt=({defaultColor:l,rfId:s})=>{const u=Xl(Ne.useCallback(XVt({defaultColor:l,rfId:s}),[l,s]),(a,g)=>!(a.length!==g.length||a.some((w,b)=>w.id!==g[b].id)));return In.createElement("defs",null,u.map(a=>In.createElement(WVt,{id:a.id,key:a.id,type:a.type,color:a.color,width:a.width,height:a.height,markerUnits:a.markerUnits,strokeWidth:a.strokeWidth,orient:a.orient})))};obt.displayName="MarkerDefinitions";var UVt=Ne.memo(obt);const GVt=l=>({nodesConnectable:l.nodesConnectable,edgesFocusable:l.edgesFocusable,edgesUpdatable:l.edgesUpdatable,elementsSelectable:l.elementsSelectable,width:l.width,height:l.height,connectionMode:l.connectionMode,nodeInternals:l.nodeInternals,onError:l.onError}),cbt=({defaultMarkerColor:l,onlyRenderVisibleElements:s,elevateEdgesOnSelect:u,rfId:a,edgeTypes:g,noPanClassName:w,onEdgeContextMenu:b,onEdgeMouseEnter:y,onEdgeMouseMove:x,onEdgeMouseLeave:C,onEdgeClick:T,onEdgeDoubleClick:j,onReconnect:N,onReconnectStart:F,onReconnectEnd:Q,reconnectRadius:V,children:ee,disableKeyboardA11y:te})=>{const{edgesFocusable:le,edgesUpdatable:Se,elementsSelectable:be,width:xe,height:Me,connectionMode:_e,nodeInternals:rt,onError:$e}=Xl(GVt,F1),ut=QVt(s,rt,u);return xe?In.createElement(In.Fragment,null,ut.map(({level:st,edges:ht,isMaxLevel:pt})=>In.createElement("svg",{key:st,style:{zIndex:st},width:xe,height:Me,className:"react-flow__edges react-flow__container"},pt&&In.createElement(UVt,{defaultColor:l,rfId:a}),In.createElement("g",null,ht.map(ce=>{const[Ze,et,vt]=bdt(rt.get(ce.source)),[X,nt,Nt]=bdt(rt.get(ce.target));if(!vt||!Nt)return null;let Jt=ce.type||"default";g[Jt]||($e==null||$e("011",x3.error011(Jt)),Jt="default");const Yt=g[Jt]||g.default,Nn=_e===u9.Strict?nt.target:(nt.target??[]).concat(nt.source??[]),Ln=gdt(et.source,ce.sourceHandle),Mi=gdt(Nn,ce.targetHandle),ar=(Ln==null?void 0:Ln.position)||Ai.Bottom,Dr=(Mi==null?void 0:Mi.position)||Ai.Top,Ys=!!(ce.focusable||le&&typeof ce.focusable>"u"),ps=ce.reconnectable||ce.updatable,vr=typeof N<"u"&&(ps||Se&&typeof ps>"u");if(!Ln||!Mi)return $e==null||$e("008",x3.error008(Ln,ce)),null;const{sourceX:Lc,sourceY:so,targetX:Fo,targetY:Mo}=FVt(Ze,Ln,ar,X,Mi,Dr);return In.createElement(Yt,{key:ce.id,id:ce.id,className:Fb([ce.className,w]),type:Jt,data:ce.data,selected:!!ce.selected,animated:!!ce.animated,hidden:!!ce.hidden,label:ce.label,labelStyle:ce.labelStyle,labelShowBg:ce.labelShowBg,labelBgStyle:ce.labelBgStyle,labelBgPadding:ce.labelBgPadding,labelBgBorderRadius:ce.labelBgBorderRadius,style:ce.style,source:ce.source,target:ce.target,sourceHandleId:ce.sourceHandle,targetHandleId:ce.targetHandle,markerEnd:ce.markerEnd,markerStart:ce.markerStart,sourceX:Lc,sourceY:so,targetX:Fo,targetY:Mo,sourcePosition:ar,targetPosition:Dr,elementsSelectable:be,onContextMenu:b,onMouseEnter:y,onMouseMove:x,onMouseLeave:C,onClick:T,onEdgeDoubleClick:j,onReconnect:N,onReconnectStart:F,onReconnectEnd:Q,reconnectRadius:V,rfId:a,ariaLabel:ce.ariaLabel,isFocusable:Ys,isReconnectable:vr,pathOptions:"pathOptions"in ce?ce.pathOptions:void 0,interactionWidth:ce.interactionWidth,disableKeyboardA11y:te})})))),ee):null};cbt.displayName="EdgeRenderer";var VVt=Ne.memo(cbt);const YVt=l=>`translate(${l.transform[0]}px,${l.transform[1]}px) scale(${l.transform[2]})`;function ZVt({children:l}){const s=Xl(YVt);return In.createElement("div",{className:"react-flow__viewport react-flow__container",style:{transform:s}},l)}function JVt(l){const s=Ygt(),u=Ne.useRef(!1);Ne.useEffect(()=>{!u.current&&s.viewportInitialized&&l&&(setTimeout(()=>l(s),1),u.current=!0)},[l,s.viewportInitialized])}const eYt={[Ai.Left]:Ai.Right,[Ai.Right]:Ai.Left,[Ai.Top]:Ai.Bottom,[Ai.Bottom]:Ai.Top},ubt=({nodeId:l,handleType:s,style:u,type:a=I5.Bezier,CustomComponent:g,connectionStatus:w})=>{var Me,_e,rt;const{fromNode:b,handleId:y,toX:x,toY:C,connectionMode:T}=Xl(Ne.useCallback($e=>({fromNode:$e.nodeInternals.get(l),handleId:$e.connectionHandleId,toX:($e.connectionPosition.x-$e.transform[0])/$e.transform[2],toY:($e.connectionPosition.y-$e.transform[1])/$e.transform[2],connectionMode:$e.connectionMode}),[l]),F1),j=(Me=b==null?void 0:b[vl])==null?void 0:Me.handleBounds;let N=j==null?void 0:j[s];if(T===u9.Loose&&(N=N||(j==null?void 0:j[s==="source"?"target":"source"])),!b||!N)return null;const F=y?N.find($e=>$e.id===y):N[0],Q=F?F.x+F.width/2:(b.width??0)/2,V=F?F.y+F.height/2:b.height??0,ee=(((_e=b.positionAbsolute)==null?void 0:_e.x)??0)+Q,te=(((rt=b.positionAbsolute)==null?void 0:rt.y)??0)+V,le=F==null?void 0:F.position,Se=le?eYt[le]:null;if(!le||!Se)return null;if(g)return In.createElement(g,{connectionLineType:a,connectionLineStyle:u,fromNode:b,fromHandle:F,fromX:ee,fromY:te,toX:x,toY:C,fromPosition:le,toPosition:Se,connectionStatus:w});let be="";const xe={sourceX:ee,sourceY:te,sourcePosition:le,targetX:x,targetY:C,targetPosition:Se};return a===I5.Bezier?[be]=Pgt(xe):a===I5.Step?[be]=O2e({...xe,borderRadius:0}):a===I5.SmoothStep?[be]=O2e(xe):a===I5.SimpleBezier?[be]=jgt(xe):be=`M${ee},${te} ${x},${C}`,In.createElement("path",{d:be,fill:"none",className:"react-flow__connection-path",style:u})};ubt.displayName="ConnectionLine";const tYt=l=>({nodeId:l.connectionNodeId,handleType:l.connectionHandleType,nodesConnectable:l.nodesConnectable,connectionStatus:l.connectionStatus,width:l.width,height:l.height});function nYt({containerStyle:l,style:s,type:u,component:a}){const{nodeId:g,handleType:w,nodesConnectable:b,width:y,height:x,connectionStatus:C}=Xl(tYt,F1);return!(g&&w&&y&&b)?null:In.createElement("svg",{style:l,width:y,height:x,className:"react-flow__edges react-flow__connectionline react-flow__container"},In.createElement("g",{className:Fb(["react-flow__connection",C])},In.createElement(ubt,{nodeId:g,handleType:w,style:s,type:u,CustomComponent:a,connectionStatus:C})))}function wdt(l,s){return Ne.useRef(null),Sh(),Ne.useMemo(()=>s(l),[l])}const lbt=({nodeTypes:l,edgeTypes:s,onMove:u,onMoveStart:a,onMoveEnd:g,onInit:w,onNodeClick:b,onEdgeClick:y,onNodeDoubleClick:x,onEdgeDoubleClick:C,onNodeMouseEnter:T,onNodeMouseMove:j,onNodeMouseLeave:N,onNodeContextMenu:F,onSelectionContextMenu:Q,onSelectionStart:V,onSelectionEnd:ee,connectionLineType:te,connectionLineStyle:le,connectionLineComponent:Se,connectionLineContainerStyle:be,selectionKeyCode:xe,selectionOnDrag:Me,selectionMode:_e,multiSelectionKeyCode:rt,panActivationKeyCode:$e,zoomActivationKeyCode:ut,deleteKeyCode:st,onlyRenderVisibleElements:ht,elementsSelectable:pt,selectNodesOnDrag:ce,defaultViewport:Ze,translateExtent:et,minZoom:vt,maxZoom:X,preventScrolling:nt,defaultMarkerColor:Nt,zoomOnScroll:Jt,zoomOnPinch:Yt,panOnScroll:Nn,panOnScrollSpeed:Ln,panOnScrollMode:Mi,zoomOnDoubleClick:ar,panOnDrag:Dr,onPaneClick:Ys,onPaneMouseEnter:ps,onPaneMouseMove:vr,onPaneMouseLeave:Lc,onPaneScroll:so,onPaneContextMenu:Fo,onEdgeContextMenu:Mo,onEdgeMouseEnter:Xo,onEdgeMouseMove:gf,onEdgeMouseLeave:Qs,onReconnect:gi,onReconnectStart:xc,onReconnectEnd:Cd,reconnectRadius:A3,noDragClassName:T2,noWheelClassName:A2,noPanClassName:B1,elevateEdgesOnSelect:Ol,disableKeyboardA11y:Eh,nodeOrigin:Ch,nodeExtent:M2,rfId:M3})=>{const xw=wdt(l,jVt),bf=wdt(s,LVt);return JVt(w),In.createElement(AVt,{onPaneClick:Ys,onPaneMouseEnter:ps,onPaneMouseMove:vr,onPaneMouseLeave:Lc,onPaneContextMenu:Fo,onPaneScroll:so,deleteKeyCode:st,selectionKeyCode:xe,selectionOnDrag:Me,selectionMode:_e,onSelectionStart:V,onSelectionEnd:ee,multiSelectionKeyCode:rt,panActivationKeyCode:$e,zoomActivationKeyCode:ut,elementsSelectable:pt,onMove:u,onMoveStart:a,onMoveEnd:g,zoomOnScroll:Jt,zoomOnPinch:Yt,zoomOnDoubleClick:ar,panOnScroll:Nn,panOnScrollSpeed:Ln,panOnScrollMode:Mi,panOnDrag:Dr,defaultViewport:Ze,translateExtent:et,minZoom:vt,maxZoom:X,onSelectionContextMenu:Q,preventScrolling:nt,noDragClassName:T2,noWheelClassName:A2,noPanClassName:B1,disableKeyboardA11y:Eh},In.createElement(ZVt,null,In.createElement(VVt,{edgeTypes:bf,onEdgeClick:y,onEdgeDoubleClick:C,onlyRenderVisibleElements:ht,onEdgeContextMenu:Mo,onEdgeMouseEnter:Xo,onEdgeMouseMove:gf,onEdgeMouseLeave:Qs,onReconnect:gi,onReconnectStart:xc,onReconnectEnd:Cd,reconnectRadius:A3,defaultMarkerColor:Nt,noPanClassName:B1,elevateEdgesOnSelect:!!Ol,disableKeyboardA11y:Eh,rfId:M3},In.createElement(nYt,{style:le,type:te,component:Se,containerStyle:be})),In.createElement("div",{className:"react-flow__edgelabel-renderer"}),In.createElement(IVt,{nodeTypes:xw,onNodeClick:b,onNodeDoubleClick:x,onNodeMouseEnter:T,onNodeMouseMove:j,onNodeMouseLeave:N,onNodeContextMenu:F,selectNodesOnDrag:ce,onlyRenderVisibleElements:ht,noPanClassName:B1,noDragClassName:T2,disableKeyboardA11y:Eh,nodeOrigin:Ch,nodeExtent:M2,rfId:M3})))};lbt.displayName="GraphView";var iYt=Ne.memo(lbt);const C2e=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],T5={rfId:"1",width:0,height:0,transform:[0,0,1],nodeInternals:new Map,edges:[],onNodesChange:null,onEdgesChange:null,hasDefaultNodes:!1,hasDefaultEdges:!1,d3Zoom:null,d3Selection:null,d3ZoomHandler:void 0,minZoom:.5,maxZoom:2,translateExtent:C2e,nodeExtent:C2e,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionNodeId:null,connectionHandleId:null,connectionHandleType:"source",connectionPosition:{x:0,y:0},connectionStatus:null,connectionMode:u9.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:[0,0],nodeDragThreshold:0,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesUpdatable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,fitViewOnInit:!1,fitViewOnInitDone:!1,fitViewOnInitOptions:void 0,onSelectionChange:[],multiSelectionActive:!1,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,connectionRadius:20,onError:PGt,isValidConnection:void 0},rYt=()=>HKt((l,s)=>({...T5,setNodes:u=>{const{nodeInternals:a,nodeOrigin:g,elevateNodesOnSelect:w}=s();l({nodeInternals:vme(u,a,g,w)})},getNodes:()=>Array.from(s().nodeInternals.values()),setEdges:u=>{const{defaultEdgeOptions:a={}}=s();l({edges:u.map(g=>({...a,...g}))})},setDefaultNodesAndEdges:(u,a)=>{const g=typeof u<"u",w=typeof a<"u",b=g?vme(u,new Map,s().nodeOrigin,s().elevateNodesOnSelect):new Map;l({nodeInternals:b,edges:w?a:[],hasDefaultNodes:g,hasDefaultEdges:w})},updateNodeDimensions:u=>{const{onNodesChange:a,nodeInternals:g,fitViewOnInit:w,fitViewOnInitDone:b,fitViewOnInitOptions:y,domNode:x,nodeOrigin:C}=s(),T=x==null?void 0:x.querySelector(".react-flow__viewport");if(!T)return;const j=window.getComputedStyle(T),{m22:N}=new window.DOMMatrixReadOnly(j.transform),F=u.reduce((V,ee)=>{const te=g.get(ee.id);if(te!=null&&te.hidden)g.set(te.id,{...te,[vl]:{...te[vl],handleBounds:void 0}});else if(te){const le=$ve(ee.nodeElement);!!(le.width&&le.height&&(te.width!==le.width||te.height!==le.height||ee.forceUpdate))&&(g.set(te.id,{...te,[vl]:{...te[vl],handleBounds:{source:fdt(".source",ee.nodeElement,N,C),target:fdt(".target",ee.nodeElement,N,C)}},...le}),V.push({id:te.id,type:"dimensions",dimensions:le}))}return V},[]);Ggt(g,C);const Q=b||w&&!b&&Vgt(s,{initial:!0,...y});l({nodeInternals:new Map(g),fitViewOnInitDone:Q}),(F==null?void 0:F.length)>0&&(a==null||a(F))},updateNodePositions:(u,a=!0,g=!1)=>{const{triggerNodeChanges:w}=s(),b=u.map(y=>{const x={id:y.id,type:"position",dragging:g};return a&&(x.positionAbsolute=y.positionAbsolute,x.position=y.position),x});w(b)},triggerNodeChanges:u=>{const{onNodesChange:a,nodeInternals:g,hasDefaultNodes:w,nodeOrigin:b,getNodes:y,elevateNodesOnSelect:x}=s();if(u!=null&&u.length){if(w){const C=vVt(u,y()),T=vme(C,g,b,x);l({nodeInternals:T})}a==null||a(u)}},addSelectedNodes:u=>{const{multiSelectionActive:a,edges:g,getNodes:w}=s();let b,y=null;a?b=u.map(x=>j5(x,!0)):(b=UE(w(),u),y=UE(g,[])),eG({changedNodes:b,changedEdges:y,get:s,set:l})},addSelectedEdges:u=>{const{multiSelectionActive:a,edges:g,getNodes:w}=s();let b,y=null;a?b=u.map(x=>j5(x,!0)):(b=UE(g,u),y=UE(w(),[])),eG({changedNodes:y,changedEdges:b,get:s,set:l})},unselectNodesAndEdges:({nodes:u,edges:a}={})=>{const{edges:g,getNodes:w}=s(),b=u||w(),y=a||g,x=b.map(T=>(T.selected=!1,j5(T.id,!1))),C=y.map(T=>j5(T.id,!1));eG({changedNodes:x,changedEdges:C,get:s,set:l})},setMinZoom:u=>{const{d3Zoom:a,maxZoom:g}=s();a==null||a.scaleExtent([u,g]),l({minZoom:u})},setMaxZoom:u=>{const{d3Zoom:a,minZoom:g}=s();a==null||a.scaleExtent([g,u]),l({maxZoom:u})},setTranslateExtent:u=>{var a;(a=s().d3Zoom)==null||a.translateExtent(u),l({translateExtent:u})},resetSelectedElements:()=>{const{edges:u,getNodes:a}=s(),w=a().filter(y=>y.selected).map(y=>j5(y.id,!1)),b=u.filter(y=>y.selected).map(y=>j5(y.id,!1));eG({changedNodes:w,changedEdges:b,get:s,set:l})},setNodeExtent:u=>{const{nodeInternals:a}=s();a.forEach(g=>{g.positionAbsolute=Rve(g.position,u)}),l({nodeExtent:u,nodeInternals:new Map(a)})},panBy:u=>{const{transform:a,width:g,height:w,d3Zoom:b,d3Selection:y,translateExtent:x}=s();if(!b||!y||!u.x&&!u.y)return!1;const C=F5.translate(a[0]+u.x,a[1]+u.y).scale(a[2]),T=[[0,0],[g,w]],j=b==null?void 0:b.constrain()(C,T,x);return b.transform(y,j),a[0]!==j.x||a[1]!==j.y||a[2]!==j.k},cancelConnection:()=>l({connectionNodeId:T5.connectionNodeId,connectionHandleId:T5.connectionHandleId,connectionHandleType:T5.connectionHandleType,connectionStatus:T5.connectionStatus,connectionStartHandle:T5.connectionStartHandle,connectionEndHandle:T5.connectionEndHandle}),reset:()=>l({...T5})}),Object.is),fbt=({children:l})=>{const s=Ne.useRef(null);return s.current||(s.current=rYt()),In.createElement(kGt,{value:s.current},l)};fbt.displayName="ReactFlowProvider";const hbt=({children:l})=>Ne.useContext(NV)?In.createElement(In.Fragment,null,l):In.createElement(fbt,null,l);hbt.displayName="ReactFlowWrapper";const sYt={input:Qgt,default:x2e,output:zgt,group:zve},oYt={default:tV,straight:_ve,step:Bve,smoothstep:$V,simplebezier:Fve},cYt=[0,0],uYt=[15,15],lYt={x:0,y:0,zoom:1},fYt={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0},hYt=Ne.forwardRef(({nodes:l,edges:s,defaultNodes:u,defaultEdges:a,className:g,nodeTypes:w=sYt,edgeTypes:b=oYt,onNodeClick:y,onEdgeClick:x,onInit:C,onMove:T,onMoveStart:j,onMoveEnd:N,onConnect:F,onConnectStart:Q,onConnectEnd:V,onClickConnectStart:ee,onClickConnectEnd:te,onNodeMouseEnter:le,onNodeMouseMove:Se,onNodeMouseLeave:be,onNodeContextMenu:xe,onNodeDoubleClick:Me,onNodeDragStart:_e,onNodeDrag:rt,onNodeDragStop:$e,onNodesDelete:ut,onEdgesDelete:st,onSelectionChange:ht,onSelectionDragStart:pt,onSelectionDrag:ce,onSelectionDragStop:Ze,onSelectionContextMenu:et,onSelectionStart:vt,onSelectionEnd:X,connectionMode:nt=u9.Strict,connectionLineType:Nt=I5.Bezier,connectionLineStyle:Jt,connectionLineComponent:Yt,connectionLineContainerStyle:Nn,deleteKeyCode:Ln="Backspace",selectionKeyCode:Mi="Shift",selectionOnDrag:ar=!1,selectionMode:Dr=E$.Full,panActivationKeyCode:Ys="Space",multiSelectionKeyCode:ps=JG()?"Meta":"Control",zoomActivationKeyCode:vr=JG()?"Meta":"Control",snapToGrid:Lc=!1,snapGrid:so=uYt,onlyRenderVisibleElements:Fo=!1,selectNodesOnDrag:Mo=!0,nodesDraggable:Xo,nodesConnectable:gf,nodesFocusable:Qs,nodeOrigin:gi=cYt,edgesFocusable:xc,edgesUpdatable:Cd,elementsSelectable:A3,defaultViewport:T2=lYt,minZoom:A2=.5,maxZoom:B1=2,translateExtent:Ol=C2e,preventScrolling:Eh=!0,nodeExtent:Ch,defaultMarkerColor:M2="#b1b1b7",zoomOnScroll:M3=!0,zoomOnPinch:xw=!0,panOnScroll:bf=!1,panOnScrollSpeed:Td=.5,panOnScrollMode:Ew=e9.Free,zoomOnDoubleClick:Cw=!0,panOnDrag:Tw=!0,onPaneClick:J0,onPaneMouseEnter:_1,onPaneMouseMove:j3,onPaneMouseLeave:p9,onPaneScroll:P3,onPaneContextMenu:w9,children:EC,onEdgeContextMenu:Aw,onEdgeDoubleClick:cR,onEdgeMouseEnter:uR,onEdgeMouseMove:lR,onEdgeMouseLeave:fR,onEdgeUpdate:hR,onEdgeUpdateStart:aR,onEdgeUpdateEnd:dR,onReconnect:gR,onReconnectStart:bR,onReconnectEnd:pR,reconnectRadius:wR=10,edgeUpdaterRadius:mR=10,onNodesChange:vR,onEdgesChange:yR,noDragClassName:OR="nodrag",noWheelClassName:kR="nowheel",noPanClassName:CC="nopan",fitView:SR=!1,fitViewOptions:xR,connectOnClick:ER=!0,attributionPosition:TC,proOptions:CR,defaultEdgeOptions:TR,elevateNodesOnSelect:AR=!0,elevateEdgesOnSelect:MR=!1,disableKeyboardA11y:V5=!1,autoPanOnConnect:m9=!0,autoPanOnNodeDrag:Y5=!0,connectionRadius:jR=20,isValidConnection:PR,onError:v9,style:DR,id:AC,nodeDragThreshold:IR,...Z5},NR)=>{const y9=AC||"1";return In.createElement("div",{...Z5,style:{...DR,...fYt},ref:NR,className:Fb(["react-flow",g]),"data-testid":"rf__wrapper",id:AC},In.createElement(hbt,null,In.createElement(iYt,{onInit:C,onMove:T,onMoveStart:j,onMoveEnd:N,onNodeClick:y,onEdgeClick:x,onNodeMouseEnter:le,onNodeMouseMove:Se,onNodeMouseLeave:be,onNodeContextMenu:xe,onNodeDoubleClick:Me,nodeTypes:w,edgeTypes:b,connectionLineType:Nt,connectionLineStyle:Jt,connectionLineComponent:Yt,connectionLineContainerStyle:Nn,selectionKeyCode:Mi,selectionOnDrag:ar,selectionMode:Dr,deleteKeyCode:Ln,multiSelectionKeyCode:ps,panActivationKeyCode:Ys,zoomActivationKeyCode:vr,onlyRenderVisibleElements:Fo,selectNodesOnDrag:Mo,defaultViewport:T2,translateExtent:Ol,minZoom:A2,maxZoom:B1,preventScrolling:Eh,zoomOnScroll:M3,zoomOnPinch:xw,zoomOnDoubleClick:Cw,panOnScroll:bf,panOnScrollSpeed:Td,panOnScrollMode:Ew,panOnDrag:Tw,onPaneClick:J0,onPaneMouseEnter:_1,onPaneMouseMove:j3,onPaneMouseLeave:p9,onPaneScroll:P3,onPaneContextMenu:w9,onSelectionContextMenu:et,onSelectionStart:vt,onSelectionEnd:X,onEdgeContextMenu:Aw,onEdgeDoubleClick:cR,onEdgeMouseEnter:uR,onEdgeMouseMove:lR,onEdgeMouseLeave:fR,onReconnect:gR??hR,onReconnectStart:bR??aR,onReconnectEnd:pR??dR,reconnectRadius:wR??mR,defaultMarkerColor:M2,noDragClassName:OR,noWheelClassName:kR,noPanClassName:CC,elevateEdgesOnSelect:MR,rfId:y9,disableKeyboardA11y:V5,nodeOrigin:gi,nodeExtent:Ch}),In.createElement(eVt,{nodes:l,edges:s,defaultNodes:u,defaultEdges:a,onConnect:F,onConnectStart:Q,onConnectEnd:V,onClickConnectStart:ee,onClickConnectEnd:te,nodesDraggable:Xo,nodesConnectable:gf,nodesFocusable:Qs,edgesFocusable:xc,edgesUpdatable:Cd,elementsSelectable:A3,elevateNodesOnSelect:AR,minZoom:A2,maxZoom:B1,nodeExtent:Ch,onNodesChange:vR,onEdgesChange:yR,snapToGrid:Lc,snapGrid:so,connectionMode:nt,translateExtent:Ol,connectOnClick:ER,defaultEdgeOptions:TR,fitView:SR,fitViewOptions:xR,onNodesDelete:ut,onEdgesDelete:st,onNodeDragStart:_e,onNodeDrag:rt,onNodeDragStop:$e,onSelectionDrag:ce,onSelectionDragStart:pt,onSelectionDragStop:Ze,noPanClassName:CC,nodeOrigin:gi,rfId:y9,autoPanOnConnect:m9,autoPanOnNodeDrag:Y5,onError:v9,connectionRadius:jR,isValidConnection:PR,nodeDragThreshold:IR}),In.createElement(ZGt,{onSelectionChange:ht}),EC,In.createElement(EGt,{proOptions:CR,position:TC}),In.createElement(sVt,{rfId:y9,disableKeyboardA11y:V5})))});hYt.displayName="ReactFlow";function aYt(){const l=Sh();return Ne.useCallback(s=>{const{domNode:u,updateNodeDimensions:a}=l.getState(),w=(Array.isArray(s)?s:[s]).reduce((b,y)=>{const x=u==null?void 0:u.querySelector(`.react-flow__node[data-id="${y}"]`);return x&&b.push({id:y,nodeElement:x,forceUpdate:!0}),b},[]);requestAnimationFrame(()=>a(w))},[])}function dYt({id:l,className:s,hasLeft:u=!1,hasRight:a=!1,isSelected:g=!1,isDraggable:w=!1,label:b,type:y,count:x,handleClick:C,handleSelect:T}){return Ei.jsxs("div",{className:ml("flex w-full relative items-center",s),children:[u&&Ei.jsx(q5,{type:"target",id:Sc(Kf.Left,l),position:Ai.Left,isConnectable:!1,className:"-ml-2 border rounded-full overflow-hidden border-current",children:Ei.jsx(Sat,{className:"w-5 text-light dark:text-dark-lighter"})}),Ei.jsxs("div",{className:ml("w-full flex items-center",u?"pl-3":"pl-1",a?"pr-3":"pr-1"),children:[Ss(T)&&Ei.jsx("span",{onClick:T,className:"mx-2 w-4 h-4 rounded-full cursor-pointer p-0.5 border-2 border-current",children:Ei.jsx("span",{className:ml("flex w-2 h-2 rounded-full",g?"bg-current":"bg-neutral-10")})}),Ei.jsxs("span",{className:ml("flex w-full overflow-hidden py-2",w&&"drag-handle"),children:[Ss(y)&&Ei.jsx("span",{className:"inline-block ml-1 mr-2 px-1 rounded-[0.25rem] text-[0.5rem] bg-neutral-10",children:Ecn(y)}),Ei.jsx("span",{title:decodeURI(b),className:ml("inline-block whitespace-nowrap overflow-hidden overflow-ellipsis pr-2 font-black",Ss(C)&&"cursor-pointer hover:underline"),onClick:C,children:l2e(decodeURI(b),50,20)}),Ss(x)&&Ei.jsx("span",{className:"flex justify-between ml-2 mr-1 px-2 rounded-full bg-neutral-10",children:x})]})]}),a&&Ei.jsx(q5,{type:"source",id:Sc(Kf.Right,l),position:Ai.Right,isConnectable:!1,className:"-mr-2 border rounded-full overflow-hidden border-current",children:Ei.jsx(Sat,{className:"w-5 text-light dark:text-dark-lighter"})})]})}function gYt(l,s){if(l==null)return{};var u={};for(var a in l)if({}.hasOwnProperty.call(l,a)){if(s.indexOf(a)!==-1)continue;u[a]=l[a]}return u}let T2e=[],abt=[];(()=>{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?abt:T2e).push(u=u+l[s])})();function bYt(l){if(l<768)return!1;for(let s=0,u=T2e.length;;){let a=s+u>>1;if(l<T2e[a])u=a;else if(l>=abt[a])s=a+1;else return!0;if(s==u)return!1}}function mdt(l){return l>=127462&&l<=127487}const vdt=8205;function pYt(l,s,u=!0,a=!0){return(u?dbt:wYt)(l,s,a)}function dbt(l,s,u){if(s==l.length)return s;s&&gbt(l.charCodeAt(s))&&bbt(l.charCodeAt(s-1))&&s--;let a=Sme(l,s);for(s+=ydt(a);s<l.length;){let g=Sme(l,s);if(a==vdt||g==vdt||u&&bYt(g))s+=ydt(g),a=g;else if(mdt(g)){let w=0,b=s-2;for(;b>=0&&mdt(Sme(l,b));)w++,b-=2;if(w%2==0)break;s+=2}else break}return s}function wYt(l,s,u){for(;s>0;){let a=dbt(l,s-2,u);if(a<s)return a;s--}return 0}function Sme(l,s){let u=l.charCodeAt(s);if(!bbt(u)||s+1==l.length)return u;let a=l.charCodeAt(s+1);return gbt(a)?(u-55296<<10)+(a-56320)+65536:u}function gbt(l){return l>=56320&&l<57344}function bbt(l){return l>=55296&&l<56320}function ydt(l){return l<65536?1:2}class ho{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,a){[s,u]=fC(this,s,u);let g=[];return this.decompose(0,s,g,2),a.length&&a.decompose(0,a.length,g,3),this.decompose(u,this.length,g,1),d2.from(g,this.length-(u-s)+a.length)}append(s){return this.replace(this.length,this.length,s)}slice(s,u=this.length){[s,u]=fC(this,s,u);let a=[];return this.decompose(s,u,a,0),d2.from(a,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),a=this.length-this.scanIdentical(s,-1),g=new g$(this),w=new g$(s);for(let b=u,y=u;;){if(g.next(b),w.next(b),b=0,g.lineBreak!=w.lineBreak||g.done!=w.done||g.value!=w.value)return!1;if(y+=g.value.length,g.done||y>=a)return!0}}iter(s=1){return new g$(this,s)}iterRange(s,u=this.length){return new pbt(this,s,u)}iterLines(s,u){let a;if(s==null)a=this.iter();else{u==null&&(u=this.lines+1);let g=this.line(s).from;a=this.iterRange(g,Math.max(g,u==this.lines+1?this.length:u<=1?0:this.line(u-1).to))}return new wbt(a)}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]?ho.empty:s.length<=32?new Wl(s):d2.from(Wl.split(s,[]))}}class Wl extends ho{constructor(s,u=mYt(s)){super(),this.text=s,this.length=u}get lines(){return this.text.length}get children(){return null}lineInner(s,u,a,g){for(let w=0;;w++){let b=this.text[w],y=g+b.length;if((u?a:y)>=s)return new vYt(g,y,a,b);g=y+1,a++}}decompose(s,u,a,g){let w=s<=0&&u>=this.length?this:new Wl(Odt(this.text,s,u),Math.min(u,this.length)-Math.max(0,s));if(g&1){let b=a.pop(),y=IG(w.text,b.text.slice(),0,w.length);if(y.length<=32)a.push(new Wl(y,b.length+w.length));else{let x=y.length>>1;a.push(new Wl(y.slice(0,x)),new Wl(y.slice(x)))}}else a.push(w)}replace(s,u,a){if(!(a instanceof Wl))return super.replace(s,u,a);[s,u]=fC(this,s,u);let g=IG(this.text,IG(a.text,Odt(this.text,0,s)),u),w=this.length+a.length-(u-s);return g.length<=32?new Wl(g,w):d2.from(Wl.split(g,[]),w)}sliceString(s,u=this.length,a=`
|
|
42
|
+
*/var Tat;function NKt(){if(Tat)return hme;Tat=1;var l=H0t(),s=IKt();function u(C,T){return C===T&&(C!==0||1/C===1/T)||C!==C&&T!==T}var a=typeof Object.is=="function"?Object.is:u,g=s.useSyncExternalStore,w=l.useRef,b=l.useEffect,y=l.useMemo,x=l.useDebugValue;return hme.useSyncExternalStoreWithSelector=function(C,T,j,N,F){var Q=w(null);if(Q.current===null){var V={hasValue:!1,value:null};Q.current=V}else V=Q.current;Q=y(function(){function te(Me){if(!le){if(le=!0,Se=Me,Me=N(Me),F!==void 0&&V.hasValue){var _e=V.value;if(F(_e,Me))return be=_e}return be=Me}if(_e=be,a(Se,Me))return _e;var rt=N(Me);return F!==void 0&&F(_e,rt)?(Se=Me,_e):(Se=Me,be=rt)}var le=!1,Se,be,xe=j===void 0?null:j;return[function(){return te(T())},xe===null?void 0:function(){return te(xe())}]},[T,j,N,F]);var ee=g(C,Q[0],Q[1]);return b(function(){V.hasValue=!0,V.value=ee},[ee]),x(ee),ee},hme}var Aat;function $Kt(){return Aat||(Aat=1,fme.exports=NKt()),fme.exports}var RKt=$Kt();const LKt=Q0t(RKt),FKt={},Mat=l=>{let s;const u=new Set,a=(T,j)=>{const N=typeof T=="function"?T(s):T;if(!Object.is(N,s)){const F=s;s=j??(typeof N!="object"||N===null)?N:Object.assign({},s,N),u.forEach(Q=>Q(s,F))}},g=()=>s,x={setState:a,getState:g,getInitialState:()=>C,subscribe:T=>(u.add(T),()=>u.delete(T)),destroy:()=>{(FKt?"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(a,g,x);return x},BKt=l=>l?Mat(l):Mat,{useDebugValue:_Kt}=In,{useSyncExternalStoreWithSelector:qKt}=LKt,QKt=l=>l;function G0t(l,s=QKt,u){const a=qKt(l.subscribe,l.getState,l.getServerState||l.getInitialState,s,u);return _Kt(a),a}const jat=(l,s)=>{const u=BKt(l),a=(g,w=s)=>G0t(u,g,w);return Object.assign(a,u),a},HKt=(l,s)=>l?jat(l,s):jat;function F1(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[a,g]of l)if(!Object.is(g,s.get(a)))return!1;return!0}if(l instanceof Set&&s instanceof Set){if(l.size!==s.size)return!1;for(const a of l)if(!s.has(a))return!1;return!0}const u=Object.keys(l);if(u.length!==Object.keys(s).length)return!1;for(const a of u)if(!Object.prototype.hasOwnProperty.call(s,a)||!Object.is(l[a],s[a]))return!1;return!0}var zKt={value:()=>{}};function jV(){for(var l=0,s=arguments.length,u={},a;l<s;++l){if(!(a=arguments[l]+"")||a in u||/[\s.]/.test(a))throw new Error("illegal type: "+a);u[a]=[]}return new MG(u)}function MG(l){this._=l}function KKt(l,s){return l.trim().split(/^|\s+/).map(function(u){var a="",g=u.indexOf(".");if(g>=0&&(a=u.slice(g+1),u=u.slice(0,g)),u&&!s.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:a}})}MG.prototype=jV.prototype={constructor:MG,on:function(l,s){var u=this._,a=KKt(l+"",u),g,w=-1,b=a.length;if(arguments.length<2){for(;++w<b;)if((g=(l=a[w]).type)&&(g=WKt(u[g],l.name)))return g;return}if(s!=null&&typeof s!="function")throw new Error("invalid callback: "+s);for(;++w<b;)if(g=(l=a[w]).type)u[g]=Pat(u[g],l.name,s);else if(s==null)for(g in u)u[g]=Pat(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 MG(l)},call:function(l,s){if((g=arguments.length-2)>0)for(var u=new Array(g),a=0,g,w;a<g;++a)u[a]=arguments[a+2];if(!this._.hasOwnProperty(l))throw new Error("unknown type: "+l);for(w=this._[l],a=0,g=w.length;a<g;++a)w[a].value.apply(s,u)},apply:function(l,s,u){if(!this._.hasOwnProperty(l))throw new Error("unknown type: "+l);for(var a=this._[l],g=0,w=a.length;g<w;++g)a[g].value.apply(s,u)}};function WKt(l,s){for(var u=0,a=l.length,g;u<a;++u)if((g=l[u]).name===s)return g.value}function Pat(l,s,u){for(var a=0,g=l.length;a<g;++a)if(l[a].name===s){l[a]=zKt,l=l.slice(0,a).concat(l.slice(a+1));break}return u!=null&&l.push({name:s,value:u}),l}var h2e="http://www.w3.org/1999/xhtml";const Dat={svg:"http://www.w3.org/2000/svg",xhtml:h2e,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function PV(l){var s=l+="",u=s.indexOf(":");return u>=0&&(s=l.slice(0,u))!=="xmlns"&&(l=l.slice(u+1)),Dat.hasOwnProperty(s)?{space:Dat[s],local:l}:l}function XKt(l){return function(){var s=this.ownerDocument,u=this.namespaceURI;return u===h2e&&s.documentElement.namespaceURI===h2e?s.createElement(l):s.createElementNS(u,l)}}function UKt(l){return function(){return this.ownerDocument.createElementNS(l.space,l.local)}}function V0t(l){var s=PV(l);return(s.local?UKt:XKt)(s)}function GKt(){}function Mve(l){return l==null?GKt:function(){return this.querySelector(l)}}function VKt(l){typeof l!="function"&&(l=Mve(l));for(var s=this._groups,u=s.length,a=new Array(u),g=0;g<u;++g)for(var w=s[g],b=w.length,y=a[g]=new Array(b),x,C,T=0;T<b;++T)(x=w[T])&&(C=l.call(x,x.__data__,T,w))&&("__data__"in x&&(C.__data__=x.__data__),y[T]=C);return new Z0(a,this._parents)}function YKt(l){return l==null?[]:Array.isArray(l)?l:Array.from(l)}function ZKt(){return[]}function Y0t(l){return l==null?ZKt:function(){return this.querySelectorAll(l)}}function JKt(l){return function(){return YKt(l.apply(this,arguments))}}function eWt(l){typeof l=="function"?l=JKt(l):l=Y0t(l);for(var s=this._groups,u=s.length,a=[],g=[],w=0;w<u;++w)for(var b=s[w],y=b.length,x,C=0;C<y;++C)(x=b[C])&&(a.push(l.call(x,x.__data__,C,b)),g.push(x));return new Z0(a,g)}function Z0t(l){return function(){return this.matches(l)}}function J0t(l){return function(s){return s.matches(l)}}var tWt=Array.prototype.find;function nWt(l){return function(){return tWt.call(this.children,l)}}function iWt(){return this.firstElementChild}function rWt(l){return this.select(l==null?iWt:nWt(typeof l=="function"?l:J0t(l)))}var sWt=Array.prototype.filter;function oWt(){return Array.from(this.children)}function cWt(l){return function(){return sWt.call(this.children,l)}}function uWt(l){return this.selectAll(l==null?oWt:cWt(typeof l=="function"?l:J0t(l)))}function lWt(l){typeof l!="function"&&(l=Z0t(l));for(var s=this._groups,u=s.length,a=new Array(u),g=0;g<u;++g)for(var w=s[g],b=w.length,y=a[g]=[],x,C=0;C<b;++C)(x=w[C])&&l.call(x,x.__data__,C,w)&&y.push(x);return new Z0(a,this._parents)}function egt(l){return new Array(l.length)}function fWt(){return new Z0(this._enter||this._groups.map(egt),this._parents)}function XG(l,s){this.ownerDocument=l.ownerDocument,this.namespaceURI=l.namespaceURI,this._next=null,this._parent=l,this.__data__=s}XG.prototype={constructor:XG,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 hWt(l){return function(){return l}}function aWt(l,s,u,a,g,w){for(var b=0,y,x=s.length,C=w.length;b<C;++b)(y=s[b])?(y.__data__=w[b],a[b]=y):u[b]=new XG(l,w[b]);for(;b<x;++b)(y=s[b])&&(g[b]=y)}function dWt(l,s,u,a,g,w,b){var y,x,C=new Map,T=s.length,j=w.length,N=new Array(T),F;for(y=0;y<T;++y)(x=s[y])&&(N[y]=F=b.call(x,x.__data__,y,s)+"",C.has(F)?g[y]=x:C.set(F,x));for(y=0;y<j;++y)F=b.call(l,w[y],y,w)+"",(x=C.get(F))?(a[y]=x,x.__data__=w[y],C.delete(F)):u[y]=new XG(l,w[y]);for(y=0;y<T;++y)(x=s[y])&&C.get(N[y])===x&&(g[y]=x)}function gWt(l){return l.__data__}function bWt(l,s){if(!arguments.length)return Array.from(this,gWt);var u=s?dWt:aWt,a=this._parents,g=this._groups;typeof l!="function"&&(l=hWt(l));for(var w=g.length,b=new Array(w),y=new Array(w),x=new Array(w),C=0;C<w;++C){var T=a[C],j=g[C],N=j.length,F=pWt(l.call(T,T&&T.__data__,C,a)),Q=F.length,V=y[C]=new Array(Q),ee=b[C]=new Array(Q),te=x[C]=new Array(N);u(T,j,V,ee,te,F,s);for(var le=0,Se=0,be,xe;le<Q;++le)if(be=V[le]){for(le>=Se&&(Se=le+1);!(xe=ee[Se])&&++Se<Q;);be._next=xe||null}}return b=new Z0(b,a),b._enter=y,b._exit=x,b}function pWt(l){return typeof l=="object"&&"length"in l?l:Array.from(l)}function wWt(){return new Z0(this._exit||this._groups.map(egt),this._parents)}function mWt(l,s,u){var a=this.enter(),g=this,w=this.exit();return typeof l=="function"?(a=l(a),a&&(a=a.selection())):a=a.append(l+""),s!=null&&(g=s(g),g&&(g=g.selection())),u==null?w.remove():u(w),a&&g?a.merge(g).order():g}function vWt(l){for(var s=l.selection?l.selection():l,u=this._groups,a=s._groups,g=u.length,w=a.length,b=Math.min(g,w),y=new Array(g),x=0;x<b;++x)for(var C=u[x],T=a[x],j=C.length,N=y[x]=new Array(j),F,Q=0;Q<j;++Q)(F=C[Q]||T[Q])&&(N[Q]=F);for(;x<g;++x)y[x]=u[x];return new Z0(y,this._parents)}function yWt(){for(var l=this._groups,s=-1,u=l.length;++s<u;)for(var a=l[s],g=a.length-1,w=a[g],b;--g>=0;)(b=a[g])&&(w&&b.compareDocumentPosition(w)^4&&w.parentNode.insertBefore(b,w),w=b);return this}function OWt(l){l||(l=kWt);function s(j,N){return j&&N?l(j.__data__,N.__data__):!j-!N}for(var u=this._groups,a=u.length,g=new Array(a),w=0;w<a;++w){for(var b=u[w],y=b.length,x=g[w]=new Array(y),C,T=0;T<y;++T)(C=b[T])&&(x[T]=C);x.sort(s)}return new Z0(g,this._parents).order()}function kWt(l,s){return l<s?-1:l>s?1:l>=s?0:NaN}function SWt(){var l=arguments[0];return arguments[0]=this,l.apply(null,arguments),this}function xWt(){return Array.from(this)}function EWt(){for(var l=this._groups,s=0,u=l.length;s<u;++s)for(var a=l[s],g=0,w=a.length;g<w;++g){var b=a[g];if(b)return b}return null}function CWt(){let l=0;for(const s of this)++l;return l}function TWt(){return!this.node()}function AWt(l){for(var s=this._groups,u=0,a=s.length;u<a;++u)for(var g=s[u],w=0,b=g.length,y;w<b;++w)(y=g[w])&&l.call(y,y.__data__,w,g);return this}function MWt(l){return function(){this.removeAttribute(l)}}function jWt(l){return function(){this.removeAttributeNS(l.space,l.local)}}function PWt(l,s){return function(){this.setAttribute(l,s)}}function DWt(l,s){return function(){this.setAttributeNS(l.space,l.local,s)}}function IWt(l,s){return function(){var u=s.apply(this,arguments);u==null?this.removeAttribute(l):this.setAttribute(l,u)}}function NWt(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 $Wt(l,s){var u=PV(l);if(arguments.length<2){var a=this.node();return u.local?a.getAttributeNS(u.space,u.local):a.getAttribute(u)}return this.each((s==null?u.local?jWt:MWt:typeof s=="function"?u.local?NWt:IWt:u.local?DWt:PWt)(u,s))}function tgt(l){return l.ownerDocument&&l.ownerDocument.defaultView||l.document&&l||l.defaultView}function RWt(l){return function(){this.style.removeProperty(l)}}function LWt(l,s,u){return function(){this.style.setProperty(l,s,u)}}function FWt(l,s,u){return function(){var a=s.apply(this,arguments);a==null?this.style.removeProperty(l):this.style.setProperty(l,a,u)}}function BWt(l,s,u){return arguments.length>1?this.each((s==null?RWt:typeof s=="function"?FWt:LWt)(l,s,u??"")):cC(this.node(),l)}function cC(l,s){return l.style.getPropertyValue(s)||tgt(l).getComputedStyle(l,null).getPropertyValue(s)}function _Wt(l){return function(){delete this[l]}}function qWt(l,s){return function(){this[l]=s}}function QWt(l,s){return function(){var u=s.apply(this,arguments);u==null?delete this[l]:this[l]=u}}function HWt(l,s){return arguments.length>1?this.each((s==null?_Wt:typeof s=="function"?QWt:qWt)(l,s)):this.node()[l]}function ngt(l){return l.trim().split(/^|\s+/)}function jve(l){return l.classList||new igt(l)}function igt(l){this._node=l,this._names=ngt(l.getAttribute("class")||"")}igt.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 rgt(l,s){for(var u=jve(l),a=-1,g=s.length;++a<g;)u.add(s[a])}function sgt(l,s){for(var u=jve(l),a=-1,g=s.length;++a<g;)u.remove(s[a])}function zWt(l){return function(){rgt(this,l)}}function KWt(l){return function(){sgt(this,l)}}function WWt(l,s){return function(){(s.apply(this,arguments)?rgt:sgt)(this,l)}}function XWt(l,s){var u=ngt(l+"");if(arguments.length<2){for(var a=jve(this.node()),g=-1,w=u.length;++g<w;)if(!a.contains(u[g]))return!1;return!0}return this.each((typeof s=="function"?WWt:s?zWt:KWt)(u,s))}function UWt(){this.textContent=""}function GWt(l){return function(){this.textContent=l}}function VWt(l){return function(){var s=l.apply(this,arguments);this.textContent=s??""}}function YWt(l){return arguments.length?this.each(l==null?UWt:(typeof l=="function"?VWt:GWt)(l)):this.node().textContent}function ZWt(){this.innerHTML=""}function JWt(l){return function(){this.innerHTML=l}}function eXt(l){return function(){var s=l.apply(this,arguments);this.innerHTML=s??""}}function tXt(l){return arguments.length?this.each(l==null?ZWt:(typeof l=="function"?eXt:JWt)(l)):this.node().innerHTML}function nXt(){this.nextSibling&&this.parentNode.appendChild(this)}function iXt(){return this.each(nXt)}function rXt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function sXt(){return this.each(rXt)}function oXt(l){var s=typeof l=="function"?l:V0t(l);return this.select(function(){return this.appendChild(s.apply(this,arguments))})}function cXt(){return null}function uXt(l,s){var u=typeof l=="function"?l:V0t(l),a=s==null?cXt:typeof s=="function"?s:Mve(s);return this.select(function(){return this.insertBefore(u.apply(this,arguments),a.apply(this,arguments)||null)})}function lXt(){var l=this.parentNode;l&&l.removeChild(this)}function fXt(){return this.each(lXt)}function hXt(){var l=this.cloneNode(!1),s=this.parentNode;return s?s.insertBefore(l,this.nextSibling):l}function aXt(){var l=this.cloneNode(!0),s=this.parentNode;return s?s.insertBefore(l,this.nextSibling):l}function dXt(l){return this.select(l?aXt:hXt)}function gXt(l){return arguments.length?this.property("__data__",l):this.node().__data__}function bXt(l){return function(s){l.call(this,s,this.__data__)}}function pXt(l){return l.trim().split(/^|\s+/).map(function(s){var u="",a=s.indexOf(".");return a>=0&&(u=s.slice(a+1),s=s.slice(0,a)),{type:s,name:u}})}function wXt(l){return function(){var s=this.__on;if(s){for(var u=0,a=-1,g=s.length,w;u<g;++u)w=s[u],(!l.type||w.type===l.type)&&w.name===l.name?this.removeEventListener(w.type,w.listener,w.options):s[++a]=w;++a?s.length=a:delete this.__on}}}function mXt(l,s,u){return function(){var a=this.__on,g,w=bXt(s);if(a){for(var b=0,y=a.length;b<y;++b)if((g=a[b]).type===l.type&&g.name===l.name){this.removeEventListener(g.type,g.listener,g.options),this.addEventListener(g.type,g.listener=w,g.options=u),g.value=s;return}}this.addEventListener(l.type,w,u),g={type:l.type,name:l.name,value:s,listener:w,options:u},a?a.push(g):this.__on=[g]}}function vXt(l,s,u){var a=pXt(l+""),g,w=a.length,b;if(arguments.length<2){var y=this.node().__on;if(y){for(var x=0,C=y.length,T;x<C;++x)for(g=0,T=y[x];g<w;++g)if((b=a[g]).type===T.type&&b.name===T.name)return T.value}return}for(y=s?mXt:wXt,g=0;g<w;++g)this.each(y(a[g],s,u));return this}function ogt(l,s,u){var a=tgt(l),g=a.CustomEvent;typeof g=="function"?g=new g(s,u):(g=a.document.createEvent("Event"),u?(g.initEvent(s,u.bubbles,u.cancelable),g.detail=u.detail):g.initEvent(s,!1,!1)),l.dispatchEvent(g)}function yXt(l,s){return function(){return ogt(this,l,s)}}function OXt(l,s){return function(){return ogt(this,l,s.apply(this,arguments))}}function kXt(l,s){return this.each((typeof s=="function"?OXt:yXt)(l,s))}function*SXt(){for(var l=this._groups,s=0,u=l.length;s<u;++s)for(var a=l[s],g=0,w=a.length,b;g<w;++g)(b=a[g])&&(yield b)}var cgt=[null];function Z0(l,s){this._groups=l,this._parents=s}function X$(){return new Z0([[document.documentElement]],cgt)}function xXt(){return this}Z0.prototype=X$.prototype={constructor:Z0,select:VKt,selectAll:eWt,selectChild:rWt,selectChildren:uWt,filter:lWt,data:bWt,enter:fWt,exit:wWt,join:mWt,merge:vWt,selection:xXt,order:yWt,sort:OWt,call:SWt,nodes:xWt,node:EWt,size:CWt,empty:TWt,each:AWt,attr:$Wt,style:BWt,property:HWt,classed:XWt,text:YWt,html:tXt,raise:iXt,lower:sXt,append:oXt,insert:uXt,remove:fXt,clone:dXt,datum:gXt,on:vXt,dispatch:kXt,[Symbol.iterator]:SXt};function mw(l){return typeof l=="string"?new Z0([[document.querySelector(l)]],[document.documentElement]):new Z0([[l]],cgt)}function EXt(l){let s;for(;s=l.sourceEvent;)l=s;return l}function a2(l,s){if(l=EXt(l),s===void 0&&(s=l.currentTarget),s){var u=s.ownerSVGElement||s;if(u.createSVGPoint){var a=u.createSVGPoint();return a.x=l.clientX,a.y=l.clientY,a=a.matrixTransform(s.getScreenCTM().inverse()),[a.x,a.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 CXt={passive:!1},y$={capture:!0,passive:!1};function gme(l){l.stopImmediatePropagation()}function YE(l){l.preventDefault(),l.stopImmediatePropagation()}function ugt(l){var s=l.document.documentElement,u=mw(l).on("dragstart.drag",YE,y$);"onselectstart"in s?u.on("selectstart.drag",YE,y$):(s.__noselect=s.style.MozUserSelect,s.style.MozUserSelect="none")}function lgt(l,s){var u=l.document.documentElement,a=mw(l).on("dragstart.drag",null);s&&(a.on("click.drag",YE,y$),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in u?a.on("selectstart.drag",null):(u.style.MozUserSelect=u.__noselect,delete u.__noselect)}const XU=l=>()=>l;function a2e(l,{sourceEvent:s,subject:u,target:a,identifier:g,active:w,x:b,y,dx:x,dy:C,dispatch:T}){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:a,enumerable:!0,configurable:!0},identifier:{value:g,enumerable:!0,configurable:!0},active:{value:w,enumerable:!0,configurable:!0},x:{value:b,enumerable:!0,configurable:!0},y:{value:y,enumerable:!0,configurable:!0},dx:{value:x,enumerable:!0,configurable:!0},dy:{value:C,enumerable:!0,configurable:!0},_:{value:T}})}a2e.prototype.on=function(){var l=this._.on.apply(this._,arguments);return l===this._?this:l};function TXt(l){return!l.ctrlKey&&!l.button}function AXt(){return this.parentNode}function MXt(l,s){return s??{x:l.x,y:l.y}}function jXt(){return navigator.maxTouchPoints||"ontouchstart"in this}function PXt(){var l=TXt,s=AXt,u=MXt,a=jXt,g={},w=jV("start","drag","end"),b=0,y,x,C,T,j=0;function N(be){be.on("mousedown.drag",F).filter(a).on("touchstart.drag",ee).on("touchmove.drag",te,CXt).on("touchend.drag touchcancel.drag",le).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function F(be,xe){if(!(T||!l.call(this,be,xe))){var Me=Se(this,s.call(this,be,xe),be,xe,"mouse");Me&&(mw(be.view).on("mousemove.drag",Q,y$).on("mouseup.drag",V,y$),ugt(be.view),gme(be),C=!1,y=be.clientX,x=be.clientY,Me("start",be))}}function Q(be){if(YE(be),!C){var xe=be.clientX-y,Me=be.clientY-x;C=xe*xe+Me*Me>j}g.mouse("drag",be)}function V(be){mw(be.view).on("mousemove.drag mouseup.drag",null),lgt(be.view,C),YE(be),g.mouse("end",be)}function ee(be,xe){if(l.call(this,be,xe)){var Me=be.changedTouches,_e=s.call(this,be,xe),rt=Me.length,$e,ut;for($e=0;$e<rt;++$e)(ut=Se(this,_e,be,xe,Me[$e].identifier,Me[$e]))&&(gme(be),ut("start",be,Me[$e]))}}function te(be){var xe=be.changedTouches,Me=xe.length,_e,rt;for(_e=0;_e<Me;++_e)(rt=g[xe[_e].identifier])&&(YE(be),rt("drag",be,xe[_e]))}function le(be){var xe=be.changedTouches,Me=xe.length,_e,rt;for(T&&clearTimeout(T),T=setTimeout(function(){T=null},500),_e=0;_e<Me;++_e)(rt=g[xe[_e].identifier])&&(gme(be),rt("end",be,xe[_e]))}function Se(be,xe,Me,_e,rt,$e){var ut=w.copy(),st=a2($e||Me,xe),ht,pt,ce;if((ce=u.call(be,new a2e("beforestart",{sourceEvent:Me,target:N,identifier:rt,active:b,x:st[0],y:st[1],dx:0,dy:0,dispatch:ut}),_e))!=null)return ht=ce.x-st[0]||0,pt=ce.y-st[1]||0,function Ze(et,vt,X){var nt=st,Nt;switch(et){case"start":g[rt]=Ze,Nt=b++;break;case"end":delete g[rt],--b;case"drag":st=a2(X||vt,xe),Nt=b;break}ut.call(et,be,new a2e(et,{sourceEvent:vt,subject:ce,target:N,identifier:rt,active:Nt,x:st[0]+ht,y:st[1]+pt,dx:st[0]-nt[0],dy:st[1]-nt[1],dispatch:ut}),_e)}}return N.filter=function(be){return arguments.length?(l=typeof be=="function"?be:XU(!!be),N):l},N.container=function(be){return arguments.length?(s=typeof be=="function"?be:XU(be),N):s},N.subject=function(be){return arguments.length?(u=typeof be=="function"?be:XU(be),N):u},N.touchable=function(be){return arguments.length?(a=typeof be=="function"?be:XU(!!be),N):a},N.on=function(){var be=w.on.apply(w,arguments);return be===w?N:be},N.clickDistance=function(be){return arguments.length?(j=(be=+be)*be,N):Math.sqrt(j)},N}function Pve(l,s,u){l.prototype=s.prototype=u,u.constructor=l}function fgt(l,s){var u=Object.create(l.prototype);for(var a in s)u[a]=s[a];return u}function U$(){}var O$=.7,UG=1/O$,ZE="\\s*([+-]?\\d+)\\s*",k$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",v2="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",DXt=/^#([0-9a-f]{3,8})$/,IXt=new RegExp(`^rgb\\(${ZE},${ZE},${ZE}\\)$`),NXt=new RegExp(`^rgb\\(${v2},${v2},${v2}\\)$`),$Xt=new RegExp(`^rgba\\(${ZE},${ZE},${ZE},${k$}\\)$`),RXt=new RegExp(`^rgba\\(${v2},${v2},${v2},${k$}\\)$`),LXt=new RegExp(`^hsl\\(${k$},${v2},${v2}\\)$`),FXt=new RegExp(`^hsla\\(${k$},${v2},${v2},${k$}\\)$`),Iat={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};Pve(U$,S$,{copy(l){return Object.assign(new this.constructor,this,l)},displayable(){return this.rgb().displayable()},hex:Nat,formatHex:Nat,formatHex8:BXt,formatHsl:_Xt,formatRgb:$at,toString:$at});function Nat(){return this.rgb().formatHex()}function BXt(){return this.rgb().formatHex8()}function _Xt(){return hgt(this).formatHsl()}function $at(){return this.rgb().formatRgb()}function S$(l){var s,u;return l=(l+"").trim().toLowerCase(),(s=DXt.exec(l))?(u=s[1].length,s=parseInt(s[1],16),u===6?Rat(s):u===3?new N1(s>>8&15|s>>4&240,s>>4&15|s&240,(s&15)<<4|s&15,1):u===8?UU(s>>24&255,s>>16&255,s>>8&255,(s&255)/255):u===4?UU(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=IXt.exec(l))?new N1(s[1],s[2],s[3],1):(s=NXt.exec(l))?new N1(s[1]*255/100,s[2]*255/100,s[3]*255/100,1):(s=$Xt.exec(l))?UU(s[1],s[2],s[3],s[4]):(s=RXt.exec(l))?UU(s[1]*255/100,s[2]*255/100,s[3]*255/100,s[4]):(s=LXt.exec(l))?Bat(s[1],s[2]/100,s[3]/100,1):(s=FXt.exec(l))?Bat(s[1],s[2]/100,s[3]/100,s[4]):Iat.hasOwnProperty(l)?Rat(Iat[l]):l==="transparent"?new N1(NaN,NaN,NaN,0):null}function Rat(l){return new N1(l>>16&255,l>>8&255,l&255,1)}function UU(l,s,u,a){return a<=0&&(l=s=u=NaN),new N1(l,s,u,a)}function qXt(l){return l instanceof U$||(l=S$(l)),l?(l=l.rgb(),new N1(l.r,l.g,l.b,l.opacity)):new N1}function d2e(l,s,u,a){return arguments.length===1?qXt(l):new N1(l,s,u,a??1)}function N1(l,s,u,a){this.r=+l,this.g=+s,this.b=+u,this.opacity=+a}Pve(N1,d2e,fgt(U$,{brighter(l){return l=l==null?UG:Math.pow(UG,l),new N1(this.r*l,this.g*l,this.b*l,this.opacity)},darker(l){return l=l==null?O$:Math.pow(O$,l),new N1(this.r*l,this.g*l,this.b*l,this.opacity)},rgb(){return this},clamp(){return new N1(r9(this.r),r9(this.g),r9(this.b),GG(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:Lat,formatHex:Lat,formatHex8:QXt,formatRgb:Fat,toString:Fat}));function Lat(){return`#${J8(this.r)}${J8(this.g)}${J8(this.b)}`}function QXt(){return`#${J8(this.r)}${J8(this.g)}${J8(this.b)}${J8((isNaN(this.opacity)?1:this.opacity)*255)}`}function Fat(){const l=GG(this.opacity);return`${l===1?"rgb(":"rgba("}${r9(this.r)}, ${r9(this.g)}, ${r9(this.b)}${l===1?")":`, ${l})`}`}function GG(l){return isNaN(l)?1:Math.max(0,Math.min(1,l))}function r9(l){return Math.max(0,Math.min(255,Math.round(l)||0))}function J8(l){return l=r9(l),(l<16?"0":"")+l.toString(16)}function Bat(l,s,u,a){return a<=0?l=s=u=NaN:u<=0||u>=1?l=s=NaN:s<=0&&(l=NaN),new vw(l,s,u,a)}function hgt(l){if(l instanceof vw)return new vw(l.h,l.s,l.l,l.opacity);if(l instanceof U$||(l=S$(l)),!l)return new vw;if(l instanceof vw)return l;l=l.rgb();var s=l.r/255,u=l.g/255,a=l.b/255,g=Math.min(s,u,a),w=Math.max(s,u,a),b=NaN,y=w-g,x=(w+g)/2;return y?(s===w?b=(u-a)/y+(u<a)*6:u===w?b=(a-s)/y+2:b=(s-u)/y+4,y/=x<.5?w+g:2-w-g,b*=60):y=x>0&&x<1?0:b,new vw(b,y,x,l.opacity)}function HXt(l,s,u,a){return arguments.length===1?hgt(l):new vw(l,s,u,a??1)}function vw(l,s,u,a){this.h=+l,this.s=+s,this.l=+u,this.opacity=+a}Pve(vw,HXt,fgt(U$,{brighter(l){return l=l==null?UG:Math.pow(UG,l),new vw(this.h,this.s,this.l*l,this.opacity)},darker(l){return l=l==null?O$:Math.pow(O$,l),new vw(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,a=u+(u<.5?u:1-u)*s,g=2*u-a;return new N1(bme(l>=240?l-240:l+120,g,a),bme(l,g,a),bme(l<120?l+240:l-120,g,a),this.opacity)},clamp(){return new vw(_at(this.h),GU(this.s),GU(this.l),GG(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=GG(this.opacity);return`${l===1?"hsl(":"hsla("}${_at(this.h)}, ${GU(this.s)*100}%, ${GU(this.l)*100}%${l===1?")":`, ${l})`}`}}));function _at(l){return l=(l||0)%360,l<0?l+360:l}function GU(l){return Math.max(0,Math.min(1,l||0))}function bme(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 agt=l=>()=>l;function zXt(l,s){return function(u){return l+u*s}}function KXt(l,s,u){return l=Math.pow(l,u),s=Math.pow(s,u)-l,u=1/u,function(a){return Math.pow(l+a*s,u)}}function WXt(l){return(l=+l)==1?dgt:function(s,u){return u-s?KXt(s,u,l):agt(isNaN(s)?u:s)}}function dgt(l,s){var u=s-l;return u?zXt(l,u):agt(isNaN(l)?s:l)}const qat=function l(s){var u=WXt(s);function a(g,w){var b=u((g=d2e(g)).r,(w=d2e(w)).r),y=u(g.g,w.g),x=u(g.b,w.b),C=dgt(g.opacity,w.opacity);return function(T){return g.r=b(T),g.g=y(T),g.b=x(T),g.opacity=C(T),g+""}}return a.gamma=l,a}(1);function M5(l,s){return l=+l,s=+s,function(u){return l*(1-u)+s*u}}var g2e=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pme=new RegExp(g2e.source,"g");function XXt(l){return function(){return l}}function UXt(l){return function(s){return l(s)+""}}function GXt(l,s){var u=g2e.lastIndex=pme.lastIndex=0,a,g,w,b=-1,y=[],x=[];for(l=l+"",s=s+"";(a=g2e.exec(l))&&(g=pme.exec(s));)(w=g.index)>u&&(w=s.slice(u,w),y[b]?y[b]+=w:y[++b]=w),(a=a[0])===(g=g[0])?y[b]?y[b]+=g:y[++b]=g:(y[++b]=null,x.push({i:b,x:M5(a,g)})),u=pme.lastIndex;return u<s.length&&(w=s.slice(u),y[b]?y[b]+=w:y[++b]=w),y.length<2?x[0]?UXt(x[0].x):XXt(s):(s=x.length,function(C){for(var T=0,j;T<s;++T)y[(j=x[T]).i]=j.x(C);return y.join("")})}var Qat=180/Math.PI,b2e={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ggt(l,s,u,a,g,w){var b,y,x;return(b=Math.sqrt(l*l+s*s))&&(l/=b,s/=b),(x=l*u+s*a)&&(u-=l*x,a-=s*x),(y=Math.sqrt(u*u+a*a))&&(u/=y,a/=y,x/=y),l*a<s*u&&(l=-l,s=-s,x=-x,b=-b),{translateX:g,translateY:w,rotate:Math.atan2(s,l)*Qat,skewX:Math.atan(x)*Qat,scaleX:b,scaleY:y}}var VU;function VXt(l){const s=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(l+"");return s.isIdentity?b2e:ggt(s.a,s.b,s.c,s.d,s.e,s.f)}function YXt(l){return l==null||(VU||(VU=document.createElementNS("http://www.w3.org/2000/svg","g")),VU.setAttribute("transform",l),!(l=VU.transform.baseVal.consolidate()))?b2e:(l=l.matrix,ggt(l.a,l.b,l.c,l.d,l.e,l.f))}function bgt(l,s,u,a){function g(C){return C.length?C.pop()+" ":""}function w(C,T,j,N,F,Q){if(C!==j||T!==N){var V=F.push("translate(",null,s,null,u);Q.push({i:V-4,x:M5(C,j)},{i:V-2,x:M5(T,N)})}else(j||N)&&F.push("translate("+j+s+N+u)}function b(C,T,j,N){C!==T?(C-T>180?T+=360:T-C>180&&(C+=360),N.push({i:j.push(g(j)+"rotate(",null,a)-2,x:M5(C,T)})):T&&j.push(g(j)+"rotate("+T+a)}function y(C,T,j,N){C!==T?N.push({i:j.push(g(j)+"skewX(",null,a)-2,x:M5(C,T)}):T&&j.push(g(j)+"skewX("+T+a)}function x(C,T,j,N,F,Q){if(C!==j||T!==N){var V=F.push(g(F)+"scale(",null,",",null,")");Q.push({i:V-4,x:M5(C,j)},{i:V-2,x:M5(T,N)})}else(j!==1||N!==1)&&F.push(g(F)+"scale("+j+","+N+")")}return function(C,T){var j=[],N=[];return C=l(C),T=l(T),w(C.translateX,C.translateY,T.translateX,T.translateY,j,N),b(C.rotate,T.rotate,j,N),y(C.skewX,T.skewX,j,N),x(C.scaleX,C.scaleY,T.scaleX,T.scaleY,j,N),C=T=null,function(F){for(var Q=-1,V=N.length,ee;++Q<V;)j[(ee=N[Q]).i]=ee.x(F);return j.join("")}}}var ZXt=bgt(VXt,"px, ","px)","deg)"),JXt=bgt(YXt,", ",")",")"),eUt=1e-12;function Hat(l){return((l=Math.exp(l))+1/l)/2}function tUt(l){return((l=Math.exp(l))-1/l)/2}function nUt(l){return((l=Math.exp(2*l))-1)/(l+1)}const iUt=function l(s,u,a){function g(w,b){var y=w[0],x=w[1],C=w[2],T=b[0],j=b[1],N=b[2],F=T-y,Q=j-x,V=F*F+Q*Q,ee,te;if(V<eUt)te=Math.log(N/C)/s,ee=function(_e){return[y+_e*F,x+_e*Q,C*Math.exp(s*_e*te)]};else{var le=Math.sqrt(V),Se=(N*N-C*C+a*V)/(2*C*u*le),be=(N*N-C*C-a*V)/(2*N*u*le),xe=Math.log(Math.sqrt(Se*Se+1)-Se),Me=Math.log(Math.sqrt(be*be+1)-be);te=(Me-xe)/s,ee=function(_e){var rt=_e*te,$e=Hat(xe),ut=C/(u*le)*($e*nUt(s*rt+xe)-tUt(xe));return[y+ut*F,x+ut*Q,C*$e/Hat(s*rt+xe)]}}return ee.duration=te*1e3*s/Math.SQRT2,ee}return g.rho=function(w){var b=Math.max(.001,+w),y=b*b,x=y*y;return l(b,y,x)},g}(Math.SQRT2,2,4);var uC=0,o$=0,WN=0,pgt=1e3,VG,c$,YG=0,c9=0,DV=0,x$=typeof performance=="object"&&performance.now?performance:Date,wgt=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(l){setTimeout(l,17)};function Dve(){return c9||(wgt(rUt),c9=x$.now()+DV)}function rUt(){c9=0}function ZG(){this._call=this._time=this._next=null}ZG.prototype=mgt.prototype={constructor:ZG,restart:function(l,s,u){if(typeof l!="function")throw new TypeError("callback is not a function");u=(u==null?Dve():+u)+(s==null?0:+s),!this._next&&c$!==this&&(c$?c$._next=this:VG=this,c$=this),this._call=l,this._time=u,p2e()},stop:function(){this._call&&(this._call=null,this._time=1/0,p2e())}};function mgt(l,s,u){var a=new ZG;return a.restart(l,s,u),a}function sUt(){Dve(),++uC;for(var l=VG,s;l;)(s=c9-l._time)>=0&&l._call.call(void 0,s),l=l._next;--uC}function zat(){c9=(YG=x$.now())+DV,uC=o$=0;try{sUt()}finally{uC=0,cUt(),c9=0}}function oUt(){var l=x$.now(),s=l-YG;s>pgt&&(DV-=s,YG=l)}function cUt(){for(var l,s=VG,u,a=1/0;s;)s._call?(a>s._time&&(a=s._time),l=s,s=s._next):(u=s._next,s._next=null,s=l?l._next=u:VG=u);c$=l,p2e(a)}function p2e(l){if(!uC){o$&&(o$=clearTimeout(o$));var s=l-c9;s>24?(l<1/0&&(o$=setTimeout(zat,l-x$.now()-DV)),WN&&(WN=clearInterval(WN))):(WN||(YG=x$.now(),WN=setInterval(oUt,pgt)),uC=1,wgt(zat))}}function Kat(l,s,u){var a=new ZG;return s=s==null?0:+s,a.restart(g=>{a.stop(),l(g+s)},s,u),a}var uUt=jV("start","end","cancel","interrupt"),lUt=[],vgt=0,Wat=1,w2e=2,jG=3,Xat=4,m2e=5,PG=6;function IV(l,s,u,a,g,w){var b=l.__transition;if(!b)l.__transition={};else if(u in b)return;fUt(l,u,{name:s,index:a,group:g,on:uUt,tween:lUt,time:w.time,delay:w.delay,duration:w.duration,ease:w.ease,timer:null,state:vgt})}function Ive(l,s){var u=kw(l,s);if(u.state>vgt)throw new Error("too late; already scheduled");return u}function k2(l,s){var u=kw(l,s);if(u.state>jG)throw new Error("too late; already running");return u}function kw(l,s){var u=l.__transition;if(!u||!(u=u[s]))throw new Error("transition not found");return u}function fUt(l,s,u){var a=l.__transition,g;a[s]=u,u.timer=mgt(w,0,u.time);function w(C){u.state=Wat,u.timer.restart(b,u.delay,u.time),u.delay<=C&&b(C-u.delay)}function b(C){var T,j,N,F;if(u.state!==Wat)return x();for(T in a)if(F=a[T],F.name===u.name){if(F.state===jG)return Kat(b);F.state===Xat?(F.state=PG,F.timer.stop(),F.on.call("interrupt",l,l.__data__,F.index,F.group),delete a[T]):+T<s&&(F.state=PG,F.timer.stop(),F.on.call("cancel",l,l.__data__,F.index,F.group),delete a[T])}if(Kat(function(){u.state===jG&&(u.state=Xat,u.timer.restart(y,u.delay,u.time),y(C))}),u.state=w2e,u.on.call("start",l,l.__data__,u.index,u.group),u.state===w2e){for(u.state=jG,g=new Array(N=u.tween.length),T=0,j=-1;T<N;++T)(F=u.tween[T].value.call(l,l.__data__,u.index,u.group))&&(g[++j]=F);g.length=j+1}}function y(C){for(var T=C<u.duration?u.ease.call(null,C/u.duration):(u.timer.restart(x),u.state=m2e,1),j=-1,N=g.length;++j<N;)g[j].call(l,T);u.state===m2e&&(u.on.call("end",l,l.__data__,u.index,u.group),x())}function x(){u.state=PG,u.timer.stop(),delete a[s];for(var C in a)return;delete l.__transition}}function DG(l,s){var u=l.__transition,a,g,w=!0,b;if(u){s=s==null?null:s+"";for(b in u){if((a=u[b]).name!==s){w=!1;continue}g=a.state>w2e&&a.state<m2e,a.state=PG,a.timer.stop(),a.on.call(g?"interrupt":"cancel",l,l.__data__,a.index,a.group),delete u[b]}w&&delete l.__transition}}function hUt(l){return this.each(function(){DG(this,l)})}function aUt(l,s){var u,a;return function(){var g=k2(this,l),w=g.tween;if(w!==u){a=u=w;for(var b=0,y=a.length;b<y;++b)if(a[b].name===s){a=a.slice(),a.splice(b,1);break}}g.tween=a}}function dUt(l,s,u){var a,g;if(typeof u!="function")throw new Error;return function(){var w=k2(this,l),b=w.tween;if(b!==a){g=(a=b).slice();for(var y={name:s,value:u},x=0,C=g.length;x<C;++x)if(g[x].name===s){g[x]=y;break}x===C&&g.push(y)}w.tween=g}}function gUt(l,s){var u=this._id;if(l+="",arguments.length<2){for(var a=kw(this.node(),u).tween,g=0,w=a.length,b;g<w;++g)if((b=a[g]).name===l)return b.value;return null}return this.each((s==null?aUt:dUt)(u,l,s))}function Nve(l,s,u){var a=l._id;return l.each(function(){var g=k2(this,a);(g.value||(g.value={}))[s]=u.apply(this,arguments)}),function(g){return kw(g,a).value[s]}}function ygt(l,s){var u;return(typeof s=="number"?M5:s instanceof S$?qat:(u=S$(s))?(s=u,qat):GXt)(l,s)}function bUt(l){return function(){this.removeAttribute(l)}}function pUt(l){return function(){this.removeAttributeNS(l.space,l.local)}}function wUt(l,s,u){var a,g=u+"",w;return function(){var b=this.getAttribute(l);return b===g?null:b===a?w:w=s(a=b,u)}}function mUt(l,s,u){var a,g=u+"",w;return function(){var b=this.getAttributeNS(l.space,l.local);return b===g?null:b===a?w:w=s(a=b,u)}}function vUt(l,s,u){var a,g,w;return function(){var b,y=u(this),x;return y==null?void this.removeAttribute(l):(b=this.getAttribute(l),x=y+"",b===x?null:b===a&&x===g?w:(g=x,w=s(a=b,y)))}}function yUt(l,s,u){var a,g,w;return function(){var b,y=u(this),x;return y==null?void this.removeAttributeNS(l.space,l.local):(b=this.getAttributeNS(l.space,l.local),x=y+"",b===x?null:b===a&&x===g?w:(g=x,w=s(a=b,y)))}}function OUt(l,s){var u=PV(l),a=u==="transform"?JXt:ygt;return this.attrTween(l,typeof s=="function"?(u.local?yUt:vUt)(u,a,Nve(this,"attr."+l,s)):s==null?(u.local?pUt:bUt)(u):(u.local?mUt:wUt)(u,a,s))}function kUt(l,s){return function(u){this.setAttribute(l,s.call(this,u))}}function SUt(l,s){return function(u){this.setAttributeNS(l.space,l.local,s.call(this,u))}}function xUt(l,s){var u,a;function g(){var w=s.apply(this,arguments);return w!==a&&(u=(a=w)&&SUt(l,w)),u}return g._value=s,g}function EUt(l,s){var u,a;function g(){var w=s.apply(this,arguments);return w!==a&&(u=(a=w)&&kUt(l,w)),u}return g._value=s,g}function CUt(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 a=PV(l);return this.tween(u,(a.local?xUt:EUt)(a,s))}function TUt(l,s){return function(){Ive(this,l).delay=+s.apply(this,arguments)}}function AUt(l,s){return s=+s,function(){Ive(this,l).delay=s}}function MUt(l){var s=this._id;return arguments.length?this.each((typeof l=="function"?TUt:AUt)(s,l)):kw(this.node(),s).delay}function jUt(l,s){return function(){k2(this,l).duration=+s.apply(this,arguments)}}function PUt(l,s){return s=+s,function(){k2(this,l).duration=s}}function DUt(l){var s=this._id;return arguments.length?this.each((typeof l=="function"?jUt:PUt)(s,l)):kw(this.node(),s).duration}function IUt(l,s){if(typeof s!="function")throw new Error;return function(){k2(this,l).ease=s}}function NUt(l){var s=this._id;return arguments.length?this.each(IUt(s,l)):kw(this.node(),s).ease}function $Ut(l,s){return function(){var u=s.apply(this,arguments);if(typeof u!="function")throw new Error;k2(this,l).ease=u}}function RUt(l){if(typeof l!="function")throw new Error;return this.each($Ut(this._id,l))}function LUt(l){typeof l!="function"&&(l=Z0t(l));for(var s=this._groups,u=s.length,a=new Array(u),g=0;g<u;++g)for(var w=s[g],b=w.length,y=a[g]=[],x,C=0;C<b;++C)(x=w[C])&&l.call(x,x.__data__,C,w)&&y.push(x);return new S3(a,this._parents,this._name,this._id)}function FUt(l){if(l._id!==this._id)throw new Error;for(var s=this._groups,u=l._groups,a=s.length,g=u.length,w=Math.min(a,g),b=new Array(a),y=0;y<w;++y)for(var x=s[y],C=u[y],T=x.length,j=b[y]=new Array(T),N,F=0;F<T;++F)(N=x[F]||C[F])&&(j[F]=N);for(;y<a;++y)b[y]=s[y];return new S3(b,this._parents,this._name,this._id)}function BUt(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 _Ut(l,s,u){var a,g,w=BUt(s)?Ive:k2;return function(){var b=w(this,l),y=b.on;y!==a&&(g=(a=y).copy()).on(s,u),b.on=g}}function qUt(l,s){var u=this._id;return arguments.length<2?kw(this.node(),u).on.on(l):this.each(_Ut(u,l,s))}function QUt(l){return function(){var s=this.parentNode;for(var u in this.__transition)if(+u!==l)return;s&&s.removeChild(this)}}function HUt(){return this.on("end.remove",QUt(this._id))}function zUt(l){var s=this._name,u=this._id;typeof l!="function"&&(l=Mve(l));for(var a=this._groups,g=a.length,w=new Array(g),b=0;b<g;++b)for(var y=a[b],x=y.length,C=w[b]=new Array(x),T,j,N=0;N<x;++N)(T=y[N])&&(j=l.call(T,T.__data__,N,y))&&("__data__"in T&&(j.__data__=T.__data__),C[N]=j,IV(C[N],s,u,N,C,kw(T,u)));return new S3(w,this._parents,s,u)}function KUt(l){var s=this._name,u=this._id;typeof l!="function"&&(l=Y0t(l));for(var a=this._groups,g=a.length,w=[],b=[],y=0;y<g;++y)for(var x=a[y],C=x.length,T,j=0;j<C;++j)if(T=x[j]){for(var N=l.call(T,T.__data__,j,x),F,Q=kw(T,u),V=0,ee=N.length;V<ee;++V)(F=N[V])&&IV(F,s,u,V,N,Q);w.push(N),b.push(T)}return new S3(w,b,s,u)}var WUt=X$.prototype.constructor;function XUt(){return new WUt(this._groups,this._parents)}function UUt(l,s){var u,a,g;return function(){var w=cC(this,l),b=(this.style.removeProperty(l),cC(this,l));return w===b?null:w===u&&b===a?g:g=s(u=w,a=b)}}function Ogt(l){return function(){this.style.removeProperty(l)}}function GUt(l,s,u){var a,g=u+"",w;return function(){var b=cC(this,l);return b===g?null:b===a?w:w=s(a=b,u)}}function VUt(l,s,u){var a,g,w;return function(){var b=cC(this,l),y=u(this),x=y+"";return y==null&&(x=y=(this.style.removeProperty(l),cC(this,l))),b===x?null:b===a&&x===g?w:(g=x,w=s(a=b,y))}}function YUt(l,s){var u,a,g,w="style."+s,b="end."+w,y;return function(){var x=k2(this,l),C=x.on,T=x.value[w]==null?y||(y=Ogt(s)):void 0;(C!==u||g!==T)&&(a=(u=C).copy()).on(b,g=T),x.on=a}}function ZUt(l,s,u){var a=(l+="")=="transform"?ZXt:ygt;return s==null?this.styleTween(l,UUt(l,a)).on("end.style."+l,Ogt(l)):typeof s=="function"?this.styleTween(l,VUt(l,a,Nve(this,"style."+l,s))).each(YUt(this._id,l)):this.styleTween(l,GUt(l,a,s),u).on("end.style."+l,null)}function JUt(l,s,u){return function(a){this.style.setProperty(l,s.call(this,a),u)}}function eGt(l,s,u){var a,g;function w(){var b=s.apply(this,arguments);return b!==g&&(a=(g=b)&&JUt(l,b,u)),a}return w._value=s,w}function tGt(l,s,u){var a="style."+(l+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(s==null)return this.tween(a,null);if(typeof s!="function")throw new Error;return this.tween(a,eGt(l,s,u??""))}function nGt(l){return function(){this.textContent=l}}function iGt(l){return function(){var s=l(this);this.textContent=s??""}}function rGt(l){return this.tween("text",typeof l=="function"?iGt(Nve(this,"text",l)):nGt(l==null?"":l+""))}function sGt(l){return function(s){this.textContent=l.call(this,s)}}function oGt(l){var s,u;function a(){var g=l.apply(this,arguments);return g!==u&&(s=(u=g)&&sGt(g)),s}return a._value=l,a}function cGt(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,oGt(l))}function uGt(){for(var l=this._name,s=this._id,u=kgt(),a=this._groups,g=a.length,w=0;w<g;++w)for(var b=a[w],y=b.length,x,C=0;C<y;++C)if(x=b[C]){var T=kw(x,s);IV(x,l,u,C,b,{time:T.time+T.delay+T.duration,delay:0,duration:T.duration,ease:T.ease})}return new S3(a,this._parents,l,u)}function lGt(){var l,s,u=this,a=u._id,g=u.size();return new Promise(function(w,b){var y={value:b},x={value:function(){--g===0&&w()}};u.each(function(){var C=k2(this,a),T=C.on;T!==l&&(s=(l=T).copy(),s._.cancel.push(y),s._.interrupt.push(y),s._.end.push(x)),C.on=s}),g===0&&w()})}var fGt=0;function S3(l,s,u,a){this._groups=l,this._parents=s,this._name=u,this._id=a}function kgt(){return++fGt}var d3=X$.prototype;S3.prototype={constructor:S3,select:zUt,selectAll:KUt,selectChild:d3.selectChild,selectChildren:d3.selectChildren,filter:LUt,merge:FUt,selection:XUt,transition:uGt,call:d3.call,nodes:d3.nodes,node:d3.node,size:d3.size,empty:d3.empty,each:d3.each,on:qUt,attr:OUt,attrTween:CUt,style:ZUt,styleTween:tGt,text:rGt,textTween:cGt,remove:HUt,tween:gUt,delay:MUt,duration:DUt,ease:NUt,easeVarying:RUt,end:lGt,[Symbol.iterator]:d3[Symbol.iterator]};function hGt(l){return((l*=2)<=1?l*l*l:(l-=2)*l*l+2)/2}var aGt={time:null,delay:0,duration:250,ease:hGt};function dGt(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 gGt(l){var s,u;l instanceof S3?(s=l._id,l=l._name):(s=kgt(),(u=aGt).time=Dve(),l=l==null?null:l+"");for(var a=this._groups,g=a.length,w=0;w<g;++w)for(var b=a[w],y=b.length,x,C=0;C<y;++C)(x=b[C])&&IV(x,l,s,C,b,u||dGt(x,s));return new S3(a,this._parents,l,s)}X$.prototype.interrupt=hUt;X$.prototype.transition=gGt;const YU=l=>()=>l;function bGt(l,{sourceEvent:s,target:u,transform:a,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:a,enumerable:!0,configurable:!0},_:{value:g}})}function O3(l,s,u){this.k=l,this.x=s,this.y=u}O3.prototype={constructor:O3,scale:function(l){return l===1?this:new O3(this.k*l,this.x,this.y)},translate:function(l,s){return l===0&s===0?this:new O3(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 F5=new O3(1,0,0);O3.prototype;function wme(l){l.stopImmediatePropagation()}function XN(l){l.preventDefault(),l.stopImmediatePropagation()}function pGt(l){return(!l.ctrlKey||l.type==="wheel")&&!l.button}function wGt(){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 Uat(){return this.__zoom||F5}function mGt(l){return-l.deltaY*(l.deltaMode===1?.05:l.deltaMode?1:.002)*(l.ctrlKey?10:1)}function vGt(){return navigator.maxTouchPoints||"ontouchstart"in this}function yGt(l,s,u){var a=l.invertX(s[0][0])-u[0][0],g=l.invertX(s[1][0])-u[1][0],w=l.invertY(s[0][1])-u[0][1],b=l.invertY(s[1][1])-u[1][1];return l.translate(g>a?(a+g)/2:Math.min(0,a)||Math.max(0,g),b>w?(w+b)/2:Math.min(0,w)||Math.max(0,b))}function OGt(){var l=pGt,s=wGt,u=yGt,a=mGt,g=vGt,w=[0,1/0],b=[[-1/0,-1/0],[1/0,1/0]],y=250,x=iUt,C=jV("start","zoom","end"),T,j,N,F=500,Q=150,V=0,ee=10;function te(ce){ce.property("__zoom",Uat).on("wheel.zoom",rt,{passive:!1}).on("mousedown.zoom",$e).on("dblclick.zoom",ut).filter(g).on("touchstart.zoom",st).on("touchmove.zoom",ht).on("touchend.zoom touchcancel.zoom",pt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}te.transform=function(ce,Ze,et,vt){var X=ce.selection?ce.selection():ce;X.property("__zoom",Uat),ce!==X?xe(ce,Ze,et,vt):X.interrupt().each(function(){Me(this,arguments).event(vt).start().zoom(null,typeof Ze=="function"?Ze.apply(this,arguments):Ze).end()})},te.scaleBy=function(ce,Ze,et,vt){te.scaleTo(ce,function(){var X=this.__zoom.k,nt=typeof Ze=="function"?Ze.apply(this,arguments):Ze;return X*nt},et,vt)},te.scaleTo=function(ce,Ze,et,vt){te.transform(ce,function(){var X=s.apply(this,arguments),nt=this.__zoom,Nt=et==null?be(X):typeof et=="function"?et.apply(this,arguments):et,Jt=nt.invert(Nt),Yt=typeof Ze=="function"?Ze.apply(this,arguments):Ze;return u(Se(le(nt,Yt),Nt,Jt),X,b)},et,vt)},te.translateBy=function(ce,Ze,et,vt){te.transform(ce,function(){return u(this.__zoom.translate(typeof Ze=="function"?Ze.apply(this,arguments):Ze,typeof et=="function"?et.apply(this,arguments):et),s.apply(this,arguments),b)},null,vt)},te.translateTo=function(ce,Ze,et,vt,X){te.transform(ce,function(){var nt=s.apply(this,arguments),Nt=this.__zoom,Jt=vt==null?be(nt):typeof vt=="function"?vt.apply(this,arguments):vt;return u(F5.translate(Jt[0],Jt[1]).scale(Nt.k).translate(typeof Ze=="function"?-Ze.apply(this,arguments):-Ze,typeof et=="function"?-et.apply(this,arguments):-et),nt,b)},vt,X)};function le(ce,Ze){return Ze=Math.max(w[0],Math.min(w[1],Ze)),Ze===ce.k?ce:new O3(Ze,ce.x,ce.y)}function Se(ce,Ze,et){var vt=Ze[0]-et[0]*ce.k,X=Ze[1]-et[1]*ce.k;return vt===ce.x&&X===ce.y?ce:new O3(ce.k,vt,X)}function be(ce){return[(+ce[0][0]+ +ce[1][0])/2,(+ce[0][1]+ +ce[1][1])/2]}function xe(ce,Ze,et,vt){ce.on("start.zoom",function(){Me(this,arguments).event(vt).start()}).on("interrupt.zoom end.zoom",function(){Me(this,arguments).event(vt).end()}).tween("zoom",function(){var X=this,nt=arguments,Nt=Me(X,nt).event(vt),Jt=s.apply(X,nt),Yt=et==null?be(Jt):typeof et=="function"?et.apply(X,nt):et,Nn=Math.max(Jt[1][0]-Jt[0][0],Jt[1][1]-Jt[0][1]),Ln=X.__zoom,Mi=typeof Ze=="function"?Ze.apply(X,nt):Ze,ar=x(Ln.invert(Yt).concat(Nn/Ln.k),Mi.invert(Yt).concat(Nn/Mi.k));return function(Dr){if(Dr===1)Dr=Mi;else{var Ys=ar(Dr),ps=Nn/Ys[2];Dr=new O3(ps,Yt[0]-Ys[0]*ps,Yt[1]-Ys[1]*ps)}Nt.zoom(null,Dr)}})}function Me(ce,Ze,et){return!et&&ce.__zooming||new _e(ce,Ze)}function _e(ce,Ze){this.that=ce,this.args=Ze,this.active=0,this.sourceEvent=null,this.extent=s.apply(ce,Ze),this.taps=0}_e.prototype={event:function(ce){return ce&&(this.sourceEvent=ce),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(ce,Ze){return this.mouse&&ce!=="mouse"&&(this.mouse[1]=Ze.invert(this.mouse[0])),this.touch0&&ce!=="touch"&&(this.touch0[1]=Ze.invert(this.touch0[0])),this.touch1&&ce!=="touch"&&(this.touch1[1]=Ze.invert(this.touch1[0])),this.that.__zoom=Ze,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(ce){var Ze=mw(this.that).datum();C.call(ce,this.that,new bGt(ce,{sourceEvent:this.sourceEvent,target:te,transform:this.that.__zoom,dispatch:C}),Ze)}};function rt(ce,...Ze){if(!l.apply(this,arguments))return;var et=Me(this,Ze).event(ce),vt=this.__zoom,X=Math.max(w[0],Math.min(w[1],vt.k*Math.pow(2,a.apply(this,arguments)))),nt=a2(ce);if(et.wheel)(et.mouse[0][0]!==nt[0]||et.mouse[0][1]!==nt[1])&&(et.mouse[1]=vt.invert(et.mouse[0]=nt)),clearTimeout(et.wheel);else{if(vt.k===X)return;et.mouse=[nt,vt.invert(nt)],DG(this),et.start()}XN(ce),et.wheel=setTimeout(Nt,Q),et.zoom("mouse",u(Se(le(vt,X),et.mouse[0],et.mouse[1]),et.extent,b));function Nt(){et.wheel=null,et.end()}}function $e(ce,...Ze){if(N||!l.apply(this,arguments))return;var et=ce.currentTarget,vt=Me(this,Ze,!0).event(ce),X=mw(ce.view).on("mousemove.zoom",Yt,!0).on("mouseup.zoom",Nn,!0),nt=a2(ce,et),Nt=ce.clientX,Jt=ce.clientY;ugt(ce.view),wme(ce),vt.mouse=[nt,this.__zoom.invert(nt)],DG(this),vt.start();function Yt(Ln){if(XN(Ln),!vt.moved){var Mi=Ln.clientX-Nt,ar=Ln.clientY-Jt;vt.moved=Mi*Mi+ar*ar>V}vt.event(Ln).zoom("mouse",u(Se(vt.that.__zoom,vt.mouse[0]=a2(Ln,et),vt.mouse[1]),vt.extent,b))}function Nn(Ln){X.on("mousemove.zoom mouseup.zoom",null),lgt(Ln.view,vt.moved),XN(Ln),vt.event(Ln).end()}}function ut(ce,...Ze){if(l.apply(this,arguments)){var et=this.__zoom,vt=a2(ce.changedTouches?ce.changedTouches[0]:ce,this),X=et.invert(vt),nt=et.k*(ce.shiftKey?.5:2),Nt=u(Se(le(et,nt),vt,X),s.apply(this,Ze),b);XN(ce),y>0?mw(this).transition().duration(y).call(xe,Nt,vt,ce):mw(this).call(te.transform,Nt,vt,ce)}}function st(ce,...Ze){if(l.apply(this,arguments)){var et=ce.touches,vt=et.length,X=Me(this,Ze,ce.changedTouches.length===vt).event(ce),nt,Nt,Jt,Yt;for(wme(ce),Nt=0;Nt<vt;++Nt)Jt=et[Nt],Yt=a2(Jt,this),Yt=[Yt,this.__zoom.invert(Yt),Jt.identifier],X.touch0?!X.touch1&&X.touch0[2]!==Yt[2]&&(X.touch1=Yt,X.taps=0):(X.touch0=Yt,nt=!0,X.taps=1+!!T);T&&(T=clearTimeout(T)),nt&&(X.taps<2&&(j=Yt[0],T=setTimeout(function(){T=null},F)),DG(this),X.start())}}function ht(ce,...Ze){if(this.__zooming){var et=Me(this,Ze).event(ce),vt=ce.changedTouches,X=vt.length,nt,Nt,Jt,Yt;for(XN(ce),nt=0;nt<X;++nt)Nt=vt[nt],Jt=a2(Nt,this),et.touch0&&et.touch0[2]===Nt.identifier?et.touch0[0]=Jt:et.touch1&&et.touch1[2]===Nt.identifier&&(et.touch1[0]=Jt);if(Nt=et.that.__zoom,et.touch1){var Nn=et.touch0[0],Ln=et.touch0[1],Mi=et.touch1[0],ar=et.touch1[1],Dr=(Dr=Mi[0]-Nn[0])*Dr+(Dr=Mi[1]-Nn[1])*Dr,Ys=(Ys=ar[0]-Ln[0])*Ys+(Ys=ar[1]-Ln[1])*Ys;Nt=le(Nt,Math.sqrt(Dr/Ys)),Jt=[(Nn[0]+Mi[0])/2,(Nn[1]+Mi[1])/2],Yt=[(Ln[0]+ar[0])/2,(Ln[1]+ar[1])/2]}else if(et.touch0)Jt=et.touch0[0],Yt=et.touch0[1];else return;et.zoom("touch",u(Se(Nt,Jt,Yt),et.extent,b))}}function pt(ce,...Ze){if(this.__zooming){var et=Me(this,Ze).event(ce),vt=ce.changedTouches,X=vt.length,nt,Nt;for(wme(ce),N&&clearTimeout(N),N=setTimeout(function(){N=null},F),nt=0;nt<X;++nt)Nt=vt[nt],et.touch0&&et.touch0[2]===Nt.identifier?delete et.touch0:et.touch1&&et.touch1[2]===Nt.identifier&&delete et.touch1;if(et.touch1&&!et.touch0&&(et.touch0=et.touch1,delete et.touch1),et.touch0)et.touch0[1]=this.__zoom.invert(et.touch0[0]);else if(et.end(),et.taps===2&&(Nt=a2(Nt,this),Math.hypot(j[0]-Nt[0],j[1]-Nt[1])<ee)){var Jt=mw(this).on("dblclick.zoom");Jt&&Jt.apply(this,arguments)}}}return te.wheelDelta=function(ce){return arguments.length?(a=typeof ce=="function"?ce:YU(+ce),te):a},te.filter=function(ce){return arguments.length?(l=typeof ce=="function"?ce:YU(!!ce),te):l},te.touchable=function(ce){return arguments.length?(g=typeof ce=="function"?ce:YU(!!ce),te):g},te.extent=function(ce){return arguments.length?(s=typeof ce=="function"?ce:YU([[+ce[0][0],+ce[0][1]],[+ce[1][0],+ce[1][1]]]),te):s},te.scaleExtent=function(ce){return arguments.length?(w[0]=+ce[0],w[1]=+ce[1],te):[w[0],w[1]]},te.translateExtent=function(ce){return arguments.length?(b[0][0]=+ce[0][0],b[1][0]=+ce[1][0],b[0][1]=+ce[0][1],b[1][1]=+ce[1][1],te):[[b[0][0],b[0][1]],[b[1][0],b[1][1]]]},te.constrain=function(ce){return arguments.length?(u=ce,te):u},te.duration=function(ce){return arguments.length?(y=+ce,te):y},te.interpolate=function(ce){return arguments.length?(x=ce,te):x},te.on=function(){var ce=C.on.apply(C,arguments);return ce===C?te:ce},te.clickDistance=function(ce){return arguments.length?(V=(ce=+ce)*ce,te):Math.sqrt(V)},te.tapDistance=function(ce){return arguments.length?(ee=+ce,te):ee},te}const NV=Ne.createContext(null),kGt=NV.Provider,x3={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,s)=>`Couldn't create edge for ${l?"target":"source"} handle id: "${l?s.targetHandle:s.sourceHandle}", edge id: ${s.id}.`,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.`},Sgt=x3.error001();function Xl(l,s){const u=Ne.useContext(NV);if(u===null)throw new Error(Sgt);return G0t(u,l,s)}const Sh=()=>{const l=Ne.useContext(NV);if(l===null)throw new Error(Sgt);return Ne.useMemo(()=>({getState:l.getState,setState:l.setState,subscribe:l.subscribe,destroy:l.destroy}),[l])},SGt=l=>l.userSelectionActive?"none":"all";function xGt({position:l,children:s,className:u,style:a,...g}){const w=Xl(SGt),b=`${l}`.split("-");return In.createElement("div",{className:Fb(["react-flow__panel",u,...b]),style:{...a,pointerEvents:w},...g},s)}function EGt({proOptions:l,position:s="bottom-right"}){return l!=null&&l.hideAttribution?null:In.createElement(xGt,{position:s,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://reactflow.dev/pro"},In.createElement("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution"},"React Flow"))}const CGt=({x:l,y:s,label:u,labelStyle:a={},labelShowBg:g=!0,labelBgStyle:w={},labelBgPadding:b=[2,4],labelBgBorderRadius:y=2,children:x,className:C,...T})=>{const j=Ne.useRef(null),[N,F]=Ne.useState({x:0,y:0,width:0,height:0}),Q=Fb(["react-flow__edge-textwrapper",C]);return Ne.useEffect(()=>{if(j.current){const V=j.current.getBBox();F({x:V.x,y:V.y,width:V.width,height:V.height})}},[u]),typeof u>"u"||!u?null:In.createElement("g",{transform:`translate(${l-N.width/2} ${s-N.height/2})`,className:Q,visibility:N.width?"visible":"hidden",...T},g&&In.createElement("rect",{width:N.width+2*b[0],x:-b[0],y:-b[1],height:N.height+2*b[1],className:"react-flow__edge-textbg",style:w,rx:y,ry:y}),In.createElement("text",{className:"react-flow__edge-text",y:N.height/2,dy:"0.3em",ref:j,style:a},u),x)};var TGt=Ne.memo(CGt);const $ve=l=>({width:l.offsetWidth,height:l.offsetHeight}),lC=(l,s=0,u=1)=>Math.min(Math.max(l,s),u),Rve=(l={x:0,y:0},s)=>({x:lC(l.x,s[0][0],s[1][0]),y:lC(l.y,s[0][1],s[1][1])}),Gat=(l,s,u)=>l<s?lC(Math.abs(l-s),1,50)/50:l>u?-lC(Math.abs(l-u),1,50)/50:0,xgt=(l,s)=>{const u=Gat(l.x,35,s.width-35)*20,a=Gat(l.y,35,s.height-35)*20;return[u,a]},Egt=l=>{var s;return((s=l.getRootNode)==null?void 0:s.call(l))||(window==null?void 0:window.document)},AGt=(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)}),Lve=({x:l,y:s,width:u,height:a})=>({x:l,y:s,x2:l+u,y2:s+a}),MGt=({x:l,y:s,x2:u,y2:a})=>({x:l,y:s,width:u-l,height:a-s}),Vat=l=>({...l.positionAbsolute||{x:0,y:0},width:l.width||0,height:l.height||0}),v2e=(l,s)=>{const u=Math.max(0,Math.min(l.x+l.width,s.x+s.width)-Math.max(l.x,s.x)),a=Math.max(0,Math.min(l.y+l.height,s.y+s.height)-Math.max(l.y,s.y));return Math.ceil(u*a)},jGt=l=>Db(l.width)&&Db(l.height)&&Db(l.x)&&Db(l.y),Db=l=>!isNaN(l)&&isFinite(l),vl=Symbol.for("internals"),Cgt=["Enter"," ","Escape"],PGt=(l,s)=>{},DGt=l=>"nativeEvent"in l;function y2e(l){var g,w;const s=DGt(l)?l.nativeEvent:l,u=((w=(g=s.composedPath)==null?void 0:g.call(s))==null?void 0:w[0])||l.target;return["INPUT","SELECT","TEXTAREA"].includes(u==null?void 0:u.nodeName)||(u==null?void 0:u.hasAttribute("contenteditable"))||!!(u!=null&&u.closest(".nokey"))}const Tgt=l=>"clientX"in l,B5=(l,s)=>{var w,b;const u=Tgt(l),a=u?l.clientX:(w=l.touches)==null?void 0:w[0].clientX,g=u?l.clientY:(b=l.touches)==null?void 0:b[0].clientY;return{x:a-((s==null?void 0:s.left)??0),y:g-((s==null?void 0:s.top)??0)}},JG=()=>{var l;return typeof navigator<"u"&&((l=navigator==null?void 0:navigator.userAgent)==null?void 0:l.indexOf("Mac"))>=0},G$=({id:l,path:s,labelX:u,labelY:a,label:g,labelStyle:w,labelShowBg:b,labelBgStyle:y,labelBgPadding:x,labelBgBorderRadius:C,style:T,markerEnd:j,markerStart:N,interactionWidth:F=20})=>In.createElement(In.Fragment,null,In.createElement("path",{id:l,style:T,d:s,fill:"none",className:"react-flow__edge-path",markerEnd:j,markerStart:N}),F&&In.createElement("path",{d:s,fill:"none",strokeOpacity:0,strokeWidth:F,className:"react-flow__edge-interaction"}),g&&Db(u)&&Db(a)?In.createElement(TGt,{x:u,y:a,label:g,labelStyle:w,labelShowBg:b,labelBgStyle:y,labelBgPadding:x,labelBgBorderRadius:C}):null);G$.displayName="BaseEdge";function UN(l,s,u){return u===void 0?u:a=>{const g=s().edges.find(w=>w.id===l);g&&u(a,{...g})}}function Agt({sourceX:l,sourceY:s,targetX:u,targetY:a}){const g=Math.abs(u-l)/2,w=u<l?u+g:u-g,b=Math.abs(a-s)/2,y=a<s?a+b:a-b;return[w,y,g,b]}function Mgt({sourceX:l,sourceY:s,targetX:u,targetY:a,sourceControlX:g,sourceControlY:w,targetControlX:b,targetControlY:y}){const x=l*.125+g*.375+b*.375+u*.125,C=s*.125+w*.375+y*.375+a*.125,T=Math.abs(x-l),j=Math.abs(C-s);return[x,C,T,j]}var u9;(function(l){l.Strict="strict",l.Loose="loose"})(u9||(u9={}));var e9;(function(l){l.Free="free",l.Vertical="vertical",l.Horizontal="horizontal"})(e9||(e9={}));var E$;(function(l){l.Partial="partial",l.Full="full"})(E$||(E$={}));var I5;(function(l){l.Bezier="default",l.Straight="straight",l.Step="step",l.SmoothStep="smoothstep",l.SimpleBezier="simplebezier"})(I5||(I5={}));var eV;(function(l){l.Arrow="arrow",l.ArrowClosed="arrowclosed"})(eV||(eV={}));var Ai;(function(l){l.Left="left",l.Top="top",l.Right="right",l.Bottom="bottom"})(Ai||(Ai={}));function Yat({pos:l,x1:s,y1:u,x2:a,y2:g}){return l===Ai.Left||l===Ai.Right?[.5*(s+a),u]:[s,.5*(u+g)]}function jgt({sourceX:l,sourceY:s,sourcePosition:u=Ai.Bottom,targetX:a,targetY:g,targetPosition:w=Ai.Top}){const[b,y]=Yat({pos:u,x1:l,y1:s,x2:a,y2:g}),[x,C]=Yat({pos:w,x1:a,y1:g,x2:l,y2:s}),[T,j,N,F]=Mgt({sourceX:l,sourceY:s,targetX:a,targetY:g,sourceControlX:b,sourceControlY:y,targetControlX:x,targetControlY:C});return[`M${l},${s} C${b},${y} ${x},${C} ${a},${g}`,T,j,N,F]}const Fve=Ne.memo(({sourceX:l,sourceY:s,targetX:u,targetY:a,sourcePosition:g=Ai.Bottom,targetPosition:w=Ai.Top,label:b,labelStyle:y,labelShowBg:x,labelBgStyle:C,labelBgPadding:T,labelBgBorderRadius:j,style:N,markerEnd:F,markerStart:Q,interactionWidth:V})=>{const[ee,te,le]=jgt({sourceX:l,sourceY:s,sourcePosition:g,targetX:u,targetY:a,targetPosition:w});return In.createElement(G$,{path:ee,labelX:te,labelY:le,label:b,labelStyle:y,labelShowBg:x,labelBgStyle:C,labelBgPadding:T,labelBgBorderRadius:j,style:N,markerEnd:F,markerStart:Q,interactionWidth:V})});Fve.displayName="SimpleBezierEdge";const Zat={[Ai.Left]:{x:-1,y:0},[Ai.Right]:{x:1,y:0},[Ai.Top]:{x:0,y:-1},[Ai.Bottom]:{x:0,y:1}},IGt=({source:l,sourcePosition:s=Ai.Bottom,target:u})=>s===Ai.Left||s===Ai.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},Jat=(l,s)=>Math.sqrt(Math.pow(s.x-l.x,2)+Math.pow(s.y-l.y,2));function NGt({source:l,sourcePosition:s=Ai.Bottom,target:u,targetPosition:a=Ai.Top,center:g,offset:w}){const b=Zat[s],y=Zat[a],x={x:l.x+b.x*w,y:l.y+b.y*w},C={x:u.x+y.x*w,y:u.y+y.y*w},T=IGt({source:x,sourcePosition:s,target:C}),j=T.x!==0?"x":"y",N=T[j];let F=[],Q,V;const ee={x:0,y:0},te={x:0,y:0},[le,Se,be,xe]=Agt({sourceX:l.x,sourceY:l.y,targetX:u.x,targetY:u.y});if(b[j]*y[j]===-1){Q=g.x??le,V=g.y??Se;const _e=[{x:Q,y:x.y},{x:Q,y:C.y}],rt=[{x:x.x,y:V},{x:C.x,y:V}];b[j]===N?F=j==="x"?_e:rt:F=j==="x"?rt:_e}else{const _e=[{x:x.x,y:C.y}],rt=[{x:C.x,y:x.y}];if(j==="x"?F=b.x===N?rt:_e:F=b.y===N?_e:rt,s===a){const pt=Math.abs(l[j]-u[j]);if(pt<=w){const ce=Math.min(w-1,w-pt);b[j]===N?ee[j]=(x[j]>l[j]?-1:1)*ce:te[j]=(C[j]>u[j]?-1:1)*ce}}if(s!==a){const pt=j==="x"?"y":"x",ce=b[j]===y[pt],Ze=x[pt]>C[pt],et=x[pt]<C[pt];(b[j]===1&&(!ce&&Ze||ce&&et)||b[j]!==1&&(!ce&&et||ce&&Ze))&&(F=j==="x"?_e:rt)}const $e={x:x.x+ee.x,y:x.y+ee.y},ut={x:C.x+te.x,y:C.y+te.y},st=Math.max(Math.abs($e.x-F[0].x),Math.abs(ut.x-F[0].x)),ht=Math.max(Math.abs($e.y-F[0].y),Math.abs(ut.y-F[0].y));st>=ht?(Q=($e.x+ut.x)/2,V=F[0].y):(Q=F[0].x,V=($e.y+ut.y)/2)}return[[l,{x:x.x+ee.x,y:x.y+ee.y},...F,{x:C.x+te.x,y:C.y+te.y},u],Q,V,be,xe]}function $Gt(l,s,u,a){const g=Math.min(Jat(l,s)/2,Jat(s,u)/2,a),{x:w,y:b}=s;if(l.x===w&&w===u.x||l.y===b&&b===u.y)return`L${w} ${b}`;if(l.y===b){const C=l.x<u.x?-1:1,T=l.y<u.y?1:-1;return`L ${w+g*C},${b}Q ${w},${b} ${w},${b+g*T}`}const y=l.x<u.x?1:-1,x=l.y<u.y?-1:1;return`L ${w},${b+g*x}Q ${w},${b} ${w+g*y},${b}`}function O2e({sourceX:l,sourceY:s,sourcePosition:u=Ai.Bottom,targetX:a,targetY:g,targetPosition:w=Ai.Top,borderRadius:b=5,centerX:y,centerY:x,offset:C=20}){const[T,j,N,F,Q]=NGt({source:{x:l,y:s},sourcePosition:u,target:{x:a,y:g},targetPosition:w,center:{x:y,y:x},offset:C});return[T.reduce((ee,te,le)=>{let Se="";return le>0&&le<T.length-1?Se=$Gt(T[le-1],te,T[le+1],b):Se=`${le===0?"M":"L"}${te.x} ${te.y}`,ee+=Se,ee},""),j,N,F,Q]}const $V=Ne.memo(({sourceX:l,sourceY:s,targetX:u,targetY:a,label:g,labelStyle:w,labelShowBg:b,labelBgStyle:y,labelBgPadding:x,labelBgBorderRadius:C,style:T,sourcePosition:j=Ai.Bottom,targetPosition:N=Ai.Top,markerEnd:F,markerStart:Q,pathOptions:V,interactionWidth:ee})=>{const[te,le,Se]=O2e({sourceX:l,sourceY:s,sourcePosition:j,targetX:u,targetY:a,targetPosition:N,borderRadius:V==null?void 0:V.borderRadius,offset:V==null?void 0:V.offset});return In.createElement(G$,{path:te,labelX:le,labelY:Se,label:g,labelStyle:w,labelShowBg:b,labelBgStyle:y,labelBgPadding:x,labelBgBorderRadius:C,style:T,markerEnd:F,markerStart:Q,interactionWidth:ee})});$V.displayName="SmoothStepEdge";const Bve=Ne.memo(l=>{var s;return In.createElement($V,{...l,pathOptions:Ne.useMemo(()=>{var u;return{borderRadius:0,offset:(u=l.pathOptions)==null?void 0:u.offset}},[(s=l.pathOptions)==null?void 0:s.offset])})});Bve.displayName="StepEdge";function RGt({sourceX:l,sourceY:s,targetX:u,targetY:a}){const[g,w,b,y]=Agt({sourceX:l,sourceY:s,targetX:u,targetY:a});return[`M ${l},${s}L ${u},${a}`,g,w,b,y]}const _ve=Ne.memo(({sourceX:l,sourceY:s,targetX:u,targetY:a,label:g,labelStyle:w,labelShowBg:b,labelBgStyle:y,labelBgPadding:x,labelBgBorderRadius:C,style:T,markerEnd:j,markerStart:N,interactionWidth:F})=>{const[Q,V,ee]=RGt({sourceX:l,sourceY:s,targetX:u,targetY:a});return In.createElement(G$,{path:Q,labelX:V,labelY:ee,label:g,labelStyle:w,labelShowBg:b,labelBgStyle:y,labelBgPadding:x,labelBgBorderRadius:C,style:T,markerEnd:j,markerStart:N,interactionWidth:F})});_ve.displayName="StraightEdge";function ZU(l,s){return l>=0?.5*l:s*25*Math.sqrt(-l)}function edt({pos:l,x1:s,y1:u,x2:a,y2:g,c:w}){switch(l){case Ai.Left:return[s-ZU(s-a,w),u];case Ai.Right:return[s+ZU(a-s,w),u];case Ai.Top:return[s,u-ZU(u-g,w)];case Ai.Bottom:return[s,u+ZU(g-u,w)]}}function Pgt({sourceX:l,sourceY:s,sourcePosition:u=Ai.Bottom,targetX:a,targetY:g,targetPosition:w=Ai.Top,curvature:b=.25}){const[y,x]=edt({pos:u,x1:l,y1:s,x2:a,y2:g,c:b}),[C,T]=edt({pos:w,x1:a,y1:g,x2:l,y2:s,c:b}),[j,N,F,Q]=Mgt({sourceX:l,sourceY:s,targetX:a,targetY:g,sourceControlX:y,sourceControlY:x,targetControlX:C,targetControlY:T});return[`M${l},${s} C${y},${x} ${C},${T} ${a},${g}`,j,N,F,Q]}const tV=Ne.memo(({sourceX:l,sourceY:s,targetX:u,targetY:a,sourcePosition:g=Ai.Bottom,targetPosition:w=Ai.Top,label:b,labelStyle:y,labelShowBg:x,labelBgStyle:C,labelBgPadding:T,labelBgBorderRadius:j,style:N,markerEnd:F,markerStart:Q,pathOptions:V,interactionWidth:ee})=>{const[te,le,Se]=Pgt({sourceX:l,sourceY:s,sourcePosition:g,targetX:u,targetY:a,targetPosition:w,curvature:V==null?void 0:V.curvature});return In.createElement(G$,{path:te,labelX:le,labelY:Se,label:b,labelStyle:y,labelShowBg:x,labelBgStyle:C,labelBgPadding:T,labelBgBorderRadius:j,style:N,markerEnd:F,markerStart:Q,interactionWidth:ee})});tV.displayName="BezierEdge";const qve=Ne.createContext(null),LGt=qve.Provider;qve.Consumer;const FGt=()=>Ne.useContext(qve),BGt=l=>"id"in l&&"source"in l&&"target"in l,_Gt=({source:l,sourceHandle:s,target:u,targetHandle:a})=>`reactflow__edge-${l}${s||""}-${u}${a||""}`,k2e=(l,s)=>typeof l>"u"?"":typeof l=="string"?l:`${s?`${s}__`:""}${Object.keys(l).sort().map(a=>`${a}=${l[a]}`).join("&")}`,qGt=(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)),QGt=(l,s)=>{if(!l.source||!l.target)return s;let u;return BGt(l)?u={...l}:u={...l,id:_Gt(l)},qGt(u,s)?s:s.concat(u)},S2e=({x:l,y:s},[u,a,g],w,[b,y])=>{const x={x:(l-u)/g,y:(s-a)/g};return w?{x:b*Math.round(x.x/b),y:y*Math.round(x.y/y)}:x},Dgt=({x:l,y:s},[u,a,g])=>({x:l*g+u,y:s*g+a}),JE=(l,s=[0,0])=>{if(!l)return{x:0,y:0,positionAbsolute:{x:0,y:0}};const u=(l.width??0)*s[0],a=(l.height??0)*s[1],g={x:l.position.x-u,y:l.position.y-a};return{...g,positionAbsolute:l.positionAbsolute?{x:l.positionAbsolute.x-u,y:l.positionAbsolute.y-a}:g}},Qve=(l,s=[0,0])=>{if(l.length===0)return{x:0,y:0,width:0,height:0};const u=l.reduce((a,g)=>{const{x:w,y:b}=JE(g,s).positionAbsolute;return AGt(a,Lve({x:w,y:b,width:g.width||0,height:g.height||0}))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return MGt(u)},Igt=(l,s,[u,a,g]=[0,0,1],w=!1,b=!1,y=[0,0])=>{const x={x:(s.x-u)/g,y:(s.y-a)/g,width:s.width/g,height:s.height/g},C=[];return l.forEach(T=>{const{width:j,height:N,selectable:F=!0,hidden:Q=!1}=T;if(b&&!F||Q)return!1;const{positionAbsolute:V}=JE(T,y),ee={x:V.x,y:V.y,width:j||0,height:N||0},te=v2e(x,ee),le=typeof j>"u"||typeof N>"u"||j===null||N===null,Se=w&&te>0,be=(j||0)*(N||0);(le||Se||te>=be||T.dragging)&&C.push(T)}),C},Ngt=(l,s)=>{const u=l.map(a=>a.id);return s.filter(a=>u.includes(a.source)||u.includes(a.target))},$gt=(l,s,u,a,g,w=.1)=>{const b=s/(l.width*(1+w)),y=u/(l.height*(1+w)),x=Math.min(b,y),C=lC(x,a,g),T=l.x+l.width/2,j=l.y+l.height/2,N=s/2-T*C,F=u/2-j*C;return{x:N,y:F,zoom:C}},U8=(l,s=0)=>l.transition().duration(s);function tdt(l,s,u,a){return(s[u]||[]).reduce((g,w)=>{var b,y;return`${l.id}-${w.id}-${u}`!==a&&g.push({id:w.id||null,type:u,nodeId:l.id,x:(((b=l.positionAbsolute)==null?void 0:b.x)??0)+w.x+w.width/2,y:(((y=l.positionAbsolute)==null?void 0:y.y)??0)+w.y+w.height/2}),g},[])}function HGt(l,s,u,a,g,w){const{x:b,y}=B5(l),C=s.elementsFromPoint(b,y).find(Q=>Q.classList.contains("react-flow__handle"));if(C){const Q=C.getAttribute("data-nodeid");if(Q){const V=Hve(void 0,C),ee=C.getAttribute("data-handleid"),te=w({nodeId:Q,id:ee,type:V});if(te){const le=g.find(Se=>Se.nodeId===Q&&Se.type===V&&Se.id===ee);return{handle:{id:ee,type:V,nodeId:Q,x:(le==null?void 0:le.x)||u.x,y:(le==null?void 0:le.y)||u.y},validHandleResult:te}}}}let T=[],j=1/0;if(g.forEach(Q=>{const V=Math.sqrt((Q.x-u.x)**2+(Q.y-u.y)**2);if(V<=a){const ee=w(Q);V<=j&&(V<j?T=[{handle:Q,validHandleResult:ee}]:V===j&&T.push({handle:Q,validHandleResult:ee}),j=V)}}),!T.length)return{handle:null,validHandleResult:Rgt()};if(T.length===1)return T[0];const N=T.some(({validHandleResult:Q})=>Q.isValid),F=T.some(({handle:Q})=>Q.type==="target");return T.find(({handle:Q,validHandleResult:V})=>F?Q.type==="target":N?V.isValid:!0)||T[0]}const zGt={source:null,target:null,sourceHandle:null,targetHandle:null},Rgt=()=>({handleDomNode:null,isValid:!1,connection:zGt,endHandle:null});function Lgt(l,s,u,a,g,w,b){const y=g==="target",x=b.querySelector(`.react-flow__handle[data-id="${l==null?void 0:l.nodeId}-${l==null?void 0:l.id}-${l==null?void 0:l.type}"]`),C={...Rgt(),handleDomNode:x};if(x){const T=Hve(void 0,x),j=x.getAttribute("data-nodeid"),N=x.getAttribute("data-handleid"),F=x.classList.contains("connectable"),Q=x.classList.contains("connectableend"),V={source:y?j:u,sourceHandle:y?N:a,target:y?u:j,targetHandle:y?a:N};C.connection=V,F&&Q&&(s===u9.Strict?y&&T==="source"||!y&&T==="target":j!==u||N!==a)&&(C.endHandle={nodeId:j,handleId:N,type:T},C.isValid=w(V))}return C}function KGt({nodes:l,nodeId:s,handleId:u,handleType:a}){return l.reduce((g,w)=>{if(w[vl]){const{handleBounds:b}=w[vl];let y=[],x=[];b&&(y=tdt(w,b,"source",`${s}-${u}-${a}`),x=tdt(w,b,"target",`${s}-${u}-${a}`)),g.push(...y,...x)}return g},[])}function Hve(l,s){return l||(s!=null&&s.classList.contains("target")?"target":s!=null&&s.classList.contains("source")?"source":null)}function mme(l){l==null||l.classList.remove("valid","connecting","react-flow__handle-valid","react-flow__handle-connecting")}function WGt(l,s){let u=null;return s?u="valid":l&&!s&&(u="invalid"),u}function Fgt({event:l,handleId:s,nodeId:u,onConnect:a,isTarget:g,getState:w,setState:b,isValidConnection:y,edgeUpdaterType:x,onReconnectEnd:C}){const T=Egt(l.target),{connectionMode:j,domNode:N,autoPanOnConnect:F,connectionRadius:Q,onConnectStart:V,panBy:ee,getNodes:te,cancelConnection:le}=w();let Se=0,be;const{x:xe,y:Me}=B5(l),_e=T==null?void 0:T.elementFromPoint(xe,Me),rt=Hve(x,_e),$e=N==null?void 0:N.getBoundingClientRect();if(!$e||!rt)return;let ut,st=B5(l,$e),ht=!1,pt=null,ce=!1,Ze=null;const et=KGt({nodes:te(),nodeId:u,handleId:s,handleType:rt}),vt=()=>{if(!F)return;const[Nt,Jt]=xgt(st,$e);ee({x:Nt,y:Jt}),Se=requestAnimationFrame(vt)};b({connectionPosition:st,connectionStatus:null,connectionNodeId:u,connectionHandleId:s,connectionHandleType:rt,connectionStartHandle:{nodeId:u,handleId:s,type:rt},connectionEndHandle:null}),V==null||V(l,{nodeId:u,handleId:s,handleType:rt});function X(Nt){const{transform:Jt}=w();st=B5(Nt,$e);const{handle:Yt,validHandleResult:Nn}=HGt(Nt,T,S2e(st,Jt,!1,[1,1]),Q,et,Ln=>Lgt(Ln,j,u,s,g?"target":"source",y,T));if(be=Yt,ht||(vt(),ht=!0),Ze=Nn.handleDomNode,pt=Nn.connection,ce=Nn.isValid,b({connectionPosition:be&&ce?Dgt({x:be.x,y:be.y},Jt):st,connectionStatus:WGt(!!be,ce),connectionEndHandle:Nn.endHandle}),!be&&!ce&&!Ze)return mme(ut);pt.source!==pt.target&&Ze&&(mme(ut),ut=Ze,Ze.classList.add("connecting","react-flow__handle-connecting"),Ze.classList.toggle("valid",ce),Ze.classList.toggle("react-flow__handle-valid",ce))}function nt(Nt){var Jt,Yt;(be||Ze)&&pt&&ce&&(a==null||a(pt)),(Yt=(Jt=w()).onConnectEnd)==null||Yt.call(Jt,Nt),x&&(C==null||C(Nt)),mme(ut),le(),cancelAnimationFrame(Se),ht=!1,ce=!1,pt=null,Ze=null,T.removeEventListener("mousemove",X),T.removeEventListener("mouseup",nt),T.removeEventListener("touchmove",X),T.removeEventListener("touchend",nt)}T.addEventListener("mousemove",X),T.addEventListener("mouseup",nt),T.addEventListener("touchmove",X),T.addEventListener("touchend",nt)}const ndt=()=>!0,XGt=l=>({connectionStartHandle:l.connectionStartHandle,connectOnClick:l.connectOnClick,noPanClassName:l.noPanClassName}),UGt=(l,s,u)=>a=>{const{connectionStartHandle:g,connectionEndHandle:w,connectionClickStartHandle:b}=a;return{connecting:(g==null?void 0:g.nodeId)===l&&(g==null?void 0:g.handleId)===s&&(g==null?void 0:g.type)===u||(w==null?void 0:w.nodeId)===l&&(w==null?void 0:w.handleId)===s&&(w==null?void 0:w.type)===u,clickConnecting:(b==null?void 0:b.nodeId)===l&&(b==null?void 0:b.handleId)===s&&(b==null?void 0:b.type)===u}},Bgt=Ne.forwardRef(({type:l="source",position:s=Ai.Top,isValidConnection:u,isConnectable:a=!0,isConnectableStart:g=!0,isConnectableEnd:w=!0,id:b,onConnect:y,children:x,className:C,onMouseDown:T,onTouchStart:j,...N},F)=>{var $e,ut;const Q=b||null,V=l==="target",ee=Sh(),te=FGt(),{connectOnClick:le,noPanClassName:Se}=Xl(XGt,F1),{connecting:be,clickConnecting:xe}=Xl(UGt(te,Q,l),F1);te||(ut=($e=ee.getState()).onError)==null||ut.call($e,"010",x3.error010());const Me=st=>{const{defaultEdgeOptions:ht,onConnect:pt,hasDefaultEdges:ce}=ee.getState(),Ze={...ht,...st};if(ce){const{edges:et,setEdges:vt}=ee.getState();vt(QGt(Ze,et))}pt==null||pt(Ze),y==null||y(Ze)},_e=st=>{if(!te)return;const ht=Tgt(st);g&&(ht&&st.button===0||!ht)&&Fgt({event:st,handleId:Q,nodeId:te,onConnect:Me,isTarget:V,getState:ee.getState,setState:ee.setState,isValidConnection:u||ee.getState().isValidConnection||ndt}),ht?T==null||T(st):j==null||j(st)},rt=st=>{const{onClickConnectStart:ht,onClickConnectEnd:pt,connectionClickStartHandle:ce,connectionMode:Ze,isValidConnection:et}=ee.getState();if(!te||!ce&&!g)return;if(!ce){ht==null||ht(st,{nodeId:te,handleId:Q,handleType:l}),ee.setState({connectionClickStartHandle:{nodeId:te,type:l,handleId:Q}});return}const vt=Egt(st.target),X=u||et||ndt,{connection:nt,isValid:Nt}=Lgt({nodeId:te,id:Q,type:l},Ze,ce.nodeId,ce.handleId||null,ce.type,X,vt);Nt&&Me(nt),pt==null||pt(st),ee.setState({connectionClickStartHandle:null})};return In.createElement("div",{"data-handleid":Q,"data-nodeid":te,"data-handlepos":s,"data-id":`${te}-${Q}-${l}`,className:Fb(["react-flow__handle",`react-flow__handle-${s}`,"nodrag",Se,C,{source:!V,target:V,connectable:a,connectablestart:g,connectableend:w,connecting:xe,connectionindicator:a&&(g&&!be||w&&be)}]),onMouseDown:_e,onTouchStart:_e,onClick:le?rt:void 0,ref:F,...N},x)});Bgt.displayName="Handle";var q5=Ne.memo(Bgt);const _gt=({data:l,isConnectable:s,targetPosition:u=Ai.Top,sourcePosition:a=Ai.Bottom})=>In.createElement(In.Fragment,null,In.createElement(q5,{type:"target",position:u,isConnectable:s}),l==null?void 0:l.label,In.createElement(q5,{type:"source",position:a,isConnectable:s}));_gt.displayName="DefaultNode";var x2e=Ne.memo(_gt);const qgt=({data:l,isConnectable:s,sourcePosition:u=Ai.Bottom})=>In.createElement(In.Fragment,null,l==null?void 0:l.label,In.createElement(q5,{type:"source",position:u,isConnectable:s}));qgt.displayName="InputNode";var Qgt=Ne.memo(qgt);const Hgt=({data:l,isConnectable:s,targetPosition:u=Ai.Top})=>In.createElement(In.Fragment,null,In.createElement(q5,{type:"target",position:u,isConnectable:s}),l==null?void 0:l.label);Hgt.displayName="OutputNode";var zgt=Ne.memo(Hgt);const zve=()=>null;zve.displayName="GroupNode";const GGt=l=>({selectedNodes:l.getNodes().filter(s=>s.selected),selectedEdges:l.edges.filter(s=>s.selected).map(s=>({...s}))}),JU=l=>l.id;function VGt(l,s){return F1(l.selectedNodes.map(JU),s.selectedNodes.map(JU))&&F1(l.selectedEdges.map(JU),s.selectedEdges.map(JU))}const Kgt=Ne.memo(({onSelectionChange:l})=>{const s=Sh(),{selectedNodes:u,selectedEdges:a}=Xl(GGt,VGt);return Ne.useEffect(()=>{const g={nodes:u,edges:a};l==null||l(g),s.getState().onSelectionChange.forEach(w=>w(g))},[u,a,l]),null});Kgt.displayName="SelectionListener";const YGt=l=>!!l.onSelectionChange;function ZGt({onSelectionChange:l}){const s=Xl(YGt);return l||s?In.createElement(Kgt,{onSelectionChange:l}):null}const JGt=l=>({setNodes:l.setNodes,setEdges:l.setEdges,setDefaultNodesAndEdges:l.setDefaultNodesAndEdges,setMinZoom:l.setMinZoom,setMaxZoom:l.setMaxZoom,setTranslateExtent:l.setTranslateExtent,setNodeExtent:l.setNodeExtent,reset:l.reset});function _E(l,s){Ne.useEffect(()=>{typeof l<"u"&&s(l)},[l])}function Ds(l,s,u){Ne.useEffect(()=>{typeof s<"u"&&u({[l]:s})},[s])}const eVt=({nodes:l,edges:s,defaultNodes:u,defaultEdges:a,onConnect:g,onConnectStart:w,onConnectEnd:b,onClickConnectStart:y,onClickConnectEnd:x,nodesDraggable:C,nodesConnectable:T,nodesFocusable:j,edgesFocusable:N,edgesUpdatable:F,elevateNodesOnSelect:Q,minZoom:V,maxZoom:ee,nodeExtent:te,onNodesChange:le,onEdgesChange:Se,elementsSelectable:be,connectionMode:xe,snapGrid:Me,snapToGrid:_e,translateExtent:rt,connectOnClick:$e,defaultEdgeOptions:ut,fitView:st,fitViewOptions:ht,onNodesDelete:pt,onEdgesDelete:ce,onNodeDrag:Ze,onNodeDragStart:et,onNodeDragStop:vt,onSelectionDrag:X,onSelectionDragStart:nt,onSelectionDragStop:Nt,noPanClassName:Jt,nodeOrigin:Yt,rfId:Nn,autoPanOnConnect:Ln,autoPanOnNodeDrag:Mi,onError:ar,connectionRadius:Dr,isValidConnection:Ys,nodeDragThreshold:ps})=>{const{setNodes:vr,setEdges:Lc,setDefaultNodesAndEdges:so,setMinZoom:Fo,setMaxZoom:Mo,setTranslateExtent:Xo,setNodeExtent:gf,reset:Qs}=Xl(JGt,F1),gi=Sh();return Ne.useEffect(()=>{const xc=a==null?void 0:a.map(Cd=>({...Cd,...ut}));return so(u,xc),()=>{Qs()}},[]),Ds("defaultEdgeOptions",ut,gi.setState),Ds("connectionMode",xe,gi.setState),Ds("onConnect",g,gi.setState),Ds("onConnectStart",w,gi.setState),Ds("onConnectEnd",b,gi.setState),Ds("onClickConnectStart",y,gi.setState),Ds("onClickConnectEnd",x,gi.setState),Ds("nodesDraggable",C,gi.setState),Ds("nodesConnectable",T,gi.setState),Ds("nodesFocusable",j,gi.setState),Ds("edgesFocusable",N,gi.setState),Ds("edgesUpdatable",F,gi.setState),Ds("elementsSelectable",be,gi.setState),Ds("elevateNodesOnSelect",Q,gi.setState),Ds("snapToGrid",_e,gi.setState),Ds("snapGrid",Me,gi.setState),Ds("onNodesChange",le,gi.setState),Ds("onEdgesChange",Se,gi.setState),Ds("connectOnClick",$e,gi.setState),Ds("fitViewOnInit",st,gi.setState),Ds("fitViewOnInitOptions",ht,gi.setState),Ds("onNodesDelete",pt,gi.setState),Ds("onEdgesDelete",ce,gi.setState),Ds("onNodeDrag",Ze,gi.setState),Ds("onNodeDragStart",et,gi.setState),Ds("onNodeDragStop",vt,gi.setState),Ds("onSelectionDrag",X,gi.setState),Ds("onSelectionDragStart",nt,gi.setState),Ds("onSelectionDragStop",Nt,gi.setState),Ds("noPanClassName",Jt,gi.setState),Ds("nodeOrigin",Yt,gi.setState),Ds("rfId",Nn,gi.setState),Ds("autoPanOnConnect",Ln,gi.setState),Ds("autoPanOnNodeDrag",Mi,gi.setState),Ds("onError",ar,gi.setState),Ds("connectionRadius",Dr,gi.setState),Ds("isValidConnection",Ys,gi.setState),Ds("nodeDragThreshold",ps,gi.setState),_E(l,vr),_E(s,Lc),_E(V,Fo),_E(ee,Mo),_E(rt,Xo),_E(te,gf),null},idt={display:"none"},tVt={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Wgt="react-flow__node-desc",Xgt="react-flow__edge-desc",nVt="react-flow__aria-live",iVt=l=>l.ariaLiveMessage;function rVt({rfId:l}){const s=Xl(iVt);return In.createElement("div",{id:`${nVt}-${l}`,"aria-live":"assertive","aria-atomic":"true",style:tVt},s)}function sVt({rfId:l,disableKeyboardA11y:s}){return In.createElement(In.Fragment,null,In.createElement("div",{id:`${Wgt}-${l}`,style:idt},"Press enter or space to select a node.",!s&&"You can then use the arrow keys to move the node around."," Press delete to remove it and escape to cancel."," "),In.createElement("div",{id:`${Xgt}-${l}`,style:idt},"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."),!s&&In.createElement(rVt,{rfId:l}))}var C$=(l=null,s={actInsideInputWithModifier:!0})=>{const[u,a]=Ne.useState(!1),g=Ne.useRef(!1),w=Ne.useRef(new Set([])),[b,y]=Ne.useMemo(()=>{if(l!==null){const C=(Array.isArray(l)?l:[l]).filter(j=>typeof j=="string").map(j=>j.split("+")),T=C.reduce((j,N)=>j.concat(...N),[]);return[C,T]}return[[],[]]},[l]);return Ne.useEffect(()=>{const x=typeof document<"u"?document:null,C=(s==null?void 0:s.target)||x;if(l!==null){const T=F=>{if(g.current=F.ctrlKey||F.metaKey||F.shiftKey,(!g.current||g.current&&!s.actInsideInputWithModifier)&&y2e(F))return!1;const V=sdt(F.code,y);w.current.add(F[V]),rdt(b,w.current,!1)&&(F.preventDefault(),a(!0))},j=F=>{if((!g.current||g.current&&!s.actInsideInputWithModifier)&&y2e(F))return!1;const V=sdt(F.code,y);rdt(b,w.current,!0)?(a(!1),w.current.clear()):w.current.delete(F[V]),F.key==="Meta"&&w.current.clear(),g.current=!1},N=()=>{w.current.clear(),a(!1)};return C==null||C.addEventListener("keydown",T),C==null||C.addEventListener("keyup",j),window.addEventListener("blur",N),()=>{C==null||C.removeEventListener("keydown",T),C==null||C.removeEventListener("keyup",j),window.removeEventListener("blur",N)}}},[l,a]),u};function rdt(l,s,u){return l.filter(a=>u||a.length===s.size).some(a=>a.every(g=>s.has(g)))}function sdt(l,s){return s.includes(l)?"code":"key"}function Ugt(l,s,u,a){var y,x;const g=l.parentNode||l.parentId;if(!g)return u;const w=s.get(g),b=JE(w,a);return Ugt(w,s,{x:(u.x??0)+b.x,y:(u.y??0)+b.y,z:(((y=w[vl])==null?void 0:y.z)??0)>(u.z??0)?((x=w[vl])==null?void 0:x.z)??0:u.z??0},a)}function Ggt(l,s,u){l.forEach(a=>{var w;const g=a.parentNode||a.parentId;if(g&&!l.has(g))throw new Error(`Parent node ${g} not found`);if(g||u!=null&&u[a.id]){const{x:b,y,z:x}=Ugt(a,l,{...a.position,z:((w=a[vl])==null?void 0:w.z)??0},s);a.positionAbsolute={x:b,y},a[vl].z=x,u!=null&&u[a.id]&&(a[vl].isParent=!0)}})}function vme(l,s,u,a){const g=new Map,w={},b=a?1e3:0;return l.forEach(y=>{var F;const x=(Db(y.zIndex)?y.zIndex:0)+(y.selected?b:0),C=s.get(y.id),T={...y,positionAbsolute:{x:y.position.x,y:y.position.y}},j=y.parentNode||y.parentId;j&&(w[j]=!0);const N=(C==null?void 0:C.type)&&(C==null?void 0:C.type)!==y.type;Object.defineProperty(T,vl,{enumerable:!1,value:{handleBounds:N||(F=C==null?void 0:C[vl])==null?void 0:F.handleBounds,z:x}}),g.set(y.id,T)}),Ggt(g,u,w),g}function Vgt(l,s={}){const{getNodes:u,width:a,height:g,minZoom:w,maxZoom:b,d3Zoom:y,d3Selection:x,fitViewOnInitDone:C,fitViewOnInit:T,nodeOrigin:j}=l(),N=s.initial&&!C&&T;if(y&&x&&(N||!s.initial)){const Q=u().filter(ee=>{var le;const te=s.includeHiddenNodes?ee.width&&ee.height:!ee.hidden;return(le=s.nodes)!=null&&le.length?te&&s.nodes.some(Se=>Se.id===ee.id):te}),V=Q.every(ee=>ee.width&&ee.height);if(Q.length>0&&V){const ee=Qve(Q,j),{x:te,y:le,zoom:Se}=$gt(ee,a,g,s.minZoom??w,s.maxZoom??b,s.padding??.1),be=F5.translate(te,le).scale(Se);return typeof s.duration=="number"&&s.duration>0?y.transform(U8(x,s.duration),be):y.transform(x,be),!0}}return!1}function oVt(l,s){return l.forEach(u=>{const a=s.get(u.id);a&&s.set(a.id,{...a,[vl]:a[vl],selected:u.selected})}),new Map(s)}function cVt(l,s){return s.map(u=>{const a=l.find(g=>g.id===u.id);return a&&(u.selected=a.selected),u})}function eG({changedNodes:l,changedEdges:s,get:u,set:a}){const{nodeInternals:g,edges:w,onNodesChange:b,onEdgesChange:y,hasDefaultNodes:x,hasDefaultEdges:C}=u();l!=null&&l.length&&(x&&a({nodeInternals:oVt(l,g)}),b==null||b(l)),s!=null&&s.length&&(C&&a({edges:cVt(s,w)}),y==null||y(s))}const qE=()=>{},uVt={zoomIn:qE,zoomOut:qE,zoomTo:qE,getZoom:()=>1,setViewport:qE,getViewport:()=>({x:0,y:0,zoom:1}),fitView:()=>!1,setCenter:qE,fitBounds:qE,project:l=>l,screenToFlowPosition:l=>l,flowToScreenPosition:l=>l,viewportInitialized:!1},lVt=l=>({d3Zoom:l.d3Zoom,d3Selection:l.d3Selection}),fVt=()=>{const l=Sh(),{d3Zoom:s,d3Selection:u}=Xl(lVt,F1);return Ne.useMemo(()=>u&&s?{zoomIn:g=>s.scaleBy(U8(u,g==null?void 0:g.duration),1.2),zoomOut:g=>s.scaleBy(U8(u,g==null?void 0:g.duration),1/1.2),zoomTo:(g,w)=>s.scaleTo(U8(u,w==null?void 0:w.duration),g),getZoom:()=>l.getState().transform[2],setViewport:(g,w)=>{const[b,y,x]=l.getState().transform,C=F5.translate(g.x??b,g.y??y).scale(g.zoom??x);s.transform(U8(u,w==null?void 0:w.duration),C)},getViewport:()=>{const[g,w,b]=l.getState().transform;return{x:g,y:w,zoom:b}},fitView:g=>Vgt(l.getState,g),setCenter:(g,w,b)=>{const{width:y,height:x,maxZoom:C}=l.getState(),T=typeof(b==null?void 0:b.zoom)<"u"?b.zoom:C,j=y/2-g*T,N=x/2-w*T,F=F5.translate(j,N).scale(T);s.transform(U8(u,b==null?void 0:b.duration),F)},fitBounds:(g,w)=>{const{width:b,height:y,minZoom:x,maxZoom:C}=l.getState(),{x:T,y:j,zoom:N}=$gt(g,b,y,x,C,(w==null?void 0:w.padding)??.1),F=F5.translate(T,j).scale(N);s.transform(U8(u,w==null?void 0:w.duration),F)},project:g=>{const{transform:w,snapToGrid:b,snapGrid:y}=l.getState();return console.warn("[DEPRECATED] `project` is deprecated. Instead use `screenToFlowPosition`. There is no need to subtract the react flow bounds anymore! https://reactflow.dev/api-reference/types/react-flow-instance#screen-to-flow-position"),S2e(g,w,b,y)},screenToFlowPosition:g=>{const{transform:w,snapToGrid:b,snapGrid:y,domNode:x}=l.getState();if(!x)return g;const{x:C,y:T}=x.getBoundingClientRect(),j={x:g.x-C,y:g.y-T};return S2e(j,w,b,y)},flowToScreenPosition:g=>{const{transform:w,domNode:b}=l.getState();if(!b)return g;const{x:y,y:x}=b.getBoundingClientRect(),C=Dgt(g,w);return{x:C.x+y,y:C.y+x}},viewportInitialized:!0}:uVt,[s,u])};function Ygt(){const l=fVt(),s=Sh(),u=Ne.useCallback(()=>s.getState().getNodes().map(V=>({...V})),[]),a=Ne.useCallback(V=>s.getState().nodeInternals.get(V),[]),g=Ne.useCallback(()=>{const{edges:V=[]}=s.getState();return V.map(ee=>({...ee}))},[]),w=Ne.useCallback(V=>{const{edges:ee=[]}=s.getState();return ee.find(te=>te.id===V)},[]),b=Ne.useCallback(V=>{const{getNodes:ee,setNodes:te,hasDefaultNodes:le,onNodesChange:Se}=s.getState(),be=ee(),xe=typeof V=="function"?V(be):V;if(le)te(xe);else if(Se){const Me=xe.length===0?be.map(_e=>({type:"remove",id:_e.id})):xe.map(_e=>({item:_e,type:"reset"}));Se(Me)}},[]),y=Ne.useCallback(V=>{const{edges:ee=[],setEdges:te,hasDefaultEdges:le,onEdgesChange:Se}=s.getState(),be=typeof V=="function"?V(ee):V;if(le)te(be);else if(Se){const xe=be.length===0?ee.map(Me=>({type:"remove",id:Me.id})):be.map(Me=>({item:Me,type:"reset"}));Se(xe)}},[]),x=Ne.useCallback(V=>{const ee=Array.isArray(V)?V:[V],{getNodes:te,setNodes:le,hasDefaultNodes:Se,onNodesChange:be}=s.getState();if(Se){const Me=[...te(),...ee];le(Me)}else if(be){const xe=ee.map(Me=>({item:Me,type:"add"}));be(xe)}},[]),C=Ne.useCallback(V=>{const ee=Array.isArray(V)?V:[V],{edges:te=[],setEdges:le,hasDefaultEdges:Se,onEdgesChange:be}=s.getState();if(Se)le([...te,...ee]);else if(be){const xe=ee.map(Me=>({item:Me,type:"add"}));be(xe)}},[]),T=Ne.useCallback(()=>{const{getNodes:V,edges:ee=[],transform:te}=s.getState(),[le,Se,be]=te;return{nodes:V().map(xe=>({...xe})),edges:ee.map(xe=>({...xe})),viewport:{x:le,y:Se,zoom:be}}},[]),j=Ne.useCallback(({nodes:V,edges:ee})=>{const{nodeInternals:te,getNodes:le,edges:Se,hasDefaultNodes:be,hasDefaultEdges:xe,onNodesDelete:Me,onEdgesDelete:_e,onNodesChange:rt,onEdgesChange:$e}=s.getState(),ut=(V||[]).map(Ze=>Ze.id),st=(ee||[]).map(Ze=>Ze.id),ht=le().reduce((Ze,et)=>{const vt=et.parentNode||et.parentId,X=!ut.includes(et.id)&&vt&&Ze.find(Nt=>Nt.id===vt);return(typeof et.deletable=="boolean"?et.deletable:!0)&&(ut.includes(et.id)||X)&&Ze.push(et),Ze},[]),pt=Se.filter(Ze=>typeof Ze.deletable=="boolean"?Ze.deletable:!0),ce=pt.filter(Ze=>st.includes(Ze.id));if(ht||ce){const Ze=Ngt(ht,pt),et=[...ce,...Ze],vt=et.reduce((X,nt)=>(X.includes(nt.id)||X.push(nt.id),X),[]);if((xe||be)&&(xe&&s.setState({edges:Se.filter(X=>!vt.includes(X.id))}),be&&(ht.forEach(X=>{te.delete(X.id)}),s.setState({nodeInternals:new Map(te)}))),vt.length>0&&(_e==null||_e(et),$e&&$e(vt.map(X=>({id:X,type:"remove"})))),ht.length>0&&(Me==null||Me(ht),rt)){const X=ht.map(nt=>({id:nt.id,type:"remove"}));rt(X)}}},[]),N=Ne.useCallback(V=>{const ee=jGt(V),te=ee?null:s.getState().nodeInternals.get(V.id);return!ee&&!te?[null,null,ee]:[ee?V:Vat(te),te,ee]},[]),F=Ne.useCallback((V,ee=!0,te)=>{const[le,Se,be]=N(V);return le?(te||s.getState().getNodes()).filter(xe=>{if(!be&&(xe.id===Se.id||!xe.positionAbsolute))return!1;const Me=Vat(xe),_e=v2e(Me,le);return ee&&_e>0||_e>=le.width*le.height}):[]},[]),Q=Ne.useCallback((V,ee,te=!0)=>{const[le]=N(V);if(!le)return!1;const Se=v2e(le,ee);return te&&Se>0||Se>=le.width*le.height},[]);return Ne.useMemo(()=>({...l,getNodes:u,getNode:a,getEdges:g,getEdge:w,setNodes:b,setEdges:y,addNodes:x,addEdges:C,toObject:T,deleteElements:j,getIntersectingNodes:F,isNodeIntersecting:Q}),[l,u,a,g,w,b,y,x,C,T,j,F,Q])}const hVt={actInsideInputWithModifier:!1};var aVt=({deleteKeyCode:l,multiSelectionKeyCode:s})=>{const u=Sh(),{deleteElements:a}=Ygt(),g=C$(l,hVt),w=C$(s);Ne.useEffect(()=>{if(g){const{edges:b,getNodes:y}=u.getState(),x=y().filter(T=>T.selected),C=b.filter(T=>T.selected);a({nodes:x,edges:C}),u.setState({nodesSelectionActive:!1})}},[g]),Ne.useEffect(()=>{u.setState({multiSelectionActive:w})},[w])};function dVt(l){const s=Sh();Ne.useEffect(()=>{let u;const a=()=>{var w,b;if(!l.current)return;const g=$ve(l.current);(g.height===0||g.width===0)&&((b=(w=s.getState()).onError)==null||b.call(w,"004",x3.error004())),s.setState({width:g.width||500,height:g.height||500})};return a(),window.addEventListener("resize",a),l.current&&(u=new ResizeObserver(()=>a()),u.observe(l.current)),()=>{window.removeEventListener("resize",a),u&&l.current&&u.unobserve(l.current)}},[])}const Kve={position:"absolute",width:"100%",height:"100%",top:0,left:0},gVt=(l,s)=>l.x!==s.x||l.y!==s.y||l.zoom!==s.k,tG=l=>({x:l.x,y:l.y,zoom:l.k}),QE=(l,s)=>l.target.closest(`.${s}`),odt=(l,s)=>s===2&&Array.isArray(l)&&l.includes(2),cdt=l=>{const s=l.ctrlKey&&JG()?10:1;return-l.deltaY*(l.deltaMode===1?.05:l.deltaMode?1:.002)*s},bVt=l=>({d3Zoom:l.d3Zoom,d3Selection:l.d3Selection,d3ZoomHandler:l.d3ZoomHandler,userSelectionActive:l.userSelectionActive}),pVt=({onMove:l,onMoveStart:s,onMoveEnd:u,onPaneContextMenu:a,zoomOnScroll:g=!0,zoomOnPinch:w=!0,panOnScroll:b=!1,panOnScrollSpeed:y=.5,panOnScrollMode:x=e9.Free,zoomOnDoubleClick:C=!0,elementsSelectable:T,panOnDrag:j=!0,defaultViewport:N,translateExtent:F,minZoom:Q,maxZoom:V,zoomActivationKeyCode:ee,preventScrolling:te=!0,children:le,noWheelClassName:Se,noPanClassName:be})=>{const xe=Ne.useRef(),Me=Sh(),_e=Ne.useRef(!1),rt=Ne.useRef(!1),$e=Ne.useRef(null),ut=Ne.useRef({x:0,y:0,zoom:0}),{d3Zoom:st,d3Selection:ht,d3ZoomHandler:pt,userSelectionActive:ce}=Xl(bVt,F1),Ze=C$(ee),et=Ne.useRef(0),vt=Ne.useRef(!1),X=Ne.useRef();return dVt($e),Ne.useEffect(()=>{if($e.current){const nt=$e.current.getBoundingClientRect(),Nt=OGt().scaleExtent([Q,V]).translateExtent(F),Jt=mw($e.current).call(Nt),Yt=F5.translate(N.x,N.y).scale(lC(N.zoom,Q,V)),Nn=[[0,0],[nt.width,nt.height]],Ln=Nt.constrain()(Yt,Nn,F);Nt.transform(Jt,Ln),Nt.wheelDelta(cdt),Me.setState({d3Zoom:Nt,d3Selection:Jt,d3ZoomHandler:Jt.on("wheel.zoom"),transform:[Ln.x,Ln.y,Ln.k],domNode:$e.current.closest(".react-flow")})}},[]),Ne.useEffect(()=>{ht&&st&&(b&&!Ze&&!ce?ht.on("wheel.zoom",nt=>{if(QE(nt,Se))return!1;nt.preventDefault(),nt.stopImmediatePropagation();const Nt=ht.property("__zoom").k||1;if(nt.ctrlKey&&w){const Ys=a2(nt),ps=cdt(nt),vr=Nt*Math.pow(2,ps);st.scaleTo(ht,vr,Ys,nt);return}const Jt=nt.deltaMode===1?20:1;let Yt=x===e9.Vertical?0:nt.deltaX*Jt,Nn=x===e9.Horizontal?0:nt.deltaY*Jt;!JG()&&nt.shiftKey&&x!==e9.Vertical&&(Yt=nt.deltaY*Jt,Nn=0),st.translateBy(ht,-(Yt/Nt)*y,-(Nn/Nt)*y,{internal:!0});const Ln=tG(ht.property("__zoom")),{onViewportChangeStart:Mi,onViewportChange:ar,onViewportChangeEnd:Dr}=Me.getState();clearTimeout(X.current),vt.current||(vt.current=!0,s==null||s(nt,Ln),Mi==null||Mi(Ln)),vt.current&&(l==null||l(nt,Ln),ar==null||ar(Ln),X.current=setTimeout(()=>{u==null||u(nt,Ln),Dr==null||Dr(Ln),vt.current=!1},150))},{passive:!1}):typeof pt<"u"&&ht.on("wheel.zoom",function(nt,Nt){if(!te&&nt.type==="wheel"&&!nt.ctrlKey||QE(nt,Se))return null;nt.preventDefault(),pt.call(this,nt,Nt)},{passive:!1}))},[ce,b,x,ht,st,pt,Ze,w,te,Se,s,l,u]),Ne.useEffect(()=>{st&&st.on("start",nt=>{var Yt,Nn;if(!nt.sourceEvent||nt.sourceEvent.internal)return null;et.current=(Yt=nt.sourceEvent)==null?void 0:Yt.button;const{onViewportChangeStart:Nt}=Me.getState(),Jt=tG(nt.transform);_e.current=!0,ut.current=Jt,((Nn=nt.sourceEvent)==null?void 0:Nn.type)==="mousedown"&&Me.setState({paneDragging:!0}),Nt==null||Nt(Jt),s==null||s(nt.sourceEvent,Jt)})},[st,s]),Ne.useEffect(()=>{st&&(ce&&!_e.current?st.on("zoom",null):ce||st.on("zoom",nt=>{var Jt;const{onViewportChange:Nt}=Me.getState();if(Me.setState({transform:[nt.transform.x,nt.transform.y,nt.transform.k]}),rt.current=!!(a&&odt(j,et.current??0)),(l||Nt)&&!((Jt=nt.sourceEvent)!=null&&Jt.internal)){const Yt=tG(nt.transform);Nt==null||Nt(Yt),l==null||l(nt.sourceEvent,Yt)}}))},[ce,st,l,j,a]),Ne.useEffect(()=>{st&&st.on("end",nt=>{if(!nt.sourceEvent||nt.sourceEvent.internal)return null;const{onViewportChangeEnd:Nt}=Me.getState();if(_e.current=!1,Me.setState({paneDragging:!1}),a&&odt(j,et.current??0)&&!rt.current&&a(nt.sourceEvent),rt.current=!1,(u||Nt)&&gVt(ut.current,nt.transform)){const Jt=tG(nt.transform);ut.current=Jt,clearTimeout(xe.current),xe.current=setTimeout(()=>{Nt==null||Nt(Jt),u==null||u(nt.sourceEvent,Jt)},b?150:0)}})},[st,b,j,u,a]),Ne.useEffect(()=>{st&&st.filter(nt=>{const Nt=Ze||g,Jt=w&&nt.ctrlKey;if((j===!0||Array.isArray(j)&&j.includes(1))&&nt.button===1&&nt.type==="mousedown"&&(QE(nt,"react-flow__node")||QE(nt,"react-flow__edge")))return!0;if(!j&&!Nt&&!b&&!C&&!w||ce||!C&&nt.type==="dblclick"||QE(nt,Se)&&nt.type==="wheel"||QE(nt,be)&&(nt.type!=="wheel"||b&&nt.type==="wheel"&&!Ze)||!w&&nt.ctrlKey&&nt.type==="wheel"||!Nt&&!b&&!Jt&&nt.type==="wheel"||!j&&(nt.type==="mousedown"||nt.type==="touchstart")||Array.isArray(j)&&!j.includes(nt.button)&&nt.type==="mousedown")return!1;const Yt=Array.isArray(j)&&j.includes(nt.button)||!nt.button||nt.button<=1;return(!nt.ctrlKey||nt.type==="wheel")&&Yt})},[ce,st,g,w,b,C,j,T,Ze]),In.createElement("div",{className:"react-flow__renderer",ref:$e,style:Kve},le)},wVt=l=>({userSelectionActive:l.userSelectionActive,userSelectionRect:l.userSelectionRect});function mVt(){const{userSelectionActive:l,userSelectionRect:s}=Xl(wVt,F1);return l&&s?In.createElement("div",{className:"react-flow__selection react-flow__container",style:{width:s.width,height:s.height,transform:`translate(${s.x}px, ${s.y}px)`}}):null}function udt(l,s){const u=s.parentNode||s.parentId,a=l.find(g=>g.id===u);if(a){const g=s.position.x+s.width-a.width,w=s.position.y+s.height-a.height;if(g>0||w>0||s.position.x<0||s.position.y<0){if(a.style={...a.style},a.style.width=a.style.width??a.width,a.style.height=a.style.height??a.height,g>0&&(a.style.width+=g),w>0&&(a.style.height+=w),s.position.x<0){const b=Math.abs(s.position.x);a.position.x=a.position.x-b,a.style.width+=b,s.position.x=0}if(s.position.y<0){const b=Math.abs(s.position.y);a.position.y=a.position.y-b,a.style.height+=b,s.position.y=0}a.width=a.style.width,a.height=a.style.height}}}function Zgt(l,s){if(l.some(a=>a.type==="reset"))return l.filter(a=>a.type==="reset").map(a=>a.item);const u=l.filter(a=>a.type==="add").map(a=>a.item);return s.reduce((a,g)=>{const w=l.filter(y=>y.id===g.id);if(w.length===0)return a.push(g),a;const b={...g};for(const y of w)if(y)switch(y.type){case"select":{b.selected=y.selected;break}case"position":{typeof y.position<"u"&&(b.position=y.position),typeof y.positionAbsolute<"u"&&(b.positionAbsolute=y.positionAbsolute),typeof y.dragging<"u"&&(b.dragging=y.dragging),b.expandParent&&udt(a,b);break}case"dimensions":{typeof y.dimensions<"u"&&(b.width=y.dimensions.width,b.height=y.dimensions.height),typeof y.updateStyle<"u"&&(b.style={...b.style||{},...y.dimensions}),typeof y.resizing=="boolean"&&(b.resizing=y.resizing),b.expandParent&&udt(a,b);break}case"remove":return a}return a.push(b),a},u)}function vVt(l,s){return Zgt(l,s)}function Fcn(l,s){return Zgt(l,s)}const j5=(l,s)=>({id:l,type:"select",selected:s});function UE(l,s){return l.reduce((u,a)=>{const g=s.includes(a.id);return!a.selected&&g?(a.selected=!0,u.push(j5(a.id,!0))):a.selected&&!g&&(a.selected=!1,u.push(j5(a.id,!1))),u},[])}const yme=(l,s)=>u=>{u.target===s.current&&(l==null||l(u))},yVt=l=>({userSelectionActive:l.userSelectionActive,elementsSelectable:l.elementsSelectable,dragging:l.paneDragging}),Jgt=Ne.memo(({isSelecting:l,selectionMode:s=E$.Full,panOnDrag:u,onSelectionStart:a,onSelectionEnd:g,onPaneClick:w,onPaneContextMenu:b,onPaneScroll:y,onPaneMouseEnter:x,onPaneMouseMove:C,onPaneMouseLeave:T,children:j})=>{const N=Ne.useRef(null),F=Sh(),Q=Ne.useRef(0),V=Ne.useRef(0),ee=Ne.useRef(),{userSelectionActive:te,elementsSelectable:le,dragging:Se}=Xl(yVt,F1),be=()=>{F.setState({userSelectionActive:!1,userSelectionRect:null}),Q.current=0,V.current=0},xe=pt=>{w==null||w(pt),F.getState().resetSelectedElements(),F.setState({nodesSelectionActive:!1})},Me=pt=>{if(Array.isArray(u)&&(u!=null&&u.includes(2))){pt.preventDefault();return}b==null||b(pt)},_e=y?pt=>y(pt):void 0,rt=pt=>{const{resetSelectedElements:ce,domNode:Ze}=F.getState();if(ee.current=Ze==null?void 0:Ze.getBoundingClientRect(),!le||!l||pt.button!==0||pt.target!==N.current||!ee.current)return;const{x:et,y:vt}=B5(pt,ee.current);ce(),F.setState({userSelectionRect:{width:0,height:0,startX:et,startY:vt,x:et,y:vt}}),a==null||a(pt)},$e=pt=>{const{userSelectionRect:ce,nodeInternals:Ze,edges:et,transform:vt,onNodesChange:X,onEdgesChange:nt,nodeOrigin:Nt,getNodes:Jt}=F.getState();if(!l||!ee.current||!ce)return;F.setState({userSelectionActive:!0,nodesSelectionActive:!1});const Yt=B5(pt,ee.current),Nn=ce.startX??0,Ln=ce.startY??0,Mi={...ce,x:Yt.x<Nn?Yt.x:Nn,y:Yt.y<Ln?Yt.y:Ln,width:Math.abs(Yt.x-Nn),height:Math.abs(Yt.y-Ln)},ar=Jt(),Dr=Igt(Ze,Mi,vt,s===E$.Partial,!0,Nt),Ys=Ngt(Dr,et).map(vr=>vr.id),ps=Dr.map(vr=>vr.id);if(Q.current!==ps.length){Q.current=ps.length;const vr=UE(ar,ps);vr.length&&(X==null||X(vr))}if(V.current!==Ys.length){V.current=Ys.length;const vr=UE(et,Ys);vr.length&&(nt==null||nt(vr))}F.setState({userSelectionRect:Mi})},ut=pt=>{if(pt.button!==0)return;const{userSelectionRect:ce}=F.getState();!te&&ce&&pt.target===N.current&&(xe==null||xe(pt)),F.setState({nodesSelectionActive:Q.current>0}),be(),g==null||g(pt)},st=pt=>{te&&(F.setState({nodesSelectionActive:Q.current>0}),g==null||g(pt)),be()},ht=le&&(l||te);return In.createElement("div",{className:Fb(["react-flow__pane",{dragging:Se,selection:l}]),onClick:ht?void 0:yme(xe,N),onContextMenu:yme(Me,N),onWheel:yme(_e,N),onMouseEnter:ht?void 0:x,onMouseDown:ht?rt:void 0,onMouseMove:ht?$e:C,onMouseUp:ht?ut:void 0,onMouseLeave:ht?st:T,ref:N,style:Kve},j,In.createElement(mVt,null))});Jgt.displayName="Pane";function ebt(l,s){const u=l.parentNode||l.parentId;if(!u)return!1;const a=s.get(u);return a?a.selected?!0:ebt(a,s):!1}function ldt(l,s,u){let a=l;do{if(a!=null&&a.matches(s))return!0;if(a===u.current)return!1;a=a.parentElement}while(a);return!1}function OVt(l,s,u,a){return Array.from(l.values()).filter(g=>(g.selected||g.id===a)&&(!g.parentNode||g.parentId||!ebt(g,l))&&(g.draggable||s&&typeof g.draggable>"u")).map(g=>{var w,b;return{id:g.id,position:g.position||{x:0,y:0},positionAbsolute:g.positionAbsolute||{x:0,y:0},distance:{x:u.x-(((w=g.positionAbsolute)==null?void 0:w.x)??0),y:u.y-(((b=g.positionAbsolute)==null?void 0:b.y)??0)},delta:{x:0,y:0},extent:g.extent,parentNode:g.parentNode||g.parentId,parentId:g.parentNode||g.parentId,width:g.width,height:g.height,expandParent:g.expandParent}})}function kVt(l,s){return!s||s==="parent"?s:[s[0],[s[1][0]-(l.width||0),s[1][1]-(l.height||0)]]}function tbt(l,s,u,a,g=[0,0],w){const b=kVt(l,l.extent||a);let y=b;const x=l.parentNode||l.parentId;if(l.extent==="parent"&&!l.expandParent)if(x&&l.width&&l.height){const j=u.get(x),{x:N,y:F}=JE(j,g).positionAbsolute;y=j&&Db(N)&&Db(F)&&Db(j.width)&&Db(j.height)?[[N+l.width*g[0],F+l.height*g[1]],[N+j.width-l.width+l.width*g[0],F+j.height-l.height+l.height*g[1]]]:y}else w==null||w("005",x3.error005()),y=b;else if(l.extent&&x&&l.extent!=="parent"){const j=u.get(x),{x:N,y:F}=JE(j,g).positionAbsolute;y=[[l.extent[0][0]+N,l.extent[0][1]+F],[l.extent[1][0]+N,l.extent[1][1]+F]]}let C={x:0,y:0};if(x){const j=u.get(x);C=JE(j,g).positionAbsolute}const T=y&&y!=="parent"?Rve(s,y):s;return{position:{x:T.x-C.x,y:T.y-C.y},positionAbsolute:T}}function Ome({nodeId:l,dragItems:s,nodeInternals:u}){const a=s.map(g=>({...u.get(g.id),position:g.position,positionAbsolute:g.positionAbsolute}));return[l?a.find(g=>g.id===l):a[0],a]}const fdt=(l,s,u,a)=>{const g=s.querySelectorAll(l);if(!g||!g.length)return null;const w=Array.from(g),b=s.getBoundingClientRect(),y={x:b.width*a[0],y:b.height*a[1]};return w.map(x=>{const C=x.getBoundingClientRect();return{id:x.getAttribute("data-handleid"),position:x.getAttribute("data-handlepos"),x:(C.left-b.left-y.x)/u,y:(C.top-b.top-y.y)/u,...$ve(x)}})};function GN(l,s,u){return u===void 0?u:a=>{const g=s().nodeInternals.get(l);g&&u(a,{...g})}}function E2e({id:l,store:s,unselect:u=!1,nodeRef:a}){const{addSelectedNodes:g,unselectNodesAndEdges:w,multiSelectionActive:b,nodeInternals:y,onError:x}=s.getState(),C=y.get(l);if(!C){x==null||x("012",x3.error012(l));return}s.setState({nodesSelectionActive:!1}),C.selected?(u||C.selected&&b)&&(w({nodes:[C],edges:[]}),requestAnimationFrame(()=>{var T;return(T=a==null?void 0:a.current)==null?void 0:T.blur()})):g([l])}function SVt(){const l=Sh();return Ne.useCallback(({sourceEvent:u})=>{const{transform:a,snapGrid:g,snapToGrid:w}=l.getState(),b=u.touches?u.touches[0].clientX:u.clientX,y=u.touches?u.touches[0].clientY:u.clientY,x={x:(b-a[0])/a[2],y:(y-a[1])/a[2]};return{xSnapped:w?g[0]*Math.round(x.x/g[0]):x.x,ySnapped:w?g[1]*Math.round(x.y/g[1]):x.y,...x}},[])}function kme(l){return(s,u,a)=>l==null?void 0:l(s,a)}function nbt({nodeRef:l,disabled:s=!1,noDragClassName:u,handleSelector:a,nodeId:g,isSelectable:w,selectNodesOnDrag:b}){const y=Sh(),[x,C]=Ne.useState(!1),T=Ne.useRef([]),j=Ne.useRef({x:null,y:null}),N=Ne.useRef(0),F=Ne.useRef(null),Q=Ne.useRef({x:0,y:0}),V=Ne.useRef(null),ee=Ne.useRef(!1),te=Ne.useRef(!1),le=Ne.useRef(!1),Se=SVt();return Ne.useEffect(()=>{if(l!=null&&l.current){const be=mw(l.current),xe=({x:rt,y:$e})=>{const{nodeInternals:ut,onNodeDrag:st,onSelectionDrag:ht,updateNodePositions:pt,nodeExtent:ce,snapGrid:Ze,snapToGrid:et,nodeOrigin:vt,onError:X}=y.getState();j.current={x:rt,y:$e};let nt=!1,Nt={x:0,y:0,x2:0,y2:0};if(T.current.length>1&&ce){const Yt=Qve(T.current,vt);Nt=Lve(Yt)}if(T.current=T.current.map(Yt=>{const Nn={x:rt-Yt.distance.x,y:$e-Yt.distance.y};et&&(Nn.x=Ze[0]*Math.round(Nn.x/Ze[0]),Nn.y=Ze[1]*Math.round(Nn.y/Ze[1]));const Ln=[[ce[0][0],ce[0][1]],[ce[1][0],ce[1][1]]];T.current.length>1&&ce&&!Yt.extent&&(Ln[0][0]=Yt.positionAbsolute.x-Nt.x+ce[0][0],Ln[1][0]=Yt.positionAbsolute.x+(Yt.width??0)-Nt.x2+ce[1][0],Ln[0][1]=Yt.positionAbsolute.y-Nt.y+ce[0][1],Ln[1][1]=Yt.positionAbsolute.y+(Yt.height??0)-Nt.y2+ce[1][1]);const Mi=tbt(Yt,Nn,ut,Ln,vt,X);return nt=nt||Yt.position.x!==Mi.position.x||Yt.position.y!==Mi.position.y,Yt.position=Mi.position,Yt.positionAbsolute=Mi.positionAbsolute,Yt}),!nt)return;pt(T.current,!0,!0),C(!0);const Jt=g?st:kme(ht);if(Jt&&V.current){const[Yt,Nn]=Ome({nodeId:g,dragItems:T.current,nodeInternals:ut});Jt(V.current,Yt,Nn)}},Me=()=>{if(!F.current)return;const[rt,$e]=xgt(Q.current,F.current);if(rt!==0||$e!==0){const{transform:ut,panBy:st}=y.getState();j.current.x=(j.current.x??0)-rt/ut[2],j.current.y=(j.current.y??0)-$e/ut[2],st({x:rt,y:$e})&&xe(j.current)}N.current=requestAnimationFrame(Me)},_e=rt=>{var vt;const{nodeInternals:$e,multiSelectionActive:ut,nodesDraggable:st,unselectNodesAndEdges:ht,onNodeDragStart:pt,onSelectionDragStart:ce}=y.getState();te.current=!0;const Ze=g?pt:kme(ce);(!b||!w)&&!ut&&g&&((vt=$e.get(g))!=null&&vt.selected||ht()),g&&w&&b&&E2e({id:g,store:y,nodeRef:l});const et=Se(rt);if(j.current=et,T.current=OVt($e,st,et,g),Ze&&T.current){const[X,nt]=Ome({nodeId:g,dragItems:T.current,nodeInternals:$e});Ze(rt.sourceEvent,X,nt)}};if(s)be.on(".drag",null);else{const rt=PXt().on("start",$e=>{const{domNode:ut,nodeDragThreshold:st}=y.getState();st===0&&_e($e),le.current=!1;const ht=Se($e);j.current=ht,F.current=(ut==null?void 0:ut.getBoundingClientRect())||null,Q.current=B5($e.sourceEvent,F.current)}).on("drag",$e=>{var pt,ce;const ut=Se($e),{autoPanOnNodeDrag:st,nodeDragThreshold:ht}=y.getState();if($e.sourceEvent.type==="touchmove"&&$e.sourceEvent.touches.length>1&&(le.current=!0),!le.current){if(!ee.current&&te.current&&st&&(ee.current=!0,Me()),!te.current){const Ze=ut.xSnapped-(((pt=j==null?void 0:j.current)==null?void 0:pt.x)??0),et=ut.ySnapped-(((ce=j==null?void 0:j.current)==null?void 0:ce.y)??0);Math.sqrt(Ze*Ze+et*et)>ht&&_e($e)}(j.current.x!==ut.xSnapped||j.current.y!==ut.ySnapped)&&T.current&&te.current&&(V.current=$e.sourceEvent,Q.current=B5($e.sourceEvent,F.current),xe(ut))}}).on("end",$e=>{if(!(!te.current||le.current)&&(C(!1),ee.current=!1,te.current=!1,cancelAnimationFrame(N.current),T.current)){const{updateNodePositions:ut,nodeInternals:st,onNodeDragStop:ht,onSelectionDragStop:pt}=y.getState(),ce=g?ht:kme(pt);if(ut(T.current,!1,!1),ce){const[Ze,et]=Ome({nodeId:g,dragItems:T.current,nodeInternals:st});ce($e.sourceEvent,Ze,et)}}}).filter($e=>{const ut=$e.target;return!$e.button&&(!u||!ldt(ut,`.${u}`,l))&&(!a||ldt(ut,a,l))});return be.call(rt),()=>{be.on(".drag",null)}}}},[l,s,u,a,w,y,g,b,Se]),x}function ibt(){const l=Sh();return Ne.useCallback(u=>{const{nodeInternals:a,nodeExtent:g,updateNodePositions:w,getNodes:b,snapToGrid:y,snapGrid:x,onError:C,nodesDraggable:T}=l.getState(),j=b().filter(le=>le.selected&&(le.draggable||T&&typeof le.draggable>"u")),N=y?x[0]:5,F=y?x[1]:5,Q=u.isShiftPressed?4:1,V=u.x*N*Q,ee=u.y*F*Q,te=j.map(le=>{if(le.positionAbsolute){const Se={x:le.positionAbsolute.x+V,y:le.positionAbsolute.y+ee};y&&(Se.x=x[0]*Math.round(Se.x/x[0]),Se.y=x[1]*Math.round(Se.y/x[1]));const{positionAbsolute:be,position:xe}=tbt(le,Se,a,g,void 0,C);le.position=xe,le.positionAbsolute=be}return le});w(te,!0,!1)},[])}const eC={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};var VN=l=>{const s=({id:u,type:a,data:g,xPos:w,yPos:b,xPosOrigin:y,yPosOrigin:x,selected:C,onClick:T,onMouseEnter:j,onMouseMove:N,onMouseLeave:F,onContextMenu:Q,onDoubleClick:V,style:ee,className:te,isDraggable:le,isSelectable:Se,isConnectable:be,isFocusable:xe,selectNodesOnDrag:Me,sourcePosition:_e,targetPosition:rt,hidden:$e,resizeObserver:ut,dragHandle:st,zIndex:ht,isParent:pt,noDragClassName:ce,noPanClassName:Ze,initialized:et,disableKeyboardA11y:vt,ariaLabel:X,rfId:nt,hasHandleBounds:Nt})=>{const Jt=Sh(),Yt=Ne.useRef(null),Nn=Ne.useRef(null),Ln=Ne.useRef(_e),Mi=Ne.useRef(rt),ar=Ne.useRef(a),Dr=Se||le||T||j||N||F,Ys=ibt(),ps=GN(u,Jt.getState,j),vr=GN(u,Jt.getState,N),Lc=GN(u,Jt.getState,F),so=GN(u,Jt.getState,Q),Fo=GN(u,Jt.getState,V),Mo=Qs=>{const{nodeDragThreshold:gi}=Jt.getState();if(Se&&(!Me||!le||gi>0)&&E2e({id:u,store:Jt,nodeRef:Yt}),T){const xc=Jt.getState().nodeInternals.get(u);xc&&T(Qs,{...xc})}},Xo=Qs=>{if(!y2e(Qs)&&!vt)if(Cgt.includes(Qs.key)&&Se){const gi=Qs.key==="Escape";E2e({id:u,store:Jt,unselect:gi,nodeRef:Yt})}else le&&C&&Object.prototype.hasOwnProperty.call(eC,Qs.key)&&(Jt.setState({ariaLiveMessage:`Moved selected node ${Qs.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~w}, y: ${~~b}`}),Ys({x:eC[Qs.key].x,y:eC[Qs.key].y,isShiftPressed:Qs.shiftKey}))};Ne.useEffect(()=>()=>{Nn.current&&(ut==null||ut.unobserve(Nn.current),Nn.current=null)},[]),Ne.useEffect(()=>{if(Yt.current&&!$e){const Qs=Yt.current;(!et||!Nt||Nn.current!==Qs)&&(Nn.current&&(ut==null||ut.unobserve(Nn.current)),ut==null||ut.observe(Qs),Nn.current=Qs)}},[$e,et,Nt]),Ne.useEffect(()=>{const Qs=ar.current!==a,gi=Ln.current!==_e,xc=Mi.current!==rt;Yt.current&&(Qs||gi||xc)&&(Qs&&(ar.current=a),gi&&(Ln.current=_e),xc&&(Mi.current=rt),Jt.getState().updateNodeDimensions([{id:u,nodeElement:Yt.current,forceUpdate:!0}]))},[u,a,_e,rt]);const gf=nbt({nodeRef:Yt,disabled:$e||!le,noDragClassName:ce,handleSelector:st,nodeId:u,isSelectable:Se,selectNodesOnDrag:Me});return $e?null:In.createElement("div",{className:Fb(["react-flow__node",`react-flow__node-${a}`,{[Ze]:le},te,{selected:C,selectable:Se,parent:pt,dragging:gf}]),ref:Yt,style:{zIndex:ht,transform:`translate(${y}px,${x}px)`,pointerEvents:Dr?"all":"none",visibility:et?"visible":"hidden",...ee},"data-id":u,"data-testid":`rf__node-${u}`,onMouseEnter:ps,onMouseMove:vr,onMouseLeave:Lc,onContextMenu:so,onClick:Mo,onDoubleClick:Fo,onKeyDown:xe?Xo:void 0,tabIndex:xe?0:void 0,role:xe?"button":void 0,"aria-describedby":vt?void 0:`${Wgt}-${nt}`,"aria-label":X},In.createElement(LGt,{value:u},In.createElement(l,{id:u,data:g,type:a,xPos:w,yPos:b,selected:C,isConnectable:be,sourcePosition:_e,targetPosition:rt,dragging:gf,dragHandle:st,zIndex:ht})))};return s.displayName="NodeWrapper",Ne.memo(s)};const xVt=l=>{const s=l.getNodes().filter(u=>u.selected);return{...Qve(s,l.nodeOrigin),transformString:`translate(${l.transform[0]}px,${l.transform[1]}px) scale(${l.transform[2]})`,userSelectionActive:l.userSelectionActive}};function EVt({onSelectionContextMenu:l,noPanClassName:s,disableKeyboardA11y:u}){const a=Sh(),{width:g,height:w,x:b,y,transformString:x,userSelectionActive:C}=Xl(xVt,F1),T=ibt(),j=Ne.useRef(null);if(Ne.useEffect(()=>{var Q;u||(Q=j.current)==null||Q.focus({preventScroll:!0})},[u]),nbt({nodeRef:j}),C||!g||!w)return null;const N=l?Q=>{const V=a.getState().getNodes().filter(ee=>ee.selected);l(Q,V)}:void 0,F=Q=>{Object.prototype.hasOwnProperty.call(eC,Q.key)&&T({x:eC[Q.key].x,y:eC[Q.key].y,isShiftPressed:Q.shiftKey})};return In.createElement("div",{className:Fb(["react-flow__nodesselection","react-flow__container",s]),style:{transform:x}},In.createElement("div",{ref:j,className:"react-flow__nodesselection-rect",onContextMenu:N,tabIndex:u?void 0:-1,onKeyDown:u?void 0:F,style:{width:g,height:w,top:y,left:b}}))}var CVt=Ne.memo(EVt);const TVt=l=>l.nodesSelectionActive,rbt=({children:l,onPaneClick:s,onPaneMouseEnter:u,onPaneMouseMove:a,onPaneMouseLeave:g,onPaneContextMenu:w,onPaneScroll:b,deleteKeyCode:y,onMove:x,onMoveStart:C,onMoveEnd:T,selectionKeyCode:j,selectionOnDrag:N,selectionMode:F,onSelectionStart:Q,onSelectionEnd:V,multiSelectionKeyCode:ee,panActivationKeyCode:te,zoomActivationKeyCode:le,elementsSelectable:Se,zoomOnScroll:be,zoomOnPinch:xe,panOnScroll:Me,panOnScrollSpeed:_e,panOnScrollMode:rt,zoomOnDoubleClick:$e,panOnDrag:ut,defaultViewport:st,translateExtent:ht,minZoom:pt,maxZoom:ce,preventScrolling:Ze,onSelectionContextMenu:et,noWheelClassName:vt,noPanClassName:X,disableKeyboardA11y:nt})=>{const Nt=Xl(TVt),Jt=C$(j),Yt=C$(te),Nn=Yt||ut,Ln=Yt||Me,Mi=Jt||N&&Nn!==!0;return aVt({deleteKeyCode:y,multiSelectionKeyCode:ee}),In.createElement(pVt,{onMove:x,onMoveStart:C,onMoveEnd:T,onPaneContextMenu:w,elementsSelectable:Se,zoomOnScroll:be,zoomOnPinch:xe,panOnScroll:Ln,panOnScrollSpeed:_e,panOnScrollMode:rt,zoomOnDoubleClick:$e,panOnDrag:!Jt&&Nn,defaultViewport:st,translateExtent:ht,minZoom:pt,maxZoom:ce,zoomActivationKeyCode:le,preventScrolling:Ze,noWheelClassName:vt,noPanClassName:X},In.createElement(Jgt,{onSelectionStart:Q,onSelectionEnd:V,onPaneClick:s,onPaneMouseEnter:u,onPaneMouseMove:a,onPaneMouseLeave:g,onPaneContextMenu:w,onPaneScroll:b,panOnDrag:Nn,isSelecting:!!Mi,selectionMode:F},l,Nt&&In.createElement(CVt,{onSelectionContextMenu:et,noPanClassName:X,disableKeyboardA11y:nt})))};rbt.displayName="FlowRenderer";var AVt=Ne.memo(rbt);function MVt(l){return Xl(Ne.useCallback(u=>l?Igt(u.nodeInternals,{x:0,y:0,width:u.width,height:u.height},u.transform,!0):u.getNodes(),[l]))}function jVt(l){const s={input:VN(l.input||Qgt),default:VN(l.default||x2e),output:VN(l.output||zgt),group:VN(l.group||zve)},u={},a=Object.keys(l).filter(g=>!["input","default","output","group"].includes(g)).reduce((g,w)=>(g[w]=VN(l[w]||x2e),g),u);return{...s,...a}}const PVt=({x:l,y:s,width:u,height:a,origin:g})=>!u||!a?{x:l,y:s}:g[0]<0||g[1]<0||g[0]>1||g[1]>1?{x:l,y:s}:{x:l-u*g[0],y:s-a*g[1]},DVt=l=>({nodesDraggable:l.nodesDraggable,nodesConnectable:l.nodesConnectable,nodesFocusable:l.nodesFocusable,elementsSelectable:l.elementsSelectable,updateNodeDimensions:l.updateNodeDimensions,onError:l.onError}),sbt=l=>{const{nodesDraggable:s,nodesConnectable:u,nodesFocusable:a,elementsSelectable:g,updateNodeDimensions:w,onError:b}=Xl(DVt,F1),y=MVt(l.onlyRenderVisibleElements),x=Ne.useRef(),C=Ne.useMemo(()=>{if(typeof ResizeObserver>"u")return null;const T=new ResizeObserver(j=>{const N=j.map(F=>({id:F.target.getAttribute("data-id"),nodeElement:F.target,forceUpdate:!0}));w(N)});return x.current=T,T},[]);return Ne.useEffect(()=>()=>{var T;(T=x==null?void 0:x.current)==null||T.disconnect()},[]),In.createElement("div",{className:"react-flow__nodes",style:Kve},y.map(T=>{var xe,Me,_e;let j=T.type||"default";l.nodeTypes[j]||(b==null||b("003",x3.error003(j)),j="default");const N=l.nodeTypes[j]||l.nodeTypes.default,F=!!(T.draggable||s&&typeof T.draggable>"u"),Q=!!(T.selectable||g&&typeof T.selectable>"u"),V=!!(T.connectable||u&&typeof T.connectable>"u"),ee=!!(T.focusable||a&&typeof T.focusable>"u"),te=l.nodeExtent?Rve(T.positionAbsolute,l.nodeExtent):T.positionAbsolute,le=(te==null?void 0:te.x)??0,Se=(te==null?void 0:te.y)??0,be=PVt({x:le,y:Se,width:T.width??0,height:T.height??0,origin:l.nodeOrigin});return In.createElement(N,{key:T.id,id:T.id,className:T.className,style:T.style,type:j,data:T.data,sourcePosition:T.sourcePosition||Ai.Bottom,targetPosition:T.targetPosition||Ai.Top,hidden:T.hidden,xPos:le,yPos:Se,xPosOrigin:be.x,yPosOrigin:be.y,selectNodesOnDrag:l.selectNodesOnDrag,onClick:l.onNodeClick,onMouseEnter:l.onNodeMouseEnter,onMouseMove:l.onNodeMouseMove,onMouseLeave:l.onNodeMouseLeave,onContextMenu:l.onNodeContextMenu,onDoubleClick:l.onNodeDoubleClick,selected:!!T.selected,isDraggable:F,isSelectable:Q,isConnectable:V,isFocusable:ee,resizeObserver:C,dragHandle:T.dragHandle,zIndex:((xe=T[vl])==null?void 0:xe.z)??0,isParent:!!((Me=T[vl])!=null&&Me.isParent),noDragClassName:l.noDragClassName,noPanClassName:l.noPanClassName,initialized:!!T.width&&!!T.height,rfId:l.rfId,disableKeyboardA11y:l.disableKeyboardA11y,ariaLabel:T.ariaLabel,hasHandleBounds:!!((_e=T[vl])!=null&&_e.handleBounds)})}))};sbt.displayName="NodeRenderer";var IVt=Ne.memo(sbt);const NVt=(l,s,u)=>u===Ai.Left?l-s:u===Ai.Right?l+s:l,$Vt=(l,s,u)=>u===Ai.Top?l-s:u===Ai.Bottom?l+s:l,hdt="react-flow__edgeupdater",adt=({position:l,centerX:s,centerY:u,radius:a=10,onMouseDown:g,onMouseEnter:w,onMouseOut:b,type:y})=>In.createElement("circle",{onMouseDown:g,onMouseEnter:w,onMouseOut:b,className:Fb([hdt,`${hdt}-${y}`]),cx:NVt(s,a,l),cy:$Vt(u,a,l),r:a,stroke:"transparent",fill:"transparent"}),RVt=()=>!0;var HE=l=>{const s=({id:u,className:a,type:g,data:w,onClick:b,onEdgeDoubleClick:y,selected:x,animated:C,label:T,labelStyle:j,labelShowBg:N,labelBgStyle:F,labelBgPadding:Q,labelBgBorderRadius:V,style:ee,source:te,target:le,sourceX:Se,sourceY:be,targetX:xe,targetY:Me,sourcePosition:_e,targetPosition:rt,elementsSelectable:$e,hidden:ut,sourceHandleId:st,targetHandleId:ht,onContextMenu:pt,onMouseEnter:ce,onMouseMove:Ze,onMouseLeave:et,reconnectRadius:vt,onReconnect:X,onReconnectStart:nt,onReconnectEnd:Nt,markerEnd:Jt,markerStart:Yt,rfId:Nn,ariaLabel:Ln,isFocusable:Mi,isReconnectable:ar,pathOptions:Dr,interactionWidth:Ys,disableKeyboardA11y:ps})=>{const vr=Ne.useRef(null),[Lc,so]=Ne.useState(!1),[Fo,Mo]=Ne.useState(!1),Xo=Sh(),gf=Ne.useMemo(()=>`url('#${k2e(Yt,Nn)}')`,[Yt,Nn]),Qs=Ne.useMemo(()=>`url('#${k2e(Jt,Nn)}')`,[Jt,Nn]);if(ut)return null;const gi=bf=>{var _1;const{edges:Td,addSelectedEdges:Ew,unselectNodesAndEdges:Cw,multiSelectionActive:Tw}=Xo.getState(),J0=Td.find(j3=>j3.id===u);J0&&($e&&(Xo.setState({nodesSelectionActive:!1}),J0.selected&&Tw?(Cw({nodes:[],edges:[J0]}),(_1=vr.current)==null||_1.blur()):Ew([u])),b&&b(bf,J0))},xc=UN(u,Xo.getState,y),Cd=UN(u,Xo.getState,pt),A3=UN(u,Xo.getState,ce),T2=UN(u,Xo.getState,Ze),A2=UN(u,Xo.getState,et),B1=(bf,Td)=>{if(bf.button!==0)return;const{edges:Ew,isValidConnection:Cw}=Xo.getState(),Tw=Td?le:te,J0=(Td?ht:st)||null,_1=Td?"target":"source",j3=Cw||RVt,p9=Td,P3=Ew.find(Aw=>Aw.id===u);Mo(!0),nt==null||nt(bf,P3,_1);const w9=Aw=>{Mo(!1),Nt==null||Nt(Aw,P3,_1)};Fgt({event:bf,handleId:J0,nodeId:Tw,onConnect:Aw=>X==null?void 0:X(P3,Aw),isTarget:p9,getState:Xo.getState,setState:Xo.setState,isValidConnection:j3,edgeUpdaterType:_1,onReconnectEnd:w9})},Ol=bf=>B1(bf,!0),Eh=bf=>B1(bf,!1),Ch=()=>so(!0),M2=()=>so(!1),M3=!$e&&!b,xw=bf=>{var Td;if(!ps&&Cgt.includes(bf.key)&&$e){const{unselectNodesAndEdges:Ew,addSelectedEdges:Cw,edges:Tw}=Xo.getState();bf.key==="Escape"?((Td=vr.current)==null||Td.blur(),Ew({edges:[Tw.find(_1=>_1.id===u)]})):Cw([u])}};return In.createElement("g",{className:Fb(["react-flow__edge",`react-flow__edge-${g}`,a,{selected:x,animated:C,inactive:M3,updating:Lc}]),onClick:gi,onDoubleClick:xc,onContextMenu:Cd,onMouseEnter:A3,onMouseMove:T2,onMouseLeave:A2,onKeyDown:Mi?xw:void 0,tabIndex:Mi?0:void 0,role:Mi?"button":"img","data-testid":`rf__edge-${u}`,"aria-label":Ln===null?void 0:Ln||`Edge from ${te} to ${le}`,"aria-describedby":Mi?`${Xgt}-${Nn}`:void 0,ref:vr},!Fo&&In.createElement(l,{id:u,source:te,target:le,selected:x,animated:C,label:T,labelStyle:j,labelShowBg:N,labelBgStyle:F,labelBgPadding:Q,labelBgBorderRadius:V,data:w,style:ee,sourceX:Se,sourceY:be,targetX:xe,targetY:Me,sourcePosition:_e,targetPosition:rt,sourceHandleId:st,targetHandleId:ht,markerStart:gf,markerEnd:Qs,pathOptions:Dr,interactionWidth:Ys}),ar&&In.createElement(In.Fragment,null,(ar==="source"||ar===!0)&&In.createElement(adt,{position:_e,centerX:Se,centerY:be,radius:vt,onMouseDown:Ol,onMouseEnter:Ch,onMouseOut:M2,type:"source"}),(ar==="target"||ar===!0)&&In.createElement(adt,{position:rt,centerX:xe,centerY:Me,radius:vt,onMouseDown:Eh,onMouseEnter:Ch,onMouseOut:M2,type:"target"})))};return s.displayName="EdgeWrapper",Ne.memo(s)};function LVt(l){const s={default:HE(l.default||tV),straight:HE(l.bezier||_ve),step:HE(l.step||Bve),smoothstep:HE(l.step||$V),simplebezier:HE(l.simplebezier||Fve)},u={},a=Object.keys(l).filter(g=>!["default","bezier"].includes(g)).reduce((g,w)=>(g[w]=HE(l[w]||tV),g),u);return{...s,...a}}function ddt(l,s,u=null){const a=((u==null?void 0:u.x)||0)+s.x,g=((u==null?void 0:u.y)||0)+s.y,w=(u==null?void 0:u.width)||s.width,b=(u==null?void 0:u.height)||s.height;switch(l){case Ai.Top:return{x:a+w/2,y:g};case Ai.Right:return{x:a+w,y:g+b/2};case Ai.Bottom:return{x:a+w/2,y:g+b};case Ai.Left:return{x:a,y:g+b/2}}}function gdt(l,s){return l?l.length===1||!s?l[0]:s&&l.find(u=>u.id===s)||null:null}const FVt=(l,s,u,a,g,w)=>{const b=ddt(u,l,s),y=ddt(w,a,g);return{sourceX:b.x,sourceY:b.y,targetX:y.x,targetY:y.y}};function BVt({sourcePos:l,targetPos:s,sourceWidth:u,sourceHeight:a,targetWidth:g,targetHeight:w,width:b,height:y,transform:x}){const C={x:Math.min(l.x,s.x),y:Math.min(l.y,s.y),x2:Math.max(l.x+u,s.x+g),y2:Math.max(l.y+a,s.y+w)};C.x===C.x2&&(C.x2+=1),C.y===C.y2&&(C.y2+=1);const T=Lve({x:(0-x[0])/x[2],y:(0-x[1])/x[2],width:b/x[2],height:y/x[2]}),j=Math.max(0,Math.min(T.x2,C.x2)-Math.max(T.x,C.x)),N=Math.max(0,Math.min(T.y2,C.y2)-Math.max(T.y,C.y));return Math.ceil(j*N)>0}function bdt(l){var a,g,w,b,y;const s=((a=l==null?void 0:l[vl])==null?void 0:a.handleBounds)||null,u=s&&(l==null?void 0:l.width)&&(l==null?void 0:l.height)&&typeof((g=l==null?void 0:l.positionAbsolute)==null?void 0:g.x)<"u"&&typeof((w=l==null?void 0:l.positionAbsolute)==null?void 0:w.y)<"u";return[{x:((b=l==null?void 0:l.positionAbsolute)==null?void 0:b.x)||0,y:((y=l==null?void 0:l.positionAbsolute)==null?void 0:y.y)||0,width:(l==null?void 0:l.width)||0,height:(l==null?void 0:l.height)||0},s,!!u]}const _Vt=[{level:0,isMaxLevel:!0,edges:[]}];function qVt(l,s,u=!1){let a=-1;const g=l.reduce((b,y)=>{var T,j;const x=Db(y.zIndex);let C=x?y.zIndex:0;if(u){const N=s.get(y.target),F=s.get(y.source),Q=y.selected||(N==null?void 0:N.selected)||(F==null?void 0:F.selected),V=Math.max(((T=F==null?void 0:F[vl])==null?void 0:T.z)||0,((j=N==null?void 0:N[vl])==null?void 0:j.z)||0,1e3);C=(x?y.zIndex:0)+(Q?V:0)}return b[C]?b[C].push(y):b[C]=[y],a=C>a?C:a,b},{}),w=Object.entries(g).map(([b,y])=>{const x=+b;return{edges:y,level:x,isMaxLevel:x===a}});return w.length===0?_Vt:w}function QVt(l,s,u){const a=Xl(Ne.useCallback(g=>l?g.edges.filter(w=>{const b=s.get(w.source),y=s.get(w.target);return(b==null?void 0:b.width)&&(b==null?void 0:b.height)&&(y==null?void 0:y.width)&&(y==null?void 0:y.height)&&BVt({sourcePos:b.positionAbsolute||{x:0,y:0},targetPos:y.positionAbsolute||{x:0,y:0},sourceWidth:b.width,sourceHeight:b.height,targetWidth:y.width,targetHeight:y.height,width:g.width,height:g.height,transform:g.transform})}):g.edges,[l,s]));return qVt(a,s,u)}const HVt=({color:l="none",strokeWidth:s=1})=>In.createElement("polyline",{style:{stroke:l,strokeWidth:s},strokeLinecap:"round",strokeLinejoin:"round",fill:"none",points:"-5,-4 0,0 -5,4"}),zVt=({color:l="none",strokeWidth:s=1})=>In.createElement("polyline",{style:{stroke:l,fill:l,strokeWidth:s},strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"}),pdt={[eV.Arrow]:HVt,[eV.ArrowClosed]:zVt};function KVt(l){const s=Sh();return Ne.useMemo(()=>{var g,w;return Object.prototype.hasOwnProperty.call(pdt,l)?pdt[l]:((w=(g=s.getState()).onError)==null||w.call(g,"009",x3.error009(l)),null)},[l])}const WVt=({id:l,type:s,color:u,width:a=12.5,height:g=12.5,markerUnits:w="strokeWidth",strokeWidth:b,orient:y="auto-start-reverse"})=>{const x=KVt(s);return x?In.createElement("marker",{className:"react-flow__arrowhead",id:l,markerWidth:`${a}`,markerHeight:`${g}`,viewBox:"-10 -10 20 20",markerUnits:w,orient:y,refX:"0",refY:"0"},In.createElement(x,{color:u,strokeWidth:b})):null},XVt=({defaultColor:l,rfId:s})=>u=>{const a=[];return u.edges.reduce((g,w)=>([w.markerStart,w.markerEnd].forEach(b=>{if(b&&typeof b=="object"){const y=k2e(b,s);a.includes(y)||(g.push({id:y,color:b.color||l,...b}),a.push(y))}}),g),[]).sort((g,w)=>g.id.localeCompare(w.id))},obt=({defaultColor:l,rfId:s})=>{const u=Xl(Ne.useCallback(XVt({defaultColor:l,rfId:s}),[l,s]),(a,g)=>!(a.length!==g.length||a.some((w,b)=>w.id!==g[b].id)));return In.createElement("defs",null,u.map(a=>In.createElement(WVt,{id:a.id,key:a.id,type:a.type,color:a.color,width:a.width,height:a.height,markerUnits:a.markerUnits,strokeWidth:a.strokeWidth,orient:a.orient})))};obt.displayName="MarkerDefinitions";var UVt=Ne.memo(obt);const GVt=l=>({nodesConnectable:l.nodesConnectable,edgesFocusable:l.edgesFocusable,edgesUpdatable:l.edgesUpdatable,elementsSelectable:l.elementsSelectable,width:l.width,height:l.height,connectionMode:l.connectionMode,nodeInternals:l.nodeInternals,onError:l.onError}),cbt=({defaultMarkerColor:l,onlyRenderVisibleElements:s,elevateEdgesOnSelect:u,rfId:a,edgeTypes:g,noPanClassName:w,onEdgeContextMenu:b,onEdgeMouseEnter:y,onEdgeMouseMove:x,onEdgeMouseLeave:C,onEdgeClick:T,onEdgeDoubleClick:j,onReconnect:N,onReconnectStart:F,onReconnectEnd:Q,reconnectRadius:V,children:ee,disableKeyboardA11y:te})=>{const{edgesFocusable:le,edgesUpdatable:Se,elementsSelectable:be,width:xe,height:Me,connectionMode:_e,nodeInternals:rt,onError:$e}=Xl(GVt,F1),ut=QVt(s,rt,u);return xe?In.createElement(In.Fragment,null,ut.map(({level:st,edges:ht,isMaxLevel:pt})=>In.createElement("svg",{key:st,style:{zIndex:st},width:xe,height:Me,className:"react-flow__edges react-flow__container"},pt&&In.createElement(UVt,{defaultColor:l,rfId:a}),In.createElement("g",null,ht.map(ce=>{const[Ze,et,vt]=bdt(rt.get(ce.source)),[X,nt,Nt]=bdt(rt.get(ce.target));if(!vt||!Nt)return null;let Jt=ce.type||"default";g[Jt]||($e==null||$e("011",x3.error011(Jt)),Jt="default");const Yt=g[Jt]||g.default,Nn=_e===u9.Strict?nt.target:(nt.target??[]).concat(nt.source??[]),Ln=gdt(et.source,ce.sourceHandle),Mi=gdt(Nn,ce.targetHandle),ar=(Ln==null?void 0:Ln.position)||Ai.Bottom,Dr=(Mi==null?void 0:Mi.position)||Ai.Top,Ys=!!(ce.focusable||le&&typeof ce.focusable>"u"),ps=ce.reconnectable||ce.updatable,vr=typeof N<"u"&&(ps||Se&&typeof ps>"u");if(!Ln||!Mi)return $e==null||$e("008",x3.error008(Ln,ce)),null;const{sourceX:Lc,sourceY:so,targetX:Fo,targetY:Mo}=FVt(Ze,Ln,ar,X,Mi,Dr);return In.createElement(Yt,{key:ce.id,id:ce.id,className:Fb([ce.className,w]),type:Jt,data:ce.data,selected:!!ce.selected,animated:!!ce.animated,hidden:!!ce.hidden,label:ce.label,labelStyle:ce.labelStyle,labelShowBg:ce.labelShowBg,labelBgStyle:ce.labelBgStyle,labelBgPadding:ce.labelBgPadding,labelBgBorderRadius:ce.labelBgBorderRadius,style:ce.style,source:ce.source,target:ce.target,sourceHandleId:ce.sourceHandle,targetHandleId:ce.targetHandle,markerEnd:ce.markerEnd,markerStart:ce.markerStart,sourceX:Lc,sourceY:so,targetX:Fo,targetY:Mo,sourcePosition:ar,targetPosition:Dr,elementsSelectable:be,onContextMenu:b,onMouseEnter:y,onMouseMove:x,onMouseLeave:C,onClick:T,onEdgeDoubleClick:j,onReconnect:N,onReconnectStart:F,onReconnectEnd:Q,reconnectRadius:V,rfId:a,ariaLabel:ce.ariaLabel,isFocusable:Ys,isReconnectable:vr,pathOptions:"pathOptions"in ce?ce.pathOptions:void 0,interactionWidth:ce.interactionWidth,disableKeyboardA11y:te})})))),ee):null};cbt.displayName="EdgeRenderer";var VVt=Ne.memo(cbt);const YVt=l=>`translate(${l.transform[0]}px,${l.transform[1]}px) scale(${l.transform[2]})`;function ZVt({children:l}){const s=Xl(YVt);return In.createElement("div",{className:"react-flow__viewport react-flow__container",style:{transform:s}},l)}function JVt(l){const s=Ygt(),u=Ne.useRef(!1);Ne.useEffect(()=>{!u.current&&s.viewportInitialized&&l&&(setTimeout(()=>l(s),1),u.current=!0)},[l,s.viewportInitialized])}const eYt={[Ai.Left]:Ai.Right,[Ai.Right]:Ai.Left,[Ai.Top]:Ai.Bottom,[Ai.Bottom]:Ai.Top},ubt=({nodeId:l,handleType:s,style:u,type:a=I5.Bezier,CustomComponent:g,connectionStatus:w})=>{var Me,_e,rt;const{fromNode:b,handleId:y,toX:x,toY:C,connectionMode:T}=Xl(Ne.useCallback($e=>({fromNode:$e.nodeInternals.get(l),handleId:$e.connectionHandleId,toX:($e.connectionPosition.x-$e.transform[0])/$e.transform[2],toY:($e.connectionPosition.y-$e.transform[1])/$e.transform[2],connectionMode:$e.connectionMode}),[l]),F1),j=(Me=b==null?void 0:b[vl])==null?void 0:Me.handleBounds;let N=j==null?void 0:j[s];if(T===u9.Loose&&(N=N||(j==null?void 0:j[s==="source"?"target":"source"])),!b||!N)return null;const F=y?N.find($e=>$e.id===y):N[0],Q=F?F.x+F.width/2:(b.width??0)/2,V=F?F.y+F.height/2:b.height??0,ee=(((_e=b.positionAbsolute)==null?void 0:_e.x)??0)+Q,te=(((rt=b.positionAbsolute)==null?void 0:rt.y)??0)+V,le=F==null?void 0:F.position,Se=le?eYt[le]:null;if(!le||!Se)return null;if(g)return In.createElement(g,{connectionLineType:a,connectionLineStyle:u,fromNode:b,fromHandle:F,fromX:ee,fromY:te,toX:x,toY:C,fromPosition:le,toPosition:Se,connectionStatus:w});let be="";const xe={sourceX:ee,sourceY:te,sourcePosition:le,targetX:x,targetY:C,targetPosition:Se};return a===I5.Bezier?[be]=Pgt(xe):a===I5.Step?[be]=O2e({...xe,borderRadius:0}):a===I5.SmoothStep?[be]=O2e(xe):a===I5.SimpleBezier?[be]=jgt(xe):be=`M${ee},${te} ${x},${C}`,In.createElement("path",{d:be,fill:"none",className:"react-flow__connection-path",style:u})};ubt.displayName="ConnectionLine";const tYt=l=>({nodeId:l.connectionNodeId,handleType:l.connectionHandleType,nodesConnectable:l.nodesConnectable,connectionStatus:l.connectionStatus,width:l.width,height:l.height});function nYt({containerStyle:l,style:s,type:u,component:a}){const{nodeId:g,handleType:w,nodesConnectable:b,width:y,height:x,connectionStatus:C}=Xl(tYt,F1);return!(g&&w&&y&&b)?null:In.createElement("svg",{style:l,width:y,height:x,className:"react-flow__edges react-flow__connectionline react-flow__container"},In.createElement("g",{className:Fb(["react-flow__connection",C])},In.createElement(ubt,{nodeId:g,handleType:w,style:s,type:u,CustomComponent:a,connectionStatus:C})))}function wdt(l,s){return Ne.useRef(null),Sh(),Ne.useMemo(()=>s(l),[l])}const lbt=({nodeTypes:l,edgeTypes:s,onMove:u,onMoveStart:a,onMoveEnd:g,onInit:w,onNodeClick:b,onEdgeClick:y,onNodeDoubleClick:x,onEdgeDoubleClick:C,onNodeMouseEnter:T,onNodeMouseMove:j,onNodeMouseLeave:N,onNodeContextMenu:F,onSelectionContextMenu:Q,onSelectionStart:V,onSelectionEnd:ee,connectionLineType:te,connectionLineStyle:le,connectionLineComponent:Se,connectionLineContainerStyle:be,selectionKeyCode:xe,selectionOnDrag:Me,selectionMode:_e,multiSelectionKeyCode:rt,panActivationKeyCode:$e,zoomActivationKeyCode:ut,deleteKeyCode:st,onlyRenderVisibleElements:ht,elementsSelectable:pt,selectNodesOnDrag:ce,defaultViewport:Ze,translateExtent:et,minZoom:vt,maxZoom:X,preventScrolling:nt,defaultMarkerColor:Nt,zoomOnScroll:Jt,zoomOnPinch:Yt,panOnScroll:Nn,panOnScrollSpeed:Ln,panOnScrollMode:Mi,zoomOnDoubleClick:ar,panOnDrag:Dr,onPaneClick:Ys,onPaneMouseEnter:ps,onPaneMouseMove:vr,onPaneMouseLeave:Lc,onPaneScroll:so,onPaneContextMenu:Fo,onEdgeContextMenu:Mo,onEdgeMouseEnter:Xo,onEdgeMouseMove:gf,onEdgeMouseLeave:Qs,onReconnect:gi,onReconnectStart:xc,onReconnectEnd:Cd,reconnectRadius:A3,noDragClassName:T2,noWheelClassName:A2,noPanClassName:B1,elevateEdgesOnSelect:Ol,disableKeyboardA11y:Eh,nodeOrigin:Ch,nodeExtent:M2,rfId:M3})=>{const xw=wdt(l,jVt),bf=wdt(s,LVt);return JVt(w),In.createElement(AVt,{onPaneClick:Ys,onPaneMouseEnter:ps,onPaneMouseMove:vr,onPaneMouseLeave:Lc,onPaneContextMenu:Fo,onPaneScroll:so,deleteKeyCode:st,selectionKeyCode:xe,selectionOnDrag:Me,selectionMode:_e,onSelectionStart:V,onSelectionEnd:ee,multiSelectionKeyCode:rt,panActivationKeyCode:$e,zoomActivationKeyCode:ut,elementsSelectable:pt,onMove:u,onMoveStart:a,onMoveEnd:g,zoomOnScroll:Jt,zoomOnPinch:Yt,zoomOnDoubleClick:ar,panOnScroll:Nn,panOnScrollSpeed:Ln,panOnScrollMode:Mi,panOnDrag:Dr,defaultViewport:Ze,translateExtent:et,minZoom:vt,maxZoom:X,onSelectionContextMenu:Q,preventScrolling:nt,noDragClassName:T2,noWheelClassName:A2,noPanClassName:B1,disableKeyboardA11y:Eh},In.createElement(ZVt,null,In.createElement(VVt,{edgeTypes:bf,onEdgeClick:y,onEdgeDoubleClick:C,onlyRenderVisibleElements:ht,onEdgeContextMenu:Mo,onEdgeMouseEnter:Xo,onEdgeMouseMove:gf,onEdgeMouseLeave:Qs,onReconnect:gi,onReconnectStart:xc,onReconnectEnd:Cd,reconnectRadius:A3,defaultMarkerColor:Nt,noPanClassName:B1,elevateEdgesOnSelect:!!Ol,disableKeyboardA11y:Eh,rfId:M3},In.createElement(nYt,{style:le,type:te,component:Se,containerStyle:be})),In.createElement("div",{className:"react-flow__edgelabel-renderer"}),In.createElement(IVt,{nodeTypes:xw,onNodeClick:b,onNodeDoubleClick:x,onNodeMouseEnter:T,onNodeMouseMove:j,onNodeMouseLeave:N,onNodeContextMenu:F,selectNodesOnDrag:ce,onlyRenderVisibleElements:ht,noPanClassName:B1,noDragClassName:T2,disableKeyboardA11y:Eh,nodeOrigin:Ch,nodeExtent:M2,rfId:M3})))};lbt.displayName="GraphView";var iYt=Ne.memo(lbt);const C2e=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],T5={rfId:"1",width:0,height:0,transform:[0,0,1],nodeInternals:new Map,edges:[],onNodesChange:null,onEdgesChange:null,hasDefaultNodes:!1,hasDefaultEdges:!1,d3Zoom:null,d3Selection:null,d3ZoomHandler:void 0,minZoom:.5,maxZoom:2,translateExtent:C2e,nodeExtent:C2e,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionNodeId:null,connectionHandleId:null,connectionHandleType:"source",connectionPosition:{x:0,y:0},connectionStatus:null,connectionMode:u9.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:[0,0],nodeDragThreshold:0,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesUpdatable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,fitViewOnInit:!1,fitViewOnInitDone:!1,fitViewOnInitOptions:void 0,onSelectionChange:[],multiSelectionActive:!1,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,connectionRadius:20,onError:PGt,isValidConnection:void 0},rYt=()=>HKt((l,s)=>({...T5,setNodes:u=>{const{nodeInternals:a,nodeOrigin:g,elevateNodesOnSelect:w}=s();l({nodeInternals:vme(u,a,g,w)})},getNodes:()=>Array.from(s().nodeInternals.values()),setEdges:u=>{const{defaultEdgeOptions:a={}}=s();l({edges:u.map(g=>({...a,...g}))})},setDefaultNodesAndEdges:(u,a)=>{const g=typeof u<"u",w=typeof a<"u",b=g?vme(u,new Map,s().nodeOrigin,s().elevateNodesOnSelect):new Map;l({nodeInternals:b,edges:w?a:[],hasDefaultNodes:g,hasDefaultEdges:w})},updateNodeDimensions:u=>{const{onNodesChange:a,nodeInternals:g,fitViewOnInit:w,fitViewOnInitDone:b,fitViewOnInitOptions:y,domNode:x,nodeOrigin:C}=s(),T=x==null?void 0:x.querySelector(".react-flow__viewport");if(!T)return;const j=window.getComputedStyle(T),{m22:N}=new window.DOMMatrixReadOnly(j.transform),F=u.reduce((V,ee)=>{const te=g.get(ee.id);if(te!=null&&te.hidden)g.set(te.id,{...te,[vl]:{...te[vl],handleBounds:void 0}});else if(te){const le=$ve(ee.nodeElement);!!(le.width&&le.height&&(te.width!==le.width||te.height!==le.height||ee.forceUpdate))&&(g.set(te.id,{...te,[vl]:{...te[vl],handleBounds:{source:fdt(".source",ee.nodeElement,N,C),target:fdt(".target",ee.nodeElement,N,C)}},...le}),V.push({id:te.id,type:"dimensions",dimensions:le}))}return V},[]);Ggt(g,C);const Q=b||w&&!b&&Vgt(s,{initial:!0,...y});l({nodeInternals:new Map(g),fitViewOnInitDone:Q}),(F==null?void 0:F.length)>0&&(a==null||a(F))},updateNodePositions:(u,a=!0,g=!1)=>{const{triggerNodeChanges:w}=s(),b=u.map(y=>{const x={id:y.id,type:"position",dragging:g};return a&&(x.positionAbsolute=y.positionAbsolute,x.position=y.position),x});w(b)},triggerNodeChanges:u=>{const{onNodesChange:a,nodeInternals:g,hasDefaultNodes:w,nodeOrigin:b,getNodes:y,elevateNodesOnSelect:x}=s();if(u!=null&&u.length){if(w){const C=vVt(u,y()),T=vme(C,g,b,x);l({nodeInternals:T})}a==null||a(u)}},addSelectedNodes:u=>{const{multiSelectionActive:a,edges:g,getNodes:w}=s();let b,y=null;a?b=u.map(x=>j5(x,!0)):(b=UE(w(),u),y=UE(g,[])),eG({changedNodes:b,changedEdges:y,get:s,set:l})},addSelectedEdges:u=>{const{multiSelectionActive:a,edges:g,getNodes:w}=s();let b,y=null;a?b=u.map(x=>j5(x,!0)):(b=UE(g,u),y=UE(w(),[])),eG({changedNodes:y,changedEdges:b,get:s,set:l})},unselectNodesAndEdges:({nodes:u,edges:a}={})=>{const{edges:g,getNodes:w}=s(),b=u||w(),y=a||g,x=b.map(T=>(T.selected=!1,j5(T.id,!1))),C=y.map(T=>j5(T.id,!1));eG({changedNodes:x,changedEdges:C,get:s,set:l})},setMinZoom:u=>{const{d3Zoom:a,maxZoom:g}=s();a==null||a.scaleExtent([u,g]),l({minZoom:u})},setMaxZoom:u=>{const{d3Zoom:a,minZoom:g}=s();a==null||a.scaleExtent([g,u]),l({maxZoom:u})},setTranslateExtent:u=>{var a;(a=s().d3Zoom)==null||a.translateExtent(u),l({translateExtent:u})},resetSelectedElements:()=>{const{edges:u,getNodes:a}=s(),w=a().filter(y=>y.selected).map(y=>j5(y.id,!1)),b=u.filter(y=>y.selected).map(y=>j5(y.id,!1));eG({changedNodes:w,changedEdges:b,get:s,set:l})},setNodeExtent:u=>{const{nodeInternals:a}=s();a.forEach(g=>{g.positionAbsolute=Rve(g.position,u)}),l({nodeExtent:u,nodeInternals:new Map(a)})},panBy:u=>{const{transform:a,width:g,height:w,d3Zoom:b,d3Selection:y,translateExtent:x}=s();if(!b||!y||!u.x&&!u.y)return!1;const C=F5.translate(a[0]+u.x,a[1]+u.y).scale(a[2]),T=[[0,0],[g,w]],j=b==null?void 0:b.constrain()(C,T,x);return b.transform(y,j),a[0]!==j.x||a[1]!==j.y||a[2]!==j.k},cancelConnection:()=>l({connectionNodeId:T5.connectionNodeId,connectionHandleId:T5.connectionHandleId,connectionHandleType:T5.connectionHandleType,connectionStatus:T5.connectionStatus,connectionStartHandle:T5.connectionStartHandle,connectionEndHandle:T5.connectionEndHandle}),reset:()=>l({...T5})}),Object.is),fbt=({children:l})=>{const s=Ne.useRef(null);return s.current||(s.current=rYt()),In.createElement(kGt,{value:s.current},l)};fbt.displayName="ReactFlowProvider";const hbt=({children:l})=>Ne.useContext(NV)?In.createElement(In.Fragment,null,l):In.createElement(fbt,null,l);hbt.displayName="ReactFlowWrapper";const sYt={input:Qgt,default:x2e,output:zgt,group:zve},oYt={default:tV,straight:_ve,step:Bve,smoothstep:$V,simplebezier:Fve},cYt=[0,0],uYt=[15,15],lYt={x:0,y:0,zoom:1},fYt={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0},hYt=Ne.forwardRef(({nodes:l,edges:s,defaultNodes:u,defaultEdges:a,className:g,nodeTypes:w=sYt,edgeTypes:b=oYt,onNodeClick:y,onEdgeClick:x,onInit:C,onMove:T,onMoveStart:j,onMoveEnd:N,onConnect:F,onConnectStart:Q,onConnectEnd:V,onClickConnectStart:ee,onClickConnectEnd:te,onNodeMouseEnter:le,onNodeMouseMove:Se,onNodeMouseLeave:be,onNodeContextMenu:xe,onNodeDoubleClick:Me,onNodeDragStart:_e,onNodeDrag:rt,onNodeDragStop:$e,onNodesDelete:ut,onEdgesDelete:st,onSelectionChange:ht,onSelectionDragStart:pt,onSelectionDrag:ce,onSelectionDragStop:Ze,onSelectionContextMenu:et,onSelectionStart:vt,onSelectionEnd:X,connectionMode:nt=u9.Strict,connectionLineType:Nt=I5.Bezier,connectionLineStyle:Jt,connectionLineComponent:Yt,connectionLineContainerStyle:Nn,deleteKeyCode:Ln="Backspace",selectionKeyCode:Mi="Shift",selectionOnDrag:ar=!1,selectionMode:Dr=E$.Full,panActivationKeyCode:Ys="Space",multiSelectionKeyCode:ps=JG()?"Meta":"Control",zoomActivationKeyCode:vr=JG()?"Meta":"Control",snapToGrid:Lc=!1,snapGrid:so=uYt,onlyRenderVisibleElements:Fo=!1,selectNodesOnDrag:Mo=!0,nodesDraggable:Xo,nodesConnectable:gf,nodesFocusable:Qs,nodeOrigin:gi=cYt,edgesFocusable:xc,edgesUpdatable:Cd,elementsSelectable:A3,defaultViewport:T2=lYt,minZoom:A2=.5,maxZoom:B1=2,translateExtent:Ol=C2e,preventScrolling:Eh=!0,nodeExtent:Ch,defaultMarkerColor:M2="#b1b1b7",zoomOnScroll:M3=!0,zoomOnPinch:xw=!0,panOnScroll:bf=!1,panOnScrollSpeed:Td=.5,panOnScrollMode:Ew=e9.Free,zoomOnDoubleClick:Cw=!0,panOnDrag:Tw=!0,onPaneClick:J0,onPaneMouseEnter:_1,onPaneMouseMove:j3,onPaneMouseLeave:p9,onPaneScroll:P3,onPaneContextMenu:w9,children:EC,onEdgeContextMenu:Aw,onEdgeDoubleClick:cR,onEdgeMouseEnter:uR,onEdgeMouseMove:lR,onEdgeMouseLeave:fR,onEdgeUpdate:hR,onEdgeUpdateStart:aR,onEdgeUpdateEnd:dR,onReconnect:gR,onReconnectStart:bR,onReconnectEnd:pR,reconnectRadius:wR=10,edgeUpdaterRadius:mR=10,onNodesChange:vR,onEdgesChange:yR,noDragClassName:OR="nodrag",noWheelClassName:kR="nowheel",noPanClassName:CC="nopan",fitView:SR=!1,fitViewOptions:xR,connectOnClick:ER=!0,attributionPosition:TC,proOptions:CR,defaultEdgeOptions:TR,elevateNodesOnSelect:AR=!0,elevateEdgesOnSelect:MR=!1,disableKeyboardA11y:V5=!1,autoPanOnConnect:m9=!0,autoPanOnNodeDrag:Y5=!0,connectionRadius:jR=20,isValidConnection:PR,onError:v9,style:DR,id:AC,nodeDragThreshold:IR,...Z5},NR)=>{const y9=AC||"1";return In.createElement("div",{...Z5,style:{...DR,...fYt},ref:NR,className:Fb(["react-flow",g]),"data-testid":"rf__wrapper",id:AC},In.createElement(hbt,null,In.createElement(iYt,{onInit:C,onMove:T,onMoveStart:j,onMoveEnd:N,onNodeClick:y,onEdgeClick:x,onNodeMouseEnter:le,onNodeMouseMove:Se,onNodeMouseLeave:be,onNodeContextMenu:xe,onNodeDoubleClick:Me,nodeTypes:w,edgeTypes:b,connectionLineType:Nt,connectionLineStyle:Jt,connectionLineComponent:Yt,connectionLineContainerStyle:Nn,selectionKeyCode:Mi,selectionOnDrag:ar,selectionMode:Dr,deleteKeyCode:Ln,multiSelectionKeyCode:ps,panActivationKeyCode:Ys,zoomActivationKeyCode:vr,onlyRenderVisibleElements:Fo,selectNodesOnDrag:Mo,defaultViewport:T2,translateExtent:Ol,minZoom:A2,maxZoom:B1,preventScrolling:Eh,zoomOnScroll:M3,zoomOnPinch:xw,zoomOnDoubleClick:Cw,panOnScroll:bf,panOnScrollSpeed:Td,panOnScrollMode:Ew,panOnDrag:Tw,onPaneClick:J0,onPaneMouseEnter:_1,onPaneMouseMove:j3,onPaneMouseLeave:p9,onPaneScroll:P3,onPaneContextMenu:w9,onSelectionContextMenu:et,onSelectionStart:vt,onSelectionEnd:X,onEdgeContextMenu:Aw,onEdgeDoubleClick:cR,onEdgeMouseEnter:uR,onEdgeMouseMove:lR,onEdgeMouseLeave:fR,onReconnect:gR??hR,onReconnectStart:bR??aR,onReconnectEnd:pR??dR,reconnectRadius:wR??mR,defaultMarkerColor:M2,noDragClassName:OR,noWheelClassName:kR,noPanClassName:CC,elevateEdgesOnSelect:MR,rfId:y9,disableKeyboardA11y:V5,nodeOrigin:gi,nodeExtent:Ch}),In.createElement(eVt,{nodes:l,edges:s,defaultNodes:u,defaultEdges:a,onConnect:F,onConnectStart:Q,onConnectEnd:V,onClickConnectStart:ee,onClickConnectEnd:te,nodesDraggable:Xo,nodesConnectable:gf,nodesFocusable:Qs,edgesFocusable:xc,edgesUpdatable:Cd,elementsSelectable:A3,elevateNodesOnSelect:AR,minZoom:A2,maxZoom:B1,nodeExtent:Ch,onNodesChange:vR,onEdgesChange:yR,snapToGrid:Lc,snapGrid:so,connectionMode:nt,translateExtent:Ol,connectOnClick:ER,defaultEdgeOptions:TR,fitView:SR,fitViewOptions:xR,onNodesDelete:ut,onEdgesDelete:st,onNodeDragStart:_e,onNodeDrag:rt,onNodeDragStop:$e,onSelectionDrag:ce,onSelectionDragStart:pt,onSelectionDragStop:Ze,noPanClassName:CC,nodeOrigin:gi,rfId:y9,autoPanOnConnect:m9,autoPanOnNodeDrag:Y5,onError:v9,connectionRadius:jR,isValidConnection:PR,nodeDragThreshold:IR}),In.createElement(ZGt,{onSelectionChange:ht}),EC,In.createElement(EGt,{proOptions:CR,position:TC}),In.createElement(sVt,{rfId:y9,disableKeyboardA11y:V5})))});hYt.displayName="ReactFlow";function aYt(){const l=Sh();return Ne.useCallback(s=>{const{domNode:u,updateNodeDimensions:a}=l.getState(),w=(Array.isArray(s)?s:[s]).reduce((b,y)=>{const x=u==null?void 0:u.querySelector(`.react-flow__node[data-id="${y}"]`);return x&&b.push({id:y,nodeElement:x,forceUpdate:!0}),b},[]);requestAnimationFrame(()=>a(w))},[])}function dYt({id:l,className:s,hasLeft:u=!1,hasRight:a=!1,isSelected:g=!1,isDraggable:w=!1,label:b,type:y,count:x,handleClick:C,handleSelect:T}){return Ei.jsxs("div",{className:ml("flex w-full relative items-center",s),children:[u&&Ei.jsx(q5,{type:"target",id:Sc(Kf.Left,l),position:Ai.Left,isConnectable:!1,className:"-ml-2 border rounded-full overflow-hidden border-current",children:Ei.jsx(Sat,{className:"w-5 text-light dark:text-dark-lighter"})}),Ei.jsxs("div",{className:ml("w-full flex items-center",u?"pl-3":"pl-1",a?"pr-3":"pr-1"),children:[Ss(T)&&Ei.jsx("span",{onClick:T,className:"mx-2 w-4 h-4 rounded-full cursor-pointer p-0.5 border-2 border-current",children:Ei.jsx("span",{className:ml("flex w-2 h-2 rounded-full",g?"bg-current":"bg-neutral-10")})}),Ei.jsxs("span",{className:ml("flex w-full overflow-hidden py-2",w&&"drag-handle"),children:[Ss(y)&&Ei.jsx("span",{className:"inline-block ml-1 mr-2 px-1 rounded-[0.25rem] text-[0.5rem] bg-neutral-10",children:Ecn(y)}),Ei.jsx("span",{title:decodeURI(b),className:ml("inline-block whitespace-nowrap overflow-hidden overflow-ellipsis pr-2 font-black",Ss(C)&&"cursor-pointer hover:underline"),onClick:C,children:l2e(decodeURI(b),50,20)}),Ss(x)&&Ei.jsx("span",{className:"flex justify-between ml-2 mr-1 px-2 rounded-full bg-neutral-10",children:x})]})]}),a&&Ei.jsx(q5,{type:"source",id:Sc(Kf.Right,l),position:Ai.Right,isConnectable:!1,className:"-mr-2 border rounded-full overflow-hidden border-current",children:Ei.jsx(Sat,{className:"w-5 text-light dark:text-dark-lighter"})})]})}function gYt(l,s){if(l==null)return{};var u={};for(var a in l)if({}.hasOwnProperty.call(l,a)){if(s.indexOf(a)!==-1)continue;u[a]=l[a]}return u}let T2e=[],abt=[];(()=>{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?abt:T2e).push(u=u+l[s])})();function bYt(l){if(l<768)return!1;for(let s=0,u=T2e.length;;){let a=s+u>>1;if(l<T2e[a])u=a;else if(l>=abt[a])s=a+1;else return!0;if(s==u)return!1}}function mdt(l){return l>=127462&&l<=127487}const vdt=8205;function pYt(l,s,u=!0,a=!0){return(u?dbt:wYt)(l,s,a)}function dbt(l,s,u){if(s==l.length)return s;s&&gbt(l.charCodeAt(s))&&bbt(l.charCodeAt(s-1))&&s--;let a=Sme(l,s);for(s+=ydt(a);s<l.length;){let g=Sme(l,s);if(a==vdt||g==vdt||u&&bYt(g))s+=ydt(g),a=g;else if(mdt(g)){let w=0,b=s-2;for(;b>=0&&mdt(Sme(l,b));)w++,b-=2;if(w%2==0)break;s+=2}else break}return s}function wYt(l,s,u){for(;s>0;){let a=dbt(l,s-2,u);if(a<s)return a;s--}return 0}function Sme(l,s){let u=l.charCodeAt(s);if(!bbt(u)||s+1==l.length)return u;let a=l.charCodeAt(s+1);return gbt(a)?(u-55296<<10)+(a-56320)+65536:u}function gbt(l){return l>=56320&&l<57344}function bbt(l){return l>=55296&&l<56320}function ydt(l){return l<65536?1:2}class ho{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,a){[s,u]=fC(this,s,u);let g=[];return this.decompose(0,s,g,2),a.length&&a.decompose(0,a.length,g,3),this.decompose(u,this.length,g,1),d2.from(g,this.length-(u-s)+a.length)}append(s){return this.replace(this.length,this.length,s)}slice(s,u=this.length){[s,u]=fC(this,s,u);let a=[];return this.decompose(s,u,a,0),d2.from(a,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),a=this.length-this.scanIdentical(s,-1),g=new g$(this),w=new g$(s);for(let b=u,y=u;;){if(g.next(b),w.next(b),b=0,g.lineBreak!=w.lineBreak||g.done!=w.done||g.value!=w.value)return!1;if(y+=g.value.length,g.done||y>=a)return!0}}iter(s=1){return new g$(this,s)}iterRange(s,u=this.length){return new pbt(this,s,u)}iterLines(s,u){let a;if(s==null)a=this.iter();else{u==null&&(u=this.lines+1);let g=this.line(s).from;a=this.iterRange(g,Math.max(g,u==this.lines+1?this.length:u<=1?0:this.line(u-1).to))}return new wbt(a)}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]?ho.empty:s.length<=32?new Wl(s):d2.from(Wl.split(s,[]))}}class Wl extends ho{constructor(s,u=mYt(s)){super(),this.text=s,this.length=u}get lines(){return this.text.length}get children(){return null}lineInner(s,u,a,g){for(let w=0;;w++){let b=this.text[w],y=g+b.length;if((u?a:y)>=s)return new vYt(g,y,a,b);g=y+1,a++}}decompose(s,u,a,g){let w=s<=0&&u>=this.length?this:new Wl(Odt(this.text,s,u),Math.min(u,this.length)-Math.max(0,s));if(g&1){let b=a.pop(),y=IG(w.text,b.text.slice(),0,w.length);if(y.length<=32)a.push(new Wl(y,b.length+w.length));else{let x=y.length>>1;a.push(new Wl(y.slice(0,x)),new Wl(y.slice(x)))}}else a.push(w)}replace(s,u,a){if(!(a instanceof Wl))return super.replace(s,u,a);[s,u]=fC(this,s,u);let g=IG(this.text,IG(a.text,Odt(this.text,0,s)),u),w=this.length+a.length-(u-s);return g.length<=32?new Wl(g,w):d2.from(Wl.split(g,[]),w)}sliceString(s,u=this.length,a=`
|
|
43
43
|
`){[s,u]=fC(this,s,u);let g="";for(let w=0,b=0;w<=u&&b<this.text.length;b++){let y=this.text[b],x=w+y.length;w>s&&b&&(g+=a),s<x&&u>w&&(g+=y.slice(Math.max(0,s-w),u-w)),w=x+1}return g}flatten(s){for(let u of this.text)s.push(u)}scanIdentical(){return 0}static split(s,u){let a=[],g=-1;for(let w of s)a.push(w),g+=w.length+1,a.length==32&&(u.push(new Wl(a,g)),a=[],g=-1);return g>-1&&u.push(new Wl(a,g)),u}}class d2 extends ho{constructor(s,u){super(),this.children=s,this.length=u,this.lines=0;for(let a of s)this.lines+=a.lines}lineInner(s,u,a,g){for(let w=0;;w++){let b=this.children[w],y=g+b.length,x=a+b.lines-1;if((u?x:y)>=s)return b.lineInner(s,u,a,g);g=y+1,a=x+1}}decompose(s,u,a,g){for(let w=0,b=0;b<=u&&w<this.children.length;w++){let y=this.children[w],x=b+y.length;if(s<=x&&u>=b){let C=g&((b<=s?1:0)|(x>=u?2:0));b>=s&&x<=u&&!C?a.push(y):y.decompose(s-b,u-b,a,C)}b=x+1}}replace(s,u,a){if([s,u]=fC(this,s,u),a.lines<this.lines)for(let g=0,w=0;g<this.children.length;g++){let b=this.children[g],y=w+b.length;if(s>=w&&u<=y){let x=b.replace(s-w,u-w,a),C=this.lines-b.lines+x.lines;if(x.lines<C>>4&&x.lines>C>>6){let T=this.children.slice();return T[g]=x,new d2(T,this.length-(u-s)+a.length)}return super.replace(w,y,x)}w=y+1}return super.replace(s,u,a)}sliceString(s,u=this.length,a=`
|
|
44
44
|
`){[s,u]=fC(this,s,u);let g="";for(let w=0,b=0;w<this.children.length&&b<=u;w++){let y=this.children[w],x=b+y.length;b>s&&w&&(g+=a),s<x&&u>b&&(g+=y.sliceString(s-b,u-b,a)),b=x+1}return g}flatten(s){for(let u of this.children)u.flatten(s)}scanIdentical(s,u){if(!(s instanceof d2))return 0;let a=0,[g,w,b,y]=u>0?[0,0,this.children.length,s.children.length]:[this.children.length-1,s.children.length-1,-1,-1];for(;;g+=u,w+=u){if(g==b||w==y)return a;let x=this.children[g],C=s.children[w];if(x!=C)return a+x.scanIdentical(C,u);a+=x.length+1}}static from(s,u=s.reduce((a,g)=>a+g.length+1,-1)){let a=0;for(let F of s)a+=F.lines;if(a<32){let F=[];for(let Q of s)Q.flatten(F);return new Wl(F,u)}let g=Math.max(32,a>>5),w=g<<1,b=g>>1,y=[],x=0,C=-1,T=[];function j(F){let Q;if(F.lines>w&&F instanceof d2)for(let V of F.children)j(V);else F.lines>b&&(x>b||!x)?(N(),y.push(F)):F instanceof Wl&&x&&(Q=T[T.length-1])instanceof Wl&&F.lines+Q.lines<=32?(x+=F.lines,C+=F.length+1,T[T.length-1]=new Wl(Q.text.concat(F.text),Q.length+1+F.length)):(x+F.lines>g&&N(),x+=F.lines,C+=F.length+1,T.push(F))}function N(){x!=0&&(y.push(T.length==1?T[0]:d2.from(T,C)),C=-1,x=T.length=0)}for(let F of s)j(F);return N(),y.length==1?y[0]:new d2(y,u)}}ho.empty=new Wl([""],0);function mYt(l){let s=-1;for(let u of l)s+=u.length+1;return s}function IG(l,s,u=0,a=1e9){for(let g=0,w=0,b=!0;w<l.length&&g<=a;w++){let y=l[w],x=g+y.length;x>=u&&(x>a&&(y=y.slice(0,a-g)),g<u&&(y=y.slice(u-g)),b?(s[s.length-1]+=y,b=!1):s.push(y)),g=x+1}return s}function Odt(l,s,u){return IG(l,[""],s,u)}class g${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 Wl?s.text.length:s.children.length)<<1]}nextInner(s,u){for(this.done=this.lineBreak=!1;;){let a=this.nodes.length-1,g=this.nodes[a],w=this.offsets[a],b=w>>1,y=g instanceof Wl?g.text.length:g.children.length;if(b==(u>0?y:0)){if(a==0)return this.done=!0,this.value="",this;u>0&&this.offsets[a-1]++,this.nodes.pop(),this.offsets.pop()}else if((w&1)==(u>0?0:1)){if(this.offsets[a]+=u,s==0)return this.lineBreak=!0,this.value=`
|
|
45
45
|
`,this;s--}else if(g instanceof Wl){let x=g.text[b+(u<0?-1:0)];if(this.offsets[a]+=u,x.length>Math.max(0,s))return this.value=s==0?x:u>0?x.slice(s):x.slice(0,x.length-s),this;s-=x.length}else{let x=g.children[b+(u<0?-1:0)];s>x.length?(s-=x.length,this.offsets[a]+=u):(u<0&&this.offsets[a]--,this.nodes.push(x),this.offsets.push(u>0?1:(x instanceof Wl?x.text.length:x.children.length)<<1))}}}next(s=0){return s<0&&(this.nextInner(-s,-this.dir),s=this.value.length),this.nextInner(s,this.dir)}}class pbt{constructor(s,u,a){this.value="",this.done=!1,this.cursor=new g$(s,u>a?-1:1),this.pos=u>a?s.length:0,this.from=Math.min(u,a),this.to=Math.max(u,a)}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 a=u<0?this.pos-this.from:this.to-this.pos;s>a&&(s=a),a-=s;let{value:g}=this.cursor.next(s);return this.pos+=(g.length+s)*u,this.value=g.length<=a?g:u<0?g.slice(g.length-a):g.slice(0,a),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 wbt{constructor(s){this.inner=s,this.afterBreak=!0,this.value="",this.done=!1}next(s=0){let{done:u,lineBreak:a,value:g}=this.inner.next(s);return u&&this.afterBreak?(this.value="",this.afterBreak=!1):u?(this.done=!0,this.value=""):a?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=g,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(ho.prototype[Symbol.iterator]=function(){return this.iter()},g$.prototype[Symbol.iterator]=pbt.prototype[Symbol.iterator]=wbt.prototype[Symbol.iterator]=function(){return this});class vYt{constructor(s,u,a,g){this.from=s,this.to=u,this.number=a,this.text=g}get length(){return this.to-this.from}}function fC(l,s,u){return s=Math.max(0,Math.min(l.length,s)),[s,Math.max(s,Math.min(l.length,u))]}function ta(l,s,u=!0,a=!0){return pYt(l,s,u,a)}function yYt(l){return l>=56320&&l<57344}function OYt(l){return l>=55296&&l<56320}function D1(l,s){let u=l.charCodeAt(s);if(!OYt(u)||s+1==l.length)return u;let a=l.charCodeAt(s+1);return yYt(a)?(u-55296<<10)+(a-56320)+65536:u}function Wve(l){return l<=65535?String.fromCharCode(l):(l-=65536,String.fromCharCode((l>>10)+55296,(l&1023)+56320))}function g2(l){return l<65536?1:2}const A2e=/\r\n?|\n/;var ea=function(l){return l[l.Simple=0]="Simple",l[l.TrackDel=1]="TrackDel",l[l.TrackBefore=2]="TrackBefore",l[l.TrackAfter=3]="TrackAfter",l}(ea||(ea={}));class y2{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 a=this.sections[u+1];s+=a<0?this.sections[u]:a}return s}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(s){for(let u=0,a=0,g=0;u<this.sections.length;){let w=this.sections[u++],b=this.sections[u++];b<0?(s(a,g,w),g+=w):g+=b,a+=w}}iterChangedRanges(s,u=!1){M2e(this,s,u)}get invertedDesc(){let s=[];for(let u=0;u<this.sections.length;){let a=this.sections[u++],g=this.sections[u++];g<0?s.push(a,g):s.push(g,a)}return new y2(s)}composeDesc(s){return this.empty?s:s.empty?this:mbt(this,s)}mapDesc(s,u=!1){return s.empty?this:j2e(this,s,u)}mapPos(s,u=-1,a=ea.Simple){let g=0,w=0;for(let b=0;b<this.sections.length;){let y=this.sections[b++],x=this.sections[b++],C=g+y;if(x<0){if(C>s)return w+(s-g);w+=y}else{if(a!=ea.Simple&&C>=s&&(a==ea.TrackDel&&g<s&&C>s||a==ea.TrackBefore&&g<s||a==ea.TrackAfter&&C>s))return null;if(C>s||C==s&&u<0&&!y)return s==g||u<0?w:w+x;w+=x}g=C}if(s>g)throw new RangeError(`Position ${s} is out of range for changeset of length ${g}`);return w}touchesRange(s,u=s){for(let a=0,g=0;a<this.sections.length&&g<=u;){let w=this.sections[a++],b=this.sections[a++],y=g+w;if(b>=0&&g<=u&&y>=s)return g<s&&y>u?"cover":!0;g=y}return!1}toString(){let s="";for(let u=0;u<this.sections.length;){let a=this.sections[u++],g=this.sections[u++];s+=(s?" ":"")+a+(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 y2(s)}static create(s){return new y2(s)}}class Wf extends y2{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 M2e(this,(u,a,g,w,b)=>s=s.replace(g,g+(a-u),b),!1),s}mapDesc(s,u=!1){return j2e(this,s,u,!0)}invert(s){let u=this.sections.slice(),a=[];for(let g=0,w=0;g<u.length;g+=2){let b=u[g],y=u[g+1];if(y>=0){u[g]=y,u[g+1]=b;let x=g>>1;for(;a.length<x;)a.push(ho.empty);a.push(b?s.slice(w,w+b):ho.empty)}w+=b}return new Wf(u,a)}compose(s){return this.empty?s:s.empty?this:mbt(this,s,!0)}map(s,u=!1){return s.empty?this:j2e(this,s,u,!0)}iterChanges(s,u=!1){M2e(this,s,u)}get desc(){return y2.create(this.sections)}filter(s){let u=[],a=[],g=[],w=new T$(this);e:for(let b=0,y=0;;){let x=b==s.length?1e9:s[b++];for(;y<x||y==x&&w.len==0;){if(w.done)break e;let T=Math.min(w.len,x-y);Da(g,T,-1);let j=w.ins==-1?-1:w.off==0?w.ins:0;Da(u,T,j),j>0&&$5(a,u,w.text),w.forward(T),y+=T}let C=s[b++];for(;y<C;){if(w.done)break e;let T=Math.min(w.len,C-y);Da(u,T,-1),Da(g,T,w.ins==-1?-1:w.off==0?w.ins:0),w.forward(T),y+=T}}return{changes:new Wf(u,a),filtered:y2.create(g)}}toJSON(){let s=[];for(let u=0;u<this.sections.length;u+=2){let a=this.sections[u],g=this.sections[u+1];g<0?s.push(a):g==0?s.push([a]):s.push([a].concat(this.inserted[u>>1].toJSON()))}return s}static of(s,u,a){let g=[],w=[],b=0,y=null;function x(T=!1){if(!T&&!g.length)return;b<u&&Da(g,u-b,-1);let j=new Wf(g,w);y=y?y.compose(j.map(y)):j,g=[],w=[],b=0}function C(T){if(Array.isArray(T))for(let j of T)C(j);else if(T instanceof Wf){if(T.length!=u)throw new RangeError(`Mismatched change set length (got ${T.length}, expected ${u})`);x(),y=y?y.compose(T.map(y)):T}else{let{from:j,to:N=j,insert:F}=T;if(j>N||j<0||N>u)throw new RangeError(`Invalid change range ${j} to ${N} (in doc of length ${u})`);let Q=F?typeof F=="string"?ho.of(F.split(a||A2e)):F:ho.empty,V=Q.length;if(j==N&&V==0)return;j<b&&x(),j>b&&Da(g,j-b,-1),Da(g,N-j,V),$5(w,g,Q),b=N}}return C(s),x(!y),y}static empty(s){return new Wf(s?[s,-1]:[],[])}static fromJSON(s){if(!Array.isArray(s))throw new RangeError("Invalid JSON representation of ChangeSet");let u=[],a=[];for(let g=0;g<s.length;g++){let w=s[g];if(typeof w=="number")u.push(w,-1);else{if(!Array.isArray(w)||typeof w[0]!="number"||w.some((b,y)=>y&&typeof b!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(w.length==1)u.push(w[0],0);else{for(;a.length<g;)a.push(ho.empty);a[g]=ho.of(w.slice(1)),u.push(w[0],a[g].length)}}}return new Wf(u,a)}static createSet(s,u){return new Wf(s,u)}}function Da(l,s,u,a=!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:a?(l[g]+=s,l[g+1]+=u):l.push(s,u)}function $5(l,s,u){if(u.length==0)return;let a=s.length-2>>1;if(a<l.length)l[l.length-1]=l[l.length-1].append(u);else{for(;l.length<a;)l.push(ho.empty);l.push(u)}}function M2e(l,s,u){let a=l.inserted;for(let g=0,w=0,b=0;b<l.sections.length;){let y=l.sections[b++],x=l.sections[b++];if(x<0)g+=y,w+=y;else{let C=g,T=w,j=ho.empty;for(;C+=y,T+=x,x&&a&&(j=j.append(a[b-2>>1])),!(u||b==l.sections.length||l.sections[b+1]<0);)y=l.sections[b++],x=l.sections[b++];s(g,C,w,T,j),g=C,w=T}}}function j2e(l,s,u,a=!1){let g=[],w=a?[]:null,b=new T$(l),y=new T$(s);for(let x=-1;;){if(b.done&&y.len||y.done&&b.len)throw new Error("Mismatched change set lengths");if(b.ins==-1&&y.ins==-1){let C=Math.min(b.len,y.len);Da(g,C,-1),b.forward(C),y.forward(C)}else if(y.ins>=0&&(b.ins<0||x==b.i||b.off==0&&(y.len<b.len||y.len==b.len&&!u))){let C=y.len;for(Da(g,y.ins,-1);C;){let T=Math.min(b.len,C);b.ins>=0&&x<b.i&&b.len<=T&&(Da(g,0,b.ins),w&&$5(w,g,b.text),x=b.i),b.forward(T),C-=T}y.next()}else if(b.ins>=0){let C=0,T=b.len;for(;T;)if(y.ins==-1){let j=Math.min(T,y.len);C+=j,T-=j,y.forward(j)}else if(y.ins==0&&y.len<T)T-=y.len,y.next();else break;Da(g,C,x<b.i?b.ins:0),w&&x<b.i&&$5(w,g,b.text),x=b.i,b.forward(b.len-T)}else{if(b.done&&y.done)return w?Wf.createSet(g,w):y2.create(g);throw new Error("Mismatched change set lengths")}}}function mbt(l,s,u=!1){let a=[],g=u?[]:null,w=new T$(l),b=new T$(s);for(let y=!1;;){if(w.done&&b.done)return g?Wf.createSet(a,g):y2.create(a);if(w.ins==0)Da(a,w.len,0,y),w.next();else if(b.len==0&&!b.done)Da(a,0,b.ins,y),g&&$5(g,a,b.text),b.next();else{if(w.done||b.done)throw new Error("Mismatched change set lengths");{let x=Math.min(w.len2,b.len),C=a.length;if(w.ins==-1){let T=b.ins==-1?-1:b.off?0:b.ins;Da(a,x,T,y),g&&T&&$5(g,a,b.text)}else b.ins==-1?(Da(a,w.off?0:w.len,x,y),g&&$5(g,a,w.textBit(x))):(Da(a,w.off?0:w.len,b.off?0:b.ins,y),g&&!b.off&&$5(g,a,b.text));y=(w.ins>x||b.ins>=0&&b.len>x)&&(y||a.length>C),w.forward2(x),b.forward(x)}}}}class T${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?ho.empty:s[u]}textBit(s){let{inserted:u}=this.set,a=this.i-2>>1;return a>=u.length&&!s?ho.empty:u[a].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 t9{constructor(s,u,a){this.from=s,this.to=u,this.flags=a}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 a,g;return this.empty?a=g=s.mapPos(this.from,u):(a=s.mapPos(this.from,1),g=s.mapPos(this.to,-1)),a==this.from&&g==this.to?this:new t9(a,g,this.flags)}extend(s,u=s){if(s<=this.anchor&&u>=this.anchor)return Xt.range(s,u);let a=Math.abs(s-this.anchor)>Math.abs(u-this.anchor)?s:u;return Xt.range(this.anchor,a)}eq(s,u=!1){return this.anchor==s.anchor&&this.head==s.head&&(!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 Xt.range(s.anchor,s.head)}static create(s,u,a){return new t9(s,u,a)}}class Xt{constructor(s,u){this.ranges=s,this.mainIndex=u}map(s,u=-1){return s.empty?this:Xt.create(this.ranges.map(a=>a.map(s,u)),this.mainIndex)}eq(s,u=!1){if(this.ranges.length!=s.ranges.length||this.mainIndex!=s.mainIndex)return!1;for(let a=0;a<this.ranges.length;a++)if(!this.ranges[a].eq(s.ranges[a],u))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new Xt([this.main],0)}addRange(s,u=!0){return Xt.create([s].concat(this.ranges),u?0:this.mainIndex+1)}replaceRange(s,u=this.mainIndex){let a=this.ranges.slice();return a[u]=s,Xt.create(a,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 Xt(s.ranges.map(u=>t9.fromJSON(u)),s.main)}static single(s,u=s){return new Xt([Xt.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 a=0,g=0;g<s.length;g++){let w=s[g];if(w.empty?w.from<=a:w.from<a)return Xt.normalized(s.slice(),u);a=w.to}return new Xt(s,u)}static cursor(s,u=0,a,g){return t9.create(s,s,(u==0?0:u<0?8:16)|(a==null?7:Math.min(6,a))|(g??16777215)<<6)}static range(s,u,a,g){let w=(a??16777215)<<6|(g==null?7:Math.min(6,g));return u<s?t9.create(u,s,48|w):t9.create(s,u,(u>s?8:0)|w)}static normalized(s,u=0){let a=s[u];s.sort((g,w)=>g.from-w.from),u=s.indexOf(a);for(let g=1;g<s.length;g++){let w=s[g],b=s[g-1];if(w.empty?w.from<=b.to:w.from<b.to){let y=b.from,x=Math.max(w.to,b.to);g<=u&&u--,s.splice(--g,2,w.anchor>w.head?Xt.range(x,y):Xt.range(y,x))}}return new Xt(s,u)}}function vbt(l,s){for(let u of l.ranges)if(u.to>s)throw new RangeError("Selection points outside of document")}let Xve=0;class si{constructor(s,u,a,g,w){this.combine=s,this.compareInput=u,this.compare=a,this.isStatic=g,this.id=Xve++,this.default=s([]),this.extensions=typeof w=="function"?w(this):w}get reader(){return this}static define(s={}){return new si(s.combine||(u=>u),s.compareInput||((u,a)=>u===a),s.compare||(s.combine?(u,a)=>u===a:Uve),!!s.static,s.enables)}of(s){return new NG([],this,0,s)}compute(s,u){if(this.isStatic)throw new Error("Can't compute a static facet");return new NG(s,this,1,u)}computeN(s,u){if(this.isStatic)throw new Error("Can't compute a static facet");return new NG(s,this,2,u)}from(s,u){return u||(u=a=>a),this.compute([s],a=>u(a.field(s)))}}function Uve(l,s){return l==s||l.length==s.length&&l.every((u,a)=>u===s[a])}class NG{constructor(s,u,a,g){this.dependencies=s,this.facet=u,this.type=a,this.value=g,this.id=Xve++}dynamicSlot(s){var u;let a=this.value,g=this.facet.compareInput,w=this.id,b=s[w]>>1,y=this.type==2,x=!1,C=!1,T=[];for(let j of this.dependencies)j=="doc"?x=!0:j=="selection"?C=!0:(((u=s[j.id])!==null&&u!==void 0?u:1)&1)==0&&T.push(s[j.id]);return{create(j){return j.values[b]=a(j),1},update(j,N){if(x&&N.docChanged||C&&(N.docChanged||N.selection)||P2e(j,T)){let F=a(j);if(y?!kdt(F,j.values[b],g):!g(F,j.values[b]))return j.values[b]=F,1}return 0},reconfigure:(j,N)=>{let F,Q=N.config.address[w];if(Q!=null){let V=iV(N,Q);if(this.dependencies.every(ee=>ee instanceof si?N.facet(ee)===j.facet(ee):ee instanceof xh?N.field(ee,!1)==j.field(ee,!1):!0)||(y?kdt(F=a(j),V,g):g(F=a(j),V)))return j.values[b]=V,0}else F=a(j);return j.values[b]=F,1}}}}function kdt(l,s,u){if(l.length!=s.length)return!1;for(let a=0;a<l.length;a++)if(!u(l[a],s[a]))return!1;return!0}function P2e(l,s){let u=!1;for(let a of s)b$(l,a)&1&&(u=!0);return u}function kYt(l,s,u){let a=u.map(x=>l[x.id]),g=u.map(x=>x.type),w=a.filter(x=>!(x&1)),b=l[s.id]>>1;function y(x){let C=[];for(let T=0;T<a.length;T++){let j=iV(x,a[T]);if(g[T]==2)for(let N of j)C.push(N);else C.push(j)}return s.combine(C)}return{create(x){for(let C of a)b$(x,C);return x.values[b]=y(x),1},update(x,C){if(!P2e(x,w))return 0;let T=y(x);return s.compare(T,x.values[b])?0:(x.values[b]=T,1)},reconfigure(x,C){let T=P2e(x,a),j=C.config.facets[s.id],N=C.facet(s);if(j&&!T&&Uve(u,j))return x.values[b]=N,0;let F=y(x);return s.compare(F,N)?(x.values[b]=N,0):(x.values[b]=F,1)}}}const nG=si.define({static:!0});class xh{constructor(s,u,a,g,w){this.id=s,this.createF=u,this.updateF=a,this.compareF=g,this.spec=w,this.provides=void 0}static define(s){let u=new xh(Xve++,s.create,s.update,s.compare||((a,g)=>a===g),s);return s.provide&&(u.provides=s.provide(u)),u}create(s){let u=s.facet(nG).find(a=>a.field==this);return((u==null?void 0:u.create)||this.createF)(s)}slot(s){let u=s[this.id]>>1;return{create:a=>(a.values[u]=this.create(a),1),update:(a,g)=>{let w=a.values[u],b=this.updateF(w,g);return this.compareF(w,b)?0:(a.values[u]=b,1)},reconfigure:(a,g)=>{let w=a.facet(nG),b=g.facet(nG),y;return(y=w.find(x=>x.field==this))&&y!=b.find(x=>x.field==this)?(a.values[u]=y.create(a),1):g.config.address[this.id]!=null?(a.values[u]=g.field(this),0):(a.values[u]=this.create(a),1)}}}init(s){return[this,nG.of({field:this,create:s})]}get extension(){return this}}const Y8={lowest:4,low:3,default:2,high:1,highest:0};function YN(l){return s=>new ybt(s,l)}const X5={highest:YN(Y8.highest),high:YN(Y8.high),default:YN(Y8.default),low:YN(Y8.low),lowest:YN(Y8.lowest)};class ybt{constructor(s,u){this.inner=s,this.prec=u}}class RV{of(s){return new D2e(this,s)}reconfigure(s){return RV.reconfigure.of({compartment:this,extension:s})}get(s){return s.config.compartments.get(this)}}class D2e{constructor(s,u){this.compartment=s,this.inner=u}}class nV{constructor(s,u,a,g,w,b){for(this.base=s,this.compartments=u,this.dynamicSlots=a,this.address=g,this.staticValues=w,this.facets=b,this.statusTemplate=[];this.statusTemplate.length<a.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,a){let g=[],w=Object.create(null),b=new Map;for(let N of SYt(s,u,b))N instanceof xh?g.push(N):(w[N.facet.id]||(w[N.facet.id]=[])).push(N);let y=Object.create(null),x=[],C=[];for(let N of g)y[N.id]=C.length<<1,C.push(F=>N.slot(F));let T=a==null?void 0:a.config.facets;for(let N in w){let F=w[N],Q=F[0].facet,V=T&&T[N]||[];if(F.every(ee=>ee.type==0))if(y[Q.id]=x.length<<1|1,Uve(V,F))x.push(a.facet(Q));else{let ee=Q.combine(F.map(te=>te.value));x.push(a&&Q.compare(ee,a.facet(Q))?a.facet(Q):ee)}else{for(let ee of F)ee.type==0?(y[ee.id]=x.length<<1|1,x.push(ee.value)):(y[ee.id]=C.length<<1,C.push(te=>ee.dynamicSlot(te)));y[Q.id]=C.length<<1,C.push(ee=>kYt(ee,Q,F))}}let j=C.map(N=>N(y));return new nV(s,b,j,y,x,w)}}function SYt(l,s,u){let a=[[],[],[],[],[]],g=new Map;function w(b,y){let x=g.get(b);if(x!=null){if(x<=y)return;let C=a[x].indexOf(b);C>-1&&a[x].splice(C,1),b instanceof D2e&&u.delete(b.compartment)}if(g.set(b,y),Array.isArray(b))for(let C of b)w(C,y);else if(b instanceof D2e){if(u.has(b.compartment))throw new RangeError("Duplicate use of compartment in extensions");let C=s.get(b.compartment)||b.inner;u.set(b.compartment,C),w(C,y)}else if(b instanceof ybt)w(b.inner,b.prec);else if(b instanceof xh)a[y].push(b),b.provides&&w(b.provides,y);else if(b instanceof NG)a[y].push(b),b.facet.extensions&&w(b.facet.extensions,Y8.default);else{let C=b.extension;if(!C)throw new Error(`Unrecognized extension value in extension set (${b}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);w(C,y)}}return w(l,Y8.default),a.reduce((b,y)=>b.concat(y))}function b$(l,s){if(s&1)return 2;let u=s>>1,a=l.status[u];if(a==4)throw new Error("Cyclic dependency between fields and/or facets");if(a&2)return a;l.status[u]=4;let g=l.computeSlot(l,l.config.dynamicSlots[u]);return l.status[u]=2|g}function iV(l,s){return s&1?l.config.staticValues[s>>1]:l.values[s>>1]}const Obt=si.define(),I2e=si.define({combine:l=>l.some(s=>s),static:!0}),kbt=si.define({combine:l=>l.length?l[0]:void 0,static:!0}),Sbt=si.define(),xbt=si.define(),Ebt=si.define(),Cbt=si.define({combine:l=>l.length?l[0]:!1});class S2{constructor(s,u){this.type=s,this.value=u}static define(){return new xYt}}class xYt{of(s){return new S2(this,s)}}class EYt{constructor(s){this.map=s}of(s){return new Lr(this,s)}}class Lr{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 Lr(this.type,u)}is(s){return this.type==s}static define(s={}){return new EYt(s.map||(u=>u))}static mapEffects(s,u){if(!s.length)return s;let a=[];for(let g of s){let w=g.map(u);w&&a.push(w)}return a}}Lr.reconfigure=Lr.define();Lr.appendConfig=Lr.define();class df{constructor(s,u,a,g,w,b){this.startState=s,this.changes=u,this.selection=a,this.effects=g,this.annotations=w,this.scrollIntoView=b,this._doc=null,this._state=null,a&&vbt(a,u.newLength),w.some(y=>y.type==df.time)||(this.annotations=w.concat(df.time.of(Date.now())))}static create(s,u,a,g,w,b){return new df(s,u,a,g,w,b)}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(df.userEvent);return!!(u&&(u==s||u.length>s.length&&u.slice(0,s.length)==s&&u[s.length]=="."))}}df.time=S2.define();df.userEvent=S2.define();df.addToHistory=S2.define();df.remote=S2.define();function CYt(l,s){let u=[];for(let a=0,g=0;;){let w,b;if(a<l.length&&(g==s.length||s[g]>=l[a]))w=l[a++],b=l[a++];else if(g<s.length)w=s[g++],b=s[g++];else return u;!u.length||u[u.length-1]<w?u.push(w,b):u[u.length-1]<b&&(u[u.length-1]=b)}}function Tbt(l,s,u){var a;let g,w,b;return u?(g=s.changes,w=Wf.empty(s.changes.length),b=l.changes.compose(s.changes)):(g=s.changes.map(l.changes),w=l.changes.mapDesc(s.changes,!0),b=l.changes.compose(g)),{changes:b,selection:s.selection?s.selection.map(w):(a=l.selection)===null||a===void 0?void 0:a.map(g),effects:Lr.mapEffects(l.effects,g).concat(Lr.mapEffects(s.effects,w)),annotations:l.annotations.length?l.annotations.concat(s.annotations):s.annotations,scrollIntoView:l.scrollIntoView||s.scrollIntoView}}function N2e(l,s,u){let a=s.selection,g=tC(s.annotations);return s.userEvent&&(g=g.concat(df.userEvent.of(s.userEvent))),{changes:s.changes instanceof Wf?s.changes:Wf.of(s.changes||[],u,l.facet(kbt)),selection:a&&(a instanceof Xt?a:Xt.single(a.anchor,a.head)),effects:tC(s.effects),annotations:g,scrollIntoView:!!s.scrollIntoView}}function Abt(l,s,u){let a=N2e(l,s.length?s[0]:{},l.doc.length);s.length&&s[0].filter===!1&&(u=!1);for(let w=1;w<s.length;w++){s[w].filter===!1&&(u=!1);let b=!!s[w].sequential;a=Tbt(a,N2e(l,s[w],b?a.changes.newLength:l.doc.length),b)}let g=df.create(l,a.changes,a.selection,a.effects,a.annotations,a.scrollIntoView);return AYt(u?TYt(g):g)}function TYt(l){let s=l.startState,u=!0;for(let g of s.facet(Sbt)){let w=g(l);if(w===!1){u=!1;break}Array.isArray(w)&&(u=u===!0?w:CYt(u,w))}if(u!==!0){let g,w;if(u===!1)w=l.changes.invertedDesc,g=Wf.empty(s.doc.length);else{let b=l.changes.filter(u);g=b.changes,w=b.filtered.mapDesc(b.changes).invertedDesc}l=df.create(s,g,l.selection&&l.selection.map(w),Lr.mapEffects(l.effects,w),l.annotations,l.scrollIntoView)}let a=s.facet(xbt);for(let g=a.length-1;g>=0;g--){let w=a[g](l);w instanceof df?l=w:Array.isArray(w)&&w.length==1&&w[0]instanceof df?l=w[0]:l=Abt(s,tC(w),!1)}return l}function AYt(l){let s=l.startState,u=s.facet(Ebt),a=l;for(let g=u.length-1;g>=0;g--){let w=u[g](l);w&&Object.keys(w).length&&(a=Tbt(a,N2e(s,w,l.changes.newLength),!0))}return a==l?l:df.create(s,l.changes,l.selection,a.effects,a.annotations,a.scrollIntoView)}const MYt=[];function tC(l){return l==null?MYt:Array.isArray(l)?l:[l]}var Tu=function(l){return l[l.Word=0]="Word",l[l.Space=1]="Space",l[l.Other=2]="Other",l}(Tu||(Tu={}));const jYt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let $2e;try{$2e=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function PYt(l){if($2e)return $2e.test(l);for(let s=0;s<l.length;s++){let u=l[s];if(/\w/.test(u)||u>""&&(u.toUpperCase()!=u.toLowerCase()||jYt.test(u)))return!0}return!1}function DYt(l){return s=>{if(!/\S/.test(s))return Tu.Space;if(PYt(s))return Tu.Word;for(let u=0;u<l.length;u++)if(s.indexOf(l[u])>-1)return Tu.Word;return Tu.Other}}class ro{constructor(s,u,a,g,w,b){this.config=s,this.doc=u,this.selection=a,this.values=g,this.status=s.statusTemplate.slice(),this.computeSlot=w,b&&(b._state=this);for(let y=0;y<this.config.dynamicSlots.length;y++)b$(this,y<<1);this.computeSlot=null}field(s,u=!0){let a=this.config.address[s.id];if(a==null){if(u)throw new RangeError("Field is not present in this state");return}return b$(this,a),iV(this,a)}update(...s){return Abt(this,s,!0)}applyTransaction(s){let u=this.config,{base:a,compartments:g}=u;for(let y of s.effects)y.is(RV.reconfigure)?(u&&(g=new Map,u.compartments.forEach((x,C)=>g.set(C,x)),u=null),g.set(y.value.compartment,y.value.extension)):y.is(Lr.reconfigure)?(u=null,a=y.value):y.is(Lr.appendConfig)&&(u=null,a=tC(a).concat(y.value));let w;u?w=s.startState.values.slice():(u=nV.resolve(a,g,this),w=new ro(u,this.doc,this.selection,u.dynamicSlots.map(()=>null),(x,C)=>C.reconfigure(x,this),null).values);let b=s.startState.facet(I2e)?s.newSelection:s.newSelection.asSingle();new ro(u,s.newDoc,b,w,(y,x)=>x.update(y,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:Xt.cursor(u.from+s.length)}))}changeByRange(s){let u=this.selection,a=s(u.ranges[0]),g=this.changes(a.changes),w=[a.range],b=tC(a.effects);for(let y=1;y<u.ranges.length;y++){let x=s(u.ranges[y]),C=this.changes(x.changes),T=C.map(g);for(let N=0;N<y;N++)w[N]=w[N].map(T);let j=g.mapDesc(C,!0);w.push(x.range.map(j)),g=g.compose(T),b=Lr.mapEffects(b,T).concat(Lr.mapEffects(tC(x.effects),j))}return{changes:g,selection:Xt.create(w,u.mainIndex),effects:b}}changes(s=[]){return s instanceof Wf?s:Wf.of(s,this.doc.length,this.facet(ro.lineSeparator))}toText(s){return ho.of(s.split(this.facet(ro.lineSeparator)||A2e))}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:(b$(this,u),iV(this,u))}toJSON(s){let u={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(s)for(let a in s){let g=s[a];g instanceof xh&&this.config.address[g.id]!=null&&(u[a]=g.spec.toJSON(this.field(s[a]),this))}return u}static fromJSON(s,u={},a){if(!s||typeof s.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let g=[];if(a){for(let w in a)if(Object.prototype.hasOwnProperty.call(s,w)){let b=a[w],y=s[w];g.push(b.init(x=>b.spec.fromJSON(y,x)))}}return ro.create({doc:s.doc,selection:Xt.fromJSON(s.selection),extensions:u.extensions?g.concat([u.extensions]):g})}static create(s={}){let u=nV.resolve(s.extensions||[],new Map),a=s.doc instanceof ho?s.doc:ho.of((s.doc||"").split(u.staticFacet(ro.lineSeparator)||A2e)),g=s.selection?s.selection instanceof Xt?s.selection:Xt.single(s.selection.anchor,s.selection.head):Xt.single(0);return vbt(g,a.length),u.staticFacet(I2e)||(g=g.asSingle()),new ro(u,a,g,u.dynamicSlots.map(()=>null),(w,b)=>b.create(w),null)}get tabSize(){return this.facet(ro.tabSize)}get lineBreak(){return this.facet(ro.lineSeparator)||`
|
|
@@ -63,11 +63,11 @@ Consider installing the package or pass your own 'workerFactory' to ELK's constr
|
|
|
63
63
|
`))&&(a=a.trim())):g.ignoreNewlineAtEof&&!g.newlineIsToken&&(u.endsWith(`
|
|
64
64
|
`)&&(u=u.slice(0,-1)),a.endsWith(`
|
|
65
65
|
`)&&(a=a.slice(0,-1))),l.prototype.equals.call(this,u,a,g)},s}(G5);new Yon;function Fmt(l,s){s.stripTrailingCr&&(l=l.replace(/\r\n/g,`
|
|
66
|
-
`));var u=[],a=l.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(var g=0;g<a.length;g++){var w=a[g];g%2&&!s.newlineIsToken?u[u.length-1]+=w:u.push(w)}return u}var Zon=function(){var l=function(s,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var w in g)Object.prototype.hasOwnProperty.call(g,w)&&(a[w]=g[w])},l(s,u)};return function(s,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(s,u);function a(){this.constructor=s}s.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}(),Jon=function(l){Zon(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.tokenize=function(u){return u.split(new RegExp("(?<=[.!?])(\\s+|$)"))},s}(G5);new Jon;var ecn=function(){var l=function(s,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var w in g)Object.prototype.hasOwnProperty.call(g,w)&&(a[w]=g[w])},l(s,u)};return function(s,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(s,u);function a(){this.constructor=s}s.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}(),tcn=function(l){ecn(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.tokenize=function(u){return u.split(/([{}:;,]|\s+)/)},s}(G5);new tcn;var ncn=function(){var l=function(s,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var w in g)Object.prototype.hasOwnProperty.call(g,w)&&(a[w]=g[w])},l(s,u)};return function(s,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(s,u);function a(){this.constructor=s}s.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}(),icn=function(l){ncn(s,l);function s(){var u=l!==null&&l.apply(this,arguments)||this;return u.tokenize=Fmt,u}return Object.defineProperty(s.prototype,"useLongestToken",{get:function(){return!0},enumerable:!1,configurable:!0}),s.prototype.castInput=function(u,a){var g=a.undefinedReplacement,w=a.stringifyReplacer,b=w===void 0?function(y,x){return typeof x>"u"?g:x}:w;return typeof u=="string"?u:JSON.stringify(Ave(u,null,null,b),null," ")},s.prototype.equals=function(u,a,g){return l.prototype.equals.call(this,u.replace(/,([\r\n])/g,"$1"),a.replace(/,([\r\n])/g,"$1"),g)},s}(G5);new icn;function Ave(l,s,u,a,g){s=s||[],u=u||[],a&&(l=a(g===void 0?"":g,l));var w;for(w=0;w<s.length;w+=1)if(s[w]===l)return u[w];var b;if(Object.prototype.toString.call(l)==="[object Array]"){for(s.push(l),b=new Array(l.length),u.push(b),w=0;w<l.length;w+=1)b[w]=Ave(l[w],s,u,a,String(w));return s.pop(),u.pop(),b}if(l&&l.toJSON&&(l=l.toJSON()),typeof l=="object"&&l!==null){s.push(l),b={},u.push(b);var y=[],x;for(x in l)Object.prototype.hasOwnProperty.call(l,x)&&y.push(x);for(y.sort(),w=0;w<y.length;w+=1)x=y[w],b[x]=Ave(l[x],s,u,a,x);s.pop(),u.pop()}else b=l;return b}var rcn=function(){var l=function(s,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var w in g)Object.prototype.hasOwnProperty.call(g,w)&&(a[w]=g[w])},l(s,u)};return function(s,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(s,u);function a(){this.constructor=s}s.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}(),scn=function(l){rcn(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.tokenize=function(u){return u.slice()},s.prototype.join=function(u){return u},s.prototype.removeEmpty=function(u){return u},s}(G5);new scn;function ocn({type:l,dialect:s="",content:u="",className:a,keymaps:g,extensions:w,onChange:b}){const{mode:y}=fKt(),x=MV(rt=>rt.models),C=V8(rt=>rt.engine),T=V8(rt=>rt.dialects),[j,N]=Ne.useState(),[F,Q]=Ne.useState(),V=Ne.useCallback(rt=>{rt.data.topic==="dialect"&&Q(rt.data.payload)},[]),ee=Ne.useMemo(()=>[dmt({selectOnOpen:!1,maxRenderedOptions:50}),y===hKt.Dark?Irn:Nrn,l===s$.PY&&oon(),l===s$.YAML&&bV.define(E0t),l===s$.YML&&bV.define(E0t)].filter(Boolean),[l,y]),te=Ne.useMemo(()=>T.map(rt=>rt.dialect_title),[T]),le=Ne.useMemo(()=>{const rt=[zwt,mwt,...g??[],[{key:"Tab",preventDefault:!0,run($e){return Yi(trn($e.state))?k3e($e):omt($e)}}]].flat().reduce(($e,ut)=>(Ss(ut.key)&&($e[ut.key]=ut),$e),{});return yC.of(Object.values(rt))},[g]),Se=Ne.useMemo(()=>Array.from(x.values()),[x]),be=Ne.useMemo(()=>Se.map(rt=>({label:rt.name,type:"model"})),[Se]),xe=Ne.useMemo(()=>Array.from(new Set(Se.flatMap(rt=>rt.columns.map($e=>$e.name)))).map(rt=>({label:rt,type:"column"})),[Se]),Me=Ne.useMemo(()=>[Un.lineWrapping,...ee,w,l===s$.SQL&&_on(x,be,xe,F,te),le].filter(Boolean).flat(),[x,l,te,F,ee,w,le,be,xe]);Ne.useEffect(()=>(C.postMessage({topic:"dialects"}),()=>{Rmt()}),[]),Ne.useEffect(()=>(C.addEventListener("message",V),()=>{C.removeEventListener("message",V)}),[V]),Ne.useEffect(()=>{C.postMessage({topic:"dialect",payload:s})},[s]),Ne.useEffect(()=>{_e(u)},[j,u,Me]);function _e(rt=""){if(Yi(j))return;const ut=j.state.doc.toString();if(ut===rt)return;const st=[];if(ut===wKt)st.push({from:0,to:0,insert:rt});else{const ht=Kon(ut,rt);let pt=0;ht.forEach(ce=>{const Ze=ce.count??0;if(Ss(ce.removed)){const et=pt+Ze,vt={from:pt,to:et};pt=et,st.push(vt)}else Ss(ce.added)?st.push({from:pt,to:pt,insert:ce.value}):pt=pt+Ze})}j.dispatch({changes:st,scrollIntoView:!0})}return Ei.jsx("div",{className:ml("flex w-full h-full",a),children:Ei.jsx(vmt,{height:"100%",width:"100%",className:ml("flex w-full h-full font-mono text-xs",a),indentWithTab:!1,extensions:Me,onChange:b,readOnly:Yi(b),onCreateEditor:N,basicSetup:{autocompletion:!1,defaultKeymap:!1},autoFocus:!0})})}function
|
|
66
|
+
`));var u=[],a=l.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(var g=0;g<a.length;g++){var w=a[g];g%2&&!s.newlineIsToken?u[u.length-1]+=w:u.push(w)}return u}var Zon=function(){var l=function(s,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var w in g)Object.prototype.hasOwnProperty.call(g,w)&&(a[w]=g[w])},l(s,u)};return function(s,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(s,u);function a(){this.constructor=s}s.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}(),Jon=function(l){Zon(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.tokenize=function(u){return u.split(new RegExp("(?<=[.!?])(\\s+|$)"))},s}(G5);new Jon;var ecn=function(){var l=function(s,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var w in g)Object.prototype.hasOwnProperty.call(g,w)&&(a[w]=g[w])},l(s,u)};return function(s,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(s,u);function a(){this.constructor=s}s.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}(),tcn=function(l){ecn(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.tokenize=function(u){return u.split(/([{}:;,]|\s+)/)},s}(G5);new tcn;var ncn=function(){var l=function(s,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var w in g)Object.prototype.hasOwnProperty.call(g,w)&&(a[w]=g[w])},l(s,u)};return function(s,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(s,u);function a(){this.constructor=s}s.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}(),icn=function(l){ncn(s,l);function s(){var u=l!==null&&l.apply(this,arguments)||this;return u.tokenize=Fmt,u}return Object.defineProperty(s.prototype,"useLongestToken",{get:function(){return!0},enumerable:!1,configurable:!0}),s.prototype.castInput=function(u,a){var g=a.undefinedReplacement,w=a.stringifyReplacer,b=w===void 0?function(y,x){return typeof x>"u"?g:x}:w;return typeof u=="string"?u:JSON.stringify(Ave(u,null,null,b),null," ")},s.prototype.equals=function(u,a,g){return l.prototype.equals.call(this,u.replace(/,([\r\n])/g,"$1"),a.replace(/,([\r\n])/g,"$1"),g)},s}(G5);new icn;function Ave(l,s,u,a,g){s=s||[],u=u||[],a&&(l=a(g===void 0?"":g,l));var w;for(w=0;w<s.length;w+=1)if(s[w]===l)return u[w];var b;if(Object.prototype.toString.call(l)==="[object Array]"){for(s.push(l),b=new Array(l.length),u.push(b),w=0;w<l.length;w+=1)b[w]=Ave(l[w],s,u,a,String(w));return s.pop(),u.pop(),b}if(l&&l.toJSON&&(l=l.toJSON()),typeof l=="object"&&l!==null){s.push(l),b={},u.push(b);var y=[],x;for(x in l)Object.prototype.hasOwnProperty.call(l,x)&&y.push(x);for(y.sort(),w=0;w<y.length;w+=1)x=y[w],b[x]=Ave(l[x],s,u,a,x);s.pop(),u.pop()}else b=l;return b}var rcn=function(){var l=function(s,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var w in g)Object.prototype.hasOwnProperty.call(g,w)&&(a[w]=g[w])},l(s,u)};return function(s,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(s,u);function a(){this.constructor=s}s.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}(),scn=function(l){rcn(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.tokenize=function(u){return u.slice()},s.prototype.join=function(u){return u},s.prototype.removeEmpty=function(u){return u},s}(G5);new scn;function ocn({type:l,dialect:s="",content:u="",className:a,keymaps:g,extensions:w,onChange:b}){const{mode:y}=fKt(),x=MV(rt=>rt.models),C=V8(rt=>rt.engine),T=V8(rt=>rt.dialects),[j,N]=Ne.useState(),[F,Q]=Ne.useState(),V=Ne.useCallback(rt=>{rt.data.topic==="dialect"&&Q(rt.data.payload)},[]),ee=Ne.useMemo(()=>[dmt({selectOnOpen:!1,maxRenderedOptions:50}),y===hKt.Dark?Irn:Nrn,l===s$.PY&&oon(),l===s$.YAML&&bV.define(E0t),l===s$.YML&&bV.define(E0t)].filter(Boolean),[l,y]),te=Ne.useMemo(()=>T.map(rt=>rt.dialect_title),[T]),le=Ne.useMemo(()=>{const rt=[zwt,mwt,...g??[],[{key:"Tab",preventDefault:!0,run($e){return Yi(trn($e.state))?k3e($e):omt($e)}}]].flat().reduce(($e,ut)=>(Ss(ut.key)&&($e[ut.key]=ut),$e),{});return yC.of(Object.values(rt))},[g]),Se=Ne.useMemo(()=>Array.from(x.values()),[x]),be=Ne.useMemo(()=>Se.map(rt=>({label:rt.name,type:"model"})),[Se]),xe=Ne.useMemo(()=>Array.from(new Set(Se.flatMap(rt=>rt.columns.map($e=>$e.name)))).map(rt=>({label:rt,type:"column"})),[Se]),Me=Ne.useMemo(()=>[Un.lineWrapping,...ee,w,l===s$.SQL&&_on(x,be,xe,F,te),le].filter(Boolean).flat(),[x,l,te,F,ee,w,le,be,xe]);Ne.useEffect(()=>(C.postMessage({topic:"dialects"}),()=>{Rmt()}),[]),Ne.useEffect(()=>(C.addEventListener("message",V),()=>{C.removeEventListener("message",V)}),[V]),Ne.useEffect(()=>{C.postMessage({topic:"dialect",payload:s})},[s]),Ne.useEffect(()=>{_e(u)},[j,u,Me]);function _e(rt=""){if(Yi(j))return;const ut=j.state.doc.toString();if(ut===rt)return;const st=[];if(ut===wKt)st.push({from:0,to:0,insert:rt});else{const ht=Kon(ut,rt);let pt=0;ht.forEach(ce=>{const Ze=ce.count??0;if(Ss(ce.removed)){const et=pt+Ze,vt={from:pt,to:et};pt=et,st.push(vt)}else Ss(ce.added)?st.push({from:pt,to:pt,insert:ce.value}):pt=pt+Ze})}j.dispatch({changes:st,scrollIntoView:!0})}return Ei.jsx("div",{className:ml("flex w-full h-full",a),children:Ei.jsx(vmt,{height:"100%",width:"100%",className:ml("flex w-full h-full font-mono text-xs",a),indentWithTab:!1,extensions:Me,onChange:b,readOnly:Yi(b),onCreateEditor:N,basicSetup:{autocompletion:!1,defaultKeymap:!1},autoFocus:!0})})}function Qcn({path:l,children:s,keymaps:u}){const a=cKt(),g=f2e(F=>F.files),w=f2e(F=>F.refreshFiles),{refetch:b,isFetching:y,cancel:x}=uKt(l),C=lKt(a),T=Ne.useCallback(z0t(function(Q){C.mutate({path:l,body:{content:Q.state.doc.toString()}})},500,!0),[l]),j=Ne.useMemo(()=>(u??[]).concat([{key:"Mod-s",preventDefault:!0,run(F){return T(F),!0}}]),[u,T]);Ne.useEffect(()=>(b().then(({data:F})=>{if(Yi(F))return;const Q=g.get(F.path);Yi(Q)?g.set(l,new pKt(F)):Q.update(F),w(Array.from(g.values()))}),()=>{x()}),[l]);const N=g.get(l);return y?Ei.jsx("div",{className:"flex justify-center items-center w-full h-full",children:Ei.jsxs(K0t,{className:"inline-block",children:[Ei.jsx(W0t,{className:"w-5 h-5 border border-neutral-10 mr-4"}),Ei.jsx("h3",{className:"text-xl",children:"Waiting for File..."})]})}):Yi(N)?Ei.jsx("div",{className:"flex justify-center items-center w-full h-full",children:Ei.jsx("h3",{className:"text-xl",children:"File Not Found"})}):s({file:N,keymaps:j})}function ccn(l,s){var g;if(Yi(l.target))return;const u=l.target,a=u.getAttribute("model")??((g=u.parentElement)==null?void 0:g.getAttribute("model"));if(!Yi(a))return s.get(a)}function ucn(l,s){var g;if(Yi(l.target))return;const u=l.target,a=u.getAttribute("column")??((g=u.parentElement)==null?void 0:g.getAttribute("column"));if(!Yi(a))return s.columns.find(w=>w.name===a)}function L0t(l,s,u,a,g){const w=[],b=Array.from(u),x=Array.from(new Set(l.values())).map(N=>N.name),C=(g==null?void 0:g.columns.map(N=>N.name.toLowerCase()))??[],T=new Set([".","(","["," ",`
|
|
67
67
|
`]),j=new Set([":",")",",","]"," ",`
|
|
68
68
|
`]);for(const N of s.visibleRanges)F0t(x,s.state.doc.sliceString(N.from,N.to),N,({from:F,to:Q,name:V})=>{w.push(lcn({model:V,isActionMode:a,isActiveModel:(g==null?void 0:g.name)===V}).range(F,Q))}),F0t(Yi(g)?b:C,s.state.doc.sliceString(N.from,N.to),N,({from:F,to:Q,key:V})=>{const ee=s.state.doc.sliceString(F,Q),te=s.state.doc.sliceString(F-1,Q+1),le=s.state.doc.sliceString(F-1,F),Se=s.state.doc.sliceString(Q,Q+1);Ss(le)&&Lo(T.has(le))||Ss(Se)&&Lo(j.has(Se))||w.push(fcn({column:ee,isOriginalColumn:hcn(te),isActiveModel:C.includes(V),isActionMode:a}).range(F,Q))});return Pi.set(w.sort((N,F)=>N.from-F.from))}function F0t(l,s,u,a){const g=new Set;for(const w of l){const b=w.toLowerCase();if(g.has(b))continue;g.add(b);const y=new RegExp(`\\b${w}\\b`,"ig"),x=new RegExp(`\\b${acn(w)}\\b`,"ig");let C;for(;Ss(C=x.exec(s)??y.exec(s));){const T=u.from+C.index,j=T+C[0].length,N={from:T,to:j,name:w,key:b};Ss(a)&&a(N)}}}function lcn({model:l,isActionMode:s,isActiveModel:u}){return Pi.mark({attributes:{class:ml("sqlmesh-model",u&&"--is-active-model",s&&"--is-action-mode"),model:l}})}function fcn({column:l,isOriginalColumn:s,isActionMode:u,isActiveModel:a}){return Pi.mark({attributes:{class:ml("sqlmesh-model__column",s?"--is-original":"--is-alias",a&&"--is-active-model",u&&"--is-action-mode"),column:l}})}function hcn(l){return l.startsWith(".")||l.endsWith(":")||l.startsWith("(")||l.endsWith(")")}function acn(l){return l.includes('"')?l:l.split(".").map(s=>`"${s}"`).join(".")}function dcn(l,s,u,a){return yl.fromClass(class{constructor(w){yat(this,"decorations",Pi.set([]));this.view=w,this.decorations=L0t(l,w,s,u,a)}update(w){this.decorations=L0t(l,w.view,s,u,a)}},{decorations:g=>g.decorations})}function c2e(l){return Un.domEventHandlers(l)}function gcn(l){return Ipt((s,u,a)=>{const{from:g,to:w,text:b}=s.state.doc.lineAt(u);let y=u,x=u;for(;y>g&&/\w|\./.test(b[y-g-1]);)y--;for(;x<w&&/\w|\./.test(b[x-g]);)x++;if(y===u&&a<0||x===u&&a>0)return null;const C=s.state.doc.sliceString(y,x),T=l.get(C);return Yi(T)?null:{pos:y,end:x,above:!0,create(){const j=document.createElement("div"),N=`
|
|
69
69
|
<div class="flex items-center">
|
|
70
70
|
<span>Model Name:</span>
|
|
71
71
|
<span class="px-2 py-1 inline-block ml-1 bg-alternative-100 text-alternative-500 rounded">${T.name}</span>
|
|
72
72
|
</div>
|
|
73
|
-
`;return j.className="text-xs font-bold px-3 py-3 bg-white border-2 border-secondary-100 rounded outline-none shadow-lg mb-2",j.innerHTML=N,{dom:j}}}},{hoverTime:50})}function Hcn(){const l=MV(C=>C.addConfirmation),s=V8(C=>C.tab),u=V8(C=>C.selectTab),a=V8(C=>C.closeTab),g=V8(C=>C.createTab),w=V8(C=>C.addTab),b=s==null?void 0:s.file,y=Ne.useCallback(function(){Yi(b)||(aKt(b.isChanged)?l({headline:"Closing Tab",description:"All unsaved changes will be lost. Do you want to close the tab anyway?",yesText:"Yes, Close Tab",noText:"No, Cancel",action:()=>{a(b)}}):a(b))},[b]);return Ne.useMemo(()=>Yi(b)?[]:[{key:"Shift-Mod-.",preventDefault:!0,run(){const C=g();return w(C),u(C),!0}},{key:"Shift-Mod-,",preventDefault:!0,run(){return y(),!0}}],[b,u,a,g,w])}function bcn(l,s,u){const{lineage:a}=oR(),g=MV(T=>T.models),w=f2e(T=>T.files),b=Yi(l)?void 0:g.get(l),[y,x]=Ne.useState(!1);return Ne.useMemo(()=>{const T=new Set(Yi(a)||X0t(a)?Array.from(new Set(g.values())).flatMap(F=>F.columns.map(Q=>Q.name)):Object.keys(a).flatMap(F=>{var Q;return(Q=g.get(F))==null?void 0:Q.columns.map(V=>V.name)}).filter(Boolean));function j(F){if(F.metaKey){const Q=ccn(F,g);if(Yi(Q))return;s==null||s(Q)}}function N(F){if(F.metaKey){if(Yi(b))return;const Q=ucn(F,b);if(Yi(Q))return;u==null||u(b,Q)}}return[g.size>0&&y&&gcn(g),c2e({keydown:F=>{F.metaKey&&x(!0)},keyup:F=>{Lo(F.metaKey)&&x(!1)}}),Ss(s)&&c2e({click:j}),Ss(u)&&c2e({click:N}),dcn(g,T,y,b)].filter(Boolean)},[s,u,b,g,w,y])}function pcn({nodeId:l,columns:s,disabled:u,className:a,limit:g=5,withHandles:w=!1,withSource:b=!1,withDescription:y=!0,maxHeight:x="50vh"}){const{mainNode:C,connections:T,isActiveColumn:j,setConnections:N,manuallySelectedColumn:F,setManuallySelectedColumn:Q,setLineage:V,removeActiveEdges:ee,addActiveEdges:te,lineage:le,lineageCache:Se,setLineageCache:be}=oR(),[xe=[],Me=[]]=Ne.useMemo(()=>{const ut=[],st=[];return s.forEach(ht=>{j(l,ht.name)?ut.push(ht):st.push(ht)}),[ut,st]},[l,s,j]);function _e(ut={}){let st=Se,ht,pt;if(Yi(Se)){const vt=Yi(C)?void 0:le[C]??(Se==null?void 0:Se[C]);st=le,ht=new Map,pt=Yi(C)||Yi(vt)?{}:{[C]:{models:[]}}}else ht=T,pt=structuredClone(le);const{connections:ce,activeEdges:Ze}=Scn(ht,ut);ce.size===0&&Ze.length===0?(pt=structuredClone(le),st=void 0):(N(ce),te(Ze));const et=kcn(pt,ut);be(st),V(et)}const rt=Ne.useCallback(function(st){if(Yi(F))return!1;const[ht,pt]=F;return Yi(ht)||Yi(pt)?!1:ht.name===l&&pt.name===st},[l,F]),$e=Ne.useCallback(function(st){const ht=new Set;ee(pt(st,Kf.Left).concat(pt(st,Kf.Right))),T.size===0&&Ss(Se)&&(V(Se),be(void 0)),N(T);function pt(ce,Ze){var vt;if(ht.has(ce))return[];const et=((vt=T.get(ce))==null?void 0:vt[Ze])??[];return T.delete(ce),ht.add(ce),et.map(X=>[Ze===Kf.Left?[Sc(Kf.Left,ce),Sc(Kf.Right,X)]:[Sc(Kf.Left,X),Sc(Kf.Right,ce)]].concat(pt(X,Ze))).flat()}},[ee,T]);return Ei.jsxs("div",{className:ml("overflow-hidden",a),children:[d$(xe)&&Ei.jsx("div",{className:ml("w-full h-full overflow-hidden overflow-y-auto hover:scrollbar scrollbar--vertical border-b border-t border-neutral-10",w&&"w-full cursor-default"),children:xe.map(ut=>{var st,ht,pt,ce,Ze;return Ei.jsx(u2e,{id:Sc(l,ut.name),nodeId:l,column:ut,disabled:u,updateColumnLineage:_e,removeEdges:$e,isActive:!0,hasLeft:d$((st=T.get(Sc(l,ut.name)))==null?void 0:st.left),hasRight:d$((ht=T.get(Sc(l,ut.name)))==null?void 0:ht.right),selectManually:rt(ut.name)?Q:void 0,withHandles:w,withDescription:y,expression:b?(pt=jb(le,l,ut.name))==null?void 0:pt.expression:void 0,source:b?(ce=jb(le,l,ut.name))==null?void 0:ce.source:void 0,isEmpty:Ss(jb(le,l,ut.name))&&Object.keys(((Ze=jb(le,l,ut.name))==null?void 0:Ze.models)??{}).length===0,className:"border-t border-neutral-10 first:border-0"},Sc(l,ut.name))})}),Me.length<=g&&Ei.jsx("div",{className:ml("w-full h-full overflow-hidden overflow-y-auto hover:scrollbar scrollbar--vertical py-2",w&&"w-full cursor-default"),children:Me.map(ut=>{var st,ht,pt;return Ei.jsx(u2e,{id:Sc(l,ut.name),nodeId:l,column:ut,disabled:u,updateColumnLineage:_e,removeEdges:$e,isActive:!1,hasLeft:!1,hasRight:!1,selectManually:rt(ut.name)?Q:void 0,withHandles:w,withDescription:y,expression:b?(st=jb(le,l,ut.name))==null?void 0:st.expression:void 0,source:b?(ht=jb(le,l,ut.name))==null?void 0:ht.source:void 0,isEmpty:Ss(jb(le,l,ut.name))&&Object.keys(((pt=jb(le,l,ut.name))==null?void 0:pt.models)??{}).length===0,className:"border-t border-neutral-10 first:border-0 rounded-md"},Sc(l,ut.name))})}),Me.length>g&&Ei.jsx("div",{className:ml("w-full h-full overflow-hidden overflow-y-auto hover:scrollbar scrollbar--vertical pb-2",w&&"w-full cursor-default"),style:{height:x},children:Ei.jsx(mKt,{keyId:"name",keyName:"name",items:Me,withCounter:!1,withFilter:Me.length>g,disabled:u,listItem:({disabled:ut,item:st})=>{var ht,pt,ce;return Ei.jsx(u2e,{id:Sc(l,st.name),nodeId:l,column:st,disabled:ut,updateColumnLineage:_e,removeEdges:$e,isActive:!1,hasLeft:!1,hasRight:!1,selectManually:rt(st.name)?Q:void 0,withHandles:w,withDescription:y,expression:b?(ht=jb(le,l,st.name))==null?void 0:ht.expression:void 0,source:b?(pt=jb(le,l,st.name))==null?void 0:pt.source:void 0,isEmpty:Ss(jb(le,l,st.name))&&Object.keys(((ce=jb(le,l,st.name))==null?void 0:ce.models)??{}).length===0,className:"border-t border-neutral-10 first:border-0 rounded-md"},Sc(l,st.name))}})})]})}function u2e({id:l,nodeId:s,column:u,className:a,disabled:g=!1,isActive:w=!1,hasLeft:b=!1,hasRight:y=!1,isEmpty:x=!1,updateColumnLineage:C,removeEdges:T,selectManually:j,withHandles:N=!1,withDescription:F=!0,source:Q,expression:V}){const{refetch:ee,isFetching:te,isError:le,isTimeout:Se}=dKt(s,u.name);Ne.useEffect(()=>{Yi(j)||(be(),j(void 0))},[j]);function be(){g||(w?T(l):ee().then(({data:Me})=>C(Me??{})))}const xe=N&&(b||y);return Ei.jsx("div",{className:ml("transition-colors duration-200 cursor-pointer",g?"cursor-not-allowed":"hover:bg-neutral-5",w&&"bg-neutral-5",xe?"px-0 py-0.5":"px-2 py-0.5",a),onClick:z0t(be,500,!0),children:Ei.jsx("div",{className:"flex w-full items-center relative",children:xe?Ei.jsxs(wcn,{id:l,nodeId:s,hasLeft:b,hasRight:y,disabled:g,className:"px-2",children:[Ss(Q)&&Ei.jsx(mcn,{source:Q,expression:V}),Ei.jsx(_0t,{isFetching:te,isError:le,isTimeout:Se}),Ei.jsx(B0t,{columnName:u.name,columnType:u.type,columnDescription:u.description,disabled:g,withDescription:F,className:ml(le?"text-danger-500":Se?"text-warning-500":x?"text-neutral-400 dark:text-neutral-600":"text-prose")})]}):Ei.jsxs(Ei.Fragment,{children:[Ei.jsx(_0t,{isFetching:te,isError:le,isTimeout:Se}),Ei.jsx(B0t,{columnName:u.name,columnType:u.type,columnDescription:u.description,disabled:g,withDescription:F,className:ml(le?"text-danger-500":Se?"text-warning-500":x?"text-neutral-400 dark:text-neutral-600":"text-prose")})]})})})}function wcn({nodeId:l,id:s,hasLeft:u=!1,hasRight:a=!1,disabled:g=!1,children:w,className:b}){const y=aYt();return Ne.useEffect(()=>{setTimeout(()=>{y(l)},100)},[u,a]),Ei.jsxs("div",{className:ml("flex w-full items-center",g?"cursor-not-allowed":"inherit",b),children:[u&&Ei.jsx(q5,{type:"target",id:Sc(Kf.Left,s),position:Ai.Left,isConnectable:!1,className:"w-2 h-2 rounded-full"}),w,a&&Ei.jsx(q5,{type:"source",id:Sc(Kf.Right,s),position:Ai.Right,isConnectable:!1,className:"w-2 h-2 rounded-full"})]})}function B0t({columnName:l,columnType:s,columnDescription:u,className:a,disabled:g=!1,withDescription:w=!0}){let b=l;try{b=decodeURI(l)}catch{}return Ei.jsxs("div",{className:ml("block w-full",g?"cursor-not-allowed":"inherit",a),children:[Ei.jsxs("div",{className:"w-full flex justify-between items-center",children:[Ei.jsxs("span",{title:b,className:ml("flex items-center",g&&"opacity-50"),children:[g&&Ei.jsx(AKt,{title:"No column level lineage for Python models",className:"w-3 h-3 mr-2"}),l2e(b,50,20)]}),Ei.jsx("span",{title:s,className:"inline-block ml-2 text-[0.6rem] font-black opacity-60",children:l2e(s,20,10)})]}),Ss(u)&&w&&Ei.jsx("p",{className:"block opacity-60 text-[0.65rem]",children:u})]})}function _0t({isFetching:l=!1,isError:s=!1,isTimeout:u=!1}){return Ei.jsxs(Ei.Fragment,{children:[l&&Ei.jsx(K0t,{className:"inline-block mr-1",children:Ei.jsx(W0t,{className:"w-3 h-3 border border-neutral-10"})}),u&&Lo(l)&&Ei.jsx(OKt,{className:"w-4 h-4 text-warning-500 mr-1"}),s&&Lo(l)&&Ei.jsx(SKt,{className:"w-4 h-4 text-danger-500 mr-1"})]})}function mcn({source:l,expression:s}){const u=Ne.useRef(null),{handleClickModel:a}=oR(),g=bcn(void 0,x=>{a==null||a(x.name)}),[w,b]=Ne.useState(!1);Ne.useEffect(()=>{w&&y()},[w,s]);function y(){setTimeout(()=>{var C,T,j;const x=Array.from(((T=(C=u.current)==null?void 0:C.querySelector('[role="textbox"].cm-content'))==null?void 0:T.children)??[]);for(const N of x)if(((j=N.textContent)==null?void 0:j.trim())===s){N.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),setTimeout(()=>N.classList.add("sqlmesh-expression"),500);return}},300)}return Ei.jsxs(kat,{onMouseLeave:()=>b(!1),onMouseOver:()=>b(!0),className:"flex",children:[Ei.jsx(EKt,{className:ml("inline-block mr-3 w-4 h-4",w?"text-inherit":"text-prose")}),Ei.jsx(vKt,{show:w,as:Ne.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 -translate-y-[40%]",enterTo:"opacity-100 -translate-y-[50%]",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 -translate-y-[50%]",leaveTo:"opacity-0 -translate-y-[40%]",children:Ei.jsx(kat.Panel,{ref:u,className:"fixed -translate-x-[100%] -translate-y-[50%] z-10 content transform cursor-pointer rounded-lg bg-theme border-4 border-neutral-200 dark:border-neutral-600",onClick:x=>x.stopPropagation(),children:Ei.jsx(ocn,{content:l,type:s$.SQL,className:"w-full h-[25rem] text-xs rounded-lg scrollbar scrollbar--vertical scrollbar--horizontal overflow-auto max-w-[40rem]",extensions:g})})})]})}function jb(l,s,u){var a,g;return(g=(a=l==null?void 0:l[s])==null?void 0:a.columns)==null?void 0:g[encodeURI(u)]}const Ia={...gKt,cte:"cte",unknown:"unknown"},AG={UNKNOWN:"UNKNOWN",STRUCT:"STRUCT"};function zcn({id:l,data:s,sourcePosition:u,targetPosition:a}){const g=s??{},{connections:w,models:b,handleClickModel:y,lineage:x,lineageCache:C,selectedNodes:T,setSelectedNodes:j,mainNode:N,withConnected:F,connectedNodes:Q,highlightedNodes:V,activeNodes:ee}=oR(),te=Ne.useMemo(()=>{var Mi;const Nn=b.get(l),Ln=(Nn==null?void 0:Nn.columns)??[];return Object.keys(((Mi=x[l])==null?void 0:Mi.columns)??{}).forEach(ar=>{const Dr=Ln.find(({name:Ys})=>{try{return Ys===decodeURI(ar)}catch{return Ys===ar}});Yi(Dr)&&Ln.push({name:ar,type:AG.UNKNOWN})}),Ln.forEach(ar=>{let Dr=ar.type??AG.UNKNOWN;Dr.startsWith(AG.STRUCT)&&(Dr=AG.STRUCT),ar.type=Dr}),Ln},[l,b,x]),le=Ne.useMemo(()=>Object.values(V).flat(),[V]),[Se,be]=Ne.useState(!1),xe=Ne.useCallback(Nn=>{Nn.stopPropagation(),y==null||y(l)},[y,l,s.isInteractive]),Me=Ne.useCallback(Nn=>{Nn.stopPropagation(),!(le.includes(l)||N===l)&&j(Ln=>(Ln.has(l)?Ln.delete(l):Ln.add(l),new Set(Ln)))},[j,le]),_e=V["*"],rt=te.some(({name:Nn})=>w.get(Sc(l,Nn))),$e=Object.keys(V).length>0,ut=Object.keys(V).find(Nn=>V[Nn].includes(l)),st=N===l,ht=le.includes(l),pt=T.has(l),ce=g.type===Ia.sql,Ze=g.type===Ia.cte,et=g.type===Ia.external,vt=g.type===Ia.seed,X=g.type===Ia.unknown,nt=(rt||g.withColumns||Se||pt||st)&&d$(te)&&Lo($e),Nt=T.size>0||ee.size>0||F?pt||ee.has(l)||F&&Q.has(l):Q.has(l),Jt=N!==l&&Ss(y)&&Lo(Ze)&&Lo(X),Yt=Lo(ce);return Ei.jsxs("div",{onMouseEnter:()=>be(!0),onMouseLeave:()=>be(!1),className:ml("text-xs font-semibold border-4",Se?"z-50":"z-1",nt?"rounded-xl":"rounded-2xl",($e?ht:Nt)||st?"opacity-100":"opacity-40 hover:opacity-100",Yi(ut)?$e?_e:[Ze?"border-accent-500 bg-accent-500 text-accent-500 dark:border-accent-300 dark:bg-accent-300 dark:text-accent-300":X?"border-neutral-500 bg-neutral-500 text-neutral-500 dark:border-neutral-300 dark:bg-neutral-300 dark:text-neutral-300":"border-secondary-500 bg-secondary-500 text-secondary-500 dark:bg-primary-500 dark:border-primary-500 dark:text-primary-500",st?"ring-8 ring-brand-50":et||vt?"ring-8 ring-accent-50":""]:ut,pt&&Ze?"ring-8 ring-accent-50":pt&&X?"ring-8 ring-neutral-50":pt&&"ring-8 ring-secondary-50 dark:ring-primary-50"),style:{maxWidth:Yi(g.width)?"auto":`${g.width}px`},children:[Ei.jsx(dYt,{id:l,type:g.type,label:g.label,isSelected:pt,isDraggable:!0,className:ml("bg-theme-lighter",nt?"rounded-t-[8px]":"rounded-xl"),hasLeft:a===Ai.Left&&Yi(C),hasRight:u===Ai.Right&&Yi(C),handleClick:Jt?xe:void 0,handleSelect:N===l||Ze||$e||Ss(C)?void 0:Me,count:$e?void 0:te.length}),nt&&Ei.jsx(pcn,{className:"nowheel rounded-b-lg bg-theme-lighter text-xs",nodeId:l,columns:te,disabled:Yt,withHandles:!0,withSource:!0,withDescription:!1,maxHeight:"10rem"})]})}function Kcn({nodesMap:l,nodes:s=[],edges:u=[]}){const a=new PKt;return{terminate:()=>a.worker.terminate(),create:async()=>new Promise((g,w)=>{a.layout({id:"root",layoutOptions:{"elk.algorithm":"layered","elk.layered.layering.strategy":"NETWORK_SIMPLEX","elk.layered.crossingMinimization.strategy":"INTERACTIVE","elk.direction":"RIGHT","elk.layered.considerModelOrder.strategy":"PREFER_NODES","elk.layered.nodePlacement.strategy":"SIMPLE"},children:s.map(b=>({id:b.id,width:b.data.width,height:b.data.height})),edges:u.map(b=>({id:b.id,sources:[b.source],targets:[b.target]}))}).then(b=>g({edges:u,nodes:ycn(b.children,l)})).catch(w)})}}function Wcn(l={}){const s=Object.keys(l),u=[];for(const a of s){const g=l[a];g.models.forEach(w=>{u.push(q0t(w,a))});for(const w in g.columns){const b=g.columns[w];if(!(Yi(b)||Yi(b.models)))for(const y in b.models){const x=b.models[y];if(!Yi(x))for(const C of x){const T=Sc(Kf.Right,y,C),j=Sc(Kf.Left,a,w);u.push(q0t(y,a,T,j,!0,{columnSource:C,columnTarget:w}))}}}}return u}function vcn({lineage:l,models:s,unknownModels:u,withColumns:a}){if(Yi(l))return{};const g=64,w=24,b=8,y=5,x=new Set(Object.values(l).flatMap(F=>F.models));return Object.keys(l).reduce((F,Q)=>{var be,xe,Me;const V=s.get(Q),ee=Ocn(Q,{label:(V==null?void 0:V.displayName)??Q,withColumns:a,type:Ss(V)?V.type:u.has(Q)?Ia.unknown:Ia.cte}),te=a?((xe=(be=s.get(Q))==null?void 0:be.columns)==null?void 0:xe.length)??0:0,le=Math.min(T(Q,te===0),320),Se=j(te);return ee.data.width=le+g*3,ee.data.height=a?Se+g*2:g,d$((Me=l[ee.id])==null?void 0:Me.models)&&(ee.targetPosition=Ai.Left),x.has(ee.id)&&(ee.sourcePosition=Ai.Right),F[Q]=ee,F},{});function T(F,Q=!1){var te;const V=F.length*b,ee=((te=s.get(F))==null?void 0:te.columns)??[];return Q?Math.max(...ee.map(N),V):V}function j(F){return w*Math.min(F,y)+g}function N(F){return(F.name.length+F.type.length)*b+g}}function ycn(l=[],s){const u=[];return l.forEach(a=>{const g=s[a.id];Yi(g)||(Ss(a.x)&&g.position.x===0&&(g.position.x=a.x),Ss(a.y)&&g.position.y===0&&(g.position.y=a.y),u.push(g))}),u}function Ocn(l,s,u={x:0,y:0},a=!1){return{id:l,dragHandle:".drag-handle",type:"model",position:u,hidden:a,data:s,connectable:!1,selectable:!1,deletable:!1,focusable:!1,zIndex:-1}}function q0t(l,s,u,a,g=!1,w){const b={id:Sc(l,s,u,a),source:l,target:s,hidden:g,data:w,type:"smoothstep",style:{strokeWidth:Yi(u)||Yi(a)?2:4}};return u!=null&&(b.sourceHandle=u),a!=null&&(b.targetHandle=a),b}function kcn(l={},s={}){for(const u in s){const a=encodeURI(u);Yi(l[a])&&(l[a]={columns:{},models:[]});const g=l[a],w=s[u];for(const b in w){const y=encodeURI(b),x=w[b];if(Yi(g.columns)&&(g.columns={}),g.columns[y]={expression:x.expression,source:x.source,models:{}},X0t(x.models))continue;const T=g.columns[y].models;for(const j in x.models){const N=encodeURI(j),F=T[N],Q=x.models[j];T[N]=Array.from(new Set(Yi(F)?Q:F.concat(Q))).map(encodeURI)}}}return l}function Scn(l,s={}){const u=[];for(const a in s){const g=encodeURI(a),w=s[a];for(const b in w){const y=encodeURI(b),x=w[b];if(Yi(x==null?void 0:x.models))continue;const C=Sc(g,y),T=l.get(C)??{left:[],right:[]};Object.entries(x.models).forEach(([j,N])=>{const F=encodeURI(j);N.forEach(Q=>{const V=encodeURI(Q),ee=Sc(F,V),te=l.get(ee)??{left:[],right:[]};te.right=Array.from(new Set(te.right.concat(C))),T.left=Array.from(new Set(T.left.concat(ee))),l.set(ee,te),l.set(C,T),te.left.forEach(le=>{u.push([Sc(Kf.Left,ee),Sc(Kf.Right,le)])}),te.right.forEach(le=>{u.push([Sc(Kf.Left,le),Sc(Kf.Right,ee)])})})})}}return{connections:l,activeEdges:u}}function Xcn(l={}){return Object.keys(l).reduce((s,u)=>{const{models:a=[],columns:g={}}=l[u],w=new Set;return a.forEach(b=>w.add(b)),Ss(g)&&Object.keys(g).forEach(b=>{const y=g[b];Ss(y)&&Ss(y.models)&&Object.keys(y.models).forEach(x=>w.add(x))}),s.concat(Array.from(w))},[]).sort().join("")}function xcn(l={},s,u=new Set){const a=l[s],g=(a==null?void 0:a.models)??[];for(const w of g)u.has(w)||xcn(l,w,u).add(w);return u}function Ucn(l=[],s,u,a){return new Set(l.reduce((g,w)=>{const b=Yi(w.sourceHandle)?void 0:a[w.sourceHandle],y=Yi(w.targetHandle)?void 0:a[w.targetHandle];return Ss(b)&&Ss(w.sourceHandle)&&b.data.type===Ia.external&&TV(s,w.sourceHandle)?g.push(w.source):Ss(y)&&Ss(w.targetHandle)&&y.data.type===Ia.external&&TV(s,w.targetHandle)?g.push(w.target):(F3e(s,[w.targetHandle,w.sourceHandle])||AV(u,w.id))&&(Ss(w.source)&&g.push(w.source),Ss(w.target)&&g.push(w.target)),g},[]))}function Gcn(l=[],s,u,a,g,w,b,y=!1,x=!1,C=!1){return l.map(j=>{const N=F3e(u,[j.targetHandle,j.sourceHandle]);if(j.hidden=!0,Yi(j.sourceHandle)&&Yi(j.targetHandle)){const te=w.size>0||s.size>0||a.size>0,le=b.has(j.source)||b.has(j.target),Se=Lo(b.has(j.source))||Lo(b.has(j.target)),be=Lo(x)&&Lo(y)&&Lo(te),xe=Lo(C)&&Lo(te),Me=Se&&xe,_e=le&&be,rt=w.size>0&&AV(g,j.id)&&a.has(j.source)&&a.has(j.target);Lo(_e)&&Lo(Me)&&(Lo(te)||rt)&&(j.hidden=!1)}else s.size>0&&N&&(j.hidden=!1);let F="var(--color-graph-edge-main)",Q=2;const V=b.has(j.source),ee=b.has(j.target);return AV(g,j.id)||y&&V&&ee?(Q=4,F="var(--color-graph-edge-selected)",j.zIndex=10):N?F="var(--color-graph-edge-secondary)":V&&ee&&(Q=4,F="var(--color-graph-edge-direct)",j.zIndex=10),j.style={...j.style,stroke:F,strokeWidth:Q},j})}function Vcn(l=[],s,u,a,g,w,b,y,x){return l.map(C=>{C.hidden=!0;const T=g.size>0||w.size>0,j=s.size===0||s.has(C.id),N=a.has(C.id),F=Lo(a.has(C.id)),Q=Lo(y)&&Lo(b)&&Lo(T),V=Lo(x)&&Lo(T),ee=F&&V;return Lo(N&&Q)&&Lo(ee)&&(C.hidden=Lo(j)),C.data.type===Ia.cte&&(C.hidden=Lo(s.has(C.id))),u===C.id&&(C.hidden=!1),C})}function F3e(l=new Map,[s,u]){if(Yi(s)&&Yi(u))return!1;const a=Yi(s)?void 0:l.get(s),g=Yi(u)?void 0:l.get(u);if(Yi(a)&&Yi(g))return!1;const w=!!(a!=null&&a.some(([y,x])=>y===s&&x===u)),b=!!(g!=null&&g.some(([y,x])=>y===s&&x===u));return w||b}function TV(l=new Map,s){return(l.get(s)??[]).length>0}function Ecn(l){return l===Ia.python?"PYTHON":l===Ia.sql?"SQL":l===Ia.seed?"SEED":l===Ia.cte?"CTE":l===Ia.external?"EXTERNAL":l===Ia.source?"SOURCE":"UNKNOWN"}function AV(l,s){return l.some(u=>u.id===s||AV(u.edges,s))}const B3e=Ne.createContext({selectedEdges:[],lineage:{},lineageCache:void 0,withColumns:!1,withConnected:!1,withImpacted:!0,withSecondary:!1,hasBackground:!0,mainNode:void 0,activeEdges:new Map,activeNodes:new Set,models:new Map,unknownModels:new Set,manuallySelectedColumn:void 0,connections:new Map,selectedNodes:new Set,connectedNodes:new Set,highlightedNodes:{},nodesMap:{},showControls:!0,setHighlightedNodes:()=>{},setWithColumns:()=>!1,setHasBackground:()=>!1,setWithImpacted:()=>!1,setWithSecondary:()=>!1,setWithConnected:()=>!1,hasActiveEdge:()=>!1,addActiveEdges:()=>{},removeActiveEdges:()=>{},setActiveEdges:()=>{},handleClickModel:()=>{},setManuallySelectedColumn:()=>{},handleError:()=>{},setLineage:()=>{},setLineageCache:()=>{},isActiveColumn:()=>!1,setConnections:()=>{},setSelectedNodes:()=>{},setMainNode:()=>{},setActiveNodes:()=>{},setNodeConnections:()=>{},setUnknownModels:()=>{}});function Ccn({handleError:l,handleClickModel:s,children:u,showColumns:a=!1,showConnected:g=!1,showControls:w=!0}){const b=MV(vr=>vr.models),[y,x]=Ne.useState({}),[C,T]=Ne.useState(new Set),[j,N]=Ne.useState(void 0),[F,Q]=Ne.useState({}),[V,ee]=Ne.useState(a),[te,le]=Ne.useState(),[Se,be]=Ne.useState(),[xe,Me]=Ne.useState(new Map),[_e,rt]=Ne.useState(new Map),[$e,ut]=Ne.useState(g),[st,ht]=Ne.useState(new Set),[pt,ce]=Ne.useState(new Set),[Ze,et]=Ne.useState({}),[vt,X]=Ne.useState(!0),[nt,Nt]=Ne.useState(!0),[Jt,Yt]=Ne.useState(!1),Nn=Ne.useMemo(()=>vcn({lineage:y,models:b,unknownModels:C,withColumns:V}),[y,b,V,C]),Ln=Ne.useCallback(function(Lc){return F3e(xe,Lc)},[xe]),Mi=Ne.useCallback(function(Lc){Me(so=>(Lc.forEach(([Fo,Mo])=>{const Xo=so.get(Fo)??[],gf=so.get(Mo)??[],Qs=Xo.some(([xc,Cd])=>xc===Fo&&Cd===Mo),gi=gf.some(([xc,Cd])=>xc===Fo&&Cd===Mo);Lo(Qs)&&Xo.push([Fo,Mo]),Lo(gi)&&gf.push([Fo,Mo]),so.set(Fo,Xo),so.set(Mo,gf)}),new Map(so)))},[Me]),ar=Ne.useCallback(function(Lc){Me(so=>(Lc.forEach(([Fo,Mo])=>{const Xo=(so.get(Fo)??[]).filter(Qs=>Qs[0]!==Fo&&Qs[1]!==Mo),gf=(so.get(Mo)??[]).filter(Qs=>Qs[0]!==Fo&&Qs[1]!==Mo);so.set(Fo,Xo),so.set(Mo,gf)}),new Map(so))),rt(so=>(Lc.forEach(([Fo,Mo])=>{so.delete(Fo),so.delete(Mo)}),new Map(so)))},[Me,rt]),Dr=Ne.useCallback(function(Lc,so){const Fo=Sc(Kf.Left,Lc,so),Mo=Sc(Kf.Right,Lc,so);return TV(xe,Fo)||TV(xe,Mo)},[Ln,xe]),Ys=Ne.useMemo(()=>new Set(Object.keys(F)),[F]),ps=Ne.useMemo(()=>Array.from(st).flatMap(vr=>F[vr]).filter(Boolean),[F,st]);return Ei.jsx(B3e.Provider,{value:{highlightedNodes:Ze,connectedNodes:Ys,activeEdges:xe,selectedEdges:ps,activeNodes:pt,selectedNodes:st,mainNode:te,connections:_e,lineage:y,lineageCache:j,models:b,manuallySelectedColumn:Se,withColumns:V,withConnected:$e,withImpacted:nt,withSecondary:Jt,showControls:w,hasBackground:vt,nodesMap:Nn,unknownModels:C,setHighlightedNodes:et,setActiveNodes:ce,setNodeConnections:Q,setLineageCache:N,setUnknownModels:T,setWithConnected:ut,setWithImpacted:Nt,setWithSecondary:Yt,setHasBackground:X,setSelectedNodes:ht,setMainNode:le,setConnections:rt,setLineage:x,setWithColumns:ee,setActiveEdges:Me,setManuallySelectedColumn:be,addActiveEdges:Mi,removeActiveEdges:ar,hasActiveEdge:Ln,handleClickModel:s,handleError:l,isActiveColumn:Dr},children:u})}function oR(){return Ne.useContext(B3e)}const Ycn=Object.freeze(Object.defineProperty({__proto__:null,LineageFlowContext:B3e,default:Ccn,useLineageFlow:oR},Symbol.toStringTag,{value:"Module"}));export{qcn as C,Ia as E,SKt as F,Ccn as L,pcn as M,xGt as P,fbt as R,ocn as a,oR as b,Hcn as c,Sh as d,Xl as e,Ygt as f,Ecn as g,Fb as h,xcn as i,zcn as j,Wcn as k,Xcn as l,Ucn as m,Vcn as n,Gcn as o,Kcn as p,hYt as q,Lcn as r,vVt as s,Ycn as t,bcn as u};
|
|
73
|
+
`;return j.className="text-xs font-bold px-3 py-3 bg-white border-2 border-secondary-100 rounded outline-none shadow-lg mb-2",j.innerHTML=N,{dom:j}}}},{hoverTime:50})}function zcn(){const l=MV(C=>C.addConfirmation),s=V8(C=>C.tab),u=V8(C=>C.selectTab),a=V8(C=>C.closeTab),g=V8(C=>C.createTab),w=V8(C=>C.addTab),b=s==null?void 0:s.file,y=Ne.useCallback(function(){Yi(b)||(aKt(b.isChanged)?l({headline:"Closing Tab",description:"All unsaved changes will be lost. Do you want to close the tab anyway?",yesText:"Yes, Close Tab",noText:"No, Cancel",action:()=>{a(b)}}):a(b))},[b]);return Ne.useMemo(()=>Yi(b)?[]:[{key:"Shift-Mod-.",preventDefault:!0,run(){const C=g();return w(C),u(C),!0}},{key:"Shift-Mod-,",preventDefault:!0,run(){return y(),!0}}],[b,u,a,g,w])}function bcn(l,s,u){const{lineage:a}=oR(),g=MV(T=>T.models),w=f2e(T=>T.files),b=Yi(l)?void 0:g.get(l),[y,x]=Ne.useState(!1);return Ne.useMemo(()=>{const T=new Set(Yi(a)||X0t(a)?Array.from(new Set(g.values())).flatMap(F=>F.columns.map(Q=>Q.name)):Object.keys(a).flatMap(F=>{var Q;return(Q=g.get(F))==null?void 0:Q.columns.map(V=>V.name)}).filter(Boolean));function j(F){if(F.metaKey){const Q=ccn(F,g);if(Yi(Q))return;s==null||s(Q)}}function N(F){if(F.metaKey){if(Yi(b))return;const Q=ucn(F,b);if(Yi(Q))return;u==null||u(b,Q)}}return[g.size>0&&y&&gcn(g),c2e({keydown:F=>{F.metaKey&&x(!0)},keyup:F=>{Lo(F.metaKey)&&x(!1)}}),Ss(s)&&c2e({click:j}),Ss(u)&&c2e({click:N}),dcn(g,T,y,b)].filter(Boolean)},[s,u,b,g,w,y])}function pcn({nodeId:l,columns:s,disabled:u,className:a,limit:g=5,withHandles:w=!1,withSource:b=!1,withDescription:y=!0,maxHeight:x="50vh"}){const{mainNode:C,connections:T,isActiveColumn:j,setConnections:N,manuallySelectedColumn:F,setManuallySelectedColumn:Q,setLineage:V,removeActiveEdges:ee,addActiveEdges:te,lineage:le,lineageCache:Se,setLineageCache:be}=oR(),[xe=[],Me=[]]=Ne.useMemo(()=>{const ut=[],st=[];return s.forEach(ht=>{j(l,ht.name)?ut.push(ht):st.push(ht)}),[ut,st]},[l,s,j]);function _e(ut={}){let st=Se,ht,pt;if(Yi(Se)){const vt=Yi(C)?void 0:le[C]??(Se==null?void 0:Se[C]);st=le,ht=new Map,pt=Yi(C)||Yi(vt)?{}:{[C]:{models:[]}}}else ht=T,pt=structuredClone(le);const{connections:ce,activeEdges:Ze}=Scn(ht,ut);ce.size===0&&Ze.length===0?(pt=structuredClone(le),st=void 0):(N(ce),te(Ze));const et=kcn(pt,ut);be(st),V(et)}const rt=Ne.useCallback(function(st){if(Yi(F))return!1;const[ht,pt]=F;return Yi(ht)||Yi(pt)?!1:ht.name===l&&pt.name===st},[l,F]),$e=Ne.useCallback(function(st){const ht=new Set;ee(pt(st,Kf.Left).concat(pt(st,Kf.Right))),T.size===0&&Ss(Se)&&(V(Se),be(void 0)),N(T);function pt(ce,Ze){var vt;if(ht.has(ce))return[];const et=((vt=T.get(ce))==null?void 0:vt[Ze])??[];return T.delete(ce),ht.add(ce),et.map(X=>[Ze===Kf.Left?[Sc(Kf.Left,ce),Sc(Kf.Right,X)]:[Sc(Kf.Left,X),Sc(Kf.Right,ce)]].concat(pt(X,Ze))).flat()}},[ee,T]);return Ei.jsxs("div",{className:ml("overflow-hidden",a),children:[d$(xe)&&Ei.jsx("div",{className:ml("w-full h-full overflow-hidden overflow-y-auto hover:scrollbar scrollbar--vertical border-b border-t border-neutral-10",w&&"w-full cursor-default"),children:xe.map(ut=>{var st,ht,pt,ce,Ze;return Ei.jsx(u2e,{id:Sc(l,ut.name),nodeId:l,column:ut,disabled:u,updateColumnLineage:_e,removeEdges:$e,isActive:!0,hasLeft:d$((st=T.get(Sc(l,ut.name)))==null?void 0:st.left),hasRight:d$((ht=T.get(Sc(l,ut.name)))==null?void 0:ht.right),selectManually:rt(ut.name)?Q:void 0,withHandles:w,withDescription:y,expression:b?(pt=jb(le,l,ut.name))==null?void 0:pt.expression:void 0,source:b?(ce=jb(le,l,ut.name))==null?void 0:ce.source:void 0,isEmpty:Ss(jb(le,l,ut.name))&&Object.keys(((Ze=jb(le,l,ut.name))==null?void 0:Ze.models)??{}).length===0,className:"border-t border-neutral-10 first:border-0"},Sc(l,ut.name))})}),Me.length<=g&&Ei.jsx("div",{className:ml("w-full h-full overflow-hidden overflow-y-auto hover:scrollbar scrollbar--vertical py-2",w&&"w-full cursor-default"),children:Me.map(ut=>{var st,ht,pt;return Ei.jsx(u2e,{id:Sc(l,ut.name),nodeId:l,column:ut,disabled:u,updateColumnLineage:_e,removeEdges:$e,isActive:!1,hasLeft:!1,hasRight:!1,selectManually:rt(ut.name)?Q:void 0,withHandles:w,withDescription:y,expression:b?(st=jb(le,l,ut.name))==null?void 0:st.expression:void 0,source:b?(ht=jb(le,l,ut.name))==null?void 0:ht.source:void 0,isEmpty:Ss(jb(le,l,ut.name))&&Object.keys(((pt=jb(le,l,ut.name))==null?void 0:pt.models)??{}).length===0,className:"border-t border-neutral-10 first:border-0 rounded-md"},Sc(l,ut.name))})}),Me.length>g&&Ei.jsx("div",{className:ml("w-full h-full overflow-hidden overflow-y-auto hover:scrollbar scrollbar--vertical pb-2",w&&"w-full cursor-default"),style:{height:x},children:Ei.jsx(mKt,{keyId:"name",keyName:"name",items:Me,withCounter:!1,withFilter:Me.length>g,disabled:u,listItem:({disabled:ut,item:st})=>{var ht,pt,ce;return Ei.jsx(u2e,{id:Sc(l,st.name),nodeId:l,column:st,disabled:ut,updateColumnLineage:_e,removeEdges:$e,isActive:!1,hasLeft:!1,hasRight:!1,selectManually:rt(st.name)?Q:void 0,withHandles:w,withDescription:y,expression:b?(ht=jb(le,l,st.name))==null?void 0:ht.expression:void 0,source:b?(pt=jb(le,l,st.name))==null?void 0:pt.source:void 0,isEmpty:Ss(jb(le,l,st.name))&&Object.keys(((ce=jb(le,l,st.name))==null?void 0:ce.models)??{}).length===0,className:"border-t border-neutral-10 first:border-0 rounded-md"},Sc(l,st.name))}})})]})}function u2e({id:l,nodeId:s,column:u,className:a,disabled:g=!1,isActive:w=!1,hasLeft:b=!1,hasRight:y=!1,isEmpty:x=!1,updateColumnLineage:C,removeEdges:T,selectManually:j,withHandles:N=!1,withDescription:F=!0,source:Q,expression:V}){const{refetch:ee,isFetching:te,isError:le,isTimeout:Se}=dKt(s,u.name);Ne.useEffect(()=>{Yi(j)||(be(),j(void 0))},[j]);function be(){g||(w?T(l):ee().then(({data:Me})=>C(Me??{})))}const xe=N&&(b||y);return Ei.jsx("div",{className:ml("transition-colors duration-200 cursor-pointer",g?"cursor-not-allowed":"hover:bg-neutral-5",w&&"bg-neutral-5",xe?"px-0 py-0.5":"px-2 py-0.5",a),onClick:z0t(be,500,!0),children:Ei.jsx("div",{className:"flex w-full items-center relative",children:xe?Ei.jsxs(wcn,{id:l,nodeId:s,hasLeft:b,hasRight:y,disabled:g,className:"px-2",children:[Ss(Q)&&Ei.jsx(mcn,{source:Q,expression:V}),Ei.jsx(_0t,{isFetching:te,isError:le,isTimeout:Se}),Ei.jsx(B0t,{columnName:u.name,columnType:u.type,columnDescription:u.description,disabled:g,withDescription:F,className:ml(le?"text-danger-500":Se?"text-warning-500":x?"text-neutral-400 dark:text-neutral-600":"text-prose")})]}):Ei.jsxs(Ei.Fragment,{children:[Ei.jsx(_0t,{isFetching:te,isError:le,isTimeout:Se}),Ei.jsx(B0t,{columnName:u.name,columnType:u.type,columnDescription:u.description,disabled:g,withDescription:F,className:ml(le?"text-danger-500":Se?"text-warning-500":x?"text-neutral-400 dark:text-neutral-600":"text-prose")})]})})})}function wcn({nodeId:l,id:s,hasLeft:u=!1,hasRight:a=!1,disabled:g=!1,children:w,className:b}){const y=aYt();return Ne.useEffect(()=>{setTimeout(()=>{y(l)},100)},[u,a]),Ei.jsxs("div",{className:ml("flex w-full items-center",g?"cursor-not-allowed":"inherit",b),children:[u&&Ei.jsx(q5,{type:"target",id:Sc(Kf.Left,s),position:Ai.Left,isConnectable:!1,className:"w-2 h-2 rounded-full"}),w,a&&Ei.jsx(q5,{type:"source",id:Sc(Kf.Right,s),position:Ai.Right,isConnectable:!1,className:"w-2 h-2 rounded-full"})]})}function B0t({columnName:l,columnType:s,columnDescription:u,className:a,disabled:g=!1,withDescription:w=!0}){let b=l;try{b=decodeURI(l)}catch{}return Ei.jsxs("div",{className:ml("block w-full",g?"cursor-not-allowed":"inherit",a),children:[Ei.jsxs("div",{className:"w-full flex justify-between items-center",children:[Ei.jsxs("span",{title:b,className:ml("flex items-center",g&&"opacity-50"),children:[g&&Ei.jsx(AKt,{title:"No column level lineage for Python models",className:"w-3 h-3 mr-2"}),l2e(b,50,20)]}),Ei.jsx("span",{title:s,className:"inline-block ml-2 text-[0.6rem] font-black opacity-60",children:l2e(s,20,10)})]}),Ss(u)&&w&&Ei.jsx("p",{className:"block opacity-60 text-[0.65rem]",children:u})]})}function _0t({isFetching:l=!1,isError:s=!1,isTimeout:u=!1}){return Ei.jsxs(Ei.Fragment,{children:[l&&Ei.jsx(K0t,{className:"inline-block mr-1",children:Ei.jsx(W0t,{className:"w-3 h-3 border border-neutral-10"})}),u&&Lo(l)&&Ei.jsx(OKt,{className:"w-4 h-4 text-warning-500 mr-1"}),s&&Lo(l)&&Ei.jsx(SKt,{className:"w-4 h-4 text-danger-500 mr-1"})]})}function mcn({source:l,expression:s}){const u=Ne.useRef(null),{handleClickModel:a}=oR(),g=bcn(void 0,x=>{a==null||a(x.name)}),[w,b]=Ne.useState(!1);Ne.useEffect(()=>{w&&y()},[w,s]);function y(){setTimeout(()=>{var C,T,j;const x=Array.from(((T=(C=u.current)==null?void 0:C.querySelector('[role="textbox"].cm-content'))==null?void 0:T.children)??[]);for(const N of x)if(((j=N.textContent)==null?void 0:j.trim())===s){N.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),setTimeout(()=>N.classList.add("sqlmesh-expression"),500);return}},300)}return Ei.jsxs(kat,{onMouseLeave:()=>b(!1),onMouseOver:()=>b(!0),className:"flex",children:[Ei.jsx(EKt,{className:ml("inline-block mr-3 w-4 h-4",w?"text-inherit":"text-prose")}),Ei.jsx(vKt,{show:w,as:Ne.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 -translate-y-[40%]",enterTo:"opacity-100 -translate-y-[50%]",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 -translate-y-[50%]",leaveTo:"opacity-0 -translate-y-[40%]",children:Ei.jsx(kat.Panel,{ref:u,className:"fixed -translate-x-[100%] -translate-y-[50%] z-10 content transform cursor-pointer rounded-lg bg-theme border-4 border-neutral-200 dark:border-neutral-600",onClick:x=>x.stopPropagation(),children:Ei.jsx(ocn,{content:l,type:s$.SQL,className:"w-full h-[25rem] text-xs rounded-lg scrollbar scrollbar--vertical scrollbar--horizontal overflow-auto max-w-[40rem]",extensions:g})})})]})}function jb(l,s,u){var a,g;return(g=(a=l==null?void 0:l[s])==null?void 0:a.columns)==null?void 0:g[encodeURI(u)]}const Ia={...gKt,cte:"cte",unknown:"unknown"},AG={UNKNOWN:"UNKNOWN",STRUCT:"STRUCT"};function Kcn({id:l,data:s,sourcePosition:u,targetPosition:a}){const g=s??{},{connections:w,models:b,handleClickModel:y,lineage:x,lineageCache:C,selectedNodes:T,setSelectedNodes:j,mainNode:N,withConnected:F,connectedNodes:Q,highlightedNodes:V,activeNodes:ee}=oR(),te=Ne.useMemo(()=>{var Mi;const Nn=b.get(l),Ln=(Nn==null?void 0:Nn.columns)??[];return Object.keys(((Mi=x[l])==null?void 0:Mi.columns)??{}).forEach(ar=>{const Dr=Ln.find(({name:Ys})=>{try{return Ys===decodeURI(ar)}catch{return Ys===ar}});Yi(Dr)&&Ln.push({name:ar,type:AG.UNKNOWN})}),Ln.forEach(ar=>{let Dr=ar.type??AG.UNKNOWN;Dr.startsWith(AG.STRUCT)&&(Dr=AG.STRUCT),ar.type=Dr}),Ln},[l,b,x]),le=Ne.useMemo(()=>Object.values(V).flat(),[V]),[Se,be]=Ne.useState(!1),xe=Ne.useCallback(Nn=>{Nn.stopPropagation(),y==null||y(l)},[y,l,s.isInteractive]),Me=Ne.useCallback(Nn=>{Nn.stopPropagation(),!(le.includes(l)||N===l)&&j(Ln=>(Ln.has(l)?Ln.delete(l):Ln.add(l),new Set(Ln)))},[j,le]),_e=V["*"],rt=te.some(({name:Nn})=>w.get(Sc(l,Nn))),$e=Object.keys(V).length>0,ut=Object.keys(V).find(Nn=>V[Nn].includes(l)),st=N===l,ht=le.includes(l),pt=T.has(l),ce=g.type===Ia.sql,Ze=g.type===Ia.cte,et=g.type===Ia.external,vt=g.type===Ia.seed,X=g.type===Ia.unknown,nt=(rt||g.withColumns||Se||pt||st)&&d$(te)&&Lo($e),Nt=T.size>0||ee.size>0||F?pt||ee.has(l)||F&&Q.has(l):Q.has(l),Jt=N!==l&&Ss(y)&&Lo(Ze)&&Lo(X),Yt=Lo(ce);return Ei.jsxs("div",{onMouseEnter:()=>be(!0),onMouseLeave:()=>be(!1),className:ml("text-xs font-semibold border-4",Se?"z-50":"z-1",nt?"rounded-xl":"rounded-2xl",($e?ht:Nt)||st?"opacity-100":"opacity-40 hover:opacity-100",Yi(ut)?$e?_e:[Ze?"border-accent-500 bg-accent-500 text-accent-500 dark:border-accent-300 dark:bg-accent-300 dark:text-accent-300":X?"border-neutral-500 bg-neutral-500 text-neutral-500 dark:border-neutral-300 dark:bg-neutral-300 dark:text-neutral-300":"border-secondary-500 bg-secondary-500 text-secondary-500 dark:bg-primary-500 dark:border-primary-500 dark:text-primary-500",st?"ring-8 ring-brand-50":et||vt?"ring-8 ring-accent-50":""]:ut,pt&&Ze?"ring-8 ring-accent-50":pt&&X?"ring-8 ring-neutral-50":pt&&"ring-8 ring-secondary-50 dark:ring-primary-50"),style:{maxWidth:Yi(g.width)?"auto":`${g.width}px`},children:[Ei.jsx(dYt,{id:l,type:g.type,label:g.label,isSelected:pt,isDraggable:!0,className:ml("bg-theme-lighter",nt?"rounded-t-[8px]":"rounded-xl"),hasLeft:a===Ai.Left&&Yi(C),hasRight:u===Ai.Right&&Yi(C),handleClick:Jt?xe:void 0,handleSelect:N===l||Ze||$e||Ss(C)?void 0:Me,count:$e?void 0:te.length}),nt&&Ei.jsx(pcn,{className:"nowheel rounded-b-lg bg-theme-lighter text-xs",nodeId:l,columns:te,disabled:Yt,withHandles:!0,withSource:!0,withDescription:!1,maxHeight:"10rem"})]})}function Wcn({nodesMap:l,nodes:s=[],edges:u=[]}){const a=new PKt;return{terminate:()=>a.worker.terminate(),create:async()=>new Promise((g,w)=>{a.layout({id:"root",layoutOptions:{"elk.algorithm":"layered","elk.layered.layering.strategy":"NETWORK_SIMPLEX","elk.layered.crossingMinimization.strategy":"INTERACTIVE","elk.direction":"RIGHT","elk.layered.considerModelOrder.strategy":"PREFER_NODES","elk.layered.nodePlacement.strategy":"SIMPLE"},children:s.map(b=>({id:b.id,width:b.data.width,height:b.data.height})),edges:u.map(b=>({id:b.id,sources:[b.source],targets:[b.target]}))}).then(b=>g({edges:u,nodes:ycn(b.children,l)})).catch(w)})}}function Xcn(l={}){const s=Object.keys(l),u=[];for(const a of s){const g=l[a];g.models.forEach(w=>{u.push(q0t(w,a))});for(const w in g.columns){const b=g.columns[w];if(!(Yi(b)||Yi(b.models)))for(const y in b.models){const x=b.models[y];if(!Yi(x))for(const C of x){const T=Sc(Kf.Right,y,C),j=Sc(Kf.Left,a,w);u.push(q0t(y,a,T,j,!0,{columnSource:C,columnTarget:w}))}}}}return u}function vcn({lineage:l,models:s,unknownModels:u,withColumns:a}){if(Yi(l))return{};const g=64,w=24,b=8,y=5,x=new Set(Object.values(l).flatMap(F=>F.models));return Object.keys(l).reduce((F,Q)=>{var be,xe,Me;const V=s.get(Q),ee=Ocn(Q,{label:(V==null?void 0:V.displayName)??Q,withColumns:a,type:Ss(V)?V.type:u.has(Q)?Ia.unknown:Ia.cte}),te=a?((xe=(be=s.get(Q))==null?void 0:be.columns)==null?void 0:xe.length)??0:0,le=Math.min(T(Q,te===0),320),Se=j(te);return ee.data.width=le+g*3,ee.data.height=a?Se+g*2:g,d$((Me=l[ee.id])==null?void 0:Me.models)&&(ee.targetPosition=Ai.Left),x.has(ee.id)&&(ee.sourcePosition=Ai.Right),F[Q]=ee,F},{});function T(F,Q=!1){var te;const V=F.length*b,ee=((te=s.get(F))==null?void 0:te.columns)??[];return Q?Math.max(...ee.map(N),V):V}function j(F){return w*Math.min(F,y)+g}function N(F){return(F.name.length+F.type.length)*b+g}}function ycn(l=[],s){const u=[];return l.forEach(a=>{const g=s[a.id];Yi(g)||(Ss(a.x)&&g.position.x===0&&(g.position.x=a.x),Ss(a.y)&&g.position.y===0&&(g.position.y=a.y),u.push(g))}),u}function Ocn(l,s,u={x:0,y:0},a=!1){return{id:l,dragHandle:".drag-handle",type:"model",position:u,hidden:a,data:s,connectable:!1,selectable:!1,deletable:!1,focusable:!1,zIndex:-1}}function q0t(l,s,u,a,g=!1,w){const b={id:Sc(l,s,u,a),source:l,target:s,hidden:g,data:w,type:"smoothstep",style:{strokeWidth:Yi(u)||Yi(a)?2:4}};return u!=null&&(b.sourceHandle=u),a!=null&&(b.targetHandle=a),b}function kcn(l={},s={}){for(const u in s){const a=encodeURI(u);Yi(l[a])&&(l[a]={columns:{},models:[]});const g=l[a],w=s[u];for(const b in w){const y=encodeURI(b),x=w[b];if(Yi(g.columns)&&(g.columns={}),g.columns[y]={expression:x.expression,source:x.source,models:{}},X0t(x.models))continue;const T=g.columns[y].models;for(const j in x.models){const N=encodeURI(j),F=T[N],Q=x.models[j];T[N]=Array.from(new Set(Yi(F)?Q:F.concat(Q))).map(encodeURI)}}}return l}function Scn(l,s={}){const u=[];for(const a in s){const g=encodeURI(a),w=s[a];for(const b in w){const y=encodeURI(b),x=w[b];if(Yi(x==null?void 0:x.models))continue;const C=Sc(g,y),T=l.get(C)??{left:[],right:[]};Object.entries(x.models).forEach(([j,N])=>{const F=encodeURI(j);N.forEach(Q=>{const V=encodeURI(Q),ee=Sc(F,V),te=l.get(ee)??{left:[],right:[]};te.right=Array.from(new Set(te.right.concat(C))),T.left=Array.from(new Set(T.left.concat(ee))),l.set(ee,te),l.set(C,T),te.left.forEach(le=>{u.push([Sc(Kf.Left,ee),Sc(Kf.Right,le)])}),te.right.forEach(le=>{u.push([Sc(Kf.Left,le),Sc(Kf.Right,ee)])})})})}}return{connections:l,activeEdges:u}}function Ucn(l={}){return Object.keys(l).reduce((s,u)=>{const{models:a=[],columns:g={}}=l[u],w=new Set;return a.forEach(b=>w.add(b)),Ss(g)&&Object.keys(g).forEach(b=>{const y=g[b];Ss(y)&&Ss(y.models)&&Object.keys(y.models).forEach(x=>w.add(x))}),s.concat(Array.from(w))},[]).sort().join("")}function xcn(l={},s,u=new Set){const a=l[s],g=(a==null?void 0:a.models)??[];for(const w of g)u.has(w)||xcn(l,w,u).add(w);return u}function Gcn(l=[],s,u,a){return new Set(l.reduce((g,w)=>{const b=Yi(w.sourceHandle)?void 0:a[w.sourceHandle],y=Yi(w.targetHandle)?void 0:a[w.targetHandle];return Ss(b)&&Ss(w.sourceHandle)&&b.data.type===Ia.external&&TV(s,w.sourceHandle)?g.push(w.source):Ss(y)&&Ss(w.targetHandle)&&y.data.type===Ia.external&&TV(s,w.targetHandle)?g.push(w.target):(F3e(s,[w.targetHandle,w.sourceHandle])||AV(u,w.id))&&(Ss(w.source)&&g.push(w.source),Ss(w.target)&&g.push(w.target)),g},[]))}function Vcn(l=[],s,u,a,g,w,b,y=!1,x=!1,C=!1){return l.map(j=>{const N=F3e(u,[j.targetHandle,j.sourceHandle]);if(j.hidden=!0,Yi(j.sourceHandle)&&Yi(j.targetHandle)){const te=w.size>0||s.size>0||a.size>0,le=b.has(j.source)||b.has(j.target),Se=Lo(b.has(j.source))||Lo(b.has(j.target)),be=Lo(x)&&Lo(y)&&Lo(te),xe=Lo(C)&&Lo(te),Me=Se&&xe,_e=le&&be,rt=w.size>0&&AV(g,j.id)&&a.has(j.source)&&a.has(j.target);Lo(_e)&&Lo(Me)&&(Lo(te)||rt)&&(j.hidden=!1)}else s.size>0&&N&&(j.hidden=!1);let F="var(--color-graph-edge-main)",Q=2;const V=b.has(j.source),ee=b.has(j.target);return AV(g,j.id)||y&&V&&ee?(Q=4,F="var(--color-graph-edge-selected)",j.zIndex=10):N?F="var(--color-graph-edge-secondary)":V&&ee&&(Q=4,F="var(--color-graph-edge-direct)",j.zIndex=10),j.style={...j.style,stroke:F,strokeWidth:Q},j})}function Ycn(l=[],s,u,a,g,w,b,y,x){return l.map(C=>{C.hidden=!0;const T=g.size>0||w.size>0,j=s.size===0||s.has(C.id),N=a.has(C.id),F=Lo(a.has(C.id)),Q=Lo(y)&&Lo(b)&&Lo(T),V=Lo(x)&&Lo(T),ee=F&&V;return Lo(N&&Q)&&Lo(ee)&&(C.hidden=Lo(j)),C.data.type===Ia.cte&&(C.hidden=Lo(s.has(C.id))),u===C.id&&(C.hidden=!1),C})}function F3e(l=new Map,[s,u]){if(Yi(s)&&Yi(u))return!1;const a=Yi(s)?void 0:l.get(s),g=Yi(u)?void 0:l.get(u);if(Yi(a)&&Yi(g))return!1;const w=!!(a!=null&&a.some(([y,x])=>y===s&&x===u)),b=!!(g!=null&&g.some(([y,x])=>y===s&&x===u));return w||b}function TV(l=new Map,s){return(l.get(s)??[]).length>0}function Ecn(l){return l===Ia.python?"PYTHON":l===Ia.sql?"SQL":l===Ia.seed?"SEED":l===Ia.cte?"CTE":l===Ia.external?"EXTERNAL":l===Ia.source?"SOURCE":"UNKNOWN"}function AV(l,s){return l.some(u=>u.id===s||AV(u.edges,s))}const B3e=Ne.createContext({selectedEdges:[],lineage:{},lineageCache:void 0,withColumns:!1,withConnected:!1,withImpacted:!0,withSecondary:!1,hasBackground:!0,mainNode:void 0,activeEdges:new Map,activeNodes:new Set,models:new Map,unknownModels:new Set,manuallySelectedColumn:void 0,connections:new Map,selectedNodes:new Set,connectedNodes:new Set,highlightedNodes:{},nodesMap:{},showControls:!0,setHighlightedNodes:()=>{},setWithColumns:()=>!1,setHasBackground:()=>!1,setWithImpacted:()=>!1,setWithSecondary:()=>!1,setWithConnected:()=>!1,hasActiveEdge:()=>!1,addActiveEdges:()=>{},removeActiveEdges:()=>{},setActiveEdges:()=>{},handleClickModel:()=>{},setManuallySelectedColumn:()=>{},handleError:()=>{},setLineage:()=>{},setLineageCache:()=>{},isActiveColumn:()=>!1,setConnections:()=>{},setSelectedNodes:()=>{},setMainNode:()=>{},setActiveNodes:()=>{},setNodeConnections:()=>{},setUnknownModels:()=>{}});function Ccn({handleError:l,handleClickModel:s,children:u,showColumns:a=!1,showConnected:g=!1,showControls:w=!0}){const b=MV(vr=>vr.models),[y,x]=Ne.useState({}),[C,T]=Ne.useState(new Set),[j,N]=Ne.useState(void 0),[F,Q]=Ne.useState({}),[V,ee]=Ne.useState(a),[te,le]=Ne.useState(),[Se,be]=Ne.useState(),[xe,Me]=Ne.useState(new Map),[_e,rt]=Ne.useState(new Map),[$e,ut]=Ne.useState(g),[st,ht]=Ne.useState(new Set),[pt,ce]=Ne.useState(new Set),[Ze,et]=Ne.useState({}),[vt,X]=Ne.useState(!0),[nt,Nt]=Ne.useState(!0),[Jt,Yt]=Ne.useState(!1),Nn=Ne.useMemo(()=>vcn({lineage:y,models:b,unknownModels:C,withColumns:V}),[y,b,V,C]),Ln=Ne.useCallback(function(Lc){return F3e(xe,Lc)},[xe]),Mi=Ne.useCallback(function(Lc){Me(so=>(Lc.forEach(([Fo,Mo])=>{const Xo=so.get(Fo)??[],gf=so.get(Mo)??[],Qs=Xo.some(([xc,Cd])=>xc===Fo&&Cd===Mo),gi=gf.some(([xc,Cd])=>xc===Fo&&Cd===Mo);Lo(Qs)&&Xo.push([Fo,Mo]),Lo(gi)&&gf.push([Fo,Mo]),so.set(Fo,Xo),so.set(Mo,gf)}),new Map(so)))},[Me]),ar=Ne.useCallback(function(Lc){Me(so=>(Lc.forEach(([Fo,Mo])=>{const Xo=(so.get(Fo)??[]).filter(Qs=>Qs[0]!==Fo&&Qs[1]!==Mo),gf=(so.get(Mo)??[]).filter(Qs=>Qs[0]!==Fo&&Qs[1]!==Mo);so.set(Fo,Xo),so.set(Mo,gf)}),new Map(so))),rt(so=>(Lc.forEach(([Fo,Mo])=>{so.delete(Fo),so.delete(Mo)}),new Map(so)))},[Me,rt]),Dr=Ne.useCallback(function(Lc,so){const Fo=Sc(Kf.Left,Lc,so),Mo=Sc(Kf.Right,Lc,so);return TV(xe,Fo)||TV(xe,Mo)},[Ln,xe]),Ys=Ne.useMemo(()=>new Set(Object.keys(F)),[F]),ps=Ne.useMemo(()=>Array.from(st).flatMap(vr=>F[vr]).filter(Boolean),[F,st]);return Ei.jsx(B3e.Provider,{value:{highlightedNodes:Ze,connectedNodes:Ys,activeEdges:xe,selectedEdges:ps,activeNodes:pt,selectedNodes:st,mainNode:te,connections:_e,lineage:y,lineageCache:j,models:b,manuallySelectedColumn:Se,withColumns:V,withConnected:$e,withImpacted:nt,withSecondary:Jt,showControls:w,hasBackground:vt,nodesMap:Nn,unknownModels:C,setHighlightedNodes:et,setActiveNodes:ce,setNodeConnections:Q,setLineageCache:N,setUnknownModels:T,setWithConnected:ut,setWithImpacted:Nt,setWithSecondary:Yt,setHasBackground:X,setSelectedNodes:ht,setMainNode:le,setConnections:rt,setLineage:x,setWithColumns:ee,setActiveEdges:Me,setManuallySelectedColumn:be,addActiveEdges:Mi,removeActiveEdges:ar,hasActiveEdge:Ln,handleClickModel:s,handleError:l,isActiveColumn:Dr},children:u})}function oR(){return Ne.useContext(B3e)}const Zcn=Object.freeze(Object.defineProperty({__proto__:null,LineageFlowContext:B3e,default:Ccn,useLineageFlow:oR},Symbol.toStringTag,{value:"Module"}));export{Qcn as C,Ia as E,SKt as F,Ccn as L,pcn as M,xGt as P,fbt as R,ocn as a,oR as b,zcn as c,Sh as d,Xl as e,Ygt as f,Ecn as g,Fb as h,xcn as i,Kcn as j,Xcn as k,Ucn as l,Gcn as m,Ycn as n,Vcn as o,Wcn as p,hYt as q,Fcn as r,vVt as s,Zcn as t,bcn as u};
|